Fix compilation error for cygwin native build.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2013-12-16 Pierre Muller <muller@sourceware.org>
2
3 Fix compilation error for cygwin native build.
4 * windows-nat.c (windows_ensure_ntdll_loaded) [__USEWIDE]:
5 Call wcstombs.
6
7 2013-12-16 Pedro Alves <palves@redhat.com>
8
9 PR 16329
10 * sol-thread.c (check_for_thread_db): If the target can't run or
11 isn't a core, return without pushing.
12
13 2013-12-15 Joel Brobecker <brobecker@adacore.com>
14
15 Revert the following commit:
16 * solib.c (solib_map_sections): Remove code overwriting
17 SO->SO_NAME with the bfd's filename.
18
19 Make the following changes required after the revert above:
20 * solib-aix.c (solib_aix_bfd_open): Set the filename of the
21 returned bfd to a copy of the synthetic pathname.
22 * solib-darwin.c (darwin_bfd_open): Set the filename of the
23 returned bfd to a copy of PATHNAME.
24
25 2013-12-13 Joel Brobecker <brobecker@adacore.com>
26
27 * ada-lang.c (ada_array_bound_from_type): Move the declaration
28 and assignment of variable "elt_type" inside the else block
29 where it is used. Add two missing check_typedef calls.
30 Fix bug where we got TYPE's TYPE_TARGET_TYPE, where in fact
31 we really wanted to get ELT_TYPE's TYPE_TARGET_TYPE.
32
33 2013-12-13 Joel Brobecker <brobecker@adacore.com>
34
35 * ada-lang.c (ada_array_bound_from_type): Remove unwanted space
36 between 'struct type *' and 'arr_type'.
37
38 2013-12-12 Siva Chandra Reddy <sivachandra@google.com>
39
40 PR python/16113
41 * NEWS (Python Scripting): Add entry for the new feature and the
42 new attribute of gdb.Field objects.
43 * python/py-type.c (gdbpy_is_field): New function
44 (convert_field): Add 'parent_type' attribute to gdb.Field
45 objects.
46 * python/py-value.c (valpy_getitem): Allow subscript value to be
47 a gdb.Field object.
48 (value_has_field): New function
49 (get_field_flag): New function
50 * python/python-internal.h (gdbpy_is_field): Add declaration.
51
52 2013-12-12 Pedro Alves <palves@redhat.com>
53
54 * breakpoint.c (insert_bp_location): Make 'hw_bp_err_string' local
55 const, and remove casts.
56
57 2013-12-12 Pedro Alves <palves@redhat.com>
58
59 * cli/cli-cmds.c (source_script_from_stream) Use have_python
60 instead of catching UNSUPPORTED_ERROR.
61 * exceptions.h (UNSUPPORTED_ERROR): Delete.
62 * python/python.c (source_python_script) [!HAVE_PYTHON]: Internal
63 error if called.
64 * python/python.h (have_python): New static inline function.
65
66 2013-12-11 Doug Evans <dje@google.com>
67
68 * dwarf2read.c (lookup_dwo_cutu): Include name of dwp file in
69 "can't find DWO" warning.
70
71 2013-12-11 Sergio Durigan Junior <sergiodj@redhat.com>
72
73 * break-catch-throw.c (fetch_probe_arguments): Pass selected frame
74 to get_probe_argument_count and evaluate_probe_argument.
75 * probe.c (get_probe_argument_count): Adjust declaration to accept
76 frame. Pass frame to probe_ops's get_probe_argument_count.
77 (evaluate_probe_argument): Likewise, for evaluate_probe_argument.
78 (probe_safe_evaluate_at_pc): Pass frame to
79 get_probe_argument_count and evaluate_probe_argument.
80 * probe.h (struct probe_ops) <get_probe_argument_count,
81 evaluate_probe_argument>: Adjust declarations to accept frame.
82 (get_probe_argument_count, evaluate_probe_argument): Likewise.
83 * solib-svr4.c (solib_event_probe_action): Get current frame.
84 Pass it to get_probe_argument_count.
85 (svr4_handle_solib_event): Get current frame. Pass it to
86 get_probe_argument_count and evaluate_probe_argument.
87 * stap-probe.c (stap_parse_probe_arguments): Adjust declaration to
88 accept gdbarch. Do not obtain it from the probe's objfile.
89 (stap_get_probe_argument_count): Adjust declaration to accept
90 frame. Obtain gdbarch from the frame. Call generic
91 can_evaluate_probe_arguments. Pass gdbarch to
92 stap_parse_probe_arguments.
93 (stap_get_arg): Adjust declaration to accept gdbarch. Pass it to
94 stap_parse_probe_arguments.
95 (stap_evaluate_probe_argument): Adjust declaration to accept
96 frame. Obtain gdbarch from the frame. Pass gdbarch to
97 stap_get_arg.
98 (stap_compile_to_ax): Pass agent_expr's gdbarch to stap_get_arg.
99 (compute_probe_arg): Obtain gdbarch from frame. Pass frame to
100 get_probe_argument_count and evaluate_probe_argument.
101
102 2013-12-10 Doug Evans <dje@google.com>
103
104 PR 16286
105 * c-lang.c (c_get_string): Ignore the declared size of the object
106 if a specific length is requested.
107
108 2013-12-10 Doug Evans <dje@google.com>
109
110 * interps.h (interp_exec_p): Delete.
111 * interps.c (interp_exec_p): Delete.
112 (interp_exec): Update. Assert interp->procs->exec_proc != NULL.
113 * mi/mi-interp.c (mi_cmd_interpreter_exec): Update.
114
115 2013-12-10 Yao Qi <yao@codesourcery.com>
116
117 * amd64-tdep.c (amd64_analyze_stack_align): Call
118 target_read_code instead of target_read_memory.
119 (amd64_analyze_prologue): Call read_code_unsigned_integer
120 instead of read_memory_unsigned_integer. Call read_code
121 instead of read_memory.
122 (amd64_skip_xmm_prologue): Likewise.
123
124 2013-12-10 Yao Qi <yao@codesourcery.com>
125
126 * corefile.c (read_code): New function.
127 (read_code_integer): New function.
128 (read_code_unsigned_integer): New function.
129 * gdbcore.h (read_code): Declare.
130 (read_code_integer): Declare.
131 (read_code_unsigned_integer): Declare.
132 * i386-tdep.c (i386_follow_jump): Call target_read_code instead
133 of target_read_memory. Call read_code_unsigned_integer instead
134 of read_memory_unsigned_integer.
135 (i386_analyze_struct_return): Likewise.
136 (i386_skip_probe): Likewise.
137 (i386_analyze_stack_align): Likewise.
138 (i386_match_pattern): Likewise.
139 (i386_skip_noop): Likewise.
140 (i386_analyze_frame_setup): Likewise.
141 (i386_analyze_register_saves): Likewise.
142 (i386_skip_prologue): Likewise.
143 (i386_skip_main_prologue): Likewise.
144 (i386_frame_cache_1): Likewise.
145
146 2013-12-10 Yao Qi <yao@codesourcery.com>
147
148 * infrun.c: Include "target-dcache.h".
149 (prepare_for_detach): Call target_dcache_invalidate.
150 (wait_for_inferior): Likewise.
151 (fetch_inferior_event): Likewise.
152 (infrun_thread_stop_requested_callback): Likewise. Set
153 overlay_cache_invalid to 1.
154
155 2013-12-10 Joel Brobecker <brobecker@adacore.com>
156
157 * symtab.c (symbol_find_demangled_name): Add handling of
158 Ada symbols.
159
160 2013-12-10 Joel Brobecker <brobecker@adacore.com>
161
162 * mi/mi-main.c (mi_cmd_list_features): add "exec-run-start-option".
163 * NEWS: Expand the entry documenting the new -exec-run --start
164 option to mention the corresponding new entry in the output of
165 "-list-features".
166
167 2013-12-10 Joel Brobecker <brobecker@adacore.com>
168
169 * windows-nat.c (handle_load_dll): Add comments.
170 (windows_ensure_ntdll_loaded): New function.
171 (do_initial_windows_stuff): Use windows_ensure_ntdll_loaded.
172 Add FIXME comment.
173
174 2013-12-08 Joel Brobecker <brobecker@adacore.com>
175
176 GDB 7.6.2 released.
177
178 2013-12-08 Yao Qi <yao@codesourcery.com>
179
180 * stack.c (frame_info): Initialize variable caller_pc.
181
182 2013-12-06 Pedro Alves <palves@redhat.com>
183
184 * frame.c (enum cached_copy_status): New enum.
185 (struct frame_info) <prev_pc.p>: Change type to enum
186 cached_copy_status.
187 (fprint_frame): Handle not saved and unavailable prev_pc values.
188 (frame_unwind_pc_if_available): Delete and merge contents into ...
189 (frame_unwind_pc): ... here. Handle OPTIMIZED_OUT_ERROR. Adjust
190 to use enum cached_copy_status.
191 (frame_unwind_caller_pc_if_available): Delete.
192 (create_new_frame): Adjust.
193 * frame.h (frame_unwind_caller_pc_if_available): Delete
194 declaration.
195 * stack.c (frame_info): Use frame_unwind_caller_pc instead of
196 frame_unwind_caller_pc_if_available, and handle
197 NOT_AVAILABLE_ERROR and OPTIMIZED_OUT_ERROR errors.
198 * valprint.c (val_print_optimized_out): Use val_print_not_saved.
199 (val_print_not_saved): New function.
200 * valprint.h (val_print_not_saved): Declare.
201
202 2013-12-06 Andrew Burgess <aburgess@broadcom.com>
203 Pedro Alves <palves@redhat.com>
204
205 * exceptions.h (errors): Add OPTIMIZED_OUT_ERROR.
206 * dwarf2loc.c (write_pieced_value): Throw OPTIMIZED_OUT_ERROR.
207 * frame.c (frame_unwind_register): Throw OPTIMIZED_OUT_ERROR.
208 * spu-tdep.c (spu_software_single_step): Throw
209 OPTIMIZED_OUT_ERROR.
210 * valops.c (value_assign): Throw OPTIMIZED_OUT_ERROR.
211
212 2013-12-06 Tom Tromey <tromey@redhat.com>
213
214 * objfiles.c (free_objfile): Update comment.
215
216 2013-12-06 Tom Tromey <tromey@redhat.com>
217
218 * objfiles.h (objfile_to_front): Remove.
219 * objfiles.c (objfile_to_front): Remove.
220
221 2013-12-06 Tom Tromey <tromey@redhat.com>
222
223 * minsyms.c (get_symbol_leading_char): Remove unnecessary
224 declaration.
225
226 2013-12-06 Tom Tromey <tromey@redhat.com>
227
228 * psympriv.h (struct partial_symtab) <user>: Move earlier.
229
230 2013-12-06 Tom Tromey <tromey@redhat.com>
231
232 * cli/cli-cmds.c (edit_command): Use paddress, not hex_string.
233 (list_command): Likewise.
234
235 2013-12-06 Tom Tromey <tromey@redhat.com>
236
237 * psymtab.c (allocate_psymtab): Put the filename in the filename
238 bcache.
239
240 2013-12-06 Tom Tromey <tromey@redhat.com>
241
242 * buildsym.c (end_symtab_from_static_block): Use obstack_copy0.
243 * symtab.h (struct symtab) <dirname>: Now const.
244
245 2013-12-06 Tom Tromey <tromey@redhat.com>
246
247 * symfile.c (allocate_symtab): Remove cast.
248 * symtab.h (struct symtab) <filename>: Now const.
249
250 2013-12-06 Tom Tromey <tromey@redhat.com>
251
252 * break-catch-throw.c (fetch_probe_arguments): Use
253 get_probe_argument_count and evaluate_probe_argument.
254 * elfread.c (elf_get_probe_argument_count)
255 (elf_can_evaluate_probe_arguments, elf_evaluate_probe_argument)
256 (elf_compile_to_ax): Remove.
257 (elf_probe_fns): Update.
258 * probe.c (get_probe_argument_count, can_evaluate_probe_arguments)
259 (evaluate_probe_argument): Call method on probe, not via sym
260 functions.
261 * stap-probe.c (compute_probe_arg): Use get_probe_argument_count,
262 evaluate_probe_argument.
263 (compile_probe_arg): Use get_probe_argument_count. Call method on
264 probe, not via sym functions.
265 * symfile-debug.c (debug_sym_get_probe_argument_count)
266 (debug_can_evaluate_probe_arguments)
267 (debug_sym_evaluate_probe_argument, debug_sym_compile_to_ax):
268 Remove.
269 (debug_sym_probe_fns): Remove.
270 * symfile.h (struct sym_probe_fns) <sym_get_probe_argument_count,
271 can_evaluate_probe_arguments, sym_evaluate_probe_argument,
272 sym_compile_to_ax>: Remove fields.
273
274 2013-12-06 Pierre Muller <muller@sourceware.org>
275
276 Fix completion for pascal language.
277 * p-exp.y (exp : field_exp name): Do not call mark_struct_expression.
278 (exp : field_exp name COMPLETE): New rule.
279 (exp : SIZEOF): Set correct current_type.
280 (last_was_structop): Remove static variable.
281 (yylex): Remove saw_structop local variable.
282 Adapt code to removal of variables above.
283
284 2013-12-06 Joel Brobecker <brobecker@adacore.com>
285
286 * frame.c (get_prev_frame_1): Delete variable "this_id".
287 Replace its use by a call to get_frame_id.
288
289 2013-12-05 Anthony Green <green@moxielogic.com>
290
291 * moxie-tdep.c (moxie_software_single_step): New function.
292 (INST2OFFSET): New helper macro.
293 (moxie_gdbarch_init): Call set_gdbarch_software_single_step.
294 (moxie_process_readu): Move this up in the file.
295
296 2013-12-05 Doug Evans <xdje42@gmail.com>
297
298 * auto-load.c (load_auto_scripts_for_objfile): Add some comments.
299
300 2013-12-05 Joel Brobecker <brobecker@adacore.com>
301 Tristan Gingold <gingold@adacore.com>
302
303 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
304 Accept version 2. Ignore operations using opcode 6.
305
306 2013-12-05 Joel Brobecker <brobecker@adacore.com>
307
308 * ada-lex.l (find_dot_all): Fix coding style violations.
309
310 2013-12-03 Walfred Tedeschi <walfred.tedeschi@intel.com>
311
312 * NEWS: Add section for Intel(R) Architecture Instructions
313 Extesions mentioning MPX.
314
315 2013-12-03 Joel Brobecker <brobecker@adacore.com>
316
317 * ada-lex.l (find_dot_all): Use strncasecmp instead of strncmp.
318
319 2013-12-03 Joel Brobecker <brobecker@adacore.com>
320
321 * ada-lang.c (create_excep_cond_exprs): Force EXP to NULL
322 when parse_exp_1 threw an error. Add comment.
323
324 2013-12-03 Joel Brobecker <brobecker@adacore.com>
325
326 * NEWS: Mention "-list-features" in the entry documenting
327 the support for the "--language" option.
328
329 2013-12-03 Tom Tromey <tromey@redhat.com>
330 Jan Kratochvil <jan.kratochvil@redhat.com>
331 Doug Evans <dje@google.com>
332 Samuel Bronson <naesten@gmail.com>
333
334 Bring back gdb-add-index as a contrib script.
335 * contrib/gdb-add-index.sh: New file.
336 * NEWS: Note the addition.
337
338 2013-12-03 Samuel Bronson <naesten@gmail.com>
339
340 * MAINTAINERS (Write After Approval): Add myself to the list.
341
342 2013-12-03 Joel Brobecker <brobecker@adacore.com>
343
344 * mi/mi-main.c (mi_cmd_list_features): Remove "ada-exceptions".
345
346 2013-12-03 Joel Brobecker <brobecker@adacore.com>
347
348 * mi/mi-main.c: Remove trailing spaces throughout.
349
350 2013-12-03 Pedro Alves <palves@redhat.com>
351 Joel Brobecker <brobecker@adacore.com>
352
353 * exceptions.h (enum_errors) <UNDEFINED_COMMAND_ERROR>: New enum.
354 * mi/mi-parse.c (mi_parse): Throw UNDEFINED_COMMAND_ERROR instead
355 of a regular error when the GDB/MI command does not exist.
356 * mi/mi-main.c (mi_cmd_list_features): Add
357 "undefined-command-error-code".
358 (mi_print_exception): Print an "undefined-command"
359 error code if EXCEPTION.ERROR is UNDEFINED_COMMAND_ERROR.
360 * NEWS: Add entry documenting the new "code" variable in
361 "^error" result records.
362
363 2013-12-03 Joel Brobecker <brobecker@adacore.com>
364
365 * mi/mi-cmds.h (mi_cmd_info_gdb_mi_command): Declare.
366 * mi/mi-cmd-info.c (mi_cmd_info_gdb_mi_command): New function.
367 * mi/mi-cmds.c (mi_cmds): Add -info-gdb-mi-command command.
368 * mi/mi-main.c (mi_cmd_list_features): Add "info-gdb-mi-command"
369 field to output of "-list-features".
370
371 * NEWS: Add entry for new -info-gdb-mi-command.
372
373 2013-12-02 Doug Evans <dje@google.com>
374 Jan Kratochvil <jan.kratochvil@redhat.com>
375
376 * objfiles.c (allocate_objfile): Save original_name as an absolute
377 path.
378 * objfiles.h (struct objfile): Expand comment on original_name.
379 * source.c (openp): Call gdb_abspath.
380 * utils.c (gdb_abspath): New function.
381 * utils.h (gdb_abspath): Declare.
382
383 2013-12-02 Pedro Alves <palves@redhat.com>
384
385 * dcache.c (dcache_read_line): Use target_read_raw_memory.
386 * target.c (target_read_raw_memory): New function.
387 (target_read_stack, target_write_memory, target_write_raw_memory):
388 Update comment.
389 (target_read_code): Add comment.
390 * target.h (target_read_raw_memory): Declare.
391
392 2013-12-02 Pedro Alves <palves@redhat.com>
393
394 * ctf.c (ctf_start): Use S_IRGRP, S_IXGRP, S_IXOTH
395 unconditionally.
396
397 2013-12-02 Pedro Alves <pedro@codesourcery.com>
398 Maciej W. Rozycki <macro@codesourcery.com>
399
400 * remote.c (putpkt_for_catch_errors): Remove function.
401 (remote_kill): Handle TARGET_CLOSE_ERROR from the kill packet
402 gracefully.
403
404 2013-12-02 Pedro Alves <palves@redhat.com>
405
406 PR remote/15974
407 * remote-notif.c (handle_notification): Return early if no
408 notification is found.
409
410 2013-12-02 Joel Brobecker <brobecker@adacore.com>
411
412 * common/filestuff.c (fdwalk): Add "defined(RLIMIT_NOFILE)"
413 preprocessor check.
414
415 2013-12-02 Joel Brobecker <brobecker@adacore.com>
416
417 * Makefile.in (HFILES_NO_SRCDIR): Remove "common/gdb_dirent.h".
418
419 2013-12-02 Joel Brobecker <brobecker@adacore.com>
420
421 * Makefile.in (HFILES_NO_SRCDIR): Remove "common/gdb_stat.h".
422 * ctf.c (ctf_start): Remove obsolete comment.
423
424 2013-12-02 Joel Brobecker <brobecker@adacore.com>
425
426 * Makefile.in (HFILES_NO_SRCDIR): Remove "common/gdb_string.h".
427
428 2013-11-30 Doug Evans <xdje42@gmail.com>
429
430 * auto-load.h (script_language): New members name, auto_load_enabled.
431 Add missing comments on struct members.
432 (auto_load_objfile_script): Delete.
433 * auto-load.c: #include "cli/cli-cmds.h".
434 (auto_load_gdb_scripts_enabled): New function.
435 (script_language_gdb): Update, add new members.
436 (source_gdb_script_for_objfile): Simplify, auto-load safe-checking
437 and call to maybe_add_script moved to caller.
438 (auto_load_objfile_script_1): Auto-load safe-checking and
439 call to maybe_add_script moved here.
440 (auto_load_objfile_script): Make static. Early exit if support for
441 scripting language hasn't been compiled in, or auto-loading has been
442 disabled.
443 (source_section_scripts): Argument "source_name" renamed to
444 "section_name". All uses updated. Replace uses of AUTO_SECTION_NAME
445 with section_name. Skip loading script if support for scripting
446 language hasn't been compiled in, or auto-loading has been disabled.
447 Call language->source_script_for_objfile instead of calling
448 source_python_script_for_objfile directly.
449 (load_auto_scripts_for_objfile): Update.
450 * python/py-auto-load.c: Delete #include "cli/cli-cmds.h".
451 (gdbpy_load_auto_script_for_objfile): Delete.
452 (auto_load_python_scripts_enabled): New function.
453 (script_language_python): Update, add new members.
454 (gdbpy_script_language_defn): New function.
455 * python/python.h (gdbpy_load_auto_scripts_for_objfile): Delete.
456 (gdbpy_script_language_defn): Declare.
457
458 * auto-load.c (AUTO_SECTION_NAME): Moved here and renamed from
459 py-auto-load.c, GDBPY_AUTO_SECTION_NAME.
460 (source_section_scripts): Moved here from py-auto-load.c.
461 (auto_load_section_scripts): Ditto.
462 * python/py-auto-load.c (GDBPY_AUTO_SECTION_NAME): Moved to
463 auto-load.c, renamed AUTO_SECTION_NAME.
464 (source_section_scripts, auto_load_section_scripts): Moved to
465 auto-load.c.
466
467 2013-11-30 Yao Qi <yao@codesourcery.com>
468
469 * remote.c (getpkt_or_notif_sane_1): Fix typo "checksm".
470
471 2013-11-29 Sergio Durigan Junior <sergiodj@redhat.com>
472
473 * gdbarch.sh: Remove include of "gdb_string.h", replace by
474 <string.h>.
475
476 2013-11-29 Doug Evans <xdje42@gmail.com>
477
478 * python/py-auto-load.c (source_section_scripts): Move comment to
479 more relevant location.
480
481 Whitespace cleanup.
482 * python/py-breakpoint.c: Remove trailing whitespace.
483 * python/py-cmd.c: Ditto.
484 * python/py-evts.c: Ditto.
485 * python/py-finishbreakpoint.c: Ditto.
486 * python/py-frame.c: Ditto.
487 * python/py-function.c: Ditto.
488 * python/py-inferior.c: Ditto.
489 * python/py-infthread.c: Ditto.
490 * python/py-param.c: Ditto.
491 * python/py-prettyprint.c: Ditto.
492 * python/py-symbol.c: Ditto.
493 * python/py-type.c: Ditto.
494 * python/py-utils.c: Ditto.
495 * python/py-value.c: Ditto.
496 * python/python-internal.h: Ditto.
497 * python/python.c: Ditto.
498
499 2013-11-29 Pedro Alves <palves@redhat.com>
500
501 * unwind_stop_reasons.def (UNWIND_NULL_ID): Update comment.
502
503 2013-11-29 Pedro Alves <palves@redhat.com>
504
505 * breakpoint.c (build_target_condition_list): Release previous
506 conditions.
507 (build_target_command_list): Release previous commands.
508 (bp_location_dtor): Release target conditions and commands.
509 * remote.c (remote_add_target_side_condition): Don't release
510 conditions.
511 (remote_add_target_side_commands): Don't release commands.
512
513 2013-11-29 Yao Qi <yao@codesourcery.com>
514 Pedro Alves <palves@redhat.com>
515
516 * dcache.c (dcache_read_line): Use current_target.beneath
517 instead of &current_target.
518 * target.c (memory_xfer_partial_1): Factor code out to ...
519 (raw_memory_xfer_partial): ... it. New function.
520 (target_xfer_partial): Call raw_memory_xfer_partial if OBJECT
521 is TARGET_OBJECT_RAW_MEMORY.
522
523 2013-11-28 Doug Evans <xdje42@gmail.com>
524
525 * breakpoint.h (gdbpy_breakpoint_object): Renamed from
526 breakpoint_object. All uses updated.
527 * python/python-internal.h (gdbpy_breakpoint_object): Renamed from
528 breakpoint_object. All uses updated.
529 * python.c (*): All uses of breakpoint_object updated.
530 * python.h (*): All uses of breakpoint_object updated.
531 * python/py-breakpoint.c (*): All uses of breakpoint_object updated.
532 * python/py-finishbreakpoint.c (*): Ditto.
533
534 2013-11-28 Doug Evans <xdje42@gmail.com>
535
536 * configure.ac: Add comments delineating libpython and libmcheck.
537 * configure: Regenerate.
538
539 2013-11-28 Andrew Burgess <aburgess@broadcom.com>
540 Pedro Alves <palves@redhat.com>
541
542 * valprint.c (value_check_printable): If the value is entirely
543 unavailable, print a single "<unavailable>" instead of printing
544 all subfields.
545
546 2013-11-28 Pedro Alves <palves@redhat.com>
547
548 * frame.c (get_prev_frame_1) <stop_reason != UNWIND_NO_REASON>:
549 Add "set debug frame" output.
550 (frame_stop_reason_symbol_string): New function.
551
552 2013-11-28 Pedro Alves <palves@redhat.com>
553
554 * frame-unwind.c (default_frame_unwind_stop_reason): Return
555 UNWIND_OUTERMOST if the frame's ID is outer_frame_id.
556 * frame.c (get_prev_frame_1): Remove outer_frame_id check.
557
558 2013-11-28 Pedro Alves <palves@redhat.com>
559
560 * frame.c (get_prev_frame_1): If the frame id is outer_frame_id,
561 set the unwind stop reason to UNWIND_OUTERMOST, not
562 UNWIND_NULL_ID. Remove explicit check for sentinel frame.
563
564 2013-11-28 Pedro Alves <palves@redhat.com>
565
566 * frame.c (frame_unwind_register): Say the register was "not
567 saved" instead of "optimized out".
568
569 2013-11-27 Steffen Sledz <sledz@dresearch-fe.de>
570
571 PR 16152
572 * configure: Rebuild.
573 * configure.ac: Tighten cygwin detection check.
574
575 2013-11-27 Pedro Alves <palves@redhat.com>
576
577 * frame-unwind.c (frame_unwind_got_optimized): Use the type of the
578 register in the previous frame's arch.
579
580 2013-11-27 Pedro Alves <palves@redhat.com>
581
582 * frame-unwind.c (frame_unwind_got_optimized): Return
583 an lval_register value instead of a not_lval value.
584
585 2013-11-27 Andrew Burgess <aburgess@broadcom.com>
586
587 * frame.c: Include "valprint.h".
588 (frame_unwind_register_value): Use value_optimized_out.
589 * value.c (value_fetch_lazy): Likewise.
590
591 2013-11-26 Andrew Burgess <aburgess@broadcom.com>
592
593 * value.c (allocate_optimized_out_value): Mark value as non-lazy.
594
595 2013-11-26 Tom Tromey <tromey@redhat.com>
596
597 * dwarf2-frame.c (dwarf2_frame_cache): Revert patch from
598 2013-11-22.
599
600 2013-11-26 Walfred Tedeschi <walfred.tedeschi@intel.com>
601
602 * i386-xstate.h (I386_XSTATE_MPX): New Macro.
603 (I386_XSTATE_MPX_MASK): Makes use of I386_XSTATE_MPX.
604 (HAS_MPX): New macro.
605 (HAS_AVX): New macro.
606 (I386_XSTATE_SIZE): Uses HAS_MPX and HAS_AVX.
607
608 2013-11-25 Keith Seitz <keiths@redhat.com>
609
610 PR c++/14819
611 * c-exp.y (classify_inner_name): If no matching symbol was
612 found, try looking up the token as a base class.
613 Likewise if a constructor was found.
614 * cp-namespace.c (find_type_baseclass_by_name): New function.
615 * cp-support.h (find_type_baseclass_by_name): Declare.
616 * valops.c (value_struct_elt_for_reference): If we get
617 a non-static field, try to get a value based on the
618 current instance, if any.
619
620 2013-11-24 Yao Qi <yao@codesourcery.com>
621
622 * disasm.c (dis_asm_read_memory): Call target_read_code
623 instead of target_read_memory.
624
625 2013-11-24 Yao Qi <yao@codesourcery.com>
626
627 * NEWS: Add note on new "set code-cache" option.
628 * target-dcache.c (code_cache_enabled_1): New variable.
629 (code_cache_enabled): New variable.
630 (show_code_cache, set_code_cache): New function.
631 (code_cache_enabled_p): New function.
632 (_initialize_target_dcache): Register command.
633 * target-dcache.h (code_cache_enabled_p): Declare.
634 * target.c (memory_xfer_partial_1):Handle
635 TARGET_OBJECT_CODE_MEMORY and code_cache_enabled.
636 (target_read_code): New function.
637 * target.h (enum target_object) <TARGET_OBJECT_CODE_MEMORY>:
638 New.
639 (target_read_code): Declare.
640
641 2013-11-24 Yao Qi <yao@codesourcery.com>
642
643 * target-dcache.c (stack_cache_enabled_p_1): Rename to ...
644 (stack_cache_enabled_1): ... this. New variable.
645 (stack_cache_enabled_p): Rename to ...
646 (stack_cache_enabled): ... this. New variable.
647 (set_stack_cache_enabled_p): Rename to ...
648 (set_stack_cache): ... this. Update caller.
649 (show_stack_cache_enabled_p): Rename to ...
650 (show_stack_cache): ... this. Update caller.
651 (stack_cache_enabled): Rename to ...
652 (stack_cache_enabled_p): ... this. Update caller.
653 (_initialize_target_dcache): Replace "data cache" with
654 "target memory cache".
655 * target-dcache.h (stack_cache_enabled): Remove declaration.
656 (stack_cache_enabled_p): Add declaration.
657
658 2013-11-23 Doug Evans <xdje42@gmail.com>
659
660 * python/py-frame.c (gdbpy_initialize_frames): Remove FIRST_ERROR,
661 superfluous.
662
663 2013-11-23 Doug Evans <xdje42@gmail.com>
664
665 * python/py-frame.c (frapy_block): Fix error message text.
666
667 2013-11-23 Doug Evans <xdje42@gmail.com>
668
669 * cli/cli-script.c (multi_line_command_p): New function.
670 (recurse_read_control_structure, read_command_lines_1): Call it.
671 (execute_control_command): Consistently have a blank line between
672 each case.
673
674 2013-11-22 Sterling Augustine <saugustine@google.com>
675
676 PR gdb/16196:
677 * valprint.c (read_string): Set new variable fetchlen based on
678 fetchlimit and size. Use it in call to partial_memory_read.
679 Update comment.
680
681 2013-11-22 Tom Tromey <tromey@redhat.com>
682
683 PR backtrace/16155:
684 * dwarf2-frame.c (dwarf2_frame_cache): Set undefined_retaddr if
685 the return address column is unspecified.
686
687 2013-11-22 Tom Tromey <tromey@redhat.com>
688 Pedro Alves <palves@redhat.com>
689
690 PR backtrace/16155
691 * value.c (value_fetch_lazy): Internal error if
692 get_frame_register_value returns the same register.
693
694 2013-11-22 Pedro Alves <palves@redhat.com>
695 Tom Tromey <tromey@redhat.com>
696
697 * frame.c (frame_stash_add): Now returns whether a frame with the
698 same ID was already known.
699 (compute_frame_id): New function, factored out from get_frame_id.
700 (get_frame_id): No longer lazilly compute the frame id here.
701 (get_prev_frame_if_no_cycle): New function. Detects wider stack
702 cycles.
703 (get_prev_frame_1): Use it instead of get_prev_frame_raw directly,
704 and checking for stack cycles here.
705
706 2013-11-22 Pedro Alves <palves@redhat.com>
707
708 PR 16155
709 * frame.c (get_prev_frame_1): Do the UNWIND_SAME_ID check between
710 this frame and the new previous frame, not between this frame and
711 the next frame.
712
713 2013-11-22 Pedro Alves <palves@redhat.com>
714
715 PR 16155
716 * dwarf2-frame.c (struct dwarf2_frame_cache)
717 <checked_tailcall_bottom, entry_cfa_sp_offset,
718 entry_cfa_sp_offset_p>: New fields.
719 (dwarf2_frame_cache): Adjust to use the new cache fields instead
720 of locals. Don't call dwarf2_tailcall_sniffer_first here.
721 (dwarf2_frame_prev_register): Call it here, but only once.
722
723 2013-11-21 Doug Evans <xdje42@gmail.com>
724
725 * gdbtypes.c: #include bcache.h, dwarf2loc.h.
726 (type_equality_entry): Move here from python/py-type.c.
727 (type_equality_entry_d): Ditto.
728 (compare_maybe_null_strings, check_types_equal): Ditto.
729 (check_types_worklist, types_deeply_equal): Ditto.
730 * gdbtypes.h (types_deeply_equal): Declare.
731 * python/py-type.c: Remove inclusion of bcache.h, dwarf2loc.h.
732 (typy_richcompare): Update.
733
734 2013-11-20 Joel Brobecker <brobecker@adacore.com>
735
736 * python/py-value.c (is_intlike): Delete.
737 (valpy_int): Replace use of CHECK_TYPEDEF and is_intlike
738 by use of is_integral_type.
739 (valpy_long): Replace use of CHECK_TYPEDEF and is_intlike
740 by use of is_integral_type and check for TYPE_CODE_PTR.
741
742 2013-11-20 Tom Tromey <tromey@redhat.com>
743
744 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Remove
745 strerror module.
746 * gnulib/aclocal.m4: Update.
747 * gnulib/config.in: Update.
748 * gnulib/configure: Update.
749 * gnulib/import/Makefile.am: Update.
750 * gnulib/import/Makefile.in: Update.
751 * gnulib/import/errno.in.h: Remove.
752 * gnulib/import/intprops.h: Remove.
753 * gnulib/import/m4/errno_h.m4: Remove.
754 * gnulib/import/m4/gnulib-cache.m4: Update.
755 * gnulib/import/m4/gnulib-comp.m4: Update.
756 * gnulib/import/m4/strerror.m4: Remove.
757 * gnulib/import/m4/sys_socket_h.m4: Remove.
758 * gnulib/import/strerror-override.c: Remove.
759 * gnulib/import/strerror-override.h: Remove.
760 * gnulib/import/strerror.c: Remove.
761 * gnulib/update-gnulib.sh: Update.
762
763 2013-11-20 Yao Qi <yao@codesourcery.com>
764
765 * target-dcache.c (target_dcache_get_or_init): Call
766 set_address_space_data if 'dcache' is NULL.
767
768 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
769
770 * common/i386-gcc-cpuid.h (bit_MPX): Synchronize with gcc file.
771
772 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
773
774 * python/lib/gdb/command/bound_register.py: New file.
775 * data-directory/Makefile.in: Copy bond_register.py to the right path
776 to be initialized at gdb startup.
777
778 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
779
780 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset):
781 Add MPX registers.
782 (amd64_linux_read_description): Add initialization for MPX and
783 AVX independently.
784 * amd64-linux-tdep.c: Includes features/i386/amd64-mpx-linux.c.
785 (amd64_linux_gregset_reg_offset): Add MPX registers.
786 (amd64_linux_core_read_description): Add initialization for MPX
787 registers.
788 (_initialize_amd64_linux_tdep): Initialize MPX targets.
789 * amd64-linux-tdep.h (AMD64_LINUX_RAX_REGNUM): Set it to the last
790 register on the list.
791 (tdesc_amd64_mpx_linux) Add new target for MPX.
792 * amd64-tdep.c: Includes features/i386/amd64-mpx.c.
793 (amd64_mpx_names): MPX register names.
794 (amd64_init_abi): Add MPX register while initializing the ABI.
795 (_initialize_amd64_tdep): Initialize MPX targets.
796 * amd64-tdep.h (amd64_regnum): Add MPX registers.
797 (AMD64_NUM_REGS): Set number of registers taking MPX into account.
798
799 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
800
801 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Add MPX
802 registers on the range of registers to be read from
803 xsave buffer.
804 (i386_linux_read_description): Add case for MPX.
805 * i386-linux-tdep.c: Include features/i386/i386-mpx-linux.c.
806 (i386_linux_gregset_reg_offset): Add MPX registers.
807 (i386_linux_core_read_description): Initialize also MPX.
808 (_initialize_i386_linux_tdep): Add mpx initialization.
809 * i386-tdep.h (gdbarch_tdep): Add fields bnd0r_regnum, bnd0_regnum,
810 mpx_register_names.
811 (i386_regnum): Add MPX registers.
812 (I386_MPX_NUM_REGS): New macro.
813 (i386_bnd_regnum_p): New function.
814 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set
815 number of registers to be the number of BNDSTATUS.
816 (tdesc_i386_mpx_linux): Add description for MPX Linux registers.
817 * i386-tdep.c: Include features/i386/i386-mpx.c.
818 (i386_mpx_names): Add MPX register names array.
819 (i386_bnd_names): Add bnd pseudo register names array.
820 (i386_bndr_regnum_p): Lookup register numbers for bnd raw
821 registers.
822 (i386_bndr_regnum_p): Lookup register numbers for bnd raw registers.
823 (386_mpx_ctrl_regnum_p): Lookup register numbers for MPX control
824 registers.
825 (i386_bnd_type): New function.
826 (i386_pseudo_register_type): Use i386_bnd_type for bnd pseudo
827 register types.
828 (i386_pseudo_register_read_into_value): Add bnd case.
829 (i386_pseudo_register_write): Add bnd pseudo registers.
830 (i386_register_reggroup_p): Add MPX register to the group all.
831 (i386_validate_tdesc_p): Add MPX to the target description
832 validation.
833 (i386_pseudo_register_name): Add bnd pseudo registers.
834 (i386_gdbarch_init): Add MPX for architecture initialization.
835 (_initia_initialize_i386_tdep): Add mpx initialization.
836 * i387-tdep.c (xsave_mpx_offset): New vector for MPX offsets on
837 XSAVE buffer.
838 (XSAVE_MPX_ADDR): New macro.
839 (i387_supply_xsave): Add MPX case.
840 (i387_collect_xsave): Add MPX case.
841 * i387-tdep.h (I387_BND0R_REGNUM): New macro.
842 (I387_BNDCFGU_REGNUM): New macro.
843 (I387_NUM_MPX_REGS): New macro.
844 (I387_NUM_BND_REGS): New macro.
845 (I387_NUM_MPX_CTRL_REGS): New macro.
846 (I387_MPXEND_REGNUM): New macro.
847 * common/i386-xstate.h (I386_XSTATE_BNDREGS): New macro.
848 (I386_XSTATE_BNDCFG): Likewise.
849 (I386_XSTATE_MPX_MASK): Likewise.
850 (I386_XSTATE_ALL_MASK): New macro represents flags for all states.
851 (I386_XSTATE_BNDREGS_SIZE): New macro.
852 (I386_XSTATE_BNDCFG_SIZE): Likewise.
853 (I386_XSTATE_SIZE): Adapt for MPX.
854 (I386_XSTATE_MAX_SIZE): Likewise.
855
856 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
857
858 * features/i386/Makefile: Adapts for using MPX registers.
859 * features/i386/32bit-mpx.xml: New file.
860 * features/i386/64bit-mpx.xml: Likewise.
861 * features/i386/amd64-mpx-linux.c: Likewise.
862 * features/i386/amd64-mpx-linux.xml: Likewise.
863 * features/i386/amd64-mpx.c: Likewise.
864 * features/i386/amd64-mpx.xml: Likewise.
865 * features/i386/i386-mpx-linux.c: Likewise.
866 * features/i386/i386-mpx-linux.xml: Likewise.
867 * features/i386/i386-mpx.c: Likewise.
868 * features/i386/i386-mpx.xml: Likewise.
869 * regformats/i386/amd64-mpx-linux.dat: New file.
870 * regformats/i386/amd64-mpx.dat: Likewise.
871 * regformats/i386/i386-mpx-linux.dat: Likewise.
872 * regformats/i386/i386-mpx.dat: Likewise.
873
874 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
875
876 * target-descriptions.c (maint_print_maint_print_c_tdesc_cmd):
877 Modified logic of creating a bitfield to be in sync with
878 tdesc_gdb_type.
879
880 2013-11-20 Will Newton <will.newton@linaro.org>
881
882 * arm-tdep.c (arm_get_next_pc): Remove "Infinite loop detected"
883 error message.
884
885 2013-11-20 Yao Qi <yao@codesourcery.com>
886
887 * progspace.h (struct address_space_data): Declare.
888 * target-dcache.c: Include "progspace.h".
889 (target_dache): Remove.
890 (target_dcache_aspace_key): New.
891 (target_dcache_cleanup): New function.
892 (target_dcache_init_p): Get data through
893 target_dcache_aspace_key.
894 (target_dcache_invalidate): Likewise.
895 (target_dcache_get): Likewise.
896 (target_dcache_get_or_init): Likewise.
897 (_initialize_target_dcache): Initialize
898 target_dcache_aspace_key.
899
900 2013-11-20 Yao Qi <yao@codesourcery.com>
901
902 * progspace.c (struct address_space): Update comments.
903 <REGISTRY_FIELDS>: New fields.
904 DEFINE_REGISTRY for address_space.
905 (new_address_space): Call address_space_alloc_data.
906 (free_address_space): Call address_space_free_data.
907 * progspace.h: Use DECLARE_REGISTRY.
908
909 2013-11-20 Yao Qi <yao@codesourcery.com>
910
911 * Makefile.in (SFILES):Add target-dcache.c.
912 (HFILES_NO_SRCDIR): Add target-dcache.h.
913 (COMMON_OBS): Add target-dcache.o.
914 * dcache.c: Remove inclusion to "target.h". Include
915 "target-dcache.h".
916 * memattr.c: Include "target-dcache.h".
917 * top.c: Likewise.
918 * tracepoint.c: Likewise.
919 * target.c: (stack_cache_enabled_p_1): Move to
920 target-dcache.c.
921 (stack_cache_enabled_p): Likewise.
922 (set_stack_cache_enabled_p): Likewise.
923 (show_stack_cache_enabled_p): Likewise.
924 (target_dcache, target_dcache_init_p): Likewise.
925 (target_dcache_invalidate): Likewise.
926 (target_dcache_get, target_dcache_get_or_init): Likewise.
927 (memory_xfer_partial_1): Call function stack_cache_enabled.
928 (initialize_target): Move code to target-dcache.c.
929 * target.h (target_dcache_invalidate): Move to
930 target-dcache.h.
931 (target_dcache_get): Likewise.
932 * target-dcache.c: New.
933 * target-dcache.h: New.
934
935 2013-11-20 Yao Qi <yao@codesourcery.com>
936
937 * target.c (memory_xfer_partial_1): Update 'target_dcache' if
938 it is initialized.
939
940 2013-11-20 Yao Qi <yao@codesourcery.com>
941
942 * dcache.c (last_cache): Remove.
943 (dcache_free, dcache_init): Update.
944 (dcache_update):
945 (dcache_print_line): Add parameter 'dcache'. Replace
946 'target_dcache' with 'dcache'.
947 (dcache_info): Move code to dcache_info_1. Call
948 'dcache_info_1'.
949 (dcache_info_1): New function.
950 (set_dcache_size): Call target_dcache_invalidate.
951 (set_dcache_line_size): Call target_dcache_invalidate.
952 * target.c (target_dcache_init_p): New function.
953 (target_dcache_invalidate): Check target_dcache_init_p first.
954 (target_dcache_get, target_dcache_get_or_init): New function.
955 (memory_xfer_partial_1): Adjust.
956 (initialize_target): Don't initialize 'target_dcache'.
957 * target.h (struct dcache_struct): Declare.
958 (target_dcache_get): Declare.
959
960 2013-11-19 Yao Qi <yao@codesourcery.com>
961
962 * varobj.c (varobj_get_type): Fix typo.
963
964 2013-11-19 Joel Brobecker <brobecker@adacore.com>
965
966 * python/py-value.c (is_intlike): Add TYPE_CODE_RANGE handling.
967
968 2013-11-19 Joel Brobecker <brobecker@adacore.com>
969
970 * contrib/ari/gdb_ari.sh: Remove checks for "dirent.h" and
971 "stat.h".
972
973 2013-11-18 Tom Tromey <tromey@redhat.com>
974
975 * common/gdb_stat.h: Remove.
976 * ada-lang.c: Use sys/stat.h, not gdb_stat.h.
977 * common/filestuff.c: Use sys/stat.h, not gdb_stat.h.
978 * common/linux-osdata.c: Use sys/stat.h, not gdb_stat.h.
979 * corefile.c: Use sys/stat.h, not gdb_stat.h.
980 * ctf.c: Use sys/stat.h, not gdb_stat.h.
981 * darwin-nat.c: Use sys/stat.h, not gdb_stat.h.
982 * dbxread.c: Use sys/stat.h, not gdb_stat.h.
983 * dwarf2read.c: Use sys/stat.h, not gdb_stat.h.
984 * exec.c: Use sys/stat.h, not gdb_stat.h.
985 * gdbserver/linux-low.c: Use sys/stat.h, not gdb_stat.h.
986 * gdbserver/remote-utils.c: Use sys/stat.h, not gdb_stat.h.
987 * inf-child.c: Use sys/stat.h, not gdb_stat.h.
988 * jit.c: Use sys/stat.h, not gdb_stat.h.
989 * linux-nat.c: Use sys/stat.h, not gdb_stat.h.
990 * m68klinux-nat.c: Use sys/stat.h, not gdb_stat.h.
991 * main.c: Use sys/stat.h, not gdb_stat.h.
992 * mdebugread.c: Use sys/stat.h, not gdb_stat.h.
993 * mi/mi-cmd-env.c: Use sys/stat.h, not gdb_stat.h.
994 * nto-tdep.c: Use sys/stat.h, not gdb_stat.h.
995 * objfiles.c: Use sys/stat.h, not gdb_stat.h.
996 * procfs.c: Use sys/stat.h, not gdb_stat.h.
997 * remote-fileio.c: Use sys/stat.h, not gdb_stat.h.
998 * remote-mips.c: Use sys/stat.h, not gdb_stat.h.
999 * remote.c: Use sys/stat.h, not gdb_stat.h.
1000 * rs6000-nat.c: Use sys/stat.h, not gdb_stat.h.
1001 * sol-thread.c: Use sys/stat.h, not gdb_stat.h.
1002 * solib-spu.c: Use sys/stat.h, not gdb_stat.h.
1003 * source.c: Use sys/stat.h, not gdb_stat.h.
1004 * symfile.c: Use sys/stat.h, not gdb_stat.h.
1005 * symmisc.c: Use sys/stat.h, not gdb_stat.h.
1006 * symtab.c: Use sys/stat.h, not gdb_stat.h.
1007 * top.c: Use sys/stat.h, not gdb_stat.h.
1008 * xcoffread.c: Use sys/stat.h, not gdb_stat.h.
1009
1010 2013-11-18 Tom Tromey <tromey@redhat.com>
1011
1012 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
1013 sys_stat.
1014 * gnulib/aclocal.m4: Update.
1015 * gnulib/config.in: Update.
1016 * gnulib/configure: Update.
1017 * gnulib/import/Makefile.am: Update.
1018 * gnulib/import/Makefile.in: Update.
1019 * gnulib/import/m4/gnulib-cache.m4: Update.
1020 * gnulib/import/m4/gnulib-comp.m4: Update.
1021 * gnulib/import/m4/sys_stat_h.m4: New.
1022 * gnulib/import/m4/time_h.m4: New.
1023 * gnulib/import/sys_stat.in.h: New.
1024 * gnulib/import/time.in.h: New.
1025
1026 2013-11-18 Tom Tromey <tromey@redhat.com>
1027
1028 * configure: Rebuild.
1029 * configure.ac: Remove check of HAVE_SYS_TYPES_H.
1030
1031 2013-11-18 Tom Tromey <tromey@redhat.com>
1032
1033 * configure: Rebuild.
1034 * configure.ac: Don't check for unistd.h.
1035
1036 2013-11-18 Tom Tromey <tromey@redhat.com>
1037
1038 * configure: Rebuild.
1039 * configure.ac: Don't check for stdlib.h
1040 * defs.h: Include stdlib.h unconditionally.
1041
1042 2013-11-18 Tom Tromey <tromey@redhat.com>
1043
1044 * config.in: Rebuild.
1045 * configure: Rebuild.
1046 * configure.ac: Don't check for stddef.h.
1047 * defs.h: Unconditionally include stddef.h. Remove duplicate
1048 inclusion.
1049
1050 2013-11-18 Tom Tromey <tromey@redhat.com>
1051
1052 * common/common.m4 (GDB_AC_COMMON): Don't use AC_HEADER_DIRENT.
1053 * common/gdb_dirent.h: Remove.
1054 * common/filestuff.c: Use dirent.h.
1055 * common/linux-osdata.c: Use dirent.h.
1056 (NAMELEN): Define.
1057 * config.in: Rebuild.
1058 * configure: Rebuild.
1059 * configure.ac: Don't use AC_HEADER_DIRENT.
1060 * linux-fork.c: Use dirent.h
1061 * linux-nat.c: Use dirent.h.
1062 * nto-procfs.c: Use dirent.h.
1063 * procfs.c: Use dirent.h.
1064
1065 2013-11-18 Tom Tromey <tromey@redhat.com>
1066
1067 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirent.
1068 * gnulib/aclocal.m4: Update.
1069 * gnulib/config.in: Update.
1070 * gnulib/configure: Update.
1071 * gnulib/import/Makefile.am: Update.
1072 * gnulib/import/Makefile.in: Update.
1073 * gnulib/import/dirent.in.h: New.
1074 * gnulib/import/m4/dirent_h.m4: New.
1075 * gnulib/import/m4/gnulib-cache.m4: Update.
1076 * gnulib/import/m4/gnulib-comp.m4: Update.
1077
1078 2013-11-18 Tom Tromey <tromey@redhat.com>
1079
1080 * configure: Rebuild.
1081 * common/common.m4 (GDB_AC_COMMON): Don't check for string.h or
1082 strings.h.
1083
1084 2013-11-18 Tom Tromey <tromey@redhat.com>
1085
1086 * common/gdb_string.h: Remove.
1087 * aarch64-tdep.c: Use string.h, not gdb_string.h.
1088 * ada-exp.y: Use string.h, not gdb_string.h.
1089 * ada-lang.c: Use string.h, not gdb_string.h.
1090 * ada-lex.l: Use string.h, not gdb_string.h.
1091 * ada-typeprint.c: Use string.h, not gdb_string.h.
1092 * ada-valprint.c: Use string.h, not gdb_string.h.
1093 * aix-thread.c: Use string.h, not gdb_string.h.
1094 * alpha-linux-tdep.c: Use string.h, not gdb_string.h.
1095 * alpha-mdebug-tdep.c: Use string.h, not gdb_string.h.
1096 * alpha-nat.c: Use string.h, not gdb_string.h.
1097 * alpha-osf1-tdep.c: Use string.h, not gdb_string.h.
1098 * alpha-tdep.c: Use string.h, not gdb_string.h.
1099 * alphanbsd-tdep.c: Use string.h, not gdb_string.h.
1100 * amd64-dicos-tdep.c: Use string.h, not gdb_string.h.
1101 * amd64-linux-nat.c: Use string.h, not gdb_string.h.
1102 * amd64-linux-tdep.c: Use string.h, not gdb_string.h.
1103 * amd64-nat.c: Use string.h, not gdb_string.h.
1104 * amd64-sol2-tdep.c: Use string.h, not gdb_string.h.
1105 * amd64fbsd-tdep.c: Use string.h, not gdb_string.h.
1106 * amd64obsd-tdep.c: Use string.h, not gdb_string.h.
1107 * arch-utils.c: Use string.h, not gdb_string.h.
1108 * arm-linux-nat.c: Use string.h, not gdb_string.h.
1109 * arm-linux-tdep.c: Use string.h, not gdb_string.h.
1110 * arm-tdep.c: Use string.h, not gdb_string.h.
1111 * arm-wince-tdep.c: Use string.h, not gdb_string.h.
1112 * armbsd-tdep.c: Use string.h, not gdb_string.h.
1113 * armnbsd-nat.c: Use string.h, not gdb_string.h.
1114 * armnbsd-tdep.c: Use string.h, not gdb_string.h.
1115 * armobsd-tdep.c: Use string.h, not gdb_string.h.
1116 * avr-tdep.c: Use string.h, not gdb_string.h.
1117 * ax-gdb.c: Use string.h, not gdb_string.h.
1118 * ax-general.c: Use string.h, not gdb_string.h.
1119 * bcache.c: Use string.h, not gdb_string.h.
1120 * bfin-tdep.c: Use string.h, not gdb_string.h.
1121 * breakpoint.c: Use string.h, not gdb_string.h.
1122 * build-id.c: Use string.h, not gdb_string.h.
1123 * buildsym.c: Use string.h, not gdb_string.h.
1124 * c-exp.y: Use string.h, not gdb_string.h.
1125 * c-lang.c: Use string.h, not gdb_string.h.
1126 * c-typeprint.c: Use string.h, not gdb_string.h.
1127 * c-valprint.c: Use string.h, not gdb_string.h.
1128 * charset.c: Use string.h, not gdb_string.h.
1129 * cli-out.c: Use string.h, not gdb_string.h.
1130 * cli/cli-cmds.c: Use string.h, not gdb_string.h.
1131 * cli/cli-decode.c: Use string.h, not gdb_string.h.
1132 * cli/cli-dump.c: Use string.h, not gdb_string.h.
1133 * cli/cli-interp.c: Use string.h, not gdb_string.h.
1134 * cli/cli-logging.c: Use string.h, not gdb_string.h.
1135 * cli/cli-script.c: Use string.h, not gdb_string.h.
1136 * cli/cli-setshow.c: Use string.h, not gdb_string.h.
1137 * cli/cli-utils.c: Use string.h, not gdb_string.h.
1138 * coffread.c: Use string.h, not gdb_string.h.
1139 * common/common-utils.c: Use string.h, not gdb_string.h.
1140 * common/filestuff.c: Use string.h, not gdb_string.h.
1141 * common/linux-procfs.c: Use string.h, not gdb_string.h.
1142 * common/linux-ptrace.c: Use string.h, not gdb_string.h.
1143 * common/signals.c: Use string.h, not gdb_string.h.
1144 * common/vec.h: Use string.h, not gdb_string.h.
1145 * core-regset.c: Use string.h, not gdb_string.h.
1146 * corefile.c: Use string.h, not gdb_string.h.
1147 * corelow.c: Use string.h, not gdb_string.h.
1148 * cp-abi.c: Use string.h, not gdb_string.h.
1149 * cp-support.c: Use string.h, not gdb_string.h.
1150 * cp-valprint.c: Use string.h, not gdb_string.h.
1151 * cris-tdep.c: Use string.h, not gdb_string.h.
1152 * d-lang.c: Use string.h, not gdb_string.h.
1153 * dbxread.c: Use string.h, not gdb_string.h.
1154 * dcache.c: Use string.h, not gdb_string.h.
1155 * demangle.c: Use string.h, not gdb_string.h.
1156 * dicos-tdep.c: Use string.h, not gdb_string.h.
1157 * disasm.c: Use string.h, not gdb_string.h.
1158 * doublest.c: Use string.h, not gdb_string.h.
1159 * dsrec.c: Use string.h, not gdb_string.h.
1160 * dummy-frame.c: Use string.h, not gdb_string.h.
1161 * dwarf2-frame.c: Use string.h, not gdb_string.h.
1162 * dwarf2loc.c: Use string.h, not gdb_string.h.
1163 * dwarf2read.c: Use string.h, not gdb_string.h.
1164 * elfread.c: Use string.h, not gdb_string.h.
1165 * environ.c: Use string.h, not gdb_string.h.
1166 * eval.c: Use string.h, not gdb_string.h.
1167 * event-loop.c: Use string.h, not gdb_string.h.
1168 * exceptions.c: Use string.h, not gdb_string.h.
1169 * exec.c: Use string.h, not gdb_string.h.
1170 * expprint.c: Use string.h, not gdb_string.h.
1171 * f-exp.y: Use string.h, not gdb_string.h.
1172 * f-lang.c: Use string.h, not gdb_string.h.
1173 * f-typeprint.c: Use string.h, not gdb_string.h.
1174 * f-valprint.c: Use string.h, not gdb_string.h.
1175 * fbsd-nat.c: Use string.h, not gdb_string.h.
1176 * findcmd.c: Use string.h, not gdb_string.h.
1177 * findvar.c: Use string.h, not gdb_string.h.
1178 * fork-child.c: Use string.h, not gdb_string.h.
1179 * frame.c: Use string.h, not gdb_string.h.
1180 * frv-linux-tdep.c: Use string.h, not gdb_string.h.
1181 * frv-tdep.c: Use string.h, not gdb_string.h.
1182 * gdb.c: Use string.h, not gdb_string.h.
1183 * gdb_bfd.c: Use string.h, not gdb_string.h.
1184 * gdbarch.c: Use string.h, not gdb_string.h.
1185 * gdbtypes.c: Use string.h, not gdb_string.h.
1186 * gnu-nat.c: Use string.h, not gdb_string.h.
1187 * gnu-v2-abi.c: Use string.h, not gdb_string.h.
1188 * gnu-v3-abi.c: Use string.h, not gdb_string.h.
1189 * go-exp.y: Use string.h, not gdb_string.h.
1190 * go-lang.c: Use string.h, not gdb_string.h.
1191 * go32-nat.c: Use string.h, not gdb_string.h.
1192 * hppa-hpux-tdep.c: Use string.h, not gdb_string.h.
1193 * hppa-linux-nat.c: Use string.h, not gdb_string.h.
1194 * hppanbsd-tdep.c: Use string.h, not gdb_string.h.
1195 * hppaobsd-tdep.c: Use string.h, not gdb_string.h.
1196 * i386-cygwin-tdep.c: Use string.h, not gdb_string.h.
1197 * i386-dicos-tdep.c: Use string.h, not gdb_string.h.
1198 * i386-linux-nat.c: Use string.h, not gdb_string.h.
1199 * i386-linux-tdep.c: Use string.h, not gdb_string.h.
1200 * i386-nto-tdep.c: Use string.h, not gdb_string.h.
1201 * i386-sol2-tdep.c: Use string.h, not gdb_string.h.
1202 * i386-tdep.c: Use string.h, not gdb_string.h.
1203 * i386bsd-tdep.c: Use string.h, not gdb_string.h.
1204 * i386gnu-nat.c: Use string.h, not gdb_string.h.
1205 * i386nbsd-tdep.c: Use string.h, not gdb_string.h.
1206 * i386obsd-tdep.c: Use string.h, not gdb_string.h.
1207 * i387-tdep.c: Use string.h, not gdb_string.h.
1208 * ia64-libunwind-tdep.c: Use string.h, not gdb_string.h.
1209 * ia64-linux-nat.c: Use string.h, not gdb_string.h.
1210 * inf-child.c: Use string.h, not gdb_string.h.
1211 * inf-ptrace.c: Use string.h, not gdb_string.h.
1212 * inf-ttrace.c: Use string.h, not gdb_string.h.
1213 * infcall.c: Use string.h, not gdb_string.h.
1214 * infcmd.c: Use string.h, not gdb_string.h.
1215 * inflow.c: Use string.h, not gdb_string.h.
1216 * infrun.c: Use string.h, not gdb_string.h.
1217 * interps.c: Use string.h, not gdb_string.h.
1218 * iq2000-tdep.c: Use string.h, not gdb_string.h.
1219 * irix5-nat.c: Use string.h, not gdb_string.h.
1220 * jv-exp.y: Use string.h, not gdb_string.h.
1221 * jv-lang.c: Use string.h, not gdb_string.h.
1222 * jv-typeprint.c: Use string.h, not gdb_string.h.
1223 * jv-valprint.c: Use string.h, not gdb_string.h.
1224 * language.c: Use string.h, not gdb_string.h.
1225 * linux-fork.c: Use string.h, not gdb_string.h.
1226 * linux-nat.c: Use string.h, not gdb_string.h.
1227 * lm32-tdep.c: Use string.h, not gdb_string.h.
1228 * m2-exp.y: Use string.h, not gdb_string.h.
1229 * m2-typeprint.c: Use string.h, not gdb_string.h.
1230 * m32c-tdep.c: Use string.h, not gdb_string.h.
1231 * m32r-linux-nat.c: Use string.h, not gdb_string.h.
1232 * m32r-linux-tdep.c: Use string.h, not gdb_string.h.
1233 * m32r-rom.c: Use string.h, not gdb_string.h.
1234 * m32r-tdep.c: Use string.h, not gdb_string.h.
1235 * m68hc11-tdep.c: Use string.h, not gdb_string.h.
1236 * m68k-tdep.c: Use string.h, not gdb_string.h.
1237 * m68kbsd-tdep.c: Use string.h, not gdb_string.h.
1238 * m68klinux-nat.c: Use string.h, not gdb_string.h.
1239 * m68klinux-tdep.c: Use string.h, not gdb_string.h.
1240 * m88k-tdep.c: Use string.h, not gdb_string.h.
1241 * macrocmd.c: Use string.h, not gdb_string.h.
1242 * main.c: Use string.h, not gdb_string.h.
1243 * mdebugread.c: Use string.h, not gdb_string.h.
1244 * mem-break.c: Use string.h, not gdb_string.h.
1245 * memattr.c: Use string.h, not gdb_string.h.
1246 * memory-map.c: Use string.h, not gdb_string.h.
1247 * mep-tdep.c: Use string.h, not gdb_string.h.
1248 * mi/mi-cmd-break.c: Use string.h, not gdb_string.h.
1249 * mi/mi-cmd-disas.c: Use string.h, not gdb_string.h.
1250 * mi/mi-cmd-env.c: Use string.h, not gdb_string.h.
1251 * mi/mi-cmd-stack.c: Use string.h, not gdb_string.h.
1252 * mi/mi-cmd-var.c: Use string.h, not gdb_string.h.
1253 * mi/mi-cmds.c: Use string.h, not gdb_string.h.
1254 * mi/mi-console.c: Use string.h, not gdb_string.h.
1255 * mi/mi-getopt.c: Use string.h, not gdb_string.h.
1256 * mi/mi-interp.c: Use string.h, not gdb_string.h.
1257 * mi/mi-main.c: Use string.h, not gdb_string.h.
1258 * mi/mi-parse.c: Use string.h, not gdb_string.h.
1259 * microblaze-rom.c: Use string.h, not gdb_string.h.
1260 * microblaze-tdep.c: Use string.h, not gdb_string.h.
1261 * mingw-hdep.c: Use string.h, not gdb_string.h.
1262 * minidebug.c: Use string.h, not gdb_string.h.
1263 * minsyms.c: Use string.h, not gdb_string.h.
1264 * mips-irix-tdep.c: Use string.h, not gdb_string.h.
1265 * mips-linux-tdep.c: Use string.h, not gdb_string.h.
1266 * mips-tdep.c: Use string.h, not gdb_string.h.
1267 * mips64obsd-tdep.c: Use string.h, not gdb_string.h.
1268 * mipsnbsd-tdep.c: Use string.h, not gdb_string.h.
1269 * mipsread.c: Use string.h, not gdb_string.h.
1270 * mn10300-linux-tdep.c: Use string.h, not gdb_string.h.
1271 * mn10300-tdep.c: Use string.h, not gdb_string.h.
1272 * monitor.c: Use string.h, not gdb_string.h.
1273 * moxie-tdep.c: Use string.h, not gdb_string.h.
1274 * mt-tdep.c: Use string.h, not gdb_string.h.
1275 * nbsd-tdep.c: Use string.h, not gdb_string.h.
1276 * nios2-linux-tdep.c: Use string.h, not gdb_string.h.
1277 * nto-procfs.c: Use string.h, not gdb_string.h.
1278 * nto-tdep.c: Use string.h, not gdb_string.h.
1279 * objc-lang.c: Use string.h, not gdb_string.h.
1280 * objfiles.c: Use string.h, not gdb_string.h.
1281 * opencl-lang.c: Use string.h, not gdb_string.h.
1282 * osabi.c: Use string.h, not gdb_string.h.
1283 * osdata.c: Use string.h, not gdb_string.h.
1284 * p-exp.y: Use string.h, not gdb_string.h.
1285 * p-lang.c: Use string.h, not gdb_string.h.
1286 * p-typeprint.c: Use string.h, not gdb_string.h.
1287 * parse.c: Use string.h, not gdb_string.h.
1288 * posix-hdep.c: Use string.h, not gdb_string.h.
1289 * ppc-linux-nat.c: Use string.h, not gdb_string.h.
1290 * ppc-sysv-tdep.c: Use string.h, not gdb_string.h.
1291 * ppcfbsd-tdep.c: Use string.h, not gdb_string.h.
1292 * ppcnbsd-tdep.c: Use string.h, not gdb_string.h.
1293 * ppcobsd-tdep.c: Use string.h, not gdb_string.h.
1294 * printcmd.c: Use string.h, not gdb_string.h.
1295 * procfs.c: Use string.h, not gdb_string.h.
1296 * prologue-value.c: Use string.h, not gdb_string.h.
1297 * python/py-auto-load.c: Use string.h, not gdb_string.h.
1298 * python/py-gdb-readline.c: Use string.h, not gdb_string.h.
1299 * ravenscar-thread.c: Use string.h, not gdb_string.h.
1300 * regcache.c: Use string.h, not gdb_string.h.
1301 * registry.c: Use string.h, not gdb_string.h.
1302 * remote-fileio.c: Use string.h, not gdb_string.h.
1303 * remote-m32r-sdi.c: Use string.h, not gdb_string.h.
1304 * remote-mips.c: Use string.h, not gdb_string.h.
1305 * remote-sim.c: Use string.h, not gdb_string.h.
1306 * remote.c: Use string.h, not gdb_string.h.
1307 * reverse.c: Use string.h, not gdb_string.h.
1308 * rs6000-aix-tdep.c: Use string.h, not gdb_string.h.
1309 * ser-base.c: Use string.h, not gdb_string.h.
1310 * ser-go32.c: Use string.h, not gdb_string.h.
1311 * ser-mingw.c: Use string.h, not gdb_string.h.
1312 * ser-pipe.c: Use string.h, not gdb_string.h.
1313 * ser-tcp.c: Use string.h, not gdb_string.h.
1314 * ser-unix.c: Use string.h, not gdb_string.h.
1315 * serial.c: Use string.h, not gdb_string.h.
1316 * sh-tdep.c: Use string.h, not gdb_string.h.
1317 * sh64-tdep.c: Use string.h, not gdb_string.h.
1318 * shnbsd-tdep.c: Use string.h, not gdb_string.h.
1319 * skip.c: Use string.h, not gdb_string.h.
1320 * sol-thread.c: Use string.h, not gdb_string.h.
1321 * solib-dsbt.c: Use string.h, not gdb_string.h.
1322 * solib-frv.c: Use string.h, not gdb_string.h.
1323 * solib-osf.c: Use string.h, not gdb_string.h.
1324 * solib-spu.c: Use string.h, not gdb_string.h.
1325 * solib-target.c: Use string.h, not gdb_string.h.
1326 * solib.c: Use string.h, not gdb_string.h.
1327 * somread.c: Use string.h, not gdb_string.h.
1328 * source.c: Use string.h, not gdb_string.h.
1329 * sparc-nat.c: Use string.h, not gdb_string.h.
1330 * sparc-sol2-tdep.c: Use string.h, not gdb_string.h.
1331 * sparc-tdep.c: Use string.h, not gdb_string.h.
1332 * sparc64-tdep.c: Use string.h, not gdb_string.h.
1333 * sparc64fbsd-tdep.c: Use string.h, not gdb_string.h.
1334 * sparc64nbsd-tdep.c: Use string.h, not gdb_string.h.
1335 * sparcnbsd-tdep.c: Use string.h, not gdb_string.h.
1336 * spu-linux-nat.c: Use string.h, not gdb_string.h.
1337 * spu-multiarch.c: Use string.h, not gdb_string.h.
1338 * spu-tdep.c: Use string.h, not gdb_string.h.
1339 * stabsread.c: Use string.h, not gdb_string.h.
1340 * stack.c: Use string.h, not gdb_string.h.
1341 * std-regs.c: Use string.h, not gdb_string.h.
1342 * symfile.c: Use string.h, not gdb_string.h.
1343 * symmisc.c: Use string.h, not gdb_string.h.
1344 * symtab.c: Use string.h, not gdb_string.h.
1345 * target.c: Use string.h, not gdb_string.h.
1346 * thread.c: Use string.h, not gdb_string.h.
1347 * tilegx-linux-nat.c: Use string.h, not gdb_string.h.
1348 * tilegx-tdep.c: Use string.h, not gdb_string.h.
1349 * top.c: Use string.h, not gdb_string.h.
1350 * tracepoint.c: Use string.h, not gdb_string.h.
1351 * tui/tui-command.c: Use string.h, not gdb_string.h.
1352 * tui/tui-data.c: Use string.h, not gdb_string.h.
1353 * tui/tui-disasm.c: Use string.h, not gdb_string.h.
1354 * tui/tui-file.c: Use string.h, not gdb_string.h.
1355 * tui/tui-layout.c: Use string.h, not gdb_string.h.
1356 * tui/tui-out.c: Use string.h, not gdb_string.h.
1357 * tui/tui-regs.c: Use string.h, not gdb_string.h.
1358 * tui/tui-source.c: Use string.h, not gdb_string.h.
1359 * tui/tui-stack.c: Use string.h, not gdb_string.h.
1360 * tui/tui-win.c: Use string.h, not gdb_string.h.
1361 * tui/tui-windata.c: Use string.h, not gdb_string.h.
1362 * tui/tui-winsource.c: Use string.h, not gdb_string.h.
1363 * typeprint.c: Use string.h, not gdb_string.h.
1364 * ui-file.c: Use string.h, not gdb_string.h.
1365 * ui-out.c: Use string.h, not gdb_string.h.
1366 * user-regs.c: Use string.h, not gdb_string.h.
1367 * utils.c: Use string.h, not gdb_string.h.
1368 * v850-tdep.c: Use string.h, not gdb_string.h.
1369 * valarith.c: Use string.h, not gdb_string.h.
1370 * valops.c: Use string.h, not gdb_string.h.
1371 * valprint.c: Use string.h, not gdb_string.h.
1372 * value.c: Use string.h, not gdb_string.h.
1373 * varobj.c: Use string.h, not gdb_string.h.
1374 * vax-tdep.c: Use string.h, not gdb_string.h.
1375 * vaxnbsd-tdep.c: Use string.h, not gdb_string.h.
1376 * vaxobsd-tdep.c: Use string.h, not gdb_string.h.
1377 * windows-nat.c: Use string.h, not gdb_string.h.
1378 * xcoffread.c: Use string.h, not gdb_string.h.
1379 * xml-support.c: Use string.h, not gdb_string.h.
1380 * xstormy16-tdep.c: Use string.h, not gdb_string.h.
1381 * xtensa-linux-nat.c: Use string.h, not gdb_string.h.
1382
1383 2013-11-18 Tom Tromey <tromey@redhat.com>
1384
1385 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add strerror
1386 and strstr.
1387 * gnulib/aclocal.m4: Update.
1388 * gnulib/config.in: Update.
1389 * gnulib/configure: Update.
1390 * gnulib/import/Makefile.am: Update.
1391 * gnulib/import/Makefile.in: Update.
1392 * gnulib/import/errno.in.h: New.
1393 * gnulib/import/intprops.h: New.
1394 * gnulib/import/m4/errno_h.m4: New.
1395 * gnulib/import/m4/gnulib-cache.m4: Update.
1396 * gnulib/import/m4/gnulib-comp.m4: Update.
1397 * gnulib/import/m4/strerror.m4: New.
1398 * gnulib/import/m4/strstr.m4: New.
1399 * gnulib/import/m4/sys_socket_h.m4: New.
1400 * gnulib/import/strerror-override.c: New.
1401 * gnulib/import/strerror-override.h: New.
1402 * gnulib/import/strerror.c: New.
1403 * gnulib/import/strstr.c: New.
1404
1405 2013-11-18 Tom Tromey <tromey@redhat.com>
1406
1407 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Split into
1408 multiple lines.
1409
1410 2013-11-18 Jose E. Marchesi <jose.marchesi@oracle.com>
1411
1412 * sparc-tdep.c (sparc_is_annulled_branch_insn): New function.
1413 * sparc-tdep.h: And its prototype.
1414
1415 * sparc64-linux-tdep.c (sparc64_linux_get_longjmp_target): New
1416 function.
1417 (sparc64_linux_init_abi): Register the get_longjmp_target hook.
1418
1419 2013-11-18 Pedro Alves <palves@redhat.com>
1420
1421 * dwarf2-frame.c (read_addr_from_reg): Remove stale comment and
1422 use unpack_pointer.
1423
1424 2013-11-18 Joel Brobecker <brobecker@adacore.com>
1425
1426 * mi/mi-main.c (mi_cmd_list_features): Add "language-options"
1427 to -list-features output.
1428
1429 2013-11-17 Joel Brobecker <brobecker@adacore.com>
1430
1431 * dwarf2expr.h (struct dwarf_expr_context_funcs)
1432 <read_addr_from_reg>: Renames "read_reg".
1433 * dwarf2-frame.c (read_addr_from_reg): Renames "read_reg".
1434 Adjust comment.
1435 (dwarf2_frame_ctx_funcs, execute_stack_op, dwarf2_frame_cache):
1436 Use read_addr_from_reg in place of read_reg.
1437 * dwarf2expr.c (execute_stack_op): Use read_addr_from_reg
1438 in place of read_reg.
1439 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Renames
1440 dwarf_expr_read_reg.
1441 (dwarf_expr_ctx_funcs): Replace dwarf_expr_read_reg
1442 with dwarf_expr_read_addr_from_reg.
1443 (needs_frame_read_addr_from_reg): Renames needs_frame_read_reg.
1444 (needs_frame_ctx_funcs): Replace needs_frame_read_reg with
1445 needs_frame_read_addr_from_reg.
1446
1447 2013-11-15 Jan Kratochvil <jan.kratochvil@redhat.com>
1448
1449 * NEWS (Changes in GDB 7.5) (New commands) (explore): Fix typo.
1450
1451 2013-11-15 Andreas Arnez <arnez@linux.vnet.ibm.com>
1452
1453 * dwarf2loc.c (chain_candidate): Prevent invoking memcpy with
1454 NULL.
1455
1456 2013-11-15 Tom Tromey <tromey@redhat.com>
1457
1458 PR c++/16117:
1459 * c-exp.y (lex_one_token): Add "is_quoted_name" argument.
1460 (classify_name): Likewise. Prefer a field of "this" over a
1461 filename.
1462 (classify_inner_name, yylex): Update.
1463
1464 2013-11-15 Joel Brobecker <brobecker@adacore.com>
1465
1466 * dwarf2expr.h (struct dwarf_expr_context_funcs) <read_reg>:
1467 Extend the documentation a bit.
1468 <get_reg_value>: New field.
1469 * dwarf2loc.c (dwarf_expr_get_reg_value)
1470 (needs_frame_get_reg_value): New functions.
1471 (dwarf_expr_ctx_funcs, needs_frame_ctx_funcs): Add "get_reg_value"
1472 callback.
1473 * dwarf2-frame.c (get_reg_value): New function.
1474 (dwarf2_frame_ctx_funcs): Add "get_reg_value" callback.
1475 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_regval_type>:
1476 Use new callback to compute result_val.
1477
1478 2013-11-15 Alan Modra <amodra@gmail.com>
1479
1480 * ppc64-tdep.c (ppc64_plt_entry_point): Renamed from..
1481 (ppc64_desc_entry_point): ..this. Update comments here and at
1482 call points.
1483 (ppc64_standard_linkage1, ppc64_standard_linkage2,
1484 ppc64_standard_linkage3): Update comments.
1485 (ppc64_standard_linkage4, ppc64_standard_linkage5,
1486 (ppc64_standard_linkage6, ppc64_standard_linkage7): New insn
1487 patterns.
1488 (ppc64_standard_linkage4_target): New function.
1489 (ppc64_skip_trampoline_code): Skip ELFv2 patterns too.
1490 * rs6000-tdep.c (skip_prologue): Skip ELFv2 r2 setup. Correct
1491 nop match. Fix comment wrap.
1492
1493 2013-11-14 Pedro Alves <palves@redhat.com>
1494
1495 * infrun.c (handle_signal_stop): Move STOP_QUIETLY,
1496 STOP_QUIETLY_REMOTE and 'stop_after_trap' handling earlier.
1497
1498 2013-11-14 Pedro Alves <palves@redhat.com>
1499
1500 * infrun.c (struct execution_control_state)
1501 <stepped_after_stopped_by_watchpoint>: New field.
1502 (get_inferior_stop_soon): New function.
1503 (handle_inferior_event): 'stepped_after_stopped_by_watchpoint' was
1504 moved to struct execution_control_state -- adjust. Use
1505 get_inferior_stop_soon. Split TARGET_WAITKIND_STOPPED handling to
1506 new function.
1507 (handle_signal_stop): New function, factored out from
1508 handle_inferior_event.
1509
1510 2013-11-14 Pedro Alves <palves@redhat.com>
1511
1512 * break-catch-sig.c (signal_catchpoint_explains_signal): Adjust to
1513 return a boolean.
1514 * breakpoint.c (bpstat_explains_signal): Adjust to return a
1515 boolean.
1516 (explains_signal_watchpoint, base_breakpoint_explains_signal):
1517 Adjust to return a boolean.
1518 * breakpoint.h (enum bpstat_signal_value): Delete.
1519 (struct breakpoint_ops) <explains_signal>: New returns a boolean.
1520 (bpstat_explains_signal): Likewise.
1521 * infrun.c (handle_inferior_event) <random signal checks>:
1522 bpstat_explains_signal now returns a boolean - adjust. No longer
1523 consider hiding signals.
1524
1525 2013-11-14 Pedro Alves <palves@redhat.com>
1526
1527 * breakpoint.c (bpstat_explains_signal) <Moribund locations>:
1528 Return BPSTAT_SIGNAL_PASS instead of BPSTAT_SIGNAL_HIDE.
1529 (explains_signal_watchpoint): Return BPSTAT_SIGNAL_PASS instead of
1530 BPSTAT_SIGNAL_HIDE.
1531 (base_breakpoint_explains_signal): Return BPSTAT_SIGNAL_PASS
1532 instead of BPSTAT_SIGNAL_HIDE.
1533 * infrun.c (handle_inferior_event): Rework random signal checks.
1534
1535 2013-11-14 Pedro Alves <palves@redhat.com>
1536
1537 * infrun.c (struct execution_control_state): Remove
1538 'random_signal' field.
1539 (handle_syscall_event): Use bpstat_causes_stop instead of
1540 bpstat_explains_signal. Don't set ecs->random_signal.
1541 (handle_inferior_event): New 'random_signal' local.
1542 <TARGET_WAITKIND_FORKED, TARGET_WAITKIND_VFORKED,
1543 TARGET_WAITKIND_EXECD>: Use bpstat_causes_stop instead of
1544 bpstat_explains_signal. Don't set ecs->random_signal.
1545 <TARGET_WAITKIND_STOPPED>: Adjust to use local instead of
1546 ecs->random_signal.
1547
1548 2013-11-14 Pedro Alves <palves@redhat.com>
1549
1550 * infrun.c (handle_inferior_event): Move comment from the
1551 function's body to the function's description, adjusted.
1552
1553 2013-11-14 Pedro Alves <palves@redhat.com>
1554
1555 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
1556 Handle STOP_QUIETLY_NO_SIGSTOP and STOP_QUIETLY_REMOTE here.
1557 Assert we never fall through out of the TARGET_WAITKIND_LOADED
1558 case.
1559
1560 2013-11-14 Tom Tromey <tromey@redhat.com>
1561
1562 * python/py-linetable.c (ltpy_has_line)
1563 (ltpy_get_all_source_lines): Fix loop termination condition.
1564
1565 2013-11-14 Joel Brobecker <brobecker@adacore.com>
1566
1567 * mi/mi-parse.h (struct mi_parse) <language>: New field.
1568 * mi/mi-main.c (mi_cmd_execute): Temporarily set language to
1569 PARSE->LANGUAGE during command execution, if set.
1570 * mi/mi-parse.c: Add "language.h" #include.
1571 (mi_parse): Add parsing of "--language" command option.
1572
1573 * NEWS: Add entry mentioning the new "--language" command option.
1574
1575 2013-11-14 Pedro Alves <palves@redhat.com>
1576 Joel Brobecker <brobecker@adacore.com>
1577
1578 * cli/cli-utils.h (extract_arg_const): Add declaration.
1579 * cli/cli-utils.c (extract_arg_const): New function.
1580 (extract_arg): Reimplement using extract_arg_const.
1581
1582 2013-11-14 Joel Brobecker <brobecker@adacore.com>
1583
1584 * language.h: Add "symtab.h" #include.
1585
1586 2013-11-13 Doug Evans <xdje42@gmail.com>
1587
1588 * breakpoint.c (bpstat_check_breakpoint_conditions): For thread
1589 specific breakpoints, don't evaluate breakpoint condition if
1590 different thread.
1591
1592 2013-11-13 Keith Seitz <keiths@redhat.com>
1593
1594 PR c++/7935
1595 PR c++/10541
1596 * cp-support.c (insepct_type): Add support for substituting
1597 namespace aliases, too.
1598 * dwarf2read.c (scan_partial_symbols): Add a partial symbol
1599 for DW_TAG_imported_declaration.
1600 (add_partial_symbol): Likewise.
1601 (process_die): Handle namespace aliases with
1602 read_namespace_alias.
1603 (die_needs_namespace): Add DW_TAG_imported_declaration.
1604 (read_namespace_alias): New function.
1605 (load_partial_dies): Load DW_TAG_imported_declaration, too.
1606 (new_symbol_full): Handle DW_TAG_imported_declaration.
1607
1608 2013-11-13 Keith Seitz <keiths@redhat.com>
1609
1610 * p-exp.y (uptok): Make first parameter const.
1611 (yylex): Make `tokstart' and `tokptr' const.
1612 Don't copy the lexer input to a temporary buffer.
1613 Make `p' const.
1614 Remove const workaround for parse_escape.
1615 Create a temporary buffer for a convenience variable instead
1616 of doing in-place modification of the input.
1617 If a match is found with a different case from the input,
1618 do not change the input at all.
1619 Use `tmp' to construct the resultant stoken instead of
1620 `tokstart'.
1621
1622 2013-11-13 Doug Evans <xdje42@gmail.com>
1623
1624 * breakpoint.c (breakpoint_cond_eval): Fix and enhance comment.
1625
1626 2013-11-13 Joel Brobecker <brobecker@adacore.com>
1627
1628 * mi/mi-main.c (mi_cmd_list_features): Replace "info-ada-exceptions"
1629 entry with "ada-exceptions".
1630
1631 2013-11-13 Joel Brobecker <brobecker@adacore.com>
1632
1633 * symfile.c (reread_symbols): Move call to set_objfile_per_bfd
1634 after re-initialization of OBJFILE's obstack.
1635
1636 2013-11-12 Doug Evans <xdje42@gmail.com>
1637
1638 * breakpoint.c (bpstat_check_breakpoint_conditions): Assert
1639 bs->stop != 0 on entry. Update function comment. Simplify early
1640 exit for frame mismatch. Reindent rest of function.
1641
1642 2013-11-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
1643
1644 * objc-lang.c (uniquify_strings): Prevent invoking qsort with
1645 NULL.
1646
1647 2013-11-12 Doug Evans <dje@google.com>
1648
1649 Work around gold/15646.
1650 * dwarf2read.c (read_index_from_section): Update comment.
1651 (struct dw2_symtab_iterator): New member global_seen.
1652 (dw2_symtab_iter_init): Initialize it.
1653 (dw2_symtab_iter_next): Skip duplicate global symbols.
1654 (dw2_expand_symtabs_matching): Ditto.
1655
1656 2013-11-12 Joel Brobecker <brobecker@adacore.com>
1657
1658 * mi/mi-cmds.h (mi_cmd_info_ada_exceptions): Add declaration.
1659 * mi/mi-cmds.c (mi_cmds): Add entry for -info-ada-exceptions
1660 command.
1661 * mi/mi-cmd-info.c: #include "ada-lang.c" and "arch-utils.c".
1662 (mi_cmd_info_ada_exceptions): New function.
1663 * mi/mi-main.c (mi_cmd_list_features): Add "info-ada-exceptions".
1664
1665 2013-11-12 Joel Brobecker <brobecker@adacore.com>
1666
1667 * ada-lang.h: #include "vec.h".
1668 (struct ada_exc_info): New.
1669 (ada_exc_info): New typedef.
1670 (DEF_VEC_O(ada_exc_info)): New vector.
1671 (ada_exceptions_list): Add declaration.
1672 * ada-lang.c (ada_is_exception_sym)
1673 (ada_is_non_standard_exception_sym, compare_ada_exception_info)
1674 (sort_remove_dups_ada_exceptions_list)
1675 (ada_exc_search_name_matches, ada_add_standard_exceptions)
1676 (ada_add_exceptions_from_frame, ada_add_global_exceptions)
1677 (ada_exceptions_list_1, ada_exceptions_list)
1678 (info_exceptions_command): New function.
1679 (_initialize_ada_language): Add "info exception" command.
1680
1681 2013-11-11 Phil Muldoon <pmuldoon@redhat.com>
1682
1683 PR python/15629
1684 * NEWS: Add linetable feature.
1685 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-linetable entries.
1686 * python/py-linetable.c: New file.
1687 * python/py-symtab.c (stpy_get_linetable): New function.
1688 * python/python-internal.h (symtab_to_linetable_object): Declare.
1689 (gdbpy_initialize_linetable): Ditto.
1690 * python/python.c (_initialize_python): Call
1691 gdbpy_initialize_linetable.
1692
1693 2013-11-11 Joel Brobecker <brobecker@adacore.com>
1694
1695 * ada-lang.c (create_ada_exception_catchpoint): Enhance
1696 the documentation of fields "except_string" and "condition".
1697 * mi/mi-cmd-catch.c (mi_cmd_catch_assert): Reallocate
1698 CONDITION on the heap before passing it to
1699 create_ada_exception_catchpoint.
1700 (mi_cmd_catch_exception): Likewise for EXCEPTION_NAME and
1701 CONDITION.
1702
1703 2013-11-11 Tom Tromey <tromey@redhat.com>
1704
1705 * config.in, configure: Rebuild.
1706 * configure.ac (HAVE_TKILL_SYSCALL): Check for "syscall".
1707
1708 2013-11-11 Joel Brobecker <brobecker@adacore.com>
1709
1710 * remote-sim.c (gdbsim_detach): Break declaration into
1711 shorter lines. No code change.
1712
1713 2013-11-11 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
1714
1715 * remote-sim.c (gdbsim_detach): Fix prototype.
1716
1717 2013-11-08 Doug Evans <dje@google.com>
1718
1719 * dwarf2read.c (dwarf2_read_debug): Change to unsigned int.
1720 (create_debug_types_hash_table): Only print debugging messages for
1721 each TU if dwarf2-read >= 2.
1722 (process_queue): Ditto.
1723 (_initialize_dwarf2_read): Make "set debug dwarf2-read" a zuinteger.
1724 Update doc string.
1725
1726 2013-11-08 Tom Tromey <tromey@redhat.com>
1727
1728 * configure: Rebuild.
1729 * configure.ac: Remove mentions of HAVE_MULTIPLE_PROC_FDS.
1730
1731 2013-11-08 Tom Tromey <tromey@redhat.com>
1732
1733 * configure, config.in: Rebuild.
1734 * configure.ac: Remove unused configury.
1735
1736 2013-11-08 Tom Tromey <tromey@redhat.com>
1737
1738 * m32c-tdep.c: Use gdb_string.h.
1739
1740 2013-11-08 Tom Tromey <tromey@redhat.com>
1741
1742 * configure, config.in: Rebuild.
1743 * configure.ac: Remove all link.h-related checks.
1744
1745 2013-11-08 Tom Tromey <tromey@redhat.com>
1746
1747 * acinclude.m4: Include common.m4.
1748 * common/common.m4: New file.
1749 * configure, config.in: Rebuild.
1750 * configure.ac: Use GDB_AC_COMMON.
1751
1752 2013-11-08 Doug Evans <dje@google.com>
1753
1754 * NEWS: Mention that "set debug symtab-create" now accepts a
1755 verbosity level.
1756 * buildsym.c (end_symtab_from_static_block): Call set_symtab_primary
1757 to set the symtab's primary flag.
1758 * jit.c (finalize_symtab): Ditto.
1759 * mdebugread.c (psymtab_to_symtab_1): Ditto.
1760 * symfile.c (allocate_symtab): Only print debugging messages for
1761 symtab_create_debug levels 2 and higher.
1762 * symtab.c (symtab_create_debug): Change type to unsigned int.
1763 (set_symtab_primary): New function.
1764 (_initialize_symtab): Change "set debug symtab-create" to a
1765 zuinteger option.
1766 * symtab.h (set_symtab_primary): Declare.
1767 (symtab_create_debug): Update decl.
1768
1769 2013-11-08 Tom Tromey <tromey@redhat.com>
1770
1771 * aix-thread.c (aix_thread_detach): Update.
1772 * corelow.c (core_detach): Update.
1773 * darwin-nat.c (darwin_detach): Update.
1774 * dec-thread.c (dec_thread_detach): Update.
1775 * gnu-nat.c (gnu_detach): Update.
1776 * go32-nat.c (go32_detach): Update.
1777 * inf-ptrace.c (inf_ptrace_detach): Update.
1778 * inf-ttrace.c (inf_ttrace_detach): Update.
1779 * linux-fork.c (linux_fork_detach): Update.
1780 * linux-fork.h (linux_fork_detach): Update.
1781 * linux-nat.c (linux_nat_detach): Update. Introduce "tem"
1782 local for const-correctness.
1783 * linux-thread-db.c (thread_db_detach): Update.
1784 * monitor.c (monitor_detach): Update.
1785 * nto-procfs.c (procfs_detach): Update.
1786 * procfs.c (procfs_detach): Update.
1787 * record.c (record_detach): Update.
1788 * record.h (record_detach): Update.
1789 * remote-m32r-sdi.c (m32r_detach): Update.
1790 * remote-mips.c (mips_detach): Update.
1791 * remote-sim.c (gdbsim_detach): Update.
1792 * remote.c (remote_detach_1, remote_detach)
1793 (extended_remote_detach): Update.
1794 * sol-thread.c (sol_thread_detach): Update.
1795 * target.c (target_detach): Make "args" const.
1796 (init_dummy_target): Update.
1797 * target.h (struct target_ops) <to_detach>: Make argument const.
1798 (target_detach): Likewise.
1799 * windows-nat.c (windows_detach): Update.
1800
1801 2013-11-07 Doug Evans <dje@google.com>
1802
1803 PR 11786
1804 * solib-svr4.c (svr4_exec_displacement): Ignore filesz, memsz, flags
1805 and align fields for PT_GNU_RELRO segments.
1806
1807 2013-11-07 Phil Muldoon <pmuldoon@redhat.com>
1808
1809 PR python/15747
1810 * python/py-cmd.c: Add COMPLETE_EXPRESSION constant.
1811
1812 2013-11-07 Phil Muldoon <pmuldoon@redhat.com>
1813
1814 * NEWS: Document Python temporary breakpoint support.
1815 * python/py-breakpoint.c (bppy_get_temporary): New function.
1816 (bppy_init): New keyword: temporary. Parse it and set breakpoint
1817 to temporary if True.
1818
1819 2013-11-07 Jose E. Marchesi <jose.marchesi@oracle.com>
1820
1821 * sparc-tdep.c (sparc_analyze_control_transfer): Assertion
1822 removed to allow analyzing unconditional branch instructions
1823 with PC-relative offsets of zero.
1824
1825 2013-11-07 Yao Qi <yao@codesourcery.com>
1826
1827 * mi/mi-cmd-var.c: Include "language.h".
1828 (mi_cmd_var_info_expression): Get language name from
1829 language_defn.
1830 * varobj.c (varobj_language_string): Remove.
1831 (variable_language): Remove declaration.
1832 (languages): Remove.
1833 (varobj_get_language): Change the type of return value.
1834 (variable_language): Remove.
1835 * varobj.h (enum varobj_languages): Remove.
1836 (varobj_language_string): Remove declaration.
1837 (varobj_get_language): Update declaration.
1838
1839 2013-11-07 Yao Qi <yao@codesourcery.com>
1840
1841 * language.h (struct language_defn) <la_natural_name>: New
1842 field.
1843 * ada-lang.c (ada_language_defn): Initialize field
1844 'la_natural_name'.
1845 * c-lang.c (c_language_defn): Likewise.
1846 (cplus_language_defn, asm_language_defn): Likewise.
1847 * d-lang.c (d_language_defn): Likewise.
1848 * f-lang.c (f_language_defn): Likewise.
1849 * go-lang.c (go_language_defn): Likewise.
1850 * jv-lang.c (java_language_defn): Likewise.
1851 * language.c (unknown_language_defn ): Likewise.
1852 (auto_language_defn): Likewise.
1853 * m2-lang.c (m2_language_defn): Likewise.
1854 * objc-lang.c (objc_language_defn): Likewise.
1855 * opencl-lang.c (opencl_language_defn): Likewise.
1856 * p-lang.c (pascal_language_defn): Likewise.
1857
1858 2013-11-07 Yao Qi <yao@codesourcery.com>
1859
1860 * language.c (language_str): Return const char *.
1861 (add_language): Add const to 'language_names'
1862 * language.h (struct language_defn) <la_name>: Add const.
1863 (language_str: Update declaration.
1864
1865 2013-11-06 Andreas Arnez <arnez@linux.vnet.ibm.com>
1866
1867 * s390-linux-nat.c (s390_read_description): Consider the TE field
1868 in the HWCAP for determining 'have_regset_tdb'.
1869
1870 2013-11-06 Will Newton <will.newton@linaro.org>
1871
1872 PR gdb/12866
1873 * dwarf2read.c (skip_one_die): Sanity check DW_AT_sibling
1874 values. (read_partial_die): Likewise.
1875
1876 2013-11-06 Muhammad Bilal <mbilal@codesourcery.com>
1877
1878 PR cli/16122
1879 * top.c (command_line_input): Unify interactivity tests to use
1880 input_from_terminal_p.
1881 * event-top.c (command_line_handler): Likewise.
1882
1883 2013-11-06 Yao Qi <yao@codesourcery.com>
1884
1885 * Makefile.in (check-perf): New target.
1886
1887 2013-11-05 Will Newton <will.newton@linaro.org>
1888
1889 PR gdb/7670
1890 * arm-tdep.c (print_fpu_flags): Use filtered output routines.
1891 (arm_print_float_info): Likewise.
1892
1893 2013-11-04 Anton Blanchard <anton@samba.org>
1894
1895 * target.c (memory_xfer_partial): Cap write to 4KB.
1896
1897 2013-11-01 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
1898
1899 * breakpoint.c (create_longjmp_master_breakpoint): Allow libc
1900 probe scan even when the arch provides no get_longjmp_target.
1901
1902 2013-10-31 Pedro Alves <palves@redhat.com>
1903
1904 * infrun.c (handle_syscall_event): Don't set or clear stop_signal.
1905 (handle_inferior_event) <TARGET_WAITKIND_FORKED,
1906 TARGET_WAITKIND_VFORKED>: Don't set stop_signal to
1907 GDB_SIGNAL_TRAP, or clear it. Pass GDB_SIGNAL_0 to
1908 bpstat_explains signal, instead of GDB_SIGNAL_TRAP.
1909 <bpstat handling>: If the bpstat chain wants the signal to be
1910 hidden, then set stop_signal to GDB_SIGNAL_0 instead of
1911 GDB_SIGNAL_TRAP.
1912
1913 2013-10-31 Andrew Burgess <aburgess@broadcom.com>
1914
1915 * breakpoint.c (update_watchpoint): Update error message and add
1916 an additional error message.
1917
1918 2013-10-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1919
1920 * s390-tdep.h: Rename to...
1921 * s390-linux-tdep.h: ...here.
1922 * s390-tdep.c: Rename to...
1923 * s390-linux-tdep.c: ...here. Adjust #include.
1924 * s390-nat.c: Rename to...
1925 * s390-linux-nat.c: ...here. Adjust #include.
1926 * config/s390/s390.mh: Rename to...
1927 * config/s390/linux.mh: ...here. Reflect rename s390-nat.o ->
1928 s390-linux-nat.o.
1929 * configure.host: Reflect host rename "s390" -> "linux".
1930 * configure.tgt: Reflect rename s390-tdep.o -> s390-linux-tdep.o.
1931 * Makefile.in (ALL_TARGET_OBS): Likewise.
1932 (HFILES_NO_SRCDIR): Reflect rename s390-tdep.h ->
1933 s390-linux-tdep.h.
1934 (ALLDEPFILES): Reflect rename of .c files.
1935
1936 2013-10-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1937
1938 * s390-nat.c: Whitespace cleanup.
1939 * s390-tdep.c: Likewise.
1940 * s390-tdep.h: Remove empty line at end of file.
1941
1942 2013-10-30 Maciej W. Rozycki <macro@codesourcery.com>
1943
1944 * linux-tdep.c (linux_corefile_thread_callback): Preinitialize
1945 siginfo_size.
1946
1947 2013-10-29 Tom Tromey <tromey@redhat.com>
1948
1949 * utils.c (reg): Move undefinition...
1950 * gdb_curses.h: ... here. Update comment to mention AIX.
1951
1952 2013-10-29 Nicolas Blanc <nicolas.blanc@intel.com>
1953
1954 * exec.h (add_target_sections_of_objfile): New declaration.
1955 * exec.c (add_target_sections_of_objfile): New function.
1956 * symfile.c (add_symbol_file_command): Update current target sections.
1957 (remove_symbol_file_command): New command.
1958 (symfile_free_objfile): New function.
1959 (_initialize_symfile): Register observer for free_objfile events.
1960 * NEWS: Add description of the remove-symbol-file command.
1961 * breakpoint.c (disable_breakpoints_in_freed_objfile): New function.
1962 * objfiles.c (free_objfile): Notify free_objfile.
1963 (is_addr_in_objfile): New function.
1964 * objfiles.h (is_addr_in_objfile): New declaration.
1965 * printcmd.c (clear_dangling_display_expressions): Act upon free_objfile
1966 events instead of solib_unloaded events.
1967 (_initialize_printcmd): Register observer for free_objfile instead
1968 of solib_unloaded notifications.
1969 * solib.c (remove_user_added_objfile): New function.
1970 (_initialize_symfile): Add remove-symbol-file.
1971
1972 2013-10-29 Andrew Burgess <aburgess@broadcom.com>
1973
1974 * infcmd.c (default_print_one_register_info): Use val_print to
1975 print all values even optimized out or unavailable ones. Don't
1976 try to print a raw form of optimized out or unavailable values.
1977
1978 2013-10-29 Yao Qi <yao@codesourcery.com>
1979
1980 * auto-load.c (auto_load_pspace_data_cleanup): Get data from
1981 parameter 'arg' instead of from program_space_data.
1982 * objfiles.c (objfiles_pspace_data_cleanup): Likewise.
1983 * solib-darwin.c (darwin_pspace_data_cleanup): Likewise.
1984 * solib-dsbt.c (dsbt_pspace_data_cleanup): Likewise.
1985 * solib-svr4.c (svr4_pspace_data_cleanup): Likewise.
1986 * inflow.c (inflow_inferior_data_cleanup): Get data from
1987 parameter 'arg' instead of inferior_data.
1988 * registry.h: Add comments.
1989
1990 2013-10-28 Pedro Alves <palves@redhat.com>
1991
1992 * breakpoint.c (watchpoints_triggered)
1993 <!target_stopped_data_address>: Hardcode return 1.
1994
1995 2013-10-28 Pedro Alves <palves@redhat.com>
1996
1997 * infrun.c (process_event_stop_test): Remove unnecessary scoping
1998 level and reindent.
1999
2000 2013-10-28 Pedro Alves <palves@redhat.com>
2001
2002 * infrun.c (process_event_stop_test): New function, factored out
2003 from handle_inferior_event.
2004 (handle_inferior_event): 'process_event_stop_test' is now a
2005 function instead of a goto label -- adjust.
2006
2007 2013-10-28 Pedro Alves <palves@redhat.com>
2008
2009 * infrun.c (handle_inferior_event): Move process_event_stop_test
2010 goto label to the else branch of the ecs->random_signal check,
2011 along with FRAME and GDBARCH re-fetching.
2012
2013 2013-10-28 Pedro Alves <palves@redhat.com>
2014
2015 * infrun.c (switch_back_to_stepped_thread): New function, factored
2016 out from handle_inferior_event.
2017 (handle_inferior_event): Adjust to call
2018 switch_back_to_stepped_thread. Call it also at the tail of the
2019 random signal handling, and return, instead of also handling
2020 random signals just before the stepping tests.
2021
2022 2013-10-28 Pedro Alves <palves@redhat.com>
2023
2024 * infrun.c (clear_stop_func): Delete.
2025 (handle_inferior_event): Don't call clear_stop_func and don't
2026 clear 'ecs->random_signal'.
2027
2028 2013-10-27 Yao Qi <yao@codesourcery.com>
2029
2030 * varobj.c (struct varobj_root) <lang>: Rename to 'lang_ops'.
2031 (varobj_create, varobj_get_path_expr): Update.
2032 (varobj_value_has_mutated, varobj_update): Likewise.
2033 (create_child_with_value, new_root_variable): Likewise.
2034 (number_of_children, name_of_variable): Likewise.
2035 (value_of_child, my_value_of_variable): Likewise.
2036 (varobj_value_is_changeable_p): Likewise.
2037
2038 2013-10-25 Yao Qi <yao@codesourcery.com>
2039
2040 * language.h (struct lang_varobj_ops): Declare.
2041 (struct language_defn) <la_varobj_ops>: New field.
2042 * ada-lang.c: Include "varobj.h"
2043 (defn ada_language_defn): Initialize field 'la_varobj_ops' with
2044 ada_varobj_ops.
2045 * c-lang.c: Include "varobj.h"
2046 (c_language_defn): Initialize field 'la_varobj_ops' with
2047 c_varobj_ops.
2048 (cplus_language_defn): Initialize field 'la_varobj_ops' with
2049 cplus_varobj_ops.
2050 (asm_language_defn): Initialize field 'la_varobj_ops' with
2051 default_varobj_ops.
2052 (minimal_language_defn): Likewise.
2053 * d-lang.c (d_language_defn): Likewise.
2054 * f-lang.c (f_language_defn): Likewise.
2055 * go-lang.c (go_language_defn): Likewise.
2056 * m2-lang.c (m2_language_defn): Likewise.
2057 * objc-lang.c (objc_language_defn): Likewise.
2058 * opencl-lang.c (opencl_language_defn): Likewise.
2059 * p-lang.c (pascal_language_defn): Likewise.
2060 * language.c (unknown_language_defn): Likewise.
2061 (auto_language_defn): Likewise.
2062 (local_language_defn): Likewise.
2063 * jv-lang.c (java_language_defn): Initialize field
2064 'la_varobj_ops' with java_varobj_ops.
2065 * varobj.c (varobj_create): Update.
2066 * varobj.h (default_varobj_ops): Define macro.
2067
2068 2013-10-25 Pedro Alves <palves@redhat.com>
2069
2070 * cp-valprint.c (cp_print_value_fields): No longer handle a NULL
2071 static field value.
2072 (cp_print_static_field): If the value is entirely optimized out,
2073 print <optimized out> here.
2074 * jv-valprint.c (java_print_value_fields): No longer handle a NULL
2075 static field value.
2076 * p-valprint.c (pascal_object_print_static_field): If the value is
2077 entirely optimized out, print <optimized out> here.
2078 * valops.c (do_search_struct_field)
2079 (value_struct_elt_for_reference): No longer handle a NULL static
2080 field value.
2081 * value.c (value_static_field): Return an optimized out value
2082 instead of NULL.
2083
2084 2013-10-25 Yao Qi <yao@codesourcery.com>
2085
2086 * remote.c (remote_traceframe_info): Return early if
2087 traceframe is not selected.
2088
2089 2013-10-25 Yao Qi <yao@codesourcery.com>
2090
2091 * tracepoint.c (traceframe_fun): Remove.
2092 (traceframe_sal): Remove.
2093 (set_traceframe_context): Add local variables.
2094
2095 2013-10-25 Joel Brobecker <brobecker@adacore.com>
2096
2097 * varobj.h (struct lang_varobj_ops): Remove spaces between '*'
2098 and parameter name.
2099
2100 2013-10-24 Maciej W. Rozycki <macro@codesourcery.com>
2101
2102 * linux-tdep.c (linux_corefile_thread_callback): Propagate any
2103 failure from register information collection.
2104
2105 2013-10-24 Maciej W. Rozycki <macro@codesourcery.com>
2106
2107 * linux-tdep.c (linux_corefile_thread_data): Remove `num_notes'
2108 member.
2109 (linux_corefile_thread_callback): Update accordingly.
2110 (linux_make_corefile_notes): Likewise.
2111
2112 2013-10-24 Pedro Alves <palves@redhat.com>
2113
2114 * NEWS (New options): Mention set/show startup-with-shell.
2115 * config/alpha/nm-osf3.h (START_INFERIOR_TRAPS_EXPECTED): Set to 2
2116 instead of 3.
2117 * fork-child.c (fork_inferior, startup_inferior): Handle 'set
2118 startup-with-shell'.
2119 (show_startup_with_shell): New function.
2120 (_initialize_fork_child): Register the set/show startup-with-shell
2121 commands.
2122 * inf-ptrace.c (inf_ptrace_create_inferior): Remove comment.
2123 * inf-ttrace.c (inf_ttrace_him): Remove comment.
2124 * procfs.c (procfs_init_inferior): Remove comment.
2125 * infcmd.c (startup_with_shell): New global.
2126 * inferior.h (startup_with_shell): Declare global.
2127 (STARTUP_WITH_SHELL): Delete.
2128 (START_INFERIOR_TRAPS_EXPECTED): Set to 1 by default instead of 2.
2129
2130 2013-10-23 Pedro Alves <palves@redhat.com>
2131
2132 * common/gdb_signals.h (gdb_signal_to_symbol_string): Declare.
2133 * common/signals.c: Include "gdb_assert.h".
2134 (signals): New field 'symbol'.
2135 (SET): Use the 'symbol' parameter.
2136 (gdb_signal_to_symbol_string): New function.
2137 * infrun.c (handle_inferior_event) <random signal>: In debug
2138 output, print the random signal enum as string in addition to its
2139 number.
2140 * target/waitstatus.c (target_waitstatus_to_string): Print the
2141 signal's enum value as string instead of the (POSIX) signal name.
2142
2143 2013-10-23 Gary Benson <gbenson@redhat.com>
2144
2145 PR 16013
2146 * common/linux-osdata.c (command_from_pid): Reduced size of cmd
2147 from 32 to 18. Adjusted fscanf format string accordingly.
2148 (Avoids leaving cmd unterminated.)
2149 (print_sockets): Do not parse tlen, inode, sl, timeout, txq, rxq,
2150 trun, retn or extra. (Avoids leaving extra unterminated.) Check
2151 that local_address and remote_address will not overflow.
2152 (linux_xfer_osdata_modules): Parse lines using strtok to avoid
2153 leaving dependencies unterminated. Parse size as "%u" to match
2154 definition.
2155
2156 2013-10-22 Pedro Alves <palves@redhat.com>
2157
2158 * infrun.c (handle_inferior_event) <thread hop>: Don't clear or
2159 set ecs->random signal.
2160
2161 2013-10-22 Pedro Alves <palves@redhat.com>
2162
2163 * infrun.c (keep_going): Update comments.
2164
2165 2013-10-22 Pedro Alves <palves@redhat.com>
2166
2167 * remote.c (remote_parse_stop_reply) <'T'/'S'/'X' replies>: Map
2168 invalid signal numbers to GDB_SIGNAL_UNKNOWN.
2169
2170 2013-10-22 Pedro Alves <palves@redhat.com>
2171
2172 * include/gdb/signals.def (TARGET_EXC_BAD_ACCESS): Rename to
2173 GDB_EXC_BAD_ACCESS.
2174 (TARGET_EXC_BAD_INSTRUCTION): Rename to GDB_EXC_BAD_INSTRUCTION.
2175 (TARGET_EXC_ARITHMETIC): Rename to GDB_EXC_ARITHMETIC.
2176 (TARGET_EXC_EMULATION): Rename to GDB_EXC_EMULATION.
2177 (TARGET_EXC_SOFTWARE): Rename to GDB_EXC_SOFTWARE.
2178 (TARGET_EXC_BREAKPOINT): Rename to GDB_EXC_BREAKPOINT.
2179 (GDB_SIGNAL_LAST): Change description string.
2180 * common/signals.c (gdb_signal_from_host, do_gdb_signal_to_host):
2181 Adjust to signal renaming.
2182 * darwin-nat.c (darwin_decode_message): Likewise.
2183
2184 2013-10-22 Jose E. Marchesi <jose.marchesi@oracle.com>
2185
2186 * MAINTAINERS (Write After Approval): Add myself to the list.
2187
2188 2013-10-18 Andrew Burgess <aburgess@broadcom.com>
2189
2190 * breakpoint.c (update_watchpoint): If hardware watchpoints are
2191 forced off, downgrade them to software watchpoints if possible,
2192 and error out if not possible.
2193 (watch_command_1): Move watchpoint type selection closer to
2194 watchpoint creation, and extend the comments.
2195
2196 2013-10-18 Pedro Alves <palves@redhat.com>
2197
2198 PR gdb/16062
2199 * infrun.c (handle_inferior_event): Keep going if we got a random
2200 signal we should not stop for, instead of falling through to the
2201 step tests.
2202
2203 2013-10-18 Yao Qi <yao@codesourcery.com>
2204
2205 * c-varobj.c (cplus_number_of_children): Fix indentation.
2206
2207 2013-10-17 Tom Tromey <tromey@redhat.com>
2208
2209 PR gdb/15995:
2210 * printcmd.c (printcmd): Call gdb_flush.
2211
2212 2013-10-17 Tom Tromey <tromey@redhat.com>
2213
2214 * elfread.c (struct elfinfo) <stabindexsect>: Remove.
2215 (elf_locate_sections): Update.
2216
2217 2013-10-17 Yao Qi <yao@codesourcery.com>
2218
2219 * Makefile.in (HFILES_NO_SRCDIR): Remove ada-varobj.h.
2220 * ada-varobj.c: Remove the include of ada-varobj.h.
2221 (ada_varobj_get_number_of_children): Declare.
2222 (ada_varobj_get_name_of_child): Make it static.
2223 (ada_varobj_get_path_expr_of_child): Likewise.
2224 (ada_varobj_get_value_of_child): Likewise.
2225 (ada_varobj_get_type_of_child): Likewise.
2226 (ada_varobj_get_value_of_array_variable): Likewise.
2227 * ada-varobj.h: Remove.
2228
2229 2013-10-17 Yao Qi <yao@codesourcery.com>
2230
2231 * Makefile.in (SFILES): Add c-varobj.c and jv-varobj.c.
2232 (COMMON_OBS): Add c-varobj.o and jv-varobj.o.
2233 * ada-varobj.c: Include "varobj.h".
2234 (ada_number_of_children): New. Moved from varobj.c.
2235 (ada_name_of_variable, ada_name_of_child): Likewise.
2236 (ada_path_expr_of_child, ada_value_of_child): Likewise.
2237 (ada_type_of_child, ada_value_of_variable): Likewise.
2238 (ada_value_is_changeable_p, ada_value_has_mutated): Likewise.
2239 (ada_varobj_ops): New.
2240 * c-varobj.c, jv-varobj.c: New file. Moved from varobj.c.
2241 * gdbtypes.c (get_target_type): New. Moved from varobj.c.
2242 * gdbtypes.h (get_target_type): Declare.
2243 * varobj.c: Remove the inclusion of "ada-varobj.h" and
2244 "ada-lang.h".
2245 (ANONYMOUS_STRUCT_NAME): Move it to c-varobj.c.
2246 (ANONYMOUS_UNION_NAME): Likewise.
2247 (get_type, get_value_type, get_target_type): Remove declarations.
2248 (value_get_print_value, varobj_value_get_print_value): Likewise.
2249 (c_number_of_children, c_name_of_variable): Likewise.
2250 (c_name_of_child, c_path_expr_of_child): Likewise.
2251 (c_value_of_child, c_type_of_child): Likewise.
2252 (c_value_of_variable, cplus_number_of_children): Likewise.
2253 (cplus_class_num_children, cplus_name_of_variable): Likewise.
2254 (cplus_name_of_child, cplus_path_expr_of_child): Likewise.
2255 (cplus_value_of_child, cplus_type_of_child): Likewise.
2256 (cplus_value_of_variable, java_number_of_children): Likewise.
2257 (java_name_of_variable, java_name_of_child): Likewise.
2258 (java_path_expr_of_child, java_value_of_child): Likewise.
2259 (java_type_of_child, java_value_of_variable): Likewise.
2260 (ada_number_of_children, ada_name_of_variable): Likewise.
2261 (ada_name_of_child, ada_path_expr_of_child): Likewise.
2262 (ada_value_of_child, ada_type_of_child): Likewise.
2263 (ada_value_of_variable, ada_value_is_changeable_p): Likewise.
2264 (ada_value_has_mutated): Likewise.
2265 (struct language_specific): Move it to varobj.h.
2266 (CPLUS_FAKE_CHILD): Move it to varobj.h.
2267 (restrict_range): Rename it varobj_restrict_range. Make it extern.
2268 Callers update.
2269 (get_path_expr_parent): Rename it to varobj_get_path_expr_parent.
2270 Make it extern.
2271 (is_anonymous_child): Move it to c-varobj.c and rename to
2272 varobj_is_anonymous_child. Caller update.
2273 (get_type): Move it to c-varobj.c.
2274 (get_value_type): Rename it varobj_get_value_type. Make it
2275 extern.
2276 (get_target_type): Move it gdbtypes.c.
2277 (varobj_formatted_print_options): New function.
2278 (value_get_print_value): Rename it to
2279 varobj_value_get_print_value and make it extern.
2280 (varobj_value_is_changeable_p): Make it extern.
2281 (adjust_value_for_child_access): Move it to c-varobj.c.
2282 (default_value_is_changeable_p): Rename it to
2283 varobj_default_value_is_changeable_p. Make it extern.
2284 (c_number_of_children, c_name_of_variable): Move it to c-varobj.c
2285 (c_name_of_child, c_path_expr_of_child): Likewise.
2286 (c_value_of_child, c_type_of_child): Likewise.
2287 (c_value_of_variable, cplus_number_of_children): Likewise.
2288 (cplus_class_num_children, cplus_name_of_variable): Likewise.
2289 (cplus_name_of_child, cplus_path_expr_of_child): Likewise.
2290 (cplus_value_of_child, cplus_type_of_child): Likewise.
2291 (cplus_value_of_variable): Likewise.
2292 (java_number_of_children, java_name_of_variable): Move it to jv-varobj.c.
2293 (java_name_of_child, java_path_expr_of_child): Likewise.
2294 (java_value_of_child, java_type_of_child): Likewise.
2295 (java_value_of_variable): Likewise.
2296 (ada_number_of_children, ada_name_of_variable): Move it to ada-varobj.c.
2297 (ada_name_of_child, ada_path_expr_of_child): Likewise.
2298 (ada_value_of_child, ada_type_of_child): Likewise.
2299 (ada_value_of_variable, ada_value_is_changeable_p): Likewise.
2300 (ada_value_has_mutated): Likewise.
2301 * varobj.h (CPLUS_FAKE_CHILD): New macro, moved from varobj.c.
2302 (struct lang_varobj_ops): New. Renamed by 'struct language_specific'.
2303 (c_varobj_ops, cplus_varobj_ops): Declare.
2304 (java_varobj_ops, ada_varobj_ops): Declare.
2305 (varobj_default_value_is_changeable_p): Declare.
2306 (varobj_value_is_changeable_p): Declare.
2307 (varobj_get_value_type, varobj_is_anonymous_child): Declare.
2308 (varobj_get_path_expr_parent): Declare.
2309 (varobj_value_get_print_value): Declare.
2310 (varobj_formatted_print_options): Declare.
2311 (varobj_restrict_range): Declare.
2312
2313 2013-10-17 Luis Machado <lgustavo@codesourcery.com>
2314
2315 * target/waitstatus.h (target_waitkind): Remove spurious
2316 character from the comments.
2317
2318 2013-10-17 Joel Brobecker <brobecker@adacore.com>
2319
2320 * gdbarch.sh (get_longjmp_target): Add method documentation.
2321 * gdbarch.h: Regenerate.
2322
2323 2013-10-16 Tom Tromey <tromey@redhat.com>
2324
2325 * dbxread.c (read_dbx_symtab) <bss_ext_symbol>: Remove unused
2326 label.
2327
2328 2013-10-16 Luis Machado <lgustavo@codesourcery.com>
2329
2330 * gcore.in: Call GDB using the full path to the gcore script.
2331 Error out if the GDB binary is not found.
2332
2333 2013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
2334
2335 PR gdb/16014
2336 * dwarf2read.c (dw2_get_real_path): Remove unnecessary call to
2337 sizeof.
2338
2339 2013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
2340
2341 PR gdb/16042
2342 * target.c (target_disable_btrace): Fix invalid return value for
2343 void function.
2344 (target_teardown_btrace): Likewise.
2345
2346 2013-10-14 Yao Qi <yao@codesourcery.com>
2347
2348 * varobj.c (struct varobj): Move most of the fields to
2349 varobj.h.
2350 (struct varobj_dynamic): New struct.
2351 (varobj_get_display_hint) [HAVE_PYTHON]: Adjust.
2352 (varobj_has_more): Likewise.
2353 (dynamic_varobj_has_child_method): Likewise.
2354 (update_dynamic_varobj_children): Likewise.
2355 (varobj_get_num_children): Likewise.
2356 (varobj_list_children, varobj_pretty_printed_p): Likewise.
2357 (install_new_value_visualizer): Likewise.
2358 (install_new_value_visualizer, install_new_value): Likewise.
2359 (varobj_update, new_variable, free_variable): Likewise.
2360 (my_value_of_variable, value_get_print_value): Likewise.
2361 (install_visualizer): Change the type of parameter 'var' to
2362 'struct varobjd_dynamic *'. Callers update.
2363 * varobj.h (struct varobj): Moved from varobj.c.
2364 (struct varobj) <dynamic>: New field.
2365
2366 2013-10-13 Sandra Loosemore <sandra@codesourcery.com>
2367
2368 * nios2-tdep.c (nios2_reg_names): Use "sstatus" rather than "ba"
2369 as the preferred name of r30.
2370 * nios2-linux-tdep.c (reg_offsets): Likewise.
2371 * features/nios2-cpu.xml: Likewise.
2372 * features/nios2-linux.c: Regenerated.
2373 * features/nios2.c: Regenerated.
2374 * regformats/nios2-linux.dat: Regenerated.
2375
2376 2013-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2377
2378 Canonicalize directories for EXEC_FILENAME.
2379 * exec.c (exec_file_attach): Use gdb_realpath_keepfile for
2380 exec_filename.
2381 * utils.c (gdb_realpath_keepfile): New function.
2382 * utils.h (gdb_realpath_keepfile): New declaration.
2383
2384 2013-10-11 Doug Evans <dje@google.com>
2385
2386 * Makefile.in (GDBFLAGS): New variable.
2387 (run): New rule.
2388
2389 2013-10-11 Joel Brobecker <brobecker@adacore.com>
2390
2391 * NEWS: Add entry documenting the new "-catch-assert" and
2392 "-catch-exception" GDB/MI commands.
2393
2394 2013-10-11 Joel Brobecker <brobecker@adacore.com>
2395
2396 * breakpoint.h (init_ada_exception_breakpoint): Add parameter
2397 "enabled".
2398 * breakpoint.c (init_ada_exception_breakpoint): Add parameter
2399 "enabled". Set B->ENABLE_STATE accordingly.
2400 * ada-lang.h (ada_exception_catchpoint_kind): Move here from
2401 ada-lang.c.
2402 (create_ada_exception_catchpoint): Add declaration.
2403 * ada-lang.c (ada_exception_catchpoint_kind): Move to ada-lang.h.
2404 (create_ada_exception_catchpoint): Make non-static. Add new
2405 parameter "disabled". Use it in call to
2406 init_ada_exception_breakpoint.
2407 (catch_ada_exception_command): Add parameter "enabled" in call
2408 to create_ada_exception_catchpoint.
2409 (catch_assert_command): Likewise.
2410
2411 * mi/mi-cmds.h (mi_cmd_catch_assert, mi_cmd_catch_exception):
2412 Add declarations.
2413 * mi/mi-cmds.c (mi_cmds): Add the "catch-assert" and
2414 "catch-exception" commands.
2415 * mi/mi-cmd-catch.c: Add #include "ada-lang.h".
2416 (mi_cmd_catch_assert, mi_cmd_catch_exception): New functions.
2417
2418 2013-10-11 Joel Brobecker <brobecker@adacore.com>
2419
2420 * ada-lang.c (enum ada_exception_catchpoint_kind): Renames
2421 "enum exception_catchpoint_kind". Replace the "ex_" prefix
2422 of all its enumerates with "ada_". Update the rest of this
2423 file throughout.
2424
2425 2013-10-11 Joel Brobecker <brobecker@adacore.com>
2426
2427 * ada-lang.c (ada_decode_exception_location): Delete.
2428 (create_ada_exception_catchpoint): Remove arguments "sal",
2429 "addr_string" and "ops". Add argument "ex_kind" instead.
2430 Adjust implementation accordingly, calling ada_exception_sal
2431 to get the entities it no longer gets passed as arguments.
2432 Document the function's arguments.
2433 (catch_ada_exception_command): Use catch_ada_exception_command_split
2434 instead of ada_decode_exception_location, and update call to
2435 create_ada_exception_catchpoint.
2436 (catch_ada_assert_command_split): Renames
2437 ada_decode_assert_location. Remove parameters "addr_string" and
2438 "ops", and now returns void. Adjust implementation accordingly.
2439 Update the function documentation.
2440 (catch_assert_command): Use catch_ada_assert_command_split
2441 instead of ada_decode_assert_location. Update call to
2442 create_ada_exception_catchpoint.
2443
2444 2013-10-11 Joel Brobecker <brobecker@adacore.com>
2445
2446 * utils.h (perror_warning_with_name): Add declaration.
2447 * utils.c (perror_warning_with_name): New function.
2448 * cli/cli-cmds.c (source_script_with_search): Add call to
2449 perror_warning_with_name if from_tty is nul.
2450
2451 2013-10-11 Joel Brobecker <brobecker@adacore.com>
2452
2453 * utils.c (perror_string): New function, extracted out of
2454 throw_perror_with_name.
2455 (throw_perror_with_name): Rework to use perror_string.
2456
2457 2013-10-11 Yao Qi <yao@codesourcery.com>
2458
2459 * remote.c (discard_pending_stop_replies_in_queue): Update
2460 declaration.
2461 (struct stop_reply) <rs>: New field.
2462 (remove_stop_reply_of_remote_state): New function.
2463 (discard_pending_stop_replies_in_queue): Add parameter 'rs'.
2464 Callers update. Pass remove_stop_reply_of_remote_state to
2465 QUEUE_iterate.
2466 (remote_parse_stop_reply): Initialize field 'rs'.
2467
2468 2013-10-10 Will Newton <will.newton@linaro.org>
2469
2470 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
2471 linux_init_abi.
2472
2473 2013-10-10 Joel Brobecker <brobecker@adacore.com>
2474
2475 * cli/cli-cmds.c (show_baud_rate): Moved to serial.c as
2476 serial_baud_show_cmd.
2477 (_initialize_cli_cmds): Delete the code creating the
2478 "set/show remotebaud" commands.
2479 * serial.c (baud_rate): Move here from top.c.
2480 (serial_baud_show_cmd): Move here from cli/cli-cmds.c.
2481 (_initialize_serial): Create "set/show serial baud" commands.
2482 Add "set/show remotebaud" command aliases.
2483 * top.c (baud_rate): Moved to serial.c.
2484 * NEWS: Document the new "set/show serial baud" commands,
2485 replacing "set/show remotebaud".
2486
2487 2013-10-09 Pedro Alves <palves@redhat.com>
2488
2489 * breakpoint.c (insert_bp_location): Use memory_error_message to
2490 build the memory error string.
2491 * c-lang.c: Include "gdbcore.h".
2492 (c_get_string): Use memory_error to throw error.
2493 (target_xfer_memory_error): Delete.
2494 (memory_error_message): New, factored out from
2495 target_xfer_memory_error.
2496 (memory_error): Change parameter type to target_xfer_error.
2497 Rewrite.
2498 (read_memory): Use memory_error instead of
2499 target_xfer_memory_error.
2500 * gdbcore.h: Include "target.h".
2501 (memory_error): Change parameter type to target_xfer_error.
2502 (memory_error_message): Declare function.
2503 * target.c (target_read_memory, target_read_stack)
2504 (target_write_memory, target_write_raw_memory): Return
2505 TARGET_XFER_E_IO on error. Adjust comments.
2506 (get_target_memory): Pass TARGET_XFER_E_IO to memory_error,
2507 instead of EIO.
2508 * target.h (target_read, target_insert_breakpoint)
2509 (target_remove_breakpoint): Adjust comments.
2510 * valprint.c (partial_memory_read): Rename parameter, and adjust
2511 comment.
2512 (val_print_string): Use memory_error_message to build the memory
2513 error string.
2514
2515 2013-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2516
2517 * common/filestuff.c (gdb_fopen_cloexec): Remove initialization of
2518 result variable. Rename variable fopen_e_ever_failed to
2519 fopen_e_ever_failed_einval. Retry fopen only for errno EINVAL.
2520
2521 2013-10-09 Pedro Alves <palves@redhat.com>
2522
2523 * monitor.c (monitor_write_memory, monitor_write_memory_bytes)
2524 (monitor_write_memory_longlongs, monitor_write_memory_block):
2525 Constify 'myaddr' parameter.
2526 (monitor_xfer_memory): Adjust interface as monitor_xfer_partial
2527 helper.
2528 (monitor_xfer_partial): New function.
2529 (init_base_monitor_ops): Don't install a deprecated_xfer_memory
2530 hook. Install a to_xfer_partial hook.
2531
2532 2013-10-09 Tom Tromey <tromey@redhat.com>
2533
2534 * dwarf2read.c (dwarf2_get_dwz_file): Update for type change in
2535 bfd_get_alt_debug_link_info.
2536
2537 2013-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2538
2539 New flag OBJF_NOT_FILENAME.
2540 * auto-load.c (auto_load_objfile_script): Check also OBJF_NOT_FILENAME.
2541 * jit.c (jit_object_close_impl): Use OBJF_NOT_FILENAME for
2542 allocate_objfile.
2543 (jit_bfd_try_read_symtab): Use OBJF_NOT_FILENAME for
2544 symbol_file_add_from_bfd.
2545 * jv-lang.c (get_dynamics_objfile): Use OBJF_NOT_FILENAME for
2546 allocate_objfile.
2547 * objfiles.c (allocate_objfile): Assert OBJF_NOT_FILENAME if NAME is
2548 NULL.
2549 * objfiles.h (OBJF_NOT_FILENAME): New.
2550
2551 2013-10-08 Tom Tromey <tromey@redhat.com>
2552
2553 * Makefile.in (SFILES): Add build-id.c.
2554 (HFILES_NO_SRCDIR): Add build-id.h.
2555 * build-id.c: New file, largely from elfread.c. Modified
2556 most functions.
2557 * build-id.h: New file.
2558 * dwarf2read.c (dwarf2_get_dwz_file): Update for change to
2559 bfd_get_alt_debug_link_info. Verify dwz file's build-id.
2560 Search for dwz file using build-id.
2561 * elfread.c (build_id_bfd_get, build_id_verify)
2562 (build_id_to_debug_filename, find_separate_debug_file): Remove.
2563
2564 2013-10-08 Joel Brobecker <brobecker@adacore.com>
2565
2566 * ada-lang.c (compare_names_with_case): Renamed from
2567 compare_names, adding a new parameter "casing" and its handling.
2568 New function documentation.
2569 (compare_names): New function, implemented using
2570 compare_names_with_case.
2571
2572 2013-10-08 Joel Brobecker <brobecker@adacore.com>
2573
2574 * ada-lang.c (ada_exception_sal): Remove advance declaration.
2575
2576 2013-10-07 Tom Tromey <tromey@redhat.com>
2577
2578 * objfiles.c (free_objfile_per_bfd_storage): Delete the
2579 demangled_names_hash.
2580 (free_objfile): Don't delete the demangled_names_hash.
2581 * objfiles.h (struct objfile_per_bfd_storage)
2582 <demangled_names_hash>: New field.
2583 (struct objfile) <demangled_names_hash>: Move to
2584 objfile_per_bfd_storage.
2585 * symfile.c (reread_symbols): Don't delete the
2586 demangled_names_hash.
2587 * symtab.c (create_demangled_names_hash): Update.
2588 (symbol_set_names): Update.
2589
2590 2013-10-07 Tom Tromey <tromey@redhat.com>
2591
2592 * gdb_bfd.c (struct gdb_bfd_data) <relocation_computed,
2593 needs_relocations>: New fields.
2594 (gdb_bfd_requires_relocations): New function.
2595 * gdb_bfd.h (gdb_bfd_requires_relocations): Declare.
2596 * objfiles.c (get_objfile_bfd_data): Disallow sharing if
2597 the BFD needs relocations applied.
2598
2599 2013-10-07 Pedro Alves <palves@redhat.com>
2600
2601 PR breakpoints/11568
2602 * breakpoint.c (remove_threaded_breakpoints): Say "no longer in
2603 the thread list" instead of "gone".
2604
2605 2013-10-06 Sergio Durigan Junior <sergiodj@redhat.com>
2606
2607 * NEWS: Mention new convenience variable $_exitsignal.
2608 * corelow.c (core_open): Reset exit convenience variables. Set
2609 $_exitsignal to the uncaught signal which generated the corefile.
2610 * infrun.c (handle_inferior_event): Reset exit convenience
2611 variables. Set $_exitsignal for TARGET_WAITKIND_SIGNALLED.
2612 (clear_exit_convenience_vars): New function.
2613 * inferior.h (clear_exit_convenience_vars): New prototype.
2614
2615 2013-10-06 Yao Qi <yao@codesourcery.com>
2616
2617 * varobj.h: Add comments to enum varobj_languages.
2618
2619 2013-10-04 Doug Evans <dje@google.com>
2620
2621 Add support for DWP file format version 2.
2622 * NEWS: Mention support for DWP file format version 2.
2623 * dwarf2read.c (dwarf2_section_info): Convert asection field to a
2624 union of asection, containing_section. New fields virtual_offset
2625 and is_virtual. Change type of readin filed from int to char.
2626 (dwo_sections, dwo_file): Tweak comments.
2627 (dwp_v2_section_ids): New enum.
2628 (dwp_sections): New fields abbrev, info, line, loc, macinfo, macro,
2629 str_offsets, types.
2630 (virtual_v1_dwo_sections): Renamed from virtual_dwo_sections.
2631 All uses updated.
2632 (virtual_v2_dwo_sections): New struct.
2633 (dwp_hash_table): New fields version, nr_columns. Change type of
2634 section_pool field to a union.
2635 (dwp_file): New field version.
2636 (dwarf2_has_info): Check for virtual sections.
2637 (get_containing_section): New function.
2638 (get_section_bfd_owner, get_section_bfd_section): Call it.
2639 (dwarf2_locate_sections): Update.
2640 (dwarf2_section_empty_p): Update.
2641 (dwarf2_read_section): Handle virtual sections.
2642 (locate_dwz_sections): Update.
2643 (create_dwp_hash_table): Document and handle V2 format.
2644 (locate_v1_virtual_dwo_sections): Renamed from
2645 locate_virtual_dwo_sections and update. All callers updated.
2646 (create_dwo_unit_in_dwp_v1): Renamed from create_dwo_in_dwp.
2647 Delete arg htab. Rename arg section_index to unit_index.
2648 All callers updated.
2649 (MAX_NR_V1_DWO_SECTIONS): Renamed from MAX_NR_DWO_SECTIONS.
2650 All uses updated.
2651 (create_dwp_v2_section, create_dwo_unit_in_dwp_v2): New functions.
2652 (lookup_dwo_unit_in_dwp): Add V2 support.
2653 (dwarf2_locate_dwo_sections): Update.
2654 (dwarf2_locate_common_dwp_sections): Renamed from
2655 dwarf2_locate_dwp_sections and update. All callers updated.
2656 (dwarf2_locate_v2_dwp_sections): New function.
2657 (open_and_init_dwp_file): Add V2 support.
2658 (read_str_index): New locals str_section, str_offsets_section.
2659
2660 2013-10-04 Pedro Alves <palves@redhat.com>
2661
2662 * common/ptid.c (null_ptid, minus_one_ptid, ptid_build)
2663 (pid_to_ptid, ptid_get_pid, ptid_get_lwp, ptid_get_tid)
2664 (ptid_equal, ptid_is_pid, ptid_lwp_p, ptid_tid_p): Replace
2665 describing comments with references to ptid.h.
2666 * common/ptid.h: Remove intro description of constructors,
2667 accessors and predicates.
2668 (struct ptid): Reformat.
2669 (minus_one_ptid, ptid_build, pid_to_ptid, ptid_get_pid)
2670 (ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid): Change
2671 describing comments.
2672
2673 2013-10-04 Joel Brobecker <brobecker@adacore.com>
2674
2675 * aix-thread.c (sync_threadlists): Add missing ')' in call
2676 to ptid_build.
2677
2678 2013-10-04 Joel Brobecker <brobecker@adacore.com>
2679
2680 * procfs.c (procfs_init_inferior): Fix typo causing the build
2681 to fail.
2682
2683 2013-10-04 Joel Brobecker <brobecker@adacore.com>
2684
2685 * aix-thread.c (ptrace32): Remove cast to addr_ptr.
2686
2687 2013-10-04 Joel Brobecker <brobecker@adacore.com>
2688
2689 * mi/mi-main.c (run_one_inferior): Add function description.
2690 Make ARG a pointer to an integer whose value determines whether
2691 we should "run" or "start" the program.
2692 (mi_cmd_exec_run): Add handling of the "--start" option.
2693 Reject all other command-line options.
2694 * NEWS: Add entry for "-exec-run"'s new "--start" option.
2695
2696 2013-10-04 Yao Qi <yao@codesourcery.com>
2697
2698 * remote-notif.h (REMOTE_NOTIF_ID): New enum.
2699 (struct notif_client) <pending_event>: Moved
2700 to struct remote_notif_state.
2701 <id>: New field.
2702 (struct remote_notif_state) <pending_event>: New field.
2703 (notif_event_xfree): Declare.
2704 * remote-notif.c (handle_notification): Adjust.
2705 (notif_event_xfree): New function.
2706 (do_notif_event_xfree): Call notif_event_xfree.
2707 (remote_notif_state_xfree): Call notif_event_xfree to free
2708 each element in field pending_event.
2709 * remote.c (discard_pending_stop_replies): Remove declaration.
2710 (discard_pending_stop_replies_in_queue): Declare.
2711 (remote_close): Call discard_pending_stop_replies_in_queue
2712 instead of discard_pending_stop_replies.
2713 (remote_start_remote): Adjust.
2714 (stop_reply_xfree): Call notif_event_xfree.
2715 (notif_client_stop): Adjust initialization.
2716 (remote_notif_remove_all): Rename it to ...
2717 (remove_stop_reply_for_inferior): ... this. Update comments.
2718 Don't check INF is NULL.
2719 (discard_pending_stop_replies): Return early if notif_state is
2720 NULL. Adjust. Don't check INF is NULL.
2721 (remote_notif_get_pending_events): Adjust.
2722 (discard_pending_stop_replies_in_queue): New function.
2723 (remote_wait_ns): Likewise.
2724
2725 2013-10-04 Yao Qi <yao@codesourcery.com>
2726
2727 * remote-notif.c (DECLARE_QUEUE_P): Remove.
2728 (notif_queue): Remove.
2729 (remote_notif_process): Add one parameter 'notif_queue'.
2730 Update comments. Callers update.
2731 (remote_async_get_pending_events_token): Remove.
2732 (remote_notif_register_async_event_handler): Remove.
2733 (remote_notif_unregister_async_event_handler): Remove.
2734 (handle_notification): Add parameter 'notif_queue'. Update
2735 comments. Callers update.
2736 (notif_xfree): Remove.
2737 (remote_notif_state_allocate): New function.
2738 (remote_notif_state_xfree): New function.
2739 (_initialize_notif): Remove code to allocate queue.
2740 * remote-notif.h (DECLARE_QUEUE_P): Moved from remote-notif.c.
2741 (struct remote_notif_state): New.
2742 (handle_notification): Update declaration.
2743 (remote_notif_process): Likewise.
2744 (remote_notif_register_async_event_handler): Remove.
2745 (remote_notif_unregister_async_event_handler): Remove.
2746 (remote_notif_state_allocate): Declare.
2747 (remote_notif_state_xfree): Declare.
2748 * remote.c (struct remote_state) <notif_state>: New field.
2749 (remote_close): Don't call
2750 remote_notif_unregister_async_event_handler. Call
2751 remote_notif_state_xfree.
2752 (remote_open_1): Don't call
2753 remote_notif_register_async_event_handler. Call
2754 remote_notif_state_allocate.
2755
2756 2013-10-04 Yao Qi <yao@codesourcery.com>
2757
2758 * varobj.c (create_child_with_value): Remove 'const' from the
2759 type of parameter 'name'.
2760 (varobj_add_child): Likewise.
2761 (install_dynamic_child): Remove 'const' from the type of
2762 parameter 'name'.
2763 (varobj_add_child): Likewise.
2764 (create_child_with_value): Likewise. Update comments. Don't
2765 duplicate 'name'.
2766 (update_dynamic_varobj_children): Duplicate 'name'
2767 and pass it to install_dynamic_child.
2768
2769 2013-10-03 Phil Muldoon <pmuldoon@redhat.com>
2770
2771 * python/py-value.c (convert_value_from_python): Move PyInt_Check
2772 conversion logic to occur after PyLong_Check. Comment on order
2773 change significance.
2774 * python/py-arch.c (archpy_disassemble): Comment on order of
2775 conversion for integers and longs.
2776
2777 2013-10-03 Pedro Alves <palves@redhat.com>
2778
2779 * common/linux-ptrace.c (linux_check_ptrace_features): Factor out
2780 the PTRACE_O_TRACESYSGOOD and PTRACE_O_TRACEFORK to separate
2781 functions. Always test for PTRACE_O_TRACESYSGOOD even if
2782 PTRACE_O_TRACEFORK is not supported.
2783 (linux_test_for_tracesysgood): New function.
2784 (linux_test_for_tracefork): New function, factored out from
2785 linux_check_ptrace_features, and also don't kill child_pid here.
2786
2787 2013-10-03 Tristan Gingold <gingold@adacore.com>
2788
2789 * i386-darwin-nat.c (i386_darwin_dr_set): Fix argument type.
2790 Remove verbose error reporting. Use detected state to
2791 thread_set_state call.
2792 (i386_darwin_dr_get): Fix return type. Remove verbose error
2793 report.
2794 Remove trailing spaces.
2795
2796 2013-10-02 Pedro Alves <palves@redhat.com>
2797
2798 * cp-valprint.c (cp_print_value_fields): Adjust calls to
2799 val_print_optimized_out.
2800 * jv-valprint.c (java_print_value_fields): Likewise.
2801 * p-valprint.c (pascal_object_print_value_fields): Likewise.
2802 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full)
2803 <DWARF_VALUE_REGISTER>: If the register was not saved, return a
2804 new optimized out value.
2805 * findvar.c (address_from_register): Likewise.
2806 * frame.c (put_frame_register): Tweak error string to say the
2807 register was not saved, rather than optimized out.
2808 * infcmd.c (default_print_one_register_info): Adjust call to
2809 val_print_optimized_out. Use value_of_register instead of
2810 get_frame_register_value.
2811 * mi/mi-main.c (output_register): Use value_of_register instead of
2812 get_frame_register_value.
2813 * valprint.c (valprint_check_validity): Likewise.
2814 (val_print_optimized_out): New value parameter. If the value is
2815 lval_register, print <not saved> instead.
2816 (value_check_printable, val_print_scalar_formatted): Adjust calls
2817 to val_print_optimized_out.
2818 * valprint.h (val_print_optimized_out): New value parameter.
2819 * value.c (struct value) <optimized_out>: Extend comment.
2820 (error_value_optimized_out): New function.
2821 (require_not_optimized_out): Use it. Use a different string for
2822 lval_register values.
2823 * value.h (error_value_optimized_out): New declaration.
2824 * NEWS: Mention <not saved>.
2825
2826 2013-10-02 Joel Brobecker <brobecker@adacore.com>
2827
2828 * symtab.c (compare_search_syms): Use FILENAME_CMP instead of
2829 strcmp to compare two symtab filenames.
2830
2831 2013-10-02 Joel Brobecker <brobecker@adacore.com>
2832
2833 * symtab.c (search_symbols_equal): Delete.
2834 (sort_search_symbols_remove_dups): Replace call to
2835 search_symbols_equal by call to compare_search_syms,
2836 adjusting as necessary.
2837
2838 2013-10-02 Phil Muldoon <pmuldoon@redhat.com>
2839
2840 PR python/15579
2841 * python/python.c: Document gdb.execute command in Python help.
2842
2843 2013-10-02 Phil Muldoon <pmuldoon@redhat.com>
2844
2845 * python/py-frame.c (frame_info_to_frame_object): Use
2846 gdbpy_convert_exception. Clean up Python object on failure.
2847
2848 2013-10-02 Phil Muldoon <pmuldoon@redhat.com>
2849
2850 * python/lib/gdb/command/frame_filters.py
2851 (InfoFrameFilter.list_frame_filters): Retrieve exception manually.
2852 (ShowFrameFilterPriority.invoke): Ditto.
2853
2854 2013-10-01 Keith Seitz <keiths@redhat.com>
2855
2856 * linespec.c (struct ls_parser): Make 'saved_arg' const.
2857 (parse_linespec): Make 'argptr' const.
2858 Remove temporary cast of 'argptr' to const char **.
2859 (decode_line_full): Pass const pointer to parse_linespec.
2860 (decode_line_1): Likewise.
2861 (decode_objc): Make local variable 'new_argptr' const.
2862 (find_function_symbols): Remove temporary cast to char *
2863 to find_imps.
2864 * objc-lang.c (find_imps): Make argument 'method' const.
2865 Return const.
2866 * objc-lang.h (find_imps): Likewise.
2867
2868 2013-10-01 Keith Seitz <keiths@redhat.com>
2869
2870 * completer.c (skip_quoted_chars): Make all arguments const.
2871 Return const.
2872 (skip_quoted): Likewise.
2873 * completer.h (skip_quoted_chars): Likewise.
2874 (skip_quoted): Likewise.
2875 * defs.h (skip_quoted): Remove duplicate declaration.
2876 * jv-exp.y: Include completer.h.
2877 (yylex): Remove unneccessary cast to char * fro skip_quoted.
2878 * p-exp.y: Include completer.h.
2879
2880 2013-10-01 Keith Seitz <keiths@redhat.com>
2881
2882 * c-exp.y (parse_number): Make first argument const.
2883 Make a copy of the input to manipulate.
2884 (c_parse_escape): Make first argument const.
2885 Make local variable 'tokptr' const.
2886 (parse_string_or_char): Make first two arguments const.
2887 (macro_original_text): Make const.
2888 (lex_one_token): Make local variable 'tokstart' const.
2889 Likewise for local variables named 'p'.
2890 Cast away const for struct stoken (temporary).
2891 * c-lang.h (c_parse_escpae): Make first argument const.
2892 * cli/cli-cmds.c (echo_command): Make local variable 'p'
2893 const.
2894 * cli/cli-setshow.c (do_set_command): Likewise for 'p' in
2895 var_string case.
2896 * f-exp.y (parse_number): Make first argument const.
2897 (match_string_literal): Make local variable 'tokstart'
2898 const.
2899 (yylex): Make local variable 'p' const.
2900 Cast away const for struct stoken (temporary).
2901 * go-exp.y (parse_number): Make first argument const.
2902 (parse_string_or_char): Likewise.
2903 Make local variable 'tokstart' const.
2904 (lex_one_token): Likewise for numerous locals called 'p'.
2905 Cast away const for struct stoken (temporary).
2906 * jv-exp.y (parse_number): Make first argument const.
2907 Make local variables 'tokstart' and 'tokptr' const.
2908 Cast away const for call to skip_quoted (temporary).
2909 (yylex): Make local variable 'p' const.
2910 Cast away const for struct stoken (temporary).
2911 * m2-exp.y (parse_number): Make local variable 'p' const.
2912 (yylex): Likewise for 'tokstart'.
2913 Cast away const for struct stoken (temporary).
2914 Make local variable 'p' const.
2915 * macroexp.c (get_character_constant): Pass a const string
2916 to c_parse_escape.
2917 (get_string_literal): Likewise.
2918 (macro_expand_next): Make first argument const.
2919 Cast away const for init_shared_buffer.
2920 * macroexp.h (macro_expand_next): Make first argument const.
2921 * p-exp.y (yylex): Make a local copy of 'lexptr'.
2922 Pass a const string to c_parse_escape.
2923 Make local variables 'p' and 'namestart' const.
2924 * parse.c (lexptr): Make const.
2925 (prev_lexptr): Likewise.
2926 (find_template_name_end): Return const.
2927 Make argument const, too.
2928 (parse_exp_in_context): Make first argument const.
2929 Remove the entire const_hack.
2930 (parse_exp_in_context_1): Make first argument const.
2931 * parser-defs.h (find_template_name_end): Return const.
2932 Make argument const, too.
2933 (lexptr): Make const.
2934 (prev_lexptr): Likewise.
2935 * utils.c (parse_escape): Make second argument const.
2936 * utils.h (parse_escape): Likewise.
2937
2938 2013-10-01 Keith Seitz <keiths@redhat.com>
2939
2940 * ada-exp.y (write_object_renaming): Update: struct stoken.ptr
2941 is now const.
2942 (block_lookup): Make 'raw_name' and 'name' const.
2943 * ada-lex.l (processString): Update for struct stoken.ptr.
2944 * c-exp.y (qualified_name : TYPENAME COLONCOLON '~' name): Likewise.
2945 (operator_stoken): Likewise.
2946 (lex_one_token): Remove temporary cast to char * for
2947 'yylval.sval.ptr'.
2948 * f-exp.y (yylex): Likewise.
2949 * gdb-types.c (lookup_struct_elt_type): Make argument 'name' const.
2950 * gdbtypes.h (lookup_struct_elt_type): Likewisee.
2951 * go-exp.y (lex_one_token): Remove temporary cast to char * for
2952 'yylval.sval.ptr'.
2953 * jv-exp.y (QualifiedName): Update for struct stoken.ptr.
2954 (yylex): Remove temporary cast to char * for 'yylval.sval.ptr'.
2955 * linespec.c (struct ls_parser): Make 'stream' const.
2956 (find_parameter_list_end): Make argument 'input' and local
2957 variable 'p' const.
2958 (linespec_lexer_lex_string): Make local variables 'start' and
2959 'p' const.
2960 Use skip_spaces_const instead of skip_spaces.
2961 (linespec_lexer_peek_token): Make local variable 'saved_stream'
2962 const.
2963 (parse_linespec): Temporarily cast 'argptr' to const for
2964 'parser->lexer.stream'.
2965 * m2-exp.y (yylex): Remove temporary cast to char * for
2966 'yylval.sval.ptr'.
2967 * objc-lang.c (add_msglist): Make local variable 'p' const.
2968 * p-exp.y (exp : exp '['): Update for struct stoken.ptr.
2969 (exp : STRING): Make 'sp' const.
2970 (parse_number): Make argument 'p' const.
2971 * parser-defs.h (struct stoken): Make 'ptr' const.
2972
2973 2013-10-01 Doug Evans <dje@google.com>
2974
2975 * cli/cli-decode.c: Remove unnecessary inclusion of tui/tui.h.
2976
2977 2013-10-01 Yao Qi <yao@codesourcery.com>
2978
2979 * varobj.c (c_value_of_root): Remove declaration.
2980 (cplus_value_of_root, java_value_of_root): Likewise.
2981 (ada_value_of_root): Likewise.
2982 (struct language_specific) <value_of_root>: Remove.
2983 (languages): Update initialization.
2984 (check_scope): Move earlier.
2985 (c_value_of_root): Move earlier and rename to ...
2986 (value_of_root_1): ... this.
2987 (value_of_root): Caller update.
2988 (cplus_value_of_root, java_value_of_root): Remove.
2989 (ada_value_of_root): Remove.
2990
2991 2013-10-01 Yao Qi <yao@codesourcery.com>
2992
2993 * varobj.c (varobj_format_string): Remove "unknown".
2994 (languages): Remove the first element.
2995 * varobj.h (enum varobj_languages): Remove vlang_c.
2996
2997 2013-10-01 Yao Qi <yao@codesourcery.com>
2998
2999 * varobj.c (struct language_specific) <language>: Remove.
3000 (languages): Update the initialization.
3001
3002 2013-10-01 Yao Qi <yao@codesourcery.com>
3003
3004 * arm-wince-tdep.c: Remove inclusion of "solib.h" and
3005 "solib-target.h". Include "windows-tdep.h".
3006 (arm_wince_init_abi): Call windows_init_abi. Remove call to
3007 set_solib_ops and set_gdbarch_has_dos_based_file_system.
3008 * configure.tgt (arm*-wince-pe | arm*-*-mingw32ce*): Append
3009 windows-tdep.o to gdb_target_obs.
3010
3011 2013-10-01 Yao Qi <yao@codesourcery.com>
3012
3013 * amd64-windows-tdep.c: Remove inclusion of "solib.h" and
3014 "solib-target.h".
3015 (amd64_windows_init_abi): Don't call set_solib_ops and
3016 set_gdbarch_iterate_over_objfiles_in_search_order. Call
3017 windows_init_abi instead.
3018 * i386-cygwin-tdep.c: Remove inclusion of "solib.h" and
3019 "solib-target.h".
3020 (i386_cygwin_init_abi): Don't call set_solib_ops,
3021 set_gdbarch_has_dos_based_file_system and
3022 set_gdbarch_iterate_over_objfiles_in_search_order. Call
3023 windows_init_abi instead.
3024 * windows-tdep.c: Include "solib.h" and "solib-target.h".
3025 (windows_init_abi): New function.
3026 (windows_iterate_over_objfiles_in_search_order): Make it
3027 static.
3028 * windows-tdep.h (windows_init_abi): Declare.
3029 (windows_iterate_over_objfiles_in_search_order): Remove
3030 declaration.
3031
3032 2013-10-01 Jerome Guitton <guitton@adacore.com>
3033
3034 Checked in by Joel Brobecker <brobecker@adacore.com>
3035 * system-gdbinit/elinos.py (get_elinos_environment): Return an
3036 incomplete dictionnary instead of None in case of missing
3037 environment variables.
3038 (elinos_init): in case of an incomplete environment, best
3039 effort to load system libraries instead of abort.
3040
3041 2013-10-01 Joel Brobecker <brobecker@adacore.com>
3042
3043 * ada-lang.c (ada_has_this_exception_support): Ignore
3044 mst_solib_trampoline minimal symbols.
3045
3046 2013-09-30 Tristan Gingold <gingold@adacore.com>
3047
3048 * i386-darwin-nat.c (darwin_complete_target): Install methods for
3049 hardware watchpoint.
3050 (i386_darwin_dr_set): Support 32 and 64 bit states.
3051 (i386_darwin_dr_get): Likewise.
3052 (i386_darwin_dr_set_control): Make static.
3053 (i386_darwin_dr_set_addr, i386_darwin_dr_get_addr)
3054 (i386_darwin_dr_get_status, i386_darwin_dr_get_control): Likewise.
3055
3056 2013-09-30 Luis Machado <lgustavo@codesourcery.com>
3057
3058 * aarch64-linux-nat.c: Replace PIDGET with ptid_get_pid.
3059 Replace TIDGET with ptid_get_lwp.
3060 Replace GET_LWP with ptid_get_lwp.
3061 * aix-thread.c (BUILD_THREAD, BUILD_LWP): Remove.
3062 Replace BUILD_THREAD with ptid_build.
3063 Replace BUILD_LWP with ptid_build.
3064 Replace PIDGET with ptid_get_pid.
3065 Replace TIDGET with ptid_get_lwp.
3066 * alphabsd-nat.c: Replace PIDGET with ptid_get_pid.
3067 * amd64-linux-nat.c: Replace PIDGET with ptid_get_pid.
3068 Replace TIDGET with ptid_get_lwp.
3069 * amd64bsd-nat.c: Replace PIDGET with ptid_get_pid.
3070 * arm-linux-nat.c: Replace PIDGET with ptid_get_pid.
3071 Replace TIDGET with ptid_get_lwp.
3072 Replace GET_LWP with ptid_get_lwp.
3073 * armnbsd-nat.c: Replace PIDGET with ptid_get_pid.
3074 * auxv.c: Likewise.
3075 * breakpoint.c: Likewise.
3076 * common/ptid.c (ptid_is_pid): Condense check for
3077 null_ptid and minus_one_ptid.
3078 (ptid_lwp_p): New function.
3079 (ptid_tid_p): New function.
3080 * common/ptid.h: Update comments for accessors.
3081 (ptid_lwp_p): New prototype.
3082 (ptid_tid_p): New prototype.
3083 * defs.h (PIDGET, TIDGET, MERGEPID): Do not define.
3084 * gcore.c: Replace PIDGET with ptid_get_pid.
3085 * gdbthread.h: Likewise.
3086 * gnu-nat.c: Likewise.
3087 * hppa-linux-nat.c: Replace PIDGET with ptid_get_pid.
3088 Replace TIDGET with ptid_get_lwp.
3089 * hppabsd-nat.c: Replace PIDGET with ptid_get_pid.
3090 * hppanbsd-nat.c: Likewise.
3091 * i386-linux-nat.c: Replace PIDGET with ptid_get_pid.
3092 Replace TIDGET with ptid_get_lwp.
3093 * i386bsd-nat.c: Replace PIDGET with ptid_get_pid.
3094 * ia64-linux-nat.c: Replace PIDGET with ptid_get_pid.
3095 * infcmd.c: Likewise.
3096 * inferior.h: Likewise.
3097 * inflow.c: Likewise.
3098 * infrun.c: Likewise.
3099 * linux-fork.c: Likewise.
3100 * linux-nat.c: Replace PIDGET with ptid_get_pid.
3101 Replace GET_PID with ptid_get_pid.
3102 Replace is_lwp with ptid_lwp_p.
3103 Replace GET_LWP with ptid_get_lwp.
3104 Replace BUILD_LWP with ptid_build.
3105
3106 2013-09-28 Mike Frysinger <vapier@gentoo.org>
3107
3108 * common/linux-btrace.c: Move sys/syscall.h out of the
3109 HAVE_LINUX_PERF_EVENT_H check and wrap it in HAVE_SYS_SYSCALL_H.
3110 Also check for SYS_perf_event_open before attempting to buid.
3111
3112 2013-09-27 Doug Evans <dje@google.com>
3113
3114 * dwarf2read.c (dwarf2_section_info): Add comment.
3115 (dwp_file): Split loaded_cutus into loaded_cus, loaded_tus.
3116 All uses updated.
3117 (dwarf2_section_empty_p): Rename arg from "info" to "section".
3118 (dwarf2_read_section): Delete unused local "header". Add section
3119 name to error message.
3120 (create_dwo_in_dwp): Tweak comment.
3121 (MAX_NR_DWO_SECTIONS): Combine count of .debug_macro + .debug_macinfo.
3122
3123 * dwarf2read.c (die_reader_specs): Tweak comment.
3124 (get_section_bfd_owner, get_section_bfd_section): New functions.
3125 (get_section_name, get_section_file_name): New functions.
3126 (get_section_id, get_section_flags): New functions.
3127 (*): Use new functions to access section fields.
3128
3129 * dwarf2read.c (struct dwo_file): Add/tweak comments.
3130 (lookup_dwo_unit_in_dwp): Renamed from lookup_dwo_in_dwp. Remove
3131 arg "htab". All callers updated.
3132 (create_debug_types_hash_table): Remove redundant copy of
3133 abbrev_section.
3134 (create_dwo_in_dwp): Tweak comments.
3135 (read_str_index): Tweak comment. Record dwarf form name in static
3136 local.
3137
3138 2013-09-27 Pedro Alves <palves@redhat.com>
3139
3140 * remote.h (REMOTE_SYSROOT_PREFIX): New define.
3141 (remote_filename_p): Add comment.
3142 * remote.c (remote_filename_p): Adjust to use
3143 REMOTE_SYSROOT_PREFIX.
3144 * solib.c (solib_find): When deciding whether we need to add a
3145 directory separator, check whether the sysroot is "remote:"
3146 instead of checking whether the patch has a drive spec. Add
3147 comments.
3148
3149 2013-09-27 Pedro Alves <palves@redhat.com>
3150
3151 * remote.c (struct stop_reply) <solibs_changed, replay_event>:
3152 Delete fields.
3153 (remote_parse_stop_reply): Adjust, setting event->ws.kind
3154 directly.
3155
3156 2013-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
3157
3158 Fix set debug frame output.
3159 * frame.c (fprint_frame_type): Add TAILCALL_FRAME entry. Move
3160 SENTINEL_FRAME entry lower to match enum frame_type order.
3161
3162 2013-09-26 Pierre Muller <muller@sourceware.org>
3163
3164 Replace constant values 8 to 15 by AMD64_R8_REGNUM to
3165 AMD64_R15_REGNUM when a register index is expected.
3166 * amd64-windows-tdep.c (amd64_windows_dummy_call_integer_regs):
3167 Substitute in array.
3168 * amd64-tdep.c (amd64_dwarf_regmap): Ditto.
3169 (amd64_push_arguments): Substitute in integer_regnum array.
3170
3171 2013-09-25 Doug Evans <dje@google.com>
3172
3173 * objfiles.c (allocate_objfile): Move comment to better place.
3174
3175 New option "set debug symfile on".
3176 * NEWS: Mention "set debug symfile".
3177 * Makefile.in (SFILES): Add symfile-debug.c.
3178 (COMMON_OBS): Add symfile-debug.o.
3179 * elfread.c (elf_symfile_read): Use objfile_set_sym_fns to set the
3180 objfile's symbol functions.
3181 * objfiles.h (objfile_set_sym_fns): Declare.
3182 * symfile-debug.c: New file.
3183 * symfile.c (syms_from_objfile_1): Use objfile_set_sym_fns to set the
3184 objfile's symbol functions.
3185 (reread_symbols): Ditto.
3186
3187 * symfile.h (struct sym_fns): Delete member "sym_flavour".
3188 All uses updated.
3189 (add_symtab_fns): Update prototype.
3190 * symfile.c (sym_fns_ptr): Delete. Replace with ...
3191 (registered_sym_fns): ... this.
3192 (symtab_fns): Update.
3193 (add_symtab_fns): New arg "flavour". All callers updated.
3194 (find_sym_fns): Rewrite to use new sym_fns registry.
3195
3196 * symfile.h (struct sym_fns): Add "objfile" argument to
3197 sym_read_linetable. All uses updated.
3198
3199 * symtab.c (domain_name, search_domain_name): New functions.
3200 * symtab.h (domain_name, search_domain_name): Declare.
3201
3202 * symfile.h (struct quick_symbol_functions): Reorg arg list of
3203 map_matching_symbols so objfile is first. All uses updated.
3204 * dwarf2read.c (dw2_map_matching_symbols): Update signature.
3205 * psymtab.c (map_matching_symbols_psymtab): Update signature.
3206
3207 2013-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
3208
3209 PR shlibs/8882
3210 * solib-svr4.c (svr4_read_so_list): Skip the vDSO when reading
3211 link map entries.
3212
3213 2013-09-24 Doug Evans <dje@google.com>
3214
3215 * objfiles.c (free_objfile): Move comment.
3216
3217 2013-09-24 Joel Brobecker <brobecker@adacore.com>
3218
3219 * ada-exp.y (string_to_operator): Delete.
3220 (dummy_string_to_ada_operator): Delete.
3221
3222 2013-09-24 Joel Brobecker <brobecker@adacore.com>
3223
3224 Revert:
3225 * i386-tdep.h (enum amd64_reg_class): New, moved here from
3226 amd64-tdep.c.
3227 (struct gdbarch_tdep): Add fields call_dummy_num_integer_regs,
3228 call_dummy_integer_regs, and classify.
3229 * amd64-tdep.h (amd64_classify): Add declaration.
3230 * amd64-tdep.c (amd64_dummy_call_integer_regs): New static constant.
3231 (amd64_reg_class): Delete, moved to i386-tdep.h.
3232 (amd64_classify): Make non-static. Move declaration to amd64-tdep.h.
3233 Replace call to amd64_classify by call to tdep->classify.
3234 (amd64_push_arguments): Get the list of registers to use for
3235 passing integer parameters from the gdbarch tdep structure,
3236 rather than using a hardcoded one. Replace calls to amd64_classify
3237 by calls to tdep->classify.
3238 (amd64_push_dummy_call): Get the register number used for
3239 the "hidden" argument from tdep->call_dummy_integer_regs.
3240 (amd64_init_abi): Initialize tdep->call_dummy_num_integer_regs
3241 and tdep->call_dummy_integer_regs. Set tdep->classify.
3242
3243 2013-09-24 Joel Brobecker <brobecker@adacore.com>
3244
3245 Revert:
3246 * i386-tdep.h (gdbarch_tdep): Add field memory_args_by_pointer.
3247 * amd64-tdep.c (amd64_push_arguments): Add handling of architectures
3248 where tdep->memory_args_by_pointer is non-zero.
3249
3250 2013-09-24 Joel Brobecker <brobecker@adacore.com>
3251
3252 Revert:
3253 * i386-tdep.h (struct gdbarch_tdep): Add new field
3254 integer_param_regs_saved_in_caller_frame.
3255 * amd64-tdep.c (amd64_push_dummy_call): Allocate some memory on
3256 stack if tdep->integer_param_regs_saved_in_caller_frame is set.
3257
3258 2013-09-24 Joel Brobecker <brobecker@adacore.com>
3259
3260 * amd64-windows-tdep.c: #include "value.h"
3261 (amd64_windows_classify): Delete.
3262 (amd64_windows_passed_by_integer_register)
3263 (amd64_windows_passed_by_xmm_register)
3264 (amd64_windows_passed_by_pointer)
3265 (amd64_windows_adjust_args_passed_by_pointer)
3266 (amd64_windows_store_arg_in_reg, amd64_windows_push_arguments)
3267 (amd64_windows_push_dummy_call): New functions.
3268 (amd64_windows_init_abi): Remove setting of
3269 tdep->call_dummy_num_integer_regs, tdep->call_dummy_integer_regs,
3270 tdep->classify, tdep->memory_args_by_pointer and
3271 tdep->integer_param_regs_saved_in_caller_frame.
3272 Add call to set_gdbarch_push_dummy_call.
3273
3274 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3275
3276 * dwarf2read.c (open_and_init_dwp_file): Try open_dwp_file also with
3277 objfile->original_name.
3278
3279 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3280
3281 Pass down original filename for objfile.
3282 * coffread.c (coff_symfile_read): Update symbol_file_add_separate call.
3283 * elfread.c (elf_symfile_read): Likewise.
3284 * jit.c (jit_object_close_impl): Update allocate_objfile call, no
3285 longer set ORIGINAL_NAME.
3286 (jit_bfd_try_read_symtab): Update symbol_file_add_from_bfd call.
3287 * jv-lang.c (get_dynamics_objfile): Update allocate_objfile call.
3288 * machoread.c (macho_add_oso_symfile): Add parameter name. Update
3289 symbol_file_add_from_bfd call.
3290 (macho_symfile_read_all_oso): Update two macho_add_oso_symfile calls.
3291 (macho_check_dsym): Add parameter filenamep. Change function comment.
3292 Set *filenamep.
3293 (macho_symfile_read): New variable dsym_filename. Update
3294 macho_check_dsym call. Use it for symbol_file_add_separate.
3295 * objfiles.c (allocate_objfile): Add parameter name. New comment for
3296 it. Use it for objfile->original_name.
3297 (objfile_name): Return OBFD's filename, if available.
3298 * objfiles.h (allocate_objfile): Add new parameter name.
3299 * solib.c (solib_read_symbols): Update symbol_file_add_from_bfd call.
3300 * symfile-mem.c (symbol_file_add_from_memory): Update
3301 symbol_file_add_from_bfd call.
3302 * symfile.c (read_symbols): Update symbol_file_add_separate call, new
3303 comment for it.
3304 (symbol_file_add_with_addrs): New parameter name, add function comment
3305 for it. Remove variable name. Update allocate_objfile call.
3306 (symbol_file_add_separate): New parameter name, add function comment
3307 for it. Update symbol_file_add_with_addrs call.
3308 (symbol_file_add_from_bfd): New parameter name. Update
3309 symbol_file_add_with_addrs call.
3310 (symbol_file_add): Update symbol_file_add_from_bfd call.
3311 (reread_symbols): New variable original_name. Save
3312 objfile->original_name by it.
3313 * symfile.h (symbol_file_add_from_bfd, symbol_file_add_separate): Add
3314 second parameter.
3315
3316 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3317
3318 Code cleanup: Add objfile_name accessor function.
3319 * ada-lang.c (is_known_support_routine): Use objfile_name.
3320 * auto-load.c (source_gdb_script_for_objfile)
3321 (auto_load_objfile_script): Likewise.
3322 * coffread.c (coff_symtab_read, read_one_sym): Likewise.
3323 * dbxread.c (dbx_symfile_read): Likewise.
3324 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
3325 * dwarf2loc.c (locexpr_describe_location_piece): Likewise.
3326 * dwarf2read.c (dwarf2_get_dwz_file, dwarf2_read_index)
3327 (dw2_symtab_iter_next, dw2_expand_symtabs_matching)
3328 (lookup_dwp_signatured_type, lookup_dwo_unit)
3329 (dwarf2_build_psymtabs_hard, scan_partial_symbols, process_queue)
3330 (fixup_go_packaging, process_imported_unit_die, dwarf2_physname)
3331 (read_import_statement, create_dwo_cu, open_and_init_dwp_file)
3332 (lookup_dwo_cutu, read_call_site_scope, dwarf2_ranges_read)
3333 (dwarf2_record_block_ranges, read_common_block, read_typedef)
3334 (read_subrange_type, load_partial_dies, read_partial_die)
3335 (read_addr_index_1, read_str_index, dwarf_decode_lines_1)
3336 (die_containing_type, build_error_marker_type, lookup_die_type)
3337 (follow_die_ref_or_sig, follow_die_ref, dwarf2_fetch_die_loc_sect_off)
3338 (dwarf2_fetch_constant_bytes, follow_die_sig, get_signatured_type)
3339 (get_DW_AT_signature_type, write_psymtabs_to_index)
3340 (save_gdb_index_command): Likewise.
3341 * elfread.c (find_separate_debug_file_by_buildid, elf_symfile_read):
3342 Likewise.
3343 * expprint.c (dump_subexp_body_standard): Likewise.
3344 * gdbtypes.c (type_name_no_tag_or_error): Likewise.
3345 * jit.c (jit_object_close_impl): Use the objfile field name renamed to
3346 original_name.
3347 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New variable
3348 obj_name, use objfile_name for it, use the variable.
3349 (try_thread_db_load_from_pdir, has_libpthread, thread_db_new_objfile):
3350 Use objfile_name.
3351 * machoread.c (macho_symtab_read, macho_check_dsym)
3352 (macho_symfile_relocate): Likewise.
3353 * maint.c (maintenance_translate_address): Likewise.
3354 * minidebug.c (find_separate_debug_file_in_section): Likewise.
3355 * minsyms.c (install_minimal_symbols): Likewise.
3356 * objfiles.c (allocate_objfile): Use the objfile field name renamed to
3357 original_name.
3358 (filter_overlapping_sections): Use objfile_name.
3359 (objfile_name): New function.
3360 * objfiles.h (struct objfile): Rename field name to original_name.
3361 (objfile_name): New prototype.
3362 * printcmd.c (sym_info, address_info): Use objfile_name.
3363 * probe.c (parse_probes, collect_probes, compare_probes)
3364 (info_probes_for_ops): Likewise.
3365 * progspace.c (clone_program_space): Likewise.
3366 * psymtab.c (require_partial_symbols, dump_psymtab, allocate_psymtab)
3367 (maintenance_info_psymtabs): Likewise.
3368 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
3369 (source_section_scripts): Likewise.
3370 * python/py-objfile.c (objfpy_get_filename): Likewise.
3371 * python/py-progspace.c (pspy_get_filename): Likewise.
3372 * solib-aix.c (solib_aix_get_toc_value): Likewise.
3373 * solib-som.c (match_main, som_solib_section_offsets): Likewise.
3374 * solib.c (solib_read_symbols): Likewise.
3375 * stabsread.c (scan_file_globals): Likewise.
3376 * stap-probe.c (handle_stap_probe): Likewise.
3377 * symfile.c (symbol_file_clear, separate_debug_file_exists)
3378 (find_separate_debug_file_by_debuglink): Likewise.
3379 (reread_symbols): Likewise. Use the objfile field name renamed to
3380 original_name.
3381 (allocate_symtab): Use objfile_name.
3382 * symmisc.c (print_symbol_bcache_statistics, print_objfile_statistics)
3383 (dump_objfile, dump_msymbols, dump_symtab_1)
3384 (maintenance_print_msymbols, maintenance_print_objfiles)
3385 (maintenance_info_symtabs, maintenance_check_symtabs): Likewise.
3386 * target.c (target_translate_tls_address, target_info): Likewise.
3387 * xcoffread.c (xcoff_initial_scan): Make variable name const. Use
3388 objfile_name.
3389
3390 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3391
3392 Code cleanup.
3393 * probe.c (parse_probes): Rename variable objfile_name to
3394 objfile_namestr.
3395
3396 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3397
3398 Remove solib-sunos.c.
3399 * Makefile.in (ALLDEPFILES): Remove solib-sunos.c.
3400 * config/m68k/obsd.mh (NATDEPFILES): Remove solib-sunos.o.
3401 * objfiles.c (rt_common_objfile): Remove.
3402 (free_objfile): Remove rt_common_objfile comparison.
3403 * objfiles.h (rt_common_objfile): Remove.
3404 * solib-sunos.c: Remove.
3405 * symfile.c (reread_symbols): Remove solib-sunos.c comment.
3406
3407 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3408
3409 Remove a.out NetBSD and OpenBSD hosts.
3410 * NEWS (Removed native configurations): New.
3411 * config/arm/nbsdaout.mh: Remove.
3412 * config/i386/nbsdaout.mh: Remove.
3413 * config/i386/obsdaout.mh: Remove.
3414 * config/m68k/nbsdaout.mh: Remove.
3415 * config/sparc/nbsdaout.mh: Remove.
3416 * config/vax/nbsdaout.mh: Remove.
3417 * configure.host (arm*-*-netbsd*, i[34567]86-*-netbsd*)
3418 (i[34567]86-*-openbsd[0-2].*, i[34567]86-*-openbsd3.[0-3])
3419 (m68*-*-netbsd*, sparc-*-netbsd*, vax-*-netbsd*): Add them to obsolete
3420 error.
3421 (arm*-*-netbsd*, i[34567]86-*-netbsd*, i[34567]86-*-openbsd[0-2].*)
3422 (i[34567]86-*-openbsd3.[0-3], m68*-*-netbsd*, sparc-*-netbsdaout*)
3423 (sparc-*-netbsd*, vax-*-netbsd*): Remove.
3424
3425 2013-09-23 Tom Tromey <tromey@redhat.com>
3426
3427 * linespec.c (struct minsym_and_objfile): Remove.
3428 (minsym_and_objfile_d): Remove.
3429 (struct linespec, struct collect_info, linespec_parse_basic)
3430 (convert_linespec_to_sals, linespec_parser_delete, decode_objc)
3431 (compare_msymbols, find_method, find_function_symbols)
3432 (find_linespec_symbols, struct collect_minsyms, compare_msyms)
3433 (add_minsym, search_minsyms_for_name): Update.
3434
3435 2013-09-23 Andrew Burgess <aburgess@broadcom.com>
3436
3437 * regcache.c: Add include of valprint.h.
3438 (dump_endian_bytes): Delete.
3439 (regcache_dump): Use print_hex_chars not dump_endian_bytes.
3440
3441 2013-09-23 Andrew Burgess <aburgess@broadcom.com>
3442
3443 * sh64-tdep.c (sh64_do_fp_register): Use print_hex_chars.
3444
3445 2013-09-19 Pedro Alves <palves@redhat.com>
3446
3447 * breakpoint.c (remove_threaded_breakpoints): Skip non-user
3448 breakpoints.
3449
3450 2013-09-19 Pedro Alves <palves@redhat.com>
3451 Thomas Schwinge <thomas@codesourcery.com>
3452 Yue Lu <hacklu.newborn@gmail.com>
3453
3454 * gnu-nat.c (gnu_read_inferior, gnu_write_inferior): Make static.
3455 Take a gdb_byte pointer instead of a char pointer.
3456
3457 * gnu-nat.c (gnu_xfer_memory): Adjust interface as
3458 gnu_xfer_partial helper.
3459 (gnu_xfer_partial): New function.
3460 (gnu_target): Don't install a deprecated_xfer_memory hook.
3461 Install a to_xfer_partial hook.
3462
3463 2013-09-19 Jan Kratochvil <jan.kratochvil@redhat.com>
3464
3465 Constification.
3466 * main.c (captured_main): Replace catch_command_errors by
3467 catch_command_errors_const. Twice.
3468 * symfile.c (symbol_file_add_main_1): Make args parameter const.
3469 (symbol_file_add): Make name parameter const.
3470 (symbol_file_add_main, symbol_file_add_main_1): Make args parameter const.
3471 (symfile_bfd_open): Make name parameter const, rename it to cname. Add
3472 variable name. Change their usage accordingly.
3473 * symfile.h (symbol_file_add, symfile_bfd_open): Make first parameter
3474 const.
3475 (symbol_file_add_main): Make args parameter const.
3476
3477 2013-09-18 Raunaq Bathija <raunaq12@in.ibm.com>
3478 Ulrich Weigand <uweigand@de.ibm.com>
3479
3480 * xcoffread.c (struct coff_symbol): Use CORE_ADDR as type
3481 of c_value member.
3482 (read_xcoff_symtab): Use CORE_ADDR as type of fcn_start_addr.
3483
3484 2013-09-18 Pedro Alves <palves@redhat.com>
3485 Yue Lu <hacklu.newborn@gmail.com>
3486
3487 * gnu-nat.c (inf_validate_procs, gnu_wait, gnu_resume)
3488 (gnu_create_inferior)
3489 (gnu_attach, gnu_thread_alive, gnu_pid_to_str, cur_thread)
3490 (set_sig_thread_cmd): Use the lwpid field of ptids to
3491 store/extract thread ids instead of the tid field.
3492 * i386gnu-nat.c (gnu_fetch_registers): Adjust.
3493
3494 2013-09-18 Andrew Burgess <aburgess@broadcom.com>
3495
3496 * infcmd.c (default_print_one_register_info): Add detection of
3497 optimized out values.
3498 (default_print_registers_info): Switch to using
3499 get_frame_register_value.
3500
3501 2013-09-18 Markus Metzger <markus.t.metzger@intel.com>
3502
3503 * infrun.c (handle_inferior_event): Check if we know the
3504 function start address before setting a resume breakpoint.
3505
3506 2013-09-18 Pedro Alves <palves@redhat.com>
3507
3508 * gnu-nat.c (set_sig_thread_cmd): Compare the thread's ptid to
3509 minus_one_ptid instead of looking at the ptid's tid field and
3510 comparing that to -1.
3511
3512 2013-09-18 Andrew Burgess <aburgess@broadcom.com>
3513
3514 * main.h (get_gdb_program_name): Remove extra whitespace.
3515
3516 2013-09-18 Andrew Burgess <aburgess@broadcom.com>
3517
3518 * main.h (get_gdb_program_name): Add declaration.
3519 * main.c (get_gdb_program_name): Add definition.
3520
3521 2013-09-17 Doug Evans <dje@google.com>
3522
3523 * dwarf2read.c: Move definitions of complaint functions to after
3524 forward declarations of local functions.
3525
3526 2013-09-17 Muhammad Waqas <mwaqas@codesourcery.com>
3527 Pedro Alves <palves@redhat.com>
3528
3529 PR gdb/11568
3530 * breakpoint.c (remove_threaded_breakpoints): New function.
3531 (_initialize_breakpoint): Attach remove_threaded_breakpoints
3532 as thread_exit observer.
3533
3534 2013-09-17 Pedro Alves <palves@redhat.com>
3535
3536 PR gdb/15911
3537 * ada-tasks.c (task_command_1): Adjust call to print_stack_frame.
3538 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd):
3539 * corelow.c (core_open):
3540 * frame.h (print_stack_frame, print_frame_info): New
3541 'set_current_sal' parameter.
3542 * infcmd.c (finish_command, kill_command): Adjust call to
3543 print_stack_frame.
3544 * inferior.c (inferior_command): Likewise.
3545 * infrun.c (normal_stop): Likewise.
3546 * linux-fork.c (linux_fork_context): Likewise.
3547 * record-full.c (record_full_goto_entry, record_full_restore):
3548 Likewise.
3549 * remote-mips.c (common_open): Likewise.
3550 * stack.c (print_stack_frame): New 'set_current_sal' parameter.
3551 Use it.
3552 (print_frame_info): New 'set_current_sal' parameter. Set the last
3553 displayed sal depending on the new paremeter instead of looking at
3554 print_what.
3555 (backtrace_command_1, select_and_print_frame, frame_command)
3556 (current_frame_command, up_command, down_command): Adjust call to
3557 print_stack_frame.
3558 * thread.c (print_thread_info, restore_selected_frame)
3559 (do_captured_thread_select): Adjust call to print_stack_frame.
3560 * tracepoint.c (tfind_1): Likewise.
3561 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
3562 (mi_cmd_stack_info_frame): Likewise.
3563 * mi/mi-interp.c (mi_on_normal_stop): Likewise.
3564 * mi/mi-main.c (mi_cmd_exec_return, mi_cmd_trace_find): Likewise.
3565
3566 2013-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
3567
3568 * value.c (isvoid_internal_fn): Replace "parameter" with
3569 "argument".
3570
3571 2013-09-16 Stan Shebs <stan@codesourcery.com>
3572
3573 * README: Update references to writing code for GDB.
3574 * configure.ac (build_warnings): Remove obsolete comment.
3575 * configure: Regenerate.
3576 * gdbarch.sh: Remove references to gdbint.texinfo.
3577 * gdbarch.h: Regenerate.
3578 * gdbtypes.c (objfile_type): Remove comments referencing internals
3579 manual and D10V.
3580
3581 2013-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
3582
3583 * NEWS: Mention new convenience function $_isvoid.
3584 * value.c (isvoid_internal_fn): New function.
3585 (_initialize_values): Add new convenience function $_isvoid.
3586
3587 2013-09-16 Pierre Muller <muller@sourceware.org>
3588
3589 * arm-linux-tdep.c: Add "elf/common.h" header.
3590 Remove AT_HWCAP macro definintion as it is provided in
3591 added include file.
3592 * s390-tdep.c: Remove system header <elf.h>
3593 Add "elf/common.h" header for AT_HWCAP definition.
3594 (s390_core_read_description): Use correct CORE_ADDR
3595 for hwcap local variable used as third parameter
3596 of function target_auxv_search.
3597
3598 2013-09-14 Pierre Muller <muller@sourceware.org>
3599 Tom Tromey <tromey@redhat.com>
3600 Pedro Alves <palves@redhat.com>
3601
3602 * common/filestuff.c (gdb_fopen_cloexec): Do not try to use "e"
3603 mode if operating system doesn't know O_CLOEXEC.
3604
3605 2013-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3606
3607 Code cleanup.
3608 * symfile.c (reread_symbols): Move variable obfd_filename to a more
3609 inner block.
3610
3611 2013-09-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
3612
3613 * NEWS: Mention TDB support.
3614 * features/s390-tdb.xml: New file.
3615 * features/s390-te-linux64.xml: New file.
3616 * features/s390x-te-linux64.xml: New file.
3617 * features/Makefile (WHICH): Add new tdescs above.
3618 (s390-te-linux64-expedite): Set.
3619 (s390x-te-linux64-expedite): Set.
3620 * features/s390-te-linux64.c: New file (generated).
3621 * features/s390x-te-linux64.c: New file (generated).
3622 * regformats/s390-te-linux64.dat: New file (generated).
3623 * regformats/s390x-te-linux64.dat: New file (generated).
3624 * s390-tdep.h (HWCAP_S390_HIGH_GPRS): Define.
3625 (HWCAP_S390_TE): Likewise.
3626 (S390_TDB_DWORD0_REGNUM): Likewise.
3627 (S390_TDB_DWORD0_REGNUM): Likewise.
3628 (S390_TDB_ABORT_CODE_REGNUM): Likewise.
3629 (S390_TDB_CONFLICT_TOKEN_REGNUM): Likewise.
3630 (S390_TDB_ATIA_REGNUM): Likewise.
3631 (S390_TDB_R0_REGNUM): Likewise.
3632 (S390_TDB_R1_REGNUM): Likewise.
3633 (S390_TDB_R2_REGNUM): Likewise.
3634 (S390_TDB_R3_REGNUM): Likewise.
3635 (S390_TDB_R4_REGNUM): Likewise.
3636 (S390_TDB_R5_REGNUM): Likewise.
3637 (S390_TDB_R6_REGNUM): Likewise.
3638 (S390_TDB_R7_REGNUM): Likewise.
3639 (S390_TDB_R8_REGNUM): Likewise.
3640 (S390_TDB_R9_REGNUM): Likewise.
3641 (S390_TDB_R10_REGNUM): Likewise.
3642 (S390_TDB_R11_REGNUM): Likewise.
3643 (S390_TDB_R12_REGNUM): Likewise.
3644 (S390_TDB_R13_REGNUM): Likewise.
3645 (S390_TDB_R14_REGNUM): Likewise.
3646 (S390_TDB_R15_REGNUM): Likewise.
3647 (S390_NUM_REGS): Increase.
3648 (S390_IS_TDBREGSET_REGNUM): New macro.
3649 (s390_regmap_tdb): Declare.
3650 (s390_sizeof_tdbregset): Define.
3651 (tdesc_s390_te_linux64): Declare.
3652 (tdesc_s390x_te_linux64): Likewise.
3653 * s390-tdep.c: Add includes for "auxv.h", <elf.h>,
3654 "features/s390-te-linux64.c", and "features/s390x-te-linux64.c".
3655 (s390_regmap_tdb): New regmap.
3656 (s390_supply_tdb_regset): New function.
3657 (s390_tdb_regset): New regset.
3658 (s390_linux64v2_regset_sections): Add TDB regset to list.
3659 (s390x_linux64v2_regset_sections): Likewise.
3660 (s390_regset_from_core_section): Recognize TDB core note section.
3661 (s390_core_read_description): If HWCAP indicates TE support,
3662 select tdesc_s390_te_linux64 or tdesc_s390_s390x_te_linux64.
3663 (s390_gdbarch_init): Handle TDB regset.
3664 (_initialize_s390_tdep): Initialize new tdescs.
3665 * s390-nat.c (HWCAP_S390_HIGH_GPRS): Remove define.
3666 (have_regset_tdb): New variable.
3667 (s390_native_supply): Support register invalidation.
3668 (fetch_regset): Invalidate registers if ptrace yields ENODATA.
3669 (check_regset): Treat ENODATA as "regset exists".
3670 (s390_linux_fetch_inferior_registers): Add TDB.
3671 (s390_read_description): Check for TDB existence and select
3672 appropriate tdesc.
3673 * gdbserver/Makefile.in (clean): Add removal of new makefile
3674 targets.
3675 (s390-te-linux64.c): New makefile target.
3676 (s390x-te-linux64.c): Likewise.
3677 * gdbserver/configure.srv (srv_regobj): Append new objects
3678 s390-te-linux64.o and s390x-te-linux64.o.
3679 (srv_xmlfiles): Append new files s390-te-linux64.xml,
3680 s390x-te-linux64.xml, and s390-tdb.xml.
3681 * gdbserver/linux-s390-low.c (init_registers_s390_te_linux64): New
3682 declaration.
3683 (tdesc_s390_te_linux64): Likewise.
3684 (init_registers_s390x_te_linux64): Likewise.
3685 (tdesc_s390x_te_linux64): Likewise.
3686 (s390_check_regset): Treat ENODATA as "regset exists".
3687 (s390_arch_setup): Add TDB regset support.
3688 (initialize_low_arch): Initialize registers for new tdescs.
3689
3690 2013-09-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
3691
3692 * s390-tdep.h (S390_IS_GREGSET_REGNUM): New macro.
3693 (S390_IS_FPREGSET_REGNUM): New macro.
3694 * s390-tdep.c (s390_dwarf_regmap): Make const.
3695 (regnum_is_gpr_full): New function for replacing repeated code.
3696 (s390_pseudo_register_name): Use it.
3697 (s390_pseudo_register_type): Likewise.
3698 (s390_pseudo_register_read): Likewise.
3699 (s390_pseudo_register_write): Likewise.
3700 (s390_unwind_pseudo_register): Likewise.
3701 (s390_regmap_gregset): New format for regmap.
3702 (s390x_regmap_gregset): Likewise.
3703 (s390_regmap_fpregset): Likewise.
3704 (s390_regmap_upper): Likewise.
3705 (s390_regmap_last_break): Likewise.
3706 (s390_regmap_system_call): Likewise.
3707 (s390_supply_regset): Adjust to new regmap format.
3708 (s390_collect_regset): Likewise.
3709 * s390-nat.c (s390_native_supply): Adjust to new regmap format.
3710 (s390_native_collect): Likewise.
3711 (supply_gregset): Likewise.
3712 (fill_gregset): Likewise.
3713 (supply_fpregset): Likewise.
3714 (fill_fpregset): Likewise.
3715 (fetch_regset): Likewise.
3716 (store_regset): Likewise.
3717 (s390_linux_fetch_inferior_registers): Likewise.
3718 (s390_linux_fetch_inferior_registers): Likewise.
3719
3720 2013-09-12 Andrew Pinski <apinski@cavium.com>
3721
3722 * aarch64-linux-nat.c (aarch64_linux_set_debug_regs): Zero out regs.
3723
3724 2013-09-10 Andreas Arnez <arnez@linux.vnet.ibm.com>
3725
3726 * config/s390/s390.mh (NATDEPFILES): Add linux-waitpid.o.
3727
3728 2013-09-09 Andrew Burgess <aburgess@broadcom.com>
3729
3730 * top.c (quit_confirm): Remove use of deprecated_init_ui_hook.
3731
3732 2013-09-06 Pedro Alves <palves@redhat.com>
3733
3734 * remote-sim.c (dump_mem, gdbsim_fetch_register)
3735 (gdbsim_store_register, gdbsim_kill, gdbsim_load)
3736 (gdbsim_create_inferior, gdbsim_open, gdbsim_close)
3737 (gdbsim_detach, gdbsim_resume_inferior, gdbsim_wait)
3738 (gdbsim_files_info, gdbsim_mourn_inferior): Send debug output to
3739 gdb_stdlog.
3740
3741 2013-09-06 Pedro Alves <palves@redhat.com>
3742
3743 * remote-sim.c (dump_mem): Constify buf parameter.
3744 gdbsim_xfer_inferior_memory): Rename to ...
3745 (gdbsim_xfer_memory): ... this. Adjust interface as
3746 target_xfer_partial helper.
3747 (gdbsim_xfer_partial): New function.
3748 (init_gdbsim_ops): Don't install a deprecated_xfer_memory hook.
3749 Install a to_xfer_partial hook. Send output to gdb_stdlog.
3750
3751 2013-09-06 Pedro Alves <palves@redhat.com>
3752
3753 * remote-sim.c (gdbsim_xfer_inferior_memory): Use
3754 host_address_to_string, and send debug output to gdb_stdlog.
3755
3756 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
3757
3758 * Makefile.in (ALL_TARGET_OBS): Add cris-linux-tdep.o.
3759 * configure.tgt: Add cris-linux-tdep.o and linux-tdep.o to
3760 gdb_target_obs for cris target.
3761 * cris-tdep.c (struct gdbarch_tdep): Move to cris-tdep.h.
3762 (cris_gdbarch_init): Move calls to
3763 set_gdbarch_fetch_tls_load_module_address and
3764 set_solib_svr4_fetch_link_map_offsets to cris-linux-tdep.c.
3765 Add call to gdbarch_init_osabi.
3766 * cris-linux-tdep.c: New file.
3767 * cris-tdep.h: New file.
3768
3769 2013-09-06 Andrew Burgess <aburgess@broadcom.com>
3770
3771 * tui/tui-io.c (tui_initialize_io): Remove legacy comment referring
3772 to deprecated_init_ui_hook.
3773
3774 2013-09-06 Andrew Burgess <aburgess@broadcom.com>
3775
3776 * cli/cli-interp.c (_initialize_cli_interp): Add a
3777 command_loop_proc to interp_procs.
3778 * event-top.c (cli_command_loop): Change signature to match
3779 interp_command_loop_ftype.
3780 * event-top.h (cli_command_loop): Same.
3781 * interps.c (interp_new): Require every interpreter to have a
3782 command_loop_proc.
3783 (current_interp_command_loop): Just call the command_loop_proc on
3784 the current interpreter.
3785 * tui/tui-interp.c (_initialize_tui_interp): Add a
3786 command_loop_proc to interp_procs.
3787
3788 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
3789
3790 * cris-tdep.c (cris_gdbarch_init): Add call to
3791 get_gdbarch_fetch_tls_load_module_address.
3792
3793 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
3794
3795 * cris-tdep.c (cris_elf_greg_t): Rename from elf_greg_t.
3796 (cris_elf_gregset_t): Rename from elf_gregset_t.
3797 (crisv32_elf_gregset_t): Adjust.
3798 (cris_supply_gregset, fetch_core_registers): Adjust.
3799
3800 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
3801
3802 * cris-tdep.c (elf_greg_t): Change typedef to unsigned char[4]
3803
3804 2013-09-05 Andrew Burgess <aburgess@broadcom.com>
3805
3806 * defs.h (deprecated_command_loop_hook): Remove, including
3807 references in comments.
3808 * interps.c (current_interp_command_loop): No longer use
3809 deprecated_command_loop_hook.
3810 (clear_interpreter_hooks): Remove deprecated_command_loop_hook
3811 setup.
3812 * top.c (deprecated_command_loop_hook): Remove.
3813
3814 2013-09-05 Pedro Alves <palves@redhat.com>
3815
3816 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): 'dwarf_regnum'
3817 local is now int instead of ULONGEST. Print it with %d
3818 instead of paddress.
3819
3820 2013-09-05 Tristan Gingold <gingold@adacore.com>
3821
3822 * MAINTAINERS: Remove avr maintainership.
3823
3824 2013-09-05 Pedro Alves <palves@redhat.com>
3825
3826 * findvar.c (value_of_register): Rework in terms of
3827 value_of_register_lazy.
3828
3829 2013-09-05 Muhammad Bilal <mbilal@codesourcery.com>
3830
3831 * symfile.c (add_symbol_file_command): Remove trailing
3832 whitespaces and blank line after comment.
3833
3834 2013-09-05 Pedro Alves <palves@redhat.com>
3835
3836 * tui/tui-regs.c (tui_register_format): Don't look at the
3837 register's name here. Return string representing register
3838 value instead of storing it in the data element.
3839 (tui_get_register): Compare register string representations
3840 instead of register value states and contents.
3841
3842 2013-09-05 Pedro Alves <palves@redhat.com>
3843
3844 PR tui/15933
3845 * tui/tui-regs.c (tui_show_registers): Show registers of the
3846 selected frame, not the current frame.
3847
3848 2013-09-05 Ricard Wanderlof <ricardw@axis.com>
3849
3850 * MAINTAINERS (Write After Approval): Add myself to the list.
3851
3852 2013-09-04 Doug Evans <dje@google.com>
3853
3854 * dwarf2read.c (queue_and_load_all_dwo_tus): New function.
3855 (queue_and_load_dwo_tu): New function.
3856 (lookup_dwo_signatured_type): Set per_cu.tu_read.
3857 (maybe_queue_comp_unit): Rename this_cu argument to dependent_cu.
3858 Make dependent_cu optional.
3859 (dw2_do_instantiate_symtab): If we just loaded a CU from a DWO,
3860 and an older .gdb_index is in use, queue and load all its TUs too.
3861
3862 2013-09-04 Jan Kratochvil <jan.kratochvil@redhat.com>
3863
3864 Code cleanup: Change OPF_DISABLE_REALPATH to OPF_RETURN_REALPATH.
3865 * cli/cli-cmds.c (find_and_open_script): Add OPF_RETURN_REALPATH to
3866 variable search_flags.
3867 * defs.h (OPF_DISABLE_REALPATH): Rename to ...
3868 (OPF_RETURN_REALPATH): ... here.
3869 * dwarf2read.c (try_open_dwop_file): Set OPF_RETURN_REALPATH for flags.
3870 * exec.c (exec_file_attach): Remove OPF_DISABLE_REALPATH from openp
3871 call. Twice.
3872 * nto-tdep.c (nto_find_and_open_solib): Add OPF_RETURN_REALPATH for
3873 openp call.
3874 * solib.c (solib_find): Likewise. Four times.
3875 * source.c (openp): Change OPF_DISABLE_REALPATH to OPF_RETURN_REALPATH
3876 in the function comment and for the realpath_fptr variable.
3877 (source_full_path_of): Add OPF_RETURN_REALPATH for openp call.
3878 (find_and_open_source): Likewise. Twice.
3879 * symfile.c (symfile_bfd_open): Likewise, also twice.
3880
3881 2013-09-04 Doug Evans <dje@google.com>
3882
3883 * progspace.c (save_current_space_and_thread): Remove unnecessary
3884 call to save_current_inferior.
3885
3886 2013-09-04 Andrew Burgess <aburgess@broadcom.com>
3887
3888 * sh64-tdep.c (sh64_do_register): Return after printing message
3889 about unavailable register contents.
3890
3891 2013-09-04 Muhammad Bilal <mbilal@codesourcery.com>
3892 Pedro Alves <palves@redhat.com>
3893
3894 * symfile.c (add_symbol_file_command): Error out on unknown
3895 option. Handle EXPECTING_SEC_ADDR/EXPECTING_SEC_NAME before '-'
3896 options and collapse into single conditional branch.
3897
3898 2013-09-03 Luis Machado <lgustavo@codesourcery.com>
3899
3900 * inf-child.c (inf_child_follow_fork): New parameter
3901 detach_fork.
3902 * inf-ptrace.c (inf_ptrace_follow_fork): Likewise.
3903 * inf-ttrace.c (inf_ttrace_follow_fork): Likewise.
3904 * inferior.h (detach_fork): Remove.
3905 * infrun.c (detach_fork): Adjust comment and make it
3906 static.
3907 (follow_fork): Pass detach_fork parameter to
3908 target_follow_fork.
3909 * linux-nat.c (linux_child_follow_fork): New parameter
3910 detach_fork.
3911 * target.c (target_follow_fork): New parameter detach_fork.
3912 Pass detach_fork as parameter and print its value.
3913 * target.h (struct target_ops) <to_follow_fork>: New int
3914 parameter.
3915 (target_follow_fork): New parameter detach_fork.
3916
3917 2013-09-03 Joel Brobecker <brobecker@adacore.com>
3918
3919 * solib-ia64-hpux.c (ia64_hpux_relocate_section_addresses):
3920 Replace sec->bfd by sec->the_bfd_section->owner.
3921
3922 2013-09-03 Yao Qi <yao@codesourcery.com>
3923
3924 * linux-tdep.c (linux_is_uclinux): New function. Code moved
3925 from linux_has_shared_address_space.
3926 (linux_has_shared_address_space): Call linux_is_uclinux.
3927 * linux-tdep.h (linux_is_uclinux): Declare.
3928 * m68klinux-tdep.c (m68k_linux_get_sigtramp_info): Call
3929 linux_is_uclinux.
3930
3931 2013-09-03 Yao Qi <yao@codesourcery.com>
3932
3933 * config/djgpp/fnchange.lst: Remove entry of
3934 i386-interix-nat.c and i386-interix-tdep.c.
3935 * configure.ac: Remove '*-*-interix*'.
3936 * configure: Re-generated.
3937 * defs.h (enum gdb_osabi): Remove GDB_OSABI_INTERIX.
3938 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Remove
3939 obsolete comments.
3940 * osabi.c (gdb_osabi_names): Remove "Interix".
3941
3942 2013-09-03 Yao Qi <yao@codesourcery.com>
3943
3944 * arch-utils.c: Fix typo in the comment to gdbarch_update_p.
3945
3946 2013-09-02 Markus Metzger <markus.t.metzger@intel.com>
3947
3948 * record.h (record_print_flag) <record_print_src_line,
3949 record_print_insn_range>: Rename into ...
3950 (record_print_flag) <record_print_src_line,
3951 record_print_insn_range>: ... this. Update all users.
3952
3953 2013-09-02 Pierre Muller <muller@sourceware.org>
3954
3955 * windows-nat.c (windows_xfer_memory): Handle ERROR_PARTIAL_COPY
3956 error code.
3957
3958 2013-09-02 Pierre Muller <muller@sourceware.org>
3959
3960 * windows-nat.c (windows_xfer_memory): Fix compilation failure
3961 by use of plongest function.
3962
3963 2013-09-02 Tristan Gingold <gingold@adacore.com>
3964
3965 * NEWS: Add entry mentioning support for native Windows x64
3966 SEH data.
3967
3968 * amd64-windows-tdep.c: #include "objfiles.h", "frame-unwind.h",
3969 "coff/internal.h", "coff/i386.h", "coff/pe.h" and "libcoff.h".
3970 (struct amd64_windows_frame_cache): New struct.
3971 (amd64_windows_w2gdb_regnum): New global.
3972 (pc_in_range, amd64_windows_frame_decode_epilogue)
3973 (amd64_windows_frame_decode_insns, amd64_windows_find_unwind_info)
3974 (amd64_windows_frame_cache, amd64_windows_frame_prev_register)
3975 (amd64_windows_frame_this_id): New functions.
3976 (amd64_windows_frame_unwind): New static global.
3977 (amd64_windows_skip_prologue): New function.
3978 (amd64_windows_init_abi): Call frame_unwind_prepend_unwinder
3979 with amd64_windows_frame_unwind. Call set_gdbarch_skip_prologue
3980 with amd64_windows_skip_prologue.
3981
3982 2013-08-30 Joel Brobecker <brobecker@adacore.com>
3983
3984 GDB 7.6.1 released.
3985
3986 2013-08-30 Pedro Alves <palves@redhat.com>
3987
3988 * mi/mi-main.c (mi_cmd_trace_find): Use LOC_AND_ADDRESS instead of
3989 SRC_AND_LOC.
3990
3991 2013-08-30 Pedro Alves <palves@redhat.com>
3992
3993 * thread.c (restore_selected_frame): Use SRC_AND_LOC, and change
3994 warning text.
3995
3996 2013-08-30 Pedro Alves <palves@redhat.com>
3997
3998 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd):
3999 Adjust arguments to print_stack_frame.
4000
4001 2013-08-30 Pedro Alves <palves@redhat.com>
4002
4003 * ada-tasks.c (task_command_1): Write SRC_AND_LOC instead '1'.
4004
4005 2013-08-30 Pedro Alves <palves@redhat.com>
4006
4007 * frame.h (show_and_print_stack_frame): Delete declaration.
4008
4009 2013-08-30 Phil Muldoon <pmuldoon@redhat.com>
4010
4011 PR python/15461
4012 * python/py-arch.c (ARCHPY_REQUIRE_VALID): New macro.
4013 (archpy_name): Check for valid architecture.
4014 (archpy_disassemble): Ditto.
4015
4016 2013-08-29 Joel Brobecker <brobecker@adacore.com>
4017
4018 * rs6000-nat.c (rs6000_ptrace32): Cast "addr" to "uintptr_t"
4019 instead of "long long" in call to ptrace64.
4020
4021 2013-08-29 Andrew Burgess <aburgess@broadcom.com>
4022
4023 * mi/mi-interp.c (mi_command_loop): Change signature to match
4024 interp_command_loop_ftype.
4025 (mi1_command_loop): Remove.
4026 (mi2_command_loop): Remove.
4027 (mi3_command_loop): Remove.
4028 (mi_interpreter_resume): Remove setting of
4029 deprecated_command_loop_hook.
4030 (_initialize_mi_interp): Set mi_command_loop as the command loop
4031 callback.
4032
4033 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
4034
4035 * valops.c (do_search_struct_field): Pass v2 instead of base_type to
4036 value_type.
4037
4038 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
4039
4040 * value.c (allocate_value_contents): Make static.
4041 * value.h (allocate_value_contents): Remove prototype.
4042
4043 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
4044
4045 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use value_at_lazy instead
4046 of assembling value via allocate_value_lazy and attribute setter.
4047 * findvar.c (default_read_var_value): Use value_at_lazy instead of
4048 assembling value via allocate_value_lazy and attribute setter.
4049 * valops.c (do_search_struct_field): Use value_at_lazy instead of
4050 assembling value via allocate_value_lazy and attribute setter.
4051
4052 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
4053
4054 * value.c (value_from_contents_and_address): Replace allocate_value and
4055 memcpy with value_from_contents.
4056
4057 2013-08-29 Phil Muldoon <pmuldoon@redhat.com>
4058
4059 * python/py-framefilter.c (py_print_frame): Remove usage of
4060 PyString_AsString. Use python_string_to_host_string instead.
4061 Refactor function to work with a string as a new allocation
4062 instead of a pointer.
4063 (py_print_frame): Ditto.
4064 * python/lib/gdb/frames.py (return_list): Cain iterators together
4065 instead of adding them as a list.
4066 (_sort_list): Call return_list, and remove duplicate code.
4067 (execute_frame_filters): Convert iterator to a list with list().
4068 * python/lib/gdb/command/frame_filters.py
4069 (SetFrameFilterPriority._set_filter_priority): Convert priority
4070 attribute to an integer.
4071 * python/lib/gdb/FrameIterator.py (FrameIterator.next): Define
4072 wrapper function __next__.
4073 * python/lib/gdb/FrameDecorator.py: If basestring not defined,
4074 define as "str".
4075
4076 2013-08-29 Phil Muldoon <pmuldoon@redhat.com>
4077
4078 PR python/15752
4079 * python/py-framefilter.c (apply_frame_filter): Check
4080 gdb_python_initialized. Exit if the Python frame-filter code
4081 cannot be initialized.
4082
4083 2013-08-29 Phil Muldoon <pmuldoon@redhat.com>
4084
4085 PR cli/15842
4086 * top.c (print_gdb_version): Remove erroneous newline after help
4087 text.
4088
4089 2013-08-29 Yao Qi <yao@codesourcery.com>
4090
4091 * varobj.c (install_dynamic_child): Remove trailing space.
4092 Add one blank line after variable declaration.
4093
4094 2013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4095
4096 PR gdb/15415
4097 * corefile.c (get_exec_file): Use exec_filename.
4098 * defs.h (OPF_DISABLE_REALPATH): New definition. Add new comment.
4099 * exec.c (exec_close): Free EXEC_FILENAME.
4100 (exec_file_attach): New variable canonical_pathname. Use
4101 OPF_DISABLE_REALPATH. Call gdb_realpath explicitly. Set
4102 EXEC_FILENAME.
4103 * exec.h (exec_filename): New.
4104 * inferior.c (print_inferior, inferior_command): Use
4105 PSPACE_EXEC_FILENAME.
4106 * mi/mi-main.c (print_one_inferior): Likewise.
4107 * progspace.c (clone_program_space, print_program_space): Likewise.
4108 * progspace.h (struct program_space): New field pspace_exec_filename.
4109 * source.c (openp): Describe OPF_DISABLE_REALPATH. New variable
4110 realpath_fptr, initialize it from OPF_DISABLE_REALPATH, use it.
4111
4112 2013-08-28 Will Newton <will.newton@linaro.org>
4113
4114 * common/linux-ptrace.c: Include stdint.h unconditionally.
4115
4116 2013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4117
4118 Code cleanup.
4119 * nto-tdep.c (nto_find_and_open_solib): Use OPF_TRY_CWD_FIRST.
4120
4121 2013-08-28 Yao Qi <yao@codesourcery.com>
4122 Pedro Alves <palves@redhat.com>
4123
4124 * event-top.c (gdb_setup_readline): Call stderr_fileopen
4125 instead of stdio_fileopen.
4126 * main.c (captured_main) [__MINGW32__]: Set stderr unbuffered.
4127 .Call stderr_fileopen instead of stdio_fileopen.
4128 * ui-file.c [__MINGW32__] (stderr_file_write): New function.
4129 [__MINGW32__] (stderr_file_fputs): New function.
4130 (stderr_fileopen): New function.
4131 * ui-file.h (stderr_fileopen): Declare.
4132
4133 2013-08-27 Doug Evans <dje@google.com>
4134
4135 * dwarf2read.c (struct dwarf2_cu): Tweak comment.
4136 (struct dwarf2_per_cu_data): Ditto.
4137 (maybe_queue_comp_unit): Delete forward decl. Add comment.
4138 (process_imported_unit_die): Ditto.
4139 (follow_die_sig_1): Simplify assert.
4140
4141 2013-08-27 Pedro Alves <palves@redhat.com>
4142
4143 * windows-nat.c (windows_xfer_memory): Adjust prototype to follow
4144 xfer_partial's interface. Return TARGET_XFER_E_IO on error.
4145 (windows_xfer_partial): Defer TARGET_OBJECT_MEMORY handling to
4146 windows_xfer_memory directly.
4147 (init_windows_ops): Don't install a deprecated_xfer_memory method.
4148
4149 2013-08-27 Pedro Alves <palves@redhat.com>
4150
4151 * darwin-nat.c (darwin_xfer_memory): Delete.
4152 (_initialize_darwin_inferior): Don't install a
4153 deprecated_xfer_memory method.
4154
4155 2013-08-27 Pedro Alves <pedro@codesourcery.com>
4156 Yao Qi <yao@codesourcery.com>
4157
4158 * mi/mi-cmd-stack.c (list_args_or_locals): Adjust prototype.
4159 (parse_no_frames_option): Remove.
4160 (mi_cmd_stack_list_locals): Handle --skip-unavailable.
4161 (mi_cmd_stack_list_args): Adjust.
4162 (mi_cmd_stack_list_variables): Handle --skip-unavailable.
4163 (list_arg_or_local): Add new parameter 'skip_unavailable'. Return
4164 early if SKIP_UNAVAILABLE is true and ARG->val is unavailable.
4165 Caller update.
4166 (list_args_or_locals): New parameter 'skip_unavailable'.
4167 Handle it.
4168 * valprint.c (scalar_type_p): Rename to ...
4169 (val_print_scalar_type_p): ... this. Make extern.
4170 (val_print, value_check_printable): Adjust.
4171 * valprint.h (val_print_scalar_type_p): Declare.
4172 * value.c (value_entirely_unavailable): New function.
4173 * value.h (value_entirely_unavailable): Declare.
4174
4175 * NEWS: Mention the new option "--skip-unavailable" to MI
4176 commands '-stack-list-locals', '-stack-list-arguments' and
4177 '-stack-list-variables'.
4178
4179 2013-08-27 Yao Qi <yao@codesourcery.com>
4180
4181 * mi/mi-cmd-stack.c (parse_no_frames_option): Remove.
4182 (mi_cmd_stack_list_args): Use mi_getopt_silent to handle
4183 options.
4184 * mi/mi-getopt.c (mi_getopt): Remove.
4185 (mi_getopt_1): Renamed from mi_getopt. Add one parameter
4186 'error_on_unknown'.
4187 (mi_getopt): Call mi_getopt_1.
4188 (mi_getopt_silent): New.
4189 * mi/mi-getopt.h (mi_getopt_silent): Declare.
4190
4191 2013-08-26 Doug Evans <dje@google.com>
4192
4193 PR symtab/15885
4194 * dwarf2read.c (dw2_dump): Print some minimal information indicating
4195 .gdb_index is in use.
4196 * symfile.c (reread_symbols): Reset objfile->sf.
4197
4198 * NEWS: Document "mt print objfiles" now takes optional regexp.
4199 * symmisc.c (maintenance_print_objfiles): Argument is now an optional
4200 regexp of objfiles to print.
4201 (_initialize_symmisc): Update doc string for "mt print objfiles".
4202
4203 * dwarf2read.c (write_psymtabs_to_index): Move error checks ahead of
4204 missing debug info checks.
4205
4206 2013-08-26 Raunaq Bathija <raunaq12@in.ibm.com>
4207 Ulrich Weigand <uweigand@de.ibm.com>
4208
4209 * xcoffread.c (arrange_linetable): Add fix to correctly handle
4210 line tables generated by XLC compiled binaries.
4211
4212 2013-08-23 Doug Evans <dje@google.com>
4213
4214 * symmisc.c (dump_symtab): Delete prototype.
4215 (dump_msymbols, dump_objfile): Ditto.
4216 (maintenance_info_symtabs): Mark as dont_repeat.
4217 (_initialize_symmisc): Improve doc string for "mt info symtabs".
4218
4219 * elfread.c (elf_symfile_read): Move "Done reading minimal symbols"
4220 debugging printf to better location.
4221
4222 2013-08-23 Pedro Alves <palves@redhat.com>
4223
4224 * target.c (target_read_live_memory): Change type of 'ret' local
4225 to LONGEST.
4226
4227 2013-08-23 Pedro Alves <palves@redhat.com>
4228
4229 * remote.c (remote_write_bytes_aux, remote_write_bytes)
4230 (remote_read_bytes): Change return type to LONGEST, and adjust to
4231 return a target_xfer_error on error.
4232 (remote_xfer_memory): Delete.
4233 (remote_flash_write): Change type of 'ret' local to LONGEST.
4234 (remote_xfer_partial, remote_xfer_partial): Adjust.
4235 (init_remote_ops): Don't install a deprecated_xfer_memory hook.
4236
4237 2013-08-23 Pierre Muller <muller@sourceware.org>
4238
4239 ARI fix: Push # directives to start of line.
4240 * rs6000-nat.c (rs6000_ptrace32, rs6000_ptrace64): Rule applied.
4241
4242 2013-08-12 Muhammad Waqas <mwaqas@codesourcery.com>
4243
4244 PR gdb/15501
4245 * breakpoint.c (enable_command, disable_command): Iterate over
4246 all specified breakpoint locations.
4247
4248 2013-08-22 Luis Machado <lgustavo@codesourcery.com>
4249
4250 * common/linux-ptrace.c (linux_fork_to_function): Push #
4251 directives to the start of the line.
4252 (linux_check_ptrace_features): Fix warning message to use
4253 the "_" markup.
4254
4255 2013-08-22 Luis Machado <lgustavo@codesourcery.com>
4256
4257 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-nat.h and
4258 nat/linux-waitpid.h.
4259 (linux-waitpid.o): New object file rule.
4260 * common/linux-ptrace.c: Include nat/linux-waitpid.h.
4261 (current_ptrace_options): Moved from linux-nat.c.
4262 (linux_ptrace_test_ret_to_nx): Use type casts for ptrace
4263 parameters.
4264 (linux_fork_to_function): New function.
4265 (linux_grandchild_function): Likewise.
4266 (linux_child_function): Likewise.
4267 (linux_check_ptrace_features): New function, heavily
4268 based on linux-nat.c:linux_test_for_tracefork.
4269 (linux_enable_event_reporting): New function.
4270 (ptrace_supports_feature): Likewise.
4271 (linux_supports_tracefork): Likewise.
4272 (linux_supports_traceclone): Likewise.
4273 (linux_supports_tracevforkdone): Likewise.
4274 (linux_supports_tracesysgood): Likewise.
4275 * common/linux-ptrace.h (HAS_NOMMU): Moved from
4276 gdbserver/linux-low.c.
4277 (linux_enable_event_reporting): New declaration.
4278 (linux_supports_tracefork): Likewise.
4279 (linux_supports_traceclone): Likewise.
4280 (linux_supports_tracevforkdone): Likewise.
4281 (linux_supports_tracesysgood): Likewise.
4282 * config.in (PTRACE_TYPE_ARG4): Regenerate.
4283 * config/aarch64/linux.mh (NATDEPFILES): Add linux-waitpid.o.
4284 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
4285 * config/arm/linux.mh (NATDEPFILES): Likewise.
4286 * config/i386/linux.mh (NATDEPFILES): Likewise.
4287 * config/i386/linux64.mh (NATDEPFILES): Likewise.
4288 * config/ia64/linux.mh (NATDEPFILES): Likewise.
4289 * config/m32r/linux.mh (NATDEPFILES): Likewise.
4290 * config/m68k/linux.mh (NATDEPFILES): Likewise.
4291 * config/mips/linux.mh (NATDEPFILES): Likewise.
4292 * config/pa/linux.mh (NATDEPFILES): Likewise..
4293 * config/powerpc/linux.mh (NATDEPFILES): Likewise..
4294 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
4295 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
4296 * config/sparc/linux.mh (NATDEPFILES): Likewise.
4297 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
4298 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
4299 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
4300 * configure.ac (AC_CACHE_CHECK): Add void * to the list of
4301 ptrace's 4th argument's types.
4302 Check the type of PTRACE_TYPE_ARG4.
4303 * configure: Regenerate.
4304 * linux-nat.c: Include nat/linux-nat.h and nat/linux-waitpid.h.
4305 (SYSCALL_SIGTRAP): Moved to nat/linux-nat.h.
4306 (linux_supports_tracefork_flag): Remove.
4307 (linux_supports_tracesysgood_flag): Likewise.
4308 (linux_supports_tracevforkdone_flag): Likewise.
4309 (current_ptrace_options): Moved to
4310 common/linux-ptrace.c.
4311 (linux_tracefork_child): Remove.
4312 (my_waitpid): Remove.
4313 (linux_test_for_tracefork): Renamed to
4314 linux_check_ptrace_features and moved to common/linux-ptrace.c.
4315 (linux_test_for_tracesysgood): Remove.
4316 (linux_supports_tracesysgood): Remove.
4317 (linux_supports_tracefork): Remove.
4318 (linux_supports_tracevforkdone): Remove.
4319 (linux_enable_tracesysgood): Remove.
4320 (linux_enable_event_reporting): Remove.
4321 (linux_init_ptrace): New function.
4322 (linux_child_post_attach): Call linux_init_ptrace.
4323 (linux_child_post_startup_inferior): Call linux_init_ptrace.
4324 (linux_child_follow_fork): Call linux_supports_tracefork
4325 and linux_supports_tracevforkdone.
4326 (linux_child_insert_fork_catchpoint): Call
4327 linux_supports_tracefork.
4328 (linux_child_insert_vfork_catchpoint): Likewise.
4329 (linux_child_set_syscall_catchpoint): Call
4330 linux_supports_tracesysgood.
4331 (lin_lwp_attach_lwp): Call linux_supports_tracefork.
4332 * nat/linux-nat.h: New file.
4333 * nat/linux-waitpid.c: New file.
4334 * nat/linux-waitpid.h: New file.
4335
4336 2013-08-22 Samuel Bronson <naesten@gmail.com>
4337
4338 ARM Linux support for `catch syscall'.
4339 * syscalls/arm-linux.py: New file.
4340 * syscalls/arm-linux.xml: Likewise.
4341 * arm-linux-tdep.c (arm_linux_get_syscall_number): New function.
4342 (arm_linux_init_abi): Register the new function and syscall xml file.
4343 * data-directory/Makefile.in: Install the new syscall xml file.
4344 * NEWS: Brag about this.
4345
4346 2013-08-22 Pedro Alves <palves@redhat.com>
4347
4348 PR gdb/15871
4349 * corefile.c (target_xfer_memory_error): New function.
4350 (memory_error): Defer EIO to target_memory_error.
4351 (read_memory): Use target_xfer_partial, and handle finer-grained
4352 target xfer errors.
4353 * target.c (target_xfer_error_to_string): New function.
4354 (memory_xfer_partial_1): If memory is known to be
4355 unavailable, return TARGET_XFER_E_UNAVAILABLE instead of -1.
4356 (target_xfer_partial): Make extern.
4357 * target.h (enum target_xfer_error): New enum.
4358 (target_xfer_error_to_string): Declare function.
4359 (target_xfer_partial): Declare function.
4360 (struct target_ops) <xfer_partial>: Adjust describing comment.
4361
4362 2013-08-22 Alan Modra <amodra@gmail.com>
4363
4364 * configure.host: Support powerpc64le-linux and powerpcle-linux hosts.
4365 * configure.tgt: Likewise as targets.
4366
4367 2013-08-20 Doug Evans <dje@google.com>
4368
4369 * buildsym.c (subfile_stack): Move here from buildsym.h.
4370 (pending_macros): Ditto.
4371 (get_macro_table): New function.
4372 (buildsym_init): Initialize subfile_stack.
4373 * coffread.c (type_vector,type_vector_length): Moved here from
4374 buildsym.h.
4375 (INITIAL_TYPE_VECTOR_LENGTH): Ditto.
4376 (coff_symtab_read): Use it.
4377 * dbxread.c (read_ofile_symtab): Delete init of subfile_stack.
4378 * dwarf2read.c (macro_start_file): Replace uses of pending_macros
4379 with call to get_macro_table.
4380 * stabsread.c (type_vector,type_vector_length): Moved here from
4381 buildsym.h.
4382 (INITIAL_TYPE_VECTOR_LENGTH): Ditto.
4383 * buildsym.h (get_macro_table): Declare.
4384
4385 2013-08-20 Tom Tromey <tromey@redhat.com>
4386
4387 * dbxread.c (record_minimal_symbol): Make 'name' argument const.
4388 Update.
4389 (read_dbx_dynamic_symtab): Make 'name' const. Remove casts.
4390
4391 2013-08-20 Doug Evans <dje@google.com>
4392
4393 * blockframe.c: Remove #include "psymtab.h".
4394 * cp-support.c: Ditto.
4395 * source.c: Ditto.
4396 * stack.c: Ditto.
4397
4398 2013-08-20 Tom Tromey <tromey@redhat.com>
4399
4400 PR python/15816:
4401 * exceptions.h (return_mask): Now an enum.
4402 (RETURN_MASK_QUIT, RETURN_MASK_ERROR, RETURN_MASK_ALL): Now
4403 enum constants.
4404
4405 2013-08-20 Tom Tromey <tromey@redhat.com>
4406
4407 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Use
4408 get_objfile_arch.
4409 * elfread.c (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
4410 (elf_gnu_ifunc_resolve_by_got): Use get_objfile_arch.
4411 * jit.c (jit_object_close_impl): Update.
4412 * jv-lang.c (get_dynamics_objfile): Update.
4413 * linespec.c (add_minsym): Use get_dynamics_objfile.
4414 * objfiles.c (get_objfile_bfd_data): Initialize 'gdbarch' field.
4415 (allocate_objfile): Don't initialize 'gdbarch' field.
4416 (get_objfile_arch): Update.
4417 * objfiles.h (struct objfile_per_bfd_storage) <gdbarch>: New field,
4418 moved from...
4419 (struct objfile) <gdbarch>: ... here. Remove.
4420 * stap-probe.c (stap_can_evaluate_probe_arguments): Use
4421 get_objfile_arch.
4422 * symfile.c (init_entry_point_info): Use get_objfile_arch.
4423
4424 2013-08-20 Alan Modra <amodra@gmail.com>
4425
4426 * doublest.c (convert_floatformat_to_doublest): Use fmt->split_half
4427 for IBM long double nan and inf.
4428 (floatformat_is_negative, floatformat_classify,
4429 floatformat_mantissa): Similarly.
4430 (floatformat_ieee_single, floatformat_ieee_double,
4431 floatformat_ieee_quad, floatformat_arm_ext,
4432 floatformat_ia64_spill): Delete unused vars.
4433 (_initialize_doublest): Delete unused function.
4434 * gdbtypes.c (floatformats_ibm_long_double): Use new big- and
4435 little-endian variants of floatformat_ibm_long_double.
4436
4437 2013-08-19 Luis Machado <lgustavo@codesourcery.com>
4438
4439 * Makefile.in (SFILES): Remove common/target-common.c and
4440 add target/waitstatus.c.
4441 (HFILES_NO_SRCDIR): Remove common/target-common.h and add
4442 target/resume.h, target/wait.h and target/waitstatus.h.
4443 (COMMON_OBS): Remove target-common.o and add
4444 waitstatus.o.
4445 (target-common.o): Remove.
4446 (waitstatus.o): New target object file.
4447 * common/target-common.c: Move contents to
4448 target/waitstatus.c and remove.
4449 * common/target-common.h: Move contents to other files and
4450 remove.
4451 (enum resume_kind: Move to target/resume.h.
4452 (TARGET_WNOHANG): Move to target/wait.h.
4453 (enum target_waitkind): Move to target/waitstatus.h.
4454 (struct target_waitstatus): Likewise.
4455 * target.h: Do not include target-common.h and
4456 include target/resume.h, target/wait.h and
4457 target/waitstatus.h.
4458 * target/resume.h: New file.
4459 * target/wait.h: New file.
4460 * target/waitstatus.h: New file.
4461 * target/waitstatus.c: New file.
4462
4463 2013-08-19 Pedro Alves <palves@redhat.com>
4464
4465 * linux-nat.c (linux_test_for_tracefork)
4466 (linux_test_for_tracesysgood, linux_child_follow_fork)
4467 (lin_lwp_attach_lwp, linux_nat_resume): Don't block child signals.
4468 (linux_nat_wait_1): Extend comment.
4469 (linux_async_pipe): Add comment.
4470
4471 2013-08-15 Kevin Buettner <kevinb@redhat.com>
4472
4473 * rl78-tdep.c (RL78_RAW_PC_REGNUM): New enum.
4474 (RL78_PC_REGNUM): Move to list of pseudo-register enums.
4475 (rl78_register_type, rl78_register_name, rl78_register_reggroup_p):
4476 Update to account for fact that PC is now a pseudo-register.
4477 (rl78_pseudo_register_write, rl78_pseudo_register_read): Add
4478 cases for RL78_PC_REGNUM.
4479
4480 2013-08-15 Muhammad Bilal <mbilal@codesourcery.com>
4481
4482 PR cli/15841
4483 * top.c (quit_force): Skip writing history file
4484 if input is not from terminal.
4485
4486 2013-08-14 Tom Tromey <tromey@redhat.com>
4487
4488 * remote.c (struct remote_state) <echo_nextthread, nextthread,
4489 resultthreadlist>: New fields.
4490 (OPAQUETHREADBYTES, threadref, MAXTHREADLISTRESULTS): Move earlier.
4491 (remote_get_threadlist, remote_threadlist_iterator): Use
4492 new fields. Remove static variables.
4493
4494 2013-08-14 Tom Tromey <tromey@redhat.com>
4495
4496 * remote.c (struct remote_state) <remote_stopped_by_watchpoint_p,
4497 remote_watch_data_address>: New fields.
4498 (remote_stopped_by_watchpoint_p, remote_watch_data_address): Remove.
4499 (process_stop_reply, remote_wait_as)
4500 (remote_check_watch_resources, remote_stopped_data_address): Update.
4501
4502 2013-08-14 Tom Tromey <tromey@redhat.com>
4503
4504 * remote.c (struct remote_state) <async_client_callback,
4505 async_client_context>: New fields.
4506 (async_client_callback, async_client_context): Remove.
4507 (remote_async_serial_handler, remote_async): Update.
4508
4509 2013-08-14 Tom Tromey <tromey@redhat.com>
4510
4511 * remote.c (sizeof_pkt): Remove.
4512 (remote_trace_find): Use rs->buf_size, not sizeof_pkt.
4513
4514 2013-08-14 Tom Tromey <tromey@redhat.com>
4515
4516 * remote.c (struct remote_state) <use_threadinfo_query,
4517 use_threadextra_query>: New fields.
4518 (remote_threads_info, remote_threads_extra_info)
4519 (remote_open_1): Update.
4520
4521 2013-08-14 Tom Tromey <tromey@redhat.com>
4522
4523 * remote.c (struct remote_state) <finished_object,
4524 finished_annex, finished_offset>: New fields.
4525 (remote_read_qxfer): Use remote_state fields; remove static
4526 variables.
4527
4528 2013-08-14 Tom Tromey <tromey@redhat.com>
4529
4530 * remote.c (struct remote_state) <last_sent_step>:
4531 New field.
4532 (last_sent_step): Remove.
4533 (remote_resume, remote_wait_as): Update.
4534
4535 2013-08-14 Tom Tromey <tromey@redhat.com>
4536
4537 * remote.c (struct remote_state) <last_sent_signal>:
4538 New field.
4539 (last_sent_signal): Remove.
4540 (new_remote_state, remote_resume, remote_wait_as): Update.
4541
4542 2013-08-14 Tom Tromey <tromey@redhat.com>
4543
4544 * remote.c (struct remote_state) <last_program_signals_packet>:
4545 New field.
4546 (last_program_signals_packet): Remove.
4547 (remote_program_signals, remote_open_1): Update.
4548
4549 2013-08-14 Tom Tromey <tromey@redhat.com>
4550
4551 * remote.c (struct remote_state) <last_pass_packet>:
4552 New field.
4553 (last_pass_packet): Remove.
4554 (remote_pass_signals, remote_open_1): Update.
4555
4556 2013-08-14 Tom Tromey <tromey@redhat.com>
4557
4558 * remote.c (struct remote_state) <remote_traceframe_number>:
4559 New field.
4560 (remote_traceframe_number): Remove.
4561 (new_remote_state, remote_open_1, set_remote_traceframe)
4562 (remote_trace_find): Update.
4563
4564 2013-08-14 Tom Tromey <tromey@redhat.com>
4565
4566 * remote.c (struct remote_state) <general_thread, continue_thread>:
4567 New fields.
4568 (general_thread, continue_thread): Remove.
4569 (record_currthread, set_thread, set_general_process)
4570 (remote_open_1, extended_remote_attach_1, remote_wait_as)
4571 (extended_remote_mourn_1): Update.
4572
4573 2013-08-14 Tom Tromey <tromey@redhat.com>
4574
4575 * remote.c (struct remote_state) <remote_desc>: New field.
4576 (remote_desc): Remove.
4577 (remote_threads_info, remote_threads_extra_info, remote_close)
4578 (send_interrupt_sequence, remote_start_remote, remote_open_1)
4579 (readchar, remote_xfer_partial, remote_rcmd, packet_command)
4580 (remote_hostio_send_command, remote_file_put, remote_file_get)
4581 (remote_file_delete, remote_can_async_p, remote_is_async_p)
4582 (remote_async, remote_new_objfile, set_range_stepping): Update.
4583
4584 2013-08-14 Tom Tromey <tromey@redhat.com>
4585
4586 * remote.c (remote_state): Now a pointer.
4587 (get_remote_state_raw): Update.
4588 (new_remote_state): New function.
4589 (_initialize_remote): Use new_remote_state.
4590
4591 2013-08-14 Tom Tromey <tromey@redhat.com>
4592
4593 * remote.c (remote_protocol_features): Now const.
4594
4595 2013-08-14 Tom Tromey <tromey@redhat.com>
4596
4597 * remote.c (crc32_table, crc32): Remove.
4598 (remote_verify_memory): Use xcrc32.
4599
4600 2013-08-13 Sergio Durigan Junior <sergiodj@redhat.com>
4601
4602 * value.h (create_internalvar_type_lazy): Adjust prototype
4603 declaration.
4604
4605 2013-08-13 Andrew Burgess <aburgess@broadcom.com>
4606
4607 * common/format.c (parse_format_string): Don't allow '#' flag for
4608 pointer arguments in format string.
4609
4610 2013-08-13 Pierre Muller <muller@sourceware.org>
4611
4612 * utils.c (init_page_info): Only call tgetnum function
4613 if rl_get_screen_size did not return useful values.
4614
4615 2013-08-12 Ali Anwar <ali_anwar@codesourcery.com>
4616
4617 PR breakpoints/15117
4618 * linespec.c (linespec_parse_basic): Check for convenience
4619 variable or history value while parsing.
4620
4621 2013-08-12 Sergio Durigan Junior <sergiodj@redhat.com>
4622
4623 Revert implementation of gdbarch_gdb_signal_{to,from}_target for
4624 AVR.
4625 * avr-tdep.c: Remove include of "linux-tdep.h". Remove enum with
4626 different signals between the generic Linux kernel implementation
4627 and AVR's.
4628 (avr_linux_gdb_signal_from_target): Delete.
4629 (avr_linux_gdb_signal_to_target): Delete.
4630 (avr_gdbarch_init): Don't set gdbarch_gdb_signal_{to,from}_target.
4631
4632 2013-08-09 Doug Evans <dje@google.com>
4633
4634 * dwarf2read.c (create_addrmap_from_index): Ignore bad address table
4635 entries.
4636
4637 2013-08-09 Sergio Durigan Junior <sergiodj@redhat.com>
4638
4639 * linux-tdep.c: Define enum with generic signal numbers.
4640 (linux_gdb_signal_from_target): New function.
4641 (linux_gdb_signal_to_target): Likewise.
4642 (linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
4643 methods to the functions above.
4644 * linux-tdep.h (linux_gdb_signal_from_target): New prototype.
4645 (linux_gdb_signal_to_target): Likewise.
4646 * alpha-linux-tdep.c: Define new enum with signals different
4647 from generic Linux kernel.
4648 (alpha_linux_gdb_signal_from_target): New function.
4649 (alpha_linux_gdb_signal_to_target): Likewise.
4650 (alpha_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
4651 with the functions mentioned above.
4652 * avr-tdep.c: Define enum with differences between Linux kernel
4653 and AVR signals.
4654 (avr_linux_gdb_signal_from_target): New function.
4655 (avr_linux_gdb_signal_to_target): Likewise.
4656 (avr_gdbarch_init): Set gdbarch_gdb_signal_{to,from}_target to
4657 the functions mentioned above.
4658 * sparc-linux-tdep.c: Define enum with differences between SPARC
4659 and generic Linux kernel signal numbers.
4660 (sparc32_linux_gdb_signal_from_target): New function.
4661 (sparc32_linux_gdb_signal_to_target): Likewise.
4662 (sparc32_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
4663 to the functions defined above.
4664 * xtensa-linux-tdep.c: Define enum with differences between
4665 Xtensa and Linux kernel generic signals.
4666 (xtensa_linux_gdb_signal_from_target): New function.
4667 (xtensa_linux_gdb_signal_to_target): Likewise.
4668 (xtensa_linux_init_abi): Set gdbarch_gdb_signal_to_target
4669 to the functions defined above.
4670 * mips-linux-tdep.c: Define enum with differences between
4671 signals in MIPS and Linux kernel generic ones.
4672 (mips_gdb_signal_to_target): New function.
4673 (mips_gdb_signal_from_target): Redefine to use new enum, handle
4674 only different signals from the Linux kernel generic.
4675 (mips_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
4676 the functions defined above.
4677 * mips-linux-tdep.h (enum mips_signals): Remove.
4678
4679 2013-08-09 Pedro Alves <palves@redhat.com>
4680
4681 * avr-tdep.c (XMALLOC): Delete macro.
4682 * cli/cli-dump.c (XMALLOC): Delete macro.
4683
4684 2013-08-09 Pedro Alves <palves@redhat.com>
4685
4686 * cli/cli-dump.c: Don't include cli/cli-dump.h.
4687 (scan_expression_with_cleanup, scan_filename_with_cleanup)
4688 (fopen_with_cleanup, add_dump_command): Make static.
4689 * cli/cli-dump.h: Delete file.
4690 * Makefile.in (HFILES_NO_SRCDIR): Remove reference to
4691 cli/cli-dump.h.
4692
4693 2013-08-09 Pedro Alves <palves@redhat.com>
4694
4695 * tracepoint.c (tfile_start): Show tilde-expanded filename in
4696 error message.
4697
4698 2013-08-09 Pedro Alves <palves@redhat.com>
4699
4700 * breakpoint.c (save_breakpoints): Show tilde-expanded filename in
4701 error message.
4702
4703 2013-08-09 Pedro Alves <palves@redhat.com>
4704
4705 * gcore.c (create_gcore_bfd): Don't use tilde_expand here.
4706 (gcore_command): Use tilde_expand here, and when showing the
4707 filename to the user, show the expanded version.
4708
4709 2013-08-09 Yao Qi <yao@codesourcery.com>
4710
4711 * stack.c (read_frame_arg): Set 'entryval_error' to NULL if
4712 'entryval' is set.
4713
4714 2013-08-08 Azat Khuzhin <a3at.mail@gmail.com> (tiny change)
4715
4716 * gcore.c (create_gcore_bfd): Use tilde_expand.
4717
4718 2013-08-08 Yao Qi <yao@codesourcery.com>
4719
4720 * frame.h (read_frame_local): Declare.
4721 * mi/mi-cmd-stack.c (list_args_or_locals): Call
4722 read_frame_local.
4723 * stack.c (read_frame_local): New.
4724
4725 2013-08-08 Yao Qi <yao@codesourcery.com>
4726
4727 * mi/mi-cmd-stack.c: Update comments to function
4728 list_args_or_locals.
4729
4730 2013-08-07 Tom Tromey <tromey@redhat.com>
4731
4732 PR symtab/15028:
4733 * dwarf2read.c (struct process_psymtab_comp_unit_data): New.
4734 (process_psymtab_comp_unit_reader): Use it.
4735 (process_psymtab_comp_unit): Update. Add "pretend_language"
4736 argument.
4737 (dwarf2_build_psymtabs_hard): Update.
4738 (scan_partial_symbols): Pass CU's language to
4739 process_psymtab_comp_unit.
4740
4741 2013-08-07 Tom Tromey <tromey@redhat.com>
4742
4743 * dwarf2read.c (dw2_get_primary_filename_reader): Remove.
4744 (dwarf2_gdb_index_functions): Update.
4745 * psymtab.c (find_symbol_file_from_partial): Remove.
4746 (psym_functions): Update.
4747 * symfile.h (struct quick_symbol_functions) <find_symbol_file>:
4748 Remove.
4749
4750 2013-08-07 Tom Tromey <tromey@redhat.com>
4751
4752 * symfile.c (set_initial_language): Look up "main" symbol
4753 and use its language.
4754 * symtab.c (find_main_filename): Remove.
4755 * symtab.h (find_main_filename): Remove.
4756
4757 2013-08-07 Tom Tromey <tromey@redhat.com>
4758
4759 * dwarf2read.c (recursively_compute_inclusions): Add
4760 "immediate_parent" argument. Set symtab's "user" field
4761 if not set.
4762 (compute_symtab_includes): Update.
4763
4764 2013-08-07 Tom Tromey <tromey@redhat.com>
4765
4766 * linespec.c (convert_linespec_to_sals): Use maybe_add_address
4767 when adding label symbols.
4768
4769 2013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
4770 Ulrich Weigand <uweigand@de.ibm.com>
4771
4772 * configure.tgt (powerpc64-*-aix*): Match powerpc64 running aix.
4773 * configure.host (powerpc64-*-aix*): Likewise.
4774
4775 2013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
4776 Ulrich Weigand <uweigand@de.ibm.com>
4777
4778 * gdb_ptrace.h: Use ptrace64 instead of ptrace if HAVE_PTRACE64
4779 is defined.
4780 * rs6000-nat.c: Check for __ld_info64_ if compiling 64 BIT gdb.
4781 (rs6000_ptrace32): Call ptrace64 instead of ptrace if present.
4782 (rs6000_ptrace64): Call ptace64 instead of ptracex if present.
4783 * configure.ac: Check for ptrace64.
4784 * configure, config.in: Regenerate.
4785
4786 2013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
4787 Ulrich Weigand <uweigand@de.ibm.com>
4788
4789 * aixthread.c: Call ptrace64 instead of ptracex if defined.
4790 Call ptrace64 instead of ptrace if defined.
4791 Add macro addr_ptr to take care of ptrace address argument.
4792 (pdc_read_regs): Likewise.
4793 (pdc_write_regs): Likewise.
4794 (aix_thread_resume): Likewise.
4795 (fetch_regs_kernel_thread): Likewise.
4796 (store_regs_kernel_thread): Likewise.
4797
4798 2013-08-07 Anton Blanchard <anton@samba.org>
4799
4800 * MAINTAINERS: Add myself to Write After Approval.
4801
4802 2013-08-05 Tom Tromey <tromey@redhat.com>
4803
4804 * aix-thread.c (_initialize_aix_thread): Use
4805 complete_target_initialization.
4806 * bsd-uthread.c (_initialize_bsd_uthread): Use
4807 complete_target_initialization.
4808 * dec-thread.c (_initialize_dec_thread): Use
4809 complete_target_initialization.
4810 * ravenscar-thread.c (_initialize_ravenscar): Use
4811 complete_target_initialization.
4812 * sol-thread.c (_initialize_sol_thread): Use
4813 complete_target_initialization.
4814 * spu-multiarch.c (_initialize_spu_multiarch): Use
4815 complete_target_initialization.
4816
4817 2013-08-05 Tom Tromey <tromey@redhat.com>
4818
4819 * ada-exp.y (write_var_or_type): Use bound_minimal_symbol.
4820 * ada-lang.c (ada_lookup_simple_minsym): Return
4821 bound_minimal_symbol.
4822 * ada-lang.h (ada_lookup_simple_minsym): Update.
4823 * c-exp.y (variable): Use lookup_bound_minimal_symbol.
4824 * f-exp.y (variable): Use lookup_bound_minimal_symbol.
4825 * go-exp.y (variable): Use lookup_bound_minimal_symbol.
4826 * jv-exp.y (push_expression_name): Use lookup_bound_minimal_symbol.
4827 * m2-exp.y (variable): Use lookup_bound_minimal_symbol.
4828 * minsyms.c (msymbol_objfile): Remove.
4829 (lookup_minimal_symbol_internal): New function, from
4830 lookup_minimal_symbol.
4831 (lookup_minimal_symbol): Rewrite using
4832 lookup_minimal_symbol_internal.
4833 (lookup_bound_minimal_symbol): New function.
4834 * minsyms.h (msymbol_objfile): Remove.
4835 (lookup_bound_minimal_symbol): Declare.
4836 * p-exp.y (variable): Use lookup_bound_minimal_symbol.
4837 * parse.c (write_exp_msymbol): Change parameter to a
4838 bound_minimal_symbol.
4839 (write_dollar_variable): Use lookup_bound_minimal_symbol.
4840 * parser-defs.h (write_exp_msymbol): Update.
4841 * printcmd.c (address_info): Use lookup_bound_minimal_symbol.
4842 * symfile.c (simple_read_overlay_table): Use
4843 lookup_bound_minimal_symbol.
4844 * symtab.c (skip_prologue_sal): Don't use msymbol_objfile.
4845 (search_symbols): Likewise.
4846 (print_msymbol_info): Take a bound_minimal_symbol argument.
4847 (symtab_symbol_info, rbreak_command): Update.
4848 * symtab.h (struct symbol_search) <msymbol>: Change type
4849 to bound_minimal_symbol.
4850 * valops.c (find_function_in_inferior): Use
4851 lookup_bound_minimal_symbol.
4852 * value.c (value_fn_field): Use lookup_bound_minimal_symbol.
4853
4854 2013-08-05 Jan Kratochvil <jan.kratochvil@redhat.com>
4855
4856 Code cleanup.
4857 * remote.c (cleanup_sigint_signal_handler): Rename the declaration
4858 to ...
4859 (async_cleanup_sigint_signal_handler): ... this.
4860 (initialize_sigint_signal_handler): Remove declaration.
4861 (handle_remote_sigint): Rename the declaration to ...
4862 (async_handle_remote_sigint): ... this.
4863 (handle_remote_sigint_twice): Rename the declaration to ...
4864 (async_handle_remote_sigint_twice): ... this.
4865 (async_remote_interrupt, async_remote_interrupt_twice)
4866 (remote_interrupt): Remove the declarations.
4867 (remote_interrupt_twice): Rename the declaration ...
4868 (sync_remote_interrupt_twice): ... this.
4869 (sigint_remote_twice_token): Rename the variable to ...
4870 (async_sigint_remote_twice_token): ... this.
4871 (sigint_remote_token): Rename the variable to ...
4872 (async_sigint_remote_token): ... this.
4873 (initialize_sigint_signal_handler): Rename the function to ...
4874 (async_initialize_sigint_signal_handler): ... this. Update the name
4875 inside.
4876 (handle_remote_sigint): Rename the function to ...
4877 (async_handle_remote_sigint): ... this. Update the names inside.
4878 (handle_remote_sigint_twice): Rename the function to ...
4879 (async_handle_remote_sigint_twice): ... this. Update the names inside.
4880 (cleanup_sigint_signal_handler): Rename the function to ...
4881 (async_cleanup_sigint_signal_handler): ... this.
4882 (remote_interrupt): Rename the function to ...
4883 (sync_remote_interrupt): this. Update the names inside.
4884 (remote_interrupt_twice): Rename the function to ...
4885 (sync_remote_interrupt_twice): this. Update the names inside.
4886 (remote_terminal_inferior, remote_terminal_ours, remote_wait_as)
4887 (_initialize_remote): Update the names inside.
4888
4889 2013-08-02 Tom Tromey <tromey@redhat.com>
4890
4891 PR symtab/15719:
4892 * breakpoint.c (update_watchpoint, watchpoint_check)
4893 (watch_command_1): Update.
4894 * eval.c (fetch_subexp_value): Add "preserve_errors"
4895 parameter.
4896 * ppc-linux-nat.c (check_condition): Update.
4897 * value.h (fetch_subexp_value): Update.
4898
4899 2013-08-02 Andrew Burgess <aburgess@broadcom.com>
4900
4901 * mi/mi-interp.c (mi_interpreter_resume): Remove call to
4902 add_file_handler.
4903
4904 2013-08-01 Doug Evans <dje@google.com>
4905
4906 PR symtab/15691
4907 * dwarf2read.c (struct dwarf2_per_cu_data): New member tu_read.
4908 (fill_in_sig_entry_from_dwo_entry): Reorganize asserts.
4909 Add assert of sig_entry->dwo_unit == NULL.
4910 (lookup_dwo_signatured_type): Don't assign TU to a DWO if the TU
4911 had already been read.
4912 (read_signatured_type): Set per_cu.tu_read.
4913
4914 PR symtab/15695
4915 * valops.c (value_struct_elt): Add missing call to check_typedef.
4916 (value_find_oload_method_list): Ditto.
4917
4918 * symtab.c (do_free_search_symbols_cleanup): Change arg to,
4919 effectively, struct symbol_search **.
4920 (make_cleanup_free_search_symbols): Change arg to struct
4921 symbol_search **. All callers updated.
4922 (compare_search_syms): Compare symtab file name and block as well.
4923 (search_symbols_equal): New function.
4924 (sort_search_symbols_remove_dups): Renamed from sort_search_symbols.
4925 New args new_head, new_tail. Result is now void. Remove dups after
4926 sorting the symbols.
4927 (search_symbols): Sort all found symbols once, after all have been
4928 found, and remove duplicates. Simplify cleanup tracking of result.
4929 * symtab.h (make_cleanup_free_search_symbols): Update prototype.
4930
4931 Further workarounds for binutils/15021.
4932 * dwarf2read.c (recursively_compute_inclusions): Change type of result
4933 parameter to VEC (symtab_ptr) **. New parameter all_type_symtabs.
4934 Watch for duplicate symtabs coming from type units.
4935 (compute_symtab_includes): Update call to
4936 recursively_compute_inclusions. Build vector of included symtabs
4937 instead of per_cus.
4938 * symtab.h (symtab_ptr): New typedef.
4939 (DEF_VEC_P (symtab_ptr)): New VEC type.
4940 * linespec.c (symtab_p): Delete. All uses updated to use symtab_ptr
4941 instead.
4942
4943 2013-08-01 Andrew Burgess <aburgess@broadcom.com>
4944
4945 * cli/cli-script.c (script_from_file): Remove use of
4946 error_pre_print.
4947 * main.c (captured_main): Remove use of error_pre_print and
4948 quit_pre_print.
4949 * utils.c (error_pre_print, quit_pre_print): Remove.
4950 * utils.h (error_pre_print, quit_pre_print): Likewise.
4951
4952 2013-08-01 Yao Qi <yao@codesourcery.com>
4953
4954 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Parse argv
4955 with mi_getopt.
4956 (mi_cmd_stack_list_variables): Likewise.
4957
4958 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
4959
4960 * exceptions.c (deprecated_throw_reason): Remove.
4961 * exceptions.h (deprecated_throw_reason): Remove.
4962
4963 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
4964
4965 * remote-mips.c (mips_error): Replace use of
4966 deprecated_throw_reason with throw_verror. Use the error message
4967 passed to mips_error as the error message for throw_verror.
4968
4969 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
4970
4971 * monitor.c (monitor_interrupt_query): Replace use of
4972 deprecated_throw_reason with quit.
4973 * nto-procfs.c (interrupt_query): Likewise.
4974 * remote-fileio.c (remote_fileio_sig_exit): Likewise.
4975 * remote-mips.c (mips_kill): Likewise.
4976 * remote.c (interrupt_query): Likewise.
4977
4978 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
4979
4980 * utils.c (internal_verror): Replace use of deprecated_throw_reason
4981 with call to fatal.
4982
4983 2013-07-31 Pedro Alves <pedro@codesourcery.com>
4984 Yao Qi <yao@codesourcery.com>
4985
4986 * tracepoint.c (trace_dump_command): Select the current frame.
4987
4988 2013-07-30 Doug Evans <dje@google.com>
4989
4990 * dwarf2read.c (process_queue): Add type signature to debug output.
4991
4992 2013-07-30 Andrew Burgess <aburgess@broadcom.com>
4993
4994 * value.c (value_fetch_lazy): Mark optimized out values as such
4995 rather than raising an error.
4996
4997 2013-07-30 Andrew Burgess <aburgess@broadcom.com>
4998
4999 * value.c (value_fetch_lazy): Ensure parent value is not lazy
5000 before checking which bits of the parent, not the child, value are
5001 valid.
5002
5003 2013-07-30 Muhammad Bilal <mbilal@codesorcery.com>
5004
5005 PR gdb/15715
5006 * top.c: Include "filenames.h".
5007 (set_history_filename): New function.
5008 (init_main): Install it as set hook of the "set history filename"
5009 command.
5010
5011 2013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
5012
5013 * dwarf2read.c (dwarf2_get_ref_die_offset): Constify struct
5014 attribute parameter.
5015 (dwarf2_const_value_data): Constify struct attribute parameter.
5016 (dwarf2_const_value): Constify struct attribute parameter.
5017 (dwarf2_const_value_attr): Constify struct attribute parameter.
5018 (lookup_die_type): Constify struct attribute parameter.
5019 (dwarf2_get_attr_constant_value): Constify struct attribute parameter.
5020 (follow_die_ref_or_sig): Constify struct attribute parameter.
5021 (follow_die_ref): Constify struct attribute parameter.
5022 (follow_die_sig): Constify struct attribute parameter.
5023 (get_DW_AT_signature_type): Constify struct attribute parameter.
5024 (get_type_unit_group): Constify struct attribute parameter.
5025 (fill_in_loclist_baton): Constify struct attribute parameter.
5026 (dwarf2_symbol_mark_computed): Constify struct attribute parameter.
5027 (type_unit_group): Constify struct attribute parameter.
5028
5029 2013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
5030
5031 * dwarf2read.c (attr_form_is_block): Make argument const.
5032 (attr_form_is_section_offset): Make argument const.
5033 (attr_form_is_constant): Make argument const.
5034 (attr_form_is_ref): Make argument const.
5035
5036 2013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
5037
5038 * dwarf2read.c (attr_is_ref): Rename to attr_form_is_ref.
5039 All uses updated.
5040 (attr_form_is_ref): Moved below attr_form_is_constant.
5041
5042 2013-07-29 Doug Evans <dje@google.com>
5043
5044 * main.c (captured_command_loop): Tweak comment.
5045
5046 * target.c (target_async_permitted_1): Fix comment.
5047
5048 * symtab.c (iterate_over_some_symtabs): Add comment.
5049
5050 * symtab.c (iterate_over_some_symtabs): Fix indentation.
5051
5052 2013-07-27 Yao Qi <yao@codesourcery.com>
5053
5054 * NEWS: Mention that GDBserver now supports hardware
5055 watchpoints on the MIPS GNU/Linux target.
5056
5057 2013-07-27 Yao Qi <yao@codesourcery.com>
5058
5059 * Makefile.in (HFILES_NO_SRCDIR): Add
5060 common/mips-linux-watch.h.
5061 (mips-linux-watch.o): New rule.
5062 * common/mips-linux-watch.c: New.
5063 * common/mips-linux-watch.h: New.
5064 * config/mips/linux.mh (NATDEPFILES): Add mips-linux-watch.o
5065 * mips-linux-nat.c: Include mips-linux-watch.h.
5066 (W_BIT, R_BIT, I_BIT, W_MASK, R_MASK, I_MASK, IRW_MASK): Move
5067 to common/mips-linux-watch.h.
5068 (MAX_DEBUG_REGISTER): Likewise.
5069 (enum pt_watch_style): Likewise.
5070 (struct mips32_watch_regs): Likewise.
5071 (struct mips64_watch_regs): Likewise.
5072 (struct pt_watch_regs): Likewise.
5073 (struct mips_watchpoint): Likewise.
5074 (mips_linux_watch_get_irw_mask): Move to
5075 common/mips-linux-watch.c.
5076 (get_reg_mask, mips_linux_watch_get_num_valid): Likewise.
5077 (mips_linux_watch_get_watchlo): Likewise.
5078 (mips_linux_watch_set_watchlo): Likewise.
5079 (mips_linux_watch_get_watchhi): Likewise.
5080 (mips_linux_watch_set_watchhi): Likewise.
5081 (mips_linux_read_watch_registers): Likewise.
5082 (mips_linux_watch_type_to_irw): Likewise.
5083 (mips_linux_stopped_data_address, fill_mask): Likewise.
5084 (mips_linux_watch_try_one_watch): Likewise.
5085 (mips_linux_watch_populate_regs): Likewise.
5086
5087 2013-07-27 Yao Qi <yao@codesourcery.com>
5088
5089 * mips-linux-nat.c (get_irw_mask): Rename to ...
5090 (mips_linux_watch_get_irw_mask): ... this. Rename parameter
5091 'set' to 'n'. Update function comment. All callers changed.
5092 (get_reg_mask): Rename parameter 'set' to 'n'. Update
5093 function comment. All callers changed.
5094 (get_num_valid): Rename to ...
5095 (mips_linux_watch_get_num_valid): ... this. Rename parameter
5096 'set' to 'n'. Update function comment. All callers changed.
5097 (get_watchlo): Rename to ...
5098 (mips_linux_watch_get_watchlo): ... this. Rename parameter
5099 'set' to 'n'. Update function comment. All callers changed.
5100 (set_watchlo): Rename to ...
5101 (mips_linux_watch_set_watchlo): ... this. Rename parameter
5102 'set' to 'n'. Update function comment. All callers changed.
5103 (get_watchhi): Rename to ...
5104 (mips_linux_watch_get_watchhi): ... this. Update function
5105 comment. All callers changed.
5106 (set_watchhi): Rename to ...
5107 (mips_linux_watch_set_watchhi): ... this. Update function
5108 comment. All callers changed.
5109 (mips_linux_read_watch_registers): Update function comment.
5110 Add new parameters 'lwpid', 'watch_readback', and
5111 'watch_readback_valid'. Update.
5112 (type_to_irw): Rename to ...
5113 (mips_linux_watch_type_to_irw): ... this. Update function
5114 comment. All callers changed.
5115 (fill_mask): Update function comment.
5116 (try_one_watch): Rename to ...
5117 (mips_linux_watch_try_one_watch): ... this. Change the type
5118 of parameter 'irw' from 'unsigned' to 'uint32_t'.
5119 (populate_regs_from_watches): Rename to ...
5120 (mips_linux_watch_populate_regs): ... this. Add parameter
5121 'current_watches'. All callers changed.
5122
5123 2013-07-27 Yao Qi <yao@codesourcery.com>
5124
5125 * mips-linux-nat.c (MAX_DEBUG_REGISTER): Move it earlier in
5126 the code.
5127 (PTRACE_SET_WATCH_REGS, enum pt_watch_style): Remove.
5128 (struct mips32_watch_regs, struct mips64_watch_regs): Remove.
5129 (struct pt_watch_regs): Likewise.
5130 [!PTRACE_GET_WATCH_REGS] (PTRACE_SET_WATCH_REGS): New macro.
5131 [!PTRACE_GET_WATCH_REGS] (enum pt_watch_style): New.
5132 [!PTRACE_GET_WATCH_REGS] (struct mips32_watch_regs): New.
5133 [!PTRACE_GET_WATCH_REGS] (struct mips64_watch_regs): New.
5134 [!PTRACE_GET_WATCH_REGS] (struct pt_watch_regs): New.
5135
5136 2013-07-27 Yao Qi <yao@codesourcery.com>
5137
5138 * breakpoint.h: Include break-common.h.
5139 (enum target_hw_bp_type): Move to ...
5140 * common/break-common.h: ... here. New.
5141
5142 2013-07-26 Cyril Nikolaev <cyril@nichtverstehen.de>
5143
5144 * inflow.c (terminal_init_inferior_with_pgrp): Save inferior
5145 process group regardless of having tty on stdin.
5146
5147 2013-07-25 Doug Evans <dje@google.com>
5148
5149 * linux-fork.h (detach_fork): Delete.
5150
5151 2013-07-25 Tom Tromey <tromey@redhat.com>
5152
5153 PR remote/15256, PR remote/15266:
5154 * bfd-target.c (target_bfd_reopen): Initialize to_magic.
5155 * monitor.c (monitor_detach): Use unpush_target.
5156 * remote-m32r-sdi.c (m32r_detach): Use unpush_target.
5157 * remote-mips.c (mips_detach): Use unpush_target. Don't
5158 call mips_close.
5159 * remote-sim.c (gdbsim_detach): Use unpush_target.
5160 * target.c (pop_target): Remove.
5161 (pop_all_targets_above): Don't call target_close.
5162 (target_close): Assert that the target is unpushed.
5163 * target.h (pop_target): Don't declare.
5164 * tracepoint.c (tfile_open): Use unpush_target.
5165
5166 2013-07-25 Tom Tromey <tromey@redhat.com>
5167
5168 * linux-thread-db.c (init_thread_db_ops): Call
5169 complete_target_initialization.
5170 (_initialize_thread_db): Don't call add_target.
5171 * target.c (complete_target_initialization): New function.
5172 (add_target_with_completer): Call it.
5173 * target.h (complete_target_initialization): Declare.
5174
5175 2013-07-25 Mark Kettenis <kettenis@gnu.org>
5176
5177 * hppa-tdep.h (enum hppa_regnum): Add members for all space registers.
5178 * hppaobsd-tdep.c (HPPAOBSD_SIZEOF_GREGS): Add comment.
5179 (HPPANBSD_SIZEOF_GREGS): New define.
5180 (hppaobsd_supply_gregset): Handle additional registers.
5181 * hppabsd-nat.c (hppabsd_gregset_supplies_p): Adjust to indicate
5182 we provide more registers now.
5183 (hppabsd_supply_gregset): Supply additional registers.
5184 (hppabsd_collect_gregset): Collect additional registers.
5185
5186 2013-07-25 Mark Kettenis <kettenis@gnu.org>
5187
5188 * hppabsd-tdep.c: Include "dwarf2-frame.h".
5189 (hppabsd_dwarf2_frame_init_reg): New function.
5190 (hppabsd_init_abi): Hook in the DWARF CFI frame unwinder.
5191
5192 2013-07-25 Andrew Burgess <aburgess@broadcom.com>
5193
5194 * mi/mi-main.c (output_register): Make MI 'r' format use standard
5195 'z' format code. Remove error for optimized out values, standard
5196 code will handle these fine.
5197
5198 2013-07-25 Andrew Burgess <aburgess@broadcom.com>
5199
5200 * NEWS: Mention new 'z' formatter.
5201 * printcmd.c (print_scalar_formatted): Add new 'z' formatter.
5202 (_initialize_printcmd): Mention 'z' formatter in help text of the
5203 'x' command.
5204
5205 2013-07-24 Maciej W. Rozycki <macro@codesourcery.com>
5206
5207 * mips-tdep.c (micromips_deal_with_atomic_sequence): Correct
5208 formatting.
5209
5210 2013-07-24 Sergio Durigan Junior <sergiodj@redhat.com>
5211
5212 * breakpoint.c (create_longjmp_master_breakpoint): Check if probe
5213 interface can evaluate arguments. Fallback to the old mode if it
5214 cannot.
5215 (create_exception_master_breakpoint): Likewise.
5216 * elfread.c (elf_can_evaluate_probe_arguments): New function.
5217 (struct sym_probe_fns elf_probe_fns): Export function above to the
5218 probe interface.
5219 * probe.c (can_evaluate_probe_arguments): New function.
5220 * probe.h (struct probe_ops) <can_evaluate_probe_arguments>: New
5221 function pointer.
5222 (can_evaluate_probe_arguments): New function prototype.
5223 * solib-svr4.c (svr4_create_solib_event_breakpoints): Check if
5224 probe interface can evaluate arguments. Fallback to the old mode
5225 if it cannot.
5226 * stap-probe.c (stap_get_probe_argument_count): Check if probe
5227 interface can evaluate arguments. Warning the user if it cannot.
5228 (stap_can_evaluate_probe_arguments): New function.
5229 (struct probe_ops stap_probe_ops): Export function above to the
5230 probe interface.
5231 * symfile.h (struct sym_probe_fns) <can_evaluate_probe_arguments>:
5232 New function pointer.
5233
5234 2013-07-24 Luis Machado <lgustavo@codesourcery.com>
5235
5236 * Makefile.in (SFILES): Add common/target-common.c.
5237 Add common/target-common.h to headers.
5238 (COMMON_OBS): Add target-common.o.
5239 (target-common.o): New target.
5240 * linux-nat.h (resume_kind): Move to common/target-common.h.
5241 * target.c (target_waitstatus_to_string): Move to
5242 common/target-common.c.
5243 * target.h: Include target-common.h.
5244 (target_waitkind): Move to common/target-common.h.
5245 (target_waitstatus): Likewise.
5246 (TARGET_WNOHANG): Likewise.
5247 * common/target-common.c: New file.
5248 * common/target-common.h: New file.
5249
5250 2013-07-24 Doug Evans <dje@google.com>
5251
5252 * dwarf2read.c (lookup_dwo_cutu): Change missing DWO complaint to
5253 a warning.
5254
5255 2013-07-23 Yao Qi <yao@codesourcery.com>
5256
5257 * i386-tdep.c (i386_in_stack_tramp_p): Remove unused
5258 parameter 'gdbarch'.
5259 (i386_stack_tramp_frame_sniffer): Caller update.
5260 * i386-linux-tdep.c (i386_linux_core_read_xcr0): Remove
5261 parameter 'gdbarch' and 'target'.
5262 (i386_linux_core_read_description): Caller update.
5263 * amd64-linux-tdep.c (amd64_linux_core_read_description):
5264 Likewise.
5265 * i386-linux-tdep.h (i386_linux_core_read_xcr0): Update
5266 declaration.
5267
5268 2013-07-23 Tom Tromey <tromey@redhat.com>
5269
5270 * dwarf2read.c (init_cutu_and_read_dies): Revert patch from
5271 2013-07-22.
5272
5273 2013-07-22 Doug Evans <dje@google.com>
5274
5275 * exec.h (remove_target_sections): Delete arg abfd.
5276 * exec.c (exec_close): Update call to remove_target_sections.
5277 (remove_target_sections): Delete arg abfd.
5278 * solib.c (update_solib_list): Ditto.
5279 (reload_shared_libraries_1): Ditto.
5280 (clear_solib): Ditto, and unconditionally call remove_target_sections.
5281 * target.h (struct target_section): Rename key to owner.
5282 All uses updated.
5283
5284 2013-07-22 Tom Tromey <tromey@redhat.com>
5285
5286 * solib-som.c (som_open_symbol_file_object): Call do_cleanups.
5287
5288 2013-07-22 Tom Tromey <tromey@redhat.com>
5289
5290 * dwarf2read.c (init_cutu_and_read_dies): Remove 'free_cu_cleanup'.
5291 Simplify cleanup handling.
5292
5293 2013-07-22 Tom Tromey <tromey@redhat.com>
5294
5295 * dwarf2read.c (dwarf_decode_line_header): Call do_cleanups
5296 on all return paths.
5297
5298 2013-07-22 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
5299
5300 * ppc-linux-nat.c (PPC_DEBUG_FEATURE_DATA_BP_DAWR): New define.
5301 (ppc_linux_region_ok_for_hw_watchpoint): Add checking to use the new
5302 DAWR interface for longer ranges hardware watchpoint (up to 512 bytes).
5303
5304 2013-07-22 Phil Muldoon <pmuldoon@redhat.com>
5305
5306 * top.c (print_gdb_version): Add help, apropos description and
5307 url to online documentation.
5308
5309 2013-07-19 Hui Zhu <hui@codesourcery.com>
5310
5311 PR gdb/15692
5312 * mi/mi-cmd-break.c (mi_argv_to_format): Handle double quotes.
5313
5314 2013-07-19 Yao Qi <yao@codesourcery.com>
5315
5316 * target.c (update_current_target): Change the default action
5317 of 'to_traceframe_info' from tcomplain to return_zero.
5318 * target.h (struct target_ops) <to_traceframe_info>: Add more
5319 comments.
5320 * valops.c (read_value_memory): Call
5321 traceframe_available_memory unconditionally.
5322
5323 2013-07-18 Yao Qi <yao@codesourcery.com>
5324
5325 * coffread.c (coff_symfile_read): Iterate over minimal symbols,
5326 if the name is prefixed by "__imp_" or "_imp_", look for minimal
5327 symbol without prefix. If found, set its type to
5328 'mst_solib_trampoline'.
5329
5330 2013-07-17 Doug Evans <dje@google.com>
5331
5332 * NEWS: Mention "set print raw frame-arguments".
5333 * gdbcmd.h (setprintrawlist, showprintrawlist): Declare.
5334 * stack.c (print_raw_frame_arguments): New static global.
5335 (print_frame_arg): Set opts.raw from print_raw_frame_arguments.
5336 (_initialize_stack): New command "set/show print raw frame-arguments".
5337 * valprint.c (setprintrawlist, showprintrawlist): New globals.
5338 (set_print_raw, show_print_raw): New functions.
5339 (_initialize_valprint): New prefix command "set/show print raw".
5340 * valprint.h (value_print_options): Improve comments.
5341
5342 * cli/cli-cmds.c (init_cmd_lists): Delete unnecessary initialization
5343 of all *list variables.
5344
5345 * gdbcmd.h (togglelist): Delete.
5346 * cli/cli-cmds.c (togglelist): Delete.
5347 (init_cmd_lists): Update.
5348 * cli/cli-cmds.h (togglelist): Delete.
5349
5350 2013-07-17 Tom Tromey <tromey@redhat.com>
5351
5352 * dwarf2read.c (dwarf2_per_objfile_free): Clear
5353 dwarf2_per_objfile.
5354
5355 2013-07-16 Doug Evans <dje@google.com>
5356
5357 * nto-tdep.c (nto_relocate_section_addresses): Update,
5358 target_section.bfd deleted.
5359 * ppc64-tdep.c (ppc64_convert_from_func_ptr_addr): Ditto.
5360 * s390-tdep.c (s390_load): Ditto.
5361 * solib-aix.c (solib_aix_relocate_section_addresses): Ditto.
5362
5363 2013-07-16 Andrew Burgess <aburgess@broadcom.com>
5364
5365 * common/format.c (parse_format_string): Add checks for NULL
5366 character before calling strchr.
5367
5368 2013-07-16 Doug Evans <dje@google.com>
5369
5370 * solist.h (target_so_ops.find_and_open_solib): Clarify usage of
5371 temp_pathname argument.
5372 * nto-tdep.c (nto_find_and_open_solib): Fix setting of temp_pathname
5373 when opening the file fails.
5374
5375 * target.h (struct target_section): Delete member bfd.
5376 All users updated to use the_bfd_section->owner instead.
5377 * exec.c (add_to_section_table): Assert bfd is expected value.
5378 Remove initialization of target_section.bfd.
5379 (remove_target_sections): Update.
5380 (section_table_available_memory): Update.
5381 (section_table_xfer_memory_partial): Update.
5382 (print_section_info): Update.
5383 (exec_set_section_address): Update.
5384 * record-full.c (record_full_core_xfer_partial): Update.
5385 * solib-svr4.c (svr4_relocate_section_addresses): Update.
5386 * solib-target.c (solib_target_relocate_section_addresses): Update.
5387 * symfile.c (build_section_addr_info_from_section_table): Update.
5388 * target.c (memory_xfer_live_readonly_partial): Update.
5389 (memory_xfer_partial_1): Update.
5390
5391 2013-07-15 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
5392
5393 * ppc-linux-nat.c: Since the new PowerPC specific ptrace interface is
5394 now available for embedded (BookE) and server (BookS) processors,
5395 correct mentions of 'booke' and adjust comments accordingly in order to
5396 avoid confusion. Rename struct 'booke_debug_info' to 'hwdebug_info'.
5397 (have_ptrace_booke_interface): Rename function and variable
5398 'have_ptrace_booke_interface' to 'have_ptrace_hwdebug_interface'.
5399 Rename struct 'booke_debug_info' to 'hwdebug_info'. Update all uses.
5400 (booke_cmp_hw_point): Rename function 'booke_cmp_hw_point' to
5401 'hwdebug_point_cmp'. Update all uses.
5402 (booke_find_thread_points_by_tid): Rename function
5403 'booke_find_thread_points_by_tid' to
5404 'hwdebug_find_thread_points_by_tid'. Update all uses.
5405 (booke_insert_point): Rename function 'booke_insert_point' to
5406 'hwdebug_insert_point'. Update all uses.
5407 (booke_remove_point): Rename function 'booke_remove_point' to
5408 'hwdebug_remove_point'. Update all uses.
5409
5410 2013-07-15 Maciej W. Rozycki <macro@codesourcery.com>
5411
5412 * mips-tdep.c (mips_gdbarch_init): Replace hardcoded magic
5413 numbers with enum values.
5414
5415 2013-07-15 Ali Anwar <ali_anwar@codesourcery.com>
5416
5417 PR threads/13217
5418 * thread.c (thread_apply_all_command): Check for valid threads
5419 and thread count.
5420 (thread_array_cleanup): New struct.
5421 (set_thread_refcount): New function.
5422
5423 2013-07-11 Andrew Burgess <aburgess@broadcom.com>
5424
5425 * infcmd.c (default_print_one_register_info): Reuse function
5426 print_hex_chars.
5427
5428 2013-07-10 Tom Tromey <tromey@redhat.com>
5429
5430 * Makefile.in (GDB_WARN_CFLAGS_NO_DEFS, ADA_EXP_C): New macros.
5431 (ada-exp.o): New target.
5432
5433 2013-07-10 Sergio Durigan Junior <sergiodj@redhat.com>
5434
5435 * mt-tdep.c (mt_registers_info): Call
5436 get_no_prettyformat_print_options instead of
5437 get_raw_print_options (regression by last patch from Doug
5438 Evans).
5439
5440 2013-07-09 Pedro Alves <palves@redhat.com>
5441
5442 Checked in by Joel Brobecker <brobecker@adacore.com>.
5443 * ada-lang.c (coerce_unspec_val_to_type): Use
5444 value_optimized_out_const.
5445 * value.c (value_optimized_out_const): New function.
5446 * value.h (value_optimized_out_const): New declaration.
5447
5448 2013-07-09 Doug Evans <dje@google.com>
5449
5450 * defs.h (enum val_prettyformat): Renamed from val_prettyprint.
5451 Enum values rename as well. All uses updated.
5452 * valprint.h (value_print_options): Rename member pretty to
5453 pretty format. Rename member prettyprint_arrays to
5454 prettyformat_arrays. Rename member prettyprint_structs to
5455 prettyformat_structs. All uses updated.
5456 (get_no_prettyformat_print_options): Renamed from
5457 get_raw_print_options.
5458 * valprint.c (get_no_prettyformat_print_options): Renamed from
5459 get_raw_print_options. All callers updated.
5460 (show_prettyformat_structs): Renamed from show_prettyprint_structs.
5461 All callers updated.
5462 (show_prettyformat_arrays): Renamed from show_prettyprint_arrays.
5463 All callers updated.
5464 (_initialize_valprint): Improve help text for "set print pretty" and
5465 "set print arrays".
5466
5467 2013-07-09 Andrew Burgess <aburgess@broadcom.com>
5468
5469 * value.c (value_bits_valid): Revert previous change, and change
5470 by Pedro on 2013-07-04, due to regressions in
5471 gdb.dwarf2/implptr.exp and gdb.dwarf2/pieces.exp.
5472
5473 2013-07-08 Andrew Burgess <aburgess@broadcom.com>
5474 Pedro Alves <palves@redhat.com>
5475
5476 * value.c (value_bits_valid): If the value is not lval_computed
5477 or has no check validity handler then the answer is the
5478 optimized_out flag, otherwise defer to the handler.
5479
5480 2013-07-06 Eli Zaretskii <eliz@gnu.org>
5481
5482 * top.c (print_gdb_configuration): Explain in output of
5483 --configuration what does "relocatable" mean.
5484
5485 * main.c (print_gdb_help): Regroup options in the --help text.
5486 See http://sourceware.org/ml/gdb-patches/2013-04/msg00362.html for
5487 the relevant discussions.
5488
5489 2013-07-06 Yao Qi <yao@codesourcery.com>
5490
5491 * breakpoint.h (struct breakpoint_ops) <create_breakpoints_sal>:
5492 Remove parameter 'lsal'.
5493 * breakpoint.c (create_breakpoint): Move local variable 'lsal'
5494 to inner block. Caller update.
5495 (base_breakpoint_create_breakpoints_sal): Update.
5496 (bkpt_create_breakpoints_sal): Likewise.
5497 (tracepoint_create_breakpoints_sal): Likewise.
5498 (strace_marker_create_breakpoints_sal): Get 'lsal' from the
5499 element 0 of vector 'canonical->sals'.
5500
5501 2013-07-05 Luis Machado <lgustavo@codesourcery.com>
5502
5503 * rs6000-tdep.c (rs6000_stab_reg_to_regnum): Return the real
5504 register number instead of the pseudo register one.
5505 (rs6000_dwarf2_reg_to_regnum): Likewise.
5506
5507 2013-07-04 Pedro Alves <palves@redhat.com>
5508
5509 * findvar.c (value_of_register): Use allocate_optimized_out_value
5510 if the register has been optimized out, instead of
5511 set_value_optimized_out.
5512 * frame-unwind.c (frame_unwind_got_optimized): Use
5513 allocate_optimized_out_value.
5514
5515 2013-07-04 Pedro Alves <palves@redhat.com>
5516
5517 * value.c (value_bits_valid): If the value is not lval_computed,
5518 or doesn't have a check_validity hook, assume the value is entirely
5519 valid.
5520
5521 2013-07-04 Andrew Burgess <aburgess@broadcom.com>
5522
5523 * stack.c (read_frame_arg): No longer fetch lazy values.
5524 * value.c (value_optimized_out): If the value is not already
5525 marked optimized out, and is lazy then fetch it.
5526 (value_primitive_field): Move optimized out check to later in the
5527 function, after we have loaded any lazy values.
5528 (value_fetch_lazy): Use optimized out flag directly rather than
5529 calling optimized_out method.
5530
5531 2013-07-04 Andrew Burgess <aburgess@broadcom.com>
5532
5533 * valops.c: Don't include "user-regs.h".
5534 (value_fetch_lazy): Moved to value.c.
5535 * value.c: Include "user-regs.h".
5536 (value_fetch_lazy): Moved from valops.c.
5537
5538 2013-07-04 Yao Qi <yao@codesourcery.com>
5539
5540 Revert:
5541 2013-06-27 Yao Qi <yao@codesourcery.com>
5542
5543 * common/create-version.sh: Update comments. Handle the case
5544 that TARGET_ALIAS is empty.
5545
5546 2013-07-03 Pedro Alves <palves@redhat.com>
5547
5548 * Makefile.in (config.status): Depend on development.sh.
5549 (aclocal_m4_deps): Add libmcheck.m4.
5550 * acinclude.m4: Include libmcheck.m4.
5551 * configure.ac: Source development.sh instead of setting
5552 'development' here. --enable-libmcheck/--disable-libmcheck code
5553 factored out to GDB_AC_LIBMCHECK. Run it.
5554 * development.sh: New file.
5555 * libmcheck.m4: New file.
5556 * configure: Regenerate.
5557
5558 2013-07-02 Tom Tromey <tromey@redhat.com>
5559
5560 * contrib/ari/update-web-ari.sh: Update for version.in change.
5561
5562 2013-07-02 Tom Tromey <tromey@redhat.com>
5563
5564 * common/ptid.h: Comment fixes.
5565
5566 2013-07-01 Tom Tromey <tromey@redhat.com>
5567
5568 * dwarf2read.c (dwarf2_get_dwz_file): Return NULL if
5569 .gnu_debugaltlink not found. Use bfd_get_alt_debug_link_info.
5570 (dwarf2_read_index, create_all_comp_units): Update.
5571
5572 2013-07-01 Tom Tromey <tromey@redhat.com>
5573
5574 * configure.ac (build_warnings): Add -Wold-style-definition.
5575 * configure: Rebuild.
5576 * machoread.c (_initialize_machoread): Use "(void)".
5577 * macrocmd.c (macro_inform_no_debuginfo): Fix formatting;
5578 use "(void)".
5579
5580 2013-07-01 Tom Tromey <tromey@redhat.com>
5581
5582 * configure.ac (build_warnings): Add -Wold-style-declaration.
5583 * configure: Rebuild.
5584 * dsrec.c (make_srec): Use "static const", not "const static".
5585 * h8300-tdep.c (h8300_breakpoint_from_pc): Use "static const",
5586 not "const static".
5587 * mi/mi-parse.c (mi_no_values, mi_simple_values, mi_all_values):
5588 Use "static const", not "const static".
5589 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Use "static const",
5590 not "const static".
5591 * moxie-tdep.c (moxie_breakpoint_from_pc): Use "static const",
5592 not "const static".
5593 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Use "static const",
5594 not "const static".
5595 * v850-tdep.c (v850_breakpoint_from_pc): Use "static const",
5596 not "const static".
5597 (v850_dbtrap_breakpoint_from_pc): Likewise.
5598 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Use "static const",
5599 not "const static".
5600
5601 2013-07-01 Tom Tromey <tromey@redhat.com>
5602
5603 * configure.ac (build_warnings): Add -Wmissing-parameter-type.
5604 * configure: Rebuild.
5605
5606 2013-07-01 Pedro Alves <palves@redhat.com>
5607
5608 * defs.h: Include "pathmax.h".
5609 * utils.c: Don't include sys/param.h.
5610 (gdb_realpath): Remove code that checks for MAXPATHLEN.
5611 * solib-ia64-hpux.c (ia64_hpux_handle_load_event): Use PATH_MAX
5612 instead of MAXPATHLEN.
5613 * solib-sunos.c: Don't include sys/param.h.
5614 * xcoffread.c: Don't include sys/param.h.
5615 * bsd-kvm.c: Don't include sys/param.h.
5616 * darwin-nat.c: Don't include sys/param.h.
5617 (darwin_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
5618 * darwin-nat-info.c: Don't include sys/param.h.
5619 * fbsd-nat.c (fbsd_pid_to_exec_file): Use PATH_MAX instead of
5620 MAXPATHLEN.
5621 * i386obsd-nat.c: Don't include sys/param.h.
5622 * inf-child.c: Don't include sys/param.h.
5623 (inf_child_fileio_readlink): Use PATH_MAX instead of MAXPATHLEN.
5624 * linux-fork.c: Don't include sys/param.h.
5625 (fork_save_infrun_state): Use PATH_MAX instead of MAXPATHLEN.
5626 * linux-nat.c: Don't include sys/param.h.
5627 (linux_child_pid_to_exec_file, linux_proc_pending_signals)
5628 (linux_proc_pending_signals): Use PATH_MAX instead of MAXPATHLEN.
5629 * m68klinux-nat.c: Don't include sys/param.h.
5630 * nbsd-nat.c: Don't include sys/param.h.
5631 (nbsd_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
5632 * ppc-linux-nat.c: Don't include sys/param.h.
5633 * rs6000-nat.c: Don't include sys/param.h.
5634 * spu-linux-nat.c. Don't include sys/param.h.
5635 * windows-nat.c: Don't include sys/param.h.
5636 * xtensa-linux-nat.c: Don't include sys/param.h.
5637 * config/i386/nm-fbsd.h: Don't include sys/param.h.
5638
5639 2013-07-01 Pedro Alves <palves@redhat.com>
5640
5641 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add pathmax.
5642 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/pathmax.m4.
5643 * gnulib/aclocal.m4: Regenerate.
5644 * gnulib/config.in: Regenerate.
5645 * gnulib/configure: Regenerate.
5646 * gnulib/import/pathmax.h: New file.
5647 * gnulib/import/Makefile.am: Regenerate.
5648 * gnulib/import/Makefile.in: Regenerate.
5649 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
5650 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
5651 * gnulib/import/m4/pathmax.m4: New file.
5652
5653 2013-07-01 Pedro Alves <palves@redhat.com>
5654
5655 * configure.ac (GDBINIT): Define, depending on host.
5656 * go32-nat.c (init_go32_ops): Don't override gdbinit here.
5657 * top.c (PATH_MAX): Delete fallback definition.
5658 (GDBINIT_FILENAME): Delete.
5659 (gdbinit): Reimplement as const char array set to the GDBINIT
5660 string constant.
5661 * top.h (gdbinit): Make const.
5662 * configure, config.in: Regenerate.
5663
5664 2013-07-01 Pedro Alves <palves@redhat.com>
5665
5666 * cli/cli-cmds.c (source_script): Make 'file' parameter const.
5667 * cli/cli-cmds.h (source_script): Likewise.
5668 * exceptions.c (catch_command_errors_const): New function.
5669 * exceptions.h (catch_command_errors_const): Declare.
5670 * main.c (get_init_files): Make parameters const, and adjust.
5671 (captured_main): Make 'system_gdbinit', 'home_gdbinit' and
5672 'local_gdbinit' locals const. Adjust to use
5673 catch_command_errors_const.
5674 (print_gdb_help): Make 'system_gdbinit', 'home_gdbinit' and
5675 'local_gdbinit' locals const.
5676
5677 2013-07-01 Pedro Alves <palves@redhat.com>
5678
5679 * defs.h: Don't check HAVE_UNISTD_H before including <unistd.h>.
5680 (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO): Delete.
5681 * tracepoint.c: Don't check HAVE_UNISTD_H before including
5682 <unistd.h>.
5683
5684 2013-07-01 Pedro Alves <palves@redhat.com>
5685
5686 Import the "unistd" gnulib module.
5687 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add "unistd".
5688 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/off_t.m4,
5689 import/m4/ssize_t.m4, import/m4/sys_types_h.m4 and
5690 import/m4/unistd_h.m4.
5691 * gnulib/aclocal.m4: Renenerate.
5692 * gnulib/config.in: Renenerate.
5693 * gnulib/configure: Renenerate.
5694 * gnulib/import/Makefile.am: Renenerate.
5695 * gnulib/import/Makefile.in: Renenerate.
5696 * gnulib/import/m4/gnulib-cache.m4: Renenerate.
5697 * gnulib/import/m4/gnulib-comp.m4: Renenerate.
5698 * gnulib/import/m4/off_t.m4: New file.
5699 * gnulib/import/m4/ssize_t.m4: New file.
5700 * gnulib/import/m4/sys_types_h.m4: New file.
5701 * gnulib/import/m4/unistd_h.m4: New file.
5702 * gnulib/import/sys_types.in.h: New file.
5703 * gnulib/import/unistd.c: New file.
5704 * gnulib/import/unistd.in.h: New file.
5705
5706 2013-07-01 Pedro Alves <palves@redhat.com>
5707
5708 * utils.c <pathconf/_PC_PATH_MAX use>: Check if _PC_PATH_MAX is
5709 defined instead of checking HAVE_UNISTD_H.
5710
5711 2013-07-01 Pedro Alves <palves@redhat.com>
5712
5713 Reimport gnulib from scratch.
5714 * gnulib/Makefile.in (aclocal_m4_deps): Remove reference to
5715 import/m4/onceonly.m4.
5716 * gnulib/aclocal.m4: Renegerate.
5717 * gnulib/config.in: Renegerate.
5718 * gnulib/configure: Renegerate.
5719 * gnulib/import/Makefile.in: Renegerate.
5720 * gnulib/import/extra/update-copyright: Renegerate.
5721 * gnulib/import/m4/onceonly.m4: Delete.
5722
5723 2013-07-01 Pedro Alves <palves@redhat.com>
5724
5725 * tui/tui-regs.c (pagination_enabled): Delete declaration.
5726
5727 2013-06-30 Jan Kratochvil <jan.kratochvil@redhat.com>
5728
5729 Code cleanup.
5730 * remote.c (async_remote_interrupt_twice): Make it static.
5731 * remote.h (async_remote_interrupt_twice): Remove the declaration.
5732
5733 2013-06-29 Sergio Durigan Junior <sergiodj@redhat.com>
5734
5735 * ia64-linux-tdep.c: Include <ctype.h>.
5736 (ia64_linux_stap_is_single_operand): New function.
5737 (ia64_linux_init_abi): Initialize SystemTap related attributes.
5738
5739 2013-06-28 Tom Tromey <tromey@redhat.com>
5740
5741 * Makefile.in (version.c): Use version.in, not
5742 common/version.in.
5743 * common/create-version.sh: Likewise.
5744 * common/version.in: Move...
5745 * version.in: ...here.
5746
5747 2013-06-28 Pedro Alves <palves@redhat.com>
5748
5749 * infrun.c (set_observer_mode): Don't declare pagination_enabled
5750 here.
5751 * utils.h (pagination_enabled): Declare.
5752
5753 2013-06-28 Pedro Alves <palves@redhat.com>
5754
5755 * infrun.c (non_stop, non_stop_1, set_non_stop, show_non_stop):
5756 Move higher up in file.
5757
5758 2013-06-28 Tom Tromey <tromey@redhat.com>
5759
5760 * tracepoint.c (deprecated_readline_begin_hook)
5761 (deprecated_readline_hook, deprecated_readline_end_hook): Don't
5762 declare.
5763
5764 2013-06-28 Pedro Alves <palves@redhat.com>
5765
5766 PR tui/14880
5767 * tui/tui-regs.c (tui_get_register): Fetch value contents before
5768 checking if they're available.
5769 * value.c (value_available_contents_eq): Change comment.
5770 * value.h (value_available_contents_eq): Expand comment.
5771
5772 2013-06-27 Tom Tromey <tromey@redhat.com>
5773
5774 * target.c (find_run_target): Remove.
5775 * target.h (find_run_target): Remove.
5776
5777 2013-06-27 Tom Tromey <tromey@redhat.com>
5778
5779 * corelow.c (core_gdbarch): Now static.
5780
5781 2013-06-27 Tom Tromey <tromey@redhat.com>
5782
5783 * target.c (target_struct_index): Remove.
5784
5785 2013-06-27 Pedro Alves <palves@redhat.com>
5786
5787 * infrun.c: Remove comment describing the 'stepping over runtime
5788 loader dynamic symbol resolution code' mechanism; moved to
5789 gdbint.texinfo.
5790
5791 2013-06-27 Pedro Alves <palves@redhat.com>
5792
5793 * exceptions.c (catch_command_errors): Remove spurious space.
5794 * exceptions.h (catch_command_errors): Second parameter is "arg",
5795 not "command".
5796
5797 2013-06-27 Yao Qi <yao@codesourcery.com>
5798
5799 * common/create-version.sh: Update comments. Handle the case
5800 that TARGET_ALIAS is empty.
5801
5802 2013-06-26 Pedro Alves <palves@redhat.com>
5803
5804 * infrun.c (SOLIB_IN_DYNAMIC_LINKER): Delete macro and describing
5805 comment.
5806
5807 2013-06-26 Pedro Alves <palves@redhat.com>
5808
5809 * infrun.c: Update comments on stepping over runtime loader
5810 dynamic symbol resolution code.
5811
5812 2013-06-26 Sergio Durigan Junior <sergiodj@redhat.com>
5813
5814 * ax-gdb.h (union exp_element): Forward declare.
5815 * parser-defs.h: Include expression.h.
5816
5817 2013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
5818
5819 * mips-tdep.c (fetch_mips_16): Use unmake_compact_addr.
5820
5821 2013-06-26 Dmitry Kozlov <ddk@codesourcery.com>
5822
5823 * tracepoint.c (trace_save): Extend tsave to save starttime, stoptime.
5824
5825 2013-06-26 Dmitry Kozlov <ddk@codesourcery.com>
5826
5827 Fix trace-status to output proper start-time and stop-time.
5828 * tracepoint.c (trace_status_command): Fix type of printf arg to
5829 prevent improper type conversion.
5830 (trace_status_mi): Likewise.
5831
5832 2013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
5833
5834 * mips-tdep.c (mips_next_pc): Fix a typo.
5835
5836 2013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
5837
5838 * mips-tdep.c (micromips_scan_prologue): Fix a typo.
5839
5840 2013-06-26 Pedro Alves <pedro@codesourcery.com>
5841 Yao Qi <yao@codesourcery.com>
5842
5843 * mi/mi-cmds.c (mi_cmds): Register -trace-frame-collected.
5844 * mi/mi-cmds.h (mi_cmd_trace_frame_collected): Declare.
5845 * mi/mi-main.c (print_variable_or_computed): New function.
5846 (mi_cmd_trace_frame_collected): New function.
5847 * tracepoint.c (find_trace_state_variable_by_number): New.
5848 (struct traceframe_info): Move to tracepoint.h
5849 (struct collection_list): Likewise.
5850 (do_collect_symbol): Include locals and arguments in the
5851 collected variables list.
5852 (clear_collection_list): Clear wholly collected variables list
5853 and computed variables list.
5854 (append_exp): New function.
5855 (encode_actions_1): Include variables in the wholly
5856 collected variables list. Include memory ranges and
5857 full-fledged expressions in the computed expressions list.
5858 (encode_actions): Move some code to ...
5859 Return the cleanup chain.
5860 (encode_actions_rsp): ... here. New function.
5861 (get_traceframe_location, get_traceframe_info): Remove static.
5862 * tracepoint.h (struct memrange): Moved from tracepoint.c.
5863 (struct collection_list): Moved from tracepoint.c. Add two
5864 new fields 'wholly_collected' and 'computed'.
5865 (find_trace_state_variable_by_number): Declare.
5866 (encode_actions): Adjust declaration.
5867 (encode_actions_rsp): Declare.
5868 (get_traceframe_info, get_traceframe_location): Declare.
5869
5870 * NEWS: Mention new MI command -trace-frame-collected.
5871
5872 2013-06-26 Pedro Alves <pedro@codesourcery.com>
5873 Yao Qi <yao@codesourcery.com>
5874
5875 * ctf.c (ctf_traceframe_info): Push trace state variables
5876 present in the trace data into the traceframe info object.
5877 * breakpoint.c (DEF_VEC_I): Remove.
5878 * common/filestuff.c (DEF_VEC_I): Likewise.
5879 * dwarf2loc.c (DEF_VEC_I): Likewise.
5880 * mi/mi-main.c (DEF_VEC_I): Likewise.
5881 * common/gdb_vecs.h (DEF_VEC_I): Define vector for int.
5882 * features/traceframe-info.dtd: Add tvar element and its
5883 attributes.
5884 * tracepoint.c (free_traceframe_info): Free vector 'tvars'.
5885 (build_traceframe_info): Push trace state variables present in
5886 the trace data into the traceframe info object.
5887 (traceframe_info_start_tvar): New function.
5888 (tvar_attributes): New.
5889 (traceframe_info_children): Add "tvar" element.
5890 * tracepoint.h (struct traceframe_info) <tvars>: New field.
5891
5892 * NEWS: Mention the change in GDB and GDBserver.
5893
5894 2013-06-26 Pedro Alves <pedro@codesourcery.com>
5895 Yao Qi <yao@codesourcery.com>
5896
5897 * tracepoint.c (trace_dump_command): Move code to ...
5898 (get_traceframe_location): ... here. New.
5899
5900 2013-06-26 Pedro Alves <pedro@codesourcery.com>
5901 Yao Qi <yao@codesourcery.com>
5902
5903 * tracepoint.c (trace_dump_command): GDB emits an error
5904 instead of a warning when a traceframe is not selected.
5905
5906 2013-06-26 Pedro Alves <pedro@codesourcery.com>
5907 Yao Qi <yao@codesourcery.com>
5908
5909 * tracepoint.c (tracepoint_list, stepping_list): Remove.
5910 (clear_collection_list): Free fields 'aexpre_list' and 'list'
5911 in collection_list.
5912 (do_clear_collection_list, init_collection_list): New.
5913 (encode_actions): Add local variables 'tracepoint_list' and
5914 'stepping_list'. Call init_collection_list and make cleanup
5915 which calls do_clear_collection_list. Don't call
5916 clear_collection_list.
5917 (_initialize_tracepoint): Delete references to
5918 'tracepoint_list' and 'stepping_list'.
5919
5920 2013-06-25 Tom Tromey <tromey@redhat.com>
5921
5922 * common/create-version.sh (date): Use "$", not "$$" in sed
5923 expression.
5924
5925 2013-06-25 Kevin Buettner <kevinb@redhat.com>
5926
5927 * NEWS (New targets): Add entry for TI MSP430.
5928
5929 2013-06-25 Yao Qi <yao@codesourcery.com>
5930
5931 * remote.c (remote_start_remote): Move code to upload tsv
5932 earlier.
5933
5934 2013-06-25 Yao Qi <yao@codesourcery.com>
5935 Hui Zhu <hui@codesourcery.com>
5936 Pedro Alves <palves@redhat.com>
5937
5938 PR breakpoints/15075
5939 PR breakpoints/15434
5940 * breakpoint.c (bpstat_stop_status): Call
5941 b->ops->after_condition_true.
5942 (update_dprintf_command_list): Don't append "continue" command
5943 to the command list of dprintf breakpoint.
5944 (base_breakpoint_after_condition_true): New function.
5945 (base_breakpoint_ops): Add base_breakpoint_after_condition_true.
5946 (dprintf_after_condition_true): New function.
5947 (initialize_breakpoint_ops): Set dprintf_after_condition_true.
5948 * breakpoint.h (breakpoint_ops): Add after_condition_true.
5949
5950 2013-06-24 Kevin Buettner <kevinb@redhat.com>
5951
5952 * Makefile.in (ALL_TARGET_OBS): Add msp430-tdep.o.
5953 (ALLDEPFILES): Add msp430-tdep.c.
5954 * configure.tgt (msp430*-*-elf): New target.
5955 * msp430-tdep.c: New file.
5956
5957 2013-06-24 Maciej W. Rozycki <macro@codesourcery.com>
5958
5959 * mips-tdep.c (mips_elf_make_msymbol_special): Handle MIPS16 and
5960 microMIPS synthetic symbols.
5961
5962 2013-06-24 Maciej W. Rozycki <macro@codesourcery.com>
5963
5964 * objfiles.h (pc_in_section): New prototype.
5965 (in_plt_section): Remove name argument, replace prototype with
5966 static inline function.
5967 * mips-tdep.h: Include "objfiles.h".
5968 (in_mips_stubs_section): New function.
5969 * hppa-tdep.h (gdbarch_tdep): Remove name argument of
5970 in_solib_call_trampoline member.
5971 (hppa_in_solib_call_trampoline): Remove name argument.
5972 * objfiles.c (pc_in_section): New function.
5973 (in_plt_section): Remove function.
5974 * mips-linux-tdep.c: Include "objfiles.h".
5975 (mips_linux_in_dynsym_stub): Call in_mips_stubs_section. Remove
5976 name argument. Return 1 rather than the low 16-bit halfword of
5977 any instruction examined.
5978 (mips_linux_in_dynsym_resolve_code): Update
5979 mips_linux_in_dynsym_stub call accordingly.
5980 * mips-tdep.c (mips_stub_frame_sniffer): Use in_mips_stubs_section
5981 rather than an equivalent hand-coded sequence.
5982 * hppa-hpux-tdep.c (in_opd_section): Remove function.
5983 (hppa32_hpux_in_solib_call_trampoline): Remove name argument.
5984 (hppa64_hpux_in_solib_call_trampoline): Likewise.
5985 (hppa64_hpux_find_global_pointer): Use pc_in_section rather than
5986 in_opd_section.
5987 * hppa-tdep.c (hppa_stub_unwind_sniffer): Remove name argument
5988 on call to tdep->in_solib_call_trampoline.
5989 (hppa_in_solib_call_trampoline): Remove name argument, update
5990 according to in_plt_section change.
5991 (hppa_skip_trampoline_code): Update according to in_plt_section
5992 change.
5993 * aarch64-tdep.c (aarch64_stub_unwind_sniffer): Likewise.
5994 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code):
5995 Likewise.
5996 * arm-tdep.c (arm_stub_unwind_sniffer): Likewise.
5997 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): Likewise.
5998 * hppabsd-tdep.c (hppabsd_find_global_pointer): Likewise.
5999 * nios2-tdep.c (nios2_stub_frame_sniffer): Likewise.
6000 * nto-tdep.c (nto_relocate_section_addresses): Likewise.
6001 * s390-tdep.c (s390_stub_frame_sniffer): Likewise.
6002 * sh-tdep.c (sh_stub_unwind_sniffer): Likewise.
6003 * solib-dsbt.c (dsbt_in_dynsym_resolve_code): Likewise.
6004 * solib-frv.c (frv_in_dynsym_resolve_code): Likewise.
6005 * solib-svr4.c (svr4_in_dynsym_resolve_code): Likewise.
6006 * solib-target.c (solib_target_in_dynsym_resolve_code): Likewise.
6007 * sparc-tdep.c (sparc_analyze_prologue): Likewise.
6008 * tic6x-tdep.c (tic6x_stub_unwind_sniffer): Likewise.
6009
6010 2013-06-24 Joel Brobecker <brobecker@adacore.com>
6011
6012 * common/create-version.sh: Fix expansion of $host_alias
6013 and $target_alias in generation of HOST_NAME and TARGET_NAME
6014 (resp.).
6015
6016 2013-06-24 Tom Tromey <tromey@redhat.com>
6017
6018 * common/create-version.sh: New file.
6019 * Makefile.in (version.c): Use bfd/version.h, common/version.in,
6020 create-version.sh.
6021 (HFILES_NO_SRCDIR): Use common/version.h.
6022 * version.in: Move to ...
6023 * common/version.in: ... here. Replace date with "DATE".
6024 * version.h: Move to ...
6025 * common/version.h: ... here.
6026
6027 2013-06-21 Joel Brobecker <brobecker@adacore.com>
6028
6029 * gdb/gnulib/Makefile.in: Update date in copyright header.
6030 * gdb/gnulib/configure.ac: Ditto.
6031 * gdb/gnulib/update-gnulib.sh: Ditto.
6032
6033 2013-06-21 Joel Brobecker <brobecker@adacore.com>
6034
6035 * copyright.py (EXCLUDE_LIST): Replace "gdb/gnulib" by
6036 "gdb/gnulib/import".
6037
6038 2013-06-21 Will Newton <will.newton@linaro.org>
6039
6040 * doublest.c (ldfrexp): Remove function.
6041 (convert_doublest_to_floatformat): Call frexpl instead of
6042 ldfrexp.
6043
6044 2013-06-21 Will Newton <will.newton@linaro.org>
6045
6046 * gnulib/update-gnulib.sh(IMPORTED_GNULIB_MODULES): Add frexpl.
6047 * gnulib/aclocal.m4: Regenerate.
6048 * gnulib/config.in: Regenerate.
6049 * gnulib/configure: Regenerate.
6050 * gnulib/import/Makefile.am: Update.
6051 * gnulib/import/Makefile.in: Update.
6052 * gnulib/import/m4/gnulib-cache.m4: Update.
6053 * gnulib/import/m4/gnulib-comp.m4: Update.
6054 * gnulib/import/float+.h: Import.
6055 * gnulib/import/float.c: Import.
6056 * gnulib/import/float.in.h: Import.
6057 * gnulib/import/fpucw.h: Import.
6058 * gnulib/import/frexp.c: Import.
6059 * gnulib/import/frexpl.c: Import.
6060 * gnulib/import/isnan.c: Import.
6061 * gnulib/import/isnand-nolibm.h: Import.
6062 * gnulib/import/isnand.c: Import.
6063 * gnulib/import/isnanl-nolibm.h: Import.
6064 * gnulib/import/isnanl.c: Import.
6065 * gnulib/import/itold.c: Import.
6066 * gnulib/import/m4/exponentd.m4: Import.
6067 * gnulib/import/m4/exponentl.m4: Import.
6068 * gnulib/import/m4/float_h.m4: Import.
6069 * gnulib/import/m4/fpieee.m4: Import.
6070 * gnulib/import/m4/frexp.m4: Import.
6071 * gnulib/import/m4/frexpl.m4: Import.
6072 * gnulib/import/m4/isnand.m4: Import.
6073 * gnulib/import/m4/isnanl.m4: Import.
6074 * gnulib/import/m4/math_h.m4: Import.
6075 * gnulib/import/math.c: Import.
6076 * gnulib/import/math.in.h: Import.
6077
6078 2013-06-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6079
6080 * common/linux-btrace.c (cpu_supports_btrace): Remove variable vendor,
6081 replace strcmp with signature_INTEL_ebx, signature_INTEL_ecx and
6082 signature_INTEL_edx comparisons.
6083
6084 2013-06-20 Doug Evans <dje@google.com>
6085
6086 symtab/15652
6087 * dwarf2read.c (try_open_dwop_file): New arg search_cwd.
6088 All callers updated.
6089 (open_dwp_file): If we can't find the dwp file, search the basename
6090 in debug-file-directory.
6091
6092 * dwarf2read.c (struct dwp_file): Fix comment.
6093 (open_and_init_dwp_file): Set dwp_file->name to bfd's file name.
6094
6095 * source.c (openp): Document OPF_TRY_CWD_FIRST+OPF_SEARCH_IN_PATH
6096 better.
6097
6098 2013-06-20 Yao Qi <yao@codesourcery.com>
6099
6100 * breakpoint.c (create_breakpoint): Fix code indentation.
6101
6102 2013-06-20 Yao Qi <yao@codesourcery.com>
6103
6104 * breakpoint.c (create_breakpoints_sal_default): Remove
6105 parameter 'lsal'. Update declaration.
6106 (bkpt_create_breakpoints_sal): Caller update.
6107 (tracepoint_create_breakpoints_sal): Likewise.
6108
6109 2013-06-20 Pedro Alves <pedro@codesourcery.com>
6110 Yao Qi <yao@codesourcery.com>
6111
6112 * NEWS: Mention the new option '--skip-unavailable' of command
6113 -data-list-register-values.
6114 * mi/mi-main.c (mi_cmd_data_list_register_values): Accept the
6115 --skip-unavailable option. Adjust to use output_register.
6116 (output_register): Add new 'skip_unavailable' parameter.
6117 Handle it.
6118
6119 2013-06-19 Mike Frysinger <vapier@gentoo.org>
6120
6121 * Makefile.in (HFILES_NO_SRCDIR): Add common/i386-cpuid.h and
6122 common/i386-gcc-cpuid.h.
6123 * common/i386-cpuid.h: New wrapper header around i386-gcc-cpuid.h.
6124 * common/i386-gcc-cpuid.h: Rename from testsuite/gdb.arch/i386-cpuid.h.
6125 Copy the latest version from upstream gcc.
6126 * common/linux-btrace.c: Include i386-cpuid.h.
6127 (intel_supports_btrace): Delete x86 ifdefs and replace inline asm with
6128 call to i386_cpuid.
6129 (cpu_supports_btrace): Likewise.
6130 * go32-nat.c: Include i386-cpuid.h.
6131 (go32_sysinfo): Add (disabled) calls to i386_cpuid with comments.
6132
6133 2013-06-19 Doug Evans <dje@google.com>
6134
6135 * symfile.c (symfile_bfd_open): Delete unnecessary declaration.
6136 (get_section_index): Ditto.
6137
6138 2013-06-19 Tom Tromey <tromey@redhat.com>
6139
6140 * breakpoint.c (_initialize_breakpoint): Remove trailing \n from
6141 "dprintf" help.
6142
6143 2013-06-18 Doug Evans <dje@google.com>
6144
6145 * dwarf2read.c (dw2_symtab_iter_next): Check value of cu_index
6146 before using it.
6147 (dw2_expand_symtabs_matching): Fix symbol kind validity check.
6148 Move test of cu_index closer to use. Print complaint if cu_index
6149 is bad.
6150
6151 2013-06-18 Joel Brobecker <brobecker@adacore.com>
6152
6153 * machoread.c (oso_vector): Delete this global.
6154 (macho_register_oso): Add new parameter "oso_vector_ptr".
6155 Use it instead of the "oso_vector" global.
6156 (macho_symtab_read, macho_symfile_read_all_oso): Likewise.
6157 (macho_symfile_read): Use a local oso_vector, to be free'ed
6158 at the end of this function, in place of the old "oso_vector"
6159 global. Update various function calls accordingly. Use one
6160 single cleanup chain for the entire function.
6161
6162 2013-06-18 Joel Brobecker <brobecker@adacore.com>
6163
6164 * dwarf2read.c (dwarf2_per_objfile_free): Replace uses of
6165 DWARF2_PER_OBJFILE by uses of DATA instead.
6166
6167 2013-06-18 Tom Tromey <tromey@redhat.com>
6168
6169 * break-catch-sig.c (signal_catchpoint_explains_signal): Add 'sig'
6170 argument.
6171 * breakpoint.c (bpstat_explains_signal): Add 'sig' argument.
6172 Special case signals other than GDB_SIGNAL_TRAP.
6173 (explains_signal_watchpoint): New function.
6174 (base_breakpoint_explains_signal): Add 'sig' argument.
6175 (initialize_breakpoint_ops): Set 'explains_signal' method for
6176 watchpoints.
6177 * breakpoint.h (struct breakpoint_ops) <explains_signal>: Add
6178 signal argument.
6179 (bpstat_explains_signal): Likewise.
6180 * infrun.c (handle_syscall_event, handle_inferior_event): Update.
6181
6182 2013-06-18 Tom Tromey <tromey@redhat.com>
6183
6184 * python/py-inferior.c (gdbpy_selected_inferior): Don't incref.
6185
6186 2013-06-18 Tom Tromey <tromey@redhat.com>
6187
6188 * python/python.c (finish_python_initialization): Decref
6189 'pythondir' on failure path as well.
6190
6191 2013-06-18 Tom Tromey <tromey@redhat.com>
6192
6193 PR symtab/15391:
6194 * dwarf2loc.c (read_pieced_value): Truncate this_size_bits
6195 after taking bits_to_skip into account. Sign extend byte_offset.
6196 * utils.h (gdb_sign_extend): Declare.
6197 * utils.c (gdb_sign_extend): New function.
6198
6199 2013-06-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6200
6201 * dwarf2read.c (write_psymtabs_to_index): Ignore NULL PSYMTAB.
6202
6203 2013-06-17 Pierre Muller <muller@sourceware.org>
6204
6205 * corelow.c (core_open): Print GDB signal name instead of target
6206 signal number.
6207
6208 2013-06-17 Mike Frysinger <vapier@gentoo.org>
6209
6210 * .gitignore: Add /gcore.
6211
6212 2013-06-13 Doug Evans <dje@google.com>
6213
6214 * dwarf2read.c (try_open_dwop_file): Work around behaviour of
6215 OPF_TRY_CWD_FIRST to not search path if the file contains a '/'.
6216
6217 2013-06-12 Phil Muldoon <pmuldoon@redhat.com>
6218
6219 * stack.c (backtrace_command_1): Fix indentation.
6220
6221 2013-06-11 Joel Brobecker <brobecker@adacore.com>
6222
6223 * window-nat.c (thread_rec): Add missing empty line after
6224 local variable declaration.
6225
6226 2013-06-11 Joel Brobecker <brobecker@adacore.com>
6227
6228 * windows-nat.c (thread_rec): Revert format used to print
6229 error code returned by SuspendThread from %d back to %u.
6230
6231 2013-06-11 Joel Brobecker <brobecker@adacore.com>
6232
6233 * windows-nat.c (windows_continue): Add "0x" prefix for thread
6234 ID in debug trace.
6235 (get_windows_debug_event): Likewise, for all debug traces.
6236
6237 2013-06-11 Joel Brobecker <brobecker@adacore.com>
6238
6239 * window-nat.c (thread_rec): Add thread ID in SuspendThread
6240 warning message.
6241
6242 2013-06-08 Pedro Alves <pedro@codesourcery.com>
6243 Yao Qi <yao@codesourcery.com>
6244
6245 * mi/mi-main.c (get_register): Remove declaration.
6246 (output_register): Declare.
6247 (mi_cmd_data_list_register_values): Remove local variable
6248 'tuple_cleanup'. Move some code into output_register.
6249 (get_register): Renamed to ...
6250 (output_register): ... this. Output the register's
6251 "number" ui_out tuple here.
6252
6253 2013-06-07 Pedro Alves <palves@redhat.com>
6254
6255 * darwin-nat.c: Fix formating in copyright header.
6256 * darwin-nat.h: Likewise.
6257 * gnu-nat.c: Likewise.
6258 * machoread.c: Likewise.
6259
6260 2013-06-07 Pedro Alves <palves@redhat.com>
6261
6262 PR server/14823
6263 * regformats/regdat.sh: Output #include tdesc.h. Make globals
6264 static. Output a global target description pointer.
6265 (init_registers_${name}): Adjust to initialize a
6266 target description structure.
6267
6268 2013-06-07 Will Newton <will.newton@linaro.org>
6269
6270 * printcmd.c (build_address_symbolic): Call
6271 gdbarch_addr_bits_remove for text minimal symbols.
6272
6273 2013-06-07 Will Newton <will.newton@linaro.org>
6274
6275 * MAINTAINERS: Add myself to Write After Approval.
6276
6277 2013-06-07 Yao Qi <yao@codesourcery.com>
6278
6279 * tracepoint.c (start_tracing): Move code to ...
6280 (trace_reset_local_state): ... here. New.
6281 (disconnect_tracing): Don't call set_current_traceframe,
6282 set_tracepoint_num, and set_traceframe_context. Call
6283 trace_reset_local_state instead.
6284 (tfile_close): Call trace_reset_local_state.
6285 * ctf.c (ctf_close): Likewise.
6286 * remote.c (remote_close): Likewise.
6287 * tracepoint.h (trace_reset_local_state): Declare.
6288
6289 2013-06-06 Doug Evans <dje@google.com>
6290
6291 * dwarf2read.c: Whitespace fixes for DWP file format documentation,
6292 and fix header docs.
6293
6294 2013-06-05 Doug Evans <dje@google.com>
6295 Keith Seitz <keiths@redhat.com>
6296
6297 PR 15519
6298 * cp-namespace.c (find_symbol_in_baseclass): Call
6299 cp_lookup_symbol_in_namespace instead of cp_lookup_symbol_namespace.
6300 Check result of call to lookup_symbol_static.
6301 Call lookup_static_symbol_aux unconditionally.
6302 Call check_typedef on base types before accessing them.
6303 (cp_lookup_nested_symbol): Fix comment.
6304
6305 2013-06-05 Luis Machado <lgustavo@codesourcery.com>
6306
6307 * gnu-v3-abi.c (gnuv3_skip_trampoline): Handle thunk
6308 minimal symbols pointing to function descriptors.
6309
6310 2013-06-05 Tom Tromey <tromey@redhat.com>
6311
6312 * python/py-utils.c (gdb_pymodule_addobject): Cast away const.
6313
6314 2013-06-04 Sergio Durigan Junior <sergiodj@redhat.com>
6315 Pedro Alves <palves@redhat.com>
6316
6317 * remote.c (remote_wait_as): Restore signal handler before returning
6318 when GDB gets a notification.
6319
6320 2013-06-04 Gary Benson <gbenson@redhat.com>
6321
6322 PR 2328
6323 * breakpoint.h (handle_solib_event): Moved function declaration
6324 to solib.h.
6325 * breakpoint.c (handle_solib_event): Moved function to solib.c.
6326 (bpstat_stop_status): Pass new argument to handle_solib_event.
6327 * solib.h (update_solib_breakpoints): New function declaration.
6328 (handle_solib_event): Moved function declaration from
6329 breakpoint.h.
6330 * solib.c (update_solib_breakpoints): New function.
6331 (handle_solib_event): Moved function from breakpoint.c.
6332 Updated to call solib_ops->handle_event if not NULL.
6333 * solist.h (target_so_ops): New fields "update_breakpoints" and
6334 "handle_event".
6335 * infrun.c (set_stop_on_solib_events): New function.
6336 (_initialize_infrun): Use the above for "set
6337 stop-on-solib-events".
6338 (handle_inferior_event): Pass new argument to handle_solib_event.
6339 * solib-svr4.c (probe.h): New include.
6340 (svr4_free_library_list): New forward declaration.
6341 (probe_action): New enum.
6342 (probe_info): New struct.
6343 (probe_info): New static variable.
6344 (NUM_PROBES): New definition.
6345 (svr4_info): New fields "using_xfer", "probes_table" and
6346 "solib_list".
6347 (free_probes_table): New function.
6348 (free_solib_list): New function.
6349 (svr4_pspace_data_cleanup): Free probes table and solib list.
6350 (svr4_copy_library_list): New function.
6351 (svr4_current_sos_via_xfer_libraries): New parameter "annex".
6352 (svr4_read_so_list): New parameter "prev_lm".
6353 (svr4_current_sos_direct): Renamed from "svr4_current_sos".
6354 (svr4_current_sos): New function.
6355 (probe_and_action): New struct.
6356 (hash_probe_and_action): New function.
6357 (equal_probe_and_action): Likewise.
6358 (register_solib_event_probe): Likewise.
6359 (solib_event_probe_at): Likewise.
6360 (solib_event_probe_action): Likewise.
6361 (solist_update_full): Likewise.
6362 (solist_update_incremental): Likewise.
6363 (disable_probes_interface_cleanup): Likewise.
6364 (svr4_handle_solib_event): Likewise.
6365 (svr4_update_solib_event_breakpoint): Likewise.
6366 (svr4_update_solib_event_breakpoints): Likewise.
6367 (svr4_create_solib_event_breakpoints): Likewise.
6368 (enable_break): Free probes table before creating breakpoints.
6369 Use svr4_create_solib_event_breakpoints to create breakpoints.
6370 (svr4_solib_create_inferior_hook): Free the solib list.
6371 (_initialize_svr4_solib): Initialise
6372 svr4_so_ops.handle_solib_event and svr4_so_ops.update_breakpoints.
6373
6374 2013-06-04 Gary Benson <gbenson@redhat.com>
6375
6376 * target.h (target_ops): New field
6377 "to_augmented_libraries_svr4_read".
6378 (target_augmented_libraries_svr4_read): New macro.
6379 * target.c (update_current_target): Handle
6380 to_augmented_libraries_svr4_read.
6381 * remote.c (remote_state): New field
6382 "augmented_libraries_svr4_read".
6383 (remote_augmented_libraries_svr4_read_feature): New function.
6384 (remote_protocol_features): Add entry for
6385 "augmented-libraries-svr4-read".
6386 (remote_augmented_libraries_svr4_read): New function.
6387 (init_remote_ops): Initialize
6388 remote_ops.to_augmented_libraries_svr4_read.
6389
6390 2013-06-04 Gary Benson <gbenson@redhat.com>
6391
6392 * NEWS: Update.
6393
6394 2013-06-04 Gary Benson <gbenson@redhat.com>
6395
6396 * objfiles.h (inhibit_section_map_updates): New function
6397 declaration.
6398 (resume_section_map_updates): Likewise.
6399 (resume_section_map_updates_cleanup): Likewise.
6400 * objfiles.c (objfile_pspace_info): Removed field
6401 "objfiles_changed_p". New fields "new_objfiles_available",
6402 "section_map_dirty" and "inhibit_updates".
6403 (allocate_objfile): Set new_objfiles_available.
6404 (free_objfile): Set section_map_dirty.
6405 (objfile_relocate1): Likewise.
6406 (in_plt_section): Likewise.
6407 (find_pc_section): Update the conditions under which the
6408 section map will be updated.
6409 (inhibit_section_map_updates): New function.
6410 (resume_section_map_updates): Likewise.
6411 (resume_section_map_updates_cleanup): Likewise.
6412
6413 2013-06-04 Gary Benson <gbenson@redhat.com>
6414
6415 * probe.h (get_probe_argument_count): New declaration.
6416 (evaluate_probe_argument): Likewise.
6417 * probe.c (get_probe_argument_count): New function.
6418 (evaluate_probe_argument): Likewise.
6419 (probe_safe_evaluate_at_pc): Use the above new functions.
6420
6421 2013-06-04 Alan Modra <amodra@gmail.com>
6422
6423 * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
6424 * rs6000-tdep.c (read_insn): Add frame param, don't assume big-endian.
6425 (ppc_insns_match_pattern): Add frame param. Avoid multiple
6426 target mem reads on optional insns.
6427 * ppc-linux-tdep.c (ppc_skip_trampoline_code): Update
6428 ppc_insns_match_pattern calls.
6429 * ppc64-tdep.c (ppc64_standard_linkage2, ppc64_standard_linkage3):
6430 Add match for power7 thread safety insns, and new order of
6431 std 2,40(1) insn. Correct code shown for _dl_runtime_resolve
6432 invocation in comment, and update rest of comment.
6433 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN,
6434 PPC64_STANDARD_LINKAGE3_LEN): Delete.
6435 (ppc64_standard_linkage2_target): Update insn offsets.
6436 (ppc64_skip_trampoline_code): Use a single insn buffer. Match newer
6437 stubs first. Update calls.
6438
6439 2013-06-04 Yao Qi <yao@codesourcery.com>
6440
6441 * solib.c (solib_find): Don't need dir separator if path has
6442 drive spec.
6443
6444 2013-06-03 Joel Brobecker <brobecker@adacore.com>
6445
6446 Revert (indirectly causes a SIGSEGV):
6447 * machoread.c (macho_symfile_read): Assign first cleanup to
6448 'back_to'.
6449
6450 2013-06-03 Yao Qi <yao@codesourcery.com>
6451
6452 * mi/mi-cmd-var.c (mi_no_values, mi_simple_values): Move to
6453 mi-parse.c. Make them static.
6454 (mi_all_values): Likewise.
6455 (mi_parse_values_option): Move to mi-parse.c. Rename it to
6456 mi_parse_print_values. Make it external.
6457 * mi/mi-cmds.h (mi_no_values, mi_simple_values, mi_all_values):
6458 Remove the declarations.
6459 * mi/mi-parse.c (mi_parse_print_values): Moved from mi-cmd-var.c.
6460 * mi/mi-parse.h (mi_parse_print_values): Declare.
6461 * mi/mi-cmd-stack.c: Include mi-parse.h.
6462 (parse_print_values): Remove
6463 (mi_cmd_stack_list_locals): Call mi_parse_print_values instead
6464 of parse_print_values.
6465 (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Likewise.
6466
6467 2013-05-31 Pedro Alves <pedro@codesourcery.com>
6468 Yao Qi <yao@codesourcery.com>
6469
6470 * tracepoint.c (all_tracepoint_actions_and_cleanup): Declare.
6471 (encode_actions): Move code to ...
6472 (all_tracepoint_actions_and_cleanup): ... here. New.
6473 (trace_dump_command): Likewise.
6474
6475 2013-05-30 Tom Tromey <tromey@redhat.com>
6476
6477 * symmisc.c (maintenance_expand_symtabs): Call do_cleanups.
6478
6479 2013-05-30 Tom Tromey <tromey@redhat.com>
6480
6481 * xml-support.c (gdb_xml_create_parser_and_cleanup): Rename from
6482 gdb_xml_create_parser_and_cleanup_1. Return a cleanup. Remove
6483 'old_chain' argument. Add 'parser_result' argument.
6484 (gdb_xml_create_parser_and_cleanup): Remove old version.
6485 (gdb_xml_parse_quick): Update.
6486 (xml_process_xincludes): Update.
6487 * xml-support.h (gdb_xml_create_parser_and_cleanup): Don't
6488 declare.
6489
6490 2013-05-30 Tom Tromey <tromey@redhat.com>
6491
6492 * probe.c (collect_probes): Check arguments for NULL before
6493 calling compile_rx_or_error.
6494 * utils.c (compile_rx_or_error): Require 'rx' to be non-NULL.
6495 Remove NULL return.
6496
6497 2013-05-30 Tom Tromey <tromey@redhat.com>
6498
6499 * infrun.c (adjust_pc_after_break): Introduce an outer null
6500 cleanup.
6501
6502 2013-05-30 Tom Tromey <tromey@redhat.com>
6503
6504 * mi/mi-cmd-var.c (varobj_update_one): Add an outer null cleanup.
6505
6506 2013-05-30 Tom Tromey <tromey@redhat.com>
6507
6508 * cli/cli-script.c (read_command_lines_1): Use a null cleanup
6509 for 'old_chain'. Do not check 'head' before processing
6510 cleanups.
6511
6512 2013-05-30 Tom Tromey <tromey@redhat.com>
6513
6514 * mi/mi-cmd-stack.c (list_arg_or_local): Remove
6515 "cleanup_tuple".
6516
6517 2013-05-30 Tom Tromey <tromey@redhat.com>
6518
6519 * dbxread.c (dbx_read_symtab): Declare 'back_to' in a more
6520 inner scope. Unconditionally call do_cleanups.
6521
6522 2013-05-30 Tom Tromey <tromey@redhat.com>
6523
6524 * source.c (find_and_open_source): Call do_cleanups.
6525
6526 2013-05-30 Tom Tromey <tromey@redhat.com>
6527
6528 * linux-thread-db.c (thread_db_load_search): Unconditionally
6529 call do_cleanups.
6530
6531 2013-05-30 Tom Tromey <tromey@redhat.com>
6532
6533 * solib-aix.c (solib_aix_bfd_open): Don't use a null cleanup
6534 for 'cleanup'; instead use a later one.
6535
6536 2013-05-30 Tom Tromey <tromey@redhat.com>
6537
6538 * python/py-breakpoint.c (bppy_get_commands): Use
6539 explicit, unconditional return.
6540 * python/py-frame.c (frapy_read_var): Likewise.
6541 * python/python.c (gdbpy_decode_line): Likewise.
6542
6543 2013-05-30 Tom Tromey <tromey@redhat.com>
6544
6545 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Call
6546 do_cleanups on all return paths.
6547
6548 2013-05-30 Tom Tromey <tromey@redhat.com>
6549
6550 * top.c (execute_command): Discard 'cleanup_if_error' cleanups.
6551
6552 2013-05-30 Tom Tromey <tromey@redhat.com>
6553
6554 * stabsread.c (read_struct_type): Call do_cleanups along
6555 all return paths.
6556
6557 2013-05-30 Maciej W. Rozycki <macro@codesourcery.com>
6558
6559 * mips-linux-tdep.c: Adjust formatting throughout.
6560
6561 2013-05-30 Tom Tromey <tromey@redhat.com>
6562
6563 * mipsread.c (read_alphacoff_dynamic_symtab): Call do_cleanups
6564 along all return paths.
6565
6566 2013-05-30 Tom Tromey <tromey@redhat.com>
6567
6568 * symfile.c (find_separate_debug_file): Call do_cleanups
6569 along all return paths.
6570
6571 2013-05-30 Tom Tromey <tromey@redhat.com>
6572
6573 * symtab.c (search_symbols): Introduce a null cleanup for
6574 'retval_chain'.
6575
6576 2013-05-30 Tom Tromey <tromey@redhat.com>
6577
6578 * python/py-value.c (valpy_binop): Call do_cleanups before
6579 exiting loop.
6580
6581 2013-05-30 Tom Tromey <tromey@redhat.com>
6582
6583 * python/py-prettyprint.c (print_children): Remove extra
6584 do_cleanups call.
6585
6586 2013-05-30 Tom Tromey <tromey@redhat.com>
6587
6588 * python/py-frame.c (frapy_read_var): Call do_cleanups along
6589 all return paths.
6590
6591 2013-05-30 Tom Tromey <tromey@redhat.com>
6592
6593 * python/py-breakpoint.c (bppy_get_commands): Call do_cleanups
6594 along all return paths.
6595
6596 2013-05-30 Tom Tromey <tromey@redhat.com>
6597
6598 * cli/cli-logging.c (set_logging_redirect): Unconditionally
6599 call do_cleanups.
6600
6601 2013-05-30 Tom Tromey <tromey@redhat.com>
6602
6603 * varobj.c (c_value_of_root): Call do_cleanups along all
6604 return paths.
6605
6606 2013-05-30 Tom Tromey <tromey@redhat.com>
6607
6608 * tracepoint.c (trace_dump_command): Unconditionally call
6609 do_cleanups.
6610
6611 2013-05-30 Tom Tromey <tromey@redhat.com>
6612
6613 * breakpoint.c (output_thread_groups, parse_cmd_to_aexpr): Call
6614 do_cleanups earlier.
6615
6616 2013-05-30 Tom Tromey <tromey@redhat.com>
6617
6618 * machoread.c (macho_symfile_read): Assign first cleanup to
6619 'back_to'.
6620
6621 2013-05-30 Tom Tromey <tromey@redhat.com>
6622
6623 * m32r-rom.c (m32r_load): Call do_cleanups at all returns.
6624
6625 2013-05-30 Tom Tromey <tromey@redhat.com>
6626
6627 * mi/mi-main.c (list_available_thread_groups): Call do_cleanups.
6628
6629 2013-05-30 Tom Tromey <tromey@redhat.com>
6630
6631 * inf-ptrace.c (inf_ptrace_create_inferior): Unconditionally
6632 call discard_cleanups.
6633 (inf_ptrace_attach): Likewise.
6634
6635 2013-05-30 Tom Tromey <tromey@redhat.com>
6636
6637 * remote-mips.c (mips_exit_debug): Call do_cleanups on all
6638 return paths.
6639 (mips_initialize): Likewise.
6640 (common_open): Call do_cleanups.
6641
6642 2013-05-30 Tom Tromey <tromey@redhat.com>
6643
6644 * utils.c (internal_vproblem): Call do_cleanups.
6645
6646 2013-05-30 Tom Tromey <tromey@redhat.com>
6647
6648 * linespec.c (find_linespec_symbols): Don't reassign to 'cleanup'.
6649
6650 2013-05-30 Tom Tromey <tromey@redhat.com>
6651
6652 * cli/cli-script.c (setup_user_args): Don't return after error.
6653
6654 2013-05-30 Tom Tromey <tromey@redhat.com>
6655
6656 * somread.c (som_symtab_read): Call do_cleanups.
6657
6658 2013-05-30 Tom Tromey <tromey@redhat.com>
6659
6660 * printcmd.c (print_command_1): Unconditionally call do_cleanups.
6661
6662 2013-05-30 Tom Tromey <tromey@redhat.com>
6663
6664 * cli/cli-cmds.c (cd_command, alias_command): Call do_cleanups.
6665 * cli/cli-dump.c (restore_binary_file): Call do_cleanups.
6666 * interps.c (interpreter_exec_cmd): Call do_cleanups.
6667 * source.c (show_substitute_path_command): Call do_cleanups.
6668 (unset_substitute_path_command, set_substitute_path_command):
6669 Likewise.
6670 * symfile.c (load_command): Call do_cleanups.
6671
6672 2013-05-30 Tom Tromey <tromey@redhat.com>
6673
6674 * contrib/cleanup_check.py: New file.
6675 * contrib/gcc-with-excheck: Add option parsing.
6676
6677 2013-05-30 Joel Brobecker <brobecker@adacore.com>
6678
6679 * windows-nat.c (windows_delete_thread): Add missing space
6680 in cast expression.
6681
6682 2013-05-30 Hafiz Abid Qadeer <abidh@codesourcery.com>
6683
6684 * inferior.c (top level): Include tilde.h.
6685 (add_inferior_command): Call tilde_expand on the value of 'exec'
6686 argument.
6687
6688 2013-05-30 Pedro Alves <pedro@codesourcery.com>
6689 Yao Qi <yao@codesourcery.com>
6690
6691 * tracepoint.c (encode_actions_1): Remove parameter 't'.
6692 Caller update.
6693 (encode_actions): Likewise.
6694 * remote.c (remote_download_tracepoint): Caller update.
6695 * tracepoint.h (encode_actions): Update declaration.
6696
6697 2013-05-30 Pedro Alves <palves@redhat.com>
6698
6699 * python/python-internal.h (gdb_Py_DECREF): Cast OP to PyObject
6700 pointer.
6701
6702 2013-05-30 Yao Qi <yao@codesourcery.com>
6703
6704 * remote.c (remote_check_symbols): Remove unused parameter
6705 'objfile'.
6706 Declaration update.
6707 (remote_start_remote, remote_new_objfile): Caller update.
6708
6709 2013-05-30 Yao Qi <yao@codesourcery.com>
6710
6711 * mi/mi-cmds.c (mi_cmds): Define MI command
6712 '-exec-arguments' by macro DEF_MI_CMD_CLI_1 instead of
6713 DEF_MI_CMD_CLI.
6714
6715 2013-05-29 Pedro Alves <palves@redhat.com>
6716
6717 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint)
6718 (remote_insert_watchpoint, remote_remove_watchpoint)
6719 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint)
6720 (remote_verify_memory, compare_sections_command)
6721 (remote_search_memory): Set the general process/thread on the
6722 remote side.
6723
6724 2013-05-29 Pedro Alves <palves@redhat.com>
6725
6726 * aarch64-tdep.c: Don't include "features/aarch64-without-fpu.c".
6727 (_initialize_aarch64_tdep): Don't call
6728 initialize_tdesc_aarch64_without_fpu.
6729 * features/Makefile (WHICH): Remove reference to
6730 aarch64-without-fpu.
6731 * features/aarch64-without-fpu.c: Delete file.
6732 * regformats/aarch64-without-fpu.dat: Delete file.
6733
6734 2013-05-28 Yao Qi <yao@codesourcery.com>
6735
6736 * tracepoint.c (stringify_collection_list): Remove parameter
6737 'string'.
6738 (encode_actions): Caller update. Remove local variables.
6739
6740 2013-05-24 Yao Qi <yao@codesourcery.com>
6741
6742 * tracepoint.c (TFILE_PID): Remove.
6743 (tfile_open): Don't add thread and inferior.
6744 (tfile_close): Don't set 'inferior_ptid'. Don't call
6745 exit_inferior_silent.
6746 (tfile_thread_alive): Remove.
6747 (init_tfile_ops): Don't set field 'to_thread_alive' of
6748 tfile_ops.
6749
6750 2013-05-23 Doug Evans <dje@google.com>
6751
6752 * contrib/cc-with-tweaks.sh (-p): Handle no dwo files.
6753
6754 2013-05-23 Pedro Alves <palves@redhat.com>
6755
6756 * common/filestuff.c [USE_WIN32API]: Define HAVE_SOCKETS.
6757 [HAVE_SYS_SOCKET_H]: Define HAVE_SOCKETS.
6758 (socket_mark_cloexec, gdb_socketpair_cloexec, gdb_socket_cloexec):
6759 Only define if HAVE_SOCKETS is defined.
6760 * configure.ac: Check for sys/socket.h.
6761 * config.in, configure: Regenerate.
6762
6763 2013-05-23 Pedro Alves <palves@redhat.com>
6764
6765 * dwarf2read.c (create_dwp_hash_table, create_dwo_in_dwp)
6766 (open_and_init_dwp_file): Use %s/pulongest instead of %u for
6767 printing uint32_t variables.
6768
6769 2013-05-23 Pedro Alves <palves@redhat.com>
6770
6771 * NEWS: Mention GDBserver range stepping support.
6772
6773 2013-05-23 Yao Qi <yao@codesourcery.com>
6774 Pedro Alves <palves@redhat.com>
6775
6776 * gdbthread.h (struct thread_control_state) <may_range_step>: New
6777 field.
6778 * infcmd.c (step_once, until_next_command): Enable range stepping.
6779 * infrun.c (displaced_step_prepare): Disable range stepping.
6780 (resume): Disable range stepping if stepping over a breakpoint or
6781 we have software watchpoints. If range stepping is enabled,
6782 assert the thread is in the stepping range.
6783 (clear_proceed_status_thread): Clear may_range_step.
6784 (handle_inferior_event): Disable range stepping as soon as we know
6785 the thread that hit the event. Re-enable it whenever we're going
6786 to step with a step range.
6787 * remote.c (struct vCont_action_support) <r>: New field.
6788 (use_range_stepping): New global.
6789 (remote_vcont_probe): Handle 'r' action.
6790 (append_resumption): Append an 'r' action if the thread may range
6791 step.
6792 (show_range_stepping): New function.
6793 (set_range_stepping): New function.
6794 (_initialize_remote): Call add_setshow_boolean_cmd to register the
6795 'set range-stepping' and 'show range-stepping' commands.
6796 * NEWS: Mention range stepping, the new vCont;r action, and the
6797 new "set/show range-stepping" commands.
6798
6799 2013-05-23 Yao Qi <yao@codesourcery.com>
6800 Pedro Alves <palves@redhat.com>
6801
6802 * remote.c (struct vCont_action_support): New struct.
6803 (struct remote_state) <support_vCont_t>: Remove field.
6804 <vCont_actions_support>: New field.
6805 (remote_vcont_probe, remote_stop_ns): Update.
6806
6807 2013-05-23 Yao Qi <yao@codesourcery.com>
6808 Pedro Alves <palves@redhat.com>
6809
6810 * gdbthread.h (pc_in_thread_step_range): New declaration.
6811 * thread.c (pc_in_thread_step_range): New function.
6812 * infrun.c (handle_inferior_event): Use it.
6813
6814 2013-05-23 Joel Brobecker <brobecker@adacore.com>
6815
6816 * mi/mi-cmd-break.c (mi_argv_to_format): Use xsnprintf instead
6817 of sprintf.
6818
6819 2013-05-22 Keith Seitz <keiths@redhat.com>
6820
6821 * ada-lang.c (is_known_support_routine): Add explicit free of
6822 'func_name' from find_frame_funname.
6823 (ada_unhandled_exception_name_addr_from_raise): Add cleanups
6824 for func_name from find_frame_funname.
6825 * python/py-frame.c (frapy_name): Add explicit free of
6826 'name' from find_frame_funname.
6827 * stack.c (find_frame_funname): Add comment explaining that
6828 funcp must be freed by the caller.
6829 Return copy of symbol names instead of pointers.
6830 (print_frame): Add a cleanup for 'funname' from
6831 find_frame_funname.
6832 * stack.h (find_frame_funname): Remove "const" from
6833 'funname' parameter.
6834
6835 2013-05-22 Tom Tromey <tromey@redhat.com>
6836
6837 PR c++/15401:
6838 * c-valprint.c (c_value_print): Use value_addr for
6839 references. Convert back to reference type with value_ref.
6840
6841 2013-05-22 Eli Zaretskii <eliz@gnu.org>
6842
6843 * windows-nat.c (handle_unload_dll): Don't call solib_add for the
6844 unloaded DLL, it will be done by handle_solib_event. See
6845 http://sourceware.org/ml/gdb-patches/2013-05/msg00713.html for the
6846 details.
6847
6848 2013-05-22 Phil Muldoon <pmuldoon@redhat.com>
6849
6850 * ui-out.c: Create typedef ui_out_level_p and define vector
6851 operations for that type.
6852 (struct ui_out): Use a vector instead of an array.
6853 (current_level): Return level from a vector.
6854 (push_level): Create a level in a vector.
6855 (pop_level): Delete a level in a vector.
6856 (ui_out_new): Create initial level zero level, and store in a
6857 vector.
6858 (ui_out_destroy): Add vector cleanup.
6859
6860 2013-05-22 Pedro Alves <palves@redhat.com>
6861
6862 * python/python-internal.h (gdb_Py_DECREF): Tag with
6863 "ARI: editCase function".
6864
6865 2013-05-21 Paul Pluzhnikov <ppluzhnikov@google.com>
6866
6867 * solib-svr4.c (svr4_free_so): Protect against NULL dereference.
6868
6869 2013-05-21 Pedro Alves <palves@redhat.com>
6870
6871 * python/py-prettyprint.c (apply_val_pretty_printer): Check
6872 whether PRINTER is NULL before installing a Py_DECREF cleanup.
6873 * python/py-utils.c (py_decref): Don't check for NULL before
6874 calling Py_DECREF.
6875
6876 2013-05-21 Pedro Alves <palves@redhat.com>
6877
6878 * python/py-utils.c (py_decref): Remove extra braces.
6879 (gdb_pymodule_addobject): Remove extra braces.
6880 * python-internal.h (gdb_Py_DECREF): New static inline function.
6881 (Py_DECREF): Redefine as calling gdb_Py_DECREF.
6882
6883 2013-05-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6884
6885 * breakpoints.c (detach_breakpoints): Do not
6886 detach breakpoints locations with loc_type bp_loc_other.
6887
6888 2013-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6889
6890 Workaround Python 2.6.
6891 * python/py-utils.c (gdb_pymodule_addobject): Wrap Py_DECREF into
6892 a block.
6893
6894 2013-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6895
6896 Code cleanup: constification.
6897 * solib.c (solib_ops): Make return type and ops variable type const.
6898 (set_solib_ops): Make the new_ops parameter and ops variable const.
6899 (solib_find, solib_map_sections, clear_so, free_so, update_solib_list)
6900 (solib_add, solib_keep_data_in_core, clear_solib)
6901 (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
6902 (reload_shared_libraries, solib_global_lookup): Make the ops variable
6903 const.
6904 * solib.h (set_solib_ops): Make the new_ops parameter const.
6905
6906 2013-05-21 Joel Brobecker <brobecker@adacore.com>
6907
6908 * data-directory/Makefile.in (SYSTEM_GDBINIT_SRCDIR): New
6909 variable.
6910 (VPATH): Add SYSTEM_GDBINIT_SRCDIR.
6911 (SYSTEM_GDBINIT_DIR, SYSTEM_GDBINIT_INSTALL_DIR)
6912 (SYSTEM_GDBINIT_FILES): New variables.
6913 (all): Add stamp-system-gdbinit.
6914 (stamp-system-gdbinit): New rule.
6915 (clean-system-gdbinit, install-system-gdbinit)
6916 (uninstall-system-gdbinit): New rules. Make them .PHONY.
6917 (install-only): Add dependency on install-system-gdbinit.
6918 (uninstall): Add dependency on uninstall-system-gdbinit.
6919 (clean): Add dependency on clean-system-gdbinit.
6920 * system-gdbinit/elinos.py: New file.
6921 * system-gdbinit/wrs-linux.py: New file.
6922
6923 2013-05-21 Joel Brobecker <brobecker@adacore.com>
6924
6925 * ada-lang.c (old_renaming_is_invisible): Fix cleanup leak.
6926
6927 2013-05-21 Hui Zhu <hui@codesourcery.com>
6928
6929 * breakpoint.c (dprintf_breakpoint_ops): Remove its static.
6930 * breakpoint.h (dprintf_breakpoint_ops): Add extern.
6931 * mi/mi-cmd-break.c (ctype.h): New include.
6932 (gdb_obstack.h): New include.
6933 (mi_argv_to_format, mi_cmd_break_insert_1): New.
6934 (mi_cmd_break_insert): Call mi_cmd_break_insert_1.
6935 (mi_cmd_dprintf_insert): New.
6936 * mi/mi-cmds.c (mi_cmds): Add "dprintf-insert".
6937 * mi/mi-cmds.h (mi_cmd_dprintf_insert): New extern.
6938
6939 2013-05-20 Tom Tromey <tromey@redhat.com>
6940
6941 * python/py-prettyprint.c (search_pp_list): Decref 'attr'.
6942
6943 2013-05-20 Tom Tromey <tromey@redhat.com>
6944
6945 * python/py-value.c (valpy_get_dynamic_type): Simplify
6946 dynamic_type assignment. Use Py_XINCREF.
6947
6948 2013-05-20 Tom Tromey <tromey@redhat.com>
6949
6950 * python/py-type.c (typy_fields): Unconditionally decref 'r'.
6951
6952 2013-05-20 Tom Tromey <tromey@redhat.com>
6953
6954 * python/py-frame.c (frapy_older, frapy_newer, gdbpy_newest_frame)
6955 (gdbpy_selected_frame): Move object-construction code
6956 out of TRY_CATCH.
6957
6958 2013-05-20 Tom Tromey <tromey@redhat.com>
6959
6960 * python/py-arch.c (gdbpy_initialize_arch): Use
6961 gdb_pymodule_addobject.
6962 * python/py-block.c (gdbpy_initialize_blocks): Use
6963 gdb_pymodule_addobject.
6964 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Use
6965 gdb_pymodule_addobject.
6966 * python/py-cmd.c (gdbpy_initialize_breakpoints): Use
6967 gdb_pymodule_addobject.
6968 * python/py-event.c (gdbpy_initialize_event_generic): Use
6969 gdb_pymodule_addobject.
6970 * python/py-evtregistry.c (gdbpy_initialize_eventregistry): Use
6971 gdb_pymodule_addobject.
6972 * python/py-evts.c (add_new_registry): Use
6973 gdb_pymodule_addobject.
6974 (gdbpy_initialize_py_events): Likewise.
6975 * python/py-finishbreakpoint.c
6976 (gdbpy_initialize_finishbreakpoints): Use
6977 gdb_pymodule_addobject.
6978 * python/py-frame.c (gdbpy_initialize_frames): Use
6979 gdb_pymodule_addobject.
6980 * python/py-function.c (gdbpy_initialize_functions): Use
6981 gdb_pymodule_addobject.
6982 * python/py-inferior.c (gdbpy_initialize_inferior): Use
6983 gdb_pymodule_addobject.
6984 * python/py-infthread.c (gdbpy_initialize_thread): Use
6985 gdb_pymodule_addobject.
6986 * python/py-objfile.c (gdbpy_initialize_objfile): Use
6987 gdb_pymodule_addobject.
6988 * python/py-param.c (gdbpy_initialize_parameters): Use
6989 gdb_pymodule_addobject.
6990 * python/py-progspace.c (gdbpy_initialize_pspace): Use
6991 gdb_pymodule_addobject.
6992 * python/py-symbol.c (gdbpy_initialize_symbols): Use
6993 gdb_pymodule_addobject.
6994 * python/py-symtab.c (gdbpy_initialize_symtabs): Use
6995 gdb_pymodule_addobject.
6996 * python/py-type.c (gdbpy_initialize_types): Use
6997 gdb_pymodule_addobject.
6998 * python/py-utils.c (gdb_pymodule_addobject): New function.
6999 * python/py-value.c (gdbpy_initialize_values): Use
7000 gdb_pymodule_addobject.
7001 * python/python-internal.h (gdb_pymodule_addobject): Declare.
7002 * python/python.c (_initialize_python): Use
7003 gdb_pymodule_addobject.
7004
7005 2013-05-20 Tom Tromey <tromey@redhat.com>
7006
7007 * python/py-cmd.c (cmdpy_completer): Use explicit decref.
7008 * python/py-param.c (get_set_value, get_show_value): Use
7009 explicit decrefs.
7010 * python/python.c (start_type_printers, apply_type_printers):
7011 Use explicit decrefs.
7012
7013 2013-05-20 Tom Tromey <tromey@redhat.com>
7014
7015 * python/py-evts.c (gdbpy_initialize_py_events): Don't
7016 incref the module.
7017
7018 2013-05-20 Tom Tromey <tromey@redhat.com>
7019
7020 * python/python.c (gdbpy_run_events): Decref the result
7021 of PyObject_CallObject.
7022
7023 2013-05-20 Tom Tromey <tromey@redhat.com>
7024
7025 * python/py-symtab.c (set_sal): Use
7026 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION. Return -1 on error.
7027 (symtab_and_line_to_sal_object): Update.
7028
7029 2013-05-20 Tom Tromey <tromey@redhat.com>
7030
7031 * python/py-param.c (compute_enum_values): Decref 'item'.
7032
7033 2013-05-20 Tom Tromey <tromey@redhat.com>
7034
7035 * mi/mi-main.c: Include python-internal.h.
7036 (mi_cmd_list_features): Check gdb_python_initialized.
7037 * python/py-inferior.c (python_on_normal_stop, python_on_resume)
7038 (python_inferior_exit, python_new_objfile, add_thread_object)
7039 (delete_thread_object, py_free_inferior): Check
7040 gdb_python_initialized.
7041 * python/py-prettyprint.c (apply_val_pretty_printer): Check
7042 gdb_python_initialized.
7043 * python/py-type.c (save_objfile_types): Check
7044 gdb_python_initialized.
7045 * python/python-internal.h (gdb_python_initialized): Declare.
7046 * python/python.c (ensure_python_env): Throw exception if
7047 Python not initialized.
7048 (before_prompt_hook, source_python_script_for_objfile)
7049 (start_type_printers, apply_type_printers,
7050 free_type_printers): Check gdb_python_initialized.
7051 * varobj.c (varobj_get_display_hint)
7052 (dynamic_varobj_has_child_method, update_dynamic_varobj_children)
7053 (install_new_value_visualizer, varobj_set_visualizer)
7054 (value_get_print_value): Check gdb_python_initialized.
7055
7056 2013-05-20 Tom Tromey <tromey@redhat.com>
7057
7058 * python/py-arch.c (gdbpy_initialize_arch): Return 'int'.
7059 Check errors.
7060 * python/py-auto-load.c (gdbpy_initialize_auto_load): Return 'int'.
7061 * python/py-block.c (gdbpy_initialize_blocks): Return 'int'.
7062 Check errors.
7063 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Return 'int'.
7064 Check errors.
7065 * python/py-cmd.c (gdbpy_initialize_commands): Return 'int'.
7066 Check errors.
7067 * python/py-event.c (gdbpy_initialize_event): Return 'int'.
7068 Check errors.
7069 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Change generated
7070 init function to return 'int'.
7071 * python/py-evtregistry.c (gdbpy_initialize_eventregistry):
7072 Return 'int'. Check errors.
7073 * python/py-evts.c (gdbpy_initialize_py_events): Return 'int'.
7074 Check errors.
7075 * python/py-finishbreakpoint.c (gdbpy_initialize_finishbreakpoints):
7076 Return 'int'. Check errors.
7077 * python/py-frame.c (gdbpy_initialize_frames): Return 'int'.
7078 Check errors.
7079 * python/py-function.c (gdbpy_initialize_functions): Return 'int'.
7080 Check errors.
7081 * python/py-gdb-readline.c (gdbpy_initialize_gdb_readline):
7082 Check errors.
7083 * python/py-inferior.c (gdbpy_initialize_inferior): Return 'int'.
7084 Check errors.
7085 * python/py-infthread.c (gdbpy_initialize_thread): Return 'int'.
7086 Check errors.
7087 * python/py-lazy-string.c (gdbpy_initialize_lazy_string): Return 'int'.
7088 Check errors.
7089 * python/py-objfile.c (gdbpy_initialize_objfile): Return 'int'.
7090 Check errors.
7091 * python/py-param.c (gdbpy_initialize_parameters): Return 'int'.
7092 Check errors.
7093 * python/py-progspace.c (gdbpy_initialize_pspace): Return 'int'.
7094 Check errors.
7095 * python/py-symbol.c (gdbpy_initialize_symbols): Return 'int'.
7096 Check errors.
7097 * python/py-symtab.c (gdbpy_initialize_symtabs): Return 'int'.
7098 Check errors.
7099 * python/py-type.c (gdbpy_initialize_types): Return 'int'.
7100 Check errors.
7101 * python/py-value.c (gdbpy_initialize_values): Return 'int'.
7102 Check errors.
7103 * python/python-internal.h (gdbpy_initialize_auto_load,
7104 gdbpy_initialize_values, gdbpy_initialize_frames,
7105 gdbpy_initialize_symtabs, gdbpy_initialize_commands,
7106 gdbpy_initialize_symbols, gdbpy_initialize_symtabs,
7107 gdbpy_initialize_blocks, gdbpy_initialize_types,
7108 gdbpy_initialize_functions, gdbpy_initialize_pspace,
7109 gdbpy_initialize_objfile, gdbpy_initialize_breakpoints,
7110 gdbpy_initialize_finishbreakpoints,
7111 gdbpy_initialize_lazy_string, gdbpy_initialize_parameters,
7112 gdbpy_initialize_thread, gdbpy_initialize_inferior,
7113 gdbpy_initialize_eventregistry, gdbpy_initialize_event,
7114 gdbpy_initialize_py_events, gdbpy_initialize_stop_event,
7115 gdbpy_initialize_signal_event,
7116 gdbpy_initialize_breakpoint_event,
7117 gdbpy_initialize_continue_event,
7118 gdbpy_initialize_exited_event, gdbpy_initialize_thread_event,
7119 gdbpy_initialize_new_objfile_event, gdbpy_initialize_arch):
7120 Update. Use CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
7121 * python/python.c (gdb_python_initialized): New global.
7122 (gdbpy_initialize_events): Return 'int'. Check errors.
7123 (_initialize_python): Check errors. Set
7124 gdb_python_initialized.
7125
7126 2013-05-20 Tom Tromey <tromey@redhat.com>
7127
7128 * python/py-finishbreakpoint.c (bpfinishpy_out_of_scope):
7129 Decref the reslut of PyObject_CallMethod.
7130
7131 2013-05-20 Tom Tromey <tromey@redhat.com>
7132
7133 * python/py-event.c (gdbpy_initialize_event_generic): Return
7134 early if PyType_Ready fails.
7135
7136 2013-05-20 Tom Tromey <tromey@redhat.com>
7137
7138 * python/py-type.c (make_fielditem): Add gdb_assert_not_reached
7139 as 'default' in the switch.
7140
7141 2013-05-20 Tom Tromey <tromey@redhat.com>
7142
7143 * python/py-inferior.c (gdbpy_inferiors): Update. Hoist
7144 get_addr_from_python calls out of TRY_CATCH.
7145 (infpy_write_memory, infpy_search_memory): Likewise.
7146 * python/py-utils.c (get_addr_from_python): Return negative
7147 value on error. Use TRY_CATCH.
7148 * python/python-internal.h (get_addr_from_python): Use
7149 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
7150
7151 2013-05-20 Tom Tromey <tromey@redhat.com>
7152
7153 * python/py-event.c (evpy_emit_event): Decref the
7154 result of PyObject_CallFunctionObjArgs.
7155
7156 2013-05-20 Tom Tromey <tromey@redhat.com>
7157
7158 * python/py-cmd.c (cmdpy_completer): Use iterator protocol.
7159 Correctly decref.
7160
7161 2013-05-20 Tom Tromey <tromey@redhat.com>
7162
7163 * python/py-cmd.c (cmdpy_init): Decref 'ds_obj'.
7164
7165 2013-05-20 Tom Tromey <tromey@redhat.com>
7166
7167 * python/py-event.h (gdbpy_initialize_event_generic): Use
7168 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
7169 * python/py-evts.c (add_new_registry): Use
7170 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
7171 * python/python-internal.h
7172 (CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION): New macro.
7173
7174 2013-05-20 Tom Tromey <tromey@redhat.com>
7175
7176 * python/py-arch.c (archpy_disassemble): Update.
7177 * python/py-type.c (typy_get_composite, typy_lookup_typename)
7178 (typy_lookup_type): Use GDB_PY_HANDLE_EXCEPTION.
7179 * python/py-utils.c (gdbpy_convert_exception): Return 'void'.
7180 * python/python-internal.h (CPYCHECKER_SETS_EXCEPTION): New
7181 macro.
7182 (GDB_PY_HANDLE_EXCEPTION): Update.
7183 (gdbpy_convert_exception): Update. Use CPYCHECKER_SETS_EXCEPTION.
7184
7185 2013-05-20 Tom Tromey <tromey@redhat.com>
7186
7187 * python/python-internal.h (events_object_type): Remove.
7188
7189 2013-05-20 Tom Tromey <tromey@redhat.com>
7190
7191 * python/py-event.h (evpy_emit_event): Use
7192 CPYCHECKER_STEALS_REFERENCE_TO_ARG.
7193 * python/python-internal.h (CPYCHECKER_STEALS_REFERENCE_TO_ARG):
7194 New macro.
7195
7196 2013-05-20 Tom Tromey <tromey@redhat.com>
7197
7198 * py-evtregistry.c (create_event_object): Decref
7199 eventregistry_object if PyList_New fails.
7200
7201 2013-05-20 Tom Tromey <tromey@redhat.com>
7202
7203 * py-cmd.c (gdbpy_string_to_argv): Check result of
7204 PyList_New.
7205
7206 2013-05-20 Tom Tromey <tromey@redhat.com>
7207
7208 * python/python.c (before_prompt_hook): Add cleanup to
7209 decref 'hook'.
7210
7211 2013-05-20 Tom Tromey <tromey@redhat.com>
7212
7213 * python/py-function.c (fnpy_init): Decref result of
7214 PyObject_GetAttrString.
7215
7216 2013-05-20 Tom Tromey <tromey@redhat.com>
7217
7218 * python/py-threadevent.c (get_event_thread): Use
7219 CPYCHECKER_RETURNS_BORROWED_REF.
7220 * python/python-internal.h (CPYCHECKER_RETURNS_BORROWED_REF):
7221 New define.
7222 (pspace_to_pspace_object, objfile_to_objfile_object)
7223 (find_thread_object): Use it.
7224
7225 2013-05-20 Tom Tromey <tromey@redhat.com>
7226
7227 * python/py-arch.c (arch_object_type): Use
7228 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7229 * python/py-block.c (block_syms_iterator_object_type):
7230 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7231 * python/py-bpevent.c (breakpoint_event_object_type):
7232 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7233 * python/py-cmd.c (cmdpy_object_type): Use
7234 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7235 * python/py-continueevent.c (continue_event_object_type):
7236 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7237 * python/py-event.h (GDBPY_NEW_EVENT_TYPE):
7238 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7239 * python/py-events.h (thread_event_object_type):
7240 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7241 * python/py-evtregistry.c (eventregistry_object_type): Use
7242 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7243 * python/py-exitedevent.c (exited_event_object_type):
7244 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7245 * python/py-finishbreakpoint.c (finish_breakpoint_object_type):
7246 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7247 * python/py-function.c (fnpy_object_type): Use
7248 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7249 * python/py-inferior.c (inferior_object_type, membuf_object_type):
7250 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7251 * python/py-infthread.c (thread_object_type): Use
7252 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7253 * python/py-lazy-string.c (lazy_string_object_type):
7254 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7255 * python/py-newobjfileevent.c (new_objfile_event_object_type):
7256 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7257 * python/py-objfile.c (objfile_object_type): Use
7258 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7259 * python/py-param.c (parmpy_object_type):
7260 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7261 * python/py-progspace.c (pspace_object_type):
7262 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7263 * python/py-signalevent.c (signal_event_object_type):
7264 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7265 * python/py-symtab.c (symtab_object_type, sal_object_type): Use
7266 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7267 * python/py-type.c (type_object_type, field_object_type)
7268 (type_iterator_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7269 * python/py-internal.h (CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF): New
7270 define.
7271 (value_object_type, block_object_type, symbol_object_type)
7272 (event_object_type, stop_event_object_type, breakpoint_object_type)
7273 (frame_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7274
7275 2013-05-20 Andreas Tobler <andreas@fgznet.ch>
7276
7277 * Makefile.in (ALL_TARGET_OBS): Add ppcfbsd-tdep.o.
7278 (ALLDEPFILES): Add ppcfbsd-nat.c and ppcfbsd-tdep.c.
7279
7280 2013-05-20 Doug Evans <dje@google.com>
7281
7282 When reading CU, stay in DWO. Be more tolerent of bad debug info.
7283 For Fission.
7284 * dwarf2read.c (struct dwarf2_per_cu_data): New member
7285 reading_dwo_directly.
7286 (struct signatured_type): New member dwo_unit.
7287 (struct die_reader_specs): New member comp_dir.
7288 (create_signatured_type_table_from_index): Use malloc for
7289 all_type_units instead of objfile's obstack.
7290 (create_all_type_units): Ditto.
7291 (fill_in_sig_entry_from_dwo_entry): New function.
7292 (add_type_unit): New function.
7293 (lookup_dwo_signatured_type): New function.
7294 (lookup_dwp_signatured_type): New function.
7295 (lookup_signatured_type): New arg cu. All callers updated.
7296 (init_cu_die_reader): Initialize comp_dir.
7297 (read_cutu_die_from_dwo): New arg stub_comp_dir. All callers updated.
7298 Change assert of matching type signatures to call error on mismatch.
7299 (lookup_dwo_unit): Add assert.
7300 (init_tu_and_read_dwo_dies): New function.
7301 (init_cutu_and_read_dies): Call it.
7302 (build_type_unit_groups): Handle case of no type unit groups created.
7303 (hash_dwo_file, eq_dwo_file): Handle missing comp_dir.
7304 (lookup_dwo_cutu): Tweak complaint.
7305 (dwarf2_free_abbrev_table): Check for NULL abbrev_table.
7306 (dwarf2_per_objfile_free): Free all_type_units.
7307
7308 2013-05-20 Joel Brobecker <brobecker@adacore.com>
7309
7310 * windows-nat.c (handle_unload_dll): Add missing empty line.
7311
7312 2013-05-20 Joel Brobecker <brobecker@adacore.com>
7313
7314 * dwarf2read.c (prototyped_function_p): New function.
7315 (read_subroutine_type): Use it.
7316
7317 2013-05-20 Joel Brobecker <brobecker@adacore.com>
7318
7319 * rs6000-aix-tdep.c: De-indent some example code provided
7320 as a comment.
7321
7322 2013-05-17 Edjunior Machado <emachado@linux.vnet.ibm.com>
7323
7324 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Check if the
7325 region is ok for a hardware watchpoint using the new ptrace interface
7326 on Power servers.
7327
7328 2013-05-17 Doug Evans <dje@google.com>
7329
7330 * NEWS: Mention new maintenance commands check-symtabs, and
7331 expand-symtabs, and renamed check-psymtabs.
7332 * psymtab.c (maintenance_check_psymtabs): Renamed from
7333 maintenance_check_symtabs. Only process already-expanded symbol
7334 tables.
7335 (_initialize_psymtab): Update.
7336 * symmisc.c (maintenance_check_symtabs): New function.
7337 (maintenance_expand_name_matcher): New function
7338 (maintenance_expand_file_matcher): New function
7339 (maintenance_expand_symtabs): New function.
7340 (_initialize_symmisc): Add "mt check-symtabs" and "mt expand-symtabs"
7341 commands.
7342
7343 2013-05-17 Tom Tromey <tromey@redhat.com>
7344
7345 * python/py-inferior.c (infpy_read_memory): Don't call
7346 PyErr_SetString if PyObject_New fails.
7347 * python/py-frame.c (frame_info_to_frame_object): Don't call
7348 PyErr_SetString if PyObject_New fails.
7349
7350 2013-05-17 Pavel Chupin <pavel.v.chupin@intel.com>
7351
7352 * acinclude.m4: Add check for dlopen in libdl.
7353 * configure.ac: Ditto.
7354 * configure: Regenerate.
7355
7356 2013-05-17 Phil Muldoon <pmuldoon@redhat.com>
7357
7358 * frame.c (frame_stash): Convert to htab.
7359 (frame_addr_hash): New function.
7360 (frame_addr_hash_eq): New function.
7361 (frame_stash_create): Convert function to create
7362 a hash table.
7363 (frame_stash_add): Convert function to add an entry to a hash
7364 table.
7365 (frame_stash_find): Convert function to search the hash table.
7366 (frame_stash_invalidate): Convert function to empty the hash
7367 table.
7368 (get_frame_id): Only add to stash if a frame_id is created.
7369 (_initialize_frame): Call frame_stash_create.
7370
7371 2013-05-16 Yue Lu <hacklu.newborn@gmail.com> (tiny change)
7372
7373 * configure.ac: Ensure MIG is available when building for GNU Hurd
7374 hosts.
7375 * configure: Regenerate.
7376
7377 2013-05-16 Joel Brobecker <brobecker@adacore.com>
7378
7379 * dwarf2read.c (set_cu_language): Add DW_LANG_UPC handling.
7380
7381 2013-05-16 Joel Brobecker <brobecker@adacore.com>
7382
7383 * ada-lang.c (ada_make_symbol_completion_list): Make sure
7384 all cleanups are done before returning from this function.
7385
7386 2013-05-15 Joel Brobecker <brobecker@adacore.com>
7387
7388 * utils.h: #include "exceptions.h".
7389 (enum errors): Remove partial declaration.
7390
7391 2013-05-15 Joel Brobecker <brobecker@adacore.com>
7392
7393 * gdbarch.sh (core_xfer_shared_libraries_aix): New method.
7394 * gdbarch.h, gdbarch.c: Regenerate.
7395 * corelow.c (core_xfer_partial): Add TARGET_OBJECT_LIBRARIES_AIX
7396 handling.
7397
7398 * rs6000-aix-tdep.h: New file.
7399 * Makefile.in (HFILES_NO_SRCDIR): Add rs6000-aix-tdep.h.
7400 * rs6000-aix-tdep.c: Include "rs6000-aix-tdep.h" and
7401 "xml-utils.h".
7402 (struct field_info, struct ld_info_desc): New types.
7403 (ld_info32_desc, ld_info64_desc): New static constants.
7404 (struct ld_info): New type.
7405 (rs6000_aix_extract_ld_info): New function.
7406 (rs6000_aix_shared_library_to_xml): Likewise.
7407 (rs6000_aix_ld_info_to_xml): Likewise.
7408 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
7409 (rs6000_aix_init_osabi): Add call to
7410 set_gdbarch_core_xfer_shared_libraries_aix.
7411 * rs6000-nat.c: Add "rs6000-aix-tdep.h" include.
7412 Remove "xml-utils.h" include.
7413 (LdInfo): Delete typedef.
7414 (ARCH64_DECL, LDI_FIELD, LDI_NEXT, LDI_FD, LDI_FILENAME):
7415 Delete macros.
7416 (rs6000_ptrace_ldinfo): Change return type to gdb_byte *.
7417 Adjust code accordingly.
7418 (rs6000_core_ldinfo): Delete, folded into
7419 rs6000_aix_core_xfer_shared_libraries_aix.
7420 (rs6000_xfer_shared_library): Delete.
7421 (rs6000_xfer_shared_libraries): Reimplement.
7422
7423 2013-05-15 Markus Metzger <markus.t.metzger@intel.com>
7424
7425 * record.c (record_goto_cmdlist): New.
7426 (cmd_record_goto): Split into this ...
7427 (cmd_record_goto_begin): ... this
7428 (cmd_record_goto_end): ... and this.
7429 (_initialize_record): Change "record goto" to prefix command.
7430 Add commands for "record goto begin" and "record goto end".
7431 Add an alias for "record goto start" to "record goto begin".
7432
7433 2013-05-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7434
7435 * linespec.c (convert_linespec_to_sals): New comment for
7436 SOURCE_FILENAME assignment.
7437
7438 2013-05-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7439
7440 * cleanups.c (restore_my_cleanups): Replace gdb_assert by
7441 internal_warning.
7442
7443 2013-05-14 Tom Tromey <tromey@redhat.com>
7444
7445 * eval.c (parse_and_eval_long): Make 'exp' const.
7446 * value.h (parse_and_eval_long): Update.
7447
7448 2013-05-14 Tom Tromey <tromey@redhat.com>
7449
7450 * ui-file.c (gdb_fopen): Make arguments const.
7451 * ui-file.h (gdb_fopen): Make arguments const.
7452
7453 2013-05-14 Tom Tromey <tromey@redhat.com>
7454
7455 * remote.c (remote_set_trace_notes): Make arguments const.
7456 * target.c (update_current_target): Update cast.
7457 * target.h (to_set_trace_notes): Make arguments const.
7458
7459 2013-05-14 Tom Tromey <tromey@redhat.com>
7460
7461 * go32-nat.c (go32_terminal_info): Make 'args' const.
7462 * inferior.h (child_terminal_info): Update.
7463 * inflow.c (child_terminal_info): Make 'args' const.
7464 * target.c (default_terminal_info): Make 'args' const.
7465 (debug_to_terminal_save_ours): Likewise.
7466 * target.h (struct target_ops) <to_terminal_info>: Make argument
7467 const.
7468
7469 2013-05-13 Tom Tromey <tromey@redhat.com>
7470
7471 * gcore.c (create_gcore_bfd): Make 'filename' const.
7472 * gcore.h (create_gcore_bfd): Make 'filename' const.
7473 * record-full.c (record_full_save): Make 'recfilename' const.
7474 * target.c (target_save_record): Make 'filename' const.
7475 * target.h (struct target_ops) <to_save_record>: Make 'filename'
7476 const.
7477 (target_save_record): Likewise.
7478
7479 2013-05-13 Tom Tromey <tromey@redhat.com>
7480
7481 PR gdb/15338:
7482 * dwarf2read.c (dwarf2_record_block_ranges): Ensure that the
7483 ranges section has been read.
7484
7485 2013-05-13 Tom Tromey <tromey@redhat.com>
7486
7487 PR exp/15364:
7488 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
7489 STRUCTOP_PTR>: Return a not_lval value for
7490 EVAL_AVOID_SIDE_EFFECTS.
7491 * opencl-lang.c (evaluate_subexp_opencl): Return a not_lval value
7492 for EVAL_AVOID_SIDE_EFFECTS.
7493
7494 2013-05-13 Joel Brobecker <brobecker@adacore.com>
7495
7496 * rs6000-aix-tdep.c (rs6000_push_dummy_call): Convert
7497 floating point registers to register type before storing
7498 value.
7499 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call):
7500 Likewise.
7501
7502 2013-05-10 Joel Brobecker <brobecker@adacore.com>
7503 Tom Tromey <tromey@redhat.com>
7504
7505 * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
7506 New functions.
7507 * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
7508 Declare.
7509 * darwin-nat.c (darwin_pre_ptrace): Use mark_fd_no_cloexec.
7510 (darwin_ptrace_him): Use unmark_fd_no_cloexec.
7511 * inf-ttrace.c (do_cleanup_pfds): Use unmark_fd_no_cloexec.
7512 (inf_ttrace_prepare): Use mark_fd_no_cloexec.
7513
7514 2013-05-10 Freddie Chopin <freddie_chopin@op.pl>
7515 Tom Tromey <tromey@redhat.com>
7516
7517 PR build/15414:
7518 * configure: Rebuild.
7519 * configure.ac (build_warnings): Do not use -Wformat-nonliteral
7520 with -Wno-format.
7521
7522 2013-05-10 Pedro Alves <palves@redhat.com>
7523
7524 * remote.c (_initialize_remote): Fix spelling of
7525 qXfer:traceframe-info:read packet in packet config command.
7526
7527 2013-05-10 David Taylor <dtaylor@emc.com>
7528
7529 PR remote/15455
7530
7531 * remote.c (remote_trace_set_readonly_regions): Do not overwrite
7532 "QTro" at start of packet.
7533
7534 2013-05-10 Joel Brobecker <brobecker@adacore.com>
7535
7536 * solib-aix.c (solib_aix_relocate_section_addresses):
7537 For the .bss section action, apply the same offset as
7538 the .data section.
7539
7540 2013-05-10 Joel Brobecker <brobecker@adacore.com>
7541
7542 * solib-aix.c (solib_aix_relocate_section_addresses):
7543 Remove FIXME comment.
7544
7545 2013-05-10 Joel Brobecker <brobecker@adacore.com>
7546
7547 PR tdep/15420:
7548 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
7549 New functions, directly copied from sparc-sol-thread.c.
7550 * sparc-sol-thread.c: Delete.
7551 * configure.ac: Remove code handling sparc-solaris-thread.c.
7552 * configure: Regenerate.
7553
7554 2013-05-10 Phil Muldoon <pmuldoon@redhat.com>
7555
7556 * stack.c (backtrace_command_1): Add "no-filters", and Python frame
7557 filter logic.
7558 (backtrace_command): Add "no-filters" option parsing.
7559 (_initialize_stack): Alter help to reflect "no-filters" option.
7560 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-framefilter.o
7561 (SUBDIR_PYTHON_SRCS): Add py-framefilter.c
7562 (py-frame.o): Add target
7563 * data-directory/Makefile.in (PYTHON_DIR): Add Python frame
7564 filter files.
7565 * python/python.h: Add new frame filter constants, and flag enum.
7566 (apply_frame_filter): Add definition.
7567 * python/python.c (apply_frame_filter): New non-Python
7568 enabled function.
7569 * python/py-utils.c (py_xdecref): New function.
7570 (make_cleanup_py_xdecref): Ditto.
7571 * python/py-objfile.c: Declare frame_filters dictionary.
7572 (objfpy_dealloc): Add frame_filters dealloc.
7573 (objfpy_new): Initialize frame_filters attribute.
7574 (objfile_to_objfile_object): Ditto.
7575 (objfpy_get_frame_filters): New function.
7576 (objfpy_set_frame_filters): New function.
7577 * python/py-progspace.c: Declare frame_filters dictionary.
7578 (pspy_dealloc): Add frame_filters dealloc.
7579 (pspy_new): Initialize frame_filters attribute.
7580 (pspacee_to_pspace_object): Ditto.
7581 (pspy_get_frame_filters): New function.
7582 (pspy_set_frame_filters): New function.
7583 * python/py-framefilter.c: New file.
7584 * python/lib/gdb/command/frame_filters.py: New file.
7585 * python/lib/gdb/frames.py: New file.
7586 * python/lib/gdb/__init__.py: Initialize global frame_filters
7587 dictionary
7588 * python/lib/gdb/FrameDecorator.py: New file.
7589 * python/lib/gdb/FrameIterator.py: New file.
7590 * mi/mi-cmds.c (mi_cmds): Add frame filters command.
7591 * mi/mi-cmds.h: Declare.
7592 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Add
7593 --no-frame-filter logic, and Python frame filter logic.
7594 (stack_enable_frame_filters): New function.
7595 (parse_no_frame_option): Ditto.
7596 (mi_cmd_stack_list_frames): Add --no-frame-filter and Python frame
7597 filter logic.
7598 (mi_cmd_stack_list_locals): Ditto.
7599 (mi_cmd_stack_list_args): Ditto.
7600 (mi_cmd_stack_list_variables): Ditto.
7601 * NEWS: Add frame filter note.
7602
7603 2013-05-09 Doug Evans <dje@google.com>
7604
7605 * symfile.c (syms_from_objfile_1): Delete args offsets, num_offsets.
7606 All callers updated.
7607 (syms_from_objfile): Ditto. Make static.
7608 (symbol_file_add_with_addrs): Renamed from
7609 symbol_file_add_with_addrs_or_offsets. Delete args offsets,
7610 num_offsets. All callers updated.
7611 * symfile.h (syms_from_objfile): Delete.
7612
7613 * symfile.c (decrement_reading_symtab): Add assert.
7614 (increment_reading_symtab): Ditto.
7615
7616 2013-05-09 Joel Brobecker <brobecker@adacore.com>
7617
7618 * source.c (forward_search_command): Replace call to getc
7619 by call to fgetc.
7620 (reverse_search_command): Likewise.
7621
7622 2013-05-08 Doug Evans <dje@google.com>
7623
7624 * psymtab.c (expand_symtabs_matching_via_partial): Fix file name
7625 matching test.
7626
7627 2013-05-08 Joel Brobecker <brobecker@adacore.com>
7628
7629 * sol-thread.c (info_cb): Factorize the code a little.
7630
7631 2013-05-08 Joel Brobecker <brobecker@adacore.com>
7632
7633 * sol-thread.c (info_cb): Rework the output of the "maintenance
7634 info sol-threads" command a bit.
7635
7636 2013-05-08 Joel Brobecker <brobecker@adacore.com>
7637
7638 * sol-thread.c (info_cb) [ti.ti_state == TD_THR_SLEEP]:
7639 Replace ti.ti_startfunc by ti.ti_pc.
7640
7641 2013-05-08 Joel Brobecker <brobecker@adacore.com>
7642
7643 * solib-aix.c (solib_aix_free_library_list): New function
7644 for the case where HAVE_LIBEXPAT is not defined.
7645
7646 2013-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
7647
7648 PR breakpoints/15413:
7649 * breakpoint.c (condition_completer): Simplify the code to
7650 disconsider multiple locations of breakpoints when completing the
7651 "condition" command.
7652
7653 2013-05-07 Pierre Muller <muller@sourceware.org>
7654
7655 * common/linux-btrace.c: ARI fix: Include "gdb_wait.h"
7656 instead of <sys/wait.h>.
7657
7658 2013-05-07 Pierre Muller <muller@sourceware.org>
7659
7660 * nios2-tdep.c (nios2_dwarf_reg_to_regnum): ARI fix: remove
7661 trailing new line from warning message.
7662
7663 2013-05-07 Pierre Muller <muller@sourceware.org>
7664
7665 * contrib/ari/gdb_ari.sh (SOLIB_ADD, SOLIB_CREATE_INFERIOR_HOOK)
7666 (PC_SOLIB): Change type from ari_deprecate to ari_regression.
7667
7668 2013-05-07 Joel Brobecker <brobecker@adacore.com>
7669
7670 * rs6000-nat.c (rs6000_core_ldinfo): Remove '\n' at end of
7671 error message (ARI fix).
7672
7673 2013-05-07 Joel Brobecker <brobecker@adacore.com>
7674
7675 * features/library-list-aix.dtd: Replace library-list by
7676 library-list-aix.
7677 * rs6000-nat.c: Replace library-list by library-list-aix
7678 throughout.
7679 * solib-aix.c: Likewise.
7680
7681 2013-05-07 Joel Brobecker <brobecker@adacore.com>
7682
7683 * target.h (enum target_object) [TARGET_OBJECT_LIBRARIES_AIX]:
7684 Renames TARGET_OBJECT_AIX_LIBRARIES.
7685 * rs6000-nat.c: Replace TARGET_OBJECT_AIX_LIBRARIES with
7686 TARGET_OBJECT_LIBRARIES_AIX throughout.
7687 * solib-aix.c: Likwise.
7688
7689 2013-05-07 Yao Qi <yao@codesourcery.com>
7690
7691 * solib-dsbt.c (struct dsbt_info) <enable_break2_done>: Remove.
7692 (get_dsbt_info, enable_break, dsbt_clear_solib): Update.
7693
7694 2013-05-07 Yao Qi <yao@codesourcery.com>
7695
7696 * solib-dsbt.c (enable_break): Declare.
7697 (dsbt_current_sos): Remove call to enable_break2.
7698 (enable_break2): Rename to enable_break. Set solib breakpoint
7699 on '_dl_debug_state'.
7700 (enable_break): Remove.
7701
7702 2013-05-07 Luis Machado <lgustavo@codesourcery.com>
7703
7704 * ppc-linux-nat.c (ppc_linux_new_thread): Clear the new thread's
7705 debug state prior to replicating existing hardware watchpoints or
7706 breakpoints.
7707
7708 2013-05-07 Jan Kratochvil <jan.kratochvil@redhat.com>
7709
7710 * gcore.c (gcore_create_callback): Ignore sections with
7711 separate_debug_objfile_backlink != NULL.
7712
7713 2013-05-06 Sandra Loosemore <sandra@codesourcery.com>
7714 Andrew Jenner <andrew@codesourcery.com>
7715 Chung-Lin Tang <cltang@codesourcery.com>
7716 Julian Brown <julian@codesourcery.com>
7717
7718 Based on the nios2-elf port from Altera Corporation.
7719
7720 * Makefile.in (ALL_TARGET_OBS): Add nios2-tdep.o and
7721 nios2-linux-tdep.o.
7722 (HFILES_NO_SRCDIR): Add nios2-tdep.h.
7723 (ALLDEPFILES): Add nios2-tdep.c and nios2-linux-tdep.c.
7724 * configure.tgt: Add nios2*-*-linux* and nios2*-*-* targets.
7725 * nios2-tdep.h: New.
7726 * nios2-tdep.c: New.
7727 * nios2-linux-tdep.c: New.
7728 * features/Makefile (WHICH): Add nios2-linux.
7729 (nios2-linux-expedite): Set.
7730 * features/nios2-cpu.xml: New.
7731 * features/nios2.xml: New.
7732 * features/nios2-linux.xml: New.
7733 * features/nios2.c: New (autogenerated).
7734 * features/nios2-linux.c: New (autogenerated).
7735 * regformats/nios2-linux.dat: New (autogenerated).
7736 * NEWS (Changes since GDB 7.6): Add new Nios II targets
7737 and commands.
7738
7739 2013-05-06 Doug Evans <dje@google.com>
7740
7741 * symfile.c: Whitespace cleanup.
7742
7743 * solist.h (struct target_so_ops): New member clear_so.
7744 * solib-svr4.c (svr4_clear_so): New function.
7745 (_initialize_svr4_solib): Set svr4_so_ops.clear_so.
7746 * solib.c (clear_so): Renamed from free_so_symbols.
7747 All callers updated. Call target clear_so if it exists.
7748
7749 2013-05-06 Tom Tromey <tromey@redhat.com>
7750
7751 * ada-lang.c (ada_value_primitive_packed_val): Don't
7752 call value_incref.
7753 * value.c (set_value_parent): Incref the new parent and decref
7754 the old parent.
7755 (value_copy, value_primitive_field): Use set_value_parent.
7756
7757 2013-05-06 Tom Tromey <tromey@redhat.com>
7758
7759 * dwarf2loc.c (invalid_synthetic_pointer): Move earlier.
7760 (indirect_pieced_value): Call dwarf2_fetch_constant_bytes
7761 if needed.
7762 * dwarf2loc.h (dwarf2_fetch_constant_bytes): Declare.
7763 * dwarf2read.c (write_constant_as_bytes)
7764 (dwarf2_fetch_constant_bytes): New functions.
7765
7766 2013-05-06 Tom Tromey <tromey@redhat.com>
7767
7768 * dwarf2read.c (dwarf2_const_value_data): Remove unused
7769 parameters.
7770 (dwarf2_const_value_attr): Update.
7771
7772 2013-05-06 Tom Tromey <tromey@redhat.com>
7773
7774 * somread.c (som_symfile_offsets): Add 'const' to addrs.
7775 * machoread.c (macho_symfile_offsets): Add 'const' to addrs.
7776 * xcoffread.c (xcoff_symfile_offsets): Add 'const' to addrs.
7777 Remove declaration.
7778
7779 2013-05-06 Tom Tromey <tromey@redhat.com>
7780
7781 * dwarf2read.c (dwarf2_const_value_attr): Use 'obstack', not
7782 objfile's obstack.
7783
7784 2013-05-06 Doug Evans <dje@google.com>
7785
7786 * dbxread.c (process_one_symbol): Constify section_offsets parameter.
7787 * stabsread.h (process_one_symbol): Update declaration.
7788 * dwarf2read.c (dw2_relocate): Constify new_offsets, delta parameters.
7789 * elfread.c (elf_symfile_relocate_probe): Ditto.
7790 * psymtab.c (relocate_psymtabs): Ditto.
7791 * objfiles.c (objfile_relocate1): Constify new_offsets parameter.
7792 (objfile_relocate): Ditto.
7793 * objfiles.h (objfile_relocate): Update declaration.
7794 * symfile.c (relative_addr_info_to_section_offsets): Constify
7795 addrs parameter.
7796 (default_symfile_offsets): Ditto.
7797 (syms_from_objfile_1): Constify offsets parameter.
7798 (syms_from_objfile): Ditto.
7799 (symbol_file_add_with_addrs_or_offsets): Ditto.
7800 (symfile_map_offsets_to_segments): Constify data parameter.
7801 * symfile.h (struct quick_symbol_functions): Constify new_offsets,
7802 delta parameters of member relocate.
7803 (struct sym_probe_fns): Constify new_offsets,
7804 delta parameters of member sym_relocate_probe.
7805 (struct sym_fns): Constify section_addr_info parameter of member
7806 sym_offsets.
7807 (relative_addr_info_to_section_offsets): Update declaration.
7808 (default_symfile_offsets): Ditto.
7809 (syms_from_objfile): Ditto.
7810 (symfile_map_offsets_to_segments): Ditto.
7811
7812 * symfile.c (syms_from_objfile_1): Use correct section count when
7813 objfile->sf == NULL.
7814
7815 2013-05-06 Mike Frysinger <vapier@gentoo.org>
7816
7817 * common/linux-btrace.c (intel_supports_btrace): Fix indentation.
7818
7819 2013-05-06 Doug Evans <dje@google.com>
7820
7821 * psympriv.h (struct partial_symtab): Augment comment for member
7822 section_offsets.
7823
7824 2013-05-06 Joel Brobecker <brobecker@adacore.com>
7825
7826 Reimplement shared library support on ppc-aix...
7827 * target.h (TARGET_OBJECT_AIX_LIBRARIES): New target_object enum.
7828 * features/library-list-aix.dtd: New file.
7829 * solib-aix.h, solib-aix.c: New file.
7830 * rs6000-aix-tdep.c: #include "solib.h" and "solib-aix.h".
7831 (rs6000_find_toc_address_hook): Delete.
7832 (rs6000_push_dummy_call): Rewrite code setting the TOC value.
7833 (rs6000_aix_init_osabi): Register solib_aix_so_ops.
7834 * rs6000-nat.c: Remove "xcoffsolib.h" include. Include
7835 "xml-utils.h".
7836 (map_vmap, vmap_exec, vmap_ldinfo, add_vmap, objfile_symbol_add)
7837 (vmap_symtab, fixup_breakpoints): Delete.
7838 (rs6000_xfer_shared_libraries): New function.
7839 (rs6000_xfer_partial): Add TARGET_OBJECT_AIX_LIBRARIES handling.
7840 (vmap_secs, bss_data_overlap, vmap_add_symbols): Delete.
7841 (xcoff_relocate_symtab, xcoff_relocate_core): Delete.
7842 (rs6000_ptrace_ldinfo, rs6000_core_ldinfo)
7843 (rs6000_xfer_shared_library): New function.
7844 (find_toc_address): Delete.
7845 (_initialize_rs6000_nat): Do not set rs6000_find_toc_address_hook.
7846 * rs6000-tdep.h (rs6000_find_toc_address_hook): Remove.
7847 * xcoffread.c (record_minimal_symbol): Reloate symbol address
7848 before creating minimal symbol. Adjust function description
7849 accordingly.
7850 (scan_xcoff_symtab): Replace call to
7851 prim_record_minimal_symbol_and_info by call to
7852 record_minimal_symbol.
7853 (xcoff_symfile_offsets): Reimplement mostly as a wrapper
7854 around default_symfile_offsets.
7855 * configure.tgt: Add solib-aix.o to gdb_target_obs for
7856 powerpc-aix targets.
7857 * config/rs6000/nm-rs6000.h: Delete.
7858 * config/powerpc/aix.mh (NAT_FILE): Delete.
7859 (NATDEPFILES): Remove xcoffsolib.o.
7860 * Makefile.in (XMLFILES): Add library-list-aix.dtd.
7861 (ALL_TARGET_OBS): Add solib-aix.o.
7862 (HFILES_NO_SRCDIR): Remove xcoffsolib.h and
7863 config/rs6000/nm-rs6000.h. Add solib-aix.h.
7864 (ALLDEPFILES): Add solib-aix.c. Remove xcoffsolib.c.
7865 * xcoffsolib.h, xcoffsolib.c: Delete.
7866
7867 * solib.c (reload_shared_libraries): Remove reference to
7868 SOLIB_CREATE_INFERIOR_HOOK.
7869 * breakpoint.c (handle_solib_event): Remove reference to SOLIB_ADD.
7870 (disable_breakpoints_in_shlibs): Remove reference to PC_SOLIB.
7871 (momentary_bkpt_re_set): Replace SOLIB_ADD by solib_add in
7872 comment.
7873 * corelow.c (deprecated_core_resize_section_table): Delete.
7874 * exec.c: Remove include of xcoffsolib.h".
7875 (map_vmap, vmap): Delete.
7876 (exec_close_1): Remove references to vmap.
7877 (exec_file_attach): Remove vmap handling code, and reference
7878 to DEPRECATED_IBM6000_TARGET.
7879 (bfdsec_to_vmap): Delete.
7880 (exec_files_info): Remove block of code handling VMAP.
7881 * infcmd.c (post_create_inferior): Remove reference to
7882 SOLIB_CREATE_INFERIOR_HOOK and SOLIB_ADD.
7883 * infrun.c (follow_exec): Remove reference to
7884 SOLIB_CREATE_INFERIOR_HOOK.
7885 * stack.c (print_frame): Remove reference to PC_SOLIB.
7886 * solib-dsbt.c (dsbt_current_sos): Adjust comment.
7887 (dsbt_relocate_main_executable): Likewise.
7888 * solib-frv.c (frv_current_sos): Likewise.
7889
7890 2013-05-06 Joel Brobecker <brobecker@adacore.com>
7891
7892 * sol-thread.c (rw_common): Cast BUF to "gdb_byte *" in calls
7893 to target_write_memory and target_read_memory.
7894
7895 2013-05-06 Joel Brobecker <brobecker@adacore.com>
7896
7897 * darwin-nat.c (darwin_setup_fake_stop_event): New function.
7898 (darwin_attach): Adjust using darwin_setup_fake_stop_event.
7899
7900 2013-05-06 Joel Brobecker <brobecker@adacore.com>
7901
7902 * darwin-nat.c: Replace all "%x" instances in format strings
7903 into "0x%x" throughout.
7904
7905 2013-05-06 Joel Brobecker <brobecker@adacore.com>
7906
7907 * darwin-nat.c (darwin_mourn_inferior): Replace call to
7908 gdb_assert by call to MACH_CHECK_ERROR.
7909 (darwin_attach_pid): Raise an error rather than a failed
7910 assertion when various system calls failed. Report a warning
7911 instead of raising a failed assertion when PREV_NOT is not NULL
7912 after call to mach_port_request_notification.
7913 (darwin_ptrace_me): Raise an error rather than a failed
7914 assertion when read returns nonzero.
7915
7916 2013-05-06 Joel Brobecker <brobecker@adacore.com>
7917
7918 * amd64-darwin-tdep.c: Remove #include "gdb_assert.h".
7919
7920 2013-05-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7921
7922 * cleanups.c (restore_my_cleanups): New gdb_assert for SENTINEL_CLEANUP.
7923
7924 2013-05-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7925
7926 * event-top.c (display_gdb_prompt): Call missing do_cleanups.
7927 * infcmd.c (get_return_value) <!stop_regs>: Do not overwrite CLEANUP.
7928 * symfile.c (symfile_bfd_open): New variable back_to. Do not leave
7929 a stale cleanup. Fix double free of NAME.
7930
7931 2013-05-04 Eli Zaretskii <eliz@gnu.org>
7932
7933 * windows-nat.c (windows_delete_thread): Accept an additional
7934 argument, the thread's exit code, and announce thread death when
7935 print_thread_events is non-zero and we are deleting a thread that
7936 is not the main thread.
7937 (get_windows_debug_event): Pass thread exit code to
7938 windows_delete_thread.
7939
7940 2013-05-03 Kevin Buettner <kevinb@redhat.com>
7941
7942 * v850-tdep.c (elf-bfd.h, elf/v850.h): Include.
7943 (R_149_REGNUM, E_NUM_OF_V850E2_REGS, E_SELID_1_R0_REGNUM)
7944 (E_SELID_1_R31_REGNUM, E_SELID_2_R0_REGNUM, E_SELID_2_R31_REGNUM)
7945 (E_SELID_3_R0_REGNUM, E_SELID_3_R31_REGNUM, E_SELID_4_R0_REGNUM)
7946 (E_SELID_4_R31_REGNUM, E_SELID_5_R0_REGNUM, E_SELID_5_R31_REGNUM)
7947 (E_SELID_6_R0_REGNUM, E_SELID_6_R31_REGNUM, E_SELID_7_R0_REGNUM, E_SELID_7_R31_REGNUM)
7948 (E_VR0_REGNUM, E_VR31_REGNUM, E_NUM_OF_V850E3V5_REGS): Define.
7949 (v850_abi, V850_ABI_GCC, V850_ABI_RH850): New enum and constants.
7950 (gdbarch_tdep): New struct.
7951 (v850e2_register_name): Use E_NUM_OF_V850E2_REGS instead of
7952 E_NUM_REGS.
7953 (v850e3v5_register_name): New function.
7954 (v850_register_type): v850e3v5 vector registers are 64-bits wide.
7955 (v850_use_struct_convention): Add `gdbarch' parameter. Add new
7956 code handling the struct return conventions for the RH850 ABI.
7957 Update all callers.
7958 (v850_eight_byte_align_p): New function.
7959 (v850_push_call_dummy): Push structs by value, not by reference
7960 for the RH850 ABI. Add support for eight byte alignment.
7961 (v850_dbtrap_breakpoint_from_pc): New function.
7962 (v850_gdbarch_init): Add ABI detection code. Register
7963 v850e3v5_register_name for the v850e3v5 architecture. Set the
7964 number of registers for v850e3v5. Register
7965 v850_dbtrap_breakpoint_from_pc as appropriate.
7966 (_initialize_gdbarch_init): Registration bfd_arch_v850_rh850.
7967
7968 2013-05-03 Doug Evans <dje@google.com>
7969
7970 * objfiles.c (objfile_relocate): Use gdb_bfd_count_sections instead
7971 of bfd_count_sections.
7972 * solib-target.c (solib_target_relocate_section_addresses): Ditto.
7973 * symfile.c (default_symfile_offsets): Ditto.
7974 (syms_from_objfile_1): Ditto. Make dummy addrs list an array of
7975 one entry, not bfd_count_sections entries.
7976
7977 2013-05-03 Kevin Buettner <kevinb@redhat.com>
7978
7979 * rl78-tdep.c (rl78_register_reggroup_p): Include SP in the
7980 `save' and `restore' register groups. Don't include SPL
7981 or SPH in these groups.
7982 (rl78_dwarf_reg_to_regnum): Adjust mapping for
7983 RL78_PC_REGNUM. Add mappings for RL78_PSW_REGNUM,
7984 RL78_ES_REGNUM, and RL78_CS_REGNUM.
7985 (rl78_gdbarch_init): Set `dwarf2_addr_size' to 4. Invoke
7986 dwarf2_append_unwinders().
7987
7988 2013-05-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7989
7990 * break-catch-sig.c (signal_catchpoint_breakpoint_hit): Do not
7991 ignore SIGINT and SIGTRAP in case these internal signals are
7992 caught explicitely.
7993
7994 2013-05-01 Joel Brobecker <brobecker@adacore.com>
7995
7996 * darwin-nat.c (darwin_read_write_inferior): Change types
7997 of parameters rdaddr and wraddr to "gdb_byte *". Change type
7998 of copy_count to "mach_msg_type_number_t".
7999 (darwin_read_dyld_info): Change type of parameter
8000 rdaddr to "gdb_byte *".
8001
8002 2013-05-01 Joel Brobecker <brobecker@adacore.com>
8003
8004 * solib-ia64-hpux.c (ia64_hpux_read_dynamic_info): Change cast
8005 of &info->load_map from "char *" to "gdb_byte *".
8006
8007 2013-05-01 Joel Brobecker <brobecker@adacore.com>
8008
8009 * ia64-tdep.c (ia64_access_fpreg): Change cast of val
8010 from "char *" to "gdb_byte *".
8011 (ia64_access_rse_fpreg, ia64_access_mem): Likewise.
8012
8013 2013-04-30 Doug Evans <dje@google.com>
8014
8015 * dwarf2read.c (lookup_dwo_unit): Return NULL if DWO not found.
8016 (init_cutu_and_read_dies): Flag a complaint, not error, for bad
8017 DWO stub. If DWO isn't found, just use stub.
8018 (lookup_dwo_cutu): Don't try DWO if there's a DWP file.
8019
8020 * dwarf2read.c (dw2_find_symbol_file): Initialize filename before
8021 calling init_cutu_and_read_dies.
8022
8023 2013-03-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
8024
8025 * target-descriptions.c (maint_print_c_tdesc_cmd):
8026 Add case to parse structures as register types and
8027 bitfields.
8028
8029 2013-04-30 Walfred Tedeschi <walfred.tedeschi@intel.com>
8030
8031 * MAINTAINERS (Write After Approval): Add myself to the list.
8032
8033 2013-04-30 Joel Brobecker <brobecker@adacore.com>
8034
8035 * sol-thread.c (rw_common): Change type of parameter "buf"
8036 to "gdb_byte *".
8037 (ps_pdwrite, ps_ptwrite): Cast parameter "buf" in call to
8038 rw_common to "gdb_byte *" instead of "char *".
8039
8040 2013-04-30 Joel Brobecker <brobecker@adacore.com>
8041
8042 * sol-thread.c (info_cb) [ti.ti_startfunc != 0]: Change type
8043 of local variable msym to const struct bound_minimal_symbol.
8044 Adjust use accordingly.
8045 [ti.ti_state == TD_THR_SLEEP]: Likewise.
8046
8047 2013-04-30 Samuel Thibault <samuel.thibault@gnu.org>
8048
8049 * i386gnu-nat.c (CREG_OFFSET): New macro.
8050 (creg_offset): New array.
8051 (CREG_ADDR): Use creg_offset instead of reg_offset.
8052
8053 2013-04-30 Joel Brobecker <brobecker@adacore.com>
8054
8055 * mep-tdep.c (mep_write_pc): Delete.
8056 (mep_gdbarch_init): Remove call to set_gdbarch_write_pc.
8057 Add call to set_gdbarch_pc_regnum.
8058
8059 2013-04-30 Joel Brobecker <brobecker@adacore.com>
8060
8061 * common/filestuff.c: Replace #include <dirent.h> by
8062 #include "gdb_dirent.h".
8063
8064 2013-04-30 Joel Brobecker <brobecker@adacore.com>
8065
8066 * common/filestuff.c: Replace #include <sys/stat.h> by
8067 #include "gdb_stat.h".
8068
8069 2013-04-29 Pierre Muller <muller@sourceware.org>
8070
8071 * dwarf2read.c (handle_DW_AT_stmt_list): Avoid ARI warning for
8072 editCase function rule.
8073 (get_DW_AT_signature_type): Likewise.
8074
8075 2013-04-29 Joel Brobecker <brobecker@adacore.com>
8076
8077 * m32r-tdep.c (m32r_write_pc): Delete.
8078 (m32r_gdbarch_init): Remove call to set_gdbarch_write_pc.
8079 Add call to set_gdbarch_pc_regnum.
8080
8081 2013-04-29 Pierre Muller <muller@sourceware.org>
8082
8083 * ./contrib/ari/gdb_ari.sh (editCase rule): Fix spelling error.
8084
8085 2013-04-29 Joel Brobecker <brobecker@adacore.com>
8086
8087 * dwarf2read.c (get_DW_AT_signature_type): Add ARI marker.
8088
8089 2013-04-28 Yao Qi <yao@codesourcery.com>
8090
8091 * solib-dsbt.c (fetch_loadmap): Re-indent.
8092 (displacement_from_map, enable_break2): Likewise.
8093 (dsbt_relocate_section_addresses): Likewise.
8094
8095 2013-04-26 Joel Brobecker <brobecker@adacore.com>
8096
8097 GDB 7.6 released.
8098
8099 2013-04-25 Andreas Kaufmann <Andreas.Kaufmann@synopsys.com>
8100
8101 PR corefiles/14983:
8102 * dwarf2read.c (process_full_comp_unit): Always create a static
8103 block.
8104
8105 2013-04-25 Hui Zhu <hui@codesourcery.com>
8106
8107 * breakpoint.c (build_target_command_list): Change loc->cond_bytecode
8108 to loc->cmd_bytecode.
8109
8110 2013-04-24 Doug Evans <dje@google.com>
8111
8112 * dwarf2read.c (setup_type_unit_groups): Fix comment.
8113
8114 2013-04-22 Keith Seitz <keiths@redhat.com>
8115
8116 * tracepoint.c (trace_save): Call the writer's start method.
8117
8118 2013-04-24 Muhammad Bilal <mbilal@codesourcery.com>
8119
8120 PR gdb/10462
8121 * cli/cli-decode.c (lookup_command): Show an error if there is no space
8122 before argument.
8123
8124 2013-04-23 Tom Tromey <tromey@redhat.com>
8125
8126 * common/filestuff.c: Check USE_WIN32API before including
8127 sys/socket.h.
8128 (HAVE_F_GETFD): New define.
8129 (mark_cloexec): Check HAVE_F_GETFD.
8130 (gdb_open_cloexec): Change 'mode' to unsigned long.
8131 (gdb_socketpair_cloexec): Check HAVE_SOCKETPAIR.
8132 (gdb_pipe_cloexec): Check HAVE_PIPE.
8133 * common/filestuff.h (gdb_open_cloexec): Change 'mode' to unsigned
8134 long.
8135
8136 2013-04-23 Hui Zhu <hui@codesourcery.com>
8137
8138 PR gdb/15293
8139 * breakpoint.c (bpstat_what): Add BPSTAT_WHAT_SINGLE to bp_dprintf.
8140
8141 2013-04-23 Hui Zhu <hui@codesourcery.com>
8142
8143 PR gdb/15165
8144 * breakpoint.c (dprintf_print_recreate): New.
8145 (save_breakpoints): Let it not save dprintf commands.
8146 (initialize_breakpoint_ops): Set dprintf_print_recreate.
8147
8148 2013-04-22 Tom Tromey <tromey@redhat.com>
8149
8150 PR gdb/7912:
8151 * Makefile.in (SFILES): Add filestuff.c
8152 (COMMON_OBS): Add filestuff.o.
8153 (filestuff.o): New target.
8154 * auto-load.c (auto_load_objfile_script_1): Use
8155 gdb_fopen_cloexec.
8156 * auxv.c (procfs_xfer_auxv): Use gdb_open_cloexec.
8157 * cli/cli-cmds.c (shell_escape): Call close_most_fds.
8158 * cli/cli-dump.c (fopen_with_cleanup): Use gdb_fopen_cloexec.
8159 * common/agent.c (gdb_connect_sync_socket): Use
8160 gdb_socket_cloexec.
8161 * common/filestuff.c: New file.
8162 * common/filestuff.h: New file.
8163 * common/linux-osdata.c (linux_common_core_of_thread)
8164 (command_from_pid, commandline_from_pid, print_source_lines)
8165 (linux_xfer_osdata_shm, linux_xfer_osdata_sem)
8166 (linux_xfer_osdata_msg, linux_xfer_osdata_modules): Use
8167 gdb_fopen_cloexec.
8168 * common/linux-procfs.c (linux_proc_get_int)
8169 (linux_proc_pid_has_state): Use gdb_fopen_cloexec.
8170 * config.in, configure: Rebuild.
8171 * configure.ac: Don't check for sys/socket.h. Check for
8172 fdwalk, pipe2.
8173 * corelow.c (core_open): Use gdb_open_cloexec.
8174 * dwarf2read.c (write_psymtabs_to_index): Use gdb_fopen_cloexec.
8175 * fork-child.c (fork_inferior): Call close_most_fds.
8176 * gdb_bfd.c (gdb_bfd_open): Use gdb_open_cloexec.
8177 * inf-child.c (inf_child_fileio_readlink): Use gdb_open_cloexec.
8178 * linux-nat.c (linux_nat_thread_name, linux_proc_pending_signals):
8179 Use gdb_fopen_cloexec.
8180 (linux_proc_xfer_partial, linux_proc_xfer_spu): Use
8181 gdb_open_cloexec.
8182 (linux_async_pipe): Use gdb_pipe_cloexec.
8183 * remote-fileio.c (remote_fileio_func_open): Use
8184 gdb_open_cloexec.
8185 * remote.c (remote_file_put, remote_file_get): Use
8186 gdb_fopen_cloexec.
8187 * ser-pipe.c (pipe_open): Use gdb_socketpair_cloexec,
8188 close_most_fds.
8189 * ser-tcp.c (net_open): Use gdb_socket_cloexec.
8190 * ser-unix.c (hardwire_open): Use gdb_open_cloexec.
8191 * solib.c (solib_find): Use gdb_open_cloexec.
8192 * source.c (openp, find_and_open_source): Use gdb_open_cloexec.
8193 * tracepoint.c (tfile_start): Use gdb_fopen_cloexec.
8194 (tfile_open): Use gdb_open_cloexec.
8195 * tui/tui-io.c (tui_initialize_io): Use gdb_pipe_cloexec.
8196 * ui-file.c (gdb_fopen): Use gdb_fopen_cloexec.
8197 * xml-support.c (xml_fetch_content_from_file): Use
8198 gdb_fopen_cloexec.
8199 * main.c (captured_main): Call notice_open_fds.
8200
8201 2013-04-22 Edjunior Machado <emachado@linux.vnet.ibm.com>
8202
8203 * remote-sim.c (dump_mem): Change the type of 'buf' parameter from
8204 'char *' to 'gdb_byte *'.
8205 (gdbsim_store_register): Change the type of 'tmp' from 'char' to
8206 'gdb_byte'.
8207
8208 2013-04-22 Yao Qi <yao@codesourcery.com>
8209
8210 * infrun.c: Fix typo in comment.
8211
8212 2013-04-22 Andrew Haley <aph@redhat.com>
8213
8214 * arm-tdep.c (BranchDest): Cast result as "unsigned long",
8215 instead of "long".
8216
8217 2013-04-20 Yao Qi <yao@codesourcery.com>
8218
8219 * ctf.c (ctf_fetch_registers): Change the type of 'regs' from
8220 'char *' to 'gdb_byte *'. Cast the return value of
8221 'bt_ctf_get_char_array' to 'gdb_byte *'.
8222
8223 2013-04-19 Pedro Alves <palves@redhat.com>
8224
8225 * configure.ac (build_warnings): Replace -Wno-pointer-sign with
8226 -Wpointer-sign.
8227 * configure: Regenerate.
8228
8229 2013-04-19 Pedro Alves <palves@redhat.com>
8230
8231 * ser-tcp.c (net_read_prim): Cast second argument to recv to
8232 'void *'.
8233
8234 2013-04-19 Pedro Alves <palves@redhat.com>
8235
8236 * monitor.c (monitor_write_memory, monitor_write_memory_bytes):
8237 Change type of 'myaddr' parameter to gdb_byte pointer.
8238 (monitor_write_memory_longlongs): Likewise. Cast 'myaddr' pointer
8239 to 'long long' pointer instead of to 'unsigned long long'.
8240 (monitor_write_memory_block, monitor_read_memory_single)
8241 (monitor_read_memory): Change type of 'myaddr' parameter to
8242 gdb_byte pointer.
8243
8244 2013-04-19 Pedro Alves <palves@redhat.com>
8245
8246 * record.c (validate_history_size): Make parameter 'setting'
8247 unsigned.
8248
8249 2013-04-19 Pedro Alves <palves@redhat.com>
8250
8251 * ctf.c (ctf_write_uploaded_tsv, ctf_write_uploaded_tp): Add casts
8252 to 'gdb_byte *'.
8253
8254 2013-04-19 Pedro Alves <palves@redhat.com>
8255
8256 * cp-valprint.c (cp_print_class_member): Change type of 'fieldno'
8257 local to int.
8258
8259 2013-04-19 Pedro Alves <palves@redhat.com>
8260
8261 * ada-lang.c (print_it_exception): Add cast to gdb_byte *.
8262 * ada-tasks.c (read_fat_string_value): Likewise.
8263
8264 2013-04-19 Pedro Alves <palves@redhat.com>
8265
8266 * dwarf2-frame.c (execute_cfa_program): Make 'bytes_read' local
8267 unsigned. Pass 'tmp' to safe_read_uleb128 instead of the signed
8268 'offset', and adjust.
8269
8270 2013-04-19 Pedro Alves <palves@redhat.com>
8271
8272 * dwarf2read.c (dwarf2_get_dwz_file): Add cast to const char *.
8273 (read_index_from_section): Add cast to 'char *'.
8274
8275 2013-04-19 Pedro Alves <palves@redhat.com>
8276
8277 * xcoffread.c (xcoff_initial_scan): Add cast to 'char *'.
8278
8279 2013-04-19 Pedro Alves <palves@redhat.com>
8280
8281 * coff-pe-read.c (read_pe_exported_syms): Handle strings as char.
8282
8283 2013-04-19 Pedro Alves <palves@redhat.com>
8284
8285 * record-full.c (record_full_get_bookmark): Change local 'ret'
8286 type to char * and add cast to gdb_byte *.
8287 (record_full_goto_bookmark): Handle 'bookmark' argument as a
8288 string.
8289 * reverse.c (goto_bookmark_command): Add casts to gdb_byte *.
8290
8291 2013-04-19 Pedro Alves <palves@redhat.com>
8292
8293 * python/py-inferior.c (infpy_write_memory): Add cast to gdb_byte
8294 * python/py-prettyprint.c (print_string_repr): Change type of
8295 'output' local to char *. Add cast to gdb_byte * in
8296 LA_PRINT_STRING call.
8297 (print_children): Change type of 'output' local to char *.
8298 * python/py-value.c (valpy_string): Add cast to const char * in
8299 PyUnicode_Decode call.
8300
8301 2013-04-19 Pedro Alves <palves@redhat.com>
8302
8303 * remote-mips.c (mips_cksum): Rename 'data' parameter to 'datastr'
8304 and change its type to 'const char *'. Adjust.
8305 (mips_send_packet): Add cast to 'char *', and remove cast to
8306 'unsigned char *'.
8307 (mips_receive_packet): Remove cast to 'unsigned char *'.
8308 (mips_load_srec): Use bfd_byte.
8309 (pmon_makeb64, pmon_zeroset): Make 'chksum' parameter unsigned.
8310 (pmon_checkset): Make 'value' parameter unsigned.
8311
8312 2013-04-19 Pedro Alves <palves@redhat.com>
8313
8314 * common/agent.c (agent_run_command): Add cast to gdb_byte *.
8315
8316 2013-04-19 Pedro Alves <palves@redhat.com>
8317
8318 * remote.c (remote_write_bytes_aux, compare_sections_command)
8319 (remote_read_qxfer)
8320 (remote_search_memory, remote_hostio_pwrite, remote_hostio_pread)
8321 (remote_hostio_readlink, remote_bfd_iovec_pread)
8322 (remote_set_trace_notes): Use gdb_byte when RSP buffer is used as
8323 binary buffer, and char when buffer is used as string.
8324 * tracepoint.c (encode_source_string, tfile_write_uploaded_tp)
8325 (trace_save, tfile_open, traceframe_walk_blocks)
8326 (tfile_fetch_registers): Likewise.
8327
8328 2013-04-19 Pedro Alves <palves@redhat.com>
8329
8330 * ser-base.c (ser_base_write): Change prototype -- take 'void *'
8331 buffer and size_t size. Adjust.
8332 * ser-base.h (ser_base_write): Adjust.
8333 * ser-go32.c (cnts): Change type to size_t.
8334 (dos_write): Change prototype -- take 'void *'
8335 buffer and size_t size. Adjust.
8336 (dos_info): Print elements of 'cnts' as unsigned long.
8337 * serial.c (serial_write): Likewise.
8338 * serial.h (serial_write): Adjust.
8339 (struct serial_ops) <write>: Change prototype -- take 'void *'
8340 buffer and size_t size. Adjust.
8341
8342 2013-04-19 Pedro Alves <palves@redhat.com>
8343
8344 * c-lang.c (evaluate_subexp_c): Cast result of obstack_base to
8345 gdb_byte *.
8346 * linux-tdep.c (linux_make_mappings_corefile_notes): Likewise.
8347
8348 2013-04-19 Pedro Alves <palves@redhat.com>
8349
8350 * alpha-tdep.c (alpha_extract_return_value): Use
8351 regcache_cooked_read_unsigned to read 'v0'.
8352
8353 2013-04-19 Pedro Alves <palves@redhat.com>
8354
8355 * xtensa-tdep.c (execute_l32e, execute_s32e): Change type of
8356 parameters 'at', 'as' and 'offset' to uint32_t.
8357
8358 2013-04-19 Pedro Alves <palves@redhat.com>
8359
8360 * aarch64-tdep.c (aarch64_analyze_prologue): Change type of local
8361 'is64' to signed 'int'.
8362
8363 2013-04-19 Pedro Alves <palves@redhat.com>
8364
8365 * s390-tdep.c (is_rs, is_rsy, is_rx, is_rxy): Change type of 'd2'
8366 parameter to int *.
8367
8368 2013-04-19 Pedro Alves <palves@redhat.com>
8369
8370 * ppc-linux-tdep.c (ppc_skip_trampoline_code): Change local
8371 'insnbuf' buffer type to unsigned int[].
8372
8373 2013-04-19 Pedro Alves <palves@redhat.com>
8374
8375 * mips-tdep.c (mips_read_pc): Change local 'pc' type to LONGEST.
8376
8377 2013-04-19 Pedro Alves <palves@redhat.com>
8378
8379 * mep-tdep.c (mep_get_insn): Change 'insn' parameter type to
8380 unsigned long *.
8381
8382 2013-04-19 Pedro Alves <palves@redhat.com>
8383
8384 * alpha-tdep.c (heuristic_fence_post): Change type to int.
8385 (alpha_heuristic_proc_start): Adjust to check -1 instead of
8386 UINT_MAX.
8387 * mips-tdep.c (heuristic_fence_post): Change type to int.
8388 (heuristic_proc_start): Adjust to check -1 instead of UINT_MAX.
8389
8390 2013-04-19 Pedro Alves <palves@redhat.com>
8391
8392 * cris-tdep.c (usr_cmd_cris_version): Make unsigned.
8393 (struct gdbarch_tdep) <cris_version>: Make unsigned.
8394 (cris_spec_reg_applicable, cris_gdbarch_init): Adjust locals.
8395
8396 2013-04-19 Pedro Alves <palves@redhat.com>
8397
8398 * avr-tdep.c (avr_io_reg_read_command): New local 'bufstr'. Use
8399 it to get a string view of the byte buffer.
8400 * i386-cygwin-tdep.c (core_process_module_section): Change local 'buf'
8401 type to gdb_byte *. Adjust.
8402 * linux-tdep.c (linux_info_proc, linux_find_memory_regions_full):
8403 Change local to char *.
8404 * solib-darwin.c (find_program_interpreter): Change return type to
8405 char *. Adjust.
8406 (darwin_solib_get_all_image_info_addr_at_init): Adjust.
8407 * solib-dsbt.c (enable_break2): Change local 'buf' to char *.
8408 * solib-frv.c (enable_break2): Change local 'buf' to char *.
8409 * solib-spu.c (spu_current_sos): Add gdb_byte * cast.
8410 * solib-svr4.c (find_program_interpreter): Change return type to
8411 char *. Adjust.
8412 (enable_break): Change local 'interp_name' to char *.
8413 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
8414 * spu-tdep.c (spu_pseudo_register_read_spu): Add cast to 'char *'.
8415 (spu_pseudo_register_write_spu): Use char for string buffer.
8416 Adjust.
8417 (info_spu_event_command, info_spu_signal_command): Add casts to
8418 'char *'.
8419
8420 2013-04-19 Pedro Alves <palves@redhat.com>
8421
8422 * aarch64-tdep.c (aarch64_default_breakpoint): Change type to
8423 gdb_byte[].
8424 (aarch64_breakpoint_from_pc): Change return type to gdb_byte *.
8425 * ada-lang.c (ada_value_assign): Use gdb_byte.
8426 * alphanbsd-tdep.c (sigtramp_retcode): Change type to gdb_byte[].
8427 (alphanbsd_sigtramp_offset): Use gdb_byte.
8428 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint)
8429 (arm_linux_arm_be_breakpoint, eabi_linux_arm_le_breakpoint)
8430 (eabi_linux_arm_be_breakpoint, arm_linux_thumb_be_breakpoint)
8431 (arm_linux_thumb_le_breakpoint, arm_linux_thumb2_be_breakpoint)
8432 (arm_linux_thumb2_le_breakpoint): Change type to gdb_byte[].
8433 * arm-tdep.c (arm_stub_unwind_sniffer)
8434 (arm_displaced_init_closure): Use gdb_byte.
8435 (arm_default_arm_le_breakpoint, arm_default_arm_be_breakpoint)
8436 (arm_default_thumb_le_breakpoint)
8437 (arm_default_thumb_be_breakpoint): Change type to gdb_byte[].
8438 * arm-tdep.h (struct gdbarch_tdep) <arm_breakpoint,
8439 thumb_breakpoint, thumb2_breakpoint>: Change type to gdb_byte *.
8440 * arm-wince-tdep.c (arm_wince_le_breakpoint)
8441 (arm_wince_thumb_le_breakpoint): Change type to gdb_byte[].
8442 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint)
8443 (arm_nbsd_arm_be_breakpoint, arm_nbsd_thumb_le_breakpoint)
8444 (arm_nbsd_thumb_be_breakpoint): Change type to gdb_byte[].
8445 * armobsd-tdep.c (arm_obsd_thumb_le_breakpoint)
8446 (arm_obsd_thumb_be_breakpoint): Change type to gdb_byte[].
8447 * cris-tdep.c (push_stack_item, cris_push_dummy_call)
8448 (cris_store_return_value, cris_extract_return_value): Use
8449 gdb_byte.
8450 (constraint): Change type of parameter to char * from signed
8451 char*. Use gdb_byte.
8452 * dwarf2loc.c (read_pieced_value, write_pieced_value): Change type
8453 of local buffer to gdb_byte *.
8454 * dwarf2read.c (read_index_from_section): Use gdb_byte.
8455 (create_dwp_hash_table): Change type of locals to gdb_byte *.
8456 (add_address_entry): Change type of local buffer to gdb_byte[].
8457 * frv-tdep.c (frv_adjust_breakpoint_address, find_func_descr)
8458 (frv_push_dummy_call): Use gdb_byte.
8459 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code)
8460 (hppa_hpux_supply_ss_fpblock, hppa_hpux_supply_ss_wide)
8461 (hppa_hpux_supply_save_state): Use gdb_byte.
8462 * hppa-tdep.c (hppa32_push_dummy_call)
8463 (hppa64_convert_code_addr_to_fptr): Use gdb_byte.
8464 * ia64-tdep.c (extract_bit_field, replace_bit_field)
8465 (slotN_contents, replace_slotN_contents): Change type of parameter
8466 to gdb_byte *.
8467 (fetch_instruction, ia64_pseudo_register_write)
8468 (ia64_register_to_value, ia64_value_to_register)
8469 (ia64_extract_return_value, ia64_store_return_value)
8470 (ia64_push_dummy_call): Use gdb_byte.
8471 * m32c-tdep.c (m32c_return_value): Remove cast.
8472 * m68hc11-tdep.c (m68hc11_pseudo_register_write)
8473 (m68hc11_push_dummy_call, m68hc11_store_return_value): Use
8474 gdb_byte.
8475 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Use gdb_byte.
8476 * mn10300-tdep.c (mn10300_store_return_value)
8477 (mn10300_breakpoint_from_pc, mn10300_push_dummy_call): Use
8478 gdb_byte.
8479 * moxie-tdep.c (moxie_process_readu): Use gdb_byte.
8480 (moxie_process_record): Remove casts.
8481 * ppc-ravenscar-thread.c (supply_register_at_address)
8482 (ppc_ravenscar_generic_store_registers): Use gdb_byte.
8483 * ravenscar-thread.c (get_running_thread_id): Use gdb_byte.
8484 * remote-m32r-sdi.c (m32r_fetch_register): Use gdb_byte.
8485 * remote-mips.c (mips_xfer_memory): Use gdb_byte.
8486 * remote.c (compare_sections_command): Use gdb_byte.
8487 * score-tdep.c (score7_free_memblock): Change type of parameter to
8488 gdb_byte *.
8489 * sh-tdep.c (sh_justify_value_in_reg): Change return type to
8490 gdb_byte *. Use gdb_byte.
8491 (sh_push_dummy_call_fpu): Use gdb_byte.
8492 (sh_extract_return_value_nofpu, sh_extract_return_value_fpu)
8493 (sh_store_return_value_nofpu, sh_store_return_value_fpu)
8494 (sh_register_convert_to_virtual, sh_register_convert_to_raw):
8495 Change parameter type to 'gdb_byte *'. Use gdb_byte.
8496 (sh_pseudo_register_read, sh_pseudo_register_write): Use gdb_byte.
8497 * sh64-tdep.c (sh64_push_dummy_call): Use gdb_byte.
8498 (sh64_store_return_value, sh64_register_convert_to_virtual):
8499 Change parameter type to 'gdb_byte *'. Use gdb_byte.
8500 (sh64_pseudo_register_write): Use gdb_byte.
8501 * solib-darwin.c (darwin_current_sos): Add casts to 'gdb_byte *'.
8502 * solib-irix.c (fetch_lm_info): Likewise. Use gdb_byte for byte
8503 buffer.
8504 (irix_current_sos): Use gdb_byte.
8505 * solib-som.c (som_current_sos): Use gdb_byte.
8506 * sparc-ravenscar-thread.c (supply_register_at_address)
8507 (sparc_ravenscar_generic_store_registers): Use gdb_byte.
8508 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
8509 * spu-tdep.c (spu_get_overlay_table): Use gdb_byte.
8510 * tic6x-tdep.c (tic6x_breakpoint_from_pc): Change return type to
8511 'gdb_byte *'.
8512 * tic6x-tdep.h (struct gdbarch_tdep) <breakpoint>: Change type to
8513 'gdb_byte *'.
8514 * tracepoint.c (tfile_fetch_registers): Use gdb_byte.
8515 * xstormy16-tdep.c (xstormy16_extract_return_value)
8516 (xstormy16_store_return_value): Change parameter type to
8517 'gdb_byte *'. Adjust.
8518 (xstormy16_push_dummy_call): Use gdb_byte.
8519 * xtensa-tdep.c (xtensa_scan_prologue, call0_ret)
8520 (call0_analyze_prologue, execute_code): Use gdb_byte.
8521
8522 2013-04-19 Vladimir Kargov <kargov@gmail.com>
8523 Pedro Alves <palves@redhat.com>
8524
8525 * i387-tdep.c (i387_print_float_info): Use gdb_byte for pointer to
8526 value contents.
8527
8528 2013-04-17 Doug Evans <dje@google.com>
8529
8530 * dwarf2read.c (struct signatured_type): New member type.
8531 (struct attribute): Replace member signatured_type with signature.
8532 (DW_SIGNATURE): Replaces DW_SIGNATURE_TYPE.
8533 (read_call_site_scope): Call follow_die_ref instead of
8534 follow_die_ref_or_sig.
8535 (read_structure_type): Rewrite handling of signatured types.
8536 (read_enumeration_type): Ditto.
8537 (read_attribute_value): Update.
8538 (build_error_marker_type): New function.
8539 (lookup_die_type): Add assert. Rewrite handling of signatured types.
8540 Don't call error for bad types, just build an error marker type.
8541 (dump_die_shallow): Update.
8542 (follow_die_sig_1): Renamed from follow_die_sig.
8543 Don't call error for bad types, instead return NULL.
8544 (follow_die_sig): New function.
8545 (get_signatured_type, get_DW_AT_signature_type): New functions.
8546
8547 2013-04-17 Yufeng Zhang <yufeng.zhang@arm.com>
8548
8549 * aarch64-tdep.c (aarch64_write_pc): Removed.
8550 (aarch64_gdbarch_init): Remove set_gdbarch_write_pc of the above
8551 function.
8552
8553 2013-04-17 Yao Qi <yao@codesourcery.com>
8554
8555 * top.c (print_gdb_configuration): Print configure-time
8556 parameter on using libbabeltrace or not.
8557
8558 2013-04-16 Pedro Alves <palves@redhat.com>
8559
8560 * copyright.py (EXCLUDE_LIST): Add gdb/common/glibc_thread_db.h.
8561
8562 2013-04-16 Pedro Alves <palves@redhat.com>
8563
8564 * common/glibc_thread_db.h: Update from upstream glibc
8565 (git 568035b7874a099087b77f7bba3e36a1173787b0).
8566
8567 2013-04-16 Pedro Alves <palves@redhat.com>
8568
8569 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: Factor out to ...
8570 * common/glibc_thread_db.h: ... this new file ...
8571 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: ... and include it.
8572
8573 2013-04-16 Will Newton <will.newton@gmail.com>
8574 Pedro Alves <palves@redhat.com>
8575
8576 PR build/11881
8577
8578 * common/gdb_thread_db.h (LIBTHREAD_DB_SO)
8579 (LIBTHREAD_DB_SEARCH_PATH): Move outside of #ifdef
8580 HAVE_THREAD_DB_H.
8581
8582 2013-04-16 Pedro Alves <palves@redhat.com>
8583 Eli Zaretskii <eliz@gnu.org>
8584
8585 * NEWS: Mention "set foo unlimited".
8586
8587 2013-04-15 Doug Evans <dje@google.com>
8588
8589 * dwarf2read.c (struct dwo_file): Replace member "cus" with "cu".
8590 (struct create_dwo_cu_data): Renamed from create_dwo_info_table_data.
8591 (create_dwo_cu_reader): Renamed from
8592 create_dwo_debug_info_hash_table_reader.
8593 (create_dwo_cu): Renamed from create_dwo_debug_info_hash_table.
8594 Remove support for multiple CUs in a DWO file.
8595 (open_and_init_dwo_file, lookup_dwo_cutu): Update.
8596
8597 * dwarf2read.c (create_debug_types_hash_table): Use hex_string
8598 instead of phex.
8599 (lookup_dwo_unit, create_dwo_debug_info_hash_table_reader): Ditto.
8600 (create_dwo_in_dwp): Ditto.
8601
8602 2013-04-15 Tom Tromey <tromey@redhat.com>
8603
8604 * NEWS: Move recent entries into "since 7.6" section.
8605
8606 2013-04-15 Tom Tromey <tromey@redhat.com>
8607
8608 PR c++/13588:
8609 * NEWS: Update.
8610 * break-catch-throw.c (struct exception_catchpoint)
8611 <exception_rx, pattern>: New fields.
8612 (fetch_probe_arguments, dtor_exception_catchpoint)
8613 (check_status_exception_catchpoint)
8614 (print_one_detail_exception_catchpoint): New functions.
8615 (handle_gnu_v3_exceptions): Add "except_rx" argument.
8616 Compile regular expression if needed.
8617 (extract_exception_regexp): New function.
8618 (catch_exception_command_1): Use extract_exception_regexp.
8619 (compute_exception): Use fetch_probe_arguments.
8620 (initialize_throw_catchpoint_ops): Set dtor, print_one_detail,
8621 and check_status fields.
8622 * cp-abi.c (cplus_typename_from_type_info): New function.
8623 * cp-abi.h (cplus_typename_from_type_info): Declare.
8624 (struct cp_abi_ops) <get_typename_from_type_info>: New field.
8625 * gdb_regex.h (compile_rx_or_error): Declare.
8626 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info): Update
8627 comment.
8628 (init_gnuv3_ops): Set get_type_from_type_info field.
8629 * probe.c (compile_rx_or_error): Move...
8630 * utils.c (compile_rx_or_error): ... here.
8631
8632 2013-04-15 Tom Tromey <tromey@redhat.com>
8633
8634 PR c++/15176:
8635 * NEWS: Update.
8636 * break-catch-throw.c (compute_exception): New function.
8637 (exception_funcs): New global.
8638 (_initialize_break_catch_throw): Create $_exception.
8639 * cp-abi.c (cplus_type_from_type_info): New function.
8640 * cp-abi.h (cplus_type_from_type_info): Declare.
8641 (struct cp_abi_ops) <get_type_from_type_info>: New field.
8642 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info)
8643 (gnuv3_get_type_from_type_info): New functions.
8644 (init_gnuv3_ops): Set get_type_from_type_info ABI field.
8645
8646 2013-04-15 Tom Tromey <tromey@redhat.com>
8647
8648 * break-catch-throw.c (struct exception_names): New.
8649 (exception_functions): Change type.
8650 (re_set_exception_catchpoint): Look for SDT probes.
8651
8652 2013-04-15 Tom Tromey <tromey@redhat.com>
8653
8654 PR c++/10119:
8655 * break-catch-throw.c (exception_functions): New global.
8656 (gnu_v3_exception_catchpoint_ops): Move earlier.
8657 (struct exception_catchpoint): New.
8658 (classify_exception_breakpoint): Rewrite.
8659 (re_set_exception_catchpoint): New function.
8660 (handle_gnu_v3_exceptions): Return void. Use init_catchpoint.
8661 Allocate a struct exception_catchpoint.
8662 (catch_exception_command_1): Update.
8663 (initialize_throw_catchpoint_ops): Set 're_set' method.
8664
8665 2013-04-15 Tom Tromey <tromey@redhat.com>
8666
8667 * Makefile.in (SFILES): Add break-catch-throw.c
8668 (COMMON_OBS): Add break-catch-throw.o.
8669 * break-catch-throw.c: New file.
8670 * breakpoint.c: Move exception-catching code to new file.
8671 (ep_parse_optional_if_clause): No longer static.
8672 * breakpoint.h (ep_parse_optional_if_clause): Declare.
8673
8674 2013-04-15 Tom Tromey <tromey@redhat.com>
8675
8676 PR c++/9065:
8677 * NEWS: Update.
8678 * breakpoint.c (watchpoint_exp_is_const): Add OP_TYPEID.
8679 * c-exp.y (TYPEID): New token.
8680 (exp): Add new TYPEID productions.
8681 (ident_tokens): Add "typeid".
8682 * cp-abi.c (cplus_typeid, cplus_typeid_type): New functions.
8683 * cp-abi.h (cplus_typeid, cplus_typeid_type): Declare.
8684 (struct cp_abi_ops) <get_typeid, get_typeid_type>: New fields.
8685 * eval.c (evaluate_subexp_standard) <OP_TYPEID>: New case.
8686 * expprint.c (dump_subexp_body_standard) <OP_TYPEID>: New
8687 case.
8688 * gnu-v3-abi.c (std_type_info_gdbarch_data): New global.
8689 (build_std_type_info_type, gnuv3_get_typeid_type)
8690 (gnuv3_get_typeid): New functions.
8691 (init_gnuv3_ops): Initialize std_type_info_gdbarch_data. Set
8692 new fields on ABI object.
8693 * parse.c (operator_length_standard) <OP_TYPEID>: New case.
8694 * std-operator.def (OP_TYPEID): New.
8695
8696 2013-04-15 Tom Tromey <tromey@redhat.com>
8697
8698 * elfread.c (elf_symtab_read): Install versioned symbol under
8699 unversioned name as well.
8700
8701 2013-04-15 Tom Tromey <tromey@redhat.com>
8702
8703 PR c++/11990:
8704 * c-lang.c (cplus_language_defn): Use gdb_demangle.
8705 * c-typeprint.c (c_type_print_base): Use gdb_demangle.
8706 * cp-support.c (mangled_name_to_comp): Use gdb_demangle.
8707 (gdb_demangle): New function.
8708 * cp-support.h (gdb_demangle): Declare.
8709 * dwarf2read.c (dwarf2_physname, fixup_partial_die)
8710 (dwarf2_name): Use gdb_demangle.
8711 * gdbtypes.c (check_stub_method): Use gdb_demangle.
8712 * gnu-v3-abi.c (gnuv3_rtti_type): Strip @plt and version
8713 suffixes from name.
8714 (gnuv3_print_method_ptr): Use gdb_demangle.
8715 * jv-lang.c (java_demangle): Use gdb_demangle.
8716 * jv-typeprint.c (java_type_print_base): Use gdb_demangle.
8717 * language.c (unk_lang_demangle): Use gdb_demangle.
8718 * symtab.c (symbol_find_demangled_name)
8719 (demangle_for_lookup): Use gdb_demangle.
8720
8721 2013-04-15 Tom Tromey <tromey@redhat.com>
8722
8723 PR c++/12824:
8724 * NEWS: Update.
8725 * breakpoint.c (enum exception_event_kind) <EX_EVENT_RETHROW>:
8726 New constant.
8727 (classify_exception_breakpoint): New function.
8728 (print_it_exception_catchpoint, print_one_exception_catchpoint)
8729 (print_mention_exception_catchpoint)
8730 (print_recreate_exception_catchpoint, handle_gnu_v3_exceptions)
8731 (catch_exception_command_1): Handle "rethrow" catchpoint.
8732 (catch_rethrow_command): New function.
8733 (_initialize_breakpoint): Add "catch rethrow" command.
8734
8735 2013-04-15 Pierre Muller <muller@sourceware.org>
8736
8737 * contrib/ari/gdb_ari.sh (write_pc rule): Do not consider
8738 set_gdbarch_write_pc as deprecated anymore.
8739
8740 2013-04-15 Joel Brobecker <brobecker@adacore.com>
8741
8742 * spu-tdep.c (spu_write_pc): Add empty line after local variable
8743 declarations.
8744
8745 2013-04-13 Yao Qi <yao@codesourcery.com>
8746
8747 * ctf.c (_initialize_ctf): Include "completer.h".
8748 Call add_target_with_completer instead of add_target.
8749
8750 2013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
8751
8752 Fix GDB regression related to PR binutils/14813.
8753 * jit.c (mem_bfd_iovec_close): Return 0 for success.
8754 * minidebug.c (lzma_close): Add return value comment.
8755 * remote.c (remote_bfd_iovec_close): Return 0 for success.
8756 * solib-spu.c (spu_bfd_iovec_close): Likewise.
8757 * spu-linux-nat.c (spu_bfd_iovec_close): Likewise.
8758
8759 2013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
8760
8761 * config.in: Regenerate.
8762
8763 2013-04-12 Tom Tromey <tromey@redhat.com>
8764
8765 * dwarf2-frame.c (struct comp_unit) <dwarf_frame_buffer>: Now
8766 const.
8767 * dwarf2read.c (struct dwarf2_section_info) <buffer>: Now const.
8768 (struct die_reader_specs) <buffer>: Likewise.
8769 (die_reader_func_ftype): Make 'info_ptr' const.
8770 (struct line_header) <include_dirs, statement_program_start,
8771 statement_program_end>: Now const.
8772 (struct file_entry) <name>: Likewise.
8773 (struct partial_die_info) <sibling>: Likewise.
8774 (struct dwarf_block) <data>: Likewise.
8775 (dwarf2_read_section): Remove cast.
8776 (dwarf2_get_section_info): Make 'bufp' const.
8777 (read_index_from_section): Constify.
8778 (dw2_get_file_names_reader): Make 'info_ptr' const.
8779 (dw2_get_primary_filename_reader): Likewise.
8780 (read_comp_unit_head): Make 'info_ptr' and return type const.
8781 (read_and_check_comp_unit_head, read_and_check_type_unit_head):
8782 Likewise.
8783 (read_abbrev_offset): Constify.
8784 (dwarf2_create_include_psymtab): Make 'name' const.
8785 (create_debug_types_hash_table): Update.
8786 (read_cutu_die_from_dwo): Make 'result_info_ptr' const.
8787 (init_cutu_and_read_dies, init_cutu_and_read_dies_no_follow):
8788 Constify.
8789 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader)
8790 (load_partial_comp_unit_reader): Make 'info_ptr' const.
8791 (read_comp_units_from_section): Constify.
8792 (peek_abbrev_code, peek_die_abbrev, skip_children, skip_one_die)
8793 (locate_pdi_sibling, load_full_comp_unit_reader): Make 'info_ptr'
8794 const.
8795 (dwarf2_compute_name, setup_type_unit_groups): Constify.
8796 (create_dwo_debug_info_hash_table): Make 'info_ptr' const.
8797 (create_dwp_hash_table, dwarf2_ranges_read)
8798 (dwarf2_record_block_ranges): Constify.
8799 (read_die_and_children, read_die_and_siblings_1)
8800 (read_die_and_siblings): Make 'info_ptr' and 'new_info_ptr'
8801 const.
8802 (read_full_die_1, read_full_die): Make 'info_ptr' const.
8803 (abbrev_table_read_table): Constify.
8804 (load_partial_dies): Make 'info_ptr' const.
8805 (read_partial_die, read_attribute_value, read_attribute): Make
8806 'info_ptr' and return type const.
8807 (read_address, read_initial_length)
8808 (read_checked_initial_length_and_offset, read_offset)
8809 (read_offset_1, read_n_bytes, read_direct_string): Make 'buf'
8810 const.
8811 (read_direct_string): Make 'buf' and return type const.
8812 (read_indirect_string_at_offset, read_indirect_string_from_dwz)
8813 (read_indirect_string): Make return type const.
8814 (read_unsigned_leb128, read_signed_leb128): Make 'buf' const.
8815 (read_addr_index_from_leb128, dwarf2_read_addr_index_reader): Make
8816 'info_ptr' const.
8817 (read_str_index): Make return type const.
8818 (add_include_dir): Make 'include_dir' const.
8819 (add_file_name): Make 'name' const.
8820 (dwarf_decode_line_header): Constify.
8821 (psymtab_include_file_name): Make return type const.
8822 (dwarf_decode_lines_1, dwarf_decode_lines): Constify.
8823 (dwarf2_start_subfile): Make 'filename' const.
8824 (dwarf2_const_value_attr): Make 'bytes' const.
8825 (read_signatured_type_reader): Make 'info_ptr' const.
8826 (decode_locdesc): Constify.
8827 (skip_form_bytes): Make 'bytes', 'buffer_end', and return type
8828 const.
8829 (skip_unknown_opcode): Make 'opcode_definitions', 'mac_ptr',
8830 'mac_end', and return type const.
8831 (dwarf_parse_macro_header): Make 'mac_ptr' and return type const.
8832 (dwarf_decode_macro_bytes): Make 'mac_ptr', 'mac_end', and return
8833 type const.
8834 (per_cu_header_read_in): Constify.
8835 * symfile.h (dwarf2_get_section_info): Update.
8836
8837 2013-04-12 Tom Tromey <tromey@redhat.com>
8838
8839 * symtab.h (struct general_symbol_info) <value.bytes>: Make const.
8840
8841 2013-04-12 Eli Zaretskii <eliz@gnu.org>
8842
8843 * NEWS: Mention "show configuration", --configuration.
8844 * top.c (print_gdb_configuration): New function, displays the
8845 details about GDB configure-time parameters.
8846 (print_gdb_version): Mention "show configuration".
8847 * cli/cli-cmds.c (show_configuration): New function.
8848 (_initialize_cli_cmds): Add the "show configuration" command.
8849 * main.c (captured_main) <print_configuration>: New static var.
8850 <long_options>: Use it.
8851 If --configuration was given, call print_gdb_configuration.
8852
8853 2013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8854 Pedro Alves <palves@redhat.com>
8855
8856 * Makefile.in (HAVE_NATIVE_GCORE_TARGET): New.
8857 (generated_files): Add gcore.
8858 (install-only, uninstall): Add gcore if HAVE_NATIVE_GCORE_TARGET or
8859 HAVE_NATIVE_GCORE_HOST.
8860 (gcore): New.
8861 * NEWS (Changes since GDB 7.6): Mention newly installed gcore.
8862 * config/alpha/alpha-osf3.mh, config/i386/fbsd.mh,
8863 config/i386/fbsd64.mh, config/i386/i386gnu.mh, config/i386/i386sol2.mh,
8864 config/i386/sol2-64.mh, config/mips/irix5.mh, config/mips/irix6.mh,
8865 config/powerpc/fbsd.mh, config/sparc/fbsd.mh, config/sparc/sol2.mh:
8866 Add HAVE_NATIVE_GCORE_HOST.
8867 * configure: Regenerate.
8868 * configure.ac (HAVE_NATIVE_GCORE_TARGET): New, set it, AC_SUBST it.
8869 New AC_SUBST fir GDB_TRANSFORM_NAME and GCORE_TRANSFORM_NAME. New
8870 AC_CONFIG_FILES for gcore.
8871 * configure.tgt: Add gdb_have_gcore to the initial comment. Set
8872 gdb_have_gcore.
8873 * gdb_gcore.sh: Rename to ...
8874 * gcore.in: ... here. Remove gcore.sh comment. Use GDB_TRANSFORM_NAME
8875 and GCORE_TRANSFORM_NAME substitutions.
8876
8877 Fix parsing tabs in ${gdb_target_obs}.
8878 * configure.tgt (gdb_have_gcore): Replace case with for and if.
8879
8880 2013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8881
8882 * remote.c (unpush_and_perror): Add output message final dot.
8883
8884 2013-04-11 Yao Qi <yao@codesourcery.com>
8885
8886 * tracepoint.c (tfile_interp_line): Fit parameters line and
8887 utpp in one line.
8888
8889 2013-04-10 Joel Brobecker <brobecker@adacore.com>
8890
8891 * solib.c (solib_map_sections): Remove code overwriting
8892 SO->SO_NAME with the bfd's filename.
8893
8894 2013-04-10 Pedro Alves <palves@redhat.com>
8895
8896 * cli/cli-decode.c (integer_unlimited_completer): New function.
8897 (add_setshow_integer_cmd, add_setshow_uinteger_cmd)
8898 (add_setshow_zuinteger_unlimited_cmd): Install the "unlimited"
8899 completer.
8900 * cli/cli-setshow.c: Include "cli/cli-utils.h".
8901 (is_unlimited_literal): New function.
8902 (do_set_command): Handle literal "unlimited" arguments.
8903 * frame.c (_initialize_frame) <set backtrace limit>: Document
8904 "unlimited".
8905 * printcmd.c (_initialize_printcmd) <set print
8906 max-symbolic-offset>: Add help text.
8907 * record-full.c (_initialize_record_full) <set record full
8908 insn-number-max>: Likewise.
8909 * record.c (_initialize_record) <set record
8910 instruction-history-size, set record function-call-history-size>:
8911 Add help text.
8912 * ser-tcp.c (_initialize_ser_tcp) <set tcp connect-timeout>: Add
8913 help text.
8914 * tracepoint.c (_initialize_tracepoint) <set trace-buffer-size>:
8915 Likewise.
8916 * source.c (_initialize_source) <set listsize>: Add help text.
8917 * utils.c (initialize_utils) <set height, set width>: Likewise.
8918 <set pagination>: Mention "set height unlimited".
8919 * valprint.c (_initialize_valprint) <set print elements, set print
8920 repeats>: Document "unlimited".
8921
8922 2013-04-10 Pedro Alves <palves@redhat.com>
8923
8924 * cli/cli-cmds.c (quit_command): Call query_if_trace_running
8925 instead of disconnect_tracing.
8926 * infcmd.c (detach_command, disconnect_command): Call
8927 query_if_trace_running. Adjust.
8928 * top.c: Include "tracepoint.h".
8929 (quit_target): Delete. Contents moved ...
8930 (quit_force): ... here. Wrap each stage of teardown in
8931 TRY_CATCH. Call disconnect_tracing before detaching.
8932
8933 2013-04-10 Hui Zhu <hui@codesourcery.com>
8934 Yao Qi <yao@codesourcery.com>
8935
8936 * configure.ac: Check libbabeltrace is installed.
8937 * config.in: Regenerate.
8938 * configure: Regenerate.
8939 * Makefile.in (LIBBABELTRACE): New.
8940 (CLIBS): Add LIBBABELTRACE.
8941 * ctf.c: Include "exec.h".
8942 (CTF_EVENT_ID_STATUS, CTF_EVENT_ID_TSV_DEF): New macros.
8943 (CTF_EVENT_ID_TP_DEF, ctf_save_write_int32): New macros.
8944 (ctf_save_metadata_header): Define new type aliases in
8945 metadata.
8946 (ctf_write_header): Define event type "tsv_def" and "tp_def"
8947 in metadata. Start a new faked packet for trace status.
8948 (ctf_write_status): Write trace status to CTF.
8949 (ctf_write_uploaded_tsv): Write TSV to CTF.
8950 (ctf_write_uploaded_tp): Write tracepoint definition to CTF.
8951 (ctf_write_definition_end): End the faked packet.
8952
8953 (ctx, ctf_iter, trace_dirname): New.
8954 (start_pos): New variable.
8955 (ctf_destroy, ctf_open_dir, ctf_open): New.
8956 (SET_INT32_FIELD, SET_ARRAY_FIELD, SET_STRING_FIELD): New
8957 macros.
8958 (ctf_read_tsv, ctf_read_tp, ctf_close, ctf_files_info): New.
8959 (ctf_fetch_registers, ctf_xfer_partial): New.
8960 (ctf_get_trace_state_variable_value): New.
8961 (ctf_get_tpnum_from_frame_event): New.
8962 (ctf_get_traceframe_address): New.
8963 (ctf_trace_find, ctf_has_stack): New.
8964 (ctf_has_registers, ctf_traceframe_info, init_ctf_ops): New.
8965 (ctf_get_trace_status, ctf_read_status): New.
8966 (_initialize_ctf): New.
8967 * tracepoint.c (get_tracepoint_number): New
8968 (get_uploaded_tsv): Remove 'static'.
8969 (struct traceframe_info, trace_regblock_size): Move it to ...
8970 * tracepoint.h: ... here.
8971 (get_tracepoint_number): Declare it.
8972 (get_uploaded_tsv): Declare it.
8973
8974 * NEWS: Mention new configure option.
8975
8976 2013-04-10 Pedro Alves <palves@redhat.com>
8977 Hui Zhu <hui@codesourcery.com>
8978
8979 * breakpoint.c (dprintf_re_set): New.
8980 (initialize_breakpoint_ops): Set dprintf_breakpoint_ops re_set
8981 to dprintf_re_set.
8982
8983 2013-04-09 Joel Brobecker <brobecker@adacore.com>
8984
8985 * configure.tgt (gdb_target_obs) <powerpc-*-aix* | rs6000-*-*>:
8986 Remove solib-svr4.o from the list.
8987
8988 2013-04-09 Joel Brobecker <brobecker@adacore.com>
8989
8990 * varobj.c (update_dynamic_varobj_children) [!HAVE_PYTHON]:
8991 Use gdb_assert_not_reached instead of invalid boolean expression.
8992
8993 2013-04-09 Pedro Alves <palves@redhat.com>
8994
8995 * remote.c (unpush_and_perror): New function.
8996 (readchar, remote_serial_write): Use it.
8997
8998 2013-04-09 Markus Metzger <markus.t.metzger@intel.com>
8999
9000 * NEWS: Mention new btrace RSP packets.
9001
9002 2013-04-08 Tom Tromey <tromey@redhat.com>
9003
9004 * symmisc.c (dump_msymbols): Cast fprintf_filtered argument to
9005 long.
9006
9007 2013-04-08 Tom Tromey <tromey@redhat.com>
9008
9009 * maint.c (print_bfd_section_info): Print the section index.
9010 * symmisc.c (dump_msymbols): Print the section index.
9011
9012 2013-04-08 Tom Tromey <tromey@redhat.com>
9013
9014 PR symtab/8424:
9015 * blockframe.c (find_pc_partial_function_gnu_ifunc): Check
9016 SYMBOL_SECTION, not SYMBOL_OBJ_SECTION.
9017 * breakpoint.c (resolve_sal_pc): Update.
9018 * elfread.c (elf_gnu_ifunc_record_cache): Update.
9019 * findvar.c (struct minsym_lookup_data) <objfile>: New field.
9020 (minsym_lookup_iterator_cb): Use it.
9021 (default_read_var_value): Update.
9022 * hppa-hpux-tdep.c (hppa64_hpux_in_solib_call_trampoline):
9023 Update.
9024 * infcmd.c (jump_command): Update.
9025 * linespec.c (minsym_found): Update.
9026 * maint.c (maintenance_translate_address): Update.
9027 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Update.
9028 (prim_record_minimal_symbol_full): Don't set SYMBOL_OBJ_SECTION.
9029 * parse.c (write_exp_msymbol): Update.
9030 * printcmd.c (address_info): Update.
9031 * psymtab.c (find_pc_sect_psymbol): Update.
9032 (fixup_psymbol_section): Check SYMBOL_SECTION, not
9033 SYMBOL_OBJ_SECTION.
9034 (add_psymbol_to_bcache): Correctly initialize SYMBOL_SECTION.
9035 Don't initialize SYMBOL_OBJ_SECTION.
9036 * spu-tdep.c (spu_catch_start): Update.
9037 * stabsread.c (define_symbol): Don't set SYMBOL_SECTION.
9038 * symmisc.c (dump_msymbols, print_symbol): Update.
9039 * symtab.c (fixup_section): Don't set 'obj_section'. Change
9040 how fallback section is computed.
9041 (fixup_symbol_section): Update.
9042 (find_pc_sect_symtab, find_function_start_sal, skip_prologue_sal):
9043 Update.
9044 (allocate_symbol, initialize_symbol, allocate_template_symbol):
9045 Initialize SYMBOL_SECTION.
9046 * symtab.h (struct general_symbol_info) <section>: Update comment.
9047 <obj_section>: Remove.
9048 (SYMBOL_OBJ_SECTION): Add 'objfile' argument. Rewrite.
9049 (SYMBOL_OBJFILE): New macro.
9050
9051 2013-04-08 Tom Tromey <tromey@redhat.com>
9052
9053 * coffread.c (record_minimal_symbol): Update.
9054 * dbxread.c (record_minimal_symbol): Update.
9055 * elfread.c (record_minimal_symbol): Update.
9056 * machoread.c (macho_symtab_add_minsym): Update.
9057 * mdebugread.c (record_minimal_symbol, parse_partial_symbols):
9058 Update.
9059 * minsyms.c (prim_record_minimal_symbol): Update.
9060 (prim_record_minimal_symbol_full): Remove 'bfd_section'
9061 argument.
9062 (prim_record_minimal_symbol_and_info): Likewise.
9063 * minsyms.h (prim_record_minimal_symbol_full)
9064 (prim_record_minimal_symbol_and_info): Update.
9065 * symtab.c (allocate_symbol, initialize_symbol)
9066 (allocate_template_symbol): Initialize SYMBOL_SECTION.
9067 * xcoffread.c (record_minimal_symbol, scan_xcoff_symtab):
9068 Update.
9069
9070 2013-04-08 Tom Tromey <tromey@redhat.com>
9071
9072 PR symtab/8423:
9073 * solib-som.c (som_solib_section_offsets): Use BFD section
9074 indices. Set offsets for all sections.
9075 * somread.c (som_symtab_read): Compute BFD section for
9076 symbol. Use prim_record_minimal_symbol_and_info.
9077 (som_symfile_read): Fix comment.
9078 (struct find_section_offset_arg): New.
9079 (find_section_offset, set_section_index): New functions.
9080 (som_symfile_offsets): Use set_section_index to compute
9081 section indices.
9082
9083 2013-04-08 Tom Tromey <tromey@redhat.com>
9084
9085 * coffread.c (cs_to_section): Use gdb_bfd_section_index.
9086 * elfread.c (record_minimal_symbol, elf_symtab_read): Use
9087 gdb_bfd_section_index.
9088 * gdb_bfd.c (gdb_bfd_section_index, gdb_bfd_count_sections):
9089 New functions.
9090 * gdb_bfd.h (gdb_bfd_section_index, gdb_bfd_count_sections):
9091 Declare.
9092 * machoread.c (macho_symtab_add_minsym, macho_symfile_offsets):
9093 Update.
9094 * objfiles.c (add_to_objfile_sections_full): New function.
9095 (add_to_objfile_sections): Use it.
9096 (build_section_table): Rewrite.
9097 (objfile_relocate1): Use gdb_bfd_section_index. Update.
9098 * objfiles.h (obj_section_offset): Use gdb_bfd_section_index.
9099 (struct objfile) <sections>: Update comment.
9100 (ALL_OBJFILE_OSECTIONS): Skip sections where the_bfd_section
9101 is NULL.
9102 (ALL_OBJSECTIONS): Use it.
9103 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
9104 * solib-frv.c (frv_relocate_main_executable): Update.
9105 * solib-target.c (solib_target_relocate_section_addresses):
9106 Use gdb_bfd_section_index.
9107 * symfile.c (build_section_addr_info_from_section_table):
9108 Use gdb_bfd_section_index.
9109 (build_section_addr_info_from_bfd, place_section): Likewise.
9110 * symtab.c (fixup_section): Update.
9111 * xcoffread.c (find_targ_sec): Use gdb_bfd_section_index.
9112
9113 2013-04-08 Tom Tromey <tromey@redhat.com>
9114
9115 * minsyms.h (struct bound_minimal_symbol): New.
9116 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
9117 Remove objfile argument.
9118 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
9119 Return bound_minimal_symbol.
9120 * minsyms.c (lookup_minimal_symbol_by_pc_1)
9121 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
9122 Return bound_minimal_symbol.
9123 (in_gnu_ifunc_stub): Update.
9124 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
9125 Remove 'objfile_p' argument.
9126 (lookup_solib_trampoline_symbol_by_pc): Update.
9127 * ada-tasks.c, amd64-windows-tdep.c, arm-tdep.c,
9128 arm-wince-tdep.c, block.c, blockframe.c, breakpoint.c, btrace.c,
9129 c-valprint.c, dwarf2loc.c, elfread.c, frame.c, frv-tdep.c,
9130 glibc-tdep.c, gnu-v2-abi.c, gnu-v3-abi.c, hppa-hpux-tdep.c,
9131 i386-tdep.c, ia64-tdep.c, infcall.c, infcmd.c, jit.c,
9132 linux-fork.c, m32c-tdep.c, m68hc11-tdep.c, maint.c,
9133 mips-tdep.c, p-valprint.c, parse.c, ppc-linux-tdep.c,
9134 ppc-sysv-tdep.c, printcmd.c, rs6000-tdep.c, sh64-tdep.c,
9135 stack.c, symtab.c, tui/tui-disasm.c: Update.
9136
9137 2013-04-08 Tom Tromey <tromey@redhat.com>
9138
9139 * ada-lang.c (ada_decode_symbol): Check and set 'ada_mangled'.
9140 Use symbol's obstack, not an objfile.
9141 * coffread.c (process_coff_symbol): Update.
9142 * dwarf2read.c (fixup_go_packaging, new_symbol_full): Update.
9143 * jv-lang.c (add_class_symbol): Update.
9144 * mdebugread.c (new_symbol): Update.
9145 * minsyms.c (prim_record_minimal_symbol_full)
9146 (terminate_minimal_symbol_table): Update.
9147 * psymtab.c (add_psymbol_to_bcache): Clear entire symbol. Update.
9148 * stabsread.c (define_symbol, read_enum_type): Update.
9149 * symtab.c (symbol_set_demangled_name, symbol_get_demangled_name):
9150 Handle Ada specially.
9151 (symbol_set_language): Add 'obstack' argument.
9152 (symbol_set_names): Update.
9153 (symbol_natural_name, symbol_demangled_name): Always use
9154 ada_decode_symbol.
9155 * symtab.h (struct general_symbol_info)
9156 <language_specific::obstack>: New field.
9157 <ada_mangled>: New field.
9158 (SYMBOL_SET_LANGUAGE): Add 'obstack' argument.
9159 (symbol_set_language): Update.
9160
9161 2013-04-08 Tom Tromey <tromey@redhat.com>
9162
9163 * symtab.c (symbol_init_cplus_specific, symbol_set_demangled_name):
9164 Take an obstack, not an objfile.
9165 (symbol_set_names): Update.
9166 * symtab.h (symbol_set_demangled_name): Update.
9167
9168 2013-04-08 Tom Tromey <tromey@redhat.com>
9169
9170 * coffread.c (process_coff_symbol, coff_read_enum_type): Call
9171 allocate_symbol.
9172 * dwarf2read.c (fixup_go_packaging): Call allocate_symbol.
9173 (read_func_scope): Call allocate_template_symbol.
9174 (new_symbol_full): Call allocate_symbol.
9175 * jit.c (finalize_symtab): Call allocate_symbol.
9176 * jv-lang.c (add_class_symbol): Call allocate_symbol.
9177 * mdebugread.c (parse_symbol, new_block): Call allocate_symbol.
9178 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
9179 (common_block_end): Call allocate_symbol.
9180 * symtab.c (allocate_symbol, initialize_symbol)
9181 (allocate_template_symbol): New functions.
9182 * symtab.c (allocate_symbol, initialize_symbol)
9183 (allocate_template_symbol): Declare.
9184 * xcoffread.c (process_xcoff_symbol): Call initialize_symbol.
9185
9186 2013-04-08 Pedro Alves <palves@redhat.com>
9187 Keith Seitz <keiths@redhat.com>
9188
9189 * breakpoint.c (create_breakpoint): Rename
9190 "parse_condition_and_thread" parameter to "parse_arg". Update
9191 describing comment. If !PARSE_ARG, then error out if ARG is not
9192 the empty string after extracting the location.
9193 * breakpoint.h (create_breakpoint): Rename
9194 "parse_condition_and_thread" parameter to "parse_arg".
9195
9196 2013-04-08 Aleksandar Ristovski <aristovski@qnx.com
9197
9198 * solib-svr4.c (lm_addr_check): Add const qualifier to 'so' arg.
9199
9200 2013-04-07 Yao Qi <yao@codesourcery.com>
9201
9202 * remote.c (remote_trace_find): Change type of parameters 'addr1'
9203 and 'addr2' to CORE_ADDR.
9204 * target.c (update_current_target): Update.
9205 * target.h (struct target_ops) <to_trace_find>: Change parameter
9206 type to CORE_ADDR.
9207 * tracepoint.c (tfind_1): Change type of parameters 'addr1' and
9208 'addr2' to CORE_ADDR.
9209 (tfile_trace_find): Likewise.
9210 (tfile_get_traceframe_address): Change return type to CORE_ADDR.
9211 Change local variable 'addr' to type CORE_ADDR.
9212 * tracepoint.h (tfind_1): Update declaration.
9213
9214 2013-04-06 Eli Zaretskii <eliz@gnu.org>
9215
9216 * windows-nat.c (windows_get_absolute_argv0): Move from here...
9217 * mingw-hdep.c (windows_get_absolute_argv0): ...to here.
9218 Include main.h.
9219
9220 * windows-nat.h (windows_get_absolute_argv0): Move prototype from
9221 here...
9222 * main.h (windows_get_absolute_argv0): ...to here.
9223
9224 2013-04-05 Doug Evans <dje@google.com>
9225
9226 * dwarf2read.c (struct dwarf2_per_objfile): Tweak comment.
9227 (read_cutu_die_from_dwo): Add comments.
9228 (read_structure_type): Update comment.
9229 (read_enumeration_type, read_namespace_type): Update comment.
9230 (read_die_type, get_die_type_at_offset, get_die_type): Update comment.
9231
9232 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
9233
9234 Convert man pages to texinfo, new gdbinit.5 texinfo page.
9235 * Makefile.in (gdb.z): Remove.
9236 (install-only): Remove $(man1dir) and gdb.1 installation.
9237 * gdb.1: Remove.
9238
9239 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
9240
9241 Fix compatibility with Linux kernel 3.8.3.
9242 * linux-tdep.c (linux_find_memory_regions_full): Move variable number
9243 to more inner block. Remove parsing of NUMBER from outer block.
9244 Parse NUMBER only if KEYWORD has been identified.
9245
9246 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
9247
9248 Fix variable name shadowing.
9249 * linux-tdep.c (linux_find_memory_regions_full): Rename outer variable
9250 filename to mapsfilename and update its uses.
9251
9252 2013-04-05 Eli Zaretskii <eliz@gnu.org>
9253
9254 * Makefile.in (TAGS): Avoid warning from etags when $GDB_NM_FILE is
9255 empty. See http://sourceware.org/ml/gdb-patches/2012-08/msg00504.html
9256 and http://sourceware.org/ml/gdb-patches/2013-04/msg00055.html for
9257 details of the problem.
9258
9259 2013-04-04 Pedro Alves <palves@redhat.com>
9260 Hui Zhu <hui@codesourcery.com>
9261
9262 * breakpoint.c (validate_commands_for_breakpoint): If validating a
9263 tracepoint, reset its STEP_COUNT and call validate_actionline.
9264
9265 2013-04-03 Doug Evans <dje@google.com>
9266
9267 * dwarf2read.c (read_die_and_siblings_1): Renamed from
9268 read_die_and_siblings.
9269 (read_die_and_siblings): New function.
9270 (read_cutu_die_from_dwo): Dump die if requested.
9271 (read_die_and_children): Call read_full_die_1 and
9272 read_die_and_siblings_1.
9273 (read_full_die): Dump die if requested.
9274
9275 * dwarf2read.c (read_comp_units_from_section): Add debugging printf.
9276
9277 * dwarf2read.c (struct dwo_file): New member comp_dir.
9278 Rename member name to dwo_name. All uses updated.
9279 (hash_dwo_file): Include comp_dir in computation.
9280 (eq_dwo_file): Ditto.
9281 (lookup_dwo_file_slot): New arg comp_dir. All callers updated.
9282 (create_dwo_in_dwp, lookup_dwo_in_dwp, open_and_init_dwo_file): Ditto.
9283
9284 * psymtab.c (read_psymtabs_with_fullname): Don't call
9285 psymtab_to_fullname if the basenames are different.
9286
9287 2013-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
9288
9289 * NEWS (Changes in GDB 7.6): Update the data-disassemble for "fullname".
9290 New entry about "fullname" presence.
9291
9292 2013-04-03 Pedro Alves <palves@redhat.com>
9293
9294 * NEWS: Mention x86_64/Cygwin as new native configuration.
9295
9296 2013-04-02 Doug Evans <dje@google.com>
9297
9298 * dwarf2read.c (read_structure_type): Fix typo in comment.
9299
9300 2013-04-02 Pedro Alves <palves@redhat.com>
9301
9302 * NEWS: Mention "set/show debug aarch64", "set/show debug
9303 coff-pe-read" and "set/show debug mach-o".
9304
9305 2013-04-02 Pedro Alves <palves@redhat.com>
9306
9307 * NEWS: Mention "set/show remote trace-buffer-size-packet".
9308
9309 2013-04-02 Eli Zaretskii <eliz@gnu.org>
9310
9311 * Makefile.in (HFILES_NO_SRCDIR): Remove call-cmds.h.
9312 gdb_string.h is now in common/.
9313
9314 2013-04-02 Pedro Alves <palves@redhat.com>
9315
9316 * NEWS: Move "set debug notification" and "set trace-buffer-size"
9317 under "New options".
9318
9319 2013-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
9320
9321 Revert this patch:
9322 PR gdb/15275
9323 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
9324
9325 2013-04-02 Pedro Alves <palves@redhat.com>
9326
9327 PR gdb/15275
9328
9329 * remote.c (send_interrupt_sequence): Use remote_serial_write.
9330 (remote_serial_write): New function.
9331 (putpkt_binary, getpkt_or_notif_sane_1): Use remote_serial_write.
9332
9333 2013-04-01 Jiong Wang <jiwang@tilera.com>
9334
9335 * NEWS: Mention TILE-Gx in "New native configurations" and
9336 "New targets" sections.
9337
9338 2013-04-01 Doug Evans <dje@google.com>
9339
9340 * dwarf2read.c (lookup_signatured_type_at_offset): Delete.
9341 (process_enumeration_scope): Simplify.
9342
9343 * dwarf2read.c (struct dwarf2_per_cu_data): Move member
9344 type_unit_group ...
9345 (struct signatured_type): ... to here.
9346 (sig_type_ptr): New typedef.
9347 (type_unit_group): Delete member 't.first_cu'. Move member 'tus'
9348 out of union 't'. All uses updated.
9349 (dw2_get_file_names_reader): Assert not called for a type unit.
9350 (dw2_get_file_names): Assert not called for a type unit or type
9351 unit group.
9352 (build_type_psymtabs_reader): Assert called for a type unit.
9353 (build_type_psymtab_dependencies): Assert called for a type unit group.
9354
9355 * dwarf2read.c (free_dwo_file): Add comment.
9356 (dwarf2_per_objfile_free): Unref dwp bfd.
9357
9358 2013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
9359
9360 * coff-pe-read.c (add_pe_exported_sym): Remove unused 'dll_name_len'.
9361 (add_pe_forwarded_sym): Remove unused 'section', 'dll_name_len'.
9362 (read_pe_exported_syms): Remove unused 'exportix'.
9363 (pe_text_section_offset): Remove unused 'opthdr_ofs', 'num_entries',
9364 'export_rva', 'export_size', 'expptr', 'exp_funcbase', 'expdata',
9365 'erva', 'name_rvas', 'ordinals', 'nexp', 'ordbase', 'dll_name'.
9366
9367 2013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
9368
9369 * breakpoint.c (parse_cond_to_aexpr): Remove unused 'old_chain'.
9370 (print_it_watchpoint): Remove unused 'bl'.
9371 (say_where): Remove unused 'uiout'.
9372 (bpstat_remove_breakpoint_callback): Remove unused 'uiout'.
9373 (bkpt_breakpoint_hit): Remove unused 'b'.
9374 (internal_bkpt_print_it): Remove unused 'uiout'.
9375 * buildsym.c (augment_type_symtab): Remove unused 'i'.
9376
9377 2013-03-31 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
9378
9379 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_float): New function.
9380 (ppc64_sysv_abi_push_dummy_call): Handle complex arguments.
9381
9382 2013-03-29 Doug Evans <dje@google.com>
9383
9384 * dwarf2read.c (open_dwo_file): Renamed from open_dwop_file.
9385 Delete arg is_dwp. All callers updated.
9386 (open_dwp_file): New function.
9387 (open_and_init_dwp_file): Call it.
9388 (get_dwp_file): New function.
9389 (lookup_dwo_cutu): Call it.
9390
9391 * dwarf2read.c (open_and_init_dwp_file): Remove incorrect, and
9392 unnecessary, cleanup.
9393
9394 * dwarf2read.c (lookup_dwo_cutu): Improve complaint text.
9395
9396 * dwarf2read.c (read_cutu_die_from_dwo): New function.
9397 (lookup_dwo_unit): New function.
9398 (init_cutu_and_read_dies): Move DWO handling to new functions.
9399
9400 * dwarf2read.c (struct signatured_type): Tweak comment.
9401 (struct dwo_unit): Tweak comment.
9402 (create_debug_types_hash_table): Tweak comment. Reformat long line.
9403 (create_dwo_debug_info_hash_table): Tweak comment.
9404 (dwarf2_per_cu_offset_and_type): Tweak comment.
9405
9406 * dwarf2read.c (lookup_signatured_type): Remove complaint about
9407 missing .debug_types section.
9408
9409 2013-03-29 Yao Qi <yao@codesourcery.com>
9410
9411 * corelow.c: Include "completer.h".
9412 (_initialize_corelow): Call add_target_with_completer with
9413 argument 'filename_completer'.
9414 * tracepoint.c: Likewise.
9415 * exec.c (_initialize_exec): Likewise.
9416 * target.c (add_target): Rename to ...
9417 (add_target_with_completer): ... this. Call set_cmd_completer
9418 if parameter completer is not NULL.
9419 (add_target): New.
9420 * target.h: Include "command.h".
9421 (add_target_with_completer): Declare it.
9422
9423 2013-03-28 Joel Brobecker <brobecker@adacore.com>
9424
9425 * coffread.c (is_import_fixup_symbol): New function.
9426 (record_minimal_symbol): Use is_import_fixup_symbol to
9427 detect import fixup symbols, and discard them.
9428
9429 2013-03-28 Doug Evans <dje@google.com>
9430
9431 * dwarf2read.c (create_debug_types_hash_table): Don't allocate the
9432 types hash table until we know we need it.
9433
9434 * dwarf2read.c (create_addrmap_from_index): Complain about bad CU
9435 index numbers.
9436
9437 * dwarf2read.c (dw2_get_file_names): Delete arg "objfile".
9438 All callers updated.
9439 (dw2_print_stats): Print #read CUs too.
9440 (dump_die_shallow): Print signatured types better.
9441
9442 * dwarf2read.c (struct dwarf2_per_cu_data): Rename member
9443 info_or_types_section to section. All uses updated.
9444 (struct dwo_unit): Ditto.
9445
9446 2013-03-28 Pedro Alves <palves@redhat.com>
9447
9448 * NEWS (New options): New section.
9449 (New options): Mention set/show remote trace-status-packet.
9450 * remote.c (PACKET_qTStatus): New enumeration value.
9451 (remote_get_trace_status): Skip sending qTStatus if the packet is
9452 disabled. Use packet_ok.
9453 (_initialize_remote): Register a configuration command for
9454 qTStatus packet.
9455
9456 2013-03-28 Doug Evans <dje@google.com>
9457
9458 * symfile.c (find_separate_debug_file): Add comment.
9459 (terminate_after_last_dir_separator): Tweak comment.
9460
9461 * dwarf2read.c (create_partial_symtab): Add forward decl.
9462 (create_partial_symtab): Move to be closer to other psymtab functions.
9463 (process_psymtab_comp_unit_reader, process_psymtab_comp_unit): Ditto.
9464
9465 * dwarf2read.c (dwarf2_physname): Move declaration to better spot.
9466 (compute_symtab_includes): Remove unnecessary forward declaration.
9467 (die_needs_namespace): Add comment marking group of functions for
9468 dwarf2 name computation.
9469
9470 * typeprint.c (_initialize_typeprint): Improve type help text.
9471
9472 * python/python.c (finish_python_initialization): Provide suggestion
9473 for how to tell gdb to find its python files.
9474
9475 2013-03-28 Pedro Alves <palves@redhat.com>
9476
9477 PR gdb/15294
9478
9479 * source.c (_initialize_source): Change back "set listsize" to an
9480 integer command.
9481
9482 2013-03-27 Gareth McMullin <gareth@blacksphere.co.nz>
9483
9484 PR gdb/15275
9485 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
9486
9487 2013-03-27 Pedro Alves <palves@redhat.com>
9488
9489 * top.c (history_size): Rename to ...
9490 (history_size_setshow_var): ... this. Add comment.
9491 (show_commands): Use readline's 'history_length' instead of
9492 computing the history length by calling history_get in a loop.
9493 (set_history_size_command): Error out for sizes over INT_MAX.
9494 Restore previous history size on invalid size.
9495 (init_history): If HISTSIZE is negative, leave the history size as
9496 zero. Add comments.
9497 (init_main): Adjust.
9498
9499 2013-03-27 Pedro Alves <palves@redhat.com>
9500
9501 * coff-pe-read.c (_initialize_coff_pe_read): Rename "set debug
9502 coff_pe_read" command to "set debug coff-pe-read".
9503
9504 2013-03-27 Markus Metzger <markus.t.metzger@intel.com>
9505
9506 * record.c (command_size_to_target_size): Fix size comparison.
9507 Change parameter type from pointer to integer to integer.
9508 Update all users.
9509
9510 2013-03-27 Pierre Muller <muller@sourceware.org>
9511
9512 * windows-nat.c (handle_output_debug_string): Avoid typecast
9513 from integer of different size warning.
9514
9515 2013-03-26 Joel Brobecker <brobecker@adacore.com>
9516
9517 * windows-nat.c (handle_output_debug_string): Add empty line
9518 after local block variable definition.
9519
9520 2013-03-26 Pedro Alves <palves@redhat.com>
9521
9522 * ser-tcp.c (wait_for_connect): Make 'polls' parameter unsigned.
9523 (net_open): Make 'polls' local unsigned.
9524
9525 2013-03-26 Pedro Alves <palves@redhat.com>
9526
9527 * remote.c (_initialize_remote): Make "set remoteaddresssize"
9528 a zuinteger command instead of uinteger.
9529
9530 2013-03-26 Pedro Alves <palves@redhat.com>
9531
9532 * record-full.c (record_full_insn_num): Make it unsigned.
9533 (record_full_check_insn_num, record_full_message)
9534 (record_full_registers_change, record_full_xfer_partial): Remove
9535 record_full_insn_max_num check (it's always != 0).
9536 (record_full_info, record_full_restore): Use %u as format string.
9537 (): Use %u as format string.
9538 (set_record_full_insn_max_num): Remove record_full_insn_max_num
9539 check (it's always != 0).
9540
9541 2013-03-26 Pedro Alves <palves@redhat.com>
9542
9543 * dcache.c (_initialize_dcache): Make the "set dcache line-size"
9544 and "set dcache size" commands zuinteger instead of uinteger.
9545
9546 2013-03-26 Pedro Alves <palves@redhat.com>
9547
9548 * cris-tdep.c (_initialize_cris_tdep): Make the "set cris-version"
9549 command zuinteger instead of uinteger.
9550
9551 2013-03-26 Pedro Alves <palves@redhat.com>
9552
9553 * coff-pe-read.c (_initialize_coff_pe_read): Make the command
9554 zuinteger instead of uinteger.
9555
9556 2013-03-26 Pedro Alves <palves@redhat.com>
9557
9558 * record.c (record_insn_history_size_setshow_var)
9559 (record_call_history_size_setshow_var): New globals.
9560 (command_size_to_target_size): New function.
9561 (cmd_record_insn_history, cmd_record_call_history): Use
9562 command_size_to_target_size instead of cast.
9563 (validate_history_size, set_record_insn_history_size)
9564 (set_record_call_history_size): New functions.
9565 (_initialize_record): Install set_record_insn_history_size and
9566 set_record_call_history_size as "set" hooks of "set record
9567 instruction-history-size" and "set record
9568 function-call-history-size".
9569
9570 2013-03-26 Pedro Alves <palves@redhat.com>
9571
9572 * top.c (gdb_rl_operate_and_get_next): Replace max_input_history
9573 use with history_max_entries use. Remove FIXME note.
9574
9575 2013-03-26 Markus Metzger <markus.t.metzger@intel.com>
9576
9577 * record-btrace.c (record_btrace_close): Call
9578 record_btrace_auto_disable.
9579
9580 2013-03-25 Joel Brobecker <brobecker@adacore.com>
9581
9582 * rs6000-nat.c (fixup_breakpoints): Delete declaration.
9583
9584 2013-03-25 Doug Evans <dje@google.com>
9585
9586 * contrib/cc-with-tweaks.sh: Check exit code of dwp.
9587
9588 2013-03-25 Tom Tromey <tromey@redhat.com>
9589
9590 PR symtab/11462:
9591 * c-exp.y (exp): Add new productions for destructors after '.' and
9592 '->'.
9593 (write_destructor_name): New function.
9594
9595 2013-03-25 Tom Tromey <tromey@redhat.com>
9596
9597 PR c++/9197:
9598 * opencl-lang.c (evaluate_subexp_opencl) <STRUCTOP_STRUCT>: Use
9599 value_struct_elt, not lookup_struct_elt_type.
9600 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
9601 STRUCTOP_PTR>: Use value_struct_elt, not lookup_struct_elt_type.
9602 * expression.h (EVAL_AVOID_SIDE_EFFECTS): Update comment.
9603
9604 2013-03-25 Yao Qi <yao@codesourcery.com>
9605
9606 * ctf.c [USE_WIN32API]: Undef 'mkdir' and use 'mkdir'
9607 instead of '_mkdir'.
9608
9609 2013-03-23 Eli Zaretskii <eliz@gnu.org>
9610
9611 * windows-nat.c (windows_get_absolute_argv0): New function.
9612 * windows-nat.h: Add its prototype.
9613
9614 * main.c (get_init_files): Use filename_ncmp instead of strncmp.
9615 Use IS_DIR_SEPARATOR instead of looking for a character inside
9616 SLASH_STRING. Include filenames.h.
9617 (captured_main) [__MINGW32__]: Make argv[0] absolute, so that
9618 relocate_gdb_directory works when passed gdb_program_name.
9619 Include windows-nat.h.
9620
9621 2013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
9622
9623 * exceptions.h (enum errors): New entry TARGET_CLOSE_ERROR.
9624 * remote.c (trace_error): Remove the special handling of '2'.
9625 (readchar) <SERIAL_EOF>
9626 (readchar) <SERIAL_ERROR>
9627 (getpkt_or_notif_sane_1): Use TARGET_CLOSE_ERROR for them.
9628 (remote_get_trace_status): Call throw_exception if EX is
9629 TARGET_CLOSE_ERROR.
9630 * utils.c (perror_with_name): Rename to ...
9631 (throw_perror_with_name): ... here. New parameter errcode, describe it
9632 in the function comment.
9633 (perror_with_name): New function wrapper.
9634 * utils.h (enum errors): New stub declaration.
9635 (throw_perror_with_name): New declaration.
9636
9637 2013-03-22 Pedro Alves <palves@redhat.com>
9638 Yao Qi <yao@codesourcery.com>
9639 Mark Kettenis <kettenis@gnu.org>
9640
9641 * cli/cli-setshow.c (do_set_command) <var_uinteger>:
9642 Don't let the user set the value to UINT_MAX directly.
9643 <var_integer>: Don't let the user set the value to INT_MAX
9644 directly.
9645
9646 2013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
9647
9648 * remote.c (remote_unpush_target): New function.
9649 (remote_open_1): Remove two pop_target calls, update one comment, add
9650 comment to target_preopen call. Replace pop_target call by
9651 remote_unpush_target call.
9652 (interrupt_query, readchar, getpkt_or_notif_sane_1): Replace
9653 pop_target calls by remote_unpush_target calls.
9654
9655 2013-03-22 Pedro Alves <palves@redhat.com>
9656
9657 * linux-nat.c (linux_child_follow_fork): Don't call
9658 linux_enable_event_reporting.
9659 (linux_handle_extended_wait): Don't call
9660 linux_enable_event_reporting.
9661
9662 2013-03-22 Pedro Alves <palves@redhat.com>
9663
9664 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Define INSN macro,
9665 use it to rewrite the trampoline buffers with type gdb_byte[], and
9666 undefine the macro. Remove char* cast.
9667
9668 2013-03-21 Doug Evans <dje@google.com>
9669
9670 New commands "mt set per-command {space,time,symtab} {on,off}".
9671 * NEWS: Add entry.
9672 * event-top.c: #include "maint.h".
9673 * main.c: #include "maint.h".
9674 * maint.c: #include <sys/time.h>, <time.h>, block.h, top.h,
9675 timeval-utils.h, maint.h, cli/cli-setshow.h.
9676 (per_command_time, per_command_space): New static globals.
9677 (per_command_symtab): New static global.
9678 (per_command_setlist, per_command_showlist): New static globals.
9679 (struct cmd_stats): Move here from utils.c.
9680 (set_per_command_time): Renamed from set_display_time in utils.c
9681 and moved here. All callers updated.
9682 (set_per_command_space): Renamed from set_display_space in utils.c
9683 and moved here. All callers updated.
9684 (count_symtabs_and_blocks): New function.
9685 (report_command_stats): Moved here from utils.c. Add support for
9686 printing symtab stats. Only print data if enabled before command
9687 executed.
9688 (make_command_stats_cleanup): Ditto.
9689 (sert_per_command_cmd, show_per_command_cmd): New functions.
9690 (_initialize_maint_cmds): Add new commands
9691 mt set per-command {space,time,symtab} {on,off}.
9692 * maint.h: New file.
9693 * top.c: #include "maint.h".
9694 * utils.c (reset_prompt_for_continue_wait_time): New function.
9695 (get_prompt_for_continue_wait_time): New function.
9696 * utils.h (reset_prompt_for_continue_wait_time): Declare
9697 (get_prompt_for_continue_wait_time): Declare.
9698 (make_command_stats_cleanup): Moved to maint.h.
9699 (set_display_time, set_display_space): Moved to maint.h and renamed
9700 to set_per_command_time, set_per_command_space.
9701 * cli/cli-setshow.c (parse_cli_boolean_value): Renamed from
9702 parse_binary_operation and made non-static. Don't call error,
9703 just return an error marker. All callers updated.
9704 * cli/cli-setshow.h (parse_cli_boolean_value): Declare.
9705
9706 2013-03-21 Tom Tromey <tromey@redhat.com>
9707
9708 * symfile.c (alloc_section_addr_info): Update header. Don't set
9709 'num_sections' field.
9710 (build_section_addr_info_from_section_table): Set 'num_sections'.
9711 (build_section_addr_info_from_bfd): Likewise.
9712 (build_section_addr_info_from_objfile): Remove dead loop
9713 condition.
9714 (free_section_addr_info): Unconditionally call xfree.
9715 (relative_addr_info_to_section_offsets, addrs_section_sort)
9716 (addr_info_make_relative, syms_from_objfile_1): Remove dead loop
9717 condition.
9718 (syms_from_objfile_1): Remove dead 'if' condition. Check
9719 'num_sections'.
9720 (add_symbol_file_command): Set 'num_sections'.
9721 * symfile-mem.c (symbol_file_add_from_memory): Set
9722 'num_sections'.
9723 * somread.c (som_symfile_offsets): Remove dead loop condition.
9724 * machoread.c (macho_symfile_offsets): Remove dead 'if'.
9725 * jit.c (jit_bfd_try_read_symtab): Set 'num_sections'.
9726
9727 2013-03-21 Tom Tromey <tromey@redhat.com>
9728
9729 * tracepoint.h (decode_agent_options): Add 'trace_string'
9730 argument.
9731 * tracepoint.c (decode_agent_options): Add 'trace_string'
9732 argument.
9733 (validate_actionline): Update.
9734 (collect_symbol): Add 'trace_string' argument.
9735 (struct add_local_symbols_data) <trace_string>: New field.
9736 (do_collect_symbol): Update.
9737 (add_local_symbols): Add 'trace_string' argument.
9738 (encode_actions_1): Update.
9739 (trace_dump_actions): Update.
9740 * dwarf2loc.c (access_memory): Update.
9741 * ax.h (struct agent_expr) <tracing, trace_string>: New fields.
9742 * ax-general.c (new_agent_expr): Update.
9743 * ax-gdb.h (gen_trace_for_expr, gen_trace_for_var)
9744 (gen_trace_for_return_address): Add argument.
9745 (trace_kludge, trace_string_kludge): Remove.
9746 * ax-gdb.c (trace_kludge, trace_string_kludge): Remove.
9747 (gen_traced_pop, gen_fetch, gen_bitfield_ref, gen_expr): Update.
9748 (gen_trace_for_var): Add 'trace_string' argument.
9749 (gen_trace_for_expr, gen_trace_for_return_address): Likewise.
9750 (gen_printf, agent_eval_command_one): Update.
9751
9752 2013-03-21 Tom Tromey <tromey@redhat.com>
9753
9754 PR exp/15109:
9755 * c-exp.y (yylex): Rewrite to push all tokens onto the FIFO.
9756 Handle FILENAME token.
9757
9758 2013-03-21 Tom Tromey <tromey@redhat.com>
9759
9760 * c-exp.y (YYPRINT): Define.
9761 (c_print_token): New function.
9762
9763 2013-03-21 Tom Tromey <tromey@redhat.com>
9764
9765 * c-exp.y (%union) <sym, ivar, ivec>: Remove.
9766
9767 2013-03-21 Yao Qi <yao@codesourcery.com>
9768
9769 * ctf.c: Include "gdb_stat.h".
9770 [USE_WIN32API]: New macro 'mkdir'.
9771 (ctf_start): Use permission bits macros if they are defined.
9772
9773 2013-03-20 Keith Seitz <keiths@redhat.com>
9774
9775 * breakpoint.h (struct breakpoint): Add comment to
9776 extra_string indicating that this member is mallod'd.
9777 * breakpoint.c (base_breakpoint_dtor): Free extra_string.
9778
9779 2013-03-20 Pedro Alves <palves@redhat.com>
9780
9781 PR gdb/15289
9782
9783 * cli/cli-setshow.c (do_set_command)
9784 <var_uinteger, var_zuinteger>: Use LONGEST for variable holding
9785 the result of parsing the command argument. Throw error if the
9786 value is greater than UINT_MAX. Print the invalid value with
9787 plongest.
9788 <var_integer, var_zinteger>: Use LONGEST for variable holding the
9789 result of parsing the command argument. Throw error if the value
9790 is greater than INT_MAX, not greater or equal. Also throw error
9791 if the value is less than INT_MIN. Print the invalid value with
9792 plongest.
9793 <var_zuinteger_unlimited>: Throw error if the value is greater
9794 than INT_MAX, not greater or equal.
9795 (do_show_command) <var_integer, var_zinteger,
9796 var_zuinteger_unlimited>: Use %d for printing int, not %u.
9797
9798 2013-03-20 Tom Tromey <tromey@redhat.com>
9799
9800 * ax-gdb.c (gen_var_ref): Unconditionally call via computed ops,
9801 if possible.
9802 * dwarf2read.c (read_func_scope): Remove old FIXME.
9803 * eval.c (evaluate_subexp_standard): Check SYMBOL_COMPUTED_OPS,
9804 not LOC_COMPUTED.
9805 * findvar.c (symbol_read_needs_frame, default_read_var_value):
9806 Unconditionally call via computed ops, if possible.
9807 * printcmd.c (address_info): Unconditionally call via computed ops,
9808 if possible.
9809 * stack.c (read_frame_arg): Unconditionally call via computed ops,
9810 if possible.
9811 * symtab.c (register_symbol_computed_impl): Sanity check 'ops'.
9812 * tracepoint.c (scope_info): Unconditionally call via computed ops,
9813 if possible.
9814
9815 2013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9816 Tom Tromey <tromey@redhat.com>
9817
9818 PR symtab/8421:
9819 * coffread.c (coff_register_index): New global.
9820 (process_coff_symbol, coff_read_enum_type): Set
9821 SYMBOL_ACLASS_INDEX.
9822 (_initialize_coffread): Initialize new global.
9823 * dwarf2loc.c (locexpr_find_frame_base_location)
9824 (dwarf2_block_frame_base_locexpr_funcs)
9825 (loclist_find_frame_base_location)
9826 (dwarf2_block_frame_base_loclist_funcs): New.
9827 (dwarf_expr_frame_base_1): Call SYMBOL_BLOCK_OPS, remove internal_error.
9828 (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Add location_has_loclist.
9829 * dwarf2loc.h (dwarf2_block_frame_base_locexpr_funcs)
9830 (dwarf2_block_frame_base_loclist_funcs): New.
9831 * dwarf2read.c (dwarf2_locexpr_index, dwarf2_loclist_index)
9832 (dwarf2_locexpr_block_index, dwarf2_loclist_block_index): New
9833 globals.
9834 (read_func_scope): Update.
9835 (fixup_go_packaging, mark_common_block_symbol_computed)
9836 (var_decode_location, new_symbol_full, dwarf2_const_value):
9837 Set SYMBOL_ACLASS_INDEX.
9838 (dwarf2_symbol_mark_computed): Likewise. Add 'is_block' argument.
9839 (_initialize_dwarf2_read): Initialize new globals.
9840 * jit.c (finalize_symtab): Set SYMBOL_ACLASS_INDEX.
9841 * jv-lang.c (add_class_symbol): Set SYMBOL_ACLASS_INDEX.
9842 * mdebugread.c (mdebug_register_index, mdebug_regparm_index): New
9843 globals.
9844 (parse_symbol, psymtab_to_symtab_1): Set SYMBOL_ACLASS_INDEX.
9845 (_initialize_mdebugread): Initialize new globals.
9846 * psympriv.h (struct partial_symbol) <aclass>: Update comment.
9847 * stabsread.c (patch_block_stabs): Set SYMBOL_ACLASS_INDEX.
9848 (stab_register_index, stab_regparm_index): New globals.
9849 (define_symbol, read_enum_type, common_block_end): Set
9850 SYMBOL_ACLASS_INDEX.
9851 (_initialize_stabsread): Initialize new globals.
9852 * symtab.c (next_aclass_value, symbol_impl, symbol_impls): New
9853 globals.
9854 (MAX_SYMBOL_IMPLS): New define.
9855 (register_symbol_computed_impl, register_symbol_block_impl)
9856 (register_symbol_register_impl)
9857 (initialize_ordinary_address_classes): New functions.
9858 (_initialize_symtab): Call initialize_ordinary_address_classes.
9859 * symtab.h (enum address_class) <LOC_FINAL_VALUE>: New constant.
9860 (struct symbol_impl): New.
9861 (SYMBOL_ACLASS_BITS): New define.
9862 (struct symbol) <aclass, ops>: Remove fields.
9863 <aclass_index>: New field.
9864 (symbol_impls): Declare.
9865 (SYMBOL_CLASS, SYMBOL_COMPUTED_OPS, SYMBOL_REGISTER_OPS): Redefine.
9866 (SYMBOL_IMPL, SYMBOL_ACLASS_INDEX): New defines.
9867 (register_symbol_computed_impl, register_symbol_block_impl)
9868 (register_symbol_register_impl): Declare.
9869 (struct symbol_computed_ops): Add location_has_loclist.
9870 (struct symbol_block_ops): New.
9871 (SYMBOL_BLOCK_OPS): New.
9872 * xcoffread.c (process_xcoff_symbol): Set SYMBOL_ACLASS_INDEX.
9873
9874 2013-03-20 Tom Tromey <tromey@redhat.com>
9875
9876 * psymtab.c (find_pc_sect_psymbol, fixup_psymbol_section)
9877 (print_partial_symbols, recursively_search_psymtabs): Use
9878 PSYMBOL_CLASS.
9879
9880 2013-03-20 Pierre Muller <muller@sourceware.org>
9881
9882 * contrib/ari/gdb_ari.sh (OP eol rule): Also check
9883 addtion, subtraction, multiplication and division binary operator.
9884
9885 2013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9886
9887 Code cleanup.
9888 * bfd-target.c (target_bfd_xclose): Remove parameter quitting.
9889 * bsd-kvm.c (bsd_kvm_close): Likewise.
9890 * bsd-uthread.c (bsd_uthread_close): Likewise.
9891 * corelow.c (core_close): Likewise.
9892 (core_close_cleanup): Remove parameter quitting from a caller.
9893 * event-top.c (async_disconnect): Likewise.
9894 * exec.c (exec_close_1): Remove parameter quitting.
9895 * go32-nat.c (go32_close): Likewise.
9896 * linux-nat.c (linux_nat_close): Remove parameter quitting. Remove
9897 parameter quitting from a caller.
9898 * mips-linux-nat.c (super_close): Remove parameter quitting from the
9899 variable.
9900 (mips_linux_close): Remove parameter quitting. Remove parameter
9901 quitting from a caller.
9902 * monitor.c (monitor_close): Remove parameter quitting.
9903 * monitor.h (monitor_close): Likewise.
9904 * record-btrace.c (record_btrace_close): Likewise.
9905 * record-full.c (record_full_close): Likewise.
9906 * remote-m32r-sdi.c (m32r_close): Remove parameter quitting and remove
9907 it also from fprintf_unfiltered.
9908 * remote-mips.c (mips_close): Remove parameter quitting.
9909 (mips_detach): Remove parameter quitting from a caller.
9910 * remote-sim.c (gdbsim_close): Remove parameter quitting.
9911 (gdbsim_close): Remove duplicate function comment. Remove parameter
9912 quitting and remove it also from printf_filtered.
9913 * remote.c (remote_close): Remove parameter quitting.
9914 * solib-svr4.c (enable_break): Remove parameter quitting from a caller.
9915 * target.c (update_current_target): Remove parameter int from to_close
9916 de_fault.
9917 (push_target, unpush_target, pop_target): Remove parameter quitting from
9918 a caller.
9919 (pop_all_targets_above, pop_all_targets): Remove parameter quitting.
9920 Remove parameter quitting from a caller.
9921 (target_preopen): Remove parameter quitting from a caller.
9922 (target_close): Remove parameter quitting. Remove parameter quitting
9923 from a caller two times. Remove parameter quitting also from
9924 fprintf_unfiltered.
9925 * target.h (struct target_ops): Remove parameter quitting and as int
9926 from fields to_xclose and to_close.
9927 (extern struct target_ops current_target):
9928 (target_close, pop_all_targets): Remove parameter quitting. Update the
9929 comment.
9930 (pop_all_targets_above): Remove parameter quitting.
9931 * top.c (quit_target): Remove parameter quitting from a caller.
9932 * tracepoint.c (tfile_close): Remove parameter quitting.
9933 * windows-nat.c (windows_close): Remove parameter quitting.
9934
9935 2013-03-20 Corinna Vinschen <vinschen@redhat.com>
9936
9937 * windows-nat.c (handle_output_debug_string): Replace call
9938 to string_to_core_addr with call to strtoull.
9939
9940 2013-03-20 Yao Qi <yao@codesourcery.com>
9941
9942 * ctf.c (ctf_save_metadata_header): Define macro HOST_ENDIANNESS
9943 and write it to CTF metadata.
9944
9945 2013-03-19 Corinna Vinschen <vinschen@redhat.com>
9946
9947 * windows-nat.c (handle_output_debug_string): Change type of n to
9948 SIZE_T to avoid crash on 64 bit systems.
9949
9950 2013-03-17 Eli Zaretskii <eliz@gnu.org>
9951
9952 * python/python-internal.h (HAVE_SNPRINTF)
9953 [_WIN32 && HAVE_DECL_SNPRINTF]: Define, to avoid compiler warnings
9954 about redefinition of snprintf by pyerrors.h.
9955
9956 2013-03-15 Steve Ellcey <sellcey@mips.com>
9957
9958 * remote-sim.c (sim_command_completer): Make char arguments const.
9959
9960 2013-03-15 Tom Tromey <tromey@redhat.com>
9961
9962 PR c++/15116:
9963 * gdbtypes.c (types_equal): Handle TYPE_CODE_FUNC.
9964
9965 2013-03-14 Tom Tromey <tromey@redhat.com>
9966
9967 * gdb_bfd.c (struct gdb_bfd_data) <crc_computed, crc>:
9968 New fields.
9969 (get_file_crc): Move from symfile.c.
9970 (gdb_bfd_crc): New function.
9971 * gdb_bfd.h (gdb_bfd_crc): Declare.
9972 * objfiles.h (struct objfile) <crc32, crc32_p>: Remove.
9973 * symfile.c (get_file_crc): Move to gdb_bfd.c.
9974 (separate_debug_file_exists): Use gdb_bfd_crc.
9975
9976 2013-03-14 Tom Tromey <tromey@redhat.com>
9977
9978 * symfile.c (get_debug_link_info): Remove.
9979 (find_separate_debug_file_by_debuglink): Use
9980 bfd_get_debug_link_info.
9981
9982 2013-03-14 Tom Tromey <tromey@redhat.com>
9983
9984 * symtab.c (error_in_psymtab_expansion): New function.
9985 (lookup_symbol_aux_quick)
9986 (basic_lookup_transparent_type_quick): Remove "last resort"
9987 code. Use error_in_psymtab_expansion.
9988
9989 2013-03-14 Doug Evans <dje@google.com>
9990 Jan Kratochvil <jan.kratochvil@redhat.com>
9991
9992 * dwarf2read.c (dw2_map_symtabs_matching_filename): Put continue after
9993 any successful compare_filenames_for_search or FILENAME_CMP.
9994 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
9995 * symtab.c (iterate_over_some_symtabs): Likewise.
9996
9997 2013-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9998
9999 * source.c (print_source_lines_base): Make a local copy of
10000 symtab_to_fullname.
10001
10002 2013-03-14 Hui Zhu <hui_zhu@mentor.com>
10003 Jan Kratochvil <jan.kratochvil@redhat.com>
10004
10005 * source.c (print_source_lines_base): Suppress "file" for TUI.
10006
10007 2013-03-14 Keith Seitz <keiths@redhat.com>
10008 Alan Matsuoka <alanm@redhat.com>
10009
10010 PR c++/15203
10011 PR c++/15210
10012 * cp-namespace.c (cp_lookup_nested_symbol): Handle TYPE_CODE_FUNC and
10013 TYPE_CODE_METHOD.
10014 * elfread.c (elf_symtab_read): Handle BSF_GNU_UNIQUE for certain
10015 symbols.
10016
10017 2013-03-14 Yao Qi <yao@codesourcery.com>
10018
10019 * tracepoint.c (tfile_write_status): Write 'stop_desc' of trace
10020 status to tfile if trace is stopped by command 'tstop'.
10021
10022 2013-03-14 Yao Qi <yao@codesourcery.com>
10023
10024 * tracepoint.c (tfile_write_status): Write trace notes and user
10025 name into tfile if they are not NULL.
10026
10027 2013-03-14 Hui Zhu <hui@codesourcery.com>
10028 Yao Qi <yao@codesourcery.com>
10029
10030 * Makefile.in (REMOTE_OBS): Add ctf.o.
10031 (SFILES): Add ctf.c.
10032 (HFILES_NO_SRCDIR): Add ctf.h.
10033 * ctf.c, ctf.h: New files.
10034 * tracepoint.c: Include 'ctf.h'.
10035 (collect_pseudocommand): Remove static.
10036 (trace_save_command): Parse option "-ctf".
10037 Produce different trace file writers per option.
10038 Adjust output message.
10039 (trace_save_tfile, trace_save_ctf): New.
10040 * tracepoint.h (trace_save_tfile, trace_save_ctf): Declare.
10041 * mi/mi-main.c: Include 'ctf.h'.
10042 (mi_cmd_trace_save): Handle option '-ctf'. Call either
10043 trace_save_tfile or trace_save_ctf.
10044 * NEWS: Mention these changes.
10045
10046 2013-03-14 Yao Qi <yao@codesourcery.com>
10047
10048 * tracepoint.c (trace_file_writer_xfree): New.
10049 (struct tfile_writer_data): New.
10050 (tfile_dtor, tfile_can_target_save, tfile_start): New.
10051 (tfile_write_header, tfile_write_regblock_type): New.
10052 (tfile_write_status, tfile_write_uploaded_tsv): New.
10053 (tfile_write_uploaded_tp, tfile_write_definition_end): New.
10054 (tfile_write_raw_data, (tfile_end): New.
10055 (tfile_write_ops): New global variable.
10056 (TRACE_WRITE_R_BLOCK): New macro.
10057 (TRACE_WRITE_M_BLOCK_HEADER): New macro.
10058 (TRACE_WRITE_M_BLOCK_MEMORY): New macro.
10059 (TRACE_WRITE_V_BLOCK): New macro.
10060 (trace_save): Add extra one parameter WRITER. Make it static.
10061 Use WRITER to writer trace.
10062 (tfile_trace_file_writer_new): New.
10063 (trace_save_command): Caller update.
10064 (trace_save_tfile): Write trace data in TFILE format.
10065 * tracepoint.h (struct trace_frame_write_ops): New.
10066 (struct trace_file_write_ops): New.
10067 (struct trace_file_writer): New.
10068 (trace_save): Remove its declaration.
10069 (trace_save_tfile): Declare it.
10070 * mi/mi-main.c (mi_cmd_trace_save): Call trace_save_tfile
10071 instead of trace_save.
10072
10073 2013-03-13 Pedro Alves <palves@redhat.com>
10074
10075 * hppa-hpux-nat.c (hppa_hpux_save_state_offset): Make static.
10076
10077 2013-03-13 Pedro Alves <palves@redhat.com>
10078
10079 * dbxread.c (read_ofile_symtab, process_one_symbol): Remove
10080 commented out code.
10081 * demangle.c (current_demangling_style_string): Make it const.
10082 (set_demangling_command): Assert the demangling style is known.
10083 Remove all handling of unknown styles. Set
10084 'current_demangling_style_string' to an element of the
10085 demangling_style_names array.
10086 (set_demangling_style): Delete.
10087 (_initialize_demangler): Set current_demangling_style_string to the
10088 element of the demangling_style_names array that corresponds to
10089 the default demangling style. Remove FIXME note. Don't call
10090 set_demangling_style.
10091 * gdb-demangle.h (set_demangling_style): Remove declaration.
10092
10093 2013-03-13 Pedro Alves <palves@redhat.com>
10094
10095 * ada-lang.c (struct add_partial_datum) <text, text0, word>: Make
10096 fields const.
10097 (ada_make_symbol_completion_list): Make "text0" parameter const.
10098 * ax-gdb.c (agent_eval_command_one): Make "exp" parameter const.
10099 * breakpoint.c (condition_completer): Make "text" and "word"
10100 parameters const. Adjust.
10101 (check_tracepoint_command): Adjust to validate_actionline
10102 prototype change.
10103 (catch_syscall_completer): Make "text" and "word" parameters
10104 const.
10105 * cli/cli-cmds.c (show_user): Make "comname" local const.
10106 (valid_command_p): Make "command" parameter const.
10107 (alias_command): Make "alias_prefix" and "command_prefix" locals
10108 const.
10109 * cli/cli-decode.c (add_cmd): Make "name" parameter const.
10110 (add_alias_cmd): Make "name" and "oldname" parameters const.
10111 Adjust. No longer make copy of OLDNAME.
10112 (add_prefix_cmd, add_abbrev_prefix_cmd, add_set_or_show_cmd)
10113 (add_setshow_cmd_full, add_setshow_enum_cmd)
10114 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
10115 (add_setshow_filename_cmd, add_setshow_string_cmd)
10116 (add_setshow_string_noescape_cmd)
10117 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
10118 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
10119 (add_setshow_zuinteger_unlimited_cmd, add_setshow_zuinteger_cmd)
10120 (delete_cmd, add_info, add_info_alias, add_com, add_com_alias):
10121 Make "name" parameter const.
10122 (help_cmd): Rename "command" parameter to "arg". New const local
10123 "command".
10124 (find_cmd): Make "command" parameter const.
10125 (lookup_cmd_1): Make "text" parameter pointer to const. Adjust to
10126 deprecated_cmd_warning prototype change.
10127 (undef_cmd_error): Make "cmdtype" parameter const.
10128 (lookup_cmd): Make "line" parameter const.
10129 (deprecated_cmd_warning): Change type of "text" parameter to
10130 pointer to const char, from pointer to pointer to char. Adjust.
10131 (lookup_cmd_composition): Make "text" parameter const.
10132 (complete_on_cmdlist, complete_on_enum): Make "text" and "word"
10133 parameters const.
10134 * cli/cli-decode.h (struct cmd_list_element) <name>: Make field
10135 const.
10136 * cli/cli-script.c (validate_comname): Make "tem" local const.
10137 (define_command): New const local "tem_c". Use it in calls to
10138 lookup_cmd.
10139 (document_command): Make "tem" and "comfull" locals const.
10140 (show_user_1): Make "prefix" and "name" parameters const.
10141 * cli-script.h (show_user_1): Make "prefix" and "name" parameters
10142 const.
10143 * command.h (add_cmd, add_alias_cmd, add_prefix_cmd)
10144 (add_abbrev_prefix_cmd, completer_ftype, lookup_cmd, lookup_cmd_1)
10145 (deprecated_cmd_warning, lookup_cmd_composition, add_com)
10146 (add_com_alias, add_info, add_info_alias, complete_on_cmdlist)
10147 (complete_on_enum, add_setshow_enum_cmd)
10148 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
10149 (add_setshow_filename_cmd, add_setshow_string_cmd)
10150 (add_setshow_string_noescape_cmd)
10151 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
10152 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
10153 (add_setshow_zuinteger_cmd, add_setshow_zuinteger_unlimited_cmd):
10154 Change prototypes, constifying strings.
10155 * completer.c (noop_completer, filename_completer): Make "text"
10156 and "prefix" parameters const.
10157 (location_completer, expression_completer)
10158 (complete_line_internal): Make "text" and "prefix" parameters
10159 const and adjust.
10160 (command_completer, signal_completer): Make "text" and "prefix"
10161 parameters const.
10162 * completer.h (noop_completer, filename_completer)
10163 (expression_completer, location_completer, command_completer)
10164 (signal_completer): Change prototypes.
10165 * corefile.c (complete_set_gnutarget): Make "text" and "word"
10166 parameters const.
10167 * cp-abi.c (cp_abi_completer): Likewise.
10168 * expression.h (parse_expression_for_completion): Change
10169 prototype.
10170 * f-lang.c (f_make_symbol_completion_list): Make "text" and "word"
10171 parameters const.
10172 * infcmd.c (_initialize_infcmd): Make "cmd_name" local const.
10173 * infrun.c (handle_completer): Make "text" and "word" parameters
10174 const.
10175 * interps.c (interpreter_completer): Make "text" and "word"
10176 parameters const.
10177 * language.h (struct language_defn)
10178 <la_make_symbol_completion_list>: Make "text" and "word"
10179 parameters const.
10180 * parse.c (parse_exp_1): Move const hack to parse_exp_in_context.
10181 (parse_exp_in_context): Rename to ...
10182 (parse_exp_in_context_1): ... this.
10183 (parse_exp_in_context): Reimplement, with const hack from
10184 parse_exp_1.
10185 (parse_expression_for_completion): Make "string" parameter const.
10186 * printcmd.c (decode_format): Make "string_ptr" parameter pointer
10187 to pointer to const char. Adjust.
10188 (print_command_1): Make "exp" parameter const.
10189 (output_command): Rename to ...
10190 (output_command_const): ... this. Make "exp" parameter const.
10191 (output_command): Reimplement.
10192 (x_command): Adjust.
10193 (display_command): Rename "exp" parameter to "arg". New "exp"
10194 local, const version of "arg".
10195 * python/py-auto-load.c (gdbpy_initialize_auto_load): Make
10196 "cmd_name" local const.
10197 * python/py-cmd.c (cmdpy_destroyer): Cast const away in xfree
10198 call.
10199 (cmdpy_completer): Make "text" and "word" parameters const.
10200 (gdbpy_parse_command_name): Make "prefix_text2" local const.
10201 * python/py-param.c (add_setshow_generic): Make "tmp_name" local
10202 const.
10203 * remote.c (_initialize_remote): Make "cmd_name" local const.
10204 * symtab.c (language_search_unquoted_string): Make "text" and "p"
10205 parameters const. Adjust.
10206 (completion_list_add_fields): Make "sym_text", "text" and "word"
10207 parameters const.
10208 (struct add_name_data) <sym_text, text, word>: Make fields const.
10209 (default_make_symbol_completion_list_break_on): Make "text" and
10210 "word" parameters const. Adjust locals.
10211 (default_make_symbol_completion_list)
10212 (make_symbol_completion_list, make_symbol_completion_type)
10213 (make_symbol_completion_list_fn): Make "text" and "word"
10214 parameters const.
10215 (make_file_symbol_completion_list): Make "text", "word" and
10216 "srcfile" parameters const. Adjust locals.
10217 (add_filename_to_list): Make "text" and "word" parameters const.
10218 (struct add_partial_filename_data) <text, word>: Make fields
10219 const.
10220 (make_source_files_completion_list): Make "text" and "word"
10221 parameters const.
10222 * symtab.h (default_make_symbol_completion_list_break_on)
10223 (default_make_symbol_completion_list, make_symbol_completion_list)
10224 (make_symbol_completion_type enum type_code)
10225 (make_symbol_completion_list_fn make_file_symbol_completion_list)
10226 (make_source_files_completion_list): Change prototype.
10227 * top.c (execute_command): Adjust to pass pointer to pointer to
10228 const char to lookup_cmd, and to deprecated_cmd_warning prototype
10229 change.
10230 (set_verbose): Make "cmdname" local const.
10231 * tracepoint.c (decode_agent_options): Make "exp" parameter const,
10232 and adjust.
10233 (validate_actionline): Make "line" parameter a pointer to const
10234 char, and adjust.
10235 (encode_actions_1): Make "action_exp" local const, and adjust.
10236 (encode_actions): Adjust.
10237 (replace_comma): Delete.
10238 (trace_dump_actions): Make "action_exp" and "next_comma" locals
10239 const, and adjust. Don't frob the action string while splitting
10240 it at commas. Instead, make a copy of each split substring in
10241 turn.
10242 (trace_dump_command): Adjust to validate_actionline prototype
10243 change.
10244 * tracepoint.h (decode_agent_options, decode_agent_options)
10245 (encode_actions, validate_actionline): Change prototypes.
10246 * valprint.h (output_command): Delete declaration.
10247 (output_command_const): Declare.
10248 * value.c (function_destroyer): Cast const away in xfree call.
10249
10250 2013-03-13 Pedro Alves <palves@redhat.com>
10251
10252 * ada-lang.c (ada_decode_symbol): Cast away constness of GSYMBOL
10253 rather than casting 'const char * const *' to 'const char **'.
10254 * ada-lex.l (processInt): Make "trailer" local const. Remove
10255 'const char **' cast.
10256 * arm-linux-tdep.c (arm_stap_parse_special_token): Add 'char *'
10257 locals, and use those as strtol output pointer, instead than doing
10258 invalid casts to from 'const char **' to 'char **'.
10259 (_initialize_demangle): Remove cast.
10260 * i386-tdep.c (i386_stap_parse_special_token): : Add 'char *'
10261 locals, and use those as strtol output pointer, instead than doing
10262 invalid casts to from 'const char **' to 'char **'.
10263 * solib-dsbt.c (dsbt_get_initial_loadmaps): Remove 'gdb_byte**'
10264 casts.
10265 * stap-probe.c (stap_parse_register_operand)
10266 (stap_parse_single_operand): Likewise.
10267
10268 2013-03-13 Yao Qi <yao@codesourcery.com>
10269
10270 * tracepoint.c (tfile_get_trace_state_variable_value): Look for
10271 the last matched 'V' blcok in trace frame.
10272
10273 2013-03-12 Joel Brobecker <brobecker@adacore.com>
10274
10275 * NEWS: Create a new section for the next release branch.
10276 Rename the section of the current branch, now that it has
10277 been cut.
10278
10279 2013-03-12 Joel Brobecker <brobecker@adacore.com>
10280
10281 GDB 7.6 branch created (branch timestamp: 2013-03-12 22:15 UTC)
10282 * version.in: Bump version to 7.6.50.20130312-cvs.
10283
10284 2013-03-12 Keith Seitz <keiths@redhat.com>
10285
10286 * mi/mi-cmds.h (mi_execute_command): Make "cmd" const.
10287 * mi/mi-interp.c (mi_interpreter_exec): Make "command" const.
10288 Remove temporary copy of input string.
10289 (mi_execute_command_wrapper): Make "cmd" const.
10290 * mi/mi-main.c (mi_execute_command): Make "string_ptr" const.
10291 * mi/mi-parse.c (mi_parse_argv): Make "args" const.
10292 Use const strings.
10293 (mi_parse): Make "cmd" const.
10294 Use const strings.
10295 * mi/mi-parse.h (mi_parse): Make "cmd" const.
10296
10297 2013-03-12 Keith Seitz <keiths@redhat.com>
10298
10299 * ada-lang.c (ada_read_renaming_var_value): Pass const
10300 pointer to expression string to parse_exp_1.
10301 (create_excep_cond_exprs): Likewise.
10302 * ax-gdb.c (agent_eval_command_one): Likewise.
10303 (maint_agent_printf_command): Likewise.
10304 Constify much of the string handling/parsing.
10305 * breakpoint.c (set_breakpoint_condition): Pass const
10306 pointer to expression string to parse_exp_1.
10307 (update_watchpoint): Likewise.
10308 (parse_cmd_to_aexpr): Constify string handling.
10309 Pass const pointer to parse_exp_1.
10310 (init_breakpoint_sal): Pass const pointer to parse_exp_1.
10311 (find_condition_and_thread): Likewise.
10312 Make TOK const.
10313 (watch_command_1): Make "arg" const.
10314 Constify string handling.
10315 Copy the expression string instead of changing the input
10316 string.
10317 (update_breakpoint_location): Pass const pointer to
10318 parse_exp_1.
10319 * eval.c (parse_and_eval_address): Make "exp" const.
10320 (parse_to_comma_and_eval): Make "expp" const.
10321 (parse_and_eval): Make "exp" const.
10322 * expression.h (parse_expression): Make argument const.
10323 (parse_exp_1): Make first argument const.
10324 * findcmd.c (parse_find_args): Treat "args" as const.
10325 * linespec.c (parse_linespec): Pass const pointer to
10326 linespec_expression_to_pc.
10327 (linespec_expression_to_pc): Make "exp_ptr" const.
10328 * parse.c (parse_exp_1): Make "stringptr" const.
10329 Make a copy of the expression to pass to parse_exp_in_context until
10330 this whole interface can be constified.
10331 (parse_expression): Make "string" const.
10332 * printcmd.c (ui_printf): Treat "arg" as const.
10333 Handle const strings.
10334 * tracepoint.c (validate_actionline): Pass const pointer to
10335 all calls to parse_exp_1.
10336 (encode_actions_1): Likewise.
10337 * value.h (parse_to_comma_and_eval): Make argument const.
10338 (parse_and_eval_address): Likewise.
10339 (parse_and_eval): Likewise.
10340 * varobj.c (varobj_create): Pass const pointer to parse_exp_1.
10341 (varobj_set_value): Likewise.
10342 * cli/cli-cmds.c (disassemble_command): Treat "arg" as const and
10343 constify string handling.
10344 Pass const pointers to parse_and_eval_address and
10345 parse_to_comman_and_eval.
10346 * cli/cli-utils.c (skip_to_space): Rename to ...
10347 (skip_to_space_const): ... this. Handle const strings.
10348 * cli/cli-utils.h (skip_to_space): Turn into macro which invokes
10349 skip_to_space_const.
10350 (skip_to_space_const): Declare.
10351 * common/format.c (parse_format_string): Make "arg" const.
10352 Handle const strings.
10353 * common/format.h (parse_format_string): Make "arg" const.
10354 * gdbserver/ax.c (ax_printf): Make "format" const.
10355 * python/python.c (gdbpy_parse_and_eval): Do not make a copy
10356 of the expression string.
10357
10358 2013-03-12 Hui Zhu <hui@codesourcery.com>
10359
10360 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Update error message.
10361
10362 2013-03-12 Yao Qi <yao@codesourcery.com>
10363 Hui Zhu <hui@codesourcery.com>
10364
10365 * dwarf2loc.c (access_memory): Change nbits to nbytes in gdb_assert.
10366 (dwarf2_compile_expr_to_ax): Call access_memory in DW_OP_deref and
10367 DW_OP_deref_size.
10368
10369 2013-03-12 Paul Hilfinger <hilfingr@adacore.com>
10370
10371 * ada-lex.l (rules): Only recognize 'thread' as a
10372 delimiter when followed by numerals, as for c-exp.y.
10373 Use new rewind_to_char function to rewind the input for
10374 expression-delimiting tokens.
10375 (rewind_to_char): New function.
10376
10377 2013-03-11 Pedro Alves <palves@redhat.com>
10378 Jan Kratochvil <jan.kratochvil@redhat.com>
10379
10380 * configure: Regenerate.
10381 * configure.ac (check dynamic export flag): Link python test with
10382 $PYTHON_LIBS.
10383
10384 2013-03-11 Doug Evans <dje@google.com>
10385 Keith Seitz <keiths@redhat.com>
10386
10387 * linespec.c (find_linespec_symbols): Call find_function_symbols
10388 first, and then call lookup_prefix_sym/find_method.
10389
10390 2013-03-11 Pedro Alves <palves@redhat.com>
10391
10392 * charset.c (convert_between_encodings): Don't cast between
10393 different pointer to pointer types. Instead, make the 'inp' local
10394 be of the type iconv expects.
10395 (wchar_iterate): Don't cast between different pointer to pointer
10396 types. Instead, use new pointer local of the type iconv expects.
10397 * target.c (target_read_stralloc, target_fileio_read_stralloc):
10398 Add new local of type char pointer, and use it to get a
10399 char/string view of the byte buffer, instead of casting between
10400 pointer to pointer types.
10401
10402 2013-03-11 Hafiz Abid Qadeer <abidh@codesourcery.com>
10403
10404 * remote.c (remote_set_trace_buffer_size): Move != operator
10405 to the start of next line to fix an ARI warning.
10406
10407 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10408
10409 * NEWS: Add record changes.
10410
10411 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10412
10413 * record-btrace.c (btrace_insn_history): Omit the pc prefix in
10414 the instruction history disassembly.
10415 * disasm.c (dump_insns): Omit the pc prefix, if requested.
10416 * disasm.h (DISASSEMBLY_OMIT_PC): New.
10417
10418 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10419
10420 * Makefile.in (SFILES): Add record-btrace.c
10421 (COMMON_OBS): Add record-btrace.o
10422 * record-btrace.c: New.
10423 * objfiles.c: Include btrace.h.
10424 (free_objfile): call btrace_free_objfile.
10425
10426 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10427
10428 * target.c (target_call_history, target_call_history_from,
10429 target_call_history_range): New.
10430 * target.h (target_ops) <to_call_history, to_call_history_from,
10431 to_call_history_range>: New fields.
10432 (target_call_history, target_call_history_from,
10433 target_call_history_range): New declaration.
10434 * record.c (get_call_history_modifiers, cmd_record_call_history,
10435 record_call_history_size): New.
10436 (_initialize_record): Add the "record function-call-history" command.
10437 Add "set/show record function-call-history-size" commands.
10438 * record.h (record_print_flag): New.
10439
10440 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10441
10442 * target.h (target_ops) <to_insn_history, to_insn_history_from,
10443 to_insn_history_range>: New fields.
10444 (target_insn_history): New.
10445 (target_insn_history_from): New.
10446 (target_insn_history_range): New.
10447 * target.c (target_insn_history): New.
10448 (target_insn_history_from): New.
10449 (target_insn_history_range): New.
10450 * record.c: Include cli/cli-utils.h, disasm.h, ctype.h.
10451 (record_insn_history_size): New.
10452 (get_insn_number): New.
10453 (get_context_size): New.
10454 (no_chunk): New.
10455 (get_insn_history_modifiers): New.
10456 (cmd_record_insn_history): New.
10457 (_initialize_record): Add "set/show record instruction-history-size"
10458 command. Add "record instruction-history" command.
10459
10460 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10461
10462 * record.h (record_disconnect): New.
10463 (record_detach): New.
10464 (record_mourn_inferior): New.
10465 (record_kill): New.
10466 * record-full.c (record_disconnect, record_detach,
10467 record_mourn_inferior, record_kill): Move to...
10468 * record.c: ...here.
10469 (DEBUG): New.
10470 (record_stop): New.
10471 (record_unpush): New.
10472 (cmd_record_stop): Call record_stop. Replace unpush_target
10473 call with record_unpush call.
10474 (record_disconnect, record_detach): Assert that the target
10475 is of record stratum. Call record_unpush, record_stop, and
10476 DEBUG.
10477 (record_mourn_inferior, record_kill): Assert that the target
10478 is of record stratum. Call record_unpush and DEBUG.
10479
10480 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10481
10482 * record-full.h, record-full.c (record_memory_query): Rename
10483 to ...
10484 (record_full_memory_query): ...this. Update all users.
10485 (record_arch_list_add_reg): Rename to ...
10486 (record_full_arch_list_add_reg): ...this. Update all users.
10487 (record_arch_list_add_mem): Rename to ...
10488 (record_full_arch_list_add_mem): ...this. Update all users.
10489 (record_arch_list_add_end): Rename to ...
10490 (record_full_arch_list_add_end): ...this. Update all users.
10491 (record_gdb_operation_disable_set): Rename to ...
10492 (record_full_gdb_operation_disable_set): ...this.
10493 Update all users.
10494
10495 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10496
10497 * record-full.c (DEFAULT_RECORD_INSN_MAX_NUM): Renamed to ...
10498 (DEFAULT_RECORD_FULL_INSN_MAX_NUM): ... this. Updated all users.
10499 (RECORD_IS_REPLAY): Renamed to ...
10500 (RECORD_FULL_IS_REPLAY): ... this. Updated all users.
10501 (RECORD_FILE_MAGIC): Renamed to ...
10502 (RECORD_FULL_FILE_MAGIC): ... this. Updated all users.
10503 (record_mem_entry): Renamed to ...
10504 (record_full_mem_entry): ... this. Updated all users.
10505 (record_reg_entry): Renamed to ...
10506 (record_full_reg_entry): ... this. Updated all users.
10507 (record_end_entry): Renamed to ...
10508 (record_full_end_entry): ... this. Updated all users.
10509 (record_type) <record_end, record_reg, record_mem>: Renamed
10510 to ...
10511 (record_full_type) <record_full_end, record_full_reg,
10512 record_full_mem>: ... this. Updated all users.
10513 (record_entry): Renamed to ...
10514 (record_full_entry): ... this. Updated all users.
10515 (record_core_buf_entry): Renamed to ...
10516 (record_full_core_buf_entry): ... this. Updated all users.
10517 (record_core_regbuf): Renamed to ...
10518 (record_full_core_regbuf): ... this. Updated all users.
10519 (record_core_start): Renamed to ...
10520 (record_full_core_start): ... this. Updated all users.
10521 (record_core_end): Renamed to ...
10522 (record_full_core_end): ... this. Updated all users.
10523 (record_core_buf_list): Renamed to ...
10524 (record_full_core_buf_list): ... this. Updated all users.
10525 (record_first): Renamed to ...
10526 (record_full_first): ... this. Updated all users.
10527 (record_list): Renamed to ...
10528 (record_full_list): ... this. Updated all users.
10529 (record_arch_list_head): Renamed to ...
10530 (record_full_arch_list_head): ... this. Updated all users.
10531 (record_arch_list_tail): Renamed to ...
10532 (record_full_arch_list_tail): ... this. Updated all users.
10533 (record_stop_at_limit): Renamed to ...
10534 (record_full_stop_at_limit): ... this. Updated all users.
10535 (record_insn_max_num): Renamed to ...
10536 (record_full_insn_max_num): ... this. Updated all users.
10537 (record_insn_num): Renamed to ...
10538 (record_full_insn_num): ... this. Updated all users.
10539 (record_insn_count): Renamed to ...
10540 (record_full_insn_count): ... this. Updated all users.
10541 (record_ops): Renamed to ...
10542 (record_full_ops): ... this. Updated all users.
10543 (record_core_ops): Renamed to ...
10544 (record_full_core_ops): ... this. Updated all users.
10545 (set_record_cmdlist): Renamed to ...
10546 (set_record_full_cmdlist): ... this. Updated all users.
10547 (show_record_cmdlist): Renamed to ...
10548 (show_record_full_cmdlist): ... this. Updated all users.
10549 (record_cmdlist): Renamed to ...
10550 (record_full_cmdlist): ... this. Updated all users.
10551 (record_beneath_to_resume_ops): Renamed to ...
10552 (record_full_beneath_to_resume_ops): ... this. Updated all users.
10553 (record_beneath_to_resume): Renamed to ...
10554 (record_full_beneath_to_resume): ... this. Updated all users.
10555 (record_beneath_to_wait_ops): Renamed to ...
10556 (record_full_beneath_to_wait_ops): ... this. Updated all users.
10557 (record_beneath_to_wait): Renamed to ...
10558 (record_full_beneath_to_wait): ... this. Updated all users.
10559 (record_beneath_to_store_registers_ops): Renamed to ...
10560 (record_full_beneath_to_store_registers_ops): ... this.
10561 Updated all users.
10562 (record_beneath_to_store_registers): Renamed to ...
10563 (record_full_beneath_to_store_registers): ... this.
10564 Updated all users.
10565 (record_beneath_to_xfer_partial_ops): Renamed to ...
10566 (record_full_beneath_to_xfer_partial_ops): ... this.
10567 Updated all users.
10568 (record_beneath_to_xfer_partial): Renamed to ...
10569 (record_full_beneath_to_xfer_partial): ... this.
10570 Updated all users.
10571 (record_beneath_to_insert_breakpoint): Renamed to ...
10572 (record_full_beneath_to_insert_breakpoint): ... this.
10573 Updated all users.
10574 (record_beneath_to_stopped_by_watchpoint): Renamed to ...
10575 (record_full_beneath_to_stopped_by_watchpoint): ... this.
10576 Updated all users.
10577 (record_beneath_to_stopped_data_address): Renamed to ...
10578 (record_full_beneath_to_stopped_data_address): ... this.
10579 Updated all users.
10580 (record_beneath_to_async): Renamed to ...
10581 (record_full_beneath_to_async): ... this. Updated all users.
10582 (record_goto_insn): Renamed to ...
10583 (record_full_goto_insn): ... this. Updated all users.
10584 (record_save): Renamed to ...
10585 (record_full_save): ... this. Updated all users.
10586 (record_reg_alloc): Renamed to ...
10587 (record_full_reg_alloc): ... this. Updated all users.
10588 (record_reg_release): Renamed to ...
10589 (record_full_reg_release): ... this. Updated all users.
10590 (record_mem_alloc): Renamed to ...
10591 (record_full_mem_alloc): ... this. Updated all users.
10592 (record_mem_release): Renamed to ...
10593 (record_full_mem_release): ... this. Updated all users.
10594 (record_end_alloc): Renamed to ...
10595 (record_full_end_alloc): ... this. Updated all users.
10596 (record_end_release): Renamed to ...
10597 (record_full_end_release): ... this. Updated all users.
10598 (record_entry_release): Renamed to ...
10599 (record_full_entry_release): ... this. Updated all users.
10600 (record_list_release): Renamed to ...
10601 (record_full_list_release): ... this. Updated all users.
10602 (record_list_release_following): Renamed to ...
10603 (record_full_list_release_following): ... this.
10604 Updated all users.
10605 (record_list_release_first): Renamed to ...
10606 (record_full_list_release_first): ... this. Updated all users.
10607 (record_arch_list_add): Renamed to ...
10608 (record_full_arch_list_add): ... this. Updated all users.
10609 (record_get_loc): Renamed to ...
10610 (record_full_get_loc): ... this. Updated all users.
10611 (record_check_insn_num): Renamed to ...
10612 (record_full_check_insn_num): ... this. Updated all users.
10613 (record_arch_list_cleanups): Renamed to ...
10614 (record_full_arch_list_cleanups): ... this. Updated all users.
10615 (record_message): Renamed to ...
10616 (record_full_message): ... this. Updated all users.
10617 (record_message_wrapper): Renamed to ...
10618 (record_full_message_wrapper): ... this. Updated all users.
10619 (record_message_wrapper_safe): Renamed to ...
10620 (record_full_message_wrapper_safe): ... this. Updated all users.
10621 (record_gdb_operation_disable): Renamed to ...
10622 (record_full_gdb_operation_disable): ... this. Updated all users.
10623 (record_hw_watchpoint): Renamed to ...
10624 (record_full_hw_watchpoint): ... this. Updated all users.
10625 (record_exec_insn): Renamed to ...
10626 (record_full_exec_insn): ... this. Updated all users.
10627 (record_restore): Renamed to ...
10628 (record_full_restore): ... this. Updated all users.
10629 (record_async_inferior_event_token): Renamed to ...
10630 (record_full_async_inferior_event_token): ... this.
10631 Updated all users.
10632 (record_async_inferior_event_handler): Renamed to ...
10633 (record_full_async_inferior_event_handler): ... this.
10634 Updated all users.
10635 (record_core_open_1): Renamed to ...
10636 (record_full_core_open_1): ... this. Updated all users.
10637 (record_open_1): Renamed to ...
10638 (record_full_open_1): ... this. Updated all users.
10639 (record_open): Renamed to ...
10640 (record_full_open): ... this. Updated all users.
10641 (record_close): Renamed to ...
10642 (record_full_close): ... this. Updated all users.
10643 (record_resume_step): Renamed to ...
10644 (record_full_resume_step): ... this. Updated all users.
10645 (record_resumed): Renamed to ...
10646 (record_full_resumed): ... this. Updated all users.
10647 (record_execution_dir): Renamed to ...
10648 (record_full_execution_dir): ... this. Updated all users.
10649 (record_resume): Renamed to ...
10650 (record_full_resume): ... this. Updated all users.
10651 (record_get_sig): Renamed to ...
10652 (record_full_get_sig): ... this. Updated all users.
10653 (record_sig_handler): Renamed to ...
10654 (record_full_sig_handler): ... this. Updated all users.
10655 (record_wait_cleanups): Renamed to ...
10656 (record_full_wait_cleanups): ... this. Updated all users.
10657 (record_wait_1): Renamed to ...
10658 (record_full_wait_1): ... this. Updated all users.
10659 (record_wait): Renamed to ...
10660 (record_full_wait): ... this. Updated all users.
10661 (record_stopped_by_watchpoint): Renamed to ...
10662 (record_full_stopped_by_watchpoint): ... this. Updated all users.
10663 (record_disconnect): Renamed to ...
10664 (record_full_disconnect): ... this. Updated all users.
10665 (record_detach): Renamed to ...
10666 (record_full_detach): ... this. Updated all users.
10667 (record_mourn_inferior): Renamed to ...
10668 (record_full_mourn_inferior): ... this. Updated all users.
10669 (record_kill): Renamed to ...
10670 (record_full_kill): ... this. Updated all users.
10671 (record_stopped_data_address): Renamed to ...
10672 (record_full_stopped_data_address): ... this. Updated all users.
10673 (record_registers_change): Renamed to ...
10674 (record_full_registers_change): ... this. Updated all users.
10675 (record_store_registers): Renamed to ...
10676 (record_full_store_registers): ... this. Updated all users.
10677 (record_xfer_partial): Renamed to ...
10678 (record_full_xfer_partial): ... this. Updated all users.
10679 (record_breakpoint): Renamed to ...
10680 (record_full_breakpoint): ... this. Updated all users.
10681 (record_breakpoint_p): Renamed to ...
10682 (record_full_breakpoint_p): ... this. Updated all users.
10683 (record_breakpoints): Renamed to ...
10684 (record_full_breakpoints): ... this. Updated all users.
10685 (record_sync_record_breakpoints): Renamed to ...
10686 (record_full_sync_record_breakpoints): ... this.
10687 Updated all users.
10688 (record_init_record_breakpoints): Renamed to ...
10689 (record_full_init_record_breakpoints): ... this.
10690 Updated all users.
10691 (record_insert_breakpoint): Renamed to ...
10692 (record_full_insert_breakpoint): ... this. Updated all users.
10693 (record_remove_breakpoint): Renamed to ...
10694 (record_full_remove_breakpoint): ... this. Updated all users.
10695 (record_can_execute_reverse): Renamed to ...
10696 (record_full_can_execute_reverse): ... this. Updated all users.
10697 (record_get_bookmark): Renamed to ...
10698 (record_full_get_bookmark): ... this. Updated all users.
10699 (record_goto_bookmark): Renamed to ...
10700 (record_full_goto_bookmark): ... this. Updated all users.
10701 (record_async): Renamed to ...
10702 (record_full_async): ... this. Updated all users.
10703 (record_can_async_p): Renamed to ...
10704 (record_full_can_async_p): ... this. Updated all users.
10705 (record_is_async_p): Renamed to ...
10706 (record_full_is_async_p): ... this. Updated all users.
10707 (record_execution_direction): Renamed to ...
10708 (record_full_execution_direction): ... this. Updated all users.
10709 (record_info): Renamed to ...
10710 (record_full_info): ... this. Updated all users.
10711 (record_delete): Renamed to ...
10712 (record_full_delete): ... this. Updated all users.
10713 (record_is_replaying): Renamed to ...
10714 (record_full_is_replaying): ... this. Updated all users.
10715 (record_goto_entry): Renamed to ...
10716 (record_full_goto_entry): ... this. Updated all users.
10717 (record_goto_begin): Renamed to ...
10718 (record_full_goto_begin): ... this. Updated all users.
10719 (record_goto_end): Renamed to ...
10720 (record_full_goto_end): ... this. Updated all users.
10721 (record_goto): Renamed to ...
10722 (record_full_goto): ... this. Updated all users.
10723 (init_record_ops): Renamed to ...
10724 (init_record_full_ops): ... this. Updated all users.
10725 (record_core_resume): Renamed to ...
10726 (record_full_core_resume): ... this. Updated all users.
10727 (record_core_kill): Renamed to ...
10728 (record_full_core_kill): ... this. Updated all users.
10729 (record_core_fetch_registers): Renamed to ...
10730 (record_full_core_fetch_registers): ... this. Updated all users.
10731 (record_core_prepare_to_store): Renamed to ...
10732 (record_full_core_prepare_to_store): ... this. Updated all users.
10733 (record_core_store_registers): Renamed to ...
10734 (record_full_core_store_registers): ... this. Updated all users.
10735 (record_core_xfer_partial): Renamed to ...
10736 (record_full_core_xfer_partial): ... this. Updated all users.
10737 (record_core_insert_breakpoint): Renamed to ...
10738 (record_full_core_insert_breakpoint): ... this. Updated all users.
10739 (record_core_remove_breakpoint): Renamed to ...
10740 (record_full_core_remove_breakpoint): ... this. Updated all users.
10741 (record_core_has_execution): Renamed to ...
10742 (record_full_core_has_execution): ... this. Updated all users.
10743 (init_record_core_ops): Renamed to ...
10744 (init_record_full_core_ops): ... this. Updated all users.
10745 (cmd_record_restore): Renamed to ...
10746 (cmd_record_full_restore): ... this. Updated all users.
10747 (record_save_cleanups): Renamed to ...
10748 (record_full_save_cleanups): ... this. Updated all users.
10749 (cmd_record_start): Renamed to ...
10750 (cmd_record_full_start): ... this. Updated all users.
10751 (set_record_insn_max_num): Renamed to ...
10752 (set_record_full_insn_max_num): ... this. Updated all users.
10753 (set_record_command): Renamed to ...
10754 (set_record_full_command): ... this. Updated all users.
10755 (show_record_command): Renamed to ...
10756 (show_record_full_command): ... this. Updated all users.
10757 (_initialize_record): Renamed to ...
10758 (_initialize_record_full): ... this. Updated all users.
10759
10760 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10761
10762 * record.h: Split into this and ...
10763 * record-full.h: ... this.
10764 * record.c: Split into this and ...
10765 * record-full.c: ... this.
10766 * target.h (target_ops): Add new fields to_info_record,
10767 to_save_record, to_delete_record, to_record_is_replaying,
10768 to_goto_record_begin, to_goto_record_end, to_goto_record.
10769 (target_info_record): New.
10770 (target_save_record): New.
10771 (target_supports_delete_record): New.
10772 (target_delete_record): New.
10773 (target_record_is_replaying): New.
10774 (target_goto_record_begin): New.
10775 (target_goto_record_end): New.
10776 (target_goto_record): New.
10777 * target.c (target_info_record): New.
10778 (target_save_record): New.
10779 (target_supports_delete_record): New.
10780 (target_delete_record): New.
10781 (target_record_is_replaying): New.
10782 (target_goto_record_begin): New.
10783 (target_goto_record_end): New.
10784 (target_goto_record): New.
10785 * record.h: Declare struct cmd_list_element.
10786 (record_cmdlist): New declaration.
10787 (set_record_cmdlist): New declaration.
10788 (show_record_cmdlist): New declaration.
10789 (info_record_cmdlist): New declaration.
10790 (cmd_record_goto): New declaration.
10791 * record.c: Remove unnecessary includes.
10792 Include inferior.h.
10793 (cmd_record_goto): Remove declaration.
10794 (record_cmdlist): Now extern. Initialize.
10795 (set_record_cmdlist): Now extern. Initialize.
10796 (show_record_cmdlist): Now extern. Initialize.
10797 (info_record_cmdlist): Now extern. Initialize.
10798 (find_record_target): New.
10799 (require_record_target): New.
10800 (cmd_record_start): Update.
10801 (cmd_record_delete): Remove target-specific code.
10802 Call target_delete_record.
10803 (cmd_record_stop): Unpush any record target.
10804 (set_record_insn_max_num): Move to record-full.c
10805 (set_record_command): Add comment.
10806 (show_record_command): Add comment.
10807 (info_record_command): Update comment.
10808 Remove target-specific code.
10809 Call the record target's to_info_record.
10810 (cmd_record_start): New.
10811 (cmd_record_goto): Now extern.
10812 Remove target-specific code.
10813 Call target_goto_begin, target_goto_end, or target_goto.
10814 (_initialize_record): Move record target ops initialization to
10815 record-full.c.
10816 Change "record" command help text.
10817 Move "record restore", "record set", and "record show" commands to
10818 record-full.c.
10819 * Makefile.in (SFILES): Add record-full.c.
10820 (HFILES_NO_SRCDIR): Add record-full.h.
10821 (COMMON_OBS): Add record-full.o.
10822 * amd64-linux-tdep.c: Include record-full.h instead of record.h.
10823 * arm-tdep.c: Include record-full.h.
10824 * i386-linux-tdep.c: Include record-full.h instead of record.h.
10825 * i386-tdep.c: Include record-full.h.
10826 * infrun.c: Include record-full.h.
10827 * linux-record.c: Include record-full.h.
10828 * moxie-tdep.c: Include record-full.h.
10829 * record-full.c: Include record-full.h.
10830 Change module comment.
10831 (set_record_full_cmdlist): New.
10832 (show_record_full_cmdlist): New.
10833 (record_full_cmdlist): New.
10834 (record_goto_insn): New declaration.
10835 (record_save): New declaration.
10836 (record_check_insn_num): Change query string.
10837 (record_info): New.
10838 (record_delete): New.
10839 (record_is_replaying): New.
10840 (record_goto_entry): New.
10841 (record_goto_begin): New.
10842 (record_goto_end): New.
10843 (record_goto): New.
10844 (init_record_ops): Update.
10845 (init_record_core_ops): Update.
10846 (cmd_record_save): Rename to record_save. Remove target and arg checks.
10847 (cmd_record_start): New.
10848 (set_record_insn_max_num): Moved from record.c
10849 (set_record_full_command): New.
10850 (show_record_full_command): New.
10851 (_initialize_record_full): New.
10852
10853 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10854
10855 * target.h (add_deprecated_target_alias): New.
10856 * target.c (add_deprecated_target_alias): New.
10857
10858 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10859
10860 * common/linux-btrace.c: Include sys/ptrace, sys/types, sys/wait.h,
10861 and signal.h.
10862 (linux_supports_btrace): Add kernel and
10863 cpuid check.
10864 (kernel_supports_btrace): New function.
10865 (cpu_supports_btrace): New function.
10866 (intel_supports_btrace): New function.
10867
10868 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10869
10870 * target.h (enum target_object): Add TARGET_OBJECT_BTRACE.
10871 * remote.c: Include btrace.h.
10872 (struct btrace_target_info): New struct.
10873 (remote_supports_btrace): New function.
10874 (send_Qbtrace): New function.
10875 (remote_enable_btrace): New function.
10876 (remote_disable_btrace): New function.
10877 (remote_teardown_btrace): New function.
10878 (remote_read_btrace): New function.
10879 (init_remote_ops): Add btrace ops.
10880 (enum <unnamed>): Add btrace packets.
10881 (struct protocol_feature remote_protocol_features[]): Add btrace packets.
10882 (_initialize_remote): Add packet configuration for branch tracing.
10883
10884 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10885
10886 * features/btrace.dtd: New file.
10887 * Makefile.in (XMLFILES): Add btrace.dtd.
10888 * btrace.h (parse_xml_btrace): New declaration.
10889 * btrace.c: Include xml-support.h.
10890 (parse_xml_btrace): New function.
10891 (parse_xml_btrace_block): New function.
10892 (block_attributes): New struct.
10893 (btrace_attributes): New struct.
10894 (btrace_children): New struct.
10895 (btrace_elements): New struct.
10896
10897 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10898
10899 * amd64-linux-nat.c: Include btrace.h and linux-btrace.h.
10900 (amd64_linux_enable_btrace): New.
10901 (amd64_linux_disable_btrace): New.
10902 (amd64_linux_teardown_btrace): New.
10903 (_initialize_amd64_linux_nat): Initialize btrace ops.
10904 * i386-linux.nat.c: Include btrace.h and linux-btrace.h.
10905 (i386_linux_enable_btrace): New.
10906 (i386_linux_disable_btrace): New.
10907 (i386_linux_teardown_btrace): New.
10908 (_initialize_i386_linux_nat): Initialize btrace ops.
10909 * config/i386/linux.mh: Add linux-btrace.o.
10910 * config/i386/linux64.mh: Add linux-btrace.o.
10911
10912 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10913
10914 * common/linux_btrace.h: New file.
10915 * common/linux_btrace.c: New file.
10916 * Makefile.in (SFILES): Add btrace.c.
10917 (HFILES_NO_SRCDIR): Add common/linux-btrace.h.
10918 (COMMON_OBS): Add btrace.o.
10919 (linux-btrace.o): New rule.
10920
10921 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10922
10923 * target.h: Include btrace.h.
10924 (struct target_ops) <to_supports_btrace, to_enable_btrace,
10925 to_disable_btrace, to_teardown_btrace, to_read_btrace>: New.
10926 * target.c (target_supports_btrace): New function.
10927 (target_enable_btrace): New function.
10928 (target_disable_btrace): New function.
10929 (target_teardown_btrace): New function.
10930 (target_read_btrace): New function.
10931 * btrace.h: New file.
10932 * btrace.c: New file.
10933 * Makefile.in: Add btrace.c.
10934 * gdbthread.h: Include btrace.h.
10935 (struct thread_info): Add btrace field.
10936 * thread.c: Include btrace.h.
10937 (clear_thread_inferior_resources): Call target_teardown_btrace.
10938 * common/btrace-common.h: New file.
10939
10940 2013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10941
10942 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Call also kill
10943 for CHILD, ignore PTRACE_KILL errors, move the inner block variable
10944 kill_status to outer block.
10945
10946 2013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10947
10948 Fix entry-values if the callee called a noreturn function.
10949 * dwarf2-frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
10950 get_frame_address_in_block. Add new comment.
10951
10952 2013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10953
10954 Fix entry-values in C++ across CUs.
10955 * dwarf2loc.c (call_site_to_target_addr) <FIELD_LOC_KIND_PHYSNAME>: Use
10956 lookup_minimal_symbol. Add a comment.
10957 * dwarf2read.c
10958 (read_call_site_scope) <is_ref_attr> <die_is_declaration>: Prefer
10959 DW_AT_linkage_name.
10960
10961 2013-03-08 Yao Qi <yao@codesourcery.com>
10962
10963 * tracepoint.c (_initialize_tracepoint): Indent the code.
10964
10965 2013-03-08 Pedro Alves <palves@redhat.com>
10966
10967 * findcmd.c (put_bits): Change type of parameter to 'gdb_byte *'.
10968 (parse_find_args, find_command): Change type of pattern buffer
10969 locals to 'gdb_byte *'.
10970
10971 2013-03-08 Stan Shebs <stan@codesourcery.com>
10972 Hafiz Abid Qadeer <abidh@codesourcery.com>
10973
10974 * NEWS: Mention set and show trace-buffer-size commands.
10975 Mention new packet.
10976 * target.h (struct target_ops): New method
10977 to_set_trace_buffer_size.
10978 (target_set_trace_buffer_size): New macro.
10979 * target.c (update_current_target): Set up new method.
10980 * tracepoint.c (trace_buffer_size): New global.
10981 (start_tracing): Send it to the target.
10982 (set_trace_buffer_size): New function.
10983 (_initialize_tracepoint): Add new setshow for trace-buffer-size.
10984 * remote.c (remote_set_trace_buffer_size): New function.
10985 (_initialize_remote): Use it.
10986 (QTBuffer:size) New remote command.
10987 (PACKET_QTBuffer_size): New enum.
10988 (remote_protocol_features): Add an entry for
10989 PACKET_QTBuffer_size.
10990
10991 2013-03-08 Tom Tromey <tromey@redhat.com>
10992
10993 * remote-m32r-sdi.c (m32r_load): Call skip_spaces on correct
10994 variable.
10995
10996 2013-03-07 Pedro Alves <palves@redhat.com>
10997
10998 * target.c (target_read_stralloc, target_fileio_read_alloc):
10999 *Cast pointer to 'gdb_byte *' in target call.
11000
11001 2013-03-07 Pedro Alves <palves@redhat.com>
11002
11003 * corefile.c (read_memory_string): Cast pointer to gdb_byte* in
11004 call.
11005
11006 2013-03-07 Keith Seitz <keiths@redhat.com>
11007
11008 * breakpoint.c (catch_syscall_split_args): Use skip_spaces.
11009 (trace_pass_command): Likewise.
11010 * cli/cli-cmds.c: Include cli/cli-utils.h.
11011 (source_command): Use skip-spaces.
11012 (disassemble_command): Likewise.
11013 * findcmd.c: Include cli/cli-utils.h.
11014 (parse_find_args): Use skip_spaces.
11015 * go32-nat.c: Include cli/cli-utils.h.
11016 (go32_sldt): Use skip_spaces.
11017 (go32_sgdt): Likewise.
11018 (go32_sidt): Likewise.
11019 (go32_pde): Likewise.
11020 (go32_pte): Likewise.
11021 (go32_pte_for_address): Likewise.
11022 * infcmd.c: Include cli/cli-utils.h.
11023 (registers_info): Use skip_spaces.
11024 * linux-tdep.c (read_mapping): Use skip_spaces_const.
11025 (linux_info_proc): Likewise.
11026 * linux-thread-db.c: Include cli/cli-utils.h.
11027 (info_auto_load_libthread_db): Use skip_spaces_const.
11028 * m32r-rom.c: Include cli/cli-utils.h.
11029 (m32r_upload_command): Use skip_spaces.
11030 * maint.c: Include cli/cli-utils.h.
11031 (maintenance_translate_address): Use skip_spaces.
11032 * mi/mi-parse.c: Include cli/cli-utils.h.
11033 (mi_parse_argv): Use skip_spaces.
11034 (mi_parse): Likewise.
11035 * minsyms.c: Include cli/cli-utils.h.
11036 (msymbol_hash_iw): Use skip_spaces_const.
11037 * objc-lang.c: Include cli/cli-utils.h.
11038 (parse_selector): Use skip_spaces.
11039 (parse_method): Likewise.
11040 * python/python.c: Include cli/cli-utils.h.
11041 (python_interactive_command)[HAVE_PYTHON]: Use skip_spaces.
11042 (python_command)[HAVE_PYTHON]: Likewise.
11043 (python_interactive_command)[!HAVE_PYTHON]: Likewise.
11044 * remote-m32r-sdi.c: Include cli/cli-utils.h.
11045 (m32r_load): Use skip_spaces.
11046 * serial.c: Include cli/cli-utils.h.
11047 (serial_open): Use skip_spaces_const.
11048 * stack.c: Include cli/cli-utils.h.
11049 (parse_frame_specification_1): Use skip_spaces_const.
11050 * symfile.c: Include cli/cli-utils.h.
11051 (set_ext_lang_command): Use skip_spaces.
11052 * symtab.c: Include cli/cli-utils.h.
11053 (rbreak_command): Use skip_spaces.
11054 * thread.c (thread_name_command): Use skip_spaces.
11055 * tracepoint.c (validate_actionline): Use skip_spaces.
11056 (encode_actions_1): Likewise.
11057 (trace_find_range_command): Likewise.
11058 (trace_find_outside_command): Likewise.
11059 (trace_dump_actions): Likewise.
11060
11061 2013-03-07 Pedro Alves <palves@redhat.com>
11062
11063 * c-lang.c (parse_one_string): Cast argument to gdb_byte *.
11064 * expprint.c (print_subexp_standard): Likewise.
11065 * utils.c (host_char_to_target): Likewise.
11066 * valprint.c (generic_emit_char, generic_printstr): Likewise.
11067 * varobj.c (value_get_print_value): Change type of local to char*.
11068 Cast it gdb_byte * in call to language printer.
11069
11070 2013-03-07 Pedro Alves <palves@redhat.com>
11071
11072 * charset.c (struct wchar_iterator) <input>: Change type to 'const
11073 gdb_byte *'.
11074 (make_wchar_iterator): Remove cast to char*.
11075 (wchar_iterate): Change type of local.
11076
11077 2013-03-07 Pedro Alves <palves@redhat.com>
11078
11079 * regcache.c (regcache_xmalloc_1): Call XCALLOC with signed char
11080 for 'regcache->register_status'.
11081
11082 2013-03-07 Pedro Alves <palves@redhat.com>
11083
11084 * breakpoint.c (breakpoint_xfer_memory): Change type of local to
11085 int.
11086
11087 2013-03-07 Pedro Alves <palves@redhat.com>
11088
11089 * stap-probe.c (handle_stap_probe): Add cast to char*.
11090
11091 2013-03-07 Pedro Alves <palves@redhat.com>
11092
11093 * linux-record.c (record_linux_system_call) <gdb_sys_msgrcv,
11094 RECORD_MSGRCV>: Pass a signed variable to
11095 regcache_raw_read_signed, instead of an unsigned one.
11096
11097 2013-03-07 Pedro Alves <palves@redhat.com>
11098
11099 * remote-notif.c (notif_debug): Change type to int.
11100 * remote-notif.h (notif_debug): Likewise.
11101
11102 2013-03-07 Pedro Alves <palves@redhat.com>
11103
11104 * ser-tcp.c (tcp_retry_limit): Change type to unsigned int.
11105
11106 2013-03-07 Pedro Alves <palves@redhat.com>
11107
11108 * remote.c (hex2bin, bin2hex): Move extern declarations to ...
11109 * remote.h (hex2bin, bin2hex): ... here.
11110 * tracepoint.c (hex2bin, bin2hex): Remove extern declarations.
11111
11112 2013-03-07 Eli Zaretskii <eliz@gnu.org>
11113
11114 * utils.c (initialize_utils): Improve doc strings of "set/show
11115 width", "set/show height", and "set/show pagination".
11116
11117 2013-03-06 Keith Seitz <keiths@redhat.com>
11118
11119 * ax-gdb.c (gen_printf): Make FORMAT const.
11120 * ax-gdb.h (gen_printf): Likewise.
11121 * ax-general.c (ax_string): Make STR const.
11122 * ax.h (ax_string): Likewise.
11123
11124 2013-03-06 Doug Evans <dje@google.com>
11125
11126 * elfread.c (elf_symfile_read): Move debugging printf to more
11127 logical location.
11128
11129 2013-03-06 Pedro Alves <palves@redhat.com>
11130
11131 * python/py-utils.c (target_string_to_unicode): Delete function.
11132 * python/python-internal.h (target_string_to_unicode): Delete
11133 declaration.
11134
11135 2013-03-06 Pierre Muller <muller@sourceware.org>
11136
11137 * linespec.c (get_current_search_block): ARI fix, use (void)
11138 for empty parameter list.
11139
11140 2013-03-05 Doug Evans <dje@google.com>
11141
11142 * ada-lang.c (ada_lookup_symbol_list_worker): New function, contents
11143 of old ada_lookup_symbol_list. In !full_search case, don't
11144 search superblocks.
11145 (ada_lookup_symbol_list): Delete arg full_search, all callers
11146 updated. Call ada_lookup_symbol_list_worker.
11147 (ada_iterate_over_symbols): Call ada_lookup_symbol_list_worker.
11148 * ada-lang.h (ada_lookup_symbol_list): Update.
11149 * language.h (language_defn): Update comment for
11150 la_iterate_over_symbols.
11151 * linespec.c (iterate_over_file_blocks): New function.
11152 (iterate_over_all_matching_symtabs): Call it.
11153 (lookup_prefix_sym): Ditto.
11154 (get_current_search_block): New function.
11155 (get_search_block): Delete.
11156 (find_label_symbols): Call get_current_search_block.
11157 (add_matching_symbols_to_info): Call iterate_over_file_blocks.
11158 * symtab.c (iterate_over_symbols): Don't search superblocks.
11159
11160 2013-03-05 Yao Qi <yao@codesourcery.com>
11161
11162 * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): Change
11163 parameter VAR's type from "unsigned int" to "int".
11164 * command.h (var_zuinteger_unlimited): Update its comments.
11165 (add_setshow_zuinteger_unlimited_cmd): Update the declaration.
11166
11167 2013-03-05 Corinna Vinschen <vinschen@redhat.de>
11168
11169 * NEWS: Mention new target x86_64-*-cygwin*.
11170
11171 2013-03-05 Corinna Vinschen <vinschen@redhat.de>
11172
11173 * configure.host: Add x86_64-*-cygwin* as host.
11174 * configure.tgt: Add x86_64-*-cygwin* as target.
11175 * config/i386/cygwin64.mh: New file.
11176
11177 2013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
11178
11179 * linespec.c (decode_line_2): Fix duplicate request off by two message.
11180
11181 2013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
11182
11183 * linespec.c (struct linespec_canonical_name): New.
11184 (struct linespec_state): Change canonical_names type to it.
11185 (add_sal_to_sals): Change variable canonical_name to canonical. Change
11186 xrealloc element size. Initialize the different CANONICAL fields.
11187 (canonical_to_fullform): New.
11188 (filter_results): Use it. Add variables canonical, fullform and
11189 cleanup.
11190 (struct decode_line_2_item, decode_line_2_compare_items): New.
11191 (decode_line_2): Remove variables iter and item_names, add variables
11192 items and items_count. Modify the code for these new variables.
11193
11194 2013-03-04 Corinna Vinschen <vinschen@redhat.com>
11195
11196 * coff-pe-read.c (read_pe_exported_syms): Don't return without
11197 calling do_cleanup.
11198
11199 2013-03-04 Luis Machado <lgustavo@codesourcery.com>
11200
11201 * tracepoint.c (build_traceframe_info): Add code for byte order.
11202
11203 2013-03-02 Kevin Buettner <kevinb@redhat.com>
11204
11205 * v850-tdep.c: (v850e2_register_name): Revise system register
11206 names to match current V850E2M architecture specifications.
11207 Update register number enum comments too.
11208
11209 2013-03-01 Jiong Wang <jiwang@tilera.com>
11210 Pedro Alves <palves@redhat.com>
11211
11212 * tilegx-tdep.c (tilegx_analyze_prologue): Limit bundle reading
11213 to END_ADDR.
11214 (tilegx_skip_prologue): Limit prologue analysis to section end.
11215
11216 2013-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
11217
11218 * dwarf2loc.c (call_site_find_chain_1): New variable save_callee_pc,
11219 use it.
11220
11221 2013-03-01 Pedro Alves <palves@redhat.com>
11222
11223 Use gdb_byte for bytes from the program being debugged.
11224
11225 * arm-tdep.c (arm_store_return_value, arm_get_longjmp_target):
11226 Change type of local 'buf' to gdb_byte.
11227 * avr-tdep.c (avr_frame_prev_register, avr_push_dummy_call): Likewise.
11228 * bfin-tdep.c (bfin_push_dummy_call): Likewise.
11229 * cris-tdep.c (cris_sigcontext_addr)
11230 (cris_sigtramp_frame_unwind_cache): Likewise.
11231 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp)
11232 (frv_linux_sigcontext_reg_addr, frv_linux_sigtramp_frame_cache):
11233 Likewise.
11234 * frv-tdep.c (frv_pseudo_register_write, frv_analyze_prologue): Likewise.
11235 * hppa-hpux-tdep.c (hppa32_hpux_find_global_pointer)
11236 (hppa32_hpux_search_dummy_call_sequence)
11237 (hppa_hpux_supply_save_state): Likewise.
11238 * hppa-linux-tdep.c (insns_match_pattern)
11239 (hppa_linux_find_global_pointer): Likewise.
11240 * hppa-tdep.c (hppa_in_function_epilogue_p)
11241 (skip_prologue_hard_way, hppa_frame_cache): Likewise.
11242 * i386-nto-tdep.c (i386nto_sigcontext_addr): Likewise.
11243 * i386fbsd-tdep.c (i386fbsd_supply_uthread)
11244 (i386fbsd_collect_uthread): Likewise.
11245 * ia64-hpux-tdep.c (ia64_hpux_push_dummy_code): Likewise.
11246 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address): Likewise.
11247 * ia64-tdep.c (examine_prologue, ia64_frame_cache)
11248 (ia64_frame_prev_register, ia64_sigtramp_frame_cache)
11249 (ia64_sigtramp_frame_prev_register, ia64_access_reg)
11250 (ia64_access_rse_reg, ia64_libunwind_frame_this_id)
11251 (ia64_libunwind_frame_prev_register)
11252 (ia64_libunwind_sigtramp_frame_this_id)
11253 (ia64_find_global_pointer_from_dynamic_section)
11254 (find_extant_func_descr, find_func_descr, ia64_dummy_id)
11255 (ia64_unwind_pc): Likewise.
11256 * iq2000-tdep.c (iq2000_store_return_value): Likewise.
11257 * m68hc11-tdep.c (m68hc11_push_dummy_call)
11258 (m68hc11_extract_return_value): Likewise.
11259 * m68klinux-nat.c (fetch_register, store_register): Likewise.
11260 * mep-tdep.c (mep_pseudo_cr32_read, mep_pseudo_cr32_write)
11261 (mep_get_insn, mep_push_dummy_call): Likewise.
11262 * mips-linux-tdep.c (mips_linux_get_longjmp_target)
11263 (mips_linux_in_dynsym_stub): Likewise.
11264 * mn10300-tdep.c (mep_pseudo_cr32_write): Likewise.
11265 * ppc-linux-nat.c (fetch_register, store_register): Likewise.
11266 * regcache.c (dump_endian_bytes): Change type of parameter 'buf'
11267 to gdb_byte.
11268 * remote-mips.c (mips_set_register): Likewise.
11269 * remote-sim.c (gdbsim_fetch_register): Likewise.
11270 * score-tdep.c (score7_fetch_inst): Change type of parameter
11271 'memblock' and local 'buf' to gdb_byte.
11272 (score7_malloc_and_get_memblock): Change return type to gdb_byte.
11273 Change type of local 'buf' to gdb_byte. Adjust.
11274 (score7_adjust_memblock_ptr): Change type of parameter 'memblock'
11275 to gdb_byte**.
11276 (score7_analyze_prologue): Change type of 'memblock' and
11277 'memblock_ptr' locals to gdb_byte*.
11278 * sh64-tdep.c (sh64_extract_return_value)
11279 (sh64_store_return_value): Change type of local 'buf' to gdb_byte.
11280 * solib-darwin.c (darwin_current_sos, darwin_read_exec_load_addr):
11281 * solib-pa64.c (pa64_solib_create_inferior_hook)
11282 (pa64_open_symbol_file_object): Remove local 'buf'.
11283 * solib-som.c (som_solib_create_inferior_hook, link_map_start)
11284 (som_open_symbol_file_object): Likewise.
11285 * solib-spu.c (spu_current_sos): Likewise.
11286 * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
11287 * spu-multiarch.c (parse_spufs_run, spu_fetch_registers)
11288 (spu_store_registers): Likewise.
11289 * target.c (debug_print_register): Likewise.
11290 * tic6x-tdep.c (tic6x_get_longjmp_target): Likewise.
11291 * xstormy16-tdep.c (xstormy16_store_return_value)
11292 (xstormy16_push_dummy_call, xstormy16_resolve_jmp_table_entry)
11293 (xstormy16_find_jmp_table_entry): Likewise.
11294
11295 2013-03-01 Jiong Wang <jiwang@tilera.com>
11296
11297 * tilegx-tdep.c (tilegx_get_longjmp_target): New function.
11298 (tilegx_gdbarch_init): Install it.
11299
11300 2013-02-28 Tom Tromey <tromey@redhat.com>
11301
11302 * python/py-arch.c (archpy_disassemble): Use PyInt_Check and
11303 PyLong_Check.
11304
11305 2013-02-28 Doug Evans <dje@google.com>
11306
11307 * python/py-finishbreakpoint.c (bpfinishpy_init): gcc -Wall lint.
11308 * python/python.c (gdbpy_find_pc_line): Ditto.
11309
11310 2013-02-28 Tom Tromey <tromey@redhat.com>
11311
11312 * contrib/excheck.py: New file.
11313 * contrib/exsummary.py: New file.
11314 * contrib/gcc-with-excheck: New file.
11315
11316 2013-02-28 Tom Tromey <tromey@redhat.com>
11317
11318 * python/python.c (gdbpy_print_stack): Call begin_line and
11319 fprintf_filtered inside TRY_CATCH.
11320
11321 2013-02-28 Tom Tromey <tromey@redhat.com>
11322
11323 * python/python.c (gdbpy_find_pc_line): Call find_pc_line
11324 inside TRY_CATCH.
11325
11326 2013-02-28 Tom Tromey <tromey@redhat.com>
11327
11328 * py-finishbreakpoint.c (bpfinishpy_init): Reorganize to call
11329 frame_object_to_frame_info inside TRY_CATCH.
11330
11331 2013-02-28 Tom Tromey <tromey@redhat.com>
11332
11333 * py-block.c (gdbpy_block_for_pc): Call block_for_pc inside
11334 TRY_CATCH.
11335
11336 2013-02-28 Tom Tromey <tromey@redhat.com>
11337
11338 * objfiles.h (ALL_PSPACE_OBJFILES): Remove trailing backlash.
11339
11340 2013-02-27 Corinna Vinschen <vinschen@redhat.com>
11341
11342 * windows-nat.c: Throughout, fix format strings and casts of
11343 printf-like functions to avoid type related warnings on all
11344 platforms.
11345 (handle_output_debug_string): Fetch context information address
11346 from debug string using string_to_core_addr.
11347
11348 2013-02-27 Jiong Wang <jiwang@tilera.com>
11349
11350 * regformats/reg-tilegx.dat (name): Change abi name to "tilegx".
11351 * regformats/reg-tilegx32.dat: New.
11352
11353 2013-02-27 Jiong Wang <jiwang@tilera.com>
11354
11355 * configure.tgt (tilegx-*-linux*): Enable gdbserver.
11356
11357 2013-02-27 Jiong Wang <jiwang@tilera.com>
11358
11359 * configure.tgt (tilegx-*-linux*): Replace whitespace with tab.
11360
11361 2013-02-27 Yao Qi <yao@codesourcery.com>
11362 Pedro Alves <palves@redhat.com>
11363
11364 * tracepoint.c (tfile_trace_find): For tfind
11365 pc/tp/range/outside, look for the next trace frame instead of
11366 always starting from frame 0.
11367
11368 2013-02-26 Anthony Green <green@moxielogic.com>
11369
11370 * configure.tgt: Add support for moxie-*-rtems* target.
11371
11372 2013-02-25 Pedro Alves <palves@redhat.com>
11373
11374 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Change
11375 warning text.
11376
11377 2013-02-24 Maciej W. Rozycki <macro@codesourcery.com>
11378
11379 * mips-tdep.c (mips32_scan_prologue): Reset frame_offset to zero
11380 if $fp is used as the virtual frame pointer.
11381
11382 2013-02-23 Alan Modra <amodra@gmail.com>
11383
11384 * elfread.c (elf_symtab_read): Do not use udata.p here to find
11385 symbol size.
11386 * ppc64-tdep.c (ppc64_elf_make_msymbol_special): New function.
11387 * ppc64-tdep.h (ppc64_elf_make_msymbol_special): Declare.
11388 * ppc-linux-tdep.c (ppc_linux_init_abi): Set up to use the above.
11389 * ppcfbsd-tdep.c (ppcfbsd_init_abi): Likewise.
11390
11391 2013-02-22 Jan Kratochvil <jan.kratochvil@redhat.com>
11392
11393 Code cleanup.
11394 * elfread.c (build_id_bfd_get): Make the return type const.
11395 (build_id_verify): Make the check parameter const.
11396 (build_id_to_debug_filename): Make the build_id parameter and variable
11397 data const.
11398 (find_separate_debug_file_by_buildid): Make the variable build_id const.
11399
11400 2013-02-21 Alan Modra <amodra@gmail.com>
11401
11402 * elfread.c (build_id_bfd_get): Adjust for elf_tdata changes.
11403
11404 2013-02-20 Siva Chandra Reddy <sivachandra@google.com>
11405
11406 Add a new method 'disassemble' to gdb.Architecture class.
11407 * python/py-arch.c (archpy_disassmble): Implementation of the
11408 new method gdb.Architecture.disassemble.
11409 (arch_object_methods): Add entry for the new method.
11410
11411 2013-02-20 Jiong Wang <jiwang@tilera.com>
11412
11413 * MAINTAINERS (Write After Approval): Add myself to the list.
11414
11415 2013-02-19 Pedro Alves <palves@redhat.com>
11416
11417 Garbage collect 'struct monitor_ops'::load_routine.
11418
11419 * monitor.h (struct monitor_ops) <load_routine>: Remove field.
11420 * monitor.c (monitor_load): No longer call
11421 current_monitor->load_routine.
11422 * dbug-rom.c (init_dbug_cmds): Don't set 'load_routine'.
11423 * m32r-rom.c (init_m32r_cmds): Don't set 'load_routine'.
11424 * ppcbug-rom.c (init_ppc_cmds): Don't set 'load_routine'.
11425
11426 2013-02-19 Pedro Alves <palves@redhat.com>
11427
11428 PR gdb/15161
11429
11430 Harmonize with generic_load.
11431
11432 * monitor.c: Include "readline/readline.h".
11433 (monitor_load): Rename parameter 'file' to 'args'. Use build_argv
11434 instead of sscanf. Use CORE_ADDR/strtoulst instead of unsigned
11435 long/strtol for the 'load_offset' local. Error out if no argument
11436 is given or if too many arguments are given. Tilde expand the
11437 passed in file name.
11438
11439 2013-02-19 Kai Tietz <ktietz@redhat.com>
11440
11441 PR gdb/15161
11442 * symfile.c (load_section_data): Change type of load_offset
11443 to CORE_ADDR.
11444 (generic_load): User strtoulst instead of strtoul for conversion
11445 of load_offset.
11446
11447 2013-02-19 Jiong Wang <jiwang@tilera.com>
11448
11449 * tilegx-tdep.c (tilegx_analyze_prologue): add check for
11450 for return address, "lr" register, saved on stack.
11451 * tilegx-tdep.c (tilegx_frame_cache): update "PC" reg
11452 after we invoke tilegx_analyze_prologue.
11453
11454 2013-02-19 Jiong Wang <jiwang@tilera.com>
11455
11456 * tilegx-tdep.c (itilegx_gdbarch_init): char type should be signed.
11457
11458 2013-02-19 Jiong Wang <jiwang@tilera.com>
11459
11460 * tilegx-tdep.c (tilegx_skip_prologue): Use skip_prologue_using_sal.
11461
11462 2013-02-19 Jiong Wang <jiwang@tilera.com>
11463
11464 * tilegx-tdep.c (INT_SWINT_1_SIGRETURN): New macro.
11465 (tilegx_write_pc): New function.
11466 (tilegx_cannot_reference_register): Return zero if REGNO
11467 is TILEGX_FAULTNUM_REGNUM.
11468 (tilegx_gdbarch_init): Add call to set_gdbarch_write_pc.
11469 (tilegx_register_name): Add handling of "faultnum" register.
11470 * tilegx-tdep.h (enum tilegx_regnum): Add TILEGX_FAULTNUM_REGNUM.
11471 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Add
11472 handling of TILEGX_FAULTNUM_REGNUM.
11473 * tilegx-linux-nat.c (regmap): Add entry for TILEGX_FAULTNUM_REGNUM.
11474
11475 2013-02-19 Jiong Wang <jiwang@tilera.com>
11476
11477 * tilegx-tdep.c (tilegx_push_dummy_call): args pushed on stack
11478 should be aligned to 64bit.
11479
11480 2013-02-19 Kai Tietz <ktietz@redhat.com>
11481
11482 * windows-nat.c (windows_xfer_memory): Fix debug-output
11483 for LLP64.
11484
11485 2013-02-19 Lei Liu <lei.liu2@windriver.com>
11486
11487 * mips-linux-nat.c (mips64_linux_regsets_store_registers):
11488 Don't check DSP register number if HAVE_DSP is not set.
11489
11490 2013-02-19 Alan Modra <amodra@gmail.com>
11491
11492 * elfread.c (struct build_id): Delete. Use struct elf_build_id
11493 throughout file instead.
11494 (build_id_bfd_get): Update to use new elf_tdata build_id field.
11495 Don't xmalloc return value.
11496 (build_id_verify): Similarly. Don't xfree.
11497 (build_id_to_debug_filename): Update.
11498 (find_separate_debug_file_by_buildid): Update, don't xfree.
11499
11500 2013-02-18 Tom Tromey <tromey@redhat.com>
11501
11502 PR gdb/15102:
11503 * dwarf2read.c (read_subrange_type): Use result of
11504 'check_typedef'.
11505
11506 2013-02-16 Yuanhui Zhang <asmwarrior@gmail.com>
11507
11508 * frame.c: Remove one extra white space after #include
11509 directive.
11510
11511 2013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
11512
11513 * contrib/cc-with-tweaks.sh: Extend the comment for -p option.
11514
11515 2013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
11516
11517 * gdb-gdb.gdb.in: Wrap set complaints, b internal_error, b info_command
11518 and dir commands into an if block.
11519
11520 2013-02-15 Sanimir Agovic <sanimir.agovic@intel.com>
11521
11522 * python/py-breakpoint (struct pybp_code): Use int instead of
11523 enum type_code.
11524
11525 2013-02-15 Pedro Alves <pedro@codesourcery.com>
11526 Hafiz Abid Qadeer <abidh@codesourcery.com>
11527
11528 * NEWS: Mention new field "trace-file".
11529 * tracepoint.c (trace_status_mi): Output "trace-file" field.
11530 (tfile_open): Record the trace file's filename in the trace
11531 status.
11532 (tfile_files_info): Mention the name of the trace file.
11533 Check the "filename" field explicitely.
11534 (trace_status_command): Explicitely check "filename" field.
11535 (trace_find_command): Ditto.
11536 (trace_find_pc_command): Ditto.
11537 (trace_find_tracepoint_command): Ditto.
11538 (trace_find_line_command): Ditto.
11539 (trace_find_range_command): Ditto.
11540 (trace_find_outside_command): Ditto.
11541 * tracepoint.h (struct trace_status) <from_file>: Rename it
11542 to "filename" and make it hold the trace file's filename
11543 instead of a boolean.
11544 * remote.c (remote_get_trace_status): Initialize "filename"
11545 field with NULL instead of 0.
11546
11547 2013-02-15 Yao Qi <yao@codesourcery.com>
11548
11549 * remote.c: Fix a typo.
11550
11551 2013-02-14 Pierre Muller <muller@sourceware.org>
11552
11553 * contrib/ari/gdb_ari.sh (GNU/Linux rule): Remove.
11554
11555 2013-02-14 Pedro Alves <palves@redhat.com>
11556
11557 * utils.c (savestring): Don't #undef it. Move function to
11558 common/common-utils.c.
11559 * common/common-utils.c: Include gdb_string.h.
11560 (savestring): Move here from utils.c.
11561 * common/common-utils.h (savestring): Declare.
11562
11563 2013-02-14 Pedro Alves <palves@redhat.com>
11564
11565 * utils.c (savestring): Rename parameter 'size' to 'len'.
11566
11567 2013-02-14 Pedro Alves <palves@redhat.com>
11568 Yufeng Zhang <yufeng.zhang@arm.com>
11569
11570 * aarch64-linux-nat.c (aarch64_init_debug_reg_state): Delete.
11571 (aarch64_inferior_data, struct aarch64_inferior_data):
11572 Delete.
11573 (struct aarch64_process_info): New.
11574 (aarch64_process_list): New global.
11575 (aarch64_find_process_pid, aarch64_add_process)
11576 (aarch64_process_info_get): New functions.
11577 (aarch64_inferior_data_get): Delete.
11578 (aarch64_process_info_get): New function.
11579 (aarch64_forget_process): New function.
11580 (aarch64_get_debug_reg_state): New parameter 'pid'. Reimplement.
11581 (aarch64_linux_prepare_to_resume): Pass the lwp's pid to
11582 aarch64_get_debug_reg_state.
11583 (aarch64_notify_debug_reg_change): Use iterate_over_lwps
11584 instead of linux_nat_iterate_watchpoint_lwps.
11585 (aarch64_linux_new_fork): New function.
11586 (aarch64_linux_child_post_startup_inferior): Use
11587 aarch64_forget_process instead of aarch64_init_debug_reg_state.
11588 (aarch64_handle_breakpoint, aarch64_linux_insert_hw_breakpoint)
11589 (aarch64_linux_remove_hw_breakpoint)
11590 (aarch64_handle_aligned_watchpoint)
11591 (aarch64_handle_unaligned_watchpoint)
11592 (aarch64_linux_insert_watchpoint)
11593 (aarch64_linux_remove_watchpoint)
11594 (aarch64_linux_stopped_data_address): Adjust to pass the current
11595 process id to aarch64_debug_reg_state.
11596 (_initialize_aarch64_linux_nat): Install aarch64_linux_new_fork as
11597 linux_nat_new_fork hook, and aarch64_forget_process as
11598 linux_nat_forget_process hook; remove the call to
11599 register_inferior_data_with_cleanup.
11600
11601 2013-02-14 Pedro Alves <palves@redhat.com>
11602
11603 * eval.c (evaluate_subexp_for_address) <default_case_after_eval,
11604 EVAL_AVOID_SIDE_EFFECTS>: Swap and handle TYPE_CODE_REF before
11605 lval_memory.
11606
11607 2013-02-14 Pedro Alves <pedro@codesourcery.com>
11608 Hafiz Abid Qadeer <abidh@codesourcery.com>
11609
11610 * tracepoint.h (validate_trace_state_variable_name): Declare.
11611 * tracepoint.c (validate_trace_state_variable_name): New.
11612 (trace_variable_command): Parse the trace state variable's name
11613 without using parse_expression. Do several validations.
11614 * mi/mi-main.c (mi_cmd_trace_define_variable): Don't parse the
11615 trace state variable's name with parse_expression. Validate it.
11616
11617 2013-02-14 Yao Qi <yao@codesourcery.com>
11618
11619 * infcmd.c (breakpoint_proceeded): Remove it.
11620
11621 2013-02-14 Yao Qi <yao@codesourcery.com>
11622
11623 * tracepoint.c (end_actions_pseudocommand): Make it static.
11624 (while_stepping_pseudocommand): Likewise.
11625 * tracepoint.h (end_actions_pseudocommand): Remove the
11626 declaration.
11627 (while_stepping_pseudocommand): Likewise.
11628
11629 2013-02-14 Yao Qi <yao@codesourcery.com>
11630
11631 * cli/cli-decode.c (help_cmd): Remove the declaration of
11632 "cmdlist".
11633 (help_all): Likewise.
11634
11635 2013-02-13 Pedro Alves <palves@redhat.com>
11636
11637 * amd64-linux-nat.c (update_debug_registers_callback):
11638 Update comment.
11639 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
11640 iterate_over_lwps.
11641 (amd64_linux_prepare_to_resume): Pass the lwp's pid to
11642 i386_debug_reg_state.
11643 (amd64_linux_new_fork): New function.
11644 (_initialize_amd64_linux_nat): Install amd64_linux_new_fork as
11645 linux_nat_new_fork hook, and i386_forget_process as
11646 linux_nat_forget_process hook.
11647 * i386-linux-nat.c (update_debug_registers_callback):
11648 Update comment.
11649 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
11650 iterate_over_lwps.
11651 (i386_linux_prepare_to_resume): Pass the lwp's pid to
11652 i386_debug_reg_state.
11653 (i386_linux_new_fork): New function.
11654 (_initialize_i386_linux_nat): Install i386_linux_new_fork as
11655 linux_nat_new_fork hook, and i386_forget_process as
11656 linux_nat_forget_process hook.
11657 * i386-nat.c (i386_init_dregs): Delete.
11658 (i386_inferior_data, struct i386_inferior_data):
11659 Delete.
11660 (struct i386_process_info): New.
11661 (i386_process_list): New global.
11662 (i386_find_process_pid, i386_add_process, i386_process_info_get):
11663 New functions.
11664 (i386_inferior_data_get): Delete.
11665 (i386_process_info_get): New function.
11666 (i386_debug_reg_state): New parameter 'pid'. Reimplement.
11667 (i386_forget_process): New function.
11668 (i386_cleanup_dregs): Rewrite.
11669 (i386_update_inferior_debug_regs, i386_insert_watchpoint)
11670 (i386_remove_watchpoint, i386_region_ok_for_watchpoint)
11671 (i386_stopped_data_address, i386_insert_hw_breakpoint)
11672 (i386_remove_hw_breakpoint): Adjust to pass the current process id
11673 to i386_debug_reg_state.
11674 (i386_use_watchpoints): Don't register inferior data.
11675 * i386-nat.h (i386_debug_reg_state): Add new 'pid' parameter, and
11676 adjust comment.
11677 (i386_forget_process): Declare.
11678 * linux-fork.c (delete_fork): Call linux_nat_forget_process.
11679 * linux-nat.c (linux_nat_new_fork, linux_nat_forget_process_hook):
11680 New static globals.
11681 (linux_child_follow_fork): Don't call linux_nat_new_thread here.
11682 (add_initial_lwp): New, factored out from ...
11683 (add_lwp): ... this. Don't check the number of lwps before
11684 calling linux_nat_new_thread.
11685 (linux_nat_iterate_watchpoint_lwps): Delete.
11686 (linux_nat_attach): Use add_initial_lwp instead of add_lwp.
11687 (linux_handle_extended_wait): Call the linux_nat_new_fork hook on
11688 forks and vforks.
11689 (linux_nat_wait_1): Use add_initial_lwp instead of add_lwp for the
11690 initial lwp.
11691 (linux_nat_kill, linux_nat_mourn_inferior): Call
11692 linux_nat_forget_process.
11693 (linux_nat_set_new_fork, linux_nat_set_forget_process)
11694 (linux_nat_forget_process): New functions.
11695 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): Delete
11696 type.
11697 (linux_nat_iterate_watchpoint_lwps): Delete declaration.
11698 (linux_nat_new_fork_ftype, linux_nat_forget_process_ftype): New
11699 types.
11700 (linux_nat_set_new_fork, linux_nat_set_forget_process)
11701 (linux_nat_forget_process): New declarations.
11702
11703 * amd64fbsd-nat.c (super_mourn_inferior): New global.
11704 (amd64fbsd_mourn_inferior): New function.
11705 (_initialize_amd64fbsd_nat): Override to_mourn_inferior.
11706 * windows-nat.c (windows_detach): Call i386_cleanup_dregs.
11707
11708 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
11709
11710 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
11711 Adding _().
11712
11713 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
11714
11715 * aarch64-linux-nat.c (debug_reg_change_callback)
11716 (aarch64_linux_get_debug_reg_capacity): ARI fix: Replace %llx with
11717 %s and phex().
11718
11719 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
11720
11721 * aarch64-linux-nat.c (dr_changed_t): ARI fix: Replace long long
11722 with LONGEST.
11723
11724 2013-02-13 Pedro Alves <palves@redhat.com>
11725 Hafiz Abid Qadeer <abidh@codesourcery.com>
11726
11727 * c-lang.c (c_op_print_tab): Add entry for UNOP_PLUS.
11728
11729 2013-02-12 Tom Tromey <tromey@redhat.com>
11730
11731 PR symtab/11464:
11732 * c-exp.y (lex_one_token): Initialize other fields of yylval on
11733 NAME return.
11734 (classify_inner_name): Remove 'first_name' argument, add
11735 'context'. Remove unused variable.
11736 (yylex): Explicitly maintain the context type. Exit loop earlier
11737 if NAME result is seen.
11738
11739 2013-02-12 Pedro Alves <palves@redhat.com>
11740
11741 * amd64-darwin-tdep.c: Add (C) after Copyright.
11742 * cli/cli-cmds.h: Ditto.
11743 * cli/cli-decode.c: Ditto.
11744 * cli/cli-decode.h: Ditto.
11745 * cli/cli-dump.c: Ditto.
11746 * cli/cli-dump.h: Ditto.
11747 * cli/cli-interp.c: Ditto.
11748 * cli/cli-logging.c: Ditto.
11749 * cli/cli-script.c: Ditto.
11750 * cli/cli-script.h: Ditto.
11751 * cli/cli-setshow.c: Ditto.
11752 * cli/cli-setshow.h: Ditto.
11753 * cli/cli-utils.c: Ditto.
11754 * cli/cli-utils.h: Ditto.
11755 * config/alpha/nm-osf3.h: Ditto.
11756 * config/djgpp/djconfig.sh: Ditto.
11757 * config/i386/nm-fbsd.h: Ditto.
11758 * config/i386/nm-i386gnu.h: Ditto.
11759 * config/nm-linux.h: Ditto.
11760 * config/nm-nto.h: Ditto.
11761 * config/rs6000/nm-rs6000.h: Ditto.
11762 * config/sparc/nm-sol2.h: Ditto.
11763 * darwin-nat-info.c: Ditto.
11764 * dfp.c: Ditto.
11765 * dfp.h: Ditto.
11766 * gdb-demangle.h: Ditto.
11767 * i386-darwin-nat.c: Ditto.
11768 * i386-darwin-tdep.c: Ditto.
11769 * linux-fork.h: Ditto.
11770 * m32c-tdep.c: Ditto.
11771 * microblaze-linux-tdep.c: Ditto.
11772 * microblaze-rom.c: Ditto.
11773 * microblaze-tdep.c: Ditto.
11774 * microblaze-tdep.h: Ditto.
11775 * mips-linux-tdep.h: Ditto.
11776 * ppc-ravenscar-thread.c: Ditto.
11777 * ppc-ravenscar-thread.h: Ditto.
11778 * prologue-value.c: Ditto.
11779 * prologue-value.h: Ditto.
11780 * ravenscar-thread.c: Ditto.
11781 * ravenscar-thread.h: Ditto.
11782 * sparc-ravenscar-thread.c: Ditto.
11783 * sparc-ravenscar-thread.h: Ditto.
11784 * tilegx-linux-tdep.c: Ditto.
11785 * unwind_stop_reasons.def: Ditto.
11786 * windows-nat.h: Ditto.
11787 * xtensa-linux-tdep.c: Ditto.
11788 * xtensa-xtregs.c: Ditto.
11789 * regformats/regdat.sh: Ditto.
11790 * regformats/regdef.h: Ditto.
11791
11792 2013-02-12 Pedro Alves <palves@redhat.com>
11793
11794 * break-catch-sig.c: Update copyright years.
11795
11796 2013-02-11 Siva Chandra Reddy <sivachandra@google.com>
11797
11798 Add support for a destructor for ui_out data and use it to
11799 provide a ui_out destructor.
11800 * ui-out.h: Declare the new ui_out destructor.
11801 (ui_out_impl): Add a field for data destructor in ui_out_impl.
11802 * ui-out.c (default_data_destroy): Add a default data destructor
11803 which does nothing.
11804 (default_ui_out_impl): Set the new data_destroy field to
11805 default_data_destroy
11806 (uo_data_destroy): Local function which invokes the data
11807 destructor if present.
11808 (clear_table): Local function which clears the table data of a
11809 ui_out object.
11810 (ui_out_destroy): Public function which frees a ui_out object.
11811 (ui_out_table_end): Use the new clear_table function.
11812 * cli-out.c (cli_ui_out_impl): Set the new data_destroy field to
11813 NULL.
11814 * mi/mi-out.c (mi_ui_out_impl): Set the new data_destroy field
11815 to NULL.
11816
11817 2013-02-11 Doug Evans <dje@google.com>
11818
11819 * printcmd.c (printf_c_string,printf_wide_c_string): New functions.
11820 (printf_decfloat): New function. Broken out from ui_printf.
11821 Remove unnecessary code to shift the entire format string down.
11822 (printf_pointer): New function.
11823 (ui_printf): Code to print C strings, wide C strings, decfloats,
11824 and pointers moved to separate functions.
11825
11826 2013-02-11 Sergio Durigan Junior <sergiodj@redhat.com>
11827
11828 * valops.c (value_assign): Handling bitfield offset in
11829 `lval_internalvar_component' case.
11830
11831 2013-02-08 Doug Evans <dje@google.com>
11832
11833 * common/format.c (parse_format_string): Fix whitespace.
11834
11835 2013-02-08 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
11836
11837 * stack.c (return_command): Work around uninitialized variable
11838 warning.
11839
11840 2013-02-08 Yufeng Zhang <yufeng.zhang@arm.com>
11841
11842 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET): Change the
11843 number of the registers from 36 to 34.
11844
11845 2013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
11846
11847 * NEWS: Mention new AArch64 native and target support.
11848
11849 2013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
11850
11851 * MAINTAINERS (Write After Approval): Add myself.
11852
11853 2013-02-08 Jim MacArthur <jim.macarthur@arm.com>
11854 Marcus Shawcroft <marcus.shawcroft@arm.com>
11855 Nigel Stephens <nigel.stephens@arm.com>
11856 Yufeng Zhang <yufeng.zhang@arm.com>
11857
11858 * aarch64-linux-nat.c: New file.
11859 * config/aarch64/linux.mh: New file.
11860 * configure.host: Add AArch64.
11861 * Makefile.in (ALLDEPFILES): Add aarch64-linux-nat.c.
11862
11863 2013-02-07 Doug Evans <dje@google.com>
11864
11865 * cli/cli-cmds.c (_initialize_cli_cmds): Clarify argument to
11866 disassemble command.
11867
11868 2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
11869
11870 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
11871 set_gdbarch_fetch_tls_load_module_address.
11872
11873 2013-02-06 David S. Miller <davem@davemloft.net>
11874
11875 * sparc-tdep.c (sparc32_return_value): Handle writing return value when
11876 using RETURN_VALUE_ABI_PRESERVES_ADDRESS.
11877 * value.c (struct_return_convention): New function.
11878 (using_struct_return): Implement in terms of struct_return_convention.
11879 * value.h (struct_return_convention): Declare.
11880 * stack.c (return_command): Allow successful overriding of the return
11881 value when RETURN_VALUE_ABI_PRESERVES_ADDRESS.
11882
11883 2013-02-06 Tom Tromey <tromey@redhat.com>
11884
11885 * python/py-type.c (typy_strip_typedefs): Don't call check_typedef
11886 outside of TRY_CATCH.
11887
11888 2013-02-06 Yao Qi <yao@codesourcery.com>
11889
11890 * mi/mi-interp.c: Include "tracepoint.h".
11891 (mi_tsv_modified): Declare.
11892 (mi_tsv_created, mi_tsv_deleted): Update declaration.
11893 (mi_interpreter_init): Call observer_attach_tsv_modified.
11894 (mi_tsv_modified): New.
11895 (mi_tsv_created, mi_tsv_deleted): Update.
11896 * tracepoint.c (trace_variable_command): Call
11897 observer_notify_tsv_modified if the initial value of tsv is
11898 changed.
11899 (delete_trace_state_variable): Call
11900 observer_notify_tsv_deleted earlier.
11901 (trace_variable_command): Caller update.
11902 (create_tsv_from_upload): Likewise.
11903 * observer.sh: Declare "struct trace_state_variable".
11904
11905 * NEWS: Mention the new MI notification "=tsv-modified".
11906
11907 2013-02-05 Doug Evans <dje@google.com>
11908
11909 * completer.c (location_completer): Fix typo in comment.
11910
11911 2013-02-05 Jan Kratochvil <jan.kratochvil@redhat.com>
11912
11913 * breakpoint.c (add_location_to_breakpoint): Insert the location with
11914 ADDRESS sorted.
11915
11916 2013-02-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
11917
11918 * aarch64-tdep.c (aarch64_analyze_prologue): ARI fix:
11919 Refactor if statement to avoid trailing || operator.
11920
11921 2013-02-05 Andreas Tobler <andreast@fgznet.ch>
11922
11923 * NEWS: Add PowerPC FreeBSD as a new native configuration.
11924
11925 2013-02-04 Andreas Tobler <andreast@fgznet.ch>
11926
11927 * Makefile.in (ALL_TARGET_OBS): Add powerpc FreeBSD files.
11928 * configure.host: Add powerpc*-*-freebsd* target.
11929 * configure.tgt: Add target info for powerpc*-*-freebsd*.
11930 * ppcfbsd-nat.c, ppcfbsd-tdep.h, ppcfbsd-tdep.c: New files.
11931 * config/powerpc/fbsd.mh: New file.
11932
11933 2013-02-04 Sergio Durigan Junior <sergiodj@redhat.com>
11934 Denys Vlasenko <dvlasenk@redhat.com>
11935 Pedro Alves <palves@redhat.com>
11936
11937 * gdbarch.sh (elfcore_write_linux_prpsinfo): New F hook.
11938 (struct elf_internal_linux_prpsinfo): Forward declare.
11939 * gdbarch.h, gdbarch.c: Regenerate.
11940 * linux-tdep.c: Include `cli/cli-utils.h'.
11941 (linux_fill_prpsinfo): New function.
11942 (linux_make_corefile_notes): Use linux_fill_prpsinfo. If there's
11943 an elfcore_write_linux_prpsinfo hook, use it, otherwise, use
11944 elfcore_write_linux_prpsinfo32 or elfcore_write_linux_prpsinfo64
11945 depending on gdbarch pointer bitness.
11946 * ppc-linux-tdep.c: Include elf-bfd.h.
11947 (ppc_linux_init_abi): Hook in elfcore_write_ppc_linux_prpsinfo32
11948 on 32-bit.
11949
11950 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
11951 Marcus Shawcroft <marcus.shawcroft@arm.com>
11952 Nigel Stephens <nigel.stephens@arm.com>
11953 Yufeng Zhang <yufeng.zhang@arm.com>
11954
11955 * configure.tgt (aarch64*-*-linux*): Set build_gdbserver=yes.
11956
11957 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
11958 Marcus Shawcroft <marcus.shawcroft@arm.com>
11959 Nigel Stephens <nigel.stephens@arm.com>
11960 Yufeng Zhang <yufeng.zhang@arm.com>
11961
11962 * aarch64-newlib-tdep.c: New file.
11963 * configure.tgt: Add aarch64-newlib-tdep.o to gdb_target_obs of
11964 aarch64*-*-elf.
11965 * defs.h (enum gdb_osabi): Add GDB_OSABI_NEWLIB.
11966 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-newlib-tdep.o.
11967 (ALLDEPFILES): Add aarch64-newlib-tdep.c.
11968 * osabi.c (gdb_osabi_names): Add "Newlib".
11969
11970 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
11971 Marcus Shawcroft <marcus.shawcroft@arm.com>
11972 Nigel Stephens <nigel.stephens@arm.com>
11973 Yufeng Zhang <yufeng.zhang@arm.com>
11974
11975 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-linux-tdep.o.
11976 (ALLDEPFILES): Add aarch64-linux-tdep.c.
11977 * aarch64-linux-tdep.c: New file.
11978 * aarch64-linux-tdep.h: New file.
11979 * aarch64-tdep.h (gdbarch_tdep): Define gregset and fpregset.
11980 * configure.tgt: Add aarch64-none-linux-gnu.
11981
11982 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
11983 Marcus Shawcroft <marcus.shawcroft@arm.com>
11984 Nigel Stephens <nigel.stephens@arm.com>
11985 Yufeng Zhang <yufeng.zhang@arm.com>
11986
11987 * Makefile.in (ALL_64_TARGET_OBS): Add arch64-tdep.o.
11988 (HFILES_NO_SRCDIR): Add aarch64-tdep.h.
11989 (ALLDEPFILES): Add aarch64-tdep.c.
11990 * aarch64-tdep.c: New file.
11991 * aarch64-tdep.h: New file.
11992 * configure.tgt: Add AArch64.
11993 * features/Makefile (WHICH): Add aarch64 and aarch64-without-fpu.
11994 (aarch64-expedite): New definition.
11995 * features/aarch64-core.xml: New file.
11996 * features/aarch64-fpu.xml: New file.
11997 * features/aarch64-without-fpu.c: New file (generated).
11998 * features/aarch64-without-fpu.xml: New file.
11999 * features/aarch64.c: New file (generated).
12000 * features/aarch64.xml: New file.
12001 * regformats/aarch64-without-fpu.dat: New file (generated).
12002 * regformats/aarch64.dat: New file (generated).
12003
12004 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12005
12006 * contrib/expect-read1.c: New file.
12007 * contrib/expect-read1.sh: New file.
12008
12009 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12010
12011 * dwarf2read.c (file_file_name): New function with code from
12012 file_full_name.
12013 (file_full_name): Move most of the code to file_file_name.
12014 (macro_start_file): Rename variable full_name to file_name and use
12015 file_file_name for it. Add comp_dir parameter to new_macro_table.
12016 * macrocmd.c (show_pp_source_pos): New variable fullname. Replace any
12017 macro_source_file->filename access by macro_source_fullname call.
12018 * macroscope.c (_initialize_macroscope): Update the new_macro_table
12019 caller.
12020 * macrotab.c (struct macro_table): New field comp_dir.
12021 (macro_include): New variables link_fullname and source_fullname.
12022 Replace any macro_source_file->filename access by macro_source_fullname
12023 call.
12024 (macro_lookup_inclusion): Remove the partial filenames checking code.
12025 (check_for_redefinition): New variables source_fullname and
12026 found_key_fullname. Replace any macro_source_file->filename access by
12027 macro_source_fullname call.
12028 (macro_undef): New variables source_fullname and key_fullname. Replace
12029 any macro_source_file->filename access by macro_source_fullname call.
12030 (macro_lookup_definition): New variables retval and source_fullname.
12031 Replace any macro_source_file->filename access by macro_source_fullname
12032 call.
12033 (foreach_macro): New variable key_fullname. Replace any
12034 macro_source_file->filename access by macro_source_fullname call.
12035 (foreach_macro_in_scope): New variable datum_fullname. Replace any
12036 macro_source_file->filename access by macro_source_fullname call.
12037 (new_macro_table): Add parameter comp_dir. Initialize T with it.
12038 (macro_source_fullname): New function.
12039 * macrotab.h (struct macro_source_file): Extent the filename field
12040 comment.
12041 (new_macro_table): New parameter comp_dir, add a comment for it.
12042 (macro_source_fullname): new declaration.
12043
12044 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12045
12046 * dwarf2read.c (dw2_map_symtabs_matching_filename): Move variable
12047 this_real_name to outer block. Use it also for
12048 compare_filenames_for_search.
12049 (dw2_expand_symtabs_matching): New variable this_real_name. Use it
12050 with dw2_get_real_path for file_matcher, considering also
12051 BASENAMES_MAY_DIFFER.
12052 (file_full_name): Prepend COMP_DIR even for relative lh->INCLUDE_DIRS.
12053
12054 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12055
12056 * dwarf2read.c (dw2_expand_symtabs_matching): Add basenames parameter
12057 to the file_matcher parameter. Pass 0 to it.
12058 (dwarf2_create_include_psymtab): Copy also DIRNAME.
12059 * psymtab.c (partial_map_symtabs_matching_filename): Drop handling of
12060 NULL psymtab_to_fullname result.
12061 (psymtab_to_fullname): Remove variable r. Never return NULL, assemble
12062 an expected filename instead.
12063 (expand_symtabs_matching_via_partial): Add basenames parameter to the
12064 file_matcher parameter. Call also psymtab_to_fullname, after newly
12065 considering BASENAMES_MAY_DIFFER.
12066 * source.c (rewrite_source_path): Remove static.
12067 * source.h (rewrite_source_path): New declaration.
12068 * symfile.h (struct quick_symbol_functions): Add basenames parameter to
12069 the expand_symtabs_matching field. Comment it.
12070 * symtab.c (file_matches): New function comment. Add parameter
12071 basenames, implement it.
12072 (search_symbols_file_matches): Add basenames parameter. Update the
12073 file_matches caller.
12074 (search_symbols): Match FILES also against symtab_to_fullname.
12075 Optimize it for BASENAMES_MAY_DIFFER.
12076
12077 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12078
12079 * source.c (print_source_lines_base): Print for TUI also "fullname".
12080 * tui/tui-data.c (init_content_element): Change tui_locator_element
12081 field to full_name.
12082 * tui/tui-data.h (struct tui_locator_element): Likewise.
12083 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Rename
12084 tui_update_locator_filename calls to tui_update_locator_fullname.
12085 Replace symtab->filename refererence by symtab_to_fullname call.
12086 * tui/tui-out.c (tui_field_string): Check for "fullname" now.
12087 * tui/tui-source.c (tui_set_source_content): Change tui_locator_element
12088 field to full_name. Replace symtab->filename refererence by
12089 symtab_to_fullname call.
12090 (tui_show_symtab_source): Rename parameter to fullname. Change
12091 tui_locator_element field to full_name.
12092 * tui/tui-stack.c: Include source.h.
12093 (tui_set_locator_filename): Rename the declaration to ...
12094 (tui_set_locator_fullname): ... here. Rename its parameter to
12095 fullname, updates its comment.
12096 (tui_set_locator_info): Rename its parameter to fullname.
12097 (tui_set_locator_filename): Rename the definition to ...
12098 (tui_set_locator_fullname): ... here. Rename its parameter to
12099 fullname, updates its comment. Change tui_locator_element field to
12100 full_name.
12101 (tui_set_locator_info): Rename its parameter to fullname.
12102 (tui_set_locator_info): Rename callee to tui_set_locator_fullname.
12103 (tui_update_locator_filename): Rename to ...
12104 (tui_update_locator_fullname): ... here. Rename callee to
12105 tui_set_locator_fullname.
12106 (tui_show_frame_info): Replace symtab->filename refererence by
12107 symtab_to_fullname call.
12108 * tui/tui-stack.h (tui_update_locator_filename): Rename to ...
12109 (tui_update_locator_fullname): ... here.
12110 * tui/tui-winsource.c (tui_display_main): Rename the callee to
12111 tui_update_locator_fullname. Replace symtab->filename refererence by
12112 symtab_to_fullname call.
12113 * tui/tui.c (tui_show_source): Rename its parameter to fullname.
12114 Rename the callee to tui_update_locator_fullname.
12115 * tui/tui.h (tui_show_source): Rename its parameter to fullname.
12116
12117 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12118
12119 * ada-lang.c (user_select_syms): Replace symtab->filename refererences
12120 by symtab_to_filename_for_display calls.
12121 * breakpoint.c (print_breakpoint_location, resolve_sal_pc): Likewise.
12122 (clear_command): New variable sal_fullname, initialize it. Replace
12123 compare_filenames_for_search by filename_cmp with sal_fullname.
12124 (say_where, update_static_tracepoint): Replace symtab->filename
12125 refererences by symtab_to_filename_for_display calls.
12126 * cli/cli-cmds.c (edit_command, list_command, ambiguous_line_spec):
12127 Likewise.
12128 * dwarf2read.c: Include source.h.
12129 (fixup_go_packaging): Replace symtab->filename refererences by
12130 symtab_to_filename_for_display calls.
12131 * linespec.c (add_sal_to_sals): Rename variable filename to fullname.
12132 Replace symtab->filename refererences by symtab_to_filename_for_display
12133 calls.
12134 (create_sals_line_offset, convert_linespec_to_sals): New variable
12135 fullname, initialize it, replace symtab->filename reference by the
12136 variable.
12137 * linux-fork.c: Include source.h.
12138 (info_checkpoints_command): Replace symtab->filename refererences by
12139 symtab_to_filename_for_display calls.
12140 * macroscope.c (sal_macro_scope): Replace symtab->filename refererences
12141 by symtab_to_filename_for_display calls.
12142 * mdebugread.c: Include source.h.
12143 (psymtab_to_symtab_1): Replace symtab->filename refererences by
12144 symtab_to_filename_for_display calls.
12145 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
12146 (mi_cmd_file_list_exec_source_files): Likewise.
12147 * printcmd.c: Include source.h.
12148 (build_address_symbolic): Replace symtab->filename refererences by
12149 symtab_to_filename_for_display calls.
12150 * psymtab.c (partial_map_symtabs_matching_filename)
12151 (read_psymtabs_with_fullname): Call compare_filenames_for_search also
12152 with psymtab_to_fullname.
12153 * python/py-symtab.c (stpy_str): Replace symtab->filename refererences
12154 by symtab_to_filename_for_display calls.
12155 (stpy_get_filename): New variable filename, initialize it, use instead
12156 of symtab->filename refererences.
12157 (salpy_str): Make variable filename const char *. Replace
12158 symtab->filename refererences by symtab_to_filename_for_display calls.
12159 * skip.c: Include source.h and filenames.h.
12160 (skip_file_command): Remove const from the symtab variable. Replace
12161 symtab->filename refererences by symtab_to_fullname call.
12162 (function_name_is_marked_for_skip): New variables searched_for_fullname
12163 and fullname. Use them to search also with symtab's fullname.
12164 * source.c (find_source_lines): Replace symtab->filename refererences
12165 by symtab_to_filename_for_display calls.
12166 (print_source_lines_base): New variable filename, use it instead of
12167 symtab->filename. Replace symtab->filename refererences by
12168 symtab_to_filename_for_display calls.
12169 (line_info, forward_search_command): Replace symtab->filename
12170 refererences by symtab_to_filename_for_display calls.
12171 (reverse_search_command): Replace symtab->filename refererences by
12172 symtab_to_filename_for_display calls. New variable filename for it.
12173 * stack.c (frame_info): Likewise.
12174 * symmisc.c: Include source.h.
12175 (dump_objfile, dump_symtab_1, maintenance_print_symbols)
12176 (maintenance_info_symtabs): Replace symtab->filename refererences by
12177 symtab_to_filename_for_display calls.
12178 * symtab.c (iterate_over_some_symtabs): Call
12179 compare_filenames_for_search also with symtab_to_fullname.
12180 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Replace
12181 symtab->filename refererences by symtab_to_filename_for_display calls.
12182 (find_line_symtab): Replace symtab->filename refererences by
12183 symtab_to_filename_for_display calls.
12184 (file_matches): Replace filename_cmp by compare_filenames_for_search.
12185 (print_symbol_info): Make the last parameter const char *. New
12186 variable s_filename. Use it in the function.
12187 (symtab_symbol_info): Make the last_filename variable const char *.
12188 Replace symtab->filename refererences by symtab_to_filename_for_display
12189 calls.
12190 (rbreak_command): New variable fullname. Use it. Replace
12191 symtab->filename refererence by symtab_to_filename_for_display call.
12192 * tracepoint.c (set_traceframe_context, trace_find_line_command)
12193 (print_one_static_tracepoint_marker): Replace symtab->filename
12194 refererences by symtab_to_filename_for_display calls.
12195 * tui/tui-source.c (tui_set_source_content): New variables filename and
12196 s_filename. Replace symtab->filename refererences by this variable.
12197 Replace other symtab->filename refererences by
12198 symtab_to_filename_for_display calls.
12199
12200 2013-02-03 Eldar Gaynetdinov <hal9000ed2k@gmail.com>
12201 Jan Kratochvil <jan.kratochvil@redhat.com>
12202
12203 Add a new variable that controls a way in which filenames are
12204 displayed.
12205 * NEWS (set filename-display): New entry.
12206 * source.c (filename_display_basename, filename_display_relative)
12207 (filename_display_absolute, filename_display_kind_names)
12208 (filename_display_string, show_filename_display_string)
12209 (symtab_to_filename_for_display): New.
12210 (_initialize_source): Added initialization of 'filename-display'
12211 variable.
12212 * source.h (symtab_to_filename_for_display): Added declaration.
12213 * stack.c (print_frame): Added new variable and calling of a new
12214 function and condition with this variable. Changed third argument of
12215 calling of a function.
12216
12217 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12218
12219 * tui/tui-data.c (init_win_info, tui_del_window, tui_free_window):
12220 Rename field reference filename to fullname.
12221 * tui/tui-data.h (struct tui_source_info): Rename field filename to
12222 fullname. New comment for it.
12223 * tui/tui-source.c (tui_set_source_content): Rename field reference
12224 filename to fullname. Initialize field by symtab_to_fullname now.
12225 * tui/tui-winsource.c (tui_update_breakpoint_info): Rename field
12226 reference filename to fullname. Use symtab_to_fullname during
12227 comparison.
12228
12229 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12230
12231 Code cleanup.
12232 * dwarf2read.c (dw2_expand_symtabs_with_filename): Rename to ...
12233 (dw2_expand_symtabs_with_fullname): ... here. Rename parameter
12234 filename to fullname. Rename variable this_name to this_fullname.
12235 Lowercase FILENAME_CMP call.
12236 (dw2_find_symbol_file): New comment for the returned string.
12237 (dwarf2_gdb_index_functions): Rename the function to
12238 dw2_expand_symtabs_with_fullname.
12239 * psymtab.c (read_psymtabs_with_filename): Rename to ...
12240 (read_psymtabs_with_fullname): ... here. Rename parameter filename to
12241 fullname.
12242 (psym_functions): Rename the function to read_psymtabs_with_fullname.
12243 * symfile.h (struct quick_symbol_functions): Rename field
12244 expand_symtabs_with_filename to expand_symtabs_with_fullname and its
12245 parameter filename to fullname. Document returned string meaning for
12246 find_symbol_file.
12247 * symtab.c (find_line_symtab): Rename the called function to
12248 expand_symtabs_with_fullname.
12249
12250 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12251
12252 Code cleanup.
12253 * breakpoint.c (clear_command): Remove variable is_abs, unify the
12254 call of filename_cmp with compare_filenames_for_search.
12255 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove variable
12256 is_abs, unify the call of FILENAME_CMP with
12257 compare_filenames_for_search. New gdb_asserts for real_path and name.
12258 Unify the call of compare_filenames_for_search with FILENAME_CMP.
12259 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
12260 * symfile.h (struct quick_symbol_functions): Extend the comment for
12261 map_symtabs_matching_filename.
12262 * symtab.c (compare_filenames_for_search): Remove the function comment
12263 relative path requirement. Handle absolute filenames, with a comment.
12264 (iterate_over_some_symtabs): Remove variable is_abs, unify the call of
12265 FILENAME_CMP with compare_filenames_for_search. New gdb_asserts for
12266 real_path and name. Unify the call of compare_filenames_for_search
12267 with FILENAME_CMP.
12268 (iterate_over_symtabs): New gdb_assert on REAL_PATH.
12269
12270 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12271
12272 Code cleanup.
12273 * breakpoint.c (print_breakpoint_location): Replace bp_location field
12274 source_file references by symtab field references. Remove variables
12275 sal and fullname.
12276 (momentary_breakpoint_from_master, add_location_to_breakpoint):
12277 (clear_command, say_where): Replace bp_location field source_file
12278 references by symtab field references.
12279 (bp_location_dtor): Remove the source_file reference.
12280 (update_static_tracepoint): Replace bp_location field source_file
12281 references by symtab field references.
12282 (breakpoint_free_objfile): New function.
12283 * breakpoint.h (struct bp_location): Extend the comment for line_number.
12284 Replace the field source_file by field symtab, extend its comment.
12285 (breakpoint_free_objfile): New declaration.
12286 * objfiles.c (free_objfile): Call breakpoint_free_objfile.
12287 * tui/tui-winsource.c (tui_update_breakpoint_info): Replace bp_location
12288 field source_file references by symtab field references.
12289
12290 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12291
12292 Replace xfullpath calls by gdb_realpath calls.
12293 * cli/cli-cmds.c (find_and_open_script): Remove xfullpath from the
12294 function comment.
12295 * dwarf2read.c (dw2_map_expand_apply): Remove parameter full_path.
12296 Remove it from the iterate_over_some_symtabs call.
12297 (dw2_map_symtabs_matching_filename): Remove parameter full_path.
12298 Remove it from the dw2_map_expand_apply calls, remove a block handling
12299 it.
12300 * psymtab.c (partial_map_expand_apply): Remove parameter full_path.
12301 Remove it from the iterate_over_some_symtabs call.
12302 (partial_map_symtabs_matching_filename): Remove parameter full_path.
12303 Remove it from the partial_map_expand_apply calls, remove a block
12304 handling it. Drop gdb_realpath call and cleanups from the real_path
12305 handling.
12306 * source.c (openp): Drop the comment part about xfullpath. Replace
12307 xfullpath calls by gdb_realpath calls.
12308 (find_and_open_source): Replace xfullpath call by gdb_realpath call.
12309 * symfile.h (struct quick_symbol_functions): Remove parameter full_path
12310 from method map_symtabs_matching_filename and its comment.
12311 * symmisc.c (maintenance_print_msymbols): Replace xfullpath call by
12312 gdb_realpath call.
12313 * symtab.c (iterate_over_some_symtabs): Remove parameter full_path,
12314 remove it also from the function comment, remove a block handling it.
12315 Drop gdb_realpath call and cleanups from the real_path handling.
12316 (iterate_over_symtabs): Drop variable full_path and its use.
12317 * symtab.h (iterate_over_some_symtabs): Remove parameter full_path.
12318 * utils.c (xfullpath): Remove.
12319 * utils.h (xfullpath): Remove.
12320
12321 2013-02-01 Andreas Tobler <andreast@fgznet.ch>
12322
12323 * Makefile.in (ALL_TARGET_OBS): Add ppc64-tdep.o.
12324 (HFILES_NO_SRCDIR): Add ppc64-tdep.h.
12325 (ALLDEPFILES): Add ppc64-tdep.c.
12326 * configure.tgt (powerpc-*-linux* | powerpc64-*-linux*): Add
12327 ppc64-tdep.o to gdb_target_obs.
12328 * ppc64-tdep.h: New file.
12329 * ppc64-tdep.c: New file.
12330 (insn_d, insn_ds, insn_xfx, ppc64_desc_entry_point): Move from
12331 ppc-linux-tdep.c to here.
12332 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN)
12333 (PPC64_STANDARD_LINKAGE2_LEN): Likewise and use ARRAY_SIZE macro.
12334 (ppc64_standard_linkage1_target, ppc64_standard_linkage2_target)
12335 (ppc64_standard_linkage3_target, ppc64_skip_trampoline_code): Move
12336 from ppc-linux-tdep.c to here.
12337 (ppc64_convert_from_func_ptr_addr): Rename from
12338 ppc64_linux_convert_from_func_ptr_addr to
12339 ppc64_convert_from_func_ptr_addr and move from ppc-linux-tdep.c to
12340 here.
12341 * rs6000-tdep.c:
12342 (read_insn): Move from ppc-linux-tdep.c to here.
12343 (insns_match_pattern, insn_d_field, insn_ds_field): Move
12344 from ppc-linux-tdep.c to here and rename them with the ppc_ prefix.
12345 * ppc-linux-tdep.c: Include ppc64-tdep.h.
12346 Removed above functions.
12347 (ppc_linux_init_abi): Adjust.
12348
12349 2013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
12350
12351 * ada-valprint.c (ada_print_floating): Remove unused 'len'.
12352
12353 2013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
12354
12355 * ada-lang.c (assign_aggregate): Remove unused 'is_array_aggregate'.
12356
12357 2013-02-01 Pedro Alves <palves@redhat.com>
12358
12359 * dummy-frame.c (deprecated_pc_in_call_dummy): Delete function.
12360 * frame.h (deprecated_pc_in_call_dummy): Delete declaration.
12361
12362 2013-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
12363
12364 * elfread.c (elf_symfile_read): Limit separate debug info additions to
12365 files with no separate debug info.
12366 * objfiles.c (add_separate_debug_objfile): Add gdb_assert calls.
12367 * symfile.c (read_symbols): Call find_separate_debug_file_in_section
12368 only for files with no separate debug info.
12369
12370 2013-01-31 Tom Tromey <tromey@redhat.com>
12371
12372 * jit.c (jit_program_space_data): Rename from jit_inferior_data;
12373 change type.
12374 (struct jit_program_space_data): Rename from jit_inferior_data.
12375 Update comments.
12376 (get_jit_program_space_data): Rename from get_jit_inferior_data.
12377 Change return type. Attach data to program space.
12378 (jit_program_space_data_cleanup): Rename from
12379 jit_inferior_data_cleanup; change argument type.
12380 (jit_read_descriptor): Change 'inf_data' argument to 'ps_data',
12381 change type.
12382 (jit_register_code): Update.
12383 (jit_update_inferior_cache): Remove.
12384 (jit_breakpoint_deleted): Get jit data from the location's program
12385 space.
12386 (jit_breakpoint_re_set_internal): Rename 'inf_data' argument to
12387 'ps_data', change type.
12388 (jit_inferior_init, jit_breakpoint_re_set_internal)
12389 (jit_event_handler): Update.
12390 (free_objfile_data): Get data from objfile's program space.
12391 (_initialize_jit): Update.
12392
12393 2013-01-31 Tom Tromey <tromey@redhat.com>
12394
12395 PR gdb/13987:
12396 * jit.c (struct jit_inferior_data) <cached_code_address,
12397 jit_breakpoint>: New fields.
12398 (jit_breakpoint_re_set_internal): Fix logging. Only create
12399 breakpoint if cached address has changed.
12400 (jit_update_inferior_cache, jit_breakpoint_deleted): New
12401 functions.
12402 (_initialize_jit): Register breakpoint deleted observer.
12403
12404 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12405
12406 * infrun.c (handle_syscall_event): Remove unused gdbarch.
12407 (save_infcall_suspend_state): Ifdef out unused inf.
12408 (restore_infcall_suspend_state): Ifdef out unused inf.
12409 * jit.c (jit_register_code): Remove unused i, b, inf_data.
12410 (jit_frame_sniffer): Remove unused inf_data.
12411
12412 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12413
12414 * c-exp.y (classify_inner_name): Remove unused type.
12415 * c-lang.c (c_printstr): Remove unused byte_order, i, things_printed,
12416 in_quotes, need_comma, wchar_buf, output, cleanup, iter, finished,
12417 need_escape.
12418 (c_get_string): Remove unused kind.
12419 * c-typeprint.c (c_type_print_args): Remove unused i, len, args, table2.
12420
12421 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12422
12423 * charset.c (intermediate_encoding): Remove unused i.
12424 * completer.c (signal_completer): Remove unused i.
12425 * continuations.c (discard_my_continuations_1): Remove unused
12426 continuation_ptr.
12427 * corelow.c (core_close): Remove unuseD name.
12428 (get_core_siginfo): Remove unused pid.
12429 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Remove unused
12430 i, cps.
12431 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove unused base_offset.
12432 (loclist_describe_location): Remove unused first.
12433 * event-top.c (command_line_handler): Remove unused got_eof.
12434 * exec.c (exec_close_1): Remove unused need_symtab_cleanup.
12435 (resize_section_table): Remove unused old_value.
12436 * gdb_bfd.c (gdb_bfd_map_section): Remove unused header.
12437 * gnu-v3-abi.c (compute_vtable_size): Remove unused addr.
12438 * i386-tdep.c (i386_process_record): Remove unused rex.
12439 * infcmd.c (get_return_value): Remove unused uiout.
12440 * jv-lang.c (type_from_class): Remove unused is_array.
12441 * jv-valprint.c (java_val_print): Remove unused i.
12442 * linux-nat.c (linux_nat_stop_lwp): Remove unused ptid.
12443 * linux-thread-db.c (thread_db_find_new_threads_2): Remove unuseD pid.
12444 * m2-typeprint.c (m2_print_type): Remove unused code.
12445 * macroexp.c (get_character_constant): Remove unused body_start.
12446 (macro_stringify): Remove unused result.
12447 * objc-lang.c (find_methods): Remove unused gdbarch.
12448 * objfiles.c (filter_overlapping_sections): Remove unused abfd1, abfd2.
12449 * regcache.c (regcache_cooked_read): Remove unused gdbarch.
12450 * stack.c (print_frame_args): Remove unused summary.
12451 * thread.c (thread_apply_command): Remove unused p.
12452 * valarith.c (value_x_unop): Remove unused mangle_ptr.
12453 * valops.c (search_struct_method): Remove unused skip.
12454 * valprint.c (generic_val_print): Remove unused byte_order.
12455 * varobj.c (varobj_update): Remove unused changed.
12456 * cli/cli-cmds.c (complete_command): Remove unused next_item.
12457 (alias_command): Remove unused c.
12458 * mi/mi-cmd-catch.c (mi_catch_load_unload): Remove unused c.
12459 * mi/mi-main.c (mi_cmd_data_write_register_values): Remove unused
12460 format.
12461 (mi_cmd_data_write_memory): Remove unused word_format.
12462 (mi_cmd_data_write_memory_bytes): Remove unused r.
12463 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Remove unused
12464 p_start, p_end.
12465 * python/python.c (_initialize_python): Remove unused cmd_name, cmd.
12466 * tui/tui-disasm.c (tui_set_disassem_content): Remove unused
12467 line_width.
12468
12469 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12470
12471 * dwarf2-frame.c (dwarf2_compile_cfa_to_ax): Remove unused num_regs.
12472 * symtab.c (iterate_over_symtabs): Remove unused s.
12473 (find_pc_sect_symtab): Remove unused pspAce.
12474 (find_pc_sect_line): Remove unused alt_symtab.
12475 (find_pcs_for_symtab_line): Remove unused ix, previous_function.
12476 (completion_list_add_name): Remove unused newsize.
12477
12478 2013-01-31 Tom Tromey <tromey@redhat.com>
12479
12480 PR c++/14998:
12481 * dwarf2read.c (read_tag_ptr_to_member_type): Handle
12482 TYPE_CODE_FUNC.
12483
12484 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12485
12486 * target.c (target_read_string): Remove unused origlen.
12487
12488 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12489
12490 * auto-load.c (auto_load_expand_dir_vars): Remove unused dir_vec.
12491 * ax-gdb.c (gen_printf): Remove unused expr, i, bot, fr, flen, fmt.
12492 * ax-general.c (ax_print): Remove unused is_float.
12493 * blockframe.c (block_innermost_frame): Remove unused start, end.
12494 * break-catch-sig.c (catch_signal_command): Remove unused gdbarch.
12495
12496 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12497
12498 * solib-svr4.c (svr4_keep_data_in_core): Remove unused lmo.
12499 (svr4_read_so_list): Remove unused lmo.
12500 * solib-target.c (solib_target_relocate_section_addresses): Remove
12501 unused flags.
12502
12503 2013-01-30 Tom Tromey <tromey@redhat.com>
12504
12505 * hppa-tdep.c (read_unwind_info): Use SECT_OFF_TEXT, not "0".
12506
12507 2013-01-30 Tom Tromey <tromey@redhat.com>
12508
12509 * symfile.c (get_file_crc): Use bfd_calc_gnu_debuglink_crc32.
12510 * utils.c (gnu_debuglink_crc32): Remove.
12511 * utils.h (gnu_debuglink_crc32): Don't declare.
12512
12513 2013-01-30 Tom Tromey <tromey@redhat.com>
12514
12515 * dwarf2read.c (compute_delayed_physnames, read_call_site_scope)
12516 (read_structure_type, read_enumeration_type): Remove cast.
12517
12518 2013-01-30 Tom Tromey <tromey@redhat.com>
12519
12520 * dwarf2read.c (read_namespace_type): Remove cast.
12521 (read_typedef): Likewise.
12522
12523 2013-01-29 Tom Tromey <tromey@redhat.com>
12524
12525 * dwarf2read.c (free_dwo_file): Remove assert.
12526
12527 2013-01-29 Tom Tromey <tromey@redhat.com>
12528
12529 * value.c (deprecated_set_value_modifiable): Remove.
12530 * value.h (deprecated_set_value_modifiable): Remove.
12531
12532 2013-01-28 Doug Evans <dje@google.com>
12533
12534 * dwarf2loc.c (dwarf2_find_location_expression): Don't add base address
12535 to addresses from dwo files.
12536
12537 2013-01-25 Siva Chandra Reddy <sivachandra@google.com>
12538
12539 * valops.c (find_overload_match): Remove unused argument 'lax'.
12540 * value.h: Remove unused argument 'lax' from the declaration of
12541 find_overload_match.
12542 * eval.c (value_subexp_standard): Do not pass a 'lax' argument
12543 to find_overload_match.
12544 * valarith.c (value_user_defined_cpp_op): Do not pass a 'lax'
12545 argument to find_overload_match.
12546
12547 2013-01-25 Tom Tromey <tromey@redhat.com>
12548
12549 * dwarf2read.c (processing_has_namespace_info): Remove.
12550 (struct dwarf2_cu) <processing_has_namespace_info>: New field.
12551 (process_die, read_func_scope, dwarf2_start_symtab)
12552 (new_symbol_full): Update.
12553
12554 2013-01-25 Tom Tromey <tromey@redhat.com>
12555
12556 * cp-namespace.c (cp_set_block_scope): Remove.
12557 * cp-support.h (cp_set_block_scope): Remove.
12558 * dbxread.c: Include block.h.
12559 (cp_set_block_scope): New function.
12560 (process_one_symbol): Update.
12561 * dwarf2read.c (read_func_scope): Use block_set_scope.
12562
12563 2013-01-25 Pedro Alves <palves@redhat.com>
12564
12565 * remote.c (add_current_inferior_and_thread): Tweak comment.
12566
12567 2013-01-25 Tom Tromey <tromey@redhat.com>
12568
12569 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
12570 (cp_add_using_directive): Add 'copy_names' argument.
12571 * cp-support.h (cp_add_using_directive): Update.
12572 (struct using_direct) <import_src, import_dest, alias,
12573 declaration>: Now const.
12574 * dwarf2read.c (read_import_statement): Use obconcat.
12575 Don't copy names passed to cp_add_using_directive.
12576
12577 2013-01-25 Tom Tromey <tromey@redhat.com>
12578
12579 * c-exp.y (qualified_name): Use TYPE_SAFE_NAME.
12580
12581 2013-01-25 Pedro Alves <palves@redhat.com>
12582
12583 * remote.c (stop_reply_extract_thread): New.
12584 (add_current_inferior_and_thread): New parameter 'wait_status'.
12585 Handle it.
12586 (remote_start_remote): Pass wait status to
12587 add_current_inferior_and_thread.
12588 (extended_remote_run): Update comment.
12589 (extended_remote_create_inferior_1): Pass wait status to
12590 add_current_inferior_and_thread.
12591
12592 2013-01-25 Andrew Burgess <aburgess@broadcom.com>
12593 Ulrich Weigand <uweigand@de.ibm.com>
12594
12595 * valarith.c (value_vector_widen): New function for replicating a
12596 scalar into a vector.
12597 (value_binop): Use value_vector_widen to widen scalar to vector
12598 rather than casting, this better matches gcc C behaviour.
12599 * valops.c (value_casst): Update logic for casting between vector
12600 types, and for casting from scalar to vector, try to match gcc C
12601 behaviour.
12602 * value.h (value_vector_widen): Declare.
12603 * opencl-lang.c (opencl_value_cast): New opencl specific casting
12604 function, handle special case for casting scalar to vector.
12605 (opencl_relop): Use opencl_value_cast.
12606 (evaluate_subexp_opencl): Use opencl_value_cast instead of
12607 value_cast, and handle BINOP_ASSIGN, UNOP_CAST, and UNOP_CAST_TYPE
12608 in order to use opencl_value_cast.
12609
12610 2013-01-25 Yao Qi <yao@codesourcery.com>
12611
12612 * event-loop.c: Include "queue.h".
12613 (gdb_event_p): New typedef.
12614 (DECLARE_QUEUE_P): Use.
12615 (DEFINE_QUEUE_P): Use.
12616 (async_queue_event): Remove.
12617 (gdb_event_xfree): New.
12618 (initialize_event_loop): New.
12619 (process_event): Use QUEUE macros.
12620 (event_queue): Remove.
12621 (gdb_wait_for_event): Caller update.
12622 (check_async_event_handlers): Likewise.
12623 (poll_timers): Likewise.
12624 * event-loop.h (initialize_event_loop): Declare.
12625 * event-loop.c (gdb_event_xfree): New.
12626 * top.c (gdb_init): Call initialize_event_loop.
12627
12628 2013-01-25 Yao Qi <yao@codesourcery.com>
12629
12630 * event-loop.c (async_queue_event): Remove one parameter
12631 'position'. Remove code handling 'position' == TAIL.
12632 (gdb_wait_for_event): Caller update.
12633 (check_async_event_handlers): Caller update.
12634 (poll_timers): Caller update.
12635 * event-loop.h (enum queue_position): Remove.
12636
12637 2013-01-25 Maxim Kuvyrkov <maxim@kugelworks.com>
12638
12639 * MAINTAINERS: Update my email.
12640
12641 2013-01-25 Yao Qi <yao@codesourcery.com>
12642
12643 * main.c (print_gdb_help): Remove "--epoch" from the help
12644 message.
12645
12646 2013-01-24 Ulrich Weigand  <uweigand@de.ibm.com>
12647
12648 * symtab.c (skip_prologue_using_sal): Consider a file
12649 change the same as an increased line number
12650
12651 2013-01-24 Tiago Stürmer Daitx  <tdaitx@linux.vnet.ibm.com>
12652
12653 * MAINTAINERS (Write After Approval): Add myself to the list.
12654
12655 2013-01-24 Tom Tromey <tromey@redhat.com>
12656
12657 * ada-lang.h (ada_decode_symbol): Make return type const.
12658 * ada-lang.c (ada_decode_symbol): Likewise.
12659
12660 2013-01-23 Doug Evans <dje@google.com>
12661
12662 * linespec.c (find_linespec_symbols): Make static.
12663
12664 2013-01-23 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
12665
12666 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Set correct
12667 type on float conversion for complex type.
12668
12669 2013-01-23 Siva Chandra Reddy <sivachandra@google.com>
12670
12671 Add a new class gdb.Architecture which exposes GDB's
12672 internal representation of architecture via GDB Python API.
12673 * Makefile.in: Add entries corresponding to the new file
12674 python/py-arch.c.
12675 * NEWS (Python Scripting): Add entries for the new class
12676 gdb.Architecture and the new method gdb.Frame.architecture.
12677 * python/py-arch.c: Implement gdb.Architecture class.
12678 * python/py-frame.c (frapy_arch): Implement the method
12679 gdb.Frame.architecture().
12680 (frame_object_methods): Add 'architecture' to the method table.
12681 * python/python-internal.h: Add declarations of new utility
12682 functions.
12683 * python/python.c (_initialize_python): Initialize
12684 gdb.Architecture class.
12685
12686 2013-01-23 Doug Evans <dje@google.com>
12687
12688 Work around binutils/15021.
12689 * dwarf2read.c (dwarf2_per_cu_data): Split imported_symtabs and
12690 type_unit_group out of union s. All uses updated.
12691 (read_index_from_section): Watch for index version 8.
12692 (follow_die_sig): If using .gdb_index version <= 7, record the TU as
12693 an imported symtab.
12694 (write_psymtabs_to_index): Increment version number to 8.
12695
12696 2013-01-22 Pedro Alves <palves@redhat.com>
12697
12698 * annotate.c (breakpoint_changed): Skip if breakpoint is not
12699 user-visible.
12700
12701 2013-01-22 Pedro Alves <palves@redhat.com>
12702
12703 * annotate.c (annotate_breakpoints_changed): Rename to ...
12704 (annotate_breakpoints_invalid): ... this. Make static.
12705 (breakpoint_changed): Adjust.
12706 (_initialize_annotate): Always install the observers. Install a
12707 "breakpoint_created" observer.
12708 * annotate.h (annotate_breakpoints_changed): Delete declaration.
12709 * breakpoint.c (set_breakpoint_condition)
12710 (breakpoint_set_commands, do_map_commands_command)
12711 (init_raw_breakpoint, clear_command, set_ignore_count)
12712 (enable_breakpoint_disp): No longer call
12713 annotate_breakpoints_changed.
12714
12715 2013-01-22 Pedro Alves <palves@redhat.com>
12716
12717 * annotate.c: Include "inferior.h".
12718 (frames_invalid_emitted)
12719 (breakpoints_invalid_emitted): New globals.
12720 (async_background_execution_p): New function.
12721 (annotate_breakpoints_changed, annotate_frames_invalid): Skip
12722 emitting the annotation if it has already been emitted.
12723 (annotate_display_prompt): New function.
12724 * annotate.h (annotate_display_prompt): New declaration.
12725 * event-top.c: Include annotate.h.
12726 (display_gdb_prompt): Call annotate_display_prompt.
12727
12728 2013-01-22 Pedro Alves <palves@redhat.com>
12729
12730 * annotate.c (ignore_count_changed): Delete.
12731 (annotate_breakpoints_changed): Don't clear ignore_count_changed.
12732 (annotate_ignore_count_change): Delete.
12733 (annotate_stopped): Don't emit a delayed breakpoints-changed
12734 annotation.
12735 * annotate.h (annotate_ignore_count_change): Delete.
12736 * breakpoint.c (bpstat_check_breakpoint_conditions): Don't call
12737 annotate_ignore_count_change.
12738
12739 2013-01-22 Tom Tromey <tromey@redhat.com>
12740
12741 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>: Only
12742 require_rvalue for a register location.
12743
12744 2013-01-21 Marc Khouzam <marc.khouzam@ericsson.com>
12745
12746 * breakpoint.c (print_one_breakpoint_location): Add MI
12747 field 'thread-groups' when printing a breakpoint.
12748 (output_thread_groups): New function.
12749
12750 2013-01-21 Siva Chandra Reddy <sivachandra@google.com>
12751
12752 * python/lib/gdb/commands/explore.py
12753 (CompoundExplorer.explore_expr): Correct the name of a method
12754 being invoked.
12755 (ExploreTypeCommand.invoke): Add a missing 'return'.
12756
12757 2013-01-21 Tom Tromey <tromey@redhat.com>
12758
12759 * gdb_obstack.h (obconcat): Move declaration here, from...
12760 * symfile.h (obconcat): ... here.
12761 * gdb_obstack.c: New file.
12762 (obconcat): Move from...
12763 * symfile.c (obconcat): ... here.
12764 * Makefile.in (SFILES): Add gdb_obstack.c.
12765 (COMMON_OBS): Add gdb_obstack.o.
12766
12767 2013-01-21 Tom Tromey <tromey@redhat.com>
12768
12769 * symfile.h (obsavestring): Don't declare.
12770 * symfile.c (obsavestring): Remove.
12771 * ada-exp.y: Use obstack_copy0, not obsavestring.
12772 * ada-lang.c: Use obstack_copy0, not obsavestring.
12773 * coffread.c: Use obstack_copy0, not obsavestring.
12774 * cp-namespace.c: Use obstack_copy0, not obsavestring.
12775 * dbxread.c: Use obstack_copy0, not obsavestring.
12776 * dwarf2read.c: Use obstack_copy0, not obsavestring.
12777 * jit.c: Use obstack_copy0, not obsavestring.
12778 * mdebugread.c: Use obstack_copy0, not obsavestring.
12779 * psymtab.c: Use obstack_copy0, not obsavestring.
12780 * stabsread.c: Use obstack_copy0, not obsavestring.
12781 * xcoffread.c: Use obstack_copy0, not obsavestring.
12782
12783 2013-01-21 Tom Tromey <tromey@redhat.com>
12784
12785 * dwarf2read.c (fixup_go_packaging): Save package name
12786 on objfile obstack.
12787 * gdbtypes.c (init_type): Don't copy name.
12788
12789 2013-01-21 Tom Tromey <tromey@redhat.com>
12790
12791 * dwarf2read.c (struct partial_die_info) <name, scope>: Now
12792 const.
12793 (struct attribute) <u.str>: Now const.
12794 (struct fnfieldlist) <name>: Now const.
12795 (dw2_get_file_names_reader, init_cutu_and_read_dies): Update.
12796 (partial_die_parent_scope): Make return type const.
12797 (partial_die_full_name, add_partial_symbol): Update.
12798 (dwarf2_compute_name, dwarf2_full_name, dwarf2_physname): Make
12799 'name' const.
12800 (find_file_and_directory): Make 'name' and 'comp_dir' const.
12801 (read_file_scope, read_func_scope, dwarf2_add_field)
12802 (dwarf2_add_member_fn, read_structure_type)
12803 (process_enumeration_scope, read_array_type, read_module_type)
12804 (read_base_type, read_subrange_type): Update.
12805 (dwarf2_start_symtab): Make 'name' and 'comp_dir' const.
12806 (new_symbol_full, guess_full_die_structure_name): Update.
12807 (dwarf2_canonicalize_name): Return const type. Make 'name' const.
12808 (dwarf2_name): Return const type.
12809 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make 'comp_dir'
12810 const.
12811
12812 2013-01-21 Tom Tromey <tromey@redhat.com>
12813
12814 * gdbtypes.c (init_type): Make 'name' const.
12815 * gdbtypes.h (init_type): Update.
12816
12817 2013-01-21 Tom Tromey <tromey@redhat.com>
12818
12819 * buildsym.c (patch_subfile_names): Use set_last_source_file.
12820 (start_symtab): Make 'name' and 'dirname' const. Use
12821 set_last_source_file.
12822 (restart_symtab, reset_symtab_globals): Use set_last_source_file.
12823 (last_source_file): Define. Now static.
12824 (set_last_source_file, get_last_source_file): New functions.
12825 * buildsym.h (last_source_file): Don't declare.
12826 (start_symtab): Update.
12827 (set_last_source_file, get_last_source_file): Declare.
12828 * coffread.c (complete_symtab): Use set_last_source_file.
12829 (coff_end_symtab): Likewise.
12830 (coff_symtab_read): Use set_last_source_file, get_last_source_file.
12831 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Use
12832 set_last_source_file.
12833 (process_one_symbol): Use get_last_source_file.
12834 * mdebugread.c (parse_partial_symbols): Use set_last_source_file.
12835 (psymtab_to_symtab_1): Use get_last_source_file.
12836 * xcoffread.c (process_linenos): Use get_last_source_file.
12837 (complete_symtab): Use set_last_source_file.
12838 (read_xcoff_symtab): Use set_last_source_file, get_last_source_file.
12839 (scan_xcoff_symtab): Use set_last_source_file.
12840
12841 2013-01-21 Tom Tromey <tromey@redhat.com>
12842
12843 * symtab.c (struct demangled_name_entry) <mangled>: Now const.
12844 (symbol_set_names): Remove casts. Handle field const-ness.
12845
12846 2013-01-21 Tom Tromey <tromey@redhat.com>
12847
12848 * dwarf2read.c (new_symbol_full): Remove cast.
12849 * symtab.c (symbol_set_demangled_name): Make 'name' const.
12850 * symtab.h (symbol_set_demangled_name): Update.
12851
12852 2013-01-21 Tom Tromey <tromey@redhat.com>
12853
12854 * main.c (captured_main): Call bfd_init.
12855
12856 2013-01-21 Tom Tromey <tromey@redhat.com>
12857
12858 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Don't set default ABI.
12859 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Set default ABI.
12860 * minsyms.c (install_minimal_symbols): Don't check for _Z symbols.
12861 * NEWS: Update.
12862
12863 2013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
12864
12865 * symmisc.c (maintenance_print_msymbols): Check also ST_DEV.
12866
12867 2013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
12868
12869 Fix gdb.fortran/common-block.exp crash in PIE mode.
12870 * dwarf2read.c (new_symbol_full) <DW_TAG_common_block>: Use
12871 LOC_COMMON_BLOCK.
12872 * f-valprint.c (info_common_command_for_block): Expect
12873 LOC_COMMON_BLOCK in gdb_assert.
12874 * symtab.h (struct general_symbol_info): Update comment for the
12875 common_block member.
12876 (domain_enum): Extend comment for the COMMON_BLOCK_DOMAIN member.
12877 (enum address_class): New member LOC_COMMON_BLOCK.
12878
12879 2013-01-18 David Blaikie <dblaikie@gmail.com>
12880
12881 * MAINTAINERS (Write After Approval): Add "David Blaikie".
12882
12883 2013-01-18 Tom Tromey <tromey@redhat.com>
12884
12885 PR c++/14999:
12886 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>:
12887 Call require_rvalue.
12888
12889 2013-01-18 Yao Qi <yao@codesourcery.com>
12890
12891 * dbxread.c (dbx_psymtab_to_symtab): Delete the declaration.
12892 (dbx_read_symtab): New declaration.
12893 (dbx_psymtab_to_symtab): Delete.
12894 (dbx_read_symtab): Rename from dbx_psymtab_to_symtab.
12895 Rename parameter PST to SELF. Exchanged two parameters.
12896 (start_psymtab): Caller update.
12897 * dwarf2read.c (dwarf2_psymtab_to_symtab): Delete the declaration.
12898 (dwarf2_read_symtab): New declaration.
12899 (dwarf2_psymtab_to_symtab): Delete.
12900 (dwarf2_read_symtab): Rename from dwarf2_psymtab_to_symtab.
12901 Rename parameter PST to SELF. Exchanged two parameters.
12902 (create_partial_symtab): Caller update.
12903 * mdebugread.c (mdebug_psymtab_to_symtab): Delete.
12904 (mdebug_read_symtab): Rename from mdebug_psymtab_to_symtab.
12905 Rename parameter PST to SELF. Exchanged two parameters.
12906 (parse_partial_symbols, new_psymtab): Caller update.
12907 * psympriv.h (struct partial_symtab) <read_symtab>: Exchange
12908 two parameters.
12909 * psymtab.c (psymtab_to_symtab): Caller update.
12910 * xcoffread.c (xcoff_psymtab_to_symtab): Delete.
12911 (xcoff_read_symtab): Rename from xcoff_psymtab_to_symtab.
12912 Rename parameter PST to SELF. Exchanged two parameters.
12913 (xcoff_start_psymtab): Caller update.
12914
12915 2013-01-18 Yao Qi <yao@codesourcery.com>
12916
12917 * infrun.c (proceed): Rename local variable 'oneproc' to
12918 'force_step'.
12919
12920 2013-01-17 Doug Evans <dje@google.com>
12921
12922 * dwarf2read.c (dw2_build_type_unit_groups_reader): Delete.
12923 (dw2_build_type_unit_groups): Delete. All uses updated.
12924
12925 * symtab.h (struct symbol_search): Add comment.
12926
12927 2013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
12928
12929 * symtab.c (compare_filenames_for_search): New comment for
12930 HAS_DRIVE_SPEC.
12931
12932 2013-01-17 Tom Tromey <tromey@redhat.com>
12933
12934 * cp-abi.c (cp_abi_completer): Fix typo in assignment.
12935
12936 2013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
12937
12938 * symtab.c (iterate_over_some_symtabs): New variable cleanups,
12939 initialize it by existing make_cleanup. Call new do_cleanups.
12940
12941 2013-01-17 Tom Tromey <tromey@redhat.com>
12942
12943 * cp-abi.c (cp_abi_completer): New function.
12944 (_initialize_cp_abi): Set completer for "set cp-abi".
12945
12946 2013-01-17 Tom Tromey <tromey@redhat.com>
12947
12948 * mem-break.c: Remove obsolete comment.
12949 * bfin-tdep.c (bfin_breakpoint_from_pc): Fix comment.
12950
12951 2012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
12952
12953 * jit.c (jit_reader_load_command): Interpret the jit reader name
12954 as an absolute path if it begins with a forward slash.
12955
12956 2012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
12957
12958 PR gdb/14550
12959
12960 * jit.c (finalize_symtab): Ensure that only the global block has a
12961 NULL superblock.
12962
12963 2013-01-17 Pedro Alves <palves@redhat.com>
12964
12965 * acinclude.m4: Include ../config/plugins.m4,
12966 ../config/largefile.m4 and ../config/lead-dot.m4. Add comments.
12967 * Makefile.in (aclocal_m4_deps): Update.
12968 * aclocal.m4: Renegerate.
12969
12970 2013-01-16 Doug Evans <dje@google.com>
12971
12972 * contrib/cc-with-tweaks.sh: Add references to Fission docs.
12973
12974 2013-01-16 Pedro Alves <palves@redhat.com>
12975 Tom Tromey <tromey@redhat.com>
12976
12977 PR cli/7221:
12978 * NEWS: Add "catch signal".
12979 * breakpoint.c (base_breakpoint_ops): No longer static.
12980 (bpstat_explains_signal): New function.
12981 (init_catchpoint): No longer static.
12982 (base_breakpoint_explains_signal): New function.
12983 (base_breakpoint_ops): Initialize new field.
12984 * breakpoint.h (enum bpstat_signal_value): New.
12985 (struct breakpoint_ops) <explains_signal>: New field.
12986 (bpstat_explains_signal): Remove macro, declare as function.
12987 (base_breakpoint_ops, init_catchpoint): Declare.
12988 * break-catch-sig.c: New file.
12989 * inferior.h (signal_catch_update): Declare.
12990 * infrun.c (signal_catch): New global.
12991 (handle_syscall_event): Update for change to
12992 bpstat_explains_signal.
12993 (handle_inferior_event): Likewise. Always handle random signals
12994 via bpstats.
12995 (signal_cache_update): Check signal_catch.
12996 (signal_catch_update): New function.
12997 (_initialize_infrun): Initialize signal_catch.
12998 * Makefile.in (SFILES): Add break-catch-sig.c.
12999 (COMMON_OBS): Add break-catch-sig.o.
13000
13001 2013-01-16 Tom Tromey <tromey@redhat.com>
13002
13003 * breakpoint.c (print_one_catch_fork, print_one_catch_vfork)
13004 (print_one_catch_solib, print_one_catch_syscall)
13005 (print_one_catch_exec, print_one_exception_catchpoint): Emit
13006 "catch-type".
13007
13008 2013-01-16 Yao Qi <yao@codesourcery.com>
13009
13010 * printcmd.c (current_display_number): Make it static.
13011
13012 2013-01-16 Yao Qi <yao@codesourcery.com>
13013
13014 * infcmd.c (step_once): Don't check '!single_inst' as it was
13015 checked before.
13016
13017 2013-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
13018
13019 * dwarf2read.c (psymtab_include_file_name): Extend the function comment.
13020
13021 2013-01-14 Tom Tromey <tromey@redhat.com>
13022
13023 * cli/cli-decode.c (add_setshow_string_noescape_cmd): Return the
13024 set command.
13025 * command.h (add_setshow_string_noescape_cmd): Update.
13026 * corefile.c (set_gnutarget_command): Remove trailing whitespace.
13027 (complete_set_gnutarget): New function.
13028 (_initialize_core): Set the "set gnutarget" completer.
13029
13030 2013-01-14 Tom Tromey <tromey@redhat.com>
13031
13032 PR symtab/14442:
13033 * c-typeprint.c (cp_type_print_method_args): Handle 'restrict'.
13034 (c_type_print_modifier): Likewise.
13035 * dwarf2read.c (read_tag_restrict_type): New function.
13036 (read_type_die_1): Handle DW_TAG_restrict_type.
13037 * gdbtypes.c (make_restrict_type): New function.
13038 (recursive_dump_type): Handle TYPE_RESTRICT.
13039 * gdbtypes.h (enum type_flag_values): Renumber.
13040 (enum type_instance_flag_value): Add
13041 TYPE_INSTANCE_FLAG_RESTRICT.
13042 (TYPE_RESTRICT): New macro.
13043 (make_restrict_type): Declare.
13044
13045 2013-01-14 Tom Tromey <tromey@redhat.com>
13046
13047 PR symtab/14931:
13048 * psymtab.c (struct psymtab_state): New.
13049 (discard_psymtabs_upto, make_cleanup_discard_psymtabs): New
13050 functions.
13051 * psympriv.h (make_cleanup_discard_psymtabs): Declare.
13052 * dwarf2read.c (dwarf2_build_psymtabs): Catch exceptions.
13053
13054 2013-01-14 Richard Sharman <richard_sharman@mitel.com>
13055 Pedro Alves <palves@redhat.com>
13056
13057 PR remote/14786
13058
13059 * remote.c (remote_threads_info): Make a copy of the reply from
13060 qfThreadInfo and use that instead of rs->buf.
13061
13062 2013-01-14 Yao Qi <yao@codesourcery.com>
13063
13064 * dbxread.c (dbx_psymtab_to_symtab_1): Don't check PST is NULL.
13065 (dbx_psymtab_to_symtab): Likewise.
13066 * dwarf2read.c (dwarf2_psymtab_to_symtab): Likewise.
13067 * mdebugread.c (mdebug_psymtab_to_symtab): Likewise.
13068 * xcoffread.c (xcoff_psymtab_to_symtab_1): Likewise.
13069
13070 2013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
13071
13072 * parse.c (parse_exp_in_context): New variable inner_chain. Call
13073 make_cleanup_restore_current_language. Call set_language. Move
13074 OLD_CHAIN and INNER_CHAIN cleanups.
13075 * utils.c (do_restore_current_language)
13076 (make_cleanup_restore_current_language): New functions.
13077 * utils.h (make_cleanup_restore_current_language): New declaration.
13078
13079 2013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
13080
13081 * source.c (symtab_to_fullname): Apply rewrite_source_path also for
13082 non-existing files.
13083
13084 * source.c (symtab_to_fullname): Do not prepend DIRNAME for
13085 non-existing files if FILENAME is already absolute.
13086
13087 2013-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
13088
13089 * macrocmd.c (macro_inform_no_debuginfo): Use puts_filtered instead of
13090 fputs_filtered. Append trailing newline.
13091
13092 2013-01-11 Yao Qi <yao@codesourcery.com>
13093 Stan Shebs <stan@codesourcery.com>
13094
13095 * psymtab.c (init_psymbol_list): Clarify the comment.
13096
13097 2013-01-11 Yao Qi <yao@codesourcery.com>
13098
13099 * breakpoint.c (print_one_breakpoint_location): Remove dead code.
13100 (update_dprintf_command_list): Assert that 'printf_line' is
13101 non-null. Remove condition check.
13102
13103 2013-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
13104
13105 Code cleanup.
13106 * psymtab.c (psymtab_to_fullname, psymtab_to_fullname): Make the return
13107 type const char *.
13108 * tui/tui-source.c (tui_source_is_displayed): Make the parameter fname
13109 const char *.
13110 * tui/tui-source.h (tui_source_is_displayed): Likewise.
13111
13112 2013-01-09 Anthony Green <green@moxielogic.com>
13113
13114 * cp-abi.c (cplus_print_vtable): Don't return value from void
13115 function.
13116 * ada-lang.c (re_set_catch_assert): Ditto.
13117
13118 2013-01-09 Doug Evans <dje@google.com>
13119
13120 * symfile.h (quick_symbol_functions): Delete member
13121 pre_expand_symtabs_matching. All uses removed.
13122 * dwarf2read.c (dw2_lookup_symbol): Implement.
13123 (dw2_do_expand_symtabs_matching): Delete.
13124 (dw2_pre_expand_symtabs_matching): Delete.
13125 (struct dw2_symtab_iterator): New type.
13126 (dw2_symtab_iter_init, dw2_symtab_iter_next): New functions.
13127 (dw2_expand_symtabs_for_function): Rewrite.
13128 (dwarf2_gdb_index_functions): Update.
13129 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Delete.
13130 (psym_functions): Update.
13131
13132 2013-01-09 Tom Tromey <tromey@redhat.com>
13133
13134 * config/pa/hpux.mh (NATDEPFILES): Remove somread.o.
13135 * configure: Rebuild.
13136 * configure.ac: Add somread.o to the build if BFD has SOM
13137 support.
13138 * somread.c: Include som/aout.h, not syms.h.
13139 (som_symtab_read): Use som_external_symbol_dictionary_record.
13140 Unpack records manually.
13141 (_initialize_somread): Declare.
13142
13143 2012-01-08 Mike Frysinger <vapier@gentoo.org>
13144
13145 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx) [__x86_64__]:
13146 Cast return_address to 64bits.
13147
13148 2013-01-08 Hui Zhu <hui_zhu@mentor.com>
13149
13150 * printcmd.c: Remove define of function output_command.
13151 * tracepoint.c: Remove extern of function output_command.
13152 * valprint.h: (output_command): New extern.
13153
13154 2013-01-07 Tom Tromey <tromey@redhat.com>
13155
13156 * objc-lang.c (objc_emit_char, objc_printchar, objc_printstr):
13157 Remove.
13158 (objc_language_defn): Use c_printchar, c_printstr,
13159 c_emit_char.
13160
13161 2013-01-07 Tom Tromey <tromey@redhat.com>
13162
13163 PR cli/7719:
13164 * NEWS: Update.
13165 * ada-valprint.c (printstr, print_field_values): Remove
13166 "inspect_it" code.
13167 * cp-valprint.c (cp_print_value_fields): Remove "inspect_it"
13168 code.
13169 * jv-valprint.c (java_print_value_fields): Remove "inspect_it"
13170 code.
13171 * m2-lang.c (m2_printstr): Remove "inspect_it" code.
13172 * main.c (captured_main): Remove "epoch" argument.
13173 * objc-lang.c (objc_printstr): Remove "inspect_it" code.
13174 * p-lang.c (pascal_printstr): Remove "inspect_it" code.
13175 * p-valprint.c (pascal_object_print_value_fields): Remove
13176 "inspect_it" code.
13177 * printcmd.c (print_command_1): Remove 'inspect' argument.
13178 (print_command, call_command): Update.
13179 (inspect_command): Remove.
13180 (_initialize_printcmd): Make "inspect" an alias for "print".
13181 * top.c (epoch_interface): Remove.
13182 * top.h (epoch_interface): Remove.
13183 * valprint.c (user_print_options): Update.
13184 (print_converted_chars_to_obstack): Remove "inspect_it" code.
13185 * valprint.h (struct value_print_options) <inspect_it>: Remove
13186 field.
13187
13188 2013-01-04 Tom Tromey <tromey@redhat.com>
13189
13190 * valprint.h (read_string): Add 'extern'.
13191
13192 2013-01-07 Joel Brobecker <brobecker@adacore.com>
13193
13194 * darwin-nat.c: Fix typo in TASK_DYLD_INFO_COUNT macro test
13195 used to decide whether to define darwin_read_dyld_info or not.
13196
13197 2013-01-03 Pierre Muller <muller@sourceware.org>
13198
13199 * main.c (relocate_gdb_directory): Avoid calling stat function
13200 if DIR is empty.
13201
13202 2013-01-03 Yao Qi <yao@codesourcery.com>
13203
13204 * psymtab.c (fixup_psymbol_section): Update declaration.
13205 (fixup_psymbol_section): Remove code returning value.
13206
13207 2013-01-03 Yao Qi <yao@codesourcery.com>
13208
13209 * symtab.h: Remove some out of date comments.
13210 (enum exception_event_kind): Move it ...
13211 * breakpoint.c: ... here.
13212
13213 2013-01-02 Iain Sandoe <developer@sandoe-acoustics.co.uk>
13214
13215 PR gdb/14405
13216 * darwin-nat.c (darwin_read_dyld_info): Only build if
13217 TASK_DYLD_INFO_COUNT is defined.
13218 (darwin_xfer_partial): Call darwin_read_dyld_info only if
13219 TASK_DYLD_INFO_COUNT is defined.
13220
13221 2013-01-02 Tom Tromey <tromey@redhat.com>
13222
13223 * symfile.h (struct ecoff_debug_hack): Remove.
13224 * objfiles.c: Don't include mdebugread.h.
13225
13226 2013-01-02 Tom Tromey <tromey@redhat.com>
13227
13228 * config/i386/darwin.mh (NATDEPFILES): Remove machoread.o.
13229 * configure.ac: Check for Mach-O support in BFD. Update
13230 CONFIG_OBS.
13231 * configure: Rebuild.
13232
13233 2013-01-02 Tom Tromey <tromey@redhat.com>
13234
13235 * acinclude.m4 (GDB_AC_CHECK_BFD): New macro.
13236 * configure.ac: Use GDB_AC_CHECK_BFD.
13237 * configure: Rebuild.
13238
13239 2013-01-01 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
13240
13241 * MAINTAINERS: Update my email.
13242
13243 2013-01-01 Joel Brobecker <brobecker@adacore.com>
13244
13245 * cli/cli-script.h (make_cleanup_free_command_lines): Make extern.
13246
13247 2013-01-01 Joel Brobecker <brobecker@adacore.com>
13248
13249 * rs6000-nat.c (bss_data_overlap): New function.
13250 (vmap_symtab): Use it to adjust the .bss section's offset.
13251
13252 2013-01-01 Joel Brobecker <brobecker@adacore.com>
13253
13254 Update year range in copyright notice of all files.
13255
13256 2013-01-01, 13 Joel Brobecker <brobecker@adacore.com>
13257
13258 * top.c (print_gdb_version): Update copyright year.
13259
13260 For older changes see ChangeLog-2012.
13261 \f
13262 Local Variables:
13263 mode: change-log
13264 left-margin: 8
13265 fill-column: 74
13266 version-control: never
13267 coding: utf-8
13268 End:
This page took 0.309865 seconds and 5 git commands to generate.