2013-12-12 Siva Chandra Reddy <sivachandra@google.com>
[binutils-gdb.git] / gdb / ChangeLog
1 2013-12-12 Siva Chandra Reddy <sivachandra@google.com>
2
3 PR python/16113
4 * NEWS (Python Scripting): Add entry for the new feature and the
5 new attribute of gdb.Field objects.
6 * python/py-type.c (gdbpy_is_field): New function
7 (convert_field): Add 'parent_type' attribute to gdb.Field
8 objects.
9 * python/py-value.c (valpy_getitem): Allow subscript value to be
10 a gdb.Field object.
11 (value_has_field): New function
12 (get_field_flag): New function
13 * python/python-internal.h (gdbpy_is_field): Add declaration.
14
15 2013-12-12 Pedro Alves <palves@redhat.com>
16
17 * breakpoint.c (insert_bp_location): Make 'hw_bp_err_string' local
18 const, and remove casts.
19
20 2013-12-12 Pedro Alves <palves@redhat.com>
21
22 * cli/cli-cmds.c (source_script_from_stream) Use have_python
23 instead of catching UNSUPPORTED_ERROR.
24 * exceptions.h (UNSUPPORTED_ERROR): Delete.
25 * python/python.c (source_python_script) [!HAVE_PYTHON]: Internal
26 error if called.
27 * python/python.h (have_python): New static inline function.
28
29 2013-12-11 Doug Evans <dje@google.com>
30
31 * dwarf2read.c (lookup_dwo_cutu): Include name of dwp file in
32 "can't find DWO" warning.
33
34 2013-12-11 Sergio Durigan Junior <sergiodj@redhat.com>
35
36 * break-catch-throw.c (fetch_probe_arguments): Pass selected frame
37 to get_probe_argument_count and evaluate_probe_argument.
38 * probe.c (get_probe_argument_count): Adjust declaration to accept
39 frame. Pass frame to probe_ops's get_probe_argument_count.
40 (evaluate_probe_argument): Likewise, for evaluate_probe_argument.
41 (probe_safe_evaluate_at_pc): Pass frame to
42 get_probe_argument_count and evaluate_probe_argument.
43 * probe.h (struct probe_ops) <get_probe_argument_count,
44 evaluate_probe_argument>: Adjust declarations to accept frame.
45 (get_probe_argument_count, evaluate_probe_argument): Likewise.
46 * solib-svr4.c (solib_event_probe_action): Get current frame.
47 Pass it to get_probe_argument_count.
48 (svr4_handle_solib_event): Get current frame. Pass it to
49 get_probe_argument_count and evaluate_probe_argument.
50 * stap-probe.c (stap_parse_probe_arguments): Adjust declaration to
51 accept gdbarch. Do not obtain it from the probe's objfile.
52 (stap_get_probe_argument_count): Adjust declaration to accept
53 frame. Obtain gdbarch from the frame. Call generic
54 can_evaluate_probe_arguments. Pass gdbarch to
55 stap_parse_probe_arguments.
56 (stap_get_arg): Adjust declaration to accept gdbarch. Pass it to
57 stap_parse_probe_arguments.
58 (stap_evaluate_probe_argument): Adjust declaration to accept
59 frame. Obtain gdbarch from the frame. Pass gdbarch to
60 stap_get_arg.
61 (stap_compile_to_ax): Pass agent_expr's gdbarch to stap_get_arg.
62 (compute_probe_arg): Obtain gdbarch from frame. Pass frame to
63 get_probe_argument_count and evaluate_probe_argument.
64
65 2013-12-10 Doug Evans <dje@google.com>
66
67 PR 16286
68 * c-lang.c (c_get_string): Ignore the declared size of the object
69 if a specific length is requested.
70
71 2013-12-10 Doug Evans <dje@google.com>
72
73 * interps.h (interp_exec_p): Delete.
74 * interps.c (interp_exec_p): Delete.
75 (interp_exec): Update. Assert interp->procs->exec_proc != NULL.
76 * mi/mi-interp.c (mi_cmd_interpreter_exec): Update.
77
78 2013-12-10 Yao Qi <yao@codesourcery.com>
79
80 * amd64-tdep.c (amd64_analyze_stack_align): Call
81 target_read_code instead of target_read_memory.
82 (amd64_analyze_prologue): Call read_code_unsigned_integer
83 instead of read_memory_unsigned_integer. Call read_code
84 instead of read_memory.
85 (amd64_skip_xmm_prologue): Likewise.
86
87 2013-12-10 Yao Qi <yao@codesourcery.com>
88
89 * corefile.c (read_code): New function.
90 (read_code_integer): New function.
91 (read_code_unsigned_integer): New function.
92 * gdbcore.h (read_code): Declare.
93 (read_code_integer): Declare.
94 (read_code_unsigned_integer): Declare.
95 * i386-tdep.c (i386_follow_jump): Call target_read_code instead
96 of target_read_memory. Call read_code_unsigned_integer instead
97 of read_memory_unsigned_integer.
98 (i386_analyze_struct_return): Likewise.
99 (i386_skip_probe): Likewise.
100 (i386_analyze_stack_align): Likewise.
101 (i386_match_pattern): Likewise.
102 (i386_skip_noop): Likewise.
103 (i386_analyze_frame_setup): Likewise.
104 (i386_analyze_register_saves): Likewise.
105 (i386_skip_prologue): Likewise.
106 (i386_skip_main_prologue): Likewise.
107 (i386_frame_cache_1): Likewise.
108
109 2013-12-10 Yao Qi <yao@codesourcery.com>
110
111 * infrun.c: Include "target-dcache.h".
112 (prepare_for_detach): Call target_dcache_invalidate.
113 (wait_for_inferior): Likewise.
114 (fetch_inferior_event): Likewise.
115 (infrun_thread_stop_requested_callback): Likewise. Set
116 overlay_cache_invalid to 1.
117
118 2013-12-10 Joel Brobecker <brobecker@adacore.com>
119
120 * symtab.c (symbol_find_demangled_name): Add handling of
121 Ada symbols.
122
123 2013-12-10 Joel Brobecker <brobecker@adacore.com>
124
125 * mi/mi-main.c (mi_cmd_list_features): add "exec-run-start-option".
126 * NEWS: Expand the entry documenting the new -exec-run --start
127 option to mention the corresponding new entry in the output of
128 "-list-features".
129
130 2013-12-10 Joel Brobecker <brobecker@adacore.com>
131
132 * windows-nat.c (handle_load_dll): Add comments.
133 (windows_ensure_ntdll_loaded): New function.
134 (do_initial_windows_stuff): Use windows_ensure_ntdll_loaded.
135 Add FIXME comment.
136
137 2013-12-08 Joel Brobecker <brobecker@adacore.com>
138
139 GDB 7.6.2 released.
140
141 2013-12-08 Yao Qi <yao@codesourcery.com>
142
143 * stack.c (frame_info): Initialize variable caller_pc.
144
145 2013-12-06 Pedro Alves <palves@redhat.com>
146
147 * frame.c (enum cached_copy_status): New enum.
148 (struct frame_info) <prev_pc.p>: Change type to enum
149 cached_copy_status.
150 (fprint_frame): Handle not saved and unavailable prev_pc values.
151 (frame_unwind_pc_if_available): Delete and merge contents into ...
152 (frame_unwind_pc): ... here. Handle OPTIMIZED_OUT_ERROR. Adjust
153 to use enum cached_copy_status.
154 (frame_unwind_caller_pc_if_available): Delete.
155 (create_new_frame): Adjust.
156 * frame.h (frame_unwind_caller_pc_if_available): Delete
157 declaration.
158 * stack.c (frame_info): Use frame_unwind_caller_pc instead of
159 frame_unwind_caller_pc_if_available, and handle
160 NOT_AVAILABLE_ERROR and OPTIMIZED_OUT_ERROR errors.
161 * valprint.c (val_print_optimized_out): Use val_print_not_saved.
162 (val_print_not_saved): New function.
163 * valprint.h (val_print_not_saved): Declare.
164
165 2013-12-06 Andrew Burgess <aburgess@broadcom.com>
166 Pedro Alves <palves@redhat.com>
167
168 * exceptions.h (errors): Add OPTIMIZED_OUT_ERROR.
169 * dwarf2loc.c (write_pieced_value): Throw OPTIMIZED_OUT_ERROR.
170 * frame.c (frame_unwind_register): Throw OPTIMIZED_OUT_ERROR.
171 * spu-tdep.c (spu_software_single_step): Throw
172 OPTIMIZED_OUT_ERROR.
173 * valops.c (value_assign): Throw OPTIMIZED_OUT_ERROR.
174
175 2013-12-06 Tom Tromey <tromey@redhat.com>
176
177 * objfiles.c (free_objfile): Update comment.
178
179 2013-12-06 Tom Tromey <tromey@redhat.com>
180
181 * objfiles.h (objfile_to_front): Remove.
182 * objfiles.c (objfile_to_front): Remove.
183
184 2013-12-06 Tom Tromey <tromey@redhat.com>
185
186 * minsyms.c (get_symbol_leading_char): Remove unnecessary
187 declaration.
188
189 2013-12-06 Tom Tromey <tromey@redhat.com>
190
191 * psympriv.h (struct partial_symtab) <user>: Move earlier.
192
193 2013-12-06 Tom Tromey <tromey@redhat.com>
194
195 * cli/cli-cmds.c (edit_command): Use paddress, not hex_string.
196 (list_command): Likewise.
197
198 2013-12-06 Tom Tromey <tromey@redhat.com>
199
200 * psymtab.c (allocate_psymtab): Put the filename in the filename
201 bcache.
202
203 2013-12-06 Tom Tromey <tromey@redhat.com>
204
205 * buildsym.c (end_symtab_from_static_block): Use obstack_copy0.
206 * symtab.h (struct symtab) <dirname>: Now const.
207
208 2013-12-06 Tom Tromey <tromey@redhat.com>
209
210 * symfile.c (allocate_symtab): Remove cast.
211 * symtab.h (struct symtab) <filename>: Now const.
212
213 2013-12-06 Tom Tromey <tromey@redhat.com>
214
215 * break-catch-throw.c (fetch_probe_arguments): Use
216 get_probe_argument_count and evaluate_probe_argument.
217 * elfread.c (elf_get_probe_argument_count)
218 (elf_can_evaluate_probe_arguments, elf_evaluate_probe_argument)
219 (elf_compile_to_ax): Remove.
220 (elf_probe_fns): Update.
221 * probe.c (get_probe_argument_count, can_evaluate_probe_arguments)
222 (evaluate_probe_argument): Call method on probe, not via sym
223 functions.
224 * stap-probe.c (compute_probe_arg): Use get_probe_argument_count,
225 evaluate_probe_argument.
226 (compile_probe_arg): Use get_probe_argument_count. Call method on
227 probe, not via sym functions.
228 * symfile-debug.c (debug_sym_get_probe_argument_count)
229 (debug_can_evaluate_probe_arguments)
230 (debug_sym_evaluate_probe_argument, debug_sym_compile_to_ax):
231 Remove.
232 (debug_sym_probe_fns): Remove.
233 * symfile.h (struct sym_probe_fns) <sym_get_probe_argument_count,
234 can_evaluate_probe_arguments, sym_evaluate_probe_argument,
235 sym_compile_to_ax>: Remove fields.
236
237 2013-12-06 Pierre Muller <muller@sourceware.org>
238
239 Fix completion for pascal language.
240 * p-exp.y (exp : field_exp name): Do not call mark_struct_expression.
241 (exp : field_exp name COMPLETE): New rule.
242 (exp : SIZEOF): Set correct current_type.
243 (last_was_structop): Remove static variable.
244 (yylex): Remove saw_structop local variable.
245 Adapt code to removal of variables above.
246
247 2013-12-06 Joel Brobecker <brobecker@adacore.com>
248
249 * frame.c (get_prev_frame_1): Delete variable "this_id".
250 Replace its use by a call to get_frame_id.
251
252 2013-12-05 Anthony Green <green@moxielogic.com>
253
254 * moxie-tdep.c (moxie_software_single_step): New function.
255 (INST2OFFSET): New helper macro.
256 (moxie_gdbarch_init): Call set_gdbarch_software_single_step.
257 (moxie_process_readu): Move this up in the file.
258
259 2013-12-05 Doug Evans <xdje42@gmail.com>
260
261 * auto-load.c (load_auto_scripts_for_objfile): Add some comments.
262
263 2013-12-05 Joel Brobecker <brobecker@adacore.com>
264 Tristan Gingold <gingold@adacore.com>
265
266 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
267 Accept version 2. Ignore operations using opcode 6.
268
269 2013-12-05 Joel Brobecker <brobecker@adacore.com>
270
271 * ada-lex.l (find_dot_all): Fix coding style violations.
272
273 2013-12-03 Walfred Tedeschi <walfred.tedeschi@intel.com>
274
275 * NEWS: Add section for Intel(R) Architecture Instructions
276 Extesions mentioning MPX.
277
278 2013-12-03 Joel Brobecker <brobecker@adacore.com>
279
280 * ada-lex.l (find_dot_all): Use strncasecmp instead of strncmp.
281
282 2013-12-03 Joel Brobecker <brobecker@adacore.com>
283
284 * ada-lang.c (create_excep_cond_exprs): Force EXP to NULL
285 when parse_exp_1 threw an error. Add comment.
286
287 2013-12-03 Joel Brobecker <brobecker@adacore.com>
288
289 * NEWS: Mention "-list-features" in the entry documenting
290 the support for the "--language" option.
291
292 2013-12-03 Tom Tromey <tromey@redhat.com>
293 Jan Kratochvil <jan.kratochvil@redhat.com>
294 Doug Evans <dje@google.com>
295 Samuel Bronson <naesten@gmail.com>
296
297 Bring back gdb-add-index as a contrib script.
298 * contrib/gdb-add-index.sh: New file.
299 * NEWS: Note the addition.
300
301 2013-12-03 Samuel Bronson <naesten@gmail.com>
302
303 * MAINTAINERS (Write After Approval): Add myself to the list.
304
305 2013-12-03 Joel Brobecker <brobecker@adacore.com>
306
307 * mi/mi-main.c (mi_cmd_list_features): Remove "ada-exceptions".
308
309 2013-12-03 Joel Brobecker <brobecker@adacore.com>
310
311 * mi/mi-main.c: Remove trailing spaces throughout.
312
313 2013-12-03 Pedro Alves <palves@redhat.com>
314 Joel Brobecker <brobecker@adacore.com>
315
316 * exceptions.h (enum_errors) <UNDEFINED_COMMAND_ERROR>: New enum.
317 * mi/mi-parse.c (mi_parse): Throw UNDEFINED_COMMAND_ERROR instead
318 of a regular error when the GDB/MI command does not exist.
319 * mi/mi-main.c (mi_cmd_list_features): Add
320 "undefined-command-error-code".
321 (mi_print_exception): Print an "undefined-command"
322 error code if EXCEPTION.ERROR is UNDEFINED_COMMAND_ERROR.
323 * NEWS: Add entry documenting the new "code" variable in
324 "^error" result records.
325
326 2013-12-03 Joel Brobecker <brobecker@adacore.com>
327
328 * mi/mi-cmds.h (mi_cmd_info_gdb_mi_command): Declare.
329 * mi/mi-cmd-info.c (mi_cmd_info_gdb_mi_command): New function.
330 * mi/mi-cmds.c (mi_cmds): Add -info-gdb-mi-command command.
331 * mi/mi-main.c (mi_cmd_list_features): Add "info-gdb-mi-command"
332 field to output of "-list-features".
333
334 * NEWS: Add entry for new -info-gdb-mi-command.
335
336 2013-12-02 Doug Evans <dje@google.com>
337 Jan Kratochvil <jan.kratochvil@redhat.com>
338
339 * objfiles.c (allocate_objfile): Save original_name as an absolute
340 path.
341 * objfiles.h (struct objfile): Expand comment on original_name.
342 * source.c (openp): Call gdb_abspath.
343 * utils.c (gdb_abspath): New function.
344 * utils.h (gdb_abspath): Declare.
345
346 2013-12-02 Pedro Alves <palves@redhat.com>
347
348 * dcache.c (dcache_read_line): Use target_read_raw_memory.
349 * target.c (target_read_raw_memory): New function.
350 (target_read_stack, target_write_memory, target_write_raw_memory):
351 Update comment.
352 (target_read_code): Add comment.
353 * target.h (target_read_raw_memory): Declare.
354
355 2013-12-02 Pedro Alves <palves@redhat.com>
356
357 * ctf.c (ctf_start): Use S_IRGRP, S_IXGRP, S_IXOTH
358 unconditionally.
359
360 2013-12-02 Pedro Alves <pedro@codesourcery.com>
361 Maciej W. Rozycki <macro@codesourcery.com>
362
363 * remote.c (putpkt_for_catch_errors): Remove function.
364 (remote_kill): Handle TARGET_CLOSE_ERROR from the kill packet
365 gracefully.
366
367 2013-12-02 Pedro Alves <palves@redhat.com>
368
369 PR remote/15974
370 * remote-notif.c (handle_notification): Return early if no
371 notification is found.
372
373 2013-12-02 Joel Brobecker <brobecker@adacore.com>
374
375 * common/filestuff.c (fdwalk): Add "defined(RLIMIT_NOFILE)"
376 preprocessor check.
377
378 2013-12-02 Joel Brobecker <brobecker@adacore.com>
379
380 * Makefile.in (HFILES_NO_SRCDIR): Remove "common/gdb_dirent.h".
381
382 2013-12-02 Joel Brobecker <brobecker@adacore.com>
383
384 * Makefile.in (HFILES_NO_SRCDIR): Remove "common/gdb_stat.h".
385 * ctf.c (ctf_start): Remove obsolete comment.
386
387 2013-12-02 Joel Brobecker <brobecker@adacore.com>
388
389 * Makefile.in (HFILES_NO_SRCDIR): Remove "common/gdb_string.h".
390
391 2013-11-30 Doug Evans <xdje42@gmail.com>
392
393 * auto-load.h (script_language): New members name, auto_load_enabled.
394 Add missing comments on struct members.
395 (auto_load_objfile_script): Delete.
396 * auto-load.c: #include "cli/cli-cmds.h".
397 (auto_load_gdb_scripts_enabled): New function.
398 (script_language_gdb): Update, add new members.
399 (source_gdb_script_for_objfile): Simplify, auto-load safe-checking
400 and call to maybe_add_script moved to caller.
401 (auto_load_objfile_script_1): Auto-load safe-checking and
402 call to maybe_add_script moved here.
403 (auto_load_objfile_script): Make static. Early exit if support for
404 scripting language hasn't been compiled in, or auto-loading has been
405 disabled.
406 (source_section_scripts): Argument "source_name" renamed to
407 "section_name". All uses updated. Replace uses of AUTO_SECTION_NAME
408 with section_name. Skip loading script if support for scripting
409 language hasn't been compiled in, or auto-loading has been disabled.
410 Call language->source_script_for_objfile instead of calling
411 source_python_script_for_objfile directly.
412 (load_auto_scripts_for_objfile): Update.
413 * python/py-auto-load.c: Delete #include "cli/cli-cmds.h".
414 (gdbpy_load_auto_script_for_objfile): Delete.
415 (auto_load_python_scripts_enabled): New function.
416 (script_language_python): Update, add new members.
417 (gdbpy_script_language_defn): New function.
418 * python/python.h (gdbpy_load_auto_scripts_for_objfile): Delete.
419 (gdbpy_script_language_defn): Declare.
420
421 * auto-load.c (AUTO_SECTION_NAME): Moved here and renamed from
422 py-auto-load.c, GDBPY_AUTO_SECTION_NAME.
423 (source_section_scripts): Moved here from py-auto-load.c.
424 (auto_load_section_scripts): Ditto.
425 * python/py-auto-load.c (GDBPY_AUTO_SECTION_NAME): Moved to
426 auto-load.c, renamed AUTO_SECTION_NAME.
427 (source_section_scripts, auto_load_section_scripts): Moved to
428 auto-load.c.
429
430 2013-11-30 Yao Qi <yao@codesourcery.com>
431
432 * remote.c (getpkt_or_notif_sane_1): Fix typo "checksm".
433
434 2013-11-29 Sergio Durigan Junior <sergiodj@redhat.com>
435
436 * gdbarch.sh: Remove include of "gdb_string.h", replace by
437 <string.h>.
438
439 2013-11-29 Doug Evans <xdje42@gmail.com>
440
441 * python/py-auto-load.c (source_section_scripts): Move comment to
442 more relevant location.
443
444 Whitespace cleanup.
445 * python/py-breakpoint.c: Remove trailing whitespace.
446 * python/py-cmd.c: Ditto.
447 * python/py-evts.c: Ditto.
448 * python/py-finishbreakpoint.c: Ditto.
449 * python/py-frame.c: Ditto.
450 * python/py-function.c: Ditto.
451 * python/py-inferior.c: Ditto.
452 * python/py-infthread.c: Ditto.
453 * python/py-param.c: Ditto.
454 * python/py-prettyprint.c: Ditto.
455 * python/py-symbol.c: Ditto.
456 * python/py-type.c: Ditto.
457 * python/py-utils.c: Ditto.
458 * python/py-value.c: Ditto.
459 * python/python-internal.h: Ditto.
460 * python/python.c: Ditto.
461
462 2013-11-29 Pedro Alves <palves@redhat.com>
463
464 * unwind_stop_reasons.def (UNWIND_NULL_ID): Update comment.
465
466 2013-11-29 Pedro Alves <palves@redhat.com>
467
468 * breakpoint.c (build_target_condition_list): Release previous
469 conditions.
470 (build_target_command_list): Release previous commands.
471 (bp_location_dtor): Release target conditions and commands.
472 * remote.c (remote_add_target_side_condition): Don't release
473 conditions.
474 (remote_add_target_side_commands): Don't release commands.
475
476 2013-11-29 Yao Qi <yao@codesourcery.com>
477 Pedro Alves <palves@redhat.com>
478
479 * dcache.c (dcache_read_line): Use current_target.beneath
480 instead of &current_target.
481 * target.c (memory_xfer_partial_1): Factor code out to ...
482 (raw_memory_xfer_partial): ... it. New function.
483 (target_xfer_partial): Call raw_memory_xfer_partial if OBJECT
484 is TARGET_OBJECT_RAW_MEMORY.
485
486 2013-11-28 Doug Evans <xdje42@gmail.com>
487
488 * breakpoint.h (gdbpy_breakpoint_object): Renamed from
489 breakpoint_object. All uses updated.
490 * python/python-internal.h (gdbpy_breakpoint_object): Renamed from
491 breakpoint_object. All uses updated.
492 * python.c (*): All uses of breakpoint_object updated.
493 * python.h (*): All uses of breakpoint_object updated.
494 * python/py-breakpoint.c (*): All uses of breakpoint_object updated.
495 * python/py-finishbreakpoint.c (*): Ditto.
496
497 2013-11-28 Doug Evans <xdje42@gmail.com>
498
499 * configure.ac: Add comments delineating libpython and libmcheck.
500 * configure: Regenerate.
501
502 2013-11-28 Andrew Burgess <aburgess@broadcom.com>
503 Pedro Alves <palves@redhat.com>
504
505 * valprint.c (value_check_printable): If the value is entirely
506 unavailable, print a single "<unavailable>" instead of printing
507 all subfields.
508
509 2013-11-28 Pedro Alves <palves@redhat.com>
510
511 * frame.c (get_prev_frame_1) <stop_reason != UNWIND_NO_REASON>:
512 Add "set debug frame" output.
513 (frame_stop_reason_symbol_string): New function.
514
515 2013-11-28 Pedro Alves <palves@redhat.com>
516
517 * frame-unwind.c (default_frame_unwind_stop_reason): Return
518 UNWIND_OUTERMOST if the frame's ID is outer_frame_id.
519 * frame.c (get_prev_frame_1): Remove outer_frame_id check.
520
521 2013-11-28 Pedro Alves <palves@redhat.com>
522
523 * frame.c (get_prev_frame_1): If the frame id is outer_frame_id,
524 set the unwind stop reason to UNWIND_OUTERMOST, not
525 UNWIND_NULL_ID. Remove explicit check for sentinel frame.
526
527 2013-11-28 Pedro Alves <palves@redhat.com>
528
529 * frame.c (frame_unwind_register): Say the register was "not
530 saved" instead of "optimized out".
531
532 2013-11-27 Steffen Sledz <sledz@dresearch-fe.de>
533
534 PR 16152
535 * configure: Rebuild.
536 * configure.ac: Tighten cygwin detection check.
537
538 2013-11-27 Pedro Alves <palves@redhat.com>
539
540 * frame-unwind.c (frame_unwind_got_optimized): Use the type of the
541 register in the previous frame's arch.
542
543 2013-11-27 Pedro Alves <palves@redhat.com>
544
545 * frame-unwind.c (frame_unwind_got_optimized): Return
546 an lval_register value instead of a not_lval value.
547
548 2013-11-27 Andrew Burgess <aburgess@broadcom.com>
549
550 * frame.c: Include "valprint.h".
551 (frame_unwind_register_value): Use value_optimized_out.
552 * value.c (value_fetch_lazy): Likewise.
553
554 2013-11-26 Andrew Burgess <aburgess@broadcom.com>
555
556 * value.c (allocate_optimized_out_value): Mark value as non-lazy.
557
558 2013-11-26 Tom Tromey <tromey@redhat.com>
559
560 * dwarf2-frame.c (dwarf2_frame_cache): Revert patch from
561 2013-11-22.
562
563 2013-11-26 Walfred Tedeschi <walfred.tedeschi@intel.com>
564
565 * i386-xstate.h (I386_XSTATE_MPX): New Macro.
566 (I386_XSTATE_MPX_MASK): Makes use of I386_XSTATE_MPX.
567 (HAS_MPX): New macro.
568 (HAS_AVX): New macro.
569 (I386_XSTATE_SIZE): Uses HAS_MPX and HAS_AVX.
570
571 2013-11-25 Keith Seitz <keiths@redhat.com>
572
573 PR c++/14819
574 * c-exp.y (classify_inner_name): If no matching symbol was
575 found, try looking up the token as a base class.
576 Likewise if a constructor was found.
577 * cp-namespace.c (find_type_baseclass_by_name): New function.
578 * cp-support.h (find_type_baseclass_by_name): Declare.
579 * valops.c (value_struct_elt_for_reference): If we get
580 a non-static field, try to get a value based on the
581 current instance, if any.
582
583 2013-11-24 Yao Qi <yao@codesourcery.com>
584
585 * disasm.c (dis_asm_read_memory): Call target_read_code
586 instead of target_read_memory.
587
588 2013-11-24 Yao Qi <yao@codesourcery.com>
589
590 * NEWS: Add note on new "set code-cache" option.
591 * target-dcache.c (code_cache_enabled_1): New variable.
592 (code_cache_enabled): New variable.
593 (show_code_cache, set_code_cache): New function.
594 (code_cache_enabled_p): New function.
595 (_initialize_target_dcache): Register command.
596 * target-dcache.h (code_cache_enabled_p): Declare.
597 * target.c (memory_xfer_partial_1):Handle
598 TARGET_OBJECT_CODE_MEMORY and code_cache_enabled.
599 (target_read_code): New function.
600 * target.h (enum target_object) <TARGET_OBJECT_CODE_MEMORY>:
601 New.
602 (target_read_code): Declare.
603
604 2013-11-24 Yao Qi <yao@codesourcery.com>
605
606 * target-dcache.c (stack_cache_enabled_p_1): Rename to ...
607 (stack_cache_enabled_1): ... this. New variable.
608 (stack_cache_enabled_p): Rename to ...
609 (stack_cache_enabled): ... this. New variable.
610 (set_stack_cache_enabled_p): Rename to ...
611 (set_stack_cache): ... this. Update caller.
612 (show_stack_cache_enabled_p): Rename to ...
613 (show_stack_cache): ... this. Update caller.
614 (stack_cache_enabled): Rename to ...
615 (stack_cache_enabled_p): ... this. Update caller.
616 (_initialize_target_dcache): Replace "data cache" with
617 "target memory cache".
618 * target-dcache.h (stack_cache_enabled): Remove declaration.
619 (stack_cache_enabled_p): Add declaration.
620
621 2013-11-23 Doug Evans <xdje42@gmail.com>
622
623 * python/py-frame.c (gdbpy_initialize_frames): Remove FIRST_ERROR,
624 superfluous.
625
626 2013-11-23 Doug Evans <xdje42@gmail.com>
627
628 * python/py-frame.c (frapy_block): Fix error message text.
629
630 2013-11-23 Doug Evans <xdje42@gmail.com>
631
632 * cli/cli-script.c (multi_line_command_p): New function.
633 (recurse_read_control_structure, read_command_lines_1): Call it.
634 (execute_control_command): Consistently have a blank line between
635 each case.
636
637 2013-11-22 Sterling Augustine <saugustine@google.com>
638
639 PR gdb/16196:
640 * valprint.c (read_string): Set new variable fetchlen based on
641 fetchlimit and size. Use it in call to partial_memory_read.
642 Update comment.
643
644 2013-11-22 Tom Tromey <tromey@redhat.com>
645
646 PR backtrace/16155:
647 * dwarf2-frame.c (dwarf2_frame_cache): Set undefined_retaddr if
648 the return address column is unspecified.
649
650 2013-11-22 Tom Tromey <tromey@redhat.com>
651 Pedro Alves <palves@redhat.com>
652
653 PR backtrace/16155
654 * value.c (value_fetch_lazy): Internal error if
655 get_frame_register_value returns the same register.
656
657 2013-11-22 Pedro Alves <palves@redhat.com>
658 Tom Tromey <tromey@redhat.com>
659
660 * frame.c (frame_stash_add): Now returns whether a frame with the
661 same ID was already known.
662 (compute_frame_id): New function, factored out from get_frame_id.
663 (get_frame_id): No longer lazilly compute the frame id here.
664 (get_prev_frame_if_no_cycle): New function. Detects wider stack
665 cycles.
666 (get_prev_frame_1): Use it instead of get_prev_frame_raw directly,
667 and checking for stack cycles here.
668
669 2013-11-22 Pedro Alves <palves@redhat.com>
670
671 PR 16155
672 * frame.c (get_prev_frame_1): Do the UNWIND_SAME_ID check between
673 this frame and the new previous frame, not between this frame and
674 the next frame.
675
676 2013-11-22 Pedro Alves <palves@redhat.com>
677
678 PR 16155
679 * dwarf2-frame.c (struct dwarf2_frame_cache)
680 <checked_tailcall_bottom, entry_cfa_sp_offset,
681 entry_cfa_sp_offset_p>: New fields.
682 (dwarf2_frame_cache): Adjust to use the new cache fields instead
683 of locals. Don't call dwarf2_tailcall_sniffer_first here.
684 (dwarf2_frame_prev_register): Call it here, but only once.
685
686 2013-11-21 Doug Evans <xdje42@gmail.com>
687
688 * gdbtypes.c: #include bcache.h, dwarf2loc.h.
689 (type_equality_entry): Move here from python/py-type.c.
690 (type_equality_entry_d): Ditto.
691 (compare_maybe_null_strings, check_types_equal): Ditto.
692 (check_types_worklist, types_deeply_equal): Ditto.
693 * gdbtypes.h (types_deeply_equal): Declare.
694 * python/py-type.c: Remove inclusion of bcache.h, dwarf2loc.h.
695 (typy_richcompare): Update.
696
697 2013-11-20 Joel Brobecker <brobecker@adacore.com>
698
699 * python/py-value.c (is_intlike): Delete.
700 (valpy_int): Replace use of CHECK_TYPEDEF and is_intlike
701 by use of is_integral_type.
702 (valpy_long): Replace use of CHECK_TYPEDEF and is_intlike
703 by use of is_integral_type and check for TYPE_CODE_PTR.
704
705 2013-11-20 Tom Tromey <tromey@redhat.com>
706
707 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Remove
708 strerror module.
709 * gnulib/aclocal.m4: Update.
710 * gnulib/config.in: Update.
711 * gnulib/configure: Update.
712 * gnulib/import/Makefile.am: Update.
713 * gnulib/import/Makefile.in: Update.
714 * gnulib/import/errno.in.h: Remove.
715 * gnulib/import/intprops.h: Remove.
716 * gnulib/import/m4/errno_h.m4: Remove.
717 * gnulib/import/m4/gnulib-cache.m4: Update.
718 * gnulib/import/m4/gnulib-comp.m4: Update.
719 * gnulib/import/m4/strerror.m4: Remove.
720 * gnulib/import/m4/sys_socket_h.m4: Remove.
721 * gnulib/import/strerror-override.c: Remove.
722 * gnulib/import/strerror-override.h: Remove.
723 * gnulib/import/strerror.c: Remove.
724 * gnulib/update-gnulib.sh: Update.
725
726 2013-11-20 Yao Qi <yao@codesourcery.com>
727
728 * target-dcache.c (target_dcache_get_or_init): Call
729 set_address_space_data if 'dcache' is NULL.
730
731 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
732
733 * common/i386-gcc-cpuid.h (bit_MPX): Synchronize with gcc file.
734
735 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
736
737 * python/lib/gdb/command/bound_register.py: New file.
738 * data-directory/Makefile.in: Copy bond_register.py to the right path
739 to be initialized at gdb startup.
740
741 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
742
743 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset):
744 Add MPX registers.
745 (amd64_linux_read_description): Add initialization for MPX and
746 AVX independently.
747 * amd64-linux-tdep.c: Includes features/i386/amd64-mpx-linux.c.
748 (amd64_linux_gregset_reg_offset): Add MPX registers.
749 (amd64_linux_core_read_description): Add initialization for MPX
750 registers.
751 (_initialize_amd64_linux_tdep): Initialize MPX targets.
752 * amd64-linux-tdep.h (AMD64_LINUX_RAX_REGNUM): Set it to the last
753 register on the list.
754 (tdesc_amd64_mpx_linux) Add new target for MPX.
755 * amd64-tdep.c: Includes features/i386/amd64-mpx.c.
756 (amd64_mpx_names): MPX register names.
757 (amd64_init_abi): Add MPX register while initializing the ABI.
758 (_initialize_amd64_tdep): Initialize MPX targets.
759 * amd64-tdep.h (amd64_regnum): Add MPX registers.
760 (AMD64_NUM_REGS): Set number of registers taking MPX into account.
761
762 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
763
764 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Add MPX
765 registers on the range of registers to be read from
766 xsave buffer.
767 (i386_linux_read_description): Add case for MPX.
768 * i386-linux-tdep.c: Include features/i386/i386-mpx-linux.c.
769 (i386_linux_gregset_reg_offset): Add MPX registers.
770 (i386_linux_core_read_description): Initialize also MPX.
771 (_initialize_i386_linux_tdep): Add mpx initialization.
772 * i386-tdep.h (gdbarch_tdep): Add fields bnd0r_regnum, bnd0_regnum,
773 mpx_register_names.
774 (i386_regnum): Add MPX registers.
775 (I386_MPX_NUM_REGS): New macro.
776 (i386_bnd_regnum_p): New function.
777 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set
778 number of registers to be the number of BNDSTATUS.
779 (tdesc_i386_mpx_linux): Add description for MPX Linux registers.
780 * i386-tdep.c: Include features/i386/i386-mpx.c.
781 (i386_mpx_names): Add MPX register names array.
782 (i386_bnd_names): Add bnd pseudo register names array.
783 (i386_bndr_regnum_p): Lookup register numbers for bnd raw
784 registers.
785 (i386_bndr_regnum_p): Lookup register numbers for bnd raw registers.
786 (386_mpx_ctrl_regnum_p): Lookup register numbers for MPX control
787 registers.
788 (i386_bnd_type): New function.
789 (i386_pseudo_register_type): Use i386_bnd_type for bnd pseudo
790 register types.
791 (i386_pseudo_register_read_into_value): Add bnd case.
792 (i386_pseudo_register_write): Add bnd pseudo registers.
793 (i386_register_reggroup_p): Add MPX register to the group all.
794 (i386_validate_tdesc_p): Add MPX to the target description
795 validation.
796 (i386_pseudo_register_name): Add bnd pseudo registers.
797 (i386_gdbarch_init): Add MPX for architecture initialization.
798 (_initia_initialize_i386_tdep): Add mpx initialization.
799 * i387-tdep.c (xsave_mpx_offset): New vector for MPX offsets on
800 XSAVE buffer.
801 (XSAVE_MPX_ADDR): New macro.
802 (i387_supply_xsave): Add MPX case.
803 (i387_collect_xsave): Add MPX case.
804 * i387-tdep.h (I387_BND0R_REGNUM): New macro.
805 (I387_BNDCFGU_REGNUM): New macro.
806 (I387_NUM_MPX_REGS): New macro.
807 (I387_NUM_BND_REGS): New macro.
808 (I387_NUM_MPX_CTRL_REGS): New macro.
809 (I387_MPXEND_REGNUM): New macro.
810 * common/i386-xstate.h (I386_XSTATE_BNDREGS): New macro.
811 (I386_XSTATE_BNDCFG): Likewise.
812 (I386_XSTATE_MPX_MASK): Likewise.
813 (I386_XSTATE_ALL_MASK): New macro represents flags for all states.
814 (I386_XSTATE_BNDREGS_SIZE): New macro.
815 (I386_XSTATE_BNDCFG_SIZE): Likewise.
816 (I386_XSTATE_SIZE): Adapt for MPX.
817 (I386_XSTATE_MAX_SIZE): Likewise.
818
819 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
820
821 * features/i386/Makefile: Adapts for using MPX registers.
822 * features/i386/32bit-mpx.xml: New file.
823 * features/i386/64bit-mpx.xml: Likewise.
824 * features/i386/amd64-mpx-linux.c: Likewise.
825 * features/i386/amd64-mpx-linux.xml: Likewise.
826 * features/i386/amd64-mpx.c: Likewise.
827 * features/i386/amd64-mpx.xml: Likewise.
828 * features/i386/i386-mpx-linux.c: Likewise.
829 * features/i386/i386-mpx-linux.xml: Likewise.
830 * features/i386/i386-mpx.c: Likewise.
831 * features/i386/i386-mpx.xml: Likewise.
832 * regformats/i386/amd64-mpx-linux.dat: New file.
833 * regformats/i386/amd64-mpx.dat: Likewise.
834 * regformats/i386/i386-mpx-linux.dat: Likewise.
835 * regformats/i386/i386-mpx.dat: Likewise.
836
837 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
838
839 * target-descriptions.c (maint_print_maint_print_c_tdesc_cmd):
840 Modified logic of creating a bitfield to be in sync with
841 tdesc_gdb_type.
842
843 2013-11-20 Will Newton <will.newton@linaro.org>
844
845 * arm-tdep.c (arm_get_next_pc): Remove "Infinite loop detected"
846 error message.
847
848 2013-11-20 Yao Qi <yao@codesourcery.com>
849
850 * progspace.h (struct address_space_data): Declare.
851 * target-dcache.c: Include "progspace.h".
852 (target_dache): Remove.
853 (target_dcache_aspace_key): New.
854 (target_dcache_cleanup): New function.
855 (target_dcache_init_p): Get data through
856 target_dcache_aspace_key.
857 (target_dcache_invalidate): Likewise.
858 (target_dcache_get): Likewise.
859 (target_dcache_get_or_init): Likewise.
860 (_initialize_target_dcache): Initialize
861 target_dcache_aspace_key.
862
863 2013-11-20 Yao Qi <yao@codesourcery.com>
864
865 * progspace.c (struct address_space): Update comments.
866 <REGISTRY_FIELDS>: New fields.
867 DEFINE_REGISTRY for address_space.
868 (new_address_space): Call address_space_alloc_data.
869 (free_address_space): Call address_space_free_data.
870 * progspace.h: Use DECLARE_REGISTRY.
871
872 2013-11-20 Yao Qi <yao@codesourcery.com>
873
874 * Makefile.in (SFILES):Add target-dcache.c.
875 (HFILES_NO_SRCDIR): Add target-dcache.h.
876 (COMMON_OBS): Add target-dcache.o.
877 * dcache.c: Remove inclusion to "target.h". Include
878 "target-dcache.h".
879 * memattr.c: Include "target-dcache.h".
880 * top.c: Likewise.
881 * tracepoint.c: Likewise.
882 * target.c: (stack_cache_enabled_p_1): Move to
883 target-dcache.c.
884 (stack_cache_enabled_p): Likewise.
885 (set_stack_cache_enabled_p): Likewise.
886 (show_stack_cache_enabled_p): Likewise.
887 (target_dcache, target_dcache_init_p): Likewise.
888 (target_dcache_invalidate): Likewise.
889 (target_dcache_get, target_dcache_get_or_init): Likewise.
890 (memory_xfer_partial_1): Call function stack_cache_enabled.
891 (initialize_target): Move code to target-dcache.c.
892 * target.h (target_dcache_invalidate): Move to
893 target-dcache.h.
894 (target_dcache_get): Likewise.
895 * target-dcache.c: New.
896 * target-dcache.h: New.
897
898 2013-11-20 Yao Qi <yao@codesourcery.com>
899
900 * target.c (memory_xfer_partial_1): Update 'target_dcache' if
901 it is initialized.
902
903 2013-11-20 Yao Qi <yao@codesourcery.com>
904
905 * dcache.c (last_cache): Remove.
906 (dcache_free, dcache_init): Update.
907 (dcache_update):
908 (dcache_print_line): Add parameter 'dcache'. Replace
909 'target_dcache' with 'dcache'.
910 (dcache_info): Move code to dcache_info_1. Call
911 'dcache_info_1'.
912 (dcache_info_1): New function.
913 (set_dcache_size): Call target_dcache_invalidate.
914 (set_dcache_line_size): Call target_dcache_invalidate.
915 * target.c (target_dcache_init_p): New function.
916 (target_dcache_invalidate): Check target_dcache_init_p first.
917 (target_dcache_get, target_dcache_get_or_init): New function.
918 (memory_xfer_partial_1): Adjust.
919 (initialize_target): Don't initialize 'target_dcache'.
920 * target.h (struct dcache_struct): Declare.
921 (target_dcache_get): Declare.
922
923 2013-11-19 Yao Qi <yao@codesourcery.com>
924
925 * varobj.c (varobj_get_type): Fix typo.
926
927 2013-11-19 Joel Brobecker <brobecker@adacore.com>
928
929 * python/py-value.c (is_intlike): Add TYPE_CODE_RANGE handling.
930
931 2013-11-19 Joel Brobecker <brobecker@adacore.com>
932
933 * contrib/ari/gdb_ari.sh: Remove checks for "dirent.h" and
934 "stat.h".
935
936 2013-11-18 Tom Tromey <tromey@redhat.com>
937
938 * common/gdb_stat.h: Remove.
939 * ada-lang.c: Use sys/stat.h, not gdb_stat.h.
940 * common/filestuff.c: Use sys/stat.h, not gdb_stat.h.
941 * common/linux-osdata.c: Use sys/stat.h, not gdb_stat.h.
942 * corefile.c: Use sys/stat.h, not gdb_stat.h.
943 * ctf.c: Use sys/stat.h, not gdb_stat.h.
944 * darwin-nat.c: Use sys/stat.h, not gdb_stat.h.
945 * dbxread.c: Use sys/stat.h, not gdb_stat.h.
946 * dwarf2read.c: Use sys/stat.h, not gdb_stat.h.
947 * exec.c: Use sys/stat.h, not gdb_stat.h.
948 * gdbserver/linux-low.c: Use sys/stat.h, not gdb_stat.h.
949 * gdbserver/remote-utils.c: Use sys/stat.h, not gdb_stat.h.
950 * inf-child.c: Use sys/stat.h, not gdb_stat.h.
951 * jit.c: Use sys/stat.h, not gdb_stat.h.
952 * linux-nat.c: Use sys/stat.h, not gdb_stat.h.
953 * m68klinux-nat.c: Use sys/stat.h, not gdb_stat.h.
954 * main.c: Use sys/stat.h, not gdb_stat.h.
955 * mdebugread.c: Use sys/stat.h, not gdb_stat.h.
956 * mi/mi-cmd-env.c: Use sys/stat.h, not gdb_stat.h.
957 * nto-tdep.c: Use sys/stat.h, not gdb_stat.h.
958 * objfiles.c: Use sys/stat.h, not gdb_stat.h.
959 * procfs.c: Use sys/stat.h, not gdb_stat.h.
960 * remote-fileio.c: Use sys/stat.h, not gdb_stat.h.
961 * remote-mips.c: Use sys/stat.h, not gdb_stat.h.
962 * remote.c: Use sys/stat.h, not gdb_stat.h.
963 * rs6000-nat.c: Use sys/stat.h, not gdb_stat.h.
964 * sol-thread.c: Use sys/stat.h, not gdb_stat.h.
965 * solib-spu.c: Use sys/stat.h, not gdb_stat.h.
966 * source.c: Use sys/stat.h, not gdb_stat.h.
967 * symfile.c: Use sys/stat.h, not gdb_stat.h.
968 * symmisc.c: Use sys/stat.h, not gdb_stat.h.
969 * symtab.c: Use sys/stat.h, not gdb_stat.h.
970 * top.c: Use sys/stat.h, not gdb_stat.h.
971 * xcoffread.c: Use sys/stat.h, not gdb_stat.h.
972
973 2013-11-18 Tom Tromey <tromey@redhat.com>
974
975 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
976 sys_stat.
977 * gnulib/aclocal.m4: Update.
978 * gnulib/config.in: Update.
979 * gnulib/configure: Update.
980 * gnulib/import/Makefile.am: Update.
981 * gnulib/import/Makefile.in: Update.
982 * gnulib/import/m4/gnulib-cache.m4: Update.
983 * gnulib/import/m4/gnulib-comp.m4: Update.
984 * gnulib/import/m4/sys_stat_h.m4: New.
985 * gnulib/import/m4/time_h.m4: New.
986 * gnulib/import/sys_stat.in.h: New.
987 * gnulib/import/time.in.h: New.
988
989 2013-11-18 Tom Tromey <tromey@redhat.com>
990
991 * configure: Rebuild.
992 * configure.ac: Remove check of HAVE_SYS_TYPES_H.
993
994 2013-11-18 Tom Tromey <tromey@redhat.com>
995
996 * configure: Rebuild.
997 * configure.ac: Don't check for unistd.h.
998
999 2013-11-18 Tom Tromey <tromey@redhat.com>
1000
1001 * configure: Rebuild.
1002 * configure.ac: Don't check for stdlib.h
1003 * defs.h: Include stdlib.h unconditionally.
1004
1005 2013-11-18 Tom Tromey <tromey@redhat.com>
1006
1007 * config.in: Rebuild.
1008 * configure: Rebuild.
1009 * configure.ac: Don't check for stddef.h.
1010 * defs.h: Unconditionally include stddef.h. Remove duplicate
1011 inclusion.
1012
1013 2013-11-18 Tom Tromey <tromey@redhat.com>
1014
1015 * common/common.m4 (GDB_AC_COMMON): Don't use AC_HEADER_DIRENT.
1016 * common/gdb_dirent.h: Remove.
1017 * common/filestuff.c: Use dirent.h.
1018 * common/linux-osdata.c: Use dirent.h.
1019 (NAMELEN): Define.
1020 * config.in: Rebuild.
1021 * configure: Rebuild.
1022 * configure.ac: Don't use AC_HEADER_DIRENT.
1023 * linux-fork.c: Use dirent.h
1024 * linux-nat.c: Use dirent.h.
1025 * nto-procfs.c: Use dirent.h.
1026 * procfs.c: Use dirent.h.
1027
1028 2013-11-18 Tom Tromey <tromey@redhat.com>
1029
1030 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirent.
1031 * gnulib/aclocal.m4: Update.
1032 * gnulib/config.in: Update.
1033 * gnulib/configure: Update.
1034 * gnulib/import/Makefile.am: Update.
1035 * gnulib/import/Makefile.in: Update.
1036 * gnulib/import/dirent.in.h: New.
1037 * gnulib/import/m4/dirent_h.m4: New.
1038 * gnulib/import/m4/gnulib-cache.m4: Update.
1039 * gnulib/import/m4/gnulib-comp.m4: Update.
1040
1041 2013-11-18 Tom Tromey <tromey@redhat.com>
1042
1043 * configure: Rebuild.
1044 * common/common.m4 (GDB_AC_COMMON): Don't check for string.h or
1045 strings.h.
1046
1047 2013-11-18 Tom Tromey <tromey@redhat.com>
1048
1049 * common/gdb_string.h: Remove.
1050 * aarch64-tdep.c: Use string.h, not gdb_string.h.
1051 * ada-exp.y: Use string.h, not gdb_string.h.
1052 * ada-lang.c: Use string.h, not gdb_string.h.
1053 * ada-lex.l: Use string.h, not gdb_string.h.
1054 * ada-typeprint.c: Use string.h, not gdb_string.h.
1055 * ada-valprint.c: Use string.h, not gdb_string.h.
1056 * aix-thread.c: Use string.h, not gdb_string.h.
1057 * alpha-linux-tdep.c: Use string.h, not gdb_string.h.
1058 * alpha-mdebug-tdep.c: Use string.h, not gdb_string.h.
1059 * alpha-nat.c: Use string.h, not gdb_string.h.
1060 * alpha-osf1-tdep.c: Use string.h, not gdb_string.h.
1061 * alpha-tdep.c: Use string.h, not gdb_string.h.
1062 * alphanbsd-tdep.c: Use string.h, not gdb_string.h.
1063 * amd64-dicos-tdep.c: Use string.h, not gdb_string.h.
1064 * amd64-linux-nat.c: Use string.h, not gdb_string.h.
1065 * amd64-linux-tdep.c: Use string.h, not gdb_string.h.
1066 * amd64-nat.c: Use string.h, not gdb_string.h.
1067 * amd64-sol2-tdep.c: Use string.h, not gdb_string.h.
1068 * amd64fbsd-tdep.c: Use string.h, not gdb_string.h.
1069 * amd64obsd-tdep.c: Use string.h, not gdb_string.h.
1070 * arch-utils.c: Use string.h, not gdb_string.h.
1071 * arm-linux-nat.c: Use string.h, not gdb_string.h.
1072 * arm-linux-tdep.c: Use string.h, not gdb_string.h.
1073 * arm-tdep.c: Use string.h, not gdb_string.h.
1074 * arm-wince-tdep.c: Use string.h, not gdb_string.h.
1075 * armbsd-tdep.c: Use string.h, not gdb_string.h.
1076 * armnbsd-nat.c: Use string.h, not gdb_string.h.
1077 * armnbsd-tdep.c: Use string.h, not gdb_string.h.
1078 * armobsd-tdep.c: Use string.h, not gdb_string.h.
1079 * avr-tdep.c: Use string.h, not gdb_string.h.
1080 * ax-gdb.c: Use string.h, not gdb_string.h.
1081 * ax-general.c: Use string.h, not gdb_string.h.
1082 * bcache.c: Use string.h, not gdb_string.h.
1083 * bfin-tdep.c: Use string.h, not gdb_string.h.
1084 * breakpoint.c: Use string.h, not gdb_string.h.
1085 * build-id.c: Use string.h, not gdb_string.h.
1086 * buildsym.c: Use string.h, not gdb_string.h.
1087 * c-exp.y: Use string.h, not gdb_string.h.
1088 * c-lang.c: Use string.h, not gdb_string.h.
1089 * c-typeprint.c: Use string.h, not gdb_string.h.
1090 * c-valprint.c: Use string.h, not gdb_string.h.
1091 * charset.c: Use string.h, not gdb_string.h.
1092 * cli-out.c: Use string.h, not gdb_string.h.
1093 * cli/cli-cmds.c: Use string.h, not gdb_string.h.
1094 * cli/cli-decode.c: Use string.h, not gdb_string.h.
1095 * cli/cli-dump.c: Use string.h, not gdb_string.h.
1096 * cli/cli-interp.c: Use string.h, not gdb_string.h.
1097 * cli/cli-logging.c: Use string.h, not gdb_string.h.
1098 * cli/cli-script.c: Use string.h, not gdb_string.h.
1099 * cli/cli-setshow.c: Use string.h, not gdb_string.h.
1100 * cli/cli-utils.c: Use string.h, not gdb_string.h.
1101 * coffread.c: Use string.h, not gdb_string.h.
1102 * common/common-utils.c: Use string.h, not gdb_string.h.
1103 * common/filestuff.c: Use string.h, not gdb_string.h.
1104 * common/linux-procfs.c: Use string.h, not gdb_string.h.
1105 * common/linux-ptrace.c: Use string.h, not gdb_string.h.
1106 * common/signals.c: Use string.h, not gdb_string.h.
1107 * common/vec.h: Use string.h, not gdb_string.h.
1108 * core-regset.c: Use string.h, not gdb_string.h.
1109 * corefile.c: Use string.h, not gdb_string.h.
1110 * corelow.c: Use string.h, not gdb_string.h.
1111 * cp-abi.c: Use string.h, not gdb_string.h.
1112 * cp-support.c: Use string.h, not gdb_string.h.
1113 * cp-valprint.c: Use string.h, not gdb_string.h.
1114 * cris-tdep.c: Use string.h, not gdb_string.h.
1115 * d-lang.c: Use string.h, not gdb_string.h.
1116 * dbxread.c: Use string.h, not gdb_string.h.
1117 * dcache.c: Use string.h, not gdb_string.h.
1118 * demangle.c: Use string.h, not gdb_string.h.
1119 * dicos-tdep.c: Use string.h, not gdb_string.h.
1120 * disasm.c: Use string.h, not gdb_string.h.
1121 * doublest.c: Use string.h, not gdb_string.h.
1122 * dsrec.c: Use string.h, not gdb_string.h.
1123 * dummy-frame.c: Use string.h, not gdb_string.h.
1124 * dwarf2-frame.c: Use string.h, not gdb_string.h.
1125 * dwarf2loc.c: Use string.h, not gdb_string.h.
1126 * dwarf2read.c: Use string.h, not gdb_string.h.
1127 * elfread.c: Use string.h, not gdb_string.h.
1128 * environ.c: Use string.h, not gdb_string.h.
1129 * eval.c: Use string.h, not gdb_string.h.
1130 * event-loop.c: Use string.h, not gdb_string.h.
1131 * exceptions.c: Use string.h, not gdb_string.h.
1132 * exec.c: Use string.h, not gdb_string.h.
1133 * expprint.c: Use string.h, not gdb_string.h.
1134 * f-exp.y: Use string.h, not gdb_string.h.
1135 * f-lang.c: Use string.h, not gdb_string.h.
1136 * f-typeprint.c: Use string.h, not gdb_string.h.
1137 * f-valprint.c: Use string.h, not gdb_string.h.
1138 * fbsd-nat.c: Use string.h, not gdb_string.h.
1139 * findcmd.c: Use string.h, not gdb_string.h.
1140 * findvar.c: Use string.h, not gdb_string.h.
1141 * fork-child.c: Use string.h, not gdb_string.h.
1142 * frame.c: Use string.h, not gdb_string.h.
1143 * frv-linux-tdep.c: Use string.h, not gdb_string.h.
1144 * frv-tdep.c: Use string.h, not gdb_string.h.
1145 * gdb.c: Use string.h, not gdb_string.h.
1146 * gdb_bfd.c: Use string.h, not gdb_string.h.
1147 * gdbarch.c: Use string.h, not gdb_string.h.
1148 * gdbtypes.c: Use string.h, not gdb_string.h.
1149 * gnu-nat.c: Use string.h, not gdb_string.h.
1150 * gnu-v2-abi.c: Use string.h, not gdb_string.h.
1151 * gnu-v3-abi.c: Use string.h, not gdb_string.h.
1152 * go-exp.y: Use string.h, not gdb_string.h.
1153 * go-lang.c: Use string.h, not gdb_string.h.
1154 * go32-nat.c: Use string.h, not gdb_string.h.
1155 * hppa-hpux-tdep.c: Use string.h, not gdb_string.h.
1156 * hppa-linux-nat.c: Use string.h, not gdb_string.h.
1157 * hppanbsd-tdep.c: Use string.h, not gdb_string.h.
1158 * hppaobsd-tdep.c: Use string.h, not gdb_string.h.
1159 * i386-cygwin-tdep.c: Use string.h, not gdb_string.h.
1160 * i386-dicos-tdep.c: Use string.h, not gdb_string.h.
1161 * i386-linux-nat.c: Use string.h, not gdb_string.h.
1162 * i386-linux-tdep.c: Use string.h, not gdb_string.h.
1163 * i386-nto-tdep.c: Use string.h, not gdb_string.h.
1164 * i386-sol2-tdep.c: Use string.h, not gdb_string.h.
1165 * i386-tdep.c: Use string.h, not gdb_string.h.
1166 * i386bsd-tdep.c: Use string.h, not gdb_string.h.
1167 * i386gnu-nat.c: Use string.h, not gdb_string.h.
1168 * i386nbsd-tdep.c: Use string.h, not gdb_string.h.
1169 * i386obsd-tdep.c: Use string.h, not gdb_string.h.
1170 * i387-tdep.c: Use string.h, not gdb_string.h.
1171 * ia64-libunwind-tdep.c: Use string.h, not gdb_string.h.
1172 * ia64-linux-nat.c: Use string.h, not gdb_string.h.
1173 * inf-child.c: Use string.h, not gdb_string.h.
1174 * inf-ptrace.c: Use string.h, not gdb_string.h.
1175 * inf-ttrace.c: Use string.h, not gdb_string.h.
1176 * infcall.c: Use string.h, not gdb_string.h.
1177 * infcmd.c: Use string.h, not gdb_string.h.
1178 * inflow.c: Use string.h, not gdb_string.h.
1179 * infrun.c: Use string.h, not gdb_string.h.
1180 * interps.c: Use string.h, not gdb_string.h.
1181 * iq2000-tdep.c: Use string.h, not gdb_string.h.
1182 * irix5-nat.c: Use string.h, not gdb_string.h.
1183 * jv-exp.y: Use string.h, not gdb_string.h.
1184 * jv-lang.c: Use string.h, not gdb_string.h.
1185 * jv-typeprint.c: Use string.h, not gdb_string.h.
1186 * jv-valprint.c: Use string.h, not gdb_string.h.
1187 * language.c: Use string.h, not gdb_string.h.
1188 * linux-fork.c: Use string.h, not gdb_string.h.
1189 * linux-nat.c: Use string.h, not gdb_string.h.
1190 * lm32-tdep.c: Use string.h, not gdb_string.h.
1191 * m2-exp.y: Use string.h, not gdb_string.h.
1192 * m2-typeprint.c: Use string.h, not gdb_string.h.
1193 * m32c-tdep.c: Use string.h, not gdb_string.h.
1194 * m32r-linux-nat.c: Use string.h, not gdb_string.h.
1195 * m32r-linux-tdep.c: Use string.h, not gdb_string.h.
1196 * m32r-rom.c: Use string.h, not gdb_string.h.
1197 * m32r-tdep.c: Use string.h, not gdb_string.h.
1198 * m68hc11-tdep.c: Use string.h, not gdb_string.h.
1199 * m68k-tdep.c: Use string.h, not gdb_string.h.
1200 * m68kbsd-tdep.c: Use string.h, not gdb_string.h.
1201 * m68klinux-nat.c: Use string.h, not gdb_string.h.
1202 * m68klinux-tdep.c: Use string.h, not gdb_string.h.
1203 * m88k-tdep.c: Use string.h, not gdb_string.h.
1204 * macrocmd.c: Use string.h, not gdb_string.h.
1205 * main.c: Use string.h, not gdb_string.h.
1206 * mdebugread.c: Use string.h, not gdb_string.h.
1207 * mem-break.c: Use string.h, not gdb_string.h.
1208 * memattr.c: Use string.h, not gdb_string.h.
1209 * memory-map.c: Use string.h, not gdb_string.h.
1210 * mep-tdep.c: Use string.h, not gdb_string.h.
1211 * mi/mi-cmd-break.c: Use string.h, not gdb_string.h.
1212 * mi/mi-cmd-disas.c: Use string.h, not gdb_string.h.
1213 * mi/mi-cmd-env.c: Use string.h, not gdb_string.h.
1214 * mi/mi-cmd-stack.c: Use string.h, not gdb_string.h.
1215 * mi/mi-cmd-var.c: Use string.h, not gdb_string.h.
1216 * mi/mi-cmds.c: Use string.h, not gdb_string.h.
1217 * mi/mi-console.c: Use string.h, not gdb_string.h.
1218 * mi/mi-getopt.c: Use string.h, not gdb_string.h.
1219 * mi/mi-interp.c: Use string.h, not gdb_string.h.
1220 * mi/mi-main.c: Use string.h, not gdb_string.h.
1221 * mi/mi-parse.c: Use string.h, not gdb_string.h.
1222 * microblaze-rom.c: Use string.h, not gdb_string.h.
1223 * microblaze-tdep.c: Use string.h, not gdb_string.h.
1224 * mingw-hdep.c: Use string.h, not gdb_string.h.
1225 * minidebug.c: Use string.h, not gdb_string.h.
1226 * minsyms.c: Use string.h, not gdb_string.h.
1227 * mips-irix-tdep.c: Use string.h, not gdb_string.h.
1228 * mips-linux-tdep.c: Use string.h, not gdb_string.h.
1229 * mips-tdep.c: Use string.h, not gdb_string.h.
1230 * mips64obsd-tdep.c: Use string.h, not gdb_string.h.
1231 * mipsnbsd-tdep.c: Use string.h, not gdb_string.h.
1232 * mipsread.c: Use string.h, not gdb_string.h.
1233 * mn10300-linux-tdep.c: Use string.h, not gdb_string.h.
1234 * mn10300-tdep.c: Use string.h, not gdb_string.h.
1235 * monitor.c: Use string.h, not gdb_string.h.
1236 * moxie-tdep.c: Use string.h, not gdb_string.h.
1237 * mt-tdep.c: Use string.h, not gdb_string.h.
1238 * nbsd-tdep.c: Use string.h, not gdb_string.h.
1239 * nios2-linux-tdep.c: Use string.h, not gdb_string.h.
1240 * nto-procfs.c: Use string.h, not gdb_string.h.
1241 * nto-tdep.c: Use string.h, not gdb_string.h.
1242 * objc-lang.c: Use string.h, not gdb_string.h.
1243 * objfiles.c: Use string.h, not gdb_string.h.
1244 * opencl-lang.c: Use string.h, not gdb_string.h.
1245 * osabi.c: Use string.h, not gdb_string.h.
1246 * osdata.c: Use string.h, not gdb_string.h.
1247 * p-exp.y: Use string.h, not gdb_string.h.
1248 * p-lang.c: Use string.h, not gdb_string.h.
1249 * p-typeprint.c: Use string.h, not gdb_string.h.
1250 * parse.c: Use string.h, not gdb_string.h.
1251 * posix-hdep.c: Use string.h, not gdb_string.h.
1252 * ppc-linux-nat.c: Use string.h, not gdb_string.h.
1253 * ppc-sysv-tdep.c: Use string.h, not gdb_string.h.
1254 * ppcfbsd-tdep.c: Use string.h, not gdb_string.h.
1255 * ppcnbsd-tdep.c: Use string.h, not gdb_string.h.
1256 * ppcobsd-tdep.c: Use string.h, not gdb_string.h.
1257 * printcmd.c: Use string.h, not gdb_string.h.
1258 * procfs.c: Use string.h, not gdb_string.h.
1259 * prologue-value.c: Use string.h, not gdb_string.h.
1260 * python/py-auto-load.c: Use string.h, not gdb_string.h.
1261 * python/py-gdb-readline.c: Use string.h, not gdb_string.h.
1262 * ravenscar-thread.c: Use string.h, not gdb_string.h.
1263 * regcache.c: Use string.h, not gdb_string.h.
1264 * registry.c: Use string.h, not gdb_string.h.
1265 * remote-fileio.c: Use string.h, not gdb_string.h.
1266 * remote-m32r-sdi.c: Use string.h, not gdb_string.h.
1267 * remote-mips.c: Use string.h, not gdb_string.h.
1268 * remote-sim.c: Use string.h, not gdb_string.h.
1269 * remote.c: Use string.h, not gdb_string.h.
1270 * reverse.c: Use string.h, not gdb_string.h.
1271 * rs6000-aix-tdep.c: Use string.h, not gdb_string.h.
1272 * ser-base.c: Use string.h, not gdb_string.h.
1273 * ser-go32.c: Use string.h, not gdb_string.h.
1274 * ser-mingw.c: Use string.h, not gdb_string.h.
1275 * ser-pipe.c: Use string.h, not gdb_string.h.
1276 * ser-tcp.c: Use string.h, not gdb_string.h.
1277 * ser-unix.c: Use string.h, not gdb_string.h.
1278 * serial.c: Use string.h, not gdb_string.h.
1279 * sh-tdep.c: Use string.h, not gdb_string.h.
1280 * sh64-tdep.c: Use string.h, not gdb_string.h.
1281 * shnbsd-tdep.c: Use string.h, not gdb_string.h.
1282 * skip.c: Use string.h, not gdb_string.h.
1283 * sol-thread.c: Use string.h, not gdb_string.h.
1284 * solib-dsbt.c: Use string.h, not gdb_string.h.
1285 * solib-frv.c: Use string.h, not gdb_string.h.
1286 * solib-osf.c: Use string.h, not gdb_string.h.
1287 * solib-spu.c: Use string.h, not gdb_string.h.
1288 * solib-target.c: Use string.h, not gdb_string.h.
1289 * solib.c: Use string.h, not gdb_string.h.
1290 * somread.c: Use string.h, not gdb_string.h.
1291 * source.c: Use string.h, not gdb_string.h.
1292 * sparc-nat.c: Use string.h, not gdb_string.h.
1293 * sparc-sol2-tdep.c: Use string.h, not gdb_string.h.
1294 * sparc-tdep.c: Use string.h, not gdb_string.h.
1295 * sparc64-tdep.c: Use string.h, not gdb_string.h.
1296 * sparc64fbsd-tdep.c: Use string.h, not gdb_string.h.
1297 * sparc64nbsd-tdep.c: Use string.h, not gdb_string.h.
1298 * sparcnbsd-tdep.c: Use string.h, not gdb_string.h.
1299 * spu-linux-nat.c: Use string.h, not gdb_string.h.
1300 * spu-multiarch.c: Use string.h, not gdb_string.h.
1301 * spu-tdep.c: Use string.h, not gdb_string.h.
1302 * stabsread.c: Use string.h, not gdb_string.h.
1303 * stack.c: Use string.h, not gdb_string.h.
1304 * std-regs.c: Use string.h, not gdb_string.h.
1305 * symfile.c: Use string.h, not gdb_string.h.
1306 * symmisc.c: Use string.h, not gdb_string.h.
1307 * symtab.c: Use string.h, not gdb_string.h.
1308 * target.c: Use string.h, not gdb_string.h.
1309 * thread.c: Use string.h, not gdb_string.h.
1310 * tilegx-linux-nat.c: Use string.h, not gdb_string.h.
1311 * tilegx-tdep.c: Use string.h, not gdb_string.h.
1312 * top.c: Use string.h, not gdb_string.h.
1313 * tracepoint.c: Use string.h, not gdb_string.h.
1314 * tui/tui-command.c: Use string.h, not gdb_string.h.
1315 * tui/tui-data.c: Use string.h, not gdb_string.h.
1316 * tui/tui-disasm.c: Use string.h, not gdb_string.h.
1317 * tui/tui-file.c: Use string.h, not gdb_string.h.
1318 * tui/tui-layout.c: Use string.h, not gdb_string.h.
1319 * tui/tui-out.c: Use string.h, not gdb_string.h.
1320 * tui/tui-regs.c: Use string.h, not gdb_string.h.
1321 * tui/tui-source.c: Use string.h, not gdb_string.h.
1322 * tui/tui-stack.c: Use string.h, not gdb_string.h.
1323 * tui/tui-win.c: Use string.h, not gdb_string.h.
1324 * tui/tui-windata.c: Use string.h, not gdb_string.h.
1325 * tui/tui-winsource.c: Use string.h, not gdb_string.h.
1326 * typeprint.c: Use string.h, not gdb_string.h.
1327 * ui-file.c: Use string.h, not gdb_string.h.
1328 * ui-out.c: Use string.h, not gdb_string.h.
1329 * user-regs.c: Use string.h, not gdb_string.h.
1330 * utils.c: Use string.h, not gdb_string.h.
1331 * v850-tdep.c: Use string.h, not gdb_string.h.
1332 * valarith.c: Use string.h, not gdb_string.h.
1333 * valops.c: Use string.h, not gdb_string.h.
1334 * valprint.c: Use string.h, not gdb_string.h.
1335 * value.c: Use string.h, not gdb_string.h.
1336 * varobj.c: Use string.h, not gdb_string.h.
1337 * vax-tdep.c: Use string.h, not gdb_string.h.
1338 * vaxnbsd-tdep.c: Use string.h, not gdb_string.h.
1339 * vaxobsd-tdep.c: Use string.h, not gdb_string.h.
1340 * windows-nat.c: Use string.h, not gdb_string.h.
1341 * xcoffread.c: Use string.h, not gdb_string.h.
1342 * xml-support.c: Use string.h, not gdb_string.h.
1343 * xstormy16-tdep.c: Use string.h, not gdb_string.h.
1344 * xtensa-linux-nat.c: Use string.h, not gdb_string.h.
1345
1346 2013-11-18 Tom Tromey <tromey@redhat.com>
1347
1348 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add strerror
1349 and strstr.
1350 * gnulib/aclocal.m4: Update.
1351 * gnulib/config.in: Update.
1352 * gnulib/configure: Update.
1353 * gnulib/import/Makefile.am: Update.
1354 * gnulib/import/Makefile.in: Update.
1355 * gnulib/import/errno.in.h: New.
1356 * gnulib/import/intprops.h: New.
1357 * gnulib/import/m4/errno_h.m4: New.
1358 * gnulib/import/m4/gnulib-cache.m4: Update.
1359 * gnulib/import/m4/gnulib-comp.m4: Update.
1360 * gnulib/import/m4/strerror.m4: New.
1361 * gnulib/import/m4/strstr.m4: New.
1362 * gnulib/import/m4/sys_socket_h.m4: New.
1363 * gnulib/import/strerror-override.c: New.
1364 * gnulib/import/strerror-override.h: New.
1365 * gnulib/import/strerror.c: New.
1366 * gnulib/import/strstr.c: New.
1367
1368 2013-11-18 Tom Tromey <tromey@redhat.com>
1369
1370 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Split into
1371 multiple lines.
1372
1373 2013-11-18 Jose E. Marchesi <jose.marchesi@oracle.com>
1374
1375 * sparc-tdep.c (sparc_is_annulled_branch_insn): New function.
1376 * sparc-tdep.h: And its prototype.
1377
1378 * sparc64-linux-tdep.c (sparc64_linux_get_longjmp_target): New
1379 function.
1380 (sparc64_linux_init_abi): Register the get_longjmp_target hook.
1381
1382 2013-11-18 Pedro Alves <palves@redhat.com>
1383
1384 * dwarf2-frame.c (read_addr_from_reg): Remove stale comment and
1385 use unpack_pointer.
1386
1387 2013-11-18 Joel Brobecker <brobecker@adacore.com>
1388
1389 * mi/mi-main.c (mi_cmd_list_features): Add "language-options"
1390 to -list-features output.
1391
1392 2013-11-17 Joel Brobecker <brobecker@adacore.com>
1393
1394 * dwarf2expr.h (struct dwarf_expr_context_funcs)
1395 <read_addr_from_reg>: Renames "read_reg".
1396 * dwarf2-frame.c (read_addr_from_reg): Renames "read_reg".
1397 Adjust comment.
1398 (dwarf2_frame_ctx_funcs, execute_stack_op, dwarf2_frame_cache):
1399 Use read_addr_from_reg in place of read_reg.
1400 * dwarf2expr.c (execute_stack_op): Use read_addr_from_reg
1401 in place of read_reg.
1402 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Renames
1403 dwarf_expr_read_reg.
1404 (dwarf_expr_ctx_funcs): Replace dwarf_expr_read_reg
1405 with dwarf_expr_read_addr_from_reg.
1406 (needs_frame_read_addr_from_reg): Renames needs_frame_read_reg.
1407 (needs_frame_ctx_funcs): Replace needs_frame_read_reg with
1408 needs_frame_read_addr_from_reg.
1409
1410 2013-11-15 Jan Kratochvil <jan.kratochvil@redhat.com>
1411
1412 * NEWS (Changes in GDB 7.5) (New commands) (explore): Fix typo.
1413
1414 2013-11-15 Andreas Arnez <arnez@linux.vnet.ibm.com>
1415
1416 * dwarf2loc.c (chain_candidate): Prevent invoking memcpy with
1417 NULL.
1418
1419 2013-11-15 Tom Tromey <tromey@redhat.com>
1420
1421 PR c++/16117:
1422 * c-exp.y (lex_one_token): Add "is_quoted_name" argument.
1423 (classify_name): Likewise. Prefer a field of "this" over a
1424 filename.
1425 (classify_inner_name, yylex): Update.
1426
1427 2013-11-15 Joel Brobecker <brobecker@adacore.com>
1428
1429 * dwarf2expr.h (struct dwarf_expr_context_funcs) <read_reg>:
1430 Extend the documentation a bit.
1431 <get_reg_value>: New field.
1432 * dwarf2loc.c (dwarf_expr_get_reg_value)
1433 (needs_frame_get_reg_value): New functions.
1434 (dwarf_expr_ctx_funcs, needs_frame_ctx_funcs): Add "get_reg_value"
1435 callback.
1436 * dwarf2-frame.c (get_reg_value): New function.
1437 (dwarf2_frame_ctx_funcs): Add "get_reg_value" callback.
1438 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_regval_type>:
1439 Use new callback to compute result_val.
1440
1441 2013-11-15 Alan Modra <amodra@gmail.com>
1442
1443 * ppc64-tdep.c (ppc64_plt_entry_point): Renamed from..
1444 (ppc64_desc_entry_point): ..this. Update comments here and at
1445 call points.
1446 (ppc64_standard_linkage1, ppc64_standard_linkage2,
1447 ppc64_standard_linkage3): Update comments.
1448 (ppc64_standard_linkage4, ppc64_standard_linkage5,
1449 (ppc64_standard_linkage6, ppc64_standard_linkage7): New insn
1450 patterns.
1451 (ppc64_standard_linkage4_target): New function.
1452 (ppc64_skip_trampoline_code): Skip ELFv2 patterns too.
1453 * rs6000-tdep.c (skip_prologue): Skip ELFv2 r2 setup. Correct
1454 nop match. Fix comment wrap.
1455
1456 2013-11-14 Pedro Alves <palves@redhat.com>
1457
1458 * infrun.c (handle_signal_stop): Move STOP_QUIETLY,
1459 STOP_QUIETLY_REMOTE and 'stop_after_trap' handling earlier.
1460
1461 2013-11-14 Pedro Alves <palves@redhat.com>
1462
1463 * infrun.c (struct execution_control_state)
1464 <stepped_after_stopped_by_watchpoint>: New field.
1465 (get_inferior_stop_soon): New function.
1466 (handle_inferior_event): 'stepped_after_stopped_by_watchpoint' was
1467 moved to struct execution_control_state -- adjust. Use
1468 get_inferior_stop_soon. Split TARGET_WAITKIND_STOPPED handling to
1469 new function.
1470 (handle_signal_stop): New function, factored out from
1471 handle_inferior_event.
1472
1473 2013-11-14 Pedro Alves <palves@redhat.com>
1474
1475 * break-catch-sig.c (signal_catchpoint_explains_signal): Adjust to
1476 return a boolean.
1477 * breakpoint.c (bpstat_explains_signal): Adjust to return a
1478 boolean.
1479 (explains_signal_watchpoint, base_breakpoint_explains_signal):
1480 Adjust to return a boolean.
1481 * breakpoint.h (enum bpstat_signal_value): Delete.
1482 (struct breakpoint_ops) <explains_signal>: New returns a boolean.
1483 (bpstat_explains_signal): Likewise.
1484 * infrun.c (handle_inferior_event) <random signal checks>:
1485 bpstat_explains_signal now returns a boolean - adjust. No longer
1486 consider hiding signals.
1487
1488 2013-11-14 Pedro Alves <palves@redhat.com>
1489
1490 * breakpoint.c (bpstat_explains_signal) <Moribund locations>:
1491 Return BPSTAT_SIGNAL_PASS instead of BPSTAT_SIGNAL_HIDE.
1492 (explains_signal_watchpoint): Return BPSTAT_SIGNAL_PASS instead of
1493 BPSTAT_SIGNAL_HIDE.
1494 (base_breakpoint_explains_signal): Return BPSTAT_SIGNAL_PASS
1495 instead of BPSTAT_SIGNAL_HIDE.
1496 * infrun.c (handle_inferior_event): Rework random signal checks.
1497
1498 2013-11-14 Pedro Alves <palves@redhat.com>
1499
1500 * infrun.c (struct execution_control_state): Remove
1501 'random_signal' field.
1502 (handle_syscall_event): Use bpstat_causes_stop instead of
1503 bpstat_explains_signal. Don't set ecs->random_signal.
1504 (handle_inferior_event): New 'random_signal' local.
1505 <TARGET_WAITKIND_FORKED, TARGET_WAITKIND_VFORKED,
1506 TARGET_WAITKIND_EXECD>: Use bpstat_causes_stop instead of
1507 bpstat_explains_signal. Don't set ecs->random_signal.
1508 <TARGET_WAITKIND_STOPPED>: Adjust to use local instead of
1509 ecs->random_signal.
1510
1511 2013-11-14 Pedro Alves <palves@redhat.com>
1512
1513 * infrun.c (handle_inferior_event): Move comment from the
1514 function's body to the function's description, adjusted.
1515
1516 2013-11-14 Pedro Alves <palves@redhat.com>
1517
1518 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
1519 Handle STOP_QUIETLY_NO_SIGSTOP and STOP_QUIETLY_REMOTE here.
1520 Assert we never fall through out of the TARGET_WAITKIND_LOADED
1521 case.
1522
1523 2013-11-14 Tom Tromey <tromey@redhat.com>
1524
1525 * python/py-linetable.c (ltpy_has_line)
1526 (ltpy_get_all_source_lines): Fix loop termination condition.
1527
1528 2013-11-14 Joel Brobecker <brobecker@adacore.com>
1529
1530 * mi/mi-parse.h (struct mi_parse) <language>: New field.
1531 * mi/mi-main.c (mi_cmd_execute): Temporarily set language to
1532 PARSE->LANGUAGE during command execution, if set.
1533 * mi/mi-parse.c: Add "language.h" #include.
1534 (mi_parse): Add parsing of "--language" command option.
1535
1536 * NEWS: Add entry mentioning the new "--language" command option.
1537
1538 2013-11-14 Pedro Alves <palves@redhat.com>
1539 Joel Brobecker <brobecker@adacore.com>
1540
1541 * cli/cli-utils.h (extract_arg_const): Add declaration.
1542 * cli/cli-utils.c (extract_arg_const): New function.
1543 (extract_arg): Reimplement using extract_arg_const.
1544
1545 2013-11-14 Joel Brobecker <brobecker@adacore.com>
1546
1547 * language.h: Add "symtab.h" #include.
1548
1549 2013-11-13 Doug Evans <xdje42@gmail.com>
1550
1551 * breakpoint.c (bpstat_check_breakpoint_conditions): For thread
1552 specific breakpoints, don't evaluate breakpoint condition if
1553 different thread.
1554
1555 2013-11-13 Keith Seitz <keiths@redhat.com>
1556
1557 PR c++/7935
1558 PR c++/10541
1559 * cp-support.c (insepct_type): Add support for substituting
1560 namespace aliases, too.
1561 * dwarf2read.c (scan_partial_symbols): Add a partial symbol
1562 for DW_TAG_imported_declaration.
1563 (add_partial_symbol): Likewise.
1564 (process_die): Handle namespace aliases with
1565 read_namespace_alias.
1566 (die_needs_namespace): Add DW_TAG_imported_declaration.
1567 (read_namespace_alias): New function.
1568 (load_partial_dies): Load DW_TAG_imported_declaration, too.
1569 (new_symbol_full): Handle DW_TAG_imported_declaration.
1570
1571 2013-11-13 Keith Seitz <keiths@redhat.com>
1572
1573 * p-exp.y (uptok): Make first parameter const.
1574 (yylex): Make `tokstart' and `tokptr' const.
1575 Don't copy the lexer input to a temporary buffer.
1576 Make `p' const.
1577 Remove const workaround for parse_escape.
1578 Create a temporary buffer for a convenience variable instead
1579 of doing in-place modification of the input.
1580 If a match is found with a different case from the input,
1581 do not change the input at all.
1582 Use `tmp' to construct the resultant stoken instead of
1583 `tokstart'.
1584
1585 2013-11-13 Doug Evans <xdje42@gmail.com>
1586
1587 * breakpoint.c (breakpoint_cond_eval): Fix and enhance comment.
1588
1589 2013-11-13 Joel Brobecker <brobecker@adacore.com>
1590
1591 * mi/mi-main.c (mi_cmd_list_features): Replace "info-ada-exceptions"
1592 entry with "ada-exceptions".
1593
1594 2013-11-13 Joel Brobecker <brobecker@adacore.com>
1595
1596 * symfile.c (reread_symbols): Move call to set_objfile_per_bfd
1597 after re-initialization of OBJFILE's obstack.
1598
1599 2013-11-12 Doug Evans <xdje42@gmail.com>
1600
1601 * breakpoint.c (bpstat_check_breakpoint_conditions): Assert
1602 bs->stop != 0 on entry. Update function comment. Simplify early
1603 exit for frame mismatch. Reindent rest of function.
1604
1605 2013-11-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
1606
1607 * objc-lang.c (uniquify_strings): Prevent invoking qsort with
1608 NULL.
1609
1610 2013-11-12 Doug Evans <dje@google.com>
1611
1612 Work around gold/15646.
1613 * dwarf2read.c (read_index_from_section): Update comment.
1614 (struct dw2_symtab_iterator): New member global_seen.
1615 (dw2_symtab_iter_init): Initialize it.
1616 (dw2_symtab_iter_next): Skip duplicate global symbols.
1617 (dw2_expand_symtabs_matching): Ditto.
1618
1619 2013-11-12 Joel Brobecker <brobecker@adacore.com>
1620
1621 * mi/mi-cmds.h (mi_cmd_info_ada_exceptions): Add declaration.
1622 * mi/mi-cmds.c (mi_cmds): Add entry for -info-ada-exceptions
1623 command.
1624 * mi/mi-cmd-info.c: #include "ada-lang.c" and "arch-utils.c".
1625 (mi_cmd_info_ada_exceptions): New function.
1626 * mi/mi-main.c (mi_cmd_list_features): Add "info-ada-exceptions".
1627
1628 2013-11-12 Joel Brobecker <brobecker@adacore.com>
1629
1630 * ada-lang.h: #include "vec.h".
1631 (struct ada_exc_info): New.
1632 (ada_exc_info): New typedef.
1633 (DEF_VEC_O(ada_exc_info)): New vector.
1634 (ada_exceptions_list): Add declaration.
1635 * ada-lang.c (ada_is_exception_sym)
1636 (ada_is_non_standard_exception_sym, compare_ada_exception_info)
1637 (sort_remove_dups_ada_exceptions_list)
1638 (ada_exc_search_name_matches, ada_add_standard_exceptions)
1639 (ada_add_exceptions_from_frame, ada_add_global_exceptions)
1640 (ada_exceptions_list_1, ada_exceptions_list)
1641 (info_exceptions_command): New function.
1642 (_initialize_ada_language): Add "info exception" command.
1643
1644 2013-11-11 Phil Muldoon <pmuldoon@redhat.com>
1645
1646 PR python/15629
1647 * NEWS: Add linetable feature.
1648 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-linetable entries.
1649 * python/py-linetable.c: New file.
1650 * python/py-symtab.c (stpy_get_linetable): New function.
1651 * python/python-internal.h (symtab_to_linetable_object): Declare.
1652 (gdbpy_initialize_linetable): Ditto.
1653 * python/python.c (_initialize_python): Call
1654 gdbpy_initialize_linetable.
1655
1656 2013-11-11 Joel Brobecker <brobecker@adacore.com>
1657
1658 * ada-lang.c (create_ada_exception_catchpoint): Enhance
1659 the documentation of fields "except_string" and "condition".
1660 * mi/mi-cmd-catch.c (mi_cmd_catch_assert): Reallocate
1661 CONDITION on the heap before passing it to
1662 create_ada_exception_catchpoint.
1663 (mi_cmd_catch_exception): Likewise for EXCEPTION_NAME and
1664 CONDITION.
1665
1666 2013-11-11 Tom Tromey <tromey@redhat.com>
1667
1668 * config.in, configure: Rebuild.
1669 * configure.ac (HAVE_TKILL_SYSCALL): Check for "syscall".
1670
1671 2013-11-11 Joel Brobecker <brobecker@adacore.com>
1672
1673 * remote-sim.c (gdbsim_detach): Break declaration into
1674 shorter lines. No code change.
1675
1676 2013-11-11 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
1677
1678 * remote-sim.c (gdbsim_detach): Fix prototype.
1679
1680 2013-11-08 Doug Evans <dje@google.com>
1681
1682 * dwarf2read.c (dwarf2_read_debug): Change to unsigned int.
1683 (create_debug_types_hash_table): Only print debugging messages for
1684 each TU if dwarf2-read >= 2.
1685 (process_queue): Ditto.
1686 (_initialize_dwarf2_read): Make "set debug dwarf2-read" a zuinteger.
1687 Update doc string.
1688
1689 2013-11-08 Tom Tromey <tromey@redhat.com>
1690
1691 * configure: Rebuild.
1692 * configure.ac: Remove mentions of HAVE_MULTIPLE_PROC_FDS.
1693
1694 2013-11-08 Tom Tromey <tromey@redhat.com>
1695
1696 * configure, config.in: Rebuild.
1697 * configure.ac: Remove unused configury.
1698
1699 2013-11-08 Tom Tromey <tromey@redhat.com>
1700
1701 * m32c-tdep.c: Use gdb_string.h.
1702
1703 2013-11-08 Tom Tromey <tromey@redhat.com>
1704
1705 * configure, config.in: Rebuild.
1706 * configure.ac: Remove all link.h-related checks.
1707
1708 2013-11-08 Tom Tromey <tromey@redhat.com>
1709
1710 * acinclude.m4: Include common.m4.
1711 * common/common.m4: New file.
1712 * configure, config.in: Rebuild.
1713 * configure.ac: Use GDB_AC_COMMON.
1714
1715 2013-11-08 Doug Evans <dje@google.com>
1716
1717 * NEWS: Mention that "set debug symtab-create" now accepts a
1718 verbosity level.
1719 * buildsym.c (end_symtab_from_static_block): Call set_symtab_primary
1720 to set the symtab's primary flag.
1721 * jit.c (finalize_symtab): Ditto.
1722 * mdebugread.c (psymtab_to_symtab_1): Ditto.
1723 * symfile.c (allocate_symtab): Only print debugging messages for
1724 symtab_create_debug levels 2 and higher.
1725 * symtab.c (symtab_create_debug): Change type to unsigned int.
1726 (set_symtab_primary): New function.
1727 (_initialize_symtab): Change "set debug symtab-create" to a
1728 zuinteger option.
1729 * symtab.h (set_symtab_primary): Declare.
1730 (symtab_create_debug): Update decl.
1731
1732 2013-11-08 Tom Tromey <tromey@redhat.com>
1733
1734 * aix-thread.c (aix_thread_detach): Update.
1735 * corelow.c (core_detach): Update.
1736 * darwin-nat.c (darwin_detach): Update.
1737 * dec-thread.c (dec_thread_detach): Update.
1738 * gnu-nat.c (gnu_detach): Update.
1739 * go32-nat.c (go32_detach): Update.
1740 * inf-ptrace.c (inf_ptrace_detach): Update.
1741 * inf-ttrace.c (inf_ttrace_detach): Update.
1742 * linux-fork.c (linux_fork_detach): Update.
1743 * linux-fork.h (linux_fork_detach): Update.
1744 * linux-nat.c (linux_nat_detach): Update. Introduce "tem"
1745 local for const-correctness.
1746 * linux-thread-db.c (thread_db_detach): Update.
1747 * monitor.c (monitor_detach): Update.
1748 * nto-procfs.c (procfs_detach): Update.
1749 * procfs.c (procfs_detach): Update.
1750 * record.c (record_detach): Update.
1751 * record.h (record_detach): Update.
1752 * remote-m32r-sdi.c (m32r_detach): Update.
1753 * remote-mips.c (mips_detach): Update.
1754 * remote-sim.c (gdbsim_detach): Update.
1755 * remote.c (remote_detach_1, remote_detach)
1756 (extended_remote_detach): Update.
1757 * sol-thread.c (sol_thread_detach): Update.
1758 * target.c (target_detach): Make "args" const.
1759 (init_dummy_target): Update.
1760 * target.h (struct target_ops) <to_detach>: Make argument const.
1761 (target_detach): Likewise.
1762 * windows-nat.c (windows_detach): Update.
1763
1764 2013-11-07 Doug Evans <dje@google.com>
1765
1766 PR 11786
1767 * solib-svr4.c (svr4_exec_displacement): Ignore filesz, memsz, flags
1768 and align fields for PT_GNU_RELRO segments.
1769
1770 2013-11-07 Phil Muldoon <pmuldoon@redhat.com>
1771
1772 PR python/15747
1773 * python/py-cmd.c: Add COMPLETE_EXPRESSION constant.
1774
1775 2013-11-07 Phil Muldoon <pmuldoon@redhat.com>
1776
1777 * NEWS: Document Python temporary breakpoint support.
1778 * python/py-breakpoint.c (bppy_get_temporary): New function.
1779 (bppy_init): New keyword: temporary. Parse it and set breakpoint
1780 to temporary if True.
1781
1782 2013-11-07 Jose E. Marchesi <jose.marchesi@oracle.com>
1783
1784 * sparc-tdep.c (sparc_analyze_control_transfer): Assertion
1785 removed to allow analyzing unconditional branch instructions
1786 with PC-relative offsets of zero.
1787
1788 2013-11-07 Yao Qi <yao@codesourcery.com>
1789
1790 * mi/mi-cmd-var.c: Include "language.h".
1791 (mi_cmd_var_info_expression): Get language name from
1792 language_defn.
1793 * varobj.c (varobj_language_string): Remove.
1794 (variable_language): Remove declaration.
1795 (languages): Remove.
1796 (varobj_get_language): Change the type of return value.
1797 (variable_language): Remove.
1798 * varobj.h (enum varobj_languages): Remove.
1799 (varobj_language_string): Remove declaration.
1800 (varobj_get_language): Update declaration.
1801
1802 2013-11-07 Yao Qi <yao@codesourcery.com>
1803
1804 * language.h (struct language_defn) <la_natural_name>: New
1805 field.
1806 * ada-lang.c (ada_language_defn): Initialize field
1807 'la_natural_name'.
1808 * c-lang.c (c_language_defn): Likewise.
1809 (cplus_language_defn, asm_language_defn): Likewise.
1810 * d-lang.c (d_language_defn): Likewise.
1811 * f-lang.c (f_language_defn): Likewise.
1812 * go-lang.c (go_language_defn): Likewise.
1813 * jv-lang.c (java_language_defn): Likewise.
1814 * language.c (unknown_language_defn ): Likewise.
1815 (auto_language_defn): Likewise.
1816 * m2-lang.c (m2_language_defn): Likewise.
1817 * objc-lang.c (objc_language_defn): Likewise.
1818 * opencl-lang.c (opencl_language_defn): Likewise.
1819 * p-lang.c (pascal_language_defn): Likewise.
1820
1821 2013-11-07 Yao Qi <yao@codesourcery.com>
1822
1823 * language.c (language_str): Return const char *.
1824 (add_language): Add const to 'language_names'
1825 * language.h (struct language_defn) <la_name>: Add const.
1826 (language_str: Update declaration.
1827
1828 2013-11-06 Andreas Arnez <arnez@linux.vnet.ibm.com>
1829
1830 * s390-linux-nat.c (s390_read_description): Consider the TE field
1831 in the HWCAP for determining 'have_regset_tdb'.
1832
1833 2013-11-06 Will Newton <will.newton@linaro.org>
1834
1835 PR gdb/12866
1836 * dwarf2read.c (skip_one_die): Sanity check DW_AT_sibling
1837 values. (read_partial_die): Likewise.
1838
1839 2013-11-06 Muhammad Bilal <mbilal@codesourcery.com>
1840
1841 PR cli/16122
1842 * top.c (command_line_input): Unify interactivity tests to use
1843 input_from_terminal_p.
1844 * event-top.c (command_line_handler): Likewise.
1845
1846 2013-11-06 Yao Qi <yao@codesourcery.com>
1847
1848 * Makefile.in (check-perf): New target.
1849
1850 2013-11-05 Will Newton <will.newton@linaro.org>
1851
1852 PR gdb/7670
1853 * arm-tdep.c (print_fpu_flags): Use filtered output routines.
1854 (arm_print_float_info): Likewise.
1855
1856 2013-11-04 Anton Blanchard <anton@samba.org>
1857
1858 * target.c (memory_xfer_partial): Cap write to 4KB.
1859
1860 2013-11-01 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
1861
1862 * breakpoint.c (create_longjmp_master_breakpoint): Allow libc
1863 probe scan even when the arch provides no get_longjmp_target.
1864
1865 2013-10-31 Pedro Alves <palves@redhat.com>
1866
1867 * infrun.c (handle_syscall_event): Don't set or clear stop_signal.
1868 (handle_inferior_event) <TARGET_WAITKIND_FORKED,
1869 TARGET_WAITKIND_VFORKED>: Don't set stop_signal to
1870 GDB_SIGNAL_TRAP, or clear it. Pass GDB_SIGNAL_0 to
1871 bpstat_explains signal, instead of GDB_SIGNAL_TRAP.
1872 <bpstat handling>: If the bpstat chain wants the signal to be
1873 hidden, then set stop_signal to GDB_SIGNAL_0 instead of
1874 GDB_SIGNAL_TRAP.
1875
1876 2013-10-31 Andrew Burgess <aburgess@broadcom.com>
1877
1878 * breakpoint.c (update_watchpoint): Update error message and add
1879 an additional error message.
1880
1881 2013-10-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1882
1883 * s390-tdep.h: Rename to...
1884 * s390-linux-tdep.h: ...here.
1885 * s390-tdep.c: Rename to...
1886 * s390-linux-tdep.c: ...here. Adjust #include.
1887 * s390-nat.c: Rename to...
1888 * s390-linux-nat.c: ...here. Adjust #include.
1889 * config/s390/s390.mh: Rename to...
1890 * config/s390/linux.mh: ...here. Reflect rename s390-nat.o ->
1891 s390-linux-nat.o.
1892 * configure.host: Reflect host rename "s390" -> "linux".
1893 * configure.tgt: Reflect rename s390-tdep.o -> s390-linux-tdep.o.
1894 * Makefile.in (ALL_TARGET_OBS): Likewise.
1895 (HFILES_NO_SRCDIR): Reflect rename s390-tdep.h ->
1896 s390-linux-tdep.h.
1897 (ALLDEPFILES): Reflect rename of .c files.
1898
1899 2013-10-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1900
1901 * s390-nat.c: Whitespace cleanup.
1902 * s390-tdep.c: Likewise.
1903 * s390-tdep.h: Remove empty line at end of file.
1904
1905 2013-10-30 Maciej W. Rozycki <macro@codesourcery.com>
1906
1907 * linux-tdep.c (linux_corefile_thread_callback): Preinitialize
1908 siginfo_size.
1909
1910 2013-10-29 Tom Tromey <tromey@redhat.com>
1911
1912 * utils.c (reg): Move undefinition...
1913 * gdb_curses.h: ... here. Update comment to mention AIX.
1914
1915 2013-10-29 Nicolas Blanc <nicolas.blanc@intel.com>
1916
1917 * exec.h (add_target_sections_of_objfile): New declaration.
1918 * exec.c (add_target_sections_of_objfile): New function.
1919 * symfile.c (add_symbol_file_command): Update current target sections.
1920 (remove_symbol_file_command): New command.
1921 (symfile_free_objfile): New function.
1922 (_initialize_symfile): Register observer for free_objfile events.
1923 * NEWS: Add description of the remove-symbol-file command.
1924 * breakpoint.c (disable_breakpoints_in_freed_objfile): New function.
1925 * objfiles.c (free_objfile): Notify free_objfile.
1926 (is_addr_in_objfile): New function.
1927 * objfiles.h (is_addr_in_objfile): New declaration.
1928 * printcmd.c (clear_dangling_display_expressions): Act upon free_objfile
1929 events instead of solib_unloaded events.
1930 (_initialize_printcmd): Register observer for free_objfile instead
1931 of solib_unloaded notifications.
1932 * solib.c (remove_user_added_objfile): New function.
1933 (_initialize_symfile): Add remove-symbol-file.
1934
1935 2013-10-29 Andrew Burgess <aburgess@broadcom.com>
1936
1937 * infcmd.c (default_print_one_register_info): Use val_print to
1938 print all values even optimized out or unavailable ones. Don't
1939 try to print a raw form of optimized out or unavailable values.
1940
1941 2013-10-29 Yao Qi <yao@codesourcery.com>
1942
1943 * auto-load.c (auto_load_pspace_data_cleanup): Get data from
1944 parameter 'arg' instead of from program_space_data.
1945 * objfiles.c (objfiles_pspace_data_cleanup): Likewise.
1946 * solib-darwin.c (darwin_pspace_data_cleanup): Likewise.
1947 * solib-dsbt.c (dsbt_pspace_data_cleanup): Likewise.
1948 * solib-svr4.c (svr4_pspace_data_cleanup): Likewise.
1949 * inflow.c (inflow_inferior_data_cleanup): Get data from
1950 parameter 'arg' instead of inferior_data.
1951 * registry.h: Add comments.
1952
1953 2013-10-28 Pedro Alves <palves@redhat.com>
1954
1955 * breakpoint.c (watchpoints_triggered)
1956 <!target_stopped_data_address>: Hardcode return 1.
1957
1958 2013-10-28 Pedro Alves <palves@redhat.com>
1959
1960 * infrun.c (process_event_stop_test): Remove unnecessary scoping
1961 level and reindent.
1962
1963 2013-10-28 Pedro Alves <palves@redhat.com>
1964
1965 * infrun.c (process_event_stop_test): New function, factored out
1966 from handle_inferior_event.
1967 (handle_inferior_event): 'process_event_stop_test' is now a
1968 function instead of a goto label -- adjust.
1969
1970 2013-10-28 Pedro Alves <palves@redhat.com>
1971
1972 * infrun.c (handle_inferior_event): Move process_event_stop_test
1973 goto label to the else branch of the ecs->random_signal check,
1974 along with FRAME and GDBARCH re-fetching.
1975
1976 2013-10-28 Pedro Alves <palves@redhat.com>
1977
1978 * infrun.c (switch_back_to_stepped_thread): New function, factored
1979 out from handle_inferior_event.
1980 (handle_inferior_event): Adjust to call
1981 switch_back_to_stepped_thread. Call it also at the tail of the
1982 random signal handling, and return, instead of also handling
1983 random signals just before the stepping tests.
1984
1985 2013-10-28 Pedro Alves <palves@redhat.com>
1986
1987 * infrun.c (clear_stop_func): Delete.
1988 (handle_inferior_event): Don't call clear_stop_func and don't
1989 clear 'ecs->random_signal'.
1990
1991 2013-10-27 Yao Qi <yao@codesourcery.com>
1992
1993 * varobj.c (struct varobj_root) <lang>: Rename to 'lang_ops'.
1994 (varobj_create, varobj_get_path_expr): Update.
1995 (varobj_value_has_mutated, varobj_update): Likewise.
1996 (create_child_with_value, new_root_variable): Likewise.
1997 (number_of_children, name_of_variable): Likewise.
1998 (value_of_child, my_value_of_variable): Likewise.
1999 (varobj_value_is_changeable_p): Likewise.
2000
2001 2013-10-25 Yao Qi <yao@codesourcery.com>
2002
2003 * language.h (struct lang_varobj_ops): Declare.
2004 (struct language_defn) <la_varobj_ops>: New field.
2005 * ada-lang.c: Include "varobj.h"
2006 (defn ada_language_defn): Initialize field 'la_varobj_ops' with
2007 ada_varobj_ops.
2008 * c-lang.c: Include "varobj.h"
2009 (c_language_defn): Initialize field 'la_varobj_ops' with
2010 c_varobj_ops.
2011 (cplus_language_defn): Initialize field 'la_varobj_ops' with
2012 cplus_varobj_ops.
2013 (asm_language_defn): Initialize field 'la_varobj_ops' with
2014 default_varobj_ops.
2015 (minimal_language_defn): Likewise.
2016 * d-lang.c (d_language_defn): Likewise.
2017 * f-lang.c (f_language_defn): Likewise.
2018 * go-lang.c (go_language_defn): Likewise.
2019 * m2-lang.c (m2_language_defn): Likewise.
2020 * objc-lang.c (objc_language_defn): Likewise.
2021 * opencl-lang.c (opencl_language_defn): Likewise.
2022 * p-lang.c (pascal_language_defn): Likewise.
2023 * language.c (unknown_language_defn): Likewise.
2024 (auto_language_defn): Likewise.
2025 (local_language_defn): Likewise.
2026 * jv-lang.c (java_language_defn): Initialize field
2027 'la_varobj_ops' with java_varobj_ops.
2028 * varobj.c (varobj_create): Update.
2029 * varobj.h (default_varobj_ops): Define macro.
2030
2031 2013-10-25 Pedro Alves <palves@redhat.com>
2032
2033 * cp-valprint.c (cp_print_value_fields): No longer handle a NULL
2034 static field value.
2035 (cp_print_static_field): If the value is entirely optimized out,
2036 print <optimized out> here.
2037 * jv-valprint.c (java_print_value_fields): No longer handle a NULL
2038 static field value.
2039 * p-valprint.c (pascal_object_print_static_field): If the value is
2040 entirely optimized out, print <optimized out> here.
2041 * valops.c (do_search_struct_field)
2042 (value_struct_elt_for_reference): No longer handle a NULL static
2043 field value.
2044 * value.c (value_static_field): Return an optimized out value
2045 instead of NULL.
2046
2047 2013-10-25 Yao Qi <yao@codesourcery.com>
2048
2049 * remote.c (remote_traceframe_info): Return early if
2050 traceframe is not selected.
2051
2052 2013-10-25 Yao Qi <yao@codesourcery.com>
2053
2054 * tracepoint.c (traceframe_fun): Remove.
2055 (traceframe_sal): Remove.
2056 (set_traceframe_context): Add local variables.
2057
2058 2013-10-25 Joel Brobecker <brobecker@adacore.com>
2059
2060 * varobj.h (struct lang_varobj_ops): Remove spaces between '*'
2061 and parameter name.
2062
2063 2013-10-24 Maciej W. Rozycki <macro@codesourcery.com>
2064
2065 * linux-tdep.c (linux_corefile_thread_callback): Propagate any
2066 failure from register information collection.
2067
2068 2013-10-24 Maciej W. Rozycki <macro@codesourcery.com>
2069
2070 * linux-tdep.c (linux_corefile_thread_data): Remove `num_notes'
2071 member.
2072 (linux_corefile_thread_callback): Update accordingly.
2073 (linux_make_corefile_notes): Likewise.
2074
2075 2013-10-24 Pedro Alves <palves@redhat.com>
2076
2077 * NEWS (New options): Mention set/show startup-with-shell.
2078 * config/alpha/nm-osf3.h (START_INFERIOR_TRAPS_EXPECTED): Set to 2
2079 instead of 3.
2080 * fork-child.c (fork_inferior, startup_inferior): Handle 'set
2081 startup-with-shell'.
2082 (show_startup_with_shell): New function.
2083 (_initialize_fork_child): Register the set/show startup-with-shell
2084 commands.
2085 * inf-ptrace.c (inf_ptrace_create_inferior): Remove comment.
2086 * inf-ttrace.c (inf_ttrace_him): Remove comment.
2087 * procfs.c (procfs_init_inferior): Remove comment.
2088 * infcmd.c (startup_with_shell): New global.
2089 * inferior.h (startup_with_shell): Declare global.
2090 (STARTUP_WITH_SHELL): Delete.
2091 (START_INFERIOR_TRAPS_EXPECTED): Set to 1 by default instead of 2.
2092
2093 2013-10-23 Pedro Alves <palves@redhat.com>
2094
2095 * common/gdb_signals.h (gdb_signal_to_symbol_string): Declare.
2096 * common/signals.c: Include "gdb_assert.h".
2097 (signals): New field 'symbol'.
2098 (SET): Use the 'symbol' parameter.
2099 (gdb_signal_to_symbol_string): New function.
2100 * infrun.c (handle_inferior_event) <random signal>: In debug
2101 output, print the random signal enum as string in addition to its
2102 number.
2103 * target/waitstatus.c (target_waitstatus_to_string): Print the
2104 signal's enum value as string instead of the (POSIX) signal name.
2105
2106 2013-10-23 Gary Benson <gbenson@redhat.com>
2107
2108 PR 16013
2109 * common/linux-osdata.c (command_from_pid): Reduced size of cmd
2110 from 32 to 18. Adjusted fscanf format string accordingly.
2111 (Avoids leaving cmd unterminated.)
2112 (print_sockets): Do not parse tlen, inode, sl, timeout, txq, rxq,
2113 trun, retn or extra. (Avoids leaving extra unterminated.) Check
2114 that local_address and remote_address will not overflow.
2115 (linux_xfer_osdata_modules): Parse lines using strtok to avoid
2116 leaving dependencies unterminated. Parse size as "%u" to match
2117 definition.
2118
2119 2013-10-22 Pedro Alves <palves@redhat.com>
2120
2121 * infrun.c (handle_inferior_event) <thread hop>: Don't clear or
2122 set ecs->random signal.
2123
2124 2013-10-22 Pedro Alves <palves@redhat.com>
2125
2126 * infrun.c (keep_going): Update comments.
2127
2128 2013-10-22 Pedro Alves <palves@redhat.com>
2129
2130 * remote.c (remote_parse_stop_reply) <'T'/'S'/'X' replies>: Map
2131 invalid signal numbers to GDB_SIGNAL_UNKNOWN.
2132
2133 2013-10-22 Pedro Alves <palves@redhat.com>
2134
2135 * include/gdb/signals.def (TARGET_EXC_BAD_ACCESS): Rename to
2136 GDB_EXC_BAD_ACCESS.
2137 (TARGET_EXC_BAD_INSTRUCTION): Rename to GDB_EXC_BAD_INSTRUCTION.
2138 (TARGET_EXC_ARITHMETIC): Rename to GDB_EXC_ARITHMETIC.
2139 (TARGET_EXC_EMULATION): Rename to GDB_EXC_EMULATION.
2140 (TARGET_EXC_SOFTWARE): Rename to GDB_EXC_SOFTWARE.
2141 (TARGET_EXC_BREAKPOINT): Rename to GDB_EXC_BREAKPOINT.
2142 (GDB_SIGNAL_LAST): Change description string.
2143 * common/signals.c (gdb_signal_from_host, do_gdb_signal_to_host):
2144 Adjust to signal renaming.
2145 * darwin-nat.c (darwin_decode_message): Likewise.
2146
2147 2013-10-22 Jose E. Marchesi <jose.marchesi@oracle.com>
2148
2149 * MAINTAINERS (Write After Approval): Add myself to the list.
2150
2151 2013-10-18 Andrew Burgess <aburgess@broadcom.com>
2152
2153 * breakpoint.c (update_watchpoint): If hardware watchpoints are
2154 forced off, downgrade them to software watchpoints if possible,
2155 and error out if not possible.
2156 (watch_command_1): Move watchpoint type selection closer to
2157 watchpoint creation, and extend the comments.
2158
2159 2013-10-18 Pedro Alves <palves@redhat.com>
2160
2161 PR gdb/16062
2162 * infrun.c (handle_inferior_event): Keep going if we got a random
2163 signal we should not stop for, instead of falling through to the
2164 step tests.
2165
2166 2013-10-18 Yao Qi <yao@codesourcery.com>
2167
2168 * c-varobj.c (cplus_number_of_children): Fix indentation.
2169
2170 2013-10-17 Tom Tromey <tromey@redhat.com>
2171
2172 PR gdb/15995:
2173 * printcmd.c (printcmd): Call gdb_flush.
2174
2175 2013-10-17 Tom Tromey <tromey@redhat.com>
2176
2177 * elfread.c (struct elfinfo) <stabindexsect>: Remove.
2178 (elf_locate_sections): Update.
2179
2180 2013-10-17 Yao Qi <yao@codesourcery.com>
2181
2182 * Makefile.in (HFILES_NO_SRCDIR): Remove ada-varobj.h.
2183 * ada-varobj.c: Remove the include of ada-varobj.h.
2184 (ada_varobj_get_number_of_children): Declare.
2185 (ada_varobj_get_name_of_child): Make it static.
2186 (ada_varobj_get_path_expr_of_child): Likewise.
2187 (ada_varobj_get_value_of_child): Likewise.
2188 (ada_varobj_get_type_of_child): Likewise.
2189 (ada_varobj_get_value_of_array_variable): Likewise.
2190 * ada-varobj.h: Remove.
2191
2192 2013-10-17 Yao Qi <yao@codesourcery.com>
2193
2194 * Makefile.in (SFILES): Add c-varobj.c and jv-varobj.c.
2195 (COMMON_OBS): Add c-varobj.o and jv-varobj.o.
2196 * ada-varobj.c: Include "varobj.h".
2197 (ada_number_of_children): New. Moved from varobj.c.
2198 (ada_name_of_variable, ada_name_of_child): Likewise.
2199 (ada_path_expr_of_child, ada_value_of_child): Likewise.
2200 (ada_type_of_child, ada_value_of_variable): Likewise.
2201 (ada_value_is_changeable_p, ada_value_has_mutated): Likewise.
2202 (ada_varobj_ops): New.
2203 * c-varobj.c, jv-varobj.c: New file. Moved from varobj.c.
2204 * gdbtypes.c (get_target_type): New. Moved from varobj.c.
2205 * gdbtypes.h (get_target_type): Declare.
2206 * varobj.c: Remove the inclusion of "ada-varobj.h" and
2207 "ada-lang.h".
2208 (ANONYMOUS_STRUCT_NAME): Move it to c-varobj.c.
2209 (ANONYMOUS_UNION_NAME): Likewise.
2210 (get_type, get_value_type, get_target_type): Remove declarations.
2211 (value_get_print_value, varobj_value_get_print_value): Likewise.
2212 (c_number_of_children, c_name_of_variable): Likewise.
2213 (c_name_of_child, c_path_expr_of_child): Likewise.
2214 (c_value_of_child, c_type_of_child): Likewise.
2215 (c_value_of_variable, cplus_number_of_children): Likewise.
2216 (cplus_class_num_children, cplus_name_of_variable): Likewise.
2217 (cplus_name_of_child, cplus_path_expr_of_child): Likewise.
2218 (cplus_value_of_child, cplus_type_of_child): Likewise.
2219 (cplus_value_of_variable, java_number_of_children): Likewise.
2220 (java_name_of_variable, java_name_of_child): Likewise.
2221 (java_path_expr_of_child, java_value_of_child): Likewise.
2222 (java_type_of_child, java_value_of_variable): Likewise.
2223 (ada_number_of_children, ada_name_of_variable): Likewise.
2224 (ada_name_of_child, ada_path_expr_of_child): Likewise.
2225 (ada_value_of_child, ada_type_of_child): Likewise.
2226 (ada_value_of_variable, ada_value_is_changeable_p): Likewise.
2227 (ada_value_has_mutated): Likewise.
2228 (struct language_specific): Move it to varobj.h.
2229 (CPLUS_FAKE_CHILD): Move it to varobj.h.
2230 (restrict_range): Rename it varobj_restrict_range. Make it extern.
2231 Callers update.
2232 (get_path_expr_parent): Rename it to varobj_get_path_expr_parent.
2233 Make it extern.
2234 (is_anonymous_child): Move it to c-varobj.c and rename to
2235 varobj_is_anonymous_child. Caller update.
2236 (get_type): Move it to c-varobj.c.
2237 (get_value_type): Rename it varobj_get_value_type. Make it
2238 extern.
2239 (get_target_type): Move it gdbtypes.c.
2240 (varobj_formatted_print_options): New function.
2241 (value_get_print_value): Rename it to
2242 varobj_value_get_print_value and make it extern.
2243 (varobj_value_is_changeable_p): Make it extern.
2244 (adjust_value_for_child_access): Move it to c-varobj.c.
2245 (default_value_is_changeable_p): Rename it to
2246 varobj_default_value_is_changeable_p. Make it extern.
2247 (c_number_of_children, c_name_of_variable): Move it to c-varobj.c
2248 (c_name_of_child, c_path_expr_of_child): Likewise.
2249 (c_value_of_child, c_type_of_child): Likewise.
2250 (c_value_of_variable, cplus_number_of_children): Likewise.
2251 (cplus_class_num_children, cplus_name_of_variable): Likewise.
2252 (cplus_name_of_child, cplus_path_expr_of_child): Likewise.
2253 (cplus_value_of_child, cplus_type_of_child): Likewise.
2254 (cplus_value_of_variable): Likewise.
2255 (java_number_of_children, java_name_of_variable): Move it to jv-varobj.c.
2256 (java_name_of_child, java_path_expr_of_child): Likewise.
2257 (java_value_of_child, java_type_of_child): Likewise.
2258 (java_value_of_variable): Likewise.
2259 (ada_number_of_children, ada_name_of_variable): Move it to ada-varobj.c.
2260 (ada_name_of_child, ada_path_expr_of_child): Likewise.
2261 (ada_value_of_child, ada_type_of_child): Likewise.
2262 (ada_value_of_variable, ada_value_is_changeable_p): Likewise.
2263 (ada_value_has_mutated): Likewise.
2264 * varobj.h (CPLUS_FAKE_CHILD): New macro, moved from varobj.c.
2265 (struct lang_varobj_ops): New. Renamed by 'struct language_specific'.
2266 (c_varobj_ops, cplus_varobj_ops): Declare.
2267 (java_varobj_ops, ada_varobj_ops): Declare.
2268 (varobj_default_value_is_changeable_p): Declare.
2269 (varobj_value_is_changeable_p): Declare.
2270 (varobj_get_value_type, varobj_is_anonymous_child): Declare.
2271 (varobj_get_path_expr_parent): Declare.
2272 (varobj_value_get_print_value): Declare.
2273 (varobj_formatted_print_options): Declare.
2274 (varobj_restrict_range): Declare.
2275
2276 2013-10-17 Luis Machado <lgustavo@codesourcery.com>
2277
2278 * target/waitstatus.h (target_waitkind): Remove spurious
2279 character from the comments.
2280
2281 2013-10-17 Joel Brobecker <brobecker@adacore.com>
2282
2283 * gdbarch.sh (get_longjmp_target): Add method documentation.
2284 * gdbarch.h: Regenerate.
2285
2286 2013-10-16 Tom Tromey <tromey@redhat.com>
2287
2288 * dbxread.c (read_dbx_symtab) <bss_ext_symbol>: Remove unused
2289 label.
2290
2291 2013-10-16 Luis Machado <lgustavo@codesourcery.com>
2292
2293 * gcore.in: Call GDB using the full path to the gcore script.
2294 Error out if the GDB binary is not found.
2295
2296 2013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
2297
2298 PR gdb/16014
2299 * dwarf2read.c (dw2_get_real_path): Remove unnecessary call to
2300 sizeof.
2301
2302 2013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
2303
2304 PR gdb/16042
2305 * target.c (target_disable_btrace): Fix invalid return value for
2306 void function.
2307 (target_teardown_btrace): Likewise.
2308
2309 2013-10-14 Yao Qi <yao@codesourcery.com>
2310
2311 * varobj.c (struct varobj): Move most of the fields to
2312 varobj.h.
2313 (struct varobj_dynamic): New struct.
2314 (varobj_get_display_hint) [HAVE_PYTHON]: Adjust.
2315 (varobj_has_more): Likewise.
2316 (dynamic_varobj_has_child_method): Likewise.
2317 (update_dynamic_varobj_children): Likewise.
2318 (varobj_get_num_children): Likewise.
2319 (varobj_list_children, varobj_pretty_printed_p): Likewise.
2320 (install_new_value_visualizer): Likewise.
2321 (install_new_value_visualizer, install_new_value): Likewise.
2322 (varobj_update, new_variable, free_variable): Likewise.
2323 (my_value_of_variable, value_get_print_value): Likewise.
2324 (install_visualizer): Change the type of parameter 'var' to
2325 'struct varobjd_dynamic *'. Callers update.
2326 * varobj.h (struct varobj): Moved from varobj.c.
2327 (struct varobj) <dynamic>: New field.
2328
2329 2013-10-13 Sandra Loosemore <sandra@codesourcery.com>
2330
2331 * nios2-tdep.c (nios2_reg_names): Use "sstatus" rather than "ba"
2332 as the preferred name of r30.
2333 * nios2-linux-tdep.c (reg_offsets): Likewise.
2334 * features/nios2-cpu.xml: Likewise.
2335 * features/nios2-linux.c: Regenerated.
2336 * features/nios2.c: Regenerated.
2337 * regformats/nios2-linux.dat: Regenerated.
2338
2339 2013-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2340
2341 Canonicalize directories for EXEC_FILENAME.
2342 * exec.c (exec_file_attach): Use gdb_realpath_keepfile for
2343 exec_filename.
2344 * utils.c (gdb_realpath_keepfile): New function.
2345 * utils.h (gdb_realpath_keepfile): New declaration.
2346
2347 2013-10-11 Doug Evans <dje@google.com>
2348
2349 * Makefile.in (GDBFLAGS): New variable.
2350 (run): New rule.
2351
2352 2013-10-11 Joel Brobecker <brobecker@adacore.com>
2353
2354 * NEWS: Add entry documenting the new "-catch-assert" and
2355 "-catch-exception" GDB/MI commands.
2356
2357 2013-10-11 Joel Brobecker <brobecker@adacore.com>
2358
2359 * breakpoint.h (init_ada_exception_breakpoint): Add parameter
2360 "enabled".
2361 * breakpoint.c (init_ada_exception_breakpoint): Add parameter
2362 "enabled". Set B->ENABLE_STATE accordingly.
2363 * ada-lang.h (ada_exception_catchpoint_kind): Move here from
2364 ada-lang.c.
2365 (create_ada_exception_catchpoint): Add declaration.
2366 * ada-lang.c (ada_exception_catchpoint_kind): Move to ada-lang.h.
2367 (create_ada_exception_catchpoint): Make non-static. Add new
2368 parameter "disabled". Use it in call to
2369 init_ada_exception_breakpoint.
2370 (catch_ada_exception_command): Add parameter "enabled" in call
2371 to create_ada_exception_catchpoint.
2372 (catch_assert_command): Likewise.
2373
2374 * mi/mi-cmds.h (mi_cmd_catch_assert, mi_cmd_catch_exception):
2375 Add declarations.
2376 * mi/mi-cmds.c (mi_cmds): Add the "catch-assert" and
2377 "catch-exception" commands.
2378 * mi/mi-cmd-catch.c: Add #include "ada-lang.h".
2379 (mi_cmd_catch_assert, mi_cmd_catch_exception): New functions.
2380
2381 2013-10-11 Joel Brobecker <brobecker@adacore.com>
2382
2383 * ada-lang.c (enum ada_exception_catchpoint_kind): Renames
2384 "enum exception_catchpoint_kind". Replace the "ex_" prefix
2385 of all its enumerates with "ada_". Update the rest of this
2386 file throughout.
2387
2388 2013-10-11 Joel Brobecker <brobecker@adacore.com>
2389
2390 * ada-lang.c (ada_decode_exception_location): Delete.
2391 (create_ada_exception_catchpoint): Remove arguments "sal",
2392 "addr_string" and "ops". Add argument "ex_kind" instead.
2393 Adjust implementation accordingly, calling ada_exception_sal
2394 to get the entities it no longer gets passed as arguments.
2395 Document the function's arguments.
2396 (catch_ada_exception_command): Use catch_ada_exception_command_split
2397 instead of ada_decode_exception_location, and update call to
2398 create_ada_exception_catchpoint.
2399 (catch_ada_assert_command_split): Renames
2400 ada_decode_assert_location. Remove parameters "addr_string" and
2401 "ops", and now returns void. Adjust implementation accordingly.
2402 Update the function documentation.
2403 (catch_assert_command): Use catch_ada_assert_command_split
2404 instead of ada_decode_assert_location. Update call to
2405 create_ada_exception_catchpoint.
2406
2407 2013-10-11 Joel Brobecker <brobecker@adacore.com>
2408
2409 * utils.h (perror_warning_with_name): Add declaration.
2410 * utils.c (perror_warning_with_name): New function.
2411 * cli/cli-cmds.c (source_script_with_search): Add call to
2412 perror_warning_with_name if from_tty is nul.
2413
2414 2013-10-11 Joel Brobecker <brobecker@adacore.com>
2415
2416 * utils.c (perror_string): New function, extracted out of
2417 throw_perror_with_name.
2418 (throw_perror_with_name): Rework to use perror_string.
2419
2420 2013-10-11 Yao Qi <yao@codesourcery.com>
2421
2422 * remote.c (discard_pending_stop_replies_in_queue): Update
2423 declaration.
2424 (struct stop_reply) <rs>: New field.
2425 (remove_stop_reply_of_remote_state): New function.
2426 (discard_pending_stop_replies_in_queue): Add parameter 'rs'.
2427 Callers update. Pass remove_stop_reply_of_remote_state to
2428 QUEUE_iterate.
2429 (remote_parse_stop_reply): Initialize field 'rs'.
2430
2431 2013-10-10 Will Newton <will.newton@linaro.org>
2432
2433 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
2434 linux_init_abi.
2435
2436 2013-10-10 Joel Brobecker <brobecker@adacore.com>
2437
2438 * cli/cli-cmds.c (show_baud_rate): Moved to serial.c as
2439 serial_baud_show_cmd.
2440 (_initialize_cli_cmds): Delete the code creating the
2441 "set/show remotebaud" commands.
2442 * serial.c (baud_rate): Move here from top.c.
2443 (serial_baud_show_cmd): Move here from cli/cli-cmds.c.
2444 (_initialize_serial): Create "set/show serial baud" commands.
2445 Add "set/show remotebaud" command aliases.
2446 * top.c (baud_rate): Moved to serial.c.
2447 * NEWS: Document the new "set/show serial baud" commands,
2448 replacing "set/show remotebaud".
2449
2450 2013-10-09 Pedro Alves <palves@redhat.com>
2451
2452 * breakpoint.c (insert_bp_location): Use memory_error_message to
2453 build the memory error string.
2454 * c-lang.c: Include "gdbcore.h".
2455 (c_get_string): Use memory_error to throw error.
2456 (target_xfer_memory_error): Delete.
2457 (memory_error_message): New, factored out from
2458 target_xfer_memory_error.
2459 (memory_error): Change parameter type to target_xfer_error.
2460 Rewrite.
2461 (read_memory): Use memory_error instead of
2462 target_xfer_memory_error.
2463 * gdbcore.h: Include "target.h".
2464 (memory_error): Change parameter type to target_xfer_error.
2465 (memory_error_message): Declare function.
2466 * target.c (target_read_memory, target_read_stack)
2467 (target_write_memory, target_write_raw_memory): Return
2468 TARGET_XFER_E_IO on error. Adjust comments.
2469 (get_target_memory): Pass TARGET_XFER_E_IO to memory_error,
2470 instead of EIO.
2471 * target.h (target_read, target_insert_breakpoint)
2472 (target_remove_breakpoint): Adjust comments.
2473 * valprint.c (partial_memory_read): Rename parameter, and adjust
2474 comment.
2475 (val_print_string): Use memory_error_message to build the memory
2476 error string.
2477
2478 2013-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2479
2480 * common/filestuff.c (gdb_fopen_cloexec): Remove initialization of
2481 result variable. Rename variable fopen_e_ever_failed to
2482 fopen_e_ever_failed_einval. Retry fopen only for errno EINVAL.
2483
2484 2013-10-09 Pedro Alves <palves@redhat.com>
2485
2486 * monitor.c (monitor_write_memory, monitor_write_memory_bytes)
2487 (monitor_write_memory_longlongs, monitor_write_memory_block):
2488 Constify 'myaddr' parameter.
2489 (monitor_xfer_memory): Adjust interface as monitor_xfer_partial
2490 helper.
2491 (monitor_xfer_partial): New function.
2492 (init_base_monitor_ops): Don't install a deprecated_xfer_memory
2493 hook. Install a to_xfer_partial hook.
2494
2495 2013-10-09 Tom Tromey <tromey@redhat.com>
2496
2497 * dwarf2read.c (dwarf2_get_dwz_file): Update for type change in
2498 bfd_get_alt_debug_link_info.
2499
2500 2013-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2501
2502 New flag OBJF_NOT_FILENAME.
2503 * auto-load.c (auto_load_objfile_script): Check also OBJF_NOT_FILENAME.
2504 * jit.c (jit_object_close_impl): Use OBJF_NOT_FILENAME for
2505 allocate_objfile.
2506 (jit_bfd_try_read_symtab): Use OBJF_NOT_FILENAME for
2507 symbol_file_add_from_bfd.
2508 * jv-lang.c (get_dynamics_objfile): Use OBJF_NOT_FILENAME for
2509 allocate_objfile.
2510 * objfiles.c (allocate_objfile): Assert OBJF_NOT_FILENAME if NAME is
2511 NULL.
2512 * objfiles.h (OBJF_NOT_FILENAME): New.
2513
2514 2013-10-08 Tom Tromey <tromey@redhat.com>
2515
2516 * Makefile.in (SFILES): Add build-id.c.
2517 (HFILES_NO_SRCDIR): Add build-id.h.
2518 * build-id.c: New file, largely from elfread.c. Modified
2519 most functions.
2520 * build-id.h: New file.
2521 * dwarf2read.c (dwarf2_get_dwz_file): Update for change to
2522 bfd_get_alt_debug_link_info. Verify dwz file's build-id.
2523 Search for dwz file using build-id.
2524 * elfread.c (build_id_bfd_get, build_id_verify)
2525 (build_id_to_debug_filename, find_separate_debug_file): Remove.
2526
2527 2013-10-08 Joel Brobecker <brobecker@adacore.com>
2528
2529 * ada-lang.c (compare_names_with_case): Renamed from
2530 compare_names, adding a new parameter "casing" and its handling.
2531 New function documentation.
2532 (compare_names): New function, implemented using
2533 compare_names_with_case.
2534
2535 2013-10-08 Joel Brobecker <brobecker@adacore.com>
2536
2537 * ada-lang.c (ada_exception_sal): Remove advance declaration.
2538
2539 2013-10-07 Tom Tromey <tromey@redhat.com>
2540
2541 * objfiles.c (free_objfile_per_bfd_storage): Delete the
2542 demangled_names_hash.
2543 (free_objfile): Don't delete the demangled_names_hash.
2544 * objfiles.h (struct objfile_per_bfd_storage)
2545 <demangled_names_hash>: New field.
2546 (struct objfile) <demangled_names_hash>: Move to
2547 objfile_per_bfd_storage.
2548 * symfile.c (reread_symbols): Don't delete the
2549 demangled_names_hash.
2550 * symtab.c (create_demangled_names_hash): Update.
2551 (symbol_set_names): Update.
2552
2553 2013-10-07 Tom Tromey <tromey@redhat.com>
2554
2555 * gdb_bfd.c (struct gdb_bfd_data) <relocation_computed,
2556 needs_relocations>: New fields.
2557 (gdb_bfd_requires_relocations): New function.
2558 * gdb_bfd.h (gdb_bfd_requires_relocations): Declare.
2559 * objfiles.c (get_objfile_bfd_data): Disallow sharing if
2560 the BFD needs relocations applied.
2561
2562 2013-10-07 Pedro Alves <palves@redhat.com>
2563
2564 PR breakpoints/11568
2565 * breakpoint.c (remove_threaded_breakpoints): Say "no longer in
2566 the thread list" instead of "gone".
2567
2568 2013-10-06 Sergio Durigan Junior <sergiodj@redhat.com>
2569
2570 * NEWS: Mention new convenience variable $_exitsignal.
2571 * corelow.c (core_open): Reset exit convenience variables. Set
2572 $_exitsignal to the uncaught signal which generated the corefile.
2573 * infrun.c (handle_inferior_event): Reset exit convenience
2574 variables. Set $_exitsignal for TARGET_WAITKIND_SIGNALLED.
2575 (clear_exit_convenience_vars): New function.
2576 * inferior.h (clear_exit_convenience_vars): New prototype.
2577
2578 2013-10-06 Yao Qi <yao@codesourcery.com>
2579
2580 * varobj.h: Add comments to enum varobj_languages.
2581
2582 2013-10-04 Doug Evans <dje@google.com>
2583
2584 Add support for DWP file format version 2.
2585 * NEWS: Mention support for DWP file format version 2.
2586 * dwarf2read.c (dwarf2_section_info): Convert asection field to a
2587 union of asection, containing_section. New fields virtual_offset
2588 and is_virtual. Change type of readin filed from int to char.
2589 (dwo_sections, dwo_file): Tweak comments.
2590 (dwp_v2_section_ids): New enum.
2591 (dwp_sections): New fields abbrev, info, line, loc, macinfo, macro,
2592 str_offsets, types.
2593 (virtual_v1_dwo_sections): Renamed from virtual_dwo_sections.
2594 All uses updated.
2595 (virtual_v2_dwo_sections): New struct.
2596 (dwp_hash_table): New fields version, nr_columns. Change type of
2597 section_pool field to a union.
2598 (dwp_file): New field version.
2599 (dwarf2_has_info): Check for virtual sections.
2600 (get_containing_section): New function.
2601 (get_section_bfd_owner, get_section_bfd_section): Call it.
2602 (dwarf2_locate_sections): Update.
2603 (dwarf2_section_empty_p): Update.
2604 (dwarf2_read_section): Handle virtual sections.
2605 (locate_dwz_sections): Update.
2606 (create_dwp_hash_table): Document and handle V2 format.
2607 (locate_v1_virtual_dwo_sections): Renamed from
2608 locate_virtual_dwo_sections and update. All callers updated.
2609 (create_dwo_unit_in_dwp_v1): Renamed from create_dwo_in_dwp.
2610 Delete arg htab. Rename arg section_index to unit_index.
2611 All callers updated.
2612 (MAX_NR_V1_DWO_SECTIONS): Renamed from MAX_NR_DWO_SECTIONS.
2613 All uses updated.
2614 (create_dwp_v2_section, create_dwo_unit_in_dwp_v2): New functions.
2615 (lookup_dwo_unit_in_dwp): Add V2 support.
2616 (dwarf2_locate_dwo_sections): Update.
2617 (dwarf2_locate_common_dwp_sections): Renamed from
2618 dwarf2_locate_dwp_sections and update. All callers updated.
2619 (dwarf2_locate_v2_dwp_sections): New function.
2620 (open_and_init_dwp_file): Add V2 support.
2621 (read_str_index): New locals str_section, str_offsets_section.
2622
2623 2013-10-04 Pedro Alves <palves@redhat.com>
2624
2625 * common/ptid.c (null_ptid, minus_one_ptid, ptid_build)
2626 (pid_to_ptid, ptid_get_pid, ptid_get_lwp, ptid_get_tid)
2627 (ptid_equal, ptid_is_pid, ptid_lwp_p, ptid_tid_p): Replace
2628 describing comments with references to ptid.h.
2629 * common/ptid.h: Remove intro description of constructors,
2630 accessors and predicates.
2631 (struct ptid): Reformat.
2632 (minus_one_ptid, ptid_build, pid_to_ptid, ptid_get_pid)
2633 (ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid): Change
2634 describing comments.
2635
2636 2013-10-04 Joel Brobecker <brobecker@adacore.com>
2637
2638 * aix-thread.c (sync_threadlists): Add missing ')' in call
2639 to ptid_build.
2640
2641 2013-10-04 Joel Brobecker <brobecker@adacore.com>
2642
2643 * procfs.c (procfs_init_inferior): Fix typo causing the build
2644 to fail.
2645
2646 2013-10-04 Joel Brobecker <brobecker@adacore.com>
2647
2648 * aix-thread.c (ptrace32): Remove cast to addr_ptr.
2649
2650 2013-10-04 Joel Brobecker <brobecker@adacore.com>
2651
2652 * mi/mi-main.c (run_one_inferior): Add function description.
2653 Make ARG a pointer to an integer whose value determines whether
2654 we should "run" or "start" the program.
2655 (mi_cmd_exec_run): Add handling of the "--start" option.
2656 Reject all other command-line options.
2657 * NEWS: Add entry for "-exec-run"'s new "--start" option.
2658
2659 2013-10-04 Yao Qi <yao@codesourcery.com>
2660
2661 * remote-notif.h (REMOTE_NOTIF_ID): New enum.
2662 (struct notif_client) <pending_event>: Moved
2663 to struct remote_notif_state.
2664 <id>: New field.
2665 (struct remote_notif_state) <pending_event>: New field.
2666 (notif_event_xfree): Declare.
2667 * remote-notif.c (handle_notification): Adjust.
2668 (notif_event_xfree): New function.
2669 (do_notif_event_xfree): Call notif_event_xfree.
2670 (remote_notif_state_xfree): Call notif_event_xfree to free
2671 each element in field pending_event.
2672 * remote.c (discard_pending_stop_replies): Remove declaration.
2673 (discard_pending_stop_replies_in_queue): Declare.
2674 (remote_close): Call discard_pending_stop_replies_in_queue
2675 instead of discard_pending_stop_replies.
2676 (remote_start_remote): Adjust.
2677 (stop_reply_xfree): Call notif_event_xfree.
2678 (notif_client_stop): Adjust initialization.
2679 (remote_notif_remove_all): Rename it to ...
2680 (remove_stop_reply_for_inferior): ... this. Update comments.
2681 Don't check INF is NULL.
2682 (discard_pending_stop_replies): Return early if notif_state is
2683 NULL. Adjust. Don't check INF is NULL.
2684 (remote_notif_get_pending_events): Adjust.
2685 (discard_pending_stop_replies_in_queue): New function.
2686 (remote_wait_ns): Likewise.
2687
2688 2013-10-04 Yao Qi <yao@codesourcery.com>
2689
2690 * remote-notif.c (DECLARE_QUEUE_P): Remove.
2691 (notif_queue): Remove.
2692 (remote_notif_process): Add one parameter 'notif_queue'.
2693 Update comments. Callers update.
2694 (remote_async_get_pending_events_token): Remove.
2695 (remote_notif_register_async_event_handler): Remove.
2696 (remote_notif_unregister_async_event_handler): Remove.
2697 (handle_notification): Add parameter 'notif_queue'. Update
2698 comments. Callers update.
2699 (notif_xfree): Remove.
2700 (remote_notif_state_allocate): New function.
2701 (remote_notif_state_xfree): New function.
2702 (_initialize_notif): Remove code to allocate queue.
2703 * remote-notif.h (DECLARE_QUEUE_P): Moved from remote-notif.c.
2704 (struct remote_notif_state): New.
2705 (handle_notification): Update declaration.
2706 (remote_notif_process): Likewise.
2707 (remote_notif_register_async_event_handler): Remove.
2708 (remote_notif_unregister_async_event_handler): Remove.
2709 (remote_notif_state_allocate): Declare.
2710 (remote_notif_state_xfree): Declare.
2711 * remote.c (struct remote_state) <notif_state>: New field.
2712 (remote_close): Don't call
2713 remote_notif_unregister_async_event_handler. Call
2714 remote_notif_state_xfree.
2715 (remote_open_1): Don't call
2716 remote_notif_register_async_event_handler. Call
2717 remote_notif_state_allocate.
2718
2719 2013-10-04 Yao Qi <yao@codesourcery.com>
2720
2721 * varobj.c (create_child_with_value): Remove 'const' from the
2722 type of parameter 'name'.
2723 (varobj_add_child): Likewise.
2724 (install_dynamic_child): Remove 'const' from the type of
2725 parameter 'name'.
2726 (varobj_add_child): Likewise.
2727 (create_child_with_value): Likewise. Update comments. Don't
2728 duplicate 'name'.
2729 (update_dynamic_varobj_children): Duplicate 'name'
2730 and pass it to install_dynamic_child.
2731
2732 2013-10-03 Phil Muldoon <pmuldoon@redhat.com>
2733
2734 * python/py-value.c (convert_value_from_python): Move PyInt_Check
2735 conversion logic to occur after PyLong_Check. Comment on order
2736 change significance.
2737 * python/py-arch.c (archpy_disassemble): Comment on order of
2738 conversion for integers and longs.
2739
2740 2013-10-03 Pedro Alves <palves@redhat.com>
2741
2742 * common/linux-ptrace.c (linux_check_ptrace_features): Factor out
2743 the PTRACE_O_TRACESYSGOOD and PTRACE_O_TRACEFORK to separate
2744 functions. Always test for PTRACE_O_TRACESYSGOOD even if
2745 PTRACE_O_TRACEFORK is not supported.
2746 (linux_test_for_tracesysgood): New function.
2747 (linux_test_for_tracefork): New function, factored out from
2748 linux_check_ptrace_features, and also don't kill child_pid here.
2749
2750 2013-10-03 Tristan Gingold <gingold@adacore.com>
2751
2752 * i386-darwin-nat.c (i386_darwin_dr_set): Fix argument type.
2753 Remove verbose error reporting. Use detected state to
2754 thread_set_state call.
2755 (i386_darwin_dr_get): Fix return type. Remove verbose error
2756 report.
2757 Remove trailing spaces.
2758
2759 2013-10-02 Pedro Alves <palves@redhat.com>
2760
2761 * cp-valprint.c (cp_print_value_fields): Adjust calls to
2762 val_print_optimized_out.
2763 * jv-valprint.c (java_print_value_fields): Likewise.
2764 * p-valprint.c (pascal_object_print_value_fields): Likewise.
2765 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full)
2766 <DWARF_VALUE_REGISTER>: If the register was not saved, return a
2767 new optimized out value.
2768 * findvar.c (address_from_register): Likewise.
2769 * frame.c (put_frame_register): Tweak error string to say the
2770 register was not saved, rather than optimized out.
2771 * infcmd.c (default_print_one_register_info): Adjust call to
2772 val_print_optimized_out. Use value_of_register instead of
2773 get_frame_register_value.
2774 * mi/mi-main.c (output_register): Use value_of_register instead of
2775 get_frame_register_value.
2776 * valprint.c (valprint_check_validity): Likewise.
2777 (val_print_optimized_out): New value parameter. If the value is
2778 lval_register, print <not saved> instead.
2779 (value_check_printable, val_print_scalar_formatted): Adjust calls
2780 to val_print_optimized_out.
2781 * valprint.h (val_print_optimized_out): New value parameter.
2782 * value.c (struct value) <optimized_out>: Extend comment.
2783 (error_value_optimized_out): New function.
2784 (require_not_optimized_out): Use it. Use a different string for
2785 lval_register values.
2786 * value.h (error_value_optimized_out): New declaration.
2787 * NEWS: Mention <not saved>.
2788
2789 2013-10-02 Joel Brobecker <brobecker@adacore.com>
2790
2791 * symtab.c (compare_search_syms): Use FILENAME_CMP instead of
2792 strcmp to compare two symtab filenames.
2793
2794 2013-10-02 Joel Brobecker <brobecker@adacore.com>
2795
2796 * symtab.c (search_symbols_equal): Delete.
2797 (sort_search_symbols_remove_dups): Replace call to
2798 search_symbols_equal by call to compare_search_syms,
2799 adjusting as necessary.
2800
2801 2013-10-02 Phil Muldoon <pmuldoon@redhat.com>
2802
2803 PR python/15579
2804 * python/python.c: Document gdb.execute command in Python help.
2805
2806 2013-10-02 Phil Muldoon <pmuldoon@redhat.com>
2807
2808 * python/py-frame.c (frame_info_to_frame_object): Use
2809 gdbpy_convert_exception. Clean up Python object on failure.
2810
2811 2013-10-02 Phil Muldoon <pmuldoon@redhat.com>
2812
2813 * python/lib/gdb/command/frame_filters.py
2814 (InfoFrameFilter.list_frame_filters): Retrieve exception manually.
2815 (ShowFrameFilterPriority.invoke): Ditto.
2816
2817 2013-10-01 Keith Seitz <keiths@redhat.com>
2818
2819 * linespec.c (struct ls_parser): Make 'saved_arg' const.
2820 (parse_linespec): Make 'argptr' const.
2821 Remove temporary cast of 'argptr' to const char **.
2822 (decode_line_full): Pass const pointer to parse_linespec.
2823 (decode_line_1): Likewise.
2824 (decode_objc): Make local variable 'new_argptr' const.
2825 (find_function_symbols): Remove temporary cast to char *
2826 to find_imps.
2827 * objc-lang.c (find_imps): Make argument 'method' const.
2828 Return const.
2829 * objc-lang.h (find_imps): Likewise.
2830
2831 2013-10-01 Keith Seitz <keiths@redhat.com>
2832
2833 * completer.c (skip_quoted_chars): Make all arguments const.
2834 Return const.
2835 (skip_quoted): Likewise.
2836 * completer.h (skip_quoted_chars): Likewise.
2837 (skip_quoted): Likewise.
2838 * defs.h (skip_quoted): Remove duplicate declaration.
2839 * jv-exp.y: Include completer.h.
2840 (yylex): Remove unneccessary cast to char * fro skip_quoted.
2841 * p-exp.y: Include completer.h.
2842
2843 2013-10-01 Keith Seitz <keiths@redhat.com>
2844
2845 * c-exp.y (parse_number): Make first argument const.
2846 Make a copy of the input to manipulate.
2847 (c_parse_escape): Make first argument const.
2848 Make local variable 'tokptr' const.
2849 (parse_string_or_char): Make first two arguments const.
2850 (macro_original_text): Make const.
2851 (lex_one_token): Make local variable 'tokstart' const.
2852 Likewise for local variables named 'p'.
2853 Cast away const for struct stoken (temporary).
2854 * c-lang.h (c_parse_escpae): Make first argument const.
2855 * cli/cli-cmds.c (echo_command): Make local variable 'p'
2856 const.
2857 * cli/cli-setshow.c (do_set_command): Likewise for 'p' in
2858 var_string case.
2859 * f-exp.y (parse_number): Make first argument const.
2860 (match_string_literal): Make local variable 'tokstart'
2861 const.
2862 (yylex): Make local variable 'p' const.
2863 Cast away const for struct stoken (temporary).
2864 * go-exp.y (parse_number): Make first argument const.
2865 (parse_string_or_char): Likewise.
2866 Make local variable 'tokstart' const.
2867 (lex_one_token): Likewise for numerous locals called 'p'.
2868 Cast away const for struct stoken (temporary).
2869 * jv-exp.y (parse_number): Make first argument const.
2870 Make local variables 'tokstart' and 'tokptr' const.
2871 Cast away const for call to skip_quoted (temporary).
2872 (yylex): Make local variable 'p' const.
2873 Cast away const for struct stoken (temporary).
2874 * m2-exp.y (parse_number): Make local variable 'p' const.
2875 (yylex): Likewise for 'tokstart'.
2876 Cast away const for struct stoken (temporary).
2877 Make local variable 'p' const.
2878 * macroexp.c (get_character_constant): Pass a const string
2879 to c_parse_escape.
2880 (get_string_literal): Likewise.
2881 (macro_expand_next): Make first argument const.
2882 Cast away const for init_shared_buffer.
2883 * macroexp.h (macro_expand_next): Make first argument const.
2884 * p-exp.y (yylex): Make a local copy of 'lexptr'.
2885 Pass a const string to c_parse_escape.
2886 Make local variables 'p' and 'namestart' const.
2887 * parse.c (lexptr): Make const.
2888 (prev_lexptr): Likewise.
2889 (find_template_name_end): Return const.
2890 Make argument const, too.
2891 (parse_exp_in_context): Make first argument const.
2892 Remove the entire const_hack.
2893 (parse_exp_in_context_1): Make first argument const.
2894 * parser-defs.h (find_template_name_end): Return const.
2895 Make argument const, too.
2896 (lexptr): Make const.
2897 (prev_lexptr): Likewise.
2898 * utils.c (parse_escape): Make second argument const.
2899 * utils.h (parse_escape): Likewise.
2900
2901 2013-10-01 Keith Seitz <keiths@redhat.com>
2902
2903 * ada-exp.y (write_object_renaming): Update: struct stoken.ptr
2904 is now const.
2905 (block_lookup): Make 'raw_name' and 'name' const.
2906 * ada-lex.l (processString): Update for struct stoken.ptr.
2907 * c-exp.y (qualified_name : TYPENAME COLONCOLON '~' name): Likewise.
2908 (operator_stoken): Likewise.
2909 (lex_one_token): Remove temporary cast to char * for
2910 'yylval.sval.ptr'.
2911 * f-exp.y (yylex): Likewise.
2912 * gdb-types.c (lookup_struct_elt_type): Make argument 'name' const.
2913 * gdbtypes.h (lookup_struct_elt_type): Likewisee.
2914 * go-exp.y (lex_one_token): Remove temporary cast to char * for
2915 'yylval.sval.ptr'.
2916 * jv-exp.y (QualifiedName): Update for struct stoken.ptr.
2917 (yylex): Remove temporary cast to char * for 'yylval.sval.ptr'.
2918 * linespec.c (struct ls_parser): Make 'stream' const.
2919 (find_parameter_list_end): Make argument 'input' and local
2920 variable 'p' const.
2921 (linespec_lexer_lex_string): Make local variables 'start' and
2922 'p' const.
2923 Use skip_spaces_const instead of skip_spaces.
2924 (linespec_lexer_peek_token): Make local variable 'saved_stream'
2925 const.
2926 (parse_linespec): Temporarily cast 'argptr' to const for
2927 'parser->lexer.stream'.
2928 * m2-exp.y (yylex): Remove temporary cast to char * for
2929 'yylval.sval.ptr'.
2930 * objc-lang.c (add_msglist): Make local variable 'p' const.
2931 * p-exp.y (exp : exp '['): Update for struct stoken.ptr.
2932 (exp : STRING): Make 'sp' const.
2933 (parse_number): Make argument 'p' const.
2934 * parser-defs.h (struct stoken): Make 'ptr' const.
2935
2936 2013-10-01 Doug Evans <dje@google.com>
2937
2938 * cli/cli-decode.c: Remove unnecessary inclusion of tui/tui.h.
2939
2940 2013-10-01 Yao Qi <yao@codesourcery.com>
2941
2942 * varobj.c (c_value_of_root): Remove declaration.
2943 (cplus_value_of_root, java_value_of_root): Likewise.
2944 (ada_value_of_root): Likewise.
2945 (struct language_specific) <value_of_root>: Remove.
2946 (languages): Update initialization.
2947 (check_scope): Move earlier.
2948 (c_value_of_root): Move earlier and rename to ...
2949 (value_of_root_1): ... this.
2950 (value_of_root): Caller update.
2951 (cplus_value_of_root, java_value_of_root): Remove.
2952 (ada_value_of_root): Remove.
2953
2954 2013-10-01 Yao Qi <yao@codesourcery.com>
2955
2956 * varobj.c (varobj_format_string): Remove "unknown".
2957 (languages): Remove the first element.
2958 * varobj.h (enum varobj_languages): Remove vlang_c.
2959
2960 2013-10-01 Yao Qi <yao@codesourcery.com>
2961
2962 * varobj.c (struct language_specific) <language>: Remove.
2963 (languages): Update the initialization.
2964
2965 2013-10-01 Yao Qi <yao@codesourcery.com>
2966
2967 * arm-wince-tdep.c: Remove inclusion of "solib.h" and
2968 "solib-target.h". Include "windows-tdep.h".
2969 (arm_wince_init_abi): Call windows_init_abi. Remove call to
2970 set_solib_ops and set_gdbarch_has_dos_based_file_system.
2971 * configure.tgt (arm*-wince-pe | arm*-*-mingw32ce*): Append
2972 windows-tdep.o to gdb_target_obs.
2973
2974 2013-10-01 Yao Qi <yao@codesourcery.com>
2975
2976 * amd64-windows-tdep.c: Remove inclusion of "solib.h" and
2977 "solib-target.h".
2978 (amd64_windows_init_abi): Don't call set_solib_ops and
2979 set_gdbarch_iterate_over_objfiles_in_search_order. Call
2980 windows_init_abi instead.
2981 * i386-cygwin-tdep.c: Remove inclusion of "solib.h" and
2982 "solib-target.h".
2983 (i386_cygwin_init_abi): Don't call set_solib_ops,
2984 set_gdbarch_has_dos_based_file_system and
2985 set_gdbarch_iterate_over_objfiles_in_search_order. Call
2986 windows_init_abi instead.
2987 * windows-tdep.c: Include "solib.h" and "solib-target.h".
2988 (windows_init_abi): New function.
2989 (windows_iterate_over_objfiles_in_search_order): Make it
2990 static.
2991 * windows-tdep.h (windows_init_abi): Declare.
2992 (windows_iterate_over_objfiles_in_search_order): Remove
2993 declaration.
2994
2995 2013-10-01 Jerome Guitton <guitton@adacore.com>
2996
2997 Checked in by Joel Brobecker <brobecker@adacore.com>
2998 * system-gdbinit/elinos.py (get_elinos_environment): Return an
2999 incomplete dictionnary instead of None in case of missing
3000 environment variables.
3001 (elinos_init): in case of an incomplete environment, best
3002 effort to load system libraries instead of abort.
3003
3004 2013-10-01 Joel Brobecker <brobecker@adacore.com>
3005
3006 * ada-lang.c (ada_has_this_exception_support): Ignore
3007 mst_solib_trampoline minimal symbols.
3008
3009 2013-09-30 Tristan Gingold <gingold@adacore.com>
3010
3011 * i386-darwin-nat.c (darwin_complete_target): Install methods for
3012 hardware watchpoint.
3013 (i386_darwin_dr_set): Support 32 and 64 bit states.
3014 (i386_darwin_dr_get): Likewise.
3015 (i386_darwin_dr_set_control): Make static.
3016 (i386_darwin_dr_set_addr, i386_darwin_dr_get_addr)
3017 (i386_darwin_dr_get_status, i386_darwin_dr_get_control): Likewise.
3018
3019 2013-09-30 Luis Machado <lgustavo@codesourcery.com>
3020
3021 * aarch64-linux-nat.c: Replace PIDGET with ptid_get_pid.
3022 Replace TIDGET with ptid_get_lwp.
3023 Replace GET_LWP with ptid_get_lwp.
3024 * aix-thread.c (BUILD_THREAD, BUILD_LWP): Remove.
3025 Replace BUILD_THREAD with ptid_build.
3026 Replace BUILD_LWP with ptid_build.
3027 Replace PIDGET with ptid_get_pid.
3028 Replace TIDGET with ptid_get_lwp.
3029 * alphabsd-nat.c: Replace PIDGET with ptid_get_pid.
3030 * amd64-linux-nat.c: Replace PIDGET with ptid_get_pid.
3031 Replace TIDGET with ptid_get_lwp.
3032 * amd64bsd-nat.c: Replace PIDGET with ptid_get_pid.
3033 * arm-linux-nat.c: Replace PIDGET with ptid_get_pid.
3034 Replace TIDGET with ptid_get_lwp.
3035 Replace GET_LWP with ptid_get_lwp.
3036 * armnbsd-nat.c: Replace PIDGET with ptid_get_pid.
3037 * auxv.c: Likewise.
3038 * breakpoint.c: Likewise.
3039 * common/ptid.c (ptid_is_pid): Condense check for
3040 null_ptid and minus_one_ptid.
3041 (ptid_lwp_p): New function.
3042 (ptid_tid_p): New function.
3043 * common/ptid.h: Update comments for accessors.
3044 (ptid_lwp_p): New prototype.
3045 (ptid_tid_p): New prototype.
3046 * defs.h (PIDGET, TIDGET, MERGEPID): Do not define.
3047 * gcore.c: Replace PIDGET with ptid_get_pid.
3048 * gdbthread.h: Likewise.
3049 * gnu-nat.c: Likewise.
3050 * hppa-linux-nat.c: Replace PIDGET with ptid_get_pid.
3051 Replace TIDGET with ptid_get_lwp.
3052 * hppabsd-nat.c: Replace PIDGET with ptid_get_pid.
3053 * hppanbsd-nat.c: Likewise.
3054 * i386-linux-nat.c: Replace PIDGET with ptid_get_pid.
3055 Replace TIDGET with ptid_get_lwp.
3056 * i386bsd-nat.c: Replace PIDGET with ptid_get_pid.
3057 * ia64-linux-nat.c: Replace PIDGET with ptid_get_pid.
3058 * infcmd.c: Likewise.
3059 * inferior.h: Likewise.
3060 * inflow.c: Likewise.
3061 * infrun.c: Likewise.
3062 * linux-fork.c: Likewise.
3063 * linux-nat.c: Replace PIDGET with ptid_get_pid.
3064 Replace GET_PID with ptid_get_pid.
3065 Replace is_lwp with ptid_lwp_p.
3066 Replace GET_LWP with ptid_get_lwp.
3067 Replace BUILD_LWP with ptid_build.
3068
3069 2013-09-28 Mike Frysinger <vapier@gentoo.org>
3070
3071 * common/linux-btrace.c: Move sys/syscall.h out of the
3072 HAVE_LINUX_PERF_EVENT_H check and wrap it in HAVE_SYS_SYSCALL_H.
3073 Also check for SYS_perf_event_open before attempting to buid.
3074
3075 2013-09-27 Doug Evans <dje@google.com>
3076
3077 * dwarf2read.c (dwarf2_section_info): Add comment.
3078 (dwp_file): Split loaded_cutus into loaded_cus, loaded_tus.
3079 All uses updated.
3080 (dwarf2_section_empty_p): Rename arg from "info" to "section".
3081 (dwarf2_read_section): Delete unused local "header". Add section
3082 name to error message.
3083 (create_dwo_in_dwp): Tweak comment.
3084 (MAX_NR_DWO_SECTIONS): Combine count of .debug_macro + .debug_macinfo.
3085
3086 * dwarf2read.c (die_reader_specs): Tweak comment.
3087 (get_section_bfd_owner, get_section_bfd_section): New functions.
3088 (get_section_name, get_section_file_name): New functions.
3089 (get_section_id, get_section_flags): New functions.
3090 (*): Use new functions to access section fields.
3091
3092 * dwarf2read.c (struct dwo_file): Add/tweak comments.
3093 (lookup_dwo_unit_in_dwp): Renamed from lookup_dwo_in_dwp. Remove
3094 arg "htab". All callers updated.
3095 (create_debug_types_hash_table): Remove redundant copy of
3096 abbrev_section.
3097 (create_dwo_in_dwp): Tweak comments.
3098 (read_str_index): Tweak comment. Record dwarf form name in static
3099 local.
3100
3101 2013-09-27 Pedro Alves <palves@redhat.com>
3102
3103 * remote.h (REMOTE_SYSROOT_PREFIX): New define.
3104 (remote_filename_p): Add comment.
3105 * remote.c (remote_filename_p): Adjust to use
3106 REMOTE_SYSROOT_PREFIX.
3107 * solib.c (solib_find): When deciding whether we need to add a
3108 directory separator, check whether the sysroot is "remote:"
3109 instead of checking whether the patch has a drive spec. Add
3110 comments.
3111
3112 2013-09-27 Pedro Alves <palves@redhat.com>
3113
3114 * remote.c (struct stop_reply) <solibs_changed, replay_event>:
3115 Delete fields.
3116 (remote_parse_stop_reply): Adjust, setting event->ws.kind
3117 directly.
3118
3119 2013-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
3120
3121 Fix set debug frame output.
3122 * frame.c (fprint_frame_type): Add TAILCALL_FRAME entry. Move
3123 SENTINEL_FRAME entry lower to match enum frame_type order.
3124
3125 2013-09-26 Pierre Muller <muller@sourceware.org>
3126
3127 Replace constant values 8 to 15 by AMD64_R8_REGNUM to
3128 AMD64_R15_REGNUM when a register index is expected.
3129 * amd64-windows-tdep.c (amd64_windows_dummy_call_integer_regs):
3130 Substitute in array.
3131 * amd64-tdep.c (amd64_dwarf_regmap): Ditto.
3132 (amd64_push_arguments): Substitute in integer_regnum array.
3133
3134 2013-09-25 Doug Evans <dje@google.com>
3135
3136 * objfiles.c (allocate_objfile): Move comment to better place.
3137
3138 New option "set debug symfile on".
3139 * NEWS: Mention "set debug symfile".
3140 * Makefile.in (SFILES): Add symfile-debug.c.
3141 (COMMON_OBS): Add symfile-debug.o.
3142 * elfread.c (elf_symfile_read): Use objfile_set_sym_fns to set the
3143 objfile's symbol functions.
3144 * objfiles.h (objfile_set_sym_fns): Declare.
3145 * symfile-debug.c: New file.
3146 * symfile.c (syms_from_objfile_1): Use objfile_set_sym_fns to set the
3147 objfile's symbol functions.
3148 (reread_symbols): Ditto.
3149
3150 * symfile.h (struct sym_fns): Delete member "sym_flavour".
3151 All uses updated.
3152 (add_symtab_fns): Update prototype.
3153 * symfile.c (sym_fns_ptr): Delete. Replace with ...
3154 (registered_sym_fns): ... this.
3155 (symtab_fns): Update.
3156 (add_symtab_fns): New arg "flavour". All callers updated.
3157 (find_sym_fns): Rewrite to use new sym_fns registry.
3158
3159 * symfile.h (struct sym_fns): Add "objfile" argument to
3160 sym_read_linetable. All uses updated.
3161
3162 * symtab.c (domain_name, search_domain_name): New functions.
3163 * symtab.h (domain_name, search_domain_name): Declare.
3164
3165 * symfile.h (struct quick_symbol_functions): Reorg arg list of
3166 map_matching_symbols so objfile is first. All uses updated.
3167 * dwarf2read.c (dw2_map_matching_symbols): Update signature.
3168 * psymtab.c (map_matching_symbols_psymtab): Update signature.
3169
3170 2013-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
3171
3172 PR shlibs/8882
3173 * solib-svr4.c (svr4_read_so_list): Skip the vDSO when reading
3174 link map entries.
3175
3176 2013-09-24 Doug Evans <dje@google.com>
3177
3178 * objfiles.c (free_objfile): Move comment.
3179
3180 2013-09-24 Joel Brobecker <brobecker@adacore.com>
3181
3182 * ada-exp.y (string_to_operator): Delete.
3183 (dummy_string_to_ada_operator): Delete.
3184
3185 2013-09-24 Joel Brobecker <brobecker@adacore.com>
3186
3187 Revert:
3188 * i386-tdep.h (enum amd64_reg_class): New, moved here from
3189 amd64-tdep.c.
3190 (struct gdbarch_tdep): Add fields call_dummy_num_integer_regs,
3191 call_dummy_integer_regs, and classify.
3192 * amd64-tdep.h (amd64_classify): Add declaration.
3193 * amd64-tdep.c (amd64_dummy_call_integer_regs): New static constant.
3194 (amd64_reg_class): Delete, moved to i386-tdep.h.
3195 (amd64_classify): Make non-static. Move declaration to amd64-tdep.h.
3196 Replace call to amd64_classify by call to tdep->classify.
3197 (amd64_push_arguments): Get the list of registers to use for
3198 passing integer parameters from the gdbarch tdep structure,
3199 rather than using a hardcoded one. Replace calls to amd64_classify
3200 by calls to tdep->classify.
3201 (amd64_push_dummy_call): Get the register number used for
3202 the "hidden" argument from tdep->call_dummy_integer_regs.
3203 (amd64_init_abi): Initialize tdep->call_dummy_num_integer_regs
3204 and tdep->call_dummy_integer_regs. Set tdep->classify.
3205
3206 2013-09-24 Joel Brobecker <brobecker@adacore.com>
3207
3208 Revert:
3209 * i386-tdep.h (gdbarch_tdep): Add field memory_args_by_pointer.
3210 * amd64-tdep.c (amd64_push_arguments): Add handling of architectures
3211 where tdep->memory_args_by_pointer is non-zero.
3212
3213 2013-09-24 Joel Brobecker <brobecker@adacore.com>
3214
3215 Revert:
3216 * i386-tdep.h (struct gdbarch_tdep): Add new field
3217 integer_param_regs_saved_in_caller_frame.
3218 * amd64-tdep.c (amd64_push_dummy_call): Allocate some memory on
3219 stack if tdep->integer_param_regs_saved_in_caller_frame is set.
3220
3221 2013-09-24 Joel Brobecker <brobecker@adacore.com>
3222
3223 * amd64-windows-tdep.c: #include "value.h"
3224 (amd64_windows_classify): Delete.
3225 (amd64_windows_passed_by_integer_register)
3226 (amd64_windows_passed_by_xmm_register)
3227 (amd64_windows_passed_by_pointer)
3228 (amd64_windows_adjust_args_passed_by_pointer)
3229 (amd64_windows_store_arg_in_reg, amd64_windows_push_arguments)
3230 (amd64_windows_push_dummy_call): New functions.
3231 (amd64_windows_init_abi): Remove setting of
3232 tdep->call_dummy_num_integer_regs, tdep->call_dummy_integer_regs,
3233 tdep->classify, tdep->memory_args_by_pointer and
3234 tdep->integer_param_regs_saved_in_caller_frame.
3235 Add call to set_gdbarch_push_dummy_call.
3236
3237 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3238
3239 * dwarf2read.c (open_and_init_dwp_file): Try open_dwp_file also with
3240 objfile->original_name.
3241
3242 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3243
3244 Pass down original filename for objfile.
3245 * coffread.c (coff_symfile_read): Update symbol_file_add_separate call.
3246 * elfread.c (elf_symfile_read): Likewise.
3247 * jit.c (jit_object_close_impl): Update allocate_objfile call, no
3248 longer set ORIGINAL_NAME.
3249 (jit_bfd_try_read_symtab): Update symbol_file_add_from_bfd call.
3250 * jv-lang.c (get_dynamics_objfile): Update allocate_objfile call.
3251 * machoread.c (macho_add_oso_symfile): Add parameter name. Update
3252 symbol_file_add_from_bfd call.
3253 (macho_symfile_read_all_oso): Update two macho_add_oso_symfile calls.
3254 (macho_check_dsym): Add parameter filenamep. Change function comment.
3255 Set *filenamep.
3256 (macho_symfile_read): New variable dsym_filename. Update
3257 macho_check_dsym call. Use it for symbol_file_add_separate.
3258 * objfiles.c (allocate_objfile): Add parameter name. New comment for
3259 it. Use it for objfile->original_name.
3260 (objfile_name): Return OBFD's filename, if available.
3261 * objfiles.h (allocate_objfile): Add new parameter name.
3262 * solib.c (solib_read_symbols): Update symbol_file_add_from_bfd call.
3263 * symfile-mem.c (symbol_file_add_from_memory): Update
3264 symbol_file_add_from_bfd call.
3265 * symfile.c (read_symbols): Update symbol_file_add_separate call, new
3266 comment for it.
3267 (symbol_file_add_with_addrs): New parameter name, add function comment
3268 for it. Remove variable name. Update allocate_objfile call.
3269 (symbol_file_add_separate): New parameter name, add function comment
3270 for it. Update symbol_file_add_with_addrs call.
3271 (symbol_file_add_from_bfd): New parameter name. Update
3272 symbol_file_add_with_addrs call.
3273 (symbol_file_add): Update symbol_file_add_from_bfd call.
3274 (reread_symbols): New variable original_name. Save
3275 objfile->original_name by it.
3276 * symfile.h (symbol_file_add_from_bfd, symbol_file_add_separate): Add
3277 second parameter.
3278
3279 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3280
3281 Code cleanup: Add objfile_name accessor function.
3282 * ada-lang.c (is_known_support_routine): Use objfile_name.
3283 * auto-load.c (source_gdb_script_for_objfile)
3284 (auto_load_objfile_script): Likewise.
3285 * coffread.c (coff_symtab_read, read_one_sym): Likewise.
3286 * dbxread.c (dbx_symfile_read): Likewise.
3287 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
3288 * dwarf2loc.c (locexpr_describe_location_piece): Likewise.
3289 * dwarf2read.c (dwarf2_get_dwz_file, dwarf2_read_index)
3290 (dw2_symtab_iter_next, dw2_expand_symtabs_matching)
3291 (lookup_dwp_signatured_type, lookup_dwo_unit)
3292 (dwarf2_build_psymtabs_hard, scan_partial_symbols, process_queue)
3293 (fixup_go_packaging, process_imported_unit_die, dwarf2_physname)
3294 (read_import_statement, create_dwo_cu, open_and_init_dwp_file)
3295 (lookup_dwo_cutu, read_call_site_scope, dwarf2_ranges_read)
3296 (dwarf2_record_block_ranges, read_common_block, read_typedef)
3297 (read_subrange_type, load_partial_dies, read_partial_die)
3298 (read_addr_index_1, read_str_index, dwarf_decode_lines_1)
3299 (die_containing_type, build_error_marker_type, lookup_die_type)
3300 (follow_die_ref_or_sig, follow_die_ref, dwarf2_fetch_die_loc_sect_off)
3301 (dwarf2_fetch_constant_bytes, follow_die_sig, get_signatured_type)
3302 (get_DW_AT_signature_type, write_psymtabs_to_index)
3303 (save_gdb_index_command): Likewise.
3304 * elfread.c (find_separate_debug_file_by_buildid, elf_symfile_read):
3305 Likewise.
3306 * expprint.c (dump_subexp_body_standard): Likewise.
3307 * gdbtypes.c (type_name_no_tag_or_error): Likewise.
3308 * jit.c (jit_object_close_impl): Use the objfile field name renamed to
3309 original_name.
3310 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New variable
3311 obj_name, use objfile_name for it, use the variable.
3312 (try_thread_db_load_from_pdir, has_libpthread, thread_db_new_objfile):
3313 Use objfile_name.
3314 * machoread.c (macho_symtab_read, macho_check_dsym)
3315 (macho_symfile_relocate): Likewise.
3316 * maint.c (maintenance_translate_address): Likewise.
3317 * minidebug.c (find_separate_debug_file_in_section): Likewise.
3318 * minsyms.c (install_minimal_symbols): Likewise.
3319 * objfiles.c (allocate_objfile): Use the objfile field name renamed to
3320 original_name.
3321 (filter_overlapping_sections): Use objfile_name.
3322 (objfile_name): New function.
3323 * objfiles.h (struct objfile): Rename field name to original_name.
3324 (objfile_name): New prototype.
3325 * printcmd.c (sym_info, address_info): Use objfile_name.
3326 * probe.c (parse_probes, collect_probes, compare_probes)
3327 (info_probes_for_ops): Likewise.
3328 * progspace.c (clone_program_space): Likewise.
3329 * psymtab.c (require_partial_symbols, dump_psymtab, allocate_psymtab)
3330 (maintenance_info_psymtabs): Likewise.
3331 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
3332 (source_section_scripts): Likewise.
3333 * python/py-objfile.c (objfpy_get_filename): Likewise.
3334 * python/py-progspace.c (pspy_get_filename): Likewise.
3335 * solib-aix.c (solib_aix_get_toc_value): Likewise.
3336 * solib-som.c (match_main, som_solib_section_offsets): Likewise.
3337 * solib.c (solib_read_symbols): Likewise.
3338 * stabsread.c (scan_file_globals): Likewise.
3339 * stap-probe.c (handle_stap_probe): Likewise.
3340 * symfile.c (symbol_file_clear, separate_debug_file_exists)
3341 (find_separate_debug_file_by_debuglink): Likewise.
3342 (reread_symbols): Likewise. Use the objfile field name renamed to
3343 original_name.
3344 (allocate_symtab): Use objfile_name.
3345 * symmisc.c (print_symbol_bcache_statistics, print_objfile_statistics)
3346 (dump_objfile, dump_msymbols, dump_symtab_1)
3347 (maintenance_print_msymbols, maintenance_print_objfiles)
3348 (maintenance_info_symtabs, maintenance_check_symtabs): Likewise.
3349 * target.c (target_translate_tls_address, target_info): Likewise.
3350 * xcoffread.c (xcoff_initial_scan): Make variable name const. Use
3351 objfile_name.
3352
3353 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3354
3355 Code cleanup.
3356 * probe.c (parse_probes): Rename variable objfile_name to
3357 objfile_namestr.
3358
3359 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3360
3361 Remove solib-sunos.c.
3362 * Makefile.in (ALLDEPFILES): Remove solib-sunos.c.
3363 * config/m68k/obsd.mh (NATDEPFILES): Remove solib-sunos.o.
3364 * objfiles.c (rt_common_objfile): Remove.
3365 (free_objfile): Remove rt_common_objfile comparison.
3366 * objfiles.h (rt_common_objfile): Remove.
3367 * solib-sunos.c: Remove.
3368 * symfile.c (reread_symbols): Remove solib-sunos.c comment.
3369
3370 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3371
3372 Remove a.out NetBSD and OpenBSD hosts.
3373 * NEWS (Removed native configurations): New.
3374 * config/arm/nbsdaout.mh: Remove.
3375 * config/i386/nbsdaout.mh: Remove.
3376 * config/i386/obsdaout.mh: Remove.
3377 * config/m68k/nbsdaout.mh: Remove.
3378 * config/sparc/nbsdaout.mh: Remove.
3379 * config/vax/nbsdaout.mh: Remove.
3380 * configure.host (arm*-*-netbsd*, i[34567]86-*-netbsd*)
3381 (i[34567]86-*-openbsd[0-2].*, i[34567]86-*-openbsd3.[0-3])
3382 (m68*-*-netbsd*, sparc-*-netbsd*, vax-*-netbsd*): Add them to obsolete
3383 error.
3384 (arm*-*-netbsd*, i[34567]86-*-netbsd*, i[34567]86-*-openbsd[0-2].*)
3385 (i[34567]86-*-openbsd3.[0-3], m68*-*-netbsd*, sparc-*-netbsdaout*)
3386 (sparc-*-netbsd*, vax-*-netbsd*): Remove.
3387
3388 2013-09-23 Tom Tromey <tromey@redhat.com>
3389
3390 * linespec.c (struct minsym_and_objfile): Remove.
3391 (minsym_and_objfile_d): Remove.
3392 (struct linespec, struct collect_info, linespec_parse_basic)
3393 (convert_linespec_to_sals, linespec_parser_delete, decode_objc)
3394 (compare_msymbols, find_method, find_function_symbols)
3395 (find_linespec_symbols, struct collect_minsyms, compare_msyms)
3396 (add_minsym, search_minsyms_for_name): Update.
3397
3398 2013-09-23 Andrew Burgess <aburgess@broadcom.com>
3399
3400 * regcache.c: Add include of valprint.h.
3401 (dump_endian_bytes): Delete.
3402 (regcache_dump): Use print_hex_chars not dump_endian_bytes.
3403
3404 2013-09-23 Andrew Burgess <aburgess@broadcom.com>
3405
3406 * sh64-tdep.c (sh64_do_fp_register): Use print_hex_chars.
3407
3408 2013-09-19 Pedro Alves <palves@redhat.com>
3409
3410 * breakpoint.c (remove_threaded_breakpoints): Skip non-user
3411 breakpoints.
3412
3413 2013-09-19 Pedro Alves <palves@redhat.com>
3414 Thomas Schwinge <thomas@codesourcery.com>
3415 Yue Lu <hacklu.newborn@gmail.com>
3416
3417 * gnu-nat.c (gnu_read_inferior, gnu_write_inferior): Make static.
3418 Take a gdb_byte pointer instead of a char pointer.
3419
3420 * gnu-nat.c (gnu_xfer_memory): Adjust interface as
3421 gnu_xfer_partial helper.
3422 (gnu_xfer_partial): New function.
3423 (gnu_target): Don't install a deprecated_xfer_memory hook.
3424 Install a to_xfer_partial hook.
3425
3426 2013-09-19 Jan Kratochvil <jan.kratochvil@redhat.com>
3427
3428 Constification.
3429 * main.c (captured_main): Replace catch_command_errors by
3430 catch_command_errors_const. Twice.
3431 * symfile.c (symbol_file_add_main_1): Make args parameter const.
3432 (symbol_file_add): Make name parameter const.
3433 (symbol_file_add_main, symbol_file_add_main_1): Make args parameter const.
3434 (symfile_bfd_open): Make name parameter const, rename it to cname. Add
3435 variable name. Change their usage accordingly.
3436 * symfile.h (symbol_file_add, symfile_bfd_open): Make first parameter
3437 const.
3438 (symbol_file_add_main): Make args parameter const.
3439
3440 2013-09-18 Raunaq Bathija <raunaq12@in.ibm.com>
3441 Ulrich Weigand <uweigand@de.ibm.com>
3442
3443 * xcoffread.c (struct coff_symbol): Use CORE_ADDR as type
3444 of c_value member.
3445 (read_xcoff_symtab): Use CORE_ADDR as type of fcn_start_addr.
3446
3447 2013-09-18 Pedro Alves <palves@redhat.com>
3448 Yue Lu <hacklu.newborn@gmail.com>
3449
3450 * gnu-nat.c (inf_validate_procs, gnu_wait, gnu_resume)
3451 (gnu_create_inferior)
3452 (gnu_attach, gnu_thread_alive, gnu_pid_to_str, cur_thread)
3453 (set_sig_thread_cmd): Use the lwpid field of ptids to
3454 store/extract thread ids instead of the tid field.
3455 * i386gnu-nat.c (gnu_fetch_registers): Adjust.
3456
3457 2013-09-18 Andrew Burgess <aburgess@broadcom.com>
3458
3459 * infcmd.c (default_print_one_register_info): Add detection of
3460 optimized out values.
3461 (default_print_registers_info): Switch to using
3462 get_frame_register_value.
3463
3464 2013-09-18 Markus Metzger <markus.t.metzger@intel.com>
3465
3466 * infrun.c (handle_inferior_event): Check if we know the
3467 function start address before setting a resume breakpoint.
3468
3469 2013-09-18 Pedro Alves <palves@redhat.com>
3470
3471 * gnu-nat.c (set_sig_thread_cmd): Compare the thread's ptid to
3472 minus_one_ptid instead of looking at the ptid's tid field and
3473 comparing that to -1.
3474
3475 2013-09-18 Andrew Burgess <aburgess@broadcom.com>
3476
3477 * main.h (get_gdb_program_name): Remove extra whitespace.
3478
3479 2013-09-18 Andrew Burgess <aburgess@broadcom.com>
3480
3481 * main.h (get_gdb_program_name): Add declaration.
3482 * main.c (get_gdb_program_name): Add definition.
3483
3484 2013-09-17 Doug Evans <dje@google.com>
3485
3486 * dwarf2read.c: Move definitions of complaint functions to after
3487 forward declarations of local functions.
3488
3489 2013-09-17 Muhammad Waqas <mwaqas@codesourcery.com>
3490 Pedro Alves <palves@redhat.com>
3491
3492 PR gdb/11568
3493 * breakpoint.c (remove_threaded_breakpoints): New function.
3494 (_initialize_breakpoint): Attach remove_threaded_breakpoints
3495 as thread_exit observer.
3496
3497 2013-09-17 Pedro Alves <palves@redhat.com>
3498
3499 PR gdb/15911
3500 * ada-tasks.c (task_command_1): Adjust call to print_stack_frame.
3501 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd):
3502 * corelow.c (core_open):
3503 * frame.h (print_stack_frame, print_frame_info): New
3504 'set_current_sal' parameter.
3505 * infcmd.c (finish_command, kill_command): Adjust call to
3506 print_stack_frame.
3507 * inferior.c (inferior_command): Likewise.
3508 * infrun.c (normal_stop): Likewise.
3509 * linux-fork.c (linux_fork_context): Likewise.
3510 * record-full.c (record_full_goto_entry, record_full_restore):
3511 Likewise.
3512 * remote-mips.c (common_open): Likewise.
3513 * stack.c (print_stack_frame): New 'set_current_sal' parameter.
3514 Use it.
3515 (print_frame_info): New 'set_current_sal' parameter. Set the last
3516 displayed sal depending on the new paremeter instead of looking at
3517 print_what.
3518 (backtrace_command_1, select_and_print_frame, frame_command)
3519 (current_frame_command, up_command, down_command): Adjust call to
3520 print_stack_frame.
3521 * thread.c (print_thread_info, restore_selected_frame)
3522 (do_captured_thread_select): Adjust call to print_stack_frame.
3523 * tracepoint.c (tfind_1): Likewise.
3524 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
3525 (mi_cmd_stack_info_frame): Likewise.
3526 * mi/mi-interp.c (mi_on_normal_stop): Likewise.
3527 * mi/mi-main.c (mi_cmd_exec_return, mi_cmd_trace_find): Likewise.
3528
3529 2013-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
3530
3531 * value.c (isvoid_internal_fn): Replace "parameter" with
3532 "argument".
3533
3534 2013-09-16 Stan Shebs <stan@codesourcery.com>
3535
3536 * README: Update references to writing code for GDB.
3537 * configure.ac (build_warnings): Remove obsolete comment.
3538 * configure: Regenerate.
3539 * gdbarch.sh: Remove references to gdbint.texinfo.
3540 * gdbarch.h: Regenerate.
3541 * gdbtypes.c (objfile_type): Remove comments referencing internals
3542 manual and D10V.
3543
3544 2013-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
3545
3546 * NEWS: Mention new convenience function $_isvoid.
3547 * value.c (isvoid_internal_fn): New function.
3548 (_initialize_values): Add new convenience function $_isvoid.
3549
3550 2013-09-16 Pierre Muller <muller@sourceware.org>
3551
3552 * arm-linux-tdep.c: Add "elf/common.h" header.
3553 Remove AT_HWCAP macro definintion as it is provided in
3554 added include file.
3555 * s390-tdep.c: Remove system header <elf.h>
3556 Add "elf/common.h" header for AT_HWCAP definition.
3557 (s390_core_read_description): Use correct CORE_ADDR
3558 for hwcap local variable used as third parameter
3559 of function target_auxv_search.
3560
3561 2013-09-14 Pierre Muller <muller@sourceware.org>
3562 Tom Tromey <tromey@redhat.com>
3563 Pedro Alves <palves@redhat.com>
3564
3565 * common/filestuff.c (gdb_fopen_cloexec): Do not try to use "e"
3566 mode if operating system doesn't know O_CLOEXEC.
3567
3568 2013-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3569
3570 Code cleanup.
3571 * symfile.c (reread_symbols): Move variable obfd_filename to a more
3572 inner block.
3573
3574 2013-09-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
3575
3576 * NEWS: Mention TDB support.
3577 * features/s390-tdb.xml: New file.
3578 * features/s390-te-linux64.xml: New file.
3579 * features/s390x-te-linux64.xml: New file.
3580 * features/Makefile (WHICH): Add new tdescs above.
3581 (s390-te-linux64-expedite): Set.
3582 (s390x-te-linux64-expedite): Set.
3583 * features/s390-te-linux64.c: New file (generated).
3584 * features/s390x-te-linux64.c: New file (generated).
3585 * regformats/s390-te-linux64.dat: New file (generated).
3586 * regformats/s390x-te-linux64.dat: New file (generated).
3587 * s390-tdep.h (HWCAP_S390_HIGH_GPRS): Define.
3588 (HWCAP_S390_TE): Likewise.
3589 (S390_TDB_DWORD0_REGNUM): Likewise.
3590 (S390_TDB_DWORD0_REGNUM): Likewise.
3591 (S390_TDB_ABORT_CODE_REGNUM): Likewise.
3592 (S390_TDB_CONFLICT_TOKEN_REGNUM): Likewise.
3593 (S390_TDB_ATIA_REGNUM): Likewise.
3594 (S390_TDB_R0_REGNUM): Likewise.
3595 (S390_TDB_R1_REGNUM): Likewise.
3596 (S390_TDB_R2_REGNUM): Likewise.
3597 (S390_TDB_R3_REGNUM): Likewise.
3598 (S390_TDB_R4_REGNUM): Likewise.
3599 (S390_TDB_R5_REGNUM): Likewise.
3600 (S390_TDB_R6_REGNUM): Likewise.
3601 (S390_TDB_R7_REGNUM): Likewise.
3602 (S390_TDB_R8_REGNUM): Likewise.
3603 (S390_TDB_R9_REGNUM): Likewise.
3604 (S390_TDB_R10_REGNUM): Likewise.
3605 (S390_TDB_R11_REGNUM): Likewise.
3606 (S390_TDB_R12_REGNUM): Likewise.
3607 (S390_TDB_R13_REGNUM): Likewise.
3608 (S390_TDB_R14_REGNUM): Likewise.
3609 (S390_TDB_R15_REGNUM): Likewise.
3610 (S390_NUM_REGS): Increase.
3611 (S390_IS_TDBREGSET_REGNUM): New macro.
3612 (s390_regmap_tdb): Declare.
3613 (s390_sizeof_tdbregset): Define.
3614 (tdesc_s390_te_linux64): Declare.
3615 (tdesc_s390x_te_linux64): Likewise.
3616 * s390-tdep.c: Add includes for "auxv.h", <elf.h>,
3617 "features/s390-te-linux64.c", and "features/s390x-te-linux64.c".
3618 (s390_regmap_tdb): New regmap.
3619 (s390_supply_tdb_regset): New function.
3620 (s390_tdb_regset): New regset.
3621 (s390_linux64v2_regset_sections): Add TDB regset to list.
3622 (s390x_linux64v2_regset_sections): Likewise.
3623 (s390_regset_from_core_section): Recognize TDB core note section.
3624 (s390_core_read_description): If HWCAP indicates TE support,
3625 select tdesc_s390_te_linux64 or tdesc_s390_s390x_te_linux64.
3626 (s390_gdbarch_init): Handle TDB regset.
3627 (_initialize_s390_tdep): Initialize new tdescs.
3628 * s390-nat.c (HWCAP_S390_HIGH_GPRS): Remove define.
3629 (have_regset_tdb): New variable.
3630 (s390_native_supply): Support register invalidation.
3631 (fetch_regset): Invalidate registers if ptrace yields ENODATA.
3632 (check_regset): Treat ENODATA as "regset exists".
3633 (s390_linux_fetch_inferior_registers): Add TDB.
3634 (s390_read_description): Check for TDB existence and select
3635 appropriate tdesc.
3636 * gdbserver/Makefile.in (clean): Add removal of new makefile
3637 targets.
3638 (s390-te-linux64.c): New makefile target.
3639 (s390x-te-linux64.c): Likewise.
3640 * gdbserver/configure.srv (srv_regobj): Append new objects
3641 s390-te-linux64.o and s390x-te-linux64.o.
3642 (srv_xmlfiles): Append new files s390-te-linux64.xml,
3643 s390x-te-linux64.xml, and s390-tdb.xml.
3644 * gdbserver/linux-s390-low.c (init_registers_s390_te_linux64): New
3645 declaration.
3646 (tdesc_s390_te_linux64): Likewise.
3647 (init_registers_s390x_te_linux64): Likewise.
3648 (tdesc_s390x_te_linux64): Likewise.
3649 (s390_check_regset): Treat ENODATA as "regset exists".
3650 (s390_arch_setup): Add TDB regset support.
3651 (initialize_low_arch): Initialize registers for new tdescs.
3652
3653 2013-09-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
3654
3655 * s390-tdep.h (S390_IS_GREGSET_REGNUM): New macro.
3656 (S390_IS_FPREGSET_REGNUM): New macro.
3657 * s390-tdep.c (s390_dwarf_regmap): Make const.
3658 (regnum_is_gpr_full): New function for replacing repeated code.
3659 (s390_pseudo_register_name): Use it.
3660 (s390_pseudo_register_type): Likewise.
3661 (s390_pseudo_register_read): Likewise.
3662 (s390_pseudo_register_write): Likewise.
3663 (s390_unwind_pseudo_register): Likewise.
3664 (s390_regmap_gregset): New format for regmap.
3665 (s390x_regmap_gregset): Likewise.
3666 (s390_regmap_fpregset): Likewise.
3667 (s390_regmap_upper): Likewise.
3668 (s390_regmap_last_break): Likewise.
3669 (s390_regmap_system_call): Likewise.
3670 (s390_supply_regset): Adjust to new regmap format.
3671 (s390_collect_regset): Likewise.
3672 * s390-nat.c (s390_native_supply): Adjust to new regmap format.
3673 (s390_native_collect): Likewise.
3674 (supply_gregset): Likewise.
3675 (fill_gregset): Likewise.
3676 (supply_fpregset): Likewise.
3677 (fill_fpregset): Likewise.
3678 (fetch_regset): Likewise.
3679 (store_regset): Likewise.
3680 (s390_linux_fetch_inferior_registers): Likewise.
3681 (s390_linux_fetch_inferior_registers): Likewise.
3682
3683 2013-09-12 Andrew Pinski <apinski@cavium.com>
3684
3685 * aarch64-linux-nat.c (aarch64_linux_set_debug_regs): Zero out regs.
3686
3687 2013-09-10 Andreas Arnez <arnez@linux.vnet.ibm.com>
3688
3689 * config/s390/s390.mh (NATDEPFILES): Add linux-waitpid.o.
3690
3691 2013-09-09 Andrew Burgess <aburgess@broadcom.com>
3692
3693 * top.c (quit_confirm): Remove use of deprecated_init_ui_hook.
3694
3695 2013-09-06 Pedro Alves <palves@redhat.com>
3696
3697 * remote-sim.c (dump_mem, gdbsim_fetch_register)
3698 (gdbsim_store_register, gdbsim_kill, gdbsim_load)
3699 (gdbsim_create_inferior, gdbsim_open, gdbsim_close)
3700 (gdbsim_detach, gdbsim_resume_inferior, gdbsim_wait)
3701 (gdbsim_files_info, gdbsim_mourn_inferior): Send debug output to
3702 gdb_stdlog.
3703
3704 2013-09-06 Pedro Alves <palves@redhat.com>
3705
3706 * remote-sim.c (dump_mem): Constify buf parameter.
3707 gdbsim_xfer_inferior_memory): Rename to ...
3708 (gdbsim_xfer_memory): ... this. Adjust interface as
3709 target_xfer_partial helper.
3710 (gdbsim_xfer_partial): New function.
3711 (init_gdbsim_ops): Don't install a deprecated_xfer_memory hook.
3712 Install a to_xfer_partial hook. Send output to gdb_stdlog.
3713
3714 2013-09-06 Pedro Alves <palves@redhat.com>
3715
3716 * remote-sim.c (gdbsim_xfer_inferior_memory): Use
3717 host_address_to_string, and send debug output to gdb_stdlog.
3718
3719 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
3720
3721 * Makefile.in (ALL_TARGET_OBS): Add cris-linux-tdep.o.
3722 * configure.tgt: Add cris-linux-tdep.o and linux-tdep.o to
3723 gdb_target_obs for cris target.
3724 * cris-tdep.c (struct gdbarch_tdep): Move to cris-tdep.h.
3725 (cris_gdbarch_init): Move calls to
3726 set_gdbarch_fetch_tls_load_module_address and
3727 set_solib_svr4_fetch_link_map_offsets to cris-linux-tdep.c.
3728 Add call to gdbarch_init_osabi.
3729 * cris-linux-tdep.c: New file.
3730 * cris-tdep.h: New file.
3731
3732 2013-09-06 Andrew Burgess <aburgess@broadcom.com>
3733
3734 * tui/tui-io.c (tui_initialize_io): Remove legacy comment referring
3735 to deprecated_init_ui_hook.
3736
3737 2013-09-06 Andrew Burgess <aburgess@broadcom.com>
3738
3739 * cli/cli-interp.c (_initialize_cli_interp): Add a
3740 command_loop_proc to interp_procs.
3741 * event-top.c (cli_command_loop): Change signature to match
3742 interp_command_loop_ftype.
3743 * event-top.h (cli_command_loop): Same.
3744 * interps.c (interp_new): Require every interpreter to have a
3745 command_loop_proc.
3746 (current_interp_command_loop): Just call the command_loop_proc on
3747 the current interpreter.
3748 * tui/tui-interp.c (_initialize_tui_interp): Add a
3749 command_loop_proc to interp_procs.
3750
3751 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
3752
3753 * cris-tdep.c (cris_gdbarch_init): Add call to
3754 get_gdbarch_fetch_tls_load_module_address.
3755
3756 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
3757
3758 * cris-tdep.c (cris_elf_greg_t): Rename from elf_greg_t.
3759 (cris_elf_gregset_t): Rename from elf_gregset_t.
3760 (crisv32_elf_gregset_t): Adjust.
3761 (cris_supply_gregset, fetch_core_registers): Adjust.
3762
3763 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
3764
3765 * cris-tdep.c (elf_greg_t): Change typedef to unsigned char[4]
3766
3767 2013-09-05 Andrew Burgess <aburgess@broadcom.com>
3768
3769 * defs.h (deprecated_command_loop_hook): Remove, including
3770 references in comments.
3771 * interps.c (current_interp_command_loop): No longer use
3772 deprecated_command_loop_hook.
3773 (clear_interpreter_hooks): Remove deprecated_command_loop_hook
3774 setup.
3775 * top.c (deprecated_command_loop_hook): Remove.
3776
3777 2013-09-05 Pedro Alves <palves@redhat.com>
3778
3779 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): 'dwarf_regnum'
3780 local is now int instead of ULONGEST. Print it with %d
3781 instead of paddress.
3782
3783 2013-09-05 Tristan Gingold <gingold@adacore.com>
3784
3785 * MAINTAINERS: Remove avr maintainership.
3786
3787 2013-09-05 Pedro Alves <palves@redhat.com>
3788
3789 * findvar.c (value_of_register): Rework in terms of
3790 value_of_register_lazy.
3791
3792 2013-09-05 Muhammad Bilal <mbilal@codesourcery.com>
3793
3794 * symfile.c (add_symbol_file_command): Remove trailing
3795 whitespaces and blank line after comment.
3796
3797 2013-09-05 Pedro Alves <palves@redhat.com>
3798
3799 * tui/tui-regs.c (tui_register_format): Don't look at the
3800 register's name here. Return string representing register
3801 value instead of storing it in the data element.
3802 (tui_get_register): Compare register string representations
3803 instead of register value states and contents.
3804
3805 2013-09-05 Pedro Alves <palves@redhat.com>
3806
3807 PR tui/15933
3808 * tui/tui-regs.c (tui_show_registers): Show registers of the
3809 selected frame, not the current frame.
3810
3811 2013-09-05 Ricard Wanderlof <ricardw@axis.com>
3812
3813 * MAINTAINERS (Write After Approval): Add myself to the list.
3814
3815 2013-09-04 Doug Evans <dje@google.com>
3816
3817 * dwarf2read.c (queue_and_load_all_dwo_tus): New function.
3818 (queue_and_load_dwo_tu): New function.
3819 (lookup_dwo_signatured_type): Set per_cu.tu_read.
3820 (maybe_queue_comp_unit): Rename this_cu argument to dependent_cu.
3821 Make dependent_cu optional.
3822 (dw2_do_instantiate_symtab): If we just loaded a CU from a DWO,
3823 and an older .gdb_index is in use, queue and load all its TUs too.
3824
3825 2013-09-04 Jan Kratochvil <jan.kratochvil@redhat.com>
3826
3827 Code cleanup: Change OPF_DISABLE_REALPATH to OPF_RETURN_REALPATH.
3828 * cli/cli-cmds.c (find_and_open_script): Add OPF_RETURN_REALPATH to
3829 variable search_flags.
3830 * defs.h (OPF_DISABLE_REALPATH): Rename to ...
3831 (OPF_RETURN_REALPATH): ... here.
3832 * dwarf2read.c (try_open_dwop_file): Set OPF_RETURN_REALPATH for flags.
3833 * exec.c (exec_file_attach): Remove OPF_DISABLE_REALPATH from openp
3834 call. Twice.
3835 * nto-tdep.c (nto_find_and_open_solib): Add OPF_RETURN_REALPATH for
3836 openp call.
3837 * solib.c (solib_find): Likewise. Four times.
3838 * source.c (openp): Change OPF_DISABLE_REALPATH to OPF_RETURN_REALPATH
3839 in the function comment and for the realpath_fptr variable.
3840 (source_full_path_of): Add OPF_RETURN_REALPATH for openp call.
3841 (find_and_open_source): Likewise. Twice.
3842 * symfile.c (symfile_bfd_open): Likewise, also twice.
3843
3844 2013-09-04 Doug Evans <dje@google.com>
3845
3846 * progspace.c (save_current_space_and_thread): Remove unnecessary
3847 call to save_current_inferior.
3848
3849 2013-09-04 Andrew Burgess <aburgess@broadcom.com>
3850
3851 * sh64-tdep.c (sh64_do_register): Return after printing message
3852 about unavailable register contents.
3853
3854 2013-09-04 Muhammad Bilal <mbilal@codesourcery.com>
3855 Pedro Alves <palves@redhat.com>
3856
3857 * symfile.c (add_symbol_file_command): Error out on unknown
3858 option. Handle EXPECTING_SEC_ADDR/EXPECTING_SEC_NAME before '-'
3859 options and collapse into single conditional branch.
3860
3861 2013-09-03 Luis Machado <lgustavo@codesourcery.com>
3862
3863 * inf-child.c (inf_child_follow_fork): New parameter
3864 detach_fork.
3865 * inf-ptrace.c (inf_ptrace_follow_fork): Likewise.
3866 * inf-ttrace.c (inf_ttrace_follow_fork): Likewise.
3867 * inferior.h (detach_fork): Remove.
3868 * infrun.c (detach_fork): Adjust comment and make it
3869 static.
3870 (follow_fork): Pass detach_fork parameter to
3871 target_follow_fork.
3872 * linux-nat.c (linux_child_follow_fork): New parameter
3873 detach_fork.
3874 * target.c (target_follow_fork): New parameter detach_fork.
3875 Pass detach_fork as parameter and print its value.
3876 * target.h (struct target_ops) <to_follow_fork>: New int
3877 parameter.
3878 (target_follow_fork): New parameter detach_fork.
3879
3880 2013-09-03 Joel Brobecker <brobecker@adacore.com>
3881
3882 * solib-ia64-hpux.c (ia64_hpux_relocate_section_addresses):
3883 Replace sec->bfd by sec->the_bfd_section->owner.
3884
3885 2013-09-03 Yao Qi <yao@codesourcery.com>
3886
3887 * linux-tdep.c (linux_is_uclinux): New function. Code moved
3888 from linux_has_shared_address_space.
3889 (linux_has_shared_address_space): Call linux_is_uclinux.
3890 * linux-tdep.h (linux_is_uclinux): Declare.
3891 * m68klinux-tdep.c (m68k_linux_get_sigtramp_info): Call
3892 linux_is_uclinux.
3893
3894 2013-09-03 Yao Qi <yao@codesourcery.com>
3895
3896 * config/djgpp/fnchange.lst: Remove entry of
3897 i386-interix-nat.c and i386-interix-tdep.c.
3898 * configure.ac: Remove '*-*-interix*'.
3899 * configure: Re-generated.
3900 * defs.h (enum gdb_osabi): Remove GDB_OSABI_INTERIX.
3901 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Remove
3902 obsolete comments.
3903 * osabi.c (gdb_osabi_names): Remove "Interix".
3904
3905 2013-09-03 Yao Qi <yao@codesourcery.com>
3906
3907 * arch-utils.c: Fix typo in the comment to gdbarch_update_p.
3908
3909 2013-09-02 Markus Metzger <markus.t.metzger@intel.com>
3910
3911 * record.h (record_print_flag) <record_print_src_line,
3912 record_print_insn_range>: Rename into ...
3913 (record_print_flag) <record_print_src_line,
3914 record_print_insn_range>: ... this. Update all users.
3915
3916 2013-09-02 Pierre Muller <muller@sourceware.org>
3917
3918 * windows-nat.c (windows_xfer_memory): Handle ERROR_PARTIAL_COPY
3919 error code.
3920
3921 2013-09-02 Pierre Muller <muller@sourceware.org>
3922
3923 * windows-nat.c (windows_xfer_memory): Fix compilation failure
3924 by use of plongest function.
3925
3926 2013-09-02 Tristan Gingold <gingold@adacore.com>
3927
3928 * NEWS: Add entry mentioning support for native Windows x64
3929 SEH data.
3930
3931 * amd64-windows-tdep.c: #include "objfiles.h", "frame-unwind.h",
3932 "coff/internal.h", "coff/i386.h", "coff/pe.h" and "libcoff.h".
3933 (struct amd64_windows_frame_cache): New struct.
3934 (amd64_windows_w2gdb_regnum): New global.
3935 (pc_in_range, amd64_windows_frame_decode_epilogue)
3936 (amd64_windows_frame_decode_insns, amd64_windows_find_unwind_info)
3937 (amd64_windows_frame_cache, amd64_windows_frame_prev_register)
3938 (amd64_windows_frame_this_id): New functions.
3939 (amd64_windows_frame_unwind): New static global.
3940 (amd64_windows_skip_prologue): New function.
3941 (amd64_windows_init_abi): Call frame_unwind_prepend_unwinder
3942 with amd64_windows_frame_unwind. Call set_gdbarch_skip_prologue
3943 with amd64_windows_skip_prologue.
3944
3945 2013-08-30 Joel Brobecker <brobecker@adacore.com>
3946
3947 GDB 7.6.1 released.
3948
3949 2013-08-30 Pedro Alves <palves@redhat.com>
3950
3951 * mi/mi-main.c (mi_cmd_trace_find): Use LOC_AND_ADDRESS instead of
3952 SRC_AND_LOC.
3953
3954 2013-08-30 Pedro Alves <palves@redhat.com>
3955
3956 * thread.c (restore_selected_frame): Use SRC_AND_LOC, and change
3957 warning text.
3958
3959 2013-08-30 Pedro Alves <palves@redhat.com>
3960
3961 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd):
3962 Adjust arguments to print_stack_frame.
3963
3964 2013-08-30 Pedro Alves <palves@redhat.com>
3965
3966 * ada-tasks.c (task_command_1): Write SRC_AND_LOC instead '1'.
3967
3968 2013-08-30 Pedro Alves <palves@redhat.com>
3969
3970 * frame.h (show_and_print_stack_frame): Delete declaration.
3971
3972 2013-08-30 Phil Muldoon <pmuldoon@redhat.com>
3973
3974 PR python/15461
3975 * python/py-arch.c (ARCHPY_REQUIRE_VALID): New macro.
3976 (archpy_name): Check for valid architecture.
3977 (archpy_disassemble): Ditto.
3978
3979 2013-08-29 Joel Brobecker <brobecker@adacore.com>
3980
3981 * rs6000-nat.c (rs6000_ptrace32): Cast "addr" to "uintptr_t"
3982 instead of "long long" in call to ptrace64.
3983
3984 2013-08-29 Andrew Burgess <aburgess@broadcom.com>
3985
3986 * mi/mi-interp.c (mi_command_loop): Change signature to match
3987 interp_command_loop_ftype.
3988 (mi1_command_loop): Remove.
3989 (mi2_command_loop): Remove.
3990 (mi3_command_loop): Remove.
3991 (mi_interpreter_resume): Remove setting of
3992 deprecated_command_loop_hook.
3993 (_initialize_mi_interp): Set mi_command_loop as the command loop
3994 callback.
3995
3996 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
3997
3998 * valops.c (do_search_struct_field): Pass v2 instead of base_type to
3999 value_type.
4000
4001 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
4002
4003 * value.c (allocate_value_contents): Make static.
4004 * value.h (allocate_value_contents): Remove prototype.
4005
4006 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
4007
4008 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use value_at_lazy instead
4009 of assembling value via allocate_value_lazy and attribute setter.
4010 * findvar.c (default_read_var_value): Use value_at_lazy instead of
4011 assembling value via allocate_value_lazy and attribute setter.
4012 * valops.c (do_search_struct_field): Use value_at_lazy instead of
4013 assembling value via allocate_value_lazy and attribute setter.
4014
4015 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
4016
4017 * value.c (value_from_contents_and_address): Replace allocate_value and
4018 memcpy with value_from_contents.
4019
4020 2013-08-29 Phil Muldoon <pmuldoon@redhat.com>
4021
4022 * python/py-framefilter.c (py_print_frame): Remove usage of
4023 PyString_AsString. Use python_string_to_host_string instead.
4024 Refactor function to work with a string as a new allocation
4025 instead of a pointer.
4026 (py_print_frame): Ditto.
4027 * python/lib/gdb/frames.py (return_list): Cain iterators together
4028 instead of adding them as a list.
4029 (_sort_list): Call return_list, and remove duplicate code.
4030 (execute_frame_filters): Convert iterator to a list with list().
4031 * python/lib/gdb/command/frame_filters.py
4032 (SetFrameFilterPriority._set_filter_priority): Convert priority
4033 attribute to an integer.
4034 * python/lib/gdb/FrameIterator.py (FrameIterator.next): Define
4035 wrapper function __next__.
4036 * python/lib/gdb/FrameDecorator.py: If basestring not defined,
4037 define as "str".
4038
4039 2013-08-29 Phil Muldoon <pmuldoon@redhat.com>
4040
4041 PR python/15752
4042 * python/py-framefilter.c (apply_frame_filter): Check
4043 gdb_python_initialized. Exit if the Python frame-filter code
4044 cannot be initialized.
4045
4046 2013-08-29 Phil Muldoon <pmuldoon@redhat.com>
4047
4048 PR cli/15842
4049 * top.c (print_gdb_version): Remove erroneous newline after help
4050 text.
4051
4052 2013-08-29 Yao Qi <yao@codesourcery.com>
4053
4054 * varobj.c (install_dynamic_child): Remove trailing space.
4055 Add one blank line after variable declaration.
4056
4057 2013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4058
4059 PR gdb/15415
4060 * corefile.c (get_exec_file): Use exec_filename.
4061 * defs.h (OPF_DISABLE_REALPATH): New definition. Add new comment.
4062 * exec.c (exec_close): Free EXEC_FILENAME.
4063 (exec_file_attach): New variable canonical_pathname. Use
4064 OPF_DISABLE_REALPATH. Call gdb_realpath explicitly. Set
4065 EXEC_FILENAME.
4066 * exec.h (exec_filename): New.
4067 * inferior.c (print_inferior, inferior_command): Use
4068 PSPACE_EXEC_FILENAME.
4069 * mi/mi-main.c (print_one_inferior): Likewise.
4070 * progspace.c (clone_program_space, print_program_space): Likewise.
4071 * progspace.h (struct program_space): New field pspace_exec_filename.
4072 * source.c (openp): Describe OPF_DISABLE_REALPATH. New variable
4073 realpath_fptr, initialize it from OPF_DISABLE_REALPATH, use it.
4074
4075 2013-08-28 Will Newton <will.newton@linaro.org>
4076
4077 * common/linux-ptrace.c: Include stdint.h unconditionally.
4078
4079 2013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4080
4081 Code cleanup.
4082 * nto-tdep.c (nto_find_and_open_solib): Use OPF_TRY_CWD_FIRST.
4083
4084 2013-08-28 Yao Qi <yao@codesourcery.com>
4085 Pedro Alves <palves@redhat.com>
4086
4087 * event-top.c (gdb_setup_readline): Call stderr_fileopen
4088 instead of stdio_fileopen.
4089 * main.c (captured_main) [__MINGW32__]: Set stderr unbuffered.
4090 .Call stderr_fileopen instead of stdio_fileopen.
4091 * ui-file.c [__MINGW32__] (stderr_file_write): New function.
4092 [__MINGW32__] (stderr_file_fputs): New function.
4093 (stderr_fileopen): New function.
4094 * ui-file.h (stderr_fileopen): Declare.
4095
4096 2013-08-27 Doug Evans <dje@google.com>
4097
4098 * dwarf2read.c (struct dwarf2_cu): Tweak comment.
4099 (struct dwarf2_per_cu_data): Ditto.
4100 (maybe_queue_comp_unit): Delete forward decl. Add comment.
4101 (process_imported_unit_die): Ditto.
4102 (follow_die_sig_1): Simplify assert.
4103
4104 2013-08-27 Pedro Alves <palves@redhat.com>
4105
4106 * windows-nat.c (windows_xfer_memory): Adjust prototype to follow
4107 xfer_partial's interface. Return TARGET_XFER_E_IO on error.
4108 (windows_xfer_partial): Defer TARGET_OBJECT_MEMORY handling to
4109 windows_xfer_memory directly.
4110 (init_windows_ops): Don't install a deprecated_xfer_memory method.
4111
4112 2013-08-27 Pedro Alves <palves@redhat.com>
4113
4114 * darwin-nat.c (darwin_xfer_memory): Delete.
4115 (_initialize_darwin_inferior): Don't install a
4116 deprecated_xfer_memory method.
4117
4118 2013-08-27 Pedro Alves <pedro@codesourcery.com>
4119 Yao Qi <yao@codesourcery.com>
4120
4121 * mi/mi-cmd-stack.c (list_args_or_locals): Adjust prototype.
4122 (parse_no_frames_option): Remove.
4123 (mi_cmd_stack_list_locals): Handle --skip-unavailable.
4124 (mi_cmd_stack_list_args): Adjust.
4125 (mi_cmd_stack_list_variables): Handle --skip-unavailable.
4126 (list_arg_or_local): Add new parameter 'skip_unavailable'. Return
4127 early if SKIP_UNAVAILABLE is true and ARG->val is unavailable.
4128 Caller update.
4129 (list_args_or_locals): New parameter 'skip_unavailable'.
4130 Handle it.
4131 * valprint.c (scalar_type_p): Rename to ...
4132 (val_print_scalar_type_p): ... this. Make extern.
4133 (val_print, value_check_printable): Adjust.
4134 * valprint.h (val_print_scalar_type_p): Declare.
4135 * value.c (value_entirely_unavailable): New function.
4136 * value.h (value_entirely_unavailable): Declare.
4137
4138 * NEWS: Mention the new option "--skip-unavailable" to MI
4139 commands '-stack-list-locals', '-stack-list-arguments' and
4140 '-stack-list-variables'.
4141
4142 2013-08-27 Yao Qi <yao@codesourcery.com>
4143
4144 * mi/mi-cmd-stack.c (parse_no_frames_option): Remove.
4145 (mi_cmd_stack_list_args): Use mi_getopt_silent to handle
4146 options.
4147 * mi/mi-getopt.c (mi_getopt): Remove.
4148 (mi_getopt_1): Renamed from mi_getopt. Add one parameter
4149 'error_on_unknown'.
4150 (mi_getopt): Call mi_getopt_1.
4151 (mi_getopt_silent): New.
4152 * mi/mi-getopt.h (mi_getopt_silent): Declare.
4153
4154 2013-08-26 Doug Evans <dje@google.com>
4155
4156 PR symtab/15885
4157 * dwarf2read.c (dw2_dump): Print some minimal information indicating
4158 .gdb_index is in use.
4159 * symfile.c (reread_symbols): Reset objfile->sf.
4160
4161 * NEWS: Document "mt print objfiles" now takes optional regexp.
4162 * symmisc.c (maintenance_print_objfiles): Argument is now an optional
4163 regexp of objfiles to print.
4164 (_initialize_symmisc): Update doc string for "mt print objfiles".
4165
4166 * dwarf2read.c (write_psymtabs_to_index): Move error checks ahead of
4167 missing debug info checks.
4168
4169 2013-08-26 Raunaq Bathija <raunaq12@in.ibm.com>
4170 Ulrich Weigand <uweigand@de.ibm.com>
4171
4172 * xcoffread.c (arrange_linetable): Add fix to correctly handle
4173 line tables generated by XLC compiled binaries.
4174
4175 2013-08-23 Doug Evans <dje@google.com>
4176
4177 * symmisc.c (dump_symtab): Delete prototype.
4178 (dump_msymbols, dump_objfile): Ditto.
4179 (maintenance_info_symtabs): Mark as dont_repeat.
4180 (_initialize_symmisc): Improve doc string for "mt info symtabs".
4181
4182 * elfread.c (elf_symfile_read): Move "Done reading minimal symbols"
4183 debugging printf to better location.
4184
4185 2013-08-23 Pedro Alves <palves@redhat.com>
4186
4187 * target.c (target_read_live_memory): Change type of 'ret' local
4188 to LONGEST.
4189
4190 2013-08-23 Pedro Alves <palves@redhat.com>
4191
4192 * remote.c (remote_write_bytes_aux, remote_write_bytes)
4193 (remote_read_bytes): Change return type to LONGEST, and adjust to
4194 return a target_xfer_error on error.
4195 (remote_xfer_memory): Delete.
4196 (remote_flash_write): Change type of 'ret' local to LONGEST.
4197 (remote_xfer_partial, remote_xfer_partial): Adjust.
4198 (init_remote_ops): Don't install a deprecated_xfer_memory hook.
4199
4200 2013-08-23 Pierre Muller <muller@sourceware.org>
4201
4202 ARI fix: Push # directives to start of line.
4203 * rs6000-nat.c (rs6000_ptrace32, rs6000_ptrace64): Rule applied.
4204
4205 2013-08-12 Muhammad Waqas <mwaqas@codesourcery.com>
4206
4207 PR gdb/15501
4208 * breakpoint.c (enable_command, disable_command): Iterate over
4209 all specified breakpoint locations.
4210
4211 2013-08-22 Luis Machado <lgustavo@codesourcery.com>
4212
4213 * common/linux-ptrace.c (linux_fork_to_function): Push #
4214 directives to the start of the line.
4215 (linux_check_ptrace_features): Fix warning message to use
4216 the "_" markup.
4217
4218 2013-08-22 Luis Machado <lgustavo@codesourcery.com>
4219
4220 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-nat.h and
4221 nat/linux-waitpid.h.
4222 (linux-waitpid.o): New object file rule.
4223 * common/linux-ptrace.c: Include nat/linux-waitpid.h.
4224 (current_ptrace_options): Moved from linux-nat.c.
4225 (linux_ptrace_test_ret_to_nx): Use type casts for ptrace
4226 parameters.
4227 (linux_fork_to_function): New function.
4228 (linux_grandchild_function): Likewise.
4229 (linux_child_function): Likewise.
4230 (linux_check_ptrace_features): New function, heavily
4231 based on linux-nat.c:linux_test_for_tracefork.
4232 (linux_enable_event_reporting): New function.
4233 (ptrace_supports_feature): Likewise.
4234 (linux_supports_tracefork): Likewise.
4235 (linux_supports_traceclone): Likewise.
4236 (linux_supports_tracevforkdone): Likewise.
4237 (linux_supports_tracesysgood): Likewise.
4238 * common/linux-ptrace.h (HAS_NOMMU): Moved from
4239 gdbserver/linux-low.c.
4240 (linux_enable_event_reporting): New declaration.
4241 (linux_supports_tracefork): Likewise.
4242 (linux_supports_traceclone): Likewise.
4243 (linux_supports_tracevforkdone): Likewise.
4244 (linux_supports_tracesysgood): Likewise.
4245 * config.in (PTRACE_TYPE_ARG4): Regenerate.
4246 * config/aarch64/linux.mh (NATDEPFILES): Add linux-waitpid.o.
4247 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
4248 * config/arm/linux.mh (NATDEPFILES): Likewise.
4249 * config/i386/linux.mh (NATDEPFILES): Likewise.
4250 * config/i386/linux64.mh (NATDEPFILES): Likewise.
4251 * config/ia64/linux.mh (NATDEPFILES): Likewise.
4252 * config/m32r/linux.mh (NATDEPFILES): Likewise.
4253 * config/m68k/linux.mh (NATDEPFILES): Likewise.
4254 * config/mips/linux.mh (NATDEPFILES): Likewise.
4255 * config/pa/linux.mh (NATDEPFILES): Likewise..
4256 * config/powerpc/linux.mh (NATDEPFILES): Likewise..
4257 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
4258 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
4259 * config/sparc/linux.mh (NATDEPFILES): Likewise.
4260 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
4261 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
4262 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
4263 * configure.ac (AC_CACHE_CHECK): Add void * to the list of
4264 ptrace's 4th argument's types.
4265 Check the type of PTRACE_TYPE_ARG4.
4266 * configure: Regenerate.
4267 * linux-nat.c: Include nat/linux-nat.h and nat/linux-waitpid.h.
4268 (SYSCALL_SIGTRAP): Moved to nat/linux-nat.h.
4269 (linux_supports_tracefork_flag): Remove.
4270 (linux_supports_tracesysgood_flag): Likewise.
4271 (linux_supports_tracevforkdone_flag): Likewise.
4272 (current_ptrace_options): Moved to
4273 common/linux-ptrace.c.
4274 (linux_tracefork_child): Remove.
4275 (my_waitpid): Remove.
4276 (linux_test_for_tracefork): Renamed to
4277 linux_check_ptrace_features and moved to common/linux-ptrace.c.
4278 (linux_test_for_tracesysgood): Remove.
4279 (linux_supports_tracesysgood): Remove.
4280 (linux_supports_tracefork): Remove.
4281 (linux_supports_tracevforkdone): Remove.
4282 (linux_enable_tracesysgood): Remove.
4283 (linux_enable_event_reporting): Remove.
4284 (linux_init_ptrace): New function.
4285 (linux_child_post_attach): Call linux_init_ptrace.
4286 (linux_child_post_startup_inferior): Call linux_init_ptrace.
4287 (linux_child_follow_fork): Call linux_supports_tracefork
4288 and linux_supports_tracevforkdone.
4289 (linux_child_insert_fork_catchpoint): Call
4290 linux_supports_tracefork.
4291 (linux_child_insert_vfork_catchpoint): Likewise.
4292 (linux_child_set_syscall_catchpoint): Call
4293 linux_supports_tracesysgood.
4294 (lin_lwp_attach_lwp): Call linux_supports_tracefork.
4295 * nat/linux-nat.h: New file.
4296 * nat/linux-waitpid.c: New file.
4297 * nat/linux-waitpid.h: New file.
4298
4299 2013-08-22 Samuel Bronson <naesten@gmail.com>
4300
4301 ARM Linux support for `catch syscall'.
4302 * syscalls/arm-linux.py: New file.
4303 * syscalls/arm-linux.xml: Likewise.
4304 * arm-linux-tdep.c (arm_linux_get_syscall_number): New function.
4305 (arm_linux_init_abi): Register the new function and syscall xml file.
4306 * data-directory/Makefile.in: Install the new syscall xml file.
4307 * NEWS: Brag about this.
4308
4309 2013-08-22 Pedro Alves <palves@redhat.com>
4310
4311 PR gdb/15871
4312 * corefile.c (target_xfer_memory_error): New function.
4313 (memory_error): Defer EIO to target_memory_error.
4314 (read_memory): Use target_xfer_partial, and handle finer-grained
4315 target xfer errors.
4316 * target.c (target_xfer_error_to_string): New function.
4317 (memory_xfer_partial_1): If memory is known to be
4318 unavailable, return TARGET_XFER_E_UNAVAILABLE instead of -1.
4319 (target_xfer_partial): Make extern.
4320 * target.h (enum target_xfer_error): New enum.
4321 (target_xfer_error_to_string): Declare function.
4322 (target_xfer_partial): Declare function.
4323 (struct target_ops) <xfer_partial>: Adjust describing comment.
4324
4325 2013-08-22 Alan Modra <amodra@gmail.com>
4326
4327 * configure.host: Support powerpc64le-linux and powerpcle-linux hosts.
4328 * configure.tgt: Likewise as targets.
4329
4330 2013-08-20 Doug Evans <dje@google.com>
4331
4332 * buildsym.c (subfile_stack): Move here from buildsym.h.
4333 (pending_macros): Ditto.
4334 (get_macro_table): New function.
4335 (buildsym_init): Initialize subfile_stack.
4336 * coffread.c (type_vector,type_vector_length): Moved here from
4337 buildsym.h.
4338 (INITIAL_TYPE_VECTOR_LENGTH): Ditto.
4339 (coff_symtab_read): Use it.
4340 * dbxread.c (read_ofile_symtab): Delete init of subfile_stack.
4341 * dwarf2read.c (macro_start_file): Replace uses of pending_macros
4342 with call to get_macro_table.
4343 * stabsread.c (type_vector,type_vector_length): Moved here from
4344 buildsym.h.
4345 (INITIAL_TYPE_VECTOR_LENGTH): Ditto.
4346 * buildsym.h (get_macro_table): Declare.
4347
4348 2013-08-20 Tom Tromey <tromey@redhat.com>
4349
4350 * dbxread.c (record_minimal_symbol): Make 'name' argument const.
4351 Update.
4352 (read_dbx_dynamic_symtab): Make 'name' const. Remove casts.
4353
4354 2013-08-20 Doug Evans <dje@google.com>
4355
4356 * blockframe.c: Remove #include "psymtab.h".
4357 * cp-support.c: Ditto.
4358 * source.c: Ditto.
4359 * stack.c: Ditto.
4360
4361 2013-08-20 Tom Tromey <tromey@redhat.com>
4362
4363 PR python/15816:
4364 * exceptions.h (return_mask): Now an enum.
4365 (RETURN_MASK_QUIT, RETURN_MASK_ERROR, RETURN_MASK_ALL): Now
4366 enum constants.
4367
4368 2013-08-20 Tom Tromey <tromey@redhat.com>
4369
4370 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Use
4371 get_objfile_arch.
4372 * elfread.c (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
4373 (elf_gnu_ifunc_resolve_by_got): Use get_objfile_arch.
4374 * jit.c (jit_object_close_impl): Update.
4375 * jv-lang.c (get_dynamics_objfile): Update.
4376 * linespec.c (add_minsym): Use get_dynamics_objfile.
4377 * objfiles.c (get_objfile_bfd_data): Initialize 'gdbarch' field.
4378 (allocate_objfile): Don't initialize 'gdbarch' field.
4379 (get_objfile_arch): Update.
4380 * objfiles.h (struct objfile_per_bfd_storage) <gdbarch>: New field,
4381 moved from...
4382 (struct objfile) <gdbarch>: ... here. Remove.
4383 * stap-probe.c (stap_can_evaluate_probe_arguments): Use
4384 get_objfile_arch.
4385 * symfile.c (init_entry_point_info): Use get_objfile_arch.
4386
4387 2013-08-20 Alan Modra <amodra@gmail.com>
4388
4389 * doublest.c (convert_floatformat_to_doublest): Use fmt->split_half
4390 for IBM long double nan and inf.
4391 (floatformat_is_negative, floatformat_classify,
4392 floatformat_mantissa): Similarly.
4393 (floatformat_ieee_single, floatformat_ieee_double,
4394 floatformat_ieee_quad, floatformat_arm_ext,
4395 floatformat_ia64_spill): Delete unused vars.
4396 (_initialize_doublest): Delete unused function.
4397 * gdbtypes.c (floatformats_ibm_long_double): Use new big- and
4398 little-endian variants of floatformat_ibm_long_double.
4399
4400 2013-08-19 Luis Machado <lgustavo@codesourcery.com>
4401
4402 * Makefile.in (SFILES): Remove common/target-common.c and
4403 add target/waitstatus.c.
4404 (HFILES_NO_SRCDIR): Remove common/target-common.h and add
4405 target/resume.h, target/wait.h and target/waitstatus.h.
4406 (COMMON_OBS): Remove target-common.o and add
4407 waitstatus.o.
4408 (target-common.o): Remove.
4409 (waitstatus.o): New target object file.
4410 * common/target-common.c: Move contents to
4411 target/waitstatus.c and remove.
4412 * common/target-common.h: Move contents to other files and
4413 remove.
4414 (enum resume_kind: Move to target/resume.h.
4415 (TARGET_WNOHANG): Move to target/wait.h.
4416 (enum target_waitkind): Move to target/waitstatus.h.
4417 (struct target_waitstatus): Likewise.
4418 * target.h: Do not include target-common.h and
4419 include target/resume.h, target/wait.h and
4420 target/waitstatus.h.
4421 * target/resume.h: New file.
4422 * target/wait.h: New file.
4423 * target/waitstatus.h: New file.
4424 * target/waitstatus.c: New file.
4425
4426 2013-08-19 Pedro Alves <palves@redhat.com>
4427
4428 * linux-nat.c (linux_test_for_tracefork)
4429 (linux_test_for_tracesysgood, linux_child_follow_fork)
4430 (lin_lwp_attach_lwp, linux_nat_resume): Don't block child signals.
4431 (linux_nat_wait_1): Extend comment.
4432 (linux_async_pipe): Add comment.
4433
4434 2013-08-15 Kevin Buettner <kevinb@redhat.com>
4435
4436 * rl78-tdep.c (RL78_RAW_PC_REGNUM): New enum.
4437 (RL78_PC_REGNUM): Move to list of pseudo-register enums.
4438 (rl78_register_type, rl78_register_name, rl78_register_reggroup_p):
4439 Update to account for fact that PC is now a pseudo-register.
4440 (rl78_pseudo_register_write, rl78_pseudo_register_read): Add
4441 cases for RL78_PC_REGNUM.
4442
4443 2013-08-15 Muhammad Bilal <mbilal@codesourcery.com>
4444
4445 PR cli/15841
4446 * top.c (quit_force): Skip writing history file
4447 if input is not from terminal.
4448
4449 2013-08-14 Tom Tromey <tromey@redhat.com>
4450
4451 * remote.c (struct remote_state) <echo_nextthread, nextthread,
4452 resultthreadlist>: New fields.
4453 (OPAQUETHREADBYTES, threadref, MAXTHREADLISTRESULTS): Move earlier.
4454 (remote_get_threadlist, remote_threadlist_iterator): Use
4455 new fields. Remove static variables.
4456
4457 2013-08-14 Tom Tromey <tromey@redhat.com>
4458
4459 * remote.c (struct remote_state) <remote_stopped_by_watchpoint_p,
4460 remote_watch_data_address>: New fields.
4461 (remote_stopped_by_watchpoint_p, remote_watch_data_address): Remove.
4462 (process_stop_reply, remote_wait_as)
4463 (remote_check_watch_resources, remote_stopped_data_address): Update.
4464
4465 2013-08-14 Tom Tromey <tromey@redhat.com>
4466
4467 * remote.c (struct remote_state) <async_client_callback,
4468 async_client_context>: New fields.
4469 (async_client_callback, async_client_context): Remove.
4470 (remote_async_serial_handler, remote_async): Update.
4471
4472 2013-08-14 Tom Tromey <tromey@redhat.com>
4473
4474 * remote.c (sizeof_pkt): Remove.
4475 (remote_trace_find): Use rs->buf_size, not sizeof_pkt.
4476
4477 2013-08-14 Tom Tromey <tromey@redhat.com>
4478
4479 * remote.c (struct remote_state) <use_threadinfo_query,
4480 use_threadextra_query>: New fields.
4481 (remote_threads_info, remote_threads_extra_info)
4482 (remote_open_1): Update.
4483
4484 2013-08-14 Tom Tromey <tromey@redhat.com>
4485
4486 * remote.c (struct remote_state) <finished_object,
4487 finished_annex, finished_offset>: New fields.
4488 (remote_read_qxfer): Use remote_state fields; remove static
4489 variables.
4490
4491 2013-08-14 Tom Tromey <tromey@redhat.com>
4492
4493 * remote.c (struct remote_state) <last_sent_step>:
4494 New field.
4495 (last_sent_step): Remove.
4496 (remote_resume, remote_wait_as): Update.
4497
4498 2013-08-14 Tom Tromey <tromey@redhat.com>
4499
4500 * remote.c (struct remote_state) <last_sent_signal>:
4501 New field.
4502 (last_sent_signal): Remove.
4503 (new_remote_state, remote_resume, remote_wait_as): Update.
4504
4505 2013-08-14 Tom Tromey <tromey@redhat.com>
4506
4507 * remote.c (struct remote_state) <last_program_signals_packet>:
4508 New field.
4509 (last_program_signals_packet): Remove.
4510 (remote_program_signals, remote_open_1): Update.
4511
4512 2013-08-14 Tom Tromey <tromey@redhat.com>
4513
4514 * remote.c (struct remote_state) <last_pass_packet>:
4515 New field.
4516 (last_pass_packet): Remove.
4517 (remote_pass_signals, remote_open_1): Update.
4518
4519 2013-08-14 Tom Tromey <tromey@redhat.com>
4520
4521 * remote.c (struct remote_state) <remote_traceframe_number>:
4522 New field.
4523 (remote_traceframe_number): Remove.
4524 (new_remote_state, remote_open_1, set_remote_traceframe)
4525 (remote_trace_find): Update.
4526
4527 2013-08-14 Tom Tromey <tromey@redhat.com>
4528
4529 * remote.c (struct remote_state) <general_thread, continue_thread>:
4530 New fields.
4531 (general_thread, continue_thread): Remove.
4532 (record_currthread, set_thread, set_general_process)
4533 (remote_open_1, extended_remote_attach_1, remote_wait_as)
4534 (extended_remote_mourn_1): Update.
4535
4536 2013-08-14 Tom Tromey <tromey@redhat.com>
4537
4538 * remote.c (struct remote_state) <remote_desc>: New field.
4539 (remote_desc): Remove.
4540 (remote_threads_info, remote_threads_extra_info, remote_close)
4541 (send_interrupt_sequence, remote_start_remote, remote_open_1)
4542 (readchar, remote_xfer_partial, remote_rcmd, packet_command)
4543 (remote_hostio_send_command, remote_file_put, remote_file_get)
4544 (remote_file_delete, remote_can_async_p, remote_is_async_p)
4545 (remote_async, remote_new_objfile, set_range_stepping): Update.
4546
4547 2013-08-14 Tom Tromey <tromey@redhat.com>
4548
4549 * remote.c (remote_state): Now a pointer.
4550 (get_remote_state_raw): Update.
4551 (new_remote_state): New function.
4552 (_initialize_remote): Use new_remote_state.
4553
4554 2013-08-14 Tom Tromey <tromey@redhat.com>
4555
4556 * remote.c (remote_protocol_features): Now const.
4557
4558 2013-08-14 Tom Tromey <tromey@redhat.com>
4559
4560 * remote.c (crc32_table, crc32): Remove.
4561 (remote_verify_memory): Use xcrc32.
4562
4563 2013-08-13 Sergio Durigan Junior <sergiodj@redhat.com>
4564
4565 * value.h (create_internalvar_type_lazy): Adjust prototype
4566 declaration.
4567
4568 2013-08-13 Andrew Burgess <aburgess@broadcom.com>
4569
4570 * common/format.c (parse_format_string): Don't allow '#' flag for
4571 pointer arguments in format string.
4572
4573 2013-08-13 Pierre Muller <muller@sourceware.org>
4574
4575 * utils.c (init_page_info): Only call tgetnum function
4576 if rl_get_screen_size did not return useful values.
4577
4578 2013-08-12 Ali Anwar <ali_anwar@codesourcery.com>
4579
4580 PR breakpoints/15117
4581 * linespec.c (linespec_parse_basic): Check for convenience
4582 variable or history value while parsing.
4583
4584 2013-08-12 Sergio Durigan Junior <sergiodj@redhat.com>
4585
4586 Revert implementation of gdbarch_gdb_signal_{to,from}_target for
4587 AVR.
4588 * avr-tdep.c: Remove include of "linux-tdep.h". Remove enum with
4589 different signals between the generic Linux kernel implementation
4590 and AVR's.
4591 (avr_linux_gdb_signal_from_target): Delete.
4592 (avr_linux_gdb_signal_to_target): Delete.
4593 (avr_gdbarch_init): Don't set gdbarch_gdb_signal_{to,from}_target.
4594
4595 2013-08-09 Doug Evans <dje@google.com>
4596
4597 * dwarf2read.c (create_addrmap_from_index): Ignore bad address table
4598 entries.
4599
4600 2013-08-09 Sergio Durigan Junior <sergiodj@redhat.com>
4601
4602 * linux-tdep.c: Define enum with generic signal numbers.
4603 (linux_gdb_signal_from_target): New function.
4604 (linux_gdb_signal_to_target): Likewise.
4605 (linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
4606 methods to the functions above.
4607 * linux-tdep.h (linux_gdb_signal_from_target): New prototype.
4608 (linux_gdb_signal_to_target): Likewise.
4609 * alpha-linux-tdep.c: Define new enum with signals different
4610 from generic Linux kernel.
4611 (alpha_linux_gdb_signal_from_target): New function.
4612 (alpha_linux_gdb_signal_to_target): Likewise.
4613 (alpha_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
4614 with the functions mentioned above.
4615 * avr-tdep.c: Define enum with differences between Linux kernel
4616 and AVR signals.
4617 (avr_linux_gdb_signal_from_target): New function.
4618 (avr_linux_gdb_signal_to_target): Likewise.
4619 (avr_gdbarch_init): Set gdbarch_gdb_signal_{to,from}_target to
4620 the functions mentioned above.
4621 * sparc-linux-tdep.c: Define enum with differences between SPARC
4622 and generic Linux kernel signal numbers.
4623 (sparc32_linux_gdb_signal_from_target): New function.
4624 (sparc32_linux_gdb_signal_to_target): Likewise.
4625 (sparc32_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
4626 to the functions defined above.
4627 * xtensa-linux-tdep.c: Define enum with differences between
4628 Xtensa and Linux kernel generic signals.
4629 (xtensa_linux_gdb_signal_from_target): New function.
4630 (xtensa_linux_gdb_signal_to_target): Likewise.
4631 (xtensa_linux_init_abi): Set gdbarch_gdb_signal_to_target
4632 to the functions defined above.
4633 * mips-linux-tdep.c: Define enum with differences between
4634 signals in MIPS and Linux kernel generic ones.
4635 (mips_gdb_signal_to_target): New function.
4636 (mips_gdb_signal_from_target): Redefine to use new enum, handle
4637 only different signals from the Linux kernel generic.
4638 (mips_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
4639 the functions defined above.
4640 * mips-linux-tdep.h (enum mips_signals): Remove.
4641
4642 2013-08-09 Pedro Alves <palves@redhat.com>
4643
4644 * avr-tdep.c (XMALLOC): Delete macro.
4645 * cli/cli-dump.c (XMALLOC): Delete macro.
4646
4647 2013-08-09 Pedro Alves <palves@redhat.com>
4648
4649 * cli/cli-dump.c: Don't include cli/cli-dump.h.
4650 (scan_expression_with_cleanup, scan_filename_with_cleanup)
4651 (fopen_with_cleanup, add_dump_command): Make static.
4652 * cli/cli-dump.h: Delete file.
4653 * Makefile.in (HFILES_NO_SRCDIR): Remove reference to
4654 cli/cli-dump.h.
4655
4656 2013-08-09 Pedro Alves <palves@redhat.com>
4657
4658 * tracepoint.c (tfile_start): Show tilde-expanded filename in
4659 error message.
4660
4661 2013-08-09 Pedro Alves <palves@redhat.com>
4662
4663 * breakpoint.c (save_breakpoints): Show tilde-expanded filename in
4664 error message.
4665
4666 2013-08-09 Pedro Alves <palves@redhat.com>
4667
4668 * gcore.c (create_gcore_bfd): Don't use tilde_expand here.
4669 (gcore_command): Use tilde_expand here, and when showing the
4670 filename to the user, show the expanded version.
4671
4672 2013-08-09 Yao Qi <yao@codesourcery.com>
4673
4674 * stack.c (read_frame_arg): Set 'entryval_error' to NULL if
4675 'entryval' is set.
4676
4677 2013-08-08 Azat Khuzhin <a3at.mail@gmail.com> (tiny change)
4678
4679 * gcore.c (create_gcore_bfd): Use tilde_expand.
4680
4681 2013-08-08 Yao Qi <yao@codesourcery.com>
4682
4683 * frame.h (read_frame_local): Declare.
4684 * mi/mi-cmd-stack.c (list_args_or_locals): Call
4685 read_frame_local.
4686 * stack.c (read_frame_local): New.
4687
4688 2013-08-08 Yao Qi <yao@codesourcery.com>
4689
4690 * mi/mi-cmd-stack.c: Update comments to function
4691 list_args_or_locals.
4692
4693 2013-08-07 Tom Tromey <tromey@redhat.com>
4694
4695 PR symtab/15028:
4696 * dwarf2read.c (struct process_psymtab_comp_unit_data): New.
4697 (process_psymtab_comp_unit_reader): Use it.
4698 (process_psymtab_comp_unit): Update. Add "pretend_language"
4699 argument.
4700 (dwarf2_build_psymtabs_hard): Update.
4701 (scan_partial_symbols): Pass CU's language to
4702 process_psymtab_comp_unit.
4703
4704 2013-08-07 Tom Tromey <tromey@redhat.com>
4705
4706 * dwarf2read.c (dw2_get_primary_filename_reader): Remove.
4707 (dwarf2_gdb_index_functions): Update.
4708 * psymtab.c (find_symbol_file_from_partial): Remove.
4709 (psym_functions): Update.
4710 * symfile.h (struct quick_symbol_functions) <find_symbol_file>:
4711 Remove.
4712
4713 2013-08-07 Tom Tromey <tromey@redhat.com>
4714
4715 * symfile.c (set_initial_language): Look up "main" symbol
4716 and use its language.
4717 * symtab.c (find_main_filename): Remove.
4718 * symtab.h (find_main_filename): Remove.
4719
4720 2013-08-07 Tom Tromey <tromey@redhat.com>
4721
4722 * dwarf2read.c (recursively_compute_inclusions): Add
4723 "immediate_parent" argument. Set symtab's "user" field
4724 if not set.
4725 (compute_symtab_includes): Update.
4726
4727 2013-08-07 Tom Tromey <tromey@redhat.com>
4728
4729 * linespec.c (convert_linespec_to_sals): Use maybe_add_address
4730 when adding label symbols.
4731
4732 2013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
4733 Ulrich Weigand <uweigand@de.ibm.com>
4734
4735 * configure.tgt (powerpc64-*-aix*): Match powerpc64 running aix.
4736 * configure.host (powerpc64-*-aix*): Likewise.
4737
4738 2013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
4739 Ulrich Weigand <uweigand@de.ibm.com>
4740
4741 * gdb_ptrace.h: Use ptrace64 instead of ptrace if HAVE_PTRACE64
4742 is defined.
4743 * rs6000-nat.c: Check for __ld_info64_ if compiling 64 BIT gdb.
4744 (rs6000_ptrace32): Call ptrace64 instead of ptrace if present.
4745 (rs6000_ptrace64): Call ptace64 instead of ptracex if present.
4746 * configure.ac: Check for ptrace64.
4747 * configure, config.in: Regenerate.
4748
4749 2013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
4750 Ulrich Weigand <uweigand@de.ibm.com>
4751
4752 * aixthread.c: Call ptrace64 instead of ptracex if defined.
4753 Call ptrace64 instead of ptrace if defined.
4754 Add macro addr_ptr to take care of ptrace address argument.
4755 (pdc_read_regs): Likewise.
4756 (pdc_write_regs): Likewise.
4757 (aix_thread_resume): Likewise.
4758 (fetch_regs_kernel_thread): Likewise.
4759 (store_regs_kernel_thread): Likewise.
4760
4761 2013-08-07 Anton Blanchard <anton@samba.org>
4762
4763 * MAINTAINERS: Add myself to Write After Approval.
4764
4765 2013-08-05 Tom Tromey <tromey@redhat.com>
4766
4767 * aix-thread.c (_initialize_aix_thread): Use
4768 complete_target_initialization.
4769 * bsd-uthread.c (_initialize_bsd_uthread): Use
4770 complete_target_initialization.
4771 * dec-thread.c (_initialize_dec_thread): Use
4772 complete_target_initialization.
4773 * ravenscar-thread.c (_initialize_ravenscar): Use
4774 complete_target_initialization.
4775 * sol-thread.c (_initialize_sol_thread): Use
4776 complete_target_initialization.
4777 * spu-multiarch.c (_initialize_spu_multiarch): Use
4778 complete_target_initialization.
4779
4780 2013-08-05 Tom Tromey <tromey@redhat.com>
4781
4782 * ada-exp.y (write_var_or_type): Use bound_minimal_symbol.
4783 * ada-lang.c (ada_lookup_simple_minsym): Return
4784 bound_minimal_symbol.
4785 * ada-lang.h (ada_lookup_simple_minsym): Update.
4786 * c-exp.y (variable): Use lookup_bound_minimal_symbol.
4787 * f-exp.y (variable): Use lookup_bound_minimal_symbol.
4788 * go-exp.y (variable): Use lookup_bound_minimal_symbol.
4789 * jv-exp.y (push_expression_name): Use lookup_bound_minimal_symbol.
4790 * m2-exp.y (variable): Use lookup_bound_minimal_symbol.
4791 * minsyms.c (msymbol_objfile): Remove.
4792 (lookup_minimal_symbol_internal): New function, from
4793 lookup_minimal_symbol.
4794 (lookup_minimal_symbol): Rewrite using
4795 lookup_minimal_symbol_internal.
4796 (lookup_bound_minimal_symbol): New function.
4797 * minsyms.h (msymbol_objfile): Remove.
4798 (lookup_bound_minimal_symbol): Declare.
4799 * p-exp.y (variable): Use lookup_bound_minimal_symbol.
4800 * parse.c (write_exp_msymbol): Change parameter to a
4801 bound_minimal_symbol.
4802 (write_dollar_variable): Use lookup_bound_minimal_symbol.
4803 * parser-defs.h (write_exp_msymbol): Update.
4804 * printcmd.c (address_info): Use lookup_bound_minimal_symbol.
4805 * symfile.c (simple_read_overlay_table): Use
4806 lookup_bound_minimal_symbol.
4807 * symtab.c (skip_prologue_sal): Don't use msymbol_objfile.
4808 (search_symbols): Likewise.
4809 (print_msymbol_info): Take a bound_minimal_symbol argument.
4810 (symtab_symbol_info, rbreak_command): Update.
4811 * symtab.h (struct symbol_search) <msymbol>: Change type
4812 to bound_minimal_symbol.
4813 * valops.c (find_function_in_inferior): Use
4814 lookup_bound_minimal_symbol.
4815 * value.c (value_fn_field): Use lookup_bound_minimal_symbol.
4816
4817 2013-08-05 Jan Kratochvil <jan.kratochvil@redhat.com>
4818
4819 Code cleanup.
4820 * remote.c (cleanup_sigint_signal_handler): Rename the declaration
4821 to ...
4822 (async_cleanup_sigint_signal_handler): ... this.
4823 (initialize_sigint_signal_handler): Remove declaration.
4824 (handle_remote_sigint): Rename the declaration to ...
4825 (async_handle_remote_sigint): ... this.
4826 (handle_remote_sigint_twice): Rename the declaration to ...
4827 (async_handle_remote_sigint_twice): ... this.
4828 (async_remote_interrupt, async_remote_interrupt_twice)
4829 (remote_interrupt): Remove the declarations.
4830 (remote_interrupt_twice): Rename the declaration ...
4831 (sync_remote_interrupt_twice): ... this.
4832 (sigint_remote_twice_token): Rename the variable to ...
4833 (async_sigint_remote_twice_token): ... this.
4834 (sigint_remote_token): Rename the variable to ...
4835 (async_sigint_remote_token): ... this.
4836 (initialize_sigint_signal_handler): Rename the function to ...
4837 (async_initialize_sigint_signal_handler): ... this. Update the name
4838 inside.
4839 (handle_remote_sigint): Rename the function to ...
4840 (async_handle_remote_sigint): ... this. Update the names inside.
4841 (handle_remote_sigint_twice): Rename the function to ...
4842 (async_handle_remote_sigint_twice): ... this. Update the names inside.
4843 (cleanup_sigint_signal_handler): Rename the function to ...
4844 (async_cleanup_sigint_signal_handler): ... this.
4845 (remote_interrupt): Rename the function to ...
4846 (sync_remote_interrupt): this. Update the names inside.
4847 (remote_interrupt_twice): Rename the function to ...
4848 (sync_remote_interrupt_twice): this. Update the names inside.
4849 (remote_terminal_inferior, remote_terminal_ours, remote_wait_as)
4850 (_initialize_remote): Update the names inside.
4851
4852 2013-08-02 Tom Tromey <tromey@redhat.com>
4853
4854 PR symtab/15719:
4855 * breakpoint.c (update_watchpoint, watchpoint_check)
4856 (watch_command_1): Update.
4857 * eval.c (fetch_subexp_value): Add "preserve_errors"
4858 parameter.
4859 * ppc-linux-nat.c (check_condition): Update.
4860 * value.h (fetch_subexp_value): Update.
4861
4862 2013-08-02 Andrew Burgess <aburgess@broadcom.com>
4863
4864 * mi/mi-interp.c (mi_interpreter_resume): Remove call to
4865 add_file_handler.
4866
4867 2013-08-01 Doug Evans <dje@google.com>
4868
4869 PR symtab/15691
4870 * dwarf2read.c (struct dwarf2_per_cu_data): New member tu_read.
4871 (fill_in_sig_entry_from_dwo_entry): Reorganize asserts.
4872 Add assert of sig_entry->dwo_unit == NULL.
4873 (lookup_dwo_signatured_type): Don't assign TU to a DWO if the TU
4874 had already been read.
4875 (read_signatured_type): Set per_cu.tu_read.
4876
4877 PR symtab/15695
4878 * valops.c (value_struct_elt): Add missing call to check_typedef.
4879 (value_find_oload_method_list): Ditto.
4880
4881 * symtab.c (do_free_search_symbols_cleanup): Change arg to,
4882 effectively, struct symbol_search **.
4883 (make_cleanup_free_search_symbols): Change arg to struct
4884 symbol_search **. All callers updated.
4885 (compare_search_syms): Compare symtab file name and block as well.
4886 (search_symbols_equal): New function.
4887 (sort_search_symbols_remove_dups): Renamed from sort_search_symbols.
4888 New args new_head, new_tail. Result is now void. Remove dups after
4889 sorting the symbols.
4890 (search_symbols): Sort all found symbols once, after all have been
4891 found, and remove duplicates. Simplify cleanup tracking of result.
4892 * symtab.h (make_cleanup_free_search_symbols): Update prototype.
4893
4894 Further workarounds for binutils/15021.
4895 * dwarf2read.c (recursively_compute_inclusions): Change type of result
4896 parameter to VEC (symtab_ptr) **. New parameter all_type_symtabs.
4897 Watch for duplicate symtabs coming from type units.
4898 (compute_symtab_includes): Update call to
4899 recursively_compute_inclusions. Build vector of included symtabs
4900 instead of per_cus.
4901 * symtab.h (symtab_ptr): New typedef.
4902 (DEF_VEC_P (symtab_ptr)): New VEC type.
4903 * linespec.c (symtab_p): Delete. All uses updated to use symtab_ptr
4904 instead.
4905
4906 2013-08-01 Andrew Burgess <aburgess@broadcom.com>
4907
4908 * cli/cli-script.c (script_from_file): Remove use of
4909 error_pre_print.
4910 * main.c (captured_main): Remove use of error_pre_print and
4911 quit_pre_print.
4912 * utils.c (error_pre_print, quit_pre_print): Remove.
4913 * utils.h (error_pre_print, quit_pre_print): Likewise.
4914
4915 2013-08-01 Yao Qi <yao@codesourcery.com>
4916
4917 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Parse argv
4918 with mi_getopt.
4919 (mi_cmd_stack_list_variables): Likewise.
4920
4921 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
4922
4923 * exceptions.c (deprecated_throw_reason): Remove.
4924 * exceptions.h (deprecated_throw_reason): Remove.
4925
4926 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
4927
4928 * remote-mips.c (mips_error): Replace use of
4929 deprecated_throw_reason with throw_verror. Use the error message
4930 passed to mips_error as the error message for throw_verror.
4931
4932 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
4933
4934 * monitor.c (monitor_interrupt_query): Replace use of
4935 deprecated_throw_reason with quit.
4936 * nto-procfs.c (interrupt_query): Likewise.
4937 * remote-fileio.c (remote_fileio_sig_exit): Likewise.
4938 * remote-mips.c (mips_kill): Likewise.
4939 * remote.c (interrupt_query): Likewise.
4940
4941 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
4942
4943 * utils.c (internal_verror): Replace use of deprecated_throw_reason
4944 with call to fatal.
4945
4946 2013-07-31 Pedro Alves <pedro@codesourcery.com>
4947 Yao Qi <yao@codesourcery.com>
4948
4949 * tracepoint.c (trace_dump_command): Select the current frame.
4950
4951 2013-07-30 Doug Evans <dje@google.com>
4952
4953 * dwarf2read.c (process_queue): Add type signature to debug output.
4954
4955 2013-07-30 Andrew Burgess <aburgess@broadcom.com>
4956
4957 * value.c (value_fetch_lazy): Mark optimized out values as such
4958 rather than raising an error.
4959
4960 2013-07-30 Andrew Burgess <aburgess@broadcom.com>
4961
4962 * value.c (value_fetch_lazy): Ensure parent value is not lazy
4963 before checking which bits of the parent, not the child, value are
4964 valid.
4965
4966 2013-07-30 Muhammad Bilal <mbilal@codesorcery.com>
4967
4968 PR gdb/15715
4969 * top.c: Include "filenames.h".
4970 (set_history_filename): New function.
4971 (init_main): Install it as set hook of the "set history filename"
4972 command.
4973
4974 2013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
4975
4976 * dwarf2read.c (dwarf2_get_ref_die_offset): Constify struct
4977 attribute parameter.
4978 (dwarf2_const_value_data): Constify struct attribute parameter.
4979 (dwarf2_const_value): Constify struct attribute parameter.
4980 (dwarf2_const_value_attr): Constify struct attribute parameter.
4981 (lookup_die_type): Constify struct attribute parameter.
4982 (dwarf2_get_attr_constant_value): Constify struct attribute parameter.
4983 (follow_die_ref_or_sig): Constify struct attribute parameter.
4984 (follow_die_ref): Constify struct attribute parameter.
4985 (follow_die_sig): Constify struct attribute parameter.
4986 (get_DW_AT_signature_type): Constify struct attribute parameter.
4987 (get_type_unit_group): Constify struct attribute parameter.
4988 (fill_in_loclist_baton): Constify struct attribute parameter.
4989 (dwarf2_symbol_mark_computed): Constify struct attribute parameter.
4990 (type_unit_group): Constify struct attribute parameter.
4991
4992 2013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
4993
4994 * dwarf2read.c (attr_form_is_block): Make argument const.
4995 (attr_form_is_section_offset): Make argument const.
4996 (attr_form_is_constant): Make argument const.
4997 (attr_form_is_ref): Make argument const.
4998
4999 2013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
5000
5001 * dwarf2read.c (attr_is_ref): Rename to attr_form_is_ref.
5002 All uses updated.
5003 (attr_form_is_ref): Moved below attr_form_is_constant.
5004
5005 2013-07-29 Doug Evans <dje@google.com>
5006
5007 * main.c (captured_command_loop): Tweak comment.
5008
5009 * target.c (target_async_permitted_1): Fix comment.
5010
5011 * symtab.c (iterate_over_some_symtabs): Add comment.
5012
5013 * symtab.c (iterate_over_some_symtabs): Fix indentation.
5014
5015 2013-07-27 Yao Qi <yao@codesourcery.com>
5016
5017 * NEWS: Mention that GDBserver now supports hardware
5018 watchpoints on the MIPS GNU/Linux target.
5019
5020 2013-07-27 Yao Qi <yao@codesourcery.com>
5021
5022 * Makefile.in (HFILES_NO_SRCDIR): Add
5023 common/mips-linux-watch.h.
5024 (mips-linux-watch.o): New rule.
5025 * common/mips-linux-watch.c: New.
5026 * common/mips-linux-watch.h: New.
5027 * config/mips/linux.mh (NATDEPFILES): Add mips-linux-watch.o
5028 * mips-linux-nat.c: Include mips-linux-watch.h.
5029 (W_BIT, R_BIT, I_BIT, W_MASK, R_MASK, I_MASK, IRW_MASK): Move
5030 to common/mips-linux-watch.h.
5031 (MAX_DEBUG_REGISTER): Likewise.
5032 (enum pt_watch_style): Likewise.
5033 (struct mips32_watch_regs): Likewise.
5034 (struct mips64_watch_regs): Likewise.
5035 (struct pt_watch_regs): Likewise.
5036 (struct mips_watchpoint): Likewise.
5037 (mips_linux_watch_get_irw_mask): Move to
5038 common/mips-linux-watch.c.
5039 (get_reg_mask, mips_linux_watch_get_num_valid): Likewise.
5040 (mips_linux_watch_get_watchlo): Likewise.
5041 (mips_linux_watch_set_watchlo): Likewise.
5042 (mips_linux_watch_get_watchhi): Likewise.
5043 (mips_linux_watch_set_watchhi): Likewise.
5044 (mips_linux_read_watch_registers): Likewise.
5045 (mips_linux_watch_type_to_irw): Likewise.
5046 (mips_linux_stopped_data_address, fill_mask): Likewise.
5047 (mips_linux_watch_try_one_watch): Likewise.
5048 (mips_linux_watch_populate_regs): Likewise.
5049
5050 2013-07-27 Yao Qi <yao@codesourcery.com>
5051
5052 * mips-linux-nat.c (get_irw_mask): Rename to ...
5053 (mips_linux_watch_get_irw_mask): ... this. Rename parameter
5054 'set' to 'n'. Update function comment. All callers changed.
5055 (get_reg_mask): Rename parameter 'set' to 'n'. Update
5056 function comment. All callers changed.
5057 (get_num_valid): Rename to ...
5058 (mips_linux_watch_get_num_valid): ... this. Rename parameter
5059 'set' to 'n'. Update function comment. All callers changed.
5060 (get_watchlo): Rename to ...
5061 (mips_linux_watch_get_watchlo): ... this. Rename parameter
5062 'set' to 'n'. Update function comment. All callers changed.
5063 (set_watchlo): Rename to ...
5064 (mips_linux_watch_set_watchlo): ... this. Rename parameter
5065 'set' to 'n'. Update function comment. All callers changed.
5066 (get_watchhi): Rename to ...
5067 (mips_linux_watch_get_watchhi): ... this. Update function
5068 comment. All callers changed.
5069 (set_watchhi): Rename to ...
5070 (mips_linux_watch_set_watchhi): ... this. Update function
5071 comment. All callers changed.
5072 (mips_linux_read_watch_registers): Update function comment.
5073 Add new parameters 'lwpid', 'watch_readback', and
5074 'watch_readback_valid'. Update.
5075 (type_to_irw): Rename to ...
5076 (mips_linux_watch_type_to_irw): ... this. Update function
5077 comment. All callers changed.
5078 (fill_mask): Update function comment.
5079 (try_one_watch): Rename to ...
5080 (mips_linux_watch_try_one_watch): ... this. Change the type
5081 of parameter 'irw' from 'unsigned' to 'uint32_t'.
5082 (populate_regs_from_watches): Rename to ...
5083 (mips_linux_watch_populate_regs): ... this. Add parameter
5084 'current_watches'. All callers changed.
5085
5086 2013-07-27 Yao Qi <yao@codesourcery.com>
5087
5088 * mips-linux-nat.c (MAX_DEBUG_REGISTER): Move it earlier in
5089 the code.
5090 (PTRACE_SET_WATCH_REGS, enum pt_watch_style): Remove.
5091 (struct mips32_watch_regs, struct mips64_watch_regs): Remove.
5092 (struct pt_watch_regs): Likewise.
5093 [!PTRACE_GET_WATCH_REGS] (PTRACE_SET_WATCH_REGS): New macro.
5094 [!PTRACE_GET_WATCH_REGS] (enum pt_watch_style): New.
5095 [!PTRACE_GET_WATCH_REGS] (struct mips32_watch_regs): New.
5096 [!PTRACE_GET_WATCH_REGS] (struct mips64_watch_regs): New.
5097 [!PTRACE_GET_WATCH_REGS] (struct pt_watch_regs): New.
5098
5099 2013-07-27 Yao Qi <yao@codesourcery.com>
5100
5101 * breakpoint.h: Include break-common.h.
5102 (enum target_hw_bp_type): Move to ...
5103 * common/break-common.h: ... here. New.
5104
5105 2013-07-26 Cyril Nikolaev <cyril@nichtverstehen.de>
5106
5107 * inflow.c (terminal_init_inferior_with_pgrp): Save inferior
5108 process group regardless of having tty on stdin.
5109
5110 2013-07-25 Doug Evans <dje@google.com>
5111
5112 * linux-fork.h (detach_fork): Delete.
5113
5114 2013-07-25 Tom Tromey <tromey@redhat.com>
5115
5116 PR remote/15256, PR remote/15266:
5117 * bfd-target.c (target_bfd_reopen): Initialize to_magic.
5118 * monitor.c (monitor_detach): Use unpush_target.
5119 * remote-m32r-sdi.c (m32r_detach): Use unpush_target.
5120 * remote-mips.c (mips_detach): Use unpush_target. Don't
5121 call mips_close.
5122 * remote-sim.c (gdbsim_detach): Use unpush_target.
5123 * target.c (pop_target): Remove.
5124 (pop_all_targets_above): Don't call target_close.
5125 (target_close): Assert that the target is unpushed.
5126 * target.h (pop_target): Don't declare.
5127 * tracepoint.c (tfile_open): Use unpush_target.
5128
5129 2013-07-25 Tom Tromey <tromey@redhat.com>
5130
5131 * linux-thread-db.c (init_thread_db_ops): Call
5132 complete_target_initialization.
5133 (_initialize_thread_db): Don't call add_target.
5134 * target.c (complete_target_initialization): New function.
5135 (add_target_with_completer): Call it.
5136 * target.h (complete_target_initialization): Declare.
5137
5138 2013-07-25 Mark Kettenis <kettenis@gnu.org>
5139
5140 * hppa-tdep.h (enum hppa_regnum): Add members for all space registers.
5141 * hppaobsd-tdep.c (HPPAOBSD_SIZEOF_GREGS): Add comment.
5142 (HPPANBSD_SIZEOF_GREGS): New define.
5143 (hppaobsd_supply_gregset): Handle additional registers.
5144 * hppabsd-nat.c (hppabsd_gregset_supplies_p): Adjust to indicate
5145 we provide more registers now.
5146 (hppabsd_supply_gregset): Supply additional registers.
5147 (hppabsd_collect_gregset): Collect additional registers.
5148
5149 2013-07-25 Mark Kettenis <kettenis@gnu.org>
5150
5151 * hppabsd-tdep.c: Include "dwarf2-frame.h".
5152 (hppabsd_dwarf2_frame_init_reg): New function.
5153 (hppabsd_init_abi): Hook in the DWARF CFI frame unwinder.
5154
5155 2013-07-25 Andrew Burgess <aburgess@broadcom.com>
5156
5157 * mi/mi-main.c (output_register): Make MI 'r' format use standard
5158 'z' format code. Remove error for optimized out values, standard
5159 code will handle these fine.
5160
5161 2013-07-25 Andrew Burgess <aburgess@broadcom.com>
5162
5163 * NEWS: Mention new 'z' formatter.
5164 * printcmd.c (print_scalar_formatted): Add new 'z' formatter.
5165 (_initialize_printcmd): Mention 'z' formatter in help text of the
5166 'x' command.
5167
5168 2013-07-24 Maciej W. Rozycki <macro@codesourcery.com>
5169
5170 * mips-tdep.c (micromips_deal_with_atomic_sequence): Correct
5171 formatting.
5172
5173 2013-07-24 Sergio Durigan Junior <sergiodj@redhat.com>
5174
5175 * breakpoint.c (create_longjmp_master_breakpoint): Check if probe
5176 interface can evaluate arguments. Fallback to the old mode if it
5177 cannot.
5178 (create_exception_master_breakpoint): Likewise.
5179 * elfread.c (elf_can_evaluate_probe_arguments): New function.
5180 (struct sym_probe_fns elf_probe_fns): Export function above to the
5181 probe interface.
5182 * probe.c (can_evaluate_probe_arguments): New function.
5183 * probe.h (struct probe_ops) <can_evaluate_probe_arguments>: New
5184 function pointer.
5185 (can_evaluate_probe_arguments): New function prototype.
5186 * solib-svr4.c (svr4_create_solib_event_breakpoints): Check if
5187 probe interface can evaluate arguments. Fallback to the old mode
5188 if it cannot.
5189 * stap-probe.c (stap_get_probe_argument_count): Check if probe
5190 interface can evaluate arguments. Warning the user if it cannot.
5191 (stap_can_evaluate_probe_arguments): New function.
5192 (struct probe_ops stap_probe_ops): Export function above to the
5193 probe interface.
5194 * symfile.h (struct sym_probe_fns) <can_evaluate_probe_arguments>:
5195 New function pointer.
5196
5197 2013-07-24 Luis Machado <lgustavo@codesourcery.com>
5198
5199 * Makefile.in (SFILES): Add common/target-common.c.
5200 Add common/target-common.h to headers.
5201 (COMMON_OBS): Add target-common.o.
5202 (target-common.o): New target.
5203 * linux-nat.h (resume_kind): Move to common/target-common.h.
5204 * target.c (target_waitstatus_to_string): Move to
5205 common/target-common.c.
5206 * target.h: Include target-common.h.
5207 (target_waitkind): Move to common/target-common.h.
5208 (target_waitstatus): Likewise.
5209 (TARGET_WNOHANG): Likewise.
5210 * common/target-common.c: New file.
5211 * common/target-common.h: New file.
5212
5213 2013-07-24 Doug Evans <dje@google.com>
5214
5215 * dwarf2read.c (lookup_dwo_cutu): Change missing DWO complaint to
5216 a warning.
5217
5218 2013-07-23 Yao Qi <yao@codesourcery.com>
5219
5220 * i386-tdep.c (i386_in_stack_tramp_p): Remove unused
5221 parameter 'gdbarch'.
5222 (i386_stack_tramp_frame_sniffer): Caller update.
5223 * i386-linux-tdep.c (i386_linux_core_read_xcr0): Remove
5224 parameter 'gdbarch' and 'target'.
5225 (i386_linux_core_read_description): Caller update.
5226 * amd64-linux-tdep.c (amd64_linux_core_read_description):
5227 Likewise.
5228 * i386-linux-tdep.h (i386_linux_core_read_xcr0): Update
5229 declaration.
5230
5231 2013-07-23 Tom Tromey <tromey@redhat.com>
5232
5233 * dwarf2read.c (init_cutu_and_read_dies): Revert patch from
5234 2013-07-22.
5235
5236 2013-07-22 Doug Evans <dje@google.com>
5237
5238 * exec.h (remove_target_sections): Delete arg abfd.
5239 * exec.c (exec_close): Update call to remove_target_sections.
5240 (remove_target_sections): Delete arg abfd.
5241 * solib.c (update_solib_list): Ditto.
5242 (reload_shared_libraries_1): Ditto.
5243 (clear_solib): Ditto, and unconditionally call remove_target_sections.
5244 * target.h (struct target_section): Rename key to owner.
5245 All uses updated.
5246
5247 2013-07-22 Tom Tromey <tromey@redhat.com>
5248
5249 * solib-som.c (som_open_symbol_file_object): Call do_cleanups.
5250
5251 2013-07-22 Tom Tromey <tromey@redhat.com>
5252
5253 * dwarf2read.c (init_cutu_and_read_dies): Remove 'free_cu_cleanup'.
5254 Simplify cleanup handling.
5255
5256 2013-07-22 Tom Tromey <tromey@redhat.com>
5257
5258 * dwarf2read.c (dwarf_decode_line_header): Call do_cleanups
5259 on all return paths.
5260
5261 2013-07-22 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
5262
5263 * ppc-linux-nat.c (PPC_DEBUG_FEATURE_DATA_BP_DAWR): New define.
5264 (ppc_linux_region_ok_for_hw_watchpoint): Add checking to use the new
5265 DAWR interface for longer ranges hardware watchpoint (up to 512 bytes).
5266
5267 2013-07-22 Phil Muldoon <pmuldoon@redhat.com>
5268
5269 * top.c (print_gdb_version): Add help, apropos description and
5270 url to online documentation.
5271
5272 2013-07-19 Hui Zhu <hui@codesourcery.com>
5273
5274 PR gdb/15692
5275 * mi/mi-cmd-break.c (mi_argv_to_format): Handle double quotes.
5276
5277 2013-07-19 Yao Qi <yao@codesourcery.com>
5278
5279 * target.c (update_current_target): Change the default action
5280 of 'to_traceframe_info' from tcomplain to return_zero.
5281 * target.h (struct target_ops) <to_traceframe_info>: Add more
5282 comments.
5283 * valops.c (read_value_memory): Call
5284 traceframe_available_memory unconditionally.
5285
5286 2013-07-18 Yao Qi <yao@codesourcery.com>
5287
5288 * coffread.c (coff_symfile_read): Iterate over minimal symbols,
5289 if the name is prefixed by "__imp_" or "_imp_", look for minimal
5290 symbol without prefix. If found, set its type to
5291 'mst_solib_trampoline'.
5292
5293 2013-07-17 Doug Evans <dje@google.com>
5294
5295 * NEWS: Mention "set print raw frame-arguments".
5296 * gdbcmd.h (setprintrawlist, showprintrawlist): Declare.
5297 * stack.c (print_raw_frame_arguments): New static global.
5298 (print_frame_arg): Set opts.raw from print_raw_frame_arguments.
5299 (_initialize_stack): New command "set/show print raw frame-arguments".
5300 * valprint.c (setprintrawlist, showprintrawlist): New globals.
5301 (set_print_raw, show_print_raw): New functions.
5302 (_initialize_valprint): New prefix command "set/show print raw".
5303 * valprint.h (value_print_options): Improve comments.
5304
5305 * cli/cli-cmds.c (init_cmd_lists): Delete unnecessary initialization
5306 of all *list variables.
5307
5308 * gdbcmd.h (togglelist): Delete.
5309 * cli/cli-cmds.c (togglelist): Delete.
5310 (init_cmd_lists): Update.
5311 * cli/cli-cmds.h (togglelist): Delete.
5312
5313 2013-07-17 Tom Tromey <tromey@redhat.com>
5314
5315 * dwarf2read.c (dwarf2_per_objfile_free): Clear
5316 dwarf2_per_objfile.
5317
5318 2013-07-16 Doug Evans <dje@google.com>
5319
5320 * nto-tdep.c (nto_relocate_section_addresses): Update,
5321 target_section.bfd deleted.
5322 * ppc64-tdep.c (ppc64_convert_from_func_ptr_addr): Ditto.
5323 * s390-tdep.c (s390_load): Ditto.
5324 * solib-aix.c (solib_aix_relocate_section_addresses): Ditto.
5325
5326 2013-07-16 Andrew Burgess <aburgess@broadcom.com>
5327
5328 * common/format.c (parse_format_string): Add checks for NULL
5329 character before calling strchr.
5330
5331 2013-07-16 Doug Evans <dje@google.com>
5332
5333 * solist.h (target_so_ops.find_and_open_solib): Clarify usage of
5334 temp_pathname argument.
5335 * nto-tdep.c (nto_find_and_open_solib): Fix setting of temp_pathname
5336 when opening the file fails.
5337
5338 * target.h (struct target_section): Delete member bfd.
5339 All users updated to use the_bfd_section->owner instead.
5340 * exec.c (add_to_section_table): Assert bfd is expected value.
5341 Remove initialization of target_section.bfd.
5342 (remove_target_sections): Update.
5343 (section_table_available_memory): Update.
5344 (section_table_xfer_memory_partial): Update.
5345 (print_section_info): Update.
5346 (exec_set_section_address): Update.
5347 * record-full.c (record_full_core_xfer_partial): Update.
5348 * solib-svr4.c (svr4_relocate_section_addresses): Update.
5349 * solib-target.c (solib_target_relocate_section_addresses): Update.
5350 * symfile.c (build_section_addr_info_from_section_table): Update.
5351 * target.c (memory_xfer_live_readonly_partial): Update.
5352 (memory_xfer_partial_1): Update.
5353
5354 2013-07-15 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
5355
5356 * ppc-linux-nat.c: Since the new PowerPC specific ptrace interface is
5357 now available for embedded (BookE) and server (BookS) processors,
5358 correct mentions of 'booke' and adjust comments accordingly in order to
5359 avoid confusion. Rename struct 'booke_debug_info' to 'hwdebug_info'.
5360 (have_ptrace_booke_interface): Rename function and variable
5361 'have_ptrace_booke_interface' to 'have_ptrace_hwdebug_interface'.
5362 Rename struct 'booke_debug_info' to 'hwdebug_info'. Update all uses.
5363 (booke_cmp_hw_point): Rename function 'booke_cmp_hw_point' to
5364 'hwdebug_point_cmp'. Update all uses.
5365 (booke_find_thread_points_by_tid): Rename function
5366 'booke_find_thread_points_by_tid' to
5367 'hwdebug_find_thread_points_by_tid'. Update all uses.
5368 (booke_insert_point): Rename function 'booke_insert_point' to
5369 'hwdebug_insert_point'. Update all uses.
5370 (booke_remove_point): Rename function 'booke_remove_point' to
5371 'hwdebug_remove_point'. Update all uses.
5372
5373 2013-07-15 Maciej W. Rozycki <macro@codesourcery.com>
5374
5375 * mips-tdep.c (mips_gdbarch_init): Replace hardcoded magic
5376 numbers with enum values.
5377
5378 2013-07-15 Ali Anwar <ali_anwar@codesourcery.com>
5379
5380 PR threads/13217
5381 * thread.c (thread_apply_all_command): Check for valid threads
5382 and thread count.
5383 (thread_array_cleanup): New struct.
5384 (set_thread_refcount): New function.
5385
5386 2013-07-11 Andrew Burgess <aburgess@broadcom.com>
5387
5388 * infcmd.c (default_print_one_register_info): Reuse function
5389 print_hex_chars.
5390
5391 2013-07-10 Tom Tromey <tromey@redhat.com>
5392
5393 * Makefile.in (GDB_WARN_CFLAGS_NO_DEFS, ADA_EXP_C): New macros.
5394 (ada-exp.o): New target.
5395
5396 2013-07-10 Sergio Durigan Junior <sergiodj@redhat.com>
5397
5398 * mt-tdep.c (mt_registers_info): Call
5399 get_no_prettyformat_print_options instead of
5400 get_raw_print_options (regression by last patch from Doug
5401 Evans).
5402
5403 2013-07-09 Pedro Alves <palves@redhat.com>
5404
5405 Checked in by Joel Brobecker <brobecker@adacore.com>.
5406 * ada-lang.c (coerce_unspec_val_to_type): Use
5407 value_optimized_out_const.
5408 * value.c (value_optimized_out_const): New function.
5409 * value.h (value_optimized_out_const): New declaration.
5410
5411 2013-07-09 Doug Evans <dje@google.com>
5412
5413 * defs.h (enum val_prettyformat): Renamed from val_prettyprint.
5414 Enum values rename as well. All uses updated.
5415 * valprint.h (value_print_options): Rename member pretty to
5416 pretty format. Rename member prettyprint_arrays to
5417 prettyformat_arrays. Rename member prettyprint_structs to
5418 prettyformat_structs. All uses updated.
5419 (get_no_prettyformat_print_options): Renamed from
5420 get_raw_print_options.
5421 * valprint.c (get_no_prettyformat_print_options): Renamed from
5422 get_raw_print_options. All callers updated.
5423 (show_prettyformat_structs): Renamed from show_prettyprint_structs.
5424 All callers updated.
5425 (show_prettyformat_arrays): Renamed from show_prettyprint_arrays.
5426 All callers updated.
5427 (_initialize_valprint): Improve help text for "set print pretty" and
5428 "set print arrays".
5429
5430 2013-07-09 Andrew Burgess <aburgess@broadcom.com>
5431
5432 * value.c (value_bits_valid): Revert previous change, and change
5433 by Pedro on 2013-07-04, due to regressions in
5434 gdb.dwarf2/implptr.exp and gdb.dwarf2/pieces.exp.
5435
5436 2013-07-08 Andrew Burgess <aburgess@broadcom.com>
5437 Pedro Alves <palves@redhat.com>
5438
5439 * value.c (value_bits_valid): If the value is not lval_computed
5440 or has no check validity handler then the answer is the
5441 optimized_out flag, otherwise defer to the handler.
5442
5443 2013-07-06 Eli Zaretskii <eliz@gnu.org>
5444
5445 * top.c (print_gdb_configuration): Explain in output of
5446 --configuration what does "relocatable" mean.
5447
5448 * main.c (print_gdb_help): Regroup options in the --help text.
5449 See http://sourceware.org/ml/gdb-patches/2013-04/msg00362.html for
5450 the relevant discussions.
5451
5452 2013-07-06 Yao Qi <yao@codesourcery.com>
5453
5454 * breakpoint.h (struct breakpoint_ops) <create_breakpoints_sal>:
5455 Remove parameter 'lsal'.
5456 * breakpoint.c (create_breakpoint): Move local variable 'lsal'
5457 to inner block. Caller update.
5458 (base_breakpoint_create_breakpoints_sal): Update.
5459 (bkpt_create_breakpoints_sal): Likewise.
5460 (tracepoint_create_breakpoints_sal): Likewise.
5461 (strace_marker_create_breakpoints_sal): Get 'lsal' from the
5462 element 0 of vector 'canonical->sals'.
5463
5464 2013-07-05 Luis Machado <lgustavo@codesourcery.com>
5465
5466 * rs6000-tdep.c (rs6000_stab_reg_to_regnum): Return the real
5467 register number instead of the pseudo register one.
5468 (rs6000_dwarf2_reg_to_regnum): Likewise.
5469
5470 2013-07-04 Pedro Alves <palves@redhat.com>
5471
5472 * findvar.c (value_of_register): Use allocate_optimized_out_value
5473 if the register has been optimized out, instead of
5474 set_value_optimized_out.
5475 * frame-unwind.c (frame_unwind_got_optimized): Use
5476 allocate_optimized_out_value.
5477
5478 2013-07-04 Pedro Alves <palves@redhat.com>
5479
5480 * value.c (value_bits_valid): If the value is not lval_computed,
5481 or doesn't have a check_validity hook, assume the value is entirely
5482 valid.
5483
5484 2013-07-04 Andrew Burgess <aburgess@broadcom.com>
5485
5486 * stack.c (read_frame_arg): No longer fetch lazy values.
5487 * value.c (value_optimized_out): If the value is not already
5488 marked optimized out, and is lazy then fetch it.
5489 (value_primitive_field): Move optimized out check to later in the
5490 function, after we have loaded any lazy values.
5491 (value_fetch_lazy): Use optimized out flag directly rather than
5492 calling optimized_out method.
5493
5494 2013-07-04 Andrew Burgess <aburgess@broadcom.com>
5495
5496 * valops.c: Don't include "user-regs.h".
5497 (value_fetch_lazy): Moved to value.c.
5498 * value.c: Include "user-regs.h".
5499 (value_fetch_lazy): Moved from valops.c.
5500
5501 2013-07-04 Yao Qi <yao@codesourcery.com>
5502
5503 Revert:
5504 2013-06-27 Yao Qi <yao@codesourcery.com>
5505
5506 * common/create-version.sh: Update comments. Handle the case
5507 that TARGET_ALIAS is empty.
5508
5509 2013-07-03 Pedro Alves <palves@redhat.com>
5510
5511 * Makefile.in (config.status): Depend on development.sh.
5512 (aclocal_m4_deps): Add libmcheck.m4.
5513 * acinclude.m4: Include libmcheck.m4.
5514 * configure.ac: Source development.sh instead of setting
5515 'development' here. --enable-libmcheck/--disable-libmcheck code
5516 factored out to GDB_AC_LIBMCHECK. Run it.
5517 * development.sh: New file.
5518 * libmcheck.m4: New file.
5519 * configure: Regenerate.
5520
5521 2013-07-02 Tom Tromey <tromey@redhat.com>
5522
5523 * contrib/ari/update-web-ari.sh: Update for version.in change.
5524
5525 2013-07-02 Tom Tromey <tromey@redhat.com>
5526
5527 * common/ptid.h: Comment fixes.
5528
5529 2013-07-01 Tom Tromey <tromey@redhat.com>
5530
5531 * dwarf2read.c (dwarf2_get_dwz_file): Return NULL if
5532 .gnu_debugaltlink not found. Use bfd_get_alt_debug_link_info.
5533 (dwarf2_read_index, create_all_comp_units): Update.
5534
5535 2013-07-01 Tom Tromey <tromey@redhat.com>
5536
5537 * configure.ac (build_warnings): Add -Wold-style-definition.
5538 * configure: Rebuild.
5539 * machoread.c (_initialize_machoread): Use "(void)".
5540 * macrocmd.c (macro_inform_no_debuginfo): Fix formatting;
5541 use "(void)".
5542
5543 2013-07-01 Tom Tromey <tromey@redhat.com>
5544
5545 * configure.ac (build_warnings): Add -Wold-style-declaration.
5546 * configure: Rebuild.
5547 * dsrec.c (make_srec): Use "static const", not "const static".
5548 * h8300-tdep.c (h8300_breakpoint_from_pc): Use "static const",
5549 not "const static".
5550 * mi/mi-parse.c (mi_no_values, mi_simple_values, mi_all_values):
5551 Use "static const", not "const static".
5552 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Use "static const",
5553 not "const static".
5554 * moxie-tdep.c (moxie_breakpoint_from_pc): Use "static const",
5555 not "const static".
5556 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Use "static const",
5557 not "const static".
5558 * v850-tdep.c (v850_breakpoint_from_pc): Use "static const",
5559 not "const static".
5560 (v850_dbtrap_breakpoint_from_pc): Likewise.
5561 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Use "static const",
5562 not "const static".
5563
5564 2013-07-01 Tom Tromey <tromey@redhat.com>
5565
5566 * configure.ac (build_warnings): Add -Wmissing-parameter-type.
5567 * configure: Rebuild.
5568
5569 2013-07-01 Pedro Alves <palves@redhat.com>
5570
5571 * defs.h: Include "pathmax.h".
5572 * utils.c: Don't include sys/param.h.
5573 (gdb_realpath): Remove code that checks for MAXPATHLEN.
5574 * solib-ia64-hpux.c (ia64_hpux_handle_load_event): Use PATH_MAX
5575 instead of MAXPATHLEN.
5576 * solib-sunos.c: Don't include sys/param.h.
5577 * xcoffread.c: Don't include sys/param.h.
5578 * bsd-kvm.c: Don't include sys/param.h.
5579 * darwin-nat.c: Don't include sys/param.h.
5580 (darwin_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
5581 * darwin-nat-info.c: Don't include sys/param.h.
5582 * fbsd-nat.c (fbsd_pid_to_exec_file): Use PATH_MAX instead of
5583 MAXPATHLEN.
5584 * i386obsd-nat.c: Don't include sys/param.h.
5585 * inf-child.c: Don't include sys/param.h.
5586 (inf_child_fileio_readlink): Use PATH_MAX instead of MAXPATHLEN.
5587 * linux-fork.c: Don't include sys/param.h.
5588 (fork_save_infrun_state): Use PATH_MAX instead of MAXPATHLEN.
5589 * linux-nat.c: Don't include sys/param.h.
5590 (linux_child_pid_to_exec_file, linux_proc_pending_signals)
5591 (linux_proc_pending_signals): Use PATH_MAX instead of MAXPATHLEN.
5592 * m68klinux-nat.c: Don't include sys/param.h.
5593 * nbsd-nat.c: Don't include sys/param.h.
5594 (nbsd_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
5595 * ppc-linux-nat.c: Don't include sys/param.h.
5596 * rs6000-nat.c: Don't include sys/param.h.
5597 * spu-linux-nat.c. Don't include sys/param.h.
5598 * windows-nat.c: Don't include sys/param.h.
5599 * xtensa-linux-nat.c: Don't include sys/param.h.
5600 * config/i386/nm-fbsd.h: Don't include sys/param.h.
5601
5602 2013-07-01 Pedro Alves <palves@redhat.com>
5603
5604 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add pathmax.
5605 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/pathmax.m4.
5606 * gnulib/aclocal.m4: Regenerate.
5607 * gnulib/config.in: Regenerate.
5608 * gnulib/configure: Regenerate.
5609 * gnulib/import/pathmax.h: New file.
5610 * gnulib/import/Makefile.am: Regenerate.
5611 * gnulib/import/Makefile.in: Regenerate.
5612 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
5613 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
5614 * gnulib/import/m4/pathmax.m4: New file.
5615
5616 2013-07-01 Pedro Alves <palves@redhat.com>
5617
5618 * configure.ac (GDBINIT): Define, depending on host.
5619 * go32-nat.c (init_go32_ops): Don't override gdbinit here.
5620 * top.c (PATH_MAX): Delete fallback definition.
5621 (GDBINIT_FILENAME): Delete.
5622 (gdbinit): Reimplement as const char array set to the GDBINIT
5623 string constant.
5624 * top.h (gdbinit): Make const.
5625 * configure, config.in: Regenerate.
5626
5627 2013-07-01 Pedro Alves <palves@redhat.com>
5628
5629 * cli/cli-cmds.c (source_script): Make 'file' parameter const.
5630 * cli/cli-cmds.h (source_script): Likewise.
5631 * exceptions.c (catch_command_errors_const): New function.
5632 * exceptions.h (catch_command_errors_const): Declare.
5633 * main.c (get_init_files): Make parameters const, and adjust.
5634 (captured_main): Make 'system_gdbinit', 'home_gdbinit' and
5635 'local_gdbinit' locals const. Adjust to use
5636 catch_command_errors_const.
5637 (print_gdb_help): Make 'system_gdbinit', 'home_gdbinit' and
5638 'local_gdbinit' locals const.
5639
5640 2013-07-01 Pedro Alves <palves@redhat.com>
5641
5642 * defs.h: Don't check HAVE_UNISTD_H before including <unistd.h>.
5643 (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO): Delete.
5644 * tracepoint.c: Don't check HAVE_UNISTD_H before including
5645 <unistd.h>.
5646
5647 2013-07-01 Pedro Alves <palves@redhat.com>
5648
5649 Import the "unistd" gnulib module.
5650 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add "unistd".
5651 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/off_t.m4,
5652 import/m4/ssize_t.m4, import/m4/sys_types_h.m4 and
5653 import/m4/unistd_h.m4.
5654 * gnulib/aclocal.m4: Renenerate.
5655 * gnulib/config.in: Renenerate.
5656 * gnulib/configure: Renenerate.
5657 * gnulib/import/Makefile.am: Renenerate.
5658 * gnulib/import/Makefile.in: Renenerate.
5659 * gnulib/import/m4/gnulib-cache.m4: Renenerate.
5660 * gnulib/import/m4/gnulib-comp.m4: Renenerate.
5661 * gnulib/import/m4/off_t.m4: New file.
5662 * gnulib/import/m4/ssize_t.m4: New file.
5663 * gnulib/import/m4/sys_types_h.m4: New file.
5664 * gnulib/import/m4/unistd_h.m4: New file.
5665 * gnulib/import/sys_types.in.h: New file.
5666 * gnulib/import/unistd.c: New file.
5667 * gnulib/import/unistd.in.h: New file.
5668
5669 2013-07-01 Pedro Alves <palves@redhat.com>
5670
5671 * utils.c <pathconf/_PC_PATH_MAX use>: Check if _PC_PATH_MAX is
5672 defined instead of checking HAVE_UNISTD_H.
5673
5674 2013-07-01 Pedro Alves <palves@redhat.com>
5675
5676 Reimport gnulib from scratch.
5677 * gnulib/Makefile.in (aclocal_m4_deps): Remove reference to
5678 import/m4/onceonly.m4.
5679 * gnulib/aclocal.m4: Renegerate.
5680 * gnulib/config.in: Renegerate.
5681 * gnulib/configure: Renegerate.
5682 * gnulib/import/Makefile.in: Renegerate.
5683 * gnulib/import/extra/update-copyright: Renegerate.
5684 * gnulib/import/m4/onceonly.m4: Delete.
5685
5686 2013-07-01 Pedro Alves <palves@redhat.com>
5687
5688 * tui/tui-regs.c (pagination_enabled): Delete declaration.
5689
5690 2013-06-30 Jan Kratochvil <jan.kratochvil@redhat.com>
5691
5692 Code cleanup.
5693 * remote.c (async_remote_interrupt_twice): Make it static.
5694 * remote.h (async_remote_interrupt_twice): Remove the declaration.
5695
5696 2013-06-29 Sergio Durigan Junior <sergiodj@redhat.com>
5697
5698 * ia64-linux-tdep.c: Include <ctype.h>.
5699 (ia64_linux_stap_is_single_operand): New function.
5700 (ia64_linux_init_abi): Initialize SystemTap related attributes.
5701
5702 2013-06-28 Tom Tromey <tromey@redhat.com>
5703
5704 * Makefile.in (version.c): Use version.in, not
5705 common/version.in.
5706 * common/create-version.sh: Likewise.
5707 * common/version.in: Move...
5708 * version.in: ...here.
5709
5710 2013-06-28 Pedro Alves <palves@redhat.com>
5711
5712 * infrun.c (set_observer_mode): Don't declare pagination_enabled
5713 here.
5714 * utils.h (pagination_enabled): Declare.
5715
5716 2013-06-28 Pedro Alves <palves@redhat.com>
5717
5718 * infrun.c (non_stop, non_stop_1, set_non_stop, show_non_stop):
5719 Move higher up in file.
5720
5721 2013-06-28 Tom Tromey <tromey@redhat.com>
5722
5723 * tracepoint.c (deprecated_readline_begin_hook)
5724 (deprecated_readline_hook, deprecated_readline_end_hook): Don't
5725 declare.
5726
5727 2013-06-28 Pedro Alves <palves@redhat.com>
5728
5729 PR tui/14880
5730 * tui/tui-regs.c (tui_get_register): Fetch value contents before
5731 checking if they're available.
5732 * value.c (value_available_contents_eq): Change comment.
5733 * value.h (value_available_contents_eq): Expand comment.
5734
5735 2013-06-27 Tom Tromey <tromey@redhat.com>
5736
5737 * target.c (find_run_target): Remove.
5738 * target.h (find_run_target): Remove.
5739
5740 2013-06-27 Tom Tromey <tromey@redhat.com>
5741
5742 * corelow.c (core_gdbarch): Now static.
5743
5744 2013-06-27 Tom Tromey <tromey@redhat.com>
5745
5746 * target.c (target_struct_index): Remove.
5747
5748 2013-06-27 Pedro Alves <palves@redhat.com>
5749
5750 * infrun.c: Remove comment describing the 'stepping over runtime
5751 loader dynamic symbol resolution code' mechanism; moved to
5752 gdbint.texinfo.
5753
5754 2013-06-27 Pedro Alves <palves@redhat.com>
5755
5756 * exceptions.c (catch_command_errors): Remove spurious space.
5757 * exceptions.h (catch_command_errors): Second parameter is "arg",
5758 not "command".
5759
5760 2013-06-27 Yao Qi <yao@codesourcery.com>
5761
5762 * common/create-version.sh: Update comments. Handle the case
5763 that TARGET_ALIAS is empty.
5764
5765 2013-06-26 Pedro Alves <palves@redhat.com>
5766
5767 * infrun.c (SOLIB_IN_DYNAMIC_LINKER): Delete macro and describing
5768 comment.
5769
5770 2013-06-26 Pedro Alves <palves@redhat.com>
5771
5772 * infrun.c: Update comments on stepping over runtime loader
5773 dynamic symbol resolution code.
5774
5775 2013-06-26 Sergio Durigan Junior <sergiodj@redhat.com>
5776
5777 * ax-gdb.h (union exp_element): Forward declare.
5778 * parser-defs.h: Include expression.h.
5779
5780 2013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
5781
5782 * mips-tdep.c (fetch_mips_16): Use unmake_compact_addr.
5783
5784 2013-06-26 Dmitry Kozlov <ddk@codesourcery.com>
5785
5786 * tracepoint.c (trace_save): Extend tsave to save starttime, stoptime.
5787
5788 2013-06-26 Dmitry Kozlov <ddk@codesourcery.com>
5789
5790 Fix trace-status to output proper start-time and stop-time.
5791 * tracepoint.c (trace_status_command): Fix type of printf arg to
5792 prevent improper type conversion.
5793 (trace_status_mi): Likewise.
5794
5795 2013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
5796
5797 * mips-tdep.c (mips_next_pc): Fix a typo.
5798
5799 2013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
5800
5801 * mips-tdep.c (micromips_scan_prologue): Fix a typo.
5802
5803 2013-06-26 Pedro Alves <pedro@codesourcery.com>
5804 Yao Qi <yao@codesourcery.com>
5805
5806 * mi/mi-cmds.c (mi_cmds): Register -trace-frame-collected.
5807 * mi/mi-cmds.h (mi_cmd_trace_frame_collected): Declare.
5808 * mi/mi-main.c (print_variable_or_computed): New function.
5809 (mi_cmd_trace_frame_collected): New function.
5810 * tracepoint.c (find_trace_state_variable_by_number): New.
5811 (struct traceframe_info): Move to tracepoint.h
5812 (struct collection_list): Likewise.
5813 (do_collect_symbol): Include locals and arguments in the
5814 collected variables list.
5815 (clear_collection_list): Clear wholly collected variables list
5816 and computed variables list.
5817 (append_exp): New function.
5818 (encode_actions_1): Include variables in the wholly
5819 collected variables list. Include memory ranges and
5820 full-fledged expressions in the computed expressions list.
5821 (encode_actions): Move some code to ...
5822 Return the cleanup chain.
5823 (encode_actions_rsp): ... here. New function.
5824 (get_traceframe_location, get_traceframe_info): Remove static.
5825 * tracepoint.h (struct memrange): Moved from tracepoint.c.
5826 (struct collection_list): Moved from tracepoint.c. Add two
5827 new fields 'wholly_collected' and 'computed'.
5828 (find_trace_state_variable_by_number): Declare.
5829 (encode_actions): Adjust declaration.
5830 (encode_actions_rsp): Declare.
5831 (get_traceframe_info, get_traceframe_location): Declare.
5832
5833 * NEWS: Mention new MI command -trace-frame-collected.
5834
5835 2013-06-26 Pedro Alves <pedro@codesourcery.com>
5836 Yao Qi <yao@codesourcery.com>
5837
5838 * ctf.c (ctf_traceframe_info): Push trace state variables
5839 present in the trace data into the traceframe info object.
5840 * breakpoint.c (DEF_VEC_I): Remove.
5841 * common/filestuff.c (DEF_VEC_I): Likewise.
5842 * dwarf2loc.c (DEF_VEC_I): Likewise.
5843 * mi/mi-main.c (DEF_VEC_I): Likewise.
5844 * common/gdb_vecs.h (DEF_VEC_I): Define vector for int.
5845 * features/traceframe-info.dtd: Add tvar element and its
5846 attributes.
5847 * tracepoint.c (free_traceframe_info): Free vector 'tvars'.
5848 (build_traceframe_info): Push trace state variables present in
5849 the trace data into the traceframe info object.
5850 (traceframe_info_start_tvar): New function.
5851 (tvar_attributes): New.
5852 (traceframe_info_children): Add "tvar" element.
5853 * tracepoint.h (struct traceframe_info) <tvars>: New field.
5854
5855 * NEWS: Mention the change in GDB and GDBserver.
5856
5857 2013-06-26 Pedro Alves <pedro@codesourcery.com>
5858 Yao Qi <yao@codesourcery.com>
5859
5860 * tracepoint.c (trace_dump_command): Move code to ...
5861 (get_traceframe_location): ... here. New.
5862
5863 2013-06-26 Pedro Alves <pedro@codesourcery.com>
5864 Yao Qi <yao@codesourcery.com>
5865
5866 * tracepoint.c (trace_dump_command): GDB emits an error
5867 instead of a warning when a traceframe is not selected.
5868
5869 2013-06-26 Pedro Alves <pedro@codesourcery.com>
5870 Yao Qi <yao@codesourcery.com>
5871
5872 * tracepoint.c (tracepoint_list, stepping_list): Remove.
5873 (clear_collection_list): Free fields 'aexpre_list' and 'list'
5874 in collection_list.
5875 (do_clear_collection_list, init_collection_list): New.
5876 (encode_actions): Add local variables 'tracepoint_list' and
5877 'stepping_list'. Call init_collection_list and make cleanup
5878 which calls do_clear_collection_list. Don't call
5879 clear_collection_list.
5880 (_initialize_tracepoint): Delete references to
5881 'tracepoint_list' and 'stepping_list'.
5882
5883 2013-06-25 Tom Tromey <tromey@redhat.com>
5884
5885 * common/create-version.sh (date): Use "$", not "$$" in sed
5886 expression.
5887
5888 2013-06-25 Kevin Buettner <kevinb@redhat.com>
5889
5890 * NEWS (New targets): Add entry for TI MSP430.
5891
5892 2013-06-25 Yao Qi <yao@codesourcery.com>
5893
5894 * remote.c (remote_start_remote): Move code to upload tsv
5895 earlier.
5896
5897 2013-06-25 Yao Qi <yao@codesourcery.com>
5898 Hui Zhu <hui@codesourcery.com>
5899 Pedro Alves <palves@redhat.com>
5900
5901 PR breakpoints/15075
5902 PR breakpoints/15434
5903 * breakpoint.c (bpstat_stop_status): Call
5904 b->ops->after_condition_true.
5905 (update_dprintf_command_list): Don't append "continue" command
5906 to the command list of dprintf breakpoint.
5907 (base_breakpoint_after_condition_true): New function.
5908 (base_breakpoint_ops): Add base_breakpoint_after_condition_true.
5909 (dprintf_after_condition_true): New function.
5910 (initialize_breakpoint_ops): Set dprintf_after_condition_true.
5911 * breakpoint.h (breakpoint_ops): Add after_condition_true.
5912
5913 2013-06-24 Kevin Buettner <kevinb@redhat.com>
5914
5915 * Makefile.in (ALL_TARGET_OBS): Add msp430-tdep.o.
5916 (ALLDEPFILES): Add msp430-tdep.c.
5917 * configure.tgt (msp430*-*-elf): New target.
5918 * msp430-tdep.c: New file.
5919
5920 2013-06-24 Maciej W. Rozycki <macro@codesourcery.com>
5921
5922 * mips-tdep.c (mips_elf_make_msymbol_special): Handle MIPS16 and
5923 microMIPS synthetic symbols.
5924
5925 2013-06-24 Maciej W. Rozycki <macro@codesourcery.com>
5926
5927 * objfiles.h (pc_in_section): New prototype.
5928 (in_plt_section): Remove name argument, replace prototype with
5929 static inline function.
5930 * mips-tdep.h: Include "objfiles.h".
5931 (in_mips_stubs_section): New function.
5932 * hppa-tdep.h (gdbarch_tdep): Remove name argument of
5933 in_solib_call_trampoline member.
5934 (hppa_in_solib_call_trampoline): Remove name argument.
5935 * objfiles.c (pc_in_section): New function.
5936 (in_plt_section): Remove function.
5937 * mips-linux-tdep.c: Include "objfiles.h".
5938 (mips_linux_in_dynsym_stub): Call in_mips_stubs_section. Remove
5939 name argument. Return 1 rather than the low 16-bit halfword of
5940 any instruction examined.
5941 (mips_linux_in_dynsym_resolve_code): Update
5942 mips_linux_in_dynsym_stub call accordingly.
5943 * mips-tdep.c (mips_stub_frame_sniffer): Use in_mips_stubs_section
5944 rather than an equivalent hand-coded sequence.
5945 * hppa-hpux-tdep.c (in_opd_section): Remove function.
5946 (hppa32_hpux_in_solib_call_trampoline): Remove name argument.
5947 (hppa64_hpux_in_solib_call_trampoline): Likewise.
5948 (hppa64_hpux_find_global_pointer): Use pc_in_section rather than
5949 in_opd_section.
5950 * hppa-tdep.c (hppa_stub_unwind_sniffer): Remove name argument
5951 on call to tdep->in_solib_call_trampoline.
5952 (hppa_in_solib_call_trampoline): Remove name argument, update
5953 according to in_plt_section change.
5954 (hppa_skip_trampoline_code): Update according to in_plt_section
5955 change.
5956 * aarch64-tdep.c (aarch64_stub_unwind_sniffer): Likewise.
5957 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code):
5958 Likewise.
5959 * arm-tdep.c (arm_stub_unwind_sniffer): Likewise.
5960 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): Likewise.
5961 * hppabsd-tdep.c (hppabsd_find_global_pointer): Likewise.
5962 * nios2-tdep.c (nios2_stub_frame_sniffer): Likewise.
5963 * nto-tdep.c (nto_relocate_section_addresses): Likewise.
5964 * s390-tdep.c (s390_stub_frame_sniffer): Likewise.
5965 * sh-tdep.c (sh_stub_unwind_sniffer): Likewise.
5966 * solib-dsbt.c (dsbt_in_dynsym_resolve_code): Likewise.
5967 * solib-frv.c (frv_in_dynsym_resolve_code): Likewise.
5968 * solib-svr4.c (svr4_in_dynsym_resolve_code): Likewise.
5969 * solib-target.c (solib_target_in_dynsym_resolve_code): Likewise.
5970 * sparc-tdep.c (sparc_analyze_prologue): Likewise.
5971 * tic6x-tdep.c (tic6x_stub_unwind_sniffer): Likewise.
5972
5973 2013-06-24 Joel Brobecker <brobecker@adacore.com>
5974
5975 * common/create-version.sh: Fix expansion of $host_alias
5976 and $target_alias in generation of HOST_NAME and TARGET_NAME
5977 (resp.).
5978
5979 2013-06-24 Tom Tromey <tromey@redhat.com>
5980
5981 * common/create-version.sh: New file.
5982 * Makefile.in (version.c): Use bfd/version.h, common/version.in,
5983 create-version.sh.
5984 (HFILES_NO_SRCDIR): Use common/version.h.
5985 * version.in: Move to ...
5986 * common/version.in: ... here. Replace date with "DATE".
5987 * version.h: Move to ...
5988 * common/version.h: ... here.
5989
5990 2013-06-21 Joel Brobecker <brobecker@adacore.com>
5991
5992 * gdb/gnulib/Makefile.in: Update date in copyright header.
5993 * gdb/gnulib/configure.ac: Ditto.
5994 * gdb/gnulib/update-gnulib.sh: Ditto.
5995
5996 2013-06-21 Joel Brobecker <brobecker@adacore.com>
5997
5998 * copyright.py (EXCLUDE_LIST): Replace "gdb/gnulib" by
5999 "gdb/gnulib/import".
6000
6001 2013-06-21 Will Newton <will.newton@linaro.org>
6002
6003 * doublest.c (ldfrexp): Remove function.
6004 (convert_doublest_to_floatformat): Call frexpl instead of
6005 ldfrexp.
6006
6007 2013-06-21 Will Newton <will.newton@linaro.org>
6008
6009 * gnulib/update-gnulib.sh(IMPORTED_GNULIB_MODULES): Add frexpl.
6010 * gnulib/aclocal.m4: Regenerate.
6011 * gnulib/config.in: Regenerate.
6012 * gnulib/configure: Regenerate.
6013 * gnulib/import/Makefile.am: Update.
6014 * gnulib/import/Makefile.in: Update.
6015 * gnulib/import/m4/gnulib-cache.m4: Update.
6016 * gnulib/import/m4/gnulib-comp.m4: Update.
6017 * gnulib/import/float+.h: Import.
6018 * gnulib/import/float.c: Import.
6019 * gnulib/import/float.in.h: Import.
6020 * gnulib/import/fpucw.h: Import.
6021 * gnulib/import/frexp.c: Import.
6022 * gnulib/import/frexpl.c: Import.
6023 * gnulib/import/isnan.c: Import.
6024 * gnulib/import/isnand-nolibm.h: Import.
6025 * gnulib/import/isnand.c: Import.
6026 * gnulib/import/isnanl-nolibm.h: Import.
6027 * gnulib/import/isnanl.c: Import.
6028 * gnulib/import/itold.c: Import.
6029 * gnulib/import/m4/exponentd.m4: Import.
6030 * gnulib/import/m4/exponentl.m4: Import.
6031 * gnulib/import/m4/float_h.m4: Import.
6032 * gnulib/import/m4/fpieee.m4: Import.
6033 * gnulib/import/m4/frexp.m4: Import.
6034 * gnulib/import/m4/frexpl.m4: Import.
6035 * gnulib/import/m4/isnand.m4: Import.
6036 * gnulib/import/m4/isnanl.m4: Import.
6037 * gnulib/import/m4/math_h.m4: Import.
6038 * gnulib/import/math.c: Import.
6039 * gnulib/import/math.in.h: Import.
6040
6041 2013-06-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6042
6043 * common/linux-btrace.c (cpu_supports_btrace): Remove variable vendor,
6044 replace strcmp with signature_INTEL_ebx, signature_INTEL_ecx and
6045 signature_INTEL_edx comparisons.
6046
6047 2013-06-20 Doug Evans <dje@google.com>
6048
6049 symtab/15652
6050 * dwarf2read.c (try_open_dwop_file): New arg search_cwd.
6051 All callers updated.
6052 (open_dwp_file): If we can't find the dwp file, search the basename
6053 in debug-file-directory.
6054
6055 * dwarf2read.c (struct dwp_file): Fix comment.
6056 (open_and_init_dwp_file): Set dwp_file->name to bfd's file name.
6057
6058 * source.c (openp): Document OPF_TRY_CWD_FIRST+OPF_SEARCH_IN_PATH
6059 better.
6060
6061 2013-06-20 Yao Qi <yao@codesourcery.com>
6062
6063 * breakpoint.c (create_breakpoint): Fix code indentation.
6064
6065 2013-06-20 Yao Qi <yao@codesourcery.com>
6066
6067 * breakpoint.c (create_breakpoints_sal_default): Remove
6068 parameter 'lsal'. Update declaration.
6069 (bkpt_create_breakpoints_sal): Caller update.
6070 (tracepoint_create_breakpoints_sal): Likewise.
6071
6072 2013-06-20 Pedro Alves <pedro@codesourcery.com>
6073 Yao Qi <yao@codesourcery.com>
6074
6075 * NEWS: Mention the new option '--skip-unavailable' of command
6076 -data-list-register-values.
6077 * mi/mi-main.c (mi_cmd_data_list_register_values): Accept the
6078 --skip-unavailable option. Adjust to use output_register.
6079 (output_register): Add new 'skip_unavailable' parameter.
6080 Handle it.
6081
6082 2013-06-19 Mike Frysinger <vapier@gentoo.org>
6083
6084 * Makefile.in (HFILES_NO_SRCDIR): Add common/i386-cpuid.h and
6085 common/i386-gcc-cpuid.h.
6086 * common/i386-cpuid.h: New wrapper header around i386-gcc-cpuid.h.
6087 * common/i386-gcc-cpuid.h: Rename from testsuite/gdb.arch/i386-cpuid.h.
6088 Copy the latest version from upstream gcc.
6089 * common/linux-btrace.c: Include i386-cpuid.h.
6090 (intel_supports_btrace): Delete x86 ifdefs and replace inline asm with
6091 call to i386_cpuid.
6092 (cpu_supports_btrace): Likewise.
6093 * go32-nat.c: Include i386-cpuid.h.
6094 (go32_sysinfo): Add (disabled) calls to i386_cpuid with comments.
6095
6096 2013-06-19 Doug Evans <dje@google.com>
6097
6098 * symfile.c (symfile_bfd_open): Delete unnecessary declaration.
6099 (get_section_index): Ditto.
6100
6101 2013-06-19 Tom Tromey <tromey@redhat.com>
6102
6103 * breakpoint.c (_initialize_breakpoint): Remove trailing \n from
6104 "dprintf" help.
6105
6106 2013-06-18 Doug Evans <dje@google.com>
6107
6108 * dwarf2read.c (dw2_symtab_iter_next): Check value of cu_index
6109 before using it.
6110 (dw2_expand_symtabs_matching): Fix symbol kind validity check.
6111 Move test of cu_index closer to use. Print complaint if cu_index
6112 is bad.
6113
6114 2013-06-18 Joel Brobecker <brobecker@adacore.com>
6115
6116 * machoread.c (oso_vector): Delete this global.
6117 (macho_register_oso): Add new parameter "oso_vector_ptr".
6118 Use it instead of the "oso_vector" global.
6119 (macho_symtab_read, macho_symfile_read_all_oso): Likewise.
6120 (macho_symfile_read): Use a local oso_vector, to be free'ed
6121 at the end of this function, in place of the old "oso_vector"
6122 global. Update various function calls accordingly. Use one
6123 single cleanup chain for the entire function.
6124
6125 2013-06-18 Joel Brobecker <brobecker@adacore.com>
6126
6127 * dwarf2read.c (dwarf2_per_objfile_free): Replace uses of
6128 DWARF2_PER_OBJFILE by uses of DATA instead.
6129
6130 2013-06-18 Tom Tromey <tromey@redhat.com>
6131
6132 * break-catch-sig.c (signal_catchpoint_explains_signal): Add 'sig'
6133 argument.
6134 * breakpoint.c (bpstat_explains_signal): Add 'sig' argument.
6135 Special case signals other than GDB_SIGNAL_TRAP.
6136 (explains_signal_watchpoint): New function.
6137 (base_breakpoint_explains_signal): Add 'sig' argument.
6138 (initialize_breakpoint_ops): Set 'explains_signal' method for
6139 watchpoints.
6140 * breakpoint.h (struct breakpoint_ops) <explains_signal>: Add
6141 signal argument.
6142 (bpstat_explains_signal): Likewise.
6143 * infrun.c (handle_syscall_event, handle_inferior_event): Update.
6144
6145 2013-06-18 Tom Tromey <tromey@redhat.com>
6146
6147 * python/py-inferior.c (gdbpy_selected_inferior): Don't incref.
6148
6149 2013-06-18 Tom Tromey <tromey@redhat.com>
6150
6151 * python/python.c (finish_python_initialization): Decref
6152 'pythondir' on failure path as well.
6153
6154 2013-06-18 Tom Tromey <tromey@redhat.com>
6155
6156 PR symtab/15391:
6157 * dwarf2loc.c (read_pieced_value): Truncate this_size_bits
6158 after taking bits_to_skip into account. Sign extend byte_offset.
6159 * utils.h (gdb_sign_extend): Declare.
6160 * utils.c (gdb_sign_extend): New function.
6161
6162 2013-06-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6163
6164 * dwarf2read.c (write_psymtabs_to_index): Ignore NULL PSYMTAB.
6165
6166 2013-06-17 Pierre Muller <muller@sourceware.org>
6167
6168 * corelow.c (core_open): Print GDB signal name instead of target
6169 signal number.
6170
6171 2013-06-17 Mike Frysinger <vapier@gentoo.org>
6172
6173 * .gitignore: Add /gcore.
6174
6175 2013-06-13 Doug Evans <dje@google.com>
6176
6177 * dwarf2read.c (try_open_dwop_file): Work around behaviour of
6178 OPF_TRY_CWD_FIRST to not search path if the file contains a '/'.
6179
6180 2013-06-12 Phil Muldoon <pmuldoon@redhat.com>
6181
6182 * stack.c (backtrace_command_1): Fix indentation.
6183
6184 2013-06-11 Joel Brobecker <brobecker@adacore.com>
6185
6186 * window-nat.c (thread_rec): Add missing empty line after
6187 local variable declaration.
6188
6189 2013-06-11 Joel Brobecker <brobecker@adacore.com>
6190
6191 * windows-nat.c (thread_rec): Revert format used to print
6192 error code returned by SuspendThread from %d back to %u.
6193
6194 2013-06-11 Joel Brobecker <brobecker@adacore.com>
6195
6196 * windows-nat.c (windows_continue): Add "0x" prefix for thread
6197 ID in debug trace.
6198 (get_windows_debug_event): Likewise, for all debug traces.
6199
6200 2013-06-11 Joel Brobecker <brobecker@adacore.com>
6201
6202 * window-nat.c (thread_rec): Add thread ID in SuspendThread
6203 warning message.
6204
6205 2013-06-08 Pedro Alves <pedro@codesourcery.com>
6206 Yao Qi <yao@codesourcery.com>
6207
6208 * mi/mi-main.c (get_register): Remove declaration.
6209 (output_register): Declare.
6210 (mi_cmd_data_list_register_values): Remove local variable
6211 'tuple_cleanup'. Move some code into output_register.
6212 (get_register): Renamed to ...
6213 (output_register): ... this. Output the register's
6214 "number" ui_out tuple here.
6215
6216 2013-06-07 Pedro Alves <palves@redhat.com>
6217
6218 * darwin-nat.c: Fix formating in copyright header.
6219 * darwin-nat.h: Likewise.
6220 * gnu-nat.c: Likewise.
6221 * machoread.c: Likewise.
6222
6223 2013-06-07 Pedro Alves <palves@redhat.com>
6224
6225 PR server/14823
6226 * regformats/regdat.sh: Output #include tdesc.h. Make globals
6227 static. Output a global target description pointer.
6228 (init_registers_${name}): Adjust to initialize a
6229 target description structure.
6230
6231 2013-06-07 Will Newton <will.newton@linaro.org>
6232
6233 * printcmd.c (build_address_symbolic): Call
6234 gdbarch_addr_bits_remove for text minimal symbols.
6235
6236 2013-06-07 Will Newton <will.newton@linaro.org>
6237
6238 * MAINTAINERS: Add myself to Write After Approval.
6239
6240 2013-06-07 Yao Qi <yao@codesourcery.com>
6241
6242 * tracepoint.c (start_tracing): Move code to ...
6243 (trace_reset_local_state): ... here. New.
6244 (disconnect_tracing): Don't call set_current_traceframe,
6245 set_tracepoint_num, and set_traceframe_context. Call
6246 trace_reset_local_state instead.
6247 (tfile_close): Call trace_reset_local_state.
6248 * ctf.c (ctf_close): Likewise.
6249 * remote.c (remote_close): Likewise.
6250 * tracepoint.h (trace_reset_local_state): Declare.
6251
6252 2013-06-06 Doug Evans <dje@google.com>
6253
6254 * dwarf2read.c: Whitespace fixes for DWP file format documentation,
6255 and fix header docs.
6256
6257 2013-06-05 Doug Evans <dje@google.com>
6258 Keith Seitz <keiths@redhat.com>
6259
6260 PR 15519
6261 * cp-namespace.c (find_symbol_in_baseclass): Call
6262 cp_lookup_symbol_in_namespace instead of cp_lookup_symbol_namespace.
6263 Check result of call to lookup_symbol_static.
6264 Call lookup_static_symbol_aux unconditionally.
6265 Call check_typedef on base types before accessing them.
6266 (cp_lookup_nested_symbol): Fix comment.
6267
6268 2013-06-05 Luis Machado <lgustavo@codesourcery.com>
6269
6270 * gnu-v3-abi.c (gnuv3_skip_trampoline): Handle thunk
6271 minimal symbols pointing to function descriptors.
6272
6273 2013-06-05 Tom Tromey <tromey@redhat.com>
6274
6275 * python/py-utils.c (gdb_pymodule_addobject): Cast away const.
6276
6277 2013-06-04 Sergio Durigan Junior <sergiodj@redhat.com>
6278 Pedro Alves <palves@redhat.com>
6279
6280 * remote.c (remote_wait_as): Restore signal handler before returning
6281 when GDB gets a notification.
6282
6283 2013-06-04 Gary Benson <gbenson@redhat.com>
6284
6285 PR 2328
6286 * breakpoint.h (handle_solib_event): Moved function declaration
6287 to solib.h.
6288 * breakpoint.c (handle_solib_event): Moved function to solib.c.
6289 (bpstat_stop_status): Pass new argument to handle_solib_event.
6290 * solib.h (update_solib_breakpoints): New function declaration.
6291 (handle_solib_event): Moved function declaration from
6292 breakpoint.h.
6293 * solib.c (update_solib_breakpoints): New function.
6294 (handle_solib_event): Moved function from breakpoint.c.
6295 Updated to call solib_ops->handle_event if not NULL.
6296 * solist.h (target_so_ops): New fields "update_breakpoints" and
6297 "handle_event".
6298 * infrun.c (set_stop_on_solib_events): New function.
6299 (_initialize_infrun): Use the above for "set
6300 stop-on-solib-events".
6301 (handle_inferior_event): Pass new argument to handle_solib_event.
6302 * solib-svr4.c (probe.h): New include.
6303 (svr4_free_library_list): New forward declaration.
6304 (probe_action): New enum.
6305 (probe_info): New struct.
6306 (probe_info): New static variable.
6307 (NUM_PROBES): New definition.
6308 (svr4_info): New fields "using_xfer", "probes_table" and
6309 "solib_list".
6310 (free_probes_table): New function.
6311 (free_solib_list): New function.
6312 (svr4_pspace_data_cleanup): Free probes table and solib list.
6313 (svr4_copy_library_list): New function.
6314 (svr4_current_sos_via_xfer_libraries): New parameter "annex".
6315 (svr4_read_so_list): New parameter "prev_lm".
6316 (svr4_current_sos_direct): Renamed from "svr4_current_sos".
6317 (svr4_current_sos): New function.
6318 (probe_and_action): New struct.
6319 (hash_probe_and_action): New function.
6320 (equal_probe_and_action): Likewise.
6321 (register_solib_event_probe): Likewise.
6322 (solib_event_probe_at): Likewise.
6323 (solib_event_probe_action): Likewise.
6324 (solist_update_full): Likewise.
6325 (solist_update_incremental): Likewise.
6326 (disable_probes_interface_cleanup): Likewise.
6327 (svr4_handle_solib_event): Likewise.
6328 (svr4_update_solib_event_breakpoint): Likewise.
6329 (svr4_update_solib_event_breakpoints): Likewise.
6330 (svr4_create_solib_event_breakpoints): Likewise.
6331 (enable_break): Free probes table before creating breakpoints.
6332 Use svr4_create_solib_event_breakpoints to create breakpoints.
6333 (svr4_solib_create_inferior_hook): Free the solib list.
6334 (_initialize_svr4_solib): Initialise
6335 svr4_so_ops.handle_solib_event and svr4_so_ops.update_breakpoints.
6336
6337 2013-06-04 Gary Benson <gbenson@redhat.com>
6338
6339 * target.h (target_ops): New field
6340 "to_augmented_libraries_svr4_read".
6341 (target_augmented_libraries_svr4_read): New macro.
6342 * target.c (update_current_target): Handle
6343 to_augmented_libraries_svr4_read.
6344 * remote.c (remote_state): New field
6345 "augmented_libraries_svr4_read".
6346 (remote_augmented_libraries_svr4_read_feature): New function.
6347 (remote_protocol_features): Add entry for
6348 "augmented-libraries-svr4-read".
6349 (remote_augmented_libraries_svr4_read): New function.
6350 (init_remote_ops): Initialize
6351 remote_ops.to_augmented_libraries_svr4_read.
6352
6353 2013-06-04 Gary Benson <gbenson@redhat.com>
6354
6355 * NEWS: Update.
6356
6357 2013-06-04 Gary Benson <gbenson@redhat.com>
6358
6359 * objfiles.h (inhibit_section_map_updates): New function
6360 declaration.
6361 (resume_section_map_updates): Likewise.
6362 (resume_section_map_updates_cleanup): Likewise.
6363 * objfiles.c (objfile_pspace_info): Removed field
6364 "objfiles_changed_p". New fields "new_objfiles_available",
6365 "section_map_dirty" and "inhibit_updates".
6366 (allocate_objfile): Set new_objfiles_available.
6367 (free_objfile): Set section_map_dirty.
6368 (objfile_relocate1): Likewise.
6369 (in_plt_section): Likewise.
6370 (find_pc_section): Update the conditions under which the
6371 section map will be updated.
6372 (inhibit_section_map_updates): New function.
6373 (resume_section_map_updates): Likewise.
6374 (resume_section_map_updates_cleanup): Likewise.
6375
6376 2013-06-04 Gary Benson <gbenson@redhat.com>
6377
6378 * probe.h (get_probe_argument_count): New declaration.
6379 (evaluate_probe_argument): Likewise.
6380 * probe.c (get_probe_argument_count): New function.
6381 (evaluate_probe_argument): Likewise.
6382 (probe_safe_evaluate_at_pc): Use the above new functions.
6383
6384 2013-06-04 Alan Modra <amodra@gmail.com>
6385
6386 * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
6387 * rs6000-tdep.c (read_insn): Add frame param, don't assume big-endian.
6388 (ppc_insns_match_pattern): Add frame param. Avoid multiple
6389 target mem reads on optional insns.
6390 * ppc-linux-tdep.c (ppc_skip_trampoline_code): Update
6391 ppc_insns_match_pattern calls.
6392 * ppc64-tdep.c (ppc64_standard_linkage2, ppc64_standard_linkage3):
6393 Add match for power7 thread safety insns, and new order of
6394 std 2,40(1) insn. Correct code shown for _dl_runtime_resolve
6395 invocation in comment, and update rest of comment.
6396 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN,
6397 PPC64_STANDARD_LINKAGE3_LEN): Delete.
6398 (ppc64_standard_linkage2_target): Update insn offsets.
6399 (ppc64_skip_trampoline_code): Use a single insn buffer. Match newer
6400 stubs first. Update calls.
6401
6402 2013-06-04 Yao Qi <yao@codesourcery.com>
6403
6404 * solib.c (solib_find): Don't need dir separator if path has
6405 drive spec.
6406
6407 2013-06-03 Joel Brobecker <brobecker@adacore.com>
6408
6409 Revert (indirectly causes a SIGSEGV):
6410 * machoread.c (macho_symfile_read): Assign first cleanup to
6411 'back_to'.
6412
6413 2013-06-03 Yao Qi <yao@codesourcery.com>
6414
6415 * mi/mi-cmd-var.c (mi_no_values, mi_simple_values): Move to
6416 mi-parse.c. Make them static.
6417 (mi_all_values): Likewise.
6418 (mi_parse_values_option): Move to mi-parse.c. Rename it to
6419 mi_parse_print_values. Make it external.
6420 * mi/mi-cmds.h (mi_no_values, mi_simple_values, mi_all_values):
6421 Remove the declarations.
6422 * mi/mi-parse.c (mi_parse_print_values): Moved from mi-cmd-var.c.
6423 * mi/mi-parse.h (mi_parse_print_values): Declare.
6424 * mi/mi-cmd-stack.c: Include mi-parse.h.
6425 (parse_print_values): Remove
6426 (mi_cmd_stack_list_locals): Call mi_parse_print_values instead
6427 of parse_print_values.
6428 (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Likewise.
6429
6430 2013-05-31 Pedro Alves <pedro@codesourcery.com>
6431 Yao Qi <yao@codesourcery.com>
6432
6433 * tracepoint.c (all_tracepoint_actions_and_cleanup): Declare.
6434 (encode_actions): Move code to ...
6435 (all_tracepoint_actions_and_cleanup): ... here. New.
6436 (trace_dump_command): Likewise.
6437
6438 2013-05-30 Tom Tromey <tromey@redhat.com>
6439
6440 * symmisc.c (maintenance_expand_symtabs): Call do_cleanups.
6441
6442 2013-05-30 Tom Tromey <tromey@redhat.com>
6443
6444 * xml-support.c (gdb_xml_create_parser_and_cleanup): Rename from
6445 gdb_xml_create_parser_and_cleanup_1. Return a cleanup. Remove
6446 'old_chain' argument. Add 'parser_result' argument.
6447 (gdb_xml_create_parser_and_cleanup): Remove old version.
6448 (gdb_xml_parse_quick): Update.
6449 (xml_process_xincludes): Update.
6450 * xml-support.h (gdb_xml_create_parser_and_cleanup): Don't
6451 declare.
6452
6453 2013-05-30 Tom Tromey <tromey@redhat.com>
6454
6455 * probe.c (collect_probes): Check arguments for NULL before
6456 calling compile_rx_or_error.
6457 * utils.c (compile_rx_or_error): Require 'rx' to be non-NULL.
6458 Remove NULL return.
6459
6460 2013-05-30 Tom Tromey <tromey@redhat.com>
6461
6462 * infrun.c (adjust_pc_after_break): Introduce an outer null
6463 cleanup.
6464
6465 2013-05-30 Tom Tromey <tromey@redhat.com>
6466
6467 * mi/mi-cmd-var.c (varobj_update_one): Add an outer null cleanup.
6468
6469 2013-05-30 Tom Tromey <tromey@redhat.com>
6470
6471 * cli/cli-script.c (read_command_lines_1): Use a null cleanup
6472 for 'old_chain'. Do not check 'head' before processing
6473 cleanups.
6474
6475 2013-05-30 Tom Tromey <tromey@redhat.com>
6476
6477 * mi/mi-cmd-stack.c (list_arg_or_local): Remove
6478 "cleanup_tuple".
6479
6480 2013-05-30 Tom Tromey <tromey@redhat.com>
6481
6482 * dbxread.c (dbx_read_symtab): Declare 'back_to' in a more
6483 inner scope. Unconditionally call do_cleanups.
6484
6485 2013-05-30 Tom Tromey <tromey@redhat.com>
6486
6487 * source.c (find_and_open_source): Call do_cleanups.
6488
6489 2013-05-30 Tom Tromey <tromey@redhat.com>
6490
6491 * linux-thread-db.c (thread_db_load_search): Unconditionally
6492 call do_cleanups.
6493
6494 2013-05-30 Tom Tromey <tromey@redhat.com>
6495
6496 * solib-aix.c (solib_aix_bfd_open): Don't use a null cleanup
6497 for 'cleanup'; instead use a later one.
6498
6499 2013-05-30 Tom Tromey <tromey@redhat.com>
6500
6501 * python/py-breakpoint.c (bppy_get_commands): Use
6502 explicit, unconditional return.
6503 * python/py-frame.c (frapy_read_var): Likewise.
6504 * python/python.c (gdbpy_decode_line): Likewise.
6505
6506 2013-05-30 Tom Tromey <tromey@redhat.com>
6507
6508 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Call
6509 do_cleanups on all return paths.
6510
6511 2013-05-30 Tom Tromey <tromey@redhat.com>
6512
6513 * top.c (execute_command): Discard 'cleanup_if_error' cleanups.
6514
6515 2013-05-30 Tom Tromey <tromey@redhat.com>
6516
6517 * stabsread.c (read_struct_type): Call do_cleanups along
6518 all return paths.
6519
6520 2013-05-30 Maciej W. Rozycki <macro@codesourcery.com>
6521
6522 * mips-linux-tdep.c: Adjust formatting throughout.
6523
6524 2013-05-30 Tom Tromey <tromey@redhat.com>
6525
6526 * mipsread.c (read_alphacoff_dynamic_symtab): Call do_cleanups
6527 along all return paths.
6528
6529 2013-05-30 Tom Tromey <tromey@redhat.com>
6530
6531 * symfile.c (find_separate_debug_file): Call do_cleanups
6532 along all return paths.
6533
6534 2013-05-30 Tom Tromey <tromey@redhat.com>
6535
6536 * symtab.c (search_symbols): Introduce a null cleanup for
6537 'retval_chain'.
6538
6539 2013-05-30 Tom Tromey <tromey@redhat.com>
6540
6541 * python/py-value.c (valpy_binop): Call do_cleanups before
6542 exiting loop.
6543
6544 2013-05-30 Tom Tromey <tromey@redhat.com>
6545
6546 * python/py-prettyprint.c (print_children): Remove extra
6547 do_cleanups call.
6548
6549 2013-05-30 Tom Tromey <tromey@redhat.com>
6550
6551 * python/py-frame.c (frapy_read_var): Call do_cleanups along
6552 all return paths.
6553
6554 2013-05-30 Tom Tromey <tromey@redhat.com>
6555
6556 * python/py-breakpoint.c (bppy_get_commands): Call do_cleanups
6557 along all return paths.
6558
6559 2013-05-30 Tom Tromey <tromey@redhat.com>
6560
6561 * cli/cli-logging.c (set_logging_redirect): Unconditionally
6562 call do_cleanups.
6563
6564 2013-05-30 Tom Tromey <tromey@redhat.com>
6565
6566 * varobj.c (c_value_of_root): Call do_cleanups along all
6567 return paths.
6568
6569 2013-05-30 Tom Tromey <tromey@redhat.com>
6570
6571 * tracepoint.c (trace_dump_command): Unconditionally call
6572 do_cleanups.
6573
6574 2013-05-30 Tom Tromey <tromey@redhat.com>
6575
6576 * breakpoint.c (output_thread_groups, parse_cmd_to_aexpr): Call
6577 do_cleanups earlier.
6578
6579 2013-05-30 Tom Tromey <tromey@redhat.com>
6580
6581 * machoread.c (macho_symfile_read): Assign first cleanup to
6582 'back_to'.
6583
6584 2013-05-30 Tom Tromey <tromey@redhat.com>
6585
6586 * m32r-rom.c (m32r_load): Call do_cleanups at all returns.
6587
6588 2013-05-30 Tom Tromey <tromey@redhat.com>
6589
6590 * mi/mi-main.c (list_available_thread_groups): Call do_cleanups.
6591
6592 2013-05-30 Tom Tromey <tromey@redhat.com>
6593
6594 * inf-ptrace.c (inf_ptrace_create_inferior): Unconditionally
6595 call discard_cleanups.
6596 (inf_ptrace_attach): Likewise.
6597
6598 2013-05-30 Tom Tromey <tromey@redhat.com>
6599
6600 * remote-mips.c (mips_exit_debug): Call do_cleanups on all
6601 return paths.
6602 (mips_initialize): Likewise.
6603 (common_open): Call do_cleanups.
6604
6605 2013-05-30 Tom Tromey <tromey@redhat.com>
6606
6607 * utils.c (internal_vproblem): Call do_cleanups.
6608
6609 2013-05-30 Tom Tromey <tromey@redhat.com>
6610
6611 * linespec.c (find_linespec_symbols): Don't reassign to 'cleanup'.
6612
6613 2013-05-30 Tom Tromey <tromey@redhat.com>
6614
6615 * cli/cli-script.c (setup_user_args): Don't return after error.
6616
6617 2013-05-30 Tom Tromey <tromey@redhat.com>
6618
6619 * somread.c (som_symtab_read): Call do_cleanups.
6620
6621 2013-05-30 Tom Tromey <tromey@redhat.com>
6622
6623 * printcmd.c (print_command_1): Unconditionally call do_cleanups.
6624
6625 2013-05-30 Tom Tromey <tromey@redhat.com>
6626
6627 * cli/cli-cmds.c (cd_command, alias_command): Call do_cleanups.
6628 * cli/cli-dump.c (restore_binary_file): Call do_cleanups.
6629 * interps.c (interpreter_exec_cmd): Call do_cleanups.
6630 * source.c (show_substitute_path_command): Call do_cleanups.
6631 (unset_substitute_path_command, set_substitute_path_command):
6632 Likewise.
6633 * symfile.c (load_command): Call do_cleanups.
6634
6635 2013-05-30 Tom Tromey <tromey@redhat.com>
6636
6637 * contrib/cleanup_check.py: New file.
6638 * contrib/gcc-with-excheck: Add option parsing.
6639
6640 2013-05-30 Joel Brobecker <brobecker@adacore.com>
6641
6642 * windows-nat.c (windows_delete_thread): Add missing space
6643 in cast expression.
6644
6645 2013-05-30 Hafiz Abid Qadeer <abidh@codesourcery.com>
6646
6647 * inferior.c (top level): Include tilde.h.
6648 (add_inferior_command): Call tilde_expand on the value of 'exec'
6649 argument.
6650
6651 2013-05-30 Pedro Alves <pedro@codesourcery.com>
6652 Yao Qi <yao@codesourcery.com>
6653
6654 * tracepoint.c (encode_actions_1): Remove parameter 't'.
6655 Caller update.
6656 (encode_actions): Likewise.
6657 * remote.c (remote_download_tracepoint): Caller update.
6658 * tracepoint.h (encode_actions): Update declaration.
6659
6660 2013-05-30 Pedro Alves <palves@redhat.com>
6661
6662 * python/python-internal.h (gdb_Py_DECREF): Cast OP to PyObject
6663 pointer.
6664
6665 2013-05-30 Yao Qi <yao@codesourcery.com>
6666
6667 * remote.c (remote_check_symbols): Remove unused parameter
6668 'objfile'.
6669 Declaration update.
6670 (remote_start_remote, remote_new_objfile): Caller update.
6671
6672 2013-05-30 Yao Qi <yao@codesourcery.com>
6673
6674 * mi/mi-cmds.c (mi_cmds): Define MI command
6675 '-exec-arguments' by macro DEF_MI_CMD_CLI_1 instead of
6676 DEF_MI_CMD_CLI.
6677
6678 2013-05-29 Pedro Alves <palves@redhat.com>
6679
6680 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint)
6681 (remote_insert_watchpoint, remote_remove_watchpoint)
6682 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint)
6683 (remote_verify_memory, compare_sections_command)
6684 (remote_search_memory): Set the general process/thread on the
6685 remote side.
6686
6687 2013-05-29 Pedro Alves <palves@redhat.com>
6688
6689 * aarch64-tdep.c: Don't include "features/aarch64-without-fpu.c".
6690 (_initialize_aarch64_tdep): Don't call
6691 initialize_tdesc_aarch64_without_fpu.
6692 * features/Makefile (WHICH): Remove reference to
6693 aarch64-without-fpu.
6694 * features/aarch64-without-fpu.c: Delete file.
6695 * regformats/aarch64-without-fpu.dat: Delete file.
6696
6697 2013-05-28 Yao Qi <yao@codesourcery.com>
6698
6699 * tracepoint.c (stringify_collection_list): Remove parameter
6700 'string'.
6701 (encode_actions): Caller update. Remove local variables.
6702
6703 2013-05-24 Yao Qi <yao@codesourcery.com>
6704
6705 * tracepoint.c (TFILE_PID): Remove.
6706 (tfile_open): Don't add thread and inferior.
6707 (tfile_close): Don't set 'inferior_ptid'. Don't call
6708 exit_inferior_silent.
6709 (tfile_thread_alive): Remove.
6710 (init_tfile_ops): Don't set field 'to_thread_alive' of
6711 tfile_ops.
6712
6713 2013-05-23 Doug Evans <dje@google.com>
6714
6715 * contrib/cc-with-tweaks.sh (-p): Handle no dwo files.
6716
6717 2013-05-23 Pedro Alves <palves@redhat.com>
6718
6719 * common/filestuff.c [USE_WIN32API]: Define HAVE_SOCKETS.
6720 [HAVE_SYS_SOCKET_H]: Define HAVE_SOCKETS.
6721 (socket_mark_cloexec, gdb_socketpair_cloexec, gdb_socket_cloexec):
6722 Only define if HAVE_SOCKETS is defined.
6723 * configure.ac: Check for sys/socket.h.
6724 * config.in, configure: Regenerate.
6725
6726 2013-05-23 Pedro Alves <palves@redhat.com>
6727
6728 * dwarf2read.c (create_dwp_hash_table, create_dwo_in_dwp)
6729 (open_and_init_dwp_file): Use %s/pulongest instead of %u for
6730 printing uint32_t variables.
6731
6732 2013-05-23 Pedro Alves <palves@redhat.com>
6733
6734 * NEWS: Mention GDBserver range stepping support.
6735
6736 2013-05-23 Yao Qi <yao@codesourcery.com>
6737 Pedro Alves <palves@redhat.com>
6738
6739 * gdbthread.h (struct thread_control_state) <may_range_step>: New
6740 field.
6741 * infcmd.c (step_once, until_next_command): Enable range stepping.
6742 * infrun.c (displaced_step_prepare): Disable range stepping.
6743 (resume): Disable range stepping if stepping over a breakpoint or
6744 we have software watchpoints. If range stepping is enabled,
6745 assert the thread is in the stepping range.
6746 (clear_proceed_status_thread): Clear may_range_step.
6747 (handle_inferior_event): Disable range stepping as soon as we know
6748 the thread that hit the event. Re-enable it whenever we're going
6749 to step with a step range.
6750 * remote.c (struct vCont_action_support) <r>: New field.
6751 (use_range_stepping): New global.
6752 (remote_vcont_probe): Handle 'r' action.
6753 (append_resumption): Append an 'r' action if the thread may range
6754 step.
6755 (show_range_stepping): New function.
6756 (set_range_stepping): New function.
6757 (_initialize_remote): Call add_setshow_boolean_cmd to register the
6758 'set range-stepping' and 'show range-stepping' commands.
6759 * NEWS: Mention range stepping, the new vCont;r action, and the
6760 new "set/show range-stepping" commands.
6761
6762 2013-05-23 Yao Qi <yao@codesourcery.com>
6763 Pedro Alves <palves@redhat.com>
6764
6765 * remote.c (struct vCont_action_support): New struct.
6766 (struct remote_state) <support_vCont_t>: Remove field.
6767 <vCont_actions_support>: New field.
6768 (remote_vcont_probe, remote_stop_ns): Update.
6769
6770 2013-05-23 Yao Qi <yao@codesourcery.com>
6771 Pedro Alves <palves@redhat.com>
6772
6773 * gdbthread.h (pc_in_thread_step_range): New declaration.
6774 * thread.c (pc_in_thread_step_range): New function.
6775 * infrun.c (handle_inferior_event): Use it.
6776
6777 2013-05-23 Joel Brobecker <brobecker@adacore.com>
6778
6779 * mi/mi-cmd-break.c (mi_argv_to_format): Use xsnprintf instead
6780 of sprintf.
6781
6782 2013-05-22 Keith Seitz <keiths@redhat.com>
6783
6784 * ada-lang.c (is_known_support_routine): Add explicit free of
6785 'func_name' from find_frame_funname.
6786 (ada_unhandled_exception_name_addr_from_raise): Add cleanups
6787 for func_name from find_frame_funname.
6788 * python/py-frame.c (frapy_name): Add explicit free of
6789 'name' from find_frame_funname.
6790 * stack.c (find_frame_funname): Add comment explaining that
6791 funcp must be freed by the caller.
6792 Return copy of symbol names instead of pointers.
6793 (print_frame): Add a cleanup for 'funname' from
6794 find_frame_funname.
6795 * stack.h (find_frame_funname): Remove "const" from
6796 'funname' parameter.
6797
6798 2013-05-22 Tom Tromey <tromey@redhat.com>
6799
6800 PR c++/15401:
6801 * c-valprint.c (c_value_print): Use value_addr for
6802 references. Convert back to reference type with value_ref.
6803
6804 2013-05-22 Eli Zaretskii <eliz@gnu.org>
6805
6806 * windows-nat.c (handle_unload_dll): Don't call solib_add for the
6807 unloaded DLL, it will be done by handle_solib_event. See
6808 http://sourceware.org/ml/gdb-patches/2013-05/msg00713.html for the
6809 details.
6810
6811 2013-05-22 Phil Muldoon <pmuldoon@redhat.com>
6812
6813 * ui-out.c: Create typedef ui_out_level_p and define vector
6814 operations for that type.
6815 (struct ui_out): Use a vector instead of an array.
6816 (current_level): Return level from a vector.
6817 (push_level): Create a level in a vector.
6818 (pop_level): Delete a level in a vector.
6819 (ui_out_new): Create initial level zero level, and store in a
6820 vector.
6821 (ui_out_destroy): Add vector cleanup.
6822
6823 2013-05-22 Pedro Alves <palves@redhat.com>
6824
6825 * python/python-internal.h (gdb_Py_DECREF): Tag with
6826 "ARI: editCase function".
6827
6828 2013-05-21 Paul Pluzhnikov <ppluzhnikov@google.com>
6829
6830 * solib-svr4.c (svr4_free_so): Protect against NULL dereference.
6831
6832 2013-05-21 Pedro Alves <palves@redhat.com>
6833
6834 * python/py-prettyprint.c (apply_val_pretty_printer): Check
6835 whether PRINTER is NULL before installing a Py_DECREF cleanup.
6836 * python/py-utils.c (py_decref): Don't check for NULL before
6837 calling Py_DECREF.
6838
6839 2013-05-21 Pedro Alves <palves@redhat.com>
6840
6841 * python/py-utils.c (py_decref): Remove extra braces.
6842 (gdb_pymodule_addobject): Remove extra braces.
6843 * python-internal.h (gdb_Py_DECREF): New static inline function.
6844 (Py_DECREF): Redefine as calling gdb_Py_DECREF.
6845
6846 2013-05-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6847
6848 * breakpoints.c (detach_breakpoints): Do not
6849 detach breakpoints locations with loc_type bp_loc_other.
6850
6851 2013-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6852
6853 Workaround Python 2.6.
6854 * python/py-utils.c (gdb_pymodule_addobject): Wrap Py_DECREF into
6855 a block.
6856
6857 2013-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6858
6859 Code cleanup: constification.
6860 * solib.c (solib_ops): Make return type and ops variable type const.
6861 (set_solib_ops): Make the new_ops parameter and ops variable const.
6862 (solib_find, solib_map_sections, clear_so, free_so, update_solib_list)
6863 (solib_add, solib_keep_data_in_core, clear_solib)
6864 (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
6865 (reload_shared_libraries, solib_global_lookup): Make the ops variable
6866 const.
6867 * solib.h (set_solib_ops): Make the new_ops parameter const.
6868
6869 2013-05-21 Joel Brobecker <brobecker@adacore.com>
6870
6871 * data-directory/Makefile.in (SYSTEM_GDBINIT_SRCDIR): New
6872 variable.
6873 (VPATH): Add SYSTEM_GDBINIT_SRCDIR.
6874 (SYSTEM_GDBINIT_DIR, SYSTEM_GDBINIT_INSTALL_DIR)
6875 (SYSTEM_GDBINIT_FILES): New variables.
6876 (all): Add stamp-system-gdbinit.
6877 (stamp-system-gdbinit): New rule.
6878 (clean-system-gdbinit, install-system-gdbinit)
6879 (uninstall-system-gdbinit): New rules. Make them .PHONY.
6880 (install-only): Add dependency on install-system-gdbinit.
6881 (uninstall): Add dependency on uninstall-system-gdbinit.
6882 (clean): Add dependency on clean-system-gdbinit.
6883 * system-gdbinit/elinos.py: New file.
6884 * system-gdbinit/wrs-linux.py: New file.
6885
6886 2013-05-21 Joel Brobecker <brobecker@adacore.com>
6887
6888 * ada-lang.c (old_renaming_is_invisible): Fix cleanup leak.
6889
6890 2013-05-21 Hui Zhu <hui@codesourcery.com>
6891
6892 * breakpoint.c (dprintf_breakpoint_ops): Remove its static.
6893 * breakpoint.h (dprintf_breakpoint_ops): Add extern.
6894 * mi/mi-cmd-break.c (ctype.h): New include.
6895 (gdb_obstack.h): New include.
6896 (mi_argv_to_format, mi_cmd_break_insert_1): New.
6897 (mi_cmd_break_insert): Call mi_cmd_break_insert_1.
6898 (mi_cmd_dprintf_insert): New.
6899 * mi/mi-cmds.c (mi_cmds): Add "dprintf-insert".
6900 * mi/mi-cmds.h (mi_cmd_dprintf_insert): New extern.
6901
6902 2013-05-20 Tom Tromey <tromey@redhat.com>
6903
6904 * python/py-prettyprint.c (search_pp_list): Decref 'attr'.
6905
6906 2013-05-20 Tom Tromey <tromey@redhat.com>
6907
6908 * python/py-value.c (valpy_get_dynamic_type): Simplify
6909 dynamic_type assignment. Use Py_XINCREF.
6910
6911 2013-05-20 Tom Tromey <tromey@redhat.com>
6912
6913 * python/py-type.c (typy_fields): Unconditionally decref 'r'.
6914
6915 2013-05-20 Tom Tromey <tromey@redhat.com>
6916
6917 * python/py-frame.c (frapy_older, frapy_newer, gdbpy_newest_frame)
6918 (gdbpy_selected_frame): Move object-construction code
6919 out of TRY_CATCH.
6920
6921 2013-05-20 Tom Tromey <tromey@redhat.com>
6922
6923 * python/py-arch.c (gdbpy_initialize_arch): Use
6924 gdb_pymodule_addobject.
6925 * python/py-block.c (gdbpy_initialize_blocks): Use
6926 gdb_pymodule_addobject.
6927 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Use
6928 gdb_pymodule_addobject.
6929 * python/py-cmd.c (gdbpy_initialize_breakpoints): Use
6930 gdb_pymodule_addobject.
6931 * python/py-event.c (gdbpy_initialize_event_generic): Use
6932 gdb_pymodule_addobject.
6933 * python/py-evtregistry.c (gdbpy_initialize_eventregistry): Use
6934 gdb_pymodule_addobject.
6935 * python/py-evts.c (add_new_registry): Use
6936 gdb_pymodule_addobject.
6937 (gdbpy_initialize_py_events): Likewise.
6938 * python/py-finishbreakpoint.c
6939 (gdbpy_initialize_finishbreakpoints): Use
6940 gdb_pymodule_addobject.
6941 * python/py-frame.c (gdbpy_initialize_frames): Use
6942 gdb_pymodule_addobject.
6943 * python/py-function.c (gdbpy_initialize_functions): Use
6944 gdb_pymodule_addobject.
6945 * python/py-inferior.c (gdbpy_initialize_inferior): Use
6946 gdb_pymodule_addobject.
6947 * python/py-infthread.c (gdbpy_initialize_thread): Use
6948 gdb_pymodule_addobject.
6949 * python/py-objfile.c (gdbpy_initialize_objfile): Use
6950 gdb_pymodule_addobject.
6951 * python/py-param.c (gdbpy_initialize_parameters): Use
6952 gdb_pymodule_addobject.
6953 * python/py-progspace.c (gdbpy_initialize_pspace): Use
6954 gdb_pymodule_addobject.
6955 * python/py-symbol.c (gdbpy_initialize_symbols): Use
6956 gdb_pymodule_addobject.
6957 * python/py-symtab.c (gdbpy_initialize_symtabs): Use
6958 gdb_pymodule_addobject.
6959 * python/py-type.c (gdbpy_initialize_types): Use
6960 gdb_pymodule_addobject.
6961 * python/py-utils.c (gdb_pymodule_addobject): New function.
6962 * python/py-value.c (gdbpy_initialize_values): Use
6963 gdb_pymodule_addobject.
6964 * python/python-internal.h (gdb_pymodule_addobject): Declare.
6965 * python/python.c (_initialize_python): Use
6966 gdb_pymodule_addobject.
6967
6968 2013-05-20 Tom Tromey <tromey@redhat.com>
6969
6970 * python/py-cmd.c (cmdpy_completer): Use explicit decref.
6971 * python/py-param.c (get_set_value, get_show_value): Use
6972 explicit decrefs.
6973 * python/python.c (start_type_printers, apply_type_printers):
6974 Use explicit decrefs.
6975
6976 2013-05-20 Tom Tromey <tromey@redhat.com>
6977
6978 * python/py-evts.c (gdbpy_initialize_py_events): Don't
6979 incref the module.
6980
6981 2013-05-20 Tom Tromey <tromey@redhat.com>
6982
6983 * python/python.c (gdbpy_run_events): Decref the result
6984 of PyObject_CallObject.
6985
6986 2013-05-20 Tom Tromey <tromey@redhat.com>
6987
6988 * python/py-symtab.c (set_sal): Use
6989 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION. Return -1 on error.
6990 (symtab_and_line_to_sal_object): Update.
6991
6992 2013-05-20 Tom Tromey <tromey@redhat.com>
6993
6994 * python/py-param.c (compute_enum_values): Decref 'item'.
6995
6996 2013-05-20 Tom Tromey <tromey@redhat.com>
6997
6998 * mi/mi-main.c: Include python-internal.h.
6999 (mi_cmd_list_features): Check gdb_python_initialized.
7000 * python/py-inferior.c (python_on_normal_stop, python_on_resume)
7001 (python_inferior_exit, python_new_objfile, add_thread_object)
7002 (delete_thread_object, py_free_inferior): Check
7003 gdb_python_initialized.
7004 * python/py-prettyprint.c (apply_val_pretty_printer): Check
7005 gdb_python_initialized.
7006 * python/py-type.c (save_objfile_types): Check
7007 gdb_python_initialized.
7008 * python/python-internal.h (gdb_python_initialized): Declare.
7009 * python/python.c (ensure_python_env): Throw exception if
7010 Python not initialized.
7011 (before_prompt_hook, source_python_script_for_objfile)
7012 (start_type_printers, apply_type_printers,
7013 free_type_printers): Check gdb_python_initialized.
7014 * varobj.c (varobj_get_display_hint)
7015 (dynamic_varobj_has_child_method, update_dynamic_varobj_children)
7016 (install_new_value_visualizer, varobj_set_visualizer)
7017 (value_get_print_value): Check gdb_python_initialized.
7018
7019 2013-05-20 Tom Tromey <tromey@redhat.com>
7020
7021 * python/py-arch.c (gdbpy_initialize_arch): Return 'int'.
7022 Check errors.
7023 * python/py-auto-load.c (gdbpy_initialize_auto_load): Return 'int'.
7024 * python/py-block.c (gdbpy_initialize_blocks): Return 'int'.
7025 Check errors.
7026 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Return 'int'.
7027 Check errors.
7028 * python/py-cmd.c (gdbpy_initialize_commands): Return 'int'.
7029 Check errors.
7030 * python/py-event.c (gdbpy_initialize_event): Return 'int'.
7031 Check errors.
7032 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Change generated
7033 init function to return 'int'.
7034 * python/py-evtregistry.c (gdbpy_initialize_eventregistry):
7035 Return 'int'. Check errors.
7036 * python/py-evts.c (gdbpy_initialize_py_events): Return 'int'.
7037 Check errors.
7038 * python/py-finishbreakpoint.c (gdbpy_initialize_finishbreakpoints):
7039 Return 'int'. Check errors.
7040 * python/py-frame.c (gdbpy_initialize_frames): Return 'int'.
7041 Check errors.
7042 * python/py-function.c (gdbpy_initialize_functions): Return 'int'.
7043 Check errors.
7044 * python/py-gdb-readline.c (gdbpy_initialize_gdb_readline):
7045 Check errors.
7046 * python/py-inferior.c (gdbpy_initialize_inferior): Return 'int'.
7047 Check errors.
7048 * python/py-infthread.c (gdbpy_initialize_thread): Return 'int'.
7049 Check errors.
7050 * python/py-lazy-string.c (gdbpy_initialize_lazy_string): Return 'int'.
7051 Check errors.
7052 * python/py-objfile.c (gdbpy_initialize_objfile): Return 'int'.
7053 Check errors.
7054 * python/py-param.c (gdbpy_initialize_parameters): Return 'int'.
7055 Check errors.
7056 * python/py-progspace.c (gdbpy_initialize_pspace): Return 'int'.
7057 Check errors.
7058 * python/py-symbol.c (gdbpy_initialize_symbols): Return 'int'.
7059 Check errors.
7060 * python/py-symtab.c (gdbpy_initialize_symtabs): Return 'int'.
7061 Check errors.
7062 * python/py-type.c (gdbpy_initialize_types): Return 'int'.
7063 Check errors.
7064 * python/py-value.c (gdbpy_initialize_values): Return 'int'.
7065 Check errors.
7066 * python/python-internal.h (gdbpy_initialize_auto_load,
7067 gdbpy_initialize_values, gdbpy_initialize_frames,
7068 gdbpy_initialize_symtabs, gdbpy_initialize_commands,
7069 gdbpy_initialize_symbols, gdbpy_initialize_symtabs,
7070 gdbpy_initialize_blocks, gdbpy_initialize_types,
7071 gdbpy_initialize_functions, gdbpy_initialize_pspace,
7072 gdbpy_initialize_objfile, gdbpy_initialize_breakpoints,
7073 gdbpy_initialize_finishbreakpoints,
7074 gdbpy_initialize_lazy_string, gdbpy_initialize_parameters,
7075 gdbpy_initialize_thread, gdbpy_initialize_inferior,
7076 gdbpy_initialize_eventregistry, gdbpy_initialize_event,
7077 gdbpy_initialize_py_events, gdbpy_initialize_stop_event,
7078 gdbpy_initialize_signal_event,
7079 gdbpy_initialize_breakpoint_event,
7080 gdbpy_initialize_continue_event,
7081 gdbpy_initialize_exited_event, gdbpy_initialize_thread_event,
7082 gdbpy_initialize_new_objfile_event, gdbpy_initialize_arch):
7083 Update. Use CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
7084 * python/python.c (gdb_python_initialized): New global.
7085 (gdbpy_initialize_events): Return 'int'. Check errors.
7086 (_initialize_python): Check errors. Set
7087 gdb_python_initialized.
7088
7089 2013-05-20 Tom Tromey <tromey@redhat.com>
7090
7091 * python/py-finishbreakpoint.c (bpfinishpy_out_of_scope):
7092 Decref the reslut of PyObject_CallMethod.
7093
7094 2013-05-20 Tom Tromey <tromey@redhat.com>
7095
7096 * python/py-event.c (gdbpy_initialize_event_generic): Return
7097 early if PyType_Ready fails.
7098
7099 2013-05-20 Tom Tromey <tromey@redhat.com>
7100
7101 * python/py-type.c (make_fielditem): Add gdb_assert_not_reached
7102 as 'default' in the switch.
7103
7104 2013-05-20 Tom Tromey <tromey@redhat.com>
7105
7106 * python/py-inferior.c (gdbpy_inferiors): Update. Hoist
7107 get_addr_from_python calls out of TRY_CATCH.
7108 (infpy_write_memory, infpy_search_memory): Likewise.
7109 * python/py-utils.c (get_addr_from_python): Return negative
7110 value on error. Use TRY_CATCH.
7111 * python/python-internal.h (get_addr_from_python): Use
7112 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
7113
7114 2013-05-20 Tom Tromey <tromey@redhat.com>
7115
7116 * python/py-event.c (evpy_emit_event): Decref the
7117 result of PyObject_CallFunctionObjArgs.
7118
7119 2013-05-20 Tom Tromey <tromey@redhat.com>
7120
7121 * python/py-cmd.c (cmdpy_completer): Use iterator protocol.
7122 Correctly decref.
7123
7124 2013-05-20 Tom Tromey <tromey@redhat.com>
7125
7126 * python/py-cmd.c (cmdpy_init): Decref 'ds_obj'.
7127
7128 2013-05-20 Tom Tromey <tromey@redhat.com>
7129
7130 * python/py-event.h (gdbpy_initialize_event_generic): Use
7131 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
7132 * python/py-evts.c (add_new_registry): Use
7133 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
7134 * python/python-internal.h
7135 (CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION): New macro.
7136
7137 2013-05-20 Tom Tromey <tromey@redhat.com>
7138
7139 * python/py-arch.c (archpy_disassemble): Update.
7140 * python/py-type.c (typy_get_composite, typy_lookup_typename)
7141 (typy_lookup_type): Use GDB_PY_HANDLE_EXCEPTION.
7142 * python/py-utils.c (gdbpy_convert_exception): Return 'void'.
7143 * python/python-internal.h (CPYCHECKER_SETS_EXCEPTION): New
7144 macro.
7145 (GDB_PY_HANDLE_EXCEPTION): Update.
7146 (gdbpy_convert_exception): Update. Use CPYCHECKER_SETS_EXCEPTION.
7147
7148 2013-05-20 Tom Tromey <tromey@redhat.com>
7149
7150 * python/python-internal.h (events_object_type): Remove.
7151
7152 2013-05-20 Tom Tromey <tromey@redhat.com>
7153
7154 * python/py-event.h (evpy_emit_event): Use
7155 CPYCHECKER_STEALS_REFERENCE_TO_ARG.
7156 * python/python-internal.h (CPYCHECKER_STEALS_REFERENCE_TO_ARG):
7157 New macro.
7158
7159 2013-05-20 Tom Tromey <tromey@redhat.com>
7160
7161 * py-evtregistry.c (create_event_object): Decref
7162 eventregistry_object if PyList_New fails.
7163
7164 2013-05-20 Tom Tromey <tromey@redhat.com>
7165
7166 * py-cmd.c (gdbpy_string_to_argv): Check result of
7167 PyList_New.
7168
7169 2013-05-20 Tom Tromey <tromey@redhat.com>
7170
7171 * python/python.c (before_prompt_hook): Add cleanup to
7172 decref 'hook'.
7173
7174 2013-05-20 Tom Tromey <tromey@redhat.com>
7175
7176 * python/py-function.c (fnpy_init): Decref result of
7177 PyObject_GetAttrString.
7178
7179 2013-05-20 Tom Tromey <tromey@redhat.com>
7180
7181 * python/py-threadevent.c (get_event_thread): Use
7182 CPYCHECKER_RETURNS_BORROWED_REF.
7183 * python/python-internal.h (CPYCHECKER_RETURNS_BORROWED_REF):
7184 New define.
7185 (pspace_to_pspace_object, objfile_to_objfile_object)
7186 (find_thread_object): Use it.
7187
7188 2013-05-20 Tom Tromey <tromey@redhat.com>
7189
7190 * python/py-arch.c (arch_object_type): Use
7191 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7192 * python/py-block.c (block_syms_iterator_object_type):
7193 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7194 * python/py-bpevent.c (breakpoint_event_object_type):
7195 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7196 * python/py-cmd.c (cmdpy_object_type): Use
7197 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7198 * python/py-continueevent.c (continue_event_object_type):
7199 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7200 * python/py-event.h (GDBPY_NEW_EVENT_TYPE):
7201 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7202 * python/py-events.h (thread_event_object_type):
7203 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7204 * python/py-evtregistry.c (eventregistry_object_type): Use
7205 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7206 * python/py-exitedevent.c (exited_event_object_type):
7207 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7208 * python/py-finishbreakpoint.c (finish_breakpoint_object_type):
7209 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7210 * python/py-function.c (fnpy_object_type): Use
7211 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7212 * python/py-inferior.c (inferior_object_type, membuf_object_type):
7213 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7214 * python/py-infthread.c (thread_object_type): Use
7215 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7216 * python/py-lazy-string.c (lazy_string_object_type):
7217 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7218 * python/py-newobjfileevent.c (new_objfile_event_object_type):
7219 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7220 * python/py-objfile.c (objfile_object_type): Use
7221 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7222 * python/py-param.c (parmpy_object_type):
7223 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7224 * python/py-progspace.c (pspace_object_type):
7225 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7226 * python/py-signalevent.c (signal_event_object_type):
7227 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7228 * python/py-symtab.c (symtab_object_type, sal_object_type): Use
7229 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7230 * python/py-type.c (type_object_type, field_object_type)
7231 (type_iterator_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7232 * python/py-internal.h (CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF): New
7233 define.
7234 (value_object_type, block_object_type, symbol_object_type)
7235 (event_object_type, stop_event_object_type, breakpoint_object_type)
7236 (frame_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7237
7238 2013-05-20 Andreas Tobler <andreas@fgznet.ch>
7239
7240 * Makefile.in (ALL_TARGET_OBS): Add ppcfbsd-tdep.o.
7241 (ALLDEPFILES): Add ppcfbsd-nat.c and ppcfbsd-tdep.c.
7242
7243 2013-05-20 Doug Evans <dje@google.com>
7244
7245 When reading CU, stay in DWO. Be more tolerent of bad debug info.
7246 For Fission.
7247 * dwarf2read.c (struct dwarf2_per_cu_data): New member
7248 reading_dwo_directly.
7249 (struct signatured_type): New member dwo_unit.
7250 (struct die_reader_specs): New member comp_dir.
7251 (create_signatured_type_table_from_index): Use malloc for
7252 all_type_units instead of objfile's obstack.
7253 (create_all_type_units): Ditto.
7254 (fill_in_sig_entry_from_dwo_entry): New function.
7255 (add_type_unit): New function.
7256 (lookup_dwo_signatured_type): New function.
7257 (lookup_dwp_signatured_type): New function.
7258 (lookup_signatured_type): New arg cu. All callers updated.
7259 (init_cu_die_reader): Initialize comp_dir.
7260 (read_cutu_die_from_dwo): New arg stub_comp_dir. All callers updated.
7261 Change assert of matching type signatures to call error on mismatch.
7262 (lookup_dwo_unit): Add assert.
7263 (init_tu_and_read_dwo_dies): New function.
7264 (init_cutu_and_read_dies): Call it.
7265 (build_type_unit_groups): Handle case of no type unit groups created.
7266 (hash_dwo_file, eq_dwo_file): Handle missing comp_dir.
7267 (lookup_dwo_cutu): Tweak complaint.
7268 (dwarf2_free_abbrev_table): Check for NULL abbrev_table.
7269 (dwarf2_per_objfile_free): Free all_type_units.
7270
7271 2013-05-20 Joel Brobecker <brobecker@adacore.com>
7272
7273 * windows-nat.c (handle_unload_dll): Add missing empty line.
7274
7275 2013-05-20 Joel Brobecker <brobecker@adacore.com>
7276
7277 * dwarf2read.c (prototyped_function_p): New function.
7278 (read_subroutine_type): Use it.
7279
7280 2013-05-20 Joel Brobecker <brobecker@adacore.com>
7281
7282 * rs6000-aix-tdep.c: De-indent some example code provided
7283 as a comment.
7284
7285 2013-05-17 Edjunior Machado <emachado@linux.vnet.ibm.com>
7286
7287 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Check if the
7288 region is ok for a hardware watchpoint using the new ptrace interface
7289 on Power servers.
7290
7291 2013-05-17 Doug Evans <dje@google.com>
7292
7293 * NEWS: Mention new maintenance commands check-symtabs, and
7294 expand-symtabs, and renamed check-psymtabs.
7295 * psymtab.c (maintenance_check_psymtabs): Renamed from
7296 maintenance_check_symtabs. Only process already-expanded symbol
7297 tables.
7298 (_initialize_psymtab): Update.
7299 * symmisc.c (maintenance_check_symtabs): New function.
7300 (maintenance_expand_name_matcher): New function
7301 (maintenance_expand_file_matcher): New function
7302 (maintenance_expand_symtabs): New function.
7303 (_initialize_symmisc): Add "mt check-symtabs" and "mt expand-symtabs"
7304 commands.
7305
7306 2013-05-17 Tom Tromey <tromey@redhat.com>
7307
7308 * python/py-inferior.c (infpy_read_memory): Don't call
7309 PyErr_SetString if PyObject_New fails.
7310 * python/py-frame.c (frame_info_to_frame_object): Don't call
7311 PyErr_SetString if PyObject_New fails.
7312
7313 2013-05-17 Pavel Chupin <pavel.v.chupin@intel.com>
7314
7315 * acinclude.m4: Add check for dlopen in libdl.
7316 * configure.ac: Ditto.
7317 * configure: Regenerate.
7318
7319 2013-05-17 Phil Muldoon <pmuldoon@redhat.com>
7320
7321 * frame.c (frame_stash): Convert to htab.
7322 (frame_addr_hash): New function.
7323 (frame_addr_hash_eq): New function.
7324 (frame_stash_create): Convert function to create
7325 a hash table.
7326 (frame_stash_add): Convert function to add an entry to a hash
7327 table.
7328 (frame_stash_find): Convert function to search the hash table.
7329 (frame_stash_invalidate): Convert function to empty the hash
7330 table.
7331 (get_frame_id): Only add to stash if a frame_id is created.
7332 (_initialize_frame): Call frame_stash_create.
7333
7334 2013-05-16 Yue Lu <hacklu.newborn@gmail.com> (tiny change)
7335
7336 * configure.ac: Ensure MIG is available when building for GNU Hurd
7337 hosts.
7338 * configure: Regenerate.
7339
7340 2013-05-16 Joel Brobecker <brobecker@adacore.com>
7341
7342 * dwarf2read.c (set_cu_language): Add DW_LANG_UPC handling.
7343
7344 2013-05-16 Joel Brobecker <brobecker@adacore.com>
7345
7346 * ada-lang.c (ada_make_symbol_completion_list): Make sure
7347 all cleanups are done before returning from this function.
7348
7349 2013-05-15 Joel Brobecker <brobecker@adacore.com>
7350
7351 * utils.h: #include "exceptions.h".
7352 (enum errors): Remove partial declaration.
7353
7354 2013-05-15 Joel Brobecker <brobecker@adacore.com>
7355
7356 * gdbarch.sh (core_xfer_shared_libraries_aix): New method.
7357 * gdbarch.h, gdbarch.c: Regenerate.
7358 * corelow.c (core_xfer_partial): Add TARGET_OBJECT_LIBRARIES_AIX
7359 handling.
7360
7361 * rs6000-aix-tdep.h: New file.
7362 * Makefile.in (HFILES_NO_SRCDIR): Add rs6000-aix-tdep.h.
7363 * rs6000-aix-tdep.c: Include "rs6000-aix-tdep.h" and
7364 "xml-utils.h".
7365 (struct field_info, struct ld_info_desc): New types.
7366 (ld_info32_desc, ld_info64_desc): New static constants.
7367 (struct ld_info): New type.
7368 (rs6000_aix_extract_ld_info): New function.
7369 (rs6000_aix_shared_library_to_xml): Likewise.
7370 (rs6000_aix_ld_info_to_xml): Likewise.
7371 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
7372 (rs6000_aix_init_osabi): Add call to
7373 set_gdbarch_core_xfer_shared_libraries_aix.
7374 * rs6000-nat.c: Add "rs6000-aix-tdep.h" include.
7375 Remove "xml-utils.h" include.
7376 (LdInfo): Delete typedef.
7377 (ARCH64_DECL, LDI_FIELD, LDI_NEXT, LDI_FD, LDI_FILENAME):
7378 Delete macros.
7379 (rs6000_ptrace_ldinfo): Change return type to gdb_byte *.
7380 Adjust code accordingly.
7381 (rs6000_core_ldinfo): Delete, folded into
7382 rs6000_aix_core_xfer_shared_libraries_aix.
7383 (rs6000_xfer_shared_library): Delete.
7384 (rs6000_xfer_shared_libraries): Reimplement.
7385
7386 2013-05-15 Markus Metzger <markus.t.metzger@intel.com>
7387
7388 * record.c (record_goto_cmdlist): New.
7389 (cmd_record_goto): Split into this ...
7390 (cmd_record_goto_begin): ... this
7391 (cmd_record_goto_end): ... and this.
7392 (_initialize_record): Change "record goto" to prefix command.
7393 Add commands for "record goto begin" and "record goto end".
7394 Add an alias for "record goto start" to "record goto begin".
7395
7396 2013-05-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7397
7398 * linespec.c (convert_linespec_to_sals): New comment for
7399 SOURCE_FILENAME assignment.
7400
7401 2013-05-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7402
7403 * cleanups.c (restore_my_cleanups): Replace gdb_assert by
7404 internal_warning.
7405
7406 2013-05-14 Tom Tromey <tromey@redhat.com>
7407
7408 * eval.c (parse_and_eval_long): Make 'exp' const.
7409 * value.h (parse_and_eval_long): Update.
7410
7411 2013-05-14 Tom Tromey <tromey@redhat.com>
7412
7413 * ui-file.c (gdb_fopen): Make arguments const.
7414 * ui-file.h (gdb_fopen): Make arguments const.
7415
7416 2013-05-14 Tom Tromey <tromey@redhat.com>
7417
7418 * remote.c (remote_set_trace_notes): Make arguments const.
7419 * target.c (update_current_target): Update cast.
7420 * target.h (to_set_trace_notes): Make arguments const.
7421
7422 2013-05-14 Tom Tromey <tromey@redhat.com>
7423
7424 * go32-nat.c (go32_terminal_info): Make 'args' const.
7425 * inferior.h (child_terminal_info): Update.
7426 * inflow.c (child_terminal_info): Make 'args' const.
7427 * target.c (default_terminal_info): Make 'args' const.
7428 (debug_to_terminal_save_ours): Likewise.
7429 * target.h (struct target_ops) <to_terminal_info>: Make argument
7430 const.
7431
7432 2013-05-13 Tom Tromey <tromey@redhat.com>
7433
7434 * gcore.c (create_gcore_bfd): Make 'filename' const.
7435 * gcore.h (create_gcore_bfd): Make 'filename' const.
7436 * record-full.c (record_full_save): Make 'recfilename' const.
7437 * target.c (target_save_record): Make 'filename' const.
7438 * target.h (struct target_ops) <to_save_record>: Make 'filename'
7439 const.
7440 (target_save_record): Likewise.
7441
7442 2013-05-13 Tom Tromey <tromey@redhat.com>
7443
7444 PR gdb/15338:
7445 * dwarf2read.c (dwarf2_record_block_ranges): Ensure that the
7446 ranges section has been read.
7447
7448 2013-05-13 Tom Tromey <tromey@redhat.com>
7449
7450 PR exp/15364:
7451 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
7452 STRUCTOP_PTR>: Return a not_lval value for
7453 EVAL_AVOID_SIDE_EFFECTS.
7454 * opencl-lang.c (evaluate_subexp_opencl): Return a not_lval value
7455 for EVAL_AVOID_SIDE_EFFECTS.
7456
7457 2013-05-13 Joel Brobecker <brobecker@adacore.com>
7458
7459 * rs6000-aix-tdep.c (rs6000_push_dummy_call): Convert
7460 floating point registers to register type before storing
7461 value.
7462 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call):
7463 Likewise.
7464
7465 2013-05-10 Joel Brobecker <brobecker@adacore.com>
7466 Tom Tromey <tromey@redhat.com>
7467
7468 * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
7469 New functions.
7470 * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
7471 Declare.
7472 * darwin-nat.c (darwin_pre_ptrace): Use mark_fd_no_cloexec.
7473 (darwin_ptrace_him): Use unmark_fd_no_cloexec.
7474 * inf-ttrace.c (do_cleanup_pfds): Use unmark_fd_no_cloexec.
7475 (inf_ttrace_prepare): Use mark_fd_no_cloexec.
7476
7477 2013-05-10 Freddie Chopin <freddie_chopin@op.pl>
7478 Tom Tromey <tromey@redhat.com>
7479
7480 PR build/15414:
7481 * configure: Rebuild.
7482 * configure.ac (build_warnings): Do not use -Wformat-nonliteral
7483 with -Wno-format.
7484
7485 2013-05-10 Pedro Alves <palves@redhat.com>
7486
7487 * remote.c (_initialize_remote): Fix spelling of
7488 qXfer:traceframe-info:read packet in packet config command.
7489
7490 2013-05-10 David Taylor <dtaylor@emc.com>
7491
7492 PR remote/15455
7493
7494 * remote.c (remote_trace_set_readonly_regions): Do not overwrite
7495 "QTro" at start of packet.
7496
7497 2013-05-10 Joel Brobecker <brobecker@adacore.com>
7498
7499 * solib-aix.c (solib_aix_relocate_section_addresses):
7500 For the .bss section action, apply the same offset as
7501 the .data section.
7502
7503 2013-05-10 Joel Brobecker <brobecker@adacore.com>
7504
7505 * solib-aix.c (solib_aix_relocate_section_addresses):
7506 Remove FIXME comment.
7507
7508 2013-05-10 Joel Brobecker <brobecker@adacore.com>
7509
7510 PR tdep/15420:
7511 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
7512 New functions, directly copied from sparc-sol-thread.c.
7513 * sparc-sol-thread.c: Delete.
7514 * configure.ac: Remove code handling sparc-solaris-thread.c.
7515 * configure: Regenerate.
7516
7517 2013-05-10 Phil Muldoon <pmuldoon@redhat.com>
7518
7519 * stack.c (backtrace_command_1): Add "no-filters", and Python frame
7520 filter logic.
7521 (backtrace_command): Add "no-filters" option parsing.
7522 (_initialize_stack): Alter help to reflect "no-filters" option.
7523 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-framefilter.o
7524 (SUBDIR_PYTHON_SRCS): Add py-framefilter.c
7525 (py-frame.o): Add target
7526 * data-directory/Makefile.in (PYTHON_DIR): Add Python frame
7527 filter files.
7528 * python/python.h: Add new frame filter constants, and flag enum.
7529 (apply_frame_filter): Add definition.
7530 * python/python.c (apply_frame_filter): New non-Python
7531 enabled function.
7532 * python/py-utils.c (py_xdecref): New function.
7533 (make_cleanup_py_xdecref): Ditto.
7534 * python/py-objfile.c: Declare frame_filters dictionary.
7535 (objfpy_dealloc): Add frame_filters dealloc.
7536 (objfpy_new): Initialize frame_filters attribute.
7537 (objfile_to_objfile_object): Ditto.
7538 (objfpy_get_frame_filters): New function.
7539 (objfpy_set_frame_filters): New function.
7540 * python/py-progspace.c: Declare frame_filters dictionary.
7541 (pspy_dealloc): Add frame_filters dealloc.
7542 (pspy_new): Initialize frame_filters attribute.
7543 (pspacee_to_pspace_object): Ditto.
7544 (pspy_get_frame_filters): New function.
7545 (pspy_set_frame_filters): New function.
7546 * python/py-framefilter.c: New file.
7547 * python/lib/gdb/command/frame_filters.py: New file.
7548 * python/lib/gdb/frames.py: New file.
7549 * python/lib/gdb/__init__.py: Initialize global frame_filters
7550 dictionary
7551 * python/lib/gdb/FrameDecorator.py: New file.
7552 * python/lib/gdb/FrameIterator.py: New file.
7553 * mi/mi-cmds.c (mi_cmds): Add frame filters command.
7554 * mi/mi-cmds.h: Declare.
7555 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Add
7556 --no-frame-filter logic, and Python frame filter logic.
7557 (stack_enable_frame_filters): New function.
7558 (parse_no_frame_option): Ditto.
7559 (mi_cmd_stack_list_frames): Add --no-frame-filter and Python frame
7560 filter logic.
7561 (mi_cmd_stack_list_locals): Ditto.
7562 (mi_cmd_stack_list_args): Ditto.
7563 (mi_cmd_stack_list_variables): Ditto.
7564 * NEWS: Add frame filter note.
7565
7566 2013-05-09 Doug Evans <dje@google.com>
7567
7568 * symfile.c (syms_from_objfile_1): Delete args offsets, num_offsets.
7569 All callers updated.
7570 (syms_from_objfile): Ditto. Make static.
7571 (symbol_file_add_with_addrs): Renamed from
7572 symbol_file_add_with_addrs_or_offsets. Delete args offsets,
7573 num_offsets. All callers updated.
7574 * symfile.h (syms_from_objfile): Delete.
7575
7576 * symfile.c (decrement_reading_symtab): Add assert.
7577 (increment_reading_symtab): Ditto.
7578
7579 2013-05-09 Joel Brobecker <brobecker@adacore.com>
7580
7581 * source.c (forward_search_command): Replace call to getc
7582 by call to fgetc.
7583 (reverse_search_command): Likewise.
7584
7585 2013-05-08 Doug Evans <dje@google.com>
7586
7587 * psymtab.c (expand_symtabs_matching_via_partial): Fix file name
7588 matching test.
7589
7590 2013-05-08 Joel Brobecker <brobecker@adacore.com>
7591
7592 * sol-thread.c (info_cb): Factorize the code a little.
7593
7594 2013-05-08 Joel Brobecker <brobecker@adacore.com>
7595
7596 * sol-thread.c (info_cb): Rework the output of the "maintenance
7597 info sol-threads" command a bit.
7598
7599 2013-05-08 Joel Brobecker <brobecker@adacore.com>
7600
7601 * sol-thread.c (info_cb) [ti.ti_state == TD_THR_SLEEP]:
7602 Replace ti.ti_startfunc by ti.ti_pc.
7603
7604 2013-05-08 Joel Brobecker <brobecker@adacore.com>
7605
7606 * solib-aix.c (solib_aix_free_library_list): New function
7607 for the case where HAVE_LIBEXPAT is not defined.
7608
7609 2013-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
7610
7611 PR breakpoints/15413:
7612 * breakpoint.c (condition_completer): Simplify the code to
7613 disconsider multiple locations of breakpoints when completing the
7614 "condition" command.
7615
7616 2013-05-07 Pierre Muller <muller@sourceware.org>
7617
7618 * common/linux-btrace.c: ARI fix: Include "gdb_wait.h"
7619 instead of <sys/wait.h>.
7620
7621 2013-05-07 Pierre Muller <muller@sourceware.org>
7622
7623 * nios2-tdep.c (nios2_dwarf_reg_to_regnum): ARI fix: remove
7624 trailing new line from warning message.
7625
7626 2013-05-07 Pierre Muller <muller@sourceware.org>
7627
7628 * contrib/ari/gdb_ari.sh (SOLIB_ADD, SOLIB_CREATE_INFERIOR_HOOK)
7629 (PC_SOLIB): Change type from ari_deprecate to ari_regression.
7630
7631 2013-05-07 Joel Brobecker <brobecker@adacore.com>
7632
7633 * rs6000-nat.c (rs6000_core_ldinfo): Remove '\n' at end of
7634 error message (ARI fix).
7635
7636 2013-05-07 Joel Brobecker <brobecker@adacore.com>
7637
7638 * features/library-list-aix.dtd: Replace library-list by
7639 library-list-aix.
7640 * rs6000-nat.c: Replace library-list by library-list-aix
7641 throughout.
7642 * solib-aix.c: Likewise.
7643
7644 2013-05-07 Joel Brobecker <brobecker@adacore.com>
7645
7646 * target.h (enum target_object) [TARGET_OBJECT_LIBRARIES_AIX]:
7647 Renames TARGET_OBJECT_AIX_LIBRARIES.
7648 * rs6000-nat.c: Replace TARGET_OBJECT_AIX_LIBRARIES with
7649 TARGET_OBJECT_LIBRARIES_AIX throughout.
7650 * solib-aix.c: Likwise.
7651
7652 2013-05-07 Yao Qi <yao@codesourcery.com>
7653
7654 * solib-dsbt.c (struct dsbt_info) <enable_break2_done>: Remove.
7655 (get_dsbt_info, enable_break, dsbt_clear_solib): Update.
7656
7657 2013-05-07 Yao Qi <yao@codesourcery.com>
7658
7659 * solib-dsbt.c (enable_break): Declare.
7660 (dsbt_current_sos): Remove call to enable_break2.
7661 (enable_break2): Rename to enable_break. Set solib breakpoint
7662 on '_dl_debug_state'.
7663 (enable_break): Remove.
7664
7665 2013-05-07 Luis Machado <lgustavo@codesourcery.com>
7666
7667 * ppc-linux-nat.c (ppc_linux_new_thread): Clear the new thread's
7668 debug state prior to replicating existing hardware watchpoints or
7669 breakpoints.
7670
7671 2013-05-07 Jan Kratochvil <jan.kratochvil@redhat.com>
7672
7673 * gcore.c (gcore_create_callback): Ignore sections with
7674 separate_debug_objfile_backlink != NULL.
7675
7676 2013-05-06 Sandra Loosemore <sandra@codesourcery.com>
7677 Andrew Jenner <andrew@codesourcery.com>
7678 Chung-Lin Tang <cltang@codesourcery.com>
7679 Julian Brown <julian@codesourcery.com>
7680
7681 Based on the nios2-elf port from Altera Corporation.
7682
7683 * Makefile.in (ALL_TARGET_OBS): Add nios2-tdep.o and
7684 nios2-linux-tdep.o.
7685 (HFILES_NO_SRCDIR): Add nios2-tdep.h.
7686 (ALLDEPFILES): Add nios2-tdep.c and nios2-linux-tdep.c.
7687 * configure.tgt: Add nios2*-*-linux* and nios2*-*-* targets.
7688 * nios2-tdep.h: New.
7689 * nios2-tdep.c: New.
7690 * nios2-linux-tdep.c: New.
7691 * features/Makefile (WHICH): Add nios2-linux.
7692 (nios2-linux-expedite): Set.
7693 * features/nios2-cpu.xml: New.
7694 * features/nios2.xml: New.
7695 * features/nios2-linux.xml: New.
7696 * features/nios2.c: New (autogenerated).
7697 * features/nios2-linux.c: New (autogenerated).
7698 * regformats/nios2-linux.dat: New (autogenerated).
7699 * NEWS (Changes since GDB 7.6): Add new Nios II targets
7700 and commands.
7701
7702 2013-05-06 Doug Evans <dje@google.com>
7703
7704 * symfile.c: Whitespace cleanup.
7705
7706 * solist.h (struct target_so_ops): New member clear_so.
7707 * solib-svr4.c (svr4_clear_so): New function.
7708 (_initialize_svr4_solib): Set svr4_so_ops.clear_so.
7709 * solib.c (clear_so): Renamed from free_so_symbols.
7710 All callers updated. Call target clear_so if it exists.
7711
7712 2013-05-06 Tom Tromey <tromey@redhat.com>
7713
7714 * ada-lang.c (ada_value_primitive_packed_val): Don't
7715 call value_incref.
7716 * value.c (set_value_parent): Incref the new parent and decref
7717 the old parent.
7718 (value_copy, value_primitive_field): Use set_value_parent.
7719
7720 2013-05-06 Tom Tromey <tromey@redhat.com>
7721
7722 * dwarf2loc.c (invalid_synthetic_pointer): Move earlier.
7723 (indirect_pieced_value): Call dwarf2_fetch_constant_bytes
7724 if needed.
7725 * dwarf2loc.h (dwarf2_fetch_constant_bytes): Declare.
7726 * dwarf2read.c (write_constant_as_bytes)
7727 (dwarf2_fetch_constant_bytes): New functions.
7728
7729 2013-05-06 Tom Tromey <tromey@redhat.com>
7730
7731 * dwarf2read.c (dwarf2_const_value_data): Remove unused
7732 parameters.
7733 (dwarf2_const_value_attr): Update.
7734
7735 2013-05-06 Tom Tromey <tromey@redhat.com>
7736
7737 * somread.c (som_symfile_offsets): Add 'const' to addrs.
7738 * machoread.c (macho_symfile_offsets): Add 'const' to addrs.
7739 * xcoffread.c (xcoff_symfile_offsets): Add 'const' to addrs.
7740 Remove declaration.
7741
7742 2013-05-06 Tom Tromey <tromey@redhat.com>
7743
7744 * dwarf2read.c (dwarf2_const_value_attr): Use 'obstack', not
7745 objfile's obstack.
7746
7747 2013-05-06 Doug Evans <dje@google.com>
7748
7749 * dbxread.c (process_one_symbol): Constify section_offsets parameter.
7750 * stabsread.h (process_one_symbol): Update declaration.
7751 * dwarf2read.c (dw2_relocate): Constify new_offsets, delta parameters.
7752 * elfread.c (elf_symfile_relocate_probe): Ditto.
7753 * psymtab.c (relocate_psymtabs): Ditto.
7754 * objfiles.c (objfile_relocate1): Constify new_offsets parameter.
7755 (objfile_relocate): Ditto.
7756 * objfiles.h (objfile_relocate): Update declaration.
7757 * symfile.c (relative_addr_info_to_section_offsets): Constify
7758 addrs parameter.
7759 (default_symfile_offsets): Ditto.
7760 (syms_from_objfile_1): Constify offsets parameter.
7761 (syms_from_objfile): Ditto.
7762 (symbol_file_add_with_addrs_or_offsets): Ditto.
7763 (symfile_map_offsets_to_segments): Constify data parameter.
7764 * symfile.h (struct quick_symbol_functions): Constify new_offsets,
7765 delta parameters of member relocate.
7766 (struct sym_probe_fns): Constify new_offsets,
7767 delta parameters of member sym_relocate_probe.
7768 (struct sym_fns): Constify section_addr_info parameter of member
7769 sym_offsets.
7770 (relative_addr_info_to_section_offsets): Update declaration.
7771 (default_symfile_offsets): Ditto.
7772 (syms_from_objfile): Ditto.
7773 (symfile_map_offsets_to_segments): Ditto.
7774
7775 * symfile.c (syms_from_objfile_1): Use correct section count when
7776 objfile->sf == NULL.
7777
7778 2013-05-06 Mike Frysinger <vapier@gentoo.org>
7779
7780 * common/linux-btrace.c (intel_supports_btrace): Fix indentation.
7781
7782 2013-05-06 Doug Evans <dje@google.com>
7783
7784 * psympriv.h (struct partial_symtab): Augment comment for member
7785 section_offsets.
7786
7787 2013-05-06 Joel Brobecker <brobecker@adacore.com>
7788
7789 Reimplement shared library support on ppc-aix...
7790 * target.h (TARGET_OBJECT_AIX_LIBRARIES): New target_object enum.
7791 * features/library-list-aix.dtd: New file.
7792 * solib-aix.h, solib-aix.c: New file.
7793 * rs6000-aix-tdep.c: #include "solib.h" and "solib-aix.h".
7794 (rs6000_find_toc_address_hook): Delete.
7795 (rs6000_push_dummy_call): Rewrite code setting the TOC value.
7796 (rs6000_aix_init_osabi): Register solib_aix_so_ops.
7797 * rs6000-nat.c: Remove "xcoffsolib.h" include. Include
7798 "xml-utils.h".
7799 (map_vmap, vmap_exec, vmap_ldinfo, add_vmap, objfile_symbol_add)
7800 (vmap_symtab, fixup_breakpoints): Delete.
7801 (rs6000_xfer_shared_libraries): New function.
7802 (rs6000_xfer_partial): Add TARGET_OBJECT_AIX_LIBRARIES handling.
7803 (vmap_secs, bss_data_overlap, vmap_add_symbols): Delete.
7804 (xcoff_relocate_symtab, xcoff_relocate_core): Delete.
7805 (rs6000_ptrace_ldinfo, rs6000_core_ldinfo)
7806 (rs6000_xfer_shared_library): New function.
7807 (find_toc_address): Delete.
7808 (_initialize_rs6000_nat): Do not set rs6000_find_toc_address_hook.
7809 * rs6000-tdep.h (rs6000_find_toc_address_hook): Remove.
7810 * xcoffread.c (record_minimal_symbol): Reloate symbol address
7811 before creating minimal symbol. Adjust function description
7812 accordingly.
7813 (scan_xcoff_symtab): Replace call to
7814 prim_record_minimal_symbol_and_info by call to
7815 record_minimal_symbol.
7816 (xcoff_symfile_offsets): Reimplement mostly as a wrapper
7817 around default_symfile_offsets.
7818 * configure.tgt: Add solib-aix.o to gdb_target_obs for
7819 powerpc-aix targets.
7820 * config/rs6000/nm-rs6000.h: Delete.
7821 * config/powerpc/aix.mh (NAT_FILE): Delete.
7822 (NATDEPFILES): Remove xcoffsolib.o.
7823 * Makefile.in (XMLFILES): Add library-list-aix.dtd.
7824 (ALL_TARGET_OBS): Add solib-aix.o.
7825 (HFILES_NO_SRCDIR): Remove xcoffsolib.h and
7826 config/rs6000/nm-rs6000.h. Add solib-aix.h.
7827 (ALLDEPFILES): Add solib-aix.c. Remove xcoffsolib.c.
7828 * xcoffsolib.h, xcoffsolib.c: Delete.
7829
7830 * solib.c (reload_shared_libraries): Remove reference to
7831 SOLIB_CREATE_INFERIOR_HOOK.
7832 * breakpoint.c (handle_solib_event): Remove reference to SOLIB_ADD.
7833 (disable_breakpoints_in_shlibs): Remove reference to PC_SOLIB.
7834 (momentary_bkpt_re_set): Replace SOLIB_ADD by solib_add in
7835 comment.
7836 * corelow.c (deprecated_core_resize_section_table): Delete.
7837 * exec.c: Remove include of xcoffsolib.h".
7838 (map_vmap, vmap): Delete.
7839 (exec_close_1): Remove references to vmap.
7840 (exec_file_attach): Remove vmap handling code, and reference
7841 to DEPRECATED_IBM6000_TARGET.
7842 (bfdsec_to_vmap): Delete.
7843 (exec_files_info): Remove block of code handling VMAP.
7844 * infcmd.c (post_create_inferior): Remove reference to
7845 SOLIB_CREATE_INFERIOR_HOOK and SOLIB_ADD.
7846 * infrun.c (follow_exec): Remove reference to
7847 SOLIB_CREATE_INFERIOR_HOOK.
7848 * stack.c (print_frame): Remove reference to PC_SOLIB.
7849 * solib-dsbt.c (dsbt_current_sos): Adjust comment.
7850 (dsbt_relocate_main_executable): Likewise.
7851 * solib-frv.c (frv_current_sos): Likewise.
7852
7853 2013-05-06 Joel Brobecker <brobecker@adacore.com>
7854
7855 * sol-thread.c (rw_common): Cast BUF to "gdb_byte *" in calls
7856 to target_write_memory and target_read_memory.
7857
7858 2013-05-06 Joel Brobecker <brobecker@adacore.com>
7859
7860 * darwin-nat.c (darwin_setup_fake_stop_event): New function.
7861 (darwin_attach): Adjust using darwin_setup_fake_stop_event.
7862
7863 2013-05-06 Joel Brobecker <brobecker@adacore.com>
7864
7865 * darwin-nat.c: Replace all "%x" instances in format strings
7866 into "0x%x" throughout.
7867
7868 2013-05-06 Joel Brobecker <brobecker@adacore.com>
7869
7870 * darwin-nat.c (darwin_mourn_inferior): Replace call to
7871 gdb_assert by call to MACH_CHECK_ERROR.
7872 (darwin_attach_pid): Raise an error rather than a failed
7873 assertion when various system calls failed. Report a warning
7874 instead of raising a failed assertion when PREV_NOT is not NULL
7875 after call to mach_port_request_notification.
7876 (darwin_ptrace_me): Raise an error rather than a failed
7877 assertion when read returns nonzero.
7878
7879 2013-05-06 Joel Brobecker <brobecker@adacore.com>
7880
7881 * amd64-darwin-tdep.c: Remove #include "gdb_assert.h".
7882
7883 2013-05-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7884
7885 * cleanups.c (restore_my_cleanups): New gdb_assert for SENTINEL_CLEANUP.
7886
7887 2013-05-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7888
7889 * event-top.c (display_gdb_prompt): Call missing do_cleanups.
7890 * infcmd.c (get_return_value) <!stop_regs>: Do not overwrite CLEANUP.
7891 * symfile.c (symfile_bfd_open): New variable back_to. Do not leave
7892 a stale cleanup. Fix double free of NAME.
7893
7894 2013-05-04 Eli Zaretskii <eliz@gnu.org>
7895
7896 * windows-nat.c (windows_delete_thread): Accept an additional
7897 argument, the thread's exit code, and announce thread death when
7898 print_thread_events is non-zero and we are deleting a thread that
7899 is not the main thread.
7900 (get_windows_debug_event): Pass thread exit code to
7901 windows_delete_thread.
7902
7903 2013-05-03 Kevin Buettner <kevinb@redhat.com>
7904
7905 * v850-tdep.c (elf-bfd.h, elf/v850.h): Include.
7906 (R_149_REGNUM, E_NUM_OF_V850E2_REGS, E_SELID_1_R0_REGNUM)
7907 (E_SELID_1_R31_REGNUM, E_SELID_2_R0_REGNUM, E_SELID_2_R31_REGNUM)
7908 (E_SELID_3_R0_REGNUM, E_SELID_3_R31_REGNUM, E_SELID_4_R0_REGNUM)
7909 (E_SELID_4_R31_REGNUM, E_SELID_5_R0_REGNUM, E_SELID_5_R31_REGNUM)
7910 (E_SELID_6_R0_REGNUM, E_SELID_6_R31_REGNUM, E_SELID_7_R0_REGNUM, E_SELID_7_R31_REGNUM)
7911 (E_VR0_REGNUM, E_VR31_REGNUM, E_NUM_OF_V850E3V5_REGS): Define.
7912 (v850_abi, V850_ABI_GCC, V850_ABI_RH850): New enum and constants.
7913 (gdbarch_tdep): New struct.
7914 (v850e2_register_name): Use E_NUM_OF_V850E2_REGS instead of
7915 E_NUM_REGS.
7916 (v850e3v5_register_name): New function.
7917 (v850_register_type): v850e3v5 vector registers are 64-bits wide.
7918 (v850_use_struct_convention): Add `gdbarch' parameter. Add new
7919 code handling the struct return conventions for the RH850 ABI.
7920 Update all callers.
7921 (v850_eight_byte_align_p): New function.
7922 (v850_push_call_dummy): Push structs by value, not by reference
7923 for the RH850 ABI. Add support for eight byte alignment.
7924 (v850_dbtrap_breakpoint_from_pc): New function.
7925 (v850_gdbarch_init): Add ABI detection code. Register
7926 v850e3v5_register_name for the v850e3v5 architecture. Set the
7927 number of registers for v850e3v5. Register
7928 v850_dbtrap_breakpoint_from_pc as appropriate.
7929 (_initialize_gdbarch_init): Registration bfd_arch_v850_rh850.
7930
7931 2013-05-03 Doug Evans <dje@google.com>
7932
7933 * objfiles.c (objfile_relocate): Use gdb_bfd_count_sections instead
7934 of bfd_count_sections.
7935 * solib-target.c (solib_target_relocate_section_addresses): Ditto.
7936 * symfile.c (default_symfile_offsets): Ditto.
7937 (syms_from_objfile_1): Ditto. Make dummy addrs list an array of
7938 one entry, not bfd_count_sections entries.
7939
7940 2013-05-03 Kevin Buettner <kevinb@redhat.com>
7941
7942 * rl78-tdep.c (rl78_register_reggroup_p): Include SP in the
7943 `save' and `restore' register groups. Don't include SPL
7944 or SPH in these groups.
7945 (rl78_dwarf_reg_to_regnum): Adjust mapping for
7946 RL78_PC_REGNUM. Add mappings for RL78_PSW_REGNUM,
7947 RL78_ES_REGNUM, and RL78_CS_REGNUM.
7948 (rl78_gdbarch_init): Set `dwarf2_addr_size' to 4. Invoke
7949 dwarf2_append_unwinders().
7950
7951 2013-05-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7952
7953 * break-catch-sig.c (signal_catchpoint_breakpoint_hit): Do not
7954 ignore SIGINT and SIGTRAP in case these internal signals are
7955 caught explicitely.
7956
7957 2013-05-01 Joel Brobecker <brobecker@adacore.com>
7958
7959 * darwin-nat.c (darwin_read_write_inferior): Change types
7960 of parameters rdaddr and wraddr to "gdb_byte *". Change type
7961 of copy_count to "mach_msg_type_number_t".
7962 (darwin_read_dyld_info): Change type of parameter
7963 rdaddr to "gdb_byte *".
7964
7965 2013-05-01 Joel Brobecker <brobecker@adacore.com>
7966
7967 * solib-ia64-hpux.c (ia64_hpux_read_dynamic_info): Change cast
7968 of &info->load_map from "char *" to "gdb_byte *".
7969
7970 2013-05-01 Joel Brobecker <brobecker@adacore.com>
7971
7972 * ia64-tdep.c (ia64_access_fpreg): Change cast of val
7973 from "char *" to "gdb_byte *".
7974 (ia64_access_rse_fpreg, ia64_access_mem): Likewise.
7975
7976 2013-04-30 Doug Evans <dje@google.com>
7977
7978 * dwarf2read.c (lookup_dwo_unit): Return NULL if DWO not found.
7979 (init_cutu_and_read_dies): Flag a complaint, not error, for bad
7980 DWO stub. If DWO isn't found, just use stub.
7981 (lookup_dwo_cutu): Don't try DWO if there's a DWP file.
7982
7983 * dwarf2read.c (dw2_find_symbol_file): Initialize filename before
7984 calling init_cutu_and_read_dies.
7985
7986 2013-03-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
7987
7988 * target-descriptions.c (maint_print_c_tdesc_cmd):
7989 Add case to parse structures as register types and
7990 bitfields.
7991
7992 2013-04-30 Walfred Tedeschi <walfred.tedeschi@intel.com>
7993
7994 * MAINTAINERS (Write After Approval): Add myself to the list.
7995
7996 2013-04-30 Joel Brobecker <brobecker@adacore.com>
7997
7998 * sol-thread.c (rw_common): Change type of parameter "buf"
7999 to "gdb_byte *".
8000 (ps_pdwrite, ps_ptwrite): Cast parameter "buf" in call to
8001 rw_common to "gdb_byte *" instead of "char *".
8002
8003 2013-04-30 Joel Brobecker <brobecker@adacore.com>
8004
8005 * sol-thread.c (info_cb) [ti.ti_startfunc != 0]: Change type
8006 of local variable msym to const struct bound_minimal_symbol.
8007 Adjust use accordingly.
8008 [ti.ti_state == TD_THR_SLEEP]: Likewise.
8009
8010 2013-04-30 Samuel Thibault <samuel.thibault@gnu.org>
8011
8012 * i386gnu-nat.c (CREG_OFFSET): New macro.
8013 (creg_offset): New array.
8014 (CREG_ADDR): Use creg_offset instead of reg_offset.
8015
8016 2013-04-30 Joel Brobecker <brobecker@adacore.com>
8017
8018 * mep-tdep.c (mep_write_pc): Delete.
8019 (mep_gdbarch_init): Remove call to set_gdbarch_write_pc.
8020 Add call to set_gdbarch_pc_regnum.
8021
8022 2013-04-30 Joel Brobecker <brobecker@adacore.com>
8023
8024 * common/filestuff.c: Replace #include <dirent.h> by
8025 #include "gdb_dirent.h".
8026
8027 2013-04-30 Joel Brobecker <brobecker@adacore.com>
8028
8029 * common/filestuff.c: Replace #include <sys/stat.h> by
8030 #include "gdb_stat.h".
8031
8032 2013-04-29 Pierre Muller <muller@sourceware.org>
8033
8034 * dwarf2read.c (handle_DW_AT_stmt_list): Avoid ARI warning for
8035 editCase function rule.
8036 (get_DW_AT_signature_type): Likewise.
8037
8038 2013-04-29 Joel Brobecker <brobecker@adacore.com>
8039
8040 * m32r-tdep.c (m32r_write_pc): Delete.
8041 (m32r_gdbarch_init): Remove call to set_gdbarch_write_pc.
8042 Add call to set_gdbarch_pc_regnum.
8043
8044 2013-04-29 Pierre Muller <muller@sourceware.org>
8045
8046 * ./contrib/ari/gdb_ari.sh (editCase rule): Fix spelling error.
8047
8048 2013-04-29 Joel Brobecker <brobecker@adacore.com>
8049
8050 * dwarf2read.c (get_DW_AT_signature_type): Add ARI marker.
8051
8052 2013-04-28 Yao Qi <yao@codesourcery.com>
8053
8054 * solib-dsbt.c (fetch_loadmap): Re-indent.
8055 (displacement_from_map, enable_break2): Likewise.
8056 (dsbt_relocate_section_addresses): Likewise.
8057
8058 2013-04-26 Joel Brobecker <brobecker@adacore.com>
8059
8060 GDB 7.6 released.
8061
8062 2013-04-25 Andreas Kaufmann <Andreas.Kaufmann@synopsys.com>
8063
8064 PR corefiles/14983:
8065 * dwarf2read.c (process_full_comp_unit): Always create a static
8066 block.
8067
8068 2013-04-25 Hui Zhu <hui@codesourcery.com>
8069
8070 * breakpoint.c (build_target_command_list): Change loc->cond_bytecode
8071 to loc->cmd_bytecode.
8072
8073 2013-04-24 Doug Evans <dje@google.com>
8074
8075 * dwarf2read.c (setup_type_unit_groups): Fix comment.
8076
8077 2013-04-22 Keith Seitz <keiths@redhat.com>
8078
8079 * tracepoint.c (trace_save): Call the writer's start method.
8080
8081 2013-04-24 Muhammad Bilal <mbilal@codesourcery.com>
8082
8083 PR gdb/10462
8084 * cli/cli-decode.c (lookup_command): Show an error if there is no space
8085 before argument.
8086
8087 2013-04-23 Tom Tromey <tromey@redhat.com>
8088
8089 * common/filestuff.c: Check USE_WIN32API before including
8090 sys/socket.h.
8091 (HAVE_F_GETFD): New define.
8092 (mark_cloexec): Check HAVE_F_GETFD.
8093 (gdb_open_cloexec): Change 'mode' to unsigned long.
8094 (gdb_socketpair_cloexec): Check HAVE_SOCKETPAIR.
8095 (gdb_pipe_cloexec): Check HAVE_PIPE.
8096 * common/filestuff.h (gdb_open_cloexec): Change 'mode' to unsigned
8097 long.
8098
8099 2013-04-23 Hui Zhu <hui@codesourcery.com>
8100
8101 PR gdb/15293
8102 * breakpoint.c (bpstat_what): Add BPSTAT_WHAT_SINGLE to bp_dprintf.
8103
8104 2013-04-23 Hui Zhu <hui@codesourcery.com>
8105
8106 PR gdb/15165
8107 * breakpoint.c (dprintf_print_recreate): New.
8108 (save_breakpoints): Let it not save dprintf commands.
8109 (initialize_breakpoint_ops): Set dprintf_print_recreate.
8110
8111 2013-04-22 Tom Tromey <tromey@redhat.com>
8112
8113 PR gdb/7912:
8114 * Makefile.in (SFILES): Add filestuff.c
8115 (COMMON_OBS): Add filestuff.o.
8116 (filestuff.o): New target.
8117 * auto-load.c (auto_load_objfile_script_1): Use
8118 gdb_fopen_cloexec.
8119 * auxv.c (procfs_xfer_auxv): Use gdb_open_cloexec.
8120 * cli/cli-cmds.c (shell_escape): Call close_most_fds.
8121 * cli/cli-dump.c (fopen_with_cleanup): Use gdb_fopen_cloexec.
8122 * common/agent.c (gdb_connect_sync_socket): Use
8123 gdb_socket_cloexec.
8124 * common/filestuff.c: New file.
8125 * common/filestuff.h: New file.
8126 * common/linux-osdata.c (linux_common_core_of_thread)
8127 (command_from_pid, commandline_from_pid, print_source_lines)
8128 (linux_xfer_osdata_shm, linux_xfer_osdata_sem)
8129 (linux_xfer_osdata_msg, linux_xfer_osdata_modules): Use
8130 gdb_fopen_cloexec.
8131 * common/linux-procfs.c (linux_proc_get_int)
8132 (linux_proc_pid_has_state): Use gdb_fopen_cloexec.
8133 * config.in, configure: Rebuild.
8134 * configure.ac: Don't check for sys/socket.h. Check for
8135 fdwalk, pipe2.
8136 * corelow.c (core_open): Use gdb_open_cloexec.
8137 * dwarf2read.c (write_psymtabs_to_index): Use gdb_fopen_cloexec.
8138 * fork-child.c (fork_inferior): Call close_most_fds.
8139 * gdb_bfd.c (gdb_bfd_open): Use gdb_open_cloexec.
8140 * inf-child.c (inf_child_fileio_readlink): Use gdb_open_cloexec.
8141 * linux-nat.c (linux_nat_thread_name, linux_proc_pending_signals):
8142 Use gdb_fopen_cloexec.
8143 (linux_proc_xfer_partial, linux_proc_xfer_spu): Use
8144 gdb_open_cloexec.
8145 (linux_async_pipe): Use gdb_pipe_cloexec.
8146 * remote-fileio.c (remote_fileio_func_open): Use
8147 gdb_open_cloexec.
8148 * remote.c (remote_file_put, remote_file_get): Use
8149 gdb_fopen_cloexec.
8150 * ser-pipe.c (pipe_open): Use gdb_socketpair_cloexec,
8151 close_most_fds.
8152 * ser-tcp.c (net_open): Use gdb_socket_cloexec.
8153 * ser-unix.c (hardwire_open): Use gdb_open_cloexec.
8154 * solib.c (solib_find): Use gdb_open_cloexec.
8155 * source.c (openp, find_and_open_source): Use gdb_open_cloexec.
8156 * tracepoint.c (tfile_start): Use gdb_fopen_cloexec.
8157 (tfile_open): Use gdb_open_cloexec.
8158 * tui/tui-io.c (tui_initialize_io): Use gdb_pipe_cloexec.
8159 * ui-file.c (gdb_fopen): Use gdb_fopen_cloexec.
8160 * xml-support.c (xml_fetch_content_from_file): Use
8161 gdb_fopen_cloexec.
8162 * main.c (captured_main): Call notice_open_fds.
8163
8164 2013-04-22 Edjunior Machado <emachado@linux.vnet.ibm.com>
8165
8166 * remote-sim.c (dump_mem): Change the type of 'buf' parameter from
8167 'char *' to 'gdb_byte *'.
8168 (gdbsim_store_register): Change the type of 'tmp' from 'char' to
8169 'gdb_byte'.
8170
8171 2013-04-22 Yao Qi <yao@codesourcery.com>
8172
8173 * infrun.c: Fix typo in comment.
8174
8175 2013-04-22 Andrew Haley <aph@redhat.com>
8176
8177 * arm-tdep.c (BranchDest): Cast result as "unsigned long",
8178 instead of "long".
8179
8180 2013-04-20 Yao Qi <yao@codesourcery.com>
8181
8182 * ctf.c (ctf_fetch_registers): Change the type of 'regs' from
8183 'char *' to 'gdb_byte *'. Cast the return value of
8184 'bt_ctf_get_char_array' to 'gdb_byte *'.
8185
8186 2013-04-19 Pedro Alves <palves@redhat.com>
8187
8188 * configure.ac (build_warnings): Replace -Wno-pointer-sign with
8189 -Wpointer-sign.
8190 * configure: Regenerate.
8191
8192 2013-04-19 Pedro Alves <palves@redhat.com>
8193
8194 * ser-tcp.c (net_read_prim): Cast second argument to recv to
8195 'void *'.
8196
8197 2013-04-19 Pedro Alves <palves@redhat.com>
8198
8199 * monitor.c (monitor_write_memory, monitor_write_memory_bytes):
8200 Change type of 'myaddr' parameter to gdb_byte pointer.
8201 (monitor_write_memory_longlongs): Likewise. Cast 'myaddr' pointer
8202 to 'long long' pointer instead of to 'unsigned long long'.
8203 (monitor_write_memory_block, monitor_read_memory_single)
8204 (monitor_read_memory): Change type of 'myaddr' parameter to
8205 gdb_byte pointer.
8206
8207 2013-04-19 Pedro Alves <palves@redhat.com>
8208
8209 * record.c (validate_history_size): Make parameter 'setting'
8210 unsigned.
8211
8212 2013-04-19 Pedro Alves <palves@redhat.com>
8213
8214 * ctf.c (ctf_write_uploaded_tsv, ctf_write_uploaded_tp): Add casts
8215 to 'gdb_byte *'.
8216
8217 2013-04-19 Pedro Alves <palves@redhat.com>
8218
8219 * cp-valprint.c (cp_print_class_member): Change type of 'fieldno'
8220 local to int.
8221
8222 2013-04-19 Pedro Alves <palves@redhat.com>
8223
8224 * ada-lang.c (print_it_exception): Add cast to gdb_byte *.
8225 * ada-tasks.c (read_fat_string_value): Likewise.
8226
8227 2013-04-19 Pedro Alves <palves@redhat.com>
8228
8229 * dwarf2-frame.c (execute_cfa_program): Make 'bytes_read' local
8230 unsigned. Pass 'tmp' to safe_read_uleb128 instead of the signed
8231 'offset', and adjust.
8232
8233 2013-04-19 Pedro Alves <palves@redhat.com>
8234
8235 * dwarf2read.c (dwarf2_get_dwz_file): Add cast to const char *.
8236 (read_index_from_section): Add cast to 'char *'.
8237
8238 2013-04-19 Pedro Alves <palves@redhat.com>
8239
8240 * xcoffread.c (xcoff_initial_scan): Add cast to 'char *'.
8241
8242 2013-04-19 Pedro Alves <palves@redhat.com>
8243
8244 * coff-pe-read.c (read_pe_exported_syms): Handle strings as char.
8245
8246 2013-04-19 Pedro Alves <palves@redhat.com>
8247
8248 * record-full.c (record_full_get_bookmark): Change local 'ret'
8249 type to char * and add cast to gdb_byte *.
8250 (record_full_goto_bookmark): Handle 'bookmark' argument as a
8251 string.
8252 * reverse.c (goto_bookmark_command): Add casts to gdb_byte *.
8253
8254 2013-04-19 Pedro Alves <palves@redhat.com>
8255
8256 * python/py-inferior.c (infpy_write_memory): Add cast to gdb_byte
8257 * python/py-prettyprint.c (print_string_repr): Change type of
8258 'output' local to char *. Add cast to gdb_byte * in
8259 LA_PRINT_STRING call.
8260 (print_children): Change type of 'output' local to char *.
8261 * python/py-value.c (valpy_string): Add cast to const char * in
8262 PyUnicode_Decode call.
8263
8264 2013-04-19 Pedro Alves <palves@redhat.com>
8265
8266 * remote-mips.c (mips_cksum): Rename 'data' parameter to 'datastr'
8267 and change its type to 'const char *'. Adjust.
8268 (mips_send_packet): Add cast to 'char *', and remove cast to
8269 'unsigned char *'.
8270 (mips_receive_packet): Remove cast to 'unsigned char *'.
8271 (mips_load_srec): Use bfd_byte.
8272 (pmon_makeb64, pmon_zeroset): Make 'chksum' parameter unsigned.
8273 (pmon_checkset): Make 'value' parameter unsigned.
8274
8275 2013-04-19 Pedro Alves <palves@redhat.com>
8276
8277 * common/agent.c (agent_run_command): Add cast to gdb_byte *.
8278
8279 2013-04-19 Pedro Alves <palves@redhat.com>
8280
8281 * remote.c (remote_write_bytes_aux, compare_sections_command)
8282 (remote_read_qxfer)
8283 (remote_search_memory, remote_hostio_pwrite, remote_hostio_pread)
8284 (remote_hostio_readlink, remote_bfd_iovec_pread)
8285 (remote_set_trace_notes): Use gdb_byte when RSP buffer is used as
8286 binary buffer, and char when buffer is used as string.
8287 * tracepoint.c (encode_source_string, tfile_write_uploaded_tp)
8288 (trace_save, tfile_open, traceframe_walk_blocks)
8289 (tfile_fetch_registers): Likewise.
8290
8291 2013-04-19 Pedro Alves <palves@redhat.com>
8292
8293 * ser-base.c (ser_base_write): Change prototype -- take 'void *'
8294 buffer and size_t size. Adjust.
8295 * ser-base.h (ser_base_write): Adjust.
8296 * ser-go32.c (cnts): Change type to size_t.
8297 (dos_write): Change prototype -- take 'void *'
8298 buffer and size_t size. Adjust.
8299 (dos_info): Print elements of 'cnts' as unsigned long.
8300 * serial.c (serial_write): Likewise.
8301 * serial.h (serial_write): Adjust.
8302 (struct serial_ops) <write>: Change prototype -- take 'void *'
8303 buffer and size_t size. Adjust.
8304
8305 2013-04-19 Pedro Alves <palves@redhat.com>
8306
8307 * c-lang.c (evaluate_subexp_c): Cast result of obstack_base to
8308 gdb_byte *.
8309 * linux-tdep.c (linux_make_mappings_corefile_notes): Likewise.
8310
8311 2013-04-19 Pedro Alves <palves@redhat.com>
8312
8313 * alpha-tdep.c (alpha_extract_return_value): Use
8314 regcache_cooked_read_unsigned to read 'v0'.
8315
8316 2013-04-19 Pedro Alves <palves@redhat.com>
8317
8318 * xtensa-tdep.c (execute_l32e, execute_s32e): Change type of
8319 parameters 'at', 'as' and 'offset' to uint32_t.
8320
8321 2013-04-19 Pedro Alves <palves@redhat.com>
8322
8323 * aarch64-tdep.c (aarch64_analyze_prologue): Change type of local
8324 'is64' to signed 'int'.
8325
8326 2013-04-19 Pedro Alves <palves@redhat.com>
8327
8328 * s390-tdep.c (is_rs, is_rsy, is_rx, is_rxy): Change type of 'd2'
8329 parameter to int *.
8330
8331 2013-04-19 Pedro Alves <palves@redhat.com>
8332
8333 * ppc-linux-tdep.c (ppc_skip_trampoline_code): Change local
8334 'insnbuf' buffer type to unsigned int[].
8335
8336 2013-04-19 Pedro Alves <palves@redhat.com>
8337
8338 * mips-tdep.c (mips_read_pc): Change local 'pc' type to LONGEST.
8339
8340 2013-04-19 Pedro Alves <palves@redhat.com>
8341
8342 * mep-tdep.c (mep_get_insn): Change 'insn' parameter type to
8343 unsigned long *.
8344
8345 2013-04-19 Pedro Alves <palves@redhat.com>
8346
8347 * alpha-tdep.c (heuristic_fence_post): Change type to int.
8348 (alpha_heuristic_proc_start): Adjust to check -1 instead of
8349 UINT_MAX.
8350 * mips-tdep.c (heuristic_fence_post): Change type to int.
8351 (heuristic_proc_start): Adjust to check -1 instead of UINT_MAX.
8352
8353 2013-04-19 Pedro Alves <palves@redhat.com>
8354
8355 * cris-tdep.c (usr_cmd_cris_version): Make unsigned.
8356 (struct gdbarch_tdep) <cris_version>: Make unsigned.
8357 (cris_spec_reg_applicable, cris_gdbarch_init): Adjust locals.
8358
8359 2013-04-19 Pedro Alves <palves@redhat.com>
8360
8361 * avr-tdep.c (avr_io_reg_read_command): New local 'bufstr'. Use
8362 it to get a string view of the byte buffer.
8363 * i386-cygwin-tdep.c (core_process_module_section): Change local 'buf'
8364 type to gdb_byte *. Adjust.
8365 * linux-tdep.c (linux_info_proc, linux_find_memory_regions_full):
8366 Change local to char *.
8367 * solib-darwin.c (find_program_interpreter): Change return type to
8368 char *. Adjust.
8369 (darwin_solib_get_all_image_info_addr_at_init): Adjust.
8370 * solib-dsbt.c (enable_break2): Change local 'buf' to char *.
8371 * solib-frv.c (enable_break2): Change local 'buf' to char *.
8372 * solib-spu.c (spu_current_sos): Add gdb_byte * cast.
8373 * solib-svr4.c (find_program_interpreter): Change return type to
8374 char *. Adjust.
8375 (enable_break): Change local 'interp_name' to char *.
8376 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
8377 * spu-tdep.c (spu_pseudo_register_read_spu): Add cast to 'char *'.
8378 (spu_pseudo_register_write_spu): Use char for string buffer.
8379 Adjust.
8380 (info_spu_event_command, info_spu_signal_command): Add casts to
8381 'char *'.
8382
8383 2013-04-19 Pedro Alves <palves@redhat.com>
8384
8385 * aarch64-tdep.c (aarch64_default_breakpoint): Change type to
8386 gdb_byte[].
8387 (aarch64_breakpoint_from_pc): Change return type to gdb_byte *.
8388 * ada-lang.c (ada_value_assign): Use gdb_byte.
8389 * alphanbsd-tdep.c (sigtramp_retcode): Change type to gdb_byte[].
8390 (alphanbsd_sigtramp_offset): Use gdb_byte.
8391 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint)
8392 (arm_linux_arm_be_breakpoint, eabi_linux_arm_le_breakpoint)
8393 (eabi_linux_arm_be_breakpoint, arm_linux_thumb_be_breakpoint)
8394 (arm_linux_thumb_le_breakpoint, arm_linux_thumb2_be_breakpoint)
8395 (arm_linux_thumb2_le_breakpoint): Change type to gdb_byte[].
8396 * arm-tdep.c (arm_stub_unwind_sniffer)
8397 (arm_displaced_init_closure): Use gdb_byte.
8398 (arm_default_arm_le_breakpoint, arm_default_arm_be_breakpoint)
8399 (arm_default_thumb_le_breakpoint)
8400 (arm_default_thumb_be_breakpoint): Change type to gdb_byte[].
8401 * arm-tdep.h (struct gdbarch_tdep) <arm_breakpoint,
8402 thumb_breakpoint, thumb2_breakpoint>: Change type to gdb_byte *.
8403 * arm-wince-tdep.c (arm_wince_le_breakpoint)
8404 (arm_wince_thumb_le_breakpoint): Change type to gdb_byte[].
8405 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint)
8406 (arm_nbsd_arm_be_breakpoint, arm_nbsd_thumb_le_breakpoint)
8407 (arm_nbsd_thumb_be_breakpoint): Change type to gdb_byte[].
8408 * armobsd-tdep.c (arm_obsd_thumb_le_breakpoint)
8409 (arm_obsd_thumb_be_breakpoint): Change type to gdb_byte[].
8410 * cris-tdep.c (push_stack_item, cris_push_dummy_call)
8411 (cris_store_return_value, cris_extract_return_value): Use
8412 gdb_byte.
8413 (constraint): Change type of parameter to char * from signed
8414 char*. Use gdb_byte.
8415 * dwarf2loc.c (read_pieced_value, write_pieced_value): Change type
8416 of local buffer to gdb_byte *.
8417 * dwarf2read.c (read_index_from_section): Use gdb_byte.
8418 (create_dwp_hash_table): Change type of locals to gdb_byte *.
8419 (add_address_entry): Change type of local buffer to gdb_byte[].
8420 * frv-tdep.c (frv_adjust_breakpoint_address, find_func_descr)
8421 (frv_push_dummy_call): Use gdb_byte.
8422 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code)
8423 (hppa_hpux_supply_ss_fpblock, hppa_hpux_supply_ss_wide)
8424 (hppa_hpux_supply_save_state): Use gdb_byte.
8425 * hppa-tdep.c (hppa32_push_dummy_call)
8426 (hppa64_convert_code_addr_to_fptr): Use gdb_byte.
8427 * ia64-tdep.c (extract_bit_field, replace_bit_field)
8428 (slotN_contents, replace_slotN_contents): Change type of parameter
8429 to gdb_byte *.
8430 (fetch_instruction, ia64_pseudo_register_write)
8431 (ia64_register_to_value, ia64_value_to_register)
8432 (ia64_extract_return_value, ia64_store_return_value)
8433 (ia64_push_dummy_call): Use gdb_byte.
8434 * m32c-tdep.c (m32c_return_value): Remove cast.
8435 * m68hc11-tdep.c (m68hc11_pseudo_register_write)
8436 (m68hc11_push_dummy_call, m68hc11_store_return_value): Use
8437 gdb_byte.
8438 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Use gdb_byte.
8439 * mn10300-tdep.c (mn10300_store_return_value)
8440 (mn10300_breakpoint_from_pc, mn10300_push_dummy_call): Use
8441 gdb_byte.
8442 * moxie-tdep.c (moxie_process_readu): Use gdb_byte.
8443 (moxie_process_record): Remove casts.
8444 * ppc-ravenscar-thread.c (supply_register_at_address)
8445 (ppc_ravenscar_generic_store_registers): Use gdb_byte.
8446 * ravenscar-thread.c (get_running_thread_id): Use gdb_byte.
8447 * remote-m32r-sdi.c (m32r_fetch_register): Use gdb_byte.
8448 * remote-mips.c (mips_xfer_memory): Use gdb_byte.
8449 * remote.c (compare_sections_command): Use gdb_byte.
8450 * score-tdep.c (score7_free_memblock): Change type of parameter to
8451 gdb_byte *.
8452 * sh-tdep.c (sh_justify_value_in_reg): Change return type to
8453 gdb_byte *. Use gdb_byte.
8454 (sh_push_dummy_call_fpu): Use gdb_byte.
8455 (sh_extract_return_value_nofpu, sh_extract_return_value_fpu)
8456 (sh_store_return_value_nofpu, sh_store_return_value_fpu)
8457 (sh_register_convert_to_virtual, sh_register_convert_to_raw):
8458 Change parameter type to 'gdb_byte *'. Use gdb_byte.
8459 (sh_pseudo_register_read, sh_pseudo_register_write): Use gdb_byte.
8460 * sh64-tdep.c (sh64_push_dummy_call): Use gdb_byte.
8461 (sh64_store_return_value, sh64_register_convert_to_virtual):
8462 Change parameter type to 'gdb_byte *'. Use gdb_byte.
8463 (sh64_pseudo_register_write): Use gdb_byte.
8464 * solib-darwin.c (darwin_current_sos): Add casts to 'gdb_byte *'.
8465 * solib-irix.c (fetch_lm_info): Likewise. Use gdb_byte for byte
8466 buffer.
8467 (irix_current_sos): Use gdb_byte.
8468 * solib-som.c (som_current_sos): Use gdb_byte.
8469 * sparc-ravenscar-thread.c (supply_register_at_address)
8470 (sparc_ravenscar_generic_store_registers): Use gdb_byte.
8471 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
8472 * spu-tdep.c (spu_get_overlay_table): Use gdb_byte.
8473 * tic6x-tdep.c (tic6x_breakpoint_from_pc): Change return type to
8474 'gdb_byte *'.
8475 * tic6x-tdep.h (struct gdbarch_tdep) <breakpoint>: Change type to
8476 'gdb_byte *'.
8477 * tracepoint.c (tfile_fetch_registers): Use gdb_byte.
8478 * xstormy16-tdep.c (xstormy16_extract_return_value)
8479 (xstormy16_store_return_value): Change parameter type to
8480 'gdb_byte *'. Adjust.
8481 (xstormy16_push_dummy_call): Use gdb_byte.
8482 * xtensa-tdep.c (xtensa_scan_prologue, call0_ret)
8483 (call0_analyze_prologue, execute_code): Use gdb_byte.
8484
8485 2013-04-19 Vladimir Kargov <kargov@gmail.com>
8486 Pedro Alves <palves@redhat.com>
8487
8488 * i387-tdep.c (i387_print_float_info): Use gdb_byte for pointer to
8489 value contents.
8490
8491 2013-04-17 Doug Evans <dje@google.com>
8492
8493 * dwarf2read.c (struct signatured_type): New member type.
8494 (struct attribute): Replace member signatured_type with signature.
8495 (DW_SIGNATURE): Replaces DW_SIGNATURE_TYPE.
8496 (read_call_site_scope): Call follow_die_ref instead of
8497 follow_die_ref_or_sig.
8498 (read_structure_type): Rewrite handling of signatured types.
8499 (read_enumeration_type): Ditto.
8500 (read_attribute_value): Update.
8501 (build_error_marker_type): New function.
8502 (lookup_die_type): Add assert. Rewrite handling of signatured types.
8503 Don't call error for bad types, just build an error marker type.
8504 (dump_die_shallow): Update.
8505 (follow_die_sig_1): Renamed from follow_die_sig.
8506 Don't call error for bad types, instead return NULL.
8507 (follow_die_sig): New function.
8508 (get_signatured_type, get_DW_AT_signature_type): New functions.
8509
8510 2013-04-17 Yufeng Zhang <yufeng.zhang@arm.com>
8511
8512 * aarch64-tdep.c (aarch64_write_pc): Removed.
8513 (aarch64_gdbarch_init): Remove set_gdbarch_write_pc of the above
8514 function.
8515
8516 2013-04-17 Yao Qi <yao@codesourcery.com>
8517
8518 * top.c (print_gdb_configuration): Print configure-time
8519 parameter on using libbabeltrace or not.
8520
8521 2013-04-16 Pedro Alves <palves@redhat.com>
8522
8523 * copyright.py (EXCLUDE_LIST): Add gdb/common/glibc_thread_db.h.
8524
8525 2013-04-16 Pedro Alves <palves@redhat.com>
8526
8527 * common/glibc_thread_db.h: Update from upstream glibc
8528 (git 568035b7874a099087b77f7bba3e36a1173787b0).
8529
8530 2013-04-16 Pedro Alves <palves@redhat.com>
8531
8532 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: Factor out to ...
8533 * common/glibc_thread_db.h: ... this new file ...
8534 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: ... and include it.
8535
8536 2013-04-16 Will Newton <will.newton@gmail.com>
8537 Pedro Alves <palves@redhat.com>
8538
8539 PR build/11881
8540
8541 * common/gdb_thread_db.h (LIBTHREAD_DB_SO)
8542 (LIBTHREAD_DB_SEARCH_PATH): Move outside of #ifdef
8543 HAVE_THREAD_DB_H.
8544
8545 2013-04-16 Pedro Alves <palves@redhat.com>
8546 Eli Zaretskii <eliz@gnu.org>
8547
8548 * NEWS: Mention "set foo unlimited".
8549
8550 2013-04-15 Doug Evans <dje@google.com>
8551
8552 * dwarf2read.c (struct dwo_file): Replace member "cus" with "cu".
8553 (struct create_dwo_cu_data): Renamed from create_dwo_info_table_data.
8554 (create_dwo_cu_reader): Renamed from
8555 create_dwo_debug_info_hash_table_reader.
8556 (create_dwo_cu): Renamed from create_dwo_debug_info_hash_table.
8557 Remove support for multiple CUs in a DWO file.
8558 (open_and_init_dwo_file, lookup_dwo_cutu): Update.
8559
8560 * dwarf2read.c (create_debug_types_hash_table): Use hex_string
8561 instead of phex.
8562 (lookup_dwo_unit, create_dwo_debug_info_hash_table_reader): Ditto.
8563 (create_dwo_in_dwp): Ditto.
8564
8565 2013-04-15 Tom Tromey <tromey@redhat.com>
8566
8567 * NEWS: Move recent entries into "since 7.6" section.
8568
8569 2013-04-15 Tom Tromey <tromey@redhat.com>
8570
8571 PR c++/13588:
8572 * NEWS: Update.
8573 * break-catch-throw.c (struct exception_catchpoint)
8574 <exception_rx, pattern>: New fields.
8575 (fetch_probe_arguments, dtor_exception_catchpoint)
8576 (check_status_exception_catchpoint)
8577 (print_one_detail_exception_catchpoint): New functions.
8578 (handle_gnu_v3_exceptions): Add "except_rx" argument.
8579 Compile regular expression if needed.
8580 (extract_exception_regexp): New function.
8581 (catch_exception_command_1): Use extract_exception_regexp.
8582 (compute_exception): Use fetch_probe_arguments.
8583 (initialize_throw_catchpoint_ops): Set dtor, print_one_detail,
8584 and check_status fields.
8585 * cp-abi.c (cplus_typename_from_type_info): New function.
8586 * cp-abi.h (cplus_typename_from_type_info): Declare.
8587 (struct cp_abi_ops) <get_typename_from_type_info>: New field.
8588 * gdb_regex.h (compile_rx_or_error): Declare.
8589 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info): Update
8590 comment.
8591 (init_gnuv3_ops): Set get_type_from_type_info field.
8592 * probe.c (compile_rx_or_error): Move...
8593 * utils.c (compile_rx_or_error): ... here.
8594
8595 2013-04-15 Tom Tromey <tromey@redhat.com>
8596
8597 PR c++/15176:
8598 * NEWS: Update.
8599 * break-catch-throw.c (compute_exception): New function.
8600 (exception_funcs): New global.
8601 (_initialize_break_catch_throw): Create $_exception.
8602 * cp-abi.c (cplus_type_from_type_info): New function.
8603 * cp-abi.h (cplus_type_from_type_info): Declare.
8604 (struct cp_abi_ops) <get_type_from_type_info>: New field.
8605 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info)
8606 (gnuv3_get_type_from_type_info): New functions.
8607 (init_gnuv3_ops): Set get_type_from_type_info ABI field.
8608
8609 2013-04-15 Tom Tromey <tromey@redhat.com>
8610
8611 * break-catch-throw.c (struct exception_names): New.
8612 (exception_functions): Change type.
8613 (re_set_exception_catchpoint): Look for SDT probes.
8614
8615 2013-04-15 Tom Tromey <tromey@redhat.com>
8616
8617 PR c++/10119:
8618 * break-catch-throw.c (exception_functions): New global.
8619 (gnu_v3_exception_catchpoint_ops): Move earlier.
8620 (struct exception_catchpoint): New.
8621 (classify_exception_breakpoint): Rewrite.
8622 (re_set_exception_catchpoint): New function.
8623 (handle_gnu_v3_exceptions): Return void. Use init_catchpoint.
8624 Allocate a struct exception_catchpoint.
8625 (catch_exception_command_1): Update.
8626 (initialize_throw_catchpoint_ops): Set 're_set' method.
8627
8628 2013-04-15 Tom Tromey <tromey@redhat.com>
8629
8630 * Makefile.in (SFILES): Add break-catch-throw.c
8631 (COMMON_OBS): Add break-catch-throw.o.
8632 * break-catch-throw.c: New file.
8633 * breakpoint.c: Move exception-catching code to new file.
8634 (ep_parse_optional_if_clause): No longer static.
8635 * breakpoint.h (ep_parse_optional_if_clause): Declare.
8636
8637 2013-04-15 Tom Tromey <tromey@redhat.com>
8638
8639 PR c++/9065:
8640 * NEWS: Update.
8641 * breakpoint.c (watchpoint_exp_is_const): Add OP_TYPEID.
8642 * c-exp.y (TYPEID): New token.
8643 (exp): Add new TYPEID productions.
8644 (ident_tokens): Add "typeid".
8645 * cp-abi.c (cplus_typeid, cplus_typeid_type): New functions.
8646 * cp-abi.h (cplus_typeid, cplus_typeid_type): Declare.
8647 (struct cp_abi_ops) <get_typeid, get_typeid_type>: New fields.
8648 * eval.c (evaluate_subexp_standard) <OP_TYPEID>: New case.
8649 * expprint.c (dump_subexp_body_standard) <OP_TYPEID>: New
8650 case.
8651 * gnu-v3-abi.c (std_type_info_gdbarch_data): New global.
8652 (build_std_type_info_type, gnuv3_get_typeid_type)
8653 (gnuv3_get_typeid): New functions.
8654 (init_gnuv3_ops): Initialize std_type_info_gdbarch_data. Set
8655 new fields on ABI object.
8656 * parse.c (operator_length_standard) <OP_TYPEID>: New case.
8657 * std-operator.def (OP_TYPEID): New.
8658
8659 2013-04-15 Tom Tromey <tromey@redhat.com>
8660
8661 * elfread.c (elf_symtab_read): Install versioned symbol under
8662 unversioned name as well.
8663
8664 2013-04-15 Tom Tromey <tromey@redhat.com>
8665
8666 PR c++/11990:
8667 * c-lang.c (cplus_language_defn): Use gdb_demangle.
8668 * c-typeprint.c (c_type_print_base): Use gdb_demangle.
8669 * cp-support.c (mangled_name_to_comp): Use gdb_demangle.
8670 (gdb_demangle): New function.
8671 * cp-support.h (gdb_demangle): Declare.
8672 * dwarf2read.c (dwarf2_physname, fixup_partial_die)
8673 (dwarf2_name): Use gdb_demangle.
8674 * gdbtypes.c (check_stub_method): Use gdb_demangle.
8675 * gnu-v3-abi.c (gnuv3_rtti_type): Strip @plt and version
8676 suffixes from name.
8677 (gnuv3_print_method_ptr): Use gdb_demangle.
8678 * jv-lang.c (java_demangle): Use gdb_demangle.
8679 * jv-typeprint.c (java_type_print_base): Use gdb_demangle.
8680 * language.c (unk_lang_demangle): Use gdb_demangle.
8681 * symtab.c (symbol_find_demangled_name)
8682 (demangle_for_lookup): Use gdb_demangle.
8683
8684 2013-04-15 Tom Tromey <tromey@redhat.com>
8685
8686 PR c++/12824:
8687 * NEWS: Update.
8688 * breakpoint.c (enum exception_event_kind) <EX_EVENT_RETHROW>:
8689 New constant.
8690 (classify_exception_breakpoint): New function.
8691 (print_it_exception_catchpoint, print_one_exception_catchpoint)
8692 (print_mention_exception_catchpoint)
8693 (print_recreate_exception_catchpoint, handle_gnu_v3_exceptions)
8694 (catch_exception_command_1): Handle "rethrow" catchpoint.
8695 (catch_rethrow_command): New function.
8696 (_initialize_breakpoint): Add "catch rethrow" command.
8697
8698 2013-04-15 Pierre Muller <muller@sourceware.org>
8699
8700 * contrib/ari/gdb_ari.sh (write_pc rule): Do not consider
8701 set_gdbarch_write_pc as deprecated anymore.
8702
8703 2013-04-15 Joel Brobecker <brobecker@adacore.com>
8704
8705 * spu-tdep.c (spu_write_pc): Add empty line after local variable
8706 declarations.
8707
8708 2013-04-13 Yao Qi <yao@codesourcery.com>
8709
8710 * ctf.c (_initialize_ctf): Include "completer.h".
8711 Call add_target_with_completer instead of add_target.
8712
8713 2013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
8714
8715 Fix GDB regression related to PR binutils/14813.
8716 * jit.c (mem_bfd_iovec_close): Return 0 for success.
8717 * minidebug.c (lzma_close): Add return value comment.
8718 * remote.c (remote_bfd_iovec_close): Return 0 for success.
8719 * solib-spu.c (spu_bfd_iovec_close): Likewise.
8720 * spu-linux-nat.c (spu_bfd_iovec_close): Likewise.
8721
8722 2013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
8723
8724 * config.in: Regenerate.
8725
8726 2013-04-12 Tom Tromey <tromey@redhat.com>
8727
8728 * dwarf2-frame.c (struct comp_unit) <dwarf_frame_buffer>: Now
8729 const.
8730 * dwarf2read.c (struct dwarf2_section_info) <buffer>: Now const.
8731 (struct die_reader_specs) <buffer>: Likewise.
8732 (die_reader_func_ftype): Make 'info_ptr' const.
8733 (struct line_header) <include_dirs, statement_program_start,
8734 statement_program_end>: Now const.
8735 (struct file_entry) <name>: Likewise.
8736 (struct partial_die_info) <sibling>: Likewise.
8737 (struct dwarf_block) <data>: Likewise.
8738 (dwarf2_read_section): Remove cast.
8739 (dwarf2_get_section_info): Make 'bufp' const.
8740 (read_index_from_section): Constify.
8741 (dw2_get_file_names_reader): Make 'info_ptr' const.
8742 (dw2_get_primary_filename_reader): Likewise.
8743 (read_comp_unit_head): Make 'info_ptr' and return type const.
8744 (read_and_check_comp_unit_head, read_and_check_type_unit_head):
8745 Likewise.
8746 (read_abbrev_offset): Constify.
8747 (dwarf2_create_include_psymtab): Make 'name' const.
8748 (create_debug_types_hash_table): Update.
8749 (read_cutu_die_from_dwo): Make 'result_info_ptr' const.
8750 (init_cutu_and_read_dies, init_cutu_and_read_dies_no_follow):
8751 Constify.
8752 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader)
8753 (load_partial_comp_unit_reader): Make 'info_ptr' const.
8754 (read_comp_units_from_section): Constify.
8755 (peek_abbrev_code, peek_die_abbrev, skip_children, skip_one_die)
8756 (locate_pdi_sibling, load_full_comp_unit_reader): Make 'info_ptr'
8757 const.
8758 (dwarf2_compute_name, setup_type_unit_groups): Constify.
8759 (create_dwo_debug_info_hash_table): Make 'info_ptr' const.
8760 (create_dwp_hash_table, dwarf2_ranges_read)
8761 (dwarf2_record_block_ranges): Constify.
8762 (read_die_and_children, read_die_and_siblings_1)
8763 (read_die_and_siblings): Make 'info_ptr' and 'new_info_ptr'
8764 const.
8765 (read_full_die_1, read_full_die): Make 'info_ptr' const.
8766 (abbrev_table_read_table): Constify.
8767 (load_partial_dies): Make 'info_ptr' const.
8768 (read_partial_die, read_attribute_value, read_attribute): Make
8769 'info_ptr' and return type const.
8770 (read_address, read_initial_length)
8771 (read_checked_initial_length_and_offset, read_offset)
8772 (read_offset_1, read_n_bytes, read_direct_string): Make 'buf'
8773 const.
8774 (read_direct_string): Make 'buf' and return type const.
8775 (read_indirect_string_at_offset, read_indirect_string_from_dwz)
8776 (read_indirect_string): Make return type const.
8777 (read_unsigned_leb128, read_signed_leb128): Make 'buf' const.
8778 (read_addr_index_from_leb128, dwarf2_read_addr_index_reader): Make
8779 'info_ptr' const.
8780 (read_str_index): Make return type const.
8781 (add_include_dir): Make 'include_dir' const.
8782 (add_file_name): Make 'name' const.
8783 (dwarf_decode_line_header): Constify.
8784 (psymtab_include_file_name): Make return type const.
8785 (dwarf_decode_lines_1, dwarf_decode_lines): Constify.
8786 (dwarf2_start_subfile): Make 'filename' const.
8787 (dwarf2_const_value_attr): Make 'bytes' const.
8788 (read_signatured_type_reader): Make 'info_ptr' const.
8789 (decode_locdesc): Constify.
8790 (skip_form_bytes): Make 'bytes', 'buffer_end', and return type
8791 const.
8792 (skip_unknown_opcode): Make 'opcode_definitions', 'mac_ptr',
8793 'mac_end', and return type const.
8794 (dwarf_parse_macro_header): Make 'mac_ptr' and return type const.
8795 (dwarf_decode_macro_bytes): Make 'mac_ptr', 'mac_end', and return
8796 type const.
8797 (per_cu_header_read_in): Constify.
8798 * symfile.h (dwarf2_get_section_info): Update.
8799
8800 2013-04-12 Tom Tromey <tromey@redhat.com>
8801
8802 * symtab.h (struct general_symbol_info) <value.bytes>: Make const.
8803
8804 2013-04-12 Eli Zaretskii <eliz@gnu.org>
8805
8806 * NEWS: Mention "show configuration", --configuration.
8807 * top.c (print_gdb_configuration): New function, displays the
8808 details about GDB configure-time parameters.
8809 (print_gdb_version): Mention "show configuration".
8810 * cli/cli-cmds.c (show_configuration): New function.
8811 (_initialize_cli_cmds): Add the "show configuration" command.
8812 * main.c (captured_main) <print_configuration>: New static var.
8813 <long_options>: Use it.
8814 If --configuration was given, call print_gdb_configuration.
8815
8816 2013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8817 Pedro Alves <palves@redhat.com>
8818
8819 * Makefile.in (HAVE_NATIVE_GCORE_TARGET): New.
8820 (generated_files): Add gcore.
8821 (install-only, uninstall): Add gcore if HAVE_NATIVE_GCORE_TARGET or
8822 HAVE_NATIVE_GCORE_HOST.
8823 (gcore): New.
8824 * NEWS (Changes since GDB 7.6): Mention newly installed gcore.
8825 * config/alpha/alpha-osf3.mh, config/i386/fbsd.mh,
8826 config/i386/fbsd64.mh, config/i386/i386gnu.mh, config/i386/i386sol2.mh,
8827 config/i386/sol2-64.mh, config/mips/irix5.mh, config/mips/irix6.mh,
8828 config/powerpc/fbsd.mh, config/sparc/fbsd.mh, config/sparc/sol2.mh:
8829 Add HAVE_NATIVE_GCORE_HOST.
8830 * configure: Regenerate.
8831 * configure.ac (HAVE_NATIVE_GCORE_TARGET): New, set it, AC_SUBST it.
8832 New AC_SUBST fir GDB_TRANSFORM_NAME and GCORE_TRANSFORM_NAME. New
8833 AC_CONFIG_FILES for gcore.
8834 * configure.tgt: Add gdb_have_gcore to the initial comment. Set
8835 gdb_have_gcore.
8836 * gdb_gcore.sh: Rename to ...
8837 * gcore.in: ... here. Remove gcore.sh comment. Use GDB_TRANSFORM_NAME
8838 and GCORE_TRANSFORM_NAME substitutions.
8839
8840 Fix parsing tabs in ${gdb_target_obs}.
8841 * configure.tgt (gdb_have_gcore): Replace case with for and if.
8842
8843 2013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8844
8845 * remote.c (unpush_and_perror): Add output message final dot.
8846
8847 2013-04-11 Yao Qi <yao@codesourcery.com>
8848
8849 * tracepoint.c (tfile_interp_line): Fit parameters line and
8850 utpp in one line.
8851
8852 2013-04-10 Joel Brobecker <brobecker@adacore.com>
8853
8854 * solib.c (solib_map_sections): Remove code overwriting
8855 SO->SO_NAME with the bfd's filename.
8856
8857 2013-04-10 Pedro Alves <palves@redhat.com>
8858
8859 * cli/cli-decode.c (integer_unlimited_completer): New function.
8860 (add_setshow_integer_cmd, add_setshow_uinteger_cmd)
8861 (add_setshow_zuinteger_unlimited_cmd): Install the "unlimited"
8862 completer.
8863 * cli/cli-setshow.c: Include "cli/cli-utils.h".
8864 (is_unlimited_literal): New function.
8865 (do_set_command): Handle literal "unlimited" arguments.
8866 * frame.c (_initialize_frame) <set backtrace limit>: Document
8867 "unlimited".
8868 * printcmd.c (_initialize_printcmd) <set print
8869 max-symbolic-offset>: Add help text.
8870 * record-full.c (_initialize_record_full) <set record full
8871 insn-number-max>: Likewise.
8872 * record.c (_initialize_record) <set record
8873 instruction-history-size, set record function-call-history-size>:
8874 Add help text.
8875 * ser-tcp.c (_initialize_ser_tcp) <set tcp connect-timeout>: Add
8876 help text.
8877 * tracepoint.c (_initialize_tracepoint) <set trace-buffer-size>:
8878 Likewise.
8879 * source.c (_initialize_source) <set listsize>: Add help text.
8880 * utils.c (initialize_utils) <set height, set width>: Likewise.
8881 <set pagination>: Mention "set height unlimited".
8882 * valprint.c (_initialize_valprint) <set print elements, set print
8883 repeats>: Document "unlimited".
8884
8885 2013-04-10 Pedro Alves <palves@redhat.com>
8886
8887 * cli/cli-cmds.c (quit_command): Call query_if_trace_running
8888 instead of disconnect_tracing.
8889 * infcmd.c (detach_command, disconnect_command): Call
8890 query_if_trace_running. Adjust.
8891 * top.c: Include "tracepoint.h".
8892 (quit_target): Delete. Contents moved ...
8893 (quit_force): ... here. Wrap each stage of teardown in
8894 TRY_CATCH. Call disconnect_tracing before detaching.
8895
8896 2013-04-10 Hui Zhu <hui@codesourcery.com>
8897 Yao Qi <yao@codesourcery.com>
8898
8899 * configure.ac: Check libbabeltrace is installed.
8900 * config.in: Regenerate.
8901 * configure: Regenerate.
8902 * Makefile.in (LIBBABELTRACE): New.
8903 (CLIBS): Add LIBBABELTRACE.
8904 * ctf.c: Include "exec.h".
8905 (CTF_EVENT_ID_STATUS, CTF_EVENT_ID_TSV_DEF): New macros.
8906 (CTF_EVENT_ID_TP_DEF, ctf_save_write_int32): New macros.
8907 (ctf_save_metadata_header): Define new type aliases in
8908 metadata.
8909 (ctf_write_header): Define event type "tsv_def" and "tp_def"
8910 in metadata. Start a new faked packet for trace status.
8911 (ctf_write_status): Write trace status to CTF.
8912 (ctf_write_uploaded_tsv): Write TSV to CTF.
8913 (ctf_write_uploaded_tp): Write tracepoint definition to CTF.
8914 (ctf_write_definition_end): End the faked packet.
8915
8916 (ctx, ctf_iter, trace_dirname): New.
8917 (start_pos): New variable.
8918 (ctf_destroy, ctf_open_dir, ctf_open): New.
8919 (SET_INT32_FIELD, SET_ARRAY_FIELD, SET_STRING_FIELD): New
8920 macros.
8921 (ctf_read_tsv, ctf_read_tp, ctf_close, ctf_files_info): New.
8922 (ctf_fetch_registers, ctf_xfer_partial): New.
8923 (ctf_get_trace_state_variable_value): New.
8924 (ctf_get_tpnum_from_frame_event): New.
8925 (ctf_get_traceframe_address): New.
8926 (ctf_trace_find, ctf_has_stack): New.
8927 (ctf_has_registers, ctf_traceframe_info, init_ctf_ops): New.
8928 (ctf_get_trace_status, ctf_read_status): New.
8929 (_initialize_ctf): New.
8930 * tracepoint.c (get_tracepoint_number): New
8931 (get_uploaded_tsv): Remove 'static'.
8932 (struct traceframe_info, trace_regblock_size): Move it to ...
8933 * tracepoint.h: ... here.
8934 (get_tracepoint_number): Declare it.
8935 (get_uploaded_tsv): Declare it.
8936
8937 * NEWS: Mention new configure option.
8938
8939 2013-04-10 Pedro Alves <palves@redhat.com>
8940 Hui Zhu <hui@codesourcery.com>
8941
8942 * breakpoint.c (dprintf_re_set): New.
8943 (initialize_breakpoint_ops): Set dprintf_breakpoint_ops re_set
8944 to dprintf_re_set.
8945
8946 2013-04-09 Joel Brobecker <brobecker@adacore.com>
8947
8948 * configure.tgt (gdb_target_obs) <powerpc-*-aix* | rs6000-*-*>:
8949 Remove solib-svr4.o from the list.
8950
8951 2013-04-09 Joel Brobecker <brobecker@adacore.com>
8952
8953 * varobj.c (update_dynamic_varobj_children) [!HAVE_PYTHON]:
8954 Use gdb_assert_not_reached instead of invalid boolean expression.
8955
8956 2013-04-09 Pedro Alves <palves@redhat.com>
8957
8958 * remote.c (unpush_and_perror): New function.
8959 (readchar, remote_serial_write): Use it.
8960
8961 2013-04-09 Markus Metzger <markus.t.metzger@intel.com>
8962
8963 * NEWS: Mention new btrace RSP packets.
8964
8965 2013-04-08 Tom Tromey <tromey@redhat.com>
8966
8967 * symmisc.c (dump_msymbols): Cast fprintf_filtered argument to
8968 long.
8969
8970 2013-04-08 Tom Tromey <tromey@redhat.com>
8971
8972 * maint.c (print_bfd_section_info): Print the section index.
8973 * symmisc.c (dump_msymbols): Print the section index.
8974
8975 2013-04-08 Tom Tromey <tromey@redhat.com>
8976
8977 PR symtab/8424:
8978 * blockframe.c (find_pc_partial_function_gnu_ifunc): Check
8979 SYMBOL_SECTION, not SYMBOL_OBJ_SECTION.
8980 * breakpoint.c (resolve_sal_pc): Update.
8981 * elfread.c (elf_gnu_ifunc_record_cache): Update.
8982 * findvar.c (struct minsym_lookup_data) <objfile>: New field.
8983 (minsym_lookup_iterator_cb): Use it.
8984 (default_read_var_value): Update.
8985 * hppa-hpux-tdep.c (hppa64_hpux_in_solib_call_trampoline):
8986 Update.
8987 * infcmd.c (jump_command): Update.
8988 * linespec.c (minsym_found): Update.
8989 * maint.c (maintenance_translate_address): Update.
8990 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Update.
8991 (prim_record_minimal_symbol_full): Don't set SYMBOL_OBJ_SECTION.
8992 * parse.c (write_exp_msymbol): Update.
8993 * printcmd.c (address_info): Update.
8994 * psymtab.c (find_pc_sect_psymbol): Update.
8995 (fixup_psymbol_section): Check SYMBOL_SECTION, not
8996 SYMBOL_OBJ_SECTION.
8997 (add_psymbol_to_bcache): Correctly initialize SYMBOL_SECTION.
8998 Don't initialize SYMBOL_OBJ_SECTION.
8999 * spu-tdep.c (spu_catch_start): Update.
9000 * stabsread.c (define_symbol): Don't set SYMBOL_SECTION.
9001 * symmisc.c (dump_msymbols, print_symbol): Update.
9002 * symtab.c (fixup_section): Don't set 'obj_section'. Change
9003 how fallback section is computed.
9004 (fixup_symbol_section): Update.
9005 (find_pc_sect_symtab, find_function_start_sal, skip_prologue_sal):
9006 Update.
9007 (allocate_symbol, initialize_symbol, allocate_template_symbol):
9008 Initialize SYMBOL_SECTION.
9009 * symtab.h (struct general_symbol_info) <section>: Update comment.
9010 <obj_section>: Remove.
9011 (SYMBOL_OBJ_SECTION): Add 'objfile' argument. Rewrite.
9012 (SYMBOL_OBJFILE): New macro.
9013
9014 2013-04-08 Tom Tromey <tromey@redhat.com>
9015
9016 * coffread.c (record_minimal_symbol): Update.
9017 * dbxread.c (record_minimal_symbol): Update.
9018 * elfread.c (record_minimal_symbol): Update.
9019 * machoread.c (macho_symtab_add_minsym): Update.
9020 * mdebugread.c (record_minimal_symbol, parse_partial_symbols):
9021 Update.
9022 * minsyms.c (prim_record_minimal_symbol): Update.
9023 (prim_record_minimal_symbol_full): Remove 'bfd_section'
9024 argument.
9025 (prim_record_minimal_symbol_and_info): Likewise.
9026 * minsyms.h (prim_record_minimal_symbol_full)
9027 (prim_record_minimal_symbol_and_info): Update.
9028 * symtab.c (allocate_symbol, initialize_symbol)
9029 (allocate_template_symbol): Initialize SYMBOL_SECTION.
9030 * xcoffread.c (record_minimal_symbol, scan_xcoff_symtab):
9031 Update.
9032
9033 2013-04-08 Tom Tromey <tromey@redhat.com>
9034
9035 PR symtab/8423:
9036 * solib-som.c (som_solib_section_offsets): Use BFD section
9037 indices. Set offsets for all sections.
9038 * somread.c (som_symtab_read): Compute BFD section for
9039 symbol. Use prim_record_minimal_symbol_and_info.
9040 (som_symfile_read): Fix comment.
9041 (struct find_section_offset_arg): New.
9042 (find_section_offset, set_section_index): New functions.
9043 (som_symfile_offsets): Use set_section_index to compute
9044 section indices.
9045
9046 2013-04-08 Tom Tromey <tromey@redhat.com>
9047
9048 * coffread.c (cs_to_section): Use gdb_bfd_section_index.
9049 * elfread.c (record_minimal_symbol, elf_symtab_read): Use
9050 gdb_bfd_section_index.
9051 * gdb_bfd.c (gdb_bfd_section_index, gdb_bfd_count_sections):
9052 New functions.
9053 * gdb_bfd.h (gdb_bfd_section_index, gdb_bfd_count_sections):
9054 Declare.
9055 * machoread.c (macho_symtab_add_minsym, macho_symfile_offsets):
9056 Update.
9057 * objfiles.c (add_to_objfile_sections_full): New function.
9058 (add_to_objfile_sections): Use it.
9059 (build_section_table): Rewrite.
9060 (objfile_relocate1): Use gdb_bfd_section_index. Update.
9061 * objfiles.h (obj_section_offset): Use gdb_bfd_section_index.
9062 (struct objfile) <sections>: Update comment.
9063 (ALL_OBJFILE_OSECTIONS): Skip sections where the_bfd_section
9064 is NULL.
9065 (ALL_OBJSECTIONS): Use it.
9066 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
9067 * solib-frv.c (frv_relocate_main_executable): Update.
9068 * solib-target.c (solib_target_relocate_section_addresses):
9069 Use gdb_bfd_section_index.
9070 * symfile.c (build_section_addr_info_from_section_table):
9071 Use gdb_bfd_section_index.
9072 (build_section_addr_info_from_bfd, place_section): Likewise.
9073 * symtab.c (fixup_section): Update.
9074 * xcoffread.c (find_targ_sec): Use gdb_bfd_section_index.
9075
9076 2013-04-08 Tom Tromey <tromey@redhat.com>
9077
9078 * minsyms.h (struct bound_minimal_symbol): New.
9079 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
9080 Remove objfile argument.
9081 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
9082 Return bound_minimal_symbol.
9083 * minsyms.c (lookup_minimal_symbol_by_pc_1)
9084 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
9085 Return bound_minimal_symbol.
9086 (in_gnu_ifunc_stub): Update.
9087 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
9088 Remove 'objfile_p' argument.
9089 (lookup_solib_trampoline_symbol_by_pc): Update.
9090 * ada-tasks.c, amd64-windows-tdep.c, arm-tdep.c,
9091 arm-wince-tdep.c, block.c, blockframe.c, breakpoint.c, btrace.c,
9092 c-valprint.c, dwarf2loc.c, elfread.c, frame.c, frv-tdep.c,
9093 glibc-tdep.c, gnu-v2-abi.c, gnu-v3-abi.c, hppa-hpux-tdep.c,
9094 i386-tdep.c, ia64-tdep.c, infcall.c, infcmd.c, jit.c,
9095 linux-fork.c, m32c-tdep.c, m68hc11-tdep.c, maint.c,
9096 mips-tdep.c, p-valprint.c, parse.c, ppc-linux-tdep.c,
9097 ppc-sysv-tdep.c, printcmd.c, rs6000-tdep.c, sh64-tdep.c,
9098 stack.c, symtab.c, tui/tui-disasm.c: Update.
9099
9100 2013-04-08 Tom Tromey <tromey@redhat.com>
9101
9102 * ada-lang.c (ada_decode_symbol): Check and set 'ada_mangled'.
9103 Use symbol's obstack, not an objfile.
9104 * coffread.c (process_coff_symbol): Update.
9105 * dwarf2read.c (fixup_go_packaging, new_symbol_full): Update.
9106 * jv-lang.c (add_class_symbol): Update.
9107 * mdebugread.c (new_symbol): Update.
9108 * minsyms.c (prim_record_minimal_symbol_full)
9109 (terminate_minimal_symbol_table): Update.
9110 * psymtab.c (add_psymbol_to_bcache): Clear entire symbol. Update.
9111 * stabsread.c (define_symbol, read_enum_type): Update.
9112 * symtab.c (symbol_set_demangled_name, symbol_get_demangled_name):
9113 Handle Ada specially.
9114 (symbol_set_language): Add 'obstack' argument.
9115 (symbol_set_names): Update.
9116 (symbol_natural_name, symbol_demangled_name): Always use
9117 ada_decode_symbol.
9118 * symtab.h (struct general_symbol_info)
9119 <language_specific::obstack>: New field.
9120 <ada_mangled>: New field.
9121 (SYMBOL_SET_LANGUAGE): Add 'obstack' argument.
9122 (symbol_set_language): Update.
9123
9124 2013-04-08 Tom Tromey <tromey@redhat.com>
9125
9126 * symtab.c (symbol_init_cplus_specific, symbol_set_demangled_name):
9127 Take an obstack, not an objfile.
9128 (symbol_set_names): Update.
9129 * symtab.h (symbol_set_demangled_name): Update.
9130
9131 2013-04-08 Tom Tromey <tromey@redhat.com>
9132
9133 * coffread.c (process_coff_symbol, coff_read_enum_type): Call
9134 allocate_symbol.
9135 * dwarf2read.c (fixup_go_packaging): Call allocate_symbol.
9136 (read_func_scope): Call allocate_template_symbol.
9137 (new_symbol_full): Call allocate_symbol.
9138 * jit.c (finalize_symtab): Call allocate_symbol.
9139 * jv-lang.c (add_class_symbol): Call allocate_symbol.
9140 * mdebugread.c (parse_symbol, new_block): Call allocate_symbol.
9141 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
9142 (common_block_end): Call allocate_symbol.
9143 * symtab.c (allocate_symbol, initialize_symbol)
9144 (allocate_template_symbol): New functions.
9145 * symtab.c (allocate_symbol, initialize_symbol)
9146 (allocate_template_symbol): Declare.
9147 * xcoffread.c (process_xcoff_symbol): Call initialize_symbol.
9148
9149 2013-04-08 Pedro Alves <palves@redhat.com>
9150 Keith Seitz <keiths@redhat.com>
9151
9152 * breakpoint.c (create_breakpoint): Rename
9153 "parse_condition_and_thread" parameter to "parse_arg". Update
9154 describing comment. If !PARSE_ARG, then error out if ARG is not
9155 the empty string after extracting the location.
9156 * breakpoint.h (create_breakpoint): Rename
9157 "parse_condition_and_thread" parameter to "parse_arg".
9158
9159 2013-04-08 Aleksandar Ristovski <aristovski@qnx.com
9160
9161 * solib-svr4.c (lm_addr_check): Add const qualifier to 'so' arg.
9162
9163 2013-04-07 Yao Qi <yao@codesourcery.com>
9164
9165 * remote.c (remote_trace_find): Change type of parameters 'addr1'
9166 and 'addr2' to CORE_ADDR.
9167 * target.c (update_current_target): Update.
9168 * target.h (struct target_ops) <to_trace_find>: Change parameter
9169 type to CORE_ADDR.
9170 * tracepoint.c (tfind_1): Change type of parameters 'addr1' and
9171 'addr2' to CORE_ADDR.
9172 (tfile_trace_find): Likewise.
9173 (tfile_get_traceframe_address): Change return type to CORE_ADDR.
9174 Change local variable 'addr' to type CORE_ADDR.
9175 * tracepoint.h (tfind_1): Update declaration.
9176
9177 2013-04-06 Eli Zaretskii <eliz@gnu.org>
9178
9179 * windows-nat.c (windows_get_absolute_argv0): Move from here...
9180 * mingw-hdep.c (windows_get_absolute_argv0): ...to here.
9181 Include main.h.
9182
9183 * windows-nat.h (windows_get_absolute_argv0): Move prototype from
9184 here...
9185 * main.h (windows_get_absolute_argv0): ...to here.
9186
9187 2013-04-05 Doug Evans <dje@google.com>
9188
9189 * dwarf2read.c (struct dwarf2_per_objfile): Tweak comment.
9190 (read_cutu_die_from_dwo): Add comments.
9191 (read_structure_type): Update comment.
9192 (read_enumeration_type, read_namespace_type): Update comment.
9193 (read_die_type, get_die_type_at_offset, get_die_type): Update comment.
9194
9195 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
9196
9197 Convert man pages to texinfo, new gdbinit.5 texinfo page.
9198 * Makefile.in (gdb.z): Remove.
9199 (install-only): Remove $(man1dir) and gdb.1 installation.
9200 * gdb.1: Remove.
9201
9202 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
9203
9204 Fix compatibility with Linux kernel 3.8.3.
9205 * linux-tdep.c (linux_find_memory_regions_full): Move variable number
9206 to more inner block. Remove parsing of NUMBER from outer block.
9207 Parse NUMBER only if KEYWORD has been identified.
9208
9209 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
9210
9211 Fix variable name shadowing.
9212 * linux-tdep.c (linux_find_memory_regions_full): Rename outer variable
9213 filename to mapsfilename and update its uses.
9214
9215 2013-04-05 Eli Zaretskii <eliz@gnu.org>
9216
9217 * Makefile.in (TAGS): Avoid warning from etags when $GDB_NM_FILE is
9218 empty. See http://sourceware.org/ml/gdb-patches/2012-08/msg00504.html
9219 and http://sourceware.org/ml/gdb-patches/2013-04/msg00055.html for
9220 details of the problem.
9221
9222 2013-04-04 Pedro Alves <palves@redhat.com>
9223 Hui Zhu <hui@codesourcery.com>
9224
9225 * breakpoint.c (validate_commands_for_breakpoint): If validating a
9226 tracepoint, reset its STEP_COUNT and call validate_actionline.
9227
9228 2013-04-03 Doug Evans <dje@google.com>
9229
9230 * dwarf2read.c (read_die_and_siblings_1): Renamed from
9231 read_die_and_siblings.
9232 (read_die_and_siblings): New function.
9233 (read_cutu_die_from_dwo): Dump die if requested.
9234 (read_die_and_children): Call read_full_die_1 and
9235 read_die_and_siblings_1.
9236 (read_full_die): Dump die if requested.
9237
9238 * dwarf2read.c (read_comp_units_from_section): Add debugging printf.
9239
9240 * dwarf2read.c (struct dwo_file): New member comp_dir.
9241 Rename member name to dwo_name. All uses updated.
9242 (hash_dwo_file): Include comp_dir in computation.
9243 (eq_dwo_file): Ditto.
9244 (lookup_dwo_file_slot): New arg comp_dir. All callers updated.
9245 (create_dwo_in_dwp, lookup_dwo_in_dwp, open_and_init_dwo_file): Ditto.
9246
9247 * psymtab.c (read_psymtabs_with_fullname): Don't call
9248 psymtab_to_fullname if the basenames are different.
9249
9250 2013-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
9251
9252 * NEWS (Changes in GDB 7.6): Update the data-disassemble for "fullname".
9253 New entry about "fullname" presence.
9254
9255 2013-04-03 Pedro Alves <palves@redhat.com>
9256
9257 * NEWS: Mention x86_64/Cygwin as new native configuration.
9258
9259 2013-04-02 Doug Evans <dje@google.com>
9260
9261 * dwarf2read.c (read_structure_type): Fix typo in comment.
9262
9263 2013-04-02 Pedro Alves <palves@redhat.com>
9264
9265 * NEWS: Mention "set/show debug aarch64", "set/show debug
9266 coff-pe-read" and "set/show debug mach-o".
9267
9268 2013-04-02 Pedro Alves <palves@redhat.com>
9269
9270 * NEWS: Mention "set/show remote trace-buffer-size-packet".
9271
9272 2013-04-02 Eli Zaretskii <eliz@gnu.org>
9273
9274 * Makefile.in (HFILES_NO_SRCDIR): Remove call-cmds.h.
9275 gdb_string.h is now in common/.
9276
9277 2013-04-02 Pedro Alves <palves@redhat.com>
9278
9279 * NEWS: Move "set debug notification" and "set trace-buffer-size"
9280 under "New options".
9281
9282 2013-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
9283
9284 Revert this patch:
9285 PR gdb/15275
9286 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
9287
9288 2013-04-02 Pedro Alves <palves@redhat.com>
9289
9290 PR gdb/15275
9291
9292 * remote.c (send_interrupt_sequence): Use remote_serial_write.
9293 (remote_serial_write): New function.
9294 (putpkt_binary, getpkt_or_notif_sane_1): Use remote_serial_write.
9295
9296 2013-04-01 Jiong Wang <jiwang@tilera.com>
9297
9298 * NEWS: Mention TILE-Gx in "New native configurations" and
9299 "New targets" sections.
9300
9301 2013-04-01 Doug Evans <dje@google.com>
9302
9303 * dwarf2read.c (lookup_signatured_type_at_offset): Delete.
9304 (process_enumeration_scope): Simplify.
9305
9306 * dwarf2read.c (struct dwarf2_per_cu_data): Move member
9307 type_unit_group ...
9308 (struct signatured_type): ... to here.
9309 (sig_type_ptr): New typedef.
9310 (type_unit_group): Delete member 't.first_cu'. Move member 'tus'
9311 out of union 't'. All uses updated.
9312 (dw2_get_file_names_reader): Assert not called for a type unit.
9313 (dw2_get_file_names): Assert not called for a type unit or type
9314 unit group.
9315 (build_type_psymtabs_reader): Assert called for a type unit.
9316 (build_type_psymtab_dependencies): Assert called for a type unit group.
9317
9318 * dwarf2read.c (free_dwo_file): Add comment.
9319 (dwarf2_per_objfile_free): Unref dwp bfd.
9320
9321 2013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
9322
9323 * coff-pe-read.c (add_pe_exported_sym): Remove unused 'dll_name_len'.
9324 (add_pe_forwarded_sym): Remove unused 'section', 'dll_name_len'.
9325 (read_pe_exported_syms): Remove unused 'exportix'.
9326 (pe_text_section_offset): Remove unused 'opthdr_ofs', 'num_entries',
9327 'export_rva', 'export_size', 'expptr', 'exp_funcbase', 'expdata',
9328 'erva', 'name_rvas', 'ordinals', 'nexp', 'ordbase', 'dll_name'.
9329
9330 2013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
9331
9332 * breakpoint.c (parse_cond_to_aexpr): Remove unused 'old_chain'.
9333 (print_it_watchpoint): Remove unused 'bl'.
9334 (say_where): Remove unused 'uiout'.
9335 (bpstat_remove_breakpoint_callback): Remove unused 'uiout'.
9336 (bkpt_breakpoint_hit): Remove unused 'b'.
9337 (internal_bkpt_print_it): Remove unused 'uiout'.
9338 * buildsym.c (augment_type_symtab): Remove unused 'i'.
9339
9340 2013-03-31 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
9341
9342 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_float): New function.
9343 (ppc64_sysv_abi_push_dummy_call): Handle complex arguments.
9344
9345 2013-03-29 Doug Evans <dje@google.com>
9346
9347 * dwarf2read.c (open_dwo_file): Renamed from open_dwop_file.
9348 Delete arg is_dwp. All callers updated.
9349 (open_dwp_file): New function.
9350 (open_and_init_dwp_file): Call it.
9351 (get_dwp_file): New function.
9352 (lookup_dwo_cutu): Call it.
9353
9354 * dwarf2read.c (open_and_init_dwp_file): Remove incorrect, and
9355 unnecessary, cleanup.
9356
9357 * dwarf2read.c (lookup_dwo_cutu): Improve complaint text.
9358
9359 * dwarf2read.c (read_cutu_die_from_dwo): New function.
9360 (lookup_dwo_unit): New function.
9361 (init_cutu_and_read_dies): Move DWO handling to new functions.
9362
9363 * dwarf2read.c (struct signatured_type): Tweak comment.
9364 (struct dwo_unit): Tweak comment.
9365 (create_debug_types_hash_table): Tweak comment. Reformat long line.
9366 (create_dwo_debug_info_hash_table): Tweak comment.
9367 (dwarf2_per_cu_offset_and_type): Tweak comment.
9368
9369 * dwarf2read.c (lookup_signatured_type): Remove complaint about
9370 missing .debug_types section.
9371
9372 2013-03-29 Yao Qi <yao@codesourcery.com>
9373
9374 * corelow.c: Include "completer.h".
9375 (_initialize_corelow): Call add_target_with_completer with
9376 argument 'filename_completer'.
9377 * tracepoint.c: Likewise.
9378 * exec.c (_initialize_exec): Likewise.
9379 * target.c (add_target): Rename to ...
9380 (add_target_with_completer): ... this. Call set_cmd_completer
9381 if parameter completer is not NULL.
9382 (add_target): New.
9383 * target.h: Include "command.h".
9384 (add_target_with_completer): Declare it.
9385
9386 2013-03-28 Joel Brobecker <brobecker@adacore.com>
9387
9388 * coffread.c (is_import_fixup_symbol): New function.
9389 (record_minimal_symbol): Use is_import_fixup_symbol to
9390 detect import fixup symbols, and discard them.
9391
9392 2013-03-28 Doug Evans <dje@google.com>
9393
9394 * dwarf2read.c (create_debug_types_hash_table): Don't allocate the
9395 types hash table until we know we need it.
9396
9397 * dwarf2read.c (create_addrmap_from_index): Complain about bad CU
9398 index numbers.
9399
9400 * dwarf2read.c (dw2_get_file_names): Delete arg "objfile".
9401 All callers updated.
9402 (dw2_print_stats): Print #read CUs too.
9403 (dump_die_shallow): Print signatured types better.
9404
9405 * dwarf2read.c (struct dwarf2_per_cu_data): Rename member
9406 info_or_types_section to section. All uses updated.
9407 (struct dwo_unit): Ditto.
9408
9409 2013-03-28 Pedro Alves <palves@redhat.com>
9410
9411 * NEWS (New options): New section.
9412 (New options): Mention set/show remote trace-status-packet.
9413 * remote.c (PACKET_qTStatus): New enumeration value.
9414 (remote_get_trace_status): Skip sending qTStatus if the packet is
9415 disabled. Use packet_ok.
9416 (_initialize_remote): Register a configuration command for
9417 qTStatus packet.
9418
9419 2013-03-28 Doug Evans <dje@google.com>
9420
9421 * symfile.c (find_separate_debug_file): Add comment.
9422 (terminate_after_last_dir_separator): Tweak comment.
9423
9424 * dwarf2read.c (create_partial_symtab): Add forward decl.
9425 (create_partial_symtab): Move to be closer to other psymtab functions.
9426 (process_psymtab_comp_unit_reader, process_psymtab_comp_unit): Ditto.
9427
9428 * dwarf2read.c (dwarf2_physname): Move declaration to better spot.
9429 (compute_symtab_includes): Remove unnecessary forward declaration.
9430 (die_needs_namespace): Add comment marking group of functions for
9431 dwarf2 name computation.
9432
9433 * typeprint.c (_initialize_typeprint): Improve type help text.
9434
9435 * python/python.c (finish_python_initialization): Provide suggestion
9436 for how to tell gdb to find its python files.
9437
9438 2013-03-28 Pedro Alves <palves@redhat.com>
9439
9440 PR gdb/15294
9441
9442 * source.c (_initialize_source): Change back "set listsize" to an
9443 integer command.
9444
9445 2013-03-27 Gareth McMullin <gareth@blacksphere.co.nz>
9446
9447 PR gdb/15275
9448 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
9449
9450 2013-03-27 Pedro Alves <palves@redhat.com>
9451
9452 * top.c (history_size): Rename to ...
9453 (history_size_setshow_var): ... this. Add comment.
9454 (show_commands): Use readline's 'history_length' instead of
9455 computing the history length by calling history_get in a loop.
9456 (set_history_size_command): Error out for sizes over INT_MAX.
9457 Restore previous history size on invalid size.
9458 (init_history): If HISTSIZE is negative, leave the history size as
9459 zero. Add comments.
9460 (init_main): Adjust.
9461
9462 2013-03-27 Pedro Alves <palves@redhat.com>
9463
9464 * coff-pe-read.c (_initialize_coff_pe_read): Rename "set debug
9465 coff_pe_read" command to "set debug coff-pe-read".
9466
9467 2013-03-27 Markus Metzger <markus.t.metzger@intel.com>
9468
9469 * record.c (command_size_to_target_size): Fix size comparison.
9470 Change parameter type from pointer to integer to integer.
9471 Update all users.
9472
9473 2013-03-27 Pierre Muller <muller@sourceware.org>
9474
9475 * windows-nat.c (handle_output_debug_string): Avoid typecast
9476 from integer of different size warning.
9477
9478 2013-03-26 Joel Brobecker <brobecker@adacore.com>
9479
9480 * windows-nat.c (handle_output_debug_string): Add empty line
9481 after local block variable definition.
9482
9483 2013-03-26 Pedro Alves <palves@redhat.com>
9484
9485 * ser-tcp.c (wait_for_connect): Make 'polls' parameter unsigned.
9486 (net_open): Make 'polls' local unsigned.
9487
9488 2013-03-26 Pedro Alves <palves@redhat.com>
9489
9490 * remote.c (_initialize_remote): Make "set remoteaddresssize"
9491 a zuinteger command instead of uinteger.
9492
9493 2013-03-26 Pedro Alves <palves@redhat.com>
9494
9495 * record-full.c (record_full_insn_num): Make it unsigned.
9496 (record_full_check_insn_num, record_full_message)
9497 (record_full_registers_change, record_full_xfer_partial): Remove
9498 record_full_insn_max_num check (it's always != 0).
9499 (record_full_info, record_full_restore): Use %u as format string.
9500 (): Use %u as format string.
9501 (set_record_full_insn_max_num): Remove record_full_insn_max_num
9502 check (it's always != 0).
9503
9504 2013-03-26 Pedro Alves <palves@redhat.com>
9505
9506 * dcache.c (_initialize_dcache): Make the "set dcache line-size"
9507 and "set dcache size" commands zuinteger instead of uinteger.
9508
9509 2013-03-26 Pedro Alves <palves@redhat.com>
9510
9511 * cris-tdep.c (_initialize_cris_tdep): Make the "set cris-version"
9512 command zuinteger instead of uinteger.
9513
9514 2013-03-26 Pedro Alves <palves@redhat.com>
9515
9516 * coff-pe-read.c (_initialize_coff_pe_read): Make the command
9517 zuinteger instead of uinteger.
9518
9519 2013-03-26 Pedro Alves <palves@redhat.com>
9520
9521 * record.c (record_insn_history_size_setshow_var)
9522 (record_call_history_size_setshow_var): New globals.
9523 (command_size_to_target_size): New function.
9524 (cmd_record_insn_history, cmd_record_call_history): Use
9525 command_size_to_target_size instead of cast.
9526 (validate_history_size, set_record_insn_history_size)
9527 (set_record_call_history_size): New functions.
9528 (_initialize_record): Install set_record_insn_history_size and
9529 set_record_call_history_size as "set" hooks of "set record
9530 instruction-history-size" and "set record
9531 function-call-history-size".
9532
9533 2013-03-26 Pedro Alves <palves@redhat.com>
9534
9535 * top.c (gdb_rl_operate_and_get_next): Replace max_input_history
9536 use with history_max_entries use. Remove FIXME note.
9537
9538 2013-03-26 Markus Metzger <markus.t.metzger@intel.com>
9539
9540 * record-btrace.c (record_btrace_close): Call
9541 record_btrace_auto_disable.
9542
9543 2013-03-25 Joel Brobecker <brobecker@adacore.com>
9544
9545 * rs6000-nat.c (fixup_breakpoints): Delete declaration.
9546
9547 2013-03-25 Doug Evans <dje@google.com>
9548
9549 * contrib/cc-with-tweaks.sh: Check exit code of dwp.
9550
9551 2013-03-25 Tom Tromey <tromey@redhat.com>
9552
9553 PR symtab/11462:
9554 * c-exp.y (exp): Add new productions for destructors after '.' and
9555 '->'.
9556 (write_destructor_name): New function.
9557
9558 2013-03-25 Tom Tromey <tromey@redhat.com>
9559
9560 PR c++/9197:
9561 * opencl-lang.c (evaluate_subexp_opencl) <STRUCTOP_STRUCT>: Use
9562 value_struct_elt, not lookup_struct_elt_type.
9563 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
9564 STRUCTOP_PTR>: Use value_struct_elt, not lookup_struct_elt_type.
9565 * expression.h (EVAL_AVOID_SIDE_EFFECTS): Update comment.
9566
9567 2013-03-25 Yao Qi <yao@codesourcery.com>
9568
9569 * ctf.c [USE_WIN32API]: Undef 'mkdir' and use 'mkdir'
9570 instead of '_mkdir'.
9571
9572 2013-03-23 Eli Zaretskii <eliz@gnu.org>
9573
9574 * windows-nat.c (windows_get_absolute_argv0): New function.
9575 * windows-nat.h: Add its prototype.
9576
9577 * main.c (get_init_files): Use filename_ncmp instead of strncmp.
9578 Use IS_DIR_SEPARATOR instead of looking for a character inside
9579 SLASH_STRING. Include filenames.h.
9580 (captured_main) [__MINGW32__]: Make argv[0] absolute, so that
9581 relocate_gdb_directory works when passed gdb_program_name.
9582 Include windows-nat.h.
9583
9584 2013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
9585
9586 * exceptions.h (enum errors): New entry TARGET_CLOSE_ERROR.
9587 * remote.c (trace_error): Remove the special handling of '2'.
9588 (readchar) <SERIAL_EOF>
9589 (readchar) <SERIAL_ERROR>
9590 (getpkt_or_notif_sane_1): Use TARGET_CLOSE_ERROR for them.
9591 (remote_get_trace_status): Call throw_exception if EX is
9592 TARGET_CLOSE_ERROR.
9593 * utils.c (perror_with_name): Rename to ...
9594 (throw_perror_with_name): ... here. New parameter errcode, describe it
9595 in the function comment.
9596 (perror_with_name): New function wrapper.
9597 * utils.h (enum errors): New stub declaration.
9598 (throw_perror_with_name): New declaration.
9599
9600 2013-03-22 Pedro Alves <palves@redhat.com>
9601 Yao Qi <yao@codesourcery.com>
9602 Mark Kettenis <kettenis@gnu.org>
9603
9604 * cli/cli-setshow.c (do_set_command) <var_uinteger>:
9605 Don't let the user set the value to UINT_MAX directly.
9606 <var_integer>: Don't let the user set the value to INT_MAX
9607 directly.
9608
9609 2013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
9610
9611 * remote.c (remote_unpush_target): New function.
9612 (remote_open_1): Remove two pop_target calls, update one comment, add
9613 comment to target_preopen call. Replace pop_target call by
9614 remote_unpush_target call.
9615 (interrupt_query, readchar, getpkt_or_notif_sane_1): Replace
9616 pop_target calls by remote_unpush_target calls.
9617
9618 2013-03-22 Pedro Alves <palves@redhat.com>
9619
9620 * linux-nat.c (linux_child_follow_fork): Don't call
9621 linux_enable_event_reporting.
9622 (linux_handle_extended_wait): Don't call
9623 linux_enable_event_reporting.
9624
9625 2013-03-22 Pedro Alves <palves@redhat.com>
9626
9627 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Define INSN macro,
9628 use it to rewrite the trampoline buffers with type gdb_byte[], and
9629 undefine the macro. Remove char* cast.
9630
9631 2013-03-21 Doug Evans <dje@google.com>
9632
9633 New commands "mt set per-command {space,time,symtab} {on,off}".
9634 * NEWS: Add entry.
9635 * event-top.c: #include "maint.h".
9636 * main.c: #include "maint.h".
9637 * maint.c: #include <sys/time.h>, <time.h>, block.h, top.h,
9638 timeval-utils.h, maint.h, cli/cli-setshow.h.
9639 (per_command_time, per_command_space): New static globals.
9640 (per_command_symtab): New static global.
9641 (per_command_setlist, per_command_showlist): New static globals.
9642 (struct cmd_stats): Move here from utils.c.
9643 (set_per_command_time): Renamed from set_display_time in utils.c
9644 and moved here. All callers updated.
9645 (set_per_command_space): Renamed from set_display_space in utils.c
9646 and moved here. All callers updated.
9647 (count_symtabs_and_blocks): New function.
9648 (report_command_stats): Moved here from utils.c. Add support for
9649 printing symtab stats. Only print data if enabled before command
9650 executed.
9651 (make_command_stats_cleanup): Ditto.
9652 (sert_per_command_cmd, show_per_command_cmd): New functions.
9653 (_initialize_maint_cmds): Add new commands
9654 mt set per-command {space,time,symtab} {on,off}.
9655 * maint.h: New file.
9656 * top.c: #include "maint.h".
9657 * utils.c (reset_prompt_for_continue_wait_time): New function.
9658 (get_prompt_for_continue_wait_time): New function.
9659 * utils.h (reset_prompt_for_continue_wait_time): Declare
9660 (get_prompt_for_continue_wait_time): Declare.
9661 (make_command_stats_cleanup): Moved to maint.h.
9662 (set_display_time, set_display_space): Moved to maint.h and renamed
9663 to set_per_command_time, set_per_command_space.
9664 * cli/cli-setshow.c (parse_cli_boolean_value): Renamed from
9665 parse_binary_operation and made non-static. Don't call error,
9666 just return an error marker. All callers updated.
9667 * cli/cli-setshow.h (parse_cli_boolean_value): Declare.
9668
9669 2013-03-21 Tom Tromey <tromey@redhat.com>
9670
9671 * symfile.c (alloc_section_addr_info): Update header. Don't set
9672 'num_sections' field.
9673 (build_section_addr_info_from_section_table): Set 'num_sections'.
9674 (build_section_addr_info_from_bfd): Likewise.
9675 (build_section_addr_info_from_objfile): Remove dead loop
9676 condition.
9677 (free_section_addr_info): Unconditionally call xfree.
9678 (relative_addr_info_to_section_offsets, addrs_section_sort)
9679 (addr_info_make_relative, syms_from_objfile_1): Remove dead loop
9680 condition.
9681 (syms_from_objfile_1): Remove dead 'if' condition. Check
9682 'num_sections'.
9683 (add_symbol_file_command): Set 'num_sections'.
9684 * symfile-mem.c (symbol_file_add_from_memory): Set
9685 'num_sections'.
9686 * somread.c (som_symfile_offsets): Remove dead loop condition.
9687 * machoread.c (macho_symfile_offsets): Remove dead 'if'.
9688 * jit.c (jit_bfd_try_read_symtab): Set 'num_sections'.
9689
9690 2013-03-21 Tom Tromey <tromey@redhat.com>
9691
9692 * tracepoint.h (decode_agent_options): Add 'trace_string'
9693 argument.
9694 * tracepoint.c (decode_agent_options): Add 'trace_string'
9695 argument.
9696 (validate_actionline): Update.
9697 (collect_symbol): Add 'trace_string' argument.
9698 (struct add_local_symbols_data) <trace_string>: New field.
9699 (do_collect_symbol): Update.
9700 (add_local_symbols): Add 'trace_string' argument.
9701 (encode_actions_1): Update.
9702 (trace_dump_actions): Update.
9703 * dwarf2loc.c (access_memory): Update.
9704 * ax.h (struct agent_expr) <tracing, trace_string>: New fields.
9705 * ax-general.c (new_agent_expr): Update.
9706 * ax-gdb.h (gen_trace_for_expr, gen_trace_for_var)
9707 (gen_trace_for_return_address): Add argument.
9708 (trace_kludge, trace_string_kludge): Remove.
9709 * ax-gdb.c (trace_kludge, trace_string_kludge): Remove.
9710 (gen_traced_pop, gen_fetch, gen_bitfield_ref, gen_expr): Update.
9711 (gen_trace_for_var): Add 'trace_string' argument.
9712 (gen_trace_for_expr, gen_trace_for_return_address): Likewise.
9713 (gen_printf, agent_eval_command_one): Update.
9714
9715 2013-03-21 Tom Tromey <tromey@redhat.com>
9716
9717 PR exp/15109:
9718 * c-exp.y (yylex): Rewrite to push all tokens onto the FIFO.
9719 Handle FILENAME token.
9720
9721 2013-03-21 Tom Tromey <tromey@redhat.com>
9722
9723 * c-exp.y (YYPRINT): Define.
9724 (c_print_token): New function.
9725
9726 2013-03-21 Tom Tromey <tromey@redhat.com>
9727
9728 * c-exp.y (%union) <sym, ivar, ivec>: Remove.
9729
9730 2013-03-21 Yao Qi <yao@codesourcery.com>
9731
9732 * ctf.c: Include "gdb_stat.h".
9733 [USE_WIN32API]: New macro 'mkdir'.
9734 (ctf_start): Use permission bits macros if they are defined.
9735
9736 2013-03-20 Keith Seitz <keiths@redhat.com>
9737
9738 * breakpoint.h (struct breakpoint): Add comment to
9739 extra_string indicating that this member is mallod'd.
9740 * breakpoint.c (base_breakpoint_dtor): Free extra_string.
9741
9742 2013-03-20 Pedro Alves <palves@redhat.com>
9743
9744 PR gdb/15289
9745
9746 * cli/cli-setshow.c (do_set_command)
9747 <var_uinteger, var_zuinteger>: Use LONGEST for variable holding
9748 the result of parsing the command argument. Throw error if the
9749 value is greater than UINT_MAX. Print the invalid value with
9750 plongest.
9751 <var_integer, var_zinteger>: Use LONGEST for variable holding the
9752 result of parsing the command argument. Throw error if the value
9753 is greater than INT_MAX, not greater or equal. Also throw error
9754 if the value is less than INT_MIN. Print the invalid value with
9755 plongest.
9756 <var_zuinteger_unlimited>: Throw error if the value is greater
9757 than INT_MAX, not greater or equal.
9758 (do_show_command) <var_integer, var_zinteger,
9759 var_zuinteger_unlimited>: Use %d for printing int, not %u.
9760
9761 2013-03-20 Tom Tromey <tromey@redhat.com>
9762
9763 * ax-gdb.c (gen_var_ref): Unconditionally call via computed ops,
9764 if possible.
9765 * dwarf2read.c (read_func_scope): Remove old FIXME.
9766 * eval.c (evaluate_subexp_standard): Check SYMBOL_COMPUTED_OPS,
9767 not LOC_COMPUTED.
9768 * findvar.c (symbol_read_needs_frame, default_read_var_value):
9769 Unconditionally call via computed ops, if possible.
9770 * printcmd.c (address_info): Unconditionally call via computed ops,
9771 if possible.
9772 * stack.c (read_frame_arg): Unconditionally call via computed ops,
9773 if possible.
9774 * symtab.c (register_symbol_computed_impl): Sanity check 'ops'.
9775 * tracepoint.c (scope_info): Unconditionally call via computed ops,
9776 if possible.
9777
9778 2013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9779 Tom Tromey <tromey@redhat.com>
9780
9781 PR symtab/8421:
9782 * coffread.c (coff_register_index): New global.
9783 (process_coff_symbol, coff_read_enum_type): Set
9784 SYMBOL_ACLASS_INDEX.
9785 (_initialize_coffread): Initialize new global.
9786 * dwarf2loc.c (locexpr_find_frame_base_location)
9787 (dwarf2_block_frame_base_locexpr_funcs)
9788 (loclist_find_frame_base_location)
9789 (dwarf2_block_frame_base_loclist_funcs): New.
9790 (dwarf_expr_frame_base_1): Call SYMBOL_BLOCK_OPS, remove internal_error.
9791 (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Add location_has_loclist.
9792 * dwarf2loc.h (dwarf2_block_frame_base_locexpr_funcs)
9793 (dwarf2_block_frame_base_loclist_funcs): New.
9794 * dwarf2read.c (dwarf2_locexpr_index, dwarf2_loclist_index)
9795 (dwarf2_locexpr_block_index, dwarf2_loclist_block_index): New
9796 globals.
9797 (read_func_scope): Update.
9798 (fixup_go_packaging, mark_common_block_symbol_computed)
9799 (var_decode_location, new_symbol_full, dwarf2_const_value):
9800 Set SYMBOL_ACLASS_INDEX.
9801 (dwarf2_symbol_mark_computed): Likewise. Add 'is_block' argument.
9802 (_initialize_dwarf2_read): Initialize new globals.
9803 * jit.c (finalize_symtab): Set SYMBOL_ACLASS_INDEX.
9804 * jv-lang.c (add_class_symbol): Set SYMBOL_ACLASS_INDEX.
9805 * mdebugread.c (mdebug_register_index, mdebug_regparm_index): New
9806 globals.
9807 (parse_symbol, psymtab_to_symtab_1): Set SYMBOL_ACLASS_INDEX.
9808 (_initialize_mdebugread): Initialize new globals.
9809 * psympriv.h (struct partial_symbol) <aclass>: Update comment.
9810 * stabsread.c (patch_block_stabs): Set SYMBOL_ACLASS_INDEX.
9811 (stab_register_index, stab_regparm_index): New globals.
9812 (define_symbol, read_enum_type, common_block_end): Set
9813 SYMBOL_ACLASS_INDEX.
9814 (_initialize_stabsread): Initialize new globals.
9815 * symtab.c (next_aclass_value, symbol_impl, symbol_impls): New
9816 globals.
9817 (MAX_SYMBOL_IMPLS): New define.
9818 (register_symbol_computed_impl, register_symbol_block_impl)
9819 (register_symbol_register_impl)
9820 (initialize_ordinary_address_classes): New functions.
9821 (_initialize_symtab): Call initialize_ordinary_address_classes.
9822 * symtab.h (enum address_class) <LOC_FINAL_VALUE>: New constant.
9823 (struct symbol_impl): New.
9824 (SYMBOL_ACLASS_BITS): New define.
9825 (struct symbol) <aclass, ops>: Remove fields.
9826 <aclass_index>: New field.
9827 (symbol_impls): Declare.
9828 (SYMBOL_CLASS, SYMBOL_COMPUTED_OPS, SYMBOL_REGISTER_OPS): Redefine.
9829 (SYMBOL_IMPL, SYMBOL_ACLASS_INDEX): New defines.
9830 (register_symbol_computed_impl, register_symbol_block_impl)
9831 (register_symbol_register_impl): Declare.
9832 (struct symbol_computed_ops): Add location_has_loclist.
9833 (struct symbol_block_ops): New.
9834 (SYMBOL_BLOCK_OPS): New.
9835 * xcoffread.c (process_xcoff_symbol): Set SYMBOL_ACLASS_INDEX.
9836
9837 2013-03-20 Tom Tromey <tromey@redhat.com>
9838
9839 * psymtab.c (find_pc_sect_psymbol, fixup_psymbol_section)
9840 (print_partial_symbols, recursively_search_psymtabs): Use
9841 PSYMBOL_CLASS.
9842
9843 2013-03-20 Pierre Muller <muller@sourceware.org>
9844
9845 * contrib/ari/gdb_ari.sh (OP eol rule): Also check
9846 addtion, subtraction, multiplication and division binary operator.
9847
9848 2013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9849
9850 Code cleanup.
9851 * bfd-target.c (target_bfd_xclose): Remove parameter quitting.
9852 * bsd-kvm.c (bsd_kvm_close): Likewise.
9853 * bsd-uthread.c (bsd_uthread_close): Likewise.
9854 * corelow.c (core_close): Likewise.
9855 (core_close_cleanup): Remove parameter quitting from a caller.
9856 * event-top.c (async_disconnect): Likewise.
9857 * exec.c (exec_close_1): Remove parameter quitting.
9858 * go32-nat.c (go32_close): Likewise.
9859 * linux-nat.c (linux_nat_close): Remove parameter quitting. Remove
9860 parameter quitting from a caller.
9861 * mips-linux-nat.c (super_close): Remove parameter quitting from the
9862 variable.
9863 (mips_linux_close): Remove parameter quitting. Remove parameter
9864 quitting from a caller.
9865 * monitor.c (monitor_close): Remove parameter quitting.
9866 * monitor.h (monitor_close): Likewise.
9867 * record-btrace.c (record_btrace_close): Likewise.
9868 * record-full.c (record_full_close): Likewise.
9869 * remote-m32r-sdi.c (m32r_close): Remove parameter quitting and remove
9870 it also from fprintf_unfiltered.
9871 * remote-mips.c (mips_close): Remove parameter quitting.
9872 (mips_detach): Remove parameter quitting from a caller.
9873 * remote-sim.c (gdbsim_close): Remove parameter quitting.
9874 (gdbsim_close): Remove duplicate function comment. Remove parameter
9875 quitting and remove it also from printf_filtered.
9876 * remote.c (remote_close): Remove parameter quitting.
9877 * solib-svr4.c (enable_break): Remove parameter quitting from a caller.
9878 * target.c (update_current_target): Remove parameter int from to_close
9879 de_fault.
9880 (push_target, unpush_target, pop_target): Remove parameter quitting from
9881 a caller.
9882 (pop_all_targets_above, pop_all_targets): Remove parameter quitting.
9883 Remove parameter quitting from a caller.
9884 (target_preopen): Remove parameter quitting from a caller.
9885 (target_close): Remove parameter quitting. Remove parameter quitting
9886 from a caller two times. Remove parameter quitting also from
9887 fprintf_unfiltered.
9888 * target.h (struct target_ops): Remove parameter quitting and as int
9889 from fields to_xclose and to_close.
9890 (extern struct target_ops current_target):
9891 (target_close, pop_all_targets): Remove parameter quitting. Update the
9892 comment.
9893 (pop_all_targets_above): Remove parameter quitting.
9894 * top.c (quit_target): Remove parameter quitting from a caller.
9895 * tracepoint.c (tfile_close): Remove parameter quitting.
9896 * windows-nat.c (windows_close): Remove parameter quitting.
9897
9898 2013-03-20 Corinna Vinschen <vinschen@redhat.com>
9899
9900 * windows-nat.c (handle_output_debug_string): Replace call
9901 to string_to_core_addr with call to strtoull.
9902
9903 2013-03-20 Yao Qi <yao@codesourcery.com>
9904
9905 * ctf.c (ctf_save_metadata_header): Define macro HOST_ENDIANNESS
9906 and write it to CTF metadata.
9907
9908 2013-03-19 Corinna Vinschen <vinschen@redhat.com>
9909
9910 * windows-nat.c (handle_output_debug_string): Change type of n to
9911 SIZE_T to avoid crash on 64 bit systems.
9912
9913 2013-03-17 Eli Zaretskii <eliz@gnu.org>
9914
9915 * python/python-internal.h (HAVE_SNPRINTF)
9916 [_WIN32 && HAVE_DECL_SNPRINTF]: Define, to avoid compiler warnings
9917 about redefinition of snprintf by pyerrors.h.
9918
9919 2013-03-15 Steve Ellcey <sellcey@mips.com>
9920
9921 * remote-sim.c (sim_command_completer): Make char arguments const.
9922
9923 2013-03-15 Tom Tromey <tromey@redhat.com>
9924
9925 PR c++/15116:
9926 * gdbtypes.c (types_equal): Handle TYPE_CODE_FUNC.
9927
9928 2013-03-14 Tom Tromey <tromey@redhat.com>
9929
9930 * gdb_bfd.c (struct gdb_bfd_data) <crc_computed, crc>:
9931 New fields.
9932 (get_file_crc): Move from symfile.c.
9933 (gdb_bfd_crc): New function.
9934 * gdb_bfd.h (gdb_bfd_crc): Declare.
9935 * objfiles.h (struct objfile) <crc32, crc32_p>: Remove.
9936 * symfile.c (get_file_crc): Move to gdb_bfd.c.
9937 (separate_debug_file_exists): Use gdb_bfd_crc.
9938
9939 2013-03-14 Tom Tromey <tromey@redhat.com>
9940
9941 * symfile.c (get_debug_link_info): Remove.
9942 (find_separate_debug_file_by_debuglink): Use
9943 bfd_get_debug_link_info.
9944
9945 2013-03-14 Tom Tromey <tromey@redhat.com>
9946
9947 * symtab.c (error_in_psymtab_expansion): New function.
9948 (lookup_symbol_aux_quick)
9949 (basic_lookup_transparent_type_quick): Remove "last resort"
9950 code. Use error_in_psymtab_expansion.
9951
9952 2013-03-14 Doug Evans <dje@google.com>
9953 Jan Kratochvil <jan.kratochvil@redhat.com>
9954
9955 * dwarf2read.c (dw2_map_symtabs_matching_filename): Put continue after
9956 any successful compare_filenames_for_search or FILENAME_CMP.
9957 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
9958 * symtab.c (iterate_over_some_symtabs): Likewise.
9959
9960 2013-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9961
9962 * source.c (print_source_lines_base): Make a local copy of
9963 symtab_to_fullname.
9964
9965 2013-03-14 Hui Zhu <hui_zhu@mentor.com>
9966 Jan Kratochvil <jan.kratochvil@redhat.com>
9967
9968 * source.c (print_source_lines_base): Suppress "file" for TUI.
9969
9970 2013-03-14 Keith Seitz <keiths@redhat.com>
9971 Alan Matsuoka <alanm@redhat.com>
9972
9973 PR c++/15203
9974 PR c++/15210
9975 * cp-namespace.c (cp_lookup_nested_symbol): Handle TYPE_CODE_FUNC and
9976 TYPE_CODE_METHOD.
9977 * elfread.c (elf_symtab_read): Handle BSF_GNU_UNIQUE for certain
9978 symbols.
9979
9980 2013-03-14 Yao Qi <yao@codesourcery.com>
9981
9982 * tracepoint.c (tfile_write_status): Write 'stop_desc' of trace
9983 status to tfile if trace is stopped by command 'tstop'.
9984
9985 2013-03-14 Yao Qi <yao@codesourcery.com>
9986
9987 * tracepoint.c (tfile_write_status): Write trace notes and user
9988 name into tfile if they are not NULL.
9989
9990 2013-03-14 Hui Zhu <hui@codesourcery.com>
9991 Yao Qi <yao@codesourcery.com>
9992
9993 * Makefile.in (REMOTE_OBS): Add ctf.o.
9994 (SFILES): Add ctf.c.
9995 (HFILES_NO_SRCDIR): Add ctf.h.
9996 * ctf.c, ctf.h: New files.
9997 * tracepoint.c: Include 'ctf.h'.
9998 (collect_pseudocommand): Remove static.
9999 (trace_save_command): Parse option "-ctf".
10000 Produce different trace file writers per option.
10001 Adjust output message.
10002 (trace_save_tfile, trace_save_ctf): New.
10003 * tracepoint.h (trace_save_tfile, trace_save_ctf): Declare.
10004 * mi/mi-main.c: Include 'ctf.h'.
10005 (mi_cmd_trace_save): Handle option '-ctf'. Call either
10006 trace_save_tfile or trace_save_ctf.
10007 * NEWS: Mention these changes.
10008
10009 2013-03-14 Yao Qi <yao@codesourcery.com>
10010
10011 * tracepoint.c (trace_file_writer_xfree): New.
10012 (struct tfile_writer_data): New.
10013 (tfile_dtor, tfile_can_target_save, tfile_start): New.
10014 (tfile_write_header, tfile_write_regblock_type): New.
10015 (tfile_write_status, tfile_write_uploaded_tsv): New.
10016 (tfile_write_uploaded_tp, tfile_write_definition_end): New.
10017 (tfile_write_raw_data, (tfile_end): New.
10018 (tfile_write_ops): New global variable.
10019 (TRACE_WRITE_R_BLOCK): New macro.
10020 (TRACE_WRITE_M_BLOCK_HEADER): New macro.
10021 (TRACE_WRITE_M_BLOCK_MEMORY): New macro.
10022 (TRACE_WRITE_V_BLOCK): New macro.
10023 (trace_save): Add extra one parameter WRITER. Make it static.
10024 Use WRITER to writer trace.
10025 (tfile_trace_file_writer_new): New.
10026 (trace_save_command): Caller update.
10027 (trace_save_tfile): Write trace data in TFILE format.
10028 * tracepoint.h (struct trace_frame_write_ops): New.
10029 (struct trace_file_write_ops): New.
10030 (struct trace_file_writer): New.
10031 (trace_save): Remove its declaration.
10032 (trace_save_tfile): Declare it.
10033 * mi/mi-main.c (mi_cmd_trace_save): Call trace_save_tfile
10034 instead of trace_save.
10035
10036 2013-03-13 Pedro Alves <palves@redhat.com>
10037
10038 * hppa-hpux-nat.c (hppa_hpux_save_state_offset): Make static.
10039
10040 2013-03-13 Pedro Alves <palves@redhat.com>
10041
10042 * dbxread.c (read_ofile_symtab, process_one_symbol): Remove
10043 commented out code.
10044 * demangle.c (current_demangling_style_string): Make it const.
10045 (set_demangling_command): Assert the demangling style is known.
10046 Remove all handling of unknown styles. Set
10047 'current_demangling_style_string' to an element of the
10048 demangling_style_names array.
10049 (set_demangling_style): Delete.
10050 (_initialize_demangler): Set current_demangling_style_string to the
10051 element of the demangling_style_names array that corresponds to
10052 the default demangling style. Remove FIXME note. Don't call
10053 set_demangling_style.
10054 * gdb-demangle.h (set_demangling_style): Remove declaration.
10055
10056 2013-03-13 Pedro Alves <palves@redhat.com>
10057
10058 * ada-lang.c (struct add_partial_datum) <text, text0, word>: Make
10059 fields const.
10060 (ada_make_symbol_completion_list): Make "text0" parameter const.
10061 * ax-gdb.c (agent_eval_command_one): Make "exp" parameter const.
10062 * breakpoint.c (condition_completer): Make "text" and "word"
10063 parameters const. Adjust.
10064 (check_tracepoint_command): Adjust to validate_actionline
10065 prototype change.
10066 (catch_syscall_completer): Make "text" and "word" parameters
10067 const.
10068 * cli/cli-cmds.c (show_user): Make "comname" local const.
10069 (valid_command_p): Make "command" parameter const.
10070 (alias_command): Make "alias_prefix" and "command_prefix" locals
10071 const.
10072 * cli/cli-decode.c (add_cmd): Make "name" parameter const.
10073 (add_alias_cmd): Make "name" and "oldname" parameters const.
10074 Adjust. No longer make copy of OLDNAME.
10075 (add_prefix_cmd, add_abbrev_prefix_cmd, add_set_or_show_cmd)
10076 (add_setshow_cmd_full, add_setshow_enum_cmd)
10077 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
10078 (add_setshow_filename_cmd, add_setshow_string_cmd)
10079 (add_setshow_string_noescape_cmd)
10080 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
10081 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
10082 (add_setshow_zuinteger_unlimited_cmd, add_setshow_zuinteger_cmd)
10083 (delete_cmd, add_info, add_info_alias, add_com, add_com_alias):
10084 Make "name" parameter const.
10085 (help_cmd): Rename "command" parameter to "arg". New const local
10086 "command".
10087 (find_cmd): Make "command" parameter const.
10088 (lookup_cmd_1): Make "text" parameter pointer to const. Adjust to
10089 deprecated_cmd_warning prototype change.
10090 (undef_cmd_error): Make "cmdtype" parameter const.
10091 (lookup_cmd): Make "line" parameter const.
10092 (deprecated_cmd_warning): Change type of "text" parameter to
10093 pointer to const char, from pointer to pointer to char. Adjust.
10094 (lookup_cmd_composition): Make "text" parameter const.
10095 (complete_on_cmdlist, complete_on_enum): Make "text" and "word"
10096 parameters const.
10097 * cli/cli-decode.h (struct cmd_list_element) <name>: Make field
10098 const.
10099 * cli/cli-script.c (validate_comname): Make "tem" local const.
10100 (define_command): New const local "tem_c". Use it in calls to
10101 lookup_cmd.
10102 (document_command): Make "tem" and "comfull" locals const.
10103 (show_user_1): Make "prefix" and "name" parameters const.
10104 * cli-script.h (show_user_1): Make "prefix" and "name" parameters
10105 const.
10106 * command.h (add_cmd, add_alias_cmd, add_prefix_cmd)
10107 (add_abbrev_prefix_cmd, completer_ftype, lookup_cmd, lookup_cmd_1)
10108 (deprecated_cmd_warning, lookup_cmd_composition, add_com)
10109 (add_com_alias, add_info, add_info_alias, complete_on_cmdlist)
10110 (complete_on_enum, add_setshow_enum_cmd)
10111 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
10112 (add_setshow_filename_cmd, add_setshow_string_cmd)
10113 (add_setshow_string_noescape_cmd)
10114 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
10115 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
10116 (add_setshow_zuinteger_cmd, add_setshow_zuinteger_unlimited_cmd):
10117 Change prototypes, constifying strings.
10118 * completer.c (noop_completer, filename_completer): Make "text"
10119 and "prefix" parameters const.
10120 (location_completer, expression_completer)
10121 (complete_line_internal): Make "text" and "prefix" parameters
10122 const and adjust.
10123 (command_completer, signal_completer): Make "text" and "prefix"
10124 parameters const.
10125 * completer.h (noop_completer, filename_completer)
10126 (expression_completer, location_completer, command_completer)
10127 (signal_completer): Change prototypes.
10128 * corefile.c (complete_set_gnutarget): Make "text" and "word"
10129 parameters const.
10130 * cp-abi.c (cp_abi_completer): Likewise.
10131 * expression.h (parse_expression_for_completion): Change
10132 prototype.
10133 * f-lang.c (f_make_symbol_completion_list): Make "text" and "word"
10134 parameters const.
10135 * infcmd.c (_initialize_infcmd): Make "cmd_name" local const.
10136 * infrun.c (handle_completer): Make "text" and "word" parameters
10137 const.
10138 * interps.c (interpreter_completer): Make "text" and "word"
10139 parameters const.
10140 * language.h (struct language_defn)
10141 <la_make_symbol_completion_list>: Make "text" and "word"
10142 parameters const.
10143 * parse.c (parse_exp_1): Move const hack to parse_exp_in_context.
10144 (parse_exp_in_context): Rename to ...
10145 (parse_exp_in_context_1): ... this.
10146 (parse_exp_in_context): Reimplement, with const hack from
10147 parse_exp_1.
10148 (parse_expression_for_completion): Make "string" parameter const.
10149 * printcmd.c (decode_format): Make "string_ptr" parameter pointer
10150 to pointer to const char. Adjust.
10151 (print_command_1): Make "exp" parameter const.
10152 (output_command): Rename to ...
10153 (output_command_const): ... this. Make "exp" parameter const.
10154 (output_command): Reimplement.
10155 (x_command): Adjust.
10156 (display_command): Rename "exp" parameter to "arg". New "exp"
10157 local, const version of "arg".
10158 * python/py-auto-load.c (gdbpy_initialize_auto_load): Make
10159 "cmd_name" local const.
10160 * python/py-cmd.c (cmdpy_destroyer): Cast const away in xfree
10161 call.
10162 (cmdpy_completer): Make "text" and "word" parameters const.
10163 (gdbpy_parse_command_name): Make "prefix_text2" local const.
10164 * python/py-param.c (add_setshow_generic): Make "tmp_name" local
10165 const.
10166 * remote.c (_initialize_remote): Make "cmd_name" local const.
10167 * symtab.c (language_search_unquoted_string): Make "text" and "p"
10168 parameters const. Adjust.
10169 (completion_list_add_fields): Make "sym_text", "text" and "word"
10170 parameters const.
10171 (struct add_name_data) <sym_text, text, word>: Make fields const.
10172 (default_make_symbol_completion_list_break_on): Make "text" and
10173 "word" parameters const. Adjust locals.
10174 (default_make_symbol_completion_list)
10175 (make_symbol_completion_list, make_symbol_completion_type)
10176 (make_symbol_completion_list_fn): Make "text" and "word"
10177 parameters const.
10178 (make_file_symbol_completion_list): Make "text", "word" and
10179 "srcfile" parameters const. Adjust locals.
10180 (add_filename_to_list): Make "text" and "word" parameters const.
10181 (struct add_partial_filename_data) <text, word>: Make fields
10182 const.
10183 (make_source_files_completion_list): Make "text" and "word"
10184 parameters const.
10185 * symtab.h (default_make_symbol_completion_list_break_on)
10186 (default_make_symbol_completion_list, make_symbol_completion_list)
10187 (make_symbol_completion_type enum type_code)
10188 (make_symbol_completion_list_fn make_file_symbol_completion_list)
10189 (make_source_files_completion_list): Change prototype.
10190 * top.c (execute_command): Adjust to pass pointer to pointer to
10191 const char to lookup_cmd, and to deprecated_cmd_warning prototype
10192 change.
10193 (set_verbose): Make "cmdname" local const.
10194 * tracepoint.c (decode_agent_options): Make "exp" parameter const,
10195 and adjust.
10196 (validate_actionline): Make "line" parameter a pointer to const
10197 char, and adjust.
10198 (encode_actions_1): Make "action_exp" local const, and adjust.
10199 (encode_actions): Adjust.
10200 (replace_comma): Delete.
10201 (trace_dump_actions): Make "action_exp" and "next_comma" locals
10202 const, and adjust. Don't frob the action string while splitting
10203 it at commas. Instead, make a copy of each split substring in
10204 turn.
10205 (trace_dump_command): Adjust to validate_actionline prototype
10206 change.
10207 * tracepoint.h (decode_agent_options, decode_agent_options)
10208 (encode_actions, validate_actionline): Change prototypes.
10209 * valprint.h (output_command): Delete declaration.
10210 (output_command_const): Declare.
10211 * value.c (function_destroyer): Cast const away in xfree call.
10212
10213 2013-03-13 Pedro Alves <palves@redhat.com>
10214
10215 * ada-lang.c (ada_decode_symbol): Cast away constness of GSYMBOL
10216 rather than casting 'const char * const *' to 'const char **'.
10217 * ada-lex.l (processInt): Make "trailer" local const. Remove
10218 'const char **' cast.
10219 * arm-linux-tdep.c (arm_stap_parse_special_token): Add 'char *'
10220 locals, and use those as strtol output pointer, instead than doing
10221 invalid casts to from 'const char **' to 'char **'.
10222 (_initialize_demangle): Remove cast.
10223 * i386-tdep.c (i386_stap_parse_special_token): : Add 'char *'
10224 locals, and use those as strtol output pointer, instead than doing
10225 invalid casts to from 'const char **' to 'char **'.
10226 * solib-dsbt.c (dsbt_get_initial_loadmaps): Remove 'gdb_byte**'
10227 casts.
10228 * stap-probe.c (stap_parse_register_operand)
10229 (stap_parse_single_operand): Likewise.
10230
10231 2013-03-13 Yao Qi <yao@codesourcery.com>
10232
10233 * tracepoint.c (tfile_get_trace_state_variable_value): Look for
10234 the last matched 'V' blcok in trace frame.
10235
10236 2013-03-12 Joel Brobecker <brobecker@adacore.com>
10237
10238 * NEWS: Create a new section for the next release branch.
10239 Rename the section of the current branch, now that it has
10240 been cut.
10241
10242 2013-03-12 Joel Brobecker <brobecker@adacore.com>
10243
10244 GDB 7.6 branch created (branch timestamp: 2013-03-12 22:15 UTC)
10245 * version.in: Bump version to 7.6.50.20130312-cvs.
10246
10247 2013-03-12 Keith Seitz <keiths@redhat.com>
10248
10249 * mi/mi-cmds.h (mi_execute_command): Make "cmd" const.
10250 * mi/mi-interp.c (mi_interpreter_exec): Make "command" const.
10251 Remove temporary copy of input string.
10252 (mi_execute_command_wrapper): Make "cmd" const.
10253 * mi/mi-main.c (mi_execute_command): Make "string_ptr" const.
10254 * mi/mi-parse.c (mi_parse_argv): Make "args" const.
10255 Use const strings.
10256 (mi_parse): Make "cmd" const.
10257 Use const strings.
10258 * mi/mi-parse.h (mi_parse): Make "cmd" const.
10259
10260 2013-03-12 Keith Seitz <keiths@redhat.com>
10261
10262 * ada-lang.c (ada_read_renaming_var_value): Pass const
10263 pointer to expression string to parse_exp_1.
10264 (create_excep_cond_exprs): Likewise.
10265 * ax-gdb.c (agent_eval_command_one): Likewise.
10266 (maint_agent_printf_command): Likewise.
10267 Constify much of the string handling/parsing.
10268 * breakpoint.c (set_breakpoint_condition): Pass const
10269 pointer to expression string to parse_exp_1.
10270 (update_watchpoint): Likewise.
10271 (parse_cmd_to_aexpr): Constify string handling.
10272 Pass const pointer to parse_exp_1.
10273 (init_breakpoint_sal): Pass const pointer to parse_exp_1.
10274 (find_condition_and_thread): Likewise.
10275 Make TOK const.
10276 (watch_command_1): Make "arg" const.
10277 Constify string handling.
10278 Copy the expression string instead of changing the input
10279 string.
10280 (update_breakpoint_location): Pass const pointer to
10281 parse_exp_1.
10282 * eval.c (parse_and_eval_address): Make "exp" const.
10283 (parse_to_comma_and_eval): Make "expp" const.
10284 (parse_and_eval): Make "exp" const.
10285 * expression.h (parse_expression): Make argument const.
10286 (parse_exp_1): Make first argument const.
10287 * findcmd.c (parse_find_args): Treat "args" as const.
10288 * linespec.c (parse_linespec): Pass const pointer to
10289 linespec_expression_to_pc.
10290 (linespec_expression_to_pc): Make "exp_ptr" const.
10291 * parse.c (parse_exp_1): Make "stringptr" const.
10292 Make a copy of the expression to pass to parse_exp_in_context until
10293 this whole interface can be constified.
10294 (parse_expression): Make "string" const.
10295 * printcmd.c (ui_printf): Treat "arg" as const.
10296 Handle const strings.
10297 * tracepoint.c (validate_actionline): Pass const pointer to
10298 all calls to parse_exp_1.
10299 (encode_actions_1): Likewise.
10300 * value.h (parse_to_comma_and_eval): Make argument const.
10301 (parse_and_eval_address): Likewise.
10302 (parse_and_eval): Likewise.
10303 * varobj.c (varobj_create): Pass const pointer to parse_exp_1.
10304 (varobj_set_value): Likewise.
10305 * cli/cli-cmds.c (disassemble_command): Treat "arg" as const and
10306 constify string handling.
10307 Pass const pointers to parse_and_eval_address and
10308 parse_to_comman_and_eval.
10309 * cli/cli-utils.c (skip_to_space): Rename to ...
10310 (skip_to_space_const): ... this. Handle const strings.
10311 * cli/cli-utils.h (skip_to_space): Turn into macro which invokes
10312 skip_to_space_const.
10313 (skip_to_space_const): Declare.
10314 * common/format.c (parse_format_string): Make "arg" const.
10315 Handle const strings.
10316 * common/format.h (parse_format_string): Make "arg" const.
10317 * gdbserver/ax.c (ax_printf): Make "format" const.
10318 * python/python.c (gdbpy_parse_and_eval): Do not make a copy
10319 of the expression string.
10320
10321 2013-03-12 Hui Zhu <hui@codesourcery.com>
10322
10323 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Update error message.
10324
10325 2013-03-12 Yao Qi <yao@codesourcery.com>
10326 Hui Zhu <hui@codesourcery.com>
10327
10328 * dwarf2loc.c (access_memory): Change nbits to nbytes in gdb_assert.
10329 (dwarf2_compile_expr_to_ax): Call access_memory in DW_OP_deref and
10330 DW_OP_deref_size.
10331
10332 2013-03-12 Paul Hilfinger <hilfingr@adacore.com>
10333
10334 * ada-lex.l (rules): Only recognize 'thread' as a
10335 delimiter when followed by numerals, as for c-exp.y.
10336 Use new rewind_to_char function to rewind the input for
10337 expression-delimiting tokens.
10338 (rewind_to_char): New function.
10339
10340 2013-03-11 Pedro Alves <palves@redhat.com>
10341 Jan Kratochvil <jan.kratochvil@redhat.com>
10342
10343 * configure: Regenerate.
10344 * configure.ac (check dynamic export flag): Link python test with
10345 $PYTHON_LIBS.
10346
10347 2013-03-11 Doug Evans <dje@google.com>
10348 Keith Seitz <keiths@redhat.com>
10349
10350 * linespec.c (find_linespec_symbols): Call find_function_symbols
10351 first, and then call lookup_prefix_sym/find_method.
10352
10353 2013-03-11 Pedro Alves <palves@redhat.com>
10354
10355 * charset.c (convert_between_encodings): Don't cast between
10356 different pointer to pointer types. Instead, make the 'inp' local
10357 be of the type iconv expects.
10358 (wchar_iterate): Don't cast between different pointer to pointer
10359 types. Instead, use new pointer local of the type iconv expects.
10360 * target.c (target_read_stralloc, target_fileio_read_stralloc):
10361 Add new local of type char pointer, and use it to get a
10362 char/string view of the byte buffer, instead of casting between
10363 pointer to pointer types.
10364
10365 2013-03-11 Hafiz Abid Qadeer <abidh@codesourcery.com>
10366
10367 * remote.c (remote_set_trace_buffer_size): Move != operator
10368 to the start of next line to fix an ARI warning.
10369
10370 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10371
10372 * NEWS: Add record changes.
10373
10374 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10375
10376 * record-btrace.c (btrace_insn_history): Omit the pc prefix in
10377 the instruction history disassembly.
10378 * disasm.c (dump_insns): Omit the pc prefix, if requested.
10379 * disasm.h (DISASSEMBLY_OMIT_PC): New.
10380
10381 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10382
10383 * Makefile.in (SFILES): Add record-btrace.c
10384 (COMMON_OBS): Add record-btrace.o
10385 * record-btrace.c: New.
10386 * objfiles.c: Include btrace.h.
10387 (free_objfile): call btrace_free_objfile.
10388
10389 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10390
10391 * target.c (target_call_history, target_call_history_from,
10392 target_call_history_range): New.
10393 * target.h (target_ops) <to_call_history, to_call_history_from,
10394 to_call_history_range>: New fields.
10395 (target_call_history, target_call_history_from,
10396 target_call_history_range): New declaration.
10397 * record.c (get_call_history_modifiers, cmd_record_call_history,
10398 record_call_history_size): New.
10399 (_initialize_record): Add the "record function-call-history" command.
10400 Add "set/show record function-call-history-size" commands.
10401 * record.h (record_print_flag): New.
10402
10403 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10404
10405 * target.h (target_ops) <to_insn_history, to_insn_history_from,
10406 to_insn_history_range>: New fields.
10407 (target_insn_history): New.
10408 (target_insn_history_from): New.
10409 (target_insn_history_range): New.
10410 * target.c (target_insn_history): New.
10411 (target_insn_history_from): New.
10412 (target_insn_history_range): New.
10413 * record.c: Include cli/cli-utils.h, disasm.h, ctype.h.
10414 (record_insn_history_size): New.
10415 (get_insn_number): New.
10416 (get_context_size): New.
10417 (no_chunk): New.
10418 (get_insn_history_modifiers): New.
10419 (cmd_record_insn_history): New.
10420 (_initialize_record): Add "set/show record instruction-history-size"
10421 command. Add "record instruction-history" command.
10422
10423 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10424
10425 * record.h (record_disconnect): New.
10426 (record_detach): New.
10427 (record_mourn_inferior): New.
10428 (record_kill): New.
10429 * record-full.c (record_disconnect, record_detach,
10430 record_mourn_inferior, record_kill): Move to...
10431 * record.c: ...here.
10432 (DEBUG): New.
10433 (record_stop): New.
10434 (record_unpush): New.
10435 (cmd_record_stop): Call record_stop. Replace unpush_target
10436 call with record_unpush call.
10437 (record_disconnect, record_detach): Assert that the target
10438 is of record stratum. Call record_unpush, record_stop, and
10439 DEBUG.
10440 (record_mourn_inferior, record_kill): Assert that the target
10441 is of record stratum. Call record_unpush and DEBUG.
10442
10443 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10444
10445 * record-full.h, record-full.c (record_memory_query): Rename
10446 to ...
10447 (record_full_memory_query): ...this. Update all users.
10448 (record_arch_list_add_reg): Rename to ...
10449 (record_full_arch_list_add_reg): ...this. Update all users.
10450 (record_arch_list_add_mem): Rename to ...
10451 (record_full_arch_list_add_mem): ...this. Update all users.
10452 (record_arch_list_add_end): Rename to ...
10453 (record_full_arch_list_add_end): ...this. Update all users.
10454 (record_gdb_operation_disable_set): Rename to ...
10455 (record_full_gdb_operation_disable_set): ...this.
10456 Update all users.
10457
10458 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10459
10460 * record-full.c (DEFAULT_RECORD_INSN_MAX_NUM): Renamed to ...
10461 (DEFAULT_RECORD_FULL_INSN_MAX_NUM): ... this. Updated all users.
10462 (RECORD_IS_REPLAY): Renamed to ...
10463 (RECORD_FULL_IS_REPLAY): ... this. Updated all users.
10464 (RECORD_FILE_MAGIC): Renamed to ...
10465 (RECORD_FULL_FILE_MAGIC): ... this. Updated all users.
10466 (record_mem_entry): Renamed to ...
10467 (record_full_mem_entry): ... this. Updated all users.
10468 (record_reg_entry): Renamed to ...
10469 (record_full_reg_entry): ... this. Updated all users.
10470 (record_end_entry): Renamed to ...
10471 (record_full_end_entry): ... this. Updated all users.
10472 (record_type) <record_end, record_reg, record_mem>: Renamed
10473 to ...
10474 (record_full_type) <record_full_end, record_full_reg,
10475 record_full_mem>: ... this. Updated all users.
10476 (record_entry): Renamed to ...
10477 (record_full_entry): ... this. Updated all users.
10478 (record_core_buf_entry): Renamed to ...
10479 (record_full_core_buf_entry): ... this. Updated all users.
10480 (record_core_regbuf): Renamed to ...
10481 (record_full_core_regbuf): ... this. Updated all users.
10482 (record_core_start): Renamed to ...
10483 (record_full_core_start): ... this. Updated all users.
10484 (record_core_end): Renamed to ...
10485 (record_full_core_end): ... this. Updated all users.
10486 (record_core_buf_list): Renamed to ...
10487 (record_full_core_buf_list): ... this. Updated all users.
10488 (record_first): Renamed to ...
10489 (record_full_first): ... this. Updated all users.
10490 (record_list): Renamed to ...
10491 (record_full_list): ... this. Updated all users.
10492 (record_arch_list_head): Renamed to ...
10493 (record_full_arch_list_head): ... this. Updated all users.
10494 (record_arch_list_tail): Renamed to ...
10495 (record_full_arch_list_tail): ... this. Updated all users.
10496 (record_stop_at_limit): Renamed to ...
10497 (record_full_stop_at_limit): ... this. Updated all users.
10498 (record_insn_max_num): Renamed to ...
10499 (record_full_insn_max_num): ... this. Updated all users.
10500 (record_insn_num): Renamed to ...
10501 (record_full_insn_num): ... this. Updated all users.
10502 (record_insn_count): Renamed to ...
10503 (record_full_insn_count): ... this. Updated all users.
10504 (record_ops): Renamed to ...
10505 (record_full_ops): ... this. Updated all users.
10506 (record_core_ops): Renamed to ...
10507 (record_full_core_ops): ... this. Updated all users.
10508 (set_record_cmdlist): Renamed to ...
10509 (set_record_full_cmdlist): ... this. Updated all users.
10510 (show_record_cmdlist): Renamed to ...
10511 (show_record_full_cmdlist): ... this. Updated all users.
10512 (record_cmdlist): Renamed to ...
10513 (record_full_cmdlist): ... this. Updated all users.
10514 (record_beneath_to_resume_ops): Renamed to ...
10515 (record_full_beneath_to_resume_ops): ... this. Updated all users.
10516 (record_beneath_to_resume): Renamed to ...
10517 (record_full_beneath_to_resume): ... this. Updated all users.
10518 (record_beneath_to_wait_ops): Renamed to ...
10519 (record_full_beneath_to_wait_ops): ... this. Updated all users.
10520 (record_beneath_to_wait): Renamed to ...
10521 (record_full_beneath_to_wait): ... this. Updated all users.
10522 (record_beneath_to_store_registers_ops): Renamed to ...
10523 (record_full_beneath_to_store_registers_ops): ... this.
10524 Updated all users.
10525 (record_beneath_to_store_registers): Renamed to ...
10526 (record_full_beneath_to_store_registers): ... this.
10527 Updated all users.
10528 (record_beneath_to_xfer_partial_ops): Renamed to ...
10529 (record_full_beneath_to_xfer_partial_ops): ... this.
10530 Updated all users.
10531 (record_beneath_to_xfer_partial): Renamed to ...
10532 (record_full_beneath_to_xfer_partial): ... this.
10533 Updated all users.
10534 (record_beneath_to_insert_breakpoint): Renamed to ...
10535 (record_full_beneath_to_insert_breakpoint): ... this.
10536 Updated all users.
10537 (record_beneath_to_stopped_by_watchpoint): Renamed to ...
10538 (record_full_beneath_to_stopped_by_watchpoint): ... this.
10539 Updated all users.
10540 (record_beneath_to_stopped_data_address): Renamed to ...
10541 (record_full_beneath_to_stopped_data_address): ... this.
10542 Updated all users.
10543 (record_beneath_to_async): Renamed to ...
10544 (record_full_beneath_to_async): ... this. Updated all users.
10545 (record_goto_insn): Renamed to ...
10546 (record_full_goto_insn): ... this. Updated all users.
10547 (record_save): Renamed to ...
10548 (record_full_save): ... this. Updated all users.
10549 (record_reg_alloc): Renamed to ...
10550 (record_full_reg_alloc): ... this. Updated all users.
10551 (record_reg_release): Renamed to ...
10552 (record_full_reg_release): ... this. Updated all users.
10553 (record_mem_alloc): Renamed to ...
10554 (record_full_mem_alloc): ... this. Updated all users.
10555 (record_mem_release): Renamed to ...
10556 (record_full_mem_release): ... this. Updated all users.
10557 (record_end_alloc): Renamed to ...
10558 (record_full_end_alloc): ... this. Updated all users.
10559 (record_end_release): Renamed to ...
10560 (record_full_end_release): ... this. Updated all users.
10561 (record_entry_release): Renamed to ...
10562 (record_full_entry_release): ... this. Updated all users.
10563 (record_list_release): Renamed to ...
10564 (record_full_list_release): ... this. Updated all users.
10565 (record_list_release_following): Renamed to ...
10566 (record_full_list_release_following): ... this.
10567 Updated all users.
10568 (record_list_release_first): Renamed to ...
10569 (record_full_list_release_first): ... this. Updated all users.
10570 (record_arch_list_add): Renamed to ...
10571 (record_full_arch_list_add): ... this. Updated all users.
10572 (record_get_loc): Renamed to ...
10573 (record_full_get_loc): ... this. Updated all users.
10574 (record_check_insn_num): Renamed to ...
10575 (record_full_check_insn_num): ... this. Updated all users.
10576 (record_arch_list_cleanups): Renamed to ...
10577 (record_full_arch_list_cleanups): ... this. Updated all users.
10578 (record_message): Renamed to ...
10579 (record_full_message): ... this. Updated all users.
10580 (record_message_wrapper): Renamed to ...
10581 (record_full_message_wrapper): ... this. Updated all users.
10582 (record_message_wrapper_safe): Renamed to ...
10583 (record_full_message_wrapper_safe): ... this. Updated all users.
10584 (record_gdb_operation_disable): Renamed to ...
10585 (record_full_gdb_operation_disable): ... this. Updated all users.
10586 (record_hw_watchpoint): Renamed to ...
10587 (record_full_hw_watchpoint): ... this. Updated all users.
10588 (record_exec_insn): Renamed to ...
10589 (record_full_exec_insn): ... this. Updated all users.
10590 (record_restore): Renamed to ...
10591 (record_full_restore): ... this. Updated all users.
10592 (record_async_inferior_event_token): Renamed to ...
10593 (record_full_async_inferior_event_token): ... this.
10594 Updated all users.
10595 (record_async_inferior_event_handler): Renamed to ...
10596 (record_full_async_inferior_event_handler): ... this.
10597 Updated all users.
10598 (record_core_open_1): Renamed to ...
10599 (record_full_core_open_1): ... this. Updated all users.
10600 (record_open_1): Renamed to ...
10601 (record_full_open_1): ... this. Updated all users.
10602 (record_open): Renamed to ...
10603 (record_full_open): ... this. Updated all users.
10604 (record_close): Renamed to ...
10605 (record_full_close): ... this. Updated all users.
10606 (record_resume_step): Renamed to ...
10607 (record_full_resume_step): ... this. Updated all users.
10608 (record_resumed): Renamed to ...
10609 (record_full_resumed): ... this. Updated all users.
10610 (record_execution_dir): Renamed to ...
10611 (record_full_execution_dir): ... this. Updated all users.
10612 (record_resume): Renamed to ...
10613 (record_full_resume): ... this. Updated all users.
10614 (record_get_sig): Renamed to ...
10615 (record_full_get_sig): ... this. Updated all users.
10616 (record_sig_handler): Renamed to ...
10617 (record_full_sig_handler): ... this. Updated all users.
10618 (record_wait_cleanups): Renamed to ...
10619 (record_full_wait_cleanups): ... this. Updated all users.
10620 (record_wait_1): Renamed to ...
10621 (record_full_wait_1): ... this. Updated all users.
10622 (record_wait): Renamed to ...
10623 (record_full_wait): ... this. Updated all users.
10624 (record_stopped_by_watchpoint): Renamed to ...
10625 (record_full_stopped_by_watchpoint): ... this. Updated all users.
10626 (record_disconnect): Renamed to ...
10627 (record_full_disconnect): ... this. Updated all users.
10628 (record_detach): Renamed to ...
10629 (record_full_detach): ... this. Updated all users.
10630 (record_mourn_inferior): Renamed to ...
10631 (record_full_mourn_inferior): ... this. Updated all users.
10632 (record_kill): Renamed to ...
10633 (record_full_kill): ... this. Updated all users.
10634 (record_stopped_data_address): Renamed to ...
10635 (record_full_stopped_data_address): ... this. Updated all users.
10636 (record_registers_change): Renamed to ...
10637 (record_full_registers_change): ... this. Updated all users.
10638 (record_store_registers): Renamed to ...
10639 (record_full_store_registers): ... this. Updated all users.
10640 (record_xfer_partial): Renamed to ...
10641 (record_full_xfer_partial): ... this. Updated all users.
10642 (record_breakpoint): Renamed to ...
10643 (record_full_breakpoint): ... this. Updated all users.
10644 (record_breakpoint_p): Renamed to ...
10645 (record_full_breakpoint_p): ... this. Updated all users.
10646 (record_breakpoints): Renamed to ...
10647 (record_full_breakpoints): ... this. Updated all users.
10648 (record_sync_record_breakpoints): Renamed to ...
10649 (record_full_sync_record_breakpoints): ... this.
10650 Updated all users.
10651 (record_init_record_breakpoints): Renamed to ...
10652 (record_full_init_record_breakpoints): ... this.
10653 Updated all users.
10654 (record_insert_breakpoint): Renamed to ...
10655 (record_full_insert_breakpoint): ... this. Updated all users.
10656 (record_remove_breakpoint): Renamed to ...
10657 (record_full_remove_breakpoint): ... this. Updated all users.
10658 (record_can_execute_reverse): Renamed to ...
10659 (record_full_can_execute_reverse): ... this. Updated all users.
10660 (record_get_bookmark): Renamed to ...
10661 (record_full_get_bookmark): ... this. Updated all users.
10662 (record_goto_bookmark): Renamed to ...
10663 (record_full_goto_bookmark): ... this. Updated all users.
10664 (record_async): Renamed to ...
10665 (record_full_async): ... this. Updated all users.
10666 (record_can_async_p): Renamed to ...
10667 (record_full_can_async_p): ... this. Updated all users.
10668 (record_is_async_p): Renamed to ...
10669 (record_full_is_async_p): ... this. Updated all users.
10670 (record_execution_direction): Renamed to ...
10671 (record_full_execution_direction): ... this. Updated all users.
10672 (record_info): Renamed to ...
10673 (record_full_info): ... this. Updated all users.
10674 (record_delete): Renamed to ...
10675 (record_full_delete): ... this. Updated all users.
10676 (record_is_replaying): Renamed to ...
10677 (record_full_is_replaying): ... this. Updated all users.
10678 (record_goto_entry): Renamed to ...
10679 (record_full_goto_entry): ... this. Updated all users.
10680 (record_goto_begin): Renamed to ...
10681 (record_full_goto_begin): ... this. Updated all users.
10682 (record_goto_end): Renamed to ...
10683 (record_full_goto_end): ... this. Updated all users.
10684 (record_goto): Renamed to ...
10685 (record_full_goto): ... this. Updated all users.
10686 (init_record_ops): Renamed to ...
10687 (init_record_full_ops): ... this. Updated all users.
10688 (record_core_resume): Renamed to ...
10689 (record_full_core_resume): ... this. Updated all users.
10690 (record_core_kill): Renamed to ...
10691 (record_full_core_kill): ... this. Updated all users.
10692 (record_core_fetch_registers): Renamed to ...
10693 (record_full_core_fetch_registers): ... this. Updated all users.
10694 (record_core_prepare_to_store): Renamed to ...
10695 (record_full_core_prepare_to_store): ... this. Updated all users.
10696 (record_core_store_registers): Renamed to ...
10697 (record_full_core_store_registers): ... this. Updated all users.
10698 (record_core_xfer_partial): Renamed to ...
10699 (record_full_core_xfer_partial): ... this. Updated all users.
10700 (record_core_insert_breakpoint): Renamed to ...
10701 (record_full_core_insert_breakpoint): ... this. Updated all users.
10702 (record_core_remove_breakpoint): Renamed to ...
10703 (record_full_core_remove_breakpoint): ... this. Updated all users.
10704 (record_core_has_execution): Renamed to ...
10705 (record_full_core_has_execution): ... this. Updated all users.
10706 (init_record_core_ops): Renamed to ...
10707 (init_record_full_core_ops): ... this. Updated all users.
10708 (cmd_record_restore): Renamed to ...
10709 (cmd_record_full_restore): ... this. Updated all users.
10710 (record_save_cleanups): Renamed to ...
10711 (record_full_save_cleanups): ... this. Updated all users.
10712 (cmd_record_start): Renamed to ...
10713 (cmd_record_full_start): ... this. Updated all users.
10714 (set_record_insn_max_num): Renamed to ...
10715 (set_record_full_insn_max_num): ... this. Updated all users.
10716 (set_record_command): Renamed to ...
10717 (set_record_full_command): ... this. Updated all users.
10718 (show_record_command): Renamed to ...
10719 (show_record_full_command): ... this. Updated all users.
10720 (_initialize_record): Renamed to ...
10721 (_initialize_record_full): ... this. Updated all users.
10722
10723 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10724
10725 * record.h: Split into this and ...
10726 * record-full.h: ... this.
10727 * record.c: Split into this and ...
10728 * record-full.c: ... this.
10729 * target.h (target_ops): Add new fields to_info_record,
10730 to_save_record, to_delete_record, to_record_is_replaying,
10731 to_goto_record_begin, to_goto_record_end, to_goto_record.
10732 (target_info_record): New.
10733 (target_save_record): New.
10734 (target_supports_delete_record): New.
10735 (target_delete_record): New.
10736 (target_record_is_replaying): New.
10737 (target_goto_record_begin): New.
10738 (target_goto_record_end): New.
10739 (target_goto_record): New.
10740 * target.c (target_info_record): New.
10741 (target_save_record): New.
10742 (target_supports_delete_record): New.
10743 (target_delete_record): New.
10744 (target_record_is_replaying): New.
10745 (target_goto_record_begin): New.
10746 (target_goto_record_end): New.
10747 (target_goto_record): New.
10748 * record.h: Declare struct cmd_list_element.
10749 (record_cmdlist): New declaration.
10750 (set_record_cmdlist): New declaration.
10751 (show_record_cmdlist): New declaration.
10752 (info_record_cmdlist): New declaration.
10753 (cmd_record_goto): New declaration.
10754 * record.c: Remove unnecessary includes.
10755 Include inferior.h.
10756 (cmd_record_goto): Remove declaration.
10757 (record_cmdlist): Now extern. Initialize.
10758 (set_record_cmdlist): Now extern. Initialize.
10759 (show_record_cmdlist): Now extern. Initialize.
10760 (info_record_cmdlist): Now extern. Initialize.
10761 (find_record_target): New.
10762 (require_record_target): New.
10763 (cmd_record_start): Update.
10764 (cmd_record_delete): Remove target-specific code.
10765 Call target_delete_record.
10766 (cmd_record_stop): Unpush any record target.
10767 (set_record_insn_max_num): Move to record-full.c
10768 (set_record_command): Add comment.
10769 (show_record_command): Add comment.
10770 (info_record_command): Update comment.
10771 Remove target-specific code.
10772 Call the record target's to_info_record.
10773 (cmd_record_start): New.
10774 (cmd_record_goto): Now extern.
10775 Remove target-specific code.
10776 Call target_goto_begin, target_goto_end, or target_goto.
10777 (_initialize_record): Move record target ops initialization to
10778 record-full.c.
10779 Change "record" command help text.
10780 Move "record restore", "record set", and "record show" commands to
10781 record-full.c.
10782 * Makefile.in (SFILES): Add record-full.c.
10783 (HFILES_NO_SRCDIR): Add record-full.h.
10784 (COMMON_OBS): Add record-full.o.
10785 * amd64-linux-tdep.c: Include record-full.h instead of record.h.
10786 * arm-tdep.c: Include record-full.h.
10787 * i386-linux-tdep.c: Include record-full.h instead of record.h.
10788 * i386-tdep.c: Include record-full.h.
10789 * infrun.c: Include record-full.h.
10790 * linux-record.c: Include record-full.h.
10791 * moxie-tdep.c: Include record-full.h.
10792 * record-full.c: Include record-full.h.
10793 Change module comment.
10794 (set_record_full_cmdlist): New.
10795 (show_record_full_cmdlist): New.
10796 (record_full_cmdlist): New.
10797 (record_goto_insn): New declaration.
10798 (record_save): New declaration.
10799 (record_check_insn_num): Change query string.
10800 (record_info): New.
10801 (record_delete): New.
10802 (record_is_replaying): New.
10803 (record_goto_entry): New.
10804 (record_goto_begin): New.
10805 (record_goto_end): New.
10806 (record_goto): New.
10807 (init_record_ops): Update.
10808 (init_record_core_ops): Update.
10809 (cmd_record_save): Rename to record_save. Remove target and arg checks.
10810 (cmd_record_start): New.
10811 (set_record_insn_max_num): Moved from record.c
10812 (set_record_full_command): New.
10813 (show_record_full_command): New.
10814 (_initialize_record_full): New.
10815
10816 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10817
10818 * target.h (add_deprecated_target_alias): New.
10819 * target.c (add_deprecated_target_alias): New.
10820
10821 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10822
10823 * common/linux-btrace.c: Include sys/ptrace, sys/types, sys/wait.h,
10824 and signal.h.
10825 (linux_supports_btrace): Add kernel and
10826 cpuid check.
10827 (kernel_supports_btrace): New function.
10828 (cpu_supports_btrace): New function.
10829 (intel_supports_btrace): New function.
10830
10831 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10832
10833 * target.h (enum target_object): Add TARGET_OBJECT_BTRACE.
10834 * remote.c: Include btrace.h.
10835 (struct btrace_target_info): New struct.
10836 (remote_supports_btrace): New function.
10837 (send_Qbtrace): New function.
10838 (remote_enable_btrace): New function.
10839 (remote_disable_btrace): New function.
10840 (remote_teardown_btrace): New function.
10841 (remote_read_btrace): New function.
10842 (init_remote_ops): Add btrace ops.
10843 (enum <unnamed>): Add btrace packets.
10844 (struct protocol_feature remote_protocol_features[]): Add btrace packets.
10845 (_initialize_remote): Add packet configuration for branch tracing.
10846
10847 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10848
10849 * features/btrace.dtd: New file.
10850 * Makefile.in (XMLFILES): Add btrace.dtd.
10851 * btrace.h (parse_xml_btrace): New declaration.
10852 * btrace.c: Include xml-support.h.
10853 (parse_xml_btrace): New function.
10854 (parse_xml_btrace_block): New function.
10855 (block_attributes): New struct.
10856 (btrace_attributes): New struct.
10857 (btrace_children): New struct.
10858 (btrace_elements): New struct.
10859
10860 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10861
10862 * amd64-linux-nat.c: Include btrace.h and linux-btrace.h.
10863 (amd64_linux_enable_btrace): New.
10864 (amd64_linux_disable_btrace): New.
10865 (amd64_linux_teardown_btrace): New.
10866 (_initialize_amd64_linux_nat): Initialize btrace ops.
10867 * i386-linux.nat.c: Include btrace.h and linux-btrace.h.
10868 (i386_linux_enable_btrace): New.
10869 (i386_linux_disable_btrace): New.
10870 (i386_linux_teardown_btrace): New.
10871 (_initialize_i386_linux_nat): Initialize btrace ops.
10872 * config/i386/linux.mh: Add linux-btrace.o.
10873 * config/i386/linux64.mh: Add linux-btrace.o.
10874
10875 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10876
10877 * common/linux_btrace.h: New file.
10878 * common/linux_btrace.c: New file.
10879 * Makefile.in (SFILES): Add btrace.c.
10880 (HFILES_NO_SRCDIR): Add common/linux-btrace.h.
10881 (COMMON_OBS): Add btrace.o.
10882 (linux-btrace.o): New rule.
10883
10884 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10885
10886 * target.h: Include btrace.h.
10887 (struct target_ops) <to_supports_btrace, to_enable_btrace,
10888 to_disable_btrace, to_teardown_btrace, to_read_btrace>: New.
10889 * target.c (target_supports_btrace): New function.
10890 (target_enable_btrace): New function.
10891 (target_disable_btrace): New function.
10892 (target_teardown_btrace): New function.
10893 (target_read_btrace): New function.
10894 * btrace.h: New file.
10895 * btrace.c: New file.
10896 * Makefile.in: Add btrace.c.
10897 * gdbthread.h: Include btrace.h.
10898 (struct thread_info): Add btrace field.
10899 * thread.c: Include btrace.h.
10900 (clear_thread_inferior_resources): Call target_teardown_btrace.
10901 * common/btrace-common.h: New file.
10902
10903 2013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10904
10905 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Call also kill
10906 for CHILD, ignore PTRACE_KILL errors, move the inner block variable
10907 kill_status to outer block.
10908
10909 2013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10910
10911 Fix entry-values if the callee called a noreturn function.
10912 * dwarf2-frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
10913 get_frame_address_in_block. Add new comment.
10914
10915 2013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10916
10917 Fix entry-values in C++ across CUs.
10918 * dwarf2loc.c (call_site_to_target_addr) <FIELD_LOC_KIND_PHYSNAME>: Use
10919 lookup_minimal_symbol. Add a comment.
10920 * dwarf2read.c
10921 (read_call_site_scope) <is_ref_attr> <die_is_declaration>: Prefer
10922 DW_AT_linkage_name.
10923
10924 2013-03-08 Yao Qi <yao@codesourcery.com>
10925
10926 * tracepoint.c (_initialize_tracepoint): Indent the code.
10927
10928 2013-03-08 Pedro Alves <palves@redhat.com>
10929
10930 * findcmd.c (put_bits): Change type of parameter to 'gdb_byte *'.
10931 (parse_find_args, find_command): Change type of pattern buffer
10932 locals to 'gdb_byte *'.
10933
10934 2013-03-08 Stan Shebs <stan@codesourcery.com>
10935 Hafiz Abid Qadeer <abidh@codesourcery.com>
10936
10937 * NEWS: Mention set and show trace-buffer-size commands.
10938 Mention new packet.
10939 * target.h (struct target_ops): New method
10940 to_set_trace_buffer_size.
10941 (target_set_trace_buffer_size): New macro.
10942 * target.c (update_current_target): Set up new method.
10943 * tracepoint.c (trace_buffer_size): New global.
10944 (start_tracing): Send it to the target.
10945 (set_trace_buffer_size): New function.
10946 (_initialize_tracepoint): Add new setshow for trace-buffer-size.
10947 * remote.c (remote_set_trace_buffer_size): New function.
10948 (_initialize_remote): Use it.
10949 (QTBuffer:size) New remote command.
10950 (PACKET_QTBuffer_size): New enum.
10951 (remote_protocol_features): Add an entry for
10952 PACKET_QTBuffer_size.
10953
10954 2013-03-08 Tom Tromey <tromey@redhat.com>
10955
10956 * remote-m32r-sdi.c (m32r_load): Call skip_spaces on correct
10957 variable.
10958
10959 2013-03-07 Pedro Alves <palves@redhat.com>
10960
10961 * target.c (target_read_stralloc, target_fileio_read_alloc):
10962 *Cast pointer to 'gdb_byte *' in target call.
10963
10964 2013-03-07 Pedro Alves <palves@redhat.com>
10965
10966 * corefile.c (read_memory_string): Cast pointer to gdb_byte* in
10967 call.
10968
10969 2013-03-07 Keith Seitz <keiths@redhat.com>
10970
10971 * breakpoint.c (catch_syscall_split_args): Use skip_spaces.
10972 (trace_pass_command): Likewise.
10973 * cli/cli-cmds.c: Include cli/cli-utils.h.
10974 (source_command): Use skip-spaces.
10975 (disassemble_command): Likewise.
10976 * findcmd.c: Include cli/cli-utils.h.
10977 (parse_find_args): Use skip_spaces.
10978 * go32-nat.c: Include cli/cli-utils.h.
10979 (go32_sldt): Use skip_spaces.
10980 (go32_sgdt): Likewise.
10981 (go32_sidt): Likewise.
10982 (go32_pde): Likewise.
10983 (go32_pte): Likewise.
10984 (go32_pte_for_address): Likewise.
10985 * infcmd.c: Include cli/cli-utils.h.
10986 (registers_info): Use skip_spaces.
10987 * linux-tdep.c (read_mapping): Use skip_spaces_const.
10988 (linux_info_proc): Likewise.
10989 * linux-thread-db.c: Include cli/cli-utils.h.
10990 (info_auto_load_libthread_db): Use skip_spaces_const.
10991 * m32r-rom.c: Include cli/cli-utils.h.
10992 (m32r_upload_command): Use skip_spaces.
10993 * maint.c: Include cli/cli-utils.h.
10994 (maintenance_translate_address): Use skip_spaces.
10995 * mi/mi-parse.c: Include cli/cli-utils.h.
10996 (mi_parse_argv): Use skip_spaces.
10997 (mi_parse): Likewise.
10998 * minsyms.c: Include cli/cli-utils.h.
10999 (msymbol_hash_iw): Use skip_spaces_const.
11000 * objc-lang.c: Include cli/cli-utils.h.
11001 (parse_selector): Use skip_spaces.
11002 (parse_method): Likewise.
11003 * python/python.c: Include cli/cli-utils.h.
11004 (python_interactive_command)[HAVE_PYTHON]: Use skip_spaces.
11005 (python_command)[HAVE_PYTHON]: Likewise.
11006 (python_interactive_command)[!HAVE_PYTHON]: Likewise.
11007 * remote-m32r-sdi.c: Include cli/cli-utils.h.
11008 (m32r_load): Use skip_spaces.
11009 * serial.c: Include cli/cli-utils.h.
11010 (serial_open): Use skip_spaces_const.
11011 * stack.c: Include cli/cli-utils.h.
11012 (parse_frame_specification_1): Use skip_spaces_const.
11013 * symfile.c: Include cli/cli-utils.h.
11014 (set_ext_lang_command): Use skip_spaces.
11015 * symtab.c: Include cli/cli-utils.h.
11016 (rbreak_command): Use skip_spaces.
11017 * thread.c (thread_name_command): Use skip_spaces.
11018 * tracepoint.c (validate_actionline): Use skip_spaces.
11019 (encode_actions_1): Likewise.
11020 (trace_find_range_command): Likewise.
11021 (trace_find_outside_command): Likewise.
11022 (trace_dump_actions): Likewise.
11023
11024 2013-03-07 Pedro Alves <palves@redhat.com>
11025
11026 * c-lang.c (parse_one_string): Cast argument to gdb_byte *.
11027 * expprint.c (print_subexp_standard): Likewise.
11028 * utils.c (host_char_to_target): Likewise.
11029 * valprint.c (generic_emit_char, generic_printstr): Likewise.
11030 * varobj.c (value_get_print_value): Change type of local to char*.
11031 Cast it gdb_byte * in call to language printer.
11032
11033 2013-03-07 Pedro Alves <palves@redhat.com>
11034
11035 * charset.c (struct wchar_iterator) <input>: Change type to 'const
11036 gdb_byte *'.
11037 (make_wchar_iterator): Remove cast to char*.
11038 (wchar_iterate): Change type of local.
11039
11040 2013-03-07 Pedro Alves <palves@redhat.com>
11041
11042 * regcache.c (regcache_xmalloc_1): Call XCALLOC with signed char
11043 for 'regcache->register_status'.
11044
11045 2013-03-07 Pedro Alves <palves@redhat.com>
11046
11047 * breakpoint.c (breakpoint_xfer_memory): Change type of local to
11048 int.
11049
11050 2013-03-07 Pedro Alves <palves@redhat.com>
11051
11052 * stap-probe.c (handle_stap_probe): Add cast to char*.
11053
11054 2013-03-07 Pedro Alves <palves@redhat.com>
11055
11056 * linux-record.c (record_linux_system_call) <gdb_sys_msgrcv,
11057 RECORD_MSGRCV>: Pass a signed variable to
11058 regcache_raw_read_signed, instead of an unsigned one.
11059
11060 2013-03-07 Pedro Alves <palves@redhat.com>
11061
11062 * remote-notif.c (notif_debug): Change type to int.
11063 * remote-notif.h (notif_debug): Likewise.
11064
11065 2013-03-07 Pedro Alves <palves@redhat.com>
11066
11067 * ser-tcp.c (tcp_retry_limit): Change type to unsigned int.
11068
11069 2013-03-07 Pedro Alves <palves@redhat.com>
11070
11071 * remote.c (hex2bin, bin2hex): Move extern declarations to ...
11072 * remote.h (hex2bin, bin2hex): ... here.
11073 * tracepoint.c (hex2bin, bin2hex): Remove extern declarations.
11074
11075 2013-03-07 Eli Zaretskii <eliz@gnu.org>
11076
11077 * utils.c (initialize_utils): Improve doc strings of "set/show
11078 width", "set/show height", and "set/show pagination".
11079
11080 2013-03-06 Keith Seitz <keiths@redhat.com>
11081
11082 * ax-gdb.c (gen_printf): Make FORMAT const.
11083 * ax-gdb.h (gen_printf): Likewise.
11084 * ax-general.c (ax_string): Make STR const.
11085 * ax.h (ax_string): Likewise.
11086
11087 2013-03-06 Doug Evans <dje@google.com>
11088
11089 * elfread.c (elf_symfile_read): Move debugging printf to more
11090 logical location.
11091
11092 2013-03-06 Pedro Alves <palves@redhat.com>
11093
11094 * python/py-utils.c (target_string_to_unicode): Delete function.
11095 * python/python-internal.h (target_string_to_unicode): Delete
11096 declaration.
11097
11098 2013-03-06 Pierre Muller <muller@sourceware.org>
11099
11100 * linespec.c (get_current_search_block): ARI fix, use (void)
11101 for empty parameter list.
11102
11103 2013-03-05 Doug Evans <dje@google.com>
11104
11105 * ada-lang.c (ada_lookup_symbol_list_worker): New function, contents
11106 of old ada_lookup_symbol_list. In !full_search case, don't
11107 search superblocks.
11108 (ada_lookup_symbol_list): Delete arg full_search, all callers
11109 updated. Call ada_lookup_symbol_list_worker.
11110 (ada_iterate_over_symbols): Call ada_lookup_symbol_list_worker.
11111 * ada-lang.h (ada_lookup_symbol_list): Update.
11112 * language.h (language_defn): Update comment for
11113 la_iterate_over_symbols.
11114 * linespec.c (iterate_over_file_blocks): New function.
11115 (iterate_over_all_matching_symtabs): Call it.
11116 (lookup_prefix_sym): Ditto.
11117 (get_current_search_block): New function.
11118 (get_search_block): Delete.
11119 (find_label_symbols): Call get_current_search_block.
11120 (add_matching_symbols_to_info): Call iterate_over_file_blocks.
11121 * symtab.c (iterate_over_symbols): Don't search superblocks.
11122
11123 2013-03-05 Yao Qi <yao@codesourcery.com>
11124
11125 * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): Change
11126 parameter VAR's type from "unsigned int" to "int".
11127 * command.h (var_zuinteger_unlimited): Update its comments.
11128 (add_setshow_zuinteger_unlimited_cmd): Update the declaration.
11129
11130 2013-03-05 Corinna Vinschen <vinschen@redhat.de>
11131
11132 * NEWS: Mention new target x86_64-*-cygwin*.
11133
11134 2013-03-05 Corinna Vinschen <vinschen@redhat.de>
11135
11136 * configure.host: Add x86_64-*-cygwin* as host.
11137 * configure.tgt: Add x86_64-*-cygwin* as target.
11138 * config/i386/cygwin64.mh: New file.
11139
11140 2013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
11141
11142 * linespec.c (decode_line_2): Fix duplicate request off by two message.
11143
11144 2013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
11145
11146 * linespec.c (struct linespec_canonical_name): New.
11147 (struct linespec_state): Change canonical_names type to it.
11148 (add_sal_to_sals): Change variable canonical_name to canonical. Change
11149 xrealloc element size. Initialize the different CANONICAL fields.
11150 (canonical_to_fullform): New.
11151 (filter_results): Use it. Add variables canonical, fullform and
11152 cleanup.
11153 (struct decode_line_2_item, decode_line_2_compare_items): New.
11154 (decode_line_2): Remove variables iter and item_names, add variables
11155 items and items_count. Modify the code for these new variables.
11156
11157 2013-03-04 Corinna Vinschen <vinschen@redhat.com>
11158
11159 * coff-pe-read.c (read_pe_exported_syms): Don't return without
11160 calling do_cleanup.
11161
11162 2013-03-04 Luis Machado <lgustavo@codesourcery.com>
11163
11164 * tracepoint.c (build_traceframe_info): Add code for byte order.
11165
11166 2013-03-02 Kevin Buettner <kevinb@redhat.com>
11167
11168 * v850-tdep.c: (v850e2_register_name): Revise system register
11169 names to match current V850E2M architecture specifications.
11170 Update register number enum comments too.
11171
11172 2013-03-01 Jiong Wang <jiwang@tilera.com>
11173 Pedro Alves <palves@redhat.com>
11174
11175 * tilegx-tdep.c (tilegx_analyze_prologue): Limit bundle reading
11176 to END_ADDR.
11177 (tilegx_skip_prologue): Limit prologue analysis to section end.
11178
11179 2013-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
11180
11181 * dwarf2loc.c (call_site_find_chain_1): New variable save_callee_pc,
11182 use it.
11183
11184 2013-03-01 Pedro Alves <palves@redhat.com>
11185
11186 Use gdb_byte for bytes from the program being debugged.
11187
11188 * arm-tdep.c (arm_store_return_value, arm_get_longjmp_target):
11189 Change type of local 'buf' to gdb_byte.
11190 * avr-tdep.c (avr_frame_prev_register, avr_push_dummy_call): Likewise.
11191 * bfin-tdep.c (bfin_push_dummy_call): Likewise.
11192 * cris-tdep.c (cris_sigcontext_addr)
11193 (cris_sigtramp_frame_unwind_cache): Likewise.
11194 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp)
11195 (frv_linux_sigcontext_reg_addr, frv_linux_sigtramp_frame_cache):
11196 Likewise.
11197 * frv-tdep.c (frv_pseudo_register_write, frv_analyze_prologue): Likewise.
11198 * hppa-hpux-tdep.c (hppa32_hpux_find_global_pointer)
11199 (hppa32_hpux_search_dummy_call_sequence)
11200 (hppa_hpux_supply_save_state): Likewise.
11201 * hppa-linux-tdep.c (insns_match_pattern)
11202 (hppa_linux_find_global_pointer): Likewise.
11203 * hppa-tdep.c (hppa_in_function_epilogue_p)
11204 (skip_prologue_hard_way, hppa_frame_cache): Likewise.
11205 * i386-nto-tdep.c (i386nto_sigcontext_addr): Likewise.
11206 * i386fbsd-tdep.c (i386fbsd_supply_uthread)
11207 (i386fbsd_collect_uthread): Likewise.
11208 * ia64-hpux-tdep.c (ia64_hpux_push_dummy_code): Likewise.
11209 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address): Likewise.
11210 * ia64-tdep.c (examine_prologue, ia64_frame_cache)
11211 (ia64_frame_prev_register, ia64_sigtramp_frame_cache)
11212 (ia64_sigtramp_frame_prev_register, ia64_access_reg)
11213 (ia64_access_rse_reg, ia64_libunwind_frame_this_id)
11214 (ia64_libunwind_frame_prev_register)
11215 (ia64_libunwind_sigtramp_frame_this_id)
11216 (ia64_find_global_pointer_from_dynamic_section)
11217 (find_extant_func_descr, find_func_descr, ia64_dummy_id)
11218 (ia64_unwind_pc): Likewise.
11219 * iq2000-tdep.c (iq2000_store_return_value): Likewise.
11220 * m68hc11-tdep.c (m68hc11_push_dummy_call)
11221 (m68hc11_extract_return_value): Likewise.
11222 * m68klinux-nat.c (fetch_register, store_register): Likewise.
11223 * mep-tdep.c (mep_pseudo_cr32_read, mep_pseudo_cr32_write)
11224 (mep_get_insn, mep_push_dummy_call): Likewise.
11225 * mips-linux-tdep.c (mips_linux_get_longjmp_target)
11226 (mips_linux_in_dynsym_stub): Likewise.
11227 * mn10300-tdep.c (mep_pseudo_cr32_write): Likewise.
11228 * ppc-linux-nat.c (fetch_register, store_register): Likewise.
11229 * regcache.c (dump_endian_bytes): Change type of parameter 'buf'
11230 to gdb_byte.
11231 * remote-mips.c (mips_set_register): Likewise.
11232 * remote-sim.c (gdbsim_fetch_register): Likewise.
11233 * score-tdep.c (score7_fetch_inst): Change type of parameter
11234 'memblock' and local 'buf' to gdb_byte.
11235 (score7_malloc_and_get_memblock): Change return type to gdb_byte.
11236 Change type of local 'buf' to gdb_byte. Adjust.
11237 (score7_adjust_memblock_ptr): Change type of parameter 'memblock'
11238 to gdb_byte**.
11239 (score7_analyze_prologue): Change type of 'memblock' and
11240 'memblock_ptr' locals to gdb_byte*.
11241 * sh64-tdep.c (sh64_extract_return_value)
11242 (sh64_store_return_value): Change type of local 'buf' to gdb_byte.
11243 * solib-darwin.c (darwin_current_sos, darwin_read_exec_load_addr):
11244 * solib-pa64.c (pa64_solib_create_inferior_hook)
11245 (pa64_open_symbol_file_object): Remove local 'buf'.
11246 * solib-som.c (som_solib_create_inferior_hook, link_map_start)
11247 (som_open_symbol_file_object): Likewise.
11248 * solib-spu.c (spu_current_sos): Likewise.
11249 * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
11250 * spu-multiarch.c (parse_spufs_run, spu_fetch_registers)
11251 (spu_store_registers): Likewise.
11252 * target.c (debug_print_register): Likewise.
11253 * tic6x-tdep.c (tic6x_get_longjmp_target): Likewise.
11254 * xstormy16-tdep.c (xstormy16_store_return_value)
11255 (xstormy16_push_dummy_call, xstormy16_resolve_jmp_table_entry)
11256 (xstormy16_find_jmp_table_entry): Likewise.
11257
11258 2013-03-01 Jiong Wang <jiwang@tilera.com>
11259
11260 * tilegx-tdep.c (tilegx_get_longjmp_target): New function.
11261 (tilegx_gdbarch_init): Install it.
11262
11263 2013-02-28 Tom Tromey <tromey@redhat.com>
11264
11265 * python/py-arch.c (archpy_disassemble): Use PyInt_Check and
11266 PyLong_Check.
11267
11268 2013-02-28 Doug Evans <dje@google.com>
11269
11270 * python/py-finishbreakpoint.c (bpfinishpy_init): gcc -Wall lint.
11271 * python/python.c (gdbpy_find_pc_line): Ditto.
11272
11273 2013-02-28 Tom Tromey <tromey@redhat.com>
11274
11275 * contrib/excheck.py: New file.
11276 * contrib/exsummary.py: New file.
11277 * contrib/gcc-with-excheck: New file.
11278
11279 2013-02-28 Tom Tromey <tromey@redhat.com>
11280
11281 * python/python.c (gdbpy_print_stack): Call begin_line and
11282 fprintf_filtered inside TRY_CATCH.
11283
11284 2013-02-28 Tom Tromey <tromey@redhat.com>
11285
11286 * python/python.c (gdbpy_find_pc_line): Call find_pc_line
11287 inside TRY_CATCH.
11288
11289 2013-02-28 Tom Tromey <tromey@redhat.com>
11290
11291 * py-finishbreakpoint.c (bpfinishpy_init): Reorganize to call
11292 frame_object_to_frame_info inside TRY_CATCH.
11293
11294 2013-02-28 Tom Tromey <tromey@redhat.com>
11295
11296 * py-block.c (gdbpy_block_for_pc): Call block_for_pc inside
11297 TRY_CATCH.
11298
11299 2013-02-28 Tom Tromey <tromey@redhat.com>
11300
11301 * objfiles.h (ALL_PSPACE_OBJFILES): Remove trailing backlash.
11302
11303 2013-02-27 Corinna Vinschen <vinschen@redhat.com>
11304
11305 * windows-nat.c: Throughout, fix format strings and casts of
11306 printf-like functions to avoid type related warnings on all
11307 platforms.
11308 (handle_output_debug_string): Fetch context information address
11309 from debug string using string_to_core_addr.
11310
11311 2013-02-27 Jiong Wang <jiwang@tilera.com>
11312
11313 * regformats/reg-tilegx.dat (name): Change abi name to "tilegx".
11314 * regformats/reg-tilegx32.dat: New.
11315
11316 2013-02-27 Jiong Wang <jiwang@tilera.com>
11317
11318 * configure.tgt (tilegx-*-linux*): Enable gdbserver.
11319
11320 2013-02-27 Jiong Wang <jiwang@tilera.com>
11321
11322 * configure.tgt (tilegx-*-linux*): Replace whitespace with tab.
11323
11324 2013-02-27 Yao Qi <yao@codesourcery.com>
11325 Pedro Alves <palves@redhat.com>
11326
11327 * tracepoint.c (tfile_trace_find): For tfind
11328 pc/tp/range/outside, look for the next trace frame instead of
11329 always starting from frame 0.
11330
11331 2013-02-26 Anthony Green <green@moxielogic.com>
11332
11333 * configure.tgt: Add support for moxie-*-rtems* target.
11334
11335 2013-02-25 Pedro Alves <palves@redhat.com>
11336
11337 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Change
11338 warning text.
11339
11340 2013-02-24 Maciej W. Rozycki <macro@codesourcery.com>
11341
11342 * mips-tdep.c (mips32_scan_prologue): Reset frame_offset to zero
11343 if $fp is used as the virtual frame pointer.
11344
11345 2013-02-23 Alan Modra <amodra@gmail.com>
11346
11347 * elfread.c (elf_symtab_read): Do not use udata.p here to find
11348 symbol size.
11349 * ppc64-tdep.c (ppc64_elf_make_msymbol_special): New function.
11350 * ppc64-tdep.h (ppc64_elf_make_msymbol_special): Declare.
11351 * ppc-linux-tdep.c (ppc_linux_init_abi): Set up to use the above.
11352 * ppcfbsd-tdep.c (ppcfbsd_init_abi): Likewise.
11353
11354 2013-02-22 Jan Kratochvil <jan.kratochvil@redhat.com>
11355
11356 Code cleanup.
11357 * elfread.c (build_id_bfd_get): Make the return type const.
11358 (build_id_verify): Make the check parameter const.
11359 (build_id_to_debug_filename): Make the build_id parameter and variable
11360 data const.
11361 (find_separate_debug_file_by_buildid): Make the variable build_id const.
11362
11363 2013-02-21 Alan Modra <amodra@gmail.com>
11364
11365 * elfread.c (build_id_bfd_get): Adjust for elf_tdata changes.
11366
11367 2013-02-20 Siva Chandra Reddy <sivachandra@google.com>
11368
11369 Add a new method 'disassemble' to gdb.Architecture class.
11370 * python/py-arch.c (archpy_disassmble): Implementation of the
11371 new method gdb.Architecture.disassemble.
11372 (arch_object_methods): Add entry for the new method.
11373
11374 2013-02-20 Jiong Wang <jiwang@tilera.com>
11375
11376 * MAINTAINERS (Write After Approval): Add myself to the list.
11377
11378 2013-02-19 Pedro Alves <palves@redhat.com>
11379
11380 Garbage collect 'struct monitor_ops'::load_routine.
11381
11382 * monitor.h (struct monitor_ops) <load_routine>: Remove field.
11383 * monitor.c (monitor_load): No longer call
11384 current_monitor->load_routine.
11385 * dbug-rom.c (init_dbug_cmds): Don't set 'load_routine'.
11386 * m32r-rom.c (init_m32r_cmds): Don't set 'load_routine'.
11387 * ppcbug-rom.c (init_ppc_cmds): Don't set 'load_routine'.
11388
11389 2013-02-19 Pedro Alves <palves@redhat.com>
11390
11391 PR gdb/15161
11392
11393 Harmonize with generic_load.
11394
11395 * monitor.c: Include "readline/readline.h".
11396 (monitor_load): Rename parameter 'file' to 'args'. Use build_argv
11397 instead of sscanf. Use CORE_ADDR/strtoulst instead of unsigned
11398 long/strtol for the 'load_offset' local. Error out if no argument
11399 is given or if too many arguments are given. Tilde expand the
11400 passed in file name.
11401
11402 2013-02-19 Kai Tietz <ktietz@redhat.com>
11403
11404 PR gdb/15161
11405 * symfile.c (load_section_data): Change type of load_offset
11406 to CORE_ADDR.
11407 (generic_load): User strtoulst instead of strtoul for conversion
11408 of load_offset.
11409
11410 2013-02-19 Jiong Wang <jiwang@tilera.com>
11411
11412 * tilegx-tdep.c (tilegx_analyze_prologue): add check for
11413 for return address, "lr" register, saved on stack.
11414 * tilegx-tdep.c (tilegx_frame_cache): update "PC" reg
11415 after we invoke tilegx_analyze_prologue.
11416
11417 2013-02-19 Jiong Wang <jiwang@tilera.com>
11418
11419 * tilegx-tdep.c (itilegx_gdbarch_init): char type should be signed.
11420
11421 2013-02-19 Jiong Wang <jiwang@tilera.com>
11422
11423 * tilegx-tdep.c (tilegx_skip_prologue): Use skip_prologue_using_sal.
11424
11425 2013-02-19 Jiong Wang <jiwang@tilera.com>
11426
11427 * tilegx-tdep.c (INT_SWINT_1_SIGRETURN): New macro.
11428 (tilegx_write_pc): New function.
11429 (tilegx_cannot_reference_register): Return zero if REGNO
11430 is TILEGX_FAULTNUM_REGNUM.
11431 (tilegx_gdbarch_init): Add call to set_gdbarch_write_pc.
11432 (tilegx_register_name): Add handling of "faultnum" register.
11433 * tilegx-tdep.h (enum tilegx_regnum): Add TILEGX_FAULTNUM_REGNUM.
11434 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Add
11435 handling of TILEGX_FAULTNUM_REGNUM.
11436 * tilegx-linux-nat.c (regmap): Add entry for TILEGX_FAULTNUM_REGNUM.
11437
11438 2013-02-19 Jiong Wang <jiwang@tilera.com>
11439
11440 * tilegx-tdep.c (tilegx_push_dummy_call): args pushed on stack
11441 should be aligned to 64bit.
11442
11443 2013-02-19 Kai Tietz <ktietz@redhat.com>
11444
11445 * windows-nat.c (windows_xfer_memory): Fix debug-output
11446 for LLP64.
11447
11448 2013-02-19 Lei Liu <lei.liu2@windriver.com>
11449
11450 * mips-linux-nat.c (mips64_linux_regsets_store_registers):
11451 Don't check DSP register number if HAVE_DSP is not set.
11452
11453 2013-02-19 Alan Modra <amodra@gmail.com>
11454
11455 * elfread.c (struct build_id): Delete. Use struct elf_build_id
11456 throughout file instead.
11457 (build_id_bfd_get): Update to use new elf_tdata build_id field.
11458 Don't xmalloc return value.
11459 (build_id_verify): Similarly. Don't xfree.
11460 (build_id_to_debug_filename): Update.
11461 (find_separate_debug_file_by_buildid): Update, don't xfree.
11462
11463 2013-02-18 Tom Tromey <tromey@redhat.com>
11464
11465 PR gdb/15102:
11466 * dwarf2read.c (read_subrange_type): Use result of
11467 'check_typedef'.
11468
11469 2013-02-16 Yuanhui Zhang <asmwarrior@gmail.com>
11470
11471 * frame.c: Remove one extra white space after #include
11472 directive.
11473
11474 2013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
11475
11476 * contrib/cc-with-tweaks.sh: Extend the comment for -p option.
11477
11478 2013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
11479
11480 * gdb-gdb.gdb.in: Wrap set complaints, b internal_error, b info_command
11481 and dir commands into an if block.
11482
11483 2013-02-15 Sanimir Agovic <sanimir.agovic@intel.com>
11484
11485 * python/py-breakpoint (struct pybp_code): Use int instead of
11486 enum type_code.
11487
11488 2013-02-15 Pedro Alves <pedro@codesourcery.com>
11489 Hafiz Abid Qadeer <abidh@codesourcery.com>
11490
11491 * NEWS: Mention new field "trace-file".
11492 * tracepoint.c (trace_status_mi): Output "trace-file" field.
11493 (tfile_open): Record the trace file's filename in the trace
11494 status.
11495 (tfile_files_info): Mention the name of the trace file.
11496 Check the "filename" field explicitely.
11497 (trace_status_command): Explicitely check "filename" field.
11498 (trace_find_command): Ditto.
11499 (trace_find_pc_command): Ditto.
11500 (trace_find_tracepoint_command): Ditto.
11501 (trace_find_line_command): Ditto.
11502 (trace_find_range_command): Ditto.
11503 (trace_find_outside_command): Ditto.
11504 * tracepoint.h (struct trace_status) <from_file>: Rename it
11505 to "filename" and make it hold the trace file's filename
11506 instead of a boolean.
11507 * remote.c (remote_get_trace_status): Initialize "filename"
11508 field with NULL instead of 0.
11509
11510 2013-02-15 Yao Qi <yao@codesourcery.com>
11511
11512 * remote.c: Fix a typo.
11513
11514 2013-02-14 Pierre Muller <muller@sourceware.org>
11515
11516 * contrib/ari/gdb_ari.sh (GNU/Linux rule): Remove.
11517
11518 2013-02-14 Pedro Alves <palves@redhat.com>
11519
11520 * utils.c (savestring): Don't #undef it. Move function to
11521 common/common-utils.c.
11522 * common/common-utils.c: Include gdb_string.h.
11523 (savestring): Move here from utils.c.
11524 * common/common-utils.h (savestring): Declare.
11525
11526 2013-02-14 Pedro Alves <palves@redhat.com>
11527
11528 * utils.c (savestring): Rename parameter 'size' to 'len'.
11529
11530 2013-02-14 Pedro Alves <palves@redhat.com>
11531 Yufeng Zhang <yufeng.zhang@arm.com>
11532
11533 * aarch64-linux-nat.c (aarch64_init_debug_reg_state): Delete.
11534 (aarch64_inferior_data, struct aarch64_inferior_data):
11535 Delete.
11536 (struct aarch64_process_info): New.
11537 (aarch64_process_list): New global.
11538 (aarch64_find_process_pid, aarch64_add_process)
11539 (aarch64_process_info_get): New functions.
11540 (aarch64_inferior_data_get): Delete.
11541 (aarch64_process_info_get): New function.
11542 (aarch64_forget_process): New function.
11543 (aarch64_get_debug_reg_state): New parameter 'pid'. Reimplement.
11544 (aarch64_linux_prepare_to_resume): Pass the lwp's pid to
11545 aarch64_get_debug_reg_state.
11546 (aarch64_notify_debug_reg_change): Use iterate_over_lwps
11547 instead of linux_nat_iterate_watchpoint_lwps.
11548 (aarch64_linux_new_fork): New function.
11549 (aarch64_linux_child_post_startup_inferior): Use
11550 aarch64_forget_process instead of aarch64_init_debug_reg_state.
11551 (aarch64_handle_breakpoint, aarch64_linux_insert_hw_breakpoint)
11552 (aarch64_linux_remove_hw_breakpoint)
11553 (aarch64_handle_aligned_watchpoint)
11554 (aarch64_handle_unaligned_watchpoint)
11555 (aarch64_linux_insert_watchpoint)
11556 (aarch64_linux_remove_watchpoint)
11557 (aarch64_linux_stopped_data_address): Adjust to pass the current
11558 process id to aarch64_debug_reg_state.
11559 (_initialize_aarch64_linux_nat): Install aarch64_linux_new_fork as
11560 linux_nat_new_fork hook, and aarch64_forget_process as
11561 linux_nat_forget_process hook; remove the call to
11562 register_inferior_data_with_cleanup.
11563
11564 2013-02-14 Pedro Alves <palves@redhat.com>
11565
11566 * eval.c (evaluate_subexp_for_address) <default_case_after_eval,
11567 EVAL_AVOID_SIDE_EFFECTS>: Swap and handle TYPE_CODE_REF before
11568 lval_memory.
11569
11570 2013-02-14 Pedro Alves <pedro@codesourcery.com>
11571 Hafiz Abid Qadeer <abidh@codesourcery.com>
11572
11573 * tracepoint.h (validate_trace_state_variable_name): Declare.
11574 * tracepoint.c (validate_trace_state_variable_name): New.
11575 (trace_variable_command): Parse the trace state variable's name
11576 without using parse_expression. Do several validations.
11577 * mi/mi-main.c (mi_cmd_trace_define_variable): Don't parse the
11578 trace state variable's name with parse_expression. Validate it.
11579
11580 2013-02-14 Yao Qi <yao@codesourcery.com>
11581
11582 * infcmd.c (breakpoint_proceeded): Remove it.
11583
11584 2013-02-14 Yao Qi <yao@codesourcery.com>
11585
11586 * tracepoint.c (end_actions_pseudocommand): Make it static.
11587 (while_stepping_pseudocommand): Likewise.
11588 * tracepoint.h (end_actions_pseudocommand): Remove the
11589 declaration.
11590 (while_stepping_pseudocommand): Likewise.
11591
11592 2013-02-14 Yao Qi <yao@codesourcery.com>
11593
11594 * cli/cli-decode.c (help_cmd): Remove the declaration of
11595 "cmdlist".
11596 (help_all): Likewise.
11597
11598 2013-02-13 Pedro Alves <palves@redhat.com>
11599
11600 * amd64-linux-nat.c (update_debug_registers_callback):
11601 Update comment.
11602 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
11603 iterate_over_lwps.
11604 (amd64_linux_prepare_to_resume): Pass the lwp's pid to
11605 i386_debug_reg_state.
11606 (amd64_linux_new_fork): New function.
11607 (_initialize_amd64_linux_nat): Install amd64_linux_new_fork as
11608 linux_nat_new_fork hook, and i386_forget_process as
11609 linux_nat_forget_process hook.
11610 * i386-linux-nat.c (update_debug_registers_callback):
11611 Update comment.
11612 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
11613 iterate_over_lwps.
11614 (i386_linux_prepare_to_resume): Pass the lwp's pid to
11615 i386_debug_reg_state.
11616 (i386_linux_new_fork): New function.
11617 (_initialize_i386_linux_nat): Install i386_linux_new_fork as
11618 linux_nat_new_fork hook, and i386_forget_process as
11619 linux_nat_forget_process hook.
11620 * i386-nat.c (i386_init_dregs): Delete.
11621 (i386_inferior_data, struct i386_inferior_data):
11622 Delete.
11623 (struct i386_process_info): New.
11624 (i386_process_list): New global.
11625 (i386_find_process_pid, i386_add_process, i386_process_info_get):
11626 New functions.
11627 (i386_inferior_data_get): Delete.
11628 (i386_process_info_get): New function.
11629 (i386_debug_reg_state): New parameter 'pid'. Reimplement.
11630 (i386_forget_process): New function.
11631 (i386_cleanup_dregs): Rewrite.
11632 (i386_update_inferior_debug_regs, i386_insert_watchpoint)
11633 (i386_remove_watchpoint, i386_region_ok_for_watchpoint)
11634 (i386_stopped_data_address, i386_insert_hw_breakpoint)
11635 (i386_remove_hw_breakpoint): Adjust to pass the current process id
11636 to i386_debug_reg_state.
11637 (i386_use_watchpoints): Don't register inferior data.
11638 * i386-nat.h (i386_debug_reg_state): Add new 'pid' parameter, and
11639 adjust comment.
11640 (i386_forget_process): Declare.
11641 * linux-fork.c (delete_fork): Call linux_nat_forget_process.
11642 * linux-nat.c (linux_nat_new_fork, linux_nat_forget_process_hook):
11643 New static globals.
11644 (linux_child_follow_fork): Don't call linux_nat_new_thread here.
11645 (add_initial_lwp): New, factored out from ...
11646 (add_lwp): ... this. Don't check the number of lwps before
11647 calling linux_nat_new_thread.
11648 (linux_nat_iterate_watchpoint_lwps): Delete.
11649 (linux_nat_attach): Use add_initial_lwp instead of add_lwp.
11650 (linux_handle_extended_wait): Call the linux_nat_new_fork hook on
11651 forks and vforks.
11652 (linux_nat_wait_1): Use add_initial_lwp instead of add_lwp for the
11653 initial lwp.
11654 (linux_nat_kill, linux_nat_mourn_inferior): Call
11655 linux_nat_forget_process.
11656 (linux_nat_set_new_fork, linux_nat_set_forget_process)
11657 (linux_nat_forget_process): New functions.
11658 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): Delete
11659 type.
11660 (linux_nat_iterate_watchpoint_lwps): Delete declaration.
11661 (linux_nat_new_fork_ftype, linux_nat_forget_process_ftype): New
11662 types.
11663 (linux_nat_set_new_fork, linux_nat_set_forget_process)
11664 (linux_nat_forget_process): New declarations.
11665
11666 * amd64fbsd-nat.c (super_mourn_inferior): New global.
11667 (amd64fbsd_mourn_inferior): New function.
11668 (_initialize_amd64fbsd_nat): Override to_mourn_inferior.
11669 * windows-nat.c (windows_detach): Call i386_cleanup_dregs.
11670
11671 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
11672
11673 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
11674 Adding _().
11675
11676 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
11677
11678 * aarch64-linux-nat.c (debug_reg_change_callback)
11679 (aarch64_linux_get_debug_reg_capacity): ARI fix: Replace %llx with
11680 %s and phex().
11681
11682 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
11683
11684 * aarch64-linux-nat.c (dr_changed_t): ARI fix: Replace long long
11685 with LONGEST.
11686
11687 2013-02-13 Pedro Alves <palves@redhat.com>
11688 Hafiz Abid Qadeer <abidh@codesourcery.com>
11689
11690 * c-lang.c (c_op_print_tab): Add entry for UNOP_PLUS.
11691
11692 2013-02-12 Tom Tromey <tromey@redhat.com>
11693
11694 PR symtab/11464:
11695 * c-exp.y (lex_one_token): Initialize other fields of yylval on
11696 NAME return.
11697 (classify_inner_name): Remove 'first_name' argument, add
11698 'context'. Remove unused variable.
11699 (yylex): Explicitly maintain the context type. Exit loop earlier
11700 if NAME result is seen.
11701
11702 2013-02-12 Pedro Alves <palves@redhat.com>
11703
11704 * amd64-darwin-tdep.c: Add (C) after Copyright.
11705 * cli/cli-cmds.h: Ditto.
11706 * cli/cli-decode.c: Ditto.
11707 * cli/cli-decode.h: Ditto.
11708 * cli/cli-dump.c: Ditto.
11709 * cli/cli-dump.h: Ditto.
11710 * cli/cli-interp.c: Ditto.
11711 * cli/cli-logging.c: Ditto.
11712 * cli/cli-script.c: Ditto.
11713 * cli/cli-script.h: Ditto.
11714 * cli/cli-setshow.c: Ditto.
11715 * cli/cli-setshow.h: Ditto.
11716 * cli/cli-utils.c: Ditto.
11717 * cli/cli-utils.h: Ditto.
11718 * config/alpha/nm-osf3.h: Ditto.
11719 * config/djgpp/djconfig.sh: Ditto.
11720 * config/i386/nm-fbsd.h: Ditto.
11721 * config/i386/nm-i386gnu.h: Ditto.
11722 * config/nm-linux.h: Ditto.
11723 * config/nm-nto.h: Ditto.
11724 * config/rs6000/nm-rs6000.h: Ditto.
11725 * config/sparc/nm-sol2.h: Ditto.
11726 * darwin-nat-info.c: Ditto.
11727 * dfp.c: Ditto.
11728 * dfp.h: Ditto.
11729 * gdb-demangle.h: Ditto.
11730 * i386-darwin-nat.c: Ditto.
11731 * i386-darwin-tdep.c: Ditto.
11732 * linux-fork.h: Ditto.
11733 * m32c-tdep.c: Ditto.
11734 * microblaze-linux-tdep.c: Ditto.
11735 * microblaze-rom.c: Ditto.
11736 * microblaze-tdep.c: Ditto.
11737 * microblaze-tdep.h: Ditto.
11738 * mips-linux-tdep.h: Ditto.
11739 * ppc-ravenscar-thread.c: Ditto.
11740 * ppc-ravenscar-thread.h: Ditto.
11741 * prologue-value.c: Ditto.
11742 * prologue-value.h: Ditto.
11743 * ravenscar-thread.c: Ditto.
11744 * ravenscar-thread.h: Ditto.
11745 * sparc-ravenscar-thread.c: Ditto.
11746 * sparc-ravenscar-thread.h: Ditto.
11747 * tilegx-linux-tdep.c: Ditto.
11748 * unwind_stop_reasons.def: Ditto.
11749 * windows-nat.h: Ditto.
11750 * xtensa-linux-tdep.c: Ditto.
11751 * xtensa-xtregs.c: Ditto.
11752 * regformats/regdat.sh: Ditto.
11753 * regformats/regdef.h: Ditto.
11754
11755 2013-02-12 Pedro Alves <palves@redhat.com>
11756
11757 * break-catch-sig.c: Update copyright years.
11758
11759 2013-02-11 Siva Chandra Reddy <sivachandra@google.com>
11760
11761 Add support for a destructor for ui_out data and use it to
11762 provide a ui_out destructor.
11763 * ui-out.h: Declare the new ui_out destructor.
11764 (ui_out_impl): Add a field for data destructor in ui_out_impl.
11765 * ui-out.c (default_data_destroy): Add a default data destructor
11766 which does nothing.
11767 (default_ui_out_impl): Set the new data_destroy field to
11768 default_data_destroy
11769 (uo_data_destroy): Local function which invokes the data
11770 destructor if present.
11771 (clear_table): Local function which clears the table data of a
11772 ui_out object.
11773 (ui_out_destroy): Public function which frees a ui_out object.
11774 (ui_out_table_end): Use the new clear_table function.
11775 * cli-out.c (cli_ui_out_impl): Set the new data_destroy field to
11776 NULL.
11777 * mi/mi-out.c (mi_ui_out_impl): Set the new data_destroy field
11778 to NULL.
11779
11780 2013-02-11 Doug Evans <dje@google.com>
11781
11782 * printcmd.c (printf_c_string,printf_wide_c_string): New functions.
11783 (printf_decfloat): New function. Broken out from ui_printf.
11784 Remove unnecessary code to shift the entire format string down.
11785 (printf_pointer): New function.
11786 (ui_printf): Code to print C strings, wide C strings, decfloats,
11787 and pointers moved to separate functions.
11788
11789 2013-02-11 Sergio Durigan Junior <sergiodj@redhat.com>
11790
11791 * valops.c (value_assign): Handling bitfield offset in
11792 `lval_internalvar_component' case.
11793
11794 2013-02-08 Doug Evans <dje@google.com>
11795
11796 * common/format.c (parse_format_string): Fix whitespace.
11797
11798 2013-02-08 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
11799
11800 * stack.c (return_command): Work around uninitialized variable
11801 warning.
11802
11803 2013-02-08 Yufeng Zhang <yufeng.zhang@arm.com>
11804
11805 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET): Change the
11806 number of the registers from 36 to 34.
11807
11808 2013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
11809
11810 * NEWS: Mention new AArch64 native and target support.
11811
11812 2013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
11813
11814 * MAINTAINERS (Write After Approval): Add myself.
11815
11816 2013-02-08 Jim MacArthur <jim.macarthur@arm.com>
11817 Marcus Shawcroft <marcus.shawcroft@arm.com>
11818 Nigel Stephens <nigel.stephens@arm.com>
11819 Yufeng Zhang <yufeng.zhang@arm.com>
11820
11821 * aarch64-linux-nat.c: New file.
11822 * config/aarch64/linux.mh: New file.
11823 * configure.host: Add AArch64.
11824 * Makefile.in (ALLDEPFILES): Add aarch64-linux-nat.c.
11825
11826 2013-02-07 Doug Evans <dje@google.com>
11827
11828 * cli/cli-cmds.c (_initialize_cli_cmds): Clarify argument to
11829 disassemble command.
11830
11831 2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
11832
11833 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
11834 set_gdbarch_fetch_tls_load_module_address.
11835
11836 2013-02-06 David S. Miller <davem@davemloft.net>
11837
11838 * sparc-tdep.c (sparc32_return_value): Handle writing return value when
11839 using RETURN_VALUE_ABI_PRESERVES_ADDRESS.
11840 * value.c (struct_return_convention): New function.
11841 (using_struct_return): Implement in terms of struct_return_convention.
11842 * value.h (struct_return_convention): Declare.
11843 * stack.c (return_command): Allow successful overriding of the return
11844 value when RETURN_VALUE_ABI_PRESERVES_ADDRESS.
11845
11846 2013-02-06 Tom Tromey <tromey@redhat.com>
11847
11848 * python/py-type.c (typy_strip_typedefs): Don't call check_typedef
11849 outside of TRY_CATCH.
11850
11851 2013-02-06 Yao Qi <yao@codesourcery.com>
11852
11853 * mi/mi-interp.c: Include "tracepoint.h".
11854 (mi_tsv_modified): Declare.
11855 (mi_tsv_created, mi_tsv_deleted): Update declaration.
11856 (mi_interpreter_init): Call observer_attach_tsv_modified.
11857 (mi_tsv_modified): New.
11858 (mi_tsv_created, mi_tsv_deleted): Update.
11859 * tracepoint.c (trace_variable_command): Call
11860 observer_notify_tsv_modified if the initial value of tsv is
11861 changed.
11862 (delete_trace_state_variable): Call
11863 observer_notify_tsv_deleted earlier.
11864 (trace_variable_command): Caller update.
11865 (create_tsv_from_upload): Likewise.
11866 * observer.sh: Declare "struct trace_state_variable".
11867
11868 * NEWS: Mention the new MI notification "=tsv-modified".
11869
11870 2013-02-05 Doug Evans <dje@google.com>
11871
11872 * completer.c (location_completer): Fix typo in comment.
11873
11874 2013-02-05 Jan Kratochvil <jan.kratochvil@redhat.com>
11875
11876 * breakpoint.c (add_location_to_breakpoint): Insert the location with
11877 ADDRESS sorted.
11878
11879 2013-02-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
11880
11881 * aarch64-tdep.c (aarch64_analyze_prologue): ARI fix:
11882 Refactor if statement to avoid trailing || operator.
11883
11884 2013-02-05 Andreas Tobler <andreast@fgznet.ch>
11885
11886 * NEWS: Add PowerPC FreeBSD as a new native configuration.
11887
11888 2013-02-04 Andreas Tobler <andreast@fgznet.ch>
11889
11890 * Makefile.in (ALL_TARGET_OBS): Add powerpc FreeBSD files.
11891 * configure.host: Add powerpc*-*-freebsd* target.
11892 * configure.tgt: Add target info for powerpc*-*-freebsd*.
11893 * ppcfbsd-nat.c, ppcfbsd-tdep.h, ppcfbsd-tdep.c: New files.
11894 * config/powerpc/fbsd.mh: New file.
11895
11896 2013-02-04 Sergio Durigan Junior <sergiodj@redhat.com>
11897 Denys Vlasenko <dvlasenk@redhat.com>
11898 Pedro Alves <palves@redhat.com>
11899
11900 * gdbarch.sh (elfcore_write_linux_prpsinfo): New F hook.
11901 (struct elf_internal_linux_prpsinfo): Forward declare.
11902 * gdbarch.h, gdbarch.c: Regenerate.
11903 * linux-tdep.c: Include `cli/cli-utils.h'.
11904 (linux_fill_prpsinfo): New function.
11905 (linux_make_corefile_notes): Use linux_fill_prpsinfo. If there's
11906 an elfcore_write_linux_prpsinfo hook, use it, otherwise, use
11907 elfcore_write_linux_prpsinfo32 or elfcore_write_linux_prpsinfo64
11908 depending on gdbarch pointer bitness.
11909 * ppc-linux-tdep.c: Include elf-bfd.h.
11910 (ppc_linux_init_abi): Hook in elfcore_write_ppc_linux_prpsinfo32
11911 on 32-bit.
11912
11913 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
11914 Marcus Shawcroft <marcus.shawcroft@arm.com>
11915 Nigel Stephens <nigel.stephens@arm.com>
11916 Yufeng Zhang <yufeng.zhang@arm.com>
11917
11918 * configure.tgt (aarch64*-*-linux*): Set build_gdbserver=yes.
11919
11920 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
11921 Marcus Shawcroft <marcus.shawcroft@arm.com>
11922 Nigel Stephens <nigel.stephens@arm.com>
11923 Yufeng Zhang <yufeng.zhang@arm.com>
11924
11925 * aarch64-newlib-tdep.c: New file.
11926 * configure.tgt: Add aarch64-newlib-tdep.o to gdb_target_obs of
11927 aarch64*-*-elf.
11928 * defs.h (enum gdb_osabi): Add GDB_OSABI_NEWLIB.
11929 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-newlib-tdep.o.
11930 (ALLDEPFILES): Add aarch64-newlib-tdep.c.
11931 * osabi.c (gdb_osabi_names): Add "Newlib".
11932
11933 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
11934 Marcus Shawcroft <marcus.shawcroft@arm.com>
11935 Nigel Stephens <nigel.stephens@arm.com>
11936 Yufeng Zhang <yufeng.zhang@arm.com>
11937
11938 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-linux-tdep.o.
11939 (ALLDEPFILES): Add aarch64-linux-tdep.c.
11940 * aarch64-linux-tdep.c: New file.
11941 * aarch64-linux-tdep.h: New file.
11942 * aarch64-tdep.h (gdbarch_tdep): Define gregset and fpregset.
11943 * configure.tgt: Add aarch64-none-linux-gnu.
11944
11945 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
11946 Marcus Shawcroft <marcus.shawcroft@arm.com>
11947 Nigel Stephens <nigel.stephens@arm.com>
11948 Yufeng Zhang <yufeng.zhang@arm.com>
11949
11950 * Makefile.in (ALL_64_TARGET_OBS): Add arch64-tdep.o.
11951 (HFILES_NO_SRCDIR): Add aarch64-tdep.h.
11952 (ALLDEPFILES): Add aarch64-tdep.c.
11953 * aarch64-tdep.c: New file.
11954 * aarch64-tdep.h: New file.
11955 * configure.tgt: Add AArch64.
11956 * features/Makefile (WHICH): Add aarch64 and aarch64-without-fpu.
11957 (aarch64-expedite): New definition.
11958 * features/aarch64-core.xml: New file.
11959 * features/aarch64-fpu.xml: New file.
11960 * features/aarch64-without-fpu.c: New file (generated).
11961 * features/aarch64-without-fpu.xml: New file.
11962 * features/aarch64.c: New file (generated).
11963 * features/aarch64.xml: New file.
11964 * regformats/aarch64-without-fpu.dat: New file (generated).
11965 * regformats/aarch64.dat: New file (generated).
11966
11967 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11968
11969 * contrib/expect-read1.c: New file.
11970 * contrib/expect-read1.sh: New file.
11971
11972 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11973
11974 * dwarf2read.c (file_file_name): New function with code from
11975 file_full_name.
11976 (file_full_name): Move most of the code to file_file_name.
11977 (macro_start_file): Rename variable full_name to file_name and use
11978 file_file_name for it. Add comp_dir parameter to new_macro_table.
11979 * macrocmd.c (show_pp_source_pos): New variable fullname. Replace any
11980 macro_source_file->filename access by macro_source_fullname call.
11981 * macroscope.c (_initialize_macroscope): Update the new_macro_table
11982 caller.
11983 * macrotab.c (struct macro_table): New field comp_dir.
11984 (macro_include): New variables link_fullname and source_fullname.
11985 Replace any macro_source_file->filename access by macro_source_fullname
11986 call.
11987 (macro_lookup_inclusion): Remove the partial filenames checking code.
11988 (check_for_redefinition): New variables source_fullname and
11989 found_key_fullname. Replace any macro_source_file->filename access by
11990 macro_source_fullname call.
11991 (macro_undef): New variables source_fullname and key_fullname. Replace
11992 any macro_source_file->filename access by macro_source_fullname call.
11993 (macro_lookup_definition): New variables retval and source_fullname.
11994 Replace any macro_source_file->filename access by macro_source_fullname
11995 call.
11996 (foreach_macro): New variable key_fullname. Replace any
11997 macro_source_file->filename access by macro_source_fullname call.
11998 (foreach_macro_in_scope): New variable datum_fullname. Replace any
11999 macro_source_file->filename access by macro_source_fullname call.
12000 (new_macro_table): Add parameter comp_dir. Initialize T with it.
12001 (macro_source_fullname): New function.
12002 * macrotab.h (struct macro_source_file): Extent the filename field
12003 comment.
12004 (new_macro_table): New parameter comp_dir, add a comment for it.
12005 (macro_source_fullname): new declaration.
12006
12007 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12008
12009 * dwarf2read.c (dw2_map_symtabs_matching_filename): Move variable
12010 this_real_name to outer block. Use it also for
12011 compare_filenames_for_search.
12012 (dw2_expand_symtabs_matching): New variable this_real_name. Use it
12013 with dw2_get_real_path for file_matcher, considering also
12014 BASENAMES_MAY_DIFFER.
12015 (file_full_name): Prepend COMP_DIR even for relative lh->INCLUDE_DIRS.
12016
12017 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12018
12019 * dwarf2read.c (dw2_expand_symtabs_matching): Add basenames parameter
12020 to the file_matcher parameter. Pass 0 to it.
12021 (dwarf2_create_include_psymtab): Copy also DIRNAME.
12022 * psymtab.c (partial_map_symtabs_matching_filename): Drop handling of
12023 NULL psymtab_to_fullname result.
12024 (psymtab_to_fullname): Remove variable r. Never return NULL, assemble
12025 an expected filename instead.
12026 (expand_symtabs_matching_via_partial): Add basenames parameter to the
12027 file_matcher parameter. Call also psymtab_to_fullname, after newly
12028 considering BASENAMES_MAY_DIFFER.
12029 * source.c (rewrite_source_path): Remove static.
12030 * source.h (rewrite_source_path): New declaration.
12031 * symfile.h (struct quick_symbol_functions): Add basenames parameter to
12032 the expand_symtabs_matching field. Comment it.
12033 * symtab.c (file_matches): New function comment. Add parameter
12034 basenames, implement it.
12035 (search_symbols_file_matches): Add basenames parameter. Update the
12036 file_matches caller.
12037 (search_symbols): Match FILES also against symtab_to_fullname.
12038 Optimize it for BASENAMES_MAY_DIFFER.
12039
12040 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12041
12042 * source.c (print_source_lines_base): Print for TUI also "fullname".
12043 * tui/tui-data.c (init_content_element): Change tui_locator_element
12044 field to full_name.
12045 * tui/tui-data.h (struct tui_locator_element): Likewise.
12046 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Rename
12047 tui_update_locator_filename calls to tui_update_locator_fullname.
12048 Replace symtab->filename refererence by symtab_to_fullname call.
12049 * tui/tui-out.c (tui_field_string): Check for "fullname" now.
12050 * tui/tui-source.c (tui_set_source_content): Change tui_locator_element
12051 field to full_name. Replace symtab->filename refererence by
12052 symtab_to_fullname call.
12053 (tui_show_symtab_source): Rename parameter to fullname. Change
12054 tui_locator_element field to full_name.
12055 * tui/tui-stack.c: Include source.h.
12056 (tui_set_locator_filename): Rename the declaration to ...
12057 (tui_set_locator_fullname): ... here. Rename its parameter to
12058 fullname, updates its comment.
12059 (tui_set_locator_info): Rename its parameter to fullname.
12060 (tui_set_locator_filename): Rename the definition to ...
12061 (tui_set_locator_fullname): ... here. Rename its parameter to
12062 fullname, updates its comment. Change tui_locator_element field to
12063 full_name.
12064 (tui_set_locator_info): Rename its parameter to fullname.
12065 (tui_set_locator_info): Rename callee to tui_set_locator_fullname.
12066 (tui_update_locator_filename): Rename to ...
12067 (tui_update_locator_fullname): ... here. Rename callee to
12068 tui_set_locator_fullname.
12069 (tui_show_frame_info): Replace symtab->filename refererence by
12070 symtab_to_fullname call.
12071 * tui/tui-stack.h (tui_update_locator_filename): Rename to ...
12072 (tui_update_locator_fullname): ... here.
12073 * tui/tui-winsource.c (tui_display_main): Rename the callee to
12074 tui_update_locator_fullname. Replace symtab->filename refererence by
12075 symtab_to_fullname call.
12076 * tui/tui.c (tui_show_source): Rename its parameter to fullname.
12077 Rename the callee to tui_update_locator_fullname.
12078 * tui/tui.h (tui_show_source): Rename its parameter to fullname.
12079
12080 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12081
12082 * ada-lang.c (user_select_syms): Replace symtab->filename refererences
12083 by symtab_to_filename_for_display calls.
12084 * breakpoint.c (print_breakpoint_location, resolve_sal_pc): Likewise.
12085 (clear_command): New variable sal_fullname, initialize it. Replace
12086 compare_filenames_for_search by filename_cmp with sal_fullname.
12087 (say_where, update_static_tracepoint): Replace symtab->filename
12088 refererences by symtab_to_filename_for_display calls.
12089 * cli/cli-cmds.c (edit_command, list_command, ambiguous_line_spec):
12090 Likewise.
12091 * dwarf2read.c: Include source.h.
12092 (fixup_go_packaging): Replace symtab->filename refererences by
12093 symtab_to_filename_for_display calls.
12094 * linespec.c (add_sal_to_sals): Rename variable filename to fullname.
12095 Replace symtab->filename refererences by symtab_to_filename_for_display
12096 calls.
12097 (create_sals_line_offset, convert_linespec_to_sals): New variable
12098 fullname, initialize it, replace symtab->filename reference by the
12099 variable.
12100 * linux-fork.c: Include source.h.
12101 (info_checkpoints_command): Replace symtab->filename refererences by
12102 symtab_to_filename_for_display calls.
12103 * macroscope.c (sal_macro_scope): Replace symtab->filename refererences
12104 by symtab_to_filename_for_display calls.
12105 * mdebugread.c: Include source.h.
12106 (psymtab_to_symtab_1): Replace symtab->filename refererences by
12107 symtab_to_filename_for_display calls.
12108 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
12109 (mi_cmd_file_list_exec_source_files): Likewise.
12110 * printcmd.c: Include source.h.
12111 (build_address_symbolic): Replace symtab->filename refererences by
12112 symtab_to_filename_for_display calls.
12113 * psymtab.c (partial_map_symtabs_matching_filename)
12114 (read_psymtabs_with_fullname): Call compare_filenames_for_search also
12115 with psymtab_to_fullname.
12116 * python/py-symtab.c (stpy_str): Replace symtab->filename refererences
12117 by symtab_to_filename_for_display calls.
12118 (stpy_get_filename): New variable filename, initialize it, use instead
12119 of symtab->filename refererences.
12120 (salpy_str): Make variable filename const char *. Replace
12121 symtab->filename refererences by symtab_to_filename_for_display calls.
12122 * skip.c: Include source.h and filenames.h.
12123 (skip_file_command): Remove const from the symtab variable. Replace
12124 symtab->filename refererences by symtab_to_fullname call.
12125 (function_name_is_marked_for_skip): New variables searched_for_fullname
12126 and fullname. Use them to search also with symtab's fullname.
12127 * source.c (find_source_lines): Replace symtab->filename refererences
12128 by symtab_to_filename_for_display calls.
12129 (print_source_lines_base): New variable filename, use it instead of
12130 symtab->filename. Replace symtab->filename refererences by
12131 symtab_to_filename_for_display calls.
12132 (line_info, forward_search_command): Replace symtab->filename
12133 refererences by symtab_to_filename_for_display calls.
12134 (reverse_search_command): Replace symtab->filename refererences by
12135 symtab_to_filename_for_display calls. New variable filename for it.
12136 * stack.c (frame_info): Likewise.
12137 * symmisc.c: Include source.h.
12138 (dump_objfile, dump_symtab_1, maintenance_print_symbols)
12139 (maintenance_info_symtabs): Replace symtab->filename refererences by
12140 symtab_to_filename_for_display calls.
12141 * symtab.c (iterate_over_some_symtabs): Call
12142 compare_filenames_for_search also with symtab_to_fullname.
12143 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Replace
12144 symtab->filename refererences by symtab_to_filename_for_display calls.
12145 (find_line_symtab): Replace symtab->filename refererences by
12146 symtab_to_filename_for_display calls.
12147 (file_matches): Replace filename_cmp by compare_filenames_for_search.
12148 (print_symbol_info): Make the last parameter const char *. New
12149 variable s_filename. Use it in the function.
12150 (symtab_symbol_info): Make the last_filename variable const char *.
12151 Replace symtab->filename refererences by symtab_to_filename_for_display
12152 calls.
12153 (rbreak_command): New variable fullname. Use it. Replace
12154 symtab->filename refererence by symtab_to_filename_for_display call.
12155 * tracepoint.c (set_traceframe_context, trace_find_line_command)
12156 (print_one_static_tracepoint_marker): Replace symtab->filename
12157 refererences by symtab_to_filename_for_display calls.
12158 * tui/tui-source.c (tui_set_source_content): New variables filename and
12159 s_filename. Replace symtab->filename refererences by this variable.
12160 Replace other symtab->filename refererences by
12161 symtab_to_filename_for_display calls.
12162
12163 2013-02-03 Eldar Gaynetdinov <hal9000ed2k@gmail.com>
12164 Jan Kratochvil <jan.kratochvil@redhat.com>
12165
12166 Add a new variable that controls a way in which filenames are
12167 displayed.
12168 * NEWS (set filename-display): New entry.
12169 * source.c (filename_display_basename, filename_display_relative)
12170 (filename_display_absolute, filename_display_kind_names)
12171 (filename_display_string, show_filename_display_string)
12172 (symtab_to_filename_for_display): New.
12173 (_initialize_source): Added initialization of 'filename-display'
12174 variable.
12175 * source.h (symtab_to_filename_for_display): Added declaration.
12176 * stack.c (print_frame): Added new variable and calling of a new
12177 function and condition with this variable. Changed third argument of
12178 calling of a function.
12179
12180 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12181
12182 * tui/tui-data.c (init_win_info, tui_del_window, tui_free_window):
12183 Rename field reference filename to fullname.
12184 * tui/tui-data.h (struct tui_source_info): Rename field filename to
12185 fullname. New comment for it.
12186 * tui/tui-source.c (tui_set_source_content): Rename field reference
12187 filename to fullname. Initialize field by symtab_to_fullname now.
12188 * tui/tui-winsource.c (tui_update_breakpoint_info): Rename field
12189 reference filename to fullname. Use symtab_to_fullname during
12190 comparison.
12191
12192 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12193
12194 Code cleanup.
12195 * dwarf2read.c (dw2_expand_symtabs_with_filename): Rename to ...
12196 (dw2_expand_symtabs_with_fullname): ... here. Rename parameter
12197 filename to fullname. Rename variable this_name to this_fullname.
12198 Lowercase FILENAME_CMP call.
12199 (dw2_find_symbol_file): New comment for the returned string.
12200 (dwarf2_gdb_index_functions): Rename the function to
12201 dw2_expand_symtabs_with_fullname.
12202 * psymtab.c (read_psymtabs_with_filename): Rename to ...
12203 (read_psymtabs_with_fullname): ... here. Rename parameter filename to
12204 fullname.
12205 (psym_functions): Rename the function to read_psymtabs_with_fullname.
12206 * symfile.h (struct quick_symbol_functions): Rename field
12207 expand_symtabs_with_filename to expand_symtabs_with_fullname and its
12208 parameter filename to fullname. Document returned string meaning for
12209 find_symbol_file.
12210 * symtab.c (find_line_symtab): Rename the called function to
12211 expand_symtabs_with_fullname.
12212
12213 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12214
12215 Code cleanup.
12216 * breakpoint.c (clear_command): Remove variable is_abs, unify the
12217 call of filename_cmp with compare_filenames_for_search.
12218 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove variable
12219 is_abs, unify the call of FILENAME_CMP with
12220 compare_filenames_for_search. New gdb_asserts for real_path and name.
12221 Unify the call of compare_filenames_for_search with FILENAME_CMP.
12222 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
12223 * symfile.h (struct quick_symbol_functions): Extend the comment for
12224 map_symtabs_matching_filename.
12225 * symtab.c (compare_filenames_for_search): Remove the function comment
12226 relative path requirement. Handle absolute filenames, with a comment.
12227 (iterate_over_some_symtabs): Remove variable is_abs, unify the call of
12228 FILENAME_CMP with compare_filenames_for_search. New gdb_asserts for
12229 real_path and name. Unify the call of compare_filenames_for_search
12230 with FILENAME_CMP.
12231 (iterate_over_symtabs): New gdb_assert on REAL_PATH.
12232
12233 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12234
12235 Code cleanup.
12236 * breakpoint.c (print_breakpoint_location): Replace bp_location field
12237 source_file references by symtab field references. Remove variables
12238 sal and fullname.
12239 (momentary_breakpoint_from_master, add_location_to_breakpoint):
12240 (clear_command, say_where): Replace bp_location field source_file
12241 references by symtab field references.
12242 (bp_location_dtor): Remove the source_file reference.
12243 (update_static_tracepoint): Replace bp_location field source_file
12244 references by symtab field references.
12245 (breakpoint_free_objfile): New function.
12246 * breakpoint.h (struct bp_location): Extend the comment for line_number.
12247 Replace the field source_file by field symtab, extend its comment.
12248 (breakpoint_free_objfile): New declaration.
12249 * objfiles.c (free_objfile): Call breakpoint_free_objfile.
12250 * tui/tui-winsource.c (tui_update_breakpoint_info): Replace bp_location
12251 field source_file references by symtab field references.
12252
12253 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12254
12255 Replace xfullpath calls by gdb_realpath calls.
12256 * cli/cli-cmds.c (find_and_open_script): Remove xfullpath from the
12257 function comment.
12258 * dwarf2read.c (dw2_map_expand_apply): Remove parameter full_path.
12259 Remove it from the iterate_over_some_symtabs call.
12260 (dw2_map_symtabs_matching_filename): Remove parameter full_path.
12261 Remove it from the dw2_map_expand_apply calls, remove a block handling
12262 it.
12263 * psymtab.c (partial_map_expand_apply): Remove parameter full_path.
12264 Remove it from the iterate_over_some_symtabs call.
12265 (partial_map_symtabs_matching_filename): Remove parameter full_path.
12266 Remove it from the partial_map_expand_apply calls, remove a block
12267 handling it. Drop gdb_realpath call and cleanups from the real_path
12268 handling.
12269 * source.c (openp): Drop the comment part about xfullpath. Replace
12270 xfullpath calls by gdb_realpath calls.
12271 (find_and_open_source): Replace xfullpath call by gdb_realpath call.
12272 * symfile.h (struct quick_symbol_functions): Remove parameter full_path
12273 from method map_symtabs_matching_filename and its comment.
12274 * symmisc.c (maintenance_print_msymbols): Replace xfullpath call by
12275 gdb_realpath call.
12276 * symtab.c (iterate_over_some_symtabs): Remove parameter full_path,
12277 remove it also from the function comment, remove a block handling it.
12278 Drop gdb_realpath call and cleanups from the real_path handling.
12279 (iterate_over_symtabs): Drop variable full_path and its use.
12280 * symtab.h (iterate_over_some_symtabs): Remove parameter full_path.
12281 * utils.c (xfullpath): Remove.
12282 * utils.h (xfullpath): Remove.
12283
12284 2013-02-01 Andreas Tobler <andreast@fgznet.ch>
12285
12286 * Makefile.in (ALL_TARGET_OBS): Add ppc64-tdep.o.
12287 (HFILES_NO_SRCDIR): Add ppc64-tdep.h.
12288 (ALLDEPFILES): Add ppc64-tdep.c.
12289 * configure.tgt (powerpc-*-linux* | powerpc64-*-linux*): Add
12290 ppc64-tdep.o to gdb_target_obs.
12291 * ppc64-tdep.h: New file.
12292 * ppc64-tdep.c: New file.
12293 (insn_d, insn_ds, insn_xfx, ppc64_desc_entry_point): Move from
12294 ppc-linux-tdep.c to here.
12295 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN)
12296 (PPC64_STANDARD_LINKAGE2_LEN): Likewise and use ARRAY_SIZE macro.
12297 (ppc64_standard_linkage1_target, ppc64_standard_linkage2_target)
12298 (ppc64_standard_linkage3_target, ppc64_skip_trampoline_code): Move
12299 from ppc-linux-tdep.c to here.
12300 (ppc64_convert_from_func_ptr_addr): Rename from
12301 ppc64_linux_convert_from_func_ptr_addr to
12302 ppc64_convert_from_func_ptr_addr and move from ppc-linux-tdep.c to
12303 here.
12304 * rs6000-tdep.c:
12305 (read_insn): Move from ppc-linux-tdep.c to here.
12306 (insns_match_pattern, insn_d_field, insn_ds_field): Move
12307 from ppc-linux-tdep.c to here and rename them with the ppc_ prefix.
12308 * ppc-linux-tdep.c: Include ppc64-tdep.h.
12309 Removed above functions.
12310 (ppc_linux_init_abi): Adjust.
12311
12312 2013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
12313
12314 * ada-valprint.c (ada_print_floating): Remove unused 'len'.
12315
12316 2013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
12317
12318 * ada-lang.c (assign_aggregate): Remove unused 'is_array_aggregate'.
12319
12320 2013-02-01 Pedro Alves <palves@redhat.com>
12321
12322 * dummy-frame.c (deprecated_pc_in_call_dummy): Delete function.
12323 * frame.h (deprecated_pc_in_call_dummy): Delete declaration.
12324
12325 2013-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
12326
12327 * elfread.c (elf_symfile_read): Limit separate debug info additions to
12328 files with no separate debug info.
12329 * objfiles.c (add_separate_debug_objfile): Add gdb_assert calls.
12330 * symfile.c (read_symbols): Call find_separate_debug_file_in_section
12331 only for files with no separate debug info.
12332
12333 2013-01-31 Tom Tromey <tromey@redhat.com>
12334
12335 * jit.c (jit_program_space_data): Rename from jit_inferior_data;
12336 change type.
12337 (struct jit_program_space_data): Rename from jit_inferior_data.
12338 Update comments.
12339 (get_jit_program_space_data): Rename from get_jit_inferior_data.
12340 Change return type. Attach data to program space.
12341 (jit_program_space_data_cleanup): Rename from
12342 jit_inferior_data_cleanup; change argument type.
12343 (jit_read_descriptor): Change 'inf_data' argument to 'ps_data',
12344 change type.
12345 (jit_register_code): Update.
12346 (jit_update_inferior_cache): Remove.
12347 (jit_breakpoint_deleted): Get jit data from the location's program
12348 space.
12349 (jit_breakpoint_re_set_internal): Rename 'inf_data' argument to
12350 'ps_data', change type.
12351 (jit_inferior_init, jit_breakpoint_re_set_internal)
12352 (jit_event_handler): Update.
12353 (free_objfile_data): Get data from objfile's program space.
12354 (_initialize_jit): Update.
12355
12356 2013-01-31 Tom Tromey <tromey@redhat.com>
12357
12358 PR gdb/13987:
12359 * jit.c (struct jit_inferior_data) <cached_code_address,
12360 jit_breakpoint>: New fields.
12361 (jit_breakpoint_re_set_internal): Fix logging. Only create
12362 breakpoint if cached address has changed.
12363 (jit_update_inferior_cache, jit_breakpoint_deleted): New
12364 functions.
12365 (_initialize_jit): Register breakpoint deleted observer.
12366
12367 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12368
12369 * infrun.c (handle_syscall_event): Remove unused gdbarch.
12370 (save_infcall_suspend_state): Ifdef out unused inf.
12371 (restore_infcall_suspend_state): Ifdef out unused inf.
12372 * jit.c (jit_register_code): Remove unused i, b, inf_data.
12373 (jit_frame_sniffer): Remove unused inf_data.
12374
12375 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12376
12377 * c-exp.y (classify_inner_name): Remove unused type.
12378 * c-lang.c (c_printstr): Remove unused byte_order, i, things_printed,
12379 in_quotes, need_comma, wchar_buf, output, cleanup, iter, finished,
12380 need_escape.
12381 (c_get_string): Remove unused kind.
12382 * c-typeprint.c (c_type_print_args): Remove unused i, len, args, table2.
12383
12384 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12385
12386 * charset.c (intermediate_encoding): Remove unused i.
12387 * completer.c (signal_completer): Remove unused i.
12388 * continuations.c (discard_my_continuations_1): Remove unused
12389 continuation_ptr.
12390 * corelow.c (core_close): Remove unuseD name.
12391 (get_core_siginfo): Remove unused pid.
12392 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Remove unused
12393 i, cps.
12394 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove unused base_offset.
12395 (loclist_describe_location): Remove unused first.
12396 * event-top.c (command_line_handler): Remove unused got_eof.
12397 * exec.c (exec_close_1): Remove unused need_symtab_cleanup.
12398 (resize_section_table): Remove unused old_value.
12399 * gdb_bfd.c (gdb_bfd_map_section): Remove unused header.
12400 * gnu-v3-abi.c (compute_vtable_size): Remove unused addr.
12401 * i386-tdep.c (i386_process_record): Remove unused rex.
12402 * infcmd.c (get_return_value): Remove unused uiout.
12403 * jv-lang.c (type_from_class): Remove unused is_array.
12404 * jv-valprint.c (java_val_print): Remove unused i.
12405 * linux-nat.c (linux_nat_stop_lwp): Remove unused ptid.
12406 * linux-thread-db.c (thread_db_find_new_threads_2): Remove unuseD pid.
12407 * m2-typeprint.c (m2_print_type): Remove unused code.
12408 * macroexp.c (get_character_constant): Remove unused body_start.
12409 (macro_stringify): Remove unused result.
12410 * objc-lang.c (find_methods): Remove unused gdbarch.
12411 * objfiles.c (filter_overlapping_sections): Remove unused abfd1, abfd2.
12412 * regcache.c (regcache_cooked_read): Remove unused gdbarch.
12413 * stack.c (print_frame_args): Remove unused summary.
12414 * thread.c (thread_apply_command): Remove unused p.
12415 * valarith.c (value_x_unop): Remove unused mangle_ptr.
12416 * valops.c (search_struct_method): Remove unused skip.
12417 * valprint.c (generic_val_print): Remove unused byte_order.
12418 * varobj.c (varobj_update): Remove unused changed.
12419 * cli/cli-cmds.c (complete_command): Remove unused next_item.
12420 (alias_command): Remove unused c.
12421 * mi/mi-cmd-catch.c (mi_catch_load_unload): Remove unused c.
12422 * mi/mi-main.c (mi_cmd_data_write_register_values): Remove unused
12423 format.
12424 (mi_cmd_data_write_memory): Remove unused word_format.
12425 (mi_cmd_data_write_memory_bytes): Remove unused r.
12426 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Remove unused
12427 p_start, p_end.
12428 * python/python.c (_initialize_python): Remove unused cmd_name, cmd.
12429 * tui/tui-disasm.c (tui_set_disassem_content): Remove unused
12430 line_width.
12431
12432 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12433
12434 * dwarf2-frame.c (dwarf2_compile_cfa_to_ax): Remove unused num_regs.
12435 * symtab.c (iterate_over_symtabs): Remove unused s.
12436 (find_pc_sect_symtab): Remove unused pspAce.
12437 (find_pc_sect_line): Remove unused alt_symtab.
12438 (find_pcs_for_symtab_line): Remove unused ix, previous_function.
12439 (completion_list_add_name): Remove unused newsize.
12440
12441 2013-01-31 Tom Tromey <tromey@redhat.com>
12442
12443 PR c++/14998:
12444 * dwarf2read.c (read_tag_ptr_to_member_type): Handle
12445 TYPE_CODE_FUNC.
12446
12447 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12448
12449 * target.c (target_read_string): Remove unused origlen.
12450
12451 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12452
12453 * auto-load.c (auto_load_expand_dir_vars): Remove unused dir_vec.
12454 * ax-gdb.c (gen_printf): Remove unused expr, i, bot, fr, flen, fmt.
12455 * ax-general.c (ax_print): Remove unused is_float.
12456 * blockframe.c (block_innermost_frame): Remove unused start, end.
12457 * break-catch-sig.c (catch_signal_command): Remove unused gdbarch.
12458
12459 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12460
12461 * solib-svr4.c (svr4_keep_data_in_core): Remove unused lmo.
12462 (svr4_read_so_list): Remove unused lmo.
12463 * solib-target.c (solib_target_relocate_section_addresses): Remove
12464 unused flags.
12465
12466 2013-01-30 Tom Tromey <tromey@redhat.com>
12467
12468 * hppa-tdep.c (read_unwind_info): Use SECT_OFF_TEXT, not "0".
12469
12470 2013-01-30 Tom Tromey <tromey@redhat.com>
12471
12472 * symfile.c (get_file_crc): Use bfd_calc_gnu_debuglink_crc32.
12473 * utils.c (gnu_debuglink_crc32): Remove.
12474 * utils.h (gnu_debuglink_crc32): Don't declare.
12475
12476 2013-01-30 Tom Tromey <tromey@redhat.com>
12477
12478 * dwarf2read.c (compute_delayed_physnames, read_call_site_scope)
12479 (read_structure_type, read_enumeration_type): Remove cast.
12480
12481 2013-01-30 Tom Tromey <tromey@redhat.com>
12482
12483 * dwarf2read.c (read_namespace_type): Remove cast.
12484 (read_typedef): Likewise.
12485
12486 2013-01-29 Tom Tromey <tromey@redhat.com>
12487
12488 * dwarf2read.c (free_dwo_file): Remove assert.
12489
12490 2013-01-29 Tom Tromey <tromey@redhat.com>
12491
12492 * value.c (deprecated_set_value_modifiable): Remove.
12493 * value.h (deprecated_set_value_modifiable): Remove.
12494
12495 2013-01-28 Doug Evans <dje@google.com>
12496
12497 * dwarf2loc.c (dwarf2_find_location_expression): Don't add base address
12498 to addresses from dwo files.
12499
12500 2013-01-25 Siva Chandra Reddy <sivachandra@google.com>
12501
12502 * valops.c (find_overload_match): Remove unused argument 'lax'.
12503 * value.h: Remove unused argument 'lax' from the declaration of
12504 find_overload_match.
12505 * eval.c (value_subexp_standard): Do not pass a 'lax' argument
12506 to find_overload_match.
12507 * valarith.c (value_user_defined_cpp_op): Do not pass a 'lax'
12508 argument to find_overload_match.
12509
12510 2013-01-25 Tom Tromey <tromey@redhat.com>
12511
12512 * dwarf2read.c (processing_has_namespace_info): Remove.
12513 (struct dwarf2_cu) <processing_has_namespace_info>: New field.
12514 (process_die, read_func_scope, dwarf2_start_symtab)
12515 (new_symbol_full): Update.
12516
12517 2013-01-25 Tom Tromey <tromey@redhat.com>
12518
12519 * cp-namespace.c (cp_set_block_scope): Remove.
12520 * cp-support.h (cp_set_block_scope): Remove.
12521 * dbxread.c: Include block.h.
12522 (cp_set_block_scope): New function.
12523 (process_one_symbol): Update.
12524 * dwarf2read.c (read_func_scope): Use block_set_scope.
12525
12526 2013-01-25 Pedro Alves <palves@redhat.com>
12527
12528 * remote.c (add_current_inferior_and_thread): Tweak comment.
12529
12530 2013-01-25 Tom Tromey <tromey@redhat.com>
12531
12532 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
12533 (cp_add_using_directive): Add 'copy_names' argument.
12534 * cp-support.h (cp_add_using_directive): Update.
12535 (struct using_direct) <import_src, import_dest, alias,
12536 declaration>: Now const.
12537 * dwarf2read.c (read_import_statement): Use obconcat.
12538 Don't copy names passed to cp_add_using_directive.
12539
12540 2013-01-25 Tom Tromey <tromey@redhat.com>
12541
12542 * c-exp.y (qualified_name): Use TYPE_SAFE_NAME.
12543
12544 2013-01-25 Pedro Alves <palves@redhat.com>
12545
12546 * remote.c (stop_reply_extract_thread): New.
12547 (add_current_inferior_and_thread): New parameter 'wait_status'.
12548 Handle it.
12549 (remote_start_remote): Pass wait status to
12550 add_current_inferior_and_thread.
12551 (extended_remote_run): Update comment.
12552 (extended_remote_create_inferior_1): Pass wait status to
12553 add_current_inferior_and_thread.
12554
12555 2013-01-25 Andrew Burgess <aburgess@broadcom.com>
12556 Ulrich Weigand <uweigand@de.ibm.com>
12557
12558 * valarith.c (value_vector_widen): New function for replicating a
12559 scalar into a vector.
12560 (value_binop): Use value_vector_widen to widen scalar to vector
12561 rather than casting, this better matches gcc C behaviour.
12562 * valops.c (value_casst): Update logic for casting between vector
12563 types, and for casting from scalar to vector, try to match gcc C
12564 behaviour.
12565 * value.h (value_vector_widen): Declare.
12566 * opencl-lang.c (opencl_value_cast): New opencl specific casting
12567 function, handle special case for casting scalar to vector.
12568 (opencl_relop): Use opencl_value_cast.
12569 (evaluate_subexp_opencl): Use opencl_value_cast instead of
12570 value_cast, and handle BINOP_ASSIGN, UNOP_CAST, and UNOP_CAST_TYPE
12571 in order to use opencl_value_cast.
12572
12573 2013-01-25 Yao Qi <yao@codesourcery.com>
12574
12575 * event-loop.c: Include "queue.h".
12576 (gdb_event_p): New typedef.
12577 (DECLARE_QUEUE_P): Use.
12578 (DEFINE_QUEUE_P): Use.
12579 (async_queue_event): Remove.
12580 (gdb_event_xfree): New.
12581 (initialize_event_loop): New.
12582 (process_event): Use QUEUE macros.
12583 (event_queue): Remove.
12584 (gdb_wait_for_event): Caller update.
12585 (check_async_event_handlers): Likewise.
12586 (poll_timers): Likewise.
12587 * event-loop.h (initialize_event_loop): Declare.
12588 * event-loop.c (gdb_event_xfree): New.
12589 * top.c (gdb_init): Call initialize_event_loop.
12590
12591 2013-01-25 Yao Qi <yao@codesourcery.com>
12592
12593 * event-loop.c (async_queue_event): Remove one parameter
12594 'position'. Remove code handling 'position' == TAIL.
12595 (gdb_wait_for_event): Caller update.
12596 (check_async_event_handlers): Caller update.
12597 (poll_timers): Caller update.
12598 * event-loop.h (enum queue_position): Remove.
12599
12600 2013-01-25 Maxim Kuvyrkov <maxim@kugelworks.com>
12601
12602 * MAINTAINERS: Update my email.
12603
12604 2013-01-25 Yao Qi <yao@codesourcery.com>
12605
12606 * main.c (print_gdb_help): Remove "--epoch" from the help
12607 message.
12608
12609 2013-01-24 Ulrich Weigand  <uweigand@de.ibm.com>
12610
12611 * symtab.c (skip_prologue_using_sal): Consider a file
12612 change the same as an increased line number
12613
12614 2013-01-24 Tiago Stürmer Daitx  <tdaitx@linux.vnet.ibm.com>
12615
12616 * MAINTAINERS (Write After Approval): Add myself to the list.
12617
12618 2013-01-24 Tom Tromey <tromey@redhat.com>
12619
12620 * ada-lang.h (ada_decode_symbol): Make return type const.
12621 * ada-lang.c (ada_decode_symbol): Likewise.
12622
12623 2013-01-23 Doug Evans <dje@google.com>
12624
12625 * linespec.c (find_linespec_symbols): Make static.
12626
12627 2013-01-23 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
12628
12629 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Set correct
12630 type on float conversion for complex type.
12631
12632 2013-01-23 Siva Chandra Reddy <sivachandra@google.com>
12633
12634 Add a new class gdb.Architecture which exposes GDB's
12635 internal representation of architecture via GDB Python API.
12636 * Makefile.in: Add entries corresponding to the new file
12637 python/py-arch.c.
12638 * NEWS (Python Scripting): Add entries for the new class
12639 gdb.Architecture and the new method gdb.Frame.architecture.
12640 * python/py-arch.c: Implement gdb.Architecture class.
12641 * python/py-frame.c (frapy_arch): Implement the method
12642 gdb.Frame.architecture().
12643 (frame_object_methods): Add 'architecture' to the method table.
12644 * python/python-internal.h: Add declarations of new utility
12645 functions.
12646 * python/python.c (_initialize_python): Initialize
12647 gdb.Architecture class.
12648
12649 2013-01-23 Doug Evans <dje@google.com>
12650
12651 Work around binutils/15021.
12652 * dwarf2read.c (dwarf2_per_cu_data): Split imported_symtabs and
12653 type_unit_group out of union s. All uses updated.
12654 (read_index_from_section): Watch for index version 8.
12655 (follow_die_sig): If using .gdb_index version <= 7, record the TU as
12656 an imported symtab.
12657 (write_psymtabs_to_index): Increment version number to 8.
12658
12659 2013-01-22 Pedro Alves <palves@redhat.com>
12660
12661 * annotate.c (breakpoint_changed): Skip if breakpoint is not
12662 user-visible.
12663
12664 2013-01-22 Pedro Alves <palves@redhat.com>
12665
12666 * annotate.c (annotate_breakpoints_changed): Rename to ...
12667 (annotate_breakpoints_invalid): ... this. Make static.
12668 (breakpoint_changed): Adjust.
12669 (_initialize_annotate): Always install the observers. Install a
12670 "breakpoint_created" observer.
12671 * annotate.h (annotate_breakpoints_changed): Delete declaration.
12672 * breakpoint.c (set_breakpoint_condition)
12673 (breakpoint_set_commands, do_map_commands_command)
12674 (init_raw_breakpoint, clear_command, set_ignore_count)
12675 (enable_breakpoint_disp): No longer call
12676 annotate_breakpoints_changed.
12677
12678 2013-01-22 Pedro Alves <palves@redhat.com>
12679
12680 * annotate.c: Include "inferior.h".
12681 (frames_invalid_emitted)
12682 (breakpoints_invalid_emitted): New globals.
12683 (async_background_execution_p): New function.
12684 (annotate_breakpoints_changed, annotate_frames_invalid): Skip
12685 emitting the annotation if it has already been emitted.
12686 (annotate_display_prompt): New function.
12687 * annotate.h (annotate_display_prompt): New declaration.
12688 * event-top.c: Include annotate.h.
12689 (display_gdb_prompt): Call annotate_display_prompt.
12690
12691 2013-01-22 Pedro Alves <palves@redhat.com>
12692
12693 * annotate.c (ignore_count_changed): Delete.
12694 (annotate_breakpoints_changed): Don't clear ignore_count_changed.
12695 (annotate_ignore_count_change): Delete.
12696 (annotate_stopped): Don't emit a delayed breakpoints-changed
12697 annotation.
12698 * annotate.h (annotate_ignore_count_change): Delete.
12699 * breakpoint.c (bpstat_check_breakpoint_conditions): Don't call
12700 annotate_ignore_count_change.
12701
12702 2013-01-22 Tom Tromey <tromey@redhat.com>
12703
12704 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>: Only
12705 require_rvalue for a register location.
12706
12707 2013-01-21 Marc Khouzam <marc.khouzam@ericsson.com>
12708
12709 * breakpoint.c (print_one_breakpoint_location): Add MI
12710 field 'thread-groups' when printing a breakpoint.
12711 (output_thread_groups): New function.
12712
12713 2013-01-21 Siva Chandra Reddy <sivachandra@google.com>
12714
12715 * python/lib/gdb/commands/explore.py
12716 (CompoundExplorer.explore_expr): Correct the name of a method
12717 being invoked.
12718 (ExploreTypeCommand.invoke): Add a missing 'return'.
12719
12720 2013-01-21 Tom Tromey <tromey@redhat.com>
12721
12722 * gdb_obstack.h (obconcat): Move declaration here, from...
12723 * symfile.h (obconcat): ... here.
12724 * gdb_obstack.c: New file.
12725 (obconcat): Move from...
12726 * symfile.c (obconcat): ... here.
12727 * Makefile.in (SFILES): Add gdb_obstack.c.
12728 (COMMON_OBS): Add gdb_obstack.o.
12729
12730 2013-01-21 Tom Tromey <tromey@redhat.com>
12731
12732 * symfile.h (obsavestring): Don't declare.
12733 * symfile.c (obsavestring): Remove.
12734 * ada-exp.y: Use obstack_copy0, not obsavestring.
12735 * ada-lang.c: Use obstack_copy0, not obsavestring.
12736 * coffread.c: Use obstack_copy0, not obsavestring.
12737 * cp-namespace.c: Use obstack_copy0, not obsavestring.
12738 * dbxread.c: Use obstack_copy0, not obsavestring.
12739 * dwarf2read.c: Use obstack_copy0, not obsavestring.
12740 * jit.c: Use obstack_copy0, not obsavestring.
12741 * mdebugread.c: Use obstack_copy0, not obsavestring.
12742 * psymtab.c: Use obstack_copy0, not obsavestring.
12743 * stabsread.c: Use obstack_copy0, not obsavestring.
12744 * xcoffread.c: Use obstack_copy0, not obsavestring.
12745
12746 2013-01-21 Tom Tromey <tromey@redhat.com>
12747
12748 * dwarf2read.c (fixup_go_packaging): Save package name
12749 on objfile obstack.
12750 * gdbtypes.c (init_type): Don't copy name.
12751
12752 2013-01-21 Tom Tromey <tromey@redhat.com>
12753
12754 * dwarf2read.c (struct partial_die_info) <name, scope>: Now
12755 const.
12756 (struct attribute) <u.str>: Now const.
12757 (struct fnfieldlist) <name>: Now const.
12758 (dw2_get_file_names_reader, init_cutu_and_read_dies): Update.
12759 (partial_die_parent_scope): Make return type const.
12760 (partial_die_full_name, add_partial_symbol): Update.
12761 (dwarf2_compute_name, dwarf2_full_name, dwarf2_physname): Make
12762 'name' const.
12763 (find_file_and_directory): Make 'name' and 'comp_dir' const.
12764 (read_file_scope, read_func_scope, dwarf2_add_field)
12765 (dwarf2_add_member_fn, read_structure_type)
12766 (process_enumeration_scope, read_array_type, read_module_type)
12767 (read_base_type, read_subrange_type): Update.
12768 (dwarf2_start_symtab): Make 'name' and 'comp_dir' const.
12769 (new_symbol_full, guess_full_die_structure_name): Update.
12770 (dwarf2_canonicalize_name): Return const type. Make 'name' const.
12771 (dwarf2_name): Return const type.
12772 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make 'comp_dir'
12773 const.
12774
12775 2013-01-21 Tom Tromey <tromey@redhat.com>
12776
12777 * gdbtypes.c (init_type): Make 'name' const.
12778 * gdbtypes.h (init_type): Update.
12779
12780 2013-01-21 Tom Tromey <tromey@redhat.com>
12781
12782 * buildsym.c (patch_subfile_names): Use set_last_source_file.
12783 (start_symtab): Make 'name' and 'dirname' const. Use
12784 set_last_source_file.
12785 (restart_symtab, reset_symtab_globals): Use set_last_source_file.
12786 (last_source_file): Define. Now static.
12787 (set_last_source_file, get_last_source_file): New functions.
12788 * buildsym.h (last_source_file): Don't declare.
12789 (start_symtab): Update.
12790 (set_last_source_file, get_last_source_file): Declare.
12791 * coffread.c (complete_symtab): Use set_last_source_file.
12792 (coff_end_symtab): Likewise.
12793 (coff_symtab_read): Use set_last_source_file, get_last_source_file.
12794 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Use
12795 set_last_source_file.
12796 (process_one_symbol): Use get_last_source_file.
12797 * mdebugread.c (parse_partial_symbols): Use set_last_source_file.
12798 (psymtab_to_symtab_1): Use get_last_source_file.
12799 * xcoffread.c (process_linenos): Use get_last_source_file.
12800 (complete_symtab): Use set_last_source_file.
12801 (read_xcoff_symtab): Use set_last_source_file, get_last_source_file.
12802 (scan_xcoff_symtab): Use set_last_source_file.
12803
12804 2013-01-21 Tom Tromey <tromey@redhat.com>
12805
12806 * symtab.c (struct demangled_name_entry) <mangled>: Now const.
12807 (symbol_set_names): Remove casts. Handle field const-ness.
12808
12809 2013-01-21 Tom Tromey <tromey@redhat.com>
12810
12811 * dwarf2read.c (new_symbol_full): Remove cast.
12812 * symtab.c (symbol_set_demangled_name): Make 'name' const.
12813 * symtab.h (symbol_set_demangled_name): Update.
12814
12815 2013-01-21 Tom Tromey <tromey@redhat.com>
12816
12817 * main.c (captured_main): Call bfd_init.
12818
12819 2013-01-21 Tom Tromey <tromey@redhat.com>
12820
12821 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Don't set default ABI.
12822 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Set default ABI.
12823 * minsyms.c (install_minimal_symbols): Don't check for _Z symbols.
12824 * NEWS: Update.
12825
12826 2013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
12827
12828 * symmisc.c (maintenance_print_msymbols): Check also ST_DEV.
12829
12830 2013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
12831
12832 Fix gdb.fortran/common-block.exp crash in PIE mode.
12833 * dwarf2read.c (new_symbol_full) <DW_TAG_common_block>: Use
12834 LOC_COMMON_BLOCK.
12835 * f-valprint.c (info_common_command_for_block): Expect
12836 LOC_COMMON_BLOCK in gdb_assert.
12837 * symtab.h (struct general_symbol_info): Update comment for the
12838 common_block member.
12839 (domain_enum): Extend comment for the COMMON_BLOCK_DOMAIN member.
12840 (enum address_class): New member LOC_COMMON_BLOCK.
12841
12842 2013-01-18 David Blaikie <dblaikie@gmail.com>
12843
12844 * MAINTAINERS (Write After Approval): Add "David Blaikie".
12845
12846 2013-01-18 Tom Tromey <tromey@redhat.com>
12847
12848 PR c++/14999:
12849 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>:
12850 Call require_rvalue.
12851
12852 2013-01-18 Yao Qi <yao@codesourcery.com>
12853
12854 * dbxread.c (dbx_psymtab_to_symtab): Delete the declaration.
12855 (dbx_read_symtab): New declaration.
12856 (dbx_psymtab_to_symtab): Delete.
12857 (dbx_read_symtab): Rename from dbx_psymtab_to_symtab.
12858 Rename parameter PST to SELF. Exchanged two parameters.
12859 (start_psymtab): Caller update.
12860 * dwarf2read.c (dwarf2_psymtab_to_symtab): Delete the declaration.
12861 (dwarf2_read_symtab): New declaration.
12862 (dwarf2_psymtab_to_symtab): Delete.
12863 (dwarf2_read_symtab): Rename from dwarf2_psymtab_to_symtab.
12864 Rename parameter PST to SELF. Exchanged two parameters.
12865 (create_partial_symtab): Caller update.
12866 * mdebugread.c (mdebug_psymtab_to_symtab): Delete.
12867 (mdebug_read_symtab): Rename from mdebug_psymtab_to_symtab.
12868 Rename parameter PST to SELF. Exchanged two parameters.
12869 (parse_partial_symbols, new_psymtab): Caller update.
12870 * psympriv.h (struct partial_symtab) <read_symtab>: Exchange
12871 two parameters.
12872 * psymtab.c (psymtab_to_symtab): Caller update.
12873 * xcoffread.c (xcoff_psymtab_to_symtab): Delete.
12874 (xcoff_read_symtab): Rename from xcoff_psymtab_to_symtab.
12875 Rename parameter PST to SELF. Exchanged two parameters.
12876 (xcoff_start_psymtab): Caller update.
12877
12878 2013-01-18 Yao Qi <yao@codesourcery.com>
12879
12880 * infrun.c (proceed): Rename local variable 'oneproc' to
12881 'force_step'.
12882
12883 2013-01-17 Doug Evans <dje@google.com>
12884
12885 * dwarf2read.c (dw2_build_type_unit_groups_reader): Delete.
12886 (dw2_build_type_unit_groups): Delete. All uses updated.
12887
12888 * symtab.h (struct symbol_search): Add comment.
12889
12890 2013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
12891
12892 * symtab.c (compare_filenames_for_search): New comment for
12893 HAS_DRIVE_SPEC.
12894
12895 2013-01-17 Tom Tromey <tromey@redhat.com>
12896
12897 * cp-abi.c (cp_abi_completer): Fix typo in assignment.
12898
12899 2013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
12900
12901 * symtab.c (iterate_over_some_symtabs): New variable cleanups,
12902 initialize it by existing make_cleanup. Call new do_cleanups.
12903
12904 2013-01-17 Tom Tromey <tromey@redhat.com>
12905
12906 * cp-abi.c (cp_abi_completer): New function.
12907 (_initialize_cp_abi): Set completer for "set cp-abi".
12908
12909 2013-01-17 Tom Tromey <tromey@redhat.com>
12910
12911 * mem-break.c: Remove obsolete comment.
12912 * bfin-tdep.c (bfin_breakpoint_from_pc): Fix comment.
12913
12914 2012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
12915
12916 * jit.c (jit_reader_load_command): Interpret the jit reader name
12917 as an absolute path if it begins with a forward slash.
12918
12919 2012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
12920
12921 PR gdb/14550
12922
12923 * jit.c (finalize_symtab): Ensure that only the global block has a
12924 NULL superblock.
12925
12926 2013-01-17 Pedro Alves <palves@redhat.com>
12927
12928 * acinclude.m4: Include ../config/plugins.m4,
12929 ../config/largefile.m4 and ../config/lead-dot.m4. Add comments.
12930 * Makefile.in (aclocal_m4_deps): Update.
12931 * aclocal.m4: Renegerate.
12932
12933 2013-01-16 Doug Evans <dje@google.com>
12934
12935 * contrib/cc-with-tweaks.sh: Add references to Fission docs.
12936
12937 2013-01-16 Pedro Alves <palves@redhat.com>
12938 Tom Tromey <tromey@redhat.com>
12939
12940 PR cli/7221:
12941 * NEWS: Add "catch signal".
12942 * breakpoint.c (base_breakpoint_ops): No longer static.
12943 (bpstat_explains_signal): New function.
12944 (init_catchpoint): No longer static.
12945 (base_breakpoint_explains_signal): New function.
12946 (base_breakpoint_ops): Initialize new field.
12947 * breakpoint.h (enum bpstat_signal_value): New.
12948 (struct breakpoint_ops) <explains_signal>: New field.
12949 (bpstat_explains_signal): Remove macro, declare as function.
12950 (base_breakpoint_ops, init_catchpoint): Declare.
12951 * break-catch-sig.c: New file.
12952 * inferior.h (signal_catch_update): Declare.
12953 * infrun.c (signal_catch): New global.
12954 (handle_syscall_event): Update for change to
12955 bpstat_explains_signal.
12956 (handle_inferior_event): Likewise. Always handle random signals
12957 via bpstats.
12958 (signal_cache_update): Check signal_catch.
12959 (signal_catch_update): New function.
12960 (_initialize_infrun): Initialize signal_catch.
12961 * Makefile.in (SFILES): Add break-catch-sig.c.
12962 (COMMON_OBS): Add break-catch-sig.o.
12963
12964 2013-01-16 Tom Tromey <tromey@redhat.com>
12965
12966 * breakpoint.c (print_one_catch_fork, print_one_catch_vfork)
12967 (print_one_catch_solib, print_one_catch_syscall)
12968 (print_one_catch_exec, print_one_exception_catchpoint): Emit
12969 "catch-type".
12970
12971 2013-01-16 Yao Qi <yao@codesourcery.com>
12972
12973 * printcmd.c (current_display_number): Make it static.
12974
12975 2013-01-16 Yao Qi <yao@codesourcery.com>
12976
12977 * infcmd.c (step_once): Don't check '!single_inst' as it was
12978 checked before.
12979
12980 2013-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
12981
12982 * dwarf2read.c (psymtab_include_file_name): Extend the function comment.
12983
12984 2013-01-14 Tom Tromey <tromey@redhat.com>
12985
12986 * cli/cli-decode.c (add_setshow_string_noescape_cmd): Return the
12987 set command.
12988 * command.h (add_setshow_string_noescape_cmd): Update.
12989 * corefile.c (set_gnutarget_command): Remove trailing whitespace.
12990 (complete_set_gnutarget): New function.
12991 (_initialize_core): Set the "set gnutarget" completer.
12992
12993 2013-01-14 Tom Tromey <tromey@redhat.com>
12994
12995 PR symtab/14442:
12996 * c-typeprint.c (cp_type_print_method_args): Handle 'restrict'.
12997 (c_type_print_modifier): Likewise.
12998 * dwarf2read.c (read_tag_restrict_type): New function.
12999 (read_type_die_1): Handle DW_TAG_restrict_type.
13000 * gdbtypes.c (make_restrict_type): New function.
13001 (recursive_dump_type): Handle TYPE_RESTRICT.
13002 * gdbtypes.h (enum type_flag_values): Renumber.
13003 (enum type_instance_flag_value): Add
13004 TYPE_INSTANCE_FLAG_RESTRICT.
13005 (TYPE_RESTRICT): New macro.
13006 (make_restrict_type): Declare.
13007
13008 2013-01-14 Tom Tromey <tromey@redhat.com>
13009
13010 PR symtab/14931:
13011 * psymtab.c (struct psymtab_state): New.
13012 (discard_psymtabs_upto, make_cleanup_discard_psymtabs): New
13013 functions.
13014 * psympriv.h (make_cleanup_discard_psymtabs): Declare.
13015 * dwarf2read.c (dwarf2_build_psymtabs): Catch exceptions.
13016
13017 2013-01-14 Richard Sharman <richard_sharman@mitel.com>
13018 Pedro Alves <palves@redhat.com>
13019
13020 PR remote/14786
13021
13022 * remote.c (remote_threads_info): Make a copy of the reply from
13023 qfThreadInfo and use that instead of rs->buf.
13024
13025 2013-01-14 Yao Qi <yao@codesourcery.com>
13026
13027 * dbxread.c (dbx_psymtab_to_symtab_1): Don't check PST is NULL.
13028 (dbx_psymtab_to_symtab): Likewise.
13029 * dwarf2read.c (dwarf2_psymtab_to_symtab): Likewise.
13030 * mdebugread.c (mdebug_psymtab_to_symtab): Likewise.
13031 * xcoffread.c (xcoff_psymtab_to_symtab_1): Likewise.
13032
13033 2013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
13034
13035 * parse.c (parse_exp_in_context): New variable inner_chain. Call
13036 make_cleanup_restore_current_language. Call set_language. Move
13037 OLD_CHAIN and INNER_CHAIN cleanups.
13038 * utils.c (do_restore_current_language)
13039 (make_cleanup_restore_current_language): New functions.
13040 * utils.h (make_cleanup_restore_current_language): New declaration.
13041
13042 2013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
13043
13044 * source.c (symtab_to_fullname): Apply rewrite_source_path also for
13045 non-existing files.
13046
13047 * source.c (symtab_to_fullname): Do not prepend DIRNAME for
13048 non-existing files if FILENAME is already absolute.
13049
13050 2013-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
13051
13052 * macrocmd.c (macro_inform_no_debuginfo): Use puts_filtered instead of
13053 fputs_filtered. Append trailing newline.
13054
13055 2013-01-11 Yao Qi <yao@codesourcery.com>
13056 Stan Shebs <stan@codesourcery.com>
13057
13058 * psymtab.c (init_psymbol_list): Clarify the comment.
13059
13060 2013-01-11 Yao Qi <yao@codesourcery.com>
13061
13062 * breakpoint.c (print_one_breakpoint_location): Remove dead code.
13063 (update_dprintf_command_list): Assert that 'printf_line' is
13064 non-null. Remove condition check.
13065
13066 2013-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
13067
13068 Code cleanup.
13069 * psymtab.c (psymtab_to_fullname, psymtab_to_fullname): Make the return
13070 type const char *.
13071 * tui/tui-source.c (tui_source_is_displayed): Make the parameter fname
13072 const char *.
13073 * tui/tui-source.h (tui_source_is_displayed): Likewise.
13074
13075 2013-01-09 Anthony Green <green@moxielogic.com>
13076
13077 * cp-abi.c (cplus_print_vtable): Don't return value from void
13078 function.
13079 * ada-lang.c (re_set_catch_assert): Ditto.
13080
13081 2013-01-09 Doug Evans <dje@google.com>
13082
13083 * symfile.h (quick_symbol_functions): Delete member
13084 pre_expand_symtabs_matching. All uses removed.
13085 * dwarf2read.c (dw2_lookup_symbol): Implement.
13086 (dw2_do_expand_symtabs_matching): Delete.
13087 (dw2_pre_expand_symtabs_matching): Delete.
13088 (struct dw2_symtab_iterator): New type.
13089 (dw2_symtab_iter_init, dw2_symtab_iter_next): New functions.
13090 (dw2_expand_symtabs_for_function): Rewrite.
13091 (dwarf2_gdb_index_functions): Update.
13092 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Delete.
13093 (psym_functions): Update.
13094
13095 2013-01-09 Tom Tromey <tromey@redhat.com>
13096
13097 * config/pa/hpux.mh (NATDEPFILES): Remove somread.o.
13098 * configure: Rebuild.
13099 * configure.ac: Add somread.o to the build if BFD has SOM
13100 support.
13101 * somread.c: Include som/aout.h, not syms.h.
13102 (som_symtab_read): Use som_external_symbol_dictionary_record.
13103 Unpack records manually.
13104 (_initialize_somread): Declare.
13105
13106 2012-01-08 Mike Frysinger <vapier@gentoo.org>
13107
13108 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx) [__x86_64__]:
13109 Cast return_address to 64bits.
13110
13111 2013-01-08 Hui Zhu <hui_zhu@mentor.com>
13112
13113 * printcmd.c: Remove define of function output_command.
13114 * tracepoint.c: Remove extern of function output_command.
13115 * valprint.h: (output_command): New extern.
13116
13117 2013-01-07 Tom Tromey <tromey@redhat.com>
13118
13119 * objc-lang.c (objc_emit_char, objc_printchar, objc_printstr):
13120 Remove.
13121 (objc_language_defn): Use c_printchar, c_printstr,
13122 c_emit_char.
13123
13124 2013-01-07 Tom Tromey <tromey@redhat.com>
13125
13126 PR cli/7719:
13127 * NEWS: Update.
13128 * ada-valprint.c (printstr, print_field_values): Remove
13129 "inspect_it" code.
13130 * cp-valprint.c (cp_print_value_fields): Remove "inspect_it"
13131 code.
13132 * jv-valprint.c (java_print_value_fields): Remove "inspect_it"
13133 code.
13134 * m2-lang.c (m2_printstr): Remove "inspect_it" code.
13135 * main.c (captured_main): Remove "epoch" argument.
13136 * objc-lang.c (objc_printstr): Remove "inspect_it" code.
13137 * p-lang.c (pascal_printstr): Remove "inspect_it" code.
13138 * p-valprint.c (pascal_object_print_value_fields): Remove
13139 "inspect_it" code.
13140 * printcmd.c (print_command_1): Remove 'inspect' argument.
13141 (print_command, call_command): Update.
13142 (inspect_command): Remove.
13143 (_initialize_printcmd): Make "inspect" an alias for "print".
13144 * top.c (epoch_interface): Remove.
13145 * top.h (epoch_interface): Remove.
13146 * valprint.c (user_print_options): Update.
13147 (print_converted_chars_to_obstack): Remove "inspect_it" code.
13148 * valprint.h (struct value_print_options) <inspect_it>: Remove
13149 field.
13150
13151 2013-01-04 Tom Tromey <tromey@redhat.com>
13152
13153 * valprint.h (read_string): Add 'extern'.
13154
13155 2013-01-07 Joel Brobecker <brobecker@adacore.com>
13156
13157 * darwin-nat.c: Fix typo in TASK_DYLD_INFO_COUNT macro test
13158 used to decide whether to define darwin_read_dyld_info or not.
13159
13160 2013-01-03 Pierre Muller <muller@sourceware.org>
13161
13162 * main.c (relocate_gdb_directory): Avoid calling stat function
13163 if DIR is empty.
13164
13165 2013-01-03 Yao Qi <yao@codesourcery.com>
13166
13167 * psymtab.c (fixup_psymbol_section): Update declaration.
13168 (fixup_psymbol_section): Remove code returning value.
13169
13170 2013-01-03 Yao Qi <yao@codesourcery.com>
13171
13172 * symtab.h: Remove some out of date comments.
13173 (enum exception_event_kind): Move it ...
13174 * breakpoint.c: ... here.
13175
13176 2013-01-02 Iain Sandoe <developer@sandoe-acoustics.co.uk>
13177
13178 PR gdb/14405
13179 * darwin-nat.c (darwin_read_dyld_info): Only build if
13180 TASK_DYLD_INFO_COUNT is defined.
13181 (darwin_xfer_partial): Call darwin_read_dyld_info only if
13182 TASK_DYLD_INFO_COUNT is defined.
13183
13184 2013-01-02 Tom Tromey <tromey@redhat.com>
13185
13186 * symfile.h (struct ecoff_debug_hack): Remove.
13187 * objfiles.c: Don't include mdebugread.h.
13188
13189 2013-01-02 Tom Tromey <tromey@redhat.com>
13190
13191 * config/i386/darwin.mh (NATDEPFILES): Remove machoread.o.
13192 * configure.ac: Check for Mach-O support in BFD. Update
13193 CONFIG_OBS.
13194 * configure: Rebuild.
13195
13196 2013-01-02 Tom Tromey <tromey@redhat.com>
13197
13198 * acinclude.m4 (GDB_AC_CHECK_BFD): New macro.
13199 * configure.ac: Use GDB_AC_CHECK_BFD.
13200 * configure: Rebuild.
13201
13202 2013-01-01 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
13203
13204 * MAINTAINERS: Update my email.
13205
13206 2013-01-01 Joel Brobecker <brobecker@adacore.com>
13207
13208 * cli/cli-script.h (make_cleanup_free_command_lines): Make extern.
13209
13210 2013-01-01 Joel Brobecker <brobecker@adacore.com>
13211
13212 * rs6000-nat.c (bss_data_overlap): New function.
13213 (vmap_symtab): Use it to adjust the .bss section's offset.
13214
13215 2013-01-01 Joel Brobecker <brobecker@adacore.com>
13216
13217 Update year range in copyright notice of all files.
13218
13219 2013-01-01, 13 Joel Brobecker <brobecker@adacore.com>
13220
13221 * top.c (print_gdb_version): Update copyright year.
13222
13223 For older changes see ChangeLog-2012.
13224 \f
13225 Local Variables:
13226 mode: change-log
13227 left-margin: 8
13228 fill-column: 74
13229 version-control: never
13230 coding: utf-8
13231 End: