Sanitize access to gdbarch on the SDT probe API (and fix ARM bug)
[binutils-gdb.git] / gdb / ChangeLog
1 2013-12-11 Sergio Durigan Junior <sergiodj@redhat.com>
2
3 * break-catch-throw.c (fetch_probe_arguments): Pass selected frame
4 to get_probe_argument_count and evaluate_probe_argument.
5 * probe.c (get_probe_argument_count): Adjust declaration to accept
6 frame. Pass frame to probe_ops's get_probe_argument_count.
7 (evaluate_probe_argument): Likewise, for evaluate_probe_argument.
8 (probe_safe_evaluate_at_pc): Pass frame to
9 get_probe_argument_count and evaluate_probe_argument.
10 * probe.h (struct probe_ops) <get_probe_argument_count,
11 evaluate_probe_argument>: Adjust declarations to accept frame.
12 (get_probe_argument_count, evaluate_probe_argument): Likewise.
13 * solib-svr4.c (solib_event_probe_action): Get current frame.
14 Pass it to get_probe_argument_count.
15 (svr4_handle_solib_event): Get current frame. Pass it to
16 get_probe_argument_count and evaluate_probe_argument.
17 * stap-probe.c (stap_parse_probe_arguments): Adjust declaration to
18 accept gdbarch. Do not obtain it from the probe's objfile.
19 (stap_get_probe_argument_count): Adjust declaration to accept
20 frame. Obtain gdbarch from the frame. Call generic
21 can_evaluate_probe_arguments. Pass gdbarch to
22 stap_parse_probe_arguments.
23 (stap_get_arg): Adjust declaration to accept gdbarch. Pass it to
24 stap_parse_probe_arguments.
25 (stap_evaluate_probe_argument): Adjust declaration to accept
26 frame. Obtain gdbarch from the frame. Pass gdbarch to
27 stap_get_arg.
28 (stap_compile_to_ax): Pass agent_expr's gdbarch to stap_get_arg.
29 (compute_probe_arg): Obtain gdbarch from frame. Pass frame to
30 get_probe_argument_count and evaluate_probe_argument.
31
32 2013-12-10 Doug Evans <dje@google.com>
33
34 PR 16286
35 * c-lang.c (c_get_string): Ignore the declared size of the object
36 if a specific length is requested.
37
38 2013-12-10 Doug Evans <dje@google.com>
39
40 * interps.h (interp_exec_p): Delete.
41 * interps.c (interp_exec_p): Delete.
42 (interp_exec): Update. Assert interp->procs->exec_proc != NULL.
43 * mi/mi-interp.c (mi_cmd_interpreter_exec): Update.
44
45 2013-12-10 Yao Qi <yao@codesourcery.com>
46
47 * amd64-tdep.c (amd64_analyze_stack_align): Call
48 target_read_code instead of target_read_memory.
49 (amd64_analyze_prologue): Call read_code_unsigned_integer
50 instead of read_memory_unsigned_integer. Call read_code
51 instead of read_memory.
52 (amd64_skip_xmm_prologue): Likewise.
53
54 2013-12-10 Yao Qi <yao@codesourcery.com>
55
56 * corefile.c (read_code): New function.
57 (read_code_integer): New function.
58 (read_code_unsigned_integer): New function.
59 * gdbcore.h (read_code): Declare.
60 (read_code_integer): Declare.
61 (read_code_unsigned_integer): Declare.
62 * i386-tdep.c (i386_follow_jump): Call target_read_code instead
63 of target_read_memory. Call read_code_unsigned_integer instead
64 of read_memory_unsigned_integer.
65 (i386_analyze_struct_return): Likewise.
66 (i386_skip_probe): Likewise.
67 (i386_analyze_stack_align): Likewise.
68 (i386_match_pattern): Likewise.
69 (i386_skip_noop): Likewise.
70 (i386_analyze_frame_setup): Likewise.
71 (i386_analyze_register_saves): Likewise.
72 (i386_skip_prologue): Likewise.
73 (i386_skip_main_prologue): Likewise.
74 (i386_frame_cache_1): Likewise.
75
76 2013-12-10 Yao Qi <yao@codesourcery.com>
77
78 * infrun.c: Include "target-dcache.h".
79 (prepare_for_detach): Call target_dcache_invalidate.
80 (wait_for_inferior): Likewise.
81 (fetch_inferior_event): Likewise.
82 (infrun_thread_stop_requested_callback): Likewise. Set
83 overlay_cache_invalid to 1.
84
85 2013-12-10 Joel Brobecker <brobecker@adacore.com>
86
87 * symtab.c (symbol_find_demangled_name): Add handling of
88 Ada symbols.
89
90 2013-12-10 Joel Brobecker <brobecker@adacore.com>
91
92 * mi/mi-main.c (mi_cmd_list_features): add "exec-run-start-option".
93 * NEWS: Expand the entry documenting the new -exec-run --start
94 option to mention the corresponding new entry in the output of
95 "-list-features".
96
97 2013-12-10 Joel Brobecker <brobecker@adacore.com>
98
99 * windows-nat.c (handle_load_dll): Add comments.
100 (windows_ensure_ntdll_loaded): New function.
101 (do_initial_windows_stuff): Use windows_ensure_ntdll_loaded.
102 Add FIXME comment.
103
104 2013-12-08 Joel Brobecker <brobecker@adacore.com>
105
106 GDB 7.6.2 released.
107
108 2013-12-08 Yao Qi <yao@codesourcery.com>
109
110 * stack.c (frame_info): Initialize variable caller_pc.
111
112 2013-12-06 Pedro Alves <palves@redhat.com>
113
114 * frame.c (enum cached_copy_status): New enum.
115 (struct frame_info) <prev_pc.p>: Change type to enum
116 cached_copy_status.
117 (fprint_frame): Handle not saved and unavailable prev_pc values.
118 (frame_unwind_pc_if_available): Delete and merge contents into ...
119 (frame_unwind_pc): ... here. Handle OPTIMIZED_OUT_ERROR. Adjust
120 to use enum cached_copy_status.
121 (frame_unwind_caller_pc_if_available): Delete.
122 (create_new_frame): Adjust.
123 * frame.h (frame_unwind_caller_pc_if_available): Delete
124 declaration.
125 * stack.c (frame_info): Use frame_unwind_caller_pc instead of
126 frame_unwind_caller_pc_if_available, and handle
127 NOT_AVAILABLE_ERROR and OPTIMIZED_OUT_ERROR errors.
128 * valprint.c (val_print_optimized_out): Use val_print_not_saved.
129 (val_print_not_saved): New function.
130 * valprint.h (val_print_not_saved): Declare.
131
132 2013-12-06 Andrew Burgess <aburgess@broadcom.com>
133 Pedro Alves <palves@redhat.com>
134
135 * exceptions.h (errors): Add OPTIMIZED_OUT_ERROR.
136 * dwarf2loc.c (write_pieced_value): Throw OPTIMIZED_OUT_ERROR.
137 * frame.c (frame_unwind_register): Throw OPTIMIZED_OUT_ERROR.
138 * spu-tdep.c (spu_software_single_step): Throw
139 OPTIMIZED_OUT_ERROR.
140 * valops.c (value_assign): Throw OPTIMIZED_OUT_ERROR.
141
142 2013-12-06 Tom Tromey <tromey@redhat.com>
143
144 * objfiles.c (free_objfile): Update comment.
145
146 2013-12-06 Tom Tromey <tromey@redhat.com>
147
148 * objfiles.h (objfile_to_front): Remove.
149 * objfiles.c (objfile_to_front): Remove.
150
151 2013-12-06 Tom Tromey <tromey@redhat.com>
152
153 * minsyms.c (get_symbol_leading_char): Remove unnecessary
154 declaration.
155
156 2013-12-06 Tom Tromey <tromey@redhat.com>
157
158 * psympriv.h (struct partial_symtab) <user>: Move earlier.
159
160 2013-12-06 Tom Tromey <tromey@redhat.com>
161
162 * cli/cli-cmds.c (edit_command): Use paddress, not hex_string.
163 (list_command): Likewise.
164
165 2013-12-06 Tom Tromey <tromey@redhat.com>
166
167 * psymtab.c (allocate_psymtab): Put the filename in the filename
168 bcache.
169
170 2013-12-06 Tom Tromey <tromey@redhat.com>
171
172 * buildsym.c (end_symtab_from_static_block): Use obstack_copy0.
173 * symtab.h (struct symtab) <dirname>: Now const.
174
175 2013-12-06 Tom Tromey <tromey@redhat.com>
176
177 * symfile.c (allocate_symtab): Remove cast.
178 * symtab.h (struct symtab) <filename>: Now const.
179
180 2013-12-06 Tom Tromey <tromey@redhat.com>
181
182 * break-catch-throw.c (fetch_probe_arguments): Use
183 get_probe_argument_count and evaluate_probe_argument.
184 * elfread.c (elf_get_probe_argument_count)
185 (elf_can_evaluate_probe_arguments, elf_evaluate_probe_argument)
186 (elf_compile_to_ax): Remove.
187 (elf_probe_fns): Update.
188 * probe.c (get_probe_argument_count, can_evaluate_probe_arguments)
189 (evaluate_probe_argument): Call method on probe, not via sym
190 functions.
191 * stap-probe.c (compute_probe_arg): Use get_probe_argument_count,
192 evaluate_probe_argument.
193 (compile_probe_arg): Use get_probe_argument_count. Call method on
194 probe, not via sym functions.
195 * symfile-debug.c (debug_sym_get_probe_argument_count)
196 (debug_can_evaluate_probe_arguments)
197 (debug_sym_evaluate_probe_argument, debug_sym_compile_to_ax):
198 Remove.
199 (debug_sym_probe_fns): Remove.
200 * symfile.h (struct sym_probe_fns) <sym_get_probe_argument_count,
201 can_evaluate_probe_arguments, sym_evaluate_probe_argument,
202 sym_compile_to_ax>: Remove fields.
203
204 2013-12-06 Pierre Muller <muller@sourceware.org>
205
206 Fix completion for pascal language.
207 * p-exp.y (exp : field_exp name): Do not call mark_struct_expression.
208 (exp : field_exp name COMPLETE): New rule.
209 (exp : SIZEOF): Set correct current_type.
210 (last_was_structop): Remove static variable.
211 (yylex): Remove saw_structop local variable.
212 Adapt code to removal of variables above.
213
214 2013-12-06 Joel Brobecker <brobecker@adacore.com>
215
216 * frame.c (get_prev_frame_1): Delete variable "this_id".
217 Replace its use by a call to get_frame_id.
218
219 2013-12-05 Anthony Green <green@moxielogic.com>
220
221 * moxie-tdep.c (moxie_software_single_step): New function.
222 (INST2OFFSET): New helper macro.
223 (moxie_gdbarch_init): Call set_gdbarch_software_single_step.
224 (moxie_process_readu): Move this up in the file.
225
226 2013-12-05 Doug Evans <xdje42@gmail.com>
227
228 * auto-load.c (load_auto_scripts_for_objfile): Add some comments.
229
230 2013-12-05 Joel Brobecker <brobecker@adacore.com>
231 Tristan Gingold <gingold@adacore.com>
232
233 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
234 Accept version 2. Ignore operations using opcode 6.
235
236 2013-12-05 Joel Brobecker <brobecker@adacore.com>
237
238 * ada-lex.l (find_dot_all): Fix coding style violations.
239
240 2013-12-03 Walfred Tedeschi <walfred.tedeschi@intel.com>
241
242 * NEWS: Add section for Intel(R) Architecture Instructions
243 Extesions mentioning MPX.
244
245 2013-12-03 Joel Brobecker <brobecker@adacore.com>
246
247 * ada-lex.l (find_dot_all): Use strncasecmp instead of strncmp.
248
249 2013-12-03 Joel Brobecker <brobecker@adacore.com>
250
251 * ada-lang.c (create_excep_cond_exprs): Force EXP to NULL
252 when parse_exp_1 threw an error. Add comment.
253
254 2013-12-03 Joel Brobecker <brobecker@adacore.com>
255
256 * NEWS: Mention "-list-features" in the entry documenting
257 the support for the "--language" option.
258
259 2013-12-03 Tom Tromey <tromey@redhat.com>
260 Jan Kratochvil <jan.kratochvil@redhat.com>
261 Doug Evans <dje@google.com>
262 Samuel Bronson <naesten@gmail.com>
263
264 Bring back gdb-add-index as a contrib script.
265 * contrib/gdb-add-index.sh: New file.
266 * NEWS: Note the addition.
267
268 2013-12-03 Samuel Bronson <naesten@gmail.com>
269
270 * MAINTAINERS (Write After Approval): Add myself to the list.
271
272 2013-12-03 Joel Brobecker <brobecker@adacore.com>
273
274 * mi/mi-main.c (mi_cmd_list_features): Remove "ada-exceptions".
275
276 2013-12-03 Joel Brobecker <brobecker@adacore.com>
277
278 * mi/mi-main.c: Remove trailing spaces throughout.
279
280 2013-12-03 Pedro Alves <palves@redhat.com>
281 Joel Brobecker <brobecker@adacore.com>
282
283 * exceptions.h (enum_errors) <UNDEFINED_COMMAND_ERROR>: New enum.
284 * mi/mi-parse.c (mi_parse): Throw UNDEFINED_COMMAND_ERROR instead
285 of a regular error when the GDB/MI command does not exist.
286 * mi/mi-main.c (mi_cmd_list_features): Add
287 "undefined-command-error-code".
288 (mi_print_exception): Print an "undefined-command"
289 error code if EXCEPTION.ERROR is UNDEFINED_COMMAND_ERROR.
290 * NEWS: Add entry documenting the new "code" variable in
291 "^error" result records.
292
293 2013-12-03 Joel Brobecker <brobecker@adacore.com>
294
295 * mi/mi-cmds.h (mi_cmd_info_gdb_mi_command): Declare.
296 * mi/mi-cmd-info.c (mi_cmd_info_gdb_mi_command): New function.
297 * mi/mi-cmds.c (mi_cmds): Add -info-gdb-mi-command command.
298 * mi/mi-main.c (mi_cmd_list_features): Add "info-gdb-mi-command"
299 field to output of "-list-features".
300
301 * NEWS: Add entry for new -info-gdb-mi-command.
302
303 2013-12-02 Doug Evans <dje@google.com>
304 Jan Kratochvil <jan.kratochvil@redhat.com>
305
306 * objfiles.c (allocate_objfile): Save original_name as an absolute
307 path.
308 * objfiles.h (struct objfile): Expand comment on original_name.
309 * source.c (openp): Call gdb_abspath.
310 * utils.c (gdb_abspath): New function.
311 * utils.h (gdb_abspath): Declare.
312
313 2013-12-02 Pedro Alves <palves@redhat.com>
314
315 * dcache.c (dcache_read_line): Use target_read_raw_memory.
316 * target.c (target_read_raw_memory): New function.
317 (target_read_stack, target_write_memory, target_write_raw_memory):
318 Update comment.
319 (target_read_code): Add comment.
320 * target.h (target_read_raw_memory): Declare.
321
322 2013-12-02 Pedro Alves <palves@redhat.com>
323
324 * ctf.c (ctf_start): Use S_IRGRP, S_IXGRP, S_IXOTH
325 unconditionally.
326
327 2013-12-02 Pedro Alves <pedro@codesourcery.com>
328 Maciej W. Rozycki <macro@codesourcery.com>
329
330 * remote.c (putpkt_for_catch_errors): Remove function.
331 (remote_kill): Handle TARGET_CLOSE_ERROR from the kill packet
332 gracefully.
333
334 2013-12-02 Pedro Alves <palves@redhat.com>
335
336 PR remote/15974
337 * remote-notif.c (handle_notification): Return early if no
338 notification is found.
339
340 2013-12-02 Joel Brobecker <brobecker@adacore.com>
341
342 * common/filestuff.c (fdwalk): Add "defined(RLIMIT_NOFILE)"
343 preprocessor check.
344
345 2013-12-02 Joel Brobecker <brobecker@adacore.com>
346
347 * Makefile.in (HFILES_NO_SRCDIR): Remove "common/gdb_dirent.h".
348
349 2013-12-02 Joel Brobecker <brobecker@adacore.com>
350
351 * Makefile.in (HFILES_NO_SRCDIR): Remove "common/gdb_stat.h".
352 * ctf.c (ctf_start): Remove obsolete comment.
353
354 2013-12-02 Joel Brobecker <brobecker@adacore.com>
355
356 * Makefile.in (HFILES_NO_SRCDIR): Remove "common/gdb_string.h".
357
358 2013-11-30 Doug Evans <xdje42@gmail.com>
359
360 * auto-load.h (script_language): New members name, auto_load_enabled.
361 Add missing comments on struct members.
362 (auto_load_objfile_script): Delete.
363 * auto-load.c: #include "cli/cli-cmds.h".
364 (auto_load_gdb_scripts_enabled): New function.
365 (script_language_gdb): Update, add new members.
366 (source_gdb_script_for_objfile): Simplify, auto-load safe-checking
367 and call to maybe_add_script moved to caller.
368 (auto_load_objfile_script_1): Auto-load safe-checking and
369 call to maybe_add_script moved here.
370 (auto_load_objfile_script): Make static. Early exit if support for
371 scripting language hasn't been compiled in, or auto-loading has been
372 disabled.
373 (source_section_scripts): Argument "source_name" renamed to
374 "section_name". All uses updated. Replace uses of AUTO_SECTION_NAME
375 with section_name. Skip loading script if support for scripting
376 language hasn't been compiled in, or auto-loading has been disabled.
377 Call language->source_script_for_objfile instead of calling
378 source_python_script_for_objfile directly.
379 (load_auto_scripts_for_objfile): Update.
380 * python/py-auto-load.c: Delete #include "cli/cli-cmds.h".
381 (gdbpy_load_auto_script_for_objfile): Delete.
382 (auto_load_python_scripts_enabled): New function.
383 (script_language_python): Update, add new members.
384 (gdbpy_script_language_defn): New function.
385 * python/python.h (gdbpy_load_auto_scripts_for_objfile): Delete.
386 (gdbpy_script_language_defn): Declare.
387
388 * auto-load.c (AUTO_SECTION_NAME): Moved here and renamed from
389 py-auto-load.c, GDBPY_AUTO_SECTION_NAME.
390 (source_section_scripts): Moved here from py-auto-load.c.
391 (auto_load_section_scripts): Ditto.
392 * python/py-auto-load.c (GDBPY_AUTO_SECTION_NAME): Moved to
393 auto-load.c, renamed AUTO_SECTION_NAME.
394 (source_section_scripts, auto_load_section_scripts): Moved to
395 auto-load.c.
396
397 2013-11-30 Yao Qi <yao@codesourcery.com>
398
399 * remote.c (getpkt_or_notif_sane_1): Fix typo "checksm".
400
401 2013-11-29 Sergio Durigan Junior <sergiodj@redhat.com>
402
403 * gdbarch.sh: Remove include of "gdb_string.h", replace by
404 <string.h>.
405
406 2013-11-29 Doug Evans <xdje42@gmail.com>
407
408 * python/py-auto-load.c (source_section_scripts): Move comment to
409 more relevant location.
410
411 Whitespace cleanup.
412 * python/py-breakpoint.c: Remove trailing whitespace.
413 * python/py-cmd.c: Ditto.
414 * python/py-evts.c: Ditto.
415 * python/py-finishbreakpoint.c: Ditto.
416 * python/py-frame.c: Ditto.
417 * python/py-function.c: Ditto.
418 * python/py-inferior.c: Ditto.
419 * python/py-infthread.c: Ditto.
420 * python/py-param.c: Ditto.
421 * python/py-prettyprint.c: Ditto.
422 * python/py-symbol.c: Ditto.
423 * python/py-type.c: Ditto.
424 * python/py-utils.c: Ditto.
425 * python/py-value.c: Ditto.
426 * python/python-internal.h: Ditto.
427 * python/python.c: Ditto.
428
429 2013-11-29 Pedro Alves <palves@redhat.com>
430
431 * unwind_stop_reasons.def (UNWIND_NULL_ID): Update comment.
432
433 2013-11-29 Pedro Alves <palves@redhat.com>
434
435 * breakpoint.c (build_target_condition_list): Release previous
436 conditions.
437 (build_target_command_list): Release previous commands.
438 (bp_location_dtor): Release target conditions and commands.
439 * remote.c (remote_add_target_side_condition): Don't release
440 conditions.
441 (remote_add_target_side_commands): Don't release commands.
442
443 2013-11-29 Yao Qi <yao@codesourcery.com>
444 Pedro Alves <palves@redhat.com>
445
446 * dcache.c (dcache_read_line): Use current_target.beneath
447 instead of &current_target.
448 * target.c (memory_xfer_partial_1): Factor code out to ...
449 (raw_memory_xfer_partial): ... it. New function.
450 (target_xfer_partial): Call raw_memory_xfer_partial if OBJECT
451 is TARGET_OBJECT_RAW_MEMORY.
452
453 2013-11-28 Doug Evans <xdje42@gmail.com>
454
455 * breakpoint.h (gdbpy_breakpoint_object): Renamed from
456 breakpoint_object. All uses updated.
457 * python/python-internal.h (gdbpy_breakpoint_object): Renamed from
458 breakpoint_object. All uses updated.
459 * python.c (*): All uses of breakpoint_object updated.
460 * python.h (*): All uses of breakpoint_object updated.
461 * python/py-breakpoint.c (*): All uses of breakpoint_object updated.
462 * python/py-finishbreakpoint.c (*): Ditto.
463
464 2013-11-28 Doug Evans <xdje42@gmail.com>
465
466 * configure.ac: Add comments delineating libpython and libmcheck.
467 * configure: Regenerate.
468
469 2013-11-28 Andrew Burgess <aburgess@broadcom.com>
470 Pedro Alves <palves@redhat.com>
471
472 * valprint.c (value_check_printable): If the value is entirely
473 unavailable, print a single "<unavailable>" instead of printing
474 all subfields.
475
476 2013-11-28 Pedro Alves <palves@redhat.com>
477
478 * frame.c (get_prev_frame_1) <stop_reason != UNWIND_NO_REASON>:
479 Add "set debug frame" output.
480 (frame_stop_reason_symbol_string): New function.
481
482 2013-11-28 Pedro Alves <palves@redhat.com>
483
484 * frame-unwind.c (default_frame_unwind_stop_reason): Return
485 UNWIND_OUTERMOST if the frame's ID is outer_frame_id.
486 * frame.c (get_prev_frame_1): Remove outer_frame_id check.
487
488 2013-11-28 Pedro Alves <palves@redhat.com>
489
490 * frame.c (get_prev_frame_1): If the frame id is outer_frame_id,
491 set the unwind stop reason to UNWIND_OUTERMOST, not
492 UNWIND_NULL_ID. Remove explicit check for sentinel frame.
493
494 2013-11-28 Pedro Alves <palves@redhat.com>
495
496 * frame.c (frame_unwind_register): Say the register was "not
497 saved" instead of "optimized out".
498
499 2013-11-27 Steffen Sledz <sledz@dresearch-fe.de>
500
501 PR 16152
502 * configure: Rebuild.
503 * configure.ac: Tighten cygwin detection check.
504
505 2013-11-27 Pedro Alves <palves@redhat.com>
506
507 * frame-unwind.c (frame_unwind_got_optimized): Use the type of the
508 register in the previous frame's arch.
509
510 2013-11-27 Pedro Alves <palves@redhat.com>
511
512 * frame-unwind.c (frame_unwind_got_optimized): Return
513 an lval_register value instead of a not_lval value.
514
515 2013-11-27 Andrew Burgess <aburgess@broadcom.com>
516
517 * frame.c: Include "valprint.h".
518 (frame_unwind_register_value): Use value_optimized_out.
519 * value.c (value_fetch_lazy): Likewise.
520
521 2013-11-26 Andrew Burgess <aburgess@broadcom.com>
522
523 * value.c (allocate_optimized_out_value): Mark value as non-lazy.
524
525 2013-11-26 Tom Tromey <tromey@redhat.com>
526
527 * dwarf2-frame.c (dwarf2_frame_cache): Revert patch from
528 2013-11-22.
529
530 2013-11-26 Walfred Tedeschi <walfred.tedeschi@intel.com>
531
532 * i386-xstate.h (I386_XSTATE_MPX): New Macro.
533 (I386_XSTATE_MPX_MASK): Makes use of I386_XSTATE_MPX.
534 (HAS_MPX): New macro.
535 (HAS_AVX): New macro.
536 (I386_XSTATE_SIZE): Uses HAS_MPX and HAS_AVX.
537
538 2013-11-25 Keith Seitz <keiths@redhat.com>
539
540 PR c++/14819
541 * c-exp.y (classify_inner_name): If no matching symbol was
542 found, try looking up the token as a base class.
543 Likewise if a constructor was found.
544 * cp-namespace.c (find_type_baseclass_by_name): New function.
545 * cp-support.h (find_type_baseclass_by_name): Declare.
546 * valops.c (value_struct_elt_for_reference): If we get
547 a non-static field, try to get a value based on the
548 current instance, if any.
549
550 2013-11-24 Yao Qi <yao@codesourcery.com>
551
552 * disasm.c (dis_asm_read_memory): Call target_read_code
553 instead of target_read_memory.
554
555 2013-11-24 Yao Qi <yao@codesourcery.com>
556
557 * NEWS: Add note on new "set code-cache" option.
558 * target-dcache.c (code_cache_enabled_1): New variable.
559 (code_cache_enabled): New variable.
560 (show_code_cache, set_code_cache): New function.
561 (code_cache_enabled_p): New function.
562 (_initialize_target_dcache): Register command.
563 * target-dcache.h (code_cache_enabled_p): Declare.
564 * target.c (memory_xfer_partial_1):Handle
565 TARGET_OBJECT_CODE_MEMORY and code_cache_enabled.
566 (target_read_code): New function.
567 * target.h (enum target_object) <TARGET_OBJECT_CODE_MEMORY>:
568 New.
569 (target_read_code): Declare.
570
571 2013-11-24 Yao Qi <yao@codesourcery.com>
572
573 * target-dcache.c (stack_cache_enabled_p_1): Rename to ...
574 (stack_cache_enabled_1): ... this. New variable.
575 (stack_cache_enabled_p): Rename to ...
576 (stack_cache_enabled): ... this. New variable.
577 (set_stack_cache_enabled_p): Rename to ...
578 (set_stack_cache): ... this. Update caller.
579 (show_stack_cache_enabled_p): Rename to ...
580 (show_stack_cache): ... this. Update caller.
581 (stack_cache_enabled): Rename to ...
582 (stack_cache_enabled_p): ... this. Update caller.
583 (_initialize_target_dcache): Replace "data cache" with
584 "target memory cache".
585 * target-dcache.h (stack_cache_enabled): Remove declaration.
586 (stack_cache_enabled_p): Add declaration.
587
588 2013-11-23 Doug Evans <xdje42@gmail.com>
589
590 * python/py-frame.c (gdbpy_initialize_frames): Remove FIRST_ERROR,
591 superfluous.
592
593 2013-11-23 Doug Evans <xdje42@gmail.com>
594
595 * python/py-frame.c (frapy_block): Fix error message text.
596
597 2013-11-23 Doug Evans <xdje42@gmail.com>
598
599 * cli/cli-script.c (multi_line_command_p): New function.
600 (recurse_read_control_structure, read_command_lines_1): Call it.
601 (execute_control_command): Consistently have a blank line between
602 each case.
603
604 2013-11-22 Sterling Augustine <saugustine@google.com>
605
606 PR gdb/16196:
607 * valprint.c (read_string): Set new variable fetchlen based on
608 fetchlimit and size. Use it in call to partial_memory_read.
609 Update comment.
610
611 2013-11-22 Tom Tromey <tromey@redhat.com>
612
613 PR backtrace/16155:
614 * dwarf2-frame.c (dwarf2_frame_cache): Set undefined_retaddr if
615 the return address column is unspecified.
616
617 2013-11-22 Tom Tromey <tromey@redhat.com>
618 Pedro Alves <palves@redhat.com>
619
620 PR backtrace/16155
621 * value.c (value_fetch_lazy): Internal error if
622 get_frame_register_value returns the same register.
623
624 2013-11-22 Pedro Alves <palves@redhat.com>
625 Tom Tromey <tromey@redhat.com>
626
627 * frame.c (frame_stash_add): Now returns whether a frame with the
628 same ID was already known.
629 (compute_frame_id): New function, factored out from get_frame_id.
630 (get_frame_id): No longer lazilly compute the frame id here.
631 (get_prev_frame_if_no_cycle): New function. Detects wider stack
632 cycles.
633 (get_prev_frame_1): Use it instead of get_prev_frame_raw directly,
634 and checking for stack cycles here.
635
636 2013-11-22 Pedro Alves <palves@redhat.com>
637
638 PR 16155
639 * frame.c (get_prev_frame_1): Do the UNWIND_SAME_ID check between
640 this frame and the new previous frame, not between this frame and
641 the next frame.
642
643 2013-11-22 Pedro Alves <palves@redhat.com>
644
645 PR 16155
646 * dwarf2-frame.c (struct dwarf2_frame_cache)
647 <checked_tailcall_bottom, entry_cfa_sp_offset,
648 entry_cfa_sp_offset_p>: New fields.
649 (dwarf2_frame_cache): Adjust to use the new cache fields instead
650 of locals. Don't call dwarf2_tailcall_sniffer_first here.
651 (dwarf2_frame_prev_register): Call it here, but only once.
652
653 2013-11-21 Doug Evans <xdje42@gmail.com>
654
655 * gdbtypes.c: #include bcache.h, dwarf2loc.h.
656 (type_equality_entry): Move here from python/py-type.c.
657 (type_equality_entry_d): Ditto.
658 (compare_maybe_null_strings, check_types_equal): Ditto.
659 (check_types_worklist, types_deeply_equal): Ditto.
660 * gdbtypes.h (types_deeply_equal): Declare.
661 * python/py-type.c: Remove inclusion of bcache.h, dwarf2loc.h.
662 (typy_richcompare): Update.
663
664 2013-11-20 Joel Brobecker <brobecker@adacore.com>
665
666 * python/py-value.c (is_intlike): Delete.
667 (valpy_int): Replace use of CHECK_TYPEDEF and is_intlike
668 by use of is_integral_type.
669 (valpy_long): Replace use of CHECK_TYPEDEF and is_intlike
670 by use of is_integral_type and check for TYPE_CODE_PTR.
671
672 2013-11-20 Tom Tromey <tromey@redhat.com>
673
674 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Remove
675 strerror module.
676 * gnulib/aclocal.m4: Update.
677 * gnulib/config.in: Update.
678 * gnulib/configure: Update.
679 * gnulib/import/Makefile.am: Update.
680 * gnulib/import/Makefile.in: Update.
681 * gnulib/import/errno.in.h: Remove.
682 * gnulib/import/intprops.h: Remove.
683 * gnulib/import/m4/errno_h.m4: Remove.
684 * gnulib/import/m4/gnulib-cache.m4: Update.
685 * gnulib/import/m4/gnulib-comp.m4: Update.
686 * gnulib/import/m4/strerror.m4: Remove.
687 * gnulib/import/m4/sys_socket_h.m4: Remove.
688 * gnulib/import/strerror-override.c: Remove.
689 * gnulib/import/strerror-override.h: Remove.
690 * gnulib/import/strerror.c: Remove.
691 * gnulib/update-gnulib.sh: Update.
692
693 2013-11-20 Yao Qi <yao@codesourcery.com>
694
695 * target-dcache.c (target_dcache_get_or_init): Call
696 set_address_space_data if 'dcache' is NULL.
697
698 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
699
700 * common/i386-gcc-cpuid.h (bit_MPX): Synchronize with gcc file.
701
702 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
703
704 * python/lib/gdb/command/bound_register.py: New file.
705 * data-directory/Makefile.in: Copy bond_register.py to the right path
706 to be initialized at gdb startup.
707
708 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
709
710 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset):
711 Add MPX registers.
712 (amd64_linux_read_description): Add initialization for MPX and
713 AVX independently.
714 * amd64-linux-tdep.c: Includes features/i386/amd64-mpx-linux.c.
715 (amd64_linux_gregset_reg_offset): Add MPX registers.
716 (amd64_linux_core_read_description): Add initialization for MPX
717 registers.
718 (_initialize_amd64_linux_tdep): Initialize MPX targets.
719 * amd64-linux-tdep.h (AMD64_LINUX_RAX_REGNUM): Set it to the last
720 register on the list.
721 (tdesc_amd64_mpx_linux) Add new target for MPX.
722 * amd64-tdep.c: Includes features/i386/amd64-mpx.c.
723 (amd64_mpx_names): MPX register names.
724 (amd64_init_abi): Add MPX register while initializing the ABI.
725 (_initialize_amd64_tdep): Initialize MPX targets.
726 * amd64-tdep.h (amd64_regnum): Add MPX registers.
727 (AMD64_NUM_REGS): Set number of registers taking MPX into account.
728
729 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
730
731 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Add MPX
732 registers on the range of registers to be read from
733 xsave buffer.
734 (i386_linux_read_description): Add case for MPX.
735 * i386-linux-tdep.c: Include features/i386/i386-mpx-linux.c.
736 (i386_linux_gregset_reg_offset): Add MPX registers.
737 (i386_linux_core_read_description): Initialize also MPX.
738 (_initialize_i386_linux_tdep): Add mpx initialization.
739 * i386-tdep.h (gdbarch_tdep): Add fields bnd0r_regnum, bnd0_regnum,
740 mpx_register_names.
741 (i386_regnum): Add MPX registers.
742 (I386_MPX_NUM_REGS): New macro.
743 (i386_bnd_regnum_p): New function.
744 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set
745 number of registers to be the number of BNDSTATUS.
746 (tdesc_i386_mpx_linux): Add description for MPX Linux registers.
747 * i386-tdep.c: Include features/i386/i386-mpx.c.
748 (i386_mpx_names): Add MPX register names array.
749 (i386_bnd_names): Add bnd pseudo register names array.
750 (i386_bndr_regnum_p): Lookup register numbers for bnd raw
751 registers.
752 (i386_bndr_regnum_p): Lookup register numbers for bnd raw registers.
753 (386_mpx_ctrl_regnum_p): Lookup register numbers for MPX control
754 registers.
755 (i386_bnd_type): New function.
756 (i386_pseudo_register_type): Use i386_bnd_type for bnd pseudo
757 register types.
758 (i386_pseudo_register_read_into_value): Add bnd case.
759 (i386_pseudo_register_write): Add bnd pseudo registers.
760 (i386_register_reggroup_p): Add MPX register to the group all.
761 (i386_validate_tdesc_p): Add MPX to the target description
762 validation.
763 (i386_pseudo_register_name): Add bnd pseudo registers.
764 (i386_gdbarch_init): Add MPX for architecture initialization.
765 (_initia_initialize_i386_tdep): Add mpx initialization.
766 * i387-tdep.c (xsave_mpx_offset): New vector for MPX offsets on
767 XSAVE buffer.
768 (XSAVE_MPX_ADDR): New macro.
769 (i387_supply_xsave): Add MPX case.
770 (i387_collect_xsave): Add MPX case.
771 * i387-tdep.h (I387_BND0R_REGNUM): New macro.
772 (I387_BNDCFGU_REGNUM): New macro.
773 (I387_NUM_MPX_REGS): New macro.
774 (I387_NUM_BND_REGS): New macro.
775 (I387_NUM_MPX_CTRL_REGS): New macro.
776 (I387_MPXEND_REGNUM): New macro.
777 * common/i386-xstate.h (I386_XSTATE_BNDREGS): New macro.
778 (I386_XSTATE_BNDCFG): Likewise.
779 (I386_XSTATE_MPX_MASK): Likewise.
780 (I386_XSTATE_ALL_MASK): New macro represents flags for all states.
781 (I386_XSTATE_BNDREGS_SIZE): New macro.
782 (I386_XSTATE_BNDCFG_SIZE): Likewise.
783 (I386_XSTATE_SIZE): Adapt for MPX.
784 (I386_XSTATE_MAX_SIZE): Likewise.
785
786 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
787
788 * features/i386/Makefile: Adapts for using MPX registers.
789 * features/i386/32bit-mpx.xml: New file.
790 * features/i386/64bit-mpx.xml: Likewise.
791 * features/i386/amd64-mpx-linux.c: Likewise.
792 * features/i386/amd64-mpx-linux.xml: Likewise.
793 * features/i386/amd64-mpx.c: Likewise.
794 * features/i386/amd64-mpx.xml: Likewise.
795 * features/i386/i386-mpx-linux.c: Likewise.
796 * features/i386/i386-mpx-linux.xml: Likewise.
797 * features/i386/i386-mpx.c: Likewise.
798 * features/i386/i386-mpx.xml: Likewise.
799 * regformats/i386/amd64-mpx-linux.dat: New file.
800 * regformats/i386/amd64-mpx.dat: Likewise.
801 * regformats/i386/i386-mpx-linux.dat: Likewise.
802 * regformats/i386/i386-mpx.dat: Likewise.
803
804 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
805
806 * target-descriptions.c (maint_print_maint_print_c_tdesc_cmd):
807 Modified logic of creating a bitfield to be in sync with
808 tdesc_gdb_type.
809
810 2013-11-20 Will Newton <will.newton@linaro.org>
811
812 * arm-tdep.c (arm_get_next_pc): Remove "Infinite loop detected"
813 error message.
814
815 2013-11-20 Yao Qi <yao@codesourcery.com>
816
817 * progspace.h (struct address_space_data): Declare.
818 * target-dcache.c: Include "progspace.h".
819 (target_dache): Remove.
820 (target_dcache_aspace_key): New.
821 (target_dcache_cleanup): New function.
822 (target_dcache_init_p): Get data through
823 target_dcache_aspace_key.
824 (target_dcache_invalidate): Likewise.
825 (target_dcache_get): Likewise.
826 (target_dcache_get_or_init): Likewise.
827 (_initialize_target_dcache): Initialize
828 target_dcache_aspace_key.
829
830 2013-11-20 Yao Qi <yao@codesourcery.com>
831
832 * progspace.c (struct address_space): Update comments.
833 <REGISTRY_FIELDS>: New fields.
834 DEFINE_REGISTRY for address_space.
835 (new_address_space): Call address_space_alloc_data.
836 (free_address_space): Call address_space_free_data.
837 * progspace.h: Use DECLARE_REGISTRY.
838
839 2013-11-20 Yao Qi <yao@codesourcery.com>
840
841 * Makefile.in (SFILES):Add target-dcache.c.
842 (HFILES_NO_SRCDIR): Add target-dcache.h.
843 (COMMON_OBS): Add target-dcache.o.
844 * dcache.c: Remove inclusion to "target.h". Include
845 "target-dcache.h".
846 * memattr.c: Include "target-dcache.h".
847 * top.c: Likewise.
848 * tracepoint.c: Likewise.
849 * target.c: (stack_cache_enabled_p_1): Move to
850 target-dcache.c.
851 (stack_cache_enabled_p): Likewise.
852 (set_stack_cache_enabled_p): Likewise.
853 (show_stack_cache_enabled_p): Likewise.
854 (target_dcache, target_dcache_init_p): Likewise.
855 (target_dcache_invalidate): Likewise.
856 (target_dcache_get, target_dcache_get_or_init): Likewise.
857 (memory_xfer_partial_1): Call function stack_cache_enabled.
858 (initialize_target): Move code to target-dcache.c.
859 * target.h (target_dcache_invalidate): Move to
860 target-dcache.h.
861 (target_dcache_get): Likewise.
862 * target-dcache.c: New.
863 * target-dcache.h: New.
864
865 2013-11-20 Yao Qi <yao@codesourcery.com>
866
867 * target.c (memory_xfer_partial_1): Update 'target_dcache' if
868 it is initialized.
869
870 2013-11-20 Yao Qi <yao@codesourcery.com>
871
872 * dcache.c (last_cache): Remove.
873 (dcache_free, dcache_init): Update.
874 (dcache_update):
875 (dcache_print_line): Add parameter 'dcache'. Replace
876 'target_dcache' with 'dcache'.
877 (dcache_info): Move code to dcache_info_1. Call
878 'dcache_info_1'.
879 (dcache_info_1): New function.
880 (set_dcache_size): Call target_dcache_invalidate.
881 (set_dcache_line_size): Call target_dcache_invalidate.
882 * target.c (target_dcache_init_p): New function.
883 (target_dcache_invalidate): Check target_dcache_init_p first.
884 (target_dcache_get, target_dcache_get_or_init): New function.
885 (memory_xfer_partial_1): Adjust.
886 (initialize_target): Don't initialize 'target_dcache'.
887 * target.h (struct dcache_struct): Declare.
888 (target_dcache_get): Declare.
889
890 2013-11-19 Yao Qi <yao@codesourcery.com>
891
892 * varobj.c (varobj_get_type): Fix typo.
893
894 2013-11-19 Joel Brobecker <brobecker@adacore.com>
895
896 * python/py-value.c (is_intlike): Add TYPE_CODE_RANGE handling.
897
898 2013-11-19 Joel Brobecker <brobecker@adacore.com>
899
900 * contrib/ari/gdb_ari.sh: Remove checks for "dirent.h" and
901 "stat.h".
902
903 2013-11-18 Tom Tromey <tromey@redhat.com>
904
905 * common/gdb_stat.h: Remove.
906 * ada-lang.c: Use sys/stat.h, not gdb_stat.h.
907 * common/filestuff.c: Use sys/stat.h, not gdb_stat.h.
908 * common/linux-osdata.c: Use sys/stat.h, not gdb_stat.h.
909 * corefile.c: Use sys/stat.h, not gdb_stat.h.
910 * ctf.c: Use sys/stat.h, not gdb_stat.h.
911 * darwin-nat.c: Use sys/stat.h, not gdb_stat.h.
912 * dbxread.c: Use sys/stat.h, not gdb_stat.h.
913 * dwarf2read.c: Use sys/stat.h, not gdb_stat.h.
914 * exec.c: Use sys/stat.h, not gdb_stat.h.
915 * gdbserver/linux-low.c: Use sys/stat.h, not gdb_stat.h.
916 * gdbserver/remote-utils.c: Use sys/stat.h, not gdb_stat.h.
917 * inf-child.c: Use sys/stat.h, not gdb_stat.h.
918 * jit.c: Use sys/stat.h, not gdb_stat.h.
919 * linux-nat.c: Use sys/stat.h, not gdb_stat.h.
920 * m68klinux-nat.c: Use sys/stat.h, not gdb_stat.h.
921 * main.c: Use sys/stat.h, not gdb_stat.h.
922 * mdebugread.c: Use sys/stat.h, not gdb_stat.h.
923 * mi/mi-cmd-env.c: Use sys/stat.h, not gdb_stat.h.
924 * nto-tdep.c: Use sys/stat.h, not gdb_stat.h.
925 * objfiles.c: Use sys/stat.h, not gdb_stat.h.
926 * procfs.c: Use sys/stat.h, not gdb_stat.h.
927 * remote-fileio.c: Use sys/stat.h, not gdb_stat.h.
928 * remote-mips.c: Use sys/stat.h, not gdb_stat.h.
929 * remote.c: Use sys/stat.h, not gdb_stat.h.
930 * rs6000-nat.c: Use sys/stat.h, not gdb_stat.h.
931 * sol-thread.c: Use sys/stat.h, not gdb_stat.h.
932 * solib-spu.c: Use sys/stat.h, not gdb_stat.h.
933 * source.c: Use sys/stat.h, not gdb_stat.h.
934 * symfile.c: Use sys/stat.h, not gdb_stat.h.
935 * symmisc.c: Use sys/stat.h, not gdb_stat.h.
936 * symtab.c: Use sys/stat.h, not gdb_stat.h.
937 * top.c: Use sys/stat.h, not gdb_stat.h.
938 * xcoffread.c: Use sys/stat.h, not gdb_stat.h.
939
940 2013-11-18 Tom Tromey <tromey@redhat.com>
941
942 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
943 sys_stat.
944 * gnulib/aclocal.m4: Update.
945 * gnulib/config.in: Update.
946 * gnulib/configure: Update.
947 * gnulib/import/Makefile.am: Update.
948 * gnulib/import/Makefile.in: Update.
949 * gnulib/import/m4/gnulib-cache.m4: Update.
950 * gnulib/import/m4/gnulib-comp.m4: Update.
951 * gnulib/import/m4/sys_stat_h.m4: New.
952 * gnulib/import/m4/time_h.m4: New.
953 * gnulib/import/sys_stat.in.h: New.
954 * gnulib/import/time.in.h: New.
955
956 2013-11-18 Tom Tromey <tromey@redhat.com>
957
958 * configure: Rebuild.
959 * configure.ac: Remove check of HAVE_SYS_TYPES_H.
960
961 2013-11-18 Tom Tromey <tromey@redhat.com>
962
963 * configure: Rebuild.
964 * configure.ac: Don't check for unistd.h.
965
966 2013-11-18 Tom Tromey <tromey@redhat.com>
967
968 * configure: Rebuild.
969 * configure.ac: Don't check for stdlib.h
970 * defs.h: Include stdlib.h unconditionally.
971
972 2013-11-18 Tom Tromey <tromey@redhat.com>
973
974 * config.in: Rebuild.
975 * configure: Rebuild.
976 * configure.ac: Don't check for stddef.h.
977 * defs.h: Unconditionally include stddef.h. Remove duplicate
978 inclusion.
979
980 2013-11-18 Tom Tromey <tromey@redhat.com>
981
982 * common/common.m4 (GDB_AC_COMMON): Don't use AC_HEADER_DIRENT.
983 * common/gdb_dirent.h: Remove.
984 * common/filestuff.c: Use dirent.h.
985 * common/linux-osdata.c: Use dirent.h.
986 (NAMELEN): Define.
987 * config.in: Rebuild.
988 * configure: Rebuild.
989 * configure.ac: Don't use AC_HEADER_DIRENT.
990 * linux-fork.c: Use dirent.h
991 * linux-nat.c: Use dirent.h.
992 * nto-procfs.c: Use dirent.h.
993 * procfs.c: Use dirent.h.
994
995 2013-11-18 Tom Tromey <tromey@redhat.com>
996
997 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirent.
998 * gnulib/aclocal.m4: Update.
999 * gnulib/config.in: Update.
1000 * gnulib/configure: Update.
1001 * gnulib/import/Makefile.am: Update.
1002 * gnulib/import/Makefile.in: Update.
1003 * gnulib/import/dirent.in.h: New.
1004 * gnulib/import/m4/dirent_h.m4: New.
1005 * gnulib/import/m4/gnulib-cache.m4: Update.
1006 * gnulib/import/m4/gnulib-comp.m4: Update.
1007
1008 2013-11-18 Tom Tromey <tromey@redhat.com>
1009
1010 * configure: Rebuild.
1011 * common/common.m4 (GDB_AC_COMMON): Don't check for string.h or
1012 strings.h.
1013
1014 2013-11-18 Tom Tromey <tromey@redhat.com>
1015
1016 * common/gdb_string.h: Remove.
1017 * aarch64-tdep.c: Use string.h, not gdb_string.h.
1018 * ada-exp.y: Use string.h, not gdb_string.h.
1019 * ada-lang.c: Use string.h, not gdb_string.h.
1020 * ada-lex.l: Use string.h, not gdb_string.h.
1021 * ada-typeprint.c: Use string.h, not gdb_string.h.
1022 * ada-valprint.c: Use string.h, not gdb_string.h.
1023 * aix-thread.c: Use string.h, not gdb_string.h.
1024 * alpha-linux-tdep.c: Use string.h, not gdb_string.h.
1025 * alpha-mdebug-tdep.c: Use string.h, not gdb_string.h.
1026 * alpha-nat.c: Use string.h, not gdb_string.h.
1027 * alpha-osf1-tdep.c: Use string.h, not gdb_string.h.
1028 * alpha-tdep.c: Use string.h, not gdb_string.h.
1029 * alphanbsd-tdep.c: Use string.h, not gdb_string.h.
1030 * amd64-dicos-tdep.c: Use string.h, not gdb_string.h.
1031 * amd64-linux-nat.c: Use string.h, not gdb_string.h.
1032 * amd64-linux-tdep.c: Use string.h, not gdb_string.h.
1033 * amd64-nat.c: Use string.h, not gdb_string.h.
1034 * amd64-sol2-tdep.c: Use string.h, not gdb_string.h.
1035 * amd64fbsd-tdep.c: Use string.h, not gdb_string.h.
1036 * amd64obsd-tdep.c: Use string.h, not gdb_string.h.
1037 * arch-utils.c: Use string.h, not gdb_string.h.
1038 * arm-linux-nat.c: Use string.h, not gdb_string.h.
1039 * arm-linux-tdep.c: Use string.h, not gdb_string.h.
1040 * arm-tdep.c: Use string.h, not gdb_string.h.
1041 * arm-wince-tdep.c: Use string.h, not gdb_string.h.
1042 * armbsd-tdep.c: Use string.h, not gdb_string.h.
1043 * armnbsd-nat.c: Use string.h, not gdb_string.h.
1044 * armnbsd-tdep.c: Use string.h, not gdb_string.h.
1045 * armobsd-tdep.c: Use string.h, not gdb_string.h.
1046 * avr-tdep.c: Use string.h, not gdb_string.h.
1047 * ax-gdb.c: Use string.h, not gdb_string.h.
1048 * ax-general.c: Use string.h, not gdb_string.h.
1049 * bcache.c: Use string.h, not gdb_string.h.
1050 * bfin-tdep.c: Use string.h, not gdb_string.h.
1051 * breakpoint.c: Use string.h, not gdb_string.h.
1052 * build-id.c: Use string.h, not gdb_string.h.
1053 * buildsym.c: Use string.h, not gdb_string.h.
1054 * c-exp.y: Use string.h, not gdb_string.h.
1055 * c-lang.c: Use string.h, not gdb_string.h.
1056 * c-typeprint.c: Use string.h, not gdb_string.h.
1057 * c-valprint.c: Use string.h, not gdb_string.h.
1058 * charset.c: Use string.h, not gdb_string.h.
1059 * cli-out.c: Use string.h, not gdb_string.h.
1060 * cli/cli-cmds.c: Use string.h, not gdb_string.h.
1061 * cli/cli-decode.c: Use string.h, not gdb_string.h.
1062 * cli/cli-dump.c: Use string.h, not gdb_string.h.
1063 * cli/cli-interp.c: Use string.h, not gdb_string.h.
1064 * cli/cli-logging.c: Use string.h, not gdb_string.h.
1065 * cli/cli-script.c: Use string.h, not gdb_string.h.
1066 * cli/cli-setshow.c: Use string.h, not gdb_string.h.
1067 * cli/cli-utils.c: Use string.h, not gdb_string.h.
1068 * coffread.c: Use string.h, not gdb_string.h.
1069 * common/common-utils.c: Use string.h, not gdb_string.h.
1070 * common/filestuff.c: Use string.h, not gdb_string.h.
1071 * common/linux-procfs.c: Use string.h, not gdb_string.h.
1072 * common/linux-ptrace.c: Use string.h, not gdb_string.h.
1073 * common/signals.c: Use string.h, not gdb_string.h.
1074 * common/vec.h: Use string.h, not gdb_string.h.
1075 * core-regset.c: Use string.h, not gdb_string.h.
1076 * corefile.c: Use string.h, not gdb_string.h.
1077 * corelow.c: Use string.h, not gdb_string.h.
1078 * cp-abi.c: Use string.h, not gdb_string.h.
1079 * cp-support.c: Use string.h, not gdb_string.h.
1080 * cp-valprint.c: Use string.h, not gdb_string.h.
1081 * cris-tdep.c: Use string.h, not gdb_string.h.
1082 * d-lang.c: Use string.h, not gdb_string.h.
1083 * dbxread.c: Use string.h, not gdb_string.h.
1084 * dcache.c: Use string.h, not gdb_string.h.
1085 * demangle.c: Use string.h, not gdb_string.h.
1086 * dicos-tdep.c: Use string.h, not gdb_string.h.
1087 * disasm.c: Use string.h, not gdb_string.h.
1088 * doublest.c: Use string.h, not gdb_string.h.
1089 * dsrec.c: Use string.h, not gdb_string.h.
1090 * dummy-frame.c: Use string.h, not gdb_string.h.
1091 * dwarf2-frame.c: Use string.h, not gdb_string.h.
1092 * dwarf2loc.c: Use string.h, not gdb_string.h.
1093 * dwarf2read.c: Use string.h, not gdb_string.h.
1094 * elfread.c: Use string.h, not gdb_string.h.
1095 * environ.c: Use string.h, not gdb_string.h.
1096 * eval.c: Use string.h, not gdb_string.h.
1097 * event-loop.c: Use string.h, not gdb_string.h.
1098 * exceptions.c: Use string.h, not gdb_string.h.
1099 * exec.c: Use string.h, not gdb_string.h.
1100 * expprint.c: Use string.h, not gdb_string.h.
1101 * f-exp.y: Use string.h, not gdb_string.h.
1102 * f-lang.c: Use string.h, not gdb_string.h.
1103 * f-typeprint.c: Use string.h, not gdb_string.h.
1104 * f-valprint.c: Use string.h, not gdb_string.h.
1105 * fbsd-nat.c: Use string.h, not gdb_string.h.
1106 * findcmd.c: Use string.h, not gdb_string.h.
1107 * findvar.c: Use string.h, not gdb_string.h.
1108 * fork-child.c: Use string.h, not gdb_string.h.
1109 * frame.c: Use string.h, not gdb_string.h.
1110 * frv-linux-tdep.c: Use string.h, not gdb_string.h.
1111 * frv-tdep.c: Use string.h, not gdb_string.h.
1112 * gdb.c: Use string.h, not gdb_string.h.
1113 * gdb_bfd.c: Use string.h, not gdb_string.h.
1114 * gdbarch.c: Use string.h, not gdb_string.h.
1115 * gdbtypes.c: Use string.h, not gdb_string.h.
1116 * gnu-nat.c: Use string.h, not gdb_string.h.
1117 * gnu-v2-abi.c: Use string.h, not gdb_string.h.
1118 * gnu-v3-abi.c: Use string.h, not gdb_string.h.
1119 * go-exp.y: Use string.h, not gdb_string.h.
1120 * go-lang.c: Use string.h, not gdb_string.h.
1121 * go32-nat.c: Use string.h, not gdb_string.h.
1122 * hppa-hpux-tdep.c: Use string.h, not gdb_string.h.
1123 * hppa-linux-nat.c: Use string.h, not gdb_string.h.
1124 * hppanbsd-tdep.c: Use string.h, not gdb_string.h.
1125 * hppaobsd-tdep.c: Use string.h, not gdb_string.h.
1126 * i386-cygwin-tdep.c: Use string.h, not gdb_string.h.
1127 * i386-dicos-tdep.c: Use string.h, not gdb_string.h.
1128 * i386-linux-nat.c: Use string.h, not gdb_string.h.
1129 * i386-linux-tdep.c: Use string.h, not gdb_string.h.
1130 * i386-nto-tdep.c: Use string.h, not gdb_string.h.
1131 * i386-sol2-tdep.c: Use string.h, not gdb_string.h.
1132 * i386-tdep.c: Use string.h, not gdb_string.h.
1133 * i386bsd-tdep.c: Use string.h, not gdb_string.h.
1134 * i386gnu-nat.c: Use string.h, not gdb_string.h.
1135 * i386nbsd-tdep.c: Use string.h, not gdb_string.h.
1136 * i386obsd-tdep.c: Use string.h, not gdb_string.h.
1137 * i387-tdep.c: Use string.h, not gdb_string.h.
1138 * ia64-libunwind-tdep.c: Use string.h, not gdb_string.h.
1139 * ia64-linux-nat.c: Use string.h, not gdb_string.h.
1140 * inf-child.c: Use string.h, not gdb_string.h.
1141 * inf-ptrace.c: Use string.h, not gdb_string.h.
1142 * inf-ttrace.c: Use string.h, not gdb_string.h.
1143 * infcall.c: Use string.h, not gdb_string.h.
1144 * infcmd.c: Use string.h, not gdb_string.h.
1145 * inflow.c: Use string.h, not gdb_string.h.
1146 * infrun.c: Use string.h, not gdb_string.h.
1147 * interps.c: Use string.h, not gdb_string.h.
1148 * iq2000-tdep.c: Use string.h, not gdb_string.h.
1149 * irix5-nat.c: Use string.h, not gdb_string.h.
1150 * jv-exp.y: Use string.h, not gdb_string.h.
1151 * jv-lang.c: Use string.h, not gdb_string.h.
1152 * jv-typeprint.c: Use string.h, not gdb_string.h.
1153 * jv-valprint.c: Use string.h, not gdb_string.h.
1154 * language.c: Use string.h, not gdb_string.h.
1155 * linux-fork.c: Use string.h, not gdb_string.h.
1156 * linux-nat.c: Use string.h, not gdb_string.h.
1157 * lm32-tdep.c: Use string.h, not gdb_string.h.
1158 * m2-exp.y: Use string.h, not gdb_string.h.
1159 * m2-typeprint.c: Use string.h, not gdb_string.h.
1160 * m32c-tdep.c: Use string.h, not gdb_string.h.
1161 * m32r-linux-nat.c: Use string.h, not gdb_string.h.
1162 * m32r-linux-tdep.c: Use string.h, not gdb_string.h.
1163 * m32r-rom.c: Use string.h, not gdb_string.h.
1164 * m32r-tdep.c: Use string.h, not gdb_string.h.
1165 * m68hc11-tdep.c: Use string.h, not gdb_string.h.
1166 * m68k-tdep.c: Use string.h, not gdb_string.h.
1167 * m68kbsd-tdep.c: Use string.h, not gdb_string.h.
1168 * m68klinux-nat.c: Use string.h, not gdb_string.h.
1169 * m68klinux-tdep.c: Use string.h, not gdb_string.h.
1170 * m88k-tdep.c: Use string.h, not gdb_string.h.
1171 * macrocmd.c: Use string.h, not gdb_string.h.
1172 * main.c: Use string.h, not gdb_string.h.
1173 * mdebugread.c: Use string.h, not gdb_string.h.
1174 * mem-break.c: Use string.h, not gdb_string.h.
1175 * memattr.c: Use string.h, not gdb_string.h.
1176 * memory-map.c: Use string.h, not gdb_string.h.
1177 * mep-tdep.c: Use string.h, not gdb_string.h.
1178 * mi/mi-cmd-break.c: Use string.h, not gdb_string.h.
1179 * mi/mi-cmd-disas.c: Use string.h, not gdb_string.h.
1180 * mi/mi-cmd-env.c: Use string.h, not gdb_string.h.
1181 * mi/mi-cmd-stack.c: Use string.h, not gdb_string.h.
1182 * mi/mi-cmd-var.c: Use string.h, not gdb_string.h.
1183 * mi/mi-cmds.c: Use string.h, not gdb_string.h.
1184 * mi/mi-console.c: Use string.h, not gdb_string.h.
1185 * mi/mi-getopt.c: Use string.h, not gdb_string.h.
1186 * mi/mi-interp.c: Use string.h, not gdb_string.h.
1187 * mi/mi-main.c: Use string.h, not gdb_string.h.
1188 * mi/mi-parse.c: Use string.h, not gdb_string.h.
1189 * microblaze-rom.c: Use string.h, not gdb_string.h.
1190 * microblaze-tdep.c: Use string.h, not gdb_string.h.
1191 * mingw-hdep.c: Use string.h, not gdb_string.h.
1192 * minidebug.c: Use string.h, not gdb_string.h.
1193 * minsyms.c: Use string.h, not gdb_string.h.
1194 * mips-irix-tdep.c: Use string.h, not gdb_string.h.
1195 * mips-linux-tdep.c: Use string.h, not gdb_string.h.
1196 * mips-tdep.c: Use string.h, not gdb_string.h.
1197 * mips64obsd-tdep.c: Use string.h, not gdb_string.h.
1198 * mipsnbsd-tdep.c: Use string.h, not gdb_string.h.
1199 * mipsread.c: Use string.h, not gdb_string.h.
1200 * mn10300-linux-tdep.c: Use string.h, not gdb_string.h.
1201 * mn10300-tdep.c: Use string.h, not gdb_string.h.
1202 * monitor.c: Use string.h, not gdb_string.h.
1203 * moxie-tdep.c: Use string.h, not gdb_string.h.
1204 * mt-tdep.c: Use string.h, not gdb_string.h.
1205 * nbsd-tdep.c: Use string.h, not gdb_string.h.
1206 * nios2-linux-tdep.c: Use string.h, not gdb_string.h.
1207 * nto-procfs.c: Use string.h, not gdb_string.h.
1208 * nto-tdep.c: Use string.h, not gdb_string.h.
1209 * objc-lang.c: Use string.h, not gdb_string.h.
1210 * objfiles.c: Use string.h, not gdb_string.h.
1211 * opencl-lang.c: Use string.h, not gdb_string.h.
1212 * osabi.c: Use string.h, not gdb_string.h.
1213 * osdata.c: Use string.h, not gdb_string.h.
1214 * p-exp.y: Use string.h, not gdb_string.h.
1215 * p-lang.c: Use string.h, not gdb_string.h.
1216 * p-typeprint.c: Use string.h, not gdb_string.h.
1217 * parse.c: Use string.h, not gdb_string.h.
1218 * posix-hdep.c: Use string.h, not gdb_string.h.
1219 * ppc-linux-nat.c: Use string.h, not gdb_string.h.
1220 * ppc-sysv-tdep.c: Use string.h, not gdb_string.h.
1221 * ppcfbsd-tdep.c: Use string.h, not gdb_string.h.
1222 * ppcnbsd-tdep.c: Use string.h, not gdb_string.h.
1223 * ppcobsd-tdep.c: Use string.h, not gdb_string.h.
1224 * printcmd.c: Use string.h, not gdb_string.h.
1225 * procfs.c: Use string.h, not gdb_string.h.
1226 * prologue-value.c: Use string.h, not gdb_string.h.
1227 * python/py-auto-load.c: Use string.h, not gdb_string.h.
1228 * python/py-gdb-readline.c: Use string.h, not gdb_string.h.
1229 * ravenscar-thread.c: Use string.h, not gdb_string.h.
1230 * regcache.c: Use string.h, not gdb_string.h.
1231 * registry.c: Use string.h, not gdb_string.h.
1232 * remote-fileio.c: Use string.h, not gdb_string.h.
1233 * remote-m32r-sdi.c: Use string.h, not gdb_string.h.
1234 * remote-mips.c: Use string.h, not gdb_string.h.
1235 * remote-sim.c: Use string.h, not gdb_string.h.
1236 * remote.c: Use string.h, not gdb_string.h.
1237 * reverse.c: Use string.h, not gdb_string.h.
1238 * rs6000-aix-tdep.c: Use string.h, not gdb_string.h.
1239 * ser-base.c: Use string.h, not gdb_string.h.
1240 * ser-go32.c: Use string.h, not gdb_string.h.
1241 * ser-mingw.c: Use string.h, not gdb_string.h.
1242 * ser-pipe.c: Use string.h, not gdb_string.h.
1243 * ser-tcp.c: Use string.h, not gdb_string.h.
1244 * ser-unix.c: Use string.h, not gdb_string.h.
1245 * serial.c: Use string.h, not gdb_string.h.
1246 * sh-tdep.c: Use string.h, not gdb_string.h.
1247 * sh64-tdep.c: Use string.h, not gdb_string.h.
1248 * shnbsd-tdep.c: Use string.h, not gdb_string.h.
1249 * skip.c: Use string.h, not gdb_string.h.
1250 * sol-thread.c: Use string.h, not gdb_string.h.
1251 * solib-dsbt.c: Use string.h, not gdb_string.h.
1252 * solib-frv.c: Use string.h, not gdb_string.h.
1253 * solib-osf.c: Use string.h, not gdb_string.h.
1254 * solib-spu.c: Use string.h, not gdb_string.h.
1255 * solib-target.c: Use string.h, not gdb_string.h.
1256 * solib.c: Use string.h, not gdb_string.h.
1257 * somread.c: Use string.h, not gdb_string.h.
1258 * source.c: Use string.h, not gdb_string.h.
1259 * sparc-nat.c: Use string.h, not gdb_string.h.
1260 * sparc-sol2-tdep.c: Use string.h, not gdb_string.h.
1261 * sparc-tdep.c: Use string.h, not gdb_string.h.
1262 * sparc64-tdep.c: Use string.h, not gdb_string.h.
1263 * sparc64fbsd-tdep.c: Use string.h, not gdb_string.h.
1264 * sparc64nbsd-tdep.c: Use string.h, not gdb_string.h.
1265 * sparcnbsd-tdep.c: Use string.h, not gdb_string.h.
1266 * spu-linux-nat.c: Use string.h, not gdb_string.h.
1267 * spu-multiarch.c: Use string.h, not gdb_string.h.
1268 * spu-tdep.c: Use string.h, not gdb_string.h.
1269 * stabsread.c: Use string.h, not gdb_string.h.
1270 * stack.c: Use string.h, not gdb_string.h.
1271 * std-regs.c: Use string.h, not gdb_string.h.
1272 * symfile.c: Use string.h, not gdb_string.h.
1273 * symmisc.c: Use string.h, not gdb_string.h.
1274 * symtab.c: Use string.h, not gdb_string.h.
1275 * target.c: Use string.h, not gdb_string.h.
1276 * thread.c: Use string.h, not gdb_string.h.
1277 * tilegx-linux-nat.c: Use string.h, not gdb_string.h.
1278 * tilegx-tdep.c: Use string.h, not gdb_string.h.
1279 * top.c: Use string.h, not gdb_string.h.
1280 * tracepoint.c: Use string.h, not gdb_string.h.
1281 * tui/tui-command.c: Use string.h, not gdb_string.h.
1282 * tui/tui-data.c: Use string.h, not gdb_string.h.
1283 * tui/tui-disasm.c: Use string.h, not gdb_string.h.
1284 * tui/tui-file.c: Use string.h, not gdb_string.h.
1285 * tui/tui-layout.c: Use string.h, not gdb_string.h.
1286 * tui/tui-out.c: Use string.h, not gdb_string.h.
1287 * tui/tui-regs.c: Use string.h, not gdb_string.h.
1288 * tui/tui-source.c: Use string.h, not gdb_string.h.
1289 * tui/tui-stack.c: Use string.h, not gdb_string.h.
1290 * tui/tui-win.c: Use string.h, not gdb_string.h.
1291 * tui/tui-windata.c: Use string.h, not gdb_string.h.
1292 * tui/tui-winsource.c: Use string.h, not gdb_string.h.
1293 * typeprint.c: Use string.h, not gdb_string.h.
1294 * ui-file.c: Use string.h, not gdb_string.h.
1295 * ui-out.c: Use string.h, not gdb_string.h.
1296 * user-regs.c: Use string.h, not gdb_string.h.
1297 * utils.c: Use string.h, not gdb_string.h.
1298 * v850-tdep.c: Use string.h, not gdb_string.h.
1299 * valarith.c: Use string.h, not gdb_string.h.
1300 * valops.c: Use string.h, not gdb_string.h.
1301 * valprint.c: Use string.h, not gdb_string.h.
1302 * value.c: Use string.h, not gdb_string.h.
1303 * varobj.c: Use string.h, not gdb_string.h.
1304 * vax-tdep.c: Use string.h, not gdb_string.h.
1305 * vaxnbsd-tdep.c: Use string.h, not gdb_string.h.
1306 * vaxobsd-tdep.c: Use string.h, not gdb_string.h.
1307 * windows-nat.c: Use string.h, not gdb_string.h.
1308 * xcoffread.c: Use string.h, not gdb_string.h.
1309 * xml-support.c: Use string.h, not gdb_string.h.
1310 * xstormy16-tdep.c: Use string.h, not gdb_string.h.
1311 * xtensa-linux-nat.c: Use string.h, not gdb_string.h.
1312
1313 2013-11-18 Tom Tromey <tromey@redhat.com>
1314
1315 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add strerror
1316 and strstr.
1317 * gnulib/aclocal.m4: Update.
1318 * gnulib/config.in: Update.
1319 * gnulib/configure: Update.
1320 * gnulib/import/Makefile.am: Update.
1321 * gnulib/import/Makefile.in: Update.
1322 * gnulib/import/errno.in.h: New.
1323 * gnulib/import/intprops.h: New.
1324 * gnulib/import/m4/errno_h.m4: New.
1325 * gnulib/import/m4/gnulib-cache.m4: Update.
1326 * gnulib/import/m4/gnulib-comp.m4: Update.
1327 * gnulib/import/m4/strerror.m4: New.
1328 * gnulib/import/m4/strstr.m4: New.
1329 * gnulib/import/m4/sys_socket_h.m4: New.
1330 * gnulib/import/strerror-override.c: New.
1331 * gnulib/import/strerror-override.h: New.
1332 * gnulib/import/strerror.c: New.
1333 * gnulib/import/strstr.c: New.
1334
1335 2013-11-18 Tom Tromey <tromey@redhat.com>
1336
1337 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Split into
1338 multiple lines.
1339
1340 2013-11-18 Jose E. Marchesi <jose.marchesi@oracle.com>
1341
1342 * sparc-tdep.c (sparc_is_annulled_branch_insn): New function.
1343 * sparc-tdep.h: And its prototype.
1344
1345 * sparc64-linux-tdep.c (sparc64_linux_get_longjmp_target): New
1346 function.
1347 (sparc64_linux_init_abi): Register the get_longjmp_target hook.
1348
1349 2013-11-18 Pedro Alves <palves@redhat.com>
1350
1351 * dwarf2-frame.c (read_addr_from_reg): Remove stale comment and
1352 use unpack_pointer.
1353
1354 2013-11-18 Joel Brobecker <brobecker@adacore.com>
1355
1356 * mi/mi-main.c (mi_cmd_list_features): Add "language-options"
1357 to -list-features output.
1358
1359 2013-11-17 Joel Brobecker <brobecker@adacore.com>
1360
1361 * dwarf2expr.h (struct dwarf_expr_context_funcs)
1362 <read_addr_from_reg>: Renames "read_reg".
1363 * dwarf2-frame.c (read_addr_from_reg): Renames "read_reg".
1364 Adjust comment.
1365 (dwarf2_frame_ctx_funcs, execute_stack_op, dwarf2_frame_cache):
1366 Use read_addr_from_reg in place of read_reg.
1367 * dwarf2expr.c (execute_stack_op): Use read_addr_from_reg
1368 in place of read_reg.
1369 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Renames
1370 dwarf_expr_read_reg.
1371 (dwarf_expr_ctx_funcs): Replace dwarf_expr_read_reg
1372 with dwarf_expr_read_addr_from_reg.
1373 (needs_frame_read_addr_from_reg): Renames needs_frame_read_reg.
1374 (needs_frame_ctx_funcs): Replace needs_frame_read_reg with
1375 needs_frame_read_addr_from_reg.
1376
1377 2013-11-15 Jan Kratochvil <jan.kratochvil@redhat.com>
1378
1379 * NEWS (Changes in GDB 7.5) (New commands) (explore): Fix typo.
1380
1381 2013-11-15 Andreas Arnez <arnez@linux.vnet.ibm.com>
1382
1383 * dwarf2loc.c (chain_candidate): Prevent invoking memcpy with
1384 NULL.
1385
1386 2013-11-15 Tom Tromey <tromey@redhat.com>
1387
1388 PR c++/16117:
1389 * c-exp.y (lex_one_token): Add "is_quoted_name" argument.
1390 (classify_name): Likewise. Prefer a field of "this" over a
1391 filename.
1392 (classify_inner_name, yylex): Update.
1393
1394 2013-11-15 Joel Brobecker <brobecker@adacore.com>
1395
1396 * dwarf2expr.h (struct dwarf_expr_context_funcs) <read_reg>:
1397 Extend the documentation a bit.
1398 <get_reg_value>: New field.
1399 * dwarf2loc.c (dwarf_expr_get_reg_value)
1400 (needs_frame_get_reg_value): New functions.
1401 (dwarf_expr_ctx_funcs, needs_frame_ctx_funcs): Add "get_reg_value"
1402 callback.
1403 * dwarf2-frame.c (get_reg_value): New function.
1404 (dwarf2_frame_ctx_funcs): Add "get_reg_value" callback.
1405 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_regval_type>:
1406 Use new callback to compute result_val.
1407
1408 2013-11-15 Alan Modra <amodra@gmail.com>
1409
1410 * ppc64-tdep.c (ppc64_plt_entry_point): Renamed from..
1411 (ppc64_desc_entry_point): ..this. Update comments here and at
1412 call points.
1413 (ppc64_standard_linkage1, ppc64_standard_linkage2,
1414 ppc64_standard_linkage3): Update comments.
1415 (ppc64_standard_linkage4, ppc64_standard_linkage5,
1416 (ppc64_standard_linkage6, ppc64_standard_linkage7): New insn
1417 patterns.
1418 (ppc64_standard_linkage4_target): New function.
1419 (ppc64_skip_trampoline_code): Skip ELFv2 patterns too.
1420 * rs6000-tdep.c (skip_prologue): Skip ELFv2 r2 setup. Correct
1421 nop match. Fix comment wrap.
1422
1423 2013-11-14 Pedro Alves <palves@redhat.com>
1424
1425 * infrun.c (handle_signal_stop): Move STOP_QUIETLY,
1426 STOP_QUIETLY_REMOTE and 'stop_after_trap' handling earlier.
1427
1428 2013-11-14 Pedro Alves <palves@redhat.com>
1429
1430 * infrun.c (struct execution_control_state)
1431 <stepped_after_stopped_by_watchpoint>: New field.
1432 (get_inferior_stop_soon): New function.
1433 (handle_inferior_event): 'stepped_after_stopped_by_watchpoint' was
1434 moved to struct execution_control_state -- adjust. Use
1435 get_inferior_stop_soon. Split TARGET_WAITKIND_STOPPED handling to
1436 new function.
1437 (handle_signal_stop): New function, factored out from
1438 handle_inferior_event.
1439
1440 2013-11-14 Pedro Alves <palves@redhat.com>
1441
1442 * break-catch-sig.c (signal_catchpoint_explains_signal): Adjust to
1443 return a boolean.
1444 * breakpoint.c (bpstat_explains_signal): Adjust to return a
1445 boolean.
1446 (explains_signal_watchpoint, base_breakpoint_explains_signal):
1447 Adjust to return a boolean.
1448 * breakpoint.h (enum bpstat_signal_value): Delete.
1449 (struct breakpoint_ops) <explains_signal>: New returns a boolean.
1450 (bpstat_explains_signal): Likewise.
1451 * infrun.c (handle_inferior_event) <random signal checks>:
1452 bpstat_explains_signal now returns a boolean - adjust. No longer
1453 consider hiding signals.
1454
1455 2013-11-14 Pedro Alves <palves@redhat.com>
1456
1457 * breakpoint.c (bpstat_explains_signal) <Moribund locations>:
1458 Return BPSTAT_SIGNAL_PASS instead of BPSTAT_SIGNAL_HIDE.
1459 (explains_signal_watchpoint): Return BPSTAT_SIGNAL_PASS instead of
1460 BPSTAT_SIGNAL_HIDE.
1461 (base_breakpoint_explains_signal): Return BPSTAT_SIGNAL_PASS
1462 instead of BPSTAT_SIGNAL_HIDE.
1463 * infrun.c (handle_inferior_event): Rework random signal checks.
1464
1465 2013-11-14 Pedro Alves <palves@redhat.com>
1466
1467 * infrun.c (struct execution_control_state): Remove
1468 'random_signal' field.
1469 (handle_syscall_event): Use bpstat_causes_stop instead of
1470 bpstat_explains_signal. Don't set ecs->random_signal.
1471 (handle_inferior_event): New 'random_signal' local.
1472 <TARGET_WAITKIND_FORKED, TARGET_WAITKIND_VFORKED,
1473 TARGET_WAITKIND_EXECD>: Use bpstat_causes_stop instead of
1474 bpstat_explains_signal. Don't set ecs->random_signal.
1475 <TARGET_WAITKIND_STOPPED>: Adjust to use local instead of
1476 ecs->random_signal.
1477
1478 2013-11-14 Pedro Alves <palves@redhat.com>
1479
1480 * infrun.c (handle_inferior_event): Move comment from the
1481 function's body to the function's description, adjusted.
1482
1483 2013-11-14 Pedro Alves <palves@redhat.com>
1484
1485 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
1486 Handle STOP_QUIETLY_NO_SIGSTOP and STOP_QUIETLY_REMOTE here.
1487 Assert we never fall through out of the TARGET_WAITKIND_LOADED
1488 case.
1489
1490 2013-11-14 Tom Tromey <tromey@redhat.com>
1491
1492 * python/py-linetable.c (ltpy_has_line)
1493 (ltpy_get_all_source_lines): Fix loop termination condition.
1494
1495 2013-11-14 Joel Brobecker <brobecker@adacore.com>
1496
1497 * mi/mi-parse.h (struct mi_parse) <language>: New field.
1498 * mi/mi-main.c (mi_cmd_execute): Temporarily set language to
1499 PARSE->LANGUAGE during command execution, if set.
1500 * mi/mi-parse.c: Add "language.h" #include.
1501 (mi_parse): Add parsing of "--language" command option.
1502
1503 * NEWS: Add entry mentioning the new "--language" command option.
1504
1505 2013-11-14 Pedro Alves <palves@redhat.com>
1506 Joel Brobecker <brobecker@adacore.com>
1507
1508 * cli/cli-utils.h (extract_arg_const): Add declaration.
1509 * cli/cli-utils.c (extract_arg_const): New function.
1510 (extract_arg): Reimplement using extract_arg_const.
1511
1512 2013-11-14 Joel Brobecker <brobecker@adacore.com>
1513
1514 * language.h: Add "symtab.h" #include.
1515
1516 2013-11-13 Doug Evans <xdje42@gmail.com>
1517
1518 * breakpoint.c (bpstat_check_breakpoint_conditions): For thread
1519 specific breakpoints, don't evaluate breakpoint condition if
1520 different thread.
1521
1522 2013-11-13 Keith Seitz <keiths@redhat.com>
1523
1524 PR c++/7935
1525 PR c++/10541
1526 * cp-support.c (insepct_type): Add support for substituting
1527 namespace aliases, too.
1528 * dwarf2read.c (scan_partial_symbols): Add a partial symbol
1529 for DW_TAG_imported_declaration.
1530 (add_partial_symbol): Likewise.
1531 (process_die): Handle namespace aliases with
1532 read_namespace_alias.
1533 (die_needs_namespace): Add DW_TAG_imported_declaration.
1534 (read_namespace_alias): New function.
1535 (load_partial_dies): Load DW_TAG_imported_declaration, too.
1536 (new_symbol_full): Handle DW_TAG_imported_declaration.
1537
1538 2013-11-13 Keith Seitz <keiths@redhat.com>
1539
1540 * p-exp.y (uptok): Make first parameter const.
1541 (yylex): Make `tokstart' and `tokptr' const.
1542 Don't copy the lexer input to a temporary buffer.
1543 Make `p' const.
1544 Remove const workaround for parse_escape.
1545 Create a temporary buffer for a convenience variable instead
1546 of doing in-place modification of the input.
1547 If a match is found with a different case from the input,
1548 do not change the input at all.
1549 Use `tmp' to construct the resultant stoken instead of
1550 `tokstart'.
1551
1552 2013-11-13 Doug Evans <xdje42@gmail.com>
1553
1554 * breakpoint.c (breakpoint_cond_eval): Fix and enhance comment.
1555
1556 2013-11-13 Joel Brobecker <brobecker@adacore.com>
1557
1558 * mi/mi-main.c (mi_cmd_list_features): Replace "info-ada-exceptions"
1559 entry with "ada-exceptions".
1560
1561 2013-11-13 Joel Brobecker <brobecker@adacore.com>
1562
1563 * symfile.c (reread_symbols): Move call to set_objfile_per_bfd
1564 after re-initialization of OBJFILE's obstack.
1565
1566 2013-11-12 Doug Evans <xdje42@gmail.com>
1567
1568 * breakpoint.c (bpstat_check_breakpoint_conditions): Assert
1569 bs->stop != 0 on entry. Update function comment. Simplify early
1570 exit for frame mismatch. Reindent rest of function.
1571
1572 2013-11-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
1573
1574 * objc-lang.c (uniquify_strings): Prevent invoking qsort with
1575 NULL.
1576
1577 2013-11-12 Doug Evans <dje@google.com>
1578
1579 Work around gold/15646.
1580 * dwarf2read.c (read_index_from_section): Update comment.
1581 (struct dw2_symtab_iterator): New member global_seen.
1582 (dw2_symtab_iter_init): Initialize it.
1583 (dw2_symtab_iter_next): Skip duplicate global symbols.
1584 (dw2_expand_symtabs_matching): Ditto.
1585
1586 2013-11-12 Joel Brobecker <brobecker@adacore.com>
1587
1588 * mi/mi-cmds.h (mi_cmd_info_ada_exceptions): Add declaration.
1589 * mi/mi-cmds.c (mi_cmds): Add entry for -info-ada-exceptions
1590 command.
1591 * mi/mi-cmd-info.c: #include "ada-lang.c" and "arch-utils.c".
1592 (mi_cmd_info_ada_exceptions): New function.
1593 * mi/mi-main.c (mi_cmd_list_features): Add "info-ada-exceptions".
1594
1595 2013-11-12 Joel Brobecker <brobecker@adacore.com>
1596
1597 * ada-lang.h: #include "vec.h".
1598 (struct ada_exc_info): New.
1599 (ada_exc_info): New typedef.
1600 (DEF_VEC_O(ada_exc_info)): New vector.
1601 (ada_exceptions_list): Add declaration.
1602 * ada-lang.c (ada_is_exception_sym)
1603 (ada_is_non_standard_exception_sym, compare_ada_exception_info)
1604 (sort_remove_dups_ada_exceptions_list)
1605 (ada_exc_search_name_matches, ada_add_standard_exceptions)
1606 (ada_add_exceptions_from_frame, ada_add_global_exceptions)
1607 (ada_exceptions_list_1, ada_exceptions_list)
1608 (info_exceptions_command): New function.
1609 (_initialize_ada_language): Add "info exception" command.
1610
1611 2013-11-11 Phil Muldoon <pmuldoon@redhat.com>
1612
1613 PR python/15629
1614 * NEWS: Add linetable feature.
1615 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-linetable entries.
1616 * python/py-linetable.c: New file.
1617 * python/py-symtab.c (stpy_get_linetable): New function.
1618 * python/python-internal.h (symtab_to_linetable_object): Declare.
1619 (gdbpy_initialize_linetable): Ditto.
1620 * python/python.c (_initialize_python): Call
1621 gdbpy_initialize_linetable.
1622
1623 2013-11-11 Joel Brobecker <brobecker@adacore.com>
1624
1625 * ada-lang.c (create_ada_exception_catchpoint): Enhance
1626 the documentation of fields "except_string" and "condition".
1627 * mi/mi-cmd-catch.c (mi_cmd_catch_assert): Reallocate
1628 CONDITION on the heap before passing it to
1629 create_ada_exception_catchpoint.
1630 (mi_cmd_catch_exception): Likewise for EXCEPTION_NAME and
1631 CONDITION.
1632
1633 2013-11-11 Tom Tromey <tromey@redhat.com>
1634
1635 * config.in, configure: Rebuild.
1636 * configure.ac (HAVE_TKILL_SYSCALL): Check for "syscall".
1637
1638 2013-11-11 Joel Brobecker <brobecker@adacore.com>
1639
1640 * remote-sim.c (gdbsim_detach): Break declaration into
1641 shorter lines. No code change.
1642
1643 2013-11-11 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
1644
1645 * remote-sim.c (gdbsim_detach): Fix prototype.
1646
1647 2013-11-08 Doug Evans <dje@google.com>
1648
1649 * dwarf2read.c (dwarf2_read_debug): Change to unsigned int.
1650 (create_debug_types_hash_table): Only print debugging messages for
1651 each TU if dwarf2-read >= 2.
1652 (process_queue): Ditto.
1653 (_initialize_dwarf2_read): Make "set debug dwarf2-read" a zuinteger.
1654 Update doc string.
1655
1656 2013-11-08 Tom Tromey <tromey@redhat.com>
1657
1658 * configure: Rebuild.
1659 * configure.ac: Remove mentions of HAVE_MULTIPLE_PROC_FDS.
1660
1661 2013-11-08 Tom Tromey <tromey@redhat.com>
1662
1663 * configure, config.in: Rebuild.
1664 * configure.ac: Remove unused configury.
1665
1666 2013-11-08 Tom Tromey <tromey@redhat.com>
1667
1668 * m32c-tdep.c: Use gdb_string.h.
1669
1670 2013-11-08 Tom Tromey <tromey@redhat.com>
1671
1672 * configure, config.in: Rebuild.
1673 * configure.ac: Remove all link.h-related checks.
1674
1675 2013-11-08 Tom Tromey <tromey@redhat.com>
1676
1677 * acinclude.m4: Include common.m4.
1678 * common/common.m4: New file.
1679 * configure, config.in: Rebuild.
1680 * configure.ac: Use GDB_AC_COMMON.
1681
1682 2013-11-08 Doug Evans <dje@google.com>
1683
1684 * NEWS: Mention that "set debug symtab-create" now accepts a
1685 verbosity level.
1686 * buildsym.c (end_symtab_from_static_block): Call set_symtab_primary
1687 to set the symtab's primary flag.
1688 * jit.c (finalize_symtab): Ditto.
1689 * mdebugread.c (psymtab_to_symtab_1): Ditto.
1690 * symfile.c (allocate_symtab): Only print debugging messages for
1691 symtab_create_debug levels 2 and higher.
1692 * symtab.c (symtab_create_debug): Change type to unsigned int.
1693 (set_symtab_primary): New function.
1694 (_initialize_symtab): Change "set debug symtab-create" to a
1695 zuinteger option.
1696 * symtab.h (set_symtab_primary): Declare.
1697 (symtab_create_debug): Update decl.
1698
1699 2013-11-08 Tom Tromey <tromey@redhat.com>
1700
1701 * aix-thread.c (aix_thread_detach): Update.
1702 * corelow.c (core_detach): Update.
1703 * darwin-nat.c (darwin_detach): Update.
1704 * dec-thread.c (dec_thread_detach): Update.
1705 * gnu-nat.c (gnu_detach): Update.
1706 * go32-nat.c (go32_detach): Update.
1707 * inf-ptrace.c (inf_ptrace_detach): Update.
1708 * inf-ttrace.c (inf_ttrace_detach): Update.
1709 * linux-fork.c (linux_fork_detach): Update.
1710 * linux-fork.h (linux_fork_detach): Update.
1711 * linux-nat.c (linux_nat_detach): Update. Introduce "tem"
1712 local for const-correctness.
1713 * linux-thread-db.c (thread_db_detach): Update.
1714 * monitor.c (monitor_detach): Update.
1715 * nto-procfs.c (procfs_detach): Update.
1716 * procfs.c (procfs_detach): Update.
1717 * record.c (record_detach): Update.
1718 * record.h (record_detach): Update.
1719 * remote-m32r-sdi.c (m32r_detach): Update.
1720 * remote-mips.c (mips_detach): Update.
1721 * remote-sim.c (gdbsim_detach): Update.
1722 * remote.c (remote_detach_1, remote_detach)
1723 (extended_remote_detach): Update.
1724 * sol-thread.c (sol_thread_detach): Update.
1725 * target.c (target_detach): Make "args" const.
1726 (init_dummy_target): Update.
1727 * target.h (struct target_ops) <to_detach>: Make argument const.
1728 (target_detach): Likewise.
1729 * windows-nat.c (windows_detach): Update.
1730
1731 2013-11-07 Doug Evans <dje@google.com>
1732
1733 PR 11786
1734 * solib-svr4.c (svr4_exec_displacement): Ignore filesz, memsz, flags
1735 and align fields for PT_GNU_RELRO segments.
1736
1737 2013-11-07 Phil Muldoon <pmuldoon@redhat.com>
1738
1739 PR python/15747
1740 * python/py-cmd.c: Add COMPLETE_EXPRESSION constant.
1741
1742 2013-11-07 Phil Muldoon <pmuldoon@redhat.com>
1743
1744 * NEWS: Document Python temporary breakpoint support.
1745 * python/py-breakpoint.c (bppy_get_temporary): New function.
1746 (bppy_init): New keyword: temporary. Parse it and set breakpoint
1747 to temporary if True.
1748
1749 2013-11-07 Jose E. Marchesi <jose.marchesi@oracle.com>
1750
1751 * sparc-tdep.c (sparc_analyze_control_transfer): Assertion
1752 removed to allow analyzing unconditional branch instructions
1753 with PC-relative offsets of zero.
1754
1755 2013-11-07 Yao Qi <yao@codesourcery.com>
1756
1757 * mi/mi-cmd-var.c: Include "language.h".
1758 (mi_cmd_var_info_expression): Get language name from
1759 language_defn.
1760 * varobj.c (varobj_language_string): Remove.
1761 (variable_language): Remove declaration.
1762 (languages): Remove.
1763 (varobj_get_language): Change the type of return value.
1764 (variable_language): Remove.
1765 * varobj.h (enum varobj_languages): Remove.
1766 (varobj_language_string): Remove declaration.
1767 (varobj_get_language): Update declaration.
1768
1769 2013-11-07 Yao Qi <yao@codesourcery.com>
1770
1771 * language.h (struct language_defn) <la_natural_name>: New
1772 field.
1773 * ada-lang.c (ada_language_defn): Initialize field
1774 'la_natural_name'.
1775 * c-lang.c (c_language_defn): Likewise.
1776 (cplus_language_defn, asm_language_defn): Likewise.
1777 * d-lang.c (d_language_defn): Likewise.
1778 * f-lang.c (f_language_defn): Likewise.
1779 * go-lang.c (go_language_defn): Likewise.
1780 * jv-lang.c (java_language_defn): Likewise.
1781 * language.c (unknown_language_defn ): Likewise.
1782 (auto_language_defn): Likewise.
1783 * m2-lang.c (m2_language_defn): Likewise.
1784 * objc-lang.c (objc_language_defn): Likewise.
1785 * opencl-lang.c (opencl_language_defn): Likewise.
1786 * p-lang.c (pascal_language_defn): Likewise.
1787
1788 2013-11-07 Yao Qi <yao@codesourcery.com>
1789
1790 * language.c (language_str): Return const char *.
1791 (add_language): Add const to 'language_names'
1792 * language.h (struct language_defn) <la_name>: Add const.
1793 (language_str: Update declaration.
1794
1795 2013-11-06 Andreas Arnez <arnez@linux.vnet.ibm.com>
1796
1797 * s390-linux-nat.c (s390_read_description): Consider the TE field
1798 in the HWCAP for determining 'have_regset_tdb'.
1799
1800 2013-11-06 Will Newton <will.newton@linaro.org>
1801
1802 PR gdb/12866
1803 * dwarf2read.c (skip_one_die): Sanity check DW_AT_sibling
1804 values. (read_partial_die): Likewise.
1805
1806 2013-11-06 Muhammad Bilal <mbilal@codesourcery.com>
1807
1808 PR cli/16122
1809 * top.c (command_line_input): Unify interactivity tests to use
1810 input_from_terminal_p.
1811 * event-top.c (command_line_handler): Likewise.
1812
1813 2013-11-06 Yao Qi <yao@codesourcery.com>
1814
1815 * Makefile.in (check-perf): New target.
1816
1817 2013-11-05 Will Newton <will.newton@linaro.org>
1818
1819 PR gdb/7670
1820 * arm-tdep.c (print_fpu_flags): Use filtered output routines.
1821 (arm_print_float_info): Likewise.
1822
1823 2013-11-04 Anton Blanchard <anton@samba.org>
1824
1825 * target.c (memory_xfer_partial): Cap write to 4KB.
1826
1827 2013-11-01 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
1828
1829 * breakpoint.c (create_longjmp_master_breakpoint): Allow libc
1830 probe scan even when the arch provides no get_longjmp_target.
1831
1832 2013-10-31 Pedro Alves <palves@redhat.com>
1833
1834 * infrun.c (handle_syscall_event): Don't set or clear stop_signal.
1835 (handle_inferior_event) <TARGET_WAITKIND_FORKED,
1836 TARGET_WAITKIND_VFORKED>: Don't set stop_signal to
1837 GDB_SIGNAL_TRAP, or clear it. Pass GDB_SIGNAL_0 to
1838 bpstat_explains signal, instead of GDB_SIGNAL_TRAP.
1839 <bpstat handling>: If the bpstat chain wants the signal to be
1840 hidden, then set stop_signal to GDB_SIGNAL_0 instead of
1841 GDB_SIGNAL_TRAP.
1842
1843 2013-10-31 Andrew Burgess <aburgess@broadcom.com>
1844
1845 * breakpoint.c (update_watchpoint): Update error message and add
1846 an additional error message.
1847
1848 2013-10-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1849
1850 * s390-tdep.h: Rename to...
1851 * s390-linux-tdep.h: ...here.
1852 * s390-tdep.c: Rename to...
1853 * s390-linux-tdep.c: ...here. Adjust #include.
1854 * s390-nat.c: Rename to...
1855 * s390-linux-nat.c: ...here. Adjust #include.
1856 * config/s390/s390.mh: Rename to...
1857 * config/s390/linux.mh: ...here. Reflect rename s390-nat.o ->
1858 s390-linux-nat.o.
1859 * configure.host: Reflect host rename "s390" -> "linux".
1860 * configure.tgt: Reflect rename s390-tdep.o -> s390-linux-tdep.o.
1861 * Makefile.in (ALL_TARGET_OBS): Likewise.
1862 (HFILES_NO_SRCDIR): Reflect rename s390-tdep.h ->
1863 s390-linux-tdep.h.
1864 (ALLDEPFILES): Reflect rename of .c files.
1865
1866 2013-10-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1867
1868 * s390-nat.c: Whitespace cleanup.
1869 * s390-tdep.c: Likewise.
1870 * s390-tdep.h: Remove empty line at end of file.
1871
1872 2013-10-30 Maciej W. Rozycki <macro@codesourcery.com>
1873
1874 * linux-tdep.c (linux_corefile_thread_callback): Preinitialize
1875 siginfo_size.
1876
1877 2013-10-29 Tom Tromey <tromey@redhat.com>
1878
1879 * utils.c (reg): Move undefinition...
1880 * gdb_curses.h: ... here. Update comment to mention AIX.
1881
1882 2013-10-29 Nicolas Blanc <nicolas.blanc@intel.com>
1883
1884 * exec.h (add_target_sections_of_objfile): New declaration.
1885 * exec.c (add_target_sections_of_objfile): New function.
1886 * symfile.c (add_symbol_file_command): Update current target sections.
1887 (remove_symbol_file_command): New command.
1888 (symfile_free_objfile): New function.
1889 (_initialize_symfile): Register observer for free_objfile events.
1890 * NEWS: Add description of the remove-symbol-file command.
1891 * breakpoint.c (disable_breakpoints_in_freed_objfile): New function.
1892 * objfiles.c (free_objfile): Notify free_objfile.
1893 (is_addr_in_objfile): New function.
1894 * objfiles.h (is_addr_in_objfile): New declaration.
1895 * printcmd.c (clear_dangling_display_expressions): Act upon free_objfile
1896 events instead of solib_unloaded events.
1897 (_initialize_printcmd): Register observer for free_objfile instead
1898 of solib_unloaded notifications.
1899 * solib.c (remove_user_added_objfile): New function.
1900 (_initialize_symfile): Add remove-symbol-file.
1901
1902 2013-10-29 Andrew Burgess <aburgess@broadcom.com>
1903
1904 * infcmd.c (default_print_one_register_info): Use val_print to
1905 print all values even optimized out or unavailable ones. Don't
1906 try to print a raw form of optimized out or unavailable values.
1907
1908 2013-10-29 Yao Qi <yao@codesourcery.com>
1909
1910 * auto-load.c (auto_load_pspace_data_cleanup): Get data from
1911 parameter 'arg' instead of from program_space_data.
1912 * objfiles.c (objfiles_pspace_data_cleanup): Likewise.
1913 * solib-darwin.c (darwin_pspace_data_cleanup): Likewise.
1914 * solib-dsbt.c (dsbt_pspace_data_cleanup): Likewise.
1915 * solib-svr4.c (svr4_pspace_data_cleanup): Likewise.
1916 * inflow.c (inflow_inferior_data_cleanup): Get data from
1917 parameter 'arg' instead of inferior_data.
1918 * registry.h: Add comments.
1919
1920 2013-10-28 Pedro Alves <palves@redhat.com>
1921
1922 * breakpoint.c (watchpoints_triggered)
1923 <!target_stopped_data_address>: Hardcode return 1.
1924
1925 2013-10-28 Pedro Alves <palves@redhat.com>
1926
1927 * infrun.c (process_event_stop_test): Remove unnecessary scoping
1928 level and reindent.
1929
1930 2013-10-28 Pedro Alves <palves@redhat.com>
1931
1932 * infrun.c (process_event_stop_test): New function, factored out
1933 from handle_inferior_event.
1934 (handle_inferior_event): 'process_event_stop_test' is now a
1935 function instead of a goto label -- adjust.
1936
1937 2013-10-28 Pedro Alves <palves@redhat.com>
1938
1939 * infrun.c (handle_inferior_event): Move process_event_stop_test
1940 goto label to the else branch of the ecs->random_signal check,
1941 along with FRAME and GDBARCH re-fetching.
1942
1943 2013-10-28 Pedro Alves <palves@redhat.com>
1944
1945 * infrun.c (switch_back_to_stepped_thread): New function, factored
1946 out from handle_inferior_event.
1947 (handle_inferior_event): Adjust to call
1948 switch_back_to_stepped_thread. Call it also at the tail of the
1949 random signal handling, and return, instead of also handling
1950 random signals just before the stepping tests.
1951
1952 2013-10-28 Pedro Alves <palves@redhat.com>
1953
1954 * infrun.c (clear_stop_func): Delete.
1955 (handle_inferior_event): Don't call clear_stop_func and don't
1956 clear 'ecs->random_signal'.
1957
1958 2013-10-27 Yao Qi <yao@codesourcery.com>
1959
1960 * varobj.c (struct varobj_root) <lang>: Rename to 'lang_ops'.
1961 (varobj_create, varobj_get_path_expr): Update.
1962 (varobj_value_has_mutated, varobj_update): Likewise.
1963 (create_child_with_value, new_root_variable): Likewise.
1964 (number_of_children, name_of_variable): Likewise.
1965 (value_of_child, my_value_of_variable): Likewise.
1966 (varobj_value_is_changeable_p): Likewise.
1967
1968 2013-10-25 Yao Qi <yao@codesourcery.com>
1969
1970 * language.h (struct lang_varobj_ops): Declare.
1971 (struct language_defn) <la_varobj_ops>: New field.
1972 * ada-lang.c: Include "varobj.h"
1973 (defn ada_language_defn): Initialize field 'la_varobj_ops' with
1974 ada_varobj_ops.
1975 * c-lang.c: Include "varobj.h"
1976 (c_language_defn): Initialize field 'la_varobj_ops' with
1977 c_varobj_ops.
1978 (cplus_language_defn): Initialize field 'la_varobj_ops' with
1979 cplus_varobj_ops.
1980 (asm_language_defn): Initialize field 'la_varobj_ops' with
1981 default_varobj_ops.
1982 (minimal_language_defn): Likewise.
1983 * d-lang.c (d_language_defn): Likewise.
1984 * f-lang.c (f_language_defn): Likewise.
1985 * go-lang.c (go_language_defn): Likewise.
1986 * m2-lang.c (m2_language_defn): Likewise.
1987 * objc-lang.c (objc_language_defn): Likewise.
1988 * opencl-lang.c (opencl_language_defn): Likewise.
1989 * p-lang.c (pascal_language_defn): Likewise.
1990 * language.c (unknown_language_defn): Likewise.
1991 (auto_language_defn): Likewise.
1992 (local_language_defn): Likewise.
1993 * jv-lang.c (java_language_defn): Initialize field
1994 'la_varobj_ops' with java_varobj_ops.
1995 * varobj.c (varobj_create): Update.
1996 * varobj.h (default_varobj_ops): Define macro.
1997
1998 2013-10-25 Pedro Alves <palves@redhat.com>
1999
2000 * cp-valprint.c (cp_print_value_fields): No longer handle a NULL
2001 static field value.
2002 (cp_print_static_field): If the value is entirely optimized out,
2003 print <optimized out> here.
2004 * jv-valprint.c (java_print_value_fields): No longer handle a NULL
2005 static field value.
2006 * p-valprint.c (pascal_object_print_static_field): If the value is
2007 entirely optimized out, print <optimized out> here.
2008 * valops.c (do_search_struct_field)
2009 (value_struct_elt_for_reference): No longer handle a NULL static
2010 field value.
2011 * value.c (value_static_field): Return an optimized out value
2012 instead of NULL.
2013
2014 2013-10-25 Yao Qi <yao@codesourcery.com>
2015
2016 * remote.c (remote_traceframe_info): Return early if
2017 traceframe is not selected.
2018
2019 2013-10-25 Yao Qi <yao@codesourcery.com>
2020
2021 * tracepoint.c (traceframe_fun): Remove.
2022 (traceframe_sal): Remove.
2023 (set_traceframe_context): Add local variables.
2024
2025 2013-10-25 Joel Brobecker <brobecker@adacore.com>
2026
2027 * varobj.h (struct lang_varobj_ops): Remove spaces between '*'
2028 and parameter name.
2029
2030 2013-10-24 Maciej W. Rozycki <macro@codesourcery.com>
2031
2032 * linux-tdep.c (linux_corefile_thread_callback): Propagate any
2033 failure from register information collection.
2034
2035 2013-10-24 Maciej W. Rozycki <macro@codesourcery.com>
2036
2037 * linux-tdep.c (linux_corefile_thread_data): Remove `num_notes'
2038 member.
2039 (linux_corefile_thread_callback): Update accordingly.
2040 (linux_make_corefile_notes): Likewise.
2041
2042 2013-10-24 Pedro Alves <palves@redhat.com>
2043
2044 * NEWS (New options): Mention set/show startup-with-shell.
2045 * config/alpha/nm-osf3.h (START_INFERIOR_TRAPS_EXPECTED): Set to 2
2046 instead of 3.
2047 * fork-child.c (fork_inferior, startup_inferior): Handle 'set
2048 startup-with-shell'.
2049 (show_startup_with_shell): New function.
2050 (_initialize_fork_child): Register the set/show startup-with-shell
2051 commands.
2052 * inf-ptrace.c (inf_ptrace_create_inferior): Remove comment.
2053 * inf-ttrace.c (inf_ttrace_him): Remove comment.
2054 * procfs.c (procfs_init_inferior): Remove comment.
2055 * infcmd.c (startup_with_shell): New global.
2056 * inferior.h (startup_with_shell): Declare global.
2057 (STARTUP_WITH_SHELL): Delete.
2058 (START_INFERIOR_TRAPS_EXPECTED): Set to 1 by default instead of 2.
2059
2060 2013-10-23 Pedro Alves <palves@redhat.com>
2061
2062 * common/gdb_signals.h (gdb_signal_to_symbol_string): Declare.
2063 * common/signals.c: Include "gdb_assert.h".
2064 (signals): New field 'symbol'.
2065 (SET): Use the 'symbol' parameter.
2066 (gdb_signal_to_symbol_string): New function.
2067 * infrun.c (handle_inferior_event) <random signal>: In debug
2068 output, print the random signal enum as string in addition to its
2069 number.
2070 * target/waitstatus.c (target_waitstatus_to_string): Print the
2071 signal's enum value as string instead of the (POSIX) signal name.
2072
2073 2013-10-23 Gary Benson <gbenson@redhat.com>
2074
2075 PR 16013
2076 * common/linux-osdata.c (command_from_pid): Reduced size of cmd
2077 from 32 to 18. Adjusted fscanf format string accordingly.
2078 (Avoids leaving cmd unterminated.)
2079 (print_sockets): Do not parse tlen, inode, sl, timeout, txq, rxq,
2080 trun, retn or extra. (Avoids leaving extra unterminated.) Check
2081 that local_address and remote_address will not overflow.
2082 (linux_xfer_osdata_modules): Parse lines using strtok to avoid
2083 leaving dependencies unterminated. Parse size as "%u" to match
2084 definition.
2085
2086 2013-10-22 Pedro Alves <palves@redhat.com>
2087
2088 * infrun.c (handle_inferior_event) <thread hop>: Don't clear or
2089 set ecs->random signal.
2090
2091 2013-10-22 Pedro Alves <palves@redhat.com>
2092
2093 * infrun.c (keep_going): Update comments.
2094
2095 2013-10-22 Pedro Alves <palves@redhat.com>
2096
2097 * remote.c (remote_parse_stop_reply) <'T'/'S'/'X' replies>: Map
2098 invalid signal numbers to GDB_SIGNAL_UNKNOWN.
2099
2100 2013-10-22 Pedro Alves <palves@redhat.com>
2101
2102 * include/gdb/signals.def (TARGET_EXC_BAD_ACCESS): Rename to
2103 GDB_EXC_BAD_ACCESS.
2104 (TARGET_EXC_BAD_INSTRUCTION): Rename to GDB_EXC_BAD_INSTRUCTION.
2105 (TARGET_EXC_ARITHMETIC): Rename to GDB_EXC_ARITHMETIC.
2106 (TARGET_EXC_EMULATION): Rename to GDB_EXC_EMULATION.
2107 (TARGET_EXC_SOFTWARE): Rename to GDB_EXC_SOFTWARE.
2108 (TARGET_EXC_BREAKPOINT): Rename to GDB_EXC_BREAKPOINT.
2109 (GDB_SIGNAL_LAST): Change description string.
2110 * common/signals.c (gdb_signal_from_host, do_gdb_signal_to_host):
2111 Adjust to signal renaming.
2112 * darwin-nat.c (darwin_decode_message): Likewise.
2113
2114 2013-10-22 Jose E. Marchesi <jose.marchesi@oracle.com>
2115
2116 * MAINTAINERS (Write After Approval): Add myself to the list.
2117
2118 2013-10-18 Andrew Burgess <aburgess@broadcom.com>
2119
2120 * breakpoint.c (update_watchpoint): If hardware watchpoints are
2121 forced off, downgrade them to software watchpoints if possible,
2122 and error out if not possible.
2123 (watch_command_1): Move watchpoint type selection closer to
2124 watchpoint creation, and extend the comments.
2125
2126 2013-10-18 Pedro Alves <palves@redhat.com>
2127
2128 PR gdb/16062
2129 * infrun.c (handle_inferior_event): Keep going if we got a random
2130 signal we should not stop for, instead of falling through to the
2131 step tests.
2132
2133 2013-10-18 Yao Qi <yao@codesourcery.com>
2134
2135 * c-varobj.c (cplus_number_of_children): Fix indentation.
2136
2137 2013-10-17 Tom Tromey <tromey@redhat.com>
2138
2139 PR gdb/15995:
2140 * printcmd.c (printcmd): Call gdb_flush.
2141
2142 2013-10-17 Tom Tromey <tromey@redhat.com>
2143
2144 * elfread.c (struct elfinfo) <stabindexsect>: Remove.
2145 (elf_locate_sections): Update.
2146
2147 2013-10-17 Yao Qi <yao@codesourcery.com>
2148
2149 * Makefile.in (HFILES_NO_SRCDIR): Remove ada-varobj.h.
2150 * ada-varobj.c: Remove the include of ada-varobj.h.
2151 (ada_varobj_get_number_of_children): Declare.
2152 (ada_varobj_get_name_of_child): Make it static.
2153 (ada_varobj_get_path_expr_of_child): Likewise.
2154 (ada_varobj_get_value_of_child): Likewise.
2155 (ada_varobj_get_type_of_child): Likewise.
2156 (ada_varobj_get_value_of_array_variable): Likewise.
2157 * ada-varobj.h: Remove.
2158
2159 2013-10-17 Yao Qi <yao@codesourcery.com>
2160
2161 * Makefile.in (SFILES): Add c-varobj.c and jv-varobj.c.
2162 (COMMON_OBS): Add c-varobj.o and jv-varobj.o.
2163 * ada-varobj.c: Include "varobj.h".
2164 (ada_number_of_children): New. Moved from varobj.c.
2165 (ada_name_of_variable, ada_name_of_child): Likewise.
2166 (ada_path_expr_of_child, ada_value_of_child): Likewise.
2167 (ada_type_of_child, ada_value_of_variable): Likewise.
2168 (ada_value_is_changeable_p, ada_value_has_mutated): Likewise.
2169 (ada_varobj_ops): New.
2170 * c-varobj.c, jv-varobj.c: New file. Moved from varobj.c.
2171 * gdbtypes.c (get_target_type): New. Moved from varobj.c.
2172 * gdbtypes.h (get_target_type): Declare.
2173 * varobj.c: Remove the inclusion of "ada-varobj.h" and
2174 "ada-lang.h".
2175 (ANONYMOUS_STRUCT_NAME): Move it to c-varobj.c.
2176 (ANONYMOUS_UNION_NAME): Likewise.
2177 (get_type, get_value_type, get_target_type): Remove declarations.
2178 (value_get_print_value, varobj_value_get_print_value): Likewise.
2179 (c_number_of_children, c_name_of_variable): Likewise.
2180 (c_name_of_child, c_path_expr_of_child): Likewise.
2181 (c_value_of_child, c_type_of_child): Likewise.
2182 (c_value_of_variable, cplus_number_of_children): Likewise.
2183 (cplus_class_num_children, cplus_name_of_variable): Likewise.
2184 (cplus_name_of_child, cplus_path_expr_of_child): Likewise.
2185 (cplus_value_of_child, cplus_type_of_child): Likewise.
2186 (cplus_value_of_variable, java_number_of_children): Likewise.
2187 (java_name_of_variable, java_name_of_child): Likewise.
2188 (java_path_expr_of_child, java_value_of_child): Likewise.
2189 (java_type_of_child, java_value_of_variable): Likewise.
2190 (ada_number_of_children, ada_name_of_variable): Likewise.
2191 (ada_name_of_child, ada_path_expr_of_child): Likewise.
2192 (ada_value_of_child, ada_type_of_child): Likewise.
2193 (ada_value_of_variable, ada_value_is_changeable_p): Likewise.
2194 (ada_value_has_mutated): Likewise.
2195 (struct language_specific): Move it to varobj.h.
2196 (CPLUS_FAKE_CHILD): Move it to varobj.h.
2197 (restrict_range): Rename it varobj_restrict_range. Make it extern.
2198 Callers update.
2199 (get_path_expr_parent): Rename it to varobj_get_path_expr_parent.
2200 Make it extern.
2201 (is_anonymous_child): Move it to c-varobj.c and rename to
2202 varobj_is_anonymous_child. Caller update.
2203 (get_type): Move it to c-varobj.c.
2204 (get_value_type): Rename it varobj_get_value_type. Make it
2205 extern.
2206 (get_target_type): Move it gdbtypes.c.
2207 (varobj_formatted_print_options): New function.
2208 (value_get_print_value): Rename it to
2209 varobj_value_get_print_value and make it extern.
2210 (varobj_value_is_changeable_p): Make it extern.
2211 (adjust_value_for_child_access): Move it to c-varobj.c.
2212 (default_value_is_changeable_p): Rename it to
2213 varobj_default_value_is_changeable_p. Make it extern.
2214 (c_number_of_children, c_name_of_variable): Move it to c-varobj.c
2215 (c_name_of_child, c_path_expr_of_child): Likewise.
2216 (c_value_of_child, c_type_of_child): Likewise.
2217 (c_value_of_variable, cplus_number_of_children): Likewise.
2218 (cplus_class_num_children, cplus_name_of_variable): Likewise.
2219 (cplus_name_of_child, cplus_path_expr_of_child): Likewise.
2220 (cplus_value_of_child, cplus_type_of_child): Likewise.
2221 (cplus_value_of_variable): Likewise.
2222 (java_number_of_children, java_name_of_variable): Move it to jv-varobj.c.
2223 (java_name_of_child, java_path_expr_of_child): Likewise.
2224 (java_value_of_child, java_type_of_child): Likewise.
2225 (java_value_of_variable): Likewise.
2226 (ada_number_of_children, ada_name_of_variable): Move it to ada-varobj.c.
2227 (ada_name_of_child, ada_path_expr_of_child): Likewise.
2228 (ada_value_of_child, ada_type_of_child): Likewise.
2229 (ada_value_of_variable, ada_value_is_changeable_p): Likewise.
2230 (ada_value_has_mutated): Likewise.
2231 * varobj.h (CPLUS_FAKE_CHILD): New macro, moved from varobj.c.
2232 (struct lang_varobj_ops): New. Renamed by 'struct language_specific'.
2233 (c_varobj_ops, cplus_varobj_ops): Declare.
2234 (java_varobj_ops, ada_varobj_ops): Declare.
2235 (varobj_default_value_is_changeable_p): Declare.
2236 (varobj_value_is_changeable_p): Declare.
2237 (varobj_get_value_type, varobj_is_anonymous_child): Declare.
2238 (varobj_get_path_expr_parent): Declare.
2239 (varobj_value_get_print_value): Declare.
2240 (varobj_formatted_print_options): Declare.
2241 (varobj_restrict_range): Declare.
2242
2243 2013-10-17 Luis Machado <lgustavo@codesourcery.com>
2244
2245 * target/waitstatus.h (target_waitkind): Remove spurious
2246 character from the comments.
2247
2248 2013-10-17 Joel Brobecker <brobecker@adacore.com>
2249
2250 * gdbarch.sh (get_longjmp_target): Add method documentation.
2251 * gdbarch.h: Regenerate.
2252
2253 2013-10-16 Tom Tromey <tromey@redhat.com>
2254
2255 * dbxread.c (read_dbx_symtab) <bss_ext_symbol>: Remove unused
2256 label.
2257
2258 2013-10-16 Luis Machado <lgustavo@codesourcery.com>
2259
2260 * gcore.in: Call GDB using the full path to the gcore script.
2261 Error out if the GDB binary is not found.
2262
2263 2013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
2264
2265 PR gdb/16014
2266 * dwarf2read.c (dw2_get_real_path): Remove unnecessary call to
2267 sizeof.
2268
2269 2013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
2270
2271 PR gdb/16042
2272 * target.c (target_disable_btrace): Fix invalid return value for
2273 void function.
2274 (target_teardown_btrace): Likewise.
2275
2276 2013-10-14 Yao Qi <yao@codesourcery.com>
2277
2278 * varobj.c (struct varobj): Move most of the fields to
2279 varobj.h.
2280 (struct varobj_dynamic): New struct.
2281 (varobj_get_display_hint) [HAVE_PYTHON]: Adjust.
2282 (varobj_has_more): Likewise.
2283 (dynamic_varobj_has_child_method): Likewise.
2284 (update_dynamic_varobj_children): Likewise.
2285 (varobj_get_num_children): Likewise.
2286 (varobj_list_children, varobj_pretty_printed_p): Likewise.
2287 (install_new_value_visualizer): Likewise.
2288 (install_new_value_visualizer, install_new_value): Likewise.
2289 (varobj_update, new_variable, free_variable): Likewise.
2290 (my_value_of_variable, value_get_print_value): Likewise.
2291 (install_visualizer): Change the type of parameter 'var' to
2292 'struct varobjd_dynamic *'. Callers update.
2293 * varobj.h (struct varobj): Moved from varobj.c.
2294 (struct varobj) <dynamic>: New field.
2295
2296 2013-10-13 Sandra Loosemore <sandra@codesourcery.com>
2297
2298 * nios2-tdep.c (nios2_reg_names): Use "sstatus" rather than "ba"
2299 as the preferred name of r30.
2300 * nios2-linux-tdep.c (reg_offsets): Likewise.
2301 * features/nios2-cpu.xml: Likewise.
2302 * features/nios2-linux.c: Regenerated.
2303 * features/nios2.c: Regenerated.
2304 * regformats/nios2-linux.dat: Regenerated.
2305
2306 2013-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2307
2308 Canonicalize directories for EXEC_FILENAME.
2309 * exec.c (exec_file_attach): Use gdb_realpath_keepfile for
2310 exec_filename.
2311 * utils.c (gdb_realpath_keepfile): New function.
2312 * utils.h (gdb_realpath_keepfile): New declaration.
2313
2314 2013-10-11 Doug Evans <dje@google.com>
2315
2316 * Makefile.in (GDBFLAGS): New variable.
2317 (run): New rule.
2318
2319 2013-10-11 Joel Brobecker <brobecker@adacore.com>
2320
2321 * NEWS: Add entry documenting the new "-catch-assert" and
2322 "-catch-exception" GDB/MI commands.
2323
2324 2013-10-11 Joel Brobecker <brobecker@adacore.com>
2325
2326 * breakpoint.h (init_ada_exception_breakpoint): Add parameter
2327 "enabled".
2328 * breakpoint.c (init_ada_exception_breakpoint): Add parameter
2329 "enabled". Set B->ENABLE_STATE accordingly.
2330 * ada-lang.h (ada_exception_catchpoint_kind): Move here from
2331 ada-lang.c.
2332 (create_ada_exception_catchpoint): Add declaration.
2333 * ada-lang.c (ada_exception_catchpoint_kind): Move to ada-lang.h.
2334 (create_ada_exception_catchpoint): Make non-static. Add new
2335 parameter "disabled". Use it in call to
2336 init_ada_exception_breakpoint.
2337 (catch_ada_exception_command): Add parameter "enabled" in call
2338 to create_ada_exception_catchpoint.
2339 (catch_assert_command): Likewise.
2340
2341 * mi/mi-cmds.h (mi_cmd_catch_assert, mi_cmd_catch_exception):
2342 Add declarations.
2343 * mi/mi-cmds.c (mi_cmds): Add the "catch-assert" and
2344 "catch-exception" commands.
2345 * mi/mi-cmd-catch.c: Add #include "ada-lang.h".
2346 (mi_cmd_catch_assert, mi_cmd_catch_exception): New functions.
2347
2348 2013-10-11 Joel Brobecker <brobecker@adacore.com>
2349
2350 * ada-lang.c (enum ada_exception_catchpoint_kind): Renames
2351 "enum exception_catchpoint_kind". Replace the "ex_" prefix
2352 of all its enumerates with "ada_". Update the rest of this
2353 file throughout.
2354
2355 2013-10-11 Joel Brobecker <brobecker@adacore.com>
2356
2357 * ada-lang.c (ada_decode_exception_location): Delete.
2358 (create_ada_exception_catchpoint): Remove arguments "sal",
2359 "addr_string" and "ops". Add argument "ex_kind" instead.
2360 Adjust implementation accordingly, calling ada_exception_sal
2361 to get the entities it no longer gets passed as arguments.
2362 Document the function's arguments.
2363 (catch_ada_exception_command): Use catch_ada_exception_command_split
2364 instead of ada_decode_exception_location, and update call to
2365 create_ada_exception_catchpoint.
2366 (catch_ada_assert_command_split): Renames
2367 ada_decode_assert_location. Remove parameters "addr_string" and
2368 "ops", and now returns void. Adjust implementation accordingly.
2369 Update the function documentation.
2370 (catch_assert_command): Use catch_ada_assert_command_split
2371 instead of ada_decode_assert_location. Update call to
2372 create_ada_exception_catchpoint.
2373
2374 2013-10-11 Joel Brobecker <brobecker@adacore.com>
2375
2376 * utils.h (perror_warning_with_name): Add declaration.
2377 * utils.c (perror_warning_with_name): New function.
2378 * cli/cli-cmds.c (source_script_with_search): Add call to
2379 perror_warning_with_name if from_tty is nul.
2380
2381 2013-10-11 Joel Brobecker <brobecker@adacore.com>
2382
2383 * utils.c (perror_string): New function, extracted out of
2384 throw_perror_with_name.
2385 (throw_perror_with_name): Rework to use perror_string.
2386
2387 2013-10-11 Yao Qi <yao@codesourcery.com>
2388
2389 * remote.c (discard_pending_stop_replies_in_queue): Update
2390 declaration.
2391 (struct stop_reply) <rs>: New field.
2392 (remove_stop_reply_of_remote_state): New function.
2393 (discard_pending_stop_replies_in_queue): Add parameter 'rs'.
2394 Callers update. Pass remove_stop_reply_of_remote_state to
2395 QUEUE_iterate.
2396 (remote_parse_stop_reply): Initialize field 'rs'.
2397
2398 2013-10-10 Will Newton <will.newton@linaro.org>
2399
2400 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
2401 linux_init_abi.
2402
2403 2013-10-10 Joel Brobecker <brobecker@adacore.com>
2404
2405 * cli/cli-cmds.c (show_baud_rate): Moved to serial.c as
2406 serial_baud_show_cmd.
2407 (_initialize_cli_cmds): Delete the code creating the
2408 "set/show remotebaud" commands.
2409 * serial.c (baud_rate): Move here from top.c.
2410 (serial_baud_show_cmd): Move here from cli/cli-cmds.c.
2411 (_initialize_serial): Create "set/show serial baud" commands.
2412 Add "set/show remotebaud" command aliases.
2413 * top.c (baud_rate): Moved to serial.c.
2414 * NEWS: Document the new "set/show serial baud" commands,
2415 replacing "set/show remotebaud".
2416
2417 2013-10-09 Pedro Alves <palves@redhat.com>
2418
2419 * breakpoint.c (insert_bp_location): Use memory_error_message to
2420 build the memory error string.
2421 * c-lang.c: Include "gdbcore.h".
2422 (c_get_string): Use memory_error to throw error.
2423 (target_xfer_memory_error): Delete.
2424 (memory_error_message): New, factored out from
2425 target_xfer_memory_error.
2426 (memory_error): Change parameter type to target_xfer_error.
2427 Rewrite.
2428 (read_memory): Use memory_error instead of
2429 target_xfer_memory_error.
2430 * gdbcore.h: Include "target.h".
2431 (memory_error): Change parameter type to target_xfer_error.
2432 (memory_error_message): Declare function.
2433 * target.c (target_read_memory, target_read_stack)
2434 (target_write_memory, target_write_raw_memory): Return
2435 TARGET_XFER_E_IO on error. Adjust comments.
2436 (get_target_memory): Pass TARGET_XFER_E_IO to memory_error,
2437 instead of EIO.
2438 * target.h (target_read, target_insert_breakpoint)
2439 (target_remove_breakpoint): Adjust comments.
2440 * valprint.c (partial_memory_read): Rename parameter, and adjust
2441 comment.
2442 (val_print_string): Use memory_error_message to build the memory
2443 error string.
2444
2445 2013-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2446
2447 * common/filestuff.c (gdb_fopen_cloexec): Remove initialization of
2448 result variable. Rename variable fopen_e_ever_failed to
2449 fopen_e_ever_failed_einval. Retry fopen only for errno EINVAL.
2450
2451 2013-10-09 Pedro Alves <palves@redhat.com>
2452
2453 * monitor.c (monitor_write_memory, monitor_write_memory_bytes)
2454 (monitor_write_memory_longlongs, monitor_write_memory_block):
2455 Constify 'myaddr' parameter.
2456 (monitor_xfer_memory): Adjust interface as monitor_xfer_partial
2457 helper.
2458 (monitor_xfer_partial): New function.
2459 (init_base_monitor_ops): Don't install a deprecated_xfer_memory
2460 hook. Install a to_xfer_partial hook.
2461
2462 2013-10-09 Tom Tromey <tromey@redhat.com>
2463
2464 * dwarf2read.c (dwarf2_get_dwz_file): Update for type change in
2465 bfd_get_alt_debug_link_info.
2466
2467 2013-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2468
2469 New flag OBJF_NOT_FILENAME.
2470 * auto-load.c (auto_load_objfile_script): Check also OBJF_NOT_FILENAME.
2471 * jit.c (jit_object_close_impl): Use OBJF_NOT_FILENAME for
2472 allocate_objfile.
2473 (jit_bfd_try_read_symtab): Use OBJF_NOT_FILENAME for
2474 symbol_file_add_from_bfd.
2475 * jv-lang.c (get_dynamics_objfile): Use OBJF_NOT_FILENAME for
2476 allocate_objfile.
2477 * objfiles.c (allocate_objfile): Assert OBJF_NOT_FILENAME if NAME is
2478 NULL.
2479 * objfiles.h (OBJF_NOT_FILENAME): New.
2480
2481 2013-10-08 Tom Tromey <tromey@redhat.com>
2482
2483 * Makefile.in (SFILES): Add build-id.c.
2484 (HFILES_NO_SRCDIR): Add build-id.h.
2485 * build-id.c: New file, largely from elfread.c. Modified
2486 most functions.
2487 * build-id.h: New file.
2488 * dwarf2read.c (dwarf2_get_dwz_file): Update for change to
2489 bfd_get_alt_debug_link_info. Verify dwz file's build-id.
2490 Search for dwz file using build-id.
2491 * elfread.c (build_id_bfd_get, build_id_verify)
2492 (build_id_to_debug_filename, find_separate_debug_file): Remove.
2493
2494 2013-10-08 Joel Brobecker <brobecker@adacore.com>
2495
2496 * ada-lang.c (compare_names_with_case): Renamed from
2497 compare_names, adding a new parameter "casing" and its handling.
2498 New function documentation.
2499 (compare_names): New function, implemented using
2500 compare_names_with_case.
2501
2502 2013-10-08 Joel Brobecker <brobecker@adacore.com>
2503
2504 * ada-lang.c (ada_exception_sal): Remove advance declaration.
2505
2506 2013-10-07 Tom Tromey <tromey@redhat.com>
2507
2508 * objfiles.c (free_objfile_per_bfd_storage): Delete the
2509 demangled_names_hash.
2510 (free_objfile): Don't delete the demangled_names_hash.
2511 * objfiles.h (struct objfile_per_bfd_storage)
2512 <demangled_names_hash>: New field.
2513 (struct objfile) <demangled_names_hash>: Move to
2514 objfile_per_bfd_storage.
2515 * symfile.c (reread_symbols): Don't delete the
2516 demangled_names_hash.
2517 * symtab.c (create_demangled_names_hash): Update.
2518 (symbol_set_names): Update.
2519
2520 2013-10-07 Tom Tromey <tromey@redhat.com>
2521
2522 * gdb_bfd.c (struct gdb_bfd_data) <relocation_computed,
2523 needs_relocations>: New fields.
2524 (gdb_bfd_requires_relocations): New function.
2525 * gdb_bfd.h (gdb_bfd_requires_relocations): Declare.
2526 * objfiles.c (get_objfile_bfd_data): Disallow sharing if
2527 the BFD needs relocations applied.
2528
2529 2013-10-07 Pedro Alves <palves@redhat.com>
2530
2531 PR breakpoints/11568
2532 * breakpoint.c (remove_threaded_breakpoints): Say "no longer in
2533 the thread list" instead of "gone".
2534
2535 2013-10-06 Sergio Durigan Junior <sergiodj@redhat.com>
2536
2537 * NEWS: Mention new convenience variable $_exitsignal.
2538 * corelow.c (core_open): Reset exit convenience variables. Set
2539 $_exitsignal to the uncaught signal which generated the corefile.
2540 * infrun.c (handle_inferior_event): Reset exit convenience
2541 variables. Set $_exitsignal for TARGET_WAITKIND_SIGNALLED.
2542 (clear_exit_convenience_vars): New function.
2543 * inferior.h (clear_exit_convenience_vars): New prototype.
2544
2545 2013-10-06 Yao Qi <yao@codesourcery.com>
2546
2547 * varobj.h: Add comments to enum varobj_languages.
2548
2549 2013-10-04 Doug Evans <dje@google.com>
2550
2551 Add support for DWP file format version 2.
2552 * NEWS: Mention support for DWP file format version 2.
2553 * dwarf2read.c (dwarf2_section_info): Convert asection field to a
2554 union of asection, containing_section. New fields virtual_offset
2555 and is_virtual. Change type of readin filed from int to char.
2556 (dwo_sections, dwo_file): Tweak comments.
2557 (dwp_v2_section_ids): New enum.
2558 (dwp_sections): New fields abbrev, info, line, loc, macinfo, macro,
2559 str_offsets, types.
2560 (virtual_v1_dwo_sections): Renamed from virtual_dwo_sections.
2561 All uses updated.
2562 (virtual_v2_dwo_sections): New struct.
2563 (dwp_hash_table): New fields version, nr_columns. Change type of
2564 section_pool field to a union.
2565 (dwp_file): New field version.
2566 (dwarf2_has_info): Check for virtual sections.
2567 (get_containing_section): New function.
2568 (get_section_bfd_owner, get_section_bfd_section): Call it.
2569 (dwarf2_locate_sections): Update.
2570 (dwarf2_section_empty_p): Update.
2571 (dwarf2_read_section): Handle virtual sections.
2572 (locate_dwz_sections): Update.
2573 (create_dwp_hash_table): Document and handle V2 format.
2574 (locate_v1_virtual_dwo_sections): Renamed from
2575 locate_virtual_dwo_sections and update. All callers updated.
2576 (create_dwo_unit_in_dwp_v1): Renamed from create_dwo_in_dwp.
2577 Delete arg htab. Rename arg section_index to unit_index.
2578 All callers updated.
2579 (MAX_NR_V1_DWO_SECTIONS): Renamed from MAX_NR_DWO_SECTIONS.
2580 All uses updated.
2581 (create_dwp_v2_section, create_dwo_unit_in_dwp_v2): New functions.
2582 (lookup_dwo_unit_in_dwp): Add V2 support.
2583 (dwarf2_locate_dwo_sections): Update.
2584 (dwarf2_locate_common_dwp_sections): Renamed from
2585 dwarf2_locate_dwp_sections and update. All callers updated.
2586 (dwarf2_locate_v2_dwp_sections): New function.
2587 (open_and_init_dwp_file): Add V2 support.
2588 (read_str_index): New locals str_section, str_offsets_section.
2589
2590 2013-10-04 Pedro Alves <palves@redhat.com>
2591
2592 * common/ptid.c (null_ptid, minus_one_ptid, ptid_build)
2593 (pid_to_ptid, ptid_get_pid, ptid_get_lwp, ptid_get_tid)
2594 (ptid_equal, ptid_is_pid, ptid_lwp_p, ptid_tid_p): Replace
2595 describing comments with references to ptid.h.
2596 * common/ptid.h: Remove intro description of constructors,
2597 accessors and predicates.
2598 (struct ptid): Reformat.
2599 (minus_one_ptid, ptid_build, pid_to_ptid, ptid_get_pid)
2600 (ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid): Change
2601 describing comments.
2602
2603 2013-10-04 Joel Brobecker <brobecker@adacore.com>
2604
2605 * aix-thread.c (sync_threadlists): Add missing ')' in call
2606 to ptid_build.
2607
2608 2013-10-04 Joel Brobecker <brobecker@adacore.com>
2609
2610 * procfs.c (procfs_init_inferior): Fix typo causing the build
2611 to fail.
2612
2613 2013-10-04 Joel Brobecker <brobecker@adacore.com>
2614
2615 * aix-thread.c (ptrace32): Remove cast to addr_ptr.
2616
2617 2013-10-04 Joel Brobecker <brobecker@adacore.com>
2618
2619 * mi/mi-main.c (run_one_inferior): Add function description.
2620 Make ARG a pointer to an integer whose value determines whether
2621 we should "run" or "start" the program.
2622 (mi_cmd_exec_run): Add handling of the "--start" option.
2623 Reject all other command-line options.
2624 * NEWS: Add entry for "-exec-run"'s new "--start" option.
2625
2626 2013-10-04 Yao Qi <yao@codesourcery.com>
2627
2628 * remote-notif.h (REMOTE_NOTIF_ID): New enum.
2629 (struct notif_client) <pending_event>: Moved
2630 to struct remote_notif_state.
2631 <id>: New field.
2632 (struct remote_notif_state) <pending_event>: New field.
2633 (notif_event_xfree): Declare.
2634 * remote-notif.c (handle_notification): Adjust.
2635 (notif_event_xfree): New function.
2636 (do_notif_event_xfree): Call notif_event_xfree.
2637 (remote_notif_state_xfree): Call notif_event_xfree to free
2638 each element in field pending_event.
2639 * remote.c (discard_pending_stop_replies): Remove declaration.
2640 (discard_pending_stop_replies_in_queue): Declare.
2641 (remote_close): Call discard_pending_stop_replies_in_queue
2642 instead of discard_pending_stop_replies.
2643 (remote_start_remote): Adjust.
2644 (stop_reply_xfree): Call notif_event_xfree.
2645 (notif_client_stop): Adjust initialization.
2646 (remote_notif_remove_all): Rename it to ...
2647 (remove_stop_reply_for_inferior): ... this. Update comments.
2648 Don't check INF is NULL.
2649 (discard_pending_stop_replies): Return early if notif_state is
2650 NULL. Adjust. Don't check INF is NULL.
2651 (remote_notif_get_pending_events): Adjust.
2652 (discard_pending_stop_replies_in_queue): New function.
2653 (remote_wait_ns): Likewise.
2654
2655 2013-10-04 Yao Qi <yao@codesourcery.com>
2656
2657 * remote-notif.c (DECLARE_QUEUE_P): Remove.
2658 (notif_queue): Remove.
2659 (remote_notif_process): Add one parameter 'notif_queue'.
2660 Update comments. Callers update.
2661 (remote_async_get_pending_events_token): Remove.
2662 (remote_notif_register_async_event_handler): Remove.
2663 (remote_notif_unregister_async_event_handler): Remove.
2664 (handle_notification): Add parameter 'notif_queue'. Update
2665 comments. Callers update.
2666 (notif_xfree): Remove.
2667 (remote_notif_state_allocate): New function.
2668 (remote_notif_state_xfree): New function.
2669 (_initialize_notif): Remove code to allocate queue.
2670 * remote-notif.h (DECLARE_QUEUE_P): Moved from remote-notif.c.
2671 (struct remote_notif_state): New.
2672 (handle_notification): Update declaration.
2673 (remote_notif_process): Likewise.
2674 (remote_notif_register_async_event_handler): Remove.
2675 (remote_notif_unregister_async_event_handler): Remove.
2676 (remote_notif_state_allocate): Declare.
2677 (remote_notif_state_xfree): Declare.
2678 * remote.c (struct remote_state) <notif_state>: New field.
2679 (remote_close): Don't call
2680 remote_notif_unregister_async_event_handler. Call
2681 remote_notif_state_xfree.
2682 (remote_open_1): Don't call
2683 remote_notif_register_async_event_handler. Call
2684 remote_notif_state_allocate.
2685
2686 2013-10-04 Yao Qi <yao@codesourcery.com>
2687
2688 * varobj.c (create_child_with_value): Remove 'const' from the
2689 type of parameter 'name'.
2690 (varobj_add_child): Likewise.
2691 (install_dynamic_child): Remove 'const' from the type of
2692 parameter 'name'.
2693 (varobj_add_child): Likewise.
2694 (create_child_with_value): Likewise. Update comments. Don't
2695 duplicate 'name'.
2696 (update_dynamic_varobj_children): Duplicate 'name'
2697 and pass it to install_dynamic_child.
2698
2699 2013-10-03 Phil Muldoon <pmuldoon@redhat.com>
2700
2701 * python/py-value.c (convert_value_from_python): Move PyInt_Check
2702 conversion logic to occur after PyLong_Check. Comment on order
2703 change significance.
2704 * python/py-arch.c (archpy_disassemble): Comment on order of
2705 conversion for integers and longs.
2706
2707 2013-10-03 Pedro Alves <palves@redhat.com>
2708
2709 * common/linux-ptrace.c (linux_check_ptrace_features): Factor out
2710 the PTRACE_O_TRACESYSGOOD and PTRACE_O_TRACEFORK to separate
2711 functions. Always test for PTRACE_O_TRACESYSGOOD even if
2712 PTRACE_O_TRACEFORK is not supported.
2713 (linux_test_for_tracesysgood): New function.
2714 (linux_test_for_tracefork): New function, factored out from
2715 linux_check_ptrace_features, and also don't kill child_pid here.
2716
2717 2013-10-03 Tristan Gingold <gingold@adacore.com>
2718
2719 * i386-darwin-nat.c (i386_darwin_dr_set): Fix argument type.
2720 Remove verbose error reporting. Use detected state to
2721 thread_set_state call.
2722 (i386_darwin_dr_get): Fix return type. Remove verbose error
2723 report.
2724 Remove trailing spaces.
2725
2726 2013-10-02 Pedro Alves <palves@redhat.com>
2727
2728 * cp-valprint.c (cp_print_value_fields): Adjust calls to
2729 val_print_optimized_out.
2730 * jv-valprint.c (java_print_value_fields): Likewise.
2731 * p-valprint.c (pascal_object_print_value_fields): Likewise.
2732 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full)
2733 <DWARF_VALUE_REGISTER>: If the register was not saved, return a
2734 new optimized out value.
2735 * findvar.c (address_from_register): Likewise.
2736 * frame.c (put_frame_register): Tweak error string to say the
2737 register was not saved, rather than optimized out.
2738 * infcmd.c (default_print_one_register_info): Adjust call to
2739 val_print_optimized_out. Use value_of_register instead of
2740 get_frame_register_value.
2741 * mi/mi-main.c (output_register): Use value_of_register instead of
2742 get_frame_register_value.
2743 * valprint.c (valprint_check_validity): Likewise.
2744 (val_print_optimized_out): New value parameter. If the value is
2745 lval_register, print <not saved> instead.
2746 (value_check_printable, val_print_scalar_formatted): Adjust calls
2747 to val_print_optimized_out.
2748 * valprint.h (val_print_optimized_out): New value parameter.
2749 * value.c (struct value) <optimized_out>: Extend comment.
2750 (error_value_optimized_out): New function.
2751 (require_not_optimized_out): Use it. Use a different string for
2752 lval_register values.
2753 * value.h (error_value_optimized_out): New declaration.
2754 * NEWS: Mention <not saved>.
2755
2756 2013-10-02 Joel Brobecker <brobecker@adacore.com>
2757
2758 * symtab.c (compare_search_syms): Use FILENAME_CMP instead of
2759 strcmp to compare two symtab filenames.
2760
2761 2013-10-02 Joel Brobecker <brobecker@adacore.com>
2762
2763 * symtab.c (search_symbols_equal): Delete.
2764 (sort_search_symbols_remove_dups): Replace call to
2765 search_symbols_equal by call to compare_search_syms,
2766 adjusting as necessary.
2767
2768 2013-10-02 Phil Muldoon <pmuldoon@redhat.com>
2769
2770 PR python/15579
2771 * python/python.c: Document gdb.execute command in Python help.
2772
2773 2013-10-02 Phil Muldoon <pmuldoon@redhat.com>
2774
2775 * python/py-frame.c (frame_info_to_frame_object): Use
2776 gdbpy_convert_exception. Clean up Python object on failure.
2777
2778 2013-10-02 Phil Muldoon <pmuldoon@redhat.com>
2779
2780 * python/lib/gdb/command/frame_filters.py
2781 (InfoFrameFilter.list_frame_filters): Retrieve exception manually.
2782 (ShowFrameFilterPriority.invoke): Ditto.
2783
2784 2013-10-01 Keith Seitz <keiths@redhat.com>
2785
2786 * linespec.c (struct ls_parser): Make 'saved_arg' const.
2787 (parse_linespec): Make 'argptr' const.
2788 Remove temporary cast of 'argptr' to const char **.
2789 (decode_line_full): Pass const pointer to parse_linespec.
2790 (decode_line_1): Likewise.
2791 (decode_objc): Make local variable 'new_argptr' const.
2792 (find_function_symbols): Remove temporary cast to char *
2793 to find_imps.
2794 * objc-lang.c (find_imps): Make argument 'method' const.
2795 Return const.
2796 * objc-lang.h (find_imps): Likewise.
2797
2798 2013-10-01 Keith Seitz <keiths@redhat.com>
2799
2800 * completer.c (skip_quoted_chars): Make all arguments const.
2801 Return const.
2802 (skip_quoted): Likewise.
2803 * completer.h (skip_quoted_chars): Likewise.
2804 (skip_quoted): Likewise.
2805 * defs.h (skip_quoted): Remove duplicate declaration.
2806 * jv-exp.y: Include completer.h.
2807 (yylex): Remove unneccessary cast to char * fro skip_quoted.
2808 * p-exp.y: Include completer.h.
2809
2810 2013-10-01 Keith Seitz <keiths@redhat.com>
2811
2812 * c-exp.y (parse_number): Make first argument const.
2813 Make a copy of the input to manipulate.
2814 (c_parse_escape): Make first argument const.
2815 Make local variable 'tokptr' const.
2816 (parse_string_or_char): Make first two arguments const.
2817 (macro_original_text): Make const.
2818 (lex_one_token): Make local variable 'tokstart' const.
2819 Likewise for local variables named 'p'.
2820 Cast away const for struct stoken (temporary).
2821 * c-lang.h (c_parse_escpae): Make first argument const.
2822 * cli/cli-cmds.c (echo_command): Make local variable 'p'
2823 const.
2824 * cli/cli-setshow.c (do_set_command): Likewise for 'p' in
2825 var_string case.
2826 * f-exp.y (parse_number): Make first argument const.
2827 (match_string_literal): Make local variable 'tokstart'
2828 const.
2829 (yylex): Make local variable 'p' const.
2830 Cast away const for struct stoken (temporary).
2831 * go-exp.y (parse_number): Make first argument const.
2832 (parse_string_or_char): Likewise.
2833 Make local variable 'tokstart' const.
2834 (lex_one_token): Likewise for numerous locals called 'p'.
2835 Cast away const for struct stoken (temporary).
2836 * jv-exp.y (parse_number): Make first argument const.
2837 Make local variables 'tokstart' and 'tokptr' const.
2838 Cast away const for call to skip_quoted (temporary).
2839 (yylex): Make local variable 'p' const.
2840 Cast away const for struct stoken (temporary).
2841 * m2-exp.y (parse_number): Make local variable 'p' const.
2842 (yylex): Likewise for 'tokstart'.
2843 Cast away const for struct stoken (temporary).
2844 Make local variable 'p' const.
2845 * macroexp.c (get_character_constant): Pass a const string
2846 to c_parse_escape.
2847 (get_string_literal): Likewise.
2848 (macro_expand_next): Make first argument const.
2849 Cast away const for init_shared_buffer.
2850 * macroexp.h (macro_expand_next): Make first argument const.
2851 * p-exp.y (yylex): Make a local copy of 'lexptr'.
2852 Pass a const string to c_parse_escape.
2853 Make local variables 'p' and 'namestart' const.
2854 * parse.c (lexptr): Make const.
2855 (prev_lexptr): Likewise.
2856 (find_template_name_end): Return const.
2857 Make argument const, too.
2858 (parse_exp_in_context): Make first argument const.
2859 Remove the entire const_hack.
2860 (parse_exp_in_context_1): Make first argument const.
2861 * parser-defs.h (find_template_name_end): Return const.
2862 Make argument const, too.
2863 (lexptr): Make const.
2864 (prev_lexptr): Likewise.
2865 * utils.c (parse_escape): Make second argument const.
2866 * utils.h (parse_escape): Likewise.
2867
2868 2013-10-01 Keith Seitz <keiths@redhat.com>
2869
2870 * ada-exp.y (write_object_renaming): Update: struct stoken.ptr
2871 is now const.
2872 (block_lookup): Make 'raw_name' and 'name' const.
2873 * ada-lex.l (processString): Update for struct stoken.ptr.
2874 * c-exp.y (qualified_name : TYPENAME COLONCOLON '~' name): Likewise.
2875 (operator_stoken): Likewise.
2876 (lex_one_token): Remove temporary cast to char * for
2877 'yylval.sval.ptr'.
2878 * f-exp.y (yylex): Likewise.
2879 * gdb-types.c (lookup_struct_elt_type): Make argument 'name' const.
2880 * gdbtypes.h (lookup_struct_elt_type): Likewisee.
2881 * go-exp.y (lex_one_token): Remove temporary cast to char * for
2882 'yylval.sval.ptr'.
2883 * jv-exp.y (QualifiedName): Update for struct stoken.ptr.
2884 (yylex): Remove temporary cast to char * for 'yylval.sval.ptr'.
2885 * linespec.c (struct ls_parser): Make 'stream' const.
2886 (find_parameter_list_end): Make argument 'input' and local
2887 variable 'p' const.
2888 (linespec_lexer_lex_string): Make local variables 'start' and
2889 'p' const.
2890 Use skip_spaces_const instead of skip_spaces.
2891 (linespec_lexer_peek_token): Make local variable 'saved_stream'
2892 const.
2893 (parse_linespec): Temporarily cast 'argptr' to const for
2894 'parser->lexer.stream'.
2895 * m2-exp.y (yylex): Remove temporary cast to char * for
2896 'yylval.sval.ptr'.
2897 * objc-lang.c (add_msglist): Make local variable 'p' const.
2898 * p-exp.y (exp : exp '['): Update for struct stoken.ptr.
2899 (exp : STRING): Make 'sp' const.
2900 (parse_number): Make argument 'p' const.
2901 * parser-defs.h (struct stoken): Make 'ptr' const.
2902
2903 2013-10-01 Doug Evans <dje@google.com>
2904
2905 * cli/cli-decode.c: Remove unnecessary inclusion of tui/tui.h.
2906
2907 2013-10-01 Yao Qi <yao@codesourcery.com>
2908
2909 * varobj.c (c_value_of_root): Remove declaration.
2910 (cplus_value_of_root, java_value_of_root): Likewise.
2911 (ada_value_of_root): Likewise.
2912 (struct language_specific) <value_of_root>: Remove.
2913 (languages): Update initialization.
2914 (check_scope): Move earlier.
2915 (c_value_of_root): Move earlier and rename to ...
2916 (value_of_root_1): ... this.
2917 (value_of_root): Caller update.
2918 (cplus_value_of_root, java_value_of_root): Remove.
2919 (ada_value_of_root): Remove.
2920
2921 2013-10-01 Yao Qi <yao@codesourcery.com>
2922
2923 * varobj.c (varobj_format_string): Remove "unknown".
2924 (languages): Remove the first element.
2925 * varobj.h (enum varobj_languages): Remove vlang_c.
2926
2927 2013-10-01 Yao Qi <yao@codesourcery.com>
2928
2929 * varobj.c (struct language_specific) <language>: Remove.
2930 (languages): Update the initialization.
2931
2932 2013-10-01 Yao Qi <yao@codesourcery.com>
2933
2934 * arm-wince-tdep.c: Remove inclusion of "solib.h" and
2935 "solib-target.h". Include "windows-tdep.h".
2936 (arm_wince_init_abi): Call windows_init_abi. Remove call to
2937 set_solib_ops and set_gdbarch_has_dos_based_file_system.
2938 * configure.tgt (arm*-wince-pe | arm*-*-mingw32ce*): Append
2939 windows-tdep.o to gdb_target_obs.
2940
2941 2013-10-01 Yao Qi <yao@codesourcery.com>
2942
2943 * amd64-windows-tdep.c: Remove inclusion of "solib.h" and
2944 "solib-target.h".
2945 (amd64_windows_init_abi): Don't call set_solib_ops and
2946 set_gdbarch_iterate_over_objfiles_in_search_order. Call
2947 windows_init_abi instead.
2948 * i386-cygwin-tdep.c: Remove inclusion of "solib.h" and
2949 "solib-target.h".
2950 (i386_cygwin_init_abi): Don't call set_solib_ops,
2951 set_gdbarch_has_dos_based_file_system and
2952 set_gdbarch_iterate_over_objfiles_in_search_order. Call
2953 windows_init_abi instead.
2954 * windows-tdep.c: Include "solib.h" and "solib-target.h".
2955 (windows_init_abi): New function.
2956 (windows_iterate_over_objfiles_in_search_order): Make it
2957 static.
2958 * windows-tdep.h (windows_init_abi): Declare.
2959 (windows_iterate_over_objfiles_in_search_order): Remove
2960 declaration.
2961
2962 2013-10-01 Jerome Guitton <guitton@adacore.com>
2963
2964 Checked in by Joel Brobecker <brobecker@adacore.com>
2965 * system-gdbinit/elinos.py (get_elinos_environment): Return an
2966 incomplete dictionnary instead of None in case of missing
2967 environment variables.
2968 (elinos_init): in case of an incomplete environment, best
2969 effort to load system libraries instead of abort.
2970
2971 2013-10-01 Joel Brobecker <brobecker@adacore.com>
2972
2973 * ada-lang.c (ada_has_this_exception_support): Ignore
2974 mst_solib_trampoline minimal symbols.
2975
2976 2013-09-30 Tristan Gingold <gingold@adacore.com>
2977
2978 * i386-darwin-nat.c (darwin_complete_target): Install methods for
2979 hardware watchpoint.
2980 (i386_darwin_dr_set): Support 32 and 64 bit states.
2981 (i386_darwin_dr_get): Likewise.
2982 (i386_darwin_dr_set_control): Make static.
2983 (i386_darwin_dr_set_addr, i386_darwin_dr_get_addr)
2984 (i386_darwin_dr_get_status, i386_darwin_dr_get_control): Likewise.
2985
2986 2013-09-30 Luis Machado <lgustavo@codesourcery.com>
2987
2988 * aarch64-linux-nat.c: Replace PIDGET with ptid_get_pid.
2989 Replace TIDGET with ptid_get_lwp.
2990 Replace GET_LWP with ptid_get_lwp.
2991 * aix-thread.c (BUILD_THREAD, BUILD_LWP): Remove.
2992 Replace BUILD_THREAD with ptid_build.
2993 Replace BUILD_LWP with ptid_build.
2994 Replace PIDGET with ptid_get_pid.
2995 Replace TIDGET with ptid_get_lwp.
2996 * alphabsd-nat.c: Replace PIDGET with ptid_get_pid.
2997 * amd64-linux-nat.c: Replace PIDGET with ptid_get_pid.
2998 Replace TIDGET with ptid_get_lwp.
2999 * amd64bsd-nat.c: Replace PIDGET with ptid_get_pid.
3000 * arm-linux-nat.c: Replace PIDGET with ptid_get_pid.
3001 Replace TIDGET with ptid_get_lwp.
3002 Replace GET_LWP with ptid_get_lwp.
3003 * armnbsd-nat.c: Replace PIDGET with ptid_get_pid.
3004 * auxv.c: Likewise.
3005 * breakpoint.c: Likewise.
3006 * common/ptid.c (ptid_is_pid): Condense check for
3007 null_ptid and minus_one_ptid.
3008 (ptid_lwp_p): New function.
3009 (ptid_tid_p): New function.
3010 * common/ptid.h: Update comments for accessors.
3011 (ptid_lwp_p): New prototype.
3012 (ptid_tid_p): New prototype.
3013 * defs.h (PIDGET, TIDGET, MERGEPID): Do not define.
3014 * gcore.c: Replace PIDGET with ptid_get_pid.
3015 * gdbthread.h: Likewise.
3016 * gnu-nat.c: Likewise.
3017 * hppa-linux-nat.c: Replace PIDGET with ptid_get_pid.
3018 Replace TIDGET with ptid_get_lwp.
3019 * hppabsd-nat.c: Replace PIDGET with ptid_get_pid.
3020 * hppanbsd-nat.c: Likewise.
3021 * i386-linux-nat.c: Replace PIDGET with ptid_get_pid.
3022 Replace TIDGET with ptid_get_lwp.
3023 * i386bsd-nat.c: Replace PIDGET with ptid_get_pid.
3024 * ia64-linux-nat.c: Replace PIDGET with ptid_get_pid.
3025 * infcmd.c: Likewise.
3026 * inferior.h: Likewise.
3027 * inflow.c: Likewise.
3028 * infrun.c: Likewise.
3029 * linux-fork.c: Likewise.
3030 * linux-nat.c: Replace PIDGET with ptid_get_pid.
3031 Replace GET_PID with ptid_get_pid.
3032 Replace is_lwp with ptid_lwp_p.
3033 Replace GET_LWP with ptid_get_lwp.
3034 Replace BUILD_LWP with ptid_build.
3035
3036 2013-09-28 Mike Frysinger <vapier@gentoo.org>
3037
3038 * common/linux-btrace.c: Move sys/syscall.h out of the
3039 HAVE_LINUX_PERF_EVENT_H check and wrap it in HAVE_SYS_SYSCALL_H.
3040 Also check for SYS_perf_event_open before attempting to buid.
3041
3042 2013-09-27 Doug Evans <dje@google.com>
3043
3044 * dwarf2read.c (dwarf2_section_info): Add comment.
3045 (dwp_file): Split loaded_cutus into loaded_cus, loaded_tus.
3046 All uses updated.
3047 (dwarf2_section_empty_p): Rename arg from "info" to "section".
3048 (dwarf2_read_section): Delete unused local "header". Add section
3049 name to error message.
3050 (create_dwo_in_dwp): Tweak comment.
3051 (MAX_NR_DWO_SECTIONS): Combine count of .debug_macro + .debug_macinfo.
3052
3053 * dwarf2read.c (die_reader_specs): Tweak comment.
3054 (get_section_bfd_owner, get_section_bfd_section): New functions.
3055 (get_section_name, get_section_file_name): New functions.
3056 (get_section_id, get_section_flags): New functions.
3057 (*): Use new functions to access section fields.
3058
3059 * dwarf2read.c (struct dwo_file): Add/tweak comments.
3060 (lookup_dwo_unit_in_dwp): Renamed from lookup_dwo_in_dwp. Remove
3061 arg "htab". All callers updated.
3062 (create_debug_types_hash_table): Remove redundant copy of
3063 abbrev_section.
3064 (create_dwo_in_dwp): Tweak comments.
3065 (read_str_index): Tweak comment. Record dwarf form name in static
3066 local.
3067
3068 2013-09-27 Pedro Alves <palves@redhat.com>
3069
3070 * remote.h (REMOTE_SYSROOT_PREFIX): New define.
3071 (remote_filename_p): Add comment.
3072 * remote.c (remote_filename_p): Adjust to use
3073 REMOTE_SYSROOT_PREFIX.
3074 * solib.c (solib_find): When deciding whether we need to add a
3075 directory separator, check whether the sysroot is "remote:"
3076 instead of checking whether the patch has a drive spec. Add
3077 comments.
3078
3079 2013-09-27 Pedro Alves <palves@redhat.com>
3080
3081 * remote.c (struct stop_reply) <solibs_changed, replay_event>:
3082 Delete fields.
3083 (remote_parse_stop_reply): Adjust, setting event->ws.kind
3084 directly.
3085
3086 2013-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
3087
3088 Fix set debug frame output.
3089 * frame.c (fprint_frame_type): Add TAILCALL_FRAME entry. Move
3090 SENTINEL_FRAME entry lower to match enum frame_type order.
3091
3092 2013-09-26 Pierre Muller <muller@sourceware.org>
3093
3094 Replace constant values 8 to 15 by AMD64_R8_REGNUM to
3095 AMD64_R15_REGNUM when a register index is expected.
3096 * amd64-windows-tdep.c (amd64_windows_dummy_call_integer_regs):
3097 Substitute in array.
3098 * amd64-tdep.c (amd64_dwarf_regmap): Ditto.
3099 (amd64_push_arguments): Substitute in integer_regnum array.
3100
3101 2013-09-25 Doug Evans <dje@google.com>
3102
3103 * objfiles.c (allocate_objfile): Move comment to better place.
3104
3105 New option "set debug symfile on".
3106 * NEWS: Mention "set debug symfile".
3107 * Makefile.in (SFILES): Add symfile-debug.c.
3108 (COMMON_OBS): Add symfile-debug.o.
3109 * elfread.c (elf_symfile_read): Use objfile_set_sym_fns to set the
3110 objfile's symbol functions.
3111 * objfiles.h (objfile_set_sym_fns): Declare.
3112 * symfile-debug.c: New file.
3113 * symfile.c (syms_from_objfile_1): Use objfile_set_sym_fns to set the
3114 objfile's symbol functions.
3115 (reread_symbols): Ditto.
3116
3117 * symfile.h (struct sym_fns): Delete member "sym_flavour".
3118 All uses updated.
3119 (add_symtab_fns): Update prototype.
3120 * symfile.c (sym_fns_ptr): Delete. Replace with ...
3121 (registered_sym_fns): ... this.
3122 (symtab_fns): Update.
3123 (add_symtab_fns): New arg "flavour". All callers updated.
3124 (find_sym_fns): Rewrite to use new sym_fns registry.
3125
3126 * symfile.h (struct sym_fns): Add "objfile" argument to
3127 sym_read_linetable. All uses updated.
3128
3129 * symtab.c (domain_name, search_domain_name): New functions.
3130 * symtab.h (domain_name, search_domain_name): Declare.
3131
3132 * symfile.h (struct quick_symbol_functions): Reorg arg list of
3133 map_matching_symbols so objfile is first. All uses updated.
3134 * dwarf2read.c (dw2_map_matching_symbols): Update signature.
3135 * psymtab.c (map_matching_symbols_psymtab): Update signature.
3136
3137 2013-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
3138
3139 PR shlibs/8882
3140 * solib-svr4.c (svr4_read_so_list): Skip the vDSO when reading
3141 link map entries.
3142
3143 2013-09-24 Doug Evans <dje@google.com>
3144
3145 * objfiles.c (free_objfile): Move comment.
3146
3147 2013-09-24 Joel Brobecker <brobecker@adacore.com>
3148
3149 * ada-exp.y (string_to_operator): Delete.
3150 (dummy_string_to_ada_operator): Delete.
3151
3152 2013-09-24 Joel Brobecker <brobecker@adacore.com>
3153
3154 Revert:
3155 * i386-tdep.h (enum amd64_reg_class): New, moved here from
3156 amd64-tdep.c.
3157 (struct gdbarch_tdep): Add fields call_dummy_num_integer_regs,
3158 call_dummy_integer_regs, and classify.
3159 * amd64-tdep.h (amd64_classify): Add declaration.
3160 * amd64-tdep.c (amd64_dummy_call_integer_regs): New static constant.
3161 (amd64_reg_class): Delete, moved to i386-tdep.h.
3162 (amd64_classify): Make non-static. Move declaration to amd64-tdep.h.
3163 Replace call to amd64_classify by call to tdep->classify.
3164 (amd64_push_arguments): Get the list of registers to use for
3165 passing integer parameters from the gdbarch tdep structure,
3166 rather than using a hardcoded one. Replace calls to amd64_classify
3167 by calls to tdep->classify.
3168 (amd64_push_dummy_call): Get the register number used for
3169 the "hidden" argument from tdep->call_dummy_integer_regs.
3170 (amd64_init_abi): Initialize tdep->call_dummy_num_integer_regs
3171 and tdep->call_dummy_integer_regs. Set tdep->classify.
3172
3173 2013-09-24 Joel Brobecker <brobecker@adacore.com>
3174
3175 Revert:
3176 * i386-tdep.h (gdbarch_tdep): Add field memory_args_by_pointer.
3177 * amd64-tdep.c (amd64_push_arguments): Add handling of architectures
3178 where tdep->memory_args_by_pointer is non-zero.
3179
3180 2013-09-24 Joel Brobecker <brobecker@adacore.com>
3181
3182 Revert:
3183 * i386-tdep.h (struct gdbarch_tdep): Add new field
3184 integer_param_regs_saved_in_caller_frame.
3185 * amd64-tdep.c (amd64_push_dummy_call): Allocate some memory on
3186 stack if tdep->integer_param_regs_saved_in_caller_frame is set.
3187
3188 2013-09-24 Joel Brobecker <brobecker@adacore.com>
3189
3190 * amd64-windows-tdep.c: #include "value.h"
3191 (amd64_windows_classify): Delete.
3192 (amd64_windows_passed_by_integer_register)
3193 (amd64_windows_passed_by_xmm_register)
3194 (amd64_windows_passed_by_pointer)
3195 (amd64_windows_adjust_args_passed_by_pointer)
3196 (amd64_windows_store_arg_in_reg, amd64_windows_push_arguments)
3197 (amd64_windows_push_dummy_call): New functions.
3198 (amd64_windows_init_abi): Remove setting of
3199 tdep->call_dummy_num_integer_regs, tdep->call_dummy_integer_regs,
3200 tdep->classify, tdep->memory_args_by_pointer and
3201 tdep->integer_param_regs_saved_in_caller_frame.
3202 Add call to set_gdbarch_push_dummy_call.
3203
3204 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3205
3206 * dwarf2read.c (open_and_init_dwp_file): Try open_dwp_file also with
3207 objfile->original_name.
3208
3209 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3210
3211 Pass down original filename for objfile.
3212 * coffread.c (coff_symfile_read): Update symbol_file_add_separate call.
3213 * elfread.c (elf_symfile_read): Likewise.
3214 * jit.c (jit_object_close_impl): Update allocate_objfile call, no
3215 longer set ORIGINAL_NAME.
3216 (jit_bfd_try_read_symtab): Update symbol_file_add_from_bfd call.
3217 * jv-lang.c (get_dynamics_objfile): Update allocate_objfile call.
3218 * machoread.c (macho_add_oso_symfile): Add parameter name. Update
3219 symbol_file_add_from_bfd call.
3220 (macho_symfile_read_all_oso): Update two macho_add_oso_symfile calls.
3221 (macho_check_dsym): Add parameter filenamep. Change function comment.
3222 Set *filenamep.
3223 (macho_symfile_read): New variable dsym_filename. Update
3224 macho_check_dsym call. Use it for symbol_file_add_separate.
3225 * objfiles.c (allocate_objfile): Add parameter name. New comment for
3226 it. Use it for objfile->original_name.
3227 (objfile_name): Return OBFD's filename, if available.
3228 * objfiles.h (allocate_objfile): Add new parameter name.
3229 * solib.c (solib_read_symbols): Update symbol_file_add_from_bfd call.
3230 * symfile-mem.c (symbol_file_add_from_memory): Update
3231 symbol_file_add_from_bfd call.
3232 * symfile.c (read_symbols): Update symbol_file_add_separate call, new
3233 comment for it.
3234 (symbol_file_add_with_addrs): New parameter name, add function comment
3235 for it. Remove variable name. Update allocate_objfile call.
3236 (symbol_file_add_separate): New parameter name, add function comment
3237 for it. Update symbol_file_add_with_addrs call.
3238 (symbol_file_add_from_bfd): New parameter name. Update
3239 symbol_file_add_with_addrs call.
3240 (symbol_file_add): Update symbol_file_add_from_bfd call.
3241 (reread_symbols): New variable original_name. Save
3242 objfile->original_name by it.
3243 * symfile.h (symbol_file_add_from_bfd, symbol_file_add_separate): Add
3244 second parameter.
3245
3246 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3247
3248 Code cleanup: Add objfile_name accessor function.
3249 * ada-lang.c (is_known_support_routine): Use objfile_name.
3250 * auto-load.c (source_gdb_script_for_objfile)
3251 (auto_load_objfile_script): Likewise.
3252 * coffread.c (coff_symtab_read, read_one_sym): Likewise.
3253 * dbxread.c (dbx_symfile_read): Likewise.
3254 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
3255 * dwarf2loc.c (locexpr_describe_location_piece): Likewise.
3256 * dwarf2read.c (dwarf2_get_dwz_file, dwarf2_read_index)
3257 (dw2_symtab_iter_next, dw2_expand_symtabs_matching)
3258 (lookup_dwp_signatured_type, lookup_dwo_unit)
3259 (dwarf2_build_psymtabs_hard, scan_partial_symbols, process_queue)
3260 (fixup_go_packaging, process_imported_unit_die, dwarf2_physname)
3261 (read_import_statement, create_dwo_cu, open_and_init_dwp_file)
3262 (lookup_dwo_cutu, read_call_site_scope, dwarf2_ranges_read)
3263 (dwarf2_record_block_ranges, read_common_block, read_typedef)
3264 (read_subrange_type, load_partial_dies, read_partial_die)
3265 (read_addr_index_1, read_str_index, dwarf_decode_lines_1)
3266 (die_containing_type, build_error_marker_type, lookup_die_type)
3267 (follow_die_ref_or_sig, follow_die_ref, dwarf2_fetch_die_loc_sect_off)
3268 (dwarf2_fetch_constant_bytes, follow_die_sig, get_signatured_type)
3269 (get_DW_AT_signature_type, write_psymtabs_to_index)
3270 (save_gdb_index_command): Likewise.
3271 * elfread.c (find_separate_debug_file_by_buildid, elf_symfile_read):
3272 Likewise.
3273 * expprint.c (dump_subexp_body_standard): Likewise.
3274 * gdbtypes.c (type_name_no_tag_or_error): Likewise.
3275 * jit.c (jit_object_close_impl): Use the objfile field name renamed to
3276 original_name.
3277 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New variable
3278 obj_name, use objfile_name for it, use the variable.
3279 (try_thread_db_load_from_pdir, has_libpthread, thread_db_new_objfile):
3280 Use objfile_name.
3281 * machoread.c (macho_symtab_read, macho_check_dsym)
3282 (macho_symfile_relocate): Likewise.
3283 * maint.c (maintenance_translate_address): Likewise.
3284 * minidebug.c (find_separate_debug_file_in_section): Likewise.
3285 * minsyms.c (install_minimal_symbols): Likewise.
3286 * objfiles.c (allocate_objfile): Use the objfile field name renamed to
3287 original_name.
3288 (filter_overlapping_sections): Use objfile_name.
3289 (objfile_name): New function.
3290 * objfiles.h (struct objfile): Rename field name to original_name.
3291 (objfile_name): New prototype.
3292 * printcmd.c (sym_info, address_info): Use objfile_name.
3293 * probe.c (parse_probes, collect_probes, compare_probes)
3294 (info_probes_for_ops): Likewise.
3295 * progspace.c (clone_program_space): Likewise.
3296 * psymtab.c (require_partial_symbols, dump_psymtab, allocate_psymtab)
3297 (maintenance_info_psymtabs): Likewise.
3298 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
3299 (source_section_scripts): Likewise.
3300 * python/py-objfile.c (objfpy_get_filename): Likewise.
3301 * python/py-progspace.c (pspy_get_filename): Likewise.
3302 * solib-aix.c (solib_aix_get_toc_value): Likewise.
3303 * solib-som.c (match_main, som_solib_section_offsets): Likewise.
3304 * solib.c (solib_read_symbols): Likewise.
3305 * stabsread.c (scan_file_globals): Likewise.
3306 * stap-probe.c (handle_stap_probe): Likewise.
3307 * symfile.c (symbol_file_clear, separate_debug_file_exists)
3308 (find_separate_debug_file_by_debuglink): Likewise.
3309 (reread_symbols): Likewise. Use the objfile field name renamed to
3310 original_name.
3311 (allocate_symtab): Use objfile_name.
3312 * symmisc.c (print_symbol_bcache_statistics, print_objfile_statistics)
3313 (dump_objfile, dump_msymbols, dump_symtab_1)
3314 (maintenance_print_msymbols, maintenance_print_objfiles)
3315 (maintenance_info_symtabs, maintenance_check_symtabs): Likewise.
3316 * target.c (target_translate_tls_address, target_info): Likewise.
3317 * xcoffread.c (xcoff_initial_scan): Make variable name const. Use
3318 objfile_name.
3319
3320 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3321
3322 Code cleanup.
3323 * probe.c (parse_probes): Rename variable objfile_name to
3324 objfile_namestr.
3325
3326 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3327
3328 Remove solib-sunos.c.
3329 * Makefile.in (ALLDEPFILES): Remove solib-sunos.c.
3330 * config/m68k/obsd.mh (NATDEPFILES): Remove solib-sunos.o.
3331 * objfiles.c (rt_common_objfile): Remove.
3332 (free_objfile): Remove rt_common_objfile comparison.
3333 * objfiles.h (rt_common_objfile): Remove.
3334 * solib-sunos.c: Remove.
3335 * symfile.c (reread_symbols): Remove solib-sunos.c comment.
3336
3337 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3338
3339 Remove a.out NetBSD and OpenBSD hosts.
3340 * NEWS (Removed native configurations): New.
3341 * config/arm/nbsdaout.mh: Remove.
3342 * config/i386/nbsdaout.mh: Remove.
3343 * config/i386/obsdaout.mh: Remove.
3344 * config/m68k/nbsdaout.mh: Remove.
3345 * config/sparc/nbsdaout.mh: Remove.
3346 * config/vax/nbsdaout.mh: Remove.
3347 * configure.host (arm*-*-netbsd*, i[34567]86-*-netbsd*)
3348 (i[34567]86-*-openbsd[0-2].*, i[34567]86-*-openbsd3.[0-3])
3349 (m68*-*-netbsd*, sparc-*-netbsd*, vax-*-netbsd*): Add them to obsolete
3350 error.
3351 (arm*-*-netbsd*, i[34567]86-*-netbsd*, i[34567]86-*-openbsd[0-2].*)
3352 (i[34567]86-*-openbsd3.[0-3], m68*-*-netbsd*, sparc-*-netbsdaout*)
3353 (sparc-*-netbsd*, vax-*-netbsd*): Remove.
3354
3355 2013-09-23 Tom Tromey <tromey@redhat.com>
3356
3357 * linespec.c (struct minsym_and_objfile): Remove.
3358 (minsym_and_objfile_d): Remove.
3359 (struct linespec, struct collect_info, linespec_parse_basic)
3360 (convert_linespec_to_sals, linespec_parser_delete, decode_objc)
3361 (compare_msymbols, find_method, find_function_symbols)
3362 (find_linespec_symbols, struct collect_minsyms, compare_msyms)
3363 (add_minsym, search_minsyms_for_name): Update.
3364
3365 2013-09-23 Andrew Burgess <aburgess@broadcom.com>
3366
3367 * regcache.c: Add include of valprint.h.
3368 (dump_endian_bytes): Delete.
3369 (regcache_dump): Use print_hex_chars not dump_endian_bytes.
3370
3371 2013-09-23 Andrew Burgess <aburgess@broadcom.com>
3372
3373 * sh64-tdep.c (sh64_do_fp_register): Use print_hex_chars.
3374
3375 2013-09-19 Pedro Alves <palves@redhat.com>
3376
3377 * breakpoint.c (remove_threaded_breakpoints): Skip non-user
3378 breakpoints.
3379
3380 2013-09-19 Pedro Alves <palves@redhat.com>
3381 Thomas Schwinge <thomas@codesourcery.com>
3382 Yue Lu <hacklu.newborn@gmail.com>
3383
3384 * gnu-nat.c (gnu_read_inferior, gnu_write_inferior): Make static.
3385 Take a gdb_byte pointer instead of a char pointer.
3386
3387 * gnu-nat.c (gnu_xfer_memory): Adjust interface as
3388 gnu_xfer_partial helper.
3389 (gnu_xfer_partial): New function.
3390 (gnu_target): Don't install a deprecated_xfer_memory hook.
3391 Install a to_xfer_partial hook.
3392
3393 2013-09-19 Jan Kratochvil <jan.kratochvil@redhat.com>
3394
3395 Constification.
3396 * main.c (captured_main): Replace catch_command_errors by
3397 catch_command_errors_const. Twice.
3398 * symfile.c (symbol_file_add_main_1): Make args parameter const.
3399 (symbol_file_add): Make name parameter const.
3400 (symbol_file_add_main, symbol_file_add_main_1): Make args parameter const.
3401 (symfile_bfd_open): Make name parameter const, rename it to cname. Add
3402 variable name. Change their usage accordingly.
3403 * symfile.h (symbol_file_add, symfile_bfd_open): Make first parameter
3404 const.
3405 (symbol_file_add_main): Make args parameter const.
3406
3407 2013-09-18 Raunaq Bathija <raunaq12@in.ibm.com>
3408 Ulrich Weigand <uweigand@de.ibm.com>
3409
3410 * xcoffread.c (struct coff_symbol): Use CORE_ADDR as type
3411 of c_value member.
3412 (read_xcoff_symtab): Use CORE_ADDR as type of fcn_start_addr.
3413
3414 2013-09-18 Pedro Alves <palves@redhat.com>
3415 Yue Lu <hacklu.newborn@gmail.com>
3416
3417 * gnu-nat.c (inf_validate_procs, gnu_wait, gnu_resume)
3418 (gnu_create_inferior)
3419 (gnu_attach, gnu_thread_alive, gnu_pid_to_str, cur_thread)
3420 (set_sig_thread_cmd): Use the lwpid field of ptids to
3421 store/extract thread ids instead of the tid field.
3422 * i386gnu-nat.c (gnu_fetch_registers): Adjust.
3423
3424 2013-09-18 Andrew Burgess <aburgess@broadcom.com>
3425
3426 * infcmd.c (default_print_one_register_info): Add detection of
3427 optimized out values.
3428 (default_print_registers_info): Switch to using
3429 get_frame_register_value.
3430
3431 2013-09-18 Markus Metzger <markus.t.metzger@intel.com>
3432
3433 * infrun.c (handle_inferior_event): Check if we know the
3434 function start address before setting a resume breakpoint.
3435
3436 2013-09-18 Pedro Alves <palves@redhat.com>
3437
3438 * gnu-nat.c (set_sig_thread_cmd): Compare the thread's ptid to
3439 minus_one_ptid instead of looking at the ptid's tid field and
3440 comparing that to -1.
3441
3442 2013-09-18 Andrew Burgess <aburgess@broadcom.com>
3443
3444 * main.h (get_gdb_program_name): Remove extra whitespace.
3445
3446 2013-09-18 Andrew Burgess <aburgess@broadcom.com>
3447
3448 * main.h (get_gdb_program_name): Add declaration.
3449 * main.c (get_gdb_program_name): Add definition.
3450
3451 2013-09-17 Doug Evans <dje@google.com>
3452
3453 * dwarf2read.c: Move definitions of complaint functions to after
3454 forward declarations of local functions.
3455
3456 2013-09-17 Muhammad Waqas <mwaqas@codesourcery.com>
3457 Pedro Alves <palves@redhat.com>
3458
3459 PR gdb/11568
3460 * breakpoint.c (remove_threaded_breakpoints): New function.
3461 (_initialize_breakpoint): Attach remove_threaded_breakpoints
3462 as thread_exit observer.
3463
3464 2013-09-17 Pedro Alves <palves@redhat.com>
3465
3466 PR gdb/15911
3467 * ada-tasks.c (task_command_1): Adjust call to print_stack_frame.
3468 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd):
3469 * corelow.c (core_open):
3470 * frame.h (print_stack_frame, print_frame_info): New
3471 'set_current_sal' parameter.
3472 * infcmd.c (finish_command, kill_command): Adjust call to
3473 print_stack_frame.
3474 * inferior.c (inferior_command): Likewise.
3475 * infrun.c (normal_stop): Likewise.
3476 * linux-fork.c (linux_fork_context): Likewise.
3477 * record-full.c (record_full_goto_entry, record_full_restore):
3478 Likewise.
3479 * remote-mips.c (common_open): Likewise.
3480 * stack.c (print_stack_frame): New 'set_current_sal' parameter.
3481 Use it.
3482 (print_frame_info): New 'set_current_sal' parameter. Set the last
3483 displayed sal depending on the new paremeter instead of looking at
3484 print_what.
3485 (backtrace_command_1, select_and_print_frame, frame_command)
3486 (current_frame_command, up_command, down_command): Adjust call to
3487 print_stack_frame.
3488 * thread.c (print_thread_info, restore_selected_frame)
3489 (do_captured_thread_select): Adjust call to print_stack_frame.
3490 * tracepoint.c (tfind_1): Likewise.
3491 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
3492 (mi_cmd_stack_info_frame): Likewise.
3493 * mi/mi-interp.c (mi_on_normal_stop): Likewise.
3494 * mi/mi-main.c (mi_cmd_exec_return, mi_cmd_trace_find): Likewise.
3495
3496 2013-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
3497
3498 * value.c (isvoid_internal_fn): Replace "parameter" with
3499 "argument".
3500
3501 2013-09-16 Stan Shebs <stan@codesourcery.com>
3502
3503 * README: Update references to writing code for GDB.
3504 * configure.ac (build_warnings): Remove obsolete comment.
3505 * configure: Regenerate.
3506 * gdbarch.sh: Remove references to gdbint.texinfo.
3507 * gdbarch.h: Regenerate.
3508 * gdbtypes.c (objfile_type): Remove comments referencing internals
3509 manual and D10V.
3510
3511 2013-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
3512
3513 * NEWS: Mention new convenience function $_isvoid.
3514 * value.c (isvoid_internal_fn): New function.
3515 (_initialize_values): Add new convenience function $_isvoid.
3516
3517 2013-09-16 Pierre Muller <muller@sourceware.org>
3518
3519 * arm-linux-tdep.c: Add "elf/common.h" header.
3520 Remove AT_HWCAP macro definintion as it is provided in
3521 added include file.
3522 * s390-tdep.c: Remove system header <elf.h>
3523 Add "elf/common.h" header for AT_HWCAP definition.
3524 (s390_core_read_description): Use correct CORE_ADDR
3525 for hwcap local variable used as third parameter
3526 of function target_auxv_search.
3527
3528 2013-09-14 Pierre Muller <muller@sourceware.org>
3529 Tom Tromey <tromey@redhat.com>
3530 Pedro Alves <palves@redhat.com>
3531
3532 * common/filestuff.c (gdb_fopen_cloexec): Do not try to use "e"
3533 mode if operating system doesn't know O_CLOEXEC.
3534
3535 2013-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3536
3537 Code cleanup.
3538 * symfile.c (reread_symbols): Move variable obfd_filename to a more
3539 inner block.
3540
3541 2013-09-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
3542
3543 * NEWS: Mention TDB support.
3544 * features/s390-tdb.xml: New file.
3545 * features/s390-te-linux64.xml: New file.
3546 * features/s390x-te-linux64.xml: New file.
3547 * features/Makefile (WHICH): Add new tdescs above.
3548 (s390-te-linux64-expedite): Set.
3549 (s390x-te-linux64-expedite): Set.
3550 * features/s390-te-linux64.c: New file (generated).
3551 * features/s390x-te-linux64.c: New file (generated).
3552 * regformats/s390-te-linux64.dat: New file (generated).
3553 * regformats/s390x-te-linux64.dat: New file (generated).
3554 * s390-tdep.h (HWCAP_S390_HIGH_GPRS): Define.
3555 (HWCAP_S390_TE): Likewise.
3556 (S390_TDB_DWORD0_REGNUM): Likewise.
3557 (S390_TDB_DWORD0_REGNUM): Likewise.
3558 (S390_TDB_ABORT_CODE_REGNUM): Likewise.
3559 (S390_TDB_CONFLICT_TOKEN_REGNUM): Likewise.
3560 (S390_TDB_ATIA_REGNUM): Likewise.
3561 (S390_TDB_R0_REGNUM): Likewise.
3562 (S390_TDB_R1_REGNUM): Likewise.
3563 (S390_TDB_R2_REGNUM): Likewise.
3564 (S390_TDB_R3_REGNUM): Likewise.
3565 (S390_TDB_R4_REGNUM): Likewise.
3566 (S390_TDB_R5_REGNUM): Likewise.
3567 (S390_TDB_R6_REGNUM): Likewise.
3568 (S390_TDB_R7_REGNUM): Likewise.
3569 (S390_TDB_R8_REGNUM): Likewise.
3570 (S390_TDB_R9_REGNUM): Likewise.
3571 (S390_TDB_R10_REGNUM): Likewise.
3572 (S390_TDB_R11_REGNUM): Likewise.
3573 (S390_TDB_R12_REGNUM): Likewise.
3574 (S390_TDB_R13_REGNUM): Likewise.
3575 (S390_TDB_R14_REGNUM): Likewise.
3576 (S390_TDB_R15_REGNUM): Likewise.
3577 (S390_NUM_REGS): Increase.
3578 (S390_IS_TDBREGSET_REGNUM): New macro.
3579 (s390_regmap_tdb): Declare.
3580 (s390_sizeof_tdbregset): Define.
3581 (tdesc_s390_te_linux64): Declare.
3582 (tdesc_s390x_te_linux64): Likewise.
3583 * s390-tdep.c: Add includes for "auxv.h", <elf.h>,
3584 "features/s390-te-linux64.c", and "features/s390x-te-linux64.c".
3585 (s390_regmap_tdb): New regmap.
3586 (s390_supply_tdb_regset): New function.
3587 (s390_tdb_regset): New regset.
3588 (s390_linux64v2_regset_sections): Add TDB regset to list.
3589 (s390x_linux64v2_regset_sections): Likewise.
3590 (s390_regset_from_core_section): Recognize TDB core note section.
3591 (s390_core_read_description): If HWCAP indicates TE support,
3592 select tdesc_s390_te_linux64 or tdesc_s390_s390x_te_linux64.
3593 (s390_gdbarch_init): Handle TDB regset.
3594 (_initialize_s390_tdep): Initialize new tdescs.
3595 * s390-nat.c (HWCAP_S390_HIGH_GPRS): Remove define.
3596 (have_regset_tdb): New variable.
3597 (s390_native_supply): Support register invalidation.
3598 (fetch_regset): Invalidate registers if ptrace yields ENODATA.
3599 (check_regset): Treat ENODATA as "regset exists".
3600 (s390_linux_fetch_inferior_registers): Add TDB.
3601 (s390_read_description): Check for TDB existence and select
3602 appropriate tdesc.
3603 * gdbserver/Makefile.in (clean): Add removal of new makefile
3604 targets.
3605 (s390-te-linux64.c): New makefile target.
3606 (s390x-te-linux64.c): Likewise.
3607 * gdbserver/configure.srv (srv_regobj): Append new objects
3608 s390-te-linux64.o and s390x-te-linux64.o.
3609 (srv_xmlfiles): Append new files s390-te-linux64.xml,
3610 s390x-te-linux64.xml, and s390-tdb.xml.
3611 * gdbserver/linux-s390-low.c (init_registers_s390_te_linux64): New
3612 declaration.
3613 (tdesc_s390_te_linux64): Likewise.
3614 (init_registers_s390x_te_linux64): Likewise.
3615 (tdesc_s390x_te_linux64): Likewise.
3616 (s390_check_regset): Treat ENODATA as "regset exists".
3617 (s390_arch_setup): Add TDB regset support.
3618 (initialize_low_arch): Initialize registers for new tdescs.
3619
3620 2013-09-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
3621
3622 * s390-tdep.h (S390_IS_GREGSET_REGNUM): New macro.
3623 (S390_IS_FPREGSET_REGNUM): New macro.
3624 * s390-tdep.c (s390_dwarf_regmap): Make const.
3625 (regnum_is_gpr_full): New function for replacing repeated code.
3626 (s390_pseudo_register_name): Use it.
3627 (s390_pseudo_register_type): Likewise.
3628 (s390_pseudo_register_read): Likewise.
3629 (s390_pseudo_register_write): Likewise.
3630 (s390_unwind_pseudo_register): Likewise.
3631 (s390_regmap_gregset): New format for regmap.
3632 (s390x_regmap_gregset): Likewise.
3633 (s390_regmap_fpregset): Likewise.
3634 (s390_regmap_upper): Likewise.
3635 (s390_regmap_last_break): Likewise.
3636 (s390_regmap_system_call): Likewise.
3637 (s390_supply_regset): Adjust to new regmap format.
3638 (s390_collect_regset): Likewise.
3639 * s390-nat.c (s390_native_supply): Adjust to new regmap format.
3640 (s390_native_collect): Likewise.
3641 (supply_gregset): Likewise.
3642 (fill_gregset): Likewise.
3643 (supply_fpregset): Likewise.
3644 (fill_fpregset): Likewise.
3645 (fetch_regset): Likewise.
3646 (store_regset): Likewise.
3647 (s390_linux_fetch_inferior_registers): Likewise.
3648 (s390_linux_fetch_inferior_registers): Likewise.
3649
3650 2013-09-12 Andrew Pinski <apinski@cavium.com>
3651
3652 * aarch64-linux-nat.c (aarch64_linux_set_debug_regs): Zero out regs.
3653
3654 2013-09-10 Andreas Arnez <arnez@linux.vnet.ibm.com>
3655
3656 * config/s390/s390.mh (NATDEPFILES): Add linux-waitpid.o.
3657
3658 2013-09-09 Andrew Burgess <aburgess@broadcom.com>
3659
3660 * top.c (quit_confirm): Remove use of deprecated_init_ui_hook.
3661
3662 2013-09-06 Pedro Alves <palves@redhat.com>
3663
3664 * remote-sim.c (dump_mem, gdbsim_fetch_register)
3665 (gdbsim_store_register, gdbsim_kill, gdbsim_load)
3666 (gdbsim_create_inferior, gdbsim_open, gdbsim_close)
3667 (gdbsim_detach, gdbsim_resume_inferior, gdbsim_wait)
3668 (gdbsim_files_info, gdbsim_mourn_inferior): Send debug output to
3669 gdb_stdlog.
3670
3671 2013-09-06 Pedro Alves <palves@redhat.com>
3672
3673 * remote-sim.c (dump_mem): Constify buf parameter.
3674 gdbsim_xfer_inferior_memory): Rename to ...
3675 (gdbsim_xfer_memory): ... this. Adjust interface as
3676 target_xfer_partial helper.
3677 (gdbsim_xfer_partial): New function.
3678 (init_gdbsim_ops): Don't install a deprecated_xfer_memory hook.
3679 Install a to_xfer_partial hook. Send output to gdb_stdlog.
3680
3681 2013-09-06 Pedro Alves <palves@redhat.com>
3682
3683 * remote-sim.c (gdbsim_xfer_inferior_memory): Use
3684 host_address_to_string, and send debug output to gdb_stdlog.
3685
3686 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
3687
3688 * Makefile.in (ALL_TARGET_OBS): Add cris-linux-tdep.o.
3689 * configure.tgt: Add cris-linux-tdep.o and linux-tdep.o to
3690 gdb_target_obs for cris target.
3691 * cris-tdep.c (struct gdbarch_tdep): Move to cris-tdep.h.
3692 (cris_gdbarch_init): Move calls to
3693 set_gdbarch_fetch_tls_load_module_address and
3694 set_solib_svr4_fetch_link_map_offsets to cris-linux-tdep.c.
3695 Add call to gdbarch_init_osabi.
3696 * cris-linux-tdep.c: New file.
3697 * cris-tdep.h: New file.
3698
3699 2013-09-06 Andrew Burgess <aburgess@broadcom.com>
3700
3701 * tui/tui-io.c (tui_initialize_io): Remove legacy comment referring
3702 to deprecated_init_ui_hook.
3703
3704 2013-09-06 Andrew Burgess <aburgess@broadcom.com>
3705
3706 * cli/cli-interp.c (_initialize_cli_interp): Add a
3707 command_loop_proc to interp_procs.
3708 * event-top.c (cli_command_loop): Change signature to match
3709 interp_command_loop_ftype.
3710 * event-top.h (cli_command_loop): Same.
3711 * interps.c (interp_new): Require every interpreter to have a
3712 command_loop_proc.
3713 (current_interp_command_loop): Just call the command_loop_proc on
3714 the current interpreter.
3715 * tui/tui-interp.c (_initialize_tui_interp): Add a
3716 command_loop_proc to interp_procs.
3717
3718 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
3719
3720 * cris-tdep.c (cris_gdbarch_init): Add call to
3721 get_gdbarch_fetch_tls_load_module_address.
3722
3723 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
3724
3725 * cris-tdep.c (cris_elf_greg_t): Rename from elf_greg_t.
3726 (cris_elf_gregset_t): Rename from elf_gregset_t.
3727 (crisv32_elf_gregset_t): Adjust.
3728 (cris_supply_gregset, fetch_core_registers): Adjust.
3729
3730 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
3731
3732 * cris-tdep.c (elf_greg_t): Change typedef to unsigned char[4]
3733
3734 2013-09-05 Andrew Burgess <aburgess@broadcom.com>
3735
3736 * defs.h (deprecated_command_loop_hook): Remove, including
3737 references in comments.
3738 * interps.c (current_interp_command_loop): No longer use
3739 deprecated_command_loop_hook.
3740 (clear_interpreter_hooks): Remove deprecated_command_loop_hook
3741 setup.
3742 * top.c (deprecated_command_loop_hook): Remove.
3743
3744 2013-09-05 Pedro Alves <palves@redhat.com>
3745
3746 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): 'dwarf_regnum'
3747 local is now int instead of ULONGEST. Print it with %d
3748 instead of paddress.
3749
3750 2013-09-05 Tristan Gingold <gingold@adacore.com>
3751
3752 * MAINTAINERS: Remove avr maintainership.
3753
3754 2013-09-05 Pedro Alves <palves@redhat.com>
3755
3756 * findvar.c (value_of_register): Rework in terms of
3757 value_of_register_lazy.
3758
3759 2013-09-05 Muhammad Bilal <mbilal@codesourcery.com>
3760
3761 * symfile.c (add_symbol_file_command): Remove trailing
3762 whitespaces and blank line after comment.
3763
3764 2013-09-05 Pedro Alves <palves@redhat.com>
3765
3766 * tui/tui-regs.c (tui_register_format): Don't look at the
3767 register's name here. Return string representing register
3768 value instead of storing it in the data element.
3769 (tui_get_register): Compare register string representations
3770 instead of register value states and contents.
3771
3772 2013-09-05 Pedro Alves <palves@redhat.com>
3773
3774 PR tui/15933
3775 * tui/tui-regs.c (tui_show_registers): Show registers of the
3776 selected frame, not the current frame.
3777
3778 2013-09-05 Ricard Wanderlof <ricardw@axis.com>
3779
3780 * MAINTAINERS (Write After Approval): Add myself to the list.
3781
3782 2013-09-04 Doug Evans <dje@google.com>
3783
3784 * dwarf2read.c (queue_and_load_all_dwo_tus): New function.
3785 (queue_and_load_dwo_tu): New function.
3786 (lookup_dwo_signatured_type): Set per_cu.tu_read.
3787 (maybe_queue_comp_unit): Rename this_cu argument to dependent_cu.
3788 Make dependent_cu optional.
3789 (dw2_do_instantiate_symtab): If we just loaded a CU from a DWO,
3790 and an older .gdb_index is in use, queue and load all its TUs too.
3791
3792 2013-09-04 Jan Kratochvil <jan.kratochvil@redhat.com>
3793
3794 Code cleanup: Change OPF_DISABLE_REALPATH to OPF_RETURN_REALPATH.
3795 * cli/cli-cmds.c (find_and_open_script): Add OPF_RETURN_REALPATH to
3796 variable search_flags.
3797 * defs.h (OPF_DISABLE_REALPATH): Rename to ...
3798 (OPF_RETURN_REALPATH): ... here.
3799 * dwarf2read.c (try_open_dwop_file): Set OPF_RETURN_REALPATH for flags.
3800 * exec.c (exec_file_attach): Remove OPF_DISABLE_REALPATH from openp
3801 call. Twice.
3802 * nto-tdep.c (nto_find_and_open_solib): Add OPF_RETURN_REALPATH for
3803 openp call.
3804 * solib.c (solib_find): Likewise. Four times.
3805 * source.c (openp): Change OPF_DISABLE_REALPATH to OPF_RETURN_REALPATH
3806 in the function comment and for the realpath_fptr variable.
3807 (source_full_path_of): Add OPF_RETURN_REALPATH for openp call.
3808 (find_and_open_source): Likewise. Twice.
3809 * symfile.c (symfile_bfd_open): Likewise, also twice.
3810
3811 2013-09-04 Doug Evans <dje@google.com>
3812
3813 * progspace.c (save_current_space_and_thread): Remove unnecessary
3814 call to save_current_inferior.
3815
3816 2013-09-04 Andrew Burgess <aburgess@broadcom.com>
3817
3818 * sh64-tdep.c (sh64_do_register): Return after printing message
3819 about unavailable register contents.
3820
3821 2013-09-04 Muhammad Bilal <mbilal@codesourcery.com>
3822 Pedro Alves <palves@redhat.com>
3823
3824 * symfile.c (add_symbol_file_command): Error out on unknown
3825 option. Handle EXPECTING_SEC_ADDR/EXPECTING_SEC_NAME before '-'
3826 options and collapse into single conditional branch.
3827
3828 2013-09-03 Luis Machado <lgustavo@codesourcery.com>
3829
3830 * inf-child.c (inf_child_follow_fork): New parameter
3831 detach_fork.
3832 * inf-ptrace.c (inf_ptrace_follow_fork): Likewise.
3833 * inf-ttrace.c (inf_ttrace_follow_fork): Likewise.
3834 * inferior.h (detach_fork): Remove.
3835 * infrun.c (detach_fork): Adjust comment and make it
3836 static.
3837 (follow_fork): Pass detach_fork parameter to
3838 target_follow_fork.
3839 * linux-nat.c (linux_child_follow_fork): New parameter
3840 detach_fork.
3841 * target.c (target_follow_fork): New parameter detach_fork.
3842 Pass detach_fork as parameter and print its value.
3843 * target.h (struct target_ops) <to_follow_fork>: New int
3844 parameter.
3845 (target_follow_fork): New parameter detach_fork.
3846
3847 2013-09-03 Joel Brobecker <brobecker@adacore.com>
3848
3849 * solib-ia64-hpux.c (ia64_hpux_relocate_section_addresses):
3850 Replace sec->bfd by sec->the_bfd_section->owner.
3851
3852 2013-09-03 Yao Qi <yao@codesourcery.com>
3853
3854 * linux-tdep.c (linux_is_uclinux): New function. Code moved
3855 from linux_has_shared_address_space.
3856 (linux_has_shared_address_space): Call linux_is_uclinux.
3857 * linux-tdep.h (linux_is_uclinux): Declare.
3858 * m68klinux-tdep.c (m68k_linux_get_sigtramp_info): Call
3859 linux_is_uclinux.
3860
3861 2013-09-03 Yao Qi <yao@codesourcery.com>
3862
3863 * config/djgpp/fnchange.lst: Remove entry of
3864 i386-interix-nat.c and i386-interix-tdep.c.
3865 * configure.ac: Remove '*-*-interix*'.
3866 * configure: Re-generated.
3867 * defs.h (enum gdb_osabi): Remove GDB_OSABI_INTERIX.
3868 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Remove
3869 obsolete comments.
3870 * osabi.c (gdb_osabi_names): Remove "Interix".
3871
3872 2013-09-03 Yao Qi <yao@codesourcery.com>
3873
3874 * arch-utils.c: Fix typo in the comment to gdbarch_update_p.
3875
3876 2013-09-02 Markus Metzger <markus.t.metzger@intel.com>
3877
3878 * record.h (record_print_flag) <record_print_src_line,
3879 record_print_insn_range>: Rename into ...
3880 (record_print_flag) <record_print_src_line,
3881 record_print_insn_range>: ... this. Update all users.
3882
3883 2013-09-02 Pierre Muller <muller@sourceware.org>
3884
3885 * windows-nat.c (windows_xfer_memory): Handle ERROR_PARTIAL_COPY
3886 error code.
3887
3888 2013-09-02 Pierre Muller <muller@sourceware.org>
3889
3890 * windows-nat.c (windows_xfer_memory): Fix compilation failure
3891 by use of plongest function.
3892
3893 2013-09-02 Tristan Gingold <gingold@adacore.com>
3894
3895 * NEWS: Add entry mentioning support for native Windows x64
3896 SEH data.
3897
3898 * amd64-windows-tdep.c: #include "objfiles.h", "frame-unwind.h",
3899 "coff/internal.h", "coff/i386.h", "coff/pe.h" and "libcoff.h".
3900 (struct amd64_windows_frame_cache): New struct.
3901 (amd64_windows_w2gdb_regnum): New global.
3902 (pc_in_range, amd64_windows_frame_decode_epilogue)
3903 (amd64_windows_frame_decode_insns, amd64_windows_find_unwind_info)
3904 (amd64_windows_frame_cache, amd64_windows_frame_prev_register)
3905 (amd64_windows_frame_this_id): New functions.
3906 (amd64_windows_frame_unwind): New static global.
3907 (amd64_windows_skip_prologue): New function.
3908 (amd64_windows_init_abi): Call frame_unwind_prepend_unwinder
3909 with amd64_windows_frame_unwind. Call set_gdbarch_skip_prologue
3910 with amd64_windows_skip_prologue.
3911
3912 2013-08-30 Joel Brobecker <brobecker@adacore.com>
3913
3914 GDB 7.6.1 released.
3915
3916 2013-08-30 Pedro Alves <palves@redhat.com>
3917
3918 * mi/mi-main.c (mi_cmd_trace_find): Use LOC_AND_ADDRESS instead of
3919 SRC_AND_LOC.
3920
3921 2013-08-30 Pedro Alves <palves@redhat.com>
3922
3923 * thread.c (restore_selected_frame): Use SRC_AND_LOC, and change
3924 warning text.
3925
3926 2013-08-30 Pedro Alves <palves@redhat.com>
3927
3928 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd):
3929 Adjust arguments to print_stack_frame.
3930
3931 2013-08-30 Pedro Alves <palves@redhat.com>
3932
3933 * ada-tasks.c (task_command_1): Write SRC_AND_LOC instead '1'.
3934
3935 2013-08-30 Pedro Alves <palves@redhat.com>
3936
3937 * frame.h (show_and_print_stack_frame): Delete declaration.
3938
3939 2013-08-30 Phil Muldoon <pmuldoon@redhat.com>
3940
3941 PR python/15461
3942 * python/py-arch.c (ARCHPY_REQUIRE_VALID): New macro.
3943 (archpy_name): Check for valid architecture.
3944 (archpy_disassemble): Ditto.
3945
3946 2013-08-29 Joel Brobecker <brobecker@adacore.com>
3947
3948 * rs6000-nat.c (rs6000_ptrace32): Cast "addr" to "uintptr_t"
3949 instead of "long long" in call to ptrace64.
3950
3951 2013-08-29 Andrew Burgess <aburgess@broadcom.com>
3952
3953 * mi/mi-interp.c (mi_command_loop): Change signature to match
3954 interp_command_loop_ftype.
3955 (mi1_command_loop): Remove.
3956 (mi2_command_loop): Remove.
3957 (mi3_command_loop): Remove.
3958 (mi_interpreter_resume): Remove setting of
3959 deprecated_command_loop_hook.
3960 (_initialize_mi_interp): Set mi_command_loop as the command loop
3961 callback.
3962
3963 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
3964
3965 * valops.c (do_search_struct_field): Pass v2 instead of base_type to
3966 value_type.
3967
3968 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
3969
3970 * value.c (allocate_value_contents): Make static.
3971 * value.h (allocate_value_contents): Remove prototype.
3972
3973 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
3974
3975 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use value_at_lazy instead
3976 of assembling value via allocate_value_lazy and attribute setter.
3977 * findvar.c (default_read_var_value): Use value_at_lazy instead of
3978 assembling value via allocate_value_lazy and attribute setter.
3979 * valops.c (do_search_struct_field): Use value_at_lazy instead of
3980 assembling value via allocate_value_lazy and attribute setter.
3981
3982 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
3983
3984 * value.c (value_from_contents_and_address): Replace allocate_value and
3985 memcpy with value_from_contents.
3986
3987 2013-08-29 Phil Muldoon <pmuldoon@redhat.com>
3988
3989 * python/py-framefilter.c (py_print_frame): Remove usage of
3990 PyString_AsString. Use python_string_to_host_string instead.
3991 Refactor function to work with a string as a new allocation
3992 instead of a pointer.
3993 (py_print_frame): Ditto.
3994 * python/lib/gdb/frames.py (return_list): Cain iterators together
3995 instead of adding them as a list.
3996 (_sort_list): Call return_list, and remove duplicate code.
3997 (execute_frame_filters): Convert iterator to a list with list().
3998 * python/lib/gdb/command/frame_filters.py
3999 (SetFrameFilterPriority._set_filter_priority): Convert priority
4000 attribute to an integer.
4001 * python/lib/gdb/FrameIterator.py (FrameIterator.next): Define
4002 wrapper function __next__.
4003 * python/lib/gdb/FrameDecorator.py: If basestring not defined,
4004 define as "str".
4005
4006 2013-08-29 Phil Muldoon <pmuldoon@redhat.com>
4007
4008 PR python/15752
4009 * python/py-framefilter.c (apply_frame_filter): Check
4010 gdb_python_initialized. Exit if the Python frame-filter code
4011 cannot be initialized.
4012
4013 2013-08-29 Phil Muldoon <pmuldoon@redhat.com>
4014
4015 PR cli/15842
4016 * top.c (print_gdb_version): Remove erroneous newline after help
4017 text.
4018
4019 2013-08-29 Yao Qi <yao@codesourcery.com>
4020
4021 * varobj.c (install_dynamic_child): Remove trailing space.
4022 Add one blank line after variable declaration.
4023
4024 2013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4025
4026 PR gdb/15415
4027 * corefile.c (get_exec_file): Use exec_filename.
4028 * defs.h (OPF_DISABLE_REALPATH): New definition. Add new comment.
4029 * exec.c (exec_close): Free EXEC_FILENAME.
4030 (exec_file_attach): New variable canonical_pathname. Use
4031 OPF_DISABLE_REALPATH. Call gdb_realpath explicitly. Set
4032 EXEC_FILENAME.
4033 * exec.h (exec_filename): New.
4034 * inferior.c (print_inferior, inferior_command): Use
4035 PSPACE_EXEC_FILENAME.
4036 * mi/mi-main.c (print_one_inferior): Likewise.
4037 * progspace.c (clone_program_space, print_program_space): Likewise.
4038 * progspace.h (struct program_space): New field pspace_exec_filename.
4039 * source.c (openp): Describe OPF_DISABLE_REALPATH. New variable
4040 realpath_fptr, initialize it from OPF_DISABLE_REALPATH, use it.
4041
4042 2013-08-28 Will Newton <will.newton@linaro.org>
4043
4044 * common/linux-ptrace.c: Include stdint.h unconditionally.
4045
4046 2013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4047
4048 Code cleanup.
4049 * nto-tdep.c (nto_find_and_open_solib): Use OPF_TRY_CWD_FIRST.
4050
4051 2013-08-28 Yao Qi <yao@codesourcery.com>
4052 Pedro Alves <palves@redhat.com>
4053
4054 * event-top.c (gdb_setup_readline): Call stderr_fileopen
4055 instead of stdio_fileopen.
4056 * main.c (captured_main) [__MINGW32__]: Set stderr unbuffered.
4057 .Call stderr_fileopen instead of stdio_fileopen.
4058 * ui-file.c [__MINGW32__] (stderr_file_write): New function.
4059 [__MINGW32__] (stderr_file_fputs): New function.
4060 (stderr_fileopen): New function.
4061 * ui-file.h (stderr_fileopen): Declare.
4062
4063 2013-08-27 Doug Evans <dje@google.com>
4064
4065 * dwarf2read.c (struct dwarf2_cu): Tweak comment.
4066 (struct dwarf2_per_cu_data): Ditto.
4067 (maybe_queue_comp_unit): Delete forward decl. Add comment.
4068 (process_imported_unit_die): Ditto.
4069 (follow_die_sig_1): Simplify assert.
4070
4071 2013-08-27 Pedro Alves <palves@redhat.com>
4072
4073 * windows-nat.c (windows_xfer_memory): Adjust prototype to follow
4074 xfer_partial's interface. Return TARGET_XFER_E_IO on error.
4075 (windows_xfer_partial): Defer TARGET_OBJECT_MEMORY handling to
4076 windows_xfer_memory directly.
4077 (init_windows_ops): Don't install a deprecated_xfer_memory method.
4078
4079 2013-08-27 Pedro Alves <palves@redhat.com>
4080
4081 * darwin-nat.c (darwin_xfer_memory): Delete.
4082 (_initialize_darwin_inferior): Don't install a
4083 deprecated_xfer_memory method.
4084
4085 2013-08-27 Pedro Alves <pedro@codesourcery.com>
4086 Yao Qi <yao@codesourcery.com>
4087
4088 * mi/mi-cmd-stack.c (list_args_or_locals): Adjust prototype.
4089 (parse_no_frames_option): Remove.
4090 (mi_cmd_stack_list_locals): Handle --skip-unavailable.
4091 (mi_cmd_stack_list_args): Adjust.
4092 (mi_cmd_stack_list_variables): Handle --skip-unavailable.
4093 (list_arg_or_local): Add new parameter 'skip_unavailable'. Return
4094 early if SKIP_UNAVAILABLE is true and ARG->val is unavailable.
4095 Caller update.
4096 (list_args_or_locals): New parameter 'skip_unavailable'.
4097 Handle it.
4098 * valprint.c (scalar_type_p): Rename to ...
4099 (val_print_scalar_type_p): ... this. Make extern.
4100 (val_print, value_check_printable): Adjust.
4101 * valprint.h (val_print_scalar_type_p): Declare.
4102 * value.c (value_entirely_unavailable): New function.
4103 * value.h (value_entirely_unavailable): Declare.
4104
4105 * NEWS: Mention the new option "--skip-unavailable" to MI
4106 commands '-stack-list-locals', '-stack-list-arguments' and
4107 '-stack-list-variables'.
4108
4109 2013-08-27 Yao Qi <yao@codesourcery.com>
4110
4111 * mi/mi-cmd-stack.c (parse_no_frames_option): Remove.
4112 (mi_cmd_stack_list_args): Use mi_getopt_silent to handle
4113 options.
4114 * mi/mi-getopt.c (mi_getopt): Remove.
4115 (mi_getopt_1): Renamed from mi_getopt. Add one parameter
4116 'error_on_unknown'.
4117 (mi_getopt): Call mi_getopt_1.
4118 (mi_getopt_silent): New.
4119 * mi/mi-getopt.h (mi_getopt_silent): Declare.
4120
4121 2013-08-26 Doug Evans <dje@google.com>
4122
4123 PR symtab/15885
4124 * dwarf2read.c (dw2_dump): Print some minimal information indicating
4125 .gdb_index is in use.
4126 * symfile.c (reread_symbols): Reset objfile->sf.
4127
4128 * NEWS: Document "mt print objfiles" now takes optional regexp.
4129 * symmisc.c (maintenance_print_objfiles): Argument is now an optional
4130 regexp of objfiles to print.
4131 (_initialize_symmisc): Update doc string for "mt print objfiles".
4132
4133 * dwarf2read.c (write_psymtabs_to_index): Move error checks ahead of
4134 missing debug info checks.
4135
4136 2013-08-26 Raunaq Bathija <raunaq12@in.ibm.com>
4137 Ulrich Weigand <uweigand@de.ibm.com>
4138
4139 * xcoffread.c (arrange_linetable): Add fix to correctly handle
4140 line tables generated by XLC compiled binaries.
4141
4142 2013-08-23 Doug Evans <dje@google.com>
4143
4144 * symmisc.c (dump_symtab): Delete prototype.
4145 (dump_msymbols, dump_objfile): Ditto.
4146 (maintenance_info_symtabs): Mark as dont_repeat.
4147 (_initialize_symmisc): Improve doc string for "mt info symtabs".
4148
4149 * elfread.c (elf_symfile_read): Move "Done reading minimal symbols"
4150 debugging printf to better location.
4151
4152 2013-08-23 Pedro Alves <palves@redhat.com>
4153
4154 * target.c (target_read_live_memory): Change type of 'ret' local
4155 to LONGEST.
4156
4157 2013-08-23 Pedro Alves <palves@redhat.com>
4158
4159 * remote.c (remote_write_bytes_aux, remote_write_bytes)
4160 (remote_read_bytes): Change return type to LONGEST, and adjust to
4161 return a target_xfer_error on error.
4162 (remote_xfer_memory): Delete.
4163 (remote_flash_write): Change type of 'ret' local to LONGEST.
4164 (remote_xfer_partial, remote_xfer_partial): Adjust.
4165 (init_remote_ops): Don't install a deprecated_xfer_memory hook.
4166
4167 2013-08-23 Pierre Muller <muller@sourceware.org>
4168
4169 ARI fix: Push # directives to start of line.
4170 * rs6000-nat.c (rs6000_ptrace32, rs6000_ptrace64): Rule applied.
4171
4172 2013-08-12 Muhammad Waqas <mwaqas@codesourcery.com>
4173
4174 PR gdb/15501
4175 * breakpoint.c (enable_command, disable_command): Iterate over
4176 all specified breakpoint locations.
4177
4178 2013-08-22 Luis Machado <lgustavo@codesourcery.com>
4179
4180 * common/linux-ptrace.c (linux_fork_to_function): Push #
4181 directives to the start of the line.
4182 (linux_check_ptrace_features): Fix warning message to use
4183 the "_" markup.
4184
4185 2013-08-22 Luis Machado <lgustavo@codesourcery.com>
4186
4187 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-nat.h and
4188 nat/linux-waitpid.h.
4189 (linux-waitpid.o): New object file rule.
4190 * common/linux-ptrace.c: Include nat/linux-waitpid.h.
4191 (current_ptrace_options): Moved from linux-nat.c.
4192 (linux_ptrace_test_ret_to_nx): Use type casts for ptrace
4193 parameters.
4194 (linux_fork_to_function): New function.
4195 (linux_grandchild_function): Likewise.
4196 (linux_child_function): Likewise.
4197 (linux_check_ptrace_features): New function, heavily
4198 based on linux-nat.c:linux_test_for_tracefork.
4199 (linux_enable_event_reporting): New function.
4200 (ptrace_supports_feature): Likewise.
4201 (linux_supports_tracefork): Likewise.
4202 (linux_supports_traceclone): Likewise.
4203 (linux_supports_tracevforkdone): Likewise.
4204 (linux_supports_tracesysgood): Likewise.
4205 * common/linux-ptrace.h (HAS_NOMMU): Moved from
4206 gdbserver/linux-low.c.
4207 (linux_enable_event_reporting): New declaration.
4208 (linux_supports_tracefork): Likewise.
4209 (linux_supports_traceclone): Likewise.
4210 (linux_supports_tracevforkdone): Likewise.
4211 (linux_supports_tracesysgood): Likewise.
4212 * config.in (PTRACE_TYPE_ARG4): Regenerate.
4213 * config/aarch64/linux.mh (NATDEPFILES): Add linux-waitpid.o.
4214 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
4215 * config/arm/linux.mh (NATDEPFILES): Likewise.
4216 * config/i386/linux.mh (NATDEPFILES): Likewise.
4217 * config/i386/linux64.mh (NATDEPFILES): Likewise.
4218 * config/ia64/linux.mh (NATDEPFILES): Likewise.
4219 * config/m32r/linux.mh (NATDEPFILES): Likewise.
4220 * config/m68k/linux.mh (NATDEPFILES): Likewise.
4221 * config/mips/linux.mh (NATDEPFILES): Likewise.
4222 * config/pa/linux.mh (NATDEPFILES): Likewise..
4223 * config/powerpc/linux.mh (NATDEPFILES): Likewise..
4224 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
4225 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
4226 * config/sparc/linux.mh (NATDEPFILES): Likewise.
4227 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
4228 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
4229 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
4230 * configure.ac (AC_CACHE_CHECK): Add void * to the list of
4231 ptrace's 4th argument's types.
4232 Check the type of PTRACE_TYPE_ARG4.
4233 * configure: Regenerate.
4234 * linux-nat.c: Include nat/linux-nat.h and nat/linux-waitpid.h.
4235 (SYSCALL_SIGTRAP): Moved to nat/linux-nat.h.
4236 (linux_supports_tracefork_flag): Remove.
4237 (linux_supports_tracesysgood_flag): Likewise.
4238 (linux_supports_tracevforkdone_flag): Likewise.
4239 (current_ptrace_options): Moved to
4240 common/linux-ptrace.c.
4241 (linux_tracefork_child): Remove.
4242 (my_waitpid): Remove.
4243 (linux_test_for_tracefork): Renamed to
4244 linux_check_ptrace_features and moved to common/linux-ptrace.c.
4245 (linux_test_for_tracesysgood): Remove.
4246 (linux_supports_tracesysgood): Remove.
4247 (linux_supports_tracefork): Remove.
4248 (linux_supports_tracevforkdone): Remove.
4249 (linux_enable_tracesysgood): Remove.
4250 (linux_enable_event_reporting): Remove.
4251 (linux_init_ptrace): New function.
4252 (linux_child_post_attach): Call linux_init_ptrace.
4253 (linux_child_post_startup_inferior): Call linux_init_ptrace.
4254 (linux_child_follow_fork): Call linux_supports_tracefork
4255 and linux_supports_tracevforkdone.
4256 (linux_child_insert_fork_catchpoint): Call
4257 linux_supports_tracefork.
4258 (linux_child_insert_vfork_catchpoint): Likewise.
4259 (linux_child_set_syscall_catchpoint): Call
4260 linux_supports_tracesysgood.
4261 (lin_lwp_attach_lwp): Call linux_supports_tracefork.
4262 * nat/linux-nat.h: New file.
4263 * nat/linux-waitpid.c: New file.
4264 * nat/linux-waitpid.h: New file.
4265
4266 2013-08-22 Samuel Bronson <naesten@gmail.com>
4267
4268 ARM Linux support for `catch syscall'.
4269 * syscalls/arm-linux.py: New file.
4270 * syscalls/arm-linux.xml: Likewise.
4271 * arm-linux-tdep.c (arm_linux_get_syscall_number): New function.
4272 (arm_linux_init_abi): Register the new function and syscall xml file.
4273 * data-directory/Makefile.in: Install the new syscall xml file.
4274 * NEWS: Brag about this.
4275
4276 2013-08-22 Pedro Alves <palves@redhat.com>
4277
4278 PR gdb/15871
4279 * corefile.c (target_xfer_memory_error): New function.
4280 (memory_error): Defer EIO to target_memory_error.
4281 (read_memory): Use target_xfer_partial, and handle finer-grained
4282 target xfer errors.
4283 * target.c (target_xfer_error_to_string): New function.
4284 (memory_xfer_partial_1): If memory is known to be
4285 unavailable, return TARGET_XFER_E_UNAVAILABLE instead of -1.
4286 (target_xfer_partial): Make extern.
4287 * target.h (enum target_xfer_error): New enum.
4288 (target_xfer_error_to_string): Declare function.
4289 (target_xfer_partial): Declare function.
4290 (struct target_ops) <xfer_partial>: Adjust describing comment.
4291
4292 2013-08-22 Alan Modra <amodra@gmail.com>
4293
4294 * configure.host: Support powerpc64le-linux and powerpcle-linux hosts.
4295 * configure.tgt: Likewise as targets.
4296
4297 2013-08-20 Doug Evans <dje@google.com>
4298
4299 * buildsym.c (subfile_stack): Move here from buildsym.h.
4300 (pending_macros): Ditto.
4301 (get_macro_table): New function.
4302 (buildsym_init): Initialize subfile_stack.
4303 * coffread.c (type_vector,type_vector_length): Moved here from
4304 buildsym.h.
4305 (INITIAL_TYPE_VECTOR_LENGTH): Ditto.
4306 (coff_symtab_read): Use it.
4307 * dbxread.c (read_ofile_symtab): Delete init of subfile_stack.
4308 * dwarf2read.c (macro_start_file): Replace uses of pending_macros
4309 with call to get_macro_table.
4310 * stabsread.c (type_vector,type_vector_length): Moved here from
4311 buildsym.h.
4312 (INITIAL_TYPE_VECTOR_LENGTH): Ditto.
4313 * buildsym.h (get_macro_table): Declare.
4314
4315 2013-08-20 Tom Tromey <tromey@redhat.com>
4316
4317 * dbxread.c (record_minimal_symbol): Make 'name' argument const.
4318 Update.
4319 (read_dbx_dynamic_symtab): Make 'name' const. Remove casts.
4320
4321 2013-08-20 Doug Evans <dje@google.com>
4322
4323 * blockframe.c: Remove #include "psymtab.h".
4324 * cp-support.c: Ditto.
4325 * source.c: Ditto.
4326 * stack.c: Ditto.
4327
4328 2013-08-20 Tom Tromey <tromey@redhat.com>
4329
4330 PR python/15816:
4331 * exceptions.h (return_mask): Now an enum.
4332 (RETURN_MASK_QUIT, RETURN_MASK_ERROR, RETURN_MASK_ALL): Now
4333 enum constants.
4334
4335 2013-08-20 Tom Tromey <tromey@redhat.com>
4336
4337 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Use
4338 get_objfile_arch.
4339 * elfread.c (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
4340 (elf_gnu_ifunc_resolve_by_got): Use get_objfile_arch.
4341 * jit.c (jit_object_close_impl): Update.
4342 * jv-lang.c (get_dynamics_objfile): Update.
4343 * linespec.c (add_minsym): Use get_dynamics_objfile.
4344 * objfiles.c (get_objfile_bfd_data): Initialize 'gdbarch' field.
4345 (allocate_objfile): Don't initialize 'gdbarch' field.
4346 (get_objfile_arch): Update.
4347 * objfiles.h (struct objfile_per_bfd_storage) <gdbarch>: New field,
4348 moved from...
4349 (struct objfile) <gdbarch>: ... here. Remove.
4350 * stap-probe.c (stap_can_evaluate_probe_arguments): Use
4351 get_objfile_arch.
4352 * symfile.c (init_entry_point_info): Use get_objfile_arch.
4353
4354 2013-08-20 Alan Modra <amodra@gmail.com>
4355
4356 * doublest.c (convert_floatformat_to_doublest): Use fmt->split_half
4357 for IBM long double nan and inf.
4358 (floatformat_is_negative, floatformat_classify,
4359 floatformat_mantissa): Similarly.
4360 (floatformat_ieee_single, floatformat_ieee_double,
4361 floatformat_ieee_quad, floatformat_arm_ext,
4362 floatformat_ia64_spill): Delete unused vars.
4363 (_initialize_doublest): Delete unused function.
4364 * gdbtypes.c (floatformats_ibm_long_double): Use new big- and
4365 little-endian variants of floatformat_ibm_long_double.
4366
4367 2013-08-19 Luis Machado <lgustavo@codesourcery.com>
4368
4369 * Makefile.in (SFILES): Remove common/target-common.c and
4370 add target/waitstatus.c.
4371 (HFILES_NO_SRCDIR): Remove common/target-common.h and add
4372 target/resume.h, target/wait.h and target/waitstatus.h.
4373 (COMMON_OBS): Remove target-common.o and add
4374 waitstatus.o.
4375 (target-common.o): Remove.
4376 (waitstatus.o): New target object file.
4377 * common/target-common.c: Move contents to
4378 target/waitstatus.c and remove.
4379 * common/target-common.h: Move contents to other files and
4380 remove.
4381 (enum resume_kind: Move to target/resume.h.
4382 (TARGET_WNOHANG): Move to target/wait.h.
4383 (enum target_waitkind): Move to target/waitstatus.h.
4384 (struct target_waitstatus): Likewise.
4385 * target.h: Do not include target-common.h and
4386 include target/resume.h, target/wait.h and
4387 target/waitstatus.h.
4388 * target/resume.h: New file.
4389 * target/wait.h: New file.
4390 * target/waitstatus.h: New file.
4391 * target/waitstatus.c: New file.
4392
4393 2013-08-19 Pedro Alves <palves@redhat.com>
4394
4395 * linux-nat.c (linux_test_for_tracefork)
4396 (linux_test_for_tracesysgood, linux_child_follow_fork)
4397 (lin_lwp_attach_lwp, linux_nat_resume): Don't block child signals.
4398 (linux_nat_wait_1): Extend comment.
4399 (linux_async_pipe): Add comment.
4400
4401 2013-08-15 Kevin Buettner <kevinb@redhat.com>
4402
4403 * rl78-tdep.c (RL78_RAW_PC_REGNUM): New enum.
4404 (RL78_PC_REGNUM): Move to list of pseudo-register enums.
4405 (rl78_register_type, rl78_register_name, rl78_register_reggroup_p):
4406 Update to account for fact that PC is now a pseudo-register.
4407 (rl78_pseudo_register_write, rl78_pseudo_register_read): Add
4408 cases for RL78_PC_REGNUM.
4409
4410 2013-08-15 Muhammad Bilal <mbilal@codesourcery.com>
4411
4412 PR cli/15841
4413 * top.c (quit_force): Skip writing history file
4414 if input is not from terminal.
4415
4416 2013-08-14 Tom Tromey <tromey@redhat.com>
4417
4418 * remote.c (struct remote_state) <echo_nextthread, nextthread,
4419 resultthreadlist>: New fields.
4420 (OPAQUETHREADBYTES, threadref, MAXTHREADLISTRESULTS): Move earlier.
4421 (remote_get_threadlist, remote_threadlist_iterator): Use
4422 new fields. Remove static variables.
4423
4424 2013-08-14 Tom Tromey <tromey@redhat.com>
4425
4426 * remote.c (struct remote_state) <remote_stopped_by_watchpoint_p,
4427 remote_watch_data_address>: New fields.
4428 (remote_stopped_by_watchpoint_p, remote_watch_data_address): Remove.
4429 (process_stop_reply, remote_wait_as)
4430 (remote_check_watch_resources, remote_stopped_data_address): Update.
4431
4432 2013-08-14 Tom Tromey <tromey@redhat.com>
4433
4434 * remote.c (struct remote_state) <async_client_callback,
4435 async_client_context>: New fields.
4436 (async_client_callback, async_client_context): Remove.
4437 (remote_async_serial_handler, remote_async): Update.
4438
4439 2013-08-14 Tom Tromey <tromey@redhat.com>
4440
4441 * remote.c (sizeof_pkt): Remove.
4442 (remote_trace_find): Use rs->buf_size, not sizeof_pkt.
4443
4444 2013-08-14 Tom Tromey <tromey@redhat.com>
4445
4446 * remote.c (struct remote_state) <use_threadinfo_query,
4447 use_threadextra_query>: New fields.
4448 (remote_threads_info, remote_threads_extra_info)
4449 (remote_open_1): Update.
4450
4451 2013-08-14 Tom Tromey <tromey@redhat.com>
4452
4453 * remote.c (struct remote_state) <finished_object,
4454 finished_annex, finished_offset>: New fields.
4455 (remote_read_qxfer): Use remote_state fields; remove static
4456 variables.
4457
4458 2013-08-14 Tom Tromey <tromey@redhat.com>
4459
4460 * remote.c (struct remote_state) <last_sent_step>:
4461 New field.
4462 (last_sent_step): Remove.
4463 (remote_resume, remote_wait_as): Update.
4464
4465 2013-08-14 Tom Tromey <tromey@redhat.com>
4466
4467 * remote.c (struct remote_state) <last_sent_signal>:
4468 New field.
4469 (last_sent_signal): Remove.
4470 (new_remote_state, remote_resume, remote_wait_as): Update.
4471
4472 2013-08-14 Tom Tromey <tromey@redhat.com>
4473
4474 * remote.c (struct remote_state) <last_program_signals_packet>:
4475 New field.
4476 (last_program_signals_packet): Remove.
4477 (remote_program_signals, remote_open_1): Update.
4478
4479 2013-08-14 Tom Tromey <tromey@redhat.com>
4480
4481 * remote.c (struct remote_state) <last_pass_packet>:
4482 New field.
4483 (last_pass_packet): Remove.
4484 (remote_pass_signals, remote_open_1): Update.
4485
4486 2013-08-14 Tom Tromey <tromey@redhat.com>
4487
4488 * remote.c (struct remote_state) <remote_traceframe_number>:
4489 New field.
4490 (remote_traceframe_number): Remove.
4491 (new_remote_state, remote_open_1, set_remote_traceframe)
4492 (remote_trace_find): Update.
4493
4494 2013-08-14 Tom Tromey <tromey@redhat.com>
4495
4496 * remote.c (struct remote_state) <general_thread, continue_thread>:
4497 New fields.
4498 (general_thread, continue_thread): Remove.
4499 (record_currthread, set_thread, set_general_process)
4500 (remote_open_1, extended_remote_attach_1, remote_wait_as)
4501 (extended_remote_mourn_1): Update.
4502
4503 2013-08-14 Tom Tromey <tromey@redhat.com>
4504
4505 * remote.c (struct remote_state) <remote_desc>: New field.
4506 (remote_desc): Remove.
4507 (remote_threads_info, remote_threads_extra_info, remote_close)
4508 (send_interrupt_sequence, remote_start_remote, remote_open_1)
4509 (readchar, remote_xfer_partial, remote_rcmd, packet_command)
4510 (remote_hostio_send_command, remote_file_put, remote_file_get)
4511 (remote_file_delete, remote_can_async_p, remote_is_async_p)
4512 (remote_async, remote_new_objfile, set_range_stepping): Update.
4513
4514 2013-08-14 Tom Tromey <tromey@redhat.com>
4515
4516 * remote.c (remote_state): Now a pointer.
4517 (get_remote_state_raw): Update.
4518 (new_remote_state): New function.
4519 (_initialize_remote): Use new_remote_state.
4520
4521 2013-08-14 Tom Tromey <tromey@redhat.com>
4522
4523 * remote.c (remote_protocol_features): Now const.
4524
4525 2013-08-14 Tom Tromey <tromey@redhat.com>
4526
4527 * remote.c (crc32_table, crc32): Remove.
4528 (remote_verify_memory): Use xcrc32.
4529
4530 2013-08-13 Sergio Durigan Junior <sergiodj@redhat.com>
4531
4532 * value.h (create_internalvar_type_lazy): Adjust prototype
4533 declaration.
4534
4535 2013-08-13 Andrew Burgess <aburgess@broadcom.com>
4536
4537 * common/format.c (parse_format_string): Don't allow '#' flag for
4538 pointer arguments in format string.
4539
4540 2013-08-13 Pierre Muller <muller@sourceware.org>
4541
4542 * utils.c (init_page_info): Only call tgetnum function
4543 if rl_get_screen_size did not return useful values.
4544
4545 2013-08-12 Ali Anwar <ali_anwar@codesourcery.com>
4546
4547 PR breakpoints/15117
4548 * linespec.c (linespec_parse_basic): Check for convenience
4549 variable or history value while parsing.
4550
4551 2013-08-12 Sergio Durigan Junior <sergiodj@redhat.com>
4552
4553 Revert implementation of gdbarch_gdb_signal_{to,from}_target for
4554 AVR.
4555 * avr-tdep.c: Remove include of "linux-tdep.h". Remove enum with
4556 different signals between the generic Linux kernel implementation
4557 and AVR's.
4558 (avr_linux_gdb_signal_from_target): Delete.
4559 (avr_linux_gdb_signal_to_target): Delete.
4560 (avr_gdbarch_init): Don't set gdbarch_gdb_signal_{to,from}_target.
4561
4562 2013-08-09 Doug Evans <dje@google.com>
4563
4564 * dwarf2read.c (create_addrmap_from_index): Ignore bad address table
4565 entries.
4566
4567 2013-08-09 Sergio Durigan Junior <sergiodj@redhat.com>
4568
4569 * linux-tdep.c: Define enum with generic signal numbers.
4570 (linux_gdb_signal_from_target): New function.
4571 (linux_gdb_signal_to_target): Likewise.
4572 (linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
4573 methods to the functions above.
4574 * linux-tdep.h (linux_gdb_signal_from_target): New prototype.
4575 (linux_gdb_signal_to_target): Likewise.
4576 * alpha-linux-tdep.c: Define new enum with signals different
4577 from generic Linux kernel.
4578 (alpha_linux_gdb_signal_from_target): New function.
4579 (alpha_linux_gdb_signal_to_target): Likewise.
4580 (alpha_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
4581 with the functions mentioned above.
4582 * avr-tdep.c: Define enum with differences between Linux kernel
4583 and AVR signals.
4584 (avr_linux_gdb_signal_from_target): New function.
4585 (avr_linux_gdb_signal_to_target): Likewise.
4586 (avr_gdbarch_init): Set gdbarch_gdb_signal_{to,from}_target to
4587 the functions mentioned above.
4588 * sparc-linux-tdep.c: Define enum with differences between SPARC
4589 and generic Linux kernel signal numbers.
4590 (sparc32_linux_gdb_signal_from_target): New function.
4591 (sparc32_linux_gdb_signal_to_target): Likewise.
4592 (sparc32_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
4593 to the functions defined above.
4594 * xtensa-linux-tdep.c: Define enum with differences between
4595 Xtensa and Linux kernel generic signals.
4596 (xtensa_linux_gdb_signal_from_target): New function.
4597 (xtensa_linux_gdb_signal_to_target): Likewise.
4598 (xtensa_linux_init_abi): Set gdbarch_gdb_signal_to_target
4599 to the functions defined above.
4600 * mips-linux-tdep.c: Define enum with differences between
4601 signals in MIPS and Linux kernel generic ones.
4602 (mips_gdb_signal_to_target): New function.
4603 (mips_gdb_signal_from_target): Redefine to use new enum, handle
4604 only different signals from the Linux kernel generic.
4605 (mips_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
4606 the functions defined above.
4607 * mips-linux-tdep.h (enum mips_signals): Remove.
4608
4609 2013-08-09 Pedro Alves <palves@redhat.com>
4610
4611 * avr-tdep.c (XMALLOC): Delete macro.
4612 * cli/cli-dump.c (XMALLOC): Delete macro.
4613
4614 2013-08-09 Pedro Alves <palves@redhat.com>
4615
4616 * cli/cli-dump.c: Don't include cli/cli-dump.h.
4617 (scan_expression_with_cleanup, scan_filename_with_cleanup)
4618 (fopen_with_cleanup, add_dump_command): Make static.
4619 * cli/cli-dump.h: Delete file.
4620 * Makefile.in (HFILES_NO_SRCDIR): Remove reference to
4621 cli/cli-dump.h.
4622
4623 2013-08-09 Pedro Alves <palves@redhat.com>
4624
4625 * tracepoint.c (tfile_start): Show tilde-expanded filename in
4626 error message.
4627
4628 2013-08-09 Pedro Alves <palves@redhat.com>
4629
4630 * breakpoint.c (save_breakpoints): Show tilde-expanded filename in
4631 error message.
4632
4633 2013-08-09 Pedro Alves <palves@redhat.com>
4634
4635 * gcore.c (create_gcore_bfd): Don't use tilde_expand here.
4636 (gcore_command): Use tilde_expand here, and when showing the
4637 filename to the user, show the expanded version.
4638
4639 2013-08-09 Yao Qi <yao@codesourcery.com>
4640
4641 * stack.c (read_frame_arg): Set 'entryval_error' to NULL if
4642 'entryval' is set.
4643
4644 2013-08-08 Azat Khuzhin <a3at.mail@gmail.com> (tiny change)
4645
4646 * gcore.c (create_gcore_bfd): Use tilde_expand.
4647
4648 2013-08-08 Yao Qi <yao@codesourcery.com>
4649
4650 * frame.h (read_frame_local): Declare.
4651 * mi/mi-cmd-stack.c (list_args_or_locals): Call
4652 read_frame_local.
4653 * stack.c (read_frame_local): New.
4654
4655 2013-08-08 Yao Qi <yao@codesourcery.com>
4656
4657 * mi/mi-cmd-stack.c: Update comments to function
4658 list_args_or_locals.
4659
4660 2013-08-07 Tom Tromey <tromey@redhat.com>
4661
4662 PR symtab/15028:
4663 * dwarf2read.c (struct process_psymtab_comp_unit_data): New.
4664 (process_psymtab_comp_unit_reader): Use it.
4665 (process_psymtab_comp_unit): Update. Add "pretend_language"
4666 argument.
4667 (dwarf2_build_psymtabs_hard): Update.
4668 (scan_partial_symbols): Pass CU's language to
4669 process_psymtab_comp_unit.
4670
4671 2013-08-07 Tom Tromey <tromey@redhat.com>
4672
4673 * dwarf2read.c (dw2_get_primary_filename_reader): Remove.
4674 (dwarf2_gdb_index_functions): Update.
4675 * psymtab.c (find_symbol_file_from_partial): Remove.
4676 (psym_functions): Update.
4677 * symfile.h (struct quick_symbol_functions) <find_symbol_file>:
4678 Remove.
4679
4680 2013-08-07 Tom Tromey <tromey@redhat.com>
4681
4682 * symfile.c (set_initial_language): Look up "main" symbol
4683 and use its language.
4684 * symtab.c (find_main_filename): Remove.
4685 * symtab.h (find_main_filename): Remove.
4686
4687 2013-08-07 Tom Tromey <tromey@redhat.com>
4688
4689 * dwarf2read.c (recursively_compute_inclusions): Add
4690 "immediate_parent" argument. Set symtab's "user" field
4691 if not set.
4692 (compute_symtab_includes): Update.
4693
4694 2013-08-07 Tom Tromey <tromey@redhat.com>
4695
4696 * linespec.c (convert_linespec_to_sals): Use maybe_add_address
4697 when adding label symbols.
4698
4699 2013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
4700 Ulrich Weigand <uweigand@de.ibm.com>
4701
4702 * configure.tgt (powerpc64-*-aix*): Match powerpc64 running aix.
4703 * configure.host (powerpc64-*-aix*): Likewise.
4704
4705 2013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
4706 Ulrich Weigand <uweigand@de.ibm.com>
4707
4708 * gdb_ptrace.h: Use ptrace64 instead of ptrace if HAVE_PTRACE64
4709 is defined.
4710 * rs6000-nat.c: Check for __ld_info64_ if compiling 64 BIT gdb.
4711 (rs6000_ptrace32): Call ptrace64 instead of ptrace if present.
4712 (rs6000_ptrace64): Call ptace64 instead of ptracex if present.
4713 * configure.ac: Check for ptrace64.
4714 * configure, config.in: Regenerate.
4715
4716 2013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
4717 Ulrich Weigand <uweigand@de.ibm.com>
4718
4719 * aixthread.c: Call ptrace64 instead of ptracex if defined.
4720 Call ptrace64 instead of ptrace if defined.
4721 Add macro addr_ptr to take care of ptrace address argument.
4722 (pdc_read_regs): Likewise.
4723 (pdc_write_regs): Likewise.
4724 (aix_thread_resume): Likewise.
4725 (fetch_regs_kernel_thread): Likewise.
4726 (store_regs_kernel_thread): Likewise.
4727
4728 2013-08-07 Anton Blanchard <anton@samba.org>
4729
4730 * MAINTAINERS: Add myself to Write After Approval.
4731
4732 2013-08-05 Tom Tromey <tromey@redhat.com>
4733
4734 * aix-thread.c (_initialize_aix_thread): Use
4735 complete_target_initialization.
4736 * bsd-uthread.c (_initialize_bsd_uthread): Use
4737 complete_target_initialization.
4738 * dec-thread.c (_initialize_dec_thread): Use
4739 complete_target_initialization.
4740 * ravenscar-thread.c (_initialize_ravenscar): Use
4741 complete_target_initialization.
4742 * sol-thread.c (_initialize_sol_thread): Use
4743 complete_target_initialization.
4744 * spu-multiarch.c (_initialize_spu_multiarch): Use
4745 complete_target_initialization.
4746
4747 2013-08-05 Tom Tromey <tromey@redhat.com>
4748
4749 * ada-exp.y (write_var_or_type): Use bound_minimal_symbol.
4750 * ada-lang.c (ada_lookup_simple_minsym): Return
4751 bound_minimal_symbol.
4752 * ada-lang.h (ada_lookup_simple_minsym): Update.
4753 * c-exp.y (variable): Use lookup_bound_minimal_symbol.
4754 * f-exp.y (variable): Use lookup_bound_minimal_symbol.
4755 * go-exp.y (variable): Use lookup_bound_minimal_symbol.
4756 * jv-exp.y (push_expression_name): Use lookup_bound_minimal_symbol.
4757 * m2-exp.y (variable): Use lookup_bound_minimal_symbol.
4758 * minsyms.c (msymbol_objfile): Remove.
4759 (lookup_minimal_symbol_internal): New function, from
4760 lookup_minimal_symbol.
4761 (lookup_minimal_symbol): Rewrite using
4762 lookup_minimal_symbol_internal.
4763 (lookup_bound_minimal_symbol): New function.
4764 * minsyms.h (msymbol_objfile): Remove.
4765 (lookup_bound_minimal_symbol): Declare.
4766 * p-exp.y (variable): Use lookup_bound_minimal_symbol.
4767 * parse.c (write_exp_msymbol): Change parameter to a
4768 bound_minimal_symbol.
4769 (write_dollar_variable): Use lookup_bound_minimal_symbol.
4770 * parser-defs.h (write_exp_msymbol): Update.
4771 * printcmd.c (address_info): Use lookup_bound_minimal_symbol.
4772 * symfile.c (simple_read_overlay_table): Use
4773 lookup_bound_minimal_symbol.
4774 * symtab.c (skip_prologue_sal): Don't use msymbol_objfile.
4775 (search_symbols): Likewise.
4776 (print_msymbol_info): Take a bound_minimal_symbol argument.
4777 (symtab_symbol_info, rbreak_command): Update.
4778 * symtab.h (struct symbol_search) <msymbol>: Change type
4779 to bound_minimal_symbol.
4780 * valops.c (find_function_in_inferior): Use
4781 lookup_bound_minimal_symbol.
4782 * value.c (value_fn_field): Use lookup_bound_minimal_symbol.
4783
4784 2013-08-05 Jan Kratochvil <jan.kratochvil@redhat.com>
4785
4786 Code cleanup.
4787 * remote.c (cleanup_sigint_signal_handler): Rename the declaration
4788 to ...
4789 (async_cleanup_sigint_signal_handler): ... this.
4790 (initialize_sigint_signal_handler): Remove declaration.
4791 (handle_remote_sigint): Rename the declaration to ...
4792 (async_handle_remote_sigint): ... this.
4793 (handle_remote_sigint_twice): Rename the declaration to ...
4794 (async_handle_remote_sigint_twice): ... this.
4795 (async_remote_interrupt, async_remote_interrupt_twice)
4796 (remote_interrupt): Remove the declarations.
4797 (remote_interrupt_twice): Rename the declaration ...
4798 (sync_remote_interrupt_twice): ... this.
4799 (sigint_remote_twice_token): Rename the variable to ...
4800 (async_sigint_remote_twice_token): ... this.
4801 (sigint_remote_token): Rename the variable to ...
4802 (async_sigint_remote_token): ... this.
4803 (initialize_sigint_signal_handler): Rename the function to ...
4804 (async_initialize_sigint_signal_handler): ... this. Update the name
4805 inside.
4806 (handle_remote_sigint): Rename the function to ...
4807 (async_handle_remote_sigint): ... this. Update the names inside.
4808 (handle_remote_sigint_twice): Rename the function to ...
4809 (async_handle_remote_sigint_twice): ... this. Update the names inside.
4810 (cleanup_sigint_signal_handler): Rename the function to ...
4811 (async_cleanup_sigint_signal_handler): ... this.
4812 (remote_interrupt): Rename the function to ...
4813 (sync_remote_interrupt): this. Update the names inside.
4814 (remote_interrupt_twice): Rename the function to ...
4815 (sync_remote_interrupt_twice): this. Update the names inside.
4816 (remote_terminal_inferior, remote_terminal_ours, remote_wait_as)
4817 (_initialize_remote): Update the names inside.
4818
4819 2013-08-02 Tom Tromey <tromey@redhat.com>
4820
4821 PR symtab/15719:
4822 * breakpoint.c (update_watchpoint, watchpoint_check)
4823 (watch_command_1): Update.
4824 * eval.c (fetch_subexp_value): Add "preserve_errors"
4825 parameter.
4826 * ppc-linux-nat.c (check_condition): Update.
4827 * value.h (fetch_subexp_value): Update.
4828
4829 2013-08-02 Andrew Burgess <aburgess@broadcom.com>
4830
4831 * mi/mi-interp.c (mi_interpreter_resume): Remove call to
4832 add_file_handler.
4833
4834 2013-08-01 Doug Evans <dje@google.com>
4835
4836 PR symtab/15691
4837 * dwarf2read.c (struct dwarf2_per_cu_data): New member tu_read.
4838 (fill_in_sig_entry_from_dwo_entry): Reorganize asserts.
4839 Add assert of sig_entry->dwo_unit == NULL.
4840 (lookup_dwo_signatured_type): Don't assign TU to a DWO if the TU
4841 had already been read.
4842 (read_signatured_type): Set per_cu.tu_read.
4843
4844 PR symtab/15695
4845 * valops.c (value_struct_elt): Add missing call to check_typedef.
4846 (value_find_oload_method_list): Ditto.
4847
4848 * symtab.c (do_free_search_symbols_cleanup): Change arg to,
4849 effectively, struct symbol_search **.
4850 (make_cleanup_free_search_symbols): Change arg to struct
4851 symbol_search **. All callers updated.
4852 (compare_search_syms): Compare symtab file name and block as well.
4853 (search_symbols_equal): New function.
4854 (sort_search_symbols_remove_dups): Renamed from sort_search_symbols.
4855 New args new_head, new_tail. Result is now void. Remove dups after
4856 sorting the symbols.
4857 (search_symbols): Sort all found symbols once, after all have been
4858 found, and remove duplicates. Simplify cleanup tracking of result.
4859 * symtab.h (make_cleanup_free_search_symbols): Update prototype.
4860
4861 Further workarounds for binutils/15021.
4862 * dwarf2read.c (recursively_compute_inclusions): Change type of result
4863 parameter to VEC (symtab_ptr) **. New parameter all_type_symtabs.
4864 Watch for duplicate symtabs coming from type units.
4865 (compute_symtab_includes): Update call to
4866 recursively_compute_inclusions. Build vector of included symtabs
4867 instead of per_cus.
4868 * symtab.h (symtab_ptr): New typedef.
4869 (DEF_VEC_P (symtab_ptr)): New VEC type.
4870 * linespec.c (symtab_p): Delete. All uses updated to use symtab_ptr
4871 instead.
4872
4873 2013-08-01 Andrew Burgess <aburgess@broadcom.com>
4874
4875 * cli/cli-script.c (script_from_file): Remove use of
4876 error_pre_print.
4877 * main.c (captured_main): Remove use of error_pre_print and
4878 quit_pre_print.
4879 * utils.c (error_pre_print, quit_pre_print): Remove.
4880 * utils.h (error_pre_print, quit_pre_print): Likewise.
4881
4882 2013-08-01 Yao Qi <yao@codesourcery.com>
4883
4884 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Parse argv
4885 with mi_getopt.
4886 (mi_cmd_stack_list_variables): Likewise.
4887
4888 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
4889
4890 * exceptions.c (deprecated_throw_reason): Remove.
4891 * exceptions.h (deprecated_throw_reason): Remove.
4892
4893 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
4894
4895 * remote-mips.c (mips_error): Replace use of
4896 deprecated_throw_reason with throw_verror. Use the error message
4897 passed to mips_error as the error message for throw_verror.
4898
4899 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
4900
4901 * monitor.c (monitor_interrupt_query): Replace use of
4902 deprecated_throw_reason with quit.
4903 * nto-procfs.c (interrupt_query): Likewise.
4904 * remote-fileio.c (remote_fileio_sig_exit): Likewise.
4905 * remote-mips.c (mips_kill): Likewise.
4906 * remote.c (interrupt_query): Likewise.
4907
4908 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
4909
4910 * utils.c (internal_verror): Replace use of deprecated_throw_reason
4911 with call to fatal.
4912
4913 2013-07-31 Pedro Alves <pedro@codesourcery.com>
4914 Yao Qi <yao@codesourcery.com>
4915
4916 * tracepoint.c (trace_dump_command): Select the current frame.
4917
4918 2013-07-30 Doug Evans <dje@google.com>
4919
4920 * dwarf2read.c (process_queue): Add type signature to debug output.
4921
4922 2013-07-30 Andrew Burgess <aburgess@broadcom.com>
4923
4924 * value.c (value_fetch_lazy): Mark optimized out values as such
4925 rather than raising an error.
4926
4927 2013-07-30 Andrew Burgess <aburgess@broadcom.com>
4928
4929 * value.c (value_fetch_lazy): Ensure parent value is not lazy
4930 before checking which bits of the parent, not the child, value are
4931 valid.
4932
4933 2013-07-30 Muhammad Bilal <mbilal@codesorcery.com>
4934
4935 PR gdb/15715
4936 * top.c: Include "filenames.h".
4937 (set_history_filename): New function.
4938 (init_main): Install it as set hook of the "set history filename"
4939 command.
4940
4941 2013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
4942
4943 * dwarf2read.c (dwarf2_get_ref_die_offset): Constify struct
4944 attribute parameter.
4945 (dwarf2_const_value_data): Constify struct attribute parameter.
4946 (dwarf2_const_value): Constify struct attribute parameter.
4947 (dwarf2_const_value_attr): Constify struct attribute parameter.
4948 (lookup_die_type): Constify struct attribute parameter.
4949 (dwarf2_get_attr_constant_value): Constify struct attribute parameter.
4950 (follow_die_ref_or_sig): Constify struct attribute parameter.
4951 (follow_die_ref): Constify struct attribute parameter.
4952 (follow_die_sig): Constify struct attribute parameter.
4953 (get_DW_AT_signature_type): Constify struct attribute parameter.
4954 (get_type_unit_group): Constify struct attribute parameter.
4955 (fill_in_loclist_baton): Constify struct attribute parameter.
4956 (dwarf2_symbol_mark_computed): Constify struct attribute parameter.
4957 (type_unit_group): Constify struct attribute parameter.
4958
4959 2013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
4960
4961 * dwarf2read.c (attr_form_is_block): Make argument const.
4962 (attr_form_is_section_offset): Make argument const.
4963 (attr_form_is_constant): Make argument const.
4964 (attr_form_is_ref): Make argument const.
4965
4966 2013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
4967
4968 * dwarf2read.c (attr_is_ref): Rename to attr_form_is_ref.
4969 All uses updated.
4970 (attr_form_is_ref): Moved below attr_form_is_constant.
4971
4972 2013-07-29 Doug Evans <dje@google.com>
4973
4974 * main.c (captured_command_loop): Tweak comment.
4975
4976 * target.c (target_async_permitted_1): Fix comment.
4977
4978 * symtab.c (iterate_over_some_symtabs): Add comment.
4979
4980 * symtab.c (iterate_over_some_symtabs): Fix indentation.
4981
4982 2013-07-27 Yao Qi <yao@codesourcery.com>
4983
4984 * NEWS: Mention that GDBserver now supports hardware
4985 watchpoints on the MIPS GNU/Linux target.
4986
4987 2013-07-27 Yao Qi <yao@codesourcery.com>
4988
4989 * Makefile.in (HFILES_NO_SRCDIR): Add
4990 common/mips-linux-watch.h.
4991 (mips-linux-watch.o): New rule.
4992 * common/mips-linux-watch.c: New.
4993 * common/mips-linux-watch.h: New.
4994 * config/mips/linux.mh (NATDEPFILES): Add mips-linux-watch.o
4995 * mips-linux-nat.c: Include mips-linux-watch.h.
4996 (W_BIT, R_BIT, I_BIT, W_MASK, R_MASK, I_MASK, IRW_MASK): Move
4997 to common/mips-linux-watch.h.
4998 (MAX_DEBUG_REGISTER): Likewise.
4999 (enum pt_watch_style): Likewise.
5000 (struct mips32_watch_regs): Likewise.
5001 (struct mips64_watch_regs): Likewise.
5002 (struct pt_watch_regs): Likewise.
5003 (struct mips_watchpoint): Likewise.
5004 (mips_linux_watch_get_irw_mask): Move to
5005 common/mips-linux-watch.c.
5006 (get_reg_mask, mips_linux_watch_get_num_valid): Likewise.
5007 (mips_linux_watch_get_watchlo): Likewise.
5008 (mips_linux_watch_set_watchlo): Likewise.
5009 (mips_linux_watch_get_watchhi): Likewise.
5010 (mips_linux_watch_set_watchhi): Likewise.
5011 (mips_linux_read_watch_registers): Likewise.
5012 (mips_linux_watch_type_to_irw): Likewise.
5013 (mips_linux_stopped_data_address, fill_mask): Likewise.
5014 (mips_linux_watch_try_one_watch): Likewise.
5015 (mips_linux_watch_populate_regs): Likewise.
5016
5017 2013-07-27 Yao Qi <yao@codesourcery.com>
5018
5019 * mips-linux-nat.c (get_irw_mask): Rename to ...
5020 (mips_linux_watch_get_irw_mask): ... this. Rename parameter
5021 'set' to 'n'. Update function comment. All callers changed.
5022 (get_reg_mask): Rename parameter 'set' to 'n'. Update
5023 function comment. All callers changed.
5024 (get_num_valid): Rename to ...
5025 (mips_linux_watch_get_num_valid): ... this. Rename parameter
5026 'set' to 'n'. Update function comment. All callers changed.
5027 (get_watchlo): Rename to ...
5028 (mips_linux_watch_get_watchlo): ... this. Rename parameter
5029 'set' to 'n'. Update function comment. All callers changed.
5030 (set_watchlo): Rename to ...
5031 (mips_linux_watch_set_watchlo): ... this. Rename parameter
5032 'set' to 'n'. Update function comment. All callers changed.
5033 (get_watchhi): Rename to ...
5034 (mips_linux_watch_get_watchhi): ... this. Update function
5035 comment. All callers changed.
5036 (set_watchhi): Rename to ...
5037 (mips_linux_watch_set_watchhi): ... this. Update function
5038 comment. All callers changed.
5039 (mips_linux_read_watch_registers): Update function comment.
5040 Add new parameters 'lwpid', 'watch_readback', and
5041 'watch_readback_valid'. Update.
5042 (type_to_irw): Rename to ...
5043 (mips_linux_watch_type_to_irw): ... this. Update function
5044 comment. All callers changed.
5045 (fill_mask): Update function comment.
5046 (try_one_watch): Rename to ...
5047 (mips_linux_watch_try_one_watch): ... this. Change the type
5048 of parameter 'irw' from 'unsigned' to 'uint32_t'.
5049 (populate_regs_from_watches): Rename to ...
5050 (mips_linux_watch_populate_regs): ... this. Add parameter
5051 'current_watches'. All callers changed.
5052
5053 2013-07-27 Yao Qi <yao@codesourcery.com>
5054
5055 * mips-linux-nat.c (MAX_DEBUG_REGISTER): Move it earlier in
5056 the code.
5057 (PTRACE_SET_WATCH_REGS, enum pt_watch_style): Remove.
5058 (struct mips32_watch_regs, struct mips64_watch_regs): Remove.
5059 (struct pt_watch_regs): Likewise.
5060 [!PTRACE_GET_WATCH_REGS] (PTRACE_SET_WATCH_REGS): New macro.
5061 [!PTRACE_GET_WATCH_REGS] (enum pt_watch_style): New.
5062 [!PTRACE_GET_WATCH_REGS] (struct mips32_watch_regs): New.
5063 [!PTRACE_GET_WATCH_REGS] (struct mips64_watch_regs): New.
5064 [!PTRACE_GET_WATCH_REGS] (struct pt_watch_regs): New.
5065
5066 2013-07-27 Yao Qi <yao@codesourcery.com>
5067
5068 * breakpoint.h: Include break-common.h.
5069 (enum target_hw_bp_type): Move to ...
5070 * common/break-common.h: ... here. New.
5071
5072 2013-07-26 Cyril Nikolaev <cyril@nichtverstehen.de>
5073
5074 * inflow.c (terminal_init_inferior_with_pgrp): Save inferior
5075 process group regardless of having tty on stdin.
5076
5077 2013-07-25 Doug Evans <dje@google.com>
5078
5079 * linux-fork.h (detach_fork): Delete.
5080
5081 2013-07-25 Tom Tromey <tromey@redhat.com>
5082
5083 PR remote/15256, PR remote/15266:
5084 * bfd-target.c (target_bfd_reopen): Initialize to_magic.
5085 * monitor.c (monitor_detach): Use unpush_target.
5086 * remote-m32r-sdi.c (m32r_detach): Use unpush_target.
5087 * remote-mips.c (mips_detach): Use unpush_target. Don't
5088 call mips_close.
5089 * remote-sim.c (gdbsim_detach): Use unpush_target.
5090 * target.c (pop_target): Remove.
5091 (pop_all_targets_above): Don't call target_close.
5092 (target_close): Assert that the target is unpushed.
5093 * target.h (pop_target): Don't declare.
5094 * tracepoint.c (tfile_open): Use unpush_target.
5095
5096 2013-07-25 Tom Tromey <tromey@redhat.com>
5097
5098 * linux-thread-db.c (init_thread_db_ops): Call
5099 complete_target_initialization.
5100 (_initialize_thread_db): Don't call add_target.
5101 * target.c (complete_target_initialization): New function.
5102 (add_target_with_completer): Call it.
5103 * target.h (complete_target_initialization): Declare.
5104
5105 2013-07-25 Mark Kettenis <kettenis@gnu.org>
5106
5107 * hppa-tdep.h (enum hppa_regnum): Add members for all space registers.
5108 * hppaobsd-tdep.c (HPPAOBSD_SIZEOF_GREGS): Add comment.
5109 (HPPANBSD_SIZEOF_GREGS): New define.
5110 (hppaobsd_supply_gregset): Handle additional registers.
5111 * hppabsd-nat.c (hppabsd_gregset_supplies_p): Adjust to indicate
5112 we provide more registers now.
5113 (hppabsd_supply_gregset): Supply additional registers.
5114 (hppabsd_collect_gregset): Collect additional registers.
5115
5116 2013-07-25 Mark Kettenis <kettenis@gnu.org>
5117
5118 * hppabsd-tdep.c: Include "dwarf2-frame.h".
5119 (hppabsd_dwarf2_frame_init_reg): New function.
5120 (hppabsd_init_abi): Hook in the DWARF CFI frame unwinder.
5121
5122 2013-07-25 Andrew Burgess <aburgess@broadcom.com>
5123
5124 * mi/mi-main.c (output_register): Make MI 'r' format use standard
5125 'z' format code. Remove error for optimized out values, standard
5126 code will handle these fine.
5127
5128 2013-07-25 Andrew Burgess <aburgess@broadcom.com>
5129
5130 * NEWS: Mention new 'z' formatter.
5131 * printcmd.c (print_scalar_formatted): Add new 'z' formatter.
5132 (_initialize_printcmd): Mention 'z' formatter in help text of the
5133 'x' command.
5134
5135 2013-07-24 Maciej W. Rozycki <macro@codesourcery.com>
5136
5137 * mips-tdep.c (micromips_deal_with_atomic_sequence): Correct
5138 formatting.
5139
5140 2013-07-24 Sergio Durigan Junior <sergiodj@redhat.com>
5141
5142 * breakpoint.c (create_longjmp_master_breakpoint): Check if probe
5143 interface can evaluate arguments. Fallback to the old mode if it
5144 cannot.
5145 (create_exception_master_breakpoint): Likewise.
5146 * elfread.c (elf_can_evaluate_probe_arguments): New function.
5147 (struct sym_probe_fns elf_probe_fns): Export function above to the
5148 probe interface.
5149 * probe.c (can_evaluate_probe_arguments): New function.
5150 * probe.h (struct probe_ops) <can_evaluate_probe_arguments>: New
5151 function pointer.
5152 (can_evaluate_probe_arguments): New function prototype.
5153 * solib-svr4.c (svr4_create_solib_event_breakpoints): Check if
5154 probe interface can evaluate arguments. Fallback to the old mode
5155 if it cannot.
5156 * stap-probe.c (stap_get_probe_argument_count): Check if probe
5157 interface can evaluate arguments. Warning the user if it cannot.
5158 (stap_can_evaluate_probe_arguments): New function.
5159 (struct probe_ops stap_probe_ops): Export function above to the
5160 probe interface.
5161 * symfile.h (struct sym_probe_fns) <can_evaluate_probe_arguments>:
5162 New function pointer.
5163
5164 2013-07-24 Luis Machado <lgustavo@codesourcery.com>
5165
5166 * Makefile.in (SFILES): Add common/target-common.c.
5167 Add common/target-common.h to headers.
5168 (COMMON_OBS): Add target-common.o.
5169 (target-common.o): New target.
5170 * linux-nat.h (resume_kind): Move to common/target-common.h.
5171 * target.c (target_waitstatus_to_string): Move to
5172 common/target-common.c.
5173 * target.h: Include target-common.h.
5174 (target_waitkind): Move to common/target-common.h.
5175 (target_waitstatus): Likewise.
5176 (TARGET_WNOHANG): Likewise.
5177 * common/target-common.c: New file.
5178 * common/target-common.h: New file.
5179
5180 2013-07-24 Doug Evans <dje@google.com>
5181
5182 * dwarf2read.c (lookup_dwo_cutu): Change missing DWO complaint to
5183 a warning.
5184
5185 2013-07-23 Yao Qi <yao@codesourcery.com>
5186
5187 * i386-tdep.c (i386_in_stack_tramp_p): Remove unused
5188 parameter 'gdbarch'.
5189 (i386_stack_tramp_frame_sniffer): Caller update.
5190 * i386-linux-tdep.c (i386_linux_core_read_xcr0): Remove
5191 parameter 'gdbarch' and 'target'.
5192 (i386_linux_core_read_description): Caller update.
5193 * amd64-linux-tdep.c (amd64_linux_core_read_description):
5194 Likewise.
5195 * i386-linux-tdep.h (i386_linux_core_read_xcr0): Update
5196 declaration.
5197
5198 2013-07-23 Tom Tromey <tromey@redhat.com>
5199
5200 * dwarf2read.c (init_cutu_and_read_dies): Revert patch from
5201 2013-07-22.
5202
5203 2013-07-22 Doug Evans <dje@google.com>
5204
5205 * exec.h (remove_target_sections): Delete arg abfd.
5206 * exec.c (exec_close): Update call to remove_target_sections.
5207 (remove_target_sections): Delete arg abfd.
5208 * solib.c (update_solib_list): Ditto.
5209 (reload_shared_libraries_1): Ditto.
5210 (clear_solib): Ditto, and unconditionally call remove_target_sections.
5211 * target.h (struct target_section): Rename key to owner.
5212 All uses updated.
5213
5214 2013-07-22 Tom Tromey <tromey@redhat.com>
5215
5216 * solib-som.c (som_open_symbol_file_object): Call do_cleanups.
5217
5218 2013-07-22 Tom Tromey <tromey@redhat.com>
5219
5220 * dwarf2read.c (init_cutu_and_read_dies): Remove 'free_cu_cleanup'.
5221 Simplify cleanup handling.
5222
5223 2013-07-22 Tom Tromey <tromey@redhat.com>
5224
5225 * dwarf2read.c (dwarf_decode_line_header): Call do_cleanups
5226 on all return paths.
5227
5228 2013-07-22 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
5229
5230 * ppc-linux-nat.c (PPC_DEBUG_FEATURE_DATA_BP_DAWR): New define.
5231 (ppc_linux_region_ok_for_hw_watchpoint): Add checking to use the new
5232 DAWR interface for longer ranges hardware watchpoint (up to 512 bytes).
5233
5234 2013-07-22 Phil Muldoon <pmuldoon@redhat.com>
5235
5236 * top.c (print_gdb_version): Add help, apropos description and
5237 url to online documentation.
5238
5239 2013-07-19 Hui Zhu <hui@codesourcery.com>
5240
5241 PR gdb/15692
5242 * mi/mi-cmd-break.c (mi_argv_to_format): Handle double quotes.
5243
5244 2013-07-19 Yao Qi <yao@codesourcery.com>
5245
5246 * target.c (update_current_target): Change the default action
5247 of 'to_traceframe_info' from tcomplain to return_zero.
5248 * target.h (struct target_ops) <to_traceframe_info>: Add more
5249 comments.
5250 * valops.c (read_value_memory): Call
5251 traceframe_available_memory unconditionally.
5252
5253 2013-07-18 Yao Qi <yao@codesourcery.com>
5254
5255 * coffread.c (coff_symfile_read): Iterate over minimal symbols,
5256 if the name is prefixed by "__imp_" or "_imp_", look for minimal
5257 symbol without prefix. If found, set its type to
5258 'mst_solib_trampoline'.
5259
5260 2013-07-17 Doug Evans <dje@google.com>
5261
5262 * NEWS: Mention "set print raw frame-arguments".
5263 * gdbcmd.h (setprintrawlist, showprintrawlist): Declare.
5264 * stack.c (print_raw_frame_arguments): New static global.
5265 (print_frame_arg): Set opts.raw from print_raw_frame_arguments.
5266 (_initialize_stack): New command "set/show print raw frame-arguments".
5267 * valprint.c (setprintrawlist, showprintrawlist): New globals.
5268 (set_print_raw, show_print_raw): New functions.
5269 (_initialize_valprint): New prefix command "set/show print raw".
5270 * valprint.h (value_print_options): Improve comments.
5271
5272 * cli/cli-cmds.c (init_cmd_lists): Delete unnecessary initialization
5273 of all *list variables.
5274
5275 * gdbcmd.h (togglelist): Delete.
5276 * cli/cli-cmds.c (togglelist): Delete.
5277 (init_cmd_lists): Update.
5278 * cli/cli-cmds.h (togglelist): Delete.
5279
5280 2013-07-17 Tom Tromey <tromey@redhat.com>
5281
5282 * dwarf2read.c (dwarf2_per_objfile_free): Clear
5283 dwarf2_per_objfile.
5284
5285 2013-07-16 Doug Evans <dje@google.com>
5286
5287 * nto-tdep.c (nto_relocate_section_addresses): Update,
5288 target_section.bfd deleted.
5289 * ppc64-tdep.c (ppc64_convert_from_func_ptr_addr): Ditto.
5290 * s390-tdep.c (s390_load): Ditto.
5291 * solib-aix.c (solib_aix_relocate_section_addresses): Ditto.
5292
5293 2013-07-16 Andrew Burgess <aburgess@broadcom.com>
5294
5295 * common/format.c (parse_format_string): Add checks for NULL
5296 character before calling strchr.
5297
5298 2013-07-16 Doug Evans <dje@google.com>
5299
5300 * solist.h (target_so_ops.find_and_open_solib): Clarify usage of
5301 temp_pathname argument.
5302 * nto-tdep.c (nto_find_and_open_solib): Fix setting of temp_pathname
5303 when opening the file fails.
5304
5305 * target.h (struct target_section): Delete member bfd.
5306 All users updated to use the_bfd_section->owner instead.
5307 * exec.c (add_to_section_table): Assert bfd is expected value.
5308 Remove initialization of target_section.bfd.
5309 (remove_target_sections): Update.
5310 (section_table_available_memory): Update.
5311 (section_table_xfer_memory_partial): Update.
5312 (print_section_info): Update.
5313 (exec_set_section_address): Update.
5314 * record-full.c (record_full_core_xfer_partial): Update.
5315 * solib-svr4.c (svr4_relocate_section_addresses): Update.
5316 * solib-target.c (solib_target_relocate_section_addresses): Update.
5317 * symfile.c (build_section_addr_info_from_section_table): Update.
5318 * target.c (memory_xfer_live_readonly_partial): Update.
5319 (memory_xfer_partial_1): Update.
5320
5321 2013-07-15 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
5322
5323 * ppc-linux-nat.c: Since the new PowerPC specific ptrace interface is
5324 now available for embedded (BookE) and server (BookS) processors,
5325 correct mentions of 'booke' and adjust comments accordingly in order to
5326 avoid confusion. Rename struct 'booke_debug_info' to 'hwdebug_info'.
5327 (have_ptrace_booke_interface): Rename function and variable
5328 'have_ptrace_booke_interface' to 'have_ptrace_hwdebug_interface'.
5329 Rename struct 'booke_debug_info' to 'hwdebug_info'. Update all uses.
5330 (booke_cmp_hw_point): Rename function 'booke_cmp_hw_point' to
5331 'hwdebug_point_cmp'. Update all uses.
5332 (booke_find_thread_points_by_tid): Rename function
5333 'booke_find_thread_points_by_tid' to
5334 'hwdebug_find_thread_points_by_tid'. Update all uses.
5335 (booke_insert_point): Rename function 'booke_insert_point' to
5336 'hwdebug_insert_point'. Update all uses.
5337 (booke_remove_point): Rename function 'booke_remove_point' to
5338 'hwdebug_remove_point'. Update all uses.
5339
5340 2013-07-15 Maciej W. Rozycki <macro@codesourcery.com>
5341
5342 * mips-tdep.c (mips_gdbarch_init): Replace hardcoded magic
5343 numbers with enum values.
5344
5345 2013-07-15 Ali Anwar <ali_anwar@codesourcery.com>
5346
5347 PR threads/13217
5348 * thread.c (thread_apply_all_command): Check for valid threads
5349 and thread count.
5350 (thread_array_cleanup): New struct.
5351 (set_thread_refcount): New function.
5352
5353 2013-07-11 Andrew Burgess <aburgess@broadcom.com>
5354
5355 * infcmd.c (default_print_one_register_info): Reuse function
5356 print_hex_chars.
5357
5358 2013-07-10 Tom Tromey <tromey@redhat.com>
5359
5360 * Makefile.in (GDB_WARN_CFLAGS_NO_DEFS, ADA_EXP_C): New macros.
5361 (ada-exp.o): New target.
5362
5363 2013-07-10 Sergio Durigan Junior <sergiodj@redhat.com>
5364
5365 * mt-tdep.c (mt_registers_info): Call
5366 get_no_prettyformat_print_options instead of
5367 get_raw_print_options (regression by last patch from Doug
5368 Evans).
5369
5370 2013-07-09 Pedro Alves <palves@redhat.com>
5371
5372 Checked in by Joel Brobecker <brobecker@adacore.com>.
5373 * ada-lang.c (coerce_unspec_val_to_type): Use
5374 value_optimized_out_const.
5375 * value.c (value_optimized_out_const): New function.
5376 * value.h (value_optimized_out_const): New declaration.
5377
5378 2013-07-09 Doug Evans <dje@google.com>
5379
5380 * defs.h (enum val_prettyformat): Renamed from val_prettyprint.
5381 Enum values rename as well. All uses updated.
5382 * valprint.h (value_print_options): Rename member pretty to
5383 pretty format. Rename member prettyprint_arrays to
5384 prettyformat_arrays. Rename member prettyprint_structs to
5385 prettyformat_structs. All uses updated.
5386 (get_no_prettyformat_print_options): Renamed from
5387 get_raw_print_options.
5388 * valprint.c (get_no_prettyformat_print_options): Renamed from
5389 get_raw_print_options. All callers updated.
5390 (show_prettyformat_structs): Renamed from show_prettyprint_structs.
5391 All callers updated.
5392 (show_prettyformat_arrays): Renamed from show_prettyprint_arrays.
5393 All callers updated.
5394 (_initialize_valprint): Improve help text for "set print pretty" and
5395 "set print arrays".
5396
5397 2013-07-09 Andrew Burgess <aburgess@broadcom.com>
5398
5399 * value.c (value_bits_valid): Revert previous change, and change
5400 by Pedro on 2013-07-04, due to regressions in
5401 gdb.dwarf2/implptr.exp and gdb.dwarf2/pieces.exp.
5402
5403 2013-07-08 Andrew Burgess <aburgess@broadcom.com>
5404 Pedro Alves <palves@redhat.com>
5405
5406 * value.c (value_bits_valid): If the value is not lval_computed
5407 or has no check validity handler then the answer is the
5408 optimized_out flag, otherwise defer to the handler.
5409
5410 2013-07-06 Eli Zaretskii <eliz@gnu.org>
5411
5412 * top.c (print_gdb_configuration): Explain in output of
5413 --configuration what does "relocatable" mean.
5414
5415 * main.c (print_gdb_help): Regroup options in the --help text.
5416 See http://sourceware.org/ml/gdb-patches/2013-04/msg00362.html for
5417 the relevant discussions.
5418
5419 2013-07-06 Yao Qi <yao@codesourcery.com>
5420
5421 * breakpoint.h (struct breakpoint_ops) <create_breakpoints_sal>:
5422 Remove parameter 'lsal'.
5423 * breakpoint.c (create_breakpoint): Move local variable 'lsal'
5424 to inner block. Caller update.
5425 (base_breakpoint_create_breakpoints_sal): Update.
5426 (bkpt_create_breakpoints_sal): Likewise.
5427 (tracepoint_create_breakpoints_sal): Likewise.
5428 (strace_marker_create_breakpoints_sal): Get 'lsal' from the
5429 element 0 of vector 'canonical->sals'.
5430
5431 2013-07-05 Luis Machado <lgustavo@codesourcery.com>
5432
5433 * rs6000-tdep.c (rs6000_stab_reg_to_regnum): Return the real
5434 register number instead of the pseudo register one.
5435 (rs6000_dwarf2_reg_to_regnum): Likewise.
5436
5437 2013-07-04 Pedro Alves <palves@redhat.com>
5438
5439 * findvar.c (value_of_register): Use allocate_optimized_out_value
5440 if the register has been optimized out, instead of
5441 set_value_optimized_out.
5442 * frame-unwind.c (frame_unwind_got_optimized): Use
5443 allocate_optimized_out_value.
5444
5445 2013-07-04 Pedro Alves <palves@redhat.com>
5446
5447 * value.c (value_bits_valid): If the value is not lval_computed,
5448 or doesn't have a check_validity hook, assume the value is entirely
5449 valid.
5450
5451 2013-07-04 Andrew Burgess <aburgess@broadcom.com>
5452
5453 * stack.c (read_frame_arg): No longer fetch lazy values.
5454 * value.c (value_optimized_out): If the value is not already
5455 marked optimized out, and is lazy then fetch it.
5456 (value_primitive_field): Move optimized out check to later in the
5457 function, after we have loaded any lazy values.
5458 (value_fetch_lazy): Use optimized out flag directly rather than
5459 calling optimized_out method.
5460
5461 2013-07-04 Andrew Burgess <aburgess@broadcom.com>
5462
5463 * valops.c: Don't include "user-regs.h".
5464 (value_fetch_lazy): Moved to value.c.
5465 * value.c: Include "user-regs.h".
5466 (value_fetch_lazy): Moved from valops.c.
5467
5468 2013-07-04 Yao Qi <yao@codesourcery.com>
5469
5470 Revert:
5471 2013-06-27 Yao Qi <yao@codesourcery.com>
5472
5473 * common/create-version.sh: Update comments. Handle the case
5474 that TARGET_ALIAS is empty.
5475
5476 2013-07-03 Pedro Alves <palves@redhat.com>
5477
5478 * Makefile.in (config.status): Depend on development.sh.
5479 (aclocal_m4_deps): Add libmcheck.m4.
5480 * acinclude.m4: Include libmcheck.m4.
5481 * configure.ac: Source development.sh instead of setting
5482 'development' here. --enable-libmcheck/--disable-libmcheck code
5483 factored out to GDB_AC_LIBMCHECK. Run it.
5484 * development.sh: New file.
5485 * libmcheck.m4: New file.
5486 * configure: Regenerate.
5487
5488 2013-07-02 Tom Tromey <tromey@redhat.com>
5489
5490 * contrib/ari/update-web-ari.sh: Update for version.in change.
5491
5492 2013-07-02 Tom Tromey <tromey@redhat.com>
5493
5494 * common/ptid.h: Comment fixes.
5495
5496 2013-07-01 Tom Tromey <tromey@redhat.com>
5497
5498 * dwarf2read.c (dwarf2_get_dwz_file): Return NULL if
5499 .gnu_debugaltlink not found. Use bfd_get_alt_debug_link_info.
5500 (dwarf2_read_index, create_all_comp_units): Update.
5501
5502 2013-07-01 Tom Tromey <tromey@redhat.com>
5503
5504 * configure.ac (build_warnings): Add -Wold-style-definition.
5505 * configure: Rebuild.
5506 * machoread.c (_initialize_machoread): Use "(void)".
5507 * macrocmd.c (macro_inform_no_debuginfo): Fix formatting;
5508 use "(void)".
5509
5510 2013-07-01 Tom Tromey <tromey@redhat.com>
5511
5512 * configure.ac (build_warnings): Add -Wold-style-declaration.
5513 * configure: Rebuild.
5514 * dsrec.c (make_srec): Use "static const", not "const static".
5515 * h8300-tdep.c (h8300_breakpoint_from_pc): Use "static const",
5516 not "const static".
5517 * mi/mi-parse.c (mi_no_values, mi_simple_values, mi_all_values):
5518 Use "static const", not "const static".
5519 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Use "static const",
5520 not "const static".
5521 * moxie-tdep.c (moxie_breakpoint_from_pc): Use "static const",
5522 not "const static".
5523 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Use "static const",
5524 not "const static".
5525 * v850-tdep.c (v850_breakpoint_from_pc): Use "static const",
5526 not "const static".
5527 (v850_dbtrap_breakpoint_from_pc): Likewise.
5528 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Use "static const",
5529 not "const static".
5530
5531 2013-07-01 Tom Tromey <tromey@redhat.com>
5532
5533 * configure.ac (build_warnings): Add -Wmissing-parameter-type.
5534 * configure: Rebuild.
5535
5536 2013-07-01 Pedro Alves <palves@redhat.com>
5537
5538 * defs.h: Include "pathmax.h".
5539 * utils.c: Don't include sys/param.h.
5540 (gdb_realpath): Remove code that checks for MAXPATHLEN.
5541 * solib-ia64-hpux.c (ia64_hpux_handle_load_event): Use PATH_MAX
5542 instead of MAXPATHLEN.
5543 * solib-sunos.c: Don't include sys/param.h.
5544 * xcoffread.c: Don't include sys/param.h.
5545 * bsd-kvm.c: Don't include sys/param.h.
5546 * darwin-nat.c: Don't include sys/param.h.
5547 (darwin_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
5548 * darwin-nat-info.c: Don't include sys/param.h.
5549 * fbsd-nat.c (fbsd_pid_to_exec_file): Use PATH_MAX instead of
5550 MAXPATHLEN.
5551 * i386obsd-nat.c: Don't include sys/param.h.
5552 * inf-child.c: Don't include sys/param.h.
5553 (inf_child_fileio_readlink): Use PATH_MAX instead of MAXPATHLEN.
5554 * linux-fork.c: Don't include sys/param.h.
5555 (fork_save_infrun_state): Use PATH_MAX instead of MAXPATHLEN.
5556 * linux-nat.c: Don't include sys/param.h.
5557 (linux_child_pid_to_exec_file, linux_proc_pending_signals)
5558 (linux_proc_pending_signals): Use PATH_MAX instead of MAXPATHLEN.
5559 * m68klinux-nat.c: Don't include sys/param.h.
5560 * nbsd-nat.c: Don't include sys/param.h.
5561 (nbsd_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
5562 * ppc-linux-nat.c: Don't include sys/param.h.
5563 * rs6000-nat.c: Don't include sys/param.h.
5564 * spu-linux-nat.c. Don't include sys/param.h.
5565 * windows-nat.c: Don't include sys/param.h.
5566 * xtensa-linux-nat.c: Don't include sys/param.h.
5567 * config/i386/nm-fbsd.h: Don't include sys/param.h.
5568
5569 2013-07-01 Pedro Alves <palves@redhat.com>
5570
5571 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add pathmax.
5572 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/pathmax.m4.
5573 * gnulib/aclocal.m4: Regenerate.
5574 * gnulib/config.in: Regenerate.
5575 * gnulib/configure: Regenerate.
5576 * gnulib/import/pathmax.h: New file.
5577 * gnulib/import/Makefile.am: Regenerate.
5578 * gnulib/import/Makefile.in: Regenerate.
5579 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
5580 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
5581 * gnulib/import/m4/pathmax.m4: New file.
5582
5583 2013-07-01 Pedro Alves <palves@redhat.com>
5584
5585 * configure.ac (GDBINIT): Define, depending on host.
5586 * go32-nat.c (init_go32_ops): Don't override gdbinit here.
5587 * top.c (PATH_MAX): Delete fallback definition.
5588 (GDBINIT_FILENAME): Delete.
5589 (gdbinit): Reimplement as const char array set to the GDBINIT
5590 string constant.
5591 * top.h (gdbinit): Make const.
5592 * configure, config.in: Regenerate.
5593
5594 2013-07-01 Pedro Alves <palves@redhat.com>
5595
5596 * cli/cli-cmds.c (source_script): Make 'file' parameter const.
5597 * cli/cli-cmds.h (source_script): Likewise.
5598 * exceptions.c (catch_command_errors_const): New function.
5599 * exceptions.h (catch_command_errors_const): Declare.
5600 * main.c (get_init_files): Make parameters const, and adjust.
5601 (captured_main): Make 'system_gdbinit', 'home_gdbinit' and
5602 'local_gdbinit' locals const. Adjust to use
5603 catch_command_errors_const.
5604 (print_gdb_help): Make 'system_gdbinit', 'home_gdbinit' and
5605 'local_gdbinit' locals const.
5606
5607 2013-07-01 Pedro Alves <palves@redhat.com>
5608
5609 * defs.h: Don't check HAVE_UNISTD_H before including <unistd.h>.
5610 (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO): Delete.
5611 * tracepoint.c: Don't check HAVE_UNISTD_H before including
5612 <unistd.h>.
5613
5614 2013-07-01 Pedro Alves <palves@redhat.com>
5615
5616 Import the "unistd" gnulib module.
5617 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add "unistd".
5618 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/off_t.m4,
5619 import/m4/ssize_t.m4, import/m4/sys_types_h.m4 and
5620 import/m4/unistd_h.m4.
5621 * gnulib/aclocal.m4: Renenerate.
5622 * gnulib/config.in: Renenerate.
5623 * gnulib/configure: Renenerate.
5624 * gnulib/import/Makefile.am: Renenerate.
5625 * gnulib/import/Makefile.in: Renenerate.
5626 * gnulib/import/m4/gnulib-cache.m4: Renenerate.
5627 * gnulib/import/m4/gnulib-comp.m4: Renenerate.
5628 * gnulib/import/m4/off_t.m4: New file.
5629 * gnulib/import/m4/ssize_t.m4: New file.
5630 * gnulib/import/m4/sys_types_h.m4: New file.
5631 * gnulib/import/m4/unistd_h.m4: New file.
5632 * gnulib/import/sys_types.in.h: New file.
5633 * gnulib/import/unistd.c: New file.
5634 * gnulib/import/unistd.in.h: New file.
5635
5636 2013-07-01 Pedro Alves <palves@redhat.com>
5637
5638 * utils.c <pathconf/_PC_PATH_MAX use>: Check if _PC_PATH_MAX is
5639 defined instead of checking HAVE_UNISTD_H.
5640
5641 2013-07-01 Pedro Alves <palves@redhat.com>
5642
5643 Reimport gnulib from scratch.
5644 * gnulib/Makefile.in (aclocal_m4_deps): Remove reference to
5645 import/m4/onceonly.m4.
5646 * gnulib/aclocal.m4: Renegerate.
5647 * gnulib/config.in: Renegerate.
5648 * gnulib/configure: Renegerate.
5649 * gnulib/import/Makefile.in: Renegerate.
5650 * gnulib/import/extra/update-copyright: Renegerate.
5651 * gnulib/import/m4/onceonly.m4: Delete.
5652
5653 2013-07-01 Pedro Alves <palves@redhat.com>
5654
5655 * tui/tui-regs.c (pagination_enabled): Delete declaration.
5656
5657 2013-06-30 Jan Kratochvil <jan.kratochvil@redhat.com>
5658
5659 Code cleanup.
5660 * remote.c (async_remote_interrupt_twice): Make it static.
5661 * remote.h (async_remote_interrupt_twice): Remove the declaration.
5662
5663 2013-06-29 Sergio Durigan Junior <sergiodj@redhat.com>
5664
5665 * ia64-linux-tdep.c: Include <ctype.h>.
5666 (ia64_linux_stap_is_single_operand): New function.
5667 (ia64_linux_init_abi): Initialize SystemTap related attributes.
5668
5669 2013-06-28 Tom Tromey <tromey@redhat.com>
5670
5671 * Makefile.in (version.c): Use version.in, not
5672 common/version.in.
5673 * common/create-version.sh: Likewise.
5674 * common/version.in: Move...
5675 * version.in: ...here.
5676
5677 2013-06-28 Pedro Alves <palves@redhat.com>
5678
5679 * infrun.c (set_observer_mode): Don't declare pagination_enabled
5680 here.
5681 * utils.h (pagination_enabled): Declare.
5682
5683 2013-06-28 Pedro Alves <palves@redhat.com>
5684
5685 * infrun.c (non_stop, non_stop_1, set_non_stop, show_non_stop):
5686 Move higher up in file.
5687
5688 2013-06-28 Tom Tromey <tromey@redhat.com>
5689
5690 * tracepoint.c (deprecated_readline_begin_hook)
5691 (deprecated_readline_hook, deprecated_readline_end_hook): Don't
5692 declare.
5693
5694 2013-06-28 Pedro Alves <palves@redhat.com>
5695
5696 PR tui/14880
5697 * tui/tui-regs.c (tui_get_register): Fetch value contents before
5698 checking if they're available.
5699 * value.c (value_available_contents_eq): Change comment.
5700 * value.h (value_available_contents_eq): Expand comment.
5701
5702 2013-06-27 Tom Tromey <tromey@redhat.com>
5703
5704 * target.c (find_run_target): Remove.
5705 * target.h (find_run_target): Remove.
5706
5707 2013-06-27 Tom Tromey <tromey@redhat.com>
5708
5709 * corelow.c (core_gdbarch): Now static.
5710
5711 2013-06-27 Tom Tromey <tromey@redhat.com>
5712
5713 * target.c (target_struct_index): Remove.
5714
5715 2013-06-27 Pedro Alves <palves@redhat.com>
5716
5717 * infrun.c: Remove comment describing the 'stepping over runtime
5718 loader dynamic symbol resolution code' mechanism; moved to
5719 gdbint.texinfo.
5720
5721 2013-06-27 Pedro Alves <palves@redhat.com>
5722
5723 * exceptions.c (catch_command_errors): Remove spurious space.
5724 * exceptions.h (catch_command_errors): Second parameter is "arg",
5725 not "command".
5726
5727 2013-06-27 Yao Qi <yao@codesourcery.com>
5728
5729 * common/create-version.sh: Update comments. Handle the case
5730 that TARGET_ALIAS is empty.
5731
5732 2013-06-26 Pedro Alves <palves@redhat.com>
5733
5734 * infrun.c (SOLIB_IN_DYNAMIC_LINKER): Delete macro and describing
5735 comment.
5736
5737 2013-06-26 Pedro Alves <palves@redhat.com>
5738
5739 * infrun.c: Update comments on stepping over runtime loader
5740 dynamic symbol resolution code.
5741
5742 2013-06-26 Sergio Durigan Junior <sergiodj@redhat.com>
5743
5744 * ax-gdb.h (union exp_element): Forward declare.
5745 * parser-defs.h: Include expression.h.
5746
5747 2013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
5748
5749 * mips-tdep.c (fetch_mips_16): Use unmake_compact_addr.
5750
5751 2013-06-26 Dmitry Kozlov <ddk@codesourcery.com>
5752
5753 * tracepoint.c (trace_save): Extend tsave to save starttime, stoptime.
5754
5755 2013-06-26 Dmitry Kozlov <ddk@codesourcery.com>
5756
5757 Fix trace-status to output proper start-time and stop-time.
5758 * tracepoint.c (trace_status_command): Fix type of printf arg to
5759 prevent improper type conversion.
5760 (trace_status_mi): Likewise.
5761
5762 2013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
5763
5764 * mips-tdep.c (mips_next_pc): Fix a typo.
5765
5766 2013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
5767
5768 * mips-tdep.c (micromips_scan_prologue): Fix a typo.
5769
5770 2013-06-26 Pedro Alves <pedro@codesourcery.com>
5771 Yao Qi <yao@codesourcery.com>
5772
5773 * mi/mi-cmds.c (mi_cmds): Register -trace-frame-collected.
5774 * mi/mi-cmds.h (mi_cmd_trace_frame_collected): Declare.
5775 * mi/mi-main.c (print_variable_or_computed): New function.
5776 (mi_cmd_trace_frame_collected): New function.
5777 * tracepoint.c (find_trace_state_variable_by_number): New.
5778 (struct traceframe_info): Move to tracepoint.h
5779 (struct collection_list): Likewise.
5780 (do_collect_symbol): Include locals and arguments in the
5781 collected variables list.
5782 (clear_collection_list): Clear wholly collected variables list
5783 and computed variables list.
5784 (append_exp): New function.
5785 (encode_actions_1): Include variables in the wholly
5786 collected variables list. Include memory ranges and
5787 full-fledged expressions in the computed expressions list.
5788 (encode_actions): Move some code to ...
5789 Return the cleanup chain.
5790 (encode_actions_rsp): ... here. New function.
5791 (get_traceframe_location, get_traceframe_info): Remove static.
5792 * tracepoint.h (struct memrange): Moved from tracepoint.c.
5793 (struct collection_list): Moved from tracepoint.c. Add two
5794 new fields 'wholly_collected' and 'computed'.
5795 (find_trace_state_variable_by_number): Declare.
5796 (encode_actions): Adjust declaration.
5797 (encode_actions_rsp): Declare.
5798 (get_traceframe_info, get_traceframe_location): Declare.
5799
5800 * NEWS: Mention new MI command -trace-frame-collected.
5801
5802 2013-06-26 Pedro Alves <pedro@codesourcery.com>
5803 Yao Qi <yao@codesourcery.com>
5804
5805 * ctf.c (ctf_traceframe_info): Push trace state variables
5806 present in the trace data into the traceframe info object.
5807 * breakpoint.c (DEF_VEC_I): Remove.
5808 * common/filestuff.c (DEF_VEC_I): Likewise.
5809 * dwarf2loc.c (DEF_VEC_I): Likewise.
5810 * mi/mi-main.c (DEF_VEC_I): Likewise.
5811 * common/gdb_vecs.h (DEF_VEC_I): Define vector for int.
5812 * features/traceframe-info.dtd: Add tvar element and its
5813 attributes.
5814 * tracepoint.c (free_traceframe_info): Free vector 'tvars'.
5815 (build_traceframe_info): Push trace state variables present in
5816 the trace data into the traceframe info object.
5817 (traceframe_info_start_tvar): New function.
5818 (tvar_attributes): New.
5819 (traceframe_info_children): Add "tvar" element.
5820 * tracepoint.h (struct traceframe_info) <tvars>: New field.
5821
5822 * NEWS: Mention the change in GDB and GDBserver.
5823
5824 2013-06-26 Pedro Alves <pedro@codesourcery.com>
5825 Yao Qi <yao@codesourcery.com>
5826
5827 * tracepoint.c (trace_dump_command): Move code to ...
5828 (get_traceframe_location): ... here. New.
5829
5830 2013-06-26 Pedro Alves <pedro@codesourcery.com>
5831 Yao Qi <yao@codesourcery.com>
5832
5833 * tracepoint.c (trace_dump_command): GDB emits an error
5834 instead of a warning when a traceframe is not selected.
5835
5836 2013-06-26 Pedro Alves <pedro@codesourcery.com>
5837 Yao Qi <yao@codesourcery.com>
5838
5839 * tracepoint.c (tracepoint_list, stepping_list): Remove.
5840 (clear_collection_list): Free fields 'aexpre_list' and 'list'
5841 in collection_list.
5842 (do_clear_collection_list, init_collection_list): New.
5843 (encode_actions): Add local variables 'tracepoint_list' and
5844 'stepping_list'. Call init_collection_list and make cleanup
5845 which calls do_clear_collection_list. Don't call
5846 clear_collection_list.
5847 (_initialize_tracepoint): Delete references to
5848 'tracepoint_list' and 'stepping_list'.
5849
5850 2013-06-25 Tom Tromey <tromey@redhat.com>
5851
5852 * common/create-version.sh (date): Use "$", not "$$" in sed
5853 expression.
5854
5855 2013-06-25 Kevin Buettner <kevinb@redhat.com>
5856
5857 * NEWS (New targets): Add entry for TI MSP430.
5858
5859 2013-06-25 Yao Qi <yao@codesourcery.com>
5860
5861 * remote.c (remote_start_remote): Move code to upload tsv
5862 earlier.
5863
5864 2013-06-25 Yao Qi <yao@codesourcery.com>
5865 Hui Zhu <hui@codesourcery.com>
5866 Pedro Alves <palves@redhat.com>
5867
5868 PR breakpoints/15075
5869 PR breakpoints/15434
5870 * breakpoint.c (bpstat_stop_status): Call
5871 b->ops->after_condition_true.
5872 (update_dprintf_command_list): Don't append "continue" command
5873 to the command list of dprintf breakpoint.
5874 (base_breakpoint_after_condition_true): New function.
5875 (base_breakpoint_ops): Add base_breakpoint_after_condition_true.
5876 (dprintf_after_condition_true): New function.
5877 (initialize_breakpoint_ops): Set dprintf_after_condition_true.
5878 * breakpoint.h (breakpoint_ops): Add after_condition_true.
5879
5880 2013-06-24 Kevin Buettner <kevinb@redhat.com>
5881
5882 * Makefile.in (ALL_TARGET_OBS): Add msp430-tdep.o.
5883 (ALLDEPFILES): Add msp430-tdep.c.
5884 * configure.tgt (msp430*-*-elf): New target.
5885 * msp430-tdep.c: New file.
5886
5887 2013-06-24 Maciej W. Rozycki <macro@codesourcery.com>
5888
5889 * mips-tdep.c (mips_elf_make_msymbol_special): Handle MIPS16 and
5890 microMIPS synthetic symbols.
5891
5892 2013-06-24 Maciej W. Rozycki <macro@codesourcery.com>
5893
5894 * objfiles.h (pc_in_section): New prototype.
5895 (in_plt_section): Remove name argument, replace prototype with
5896 static inline function.
5897 * mips-tdep.h: Include "objfiles.h".
5898 (in_mips_stubs_section): New function.
5899 * hppa-tdep.h (gdbarch_tdep): Remove name argument of
5900 in_solib_call_trampoline member.
5901 (hppa_in_solib_call_trampoline): Remove name argument.
5902 * objfiles.c (pc_in_section): New function.
5903 (in_plt_section): Remove function.
5904 * mips-linux-tdep.c: Include "objfiles.h".
5905 (mips_linux_in_dynsym_stub): Call in_mips_stubs_section. Remove
5906 name argument. Return 1 rather than the low 16-bit halfword of
5907 any instruction examined.
5908 (mips_linux_in_dynsym_resolve_code): Update
5909 mips_linux_in_dynsym_stub call accordingly.
5910 * mips-tdep.c (mips_stub_frame_sniffer): Use in_mips_stubs_section
5911 rather than an equivalent hand-coded sequence.
5912 * hppa-hpux-tdep.c (in_opd_section): Remove function.
5913 (hppa32_hpux_in_solib_call_trampoline): Remove name argument.
5914 (hppa64_hpux_in_solib_call_trampoline): Likewise.
5915 (hppa64_hpux_find_global_pointer): Use pc_in_section rather than
5916 in_opd_section.
5917 * hppa-tdep.c (hppa_stub_unwind_sniffer): Remove name argument
5918 on call to tdep->in_solib_call_trampoline.
5919 (hppa_in_solib_call_trampoline): Remove name argument, update
5920 according to in_plt_section change.
5921 (hppa_skip_trampoline_code): Update according to in_plt_section
5922 change.
5923 * aarch64-tdep.c (aarch64_stub_unwind_sniffer): Likewise.
5924 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code):
5925 Likewise.
5926 * arm-tdep.c (arm_stub_unwind_sniffer): Likewise.
5927 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): Likewise.
5928 * hppabsd-tdep.c (hppabsd_find_global_pointer): Likewise.
5929 * nios2-tdep.c (nios2_stub_frame_sniffer): Likewise.
5930 * nto-tdep.c (nto_relocate_section_addresses): Likewise.
5931 * s390-tdep.c (s390_stub_frame_sniffer): Likewise.
5932 * sh-tdep.c (sh_stub_unwind_sniffer): Likewise.
5933 * solib-dsbt.c (dsbt_in_dynsym_resolve_code): Likewise.
5934 * solib-frv.c (frv_in_dynsym_resolve_code): Likewise.
5935 * solib-svr4.c (svr4_in_dynsym_resolve_code): Likewise.
5936 * solib-target.c (solib_target_in_dynsym_resolve_code): Likewise.
5937 * sparc-tdep.c (sparc_analyze_prologue): Likewise.
5938 * tic6x-tdep.c (tic6x_stub_unwind_sniffer): Likewise.
5939
5940 2013-06-24 Joel Brobecker <brobecker@adacore.com>
5941
5942 * common/create-version.sh: Fix expansion of $host_alias
5943 and $target_alias in generation of HOST_NAME and TARGET_NAME
5944 (resp.).
5945
5946 2013-06-24 Tom Tromey <tromey@redhat.com>
5947
5948 * common/create-version.sh: New file.
5949 * Makefile.in (version.c): Use bfd/version.h, common/version.in,
5950 create-version.sh.
5951 (HFILES_NO_SRCDIR): Use common/version.h.
5952 * version.in: Move to ...
5953 * common/version.in: ... here. Replace date with "DATE".
5954 * version.h: Move to ...
5955 * common/version.h: ... here.
5956
5957 2013-06-21 Joel Brobecker <brobecker@adacore.com>
5958
5959 * gdb/gnulib/Makefile.in: Update date in copyright header.
5960 * gdb/gnulib/configure.ac: Ditto.
5961 * gdb/gnulib/update-gnulib.sh: Ditto.
5962
5963 2013-06-21 Joel Brobecker <brobecker@adacore.com>
5964
5965 * copyright.py (EXCLUDE_LIST): Replace "gdb/gnulib" by
5966 "gdb/gnulib/import".
5967
5968 2013-06-21 Will Newton <will.newton@linaro.org>
5969
5970 * doublest.c (ldfrexp): Remove function.
5971 (convert_doublest_to_floatformat): Call frexpl instead of
5972 ldfrexp.
5973
5974 2013-06-21 Will Newton <will.newton@linaro.org>
5975
5976 * gnulib/update-gnulib.sh(IMPORTED_GNULIB_MODULES): Add frexpl.
5977 * gnulib/aclocal.m4: Regenerate.
5978 * gnulib/config.in: Regenerate.
5979 * gnulib/configure: Regenerate.
5980 * gnulib/import/Makefile.am: Update.
5981 * gnulib/import/Makefile.in: Update.
5982 * gnulib/import/m4/gnulib-cache.m4: Update.
5983 * gnulib/import/m4/gnulib-comp.m4: Update.
5984 * gnulib/import/float+.h: Import.
5985 * gnulib/import/float.c: Import.
5986 * gnulib/import/float.in.h: Import.
5987 * gnulib/import/fpucw.h: Import.
5988 * gnulib/import/frexp.c: Import.
5989 * gnulib/import/frexpl.c: Import.
5990 * gnulib/import/isnan.c: Import.
5991 * gnulib/import/isnand-nolibm.h: Import.
5992 * gnulib/import/isnand.c: Import.
5993 * gnulib/import/isnanl-nolibm.h: Import.
5994 * gnulib/import/isnanl.c: Import.
5995 * gnulib/import/itold.c: Import.
5996 * gnulib/import/m4/exponentd.m4: Import.
5997 * gnulib/import/m4/exponentl.m4: Import.
5998 * gnulib/import/m4/float_h.m4: Import.
5999 * gnulib/import/m4/fpieee.m4: Import.
6000 * gnulib/import/m4/frexp.m4: Import.
6001 * gnulib/import/m4/frexpl.m4: Import.
6002 * gnulib/import/m4/isnand.m4: Import.
6003 * gnulib/import/m4/isnanl.m4: Import.
6004 * gnulib/import/m4/math_h.m4: Import.
6005 * gnulib/import/math.c: Import.
6006 * gnulib/import/math.in.h: Import.
6007
6008 2013-06-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6009
6010 * common/linux-btrace.c (cpu_supports_btrace): Remove variable vendor,
6011 replace strcmp with signature_INTEL_ebx, signature_INTEL_ecx and
6012 signature_INTEL_edx comparisons.
6013
6014 2013-06-20 Doug Evans <dje@google.com>
6015
6016 symtab/15652
6017 * dwarf2read.c (try_open_dwop_file): New arg search_cwd.
6018 All callers updated.
6019 (open_dwp_file): If we can't find the dwp file, search the basename
6020 in debug-file-directory.
6021
6022 * dwarf2read.c (struct dwp_file): Fix comment.
6023 (open_and_init_dwp_file): Set dwp_file->name to bfd's file name.
6024
6025 * source.c (openp): Document OPF_TRY_CWD_FIRST+OPF_SEARCH_IN_PATH
6026 better.
6027
6028 2013-06-20 Yao Qi <yao@codesourcery.com>
6029
6030 * breakpoint.c (create_breakpoint): Fix code indentation.
6031
6032 2013-06-20 Yao Qi <yao@codesourcery.com>
6033
6034 * breakpoint.c (create_breakpoints_sal_default): Remove
6035 parameter 'lsal'. Update declaration.
6036 (bkpt_create_breakpoints_sal): Caller update.
6037 (tracepoint_create_breakpoints_sal): Likewise.
6038
6039 2013-06-20 Pedro Alves <pedro@codesourcery.com>
6040 Yao Qi <yao@codesourcery.com>
6041
6042 * NEWS: Mention the new option '--skip-unavailable' of command
6043 -data-list-register-values.
6044 * mi/mi-main.c (mi_cmd_data_list_register_values): Accept the
6045 --skip-unavailable option. Adjust to use output_register.
6046 (output_register): Add new 'skip_unavailable' parameter.
6047 Handle it.
6048
6049 2013-06-19 Mike Frysinger <vapier@gentoo.org>
6050
6051 * Makefile.in (HFILES_NO_SRCDIR): Add common/i386-cpuid.h and
6052 common/i386-gcc-cpuid.h.
6053 * common/i386-cpuid.h: New wrapper header around i386-gcc-cpuid.h.
6054 * common/i386-gcc-cpuid.h: Rename from testsuite/gdb.arch/i386-cpuid.h.
6055 Copy the latest version from upstream gcc.
6056 * common/linux-btrace.c: Include i386-cpuid.h.
6057 (intel_supports_btrace): Delete x86 ifdefs and replace inline asm with
6058 call to i386_cpuid.
6059 (cpu_supports_btrace): Likewise.
6060 * go32-nat.c: Include i386-cpuid.h.
6061 (go32_sysinfo): Add (disabled) calls to i386_cpuid with comments.
6062
6063 2013-06-19 Doug Evans <dje@google.com>
6064
6065 * symfile.c (symfile_bfd_open): Delete unnecessary declaration.
6066 (get_section_index): Ditto.
6067
6068 2013-06-19 Tom Tromey <tromey@redhat.com>
6069
6070 * breakpoint.c (_initialize_breakpoint): Remove trailing \n from
6071 "dprintf" help.
6072
6073 2013-06-18 Doug Evans <dje@google.com>
6074
6075 * dwarf2read.c (dw2_symtab_iter_next): Check value of cu_index
6076 before using it.
6077 (dw2_expand_symtabs_matching): Fix symbol kind validity check.
6078 Move test of cu_index closer to use. Print complaint if cu_index
6079 is bad.
6080
6081 2013-06-18 Joel Brobecker <brobecker@adacore.com>
6082
6083 * machoread.c (oso_vector): Delete this global.
6084 (macho_register_oso): Add new parameter "oso_vector_ptr".
6085 Use it instead of the "oso_vector" global.
6086 (macho_symtab_read, macho_symfile_read_all_oso): Likewise.
6087 (macho_symfile_read): Use a local oso_vector, to be free'ed
6088 at the end of this function, in place of the old "oso_vector"
6089 global. Update various function calls accordingly. Use one
6090 single cleanup chain for the entire function.
6091
6092 2013-06-18 Joel Brobecker <brobecker@adacore.com>
6093
6094 * dwarf2read.c (dwarf2_per_objfile_free): Replace uses of
6095 DWARF2_PER_OBJFILE by uses of DATA instead.
6096
6097 2013-06-18 Tom Tromey <tromey@redhat.com>
6098
6099 * break-catch-sig.c (signal_catchpoint_explains_signal): Add 'sig'
6100 argument.
6101 * breakpoint.c (bpstat_explains_signal): Add 'sig' argument.
6102 Special case signals other than GDB_SIGNAL_TRAP.
6103 (explains_signal_watchpoint): New function.
6104 (base_breakpoint_explains_signal): Add 'sig' argument.
6105 (initialize_breakpoint_ops): Set 'explains_signal' method for
6106 watchpoints.
6107 * breakpoint.h (struct breakpoint_ops) <explains_signal>: Add
6108 signal argument.
6109 (bpstat_explains_signal): Likewise.
6110 * infrun.c (handle_syscall_event, handle_inferior_event): Update.
6111
6112 2013-06-18 Tom Tromey <tromey@redhat.com>
6113
6114 * python/py-inferior.c (gdbpy_selected_inferior): Don't incref.
6115
6116 2013-06-18 Tom Tromey <tromey@redhat.com>
6117
6118 * python/python.c (finish_python_initialization): Decref
6119 'pythondir' on failure path as well.
6120
6121 2013-06-18 Tom Tromey <tromey@redhat.com>
6122
6123 PR symtab/15391:
6124 * dwarf2loc.c (read_pieced_value): Truncate this_size_bits
6125 after taking bits_to_skip into account. Sign extend byte_offset.
6126 * utils.h (gdb_sign_extend): Declare.
6127 * utils.c (gdb_sign_extend): New function.
6128
6129 2013-06-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6130
6131 * dwarf2read.c (write_psymtabs_to_index): Ignore NULL PSYMTAB.
6132
6133 2013-06-17 Pierre Muller <muller@sourceware.org>
6134
6135 * corelow.c (core_open): Print GDB signal name instead of target
6136 signal number.
6137
6138 2013-06-17 Mike Frysinger <vapier@gentoo.org>
6139
6140 * .gitignore: Add /gcore.
6141
6142 2013-06-13 Doug Evans <dje@google.com>
6143
6144 * dwarf2read.c (try_open_dwop_file): Work around behaviour of
6145 OPF_TRY_CWD_FIRST to not search path if the file contains a '/'.
6146
6147 2013-06-12 Phil Muldoon <pmuldoon@redhat.com>
6148
6149 * stack.c (backtrace_command_1): Fix indentation.
6150
6151 2013-06-11 Joel Brobecker <brobecker@adacore.com>
6152
6153 * window-nat.c (thread_rec): Add missing empty line after
6154 local variable declaration.
6155
6156 2013-06-11 Joel Brobecker <brobecker@adacore.com>
6157
6158 * windows-nat.c (thread_rec): Revert format used to print
6159 error code returned by SuspendThread from %d back to %u.
6160
6161 2013-06-11 Joel Brobecker <brobecker@adacore.com>
6162
6163 * windows-nat.c (windows_continue): Add "0x" prefix for thread
6164 ID in debug trace.
6165 (get_windows_debug_event): Likewise, for all debug traces.
6166
6167 2013-06-11 Joel Brobecker <brobecker@adacore.com>
6168
6169 * window-nat.c (thread_rec): Add thread ID in SuspendThread
6170 warning message.
6171
6172 2013-06-08 Pedro Alves <pedro@codesourcery.com>
6173 Yao Qi <yao@codesourcery.com>
6174
6175 * mi/mi-main.c (get_register): Remove declaration.
6176 (output_register): Declare.
6177 (mi_cmd_data_list_register_values): Remove local variable
6178 'tuple_cleanup'. Move some code into output_register.
6179 (get_register): Renamed to ...
6180 (output_register): ... this. Output the register's
6181 "number" ui_out tuple here.
6182
6183 2013-06-07 Pedro Alves <palves@redhat.com>
6184
6185 * darwin-nat.c: Fix formating in copyright header.
6186 * darwin-nat.h: Likewise.
6187 * gnu-nat.c: Likewise.
6188 * machoread.c: Likewise.
6189
6190 2013-06-07 Pedro Alves <palves@redhat.com>
6191
6192 PR server/14823
6193 * regformats/regdat.sh: Output #include tdesc.h. Make globals
6194 static. Output a global target description pointer.
6195 (init_registers_${name}): Adjust to initialize a
6196 target description structure.
6197
6198 2013-06-07 Will Newton <will.newton@linaro.org>
6199
6200 * printcmd.c (build_address_symbolic): Call
6201 gdbarch_addr_bits_remove for text minimal symbols.
6202
6203 2013-06-07 Will Newton <will.newton@linaro.org>
6204
6205 * MAINTAINERS: Add myself to Write After Approval.
6206
6207 2013-06-07 Yao Qi <yao@codesourcery.com>
6208
6209 * tracepoint.c (start_tracing): Move code to ...
6210 (trace_reset_local_state): ... here. New.
6211 (disconnect_tracing): Don't call set_current_traceframe,
6212 set_tracepoint_num, and set_traceframe_context. Call
6213 trace_reset_local_state instead.
6214 (tfile_close): Call trace_reset_local_state.
6215 * ctf.c (ctf_close): Likewise.
6216 * remote.c (remote_close): Likewise.
6217 * tracepoint.h (trace_reset_local_state): Declare.
6218
6219 2013-06-06 Doug Evans <dje@google.com>
6220
6221 * dwarf2read.c: Whitespace fixes for DWP file format documentation,
6222 and fix header docs.
6223
6224 2013-06-05 Doug Evans <dje@google.com>
6225 Keith Seitz <keiths@redhat.com>
6226
6227 PR 15519
6228 * cp-namespace.c (find_symbol_in_baseclass): Call
6229 cp_lookup_symbol_in_namespace instead of cp_lookup_symbol_namespace.
6230 Check result of call to lookup_symbol_static.
6231 Call lookup_static_symbol_aux unconditionally.
6232 Call check_typedef on base types before accessing them.
6233 (cp_lookup_nested_symbol): Fix comment.
6234
6235 2013-06-05 Luis Machado <lgustavo@codesourcery.com>
6236
6237 * gnu-v3-abi.c (gnuv3_skip_trampoline): Handle thunk
6238 minimal symbols pointing to function descriptors.
6239
6240 2013-06-05 Tom Tromey <tromey@redhat.com>
6241
6242 * python/py-utils.c (gdb_pymodule_addobject): Cast away const.
6243
6244 2013-06-04 Sergio Durigan Junior <sergiodj@redhat.com>
6245 Pedro Alves <palves@redhat.com>
6246
6247 * remote.c (remote_wait_as): Restore signal handler before returning
6248 when GDB gets a notification.
6249
6250 2013-06-04 Gary Benson <gbenson@redhat.com>
6251
6252 PR 2328
6253 * breakpoint.h (handle_solib_event): Moved function declaration
6254 to solib.h.
6255 * breakpoint.c (handle_solib_event): Moved function to solib.c.
6256 (bpstat_stop_status): Pass new argument to handle_solib_event.
6257 * solib.h (update_solib_breakpoints): New function declaration.
6258 (handle_solib_event): Moved function declaration from
6259 breakpoint.h.
6260 * solib.c (update_solib_breakpoints): New function.
6261 (handle_solib_event): Moved function from breakpoint.c.
6262 Updated to call solib_ops->handle_event if not NULL.
6263 * solist.h (target_so_ops): New fields "update_breakpoints" and
6264 "handle_event".
6265 * infrun.c (set_stop_on_solib_events): New function.
6266 (_initialize_infrun): Use the above for "set
6267 stop-on-solib-events".
6268 (handle_inferior_event): Pass new argument to handle_solib_event.
6269 * solib-svr4.c (probe.h): New include.
6270 (svr4_free_library_list): New forward declaration.
6271 (probe_action): New enum.
6272 (probe_info): New struct.
6273 (probe_info): New static variable.
6274 (NUM_PROBES): New definition.
6275 (svr4_info): New fields "using_xfer", "probes_table" and
6276 "solib_list".
6277 (free_probes_table): New function.
6278 (free_solib_list): New function.
6279 (svr4_pspace_data_cleanup): Free probes table and solib list.
6280 (svr4_copy_library_list): New function.
6281 (svr4_current_sos_via_xfer_libraries): New parameter "annex".
6282 (svr4_read_so_list): New parameter "prev_lm".
6283 (svr4_current_sos_direct): Renamed from "svr4_current_sos".
6284 (svr4_current_sos): New function.
6285 (probe_and_action): New struct.
6286 (hash_probe_and_action): New function.
6287 (equal_probe_and_action): Likewise.
6288 (register_solib_event_probe): Likewise.
6289 (solib_event_probe_at): Likewise.
6290 (solib_event_probe_action): Likewise.
6291 (solist_update_full): Likewise.
6292 (solist_update_incremental): Likewise.
6293 (disable_probes_interface_cleanup): Likewise.
6294 (svr4_handle_solib_event): Likewise.
6295 (svr4_update_solib_event_breakpoint): Likewise.
6296 (svr4_update_solib_event_breakpoints): Likewise.
6297 (svr4_create_solib_event_breakpoints): Likewise.
6298 (enable_break): Free probes table before creating breakpoints.
6299 Use svr4_create_solib_event_breakpoints to create breakpoints.
6300 (svr4_solib_create_inferior_hook): Free the solib list.
6301 (_initialize_svr4_solib): Initialise
6302 svr4_so_ops.handle_solib_event and svr4_so_ops.update_breakpoints.
6303
6304 2013-06-04 Gary Benson <gbenson@redhat.com>
6305
6306 * target.h (target_ops): New field
6307 "to_augmented_libraries_svr4_read".
6308 (target_augmented_libraries_svr4_read): New macro.
6309 * target.c (update_current_target): Handle
6310 to_augmented_libraries_svr4_read.
6311 * remote.c (remote_state): New field
6312 "augmented_libraries_svr4_read".
6313 (remote_augmented_libraries_svr4_read_feature): New function.
6314 (remote_protocol_features): Add entry for
6315 "augmented-libraries-svr4-read".
6316 (remote_augmented_libraries_svr4_read): New function.
6317 (init_remote_ops): Initialize
6318 remote_ops.to_augmented_libraries_svr4_read.
6319
6320 2013-06-04 Gary Benson <gbenson@redhat.com>
6321
6322 * NEWS: Update.
6323
6324 2013-06-04 Gary Benson <gbenson@redhat.com>
6325
6326 * objfiles.h (inhibit_section_map_updates): New function
6327 declaration.
6328 (resume_section_map_updates): Likewise.
6329 (resume_section_map_updates_cleanup): Likewise.
6330 * objfiles.c (objfile_pspace_info): Removed field
6331 "objfiles_changed_p". New fields "new_objfiles_available",
6332 "section_map_dirty" and "inhibit_updates".
6333 (allocate_objfile): Set new_objfiles_available.
6334 (free_objfile): Set section_map_dirty.
6335 (objfile_relocate1): Likewise.
6336 (in_plt_section): Likewise.
6337 (find_pc_section): Update the conditions under which the
6338 section map will be updated.
6339 (inhibit_section_map_updates): New function.
6340 (resume_section_map_updates): Likewise.
6341 (resume_section_map_updates_cleanup): Likewise.
6342
6343 2013-06-04 Gary Benson <gbenson@redhat.com>
6344
6345 * probe.h (get_probe_argument_count): New declaration.
6346 (evaluate_probe_argument): Likewise.
6347 * probe.c (get_probe_argument_count): New function.
6348 (evaluate_probe_argument): Likewise.
6349 (probe_safe_evaluate_at_pc): Use the above new functions.
6350
6351 2013-06-04 Alan Modra <amodra@gmail.com>
6352
6353 * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
6354 * rs6000-tdep.c (read_insn): Add frame param, don't assume big-endian.
6355 (ppc_insns_match_pattern): Add frame param. Avoid multiple
6356 target mem reads on optional insns.
6357 * ppc-linux-tdep.c (ppc_skip_trampoline_code): Update
6358 ppc_insns_match_pattern calls.
6359 * ppc64-tdep.c (ppc64_standard_linkage2, ppc64_standard_linkage3):
6360 Add match for power7 thread safety insns, and new order of
6361 std 2,40(1) insn. Correct code shown for _dl_runtime_resolve
6362 invocation in comment, and update rest of comment.
6363 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN,
6364 PPC64_STANDARD_LINKAGE3_LEN): Delete.
6365 (ppc64_standard_linkage2_target): Update insn offsets.
6366 (ppc64_skip_trampoline_code): Use a single insn buffer. Match newer
6367 stubs first. Update calls.
6368
6369 2013-06-04 Yao Qi <yao@codesourcery.com>
6370
6371 * solib.c (solib_find): Don't need dir separator if path has
6372 drive spec.
6373
6374 2013-06-03 Joel Brobecker <brobecker@adacore.com>
6375
6376 Revert (indirectly causes a SIGSEGV):
6377 * machoread.c (macho_symfile_read): Assign first cleanup to
6378 'back_to'.
6379
6380 2013-06-03 Yao Qi <yao@codesourcery.com>
6381
6382 * mi/mi-cmd-var.c (mi_no_values, mi_simple_values): Move to
6383 mi-parse.c. Make them static.
6384 (mi_all_values): Likewise.
6385 (mi_parse_values_option): Move to mi-parse.c. Rename it to
6386 mi_parse_print_values. Make it external.
6387 * mi/mi-cmds.h (mi_no_values, mi_simple_values, mi_all_values):
6388 Remove the declarations.
6389 * mi/mi-parse.c (mi_parse_print_values): Moved from mi-cmd-var.c.
6390 * mi/mi-parse.h (mi_parse_print_values): Declare.
6391 * mi/mi-cmd-stack.c: Include mi-parse.h.
6392 (parse_print_values): Remove
6393 (mi_cmd_stack_list_locals): Call mi_parse_print_values instead
6394 of parse_print_values.
6395 (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Likewise.
6396
6397 2013-05-31 Pedro Alves <pedro@codesourcery.com>
6398 Yao Qi <yao@codesourcery.com>
6399
6400 * tracepoint.c (all_tracepoint_actions_and_cleanup): Declare.
6401 (encode_actions): Move code to ...
6402 (all_tracepoint_actions_and_cleanup): ... here. New.
6403 (trace_dump_command): Likewise.
6404
6405 2013-05-30 Tom Tromey <tromey@redhat.com>
6406
6407 * symmisc.c (maintenance_expand_symtabs): Call do_cleanups.
6408
6409 2013-05-30 Tom Tromey <tromey@redhat.com>
6410
6411 * xml-support.c (gdb_xml_create_parser_and_cleanup): Rename from
6412 gdb_xml_create_parser_and_cleanup_1. Return a cleanup. Remove
6413 'old_chain' argument. Add 'parser_result' argument.
6414 (gdb_xml_create_parser_and_cleanup): Remove old version.
6415 (gdb_xml_parse_quick): Update.
6416 (xml_process_xincludes): Update.
6417 * xml-support.h (gdb_xml_create_parser_and_cleanup): Don't
6418 declare.
6419
6420 2013-05-30 Tom Tromey <tromey@redhat.com>
6421
6422 * probe.c (collect_probes): Check arguments for NULL before
6423 calling compile_rx_or_error.
6424 * utils.c (compile_rx_or_error): Require 'rx' to be non-NULL.
6425 Remove NULL return.
6426
6427 2013-05-30 Tom Tromey <tromey@redhat.com>
6428
6429 * infrun.c (adjust_pc_after_break): Introduce an outer null
6430 cleanup.
6431
6432 2013-05-30 Tom Tromey <tromey@redhat.com>
6433
6434 * mi/mi-cmd-var.c (varobj_update_one): Add an outer null cleanup.
6435
6436 2013-05-30 Tom Tromey <tromey@redhat.com>
6437
6438 * cli/cli-script.c (read_command_lines_1): Use a null cleanup
6439 for 'old_chain'. Do not check 'head' before processing
6440 cleanups.
6441
6442 2013-05-30 Tom Tromey <tromey@redhat.com>
6443
6444 * mi/mi-cmd-stack.c (list_arg_or_local): Remove
6445 "cleanup_tuple".
6446
6447 2013-05-30 Tom Tromey <tromey@redhat.com>
6448
6449 * dbxread.c (dbx_read_symtab): Declare 'back_to' in a more
6450 inner scope. Unconditionally call do_cleanups.
6451
6452 2013-05-30 Tom Tromey <tromey@redhat.com>
6453
6454 * source.c (find_and_open_source): Call do_cleanups.
6455
6456 2013-05-30 Tom Tromey <tromey@redhat.com>
6457
6458 * linux-thread-db.c (thread_db_load_search): Unconditionally
6459 call do_cleanups.
6460
6461 2013-05-30 Tom Tromey <tromey@redhat.com>
6462
6463 * solib-aix.c (solib_aix_bfd_open): Don't use a null cleanup
6464 for 'cleanup'; instead use a later one.
6465
6466 2013-05-30 Tom Tromey <tromey@redhat.com>
6467
6468 * python/py-breakpoint.c (bppy_get_commands): Use
6469 explicit, unconditional return.
6470 * python/py-frame.c (frapy_read_var): Likewise.
6471 * python/python.c (gdbpy_decode_line): Likewise.
6472
6473 2013-05-30 Tom Tromey <tromey@redhat.com>
6474
6475 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Call
6476 do_cleanups on all return paths.
6477
6478 2013-05-30 Tom Tromey <tromey@redhat.com>
6479
6480 * top.c (execute_command): Discard 'cleanup_if_error' cleanups.
6481
6482 2013-05-30 Tom Tromey <tromey@redhat.com>
6483
6484 * stabsread.c (read_struct_type): Call do_cleanups along
6485 all return paths.
6486
6487 2013-05-30 Maciej W. Rozycki <macro@codesourcery.com>
6488
6489 * mips-linux-tdep.c: Adjust formatting throughout.
6490
6491 2013-05-30 Tom Tromey <tromey@redhat.com>
6492
6493 * mipsread.c (read_alphacoff_dynamic_symtab): Call do_cleanups
6494 along all return paths.
6495
6496 2013-05-30 Tom Tromey <tromey@redhat.com>
6497
6498 * symfile.c (find_separate_debug_file): Call do_cleanups
6499 along all return paths.
6500
6501 2013-05-30 Tom Tromey <tromey@redhat.com>
6502
6503 * symtab.c (search_symbols): Introduce a null cleanup for
6504 'retval_chain'.
6505
6506 2013-05-30 Tom Tromey <tromey@redhat.com>
6507
6508 * python/py-value.c (valpy_binop): Call do_cleanups before
6509 exiting loop.
6510
6511 2013-05-30 Tom Tromey <tromey@redhat.com>
6512
6513 * python/py-prettyprint.c (print_children): Remove extra
6514 do_cleanups call.
6515
6516 2013-05-30 Tom Tromey <tromey@redhat.com>
6517
6518 * python/py-frame.c (frapy_read_var): Call do_cleanups along
6519 all return paths.
6520
6521 2013-05-30 Tom Tromey <tromey@redhat.com>
6522
6523 * python/py-breakpoint.c (bppy_get_commands): Call do_cleanups
6524 along all return paths.
6525
6526 2013-05-30 Tom Tromey <tromey@redhat.com>
6527
6528 * cli/cli-logging.c (set_logging_redirect): Unconditionally
6529 call do_cleanups.
6530
6531 2013-05-30 Tom Tromey <tromey@redhat.com>
6532
6533 * varobj.c (c_value_of_root): Call do_cleanups along all
6534 return paths.
6535
6536 2013-05-30 Tom Tromey <tromey@redhat.com>
6537
6538 * tracepoint.c (trace_dump_command): Unconditionally call
6539 do_cleanups.
6540
6541 2013-05-30 Tom Tromey <tromey@redhat.com>
6542
6543 * breakpoint.c (output_thread_groups, parse_cmd_to_aexpr): Call
6544 do_cleanups earlier.
6545
6546 2013-05-30 Tom Tromey <tromey@redhat.com>
6547
6548 * machoread.c (macho_symfile_read): Assign first cleanup to
6549 'back_to'.
6550
6551 2013-05-30 Tom Tromey <tromey@redhat.com>
6552
6553 * m32r-rom.c (m32r_load): Call do_cleanups at all returns.
6554
6555 2013-05-30 Tom Tromey <tromey@redhat.com>
6556
6557 * mi/mi-main.c (list_available_thread_groups): Call do_cleanups.
6558
6559 2013-05-30 Tom Tromey <tromey@redhat.com>
6560
6561 * inf-ptrace.c (inf_ptrace_create_inferior): Unconditionally
6562 call discard_cleanups.
6563 (inf_ptrace_attach): Likewise.
6564
6565 2013-05-30 Tom Tromey <tromey@redhat.com>
6566
6567 * remote-mips.c (mips_exit_debug): Call do_cleanups on all
6568 return paths.
6569 (mips_initialize): Likewise.
6570 (common_open): Call do_cleanups.
6571
6572 2013-05-30 Tom Tromey <tromey@redhat.com>
6573
6574 * utils.c (internal_vproblem): Call do_cleanups.
6575
6576 2013-05-30 Tom Tromey <tromey@redhat.com>
6577
6578 * linespec.c (find_linespec_symbols): Don't reassign to 'cleanup'.
6579
6580 2013-05-30 Tom Tromey <tromey@redhat.com>
6581
6582 * cli/cli-script.c (setup_user_args): Don't return after error.
6583
6584 2013-05-30 Tom Tromey <tromey@redhat.com>
6585
6586 * somread.c (som_symtab_read): Call do_cleanups.
6587
6588 2013-05-30 Tom Tromey <tromey@redhat.com>
6589
6590 * printcmd.c (print_command_1): Unconditionally call do_cleanups.
6591
6592 2013-05-30 Tom Tromey <tromey@redhat.com>
6593
6594 * cli/cli-cmds.c (cd_command, alias_command): Call do_cleanups.
6595 * cli/cli-dump.c (restore_binary_file): Call do_cleanups.
6596 * interps.c (interpreter_exec_cmd): Call do_cleanups.
6597 * source.c (show_substitute_path_command): Call do_cleanups.
6598 (unset_substitute_path_command, set_substitute_path_command):
6599 Likewise.
6600 * symfile.c (load_command): Call do_cleanups.
6601
6602 2013-05-30 Tom Tromey <tromey@redhat.com>
6603
6604 * contrib/cleanup_check.py: New file.
6605 * contrib/gcc-with-excheck: Add option parsing.
6606
6607 2013-05-30 Joel Brobecker <brobecker@adacore.com>
6608
6609 * windows-nat.c (windows_delete_thread): Add missing space
6610 in cast expression.
6611
6612 2013-05-30 Hafiz Abid Qadeer <abidh@codesourcery.com>
6613
6614 * inferior.c (top level): Include tilde.h.
6615 (add_inferior_command): Call tilde_expand on the value of 'exec'
6616 argument.
6617
6618 2013-05-30 Pedro Alves <pedro@codesourcery.com>
6619 Yao Qi <yao@codesourcery.com>
6620
6621 * tracepoint.c (encode_actions_1): Remove parameter 't'.
6622 Caller update.
6623 (encode_actions): Likewise.
6624 * remote.c (remote_download_tracepoint): Caller update.
6625 * tracepoint.h (encode_actions): Update declaration.
6626
6627 2013-05-30 Pedro Alves <palves@redhat.com>
6628
6629 * python/python-internal.h (gdb_Py_DECREF): Cast OP to PyObject
6630 pointer.
6631
6632 2013-05-30 Yao Qi <yao@codesourcery.com>
6633
6634 * remote.c (remote_check_symbols): Remove unused parameter
6635 'objfile'.
6636 Declaration update.
6637 (remote_start_remote, remote_new_objfile): Caller update.
6638
6639 2013-05-30 Yao Qi <yao@codesourcery.com>
6640
6641 * mi/mi-cmds.c (mi_cmds): Define MI command
6642 '-exec-arguments' by macro DEF_MI_CMD_CLI_1 instead of
6643 DEF_MI_CMD_CLI.
6644
6645 2013-05-29 Pedro Alves <palves@redhat.com>
6646
6647 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint)
6648 (remote_insert_watchpoint, remote_remove_watchpoint)
6649 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint)
6650 (remote_verify_memory, compare_sections_command)
6651 (remote_search_memory): Set the general process/thread on the
6652 remote side.
6653
6654 2013-05-29 Pedro Alves <palves@redhat.com>
6655
6656 * aarch64-tdep.c: Don't include "features/aarch64-without-fpu.c".
6657 (_initialize_aarch64_tdep): Don't call
6658 initialize_tdesc_aarch64_without_fpu.
6659 * features/Makefile (WHICH): Remove reference to
6660 aarch64-without-fpu.
6661 * features/aarch64-without-fpu.c: Delete file.
6662 * regformats/aarch64-without-fpu.dat: Delete file.
6663
6664 2013-05-28 Yao Qi <yao@codesourcery.com>
6665
6666 * tracepoint.c (stringify_collection_list): Remove parameter
6667 'string'.
6668 (encode_actions): Caller update. Remove local variables.
6669
6670 2013-05-24 Yao Qi <yao@codesourcery.com>
6671
6672 * tracepoint.c (TFILE_PID): Remove.
6673 (tfile_open): Don't add thread and inferior.
6674 (tfile_close): Don't set 'inferior_ptid'. Don't call
6675 exit_inferior_silent.
6676 (tfile_thread_alive): Remove.
6677 (init_tfile_ops): Don't set field 'to_thread_alive' of
6678 tfile_ops.
6679
6680 2013-05-23 Doug Evans <dje@google.com>
6681
6682 * contrib/cc-with-tweaks.sh (-p): Handle no dwo files.
6683
6684 2013-05-23 Pedro Alves <palves@redhat.com>
6685
6686 * common/filestuff.c [USE_WIN32API]: Define HAVE_SOCKETS.
6687 [HAVE_SYS_SOCKET_H]: Define HAVE_SOCKETS.
6688 (socket_mark_cloexec, gdb_socketpair_cloexec, gdb_socket_cloexec):
6689 Only define if HAVE_SOCKETS is defined.
6690 * configure.ac: Check for sys/socket.h.
6691 * config.in, configure: Regenerate.
6692
6693 2013-05-23 Pedro Alves <palves@redhat.com>
6694
6695 * dwarf2read.c (create_dwp_hash_table, create_dwo_in_dwp)
6696 (open_and_init_dwp_file): Use %s/pulongest instead of %u for
6697 printing uint32_t variables.
6698
6699 2013-05-23 Pedro Alves <palves@redhat.com>
6700
6701 * NEWS: Mention GDBserver range stepping support.
6702
6703 2013-05-23 Yao Qi <yao@codesourcery.com>
6704 Pedro Alves <palves@redhat.com>
6705
6706 * gdbthread.h (struct thread_control_state) <may_range_step>: New
6707 field.
6708 * infcmd.c (step_once, until_next_command): Enable range stepping.
6709 * infrun.c (displaced_step_prepare): Disable range stepping.
6710 (resume): Disable range stepping if stepping over a breakpoint or
6711 we have software watchpoints. If range stepping is enabled,
6712 assert the thread is in the stepping range.
6713 (clear_proceed_status_thread): Clear may_range_step.
6714 (handle_inferior_event): Disable range stepping as soon as we know
6715 the thread that hit the event. Re-enable it whenever we're going
6716 to step with a step range.
6717 * remote.c (struct vCont_action_support) <r>: New field.
6718 (use_range_stepping): New global.
6719 (remote_vcont_probe): Handle 'r' action.
6720 (append_resumption): Append an 'r' action if the thread may range
6721 step.
6722 (show_range_stepping): New function.
6723 (set_range_stepping): New function.
6724 (_initialize_remote): Call add_setshow_boolean_cmd to register the
6725 'set range-stepping' and 'show range-stepping' commands.
6726 * NEWS: Mention range stepping, the new vCont;r action, and the
6727 new "set/show range-stepping" commands.
6728
6729 2013-05-23 Yao Qi <yao@codesourcery.com>
6730 Pedro Alves <palves@redhat.com>
6731
6732 * remote.c (struct vCont_action_support): New struct.
6733 (struct remote_state) <support_vCont_t>: Remove field.
6734 <vCont_actions_support>: New field.
6735 (remote_vcont_probe, remote_stop_ns): Update.
6736
6737 2013-05-23 Yao Qi <yao@codesourcery.com>
6738 Pedro Alves <palves@redhat.com>
6739
6740 * gdbthread.h (pc_in_thread_step_range): New declaration.
6741 * thread.c (pc_in_thread_step_range): New function.
6742 * infrun.c (handle_inferior_event): Use it.
6743
6744 2013-05-23 Joel Brobecker <brobecker@adacore.com>
6745
6746 * mi/mi-cmd-break.c (mi_argv_to_format): Use xsnprintf instead
6747 of sprintf.
6748
6749 2013-05-22 Keith Seitz <keiths@redhat.com>
6750
6751 * ada-lang.c (is_known_support_routine): Add explicit free of
6752 'func_name' from find_frame_funname.
6753 (ada_unhandled_exception_name_addr_from_raise): Add cleanups
6754 for func_name from find_frame_funname.
6755 * python/py-frame.c (frapy_name): Add explicit free of
6756 'name' from find_frame_funname.
6757 * stack.c (find_frame_funname): Add comment explaining that
6758 funcp must be freed by the caller.
6759 Return copy of symbol names instead of pointers.
6760 (print_frame): Add a cleanup for 'funname' from
6761 find_frame_funname.
6762 * stack.h (find_frame_funname): Remove "const" from
6763 'funname' parameter.
6764
6765 2013-05-22 Tom Tromey <tromey@redhat.com>
6766
6767 PR c++/15401:
6768 * c-valprint.c (c_value_print): Use value_addr for
6769 references. Convert back to reference type with value_ref.
6770
6771 2013-05-22 Eli Zaretskii <eliz@gnu.org>
6772
6773 * windows-nat.c (handle_unload_dll): Don't call solib_add for the
6774 unloaded DLL, it will be done by handle_solib_event. See
6775 http://sourceware.org/ml/gdb-patches/2013-05/msg00713.html for the
6776 details.
6777
6778 2013-05-22 Phil Muldoon <pmuldoon@redhat.com>
6779
6780 * ui-out.c: Create typedef ui_out_level_p and define vector
6781 operations for that type.
6782 (struct ui_out): Use a vector instead of an array.
6783 (current_level): Return level from a vector.
6784 (push_level): Create a level in a vector.
6785 (pop_level): Delete a level in a vector.
6786 (ui_out_new): Create initial level zero level, and store in a
6787 vector.
6788 (ui_out_destroy): Add vector cleanup.
6789
6790 2013-05-22 Pedro Alves <palves@redhat.com>
6791
6792 * python/python-internal.h (gdb_Py_DECREF): Tag with
6793 "ARI: editCase function".
6794
6795 2013-05-21 Paul Pluzhnikov <ppluzhnikov@google.com>
6796
6797 * solib-svr4.c (svr4_free_so): Protect against NULL dereference.
6798
6799 2013-05-21 Pedro Alves <palves@redhat.com>
6800
6801 * python/py-prettyprint.c (apply_val_pretty_printer): Check
6802 whether PRINTER is NULL before installing a Py_DECREF cleanup.
6803 * python/py-utils.c (py_decref): Don't check for NULL before
6804 calling Py_DECREF.
6805
6806 2013-05-21 Pedro Alves <palves@redhat.com>
6807
6808 * python/py-utils.c (py_decref): Remove extra braces.
6809 (gdb_pymodule_addobject): Remove extra braces.
6810 * python-internal.h (gdb_Py_DECREF): New static inline function.
6811 (Py_DECREF): Redefine as calling gdb_Py_DECREF.
6812
6813 2013-05-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6814
6815 * breakpoints.c (detach_breakpoints): Do not
6816 detach breakpoints locations with loc_type bp_loc_other.
6817
6818 2013-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6819
6820 Workaround Python 2.6.
6821 * python/py-utils.c (gdb_pymodule_addobject): Wrap Py_DECREF into
6822 a block.
6823
6824 2013-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6825
6826 Code cleanup: constification.
6827 * solib.c (solib_ops): Make return type and ops variable type const.
6828 (set_solib_ops): Make the new_ops parameter and ops variable const.
6829 (solib_find, solib_map_sections, clear_so, free_so, update_solib_list)
6830 (solib_add, solib_keep_data_in_core, clear_solib)
6831 (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
6832 (reload_shared_libraries, solib_global_lookup): Make the ops variable
6833 const.
6834 * solib.h (set_solib_ops): Make the new_ops parameter const.
6835
6836 2013-05-21 Joel Brobecker <brobecker@adacore.com>
6837
6838 * data-directory/Makefile.in (SYSTEM_GDBINIT_SRCDIR): New
6839 variable.
6840 (VPATH): Add SYSTEM_GDBINIT_SRCDIR.
6841 (SYSTEM_GDBINIT_DIR, SYSTEM_GDBINIT_INSTALL_DIR)
6842 (SYSTEM_GDBINIT_FILES): New variables.
6843 (all): Add stamp-system-gdbinit.
6844 (stamp-system-gdbinit): New rule.
6845 (clean-system-gdbinit, install-system-gdbinit)
6846 (uninstall-system-gdbinit): New rules. Make them .PHONY.
6847 (install-only): Add dependency on install-system-gdbinit.
6848 (uninstall): Add dependency on uninstall-system-gdbinit.
6849 (clean): Add dependency on clean-system-gdbinit.
6850 * system-gdbinit/elinos.py: New file.
6851 * system-gdbinit/wrs-linux.py: New file.
6852
6853 2013-05-21 Joel Brobecker <brobecker@adacore.com>
6854
6855 * ada-lang.c (old_renaming_is_invisible): Fix cleanup leak.
6856
6857 2013-05-21 Hui Zhu <hui@codesourcery.com>
6858
6859 * breakpoint.c (dprintf_breakpoint_ops): Remove its static.
6860 * breakpoint.h (dprintf_breakpoint_ops): Add extern.
6861 * mi/mi-cmd-break.c (ctype.h): New include.
6862 (gdb_obstack.h): New include.
6863 (mi_argv_to_format, mi_cmd_break_insert_1): New.
6864 (mi_cmd_break_insert): Call mi_cmd_break_insert_1.
6865 (mi_cmd_dprintf_insert): New.
6866 * mi/mi-cmds.c (mi_cmds): Add "dprintf-insert".
6867 * mi/mi-cmds.h (mi_cmd_dprintf_insert): New extern.
6868
6869 2013-05-20 Tom Tromey <tromey@redhat.com>
6870
6871 * python/py-prettyprint.c (search_pp_list): Decref 'attr'.
6872
6873 2013-05-20 Tom Tromey <tromey@redhat.com>
6874
6875 * python/py-value.c (valpy_get_dynamic_type): Simplify
6876 dynamic_type assignment. Use Py_XINCREF.
6877
6878 2013-05-20 Tom Tromey <tromey@redhat.com>
6879
6880 * python/py-type.c (typy_fields): Unconditionally decref 'r'.
6881
6882 2013-05-20 Tom Tromey <tromey@redhat.com>
6883
6884 * python/py-frame.c (frapy_older, frapy_newer, gdbpy_newest_frame)
6885 (gdbpy_selected_frame): Move object-construction code
6886 out of TRY_CATCH.
6887
6888 2013-05-20 Tom Tromey <tromey@redhat.com>
6889
6890 * python/py-arch.c (gdbpy_initialize_arch): Use
6891 gdb_pymodule_addobject.
6892 * python/py-block.c (gdbpy_initialize_blocks): Use
6893 gdb_pymodule_addobject.
6894 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Use
6895 gdb_pymodule_addobject.
6896 * python/py-cmd.c (gdbpy_initialize_breakpoints): Use
6897 gdb_pymodule_addobject.
6898 * python/py-event.c (gdbpy_initialize_event_generic): Use
6899 gdb_pymodule_addobject.
6900 * python/py-evtregistry.c (gdbpy_initialize_eventregistry): Use
6901 gdb_pymodule_addobject.
6902 * python/py-evts.c (add_new_registry): Use
6903 gdb_pymodule_addobject.
6904 (gdbpy_initialize_py_events): Likewise.
6905 * python/py-finishbreakpoint.c
6906 (gdbpy_initialize_finishbreakpoints): Use
6907 gdb_pymodule_addobject.
6908 * python/py-frame.c (gdbpy_initialize_frames): Use
6909 gdb_pymodule_addobject.
6910 * python/py-function.c (gdbpy_initialize_functions): Use
6911 gdb_pymodule_addobject.
6912 * python/py-inferior.c (gdbpy_initialize_inferior): Use
6913 gdb_pymodule_addobject.
6914 * python/py-infthread.c (gdbpy_initialize_thread): Use
6915 gdb_pymodule_addobject.
6916 * python/py-objfile.c (gdbpy_initialize_objfile): Use
6917 gdb_pymodule_addobject.
6918 * python/py-param.c (gdbpy_initialize_parameters): Use
6919 gdb_pymodule_addobject.
6920 * python/py-progspace.c (gdbpy_initialize_pspace): Use
6921 gdb_pymodule_addobject.
6922 * python/py-symbol.c (gdbpy_initialize_symbols): Use
6923 gdb_pymodule_addobject.
6924 * python/py-symtab.c (gdbpy_initialize_symtabs): Use
6925 gdb_pymodule_addobject.
6926 * python/py-type.c (gdbpy_initialize_types): Use
6927 gdb_pymodule_addobject.
6928 * python/py-utils.c (gdb_pymodule_addobject): New function.
6929 * python/py-value.c (gdbpy_initialize_values): Use
6930 gdb_pymodule_addobject.
6931 * python/python-internal.h (gdb_pymodule_addobject): Declare.
6932 * python/python.c (_initialize_python): Use
6933 gdb_pymodule_addobject.
6934
6935 2013-05-20 Tom Tromey <tromey@redhat.com>
6936
6937 * python/py-cmd.c (cmdpy_completer): Use explicit decref.
6938 * python/py-param.c (get_set_value, get_show_value): Use
6939 explicit decrefs.
6940 * python/python.c (start_type_printers, apply_type_printers):
6941 Use explicit decrefs.
6942
6943 2013-05-20 Tom Tromey <tromey@redhat.com>
6944
6945 * python/py-evts.c (gdbpy_initialize_py_events): Don't
6946 incref the module.
6947
6948 2013-05-20 Tom Tromey <tromey@redhat.com>
6949
6950 * python/python.c (gdbpy_run_events): Decref the result
6951 of PyObject_CallObject.
6952
6953 2013-05-20 Tom Tromey <tromey@redhat.com>
6954
6955 * python/py-symtab.c (set_sal): Use
6956 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION. Return -1 on error.
6957 (symtab_and_line_to_sal_object): Update.
6958
6959 2013-05-20 Tom Tromey <tromey@redhat.com>
6960
6961 * python/py-param.c (compute_enum_values): Decref 'item'.
6962
6963 2013-05-20 Tom Tromey <tromey@redhat.com>
6964
6965 * mi/mi-main.c: Include python-internal.h.
6966 (mi_cmd_list_features): Check gdb_python_initialized.
6967 * python/py-inferior.c (python_on_normal_stop, python_on_resume)
6968 (python_inferior_exit, python_new_objfile, add_thread_object)
6969 (delete_thread_object, py_free_inferior): Check
6970 gdb_python_initialized.
6971 * python/py-prettyprint.c (apply_val_pretty_printer): Check
6972 gdb_python_initialized.
6973 * python/py-type.c (save_objfile_types): Check
6974 gdb_python_initialized.
6975 * python/python-internal.h (gdb_python_initialized): Declare.
6976 * python/python.c (ensure_python_env): Throw exception if
6977 Python not initialized.
6978 (before_prompt_hook, source_python_script_for_objfile)
6979 (start_type_printers, apply_type_printers,
6980 free_type_printers): Check gdb_python_initialized.
6981 * varobj.c (varobj_get_display_hint)
6982 (dynamic_varobj_has_child_method, update_dynamic_varobj_children)
6983 (install_new_value_visualizer, varobj_set_visualizer)
6984 (value_get_print_value): Check gdb_python_initialized.
6985
6986 2013-05-20 Tom Tromey <tromey@redhat.com>
6987
6988 * python/py-arch.c (gdbpy_initialize_arch): Return 'int'.
6989 Check errors.
6990 * python/py-auto-load.c (gdbpy_initialize_auto_load): Return 'int'.
6991 * python/py-block.c (gdbpy_initialize_blocks): Return 'int'.
6992 Check errors.
6993 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Return 'int'.
6994 Check errors.
6995 * python/py-cmd.c (gdbpy_initialize_commands): Return 'int'.
6996 Check errors.
6997 * python/py-event.c (gdbpy_initialize_event): Return 'int'.
6998 Check errors.
6999 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Change generated
7000 init function to return 'int'.
7001 * python/py-evtregistry.c (gdbpy_initialize_eventregistry):
7002 Return 'int'. Check errors.
7003 * python/py-evts.c (gdbpy_initialize_py_events): Return 'int'.
7004 Check errors.
7005 * python/py-finishbreakpoint.c (gdbpy_initialize_finishbreakpoints):
7006 Return 'int'. Check errors.
7007 * python/py-frame.c (gdbpy_initialize_frames): Return 'int'.
7008 Check errors.
7009 * python/py-function.c (gdbpy_initialize_functions): Return 'int'.
7010 Check errors.
7011 * python/py-gdb-readline.c (gdbpy_initialize_gdb_readline):
7012 Check errors.
7013 * python/py-inferior.c (gdbpy_initialize_inferior): Return 'int'.
7014 Check errors.
7015 * python/py-infthread.c (gdbpy_initialize_thread): Return 'int'.
7016 Check errors.
7017 * python/py-lazy-string.c (gdbpy_initialize_lazy_string): Return 'int'.
7018 Check errors.
7019 * python/py-objfile.c (gdbpy_initialize_objfile): Return 'int'.
7020 Check errors.
7021 * python/py-param.c (gdbpy_initialize_parameters): Return 'int'.
7022 Check errors.
7023 * python/py-progspace.c (gdbpy_initialize_pspace): Return 'int'.
7024 Check errors.
7025 * python/py-symbol.c (gdbpy_initialize_symbols): Return 'int'.
7026 Check errors.
7027 * python/py-symtab.c (gdbpy_initialize_symtabs): Return 'int'.
7028 Check errors.
7029 * python/py-type.c (gdbpy_initialize_types): Return 'int'.
7030 Check errors.
7031 * python/py-value.c (gdbpy_initialize_values): Return 'int'.
7032 Check errors.
7033 * python/python-internal.h (gdbpy_initialize_auto_load,
7034 gdbpy_initialize_values, gdbpy_initialize_frames,
7035 gdbpy_initialize_symtabs, gdbpy_initialize_commands,
7036 gdbpy_initialize_symbols, gdbpy_initialize_symtabs,
7037 gdbpy_initialize_blocks, gdbpy_initialize_types,
7038 gdbpy_initialize_functions, gdbpy_initialize_pspace,
7039 gdbpy_initialize_objfile, gdbpy_initialize_breakpoints,
7040 gdbpy_initialize_finishbreakpoints,
7041 gdbpy_initialize_lazy_string, gdbpy_initialize_parameters,
7042 gdbpy_initialize_thread, gdbpy_initialize_inferior,
7043 gdbpy_initialize_eventregistry, gdbpy_initialize_event,
7044 gdbpy_initialize_py_events, gdbpy_initialize_stop_event,
7045 gdbpy_initialize_signal_event,
7046 gdbpy_initialize_breakpoint_event,
7047 gdbpy_initialize_continue_event,
7048 gdbpy_initialize_exited_event, gdbpy_initialize_thread_event,
7049 gdbpy_initialize_new_objfile_event, gdbpy_initialize_arch):
7050 Update. Use CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
7051 * python/python.c (gdb_python_initialized): New global.
7052 (gdbpy_initialize_events): Return 'int'. Check errors.
7053 (_initialize_python): Check errors. Set
7054 gdb_python_initialized.
7055
7056 2013-05-20 Tom Tromey <tromey@redhat.com>
7057
7058 * python/py-finishbreakpoint.c (bpfinishpy_out_of_scope):
7059 Decref the reslut of PyObject_CallMethod.
7060
7061 2013-05-20 Tom Tromey <tromey@redhat.com>
7062
7063 * python/py-event.c (gdbpy_initialize_event_generic): Return
7064 early if PyType_Ready fails.
7065
7066 2013-05-20 Tom Tromey <tromey@redhat.com>
7067
7068 * python/py-type.c (make_fielditem): Add gdb_assert_not_reached
7069 as 'default' in the switch.
7070
7071 2013-05-20 Tom Tromey <tromey@redhat.com>
7072
7073 * python/py-inferior.c (gdbpy_inferiors): Update. Hoist
7074 get_addr_from_python calls out of TRY_CATCH.
7075 (infpy_write_memory, infpy_search_memory): Likewise.
7076 * python/py-utils.c (get_addr_from_python): Return negative
7077 value on error. Use TRY_CATCH.
7078 * python/python-internal.h (get_addr_from_python): Use
7079 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
7080
7081 2013-05-20 Tom Tromey <tromey@redhat.com>
7082
7083 * python/py-event.c (evpy_emit_event): Decref the
7084 result of PyObject_CallFunctionObjArgs.
7085
7086 2013-05-20 Tom Tromey <tromey@redhat.com>
7087
7088 * python/py-cmd.c (cmdpy_completer): Use iterator protocol.
7089 Correctly decref.
7090
7091 2013-05-20 Tom Tromey <tromey@redhat.com>
7092
7093 * python/py-cmd.c (cmdpy_init): Decref 'ds_obj'.
7094
7095 2013-05-20 Tom Tromey <tromey@redhat.com>
7096
7097 * python/py-event.h (gdbpy_initialize_event_generic): Use
7098 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
7099 * python/py-evts.c (add_new_registry): Use
7100 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
7101 * python/python-internal.h
7102 (CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION): New macro.
7103
7104 2013-05-20 Tom Tromey <tromey@redhat.com>
7105
7106 * python/py-arch.c (archpy_disassemble): Update.
7107 * python/py-type.c (typy_get_composite, typy_lookup_typename)
7108 (typy_lookup_type): Use GDB_PY_HANDLE_EXCEPTION.
7109 * python/py-utils.c (gdbpy_convert_exception): Return 'void'.
7110 * python/python-internal.h (CPYCHECKER_SETS_EXCEPTION): New
7111 macro.
7112 (GDB_PY_HANDLE_EXCEPTION): Update.
7113 (gdbpy_convert_exception): Update. Use CPYCHECKER_SETS_EXCEPTION.
7114
7115 2013-05-20 Tom Tromey <tromey@redhat.com>
7116
7117 * python/python-internal.h (events_object_type): Remove.
7118
7119 2013-05-20 Tom Tromey <tromey@redhat.com>
7120
7121 * python/py-event.h (evpy_emit_event): Use
7122 CPYCHECKER_STEALS_REFERENCE_TO_ARG.
7123 * python/python-internal.h (CPYCHECKER_STEALS_REFERENCE_TO_ARG):
7124 New macro.
7125
7126 2013-05-20 Tom Tromey <tromey@redhat.com>
7127
7128 * py-evtregistry.c (create_event_object): Decref
7129 eventregistry_object if PyList_New fails.
7130
7131 2013-05-20 Tom Tromey <tromey@redhat.com>
7132
7133 * py-cmd.c (gdbpy_string_to_argv): Check result of
7134 PyList_New.
7135
7136 2013-05-20 Tom Tromey <tromey@redhat.com>
7137
7138 * python/python.c (before_prompt_hook): Add cleanup to
7139 decref 'hook'.
7140
7141 2013-05-20 Tom Tromey <tromey@redhat.com>
7142
7143 * python/py-function.c (fnpy_init): Decref result of
7144 PyObject_GetAttrString.
7145
7146 2013-05-20 Tom Tromey <tromey@redhat.com>
7147
7148 * python/py-threadevent.c (get_event_thread): Use
7149 CPYCHECKER_RETURNS_BORROWED_REF.
7150 * python/python-internal.h (CPYCHECKER_RETURNS_BORROWED_REF):
7151 New define.
7152 (pspace_to_pspace_object, objfile_to_objfile_object)
7153 (find_thread_object): Use it.
7154
7155 2013-05-20 Tom Tromey <tromey@redhat.com>
7156
7157 * python/py-arch.c (arch_object_type): Use
7158 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7159 * python/py-block.c (block_syms_iterator_object_type):
7160 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7161 * python/py-bpevent.c (breakpoint_event_object_type):
7162 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7163 * python/py-cmd.c (cmdpy_object_type): Use
7164 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7165 * python/py-continueevent.c (continue_event_object_type):
7166 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7167 * python/py-event.h (GDBPY_NEW_EVENT_TYPE):
7168 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7169 * python/py-events.h (thread_event_object_type):
7170 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7171 * python/py-evtregistry.c (eventregistry_object_type): Use
7172 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7173 * python/py-exitedevent.c (exited_event_object_type):
7174 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7175 * python/py-finishbreakpoint.c (finish_breakpoint_object_type):
7176 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7177 * python/py-function.c (fnpy_object_type): Use
7178 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7179 * python/py-inferior.c (inferior_object_type, membuf_object_type):
7180 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7181 * python/py-infthread.c (thread_object_type): Use
7182 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7183 * python/py-lazy-string.c (lazy_string_object_type):
7184 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7185 * python/py-newobjfileevent.c (new_objfile_event_object_type):
7186 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7187 * python/py-objfile.c (objfile_object_type): Use
7188 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7189 * python/py-param.c (parmpy_object_type):
7190 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7191 * python/py-progspace.c (pspace_object_type):
7192 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7193 * python/py-signalevent.c (signal_event_object_type):
7194 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7195 * python/py-symtab.c (symtab_object_type, sal_object_type): Use
7196 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7197 * python/py-type.c (type_object_type, field_object_type)
7198 (type_iterator_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7199 * python/py-internal.h (CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF): New
7200 define.
7201 (value_object_type, block_object_type, symbol_object_type)
7202 (event_object_type, stop_event_object_type, breakpoint_object_type)
7203 (frame_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7204
7205 2013-05-20 Andreas Tobler <andreas@fgznet.ch>
7206
7207 * Makefile.in (ALL_TARGET_OBS): Add ppcfbsd-tdep.o.
7208 (ALLDEPFILES): Add ppcfbsd-nat.c and ppcfbsd-tdep.c.
7209
7210 2013-05-20 Doug Evans <dje@google.com>
7211
7212 When reading CU, stay in DWO. Be more tolerent of bad debug info.
7213 For Fission.
7214 * dwarf2read.c (struct dwarf2_per_cu_data): New member
7215 reading_dwo_directly.
7216 (struct signatured_type): New member dwo_unit.
7217 (struct die_reader_specs): New member comp_dir.
7218 (create_signatured_type_table_from_index): Use malloc for
7219 all_type_units instead of objfile's obstack.
7220 (create_all_type_units): Ditto.
7221 (fill_in_sig_entry_from_dwo_entry): New function.
7222 (add_type_unit): New function.
7223 (lookup_dwo_signatured_type): New function.
7224 (lookup_dwp_signatured_type): New function.
7225 (lookup_signatured_type): New arg cu. All callers updated.
7226 (init_cu_die_reader): Initialize comp_dir.
7227 (read_cutu_die_from_dwo): New arg stub_comp_dir. All callers updated.
7228 Change assert of matching type signatures to call error on mismatch.
7229 (lookup_dwo_unit): Add assert.
7230 (init_tu_and_read_dwo_dies): New function.
7231 (init_cutu_and_read_dies): Call it.
7232 (build_type_unit_groups): Handle case of no type unit groups created.
7233 (hash_dwo_file, eq_dwo_file): Handle missing comp_dir.
7234 (lookup_dwo_cutu): Tweak complaint.
7235 (dwarf2_free_abbrev_table): Check for NULL abbrev_table.
7236 (dwarf2_per_objfile_free): Free all_type_units.
7237
7238 2013-05-20 Joel Brobecker <brobecker@adacore.com>
7239
7240 * windows-nat.c (handle_unload_dll): Add missing empty line.
7241
7242 2013-05-20 Joel Brobecker <brobecker@adacore.com>
7243
7244 * dwarf2read.c (prototyped_function_p): New function.
7245 (read_subroutine_type): Use it.
7246
7247 2013-05-20 Joel Brobecker <brobecker@adacore.com>
7248
7249 * rs6000-aix-tdep.c: De-indent some example code provided
7250 as a comment.
7251
7252 2013-05-17 Edjunior Machado <emachado@linux.vnet.ibm.com>
7253
7254 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Check if the
7255 region is ok for a hardware watchpoint using the new ptrace interface
7256 on Power servers.
7257
7258 2013-05-17 Doug Evans <dje@google.com>
7259
7260 * NEWS: Mention new maintenance commands check-symtabs, and
7261 expand-symtabs, and renamed check-psymtabs.
7262 * psymtab.c (maintenance_check_psymtabs): Renamed from
7263 maintenance_check_symtabs. Only process already-expanded symbol
7264 tables.
7265 (_initialize_psymtab): Update.
7266 * symmisc.c (maintenance_check_symtabs): New function.
7267 (maintenance_expand_name_matcher): New function
7268 (maintenance_expand_file_matcher): New function
7269 (maintenance_expand_symtabs): New function.
7270 (_initialize_symmisc): Add "mt check-symtabs" and "mt expand-symtabs"
7271 commands.
7272
7273 2013-05-17 Tom Tromey <tromey@redhat.com>
7274
7275 * python/py-inferior.c (infpy_read_memory): Don't call
7276 PyErr_SetString if PyObject_New fails.
7277 * python/py-frame.c (frame_info_to_frame_object): Don't call
7278 PyErr_SetString if PyObject_New fails.
7279
7280 2013-05-17 Pavel Chupin <pavel.v.chupin@intel.com>
7281
7282 * acinclude.m4: Add check for dlopen in libdl.
7283 * configure.ac: Ditto.
7284 * configure: Regenerate.
7285
7286 2013-05-17 Phil Muldoon <pmuldoon@redhat.com>
7287
7288 * frame.c (frame_stash): Convert to htab.
7289 (frame_addr_hash): New function.
7290 (frame_addr_hash_eq): New function.
7291 (frame_stash_create): Convert function to create
7292 a hash table.
7293 (frame_stash_add): Convert function to add an entry to a hash
7294 table.
7295 (frame_stash_find): Convert function to search the hash table.
7296 (frame_stash_invalidate): Convert function to empty the hash
7297 table.
7298 (get_frame_id): Only add to stash if a frame_id is created.
7299 (_initialize_frame): Call frame_stash_create.
7300
7301 2013-05-16 Yue Lu <hacklu.newborn@gmail.com> (tiny change)
7302
7303 * configure.ac: Ensure MIG is available when building for GNU Hurd
7304 hosts.
7305 * configure: Regenerate.
7306
7307 2013-05-16 Joel Brobecker <brobecker@adacore.com>
7308
7309 * dwarf2read.c (set_cu_language): Add DW_LANG_UPC handling.
7310
7311 2013-05-16 Joel Brobecker <brobecker@adacore.com>
7312
7313 * ada-lang.c (ada_make_symbol_completion_list): Make sure
7314 all cleanups are done before returning from this function.
7315
7316 2013-05-15 Joel Brobecker <brobecker@adacore.com>
7317
7318 * utils.h: #include "exceptions.h".
7319 (enum errors): Remove partial declaration.
7320
7321 2013-05-15 Joel Brobecker <brobecker@adacore.com>
7322
7323 * gdbarch.sh (core_xfer_shared_libraries_aix): New method.
7324 * gdbarch.h, gdbarch.c: Regenerate.
7325 * corelow.c (core_xfer_partial): Add TARGET_OBJECT_LIBRARIES_AIX
7326 handling.
7327
7328 * rs6000-aix-tdep.h: New file.
7329 * Makefile.in (HFILES_NO_SRCDIR): Add rs6000-aix-tdep.h.
7330 * rs6000-aix-tdep.c: Include "rs6000-aix-tdep.h" and
7331 "xml-utils.h".
7332 (struct field_info, struct ld_info_desc): New types.
7333 (ld_info32_desc, ld_info64_desc): New static constants.
7334 (struct ld_info): New type.
7335 (rs6000_aix_extract_ld_info): New function.
7336 (rs6000_aix_shared_library_to_xml): Likewise.
7337 (rs6000_aix_ld_info_to_xml): Likewise.
7338 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
7339 (rs6000_aix_init_osabi): Add call to
7340 set_gdbarch_core_xfer_shared_libraries_aix.
7341 * rs6000-nat.c: Add "rs6000-aix-tdep.h" include.
7342 Remove "xml-utils.h" include.
7343 (LdInfo): Delete typedef.
7344 (ARCH64_DECL, LDI_FIELD, LDI_NEXT, LDI_FD, LDI_FILENAME):
7345 Delete macros.
7346 (rs6000_ptrace_ldinfo): Change return type to gdb_byte *.
7347 Adjust code accordingly.
7348 (rs6000_core_ldinfo): Delete, folded into
7349 rs6000_aix_core_xfer_shared_libraries_aix.
7350 (rs6000_xfer_shared_library): Delete.
7351 (rs6000_xfer_shared_libraries): Reimplement.
7352
7353 2013-05-15 Markus Metzger <markus.t.metzger@intel.com>
7354
7355 * record.c (record_goto_cmdlist): New.
7356 (cmd_record_goto): Split into this ...
7357 (cmd_record_goto_begin): ... this
7358 (cmd_record_goto_end): ... and this.
7359 (_initialize_record): Change "record goto" to prefix command.
7360 Add commands for "record goto begin" and "record goto end".
7361 Add an alias for "record goto start" to "record goto begin".
7362
7363 2013-05-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7364
7365 * linespec.c (convert_linespec_to_sals): New comment for
7366 SOURCE_FILENAME assignment.
7367
7368 2013-05-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7369
7370 * cleanups.c (restore_my_cleanups): Replace gdb_assert by
7371 internal_warning.
7372
7373 2013-05-14 Tom Tromey <tromey@redhat.com>
7374
7375 * eval.c (parse_and_eval_long): Make 'exp' const.
7376 * value.h (parse_and_eval_long): Update.
7377
7378 2013-05-14 Tom Tromey <tromey@redhat.com>
7379
7380 * ui-file.c (gdb_fopen): Make arguments const.
7381 * ui-file.h (gdb_fopen): Make arguments const.
7382
7383 2013-05-14 Tom Tromey <tromey@redhat.com>
7384
7385 * remote.c (remote_set_trace_notes): Make arguments const.
7386 * target.c (update_current_target): Update cast.
7387 * target.h (to_set_trace_notes): Make arguments const.
7388
7389 2013-05-14 Tom Tromey <tromey@redhat.com>
7390
7391 * go32-nat.c (go32_terminal_info): Make 'args' const.
7392 * inferior.h (child_terminal_info): Update.
7393 * inflow.c (child_terminal_info): Make 'args' const.
7394 * target.c (default_terminal_info): Make 'args' const.
7395 (debug_to_terminal_save_ours): Likewise.
7396 * target.h (struct target_ops) <to_terminal_info>: Make argument
7397 const.
7398
7399 2013-05-13 Tom Tromey <tromey@redhat.com>
7400
7401 * gcore.c (create_gcore_bfd): Make 'filename' const.
7402 * gcore.h (create_gcore_bfd): Make 'filename' const.
7403 * record-full.c (record_full_save): Make 'recfilename' const.
7404 * target.c (target_save_record): Make 'filename' const.
7405 * target.h (struct target_ops) <to_save_record>: Make 'filename'
7406 const.
7407 (target_save_record): Likewise.
7408
7409 2013-05-13 Tom Tromey <tromey@redhat.com>
7410
7411 PR gdb/15338:
7412 * dwarf2read.c (dwarf2_record_block_ranges): Ensure that the
7413 ranges section has been read.
7414
7415 2013-05-13 Tom Tromey <tromey@redhat.com>
7416
7417 PR exp/15364:
7418 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
7419 STRUCTOP_PTR>: Return a not_lval value for
7420 EVAL_AVOID_SIDE_EFFECTS.
7421 * opencl-lang.c (evaluate_subexp_opencl): Return a not_lval value
7422 for EVAL_AVOID_SIDE_EFFECTS.
7423
7424 2013-05-13 Joel Brobecker <brobecker@adacore.com>
7425
7426 * rs6000-aix-tdep.c (rs6000_push_dummy_call): Convert
7427 floating point registers to register type before storing
7428 value.
7429 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call):
7430 Likewise.
7431
7432 2013-05-10 Joel Brobecker <brobecker@adacore.com>
7433 Tom Tromey <tromey@redhat.com>
7434
7435 * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
7436 New functions.
7437 * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
7438 Declare.
7439 * darwin-nat.c (darwin_pre_ptrace): Use mark_fd_no_cloexec.
7440 (darwin_ptrace_him): Use unmark_fd_no_cloexec.
7441 * inf-ttrace.c (do_cleanup_pfds): Use unmark_fd_no_cloexec.
7442 (inf_ttrace_prepare): Use mark_fd_no_cloexec.
7443
7444 2013-05-10 Freddie Chopin <freddie_chopin@op.pl>
7445 Tom Tromey <tromey@redhat.com>
7446
7447 PR build/15414:
7448 * configure: Rebuild.
7449 * configure.ac (build_warnings): Do not use -Wformat-nonliteral
7450 with -Wno-format.
7451
7452 2013-05-10 Pedro Alves <palves@redhat.com>
7453
7454 * remote.c (_initialize_remote): Fix spelling of
7455 qXfer:traceframe-info:read packet in packet config command.
7456
7457 2013-05-10 David Taylor <dtaylor@emc.com>
7458
7459 PR remote/15455
7460
7461 * remote.c (remote_trace_set_readonly_regions): Do not overwrite
7462 "QTro" at start of packet.
7463
7464 2013-05-10 Joel Brobecker <brobecker@adacore.com>
7465
7466 * solib-aix.c (solib_aix_relocate_section_addresses):
7467 For the .bss section action, apply the same offset as
7468 the .data section.
7469
7470 2013-05-10 Joel Brobecker <brobecker@adacore.com>
7471
7472 * solib-aix.c (solib_aix_relocate_section_addresses):
7473 Remove FIXME comment.
7474
7475 2013-05-10 Joel Brobecker <brobecker@adacore.com>
7476
7477 PR tdep/15420:
7478 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
7479 New functions, directly copied from sparc-sol-thread.c.
7480 * sparc-sol-thread.c: Delete.
7481 * configure.ac: Remove code handling sparc-solaris-thread.c.
7482 * configure: Regenerate.
7483
7484 2013-05-10 Phil Muldoon <pmuldoon@redhat.com>
7485
7486 * stack.c (backtrace_command_1): Add "no-filters", and Python frame
7487 filter logic.
7488 (backtrace_command): Add "no-filters" option parsing.
7489 (_initialize_stack): Alter help to reflect "no-filters" option.
7490 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-framefilter.o
7491 (SUBDIR_PYTHON_SRCS): Add py-framefilter.c
7492 (py-frame.o): Add target
7493 * data-directory/Makefile.in (PYTHON_DIR): Add Python frame
7494 filter files.
7495 * python/python.h: Add new frame filter constants, and flag enum.
7496 (apply_frame_filter): Add definition.
7497 * python/python.c (apply_frame_filter): New non-Python
7498 enabled function.
7499 * python/py-utils.c (py_xdecref): New function.
7500 (make_cleanup_py_xdecref): Ditto.
7501 * python/py-objfile.c: Declare frame_filters dictionary.
7502 (objfpy_dealloc): Add frame_filters dealloc.
7503 (objfpy_new): Initialize frame_filters attribute.
7504 (objfile_to_objfile_object): Ditto.
7505 (objfpy_get_frame_filters): New function.
7506 (objfpy_set_frame_filters): New function.
7507 * python/py-progspace.c: Declare frame_filters dictionary.
7508 (pspy_dealloc): Add frame_filters dealloc.
7509 (pspy_new): Initialize frame_filters attribute.
7510 (pspacee_to_pspace_object): Ditto.
7511 (pspy_get_frame_filters): New function.
7512 (pspy_set_frame_filters): New function.
7513 * python/py-framefilter.c: New file.
7514 * python/lib/gdb/command/frame_filters.py: New file.
7515 * python/lib/gdb/frames.py: New file.
7516 * python/lib/gdb/__init__.py: Initialize global frame_filters
7517 dictionary
7518 * python/lib/gdb/FrameDecorator.py: New file.
7519 * python/lib/gdb/FrameIterator.py: New file.
7520 * mi/mi-cmds.c (mi_cmds): Add frame filters command.
7521 * mi/mi-cmds.h: Declare.
7522 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Add
7523 --no-frame-filter logic, and Python frame filter logic.
7524 (stack_enable_frame_filters): New function.
7525 (parse_no_frame_option): Ditto.
7526 (mi_cmd_stack_list_frames): Add --no-frame-filter and Python frame
7527 filter logic.
7528 (mi_cmd_stack_list_locals): Ditto.
7529 (mi_cmd_stack_list_args): Ditto.
7530 (mi_cmd_stack_list_variables): Ditto.
7531 * NEWS: Add frame filter note.
7532
7533 2013-05-09 Doug Evans <dje@google.com>
7534
7535 * symfile.c (syms_from_objfile_1): Delete args offsets, num_offsets.
7536 All callers updated.
7537 (syms_from_objfile): Ditto. Make static.
7538 (symbol_file_add_with_addrs): Renamed from
7539 symbol_file_add_with_addrs_or_offsets. Delete args offsets,
7540 num_offsets. All callers updated.
7541 * symfile.h (syms_from_objfile): Delete.
7542
7543 * symfile.c (decrement_reading_symtab): Add assert.
7544 (increment_reading_symtab): Ditto.
7545
7546 2013-05-09 Joel Brobecker <brobecker@adacore.com>
7547
7548 * source.c (forward_search_command): Replace call to getc
7549 by call to fgetc.
7550 (reverse_search_command): Likewise.
7551
7552 2013-05-08 Doug Evans <dje@google.com>
7553
7554 * psymtab.c (expand_symtabs_matching_via_partial): Fix file name
7555 matching test.
7556
7557 2013-05-08 Joel Brobecker <brobecker@adacore.com>
7558
7559 * sol-thread.c (info_cb): Factorize the code a little.
7560
7561 2013-05-08 Joel Brobecker <brobecker@adacore.com>
7562
7563 * sol-thread.c (info_cb): Rework the output of the "maintenance
7564 info sol-threads" command a bit.
7565
7566 2013-05-08 Joel Brobecker <brobecker@adacore.com>
7567
7568 * sol-thread.c (info_cb) [ti.ti_state == TD_THR_SLEEP]:
7569 Replace ti.ti_startfunc by ti.ti_pc.
7570
7571 2013-05-08 Joel Brobecker <brobecker@adacore.com>
7572
7573 * solib-aix.c (solib_aix_free_library_list): New function
7574 for the case where HAVE_LIBEXPAT is not defined.
7575
7576 2013-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
7577
7578 PR breakpoints/15413:
7579 * breakpoint.c (condition_completer): Simplify the code to
7580 disconsider multiple locations of breakpoints when completing the
7581 "condition" command.
7582
7583 2013-05-07 Pierre Muller <muller@sourceware.org>
7584
7585 * common/linux-btrace.c: ARI fix: Include "gdb_wait.h"
7586 instead of <sys/wait.h>.
7587
7588 2013-05-07 Pierre Muller <muller@sourceware.org>
7589
7590 * nios2-tdep.c (nios2_dwarf_reg_to_regnum): ARI fix: remove
7591 trailing new line from warning message.
7592
7593 2013-05-07 Pierre Muller <muller@sourceware.org>
7594
7595 * contrib/ari/gdb_ari.sh (SOLIB_ADD, SOLIB_CREATE_INFERIOR_HOOK)
7596 (PC_SOLIB): Change type from ari_deprecate to ari_regression.
7597
7598 2013-05-07 Joel Brobecker <brobecker@adacore.com>
7599
7600 * rs6000-nat.c (rs6000_core_ldinfo): Remove '\n' at end of
7601 error message (ARI fix).
7602
7603 2013-05-07 Joel Brobecker <brobecker@adacore.com>
7604
7605 * features/library-list-aix.dtd: Replace library-list by
7606 library-list-aix.
7607 * rs6000-nat.c: Replace library-list by library-list-aix
7608 throughout.
7609 * solib-aix.c: Likewise.
7610
7611 2013-05-07 Joel Brobecker <brobecker@adacore.com>
7612
7613 * target.h (enum target_object) [TARGET_OBJECT_LIBRARIES_AIX]:
7614 Renames TARGET_OBJECT_AIX_LIBRARIES.
7615 * rs6000-nat.c: Replace TARGET_OBJECT_AIX_LIBRARIES with
7616 TARGET_OBJECT_LIBRARIES_AIX throughout.
7617 * solib-aix.c: Likwise.
7618
7619 2013-05-07 Yao Qi <yao@codesourcery.com>
7620
7621 * solib-dsbt.c (struct dsbt_info) <enable_break2_done>: Remove.
7622 (get_dsbt_info, enable_break, dsbt_clear_solib): Update.
7623
7624 2013-05-07 Yao Qi <yao@codesourcery.com>
7625
7626 * solib-dsbt.c (enable_break): Declare.
7627 (dsbt_current_sos): Remove call to enable_break2.
7628 (enable_break2): Rename to enable_break. Set solib breakpoint
7629 on '_dl_debug_state'.
7630 (enable_break): Remove.
7631
7632 2013-05-07 Luis Machado <lgustavo@codesourcery.com>
7633
7634 * ppc-linux-nat.c (ppc_linux_new_thread): Clear the new thread's
7635 debug state prior to replicating existing hardware watchpoints or
7636 breakpoints.
7637
7638 2013-05-07 Jan Kratochvil <jan.kratochvil@redhat.com>
7639
7640 * gcore.c (gcore_create_callback): Ignore sections with
7641 separate_debug_objfile_backlink != NULL.
7642
7643 2013-05-06 Sandra Loosemore <sandra@codesourcery.com>
7644 Andrew Jenner <andrew@codesourcery.com>
7645 Chung-Lin Tang <cltang@codesourcery.com>
7646 Julian Brown <julian@codesourcery.com>
7647
7648 Based on the nios2-elf port from Altera Corporation.
7649
7650 * Makefile.in (ALL_TARGET_OBS): Add nios2-tdep.o and
7651 nios2-linux-tdep.o.
7652 (HFILES_NO_SRCDIR): Add nios2-tdep.h.
7653 (ALLDEPFILES): Add nios2-tdep.c and nios2-linux-tdep.c.
7654 * configure.tgt: Add nios2*-*-linux* and nios2*-*-* targets.
7655 * nios2-tdep.h: New.
7656 * nios2-tdep.c: New.
7657 * nios2-linux-tdep.c: New.
7658 * features/Makefile (WHICH): Add nios2-linux.
7659 (nios2-linux-expedite): Set.
7660 * features/nios2-cpu.xml: New.
7661 * features/nios2.xml: New.
7662 * features/nios2-linux.xml: New.
7663 * features/nios2.c: New (autogenerated).
7664 * features/nios2-linux.c: New (autogenerated).
7665 * regformats/nios2-linux.dat: New (autogenerated).
7666 * NEWS (Changes since GDB 7.6): Add new Nios II targets
7667 and commands.
7668
7669 2013-05-06 Doug Evans <dje@google.com>
7670
7671 * symfile.c: Whitespace cleanup.
7672
7673 * solist.h (struct target_so_ops): New member clear_so.
7674 * solib-svr4.c (svr4_clear_so): New function.
7675 (_initialize_svr4_solib): Set svr4_so_ops.clear_so.
7676 * solib.c (clear_so): Renamed from free_so_symbols.
7677 All callers updated. Call target clear_so if it exists.
7678
7679 2013-05-06 Tom Tromey <tromey@redhat.com>
7680
7681 * ada-lang.c (ada_value_primitive_packed_val): Don't
7682 call value_incref.
7683 * value.c (set_value_parent): Incref the new parent and decref
7684 the old parent.
7685 (value_copy, value_primitive_field): Use set_value_parent.
7686
7687 2013-05-06 Tom Tromey <tromey@redhat.com>
7688
7689 * dwarf2loc.c (invalid_synthetic_pointer): Move earlier.
7690 (indirect_pieced_value): Call dwarf2_fetch_constant_bytes
7691 if needed.
7692 * dwarf2loc.h (dwarf2_fetch_constant_bytes): Declare.
7693 * dwarf2read.c (write_constant_as_bytes)
7694 (dwarf2_fetch_constant_bytes): New functions.
7695
7696 2013-05-06 Tom Tromey <tromey@redhat.com>
7697
7698 * dwarf2read.c (dwarf2_const_value_data): Remove unused
7699 parameters.
7700 (dwarf2_const_value_attr): Update.
7701
7702 2013-05-06 Tom Tromey <tromey@redhat.com>
7703
7704 * somread.c (som_symfile_offsets): Add 'const' to addrs.
7705 * machoread.c (macho_symfile_offsets): Add 'const' to addrs.
7706 * xcoffread.c (xcoff_symfile_offsets): Add 'const' to addrs.
7707 Remove declaration.
7708
7709 2013-05-06 Tom Tromey <tromey@redhat.com>
7710
7711 * dwarf2read.c (dwarf2_const_value_attr): Use 'obstack', not
7712 objfile's obstack.
7713
7714 2013-05-06 Doug Evans <dje@google.com>
7715
7716 * dbxread.c (process_one_symbol): Constify section_offsets parameter.
7717 * stabsread.h (process_one_symbol): Update declaration.
7718 * dwarf2read.c (dw2_relocate): Constify new_offsets, delta parameters.
7719 * elfread.c (elf_symfile_relocate_probe): Ditto.
7720 * psymtab.c (relocate_psymtabs): Ditto.
7721 * objfiles.c (objfile_relocate1): Constify new_offsets parameter.
7722 (objfile_relocate): Ditto.
7723 * objfiles.h (objfile_relocate): Update declaration.
7724 * symfile.c (relative_addr_info_to_section_offsets): Constify
7725 addrs parameter.
7726 (default_symfile_offsets): Ditto.
7727 (syms_from_objfile_1): Constify offsets parameter.
7728 (syms_from_objfile): Ditto.
7729 (symbol_file_add_with_addrs_or_offsets): Ditto.
7730 (symfile_map_offsets_to_segments): Constify data parameter.
7731 * symfile.h (struct quick_symbol_functions): Constify new_offsets,
7732 delta parameters of member relocate.
7733 (struct sym_probe_fns): Constify new_offsets,
7734 delta parameters of member sym_relocate_probe.
7735 (struct sym_fns): Constify section_addr_info parameter of member
7736 sym_offsets.
7737 (relative_addr_info_to_section_offsets): Update declaration.
7738 (default_symfile_offsets): Ditto.
7739 (syms_from_objfile): Ditto.
7740 (symfile_map_offsets_to_segments): Ditto.
7741
7742 * symfile.c (syms_from_objfile_1): Use correct section count when
7743 objfile->sf == NULL.
7744
7745 2013-05-06 Mike Frysinger <vapier@gentoo.org>
7746
7747 * common/linux-btrace.c (intel_supports_btrace): Fix indentation.
7748
7749 2013-05-06 Doug Evans <dje@google.com>
7750
7751 * psympriv.h (struct partial_symtab): Augment comment for member
7752 section_offsets.
7753
7754 2013-05-06 Joel Brobecker <brobecker@adacore.com>
7755
7756 Reimplement shared library support on ppc-aix...
7757 * target.h (TARGET_OBJECT_AIX_LIBRARIES): New target_object enum.
7758 * features/library-list-aix.dtd: New file.
7759 * solib-aix.h, solib-aix.c: New file.
7760 * rs6000-aix-tdep.c: #include "solib.h" and "solib-aix.h".
7761 (rs6000_find_toc_address_hook): Delete.
7762 (rs6000_push_dummy_call): Rewrite code setting the TOC value.
7763 (rs6000_aix_init_osabi): Register solib_aix_so_ops.
7764 * rs6000-nat.c: Remove "xcoffsolib.h" include. Include
7765 "xml-utils.h".
7766 (map_vmap, vmap_exec, vmap_ldinfo, add_vmap, objfile_symbol_add)
7767 (vmap_symtab, fixup_breakpoints): Delete.
7768 (rs6000_xfer_shared_libraries): New function.
7769 (rs6000_xfer_partial): Add TARGET_OBJECT_AIX_LIBRARIES handling.
7770 (vmap_secs, bss_data_overlap, vmap_add_symbols): Delete.
7771 (xcoff_relocate_symtab, xcoff_relocate_core): Delete.
7772 (rs6000_ptrace_ldinfo, rs6000_core_ldinfo)
7773 (rs6000_xfer_shared_library): New function.
7774 (find_toc_address): Delete.
7775 (_initialize_rs6000_nat): Do not set rs6000_find_toc_address_hook.
7776 * rs6000-tdep.h (rs6000_find_toc_address_hook): Remove.
7777 * xcoffread.c (record_minimal_symbol): Reloate symbol address
7778 before creating minimal symbol. Adjust function description
7779 accordingly.
7780 (scan_xcoff_symtab): Replace call to
7781 prim_record_minimal_symbol_and_info by call to
7782 record_minimal_symbol.
7783 (xcoff_symfile_offsets): Reimplement mostly as a wrapper
7784 around default_symfile_offsets.
7785 * configure.tgt: Add solib-aix.o to gdb_target_obs for
7786 powerpc-aix targets.
7787 * config/rs6000/nm-rs6000.h: Delete.
7788 * config/powerpc/aix.mh (NAT_FILE): Delete.
7789 (NATDEPFILES): Remove xcoffsolib.o.
7790 * Makefile.in (XMLFILES): Add library-list-aix.dtd.
7791 (ALL_TARGET_OBS): Add solib-aix.o.
7792 (HFILES_NO_SRCDIR): Remove xcoffsolib.h and
7793 config/rs6000/nm-rs6000.h. Add solib-aix.h.
7794 (ALLDEPFILES): Add solib-aix.c. Remove xcoffsolib.c.
7795 * xcoffsolib.h, xcoffsolib.c: Delete.
7796
7797 * solib.c (reload_shared_libraries): Remove reference to
7798 SOLIB_CREATE_INFERIOR_HOOK.
7799 * breakpoint.c (handle_solib_event): Remove reference to SOLIB_ADD.
7800 (disable_breakpoints_in_shlibs): Remove reference to PC_SOLIB.
7801 (momentary_bkpt_re_set): Replace SOLIB_ADD by solib_add in
7802 comment.
7803 * corelow.c (deprecated_core_resize_section_table): Delete.
7804 * exec.c: Remove include of xcoffsolib.h".
7805 (map_vmap, vmap): Delete.
7806 (exec_close_1): Remove references to vmap.
7807 (exec_file_attach): Remove vmap handling code, and reference
7808 to DEPRECATED_IBM6000_TARGET.
7809 (bfdsec_to_vmap): Delete.
7810 (exec_files_info): Remove block of code handling VMAP.
7811 * infcmd.c (post_create_inferior): Remove reference to
7812 SOLIB_CREATE_INFERIOR_HOOK and SOLIB_ADD.
7813 * infrun.c (follow_exec): Remove reference to
7814 SOLIB_CREATE_INFERIOR_HOOK.
7815 * stack.c (print_frame): Remove reference to PC_SOLIB.
7816 * solib-dsbt.c (dsbt_current_sos): Adjust comment.
7817 (dsbt_relocate_main_executable): Likewise.
7818 * solib-frv.c (frv_current_sos): Likewise.
7819
7820 2013-05-06 Joel Brobecker <brobecker@adacore.com>
7821
7822 * sol-thread.c (rw_common): Cast BUF to "gdb_byte *" in calls
7823 to target_write_memory and target_read_memory.
7824
7825 2013-05-06 Joel Brobecker <brobecker@adacore.com>
7826
7827 * darwin-nat.c (darwin_setup_fake_stop_event): New function.
7828 (darwin_attach): Adjust using darwin_setup_fake_stop_event.
7829
7830 2013-05-06 Joel Brobecker <brobecker@adacore.com>
7831
7832 * darwin-nat.c: Replace all "%x" instances in format strings
7833 into "0x%x" throughout.
7834
7835 2013-05-06 Joel Brobecker <brobecker@adacore.com>
7836
7837 * darwin-nat.c (darwin_mourn_inferior): Replace call to
7838 gdb_assert by call to MACH_CHECK_ERROR.
7839 (darwin_attach_pid): Raise an error rather than a failed
7840 assertion when various system calls failed. Report a warning
7841 instead of raising a failed assertion when PREV_NOT is not NULL
7842 after call to mach_port_request_notification.
7843 (darwin_ptrace_me): Raise an error rather than a failed
7844 assertion when read returns nonzero.
7845
7846 2013-05-06 Joel Brobecker <brobecker@adacore.com>
7847
7848 * amd64-darwin-tdep.c: Remove #include "gdb_assert.h".
7849
7850 2013-05-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7851
7852 * cleanups.c (restore_my_cleanups): New gdb_assert for SENTINEL_CLEANUP.
7853
7854 2013-05-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7855
7856 * event-top.c (display_gdb_prompt): Call missing do_cleanups.
7857 * infcmd.c (get_return_value) <!stop_regs>: Do not overwrite CLEANUP.
7858 * symfile.c (symfile_bfd_open): New variable back_to. Do not leave
7859 a stale cleanup. Fix double free of NAME.
7860
7861 2013-05-04 Eli Zaretskii <eliz@gnu.org>
7862
7863 * windows-nat.c (windows_delete_thread): Accept an additional
7864 argument, the thread's exit code, and announce thread death when
7865 print_thread_events is non-zero and we are deleting a thread that
7866 is not the main thread.
7867 (get_windows_debug_event): Pass thread exit code to
7868 windows_delete_thread.
7869
7870 2013-05-03 Kevin Buettner <kevinb@redhat.com>
7871
7872 * v850-tdep.c (elf-bfd.h, elf/v850.h): Include.
7873 (R_149_REGNUM, E_NUM_OF_V850E2_REGS, E_SELID_1_R0_REGNUM)
7874 (E_SELID_1_R31_REGNUM, E_SELID_2_R0_REGNUM, E_SELID_2_R31_REGNUM)
7875 (E_SELID_3_R0_REGNUM, E_SELID_3_R31_REGNUM, E_SELID_4_R0_REGNUM)
7876 (E_SELID_4_R31_REGNUM, E_SELID_5_R0_REGNUM, E_SELID_5_R31_REGNUM)
7877 (E_SELID_6_R0_REGNUM, E_SELID_6_R31_REGNUM, E_SELID_7_R0_REGNUM, E_SELID_7_R31_REGNUM)
7878 (E_VR0_REGNUM, E_VR31_REGNUM, E_NUM_OF_V850E3V5_REGS): Define.
7879 (v850_abi, V850_ABI_GCC, V850_ABI_RH850): New enum and constants.
7880 (gdbarch_tdep): New struct.
7881 (v850e2_register_name): Use E_NUM_OF_V850E2_REGS instead of
7882 E_NUM_REGS.
7883 (v850e3v5_register_name): New function.
7884 (v850_register_type): v850e3v5 vector registers are 64-bits wide.
7885 (v850_use_struct_convention): Add `gdbarch' parameter. Add new
7886 code handling the struct return conventions for the RH850 ABI.
7887 Update all callers.
7888 (v850_eight_byte_align_p): New function.
7889 (v850_push_call_dummy): Push structs by value, not by reference
7890 for the RH850 ABI. Add support for eight byte alignment.
7891 (v850_dbtrap_breakpoint_from_pc): New function.
7892 (v850_gdbarch_init): Add ABI detection code. Register
7893 v850e3v5_register_name for the v850e3v5 architecture. Set the
7894 number of registers for v850e3v5. Register
7895 v850_dbtrap_breakpoint_from_pc as appropriate.
7896 (_initialize_gdbarch_init): Registration bfd_arch_v850_rh850.
7897
7898 2013-05-03 Doug Evans <dje@google.com>
7899
7900 * objfiles.c (objfile_relocate): Use gdb_bfd_count_sections instead
7901 of bfd_count_sections.
7902 * solib-target.c (solib_target_relocate_section_addresses): Ditto.
7903 * symfile.c (default_symfile_offsets): Ditto.
7904 (syms_from_objfile_1): Ditto. Make dummy addrs list an array of
7905 one entry, not bfd_count_sections entries.
7906
7907 2013-05-03 Kevin Buettner <kevinb@redhat.com>
7908
7909 * rl78-tdep.c (rl78_register_reggroup_p): Include SP in the
7910 `save' and `restore' register groups. Don't include SPL
7911 or SPH in these groups.
7912 (rl78_dwarf_reg_to_regnum): Adjust mapping for
7913 RL78_PC_REGNUM. Add mappings for RL78_PSW_REGNUM,
7914 RL78_ES_REGNUM, and RL78_CS_REGNUM.
7915 (rl78_gdbarch_init): Set `dwarf2_addr_size' to 4. Invoke
7916 dwarf2_append_unwinders().
7917
7918 2013-05-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7919
7920 * break-catch-sig.c (signal_catchpoint_breakpoint_hit): Do not
7921 ignore SIGINT and SIGTRAP in case these internal signals are
7922 caught explicitely.
7923
7924 2013-05-01 Joel Brobecker <brobecker@adacore.com>
7925
7926 * darwin-nat.c (darwin_read_write_inferior): Change types
7927 of parameters rdaddr and wraddr to "gdb_byte *". Change type
7928 of copy_count to "mach_msg_type_number_t".
7929 (darwin_read_dyld_info): Change type of parameter
7930 rdaddr to "gdb_byte *".
7931
7932 2013-05-01 Joel Brobecker <brobecker@adacore.com>
7933
7934 * solib-ia64-hpux.c (ia64_hpux_read_dynamic_info): Change cast
7935 of &info->load_map from "char *" to "gdb_byte *".
7936
7937 2013-05-01 Joel Brobecker <brobecker@adacore.com>
7938
7939 * ia64-tdep.c (ia64_access_fpreg): Change cast of val
7940 from "char *" to "gdb_byte *".
7941 (ia64_access_rse_fpreg, ia64_access_mem): Likewise.
7942
7943 2013-04-30 Doug Evans <dje@google.com>
7944
7945 * dwarf2read.c (lookup_dwo_unit): Return NULL if DWO not found.
7946 (init_cutu_and_read_dies): Flag a complaint, not error, for bad
7947 DWO stub. If DWO isn't found, just use stub.
7948 (lookup_dwo_cutu): Don't try DWO if there's a DWP file.
7949
7950 * dwarf2read.c (dw2_find_symbol_file): Initialize filename before
7951 calling init_cutu_and_read_dies.
7952
7953 2013-03-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
7954
7955 * target-descriptions.c (maint_print_c_tdesc_cmd):
7956 Add case to parse structures as register types and
7957 bitfields.
7958
7959 2013-04-30 Walfred Tedeschi <walfred.tedeschi@intel.com>
7960
7961 * MAINTAINERS (Write After Approval): Add myself to the list.
7962
7963 2013-04-30 Joel Brobecker <brobecker@adacore.com>
7964
7965 * sol-thread.c (rw_common): Change type of parameter "buf"
7966 to "gdb_byte *".
7967 (ps_pdwrite, ps_ptwrite): Cast parameter "buf" in call to
7968 rw_common to "gdb_byte *" instead of "char *".
7969
7970 2013-04-30 Joel Brobecker <brobecker@adacore.com>
7971
7972 * sol-thread.c (info_cb) [ti.ti_startfunc != 0]: Change type
7973 of local variable msym to const struct bound_minimal_symbol.
7974 Adjust use accordingly.
7975 [ti.ti_state == TD_THR_SLEEP]: Likewise.
7976
7977 2013-04-30 Samuel Thibault <samuel.thibault@gnu.org>
7978
7979 * i386gnu-nat.c (CREG_OFFSET): New macro.
7980 (creg_offset): New array.
7981 (CREG_ADDR): Use creg_offset instead of reg_offset.
7982
7983 2013-04-30 Joel Brobecker <brobecker@adacore.com>
7984
7985 * mep-tdep.c (mep_write_pc): Delete.
7986 (mep_gdbarch_init): Remove call to set_gdbarch_write_pc.
7987 Add call to set_gdbarch_pc_regnum.
7988
7989 2013-04-30 Joel Brobecker <brobecker@adacore.com>
7990
7991 * common/filestuff.c: Replace #include <dirent.h> by
7992 #include "gdb_dirent.h".
7993
7994 2013-04-30 Joel Brobecker <brobecker@adacore.com>
7995
7996 * common/filestuff.c: Replace #include <sys/stat.h> by
7997 #include "gdb_stat.h".
7998
7999 2013-04-29 Pierre Muller <muller@sourceware.org>
8000
8001 * dwarf2read.c (handle_DW_AT_stmt_list): Avoid ARI warning for
8002 editCase function rule.
8003 (get_DW_AT_signature_type): Likewise.
8004
8005 2013-04-29 Joel Brobecker <brobecker@adacore.com>
8006
8007 * m32r-tdep.c (m32r_write_pc): Delete.
8008 (m32r_gdbarch_init): Remove call to set_gdbarch_write_pc.
8009 Add call to set_gdbarch_pc_regnum.
8010
8011 2013-04-29 Pierre Muller <muller@sourceware.org>
8012
8013 * ./contrib/ari/gdb_ari.sh (editCase rule): Fix spelling error.
8014
8015 2013-04-29 Joel Brobecker <brobecker@adacore.com>
8016
8017 * dwarf2read.c (get_DW_AT_signature_type): Add ARI marker.
8018
8019 2013-04-28 Yao Qi <yao@codesourcery.com>
8020
8021 * solib-dsbt.c (fetch_loadmap): Re-indent.
8022 (displacement_from_map, enable_break2): Likewise.
8023 (dsbt_relocate_section_addresses): Likewise.
8024
8025 2013-04-26 Joel Brobecker <brobecker@adacore.com>
8026
8027 GDB 7.6 released.
8028
8029 2013-04-25 Andreas Kaufmann <Andreas.Kaufmann@synopsys.com>
8030
8031 PR corefiles/14983:
8032 * dwarf2read.c (process_full_comp_unit): Always create a static
8033 block.
8034
8035 2013-04-25 Hui Zhu <hui@codesourcery.com>
8036
8037 * breakpoint.c (build_target_command_list): Change loc->cond_bytecode
8038 to loc->cmd_bytecode.
8039
8040 2013-04-24 Doug Evans <dje@google.com>
8041
8042 * dwarf2read.c (setup_type_unit_groups): Fix comment.
8043
8044 2013-04-22 Keith Seitz <keiths@redhat.com>
8045
8046 * tracepoint.c (trace_save): Call the writer's start method.
8047
8048 2013-04-24 Muhammad Bilal <mbilal@codesourcery.com>
8049
8050 PR gdb/10462
8051 * cli/cli-decode.c (lookup_command): Show an error if there is no space
8052 before argument.
8053
8054 2013-04-23 Tom Tromey <tromey@redhat.com>
8055
8056 * common/filestuff.c: Check USE_WIN32API before including
8057 sys/socket.h.
8058 (HAVE_F_GETFD): New define.
8059 (mark_cloexec): Check HAVE_F_GETFD.
8060 (gdb_open_cloexec): Change 'mode' to unsigned long.
8061 (gdb_socketpair_cloexec): Check HAVE_SOCKETPAIR.
8062 (gdb_pipe_cloexec): Check HAVE_PIPE.
8063 * common/filestuff.h (gdb_open_cloexec): Change 'mode' to unsigned
8064 long.
8065
8066 2013-04-23 Hui Zhu <hui@codesourcery.com>
8067
8068 PR gdb/15293
8069 * breakpoint.c (bpstat_what): Add BPSTAT_WHAT_SINGLE to bp_dprintf.
8070
8071 2013-04-23 Hui Zhu <hui@codesourcery.com>
8072
8073 PR gdb/15165
8074 * breakpoint.c (dprintf_print_recreate): New.
8075 (save_breakpoints): Let it not save dprintf commands.
8076 (initialize_breakpoint_ops): Set dprintf_print_recreate.
8077
8078 2013-04-22 Tom Tromey <tromey@redhat.com>
8079
8080 PR gdb/7912:
8081 * Makefile.in (SFILES): Add filestuff.c
8082 (COMMON_OBS): Add filestuff.o.
8083 (filestuff.o): New target.
8084 * auto-load.c (auto_load_objfile_script_1): Use
8085 gdb_fopen_cloexec.
8086 * auxv.c (procfs_xfer_auxv): Use gdb_open_cloexec.
8087 * cli/cli-cmds.c (shell_escape): Call close_most_fds.
8088 * cli/cli-dump.c (fopen_with_cleanup): Use gdb_fopen_cloexec.
8089 * common/agent.c (gdb_connect_sync_socket): Use
8090 gdb_socket_cloexec.
8091 * common/filestuff.c: New file.
8092 * common/filestuff.h: New file.
8093 * common/linux-osdata.c (linux_common_core_of_thread)
8094 (command_from_pid, commandline_from_pid, print_source_lines)
8095 (linux_xfer_osdata_shm, linux_xfer_osdata_sem)
8096 (linux_xfer_osdata_msg, linux_xfer_osdata_modules): Use
8097 gdb_fopen_cloexec.
8098 * common/linux-procfs.c (linux_proc_get_int)
8099 (linux_proc_pid_has_state): Use gdb_fopen_cloexec.
8100 * config.in, configure: Rebuild.
8101 * configure.ac: Don't check for sys/socket.h. Check for
8102 fdwalk, pipe2.
8103 * corelow.c (core_open): Use gdb_open_cloexec.
8104 * dwarf2read.c (write_psymtabs_to_index): Use gdb_fopen_cloexec.
8105 * fork-child.c (fork_inferior): Call close_most_fds.
8106 * gdb_bfd.c (gdb_bfd_open): Use gdb_open_cloexec.
8107 * inf-child.c (inf_child_fileio_readlink): Use gdb_open_cloexec.
8108 * linux-nat.c (linux_nat_thread_name, linux_proc_pending_signals):
8109 Use gdb_fopen_cloexec.
8110 (linux_proc_xfer_partial, linux_proc_xfer_spu): Use
8111 gdb_open_cloexec.
8112 (linux_async_pipe): Use gdb_pipe_cloexec.
8113 * remote-fileio.c (remote_fileio_func_open): Use
8114 gdb_open_cloexec.
8115 * remote.c (remote_file_put, remote_file_get): Use
8116 gdb_fopen_cloexec.
8117 * ser-pipe.c (pipe_open): Use gdb_socketpair_cloexec,
8118 close_most_fds.
8119 * ser-tcp.c (net_open): Use gdb_socket_cloexec.
8120 * ser-unix.c (hardwire_open): Use gdb_open_cloexec.
8121 * solib.c (solib_find): Use gdb_open_cloexec.
8122 * source.c (openp, find_and_open_source): Use gdb_open_cloexec.
8123 * tracepoint.c (tfile_start): Use gdb_fopen_cloexec.
8124 (tfile_open): Use gdb_open_cloexec.
8125 * tui/tui-io.c (tui_initialize_io): Use gdb_pipe_cloexec.
8126 * ui-file.c (gdb_fopen): Use gdb_fopen_cloexec.
8127 * xml-support.c (xml_fetch_content_from_file): Use
8128 gdb_fopen_cloexec.
8129 * main.c (captured_main): Call notice_open_fds.
8130
8131 2013-04-22 Edjunior Machado <emachado@linux.vnet.ibm.com>
8132
8133 * remote-sim.c (dump_mem): Change the type of 'buf' parameter from
8134 'char *' to 'gdb_byte *'.
8135 (gdbsim_store_register): Change the type of 'tmp' from 'char' to
8136 'gdb_byte'.
8137
8138 2013-04-22 Yao Qi <yao@codesourcery.com>
8139
8140 * infrun.c: Fix typo in comment.
8141
8142 2013-04-22 Andrew Haley <aph@redhat.com>
8143
8144 * arm-tdep.c (BranchDest): Cast result as "unsigned long",
8145 instead of "long".
8146
8147 2013-04-20 Yao Qi <yao@codesourcery.com>
8148
8149 * ctf.c (ctf_fetch_registers): Change the type of 'regs' from
8150 'char *' to 'gdb_byte *'. Cast the return value of
8151 'bt_ctf_get_char_array' to 'gdb_byte *'.
8152
8153 2013-04-19 Pedro Alves <palves@redhat.com>
8154
8155 * configure.ac (build_warnings): Replace -Wno-pointer-sign with
8156 -Wpointer-sign.
8157 * configure: Regenerate.
8158
8159 2013-04-19 Pedro Alves <palves@redhat.com>
8160
8161 * ser-tcp.c (net_read_prim): Cast second argument to recv to
8162 'void *'.
8163
8164 2013-04-19 Pedro Alves <palves@redhat.com>
8165
8166 * monitor.c (monitor_write_memory, monitor_write_memory_bytes):
8167 Change type of 'myaddr' parameter to gdb_byte pointer.
8168 (monitor_write_memory_longlongs): Likewise. Cast 'myaddr' pointer
8169 to 'long long' pointer instead of to 'unsigned long long'.
8170 (monitor_write_memory_block, monitor_read_memory_single)
8171 (monitor_read_memory): Change type of 'myaddr' parameter to
8172 gdb_byte pointer.
8173
8174 2013-04-19 Pedro Alves <palves@redhat.com>
8175
8176 * record.c (validate_history_size): Make parameter 'setting'
8177 unsigned.
8178
8179 2013-04-19 Pedro Alves <palves@redhat.com>
8180
8181 * ctf.c (ctf_write_uploaded_tsv, ctf_write_uploaded_tp): Add casts
8182 to 'gdb_byte *'.
8183
8184 2013-04-19 Pedro Alves <palves@redhat.com>
8185
8186 * cp-valprint.c (cp_print_class_member): Change type of 'fieldno'
8187 local to int.
8188
8189 2013-04-19 Pedro Alves <palves@redhat.com>
8190
8191 * ada-lang.c (print_it_exception): Add cast to gdb_byte *.
8192 * ada-tasks.c (read_fat_string_value): Likewise.
8193
8194 2013-04-19 Pedro Alves <palves@redhat.com>
8195
8196 * dwarf2-frame.c (execute_cfa_program): Make 'bytes_read' local
8197 unsigned. Pass 'tmp' to safe_read_uleb128 instead of the signed
8198 'offset', and adjust.
8199
8200 2013-04-19 Pedro Alves <palves@redhat.com>
8201
8202 * dwarf2read.c (dwarf2_get_dwz_file): Add cast to const char *.
8203 (read_index_from_section): Add cast to 'char *'.
8204
8205 2013-04-19 Pedro Alves <palves@redhat.com>
8206
8207 * xcoffread.c (xcoff_initial_scan): Add cast to 'char *'.
8208
8209 2013-04-19 Pedro Alves <palves@redhat.com>
8210
8211 * coff-pe-read.c (read_pe_exported_syms): Handle strings as char.
8212
8213 2013-04-19 Pedro Alves <palves@redhat.com>
8214
8215 * record-full.c (record_full_get_bookmark): Change local 'ret'
8216 type to char * and add cast to gdb_byte *.
8217 (record_full_goto_bookmark): Handle 'bookmark' argument as a
8218 string.
8219 * reverse.c (goto_bookmark_command): Add casts to gdb_byte *.
8220
8221 2013-04-19 Pedro Alves <palves@redhat.com>
8222
8223 * python/py-inferior.c (infpy_write_memory): Add cast to gdb_byte
8224 * python/py-prettyprint.c (print_string_repr): Change type of
8225 'output' local to char *. Add cast to gdb_byte * in
8226 LA_PRINT_STRING call.
8227 (print_children): Change type of 'output' local to char *.
8228 * python/py-value.c (valpy_string): Add cast to const char * in
8229 PyUnicode_Decode call.
8230
8231 2013-04-19 Pedro Alves <palves@redhat.com>
8232
8233 * remote-mips.c (mips_cksum): Rename 'data' parameter to 'datastr'
8234 and change its type to 'const char *'. Adjust.
8235 (mips_send_packet): Add cast to 'char *', and remove cast to
8236 'unsigned char *'.
8237 (mips_receive_packet): Remove cast to 'unsigned char *'.
8238 (mips_load_srec): Use bfd_byte.
8239 (pmon_makeb64, pmon_zeroset): Make 'chksum' parameter unsigned.
8240 (pmon_checkset): Make 'value' parameter unsigned.
8241
8242 2013-04-19 Pedro Alves <palves@redhat.com>
8243
8244 * common/agent.c (agent_run_command): Add cast to gdb_byte *.
8245
8246 2013-04-19 Pedro Alves <palves@redhat.com>
8247
8248 * remote.c (remote_write_bytes_aux, compare_sections_command)
8249 (remote_read_qxfer)
8250 (remote_search_memory, remote_hostio_pwrite, remote_hostio_pread)
8251 (remote_hostio_readlink, remote_bfd_iovec_pread)
8252 (remote_set_trace_notes): Use gdb_byte when RSP buffer is used as
8253 binary buffer, and char when buffer is used as string.
8254 * tracepoint.c (encode_source_string, tfile_write_uploaded_tp)
8255 (trace_save, tfile_open, traceframe_walk_blocks)
8256 (tfile_fetch_registers): Likewise.
8257
8258 2013-04-19 Pedro Alves <palves@redhat.com>
8259
8260 * ser-base.c (ser_base_write): Change prototype -- take 'void *'
8261 buffer and size_t size. Adjust.
8262 * ser-base.h (ser_base_write): Adjust.
8263 * ser-go32.c (cnts): Change type to size_t.
8264 (dos_write): Change prototype -- take 'void *'
8265 buffer and size_t size. Adjust.
8266 (dos_info): Print elements of 'cnts' as unsigned long.
8267 * serial.c (serial_write): Likewise.
8268 * serial.h (serial_write): Adjust.
8269 (struct serial_ops) <write>: Change prototype -- take 'void *'
8270 buffer and size_t size. Adjust.
8271
8272 2013-04-19 Pedro Alves <palves@redhat.com>
8273
8274 * c-lang.c (evaluate_subexp_c): Cast result of obstack_base to
8275 gdb_byte *.
8276 * linux-tdep.c (linux_make_mappings_corefile_notes): Likewise.
8277
8278 2013-04-19 Pedro Alves <palves@redhat.com>
8279
8280 * alpha-tdep.c (alpha_extract_return_value): Use
8281 regcache_cooked_read_unsigned to read 'v0'.
8282
8283 2013-04-19 Pedro Alves <palves@redhat.com>
8284
8285 * xtensa-tdep.c (execute_l32e, execute_s32e): Change type of
8286 parameters 'at', 'as' and 'offset' to uint32_t.
8287
8288 2013-04-19 Pedro Alves <palves@redhat.com>
8289
8290 * aarch64-tdep.c (aarch64_analyze_prologue): Change type of local
8291 'is64' to signed 'int'.
8292
8293 2013-04-19 Pedro Alves <palves@redhat.com>
8294
8295 * s390-tdep.c (is_rs, is_rsy, is_rx, is_rxy): Change type of 'd2'
8296 parameter to int *.
8297
8298 2013-04-19 Pedro Alves <palves@redhat.com>
8299
8300 * ppc-linux-tdep.c (ppc_skip_trampoline_code): Change local
8301 'insnbuf' buffer type to unsigned int[].
8302
8303 2013-04-19 Pedro Alves <palves@redhat.com>
8304
8305 * mips-tdep.c (mips_read_pc): Change local 'pc' type to LONGEST.
8306
8307 2013-04-19 Pedro Alves <palves@redhat.com>
8308
8309 * mep-tdep.c (mep_get_insn): Change 'insn' parameter type to
8310 unsigned long *.
8311
8312 2013-04-19 Pedro Alves <palves@redhat.com>
8313
8314 * alpha-tdep.c (heuristic_fence_post): Change type to int.
8315 (alpha_heuristic_proc_start): Adjust to check -1 instead of
8316 UINT_MAX.
8317 * mips-tdep.c (heuristic_fence_post): Change type to int.
8318 (heuristic_proc_start): Adjust to check -1 instead of UINT_MAX.
8319
8320 2013-04-19 Pedro Alves <palves@redhat.com>
8321
8322 * cris-tdep.c (usr_cmd_cris_version): Make unsigned.
8323 (struct gdbarch_tdep) <cris_version>: Make unsigned.
8324 (cris_spec_reg_applicable, cris_gdbarch_init): Adjust locals.
8325
8326 2013-04-19 Pedro Alves <palves@redhat.com>
8327
8328 * avr-tdep.c (avr_io_reg_read_command): New local 'bufstr'. Use
8329 it to get a string view of the byte buffer.
8330 * i386-cygwin-tdep.c (core_process_module_section): Change local 'buf'
8331 type to gdb_byte *. Adjust.
8332 * linux-tdep.c (linux_info_proc, linux_find_memory_regions_full):
8333 Change local to char *.
8334 * solib-darwin.c (find_program_interpreter): Change return type to
8335 char *. Adjust.
8336 (darwin_solib_get_all_image_info_addr_at_init): Adjust.
8337 * solib-dsbt.c (enable_break2): Change local 'buf' to char *.
8338 * solib-frv.c (enable_break2): Change local 'buf' to char *.
8339 * solib-spu.c (spu_current_sos): Add gdb_byte * cast.
8340 * solib-svr4.c (find_program_interpreter): Change return type to
8341 char *. Adjust.
8342 (enable_break): Change local 'interp_name' to char *.
8343 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
8344 * spu-tdep.c (spu_pseudo_register_read_spu): Add cast to 'char *'.
8345 (spu_pseudo_register_write_spu): Use char for string buffer.
8346 Adjust.
8347 (info_spu_event_command, info_spu_signal_command): Add casts to
8348 'char *'.
8349
8350 2013-04-19 Pedro Alves <palves@redhat.com>
8351
8352 * aarch64-tdep.c (aarch64_default_breakpoint): Change type to
8353 gdb_byte[].
8354 (aarch64_breakpoint_from_pc): Change return type to gdb_byte *.
8355 * ada-lang.c (ada_value_assign): Use gdb_byte.
8356 * alphanbsd-tdep.c (sigtramp_retcode): Change type to gdb_byte[].
8357 (alphanbsd_sigtramp_offset): Use gdb_byte.
8358 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint)
8359 (arm_linux_arm_be_breakpoint, eabi_linux_arm_le_breakpoint)
8360 (eabi_linux_arm_be_breakpoint, arm_linux_thumb_be_breakpoint)
8361 (arm_linux_thumb_le_breakpoint, arm_linux_thumb2_be_breakpoint)
8362 (arm_linux_thumb2_le_breakpoint): Change type to gdb_byte[].
8363 * arm-tdep.c (arm_stub_unwind_sniffer)
8364 (arm_displaced_init_closure): Use gdb_byte.
8365 (arm_default_arm_le_breakpoint, arm_default_arm_be_breakpoint)
8366 (arm_default_thumb_le_breakpoint)
8367 (arm_default_thumb_be_breakpoint): Change type to gdb_byte[].
8368 * arm-tdep.h (struct gdbarch_tdep) <arm_breakpoint,
8369 thumb_breakpoint, thumb2_breakpoint>: Change type to gdb_byte *.
8370 * arm-wince-tdep.c (arm_wince_le_breakpoint)
8371 (arm_wince_thumb_le_breakpoint): Change type to gdb_byte[].
8372 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint)
8373 (arm_nbsd_arm_be_breakpoint, arm_nbsd_thumb_le_breakpoint)
8374 (arm_nbsd_thumb_be_breakpoint): Change type to gdb_byte[].
8375 * armobsd-tdep.c (arm_obsd_thumb_le_breakpoint)
8376 (arm_obsd_thumb_be_breakpoint): Change type to gdb_byte[].
8377 * cris-tdep.c (push_stack_item, cris_push_dummy_call)
8378 (cris_store_return_value, cris_extract_return_value): Use
8379 gdb_byte.
8380 (constraint): Change type of parameter to char * from signed
8381 char*. Use gdb_byte.
8382 * dwarf2loc.c (read_pieced_value, write_pieced_value): Change type
8383 of local buffer to gdb_byte *.
8384 * dwarf2read.c (read_index_from_section): Use gdb_byte.
8385 (create_dwp_hash_table): Change type of locals to gdb_byte *.
8386 (add_address_entry): Change type of local buffer to gdb_byte[].
8387 * frv-tdep.c (frv_adjust_breakpoint_address, find_func_descr)
8388 (frv_push_dummy_call): Use gdb_byte.
8389 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code)
8390 (hppa_hpux_supply_ss_fpblock, hppa_hpux_supply_ss_wide)
8391 (hppa_hpux_supply_save_state): Use gdb_byte.
8392 * hppa-tdep.c (hppa32_push_dummy_call)
8393 (hppa64_convert_code_addr_to_fptr): Use gdb_byte.
8394 * ia64-tdep.c (extract_bit_field, replace_bit_field)
8395 (slotN_contents, replace_slotN_contents): Change type of parameter
8396 to gdb_byte *.
8397 (fetch_instruction, ia64_pseudo_register_write)
8398 (ia64_register_to_value, ia64_value_to_register)
8399 (ia64_extract_return_value, ia64_store_return_value)
8400 (ia64_push_dummy_call): Use gdb_byte.
8401 * m32c-tdep.c (m32c_return_value): Remove cast.
8402 * m68hc11-tdep.c (m68hc11_pseudo_register_write)
8403 (m68hc11_push_dummy_call, m68hc11_store_return_value): Use
8404 gdb_byte.
8405 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Use gdb_byte.
8406 * mn10300-tdep.c (mn10300_store_return_value)
8407 (mn10300_breakpoint_from_pc, mn10300_push_dummy_call): Use
8408 gdb_byte.
8409 * moxie-tdep.c (moxie_process_readu): Use gdb_byte.
8410 (moxie_process_record): Remove casts.
8411 * ppc-ravenscar-thread.c (supply_register_at_address)
8412 (ppc_ravenscar_generic_store_registers): Use gdb_byte.
8413 * ravenscar-thread.c (get_running_thread_id): Use gdb_byte.
8414 * remote-m32r-sdi.c (m32r_fetch_register): Use gdb_byte.
8415 * remote-mips.c (mips_xfer_memory): Use gdb_byte.
8416 * remote.c (compare_sections_command): Use gdb_byte.
8417 * score-tdep.c (score7_free_memblock): Change type of parameter to
8418 gdb_byte *.
8419 * sh-tdep.c (sh_justify_value_in_reg): Change return type to
8420 gdb_byte *. Use gdb_byte.
8421 (sh_push_dummy_call_fpu): Use gdb_byte.
8422 (sh_extract_return_value_nofpu, sh_extract_return_value_fpu)
8423 (sh_store_return_value_nofpu, sh_store_return_value_fpu)
8424 (sh_register_convert_to_virtual, sh_register_convert_to_raw):
8425 Change parameter type to 'gdb_byte *'. Use gdb_byte.
8426 (sh_pseudo_register_read, sh_pseudo_register_write): Use gdb_byte.
8427 * sh64-tdep.c (sh64_push_dummy_call): Use gdb_byte.
8428 (sh64_store_return_value, sh64_register_convert_to_virtual):
8429 Change parameter type to 'gdb_byte *'. Use gdb_byte.
8430 (sh64_pseudo_register_write): Use gdb_byte.
8431 * solib-darwin.c (darwin_current_sos): Add casts to 'gdb_byte *'.
8432 * solib-irix.c (fetch_lm_info): Likewise. Use gdb_byte for byte
8433 buffer.
8434 (irix_current_sos): Use gdb_byte.
8435 * solib-som.c (som_current_sos): Use gdb_byte.
8436 * sparc-ravenscar-thread.c (supply_register_at_address)
8437 (sparc_ravenscar_generic_store_registers): Use gdb_byte.
8438 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
8439 * spu-tdep.c (spu_get_overlay_table): Use gdb_byte.
8440 * tic6x-tdep.c (tic6x_breakpoint_from_pc): Change return type to
8441 'gdb_byte *'.
8442 * tic6x-tdep.h (struct gdbarch_tdep) <breakpoint>: Change type to
8443 'gdb_byte *'.
8444 * tracepoint.c (tfile_fetch_registers): Use gdb_byte.
8445 * xstormy16-tdep.c (xstormy16_extract_return_value)
8446 (xstormy16_store_return_value): Change parameter type to
8447 'gdb_byte *'. Adjust.
8448 (xstormy16_push_dummy_call): Use gdb_byte.
8449 * xtensa-tdep.c (xtensa_scan_prologue, call0_ret)
8450 (call0_analyze_prologue, execute_code): Use gdb_byte.
8451
8452 2013-04-19 Vladimir Kargov <kargov@gmail.com>
8453 Pedro Alves <palves@redhat.com>
8454
8455 * i387-tdep.c (i387_print_float_info): Use gdb_byte for pointer to
8456 value contents.
8457
8458 2013-04-17 Doug Evans <dje@google.com>
8459
8460 * dwarf2read.c (struct signatured_type): New member type.
8461 (struct attribute): Replace member signatured_type with signature.
8462 (DW_SIGNATURE): Replaces DW_SIGNATURE_TYPE.
8463 (read_call_site_scope): Call follow_die_ref instead of
8464 follow_die_ref_or_sig.
8465 (read_structure_type): Rewrite handling of signatured types.
8466 (read_enumeration_type): Ditto.
8467 (read_attribute_value): Update.
8468 (build_error_marker_type): New function.
8469 (lookup_die_type): Add assert. Rewrite handling of signatured types.
8470 Don't call error for bad types, just build an error marker type.
8471 (dump_die_shallow): Update.
8472 (follow_die_sig_1): Renamed from follow_die_sig.
8473 Don't call error for bad types, instead return NULL.
8474 (follow_die_sig): New function.
8475 (get_signatured_type, get_DW_AT_signature_type): New functions.
8476
8477 2013-04-17 Yufeng Zhang <yufeng.zhang@arm.com>
8478
8479 * aarch64-tdep.c (aarch64_write_pc): Removed.
8480 (aarch64_gdbarch_init): Remove set_gdbarch_write_pc of the above
8481 function.
8482
8483 2013-04-17 Yao Qi <yao@codesourcery.com>
8484
8485 * top.c (print_gdb_configuration): Print configure-time
8486 parameter on using libbabeltrace or not.
8487
8488 2013-04-16 Pedro Alves <palves@redhat.com>
8489
8490 * copyright.py (EXCLUDE_LIST): Add gdb/common/glibc_thread_db.h.
8491
8492 2013-04-16 Pedro Alves <palves@redhat.com>
8493
8494 * common/glibc_thread_db.h: Update from upstream glibc
8495 (git 568035b7874a099087b77f7bba3e36a1173787b0).
8496
8497 2013-04-16 Pedro Alves <palves@redhat.com>
8498
8499 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: Factor out to ...
8500 * common/glibc_thread_db.h: ... this new file ...
8501 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: ... and include it.
8502
8503 2013-04-16 Will Newton <will.newton@gmail.com>
8504 Pedro Alves <palves@redhat.com>
8505
8506 PR build/11881
8507
8508 * common/gdb_thread_db.h (LIBTHREAD_DB_SO)
8509 (LIBTHREAD_DB_SEARCH_PATH): Move outside of #ifdef
8510 HAVE_THREAD_DB_H.
8511
8512 2013-04-16 Pedro Alves <palves@redhat.com>
8513 Eli Zaretskii <eliz@gnu.org>
8514
8515 * NEWS: Mention "set foo unlimited".
8516
8517 2013-04-15 Doug Evans <dje@google.com>
8518
8519 * dwarf2read.c (struct dwo_file): Replace member "cus" with "cu".
8520 (struct create_dwo_cu_data): Renamed from create_dwo_info_table_data.
8521 (create_dwo_cu_reader): Renamed from
8522 create_dwo_debug_info_hash_table_reader.
8523 (create_dwo_cu): Renamed from create_dwo_debug_info_hash_table.
8524 Remove support for multiple CUs in a DWO file.
8525 (open_and_init_dwo_file, lookup_dwo_cutu): Update.
8526
8527 * dwarf2read.c (create_debug_types_hash_table): Use hex_string
8528 instead of phex.
8529 (lookup_dwo_unit, create_dwo_debug_info_hash_table_reader): Ditto.
8530 (create_dwo_in_dwp): Ditto.
8531
8532 2013-04-15 Tom Tromey <tromey@redhat.com>
8533
8534 * NEWS: Move recent entries into "since 7.6" section.
8535
8536 2013-04-15 Tom Tromey <tromey@redhat.com>
8537
8538 PR c++/13588:
8539 * NEWS: Update.
8540 * break-catch-throw.c (struct exception_catchpoint)
8541 <exception_rx, pattern>: New fields.
8542 (fetch_probe_arguments, dtor_exception_catchpoint)
8543 (check_status_exception_catchpoint)
8544 (print_one_detail_exception_catchpoint): New functions.
8545 (handle_gnu_v3_exceptions): Add "except_rx" argument.
8546 Compile regular expression if needed.
8547 (extract_exception_regexp): New function.
8548 (catch_exception_command_1): Use extract_exception_regexp.
8549 (compute_exception): Use fetch_probe_arguments.
8550 (initialize_throw_catchpoint_ops): Set dtor, print_one_detail,
8551 and check_status fields.
8552 * cp-abi.c (cplus_typename_from_type_info): New function.
8553 * cp-abi.h (cplus_typename_from_type_info): Declare.
8554 (struct cp_abi_ops) <get_typename_from_type_info>: New field.
8555 * gdb_regex.h (compile_rx_or_error): Declare.
8556 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info): Update
8557 comment.
8558 (init_gnuv3_ops): Set get_type_from_type_info field.
8559 * probe.c (compile_rx_or_error): Move...
8560 * utils.c (compile_rx_or_error): ... here.
8561
8562 2013-04-15 Tom Tromey <tromey@redhat.com>
8563
8564 PR c++/15176:
8565 * NEWS: Update.
8566 * break-catch-throw.c (compute_exception): New function.
8567 (exception_funcs): New global.
8568 (_initialize_break_catch_throw): Create $_exception.
8569 * cp-abi.c (cplus_type_from_type_info): New function.
8570 * cp-abi.h (cplus_type_from_type_info): Declare.
8571 (struct cp_abi_ops) <get_type_from_type_info>: New field.
8572 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info)
8573 (gnuv3_get_type_from_type_info): New functions.
8574 (init_gnuv3_ops): Set get_type_from_type_info ABI field.
8575
8576 2013-04-15 Tom Tromey <tromey@redhat.com>
8577
8578 * break-catch-throw.c (struct exception_names): New.
8579 (exception_functions): Change type.
8580 (re_set_exception_catchpoint): Look for SDT probes.
8581
8582 2013-04-15 Tom Tromey <tromey@redhat.com>
8583
8584 PR c++/10119:
8585 * break-catch-throw.c (exception_functions): New global.
8586 (gnu_v3_exception_catchpoint_ops): Move earlier.
8587 (struct exception_catchpoint): New.
8588 (classify_exception_breakpoint): Rewrite.
8589 (re_set_exception_catchpoint): New function.
8590 (handle_gnu_v3_exceptions): Return void. Use init_catchpoint.
8591 Allocate a struct exception_catchpoint.
8592 (catch_exception_command_1): Update.
8593 (initialize_throw_catchpoint_ops): Set 're_set' method.
8594
8595 2013-04-15 Tom Tromey <tromey@redhat.com>
8596
8597 * Makefile.in (SFILES): Add break-catch-throw.c
8598 (COMMON_OBS): Add break-catch-throw.o.
8599 * break-catch-throw.c: New file.
8600 * breakpoint.c: Move exception-catching code to new file.
8601 (ep_parse_optional_if_clause): No longer static.
8602 * breakpoint.h (ep_parse_optional_if_clause): Declare.
8603
8604 2013-04-15 Tom Tromey <tromey@redhat.com>
8605
8606 PR c++/9065:
8607 * NEWS: Update.
8608 * breakpoint.c (watchpoint_exp_is_const): Add OP_TYPEID.
8609 * c-exp.y (TYPEID): New token.
8610 (exp): Add new TYPEID productions.
8611 (ident_tokens): Add "typeid".
8612 * cp-abi.c (cplus_typeid, cplus_typeid_type): New functions.
8613 * cp-abi.h (cplus_typeid, cplus_typeid_type): Declare.
8614 (struct cp_abi_ops) <get_typeid, get_typeid_type>: New fields.
8615 * eval.c (evaluate_subexp_standard) <OP_TYPEID>: New case.
8616 * expprint.c (dump_subexp_body_standard) <OP_TYPEID>: New
8617 case.
8618 * gnu-v3-abi.c (std_type_info_gdbarch_data): New global.
8619 (build_std_type_info_type, gnuv3_get_typeid_type)
8620 (gnuv3_get_typeid): New functions.
8621 (init_gnuv3_ops): Initialize std_type_info_gdbarch_data. Set
8622 new fields on ABI object.
8623 * parse.c (operator_length_standard) <OP_TYPEID>: New case.
8624 * std-operator.def (OP_TYPEID): New.
8625
8626 2013-04-15 Tom Tromey <tromey@redhat.com>
8627
8628 * elfread.c (elf_symtab_read): Install versioned symbol under
8629 unversioned name as well.
8630
8631 2013-04-15 Tom Tromey <tromey@redhat.com>
8632
8633 PR c++/11990:
8634 * c-lang.c (cplus_language_defn): Use gdb_demangle.
8635 * c-typeprint.c (c_type_print_base): Use gdb_demangle.
8636 * cp-support.c (mangled_name_to_comp): Use gdb_demangle.
8637 (gdb_demangle): New function.
8638 * cp-support.h (gdb_demangle): Declare.
8639 * dwarf2read.c (dwarf2_physname, fixup_partial_die)
8640 (dwarf2_name): Use gdb_demangle.
8641 * gdbtypes.c (check_stub_method): Use gdb_demangle.
8642 * gnu-v3-abi.c (gnuv3_rtti_type): Strip @plt and version
8643 suffixes from name.
8644 (gnuv3_print_method_ptr): Use gdb_demangle.
8645 * jv-lang.c (java_demangle): Use gdb_demangle.
8646 * jv-typeprint.c (java_type_print_base): Use gdb_demangle.
8647 * language.c (unk_lang_demangle): Use gdb_demangle.
8648 * symtab.c (symbol_find_demangled_name)
8649 (demangle_for_lookup): Use gdb_demangle.
8650
8651 2013-04-15 Tom Tromey <tromey@redhat.com>
8652
8653 PR c++/12824:
8654 * NEWS: Update.
8655 * breakpoint.c (enum exception_event_kind) <EX_EVENT_RETHROW>:
8656 New constant.
8657 (classify_exception_breakpoint): New function.
8658 (print_it_exception_catchpoint, print_one_exception_catchpoint)
8659 (print_mention_exception_catchpoint)
8660 (print_recreate_exception_catchpoint, handle_gnu_v3_exceptions)
8661 (catch_exception_command_1): Handle "rethrow" catchpoint.
8662 (catch_rethrow_command): New function.
8663 (_initialize_breakpoint): Add "catch rethrow" command.
8664
8665 2013-04-15 Pierre Muller <muller@sourceware.org>
8666
8667 * contrib/ari/gdb_ari.sh (write_pc rule): Do not consider
8668 set_gdbarch_write_pc as deprecated anymore.
8669
8670 2013-04-15 Joel Brobecker <brobecker@adacore.com>
8671
8672 * spu-tdep.c (spu_write_pc): Add empty line after local variable
8673 declarations.
8674
8675 2013-04-13 Yao Qi <yao@codesourcery.com>
8676
8677 * ctf.c (_initialize_ctf): Include "completer.h".
8678 Call add_target_with_completer instead of add_target.
8679
8680 2013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
8681
8682 Fix GDB regression related to PR binutils/14813.
8683 * jit.c (mem_bfd_iovec_close): Return 0 for success.
8684 * minidebug.c (lzma_close): Add return value comment.
8685 * remote.c (remote_bfd_iovec_close): Return 0 for success.
8686 * solib-spu.c (spu_bfd_iovec_close): Likewise.
8687 * spu-linux-nat.c (spu_bfd_iovec_close): Likewise.
8688
8689 2013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
8690
8691 * config.in: Regenerate.
8692
8693 2013-04-12 Tom Tromey <tromey@redhat.com>
8694
8695 * dwarf2-frame.c (struct comp_unit) <dwarf_frame_buffer>: Now
8696 const.
8697 * dwarf2read.c (struct dwarf2_section_info) <buffer>: Now const.
8698 (struct die_reader_specs) <buffer>: Likewise.
8699 (die_reader_func_ftype): Make 'info_ptr' const.
8700 (struct line_header) <include_dirs, statement_program_start,
8701 statement_program_end>: Now const.
8702 (struct file_entry) <name>: Likewise.
8703 (struct partial_die_info) <sibling>: Likewise.
8704 (struct dwarf_block) <data>: Likewise.
8705 (dwarf2_read_section): Remove cast.
8706 (dwarf2_get_section_info): Make 'bufp' const.
8707 (read_index_from_section): Constify.
8708 (dw2_get_file_names_reader): Make 'info_ptr' const.
8709 (dw2_get_primary_filename_reader): Likewise.
8710 (read_comp_unit_head): Make 'info_ptr' and return type const.
8711 (read_and_check_comp_unit_head, read_and_check_type_unit_head):
8712 Likewise.
8713 (read_abbrev_offset): Constify.
8714 (dwarf2_create_include_psymtab): Make 'name' const.
8715 (create_debug_types_hash_table): Update.
8716 (read_cutu_die_from_dwo): Make 'result_info_ptr' const.
8717 (init_cutu_and_read_dies, init_cutu_and_read_dies_no_follow):
8718 Constify.
8719 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader)
8720 (load_partial_comp_unit_reader): Make 'info_ptr' const.
8721 (read_comp_units_from_section): Constify.
8722 (peek_abbrev_code, peek_die_abbrev, skip_children, skip_one_die)
8723 (locate_pdi_sibling, load_full_comp_unit_reader): Make 'info_ptr'
8724 const.
8725 (dwarf2_compute_name, setup_type_unit_groups): Constify.
8726 (create_dwo_debug_info_hash_table): Make 'info_ptr' const.
8727 (create_dwp_hash_table, dwarf2_ranges_read)
8728 (dwarf2_record_block_ranges): Constify.
8729 (read_die_and_children, read_die_and_siblings_1)
8730 (read_die_and_siblings): Make 'info_ptr' and 'new_info_ptr'
8731 const.
8732 (read_full_die_1, read_full_die): Make 'info_ptr' const.
8733 (abbrev_table_read_table): Constify.
8734 (load_partial_dies): Make 'info_ptr' const.
8735 (read_partial_die, read_attribute_value, read_attribute): Make
8736 'info_ptr' and return type const.
8737 (read_address, read_initial_length)
8738 (read_checked_initial_length_and_offset, read_offset)
8739 (read_offset_1, read_n_bytes, read_direct_string): Make 'buf'
8740 const.
8741 (read_direct_string): Make 'buf' and return type const.
8742 (read_indirect_string_at_offset, read_indirect_string_from_dwz)
8743 (read_indirect_string): Make return type const.
8744 (read_unsigned_leb128, read_signed_leb128): Make 'buf' const.
8745 (read_addr_index_from_leb128, dwarf2_read_addr_index_reader): Make
8746 'info_ptr' const.
8747 (read_str_index): Make return type const.
8748 (add_include_dir): Make 'include_dir' const.
8749 (add_file_name): Make 'name' const.
8750 (dwarf_decode_line_header): Constify.
8751 (psymtab_include_file_name): Make return type const.
8752 (dwarf_decode_lines_1, dwarf_decode_lines): Constify.
8753 (dwarf2_start_subfile): Make 'filename' const.
8754 (dwarf2_const_value_attr): Make 'bytes' const.
8755 (read_signatured_type_reader): Make 'info_ptr' const.
8756 (decode_locdesc): Constify.
8757 (skip_form_bytes): Make 'bytes', 'buffer_end', and return type
8758 const.
8759 (skip_unknown_opcode): Make 'opcode_definitions', 'mac_ptr',
8760 'mac_end', and return type const.
8761 (dwarf_parse_macro_header): Make 'mac_ptr' and return type const.
8762 (dwarf_decode_macro_bytes): Make 'mac_ptr', 'mac_end', and return
8763 type const.
8764 (per_cu_header_read_in): Constify.
8765 * symfile.h (dwarf2_get_section_info): Update.
8766
8767 2013-04-12 Tom Tromey <tromey@redhat.com>
8768
8769 * symtab.h (struct general_symbol_info) <value.bytes>: Make const.
8770
8771 2013-04-12 Eli Zaretskii <eliz@gnu.org>
8772
8773 * NEWS: Mention "show configuration", --configuration.
8774 * top.c (print_gdb_configuration): New function, displays the
8775 details about GDB configure-time parameters.
8776 (print_gdb_version): Mention "show configuration".
8777 * cli/cli-cmds.c (show_configuration): New function.
8778 (_initialize_cli_cmds): Add the "show configuration" command.
8779 * main.c (captured_main) <print_configuration>: New static var.
8780 <long_options>: Use it.
8781 If --configuration was given, call print_gdb_configuration.
8782
8783 2013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8784 Pedro Alves <palves@redhat.com>
8785
8786 * Makefile.in (HAVE_NATIVE_GCORE_TARGET): New.
8787 (generated_files): Add gcore.
8788 (install-only, uninstall): Add gcore if HAVE_NATIVE_GCORE_TARGET or
8789 HAVE_NATIVE_GCORE_HOST.
8790 (gcore): New.
8791 * NEWS (Changes since GDB 7.6): Mention newly installed gcore.
8792 * config/alpha/alpha-osf3.mh, config/i386/fbsd.mh,
8793 config/i386/fbsd64.mh, config/i386/i386gnu.mh, config/i386/i386sol2.mh,
8794 config/i386/sol2-64.mh, config/mips/irix5.mh, config/mips/irix6.mh,
8795 config/powerpc/fbsd.mh, config/sparc/fbsd.mh, config/sparc/sol2.mh:
8796 Add HAVE_NATIVE_GCORE_HOST.
8797 * configure: Regenerate.
8798 * configure.ac (HAVE_NATIVE_GCORE_TARGET): New, set it, AC_SUBST it.
8799 New AC_SUBST fir GDB_TRANSFORM_NAME and GCORE_TRANSFORM_NAME. New
8800 AC_CONFIG_FILES for gcore.
8801 * configure.tgt: Add gdb_have_gcore to the initial comment. Set
8802 gdb_have_gcore.
8803 * gdb_gcore.sh: Rename to ...
8804 * gcore.in: ... here. Remove gcore.sh comment. Use GDB_TRANSFORM_NAME
8805 and GCORE_TRANSFORM_NAME substitutions.
8806
8807 Fix parsing tabs in ${gdb_target_obs}.
8808 * configure.tgt (gdb_have_gcore): Replace case with for and if.
8809
8810 2013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8811
8812 * remote.c (unpush_and_perror): Add output message final dot.
8813
8814 2013-04-11 Yao Qi <yao@codesourcery.com>
8815
8816 * tracepoint.c (tfile_interp_line): Fit parameters line and
8817 utpp in one line.
8818
8819 2013-04-10 Joel Brobecker <brobecker@adacore.com>
8820
8821 * solib.c (solib_map_sections): Remove code overwriting
8822 SO->SO_NAME with the bfd's filename.
8823
8824 2013-04-10 Pedro Alves <palves@redhat.com>
8825
8826 * cli/cli-decode.c (integer_unlimited_completer): New function.
8827 (add_setshow_integer_cmd, add_setshow_uinteger_cmd)
8828 (add_setshow_zuinteger_unlimited_cmd): Install the "unlimited"
8829 completer.
8830 * cli/cli-setshow.c: Include "cli/cli-utils.h".
8831 (is_unlimited_literal): New function.
8832 (do_set_command): Handle literal "unlimited" arguments.
8833 * frame.c (_initialize_frame) <set backtrace limit>: Document
8834 "unlimited".
8835 * printcmd.c (_initialize_printcmd) <set print
8836 max-symbolic-offset>: Add help text.
8837 * record-full.c (_initialize_record_full) <set record full
8838 insn-number-max>: Likewise.
8839 * record.c (_initialize_record) <set record
8840 instruction-history-size, set record function-call-history-size>:
8841 Add help text.
8842 * ser-tcp.c (_initialize_ser_tcp) <set tcp connect-timeout>: Add
8843 help text.
8844 * tracepoint.c (_initialize_tracepoint) <set trace-buffer-size>:
8845 Likewise.
8846 * source.c (_initialize_source) <set listsize>: Add help text.
8847 * utils.c (initialize_utils) <set height, set width>: Likewise.
8848 <set pagination>: Mention "set height unlimited".
8849 * valprint.c (_initialize_valprint) <set print elements, set print
8850 repeats>: Document "unlimited".
8851
8852 2013-04-10 Pedro Alves <palves@redhat.com>
8853
8854 * cli/cli-cmds.c (quit_command): Call query_if_trace_running
8855 instead of disconnect_tracing.
8856 * infcmd.c (detach_command, disconnect_command): Call
8857 query_if_trace_running. Adjust.
8858 * top.c: Include "tracepoint.h".
8859 (quit_target): Delete. Contents moved ...
8860 (quit_force): ... here. Wrap each stage of teardown in
8861 TRY_CATCH. Call disconnect_tracing before detaching.
8862
8863 2013-04-10 Hui Zhu <hui@codesourcery.com>
8864 Yao Qi <yao@codesourcery.com>
8865
8866 * configure.ac: Check libbabeltrace is installed.
8867 * config.in: Regenerate.
8868 * configure: Regenerate.
8869 * Makefile.in (LIBBABELTRACE): New.
8870 (CLIBS): Add LIBBABELTRACE.
8871 * ctf.c: Include "exec.h".
8872 (CTF_EVENT_ID_STATUS, CTF_EVENT_ID_TSV_DEF): New macros.
8873 (CTF_EVENT_ID_TP_DEF, ctf_save_write_int32): New macros.
8874 (ctf_save_metadata_header): Define new type aliases in
8875 metadata.
8876 (ctf_write_header): Define event type "tsv_def" and "tp_def"
8877 in metadata. Start a new faked packet for trace status.
8878 (ctf_write_status): Write trace status to CTF.
8879 (ctf_write_uploaded_tsv): Write TSV to CTF.
8880 (ctf_write_uploaded_tp): Write tracepoint definition to CTF.
8881 (ctf_write_definition_end): End the faked packet.
8882
8883 (ctx, ctf_iter, trace_dirname): New.
8884 (start_pos): New variable.
8885 (ctf_destroy, ctf_open_dir, ctf_open): New.
8886 (SET_INT32_FIELD, SET_ARRAY_FIELD, SET_STRING_FIELD): New
8887 macros.
8888 (ctf_read_tsv, ctf_read_tp, ctf_close, ctf_files_info): New.
8889 (ctf_fetch_registers, ctf_xfer_partial): New.
8890 (ctf_get_trace_state_variable_value): New.
8891 (ctf_get_tpnum_from_frame_event): New.
8892 (ctf_get_traceframe_address): New.
8893 (ctf_trace_find, ctf_has_stack): New.
8894 (ctf_has_registers, ctf_traceframe_info, init_ctf_ops): New.
8895 (ctf_get_trace_status, ctf_read_status): New.
8896 (_initialize_ctf): New.
8897 * tracepoint.c (get_tracepoint_number): New
8898 (get_uploaded_tsv): Remove 'static'.
8899 (struct traceframe_info, trace_regblock_size): Move it to ...
8900 * tracepoint.h: ... here.
8901 (get_tracepoint_number): Declare it.
8902 (get_uploaded_tsv): Declare it.
8903
8904 * NEWS: Mention new configure option.
8905
8906 2013-04-10 Pedro Alves <palves@redhat.com>
8907 Hui Zhu <hui@codesourcery.com>
8908
8909 * breakpoint.c (dprintf_re_set): New.
8910 (initialize_breakpoint_ops): Set dprintf_breakpoint_ops re_set
8911 to dprintf_re_set.
8912
8913 2013-04-09 Joel Brobecker <brobecker@adacore.com>
8914
8915 * configure.tgt (gdb_target_obs) <powerpc-*-aix* | rs6000-*-*>:
8916 Remove solib-svr4.o from the list.
8917
8918 2013-04-09 Joel Brobecker <brobecker@adacore.com>
8919
8920 * varobj.c (update_dynamic_varobj_children) [!HAVE_PYTHON]:
8921 Use gdb_assert_not_reached instead of invalid boolean expression.
8922
8923 2013-04-09 Pedro Alves <palves@redhat.com>
8924
8925 * remote.c (unpush_and_perror): New function.
8926 (readchar, remote_serial_write): Use it.
8927
8928 2013-04-09 Markus Metzger <markus.t.metzger@intel.com>
8929
8930 * NEWS: Mention new btrace RSP packets.
8931
8932 2013-04-08 Tom Tromey <tromey@redhat.com>
8933
8934 * symmisc.c (dump_msymbols): Cast fprintf_filtered argument to
8935 long.
8936
8937 2013-04-08 Tom Tromey <tromey@redhat.com>
8938
8939 * maint.c (print_bfd_section_info): Print the section index.
8940 * symmisc.c (dump_msymbols): Print the section index.
8941
8942 2013-04-08 Tom Tromey <tromey@redhat.com>
8943
8944 PR symtab/8424:
8945 * blockframe.c (find_pc_partial_function_gnu_ifunc): Check
8946 SYMBOL_SECTION, not SYMBOL_OBJ_SECTION.
8947 * breakpoint.c (resolve_sal_pc): Update.
8948 * elfread.c (elf_gnu_ifunc_record_cache): Update.
8949 * findvar.c (struct minsym_lookup_data) <objfile>: New field.
8950 (minsym_lookup_iterator_cb): Use it.
8951 (default_read_var_value): Update.
8952 * hppa-hpux-tdep.c (hppa64_hpux_in_solib_call_trampoline):
8953 Update.
8954 * infcmd.c (jump_command): Update.
8955 * linespec.c (minsym_found): Update.
8956 * maint.c (maintenance_translate_address): Update.
8957 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Update.
8958 (prim_record_minimal_symbol_full): Don't set SYMBOL_OBJ_SECTION.
8959 * parse.c (write_exp_msymbol): Update.
8960 * printcmd.c (address_info): Update.
8961 * psymtab.c (find_pc_sect_psymbol): Update.
8962 (fixup_psymbol_section): Check SYMBOL_SECTION, not
8963 SYMBOL_OBJ_SECTION.
8964 (add_psymbol_to_bcache): Correctly initialize SYMBOL_SECTION.
8965 Don't initialize SYMBOL_OBJ_SECTION.
8966 * spu-tdep.c (spu_catch_start): Update.
8967 * stabsread.c (define_symbol): Don't set SYMBOL_SECTION.
8968 * symmisc.c (dump_msymbols, print_symbol): Update.
8969 * symtab.c (fixup_section): Don't set 'obj_section'. Change
8970 how fallback section is computed.
8971 (fixup_symbol_section): Update.
8972 (find_pc_sect_symtab, find_function_start_sal, skip_prologue_sal):
8973 Update.
8974 (allocate_symbol, initialize_symbol, allocate_template_symbol):
8975 Initialize SYMBOL_SECTION.
8976 * symtab.h (struct general_symbol_info) <section>: Update comment.
8977 <obj_section>: Remove.
8978 (SYMBOL_OBJ_SECTION): Add 'objfile' argument. Rewrite.
8979 (SYMBOL_OBJFILE): New macro.
8980
8981 2013-04-08 Tom Tromey <tromey@redhat.com>
8982
8983 * coffread.c (record_minimal_symbol): Update.
8984 * dbxread.c (record_minimal_symbol): Update.
8985 * elfread.c (record_minimal_symbol): Update.
8986 * machoread.c (macho_symtab_add_minsym): Update.
8987 * mdebugread.c (record_minimal_symbol, parse_partial_symbols):
8988 Update.
8989 * minsyms.c (prim_record_minimal_symbol): Update.
8990 (prim_record_minimal_symbol_full): Remove 'bfd_section'
8991 argument.
8992 (prim_record_minimal_symbol_and_info): Likewise.
8993 * minsyms.h (prim_record_minimal_symbol_full)
8994 (prim_record_minimal_symbol_and_info): Update.
8995 * symtab.c (allocate_symbol, initialize_symbol)
8996 (allocate_template_symbol): Initialize SYMBOL_SECTION.
8997 * xcoffread.c (record_minimal_symbol, scan_xcoff_symtab):
8998 Update.
8999
9000 2013-04-08 Tom Tromey <tromey@redhat.com>
9001
9002 PR symtab/8423:
9003 * solib-som.c (som_solib_section_offsets): Use BFD section
9004 indices. Set offsets for all sections.
9005 * somread.c (som_symtab_read): Compute BFD section for
9006 symbol. Use prim_record_minimal_symbol_and_info.
9007 (som_symfile_read): Fix comment.
9008 (struct find_section_offset_arg): New.
9009 (find_section_offset, set_section_index): New functions.
9010 (som_symfile_offsets): Use set_section_index to compute
9011 section indices.
9012
9013 2013-04-08 Tom Tromey <tromey@redhat.com>
9014
9015 * coffread.c (cs_to_section): Use gdb_bfd_section_index.
9016 * elfread.c (record_minimal_symbol, elf_symtab_read): Use
9017 gdb_bfd_section_index.
9018 * gdb_bfd.c (gdb_bfd_section_index, gdb_bfd_count_sections):
9019 New functions.
9020 * gdb_bfd.h (gdb_bfd_section_index, gdb_bfd_count_sections):
9021 Declare.
9022 * machoread.c (macho_symtab_add_minsym, macho_symfile_offsets):
9023 Update.
9024 * objfiles.c (add_to_objfile_sections_full): New function.
9025 (add_to_objfile_sections): Use it.
9026 (build_section_table): Rewrite.
9027 (objfile_relocate1): Use gdb_bfd_section_index. Update.
9028 * objfiles.h (obj_section_offset): Use gdb_bfd_section_index.
9029 (struct objfile) <sections>: Update comment.
9030 (ALL_OBJFILE_OSECTIONS): Skip sections where the_bfd_section
9031 is NULL.
9032 (ALL_OBJSECTIONS): Use it.
9033 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
9034 * solib-frv.c (frv_relocate_main_executable): Update.
9035 * solib-target.c (solib_target_relocate_section_addresses):
9036 Use gdb_bfd_section_index.
9037 * symfile.c (build_section_addr_info_from_section_table):
9038 Use gdb_bfd_section_index.
9039 (build_section_addr_info_from_bfd, place_section): Likewise.
9040 * symtab.c (fixup_section): Update.
9041 * xcoffread.c (find_targ_sec): Use gdb_bfd_section_index.
9042
9043 2013-04-08 Tom Tromey <tromey@redhat.com>
9044
9045 * minsyms.h (struct bound_minimal_symbol): New.
9046 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
9047 Remove objfile argument.
9048 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
9049 Return bound_minimal_symbol.
9050 * minsyms.c (lookup_minimal_symbol_by_pc_1)
9051 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
9052 Return bound_minimal_symbol.
9053 (in_gnu_ifunc_stub): Update.
9054 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
9055 Remove 'objfile_p' argument.
9056 (lookup_solib_trampoline_symbol_by_pc): Update.
9057 * ada-tasks.c, amd64-windows-tdep.c, arm-tdep.c,
9058 arm-wince-tdep.c, block.c, blockframe.c, breakpoint.c, btrace.c,
9059 c-valprint.c, dwarf2loc.c, elfread.c, frame.c, frv-tdep.c,
9060 glibc-tdep.c, gnu-v2-abi.c, gnu-v3-abi.c, hppa-hpux-tdep.c,
9061 i386-tdep.c, ia64-tdep.c, infcall.c, infcmd.c, jit.c,
9062 linux-fork.c, m32c-tdep.c, m68hc11-tdep.c, maint.c,
9063 mips-tdep.c, p-valprint.c, parse.c, ppc-linux-tdep.c,
9064 ppc-sysv-tdep.c, printcmd.c, rs6000-tdep.c, sh64-tdep.c,
9065 stack.c, symtab.c, tui/tui-disasm.c: Update.
9066
9067 2013-04-08 Tom Tromey <tromey@redhat.com>
9068
9069 * ada-lang.c (ada_decode_symbol): Check and set 'ada_mangled'.
9070 Use symbol's obstack, not an objfile.
9071 * coffread.c (process_coff_symbol): Update.
9072 * dwarf2read.c (fixup_go_packaging, new_symbol_full): Update.
9073 * jv-lang.c (add_class_symbol): Update.
9074 * mdebugread.c (new_symbol): Update.
9075 * minsyms.c (prim_record_minimal_symbol_full)
9076 (terminate_minimal_symbol_table): Update.
9077 * psymtab.c (add_psymbol_to_bcache): Clear entire symbol. Update.
9078 * stabsread.c (define_symbol, read_enum_type): Update.
9079 * symtab.c (symbol_set_demangled_name, symbol_get_demangled_name):
9080 Handle Ada specially.
9081 (symbol_set_language): Add 'obstack' argument.
9082 (symbol_set_names): Update.
9083 (symbol_natural_name, symbol_demangled_name): Always use
9084 ada_decode_symbol.
9085 * symtab.h (struct general_symbol_info)
9086 <language_specific::obstack>: New field.
9087 <ada_mangled>: New field.
9088 (SYMBOL_SET_LANGUAGE): Add 'obstack' argument.
9089 (symbol_set_language): Update.
9090
9091 2013-04-08 Tom Tromey <tromey@redhat.com>
9092
9093 * symtab.c (symbol_init_cplus_specific, symbol_set_demangled_name):
9094 Take an obstack, not an objfile.
9095 (symbol_set_names): Update.
9096 * symtab.h (symbol_set_demangled_name): Update.
9097
9098 2013-04-08 Tom Tromey <tromey@redhat.com>
9099
9100 * coffread.c (process_coff_symbol, coff_read_enum_type): Call
9101 allocate_symbol.
9102 * dwarf2read.c (fixup_go_packaging): Call allocate_symbol.
9103 (read_func_scope): Call allocate_template_symbol.
9104 (new_symbol_full): Call allocate_symbol.
9105 * jit.c (finalize_symtab): Call allocate_symbol.
9106 * jv-lang.c (add_class_symbol): Call allocate_symbol.
9107 * mdebugread.c (parse_symbol, new_block): Call allocate_symbol.
9108 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
9109 (common_block_end): Call allocate_symbol.
9110 * symtab.c (allocate_symbol, initialize_symbol)
9111 (allocate_template_symbol): New functions.
9112 * symtab.c (allocate_symbol, initialize_symbol)
9113 (allocate_template_symbol): Declare.
9114 * xcoffread.c (process_xcoff_symbol): Call initialize_symbol.
9115
9116 2013-04-08 Pedro Alves <palves@redhat.com>
9117 Keith Seitz <keiths@redhat.com>
9118
9119 * breakpoint.c (create_breakpoint): Rename
9120 "parse_condition_and_thread" parameter to "parse_arg". Update
9121 describing comment. If !PARSE_ARG, then error out if ARG is not
9122 the empty string after extracting the location.
9123 * breakpoint.h (create_breakpoint): Rename
9124 "parse_condition_and_thread" parameter to "parse_arg".
9125
9126 2013-04-08 Aleksandar Ristovski <aristovski@qnx.com
9127
9128 * solib-svr4.c (lm_addr_check): Add const qualifier to 'so' arg.
9129
9130 2013-04-07 Yao Qi <yao@codesourcery.com>
9131
9132 * remote.c (remote_trace_find): Change type of parameters 'addr1'
9133 and 'addr2' to CORE_ADDR.
9134 * target.c (update_current_target): Update.
9135 * target.h (struct target_ops) <to_trace_find>: Change parameter
9136 type to CORE_ADDR.
9137 * tracepoint.c (tfind_1): Change type of parameters 'addr1' and
9138 'addr2' to CORE_ADDR.
9139 (tfile_trace_find): Likewise.
9140 (tfile_get_traceframe_address): Change return type to CORE_ADDR.
9141 Change local variable 'addr' to type CORE_ADDR.
9142 * tracepoint.h (tfind_1): Update declaration.
9143
9144 2013-04-06 Eli Zaretskii <eliz@gnu.org>
9145
9146 * windows-nat.c (windows_get_absolute_argv0): Move from here...
9147 * mingw-hdep.c (windows_get_absolute_argv0): ...to here.
9148 Include main.h.
9149
9150 * windows-nat.h (windows_get_absolute_argv0): Move prototype from
9151 here...
9152 * main.h (windows_get_absolute_argv0): ...to here.
9153
9154 2013-04-05 Doug Evans <dje@google.com>
9155
9156 * dwarf2read.c (struct dwarf2_per_objfile): Tweak comment.
9157 (read_cutu_die_from_dwo): Add comments.
9158 (read_structure_type): Update comment.
9159 (read_enumeration_type, read_namespace_type): Update comment.
9160 (read_die_type, get_die_type_at_offset, get_die_type): Update comment.
9161
9162 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
9163
9164 Convert man pages to texinfo, new gdbinit.5 texinfo page.
9165 * Makefile.in (gdb.z): Remove.
9166 (install-only): Remove $(man1dir) and gdb.1 installation.
9167 * gdb.1: Remove.
9168
9169 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
9170
9171 Fix compatibility with Linux kernel 3.8.3.
9172 * linux-tdep.c (linux_find_memory_regions_full): Move variable number
9173 to more inner block. Remove parsing of NUMBER from outer block.
9174 Parse NUMBER only if KEYWORD has been identified.
9175
9176 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
9177
9178 Fix variable name shadowing.
9179 * linux-tdep.c (linux_find_memory_regions_full): Rename outer variable
9180 filename to mapsfilename and update its uses.
9181
9182 2013-04-05 Eli Zaretskii <eliz@gnu.org>
9183
9184 * Makefile.in (TAGS): Avoid warning from etags when $GDB_NM_FILE is
9185 empty. See http://sourceware.org/ml/gdb-patches/2012-08/msg00504.html
9186 and http://sourceware.org/ml/gdb-patches/2013-04/msg00055.html for
9187 details of the problem.
9188
9189 2013-04-04 Pedro Alves <palves@redhat.com>
9190 Hui Zhu <hui@codesourcery.com>
9191
9192 * breakpoint.c (validate_commands_for_breakpoint): If validating a
9193 tracepoint, reset its STEP_COUNT and call validate_actionline.
9194
9195 2013-04-03 Doug Evans <dje@google.com>
9196
9197 * dwarf2read.c (read_die_and_siblings_1): Renamed from
9198 read_die_and_siblings.
9199 (read_die_and_siblings): New function.
9200 (read_cutu_die_from_dwo): Dump die if requested.
9201 (read_die_and_children): Call read_full_die_1 and
9202 read_die_and_siblings_1.
9203 (read_full_die): Dump die if requested.
9204
9205 * dwarf2read.c (read_comp_units_from_section): Add debugging printf.
9206
9207 * dwarf2read.c (struct dwo_file): New member comp_dir.
9208 Rename member name to dwo_name. All uses updated.
9209 (hash_dwo_file): Include comp_dir in computation.
9210 (eq_dwo_file): Ditto.
9211 (lookup_dwo_file_slot): New arg comp_dir. All callers updated.
9212 (create_dwo_in_dwp, lookup_dwo_in_dwp, open_and_init_dwo_file): Ditto.
9213
9214 * psymtab.c (read_psymtabs_with_fullname): Don't call
9215 psymtab_to_fullname if the basenames are different.
9216
9217 2013-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
9218
9219 * NEWS (Changes in GDB 7.6): Update the data-disassemble for "fullname".
9220 New entry about "fullname" presence.
9221
9222 2013-04-03 Pedro Alves <palves@redhat.com>
9223
9224 * NEWS: Mention x86_64/Cygwin as new native configuration.
9225
9226 2013-04-02 Doug Evans <dje@google.com>
9227
9228 * dwarf2read.c (read_structure_type): Fix typo in comment.
9229
9230 2013-04-02 Pedro Alves <palves@redhat.com>
9231
9232 * NEWS: Mention "set/show debug aarch64", "set/show debug
9233 coff-pe-read" and "set/show debug mach-o".
9234
9235 2013-04-02 Pedro Alves <palves@redhat.com>
9236
9237 * NEWS: Mention "set/show remote trace-buffer-size-packet".
9238
9239 2013-04-02 Eli Zaretskii <eliz@gnu.org>
9240
9241 * Makefile.in (HFILES_NO_SRCDIR): Remove call-cmds.h.
9242 gdb_string.h is now in common/.
9243
9244 2013-04-02 Pedro Alves <palves@redhat.com>
9245
9246 * NEWS: Move "set debug notification" and "set trace-buffer-size"
9247 under "New options".
9248
9249 2013-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
9250
9251 Revert this patch:
9252 PR gdb/15275
9253 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
9254
9255 2013-04-02 Pedro Alves <palves@redhat.com>
9256
9257 PR gdb/15275
9258
9259 * remote.c (send_interrupt_sequence): Use remote_serial_write.
9260 (remote_serial_write): New function.
9261 (putpkt_binary, getpkt_or_notif_sane_1): Use remote_serial_write.
9262
9263 2013-04-01 Jiong Wang <jiwang@tilera.com>
9264
9265 * NEWS: Mention TILE-Gx in "New native configurations" and
9266 "New targets" sections.
9267
9268 2013-04-01 Doug Evans <dje@google.com>
9269
9270 * dwarf2read.c (lookup_signatured_type_at_offset): Delete.
9271 (process_enumeration_scope): Simplify.
9272
9273 * dwarf2read.c (struct dwarf2_per_cu_data): Move member
9274 type_unit_group ...
9275 (struct signatured_type): ... to here.
9276 (sig_type_ptr): New typedef.
9277 (type_unit_group): Delete member 't.first_cu'. Move member 'tus'
9278 out of union 't'. All uses updated.
9279 (dw2_get_file_names_reader): Assert not called for a type unit.
9280 (dw2_get_file_names): Assert not called for a type unit or type
9281 unit group.
9282 (build_type_psymtabs_reader): Assert called for a type unit.
9283 (build_type_psymtab_dependencies): Assert called for a type unit group.
9284
9285 * dwarf2read.c (free_dwo_file): Add comment.
9286 (dwarf2_per_objfile_free): Unref dwp bfd.
9287
9288 2013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
9289
9290 * coff-pe-read.c (add_pe_exported_sym): Remove unused 'dll_name_len'.
9291 (add_pe_forwarded_sym): Remove unused 'section', 'dll_name_len'.
9292 (read_pe_exported_syms): Remove unused 'exportix'.
9293 (pe_text_section_offset): Remove unused 'opthdr_ofs', 'num_entries',
9294 'export_rva', 'export_size', 'expptr', 'exp_funcbase', 'expdata',
9295 'erva', 'name_rvas', 'ordinals', 'nexp', 'ordbase', 'dll_name'.
9296
9297 2013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
9298
9299 * breakpoint.c (parse_cond_to_aexpr): Remove unused 'old_chain'.
9300 (print_it_watchpoint): Remove unused 'bl'.
9301 (say_where): Remove unused 'uiout'.
9302 (bpstat_remove_breakpoint_callback): Remove unused 'uiout'.
9303 (bkpt_breakpoint_hit): Remove unused 'b'.
9304 (internal_bkpt_print_it): Remove unused 'uiout'.
9305 * buildsym.c (augment_type_symtab): Remove unused 'i'.
9306
9307 2013-03-31 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
9308
9309 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_float): New function.
9310 (ppc64_sysv_abi_push_dummy_call): Handle complex arguments.
9311
9312 2013-03-29 Doug Evans <dje@google.com>
9313
9314 * dwarf2read.c (open_dwo_file): Renamed from open_dwop_file.
9315 Delete arg is_dwp. All callers updated.
9316 (open_dwp_file): New function.
9317 (open_and_init_dwp_file): Call it.
9318 (get_dwp_file): New function.
9319 (lookup_dwo_cutu): Call it.
9320
9321 * dwarf2read.c (open_and_init_dwp_file): Remove incorrect, and
9322 unnecessary, cleanup.
9323
9324 * dwarf2read.c (lookup_dwo_cutu): Improve complaint text.
9325
9326 * dwarf2read.c (read_cutu_die_from_dwo): New function.
9327 (lookup_dwo_unit): New function.
9328 (init_cutu_and_read_dies): Move DWO handling to new functions.
9329
9330 * dwarf2read.c (struct signatured_type): Tweak comment.
9331 (struct dwo_unit): Tweak comment.
9332 (create_debug_types_hash_table): Tweak comment. Reformat long line.
9333 (create_dwo_debug_info_hash_table): Tweak comment.
9334 (dwarf2_per_cu_offset_and_type): Tweak comment.
9335
9336 * dwarf2read.c (lookup_signatured_type): Remove complaint about
9337 missing .debug_types section.
9338
9339 2013-03-29 Yao Qi <yao@codesourcery.com>
9340
9341 * corelow.c: Include "completer.h".
9342 (_initialize_corelow): Call add_target_with_completer with
9343 argument 'filename_completer'.
9344 * tracepoint.c: Likewise.
9345 * exec.c (_initialize_exec): Likewise.
9346 * target.c (add_target): Rename to ...
9347 (add_target_with_completer): ... this. Call set_cmd_completer
9348 if parameter completer is not NULL.
9349 (add_target): New.
9350 * target.h: Include "command.h".
9351 (add_target_with_completer): Declare it.
9352
9353 2013-03-28 Joel Brobecker <brobecker@adacore.com>
9354
9355 * coffread.c (is_import_fixup_symbol): New function.
9356 (record_minimal_symbol): Use is_import_fixup_symbol to
9357 detect import fixup symbols, and discard them.
9358
9359 2013-03-28 Doug Evans <dje@google.com>
9360
9361 * dwarf2read.c (create_debug_types_hash_table): Don't allocate the
9362 types hash table until we know we need it.
9363
9364 * dwarf2read.c (create_addrmap_from_index): Complain about bad CU
9365 index numbers.
9366
9367 * dwarf2read.c (dw2_get_file_names): Delete arg "objfile".
9368 All callers updated.
9369 (dw2_print_stats): Print #read CUs too.
9370 (dump_die_shallow): Print signatured types better.
9371
9372 * dwarf2read.c (struct dwarf2_per_cu_data): Rename member
9373 info_or_types_section to section. All uses updated.
9374 (struct dwo_unit): Ditto.
9375
9376 2013-03-28 Pedro Alves <palves@redhat.com>
9377
9378 * NEWS (New options): New section.
9379 (New options): Mention set/show remote trace-status-packet.
9380 * remote.c (PACKET_qTStatus): New enumeration value.
9381 (remote_get_trace_status): Skip sending qTStatus if the packet is
9382 disabled. Use packet_ok.
9383 (_initialize_remote): Register a configuration command for
9384 qTStatus packet.
9385
9386 2013-03-28 Doug Evans <dje@google.com>
9387
9388 * symfile.c (find_separate_debug_file): Add comment.
9389 (terminate_after_last_dir_separator): Tweak comment.
9390
9391 * dwarf2read.c (create_partial_symtab): Add forward decl.
9392 (create_partial_symtab): Move to be closer to other psymtab functions.
9393 (process_psymtab_comp_unit_reader, process_psymtab_comp_unit): Ditto.
9394
9395 * dwarf2read.c (dwarf2_physname): Move declaration to better spot.
9396 (compute_symtab_includes): Remove unnecessary forward declaration.
9397 (die_needs_namespace): Add comment marking group of functions for
9398 dwarf2 name computation.
9399
9400 * typeprint.c (_initialize_typeprint): Improve type help text.
9401
9402 * python/python.c (finish_python_initialization): Provide suggestion
9403 for how to tell gdb to find its python files.
9404
9405 2013-03-28 Pedro Alves <palves@redhat.com>
9406
9407 PR gdb/15294
9408
9409 * source.c (_initialize_source): Change back "set listsize" to an
9410 integer command.
9411
9412 2013-03-27 Gareth McMullin <gareth@blacksphere.co.nz>
9413
9414 PR gdb/15275
9415 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
9416
9417 2013-03-27 Pedro Alves <palves@redhat.com>
9418
9419 * top.c (history_size): Rename to ...
9420 (history_size_setshow_var): ... this. Add comment.
9421 (show_commands): Use readline's 'history_length' instead of
9422 computing the history length by calling history_get in a loop.
9423 (set_history_size_command): Error out for sizes over INT_MAX.
9424 Restore previous history size on invalid size.
9425 (init_history): If HISTSIZE is negative, leave the history size as
9426 zero. Add comments.
9427 (init_main): Adjust.
9428
9429 2013-03-27 Pedro Alves <palves@redhat.com>
9430
9431 * coff-pe-read.c (_initialize_coff_pe_read): Rename "set debug
9432 coff_pe_read" command to "set debug coff-pe-read".
9433
9434 2013-03-27 Markus Metzger <markus.t.metzger@intel.com>
9435
9436 * record.c (command_size_to_target_size): Fix size comparison.
9437 Change parameter type from pointer to integer to integer.
9438 Update all users.
9439
9440 2013-03-27 Pierre Muller <muller@sourceware.org>
9441
9442 * windows-nat.c (handle_output_debug_string): Avoid typecast
9443 from integer of different size warning.
9444
9445 2013-03-26 Joel Brobecker <brobecker@adacore.com>
9446
9447 * windows-nat.c (handle_output_debug_string): Add empty line
9448 after local block variable definition.
9449
9450 2013-03-26 Pedro Alves <palves@redhat.com>
9451
9452 * ser-tcp.c (wait_for_connect): Make 'polls' parameter unsigned.
9453 (net_open): Make 'polls' local unsigned.
9454
9455 2013-03-26 Pedro Alves <palves@redhat.com>
9456
9457 * remote.c (_initialize_remote): Make "set remoteaddresssize"
9458 a zuinteger command instead of uinteger.
9459
9460 2013-03-26 Pedro Alves <palves@redhat.com>
9461
9462 * record-full.c (record_full_insn_num): Make it unsigned.
9463 (record_full_check_insn_num, record_full_message)
9464 (record_full_registers_change, record_full_xfer_partial): Remove
9465 record_full_insn_max_num check (it's always != 0).
9466 (record_full_info, record_full_restore): Use %u as format string.
9467 (): Use %u as format string.
9468 (set_record_full_insn_max_num): Remove record_full_insn_max_num
9469 check (it's always != 0).
9470
9471 2013-03-26 Pedro Alves <palves@redhat.com>
9472
9473 * dcache.c (_initialize_dcache): Make the "set dcache line-size"
9474 and "set dcache size" commands zuinteger instead of uinteger.
9475
9476 2013-03-26 Pedro Alves <palves@redhat.com>
9477
9478 * cris-tdep.c (_initialize_cris_tdep): Make the "set cris-version"
9479 command zuinteger instead of uinteger.
9480
9481 2013-03-26 Pedro Alves <palves@redhat.com>
9482
9483 * coff-pe-read.c (_initialize_coff_pe_read): Make the command
9484 zuinteger instead of uinteger.
9485
9486 2013-03-26 Pedro Alves <palves@redhat.com>
9487
9488 * record.c (record_insn_history_size_setshow_var)
9489 (record_call_history_size_setshow_var): New globals.
9490 (command_size_to_target_size): New function.
9491 (cmd_record_insn_history, cmd_record_call_history): Use
9492 command_size_to_target_size instead of cast.
9493 (validate_history_size, set_record_insn_history_size)
9494 (set_record_call_history_size): New functions.
9495 (_initialize_record): Install set_record_insn_history_size and
9496 set_record_call_history_size as "set" hooks of "set record
9497 instruction-history-size" and "set record
9498 function-call-history-size".
9499
9500 2013-03-26 Pedro Alves <palves@redhat.com>
9501
9502 * top.c (gdb_rl_operate_and_get_next): Replace max_input_history
9503 use with history_max_entries use. Remove FIXME note.
9504
9505 2013-03-26 Markus Metzger <markus.t.metzger@intel.com>
9506
9507 * record-btrace.c (record_btrace_close): Call
9508 record_btrace_auto_disable.
9509
9510 2013-03-25 Joel Brobecker <brobecker@adacore.com>
9511
9512 * rs6000-nat.c (fixup_breakpoints): Delete declaration.
9513
9514 2013-03-25 Doug Evans <dje@google.com>
9515
9516 * contrib/cc-with-tweaks.sh: Check exit code of dwp.
9517
9518 2013-03-25 Tom Tromey <tromey@redhat.com>
9519
9520 PR symtab/11462:
9521 * c-exp.y (exp): Add new productions for destructors after '.' and
9522 '->'.
9523 (write_destructor_name): New function.
9524
9525 2013-03-25 Tom Tromey <tromey@redhat.com>
9526
9527 PR c++/9197:
9528 * opencl-lang.c (evaluate_subexp_opencl) <STRUCTOP_STRUCT>: Use
9529 value_struct_elt, not lookup_struct_elt_type.
9530 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
9531 STRUCTOP_PTR>: Use value_struct_elt, not lookup_struct_elt_type.
9532 * expression.h (EVAL_AVOID_SIDE_EFFECTS): Update comment.
9533
9534 2013-03-25 Yao Qi <yao@codesourcery.com>
9535
9536 * ctf.c [USE_WIN32API]: Undef 'mkdir' and use 'mkdir'
9537 instead of '_mkdir'.
9538
9539 2013-03-23 Eli Zaretskii <eliz@gnu.org>
9540
9541 * windows-nat.c (windows_get_absolute_argv0): New function.
9542 * windows-nat.h: Add its prototype.
9543
9544 * main.c (get_init_files): Use filename_ncmp instead of strncmp.
9545 Use IS_DIR_SEPARATOR instead of looking for a character inside
9546 SLASH_STRING. Include filenames.h.
9547 (captured_main) [__MINGW32__]: Make argv[0] absolute, so that
9548 relocate_gdb_directory works when passed gdb_program_name.
9549 Include windows-nat.h.
9550
9551 2013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
9552
9553 * exceptions.h (enum errors): New entry TARGET_CLOSE_ERROR.
9554 * remote.c (trace_error): Remove the special handling of '2'.
9555 (readchar) <SERIAL_EOF>
9556 (readchar) <SERIAL_ERROR>
9557 (getpkt_or_notif_sane_1): Use TARGET_CLOSE_ERROR for them.
9558 (remote_get_trace_status): Call throw_exception if EX is
9559 TARGET_CLOSE_ERROR.
9560 * utils.c (perror_with_name): Rename to ...
9561 (throw_perror_with_name): ... here. New parameter errcode, describe it
9562 in the function comment.
9563 (perror_with_name): New function wrapper.
9564 * utils.h (enum errors): New stub declaration.
9565 (throw_perror_with_name): New declaration.
9566
9567 2013-03-22 Pedro Alves <palves@redhat.com>
9568 Yao Qi <yao@codesourcery.com>
9569 Mark Kettenis <kettenis@gnu.org>
9570
9571 * cli/cli-setshow.c (do_set_command) <var_uinteger>:
9572 Don't let the user set the value to UINT_MAX directly.
9573 <var_integer>: Don't let the user set the value to INT_MAX
9574 directly.
9575
9576 2013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
9577
9578 * remote.c (remote_unpush_target): New function.
9579 (remote_open_1): Remove two pop_target calls, update one comment, add
9580 comment to target_preopen call. Replace pop_target call by
9581 remote_unpush_target call.
9582 (interrupt_query, readchar, getpkt_or_notif_sane_1): Replace
9583 pop_target calls by remote_unpush_target calls.
9584
9585 2013-03-22 Pedro Alves <palves@redhat.com>
9586
9587 * linux-nat.c (linux_child_follow_fork): Don't call
9588 linux_enable_event_reporting.
9589 (linux_handle_extended_wait): Don't call
9590 linux_enable_event_reporting.
9591
9592 2013-03-22 Pedro Alves <palves@redhat.com>
9593
9594 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Define INSN macro,
9595 use it to rewrite the trampoline buffers with type gdb_byte[], and
9596 undefine the macro. Remove char* cast.
9597
9598 2013-03-21 Doug Evans <dje@google.com>
9599
9600 New commands "mt set per-command {space,time,symtab} {on,off}".
9601 * NEWS: Add entry.
9602 * event-top.c: #include "maint.h".
9603 * main.c: #include "maint.h".
9604 * maint.c: #include <sys/time.h>, <time.h>, block.h, top.h,
9605 timeval-utils.h, maint.h, cli/cli-setshow.h.
9606 (per_command_time, per_command_space): New static globals.
9607 (per_command_symtab): New static global.
9608 (per_command_setlist, per_command_showlist): New static globals.
9609 (struct cmd_stats): Move here from utils.c.
9610 (set_per_command_time): Renamed from set_display_time in utils.c
9611 and moved here. All callers updated.
9612 (set_per_command_space): Renamed from set_display_space in utils.c
9613 and moved here. All callers updated.
9614 (count_symtabs_and_blocks): New function.
9615 (report_command_stats): Moved here from utils.c. Add support for
9616 printing symtab stats. Only print data if enabled before command
9617 executed.
9618 (make_command_stats_cleanup): Ditto.
9619 (sert_per_command_cmd, show_per_command_cmd): New functions.
9620 (_initialize_maint_cmds): Add new commands
9621 mt set per-command {space,time,symtab} {on,off}.
9622 * maint.h: New file.
9623 * top.c: #include "maint.h".
9624 * utils.c (reset_prompt_for_continue_wait_time): New function.
9625 (get_prompt_for_continue_wait_time): New function.
9626 * utils.h (reset_prompt_for_continue_wait_time): Declare
9627 (get_prompt_for_continue_wait_time): Declare.
9628 (make_command_stats_cleanup): Moved to maint.h.
9629 (set_display_time, set_display_space): Moved to maint.h and renamed
9630 to set_per_command_time, set_per_command_space.
9631 * cli/cli-setshow.c (parse_cli_boolean_value): Renamed from
9632 parse_binary_operation and made non-static. Don't call error,
9633 just return an error marker. All callers updated.
9634 * cli/cli-setshow.h (parse_cli_boolean_value): Declare.
9635
9636 2013-03-21 Tom Tromey <tromey@redhat.com>
9637
9638 * symfile.c (alloc_section_addr_info): Update header. Don't set
9639 'num_sections' field.
9640 (build_section_addr_info_from_section_table): Set 'num_sections'.
9641 (build_section_addr_info_from_bfd): Likewise.
9642 (build_section_addr_info_from_objfile): Remove dead loop
9643 condition.
9644 (free_section_addr_info): Unconditionally call xfree.
9645 (relative_addr_info_to_section_offsets, addrs_section_sort)
9646 (addr_info_make_relative, syms_from_objfile_1): Remove dead loop
9647 condition.
9648 (syms_from_objfile_1): Remove dead 'if' condition. Check
9649 'num_sections'.
9650 (add_symbol_file_command): Set 'num_sections'.
9651 * symfile-mem.c (symbol_file_add_from_memory): Set
9652 'num_sections'.
9653 * somread.c (som_symfile_offsets): Remove dead loop condition.
9654 * machoread.c (macho_symfile_offsets): Remove dead 'if'.
9655 * jit.c (jit_bfd_try_read_symtab): Set 'num_sections'.
9656
9657 2013-03-21 Tom Tromey <tromey@redhat.com>
9658
9659 * tracepoint.h (decode_agent_options): Add 'trace_string'
9660 argument.
9661 * tracepoint.c (decode_agent_options): Add 'trace_string'
9662 argument.
9663 (validate_actionline): Update.
9664 (collect_symbol): Add 'trace_string' argument.
9665 (struct add_local_symbols_data) <trace_string>: New field.
9666 (do_collect_symbol): Update.
9667 (add_local_symbols): Add 'trace_string' argument.
9668 (encode_actions_1): Update.
9669 (trace_dump_actions): Update.
9670 * dwarf2loc.c (access_memory): Update.
9671 * ax.h (struct agent_expr) <tracing, trace_string>: New fields.
9672 * ax-general.c (new_agent_expr): Update.
9673 * ax-gdb.h (gen_trace_for_expr, gen_trace_for_var)
9674 (gen_trace_for_return_address): Add argument.
9675 (trace_kludge, trace_string_kludge): Remove.
9676 * ax-gdb.c (trace_kludge, trace_string_kludge): Remove.
9677 (gen_traced_pop, gen_fetch, gen_bitfield_ref, gen_expr): Update.
9678 (gen_trace_for_var): Add 'trace_string' argument.
9679 (gen_trace_for_expr, gen_trace_for_return_address): Likewise.
9680 (gen_printf, agent_eval_command_one): Update.
9681
9682 2013-03-21 Tom Tromey <tromey@redhat.com>
9683
9684 PR exp/15109:
9685 * c-exp.y (yylex): Rewrite to push all tokens onto the FIFO.
9686 Handle FILENAME token.
9687
9688 2013-03-21 Tom Tromey <tromey@redhat.com>
9689
9690 * c-exp.y (YYPRINT): Define.
9691 (c_print_token): New function.
9692
9693 2013-03-21 Tom Tromey <tromey@redhat.com>
9694
9695 * c-exp.y (%union) <sym, ivar, ivec>: Remove.
9696
9697 2013-03-21 Yao Qi <yao@codesourcery.com>
9698
9699 * ctf.c: Include "gdb_stat.h".
9700 [USE_WIN32API]: New macro 'mkdir'.
9701 (ctf_start): Use permission bits macros if they are defined.
9702
9703 2013-03-20 Keith Seitz <keiths@redhat.com>
9704
9705 * breakpoint.h (struct breakpoint): Add comment to
9706 extra_string indicating that this member is mallod'd.
9707 * breakpoint.c (base_breakpoint_dtor): Free extra_string.
9708
9709 2013-03-20 Pedro Alves <palves@redhat.com>
9710
9711 PR gdb/15289
9712
9713 * cli/cli-setshow.c (do_set_command)
9714 <var_uinteger, var_zuinteger>: Use LONGEST for variable holding
9715 the result of parsing the command argument. Throw error if the
9716 value is greater than UINT_MAX. Print the invalid value with
9717 plongest.
9718 <var_integer, var_zinteger>: Use LONGEST for variable holding the
9719 result of parsing the command argument. Throw error if the value
9720 is greater than INT_MAX, not greater or equal. Also throw error
9721 if the value is less than INT_MIN. Print the invalid value with
9722 plongest.
9723 <var_zuinteger_unlimited>: Throw error if the value is greater
9724 than INT_MAX, not greater or equal.
9725 (do_show_command) <var_integer, var_zinteger,
9726 var_zuinteger_unlimited>: Use %d for printing int, not %u.
9727
9728 2013-03-20 Tom Tromey <tromey@redhat.com>
9729
9730 * ax-gdb.c (gen_var_ref): Unconditionally call via computed ops,
9731 if possible.
9732 * dwarf2read.c (read_func_scope): Remove old FIXME.
9733 * eval.c (evaluate_subexp_standard): Check SYMBOL_COMPUTED_OPS,
9734 not LOC_COMPUTED.
9735 * findvar.c (symbol_read_needs_frame, default_read_var_value):
9736 Unconditionally call via computed ops, if possible.
9737 * printcmd.c (address_info): Unconditionally call via computed ops,
9738 if possible.
9739 * stack.c (read_frame_arg): Unconditionally call via computed ops,
9740 if possible.
9741 * symtab.c (register_symbol_computed_impl): Sanity check 'ops'.
9742 * tracepoint.c (scope_info): Unconditionally call via computed ops,
9743 if possible.
9744
9745 2013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9746 Tom Tromey <tromey@redhat.com>
9747
9748 PR symtab/8421:
9749 * coffread.c (coff_register_index): New global.
9750 (process_coff_symbol, coff_read_enum_type): Set
9751 SYMBOL_ACLASS_INDEX.
9752 (_initialize_coffread): Initialize new global.
9753 * dwarf2loc.c (locexpr_find_frame_base_location)
9754 (dwarf2_block_frame_base_locexpr_funcs)
9755 (loclist_find_frame_base_location)
9756 (dwarf2_block_frame_base_loclist_funcs): New.
9757 (dwarf_expr_frame_base_1): Call SYMBOL_BLOCK_OPS, remove internal_error.
9758 (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Add location_has_loclist.
9759 * dwarf2loc.h (dwarf2_block_frame_base_locexpr_funcs)
9760 (dwarf2_block_frame_base_loclist_funcs): New.
9761 * dwarf2read.c (dwarf2_locexpr_index, dwarf2_loclist_index)
9762 (dwarf2_locexpr_block_index, dwarf2_loclist_block_index): New
9763 globals.
9764 (read_func_scope): Update.
9765 (fixup_go_packaging, mark_common_block_symbol_computed)
9766 (var_decode_location, new_symbol_full, dwarf2_const_value):
9767 Set SYMBOL_ACLASS_INDEX.
9768 (dwarf2_symbol_mark_computed): Likewise. Add 'is_block' argument.
9769 (_initialize_dwarf2_read): Initialize new globals.
9770 * jit.c (finalize_symtab): Set SYMBOL_ACLASS_INDEX.
9771 * jv-lang.c (add_class_symbol): Set SYMBOL_ACLASS_INDEX.
9772 * mdebugread.c (mdebug_register_index, mdebug_regparm_index): New
9773 globals.
9774 (parse_symbol, psymtab_to_symtab_1): Set SYMBOL_ACLASS_INDEX.
9775 (_initialize_mdebugread): Initialize new globals.
9776 * psympriv.h (struct partial_symbol) <aclass>: Update comment.
9777 * stabsread.c (patch_block_stabs): Set SYMBOL_ACLASS_INDEX.
9778 (stab_register_index, stab_regparm_index): New globals.
9779 (define_symbol, read_enum_type, common_block_end): Set
9780 SYMBOL_ACLASS_INDEX.
9781 (_initialize_stabsread): Initialize new globals.
9782 * symtab.c (next_aclass_value, symbol_impl, symbol_impls): New
9783 globals.
9784 (MAX_SYMBOL_IMPLS): New define.
9785 (register_symbol_computed_impl, register_symbol_block_impl)
9786 (register_symbol_register_impl)
9787 (initialize_ordinary_address_classes): New functions.
9788 (_initialize_symtab): Call initialize_ordinary_address_classes.
9789 * symtab.h (enum address_class) <LOC_FINAL_VALUE>: New constant.
9790 (struct symbol_impl): New.
9791 (SYMBOL_ACLASS_BITS): New define.
9792 (struct symbol) <aclass, ops>: Remove fields.
9793 <aclass_index>: New field.
9794 (symbol_impls): Declare.
9795 (SYMBOL_CLASS, SYMBOL_COMPUTED_OPS, SYMBOL_REGISTER_OPS): Redefine.
9796 (SYMBOL_IMPL, SYMBOL_ACLASS_INDEX): New defines.
9797 (register_symbol_computed_impl, register_symbol_block_impl)
9798 (register_symbol_register_impl): Declare.
9799 (struct symbol_computed_ops): Add location_has_loclist.
9800 (struct symbol_block_ops): New.
9801 (SYMBOL_BLOCK_OPS): New.
9802 * xcoffread.c (process_xcoff_symbol): Set SYMBOL_ACLASS_INDEX.
9803
9804 2013-03-20 Tom Tromey <tromey@redhat.com>
9805
9806 * psymtab.c (find_pc_sect_psymbol, fixup_psymbol_section)
9807 (print_partial_symbols, recursively_search_psymtabs): Use
9808 PSYMBOL_CLASS.
9809
9810 2013-03-20 Pierre Muller <muller@sourceware.org>
9811
9812 * contrib/ari/gdb_ari.sh (OP eol rule): Also check
9813 addtion, subtraction, multiplication and division binary operator.
9814
9815 2013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9816
9817 Code cleanup.
9818 * bfd-target.c (target_bfd_xclose): Remove parameter quitting.
9819 * bsd-kvm.c (bsd_kvm_close): Likewise.
9820 * bsd-uthread.c (bsd_uthread_close): Likewise.
9821 * corelow.c (core_close): Likewise.
9822 (core_close_cleanup): Remove parameter quitting from a caller.
9823 * event-top.c (async_disconnect): Likewise.
9824 * exec.c (exec_close_1): Remove parameter quitting.
9825 * go32-nat.c (go32_close): Likewise.
9826 * linux-nat.c (linux_nat_close): Remove parameter quitting. Remove
9827 parameter quitting from a caller.
9828 * mips-linux-nat.c (super_close): Remove parameter quitting from the
9829 variable.
9830 (mips_linux_close): Remove parameter quitting. Remove parameter
9831 quitting from a caller.
9832 * monitor.c (monitor_close): Remove parameter quitting.
9833 * monitor.h (monitor_close): Likewise.
9834 * record-btrace.c (record_btrace_close): Likewise.
9835 * record-full.c (record_full_close): Likewise.
9836 * remote-m32r-sdi.c (m32r_close): Remove parameter quitting and remove
9837 it also from fprintf_unfiltered.
9838 * remote-mips.c (mips_close): Remove parameter quitting.
9839 (mips_detach): Remove parameter quitting from a caller.
9840 * remote-sim.c (gdbsim_close): Remove parameter quitting.
9841 (gdbsim_close): Remove duplicate function comment. Remove parameter
9842 quitting and remove it also from printf_filtered.
9843 * remote.c (remote_close): Remove parameter quitting.
9844 * solib-svr4.c (enable_break): Remove parameter quitting from a caller.
9845 * target.c (update_current_target): Remove parameter int from to_close
9846 de_fault.
9847 (push_target, unpush_target, pop_target): Remove parameter quitting from
9848 a caller.
9849 (pop_all_targets_above, pop_all_targets): Remove parameter quitting.
9850 Remove parameter quitting from a caller.
9851 (target_preopen): Remove parameter quitting from a caller.
9852 (target_close): Remove parameter quitting. Remove parameter quitting
9853 from a caller two times. Remove parameter quitting also from
9854 fprintf_unfiltered.
9855 * target.h (struct target_ops): Remove parameter quitting and as int
9856 from fields to_xclose and to_close.
9857 (extern struct target_ops current_target):
9858 (target_close, pop_all_targets): Remove parameter quitting. Update the
9859 comment.
9860 (pop_all_targets_above): Remove parameter quitting.
9861 * top.c (quit_target): Remove parameter quitting from a caller.
9862 * tracepoint.c (tfile_close): Remove parameter quitting.
9863 * windows-nat.c (windows_close): Remove parameter quitting.
9864
9865 2013-03-20 Corinna Vinschen <vinschen@redhat.com>
9866
9867 * windows-nat.c (handle_output_debug_string): Replace call
9868 to string_to_core_addr with call to strtoull.
9869
9870 2013-03-20 Yao Qi <yao@codesourcery.com>
9871
9872 * ctf.c (ctf_save_metadata_header): Define macro HOST_ENDIANNESS
9873 and write it to CTF metadata.
9874
9875 2013-03-19 Corinna Vinschen <vinschen@redhat.com>
9876
9877 * windows-nat.c (handle_output_debug_string): Change type of n to
9878 SIZE_T to avoid crash on 64 bit systems.
9879
9880 2013-03-17 Eli Zaretskii <eliz@gnu.org>
9881
9882 * python/python-internal.h (HAVE_SNPRINTF)
9883 [_WIN32 && HAVE_DECL_SNPRINTF]: Define, to avoid compiler warnings
9884 about redefinition of snprintf by pyerrors.h.
9885
9886 2013-03-15 Steve Ellcey <sellcey@mips.com>
9887
9888 * remote-sim.c (sim_command_completer): Make char arguments const.
9889
9890 2013-03-15 Tom Tromey <tromey@redhat.com>
9891
9892 PR c++/15116:
9893 * gdbtypes.c (types_equal): Handle TYPE_CODE_FUNC.
9894
9895 2013-03-14 Tom Tromey <tromey@redhat.com>
9896
9897 * gdb_bfd.c (struct gdb_bfd_data) <crc_computed, crc>:
9898 New fields.
9899 (get_file_crc): Move from symfile.c.
9900 (gdb_bfd_crc): New function.
9901 * gdb_bfd.h (gdb_bfd_crc): Declare.
9902 * objfiles.h (struct objfile) <crc32, crc32_p>: Remove.
9903 * symfile.c (get_file_crc): Move to gdb_bfd.c.
9904 (separate_debug_file_exists): Use gdb_bfd_crc.
9905
9906 2013-03-14 Tom Tromey <tromey@redhat.com>
9907
9908 * symfile.c (get_debug_link_info): Remove.
9909 (find_separate_debug_file_by_debuglink): Use
9910 bfd_get_debug_link_info.
9911
9912 2013-03-14 Tom Tromey <tromey@redhat.com>
9913
9914 * symtab.c (error_in_psymtab_expansion): New function.
9915 (lookup_symbol_aux_quick)
9916 (basic_lookup_transparent_type_quick): Remove "last resort"
9917 code. Use error_in_psymtab_expansion.
9918
9919 2013-03-14 Doug Evans <dje@google.com>
9920 Jan Kratochvil <jan.kratochvil@redhat.com>
9921
9922 * dwarf2read.c (dw2_map_symtabs_matching_filename): Put continue after
9923 any successful compare_filenames_for_search or FILENAME_CMP.
9924 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
9925 * symtab.c (iterate_over_some_symtabs): Likewise.
9926
9927 2013-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9928
9929 * source.c (print_source_lines_base): Make a local copy of
9930 symtab_to_fullname.
9931
9932 2013-03-14 Hui Zhu <hui_zhu@mentor.com>
9933 Jan Kratochvil <jan.kratochvil@redhat.com>
9934
9935 * source.c (print_source_lines_base): Suppress "file" for TUI.
9936
9937 2013-03-14 Keith Seitz <keiths@redhat.com>
9938 Alan Matsuoka <alanm@redhat.com>
9939
9940 PR c++/15203
9941 PR c++/15210
9942 * cp-namespace.c (cp_lookup_nested_symbol): Handle TYPE_CODE_FUNC and
9943 TYPE_CODE_METHOD.
9944 * elfread.c (elf_symtab_read): Handle BSF_GNU_UNIQUE for certain
9945 symbols.
9946
9947 2013-03-14 Yao Qi <yao@codesourcery.com>
9948
9949 * tracepoint.c (tfile_write_status): Write 'stop_desc' of trace
9950 status to tfile if trace is stopped by command 'tstop'.
9951
9952 2013-03-14 Yao Qi <yao@codesourcery.com>
9953
9954 * tracepoint.c (tfile_write_status): Write trace notes and user
9955 name into tfile if they are not NULL.
9956
9957 2013-03-14 Hui Zhu <hui@codesourcery.com>
9958 Yao Qi <yao@codesourcery.com>
9959
9960 * Makefile.in (REMOTE_OBS): Add ctf.o.
9961 (SFILES): Add ctf.c.
9962 (HFILES_NO_SRCDIR): Add ctf.h.
9963 * ctf.c, ctf.h: New files.
9964 * tracepoint.c: Include 'ctf.h'.
9965 (collect_pseudocommand): Remove static.
9966 (trace_save_command): Parse option "-ctf".
9967 Produce different trace file writers per option.
9968 Adjust output message.
9969 (trace_save_tfile, trace_save_ctf): New.
9970 * tracepoint.h (trace_save_tfile, trace_save_ctf): Declare.
9971 * mi/mi-main.c: Include 'ctf.h'.
9972 (mi_cmd_trace_save): Handle option '-ctf'. Call either
9973 trace_save_tfile or trace_save_ctf.
9974 * NEWS: Mention these changes.
9975
9976 2013-03-14 Yao Qi <yao@codesourcery.com>
9977
9978 * tracepoint.c (trace_file_writer_xfree): New.
9979 (struct tfile_writer_data): New.
9980 (tfile_dtor, tfile_can_target_save, tfile_start): New.
9981 (tfile_write_header, tfile_write_regblock_type): New.
9982 (tfile_write_status, tfile_write_uploaded_tsv): New.
9983 (tfile_write_uploaded_tp, tfile_write_definition_end): New.
9984 (tfile_write_raw_data, (tfile_end): New.
9985 (tfile_write_ops): New global variable.
9986 (TRACE_WRITE_R_BLOCK): New macro.
9987 (TRACE_WRITE_M_BLOCK_HEADER): New macro.
9988 (TRACE_WRITE_M_BLOCK_MEMORY): New macro.
9989 (TRACE_WRITE_V_BLOCK): New macro.
9990 (trace_save): Add extra one parameter WRITER. Make it static.
9991 Use WRITER to writer trace.
9992 (tfile_trace_file_writer_new): New.
9993 (trace_save_command): Caller update.
9994 (trace_save_tfile): Write trace data in TFILE format.
9995 * tracepoint.h (struct trace_frame_write_ops): New.
9996 (struct trace_file_write_ops): New.
9997 (struct trace_file_writer): New.
9998 (trace_save): Remove its declaration.
9999 (trace_save_tfile): Declare it.
10000 * mi/mi-main.c (mi_cmd_trace_save): Call trace_save_tfile
10001 instead of trace_save.
10002
10003 2013-03-13 Pedro Alves <palves@redhat.com>
10004
10005 * hppa-hpux-nat.c (hppa_hpux_save_state_offset): Make static.
10006
10007 2013-03-13 Pedro Alves <palves@redhat.com>
10008
10009 * dbxread.c (read_ofile_symtab, process_one_symbol): Remove
10010 commented out code.
10011 * demangle.c (current_demangling_style_string): Make it const.
10012 (set_demangling_command): Assert the demangling style is known.
10013 Remove all handling of unknown styles. Set
10014 'current_demangling_style_string' to an element of the
10015 demangling_style_names array.
10016 (set_demangling_style): Delete.
10017 (_initialize_demangler): Set current_demangling_style_string to the
10018 element of the demangling_style_names array that corresponds to
10019 the default demangling style. Remove FIXME note. Don't call
10020 set_demangling_style.
10021 * gdb-demangle.h (set_demangling_style): Remove declaration.
10022
10023 2013-03-13 Pedro Alves <palves@redhat.com>
10024
10025 * ada-lang.c (struct add_partial_datum) <text, text0, word>: Make
10026 fields const.
10027 (ada_make_symbol_completion_list): Make "text0" parameter const.
10028 * ax-gdb.c (agent_eval_command_one): Make "exp" parameter const.
10029 * breakpoint.c (condition_completer): Make "text" and "word"
10030 parameters const. Adjust.
10031 (check_tracepoint_command): Adjust to validate_actionline
10032 prototype change.
10033 (catch_syscall_completer): Make "text" and "word" parameters
10034 const.
10035 * cli/cli-cmds.c (show_user): Make "comname" local const.
10036 (valid_command_p): Make "command" parameter const.
10037 (alias_command): Make "alias_prefix" and "command_prefix" locals
10038 const.
10039 * cli/cli-decode.c (add_cmd): Make "name" parameter const.
10040 (add_alias_cmd): Make "name" and "oldname" parameters const.
10041 Adjust. No longer make copy of OLDNAME.
10042 (add_prefix_cmd, add_abbrev_prefix_cmd, add_set_or_show_cmd)
10043 (add_setshow_cmd_full, add_setshow_enum_cmd)
10044 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
10045 (add_setshow_filename_cmd, add_setshow_string_cmd)
10046 (add_setshow_string_noescape_cmd)
10047 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
10048 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
10049 (add_setshow_zuinteger_unlimited_cmd, add_setshow_zuinteger_cmd)
10050 (delete_cmd, add_info, add_info_alias, add_com, add_com_alias):
10051 Make "name" parameter const.
10052 (help_cmd): Rename "command" parameter to "arg". New const local
10053 "command".
10054 (find_cmd): Make "command" parameter const.
10055 (lookup_cmd_1): Make "text" parameter pointer to const. Adjust to
10056 deprecated_cmd_warning prototype change.
10057 (undef_cmd_error): Make "cmdtype" parameter const.
10058 (lookup_cmd): Make "line" parameter const.
10059 (deprecated_cmd_warning): Change type of "text" parameter to
10060 pointer to const char, from pointer to pointer to char. Adjust.
10061 (lookup_cmd_composition): Make "text" parameter const.
10062 (complete_on_cmdlist, complete_on_enum): Make "text" and "word"
10063 parameters const.
10064 * cli/cli-decode.h (struct cmd_list_element) <name>: Make field
10065 const.
10066 * cli/cli-script.c (validate_comname): Make "tem" local const.
10067 (define_command): New const local "tem_c". Use it in calls to
10068 lookup_cmd.
10069 (document_command): Make "tem" and "comfull" locals const.
10070 (show_user_1): Make "prefix" and "name" parameters const.
10071 * cli-script.h (show_user_1): Make "prefix" and "name" parameters
10072 const.
10073 * command.h (add_cmd, add_alias_cmd, add_prefix_cmd)
10074 (add_abbrev_prefix_cmd, completer_ftype, lookup_cmd, lookup_cmd_1)
10075 (deprecated_cmd_warning, lookup_cmd_composition, add_com)
10076 (add_com_alias, add_info, add_info_alias, complete_on_cmdlist)
10077 (complete_on_enum, add_setshow_enum_cmd)
10078 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
10079 (add_setshow_filename_cmd, add_setshow_string_cmd)
10080 (add_setshow_string_noescape_cmd)
10081 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
10082 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
10083 (add_setshow_zuinteger_cmd, add_setshow_zuinteger_unlimited_cmd):
10084 Change prototypes, constifying strings.
10085 * completer.c (noop_completer, filename_completer): Make "text"
10086 and "prefix" parameters const.
10087 (location_completer, expression_completer)
10088 (complete_line_internal): Make "text" and "prefix" parameters
10089 const and adjust.
10090 (command_completer, signal_completer): Make "text" and "prefix"
10091 parameters const.
10092 * completer.h (noop_completer, filename_completer)
10093 (expression_completer, location_completer, command_completer)
10094 (signal_completer): Change prototypes.
10095 * corefile.c (complete_set_gnutarget): Make "text" and "word"
10096 parameters const.
10097 * cp-abi.c (cp_abi_completer): Likewise.
10098 * expression.h (parse_expression_for_completion): Change
10099 prototype.
10100 * f-lang.c (f_make_symbol_completion_list): Make "text" and "word"
10101 parameters const.
10102 * infcmd.c (_initialize_infcmd): Make "cmd_name" local const.
10103 * infrun.c (handle_completer): Make "text" and "word" parameters
10104 const.
10105 * interps.c (interpreter_completer): Make "text" and "word"
10106 parameters const.
10107 * language.h (struct language_defn)
10108 <la_make_symbol_completion_list>: Make "text" and "word"
10109 parameters const.
10110 * parse.c (parse_exp_1): Move const hack to parse_exp_in_context.
10111 (parse_exp_in_context): Rename to ...
10112 (parse_exp_in_context_1): ... this.
10113 (parse_exp_in_context): Reimplement, with const hack from
10114 parse_exp_1.
10115 (parse_expression_for_completion): Make "string" parameter const.
10116 * printcmd.c (decode_format): Make "string_ptr" parameter pointer
10117 to pointer to const char. Adjust.
10118 (print_command_1): Make "exp" parameter const.
10119 (output_command): Rename to ...
10120 (output_command_const): ... this. Make "exp" parameter const.
10121 (output_command): Reimplement.
10122 (x_command): Adjust.
10123 (display_command): Rename "exp" parameter to "arg". New "exp"
10124 local, const version of "arg".
10125 * python/py-auto-load.c (gdbpy_initialize_auto_load): Make
10126 "cmd_name" local const.
10127 * python/py-cmd.c (cmdpy_destroyer): Cast const away in xfree
10128 call.
10129 (cmdpy_completer): Make "text" and "word" parameters const.
10130 (gdbpy_parse_command_name): Make "prefix_text2" local const.
10131 * python/py-param.c (add_setshow_generic): Make "tmp_name" local
10132 const.
10133 * remote.c (_initialize_remote): Make "cmd_name" local const.
10134 * symtab.c (language_search_unquoted_string): Make "text" and "p"
10135 parameters const. Adjust.
10136 (completion_list_add_fields): Make "sym_text", "text" and "word"
10137 parameters const.
10138 (struct add_name_data) <sym_text, text, word>: Make fields const.
10139 (default_make_symbol_completion_list_break_on): Make "text" and
10140 "word" parameters const. Adjust locals.
10141 (default_make_symbol_completion_list)
10142 (make_symbol_completion_list, make_symbol_completion_type)
10143 (make_symbol_completion_list_fn): Make "text" and "word"
10144 parameters const.
10145 (make_file_symbol_completion_list): Make "text", "word" and
10146 "srcfile" parameters const. Adjust locals.
10147 (add_filename_to_list): Make "text" and "word" parameters const.
10148 (struct add_partial_filename_data) <text, word>: Make fields
10149 const.
10150 (make_source_files_completion_list): Make "text" and "word"
10151 parameters const.
10152 * symtab.h (default_make_symbol_completion_list_break_on)
10153 (default_make_symbol_completion_list, make_symbol_completion_list)
10154 (make_symbol_completion_type enum type_code)
10155 (make_symbol_completion_list_fn make_file_symbol_completion_list)
10156 (make_source_files_completion_list): Change prototype.
10157 * top.c (execute_command): Adjust to pass pointer to pointer to
10158 const char to lookup_cmd, and to deprecated_cmd_warning prototype
10159 change.
10160 (set_verbose): Make "cmdname" local const.
10161 * tracepoint.c (decode_agent_options): Make "exp" parameter const,
10162 and adjust.
10163 (validate_actionline): Make "line" parameter a pointer to const
10164 char, and adjust.
10165 (encode_actions_1): Make "action_exp" local const, and adjust.
10166 (encode_actions): Adjust.
10167 (replace_comma): Delete.
10168 (trace_dump_actions): Make "action_exp" and "next_comma" locals
10169 const, and adjust. Don't frob the action string while splitting
10170 it at commas. Instead, make a copy of each split substring in
10171 turn.
10172 (trace_dump_command): Adjust to validate_actionline prototype
10173 change.
10174 * tracepoint.h (decode_agent_options, decode_agent_options)
10175 (encode_actions, validate_actionline): Change prototypes.
10176 * valprint.h (output_command): Delete declaration.
10177 (output_command_const): Declare.
10178 * value.c (function_destroyer): Cast const away in xfree call.
10179
10180 2013-03-13 Pedro Alves <palves@redhat.com>
10181
10182 * ada-lang.c (ada_decode_symbol): Cast away constness of GSYMBOL
10183 rather than casting 'const char * const *' to 'const char **'.
10184 * ada-lex.l (processInt): Make "trailer" local const. Remove
10185 'const char **' cast.
10186 * arm-linux-tdep.c (arm_stap_parse_special_token): Add 'char *'
10187 locals, and use those as strtol output pointer, instead than doing
10188 invalid casts to from 'const char **' to 'char **'.
10189 (_initialize_demangle): Remove cast.
10190 * i386-tdep.c (i386_stap_parse_special_token): : Add 'char *'
10191 locals, and use those as strtol output pointer, instead than doing
10192 invalid casts to from 'const char **' to 'char **'.
10193 * solib-dsbt.c (dsbt_get_initial_loadmaps): Remove 'gdb_byte**'
10194 casts.
10195 * stap-probe.c (stap_parse_register_operand)
10196 (stap_parse_single_operand): Likewise.
10197
10198 2013-03-13 Yao Qi <yao@codesourcery.com>
10199
10200 * tracepoint.c (tfile_get_trace_state_variable_value): Look for
10201 the last matched 'V' blcok in trace frame.
10202
10203 2013-03-12 Joel Brobecker <brobecker@adacore.com>
10204
10205 * NEWS: Create a new section for the next release branch.
10206 Rename the section of the current branch, now that it has
10207 been cut.
10208
10209 2013-03-12 Joel Brobecker <brobecker@adacore.com>
10210
10211 GDB 7.6 branch created (branch timestamp: 2013-03-12 22:15 UTC)
10212 * version.in: Bump version to 7.6.50.20130312-cvs.
10213
10214 2013-03-12 Keith Seitz <keiths@redhat.com>
10215
10216 * mi/mi-cmds.h (mi_execute_command): Make "cmd" const.
10217 * mi/mi-interp.c (mi_interpreter_exec): Make "command" const.
10218 Remove temporary copy of input string.
10219 (mi_execute_command_wrapper): Make "cmd" const.
10220 * mi/mi-main.c (mi_execute_command): Make "string_ptr" const.
10221 * mi/mi-parse.c (mi_parse_argv): Make "args" const.
10222 Use const strings.
10223 (mi_parse): Make "cmd" const.
10224 Use const strings.
10225 * mi/mi-parse.h (mi_parse): Make "cmd" const.
10226
10227 2013-03-12 Keith Seitz <keiths@redhat.com>
10228
10229 * ada-lang.c (ada_read_renaming_var_value): Pass const
10230 pointer to expression string to parse_exp_1.
10231 (create_excep_cond_exprs): Likewise.
10232 * ax-gdb.c (agent_eval_command_one): Likewise.
10233 (maint_agent_printf_command): Likewise.
10234 Constify much of the string handling/parsing.
10235 * breakpoint.c (set_breakpoint_condition): Pass const
10236 pointer to expression string to parse_exp_1.
10237 (update_watchpoint): Likewise.
10238 (parse_cmd_to_aexpr): Constify string handling.
10239 Pass const pointer to parse_exp_1.
10240 (init_breakpoint_sal): Pass const pointer to parse_exp_1.
10241 (find_condition_and_thread): Likewise.
10242 Make TOK const.
10243 (watch_command_1): Make "arg" const.
10244 Constify string handling.
10245 Copy the expression string instead of changing the input
10246 string.
10247 (update_breakpoint_location): Pass const pointer to
10248 parse_exp_1.
10249 * eval.c (parse_and_eval_address): Make "exp" const.
10250 (parse_to_comma_and_eval): Make "expp" const.
10251 (parse_and_eval): Make "exp" const.
10252 * expression.h (parse_expression): Make argument const.
10253 (parse_exp_1): Make first argument const.
10254 * findcmd.c (parse_find_args): Treat "args" as const.
10255 * linespec.c (parse_linespec): Pass const pointer to
10256 linespec_expression_to_pc.
10257 (linespec_expression_to_pc): Make "exp_ptr" const.
10258 * parse.c (parse_exp_1): Make "stringptr" const.
10259 Make a copy of the expression to pass to parse_exp_in_context until
10260 this whole interface can be constified.
10261 (parse_expression): Make "string" const.
10262 * printcmd.c (ui_printf): Treat "arg" as const.
10263 Handle const strings.
10264 * tracepoint.c (validate_actionline): Pass const pointer to
10265 all calls to parse_exp_1.
10266 (encode_actions_1): Likewise.
10267 * value.h (parse_to_comma_and_eval): Make argument const.
10268 (parse_and_eval_address): Likewise.
10269 (parse_and_eval): Likewise.
10270 * varobj.c (varobj_create): Pass const pointer to parse_exp_1.
10271 (varobj_set_value): Likewise.
10272 * cli/cli-cmds.c (disassemble_command): Treat "arg" as const and
10273 constify string handling.
10274 Pass const pointers to parse_and_eval_address and
10275 parse_to_comman_and_eval.
10276 * cli/cli-utils.c (skip_to_space): Rename to ...
10277 (skip_to_space_const): ... this. Handle const strings.
10278 * cli/cli-utils.h (skip_to_space): Turn into macro which invokes
10279 skip_to_space_const.
10280 (skip_to_space_const): Declare.
10281 * common/format.c (parse_format_string): Make "arg" const.
10282 Handle const strings.
10283 * common/format.h (parse_format_string): Make "arg" const.
10284 * gdbserver/ax.c (ax_printf): Make "format" const.
10285 * python/python.c (gdbpy_parse_and_eval): Do not make a copy
10286 of the expression string.
10287
10288 2013-03-12 Hui Zhu <hui@codesourcery.com>
10289
10290 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Update error message.
10291
10292 2013-03-12 Yao Qi <yao@codesourcery.com>
10293 Hui Zhu <hui@codesourcery.com>
10294
10295 * dwarf2loc.c (access_memory): Change nbits to nbytes in gdb_assert.
10296 (dwarf2_compile_expr_to_ax): Call access_memory in DW_OP_deref and
10297 DW_OP_deref_size.
10298
10299 2013-03-12 Paul Hilfinger <hilfingr@adacore.com>
10300
10301 * ada-lex.l (rules): Only recognize 'thread' as a
10302 delimiter when followed by numerals, as for c-exp.y.
10303 Use new rewind_to_char function to rewind the input for
10304 expression-delimiting tokens.
10305 (rewind_to_char): New function.
10306
10307 2013-03-11 Pedro Alves <palves@redhat.com>
10308 Jan Kratochvil <jan.kratochvil@redhat.com>
10309
10310 * configure: Regenerate.
10311 * configure.ac (check dynamic export flag): Link python test with
10312 $PYTHON_LIBS.
10313
10314 2013-03-11 Doug Evans <dje@google.com>
10315 Keith Seitz <keiths@redhat.com>
10316
10317 * linespec.c (find_linespec_symbols): Call find_function_symbols
10318 first, and then call lookup_prefix_sym/find_method.
10319
10320 2013-03-11 Pedro Alves <palves@redhat.com>
10321
10322 * charset.c (convert_between_encodings): Don't cast between
10323 different pointer to pointer types. Instead, make the 'inp' local
10324 be of the type iconv expects.
10325 (wchar_iterate): Don't cast between different pointer to pointer
10326 types. Instead, use new pointer local of the type iconv expects.
10327 * target.c (target_read_stralloc, target_fileio_read_stralloc):
10328 Add new local of type char pointer, and use it to get a
10329 char/string view of the byte buffer, instead of casting between
10330 pointer to pointer types.
10331
10332 2013-03-11 Hafiz Abid Qadeer <abidh@codesourcery.com>
10333
10334 * remote.c (remote_set_trace_buffer_size): Move != operator
10335 to the start of next line to fix an ARI warning.
10336
10337 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10338
10339 * NEWS: Add record changes.
10340
10341 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10342
10343 * record-btrace.c (btrace_insn_history): Omit the pc prefix in
10344 the instruction history disassembly.
10345 * disasm.c (dump_insns): Omit the pc prefix, if requested.
10346 * disasm.h (DISASSEMBLY_OMIT_PC): New.
10347
10348 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10349
10350 * Makefile.in (SFILES): Add record-btrace.c
10351 (COMMON_OBS): Add record-btrace.o
10352 * record-btrace.c: New.
10353 * objfiles.c: Include btrace.h.
10354 (free_objfile): call btrace_free_objfile.
10355
10356 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10357
10358 * target.c (target_call_history, target_call_history_from,
10359 target_call_history_range): New.
10360 * target.h (target_ops) <to_call_history, to_call_history_from,
10361 to_call_history_range>: New fields.
10362 (target_call_history, target_call_history_from,
10363 target_call_history_range): New declaration.
10364 * record.c (get_call_history_modifiers, cmd_record_call_history,
10365 record_call_history_size): New.
10366 (_initialize_record): Add the "record function-call-history" command.
10367 Add "set/show record function-call-history-size" commands.
10368 * record.h (record_print_flag): New.
10369
10370 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10371
10372 * target.h (target_ops) <to_insn_history, to_insn_history_from,
10373 to_insn_history_range>: New fields.
10374 (target_insn_history): New.
10375 (target_insn_history_from): New.
10376 (target_insn_history_range): New.
10377 * target.c (target_insn_history): New.
10378 (target_insn_history_from): New.
10379 (target_insn_history_range): New.
10380 * record.c: Include cli/cli-utils.h, disasm.h, ctype.h.
10381 (record_insn_history_size): New.
10382 (get_insn_number): New.
10383 (get_context_size): New.
10384 (no_chunk): New.
10385 (get_insn_history_modifiers): New.
10386 (cmd_record_insn_history): New.
10387 (_initialize_record): Add "set/show record instruction-history-size"
10388 command. Add "record instruction-history" command.
10389
10390 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10391
10392 * record.h (record_disconnect): New.
10393 (record_detach): New.
10394 (record_mourn_inferior): New.
10395 (record_kill): New.
10396 * record-full.c (record_disconnect, record_detach,
10397 record_mourn_inferior, record_kill): Move to...
10398 * record.c: ...here.
10399 (DEBUG): New.
10400 (record_stop): New.
10401 (record_unpush): New.
10402 (cmd_record_stop): Call record_stop. Replace unpush_target
10403 call with record_unpush call.
10404 (record_disconnect, record_detach): Assert that the target
10405 is of record stratum. Call record_unpush, record_stop, and
10406 DEBUG.
10407 (record_mourn_inferior, record_kill): Assert that the target
10408 is of record stratum. Call record_unpush and DEBUG.
10409
10410 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10411
10412 * record-full.h, record-full.c (record_memory_query): Rename
10413 to ...
10414 (record_full_memory_query): ...this. Update all users.
10415 (record_arch_list_add_reg): Rename to ...
10416 (record_full_arch_list_add_reg): ...this. Update all users.
10417 (record_arch_list_add_mem): Rename to ...
10418 (record_full_arch_list_add_mem): ...this. Update all users.
10419 (record_arch_list_add_end): Rename to ...
10420 (record_full_arch_list_add_end): ...this. Update all users.
10421 (record_gdb_operation_disable_set): Rename to ...
10422 (record_full_gdb_operation_disable_set): ...this.
10423 Update all users.
10424
10425 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10426
10427 * record-full.c (DEFAULT_RECORD_INSN_MAX_NUM): Renamed to ...
10428 (DEFAULT_RECORD_FULL_INSN_MAX_NUM): ... this. Updated all users.
10429 (RECORD_IS_REPLAY): Renamed to ...
10430 (RECORD_FULL_IS_REPLAY): ... this. Updated all users.
10431 (RECORD_FILE_MAGIC): Renamed to ...
10432 (RECORD_FULL_FILE_MAGIC): ... this. Updated all users.
10433 (record_mem_entry): Renamed to ...
10434 (record_full_mem_entry): ... this. Updated all users.
10435 (record_reg_entry): Renamed to ...
10436 (record_full_reg_entry): ... this. Updated all users.
10437 (record_end_entry): Renamed to ...
10438 (record_full_end_entry): ... this. Updated all users.
10439 (record_type) <record_end, record_reg, record_mem>: Renamed
10440 to ...
10441 (record_full_type) <record_full_end, record_full_reg,
10442 record_full_mem>: ... this. Updated all users.
10443 (record_entry): Renamed to ...
10444 (record_full_entry): ... this. Updated all users.
10445 (record_core_buf_entry): Renamed to ...
10446 (record_full_core_buf_entry): ... this. Updated all users.
10447 (record_core_regbuf): Renamed to ...
10448 (record_full_core_regbuf): ... this. Updated all users.
10449 (record_core_start): Renamed to ...
10450 (record_full_core_start): ... this. Updated all users.
10451 (record_core_end): Renamed to ...
10452 (record_full_core_end): ... this. Updated all users.
10453 (record_core_buf_list): Renamed to ...
10454 (record_full_core_buf_list): ... this. Updated all users.
10455 (record_first): Renamed to ...
10456 (record_full_first): ... this. Updated all users.
10457 (record_list): Renamed to ...
10458 (record_full_list): ... this. Updated all users.
10459 (record_arch_list_head): Renamed to ...
10460 (record_full_arch_list_head): ... this. Updated all users.
10461 (record_arch_list_tail): Renamed to ...
10462 (record_full_arch_list_tail): ... this. Updated all users.
10463 (record_stop_at_limit): Renamed to ...
10464 (record_full_stop_at_limit): ... this. Updated all users.
10465 (record_insn_max_num): Renamed to ...
10466 (record_full_insn_max_num): ... this. Updated all users.
10467 (record_insn_num): Renamed to ...
10468 (record_full_insn_num): ... this. Updated all users.
10469 (record_insn_count): Renamed to ...
10470 (record_full_insn_count): ... this. Updated all users.
10471 (record_ops): Renamed to ...
10472 (record_full_ops): ... this. Updated all users.
10473 (record_core_ops): Renamed to ...
10474 (record_full_core_ops): ... this. Updated all users.
10475 (set_record_cmdlist): Renamed to ...
10476 (set_record_full_cmdlist): ... this. Updated all users.
10477 (show_record_cmdlist): Renamed to ...
10478 (show_record_full_cmdlist): ... this. Updated all users.
10479 (record_cmdlist): Renamed to ...
10480 (record_full_cmdlist): ... this. Updated all users.
10481 (record_beneath_to_resume_ops): Renamed to ...
10482 (record_full_beneath_to_resume_ops): ... this. Updated all users.
10483 (record_beneath_to_resume): Renamed to ...
10484 (record_full_beneath_to_resume): ... this. Updated all users.
10485 (record_beneath_to_wait_ops): Renamed to ...
10486 (record_full_beneath_to_wait_ops): ... this. Updated all users.
10487 (record_beneath_to_wait): Renamed to ...
10488 (record_full_beneath_to_wait): ... this. Updated all users.
10489 (record_beneath_to_store_registers_ops): Renamed to ...
10490 (record_full_beneath_to_store_registers_ops): ... this.
10491 Updated all users.
10492 (record_beneath_to_store_registers): Renamed to ...
10493 (record_full_beneath_to_store_registers): ... this.
10494 Updated all users.
10495 (record_beneath_to_xfer_partial_ops): Renamed to ...
10496 (record_full_beneath_to_xfer_partial_ops): ... this.
10497 Updated all users.
10498 (record_beneath_to_xfer_partial): Renamed to ...
10499 (record_full_beneath_to_xfer_partial): ... this.
10500 Updated all users.
10501 (record_beneath_to_insert_breakpoint): Renamed to ...
10502 (record_full_beneath_to_insert_breakpoint): ... this.
10503 Updated all users.
10504 (record_beneath_to_stopped_by_watchpoint): Renamed to ...
10505 (record_full_beneath_to_stopped_by_watchpoint): ... this.
10506 Updated all users.
10507 (record_beneath_to_stopped_data_address): Renamed to ...
10508 (record_full_beneath_to_stopped_data_address): ... this.
10509 Updated all users.
10510 (record_beneath_to_async): Renamed to ...
10511 (record_full_beneath_to_async): ... this. Updated all users.
10512 (record_goto_insn): Renamed to ...
10513 (record_full_goto_insn): ... this. Updated all users.
10514 (record_save): Renamed to ...
10515 (record_full_save): ... this. Updated all users.
10516 (record_reg_alloc): Renamed to ...
10517 (record_full_reg_alloc): ... this. Updated all users.
10518 (record_reg_release): Renamed to ...
10519 (record_full_reg_release): ... this. Updated all users.
10520 (record_mem_alloc): Renamed to ...
10521 (record_full_mem_alloc): ... this. Updated all users.
10522 (record_mem_release): Renamed to ...
10523 (record_full_mem_release): ... this. Updated all users.
10524 (record_end_alloc): Renamed to ...
10525 (record_full_end_alloc): ... this. Updated all users.
10526 (record_end_release): Renamed to ...
10527 (record_full_end_release): ... this. Updated all users.
10528 (record_entry_release): Renamed to ...
10529 (record_full_entry_release): ... this. Updated all users.
10530 (record_list_release): Renamed to ...
10531 (record_full_list_release): ... this. Updated all users.
10532 (record_list_release_following): Renamed to ...
10533 (record_full_list_release_following): ... this.
10534 Updated all users.
10535 (record_list_release_first): Renamed to ...
10536 (record_full_list_release_first): ... this. Updated all users.
10537 (record_arch_list_add): Renamed to ...
10538 (record_full_arch_list_add): ... this. Updated all users.
10539 (record_get_loc): Renamed to ...
10540 (record_full_get_loc): ... this. Updated all users.
10541 (record_check_insn_num): Renamed to ...
10542 (record_full_check_insn_num): ... this. Updated all users.
10543 (record_arch_list_cleanups): Renamed to ...
10544 (record_full_arch_list_cleanups): ... this. Updated all users.
10545 (record_message): Renamed to ...
10546 (record_full_message): ... this. Updated all users.
10547 (record_message_wrapper): Renamed to ...
10548 (record_full_message_wrapper): ... this. Updated all users.
10549 (record_message_wrapper_safe): Renamed to ...
10550 (record_full_message_wrapper_safe): ... this. Updated all users.
10551 (record_gdb_operation_disable): Renamed to ...
10552 (record_full_gdb_operation_disable): ... this. Updated all users.
10553 (record_hw_watchpoint): Renamed to ...
10554 (record_full_hw_watchpoint): ... this. Updated all users.
10555 (record_exec_insn): Renamed to ...
10556 (record_full_exec_insn): ... this. Updated all users.
10557 (record_restore): Renamed to ...
10558 (record_full_restore): ... this. Updated all users.
10559 (record_async_inferior_event_token): Renamed to ...
10560 (record_full_async_inferior_event_token): ... this.
10561 Updated all users.
10562 (record_async_inferior_event_handler): Renamed to ...
10563 (record_full_async_inferior_event_handler): ... this.
10564 Updated all users.
10565 (record_core_open_1): Renamed to ...
10566 (record_full_core_open_1): ... this. Updated all users.
10567 (record_open_1): Renamed to ...
10568 (record_full_open_1): ... this. Updated all users.
10569 (record_open): Renamed to ...
10570 (record_full_open): ... this. Updated all users.
10571 (record_close): Renamed to ...
10572 (record_full_close): ... this. Updated all users.
10573 (record_resume_step): Renamed to ...
10574 (record_full_resume_step): ... this. Updated all users.
10575 (record_resumed): Renamed to ...
10576 (record_full_resumed): ... this. Updated all users.
10577 (record_execution_dir): Renamed to ...
10578 (record_full_execution_dir): ... this. Updated all users.
10579 (record_resume): Renamed to ...
10580 (record_full_resume): ... this. Updated all users.
10581 (record_get_sig): Renamed to ...
10582 (record_full_get_sig): ... this. Updated all users.
10583 (record_sig_handler): Renamed to ...
10584 (record_full_sig_handler): ... this. Updated all users.
10585 (record_wait_cleanups): Renamed to ...
10586 (record_full_wait_cleanups): ... this. Updated all users.
10587 (record_wait_1): Renamed to ...
10588 (record_full_wait_1): ... this. Updated all users.
10589 (record_wait): Renamed to ...
10590 (record_full_wait): ... this. Updated all users.
10591 (record_stopped_by_watchpoint): Renamed to ...
10592 (record_full_stopped_by_watchpoint): ... this. Updated all users.
10593 (record_disconnect): Renamed to ...
10594 (record_full_disconnect): ... this. Updated all users.
10595 (record_detach): Renamed to ...
10596 (record_full_detach): ... this. Updated all users.
10597 (record_mourn_inferior): Renamed to ...
10598 (record_full_mourn_inferior): ... this. Updated all users.
10599 (record_kill): Renamed to ...
10600 (record_full_kill): ... this. Updated all users.
10601 (record_stopped_data_address): Renamed to ...
10602 (record_full_stopped_data_address): ... this. Updated all users.
10603 (record_registers_change): Renamed to ...
10604 (record_full_registers_change): ... this. Updated all users.
10605 (record_store_registers): Renamed to ...
10606 (record_full_store_registers): ... this. Updated all users.
10607 (record_xfer_partial): Renamed to ...
10608 (record_full_xfer_partial): ... this. Updated all users.
10609 (record_breakpoint): Renamed to ...
10610 (record_full_breakpoint): ... this. Updated all users.
10611 (record_breakpoint_p): Renamed to ...
10612 (record_full_breakpoint_p): ... this. Updated all users.
10613 (record_breakpoints): Renamed to ...
10614 (record_full_breakpoints): ... this. Updated all users.
10615 (record_sync_record_breakpoints): Renamed to ...
10616 (record_full_sync_record_breakpoints): ... this.
10617 Updated all users.
10618 (record_init_record_breakpoints): Renamed to ...
10619 (record_full_init_record_breakpoints): ... this.
10620 Updated all users.
10621 (record_insert_breakpoint): Renamed to ...
10622 (record_full_insert_breakpoint): ... this. Updated all users.
10623 (record_remove_breakpoint): Renamed to ...
10624 (record_full_remove_breakpoint): ... this. Updated all users.
10625 (record_can_execute_reverse): Renamed to ...
10626 (record_full_can_execute_reverse): ... this. Updated all users.
10627 (record_get_bookmark): Renamed to ...
10628 (record_full_get_bookmark): ... this. Updated all users.
10629 (record_goto_bookmark): Renamed to ...
10630 (record_full_goto_bookmark): ... this. Updated all users.
10631 (record_async): Renamed to ...
10632 (record_full_async): ... this. Updated all users.
10633 (record_can_async_p): Renamed to ...
10634 (record_full_can_async_p): ... this. Updated all users.
10635 (record_is_async_p): Renamed to ...
10636 (record_full_is_async_p): ... this. Updated all users.
10637 (record_execution_direction): Renamed to ...
10638 (record_full_execution_direction): ... this. Updated all users.
10639 (record_info): Renamed to ...
10640 (record_full_info): ... this. Updated all users.
10641 (record_delete): Renamed to ...
10642 (record_full_delete): ... this. Updated all users.
10643 (record_is_replaying): Renamed to ...
10644 (record_full_is_replaying): ... this. Updated all users.
10645 (record_goto_entry): Renamed to ...
10646 (record_full_goto_entry): ... this. Updated all users.
10647 (record_goto_begin): Renamed to ...
10648 (record_full_goto_begin): ... this. Updated all users.
10649 (record_goto_end): Renamed to ...
10650 (record_full_goto_end): ... this. Updated all users.
10651 (record_goto): Renamed to ...
10652 (record_full_goto): ... this. Updated all users.
10653 (init_record_ops): Renamed to ...
10654 (init_record_full_ops): ... this. Updated all users.
10655 (record_core_resume): Renamed to ...
10656 (record_full_core_resume): ... this. Updated all users.
10657 (record_core_kill): Renamed to ...
10658 (record_full_core_kill): ... this. Updated all users.
10659 (record_core_fetch_registers): Renamed to ...
10660 (record_full_core_fetch_registers): ... this. Updated all users.
10661 (record_core_prepare_to_store): Renamed to ...
10662 (record_full_core_prepare_to_store): ... this. Updated all users.
10663 (record_core_store_registers): Renamed to ...
10664 (record_full_core_store_registers): ... this. Updated all users.
10665 (record_core_xfer_partial): Renamed to ...
10666 (record_full_core_xfer_partial): ... this. Updated all users.
10667 (record_core_insert_breakpoint): Renamed to ...
10668 (record_full_core_insert_breakpoint): ... this. Updated all users.
10669 (record_core_remove_breakpoint): Renamed to ...
10670 (record_full_core_remove_breakpoint): ... this. Updated all users.
10671 (record_core_has_execution): Renamed to ...
10672 (record_full_core_has_execution): ... this. Updated all users.
10673 (init_record_core_ops): Renamed to ...
10674 (init_record_full_core_ops): ... this. Updated all users.
10675 (cmd_record_restore): Renamed to ...
10676 (cmd_record_full_restore): ... this. Updated all users.
10677 (record_save_cleanups): Renamed to ...
10678 (record_full_save_cleanups): ... this. Updated all users.
10679 (cmd_record_start): Renamed to ...
10680 (cmd_record_full_start): ... this. Updated all users.
10681 (set_record_insn_max_num): Renamed to ...
10682 (set_record_full_insn_max_num): ... this. Updated all users.
10683 (set_record_command): Renamed to ...
10684 (set_record_full_command): ... this. Updated all users.
10685 (show_record_command): Renamed to ...
10686 (show_record_full_command): ... this. Updated all users.
10687 (_initialize_record): Renamed to ...
10688 (_initialize_record_full): ... this. Updated all users.
10689
10690 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10691
10692 * record.h: Split into this and ...
10693 * record-full.h: ... this.
10694 * record.c: Split into this and ...
10695 * record-full.c: ... this.
10696 * target.h (target_ops): Add new fields to_info_record,
10697 to_save_record, to_delete_record, to_record_is_replaying,
10698 to_goto_record_begin, to_goto_record_end, to_goto_record.
10699 (target_info_record): New.
10700 (target_save_record): New.
10701 (target_supports_delete_record): New.
10702 (target_delete_record): New.
10703 (target_record_is_replaying): New.
10704 (target_goto_record_begin): New.
10705 (target_goto_record_end): New.
10706 (target_goto_record): New.
10707 * target.c (target_info_record): New.
10708 (target_save_record): New.
10709 (target_supports_delete_record): New.
10710 (target_delete_record): New.
10711 (target_record_is_replaying): New.
10712 (target_goto_record_begin): New.
10713 (target_goto_record_end): New.
10714 (target_goto_record): New.
10715 * record.h: Declare struct cmd_list_element.
10716 (record_cmdlist): New declaration.
10717 (set_record_cmdlist): New declaration.
10718 (show_record_cmdlist): New declaration.
10719 (info_record_cmdlist): New declaration.
10720 (cmd_record_goto): New declaration.
10721 * record.c: Remove unnecessary includes.
10722 Include inferior.h.
10723 (cmd_record_goto): Remove declaration.
10724 (record_cmdlist): Now extern. Initialize.
10725 (set_record_cmdlist): Now extern. Initialize.
10726 (show_record_cmdlist): Now extern. Initialize.
10727 (info_record_cmdlist): Now extern. Initialize.
10728 (find_record_target): New.
10729 (require_record_target): New.
10730 (cmd_record_start): Update.
10731 (cmd_record_delete): Remove target-specific code.
10732 Call target_delete_record.
10733 (cmd_record_stop): Unpush any record target.
10734 (set_record_insn_max_num): Move to record-full.c
10735 (set_record_command): Add comment.
10736 (show_record_command): Add comment.
10737 (info_record_command): Update comment.
10738 Remove target-specific code.
10739 Call the record target's to_info_record.
10740 (cmd_record_start): New.
10741 (cmd_record_goto): Now extern.
10742 Remove target-specific code.
10743 Call target_goto_begin, target_goto_end, or target_goto.
10744 (_initialize_record): Move record target ops initialization to
10745 record-full.c.
10746 Change "record" command help text.
10747 Move "record restore", "record set", and "record show" commands to
10748 record-full.c.
10749 * Makefile.in (SFILES): Add record-full.c.
10750 (HFILES_NO_SRCDIR): Add record-full.h.
10751 (COMMON_OBS): Add record-full.o.
10752 * amd64-linux-tdep.c: Include record-full.h instead of record.h.
10753 * arm-tdep.c: Include record-full.h.
10754 * i386-linux-tdep.c: Include record-full.h instead of record.h.
10755 * i386-tdep.c: Include record-full.h.
10756 * infrun.c: Include record-full.h.
10757 * linux-record.c: Include record-full.h.
10758 * moxie-tdep.c: Include record-full.h.
10759 * record-full.c: Include record-full.h.
10760 Change module comment.
10761 (set_record_full_cmdlist): New.
10762 (show_record_full_cmdlist): New.
10763 (record_full_cmdlist): New.
10764 (record_goto_insn): New declaration.
10765 (record_save): New declaration.
10766 (record_check_insn_num): Change query string.
10767 (record_info): New.
10768 (record_delete): New.
10769 (record_is_replaying): New.
10770 (record_goto_entry): New.
10771 (record_goto_begin): New.
10772 (record_goto_end): New.
10773 (record_goto): New.
10774 (init_record_ops): Update.
10775 (init_record_core_ops): Update.
10776 (cmd_record_save): Rename to record_save. Remove target and arg checks.
10777 (cmd_record_start): New.
10778 (set_record_insn_max_num): Moved from record.c
10779 (set_record_full_command): New.
10780 (show_record_full_command): New.
10781 (_initialize_record_full): New.
10782
10783 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10784
10785 * target.h (add_deprecated_target_alias): New.
10786 * target.c (add_deprecated_target_alias): New.
10787
10788 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10789
10790 * common/linux-btrace.c: Include sys/ptrace, sys/types, sys/wait.h,
10791 and signal.h.
10792 (linux_supports_btrace): Add kernel and
10793 cpuid check.
10794 (kernel_supports_btrace): New function.
10795 (cpu_supports_btrace): New function.
10796 (intel_supports_btrace): New function.
10797
10798 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10799
10800 * target.h (enum target_object): Add TARGET_OBJECT_BTRACE.
10801 * remote.c: Include btrace.h.
10802 (struct btrace_target_info): New struct.
10803 (remote_supports_btrace): New function.
10804 (send_Qbtrace): New function.
10805 (remote_enable_btrace): New function.
10806 (remote_disable_btrace): New function.
10807 (remote_teardown_btrace): New function.
10808 (remote_read_btrace): New function.
10809 (init_remote_ops): Add btrace ops.
10810 (enum <unnamed>): Add btrace packets.
10811 (struct protocol_feature remote_protocol_features[]): Add btrace packets.
10812 (_initialize_remote): Add packet configuration for branch tracing.
10813
10814 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10815
10816 * features/btrace.dtd: New file.
10817 * Makefile.in (XMLFILES): Add btrace.dtd.
10818 * btrace.h (parse_xml_btrace): New declaration.
10819 * btrace.c: Include xml-support.h.
10820 (parse_xml_btrace): New function.
10821 (parse_xml_btrace_block): New function.
10822 (block_attributes): New struct.
10823 (btrace_attributes): New struct.
10824 (btrace_children): New struct.
10825 (btrace_elements): New struct.
10826
10827 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10828
10829 * amd64-linux-nat.c: Include btrace.h and linux-btrace.h.
10830 (amd64_linux_enable_btrace): New.
10831 (amd64_linux_disable_btrace): New.
10832 (amd64_linux_teardown_btrace): New.
10833 (_initialize_amd64_linux_nat): Initialize btrace ops.
10834 * i386-linux.nat.c: Include btrace.h and linux-btrace.h.
10835 (i386_linux_enable_btrace): New.
10836 (i386_linux_disable_btrace): New.
10837 (i386_linux_teardown_btrace): New.
10838 (_initialize_i386_linux_nat): Initialize btrace ops.
10839 * config/i386/linux.mh: Add linux-btrace.o.
10840 * config/i386/linux64.mh: Add linux-btrace.o.
10841
10842 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10843
10844 * common/linux_btrace.h: New file.
10845 * common/linux_btrace.c: New file.
10846 * Makefile.in (SFILES): Add btrace.c.
10847 (HFILES_NO_SRCDIR): Add common/linux-btrace.h.
10848 (COMMON_OBS): Add btrace.o.
10849 (linux-btrace.o): New rule.
10850
10851 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10852
10853 * target.h: Include btrace.h.
10854 (struct target_ops) <to_supports_btrace, to_enable_btrace,
10855 to_disable_btrace, to_teardown_btrace, to_read_btrace>: New.
10856 * target.c (target_supports_btrace): New function.
10857 (target_enable_btrace): New function.
10858 (target_disable_btrace): New function.
10859 (target_teardown_btrace): New function.
10860 (target_read_btrace): New function.
10861 * btrace.h: New file.
10862 * btrace.c: New file.
10863 * Makefile.in: Add btrace.c.
10864 * gdbthread.h: Include btrace.h.
10865 (struct thread_info): Add btrace field.
10866 * thread.c: Include btrace.h.
10867 (clear_thread_inferior_resources): Call target_teardown_btrace.
10868 * common/btrace-common.h: New file.
10869
10870 2013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10871
10872 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Call also kill
10873 for CHILD, ignore PTRACE_KILL errors, move the inner block variable
10874 kill_status to outer block.
10875
10876 2013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10877
10878 Fix entry-values if the callee called a noreturn function.
10879 * dwarf2-frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
10880 get_frame_address_in_block. Add new comment.
10881
10882 2013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10883
10884 Fix entry-values in C++ across CUs.
10885 * dwarf2loc.c (call_site_to_target_addr) <FIELD_LOC_KIND_PHYSNAME>: Use
10886 lookup_minimal_symbol. Add a comment.
10887 * dwarf2read.c
10888 (read_call_site_scope) <is_ref_attr> <die_is_declaration>: Prefer
10889 DW_AT_linkage_name.
10890
10891 2013-03-08 Yao Qi <yao@codesourcery.com>
10892
10893 * tracepoint.c (_initialize_tracepoint): Indent the code.
10894
10895 2013-03-08 Pedro Alves <palves@redhat.com>
10896
10897 * findcmd.c (put_bits): Change type of parameter to 'gdb_byte *'.
10898 (parse_find_args, find_command): Change type of pattern buffer
10899 locals to 'gdb_byte *'.
10900
10901 2013-03-08 Stan Shebs <stan@codesourcery.com>
10902 Hafiz Abid Qadeer <abidh@codesourcery.com>
10903
10904 * NEWS: Mention set and show trace-buffer-size commands.
10905 Mention new packet.
10906 * target.h (struct target_ops): New method
10907 to_set_trace_buffer_size.
10908 (target_set_trace_buffer_size): New macro.
10909 * target.c (update_current_target): Set up new method.
10910 * tracepoint.c (trace_buffer_size): New global.
10911 (start_tracing): Send it to the target.
10912 (set_trace_buffer_size): New function.
10913 (_initialize_tracepoint): Add new setshow for trace-buffer-size.
10914 * remote.c (remote_set_trace_buffer_size): New function.
10915 (_initialize_remote): Use it.
10916 (QTBuffer:size) New remote command.
10917 (PACKET_QTBuffer_size): New enum.
10918 (remote_protocol_features): Add an entry for
10919 PACKET_QTBuffer_size.
10920
10921 2013-03-08 Tom Tromey <tromey@redhat.com>
10922
10923 * remote-m32r-sdi.c (m32r_load): Call skip_spaces on correct
10924 variable.
10925
10926 2013-03-07 Pedro Alves <palves@redhat.com>
10927
10928 * target.c (target_read_stralloc, target_fileio_read_alloc):
10929 *Cast pointer to 'gdb_byte *' in target call.
10930
10931 2013-03-07 Pedro Alves <palves@redhat.com>
10932
10933 * corefile.c (read_memory_string): Cast pointer to gdb_byte* in
10934 call.
10935
10936 2013-03-07 Keith Seitz <keiths@redhat.com>
10937
10938 * breakpoint.c (catch_syscall_split_args): Use skip_spaces.
10939 (trace_pass_command): Likewise.
10940 * cli/cli-cmds.c: Include cli/cli-utils.h.
10941 (source_command): Use skip-spaces.
10942 (disassemble_command): Likewise.
10943 * findcmd.c: Include cli/cli-utils.h.
10944 (parse_find_args): Use skip_spaces.
10945 * go32-nat.c: Include cli/cli-utils.h.
10946 (go32_sldt): Use skip_spaces.
10947 (go32_sgdt): Likewise.
10948 (go32_sidt): Likewise.
10949 (go32_pde): Likewise.
10950 (go32_pte): Likewise.
10951 (go32_pte_for_address): Likewise.
10952 * infcmd.c: Include cli/cli-utils.h.
10953 (registers_info): Use skip_spaces.
10954 * linux-tdep.c (read_mapping): Use skip_spaces_const.
10955 (linux_info_proc): Likewise.
10956 * linux-thread-db.c: Include cli/cli-utils.h.
10957 (info_auto_load_libthread_db): Use skip_spaces_const.
10958 * m32r-rom.c: Include cli/cli-utils.h.
10959 (m32r_upload_command): Use skip_spaces.
10960 * maint.c: Include cli/cli-utils.h.
10961 (maintenance_translate_address): Use skip_spaces.
10962 * mi/mi-parse.c: Include cli/cli-utils.h.
10963 (mi_parse_argv): Use skip_spaces.
10964 (mi_parse): Likewise.
10965 * minsyms.c: Include cli/cli-utils.h.
10966 (msymbol_hash_iw): Use skip_spaces_const.
10967 * objc-lang.c: Include cli/cli-utils.h.
10968 (parse_selector): Use skip_spaces.
10969 (parse_method): Likewise.
10970 * python/python.c: Include cli/cli-utils.h.
10971 (python_interactive_command)[HAVE_PYTHON]: Use skip_spaces.
10972 (python_command)[HAVE_PYTHON]: Likewise.
10973 (python_interactive_command)[!HAVE_PYTHON]: Likewise.
10974 * remote-m32r-sdi.c: Include cli/cli-utils.h.
10975 (m32r_load): Use skip_spaces.
10976 * serial.c: Include cli/cli-utils.h.
10977 (serial_open): Use skip_spaces_const.
10978 * stack.c: Include cli/cli-utils.h.
10979 (parse_frame_specification_1): Use skip_spaces_const.
10980 * symfile.c: Include cli/cli-utils.h.
10981 (set_ext_lang_command): Use skip_spaces.
10982 * symtab.c: Include cli/cli-utils.h.
10983 (rbreak_command): Use skip_spaces.
10984 * thread.c (thread_name_command): Use skip_spaces.
10985 * tracepoint.c (validate_actionline): Use skip_spaces.
10986 (encode_actions_1): Likewise.
10987 (trace_find_range_command): Likewise.
10988 (trace_find_outside_command): Likewise.
10989 (trace_dump_actions): Likewise.
10990
10991 2013-03-07 Pedro Alves <palves@redhat.com>
10992
10993 * c-lang.c (parse_one_string): Cast argument to gdb_byte *.
10994 * expprint.c (print_subexp_standard): Likewise.
10995 * utils.c (host_char_to_target): Likewise.
10996 * valprint.c (generic_emit_char, generic_printstr): Likewise.
10997 * varobj.c (value_get_print_value): Change type of local to char*.
10998 Cast it gdb_byte * in call to language printer.
10999
11000 2013-03-07 Pedro Alves <palves@redhat.com>
11001
11002 * charset.c (struct wchar_iterator) <input>: Change type to 'const
11003 gdb_byte *'.
11004 (make_wchar_iterator): Remove cast to char*.
11005 (wchar_iterate): Change type of local.
11006
11007 2013-03-07 Pedro Alves <palves@redhat.com>
11008
11009 * regcache.c (regcache_xmalloc_1): Call XCALLOC with signed char
11010 for 'regcache->register_status'.
11011
11012 2013-03-07 Pedro Alves <palves@redhat.com>
11013
11014 * breakpoint.c (breakpoint_xfer_memory): Change type of local to
11015 int.
11016
11017 2013-03-07 Pedro Alves <palves@redhat.com>
11018
11019 * stap-probe.c (handle_stap_probe): Add cast to char*.
11020
11021 2013-03-07 Pedro Alves <palves@redhat.com>
11022
11023 * linux-record.c (record_linux_system_call) <gdb_sys_msgrcv,
11024 RECORD_MSGRCV>: Pass a signed variable to
11025 regcache_raw_read_signed, instead of an unsigned one.
11026
11027 2013-03-07 Pedro Alves <palves@redhat.com>
11028
11029 * remote-notif.c (notif_debug): Change type to int.
11030 * remote-notif.h (notif_debug): Likewise.
11031
11032 2013-03-07 Pedro Alves <palves@redhat.com>
11033
11034 * ser-tcp.c (tcp_retry_limit): Change type to unsigned int.
11035
11036 2013-03-07 Pedro Alves <palves@redhat.com>
11037
11038 * remote.c (hex2bin, bin2hex): Move extern declarations to ...
11039 * remote.h (hex2bin, bin2hex): ... here.
11040 * tracepoint.c (hex2bin, bin2hex): Remove extern declarations.
11041
11042 2013-03-07 Eli Zaretskii <eliz@gnu.org>
11043
11044 * utils.c (initialize_utils): Improve doc strings of "set/show
11045 width", "set/show height", and "set/show pagination".
11046
11047 2013-03-06 Keith Seitz <keiths@redhat.com>
11048
11049 * ax-gdb.c (gen_printf): Make FORMAT const.
11050 * ax-gdb.h (gen_printf): Likewise.
11051 * ax-general.c (ax_string): Make STR const.
11052 * ax.h (ax_string): Likewise.
11053
11054 2013-03-06 Doug Evans <dje@google.com>
11055
11056 * elfread.c (elf_symfile_read): Move debugging printf to more
11057 logical location.
11058
11059 2013-03-06 Pedro Alves <palves@redhat.com>
11060
11061 * python/py-utils.c (target_string_to_unicode): Delete function.
11062 * python/python-internal.h (target_string_to_unicode): Delete
11063 declaration.
11064
11065 2013-03-06 Pierre Muller <muller@sourceware.org>
11066
11067 * linespec.c (get_current_search_block): ARI fix, use (void)
11068 for empty parameter list.
11069
11070 2013-03-05 Doug Evans <dje@google.com>
11071
11072 * ada-lang.c (ada_lookup_symbol_list_worker): New function, contents
11073 of old ada_lookup_symbol_list. In !full_search case, don't
11074 search superblocks.
11075 (ada_lookup_symbol_list): Delete arg full_search, all callers
11076 updated. Call ada_lookup_symbol_list_worker.
11077 (ada_iterate_over_symbols): Call ada_lookup_symbol_list_worker.
11078 * ada-lang.h (ada_lookup_symbol_list): Update.
11079 * language.h (language_defn): Update comment for
11080 la_iterate_over_symbols.
11081 * linespec.c (iterate_over_file_blocks): New function.
11082 (iterate_over_all_matching_symtabs): Call it.
11083 (lookup_prefix_sym): Ditto.
11084 (get_current_search_block): New function.
11085 (get_search_block): Delete.
11086 (find_label_symbols): Call get_current_search_block.
11087 (add_matching_symbols_to_info): Call iterate_over_file_blocks.
11088 * symtab.c (iterate_over_symbols): Don't search superblocks.
11089
11090 2013-03-05 Yao Qi <yao@codesourcery.com>
11091
11092 * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): Change
11093 parameter VAR's type from "unsigned int" to "int".
11094 * command.h (var_zuinteger_unlimited): Update its comments.
11095 (add_setshow_zuinteger_unlimited_cmd): Update the declaration.
11096
11097 2013-03-05 Corinna Vinschen <vinschen@redhat.de>
11098
11099 * NEWS: Mention new target x86_64-*-cygwin*.
11100
11101 2013-03-05 Corinna Vinschen <vinschen@redhat.de>
11102
11103 * configure.host: Add x86_64-*-cygwin* as host.
11104 * configure.tgt: Add x86_64-*-cygwin* as target.
11105 * config/i386/cygwin64.mh: New file.
11106
11107 2013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
11108
11109 * linespec.c (decode_line_2): Fix duplicate request off by two message.
11110
11111 2013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
11112
11113 * linespec.c (struct linespec_canonical_name): New.
11114 (struct linespec_state): Change canonical_names type to it.
11115 (add_sal_to_sals): Change variable canonical_name to canonical. Change
11116 xrealloc element size. Initialize the different CANONICAL fields.
11117 (canonical_to_fullform): New.
11118 (filter_results): Use it. Add variables canonical, fullform and
11119 cleanup.
11120 (struct decode_line_2_item, decode_line_2_compare_items): New.
11121 (decode_line_2): Remove variables iter and item_names, add variables
11122 items and items_count. Modify the code for these new variables.
11123
11124 2013-03-04 Corinna Vinschen <vinschen@redhat.com>
11125
11126 * coff-pe-read.c (read_pe_exported_syms): Don't return without
11127 calling do_cleanup.
11128
11129 2013-03-04 Luis Machado <lgustavo@codesourcery.com>
11130
11131 * tracepoint.c (build_traceframe_info): Add code for byte order.
11132
11133 2013-03-02 Kevin Buettner <kevinb@redhat.com>
11134
11135 * v850-tdep.c: (v850e2_register_name): Revise system register
11136 names to match current V850E2M architecture specifications.
11137 Update register number enum comments too.
11138
11139 2013-03-01 Jiong Wang <jiwang@tilera.com>
11140 Pedro Alves <palves@redhat.com>
11141
11142 * tilegx-tdep.c (tilegx_analyze_prologue): Limit bundle reading
11143 to END_ADDR.
11144 (tilegx_skip_prologue): Limit prologue analysis to section end.
11145
11146 2013-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
11147
11148 * dwarf2loc.c (call_site_find_chain_1): New variable save_callee_pc,
11149 use it.
11150
11151 2013-03-01 Pedro Alves <palves@redhat.com>
11152
11153 Use gdb_byte for bytes from the program being debugged.
11154
11155 * arm-tdep.c (arm_store_return_value, arm_get_longjmp_target):
11156 Change type of local 'buf' to gdb_byte.
11157 * avr-tdep.c (avr_frame_prev_register, avr_push_dummy_call): Likewise.
11158 * bfin-tdep.c (bfin_push_dummy_call): Likewise.
11159 * cris-tdep.c (cris_sigcontext_addr)
11160 (cris_sigtramp_frame_unwind_cache): Likewise.
11161 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp)
11162 (frv_linux_sigcontext_reg_addr, frv_linux_sigtramp_frame_cache):
11163 Likewise.
11164 * frv-tdep.c (frv_pseudo_register_write, frv_analyze_prologue): Likewise.
11165 * hppa-hpux-tdep.c (hppa32_hpux_find_global_pointer)
11166 (hppa32_hpux_search_dummy_call_sequence)
11167 (hppa_hpux_supply_save_state): Likewise.
11168 * hppa-linux-tdep.c (insns_match_pattern)
11169 (hppa_linux_find_global_pointer): Likewise.
11170 * hppa-tdep.c (hppa_in_function_epilogue_p)
11171 (skip_prologue_hard_way, hppa_frame_cache): Likewise.
11172 * i386-nto-tdep.c (i386nto_sigcontext_addr): Likewise.
11173 * i386fbsd-tdep.c (i386fbsd_supply_uthread)
11174 (i386fbsd_collect_uthread): Likewise.
11175 * ia64-hpux-tdep.c (ia64_hpux_push_dummy_code): Likewise.
11176 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address): Likewise.
11177 * ia64-tdep.c (examine_prologue, ia64_frame_cache)
11178 (ia64_frame_prev_register, ia64_sigtramp_frame_cache)
11179 (ia64_sigtramp_frame_prev_register, ia64_access_reg)
11180 (ia64_access_rse_reg, ia64_libunwind_frame_this_id)
11181 (ia64_libunwind_frame_prev_register)
11182 (ia64_libunwind_sigtramp_frame_this_id)
11183 (ia64_find_global_pointer_from_dynamic_section)
11184 (find_extant_func_descr, find_func_descr, ia64_dummy_id)
11185 (ia64_unwind_pc): Likewise.
11186 * iq2000-tdep.c (iq2000_store_return_value): Likewise.
11187 * m68hc11-tdep.c (m68hc11_push_dummy_call)
11188 (m68hc11_extract_return_value): Likewise.
11189 * m68klinux-nat.c (fetch_register, store_register): Likewise.
11190 * mep-tdep.c (mep_pseudo_cr32_read, mep_pseudo_cr32_write)
11191 (mep_get_insn, mep_push_dummy_call): Likewise.
11192 * mips-linux-tdep.c (mips_linux_get_longjmp_target)
11193 (mips_linux_in_dynsym_stub): Likewise.
11194 * mn10300-tdep.c (mep_pseudo_cr32_write): Likewise.
11195 * ppc-linux-nat.c (fetch_register, store_register): Likewise.
11196 * regcache.c (dump_endian_bytes): Change type of parameter 'buf'
11197 to gdb_byte.
11198 * remote-mips.c (mips_set_register): Likewise.
11199 * remote-sim.c (gdbsim_fetch_register): Likewise.
11200 * score-tdep.c (score7_fetch_inst): Change type of parameter
11201 'memblock' and local 'buf' to gdb_byte.
11202 (score7_malloc_and_get_memblock): Change return type to gdb_byte.
11203 Change type of local 'buf' to gdb_byte. Adjust.
11204 (score7_adjust_memblock_ptr): Change type of parameter 'memblock'
11205 to gdb_byte**.
11206 (score7_analyze_prologue): Change type of 'memblock' and
11207 'memblock_ptr' locals to gdb_byte*.
11208 * sh64-tdep.c (sh64_extract_return_value)
11209 (sh64_store_return_value): Change type of local 'buf' to gdb_byte.
11210 * solib-darwin.c (darwin_current_sos, darwin_read_exec_load_addr):
11211 * solib-pa64.c (pa64_solib_create_inferior_hook)
11212 (pa64_open_symbol_file_object): Remove local 'buf'.
11213 * solib-som.c (som_solib_create_inferior_hook, link_map_start)
11214 (som_open_symbol_file_object): Likewise.
11215 * solib-spu.c (spu_current_sos): Likewise.
11216 * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
11217 * spu-multiarch.c (parse_spufs_run, spu_fetch_registers)
11218 (spu_store_registers): Likewise.
11219 * target.c (debug_print_register): Likewise.
11220 * tic6x-tdep.c (tic6x_get_longjmp_target): Likewise.
11221 * xstormy16-tdep.c (xstormy16_store_return_value)
11222 (xstormy16_push_dummy_call, xstormy16_resolve_jmp_table_entry)
11223 (xstormy16_find_jmp_table_entry): Likewise.
11224
11225 2013-03-01 Jiong Wang <jiwang@tilera.com>
11226
11227 * tilegx-tdep.c (tilegx_get_longjmp_target): New function.
11228 (tilegx_gdbarch_init): Install it.
11229
11230 2013-02-28 Tom Tromey <tromey@redhat.com>
11231
11232 * python/py-arch.c (archpy_disassemble): Use PyInt_Check and
11233 PyLong_Check.
11234
11235 2013-02-28 Doug Evans <dje@google.com>
11236
11237 * python/py-finishbreakpoint.c (bpfinishpy_init): gcc -Wall lint.
11238 * python/python.c (gdbpy_find_pc_line): Ditto.
11239
11240 2013-02-28 Tom Tromey <tromey@redhat.com>
11241
11242 * contrib/excheck.py: New file.
11243 * contrib/exsummary.py: New file.
11244 * contrib/gcc-with-excheck: New file.
11245
11246 2013-02-28 Tom Tromey <tromey@redhat.com>
11247
11248 * python/python.c (gdbpy_print_stack): Call begin_line and
11249 fprintf_filtered inside TRY_CATCH.
11250
11251 2013-02-28 Tom Tromey <tromey@redhat.com>
11252
11253 * python/python.c (gdbpy_find_pc_line): Call find_pc_line
11254 inside TRY_CATCH.
11255
11256 2013-02-28 Tom Tromey <tromey@redhat.com>
11257
11258 * py-finishbreakpoint.c (bpfinishpy_init): Reorganize to call
11259 frame_object_to_frame_info inside TRY_CATCH.
11260
11261 2013-02-28 Tom Tromey <tromey@redhat.com>
11262
11263 * py-block.c (gdbpy_block_for_pc): Call block_for_pc inside
11264 TRY_CATCH.
11265
11266 2013-02-28 Tom Tromey <tromey@redhat.com>
11267
11268 * objfiles.h (ALL_PSPACE_OBJFILES): Remove trailing backlash.
11269
11270 2013-02-27 Corinna Vinschen <vinschen@redhat.com>
11271
11272 * windows-nat.c: Throughout, fix format strings and casts of
11273 printf-like functions to avoid type related warnings on all
11274 platforms.
11275 (handle_output_debug_string): Fetch context information address
11276 from debug string using string_to_core_addr.
11277
11278 2013-02-27 Jiong Wang <jiwang@tilera.com>
11279
11280 * regformats/reg-tilegx.dat (name): Change abi name to "tilegx".
11281 * regformats/reg-tilegx32.dat: New.
11282
11283 2013-02-27 Jiong Wang <jiwang@tilera.com>
11284
11285 * configure.tgt (tilegx-*-linux*): Enable gdbserver.
11286
11287 2013-02-27 Jiong Wang <jiwang@tilera.com>
11288
11289 * configure.tgt (tilegx-*-linux*): Replace whitespace with tab.
11290
11291 2013-02-27 Yao Qi <yao@codesourcery.com>
11292 Pedro Alves <palves@redhat.com>
11293
11294 * tracepoint.c (tfile_trace_find): For tfind
11295 pc/tp/range/outside, look for the next trace frame instead of
11296 always starting from frame 0.
11297
11298 2013-02-26 Anthony Green <green@moxielogic.com>
11299
11300 * configure.tgt: Add support for moxie-*-rtems* target.
11301
11302 2013-02-25 Pedro Alves <palves@redhat.com>
11303
11304 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Change
11305 warning text.
11306
11307 2013-02-24 Maciej W. Rozycki <macro@codesourcery.com>
11308
11309 * mips-tdep.c (mips32_scan_prologue): Reset frame_offset to zero
11310 if $fp is used as the virtual frame pointer.
11311
11312 2013-02-23 Alan Modra <amodra@gmail.com>
11313
11314 * elfread.c (elf_symtab_read): Do not use udata.p here to find
11315 symbol size.
11316 * ppc64-tdep.c (ppc64_elf_make_msymbol_special): New function.
11317 * ppc64-tdep.h (ppc64_elf_make_msymbol_special): Declare.
11318 * ppc-linux-tdep.c (ppc_linux_init_abi): Set up to use the above.
11319 * ppcfbsd-tdep.c (ppcfbsd_init_abi): Likewise.
11320
11321 2013-02-22 Jan Kratochvil <jan.kratochvil@redhat.com>
11322
11323 Code cleanup.
11324 * elfread.c (build_id_bfd_get): Make the return type const.
11325 (build_id_verify): Make the check parameter const.
11326 (build_id_to_debug_filename): Make the build_id parameter and variable
11327 data const.
11328 (find_separate_debug_file_by_buildid): Make the variable build_id const.
11329
11330 2013-02-21 Alan Modra <amodra@gmail.com>
11331
11332 * elfread.c (build_id_bfd_get): Adjust for elf_tdata changes.
11333
11334 2013-02-20 Siva Chandra Reddy <sivachandra@google.com>
11335
11336 Add a new method 'disassemble' to gdb.Architecture class.
11337 * python/py-arch.c (archpy_disassmble): Implementation of the
11338 new method gdb.Architecture.disassemble.
11339 (arch_object_methods): Add entry for the new method.
11340
11341 2013-02-20 Jiong Wang <jiwang@tilera.com>
11342
11343 * MAINTAINERS (Write After Approval): Add myself to the list.
11344
11345 2013-02-19 Pedro Alves <palves@redhat.com>
11346
11347 Garbage collect 'struct monitor_ops'::load_routine.
11348
11349 * monitor.h (struct monitor_ops) <load_routine>: Remove field.
11350 * monitor.c (monitor_load): No longer call
11351 current_monitor->load_routine.
11352 * dbug-rom.c (init_dbug_cmds): Don't set 'load_routine'.
11353 * m32r-rom.c (init_m32r_cmds): Don't set 'load_routine'.
11354 * ppcbug-rom.c (init_ppc_cmds): Don't set 'load_routine'.
11355
11356 2013-02-19 Pedro Alves <palves@redhat.com>
11357
11358 PR gdb/15161
11359
11360 Harmonize with generic_load.
11361
11362 * monitor.c: Include "readline/readline.h".
11363 (monitor_load): Rename parameter 'file' to 'args'. Use build_argv
11364 instead of sscanf. Use CORE_ADDR/strtoulst instead of unsigned
11365 long/strtol for the 'load_offset' local. Error out if no argument
11366 is given or if too many arguments are given. Tilde expand the
11367 passed in file name.
11368
11369 2013-02-19 Kai Tietz <ktietz@redhat.com>
11370
11371 PR gdb/15161
11372 * symfile.c (load_section_data): Change type of load_offset
11373 to CORE_ADDR.
11374 (generic_load): User strtoulst instead of strtoul for conversion
11375 of load_offset.
11376
11377 2013-02-19 Jiong Wang <jiwang@tilera.com>
11378
11379 * tilegx-tdep.c (tilegx_analyze_prologue): add check for
11380 for return address, "lr" register, saved on stack.
11381 * tilegx-tdep.c (tilegx_frame_cache): update "PC" reg
11382 after we invoke tilegx_analyze_prologue.
11383
11384 2013-02-19 Jiong Wang <jiwang@tilera.com>
11385
11386 * tilegx-tdep.c (itilegx_gdbarch_init): char type should be signed.
11387
11388 2013-02-19 Jiong Wang <jiwang@tilera.com>
11389
11390 * tilegx-tdep.c (tilegx_skip_prologue): Use skip_prologue_using_sal.
11391
11392 2013-02-19 Jiong Wang <jiwang@tilera.com>
11393
11394 * tilegx-tdep.c (INT_SWINT_1_SIGRETURN): New macro.
11395 (tilegx_write_pc): New function.
11396 (tilegx_cannot_reference_register): Return zero if REGNO
11397 is TILEGX_FAULTNUM_REGNUM.
11398 (tilegx_gdbarch_init): Add call to set_gdbarch_write_pc.
11399 (tilegx_register_name): Add handling of "faultnum" register.
11400 * tilegx-tdep.h (enum tilegx_regnum): Add TILEGX_FAULTNUM_REGNUM.
11401 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Add
11402 handling of TILEGX_FAULTNUM_REGNUM.
11403 * tilegx-linux-nat.c (regmap): Add entry for TILEGX_FAULTNUM_REGNUM.
11404
11405 2013-02-19 Jiong Wang <jiwang@tilera.com>
11406
11407 * tilegx-tdep.c (tilegx_push_dummy_call): args pushed on stack
11408 should be aligned to 64bit.
11409
11410 2013-02-19 Kai Tietz <ktietz@redhat.com>
11411
11412 * windows-nat.c (windows_xfer_memory): Fix debug-output
11413 for LLP64.
11414
11415 2013-02-19 Lei Liu <lei.liu2@windriver.com>
11416
11417 * mips-linux-nat.c (mips64_linux_regsets_store_registers):
11418 Don't check DSP register number if HAVE_DSP is not set.
11419
11420 2013-02-19 Alan Modra <amodra@gmail.com>
11421
11422 * elfread.c (struct build_id): Delete. Use struct elf_build_id
11423 throughout file instead.
11424 (build_id_bfd_get): Update to use new elf_tdata build_id field.
11425 Don't xmalloc return value.
11426 (build_id_verify): Similarly. Don't xfree.
11427 (build_id_to_debug_filename): Update.
11428 (find_separate_debug_file_by_buildid): Update, don't xfree.
11429
11430 2013-02-18 Tom Tromey <tromey@redhat.com>
11431
11432 PR gdb/15102:
11433 * dwarf2read.c (read_subrange_type): Use result of
11434 'check_typedef'.
11435
11436 2013-02-16 Yuanhui Zhang <asmwarrior@gmail.com>
11437
11438 * frame.c: Remove one extra white space after #include
11439 directive.
11440
11441 2013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
11442
11443 * contrib/cc-with-tweaks.sh: Extend the comment for -p option.
11444
11445 2013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
11446
11447 * gdb-gdb.gdb.in: Wrap set complaints, b internal_error, b info_command
11448 and dir commands into an if block.
11449
11450 2013-02-15 Sanimir Agovic <sanimir.agovic@intel.com>
11451
11452 * python/py-breakpoint (struct pybp_code): Use int instead of
11453 enum type_code.
11454
11455 2013-02-15 Pedro Alves <pedro@codesourcery.com>
11456 Hafiz Abid Qadeer <abidh@codesourcery.com>
11457
11458 * NEWS: Mention new field "trace-file".
11459 * tracepoint.c (trace_status_mi): Output "trace-file" field.
11460 (tfile_open): Record the trace file's filename in the trace
11461 status.
11462 (tfile_files_info): Mention the name of the trace file.
11463 Check the "filename" field explicitely.
11464 (trace_status_command): Explicitely check "filename" field.
11465 (trace_find_command): Ditto.
11466 (trace_find_pc_command): Ditto.
11467 (trace_find_tracepoint_command): Ditto.
11468 (trace_find_line_command): Ditto.
11469 (trace_find_range_command): Ditto.
11470 (trace_find_outside_command): Ditto.
11471 * tracepoint.h (struct trace_status) <from_file>: Rename it
11472 to "filename" and make it hold the trace file's filename
11473 instead of a boolean.
11474 * remote.c (remote_get_trace_status): Initialize "filename"
11475 field with NULL instead of 0.
11476
11477 2013-02-15 Yao Qi <yao@codesourcery.com>
11478
11479 * remote.c: Fix a typo.
11480
11481 2013-02-14 Pierre Muller <muller@sourceware.org>
11482
11483 * contrib/ari/gdb_ari.sh (GNU/Linux rule): Remove.
11484
11485 2013-02-14 Pedro Alves <palves@redhat.com>
11486
11487 * utils.c (savestring): Don't #undef it. Move function to
11488 common/common-utils.c.
11489 * common/common-utils.c: Include gdb_string.h.
11490 (savestring): Move here from utils.c.
11491 * common/common-utils.h (savestring): Declare.
11492
11493 2013-02-14 Pedro Alves <palves@redhat.com>
11494
11495 * utils.c (savestring): Rename parameter 'size' to 'len'.
11496
11497 2013-02-14 Pedro Alves <palves@redhat.com>
11498 Yufeng Zhang <yufeng.zhang@arm.com>
11499
11500 * aarch64-linux-nat.c (aarch64_init_debug_reg_state): Delete.
11501 (aarch64_inferior_data, struct aarch64_inferior_data):
11502 Delete.
11503 (struct aarch64_process_info): New.
11504 (aarch64_process_list): New global.
11505 (aarch64_find_process_pid, aarch64_add_process)
11506 (aarch64_process_info_get): New functions.
11507 (aarch64_inferior_data_get): Delete.
11508 (aarch64_process_info_get): New function.
11509 (aarch64_forget_process): New function.
11510 (aarch64_get_debug_reg_state): New parameter 'pid'. Reimplement.
11511 (aarch64_linux_prepare_to_resume): Pass the lwp's pid to
11512 aarch64_get_debug_reg_state.
11513 (aarch64_notify_debug_reg_change): Use iterate_over_lwps
11514 instead of linux_nat_iterate_watchpoint_lwps.
11515 (aarch64_linux_new_fork): New function.
11516 (aarch64_linux_child_post_startup_inferior): Use
11517 aarch64_forget_process instead of aarch64_init_debug_reg_state.
11518 (aarch64_handle_breakpoint, aarch64_linux_insert_hw_breakpoint)
11519 (aarch64_linux_remove_hw_breakpoint)
11520 (aarch64_handle_aligned_watchpoint)
11521 (aarch64_handle_unaligned_watchpoint)
11522 (aarch64_linux_insert_watchpoint)
11523 (aarch64_linux_remove_watchpoint)
11524 (aarch64_linux_stopped_data_address): Adjust to pass the current
11525 process id to aarch64_debug_reg_state.
11526 (_initialize_aarch64_linux_nat): Install aarch64_linux_new_fork as
11527 linux_nat_new_fork hook, and aarch64_forget_process as
11528 linux_nat_forget_process hook; remove the call to
11529 register_inferior_data_with_cleanup.
11530
11531 2013-02-14 Pedro Alves <palves@redhat.com>
11532
11533 * eval.c (evaluate_subexp_for_address) <default_case_after_eval,
11534 EVAL_AVOID_SIDE_EFFECTS>: Swap and handle TYPE_CODE_REF before
11535 lval_memory.
11536
11537 2013-02-14 Pedro Alves <pedro@codesourcery.com>
11538 Hafiz Abid Qadeer <abidh@codesourcery.com>
11539
11540 * tracepoint.h (validate_trace_state_variable_name): Declare.
11541 * tracepoint.c (validate_trace_state_variable_name): New.
11542 (trace_variable_command): Parse the trace state variable's name
11543 without using parse_expression. Do several validations.
11544 * mi/mi-main.c (mi_cmd_trace_define_variable): Don't parse the
11545 trace state variable's name with parse_expression. Validate it.
11546
11547 2013-02-14 Yao Qi <yao@codesourcery.com>
11548
11549 * infcmd.c (breakpoint_proceeded): Remove it.
11550
11551 2013-02-14 Yao Qi <yao@codesourcery.com>
11552
11553 * tracepoint.c (end_actions_pseudocommand): Make it static.
11554 (while_stepping_pseudocommand): Likewise.
11555 * tracepoint.h (end_actions_pseudocommand): Remove the
11556 declaration.
11557 (while_stepping_pseudocommand): Likewise.
11558
11559 2013-02-14 Yao Qi <yao@codesourcery.com>
11560
11561 * cli/cli-decode.c (help_cmd): Remove the declaration of
11562 "cmdlist".
11563 (help_all): Likewise.
11564
11565 2013-02-13 Pedro Alves <palves@redhat.com>
11566
11567 * amd64-linux-nat.c (update_debug_registers_callback):
11568 Update comment.
11569 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
11570 iterate_over_lwps.
11571 (amd64_linux_prepare_to_resume): Pass the lwp's pid to
11572 i386_debug_reg_state.
11573 (amd64_linux_new_fork): New function.
11574 (_initialize_amd64_linux_nat): Install amd64_linux_new_fork as
11575 linux_nat_new_fork hook, and i386_forget_process as
11576 linux_nat_forget_process hook.
11577 * i386-linux-nat.c (update_debug_registers_callback):
11578 Update comment.
11579 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
11580 iterate_over_lwps.
11581 (i386_linux_prepare_to_resume): Pass the lwp's pid to
11582 i386_debug_reg_state.
11583 (i386_linux_new_fork): New function.
11584 (_initialize_i386_linux_nat): Install i386_linux_new_fork as
11585 linux_nat_new_fork hook, and i386_forget_process as
11586 linux_nat_forget_process hook.
11587 * i386-nat.c (i386_init_dregs): Delete.
11588 (i386_inferior_data, struct i386_inferior_data):
11589 Delete.
11590 (struct i386_process_info): New.
11591 (i386_process_list): New global.
11592 (i386_find_process_pid, i386_add_process, i386_process_info_get):
11593 New functions.
11594 (i386_inferior_data_get): Delete.
11595 (i386_process_info_get): New function.
11596 (i386_debug_reg_state): New parameter 'pid'. Reimplement.
11597 (i386_forget_process): New function.
11598 (i386_cleanup_dregs): Rewrite.
11599 (i386_update_inferior_debug_regs, i386_insert_watchpoint)
11600 (i386_remove_watchpoint, i386_region_ok_for_watchpoint)
11601 (i386_stopped_data_address, i386_insert_hw_breakpoint)
11602 (i386_remove_hw_breakpoint): Adjust to pass the current process id
11603 to i386_debug_reg_state.
11604 (i386_use_watchpoints): Don't register inferior data.
11605 * i386-nat.h (i386_debug_reg_state): Add new 'pid' parameter, and
11606 adjust comment.
11607 (i386_forget_process): Declare.
11608 * linux-fork.c (delete_fork): Call linux_nat_forget_process.
11609 * linux-nat.c (linux_nat_new_fork, linux_nat_forget_process_hook):
11610 New static globals.
11611 (linux_child_follow_fork): Don't call linux_nat_new_thread here.
11612 (add_initial_lwp): New, factored out from ...
11613 (add_lwp): ... this. Don't check the number of lwps before
11614 calling linux_nat_new_thread.
11615 (linux_nat_iterate_watchpoint_lwps): Delete.
11616 (linux_nat_attach): Use add_initial_lwp instead of add_lwp.
11617 (linux_handle_extended_wait): Call the linux_nat_new_fork hook on
11618 forks and vforks.
11619 (linux_nat_wait_1): Use add_initial_lwp instead of add_lwp for the
11620 initial lwp.
11621 (linux_nat_kill, linux_nat_mourn_inferior): Call
11622 linux_nat_forget_process.
11623 (linux_nat_set_new_fork, linux_nat_set_forget_process)
11624 (linux_nat_forget_process): New functions.
11625 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): Delete
11626 type.
11627 (linux_nat_iterate_watchpoint_lwps): Delete declaration.
11628 (linux_nat_new_fork_ftype, linux_nat_forget_process_ftype): New
11629 types.
11630 (linux_nat_set_new_fork, linux_nat_set_forget_process)
11631 (linux_nat_forget_process): New declarations.
11632
11633 * amd64fbsd-nat.c (super_mourn_inferior): New global.
11634 (amd64fbsd_mourn_inferior): New function.
11635 (_initialize_amd64fbsd_nat): Override to_mourn_inferior.
11636 * windows-nat.c (windows_detach): Call i386_cleanup_dregs.
11637
11638 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
11639
11640 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
11641 Adding _().
11642
11643 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
11644
11645 * aarch64-linux-nat.c (debug_reg_change_callback)
11646 (aarch64_linux_get_debug_reg_capacity): ARI fix: Replace %llx with
11647 %s and phex().
11648
11649 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
11650
11651 * aarch64-linux-nat.c (dr_changed_t): ARI fix: Replace long long
11652 with LONGEST.
11653
11654 2013-02-13 Pedro Alves <palves@redhat.com>
11655 Hafiz Abid Qadeer <abidh@codesourcery.com>
11656
11657 * c-lang.c (c_op_print_tab): Add entry for UNOP_PLUS.
11658
11659 2013-02-12 Tom Tromey <tromey@redhat.com>
11660
11661 PR symtab/11464:
11662 * c-exp.y (lex_one_token): Initialize other fields of yylval on
11663 NAME return.
11664 (classify_inner_name): Remove 'first_name' argument, add
11665 'context'. Remove unused variable.
11666 (yylex): Explicitly maintain the context type. Exit loop earlier
11667 if NAME result is seen.
11668
11669 2013-02-12 Pedro Alves <palves@redhat.com>
11670
11671 * amd64-darwin-tdep.c: Add (C) after Copyright.
11672 * cli/cli-cmds.h: Ditto.
11673 * cli/cli-decode.c: Ditto.
11674 * cli/cli-decode.h: Ditto.
11675 * cli/cli-dump.c: Ditto.
11676 * cli/cli-dump.h: Ditto.
11677 * cli/cli-interp.c: Ditto.
11678 * cli/cli-logging.c: Ditto.
11679 * cli/cli-script.c: Ditto.
11680 * cli/cli-script.h: Ditto.
11681 * cli/cli-setshow.c: Ditto.
11682 * cli/cli-setshow.h: Ditto.
11683 * cli/cli-utils.c: Ditto.
11684 * cli/cli-utils.h: Ditto.
11685 * config/alpha/nm-osf3.h: Ditto.
11686 * config/djgpp/djconfig.sh: Ditto.
11687 * config/i386/nm-fbsd.h: Ditto.
11688 * config/i386/nm-i386gnu.h: Ditto.
11689 * config/nm-linux.h: Ditto.
11690 * config/nm-nto.h: Ditto.
11691 * config/rs6000/nm-rs6000.h: Ditto.
11692 * config/sparc/nm-sol2.h: Ditto.
11693 * darwin-nat-info.c: Ditto.
11694 * dfp.c: Ditto.
11695 * dfp.h: Ditto.
11696 * gdb-demangle.h: Ditto.
11697 * i386-darwin-nat.c: Ditto.
11698 * i386-darwin-tdep.c: Ditto.
11699 * linux-fork.h: Ditto.
11700 * m32c-tdep.c: Ditto.
11701 * microblaze-linux-tdep.c: Ditto.
11702 * microblaze-rom.c: Ditto.
11703 * microblaze-tdep.c: Ditto.
11704 * microblaze-tdep.h: Ditto.
11705 * mips-linux-tdep.h: Ditto.
11706 * ppc-ravenscar-thread.c: Ditto.
11707 * ppc-ravenscar-thread.h: Ditto.
11708 * prologue-value.c: Ditto.
11709 * prologue-value.h: Ditto.
11710 * ravenscar-thread.c: Ditto.
11711 * ravenscar-thread.h: Ditto.
11712 * sparc-ravenscar-thread.c: Ditto.
11713 * sparc-ravenscar-thread.h: Ditto.
11714 * tilegx-linux-tdep.c: Ditto.
11715 * unwind_stop_reasons.def: Ditto.
11716 * windows-nat.h: Ditto.
11717 * xtensa-linux-tdep.c: Ditto.
11718 * xtensa-xtregs.c: Ditto.
11719 * regformats/regdat.sh: Ditto.
11720 * regformats/regdef.h: Ditto.
11721
11722 2013-02-12 Pedro Alves <palves@redhat.com>
11723
11724 * break-catch-sig.c: Update copyright years.
11725
11726 2013-02-11 Siva Chandra Reddy <sivachandra@google.com>
11727
11728 Add support for a destructor for ui_out data and use it to
11729 provide a ui_out destructor.
11730 * ui-out.h: Declare the new ui_out destructor.
11731 (ui_out_impl): Add a field for data destructor in ui_out_impl.
11732 * ui-out.c (default_data_destroy): Add a default data destructor
11733 which does nothing.
11734 (default_ui_out_impl): Set the new data_destroy field to
11735 default_data_destroy
11736 (uo_data_destroy): Local function which invokes the data
11737 destructor if present.
11738 (clear_table): Local function which clears the table data of a
11739 ui_out object.
11740 (ui_out_destroy): Public function which frees a ui_out object.
11741 (ui_out_table_end): Use the new clear_table function.
11742 * cli-out.c (cli_ui_out_impl): Set the new data_destroy field to
11743 NULL.
11744 * mi/mi-out.c (mi_ui_out_impl): Set the new data_destroy field
11745 to NULL.
11746
11747 2013-02-11 Doug Evans <dje@google.com>
11748
11749 * printcmd.c (printf_c_string,printf_wide_c_string): New functions.
11750 (printf_decfloat): New function. Broken out from ui_printf.
11751 Remove unnecessary code to shift the entire format string down.
11752 (printf_pointer): New function.
11753 (ui_printf): Code to print C strings, wide C strings, decfloats,
11754 and pointers moved to separate functions.
11755
11756 2013-02-11 Sergio Durigan Junior <sergiodj@redhat.com>
11757
11758 * valops.c (value_assign): Handling bitfield offset in
11759 `lval_internalvar_component' case.
11760
11761 2013-02-08 Doug Evans <dje@google.com>
11762
11763 * common/format.c (parse_format_string): Fix whitespace.
11764
11765 2013-02-08 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
11766
11767 * stack.c (return_command): Work around uninitialized variable
11768 warning.
11769
11770 2013-02-08 Yufeng Zhang <yufeng.zhang@arm.com>
11771
11772 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET): Change the
11773 number of the registers from 36 to 34.
11774
11775 2013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
11776
11777 * NEWS: Mention new AArch64 native and target support.
11778
11779 2013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
11780
11781 * MAINTAINERS (Write After Approval): Add myself.
11782
11783 2013-02-08 Jim MacArthur <jim.macarthur@arm.com>
11784 Marcus Shawcroft <marcus.shawcroft@arm.com>
11785 Nigel Stephens <nigel.stephens@arm.com>
11786 Yufeng Zhang <yufeng.zhang@arm.com>
11787
11788 * aarch64-linux-nat.c: New file.
11789 * config/aarch64/linux.mh: New file.
11790 * configure.host: Add AArch64.
11791 * Makefile.in (ALLDEPFILES): Add aarch64-linux-nat.c.
11792
11793 2013-02-07 Doug Evans <dje@google.com>
11794
11795 * cli/cli-cmds.c (_initialize_cli_cmds): Clarify argument to
11796 disassemble command.
11797
11798 2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
11799
11800 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
11801 set_gdbarch_fetch_tls_load_module_address.
11802
11803 2013-02-06 David S. Miller <davem@davemloft.net>
11804
11805 * sparc-tdep.c (sparc32_return_value): Handle writing return value when
11806 using RETURN_VALUE_ABI_PRESERVES_ADDRESS.
11807 * value.c (struct_return_convention): New function.
11808 (using_struct_return): Implement in terms of struct_return_convention.
11809 * value.h (struct_return_convention): Declare.
11810 * stack.c (return_command): Allow successful overriding of the return
11811 value when RETURN_VALUE_ABI_PRESERVES_ADDRESS.
11812
11813 2013-02-06 Tom Tromey <tromey@redhat.com>
11814
11815 * python/py-type.c (typy_strip_typedefs): Don't call check_typedef
11816 outside of TRY_CATCH.
11817
11818 2013-02-06 Yao Qi <yao@codesourcery.com>
11819
11820 * mi/mi-interp.c: Include "tracepoint.h".
11821 (mi_tsv_modified): Declare.
11822 (mi_tsv_created, mi_tsv_deleted): Update declaration.
11823 (mi_interpreter_init): Call observer_attach_tsv_modified.
11824 (mi_tsv_modified): New.
11825 (mi_tsv_created, mi_tsv_deleted): Update.
11826 * tracepoint.c (trace_variable_command): Call
11827 observer_notify_tsv_modified if the initial value of tsv is
11828 changed.
11829 (delete_trace_state_variable): Call
11830 observer_notify_tsv_deleted earlier.
11831 (trace_variable_command): Caller update.
11832 (create_tsv_from_upload): Likewise.
11833 * observer.sh: Declare "struct trace_state_variable".
11834
11835 * NEWS: Mention the new MI notification "=tsv-modified".
11836
11837 2013-02-05 Doug Evans <dje@google.com>
11838
11839 * completer.c (location_completer): Fix typo in comment.
11840
11841 2013-02-05 Jan Kratochvil <jan.kratochvil@redhat.com>
11842
11843 * breakpoint.c (add_location_to_breakpoint): Insert the location with
11844 ADDRESS sorted.
11845
11846 2013-02-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
11847
11848 * aarch64-tdep.c (aarch64_analyze_prologue): ARI fix:
11849 Refactor if statement to avoid trailing || operator.
11850
11851 2013-02-05 Andreas Tobler <andreast@fgznet.ch>
11852
11853 * NEWS: Add PowerPC FreeBSD as a new native configuration.
11854
11855 2013-02-04 Andreas Tobler <andreast@fgznet.ch>
11856
11857 * Makefile.in (ALL_TARGET_OBS): Add powerpc FreeBSD files.
11858 * configure.host: Add powerpc*-*-freebsd* target.
11859 * configure.tgt: Add target info for powerpc*-*-freebsd*.
11860 * ppcfbsd-nat.c, ppcfbsd-tdep.h, ppcfbsd-tdep.c: New files.
11861 * config/powerpc/fbsd.mh: New file.
11862
11863 2013-02-04 Sergio Durigan Junior <sergiodj@redhat.com>
11864 Denys Vlasenko <dvlasenk@redhat.com>
11865 Pedro Alves <palves@redhat.com>
11866
11867 * gdbarch.sh (elfcore_write_linux_prpsinfo): New F hook.
11868 (struct elf_internal_linux_prpsinfo): Forward declare.
11869 * gdbarch.h, gdbarch.c: Regenerate.
11870 * linux-tdep.c: Include `cli/cli-utils.h'.
11871 (linux_fill_prpsinfo): New function.
11872 (linux_make_corefile_notes): Use linux_fill_prpsinfo. If there's
11873 an elfcore_write_linux_prpsinfo hook, use it, otherwise, use
11874 elfcore_write_linux_prpsinfo32 or elfcore_write_linux_prpsinfo64
11875 depending on gdbarch pointer bitness.
11876 * ppc-linux-tdep.c: Include elf-bfd.h.
11877 (ppc_linux_init_abi): Hook in elfcore_write_ppc_linux_prpsinfo32
11878 on 32-bit.
11879
11880 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
11881 Marcus Shawcroft <marcus.shawcroft@arm.com>
11882 Nigel Stephens <nigel.stephens@arm.com>
11883 Yufeng Zhang <yufeng.zhang@arm.com>
11884
11885 * configure.tgt (aarch64*-*-linux*): Set build_gdbserver=yes.
11886
11887 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
11888 Marcus Shawcroft <marcus.shawcroft@arm.com>
11889 Nigel Stephens <nigel.stephens@arm.com>
11890 Yufeng Zhang <yufeng.zhang@arm.com>
11891
11892 * aarch64-newlib-tdep.c: New file.
11893 * configure.tgt: Add aarch64-newlib-tdep.o to gdb_target_obs of
11894 aarch64*-*-elf.
11895 * defs.h (enum gdb_osabi): Add GDB_OSABI_NEWLIB.
11896 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-newlib-tdep.o.
11897 (ALLDEPFILES): Add aarch64-newlib-tdep.c.
11898 * osabi.c (gdb_osabi_names): Add "Newlib".
11899
11900 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
11901 Marcus Shawcroft <marcus.shawcroft@arm.com>
11902 Nigel Stephens <nigel.stephens@arm.com>
11903 Yufeng Zhang <yufeng.zhang@arm.com>
11904
11905 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-linux-tdep.o.
11906 (ALLDEPFILES): Add aarch64-linux-tdep.c.
11907 * aarch64-linux-tdep.c: New file.
11908 * aarch64-linux-tdep.h: New file.
11909 * aarch64-tdep.h (gdbarch_tdep): Define gregset and fpregset.
11910 * configure.tgt: Add aarch64-none-linux-gnu.
11911
11912 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
11913 Marcus Shawcroft <marcus.shawcroft@arm.com>
11914 Nigel Stephens <nigel.stephens@arm.com>
11915 Yufeng Zhang <yufeng.zhang@arm.com>
11916
11917 * Makefile.in (ALL_64_TARGET_OBS): Add arch64-tdep.o.
11918 (HFILES_NO_SRCDIR): Add aarch64-tdep.h.
11919 (ALLDEPFILES): Add aarch64-tdep.c.
11920 * aarch64-tdep.c: New file.
11921 * aarch64-tdep.h: New file.
11922 * configure.tgt: Add AArch64.
11923 * features/Makefile (WHICH): Add aarch64 and aarch64-without-fpu.
11924 (aarch64-expedite): New definition.
11925 * features/aarch64-core.xml: New file.
11926 * features/aarch64-fpu.xml: New file.
11927 * features/aarch64-without-fpu.c: New file (generated).
11928 * features/aarch64-without-fpu.xml: New file.
11929 * features/aarch64.c: New file (generated).
11930 * features/aarch64.xml: New file.
11931 * regformats/aarch64-without-fpu.dat: New file (generated).
11932 * regformats/aarch64.dat: New file (generated).
11933
11934 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11935
11936 * contrib/expect-read1.c: New file.
11937 * contrib/expect-read1.sh: New file.
11938
11939 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11940
11941 * dwarf2read.c (file_file_name): New function with code from
11942 file_full_name.
11943 (file_full_name): Move most of the code to file_file_name.
11944 (macro_start_file): Rename variable full_name to file_name and use
11945 file_file_name for it. Add comp_dir parameter to new_macro_table.
11946 * macrocmd.c (show_pp_source_pos): New variable fullname. Replace any
11947 macro_source_file->filename access by macro_source_fullname call.
11948 * macroscope.c (_initialize_macroscope): Update the new_macro_table
11949 caller.
11950 * macrotab.c (struct macro_table): New field comp_dir.
11951 (macro_include): New variables link_fullname and source_fullname.
11952 Replace any macro_source_file->filename access by macro_source_fullname
11953 call.
11954 (macro_lookup_inclusion): Remove the partial filenames checking code.
11955 (check_for_redefinition): New variables source_fullname and
11956 found_key_fullname. Replace any macro_source_file->filename access by
11957 macro_source_fullname call.
11958 (macro_undef): New variables source_fullname and key_fullname. Replace
11959 any macro_source_file->filename access by macro_source_fullname call.
11960 (macro_lookup_definition): New variables retval and source_fullname.
11961 Replace any macro_source_file->filename access by macro_source_fullname
11962 call.
11963 (foreach_macro): New variable key_fullname. Replace any
11964 macro_source_file->filename access by macro_source_fullname call.
11965 (foreach_macro_in_scope): New variable datum_fullname. Replace any
11966 macro_source_file->filename access by macro_source_fullname call.
11967 (new_macro_table): Add parameter comp_dir. Initialize T with it.
11968 (macro_source_fullname): New function.
11969 * macrotab.h (struct macro_source_file): Extent the filename field
11970 comment.
11971 (new_macro_table): New parameter comp_dir, add a comment for it.
11972 (macro_source_fullname): new declaration.
11973
11974 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11975
11976 * dwarf2read.c (dw2_map_symtabs_matching_filename): Move variable
11977 this_real_name to outer block. Use it also for
11978 compare_filenames_for_search.
11979 (dw2_expand_symtabs_matching): New variable this_real_name. Use it
11980 with dw2_get_real_path for file_matcher, considering also
11981 BASENAMES_MAY_DIFFER.
11982 (file_full_name): Prepend COMP_DIR even for relative lh->INCLUDE_DIRS.
11983
11984 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11985
11986 * dwarf2read.c (dw2_expand_symtabs_matching): Add basenames parameter
11987 to the file_matcher parameter. Pass 0 to it.
11988 (dwarf2_create_include_psymtab): Copy also DIRNAME.
11989 * psymtab.c (partial_map_symtabs_matching_filename): Drop handling of
11990 NULL psymtab_to_fullname result.
11991 (psymtab_to_fullname): Remove variable r. Never return NULL, assemble
11992 an expected filename instead.
11993 (expand_symtabs_matching_via_partial): Add basenames parameter to the
11994 file_matcher parameter. Call also psymtab_to_fullname, after newly
11995 considering BASENAMES_MAY_DIFFER.
11996 * source.c (rewrite_source_path): Remove static.
11997 * source.h (rewrite_source_path): New declaration.
11998 * symfile.h (struct quick_symbol_functions): Add basenames parameter to
11999 the expand_symtabs_matching field. Comment it.
12000 * symtab.c (file_matches): New function comment. Add parameter
12001 basenames, implement it.
12002 (search_symbols_file_matches): Add basenames parameter. Update the
12003 file_matches caller.
12004 (search_symbols): Match FILES also against symtab_to_fullname.
12005 Optimize it for BASENAMES_MAY_DIFFER.
12006
12007 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12008
12009 * source.c (print_source_lines_base): Print for TUI also "fullname".
12010 * tui/tui-data.c (init_content_element): Change tui_locator_element
12011 field to full_name.
12012 * tui/tui-data.h (struct tui_locator_element): Likewise.
12013 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Rename
12014 tui_update_locator_filename calls to tui_update_locator_fullname.
12015 Replace symtab->filename refererence by symtab_to_fullname call.
12016 * tui/tui-out.c (tui_field_string): Check for "fullname" now.
12017 * tui/tui-source.c (tui_set_source_content): Change tui_locator_element
12018 field to full_name. Replace symtab->filename refererence by
12019 symtab_to_fullname call.
12020 (tui_show_symtab_source): Rename parameter to fullname. Change
12021 tui_locator_element field to full_name.
12022 * tui/tui-stack.c: Include source.h.
12023 (tui_set_locator_filename): Rename the declaration to ...
12024 (tui_set_locator_fullname): ... here. Rename its parameter to
12025 fullname, updates its comment.
12026 (tui_set_locator_info): Rename its parameter to fullname.
12027 (tui_set_locator_filename): Rename the definition to ...
12028 (tui_set_locator_fullname): ... here. Rename its parameter to
12029 fullname, updates its comment. Change tui_locator_element field to
12030 full_name.
12031 (tui_set_locator_info): Rename its parameter to fullname.
12032 (tui_set_locator_info): Rename callee to tui_set_locator_fullname.
12033 (tui_update_locator_filename): Rename to ...
12034 (tui_update_locator_fullname): ... here. Rename callee to
12035 tui_set_locator_fullname.
12036 (tui_show_frame_info): Replace symtab->filename refererence by
12037 symtab_to_fullname call.
12038 * tui/tui-stack.h (tui_update_locator_filename): Rename to ...
12039 (tui_update_locator_fullname): ... here.
12040 * tui/tui-winsource.c (tui_display_main): Rename the callee to
12041 tui_update_locator_fullname. Replace symtab->filename refererence by
12042 symtab_to_fullname call.
12043 * tui/tui.c (tui_show_source): Rename its parameter to fullname.
12044 Rename the callee to tui_update_locator_fullname.
12045 * tui/tui.h (tui_show_source): Rename its parameter to fullname.
12046
12047 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12048
12049 * ada-lang.c (user_select_syms): Replace symtab->filename refererences
12050 by symtab_to_filename_for_display calls.
12051 * breakpoint.c (print_breakpoint_location, resolve_sal_pc): Likewise.
12052 (clear_command): New variable sal_fullname, initialize it. Replace
12053 compare_filenames_for_search by filename_cmp with sal_fullname.
12054 (say_where, update_static_tracepoint): Replace symtab->filename
12055 refererences by symtab_to_filename_for_display calls.
12056 * cli/cli-cmds.c (edit_command, list_command, ambiguous_line_spec):
12057 Likewise.
12058 * dwarf2read.c: Include source.h.
12059 (fixup_go_packaging): Replace symtab->filename refererences by
12060 symtab_to_filename_for_display calls.
12061 * linespec.c (add_sal_to_sals): Rename variable filename to fullname.
12062 Replace symtab->filename refererences by symtab_to_filename_for_display
12063 calls.
12064 (create_sals_line_offset, convert_linespec_to_sals): New variable
12065 fullname, initialize it, replace symtab->filename reference by the
12066 variable.
12067 * linux-fork.c: Include source.h.
12068 (info_checkpoints_command): Replace symtab->filename refererences by
12069 symtab_to_filename_for_display calls.
12070 * macroscope.c (sal_macro_scope): Replace symtab->filename refererences
12071 by symtab_to_filename_for_display calls.
12072 * mdebugread.c: Include source.h.
12073 (psymtab_to_symtab_1): Replace symtab->filename refererences by
12074 symtab_to_filename_for_display calls.
12075 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
12076 (mi_cmd_file_list_exec_source_files): Likewise.
12077 * printcmd.c: Include source.h.
12078 (build_address_symbolic): Replace symtab->filename refererences by
12079 symtab_to_filename_for_display calls.
12080 * psymtab.c (partial_map_symtabs_matching_filename)
12081 (read_psymtabs_with_fullname): Call compare_filenames_for_search also
12082 with psymtab_to_fullname.
12083 * python/py-symtab.c (stpy_str): Replace symtab->filename refererences
12084 by symtab_to_filename_for_display calls.
12085 (stpy_get_filename): New variable filename, initialize it, use instead
12086 of symtab->filename refererences.
12087 (salpy_str): Make variable filename const char *. Replace
12088 symtab->filename refererences by symtab_to_filename_for_display calls.
12089 * skip.c: Include source.h and filenames.h.
12090 (skip_file_command): Remove const from the symtab variable. Replace
12091 symtab->filename refererences by symtab_to_fullname call.
12092 (function_name_is_marked_for_skip): New variables searched_for_fullname
12093 and fullname. Use them to search also with symtab's fullname.
12094 * source.c (find_source_lines): Replace symtab->filename refererences
12095 by symtab_to_filename_for_display calls.
12096 (print_source_lines_base): New variable filename, use it instead of
12097 symtab->filename. Replace symtab->filename refererences by
12098 symtab_to_filename_for_display calls.
12099 (line_info, forward_search_command): Replace symtab->filename
12100 refererences by symtab_to_filename_for_display calls.
12101 (reverse_search_command): Replace symtab->filename refererences by
12102 symtab_to_filename_for_display calls. New variable filename for it.
12103 * stack.c (frame_info): Likewise.
12104 * symmisc.c: Include source.h.
12105 (dump_objfile, dump_symtab_1, maintenance_print_symbols)
12106 (maintenance_info_symtabs): Replace symtab->filename refererences by
12107 symtab_to_filename_for_display calls.
12108 * symtab.c (iterate_over_some_symtabs): Call
12109 compare_filenames_for_search also with symtab_to_fullname.
12110 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Replace
12111 symtab->filename refererences by symtab_to_filename_for_display calls.
12112 (find_line_symtab): Replace symtab->filename refererences by
12113 symtab_to_filename_for_display calls.
12114 (file_matches): Replace filename_cmp by compare_filenames_for_search.
12115 (print_symbol_info): Make the last parameter const char *. New
12116 variable s_filename. Use it in the function.
12117 (symtab_symbol_info): Make the last_filename variable const char *.
12118 Replace symtab->filename refererences by symtab_to_filename_for_display
12119 calls.
12120 (rbreak_command): New variable fullname. Use it. Replace
12121 symtab->filename refererence by symtab_to_filename_for_display call.
12122 * tracepoint.c (set_traceframe_context, trace_find_line_command)
12123 (print_one_static_tracepoint_marker): Replace symtab->filename
12124 refererences by symtab_to_filename_for_display calls.
12125 * tui/tui-source.c (tui_set_source_content): New variables filename and
12126 s_filename. Replace symtab->filename refererences by this variable.
12127 Replace other symtab->filename refererences by
12128 symtab_to_filename_for_display calls.
12129
12130 2013-02-03 Eldar Gaynetdinov <hal9000ed2k@gmail.com>
12131 Jan Kratochvil <jan.kratochvil@redhat.com>
12132
12133 Add a new variable that controls a way in which filenames are
12134 displayed.
12135 * NEWS (set filename-display): New entry.
12136 * source.c (filename_display_basename, filename_display_relative)
12137 (filename_display_absolute, filename_display_kind_names)
12138 (filename_display_string, show_filename_display_string)
12139 (symtab_to_filename_for_display): New.
12140 (_initialize_source): Added initialization of 'filename-display'
12141 variable.
12142 * source.h (symtab_to_filename_for_display): Added declaration.
12143 * stack.c (print_frame): Added new variable and calling of a new
12144 function and condition with this variable. Changed third argument of
12145 calling of a function.
12146
12147 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12148
12149 * tui/tui-data.c (init_win_info, tui_del_window, tui_free_window):
12150 Rename field reference filename to fullname.
12151 * tui/tui-data.h (struct tui_source_info): Rename field filename to
12152 fullname. New comment for it.
12153 * tui/tui-source.c (tui_set_source_content): Rename field reference
12154 filename to fullname. Initialize field by symtab_to_fullname now.
12155 * tui/tui-winsource.c (tui_update_breakpoint_info): Rename field
12156 reference filename to fullname. Use symtab_to_fullname during
12157 comparison.
12158
12159 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12160
12161 Code cleanup.
12162 * dwarf2read.c (dw2_expand_symtabs_with_filename): Rename to ...
12163 (dw2_expand_symtabs_with_fullname): ... here. Rename parameter
12164 filename to fullname. Rename variable this_name to this_fullname.
12165 Lowercase FILENAME_CMP call.
12166 (dw2_find_symbol_file): New comment for the returned string.
12167 (dwarf2_gdb_index_functions): Rename the function to
12168 dw2_expand_symtabs_with_fullname.
12169 * psymtab.c (read_psymtabs_with_filename): Rename to ...
12170 (read_psymtabs_with_fullname): ... here. Rename parameter filename to
12171 fullname.
12172 (psym_functions): Rename the function to read_psymtabs_with_fullname.
12173 * symfile.h (struct quick_symbol_functions): Rename field
12174 expand_symtabs_with_filename to expand_symtabs_with_fullname and its
12175 parameter filename to fullname. Document returned string meaning for
12176 find_symbol_file.
12177 * symtab.c (find_line_symtab): Rename the called function to
12178 expand_symtabs_with_fullname.
12179
12180 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12181
12182 Code cleanup.
12183 * breakpoint.c (clear_command): Remove variable is_abs, unify the
12184 call of filename_cmp with compare_filenames_for_search.
12185 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove variable
12186 is_abs, unify the call of FILENAME_CMP with
12187 compare_filenames_for_search. New gdb_asserts for real_path and name.
12188 Unify the call of compare_filenames_for_search with FILENAME_CMP.
12189 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
12190 * symfile.h (struct quick_symbol_functions): Extend the comment for
12191 map_symtabs_matching_filename.
12192 * symtab.c (compare_filenames_for_search): Remove the function comment
12193 relative path requirement. Handle absolute filenames, with a comment.
12194 (iterate_over_some_symtabs): Remove variable is_abs, unify the call of
12195 FILENAME_CMP with compare_filenames_for_search. New gdb_asserts for
12196 real_path and name. Unify the call of compare_filenames_for_search
12197 with FILENAME_CMP.
12198 (iterate_over_symtabs): New gdb_assert on REAL_PATH.
12199
12200 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12201
12202 Code cleanup.
12203 * breakpoint.c (print_breakpoint_location): Replace bp_location field
12204 source_file references by symtab field references. Remove variables
12205 sal and fullname.
12206 (momentary_breakpoint_from_master, add_location_to_breakpoint):
12207 (clear_command, say_where): Replace bp_location field source_file
12208 references by symtab field references.
12209 (bp_location_dtor): Remove the source_file reference.
12210 (update_static_tracepoint): Replace bp_location field source_file
12211 references by symtab field references.
12212 (breakpoint_free_objfile): New function.
12213 * breakpoint.h (struct bp_location): Extend the comment for line_number.
12214 Replace the field source_file by field symtab, extend its comment.
12215 (breakpoint_free_objfile): New declaration.
12216 * objfiles.c (free_objfile): Call breakpoint_free_objfile.
12217 * tui/tui-winsource.c (tui_update_breakpoint_info): Replace bp_location
12218 field source_file references by symtab field references.
12219
12220 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12221
12222 Replace xfullpath calls by gdb_realpath calls.
12223 * cli/cli-cmds.c (find_and_open_script): Remove xfullpath from the
12224 function comment.
12225 * dwarf2read.c (dw2_map_expand_apply): Remove parameter full_path.
12226 Remove it from the iterate_over_some_symtabs call.
12227 (dw2_map_symtabs_matching_filename): Remove parameter full_path.
12228 Remove it from the dw2_map_expand_apply calls, remove a block handling
12229 it.
12230 * psymtab.c (partial_map_expand_apply): Remove parameter full_path.
12231 Remove it from the iterate_over_some_symtabs call.
12232 (partial_map_symtabs_matching_filename): Remove parameter full_path.
12233 Remove it from the partial_map_expand_apply calls, remove a block
12234 handling it. Drop gdb_realpath call and cleanups from the real_path
12235 handling.
12236 * source.c (openp): Drop the comment part about xfullpath. Replace
12237 xfullpath calls by gdb_realpath calls.
12238 (find_and_open_source): Replace xfullpath call by gdb_realpath call.
12239 * symfile.h (struct quick_symbol_functions): Remove parameter full_path
12240 from method map_symtabs_matching_filename and its comment.
12241 * symmisc.c (maintenance_print_msymbols): Replace xfullpath call by
12242 gdb_realpath call.
12243 * symtab.c (iterate_over_some_symtabs): Remove parameter full_path,
12244 remove it also from the function comment, remove a block handling it.
12245 Drop gdb_realpath call and cleanups from the real_path handling.
12246 (iterate_over_symtabs): Drop variable full_path and its use.
12247 * symtab.h (iterate_over_some_symtabs): Remove parameter full_path.
12248 * utils.c (xfullpath): Remove.
12249 * utils.h (xfullpath): Remove.
12250
12251 2013-02-01 Andreas Tobler <andreast@fgznet.ch>
12252
12253 * Makefile.in (ALL_TARGET_OBS): Add ppc64-tdep.o.
12254 (HFILES_NO_SRCDIR): Add ppc64-tdep.h.
12255 (ALLDEPFILES): Add ppc64-tdep.c.
12256 * configure.tgt (powerpc-*-linux* | powerpc64-*-linux*): Add
12257 ppc64-tdep.o to gdb_target_obs.
12258 * ppc64-tdep.h: New file.
12259 * ppc64-tdep.c: New file.
12260 (insn_d, insn_ds, insn_xfx, ppc64_desc_entry_point): Move from
12261 ppc-linux-tdep.c to here.
12262 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN)
12263 (PPC64_STANDARD_LINKAGE2_LEN): Likewise and use ARRAY_SIZE macro.
12264 (ppc64_standard_linkage1_target, ppc64_standard_linkage2_target)
12265 (ppc64_standard_linkage3_target, ppc64_skip_trampoline_code): Move
12266 from ppc-linux-tdep.c to here.
12267 (ppc64_convert_from_func_ptr_addr): Rename from
12268 ppc64_linux_convert_from_func_ptr_addr to
12269 ppc64_convert_from_func_ptr_addr and move from ppc-linux-tdep.c to
12270 here.
12271 * rs6000-tdep.c:
12272 (read_insn): Move from ppc-linux-tdep.c to here.
12273 (insns_match_pattern, insn_d_field, insn_ds_field): Move
12274 from ppc-linux-tdep.c to here and rename them with the ppc_ prefix.
12275 * ppc-linux-tdep.c: Include ppc64-tdep.h.
12276 Removed above functions.
12277 (ppc_linux_init_abi): Adjust.
12278
12279 2013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
12280
12281 * ada-valprint.c (ada_print_floating): Remove unused 'len'.
12282
12283 2013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
12284
12285 * ada-lang.c (assign_aggregate): Remove unused 'is_array_aggregate'.
12286
12287 2013-02-01 Pedro Alves <palves@redhat.com>
12288
12289 * dummy-frame.c (deprecated_pc_in_call_dummy): Delete function.
12290 * frame.h (deprecated_pc_in_call_dummy): Delete declaration.
12291
12292 2013-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
12293
12294 * elfread.c (elf_symfile_read): Limit separate debug info additions to
12295 files with no separate debug info.
12296 * objfiles.c (add_separate_debug_objfile): Add gdb_assert calls.
12297 * symfile.c (read_symbols): Call find_separate_debug_file_in_section
12298 only for files with no separate debug info.
12299
12300 2013-01-31 Tom Tromey <tromey@redhat.com>
12301
12302 * jit.c (jit_program_space_data): Rename from jit_inferior_data;
12303 change type.
12304 (struct jit_program_space_data): Rename from jit_inferior_data.
12305 Update comments.
12306 (get_jit_program_space_data): Rename from get_jit_inferior_data.
12307 Change return type. Attach data to program space.
12308 (jit_program_space_data_cleanup): Rename from
12309 jit_inferior_data_cleanup; change argument type.
12310 (jit_read_descriptor): Change 'inf_data' argument to 'ps_data',
12311 change type.
12312 (jit_register_code): Update.
12313 (jit_update_inferior_cache): Remove.
12314 (jit_breakpoint_deleted): Get jit data from the location's program
12315 space.
12316 (jit_breakpoint_re_set_internal): Rename 'inf_data' argument to
12317 'ps_data', change type.
12318 (jit_inferior_init, jit_breakpoint_re_set_internal)
12319 (jit_event_handler): Update.
12320 (free_objfile_data): Get data from objfile's program space.
12321 (_initialize_jit): Update.
12322
12323 2013-01-31 Tom Tromey <tromey@redhat.com>
12324
12325 PR gdb/13987:
12326 * jit.c (struct jit_inferior_data) <cached_code_address,
12327 jit_breakpoint>: New fields.
12328 (jit_breakpoint_re_set_internal): Fix logging. Only create
12329 breakpoint if cached address has changed.
12330 (jit_update_inferior_cache, jit_breakpoint_deleted): New
12331 functions.
12332 (_initialize_jit): Register breakpoint deleted observer.
12333
12334 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12335
12336 * infrun.c (handle_syscall_event): Remove unused gdbarch.
12337 (save_infcall_suspend_state): Ifdef out unused inf.
12338 (restore_infcall_suspend_state): Ifdef out unused inf.
12339 * jit.c (jit_register_code): Remove unused i, b, inf_data.
12340 (jit_frame_sniffer): Remove unused inf_data.
12341
12342 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12343
12344 * c-exp.y (classify_inner_name): Remove unused type.
12345 * c-lang.c (c_printstr): Remove unused byte_order, i, things_printed,
12346 in_quotes, need_comma, wchar_buf, output, cleanup, iter, finished,
12347 need_escape.
12348 (c_get_string): Remove unused kind.
12349 * c-typeprint.c (c_type_print_args): Remove unused i, len, args, table2.
12350
12351 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12352
12353 * charset.c (intermediate_encoding): Remove unused i.
12354 * completer.c (signal_completer): Remove unused i.
12355 * continuations.c (discard_my_continuations_1): Remove unused
12356 continuation_ptr.
12357 * corelow.c (core_close): Remove unuseD name.
12358 (get_core_siginfo): Remove unused pid.
12359 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Remove unused
12360 i, cps.
12361 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove unused base_offset.
12362 (loclist_describe_location): Remove unused first.
12363 * event-top.c (command_line_handler): Remove unused got_eof.
12364 * exec.c (exec_close_1): Remove unused need_symtab_cleanup.
12365 (resize_section_table): Remove unused old_value.
12366 * gdb_bfd.c (gdb_bfd_map_section): Remove unused header.
12367 * gnu-v3-abi.c (compute_vtable_size): Remove unused addr.
12368 * i386-tdep.c (i386_process_record): Remove unused rex.
12369 * infcmd.c (get_return_value): Remove unused uiout.
12370 * jv-lang.c (type_from_class): Remove unused is_array.
12371 * jv-valprint.c (java_val_print): Remove unused i.
12372 * linux-nat.c (linux_nat_stop_lwp): Remove unused ptid.
12373 * linux-thread-db.c (thread_db_find_new_threads_2): Remove unuseD pid.
12374 * m2-typeprint.c (m2_print_type): Remove unused code.
12375 * macroexp.c (get_character_constant): Remove unused body_start.
12376 (macro_stringify): Remove unused result.
12377 * objc-lang.c (find_methods): Remove unused gdbarch.
12378 * objfiles.c (filter_overlapping_sections): Remove unused abfd1, abfd2.
12379 * regcache.c (regcache_cooked_read): Remove unused gdbarch.
12380 * stack.c (print_frame_args): Remove unused summary.
12381 * thread.c (thread_apply_command): Remove unused p.
12382 * valarith.c (value_x_unop): Remove unused mangle_ptr.
12383 * valops.c (search_struct_method): Remove unused skip.
12384 * valprint.c (generic_val_print): Remove unused byte_order.
12385 * varobj.c (varobj_update): Remove unused changed.
12386 * cli/cli-cmds.c (complete_command): Remove unused next_item.
12387 (alias_command): Remove unused c.
12388 * mi/mi-cmd-catch.c (mi_catch_load_unload): Remove unused c.
12389 * mi/mi-main.c (mi_cmd_data_write_register_values): Remove unused
12390 format.
12391 (mi_cmd_data_write_memory): Remove unused word_format.
12392 (mi_cmd_data_write_memory_bytes): Remove unused r.
12393 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Remove unused
12394 p_start, p_end.
12395 * python/python.c (_initialize_python): Remove unused cmd_name, cmd.
12396 * tui/tui-disasm.c (tui_set_disassem_content): Remove unused
12397 line_width.
12398
12399 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12400
12401 * dwarf2-frame.c (dwarf2_compile_cfa_to_ax): Remove unused num_regs.
12402 * symtab.c (iterate_over_symtabs): Remove unused s.
12403 (find_pc_sect_symtab): Remove unused pspAce.
12404 (find_pc_sect_line): Remove unused alt_symtab.
12405 (find_pcs_for_symtab_line): Remove unused ix, previous_function.
12406 (completion_list_add_name): Remove unused newsize.
12407
12408 2013-01-31 Tom Tromey <tromey@redhat.com>
12409
12410 PR c++/14998:
12411 * dwarf2read.c (read_tag_ptr_to_member_type): Handle
12412 TYPE_CODE_FUNC.
12413
12414 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12415
12416 * target.c (target_read_string): Remove unused origlen.
12417
12418 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12419
12420 * auto-load.c (auto_load_expand_dir_vars): Remove unused dir_vec.
12421 * ax-gdb.c (gen_printf): Remove unused expr, i, bot, fr, flen, fmt.
12422 * ax-general.c (ax_print): Remove unused is_float.
12423 * blockframe.c (block_innermost_frame): Remove unused start, end.
12424 * break-catch-sig.c (catch_signal_command): Remove unused gdbarch.
12425
12426 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12427
12428 * solib-svr4.c (svr4_keep_data_in_core): Remove unused lmo.
12429 (svr4_read_so_list): Remove unused lmo.
12430 * solib-target.c (solib_target_relocate_section_addresses): Remove
12431 unused flags.
12432
12433 2013-01-30 Tom Tromey <tromey@redhat.com>
12434
12435 * hppa-tdep.c (read_unwind_info): Use SECT_OFF_TEXT, not "0".
12436
12437 2013-01-30 Tom Tromey <tromey@redhat.com>
12438
12439 * symfile.c (get_file_crc): Use bfd_calc_gnu_debuglink_crc32.
12440 * utils.c (gnu_debuglink_crc32): Remove.
12441 * utils.h (gnu_debuglink_crc32): Don't declare.
12442
12443 2013-01-30 Tom Tromey <tromey@redhat.com>
12444
12445 * dwarf2read.c (compute_delayed_physnames, read_call_site_scope)
12446 (read_structure_type, read_enumeration_type): Remove cast.
12447
12448 2013-01-30 Tom Tromey <tromey@redhat.com>
12449
12450 * dwarf2read.c (read_namespace_type): Remove cast.
12451 (read_typedef): Likewise.
12452
12453 2013-01-29 Tom Tromey <tromey@redhat.com>
12454
12455 * dwarf2read.c (free_dwo_file): Remove assert.
12456
12457 2013-01-29 Tom Tromey <tromey@redhat.com>
12458
12459 * value.c (deprecated_set_value_modifiable): Remove.
12460 * value.h (deprecated_set_value_modifiable): Remove.
12461
12462 2013-01-28 Doug Evans <dje@google.com>
12463
12464 * dwarf2loc.c (dwarf2_find_location_expression): Don't add base address
12465 to addresses from dwo files.
12466
12467 2013-01-25 Siva Chandra Reddy <sivachandra@google.com>
12468
12469 * valops.c (find_overload_match): Remove unused argument 'lax'.
12470 * value.h: Remove unused argument 'lax' from the declaration of
12471 find_overload_match.
12472 * eval.c (value_subexp_standard): Do not pass a 'lax' argument
12473 to find_overload_match.
12474 * valarith.c (value_user_defined_cpp_op): Do not pass a 'lax'
12475 argument to find_overload_match.
12476
12477 2013-01-25 Tom Tromey <tromey@redhat.com>
12478
12479 * dwarf2read.c (processing_has_namespace_info): Remove.
12480 (struct dwarf2_cu) <processing_has_namespace_info>: New field.
12481 (process_die, read_func_scope, dwarf2_start_symtab)
12482 (new_symbol_full): Update.
12483
12484 2013-01-25 Tom Tromey <tromey@redhat.com>
12485
12486 * cp-namespace.c (cp_set_block_scope): Remove.
12487 * cp-support.h (cp_set_block_scope): Remove.
12488 * dbxread.c: Include block.h.
12489 (cp_set_block_scope): New function.
12490 (process_one_symbol): Update.
12491 * dwarf2read.c (read_func_scope): Use block_set_scope.
12492
12493 2013-01-25 Pedro Alves <palves@redhat.com>
12494
12495 * remote.c (add_current_inferior_and_thread): Tweak comment.
12496
12497 2013-01-25 Tom Tromey <tromey@redhat.com>
12498
12499 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
12500 (cp_add_using_directive): Add 'copy_names' argument.
12501 * cp-support.h (cp_add_using_directive): Update.
12502 (struct using_direct) <import_src, import_dest, alias,
12503 declaration>: Now const.
12504 * dwarf2read.c (read_import_statement): Use obconcat.
12505 Don't copy names passed to cp_add_using_directive.
12506
12507 2013-01-25 Tom Tromey <tromey@redhat.com>
12508
12509 * c-exp.y (qualified_name): Use TYPE_SAFE_NAME.
12510
12511 2013-01-25 Pedro Alves <palves@redhat.com>
12512
12513 * remote.c (stop_reply_extract_thread): New.
12514 (add_current_inferior_and_thread): New parameter 'wait_status'.
12515 Handle it.
12516 (remote_start_remote): Pass wait status to
12517 add_current_inferior_and_thread.
12518 (extended_remote_run): Update comment.
12519 (extended_remote_create_inferior_1): Pass wait status to
12520 add_current_inferior_and_thread.
12521
12522 2013-01-25 Andrew Burgess <aburgess@broadcom.com>
12523 Ulrich Weigand <uweigand@de.ibm.com>
12524
12525 * valarith.c (value_vector_widen): New function for replicating a
12526 scalar into a vector.
12527 (value_binop): Use value_vector_widen to widen scalar to vector
12528 rather than casting, this better matches gcc C behaviour.
12529 * valops.c (value_casst): Update logic for casting between vector
12530 types, and for casting from scalar to vector, try to match gcc C
12531 behaviour.
12532 * value.h (value_vector_widen): Declare.
12533 * opencl-lang.c (opencl_value_cast): New opencl specific casting
12534 function, handle special case for casting scalar to vector.
12535 (opencl_relop): Use opencl_value_cast.
12536 (evaluate_subexp_opencl): Use opencl_value_cast instead of
12537 value_cast, and handle BINOP_ASSIGN, UNOP_CAST, and UNOP_CAST_TYPE
12538 in order to use opencl_value_cast.
12539
12540 2013-01-25 Yao Qi <yao@codesourcery.com>
12541
12542 * event-loop.c: Include "queue.h".
12543 (gdb_event_p): New typedef.
12544 (DECLARE_QUEUE_P): Use.
12545 (DEFINE_QUEUE_P): Use.
12546 (async_queue_event): Remove.
12547 (gdb_event_xfree): New.
12548 (initialize_event_loop): New.
12549 (process_event): Use QUEUE macros.
12550 (event_queue): Remove.
12551 (gdb_wait_for_event): Caller update.
12552 (check_async_event_handlers): Likewise.
12553 (poll_timers): Likewise.
12554 * event-loop.h (initialize_event_loop): Declare.
12555 * event-loop.c (gdb_event_xfree): New.
12556 * top.c (gdb_init): Call initialize_event_loop.
12557
12558 2013-01-25 Yao Qi <yao@codesourcery.com>
12559
12560 * event-loop.c (async_queue_event): Remove one parameter
12561 'position'. Remove code handling 'position' == TAIL.
12562 (gdb_wait_for_event): Caller update.
12563 (check_async_event_handlers): Caller update.
12564 (poll_timers): Caller update.
12565 * event-loop.h (enum queue_position): Remove.
12566
12567 2013-01-25 Maxim Kuvyrkov <maxim@kugelworks.com>
12568
12569 * MAINTAINERS: Update my email.
12570
12571 2013-01-25 Yao Qi <yao@codesourcery.com>
12572
12573 * main.c (print_gdb_help): Remove "--epoch" from the help
12574 message.
12575
12576 2013-01-24 Ulrich Weigand  <uweigand@de.ibm.com>
12577
12578 * symtab.c (skip_prologue_using_sal): Consider a file
12579 change the same as an increased line number
12580
12581 2013-01-24 Tiago Stürmer Daitx  <tdaitx@linux.vnet.ibm.com>
12582
12583 * MAINTAINERS (Write After Approval): Add myself to the list.
12584
12585 2013-01-24 Tom Tromey <tromey@redhat.com>
12586
12587 * ada-lang.h (ada_decode_symbol): Make return type const.
12588 * ada-lang.c (ada_decode_symbol): Likewise.
12589
12590 2013-01-23 Doug Evans <dje@google.com>
12591
12592 * linespec.c (find_linespec_symbols): Make static.
12593
12594 2013-01-23 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
12595
12596 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Set correct
12597 type on float conversion for complex type.
12598
12599 2013-01-23 Siva Chandra Reddy <sivachandra@google.com>
12600
12601 Add a new class gdb.Architecture which exposes GDB's
12602 internal representation of architecture via GDB Python API.
12603 * Makefile.in: Add entries corresponding to the new file
12604 python/py-arch.c.
12605 * NEWS (Python Scripting): Add entries for the new class
12606 gdb.Architecture and the new method gdb.Frame.architecture.
12607 * python/py-arch.c: Implement gdb.Architecture class.
12608 * python/py-frame.c (frapy_arch): Implement the method
12609 gdb.Frame.architecture().
12610 (frame_object_methods): Add 'architecture' to the method table.
12611 * python/python-internal.h: Add declarations of new utility
12612 functions.
12613 * python/python.c (_initialize_python): Initialize
12614 gdb.Architecture class.
12615
12616 2013-01-23 Doug Evans <dje@google.com>
12617
12618 Work around binutils/15021.
12619 * dwarf2read.c (dwarf2_per_cu_data): Split imported_symtabs and
12620 type_unit_group out of union s. All uses updated.
12621 (read_index_from_section): Watch for index version 8.
12622 (follow_die_sig): If using .gdb_index version <= 7, record the TU as
12623 an imported symtab.
12624 (write_psymtabs_to_index): Increment version number to 8.
12625
12626 2013-01-22 Pedro Alves <palves@redhat.com>
12627
12628 * annotate.c (breakpoint_changed): Skip if breakpoint is not
12629 user-visible.
12630
12631 2013-01-22 Pedro Alves <palves@redhat.com>
12632
12633 * annotate.c (annotate_breakpoints_changed): Rename to ...
12634 (annotate_breakpoints_invalid): ... this. Make static.
12635 (breakpoint_changed): Adjust.
12636 (_initialize_annotate): Always install the observers. Install a
12637 "breakpoint_created" observer.
12638 * annotate.h (annotate_breakpoints_changed): Delete declaration.
12639 * breakpoint.c (set_breakpoint_condition)
12640 (breakpoint_set_commands, do_map_commands_command)
12641 (init_raw_breakpoint, clear_command, set_ignore_count)
12642 (enable_breakpoint_disp): No longer call
12643 annotate_breakpoints_changed.
12644
12645 2013-01-22 Pedro Alves <palves@redhat.com>
12646
12647 * annotate.c: Include "inferior.h".
12648 (frames_invalid_emitted)
12649 (breakpoints_invalid_emitted): New globals.
12650 (async_background_execution_p): New function.
12651 (annotate_breakpoints_changed, annotate_frames_invalid): Skip
12652 emitting the annotation if it has already been emitted.
12653 (annotate_display_prompt): New function.
12654 * annotate.h (annotate_display_prompt): New declaration.
12655 * event-top.c: Include annotate.h.
12656 (display_gdb_prompt): Call annotate_display_prompt.
12657
12658 2013-01-22 Pedro Alves <palves@redhat.com>
12659
12660 * annotate.c (ignore_count_changed): Delete.
12661 (annotate_breakpoints_changed): Don't clear ignore_count_changed.
12662 (annotate_ignore_count_change): Delete.
12663 (annotate_stopped): Don't emit a delayed breakpoints-changed
12664 annotation.
12665 * annotate.h (annotate_ignore_count_change): Delete.
12666 * breakpoint.c (bpstat_check_breakpoint_conditions): Don't call
12667 annotate_ignore_count_change.
12668
12669 2013-01-22 Tom Tromey <tromey@redhat.com>
12670
12671 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>: Only
12672 require_rvalue for a register location.
12673
12674 2013-01-21 Marc Khouzam <marc.khouzam@ericsson.com>
12675
12676 * breakpoint.c (print_one_breakpoint_location): Add MI
12677 field 'thread-groups' when printing a breakpoint.
12678 (output_thread_groups): New function.
12679
12680 2013-01-21 Siva Chandra Reddy <sivachandra@google.com>
12681
12682 * python/lib/gdb/commands/explore.py
12683 (CompoundExplorer.explore_expr): Correct the name of a method
12684 being invoked.
12685 (ExploreTypeCommand.invoke): Add a missing 'return'.
12686
12687 2013-01-21 Tom Tromey <tromey@redhat.com>
12688
12689 * gdb_obstack.h (obconcat): Move declaration here, from...
12690 * symfile.h (obconcat): ... here.
12691 * gdb_obstack.c: New file.
12692 (obconcat): Move from...
12693 * symfile.c (obconcat): ... here.
12694 * Makefile.in (SFILES): Add gdb_obstack.c.
12695 (COMMON_OBS): Add gdb_obstack.o.
12696
12697 2013-01-21 Tom Tromey <tromey@redhat.com>
12698
12699 * symfile.h (obsavestring): Don't declare.
12700 * symfile.c (obsavestring): Remove.
12701 * ada-exp.y: Use obstack_copy0, not obsavestring.
12702 * ada-lang.c: Use obstack_copy0, not obsavestring.
12703 * coffread.c: Use obstack_copy0, not obsavestring.
12704 * cp-namespace.c: Use obstack_copy0, not obsavestring.
12705 * dbxread.c: Use obstack_copy0, not obsavestring.
12706 * dwarf2read.c: Use obstack_copy0, not obsavestring.
12707 * jit.c: Use obstack_copy0, not obsavestring.
12708 * mdebugread.c: Use obstack_copy0, not obsavestring.
12709 * psymtab.c: Use obstack_copy0, not obsavestring.
12710 * stabsread.c: Use obstack_copy0, not obsavestring.
12711 * xcoffread.c: Use obstack_copy0, not obsavestring.
12712
12713 2013-01-21 Tom Tromey <tromey@redhat.com>
12714
12715 * dwarf2read.c (fixup_go_packaging): Save package name
12716 on objfile obstack.
12717 * gdbtypes.c (init_type): Don't copy name.
12718
12719 2013-01-21 Tom Tromey <tromey@redhat.com>
12720
12721 * dwarf2read.c (struct partial_die_info) <name, scope>: Now
12722 const.
12723 (struct attribute) <u.str>: Now const.
12724 (struct fnfieldlist) <name>: Now const.
12725 (dw2_get_file_names_reader, init_cutu_and_read_dies): Update.
12726 (partial_die_parent_scope): Make return type const.
12727 (partial_die_full_name, add_partial_symbol): Update.
12728 (dwarf2_compute_name, dwarf2_full_name, dwarf2_physname): Make
12729 'name' const.
12730 (find_file_and_directory): Make 'name' and 'comp_dir' const.
12731 (read_file_scope, read_func_scope, dwarf2_add_field)
12732 (dwarf2_add_member_fn, read_structure_type)
12733 (process_enumeration_scope, read_array_type, read_module_type)
12734 (read_base_type, read_subrange_type): Update.
12735 (dwarf2_start_symtab): Make 'name' and 'comp_dir' const.
12736 (new_symbol_full, guess_full_die_structure_name): Update.
12737 (dwarf2_canonicalize_name): Return const type. Make 'name' const.
12738 (dwarf2_name): Return const type.
12739 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make 'comp_dir'
12740 const.
12741
12742 2013-01-21 Tom Tromey <tromey@redhat.com>
12743
12744 * gdbtypes.c (init_type): Make 'name' const.
12745 * gdbtypes.h (init_type): Update.
12746
12747 2013-01-21 Tom Tromey <tromey@redhat.com>
12748
12749 * buildsym.c (patch_subfile_names): Use set_last_source_file.
12750 (start_symtab): Make 'name' and 'dirname' const. Use
12751 set_last_source_file.
12752 (restart_symtab, reset_symtab_globals): Use set_last_source_file.
12753 (last_source_file): Define. Now static.
12754 (set_last_source_file, get_last_source_file): New functions.
12755 * buildsym.h (last_source_file): Don't declare.
12756 (start_symtab): Update.
12757 (set_last_source_file, get_last_source_file): Declare.
12758 * coffread.c (complete_symtab): Use set_last_source_file.
12759 (coff_end_symtab): Likewise.
12760 (coff_symtab_read): Use set_last_source_file, get_last_source_file.
12761 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Use
12762 set_last_source_file.
12763 (process_one_symbol): Use get_last_source_file.
12764 * mdebugread.c (parse_partial_symbols): Use set_last_source_file.
12765 (psymtab_to_symtab_1): Use get_last_source_file.
12766 * xcoffread.c (process_linenos): Use get_last_source_file.
12767 (complete_symtab): Use set_last_source_file.
12768 (read_xcoff_symtab): Use set_last_source_file, get_last_source_file.
12769 (scan_xcoff_symtab): Use set_last_source_file.
12770
12771 2013-01-21 Tom Tromey <tromey@redhat.com>
12772
12773 * symtab.c (struct demangled_name_entry) <mangled>: Now const.
12774 (symbol_set_names): Remove casts. Handle field const-ness.
12775
12776 2013-01-21 Tom Tromey <tromey@redhat.com>
12777
12778 * dwarf2read.c (new_symbol_full): Remove cast.
12779 * symtab.c (symbol_set_demangled_name): Make 'name' const.
12780 * symtab.h (symbol_set_demangled_name): Update.
12781
12782 2013-01-21 Tom Tromey <tromey@redhat.com>
12783
12784 * main.c (captured_main): Call bfd_init.
12785
12786 2013-01-21 Tom Tromey <tromey@redhat.com>
12787
12788 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Don't set default ABI.
12789 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Set default ABI.
12790 * minsyms.c (install_minimal_symbols): Don't check for _Z symbols.
12791 * NEWS: Update.
12792
12793 2013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
12794
12795 * symmisc.c (maintenance_print_msymbols): Check also ST_DEV.
12796
12797 2013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
12798
12799 Fix gdb.fortran/common-block.exp crash in PIE mode.
12800 * dwarf2read.c (new_symbol_full) <DW_TAG_common_block>: Use
12801 LOC_COMMON_BLOCK.
12802 * f-valprint.c (info_common_command_for_block): Expect
12803 LOC_COMMON_BLOCK in gdb_assert.
12804 * symtab.h (struct general_symbol_info): Update comment for the
12805 common_block member.
12806 (domain_enum): Extend comment for the COMMON_BLOCK_DOMAIN member.
12807 (enum address_class): New member LOC_COMMON_BLOCK.
12808
12809 2013-01-18 David Blaikie <dblaikie@gmail.com>
12810
12811 * MAINTAINERS (Write After Approval): Add "David Blaikie".
12812
12813 2013-01-18 Tom Tromey <tromey@redhat.com>
12814
12815 PR c++/14999:
12816 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>:
12817 Call require_rvalue.
12818
12819 2013-01-18 Yao Qi <yao@codesourcery.com>
12820
12821 * dbxread.c (dbx_psymtab_to_symtab): Delete the declaration.
12822 (dbx_read_symtab): New declaration.
12823 (dbx_psymtab_to_symtab): Delete.
12824 (dbx_read_symtab): Rename from dbx_psymtab_to_symtab.
12825 Rename parameter PST to SELF. Exchanged two parameters.
12826 (start_psymtab): Caller update.
12827 * dwarf2read.c (dwarf2_psymtab_to_symtab): Delete the declaration.
12828 (dwarf2_read_symtab): New declaration.
12829 (dwarf2_psymtab_to_symtab): Delete.
12830 (dwarf2_read_symtab): Rename from dwarf2_psymtab_to_symtab.
12831 Rename parameter PST to SELF. Exchanged two parameters.
12832 (create_partial_symtab): Caller update.
12833 * mdebugread.c (mdebug_psymtab_to_symtab): Delete.
12834 (mdebug_read_symtab): Rename from mdebug_psymtab_to_symtab.
12835 Rename parameter PST to SELF. Exchanged two parameters.
12836 (parse_partial_symbols, new_psymtab): Caller update.
12837 * psympriv.h (struct partial_symtab) <read_symtab>: Exchange
12838 two parameters.
12839 * psymtab.c (psymtab_to_symtab): Caller update.
12840 * xcoffread.c (xcoff_psymtab_to_symtab): Delete.
12841 (xcoff_read_symtab): Rename from xcoff_psymtab_to_symtab.
12842 Rename parameter PST to SELF. Exchanged two parameters.
12843 (xcoff_start_psymtab): Caller update.
12844
12845 2013-01-18 Yao Qi <yao@codesourcery.com>
12846
12847 * infrun.c (proceed): Rename local variable 'oneproc' to
12848 'force_step'.
12849
12850 2013-01-17 Doug Evans <dje@google.com>
12851
12852 * dwarf2read.c (dw2_build_type_unit_groups_reader): Delete.
12853 (dw2_build_type_unit_groups): Delete. All uses updated.
12854
12855 * symtab.h (struct symbol_search): Add comment.
12856
12857 2013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
12858
12859 * symtab.c (compare_filenames_for_search): New comment for
12860 HAS_DRIVE_SPEC.
12861
12862 2013-01-17 Tom Tromey <tromey@redhat.com>
12863
12864 * cp-abi.c (cp_abi_completer): Fix typo in assignment.
12865
12866 2013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
12867
12868 * symtab.c (iterate_over_some_symtabs): New variable cleanups,
12869 initialize it by existing make_cleanup. Call new do_cleanups.
12870
12871 2013-01-17 Tom Tromey <tromey@redhat.com>
12872
12873 * cp-abi.c (cp_abi_completer): New function.
12874 (_initialize_cp_abi): Set completer for "set cp-abi".
12875
12876 2013-01-17 Tom Tromey <tromey@redhat.com>
12877
12878 * mem-break.c: Remove obsolete comment.
12879 * bfin-tdep.c (bfin_breakpoint_from_pc): Fix comment.
12880
12881 2012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
12882
12883 * jit.c (jit_reader_load_command): Interpret the jit reader name
12884 as an absolute path if it begins with a forward slash.
12885
12886 2012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
12887
12888 PR gdb/14550
12889
12890 * jit.c (finalize_symtab): Ensure that only the global block has a
12891 NULL superblock.
12892
12893 2013-01-17 Pedro Alves <palves@redhat.com>
12894
12895 * acinclude.m4: Include ../config/plugins.m4,
12896 ../config/largefile.m4 and ../config/lead-dot.m4. Add comments.
12897 * Makefile.in (aclocal_m4_deps): Update.
12898 * aclocal.m4: Renegerate.
12899
12900 2013-01-16 Doug Evans <dje@google.com>
12901
12902 * contrib/cc-with-tweaks.sh: Add references to Fission docs.
12903
12904 2013-01-16 Pedro Alves <palves@redhat.com>
12905 Tom Tromey <tromey@redhat.com>
12906
12907 PR cli/7221:
12908 * NEWS: Add "catch signal".
12909 * breakpoint.c (base_breakpoint_ops): No longer static.
12910 (bpstat_explains_signal): New function.
12911 (init_catchpoint): No longer static.
12912 (base_breakpoint_explains_signal): New function.
12913 (base_breakpoint_ops): Initialize new field.
12914 * breakpoint.h (enum bpstat_signal_value): New.
12915 (struct breakpoint_ops) <explains_signal>: New field.
12916 (bpstat_explains_signal): Remove macro, declare as function.
12917 (base_breakpoint_ops, init_catchpoint): Declare.
12918 * break-catch-sig.c: New file.
12919 * inferior.h (signal_catch_update): Declare.
12920 * infrun.c (signal_catch): New global.
12921 (handle_syscall_event): Update for change to
12922 bpstat_explains_signal.
12923 (handle_inferior_event): Likewise. Always handle random signals
12924 via bpstats.
12925 (signal_cache_update): Check signal_catch.
12926 (signal_catch_update): New function.
12927 (_initialize_infrun): Initialize signal_catch.
12928 * Makefile.in (SFILES): Add break-catch-sig.c.
12929 (COMMON_OBS): Add break-catch-sig.o.
12930
12931 2013-01-16 Tom Tromey <tromey@redhat.com>
12932
12933 * breakpoint.c (print_one_catch_fork, print_one_catch_vfork)
12934 (print_one_catch_solib, print_one_catch_syscall)
12935 (print_one_catch_exec, print_one_exception_catchpoint): Emit
12936 "catch-type".
12937
12938 2013-01-16 Yao Qi <yao@codesourcery.com>
12939
12940 * printcmd.c (current_display_number): Make it static.
12941
12942 2013-01-16 Yao Qi <yao@codesourcery.com>
12943
12944 * infcmd.c (step_once): Don't check '!single_inst' as it was
12945 checked before.
12946
12947 2013-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
12948
12949 * dwarf2read.c (psymtab_include_file_name): Extend the function comment.
12950
12951 2013-01-14 Tom Tromey <tromey@redhat.com>
12952
12953 * cli/cli-decode.c (add_setshow_string_noescape_cmd): Return the
12954 set command.
12955 * command.h (add_setshow_string_noescape_cmd): Update.
12956 * corefile.c (set_gnutarget_command): Remove trailing whitespace.
12957 (complete_set_gnutarget): New function.
12958 (_initialize_core): Set the "set gnutarget" completer.
12959
12960 2013-01-14 Tom Tromey <tromey@redhat.com>
12961
12962 PR symtab/14442:
12963 * c-typeprint.c (cp_type_print_method_args): Handle 'restrict'.
12964 (c_type_print_modifier): Likewise.
12965 * dwarf2read.c (read_tag_restrict_type): New function.
12966 (read_type_die_1): Handle DW_TAG_restrict_type.
12967 * gdbtypes.c (make_restrict_type): New function.
12968 (recursive_dump_type): Handle TYPE_RESTRICT.
12969 * gdbtypes.h (enum type_flag_values): Renumber.
12970 (enum type_instance_flag_value): Add
12971 TYPE_INSTANCE_FLAG_RESTRICT.
12972 (TYPE_RESTRICT): New macro.
12973 (make_restrict_type): Declare.
12974
12975 2013-01-14 Tom Tromey <tromey@redhat.com>
12976
12977 PR symtab/14931:
12978 * psymtab.c (struct psymtab_state): New.
12979 (discard_psymtabs_upto, make_cleanup_discard_psymtabs): New
12980 functions.
12981 * psympriv.h (make_cleanup_discard_psymtabs): Declare.
12982 * dwarf2read.c (dwarf2_build_psymtabs): Catch exceptions.
12983
12984 2013-01-14 Richard Sharman <richard_sharman@mitel.com>
12985 Pedro Alves <palves@redhat.com>
12986
12987 PR remote/14786
12988
12989 * remote.c (remote_threads_info): Make a copy of the reply from
12990 qfThreadInfo and use that instead of rs->buf.
12991
12992 2013-01-14 Yao Qi <yao@codesourcery.com>
12993
12994 * dbxread.c (dbx_psymtab_to_symtab_1): Don't check PST is NULL.
12995 (dbx_psymtab_to_symtab): Likewise.
12996 * dwarf2read.c (dwarf2_psymtab_to_symtab): Likewise.
12997 * mdebugread.c (mdebug_psymtab_to_symtab): Likewise.
12998 * xcoffread.c (xcoff_psymtab_to_symtab_1): Likewise.
12999
13000 2013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
13001
13002 * parse.c (parse_exp_in_context): New variable inner_chain. Call
13003 make_cleanup_restore_current_language. Call set_language. Move
13004 OLD_CHAIN and INNER_CHAIN cleanups.
13005 * utils.c (do_restore_current_language)
13006 (make_cleanup_restore_current_language): New functions.
13007 * utils.h (make_cleanup_restore_current_language): New declaration.
13008
13009 2013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
13010
13011 * source.c (symtab_to_fullname): Apply rewrite_source_path also for
13012 non-existing files.
13013
13014 * source.c (symtab_to_fullname): Do not prepend DIRNAME for
13015 non-existing files if FILENAME is already absolute.
13016
13017 2013-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
13018
13019 * macrocmd.c (macro_inform_no_debuginfo): Use puts_filtered instead of
13020 fputs_filtered. Append trailing newline.
13021
13022 2013-01-11 Yao Qi <yao@codesourcery.com>
13023 Stan Shebs <stan@codesourcery.com>
13024
13025 * psymtab.c (init_psymbol_list): Clarify the comment.
13026
13027 2013-01-11 Yao Qi <yao@codesourcery.com>
13028
13029 * breakpoint.c (print_one_breakpoint_location): Remove dead code.
13030 (update_dprintf_command_list): Assert that 'printf_line' is
13031 non-null. Remove condition check.
13032
13033 2013-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
13034
13035 Code cleanup.
13036 * psymtab.c (psymtab_to_fullname, psymtab_to_fullname): Make the return
13037 type const char *.
13038 * tui/tui-source.c (tui_source_is_displayed): Make the parameter fname
13039 const char *.
13040 * tui/tui-source.h (tui_source_is_displayed): Likewise.
13041
13042 2013-01-09 Anthony Green <green@moxielogic.com>
13043
13044 * cp-abi.c (cplus_print_vtable): Don't return value from void
13045 function.
13046 * ada-lang.c (re_set_catch_assert): Ditto.
13047
13048 2013-01-09 Doug Evans <dje@google.com>
13049
13050 * symfile.h (quick_symbol_functions): Delete member
13051 pre_expand_symtabs_matching. All uses removed.
13052 * dwarf2read.c (dw2_lookup_symbol): Implement.
13053 (dw2_do_expand_symtabs_matching): Delete.
13054 (dw2_pre_expand_symtabs_matching): Delete.
13055 (struct dw2_symtab_iterator): New type.
13056 (dw2_symtab_iter_init, dw2_symtab_iter_next): New functions.
13057 (dw2_expand_symtabs_for_function): Rewrite.
13058 (dwarf2_gdb_index_functions): Update.
13059 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Delete.
13060 (psym_functions): Update.
13061
13062 2013-01-09 Tom Tromey <tromey@redhat.com>
13063
13064 * config/pa/hpux.mh (NATDEPFILES): Remove somread.o.
13065 * configure: Rebuild.
13066 * configure.ac: Add somread.o to the build if BFD has SOM
13067 support.
13068 * somread.c: Include som/aout.h, not syms.h.
13069 (som_symtab_read): Use som_external_symbol_dictionary_record.
13070 Unpack records manually.
13071 (_initialize_somread): Declare.
13072
13073 2012-01-08 Mike Frysinger <vapier@gentoo.org>
13074
13075 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx) [__x86_64__]:
13076 Cast return_address to 64bits.
13077
13078 2013-01-08 Hui Zhu <hui_zhu@mentor.com>
13079
13080 * printcmd.c: Remove define of function output_command.
13081 * tracepoint.c: Remove extern of function output_command.
13082 * valprint.h: (output_command): New extern.
13083
13084 2013-01-07 Tom Tromey <tromey@redhat.com>
13085
13086 * objc-lang.c (objc_emit_char, objc_printchar, objc_printstr):
13087 Remove.
13088 (objc_language_defn): Use c_printchar, c_printstr,
13089 c_emit_char.
13090
13091 2013-01-07 Tom Tromey <tromey@redhat.com>
13092
13093 PR cli/7719:
13094 * NEWS: Update.
13095 * ada-valprint.c (printstr, print_field_values): Remove
13096 "inspect_it" code.
13097 * cp-valprint.c (cp_print_value_fields): Remove "inspect_it"
13098 code.
13099 * jv-valprint.c (java_print_value_fields): Remove "inspect_it"
13100 code.
13101 * m2-lang.c (m2_printstr): Remove "inspect_it" code.
13102 * main.c (captured_main): Remove "epoch" argument.
13103 * objc-lang.c (objc_printstr): Remove "inspect_it" code.
13104 * p-lang.c (pascal_printstr): Remove "inspect_it" code.
13105 * p-valprint.c (pascal_object_print_value_fields): Remove
13106 "inspect_it" code.
13107 * printcmd.c (print_command_1): Remove 'inspect' argument.
13108 (print_command, call_command): Update.
13109 (inspect_command): Remove.
13110 (_initialize_printcmd): Make "inspect" an alias for "print".
13111 * top.c (epoch_interface): Remove.
13112 * top.h (epoch_interface): Remove.
13113 * valprint.c (user_print_options): Update.
13114 (print_converted_chars_to_obstack): Remove "inspect_it" code.
13115 * valprint.h (struct value_print_options) <inspect_it>: Remove
13116 field.
13117
13118 2013-01-04 Tom Tromey <tromey@redhat.com>
13119
13120 * valprint.h (read_string): Add 'extern'.
13121
13122 2013-01-07 Joel Brobecker <brobecker@adacore.com>
13123
13124 * darwin-nat.c: Fix typo in TASK_DYLD_INFO_COUNT macro test
13125 used to decide whether to define darwin_read_dyld_info or not.
13126
13127 2013-01-03 Pierre Muller <muller@sourceware.org>
13128
13129 * main.c (relocate_gdb_directory): Avoid calling stat function
13130 if DIR is empty.
13131
13132 2013-01-03 Yao Qi <yao@codesourcery.com>
13133
13134 * psymtab.c (fixup_psymbol_section): Update declaration.
13135 (fixup_psymbol_section): Remove code returning value.
13136
13137 2013-01-03 Yao Qi <yao@codesourcery.com>
13138
13139 * symtab.h: Remove some out of date comments.
13140 (enum exception_event_kind): Move it ...
13141 * breakpoint.c: ... here.
13142
13143 2013-01-02 Iain Sandoe <developer@sandoe-acoustics.co.uk>
13144
13145 PR gdb/14405
13146 * darwin-nat.c (darwin_read_dyld_info): Only build if
13147 TASK_DYLD_INFO_COUNT is defined.
13148 (darwin_xfer_partial): Call darwin_read_dyld_info only if
13149 TASK_DYLD_INFO_COUNT is defined.
13150
13151 2013-01-02 Tom Tromey <tromey@redhat.com>
13152
13153 * symfile.h (struct ecoff_debug_hack): Remove.
13154 * objfiles.c: Don't include mdebugread.h.
13155
13156 2013-01-02 Tom Tromey <tromey@redhat.com>
13157
13158 * config/i386/darwin.mh (NATDEPFILES): Remove machoread.o.
13159 * configure.ac: Check for Mach-O support in BFD. Update
13160 CONFIG_OBS.
13161 * configure: Rebuild.
13162
13163 2013-01-02 Tom Tromey <tromey@redhat.com>
13164
13165 * acinclude.m4 (GDB_AC_CHECK_BFD): New macro.
13166 * configure.ac: Use GDB_AC_CHECK_BFD.
13167 * configure: Rebuild.
13168
13169 2013-01-01 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
13170
13171 * MAINTAINERS: Update my email.
13172
13173 2013-01-01 Joel Brobecker <brobecker@adacore.com>
13174
13175 * cli/cli-script.h (make_cleanup_free_command_lines): Make extern.
13176
13177 2013-01-01 Joel Brobecker <brobecker@adacore.com>
13178
13179 * rs6000-nat.c (bss_data_overlap): New function.
13180 (vmap_symtab): Use it to adjust the .bss section's offset.
13181
13182 2013-01-01 Joel Brobecker <brobecker@adacore.com>
13183
13184 Update year range in copyright notice of all files.
13185
13186 2013-01-01, 13 Joel Brobecker <brobecker@adacore.com>
13187
13188 * top.c (print_gdb_version): Update copyright year.
13189
13190 For older changes see ChangeLog-2012.
13191 \f
13192 Local Variables:
13193 mode: change-log
13194 left-margin: 8
13195 fill-column: 74
13196 version-control: never
13197 coding: utf-8
13198 End: