make symtab::dirname const
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2013-12-06 Tom Tromey <tromey@redhat.com>
2
3 * buildsym.c (end_symtab_from_static_block): Use obstack_copy0.
4 * symtab.h (struct symtab) <dirname>: Now const.
5
6 2013-12-06 Tom Tromey <tromey@redhat.com>
7
8 * symfile.c (allocate_symtab): Remove cast.
9 * symtab.h (struct symtab) <filename>: Now const.
10
11 2013-12-06 Tom Tromey <tromey@redhat.com>
12
13 * break-catch-throw.c (fetch_probe_arguments): Use
14 get_probe_argument_count and evaluate_probe_argument.
15 * elfread.c (elf_get_probe_argument_count)
16 (elf_can_evaluate_probe_arguments, elf_evaluate_probe_argument)
17 (elf_compile_to_ax): Remove.
18 (elf_probe_fns): Update.
19 * probe.c (get_probe_argument_count, can_evaluate_probe_arguments)
20 (evaluate_probe_argument): Call method on probe, not via sym
21 functions.
22 * stap-probe.c (compute_probe_arg): Use get_probe_argument_count,
23 evaluate_probe_argument.
24 (compile_probe_arg): Use get_probe_argument_count. Call method on
25 probe, not via sym functions.
26 * symfile-debug.c (debug_sym_get_probe_argument_count)
27 (debug_can_evaluate_probe_arguments)
28 (debug_sym_evaluate_probe_argument, debug_sym_compile_to_ax):
29 Remove.
30 (debug_sym_probe_fns): Remove.
31 * symfile.h (struct sym_probe_fns) <sym_get_probe_argument_count,
32 can_evaluate_probe_arguments, sym_evaluate_probe_argument,
33 sym_compile_to_ax>: Remove fields.
34
35 2013-12-06 Pierre Muller <muller@sourceware.org>
36
37 Fix completion for pascal language.
38 * p-exp.y (exp : field_exp name): Do not call mark_struct_expression.
39 (exp : field_exp name COMPLETE): New rule.
40 (exp : SIZEOF): Set correct current_type.
41 (last_was_structop): Remove static variable.
42 (yylex): Remove saw_structop local variable.
43 Adapt code to removal of variables above.
44
45 2013-12-06 Joel Brobecker <brobecker@adacore.com>
46
47 * frame.c (get_prev_frame_1): Delete variable "this_id".
48 Replace its use by a call to get_frame_id.
49
50 2013-12-05 Anthony Green <green@moxielogic.com>
51
52 * moxie-tdep.c (moxie_software_single_step): New function.
53 (INST2OFFSET): New helper macro.
54 (moxie_gdbarch_init): Call set_gdbarch_software_single_step.
55 (moxie_process_readu): Move this up in the file.
56
57 2013-12-05 Doug Evans <xdje42@gmail.com>
58
59 * auto-load.c (load_auto_scripts_for_objfile): Add some comments.
60
61 2013-12-05 Joel Brobecker <brobecker@adacore.com>
62 Tristan Gingold <gingold@adacore.com>
63
64 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
65 Accept version 2. Ignore operations using opcode 6.
66
67 2013-12-05 Joel Brobecker <brobecker@adacore.com>
68
69 * ada-lex.l (find_dot_all): Fix coding style violations.
70
71 2013-12-03 Walfred Tedeschi <walfred.tedeschi@intel.com>
72
73 * NEWS: Add section for Intel(R) Architecture Instructions
74 Extesions mentioning MPX.
75
76 2013-12-03 Joel Brobecker <brobecker@adacore.com>
77
78 * ada-lex.l (find_dot_all): Use strncasecmp instead of strncmp.
79
80 2013-12-03 Joel Brobecker <brobecker@adacore.com>
81
82 * ada-lang.c (create_excep_cond_exprs): Force EXP to NULL
83 when parse_exp_1 threw an error. Add comment.
84
85 2013-12-03 Joel Brobecker <brobecker@adacore.com>
86
87 * NEWS: Mention "-list-features" in the entry documenting
88 the support for the "--language" option.
89
90 2013-12-03 Tom Tromey <tromey@redhat.com>
91 Jan Kratochvil <jan.kratochvil@redhat.com>
92 Doug Evans <dje@google.com>
93 Samuel Bronson <naesten@gmail.com>
94
95 Bring back gdb-add-index as a contrib script.
96 * contrib/gdb-add-index.sh: New file.
97 * NEWS: Note the addition.
98
99 2013-12-03 Samuel Bronson <naesten@gmail.com>
100
101 * MAINTAINERS (Write After Approval): Add myself to the list.
102
103 2013-12-03 Joel Brobecker <brobecker@adacore.com>
104
105 * mi/mi-main.c (mi_cmd_list_features): Remove "ada-exceptions".
106
107 2013-12-03 Joel Brobecker <brobecker@adacore.com>
108
109 * mi/mi-main.c: Remove trailing spaces throughout.
110
111 2013-12-03 Pedro Alves <palves@redhat.com>
112 Joel Brobecker <brobecker@adacore.com>
113
114 * exceptions.h (enum_errors) <UNDEFINED_COMMAND_ERROR>: New enum.
115 * mi/mi-parse.c (mi_parse): Throw UNDEFINED_COMMAND_ERROR instead
116 of a regular error when the GDB/MI command does not exist.
117 * mi/mi-main.c (mi_cmd_list_features): Add
118 "undefined-command-error-code".
119 (mi_print_exception): Print an "undefined-command"
120 error code if EXCEPTION.ERROR is UNDEFINED_COMMAND_ERROR.
121 * NEWS: Add entry documenting the new "code" variable in
122 "^error" result records.
123
124 2013-12-03 Joel Brobecker <brobecker@adacore.com>
125
126 * mi/mi-cmds.h (mi_cmd_info_gdb_mi_command): Declare.
127 * mi/mi-cmd-info.c (mi_cmd_info_gdb_mi_command): New function.
128 * mi/mi-cmds.c (mi_cmds): Add -info-gdb-mi-command command.
129 * mi/mi-main.c (mi_cmd_list_features): Add "info-gdb-mi-command"
130 field to output of "-list-features".
131
132 * NEWS: Add entry for new -info-gdb-mi-command.
133
134 2013-12-02 Doug Evans <dje@google.com>
135 Jan Kratochvil <jan.kratochvil@redhat.com>
136
137 * objfiles.c (allocate_objfile): Save original_name as an absolute
138 path.
139 * objfiles.h (struct objfile): Expand comment on original_name.
140 * source.c (openp): Call gdb_abspath.
141 * utils.c (gdb_abspath): New function.
142 * utils.h (gdb_abspath): Declare.
143
144 2013-12-02 Pedro Alves <palves@redhat.com>
145
146 * dcache.c (dcache_read_line): Use target_read_raw_memory.
147 * target.c (target_read_raw_memory): New function.
148 (target_read_stack, target_write_memory, target_write_raw_memory):
149 Update comment.
150 (target_read_code): Add comment.
151 * target.h (target_read_raw_memory): Declare.
152
153 2013-12-02 Pedro Alves <palves@redhat.com>
154
155 * ctf.c (ctf_start): Use S_IRGRP, S_IXGRP, S_IXOTH
156 unconditionally.
157
158 2013-12-02 Pedro Alves <pedro@codesourcery.com>
159 Maciej W. Rozycki <macro@codesourcery.com>
160
161 * remote.c (putpkt_for_catch_errors): Remove function.
162 (remote_kill): Handle TARGET_CLOSE_ERROR from the kill packet
163 gracefully.
164
165 2013-12-02 Pedro Alves <palves@redhat.com>
166
167 PR remote/15974
168 * remote-notif.c (handle_notification): Return early if no
169 notification is found.
170
171 2013-12-02 Joel Brobecker <brobecker@adacore.com>
172
173 * common/filestuff.c (fdwalk): Add "defined(RLIMIT_NOFILE)"
174 preprocessor check.
175
176 2013-12-02 Joel Brobecker <brobecker@adacore.com>
177
178 * Makefile.in (HFILES_NO_SRCDIR): Remove "common/gdb_dirent.h".
179
180 2013-12-02 Joel Brobecker <brobecker@adacore.com>
181
182 * Makefile.in (HFILES_NO_SRCDIR): Remove "common/gdb_stat.h".
183 * ctf.c (ctf_start): Remove obsolete comment.
184
185 2013-12-02 Joel Brobecker <brobecker@adacore.com>
186
187 * Makefile.in (HFILES_NO_SRCDIR): Remove "common/gdb_string.h".
188
189 2013-11-30 Doug Evans <xdje42@gmail.com>
190
191 * auto-load.h (script_language): New members name, auto_load_enabled.
192 Add missing comments on struct members.
193 (auto_load_objfile_script): Delete.
194 * auto-load.c: #include "cli/cli-cmds.h".
195 (auto_load_gdb_scripts_enabled): New function.
196 (script_language_gdb): Update, add new members.
197 (source_gdb_script_for_objfile): Simplify, auto-load safe-checking
198 and call to maybe_add_script moved to caller.
199 (auto_load_objfile_script_1): Auto-load safe-checking and
200 call to maybe_add_script moved here.
201 (auto_load_objfile_script): Make static. Early exit if support for
202 scripting language hasn't been compiled in, or auto-loading has been
203 disabled.
204 (source_section_scripts): Argument "source_name" renamed to
205 "section_name". All uses updated. Replace uses of AUTO_SECTION_NAME
206 with section_name. Skip loading script if support for scripting
207 language hasn't been compiled in, or auto-loading has been disabled.
208 Call language->source_script_for_objfile instead of calling
209 source_python_script_for_objfile directly.
210 (load_auto_scripts_for_objfile): Update.
211 * python/py-auto-load.c: Delete #include "cli/cli-cmds.h".
212 (gdbpy_load_auto_script_for_objfile): Delete.
213 (auto_load_python_scripts_enabled): New function.
214 (script_language_python): Update, add new members.
215 (gdbpy_script_language_defn): New function.
216 * python/python.h (gdbpy_load_auto_scripts_for_objfile): Delete.
217 (gdbpy_script_language_defn): Declare.
218
219 * auto-load.c (AUTO_SECTION_NAME): Moved here and renamed from
220 py-auto-load.c, GDBPY_AUTO_SECTION_NAME.
221 (source_section_scripts): Moved here from py-auto-load.c.
222 (auto_load_section_scripts): Ditto.
223 * python/py-auto-load.c (GDBPY_AUTO_SECTION_NAME): Moved to
224 auto-load.c, renamed AUTO_SECTION_NAME.
225 (source_section_scripts, auto_load_section_scripts): Moved to
226 auto-load.c.
227
228 2013-11-30 Yao Qi <yao@codesourcery.com>
229
230 * remote.c (getpkt_or_notif_sane_1): Fix typo "checksm".
231
232 2013-11-29 Sergio Durigan Junior <sergiodj@redhat.com>
233
234 * gdbarch.sh: Remove include of "gdb_string.h", replace by
235 <string.h>.
236
237 2013-11-29 Doug Evans <xdje42@gmail.com>
238
239 * python/py-auto-load.c (source_section_scripts): Move comment to
240 more relevant location.
241
242 Whitespace cleanup.
243 * python/py-breakpoint.c: Remove trailing whitespace.
244 * python/py-cmd.c: Ditto.
245 * python/py-evts.c: Ditto.
246 * python/py-finishbreakpoint.c: Ditto.
247 * python/py-frame.c: Ditto.
248 * python/py-function.c: Ditto.
249 * python/py-inferior.c: Ditto.
250 * python/py-infthread.c: Ditto.
251 * python/py-param.c: Ditto.
252 * python/py-prettyprint.c: Ditto.
253 * python/py-symbol.c: Ditto.
254 * python/py-type.c: Ditto.
255 * python/py-utils.c: Ditto.
256 * python/py-value.c: Ditto.
257 * python/python-internal.h: Ditto.
258 * python/python.c: Ditto.
259
260 2013-11-29 Pedro Alves <palves@redhat.com>
261
262 * unwind_stop_reasons.def (UNWIND_NULL_ID): Update comment.
263
264 2013-11-29 Pedro Alves <palves@redhat.com>
265
266 * breakpoint.c (build_target_condition_list): Release previous
267 conditions.
268 (build_target_command_list): Release previous commands.
269 (bp_location_dtor): Release target conditions and commands.
270 * remote.c (remote_add_target_side_condition): Don't release
271 conditions.
272 (remote_add_target_side_commands): Don't release commands.
273
274 2013-11-29 Yao Qi <yao@codesourcery.com>
275 Pedro Alves <palves@redhat.com>
276
277 * dcache.c (dcache_read_line): Use current_target.beneath
278 instead of &current_target.
279 * target.c (memory_xfer_partial_1): Factor code out to ...
280 (raw_memory_xfer_partial): ... it. New function.
281 (target_xfer_partial): Call raw_memory_xfer_partial if OBJECT
282 is TARGET_OBJECT_RAW_MEMORY.
283
284 2013-11-28 Doug Evans <xdje42@gmail.com>
285
286 * breakpoint.h (gdbpy_breakpoint_object): Renamed from
287 breakpoint_object. All uses updated.
288 * python/python-internal.h (gdbpy_breakpoint_object): Renamed from
289 breakpoint_object. All uses updated.
290 * python.c (*): All uses of breakpoint_object updated.
291 * python.h (*): All uses of breakpoint_object updated.
292 * python/py-breakpoint.c (*): All uses of breakpoint_object updated.
293 * python/py-finishbreakpoint.c (*): Ditto.
294
295 2013-11-28 Doug Evans <xdje42@gmail.com>
296
297 * configure.ac: Add comments delineating libpython and libmcheck.
298 * configure: Regenerate.
299
300 2013-11-28 Andrew Burgess <aburgess@broadcom.com>
301 Pedro Alves <palves@redhat.com>
302
303 * valprint.c (value_check_printable): If the value is entirely
304 unavailable, print a single "<unavailable>" instead of printing
305 all subfields.
306
307 2013-11-28 Pedro Alves <palves@redhat.com>
308
309 * frame.c (get_prev_frame_1) <stop_reason != UNWIND_NO_REASON>:
310 Add "set debug frame" output.
311 (frame_stop_reason_symbol_string): New function.
312
313 2013-11-28 Pedro Alves <palves@redhat.com>
314
315 * frame-unwind.c (default_frame_unwind_stop_reason): Return
316 UNWIND_OUTERMOST if the frame's ID is outer_frame_id.
317 * frame.c (get_prev_frame_1): Remove outer_frame_id check.
318
319 2013-11-28 Pedro Alves <palves@redhat.com>
320
321 * frame.c (get_prev_frame_1): If the frame id is outer_frame_id,
322 set the unwind stop reason to UNWIND_OUTERMOST, not
323 UNWIND_NULL_ID. Remove explicit check for sentinel frame.
324
325 2013-11-28 Pedro Alves <palves@redhat.com>
326
327 * frame.c (frame_unwind_register): Say the register was "not
328 saved" instead of "optimized out".
329
330 2013-11-27 Steffen Sledz <sledz@dresearch-fe.de>
331
332 PR 16152
333 * configure: Rebuild.
334 * configure.ac: Tighten cygwin detection check.
335
336 2013-11-27 Pedro Alves <palves@redhat.com>
337
338 * frame-unwind.c (frame_unwind_got_optimized): Use the type of the
339 register in the previous frame's arch.
340
341 2013-11-27 Pedro Alves <palves@redhat.com>
342
343 * frame-unwind.c (frame_unwind_got_optimized): Return
344 an lval_register value instead of a not_lval value.
345
346 2013-11-27 Andrew Burgess <aburgess@broadcom.com>
347
348 * frame.c: Include "valprint.h".
349 (frame_unwind_register_value): Use value_optimized_out.
350 * value.c (value_fetch_lazy): Likewise.
351
352 2013-11-26 Andrew Burgess <aburgess@broadcom.com>
353
354 * value.c (allocate_optimized_out_value): Mark value as non-lazy.
355
356 2013-11-26 Tom Tromey <tromey@redhat.com>
357
358 * dwarf2-frame.c (dwarf2_frame_cache): Revert patch from
359 2013-11-22.
360
361 2013-11-26 Walfred Tedeschi <walfred.tedeschi@intel.com>
362
363 * i386-xstate.h (I386_XSTATE_MPX): New Macro.
364 (I386_XSTATE_MPX_MASK): Makes use of I386_XSTATE_MPX.
365 (HAS_MPX): New macro.
366 (HAS_AVX): New macro.
367 (I386_XSTATE_SIZE): Uses HAS_MPX and HAS_AVX.
368
369 2013-11-25 Keith Seitz <keiths@redhat.com>
370
371 PR c++/14819
372 * c-exp.y (classify_inner_name): If no matching symbol was
373 found, try looking up the token as a base class.
374 Likewise if a constructor was found.
375 * cp-namespace.c (find_type_baseclass_by_name): New function.
376 * cp-support.h (find_type_baseclass_by_name): Declare.
377 * valops.c (value_struct_elt_for_reference): If we get
378 a non-static field, try to get a value based on the
379 current instance, if any.
380
381 2013-11-24 Yao Qi <yao@codesourcery.com>
382
383 * disasm.c (dis_asm_read_memory): Call target_read_code
384 instead of target_read_memory.
385
386 2013-11-24 Yao Qi <yao@codesourcery.com>
387
388 * NEWS: Add note on new "set code-cache" option.
389 * target-dcache.c (code_cache_enabled_1): New variable.
390 (code_cache_enabled): New variable.
391 (show_code_cache, set_code_cache): New function.
392 (code_cache_enabled_p): New function.
393 (_initialize_target_dcache): Register command.
394 * target-dcache.h (code_cache_enabled_p): Declare.
395 * target.c (memory_xfer_partial_1):Handle
396 TARGET_OBJECT_CODE_MEMORY and code_cache_enabled.
397 (target_read_code): New function.
398 * target.h (enum target_object) <TARGET_OBJECT_CODE_MEMORY>:
399 New.
400 (target_read_code): Declare.
401
402 2013-11-24 Yao Qi <yao@codesourcery.com>
403
404 * target-dcache.c (stack_cache_enabled_p_1): Rename to ...
405 (stack_cache_enabled_1): ... this. New variable.
406 (stack_cache_enabled_p): Rename to ...
407 (stack_cache_enabled): ... this. New variable.
408 (set_stack_cache_enabled_p): Rename to ...
409 (set_stack_cache): ... this. Update caller.
410 (show_stack_cache_enabled_p): Rename to ...
411 (show_stack_cache): ... this. Update caller.
412 (stack_cache_enabled): Rename to ...
413 (stack_cache_enabled_p): ... this. Update caller.
414 (_initialize_target_dcache): Replace "data cache" with
415 "target memory cache".
416 * target-dcache.h (stack_cache_enabled): Remove declaration.
417 (stack_cache_enabled_p): Add declaration.
418
419 2013-11-23 Doug Evans <xdje42@gmail.com>
420
421 * python/py-frame.c (gdbpy_initialize_frames): Remove FIRST_ERROR,
422 superfluous.
423
424 2013-11-23 Doug Evans <xdje42@gmail.com>
425
426 * python/py-frame.c (frapy_block): Fix error message text.
427
428 2013-11-23 Doug Evans <xdje42@gmail.com>
429
430 * cli/cli-script.c (multi_line_command_p): New function.
431 (recurse_read_control_structure, read_command_lines_1): Call it.
432 (execute_control_command): Consistently have a blank line between
433 each case.
434
435 2013-11-22 Sterling Augustine <saugustine@google.com>
436
437 PR gdb/16196:
438 * valprint.c (read_string): Set new variable fetchlen based on
439 fetchlimit and size. Use it in call to partial_memory_read.
440 Update comment.
441
442 2013-11-22 Tom Tromey <tromey@redhat.com>
443
444 PR backtrace/16155:
445 * dwarf2-frame.c (dwarf2_frame_cache): Set undefined_retaddr if
446 the return address column is unspecified.
447
448 2013-11-22 Tom Tromey <tromey@redhat.com>
449 Pedro Alves <palves@redhat.com>
450
451 PR backtrace/16155
452 * value.c (value_fetch_lazy): Internal error if
453 get_frame_register_value returns the same register.
454
455 2013-11-22 Pedro Alves <palves@redhat.com>
456 Tom Tromey <tromey@redhat.com>
457
458 * frame.c (frame_stash_add): Now returns whether a frame with the
459 same ID was already known.
460 (compute_frame_id): New function, factored out from get_frame_id.
461 (get_frame_id): No longer lazilly compute the frame id here.
462 (get_prev_frame_if_no_cycle): New function. Detects wider stack
463 cycles.
464 (get_prev_frame_1): Use it instead of get_prev_frame_raw directly,
465 and checking for stack cycles here.
466
467 2013-11-22 Pedro Alves <palves@redhat.com>
468
469 PR 16155
470 * frame.c (get_prev_frame_1): Do the UNWIND_SAME_ID check between
471 this frame and the new previous frame, not between this frame and
472 the next frame.
473
474 2013-11-22 Pedro Alves <palves@redhat.com>
475
476 PR 16155
477 * dwarf2-frame.c (struct dwarf2_frame_cache)
478 <checked_tailcall_bottom, entry_cfa_sp_offset,
479 entry_cfa_sp_offset_p>: New fields.
480 (dwarf2_frame_cache): Adjust to use the new cache fields instead
481 of locals. Don't call dwarf2_tailcall_sniffer_first here.
482 (dwarf2_frame_prev_register): Call it here, but only once.
483
484 2013-11-21 Doug Evans <xdje42@gmail.com>
485
486 * gdbtypes.c: #include bcache.h, dwarf2loc.h.
487 (type_equality_entry): Move here from python/py-type.c.
488 (type_equality_entry_d): Ditto.
489 (compare_maybe_null_strings, check_types_equal): Ditto.
490 (check_types_worklist, types_deeply_equal): Ditto.
491 * gdbtypes.h (types_deeply_equal): Declare.
492 * python/py-type.c: Remove inclusion of bcache.h, dwarf2loc.h.
493 (typy_richcompare): Update.
494
495 2013-11-20 Joel Brobecker <brobecker@adacore.com>
496
497 * python/py-value.c (is_intlike): Delete.
498 (valpy_int): Replace use of CHECK_TYPEDEF and is_intlike
499 by use of is_integral_type.
500 (valpy_long): Replace use of CHECK_TYPEDEF and is_intlike
501 by use of is_integral_type and check for TYPE_CODE_PTR.
502
503 2013-11-20 Tom Tromey <tromey@redhat.com>
504
505 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Remove
506 strerror module.
507 * gnulib/aclocal.m4: Update.
508 * gnulib/config.in: Update.
509 * gnulib/configure: Update.
510 * gnulib/import/Makefile.am: Update.
511 * gnulib/import/Makefile.in: Update.
512 * gnulib/import/errno.in.h: Remove.
513 * gnulib/import/intprops.h: Remove.
514 * gnulib/import/m4/errno_h.m4: Remove.
515 * gnulib/import/m4/gnulib-cache.m4: Update.
516 * gnulib/import/m4/gnulib-comp.m4: Update.
517 * gnulib/import/m4/strerror.m4: Remove.
518 * gnulib/import/m4/sys_socket_h.m4: Remove.
519 * gnulib/import/strerror-override.c: Remove.
520 * gnulib/import/strerror-override.h: Remove.
521 * gnulib/import/strerror.c: Remove.
522 * gnulib/update-gnulib.sh: Update.
523
524 2013-11-20 Yao Qi <yao@codesourcery.com>
525
526 * target-dcache.c (target_dcache_get_or_init): Call
527 set_address_space_data if 'dcache' is NULL.
528
529 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
530
531 * common/i386-gcc-cpuid.h (bit_MPX): Synchronize with gcc file.
532
533 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
534
535 * python/lib/gdb/command/bound_register.py: New file.
536 * data-directory/Makefile.in: Copy bond_register.py to the right path
537 to be initialized at gdb startup.
538
539 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
540
541 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset):
542 Add MPX registers.
543 (amd64_linux_read_description): Add initialization for MPX and
544 AVX independently.
545 * amd64-linux-tdep.c: Includes features/i386/amd64-mpx-linux.c.
546 (amd64_linux_gregset_reg_offset): Add MPX registers.
547 (amd64_linux_core_read_description): Add initialization for MPX
548 registers.
549 (_initialize_amd64_linux_tdep): Initialize MPX targets.
550 * amd64-linux-tdep.h (AMD64_LINUX_RAX_REGNUM): Set it to the last
551 register on the list.
552 (tdesc_amd64_mpx_linux) Add new target for MPX.
553 * amd64-tdep.c: Includes features/i386/amd64-mpx.c.
554 (amd64_mpx_names): MPX register names.
555 (amd64_init_abi): Add MPX register while initializing the ABI.
556 (_initialize_amd64_tdep): Initialize MPX targets.
557 * amd64-tdep.h (amd64_regnum): Add MPX registers.
558 (AMD64_NUM_REGS): Set number of registers taking MPX into account.
559
560 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
561
562 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Add MPX
563 registers on the range of registers to be read from
564 xsave buffer.
565 (i386_linux_read_description): Add case for MPX.
566 * i386-linux-tdep.c: Include features/i386/i386-mpx-linux.c.
567 (i386_linux_gregset_reg_offset): Add MPX registers.
568 (i386_linux_core_read_description): Initialize also MPX.
569 (_initialize_i386_linux_tdep): Add mpx initialization.
570 * i386-tdep.h (gdbarch_tdep): Add fields bnd0r_regnum, bnd0_regnum,
571 mpx_register_names.
572 (i386_regnum): Add MPX registers.
573 (I386_MPX_NUM_REGS): New macro.
574 (i386_bnd_regnum_p): New function.
575 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set
576 number of registers to be the number of BNDSTATUS.
577 (tdesc_i386_mpx_linux): Add description for MPX Linux registers.
578 * i386-tdep.c: Include features/i386/i386-mpx.c.
579 (i386_mpx_names): Add MPX register names array.
580 (i386_bnd_names): Add bnd pseudo register names array.
581 (i386_bndr_regnum_p): Lookup register numbers for bnd raw
582 registers.
583 (i386_bndr_regnum_p): Lookup register numbers for bnd raw registers.
584 (386_mpx_ctrl_regnum_p): Lookup register numbers for MPX control
585 registers.
586 (i386_bnd_type): New function.
587 (i386_pseudo_register_type): Use i386_bnd_type for bnd pseudo
588 register types.
589 (i386_pseudo_register_read_into_value): Add bnd case.
590 (i386_pseudo_register_write): Add bnd pseudo registers.
591 (i386_register_reggroup_p): Add MPX register to the group all.
592 (i386_validate_tdesc_p): Add MPX to the target description
593 validation.
594 (i386_pseudo_register_name): Add bnd pseudo registers.
595 (i386_gdbarch_init): Add MPX for architecture initialization.
596 (_initia_initialize_i386_tdep): Add mpx initialization.
597 * i387-tdep.c (xsave_mpx_offset): New vector for MPX offsets on
598 XSAVE buffer.
599 (XSAVE_MPX_ADDR): New macro.
600 (i387_supply_xsave): Add MPX case.
601 (i387_collect_xsave): Add MPX case.
602 * i387-tdep.h (I387_BND0R_REGNUM): New macro.
603 (I387_BNDCFGU_REGNUM): New macro.
604 (I387_NUM_MPX_REGS): New macro.
605 (I387_NUM_BND_REGS): New macro.
606 (I387_NUM_MPX_CTRL_REGS): New macro.
607 (I387_MPXEND_REGNUM): New macro.
608 * common/i386-xstate.h (I386_XSTATE_BNDREGS): New macro.
609 (I386_XSTATE_BNDCFG): Likewise.
610 (I386_XSTATE_MPX_MASK): Likewise.
611 (I386_XSTATE_ALL_MASK): New macro represents flags for all states.
612 (I386_XSTATE_BNDREGS_SIZE): New macro.
613 (I386_XSTATE_BNDCFG_SIZE): Likewise.
614 (I386_XSTATE_SIZE): Adapt for MPX.
615 (I386_XSTATE_MAX_SIZE): Likewise.
616
617 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
618
619 * features/i386/Makefile: Adapts for using MPX registers.
620 * features/i386/32bit-mpx.xml: New file.
621 * features/i386/64bit-mpx.xml: Likewise.
622 * features/i386/amd64-mpx-linux.c: Likewise.
623 * features/i386/amd64-mpx-linux.xml: Likewise.
624 * features/i386/amd64-mpx.c: Likewise.
625 * features/i386/amd64-mpx.xml: Likewise.
626 * features/i386/i386-mpx-linux.c: Likewise.
627 * features/i386/i386-mpx-linux.xml: Likewise.
628 * features/i386/i386-mpx.c: Likewise.
629 * features/i386/i386-mpx.xml: Likewise.
630 * regformats/i386/amd64-mpx-linux.dat: New file.
631 * regformats/i386/amd64-mpx.dat: Likewise.
632 * regformats/i386/i386-mpx-linux.dat: Likewise.
633 * regformats/i386/i386-mpx.dat: Likewise.
634
635 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
636
637 * target-descriptions.c (maint_print_maint_print_c_tdesc_cmd):
638 Modified logic of creating a bitfield to be in sync with
639 tdesc_gdb_type.
640
641 2013-11-20 Will Newton <will.newton@linaro.org>
642
643 * arm-tdep.c (arm_get_next_pc): Remove "Infinite loop detected"
644 error message.
645
646 2013-11-20 Yao Qi <yao@codesourcery.com>
647
648 * progspace.h (struct address_space_data): Declare.
649 * target-dcache.c: Include "progspace.h".
650 (target_dache): Remove.
651 (target_dcache_aspace_key): New.
652 (target_dcache_cleanup): New function.
653 (target_dcache_init_p): Get data through
654 target_dcache_aspace_key.
655 (target_dcache_invalidate): Likewise.
656 (target_dcache_get): Likewise.
657 (target_dcache_get_or_init): Likewise.
658 (_initialize_target_dcache): Initialize
659 target_dcache_aspace_key.
660
661 2013-11-20 Yao Qi <yao@codesourcery.com>
662
663 * progspace.c (struct address_space): Update comments.
664 <REGISTRY_FIELDS>: New fields.
665 DEFINE_REGISTRY for address_space.
666 (new_address_space): Call address_space_alloc_data.
667 (free_address_space): Call address_space_free_data.
668 * progspace.h: Use DECLARE_REGISTRY.
669
670 2013-11-20 Yao Qi <yao@codesourcery.com>
671
672 * Makefile.in (SFILES):Add target-dcache.c.
673 (HFILES_NO_SRCDIR): Add target-dcache.h.
674 (COMMON_OBS): Add target-dcache.o.
675 * dcache.c: Remove inclusion to "target.h". Include
676 "target-dcache.h".
677 * memattr.c: Include "target-dcache.h".
678 * top.c: Likewise.
679 * tracepoint.c: Likewise.
680 * target.c: (stack_cache_enabled_p_1): Move to
681 target-dcache.c.
682 (stack_cache_enabled_p): Likewise.
683 (set_stack_cache_enabled_p): Likewise.
684 (show_stack_cache_enabled_p): Likewise.
685 (target_dcache, target_dcache_init_p): Likewise.
686 (target_dcache_invalidate): Likewise.
687 (target_dcache_get, target_dcache_get_or_init): Likewise.
688 (memory_xfer_partial_1): Call function stack_cache_enabled.
689 (initialize_target): Move code to target-dcache.c.
690 * target.h (target_dcache_invalidate): Move to
691 target-dcache.h.
692 (target_dcache_get): Likewise.
693 * target-dcache.c: New.
694 * target-dcache.h: New.
695
696 2013-11-20 Yao Qi <yao@codesourcery.com>
697
698 * target.c (memory_xfer_partial_1): Update 'target_dcache' if
699 it is initialized.
700
701 2013-11-20 Yao Qi <yao@codesourcery.com>
702
703 * dcache.c (last_cache): Remove.
704 (dcache_free, dcache_init): Update.
705 (dcache_update):
706 (dcache_print_line): Add parameter 'dcache'. Replace
707 'target_dcache' with 'dcache'.
708 (dcache_info): Move code to dcache_info_1. Call
709 'dcache_info_1'.
710 (dcache_info_1): New function.
711 (set_dcache_size): Call target_dcache_invalidate.
712 (set_dcache_line_size): Call target_dcache_invalidate.
713 * target.c (target_dcache_init_p): New function.
714 (target_dcache_invalidate): Check target_dcache_init_p first.
715 (target_dcache_get, target_dcache_get_or_init): New function.
716 (memory_xfer_partial_1): Adjust.
717 (initialize_target): Don't initialize 'target_dcache'.
718 * target.h (struct dcache_struct): Declare.
719 (target_dcache_get): Declare.
720
721 2013-11-19 Yao Qi <yao@codesourcery.com>
722
723 * varobj.c (varobj_get_type): Fix typo.
724
725 2013-11-19 Joel Brobecker <brobecker@adacore.com>
726
727 * python/py-value.c (is_intlike): Add TYPE_CODE_RANGE handling.
728
729 2013-11-19 Joel Brobecker <brobecker@adacore.com>
730
731 * contrib/ari/gdb_ari.sh: Remove checks for "dirent.h" and
732 "stat.h".
733
734 2013-11-18 Tom Tromey <tromey@redhat.com>
735
736 * common/gdb_stat.h: Remove.
737 * ada-lang.c: Use sys/stat.h, not gdb_stat.h.
738 * common/filestuff.c: Use sys/stat.h, not gdb_stat.h.
739 * common/linux-osdata.c: Use sys/stat.h, not gdb_stat.h.
740 * corefile.c: Use sys/stat.h, not gdb_stat.h.
741 * ctf.c: Use sys/stat.h, not gdb_stat.h.
742 * darwin-nat.c: Use sys/stat.h, not gdb_stat.h.
743 * dbxread.c: Use sys/stat.h, not gdb_stat.h.
744 * dwarf2read.c: Use sys/stat.h, not gdb_stat.h.
745 * exec.c: Use sys/stat.h, not gdb_stat.h.
746 * gdbserver/linux-low.c: Use sys/stat.h, not gdb_stat.h.
747 * gdbserver/remote-utils.c: Use sys/stat.h, not gdb_stat.h.
748 * inf-child.c: Use sys/stat.h, not gdb_stat.h.
749 * jit.c: Use sys/stat.h, not gdb_stat.h.
750 * linux-nat.c: Use sys/stat.h, not gdb_stat.h.
751 * m68klinux-nat.c: Use sys/stat.h, not gdb_stat.h.
752 * main.c: Use sys/stat.h, not gdb_stat.h.
753 * mdebugread.c: Use sys/stat.h, not gdb_stat.h.
754 * mi/mi-cmd-env.c: Use sys/stat.h, not gdb_stat.h.
755 * nto-tdep.c: Use sys/stat.h, not gdb_stat.h.
756 * objfiles.c: Use sys/stat.h, not gdb_stat.h.
757 * procfs.c: Use sys/stat.h, not gdb_stat.h.
758 * remote-fileio.c: Use sys/stat.h, not gdb_stat.h.
759 * remote-mips.c: Use sys/stat.h, not gdb_stat.h.
760 * remote.c: Use sys/stat.h, not gdb_stat.h.
761 * rs6000-nat.c: Use sys/stat.h, not gdb_stat.h.
762 * sol-thread.c: Use sys/stat.h, not gdb_stat.h.
763 * solib-spu.c: Use sys/stat.h, not gdb_stat.h.
764 * source.c: Use sys/stat.h, not gdb_stat.h.
765 * symfile.c: Use sys/stat.h, not gdb_stat.h.
766 * symmisc.c: Use sys/stat.h, not gdb_stat.h.
767 * symtab.c: Use sys/stat.h, not gdb_stat.h.
768 * top.c: Use sys/stat.h, not gdb_stat.h.
769 * xcoffread.c: Use sys/stat.h, not gdb_stat.h.
770
771 2013-11-18 Tom Tromey <tromey@redhat.com>
772
773 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
774 sys_stat.
775 * gnulib/aclocal.m4: Update.
776 * gnulib/config.in: Update.
777 * gnulib/configure: Update.
778 * gnulib/import/Makefile.am: Update.
779 * gnulib/import/Makefile.in: Update.
780 * gnulib/import/m4/gnulib-cache.m4: Update.
781 * gnulib/import/m4/gnulib-comp.m4: Update.
782 * gnulib/import/m4/sys_stat_h.m4: New.
783 * gnulib/import/m4/time_h.m4: New.
784 * gnulib/import/sys_stat.in.h: New.
785 * gnulib/import/time.in.h: New.
786
787 2013-11-18 Tom Tromey <tromey@redhat.com>
788
789 * configure: Rebuild.
790 * configure.ac: Remove check of HAVE_SYS_TYPES_H.
791
792 2013-11-18 Tom Tromey <tromey@redhat.com>
793
794 * configure: Rebuild.
795 * configure.ac: Don't check for unistd.h.
796
797 2013-11-18 Tom Tromey <tromey@redhat.com>
798
799 * configure: Rebuild.
800 * configure.ac: Don't check for stdlib.h
801 * defs.h: Include stdlib.h unconditionally.
802
803 2013-11-18 Tom Tromey <tromey@redhat.com>
804
805 * config.in: Rebuild.
806 * configure: Rebuild.
807 * configure.ac: Don't check for stddef.h.
808 * defs.h: Unconditionally include stddef.h. Remove duplicate
809 inclusion.
810
811 2013-11-18 Tom Tromey <tromey@redhat.com>
812
813 * common/common.m4 (GDB_AC_COMMON): Don't use AC_HEADER_DIRENT.
814 * common/gdb_dirent.h: Remove.
815 * common/filestuff.c: Use dirent.h.
816 * common/linux-osdata.c: Use dirent.h.
817 (NAMELEN): Define.
818 * config.in: Rebuild.
819 * configure: Rebuild.
820 * configure.ac: Don't use AC_HEADER_DIRENT.
821 * linux-fork.c: Use dirent.h
822 * linux-nat.c: Use dirent.h.
823 * nto-procfs.c: Use dirent.h.
824 * procfs.c: Use dirent.h.
825
826 2013-11-18 Tom Tromey <tromey@redhat.com>
827
828 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirent.
829 * gnulib/aclocal.m4: Update.
830 * gnulib/config.in: Update.
831 * gnulib/configure: Update.
832 * gnulib/import/Makefile.am: Update.
833 * gnulib/import/Makefile.in: Update.
834 * gnulib/import/dirent.in.h: New.
835 * gnulib/import/m4/dirent_h.m4: New.
836 * gnulib/import/m4/gnulib-cache.m4: Update.
837 * gnulib/import/m4/gnulib-comp.m4: Update.
838
839 2013-11-18 Tom Tromey <tromey@redhat.com>
840
841 * configure: Rebuild.
842 * common/common.m4 (GDB_AC_COMMON): Don't check for string.h or
843 strings.h.
844
845 2013-11-18 Tom Tromey <tromey@redhat.com>
846
847 * common/gdb_string.h: Remove.
848 * aarch64-tdep.c: Use string.h, not gdb_string.h.
849 * ada-exp.y: Use string.h, not gdb_string.h.
850 * ada-lang.c: Use string.h, not gdb_string.h.
851 * ada-lex.l: Use string.h, not gdb_string.h.
852 * ada-typeprint.c: Use string.h, not gdb_string.h.
853 * ada-valprint.c: Use string.h, not gdb_string.h.
854 * aix-thread.c: Use string.h, not gdb_string.h.
855 * alpha-linux-tdep.c: Use string.h, not gdb_string.h.
856 * alpha-mdebug-tdep.c: Use string.h, not gdb_string.h.
857 * alpha-nat.c: Use string.h, not gdb_string.h.
858 * alpha-osf1-tdep.c: Use string.h, not gdb_string.h.
859 * alpha-tdep.c: Use string.h, not gdb_string.h.
860 * alphanbsd-tdep.c: Use string.h, not gdb_string.h.
861 * amd64-dicos-tdep.c: Use string.h, not gdb_string.h.
862 * amd64-linux-nat.c: Use string.h, not gdb_string.h.
863 * amd64-linux-tdep.c: Use string.h, not gdb_string.h.
864 * amd64-nat.c: Use string.h, not gdb_string.h.
865 * amd64-sol2-tdep.c: Use string.h, not gdb_string.h.
866 * amd64fbsd-tdep.c: Use string.h, not gdb_string.h.
867 * amd64obsd-tdep.c: Use string.h, not gdb_string.h.
868 * arch-utils.c: Use string.h, not gdb_string.h.
869 * arm-linux-nat.c: Use string.h, not gdb_string.h.
870 * arm-linux-tdep.c: Use string.h, not gdb_string.h.
871 * arm-tdep.c: Use string.h, not gdb_string.h.
872 * arm-wince-tdep.c: Use string.h, not gdb_string.h.
873 * armbsd-tdep.c: Use string.h, not gdb_string.h.
874 * armnbsd-nat.c: Use string.h, not gdb_string.h.
875 * armnbsd-tdep.c: Use string.h, not gdb_string.h.
876 * armobsd-tdep.c: Use string.h, not gdb_string.h.
877 * avr-tdep.c: Use string.h, not gdb_string.h.
878 * ax-gdb.c: Use string.h, not gdb_string.h.
879 * ax-general.c: Use string.h, not gdb_string.h.
880 * bcache.c: Use string.h, not gdb_string.h.
881 * bfin-tdep.c: Use string.h, not gdb_string.h.
882 * breakpoint.c: Use string.h, not gdb_string.h.
883 * build-id.c: Use string.h, not gdb_string.h.
884 * buildsym.c: Use string.h, not gdb_string.h.
885 * c-exp.y: Use string.h, not gdb_string.h.
886 * c-lang.c: Use string.h, not gdb_string.h.
887 * c-typeprint.c: Use string.h, not gdb_string.h.
888 * c-valprint.c: Use string.h, not gdb_string.h.
889 * charset.c: Use string.h, not gdb_string.h.
890 * cli-out.c: Use string.h, not gdb_string.h.
891 * cli/cli-cmds.c: Use string.h, not gdb_string.h.
892 * cli/cli-decode.c: Use string.h, not gdb_string.h.
893 * cli/cli-dump.c: Use string.h, not gdb_string.h.
894 * cli/cli-interp.c: Use string.h, not gdb_string.h.
895 * cli/cli-logging.c: Use string.h, not gdb_string.h.
896 * cli/cli-script.c: Use string.h, not gdb_string.h.
897 * cli/cli-setshow.c: Use string.h, not gdb_string.h.
898 * cli/cli-utils.c: Use string.h, not gdb_string.h.
899 * coffread.c: Use string.h, not gdb_string.h.
900 * common/common-utils.c: Use string.h, not gdb_string.h.
901 * common/filestuff.c: Use string.h, not gdb_string.h.
902 * common/linux-procfs.c: Use string.h, not gdb_string.h.
903 * common/linux-ptrace.c: Use string.h, not gdb_string.h.
904 * common/signals.c: Use string.h, not gdb_string.h.
905 * common/vec.h: Use string.h, not gdb_string.h.
906 * core-regset.c: Use string.h, not gdb_string.h.
907 * corefile.c: Use string.h, not gdb_string.h.
908 * corelow.c: Use string.h, not gdb_string.h.
909 * cp-abi.c: Use string.h, not gdb_string.h.
910 * cp-support.c: Use string.h, not gdb_string.h.
911 * cp-valprint.c: Use string.h, not gdb_string.h.
912 * cris-tdep.c: Use string.h, not gdb_string.h.
913 * d-lang.c: Use string.h, not gdb_string.h.
914 * dbxread.c: Use string.h, not gdb_string.h.
915 * dcache.c: Use string.h, not gdb_string.h.
916 * demangle.c: Use string.h, not gdb_string.h.
917 * dicos-tdep.c: Use string.h, not gdb_string.h.
918 * disasm.c: Use string.h, not gdb_string.h.
919 * doublest.c: Use string.h, not gdb_string.h.
920 * dsrec.c: Use string.h, not gdb_string.h.
921 * dummy-frame.c: Use string.h, not gdb_string.h.
922 * dwarf2-frame.c: Use string.h, not gdb_string.h.
923 * dwarf2loc.c: Use string.h, not gdb_string.h.
924 * dwarf2read.c: Use string.h, not gdb_string.h.
925 * elfread.c: Use string.h, not gdb_string.h.
926 * environ.c: Use string.h, not gdb_string.h.
927 * eval.c: Use string.h, not gdb_string.h.
928 * event-loop.c: Use string.h, not gdb_string.h.
929 * exceptions.c: Use string.h, not gdb_string.h.
930 * exec.c: Use string.h, not gdb_string.h.
931 * expprint.c: Use string.h, not gdb_string.h.
932 * f-exp.y: Use string.h, not gdb_string.h.
933 * f-lang.c: Use string.h, not gdb_string.h.
934 * f-typeprint.c: Use string.h, not gdb_string.h.
935 * f-valprint.c: Use string.h, not gdb_string.h.
936 * fbsd-nat.c: Use string.h, not gdb_string.h.
937 * findcmd.c: Use string.h, not gdb_string.h.
938 * findvar.c: Use string.h, not gdb_string.h.
939 * fork-child.c: Use string.h, not gdb_string.h.
940 * frame.c: Use string.h, not gdb_string.h.
941 * frv-linux-tdep.c: Use string.h, not gdb_string.h.
942 * frv-tdep.c: Use string.h, not gdb_string.h.
943 * gdb.c: Use string.h, not gdb_string.h.
944 * gdb_bfd.c: Use string.h, not gdb_string.h.
945 * gdbarch.c: Use string.h, not gdb_string.h.
946 * gdbtypes.c: Use string.h, not gdb_string.h.
947 * gnu-nat.c: Use string.h, not gdb_string.h.
948 * gnu-v2-abi.c: Use string.h, not gdb_string.h.
949 * gnu-v3-abi.c: Use string.h, not gdb_string.h.
950 * go-exp.y: Use string.h, not gdb_string.h.
951 * go-lang.c: Use string.h, not gdb_string.h.
952 * go32-nat.c: Use string.h, not gdb_string.h.
953 * hppa-hpux-tdep.c: Use string.h, not gdb_string.h.
954 * hppa-linux-nat.c: Use string.h, not gdb_string.h.
955 * hppanbsd-tdep.c: Use string.h, not gdb_string.h.
956 * hppaobsd-tdep.c: Use string.h, not gdb_string.h.
957 * i386-cygwin-tdep.c: Use string.h, not gdb_string.h.
958 * i386-dicos-tdep.c: Use string.h, not gdb_string.h.
959 * i386-linux-nat.c: Use string.h, not gdb_string.h.
960 * i386-linux-tdep.c: Use string.h, not gdb_string.h.
961 * i386-nto-tdep.c: Use string.h, not gdb_string.h.
962 * i386-sol2-tdep.c: Use string.h, not gdb_string.h.
963 * i386-tdep.c: Use string.h, not gdb_string.h.
964 * i386bsd-tdep.c: Use string.h, not gdb_string.h.
965 * i386gnu-nat.c: Use string.h, not gdb_string.h.
966 * i386nbsd-tdep.c: Use string.h, not gdb_string.h.
967 * i386obsd-tdep.c: Use string.h, not gdb_string.h.
968 * i387-tdep.c: Use string.h, not gdb_string.h.
969 * ia64-libunwind-tdep.c: Use string.h, not gdb_string.h.
970 * ia64-linux-nat.c: Use string.h, not gdb_string.h.
971 * inf-child.c: Use string.h, not gdb_string.h.
972 * inf-ptrace.c: Use string.h, not gdb_string.h.
973 * inf-ttrace.c: Use string.h, not gdb_string.h.
974 * infcall.c: Use string.h, not gdb_string.h.
975 * infcmd.c: Use string.h, not gdb_string.h.
976 * inflow.c: Use string.h, not gdb_string.h.
977 * infrun.c: Use string.h, not gdb_string.h.
978 * interps.c: Use string.h, not gdb_string.h.
979 * iq2000-tdep.c: Use string.h, not gdb_string.h.
980 * irix5-nat.c: Use string.h, not gdb_string.h.
981 * jv-exp.y: Use string.h, not gdb_string.h.
982 * jv-lang.c: Use string.h, not gdb_string.h.
983 * jv-typeprint.c: Use string.h, not gdb_string.h.
984 * jv-valprint.c: Use string.h, not gdb_string.h.
985 * language.c: Use string.h, not gdb_string.h.
986 * linux-fork.c: Use string.h, not gdb_string.h.
987 * linux-nat.c: Use string.h, not gdb_string.h.
988 * lm32-tdep.c: Use string.h, not gdb_string.h.
989 * m2-exp.y: Use string.h, not gdb_string.h.
990 * m2-typeprint.c: Use string.h, not gdb_string.h.
991 * m32c-tdep.c: Use string.h, not gdb_string.h.
992 * m32r-linux-nat.c: Use string.h, not gdb_string.h.
993 * m32r-linux-tdep.c: Use string.h, not gdb_string.h.
994 * m32r-rom.c: Use string.h, not gdb_string.h.
995 * m32r-tdep.c: Use string.h, not gdb_string.h.
996 * m68hc11-tdep.c: Use string.h, not gdb_string.h.
997 * m68k-tdep.c: Use string.h, not gdb_string.h.
998 * m68kbsd-tdep.c: Use string.h, not gdb_string.h.
999 * m68klinux-nat.c: Use string.h, not gdb_string.h.
1000 * m68klinux-tdep.c: Use string.h, not gdb_string.h.
1001 * m88k-tdep.c: Use string.h, not gdb_string.h.
1002 * macrocmd.c: Use string.h, not gdb_string.h.
1003 * main.c: Use string.h, not gdb_string.h.
1004 * mdebugread.c: Use string.h, not gdb_string.h.
1005 * mem-break.c: Use string.h, not gdb_string.h.
1006 * memattr.c: Use string.h, not gdb_string.h.
1007 * memory-map.c: Use string.h, not gdb_string.h.
1008 * mep-tdep.c: Use string.h, not gdb_string.h.
1009 * mi/mi-cmd-break.c: Use string.h, not gdb_string.h.
1010 * mi/mi-cmd-disas.c: Use string.h, not gdb_string.h.
1011 * mi/mi-cmd-env.c: Use string.h, not gdb_string.h.
1012 * mi/mi-cmd-stack.c: Use string.h, not gdb_string.h.
1013 * mi/mi-cmd-var.c: Use string.h, not gdb_string.h.
1014 * mi/mi-cmds.c: Use string.h, not gdb_string.h.
1015 * mi/mi-console.c: Use string.h, not gdb_string.h.
1016 * mi/mi-getopt.c: Use string.h, not gdb_string.h.
1017 * mi/mi-interp.c: Use string.h, not gdb_string.h.
1018 * mi/mi-main.c: Use string.h, not gdb_string.h.
1019 * mi/mi-parse.c: Use string.h, not gdb_string.h.
1020 * microblaze-rom.c: Use string.h, not gdb_string.h.
1021 * microblaze-tdep.c: Use string.h, not gdb_string.h.
1022 * mingw-hdep.c: Use string.h, not gdb_string.h.
1023 * minidebug.c: Use string.h, not gdb_string.h.
1024 * minsyms.c: Use string.h, not gdb_string.h.
1025 * mips-irix-tdep.c: Use string.h, not gdb_string.h.
1026 * mips-linux-tdep.c: Use string.h, not gdb_string.h.
1027 * mips-tdep.c: Use string.h, not gdb_string.h.
1028 * mips64obsd-tdep.c: Use string.h, not gdb_string.h.
1029 * mipsnbsd-tdep.c: Use string.h, not gdb_string.h.
1030 * mipsread.c: Use string.h, not gdb_string.h.
1031 * mn10300-linux-tdep.c: Use string.h, not gdb_string.h.
1032 * mn10300-tdep.c: Use string.h, not gdb_string.h.
1033 * monitor.c: Use string.h, not gdb_string.h.
1034 * moxie-tdep.c: Use string.h, not gdb_string.h.
1035 * mt-tdep.c: Use string.h, not gdb_string.h.
1036 * nbsd-tdep.c: Use string.h, not gdb_string.h.
1037 * nios2-linux-tdep.c: Use string.h, not gdb_string.h.
1038 * nto-procfs.c: Use string.h, not gdb_string.h.
1039 * nto-tdep.c: Use string.h, not gdb_string.h.
1040 * objc-lang.c: Use string.h, not gdb_string.h.
1041 * objfiles.c: Use string.h, not gdb_string.h.
1042 * opencl-lang.c: Use string.h, not gdb_string.h.
1043 * osabi.c: Use string.h, not gdb_string.h.
1044 * osdata.c: Use string.h, not gdb_string.h.
1045 * p-exp.y: Use string.h, not gdb_string.h.
1046 * p-lang.c: Use string.h, not gdb_string.h.
1047 * p-typeprint.c: Use string.h, not gdb_string.h.
1048 * parse.c: Use string.h, not gdb_string.h.
1049 * posix-hdep.c: Use string.h, not gdb_string.h.
1050 * ppc-linux-nat.c: Use string.h, not gdb_string.h.
1051 * ppc-sysv-tdep.c: Use string.h, not gdb_string.h.
1052 * ppcfbsd-tdep.c: Use string.h, not gdb_string.h.
1053 * ppcnbsd-tdep.c: Use string.h, not gdb_string.h.
1054 * ppcobsd-tdep.c: Use string.h, not gdb_string.h.
1055 * printcmd.c: Use string.h, not gdb_string.h.
1056 * procfs.c: Use string.h, not gdb_string.h.
1057 * prologue-value.c: Use string.h, not gdb_string.h.
1058 * python/py-auto-load.c: Use string.h, not gdb_string.h.
1059 * python/py-gdb-readline.c: Use string.h, not gdb_string.h.
1060 * ravenscar-thread.c: Use string.h, not gdb_string.h.
1061 * regcache.c: Use string.h, not gdb_string.h.
1062 * registry.c: Use string.h, not gdb_string.h.
1063 * remote-fileio.c: Use string.h, not gdb_string.h.
1064 * remote-m32r-sdi.c: Use string.h, not gdb_string.h.
1065 * remote-mips.c: Use string.h, not gdb_string.h.
1066 * remote-sim.c: Use string.h, not gdb_string.h.
1067 * remote.c: Use string.h, not gdb_string.h.
1068 * reverse.c: Use string.h, not gdb_string.h.
1069 * rs6000-aix-tdep.c: Use string.h, not gdb_string.h.
1070 * ser-base.c: Use string.h, not gdb_string.h.
1071 * ser-go32.c: Use string.h, not gdb_string.h.
1072 * ser-mingw.c: Use string.h, not gdb_string.h.
1073 * ser-pipe.c: Use string.h, not gdb_string.h.
1074 * ser-tcp.c: Use string.h, not gdb_string.h.
1075 * ser-unix.c: Use string.h, not gdb_string.h.
1076 * serial.c: Use string.h, not gdb_string.h.
1077 * sh-tdep.c: Use string.h, not gdb_string.h.
1078 * sh64-tdep.c: Use string.h, not gdb_string.h.
1079 * shnbsd-tdep.c: Use string.h, not gdb_string.h.
1080 * skip.c: Use string.h, not gdb_string.h.
1081 * sol-thread.c: Use string.h, not gdb_string.h.
1082 * solib-dsbt.c: Use string.h, not gdb_string.h.
1083 * solib-frv.c: Use string.h, not gdb_string.h.
1084 * solib-osf.c: Use string.h, not gdb_string.h.
1085 * solib-spu.c: Use string.h, not gdb_string.h.
1086 * solib-target.c: Use string.h, not gdb_string.h.
1087 * solib.c: Use string.h, not gdb_string.h.
1088 * somread.c: Use string.h, not gdb_string.h.
1089 * source.c: Use string.h, not gdb_string.h.
1090 * sparc-nat.c: Use string.h, not gdb_string.h.
1091 * sparc-sol2-tdep.c: Use string.h, not gdb_string.h.
1092 * sparc-tdep.c: Use string.h, not gdb_string.h.
1093 * sparc64-tdep.c: Use string.h, not gdb_string.h.
1094 * sparc64fbsd-tdep.c: Use string.h, not gdb_string.h.
1095 * sparc64nbsd-tdep.c: Use string.h, not gdb_string.h.
1096 * sparcnbsd-tdep.c: Use string.h, not gdb_string.h.
1097 * spu-linux-nat.c: Use string.h, not gdb_string.h.
1098 * spu-multiarch.c: Use string.h, not gdb_string.h.
1099 * spu-tdep.c: Use string.h, not gdb_string.h.
1100 * stabsread.c: Use string.h, not gdb_string.h.
1101 * stack.c: Use string.h, not gdb_string.h.
1102 * std-regs.c: Use string.h, not gdb_string.h.
1103 * symfile.c: Use string.h, not gdb_string.h.
1104 * symmisc.c: Use string.h, not gdb_string.h.
1105 * symtab.c: Use string.h, not gdb_string.h.
1106 * target.c: Use string.h, not gdb_string.h.
1107 * thread.c: Use string.h, not gdb_string.h.
1108 * tilegx-linux-nat.c: Use string.h, not gdb_string.h.
1109 * tilegx-tdep.c: Use string.h, not gdb_string.h.
1110 * top.c: Use string.h, not gdb_string.h.
1111 * tracepoint.c: Use string.h, not gdb_string.h.
1112 * tui/tui-command.c: Use string.h, not gdb_string.h.
1113 * tui/tui-data.c: Use string.h, not gdb_string.h.
1114 * tui/tui-disasm.c: Use string.h, not gdb_string.h.
1115 * tui/tui-file.c: Use string.h, not gdb_string.h.
1116 * tui/tui-layout.c: Use string.h, not gdb_string.h.
1117 * tui/tui-out.c: Use string.h, not gdb_string.h.
1118 * tui/tui-regs.c: Use string.h, not gdb_string.h.
1119 * tui/tui-source.c: Use string.h, not gdb_string.h.
1120 * tui/tui-stack.c: Use string.h, not gdb_string.h.
1121 * tui/tui-win.c: Use string.h, not gdb_string.h.
1122 * tui/tui-windata.c: Use string.h, not gdb_string.h.
1123 * tui/tui-winsource.c: Use string.h, not gdb_string.h.
1124 * typeprint.c: Use string.h, not gdb_string.h.
1125 * ui-file.c: Use string.h, not gdb_string.h.
1126 * ui-out.c: Use string.h, not gdb_string.h.
1127 * user-regs.c: Use string.h, not gdb_string.h.
1128 * utils.c: Use string.h, not gdb_string.h.
1129 * v850-tdep.c: Use string.h, not gdb_string.h.
1130 * valarith.c: Use string.h, not gdb_string.h.
1131 * valops.c: Use string.h, not gdb_string.h.
1132 * valprint.c: Use string.h, not gdb_string.h.
1133 * value.c: Use string.h, not gdb_string.h.
1134 * varobj.c: Use string.h, not gdb_string.h.
1135 * vax-tdep.c: Use string.h, not gdb_string.h.
1136 * vaxnbsd-tdep.c: Use string.h, not gdb_string.h.
1137 * vaxobsd-tdep.c: Use string.h, not gdb_string.h.
1138 * windows-nat.c: Use string.h, not gdb_string.h.
1139 * xcoffread.c: Use string.h, not gdb_string.h.
1140 * xml-support.c: Use string.h, not gdb_string.h.
1141 * xstormy16-tdep.c: Use string.h, not gdb_string.h.
1142 * xtensa-linux-nat.c: Use string.h, not gdb_string.h.
1143
1144 2013-11-18 Tom Tromey <tromey@redhat.com>
1145
1146 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add strerror
1147 and strstr.
1148 * gnulib/aclocal.m4: Update.
1149 * gnulib/config.in: Update.
1150 * gnulib/configure: Update.
1151 * gnulib/import/Makefile.am: Update.
1152 * gnulib/import/Makefile.in: Update.
1153 * gnulib/import/errno.in.h: New.
1154 * gnulib/import/intprops.h: New.
1155 * gnulib/import/m4/errno_h.m4: New.
1156 * gnulib/import/m4/gnulib-cache.m4: Update.
1157 * gnulib/import/m4/gnulib-comp.m4: Update.
1158 * gnulib/import/m4/strerror.m4: New.
1159 * gnulib/import/m4/strstr.m4: New.
1160 * gnulib/import/m4/sys_socket_h.m4: New.
1161 * gnulib/import/strerror-override.c: New.
1162 * gnulib/import/strerror-override.h: New.
1163 * gnulib/import/strerror.c: New.
1164 * gnulib/import/strstr.c: New.
1165
1166 2013-11-18 Tom Tromey <tromey@redhat.com>
1167
1168 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Split into
1169 multiple lines.
1170
1171 2013-11-18 Jose E. Marchesi <jose.marchesi@oracle.com>
1172
1173 * sparc-tdep.c (sparc_is_annulled_branch_insn): New function.
1174 * sparc-tdep.h: And its prototype.
1175
1176 * sparc64-linux-tdep.c (sparc64_linux_get_longjmp_target): New
1177 function.
1178 (sparc64_linux_init_abi): Register the get_longjmp_target hook.
1179
1180 2013-11-18 Pedro Alves <palves@redhat.com>
1181
1182 * dwarf2-frame.c (read_addr_from_reg): Remove stale comment and
1183 use unpack_pointer.
1184
1185 2013-11-18 Joel Brobecker <brobecker@adacore.com>
1186
1187 * mi/mi-main.c (mi_cmd_list_features): Add "language-options"
1188 to -list-features output.
1189
1190 2013-11-17 Joel Brobecker <brobecker@adacore.com>
1191
1192 * dwarf2expr.h (struct dwarf_expr_context_funcs)
1193 <read_addr_from_reg>: Renames "read_reg".
1194 * dwarf2-frame.c (read_addr_from_reg): Renames "read_reg".
1195 Adjust comment.
1196 (dwarf2_frame_ctx_funcs, execute_stack_op, dwarf2_frame_cache):
1197 Use read_addr_from_reg in place of read_reg.
1198 * dwarf2expr.c (execute_stack_op): Use read_addr_from_reg
1199 in place of read_reg.
1200 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Renames
1201 dwarf_expr_read_reg.
1202 (dwarf_expr_ctx_funcs): Replace dwarf_expr_read_reg
1203 with dwarf_expr_read_addr_from_reg.
1204 (needs_frame_read_addr_from_reg): Renames needs_frame_read_reg.
1205 (needs_frame_ctx_funcs): Replace needs_frame_read_reg with
1206 needs_frame_read_addr_from_reg.
1207
1208 2013-11-15 Jan Kratochvil <jan.kratochvil@redhat.com>
1209
1210 * NEWS (Changes in GDB 7.5) (New commands) (explore): Fix typo.
1211
1212 2013-11-15 Andreas Arnez <arnez@linux.vnet.ibm.com>
1213
1214 * dwarf2loc.c (chain_candidate): Prevent invoking memcpy with
1215 NULL.
1216
1217 2013-11-15 Tom Tromey <tromey@redhat.com>
1218
1219 PR c++/16117:
1220 * c-exp.y (lex_one_token): Add "is_quoted_name" argument.
1221 (classify_name): Likewise. Prefer a field of "this" over a
1222 filename.
1223 (classify_inner_name, yylex): Update.
1224
1225 2013-11-15 Joel Brobecker <brobecker@adacore.com>
1226
1227 * dwarf2expr.h (struct dwarf_expr_context_funcs) <read_reg>:
1228 Extend the documentation a bit.
1229 <get_reg_value>: New field.
1230 * dwarf2loc.c (dwarf_expr_get_reg_value)
1231 (needs_frame_get_reg_value): New functions.
1232 (dwarf_expr_ctx_funcs, needs_frame_ctx_funcs): Add "get_reg_value"
1233 callback.
1234 * dwarf2-frame.c (get_reg_value): New function.
1235 (dwarf2_frame_ctx_funcs): Add "get_reg_value" callback.
1236 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_regval_type>:
1237 Use new callback to compute result_val.
1238
1239 2013-11-15 Alan Modra <amodra@gmail.com>
1240
1241 * ppc64-tdep.c (ppc64_plt_entry_point): Renamed from..
1242 (ppc64_desc_entry_point): ..this. Update comments here and at
1243 call points.
1244 (ppc64_standard_linkage1, ppc64_standard_linkage2,
1245 ppc64_standard_linkage3): Update comments.
1246 (ppc64_standard_linkage4, ppc64_standard_linkage5,
1247 (ppc64_standard_linkage6, ppc64_standard_linkage7): New insn
1248 patterns.
1249 (ppc64_standard_linkage4_target): New function.
1250 (ppc64_skip_trampoline_code): Skip ELFv2 patterns too.
1251 * rs6000-tdep.c (skip_prologue): Skip ELFv2 r2 setup. Correct
1252 nop match. Fix comment wrap.
1253
1254 2013-11-14 Pedro Alves <palves@redhat.com>
1255
1256 * infrun.c (handle_signal_stop): Move STOP_QUIETLY,
1257 STOP_QUIETLY_REMOTE and 'stop_after_trap' handling earlier.
1258
1259 2013-11-14 Pedro Alves <palves@redhat.com>
1260
1261 * infrun.c (struct execution_control_state)
1262 <stepped_after_stopped_by_watchpoint>: New field.
1263 (get_inferior_stop_soon): New function.
1264 (handle_inferior_event): 'stepped_after_stopped_by_watchpoint' was
1265 moved to struct execution_control_state -- adjust. Use
1266 get_inferior_stop_soon. Split TARGET_WAITKIND_STOPPED handling to
1267 new function.
1268 (handle_signal_stop): New function, factored out from
1269 handle_inferior_event.
1270
1271 2013-11-14 Pedro Alves <palves@redhat.com>
1272
1273 * break-catch-sig.c (signal_catchpoint_explains_signal): Adjust to
1274 return a boolean.
1275 * breakpoint.c (bpstat_explains_signal): Adjust to return a
1276 boolean.
1277 (explains_signal_watchpoint, base_breakpoint_explains_signal):
1278 Adjust to return a boolean.
1279 * breakpoint.h (enum bpstat_signal_value): Delete.
1280 (struct breakpoint_ops) <explains_signal>: New returns a boolean.
1281 (bpstat_explains_signal): Likewise.
1282 * infrun.c (handle_inferior_event) <random signal checks>:
1283 bpstat_explains_signal now returns a boolean - adjust. No longer
1284 consider hiding signals.
1285
1286 2013-11-14 Pedro Alves <palves@redhat.com>
1287
1288 * breakpoint.c (bpstat_explains_signal) <Moribund locations>:
1289 Return BPSTAT_SIGNAL_PASS instead of BPSTAT_SIGNAL_HIDE.
1290 (explains_signal_watchpoint): Return BPSTAT_SIGNAL_PASS instead of
1291 BPSTAT_SIGNAL_HIDE.
1292 (base_breakpoint_explains_signal): Return BPSTAT_SIGNAL_PASS
1293 instead of BPSTAT_SIGNAL_HIDE.
1294 * infrun.c (handle_inferior_event): Rework random signal checks.
1295
1296 2013-11-14 Pedro Alves <palves@redhat.com>
1297
1298 * infrun.c (struct execution_control_state): Remove
1299 'random_signal' field.
1300 (handle_syscall_event): Use bpstat_causes_stop instead of
1301 bpstat_explains_signal. Don't set ecs->random_signal.
1302 (handle_inferior_event): New 'random_signal' local.
1303 <TARGET_WAITKIND_FORKED, TARGET_WAITKIND_VFORKED,
1304 TARGET_WAITKIND_EXECD>: Use bpstat_causes_stop instead of
1305 bpstat_explains_signal. Don't set ecs->random_signal.
1306 <TARGET_WAITKIND_STOPPED>: Adjust to use local instead of
1307 ecs->random_signal.
1308
1309 2013-11-14 Pedro Alves <palves@redhat.com>
1310
1311 * infrun.c (handle_inferior_event): Move comment from the
1312 function's body to the function's description, adjusted.
1313
1314 2013-11-14 Pedro Alves <palves@redhat.com>
1315
1316 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
1317 Handle STOP_QUIETLY_NO_SIGSTOP and STOP_QUIETLY_REMOTE here.
1318 Assert we never fall through out of the TARGET_WAITKIND_LOADED
1319 case.
1320
1321 2013-11-14 Tom Tromey <tromey@redhat.com>
1322
1323 * python/py-linetable.c (ltpy_has_line)
1324 (ltpy_get_all_source_lines): Fix loop termination condition.
1325
1326 2013-11-14 Joel Brobecker <brobecker@adacore.com>
1327
1328 * mi/mi-parse.h (struct mi_parse) <language>: New field.
1329 * mi/mi-main.c (mi_cmd_execute): Temporarily set language to
1330 PARSE->LANGUAGE during command execution, if set.
1331 * mi/mi-parse.c: Add "language.h" #include.
1332 (mi_parse): Add parsing of "--language" command option.
1333
1334 * NEWS: Add entry mentioning the new "--language" command option.
1335
1336 2013-11-14 Pedro Alves <palves@redhat.com>
1337 Joel Brobecker <brobecker@adacore.com>
1338
1339 * cli/cli-utils.h (extract_arg_const): Add declaration.
1340 * cli/cli-utils.c (extract_arg_const): New function.
1341 (extract_arg): Reimplement using extract_arg_const.
1342
1343 2013-11-14 Joel Brobecker <brobecker@adacore.com>
1344
1345 * language.h: Add "symtab.h" #include.
1346
1347 2013-11-13 Doug Evans <xdje42@gmail.com>
1348
1349 * breakpoint.c (bpstat_check_breakpoint_conditions): For thread
1350 specific breakpoints, don't evaluate breakpoint condition if
1351 different thread.
1352
1353 2013-11-13 Keith Seitz <keiths@redhat.com>
1354
1355 PR c++/7935
1356 PR c++/10541
1357 * cp-support.c (insepct_type): Add support for substituting
1358 namespace aliases, too.
1359 * dwarf2read.c (scan_partial_symbols): Add a partial symbol
1360 for DW_TAG_imported_declaration.
1361 (add_partial_symbol): Likewise.
1362 (process_die): Handle namespace aliases with
1363 read_namespace_alias.
1364 (die_needs_namespace): Add DW_TAG_imported_declaration.
1365 (read_namespace_alias): New function.
1366 (load_partial_dies): Load DW_TAG_imported_declaration, too.
1367 (new_symbol_full): Handle DW_TAG_imported_declaration.
1368
1369 2013-11-13 Keith Seitz <keiths@redhat.com>
1370
1371 * p-exp.y (uptok): Make first parameter const.
1372 (yylex): Make `tokstart' and `tokptr' const.
1373 Don't copy the lexer input to a temporary buffer.
1374 Make `p' const.
1375 Remove const workaround for parse_escape.
1376 Create a temporary buffer for a convenience variable instead
1377 of doing in-place modification of the input.
1378 If a match is found with a different case from the input,
1379 do not change the input at all.
1380 Use `tmp' to construct the resultant stoken instead of
1381 `tokstart'.
1382
1383 2013-11-13 Doug Evans <xdje42@gmail.com>
1384
1385 * breakpoint.c (breakpoint_cond_eval): Fix and enhance comment.
1386
1387 2013-11-13 Joel Brobecker <brobecker@adacore.com>
1388
1389 * mi/mi-main.c (mi_cmd_list_features): Replace "info-ada-exceptions"
1390 entry with "ada-exceptions".
1391
1392 2013-11-13 Joel Brobecker <brobecker@adacore.com>
1393
1394 * symfile.c (reread_symbols): Move call to set_objfile_per_bfd
1395 after re-initialization of OBJFILE's obstack.
1396
1397 2013-11-12 Doug Evans <xdje42@gmail.com>
1398
1399 * breakpoint.c (bpstat_check_breakpoint_conditions): Assert
1400 bs->stop != 0 on entry. Update function comment. Simplify early
1401 exit for frame mismatch. Reindent rest of function.
1402
1403 2013-11-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
1404
1405 * objc-lang.c (uniquify_strings): Prevent invoking qsort with
1406 NULL.
1407
1408 2013-11-12 Doug Evans <dje@google.com>
1409
1410 Work around gold/15646.
1411 * dwarf2read.c (read_index_from_section): Update comment.
1412 (struct dw2_symtab_iterator): New member global_seen.
1413 (dw2_symtab_iter_init): Initialize it.
1414 (dw2_symtab_iter_next): Skip duplicate global symbols.
1415 (dw2_expand_symtabs_matching): Ditto.
1416
1417 2013-11-12 Joel Brobecker <brobecker@adacore.com>
1418
1419 * mi/mi-cmds.h (mi_cmd_info_ada_exceptions): Add declaration.
1420 * mi/mi-cmds.c (mi_cmds): Add entry for -info-ada-exceptions
1421 command.
1422 * mi/mi-cmd-info.c: #include "ada-lang.c" and "arch-utils.c".
1423 (mi_cmd_info_ada_exceptions): New function.
1424 * mi/mi-main.c (mi_cmd_list_features): Add "info-ada-exceptions".
1425
1426 2013-11-12 Joel Brobecker <brobecker@adacore.com>
1427
1428 * ada-lang.h: #include "vec.h".
1429 (struct ada_exc_info): New.
1430 (ada_exc_info): New typedef.
1431 (DEF_VEC_O(ada_exc_info)): New vector.
1432 (ada_exceptions_list): Add declaration.
1433 * ada-lang.c (ada_is_exception_sym)
1434 (ada_is_non_standard_exception_sym, compare_ada_exception_info)
1435 (sort_remove_dups_ada_exceptions_list)
1436 (ada_exc_search_name_matches, ada_add_standard_exceptions)
1437 (ada_add_exceptions_from_frame, ada_add_global_exceptions)
1438 (ada_exceptions_list_1, ada_exceptions_list)
1439 (info_exceptions_command): New function.
1440 (_initialize_ada_language): Add "info exception" command.
1441
1442 2013-11-11 Phil Muldoon <pmuldoon@redhat.com>
1443
1444 PR python/15629
1445 * NEWS: Add linetable feature.
1446 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-linetable entries.
1447 * python/py-linetable.c: New file.
1448 * python/py-symtab.c (stpy_get_linetable): New function.
1449 * python/python-internal.h (symtab_to_linetable_object): Declare.
1450 (gdbpy_initialize_linetable): Ditto.
1451 * python/python.c (_initialize_python): Call
1452 gdbpy_initialize_linetable.
1453
1454 2013-11-11 Joel Brobecker <brobecker@adacore.com>
1455
1456 * ada-lang.c (create_ada_exception_catchpoint): Enhance
1457 the documentation of fields "except_string" and "condition".
1458 * mi/mi-cmd-catch.c (mi_cmd_catch_assert): Reallocate
1459 CONDITION on the heap before passing it to
1460 create_ada_exception_catchpoint.
1461 (mi_cmd_catch_exception): Likewise for EXCEPTION_NAME and
1462 CONDITION.
1463
1464 2013-11-11 Tom Tromey <tromey@redhat.com>
1465
1466 * config.in, configure: Rebuild.
1467 * configure.ac (HAVE_TKILL_SYSCALL): Check for "syscall".
1468
1469 2013-11-11 Joel Brobecker <brobecker@adacore.com>
1470
1471 * remote-sim.c (gdbsim_detach): Break declaration into
1472 shorter lines. No code change.
1473
1474 2013-11-11 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
1475
1476 * remote-sim.c (gdbsim_detach): Fix prototype.
1477
1478 2013-11-08 Doug Evans <dje@google.com>
1479
1480 * dwarf2read.c (dwarf2_read_debug): Change to unsigned int.
1481 (create_debug_types_hash_table): Only print debugging messages for
1482 each TU if dwarf2-read >= 2.
1483 (process_queue): Ditto.
1484 (_initialize_dwarf2_read): Make "set debug dwarf2-read" a zuinteger.
1485 Update doc string.
1486
1487 2013-11-08 Tom Tromey <tromey@redhat.com>
1488
1489 * configure: Rebuild.
1490 * configure.ac: Remove mentions of HAVE_MULTIPLE_PROC_FDS.
1491
1492 2013-11-08 Tom Tromey <tromey@redhat.com>
1493
1494 * configure, config.in: Rebuild.
1495 * configure.ac: Remove unused configury.
1496
1497 2013-11-08 Tom Tromey <tromey@redhat.com>
1498
1499 * m32c-tdep.c: Use gdb_string.h.
1500
1501 2013-11-08 Tom Tromey <tromey@redhat.com>
1502
1503 * configure, config.in: Rebuild.
1504 * configure.ac: Remove all link.h-related checks.
1505
1506 2013-11-08 Tom Tromey <tromey@redhat.com>
1507
1508 * acinclude.m4: Include common.m4.
1509 * common/common.m4: New file.
1510 * configure, config.in: Rebuild.
1511 * configure.ac: Use GDB_AC_COMMON.
1512
1513 2013-11-08 Doug Evans <dje@google.com>
1514
1515 * NEWS: Mention that "set debug symtab-create" now accepts a
1516 verbosity level.
1517 * buildsym.c (end_symtab_from_static_block): Call set_symtab_primary
1518 to set the symtab's primary flag.
1519 * jit.c (finalize_symtab): Ditto.
1520 * mdebugread.c (psymtab_to_symtab_1): Ditto.
1521 * symfile.c (allocate_symtab): Only print debugging messages for
1522 symtab_create_debug levels 2 and higher.
1523 * symtab.c (symtab_create_debug): Change type to unsigned int.
1524 (set_symtab_primary): New function.
1525 (_initialize_symtab): Change "set debug symtab-create" to a
1526 zuinteger option.
1527 * symtab.h (set_symtab_primary): Declare.
1528 (symtab_create_debug): Update decl.
1529
1530 2013-11-08 Tom Tromey <tromey@redhat.com>
1531
1532 * aix-thread.c (aix_thread_detach): Update.
1533 * corelow.c (core_detach): Update.
1534 * darwin-nat.c (darwin_detach): Update.
1535 * dec-thread.c (dec_thread_detach): Update.
1536 * gnu-nat.c (gnu_detach): Update.
1537 * go32-nat.c (go32_detach): Update.
1538 * inf-ptrace.c (inf_ptrace_detach): Update.
1539 * inf-ttrace.c (inf_ttrace_detach): Update.
1540 * linux-fork.c (linux_fork_detach): Update.
1541 * linux-fork.h (linux_fork_detach): Update.
1542 * linux-nat.c (linux_nat_detach): Update. Introduce "tem"
1543 local for const-correctness.
1544 * linux-thread-db.c (thread_db_detach): Update.
1545 * monitor.c (monitor_detach): Update.
1546 * nto-procfs.c (procfs_detach): Update.
1547 * procfs.c (procfs_detach): Update.
1548 * record.c (record_detach): Update.
1549 * record.h (record_detach): Update.
1550 * remote-m32r-sdi.c (m32r_detach): Update.
1551 * remote-mips.c (mips_detach): Update.
1552 * remote-sim.c (gdbsim_detach): Update.
1553 * remote.c (remote_detach_1, remote_detach)
1554 (extended_remote_detach): Update.
1555 * sol-thread.c (sol_thread_detach): Update.
1556 * target.c (target_detach): Make "args" const.
1557 (init_dummy_target): Update.
1558 * target.h (struct target_ops) <to_detach>: Make argument const.
1559 (target_detach): Likewise.
1560 * windows-nat.c (windows_detach): Update.
1561
1562 2013-11-07 Doug Evans <dje@google.com>
1563
1564 PR 11786
1565 * solib-svr4.c (svr4_exec_displacement): Ignore filesz, memsz, flags
1566 and align fields for PT_GNU_RELRO segments.
1567
1568 2013-11-07 Phil Muldoon <pmuldoon@redhat.com>
1569
1570 PR python/15747
1571 * python/py-cmd.c: Add COMPLETE_EXPRESSION constant.
1572
1573 2013-11-07 Phil Muldoon <pmuldoon@redhat.com>
1574
1575 * NEWS: Document Python temporary breakpoint support.
1576 * python/py-breakpoint.c (bppy_get_temporary): New function.
1577 (bppy_init): New keyword: temporary. Parse it and set breakpoint
1578 to temporary if True.
1579
1580 2013-11-07 Jose E. Marchesi <jose.marchesi@oracle.com>
1581
1582 * sparc-tdep.c (sparc_analyze_control_transfer): Assertion
1583 removed to allow analyzing unconditional branch instructions
1584 with PC-relative offsets of zero.
1585
1586 2013-11-07 Yao Qi <yao@codesourcery.com>
1587
1588 * mi/mi-cmd-var.c: Include "language.h".
1589 (mi_cmd_var_info_expression): Get language name from
1590 language_defn.
1591 * varobj.c (varobj_language_string): Remove.
1592 (variable_language): Remove declaration.
1593 (languages): Remove.
1594 (varobj_get_language): Change the type of return value.
1595 (variable_language): Remove.
1596 * varobj.h (enum varobj_languages): Remove.
1597 (varobj_language_string): Remove declaration.
1598 (varobj_get_language): Update declaration.
1599
1600 2013-11-07 Yao Qi <yao@codesourcery.com>
1601
1602 * language.h (struct language_defn) <la_natural_name>: New
1603 field.
1604 * ada-lang.c (ada_language_defn): Initialize field
1605 'la_natural_name'.
1606 * c-lang.c (c_language_defn): Likewise.
1607 (cplus_language_defn, asm_language_defn): Likewise.
1608 * d-lang.c (d_language_defn): Likewise.
1609 * f-lang.c (f_language_defn): Likewise.
1610 * go-lang.c (go_language_defn): Likewise.
1611 * jv-lang.c (java_language_defn): Likewise.
1612 * language.c (unknown_language_defn ): Likewise.
1613 (auto_language_defn): Likewise.
1614 * m2-lang.c (m2_language_defn): Likewise.
1615 * objc-lang.c (objc_language_defn): Likewise.
1616 * opencl-lang.c (opencl_language_defn): Likewise.
1617 * p-lang.c (pascal_language_defn): Likewise.
1618
1619 2013-11-07 Yao Qi <yao@codesourcery.com>
1620
1621 * language.c (language_str): Return const char *.
1622 (add_language): Add const to 'language_names'
1623 * language.h (struct language_defn) <la_name>: Add const.
1624 (language_str: Update declaration.
1625
1626 2013-11-06 Andreas Arnez <arnez@linux.vnet.ibm.com>
1627
1628 * s390-linux-nat.c (s390_read_description): Consider the TE field
1629 in the HWCAP for determining 'have_regset_tdb'.
1630
1631 2013-11-06 Will Newton <will.newton@linaro.org>
1632
1633 PR gdb/12866
1634 * dwarf2read.c (skip_one_die): Sanity check DW_AT_sibling
1635 values. (read_partial_die): Likewise.
1636
1637 2013-11-06 Muhammad Bilal <mbilal@codesourcery.com>
1638
1639 PR cli/16122
1640 * top.c (command_line_input): Unify interactivity tests to use
1641 input_from_terminal_p.
1642 * event-top.c (command_line_handler): Likewise.
1643
1644 2013-11-06 Yao Qi <yao@codesourcery.com>
1645
1646 * Makefile.in (check-perf): New target.
1647
1648 2013-11-05 Will Newton <will.newton@linaro.org>
1649
1650 PR gdb/7670
1651 * arm-tdep.c (print_fpu_flags): Use filtered output routines.
1652 (arm_print_float_info): Likewise.
1653
1654 2013-11-04 Anton Blanchard <anton@samba.org>
1655
1656 * target.c (memory_xfer_partial): Cap write to 4KB.
1657
1658 2013-11-01 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
1659
1660 * breakpoint.c (create_longjmp_master_breakpoint): Allow libc
1661 probe scan even when the arch provides no get_longjmp_target.
1662
1663 2013-10-31 Pedro Alves <palves@redhat.com>
1664
1665 * infrun.c (handle_syscall_event): Don't set or clear stop_signal.
1666 (handle_inferior_event) <TARGET_WAITKIND_FORKED,
1667 TARGET_WAITKIND_VFORKED>: Don't set stop_signal to
1668 GDB_SIGNAL_TRAP, or clear it. Pass GDB_SIGNAL_0 to
1669 bpstat_explains signal, instead of GDB_SIGNAL_TRAP.
1670 <bpstat handling>: If the bpstat chain wants the signal to be
1671 hidden, then set stop_signal to GDB_SIGNAL_0 instead of
1672 GDB_SIGNAL_TRAP.
1673
1674 2013-10-31 Andrew Burgess <aburgess@broadcom.com>
1675
1676 * breakpoint.c (update_watchpoint): Update error message and add
1677 an additional error message.
1678
1679 2013-10-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1680
1681 * s390-tdep.h: Rename to...
1682 * s390-linux-tdep.h: ...here.
1683 * s390-tdep.c: Rename to...
1684 * s390-linux-tdep.c: ...here. Adjust #include.
1685 * s390-nat.c: Rename to...
1686 * s390-linux-nat.c: ...here. Adjust #include.
1687 * config/s390/s390.mh: Rename to...
1688 * config/s390/linux.mh: ...here. Reflect rename s390-nat.o ->
1689 s390-linux-nat.o.
1690 * configure.host: Reflect host rename "s390" -> "linux".
1691 * configure.tgt: Reflect rename s390-tdep.o -> s390-linux-tdep.o.
1692 * Makefile.in (ALL_TARGET_OBS): Likewise.
1693 (HFILES_NO_SRCDIR): Reflect rename s390-tdep.h ->
1694 s390-linux-tdep.h.
1695 (ALLDEPFILES): Reflect rename of .c files.
1696
1697 2013-10-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1698
1699 * s390-nat.c: Whitespace cleanup.
1700 * s390-tdep.c: Likewise.
1701 * s390-tdep.h: Remove empty line at end of file.
1702
1703 2013-10-30 Maciej W. Rozycki <macro@codesourcery.com>
1704
1705 * linux-tdep.c (linux_corefile_thread_callback): Preinitialize
1706 siginfo_size.
1707
1708 2013-10-29 Tom Tromey <tromey@redhat.com>
1709
1710 * utils.c (reg): Move undefinition...
1711 * gdb_curses.h: ... here. Update comment to mention AIX.
1712
1713 2013-10-29 Nicolas Blanc <nicolas.blanc@intel.com>
1714
1715 * exec.h (add_target_sections_of_objfile): New declaration.
1716 * exec.c (add_target_sections_of_objfile): New function.
1717 * symfile.c (add_symbol_file_command): Update current target sections.
1718 (remove_symbol_file_command): New command.
1719 (symfile_free_objfile): New function.
1720 (_initialize_symfile): Register observer for free_objfile events.
1721 * NEWS: Add description of the remove-symbol-file command.
1722 * breakpoint.c (disable_breakpoints_in_freed_objfile): New function.
1723 * objfiles.c (free_objfile): Notify free_objfile.
1724 (is_addr_in_objfile): New function.
1725 * objfiles.h (is_addr_in_objfile): New declaration.
1726 * printcmd.c (clear_dangling_display_expressions): Act upon free_objfile
1727 events instead of solib_unloaded events.
1728 (_initialize_printcmd): Register observer for free_objfile instead
1729 of solib_unloaded notifications.
1730 * solib.c (remove_user_added_objfile): New function.
1731 (_initialize_symfile): Add remove-symbol-file.
1732
1733 2013-10-29 Andrew Burgess <aburgess@broadcom.com>
1734
1735 * infcmd.c (default_print_one_register_info): Use val_print to
1736 print all values even optimized out or unavailable ones. Don't
1737 try to print a raw form of optimized out or unavailable values.
1738
1739 2013-10-29 Yao Qi <yao@codesourcery.com>
1740
1741 * auto-load.c (auto_load_pspace_data_cleanup): Get data from
1742 parameter 'arg' instead of from program_space_data.
1743 * objfiles.c (objfiles_pspace_data_cleanup): Likewise.
1744 * solib-darwin.c (darwin_pspace_data_cleanup): Likewise.
1745 * solib-dsbt.c (dsbt_pspace_data_cleanup): Likewise.
1746 * solib-svr4.c (svr4_pspace_data_cleanup): Likewise.
1747 * inflow.c (inflow_inferior_data_cleanup): Get data from
1748 parameter 'arg' instead of inferior_data.
1749 * registry.h: Add comments.
1750
1751 2013-10-28 Pedro Alves <palves@redhat.com>
1752
1753 * breakpoint.c (watchpoints_triggered)
1754 <!target_stopped_data_address>: Hardcode return 1.
1755
1756 2013-10-28 Pedro Alves <palves@redhat.com>
1757
1758 * infrun.c (process_event_stop_test): Remove unnecessary scoping
1759 level and reindent.
1760
1761 2013-10-28 Pedro Alves <palves@redhat.com>
1762
1763 * infrun.c (process_event_stop_test): New function, factored out
1764 from handle_inferior_event.
1765 (handle_inferior_event): 'process_event_stop_test' is now a
1766 function instead of a goto label -- adjust.
1767
1768 2013-10-28 Pedro Alves <palves@redhat.com>
1769
1770 * infrun.c (handle_inferior_event): Move process_event_stop_test
1771 goto label to the else branch of the ecs->random_signal check,
1772 along with FRAME and GDBARCH re-fetching.
1773
1774 2013-10-28 Pedro Alves <palves@redhat.com>
1775
1776 * infrun.c (switch_back_to_stepped_thread): New function, factored
1777 out from handle_inferior_event.
1778 (handle_inferior_event): Adjust to call
1779 switch_back_to_stepped_thread. Call it also at the tail of the
1780 random signal handling, and return, instead of also handling
1781 random signals just before the stepping tests.
1782
1783 2013-10-28 Pedro Alves <palves@redhat.com>
1784
1785 * infrun.c (clear_stop_func): Delete.
1786 (handle_inferior_event): Don't call clear_stop_func and don't
1787 clear 'ecs->random_signal'.
1788
1789 2013-10-27 Yao Qi <yao@codesourcery.com>
1790
1791 * varobj.c (struct varobj_root) <lang>: Rename to 'lang_ops'.
1792 (varobj_create, varobj_get_path_expr): Update.
1793 (varobj_value_has_mutated, varobj_update): Likewise.
1794 (create_child_with_value, new_root_variable): Likewise.
1795 (number_of_children, name_of_variable): Likewise.
1796 (value_of_child, my_value_of_variable): Likewise.
1797 (varobj_value_is_changeable_p): Likewise.
1798
1799 2013-10-25 Yao Qi <yao@codesourcery.com>
1800
1801 * language.h (struct lang_varobj_ops): Declare.
1802 (struct language_defn) <la_varobj_ops>: New field.
1803 * ada-lang.c: Include "varobj.h"
1804 (defn ada_language_defn): Initialize field 'la_varobj_ops' with
1805 ada_varobj_ops.
1806 * c-lang.c: Include "varobj.h"
1807 (c_language_defn): Initialize field 'la_varobj_ops' with
1808 c_varobj_ops.
1809 (cplus_language_defn): Initialize field 'la_varobj_ops' with
1810 cplus_varobj_ops.
1811 (asm_language_defn): Initialize field 'la_varobj_ops' with
1812 default_varobj_ops.
1813 (minimal_language_defn): Likewise.
1814 * d-lang.c (d_language_defn): Likewise.
1815 * f-lang.c (f_language_defn): Likewise.
1816 * go-lang.c (go_language_defn): Likewise.
1817 * m2-lang.c (m2_language_defn): Likewise.
1818 * objc-lang.c (objc_language_defn): Likewise.
1819 * opencl-lang.c (opencl_language_defn): Likewise.
1820 * p-lang.c (pascal_language_defn): Likewise.
1821 * language.c (unknown_language_defn): Likewise.
1822 (auto_language_defn): Likewise.
1823 (local_language_defn): Likewise.
1824 * jv-lang.c (java_language_defn): Initialize field
1825 'la_varobj_ops' with java_varobj_ops.
1826 * varobj.c (varobj_create): Update.
1827 * varobj.h (default_varobj_ops): Define macro.
1828
1829 2013-10-25 Pedro Alves <palves@redhat.com>
1830
1831 * cp-valprint.c (cp_print_value_fields): No longer handle a NULL
1832 static field value.
1833 (cp_print_static_field): If the value is entirely optimized out,
1834 print <optimized out> here.
1835 * jv-valprint.c (java_print_value_fields): No longer handle a NULL
1836 static field value.
1837 * p-valprint.c (pascal_object_print_static_field): If the value is
1838 entirely optimized out, print <optimized out> here.
1839 * valops.c (do_search_struct_field)
1840 (value_struct_elt_for_reference): No longer handle a NULL static
1841 field value.
1842 * value.c (value_static_field): Return an optimized out value
1843 instead of NULL.
1844
1845 2013-10-25 Yao Qi <yao@codesourcery.com>
1846
1847 * remote.c (remote_traceframe_info): Return early if
1848 traceframe is not selected.
1849
1850 2013-10-25 Yao Qi <yao@codesourcery.com>
1851
1852 * tracepoint.c (traceframe_fun): Remove.
1853 (traceframe_sal): Remove.
1854 (set_traceframe_context): Add local variables.
1855
1856 2013-10-25 Joel Brobecker <brobecker@adacore.com>
1857
1858 * varobj.h (struct lang_varobj_ops): Remove spaces between '*'
1859 and parameter name.
1860
1861 2013-10-24 Maciej W. Rozycki <macro@codesourcery.com>
1862
1863 * linux-tdep.c (linux_corefile_thread_callback): Propagate any
1864 failure from register information collection.
1865
1866 2013-10-24 Maciej W. Rozycki <macro@codesourcery.com>
1867
1868 * linux-tdep.c (linux_corefile_thread_data): Remove `num_notes'
1869 member.
1870 (linux_corefile_thread_callback): Update accordingly.
1871 (linux_make_corefile_notes): Likewise.
1872
1873 2013-10-24 Pedro Alves <palves@redhat.com>
1874
1875 * NEWS (New options): Mention set/show startup-with-shell.
1876 * config/alpha/nm-osf3.h (START_INFERIOR_TRAPS_EXPECTED): Set to 2
1877 instead of 3.
1878 * fork-child.c (fork_inferior, startup_inferior): Handle 'set
1879 startup-with-shell'.
1880 (show_startup_with_shell): New function.
1881 (_initialize_fork_child): Register the set/show startup-with-shell
1882 commands.
1883 * inf-ptrace.c (inf_ptrace_create_inferior): Remove comment.
1884 * inf-ttrace.c (inf_ttrace_him): Remove comment.
1885 * procfs.c (procfs_init_inferior): Remove comment.
1886 * infcmd.c (startup_with_shell): New global.
1887 * inferior.h (startup_with_shell): Declare global.
1888 (STARTUP_WITH_SHELL): Delete.
1889 (START_INFERIOR_TRAPS_EXPECTED): Set to 1 by default instead of 2.
1890
1891 2013-10-23 Pedro Alves <palves@redhat.com>
1892
1893 * common/gdb_signals.h (gdb_signal_to_symbol_string): Declare.
1894 * common/signals.c: Include "gdb_assert.h".
1895 (signals): New field 'symbol'.
1896 (SET): Use the 'symbol' parameter.
1897 (gdb_signal_to_symbol_string): New function.
1898 * infrun.c (handle_inferior_event) <random signal>: In debug
1899 output, print the random signal enum as string in addition to its
1900 number.
1901 * target/waitstatus.c (target_waitstatus_to_string): Print the
1902 signal's enum value as string instead of the (POSIX) signal name.
1903
1904 2013-10-23 Gary Benson <gbenson@redhat.com>
1905
1906 PR 16013
1907 * common/linux-osdata.c (command_from_pid): Reduced size of cmd
1908 from 32 to 18. Adjusted fscanf format string accordingly.
1909 (Avoids leaving cmd unterminated.)
1910 (print_sockets): Do not parse tlen, inode, sl, timeout, txq, rxq,
1911 trun, retn or extra. (Avoids leaving extra unterminated.) Check
1912 that local_address and remote_address will not overflow.
1913 (linux_xfer_osdata_modules): Parse lines using strtok to avoid
1914 leaving dependencies unterminated. Parse size as "%u" to match
1915 definition.
1916
1917 2013-10-22 Pedro Alves <palves@redhat.com>
1918
1919 * infrun.c (handle_inferior_event) <thread hop>: Don't clear or
1920 set ecs->random signal.
1921
1922 2013-10-22 Pedro Alves <palves@redhat.com>
1923
1924 * infrun.c (keep_going): Update comments.
1925
1926 2013-10-22 Pedro Alves <palves@redhat.com>
1927
1928 * remote.c (remote_parse_stop_reply) <'T'/'S'/'X' replies>: Map
1929 invalid signal numbers to GDB_SIGNAL_UNKNOWN.
1930
1931 2013-10-22 Pedro Alves <palves@redhat.com>
1932
1933 * include/gdb/signals.def (TARGET_EXC_BAD_ACCESS): Rename to
1934 GDB_EXC_BAD_ACCESS.
1935 (TARGET_EXC_BAD_INSTRUCTION): Rename to GDB_EXC_BAD_INSTRUCTION.
1936 (TARGET_EXC_ARITHMETIC): Rename to GDB_EXC_ARITHMETIC.
1937 (TARGET_EXC_EMULATION): Rename to GDB_EXC_EMULATION.
1938 (TARGET_EXC_SOFTWARE): Rename to GDB_EXC_SOFTWARE.
1939 (TARGET_EXC_BREAKPOINT): Rename to GDB_EXC_BREAKPOINT.
1940 (GDB_SIGNAL_LAST): Change description string.
1941 * common/signals.c (gdb_signal_from_host, do_gdb_signal_to_host):
1942 Adjust to signal renaming.
1943 * darwin-nat.c (darwin_decode_message): Likewise.
1944
1945 2013-10-22 Jose E. Marchesi <jose.marchesi@oracle.com>
1946
1947 * MAINTAINERS (Write After Approval): Add myself to the list.
1948
1949 2013-10-18 Andrew Burgess <aburgess@broadcom.com>
1950
1951 * breakpoint.c (update_watchpoint): If hardware watchpoints are
1952 forced off, downgrade them to software watchpoints if possible,
1953 and error out if not possible.
1954 (watch_command_1): Move watchpoint type selection closer to
1955 watchpoint creation, and extend the comments.
1956
1957 2013-10-18 Pedro Alves <palves@redhat.com>
1958
1959 PR gdb/16062
1960 * infrun.c (handle_inferior_event): Keep going if we got a random
1961 signal we should not stop for, instead of falling through to the
1962 step tests.
1963
1964 2013-10-18 Yao Qi <yao@codesourcery.com>
1965
1966 * c-varobj.c (cplus_number_of_children): Fix indentation.
1967
1968 2013-10-17 Tom Tromey <tromey@redhat.com>
1969
1970 PR gdb/15995:
1971 * printcmd.c (printcmd): Call gdb_flush.
1972
1973 2013-10-17 Tom Tromey <tromey@redhat.com>
1974
1975 * elfread.c (struct elfinfo) <stabindexsect>: Remove.
1976 (elf_locate_sections): Update.
1977
1978 2013-10-17 Yao Qi <yao@codesourcery.com>
1979
1980 * Makefile.in (HFILES_NO_SRCDIR): Remove ada-varobj.h.
1981 * ada-varobj.c: Remove the include of ada-varobj.h.
1982 (ada_varobj_get_number_of_children): Declare.
1983 (ada_varobj_get_name_of_child): Make it static.
1984 (ada_varobj_get_path_expr_of_child): Likewise.
1985 (ada_varobj_get_value_of_child): Likewise.
1986 (ada_varobj_get_type_of_child): Likewise.
1987 (ada_varobj_get_value_of_array_variable): Likewise.
1988 * ada-varobj.h: Remove.
1989
1990 2013-10-17 Yao Qi <yao@codesourcery.com>
1991
1992 * Makefile.in (SFILES): Add c-varobj.c and jv-varobj.c.
1993 (COMMON_OBS): Add c-varobj.o and jv-varobj.o.
1994 * ada-varobj.c: Include "varobj.h".
1995 (ada_number_of_children): New. Moved from varobj.c.
1996 (ada_name_of_variable, ada_name_of_child): Likewise.
1997 (ada_path_expr_of_child, ada_value_of_child): Likewise.
1998 (ada_type_of_child, ada_value_of_variable): Likewise.
1999 (ada_value_is_changeable_p, ada_value_has_mutated): Likewise.
2000 (ada_varobj_ops): New.
2001 * c-varobj.c, jv-varobj.c: New file. Moved from varobj.c.
2002 * gdbtypes.c (get_target_type): New. Moved from varobj.c.
2003 * gdbtypes.h (get_target_type): Declare.
2004 * varobj.c: Remove the inclusion of "ada-varobj.h" and
2005 "ada-lang.h".
2006 (ANONYMOUS_STRUCT_NAME): Move it to c-varobj.c.
2007 (ANONYMOUS_UNION_NAME): Likewise.
2008 (get_type, get_value_type, get_target_type): Remove declarations.
2009 (value_get_print_value, varobj_value_get_print_value): Likewise.
2010 (c_number_of_children, c_name_of_variable): Likewise.
2011 (c_name_of_child, c_path_expr_of_child): Likewise.
2012 (c_value_of_child, c_type_of_child): Likewise.
2013 (c_value_of_variable, cplus_number_of_children): Likewise.
2014 (cplus_class_num_children, cplus_name_of_variable): Likewise.
2015 (cplus_name_of_child, cplus_path_expr_of_child): Likewise.
2016 (cplus_value_of_child, cplus_type_of_child): Likewise.
2017 (cplus_value_of_variable, java_number_of_children): Likewise.
2018 (java_name_of_variable, java_name_of_child): Likewise.
2019 (java_path_expr_of_child, java_value_of_child): Likewise.
2020 (java_type_of_child, java_value_of_variable): Likewise.
2021 (ada_number_of_children, ada_name_of_variable): Likewise.
2022 (ada_name_of_child, ada_path_expr_of_child): Likewise.
2023 (ada_value_of_child, ada_type_of_child): Likewise.
2024 (ada_value_of_variable, ada_value_is_changeable_p): Likewise.
2025 (ada_value_has_mutated): Likewise.
2026 (struct language_specific): Move it to varobj.h.
2027 (CPLUS_FAKE_CHILD): Move it to varobj.h.
2028 (restrict_range): Rename it varobj_restrict_range. Make it extern.
2029 Callers update.
2030 (get_path_expr_parent): Rename it to varobj_get_path_expr_parent.
2031 Make it extern.
2032 (is_anonymous_child): Move it to c-varobj.c and rename to
2033 varobj_is_anonymous_child. Caller update.
2034 (get_type): Move it to c-varobj.c.
2035 (get_value_type): Rename it varobj_get_value_type. Make it
2036 extern.
2037 (get_target_type): Move it gdbtypes.c.
2038 (varobj_formatted_print_options): New function.
2039 (value_get_print_value): Rename it to
2040 varobj_value_get_print_value and make it extern.
2041 (varobj_value_is_changeable_p): Make it extern.
2042 (adjust_value_for_child_access): Move it to c-varobj.c.
2043 (default_value_is_changeable_p): Rename it to
2044 varobj_default_value_is_changeable_p. Make it extern.
2045 (c_number_of_children, c_name_of_variable): Move it to c-varobj.c
2046 (c_name_of_child, c_path_expr_of_child): Likewise.
2047 (c_value_of_child, c_type_of_child): Likewise.
2048 (c_value_of_variable, cplus_number_of_children): Likewise.
2049 (cplus_class_num_children, cplus_name_of_variable): Likewise.
2050 (cplus_name_of_child, cplus_path_expr_of_child): Likewise.
2051 (cplus_value_of_child, cplus_type_of_child): Likewise.
2052 (cplus_value_of_variable): Likewise.
2053 (java_number_of_children, java_name_of_variable): Move it to jv-varobj.c.
2054 (java_name_of_child, java_path_expr_of_child): Likewise.
2055 (java_value_of_child, java_type_of_child): Likewise.
2056 (java_value_of_variable): Likewise.
2057 (ada_number_of_children, ada_name_of_variable): Move it to ada-varobj.c.
2058 (ada_name_of_child, ada_path_expr_of_child): Likewise.
2059 (ada_value_of_child, ada_type_of_child): Likewise.
2060 (ada_value_of_variable, ada_value_is_changeable_p): Likewise.
2061 (ada_value_has_mutated): Likewise.
2062 * varobj.h (CPLUS_FAKE_CHILD): New macro, moved from varobj.c.
2063 (struct lang_varobj_ops): New. Renamed by 'struct language_specific'.
2064 (c_varobj_ops, cplus_varobj_ops): Declare.
2065 (java_varobj_ops, ada_varobj_ops): Declare.
2066 (varobj_default_value_is_changeable_p): Declare.
2067 (varobj_value_is_changeable_p): Declare.
2068 (varobj_get_value_type, varobj_is_anonymous_child): Declare.
2069 (varobj_get_path_expr_parent): Declare.
2070 (varobj_value_get_print_value): Declare.
2071 (varobj_formatted_print_options): Declare.
2072 (varobj_restrict_range): Declare.
2073
2074 2013-10-17 Luis Machado <lgustavo@codesourcery.com>
2075
2076 * target/waitstatus.h (target_waitkind): Remove spurious
2077 character from the comments.
2078
2079 2013-10-17 Joel Brobecker <brobecker@adacore.com>
2080
2081 * gdbarch.sh (get_longjmp_target): Add method documentation.
2082 * gdbarch.h: Regenerate.
2083
2084 2013-10-16 Tom Tromey <tromey@redhat.com>
2085
2086 * dbxread.c (read_dbx_symtab) <bss_ext_symbol>: Remove unused
2087 label.
2088
2089 2013-10-16 Luis Machado <lgustavo@codesourcery.com>
2090
2091 * gcore.in: Call GDB using the full path to the gcore script.
2092 Error out if the GDB binary is not found.
2093
2094 2013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
2095
2096 PR gdb/16014
2097 * dwarf2read.c (dw2_get_real_path): Remove unnecessary call to
2098 sizeof.
2099
2100 2013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
2101
2102 PR gdb/16042
2103 * target.c (target_disable_btrace): Fix invalid return value for
2104 void function.
2105 (target_teardown_btrace): Likewise.
2106
2107 2013-10-14 Yao Qi <yao@codesourcery.com>
2108
2109 * varobj.c (struct varobj): Move most of the fields to
2110 varobj.h.
2111 (struct varobj_dynamic): New struct.
2112 (varobj_get_display_hint) [HAVE_PYTHON]: Adjust.
2113 (varobj_has_more): Likewise.
2114 (dynamic_varobj_has_child_method): Likewise.
2115 (update_dynamic_varobj_children): Likewise.
2116 (varobj_get_num_children): Likewise.
2117 (varobj_list_children, varobj_pretty_printed_p): Likewise.
2118 (install_new_value_visualizer): Likewise.
2119 (install_new_value_visualizer, install_new_value): Likewise.
2120 (varobj_update, new_variable, free_variable): Likewise.
2121 (my_value_of_variable, value_get_print_value): Likewise.
2122 (install_visualizer): Change the type of parameter 'var' to
2123 'struct varobjd_dynamic *'. Callers update.
2124 * varobj.h (struct varobj): Moved from varobj.c.
2125 (struct varobj) <dynamic>: New field.
2126
2127 2013-10-13 Sandra Loosemore <sandra@codesourcery.com>
2128
2129 * nios2-tdep.c (nios2_reg_names): Use "sstatus" rather than "ba"
2130 as the preferred name of r30.
2131 * nios2-linux-tdep.c (reg_offsets): Likewise.
2132 * features/nios2-cpu.xml: Likewise.
2133 * features/nios2-linux.c: Regenerated.
2134 * features/nios2.c: Regenerated.
2135 * regformats/nios2-linux.dat: Regenerated.
2136
2137 2013-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2138
2139 Canonicalize directories for EXEC_FILENAME.
2140 * exec.c (exec_file_attach): Use gdb_realpath_keepfile for
2141 exec_filename.
2142 * utils.c (gdb_realpath_keepfile): New function.
2143 * utils.h (gdb_realpath_keepfile): New declaration.
2144
2145 2013-10-11 Doug Evans <dje@google.com>
2146
2147 * Makefile.in (GDBFLAGS): New variable.
2148 (run): New rule.
2149
2150 2013-10-11 Joel Brobecker <brobecker@adacore.com>
2151
2152 * NEWS: Add entry documenting the new "-catch-assert" and
2153 "-catch-exception" GDB/MI commands.
2154
2155 2013-10-11 Joel Brobecker <brobecker@adacore.com>
2156
2157 * breakpoint.h (init_ada_exception_breakpoint): Add parameter
2158 "enabled".
2159 * breakpoint.c (init_ada_exception_breakpoint): Add parameter
2160 "enabled". Set B->ENABLE_STATE accordingly.
2161 * ada-lang.h (ada_exception_catchpoint_kind): Move here from
2162 ada-lang.c.
2163 (create_ada_exception_catchpoint): Add declaration.
2164 * ada-lang.c (ada_exception_catchpoint_kind): Move to ada-lang.h.
2165 (create_ada_exception_catchpoint): Make non-static. Add new
2166 parameter "disabled". Use it in call to
2167 init_ada_exception_breakpoint.
2168 (catch_ada_exception_command): Add parameter "enabled" in call
2169 to create_ada_exception_catchpoint.
2170 (catch_assert_command): Likewise.
2171
2172 * mi/mi-cmds.h (mi_cmd_catch_assert, mi_cmd_catch_exception):
2173 Add declarations.
2174 * mi/mi-cmds.c (mi_cmds): Add the "catch-assert" and
2175 "catch-exception" commands.
2176 * mi/mi-cmd-catch.c: Add #include "ada-lang.h".
2177 (mi_cmd_catch_assert, mi_cmd_catch_exception): New functions.
2178
2179 2013-10-11 Joel Brobecker <brobecker@adacore.com>
2180
2181 * ada-lang.c (enum ada_exception_catchpoint_kind): Renames
2182 "enum exception_catchpoint_kind". Replace the "ex_" prefix
2183 of all its enumerates with "ada_". Update the rest of this
2184 file throughout.
2185
2186 2013-10-11 Joel Brobecker <brobecker@adacore.com>
2187
2188 * ada-lang.c (ada_decode_exception_location): Delete.
2189 (create_ada_exception_catchpoint): Remove arguments "sal",
2190 "addr_string" and "ops". Add argument "ex_kind" instead.
2191 Adjust implementation accordingly, calling ada_exception_sal
2192 to get the entities it no longer gets passed as arguments.
2193 Document the function's arguments.
2194 (catch_ada_exception_command): Use catch_ada_exception_command_split
2195 instead of ada_decode_exception_location, and update call to
2196 create_ada_exception_catchpoint.
2197 (catch_ada_assert_command_split): Renames
2198 ada_decode_assert_location. Remove parameters "addr_string" and
2199 "ops", and now returns void. Adjust implementation accordingly.
2200 Update the function documentation.
2201 (catch_assert_command): Use catch_ada_assert_command_split
2202 instead of ada_decode_assert_location. Update call to
2203 create_ada_exception_catchpoint.
2204
2205 2013-10-11 Joel Brobecker <brobecker@adacore.com>
2206
2207 * utils.h (perror_warning_with_name): Add declaration.
2208 * utils.c (perror_warning_with_name): New function.
2209 * cli/cli-cmds.c (source_script_with_search): Add call to
2210 perror_warning_with_name if from_tty is nul.
2211
2212 2013-10-11 Joel Brobecker <brobecker@adacore.com>
2213
2214 * utils.c (perror_string): New function, extracted out of
2215 throw_perror_with_name.
2216 (throw_perror_with_name): Rework to use perror_string.
2217
2218 2013-10-11 Yao Qi <yao@codesourcery.com>
2219
2220 * remote.c (discard_pending_stop_replies_in_queue): Update
2221 declaration.
2222 (struct stop_reply) <rs>: New field.
2223 (remove_stop_reply_of_remote_state): New function.
2224 (discard_pending_stop_replies_in_queue): Add parameter 'rs'.
2225 Callers update. Pass remove_stop_reply_of_remote_state to
2226 QUEUE_iterate.
2227 (remote_parse_stop_reply): Initialize field 'rs'.
2228
2229 2013-10-10 Will Newton <will.newton@linaro.org>
2230
2231 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
2232 linux_init_abi.
2233
2234 2013-10-10 Joel Brobecker <brobecker@adacore.com>
2235
2236 * cli/cli-cmds.c (show_baud_rate): Moved to serial.c as
2237 serial_baud_show_cmd.
2238 (_initialize_cli_cmds): Delete the code creating the
2239 "set/show remotebaud" commands.
2240 * serial.c (baud_rate): Move here from top.c.
2241 (serial_baud_show_cmd): Move here from cli/cli-cmds.c.
2242 (_initialize_serial): Create "set/show serial baud" commands.
2243 Add "set/show remotebaud" command aliases.
2244 * top.c (baud_rate): Moved to serial.c.
2245 * NEWS: Document the new "set/show serial baud" commands,
2246 replacing "set/show remotebaud".
2247
2248 2013-10-09 Pedro Alves <palves@redhat.com>
2249
2250 * breakpoint.c (insert_bp_location): Use memory_error_message to
2251 build the memory error string.
2252 * c-lang.c: Include "gdbcore.h".
2253 (c_get_string): Use memory_error to throw error.
2254 (target_xfer_memory_error): Delete.
2255 (memory_error_message): New, factored out from
2256 target_xfer_memory_error.
2257 (memory_error): Change parameter type to target_xfer_error.
2258 Rewrite.
2259 (read_memory): Use memory_error instead of
2260 target_xfer_memory_error.
2261 * gdbcore.h: Include "target.h".
2262 (memory_error): Change parameter type to target_xfer_error.
2263 (memory_error_message): Declare function.
2264 * target.c (target_read_memory, target_read_stack)
2265 (target_write_memory, target_write_raw_memory): Return
2266 TARGET_XFER_E_IO on error. Adjust comments.
2267 (get_target_memory): Pass TARGET_XFER_E_IO to memory_error,
2268 instead of EIO.
2269 * target.h (target_read, target_insert_breakpoint)
2270 (target_remove_breakpoint): Adjust comments.
2271 * valprint.c (partial_memory_read): Rename parameter, and adjust
2272 comment.
2273 (val_print_string): Use memory_error_message to build the memory
2274 error string.
2275
2276 2013-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2277
2278 * common/filestuff.c (gdb_fopen_cloexec): Remove initialization of
2279 result variable. Rename variable fopen_e_ever_failed to
2280 fopen_e_ever_failed_einval. Retry fopen only for errno EINVAL.
2281
2282 2013-10-09 Pedro Alves <palves@redhat.com>
2283
2284 * monitor.c (monitor_write_memory, monitor_write_memory_bytes)
2285 (monitor_write_memory_longlongs, monitor_write_memory_block):
2286 Constify 'myaddr' parameter.
2287 (monitor_xfer_memory): Adjust interface as monitor_xfer_partial
2288 helper.
2289 (monitor_xfer_partial): New function.
2290 (init_base_monitor_ops): Don't install a deprecated_xfer_memory
2291 hook. Install a to_xfer_partial hook.
2292
2293 2013-10-09 Tom Tromey <tromey@redhat.com>
2294
2295 * dwarf2read.c (dwarf2_get_dwz_file): Update for type change in
2296 bfd_get_alt_debug_link_info.
2297
2298 2013-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2299
2300 New flag OBJF_NOT_FILENAME.
2301 * auto-load.c (auto_load_objfile_script): Check also OBJF_NOT_FILENAME.
2302 * jit.c (jit_object_close_impl): Use OBJF_NOT_FILENAME for
2303 allocate_objfile.
2304 (jit_bfd_try_read_symtab): Use OBJF_NOT_FILENAME for
2305 symbol_file_add_from_bfd.
2306 * jv-lang.c (get_dynamics_objfile): Use OBJF_NOT_FILENAME for
2307 allocate_objfile.
2308 * objfiles.c (allocate_objfile): Assert OBJF_NOT_FILENAME if NAME is
2309 NULL.
2310 * objfiles.h (OBJF_NOT_FILENAME): New.
2311
2312 2013-10-08 Tom Tromey <tromey@redhat.com>
2313
2314 * Makefile.in (SFILES): Add build-id.c.
2315 (HFILES_NO_SRCDIR): Add build-id.h.
2316 * build-id.c: New file, largely from elfread.c. Modified
2317 most functions.
2318 * build-id.h: New file.
2319 * dwarf2read.c (dwarf2_get_dwz_file): Update for change to
2320 bfd_get_alt_debug_link_info. Verify dwz file's build-id.
2321 Search for dwz file using build-id.
2322 * elfread.c (build_id_bfd_get, build_id_verify)
2323 (build_id_to_debug_filename, find_separate_debug_file): Remove.
2324
2325 2013-10-08 Joel Brobecker <brobecker@adacore.com>
2326
2327 * ada-lang.c (compare_names_with_case): Renamed from
2328 compare_names, adding a new parameter "casing" and its handling.
2329 New function documentation.
2330 (compare_names): New function, implemented using
2331 compare_names_with_case.
2332
2333 2013-10-08 Joel Brobecker <brobecker@adacore.com>
2334
2335 * ada-lang.c (ada_exception_sal): Remove advance declaration.
2336
2337 2013-10-07 Tom Tromey <tromey@redhat.com>
2338
2339 * objfiles.c (free_objfile_per_bfd_storage): Delete the
2340 demangled_names_hash.
2341 (free_objfile): Don't delete the demangled_names_hash.
2342 * objfiles.h (struct objfile_per_bfd_storage)
2343 <demangled_names_hash>: New field.
2344 (struct objfile) <demangled_names_hash>: Move to
2345 objfile_per_bfd_storage.
2346 * symfile.c (reread_symbols): Don't delete the
2347 demangled_names_hash.
2348 * symtab.c (create_demangled_names_hash): Update.
2349 (symbol_set_names): Update.
2350
2351 2013-10-07 Tom Tromey <tromey@redhat.com>
2352
2353 * gdb_bfd.c (struct gdb_bfd_data) <relocation_computed,
2354 needs_relocations>: New fields.
2355 (gdb_bfd_requires_relocations): New function.
2356 * gdb_bfd.h (gdb_bfd_requires_relocations): Declare.
2357 * objfiles.c (get_objfile_bfd_data): Disallow sharing if
2358 the BFD needs relocations applied.
2359
2360 2013-10-07 Pedro Alves <palves@redhat.com>
2361
2362 PR breakpoints/11568
2363 * breakpoint.c (remove_threaded_breakpoints): Say "no longer in
2364 the thread list" instead of "gone".
2365
2366 2013-10-06 Sergio Durigan Junior <sergiodj@redhat.com>
2367
2368 * NEWS: Mention new convenience variable $_exitsignal.
2369 * corelow.c (core_open): Reset exit convenience variables. Set
2370 $_exitsignal to the uncaught signal which generated the corefile.
2371 * infrun.c (handle_inferior_event): Reset exit convenience
2372 variables. Set $_exitsignal for TARGET_WAITKIND_SIGNALLED.
2373 (clear_exit_convenience_vars): New function.
2374 * inferior.h (clear_exit_convenience_vars): New prototype.
2375
2376 2013-10-06 Yao Qi <yao@codesourcery.com>
2377
2378 * varobj.h: Add comments to enum varobj_languages.
2379
2380 2013-10-04 Doug Evans <dje@google.com>
2381
2382 Add support for DWP file format version 2.
2383 * NEWS: Mention support for DWP file format version 2.
2384 * dwarf2read.c (dwarf2_section_info): Convert asection field to a
2385 union of asection, containing_section. New fields virtual_offset
2386 and is_virtual. Change type of readin filed from int to char.
2387 (dwo_sections, dwo_file): Tweak comments.
2388 (dwp_v2_section_ids): New enum.
2389 (dwp_sections): New fields abbrev, info, line, loc, macinfo, macro,
2390 str_offsets, types.
2391 (virtual_v1_dwo_sections): Renamed from virtual_dwo_sections.
2392 All uses updated.
2393 (virtual_v2_dwo_sections): New struct.
2394 (dwp_hash_table): New fields version, nr_columns. Change type of
2395 section_pool field to a union.
2396 (dwp_file): New field version.
2397 (dwarf2_has_info): Check for virtual sections.
2398 (get_containing_section): New function.
2399 (get_section_bfd_owner, get_section_bfd_section): Call it.
2400 (dwarf2_locate_sections): Update.
2401 (dwarf2_section_empty_p): Update.
2402 (dwarf2_read_section): Handle virtual sections.
2403 (locate_dwz_sections): Update.
2404 (create_dwp_hash_table): Document and handle V2 format.
2405 (locate_v1_virtual_dwo_sections): Renamed from
2406 locate_virtual_dwo_sections and update. All callers updated.
2407 (create_dwo_unit_in_dwp_v1): Renamed from create_dwo_in_dwp.
2408 Delete arg htab. Rename arg section_index to unit_index.
2409 All callers updated.
2410 (MAX_NR_V1_DWO_SECTIONS): Renamed from MAX_NR_DWO_SECTIONS.
2411 All uses updated.
2412 (create_dwp_v2_section, create_dwo_unit_in_dwp_v2): New functions.
2413 (lookup_dwo_unit_in_dwp): Add V2 support.
2414 (dwarf2_locate_dwo_sections): Update.
2415 (dwarf2_locate_common_dwp_sections): Renamed from
2416 dwarf2_locate_dwp_sections and update. All callers updated.
2417 (dwarf2_locate_v2_dwp_sections): New function.
2418 (open_and_init_dwp_file): Add V2 support.
2419 (read_str_index): New locals str_section, str_offsets_section.
2420
2421 2013-10-04 Pedro Alves <palves@redhat.com>
2422
2423 * common/ptid.c (null_ptid, minus_one_ptid, ptid_build)
2424 (pid_to_ptid, ptid_get_pid, ptid_get_lwp, ptid_get_tid)
2425 (ptid_equal, ptid_is_pid, ptid_lwp_p, ptid_tid_p): Replace
2426 describing comments with references to ptid.h.
2427 * common/ptid.h: Remove intro description of constructors,
2428 accessors and predicates.
2429 (struct ptid): Reformat.
2430 (minus_one_ptid, ptid_build, pid_to_ptid, ptid_get_pid)
2431 (ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid): Change
2432 describing comments.
2433
2434 2013-10-04 Joel Brobecker <brobecker@adacore.com>
2435
2436 * aix-thread.c (sync_threadlists): Add missing ')' in call
2437 to ptid_build.
2438
2439 2013-10-04 Joel Brobecker <brobecker@adacore.com>
2440
2441 * procfs.c (procfs_init_inferior): Fix typo causing the build
2442 to fail.
2443
2444 2013-10-04 Joel Brobecker <brobecker@adacore.com>
2445
2446 * aix-thread.c (ptrace32): Remove cast to addr_ptr.
2447
2448 2013-10-04 Joel Brobecker <brobecker@adacore.com>
2449
2450 * mi/mi-main.c (run_one_inferior): Add function description.
2451 Make ARG a pointer to an integer whose value determines whether
2452 we should "run" or "start" the program.
2453 (mi_cmd_exec_run): Add handling of the "--start" option.
2454 Reject all other command-line options.
2455 * NEWS: Add entry for "-exec-run"'s new "--start" option.
2456
2457 2013-10-04 Yao Qi <yao@codesourcery.com>
2458
2459 * remote-notif.h (REMOTE_NOTIF_ID): New enum.
2460 (struct notif_client) <pending_event>: Moved
2461 to struct remote_notif_state.
2462 <id>: New field.
2463 (struct remote_notif_state) <pending_event>: New field.
2464 (notif_event_xfree): Declare.
2465 * remote-notif.c (handle_notification): Adjust.
2466 (notif_event_xfree): New function.
2467 (do_notif_event_xfree): Call notif_event_xfree.
2468 (remote_notif_state_xfree): Call notif_event_xfree to free
2469 each element in field pending_event.
2470 * remote.c (discard_pending_stop_replies): Remove declaration.
2471 (discard_pending_stop_replies_in_queue): Declare.
2472 (remote_close): Call discard_pending_stop_replies_in_queue
2473 instead of discard_pending_stop_replies.
2474 (remote_start_remote): Adjust.
2475 (stop_reply_xfree): Call notif_event_xfree.
2476 (notif_client_stop): Adjust initialization.
2477 (remote_notif_remove_all): Rename it to ...
2478 (remove_stop_reply_for_inferior): ... this. Update comments.
2479 Don't check INF is NULL.
2480 (discard_pending_stop_replies): Return early if notif_state is
2481 NULL. Adjust. Don't check INF is NULL.
2482 (remote_notif_get_pending_events): Adjust.
2483 (discard_pending_stop_replies_in_queue): New function.
2484 (remote_wait_ns): Likewise.
2485
2486 2013-10-04 Yao Qi <yao@codesourcery.com>
2487
2488 * remote-notif.c (DECLARE_QUEUE_P): Remove.
2489 (notif_queue): Remove.
2490 (remote_notif_process): Add one parameter 'notif_queue'.
2491 Update comments. Callers update.
2492 (remote_async_get_pending_events_token): Remove.
2493 (remote_notif_register_async_event_handler): Remove.
2494 (remote_notif_unregister_async_event_handler): Remove.
2495 (handle_notification): Add parameter 'notif_queue'. Update
2496 comments. Callers update.
2497 (notif_xfree): Remove.
2498 (remote_notif_state_allocate): New function.
2499 (remote_notif_state_xfree): New function.
2500 (_initialize_notif): Remove code to allocate queue.
2501 * remote-notif.h (DECLARE_QUEUE_P): Moved from remote-notif.c.
2502 (struct remote_notif_state): New.
2503 (handle_notification): Update declaration.
2504 (remote_notif_process): Likewise.
2505 (remote_notif_register_async_event_handler): Remove.
2506 (remote_notif_unregister_async_event_handler): Remove.
2507 (remote_notif_state_allocate): Declare.
2508 (remote_notif_state_xfree): Declare.
2509 * remote.c (struct remote_state) <notif_state>: New field.
2510 (remote_close): Don't call
2511 remote_notif_unregister_async_event_handler. Call
2512 remote_notif_state_xfree.
2513 (remote_open_1): Don't call
2514 remote_notif_register_async_event_handler. Call
2515 remote_notif_state_allocate.
2516
2517 2013-10-04 Yao Qi <yao@codesourcery.com>
2518
2519 * varobj.c (create_child_with_value): Remove 'const' from the
2520 type of parameter 'name'.
2521 (varobj_add_child): Likewise.
2522 (install_dynamic_child): Remove 'const' from the type of
2523 parameter 'name'.
2524 (varobj_add_child): Likewise.
2525 (create_child_with_value): Likewise. Update comments. Don't
2526 duplicate 'name'.
2527 (update_dynamic_varobj_children): Duplicate 'name'
2528 and pass it to install_dynamic_child.
2529
2530 2013-10-03 Phil Muldoon <pmuldoon@redhat.com>
2531
2532 * python/py-value.c (convert_value_from_python): Move PyInt_Check
2533 conversion logic to occur after PyLong_Check. Comment on order
2534 change significance.
2535 * python/py-arch.c (archpy_disassemble): Comment on order of
2536 conversion for integers and longs.
2537
2538 2013-10-03 Pedro Alves <palves@redhat.com>
2539
2540 * common/linux-ptrace.c (linux_check_ptrace_features): Factor out
2541 the PTRACE_O_TRACESYSGOOD and PTRACE_O_TRACEFORK to separate
2542 functions. Always test for PTRACE_O_TRACESYSGOOD even if
2543 PTRACE_O_TRACEFORK is not supported.
2544 (linux_test_for_tracesysgood): New function.
2545 (linux_test_for_tracefork): New function, factored out from
2546 linux_check_ptrace_features, and also don't kill child_pid here.
2547
2548 2013-10-03 Tristan Gingold <gingold@adacore.com>
2549
2550 * i386-darwin-nat.c (i386_darwin_dr_set): Fix argument type.
2551 Remove verbose error reporting. Use detected state to
2552 thread_set_state call.
2553 (i386_darwin_dr_get): Fix return type. Remove verbose error
2554 report.
2555 Remove trailing spaces.
2556
2557 2013-10-02 Pedro Alves <palves@redhat.com>
2558
2559 * cp-valprint.c (cp_print_value_fields): Adjust calls to
2560 val_print_optimized_out.
2561 * jv-valprint.c (java_print_value_fields): Likewise.
2562 * p-valprint.c (pascal_object_print_value_fields): Likewise.
2563 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full)
2564 <DWARF_VALUE_REGISTER>: If the register was not saved, return a
2565 new optimized out value.
2566 * findvar.c (address_from_register): Likewise.
2567 * frame.c (put_frame_register): Tweak error string to say the
2568 register was not saved, rather than optimized out.
2569 * infcmd.c (default_print_one_register_info): Adjust call to
2570 val_print_optimized_out. Use value_of_register instead of
2571 get_frame_register_value.
2572 * mi/mi-main.c (output_register): Use value_of_register instead of
2573 get_frame_register_value.
2574 * valprint.c (valprint_check_validity): Likewise.
2575 (val_print_optimized_out): New value parameter. If the value is
2576 lval_register, print <not saved> instead.
2577 (value_check_printable, val_print_scalar_formatted): Adjust calls
2578 to val_print_optimized_out.
2579 * valprint.h (val_print_optimized_out): New value parameter.
2580 * value.c (struct value) <optimized_out>: Extend comment.
2581 (error_value_optimized_out): New function.
2582 (require_not_optimized_out): Use it. Use a different string for
2583 lval_register values.
2584 * value.h (error_value_optimized_out): New declaration.
2585 * NEWS: Mention <not saved>.
2586
2587 2013-10-02 Joel Brobecker <brobecker@adacore.com>
2588
2589 * symtab.c (compare_search_syms): Use FILENAME_CMP instead of
2590 strcmp to compare two symtab filenames.
2591
2592 2013-10-02 Joel Brobecker <brobecker@adacore.com>
2593
2594 * symtab.c (search_symbols_equal): Delete.
2595 (sort_search_symbols_remove_dups): Replace call to
2596 search_symbols_equal by call to compare_search_syms,
2597 adjusting as necessary.
2598
2599 2013-10-02 Phil Muldoon <pmuldoon@redhat.com>
2600
2601 PR python/15579
2602 * python/python.c: Document gdb.execute command in Python help.
2603
2604 2013-10-02 Phil Muldoon <pmuldoon@redhat.com>
2605
2606 * python/py-frame.c (frame_info_to_frame_object): Use
2607 gdbpy_convert_exception. Clean up Python object on failure.
2608
2609 2013-10-02 Phil Muldoon <pmuldoon@redhat.com>
2610
2611 * python/lib/gdb/command/frame_filters.py
2612 (InfoFrameFilter.list_frame_filters): Retrieve exception manually.
2613 (ShowFrameFilterPriority.invoke): Ditto.
2614
2615 2013-10-01 Keith Seitz <keiths@redhat.com>
2616
2617 * linespec.c (struct ls_parser): Make 'saved_arg' const.
2618 (parse_linespec): Make 'argptr' const.
2619 Remove temporary cast of 'argptr' to const char **.
2620 (decode_line_full): Pass const pointer to parse_linespec.
2621 (decode_line_1): Likewise.
2622 (decode_objc): Make local variable 'new_argptr' const.
2623 (find_function_symbols): Remove temporary cast to char *
2624 to find_imps.
2625 * objc-lang.c (find_imps): Make argument 'method' const.
2626 Return const.
2627 * objc-lang.h (find_imps): Likewise.
2628
2629 2013-10-01 Keith Seitz <keiths@redhat.com>
2630
2631 * completer.c (skip_quoted_chars): Make all arguments const.
2632 Return const.
2633 (skip_quoted): Likewise.
2634 * completer.h (skip_quoted_chars): Likewise.
2635 (skip_quoted): Likewise.
2636 * defs.h (skip_quoted): Remove duplicate declaration.
2637 * jv-exp.y: Include completer.h.
2638 (yylex): Remove unneccessary cast to char * fro skip_quoted.
2639 * p-exp.y: Include completer.h.
2640
2641 2013-10-01 Keith Seitz <keiths@redhat.com>
2642
2643 * c-exp.y (parse_number): Make first argument const.
2644 Make a copy of the input to manipulate.
2645 (c_parse_escape): Make first argument const.
2646 Make local variable 'tokptr' const.
2647 (parse_string_or_char): Make first two arguments const.
2648 (macro_original_text): Make const.
2649 (lex_one_token): Make local variable 'tokstart' const.
2650 Likewise for local variables named 'p'.
2651 Cast away const for struct stoken (temporary).
2652 * c-lang.h (c_parse_escpae): Make first argument const.
2653 * cli/cli-cmds.c (echo_command): Make local variable 'p'
2654 const.
2655 * cli/cli-setshow.c (do_set_command): Likewise for 'p' in
2656 var_string case.
2657 * f-exp.y (parse_number): Make first argument const.
2658 (match_string_literal): Make local variable 'tokstart'
2659 const.
2660 (yylex): Make local variable 'p' const.
2661 Cast away const for struct stoken (temporary).
2662 * go-exp.y (parse_number): Make first argument const.
2663 (parse_string_or_char): Likewise.
2664 Make local variable 'tokstart' const.
2665 (lex_one_token): Likewise for numerous locals called 'p'.
2666 Cast away const for struct stoken (temporary).
2667 * jv-exp.y (parse_number): Make first argument const.
2668 Make local variables 'tokstart' and 'tokptr' const.
2669 Cast away const for call to skip_quoted (temporary).
2670 (yylex): Make local variable 'p' const.
2671 Cast away const for struct stoken (temporary).
2672 * m2-exp.y (parse_number): Make local variable 'p' const.
2673 (yylex): Likewise for 'tokstart'.
2674 Cast away const for struct stoken (temporary).
2675 Make local variable 'p' const.
2676 * macroexp.c (get_character_constant): Pass a const string
2677 to c_parse_escape.
2678 (get_string_literal): Likewise.
2679 (macro_expand_next): Make first argument const.
2680 Cast away const for init_shared_buffer.
2681 * macroexp.h (macro_expand_next): Make first argument const.
2682 * p-exp.y (yylex): Make a local copy of 'lexptr'.
2683 Pass a const string to c_parse_escape.
2684 Make local variables 'p' and 'namestart' const.
2685 * parse.c (lexptr): Make const.
2686 (prev_lexptr): Likewise.
2687 (find_template_name_end): Return const.
2688 Make argument const, too.
2689 (parse_exp_in_context): Make first argument const.
2690 Remove the entire const_hack.
2691 (parse_exp_in_context_1): Make first argument const.
2692 * parser-defs.h (find_template_name_end): Return const.
2693 Make argument const, too.
2694 (lexptr): Make const.
2695 (prev_lexptr): Likewise.
2696 * utils.c (parse_escape): Make second argument const.
2697 * utils.h (parse_escape): Likewise.
2698
2699 2013-10-01 Keith Seitz <keiths@redhat.com>
2700
2701 * ada-exp.y (write_object_renaming): Update: struct stoken.ptr
2702 is now const.
2703 (block_lookup): Make 'raw_name' and 'name' const.
2704 * ada-lex.l (processString): Update for struct stoken.ptr.
2705 * c-exp.y (qualified_name : TYPENAME COLONCOLON '~' name): Likewise.
2706 (operator_stoken): Likewise.
2707 (lex_one_token): Remove temporary cast to char * for
2708 'yylval.sval.ptr'.
2709 * f-exp.y (yylex): Likewise.
2710 * gdb-types.c (lookup_struct_elt_type): Make argument 'name' const.
2711 * gdbtypes.h (lookup_struct_elt_type): Likewisee.
2712 * go-exp.y (lex_one_token): Remove temporary cast to char * for
2713 'yylval.sval.ptr'.
2714 * jv-exp.y (QualifiedName): Update for struct stoken.ptr.
2715 (yylex): Remove temporary cast to char * for 'yylval.sval.ptr'.
2716 * linespec.c (struct ls_parser): Make 'stream' const.
2717 (find_parameter_list_end): Make argument 'input' and local
2718 variable 'p' const.
2719 (linespec_lexer_lex_string): Make local variables 'start' and
2720 'p' const.
2721 Use skip_spaces_const instead of skip_spaces.
2722 (linespec_lexer_peek_token): Make local variable 'saved_stream'
2723 const.
2724 (parse_linespec): Temporarily cast 'argptr' to const for
2725 'parser->lexer.stream'.
2726 * m2-exp.y (yylex): Remove temporary cast to char * for
2727 'yylval.sval.ptr'.
2728 * objc-lang.c (add_msglist): Make local variable 'p' const.
2729 * p-exp.y (exp : exp '['): Update for struct stoken.ptr.
2730 (exp : STRING): Make 'sp' const.
2731 (parse_number): Make argument 'p' const.
2732 * parser-defs.h (struct stoken): Make 'ptr' const.
2733
2734 2013-10-01 Doug Evans <dje@google.com>
2735
2736 * cli/cli-decode.c: Remove unnecessary inclusion of tui/tui.h.
2737
2738 2013-10-01 Yao Qi <yao@codesourcery.com>
2739
2740 * varobj.c (c_value_of_root): Remove declaration.
2741 (cplus_value_of_root, java_value_of_root): Likewise.
2742 (ada_value_of_root): Likewise.
2743 (struct language_specific) <value_of_root>: Remove.
2744 (languages): Update initialization.
2745 (check_scope): Move earlier.
2746 (c_value_of_root): Move earlier and rename to ...
2747 (value_of_root_1): ... this.
2748 (value_of_root): Caller update.
2749 (cplus_value_of_root, java_value_of_root): Remove.
2750 (ada_value_of_root): Remove.
2751
2752 2013-10-01 Yao Qi <yao@codesourcery.com>
2753
2754 * varobj.c (varobj_format_string): Remove "unknown".
2755 (languages): Remove the first element.
2756 * varobj.h (enum varobj_languages): Remove vlang_c.
2757
2758 2013-10-01 Yao Qi <yao@codesourcery.com>
2759
2760 * varobj.c (struct language_specific) <language>: Remove.
2761 (languages): Update the initialization.
2762
2763 2013-10-01 Yao Qi <yao@codesourcery.com>
2764
2765 * arm-wince-tdep.c: Remove inclusion of "solib.h" and
2766 "solib-target.h". Include "windows-tdep.h".
2767 (arm_wince_init_abi): Call windows_init_abi. Remove call to
2768 set_solib_ops and set_gdbarch_has_dos_based_file_system.
2769 * configure.tgt (arm*-wince-pe | arm*-*-mingw32ce*): Append
2770 windows-tdep.o to gdb_target_obs.
2771
2772 2013-10-01 Yao Qi <yao@codesourcery.com>
2773
2774 * amd64-windows-tdep.c: Remove inclusion of "solib.h" and
2775 "solib-target.h".
2776 (amd64_windows_init_abi): Don't call set_solib_ops and
2777 set_gdbarch_iterate_over_objfiles_in_search_order. Call
2778 windows_init_abi instead.
2779 * i386-cygwin-tdep.c: Remove inclusion of "solib.h" and
2780 "solib-target.h".
2781 (i386_cygwin_init_abi): Don't call set_solib_ops,
2782 set_gdbarch_has_dos_based_file_system and
2783 set_gdbarch_iterate_over_objfiles_in_search_order. Call
2784 windows_init_abi instead.
2785 * windows-tdep.c: Include "solib.h" and "solib-target.h".
2786 (windows_init_abi): New function.
2787 (windows_iterate_over_objfiles_in_search_order): Make it
2788 static.
2789 * windows-tdep.h (windows_init_abi): Declare.
2790 (windows_iterate_over_objfiles_in_search_order): Remove
2791 declaration.
2792
2793 2013-10-01 Jerome Guitton <guitton@adacore.com>
2794
2795 Checked in by Joel Brobecker <brobecker@adacore.com>
2796 * system-gdbinit/elinos.py (get_elinos_environment): Return an
2797 incomplete dictionnary instead of None in case of missing
2798 environment variables.
2799 (elinos_init): in case of an incomplete environment, best
2800 effort to load system libraries instead of abort.
2801
2802 2013-10-01 Joel Brobecker <brobecker@adacore.com>
2803
2804 * ada-lang.c (ada_has_this_exception_support): Ignore
2805 mst_solib_trampoline minimal symbols.
2806
2807 2013-09-30 Tristan Gingold <gingold@adacore.com>
2808
2809 * i386-darwin-nat.c (darwin_complete_target): Install methods for
2810 hardware watchpoint.
2811 (i386_darwin_dr_set): Support 32 and 64 bit states.
2812 (i386_darwin_dr_get): Likewise.
2813 (i386_darwin_dr_set_control): Make static.
2814 (i386_darwin_dr_set_addr, i386_darwin_dr_get_addr)
2815 (i386_darwin_dr_get_status, i386_darwin_dr_get_control): Likewise.
2816
2817 2013-09-30 Luis Machado <lgustavo@codesourcery.com>
2818
2819 * aarch64-linux-nat.c: Replace PIDGET with ptid_get_pid.
2820 Replace TIDGET with ptid_get_lwp.
2821 Replace GET_LWP with ptid_get_lwp.
2822 * aix-thread.c (BUILD_THREAD, BUILD_LWP): Remove.
2823 Replace BUILD_THREAD with ptid_build.
2824 Replace BUILD_LWP with ptid_build.
2825 Replace PIDGET with ptid_get_pid.
2826 Replace TIDGET with ptid_get_lwp.
2827 * alphabsd-nat.c: Replace PIDGET with ptid_get_pid.
2828 * amd64-linux-nat.c: Replace PIDGET with ptid_get_pid.
2829 Replace TIDGET with ptid_get_lwp.
2830 * amd64bsd-nat.c: Replace PIDGET with ptid_get_pid.
2831 * arm-linux-nat.c: Replace PIDGET with ptid_get_pid.
2832 Replace TIDGET with ptid_get_lwp.
2833 Replace GET_LWP with ptid_get_lwp.
2834 * armnbsd-nat.c: Replace PIDGET with ptid_get_pid.
2835 * auxv.c: Likewise.
2836 * breakpoint.c: Likewise.
2837 * common/ptid.c (ptid_is_pid): Condense check for
2838 null_ptid and minus_one_ptid.
2839 (ptid_lwp_p): New function.
2840 (ptid_tid_p): New function.
2841 * common/ptid.h: Update comments for accessors.
2842 (ptid_lwp_p): New prototype.
2843 (ptid_tid_p): New prototype.
2844 * defs.h (PIDGET, TIDGET, MERGEPID): Do not define.
2845 * gcore.c: Replace PIDGET with ptid_get_pid.
2846 * gdbthread.h: Likewise.
2847 * gnu-nat.c: Likewise.
2848 * hppa-linux-nat.c: Replace PIDGET with ptid_get_pid.
2849 Replace TIDGET with ptid_get_lwp.
2850 * hppabsd-nat.c: Replace PIDGET with ptid_get_pid.
2851 * hppanbsd-nat.c: Likewise.
2852 * i386-linux-nat.c: Replace PIDGET with ptid_get_pid.
2853 Replace TIDGET with ptid_get_lwp.
2854 * i386bsd-nat.c: Replace PIDGET with ptid_get_pid.
2855 * ia64-linux-nat.c: Replace PIDGET with ptid_get_pid.
2856 * infcmd.c: Likewise.
2857 * inferior.h: Likewise.
2858 * inflow.c: Likewise.
2859 * infrun.c: Likewise.
2860 * linux-fork.c: Likewise.
2861 * linux-nat.c: Replace PIDGET with ptid_get_pid.
2862 Replace GET_PID with ptid_get_pid.
2863 Replace is_lwp with ptid_lwp_p.
2864 Replace GET_LWP with ptid_get_lwp.
2865 Replace BUILD_LWP with ptid_build.
2866
2867 2013-09-28 Mike Frysinger <vapier@gentoo.org>
2868
2869 * common/linux-btrace.c: Move sys/syscall.h out of the
2870 HAVE_LINUX_PERF_EVENT_H check and wrap it in HAVE_SYS_SYSCALL_H.
2871 Also check for SYS_perf_event_open before attempting to buid.
2872
2873 2013-09-27 Doug Evans <dje@google.com>
2874
2875 * dwarf2read.c (dwarf2_section_info): Add comment.
2876 (dwp_file): Split loaded_cutus into loaded_cus, loaded_tus.
2877 All uses updated.
2878 (dwarf2_section_empty_p): Rename arg from "info" to "section".
2879 (dwarf2_read_section): Delete unused local "header". Add section
2880 name to error message.
2881 (create_dwo_in_dwp): Tweak comment.
2882 (MAX_NR_DWO_SECTIONS): Combine count of .debug_macro + .debug_macinfo.
2883
2884 * dwarf2read.c (die_reader_specs): Tweak comment.
2885 (get_section_bfd_owner, get_section_bfd_section): New functions.
2886 (get_section_name, get_section_file_name): New functions.
2887 (get_section_id, get_section_flags): New functions.
2888 (*): Use new functions to access section fields.
2889
2890 * dwarf2read.c (struct dwo_file): Add/tweak comments.
2891 (lookup_dwo_unit_in_dwp): Renamed from lookup_dwo_in_dwp. Remove
2892 arg "htab". All callers updated.
2893 (create_debug_types_hash_table): Remove redundant copy of
2894 abbrev_section.
2895 (create_dwo_in_dwp): Tweak comments.
2896 (read_str_index): Tweak comment. Record dwarf form name in static
2897 local.
2898
2899 2013-09-27 Pedro Alves <palves@redhat.com>
2900
2901 * remote.h (REMOTE_SYSROOT_PREFIX): New define.
2902 (remote_filename_p): Add comment.
2903 * remote.c (remote_filename_p): Adjust to use
2904 REMOTE_SYSROOT_PREFIX.
2905 * solib.c (solib_find): When deciding whether we need to add a
2906 directory separator, check whether the sysroot is "remote:"
2907 instead of checking whether the patch has a drive spec. Add
2908 comments.
2909
2910 2013-09-27 Pedro Alves <palves@redhat.com>
2911
2912 * remote.c (struct stop_reply) <solibs_changed, replay_event>:
2913 Delete fields.
2914 (remote_parse_stop_reply): Adjust, setting event->ws.kind
2915 directly.
2916
2917 2013-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2918
2919 Fix set debug frame output.
2920 * frame.c (fprint_frame_type): Add TAILCALL_FRAME entry. Move
2921 SENTINEL_FRAME entry lower to match enum frame_type order.
2922
2923 2013-09-26 Pierre Muller <muller@sourceware.org>
2924
2925 Replace constant values 8 to 15 by AMD64_R8_REGNUM to
2926 AMD64_R15_REGNUM when a register index is expected.
2927 * amd64-windows-tdep.c (amd64_windows_dummy_call_integer_regs):
2928 Substitute in array.
2929 * amd64-tdep.c (amd64_dwarf_regmap): Ditto.
2930 (amd64_push_arguments): Substitute in integer_regnum array.
2931
2932 2013-09-25 Doug Evans <dje@google.com>
2933
2934 * objfiles.c (allocate_objfile): Move comment to better place.
2935
2936 New option "set debug symfile on".
2937 * NEWS: Mention "set debug symfile".
2938 * Makefile.in (SFILES): Add symfile-debug.c.
2939 (COMMON_OBS): Add symfile-debug.o.
2940 * elfread.c (elf_symfile_read): Use objfile_set_sym_fns to set the
2941 objfile's symbol functions.
2942 * objfiles.h (objfile_set_sym_fns): Declare.
2943 * symfile-debug.c: New file.
2944 * symfile.c (syms_from_objfile_1): Use objfile_set_sym_fns to set the
2945 objfile's symbol functions.
2946 (reread_symbols): Ditto.
2947
2948 * symfile.h (struct sym_fns): Delete member "sym_flavour".
2949 All uses updated.
2950 (add_symtab_fns): Update prototype.
2951 * symfile.c (sym_fns_ptr): Delete. Replace with ...
2952 (registered_sym_fns): ... this.
2953 (symtab_fns): Update.
2954 (add_symtab_fns): New arg "flavour". All callers updated.
2955 (find_sym_fns): Rewrite to use new sym_fns registry.
2956
2957 * symfile.h (struct sym_fns): Add "objfile" argument to
2958 sym_read_linetable. All uses updated.
2959
2960 * symtab.c (domain_name, search_domain_name): New functions.
2961 * symtab.h (domain_name, search_domain_name): Declare.
2962
2963 * symfile.h (struct quick_symbol_functions): Reorg arg list of
2964 map_matching_symbols so objfile is first. All uses updated.
2965 * dwarf2read.c (dw2_map_matching_symbols): Update signature.
2966 * psymtab.c (map_matching_symbols_psymtab): Update signature.
2967
2968 2013-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
2969
2970 PR shlibs/8882
2971 * solib-svr4.c (svr4_read_so_list): Skip the vDSO when reading
2972 link map entries.
2973
2974 2013-09-24 Doug Evans <dje@google.com>
2975
2976 * objfiles.c (free_objfile): Move comment.
2977
2978 2013-09-24 Joel Brobecker <brobecker@adacore.com>
2979
2980 * ada-exp.y (string_to_operator): Delete.
2981 (dummy_string_to_ada_operator): Delete.
2982
2983 2013-09-24 Joel Brobecker <brobecker@adacore.com>
2984
2985 Revert:
2986 * i386-tdep.h (enum amd64_reg_class): New, moved here from
2987 amd64-tdep.c.
2988 (struct gdbarch_tdep): Add fields call_dummy_num_integer_regs,
2989 call_dummy_integer_regs, and classify.
2990 * amd64-tdep.h (amd64_classify): Add declaration.
2991 * amd64-tdep.c (amd64_dummy_call_integer_regs): New static constant.
2992 (amd64_reg_class): Delete, moved to i386-tdep.h.
2993 (amd64_classify): Make non-static. Move declaration to amd64-tdep.h.
2994 Replace call to amd64_classify by call to tdep->classify.
2995 (amd64_push_arguments): Get the list of registers to use for
2996 passing integer parameters from the gdbarch tdep structure,
2997 rather than using a hardcoded one. Replace calls to amd64_classify
2998 by calls to tdep->classify.
2999 (amd64_push_dummy_call): Get the register number used for
3000 the "hidden" argument from tdep->call_dummy_integer_regs.
3001 (amd64_init_abi): Initialize tdep->call_dummy_num_integer_regs
3002 and tdep->call_dummy_integer_regs. Set tdep->classify.
3003
3004 2013-09-24 Joel Brobecker <brobecker@adacore.com>
3005
3006 Revert:
3007 * i386-tdep.h (gdbarch_tdep): Add field memory_args_by_pointer.
3008 * amd64-tdep.c (amd64_push_arguments): Add handling of architectures
3009 where tdep->memory_args_by_pointer is non-zero.
3010
3011 2013-09-24 Joel Brobecker <brobecker@adacore.com>
3012
3013 Revert:
3014 * i386-tdep.h (struct gdbarch_tdep): Add new field
3015 integer_param_regs_saved_in_caller_frame.
3016 * amd64-tdep.c (amd64_push_dummy_call): Allocate some memory on
3017 stack if tdep->integer_param_regs_saved_in_caller_frame is set.
3018
3019 2013-09-24 Joel Brobecker <brobecker@adacore.com>
3020
3021 * amd64-windows-tdep.c: #include "value.h"
3022 (amd64_windows_classify): Delete.
3023 (amd64_windows_passed_by_integer_register)
3024 (amd64_windows_passed_by_xmm_register)
3025 (amd64_windows_passed_by_pointer)
3026 (amd64_windows_adjust_args_passed_by_pointer)
3027 (amd64_windows_store_arg_in_reg, amd64_windows_push_arguments)
3028 (amd64_windows_push_dummy_call): New functions.
3029 (amd64_windows_init_abi): Remove setting of
3030 tdep->call_dummy_num_integer_regs, tdep->call_dummy_integer_regs,
3031 tdep->classify, tdep->memory_args_by_pointer and
3032 tdep->integer_param_regs_saved_in_caller_frame.
3033 Add call to set_gdbarch_push_dummy_call.
3034
3035 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3036
3037 * dwarf2read.c (open_and_init_dwp_file): Try open_dwp_file also with
3038 objfile->original_name.
3039
3040 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3041
3042 Pass down original filename for objfile.
3043 * coffread.c (coff_symfile_read): Update symbol_file_add_separate call.
3044 * elfread.c (elf_symfile_read): Likewise.
3045 * jit.c (jit_object_close_impl): Update allocate_objfile call, no
3046 longer set ORIGINAL_NAME.
3047 (jit_bfd_try_read_symtab): Update symbol_file_add_from_bfd call.
3048 * jv-lang.c (get_dynamics_objfile): Update allocate_objfile call.
3049 * machoread.c (macho_add_oso_symfile): Add parameter name. Update
3050 symbol_file_add_from_bfd call.
3051 (macho_symfile_read_all_oso): Update two macho_add_oso_symfile calls.
3052 (macho_check_dsym): Add parameter filenamep. Change function comment.
3053 Set *filenamep.
3054 (macho_symfile_read): New variable dsym_filename. Update
3055 macho_check_dsym call. Use it for symbol_file_add_separate.
3056 * objfiles.c (allocate_objfile): Add parameter name. New comment for
3057 it. Use it for objfile->original_name.
3058 (objfile_name): Return OBFD's filename, if available.
3059 * objfiles.h (allocate_objfile): Add new parameter name.
3060 * solib.c (solib_read_symbols): Update symbol_file_add_from_bfd call.
3061 * symfile-mem.c (symbol_file_add_from_memory): Update
3062 symbol_file_add_from_bfd call.
3063 * symfile.c (read_symbols): Update symbol_file_add_separate call, new
3064 comment for it.
3065 (symbol_file_add_with_addrs): New parameter name, add function comment
3066 for it. Remove variable name. Update allocate_objfile call.
3067 (symbol_file_add_separate): New parameter name, add function comment
3068 for it. Update symbol_file_add_with_addrs call.
3069 (symbol_file_add_from_bfd): New parameter name. Update
3070 symbol_file_add_with_addrs call.
3071 (symbol_file_add): Update symbol_file_add_from_bfd call.
3072 (reread_symbols): New variable original_name. Save
3073 objfile->original_name by it.
3074 * symfile.h (symbol_file_add_from_bfd, symbol_file_add_separate): Add
3075 second parameter.
3076
3077 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3078
3079 Code cleanup: Add objfile_name accessor function.
3080 * ada-lang.c (is_known_support_routine): Use objfile_name.
3081 * auto-load.c (source_gdb_script_for_objfile)
3082 (auto_load_objfile_script): Likewise.
3083 * coffread.c (coff_symtab_read, read_one_sym): Likewise.
3084 * dbxread.c (dbx_symfile_read): Likewise.
3085 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
3086 * dwarf2loc.c (locexpr_describe_location_piece): Likewise.
3087 * dwarf2read.c (dwarf2_get_dwz_file, dwarf2_read_index)
3088 (dw2_symtab_iter_next, dw2_expand_symtabs_matching)
3089 (lookup_dwp_signatured_type, lookup_dwo_unit)
3090 (dwarf2_build_psymtabs_hard, scan_partial_symbols, process_queue)
3091 (fixup_go_packaging, process_imported_unit_die, dwarf2_physname)
3092 (read_import_statement, create_dwo_cu, open_and_init_dwp_file)
3093 (lookup_dwo_cutu, read_call_site_scope, dwarf2_ranges_read)
3094 (dwarf2_record_block_ranges, read_common_block, read_typedef)
3095 (read_subrange_type, load_partial_dies, read_partial_die)
3096 (read_addr_index_1, read_str_index, dwarf_decode_lines_1)
3097 (die_containing_type, build_error_marker_type, lookup_die_type)
3098 (follow_die_ref_or_sig, follow_die_ref, dwarf2_fetch_die_loc_sect_off)
3099 (dwarf2_fetch_constant_bytes, follow_die_sig, get_signatured_type)
3100 (get_DW_AT_signature_type, write_psymtabs_to_index)
3101 (save_gdb_index_command): Likewise.
3102 * elfread.c (find_separate_debug_file_by_buildid, elf_symfile_read):
3103 Likewise.
3104 * expprint.c (dump_subexp_body_standard): Likewise.
3105 * gdbtypes.c (type_name_no_tag_or_error): Likewise.
3106 * jit.c (jit_object_close_impl): Use the objfile field name renamed to
3107 original_name.
3108 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New variable
3109 obj_name, use objfile_name for it, use the variable.
3110 (try_thread_db_load_from_pdir, has_libpthread, thread_db_new_objfile):
3111 Use objfile_name.
3112 * machoread.c (macho_symtab_read, macho_check_dsym)
3113 (macho_symfile_relocate): Likewise.
3114 * maint.c (maintenance_translate_address): Likewise.
3115 * minidebug.c (find_separate_debug_file_in_section): Likewise.
3116 * minsyms.c (install_minimal_symbols): Likewise.
3117 * objfiles.c (allocate_objfile): Use the objfile field name renamed to
3118 original_name.
3119 (filter_overlapping_sections): Use objfile_name.
3120 (objfile_name): New function.
3121 * objfiles.h (struct objfile): Rename field name to original_name.
3122 (objfile_name): New prototype.
3123 * printcmd.c (sym_info, address_info): Use objfile_name.
3124 * probe.c (parse_probes, collect_probes, compare_probes)
3125 (info_probes_for_ops): Likewise.
3126 * progspace.c (clone_program_space): Likewise.
3127 * psymtab.c (require_partial_symbols, dump_psymtab, allocate_psymtab)
3128 (maintenance_info_psymtabs): Likewise.
3129 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
3130 (source_section_scripts): Likewise.
3131 * python/py-objfile.c (objfpy_get_filename): Likewise.
3132 * python/py-progspace.c (pspy_get_filename): Likewise.
3133 * solib-aix.c (solib_aix_get_toc_value): Likewise.
3134 * solib-som.c (match_main, som_solib_section_offsets): Likewise.
3135 * solib.c (solib_read_symbols): Likewise.
3136 * stabsread.c (scan_file_globals): Likewise.
3137 * stap-probe.c (handle_stap_probe): Likewise.
3138 * symfile.c (symbol_file_clear, separate_debug_file_exists)
3139 (find_separate_debug_file_by_debuglink): Likewise.
3140 (reread_symbols): Likewise. Use the objfile field name renamed to
3141 original_name.
3142 (allocate_symtab): Use objfile_name.
3143 * symmisc.c (print_symbol_bcache_statistics, print_objfile_statistics)
3144 (dump_objfile, dump_msymbols, dump_symtab_1)
3145 (maintenance_print_msymbols, maintenance_print_objfiles)
3146 (maintenance_info_symtabs, maintenance_check_symtabs): Likewise.
3147 * target.c (target_translate_tls_address, target_info): Likewise.
3148 * xcoffread.c (xcoff_initial_scan): Make variable name const. Use
3149 objfile_name.
3150
3151 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3152
3153 Code cleanup.
3154 * probe.c (parse_probes): Rename variable objfile_name to
3155 objfile_namestr.
3156
3157 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3158
3159 Remove solib-sunos.c.
3160 * Makefile.in (ALLDEPFILES): Remove solib-sunos.c.
3161 * config/m68k/obsd.mh (NATDEPFILES): Remove solib-sunos.o.
3162 * objfiles.c (rt_common_objfile): Remove.
3163 (free_objfile): Remove rt_common_objfile comparison.
3164 * objfiles.h (rt_common_objfile): Remove.
3165 * solib-sunos.c: Remove.
3166 * symfile.c (reread_symbols): Remove solib-sunos.c comment.
3167
3168 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3169
3170 Remove a.out NetBSD and OpenBSD hosts.
3171 * NEWS (Removed native configurations): New.
3172 * config/arm/nbsdaout.mh: Remove.
3173 * config/i386/nbsdaout.mh: Remove.
3174 * config/i386/obsdaout.mh: Remove.
3175 * config/m68k/nbsdaout.mh: Remove.
3176 * config/sparc/nbsdaout.mh: Remove.
3177 * config/vax/nbsdaout.mh: Remove.
3178 * configure.host (arm*-*-netbsd*, i[34567]86-*-netbsd*)
3179 (i[34567]86-*-openbsd[0-2].*, i[34567]86-*-openbsd3.[0-3])
3180 (m68*-*-netbsd*, sparc-*-netbsd*, vax-*-netbsd*): Add them to obsolete
3181 error.
3182 (arm*-*-netbsd*, i[34567]86-*-netbsd*, i[34567]86-*-openbsd[0-2].*)
3183 (i[34567]86-*-openbsd3.[0-3], m68*-*-netbsd*, sparc-*-netbsdaout*)
3184 (sparc-*-netbsd*, vax-*-netbsd*): Remove.
3185
3186 2013-09-23 Tom Tromey <tromey@redhat.com>
3187
3188 * linespec.c (struct minsym_and_objfile): Remove.
3189 (minsym_and_objfile_d): Remove.
3190 (struct linespec, struct collect_info, linespec_parse_basic)
3191 (convert_linespec_to_sals, linespec_parser_delete, decode_objc)
3192 (compare_msymbols, find_method, find_function_symbols)
3193 (find_linespec_symbols, struct collect_minsyms, compare_msyms)
3194 (add_minsym, search_minsyms_for_name): Update.
3195
3196 2013-09-23 Andrew Burgess <aburgess@broadcom.com>
3197
3198 * regcache.c: Add include of valprint.h.
3199 (dump_endian_bytes): Delete.
3200 (regcache_dump): Use print_hex_chars not dump_endian_bytes.
3201
3202 2013-09-23 Andrew Burgess <aburgess@broadcom.com>
3203
3204 * sh64-tdep.c (sh64_do_fp_register): Use print_hex_chars.
3205
3206 2013-09-19 Pedro Alves <palves@redhat.com>
3207
3208 * breakpoint.c (remove_threaded_breakpoints): Skip non-user
3209 breakpoints.
3210
3211 2013-09-19 Pedro Alves <palves@redhat.com>
3212 Thomas Schwinge <thomas@codesourcery.com>
3213 Yue Lu <hacklu.newborn@gmail.com>
3214
3215 * gnu-nat.c (gnu_read_inferior, gnu_write_inferior): Make static.
3216 Take a gdb_byte pointer instead of a char pointer.
3217
3218 * gnu-nat.c (gnu_xfer_memory): Adjust interface as
3219 gnu_xfer_partial helper.
3220 (gnu_xfer_partial): New function.
3221 (gnu_target): Don't install a deprecated_xfer_memory hook.
3222 Install a to_xfer_partial hook.
3223
3224 2013-09-19 Jan Kratochvil <jan.kratochvil@redhat.com>
3225
3226 Constification.
3227 * main.c (captured_main): Replace catch_command_errors by
3228 catch_command_errors_const. Twice.
3229 * symfile.c (symbol_file_add_main_1): Make args parameter const.
3230 (symbol_file_add): Make name parameter const.
3231 (symbol_file_add_main, symbol_file_add_main_1): Make args parameter const.
3232 (symfile_bfd_open): Make name parameter const, rename it to cname. Add
3233 variable name. Change their usage accordingly.
3234 * symfile.h (symbol_file_add, symfile_bfd_open): Make first parameter
3235 const.
3236 (symbol_file_add_main): Make args parameter const.
3237
3238 2013-09-18 Raunaq Bathija <raunaq12@in.ibm.com>
3239 Ulrich Weigand <uweigand@de.ibm.com>
3240
3241 * xcoffread.c (struct coff_symbol): Use CORE_ADDR as type
3242 of c_value member.
3243 (read_xcoff_symtab): Use CORE_ADDR as type of fcn_start_addr.
3244
3245 2013-09-18 Pedro Alves <palves@redhat.com>
3246 Yue Lu <hacklu.newborn@gmail.com>
3247
3248 * gnu-nat.c (inf_validate_procs, gnu_wait, gnu_resume)
3249 (gnu_create_inferior)
3250 (gnu_attach, gnu_thread_alive, gnu_pid_to_str, cur_thread)
3251 (set_sig_thread_cmd): Use the lwpid field of ptids to
3252 store/extract thread ids instead of the tid field.
3253 * i386gnu-nat.c (gnu_fetch_registers): Adjust.
3254
3255 2013-09-18 Andrew Burgess <aburgess@broadcom.com>
3256
3257 * infcmd.c (default_print_one_register_info): Add detection of
3258 optimized out values.
3259 (default_print_registers_info): Switch to using
3260 get_frame_register_value.
3261
3262 2013-09-18 Markus Metzger <markus.t.metzger@intel.com>
3263
3264 * infrun.c (handle_inferior_event): Check if we know the
3265 function start address before setting a resume breakpoint.
3266
3267 2013-09-18 Pedro Alves <palves@redhat.com>
3268
3269 * gnu-nat.c (set_sig_thread_cmd): Compare the thread's ptid to
3270 minus_one_ptid instead of looking at the ptid's tid field and
3271 comparing that to -1.
3272
3273 2013-09-18 Andrew Burgess <aburgess@broadcom.com>
3274
3275 * main.h (get_gdb_program_name): Remove extra whitespace.
3276
3277 2013-09-18 Andrew Burgess <aburgess@broadcom.com>
3278
3279 * main.h (get_gdb_program_name): Add declaration.
3280 * main.c (get_gdb_program_name): Add definition.
3281
3282 2013-09-17 Doug Evans <dje@google.com>
3283
3284 * dwarf2read.c: Move definitions of complaint functions to after
3285 forward declarations of local functions.
3286
3287 2013-09-17 Muhammad Waqas <mwaqas@codesourcery.com>
3288 Pedro Alves <palves@redhat.com>
3289
3290 PR gdb/11568
3291 * breakpoint.c (remove_threaded_breakpoints): New function.
3292 (_initialize_breakpoint): Attach remove_threaded_breakpoints
3293 as thread_exit observer.
3294
3295 2013-09-17 Pedro Alves <palves@redhat.com>
3296
3297 PR gdb/15911
3298 * ada-tasks.c (task_command_1): Adjust call to print_stack_frame.
3299 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd):
3300 * corelow.c (core_open):
3301 * frame.h (print_stack_frame, print_frame_info): New
3302 'set_current_sal' parameter.
3303 * infcmd.c (finish_command, kill_command): Adjust call to
3304 print_stack_frame.
3305 * inferior.c (inferior_command): Likewise.
3306 * infrun.c (normal_stop): Likewise.
3307 * linux-fork.c (linux_fork_context): Likewise.
3308 * record-full.c (record_full_goto_entry, record_full_restore):
3309 Likewise.
3310 * remote-mips.c (common_open): Likewise.
3311 * stack.c (print_stack_frame): New 'set_current_sal' parameter.
3312 Use it.
3313 (print_frame_info): New 'set_current_sal' parameter. Set the last
3314 displayed sal depending on the new paremeter instead of looking at
3315 print_what.
3316 (backtrace_command_1, select_and_print_frame, frame_command)
3317 (current_frame_command, up_command, down_command): Adjust call to
3318 print_stack_frame.
3319 * thread.c (print_thread_info, restore_selected_frame)
3320 (do_captured_thread_select): Adjust call to print_stack_frame.
3321 * tracepoint.c (tfind_1): Likewise.
3322 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
3323 (mi_cmd_stack_info_frame): Likewise.
3324 * mi/mi-interp.c (mi_on_normal_stop): Likewise.
3325 * mi/mi-main.c (mi_cmd_exec_return, mi_cmd_trace_find): Likewise.
3326
3327 2013-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
3328
3329 * value.c (isvoid_internal_fn): Replace "parameter" with
3330 "argument".
3331
3332 2013-09-16 Stan Shebs <stan@codesourcery.com>
3333
3334 * README: Update references to writing code for GDB.
3335 * configure.ac (build_warnings): Remove obsolete comment.
3336 * configure: Regenerate.
3337 * gdbarch.sh: Remove references to gdbint.texinfo.
3338 * gdbarch.h: Regenerate.
3339 * gdbtypes.c (objfile_type): Remove comments referencing internals
3340 manual and D10V.
3341
3342 2013-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
3343
3344 * NEWS: Mention new convenience function $_isvoid.
3345 * value.c (isvoid_internal_fn): New function.
3346 (_initialize_values): Add new convenience function $_isvoid.
3347
3348 2013-09-16 Pierre Muller <muller@sourceware.org>
3349
3350 * arm-linux-tdep.c: Add "elf/common.h" header.
3351 Remove AT_HWCAP macro definintion as it is provided in
3352 added include file.
3353 * s390-tdep.c: Remove system header <elf.h>
3354 Add "elf/common.h" header for AT_HWCAP definition.
3355 (s390_core_read_description): Use correct CORE_ADDR
3356 for hwcap local variable used as third parameter
3357 of function target_auxv_search.
3358
3359 2013-09-14 Pierre Muller <muller@sourceware.org>
3360 Tom Tromey <tromey@redhat.com>
3361 Pedro Alves <palves@redhat.com>
3362
3363 * common/filestuff.c (gdb_fopen_cloexec): Do not try to use "e"
3364 mode if operating system doesn't know O_CLOEXEC.
3365
3366 2013-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3367
3368 Code cleanup.
3369 * symfile.c (reread_symbols): Move variable obfd_filename to a more
3370 inner block.
3371
3372 2013-09-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
3373
3374 * NEWS: Mention TDB support.
3375 * features/s390-tdb.xml: New file.
3376 * features/s390-te-linux64.xml: New file.
3377 * features/s390x-te-linux64.xml: New file.
3378 * features/Makefile (WHICH): Add new tdescs above.
3379 (s390-te-linux64-expedite): Set.
3380 (s390x-te-linux64-expedite): Set.
3381 * features/s390-te-linux64.c: New file (generated).
3382 * features/s390x-te-linux64.c: New file (generated).
3383 * regformats/s390-te-linux64.dat: New file (generated).
3384 * regformats/s390x-te-linux64.dat: New file (generated).
3385 * s390-tdep.h (HWCAP_S390_HIGH_GPRS): Define.
3386 (HWCAP_S390_TE): Likewise.
3387 (S390_TDB_DWORD0_REGNUM): Likewise.
3388 (S390_TDB_DWORD0_REGNUM): Likewise.
3389 (S390_TDB_ABORT_CODE_REGNUM): Likewise.
3390 (S390_TDB_CONFLICT_TOKEN_REGNUM): Likewise.
3391 (S390_TDB_ATIA_REGNUM): Likewise.
3392 (S390_TDB_R0_REGNUM): Likewise.
3393 (S390_TDB_R1_REGNUM): Likewise.
3394 (S390_TDB_R2_REGNUM): Likewise.
3395 (S390_TDB_R3_REGNUM): Likewise.
3396 (S390_TDB_R4_REGNUM): Likewise.
3397 (S390_TDB_R5_REGNUM): Likewise.
3398 (S390_TDB_R6_REGNUM): Likewise.
3399 (S390_TDB_R7_REGNUM): Likewise.
3400 (S390_TDB_R8_REGNUM): Likewise.
3401 (S390_TDB_R9_REGNUM): Likewise.
3402 (S390_TDB_R10_REGNUM): Likewise.
3403 (S390_TDB_R11_REGNUM): Likewise.
3404 (S390_TDB_R12_REGNUM): Likewise.
3405 (S390_TDB_R13_REGNUM): Likewise.
3406 (S390_TDB_R14_REGNUM): Likewise.
3407 (S390_TDB_R15_REGNUM): Likewise.
3408 (S390_NUM_REGS): Increase.
3409 (S390_IS_TDBREGSET_REGNUM): New macro.
3410 (s390_regmap_tdb): Declare.
3411 (s390_sizeof_tdbregset): Define.
3412 (tdesc_s390_te_linux64): Declare.
3413 (tdesc_s390x_te_linux64): Likewise.
3414 * s390-tdep.c: Add includes for "auxv.h", <elf.h>,
3415 "features/s390-te-linux64.c", and "features/s390x-te-linux64.c".
3416 (s390_regmap_tdb): New regmap.
3417 (s390_supply_tdb_regset): New function.
3418 (s390_tdb_regset): New regset.
3419 (s390_linux64v2_regset_sections): Add TDB regset to list.
3420 (s390x_linux64v2_regset_sections): Likewise.
3421 (s390_regset_from_core_section): Recognize TDB core note section.
3422 (s390_core_read_description): If HWCAP indicates TE support,
3423 select tdesc_s390_te_linux64 or tdesc_s390_s390x_te_linux64.
3424 (s390_gdbarch_init): Handle TDB regset.
3425 (_initialize_s390_tdep): Initialize new tdescs.
3426 * s390-nat.c (HWCAP_S390_HIGH_GPRS): Remove define.
3427 (have_regset_tdb): New variable.
3428 (s390_native_supply): Support register invalidation.
3429 (fetch_regset): Invalidate registers if ptrace yields ENODATA.
3430 (check_regset): Treat ENODATA as "regset exists".
3431 (s390_linux_fetch_inferior_registers): Add TDB.
3432 (s390_read_description): Check for TDB existence and select
3433 appropriate tdesc.
3434 * gdbserver/Makefile.in (clean): Add removal of new makefile
3435 targets.
3436 (s390-te-linux64.c): New makefile target.
3437 (s390x-te-linux64.c): Likewise.
3438 * gdbserver/configure.srv (srv_regobj): Append new objects
3439 s390-te-linux64.o and s390x-te-linux64.o.
3440 (srv_xmlfiles): Append new files s390-te-linux64.xml,
3441 s390x-te-linux64.xml, and s390-tdb.xml.
3442 * gdbserver/linux-s390-low.c (init_registers_s390_te_linux64): New
3443 declaration.
3444 (tdesc_s390_te_linux64): Likewise.
3445 (init_registers_s390x_te_linux64): Likewise.
3446 (tdesc_s390x_te_linux64): Likewise.
3447 (s390_check_regset): Treat ENODATA as "regset exists".
3448 (s390_arch_setup): Add TDB regset support.
3449 (initialize_low_arch): Initialize registers for new tdescs.
3450
3451 2013-09-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
3452
3453 * s390-tdep.h (S390_IS_GREGSET_REGNUM): New macro.
3454 (S390_IS_FPREGSET_REGNUM): New macro.
3455 * s390-tdep.c (s390_dwarf_regmap): Make const.
3456 (regnum_is_gpr_full): New function for replacing repeated code.
3457 (s390_pseudo_register_name): Use it.
3458 (s390_pseudo_register_type): Likewise.
3459 (s390_pseudo_register_read): Likewise.
3460 (s390_pseudo_register_write): Likewise.
3461 (s390_unwind_pseudo_register): Likewise.
3462 (s390_regmap_gregset): New format for regmap.
3463 (s390x_regmap_gregset): Likewise.
3464 (s390_regmap_fpregset): Likewise.
3465 (s390_regmap_upper): Likewise.
3466 (s390_regmap_last_break): Likewise.
3467 (s390_regmap_system_call): Likewise.
3468 (s390_supply_regset): Adjust to new regmap format.
3469 (s390_collect_regset): Likewise.
3470 * s390-nat.c (s390_native_supply): Adjust to new regmap format.
3471 (s390_native_collect): Likewise.
3472 (supply_gregset): Likewise.
3473 (fill_gregset): Likewise.
3474 (supply_fpregset): Likewise.
3475 (fill_fpregset): Likewise.
3476 (fetch_regset): Likewise.
3477 (store_regset): Likewise.
3478 (s390_linux_fetch_inferior_registers): Likewise.
3479 (s390_linux_fetch_inferior_registers): Likewise.
3480
3481 2013-09-12 Andrew Pinski <apinski@cavium.com>
3482
3483 * aarch64-linux-nat.c (aarch64_linux_set_debug_regs): Zero out regs.
3484
3485 2013-09-10 Andreas Arnez <arnez@linux.vnet.ibm.com>
3486
3487 * config/s390/s390.mh (NATDEPFILES): Add linux-waitpid.o.
3488
3489 2013-09-09 Andrew Burgess <aburgess@broadcom.com>
3490
3491 * top.c (quit_confirm): Remove use of deprecated_init_ui_hook.
3492
3493 2013-09-06 Pedro Alves <palves@redhat.com>
3494
3495 * remote-sim.c (dump_mem, gdbsim_fetch_register)
3496 (gdbsim_store_register, gdbsim_kill, gdbsim_load)
3497 (gdbsim_create_inferior, gdbsim_open, gdbsim_close)
3498 (gdbsim_detach, gdbsim_resume_inferior, gdbsim_wait)
3499 (gdbsim_files_info, gdbsim_mourn_inferior): Send debug output to
3500 gdb_stdlog.
3501
3502 2013-09-06 Pedro Alves <palves@redhat.com>
3503
3504 * remote-sim.c (dump_mem): Constify buf parameter.
3505 gdbsim_xfer_inferior_memory): Rename to ...
3506 (gdbsim_xfer_memory): ... this. Adjust interface as
3507 target_xfer_partial helper.
3508 (gdbsim_xfer_partial): New function.
3509 (init_gdbsim_ops): Don't install a deprecated_xfer_memory hook.
3510 Install a to_xfer_partial hook. Send output to gdb_stdlog.
3511
3512 2013-09-06 Pedro Alves <palves@redhat.com>
3513
3514 * remote-sim.c (gdbsim_xfer_inferior_memory): Use
3515 host_address_to_string, and send debug output to gdb_stdlog.
3516
3517 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
3518
3519 * Makefile.in (ALL_TARGET_OBS): Add cris-linux-tdep.o.
3520 * configure.tgt: Add cris-linux-tdep.o and linux-tdep.o to
3521 gdb_target_obs for cris target.
3522 * cris-tdep.c (struct gdbarch_tdep): Move to cris-tdep.h.
3523 (cris_gdbarch_init): Move calls to
3524 set_gdbarch_fetch_tls_load_module_address and
3525 set_solib_svr4_fetch_link_map_offsets to cris-linux-tdep.c.
3526 Add call to gdbarch_init_osabi.
3527 * cris-linux-tdep.c: New file.
3528 * cris-tdep.h: New file.
3529
3530 2013-09-06 Andrew Burgess <aburgess@broadcom.com>
3531
3532 * tui/tui-io.c (tui_initialize_io): Remove legacy comment referring
3533 to deprecated_init_ui_hook.
3534
3535 2013-09-06 Andrew Burgess <aburgess@broadcom.com>
3536
3537 * cli/cli-interp.c (_initialize_cli_interp): Add a
3538 command_loop_proc to interp_procs.
3539 * event-top.c (cli_command_loop): Change signature to match
3540 interp_command_loop_ftype.
3541 * event-top.h (cli_command_loop): Same.
3542 * interps.c (interp_new): Require every interpreter to have a
3543 command_loop_proc.
3544 (current_interp_command_loop): Just call the command_loop_proc on
3545 the current interpreter.
3546 * tui/tui-interp.c (_initialize_tui_interp): Add a
3547 command_loop_proc to interp_procs.
3548
3549 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
3550
3551 * cris-tdep.c (cris_gdbarch_init): Add call to
3552 get_gdbarch_fetch_tls_load_module_address.
3553
3554 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
3555
3556 * cris-tdep.c (cris_elf_greg_t): Rename from elf_greg_t.
3557 (cris_elf_gregset_t): Rename from elf_gregset_t.
3558 (crisv32_elf_gregset_t): Adjust.
3559 (cris_supply_gregset, fetch_core_registers): Adjust.
3560
3561 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
3562
3563 * cris-tdep.c (elf_greg_t): Change typedef to unsigned char[4]
3564
3565 2013-09-05 Andrew Burgess <aburgess@broadcom.com>
3566
3567 * defs.h (deprecated_command_loop_hook): Remove, including
3568 references in comments.
3569 * interps.c (current_interp_command_loop): No longer use
3570 deprecated_command_loop_hook.
3571 (clear_interpreter_hooks): Remove deprecated_command_loop_hook
3572 setup.
3573 * top.c (deprecated_command_loop_hook): Remove.
3574
3575 2013-09-05 Pedro Alves <palves@redhat.com>
3576
3577 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): 'dwarf_regnum'
3578 local is now int instead of ULONGEST. Print it with %d
3579 instead of paddress.
3580
3581 2013-09-05 Tristan Gingold <gingold@adacore.com>
3582
3583 * MAINTAINERS: Remove avr maintainership.
3584
3585 2013-09-05 Pedro Alves <palves@redhat.com>
3586
3587 * findvar.c (value_of_register): Rework in terms of
3588 value_of_register_lazy.
3589
3590 2013-09-05 Muhammad Bilal <mbilal@codesourcery.com>
3591
3592 * symfile.c (add_symbol_file_command): Remove trailing
3593 whitespaces and blank line after comment.
3594
3595 2013-09-05 Pedro Alves <palves@redhat.com>
3596
3597 * tui/tui-regs.c (tui_register_format): Don't look at the
3598 register's name here. Return string representing register
3599 value instead of storing it in the data element.
3600 (tui_get_register): Compare register string representations
3601 instead of register value states and contents.
3602
3603 2013-09-05 Pedro Alves <palves@redhat.com>
3604
3605 PR tui/15933
3606 * tui/tui-regs.c (tui_show_registers): Show registers of the
3607 selected frame, not the current frame.
3608
3609 2013-09-05 Ricard Wanderlof <ricardw@axis.com>
3610
3611 * MAINTAINERS (Write After Approval): Add myself to the list.
3612
3613 2013-09-04 Doug Evans <dje@google.com>
3614
3615 * dwarf2read.c (queue_and_load_all_dwo_tus): New function.
3616 (queue_and_load_dwo_tu): New function.
3617 (lookup_dwo_signatured_type): Set per_cu.tu_read.
3618 (maybe_queue_comp_unit): Rename this_cu argument to dependent_cu.
3619 Make dependent_cu optional.
3620 (dw2_do_instantiate_symtab): If we just loaded a CU from a DWO,
3621 and an older .gdb_index is in use, queue and load all its TUs too.
3622
3623 2013-09-04 Jan Kratochvil <jan.kratochvil@redhat.com>
3624
3625 Code cleanup: Change OPF_DISABLE_REALPATH to OPF_RETURN_REALPATH.
3626 * cli/cli-cmds.c (find_and_open_script): Add OPF_RETURN_REALPATH to
3627 variable search_flags.
3628 * defs.h (OPF_DISABLE_REALPATH): Rename to ...
3629 (OPF_RETURN_REALPATH): ... here.
3630 * dwarf2read.c (try_open_dwop_file): Set OPF_RETURN_REALPATH for flags.
3631 * exec.c (exec_file_attach): Remove OPF_DISABLE_REALPATH from openp
3632 call. Twice.
3633 * nto-tdep.c (nto_find_and_open_solib): Add OPF_RETURN_REALPATH for
3634 openp call.
3635 * solib.c (solib_find): Likewise. Four times.
3636 * source.c (openp): Change OPF_DISABLE_REALPATH to OPF_RETURN_REALPATH
3637 in the function comment and for the realpath_fptr variable.
3638 (source_full_path_of): Add OPF_RETURN_REALPATH for openp call.
3639 (find_and_open_source): Likewise. Twice.
3640 * symfile.c (symfile_bfd_open): Likewise, also twice.
3641
3642 2013-09-04 Doug Evans <dje@google.com>
3643
3644 * progspace.c (save_current_space_and_thread): Remove unnecessary
3645 call to save_current_inferior.
3646
3647 2013-09-04 Andrew Burgess <aburgess@broadcom.com>
3648
3649 * sh64-tdep.c (sh64_do_register): Return after printing message
3650 about unavailable register contents.
3651
3652 2013-09-04 Muhammad Bilal <mbilal@codesourcery.com>
3653 Pedro Alves <palves@redhat.com>
3654
3655 * symfile.c (add_symbol_file_command): Error out on unknown
3656 option. Handle EXPECTING_SEC_ADDR/EXPECTING_SEC_NAME before '-'
3657 options and collapse into single conditional branch.
3658
3659 2013-09-03 Luis Machado <lgustavo@codesourcery.com>
3660
3661 * inf-child.c (inf_child_follow_fork): New parameter
3662 detach_fork.
3663 * inf-ptrace.c (inf_ptrace_follow_fork): Likewise.
3664 * inf-ttrace.c (inf_ttrace_follow_fork): Likewise.
3665 * inferior.h (detach_fork): Remove.
3666 * infrun.c (detach_fork): Adjust comment and make it
3667 static.
3668 (follow_fork): Pass detach_fork parameter to
3669 target_follow_fork.
3670 * linux-nat.c (linux_child_follow_fork): New parameter
3671 detach_fork.
3672 * target.c (target_follow_fork): New parameter detach_fork.
3673 Pass detach_fork as parameter and print its value.
3674 * target.h (struct target_ops) <to_follow_fork>: New int
3675 parameter.
3676 (target_follow_fork): New parameter detach_fork.
3677
3678 2013-09-03 Joel Brobecker <brobecker@adacore.com>
3679
3680 * solib-ia64-hpux.c (ia64_hpux_relocate_section_addresses):
3681 Replace sec->bfd by sec->the_bfd_section->owner.
3682
3683 2013-09-03 Yao Qi <yao@codesourcery.com>
3684
3685 * linux-tdep.c (linux_is_uclinux): New function. Code moved
3686 from linux_has_shared_address_space.
3687 (linux_has_shared_address_space): Call linux_is_uclinux.
3688 * linux-tdep.h (linux_is_uclinux): Declare.
3689 * m68klinux-tdep.c (m68k_linux_get_sigtramp_info): Call
3690 linux_is_uclinux.
3691
3692 2013-09-03 Yao Qi <yao@codesourcery.com>
3693
3694 * config/djgpp/fnchange.lst: Remove entry of
3695 i386-interix-nat.c and i386-interix-tdep.c.
3696 * configure.ac: Remove '*-*-interix*'.
3697 * configure: Re-generated.
3698 * defs.h (enum gdb_osabi): Remove GDB_OSABI_INTERIX.
3699 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Remove
3700 obsolete comments.
3701 * osabi.c (gdb_osabi_names): Remove "Interix".
3702
3703 2013-09-03 Yao Qi <yao@codesourcery.com>
3704
3705 * arch-utils.c: Fix typo in the comment to gdbarch_update_p.
3706
3707 2013-09-02 Markus Metzger <markus.t.metzger@intel.com>
3708
3709 * record.h (record_print_flag) <record_print_src_line,
3710 record_print_insn_range>: Rename into ...
3711 (record_print_flag) <record_print_src_line,
3712 record_print_insn_range>: ... this. Update all users.
3713
3714 2013-09-02 Pierre Muller <muller@sourceware.org>
3715
3716 * windows-nat.c (windows_xfer_memory): Handle ERROR_PARTIAL_COPY
3717 error code.
3718
3719 2013-09-02 Pierre Muller <muller@sourceware.org>
3720
3721 * windows-nat.c (windows_xfer_memory): Fix compilation failure
3722 by use of plongest function.
3723
3724 2013-09-02 Tristan Gingold <gingold@adacore.com>
3725
3726 * NEWS: Add entry mentioning support for native Windows x64
3727 SEH data.
3728
3729 * amd64-windows-tdep.c: #include "objfiles.h", "frame-unwind.h",
3730 "coff/internal.h", "coff/i386.h", "coff/pe.h" and "libcoff.h".
3731 (struct amd64_windows_frame_cache): New struct.
3732 (amd64_windows_w2gdb_regnum): New global.
3733 (pc_in_range, amd64_windows_frame_decode_epilogue)
3734 (amd64_windows_frame_decode_insns, amd64_windows_find_unwind_info)
3735 (amd64_windows_frame_cache, amd64_windows_frame_prev_register)
3736 (amd64_windows_frame_this_id): New functions.
3737 (amd64_windows_frame_unwind): New static global.
3738 (amd64_windows_skip_prologue): New function.
3739 (amd64_windows_init_abi): Call frame_unwind_prepend_unwinder
3740 with amd64_windows_frame_unwind. Call set_gdbarch_skip_prologue
3741 with amd64_windows_skip_prologue.
3742
3743 2013-08-30 Joel Brobecker <brobecker@adacore.com>
3744
3745 GDB 7.6.1 released.
3746
3747 2013-08-30 Pedro Alves <palves@redhat.com>
3748
3749 * mi/mi-main.c (mi_cmd_trace_find): Use LOC_AND_ADDRESS instead of
3750 SRC_AND_LOC.
3751
3752 2013-08-30 Pedro Alves <palves@redhat.com>
3753
3754 * thread.c (restore_selected_frame): Use SRC_AND_LOC, and change
3755 warning text.
3756
3757 2013-08-30 Pedro Alves <palves@redhat.com>
3758
3759 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd):
3760 Adjust arguments to print_stack_frame.
3761
3762 2013-08-30 Pedro Alves <palves@redhat.com>
3763
3764 * ada-tasks.c (task_command_1): Write SRC_AND_LOC instead '1'.
3765
3766 2013-08-30 Pedro Alves <palves@redhat.com>
3767
3768 * frame.h (show_and_print_stack_frame): Delete declaration.
3769
3770 2013-08-30 Phil Muldoon <pmuldoon@redhat.com>
3771
3772 PR python/15461
3773 * python/py-arch.c (ARCHPY_REQUIRE_VALID): New macro.
3774 (archpy_name): Check for valid architecture.
3775 (archpy_disassemble): Ditto.
3776
3777 2013-08-29 Joel Brobecker <brobecker@adacore.com>
3778
3779 * rs6000-nat.c (rs6000_ptrace32): Cast "addr" to "uintptr_t"
3780 instead of "long long" in call to ptrace64.
3781
3782 2013-08-29 Andrew Burgess <aburgess@broadcom.com>
3783
3784 * mi/mi-interp.c (mi_command_loop): Change signature to match
3785 interp_command_loop_ftype.
3786 (mi1_command_loop): Remove.
3787 (mi2_command_loop): Remove.
3788 (mi3_command_loop): Remove.
3789 (mi_interpreter_resume): Remove setting of
3790 deprecated_command_loop_hook.
3791 (_initialize_mi_interp): Set mi_command_loop as the command loop
3792 callback.
3793
3794 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
3795
3796 * valops.c (do_search_struct_field): Pass v2 instead of base_type to
3797 value_type.
3798
3799 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
3800
3801 * value.c (allocate_value_contents): Make static.
3802 * value.h (allocate_value_contents): Remove prototype.
3803
3804 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
3805
3806 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use value_at_lazy instead
3807 of assembling value via allocate_value_lazy and attribute setter.
3808 * findvar.c (default_read_var_value): Use value_at_lazy instead of
3809 assembling value via allocate_value_lazy and attribute setter.
3810 * valops.c (do_search_struct_field): Use value_at_lazy instead of
3811 assembling value via allocate_value_lazy and attribute setter.
3812
3813 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
3814
3815 * value.c (value_from_contents_and_address): Replace allocate_value and
3816 memcpy with value_from_contents.
3817
3818 2013-08-29 Phil Muldoon <pmuldoon@redhat.com>
3819
3820 * python/py-framefilter.c (py_print_frame): Remove usage of
3821 PyString_AsString. Use python_string_to_host_string instead.
3822 Refactor function to work with a string as a new allocation
3823 instead of a pointer.
3824 (py_print_frame): Ditto.
3825 * python/lib/gdb/frames.py (return_list): Cain iterators together
3826 instead of adding them as a list.
3827 (_sort_list): Call return_list, and remove duplicate code.
3828 (execute_frame_filters): Convert iterator to a list with list().
3829 * python/lib/gdb/command/frame_filters.py
3830 (SetFrameFilterPriority._set_filter_priority): Convert priority
3831 attribute to an integer.
3832 * python/lib/gdb/FrameIterator.py (FrameIterator.next): Define
3833 wrapper function __next__.
3834 * python/lib/gdb/FrameDecorator.py: If basestring not defined,
3835 define as "str".
3836
3837 2013-08-29 Phil Muldoon <pmuldoon@redhat.com>
3838
3839 PR python/15752
3840 * python/py-framefilter.c (apply_frame_filter): Check
3841 gdb_python_initialized. Exit if the Python frame-filter code
3842 cannot be initialized.
3843
3844 2013-08-29 Phil Muldoon <pmuldoon@redhat.com>
3845
3846 PR cli/15842
3847 * top.c (print_gdb_version): Remove erroneous newline after help
3848 text.
3849
3850 2013-08-29 Yao Qi <yao@codesourcery.com>
3851
3852 * varobj.c (install_dynamic_child): Remove trailing space.
3853 Add one blank line after variable declaration.
3854
3855 2013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3856
3857 PR gdb/15415
3858 * corefile.c (get_exec_file): Use exec_filename.
3859 * defs.h (OPF_DISABLE_REALPATH): New definition. Add new comment.
3860 * exec.c (exec_close): Free EXEC_FILENAME.
3861 (exec_file_attach): New variable canonical_pathname. Use
3862 OPF_DISABLE_REALPATH. Call gdb_realpath explicitly. Set
3863 EXEC_FILENAME.
3864 * exec.h (exec_filename): New.
3865 * inferior.c (print_inferior, inferior_command): Use
3866 PSPACE_EXEC_FILENAME.
3867 * mi/mi-main.c (print_one_inferior): Likewise.
3868 * progspace.c (clone_program_space, print_program_space): Likewise.
3869 * progspace.h (struct program_space): New field pspace_exec_filename.
3870 * source.c (openp): Describe OPF_DISABLE_REALPATH. New variable
3871 realpath_fptr, initialize it from OPF_DISABLE_REALPATH, use it.
3872
3873 2013-08-28 Will Newton <will.newton@linaro.org>
3874
3875 * common/linux-ptrace.c: Include stdint.h unconditionally.
3876
3877 2013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3878
3879 Code cleanup.
3880 * nto-tdep.c (nto_find_and_open_solib): Use OPF_TRY_CWD_FIRST.
3881
3882 2013-08-28 Yao Qi <yao@codesourcery.com>
3883 Pedro Alves <palves@redhat.com>
3884
3885 * event-top.c (gdb_setup_readline): Call stderr_fileopen
3886 instead of stdio_fileopen.
3887 * main.c (captured_main) [__MINGW32__]: Set stderr unbuffered.
3888 .Call stderr_fileopen instead of stdio_fileopen.
3889 * ui-file.c [__MINGW32__] (stderr_file_write): New function.
3890 [__MINGW32__] (stderr_file_fputs): New function.
3891 (stderr_fileopen): New function.
3892 * ui-file.h (stderr_fileopen): Declare.
3893
3894 2013-08-27 Doug Evans <dje@google.com>
3895
3896 * dwarf2read.c (struct dwarf2_cu): Tweak comment.
3897 (struct dwarf2_per_cu_data): Ditto.
3898 (maybe_queue_comp_unit): Delete forward decl. Add comment.
3899 (process_imported_unit_die): Ditto.
3900 (follow_die_sig_1): Simplify assert.
3901
3902 2013-08-27 Pedro Alves <palves@redhat.com>
3903
3904 * windows-nat.c (windows_xfer_memory): Adjust prototype to follow
3905 xfer_partial's interface. Return TARGET_XFER_E_IO on error.
3906 (windows_xfer_partial): Defer TARGET_OBJECT_MEMORY handling to
3907 windows_xfer_memory directly.
3908 (init_windows_ops): Don't install a deprecated_xfer_memory method.
3909
3910 2013-08-27 Pedro Alves <palves@redhat.com>
3911
3912 * darwin-nat.c (darwin_xfer_memory): Delete.
3913 (_initialize_darwin_inferior): Don't install a
3914 deprecated_xfer_memory method.
3915
3916 2013-08-27 Pedro Alves <pedro@codesourcery.com>
3917 Yao Qi <yao@codesourcery.com>
3918
3919 * mi/mi-cmd-stack.c (list_args_or_locals): Adjust prototype.
3920 (parse_no_frames_option): Remove.
3921 (mi_cmd_stack_list_locals): Handle --skip-unavailable.
3922 (mi_cmd_stack_list_args): Adjust.
3923 (mi_cmd_stack_list_variables): Handle --skip-unavailable.
3924 (list_arg_or_local): Add new parameter 'skip_unavailable'. Return
3925 early if SKIP_UNAVAILABLE is true and ARG->val is unavailable.
3926 Caller update.
3927 (list_args_or_locals): New parameter 'skip_unavailable'.
3928 Handle it.
3929 * valprint.c (scalar_type_p): Rename to ...
3930 (val_print_scalar_type_p): ... this. Make extern.
3931 (val_print, value_check_printable): Adjust.
3932 * valprint.h (val_print_scalar_type_p): Declare.
3933 * value.c (value_entirely_unavailable): New function.
3934 * value.h (value_entirely_unavailable): Declare.
3935
3936 * NEWS: Mention the new option "--skip-unavailable" to MI
3937 commands '-stack-list-locals', '-stack-list-arguments' and
3938 '-stack-list-variables'.
3939
3940 2013-08-27 Yao Qi <yao@codesourcery.com>
3941
3942 * mi/mi-cmd-stack.c (parse_no_frames_option): Remove.
3943 (mi_cmd_stack_list_args): Use mi_getopt_silent to handle
3944 options.
3945 * mi/mi-getopt.c (mi_getopt): Remove.
3946 (mi_getopt_1): Renamed from mi_getopt. Add one parameter
3947 'error_on_unknown'.
3948 (mi_getopt): Call mi_getopt_1.
3949 (mi_getopt_silent): New.
3950 * mi/mi-getopt.h (mi_getopt_silent): Declare.
3951
3952 2013-08-26 Doug Evans <dje@google.com>
3953
3954 PR symtab/15885
3955 * dwarf2read.c (dw2_dump): Print some minimal information indicating
3956 .gdb_index is in use.
3957 * symfile.c (reread_symbols): Reset objfile->sf.
3958
3959 * NEWS: Document "mt print objfiles" now takes optional regexp.
3960 * symmisc.c (maintenance_print_objfiles): Argument is now an optional
3961 regexp of objfiles to print.
3962 (_initialize_symmisc): Update doc string for "mt print objfiles".
3963
3964 * dwarf2read.c (write_psymtabs_to_index): Move error checks ahead of
3965 missing debug info checks.
3966
3967 2013-08-26 Raunaq Bathija <raunaq12@in.ibm.com>
3968 Ulrich Weigand <uweigand@de.ibm.com>
3969
3970 * xcoffread.c (arrange_linetable): Add fix to correctly handle
3971 line tables generated by XLC compiled binaries.
3972
3973 2013-08-23 Doug Evans <dje@google.com>
3974
3975 * symmisc.c (dump_symtab): Delete prototype.
3976 (dump_msymbols, dump_objfile): Ditto.
3977 (maintenance_info_symtabs): Mark as dont_repeat.
3978 (_initialize_symmisc): Improve doc string for "mt info symtabs".
3979
3980 * elfread.c (elf_symfile_read): Move "Done reading minimal symbols"
3981 debugging printf to better location.
3982
3983 2013-08-23 Pedro Alves <palves@redhat.com>
3984
3985 * target.c (target_read_live_memory): Change type of 'ret' local
3986 to LONGEST.
3987
3988 2013-08-23 Pedro Alves <palves@redhat.com>
3989
3990 * remote.c (remote_write_bytes_aux, remote_write_bytes)
3991 (remote_read_bytes): Change return type to LONGEST, and adjust to
3992 return a target_xfer_error on error.
3993 (remote_xfer_memory): Delete.
3994 (remote_flash_write): Change type of 'ret' local to LONGEST.
3995 (remote_xfer_partial, remote_xfer_partial): Adjust.
3996 (init_remote_ops): Don't install a deprecated_xfer_memory hook.
3997
3998 2013-08-23 Pierre Muller <muller@sourceware.org>
3999
4000 ARI fix: Push # directives to start of line.
4001 * rs6000-nat.c (rs6000_ptrace32, rs6000_ptrace64): Rule applied.
4002
4003 2013-08-12 Muhammad Waqas <mwaqas@codesourcery.com>
4004
4005 PR gdb/15501
4006 * breakpoint.c (enable_command, disable_command): Iterate over
4007 all specified breakpoint locations.
4008
4009 2013-08-22 Luis Machado <lgustavo@codesourcery.com>
4010
4011 * common/linux-ptrace.c (linux_fork_to_function): Push #
4012 directives to the start of the line.
4013 (linux_check_ptrace_features): Fix warning message to use
4014 the "_" markup.
4015
4016 2013-08-22 Luis Machado <lgustavo@codesourcery.com>
4017
4018 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-nat.h and
4019 nat/linux-waitpid.h.
4020 (linux-waitpid.o): New object file rule.
4021 * common/linux-ptrace.c: Include nat/linux-waitpid.h.
4022 (current_ptrace_options): Moved from linux-nat.c.
4023 (linux_ptrace_test_ret_to_nx): Use type casts for ptrace
4024 parameters.
4025 (linux_fork_to_function): New function.
4026 (linux_grandchild_function): Likewise.
4027 (linux_child_function): Likewise.
4028 (linux_check_ptrace_features): New function, heavily
4029 based on linux-nat.c:linux_test_for_tracefork.
4030 (linux_enable_event_reporting): New function.
4031 (ptrace_supports_feature): Likewise.
4032 (linux_supports_tracefork): Likewise.
4033 (linux_supports_traceclone): Likewise.
4034 (linux_supports_tracevforkdone): Likewise.
4035 (linux_supports_tracesysgood): Likewise.
4036 * common/linux-ptrace.h (HAS_NOMMU): Moved from
4037 gdbserver/linux-low.c.
4038 (linux_enable_event_reporting): New declaration.
4039 (linux_supports_tracefork): Likewise.
4040 (linux_supports_traceclone): Likewise.
4041 (linux_supports_tracevforkdone): Likewise.
4042 (linux_supports_tracesysgood): Likewise.
4043 * config.in (PTRACE_TYPE_ARG4): Regenerate.
4044 * config/aarch64/linux.mh (NATDEPFILES): Add linux-waitpid.o.
4045 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
4046 * config/arm/linux.mh (NATDEPFILES): Likewise.
4047 * config/i386/linux.mh (NATDEPFILES): Likewise.
4048 * config/i386/linux64.mh (NATDEPFILES): Likewise.
4049 * config/ia64/linux.mh (NATDEPFILES): Likewise.
4050 * config/m32r/linux.mh (NATDEPFILES): Likewise.
4051 * config/m68k/linux.mh (NATDEPFILES): Likewise.
4052 * config/mips/linux.mh (NATDEPFILES): Likewise.
4053 * config/pa/linux.mh (NATDEPFILES): Likewise..
4054 * config/powerpc/linux.mh (NATDEPFILES): Likewise..
4055 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
4056 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
4057 * config/sparc/linux.mh (NATDEPFILES): Likewise.
4058 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
4059 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
4060 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
4061 * configure.ac (AC_CACHE_CHECK): Add void * to the list of
4062 ptrace's 4th argument's types.
4063 Check the type of PTRACE_TYPE_ARG4.
4064 * configure: Regenerate.
4065 * linux-nat.c: Include nat/linux-nat.h and nat/linux-waitpid.h.
4066 (SYSCALL_SIGTRAP): Moved to nat/linux-nat.h.
4067 (linux_supports_tracefork_flag): Remove.
4068 (linux_supports_tracesysgood_flag): Likewise.
4069 (linux_supports_tracevforkdone_flag): Likewise.
4070 (current_ptrace_options): Moved to
4071 common/linux-ptrace.c.
4072 (linux_tracefork_child): Remove.
4073 (my_waitpid): Remove.
4074 (linux_test_for_tracefork): Renamed to
4075 linux_check_ptrace_features and moved to common/linux-ptrace.c.
4076 (linux_test_for_tracesysgood): Remove.
4077 (linux_supports_tracesysgood): Remove.
4078 (linux_supports_tracefork): Remove.
4079 (linux_supports_tracevforkdone): Remove.
4080 (linux_enable_tracesysgood): Remove.
4081 (linux_enable_event_reporting): Remove.
4082 (linux_init_ptrace): New function.
4083 (linux_child_post_attach): Call linux_init_ptrace.
4084 (linux_child_post_startup_inferior): Call linux_init_ptrace.
4085 (linux_child_follow_fork): Call linux_supports_tracefork
4086 and linux_supports_tracevforkdone.
4087 (linux_child_insert_fork_catchpoint): Call
4088 linux_supports_tracefork.
4089 (linux_child_insert_vfork_catchpoint): Likewise.
4090 (linux_child_set_syscall_catchpoint): Call
4091 linux_supports_tracesysgood.
4092 (lin_lwp_attach_lwp): Call linux_supports_tracefork.
4093 * nat/linux-nat.h: New file.
4094 * nat/linux-waitpid.c: New file.
4095 * nat/linux-waitpid.h: New file.
4096
4097 2013-08-22 Samuel Bronson <naesten@gmail.com>
4098
4099 ARM Linux support for `catch syscall'.
4100 * syscalls/arm-linux.py: New file.
4101 * syscalls/arm-linux.xml: Likewise.
4102 * arm-linux-tdep.c (arm_linux_get_syscall_number): New function.
4103 (arm_linux_init_abi): Register the new function and syscall xml file.
4104 * data-directory/Makefile.in: Install the new syscall xml file.
4105 * NEWS: Brag about this.
4106
4107 2013-08-22 Pedro Alves <palves@redhat.com>
4108
4109 PR gdb/15871
4110 * corefile.c (target_xfer_memory_error): New function.
4111 (memory_error): Defer EIO to target_memory_error.
4112 (read_memory): Use target_xfer_partial, and handle finer-grained
4113 target xfer errors.
4114 * target.c (target_xfer_error_to_string): New function.
4115 (memory_xfer_partial_1): If memory is known to be
4116 unavailable, return TARGET_XFER_E_UNAVAILABLE instead of -1.
4117 (target_xfer_partial): Make extern.
4118 * target.h (enum target_xfer_error): New enum.
4119 (target_xfer_error_to_string): Declare function.
4120 (target_xfer_partial): Declare function.
4121 (struct target_ops) <xfer_partial>: Adjust describing comment.
4122
4123 2013-08-22 Alan Modra <amodra@gmail.com>
4124
4125 * configure.host: Support powerpc64le-linux and powerpcle-linux hosts.
4126 * configure.tgt: Likewise as targets.
4127
4128 2013-08-20 Doug Evans <dje@google.com>
4129
4130 * buildsym.c (subfile_stack): Move here from buildsym.h.
4131 (pending_macros): Ditto.
4132 (get_macro_table): New function.
4133 (buildsym_init): Initialize subfile_stack.
4134 * coffread.c (type_vector,type_vector_length): Moved here from
4135 buildsym.h.
4136 (INITIAL_TYPE_VECTOR_LENGTH): Ditto.
4137 (coff_symtab_read): Use it.
4138 * dbxread.c (read_ofile_symtab): Delete init of subfile_stack.
4139 * dwarf2read.c (macro_start_file): Replace uses of pending_macros
4140 with call to get_macro_table.
4141 * stabsread.c (type_vector,type_vector_length): Moved here from
4142 buildsym.h.
4143 (INITIAL_TYPE_VECTOR_LENGTH): Ditto.
4144 * buildsym.h (get_macro_table): Declare.
4145
4146 2013-08-20 Tom Tromey <tromey@redhat.com>
4147
4148 * dbxread.c (record_minimal_symbol): Make 'name' argument const.
4149 Update.
4150 (read_dbx_dynamic_symtab): Make 'name' const. Remove casts.
4151
4152 2013-08-20 Doug Evans <dje@google.com>
4153
4154 * blockframe.c: Remove #include "psymtab.h".
4155 * cp-support.c: Ditto.
4156 * source.c: Ditto.
4157 * stack.c: Ditto.
4158
4159 2013-08-20 Tom Tromey <tromey@redhat.com>
4160
4161 PR python/15816:
4162 * exceptions.h (return_mask): Now an enum.
4163 (RETURN_MASK_QUIT, RETURN_MASK_ERROR, RETURN_MASK_ALL): Now
4164 enum constants.
4165
4166 2013-08-20 Tom Tromey <tromey@redhat.com>
4167
4168 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Use
4169 get_objfile_arch.
4170 * elfread.c (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
4171 (elf_gnu_ifunc_resolve_by_got): Use get_objfile_arch.
4172 * jit.c (jit_object_close_impl): Update.
4173 * jv-lang.c (get_dynamics_objfile): Update.
4174 * linespec.c (add_minsym): Use get_dynamics_objfile.
4175 * objfiles.c (get_objfile_bfd_data): Initialize 'gdbarch' field.
4176 (allocate_objfile): Don't initialize 'gdbarch' field.
4177 (get_objfile_arch): Update.
4178 * objfiles.h (struct objfile_per_bfd_storage) <gdbarch>: New field,
4179 moved from...
4180 (struct objfile) <gdbarch>: ... here. Remove.
4181 * stap-probe.c (stap_can_evaluate_probe_arguments): Use
4182 get_objfile_arch.
4183 * symfile.c (init_entry_point_info): Use get_objfile_arch.
4184
4185 2013-08-20 Alan Modra <amodra@gmail.com>
4186
4187 * doublest.c (convert_floatformat_to_doublest): Use fmt->split_half
4188 for IBM long double nan and inf.
4189 (floatformat_is_negative, floatformat_classify,
4190 floatformat_mantissa): Similarly.
4191 (floatformat_ieee_single, floatformat_ieee_double,
4192 floatformat_ieee_quad, floatformat_arm_ext,
4193 floatformat_ia64_spill): Delete unused vars.
4194 (_initialize_doublest): Delete unused function.
4195 * gdbtypes.c (floatformats_ibm_long_double): Use new big- and
4196 little-endian variants of floatformat_ibm_long_double.
4197
4198 2013-08-19 Luis Machado <lgustavo@codesourcery.com>
4199
4200 * Makefile.in (SFILES): Remove common/target-common.c and
4201 add target/waitstatus.c.
4202 (HFILES_NO_SRCDIR): Remove common/target-common.h and add
4203 target/resume.h, target/wait.h and target/waitstatus.h.
4204 (COMMON_OBS): Remove target-common.o and add
4205 waitstatus.o.
4206 (target-common.o): Remove.
4207 (waitstatus.o): New target object file.
4208 * common/target-common.c: Move contents to
4209 target/waitstatus.c and remove.
4210 * common/target-common.h: Move contents to other files and
4211 remove.
4212 (enum resume_kind: Move to target/resume.h.
4213 (TARGET_WNOHANG): Move to target/wait.h.
4214 (enum target_waitkind): Move to target/waitstatus.h.
4215 (struct target_waitstatus): Likewise.
4216 * target.h: Do not include target-common.h and
4217 include target/resume.h, target/wait.h and
4218 target/waitstatus.h.
4219 * target/resume.h: New file.
4220 * target/wait.h: New file.
4221 * target/waitstatus.h: New file.
4222 * target/waitstatus.c: New file.
4223
4224 2013-08-19 Pedro Alves <palves@redhat.com>
4225
4226 * linux-nat.c (linux_test_for_tracefork)
4227 (linux_test_for_tracesysgood, linux_child_follow_fork)
4228 (lin_lwp_attach_lwp, linux_nat_resume): Don't block child signals.
4229 (linux_nat_wait_1): Extend comment.
4230 (linux_async_pipe): Add comment.
4231
4232 2013-08-15 Kevin Buettner <kevinb@redhat.com>
4233
4234 * rl78-tdep.c (RL78_RAW_PC_REGNUM): New enum.
4235 (RL78_PC_REGNUM): Move to list of pseudo-register enums.
4236 (rl78_register_type, rl78_register_name, rl78_register_reggroup_p):
4237 Update to account for fact that PC is now a pseudo-register.
4238 (rl78_pseudo_register_write, rl78_pseudo_register_read): Add
4239 cases for RL78_PC_REGNUM.
4240
4241 2013-08-15 Muhammad Bilal <mbilal@codesourcery.com>
4242
4243 PR cli/15841
4244 * top.c (quit_force): Skip writing history file
4245 if input is not from terminal.
4246
4247 2013-08-14 Tom Tromey <tromey@redhat.com>
4248
4249 * remote.c (struct remote_state) <echo_nextthread, nextthread,
4250 resultthreadlist>: New fields.
4251 (OPAQUETHREADBYTES, threadref, MAXTHREADLISTRESULTS): Move earlier.
4252 (remote_get_threadlist, remote_threadlist_iterator): Use
4253 new fields. Remove static variables.
4254
4255 2013-08-14 Tom Tromey <tromey@redhat.com>
4256
4257 * remote.c (struct remote_state) <remote_stopped_by_watchpoint_p,
4258 remote_watch_data_address>: New fields.
4259 (remote_stopped_by_watchpoint_p, remote_watch_data_address): Remove.
4260 (process_stop_reply, remote_wait_as)
4261 (remote_check_watch_resources, remote_stopped_data_address): Update.
4262
4263 2013-08-14 Tom Tromey <tromey@redhat.com>
4264
4265 * remote.c (struct remote_state) <async_client_callback,
4266 async_client_context>: New fields.
4267 (async_client_callback, async_client_context): Remove.
4268 (remote_async_serial_handler, remote_async): Update.
4269
4270 2013-08-14 Tom Tromey <tromey@redhat.com>
4271
4272 * remote.c (sizeof_pkt): Remove.
4273 (remote_trace_find): Use rs->buf_size, not sizeof_pkt.
4274
4275 2013-08-14 Tom Tromey <tromey@redhat.com>
4276
4277 * remote.c (struct remote_state) <use_threadinfo_query,
4278 use_threadextra_query>: New fields.
4279 (remote_threads_info, remote_threads_extra_info)
4280 (remote_open_1): Update.
4281
4282 2013-08-14 Tom Tromey <tromey@redhat.com>
4283
4284 * remote.c (struct remote_state) <finished_object,
4285 finished_annex, finished_offset>: New fields.
4286 (remote_read_qxfer): Use remote_state fields; remove static
4287 variables.
4288
4289 2013-08-14 Tom Tromey <tromey@redhat.com>
4290
4291 * remote.c (struct remote_state) <last_sent_step>:
4292 New field.
4293 (last_sent_step): Remove.
4294 (remote_resume, remote_wait_as): Update.
4295
4296 2013-08-14 Tom Tromey <tromey@redhat.com>
4297
4298 * remote.c (struct remote_state) <last_sent_signal>:
4299 New field.
4300 (last_sent_signal): Remove.
4301 (new_remote_state, remote_resume, remote_wait_as): Update.
4302
4303 2013-08-14 Tom Tromey <tromey@redhat.com>
4304
4305 * remote.c (struct remote_state) <last_program_signals_packet>:
4306 New field.
4307 (last_program_signals_packet): Remove.
4308 (remote_program_signals, remote_open_1): Update.
4309
4310 2013-08-14 Tom Tromey <tromey@redhat.com>
4311
4312 * remote.c (struct remote_state) <last_pass_packet>:
4313 New field.
4314 (last_pass_packet): Remove.
4315 (remote_pass_signals, remote_open_1): Update.
4316
4317 2013-08-14 Tom Tromey <tromey@redhat.com>
4318
4319 * remote.c (struct remote_state) <remote_traceframe_number>:
4320 New field.
4321 (remote_traceframe_number): Remove.
4322 (new_remote_state, remote_open_1, set_remote_traceframe)
4323 (remote_trace_find): Update.
4324
4325 2013-08-14 Tom Tromey <tromey@redhat.com>
4326
4327 * remote.c (struct remote_state) <general_thread, continue_thread>:
4328 New fields.
4329 (general_thread, continue_thread): Remove.
4330 (record_currthread, set_thread, set_general_process)
4331 (remote_open_1, extended_remote_attach_1, remote_wait_as)
4332 (extended_remote_mourn_1): Update.
4333
4334 2013-08-14 Tom Tromey <tromey@redhat.com>
4335
4336 * remote.c (struct remote_state) <remote_desc>: New field.
4337 (remote_desc): Remove.
4338 (remote_threads_info, remote_threads_extra_info, remote_close)
4339 (send_interrupt_sequence, remote_start_remote, remote_open_1)
4340 (readchar, remote_xfer_partial, remote_rcmd, packet_command)
4341 (remote_hostio_send_command, remote_file_put, remote_file_get)
4342 (remote_file_delete, remote_can_async_p, remote_is_async_p)
4343 (remote_async, remote_new_objfile, set_range_stepping): Update.
4344
4345 2013-08-14 Tom Tromey <tromey@redhat.com>
4346
4347 * remote.c (remote_state): Now a pointer.
4348 (get_remote_state_raw): Update.
4349 (new_remote_state): New function.
4350 (_initialize_remote): Use new_remote_state.
4351
4352 2013-08-14 Tom Tromey <tromey@redhat.com>
4353
4354 * remote.c (remote_protocol_features): Now const.
4355
4356 2013-08-14 Tom Tromey <tromey@redhat.com>
4357
4358 * remote.c (crc32_table, crc32): Remove.
4359 (remote_verify_memory): Use xcrc32.
4360
4361 2013-08-13 Sergio Durigan Junior <sergiodj@redhat.com>
4362
4363 * value.h (create_internalvar_type_lazy): Adjust prototype
4364 declaration.
4365
4366 2013-08-13 Andrew Burgess <aburgess@broadcom.com>
4367
4368 * common/format.c (parse_format_string): Don't allow '#' flag for
4369 pointer arguments in format string.
4370
4371 2013-08-13 Pierre Muller <muller@sourceware.org>
4372
4373 * utils.c (init_page_info): Only call tgetnum function
4374 if rl_get_screen_size did not return useful values.
4375
4376 2013-08-12 Ali Anwar <ali_anwar@codesourcery.com>
4377
4378 PR breakpoints/15117
4379 * linespec.c (linespec_parse_basic): Check for convenience
4380 variable or history value while parsing.
4381
4382 2013-08-12 Sergio Durigan Junior <sergiodj@redhat.com>
4383
4384 Revert implementation of gdbarch_gdb_signal_{to,from}_target for
4385 AVR.
4386 * avr-tdep.c: Remove include of "linux-tdep.h". Remove enum with
4387 different signals between the generic Linux kernel implementation
4388 and AVR's.
4389 (avr_linux_gdb_signal_from_target): Delete.
4390 (avr_linux_gdb_signal_to_target): Delete.
4391 (avr_gdbarch_init): Don't set gdbarch_gdb_signal_{to,from}_target.
4392
4393 2013-08-09 Doug Evans <dje@google.com>
4394
4395 * dwarf2read.c (create_addrmap_from_index): Ignore bad address table
4396 entries.
4397
4398 2013-08-09 Sergio Durigan Junior <sergiodj@redhat.com>
4399
4400 * linux-tdep.c: Define enum with generic signal numbers.
4401 (linux_gdb_signal_from_target): New function.
4402 (linux_gdb_signal_to_target): Likewise.
4403 (linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
4404 methods to the functions above.
4405 * linux-tdep.h (linux_gdb_signal_from_target): New prototype.
4406 (linux_gdb_signal_to_target): Likewise.
4407 * alpha-linux-tdep.c: Define new enum with signals different
4408 from generic Linux kernel.
4409 (alpha_linux_gdb_signal_from_target): New function.
4410 (alpha_linux_gdb_signal_to_target): Likewise.
4411 (alpha_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
4412 with the functions mentioned above.
4413 * avr-tdep.c: Define enum with differences between Linux kernel
4414 and AVR signals.
4415 (avr_linux_gdb_signal_from_target): New function.
4416 (avr_linux_gdb_signal_to_target): Likewise.
4417 (avr_gdbarch_init): Set gdbarch_gdb_signal_{to,from}_target to
4418 the functions mentioned above.
4419 * sparc-linux-tdep.c: Define enum with differences between SPARC
4420 and generic Linux kernel signal numbers.
4421 (sparc32_linux_gdb_signal_from_target): New function.
4422 (sparc32_linux_gdb_signal_to_target): Likewise.
4423 (sparc32_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
4424 to the functions defined above.
4425 * xtensa-linux-tdep.c: Define enum with differences between
4426 Xtensa and Linux kernel generic signals.
4427 (xtensa_linux_gdb_signal_from_target): New function.
4428 (xtensa_linux_gdb_signal_to_target): Likewise.
4429 (xtensa_linux_init_abi): Set gdbarch_gdb_signal_to_target
4430 to the functions defined above.
4431 * mips-linux-tdep.c: Define enum with differences between
4432 signals in MIPS and Linux kernel generic ones.
4433 (mips_gdb_signal_to_target): New function.
4434 (mips_gdb_signal_from_target): Redefine to use new enum, handle
4435 only different signals from the Linux kernel generic.
4436 (mips_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
4437 the functions defined above.
4438 * mips-linux-tdep.h (enum mips_signals): Remove.
4439
4440 2013-08-09 Pedro Alves <palves@redhat.com>
4441
4442 * avr-tdep.c (XMALLOC): Delete macro.
4443 * cli/cli-dump.c (XMALLOC): Delete macro.
4444
4445 2013-08-09 Pedro Alves <palves@redhat.com>
4446
4447 * cli/cli-dump.c: Don't include cli/cli-dump.h.
4448 (scan_expression_with_cleanup, scan_filename_with_cleanup)
4449 (fopen_with_cleanup, add_dump_command): Make static.
4450 * cli/cli-dump.h: Delete file.
4451 * Makefile.in (HFILES_NO_SRCDIR): Remove reference to
4452 cli/cli-dump.h.
4453
4454 2013-08-09 Pedro Alves <palves@redhat.com>
4455
4456 * tracepoint.c (tfile_start): Show tilde-expanded filename in
4457 error message.
4458
4459 2013-08-09 Pedro Alves <palves@redhat.com>
4460
4461 * breakpoint.c (save_breakpoints): Show tilde-expanded filename in
4462 error message.
4463
4464 2013-08-09 Pedro Alves <palves@redhat.com>
4465
4466 * gcore.c (create_gcore_bfd): Don't use tilde_expand here.
4467 (gcore_command): Use tilde_expand here, and when showing the
4468 filename to the user, show the expanded version.
4469
4470 2013-08-09 Yao Qi <yao@codesourcery.com>
4471
4472 * stack.c (read_frame_arg): Set 'entryval_error' to NULL if
4473 'entryval' is set.
4474
4475 2013-08-08 Azat Khuzhin <a3at.mail@gmail.com> (tiny change)
4476
4477 * gcore.c (create_gcore_bfd): Use tilde_expand.
4478
4479 2013-08-08 Yao Qi <yao@codesourcery.com>
4480
4481 * frame.h (read_frame_local): Declare.
4482 * mi/mi-cmd-stack.c (list_args_or_locals): Call
4483 read_frame_local.
4484 * stack.c (read_frame_local): New.
4485
4486 2013-08-08 Yao Qi <yao@codesourcery.com>
4487
4488 * mi/mi-cmd-stack.c: Update comments to function
4489 list_args_or_locals.
4490
4491 2013-08-07 Tom Tromey <tromey@redhat.com>
4492
4493 PR symtab/15028:
4494 * dwarf2read.c (struct process_psymtab_comp_unit_data): New.
4495 (process_psymtab_comp_unit_reader): Use it.
4496 (process_psymtab_comp_unit): Update. Add "pretend_language"
4497 argument.
4498 (dwarf2_build_psymtabs_hard): Update.
4499 (scan_partial_symbols): Pass CU's language to
4500 process_psymtab_comp_unit.
4501
4502 2013-08-07 Tom Tromey <tromey@redhat.com>
4503
4504 * dwarf2read.c (dw2_get_primary_filename_reader): Remove.
4505 (dwarf2_gdb_index_functions): Update.
4506 * psymtab.c (find_symbol_file_from_partial): Remove.
4507 (psym_functions): Update.
4508 * symfile.h (struct quick_symbol_functions) <find_symbol_file>:
4509 Remove.
4510
4511 2013-08-07 Tom Tromey <tromey@redhat.com>
4512
4513 * symfile.c (set_initial_language): Look up "main" symbol
4514 and use its language.
4515 * symtab.c (find_main_filename): Remove.
4516 * symtab.h (find_main_filename): Remove.
4517
4518 2013-08-07 Tom Tromey <tromey@redhat.com>
4519
4520 * dwarf2read.c (recursively_compute_inclusions): Add
4521 "immediate_parent" argument. Set symtab's "user" field
4522 if not set.
4523 (compute_symtab_includes): Update.
4524
4525 2013-08-07 Tom Tromey <tromey@redhat.com>
4526
4527 * linespec.c (convert_linespec_to_sals): Use maybe_add_address
4528 when adding label symbols.
4529
4530 2013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
4531 Ulrich Weigand <uweigand@de.ibm.com>
4532
4533 * configure.tgt (powerpc64-*-aix*): Match powerpc64 running aix.
4534 * configure.host (powerpc64-*-aix*): Likewise.
4535
4536 2013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
4537 Ulrich Weigand <uweigand@de.ibm.com>
4538
4539 * gdb_ptrace.h: Use ptrace64 instead of ptrace if HAVE_PTRACE64
4540 is defined.
4541 * rs6000-nat.c: Check for __ld_info64_ if compiling 64 BIT gdb.
4542 (rs6000_ptrace32): Call ptrace64 instead of ptrace if present.
4543 (rs6000_ptrace64): Call ptace64 instead of ptracex if present.
4544 * configure.ac: Check for ptrace64.
4545 * configure, config.in: Regenerate.
4546
4547 2013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
4548 Ulrich Weigand <uweigand@de.ibm.com>
4549
4550 * aixthread.c: Call ptrace64 instead of ptracex if defined.
4551 Call ptrace64 instead of ptrace if defined.
4552 Add macro addr_ptr to take care of ptrace address argument.
4553 (pdc_read_regs): Likewise.
4554 (pdc_write_regs): Likewise.
4555 (aix_thread_resume): Likewise.
4556 (fetch_regs_kernel_thread): Likewise.
4557 (store_regs_kernel_thread): Likewise.
4558
4559 2013-08-07 Anton Blanchard <anton@samba.org>
4560
4561 * MAINTAINERS: Add myself to Write After Approval.
4562
4563 2013-08-05 Tom Tromey <tromey@redhat.com>
4564
4565 * aix-thread.c (_initialize_aix_thread): Use
4566 complete_target_initialization.
4567 * bsd-uthread.c (_initialize_bsd_uthread): Use
4568 complete_target_initialization.
4569 * dec-thread.c (_initialize_dec_thread): Use
4570 complete_target_initialization.
4571 * ravenscar-thread.c (_initialize_ravenscar): Use
4572 complete_target_initialization.
4573 * sol-thread.c (_initialize_sol_thread): Use
4574 complete_target_initialization.
4575 * spu-multiarch.c (_initialize_spu_multiarch): Use
4576 complete_target_initialization.
4577
4578 2013-08-05 Tom Tromey <tromey@redhat.com>
4579
4580 * ada-exp.y (write_var_or_type): Use bound_minimal_symbol.
4581 * ada-lang.c (ada_lookup_simple_minsym): Return
4582 bound_minimal_symbol.
4583 * ada-lang.h (ada_lookup_simple_minsym): Update.
4584 * c-exp.y (variable): Use lookup_bound_minimal_symbol.
4585 * f-exp.y (variable): Use lookup_bound_minimal_symbol.
4586 * go-exp.y (variable): Use lookup_bound_minimal_symbol.
4587 * jv-exp.y (push_expression_name): Use lookup_bound_minimal_symbol.
4588 * m2-exp.y (variable): Use lookup_bound_minimal_symbol.
4589 * minsyms.c (msymbol_objfile): Remove.
4590 (lookup_minimal_symbol_internal): New function, from
4591 lookup_minimal_symbol.
4592 (lookup_minimal_symbol): Rewrite using
4593 lookup_minimal_symbol_internal.
4594 (lookup_bound_minimal_symbol): New function.
4595 * minsyms.h (msymbol_objfile): Remove.
4596 (lookup_bound_minimal_symbol): Declare.
4597 * p-exp.y (variable): Use lookup_bound_minimal_symbol.
4598 * parse.c (write_exp_msymbol): Change parameter to a
4599 bound_minimal_symbol.
4600 (write_dollar_variable): Use lookup_bound_minimal_symbol.
4601 * parser-defs.h (write_exp_msymbol): Update.
4602 * printcmd.c (address_info): Use lookup_bound_minimal_symbol.
4603 * symfile.c (simple_read_overlay_table): Use
4604 lookup_bound_minimal_symbol.
4605 * symtab.c (skip_prologue_sal): Don't use msymbol_objfile.
4606 (search_symbols): Likewise.
4607 (print_msymbol_info): Take a bound_minimal_symbol argument.
4608 (symtab_symbol_info, rbreak_command): Update.
4609 * symtab.h (struct symbol_search) <msymbol>: Change type
4610 to bound_minimal_symbol.
4611 * valops.c (find_function_in_inferior): Use
4612 lookup_bound_minimal_symbol.
4613 * value.c (value_fn_field): Use lookup_bound_minimal_symbol.
4614
4615 2013-08-05 Jan Kratochvil <jan.kratochvil@redhat.com>
4616
4617 Code cleanup.
4618 * remote.c (cleanup_sigint_signal_handler): Rename the declaration
4619 to ...
4620 (async_cleanup_sigint_signal_handler): ... this.
4621 (initialize_sigint_signal_handler): Remove declaration.
4622 (handle_remote_sigint): Rename the declaration to ...
4623 (async_handle_remote_sigint): ... this.
4624 (handle_remote_sigint_twice): Rename the declaration to ...
4625 (async_handle_remote_sigint_twice): ... this.
4626 (async_remote_interrupt, async_remote_interrupt_twice)
4627 (remote_interrupt): Remove the declarations.
4628 (remote_interrupt_twice): Rename the declaration ...
4629 (sync_remote_interrupt_twice): ... this.
4630 (sigint_remote_twice_token): Rename the variable to ...
4631 (async_sigint_remote_twice_token): ... this.
4632 (sigint_remote_token): Rename the variable to ...
4633 (async_sigint_remote_token): ... this.
4634 (initialize_sigint_signal_handler): Rename the function to ...
4635 (async_initialize_sigint_signal_handler): ... this. Update the name
4636 inside.
4637 (handle_remote_sigint): Rename the function to ...
4638 (async_handle_remote_sigint): ... this. Update the names inside.
4639 (handle_remote_sigint_twice): Rename the function to ...
4640 (async_handle_remote_sigint_twice): ... this. Update the names inside.
4641 (cleanup_sigint_signal_handler): Rename the function to ...
4642 (async_cleanup_sigint_signal_handler): ... this.
4643 (remote_interrupt): Rename the function to ...
4644 (sync_remote_interrupt): this. Update the names inside.
4645 (remote_interrupt_twice): Rename the function to ...
4646 (sync_remote_interrupt_twice): this. Update the names inside.
4647 (remote_terminal_inferior, remote_terminal_ours, remote_wait_as)
4648 (_initialize_remote): Update the names inside.
4649
4650 2013-08-02 Tom Tromey <tromey@redhat.com>
4651
4652 PR symtab/15719:
4653 * breakpoint.c (update_watchpoint, watchpoint_check)
4654 (watch_command_1): Update.
4655 * eval.c (fetch_subexp_value): Add "preserve_errors"
4656 parameter.
4657 * ppc-linux-nat.c (check_condition): Update.
4658 * value.h (fetch_subexp_value): Update.
4659
4660 2013-08-02 Andrew Burgess <aburgess@broadcom.com>
4661
4662 * mi/mi-interp.c (mi_interpreter_resume): Remove call to
4663 add_file_handler.
4664
4665 2013-08-01 Doug Evans <dje@google.com>
4666
4667 PR symtab/15691
4668 * dwarf2read.c (struct dwarf2_per_cu_data): New member tu_read.
4669 (fill_in_sig_entry_from_dwo_entry): Reorganize asserts.
4670 Add assert of sig_entry->dwo_unit == NULL.
4671 (lookup_dwo_signatured_type): Don't assign TU to a DWO if the TU
4672 had already been read.
4673 (read_signatured_type): Set per_cu.tu_read.
4674
4675 PR symtab/15695
4676 * valops.c (value_struct_elt): Add missing call to check_typedef.
4677 (value_find_oload_method_list): Ditto.
4678
4679 * symtab.c (do_free_search_symbols_cleanup): Change arg to,
4680 effectively, struct symbol_search **.
4681 (make_cleanup_free_search_symbols): Change arg to struct
4682 symbol_search **. All callers updated.
4683 (compare_search_syms): Compare symtab file name and block as well.
4684 (search_symbols_equal): New function.
4685 (sort_search_symbols_remove_dups): Renamed from sort_search_symbols.
4686 New args new_head, new_tail. Result is now void. Remove dups after
4687 sorting the symbols.
4688 (search_symbols): Sort all found symbols once, after all have been
4689 found, and remove duplicates. Simplify cleanup tracking of result.
4690 * symtab.h (make_cleanup_free_search_symbols): Update prototype.
4691
4692 Further workarounds for binutils/15021.
4693 * dwarf2read.c (recursively_compute_inclusions): Change type of result
4694 parameter to VEC (symtab_ptr) **. New parameter all_type_symtabs.
4695 Watch for duplicate symtabs coming from type units.
4696 (compute_symtab_includes): Update call to
4697 recursively_compute_inclusions. Build vector of included symtabs
4698 instead of per_cus.
4699 * symtab.h (symtab_ptr): New typedef.
4700 (DEF_VEC_P (symtab_ptr)): New VEC type.
4701 * linespec.c (symtab_p): Delete. All uses updated to use symtab_ptr
4702 instead.
4703
4704 2013-08-01 Andrew Burgess <aburgess@broadcom.com>
4705
4706 * cli/cli-script.c (script_from_file): Remove use of
4707 error_pre_print.
4708 * main.c (captured_main): Remove use of error_pre_print and
4709 quit_pre_print.
4710 * utils.c (error_pre_print, quit_pre_print): Remove.
4711 * utils.h (error_pre_print, quit_pre_print): Likewise.
4712
4713 2013-08-01 Yao Qi <yao@codesourcery.com>
4714
4715 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Parse argv
4716 with mi_getopt.
4717 (mi_cmd_stack_list_variables): Likewise.
4718
4719 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
4720
4721 * exceptions.c (deprecated_throw_reason): Remove.
4722 * exceptions.h (deprecated_throw_reason): Remove.
4723
4724 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
4725
4726 * remote-mips.c (mips_error): Replace use of
4727 deprecated_throw_reason with throw_verror. Use the error message
4728 passed to mips_error as the error message for throw_verror.
4729
4730 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
4731
4732 * monitor.c (monitor_interrupt_query): Replace use of
4733 deprecated_throw_reason with quit.
4734 * nto-procfs.c (interrupt_query): Likewise.
4735 * remote-fileio.c (remote_fileio_sig_exit): Likewise.
4736 * remote-mips.c (mips_kill): Likewise.
4737 * remote.c (interrupt_query): Likewise.
4738
4739 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
4740
4741 * utils.c (internal_verror): Replace use of deprecated_throw_reason
4742 with call to fatal.
4743
4744 2013-07-31 Pedro Alves <pedro@codesourcery.com>
4745 Yao Qi <yao@codesourcery.com>
4746
4747 * tracepoint.c (trace_dump_command): Select the current frame.
4748
4749 2013-07-30 Doug Evans <dje@google.com>
4750
4751 * dwarf2read.c (process_queue): Add type signature to debug output.
4752
4753 2013-07-30 Andrew Burgess <aburgess@broadcom.com>
4754
4755 * value.c (value_fetch_lazy): Mark optimized out values as such
4756 rather than raising an error.
4757
4758 2013-07-30 Andrew Burgess <aburgess@broadcom.com>
4759
4760 * value.c (value_fetch_lazy): Ensure parent value is not lazy
4761 before checking which bits of the parent, not the child, value are
4762 valid.
4763
4764 2013-07-30 Muhammad Bilal <mbilal@codesorcery.com>
4765
4766 PR gdb/15715
4767 * top.c: Include "filenames.h".
4768 (set_history_filename): New function.
4769 (init_main): Install it as set hook of the "set history filename"
4770 command.
4771
4772 2013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
4773
4774 * dwarf2read.c (dwarf2_get_ref_die_offset): Constify struct
4775 attribute parameter.
4776 (dwarf2_const_value_data): Constify struct attribute parameter.
4777 (dwarf2_const_value): Constify struct attribute parameter.
4778 (dwarf2_const_value_attr): Constify struct attribute parameter.
4779 (lookup_die_type): Constify struct attribute parameter.
4780 (dwarf2_get_attr_constant_value): Constify struct attribute parameter.
4781 (follow_die_ref_or_sig): Constify struct attribute parameter.
4782 (follow_die_ref): Constify struct attribute parameter.
4783 (follow_die_sig): Constify struct attribute parameter.
4784 (get_DW_AT_signature_type): Constify struct attribute parameter.
4785 (get_type_unit_group): Constify struct attribute parameter.
4786 (fill_in_loclist_baton): Constify struct attribute parameter.
4787 (dwarf2_symbol_mark_computed): Constify struct attribute parameter.
4788 (type_unit_group): Constify struct attribute parameter.
4789
4790 2013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
4791
4792 * dwarf2read.c (attr_form_is_block): Make argument const.
4793 (attr_form_is_section_offset): Make argument const.
4794 (attr_form_is_constant): Make argument const.
4795 (attr_form_is_ref): Make argument const.
4796
4797 2013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
4798
4799 * dwarf2read.c (attr_is_ref): Rename to attr_form_is_ref.
4800 All uses updated.
4801 (attr_form_is_ref): Moved below attr_form_is_constant.
4802
4803 2013-07-29 Doug Evans <dje@google.com>
4804
4805 * main.c (captured_command_loop): Tweak comment.
4806
4807 * target.c (target_async_permitted_1): Fix comment.
4808
4809 * symtab.c (iterate_over_some_symtabs): Add comment.
4810
4811 * symtab.c (iterate_over_some_symtabs): Fix indentation.
4812
4813 2013-07-27 Yao Qi <yao@codesourcery.com>
4814
4815 * NEWS: Mention that GDBserver now supports hardware
4816 watchpoints on the MIPS GNU/Linux target.
4817
4818 2013-07-27 Yao Qi <yao@codesourcery.com>
4819
4820 * Makefile.in (HFILES_NO_SRCDIR): Add
4821 common/mips-linux-watch.h.
4822 (mips-linux-watch.o): New rule.
4823 * common/mips-linux-watch.c: New.
4824 * common/mips-linux-watch.h: New.
4825 * config/mips/linux.mh (NATDEPFILES): Add mips-linux-watch.o
4826 * mips-linux-nat.c: Include mips-linux-watch.h.
4827 (W_BIT, R_BIT, I_BIT, W_MASK, R_MASK, I_MASK, IRW_MASK): Move
4828 to common/mips-linux-watch.h.
4829 (MAX_DEBUG_REGISTER): Likewise.
4830 (enum pt_watch_style): Likewise.
4831 (struct mips32_watch_regs): Likewise.
4832 (struct mips64_watch_regs): Likewise.
4833 (struct pt_watch_regs): Likewise.
4834 (struct mips_watchpoint): Likewise.
4835 (mips_linux_watch_get_irw_mask): Move to
4836 common/mips-linux-watch.c.
4837 (get_reg_mask, mips_linux_watch_get_num_valid): Likewise.
4838 (mips_linux_watch_get_watchlo): Likewise.
4839 (mips_linux_watch_set_watchlo): Likewise.
4840 (mips_linux_watch_get_watchhi): Likewise.
4841 (mips_linux_watch_set_watchhi): Likewise.
4842 (mips_linux_read_watch_registers): Likewise.
4843 (mips_linux_watch_type_to_irw): Likewise.
4844 (mips_linux_stopped_data_address, fill_mask): Likewise.
4845 (mips_linux_watch_try_one_watch): Likewise.
4846 (mips_linux_watch_populate_regs): Likewise.
4847
4848 2013-07-27 Yao Qi <yao@codesourcery.com>
4849
4850 * mips-linux-nat.c (get_irw_mask): Rename to ...
4851 (mips_linux_watch_get_irw_mask): ... this. Rename parameter
4852 'set' to 'n'. Update function comment. All callers changed.
4853 (get_reg_mask): Rename parameter 'set' to 'n'. Update
4854 function comment. All callers changed.
4855 (get_num_valid): Rename to ...
4856 (mips_linux_watch_get_num_valid): ... this. Rename parameter
4857 'set' to 'n'. Update function comment. All callers changed.
4858 (get_watchlo): Rename to ...
4859 (mips_linux_watch_get_watchlo): ... this. Rename parameter
4860 'set' to 'n'. Update function comment. All callers changed.
4861 (set_watchlo): Rename to ...
4862 (mips_linux_watch_set_watchlo): ... this. Rename parameter
4863 'set' to 'n'. Update function comment. All callers changed.
4864 (get_watchhi): Rename to ...
4865 (mips_linux_watch_get_watchhi): ... this. Update function
4866 comment. All callers changed.
4867 (set_watchhi): Rename to ...
4868 (mips_linux_watch_set_watchhi): ... this. Update function
4869 comment. All callers changed.
4870 (mips_linux_read_watch_registers): Update function comment.
4871 Add new parameters 'lwpid', 'watch_readback', and
4872 'watch_readback_valid'. Update.
4873 (type_to_irw): Rename to ...
4874 (mips_linux_watch_type_to_irw): ... this. Update function
4875 comment. All callers changed.
4876 (fill_mask): Update function comment.
4877 (try_one_watch): Rename to ...
4878 (mips_linux_watch_try_one_watch): ... this. Change the type
4879 of parameter 'irw' from 'unsigned' to 'uint32_t'.
4880 (populate_regs_from_watches): Rename to ...
4881 (mips_linux_watch_populate_regs): ... this. Add parameter
4882 'current_watches'. All callers changed.
4883
4884 2013-07-27 Yao Qi <yao@codesourcery.com>
4885
4886 * mips-linux-nat.c (MAX_DEBUG_REGISTER): Move it earlier in
4887 the code.
4888 (PTRACE_SET_WATCH_REGS, enum pt_watch_style): Remove.
4889 (struct mips32_watch_regs, struct mips64_watch_regs): Remove.
4890 (struct pt_watch_regs): Likewise.
4891 [!PTRACE_GET_WATCH_REGS] (PTRACE_SET_WATCH_REGS): New macro.
4892 [!PTRACE_GET_WATCH_REGS] (enum pt_watch_style): New.
4893 [!PTRACE_GET_WATCH_REGS] (struct mips32_watch_regs): New.
4894 [!PTRACE_GET_WATCH_REGS] (struct mips64_watch_regs): New.
4895 [!PTRACE_GET_WATCH_REGS] (struct pt_watch_regs): New.
4896
4897 2013-07-27 Yao Qi <yao@codesourcery.com>
4898
4899 * breakpoint.h: Include break-common.h.
4900 (enum target_hw_bp_type): Move to ...
4901 * common/break-common.h: ... here. New.
4902
4903 2013-07-26 Cyril Nikolaev <cyril@nichtverstehen.de>
4904
4905 * inflow.c (terminal_init_inferior_with_pgrp): Save inferior
4906 process group regardless of having tty on stdin.
4907
4908 2013-07-25 Doug Evans <dje@google.com>
4909
4910 * linux-fork.h (detach_fork): Delete.
4911
4912 2013-07-25 Tom Tromey <tromey@redhat.com>
4913
4914 PR remote/15256, PR remote/15266:
4915 * bfd-target.c (target_bfd_reopen): Initialize to_magic.
4916 * monitor.c (monitor_detach): Use unpush_target.
4917 * remote-m32r-sdi.c (m32r_detach): Use unpush_target.
4918 * remote-mips.c (mips_detach): Use unpush_target. Don't
4919 call mips_close.
4920 * remote-sim.c (gdbsim_detach): Use unpush_target.
4921 * target.c (pop_target): Remove.
4922 (pop_all_targets_above): Don't call target_close.
4923 (target_close): Assert that the target is unpushed.
4924 * target.h (pop_target): Don't declare.
4925 * tracepoint.c (tfile_open): Use unpush_target.
4926
4927 2013-07-25 Tom Tromey <tromey@redhat.com>
4928
4929 * linux-thread-db.c (init_thread_db_ops): Call
4930 complete_target_initialization.
4931 (_initialize_thread_db): Don't call add_target.
4932 * target.c (complete_target_initialization): New function.
4933 (add_target_with_completer): Call it.
4934 * target.h (complete_target_initialization): Declare.
4935
4936 2013-07-25 Mark Kettenis <kettenis@gnu.org>
4937
4938 * hppa-tdep.h (enum hppa_regnum): Add members for all space registers.
4939 * hppaobsd-tdep.c (HPPAOBSD_SIZEOF_GREGS): Add comment.
4940 (HPPANBSD_SIZEOF_GREGS): New define.
4941 (hppaobsd_supply_gregset): Handle additional registers.
4942 * hppabsd-nat.c (hppabsd_gregset_supplies_p): Adjust to indicate
4943 we provide more registers now.
4944 (hppabsd_supply_gregset): Supply additional registers.
4945 (hppabsd_collect_gregset): Collect additional registers.
4946
4947 2013-07-25 Mark Kettenis <kettenis@gnu.org>
4948
4949 * hppabsd-tdep.c: Include "dwarf2-frame.h".
4950 (hppabsd_dwarf2_frame_init_reg): New function.
4951 (hppabsd_init_abi): Hook in the DWARF CFI frame unwinder.
4952
4953 2013-07-25 Andrew Burgess <aburgess@broadcom.com>
4954
4955 * mi/mi-main.c (output_register): Make MI 'r' format use standard
4956 'z' format code. Remove error for optimized out values, standard
4957 code will handle these fine.
4958
4959 2013-07-25 Andrew Burgess <aburgess@broadcom.com>
4960
4961 * NEWS: Mention new 'z' formatter.
4962 * printcmd.c (print_scalar_formatted): Add new 'z' formatter.
4963 (_initialize_printcmd): Mention 'z' formatter in help text of the
4964 'x' command.
4965
4966 2013-07-24 Maciej W. Rozycki <macro@codesourcery.com>
4967
4968 * mips-tdep.c (micromips_deal_with_atomic_sequence): Correct
4969 formatting.
4970
4971 2013-07-24 Sergio Durigan Junior <sergiodj@redhat.com>
4972
4973 * breakpoint.c (create_longjmp_master_breakpoint): Check if probe
4974 interface can evaluate arguments. Fallback to the old mode if it
4975 cannot.
4976 (create_exception_master_breakpoint): Likewise.
4977 * elfread.c (elf_can_evaluate_probe_arguments): New function.
4978 (struct sym_probe_fns elf_probe_fns): Export function above to the
4979 probe interface.
4980 * probe.c (can_evaluate_probe_arguments): New function.
4981 * probe.h (struct probe_ops) <can_evaluate_probe_arguments>: New
4982 function pointer.
4983 (can_evaluate_probe_arguments): New function prototype.
4984 * solib-svr4.c (svr4_create_solib_event_breakpoints): Check if
4985 probe interface can evaluate arguments. Fallback to the old mode
4986 if it cannot.
4987 * stap-probe.c (stap_get_probe_argument_count): Check if probe
4988 interface can evaluate arguments. Warning the user if it cannot.
4989 (stap_can_evaluate_probe_arguments): New function.
4990 (struct probe_ops stap_probe_ops): Export function above to the
4991 probe interface.
4992 * symfile.h (struct sym_probe_fns) <can_evaluate_probe_arguments>:
4993 New function pointer.
4994
4995 2013-07-24 Luis Machado <lgustavo@codesourcery.com>
4996
4997 * Makefile.in (SFILES): Add common/target-common.c.
4998 Add common/target-common.h to headers.
4999 (COMMON_OBS): Add target-common.o.
5000 (target-common.o): New target.
5001 * linux-nat.h (resume_kind): Move to common/target-common.h.
5002 * target.c (target_waitstatus_to_string): Move to
5003 common/target-common.c.
5004 * target.h: Include target-common.h.
5005 (target_waitkind): Move to common/target-common.h.
5006 (target_waitstatus): Likewise.
5007 (TARGET_WNOHANG): Likewise.
5008 * common/target-common.c: New file.
5009 * common/target-common.h: New file.
5010
5011 2013-07-24 Doug Evans <dje@google.com>
5012
5013 * dwarf2read.c (lookup_dwo_cutu): Change missing DWO complaint to
5014 a warning.
5015
5016 2013-07-23 Yao Qi <yao@codesourcery.com>
5017
5018 * i386-tdep.c (i386_in_stack_tramp_p): Remove unused
5019 parameter 'gdbarch'.
5020 (i386_stack_tramp_frame_sniffer): Caller update.
5021 * i386-linux-tdep.c (i386_linux_core_read_xcr0): Remove
5022 parameter 'gdbarch' and 'target'.
5023 (i386_linux_core_read_description): Caller update.
5024 * amd64-linux-tdep.c (amd64_linux_core_read_description):
5025 Likewise.
5026 * i386-linux-tdep.h (i386_linux_core_read_xcr0): Update
5027 declaration.
5028
5029 2013-07-23 Tom Tromey <tromey@redhat.com>
5030
5031 * dwarf2read.c (init_cutu_and_read_dies): Revert patch from
5032 2013-07-22.
5033
5034 2013-07-22 Doug Evans <dje@google.com>
5035
5036 * exec.h (remove_target_sections): Delete arg abfd.
5037 * exec.c (exec_close): Update call to remove_target_sections.
5038 (remove_target_sections): Delete arg abfd.
5039 * solib.c (update_solib_list): Ditto.
5040 (reload_shared_libraries_1): Ditto.
5041 (clear_solib): Ditto, and unconditionally call remove_target_sections.
5042 * target.h (struct target_section): Rename key to owner.
5043 All uses updated.
5044
5045 2013-07-22 Tom Tromey <tromey@redhat.com>
5046
5047 * solib-som.c (som_open_symbol_file_object): Call do_cleanups.
5048
5049 2013-07-22 Tom Tromey <tromey@redhat.com>
5050
5051 * dwarf2read.c (init_cutu_and_read_dies): Remove 'free_cu_cleanup'.
5052 Simplify cleanup handling.
5053
5054 2013-07-22 Tom Tromey <tromey@redhat.com>
5055
5056 * dwarf2read.c (dwarf_decode_line_header): Call do_cleanups
5057 on all return paths.
5058
5059 2013-07-22 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
5060
5061 * ppc-linux-nat.c (PPC_DEBUG_FEATURE_DATA_BP_DAWR): New define.
5062 (ppc_linux_region_ok_for_hw_watchpoint): Add checking to use the new
5063 DAWR interface for longer ranges hardware watchpoint (up to 512 bytes).
5064
5065 2013-07-22 Phil Muldoon <pmuldoon@redhat.com>
5066
5067 * top.c (print_gdb_version): Add help, apropos description and
5068 url to online documentation.
5069
5070 2013-07-19 Hui Zhu <hui@codesourcery.com>
5071
5072 PR gdb/15692
5073 * mi/mi-cmd-break.c (mi_argv_to_format): Handle double quotes.
5074
5075 2013-07-19 Yao Qi <yao@codesourcery.com>
5076
5077 * target.c (update_current_target): Change the default action
5078 of 'to_traceframe_info' from tcomplain to return_zero.
5079 * target.h (struct target_ops) <to_traceframe_info>: Add more
5080 comments.
5081 * valops.c (read_value_memory): Call
5082 traceframe_available_memory unconditionally.
5083
5084 2013-07-18 Yao Qi <yao@codesourcery.com>
5085
5086 * coffread.c (coff_symfile_read): Iterate over minimal symbols,
5087 if the name is prefixed by "__imp_" or "_imp_", look for minimal
5088 symbol without prefix. If found, set its type to
5089 'mst_solib_trampoline'.
5090
5091 2013-07-17 Doug Evans <dje@google.com>
5092
5093 * NEWS: Mention "set print raw frame-arguments".
5094 * gdbcmd.h (setprintrawlist, showprintrawlist): Declare.
5095 * stack.c (print_raw_frame_arguments): New static global.
5096 (print_frame_arg): Set opts.raw from print_raw_frame_arguments.
5097 (_initialize_stack): New command "set/show print raw frame-arguments".
5098 * valprint.c (setprintrawlist, showprintrawlist): New globals.
5099 (set_print_raw, show_print_raw): New functions.
5100 (_initialize_valprint): New prefix command "set/show print raw".
5101 * valprint.h (value_print_options): Improve comments.
5102
5103 * cli/cli-cmds.c (init_cmd_lists): Delete unnecessary initialization
5104 of all *list variables.
5105
5106 * gdbcmd.h (togglelist): Delete.
5107 * cli/cli-cmds.c (togglelist): Delete.
5108 (init_cmd_lists): Update.
5109 * cli/cli-cmds.h (togglelist): Delete.
5110
5111 2013-07-17 Tom Tromey <tromey@redhat.com>
5112
5113 * dwarf2read.c (dwarf2_per_objfile_free): Clear
5114 dwarf2_per_objfile.
5115
5116 2013-07-16 Doug Evans <dje@google.com>
5117
5118 * nto-tdep.c (nto_relocate_section_addresses): Update,
5119 target_section.bfd deleted.
5120 * ppc64-tdep.c (ppc64_convert_from_func_ptr_addr): Ditto.
5121 * s390-tdep.c (s390_load): Ditto.
5122 * solib-aix.c (solib_aix_relocate_section_addresses): Ditto.
5123
5124 2013-07-16 Andrew Burgess <aburgess@broadcom.com>
5125
5126 * common/format.c (parse_format_string): Add checks for NULL
5127 character before calling strchr.
5128
5129 2013-07-16 Doug Evans <dje@google.com>
5130
5131 * solist.h (target_so_ops.find_and_open_solib): Clarify usage of
5132 temp_pathname argument.
5133 * nto-tdep.c (nto_find_and_open_solib): Fix setting of temp_pathname
5134 when opening the file fails.
5135
5136 * target.h (struct target_section): Delete member bfd.
5137 All users updated to use the_bfd_section->owner instead.
5138 * exec.c (add_to_section_table): Assert bfd is expected value.
5139 Remove initialization of target_section.bfd.
5140 (remove_target_sections): Update.
5141 (section_table_available_memory): Update.
5142 (section_table_xfer_memory_partial): Update.
5143 (print_section_info): Update.
5144 (exec_set_section_address): Update.
5145 * record-full.c (record_full_core_xfer_partial): Update.
5146 * solib-svr4.c (svr4_relocate_section_addresses): Update.
5147 * solib-target.c (solib_target_relocate_section_addresses): Update.
5148 * symfile.c (build_section_addr_info_from_section_table): Update.
5149 * target.c (memory_xfer_live_readonly_partial): Update.
5150 (memory_xfer_partial_1): Update.
5151
5152 2013-07-15 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
5153
5154 * ppc-linux-nat.c: Since the new PowerPC specific ptrace interface is
5155 now available for embedded (BookE) and server (BookS) processors,
5156 correct mentions of 'booke' and adjust comments accordingly in order to
5157 avoid confusion. Rename struct 'booke_debug_info' to 'hwdebug_info'.
5158 (have_ptrace_booke_interface): Rename function and variable
5159 'have_ptrace_booke_interface' to 'have_ptrace_hwdebug_interface'.
5160 Rename struct 'booke_debug_info' to 'hwdebug_info'. Update all uses.
5161 (booke_cmp_hw_point): Rename function 'booke_cmp_hw_point' to
5162 'hwdebug_point_cmp'. Update all uses.
5163 (booke_find_thread_points_by_tid): Rename function
5164 'booke_find_thread_points_by_tid' to
5165 'hwdebug_find_thread_points_by_tid'. Update all uses.
5166 (booke_insert_point): Rename function 'booke_insert_point' to
5167 'hwdebug_insert_point'. Update all uses.
5168 (booke_remove_point): Rename function 'booke_remove_point' to
5169 'hwdebug_remove_point'. Update all uses.
5170
5171 2013-07-15 Maciej W. Rozycki <macro@codesourcery.com>
5172
5173 * mips-tdep.c (mips_gdbarch_init): Replace hardcoded magic
5174 numbers with enum values.
5175
5176 2013-07-15 Ali Anwar <ali_anwar@codesourcery.com>
5177
5178 PR threads/13217
5179 * thread.c (thread_apply_all_command): Check for valid threads
5180 and thread count.
5181 (thread_array_cleanup): New struct.
5182 (set_thread_refcount): New function.
5183
5184 2013-07-11 Andrew Burgess <aburgess@broadcom.com>
5185
5186 * infcmd.c (default_print_one_register_info): Reuse function
5187 print_hex_chars.
5188
5189 2013-07-10 Tom Tromey <tromey@redhat.com>
5190
5191 * Makefile.in (GDB_WARN_CFLAGS_NO_DEFS, ADA_EXP_C): New macros.
5192 (ada-exp.o): New target.
5193
5194 2013-07-10 Sergio Durigan Junior <sergiodj@redhat.com>
5195
5196 * mt-tdep.c (mt_registers_info): Call
5197 get_no_prettyformat_print_options instead of
5198 get_raw_print_options (regression by last patch from Doug
5199 Evans).
5200
5201 2013-07-09 Pedro Alves <palves@redhat.com>
5202
5203 Checked in by Joel Brobecker <brobecker@adacore.com>.
5204 * ada-lang.c (coerce_unspec_val_to_type): Use
5205 value_optimized_out_const.
5206 * value.c (value_optimized_out_const): New function.
5207 * value.h (value_optimized_out_const): New declaration.
5208
5209 2013-07-09 Doug Evans <dje@google.com>
5210
5211 * defs.h (enum val_prettyformat): Renamed from val_prettyprint.
5212 Enum values rename as well. All uses updated.
5213 * valprint.h (value_print_options): Rename member pretty to
5214 pretty format. Rename member prettyprint_arrays to
5215 prettyformat_arrays. Rename member prettyprint_structs to
5216 prettyformat_structs. All uses updated.
5217 (get_no_prettyformat_print_options): Renamed from
5218 get_raw_print_options.
5219 * valprint.c (get_no_prettyformat_print_options): Renamed from
5220 get_raw_print_options. All callers updated.
5221 (show_prettyformat_structs): Renamed from show_prettyprint_structs.
5222 All callers updated.
5223 (show_prettyformat_arrays): Renamed from show_prettyprint_arrays.
5224 All callers updated.
5225 (_initialize_valprint): Improve help text for "set print pretty" and
5226 "set print arrays".
5227
5228 2013-07-09 Andrew Burgess <aburgess@broadcom.com>
5229
5230 * value.c (value_bits_valid): Revert previous change, and change
5231 by Pedro on 2013-07-04, due to regressions in
5232 gdb.dwarf2/implptr.exp and gdb.dwarf2/pieces.exp.
5233
5234 2013-07-08 Andrew Burgess <aburgess@broadcom.com>
5235 Pedro Alves <palves@redhat.com>
5236
5237 * value.c (value_bits_valid): If the value is not lval_computed
5238 or has no check validity handler then the answer is the
5239 optimized_out flag, otherwise defer to the handler.
5240
5241 2013-07-06 Eli Zaretskii <eliz@gnu.org>
5242
5243 * top.c (print_gdb_configuration): Explain in output of
5244 --configuration what does "relocatable" mean.
5245
5246 * main.c (print_gdb_help): Regroup options in the --help text.
5247 See http://sourceware.org/ml/gdb-patches/2013-04/msg00362.html for
5248 the relevant discussions.
5249
5250 2013-07-06 Yao Qi <yao@codesourcery.com>
5251
5252 * breakpoint.h (struct breakpoint_ops) <create_breakpoints_sal>:
5253 Remove parameter 'lsal'.
5254 * breakpoint.c (create_breakpoint): Move local variable 'lsal'
5255 to inner block. Caller update.
5256 (base_breakpoint_create_breakpoints_sal): Update.
5257 (bkpt_create_breakpoints_sal): Likewise.
5258 (tracepoint_create_breakpoints_sal): Likewise.
5259 (strace_marker_create_breakpoints_sal): Get 'lsal' from the
5260 element 0 of vector 'canonical->sals'.
5261
5262 2013-07-05 Luis Machado <lgustavo@codesourcery.com>
5263
5264 * rs6000-tdep.c (rs6000_stab_reg_to_regnum): Return the real
5265 register number instead of the pseudo register one.
5266 (rs6000_dwarf2_reg_to_regnum): Likewise.
5267
5268 2013-07-04 Pedro Alves <palves@redhat.com>
5269
5270 * findvar.c (value_of_register): Use allocate_optimized_out_value
5271 if the register has been optimized out, instead of
5272 set_value_optimized_out.
5273 * frame-unwind.c (frame_unwind_got_optimized): Use
5274 allocate_optimized_out_value.
5275
5276 2013-07-04 Pedro Alves <palves@redhat.com>
5277
5278 * value.c (value_bits_valid): If the value is not lval_computed,
5279 or doesn't have a check_validity hook, assume the value is entirely
5280 valid.
5281
5282 2013-07-04 Andrew Burgess <aburgess@broadcom.com>
5283
5284 * stack.c (read_frame_arg): No longer fetch lazy values.
5285 * value.c (value_optimized_out): If the value is not already
5286 marked optimized out, and is lazy then fetch it.
5287 (value_primitive_field): Move optimized out check to later in the
5288 function, after we have loaded any lazy values.
5289 (value_fetch_lazy): Use optimized out flag directly rather than
5290 calling optimized_out method.
5291
5292 2013-07-04 Andrew Burgess <aburgess@broadcom.com>
5293
5294 * valops.c: Don't include "user-regs.h".
5295 (value_fetch_lazy): Moved to value.c.
5296 * value.c: Include "user-regs.h".
5297 (value_fetch_lazy): Moved from valops.c.
5298
5299 2013-07-04 Yao Qi <yao@codesourcery.com>
5300
5301 Revert:
5302 2013-06-27 Yao Qi <yao@codesourcery.com>
5303
5304 * common/create-version.sh: Update comments. Handle the case
5305 that TARGET_ALIAS is empty.
5306
5307 2013-07-03 Pedro Alves <palves@redhat.com>
5308
5309 * Makefile.in (config.status): Depend on development.sh.
5310 (aclocal_m4_deps): Add libmcheck.m4.
5311 * acinclude.m4: Include libmcheck.m4.
5312 * configure.ac: Source development.sh instead of setting
5313 'development' here. --enable-libmcheck/--disable-libmcheck code
5314 factored out to GDB_AC_LIBMCHECK. Run it.
5315 * development.sh: New file.
5316 * libmcheck.m4: New file.
5317 * configure: Regenerate.
5318
5319 2013-07-02 Tom Tromey <tromey@redhat.com>
5320
5321 * contrib/ari/update-web-ari.sh: Update for version.in change.
5322
5323 2013-07-02 Tom Tromey <tromey@redhat.com>
5324
5325 * common/ptid.h: Comment fixes.
5326
5327 2013-07-01 Tom Tromey <tromey@redhat.com>
5328
5329 * dwarf2read.c (dwarf2_get_dwz_file): Return NULL if
5330 .gnu_debugaltlink not found. Use bfd_get_alt_debug_link_info.
5331 (dwarf2_read_index, create_all_comp_units): Update.
5332
5333 2013-07-01 Tom Tromey <tromey@redhat.com>
5334
5335 * configure.ac (build_warnings): Add -Wold-style-definition.
5336 * configure: Rebuild.
5337 * machoread.c (_initialize_machoread): Use "(void)".
5338 * macrocmd.c (macro_inform_no_debuginfo): Fix formatting;
5339 use "(void)".
5340
5341 2013-07-01 Tom Tromey <tromey@redhat.com>
5342
5343 * configure.ac (build_warnings): Add -Wold-style-declaration.
5344 * configure: Rebuild.
5345 * dsrec.c (make_srec): Use "static const", not "const static".
5346 * h8300-tdep.c (h8300_breakpoint_from_pc): Use "static const",
5347 not "const static".
5348 * mi/mi-parse.c (mi_no_values, mi_simple_values, mi_all_values):
5349 Use "static const", not "const static".
5350 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Use "static const",
5351 not "const static".
5352 * moxie-tdep.c (moxie_breakpoint_from_pc): Use "static const",
5353 not "const static".
5354 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Use "static const",
5355 not "const static".
5356 * v850-tdep.c (v850_breakpoint_from_pc): Use "static const",
5357 not "const static".
5358 (v850_dbtrap_breakpoint_from_pc): Likewise.
5359 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Use "static const",
5360 not "const static".
5361
5362 2013-07-01 Tom Tromey <tromey@redhat.com>
5363
5364 * configure.ac (build_warnings): Add -Wmissing-parameter-type.
5365 * configure: Rebuild.
5366
5367 2013-07-01 Pedro Alves <palves@redhat.com>
5368
5369 * defs.h: Include "pathmax.h".
5370 * utils.c: Don't include sys/param.h.
5371 (gdb_realpath): Remove code that checks for MAXPATHLEN.
5372 * solib-ia64-hpux.c (ia64_hpux_handle_load_event): Use PATH_MAX
5373 instead of MAXPATHLEN.
5374 * solib-sunos.c: Don't include sys/param.h.
5375 * xcoffread.c: Don't include sys/param.h.
5376 * bsd-kvm.c: Don't include sys/param.h.
5377 * darwin-nat.c: Don't include sys/param.h.
5378 (darwin_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
5379 * darwin-nat-info.c: Don't include sys/param.h.
5380 * fbsd-nat.c (fbsd_pid_to_exec_file): Use PATH_MAX instead of
5381 MAXPATHLEN.
5382 * i386obsd-nat.c: Don't include sys/param.h.
5383 * inf-child.c: Don't include sys/param.h.
5384 (inf_child_fileio_readlink): Use PATH_MAX instead of MAXPATHLEN.
5385 * linux-fork.c: Don't include sys/param.h.
5386 (fork_save_infrun_state): Use PATH_MAX instead of MAXPATHLEN.
5387 * linux-nat.c: Don't include sys/param.h.
5388 (linux_child_pid_to_exec_file, linux_proc_pending_signals)
5389 (linux_proc_pending_signals): Use PATH_MAX instead of MAXPATHLEN.
5390 * m68klinux-nat.c: Don't include sys/param.h.
5391 * nbsd-nat.c: Don't include sys/param.h.
5392 (nbsd_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
5393 * ppc-linux-nat.c: Don't include sys/param.h.
5394 * rs6000-nat.c: Don't include sys/param.h.
5395 * spu-linux-nat.c. Don't include sys/param.h.
5396 * windows-nat.c: Don't include sys/param.h.
5397 * xtensa-linux-nat.c: Don't include sys/param.h.
5398 * config/i386/nm-fbsd.h: Don't include sys/param.h.
5399
5400 2013-07-01 Pedro Alves <palves@redhat.com>
5401
5402 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add pathmax.
5403 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/pathmax.m4.
5404 * gnulib/aclocal.m4: Regenerate.
5405 * gnulib/config.in: Regenerate.
5406 * gnulib/configure: Regenerate.
5407 * gnulib/import/pathmax.h: New file.
5408 * gnulib/import/Makefile.am: Regenerate.
5409 * gnulib/import/Makefile.in: Regenerate.
5410 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
5411 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
5412 * gnulib/import/m4/pathmax.m4: New file.
5413
5414 2013-07-01 Pedro Alves <palves@redhat.com>
5415
5416 * configure.ac (GDBINIT): Define, depending on host.
5417 * go32-nat.c (init_go32_ops): Don't override gdbinit here.
5418 * top.c (PATH_MAX): Delete fallback definition.
5419 (GDBINIT_FILENAME): Delete.
5420 (gdbinit): Reimplement as const char array set to the GDBINIT
5421 string constant.
5422 * top.h (gdbinit): Make const.
5423 * configure, config.in: Regenerate.
5424
5425 2013-07-01 Pedro Alves <palves@redhat.com>
5426
5427 * cli/cli-cmds.c (source_script): Make 'file' parameter const.
5428 * cli/cli-cmds.h (source_script): Likewise.
5429 * exceptions.c (catch_command_errors_const): New function.
5430 * exceptions.h (catch_command_errors_const): Declare.
5431 * main.c (get_init_files): Make parameters const, and adjust.
5432 (captured_main): Make 'system_gdbinit', 'home_gdbinit' and
5433 'local_gdbinit' locals const. Adjust to use
5434 catch_command_errors_const.
5435 (print_gdb_help): Make 'system_gdbinit', 'home_gdbinit' and
5436 'local_gdbinit' locals const.
5437
5438 2013-07-01 Pedro Alves <palves@redhat.com>
5439
5440 * defs.h: Don't check HAVE_UNISTD_H before including <unistd.h>.
5441 (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO): Delete.
5442 * tracepoint.c: Don't check HAVE_UNISTD_H before including
5443 <unistd.h>.
5444
5445 2013-07-01 Pedro Alves <palves@redhat.com>
5446
5447 Import the "unistd" gnulib module.
5448 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add "unistd".
5449 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/off_t.m4,
5450 import/m4/ssize_t.m4, import/m4/sys_types_h.m4 and
5451 import/m4/unistd_h.m4.
5452 * gnulib/aclocal.m4: Renenerate.
5453 * gnulib/config.in: Renenerate.
5454 * gnulib/configure: Renenerate.
5455 * gnulib/import/Makefile.am: Renenerate.
5456 * gnulib/import/Makefile.in: Renenerate.
5457 * gnulib/import/m4/gnulib-cache.m4: Renenerate.
5458 * gnulib/import/m4/gnulib-comp.m4: Renenerate.
5459 * gnulib/import/m4/off_t.m4: New file.
5460 * gnulib/import/m4/ssize_t.m4: New file.
5461 * gnulib/import/m4/sys_types_h.m4: New file.
5462 * gnulib/import/m4/unistd_h.m4: New file.
5463 * gnulib/import/sys_types.in.h: New file.
5464 * gnulib/import/unistd.c: New file.
5465 * gnulib/import/unistd.in.h: New file.
5466
5467 2013-07-01 Pedro Alves <palves@redhat.com>
5468
5469 * utils.c <pathconf/_PC_PATH_MAX use>: Check if _PC_PATH_MAX is
5470 defined instead of checking HAVE_UNISTD_H.
5471
5472 2013-07-01 Pedro Alves <palves@redhat.com>
5473
5474 Reimport gnulib from scratch.
5475 * gnulib/Makefile.in (aclocal_m4_deps): Remove reference to
5476 import/m4/onceonly.m4.
5477 * gnulib/aclocal.m4: Renegerate.
5478 * gnulib/config.in: Renegerate.
5479 * gnulib/configure: Renegerate.
5480 * gnulib/import/Makefile.in: Renegerate.
5481 * gnulib/import/extra/update-copyright: Renegerate.
5482 * gnulib/import/m4/onceonly.m4: Delete.
5483
5484 2013-07-01 Pedro Alves <palves@redhat.com>
5485
5486 * tui/tui-regs.c (pagination_enabled): Delete declaration.
5487
5488 2013-06-30 Jan Kratochvil <jan.kratochvil@redhat.com>
5489
5490 Code cleanup.
5491 * remote.c (async_remote_interrupt_twice): Make it static.
5492 * remote.h (async_remote_interrupt_twice): Remove the declaration.
5493
5494 2013-06-29 Sergio Durigan Junior <sergiodj@redhat.com>
5495
5496 * ia64-linux-tdep.c: Include <ctype.h>.
5497 (ia64_linux_stap_is_single_operand): New function.
5498 (ia64_linux_init_abi): Initialize SystemTap related attributes.
5499
5500 2013-06-28 Tom Tromey <tromey@redhat.com>
5501
5502 * Makefile.in (version.c): Use version.in, not
5503 common/version.in.
5504 * common/create-version.sh: Likewise.
5505 * common/version.in: Move...
5506 * version.in: ...here.
5507
5508 2013-06-28 Pedro Alves <palves@redhat.com>
5509
5510 * infrun.c (set_observer_mode): Don't declare pagination_enabled
5511 here.
5512 * utils.h (pagination_enabled): Declare.
5513
5514 2013-06-28 Pedro Alves <palves@redhat.com>
5515
5516 * infrun.c (non_stop, non_stop_1, set_non_stop, show_non_stop):
5517 Move higher up in file.
5518
5519 2013-06-28 Tom Tromey <tromey@redhat.com>
5520
5521 * tracepoint.c (deprecated_readline_begin_hook)
5522 (deprecated_readline_hook, deprecated_readline_end_hook): Don't
5523 declare.
5524
5525 2013-06-28 Pedro Alves <palves@redhat.com>
5526
5527 PR tui/14880
5528 * tui/tui-regs.c (tui_get_register): Fetch value contents before
5529 checking if they're available.
5530 * value.c (value_available_contents_eq): Change comment.
5531 * value.h (value_available_contents_eq): Expand comment.
5532
5533 2013-06-27 Tom Tromey <tromey@redhat.com>
5534
5535 * target.c (find_run_target): Remove.
5536 * target.h (find_run_target): Remove.
5537
5538 2013-06-27 Tom Tromey <tromey@redhat.com>
5539
5540 * corelow.c (core_gdbarch): Now static.
5541
5542 2013-06-27 Tom Tromey <tromey@redhat.com>
5543
5544 * target.c (target_struct_index): Remove.
5545
5546 2013-06-27 Pedro Alves <palves@redhat.com>
5547
5548 * infrun.c: Remove comment describing the 'stepping over runtime
5549 loader dynamic symbol resolution code' mechanism; moved to
5550 gdbint.texinfo.
5551
5552 2013-06-27 Pedro Alves <palves@redhat.com>
5553
5554 * exceptions.c (catch_command_errors): Remove spurious space.
5555 * exceptions.h (catch_command_errors): Second parameter is "arg",
5556 not "command".
5557
5558 2013-06-27 Yao Qi <yao@codesourcery.com>
5559
5560 * common/create-version.sh: Update comments. Handle the case
5561 that TARGET_ALIAS is empty.
5562
5563 2013-06-26 Pedro Alves <palves@redhat.com>
5564
5565 * infrun.c (SOLIB_IN_DYNAMIC_LINKER): Delete macro and describing
5566 comment.
5567
5568 2013-06-26 Pedro Alves <palves@redhat.com>
5569
5570 * infrun.c: Update comments on stepping over runtime loader
5571 dynamic symbol resolution code.
5572
5573 2013-06-26 Sergio Durigan Junior <sergiodj@redhat.com>
5574
5575 * ax-gdb.h (union exp_element): Forward declare.
5576 * parser-defs.h: Include expression.h.
5577
5578 2013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
5579
5580 * mips-tdep.c (fetch_mips_16): Use unmake_compact_addr.
5581
5582 2013-06-26 Dmitry Kozlov <ddk@codesourcery.com>
5583
5584 * tracepoint.c (trace_save): Extend tsave to save starttime, stoptime.
5585
5586 2013-06-26 Dmitry Kozlov <ddk@codesourcery.com>
5587
5588 Fix trace-status to output proper start-time and stop-time.
5589 * tracepoint.c (trace_status_command): Fix type of printf arg to
5590 prevent improper type conversion.
5591 (trace_status_mi): Likewise.
5592
5593 2013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
5594
5595 * mips-tdep.c (mips_next_pc): Fix a typo.
5596
5597 2013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
5598
5599 * mips-tdep.c (micromips_scan_prologue): Fix a typo.
5600
5601 2013-06-26 Pedro Alves <pedro@codesourcery.com>
5602 Yao Qi <yao@codesourcery.com>
5603
5604 * mi/mi-cmds.c (mi_cmds): Register -trace-frame-collected.
5605 * mi/mi-cmds.h (mi_cmd_trace_frame_collected): Declare.
5606 * mi/mi-main.c (print_variable_or_computed): New function.
5607 (mi_cmd_trace_frame_collected): New function.
5608 * tracepoint.c (find_trace_state_variable_by_number): New.
5609 (struct traceframe_info): Move to tracepoint.h
5610 (struct collection_list): Likewise.
5611 (do_collect_symbol): Include locals and arguments in the
5612 collected variables list.
5613 (clear_collection_list): Clear wholly collected variables list
5614 and computed variables list.
5615 (append_exp): New function.
5616 (encode_actions_1): Include variables in the wholly
5617 collected variables list. Include memory ranges and
5618 full-fledged expressions in the computed expressions list.
5619 (encode_actions): Move some code to ...
5620 Return the cleanup chain.
5621 (encode_actions_rsp): ... here. New function.
5622 (get_traceframe_location, get_traceframe_info): Remove static.
5623 * tracepoint.h (struct memrange): Moved from tracepoint.c.
5624 (struct collection_list): Moved from tracepoint.c. Add two
5625 new fields 'wholly_collected' and 'computed'.
5626 (find_trace_state_variable_by_number): Declare.
5627 (encode_actions): Adjust declaration.
5628 (encode_actions_rsp): Declare.
5629 (get_traceframe_info, get_traceframe_location): Declare.
5630
5631 * NEWS: Mention new MI command -trace-frame-collected.
5632
5633 2013-06-26 Pedro Alves <pedro@codesourcery.com>
5634 Yao Qi <yao@codesourcery.com>
5635
5636 * ctf.c (ctf_traceframe_info): Push trace state variables
5637 present in the trace data into the traceframe info object.
5638 * breakpoint.c (DEF_VEC_I): Remove.
5639 * common/filestuff.c (DEF_VEC_I): Likewise.
5640 * dwarf2loc.c (DEF_VEC_I): Likewise.
5641 * mi/mi-main.c (DEF_VEC_I): Likewise.
5642 * common/gdb_vecs.h (DEF_VEC_I): Define vector for int.
5643 * features/traceframe-info.dtd: Add tvar element and its
5644 attributes.
5645 * tracepoint.c (free_traceframe_info): Free vector 'tvars'.
5646 (build_traceframe_info): Push trace state variables present in
5647 the trace data into the traceframe info object.
5648 (traceframe_info_start_tvar): New function.
5649 (tvar_attributes): New.
5650 (traceframe_info_children): Add "tvar" element.
5651 * tracepoint.h (struct traceframe_info) <tvars>: New field.
5652
5653 * NEWS: Mention the change in GDB and GDBserver.
5654
5655 2013-06-26 Pedro Alves <pedro@codesourcery.com>
5656 Yao Qi <yao@codesourcery.com>
5657
5658 * tracepoint.c (trace_dump_command): Move code to ...
5659 (get_traceframe_location): ... here. New.
5660
5661 2013-06-26 Pedro Alves <pedro@codesourcery.com>
5662 Yao Qi <yao@codesourcery.com>
5663
5664 * tracepoint.c (trace_dump_command): GDB emits an error
5665 instead of a warning when a traceframe is not selected.
5666
5667 2013-06-26 Pedro Alves <pedro@codesourcery.com>
5668 Yao Qi <yao@codesourcery.com>
5669
5670 * tracepoint.c (tracepoint_list, stepping_list): Remove.
5671 (clear_collection_list): Free fields 'aexpre_list' and 'list'
5672 in collection_list.
5673 (do_clear_collection_list, init_collection_list): New.
5674 (encode_actions): Add local variables 'tracepoint_list' and
5675 'stepping_list'. Call init_collection_list and make cleanup
5676 which calls do_clear_collection_list. Don't call
5677 clear_collection_list.
5678 (_initialize_tracepoint): Delete references to
5679 'tracepoint_list' and 'stepping_list'.
5680
5681 2013-06-25 Tom Tromey <tromey@redhat.com>
5682
5683 * common/create-version.sh (date): Use "$", not "$$" in sed
5684 expression.
5685
5686 2013-06-25 Kevin Buettner <kevinb@redhat.com>
5687
5688 * NEWS (New targets): Add entry for TI MSP430.
5689
5690 2013-06-25 Yao Qi <yao@codesourcery.com>
5691
5692 * remote.c (remote_start_remote): Move code to upload tsv
5693 earlier.
5694
5695 2013-06-25 Yao Qi <yao@codesourcery.com>
5696 Hui Zhu <hui@codesourcery.com>
5697 Pedro Alves <palves@redhat.com>
5698
5699 PR breakpoints/15075
5700 PR breakpoints/15434
5701 * breakpoint.c (bpstat_stop_status): Call
5702 b->ops->after_condition_true.
5703 (update_dprintf_command_list): Don't append "continue" command
5704 to the command list of dprintf breakpoint.
5705 (base_breakpoint_after_condition_true): New function.
5706 (base_breakpoint_ops): Add base_breakpoint_after_condition_true.
5707 (dprintf_after_condition_true): New function.
5708 (initialize_breakpoint_ops): Set dprintf_after_condition_true.
5709 * breakpoint.h (breakpoint_ops): Add after_condition_true.
5710
5711 2013-06-24 Kevin Buettner <kevinb@redhat.com>
5712
5713 * Makefile.in (ALL_TARGET_OBS): Add msp430-tdep.o.
5714 (ALLDEPFILES): Add msp430-tdep.c.
5715 * configure.tgt (msp430*-*-elf): New target.
5716 * msp430-tdep.c: New file.
5717
5718 2013-06-24 Maciej W. Rozycki <macro@codesourcery.com>
5719
5720 * mips-tdep.c (mips_elf_make_msymbol_special): Handle MIPS16 and
5721 microMIPS synthetic symbols.
5722
5723 2013-06-24 Maciej W. Rozycki <macro@codesourcery.com>
5724
5725 * objfiles.h (pc_in_section): New prototype.
5726 (in_plt_section): Remove name argument, replace prototype with
5727 static inline function.
5728 * mips-tdep.h: Include "objfiles.h".
5729 (in_mips_stubs_section): New function.
5730 * hppa-tdep.h (gdbarch_tdep): Remove name argument of
5731 in_solib_call_trampoline member.
5732 (hppa_in_solib_call_trampoline): Remove name argument.
5733 * objfiles.c (pc_in_section): New function.
5734 (in_plt_section): Remove function.
5735 * mips-linux-tdep.c: Include "objfiles.h".
5736 (mips_linux_in_dynsym_stub): Call in_mips_stubs_section. Remove
5737 name argument. Return 1 rather than the low 16-bit halfword of
5738 any instruction examined.
5739 (mips_linux_in_dynsym_resolve_code): Update
5740 mips_linux_in_dynsym_stub call accordingly.
5741 * mips-tdep.c (mips_stub_frame_sniffer): Use in_mips_stubs_section
5742 rather than an equivalent hand-coded sequence.
5743 * hppa-hpux-tdep.c (in_opd_section): Remove function.
5744 (hppa32_hpux_in_solib_call_trampoline): Remove name argument.
5745 (hppa64_hpux_in_solib_call_trampoline): Likewise.
5746 (hppa64_hpux_find_global_pointer): Use pc_in_section rather than
5747 in_opd_section.
5748 * hppa-tdep.c (hppa_stub_unwind_sniffer): Remove name argument
5749 on call to tdep->in_solib_call_trampoline.
5750 (hppa_in_solib_call_trampoline): Remove name argument, update
5751 according to in_plt_section change.
5752 (hppa_skip_trampoline_code): Update according to in_plt_section
5753 change.
5754 * aarch64-tdep.c (aarch64_stub_unwind_sniffer): Likewise.
5755 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code):
5756 Likewise.
5757 * arm-tdep.c (arm_stub_unwind_sniffer): Likewise.
5758 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): Likewise.
5759 * hppabsd-tdep.c (hppabsd_find_global_pointer): Likewise.
5760 * nios2-tdep.c (nios2_stub_frame_sniffer): Likewise.
5761 * nto-tdep.c (nto_relocate_section_addresses): Likewise.
5762 * s390-tdep.c (s390_stub_frame_sniffer): Likewise.
5763 * sh-tdep.c (sh_stub_unwind_sniffer): Likewise.
5764 * solib-dsbt.c (dsbt_in_dynsym_resolve_code): Likewise.
5765 * solib-frv.c (frv_in_dynsym_resolve_code): Likewise.
5766 * solib-svr4.c (svr4_in_dynsym_resolve_code): Likewise.
5767 * solib-target.c (solib_target_in_dynsym_resolve_code): Likewise.
5768 * sparc-tdep.c (sparc_analyze_prologue): Likewise.
5769 * tic6x-tdep.c (tic6x_stub_unwind_sniffer): Likewise.
5770
5771 2013-06-24 Joel Brobecker <brobecker@adacore.com>
5772
5773 * common/create-version.sh: Fix expansion of $host_alias
5774 and $target_alias in generation of HOST_NAME and TARGET_NAME
5775 (resp.).
5776
5777 2013-06-24 Tom Tromey <tromey@redhat.com>
5778
5779 * common/create-version.sh: New file.
5780 * Makefile.in (version.c): Use bfd/version.h, common/version.in,
5781 create-version.sh.
5782 (HFILES_NO_SRCDIR): Use common/version.h.
5783 * version.in: Move to ...
5784 * common/version.in: ... here. Replace date with "DATE".
5785 * version.h: Move to ...
5786 * common/version.h: ... here.
5787
5788 2013-06-21 Joel Brobecker <brobecker@adacore.com>
5789
5790 * gdb/gnulib/Makefile.in: Update date in copyright header.
5791 * gdb/gnulib/configure.ac: Ditto.
5792 * gdb/gnulib/update-gnulib.sh: Ditto.
5793
5794 2013-06-21 Joel Brobecker <brobecker@adacore.com>
5795
5796 * copyright.py (EXCLUDE_LIST): Replace "gdb/gnulib" by
5797 "gdb/gnulib/import".
5798
5799 2013-06-21 Will Newton <will.newton@linaro.org>
5800
5801 * doublest.c (ldfrexp): Remove function.
5802 (convert_doublest_to_floatformat): Call frexpl instead of
5803 ldfrexp.
5804
5805 2013-06-21 Will Newton <will.newton@linaro.org>
5806
5807 * gnulib/update-gnulib.sh(IMPORTED_GNULIB_MODULES): Add frexpl.
5808 * gnulib/aclocal.m4: Regenerate.
5809 * gnulib/config.in: Regenerate.
5810 * gnulib/configure: Regenerate.
5811 * gnulib/import/Makefile.am: Update.
5812 * gnulib/import/Makefile.in: Update.
5813 * gnulib/import/m4/gnulib-cache.m4: Update.
5814 * gnulib/import/m4/gnulib-comp.m4: Update.
5815 * gnulib/import/float+.h: Import.
5816 * gnulib/import/float.c: Import.
5817 * gnulib/import/float.in.h: Import.
5818 * gnulib/import/fpucw.h: Import.
5819 * gnulib/import/frexp.c: Import.
5820 * gnulib/import/frexpl.c: Import.
5821 * gnulib/import/isnan.c: Import.
5822 * gnulib/import/isnand-nolibm.h: Import.
5823 * gnulib/import/isnand.c: Import.
5824 * gnulib/import/isnanl-nolibm.h: Import.
5825 * gnulib/import/isnanl.c: Import.
5826 * gnulib/import/itold.c: Import.
5827 * gnulib/import/m4/exponentd.m4: Import.
5828 * gnulib/import/m4/exponentl.m4: Import.
5829 * gnulib/import/m4/float_h.m4: Import.
5830 * gnulib/import/m4/fpieee.m4: Import.
5831 * gnulib/import/m4/frexp.m4: Import.
5832 * gnulib/import/m4/frexpl.m4: Import.
5833 * gnulib/import/m4/isnand.m4: Import.
5834 * gnulib/import/m4/isnanl.m4: Import.
5835 * gnulib/import/m4/math_h.m4: Import.
5836 * gnulib/import/math.c: Import.
5837 * gnulib/import/math.in.h: Import.
5838
5839 2013-06-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5840
5841 * common/linux-btrace.c (cpu_supports_btrace): Remove variable vendor,
5842 replace strcmp with signature_INTEL_ebx, signature_INTEL_ecx and
5843 signature_INTEL_edx comparisons.
5844
5845 2013-06-20 Doug Evans <dje@google.com>
5846
5847 symtab/15652
5848 * dwarf2read.c (try_open_dwop_file): New arg search_cwd.
5849 All callers updated.
5850 (open_dwp_file): If we can't find the dwp file, search the basename
5851 in debug-file-directory.
5852
5853 * dwarf2read.c (struct dwp_file): Fix comment.
5854 (open_and_init_dwp_file): Set dwp_file->name to bfd's file name.
5855
5856 * source.c (openp): Document OPF_TRY_CWD_FIRST+OPF_SEARCH_IN_PATH
5857 better.
5858
5859 2013-06-20 Yao Qi <yao@codesourcery.com>
5860
5861 * breakpoint.c (create_breakpoint): Fix code indentation.
5862
5863 2013-06-20 Yao Qi <yao@codesourcery.com>
5864
5865 * breakpoint.c (create_breakpoints_sal_default): Remove
5866 parameter 'lsal'. Update declaration.
5867 (bkpt_create_breakpoints_sal): Caller update.
5868 (tracepoint_create_breakpoints_sal): Likewise.
5869
5870 2013-06-20 Pedro Alves <pedro@codesourcery.com>
5871 Yao Qi <yao@codesourcery.com>
5872
5873 * NEWS: Mention the new option '--skip-unavailable' of command
5874 -data-list-register-values.
5875 * mi/mi-main.c (mi_cmd_data_list_register_values): Accept the
5876 --skip-unavailable option. Adjust to use output_register.
5877 (output_register): Add new 'skip_unavailable' parameter.
5878 Handle it.
5879
5880 2013-06-19 Mike Frysinger <vapier@gentoo.org>
5881
5882 * Makefile.in (HFILES_NO_SRCDIR): Add common/i386-cpuid.h and
5883 common/i386-gcc-cpuid.h.
5884 * common/i386-cpuid.h: New wrapper header around i386-gcc-cpuid.h.
5885 * common/i386-gcc-cpuid.h: Rename from testsuite/gdb.arch/i386-cpuid.h.
5886 Copy the latest version from upstream gcc.
5887 * common/linux-btrace.c: Include i386-cpuid.h.
5888 (intel_supports_btrace): Delete x86 ifdefs and replace inline asm with
5889 call to i386_cpuid.
5890 (cpu_supports_btrace): Likewise.
5891 * go32-nat.c: Include i386-cpuid.h.
5892 (go32_sysinfo): Add (disabled) calls to i386_cpuid with comments.
5893
5894 2013-06-19 Doug Evans <dje@google.com>
5895
5896 * symfile.c (symfile_bfd_open): Delete unnecessary declaration.
5897 (get_section_index): Ditto.
5898
5899 2013-06-19 Tom Tromey <tromey@redhat.com>
5900
5901 * breakpoint.c (_initialize_breakpoint): Remove trailing \n from
5902 "dprintf" help.
5903
5904 2013-06-18 Doug Evans <dje@google.com>
5905
5906 * dwarf2read.c (dw2_symtab_iter_next): Check value of cu_index
5907 before using it.
5908 (dw2_expand_symtabs_matching): Fix symbol kind validity check.
5909 Move test of cu_index closer to use. Print complaint if cu_index
5910 is bad.
5911
5912 2013-06-18 Joel Brobecker <brobecker@adacore.com>
5913
5914 * machoread.c (oso_vector): Delete this global.
5915 (macho_register_oso): Add new parameter "oso_vector_ptr".
5916 Use it instead of the "oso_vector" global.
5917 (macho_symtab_read, macho_symfile_read_all_oso): Likewise.
5918 (macho_symfile_read): Use a local oso_vector, to be free'ed
5919 at the end of this function, in place of the old "oso_vector"
5920 global. Update various function calls accordingly. Use one
5921 single cleanup chain for the entire function.
5922
5923 2013-06-18 Joel Brobecker <brobecker@adacore.com>
5924
5925 * dwarf2read.c (dwarf2_per_objfile_free): Replace uses of
5926 DWARF2_PER_OBJFILE by uses of DATA instead.
5927
5928 2013-06-18 Tom Tromey <tromey@redhat.com>
5929
5930 * break-catch-sig.c (signal_catchpoint_explains_signal): Add 'sig'
5931 argument.
5932 * breakpoint.c (bpstat_explains_signal): Add 'sig' argument.
5933 Special case signals other than GDB_SIGNAL_TRAP.
5934 (explains_signal_watchpoint): New function.
5935 (base_breakpoint_explains_signal): Add 'sig' argument.
5936 (initialize_breakpoint_ops): Set 'explains_signal' method for
5937 watchpoints.
5938 * breakpoint.h (struct breakpoint_ops) <explains_signal>: Add
5939 signal argument.
5940 (bpstat_explains_signal): Likewise.
5941 * infrun.c (handle_syscall_event, handle_inferior_event): Update.
5942
5943 2013-06-18 Tom Tromey <tromey@redhat.com>
5944
5945 * python/py-inferior.c (gdbpy_selected_inferior): Don't incref.
5946
5947 2013-06-18 Tom Tromey <tromey@redhat.com>
5948
5949 * python/python.c (finish_python_initialization): Decref
5950 'pythondir' on failure path as well.
5951
5952 2013-06-18 Tom Tromey <tromey@redhat.com>
5953
5954 PR symtab/15391:
5955 * dwarf2loc.c (read_pieced_value): Truncate this_size_bits
5956 after taking bits_to_skip into account. Sign extend byte_offset.
5957 * utils.h (gdb_sign_extend): Declare.
5958 * utils.c (gdb_sign_extend): New function.
5959
5960 2013-06-18 Jan Kratochvil <jan.kratochvil@redhat.com>
5961
5962 * dwarf2read.c (write_psymtabs_to_index): Ignore NULL PSYMTAB.
5963
5964 2013-06-17 Pierre Muller <muller@sourceware.org>
5965
5966 * corelow.c (core_open): Print GDB signal name instead of target
5967 signal number.
5968
5969 2013-06-17 Mike Frysinger <vapier@gentoo.org>
5970
5971 * .gitignore: Add /gcore.
5972
5973 2013-06-13 Doug Evans <dje@google.com>
5974
5975 * dwarf2read.c (try_open_dwop_file): Work around behaviour of
5976 OPF_TRY_CWD_FIRST to not search path if the file contains a '/'.
5977
5978 2013-06-12 Phil Muldoon <pmuldoon@redhat.com>
5979
5980 * stack.c (backtrace_command_1): Fix indentation.
5981
5982 2013-06-11 Joel Brobecker <brobecker@adacore.com>
5983
5984 * window-nat.c (thread_rec): Add missing empty line after
5985 local variable declaration.
5986
5987 2013-06-11 Joel Brobecker <brobecker@adacore.com>
5988
5989 * windows-nat.c (thread_rec): Revert format used to print
5990 error code returned by SuspendThread from %d back to %u.
5991
5992 2013-06-11 Joel Brobecker <brobecker@adacore.com>
5993
5994 * windows-nat.c (windows_continue): Add "0x" prefix for thread
5995 ID in debug trace.
5996 (get_windows_debug_event): Likewise, for all debug traces.
5997
5998 2013-06-11 Joel Brobecker <brobecker@adacore.com>
5999
6000 * window-nat.c (thread_rec): Add thread ID in SuspendThread
6001 warning message.
6002
6003 2013-06-08 Pedro Alves <pedro@codesourcery.com>
6004 Yao Qi <yao@codesourcery.com>
6005
6006 * mi/mi-main.c (get_register): Remove declaration.
6007 (output_register): Declare.
6008 (mi_cmd_data_list_register_values): Remove local variable
6009 'tuple_cleanup'. Move some code into output_register.
6010 (get_register): Renamed to ...
6011 (output_register): ... this. Output the register's
6012 "number" ui_out tuple here.
6013
6014 2013-06-07 Pedro Alves <palves@redhat.com>
6015
6016 * darwin-nat.c: Fix formating in copyright header.
6017 * darwin-nat.h: Likewise.
6018 * gnu-nat.c: Likewise.
6019 * machoread.c: Likewise.
6020
6021 2013-06-07 Pedro Alves <palves@redhat.com>
6022
6023 PR server/14823
6024 * regformats/regdat.sh: Output #include tdesc.h. Make globals
6025 static. Output a global target description pointer.
6026 (init_registers_${name}): Adjust to initialize a
6027 target description structure.
6028
6029 2013-06-07 Will Newton <will.newton@linaro.org>
6030
6031 * printcmd.c (build_address_symbolic): Call
6032 gdbarch_addr_bits_remove for text minimal symbols.
6033
6034 2013-06-07 Will Newton <will.newton@linaro.org>
6035
6036 * MAINTAINERS: Add myself to Write After Approval.
6037
6038 2013-06-07 Yao Qi <yao@codesourcery.com>
6039
6040 * tracepoint.c (start_tracing): Move code to ...
6041 (trace_reset_local_state): ... here. New.
6042 (disconnect_tracing): Don't call set_current_traceframe,
6043 set_tracepoint_num, and set_traceframe_context. Call
6044 trace_reset_local_state instead.
6045 (tfile_close): Call trace_reset_local_state.
6046 * ctf.c (ctf_close): Likewise.
6047 * remote.c (remote_close): Likewise.
6048 * tracepoint.h (trace_reset_local_state): Declare.
6049
6050 2013-06-06 Doug Evans <dje@google.com>
6051
6052 * dwarf2read.c: Whitespace fixes for DWP file format documentation,
6053 and fix header docs.
6054
6055 2013-06-05 Doug Evans <dje@google.com>
6056 Keith Seitz <keiths@redhat.com>
6057
6058 PR 15519
6059 * cp-namespace.c (find_symbol_in_baseclass): Call
6060 cp_lookup_symbol_in_namespace instead of cp_lookup_symbol_namespace.
6061 Check result of call to lookup_symbol_static.
6062 Call lookup_static_symbol_aux unconditionally.
6063 Call check_typedef on base types before accessing them.
6064 (cp_lookup_nested_symbol): Fix comment.
6065
6066 2013-06-05 Luis Machado <lgustavo@codesourcery.com>
6067
6068 * gnu-v3-abi.c (gnuv3_skip_trampoline): Handle thunk
6069 minimal symbols pointing to function descriptors.
6070
6071 2013-06-05 Tom Tromey <tromey@redhat.com>
6072
6073 * python/py-utils.c (gdb_pymodule_addobject): Cast away const.
6074
6075 2013-06-04 Sergio Durigan Junior <sergiodj@redhat.com>
6076 Pedro Alves <palves@redhat.com>
6077
6078 * remote.c (remote_wait_as): Restore signal handler before returning
6079 when GDB gets a notification.
6080
6081 2013-06-04 Gary Benson <gbenson@redhat.com>
6082
6083 PR 2328
6084 * breakpoint.h (handle_solib_event): Moved function declaration
6085 to solib.h.
6086 * breakpoint.c (handle_solib_event): Moved function to solib.c.
6087 (bpstat_stop_status): Pass new argument to handle_solib_event.
6088 * solib.h (update_solib_breakpoints): New function declaration.
6089 (handle_solib_event): Moved function declaration from
6090 breakpoint.h.
6091 * solib.c (update_solib_breakpoints): New function.
6092 (handle_solib_event): Moved function from breakpoint.c.
6093 Updated to call solib_ops->handle_event if not NULL.
6094 * solist.h (target_so_ops): New fields "update_breakpoints" and
6095 "handle_event".
6096 * infrun.c (set_stop_on_solib_events): New function.
6097 (_initialize_infrun): Use the above for "set
6098 stop-on-solib-events".
6099 (handle_inferior_event): Pass new argument to handle_solib_event.
6100 * solib-svr4.c (probe.h): New include.
6101 (svr4_free_library_list): New forward declaration.
6102 (probe_action): New enum.
6103 (probe_info): New struct.
6104 (probe_info): New static variable.
6105 (NUM_PROBES): New definition.
6106 (svr4_info): New fields "using_xfer", "probes_table" and
6107 "solib_list".
6108 (free_probes_table): New function.
6109 (free_solib_list): New function.
6110 (svr4_pspace_data_cleanup): Free probes table and solib list.
6111 (svr4_copy_library_list): New function.
6112 (svr4_current_sos_via_xfer_libraries): New parameter "annex".
6113 (svr4_read_so_list): New parameter "prev_lm".
6114 (svr4_current_sos_direct): Renamed from "svr4_current_sos".
6115 (svr4_current_sos): New function.
6116 (probe_and_action): New struct.
6117 (hash_probe_and_action): New function.
6118 (equal_probe_and_action): Likewise.
6119 (register_solib_event_probe): Likewise.
6120 (solib_event_probe_at): Likewise.
6121 (solib_event_probe_action): Likewise.
6122 (solist_update_full): Likewise.
6123 (solist_update_incremental): Likewise.
6124 (disable_probes_interface_cleanup): Likewise.
6125 (svr4_handle_solib_event): Likewise.
6126 (svr4_update_solib_event_breakpoint): Likewise.
6127 (svr4_update_solib_event_breakpoints): Likewise.
6128 (svr4_create_solib_event_breakpoints): Likewise.
6129 (enable_break): Free probes table before creating breakpoints.
6130 Use svr4_create_solib_event_breakpoints to create breakpoints.
6131 (svr4_solib_create_inferior_hook): Free the solib list.
6132 (_initialize_svr4_solib): Initialise
6133 svr4_so_ops.handle_solib_event and svr4_so_ops.update_breakpoints.
6134
6135 2013-06-04 Gary Benson <gbenson@redhat.com>
6136
6137 * target.h (target_ops): New field
6138 "to_augmented_libraries_svr4_read".
6139 (target_augmented_libraries_svr4_read): New macro.
6140 * target.c (update_current_target): Handle
6141 to_augmented_libraries_svr4_read.
6142 * remote.c (remote_state): New field
6143 "augmented_libraries_svr4_read".
6144 (remote_augmented_libraries_svr4_read_feature): New function.
6145 (remote_protocol_features): Add entry for
6146 "augmented-libraries-svr4-read".
6147 (remote_augmented_libraries_svr4_read): New function.
6148 (init_remote_ops): Initialize
6149 remote_ops.to_augmented_libraries_svr4_read.
6150
6151 2013-06-04 Gary Benson <gbenson@redhat.com>
6152
6153 * NEWS: Update.
6154
6155 2013-06-04 Gary Benson <gbenson@redhat.com>
6156
6157 * objfiles.h (inhibit_section_map_updates): New function
6158 declaration.
6159 (resume_section_map_updates): Likewise.
6160 (resume_section_map_updates_cleanup): Likewise.
6161 * objfiles.c (objfile_pspace_info): Removed field
6162 "objfiles_changed_p". New fields "new_objfiles_available",
6163 "section_map_dirty" and "inhibit_updates".
6164 (allocate_objfile): Set new_objfiles_available.
6165 (free_objfile): Set section_map_dirty.
6166 (objfile_relocate1): Likewise.
6167 (in_plt_section): Likewise.
6168 (find_pc_section): Update the conditions under which the
6169 section map will be updated.
6170 (inhibit_section_map_updates): New function.
6171 (resume_section_map_updates): Likewise.
6172 (resume_section_map_updates_cleanup): Likewise.
6173
6174 2013-06-04 Gary Benson <gbenson@redhat.com>
6175
6176 * probe.h (get_probe_argument_count): New declaration.
6177 (evaluate_probe_argument): Likewise.
6178 * probe.c (get_probe_argument_count): New function.
6179 (evaluate_probe_argument): Likewise.
6180 (probe_safe_evaluate_at_pc): Use the above new functions.
6181
6182 2013-06-04 Alan Modra <amodra@gmail.com>
6183
6184 * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
6185 * rs6000-tdep.c (read_insn): Add frame param, don't assume big-endian.
6186 (ppc_insns_match_pattern): Add frame param. Avoid multiple
6187 target mem reads on optional insns.
6188 * ppc-linux-tdep.c (ppc_skip_trampoline_code): Update
6189 ppc_insns_match_pattern calls.
6190 * ppc64-tdep.c (ppc64_standard_linkage2, ppc64_standard_linkage3):
6191 Add match for power7 thread safety insns, and new order of
6192 std 2,40(1) insn. Correct code shown for _dl_runtime_resolve
6193 invocation in comment, and update rest of comment.
6194 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN,
6195 PPC64_STANDARD_LINKAGE3_LEN): Delete.
6196 (ppc64_standard_linkage2_target): Update insn offsets.
6197 (ppc64_skip_trampoline_code): Use a single insn buffer. Match newer
6198 stubs first. Update calls.
6199
6200 2013-06-04 Yao Qi <yao@codesourcery.com>
6201
6202 * solib.c (solib_find): Don't need dir separator if path has
6203 drive spec.
6204
6205 2013-06-03 Joel Brobecker <brobecker@adacore.com>
6206
6207 Revert (indirectly causes a SIGSEGV):
6208 * machoread.c (macho_symfile_read): Assign first cleanup to
6209 'back_to'.
6210
6211 2013-06-03 Yao Qi <yao@codesourcery.com>
6212
6213 * mi/mi-cmd-var.c (mi_no_values, mi_simple_values): Move to
6214 mi-parse.c. Make them static.
6215 (mi_all_values): Likewise.
6216 (mi_parse_values_option): Move to mi-parse.c. Rename it to
6217 mi_parse_print_values. Make it external.
6218 * mi/mi-cmds.h (mi_no_values, mi_simple_values, mi_all_values):
6219 Remove the declarations.
6220 * mi/mi-parse.c (mi_parse_print_values): Moved from mi-cmd-var.c.
6221 * mi/mi-parse.h (mi_parse_print_values): Declare.
6222 * mi/mi-cmd-stack.c: Include mi-parse.h.
6223 (parse_print_values): Remove
6224 (mi_cmd_stack_list_locals): Call mi_parse_print_values instead
6225 of parse_print_values.
6226 (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Likewise.
6227
6228 2013-05-31 Pedro Alves <pedro@codesourcery.com>
6229 Yao Qi <yao@codesourcery.com>
6230
6231 * tracepoint.c (all_tracepoint_actions_and_cleanup): Declare.
6232 (encode_actions): Move code to ...
6233 (all_tracepoint_actions_and_cleanup): ... here. New.
6234 (trace_dump_command): Likewise.
6235
6236 2013-05-30 Tom Tromey <tromey@redhat.com>
6237
6238 * symmisc.c (maintenance_expand_symtabs): Call do_cleanups.
6239
6240 2013-05-30 Tom Tromey <tromey@redhat.com>
6241
6242 * xml-support.c (gdb_xml_create_parser_and_cleanup): Rename from
6243 gdb_xml_create_parser_and_cleanup_1. Return a cleanup. Remove
6244 'old_chain' argument. Add 'parser_result' argument.
6245 (gdb_xml_create_parser_and_cleanup): Remove old version.
6246 (gdb_xml_parse_quick): Update.
6247 (xml_process_xincludes): Update.
6248 * xml-support.h (gdb_xml_create_parser_and_cleanup): Don't
6249 declare.
6250
6251 2013-05-30 Tom Tromey <tromey@redhat.com>
6252
6253 * probe.c (collect_probes): Check arguments for NULL before
6254 calling compile_rx_or_error.
6255 * utils.c (compile_rx_or_error): Require 'rx' to be non-NULL.
6256 Remove NULL return.
6257
6258 2013-05-30 Tom Tromey <tromey@redhat.com>
6259
6260 * infrun.c (adjust_pc_after_break): Introduce an outer null
6261 cleanup.
6262
6263 2013-05-30 Tom Tromey <tromey@redhat.com>
6264
6265 * mi/mi-cmd-var.c (varobj_update_one): Add an outer null cleanup.
6266
6267 2013-05-30 Tom Tromey <tromey@redhat.com>
6268
6269 * cli/cli-script.c (read_command_lines_1): Use a null cleanup
6270 for 'old_chain'. Do not check 'head' before processing
6271 cleanups.
6272
6273 2013-05-30 Tom Tromey <tromey@redhat.com>
6274
6275 * mi/mi-cmd-stack.c (list_arg_or_local): Remove
6276 "cleanup_tuple".
6277
6278 2013-05-30 Tom Tromey <tromey@redhat.com>
6279
6280 * dbxread.c (dbx_read_symtab): Declare 'back_to' in a more
6281 inner scope. Unconditionally call do_cleanups.
6282
6283 2013-05-30 Tom Tromey <tromey@redhat.com>
6284
6285 * source.c (find_and_open_source): Call do_cleanups.
6286
6287 2013-05-30 Tom Tromey <tromey@redhat.com>
6288
6289 * linux-thread-db.c (thread_db_load_search): Unconditionally
6290 call do_cleanups.
6291
6292 2013-05-30 Tom Tromey <tromey@redhat.com>
6293
6294 * solib-aix.c (solib_aix_bfd_open): Don't use a null cleanup
6295 for 'cleanup'; instead use a later one.
6296
6297 2013-05-30 Tom Tromey <tromey@redhat.com>
6298
6299 * python/py-breakpoint.c (bppy_get_commands): Use
6300 explicit, unconditional return.
6301 * python/py-frame.c (frapy_read_var): Likewise.
6302 * python/python.c (gdbpy_decode_line): Likewise.
6303
6304 2013-05-30 Tom Tromey <tromey@redhat.com>
6305
6306 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Call
6307 do_cleanups on all return paths.
6308
6309 2013-05-30 Tom Tromey <tromey@redhat.com>
6310
6311 * top.c (execute_command): Discard 'cleanup_if_error' cleanups.
6312
6313 2013-05-30 Tom Tromey <tromey@redhat.com>
6314
6315 * stabsread.c (read_struct_type): Call do_cleanups along
6316 all return paths.
6317
6318 2013-05-30 Maciej W. Rozycki <macro@codesourcery.com>
6319
6320 * mips-linux-tdep.c: Adjust formatting throughout.
6321
6322 2013-05-30 Tom Tromey <tromey@redhat.com>
6323
6324 * mipsread.c (read_alphacoff_dynamic_symtab): Call do_cleanups
6325 along all return paths.
6326
6327 2013-05-30 Tom Tromey <tromey@redhat.com>
6328
6329 * symfile.c (find_separate_debug_file): Call do_cleanups
6330 along all return paths.
6331
6332 2013-05-30 Tom Tromey <tromey@redhat.com>
6333
6334 * symtab.c (search_symbols): Introduce a null cleanup for
6335 'retval_chain'.
6336
6337 2013-05-30 Tom Tromey <tromey@redhat.com>
6338
6339 * python/py-value.c (valpy_binop): Call do_cleanups before
6340 exiting loop.
6341
6342 2013-05-30 Tom Tromey <tromey@redhat.com>
6343
6344 * python/py-prettyprint.c (print_children): Remove extra
6345 do_cleanups call.
6346
6347 2013-05-30 Tom Tromey <tromey@redhat.com>
6348
6349 * python/py-frame.c (frapy_read_var): Call do_cleanups along
6350 all return paths.
6351
6352 2013-05-30 Tom Tromey <tromey@redhat.com>
6353
6354 * python/py-breakpoint.c (bppy_get_commands): Call do_cleanups
6355 along all return paths.
6356
6357 2013-05-30 Tom Tromey <tromey@redhat.com>
6358
6359 * cli/cli-logging.c (set_logging_redirect): Unconditionally
6360 call do_cleanups.
6361
6362 2013-05-30 Tom Tromey <tromey@redhat.com>
6363
6364 * varobj.c (c_value_of_root): Call do_cleanups along all
6365 return paths.
6366
6367 2013-05-30 Tom Tromey <tromey@redhat.com>
6368
6369 * tracepoint.c (trace_dump_command): Unconditionally call
6370 do_cleanups.
6371
6372 2013-05-30 Tom Tromey <tromey@redhat.com>
6373
6374 * breakpoint.c (output_thread_groups, parse_cmd_to_aexpr): Call
6375 do_cleanups earlier.
6376
6377 2013-05-30 Tom Tromey <tromey@redhat.com>
6378
6379 * machoread.c (macho_symfile_read): Assign first cleanup to
6380 'back_to'.
6381
6382 2013-05-30 Tom Tromey <tromey@redhat.com>
6383
6384 * m32r-rom.c (m32r_load): Call do_cleanups at all returns.
6385
6386 2013-05-30 Tom Tromey <tromey@redhat.com>
6387
6388 * mi/mi-main.c (list_available_thread_groups): Call do_cleanups.
6389
6390 2013-05-30 Tom Tromey <tromey@redhat.com>
6391
6392 * inf-ptrace.c (inf_ptrace_create_inferior): Unconditionally
6393 call discard_cleanups.
6394 (inf_ptrace_attach): Likewise.
6395
6396 2013-05-30 Tom Tromey <tromey@redhat.com>
6397
6398 * remote-mips.c (mips_exit_debug): Call do_cleanups on all
6399 return paths.
6400 (mips_initialize): Likewise.
6401 (common_open): Call do_cleanups.
6402
6403 2013-05-30 Tom Tromey <tromey@redhat.com>
6404
6405 * utils.c (internal_vproblem): Call do_cleanups.
6406
6407 2013-05-30 Tom Tromey <tromey@redhat.com>
6408
6409 * linespec.c (find_linespec_symbols): Don't reassign to 'cleanup'.
6410
6411 2013-05-30 Tom Tromey <tromey@redhat.com>
6412
6413 * cli/cli-script.c (setup_user_args): Don't return after error.
6414
6415 2013-05-30 Tom Tromey <tromey@redhat.com>
6416
6417 * somread.c (som_symtab_read): Call do_cleanups.
6418
6419 2013-05-30 Tom Tromey <tromey@redhat.com>
6420
6421 * printcmd.c (print_command_1): Unconditionally call do_cleanups.
6422
6423 2013-05-30 Tom Tromey <tromey@redhat.com>
6424
6425 * cli/cli-cmds.c (cd_command, alias_command): Call do_cleanups.
6426 * cli/cli-dump.c (restore_binary_file): Call do_cleanups.
6427 * interps.c (interpreter_exec_cmd): Call do_cleanups.
6428 * source.c (show_substitute_path_command): Call do_cleanups.
6429 (unset_substitute_path_command, set_substitute_path_command):
6430 Likewise.
6431 * symfile.c (load_command): Call do_cleanups.
6432
6433 2013-05-30 Tom Tromey <tromey@redhat.com>
6434
6435 * contrib/cleanup_check.py: New file.
6436 * contrib/gcc-with-excheck: Add option parsing.
6437
6438 2013-05-30 Joel Brobecker <brobecker@adacore.com>
6439
6440 * windows-nat.c (windows_delete_thread): Add missing space
6441 in cast expression.
6442
6443 2013-05-30 Hafiz Abid Qadeer <abidh@codesourcery.com>
6444
6445 * inferior.c (top level): Include tilde.h.
6446 (add_inferior_command): Call tilde_expand on the value of 'exec'
6447 argument.
6448
6449 2013-05-30 Pedro Alves <pedro@codesourcery.com>
6450 Yao Qi <yao@codesourcery.com>
6451
6452 * tracepoint.c (encode_actions_1): Remove parameter 't'.
6453 Caller update.
6454 (encode_actions): Likewise.
6455 * remote.c (remote_download_tracepoint): Caller update.
6456 * tracepoint.h (encode_actions): Update declaration.
6457
6458 2013-05-30 Pedro Alves <palves@redhat.com>
6459
6460 * python/python-internal.h (gdb_Py_DECREF): Cast OP to PyObject
6461 pointer.
6462
6463 2013-05-30 Yao Qi <yao@codesourcery.com>
6464
6465 * remote.c (remote_check_symbols): Remove unused parameter
6466 'objfile'.
6467 Declaration update.
6468 (remote_start_remote, remote_new_objfile): Caller update.
6469
6470 2013-05-30 Yao Qi <yao@codesourcery.com>
6471
6472 * mi/mi-cmds.c (mi_cmds): Define MI command
6473 '-exec-arguments' by macro DEF_MI_CMD_CLI_1 instead of
6474 DEF_MI_CMD_CLI.
6475
6476 2013-05-29 Pedro Alves <palves@redhat.com>
6477
6478 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint)
6479 (remote_insert_watchpoint, remote_remove_watchpoint)
6480 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint)
6481 (remote_verify_memory, compare_sections_command)
6482 (remote_search_memory): Set the general process/thread on the
6483 remote side.
6484
6485 2013-05-29 Pedro Alves <palves@redhat.com>
6486
6487 * aarch64-tdep.c: Don't include "features/aarch64-without-fpu.c".
6488 (_initialize_aarch64_tdep): Don't call
6489 initialize_tdesc_aarch64_without_fpu.
6490 * features/Makefile (WHICH): Remove reference to
6491 aarch64-without-fpu.
6492 * features/aarch64-without-fpu.c: Delete file.
6493 * regformats/aarch64-without-fpu.dat: Delete file.
6494
6495 2013-05-28 Yao Qi <yao@codesourcery.com>
6496
6497 * tracepoint.c (stringify_collection_list): Remove parameter
6498 'string'.
6499 (encode_actions): Caller update. Remove local variables.
6500
6501 2013-05-24 Yao Qi <yao@codesourcery.com>
6502
6503 * tracepoint.c (TFILE_PID): Remove.
6504 (tfile_open): Don't add thread and inferior.
6505 (tfile_close): Don't set 'inferior_ptid'. Don't call
6506 exit_inferior_silent.
6507 (tfile_thread_alive): Remove.
6508 (init_tfile_ops): Don't set field 'to_thread_alive' of
6509 tfile_ops.
6510
6511 2013-05-23 Doug Evans <dje@google.com>
6512
6513 * contrib/cc-with-tweaks.sh (-p): Handle no dwo files.
6514
6515 2013-05-23 Pedro Alves <palves@redhat.com>
6516
6517 * common/filestuff.c [USE_WIN32API]: Define HAVE_SOCKETS.
6518 [HAVE_SYS_SOCKET_H]: Define HAVE_SOCKETS.
6519 (socket_mark_cloexec, gdb_socketpair_cloexec, gdb_socket_cloexec):
6520 Only define if HAVE_SOCKETS is defined.
6521 * configure.ac: Check for sys/socket.h.
6522 * config.in, configure: Regenerate.
6523
6524 2013-05-23 Pedro Alves <palves@redhat.com>
6525
6526 * dwarf2read.c (create_dwp_hash_table, create_dwo_in_dwp)
6527 (open_and_init_dwp_file): Use %s/pulongest instead of %u for
6528 printing uint32_t variables.
6529
6530 2013-05-23 Pedro Alves <palves@redhat.com>
6531
6532 * NEWS: Mention GDBserver range stepping support.
6533
6534 2013-05-23 Yao Qi <yao@codesourcery.com>
6535 Pedro Alves <palves@redhat.com>
6536
6537 * gdbthread.h (struct thread_control_state) <may_range_step>: New
6538 field.
6539 * infcmd.c (step_once, until_next_command): Enable range stepping.
6540 * infrun.c (displaced_step_prepare): Disable range stepping.
6541 (resume): Disable range stepping if stepping over a breakpoint or
6542 we have software watchpoints. If range stepping is enabled,
6543 assert the thread is in the stepping range.
6544 (clear_proceed_status_thread): Clear may_range_step.
6545 (handle_inferior_event): Disable range stepping as soon as we know
6546 the thread that hit the event. Re-enable it whenever we're going
6547 to step with a step range.
6548 * remote.c (struct vCont_action_support) <r>: New field.
6549 (use_range_stepping): New global.
6550 (remote_vcont_probe): Handle 'r' action.
6551 (append_resumption): Append an 'r' action if the thread may range
6552 step.
6553 (show_range_stepping): New function.
6554 (set_range_stepping): New function.
6555 (_initialize_remote): Call add_setshow_boolean_cmd to register the
6556 'set range-stepping' and 'show range-stepping' commands.
6557 * NEWS: Mention range stepping, the new vCont;r action, and the
6558 new "set/show range-stepping" commands.
6559
6560 2013-05-23 Yao Qi <yao@codesourcery.com>
6561 Pedro Alves <palves@redhat.com>
6562
6563 * remote.c (struct vCont_action_support): New struct.
6564 (struct remote_state) <support_vCont_t>: Remove field.
6565 <vCont_actions_support>: New field.
6566 (remote_vcont_probe, remote_stop_ns): Update.
6567
6568 2013-05-23 Yao Qi <yao@codesourcery.com>
6569 Pedro Alves <palves@redhat.com>
6570
6571 * gdbthread.h (pc_in_thread_step_range): New declaration.
6572 * thread.c (pc_in_thread_step_range): New function.
6573 * infrun.c (handle_inferior_event): Use it.
6574
6575 2013-05-23 Joel Brobecker <brobecker@adacore.com>
6576
6577 * mi/mi-cmd-break.c (mi_argv_to_format): Use xsnprintf instead
6578 of sprintf.
6579
6580 2013-05-22 Keith Seitz <keiths@redhat.com>
6581
6582 * ada-lang.c (is_known_support_routine): Add explicit free of
6583 'func_name' from find_frame_funname.
6584 (ada_unhandled_exception_name_addr_from_raise): Add cleanups
6585 for func_name from find_frame_funname.
6586 * python/py-frame.c (frapy_name): Add explicit free of
6587 'name' from find_frame_funname.
6588 * stack.c (find_frame_funname): Add comment explaining that
6589 funcp must be freed by the caller.
6590 Return copy of symbol names instead of pointers.
6591 (print_frame): Add a cleanup for 'funname' from
6592 find_frame_funname.
6593 * stack.h (find_frame_funname): Remove "const" from
6594 'funname' parameter.
6595
6596 2013-05-22 Tom Tromey <tromey@redhat.com>
6597
6598 PR c++/15401:
6599 * c-valprint.c (c_value_print): Use value_addr for
6600 references. Convert back to reference type with value_ref.
6601
6602 2013-05-22 Eli Zaretskii <eliz@gnu.org>
6603
6604 * windows-nat.c (handle_unload_dll): Don't call solib_add for the
6605 unloaded DLL, it will be done by handle_solib_event. See
6606 http://sourceware.org/ml/gdb-patches/2013-05/msg00713.html for the
6607 details.
6608
6609 2013-05-22 Phil Muldoon <pmuldoon@redhat.com>
6610
6611 * ui-out.c: Create typedef ui_out_level_p and define vector
6612 operations for that type.
6613 (struct ui_out): Use a vector instead of an array.
6614 (current_level): Return level from a vector.
6615 (push_level): Create a level in a vector.
6616 (pop_level): Delete a level in a vector.
6617 (ui_out_new): Create initial level zero level, and store in a
6618 vector.
6619 (ui_out_destroy): Add vector cleanup.
6620
6621 2013-05-22 Pedro Alves <palves@redhat.com>
6622
6623 * python/python-internal.h (gdb_Py_DECREF): Tag with
6624 "ARI: editCase function".
6625
6626 2013-05-21 Paul Pluzhnikov <ppluzhnikov@google.com>
6627
6628 * solib-svr4.c (svr4_free_so): Protect against NULL dereference.
6629
6630 2013-05-21 Pedro Alves <palves@redhat.com>
6631
6632 * python/py-prettyprint.c (apply_val_pretty_printer): Check
6633 whether PRINTER is NULL before installing a Py_DECREF cleanup.
6634 * python/py-utils.c (py_decref): Don't check for NULL before
6635 calling Py_DECREF.
6636
6637 2013-05-21 Pedro Alves <palves@redhat.com>
6638
6639 * python/py-utils.c (py_decref): Remove extra braces.
6640 (gdb_pymodule_addobject): Remove extra braces.
6641 * python-internal.h (gdb_Py_DECREF): New static inline function.
6642 (Py_DECREF): Redefine as calling gdb_Py_DECREF.
6643
6644 2013-05-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6645
6646 * breakpoints.c (detach_breakpoints): Do not
6647 detach breakpoints locations with loc_type bp_loc_other.
6648
6649 2013-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6650
6651 Workaround Python 2.6.
6652 * python/py-utils.c (gdb_pymodule_addobject): Wrap Py_DECREF into
6653 a block.
6654
6655 2013-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6656
6657 Code cleanup: constification.
6658 * solib.c (solib_ops): Make return type and ops variable type const.
6659 (set_solib_ops): Make the new_ops parameter and ops variable const.
6660 (solib_find, solib_map_sections, clear_so, free_so, update_solib_list)
6661 (solib_add, solib_keep_data_in_core, clear_solib)
6662 (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
6663 (reload_shared_libraries, solib_global_lookup): Make the ops variable
6664 const.
6665 * solib.h (set_solib_ops): Make the new_ops parameter const.
6666
6667 2013-05-21 Joel Brobecker <brobecker@adacore.com>
6668
6669 * data-directory/Makefile.in (SYSTEM_GDBINIT_SRCDIR): New
6670 variable.
6671 (VPATH): Add SYSTEM_GDBINIT_SRCDIR.
6672 (SYSTEM_GDBINIT_DIR, SYSTEM_GDBINIT_INSTALL_DIR)
6673 (SYSTEM_GDBINIT_FILES): New variables.
6674 (all): Add stamp-system-gdbinit.
6675 (stamp-system-gdbinit): New rule.
6676 (clean-system-gdbinit, install-system-gdbinit)
6677 (uninstall-system-gdbinit): New rules. Make them .PHONY.
6678 (install-only): Add dependency on install-system-gdbinit.
6679 (uninstall): Add dependency on uninstall-system-gdbinit.
6680 (clean): Add dependency on clean-system-gdbinit.
6681 * system-gdbinit/elinos.py: New file.
6682 * system-gdbinit/wrs-linux.py: New file.
6683
6684 2013-05-21 Joel Brobecker <brobecker@adacore.com>
6685
6686 * ada-lang.c (old_renaming_is_invisible): Fix cleanup leak.
6687
6688 2013-05-21 Hui Zhu <hui@codesourcery.com>
6689
6690 * breakpoint.c (dprintf_breakpoint_ops): Remove its static.
6691 * breakpoint.h (dprintf_breakpoint_ops): Add extern.
6692 * mi/mi-cmd-break.c (ctype.h): New include.
6693 (gdb_obstack.h): New include.
6694 (mi_argv_to_format, mi_cmd_break_insert_1): New.
6695 (mi_cmd_break_insert): Call mi_cmd_break_insert_1.
6696 (mi_cmd_dprintf_insert): New.
6697 * mi/mi-cmds.c (mi_cmds): Add "dprintf-insert".
6698 * mi/mi-cmds.h (mi_cmd_dprintf_insert): New extern.
6699
6700 2013-05-20 Tom Tromey <tromey@redhat.com>
6701
6702 * python/py-prettyprint.c (search_pp_list): Decref 'attr'.
6703
6704 2013-05-20 Tom Tromey <tromey@redhat.com>
6705
6706 * python/py-value.c (valpy_get_dynamic_type): Simplify
6707 dynamic_type assignment. Use Py_XINCREF.
6708
6709 2013-05-20 Tom Tromey <tromey@redhat.com>
6710
6711 * python/py-type.c (typy_fields): Unconditionally decref 'r'.
6712
6713 2013-05-20 Tom Tromey <tromey@redhat.com>
6714
6715 * python/py-frame.c (frapy_older, frapy_newer, gdbpy_newest_frame)
6716 (gdbpy_selected_frame): Move object-construction code
6717 out of TRY_CATCH.
6718
6719 2013-05-20 Tom Tromey <tromey@redhat.com>
6720
6721 * python/py-arch.c (gdbpy_initialize_arch): Use
6722 gdb_pymodule_addobject.
6723 * python/py-block.c (gdbpy_initialize_blocks): Use
6724 gdb_pymodule_addobject.
6725 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Use
6726 gdb_pymodule_addobject.
6727 * python/py-cmd.c (gdbpy_initialize_breakpoints): Use
6728 gdb_pymodule_addobject.
6729 * python/py-event.c (gdbpy_initialize_event_generic): Use
6730 gdb_pymodule_addobject.
6731 * python/py-evtregistry.c (gdbpy_initialize_eventregistry): Use
6732 gdb_pymodule_addobject.
6733 * python/py-evts.c (add_new_registry): Use
6734 gdb_pymodule_addobject.
6735 (gdbpy_initialize_py_events): Likewise.
6736 * python/py-finishbreakpoint.c
6737 (gdbpy_initialize_finishbreakpoints): Use
6738 gdb_pymodule_addobject.
6739 * python/py-frame.c (gdbpy_initialize_frames): Use
6740 gdb_pymodule_addobject.
6741 * python/py-function.c (gdbpy_initialize_functions): Use
6742 gdb_pymodule_addobject.
6743 * python/py-inferior.c (gdbpy_initialize_inferior): Use
6744 gdb_pymodule_addobject.
6745 * python/py-infthread.c (gdbpy_initialize_thread): Use
6746 gdb_pymodule_addobject.
6747 * python/py-objfile.c (gdbpy_initialize_objfile): Use
6748 gdb_pymodule_addobject.
6749 * python/py-param.c (gdbpy_initialize_parameters): Use
6750 gdb_pymodule_addobject.
6751 * python/py-progspace.c (gdbpy_initialize_pspace): Use
6752 gdb_pymodule_addobject.
6753 * python/py-symbol.c (gdbpy_initialize_symbols): Use
6754 gdb_pymodule_addobject.
6755 * python/py-symtab.c (gdbpy_initialize_symtabs): Use
6756 gdb_pymodule_addobject.
6757 * python/py-type.c (gdbpy_initialize_types): Use
6758 gdb_pymodule_addobject.
6759 * python/py-utils.c (gdb_pymodule_addobject): New function.
6760 * python/py-value.c (gdbpy_initialize_values): Use
6761 gdb_pymodule_addobject.
6762 * python/python-internal.h (gdb_pymodule_addobject): Declare.
6763 * python/python.c (_initialize_python): Use
6764 gdb_pymodule_addobject.
6765
6766 2013-05-20 Tom Tromey <tromey@redhat.com>
6767
6768 * python/py-cmd.c (cmdpy_completer): Use explicit decref.
6769 * python/py-param.c (get_set_value, get_show_value): Use
6770 explicit decrefs.
6771 * python/python.c (start_type_printers, apply_type_printers):
6772 Use explicit decrefs.
6773
6774 2013-05-20 Tom Tromey <tromey@redhat.com>
6775
6776 * python/py-evts.c (gdbpy_initialize_py_events): Don't
6777 incref the module.
6778
6779 2013-05-20 Tom Tromey <tromey@redhat.com>
6780
6781 * python/python.c (gdbpy_run_events): Decref the result
6782 of PyObject_CallObject.
6783
6784 2013-05-20 Tom Tromey <tromey@redhat.com>
6785
6786 * python/py-symtab.c (set_sal): Use
6787 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION. Return -1 on error.
6788 (symtab_and_line_to_sal_object): Update.
6789
6790 2013-05-20 Tom Tromey <tromey@redhat.com>
6791
6792 * python/py-param.c (compute_enum_values): Decref 'item'.
6793
6794 2013-05-20 Tom Tromey <tromey@redhat.com>
6795
6796 * mi/mi-main.c: Include python-internal.h.
6797 (mi_cmd_list_features): Check gdb_python_initialized.
6798 * python/py-inferior.c (python_on_normal_stop, python_on_resume)
6799 (python_inferior_exit, python_new_objfile, add_thread_object)
6800 (delete_thread_object, py_free_inferior): Check
6801 gdb_python_initialized.
6802 * python/py-prettyprint.c (apply_val_pretty_printer): Check
6803 gdb_python_initialized.
6804 * python/py-type.c (save_objfile_types): Check
6805 gdb_python_initialized.
6806 * python/python-internal.h (gdb_python_initialized): Declare.
6807 * python/python.c (ensure_python_env): Throw exception if
6808 Python not initialized.
6809 (before_prompt_hook, source_python_script_for_objfile)
6810 (start_type_printers, apply_type_printers,
6811 free_type_printers): Check gdb_python_initialized.
6812 * varobj.c (varobj_get_display_hint)
6813 (dynamic_varobj_has_child_method, update_dynamic_varobj_children)
6814 (install_new_value_visualizer, varobj_set_visualizer)
6815 (value_get_print_value): Check gdb_python_initialized.
6816
6817 2013-05-20 Tom Tromey <tromey@redhat.com>
6818
6819 * python/py-arch.c (gdbpy_initialize_arch): Return 'int'.
6820 Check errors.
6821 * python/py-auto-load.c (gdbpy_initialize_auto_load): Return 'int'.
6822 * python/py-block.c (gdbpy_initialize_blocks): Return 'int'.
6823 Check errors.
6824 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Return 'int'.
6825 Check errors.
6826 * python/py-cmd.c (gdbpy_initialize_commands): Return 'int'.
6827 Check errors.
6828 * python/py-event.c (gdbpy_initialize_event): Return 'int'.
6829 Check errors.
6830 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Change generated
6831 init function to return 'int'.
6832 * python/py-evtregistry.c (gdbpy_initialize_eventregistry):
6833 Return 'int'. Check errors.
6834 * python/py-evts.c (gdbpy_initialize_py_events): Return 'int'.
6835 Check errors.
6836 * python/py-finishbreakpoint.c (gdbpy_initialize_finishbreakpoints):
6837 Return 'int'. Check errors.
6838 * python/py-frame.c (gdbpy_initialize_frames): Return 'int'.
6839 Check errors.
6840 * python/py-function.c (gdbpy_initialize_functions): Return 'int'.
6841 Check errors.
6842 * python/py-gdb-readline.c (gdbpy_initialize_gdb_readline):
6843 Check errors.
6844 * python/py-inferior.c (gdbpy_initialize_inferior): Return 'int'.
6845 Check errors.
6846 * python/py-infthread.c (gdbpy_initialize_thread): Return 'int'.
6847 Check errors.
6848 * python/py-lazy-string.c (gdbpy_initialize_lazy_string): Return 'int'.
6849 Check errors.
6850 * python/py-objfile.c (gdbpy_initialize_objfile): Return 'int'.
6851 Check errors.
6852 * python/py-param.c (gdbpy_initialize_parameters): Return 'int'.
6853 Check errors.
6854 * python/py-progspace.c (gdbpy_initialize_pspace): Return 'int'.
6855 Check errors.
6856 * python/py-symbol.c (gdbpy_initialize_symbols): Return 'int'.
6857 Check errors.
6858 * python/py-symtab.c (gdbpy_initialize_symtabs): Return 'int'.
6859 Check errors.
6860 * python/py-type.c (gdbpy_initialize_types): Return 'int'.
6861 Check errors.
6862 * python/py-value.c (gdbpy_initialize_values): Return 'int'.
6863 Check errors.
6864 * python/python-internal.h (gdbpy_initialize_auto_load,
6865 gdbpy_initialize_values, gdbpy_initialize_frames,
6866 gdbpy_initialize_symtabs, gdbpy_initialize_commands,
6867 gdbpy_initialize_symbols, gdbpy_initialize_symtabs,
6868 gdbpy_initialize_blocks, gdbpy_initialize_types,
6869 gdbpy_initialize_functions, gdbpy_initialize_pspace,
6870 gdbpy_initialize_objfile, gdbpy_initialize_breakpoints,
6871 gdbpy_initialize_finishbreakpoints,
6872 gdbpy_initialize_lazy_string, gdbpy_initialize_parameters,
6873 gdbpy_initialize_thread, gdbpy_initialize_inferior,
6874 gdbpy_initialize_eventregistry, gdbpy_initialize_event,
6875 gdbpy_initialize_py_events, gdbpy_initialize_stop_event,
6876 gdbpy_initialize_signal_event,
6877 gdbpy_initialize_breakpoint_event,
6878 gdbpy_initialize_continue_event,
6879 gdbpy_initialize_exited_event, gdbpy_initialize_thread_event,
6880 gdbpy_initialize_new_objfile_event, gdbpy_initialize_arch):
6881 Update. Use CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
6882 * python/python.c (gdb_python_initialized): New global.
6883 (gdbpy_initialize_events): Return 'int'. Check errors.
6884 (_initialize_python): Check errors. Set
6885 gdb_python_initialized.
6886
6887 2013-05-20 Tom Tromey <tromey@redhat.com>
6888
6889 * python/py-finishbreakpoint.c (bpfinishpy_out_of_scope):
6890 Decref the reslut of PyObject_CallMethod.
6891
6892 2013-05-20 Tom Tromey <tromey@redhat.com>
6893
6894 * python/py-event.c (gdbpy_initialize_event_generic): Return
6895 early if PyType_Ready fails.
6896
6897 2013-05-20 Tom Tromey <tromey@redhat.com>
6898
6899 * python/py-type.c (make_fielditem): Add gdb_assert_not_reached
6900 as 'default' in the switch.
6901
6902 2013-05-20 Tom Tromey <tromey@redhat.com>
6903
6904 * python/py-inferior.c (gdbpy_inferiors): Update. Hoist
6905 get_addr_from_python calls out of TRY_CATCH.
6906 (infpy_write_memory, infpy_search_memory): Likewise.
6907 * python/py-utils.c (get_addr_from_python): Return negative
6908 value on error. Use TRY_CATCH.
6909 * python/python-internal.h (get_addr_from_python): Use
6910 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
6911
6912 2013-05-20 Tom Tromey <tromey@redhat.com>
6913
6914 * python/py-event.c (evpy_emit_event): Decref the
6915 result of PyObject_CallFunctionObjArgs.
6916
6917 2013-05-20 Tom Tromey <tromey@redhat.com>
6918
6919 * python/py-cmd.c (cmdpy_completer): Use iterator protocol.
6920 Correctly decref.
6921
6922 2013-05-20 Tom Tromey <tromey@redhat.com>
6923
6924 * python/py-cmd.c (cmdpy_init): Decref 'ds_obj'.
6925
6926 2013-05-20 Tom Tromey <tromey@redhat.com>
6927
6928 * python/py-event.h (gdbpy_initialize_event_generic): Use
6929 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
6930 * python/py-evts.c (add_new_registry): Use
6931 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
6932 * python/python-internal.h
6933 (CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION): New macro.
6934
6935 2013-05-20 Tom Tromey <tromey@redhat.com>
6936
6937 * python/py-arch.c (archpy_disassemble): Update.
6938 * python/py-type.c (typy_get_composite, typy_lookup_typename)
6939 (typy_lookup_type): Use GDB_PY_HANDLE_EXCEPTION.
6940 * python/py-utils.c (gdbpy_convert_exception): Return 'void'.
6941 * python/python-internal.h (CPYCHECKER_SETS_EXCEPTION): New
6942 macro.
6943 (GDB_PY_HANDLE_EXCEPTION): Update.
6944 (gdbpy_convert_exception): Update. Use CPYCHECKER_SETS_EXCEPTION.
6945
6946 2013-05-20 Tom Tromey <tromey@redhat.com>
6947
6948 * python/python-internal.h (events_object_type): Remove.
6949
6950 2013-05-20 Tom Tromey <tromey@redhat.com>
6951
6952 * python/py-event.h (evpy_emit_event): Use
6953 CPYCHECKER_STEALS_REFERENCE_TO_ARG.
6954 * python/python-internal.h (CPYCHECKER_STEALS_REFERENCE_TO_ARG):
6955 New macro.
6956
6957 2013-05-20 Tom Tromey <tromey@redhat.com>
6958
6959 * py-evtregistry.c (create_event_object): Decref
6960 eventregistry_object if PyList_New fails.
6961
6962 2013-05-20 Tom Tromey <tromey@redhat.com>
6963
6964 * py-cmd.c (gdbpy_string_to_argv): Check result of
6965 PyList_New.
6966
6967 2013-05-20 Tom Tromey <tromey@redhat.com>
6968
6969 * python/python.c (before_prompt_hook): Add cleanup to
6970 decref 'hook'.
6971
6972 2013-05-20 Tom Tromey <tromey@redhat.com>
6973
6974 * python/py-function.c (fnpy_init): Decref result of
6975 PyObject_GetAttrString.
6976
6977 2013-05-20 Tom Tromey <tromey@redhat.com>
6978
6979 * python/py-threadevent.c (get_event_thread): Use
6980 CPYCHECKER_RETURNS_BORROWED_REF.
6981 * python/python-internal.h (CPYCHECKER_RETURNS_BORROWED_REF):
6982 New define.
6983 (pspace_to_pspace_object, objfile_to_objfile_object)
6984 (find_thread_object): Use it.
6985
6986 2013-05-20 Tom Tromey <tromey@redhat.com>
6987
6988 * python/py-arch.c (arch_object_type): Use
6989 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6990 * python/py-block.c (block_syms_iterator_object_type):
6991 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6992 * python/py-bpevent.c (breakpoint_event_object_type):
6993 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6994 * python/py-cmd.c (cmdpy_object_type): Use
6995 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6996 * python/py-continueevent.c (continue_event_object_type):
6997 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6998 * python/py-event.h (GDBPY_NEW_EVENT_TYPE):
6999 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7000 * python/py-events.h (thread_event_object_type):
7001 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7002 * python/py-evtregistry.c (eventregistry_object_type): Use
7003 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7004 * python/py-exitedevent.c (exited_event_object_type):
7005 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7006 * python/py-finishbreakpoint.c (finish_breakpoint_object_type):
7007 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7008 * python/py-function.c (fnpy_object_type): Use
7009 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7010 * python/py-inferior.c (inferior_object_type, membuf_object_type):
7011 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7012 * python/py-infthread.c (thread_object_type): Use
7013 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7014 * python/py-lazy-string.c (lazy_string_object_type):
7015 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7016 * python/py-newobjfileevent.c (new_objfile_event_object_type):
7017 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7018 * python/py-objfile.c (objfile_object_type): Use
7019 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7020 * python/py-param.c (parmpy_object_type):
7021 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7022 * python/py-progspace.c (pspace_object_type):
7023 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7024 * python/py-signalevent.c (signal_event_object_type):
7025 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7026 * python/py-symtab.c (symtab_object_type, sal_object_type): Use
7027 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7028 * python/py-type.c (type_object_type, field_object_type)
7029 (type_iterator_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7030 * python/py-internal.h (CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF): New
7031 define.
7032 (value_object_type, block_object_type, symbol_object_type)
7033 (event_object_type, stop_event_object_type, breakpoint_object_type)
7034 (frame_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7035
7036 2013-05-20 Andreas Tobler <andreas@fgznet.ch>
7037
7038 * Makefile.in (ALL_TARGET_OBS): Add ppcfbsd-tdep.o.
7039 (ALLDEPFILES): Add ppcfbsd-nat.c and ppcfbsd-tdep.c.
7040
7041 2013-05-20 Doug Evans <dje@google.com>
7042
7043 When reading CU, stay in DWO. Be more tolerent of bad debug info.
7044 For Fission.
7045 * dwarf2read.c (struct dwarf2_per_cu_data): New member
7046 reading_dwo_directly.
7047 (struct signatured_type): New member dwo_unit.
7048 (struct die_reader_specs): New member comp_dir.
7049 (create_signatured_type_table_from_index): Use malloc for
7050 all_type_units instead of objfile's obstack.
7051 (create_all_type_units): Ditto.
7052 (fill_in_sig_entry_from_dwo_entry): New function.
7053 (add_type_unit): New function.
7054 (lookup_dwo_signatured_type): New function.
7055 (lookup_dwp_signatured_type): New function.
7056 (lookup_signatured_type): New arg cu. All callers updated.
7057 (init_cu_die_reader): Initialize comp_dir.
7058 (read_cutu_die_from_dwo): New arg stub_comp_dir. All callers updated.
7059 Change assert of matching type signatures to call error on mismatch.
7060 (lookup_dwo_unit): Add assert.
7061 (init_tu_and_read_dwo_dies): New function.
7062 (init_cutu_and_read_dies): Call it.
7063 (build_type_unit_groups): Handle case of no type unit groups created.
7064 (hash_dwo_file, eq_dwo_file): Handle missing comp_dir.
7065 (lookup_dwo_cutu): Tweak complaint.
7066 (dwarf2_free_abbrev_table): Check for NULL abbrev_table.
7067 (dwarf2_per_objfile_free): Free all_type_units.
7068
7069 2013-05-20 Joel Brobecker <brobecker@adacore.com>
7070
7071 * windows-nat.c (handle_unload_dll): Add missing empty line.
7072
7073 2013-05-20 Joel Brobecker <brobecker@adacore.com>
7074
7075 * dwarf2read.c (prototyped_function_p): New function.
7076 (read_subroutine_type): Use it.
7077
7078 2013-05-20 Joel Brobecker <brobecker@adacore.com>
7079
7080 * rs6000-aix-tdep.c: De-indent some example code provided
7081 as a comment.
7082
7083 2013-05-17 Edjunior Machado <emachado@linux.vnet.ibm.com>
7084
7085 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Check if the
7086 region is ok for a hardware watchpoint using the new ptrace interface
7087 on Power servers.
7088
7089 2013-05-17 Doug Evans <dje@google.com>
7090
7091 * NEWS: Mention new maintenance commands check-symtabs, and
7092 expand-symtabs, and renamed check-psymtabs.
7093 * psymtab.c (maintenance_check_psymtabs): Renamed from
7094 maintenance_check_symtabs. Only process already-expanded symbol
7095 tables.
7096 (_initialize_psymtab): Update.
7097 * symmisc.c (maintenance_check_symtabs): New function.
7098 (maintenance_expand_name_matcher): New function
7099 (maintenance_expand_file_matcher): New function
7100 (maintenance_expand_symtabs): New function.
7101 (_initialize_symmisc): Add "mt check-symtabs" and "mt expand-symtabs"
7102 commands.
7103
7104 2013-05-17 Tom Tromey <tromey@redhat.com>
7105
7106 * python/py-inferior.c (infpy_read_memory): Don't call
7107 PyErr_SetString if PyObject_New fails.
7108 * python/py-frame.c (frame_info_to_frame_object): Don't call
7109 PyErr_SetString if PyObject_New fails.
7110
7111 2013-05-17 Pavel Chupin <pavel.v.chupin@intel.com>
7112
7113 * acinclude.m4: Add check for dlopen in libdl.
7114 * configure.ac: Ditto.
7115 * configure: Regenerate.
7116
7117 2013-05-17 Phil Muldoon <pmuldoon@redhat.com>
7118
7119 * frame.c (frame_stash): Convert to htab.
7120 (frame_addr_hash): New function.
7121 (frame_addr_hash_eq): New function.
7122 (frame_stash_create): Convert function to create
7123 a hash table.
7124 (frame_stash_add): Convert function to add an entry to a hash
7125 table.
7126 (frame_stash_find): Convert function to search the hash table.
7127 (frame_stash_invalidate): Convert function to empty the hash
7128 table.
7129 (get_frame_id): Only add to stash if a frame_id is created.
7130 (_initialize_frame): Call frame_stash_create.
7131
7132 2013-05-16 Yue Lu <hacklu.newborn@gmail.com> (tiny change)
7133
7134 * configure.ac: Ensure MIG is available when building for GNU Hurd
7135 hosts.
7136 * configure: Regenerate.
7137
7138 2013-05-16 Joel Brobecker <brobecker@adacore.com>
7139
7140 * dwarf2read.c (set_cu_language): Add DW_LANG_UPC handling.
7141
7142 2013-05-16 Joel Brobecker <brobecker@adacore.com>
7143
7144 * ada-lang.c (ada_make_symbol_completion_list): Make sure
7145 all cleanups are done before returning from this function.
7146
7147 2013-05-15 Joel Brobecker <brobecker@adacore.com>
7148
7149 * utils.h: #include "exceptions.h".
7150 (enum errors): Remove partial declaration.
7151
7152 2013-05-15 Joel Brobecker <brobecker@adacore.com>
7153
7154 * gdbarch.sh (core_xfer_shared_libraries_aix): New method.
7155 * gdbarch.h, gdbarch.c: Regenerate.
7156 * corelow.c (core_xfer_partial): Add TARGET_OBJECT_LIBRARIES_AIX
7157 handling.
7158
7159 * rs6000-aix-tdep.h: New file.
7160 * Makefile.in (HFILES_NO_SRCDIR): Add rs6000-aix-tdep.h.
7161 * rs6000-aix-tdep.c: Include "rs6000-aix-tdep.h" and
7162 "xml-utils.h".
7163 (struct field_info, struct ld_info_desc): New types.
7164 (ld_info32_desc, ld_info64_desc): New static constants.
7165 (struct ld_info): New type.
7166 (rs6000_aix_extract_ld_info): New function.
7167 (rs6000_aix_shared_library_to_xml): Likewise.
7168 (rs6000_aix_ld_info_to_xml): Likewise.
7169 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
7170 (rs6000_aix_init_osabi): Add call to
7171 set_gdbarch_core_xfer_shared_libraries_aix.
7172 * rs6000-nat.c: Add "rs6000-aix-tdep.h" include.
7173 Remove "xml-utils.h" include.
7174 (LdInfo): Delete typedef.
7175 (ARCH64_DECL, LDI_FIELD, LDI_NEXT, LDI_FD, LDI_FILENAME):
7176 Delete macros.
7177 (rs6000_ptrace_ldinfo): Change return type to gdb_byte *.
7178 Adjust code accordingly.
7179 (rs6000_core_ldinfo): Delete, folded into
7180 rs6000_aix_core_xfer_shared_libraries_aix.
7181 (rs6000_xfer_shared_library): Delete.
7182 (rs6000_xfer_shared_libraries): Reimplement.
7183
7184 2013-05-15 Markus Metzger <markus.t.metzger@intel.com>
7185
7186 * record.c (record_goto_cmdlist): New.
7187 (cmd_record_goto): Split into this ...
7188 (cmd_record_goto_begin): ... this
7189 (cmd_record_goto_end): ... and this.
7190 (_initialize_record): Change "record goto" to prefix command.
7191 Add commands for "record goto begin" and "record goto end".
7192 Add an alias for "record goto start" to "record goto begin".
7193
7194 2013-05-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7195
7196 * linespec.c (convert_linespec_to_sals): New comment for
7197 SOURCE_FILENAME assignment.
7198
7199 2013-05-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7200
7201 * cleanups.c (restore_my_cleanups): Replace gdb_assert by
7202 internal_warning.
7203
7204 2013-05-14 Tom Tromey <tromey@redhat.com>
7205
7206 * eval.c (parse_and_eval_long): Make 'exp' const.
7207 * value.h (parse_and_eval_long): Update.
7208
7209 2013-05-14 Tom Tromey <tromey@redhat.com>
7210
7211 * ui-file.c (gdb_fopen): Make arguments const.
7212 * ui-file.h (gdb_fopen): Make arguments const.
7213
7214 2013-05-14 Tom Tromey <tromey@redhat.com>
7215
7216 * remote.c (remote_set_trace_notes): Make arguments const.
7217 * target.c (update_current_target): Update cast.
7218 * target.h (to_set_trace_notes): Make arguments const.
7219
7220 2013-05-14 Tom Tromey <tromey@redhat.com>
7221
7222 * go32-nat.c (go32_terminal_info): Make 'args' const.
7223 * inferior.h (child_terminal_info): Update.
7224 * inflow.c (child_terminal_info): Make 'args' const.
7225 * target.c (default_terminal_info): Make 'args' const.
7226 (debug_to_terminal_save_ours): Likewise.
7227 * target.h (struct target_ops) <to_terminal_info>: Make argument
7228 const.
7229
7230 2013-05-13 Tom Tromey <tromey@redhat.com>
7231
7232 * gcore.c (create_gcore_bfd): Make 'filename' const.
7233 * gcore.h (create_gcore_bfd): Make 'filename' const.
7234 * record-full.c (record_full_save): Make 'recfilename' const.
7235 * target.c (target_save_record): Make 'filename' const.
7236 * target.h (struct target_ops) <to_save_record>: Make 'filename'
7237 const.
7238 (target_save_record): Likewise.
7239
7240 2013-05-13 Tom Tromey <tromey@redhat.com>
7241
7242 PR gdb/15338:
7243 * dwarf2read.c (dwarf2_record_block_ranges): Ensure that the
7244 ranges section has been read.
7245
7246 2013-05-13 Tom Tromey <tromey@redhat.com>
7247
7248 PR exp/15364:
7249 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
7250 STRUCTOP_PTR>: Return a not_lval value for
7251 EVAL_AVOID_SIDE_EFFECTS.
7252 * opencl-lang.c (evaluate_subexp_opencl): Return a not_lval value
7253 for EVAL_AVOID_SIDE_EFFECTS.
7254
7255 2013-05-13 Joel Brobecker <brobecker@adacore.com>
7256
7257 * rs6000-aix-tdep.c (rs6000_push_dummy_call): Convert
7258 floating point registers to register type before storing
7259 value.
7260 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call):
7261 Likewise.
7262
7263 2013-05-10 Joel Brobecker <brobecker@adacore.com>
7264 Tom Tromey <tromey@redhat.com>
7265
7266 * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
7267 New functions.
7268 * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
7269 Declare.
7270 * darwin-nat.c (darwin_pre_ptrace): Use mark_fd_no_cloexec.
7271 (darwin_ptrace_him): Use unmark_fd_no_cloexec.
7272 * inf-ttrace.c (do_cleanup_pfds): Use unmark_fd_no_cloexec.
7273 (inf_ttrace_prepare): Use mark_fd_no_cloexec.
7274
7275 2013-05-10 Freddie Chopin <freddie_chopin@op.pl>
7276 Tom Tromey <tromey@redhat.com>
7277
7278 PR build/15414:
7279 * configure: Rebuild.
7280 * configure.ac (build_warnings): Do not use -Wformat-nonliteral
7281 with -Wno-format.
7282
7283 2013-05-10 Pedro Alves <palves@redhat.com>
7284
7285 * remote.c (_initialize_remote): Fix spelling of
7286 qXfer:traceframe-info:read packet in packet config command.
7287
7288 2013-05-10 David Taylor <dtaylor@emc.com>
7289
7290 PR remote/15455
7291
7292 * remote.c (remote_trace_set_readonly_regions): Do not overwrite
7293 "QTro" at start of packet.
7294
7295 2013-05-10 Joel Brobecker <brobecker@adacore.com>
7296
7297 * solib-aix.c (solib_aix_relocate_section_addresses):
7298 For the .bss section action, apply the same offset as
7299 the .data section.
7300
7301 2013-05-10 Joel Brobecker <brobecker@adacore.com>
7302
7303 * solib-aix.c (solib_aix_relocate_section_addresses):
7304 Remove FIXME comment.
7305
7306 2013-05-10 Joel Brobecker <brobecker@adacore.com>
7307
7308 PR tdep/15420:
7309 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
7310 New functions, directly copied from sparc-sol-thread.c.
7311 * sparc-sol-thread.c: Delete.
7312 * configure.ac: Remove code handling sparc-solaris-thread.c.
7313 * configure: Regenerate.
7314
7315 2013-05-10 Phil Muldoon <pmuldoon@redhat.com>
7316
7317 * stack.c (backtrace_command_1): Add "no-filters", and Python frame
7318 filter logic.
7319 (backtrace_command): Add "no-filters" option parsing.
7320 (_initialize_stack): Alter help to reflect "no-filters" option.
7321 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-framefilter.o
7322 (SUBDIR_PYTHON_SRCS): Add py-framefilter.c
7323 (py-frame.o): Add target
7324 * data-directory/Makefile.in (PYTHON_DIR): Add Python frame
7325 filter files.
7326 * python/python.h: Add new frame filter constants, and flag enum.
7327 (apply_frame_filter): Add definition.
7328 * python/python.c (apply_frame_filter): New non-Python
7329 enabled function.
7330 * python/py-utils.c (py_xdecref): New function.
7331 (make_cleanup_py_xdecref): Ditto.
7332 * python/py-objfile.c: Declare frame_filters dictionary.
7333 (objfpy_dealloc): Add frame_filters dealloc.
7334 (objfpy_new): Initialize frame_filters attribute.
7335 (objfile_to_objfile_object): Ditto.
7336 (objfpy_get_frame_filters): New function.
7337 (objfpy_set_frame_filters): New function.
7338 * python/py-progspace.c: Declare frame_filters dictionary.
7339 (pspy_dealloc): Add frame_filters dealloc.
7340 (pspy_new): Initialize frame_filters attribute.
7341 (pspacee_to_pspace_object): Ditto.
7342 (pspy_get_frame_filters): New function.
7343 (pspy_set_frame_filters): New function.
7344 * python/py-framefilter.c: New file.
7345 * python/lib/gdb/command/frame_filters.py: New file.
7346 * python/lib/gdb/frames.py: New file.
7347 * python/lib/gdb/__init__.py: Initialize global frame_filters
7348 dictionary
7349 * python/lib/gdb/FrameDecorator.py: New file.
7350 * python/lib/gdb/FrameIterator.py: New file.
7351 * mi/mi-cmds.c (mi_cmds): Add frame filters command.
7352 * mi/mi-cmds.h: Declare.
7353 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Add
7354 --no-frame-filter logic, and Python frame filter logic.
7355 (stack_enable_frame_filters): New function.
7356 (parse_no_frame_option): Ditto.
7357 (mi_cmd_stack_list_frames): Add --no-frame-filter and Python frame
7358 filter logic.
7359 (mi_cmd_stack_list_locals): Ditto.
7360 (mi_cmd_stack_list_args): Ditto.
7361 (mi_cmd_stack_list_variables): Ditto.
7362 * NEWS: Add frame filter note.
7363
7364 2013-05-09 Doug Evans <dje@google.com>
7365
7366 * symfile.c (syms_from_objfile_1): Delete args offsets, num_offsets.
7367 All callers updated.
7368 (syms_from_objfile): Ditto. Make static.
7369 (symbol_file_add_with_addrs): Renamed from
7370 symbol_file_add_with_addrs_or_offsets. Delete args offsets,
7371 num_offsets. All callers updated.
7372 * symfile.h (syms_from_objfile): Delete.
7373
7374 * symfile.c (decrement_reading_symtab): Add assert.
7375 (increment_reading_symtab): Ditto.
7376
7377 2013-05-09 Joel Brobecker <brobecker@adacore.com>
7378
7379 * source.c (forward_search_command): Replace call to getc
7380 by call to fgetc.
7381 (reverse_search_command): Likewise.
7382
7383 2013-05-08 Doug Evans <dje@google.com>
7384
7385 * psymtab.c (expand_symtabs_matching_via_partial): Fix file name
7386 matching test.
7387
7388 2013-05-08 Joel Brobecker <brobecker@adacore.com>
7389
7390 * sol-thread.c (info_cb): Factorize the code a little.
7391
7392 2013-05-08 Joel Brobecker <brobecker@adacore.com>
7393
7394 * sol-thread.c (info_cb): Rework the output of the "maintenance
7395 info sol-threads" command a bit.
7396
7397 2013-05-08 Joel Brobecker <brobecker@adacore.com>
7398
7399 * sol-thread.c (info_cb) [ti.ti_state == TD_THR_SLEEP]:
7400 Replace ti.ti_startfunc by ti.ti_pc.
7401
7402 2013-05-08 Joel Brobecker <brobecker@adacore.com>
7403
7404 * solib-aix.c (solib_aix_free_library_list): New function
7405 for the case where HAVE_LIBEXPAT is not defined.
7406
7407 2013-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
7408
7409 PR breakpoints/15413:
7410 * breakpoint.c (condition_completer): Simplify the code to
7411 disconsider multiple locations of breakpoints when completing the
7412 "condition" command.
7413
7414 2013-05-07 Pierre Muller <muller@sourceware.org>
7415
7416 * common/linux-btrace.c: ARI fix: Include "gdb_wait.h"
7417 instead of <sys/wait.h>.
7418
7419 2013-05-07 Pierre Muller <muller@sourceware.org>
7420
7421 * nios2-tdep.c (nios2_dwarf_reg_to_regnum): ARI fix: remove
7422 trailing new line from warning message.
7423
7424 2013-05-07 Pierre Muller <muller@sourceware.org>
7425
7426 * contrib/ari/gdb_ari.sh (SOLIB_ADD, SOLIB_CREATE_INFERIOR_HOOK)
7427 (PC_SOLIB): Change type from ari_deprecate to ari_regression.
7428
7429 2013-05-07 Joel Brobecker <brobecker@adacore.com>
7430
7431 * rs6000-nat.c (rs6000_core_ldinfo): Remove '\n' at end of
7432 error message (ARI fix).
7433
7434 2013-05-07 Joel Brobecker <brobecker@adacore.com>
7435
7436 * features/library-list-aix.dtd: Replace library-list by
7437 library-list-aix.
7438 * rs6000-nat.c: Replace library-list by library-list-aix
7439 throughout.
7440 * solib-aix.c: Likewise.
7441
7442 2013-05-07 Joel Brobecker <brobecker@adacore.com>
7443
7444 * target.h (enum target_object) [TARGET_OBJECT_LIBRARIES_AIX]:
7445 Renames TARGET_OBJECT_AIX_LIBRARIES.
7446 * rs6000-nat.c: Replace TARGET_OBJECT_AIX_LIBRARIES with
7447 TARGET_OBJECT_LIBRARIES_AIX throughout.
7448 * solib-aix.c: Likwise.
7449
7450 2013-05-07 Yao Qi <yao@codesourcery.com>
7451
7452 * solib-dsbt.c (struct dsbt_info) <enable_break2_done>: Remove.
7453 (get_dsbt_info, enable_break, dsbt_clear_solib): Update.
7454
7455 2013-05-07 Yao Qi <yao@codesourcery.com>
7456
7457 * solib-dsbt.c (enable_break): Declare.
7458 (dsbt_current_sos): Remove call to enable_break2.
7459 (enable_break2): Rename to enable_break. Set solib breakpoint
7460 on '_dl_debug_state'.
7461 (enable_break): Remove.
7462
7463 2013-05-07 Luis Machado <lgustavo@codesourcery.com>
7464
7465 * ppc-linux-nat.c (ppc_linux_new_thread): Clear the new thread's
7466 debug state prior to replicating existing hardware watchpoints or
7467 breakpoints.
7468
7469 2013-05-07 Jan Kratochvil <jan.kratochvil@redhat.com>
7470
7471 * gcore.c (gcore_create_callback): Ignore sections with
7472 separate_debug_objfile_backlink != NULL.
7473
7474 2013-05-06 Sandra Loosemore <sandra@codesourcery.com>
7475 Andrew Jenner <andrew@codesourcery.com>
7476 Chung-Lin Tang <cltang@codesourcery.com>
7477 Julian Brown <julian@codesourcery.com>
7478
7479 Based on the nios2-elf port from Altera Corporation.
7480
7481 * Makefile.in (ALL_TARGET_OBS): Add nios2-tdep.o and
7482 nios2-linux-tdep.o.
7483 (HFILES_NO_SRCDIR): Add nios2-tdep.h.
7484 (ALLDEPFILES): Add nios2-tdep.c and nios2-linux-tdep.c.
7485 * configure.tgt: Add nios2*-*-linux* and nios2*-*-* targets.
7486 * nios2-tdep.h: New.
7487 * nios2-tdep.c: New.
7488 * nios2-linux-tdep.c: New.
7489 * features/Makefile (WHICH): Add nios2-linux.
7490 (nios2-linux-expedite): Set.
7491 * features/nios2-cpu.xml: New.
7492 * features/nios2.xml: New.
7493 * features/nios2-linux.xml: New.
7494 * features/nios2.c: New (autogenerated).
7495 * features/nios2-linux.c: New (autogenerated).
7496 * regformats/nios2-linux.dat: New (autogenerated).
7497 * NEWS (Changes since GDB 7.6): Add new Nios II targets
7498 and commands.
7499
7500 2013-05-06 Doug Evans <dje@google.com>
7501
7502 * symfile.c: Whitespace cleanup.
7503
7504 * solist.h (struct target_so_ops): New member clear_so.
7505 * solib-svr4.c (svr4_clear_so): New function.
7506 (_initialize_svr4_solib): Set svr4_so_ops.clear_so.
7507 * solib.c (clear_so): Renamed from free_so_symbols.
7508 All callers updated. Call target clear_so if it exists.
7509
7510 2013-05-06 Tom Tromey <tromey@redhat.com>
7511
7512 * ada-lang.c (ada_value_primitive_packed_val): Don't
7513 call value_incref.
7514 * value.c (set_value_parent): Incref the new parent and decref
7515 the old parent.
7516 (value_copy, value_primitive_field): Use set_value_parent.
7517
7518 2013-05-06 Tom Tromey <tromey@redhat.com>
7519
7520 * dwarf2loc.c (invalid_synthetic_pointer): Move earlier.
7521 (indirect_pieced_value): Call dwarf2_fetch_constant_bytes
7522 if needed.
7523 * dwarf2loc.h (dwarf2_fetch_constant_bytes): Declare.
7524 * dwarf2read.c (write_constant_as_bytes)
7525 (dwarf2_fetch_constant_bytes): New functions.
7526
7527 2013-05-06 Tom Tromey <tromey@redhat.com>
7528
7529 * dwarf2read.c (dwarf2_const_value_data): Remove unused
7530 parameters.
7531 (dwarf2_const_value_attr): Update.
7532
7533 2013-05-06 Tom Tromey <tromey@redhat.com>
7534
7535 * somread.c (som_symfile_offsets): Add 'const' to addrs.
7536 * machoread.c (macho_symfile_offsets): Add 'const' to addrs.
7537 * xcoffread.c (xcoff_symfile_offsets): Add 'const' to addrs.
7538 Remove declaration.
7539
7540 2013-05-06 Tom Tromey <tromey@redhat.com>
7541
7542 * dwarf2read.c (dwarf2_const_value_attr): Use 'obstack', not
7543 objfile's obstack.
7544
7545 2013-05-06 Doug Evans <dje@google.com>
7546
7547 * dbxread.c (process_one_symbol): Constify section_offsets parameter.
7548 * stabsread.h (process_one_symbol): Update declaration.
7549 * dwarf2read.c (dw2_relocate): Constify new_offsets, delta parameters.
7550 * elfread.c (elf_symfile_relocate_probe): Ditto.
7551 * psymtab.c (relocate_psymtabs): Ditto.
7552 * objfiles.c (objfile_relocate1): Constify new_offsets parameter.
7553 (objfile_relocate): Ditto.
7554 * objfiles.h (objfile_relocate): Update declaration.
7555 * symfile.c (relative_addr_info_to_section_offsets): Constify
7556 addrs parameter.
7557 (default_symfile_offsets): Ditto.
7558 (syms_from_objfile_1): Constify offsets parameter.
7559 (syms_from_objfile): Ditto.
7560 (symbol_file_add_with_addrs_or_offsets): Ditto.
7561 (symfile_map_offsets_to_segments): Constify data parameter.
7562 * symfile.h (struct quick_symbol_functions): Constify new_offsets,
7563 delta parameters of member relocate.
7564 (struct sym_probe_fns): Constify new_offsets,
7565 delta parameters of member sym_relocate_probe.
7566 (struct sym_fns): Constify section_addr_info parameter of member
7567 sym_offsets.
7568 (relative_addr_info_to_section_offsets): Update declaration.
7569 (default_symfile_offsets): Ditto.
7570 (syms_from_objfile): Ditto.
7571 (symfile_map_offsets_to_segments): Ditto.
7572
7573 * symfile.c (syms_from_objfile_1): Use correct section count when
7574 objfile->sf == NULL.
7575
7576 2013-05-06 Mike Frysinger <vapier@gentoo.org>
7577
7578 * common/linux-btrace.c (intel_supports_btrace): Fix indentation.
7579
7580 2013-05-06 Doug Evans <dje@google.com>
7581
7582 * psympriv.h (struct partial_symtab): Augment comment for member
7583 section_offsets.
7584
7585 2013-05-06 Joel Brobecker <brobecker@adacore.com>
7586
7587 Reimplement shared library support on ppc-aix...
7588 * target.h (TARGET_OBJECT_AIX_LIBRARIES): New target_object enum.
7589 * features/library-list-aix.dtd: New file.
7590 * solib-aix.h, solib-aix.c: New file.
7591 * rs6000-aix-tdep.c: #include "solib.h" and "solib-aix.h".
7592 (rs6000_find_toc_address_hook): Delete.
7593 (rs6000_push_dummy_call): Rewrite code setting the TOC value.
7594 (rs6000_aix_init_osabi): Register solib_aix_so_ops.
7595 * rs6000-nat.c: Remove "xcoffsolib.h" include. Include
7596 "xml-utils.h".
7597 (map_vmap, vmap_exec, vmap_ldinfo, add_vmap, objfile_symbol_add)
7598 (vmap_symtab, fixup_breakpoints): Delete.
7599 (rs6000_xfer_shared_libraries): New function.
7600 (rs6000_xfer_partial): Add TARGET_OBJECT_AIX_LIBRARIES handling.
7601 (vmap_secs, bss_data_overlap, vmap_add_symbols): Delete.
7602 (xcoff_relocate_symtab, xcoff_relocate_core): Delete.
7603 (rs6000_ptrace_ldinfo, rs6000_core_ldinfo)
7604 (rs6000_xfer_shared_library): New function.
7605 (find_toc_address): Delete.
7606 (_initialize_rs6000_nat): Do not set rs6000_find_toc_address_hook.
7607 * rs6000-tdep.h (rs6000_find_toc_address_hook): Remove.
7608 * xcoffread.c (record_minimal_symbol): Reloate symbol address
7609 before creating minimal symbol. Adjust function description
7610 accordingly.
7611 (scan_xcoff_symtab): Replace call to
7612 prim_record_minimal_symbol_and_info by call to
7613 record_minimal_symbol.
7614 (xcoff_symfile_offsets): Reimplement mostly as a wrapper
7615 around default_symfile_offsets.
7616 * configure.tgt: Add solib-aix.o to gdb_target_obs for
7617 powerpc-aix targets.
7618 * config/rs6000/nm-rs6000.h: Delete.
7619 * config/powerpc/aix.mh (NAT_FILE): Delete.
7620 (NATDEPFILES): Remove xcoffsolib.o.
7621 * Makefile.in (XMLFILES): Add library-list-aix.dtd.
7622 (ALL_TARGET_OBS): Add solib-aix.o.
7623 (HFILES_NO_SRCDIR): Remove xcoffsolib.h and
7624 config/rs6000/nm-rs6000.h. Add solib-aix.h.
7625 (ALLDEPFILES): Add solib-aix.c. Remove xcoffsolib.c.
7626 * xcoffsolib.h, xcoffsolib.c: Delete.
7627
7628 * solib.c (reload_shared_libraries): Remove reference to
7629 SOLIB_CREATE_INFERIOR_HOOK.
7630 * breakpoint.c (handle_solib_event): Remove reference to SOLIB_ADD.
7631 (disable_breakpoints_in_shlibs): Remove reference to PC_SOLIB.
7632 (momentary_bkpt_re_set): Replace SOLIB_ADD by solib_add in
7633 comment.
7634 * corelow.c (deprecated_core_resize_section_table): Delete.
7635 * exec.c: Remove include of xcoffsolib.h".
7636 (map_vmap, vmap): Delete.
7637 (exec_close_1): Remove references to vmap.
7638 (exec_file_attach): Remove vmap handling code, and reference
7639 to DEPRECATED_IBM6000_TARGET.
7640 (bfdsec_to_vmap): Delete.
7641 (exec_files_info): Remove block of code handling VMAP.
7642 * infcmd.c (post_create_inferior): Remove reference to
7643 SOLIB_CREATE_INFERIOR_HOOK and SOLIB_ADD.
7644 * infrun.c (follow_exec): Remove reference to
7645 SOLIB_CREATE_INFERIOR_HOOK.
7646 * stack.c (print_frame): Remove reference to PC_SOLIB.
7647 * solib-dsbt.c (dsbt_current_sos): Adjust comment.
7648 (dsbt_relocate_main_executable): Likewise.
7649 * solib-frv.c (frv_current_sos): Likewise.
7650
7651 2013-05-06 Joel Brobecker <brobecker@adacore.com>
7652
7653 * sol-thread.c (rw_common): Cast BUF to "gdb_byte *" in calls
7654 to target_write_memory and target_read_memory.
7655
7656 2013-05-06 Joel Brobecker <brobecker@adacore.com>
7657
7658 * darwin-nat.c (darwin_setup_fake_stop_event): New function.
7659 (darwin_attach): Adjust using darwin_setup_fake_stop_event.
7660
7661 2013-05-06 Joel Brobecker <brobecker@adacore.com>
7662
7663 * darwin-nat.c: Replace all "%x" instances in format strings
7664 into "0x%x" throughout.
7665
7666 2013-05-06 Joel Brobecker <brobecker@adacore.com>
7667
7668 * darwin-nat.c (darwin_mourn_inferior): Replace call to
7669 gdb_assert by call to MACH_CHECK_ERROR.
7670 (darwin_attach_pid): Raise an error rather than a failed
7671 assertion when various system calls failed. Report a warning
7672 instead of raising a failed assertion when PREV_NOT is not NULL
7673 after call to mach_port_request_notification.
7674 (darwin_ptrace_me): Raise an error rather than a failed
7675 assertion when read returns nonzero.
7676
7677 2013-05-06 Joel Brobecker <brobecker@adacore.com>
7678
7679 * amd64-darwin-tdep.c: Remove #include "gdb_assert.h".
7680
7681 2013-05-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7682
7683 * cleanups.c (restore_my_cleanups): New gdb_assert for SENTINEL_CLEANUP.
7684
7685 2013-05-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7686
7687 * event-top.c (display_gdb_prompt): Call missing do_cleanups.
7688 * infcmd.c (get_return_value) <!stop_regs>: Do not overwrite CLEANUP.
7689 * symfile.c (symfile_bfd_open): New variable back_to. Do not leave
7690 a stale cleanup. Fix double free of NAME.
7691
7692 2013-05-04 Eli Zaretskii <eliz@gnu.org>
7693
7694 * windows-nat.c (windows_delete_thread): Accept an additional
7695 argument, the thread's exit code, and announce thread death when
7696 print_thread_events is non-zero and we are deleting a thread that
7697 is not the main thread.
7698 (get_windows_debug_event): Pass thread exit code to
7699 windows_delete_thread.
7700
7701 2013-05-03 Kevin Buettner <kevinb@redhat.com>
7702
7703 * v850-tdep.c (elf-bfd.h, elf/v850.h): Include.
7704 (R_149_REGNUM, E_NUM_OF_V850E2_REGS, E_SELID_1_R0_REGNUM)
7705 (E_SELID_1_R31_REGNUM, E_SELID_2_R0_REGNUM, E_SELID_2_R31_REGNUM)
7706 (E_SELID_3_R0_REGNUM, E_SELID_3_R31_REGNUM, E_SELID_4_R0_REGNUM)
7707 (E_SELID_4_R31_REGNUM, E_SELID_5_R0_REGNUM, E_SELID_5_R31_REGNUM)
7708 (E_SELID_6_R0_REGNUM, E_SELID_6_R31_REGNUM, E_SELID_7_R0_REGNUM, E_SELID_7_R31_REGNUM)
7709 (E_VR0_REGNUM, E_VR31_REGNUM, E_NUM_OF_V850E3V5_REGS): Define.
7710 (v850_abi, V850_ABI_GCC, V850_ABI_RH850): New enum and constants.
7711 (gdbarch_tdep): New struct.
7712 (v850e2_register_name): Use E_NUM_OF_V850E2_REGS instead of
7713 E_NUM_REGS.
7714 (v850e3v5_register_name): New function.
7715 (v850_register_type): v850e3v5 vector registers are 64-bits wide.
7716 (v850_use_struct_convention): Add `gdbarch' parameter. Add new
7717 code handling the struct return conventions for the RH850 ABI.
7718 Update all callers.
7719 (v850_eight_byte_align_p): New function.
7720 (v850_push_call_dummy): Push structs by value, not by reference
7721 for the RH850 ABI. Add support for eight byte alignment.
7722 (v850_dbtrap_breakpoint_from_pc): New function.
7723 (v850_gdbarch_init): Add ABI detection code. Register
7724 v850e3v5_register_name for the v850e3v5 architecture. Set the
7725 number of registers for v850e3v5. Register
7726 v850_dbtrap_breakpoint_from_pc as appropriate.
7727 (_initialize_gdbarch_init): Registration bfd_arch_v850_rh850.
7728
7729 2013-05-03 Doug Evans <dje@google.com>
7730
7731 * objfiles.c (objfile_relocate): Use gdb_bfd_count_sections instead
7732 of bfd_count_sections.
7733 * solib-target.c (solib_target_relocate_section_addresses): Ditto.
7734 * symfile.c (default_symfile_offsets): Ditto.
7735 (syms_from_objfile_1): Ditto. Make dummy addrs list an array of
7736 one entry, not bfd_count_sections entries.
7737
7738 2013-05-03 Kevin Buettner <kevinb@redhat.com>
7739
7740 * rl78-tdep.c (rl78_register_reggroup_p): Include SP in the
7741 `save' and `restore' register groups. Don't include SPL
7742 or SPH in these groups.
7743 (rl78_dwarf_reg_to_regnum): Adjust mapping for
7744 RL78_PC_REGNUM. Add mappings for RL78_PSW_REGNUM,
7745 RL78_ES_REGNUM, and RL78_CS_REGNUM.
7746 (rl78_gdbarch_init): Set `dwarf2_addr_size' to 4. Invoke
7747 dwarf2_append_unwinders().
7748
7749 2013-05-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7750
7751 * break-catch-sig.c (signal_catchpoint_breakpoint_hit): Do not
7752 ignore SIGINT and SIGTRAP in case these internal signals are
7753 caught explicitely.
7754
7755 2013-05-01 Joel Brobecker <brobecker@adacore.com>
7756
7757 * darwin-nat.c (darwin_read_write_inferior): Change types
7758 of parameters rdaddr and wraddr to "gdb_byte *". Change type
7759 of copy_count to "mach_msg_type_number_t".
7760 (darwin_read_dyld_info): Change type of parameter
7761 rdaddr to "gdb_byte *".
7762
7763 2013-05-01 Joel Brobecker <brobecker@adacore.com>
7764
7765 * solib-ia64-hpux.c (ia64_hpux_read_dynamic_info): Change cast
7766 of &info->load_map from "char *" to "gdb_byte *".
7767
7768 2013-05-01 Joel Brobecker <brobecker@adacore.com>
7769
7770 * ia64-tdep.c (ia64_access_fpreg): Change cast of val
7771 from "char *" to "gdb_byte *".
7772 (ia64_access_rse_fpreg, ia64_access_mem): Likewise.
7773
7774 2013-04-30 Doug Evans <dje@google.com>
7775
7776 * dwarf2read.c (lookup_dwo_unit): Return NULL if DWO not found.
7777 (init_cutu_and_read_dies): Flag a complaint, not error, for bad
7778 DWO stub. If DWO isn't found, just use stub.
7779 (lookup_dwo_cutu): Don't try DWO if there's a DWP file.
7780
7781 * dwarf2read.c (dw2_find_symbol_file): Initialize filename before
7782 calling init_cutu_and_read_dies.
7783
7784 2013-03-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
7785
7786 * target-descriptions.c (maint_print_c_tdesc_cmd):
7787 Add case to parse structures as register types and
7788 bitfields.
7789
7790 2013-04-30 Walfred Tedeschi <walfred.tedeschi@intel.com>
7791
7792 * MAINTAINERS (Write After Approval): Add myself to the list.
7793
7794 2013-04-30 Joel Brobecker <brobecker@adacore.com>
7795
7796 * sol-thread.c (rw_common): Change type of parameter "buf"
7797 to "gdb_byte *".
7798 (ps_pdwrite, ps_ptwrite): Cast parameter "buf" in call to
7799 rw_common to "gdb_byte *" instead of "char *".
7800
7801 2013-04-30 Joel Brobecker <brobecker@adacore.com>
7802
7803 * sol-thread.c (info_cb) [ti.ti_startfunc != 0]: Change type
7804 of local variable msym to const struct bound_minimal_symbol.
7805 Adjust use accordingly.
7806 [ti.ti_state == TD_THR_SLEEP]: Likewise.
7807
7808 2013-04-30 Samuel Thibault <samuel.thibault@gnu.org>
7809
7810 * i386gnu-nat.c (CREG_OFFSET): New macro.
7811 (creg_offset): New array.
7812 (CREG_ADDR): Use creg_offset instead of reg_offset.
7813
7814 2013-04-30 Joel Brobecker <brobecker@adacore.com>
7815
7816 * mep-tdep.c (mep_write_pc): Delete.
7817 (mep_gdbarch_init): Remove call to set_gdbarch_write_pc.
7818 Add call to set_gdbarch_pc_regnum.
7819
7820 2013-04-30 Joel Brobecker <brobecker@adacore.com>
7821
7822 * common/filestuff.c: Replace #include <dirent.h> by
7823 #include "gdb_dirent.h".
7824
7825 2013-04-30 Joel Brobecker <brobecker@adacore.com>
7826
7827 * common/filestuff.c: Replace #include <sys/stat.h> by
7828 #include "gdb_stat.h".
7829
7830 2013-04-29 Pierre Muller <muller@sourceware.org>
7831
7832 * dwarf2read.c (handle_DW_AT_stmt_list): Avoid ARI warning for
7833 editCase function rule.
7834 (get_DW_AT_signature_type): Likewise.
7835
7836 2013-04-29 Joel Brobecker <brobecker@adacore.com>
7837
7838 * m32r-tdep.c (m32r_write_pc): Delete.
7839 (m32r_gdbarch_init): Remove call to set_gdbarch_write_pc.
7840 Add call to set_gdbarch_pc_regnum.
7841
7842 2013-04-29 Pierre Muller <muller@sourceware.org>
7843
7844 * ./contrib/ari/gdb_ari.sh (editCase rule): Fix spelling error.
7845
7846 2013-04-29 Joel Brobecker <brobecker@adacore.com>
7847
7848 * dwarf2read.c (get_DW_AT_signature_type): Add ARI marker.
7849
7850 2013-04-28 Yao Qi <yao@codesourcery.com>
7851
7852 * solib-dsbt.c (fetch_loadmap): Re-indent.
7853 (displacement_from_map, enable_break2): Likewise.
7854 (dsbt_relocate_section_addresses): Likewise.
7855
7856 2013-04-26 Joel Brobecker <brobecker@adacore.com>
7857
7858 GDB 7.6 released.
7859
7860 2013-04-25 Andreas Kaufmann <Andreas.Kaufmann@synopsys.com>
7861
7862 PR corefiles/14983:
7863 * dwarf2read.c (process_full_comp_unit): Always create a static
7864 block.
7865
7866 2013-04-25 Hui Zhu <hui@codesourcery.com>
7867
7868 * breakpoint.c (build_target_command_list): Change loc->cond_bytecode
7869 to loc->cmd_bytecode.
7870
7871 2013-04-24 Doug Evans <dje@google.com>
7872
7873 * dwarf2read.c (setup_type_unit_groups): Fix comment.
7874
7875 2013-04-22 Keith Seitz <keiths@redhat.com>
7876
7877 * tracepoint.c (trace_save): Call the writer's start method.
7878
7879 2013-04-24 Muhammad Bilal <mbilal@codesourcery.com>
7880
7881 PR gdb/10462
7882 * cli/cli-decode.c (lookup_command): Show an error if there is no space
7883 before argument.
7884
7885 2013-04-23 Tom Tromey <tromey@redhat.com>
7886
7887 * common/filestuff.c: Check USE_WIN32API before including
7888 sys/socket.h.
7889 (HAVE_F_GETFD): New define.
7890 (mark_cloexec): Check HAVE_F_GETFD.
7891 (gdb_open_cloexec): Change 'mode' to unsigned long.
7892 (gdb_socketpair_cloexec): Check HAVE_SOCKETPAIR.
7893 (gdb_pipe_cloexec): Check HAVE_PIPE.
7894 * common/filestuff.h (gdb_open_cloexec): Change 'mode' to unsigned
7895 long.
7896
7897 2013-04-23 Hui Zhu <hui@codesourcery.com>
7898
7899 PR gdb/15293
7900 * breakpoint.c (bpstat_what): Add BPSTAT_WHAT_SINGLE to bp_dprintf.
7901
7902 2013-04-23 Hui Zhu <hui@codesourcery.com>
7903
7904 PR gdb/15165
7905 * breakpoint.c (dprintf_print_recreate): New.
7906 (save_breakpoints): Let it not save dprintf commands.
7907 (initialize_breakpoint_ops): Set dprintf_print_recreate.
7908
7909 2013-04-22 Tom Tromey <tromey@redhat.com>
7910
7911 PR gdb/7912:
7912 * Makefile.in (SFILES): Add filestuff.c
7913 (COMMON_OBS): Add filestuff.o.
7914 (filestuff.o): New target.
7915 * auto-load.c (auto_load_objfile_script_1): Use
7916 gdb_fopen_cloexec.
7917 * auxv.c (procfs_xfer_auxv): Use gdb_open_cloexec.
7918 * cli/cli-cmds.c (shell_escape): Call close_most_fds.
7919 * cli/cli-dump.c (fopen_with_cleanup): Use gdb_fopen_cloexec.
7920 * common/agent.c (gdb_connect_sync_socket): Use
7921 gdb_socket_cloexec.
7922 * common/filestuff.c: New file.
7923 * common/filestuff.h: New file.
7924 * common/linux-osdata.c (linux_common_core_of_thread)
7925 (command_from_pid, commandline_from_pid, print_source_lines)
7926 (linux_xfer_osdata_shm, linux_xfer_osdata_sem)
7927 (linux_xfer_osdata_msg, linux_xfer_osdata_modules): Use
7928 gdb_fopen_cloexec.
7929 * common/linux-procfs.c (linux_proc_get_int)
7930 (linux_proc_pid_has_state): Use gdb_fopen_cloexec.
7931 * config.in, configure: Rebuild.
7932 * configure.ac: Don't check for sys/socket.h. Check for
7933 fdwalk, pipe2.
7934 * corelow.c (core_open): Use gdb_open_cloexec.
7935 * dwarf2read.c (write_psymtabs_to_index): Use gdb_fopen_cloexec.
7936 * fork-child.c (fork_inferior): Call close_most_fds.
7937 * gdb_bfd.c (gdb_bfd_open): Use gdb_open_cloexec.
7938 * inf-child.c (inf_child_fileio_readlink): Use gdb_open_cloexec.
7939 * linux-nat.c (linux_nat_thread_name, linux_proc_pending_signals):
7940 Use gdb_fopen_cloexec.
7941 (linux_proc_xfer_partial, linux_proc_xfer_spu): Use
7942 gdb_open_cloexec.
7943 (linux_async_pipe): Use gdb_pipe_cloexec.
7944 * remote-fileio.c (remote_fileio_func_open): Use
7945 gdb_open_cloexec.
7946 * remote.c (remote_file_put, remote_file_get): Use
7947 gdb_fopen_cloexec.
7948 * ser-pipe.c (pipe_open): Use gdb_socketpair_cloexec,
7949 close_most_fds.
7950 * ser-tcp.c (net_open): Use gdb_socket_cloexec.
7951 * ser-unix.c (hardwire_open): Use gdb_open_cloexec.
7952 * solib.c (solib_find): Use gdb_open_cloexec.
7953 * source.c (openp, find_and_open_source): Use gdb_open_cloexec.
7954 * tracepoint.c (tfile_start): Use gdb_fopen_cloexec.
7955 (tfile_open): Use gdb_open_cloexec.
7956 * tui/tui-io.c (tui_initialize_io): Use gdb_pipe_cloexec.
7957 * ui-file.c (gdb_fopen): Use gdb_fopen_cloexec.
7958 * xml-support.c (xml_fetch_content_from_file): Use
7959 gdb_fopen_cloexec.
7960 * main.c (captured_main): Call notice_open_fds.
7961
7962 2013-04-22 Edjunior Machado <emachado@linux.vnet.ibm.com>
7963
7964 * remote-sim.c (dump_mem): Change the type of 'buf' parameter from
7965 'char *' to 'gdb_byte *'.
7966 (gdbsim_store_register): Change the type of 'tmp' from 'char' to
7967 'gdb_byte'.
7968
7969 2013-04-22 Yao Qi <yao@codesourcery.com>
7970
7971 * infrun.c: Fix typo in comment.
7972
7973 2013-04-22 Andrew Haley <aph@redhat.com>
7974
7975 * arm-tdep.c (BranchDest): Cast result as "unsigned long",
7976 instead of "long".
7977
7978 2013-04-20 Yao Qi <yao@codesourcery.com>
7979
7980 * ctf.c (ctf_fetch_registers): Change the type of 'regs' from
7981 'char *' to 'gdb_byte *'. Cast the return value of
7982 'bt_ctf_get_char_array' to 'gdb_byte *'.
7983
7984 2013-04-19 Pedro Alves <palves@redhat.com>
7985
7986 * configure.ac (build_warnings): Replace -Wno-pointer-sign with
7987 -Wpointer-sign.
7988 * configure: Regenerate.
7989
7990 2013-04-19 Pedro Alves <palves@redhat.com>
7991
7992 * ser-tcp.c (net_read_prim): Cast second argument to recv to
7993 'void *'.
7994
7995 2013-04-19 Pedro Alves <palves@redhat.com>
7996
7997 * monitor.c (monitor_write_memory, monitor_write_memory_bytes):
7998 Change type of 'myaddr' parameter to gdb_byte pointer.
7999 (monitor_write_memory_longlongs): Likewise. Cast 'myaddr' pointer
8000 to 'long long' pointer instead of to 'unsigned long long'.
8001 (monitor_write_memory_block, monitor_read_memory_single)
8002 (monitor_read_memory): Change type of 'myaddr' parameter to
8003 gdb_byte pointer.
8004
8005 2013-04-19 Pedro Alves <palves@redhat.com>
8006
8007 * record.c (validate_history_size): Make parameter 'setting'
8008 unsigned.
8009
8010 2013-04-19 Pedro Alves <palves@redhat.com>
8011
8012 * ctf.c (ctf_write_uploaded_tsv, ctf_write_uploaded_tp): Add casts
8013 to 'gdb_byte *'.
8014
8015 2013-04-19 Pedro Alves <palves@redhat.com>
8016
8017 * cp-valprint.c (cp_print_class_member): Change type of 'fieldno'
8018 local to int.
8019
8020 2013-04-19 Pedro Alves <palves@redhat.com>
8021
8022 * ada-lang.c (print_it_exception): Add cast to gdb_byte *.
8023 * ada-tasks.c (read_fat_string_value): Likewise.
8024
8025 2013-04-19 Pedro Alves <palves@redhat.com>
8026
8027 * dwarf2-frame.c (execute_cfa_program): Make 'bytes_read' local
8028 unsigned. Pass 'tmp' to safe_read_uleb128 instead of the signed
8029 'offset', and adjust.
8030
8031 2013-04-19 Pedro Alves <palves@redhat.com>
8032
8033 * dwarf2read.c (dwarf2_get_dwz_file): Add cast to const char *.
8034 (read_index_from_section): Add cast to 'char *'.
8035
8036 2013-04-19 Pedro Alves <palves@redhat.com>
8037
8038 * xcoffread.c (xcoff_initial_scan): Add cast to 'char *'.
8039
8040 2013-04-19 Pedro Alves <palves@redhat.com>
8041
8042 * coff-pe-read.c (read_pe_exported_syms): Handle strings as char.
8043
8044 2013-04-19 Pedro Alves <palves@redhat.com>
8045
8046 * record-full.c (record_full_get_bookmark): Change local 'ret'
8047 type to char * and add cast to gdb_byte *.
8048 (record_full_goto_bookmark): Handle 'bookmark' argument as a
8049 string.
8050 * reverse.c (goto_bookmark_command): Add casts to gdb_byte *.
8051
8052 2013-04-19 Pedro Alves <palves@redhat.com>
8053
8054 * python/py-inferior.c (infpy_write_memory): Add cast to gdb_byte
8055 * python/py-prettyprint.c (print_string_repr): Change type of
8056 'output' local to char *. Add cast to gdb_byte * in
8057 LA_PRINT_STRING call.
8058 (print_children): Change type of 'output' local to char *.
8059 * python/py-value.c (valpy_string): Add cast to const char * in
8060 PyUnicode_Decode call.
8061
8062 2013-04-19 Pedro Alves <palves@redhat.com>
8063
8064 * remote-mips.c (mips_cksum): Rename 'data' parameter to 'datastr'
8065 and change its type to 'const char *'. Adjust.
8066 (mips_send_packet): Add cast to 'char *', and remove cast to
8067 'unsigned char *'.
8068 (mips_receive_packet): Remove cast to 'unsigned char *'.
8069 (mips_load_srec): Use bfd_byte.
8070 (pmon_makeb64, pmon_zeroset): Make 'chksum' parameter unsigned.
8071 (pmon_checkset): Make 'value' parameter unsigned.
8072
8073 2013-04-19 Pedro Alves <palves@redhat.com>
8074
8075 * common/agent.c (agent_run_command): Add cast to gdb_byte *.
8076
8077 2013-04-19 Pedro Alves <palves@redhat.com>
8078
8079 * remote.c (remote_write_bytes_aux, compare_sections_command)
8080 (remote_read_qxfer)
8081 (remote_search_memory, remote_hostio_pwrite, remote_hostio_pread)
8082 (remote_hostio_readlink, remote_bfd_iovec_pread)
8083 (remote_set_trace_notes): Use gdb_byte when RSP buffer is used as
8084 binary buffer, and char when buffer is used as string.
8085 * tracepoint.c (encode_source_string, tfile_write_uploaded_tp)
8086 (trace_save, tfile_open, traceframe_walk_blocks)
8087 (tfile_fetch_registers): Likewise.
8088
8089 2013-04-19 Pedro Alves <palves@redhat.com>
8090
8091 * ser-base.c (ser_base_write): Change prototype -- take 'void *'
8092 buffer and size_t size. Adjust.
8093 * ser-base.h (ser_base_write): Adjust.
8094 * ser-go32.c (cnts): Change type to size_t.
8095 (dos_write): Change prototype -- take 'void *'
8096 buffer and size_t size. Adjust.
8097 (dos_info): Print elements of 'cnts' as unsigned long.
8098 * serial.c (serial_write): Likewise.
8099 * serial.h (serial_write): Adjust.
8100 (struct serial_ops) <write>: Change prototype -- take 'void *'
8101 buffer and size_t size. Adjust.
8102
8103 2013-04-19 Pedro Alves <palves@redhat.com>
8104
8105 * c-lang.c (evaluate_subexp_c): Cast result of obstack_base to
8106 gdb_byte *.
8107 * linux-tdep.c (linux_make_mappings_corefile_notes): Likewise.
8108
8109 2013-04-19 Pedro Alves <palves@redhat.com>
8110
8111 * alpha-tdep.c (alpha_extract_return_value): Use
8112 regcache_cooked_read_unsigned to read 'v0'.
8113
8114 2013-04-19 Pedro Alves <palves@redhat.com>
8115
8116 * xtensa-tdep.c (execute_l32e, execute_s32e): Change type of
8117 parameters 'at', 'as' and 'offset' to uint32_t.
8118
8119 2013-04-19 Pedro Alves <palves@redhat.com>
8120
8121 * aarch64-tdep.c (aarch64_analyze_prologue): Change type of local
8122 'is64' to signed 'int'.
8123
8124 2013-04-19 Pedro Alves <palves@redhat.com>
8125
8126 * s390-tdep.c (is_rs, is_rsy, is_rx, is_rxy): Change type of 'd2'
8127 parameter to int *.
8128
8129 2013-04-19 Pedro Alves <palves@redhat.com>
8130
8131 * ppc-linux-tdep.c (ppc_skip_trampoline_code): Change local
8132 'insnbuf' buffer type to unsigned int[].
8133
8134 2013-04-19 Pedro Alves <palves@redhat.com>
8135
8136 * mips-tdep.c (mips_read_pc): Change local 'pc' type to LONGEST.
8137
8138 2013-04-19 Pedro Alves <palves@redhat.com>
8139
8140 * mep-tdep.c (mep_get_insn): Change 'insn' parameter type to
8141 unsigned long *.
8142
8143 2013-04-19 Pedro Alves <palves@redhat.com>
8144
8145 * alpha-tdep.c (heuristic_fence_post): Change type to int.
8146 (alpha_heuristic_proc_start): Adjust to check -1 instead of
8147 UINT_MAX.
8148 * mips-tdep.c (heuristic_fence_post): Change type to int.
8149 (heuristic_proc_start): Adjust to check -1 instead of UINT_MAX.
8150
8151 2013-04-19 Pedro Alves <palves@redhat.com>
8152
8153 * cris-tdep.c (usr_cmd_cris_version): Make unsigned.
8154 (struct gdbarch_tdep) <cris_version>: Make unsigned.
8155 (cris_spec_reg_applicable, cris_gdbarch_init): Adjust locals.
8156
8157 2013-04-19 Pedro Alves <palves@redhat.com>
8158
8159 * avr-tdep.c (avr_io_reg_read_command): New local 'bufstr'. Use
8160 it to get a string view of the byte buffer.
8161 * i386-cygwin-tdep.c (core_process_module_section): Change local 'buf'
8162 type to gdb_byte *. Adjust.
8163 * linux-tdep.c (linux_info_proc, linux_find_memory_regions_full):
8164 Change local to char *.
8165 * solib-darwin.c (find_program_interpreter): Change return type to
8166 char *. Adjust.
8167 (darwin_solib_get_all_image_info_addr_at_init): Adjust.
8168 * solib-dsbt.c (enable_break2): Change local 'buf' to char *.
8169 * solib-frv.c (enable_break2): Change local 'buf' to char *.
8170 * solib-spu.c (spu_current_sos): Add gdb_byte * cast.
8171 * solib-svr4.c (find_program_interpreter): Change return type to
8172 char *. Adjust.
8173 (enable_break): Change local 'interp_name' to char *.
8174 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
8175 * spu-tdep.c (spu_pseudo_register_read_spu): Add cast to 'char *'.
8176 (spu_pseudo_register_write_spu): Use char for string buffer.
8177 Adjust.
8178 (info_spu_event_command, info_spu_signal_command): Add casts to
8179 'char *'.
8180
8181 2013-04-19 Pedro Alves <palves@redhat.com>
8182
8183 * aarch64-tdep.c (aarch64_default_breakpoint): Change type to
8184 gdb_byte[].
8185 (aarch64_breakpoint_from_pc): Change return type to gdb_byte *.
8186 * ada-lang.c (ada_value_assign): Use gdb_byte.
8187 * alphanbsd-tdep.c (sigtramp_retcode): Change type to gdb_byte[].
8188 (alphanbsd_sigtramp_offset): Use gdb_byte.
8189 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint)
8190 (arm_linux_arm_be_breakpoint, eabi_linux_arm_le_breakpoint)
8191 (eabi_linux_arm_be_breakpoint, arm_linux_thumb_be_breakpoint)
8192 (arm_linux_thumb_le_breakpoint, arm_linux_thumb2_be_breakpoint)
8193 (arm_linux_thumb2_le_breakpoint): Change type to gdb_byte[].
8194 * arm-tdep.c (arm_stub_unwind_sniffer)
8195 (arm_displaced_init_closure): Use gdb_byte.
8196 (arm_default_arm_le_breakpoint, arm_default_arm_be_breakpoint)
8197 (arm_default_thumb_le_breakpoint)
8198 (arm_default_thumb_be_breakpoint): Change type to gdb_byte[].
8199 * arm-tdep.h (struct gdbarch_tdep) <arm_breakpoint,
8200 thumb_breakpoint, thumb2_breakpoint>: Change type to gdb_byte *.
8201 * arm-wince-tdep.c (arm_wince_le_breakpoint)
8202 (arm_wince_thumb_le_breakpoint): Change type to gdb_byte[].
8203 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint)
8204 (arm_nbsd_arm_be_breakpoint, arm_nbsd_thumb_le_breakpoint)
8205 (arm_nbsd_thumb_be_breakpoint): Change type to gdb_byte[].
8206 * armobsd-tdep.c (arm_obsd_thumb_le_breakpoint)
8207 (arm_obsd_thumb_be_breakpoint): Change type to gdb_byte[].
8208 * cris-tdep.c (push_stack_item, cris_push_dummy_call)
8209 (cris_store_return_value, cris_extract_return_value): Use
8210 gdb_byte.
8211 (constraint): Change type of parameter to char * from signed
8212 char*. Use gdb_byte.
8213 * dwarf2loc.c (read_pieced_value, write_pieced_value): Change type
8214 of local buffer to gdb_byte *.
8215 * dwarf2read.c (read_index_from_section): Use gdb_byte.
8216 (create_dwp_hash_table): Change type of locals to gdb_byte *.
8217 (add_address_entry): Change type of local buffer to gdb_byte[].
8218 * frv-tdep.c (frv_adjust_breakpoint_address, find_func_descr)
8219 (frv_push_dummy_call): Use gdb_byte.
8220 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code)
8221 (hppa_hpux_supply_ss_fpblock, hppa_hpux_supply_ss_wide)
8222 (hppa_hpux_supply_save_state): Use gdb_byte.
8223 * hppa-tdep.c (hppa32_push_dummy_call)
8224 (hppa64_convert_code_addr_to_fptr): Use gdb_byte.
8225 * ia64-tdep.c (extract_bit_field, replace_bit_field)
8226 (slotN_contents, replace_slotN_contents): Change type of parameter
8227 to gdb_byte *.
8228 (fetch_instruction, ia64_pseudo_register_write)
8229 (ia64_register_to_value, ia64_value_to_register)
8230 (ia64_extract_return_value, ia64_store_return_value)
8231 (ia64_push_dummy_call): Use gdb_byte.
8232 * m32c-tdep.c (m32c_return_value): Remove cast.
8233 * m68hc11-tdep.c (m68hc11_pseudo_register_write)
8234 (m68hc11_push_dummy_call, m68hc11_store_return_value): Use
8235 gdb_byte.
8236 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Use gdb_byte.
8237 * mn10300-tdep.c (mn10300_store_return_value)
8238 (mn10300_breakpoint_from_pc, mn10300_push_dummy_call): Use
8239 gdb_byte.
8240 * moxie-tdep.c (moxie_process_readu): Use gdb_byte.
8241 (moxie_process_record): Remove casts.
8242 * ppc-ravenscar-thread.c (supply_register_at_address)
8243 (ppc_ravenscar_generic_store_registers): Use gdb_byte.
8244 * ravenscar-thread.c (get_running_thread_id): Use gdb_byte.
8245 * remote-m32r-sdi.c (m32r_fetch_register): Use gdb_byte.
8246 * remote-mips.c (mips_xfer_memory): Use gdb_byte.
8247 * remote.c (compare_sections_command): Use gdb_byte.
8248 * score-tdep.c (score7_free_memblock): Change type of parameter to
8249 gdb_byte *.
8250 * sh-tdep.c (sh_justify_value_in_reg): Change return type to
8251 gdb_byte *. Use gdb_byte.
8252 (sh_push_dummy_call_fpu): Use gdb_byte.
8253 (sh_extract_return_value_nofpu, sh_extract_return_value_fpu)
8254 (sh_store_return_value_nofpu, sh_store_return_value_fpu)
8255 (sh_register_convert_to_virtual, sh_register_convert_to_raw):
8256 Change parameter type to 'gdb_byte *'. Use gdb_byte.
8257 (sh_pseudo_register_read, sh_pseudo_register_write): Use gdb_byte.
8258 * sh64-tdep.c (sh64_push_dummy_call): Use gdb_byte.
8259 (sh64_store_return_value, sh64_register_convert_to_virtual):
8260 Change parameter type to 'gdb_byte *'. Use gdb_byte.
8261 (sh64_pseudo_register_write): Use gdb_byte.
8262 * solib-darwin.c (darwin_current_sos): Add casts to 'gdb_byte *'.
8263 * solib-irix.c (fetch_lm_info): Likewise. Use gdb_byte for byte
8264 buffer.
8265 (irix_current_sos): Use gdb_byte.
8266 * solib-som.c (som_current_sos): Use gdb_byte.
8267 * sparc-ravenscar-thread.c (supply_register_at_address)
8268 (sparc_ravenscar_generic_store_registers): Use gdb_byte.
8269 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
8270 * spu-tdep.c (spu_get_overlay_table): Use gdb_byte.
8271 * tic6x-tdep.c (tic6x_breakpoint_from_pc): Change return type to
8272 'gdb_byte *'.
8273 * tic6x-tdep.h (struct gdbarch_tdep) <breakpoint>: Change type to
8274 'gdb_byte *'.
8275 * tracepoint.c (tfile_fetch_registers): Use gdb_byte.
8276 * xstormy16-tdep.c (xstormy16_extract_return_value)
8277 (xstormy16_store_return_value): Change parameter type to
8278 'gdb_byte *'. Adjust.
8279 (xstormy16_push_dummy_call): Use gdb_byte.
8280 * xtensa-tdep.c (xtensa_scan_prologue, call0_ret)
8281 (call0_analyze_prologue, execute_code): Use gdb_byte.
8282
8283 2013-04-19 Vladimir Kargov <kargov@gmail.com>
8284 Pedro Alves <palves@redhat.com>
8285
8286 * i387-tdep.c (i387_print_float_info): Use gdb_byte for pointer to
8287 value contents.
8288
8289 2013-04-17 Doug Evans <dje@google.com>
8290
8291 * dwarf2read.c (struct signatured_type): New member type.
8292 (struct attribute): Replace member signatured_type with signature.
8293 (DW_SIGNATURE): Replaces DW_SIGNATURE_TYPE.
8294 (read_call_site_scope): Call follow_die_ref instead of
8295 follow_die_ref_or_sig.
8296 (read_structure_type): Rewrite handling of signatured types.
8297 (read_enumeration_type): Ditto.
8298 (read_attribute_value): Update.
8299 (build_error_marker_type): New function.
8300 (lookup_die_type): Add assert. Rewrite handling of signatured types.
8301 Don't call error for bad types, just build an error marker type.
8302 (dump_die_shallow): Update.
8303 (follow_die_sig_1): Renamed from follow_die_sig.
8304 Don't call error for bad types, instead return NULL.
8305 (follow_die_sig): New function.
8306 (get_signatured_type, get_DW_AT_signature_type): New functions.
8307
8308 2013-04-17 Yufeng Zhang <yufeng.zhang@arm.com>
8309
8310 * aarch64-tdep.c (aarch64_write_pc): Removed.
8311 (aarch64_gdbarch_init): Remove set_gdbarch_write_pc of the above
8312 function.
8313
8314 2013-04-17 Yao Qi <yao@codesourcery.com>
8315
8316 * top.c (print_gdb_configuration): Print configure-time
8317 parameter on using libbabeltrace or not.
8318
8319 2013-04-16 Pedro Alves <palves@redhat.com>
8320
8321 * copyright.py (EXCLUDE_LIST): Add gdb/common/glibc_thread_db.h.
8322
8323 2013-04-16 Pedro Alves <palves@redhat.com>
8324
8325 * common/glibc_thread_db.h: Update from upstream glibc
8326 (git 568035b7874a099087b77f7bba3e36a1173787b0).
8327
8328 2013-04-16 Pedro Alves <palves@redhat.com>
8329
8330 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: Factor out to ...
8331 * common/glibc_thread_db.h: ... this new file ...
8332 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: ... and include it.
8333
8334 2013-04-16 Will Newton <will.newton@gmail.com>
8335 Pedro Alves <palves@redhat.com>
8336
8337 PR build/11881
8338
8339 * common/gdb_thread_db.h (LIBTHREAD_DB_SO)
8340 (LIBTHREAD_DB_SEARCH_PATH): Move outside of #ifdef
8341 HAVE_THREAD_DB_H.
8342
8343 2013-04-16 Pedro Alves <palves@redhat.com>
8344 Eli Zaretskii <eliz@gnu.org>
8345
8346 * NEWS: Mention "set foo unlimited".
8347
8348 2013-04-15 Doug Evans <dje@google.com>
8349
8350 * dwarf2read.c (struct dwo_file): Replace member "cus" with "cu".
8351 (struct create_dwo_cu_data): Renamed from create_dwo_info_table_data.
8352 (create_dwo_cu_reader): Renamed from
8353 create_dwo_debug_info_hash_table_reader.
8354 (create_dwo_cu): Renamed from create_dwo_debug_info_hash_table.
8355 Remove support for multiple CUs in a DWO file.
8356 (open_and_init_dwo_file, lookup_dwo_cutu): Update.
8357
8358 * dwarf2read.c (create_debug_types_hash_table): Use hex_string
8359 instead of phex.
8360 (lookup_dwo_unit, create_dwo_debug_info_hash_table_reader): Ditto.
8361 (create_dwo_in_dwp): Ditto.
8362
8363 2013-04-15 Tom Tromey <tromey@redhat.com>
8364
8365 * NEWS: Move recent entries into "since 7.6" section.
8366
8367 2013-04-15 Tom Tromey <tromey@redhat.com>
8368
8369 PR c++/13588:
8370 * NEWS: Update.
8371 * break-catch-throw.c (struct exception_catchpoint)
8372 <exception_rx, pattern>: New fields.
8373 (fetch_probe_arguments, dtor_exception_catchpoint)
8374 (check_status_exception_catchpoint)
8375 (print_one_detail_exception_catchpoint): New functions.
8376 (handle_gnu_v3_exceptions): Add "except_rx" argument.
8377 Compile regular expression if needed.
8378 (extract_exception_regexp): New function.
8379 (catch_exception_command_1): Use extract_exception_regexp.
8380 (compute_exception): Use fetch_probe_arguments.
8381 (initialize_throw_catchpoint_ops): Set dtor, print_one_detail,
8382 and check_status fields.
8383 * cp-abi.c (cplus_typename_from_type_info): New function.
8384 * cp-abi.h (cplus_typename_from_type_info): Declare.
8385 (struct cp_abi_ops) <get_typename_from_type_info>: New field.
8386 * gdb_regex.h (compile_rx_or_error): Declare.
8387 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info): Update
8388 comment.
8389 (init_gnuv3_ops): Set get_type_from_type_info field.
8390 * probe.c (compile_rx_or_error): Move...
8391 * utils.c (compile_rx_or_error): ... here.
8392
8393 2013-04-15 Tom Tromey <tromey@redhat.com>
8394
8395 PR c++/15176:
8396 * NEWS: Update.
8397 * break-catch-throw.c (compute_exception): New function.
8398 (exception_funcs): New global.
8399 (_initialize_break_catch_throw): Create $_exception.
8400 * cp-abi.c (cplus_type_from_type_info): New function.
8401 * cp-abi.h (cplus_type_from_type_info): Declare.
8402 (struct cp_abi_ops) <get_type_from_type_info>: New field.
8403 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info)
8404 (gnuv3_get_type_from_type_info): New functions.
8405 (init_gnuv3_ops): Set get_type_from_type_info ABI field.
8406
8407 2013-04-15 Tom Tromey <tromey@redhat.com>
8408
8409 * break-catch-throw.c (struct exception_names): New.
8410 (exception_functions): Change type.
8411 (re_set_exception_catchpoint): Look for SDT probes.
8412
8413 2013-04-15 Tom Tromey <tromey@redhat.com>
8414
8415 PR c++/10119:
8416 * break-catch-throw.c (exception_functions): New global.
8417 (gnu_v3_exception_catchpoint_ops): Move earlier.
8418 (struct exception_catchpoint): New.
8419 (classify_exception_breakpoint): Rewrite.
8420 (re_set_exception_catchpoint): New function.
8421 (handle_gnu_v3_exceptions): Return void. Use init_catchpoint.
8422 Allocate a struct exception_catchpoint.
8423 (catch_exception_command_1): Update.
8424 (initialize_throw_catchpoint_ops): Set 're_set' method.
8425
8426 2013-04-15 Tom Tromey <tromey@redhat.com>
8427
8428 * Makefile.in (SFILES): Add break-catch-throw.c
8429 (COMMON_OBS): Add break-catch-throw.o.
8430 * break-catch-throw.c: New file.
8431 * breakpoint.c: Move exception-catching code to new file.
8432 (ep_parse_optional_if_clause): No longer static.
8433 * breakpoint.h (ep_parse_optional_if_clause): Declare.
8434
8435 2013-04-15 Tom Tromey <tromey@redhat.com>
8436
8437 PR c++/9065:
8438 * NEWS: Update.
8439 * breakpoint.c (watchpoint_exp_is_const): Add OP_TYPEID.
8440 * c-exp.y (TYPEID): New token.
8441 (exp): Add new TYPEID productions.
8442 (ident_tokens): Add "typeid".
8443 * cp-abi.c (cplus_typeid, cplus_typeid_type): New functions.
8444 * cp-abi.h (cplus_typeid, cplus_typeid_type): Declare.
8445 (struct cp_abi_ops) <get_typeid, get_typeid_type>: New fields.
8446 * eval.c (evaluate_subexp_standard) <OP_TYPEID>: New case.
8447 * expprint.c (dump_subexp_body_standard) <OP_TYPEID>: New
8448 case.
8449 * gnu-v3-abi.c (std_type_info_gdbarch_data): New global.
8450 (build_std_type_info_type, gnuv3_get_typeid_type)
8451 (gnuv3_get_typeid): New functions.
8452 (init_gnuv3_ops): Initialize std_type_info_gdbarch_data. Set
8453 new fields on ABI object.
8454 * parse.c (operator_length_standard) <OP_TYPEID>: New case.
8455 * std-operator.def (OP_TYPEID): New.
8456
8457 2013-04-15 Tom Tromey <tromey@redhat.com>
8458
8459 * elfread.c (elf_symtab_read): Install versioned symbol under
8460 unversioned name as well.
8461
8462 2013-04-15 Tom Tromey <tromey@redhat.com>
8463
8464 PR c++/11990:
8465 * c-lang.c (cplus_language_defn): Use gdb_demangle.
8466 * c-typeprint.c (c_type_print_base): Use gdb_demangle.
8467 * cp-support.c (mangled_name_to_comp): Use gdb_demangle.
8468 (gdb_demangle): New function.
8469 * cp-support.h (gdb_demangle): Declare.
8470 * dwarf2read.c (dwarf2_physname, fixup_partial_die)
8471 (dwarf2_name): Use gdb_demangle.
8472 * gdbtypes.c (check_stub_method): Use gdb_demangle.
8473 * gnu-v3-abi.c (gnuv3_rtti_type): Strip @plt and version
8474 suffixes from name.
8475 (gnuv3_print_method_ptr): Use gdb_demangle.
8476 * jv-lang.c (java_demangle): Use gdb_demangle.
8477 * jv-typeprint.c (java_type_print_base): Use gdb_demangle.
8478 * language.c (unk_lang_demangle): Use gdb_demangle.
8479 * symtab.c (symbol_find_demangled_name)
8480 (demangle_for_lookup): Use gdb_demangle.
8481
8482 2013-04-15 Tom Tromey <tromey@redhat.com>
8483
8484 PR c++/12824:
8485 * NEWS: Update.
8486 * breakpoint.c (enum exception_event_kind) <EX_EVENT_RETHROW>:
8487 New constant.
8488 (classify_exception_breakpoint): New function.
8489 (print_it_exception_catchpoint, print_one_exception_catchpoint)
8490 (print_mention_exception_catchpoint)
8491 (print_recreate_exception_catchpoint, handle_gnu_v3_exceptions)
8492 (catch_exception_command_1): Handle "rethrow" catchpoint.
8493 (catch_rethrow_command): New function.
8494 (_initialize_breakpoint): Add "catch rethrow" command.
8495
8496 2013-04-15 Pierre Muller <muller@sourceware.org>
8497
8498 * contrib/ari/gdb_ari.sh (write_pc rule): Do not consider
8499 set_gdbarch_write_pc as deprecated anymore.
8500
8501 2013-04-15 Joel Brobecker <brobecker@adacore.com>
8502
8503 * spu-tdep.c (spu_write_pc): Add empty line after local variable
8504 declarations.
8505
8506 2013-04-13 Yao Qi <yao@codesourcery.com>
8507
8508 * ctf.c (_initialize_ctf): Include "completer.h".
8509 Call add_target_with_completer instead of add_target.
8510
8511 2013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
8512
8513 Fix GDB regression related to PR binutils/14813.
8514 * jit.c (mem_bfd_iovec_close): Return 0 for success.
8515 * minidebug.c (lzma_close): Add return value comment.
8516 * remote.c (remote_bfd_iovec_close): Return 0 for success.
8517 * solib-spu.c (spu_bfd_iovec_close): Likewise.
8518 * spu-linux-nat.c (spu_bfd_iovec_close): Likewise.
8519
8520 2013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
8521
8522 * config.in: Regenerate.
8523
8524 2013-04-12 Tom Tromey <tromey@redhat.com>
8525
8526 * dwarf2-frame.c (struct comp_unit) <dwarf_frame_buffer>: Now
8527 const.
8528 * dwarf2read.c (struct dwarf2_section_info) <buffer>: Now const.
8529 (struct die_reader_specs) <buffer>: Likewise.
8530 (die_reader_func_ftype): Make 'info_ptr' const.
8531 (struct line_header) <include_dirs, statement_program_start,
8532 statement_program_end>: Now const.
8533 (struct file_entry) <name>: Likewise.
8534 (struct partial_die_info) <sibling>: Likewise.
8535 (struct dwarf_block) <data>: Likewise.
8536 (dwarf2_read_section): Remove cast.
8537 (dwarf2_get_section_info): Make 'bufp' const.
8538 (read_index_from_section): Constify.
8539 (dw2_get_file_names_reader): Make 'info_ptr' const.
8540 (dw2_get_primary_filename_reader): Likewise.
8541 (read_comp_unit_head): Make 'info_ptr' and return type const.
8542 (read_and_check_comp_unit_head, read_and_check_type_unit_head):
8543 Likewise.
8544 (read_abbrev_offset): Constify.
8545 (dwarf2_create_include_psymtab): Make 'name' const.
8546 (create_debug_types_hash_table): Update.
8547 (read_cutu_die_from_dwo): Make 'result_info_ptr' const.
8548 (init_cutu_and_read_dies, init_cutu_and_read_dies_no_follow):
8549 Constify.
8550 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader)
8551 (load_partial_comp_unit_reader): Make 'info_ptr' const.
8552 (read_comp_units_from_section): Constify.
8553 (peek_abbrev_code, peek_die_abbrev, skip_children, skip_one_die)
8554 (locate_pdi_sibling, load_full_comp_unit_reader): Make 'info_ptr'
8555 const.
8556 (dwarf2_compute_name, setup_type_unit_groups): Constify.
8557 (create_dwo_debug_info_hash_table): Make 'info_ptr' const.
8558 (create_dwp_hash_table, dwarf2_ranges_read)
8559 (dwarf2_record_block_ranges): Constify.
8560 (read_die_and_children, read_die_and_siblings_1)
8561 (read_die_and_siblings): Make 'info_ptr' and 'new_info_ptr'
8562 const.
8563 (read_full_die_1, read_full_die): Make 'info_ptr' const.
8564 (abbrev_table_read_table): Constify.
8565 (load_partial_dies): Make 'info_ptr' const.
8566 (read_partial_die, read_attribute_value, read_attribute): Make
8567 'info_ptr' and return type const.
8568 (read_address, read_initial_length)
8569 (read_checked_initial_length_and_offset, read_offset)
8570 (read_offset_1, read_n_bytes, read_direct_string): Make 'buf'
8571 const.
8572 (read_direct_string): Make 'buf' and return type const.
8573 (read_indirect_string_at_offset, read_indirect_string_from_dwz)
8574 (read_indirect_string): Make return type const.
8575 (read_unsigned_leb128, read_signed_leb128): Make 'buf' const.
8576 (read_addr_index_from_leb128, dwarf2_read_addr_index_reader): Make
8577 'info_ptr' const.
8578 (read_str_index): Make return type const.
8579 (add_include_dir): Make 'include_dir' const.
8580 (add_file_name): Make 'name' const.
8581 (dwarf_decode_line_header): Constify.
8582 (psymtab_include_file_name): Make return type const.
8583 (dwarf_decode_lines_1, dwarf_decode_lines): Constify.
8584 (dwarf2_start_subfile): Make 'filename' const.
8585 (dwarf2_const_value_attr): Make 'bytes' const.
8586 (read_signatured_type_reader): Make 'info_ptr' const.
8587 (decode_locdesc): Constify.
8588 (skip_form_bytes): Make 'bytes', 'buffer_end', and return type
8589 const.
8590 (skip_unknown_opcode): Make 'opcode_definitions', 'mac_ptr',
8591 'mac_end', and return type const.
8592 (dwarf_parse_macro_header): Make 'mac_ptr' and return type const.
8593 (dwarf_decode_macro_bytes): Make 'mac_ptr', 'mac_end', and return
8594 type const.
8595 (per_cu_header_read_in): Constify.
8596 * symfile.h (dwarf2_get_section_info): Update.
8597
8598 2013-04-12 Tom Tromey <tromey@redhat.com>
8599
8600 * symtab.h (struct general_symbol_info) <value.bytes>: Make const.
8601
8602 2013-04-12 Eli Zaretskii <eliz@gnu.org>
8603
8604 * NEWS: Mention "show configuration", --configuration.
8605 * top.c (print_gdb_configuration): New function, displays the
8606 details about GDB configure-time parameters.
8607 (print_gdb_version): Mention "show configuration".
8608 * cli/cli-cmds.c (show_configuration): New function.
8609 (_initialize_cli_cmds): Add the "show configuration" command.
8610 * main.c (captured_main) <print_configuration>: New static var.
8611 <long_options>: Use it.
8612 If --configuration was given, call print_gdb_configuration.
8613
8614 2013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8615 Pedro Alves <palves@redhat.com>
8616
8617 * Makefile.in (HAVE_NATIVE_GCORE_TARGET): New.
8618 (generated_files): Add gcore.
8619 (install-only, uninstall): Add gcore if HAVE_NATIVE_GCORE_TARGET or
8620 HAVE_NATIVE_GCORE_HOST.
8621 (gcore): New.
8622 * NEWS (Changes since GDB 7.6): Mention newly installed gcore.
8623 * config/alpha/alpha-osf3.mh, config/i386/fbsd.mh,
8624 config/i386/fbsd64.mh, config/i386/i386gnu.mh, config/i386/i386sol2.mh,
8625 config/i386/sol2-64.mh, config/mips/irix5.mh, config/mips/irix6.mh,
8626 config/powerpc/fbsd.mh, config/sparc/fbsd.mh, config/sparc/sol2.mh:
8627 Add HAVE_NATIVE_GCORE_HOST.
8628 * configure: Regenerate.
8629 * configure.ac (HAVE_NATIVE_GCORE_TARGET): New, set it, AC_SUBST it.
8630 New AC_SUBST fir GDB_TRANSFORM_NAME and GCORE_TRANSFORM_NAME. New
8631 AC_CONFIG_FILES for gcore.
8632 * configure.tgt: Add gdb_have_gcore to the initial comment. Set
8633 gdb_have_gcore.
8634 * gdb_gcore.sh: Rename to ...
8635 * gcore.in: ... here. Remove gcore.sh comment. Use GDB_TRANSFORM_NAME
8636 and GCORE_TRANSFORM_NAME substitutions.
8637
8638 Fix parsing tabs in ${gdb_target_obs}.
8639 * configure.tgt (gdb_have_gcore): Replace case with for and if.
8640
8641 2013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8642
8643 * remote.c (unpush_and_perror): Add output message final dot.
8644
8645 2013-04-11 Yao Qi <yao@codesourcery.com>
8646
8647 * tracepoint.c (tfile_interp_line): Fit parameters line and
8648 utpp in one line.
8649
8650 2013-04-10 Joel Brobecker <brobecker@adacore.com>
8651
8652 * solib.c (solib_map_sections): Remove code overwriting
8653 SO->SO_NAME with the bfd's filename.
8654
8655 2013-04-10 Pedro Alves <palves@redhat.com>
8656
8657 * cli/cli-decode.c (integer_unlimited_completer): New function.
8658 (add_setshow_integer_cmd, add_setshow_uinteger_cmd)
8659 (add_setshow_zuinteger_unlimited_cmd): Install the "unlimited"
8660 completer.
8661 * cli/cli-setshow.c: Include "cli/cli-utils.h".
8662 (is_unlimited_literal): New function.
8663 (do_set_command): Handle literal "unlimited" arguments.
8664 * frame.c (_initialize_frame) <set backtrace limit>: Document
8665 "unlimited".
8666 * printcmd.c (_initialize_printcmd) <set print
8667 max-symbolic-offset>: Add help text.
8668 * record-full.c (_initialize_record_full) <set record full
8669 insn-number-max>: Likewise.
8670 * record.c (_initialize_record) <set record
8671 instruction-history-size, set record function-call-history-size>:
8672 Add help text.
8673 * ser-tcp.c (_initialize_ser_tcp) <set tcp connect-timeout>: Add
8674 help text.
8675 * tracepoint.c (_initialize_tracepoint) <set trace-buffer-size>:
8676 Likewise.
8677 * source.c (_initialize_source) <set listsize>: Add help text.
8678 * utils.c (initialize_utils) <set height, set width>: Likewise.
8679 <set pagination>: Mention "set height unlimited".
8680 * valprint.c (_initialize_valprint) <set print elements, set print
8681 repeats>: Document "unlimited".
8682
8683 2013-04-10 Pedro Alves <palves@redhat.com>
8684
8685 * cli/cli-cmds.c (quit_command): Call query_if_trace_running
8686 instead of disconnect_tracing.
8687 * infcmd.c (detach_command, disconnect_command): Call
8688 query_if_trace_running. Adjust.
8689 * top.c: Include "tracepoint.h".
8690 (quit_target): Delete. Contents moved ...
8691 (quit_force): ... here. Wrap each stage of teardown in
8692 TRY_CATCH. Call disconnect_tracing before detaching.
8693
8694 2013-04-10 Hui Zhu <hui@codesourcery.com>
8695 Yao Qi <yao@codesourcery.com>
8696
8697 * configure.ac: Check libbabeltrace is installed.
8698 * config.in: Regenerate.
8699 * configure: Regenerate.
8700 * Makefile.in (LIBBABELTRACE): New.
8701 (CLIBS): Add LIBBABELTRACE.
8702 * ctf.c: Include "exec.h".
8703 (CTF_EVENT_ID_STATUS, CTF_EVENT_ID_TSV_DEF): New macros.
8704 (CTF_EVENT_ID_TP_DEF, ctf_save_write_int32): New macros.
8705 (ctf_save_metadata_header): Define new type aliases in
8706 metadata.
8707 (ctf_write_header): Define event type "tsv_def" and "tp_def"
8708 in metadata. Start a new faked packet for trace status.
8709 (ctf_write_status): Write trace status to CTF.
8710 (ctf_write_uploaded_tsv): Write TSV to CTF.
8711 (ctf_write_uploaded_tp): Write tracepoint definition to CTF.
8712 (ctf_write_definition_end): End the faked packet.
8713
8714 (ctx, ctf_iter, trace_dirname): New.
8715 (start_pos): New variable.
8716 (ctf_destroy, ctf_open_dir, ctf_open): New.
8717 (SET_INT32_FIELD, SET_ARRAY_FIELD, SET_STRING_FIELD): New
8718 macros.
8719 (ctf_read_tsv, ctf_read_tp, ctf_close, ctf_files_info): New.
8720 (ctf_fetch_registers, ctf_xfer_partial): New.
8721 (ctf_get_trace_state_variable_value): New.
8722 (ctf_get_tpnum_from_frame_event): New.
8723 (ctf_get_traceframe_address): New.
8724 (ctf_trace_find, ctf_has_stack): New.
8725 (ctf_has_registers, ctf_traceframe_info, init_ctf_ops): New.
8726 (ctf_get_trace_status, ctf_read_status): New.
8727 (_initialize_ctf): New.
8728 * tracepoint.c (get_tracepoint_number): New
8729 (get_uploaded_tsv): Remove 'static'.
8730 (struct traceframe_info, trace_regblock_size): Move it to ...
8731 * tracepoint.h: ... here.
8732 (get_tracepoint_number): Declare it.
8733 (get_uploaded_tsv): Declare it.
8734
8735 * NEWS: Mention new configure option.
8736
8737 2013-04-10 Pedro Alves <palves@redhat.com>
8738 Hui Zhu <hui@codesourcery.com>
8739
8740 * breakpoint.c (dprintf_re_set): New.
8741 (initialize_breakpoint_ops): Set dprintf_breakpoint_ops re_set
8742 to dprintf_re_set.
8743
8744 2013-04-09 Joel Brobecker <brobecker@adacore.com>
8745
8746 * configure.tgt (gdb_target_obs) <powerpc-*-aix* | rs6000-*-*>:
8747 Remove solib-svr4.o from the list.
8748
8749 2013-04-09 Joel Brobecker <brobecker@adacore.com>
8750
8751 * varobj.c (update_dynamic_varobj_children) [!HAVE_PYTHON]:
8752 Use gdb_assert_not_reached instead of invalid boolean expression.
8753
8754 2013-04-09 Pedro Alves <palves@redhat.com>
8755
8756 * remote.c (unpush_and_perror): New function.
8757 (readchar, remote_serial_write): Use it.
8758
8759 2013-04-09 Markus Metzger <markus.t.metzger@intel.com>
8760
8761 * NEWS: Mention new btrace RSP packets.
8762
8763 2013-04-08 Tom Tromey <tromey@redhat.com>
8764
8765 * symmisc.c (dump_msymbols): Cast fprintf_filtered argument to
8766 long.
8767
8768 2013-04-08 Tom Tromey <tromey@redhat.com>
8769
8770 * maint.c (print_bfd_section_info): Print the section index.
8771 * symmisc.c (dump_msymbols): Print the section index.
8772
8773 2013-04-08 Tom Tromey <tromey@redhat.com>
8774
8775 PR symtab/8424:
8776 * blockframe.c (find_pc_partial_function_gnu_ifunc): Check
8777 SYMBOL_SECTION, not SYMBOL_OBJ_SECTION.
8778 * breakpoint.c (resolve_sal_pc): Update.
8779 * elfread.c (elf_gnu_ifunc_record_cache): Update.
8780 * findvar.c (struct minsym_lookup_data) <objfile>: New field.
8781 (minsym_lookup_iterator_cb): Use it.
8782 (default_read_var_value): Update.
8783 * hppa-hpux-tdep.c (hppa64_hpux_in_solib_call_trampoline):
8784 Update.
8785 * infcmd.c (jump_command): Update.
8786 * linespec.c (minsym_found): Update.
8787 * maint.c (maintenance_translate_address): Update.
8788 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Update.
8789 (prim_record_minimal_symbol_full): Don't set SYMBOL_OBJ_SECTION.
8790 * parse.c (write_exp_msymbol): Update.
8791 * printcmd.c (address_info): Update.
8792 * psymtab.c (find_pc_sect_psymbol): Update.
8793 (fixup_psymbol_section): Check SYMBOL_SECTION, not
8794 SYMBOL_OBJ_SECTION.
8795 (add_psymbol_to_bcache): Correctly initialize SYMBOL_SECTION.
8796 Don't initialize SYMBOL_OBJ_SECTION.
8797 * spu-tdep.c (spu_catch_start): Update.
8798 * stabsread.c (define_symbol): Don't set SYMBOL_SECTION.
8799 * symmisc.c (dump_msymbols, print_symbol): Update.
8800 * symtab.c (fixup_section): Don't set 'obj_section'. Change
8801 how fallback section is computed.
8802 (fixup_symbol_section): Update.
8803 (find_pc_sect_symtab, find_function_start_sal, skip_prologue_sal):
8804 Update.
8805 (allocate_symbol, initialize_symbol, allocate_template_symbol):
8806 Initialize SYMBOL_SECTION.
8807 * symtab.h (struct general_symbol_info) <section>: Update comment.
8808 <obj_section>: Remove.
8809 (SYMBOL_OBJ_SECTION): Add 'objfile' argument. Rewrite.
8810 (SYMBOL_OBJFILE): New macro.
8811
8812 2013-04-08 Tom Tromey <tromey@redhat.com>
8813
8814 * coffread.c (record_minimal_symbol): Update.
8815 * dbxread.c (record_minimal_symbol): Update.
8816 * elfread.c (record_minimal_symbol): Update.
8817 * machoread.c (macho_symtab_add_minsym): Update.
8818 * mdebugread.c (record_minimal_symbol, parse_partial_symbols):
8819 Update.
8820 * minsyms.c (prim_record_minimal_symbol): Update.
8821 (prim_record_minimal_symbol_full): Remove 'bfd_section'
8822 argument.
8823 (prim_record_minimal_symbol_and_info): Likewise.
8824 * minsyms.h (prim_record_minimal_symbol_full)
8825 (prim_record_minimal_symbol_and_info): Update.
8826 * symtab.c (allocate_symbol, initialize_symbol)
8827 (allocate_template_symbol): Initialize SYMBOL_SECTION.
8828 * xcoffread.c (record_minimal_symbol, scan_xcoff_symtab):
8829 Update.
8830
8831 2013-04-08 Tom Tromey <tromey@redhat.com>
8832
8833 PR symtab/8423:
8834 * solib-som.c (som_solib_section_offsets): Use BFD section
8835 indices. Set offsets for all sections.
8836 * somread.c (som_symtab_read): Compute BFD section for
8837 symbol. Use prim_record_minimal_symbol_and_info.
8838 (som_symfile_read): Fix comment.
8839 (struct find_section_offset_arg): New.
8840 (find_section_offset, set_section_index): New functions.
8841 (som_symfile_offsets): Use set_section_index to compute
8842 section indices.
8843
8844 2013-04-08 Tom Tromey <tromey@redhat.com>
8845
8846 * coffread.c (cs_to_section): Use gdb_bfd_section_index.
8847 * elfread.c (record_minimal_symbol, elf_symtab_read): Use
8848 gdb_bfd_section_index.
8849 * gdb_bfd.c (gdb_bfd_section_index, gdb_bfd_count_sections):
8850 New functions.
8851 * gdb_bfd.h (gdb_bfd_section_index, gdb_bfd_count_sections):
8852 Declare.
8853 * machoread.c (macho_symtab_add_minsym, macho_symfile_offsets):
8854 Update.
8855 * objfiles.c (add_to_objfile_sections_full): New function.
8856 (add_to_objfile_sections): Use it.
8857 (build_section_table): Rewrite.
8858 (objfile_relocate1): Use gdb_bfd_section_index. Update.
8859 * objfiles.h (obj_section_offset): Use gdb_bfd_section_index.
8860 (struct objfile) <sections>: Update comment.
8861 (ALL_OBJFILE_OSECTIONS): Skip sections where the_bfd_section
8862 is NULL.
8863 (ALL_OBJSECTIONS): Use it.
8864 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
8865 * solib-frv.c (frv_relocate_main_executable): Update.
8866 * solib-target.c (solib_target_relocate_section_addresses):
8867 Use gdb_bfd_section_index.
8868 * symfile.c (build_section_addr_info_from_section_table):
8869 Use gdb_bfd_section_index.
8870 (build_section_addr_info_from_bfd, place_section): Likewise.
8871 * symtab.c (fixup_section): Update.
8872 * xcoffread.c (find_targ_sec): Use gdb_bfd_section_index.
8873
8874 2013-04-08 Tom Tromey <tromey@redhat.com>
8875
8876 * minsyms.h (struct bound_minimal_symbol): New.
8877 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
8878 Remove objfile argument.
8879 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
8880 Return bound_minimal_symbol.
8881 * minsyms.c (lookup_minimal_symbol_by_pc_1)
8882 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
8883 Return bound_minimal_symbol.
8884 (in_gnu_ifunc_stub): Update.
8885 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
8886 Remove 'objfile_p' argument.
8887 (lookup_solib_trampoline_symbol_by_pc): Update.
8888 * ada-tasks.c, amd64-windows-tdep.c, arm-tdep.c,
8889 arm-wince-tdep.c, block.c, blockframe.c, breakpoint.c, btrace.c,
8890 c-valprint.c, dwarf2loc.c, elfread.c, frame.c, frv-tdep.c,
8891 glibc-tdep.c, gnu-v2-abi.c, gnu-v3-abi.c, hppa-hpux-tdep.c,
8892 i386-tdep.c, ia64-tdep.c, infcall.c, infcmd.c, jit.c,
8893 linux-fork.c, m32c-tdep.c, m68hc11-tdep.c, maint.c,
8894 mips-tdep.c, p-valprint.c, parse.c, ppc-linux-tdep.c,
8895 ppc-sysv-tdep.c, printcmd.c, rs6000-tdep.c, sh64-tdep.c,
8896 stack.c, symtab.c, tui/tui-disasm.c: Update.
8897
8898 2013-04-08 Tom Tromey <tromey@redhat.com>
8899
8900 * ada-lang.c (ada_decode_symbol): Check and set 'ada_mangled'.
8901 Use symbol's obstack, not an objfile.
8902 * coffread.c (process_coff_symbol): Update.
8903 * dwarf2read.c (fixup_go_packaging, new_symbol_full): Update.
8904 * jv-lang.c (add_class_symbol): Update.
8905 * mdebugread.c (new_symbol): Update.
8906 * minsyms.c (prim_record_minimal_symbol_full)
8907 (terminate_minimal_symbol_table): Update.
8908 * psymtab.c (add_psymbol_to_bcache): Clear entire symbol. Update.
8909 * stabsread.c (define_symbol, read_enum_type): Update.
8910 * symtab.c (symbol_set_demangled_name, symbol_get_demangled_name):
8911 Handle Ada specially.
8912 (symbol_set_language): Add 'obstack' argument.
8913 (symbol_set_names): Update.
8914 (symbol_natural_name, symbol_demangled_name): Always use
8915 ada_decode_symbol.
8916 * symtab.h (struct general_symbol_info)
8917 <language_specific::obstack>: New field.
8918 <ada_mangled>: New field.
8919 (SYMBOL_SET_LANGUAGE): Add 'obstack' argument.
8920 (symbol_set_language): Update.
8921
8922 2013-04-08 Tom Tromey <tromey@redhat.com>
8923
8924 * symtab.c (symbol_init_cplus_specific, symbol_set_demangled_name):
8925 Take an obstack, not an objfile.
8926 (symbol_set_names): Update.
8927 * symtab.h (symbol_set_demangled_name): Update.
8928
8929 2013-04-08 Tom Tromey <tromey@redhat.com>
8930
8931 * coffread.c (process_coff_symbol, coff_read_enum_type): Call
8932 allocate_symbol.
8933 * dwarf2read.c (fixup_go_packaging): Call allocate_symbol.
8934 (read_func_scope): Call allocate_template_symbol.
8935 (new_symbol_full): Call allocate_symbol.
8936 * jit.c (finalize_symtab): Call allocate_symbol.
8937 * jv-lang.c (add_class_symbol): Call allocate_symbol.
8938 * mdebugread.c (parse_symbol, new_block): Call allocate_symbol.
8939 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
8940 (common_block_end): Call allocate_symbol.
8941 * symtab.c (allocate_symbol, initialize_symbol)
8942 (allocate_template_symbol): New functions.
8943 * symtab.c (allocate_symbol, initialize_symbol)
8944 (allocate_template_symbol): Declare.
8945 * xcoffread.c (process_xcoff_symbol): Call initialize_symbol.
8946
8947 2013-04-08 Pedro Alves <palves@redhat.com>
8948 Keith Seitz <keiths@redhat.com>
8949
8950 * breakpoint.c (create_breakpoint): Rename
8951 "parse_condition_and_thread" parameter to "parse_arg". Update
8952 describing comment. If !PARSE_ARG, then error out if ARG is not
8953 the empty string after extracting the location.
8954 * breakpoint.h (create_breakpoint): Rename
8955 "parse_condition_and_thread" parameter to "parse_arg".
8956
8957 2013-04-08 Aleksandar Ristovski <aristovski@qnx.com
8958
8959 * solib-svr4.c (lm_addr_check): Add const qualifier to 'so' arg.
8960
8961 2013-04-07 Yao Qi <yao@codesourcery.com>
8962
8963 * remote.c (remote_trace_find): Change type of parameters 'addr1'
8964 and 'addr2' to CORE_ADDR.
8965 * target.c (update_current_target): Update.
8966 * target.h (struct target_ops) <to_trace_find>: Change parameter
8967 type to CORE_ADDR.
8968 * tracepoint.c (tfind_1): Change type of parameters 'addr1' and
8969 'addr2' to CORE_ADDR.
8970 (tfile_trace_find): Likewise.
8971 (tfile_get_traceframe_address): Change return type to CORE_ADDR.
8972 Change local variable 'addr' to type CORE_ADDR.
8973 * tracepoint.h (tfind_1): Update declaration.
8974
8975 2013-04-06 Eli Zaretskii <eliz@gnu.org>
8976
8977 * windows-nat.c (windows_get_absolute_argv0): Move from here...
8978 * mingw-hdep.c (windows_get_absolute_argv0): ...to here.
8979 Include main.h.
8980
8981 * windows-nat.h (windows_get_absolute_argv0): Move prototype from
8982 here...
8983 * main.h (windows_get_absolute_argv0): ...to here.
8984
8985 2013-04-05 Doug Evans <dje@google.com>
8986
8987 * dwarf2read.c (struct dwarf2_per_objfile): Tweak comment.
8988 (read_cutu_die_from_dwo): Add comments.
8989 (read_structure_type): Update comment.
8990 (read_enumeration_type, read_namespace_type): Update comment.
8991 (read_die_type, get_die_type_at_offset, get_die_type): Update comment.
8992
8993 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
8994
8995 Convert man pages to texinfo, new gdbinit.5 texinfo page.
8996 * Makefile.in (gdb.z): Remove.
8997 (install-only): Remove $(man1dir) and gdb.1 installation.
8998 * gdb.1: Remove.
8999
9000 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
9001
9002 Fix compatibility with Linux kernel 3.8.3.
9003 * linux-tdep.c (linux_find_memory_regions_full): Move variable number
9004 to more inner block. Remove parsing of NUMBER from outer block.
9005 Parse NUMBER only if KEYWORD has been identified.
9006
9007 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
9008
9009 Fix variable name shadowing.
9010 * linux-tdep.c (linux_find_memory_regions_full): Rename outer variable
9011 filename to mapsfilename and update its uses.
9012
9013 2013-04-05 Eli Zaretskii <eliz@gnu.org>
9014
9015 * Makefile.in (TAGS): Avoid warning from etags when $GDB_NM_FILE is
9016 empty. See http://sourceware.org/ml/gdb-patches/2012-08/msg00504.html
9017 and http://sourceware.org/ml/gdb-patches/2013-04/msg00055.html for
9018 details of the problem.
9019
9020 2013-04-04 Pedro Alves <palves@redhat.com>
9021 Hui Zhu <hui@codesourcery.com>
9022
9023 * breakpoint.c (validate_commands_for_breakpoint): If validating a
9024 tracepoint, reset its STEP_COUNT and call validate_actionline.
9025
9026 2013-04-03 Doug Evans <dje@google.com>
9027
9028 * dwarf2read.c (read_die_and_siblings_1): Renamed from
9029 read_die_and_siblings.
9030 (read_die_and_siblings): New function.
9031 (read_cutu_die_from_dwo): Dump die if requested.
9032 (read_die_and_children): Call read_full_die_1 and
9033 read_die_and_siblings_1.
9034 (read_full_die): Dump die if requested.
9035
9036 * dwarf2read.c (read_comp_units_from_section): Add debugging printf.
9037
9038 * dwarf2read.c (struct dwo_file): New member comp_dir.
9039 Rename member name to dwo_name. All uses updated.
9040 (hash_dwo_file): Include comp_dir in computation.
9041 (eq_dwo_file): Ditto.
9042 (lookup_dwo_file_slot): New arg comp_dir. All callers updated.
9043 (create_dwo_in_dwp, lookup_dwo_in_dwp, open_and_init_dwo_file): Ditto.
9044
9045 * psymtab.c (read_psymtabs_with_fullname): Don't call
9046 psymtab_to_fullname if the basenames are different.
9047
9048 2013-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
9049
9050 * NEWS (Changes in GDB 7.6): Update the data-disassemble for "fullname".
9051 New entry about "fullname" presence.
9052
9053 2013-04-03 Pedro Alves <palves@redhat.com>
9054
9055 * NEWS: Mention x86_64/Cygwin as new native configuration.
9056
9057 2013-04-02 Doug Evans <dje@google.com>
9058
9059 * dwarf2read.c (read_structure_type): Fix typo in comment.
9060
9061 2013-04-02 Pedro Alves <palves@redhat.com>
9062
9063 * NEWS: Mention "set/show debug aarch64", "set/show debug
9064 coff-pe-read" and "set/show debug mach-o".
9065
9066 2013-04-02 Pedro Alves <palves@redhat.com>
9067
9068 * NEWS: Mention "set/show remote trace-buffer-size-packet".
9069
9070 2013-04-02 Eli Zaretskii <eliz@gnu.org>
9071
9072 * Makefile.in (HFILES_NO_SRCDIR): Remove call-cmds.h.
9073 gdb_string.h is now in common/.
9074
9075 2013-04-02 Pedro Alves <palves@redhat.com>
9076
9077 * NEWS: Move "set debug notification" and "set trace-buffer-size"
9078 under "New options".
9079
9080 2013-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
9081
9082 Revert this patch:
9083 PR gdb/15275
9084 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
9085
9086 2013-04-02 Pedro Alves <palves@redhat.com>
9087
9088 PR gdb/15275
9089
9090 * remote.c (send_interrupt_sequence): Use remote_serial_write.
9091 (remote_serial_write): New function.
9092 (putpkt_binary, getpkt_or_notif_sane_1): Use remote_serial_write.
9093
9094 2013-04-01 Jiong Wang <jiwang@tilera.com>
9095
9096 * NEWS: Mention TILE-Gx in "New native configurations" and
9097 "New targets" sections.
9098
9099 2013-04-01 Doug Evans <dje@google.com>
9100
9101 * dwarf2read.c (lookup_signatured_type_at_offset): Delete.
9102 (process_enumeration_scope): Simplify.
9103
9104 * dwarf2read.c (struct dwarf2_per_cu_data): Move member
9105 type_unit_group ...
9106 (struct signatured_type): ... to here.
9107 (sig_type_ptr): New typedef.
9108 (type_unit_group): Delete member 't.first_cu'. Move member 'tus'
9109 out of union 't'. All uses updated.
9110 (dw2_get_file_names_reader): Assert not called for a type unit.
9111 (dw2_get_file_names): Assert not called for a type unit or type
9112 unit group.
9113 (build_type_psymtabs_reader): Assert called for a type unit.
9114 (build_type_psymtab_dependencies): Assert called for a type unit group.
9115
9116 * dwarf2read.c (free_dwo_file): Add comment.
9117 (dwarf2_per_objfile_free): Unref dwp bfd.
9118
9119 2013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
9120
9121 * coff-pe-read.c (add_pe_exported_sym): Remove unused 'dll_name_len'.
9122 (add_pe_forwarded_sym): Remove unused 'section', 'dll_name_len'.
9123 (read_pe_exported_syms): Remove unused 'exportix'.
9124 (pe_text_section_offset): Remove unused 'opthdr_ofs', 'num_entries',
9125 'export_rva', 'export_size', 'expptr', 'exp_funcbase', 'expdata',
9126 'erva', 'name_rvas', 'ordinals', 'nexp', 'ordbase', 'dll_name'.
9127
9128 2013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
9129
9130 * breakpoint.c (parse_cond_to_aexpr): Remove unused 'old_chain'.
9131 (print_it_watchpoint): Remove unused 'bl'.
9132 (say_where): Remove unused 'uiout'.
9133 (bpstat_remove_breakpoint_callback): Remove unused 'uiout'.
9134 (bkpt_breakpoint_hit): Remove unused 'b'.
9135 (internal_bkpt_print_it): Remove unused 'uiout'.
9136 * buildsym.c (augment_type_symtab): Remove unused 'i'.
9137
9138 2013-03-31 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
9139
9140 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_float): New function.
9141 (ppc64_sysv_abi_push_dummy_call): Handle complex arguments.
9142
9143 2013-03-29 Doug Evans <dje@google.com>
9144
9145 * dwarf2read.c (open_dwo_file): Renamed from open_dwop_file.
9146 Delete arg is_dwp. All callers updated.
9147 (open_dwp_file): New function.
9148 (open_and_init_dwp_file): Call it.
9149 (get_dwp_file): New function.
9150 (lookup_dwo_cutu): Call it.
9151
9152 * dwarf2read.c (open_and_init_dwp_file): Remove incorrect, and
9153 unnecessary, cleanup.
9154
9155 * dwarf2read.c (lookup_dwo_cutu): Improve complaint text.
9156
9157 * dwarf2read.c (read_cutu_die_from_dwo): New function.
9158 (lookup_dwo_unit): New function.
9159 (init_cutu_and_read_dies): Move DWO handling to new functions.
9160
9161 * dwarf2read.c (struct signatured_type): Tweak comment.
9162 (struct dwo_unit): Tweak comment.
9163 (create_debug_types_hash_table): Tweak comment. Reformat long line.
9164 (create_dwo_debug_info_hash_table): Tweak comment.
9165 (dwarf2_per_cu_offset_and_type): Tweak comment.
9166
9167 * dwarf2read.c (lookup_signatured_type): Remove complaint about
9168 missing .debug_types section.
9169
9170 2013-03-29 Yao Qi <yao@codesourcery.com>
9171
9172 * corelow.c: Include "completer.h".
9173 (_initialize_corelow): Call add_target_with_completer with
9174 argument 'filename_completer'.
9175 * tracepoint.c: Likewise.
9176 * exec.c (_initialize_exec): Likewise.
9177 * target.c (add_target): Rename to ...
9178 (add_target_with_completer): ... this. Call set_cmd_completer
9179 if parameter completer is not NULL.
9180 (add_target): New.
9181 * target.h: Include "command.h".
9182 (add_target_with_completer): Declare it.
9183
9184 2013-03-28 Joel Brobecker <brobecker@adacore.com>
9185
9186 * coffread.c (is_import_fixup_symbol): New function.
9187 (record_minimal_symbol): Use is_import_fixup_symbol to
9188 detect import fixup symbols, and discard them.
9189
9190 2013-03-28 Doug Evans <dje@google.com>
9191
9192 * dwarf2read.c (create_debug_types_hash_table): Don't allocate the
9193 types hash table until we know we need it.
9194
9195 * dwarf2read.c (create_addrmap_from_index): Complain about bad CU
9196 index numbers.
9197
9198 * dwarf2read.c (dw2_get_file_names): Delete arg "objfile".
9199 All callers updated.
9200 (dw2_print_stats): Print #read CUs too.
9201 (dump_die_shallow): Print signatured types better.
9202
9203 * dwarf2read.c (struct dwarf2_per_cu_data): Rename member
9204 info_or_types_section to section. All uses updated.
9205 (struct dwo_unit): Ditto.
9206
9207 2013-03-28 Pedro Alves <palves@redhat.com>
9208
9209 * NEWS (New options): New section.
9210 (New options): Mention set/show remote trace-status-packet.
9211 * remote.c (PACKET_qTStatus): New enumeration value.
9212 (remote_get_trace_status): Skip sending qTStatus if the packet is
9213 disabled. Use packet_ok.
9214 (_initialize_remote): Register a configuration command for
9215 qTStatus packet.
9216
9217 2013-03-28 Doug Evans <dje@google.com>
9218
9219 * symfile.c (find_separate_debug_file): Add comment.
9220 (terminate_after_last_dir_separator): Tweak comment.
9221
9222 * dwarf2read.c (create_partial_symtab): Add forward decl.
9223 (create_partial_symtab): Move to be closer to other psymtab functions.
9224 (process_psymtab_comp_unit_reader, process_psymtab_comp_unit): Ditto.
9225
9226 * dwarf2read.c (dwarf2_physname): Move declaration to better spot.
9227 (compute_symtab_includes): Remove unnecessary forward declaration.
9228 (die_needs_namespace): Add comment marking group of functions for
9229 dwarf2 name computation.
9230
9231 * typeprint.c (_initialize_typeprint): Improve type help text.
9232
9233 * python/python.c (finish_python_initialization): Provide suggestion
9234 for how to tell gdb to find its python files.
9235
9236 2013-03-28 Pedro Alves <palves@redhat.com>
9237
9238 PR gdb/15294
9239
9240 * source.c (_initialize_source): Change back "set listsize" to an
9241 integer command.
9242
9243 2013-03-27 Gareth McMullin <gareth@blacksphere.co.nz>
9244
9245 PR gdb/15275
9246 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
9247
9248 2013-03-27 Pedro Alves <palves@redhat.com>
9249
9250 * top.c (history_size): Rename to ...
9251 (history_size_setshow_var): ... this. Add comment.
9252 (show_commands): Use readline's 'history_length' instead of
9253 computing the history length by calling history_get in a loop.
9254 (set_history_size_command): Error out for sizes over INT_MAX.
9255 Restore previous history size on invalid size.
9256 (init_history): If HISTSIZE is negative, leave the history size as
9257 zero. Add comments.
9258 (init_main): Adjust.
9259
9260 2013-03-27 Pedro Alves <palves@redhat.com>
9261
9262 * coff-pe-read.c (_initialize_coff_pe_read): Rename "set debug
9263 coff_pe_read" command to "set debug coff-pe-read".
9264
9265 2013-03-27 Markus Metzger <markus.t.metzger@intel.com>
9266
9267 * record.c (command_size_to_target_size): Fix size comparison.
9268 Change parameter type from pointer to integer to integer.
9269 Update all users.
9270
9271 2013-03-27 Pierre Muller <muller@sourceware.org>
9272
9273 * windows-nat.c (handle_output_debug_string): Avoid typecast
9274 from integer of different size warning.
9275
9276 2013-03-26 Joel Brobecker <brobecker@adacore.com>
9277
9278 * windows-nat.c (handle_output_debug_string): Add empty line
9279 after local block variable definition.
9280
9281 2013-03-26 Pedro Alves <palves@redhat.com>
9282
9283 * ser-tcp.c (wait_for_connect): Make 'polls' parameter unsigned.
9284 (net_open): Make 'polls' local unsigned.
9285
9286 2013-03-26 Pedro Alves <palves@redhat.com>
9287
9288 * remote.c (_initialize_remote): Make "set remoteaddresssize"
9289 a zuinteger command instead of uinteger.
9290
9291 2013-03-26 Pedro Alves <palves@redhat.com>
9292
9293 * record-full.c (record_full_insn_num): Make it unsigned.
9294 (record_full_check_insn_num, record_full_message)
9295 (record_full_registers_change, record_full_xfer_partial): Remove
9296 record_full_insn_max_num check (it's always != 0).
9297 (record_full_info, record_full_restore): Use %u as format string.
9298 (): Use %u as format string.
9299 (set_record_full_insn_max_num): Remove record_full_insn_max_num
9300 check (it's always != 0).
9301
9302 2013-03-26 Pedro Alves <palves@redhat.com>
9303
9304 * dcache.c (_initialize_dcache): Make the "set dcache line-size"
9305 and "set dcache size" commands zuinteger instead of uinteger.
9306
9307 2013-03-26 Pedro Alves <palves@redhat.com>
9308
9309 * cris-tdep.c (_initialize_cris_tdep): Make the "set cris-version"
9310 command zuinteger instead of uinteger.
9311
9312 2013-03-26 Pedro Alves <palves@redhat.com>
9313
9314 * coff-pe-read.c (_initialize_coff_pe_read): Make the command
9315 zuinteger instead of uinteger.
9316
9317 2013-03-26 Pedro Alves <palves@redhat.com>
9318
9319 * record.c (record_insn_history_size_setshow_var)
9320 (record_call_history_size_setshow_var): New globals.
9321 (command_size_to_target_size): New function.
9322 (cmd_record_insn_history, cmd_record_call_history): Use
9323 command_size_to_target_size instead of cast.
9324 (validate_history_size, set_record_insn_history_size)
9325 (set_record_call_history_size): New functions.
9326 (_initialize_record): Install set_record_insn_history_size and
9327 set_record_call_history_size as "set" hooks of "set record
9328 instruction-history-size" and "set record
9329 function-call-history-size".
9330
9331 2013-03-26 Pedro Alves <palves@redhat.com>
9332
9333 * top.c (gdb_rl_operate_and_get_next): Replace max_input_history
9334 use with history_max_entries use. Remove FIXME note.
9335
9336 2013-03-26 Markus Metzger <markus.t.metzger@intel.com>
9337
9338 * record-btrace.c (record_btrace_close): Call
9339 record_btrace_auto_disable.
9340
9341 2013-03-25 Joel Brobecker <brobecker@adacore.com>
9342
9343 * rs6000-nat.c (fixup_breakpoints): Delete declaration.
9344
9345 2013-03-25 Doug Evans <dje@google.com>
9346
9347 * contrib/cc-with-tweaks.sh: Check exit code of dwp.
9348
9349 2013-03-25 Tom Tromey <tromey@redhat.com>
9350
9351 PR symtab/11462:
9352 * c-exp.y (exp): Add new productions for destructors after '.' and
9353 '->'.
9354 (write_destructor_name): New function.
9355
9356 2013-03-25 Tom Tromey <tromey@redhat.com>
9357
9358 PR c++/9197:
9359 * opencl-lang.c (evaluate_subexp_opencl) <STRUCTOP_STRUCT>: Use
9360 value_struct_elt, not lookup_struct_elt_type.
9361 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
9362 STRUCTOP_PTR>: Use value_struct_elt, not lookup_struct_elt_type.
9363 * expression.h (EVAL_AVOID_SIDE_EFFECTS): Update comment.
9364
9365 2013-03-25 Yao Qi <yao@codesourcery.com>
9366
9367 * ctf.c [USE_WIN32API]: Undef 'mkdir' and use 'mkdir'
9368 instead of '_mkdir'.
9369
9370 2013-03-23 Eli Zaretskii <eliz@gnu.org>
9371
9372 * windows-nat.c (windows_get_absolute_argv0): New function.
9373 * windows-nat.h: Add its prototype.
9374
9375 * main.c (get_init_files): Use filename_ncmp instead of strncmp.
9376 Use IS_DIR_SEPARATOR instead of looking for a character inside
9377 SLASH_STRING. Include filenames.h.
9378 (captured_main) [__MINGW32__]: Make argv[0] absolute, so that
9379 relocate_gdb_directory works when passed gdb_program_name.
9380 Include windows-nat.h.
9381
9382 2013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
9383
9384 * exceptions.h (enum errors): New entry TARGET_CLOSE_ERROR.
9385 * remote.c (trace_error): Remove the special handling of '2'.
9386 (readchar) <SERIAL_EOF>
9387 (readchar) <SERIAL_ERROR>
9388 (getpkt_or_notif_sane_1): Use TARGET_CLOSE_ERROR for them.
9389 (remote_get_trace_status): Call throw_exception if EX is
9390 TARGET_CLOSE_ERROR.
9391 * utils.c (perror_with_name): Rename to ...
9392 (throw_perror_with_name): ... here. New parameter errcode, describe it
9393 in the function comment.
9394 (perror_with_name): New function wrapper.
9395 * utils.h (enum errors): New stub declaration.
9396 (throw_perror_with_name): New declaration.
9397
9398 2013-03-22 Pedro Alves <palves@redhat.com>
9399 Yao Qi <yao@codesourcery.com>
9400 Mark Kettenis <kettenis@gnu.org>
9401
9402 * cli/cli-setshow.c (do_set_command) <var_uinteger>:
9403 Don't let the user set the value to UINT_MAX directly.
9404 <var_integer>: Don't let the user set the value to INT_MAX
9405 directly.
9406
9407 2013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
9408
9409 * remote.c (remote_unpush_target): New function.
9410 (remote_open_1): Remove two pop_target calls, update one comment, add
9411 comment to target_preopen call. Replace pop_target call by
9412 remote_unpush_target call.
9413 (interrupt_query, readchar, getpkt_or_notif_sane_1): Replace
9414 pop_target calls by remote_unpush_target calls.
9415
9416 2013-03-22 Pedro Alves <palves@redhat.com>
9417
9418 * linux-nat.c (linux_child_follow_fork): Don't call
9419 linux_enable_event_reporting.
9420 (linux_handle_extended_wait): Don't call
9421 linux_enable_event_reporting.
9422
9423 2013-03-22 Pedro Alves <palves@redhat.com>
9424
9425 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Define INSN macro,
9426 use it to rewrite the trampoline buffers with type gdb_byte[], and
9427 undefine the macro. Remove char* cast.
9428
9429 2013-03-21 Doug Evans <dje@google.com>
9430
9431 New commands "mt set per-command {space,time,symtab} {on,off}".
9432 * NEWS: Add entry.
9433 * event-top.c: #include "maint.h".
9434 * main.c: #include "maint.h".
9435 * maint.c: #include <sys/time.h>, <time.h>, block.h, top.h,
9436 timeval-utils.h, maint.h, cli/cli-setshow.h.
9437 (per_command_time, per_command_space): New static globals.
9438 (per_command_symtab): New static global.
9439 (per_command_setlist, per_command_showlist): New static globals.
9440 (struct cmd_stats): Move here from utils.c.
9441 (set_per_command_time): Renamed from set_display_time in utils.c
9442 and moved here. All callers updated.
9443 (set_per_command_space): Renamed from set_display_space in utils.c
9444 and moved here. All callers updated.
9445 (count_symtabs_and_blocks): New function.
9446 (report_command_stats): Moved here from utils.c. Add support for
9447 printing symtab stats. Only print data if enabled before command
9448 executed.
9449 (make_command_stats_cleanup): Ditto.
9450 (sert_per_command_cmd, show_per_command_cmd): New functions.
9451 (_initialize_maint_cmds): Add new commands
9452 mt set per-command {space,time,symtab} {on,off}.
9453 * maint.h: New file.
9454 * top.c: #include "maint.h".
9455 * utils.c (reset_prompt_for_continue_wait_time): New function.
9456 (get_prompt_for_continue_wait_time): New function.
9457 * utils.h (reset_prompt_for_continue_wait_time): Declare
9458 (get_prompt_for_continue_wait_time): Declare.
9459 (make_command_stats_cleanup): Moved to maint.h.
9460 (set_display_time, set_display_space): Moved to maint.h and renamed
9461 to set_per_command_time, set_per_command_space.
9462 * cli/cli-setshow.c (parse_cli_boolean_value): Renamed from
9463 parse_binary_operation and made non-static. Don't call error,
9464 just return an error marker. All callers updated.
9465 * cli/cli-setshow.h (parse_cli_boolean_value): Declare.
9466
9467 2013-03-21 Tom Tromey <tromey@redhat.com>
9468
9469 * symfile.c (alloc_section_addr_info): Update header. Don't set
9470 'num_sections' field.
9471 (build_section_addr_info_from_section_table): Set 'num_sections'.
9472 (build_section_addr_info_from_bfd): Likewise.
9473 (build_section_addr_info_from_objfile): Remove dead loop
9474 condition.
9475 (free_section_addr_info): Unconditionally call xfree.
9476 (relative_addr_info_to_section_offsets, addrs_section_sort)
9477 (addr_info_make_relative, syms_from_objfile_1): Remove dead loop
9478 condition.
9479 (syms_from_objfile_1): Remove dead 'if' condition. Check
9480 'num_sections'.
9481 (add_symbol_file_command): Set 'num_sections'.
9482 * symfile-mem.c (symbol_file_add_from_memory): Set
9483 'num_sections'.
9484 * somread.c (som_symfile_offsets): Remove dead loop condition.
9485 * machoread.c (macho_symfile_offsets): Remove dead 'if'.
9486 * jit.c (jit_bfd_try_read_symtab): Set 'num_sections'.
9487
9488 2013-03-21 Tom Tromey <tromey@redhat.com>
9489
9490 * tracepoint.h (decode_agent_options): Add 'trace_string'
9491 argument.
9492 * tracepoint.c (decode_agent_options): Add 'trace_string'
9493 argument.
9494 (validate_actionline): Update.
9495 (collect_symbol): Add 'trace_string' argument.
9496 (struct add_local_symbols_data) <trace_string>: New field.
9497 (do_collect_symbol): Update.
9498 (add_local_symbols): Add 'trace_string' argument.
9499 (encode_actions_1): Update.
9500 (trace_dump_actions): Update.
9501 * dwarf2loc.c (access_memory): Update.
9502 * ax.h (struct agent_expr) <tracing, trace_string>: New fields.
9503 * ax-general.c (new_agent_expr): Update.
9504 * ax-gdb.h (gen_trace_for_expr, gen_trace_for_var)
9505 (gen_trace_for_return_address): Add argument.
9506 (trace_kludge, trace_string_kludge): Remove.
9507 * ax-gdb.c (trace_kludge, trace_string_kludge): Remove.
9508 (gen_traced_pop, gen_fetch, gen_bitfield_ref, gen_expr): Update.
9509 (gen_trace_for_var): Add 'trace_string' argument.
9510 (gen_trace_for_expr, gen_trace_for_return_address): Likewise.
9511 (gen_printf, agent_eval_command_one): Update.
9512
9513 2013-03-21 Tom Tromey <tromey@redhat.com>
9514
9515 PR exp/15109:
9516 * c-exp.y (yylex): Rewrite to push all tokens onto the FIFO.
9517 Handle FILENAME token.
9518
9519 2013-03-21 Tom Tromey <tromey@redhat.com>
9520
9521 * c-exp.y (YYPRINT): Define.
9522 (c_print_token): New function.
9523
9524 2013-03-21 Tom Tromey <tromey@redhat.com>
9525
9526 * c-exp.y (%union) <sym, ivar, ivec>: Remove.
9527
9528 2013-03-21 Yao Qi <yao@codesourcery.com>
9529
9530 * ctf.c: Include "gdb_stat.h".
9531 [USE_WIN32API]: New macro 'mkdir'.
9532 (ctf_start): Use permission bits macros if they are defined.
9533
9534 2013-03-20 Keith Seitz <keiths@redhat.com>
9535
9536 * breakpoint.h (struct breakpoint): Add comment to
9537 extra_string indicating that this member is mallod'd.
9538 * breakpoint.c (base_breakpoint_dtor): Free extra_string.
9539
9540 2013-03-20 Pedro Alves <palves@redhat.com>
9541
9542 PR gdb/15289
9543
9544 * cli/cli-setshow.c (do_set_command)
9545 <var_uinteger, var_zuinteger>: Use LONGEST for variable holding
9546 the result of parsing the command argument. Throw error if the
9547 value is greater than UINT_MAX. Print the invalid value with
9548 plongest.
9549 <var_integer, var_zinteger>: Use LONGEST for variable holding the
9550 result of parsing the command argument. Throw error if the value
9551 is greater than INT_MAX, not greater or equal. Also throw error
9552 if the value is less than INT_MIN. Print the invalid value with
9553 plongest.
9554 <var_zuinteger_unlimited>: Throw error if the value is greater
9555 than INT_MAX, not greater or equal.
9556 (do_show_command) <var_integer, var_zinteger,
9557 var_zuinteger_unlimited>: Use %d for printing int, not %u.
9558
9559 2013-03-20 Tom Tromey <tromey@redhat.com>
9560
9561 * ax-gdb.c (gen_var_ref): Unconditionally call via computed ops,
9562 if possible.
9563 * dwarf2read.c (read_func_scope): Remove old FIXME.
9564 * eval.c (evaluate_subexp_standard): Check SYMBOL_COMPUTED_OPS,
9565 not LOC_COMPUTED.
9566 * findvar.c (symbol_read_needs_frame, default_read_var_value):
9567 Unconditionally call via computed ops, if possible.
9568 * printcmd.c (address_info): Unconditionally call via computed ops,
9569 if possible.
9570 * stack.c (read_frame_arg): Unconditionally call via computed ops,
9571 if possible.
9572 * symtab.c (register_symbol_computed_impl): Sanity check 'ops'.
9573 * tracepoint.c (scope_info): Unconditionally call via computed ops,
9574 if possible.
9575
9576 2013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9577 Tom Tromey <tromey@redhat.com>
9578
9579 PR symtab/8421:
9580 * coffread.c (coff_register_index): New global.
9581 (process_coff_symbol, coff_read_enum_type): Set
9582 SYMBOL_ACLASS_INDEX.
9583 (_initialize_coffread): Initialize new global.
9584 * dwarf2loc.c (locexpr_find_frame_base_location)
9585 (dwarf2_block_frame_base_locexpr_funcs)
9586 (loclist_find_frame_base_location)
9587 (dwarf2_block_frame_base_loclist_funcs): New.
9588 (dwarf_expr_frame_base_1): Call SYMBOL_BLOCK_OPS, remove internal_error.
9589 (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Add location_has_loclist.
9590 * dwarf2loc.h (dwarf2_block_frame_base_locexpr_funcs)
9591 (dwarf2_block_frame_base_loclist_funcs): New.
9592 * dwarf2read.c (dwarf2_locexpr_index, dwarf2_loclist_index)
9593 (dwarf2_locexpr_block_index, dwarf2_loclist_block_index): New
9594 globals.
9595 (read_func_scope): Update.
9596 (fixup_go_packaging, mark_common_block_symbol_computed)
9597 (var_decode_location, new_symbol_full, dwarf2_const_value):
9598 Set SYMBOL_ACLASS_INDEX.
9599 (dwarf2_symbol_mark_computed): Likewise. Add 'is_block' argument.
9600 (_initialize_dwarf2_read): Initialize new globals.
9601 * jit.c (finalize_symtab): Set SYMBOL_ACLASS_INDEX.
9602 * jv-lang.c (add_class_symbol): Set SYMBOL_ACLASS_INDEX.
9603 * mdebugread.c (mdebug_register_index, mdebug_regparm_index): New
9604 globals.
9605 (parse_symbol, psymtab_to_symtab_1): Set SYMBOL_ACLASS_INDEX.
9606 (_initialize_mdebugread): Initialize new globals.
9607 * psympriv.h (struct partial_symbol) <aclass>: Update comment.
9608 * stabsread.c (patch_block_stabs): Set SYMBOL_ACLASS_INDEX.
9609 (stab_register_index, stab_regparm_index): New globals.
9610 (define_symbol, read_enum_type, common_block_end): Set
9611 SYMBOL_ACLASS_INDEX.
9612 (_initialize_stabsread): Initialize new globals.
9613 * symtab.c (next_aclass_value, symbol_impl, symbol_impls): New
9614 globals.
9615 (MAX_SYMBOL_IMPLS): New define.
9616 (register_symbol_computed_impl, register_symbol_block_impl)
9617 (register_symbol_register_impl)
9618 (initialize_ordinary_address_classes): New functions.
9619 (_initialize_symtab): Call initialize_ordinary_address_classes.
9620 * symtab.h (enum address_class) <LOC_FINAL_VALUE>: New constant.
9621 (struct symbol_impl): New.
9622 (SYMBOL_ACLASS_BITS): New define.
9623 (struct symbol) <aclass, ops>: Remove fields.
9624 <aclass_index>: New field.
9625 (symbol_impls): Declare.
9626 (SYMBOL_CLASS, SYMBOL_COMPUTED_OPS, SYMBOL_REGISTER_OPS): Redefine.
9627 (SYMBOL_IMPL, SYMBOL_ACLASS_INDEX): New defines.
9628 (register_symbol_computed_impl, register_symbol_block_impl)
9629 (register_symbol_register_impl): Declare.
9630 (struct symbol_computed_ops): Add location_has_loclist.
9631 (struct symbol_block_ops): New.
9632 (SYMBOL_BLOCK_OPS): New.
9633 * xcoffread.c (process_xcoff_symbol): Set SYMBOL_ACLASS_INDEX.
9634
9635 2013-03-20 Tom Tromey <tromey@redhat.com>
9636
9637 * psymtab.c (find_pc_sect_psymbol, fixup_psymbol_section)
9638 (print_partial_symbols, recursively_search_psymtabs): Use
9639 PSYMBOL_CLASS.
9640
9641 2013-03-20 Pierre Muller <muller@sourceware.org>
9642
9643 * contrib/ari/gdb_ari.sh (OP eol rule): Also check
9644 addtion, subtraction, multiplication and division binary operator.
9645
9646 2013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9647
9648 Code cleanup.
9649 * bfd-target.c (target_bfd_xclose): Remove parameter quitting.
9650 * bsd-kvm.c (bsd_kvm_close): Likewise.
9651 * bsd-uthread.c (bsd_uthread_close): Likewise.
9652 * corelow.c (core_close): Likewise.
9653 (core_close_cleanup): Remove parameter quitting from a caller.
9654 * event-top.c (async_disconnect): Likewise.
9655 * exec.c (exec_close_1): Remove parameter quitting.
9656 * go32-nat.c (go32_close): Likewise.
9657 * linux-nat.c (linux_nat_close): Remove parameter quitting. Remove
9658 parameter quitting from a caller.
9659 * mips-linux-nat.c (super_close): Remove parameter quitting from the
9660 variable.
9661 (mips_linux_close): Remove parameter quitting. Remove parameter
9662 quitting from a caller.
9663 * monitor.c (monitor_close): Remove parameter quitting.
9664 * monitor.h (monitor_close): Likewise.
9665 * record-btrace.c (record_btrace_close): Likewise.
9666 * record-full.c (record_full_close): Likewise.
9667 * remote-m32r-sdi.c (m32r_close): Remove parameter quitting and remove
9668 it also from fprintf_unfiltered.
9669 * remote-mips.c (mips_close): Remove parameter quitting.
9670 (mips_detach): Remove parameter quitting from a caller.
9671 * remote-sim.c (gdbsim_close): Remove parameter quitting.
9672 (gdbsim_close): Remove duplicate function comment. Remove parameter
9673 quitting and remove it also from printf_filtered.
9674 * remote.c (remote_close): Remove parameter quitting.
9675 * solib-svr4.c (enable_break): Remove parameter quitting from a caller.
9676 * target.c (update_current_target): Remove parameter int from to_close
9677 de_fault.
9678 (push_target, unpush_target, pop_target): Remove parameter quitting from
9679 a caller.
9680 (pop_all_targets_above, pop_all_targets): Remove parameter quitting.
9681 Remove parameter quitting from a caller.
9682 (target_preopen): Remove parameter quitting from a caller.
9683 (target_close): Remove parameter quitting. Remove parameter quitting
9684 from a caller two times. Remove parameter quitting also from
9685 fprintf_unfiltered.
9686 * target.h (struct target_ops): Remove parameter quitting and as int
9687 from fields to_xclose and to_close.
9688 (extern struct target_ops current_target):
9689 (target_close, pop_all_targets): Remove parameter quitting. Update the
9690 comment.
9691 (pop_all_targets_above): Remove parameter quitting.
9692 * top.c (quit_target): Remove parameter quitting from a caller.
9693 * tracepoint.c (tfile_close): Remove parameter quitting.
9694 * windows-nat.c (windows_close): Remove parameter quitting.
9695
9696 2013-03-20 Corinna Vinschen <vinschen@redhat.com>
9697
9698 * windows-nat.c (handle_output_debug_string): Replace call
9699 to string_to_core_addr with call to strtoull.
9700
9701 2013-03-20 Yao Qi <yao@codesourcery.com>
9702
9703 * ctf.c (ctf_save_metadata_header): Define macro HOST_ENDIANNESS
9704 and write it to CTF metadata.
9705
9706 2013-03-19 Corinna Vinschen <vinschen@redhat.com>
9707
9708 * windows-nat.c (handle_output_debug_string): Change type of n to
9709 SIZE_T to avoid crash on 64 bit systems.
9710
9711 2013-03-17 Eli Zaretskii <eliz@gnu.org>
9712
9713 * python/python-internal.h (HAVE_SNPRINTF)
9714 [_WIN32 && HAVE_DECL_SNPRINTF]: Define, to avoid compiler warnings
9715 about redefinition of snprintf by pyerrors.h.
9716
9717 2013-03-15 Steve Ellcey <sellcey@mips.com>
9718
9719 * remote-sim.c (sim_command_completer): Make char arguments const.
9720
9721 2013-03-15 Tom Tromey <tromey@redhat.com>
9722
9723 PR c++/15116:
9724 * gdbtypes.c (types_equal): Handle TYPE_CODE_FUNC.
9725
9726 2013-03-14 Tom Tromey <tromey@redhat.com>
9727
9728 * gdb_bfd.c (struct gdb_bfd_data) <crc_computed, crc>:
9729 New fields.
9730 (get_file_crc): Move from symfile.c.
9731 (gdb_bfd_crc): New function.
9732 * gdb_bfd.h (gdb_bfd_crc): Declare.
9733 * objfiles.h (struct objfile) <crc32, crc32_p>: Remove.
9734 * symfile.c (get_file_crc): Move to gdb_bfd.c.
9735 (separate_debug_file_exists): Use gdb_bfd_crc.
9736
9737 2013-03-14 Tom Tromey <tromey@redhat.com>
9738
9739 * symfile.c (get_debug_link_info): Remove.
9740 (find_separate_debug_file_by_debuglink): Use
9741 bfd_get_debug_link_info.
9742
9743 2013-03-14 Tom Tromey <tromey@redhat.com>
9744
9745 * symtab.c (error_in_psymtab_expansion): New function.
9746 (lookup_symbol_aux_quick)
9747 (basic_lookup_transparent_type_quick): Remove "last resort"
9748 code. Use error_in_psymtab_expansion.
9749
9750 2013-03-14 Doug Evans <dje@google.com>
9751 Jan Kratochvil <jan.kratochvil@redhat.com>
9752
9753 * dwarf2read.c (dw2_map_symtabs_matching_filename): Put continue after
9754 any successful compare_filenames_for_search or FILENAME_CMP.
9755 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
9756 * symtab.c (iterate_over_some_symtabs): Likewise.
9757
9758 2013-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9759
9760 * source.c (print_source_lines_base): Make a local copy of
9761 symtab_to_fullname.
9762
9763 2013-03-14 Hui Zhu <hui_zhu@mentor.com>
9764 Jan Kratochvil <jan.kratochvil@redhat.com>
9765
9766 * source.c (print_source_lines_base): Suppress "file" for TUI.
9767
9768 2013-03-14 Keith Seitz <keiths@redhat.com>
9769 Alan Matsuoka <alanm@redhat.com>
9770
9771 PR c++/15203
9772 PR c++/15210
9773 * cp-namespace.c (cp_lookup_nested_symbol): Handle TYPE_CODE_FUNC and
9774 TYPE_CODE_METHOD.
9775 * elfread.c (elf_symtab_read): Handle BSF_GNU_UNIQUE for certain
9776 symbols.
9777
9778 2013-03-14 Yao Qi <yao@codesourcery.com>
9779
9780 * tracepoint.c (tfile_write_status): Write 'stop_desc' of trace
9781 status to tfile if trace is stopped by command 'tstop'.
9782
9783 2013-03-14 Yao Qi <yao@codesourcery.com>
9784
9785 * tracepoint.c (tfile_write_status): Write trace notes and user
9786 name into tfile if they are not NULL.
9787
9788 2013-03-14 Hui Zhu <hui@codesourcery.com>
9789 Yao Qi <yao@codesourcery.com>
9790
9791 * Makefile.in (REMOTE_OBS): Add ctf.o.
9792 (SFILES): Add ctf.c.
9793 (HFILES_NO_SRCDIR): Add ctf.h.
9794 * ctf.c, ctf.h: New files.
9795 * tracepoint.c: Include 'ctf.h'.
9796 (collect_pseudocommand): Remove static.
9797 (trace_save_command): Parse option "-ctf".
9798 Produce different trace file writers per option.
9799 Adjust output message.
9800 (trace_save_tfile, trace_save_ctf): New.
9801 * tracepoint.h (trace_save_tfile, trace_save_ctf): Declare.
9802 * mi/mi-main.c: Include 'ctf.h'.
9803 (mi_cmd_trace_save): Handle option '-ctf'. Call either
9804 trace_save_tfile or trace_save_ctf.
9805 * NEWS: Mention these changes.
9806
9807 2013-03-14 Yao Qi <yao@codesourcery.com>
9808
9809 * tracepoint.c (trace_file_writer_xfree): New.
9810 (struct tfile_writer_data): New.
9811 (tfile_dtor, tfile_can_target_save, tfile_start): New.
9812 (tfile_write_header, tfile_write_regblock_type): New.
9813 (tfile_write_status, tfile_write_uploaded_tsv): New.
9814 (tfile_write_uploaded_tp, tfile_write_definition_end): New.
9815 (tfile_write_raw_data, (tfile_end): New.
9816 (tfile_write_ops): New global variable.
9817 (TRACE_WRITE_R_BLOCK): New macro.
9818 (TRACE_WRITE_M_BLOCK_HEADER): New macro.
9819 (TRACE_WRITE_M_BLOCK_MEMORY): New macro.
9820 (TRACE_WRITE_V_BLOCK): New macro.
9821 (trace_save): Add extra one parameter WRITER. Make it static.
9822 Use WRITER to writer trace.
9823 (tfile_trace_file_writer_new): New.
9824 (trace_save_command): Caller update.
9825 (trace_save_tfile): Write trace data in TFILE format.
9826 * tracepoint.h (struct trace_frame_write_ops): New.
9827 (struct trace_file_write_ops): New.
9828 (struct trace_file_writer): New.
9829 (trace_save): Remove its declaration.
9830 (trace_save_tfile): Declare it.
9831 * mi/mi-main.c (mi_cmd_trace_save): Call trace_save_tfile
9832 instead of trace_save.
9833
9834 2013-03-13 Pedro Alves <palves@redhat.com>
9835
9836 * hppa-hpux-nat.c (hppa_hpux_save_state_offset): Make static.
9837
9838 2013-03-13 Pedro Alves <palves@redhat.com>
9839
9840 * dbxread.c (read_ofile_symtab, process_one_symbol): Remove
9841 commented out code.
9842 * demangle.c (current_demangling_style_string): Make it const.
9843 (set_demangling_command): Assert the demangling style is known.
9844 Remove all handling of unknown styles. Set
9845 'current_demangling_style_string' to an element of the
9846 demangling_style_names array.
9847 (set_demangling_style): Delete.
9848 (_initialize_demangler): Set current_demangling_style_string to the
9849 element of the demangling_style_names array that corresponds to
9850 the default demangling style. Remove FIXME note. Don't call
9851 set_demangling_style.
9852 * gdb-demangle.h (set_demangling_style): Remove declaration.
9853
9854 2013-03-13 Pedro Alves <palves@redhat.com>
9855
9856 * ada-lang.c (struct add_partial_datum) <text, text0, word>: Make
9857 fields const.
9858 (ada_make_symbol_completion_list): Make "text0" parameter const.
9859 * ax-gdb.c (agent_eval_command_one): Make "exp" parameter const.
9860 * breakpoint.c (condition_completer): Make "text" and "word"
9861 parameters const. Adjust.
9862 (check_tracepoint_command): Adjust to validate_actionline
9863 prototype change.
9864 (catch_syscall_completer): Make "text" and "word" parameters
9865 const.
9866 * cli/cli-cmds.c (show_user): Make "comname" local const.
9867 (valid_command_p): Make "command" parameter const.
9868 (alias_command): Make "alias_prefix" and "command_prefix" locals
9869 const.
9870 * cli/cli-decode.c (add_cmd): Make "name" parameter const.
9871 (add_alias_cmd): Make "name" and "oldname" parameters const.
9872 Adjust. No longer make copy of OLDNAME.
9873 (add_prefix_cmd, add_abbrev_prefix_cmd, add_set_or_show_cmd)
9874 (add_setshow_cmd_full, add_setshow_enum_cmd)
9875 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
9876 (add_setshow_filename_cmd, add_setshow_string_cmd)
9877 (add_setshow_string_noescape_cmd)
9878 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
9879 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
9880 (add_setshow_zuinteger_unlimited_cmd, add_setshow_zuinteger_cmd)
9881 (delete_cmd, add_info, add_info_alias, add_com, add_com_alias):
9882 Make "name" parameter const.
9883 (help_cmd): Rename "command" parameter to "arg". New const local
9884 "command".
9885 (find_cmd): Make "command" parameter const.
9886 (lookup_cmd_1): Make "text" parameter pointer to const. Adjust to
9887 deprecated_cmd_warning prototype change.
9888 (undef_cmd_error): Make "cmdtype" parameter const.
9889 (lookup_cmd): Make "line" parameter const.
9890 (deprecated_cmd_warning): Change type of "text" parameter to
9891 pointer to const char, from pointer to pointer to char. Adjust.
9892 (lookup_cmd_composition): Make "text" parameter const.
9893 (complete_on_cmdlist, complete_on_enum): Make "text" and "word"
9894 parameters const.
9895 * cli/cli-decode.h (struct cmd_list_element) <name>: Make field
9896 const.
9897 * cli/cli-script.c (validate_comname): Make "tem" local const.
9898 (define_command): New const local "tem_c". Use it in calls to
9899 lookup_cmd.
9900 (document_command): Make "tem" and "comfull" locals const.
9901 (show_user_1): Make "prefix" and "name" parameters const.
9902 * cli-script.h (show_user_1): Make "prefix" and "name" parameters
9903 const.
9904 * command.h (add_cmd, add_alias_cmd, add_prefix_cmd)
9905 (add_abbrev_prefix_cmd, completer_ftype, lookup_cmd, lookup_cmd_1)
9906 (deprecated_cmd_warning, lookup_cmd_composition, add_com)
9907 (add_com_alias, add_info, add_info_alias, complete_on_cmdlist)
9908 (complete_on_enum, add_setshow_enum_cmd)
9909 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
9910 (add_setshow_filename_cmd, add_setshow_string_cmd)
9911 (add_setshow_string_noescape_cmd)
9912 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
9913 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
9914 (add_setshow_zuinteger_cmd, add_setshow_zuinteger_unlimited_cmd):
9915 Change prototypes, constifying strings.
9916 * completer.c (noop_completer, filename_completer): Make "text"
9917 and "prefix" parameters const.
9918 (location_completer, expression_completer)
9919 (complete_line_internal): Make "text" and "prefix" parameters
9920 const and adjust.
9921 (command_completer, signal_completer): Make "text" and "prefix"
9922 parameters const.
9923 * completer.h (noop_completer, filename_completer)
9924 (expression_completer, location_completer, command_completer)
9925 (signal_completer): Change prototypes.
9926 * corefile.c (complete_set_gnutarget): Make "text" and "word"
9927 parameters const.
9928 * cp-abi.c (cp_abi_completer): Likewise.
9929 * expression.h (parse_expression_for_completion): Change
9930 prototype.
9931 * f-lang.c (f_make_symbol_completion_list): Make "text" and "word"
9932 parameters const.
9933 * infcmd.c (_initialize_infcmd): Make "cmd_name" local const.
9934 * infrun.c (handle_completer): Make "text" and "word" parameters
9935 const.
9936 * interps.c (interpreter_completer): Make "text" and "word"
9937 parameters const.
9938 * language.h (struct language_defn)
9939 <la_make_symbol_completion_list>: Make "text" and "word"
9940 parameters const.
9941 * parse.c (parse_exp_1): Move const hack to parse_exp_in_context.
9942 (parse_exp_in_context): Rename to ...
9943 (parse_exp_in_context_1): ... this.
9944 (parse_exp_in_context): Reimplement, with const hack from
9945 parse_exp_1.
9946 (parse_expression_for_completion): Make "string" parameter const.
9947 * printcmd.c (decode_format): Make "string_ptr" parameter pointer
9948 to pointer to const char. Adjust.
9949 (print_command_1): Make "exp" parameter const.
9950 (output_command): Rename to ...
9951 (output_command_const): ... this. Make "exp" parameter const.
9952 (output_command): Reimplement.
9953 (x_command): Adjust.
9954 (display_command): Rename "exp" parameter to "arg". New "exp"
9955 local, const version of "arg".
9956 * python/py-auto-load.c (gdbpy_initialize_auto_load): Make
9957 "cmd_name" local const.
9958 * python/py-cmd.c (cmdpy_destroyer): Cast const away in xfree
9959 call.
9960 (cmdpy_completer): Make "text" and "word" parameters const.
9961 (gdbpy_parse_command_name): Make "prefix_text2" local const.
9962 * python/py-param.c (add_setshow_generic): Make "tmp_name" local
9963 const.
9964 * remote.c (_initialize_remote): Make "cmd_name" local const.
9965 * symtab.c (language_search_unquoted_string): Make "text" and "p"
9966 parameters const. Adjust.
9967 (completion_list_add_fields): Make "sym_text", "text" and "word"
9968 parameters const.
9969 (struct add_name_data) <sym_text, text, word>: Make fields const.
9970 (default_make_symbol_completion_list_break_on): Make "text" and
9971 "word" parameters const. Adjust locals.
9972 (default_make_symbol_completion_list)
9973 (make_symbol_completion_list, make_symbol_completion_type)
9974 (make_symbol_completion_list_fn): Make "text" and "word"
9975 parameters const.
9976 (make_file_symbol_completion_list): Make "text", "word" and
9977 "srcfile" parameters const. Adjust locals.
9978 (add_filename_to_list): Make "text" and "word" parameters const.
9979 (struct add_partial_filename_data) <text, word>: Make fields
9980 const.
9981 (make_source_files_completion_list): Make "text" and "word"
9982 parameters const.
9983 * symtab.h (default_make_symbol_completion_list_break_on)
9984 (default_make_symbol_completion_list, make_symbol_completion_list)
9985 (make_symbol_completion_type enum type_code)
9986 (make_symbol_completion_list_fn make_file_symbol_completion_list)
9987 (make_source_files_completion_list): Change prototype.
9988 * top.c (execute_command): Adjust to pass pointer to pointer to
9989 const char to lookup_cmd, and to deprecated_cmd_warning prototype
9990 change.
9991 (set_verbose): Make "cmdname" local const.
9992 * tracepoint.c (decode_agent_options): Make "exp" parameter const,
9993 and adjust.
9994 (validate_actionline): Make "line" parameter a pointer to const
9995 char, and adjust.
9996 (encode_actions_1): Make "action_exp" local const, and adjust.
9997 (encode_actions): Adjust.
9998 (replace_comma): Delete.
9999 (trace_dump_actions): Make "action_exp" and "next_comma" locals
10000 const, and adjust. Don't frob the action string while splitting
10001 it at commas. Instead, make a copy of each split substring in
10002 turn.
10003 (trace_dump_command): Adjust to validate_actionline prototype
10004 change.
10005 * tracepoint.h (decode_agent_options, decode_agent_options)
10006 (encode_actions, validate_actionline): Change prototypes.
10007 * valprint.h (output_command): Delete declaration.
10008 (output_command_const): Declare.
10009 * value.c (function_destroyer): Cast const away in xfree call.
10010
10011 2013-03-13 Pedro Alves <palves@redhat.com>
10012
10013 * ada-lang.c (ada_decode_symbol): Cast away constness of GSYMBOL
10014 rather than casting 'const char * const *' to 'const char **'.
10015 * ada-lex.l (processInt): Make "trailer" local const. Remove
10016 'const char **' cast.
10017 * arm-linux-tdep.c (arm_stap_parse_special_token): Add 'char *'
10018 locals, and use those as strtol output pointer, instead than doing
10019 invalid casts to from 'const char **' to 'char **'.
10020 (_initialize_demangle): Remove cast.
10021 * i386-tdep.c (i386_stap_parse_special_token): : Add 'char *'
10022 locals, and use those as strtol output pointer, instead than doing
10023 invalid casts to from 'const char **' to 'char **'.
10024 * solib-dsbt.c (dsbt_get_initial_loadmaps): Remove 'gdb_byte**'
10025 casts.
10026 * stap-probe.c (stap_parse_register_operand)
10027 (stap_parse_single_operand): Likewise.
10028
10029 2013-03-13 Yao Qi <yao@codesourcery.com>
10030
10031 * tracepoint.c (tfile_get_trace_state_variable_value): Look for
10032 the last matched 'V' blcok in trace frame.
10033
10034 2013-03-12 Joel Brobecker <brobecker@adacore.com>
10035
10036 * NEWS: Create a new section for the next release branch.
10037 Rename the section of the current branch, now that it has
10038 been cut.
10039
10040 2013-03-12 Joel Brobecker <brobecker@adacore.com>
10041
10042 GDB 7.6 branch created (branch timestamp: 2013-03-12 22:15 UTC)
10043 * version.in: Bump version to 7.6.50.20130312-cvs.
10044
10045 2013-03-12 Keith Seitz <keiths@redhat.com>
10046
10047 * mi/mi-cmds.h (mi_execute_command): Make "cmd" const.
10048 * mi/mi-interp.c (mi_interpreter_exec): Make "command" const.
10049 Remove temporary copy of input string.
10050 (mi_execute_command_wrapper): Make "cmd" const.
10051 * mi/mi-main.c (mi_execute_command): Make "string_ptr" const.
10052 * mi/mi-parse.c (mi_parse_argv): Make "args" const.
10053 Use const strings.
10054 (mi_parse): Make "cmd" const.
10055 Use const strings.
10056 * mi/mi-parse.h (mi_parse): Make "cmd" const.
10057
10058 2013-03-12 Keith Seitz <keiths@redhat.com>
10059
10060 * ada-lang.c (ada_read_renaming_var_value): Pass const
10061 pointer to expression string to parse_exp_1.
10062 (create_excep_cond_exprs): Likewise.
10063 * ax-gdb.c (agent_eval_command_one): Likewise.
10064 (maint_agent_printf_command): Likewise.
10065 Constify much of the string handling/parsing.
10066 * breakpoint.c (set_breakpoint_condition): Pass const
10067 pointer to expression string to parse_exp_1.
10068 (update_watchpoint): Likewise.
10069 (parse_cmd_to_aexpr): Constify string handling.
10070 Pass const pointer to parse_exp_1.
10071 (init_breakpoint_sal): Pass const pointer to parse_exp_1.
10072 (find_condition_and_thread): Likewise.
10073 Make TOK const.
10074 (watch_command_1): Make "arg" const.
10075 Constify string handling.
10076 Copy the expression string instead of changing the input
10077 string.
10078 (update_breakpoint_location): Pass const pointer to
10079 parse_exp_1.
10080 * eval.c (parse_and_eval_address): Make "exp" const.
10081 (parse_to_comma_and_eval): Make "expp" const.
10082 (parse_and_eval): Make "exp" const.
10083 * expression.h (parse_expression): Make argument const.
10084 (parse_exp_1): Make first argument const.
10085 * findcmd.c (parse_find_args): Treat "args" as const.
10086 * linespec.c (parse_linespec): Pass const pointer to
10087 linespec_expression_to_pc.
10088 (linespec_expression_to_pc): Make "exp_ptr" const.
10089 * parse.c (parse_exp_1): Make "stringptr" const.
10090 Make a copy of the expression to pass to parse_exp_in_context until
10091 this whole interface can be constified.
10092 (parse_expression): Make "string" const.
10093 * printcmd.c (ui_printf): Treat "arg" as const.
10094 Handle const strings.
10095 * tracepoint.c (validate_actionline): Pass const pointer to
10096 all calls to parse_exp_1.
10097 (encode_actions_1): Likewise.
10098 * value.h (parse_to_comma_and_eval): Make argument const.
10099 (parse_and_eval_address): Likewise.
10100 (parse_and_eval): Likewise.
10101 * varobj.c (varobj_create): Pass const pointer to parse_exp_1.
10102 (varobj_set_value): Likewise.
10103 * cli/cli-cmds.c (disassemble_command): Treat "arg" as const and
10104 constify string handling.
10105 Pass const pointers to parse_and_eval_address and
10106 parse_to_comman_and_eval.
10107 * cli/cli-utils.c (skip_to_space): Rename to ...
10108 (skip_to_space_const): ... this. Handle const strings.
10109 * cli/cli-utils.h (skip_to_space): Turn into macro which invokes
10110 skip_to_space_const.
10111 (skip_to_space_const): Declare.
10112 * common/format.c (parse_format_string): Make "arg" const.
10113 Handle const strings.
10114 * common/format.h (parse_format_string): Make "arg" const.
10115 * gdbserver/ax.c (ax_printf): Make "format" const.
10116 * python/python.c (gdbpy_parse_and_eval): Do not make a copy
10117 of the expression string.
10118
10119 2013-03-12 Hui Zhu <hui@codesourcery.com>
10120
10121 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Update error message.
10122
10123 2013-03-12 Yao Qi <yao@codesourcery.com>
10124 Hui Zhu <hui@codesourcery.com>
10125
10126 * dwarf2loc.c (access_memory): Change nbits to nbytes in gdb_assert.
10127 (dwarf2_compile_expr_to_ax): Call access_memory in DW_OP_deref and
10128 DW_OP_deref_size.
10129
10130 2013-03-12 Paul Hilfinger <hilfingr@adacore.com>
10131
10132 * ada-lex.l (rules): Only recognize 'thread' as a
10133 delimiter when followed by numerals, as for c-exp.y.
10134 Use new rewind_to_char function to rewind the input for
10135 expression-delimiting tokens.
10136 (rewind_to_char): New function.
10137
10138 2013-03-11 Pedro Alves <palves@redhat.com>
10139 Jan Kratochvil <jan.kratochvil@redhat.com>
10140
10141 * configure: Regenerate.
10142 * configure.ac (check dynamic export flag): Link python test with
10143 $PYTHON_LIBS.
10144
10145 2013-03-11 Doug Evans <dje@google.com>
10146 Keith Seitz <keiths@redhat.com>
10147
10148 * linespec.c (find_linespec_symbols): Call find_function_symbols
10149 first, and then call lookup_prefix_sym/find_method.
10150
10151 2013-03-11 Pedro Alves <palves@redhat.com>
10152
10153 * charset.c (convert_between_encodings): Don't cast between
10154 different pointer to pointer types. Instead, make the 'inp' local
10155 be of the type iconv expects.
10156 (wchar_iterate): Don't cast between different pointer to pointer
10157 types. Instead, use new pointer local of the type iconv expects.
10158 * target.c (target_read_stralloc, target_fileio_read_stralloc):
10159 Add new local of type char pointer, and use it to get a
10160 char/string view of the byte buffer, instead of casting between
10161 pointer to pointer types.
10162
10163 2013-03-11 Hafiz Abid Qadeer <abidh@codesourcery.com>
10164
10165 * remote.c (remote_set_trace_buffer_size): Move != operator
10166 to the start of next line to fix an ARI warning.
10167
10168 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10169
10170 * NEWS: Add record changes.
10171
10172 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10173
10174 * record-btrace.c (btrace_insn_history): Omit the pc prefix in
10175 the instruction history disassembly.
10176 * disasm.c (dump_insns): Omit the pc prefix, if requested.
10177 * disasm.h (DISASSEMBLY_OMIT_PC): New.
10178
10179 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10180
10181 * Makefile.in (SFILES): Add record-btrace.c
10182 (COMMON_OBS): Add record-btrace.o
10183 * record-btrace.c: New.
10184 * objfiles.c: Include btrace.h.
10185 (free_objfile): call btrace_free_objfile.
10186
10187 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10188
10189 * target.c (target_call_history, target_call_history_from,
10190 target_call_history_range): New.
10191 * target.h (target_ops) <to_call_history, to_call_history_from,
10192 to_call_history_range>: New fields.
10193 (target_call_history, target_call_history_from,
10194 target_call_history_range): New declaration.
10195 * record.c (get_call_history_modifiers, cmd_record_call_history,
10196 record_call_history_size): New.
10197 (_initialize_record): Add the "record function-call-history" command.
10198 Add "set/show record function-call-history-size" commands.
10199 * record.h (record_print_flag): New.
10200
10201 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10202
10203 * target.h (target_ops) <to_insn_history, to_insn_history_from,
10204 to_insn_history_range>: New fields.
10205 (target_insn_history): New.
10206 (target_insn_history_from): New.
10207 (target_insn_history_range): New.
10208 * target.c (target_insn_history): New.
10209 (target_insn_history_from): New.
10210 (target_insn_history_range): New.
10211 * record.c: Include cli/cli-utils.h, disasm.h, ctype.h.
10212 (record_insn_history_size): New.
10213 (get_insn_number): New.
10214 (get_context_size): New.
10215 (no_chunk): New.
10216 (get_insn_history_modifiers): New.
10217 (cmd_record_insn_history): New.
10218 (_initialize_record): Add "set/show record instruction-history-size"
10219 command. Add "record instruction-history" command.
10220
10221 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10222
10223 * record.h (record_disconnect): New.
10224 (record_detach): New.
10225 (record_mourn_inferior): New.
10226 (record_kill): New.
10227 * record-full.c (record_disconnect, record_detach,
10228 record_mourn_inferior, record_kill): Move to...
10229 * record.c: ...here.
10230 (DEBUG): New.
10231 (record_stop): New.
10232 (record_unpush): New.
10233 (cmd_record_stop): Call record_stop. Replace unpush_target
10234 call with record_unpush call.
10235 (record_disconnect, record_detach): Assert that the target
10236 is of record stratum. Call record_unpush, record_stop, and
10237 DEBUG.
10238 (record_mourn_inferior, record_kill): Assert that the target
10239 is of record stratum. Call record_unpush and DEBUG.
10240
10241 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10242
10243 * record-full.h, record-full.c (record_memory_query): Rename
10244 to ...
10245 (record_full_memory_query): ...this. Update all users.
10246 (record_arch_list_add_reg): Rename to ...
10247 (record_full_arch_list_add_reg): ...this. Update all users.
10248 (record_arch_list_add_mem): Rename to ...
10249 (record_full_arch_list_add_mem): ...this. Update all users.
10250 (record_arch_list_add_end): Rename to ...
10251 (record_full_arch_list_add_end): ...this. Update all users.
10252 (record_gdb_operation_disable_set): Rename to ...
10253 (record_full_gdb_operation_disable_set): ...this.
10254 Update all users.
10255
10256 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10257
10258 * record-full.c (DEFAULT_RECORD_INSN_MAX_NUM): Renamed to ...
10259 (DEFAULT_RECORD_FULL_INSN_MAX_NUM): ... this. Updated all users.
10260 (RECORD_IS_REPLAY): Renamed to ...
10261 (RECORD_FULL_IS_REPLAY): ... this. Updated all users.
10262 (RECORD_FILE_MAGIC): Renamed to ...
10263 (RECORD_FULL_FILE_MAGIC): ... this. Updated all users.
10264 (record_mem_entry): Renamed to ...
10265 (record_full_mem_entry): ... this. Updated all users.
10266 (record_reg_entry): Renamed to ...
10267 (record_full_reg_entry): ... this. Updated all users.
10268 (record_end_entry): Renamed to ...
10269 (record_full_end_entry): ... this. Updated all users.
10270 (record_type) <record_end, record_reg, record_mem>: Renamed
10271 to ...
10272 (record_full_type) <record_full_end, record_full_reg,
10273 record_full_mem>: ... this. Updated all users.
10274 (record_entry): Renamed to ...
10275 (record_full_entry): ... this. Updated all users.
10276 (record_core_buf_entry): Renamed to ...
10277 (record_full_core_buf_entry): ... this. Updated all users.
10278 (record_core_regbuf): Renamed to ...
10279 (record_full_core_regbuf): ... this. Updated all users.
10280 (record_core_start): Renamed to ...
10281 (record_full_core_start): ... this. Updated all users.
10282 (record_core_end): Renamed to ...
10283 (record_full_core_end): ... this. Updated all users.
10284 (record_core_buf_list): Renamed to ...
10285 (record_full_core_buf_list): ... this. Updated all users.
10286 (record_first): Renamed to ...
10287 (record_full_first): ... this. Updated all users.
10288 (record_list): Renamed to ...
10289 (record_full_list): ... this. Updated all users.
10290 (record_arch_list_head): Renamed to ...
10291 (record_full_arch_list_head): ... this. Updated all users.
10292 (record_arch_list_tail): Renamed to ...
10293 (record_full_arch_list_tail): ... this. Updated all users.
10294 (record_stop_at_limit): Renamed to ...
10295 (record_full_stop_at_limit): ... this. Updated all users.
10296 (record_insn_max_num): Renamed to ...
10297 (record_full_insn_max_num): ... this. Updated all users.
10298 (record_insn_num): Renamed to ...
10299 (record_full_insn_num): ... this. Updated all users.
10300 (record_insn_count): Renamed to ...
10301 (record_full_insn_count): ... this. Updated all users.
10302 (record_ops): Renamed to ...
10303 (record_full_ops): ... this. Updated all users.
10304 (record_core_ops): Renamed to ...
10305 (record_full_core_ops): ... this. Updated all users.
10306 (set_record_cmdlist): Renamed to ...
10307 (set_record_full_cmdlist): ... this. Updated all users.
10308 (show_record_cmdlist): Renamed to ...
10309 (show_record_full_cmdlist): ... this. Updated all users.
10310 (record_cmdlist): Renamed to ...
10311 (record_full_cmdlist): ... this. Updated all users.
10312 (record_beneath_to_resume_ops): Renamed to ...
10313 (record_full_beneath_to_resume_ops): ... this. Updated all users.
10314 (record_beneath_to_resume): Renamed to ...
10315 (record_full_beneath_to_resume): ... this. Updated all users.
10316 (record_beneath_to_wait_ops): Renamed to ...
10317 (record_full_beneath_to_wait_ops): ... this. Updated all users.
10318 (record_beneath_to_wait): Renamed to ...
10319 (record_full_beneath_to_wait): ... this. Updated all users.
10320 (record_beneath_to_store_registers_ops): Renamed to ...
10321 (record_full_beneath_to_store_registers_ops): ... this.
10322 Updated all users.
10323 (record_beneath_to_store_registers): Renamed to ...
10324 (record_full_beneath_to_store_registers): ... this.
10325 Updated all users.
10326 (record_beneath_to_xfer_partial_ops): Renamed to ...
10327 (record_full_beneath_to_xfer_partial_ops): ... this.
10328 Updated all users.
10329 (record_beneath_to_xfer_partial): Renamed to ...
10330 (record_full_beneath_to_xfer_partial): ... this.
10331 Updated all users.
10332 (record_beneath_to_insert_breakpoint): Renamed to ...
10333 (record_full_beneath_to_insert_breakpoint): ... this.
10334 Updated all users.
10335 (record_beneath_to_stopped_by_watchpoint): Renamed to ...
10336 (record_full_beneath_to_stopped_by_watchpoint): ... this.
10337 Updated all users.
10338 (record_beneath_to_stopped_data_address): Renamed to ...
10339 (record_full_beneath_to_stopped_data_address): ... this.
10340 Updated all users.
10341 (record_beneath_to_async): Renamed to ...
10342 (record_full_beneath_to_async): ... this. Updated all users.
10343 (record_goto_insn): Renamed to ...
10344 (record_full_goto_insn): ... this. Updated all users.
10345 (record_save): Renamed to ...
10346 (record_full_save): ... this. Updated all users.
10347 (record_reg_alloc): Renamed to ...
10348 (record_full_reg_alloc): ... this. Updated all users.
10349 (record_reg_release): Renamed to ...
10350 (record_full_reg_release): ... this. Updated all users.
10351 (record_mem_alloc): Renamed to ...
10352 (record_full_mem_alloc): ... this. Updated all users.
10353 (record_mem_release): Renamed to ...
10354 (record_full_mem_release): ... this. Updated all users.
10355 (record_end_alloc): Renamed to ...
10356 (record_full_end_alloc): ... this. Updated all users.
10357 (record_end_release): Renamed to ...
10358 (record_full_end_release): ... this. Updated all users.
10359 (record_entry_release): Renamed to ...
10360 (record_full_entry_release): ... this. Updated all users.
10361 (record_list_release): Renamed to ...
10362 (record_full_list_release): ... this. Updated all users.
10363 (record_list_release_following): Renamed to ...
10364 (record_full_list_release_following): ... this.
10365 Updated all users.
10366 (record_list_release_first): Renamed to ...
10367 (record_full_list_release_first): ... this. Updated all users.
10368 (record_arch_list_add): Renamed to ...
10369 (record_full_arch_list_add): ... this. Updated all users.
10370 (record_get_loc): Renamed to ...
10371 (record_full_get_loc): ... this. Updated all users.
10372 (record_check_insn_num): Renamed to ...
10373 (record_full_check_insn_num): ... this. Updated all users.
10374 (record_arch_list_cleanups): Renamed to ...
10375 (record_full_arch_list_cleanups): ... this. Updated all users.
10376 (record_message): Renamed to ...
10377 (record_full_message): ... this. Updated all users.
10378 (record_message_wrapper): Renamed to ...
10379 (record_full_message_wrapper): ... this. Updated all users.
10380 (record_message_wrapper_safe): Renamed to ...
10381 (record_full_message_wrapper_safe): ... this. Updated all users.
10382 (record_gdb_operation_disable): Renamed to ...
10383 (record_full_gdb_operation_disable): ... this. Updated all users.
10384 (record_hw_watchpoint): Renamed to ...
10385 (record_full_hw_watchpoint): ... this. Updated all users.
10386 (record_exec_insn): Renamed to ...
10387 (record_full_exec_insn): ... this. Updated all users.
10388 (record_restore): Renamed to ...
10389 (record_full_restore): ... this. Updated all users.
10390 (record_async_inferior_event_token): Renamed to ...
10391 (record_full_async_inferior_event_token): ... this.
10392 Updated all users.
10393 (record_async_inferior_event_handler): Renamed to ...
10394 (record_full_async_inferior_event_handler): ... this.
10395 Updated all users.
10396 (record_core_open_1): Renamed to ...
10397 (record_full_core_open_1): ... this. Updated all users.
10398 (record_open_1): Renamed to ...
10399 (record_full_open_1): ... this. Updated all users.
10400 (record_open): Renamed to ...
10401 (record_full_open): ... this. Updated all users.
10402 (record_close): Renamed to ...
10403 (record_full_close): ... this. Updated all users.
10404 (record_resume_step): Renamed to ...
10405 (record_full_resume_step): ... this. Updated all users.
10406 (record_resumed): Renamed to ...
10407 (record_full_resumed): ... this. Updated all users.
10408 (record_execution_dir): Renamed to ...
10409 (record_full_execution_dir): ... this. Updated all users.
10410 (record_resume): Renamed to ...
10411 (record_full_resume): ... this. Updated all users.
10412 (record_get_sig): Renamed to ...
10413 (record_full_get_sig): ... this. Updated all users.
10414 (record_sig_handler): Renamed to ...
10415 (record_full_sig_handler): ... this. Updated all users.
10416 (record_wait_cleanups): Renamed to ...
10417 (record_full_wait_cleanups): ... this. Updated all users.
10418 (record_wait_1): Renamed to ...
10419 (record_full_wait_1): ... this. Updated all users.
10420 (record_wait): Renamed to ...
10421 (record_full_wait): ... this. Updated all users.
10422 (record_stopped_by_watchpoint): Renamed to ...
10423 (record_full_stopped_by_watchpoint): ... this. Updated all users.
10424 (record_disconnect): Renamed to ...
10425 (record_full_disconnect): ... this. Updated all users.
10426 (record_detach): Renamed to ...
10427 (record_full_detach): ... this. Updated all users.
10428 (record_mourn_inferior): Renamed to ...
10429 (record_full_mourn_inferior): ... this. Updated all users.
10430 (record_kill): Renamed to ...
10431 (record_full_kill): ... this. Updated all users.
10432 (record_stopped_data_address): Renamed to ...
10433 (record_full_stopped_data_address): ... this. Updated all users.
10434 (record_registers_change): Renamed to ...
10435 (record_full_registers_change): ... this. Updated all users.
10436 (record_store_registers): Renamed to ...
10437 (record_full_store_registers): ... this. Updated all users.
10438 (record_xfer_partial): Renamed to ...
10439 (record_full_xfer_partial): ... this. Updated all users.
10440 (record_breakpoint): Renamed to ...
10441 (record_full_breakpoint): ... this. Updated all users.
10442 (record_breakpoint_p): Renamed to ...
10443 (record_full_breakpoint_p): ... this. Updated all users.
10444 (record_breakpoints): Renamed to ...
10445 (record_full_breakpoints): ... this. Updated all users.
10446 (record_sync_record_breakpoints): Renamed to ...
10447 (record_full_sync_record_breakpoints): ... this.
10448 Updated all users.
10449 (record_init_record_breakpoints): Renamed to ...
10450 (record_full_init_record_breakpoints): ... this.
10451 Updated all users.
10452 (record_insert_breakpoint): Renamed to ...
10453 (record_full_insert_breakpoint): ... this. Updated all users.
10454 (record_remove_breakpoint): Renamed to ...
10455 (record_full_remove_breakpoint): ... this. Updated all users.
10456 (record_can_execute_reverse): Renamed to ...
10457 (record_full_can_execute_reverse): ... this. Updated all users.
10458 (record_get_bookmark): Renamed to ...
10459 (record_full_get_bookmark): ... this. Updated all users.
10460 (record_goto_bookmark): Renamed to ...
10461 (record_full_goto_bookmark): ... this. Updated all users.
10462 (record_async): Renamed to ...
10463 (record_full_async): ... this. Updated all users.
10464 (record_can_async_p): Renamed to ...
10465 (record_full_can_async_p): ... this. Updated all users.
10466 (record_is_async_p): Renamed to ...
10467 (record_full_is_async_p): ... this. Updated all users.
10468 (record_execution_direction): Renamed to ...
10469 (record_full_execution_direction): ... this. Updated all users.
10470 (record_info): Renamed to ...
10471 (record_full_info): ... this. Updated all users.
10472 (record_delete): Renamed to ...
10473 (record_full_delete): ... this. Updated all users.
10474 (record_is_replaying): Renamed to ...
10475 (record_full_is_replaying): ... this. Updated all users.
10476 (record_goto_entry): Renamed to ...
10477 (record_full_goto_entry): ... this. Updated all users.
10478 (record_goto_begin): Renamed to ...
10479 (record_full_goto_begin): ... this. Updated all users.
10480 (record_goto_end): Renamed to ...
10481 (record_full_goto_end): ... this. Updated all users.
10482 (record_goto): Renamed to ...
10483 (record_full_goto): ... this. Updated all users.
10484 (init_record_ops): Renamed to ...
10485 (init_record_full_ops): ... this. Updated all users.
10486 (record_core_resume): Renamed to ...
10487 (record_full_core_resume): ... this. Updated all users.
10488 (record_core_kill): Renamed to ...
10489 (record_full_core_kill): ... this. Updated all users.
10490 (record_core_fetch_registers): Renamed to ...
10491 (record_full_core_fetch_registers): ... this. Updated all users.
10492 (record_core_prepare_to_store): Renamed to ...
10493 (record_full_core_prepare_to_store): ... this. Updated all users.
10494 (record_core_store_registers): Renamed to ...
10495 (record_full_core_store_registers): ... this. Updated all users.
10496 (record_core_xfer_partial): Renamed to ...
10497 (record_full_core_xfer_partial): ... this. Updated all users.
10498 (record_core_insert_breakpoint): Renamed to ...
10499 (record_full_core_insert_breakpoint): ... this. Updated all users.
10500 (record_core_remove_breakpoint): Renamed to ...
10501 (record_full_core_remove_breakpoint): ... this. Updated all users.
10502 (record_core_has_execution): Renamed to ...
10503 (record_full_core_has_execution): ... this. Updated all users.
10504 (init_record_core_ops): Renamed to ...
10505 (init_record_full_core_ops): ... this. Updated all users.
10506 (cmd_record_restore): Renamed to ...
10507 (cmd_record_full_restore): ... this. Updated all users.
10508 (record_save_cleanups): Renamed to ...
10509 (record_full_save_cleanups): ... this. Updated all users.
10510 (cmd_record_start): Renamed to ...
10511 (cmd_record_full_start): ... this. Updated all users.
10512 (set_record_insn_max_num): Renamed to ...
10513 (set_record_full_insn_max_num): ... this. Updated all users.
10514 (set_record_command): Renamed to ...
10515 (set_record_full_command): ... this. Updated all users.
10516 (show_record_command): Renamed to ...
10517 (show_record_full_command): ... this. Updated all users.
10518 (_initialize_record): Renamed to ...
10519 (_initialize_record_full): ... this. Updated all users.
10520
10521 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10522
10523 * record.h: Split into this and ...
10524 * record-full.h: ... this.
10525 * record.c: Split into this and ...
10526 * record-full.c: ... this.
10527 * target.h (target_ops): Add new fields to_info_record,
10528 to_save_record, to_delete_record, to_record_is_replaying,
10529 to_goto_record_begin, to_goto_record_end, to_goto_record.
10530 (target_info_record): New.
10531 (target_save_record): New.
10532 (target_supports_delete_record): New.
10533 (target_delete_record): New.
10534 (target_record_is_replaying): New.
10535 (target_goto_record_begin): New.
10536 (target_goto_record_end): New.
10537 (target_goto_record): New.
10538 * target.c (target_info_record): New.
10539 (target_save_record): New.
10540 (target_supports_delete_record): New.
10541 (target_delete_record): New.
10542 (target_record_is_replaying): New.
10543 (target_goto_record_begin): New.
10544 (target_goto_record_end): New.
10545 (target_goto_record): New.
10546 * record.h: Declare struct cmd_list_element.
10547 (record_cmdlist): New declaration.
10548 (set_record_cmdlist): New declaration.
10549 (show_record_cmdlist): New declaration.
10550 (info_record_cmdlist): New declaration.
10551 (cmd_record_goto): New declaration.
10552 * record.c: Remove unnecessary includes.
10553 Include inferior.h.
10554 (cmd_record_goto): Remove declaration.
10555 (record_cmdlist): Now extern. Initialize.
10556 (set_record_cmdlist): Now extern. Initialize.
10557 (show_record_cmdlist): Now extern. Initialize.
10558 (info_record_cmdlist): Now extern. Initialize.
10559 (find_record_target): New.
10560 (require_record_target): New.
10561 (cmd_record_start): Update.
10562 (cmd_record_delete): Remove target-specific code.
10563 Call target_delete_record.
10564 (cmd_record_stop): Unpush any record target.
10565 (set_record_insn_max_num): Move to record-full.c
10566 (set_record_command): Add comment.
10567 (show_record_command): Add comment.
10568 (info_record_command): Update comment.
10569 Remove target-specific code.
10570 Call the record target's to_info_record.
10571 (cmd_record_start): New.
10572 (cmd_record_goto): Now extern.
10573 Remove target-specific code.
10574 Call target_goto_begin, target_goto_end, or target_goto.
10575 (_initialize_record): Move record target ops initialization to
10576 record-full.c.
10577 Change "record" command help text.
10578 Move "record restore", "record set", and "record show" commands to
10579 record-full.c.
10580 * Makefile.in (SFILES): Add record-full.c.
10581 (HFILES_NO_SRCDIR): Add record-full.h.
10582 (COMMON_OBS): Add record-full.o.
10583 * amd64-linux-tdep.c: Include record-full.h instead of record.h.
10584 * arm-tdep.c: Include record-full.h.
10585 * i386-linux-tdep.c: Include record-full.h instead of record.h.
10586 * i386-tdep.c: Include record-full.h.
10587 * infrun.c: Include record-full.h.
10588 * linux-record.c: Include record-full.h.
10589 * moxie-tdep.c: Include record-full.h.
10590 * record-full.c: Include record-full.h.
10591 Change module comment.
10592 (set_record_full_cmdlist): New.
10593 (show_record_full_cmdlist): New.
10594 (record_full_cmdlist): New.
10595 (record_goto_insn): New declaration.
10596 (record_save): New declaration.
10597 (record_check_insn_num): Change query string.
10598 (record_info): New.
10599 (record_delete): New.
10600 (record_is_replaying): New.
10601 (record_goto_entry): New.
10602 (record_goto_begin): New.
10603 (record_goto_end): New.
10604 (record_goto): New.
10605 (init_record_ops): Update.
10606 (init_record_core_ops): Update.
10607 (cmd_record_save): Rename to record_save. Remove target and arg checks.
10608 (cmd_record_start): New.
10609 (set_record_insn_max_num): Moved from record.c
10610 (set_record_full_command): New.
10611 (show_record_full_command): New.
10612 (_initialize_record_full): New.
10613
10614 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10615
10616 * target.h (add_deprecated_target_alias): New.
10617 * target.c (add_deprecated_target_alias): New.
10618
10619 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10620
10621 * common/linux-btrace.c: Include sys/ptrace, sys/types, sys/wait.h,
10622 and signal.h.
10623 (linux_supports_btrace): Add kernel and
10624 cpuid check.
10625 (kernel_supports_btrace): New function.
10626 (cpu_supports_btrace): New function.
10627 (intel_supports_btrace): New function.
10628
10629 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10630
10631 * target.h (enum target_object): Add TARGET_OBJECT_BTRACE.
10632 * remote.c: Include btrace.h.
10633 (struct btrace_target_info): New struct.
10634 (remote_supports_btrace): New function.
10635 (send_Qbtrace): New function.
10636 (remote_enable_btrace): New function.
10637 (remote_disable_btrace): New function.
10638 (remote_teardown_btrace): New function.
10639 (remote_read_btrace): New function.
10640 (init_remote_ops): Add btrace ops.
10641 (enum <unnamed>): Add btrace packets.
10642 (struct protocol_feature remote_protocol_features[]): Add btrace packets.
10643 (_initialize_remote): Add packet configuration for branch tracing.
10644
10645 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10646
10647 * features/btrace.dtd: New file.
10648 * Makefile.in (XMLFILES): Add btrace.dtd.
10649 * btrace.h (parse_xml_btrace): New declaration.
10650 * btrace.c: Include xml-support.h.
10651 (parse_xml_btrace): New function.
10652 (parse_xml_btrace_block): New function.
10653 (block_attributes): New struct.
10654 (btrace_attributes): New struct.
10655 (btrace_children): New struct.
10656 (btrace_elements): New struct.
10657
10658 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10659
10660 * amd64-linux-nat.c: Include btrace.h and linux-btrace.h.
10661 (amd64_linux_enable_btrace): New.
10662 (amd64_linux_disable_btrace): New.
10663 (amd64_linux_teardown_btrace): New.
10664 (_initialize_amd64_linux_nat): Initialize btrace ops.
10665 * i386-linux.nat.c: Include btrace.h and linux-btrace.h.
10666 (i386_linux_enable_btrace): New.
10667 (i386_linux_disable_btrace): New.
10668 (i386_linux_teardown_btrace): New.
10669 (_initialize_i386_linux_nat): Initialize btrace ops.
10670 * config/i386/linux.mh: Add linux-btrace.o.
10671 * config/i386/linux64.mh: Add linux-btrace.o.
10672
10673 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10674
10675 * common/linux_btrace.h: New file.
10676 * common/linux_btrace.c: New file.
10677 * Makefile.in (SFILES): Add btrace.c.
10678 (HFILES_NO_SRCDIR): Add common/linux-btrace.h.
10679 (COMMON_OBS): Add btrace.o.
10680 (linux-btrace.o): New rule.
10681
10682 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10683
10684 * target.h: Include btrace.h.
10685 (struct target_ops) <to_supports_btrace, to_enable_btrace,
10686 to_disable_btrace, to_teardown_btrace, to_read_btrace>: New.
10687 * target.c (target_supports_btrace): New function.
10688 (target_enable_btrace): New function.
10689 (target_disable_btrace): New function.
10690 (target_teardown_btrace): New function.
10691 (target_read_btrace): New function.
10692 * btrace.h: New file.
10693 * btrace.c: New file.
10694 * Makefile.in: Add btrace.c.
10695 * gdbthread.h: Include btrace.h.
10696 (struct thread_info): Add btrace field.
10697 * thread.c: Include btrace.h.
10698 (clear_thread_inferior_resources): Call target_teardown_btrace.
10699 * common/btrace-common.h: New file.
10700
10701 2013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10702
10703 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Call also kill
10704 for CHILD, ignore PTRACE_KILL errors, move the inner block variable
10705 kill_status to outer block.
10706
10707 2013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10708
10709 Fix entry-values if the callee called a noreturn function.
10710 * dwarf2-frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
10711 get_frame_address_in_block. Add new comment.
10712
10713 2013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10714
10715 Fix entry-values in C++ across CUs.
10716 * dwarf2loc.c (call_site_to_target_addr) <FIELD_LOC_KIND_PHYSNAME>: Use
10717 lookup_minimal_symbol. Add a comment.
10718 * dwarf2read.c
10719 (read_call_site_scope) <is_ref_attr> <die_is_declaration>: Prefer
10720 DW_AT_linkage_name.
10721
10722 2013-03-08 Yao Qi <yao@codesourcery.com>
10723
10724 * tracepoint.c (_initialize_tracepoint): Indent the code.
10725
10726 2013-03-08 Pedro Alves <palves@redhat.com>
10727
10728 * findcmd.c (put_bits): Change type of parameter to 'gdb_byte *'.
10729 (parse_find_args, find_command): Change type of pattern buffer
10730 locals to 'gdb_byte *'.
10731
10732 2013-03-08 Stan Shebs <stan@codesourcery.com>
10733 Hafiz Abid Qadeer <abidh@codesourcery.com>
10734
10735 * NEWS: Mention set and show trace-buffer-size commands.
10736 Mention new packet.
10737 * target.h (struct target_ops): New method
10738 to_set_trace_buffer_size.
10739 (target_set_trace_buffer_size): New macro.
10740 * target.c (update_current_target): Set up new method.
10741 * tracepoint.c (trace_buffer_size): New global.
10742 (start_tracing): Send it to the target.
10743 (set_trace_buffer_size): New function.
10744 (_initialize_tracepoint): Add new setshow for trace-buffer-size.
10745 * remote.c (remote_set_trace_buffer_size): New function.
10746 (_initialize_remote): Use it.
10747 (QTBuffer:size) New remote command.
10748 (PACKET_QTBuffer_size): New enum.
10749 (remote_protocol_features): Add an entry for
10750 PACKET_QTBuffer_size.
10751
10752 2013-03-08 Tom Tromey <tromey@redhat.com>
10753
10754 * remote-m32r-sdi.c (m32r_load): Call skip_spaces on correct
10755 variable.
10756
10757 2013-03-07 Pedro Alves <palves@redhat.com>
10758
10759 * target.c (target_read_stralloc, target_fileio_read_alloc):
10760 *Cast pointer to 'gdb_byte *' in target call.
10761
10762 2013-03-07 Pedro Alves <palves@redhat.com>
10763
10764 * corefile.c (read_memory_string): Cast pointer to gdb_byte* in
10765 call.
10766
10767 2013-03-07 Keith Seitz <keiths@redhat.com>
10768
10769 * breakpoint.c (catch_syscall_split_args): Use skip_spaces.
10770 (trace_pass_command): Likewise.
10771 * cli/cli-cmds.c: Include cli/cli-utils.h.
10772 (source_command): Use skip-spaces.
10773 (disassemble_command): Likewise.
10774 * findcmd.c: Include cli/cli-utils.h.
10775 (parse_find_args): Use skip_spaces.
10776 * go32-nat.c: Include cli/cli-utils.h.
10777 (go32_sldt): Use skip_spaces.
10778 (go32_sgdt): Likewise.
10779 (go32_sidt): Likewise.
10780 (go32_pde): Likewise.
10781 (go32_pte): Likewise.
10782 (go32_pte_for_address): Likewise.
10783 * infcmd.c: Include cli/cli-utils.h.
10784 (registers_info): Use skip_spaces.
10785 * linux-tdep.c (read_mapping): Use skip_spaces_const.
10786 (linux_info_proc): Likewise.
10787 * linux-thread-db.c: Include cli/cli-utils.h.
10788 (info_auto_load_libthread_db): Use skip_spaces_const.
10789 * m32r-rom.c: Include cli/cli-utils.h.
10790 (m32r_upload_command): Use skip_spaces.
10791 * maint.c: Include cli/cli-utils.h.
10792 (maintenance_translate_address): Use skip_spaces.
10793 * mi/mi-parse.c: Include cli/cli-utils.h.
10794 (mi_parse_argv): Use skip_spaces.
10795 (mi_parse): Likewise.
10796 * minsyms.c: Include cli/cli-utils.h.
10797 (msymbol_hash_iw): Use skip_spaces_const.
10798 * objc-lang.c: Include cli/cli-utils.h.
10799 (parse_selector): Use skip_spaces.
10800 (parse_method): Likewise.
10801 * python/python.c: Include cli/cli-utils.h.
10802 (python_interactive_command)[HAVE_PYTHON]: Use skip_spaces.
10803 (python_command)[HAVE_PYTHON]: Likewise.
10804 (python_interactive_command)[!HAVE_PYTHON]: Likewise.
10805 * remote-m32r-sdi.c: Include cli/cli-utils.h.
10806 (m32r_load): Use skip_spaces.
10807 * serial.c: Include cli/cli-utils.h.
10808 (serial_open): Use skip_spaces_const.
10809 * stack.c: Include cli/cli-utils.h.
10810 (parse_frame_specification_1): Use skip_spaces_const.
10811 * symfile.c: Include cli/cli-utils.h.
10812 (set_ext_lang_command): Use skip_spaces.
10813 * symtab.c: Include cli/cli-utils.h.
10814 (rbreak_command): Use skip_spaces.
10815 * thread.c (thread_name_command): Use skip_spaces.
10816 * tracepoint.c (validate_actionline): Use skip_spaces.
10817 (encode_actions_1): Likewise.
10818 (trace_find_range_command): Likewise.
10819 (trace_find_outside_command): Likewise.
10820 (trace_dump_actions): Likewise.
10821
10822 2013-03-07 Pedro Alves <palves@redhat.com>
10823
10824 * c-lang.c (parse_one_string): Cast argument to gdb_byte *.
10825 * expprint.c (print_subexp_standard): Likewise.
10826 * utils.c (host_char_to_target): Likewise.
10827 * valprint.c (generic_emit_char, generic_printstr): Likewise.
10828 * varobj.c (value_get_print_value): Change type of local to char*.
10829 Cast it gdb_byte * in call to language printer.
10830
10831 2013-03-07 Pedro Alves <palves@redhat.com>
10832
10833 * charset.c (struct wchar_iterator) <input>: Change type to 'const
10834 gdb_byte *'.
10835 (make_wchar_iterator): Remove cast to char*.
10836 (wchar_iterate): Change type of local.
10837
10838 2013-03-07 Pedro Alves <palves@redhat.com>
10839
10840 * regcache.c (regcache_xmalloc_1): Call XCALLOC with signed char
10841 for 'regcache->register_status'.
10842
10843 2013-03-07 Pedro Alves <palves@redhat.com>
10844
10845 * breakpoint.c (breakpoint_xfer_memory): Change type of local to
10846 int.
10847
10848 2013-03-07 Pedro Alves <palves@redhat.com>
10849
10850 * stap-probe.c (handle_stap_probe): Add cast to char*.
10851
10852 2013-03-07 Pedro Alves <palves@redhat.com>
10853
10854 * linux-record.c (record_linux_system_call) <gdb_sys_msgrcv,
10855 RECORD_MSGRCV>: Pass a signed variable to
10856 regcache_raw_read_signed, instead of an unsigned one.
10857
10858 2013-03-07 Pedro Alves <palves@redhat.com>
10859
10860 * remote-notif.c (notif_debug): Change type to int.
10861 * remote-notif.h (notif_debug): Likewise.
10862
10863 2013-03-07 Pedro Alves <palves@redhat.com>
10864
10865 * ser-tcp.c (tcp_retry_limit): Change type to unsigned int.
10866
10867 2013-03-07 Pedro Alves <palves@redhat.com>
10868
10869 * remote.c (hex2bin, bin2hex): Move extern declarations to ...
10870 * remote.h (hex2bin, bin2hex): ... here.
10871 * tracepoint.c (hex2bin, bin2hex): Remove extern declarations.
10872
10873 2013-03-07 Eli Zaretskii <eliz@gnu.org>
10874
10875 * utils.c (initialize_utils): Improve doc strings of "set/show
10876 width", "set/show height", and "set/show pagination".
10877
10878 2013-03-06 Keith Seitz <keiths@redhat.com>
10879
10880 * ax-gdb.c (gen_printf): Make FORMAT const.
10881 * ax-gdb.h (gen_printf): Likewise.
10882 * ax-general.c (ax_string): Make STR const.
10883 * ax.h (ax_string): Likewise.
10884
10885 2013-03-06 Doug Evans <dje@google.com>
10886
10887 * elfread.c (elf_symfile_read): Move debugging printf to more
10888 logical location.
10889
10890 2013-03-06 Pedro Alves <palves@redhat.com>
10891
10892 * python/py-utils.c (target_string_to_unicode): Delete function.
10893 * python/python-internal.h (target_string_to_unicode): Delete
10894 declaration.
10895
10896 2013-03-06 Pierre Muller <muller@sourceware.org>
10897
10898 * linespec.c (get_current_search_block): ARI fix, use (void)
10899 for empty parameter list.
10900
10901 2013-03-05 Doug Evans <dje@google.com>
10902
10903 * ada-lang.c (ada_lookup_symbol_list_worker): New function, contents
10904 of old ada_lookup_symbol_list. In !full_search case, don't
10905 search superblocks.
10906 (ada_lookup_symbol_list): Delete arg full_search, all callers
10907 updated. Call ada_lookup_symbol_list_worker.
10908 (ada_iterate_over_symbols): Call ada_lookup_symbol_list_worker.
10909 * ada-lang.h (ada_lookup_symbol_list): Update.
10910 * language.h (language_defn): Update comment for
10911 la_iterate_over_symbols.
10912 * linespec.c (iterate_over_file_blocks): New function.
10913 (iterate_over_all_matching_symtabs): Call it.
10914 (lookup_prefix_sym): Ditto.
10915 (get_current_search_block): New function.
10916 (get_search_block): Delete.
10917 (find_label_symbols): Call get_current_search_block.
10918 (add_matching_symbols_to_info): Call iterate_over_file_blocks.
10919 * symtab.c (iterate_over_symbols): Don't search superblocks.
10920
10921 2013-03-05 Yao Qi <yao@codesourcery.com>
10922
10923 * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): Change
10924 parameter VAR's type from "unsigned int" to "int".
10925 * command.h (var_zuinteger_unlimited): Update its comments.
10926 (add_setshow_zuinteger_unlimited_cmd): Update the declaration.
10927
10928 2013-03-05 Corinna Vinschen <vinschen@redhat.de>
10929
10930 * NEWS: Mention new target x86_64-*-cygwin*.
10931
10932 2013-03-05 Corinna Vinschen <vinschen@redhat.de>
10933
10934 * configure.host: Add x86_64-*-cygwin* as host.
10935 * configure.tgt: Add x86_64-*-cygwin* as target.
10936 * config/i386/cygwin64.mh: New file.
10937
10938 2013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
10939
10940 * linespec.c (decode_line_2): Fix duplicate request off by two message.
10941
10942 2013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
10943
10944 * linespec.c (struct linespec_canonical_name): New.
10945 (struct linespec_state): Change canonical_names type to it.
10946 (add_sal_to_sals): Change variable canonical_name to canonical. Change
10947 xrealloc element size. Initialize the different CANONICAL fields.
10948 (canonical_to_fullform): New.
10949 (filter_results): Use it. Add variables canonical, fullform and
10950 cleanup.
10951 (struct decode_line_2_item, decode_line_2_compare_items): New.
10952 (decode_line_2): Remove variables iter and item_names, add variables
10953 items and items_count. Modify the code for these new variables.
10954
10955 2013-03-04 Corinna Vinschen <vinschen@redhat.com>
10956
10957 * coff-pe-read.c (read_pe_exported_syms): Don't return without
10958 calling do_cleanup.
10959
10960 2013-03-04 Luis Machado <lgustavo@codesourcery.com>
10961
10962 * tracepoint.c (build_traceframe_info): Add code for byte order.
10963
10964 2013-03-02 Kevin Buettner <kevinb@redhat.com>
10965
10966 * v850-tdep.c: (v850e2_register_name): Revise system register
10967 names to match current V850E2M architecture specifications.
10968 Update register number enum comments too.
10969
10970 2013-03-01 Jiong Wang <jiwang@tilera.com>
10971 Pedro Alves <palves@redhat.com>
10972
10973 * tilegx-tdep.c (tilegx_analyze_prologue): Limit bundle reading
10974 to END_ADDR.
10975 (tilegx_skip_prologue): Limit prologue analysis to section end.
10976
10977 2013-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10978
10979 * dwarf2loc.c (call_site_find_chain_1): New variable save_callee_pc,
10980 use it.
10981
10982 2013-03-01 Pedro Alves <palves@redhat.com>
10983
10984 Use gdb_byte for bytes from the program being debugged.
10985
10986 * arm-tdep.c (arm_store_return_value, arm_get_longjmp_target):
10987 Change type of local 'buf' to gdb_byte.
10988 * avr-tdep.c (avr_frame_prev_register, avr_push_dummy_call): Likewise.
10989 * bfin-tdep.c (bfin_push_dummy_call): Likewise.
10990 * cris-tdep.c (cris_sigcontext_addr)
10991 (cris_sigtramp_frame_unwind_cache): Likewise.
10992 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp)
10993 (frv_linux_sigcontext_reg_addr, frv_linux_sigtramp_frame_cache):
10994 Likewise.
10995 * frv-tdep.c (frv_pseudo_register_write, frv_analyze_prologue): Likewise.
10996 * hppa-hpux-tdep.c (hppa32_hpux_find_global_pointer)
10997 (hppa32_hpux_search_dummy_call_sequence)
10998 (hppa_hpux_supply_save_state): Likewise.
10999 * hppa-linux-tdep.c (insns_match_pattern)
11000 (hppa_linux_find_global_pointer): Likewise.
11001 * hppa-tdep.c (hppa_in_function_epilogue_p)
11002 (skip_prologue_hard_way, hppa_frame_cache): Likewise.
11003 * i386-nto-tdep.c (i386nto_sigcontext_addr): Likewise.
11004 * i386fbsd-tdep.c (i386fbsd_supply_uthread)
11005 (i386fbsd_collect_uthread): Likewise.
11006 * ia64-hpux-tdep.c (ia64_hpux_push_dummy_code): Likewise.
11007 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address): Likewise.
11008 * ia64-tdep.c (examine_prologue, ia64_frame_cache)
11009 (ia64_frame_prev_register, ia64_sigtramp_frame_cache)
11010 (ia64_sigtramp_frame_prev_register, ia64_access_reg)
11011 (ia64_access_rse_reg, ia64_libunwind_frame_this_id)
11012 (ia64_libunwind_frame_prev_register)
11013 (ia64_libunwind_sigtramp_frame_this_id)
11014 (ia64_find_global_pointer_from_dynamic_section)
11015 (find_extant_func_descr, find_func_descr, ia64_dummy_id)
11016 (ia64_unwind_pc): Likewise.
11017 * iq2000-tdep.c (iq2000_store_return_value): Likewise.
11018 * m68hc11-tdep.c (m68hc11_push_dummy_call)
11019 (m68hc11_extract_return_value): Likewise.
11020 * m68klinux-nat.c (fetch_register, store_register): Likewise.
11021 * mep-tdep.c (mep_pseudo_cr32_read, mep_pseudo_cr32_write)
11022 (mep_get_insn, mep_push_dummy_call): Likewise.
11023 * mips-linux-tdep.c (mips_linux_get_longjmp_target)
11024 (mips_linux_in_dynsym_stub): Likewise.
11025 * mn10300-tdep.c (mep_pseudo_cr32_write): Likewise.
11026 * ppc-linux-nat.c (fetch_register, store_register): Likewise.
11027 * regcache.c (dump_endian_bytes): Change type of parameter 'buf'
11028 to gdb_byte.
11029 * remote-mips.c (mips_set_register): Likewise.
11030 * remote-sim.c (gdbsim_fetch_register): Likewise.
11031 * score-tdep.c (score7_fetch_inst): Change type of parameter
11032 'memblock' and local 'buf' to gdb_byte.
11033 (score7_malloc_and_get_memblock): Change return type to gdb_byte.
11034 Change type of local 'buf' to gdb_byte. Adjust.
11035 (score7_adjust_memblock_ptr): Change type of parameter 'memblock'
11036 to gdb_byte**.
11037 (score7_analyze_prologue): Change type of 'memblock' and
11038 'memblock_ptr' locals to gdb_byte*.
11039 * sh64-tdep.c (sh64_extract_return_value)
11040 (sh64_store_return_value): Change type of local 'buf' to gdb_byte.
11041 * solib-darwin.c (darwin_current_sos, darwin_read_exec_load_addr):
11042 * solib-pa64.c (pa64_solib_create_inferior_hook)
11043 (pa64_open_symbol_file_object): Remove local 'buf'.
11044 * solib-som.c (som_solib_create_inferior_hook, link_map_start)
11045 (som_open_symbol_file_object): Likewise.
11046 * solib-spu.c (spu_current_sos): Likewise.
11047 * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
11048 * spu-multiarch.c (parse_spufs_run, spu_fetch_registers)
11049 (spu_store_registers): Likewise.
11050 * target.c (debug_print_register): Likewise.
11051 * tic6x-tdep.c (tic6x_get_longjmp_target): Likewise.
11052 * xstormy16-tdep.c (xstormy16_store_return_value)
11053 (xstormy16_push_dummy_call, xstormy16_resolve_jmp_table_entry)
11054 (xstormy16_find_jmp_table_entry): Likewise.
11055
11056 2013-03-01 Jiong Wang <jiwang@tilera.com>
11057
11058 * tilegx-tdep.c (tilegx_get_longjmp_target): New function.
11059 (tilegx_gdbarch_init): Install it.
11060
11061 2013-02-28 Tom Tromey <tromey@redhat.com>
11062
11063 * python/py-arch.c (archpy_disassemble): Use PyInt_Check and
11064 PyLong_Check.
11065
11066 2013-02-28 Doug Evans <dje@google.com>
11067
11068 * python/py-finishbreakpoint.c (bpfinishpy_init): gcc -Wall lint.
11069 * python/python.c (gdbpy_find_pc_line): Ditto.
11070
11071 2013-02-28 Tom Tromey <tromey@redhat.com>
11072
11073 * contrib/excheck.py: New file.
11074 * contrib/exsummary.py: New file.
11075 * contrib/gcc-with-excheck: New file.
11076
11077 2013-02-28 Tom Tromey <tromey@redhat.com>
11078
11079 * python/python.c (gdbpy_print_stack): Call begin_line and
11080 fprintf_filtered inside TRY_CATCH.
11081
11082 2013-02-28 Tom Tromey <tromey@redhat.com>
11083
11084 * python/python.c (gdbpy_find_pc_line): Call find_pc_line
11085 inside TRY_CATCH.
11086
11087 2013-02-28 Tom Tromey <tromey@redhat.com>
11088
11089 * py-finishbreakpoint.c (bpfinishpy_init): Reorganize to call
11090 frame_object_to_frame_info inside TRY_CATCH.
11091
11092 2013-02-28 Tom Tromey <tromey@redhat.com>
11093
11094 * py-block.c (gdbpy_block_for_pc): Call block_for_pc inside
11095 TRY_CATCH.
11096
11097 2013-02-28 Tom Tromey <tromey@redhat.com>
11098
11099 * objfiles.h (ALL_PSPACE_OBJFILES): Remove trailing backlash.
11100
11101 2013-02-27 Corinna Vinschen <vinschen@redhat.com>
11102
11103 * windows-nat.c: Throughout, fix format strings and casts of
11104 printf-like functions to avoid type related warnings on all
11105 platforms.
11106 (handle_output_debug_string): Fetch context information address
11107 from debug string using string_to_core_addr.
11108
11109 2013-02-27 Jiong Wang <jiwang@tilera.com>
11110
11111 * regformats/reg-tilegx.dat (name): Change abi name to "tilegx".
11112 * regformats/reg-tilegx32.dat: New.
11113
11114 2013-02-27 Jiong Wang <jiwang@tilera.com>
11115
11116 * configure.tgt (tilegx-*-linux*): Enable gdbserver.
11117
11118 2013-02-27 Jiong Wang <jiwang@tilera.com>
11119
11120 * configure.tgt (tilegx-*-linux*): Replace whitespace with tab.
11121
11122 2013-02-27 Yao Qi <yao@codesourcery.com>
11123 Pedro Alves <palves@redhat.com>
11124
11125 * tracepoint.c (tfile_trace_find): For tfind
11126 pc/tp/range/outside, look for the next trace frame instead of
11127 always starting from frame 0.
11128
11129 2013-02-26 Anthony Green <green@moxielogic.com>
11130
11131 * configure.tgt: Add support for moxie-*-rtems* target.
11132
11133 2013-02-25 Pedro Alves <palves@redhat.com>
11134
11135 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Change
11136 warning text.
11137
11138 2013-02-24 Maciej W. Rozycki <macro@codesourcery.com>
11139
11140 * mips-tdep.c (mips32_scan_prologue): Reset frame_offset to zero
11141 if $fp is used as the virtual frame pointer.
11142
11143 2013-02-23 Alan Modra <amodra@gmail.com>
11144
11145 * elfread.c (elf_symtab_read): Do not use udata.p here to find
11146 symbol size.
11147 * ppc64-tdep.c (ppc64_elf_make_msymbol_special): New function.
11148 * ppc64-tdep.h (ppc64_elf_make_msymbol_special): Declare.
11149 * ppc-linux-tdep.c (ppc_linux_init_abi): Set up to use the above.
11150 * ppcfbsd-tdep.c (ppcfbsd_init_abi): Likewise.
11151
11152 2013-02-22 Jan Kratochvil <jan.kratochvil@redhat.com>
11153
11154 Code cleanup.
11155 * elfread.c (build_id_bfd_get): Make the return type const.
11156 (build_id_verify): Make the check parameter const.
11157 (build_id_to_debug_filename): Make the build_id parameter and variable
11158 data const.
11159 (find_separate_debug_file_by_buildid): Make the variable build_id const.
11160
11161 2013-02-21 Alan Modra <amodra@gmail.com>
11162
11163 * elfread.c (build_id_bfd_get): Adjust for elf_tdata changes.
11164
11165 2013-02-20 Siva Chandra Reddy <sivachandra@google.com>
11166
11167 Add a new method 'disassemble' to gdb.Architecture class.
11168 * python/py-arch.c (archpy_disassmble): Implementation of the
11169 new method gdb.Architecture.disassemble.
11170 (arch_object_methods): Add entry for the new method.
11171
11172 2013-02-20 Jiong Wang <jiwang@tilera.com>
11173
11174 * MAINTAINERS (Write After Approval): Add myself to the list.
11175
11176 2013-02-19 Pedro Alves <palves@redhat.com>
11177
11178 Garbage collect 'struct monitor_ops'::load_routine.
11179
11180 * monitor.h (struct monitor_ops) <load_routine>: Remove field.
11181 * monitor.c (monitor_load): No longer call
11182 current_monitor->load_routine.
11183 * dbug-rom.c (init_dbug_cmds): Don't set 'load_routine'.
11184 * m32r-rom.c (init_m32r_cmds): Don't set 'load_routine'.
11185 * ppcbug-rom.c (init_ppc_cmds): Don't set 'load_routine'.
11186
11187 2013-02-19 Pedro Alves <palves@redhat.com>
11188
11189 PR gdb/15161
11190
11191 Harmonize with generic_load.
11192
11193 * monitor.c: Include "readline/readline.h".
11194 (monitor_load): Rename parameter 'file' to 'args'. Use build_argv
11195 instead of sscanf. Use CORE_ADDR/strtoulst instead of unsigned
11196 long/strtol for the 'load_offset' local. Error out if no argument
11197 is given or if too many arguments are given. Tilde expand the
11198 passed in file name.
11199
11200 2013-02-19 Kai Tietz <ktietz@redhat.com>
11201
11202 PR gdb/15161
11203 * symfile.c (load_section_data): Change type of load_offset
11204 to CORE_ADDR.
11205 (generic_load): User strtoulst instead of strtoul for conversion
11206 of load_offset.
11207
11208 2013-02-19 Jiong Wang <jiwang@tilera.com>
11209
11210 * tilegx-tdep.c (tilegx_analyze_prologue): add check for
11211 for return address, "lr" register, saved on stack.
11212 * tilegx-tdep.c (tilegx_frame_cache): update "PC" reg
11213 after we invoke tilegx_analyze_prologue.
11214
11215 2013-02-19 Jiong Wang <jiwang@tilera.com>
11216
11217 * tilegx-tdep.c (itilegx_gdbarch_init): char type should be signed.
11218
11219 2013-02-19 Jiong Wang <jiwang@tilera.com>
11220
11221 * tilegx-tdep.c (tilegx_skip_prologue): Use skip_prologue_using_sal.
11222
11223 2013-02-19 Jiong Wang <jiwang@tilera.com>
11224
11225 * tilegx-tdep.c (INT_SWINT_1_SIGRETURN): New macro.
11226 (tilegx_write_pc): New function.
11227 (tilegx_cannot_reference_register): Return zero if REGNO
11228 is TILEGX_FAULTNUM_REGNUM.
11229 (tilegx_gdbarch_init): Add call to set_gdbarch_write_pc.
11230 (tilegx_register_name): Add handling of "faultnum" register.
11231 * tilegx-tdep.h (enum tilegx_regnum): Add TILEGX_FAULTNUM_REGNUM.
11232 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Add
11233 handling of TILEGX_FAULTNUM_REGNUM.
11234 * tilegx-linux-nat.c (regmap): Add entry for TILEGX_FAULTNUM_REGNUM.
11235
11236 2013-02-19 Jiong Wang <jiwang@tilera.com>
11237
11238 * tilegx-tdep.c (tilegx_push_dummy_call): args pushed on stack
11239 should be aligned to 64bit.
11240
11241 2013-02-19 Kai Tietz <ktietz@redhat.com>
11242
11243 * windows-nat.c (windows_xfer_memory): Fix debug-output
11244 for LLP64.
11245
11246 2013-02-19 Lei Liu <lei.liu2@windriver.com>
11247
11248 * mips-linux-nat.c (mips64_linux_regsets_store_registers):
11249 Don't check DSP register number if HAVE_DSP is not set.
11250
11251 2013-02-19 Alan Modra <amodra@gmail.com>
11252
11253 * elfread.c (struct build_id): Delete. Use struct elf_build_id
11254 throughout file instead.
11255 (build_id_bfd_get): Update to use new elf_tdata build_id field.
11256 Don't xmalloc return value.
11257 (build_id_verify): Similarly. Don't xfree.
11258 (build_id_to_debug_filename): Update.
11259 (find_separate_debug_file_by_buildid): Update, don't xfree.
11260
11261 2013-02-18 Tom Tromey <tromey@redhat.com>
11262
11263 PR gdb/15102:
11264 * dwarf2read.c (read_subrange_type): Use result of
11265 'check_typedef'.
11266
11267 2013-02-16 Yuanhui Zhang <asmwarrior@gmail.com>
11268
11269 * frame.c: Remove one extra white space after #include
11270 directive.
11271
11272 2013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
11273
11274 * contrib/cc-with-tweaks.sh: Extend the comment for -p option.
11275
11276 2013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
11277
11278 * gdb-gdb.gdb.in: Wrap set complaints, b internal_error, b info_command
11279 and dir commands into an if block.
11280
11281 2013-02-15 Sanimir Agovic <sanimir.agovic@intel.com>
11282
11283 * python/py-breakpoint (struct pybp_code): Use int instead of
11284 enum type_code.
11285
11286 2013-02-15 Pedro Alves <pedro@codesourcery.com>
11287 Hafiz Abid Qadeer <abidh@codesourcery.com>
11288
11289 * NEWS: Mention new field "trace-file".
11290 * tracepoint.c (trace_status_mi): Output "trace-file" field.
11291 (tfile_open): Record the trace file's filename in the trace
11292 status.
11293 (tfile_files_info): Mention the name of the trace file.
11294 Check the "filename" field explicitely.
11295 (trace_status_command): Explicitely check "filename" field.
11296 (trace_find_command): Ditto.
11297 (trace_find_pc_command): Ditto.
11298 (trace_find_tracepoint_command): Ditto.
11299 (trace_find_line_command): Ditto.
11300 (trace_find_range_command): Ditto.
11301 (trace_find_outside_command): Ditto.
11302 * tracepoint.h (struct trace_status) <from_file>: Rename it
11303 to "filename" and make it hold the trace file's filename
11304 instead of a boolean.
11305 * remote.c (remote_get_trace_status): Initialize "filename"
11306 field with NULL instead of 0.
11307
11308 2013-02-15 Yao Qi <yao@codesourcery.com>
11309
11310 * remote.c: Fix a typo.
11311
11312 2013-02-14 Pierre Muller <muller@sourceware.org>
11313
11314 * contrib/ari/gdb_ari.sh (GNU/Linux rule): Remove.
11315
11316 2013-02-14 Pedro Alves <palves@redhat.com>
11317
11318 * utils.c (savestring): Don't #undef it. Move function to
11319 common/common-utils.c.
11320 * common/common-utils.c: Include gdb_string.h.
11321 (savestring): Move here from utils.c.
11322 * common/common-utils.h (savestring): Declare.
11323
11324 2013-02-14 Pedro Alves <palves@redhat.com>
11325
11326 * utils.c (savestring): Rename parameter 'size' to 'len'.
11327
11328 2013-02-14 Pedro Alves <palves@redhat.com>
11329 Yufeng Zhang <yufeng.zhang@arm.com>
11330
11331 * aarch64-linux-nat.c (aarch64_init_debug_reg_state): Delete.
11332 (aarch64_inferior_data, struct aarch64_inferior_data):
11333 Delete.
11334 (struct aarch64_process_info): New.
11335 (aarch64_process_list): New global.
11336 (aarch64_find_process_pid, aarch64_add_process)
11337 (aarch64_process_info_get): New functions.
11338 (aarch64_inferior_data_get): Delete.
11339 (aarch64_process_info_get): New function.
11340 (aarch64_forget_process): New function.
11341 (aarch64_get_debug_reg_state): New parameter 'pid'. Reimplement.
11342 (aarch64_linux_prepare_to_resume): Pass the lwp's pid to
11343 aarch64_get_debug_reg_state.
11344 (aarch64_notify_debug_reg_change): Use iterate_over_lwps
11345 instead of linux_nat_iterate_watchpoint_lwps.
11346 (aarch64_linux_new_fork): New function.
11347 (aarch64_linux_child_post_startup_inferior): Use
11348 aarch64_forget_process instead of aarch64_init_debug_reg_state.
11349 (aarch64_handle_breakpoint, aarch64_linux_insert_hw_breakpoint)
11350 (aarch64_linux_remove_hw_breakpoint)
11351 (aarch64_handle_aligned_watchpoint)
11352 (aarch64_handle_unaligned_watchpoint)
11353 (aarch64_linux_insert_watchpoint)
11354 (aarch64_linux_remove_watchpoint)
11355 (aarch64_linux_stopped_data_address): Adjust to pass the current
11356 process id to aarch64_debug_reg_state.
11357 (_initialize_aarch64_linux_nat): Install aarch64_linux_new_fork as
11358 linux_nat_new_fork hook, and aarch64_forget_process as
11359 linux_nat_forget_process hook; remove the call to
11360 register_inferior_data_with_cleanup.
11361
11362 2013-02-14 Pedro Alves <palves@redhat.com>
11363
11364 * eval.c (evaluate_subexp_for_address) <default_case_after_eval,
11365 EVAL_AVOID_SIDE_EFFECTS>: Swap and handle TYPE_CODE_REF before
11366 lval_memory.
11367
11368 2013-02-14 Pedro Alves <pedro@codesourcery.com>
11369 Hafiz Abid Qadeer <abidh@codesourcery.com>
11370
11371 * tracepoint.h (validate_trace_state_variable_name): Declare.
11372 * tracepoint.c (validate_trace_state_variable_name): New.
11373 (trace_variable_command): Parse the trace state variable's name
11374 without using parse_expression. Do several validations.
11375 * mi/mi-main.c (mi_cmd_trace_define_variable): Don't parse the
11376 trace state variable's name with parse_expression. Validate it.
11377
11378 2013-02-14 Yao Qi <yao@codesourcery.com>
11379
11380 * infcmd.c (breakpoint_proceeded): Remove it.
11381
11382 2013-02-14 Yao Qi <yao@codesourcery.com>
11383
11384 * tracepoint.c (end_actions_pseudocommand): Make it static.
11385 (while_stepping_pseudocommand): Likewise.
11386 * tracepoint.h (end_actions_pseudocommand): Remove the
11387 declaration.
11388 (while_stepping_pseudocommand): Likewise.
11389
11390 2013-02-14 Yao Qi <yao@codesourcery.com>
11391
11392 * cli/cli-decode.c (help_cmd): Remove the declaration of
11393 "cmdlist".
11394 (help_all): Likewise.
11395
11396 2013-02-13 Pedro Alves <palves@redhat.com>
11397
11398 * amd64-linux-nat.c (update_debug_registers_callback):
11399 Update comment.
11400 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
11401 iterate_over_lwps.
11402 (amd64_linux_prepare_to_resume): Pass the lwp's pid to
11403 i386_debug_reg_state.
11404 (amd64_linux_new_fork): New function.
11405 (_initialize_amd64_linux_nat): Install amd64_linux_new_fork as
11406 linux_nat_new_fork hook, and i386_forget_process as
11407 linux_nat_forget_process hook.
11408 * i386-linux-nat.c (update_debug_registers_callback):
11409 Update comment.
11410 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
11411 iterate_over_lwps.
11412 (i386_linux_prepare_to_resume): Pass the lwp's pid to
11413 i386_debug_reg_state.
11414 (i386_linux_new_fork): New function.
11415 (_initialize_i386_linux_nat): Install i386_linux_new_fork as
11416 linux_nat_new_fork hook, and i386_forget_process as
11417 linux_nat_forget_process hook.
11418 * i386-nat.c (i386_init_dregs): Delete.
11419 (i386_inferior_data, struct i386_inferior_data):
11420 Delete.
11421 (struct i386_process_info): New.
11422 (i386_process_list): New global.
11423 (i386_find_process_pid, i386_add_process, i386_process_info_get):
11424 New functions.
11425 (i386_inferior_data_get): Delete.
11426 (i386_process_info_get): New function.
11427 (i386_debug_reg_state): New parameter 'pid'. Reimplement.
11428 (i386_forget_process): New function.
11429 (i386_cleanup_dregs): Rewrite.
11430 (i386_update_inferior_debug_regs, i386_insert_watchpoint)
11431 (i386_remove_watchpoint, i386_region_ok_for_watchpoint)
11432 (i386_stopped_data_address, i386_insert_hw_breakpoint)
11433 (i386_remove_hw_breakpoint): Adjust to pass the current process id
11434 to i386_debug_reg_state.
11435 (i386_use_watchpoints): Don't register inferior data.
11436 * i386-nat.h (i386_debug_reg_state): Add new 'pid' parameter, and
11437 adjust comment.
11438 (i386_forget_process): Declare.
11439 * linux-fork.c (delete_fork): Call linux_nat_forget_process.
11440 * linux-nat.c (linux_nat_new_fork, linux_nat_forget_process_hook):
11441 New static globals.
11442 (linux_child_follow_fork): Don't call linux_nat_new_thread here.
11443 (add_initial_lwp): New, factored out from ...
11444 (add_lwp): ... this. Don't check the number of lwps before
11445 calling linux_nat_new_thread.
11446 (linux_nat_iterate_watchpoint_lwps): Delete.
11447 (linux_nat_attach): Use add_initial_lwp instead of add_lwp.
11448 (linux_handle_extended_wait): Call the linux_nat_new_fork hook on
11449 forks and vforks.
11450 (linux_nat_wait_1): Use add_initial_lwp instead of add_lwp for the
11451 initial lwp.
11452 (linux_nat_kill, linux_nat_mourn_inferior): Call
11453 linux_nat_forget_process.
11454 (linux_nat_set_new_fork, linux_nat_set_forget_process)
11455 (linux_nat_forget_process): New functions.
11456 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): Delete
11457 type.
11458 (linux_nat_iterate_watchpoint_lwps): Delete declaration.
11459 (linux_nat_new_fork_ftype, linux_nat_forget_process_ftype): New
11460 types.
11461 (linux_nat_set_new_fork, linux_nat_set_forget_process)
11462 (linux_nat_forget_process): New declarations.
11463
11464 * amd64fbsd-nat.c (super_mourn_inferior): New global.
11465 (amd64fbsd_mourn_inferior): New function.
11466 (_initialize_amd64fbsd_nat): Override to_mourn_inferior.
11467 * windows-nat.c (windows_detach): Call i386_cleanup_dregs.
11468
11469 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
11470
11471 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
11472 Adding _().
11473
11474 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
11475
11476 * aarch64-linux-nat.c (debug_reg_change_callback)
11477 (aarch64_linux_get_debug_reg_capacity): ARI fix: Replace %llx with
11478 %s and phex().
11479
11480 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
11481
11482 * aarch64-linux-nat.c (dr_changed_t): ARI fix: Replace long long
11483 with LONGEST.
11484
11485 2013-02-13 Pedro Alves <palves@redhat.com>
11486 Hafiz Abid Qadeer <abidh@codesourcery.com>
11487
11488 * c-lang.c (c_op_print_tab): Add entry for UNOP_PLUS.
11489
11490 2013-02-12 Tom Tromey <tromey@redhat.com>
11491
11492 PR symtab/11464:
11493 * c-exp.y (lex_one_token): Initialize other fields of yylval on
11494 NAME return.
11495 (classify_inner_name): Remove 'first_name' argument, add
11496 'context'. Remove unused variable.
11497 (yylex): Explicitly maintain the context type. Exit loop earlier
11498 if NAME result is seen.
11499
11500 2013-02-12 Pedro Alves <palves@redhat.com>
11501
11502 * amd64-darwin-tdep.c: Add (C) after Copyright.
11503 * cli/cli-cmds.h: Ditto.
11504 * cli/cli-decode.c: Ditto.
11505 * cli/cli-decode.h: Ditto.
11506 * cli/cli-dump.c: Ditto.
11507 * cli/cli-dump.h: Ditto.
11508 * cli/cli-interp.c: Ditto.
11509 * cli/cli-logging.c: Ditto.
11510 * cli/cli-script.c: Ditto.
11511 * cli/cli-script.h: Ditto.
11512 * cli/cli-setshow.c: Ditto.
11513 * cli/cli-setshow.h: Ditto.
11514 * cli/cli-utils.c: Ditto.
11515 * cli/cli-utils.h: Ditto.
11516 * config/alpha/nm-osf3.h: Ditto.
11517 * config/djgpp/djconfig.sh: Ditto.
11518 * config/i386/nm-fbsd.h: Ditto.
11519 * config/i386/nm-i386gnu.h: Ditto.
11520 * config/nm-linux.h: Ditto.
11521 * config/nm-nto.h: Ditto.
11522 * config/rs6000/nm-rs6000.h: Ditto.
11523 * config/sparc/nm-sol2.h: Ditto.
11524 * darwin-nat-info.c: Ditto.
11525 * dfp.c: Ditto.
11526 * dfp.h: Ditto.
11527 * gdb-demangle.h: Ditto.
11528 * i386-darwin-nat.c: Ditto.
11529 * i386-darwin-tdep.c: Ditto.
11530 * linux-fork.h: Ditto.
11531 * m32c-tdep.c: Ditto.
11532 * microblaze-linux-tdep.c: Ditto.
11533 * microblaze-rom.c: Ditto.
11534 * microblaze-tdep.c: Ditto.
11535 * microblaze-tdep.h: Ditto.
11536 * mips-linux-tdep.h: Ditto.
11537 * ppc-ravenscar-thread.c: Ditto.
11538 * ppc-ravenscar-thread.h: Ditto.
11539 * prologue-value.c: Ditto.
11540 * prologue-value.h: Ditto.
11541 * ravenscar-thread.c: Ditto.
11542 * ravenscar-thread.h: Ditto.
11543 * sparc-ravenscar-thread.c: Ditto.
11544 * sparc-ravenscar-thread.h: Ditto.
11545 * tilegx-linux-tdep.c: Ditto.
11546 * unwind_stop_reasons.def: Ditto.
11547 * windows-nat.h: Ditto.
11548 * xtensa-linux-tdep.c: Ditto.
11549 * xtensa-xtregs.c: Ditto.
11550 * regformats/regdat.sh: Ditto.
11551 * regformats/regdef.h: Ditto.
11552
11553 2013-02-12 Pedro Alves <palves@redhat.com>
11554
11555 * break-catch-sig.c: Update copyright years.
11556
11557 2013-02-11 Siva Chandra Reddy <sivachandra@google.com>
11558
11559 Add support for a destructor for ui_out data and use it to
11560 provide a ui_out destructor.
11561 * ui-out.h: Declare the new ui_out destructor.
11562 (ui_out_impl): Add a field for data destructor in ui_out_impl.
11563 * ui-out.c (default_data_destroy): Add a default data destructor
11564 which does nothing.
11565 (default_ui_out_impl): Set the new data_destroy field to
11566 default_data_destroy
11567 (uo_data_destroy): Local function which invokes the data
11568 destructor if present.
11569 (clear_table): Local function which clears the table data of a
11570 ui_out object.
11571 (ui_out_destroy): Public function which frees a ui_out object.
11572 (ui_out_table_end): Use the new clear_table function.
11573 * cli-out.c (cli_ui_out_impl): Set the new data_destroy field to
11574 NULL.
11575 * mi/mi-out.c (mi_ui_out_impl): Set the new data_destroy field
11576 to NULL.
11577
11578 2013-02-11 Doug Evans <dje@google.com>
11579
11580 * printcmd.c (printf_c_string,printf_wide_c_string): New functions.
11581 (printf_decfloat): New function. Broken out from ui_printf.
11582 Remove unnecessary code to shift the entire format string down.
11583 (printf_pointer): New function.
11584 (ui_printf): Code to print C strings, wide C strings, decfloats,
11585 and pointers moved to separate functions.
11586
11587 2013-02-11 Sergio Durigan Junior <sergiodj@redhat.com>
11588
11589 * valops.c (value_assign): Handling bitfield offset in
11590 `lval_internalvar_component' case.
11591
11592 2013-02-08 Doug Evans <dje@google.com>
11593
11594 * common/format.c (parse_format_string): Fix whitespace.
11595
11596 2013-02-08 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
11597
11598 * stack.c (return_command): Work around uninitialized variable
11599 warning.
11600
11601 2013-02-08 Yufeng Zhang <yufeng.zhang@arm.com>
11602
11603 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET): Change the
11604 number of the registers from 36 to 34.
11605
11606 2013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
11607
11608 * NEWS: Mention new AArch64 native and target support.
11609
11610 2013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
11611
11612 * MAINTAINERS (Write After Approval): Add myself.
11613
11614 2013-02-08 Jim MacArthur <jim.macarthur@arm.com>
11615 Marcus Shawcroft <marcus.shawcroft@arm.com>
11616 Nigel Stephens <nigel.stephens@arm.com>
11617 Yufeng Zhang <yufeng.zhang@arm.com>
11618
11619 * aarch64-linux-nat.c: New file.
11620 * config/aarch64/linux.mh: New file.
11621 * configure.host: Add AArch64.
11622 * Makefile.in (ALLDEPFILES): Add aarch64-linux-nat.c.
11623
11624 2013-02-07 Doug Evans <dje@google.com>
11625
11626 * cli/cli-cmds.c (_initialize_cli_cmds): Clarify argument to
11627 disassemble command.
11628
11629 2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
11630
11631 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
11632 set_gdbarch_fetch_tls_load_module_address.
11633
11634 2013-02-06 David S. Miller <davem@davemloft.net>
11635
11636 * sparc-tdep.c (sparc32_return_value): Handle writing return value when
11637 using RETURN_VALUE_ABI_PRESERVES_ADDRESS.
11638 * value.c (struct_return_convention): New function.
11639 (using_struct_return): Implement in terms of struct_return_convention.
11640 * value.h (struct_return_convention): Declare.
11641 * stack.c (return_command): Allow successful overriding of the return
11642 value when RETURN_VALUE_ABI_PRESERVES_ADDRESS.
11643
11644 2013-02-06 Tom Tromey <tromey@redhat.com>
11645
11646 * python/py-type.c (typy_strip_typedefs): Don't call check_typedef
11647 outside of TRY_CATCH.
11648
11649 2013-02-06 Yao Qi <yao@codesourcery.com>
11650
11651 * mi/mi-interp.c: Include "tracepoint.h".
11652 (mi_tsv_modified): Declare.
11653 (mi_tsv_created, mi_tsv_deleted): Update declaration.
11654 (mi_interpreter_init): Call observer_attach_tsv_modified.
11655 (mi_tsv_modified): New.
11656 (mi_tsv_created, mi_tsv_deleted): Update.
11657 * tracepoint.c (trace_variable_command): Call
11658 observer_notify_tsv_modified if the initial value of tsv is
11659 changed.
11660 (delete_trace_state_variable): Call
11661 observer_notify_tsv_deleted earlier.
11662 (trace_variable_command): Caller update.
11663 (create_tsv_from_upload): Likewise.
11664 * observer.sh: Declare "struct trace_state_variable".
11665
11666 * NEWS: Mention the new MI notification "=tsv-modified".
11667
11668 2013-02-05 Doug Evans <dje@google.com>
11669
11670 * completer.c (location_completer): Fix typo in comment.
11671
11672 2013-02-05 Jan Kratochvil <jan.kratochvil@redhat.com>
11673
11674 * breakpoint.c (add_location_to_breakpoint): Insert the location with
11675 ADDRESS sorted.
11676
11677 2013-02-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
11678
11679 * aarch64-tdep.c (aarch64_analyze_prologue): ARI fix:
11680 Refactor if statement to avoid trailing || operator.
11681
11682 2013-02-05 Andreas Tobler <andreast@fgznet.ch>
11683
11684 * NEWS: Add PowerPC FreeBSD as a new native configuration.
11685
11686 2013-02-04 Andreas Tobler <andreast@fgznet.ch>
11687
11688 * Makefile.in (ALL_TARGET_OBS): Add powerpc FreeBSD files.
11689 * configure.host: Add powerpc*-*-freebsd* target.
11690 * configure.tgt: Add target info for powerpc*-*-freebsd*.
11691 * ppcfbsd-nat.c, ppcfbsd-tdep.h, ppcfbsd-tdep.c: New files.
11692 * config/powerpc/fbsd.mh: New file.
11693
11694 2013-02-04 Sergio Durigan Junior <sergiodj@redhat.com>
11695 Denys Vlasenko <dvlasenk@redhat.com>
11696 Pedro Alves <palves@redhat.com>
11697
11698 * gdbarch.sh (elfcore_write_linux_prpsinfo): New F hook.
11699 (struct elf_internal_linux_prpsinfo): Forward declare.
11700 * gdbarch.h, gdbarch.c: Regenerate.
11701 * linux-tdep.c: Include `cli/cli-utils.h'.
11702 (linux_fill_prpsinfo): New function.
11703 (linux_make_corefile_notes): Use linux_fill_prpsinfo. If there's
11704 an elfcore_write_linux_prpsinfo hook, use it, otherwise, use
11705 elfcore_write_linux_prpsinfo32 or elfcore_write_linux_prpsinfo64
11706 depending on gdbarch pointer bitness.
11707 * ppc-linux-tdep.c: Include elf-bfd.h.
11708 (ppc_linux_init_abi): Hook in elfcore_write_ppc_linux_prpsinfo32
11709 on 32-bit.
11710
11711 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
11712 Marcus Shawcroft <marcus.shawcroft@arm.com>
11713 Nigel Stephens <nigel.stephens@arm.com>
11714 Yufeng Zhang <yufeng.zhang@arm.com>
11715
11716 * configure.tgt (aarch64*-*-linux*): Set build_gdbserver=yes.
11717
11718 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
11719 Marcus Shawcroft <marcus.shawcroft@arm.com>
11720 Nigel Stephens <nigel.stephens@arm.com>
11721 Yufeng Zhang <yufeng.zhang@arm.com>
11722
11723 * aarch64-newlib-tdep.c: New file.
11724 * configure.tgt: Add aarch64-newlib-tdep.o to gdb_target_obs of
11725 aarch64*-*-elf.
11726 * defs.h (enum gdb_osabi): Add GDB_OSABI_NEWLIB.
11727 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-newlib-tdep.o.
11728 (ALLDEPFILES): Add aarch64-newlib-tdep.c.
11729 * osabi.c (gdb_osabi_names): Add "Newlib".
11730
11731 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
11732 Marcus Shawcroft <marcus.shawcroft@arm.com>
11733 Nigel Stephens <nigel.stephens@arm.com>
11734 Yufeng Zhang <yufeng.zhang@arm.com>
11735
11736 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-linux-tdep.o.
11737 (ALLDEPFILES): Add aarch64-linux-tdep.c.
11738 * aarch64-linux-tdep.c: New file.
11739 * aarch64-linux-tdep.h: New file.
11740 * aarch64-tdep.h (gdbarch_tdep): Define gregset and fpregset.
11741 * configure.tgt: Add aarch64-none-linux-gnu.
11742
11743 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
11744 Marcus Shawcroft <marcus.shawcroft@arm.com>
11745 Nigel Stephens <nigel.stephens@arm.com>
11746 Yufeng Zhang <yufeng.zhang@arm.com>
11747
11748 * Makefile.in (ALL_64_TARGET_OBS): Add arch64-tdep.o.
11749 (HFILES_NO_SRCDIR): Add aarch64-tdep.h.
11750 (ALLDEPFILES): Add aarch64-tdep.c.
11751 * aarch64-tdep.c: New file.
11752 * aarch64-tdep.h: New file.
11753 * configure.tgt: Add AArch64.
11754 * features/Makefile (WHICH): Add aarch64 and aarch64-without-fpu.
11755 (aarch64-expedite): New definition.
11756 * features/aarch64-core.xml: New file.
11757 * features/aarch64-fpu.xml: New file.
11758 * features/aarch64-without-fpu.c: New file (generated).
11759 * features/aarch64-without-fpu.xml: New file.
11760 * features/aarch64.c: New file (generated).
11761 * features/aarch64.xml: New file.
11762 * regformats/aarch64-without-fpu.dat: New file (generated).
11763 * regformats/aarch64.dat: New file (generated).
11764
11765 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11766
11767 * contrib/expect-read1.c: New file.
11768 * contrib/expect-read1.sh: New file.
11769
11770 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11771
11772 * dwarf2read.c (file_file_name): New function with code from
11773 file_full_name.
11774 (file_full_name): Move most of the code to file_file_name.
11775 (macro_start_file): Rename variable full_name to file_name and use
11776 file_file_name for it. Add comp_dir parameter to new_macro_table.
11777 * macrocmd.c (show_pp_source_pos): New variable fullname. Replace any
11778 macro_source_file->filename access by macro_source_fullname call.
11779 * macroscope.c (_initialize_macroscope): Update the new_macro_table
11780 caller.
11781 * macrotab.c (struct macro_table): New field comp_dir.
11782 (macro_include): New variables link_fullname and source_fullname.
11783 Replace any macro_source_file->filename access by macro_source_fullname
11784 call.
11785 (macro_lookup_inclusion): Remove the partial filenames checking code.
11786 (check_for_redefinition): New variables source_fullname and
11787 found_key_fullname. Replace any macro_source_file->filename access by
11788 macro_source_fullname call.
11789 (macro_undef): New variables source_fullname and key_fullname. Replace
11790 any macro_source_file->filename access by macro_source_fullname call.
11791 (macro_lookup_definition): New variables retval and source_fullname.
11792 Replace any macro_source_file->filename access by macro_source_fullname
11793 call.
11794 (foreach_macro): New variable key_fullname. Replace any
11795 macro_source_file->filename access by macro_source_fullname call.
11796 (foreach_macro_in_scope): New variable datum_fullname. Replace any
11797 macro_source_file->filename access by macro_source_fullname call.
11798 (new_macro_table): Add parameter comp_dir. Initialize T with it.
11799 (macro_source_fullname): New function.
11800 * macrotab.h (struct macro_source_file): Extent the filename field
11801 comment.
11802 (new_macro_table): New parameter comp_dir, add a comment for it.
11803 (macro_source_fullname): new declaration.
11804
11805 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11806
11807 * dwarf2read.c (dw2_map_symtabs_matching_filename): Move variable
11808 this_real_name to outer block. Use it also for
11809 compare_filenames_for_search.
11810 (dw2_expand_symtabs_matching): New variable this_real_name. Use it
11811 with dw2_get_real_path for file_matcher, considering also
11812 BASENAMES_MAY_DIFFER.
11813 (file_full_name): Prepend COMP_DIR even for relative lh->INCLUDE_DIRS.
11814
11815 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11816
11817 * dwarf2read.c (dw2_expand_symtabs_matching): Add basenames parameter
11818 to the file_matcher parameter. Pass 0 to it.
11819 (dwarf2_create_include_psymtab): Copy also DIRNAME.
11820 * psymtab.c (partial_map_symtabs_matching_filename): Drop handling of
11821 NULL psymtab_to_fullname result.
11822 (psymtab_to_fullname): Remove variable r. Never return NULL, assemble
11823 an expected filename instead.
11824 (expand_symtabs_matching_via_partial): Add basenames parameter to the
11825 file_matcher parameter. Call also psymtab_to_fullname, after newly
11826 considering BASENAMES_MAY_DIFFER.
11827 * source.c (rewrite_source_path): Remove static.
11828 * source.h (rewrite_source_path): New declaration.
11829 * symfile.h (struct quick_symbol_functions): Add basenames parameter to
11830 the expand_symtabs_matching field. Comment it.
11831 * symtab.c (file_matches): New function comment. Add parameter
11832 basenames, implement it.
11833 (search_symbols_file_matches): Add basenames parameter. Update the
11834 file_matches caller.
11835 (search_symbols): Match FILES also against symtab_to_fullname.
11836 Optimize it for BASENAMES_MAY_DIFFER.
11837
11838 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11839
11840 * source.c (print_source_lines_base): Print for TUI also "fullname".
11841 * tui/tui-data.c (init_content_element): Change tui_locator_element
11842 field to full_name.
11843 * tui/tui-data.h (struct tui_locator_element): Likewise.
11844 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Rename
11845 tui_update_locator_filename calls to tui_update_locator_fullname.
11846 Replace symtab->filename refererence by symtab_to_fullname call.
11847 * tui/tui-out.c (tui_field_string): Check for "fullname" now.
11848 * tui/tui-source.c (tui_set_source_content): Change tui_locator_element
11849 field to full_name. Replace symtab->filename refererence by
11850 symtab_to_fullname call.
11851 (tui_show_symtab_source): Rename parameter to fullname. Change
11852 tui_locator_element field to full_name.
11853 * tui/tui-stack.c: Include source.h.
11854 (tui_set_locator_filename): Rename the declaration to ...
11855 (tui_set_locator_fullname): ... here. Rename its parameter to
11856 fullname, updates its comment.
11857 (tui_set_locator_info): Rename its parameter to fullname.
11858 (tui_set_locator_filename): Rename the definition to ...
11859 (tui_set_locator_fullname): ... here. Rename its parameter to
11860 fullname, updates its comment. Change tui_locator_element field to
11861 full_name.
11862 (tui_set_locator_info): Rename its parameter to fullname.
11863 (tui_set_locator_info): Rename callee to tui_set_locator_fullname.
11864 (tui_update_locator_filename): Rename to ...
11865 (tui_update_locator_fullname): ... here. Rename callee to
11866 tui_set_locator_fullname.
11867 (tui_show_frame_info): Replace symtab->filename refererence by
11868 symtab_to_fullname call.
11869 * tui/tui-stack.h (tui_update_locator_filename): Rename to ...
11870 (tui_update_locator_fullname): ... here.
11871 * tui/tui-winsource.c (tui_display_main): Rename the callee to
11872 tui_update_locator_fullname. Replace symtab->filename refererence by
11873 symtab_to_fullname call.
11874 * tui/tui.c (tui_show_source): Rename its parameter to fullname.
11875 Rename the callee to tui_update_locator_fullname.
11876 * tui/tui.h (tui_show_source): Rename its parameter to fullname.
11877
11878 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11879
11880 * ada-lang.c (user_select_syms): Replace symtab->filename refererences
11881 by symtab_to_filename_for_display calls.
11882 * breakpoint.c (print_breakpoint_location, resolve_sal_pc): Likewise.
11883 (clear_command): New variable sal_fullname, initialize it. Replace
11884 compare_filenames_for_search by filename_cmp with sal_fullname.
11885 (say_where, update_static_tracepoint): Replace symtab->filename
11886 refererences by symtab_to_filename_for_display calls.
11887 * cli/cli-cmds.c (edit_command, list_command, ambiguous_line_spec):
11888 Likewise.
11889 * dwarf2read.c: Include source.h.
11890 (fixup_go_packaging): Replace symtab->filename refererences by
11891 symtab_to_filename_for_display calls.
11892 * linespec.c (add_sal_to_sals): Rename variable filename to fullname.
11893 Replace symtab->filename refererences by symtab_to_filename_for_display
11894 calls.
11895 (create_sals_line_offset, convert_linespec_to_sals): New variable
11896 fullname, initialize it, replace symtab->filename reference by the
11897 variable.
11898 * linux-fork.c: Include source.h.
11899 (info_checkpoints_command): Replace symtab->filename refererences by
11900 symtab_to_filename_for_display calls.
11901 * macroscope.c (sal_macro_scope): Replace symtab->filename refererences
11902 by symtab_to_filename_for_display calls.
11903 * mdebugread.c: Include source.h.
11904 (psymtab_to_symtab_1): Replace symtab->filename refererences by
11905 symtab_to_filename_for_display calls.
11906 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
11907 (mi_cmd_file_list_exec_source_files): Likewise.
11908 * printcmd.c: Include source.h.
11909 (build_address_symbolic): Replace symtab->filename refererences by
11910 symtab_to_filename_for_display calls.
11911 * psymtab.c (partial_map_symtabs_matching_filename)
11912 (read_psymtabs_with_fullname): Call compare_filenames_for_search also
11913 with psymtab_to_fullname.
11914 * python/py-symtab.c (stpy_str): Replace symtab->filename refererences
11915 by symtab_to_filename_for_display calls.
11916 (stpy_get_filename): New variable filename, initialize it, use instead
11917 of symtab->filename refererences.
11918 (salpy_str): Make variable filename const char *. Replace
11919 symtab->filename refererences by symtab_to_filename_for_display calls.
11920 * skip.c: Include source.h and filenames.h.
11921 (skip_file_command): Remove const from the symtab variable. Replace
11922 symtab->filename refererences by symtab_to_fullname call.
11923 (function_name_is_marked_for_skip): New variables searched_for_fullname
11924 and fullname. Use them to search also with symtab's fullname.
11925 * source.c (find_source_lines): Replace symtab->filename refererences
11926 by symtab_to_filename_for_display calls.
11927 (print_source_lines_base): New variable filename, use it instead of
11928 symtab->filename. Replace symtab->filename refererences by
11929 symtab_to_filename_for_display calls.
11930 (line_info, forward_search_command): Replace symtab->filename
11931 refererences by symtab_to_filename_for_display calls.
11932 (reverse_search_command): Replace symtab->filename refererences by
11933 symtab_to_filename_for_display calls. New variable filename for it.
11934 * stack.c (frame_info): Likewise.
11935 * symmisc.c: Include source.h.
11936 (dump_objfile, dump_symtab_1, maintenance_print_symbols)
11937 (maintenance_info_symtabs): Replace symtab->filename refererences by
11938 symtab_to_filename_for_display calls.
11939 * symtab.c (iterate_over_some_symtabs): Call
11940 compare_filenames_for_search also with symtab_to_fullname.
11941 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Replace
11942 symtab->filename refererences by symtab_to_filename_for_display calls.
11943 (find_line_symtab): Replace symtab->filename refererences by
11944 symtab_to_filename_for_display calls.
11945 (file_matches): Replace filename_cmp by compare_filenames_for_search.
11946 (print_symbol_info): Make the last parameter const char *. New
11947 variable s_filename. Use it in the function.
11948 (symtab_symbol_info): Make the last_filename variable const char *.
11949 Replace symtab->filename refererences by symtab_to_filename_for_display
11950 calls.
11951 (rbreak_command): New variable fullname. Use it. Replace
11952 symtab->filename refererence by symtab_to_filename_for_display call.
11953 * tracepoint.c (set_traceframe_context, trace_find_line_command)
11954 (print_one_static_tracepoint_marker): Replace symtab->filename
11955 refererences by symtab_to_filename_for_display calls.
11956 * tui/tui-source.c (tui_set_source_content): New variables filename and
11957 s_filename. Replace symtab->filename refererences by this variable.
11958 Replace other symtab->filename refererences by
11959 symtab_to_filename_for_display calls.
11960
11961 2013-02-03 Eldar Gaynetdinov <hal9000ed2k@gmail.com>
11962 Jan Kratochvil <jan.kratochvil@redhat.com>
11963
11964 Add a new variable that controls a way in which filenames are
11965 displayed.
11966 * NEWS (set filename-display): New entry.
11967 * source.c (filename_display_basename, filename_display_relative)
11968 (filename_display_absolute, filename_display_kind_names)
11969 (filename_display_string, show_filename_display_string)
11970 (symtab_to_filename_for_display): New.
11971 (_initialize_source): Added initialization of 'filename-display'
11972 variable.
11973 * source.h (symtab_to_filename_for_display): Added declaration.
11974 * stack.c (print_frame): Added new variable and calling of a new
11975 function and condition with this variable. Changed third argument of
11976 calling of a function.
11977
11978 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11979
11980 * tui/tui-data.c (init_win_info, tui_del_window, tui_free_window):
11981 Rename field reference filename to fullname.
11982 * tui/tui-data.h (struct tui_source_info): Rename field filename to
11983 fullname. New comment for it.
11984 * tui/tui-source.c (tui_set_source_content): Rename field reference
11985 filename to fullname. Initialize field by symtab_to_fullname now.
11986 * tui/tui-winsource.c (tui_update_breakpoint_info): Rename field
11987 reference filename to fullname. Use symtab_to_fullname during
11988 comparison.
11989
11990 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11991
11992 Code cleanup.
11993 * dwarf2read.c (dw2_expand_symtabs_with_filename): Rename to ...
11994 (dw2_expand_symtabs_with_fullname): ... here. Rename parameter
11995 filename to fullname. Rename variable this_name to this_fullname.
11996 Lowercase FILENAME_CMP call.
11997 (dw2_find_symbol_file): New comment for the returned string.
11998 (dwarf2_gdb_index_functions): Rename the function to
11999 dw2_expand_symtabs_with_fullname.
12000 * psymtab.c (read_psymtabs_with_filename): Rename to ...
12001 (read_psymtabs_with_fullname): ... here. Rename parameter filename to
12002 fullname.
12003 (psym_functions): Rename the function to read_psymtabs_with_fullname.
12004 * symfile.h (struct quick_symbol_functions): Rename field
12005 expand_symtabs_with_filename to expand_symtabs_with_fullname and its
12006 parameter filename to fullname. Document returned string meaning for
12007 find_symbol_file.
12008 * symtab.c (find_line_symtab): Rename the called function to
12009 expand_symtabs_with_fullname.
12010
12011 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12012
12013 Code cleanup.
12014 * breakpoint.c (clear_command): Remove variable is_abs, unify the
12015 call of filename_cmp with compare_filenames_for_search.
12016 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove variable
12017 is_abs, unify the call of FILENAME_CMP with
12018 compare_filenames_for_search. New gdb_asserts for real_path and name.
12019 Unify the call of compare_filenames_for_search with FILENAME_CMP.
12020 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
12021 * symfile.h (struct quick_symbol_functions): Extend the comment for
12022 map_symtabs_matching_filename.
12023 * symtab.c (compare_filenames_for_search): Remove the function comment
12024 relative path requirement. Handle absolute filenames, with a comment.
12025 (iterate_over_some_symtabs): Remove variable is_abs, unify the call of
12026 FILENAME_CMP with compare_filenames_for_search. New gdb_asserts for
12027 real_path and name. Unify the call of compare_filenames_for_search
12028 with FILENAME_CMP.
12029 (iterate_over_symtabs): New gdb_assert on REAL_PATH.
12030
12031 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12032
12033 Code cleanup.
12034 * breakpoint.c (print_breakpoint_location): Replace bp_location field
12035 source_file references by symtab field references. Remove variables
12036 sal and fullname.
12037 (momentary_breakpoint_from_master, add_location_to_breakpoint):
12038 (clear_command, say_where): Replace bp_location field source_file
12039 references by symtab field references.
12040 (bp_location_dtor): Remove the source_file reference.
12041 (update_static_tracepoint): Replace bp_location field source_file
12042 references by symtab field references.
12043 (breakpoint_free_objfile): New function.
12044 * breakpoint.h (struct bp_location): Extend the comment for line_number.
12045 Replace the field source_file by field symtab, extend its comment.
12046 (breakpoint_free_objfile): New declaration.
12047 * objfiles.c (free_objfile): Call breakpoint_free_objfile.
12048 * tui/tui-winsource.c (tui_update_breakpoint_info): Replace bp_location
12049 field source_file references by symtab field references.
12050
12051 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12052
12053 Replace xfullpath calls by gdb_realpath calls.
12054 * cli/cli-cmds.c (find_and_open_script): Remove xfullpath from the
12055 function comment.
12056 * dwarf2read.c (dw2_map_expand_apply): Remove parameter full_path.
12057 Remove it from the iterate_over_some_symtabs call.
12058 (dw2_map_symtabs_matching_filename): Remove parameter full_path.
12059 Remove it from the dw2_map_expand_apply calls, remove a block handling
12060 it.
12061 * psymtab.c (partial_map_expand_apply): Remove parameter full_path.
12062 Remove it from the iterate_over_some_symtabs call.
12063 (partial_map_symtabs_matching_filename): Remove parameter full_path.
12064 Remove it from the partial_map_expand_apply calls, remove a block
12065 handling it. Drop gdb_realpath call and cleanups from the real_path
12066 handling.
12067 * source.c (openp): Drop the comment part about xfullpath. Replace
12068 xfullpath calls by gdb_realpath calls.
12069 (find_and_open_source): Replace xfullpath call by gdb_realpath call.
12070 * symfile.h (struct quick_symbol_functions): Remove parameter full_path
12071 from method map_symtabs_matching_filename and its comment.
12072 * symmisc.c (maintenance_print_msymbols): Replace xfullpath call by
12073 gdb_realpath call.
12074 * symtab.c (iterate_over_some_symtabs): Remove parameter full_path,
12075 remove it also from the function comment, remove a block handling it.
12076 Drop gdb_realpath call and cleanups from the real_path handling.
12077 (iterate_over_symtabs): Drop variable full_path and its use.
12078 * symtab.h (iterate_over_some_symtabs): Remove parameter full_path.
12079 * utils.c (xfullpath): Remove.
12080 * utils.h (xfullpath): Remove.
12081
12082 2013-02-01 Andreas Tobler <andreast@fgznet.ch>
12083
12084 * Makefile.in (ALL_TARGET_OBS): Add ppc64-tdep.o.
12085 (HFILES_NO_SRCDIR): Add ppc64-tdep.h.
12086 (ALLDEPFILES): Add ppc64-tdep.c.
12087 * configure.tgt (powerpc-*-linux* | powerpc64-*-linux*): Add
12088 ppc64-tdep.o to gdb_target_obs.
12089 * ppc64-tdep.h: New file.
12090 * ppc64-tdep.c: New file.
12091 (insn_d, insn_ds, insn_xfx, ppc64_desc_entry_point): Move from
12092 ppc-linux-tdep.c to here.
12093 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN)
12094 (PPC64_STANDARD_LINKAGE2_LEN): Likewise and use ARRAY_SIZE macro.
12095 (ppc64_standard_linkage1_target, ppc64_standard_linkage2_target)
12096 (ppc64_standard_linkage3_target, ppc64_skip_trampoline_code): Move
12097 from ppc-linux-tdep.c to here.
12098 (ppc64_convert_from_func_ptr_addr): Rename from
12099 ppc64_linux_convert_from_func_ptr_addr to
12100 ppc64_convert_from_func_ptr_addr and move from ppc-linux-tdep.c to
12101 here.
12102 * rs6000-tdep.c:
12103 (read_insn): Move from ppc-linux-tdep.c to here.
12104 (insns_match_pattern, insn_d_field, insn_ds_field): Move
12105 from ppc-linux-tdep.c to here and rename them with the ppc_ prefix.
12106 * ppc-linux-tdep.c: Include ppc64-tdep.h.
12107 Removed above functions.
12108 (ppc_linux_init_abi): Adjust.
12109
12110 2013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
12111
12112 * ada-valprint.c (ada_print_floating): Remove unused 'len'.
12113
12114 2013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
12115
12116 * ada-lang.c (assign_aggregate): Remove unused 'is_array_aggregate'.
12117
12118 2013-02-01 Pedro Alves <palves@redhat.com>
12119
12120 * dummy-frame.c (deprecated_pc_in_call_dummy): Delete function.
12121 * frame.h (deprecated_pc_in_call_dummy): Delete declaration.
12122
12123 2013-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
12124
12125 * elfread.c (elf_symfile_read): Limit separate debug info additions to
12126 files with no separate debug info.
12127 * objfiles.c (add_separate_debug_objfile): Add gdb_assert calls.
12128 * symfile.c (read_symbols): Call find_separate_debug_file_in_section
12129 only for files with no separate debug info.
12130
12131 2013-01-31 Tom Tromey <tromey@redhat.com>
12132
12133 * jit.c (jit_program_space_data): Rename from jit_inferior_data;
12134 change type.
12135 (struct jit_program_space_data): Rename from jit_inferior_data.
12136 Update comments.
12137 (get_jit_program_space_data): Rename from get_jit_inferior_data.
12138 Change return type. Attach data to program space.
12139 (jit_program_space_data_cleanup): Rename from
12140 jit_inferior_data_cleanup; change argument type.
12141 (jit_read_descriptor): Change 'inf_data' argument to 'ps_data',
12142 change type.
12143 (jit_register_code): Update.
12144 (jit_update_inferior_cache): Remove.
12145 (jit_breakpoint_deleted): Get jit data from the location's program
12146 space.
12147 (jit_breakpoint_re_set_internal): Rename 'inf_data' argument to
12148 'ps_data', change type.
12149 (jit_inferior_init, jit_breakpoint_re_set_internal)
12150 (jit_event_handler): Update.
12151 (free_objfile_data): Get data from objfile's program space.
12152 (_initialize_jit): Update.
12153
12154 2013-01-31 Tom Tromey <tromey@redhat.com>
12155
12156 PR gdb/13987:
12157 * jit.c (struct jit_inferior_data) <cached_code_address,
12158 jit_breakpoint>: New fields.
12159 (jit_breakpoint_re_set_internal): Fix logging. Only create
12160 breakpoint if cached address has changed.
12161 (jit_update_inferior_cache, jit_breakpoint_deleted): New
12162 functions.
12163 (_initialize_jit): Register breakpoint deleted observer.
12164
12165 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12166
12167 * infrun.c (handle_syscall_event): Remove unused gdbarch.
12168 (save_infcall_suspend_state): Ifdef out unused inf.
12169 (restore_infcall_suspend_state): Ifdef out unused inf.
12170 * jit.c (jit_register_code): Remove unused i, b, inf_data.
12171 (jit_frame_sniffer): Remove unused inf_data.
12172
12173 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12174
12175 * c-exp.y (classify_inner_name): Remove unused type.
12176 * c-lang.c (c_printstr): Remove unused byte_order, i, things_printed,
12177 in_quotes, need_comma, wchar_buf, output, cleanup, iter, finished,
12178 need_escape.
12179 (c_get_string): Remove unused kind.
12180 * c-typeprint.c (c_type_print_args): Remove unused i, len, args, table2.
12181
12182 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12183
12184 * charset.c (intermediate_encoding): Remove unused i.
12185 * completer.c (signal_completer): Remove unused i.
12186 * continuations.c (discard_my_continuations_1): Remove unused
12187 continuation_ptr.
12188 * corelow.c (core_close): Remove unuseD name.
12189 (get_core_siginfo): Remove unused pid.
12190 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Remove unused
12191 i, cps.
12192 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove unused base_offset.
12193 (loclist_describe_location): Remove unused first.
12194 * event-top.c (command_line_handler): Remove unused got_eof.
12195 * exec.c (exec_close_1): Remove unused need_symtab_cleanup.
12196 (resize_section_table): Remove unused old_value.
12197 * gdb_bfd.c (gdb_bfd_map_section): Remove unused header.
12198 * gnu-v3-abi.c (compute_vtable_size): Remove unused addr.
12199 * i386-tdep.c (i386_process_record): Remove unused rex.
12200 * infcmd.c (get_return_value): Remove unused uiout.
12201 * jv-lang.c (type_from_class): Remove unused is_array.
12202 * jv-valprint.c (java_val_print): Remove unused i.
12203 * linux-nat.c (linux_nat_stop_lwp): Remove unused ptid.
12204 * linux-thread-db.c (thread_db_find_new_threads_2): Remove unuseD pid.
12205 * m2-typeprint.c (m2_print_type): Remove unused code.
12206 * macroexp.c (get_character_constant): Remove unused body_start.
12207 (macro_stringify): Remove unused result.
12208 * objc-lang.c (find_methods): Remove unused gdbarch.
12209 * objfiles.c (filter_overlapping_sections): Remove unused abfd1, abfd2.
12210 * regcache.c (regcache_cooked_read): Remove unused gdbarch.
12211 * stack.c (print_frame_args): Remove unused summary.
12212 * thread.c (thread_apply_command): Remove unused p.
12213 * valarith.c (value_x_unop): Remove unused mangle_ptr.
12214 * valops.c (search_struct_method): Remove unused skip.
12215 * valprint.c (generic_val_print): Remove unused byte_order.
12216 * varobj.c (varobj_update): Remove unused changed.
12217 * cli/cli-cmds.c (complete_command): Remove unused next_item.
12218 (alias_command): Remove unused c.
12219 * mi/mi-cmd-catch.c (mi_catch_load_unload): Remove unused c.
12220 * mi/mi-main.c (mi_cmd_data_write_register_values): Remove unused
12221 format.
12222 (mi_cmd_data_write_memory): Remove unused word_format.
12223 (mi_cmd_data_write_memory_bytes): Remove unused r.
12224 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Remove unused
12225 p_start, p_end.
12226 * python/python.c (_initialize_python): Remove unused cmd_name, cmd.
12227 * tui/tui-disasm.c (tui_set_disassem_content): Remove unused
12228 line_width.
12229
12230 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12231
12232 * dwarf2-frame.c (dwarf2_compile_cfa_to_ax): Remove unused num_regs.
12233 * symtab.c (iterate_over_symtabs): Remove unused s.
12234 (find_pc_sect_symtab): Remove unused pspAce.
12235 (find_pc_sect_line): Remove unused alt_symtab.
12236 (find_pcs_for_symtab_line): Remove unused ix, previous_function.
12237 (completion_list_add_name): Remove unused newsize.
12238
12239 2013-01-31 Tom Tromey <tromey@redhat.com>
12240
12241 PR c++/14998:
12242 * dwarf2read.c (read_tag_ptr_to_member_type): Handle
12243 TYPE_CODE_FUNC.
12244
12245 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12246
12247 * target.c (target_read_string): Remove unused origlen.
12248
12249 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12250
12251 * auto-load.c (auto_load_expand_dir_vars): Remove unused dir_vec.
12252 * ax-gdb.c (gen_printf): Remove unused expr, i, bot, fr, flen, fmt.
12253 * ax-general.c (ax_print): Remove unused is_float.
12254 * blockframe.c (block_innermost_frame): Remove unused start, end.
12255 * break-catch-sig.c (catch_signal_command): Remove unused gdbarch.
12256
12257 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12258
12259 * solib-svr4.c (svr4_keep_data_in_core): Remove unused lmo.
12260 (svr4_read_so_list): Remove unused lmo.
12261 * solib-target.c (solib_target_relocate_section_addresses): Remove
12262 unused flags.
12263
12264 2013-01-30 Tom Tromey <tromey@redhat.com>
12265
12266 * hppa-tdep.c (read_unwind_info): Use SECT_OFF_TEXT, not "0".
12267
12268 2013-01-30 Tom Tromey <tromey@redhat.com>
12269
12270 * symfile.c (get_file_crc): Use bfd_calc_gnu_debuglink_crc32.
12271 * utils.c (gnu_debuglink_crc32): Remove.
12272 * utils.h (gnu_debuglink_crc32): Don't declare.
12273
12274 2013-01-30 Tom Tromey <tromey@redhat.com>
12275
12276 * dwarf2read.c (compute_delayed_physnames, read_call_site_scope)
12277 (read_structure_type, read_enumeration_type): Remove cast.
12278
12279 2013-01-30 Tom Tromey <tromey@redhat.com>
12280
12281 * dwarf2read.c (read_namespace_type): Remove cast.
12282 (read_typedef): Likewise.
12283
12284 2013-01-29 Tom Tromey <tromey@redhat.com>
12285
12286 * dwarf2read.c (free_dwo_file): Remove assert.
12287
12288 2013-01-29 Tom Tromey <tromey@redhat.com>
12289
12290 * value.c (deprecated_set_value_modifiable): Remove.
12291 * value.h (deprecated_set_value_modifiable): Remove.
12292
12293 2013-01-28 Doug Evans <dje@google.com>
12294
12295 * dwarf2loc.c (dwarf2_find_location_expression): Don't add base address
12296 to addresses from dwo files.
12297
12298 2013-01-25 Siva Chandra Reddy <sivachandra@google.com>
12299
12300 * valops.c (find_overload_match): Remove unused argument 'lax'.
12301 * value.h: Remove unused argument 'lax' from the declaration of
12302 find_overload_match.
12303 * eval.c (value_subexp_standard): Do not pass a 'lax' argument
12304 to find_overload_match.
12305 * valarith.c (value_user_defined_cpp_op): Do not pass a 'lax'
12306 argument to find_overload_match.
12307
12308 2013-01-25 Tom Tromey <tromey@redhat.com>
12309
12310 * dwarf2read.c (processing_has_namespace_info): Remove.
12311 (struct dwarf2_cu) <processing_has_namespace_info>: New field.
12312 (process_die, read_func_scope, dwarf2_start_symtab)
12313 (new_symbol_full): Update.
12314
12315 2013-01-25 Tom Tromey <tromey@redhat.com>
12316
12317 * cp-namespace.c (cp_set_block_scope): Remove.
12318 * cp-support.h (cp_set_block_scope): Remove.
12319 * dbxread.c: Include block.h.
12320 (cp_set_block_scope): New function.
12321 (process_one_symbol): Update.
12322 * dwarf2read.c (read_func_scope): Use block_set_scope.
12323
12324 2013-01-25 Pedro Alves <palves@redhat.com>
12325
12326 * remote.c (add_current_inferior_and_thread): Tweak comment.
12327
12328 2013-01-25 Tom Tromey <tromey@redhat.com>
12329
12330 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
12331 (cp_add_using_directive): Add 'copy_names' argument.
12332 * cp-support.h (cp_add_using_directive): Update.
12333 (struct using_direct) <import_src, import_dest, alias,
12334 declaration>: Now const.
12335 * dwarf2read.c (read_import_statement): Use obconcat.
12336 Don't copy names passed to cp_add_using_directive.
12337
12338 2013-01-25 Tom Tromey <tromey@redhat.com>
12339
12340 * c-exp.y (qualified_name): Use TYPE_SAFE_NAME.
12341
12342 2013-01-25 Pedro Alves <palves@redhat.com>
12343
12344 * remote.c (stop_reply_extract_thread): New.
12345 (add_current_inferior_and_thread): New parameter 'wait_status'.
12346 Handle it.
12347 (remote_start_remote): Pass wait status to
12348 add_current_inferior_and_thread.
12349 (extended_remote_run): Update comment.
12350 (extended_remote_create_inferior_1): Pass wait status to
12351 add_current_inferior_and_thread.
12352
12353 2013-01-25 Andrew Burgess <aburgess@broadcom.com>
12354 Ulrich Weigand <uweigand@de.ibm.com>
12355
12356 * valarith.c (value_vector_widen): New function for replicating a
12357 scalar into a vector.
12358 (value_binop): Use value_vector_widen to widen scalar to vector
12359 rather than casting, this better matches gcc C behaviour.
12360 * valops.c (value_casst): Update logic for casting between vector
12361 types, and for casting from scalar to vector, try to match gcc C
12362 behaviour.
12363 * value.h (value_vector_widen): Declare.
12364 * opencl-lang.c (opencl_value_cast): New opencl specific casting
12365 function, handle special case for casting scalar to vector.
12366 (opencl_relop): Use opencl_value_cast.
12367 (evaluate_subexp_opencl): Use opencl_value_cast instead of
12368 value_cast, and handle BINOP_ASSIGN, UNOP_CAST, and UNOP_CAST_TYPE
12369 in order to use opencl_value_cast.
12370
12371 2013-01-25 Yao Qi <yao@codesourcery.com>
12372
12373 * event-loop.c: Include "queue.h".
12374 (gdb_event_p): New typedef.
12375 (DECLARE_QUEUE_P): Use.
12376 (DEFINE_QUEUE_P): Use.
12377 (async_queue_event): Remove.
12378 (gdb_event_xfree): New.
12379 (initialize_event_loop): New.
12380 (process_event): Use QUEUE macros.
12381 (event_queue): Remove.
12382 (gdb_wait_for_event): Caller update.
12383 (check_async_event_handlers): Likewise.
12384 (poll_timers): Likewise.
12385 * event-loop.h (initialize_event_loop): Declare.
12386 * event-loop.c (gdb_event_xfree): New.
12387 * top.c (gdb_init): Call initialize_event_loop.
12388
12389 2013-01-25 Yao Qi <yao@codesourcery.com>
12390
12391 * event-loop.c (async_queue_event): Remove one parameter
12392 'position'. Remove code handling 'position' == TAIL.
12393 (gdb_wait_for_event): Caller update.
12394 (check_async_event_handlers): Caller update.
12395 (poll_timers): Caller update.
12396 * event-loop.h (enum queue_position): Remove.
12397
12398 2013-01-25 Maxim Kuvyrkov <maxim@kugelworks.com>
12399
12400 * MAINTAINERS: Update my email.
12401
12402 2013-01-25 Yao Qi <yao@codesourcery.com>
12403
12404 * main.c (print_gdb_help): Remove "--epoch" from the help
12405 message.
12406
12407 2013-01-24 Ulrich Weigand  <uweigand@de.ibm.com>
12408
12409 * symtab.c (skip_prologue_using_sal): Consider a file
12410 change the same as an increased line number
12411
12412 2013-01-24 Tiago Stürmer Daitx  <tdaitx@linux.vnet.ibm.com>
12413
12414 * MAINTAINERS (Write After Approval): Add myself to the list.
12415
12416 2013-01-24 Tom Tromey <tromey@redhat.com>
12417
12418 * ada-lang.h (ada_decode_symbol): Make return type const.
12419 * ada-lang.c (ada_decode_symbol): Likewise.
12420
12421 2013-01-23 Doug Evans <dje@google.com>
12422
12423 * linespec.c (find_linespec_symbols): Make static.
12424
12425 2013-01-23 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
12426
12427 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Set correct
12428 type on float conversion for complex type.
12429
12430 2013-01-23 Siva Chandra Reddy <sivachandra@google.com>
12431
12432 Add a new class gdb.Architecture which exposes GDB's
12433 internal representation of architecture via GDB Python API.
12434 * Makefile.in: Add entries corresponding to the new file
12435 python/py-arch.c.
12436 * NEWS (Python Scripting): Add entries for the new class
12437 gdb.Architecture and the new method gdb.Frame.architecture.
12438 * python/py-arch.c: Implement gdb.Architecture class.
12439 * python/py-frame.c (frapy_arch): Implement the method
12440 gdb.Frame.architecture().
12441 (frame_object_methods): Add 'architecture' to the method table.
12442 * python/python-internal.h: Add declarations of new utility
12443 functions.
12444 * python/python.c (_initialize_python): Initialize
12445 gdb.Architecture class.
12446
12447 2013-01-23 Doug Evans <dje@google.com>
12448
12449 Work around binutils/15021.
12450 * dwarf2read.c (dwarf2_per_cu_data): Split imported_symtabs and
12451 type_unit_group out of union s. All uses updated.
12452 (read_index_from_section): Watch for index version 8.
12453 (follow_die_sig): If using .gdb_index version <= 7, record the TU as
12454 an imported symtab.
12455 (write_psymtabs_to_index): Increment version number to 8.
12456
12457 2013-01-22 Pedro Alves <palves@redhat.com>
12458
12459 * annotate.c (breakpoint_changed): Skip if breakpoint is not
12460 user-visible.
12461
12462 2013-01-22 Pedro Alves <palves@redhat.com>
12463
12464 * annotate.c (annotate_breakpoints_changed): Rename to ...
12465 (annotate_breakpoints_invalid): ... this. Make static.
12466 (breakpoint_changed): Adjust.
12467 (_initialize_annotate): Always install the observers. Install a
12468 "breakpoint_created" observer.
12469 * annotate.h (annotate_breakpoints_changed): Delete declaration.
12470 * breakpoint.c (set_breakpoint_condition)
12471 (breakpoint_set_commands, do_map_commands_command)
12472 (init_raw_breakpoint, clear_command, set_ignore_count)
12473 (enable_breakpoint_disp): No longer call
12474 annotate_breakpoints_changed.
12475
12476 2013-01-22 Pedro Alves <palves@redhat.com>
12477
12478 * annotate.c: Include "inferior.h".
12479 (frames_invalid_emitted)
12480 (breakpoints_invalid_emitted): New globals.
12481 (async_background_execution_p): New function.
12482 (annotate_breakpoints_changed, annotate_frames_invalid): Skip
12483 emitting the annotation if it has already been emitted.
12484 (annotate_display_prompt): New function.
12485 * annotate.h (annotate_display_prompt): New declaration.
12486 * event-top.c: Include annotate.h.
12487 (display_gdb_prompt): Call annotate_display_prompt.
12488
12489 2013-01-22 Pedro Alves <palves@redhat.com>
12490
12491 * annotate.c (ignore_count_changed): Delete.
12492 (annotate_breakpoints_changed): Don't clear ignore_count_changed.
12493 (annotate_ignore_count_change): Delete.
12494 (annotate_stopped): Don't emit a delayed breakpoints-changed
12495 annotation.
12496 * annotate.h (annotate_ignore_count_change): Delete.
12497 * breakpoint.c (bpstat_check_breakpoint_conditions): Don't call
12498 annotate_ignore_count_change.
12499
12500 2013-01-22 Tom Tromey <tromey@redhat.com>
12501
12502 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>: Only
12503 require_rvalue for a register location.
12504
12505 2013-01-21 Marc Khouzam <marc.khouzam@ericsson.com>
12506
12507 * breakpoint.c (print_one_breakpoint_location): Add MI
12508 field 'thread-groups' when printing a breakpoint.
12509 (output_thread_groups): New function.
12510
12511 2013-01-21 Siva Chandra Reddy <sivachandra@google.com>
12512
12513 * python/lib/gdb/commands/explore.py
12514 (CompoundExplorer.explore_expr): Correct the name of a method
12515 being invoked.
12516 (ExploreTypeCommand.invoke): Add a missing 'return'.
12517
12518 2013-01-21 Tom Tromey <tromey@redhat.com>
12519
12520 * gdb_obstack.h (obconcat): Move declaration here, from...
12521 * symfile.h (obconcat): ... here.
12522 * gdb_obstack.c: New file.
12523 (obconcat): Move from...
12524 * symfile.c (obconcat): ... here.
12525 * Makefile.in (SFILES): Add gdb_obstack.c.
12526 (COMMON_OBS): Add gdb_obstack.o.
12527
12528 2013-01-21 Tom Tromey <tromey@redhat.com>
12529
12530 * symfile.h (obsavestring): Don't declare.
12531 * symfile.c (obsavestring): Remove.
12532 * ada-exp.y: Use obstack_copy0, not obsavestring.
12533 * ada-lang.c: Use obstack_copy0, not obsavestring.
12534 * coffread.c: Use obstack_copy0, not obsavestring.
12535 * cp-namespace.c: Use obstack_copy0, not obsavestring.
12536 * dbxread.c: Use obstack_copy0, not obsavestring.
12537 * dwarf2read.c: Use obstack_copy0, not obsavestring.
12538 * jit.c: Use obstack_copy0, not obsavestring.
12539 * mdebugread.c: Use obstack_copy0, not obsavestring.
12540 * psymtab.c: Use obstack_copy0, not obsavestring.
12541 * stabsread.c: Use obstack_copy0, not obsavestring.
12542 * xcoffread.c: Use obstack_copy0, not obsavestring.
12543
12544 2013-01-21 Tom Tromey <tromey@redhat.com>
12545
12546 * dwarf2read.c (fixup_go_packaging): Save package name
12547 on objfile obstack.
12548 * gdbtypes.c (init_type): Don't copy name.
12549
12550 2013-01-21 Tom Tromey <tromey@redhat.com>
12551
12552 * dwarf2read.c (struct partial_die_info) <name, scope>: Now
12553 const.
12554 (struct attribute) <u.str>: Now const.
12555 (struct fnfieldlist) <name>: Now const.
12556 (dw2_get_file_names_reader, init_cutu_and_read_dies): Update.
12557 (partial_die_parent_scope): Make return type const.
12558 (partial_die_full_name, add_partial_symbol): Update.
12559 (dwarf2_compute_name, dwarf2_full_name, dwarf2_physname): Make
12560 'name' const.
12561 (find_file_and_directory): Make 'name' and 'comp_dir' const.
12562 (read_file_scope, read_func_scope, dwarf2_add_field)
12563 (dwarf2_add_member_fn, read_structure_type)
12564 (process_enumeration_scope, read_array_type, read_module_type)
12565 (read_base_type, read_subrange_type): Update.
12566 (dwarf2_start_symtab): Make 'name' and 'comp_dir' const.
12567 (new_symbol_full, guess_full_die_structure_name): Update.
12568 (dwarf2_canonicalize_name): Return const type. Make 'name' const.
12569 (dwarf2_name): Return const type.
12570 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make 'comp_dir'
12571 const.
12572
12573 2013-01-21 Tom Tromey <tromey@redhat.com>
12574
12575 * gdbtypes.c (init_type): Make 'name' const.
12576 * gdbtypes.h (init_type): Update.
12577
12578 2013-01-21 Tom Tromey <tromey@redhat.com>
12579
12580 * buildsym.c (patch_subfile_names): Use set_last_source_file.
12581 (start_symtab): Make 'name' and 'dirname' const. Use
12582 set_last_source_file.
12583 (restart_symtab, reset_symtab_globals): Use set_last_source_file.
12584 (last_source_file): Define. Now static.
12585 (set_last_source_file, get_last_source_file): New functions.
12586 * buildsym.h (last_source_file): Don't declare.
12587 (start_symtab): Update.
12588 (set_last_source_file, get_last_source_file): Declare.
12589 * coffread.c (complete_symtab): Use set_last_source_file.
12590 (coff_end_symtab): Likewise.
12591 (coff_symtab_read): Use set_last_source_file, get_last_source_file.
12592 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Use
12593 set_last_source_file.
12594 (process_one_symbol): Use get_last_source_file.
12595 * mdebugread.c (parse_partial_symbols): Use set_last_source_file.
12596 (psymtab_to_symtab_1): Use get_last_source_file.
12597 * xcoffread.c (process_linenos): Use get_last_source_file.
12598 (complete_symtab): Use set_last_source_file.
12599 (read_xcoff_symtab): Use set_last_source_file, get_last_source_file.
12600 (scan_xcoff_symtab): Use set_last_source_file.
12601
12602 2013-01-21 Tom Tromey <tromey@redhat.com>
12603
12604 * symtab.c (struct demangled_name_entry) <mangled>: Now const.
12605 (symbol_set_names): Remove casts. Handle field const-ness.
12606
12607 2013-01-21 Tom Tromey <tromey@redhat.com>
12608
12609 * dwarf2read.c (new_symbol_full): Remove cast.
12610 * symtab.c (symbol_set_demangled_name): Make 'name' const.
12611 * symtab.h (symbol_set_demangled_name): Update.
12612
12613 2013-01-21 Tom Tromey <tromey@redhat.com>
12614
12615 * main.c (captured_main): Call bfd_init.
12616
12617 2013-01-21 Tom Tromey <tromey@redhat.com>
12618
12619 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Don't set default ABI.
12620 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Set default ABI.
12621 * minsyms.c (install_minimal_symbols): Don't check for _Z symbols.
12622 * NEWS: Update.
12623
12624 2013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
12625
12626 * symmisc.c (maintenance_print_msymbols): Check also ST_DEV.
12627
12628 2013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
12629
12630 Fix gdb.fortran/common-block.exp crash in PIE mode.
12631 * dwarf2read.c (new_symbol_full) <DW_TAG_common_block>: Use
12632 LOC_COMMON_BLOCK.
12633 * f-valprint.c (info_common_command_for_block): Expect
12634 LOC_COMMON_BLOCK in gdb_assert.
12635 * symtab.h (struct general_symbol_info): Update comment for the
12636 common_block member.
12637 (domain_enum): Extend comment for the COMMON_BLOCK_DOMAIN member.
12638 (enum address_class): New member LOC_COMMON_BLOCK.
12639
12640 2013-01-18 David Blaikie <dblaikie@gmail.com>
12641
12642 * MAINTAINERS (Write After Approval): Add "David Blaikie".
12643
12644 2013-01-18 Tom Tromey <tromey@redhat.com>
12645
12646 PR c++/14999:
12647 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>:
12648 Call require_rvalue.
12649
12650 2013-01-18 Yao Qi <yao@codesourcery.com>
12651
12652 * dbxread.c (dbx_psymtab_to_symtab): Delete the declaration.
12653 (dbx_read_symtab): New declaration.
12654 (dbx_psymtab_to_symtab): Delete.
12655 (dbx_read_symtab): Rename from dbx_psymtab_to_symtab.
12656 Rename parameter PST to SELF. Exchanged two parameters.
12657 (start_psymtab): Caller update.
12658 * dwarf2read.c (dwarf2_psymtab_to_symtab): Delete the declaration.
12659 (dwarf2_read_symtab): New declaration.
12660 (dwarf2_psymtab_to_symtab): Delete.
12661 (dwarf2_read_symtab): Rename from dwarf2_psymtab_to_symtab.
12662 Rename parameter PST to SELF. Exchanged two parameters.
12663 (create_partial_symtab): Caller update.
12664 * mdebugread.c (mdebug_psymtab_to_symtab): Delete.
12665 (mdebug_read_symtab): Rename from mdebug_psymtab_to_symtab.
12666 Rename parameter PST to SELF. Exchanged two parameters.
12667 (parse_partial_symbols, new_psymtab): Caller update.
12668 * psympriv.h (struct partial_symtab) <read_symtab>: Exchange
12669 two parameters.
12670 * psymtab.c (psymtab_to_symtab): Caller update.
12671 * xcoffread.c (xcoff_psymtab_to_symtab): Delete.
12672 (xcoff_read_symtab): Rename from xcoff_psymtab_to_symtab.
12673 Rename parameter PST to SELF. Exchanged two parameters.
12674 (xcoff_start_psymtab): Caller update.
12675
12676 2013-01-18 Yao Qi <yao@codesourcery.com>
12677
12678 * infrun.c (proceed): Rename local variable 'oneproc' to
12679 'force_step'.
12680
12681 2013-01-17 Doug Evans <dje@google.com>
12682
12683 * dwarf2read.c (dw2_build_type_unit_groups_reader): Delete.
12684 (dw2_build_type_unit_groups): Delete. All uses updated.
12685
12686 * symtab.h (struct symbol_search): Add comment.
12687
12688 2013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
12689
12690 * symtab.c (compare_filenames_for_search): New comment for
12691 HAS_DRIVE_SPEC.
12692
12693 2013-01-17 Tom Tromey <tromey@redhat.com>
12694
12695 * cp-abi.c (cp_abi_completer): Fix typo in assignment.
12696
12697 2013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
12698
12699 * symtab.c (iterate_over_some_symtabs): New variable cleanups,
12700 initialize it by existing make_cleanup. Call new do_cleanups.
12701
12702 2013-01-17 Tom Tromey <tromey@redhat.com>
12703
12704 * cp-abi.c (cp_abi_completer): New function.
12705 (_initialize_cp_abi): Set completer for "set cp-abi".
12706
12707 2013-01-17 Tom Tromey <tromey@redhat.com>
12708
12709 * mem-break.c: Remove obsolete comment.
12710 * bfin-tdep.c (bfin_breakpoint_from_pc): Fix comment.
12711
12712 2012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
12713
12714 * jit.c (jit_reader_load_command): Interpret the jit reader name
12715 as an absolute path if it begins with a forward slash.
12716
12717 2012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
12718
12719 PR gdb/14550
12720
12721 * jit.c (finalize_symtab): Ensure that only the global block has a
12722 NULL superblock.
12723
12724 2013-01-17 Pedro Alves <palves@redhat.com>
12725
12726 * acinclude.m4: Include ../config/plugins.m4,
12727 ../config/largefile.m4 and ../config/lead-dot.m4. Add comments.
12728 * Makefile.in (aclocal_m4_deps): Update.
12729 * aclocal.m4: Renegerate.
12730
12731 2013-01-16 Doug Evans <dje@google.com>
12732
12733 * contrib/cc-with-tweaks.sh: Add references to Fission docs.
12734
12735 2013-01-16 Pedro Alves <palves@redhat.com>
12736 Tom Tromey <tromey@redhat.com>
12737
12738 PR cli/7221:
12739 * NEWS: Add "catch signal".
12740 * breakpoint.c (base_breakpoint_ops): No longer static.
12741 (bpstat_explains_signal): New function.
12742 (init_catchpoint): No longer static.
12743 (base_breakpoint_explains_signal): New function.
12744 (base_breakpoint_ops): Initialize new field.
12745 * breakpoint.h (enum bpstat_signal_value): New.
12746 (struct breakpoint_ops) <explains_signal>: New field.
12747 (bpstat_explains_signal): Remove macro, declare as function.
12748 (base_breakpoint_ops, init_catchpoint): Declare.
12749 * break-catch-sig.c: New file.
12750 * inferior.h (signal_catch_update): Declare.
12751 * infrun.c (signal_catch): New global.
12752 (handle_syscall_event): Update for change to
12753 bpstat_explains_signal.
12754 (handle_inferior_event): Likewise. Always handle random signals
12755 via bpstats.
12756 (signal_cache_update): Check signal_catch.
12757 (signal_catch_update): New function.
12758 (_initialize_infrun): Initialize signal_catch.
12759 * Makefile.in (SFILES): Add break-catch-sig.c.
12760 (COMMON_OBS): Add break-catch-sig.o.
12761
12762 2013-01-16 Tom Tromey <tromey@redhat.com>
12763
12764 * breakpoint.c (print_one_catch_fork, print_one_catch_vfork)
12765 (print_one_catch_solib, print_one_catch_syscall)
12766 (print_one_catch_exec, print_one_exception_catchpoint): Emit
12767 "catch-type".
12768
12769 2013-01-16 Yao Qi <yao@codesourcery.com>
12770
12771 * printcmd.c (current_display_number): Make it static.
12772
12773 2013-01-16 Yao Qi <yao@codesourcery.com>
12774
12775 * infcmd.c (step_once): Don't check '!single_inst' as it was
12776 checked before.
12777
12778 2013-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
12779
12780 * dwarf2read.c (psymtab_include_file_name): Extend the function comment.
12781
12782 2013-01-14 Tom Tromey <tromey@redhat.com>
12783
12784 * cli/cli-decode.c (add_setshow_string_noescape_cmd): Return the
12785 set command.
12786 * command.h (add_setshow_string_noescape_cmd): Update.
12787 * corefile.c (set_gnutarget_command): Remove trailing whitespace.
12788 (complete_set_gnutarget): New function.
12789 (_initialize_core): Set the "set gnutarget" completer.
12790
12791 2013-01-14 Tom Tromey <tromey@redhat.com>
12792
12793 PR symtab/14442:
12794 * c-typeprint.c (cp_type_print_method_args): Handle 'restrict'.
12795 (c_type_print_modifier): Likewise.
12796 * dwarf2read.c (read_tag_restrict_type): New function.
12797 (read_type_die_1): Handle DW_TAG_restrict_type.
12798 * gdbtypes.c (make_restrict_type): New function.
12799 (recursive_dump_type): Handle TYPE_RESTRICT.
12800 * gdbtypes.h (enum type_flag_values): Renumber.
12801 (enum type_instance_flag_value): Add
12802 TYPE_INSTANCE_FLAG_RESTRICT.
12803 (TYPE_RESTRICT): New macro.
12804 (make_restrict_type): Declare.
12805
12806 2013-01-14 Tom Tromey <tromey@redhat.com>
12807
12808 PR symtab/14931:
12809 * psymtab.c (struct psymtab_state): New.
12810 (discard_psymtabs_upto, make_cleanup_discard_psymtabs): New
12811 functions.
12812 * psympriv.h (make_cleanup_discard_psymtabs): Declare.
12813 * dwarf2read.c (dwarf2_build_psymtabs): Catch exceptions.
12814
12815 2013-01-14 Richard Sharman <richard_sharman@mitel.com>
12816 Pedro Alves <palves@redhat.com>
12817
12818 PR remote/14786
12819
12820 * remote.c (remote_threads_info): Make a copy of the reply from
12821 qfThreadInfo and use that instead of rs->buf.
12822
12823 2013-01-14 Yao Qi <yao@codesourcery.com>
12824
12825 * dbxread.c (dbx_psymtab_to_symtab_1): Don't check PST is NULL.
12826 (dbx_psymtab_to_symtab): Likewise.
12827 * dwarf2read.c (dwarf2_psymtab_to_symtab): Likewise.
12828 * mdebugread.c (mdebug_psymtab_to_symtab): Likewise.
12829 * xcoffread.c (xcoff_psymtab_to_symtab_1): Likewise.
12830
12831 2013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
12832
12833 * parse.c (parse_exp_in_context): New variable inner_chain. Call
12834 make_cleanup_restore_current_language. Call set_language. Move
12835 OLD_CHAIN and INNER_CHAIN cleanups.
12836 * utils.c (do_restore_current_language)
12837 (make_cleanup_restore_current_language): New functions.
12838 * utils.h (make_cleanup_restore_current_language): New declaration.
12839
12840 2013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
12841
12842 * source.c (symtab_to_fullname): Apply rewrite_source_path also for
12843 non-existing files.
12844
12845 * source.c (symtab_to_fullname): Do not prepend DIRNAME for
12846 non-existing files if FILENAME is already absolute.
12847
12848 2013-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
12849
12850 * macrocmd.c (macro_inform_no_debuginfo): Use puts_filtered instead of
12851 fputs_filtered. Append trailing newline.
12852
12853 2013-01-11 Yao Qi <yao@codesourcery.com>
12854 Stan Shebs <stan@codesourcery.com>
12855
12856 * psymtab.c (init_psymbol_list): Clarify the comment.
12857
12858 2013-01-11 Yao Qi <yao@codesourcery.com>
12859
12860 * breakpoint.c (print_one_breakpoint_location): Remove dead code.
12861 (update_dprintf_command_list): Assert that 'printf_line' is
12862 non-null. Remove condition check.
12863
12864 2013-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
12865
12866 Code cleanup.
12867 * psymtab.c (psymtab_to_fullname, psymtab_to_fullname): Make the return
12868 type const char *.
12869 * tui/tui-source.c (tui_source_is_displayed): Make the parameter fname
12870 const char *.
12871 * tui/tui-source.h (tui_source_is_displayed): Likewise.
12872
12873 2013-01-09 Anthony Green <green@moxielogic.com>
12874
12875 * cp-abi.c (cplus_print_vtable): Don't return value from void
12876 function.
12877 * ada-lang.c (re_set_catch_assert): Ditto.
12878
12879 2013-01-09 Doug Evans <dje@google.com>
12880
12881 * symfile.h (quick_symbol_functions): Delete member
12882 pre_expand_symtabs_matching. All uses removed.
12883 * dwarf2read.c (dw2_lookup_symbol): Implement.
12884 (dw2_do_expand_symtabs_matching): Delete.
12885 (dw2_pre_expand_symtabs_matching): Delete.
12886 (struct dw2_symtab_iterator): New type.
12887 (dw2_symtab_iter_init, dw2_symtab_iter_next): New functions.
12888 (dw2_expand_symtabs_for_function): Rewrite.
12889 (dwarf2_gdb_index_functions): Update.
12890 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Delete.
12891 (psym_functions): Update.
12892
12893 2013-01-09 Tom Tromey <tromey@redhat.com>
12894
12895 * config/pa/hpux.mh (NATDEPFILES): Remove somread.o.
12896 * configure: Rebuild.
12897 * configure.ac: Add somread.o to the build if BFD has SOM
12898 support.
12899 * somread.c: Include som/aout.h, not syms.h.
12900 (som_symtab_read): Use som_external_symbol_dictionary_record.
12901 Unpack records manually.
12902 (_initialize_somread): Declare.
12903
12904 2012-01-08 Mike Frysinger <vapier@gentoo.org>
12905
12906 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx) [__x86_64__]:
12907 Cast return_address to 64bits.
12908
12909 2013-01-08 Hui Zhu <hui_zhu@mentor.com>
12910
12911 * printcmd.c: Remove define of function output_command.
12912 * tracepoint.c: Remove extern of function output_command.
12913 * valprint.h: (output_command): New extern.
12914
12915 2013-01-07 Tom Tromey <tromey@redhat.com>
12916
12917 * objc-lang.c (objc_emit_char, objc_printchar, objc_printstr):
12918 Remove.
12919 (objc_language_defn): Use c_printchar, c_printstr,
12920 c_emit_char.
12921
12922 2013-01-07 Tom Tromey <tromey@redhat.com>
12923
12924 PR cli/7719:
12925 * NEWS: Update.
12926 * ada-valprint.c (printstr, print_field_values): Remove
12927 "inspect_it" code.
12928 * cp-valprint.c (cp_print_value_fields): Remove "inspect_it"
12929 code.
12930 * jv-valprint.c (java_print_value_fields): Remove "inspect_it"
12931 code.
12932 * m2-lang.c (m2_printstr): Remove "inspect_it" code.
12933 * main.c (captured_main): Remove "epoch" argument.
12934 * objc-lang.c (objc_printstr): Remove "inspect_it" code.
12935 * p-lang.c (pascal_printstr): Remove "inspect_it" code.
12936 * p-valprint.c (pascal_object_print_value_fields): Remove
12937 "inspect_it" code.
12938 * printcmd.c (print_command_1): Remove 'inspect' argument.
12939 (print_command, call_command): Update.
12940 (inspect_command): Remove.
12941 (_initialize_printcmd): Make "inspect" an alias for "print".
12942 * top.c (epoch_interface): Remove.
12943 * top.h (epoch_interface): Remove.
12944 * valprint.c (user_print_options): Update.
12945 (print_converted_chars_to_obstack): Remove "inspect_it" code.
12946 * valprint.h (struct value_print_options) <inspect_it>: Remove
12947 field.
12948
12949 2013-01-04 Tom Tromey <tromey@redhat.com>
12950
12951 * valprint.h (read_string): Add 'extern'.
12952
12953 2013-01-07 Joel Brobecker <brobecker@adacore.com>
12954
12955 * darwin-nat.c: Fix typo in TASK_DYLD_INFO_COUNT macro test
12956 used to decide whether to define darwin_read_dyld_info or not.
12957
12958 2013-01-03 Pierre Muller <muller@sourceware.org>
12959
12960 * main.c (relocate_gdb_directory): Avoid calling stat function
12961 if DIR is empty.
12962
12963 2013-01-03 Yao Qi <yao@codesourcery.com>
12964
12965 * psymtab.c (fixup_psymbol_section): Update declaration.
12966 (fixup_psymbol_section): Remove code returning value.
12967
12968 2013-01-03 Yao Qi <yao@codesourcery.com>
12969
12970 * symtab.h: Remove some out of date comments.
12971 (enum exception_event_kind): Move it ...
12972 * breakpoint.c: ... here.
12973
12974 2013-01-02 Iain Sandoe <developer@sandoe-acoustics.co.uk>
12975
12976 PR gdb/14405
12977 * darwin-nat.c (darwin_read_dyld_info): Only build if
12978 TASK_DYLD_INFO_COUNT is defined.
12979 (darwin_xfer_partial): Call darwin_read_dyld_info only if
12980 TASK_DYLD_INFO_COUNT is defined.
12981
12982 2013-01-02 Tom Tromey <tromey@redhat.com>
12983
12984 * symfile.h (struct ecoff_debug_hack): Remove.
12985 * objfiles.c: Don't include mdebugread.h.
12986
12987 2013-01-02 Tom Tromey <tromey@redhat.com>
12988
12989 * config/i386/darwin.mh (NATDEPFILES): Remove machoread.o.
12990 * configure.ac: Check for Mach-O support in BFD. Update
12991 CONFIG_OBS.
12992 * configure: Rebuild.
12993
12994 2013-01-02 Tom Tromey <tromey@redhat.com>
12995
12996 * acinclude.m4 (GDB_AC_CHECK_BFD): New macro.
12997 * configure.ac: Use GDB_AC_CHECK_BFD.
12998 * configure: Rebuild.
12999
13000 2013-01-01 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
13001
13002 * MAINTAINERS: Update my email.
13003
13004 2013-01-01 Joel Brobecker <brobecker@adacore.com>
13005
13006 * cli/cli-script.h (make_cleanup_free_command_lines): Make extern.
13007
13008 2013-01-01 Joel Brobecker <brobecker@adacore.com>
13009
13010 * rs6000-nat.c (bss_data_overlap): New function.
13011 (vmap_symtab): Use it to adjust the .bss section's offset.
13012
13013 2013-01-01 Joel Brobecker <brobecker@adacore.com>
13014
13015 Update year range in copyright notice of all files.
13016
13017 2013-01-01, 13 Joel Brobecker <brobecker@adacore.com>
13018
13019 * top.c (print_gdb_version): Update copyright year.
13020
13021 For older changes see ChangeLog-2012.
13022 \f
13023 Local Variables:
13024 mode: change-log
13025 left-margin: 8
13026 fill-column: 74
13027 version-control: never
13028 coding: utf-8
13029 End:
This page took 0.315561 seconds and 5 git commands to generate.