Fix "info frame" in the outermost frame.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
782d47df
PA
12013-12-06 Pedro Alves <palves@redhat.com>
2
3 * frame.c (enum cached_copy_status): New enum.
4 (struct frame_info) <prev_pc.p>: Change type to enum
5 cached_copy_status.
6 (fprint_frame): Handle not saved and unavailable prev_pc values.
7 (frame_unwind_pc_if_available): Delete and merge contents into ...
8 (frame_unwind_pc): ... here. Handle OPTIMIZED_OUT_ERROR. Adjust
9 to use enum cached_copy_status.
10 (frame_unwind_caller_pc_if_available): Delete.
11 (create_new_frame): Adjust.
12 * frame.h (frame_unwind_caller_pc_if_available): Delete
13 declaration.
14 * stack.c (frame_info): Use frame_unwind_caller_pc instead of
15 frame_unwind_caller_pc_if_available, and handle
16 NOT_AVAILABLE_ERROR and OPTIMIZED_OUT_ERROR errors.
17 * valprint.c (val_print_optimized_out): Use val_print_not_saved.
18 (val_print_not_saved): New function.
19 * valprint.h (val_print_not_saved): Declare.
20
710409a2
PA
212013-12-06 Andrew Burgess <aburgess@broadcom.com>
22 Pedro Alves <palves@redhat.com>
23
24 * exceptions.h (errors): Add OPTIMIZED_OUT_ERROR.
25 * dwarf2loc.c (write_pieced_value): Throw OPTIMIZED_OUT_ERROR.
26 * frame.c (frame_unwind_register): Throw OPTIMIZED_OUT_ERROR.
27 * spu-tdep.c (spu_software_single_step): Throw
28 OPTIMIZED_OUT_ERROR.
29 * valops.c (value_assign): Throw OPTIMIZED_OUT_ERROR.
30
7580e917
TT
312013-12-06 Tom Tromey <tromey@redhat.com>
32
33 * objfiles.c (free_objfile): Update comment.
34
53e0e56d
TT
352013-12-06 Tom Tromey <tromey@redhat.com>
36
37 * objfiles.h (objfile_to_front): Remove.
38 * objfiles.c (objfile_to_front): Remove.
39
830f7a41
TT
402013-12-06 Tom Tromey <tromey@redhat.com>
41
42 * minsyms.c (get_symbol_leading_char): Remove unnecessary
43 declaration.
44
e1b06ae2
TT
452013-12-06 Tom Tromey <tromey@redhat.com>
46
47 * psympriv.h (struct partial_symtab) <user>: Move earlier.
48
2b69941d
TT
492013-12-06 Tom Tromey <tromey@redhat.com>
50
51 * cli/cli-cmds.c (edit_command): Use paddress, not hex_string.
52 (list_command): Likewise.
53
bf121224
TT
542013-12-06 Tom Tromey <tromey@redhat.com>
55
56 * psymtab.c (allocate_psymtab): Put the filename in the filename
57 bcache.
58
8e96694e
TT
592013-12-06 Tom Tromey <tromey@redhat.com>
60
61 * buildsym.c (end_symtab_from_static_block): Use obstack_copy0.
62 * symtab.h (struct symtab) <dirname>: Now const.
63
21ea9eec
TT
642013-12-06 Tom Tromey <tromey@redhat.com>
65
66 * symfile.c (allocate_symtab): Remove cast.
67 * symtab.h (struct symtab) <filename>: Now const.
68
37fbcad0
TT
692013-12-06 Tom Tromey <tromey@redhat.com>
70
71 * break-catch-throw.c (fetch_probe_arguments): Use
72 get_probe_argument_count and evaluate_probe_argument.
73 * elfread.c (elf_get_probe_argument_count)
74 (elf_can_evaluate_probe_arguments, elf_evaluate_probe_argument)
75 (elf_compile_to_ax): Remove.
76 (elf_probe_fns): Update.
77 * probe.c (get_probe_argument_count, can_evaluate_probe_arguments)
78 (evaluate_probe_argument): Call method on probe, not via sym
79 functions.
80 * stap-probe.c (compute_probe_arg): Use get_probe_argument_count,
81 evaluate_probe_argument.
82 (compile_probe_arg): Use get_probe_argument_count. Call method on
83 probe, not via sym functions.
84 * symfile-debug.c (debug_sym_get_probe_argument_count)
85 (debug_can_evaluate_probe_arguments)
86 (debug_sym_evaluate_probe_argument, debug_sym_compile_to_ax):
87 Remove.
88 (debug_sym_probe_fns): Remove.
89 * symfile.h (struct sym_probe_fns) <sym_get_probe_argument_count,
90 can_evaluate_probe_arguments, sym_evaluate_probe_argument,
91 sym_compile_to_ax>: Remove fields.
92
8662d513
PM
932013-12-06 Pierre Muller <muller@sourceware.org>
94
95 Fix completion for pascal language.
96 * p-exp.y (exp : field_exp name): Do not call mark_struct_expression.
97 (exp : field_exp name COMPLETE): New rule.
98 (exp : SIZEOF): Set correct current_type.
99 (last_was_structop): Remove static variable.
100 (yylex): Remove saw_structop local variable.
101 Adapt code to removal of variables above.
102
da361ebd
JB
1032013-12-06 Joel Brobecker <brobecker@adacore.com>
104
105 * frame.c (get_prev_frame_1): Delete variable "this_id".
106 Replace its use by a call to get_frame_id.
107
6ed1ff02
AG
1082013-12-05 Anthony Green <green@moxielogic.com>
109
110 * moxie-tdep.c (moxie_software_single_step): New function.
111 (INST2OFFSET): New helper macro.
112 (moxie_gdbarch_init): Call set_gdbarch_software_single_step.
113 (moxie_process_readu): Move this up in the file.
114
39d7494a 1152013-12-05 Doug Evans <xdje42@gmail.com>
c47cf547
DE
116
117 * auto-load.c (load_auto_scripts_for_objfile): Add some comments.
118
170d82c9
JB
1192013-12-05 Joel Brobecker <brobecker@adacore.com>
120 Tristan Gingold <gingold@adacore.com>
121
122 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
123 Accept version 2. Ignore operations using opcode 6.
124
a5e619ec
JB
1252013-12-05 Joel Brobecker <brobecker@adacore.com>
126
127 * ada-lex.l (find_dot_all): Fix coding style violations.
128
ca8941bb
WT
1292013-12-03 Walfred Tedeschi <walfred.tedeschi@intel.com>
130
131 * NEWS: Add section for Intel(R) Architecture Instructions
132 Extesions mentioning MPX.
133
7fb1b8b1
JB
1342013-12-03 Joel Brobecker <brobecker@adacore.com>
135
136 * ada-lex.l (find_dot_all): Use strncasecmp instead of strncmp.
137
849f2b52
JB
1382013-12-03 Joel Brobecker <brobecker@adacore.com>
139
140 * ada-lang.c (create_excep_cond_exprs): Force EXP to NULL
141 when parse_exp_1 threw an error. Add comment.
142
4e35e808
JB
1432013-12-03 Joel Brobecker <brobecker@adacore.com>
144
145 * NEWS: Mention "-list-features" in the entry documenting
146 the support for the "--language" option.
147
caf26be9
SB
1482013-12-03 Tom Tromey <tromey@redhat.com>
149 Jan Kratochvil <jan.kratochvil@redhat.com>
150 Doug Evans <dje@google.com>
151 Samuel Bronson <naesten@gmail.com>
152
153 Bring back gdb-add-index as a contrib script.
154 * contrib/gdb-add-index.sh: New file.
155 * NEWS: Note the addition.
156
34a4fb3a
SB
1572013-12-03 Samuel Bronson <naesten@gmail.com>
158
159 * MAINTAINERS (Write After Approval): Add myself to the list.
160
688981c9
JB
1612013-12-03 Joel Brobecker <brobecker@adacore.com>
162
163 * mi/mi-main.c (mi_cmd_list_features): Remove "ada-exceptions".
164
c1244769
JB
1652013-12-03 Joel Brobecker <brobecker@adacore.com>
166
167 * mi/mi-main.c: Remove trailing spaces throughout.
168
2ea126fa
JB
1692013-12-03 Pedro Alves <palves@redhat.com>
170 Joel Brobecker <brobecker@adacore.com>
171
172 * exceptions.h (enum_errors) <UNDEFINED_COMMAND_ERROR>: New enum.
173 * mi/mi-parse.c (mi_parse): Throw UNDEFINED_COMMAND_ERROR instead
174 of a regular error when the GDB/MI command does not exist.
175 * mi/mi-main.c (mi_cmd_list_features): Add
176 "undefined-command-error-code".
177 (mi_print_exception): Print an "undefined-command"
178 error code if EXCEPTION.ERROR is UNDEFINED_COMMAND_ERROR.
179 * NEWS: Add entry documenting the new "code" variable in
180 "^error" result records.
181
6b7cbff1
JB
1822013-12-03 Joel Brobecker <brobecker@adacore.com>
183
184 * mi/mi-cmds.h (mi_cmd_info_gdb_mi_command): Declare.
185 * mi/mi-cmd-info.c (mi_cmd_info_gdb_mi_command): New function.
186 * mi/mi-cmds.c (mi_cmds): Add -info-gdb-mi-command command.
187 * mi/mi-main.c (mi_cmd_list_features): Add "info-gdb-mi-command"
188 field to output of "-list-features".
189
190 * NEWS: Add entry for new -info-gdb-mi-command.
191
04affae3
JK
1922013-12-02 Doug Evans <dje@google.com>
193 Jan Kratochvil <jan.kratochvil@redhat.com>
194
195 * objfiles.c (allocate_objfile): Save original_name as an absolute
196 path.
197 * objfiles.h (struct objfile): Expand comment on original_name.
198 * source.c (openp): Call gdb_abspath.
199 * utils.c (gdb_abspath): New function.
200 * utils.h (gdb_abspath): Declare.
201
aee4bf85
PA
2022013-12-02 Pedro Alves <palves@redhat.com>
203
204 * dcache.c (dcache_read_line): Use target_read_raw_memory.
205 * target.c (target_read_raw_memory): New function.
206 (target_read_stack, target_write_memory, target_write_raw_memory):
207 Update comment.
208 (target_read_code): Add comment.
209 * target.h (target_read_raw_memory): Declare.
210
840207d8
PA
2112013-12-02 Pedro Alves <palves@redhat.com>
212
213 * ctf.c (ctf_start): Use S_IRGRP, S_IXGRP, S_IXOTH
214 unconditionally.
215
0fdf84ca
PA
2162013-12-02 Pedro Alves <pedro@codesourcery.com>
217 Maciej W. Rozycki <macro@codesourcery.com>
218
219 * remote.c (putpkt_for_catch_errors): Remove function.
220 (remote_kill): Handle TARGET_CLOSE_ERROR from the kill packet
221 gracefully.
222
62972e0b
YQ
2232013-12-02 Pedro Alves <palves@redhat.com>
224
225 PR remote/15974
226 * remote-notif.c (handle_notification): Return early if no
227 notification is found.
228
f9b0da3d
JB
2292013-12-02 Joel Brobecker <brobecker@adacore.com>
230
231 * common/filestuff.c (fdwalk): Add "defined(RLIMIT_NOFILE)"
232 preprocessor check.
233
2dd4d422
JB
2342013-12-02 Joel Brobecker <brobecker@adacore.com>
235
236 * Makefile.in (HFILES_NO_SRCDIR): Remove "common/gdb_dirent.h".
237
e72eff80
JB
2382013-12-02 Joel Brobecker <brobecker@adacore.com>
239
240 * Makefile.in (HFILES_NO_SRCDIR): Remove "common/gdb_stat.h".
241 * ctf.c (ctf_start): Remove obsolete comment.
242
844ad005
JB
2432013-12-02 Joel Brobecker <brobecker@adacore.com>
244
245 * Makefile.in (HFILES_NO_SRCDIR): Remove "common/gdb_string.h".
246
5b2bf947
DE
2472013-11-30 Doug Evans <xdje42@gmail.com>
248
249 * auto-load.h (script_language): New members name, auto_load_enabled.
250 Add missing comments on struct members.
251 (auto_load_objfile_script): Delete.
252 * auto-load.c: #include "cli/cli-cmds.h".
253 (auto_load_gdb_scripts_enabled): New function.
254 (script_language_gdb): Update, add new members.
255 (source_gdb_script_for_objfile): Simplify, auto-load safe-checking
256 and call to maybe_add_script moved to caller.
257 (auto_load_objfile_script_1): Auto-load safe-checking and
258 call to maybe_add_script moved here.
259 (auto_load_objfile_script): Make static. Early exit if support for
260 scripting language hasn't been compiled in, or auto-loading has been
261 disabled.
262 (source_section_scripts): Argument "source_name" renamed to
263 "section_name". All uses updated. Replace uses of AUTO_SECTION_NAME
264 with section_name. Skip loading script if support for scripting
265 language hasn't been compiled in, or auto-loading has been disabled.
266 Call language->source_script_for_objfile instead of calling
267 source_python_script_for_objfile directly.
268 (load_auto_scripts_for_objfile): Update.
269 * python/py-auto-load.c: Delete #include "cli/cli-cmds.h".
270 (gdbpy_load_auto_script_for_objfile): Delete.
271 (auto_load_python_scripts_enabled): New function.
272 (script_language_python): Update, add new members.
273 (gdbpy_script_language_defn): New function.
274 * python/python.h (gdbpy_load_auto_scripts_for_objfile): Delete.
275 (gdbpy_script_language_defn): Declare.
276
277 * auto-load.c (AUTO_SECTION_NAME): Moved here and renamed from
278 py-auto-load.c, GDBPY_AUTO_SECTION_NAME.
279 (source_section_scripts): Moved here from py-auto-load.c.
280 (auto_load_section_scripts): Ditto.
281 * python/py-auto-load.c (GDBPY_AUTO_SECTION_NAME): Moved to
282 auto-load.c, renamed AUTO_SECTION_NAME.
283 (source_section_scripts, auto_load_section_scripts): Moved to
284 auto-load.c.
285
d9c43928
YQ
2862013-11-30 Yao Qi <yao@codesourcery.com>
287
288 * remote.c (getpkt_or_notif_sane_1): Fix typo "checksm".
289
e7b12392
SDJ
2902013-11-29 Sergio Durigan Junior <sergiodj@redhat.com>
291
292 * gdbarch.sh: Remove include of "gdb_string.h", replace by
293 <string.h>.
294
256458bc
DE
2952013-11-29 Doug Evans <xdje42@gmail.com>
296
7b2d3abf
DE
297 * python/py-auto-load.c (source_section_scripts): Move comment to
298 more relevant location.
299
256458bc
DE
300 Whitespace cleanup.
301 * python/py-breakpoint.c: Remove trailing whitespace.
302 * python/py-cmd.c: Ditto.
303 * python/py-evts.c: Ditto.
304 * python/py-finishbreakpoint.c: Ditto.
305 * python/py-frame.c: Ditto.
306 * python/py-function.c: Ditto.
307 * python/py-inferior.c: Ditto.
308 * python/py-infthread.c: Ditto.
309 * python/py-param.c: Ditto.
310 * python/py-prettyprint.c: Ditto.
311 * python/py-symbol.c: Ditto.
312 * python/py-type.c: Ditto.
313 * python/py-utils.c: Ditto.
314 * python/py-value.c: Ditto.
315 * python/python-internal.h: Ditto.
316 * python/python.c: Ditto.
317
20e1ca3b
PA
3182013-11-29 Pedro Alves <palves@redhat.com>
319
320 * unwind_stop_reasons.def (UNWIND_NULL_ID): Update comment.
321
8b4f3082
PA
3222013-11-29 Pedro Alves <palves@redhat.com>
323
324 * breakpoint.c (build_target_condition_list): Release previous
325 conditions.
326 (build_target_command_list): Release previous commands.
327 (bp_location_dtor): Release target conditions and commands.
328 * remote.c (remote_add_target_side_condition): Don't release
329 conditions.
330 (remote_add_target_side_commands): Don't release commands.
331
9f713294
YQ
3322013-11-29 Yao Qi <yao@codesourcery.com>
333 Pedro Alves <palves@redhat.com>
334
335 * dcache.c (dcache_read_line): Use current_target.beneath
336 instead of &current_target.
337 * target.c (memory_xfer_partial_1): Factor code out to ...
338 (raw_memory_xfer_partial): ... it. New function.
339 (target_xfer_partial): Call raw_memory_xfer_partial if OBJECT
340 is TARGET_OBJECT_RAW_MEMORY.
341
4cb0213d
DE
3422013-11-28 Doug Evans <xdje42@gmail.com>
343
344 * breakpoint.h (gdbpy_breakpoint_object): Renamed from
345 breakpoint_object. All uses updated.
346 * python/python-internal.h (gdbpy_breakpoint_object): Renamed from
347 breakpoint_object. All uses updated.
348 * python.c (*): All uses of breakpoint_object updated.
349 * python.h (*): All uses of breakpoint_object updated.
350 * python/py-breakpoint.c (*): All uses of breakpoint_object updated.
351 * python/py-finishbreakpoint.c (*): Ditto.
352
d344e670
DE
3532013-11-28 Doug Evans <xdje42@gmail.com>
354
d729aae0 355 * configure.ac: Add comments delineating libpython and libmcheck.
d344e670
DE
356 * configure: Regenerate.
357
eebc056c
AB
3582013-11-28 Andrew Burgess <aburgess@broadcom.com>
359 Pedro Alves <palves@redhat.com>
360
361 * valprint.c (value_check_printable): If the value is entirely
362 unavailable, print a single "<unavailable>" instead of printing
363 all subfields.
364
a7300869
PA
3652013-11-28 Pedro Alves <palves@redhat.com>
366
367 * frame.c (get_prev_frame_1) <stop_reason != UNWIND_NO_REASON>:
368 Add "set debug frame" output.
369 (frame_stop_reason_symbol_string): New function.
370
50fd528a
PA
3712013-11-28 Pedro Alves <palves@redhat.com>
372
373 * frame-unwind.c (default_frame_unwind_stop_reason): Return
374 UNWIND_OUTERMOST if the frame's ID is outer_frame_id.
375 * frame.c (get_prev_frame_1): Remove outer_frame_id check.
376
5de51581
PA
3772013-11-28 Pedro Alves <palves@redhat.com>
378
379 * frame.c (get_prev_frame_1): If the frame id is outer_frame_id,
380 set the unwind stop reason to UNWIND_OUTERMOST, not
381 UNWIND_NULL_ID. Remove explicit check for sentinel frame.
382
739cb10c
PA
3832013-11-28 Pedro Alves <palves@redhat.com>
384
385 * frame.c (frame_unwind_register): Say the register was "not
386 saved" instead of "optimized out".
387
514c0aa6 3882013-11-27 Steffen Sledz <sledz@dresearch-fe.de>
92a021de 389
514c0aa6 390 PR 16152
92a021de 391 * configure: Rebuild.
514c0aa6 392 * configure.ac: Tighten cygwin detection check.
92a021de 393
908fa2aa
PA
3942013-11-27 Pedro Alves <palves@redhat.com>
395
396 * frame-unwind.c (frame_unwind_got_optimized): Use the type of the
397 register in the previous frame's arch.
398
6bd273ae
PA
3992013-11-27 Pedro Alves <palves@redhat.com>
400
401 * frame-unwind.c (frame_unwind_got_optimized): Return
402 an lval_register value instead of a not_lval value.
403
f6c01fc5
AB
4042013-11-27 Andrew Burgess <aburgess@broadcom.com>
405
406 * frame.c: Include "valprint.h".
407 (frame_unwind_register_value): Use value_optimized_out.
408 * value.c (value_fetch_lazy): Likewise.
409
4f14910f
AB
4102013-11-26 Andrew Burgess <aburgess@broadcom.com>
411
412 * value.c (allocate_optimized_out_value): Mark value as non-lazy.
413
15859968
TT
4142013-11-26 Tom Tromey <tromey@redhat.com>
415
416 * dwarf2-frame.c (dwarf2_frame_cache): Revert patch from
417 2013-11-22.
418
244ec0da
WT
4192013-11-26 Walfred Tedeschi <walfred.tedeschi@intel.com>
420
421 * i386-xstate.h (I386_XSTATE_MPX): New Macro.
422 (I386_XSTATE_MPX_MASK): Makes use of I386_XSTATE_MPX.
423 (HAS_MPX): New macro.
424 (HAS_AVX): New macro.
425 (I386_XSTATE_SIZE): Uses HAS_MPX and HAS_AVX.
426
f7e3ecae
KS
4272013-11-25 Keith Seitz <keiths@redhat.com>
428
429 PR c++/14819
430 * c-exp.y (classify_inner_name): If no matching symbol was
431 found, try looking up the token as a base class.
432 Likewise if a constructor was found.
433 * cp-namespace.c (find_type_baseclass_by_name): New function.
434 * cp-support.h (find_type_baseclass_by_name): Declare.
435 * valops.c (value_struct_elt_for_reference): If we get
436 a non-static field, try to get a value based on the
437 current instance, if any.
438
283f7163
YQ
4392013-11-24 Yao Qi <yao@codesourcery.com>
440
441 * disasm.c (dis_asm_read_memory): Call target_read_code
442 instead of target_read_memory.
443
29453a14
YQ
4442013-11-24 Yao Qi <yao@codesourcery.com>
445
446 * NEWS: Add note on new "set code-cache" option.
447 * target-dcache.c (code_cache_enabled_1): New variable.
448 (code_cache_enabled): New variable.
449 (show_code_cache, set_code_cache): New function.
450 (code_cache_enabled_p): New function.
451 (_initialize_target_dcache): Register command.
452 * target-dcache.h (code_cache_enabled_p): Declare.
453 * target.c (memory_xfer_partial_1):Handle
454 TARGET_OBJECT_CODE_MEMORY and code_cache_enabled.
455 (target_read_code): New function.
456 * target.h (enum target_object) <TARGET_OBJECT_CODE_MEMORY>:
457 New.
458 (target_read_code): Declare.
459
0fb14d8f
YQ
4602013-11-24 Yao Qi <yao@codesourcery.com>
461
462 * target-dcache.c (stack_cache_enabled_p_1): Rename to ...
463 (stack_cache_enabled_1): ... this. New variable.
464 (stack_cache_enabled_p): Rename to ...
465 (stack_cache_enabled): ... this. New variable.
466 (set_stack_cache_enabled_p): Rename to ...
467 (set_stack_cache): ... this. Update caller.
468 (show_stack_cache_enabled_p): Rename to ...
469 (show_stack_cache): ... this. Update caller.
470 (stack_cache_enabled): Rename to ...
471 (stack_cache_enabled_p): ... this. Update caller.
472 (_initialize_target_dcache): Replace "data cache" with
473 "target memory cache".
474 * target-dcache.h (stack_cache_enabled): Remove declaration.
475 (stack_cache_enabled_p): Add declaration.
476
a12361b9
DE
4772013-11-23 Doug Evans <xdje42@gmail.com>
478
479 * python/py-frame.c (gdbpy_initialize_frames): Remove FIRST_ERROR,
480 superfluous.
481
1e1d6920
DE
4822013-11-23 Doug Evans <xdje42@gmail.com>
483
484 * python/py-frame.c (frapy_block): Fix error message text.
485
1e9c71b8
DE
4862013-11-23 Doug Evans <xdje42@gmail.com>
487
488 * cli/cli-script.c (multi_line_command_p): New function.
489 (recurse_read_control_structure, read_command_lines_1): Call it.
490 (execute_control_command): Consistently have a blank line between
491 each case.
492
f380848e
SA
4932013-11-22 Sterling Augustine <saugustine@google.com>
494
38e1f2a7 495 PR gdb/16196:
f380848e
SA
496 * valprint.c (read_string): Set new variable fetchlen based on
497 fetchlimit and size. Use it in call to partial_memory_read.
498 Update comment.
499
da2b2fdf
TT
5002013-11-22 Tom Tromey <tromey@redhat.com>
501
502 PR backtrace/16155:
503 * dwarf2-frame.c (dwarf2_frame_cache): Set undefined_retaddr if
504 the return address column is unspecified.
505
6eeee81c
TT
5062013-11-22 Tom Tromey <tromey@redhat.com>
507 Pedro Alves <palves@redhat.com>
508
509 PR backtrace/16155
510 * value.c (value_fetch_lazy): Internal error if
511 get_frame_register_value returns the same register.
512
194cca41
PA
5132013-11-22 Pedro Alves <palves@redhat.com>
514 Tom Tromey <tromey@redhat.com>
515
516 * frame.c (frame_stash_add): Now returns whether a frame with the
517 same ID was already known.
518 (compute_frame_id): New function, factored out from get_frame_id.
519 (get_frame_id): No longer lazilly compute the frame id here.
520 (get_prev_frame_if_no_cycle): New function. Detects wider stack
521 cycles.
522 (get_prev_frame_1): Use it instead of get_prev_frame_raw directly,
523 and checking for stack cycles here.
524
33f8fe58
PA
5252013-11-22 Pedro Alves <palves@redhat.com>
526
527 PR 16155
528 * frame.c (get_prev_frame_1): Do the UNWIND_SAME_ID check between
529 this frame and the new previous frame, not between this frame and
530 the next frame.
531
1ec56e88
PA
5322013-11-22 Pedro Alves <palves@redhat.com>
533
534 PR 16155
535 * dwarf2-frame.c (struct dwarf2_frame_cache)
536 <checked_tailcall_bottom, entry_cfa_sp_offset,
537 entry_cfa_sp_offset_p>: New fields.
538 (dwarf2_frame_cache): Adjust to use the new cache fields instead
539 of locals. Don't call dwarf2_tailcall_sniffer_first here.
540 (dwarf2_frame_prev_register): Call it here, but only once.
541
ca092b61
DE
5422013-11-21 Doug Evans <xdje42@gmail.com>
543
544 * gdbtypes.c: #include bcache.h, dwarf2loc.h.
545 (type_equality_entry): Move here from python/py-type.c.
546 (type_equality_entry_d): Ditto.
547 (compare_maybe_null_strings, check_types_equal): Ditto.
548 (check_types_worklist, types_deeply_equal): Ditto.
549 * gdbtypes.h (types_deeply_equal): Declare.
550 * python/py-type.c: Remove inclusion of bcache.h, dwarf2loc.h.
551 (typy_richcompare): Update.
552
7c245c24
JB
5532013-11-20 Joel Brobecker <brobecker@adacore.com>
554
555 * python/py-value.c (is_intlike): Delete.
556 (valpy_int): Replace use of CHECK_TYPEDEF and is_intlike
557 by use of is_integral_type.
558 (valpy_long): Replace use of CHECK_TYPEDEF and is_intlike
559 by use of is_integral_type and check for TYPE_CODE_PTR.
560
8986e351
TT
5612013-11-20 Tom Tromey <tromey@redhat.com>
562
563 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Remove
564 strerror module.
565 * gnulib/aclocal.m4: Update.
566 * gnulib/config.in: Update.
567 * gnulib/configure: Update.
568 * gnulib/import/Makefile.am: Update.
569 * gnulib/import/Makefile.in: Update.
570 * gnulib/import/errno.in.h: Remove.
571 * gnulib/import/intprops.h: Remove.
572 * gnulib/import/m4/errno_h.m4: Remove.
573 * gnulib/import/m4/gnulib-cache.m4: Update.
574 * gnulib/import/m4/gnulib-comp.m4: Update.
575 * gnulib/import/m4/strerror.m4: Remove.
576 * gnulib/import/m4/sys_socket_h.m4: Remove.
577 * gnulib/import/strerror-override.c: Remove.
578 * gnulib/import/strerror-override.h: Remove.
579 * gnulib/import/strerror.c: Remove.
580 * gnulib/update-gnulib.sh: Update.
581
6b1141e3
YQ
5822013-11-20 Yao Qi <yao@codesourcery.com>
583
584 * target-dcache.c (target_dcache_get_or_init): Call
585 set_address_space_data if 'dcache' is NULL.
586
60650f2e
WT
5872013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
588
589 * common/i386-gcc-cpuid.h (bit_MPX): Synchronize with gcc file.
590
09748966
WT
5912013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
592
593 * python/lib/gdb/command/bound_register.py: New file.
995c1ad9
DE
594 * data-directory/Makefile.in: Copy bond_register.py to the right path
595 to be initialized at gdb startup.
09748966 596
e43e105e
WT
5972013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
598
599 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset):
600 Add MPX registers.
601 (amd64_linux_read_description): Add initialization for MPX and
602 AVX independently.
603 * amd64-linux-tdep.c: Includes features/i386/amd64-mpx-linux.c.
604 (amd64_linux_gregset_reg_offset): Add MPX registers.
605 (amd64_linux_core_read_description): Add initialization for MPX
606 registers.
607 (_initialize_amd64_linux_tdep): Initialize MPX targets.
608 * amd64-linux-tdep.h (AMD64_LINUX_RAX_REGNUM): Set it to the last
609 register on the list.
610 (tdesc_amd64_mpx_linux) Add new target for MPX.
611 * amd64-tdep.c: Includes features/i386/amd64-mpx.c.
612 (amd64_mpx_names): MPX register names.
613 (amd64_init_abi): Add MPX register while initializing the ABI.
614 (_initialize_amd64_tdep): Initialize MPX targets.
615 * amd64-tdep.h (amd64_regnum): Add MPX registers.
616 (AMD64_NUM_REGS): Set number of registers taking MPX into account.
617
1dbcd68c
WT
6182013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
619
620 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Add MPX
621 registers on the range of registers to be read from
622 xsave buffer.
623 (i386_linux_read_description): Add case for MPX.
624 * i386-linux-tdep.c: Include features/i386/i386-mpx-linux.c.
625 (i386_linux_gregset_reg_offset): Add MPX registers.
626 (i386_linux_core_read_description): Initialize also MPX.
627 (_initialize_i386_linux_tdep): Add mpx initialization.
628 * i386-tdep.h (gdbarch_tdep): Add fields bnd0r_regnum, bnd0_regnum,
629 mpx_register_names.
630 (i386_regnum): Add MPX registers.
631 (I386_MPX_NUM_REGS): New macro.
632 (i386_bnd_regnum_p): New function.
633 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set
634 number of registers to be the number of BNDSTATUS.
635 (tdesc_i386_mpx_linux): Add description for MPX Linux registers.
636 * i386-tdep.c: Include features/i386/i386-mpx.c.
637 (i386_mpx_names): Add MPX register names array.
638 (i386_bnd_names): Add bnd pseudo register names array.
639 (i386_bndr_regnum_p): Lookup register numbers for bnd raw
640 registers.
641 (i386_bndr_regnum_p): Lookup register numbers for bnd raw registers.
642 (386_mpx_ctrl_regnum_p): Lookup register numbers for MPX control
643 registers.
644 (i386_bnd_type): New function.
645 (i386_pseudo_register_type): Use i386_bnd_type for bnd pseudo
646 register types.
647 (i386_pseudo_register_read_into_value): Add bnd case.
648 (i386_pseudo_register_write): Add bnd pseudo registers.
649 (i386_register_reggroup_p): Add MPX register to the group all.
650 (i386_validate_tdesc_p): Add MPX to the target description
651 validation.
652 (i386_pseudo_register_name): Add bnd pseudo registers.
653 (i386_gdbarch_init): Add MPX for architecture initialization.
654 (_initia_initialize_i386_tdep): Add mpx initialization.
655 * i387-tdep.c (xsave_mpx_offset): New vector for MPX offsets on
656 XSAVE buffer.
657 (XSAVE_MPX_ADDR): New macro.
658 (i387_supply_xsave): Add MPX case.
659 (i387_collect_xsave): Add MPX case.
660 * i387-tdep.h (I387_BND0R_REGNUM): New macro.
661 (I387_BNDCFGU_REGNUM): New macro.
662 (I387_NUM_MPX_REGS): New macro.
663 (I387_NUM_BND_REGS): New macro.
664 (I387_NUM_MPX_CTRL_REGS): New macro.
665 (I387_MPXEND_REGNUM): New macro.
666 * common/i386-xstate.h (I386_XSTATE_BNDREGS): New macro.
667 (I386_XSTATE_BNDCFG): Likewise.
668 (I386_XSTATE_MPX_MASK): Likewise.
669 (I386_XSTATE_ALL_MASK): New macro represents flags for all states.
670 (I386_XSTATE_BNDREGS_SIZE): New macro.
671 (I386_XSTATE_BNDCFG_SIZE): Likewise.
672 (I386_XSTATE_SIZE): Adapt for MPX.
673 (I386_XSTATE_MAX_SIZE): Likewise.
674
ccc42043
WT
6752013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
676
677 * features/i386/Makefile: Adapts for using MPX registers.
678 * features/i386/32bit-mpx.xml: New file.
679 * features/i386/64bit-mpx.xml: Likewise.
680 * features/i386/amd64-mpx-linux.c: Likewise.
681 * features/i386/amd64-mpx-linux.xml: Likewise.
682 * features/i386/amd64-mpx.c: Likewise.
683 * features/i386/amd64-mpx.xml: Likewise.
684 * features/i386/i386-mpx-linux.c: Likewise.
685 * features/i386/i386-mpx-linux.xml: Likewise.
686 * features/i386/i386-mpx.c: Likewise.
687 * features/i386/i386-mpx.xml: Likewise.
688 * regformats/i386/amd64-mpx-linux.dat: New file.
689 * regformats/i386/amd64-mpx.dat: Likewise.
690 * regformats/i386/i386-mpx-linux.dat: Likewise.
691 * regformats/i386/i386-mpx.dat: Likewise.
692
57803a3c
WT
6932013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
694
695 * target-descriptions.c (maint_print_maint_print_c_tdesc_cmd):
696 Modified logic of creating a bitfield to be in sync with
697 tdesc_gdb_type.
698
2b59118e
WN
6992013-11-20 Will Newton <will.newton@linaro.org>
700
701 * arm-tdep.c (arm_get_next_pc): Remove "Infinite loop detected"
702 error message.
703
b26dfc9a
YQ
7042013-11-20 Yao Qi <yao@codesourcery.com>
705
706 * progspace.h (struct address_space_data): Declare.
707 * target-dcache.c: Include "progspace.h".
708 (target_dache): Remove.
709 (target_dcache_aspace_key): New.
710 (target_dcache_cleanup): New function.
711 (target_dcache_init_p): Get data through
712 target_dcache_aspace_key.
713 (target_dcache_invalidate): Likewise.
714 (target_dcache_get): Likewise.
715 (target_dcache_get_or_init): Likewise.
716 (_initialize_target_dcache): Initialize
717 target_dcache_aspace_key.
718
3a8356ff
YQ
7192013-11-20 Yao Qi <yao@codesourcery.com>
720
721 * progspace.c (struct address_space): Update comments.
722 <REGISTRY_FIELDS>: New fields.
723 DEFINE_REGISTRY for address_space.
724 (new_address_space): Call address_space_alloc_data.
725 (free_address_space): Call address_space_free_data.
726 * progspace.h: Use DECLARE_REGISTRY.
727
68c765e2
YQ
7282013-11-20 Yao Qi <yao@codesourcery.com>
729
730 * Makefile.in (SFILES):Add target-dcache.c.
731 (HFILES_NO_SRCDIR): Add target-dcache.h.
732 (COMMON_OBS): Add target-dcache.o.
733 * dcache.c: Remove inclusion to "target.h". Include
734 "target-dcache.h".
735 * memattr.c: Include "target-dcache.h".
736 * top.c: Likewise.
737 * tracepoint.c: Likewise.
738 * target.c: (stack_cache_enabled_p_1): Move to
739 target-dcache.c.
740 (stack_cache_enabled_p): Likewise.
741 (set_stack_cache_enabled_p): Likewise.
742 (show_stack_cache_enabled_p): Likewise.
743 (target_dcache, target_dcache_init_p): Likewise.
744 (target_dcache_invalidate): Likewise.
745 (target_dcache_get, target_dcache_get_or_init): Likewise.
746 (memory_xfer_partial_1): Call function stack_cache_enabled.
747 (initialize_target): Move code to target-dcache.c.
748 * target.h (target_dcache_invalidate): Move to
749 target-dcache.h.
750 (target_dcache_get): Likewise.
751 * target-dcache.c: New.
752 * target-dcache.h: New.
753
f2de9785
YQ
7542013-11-20 Yao Qi <yao@codesourcery.com>
755
756 * target.c (memory_xfer_partial_1): Update 'target_dcache' if
757 it is initialized.
758
2a2f9fe4
YQ
7592013-11-20 Yao Qi <yao@codesourcery.com>
760
761 * dcache.c (last_cache): Remove.
762 (dcache_free, dcache_init): Update.
763 (dcache_update):
764 (dcache_print_line): Add parameter 'dcache'. Replace
765 'target_dcache' with 'dcache'.
766 (dcache_info): Move code to dcache_info_1. Call
767 'dcache_info_1'.
768 (dcache_info_1): New function.
769 (set_dcache_size): Call target_dcache_invalidate.
770 (set_dcache_line_size): Call target_dcache_invalidate.
771 * target.c (target_dcache_init_p): New function.
772 (target_dcache_invalidate): Check target_dcache_init_p first.
773 (target_dcache_get, target_dcache_get_or_init): New function.
774 (memory_xfer_partial_1): Adjust.
775 (initialize_target): Don't initialize 'target_dcache'.
776 * target.h (struct dcache_struct): Declare.
777 (target_dcache_get): Declare.
778
8ab91b96
YQ
7792013-11-19 Yao Qi <yao@codesourcery.com>
780
781 * varobj.c (varobj_get_type): Fix typo.
782
df7752b0
JB
7832013-11-19 Joel Brobecker <brobecker@adacore.com>
784
785 * python/py-value.c (is_intlike): Add TYPE_CODE_RANGE handling.
786
4a0a886a
JB
7872013-11-19 Joel Brobecker <brobecker@adacore.com>
788
789 * contrib/ari/gdb_ari.sh: Remove checks for "dirent.h" and
790 "stat.h".
791
53ce3c39
TT
7922013-11-18 Tom Tromey <tromey@redhat.com>
793
794 * common/gdb_stat.h: Remove.
795 * ada-lang.c: Use sys/stat.h, not gdb_stat.h.
796 * common/filestuff.c: Use sys/stat.h, not gdb_stat.h.
797 * common/linux-osdata.c: Use sys/stat.h, not gdb_stat.h.
798 * corefile.c: Use sys/stat.h, not gdb_stat.h.
799 * ctf.c: Use sys/stat.h, not gdb_stat.h.
800 * darwin-nat.c: Use sys/stat.h, not gdb_stat.h.
801 * dbxread.c: Use sys/stat.h, not gdb_stat.h.
802 * dwarf2read.c: Use sys/stat.h, not gdb_stat.h.
803 * exec.c: Use sys/stat.h, not gdb_stat.h.
804 * gdbserver/linux-low.c: Use sys/stat.h, not gdb_stat.h.
805 * gdbserver/remote-utils.c: Use sys/stat.h, not gdb_stat.h.
806 * inf-child.c: Use sys/stat.h, not gdb_stat.h.
807 * jit.c: Use sys/stat.h, not gdb_stat.h.
808 * linux-nat.c: Use sys/stat.h, not gdb_stat.h.
809 * m68klinux-nat.c: Use sys/stat.h, not gdb_stat.h.
810 * main.c: Use sys/stat.h, not gdb_stat.h.
811 * mdebugread.c: Use sys/stat.h, not gdb_stat.h.
812 * mi/mi-cmd-env.c: Use sys/stat.h, not gdb_stat.h.
813 * nto-tdep.c: Use sys/stat.h, not gdb_stat.h.
814 * objfiles.c: Use sys/stat.h, not gdb_stat.h.
815 * procfs.c: Use sys/stat.h, not gdb_stat.h.
816 * remote-fileio.c: Use sys/stat.h, not gdb_stat.h.
817 * remote-mips.c: Use sys/stat.h, not gdb_stat.h.
818 * remote.c: Use sys/stat.h, not gdb_stat.h.
819 * rs6000-nat.c: Use sys/stat.h, not gdb_stat.h.
820 * sol-thread.c: Use sys/stat.h, not gdb_stat.h.
821 * solib-spu.c: Use sys/stat.h, not gdb_stat.h.
822 * source.c: Use sys/stat.h, not gdb_stat.h.
823 * symfile.c: Use sys/stat.h, not gdb_stat.h.
824 * symmisc.c: Use sys/stat.h, not gdb_stat.h.
825 * symtab.c: Use sys/stat.h, not gdb_stat.h.
826 * top.c: Use sys/stat.h, not gdb_stat.h.
827 * xcoffread.c: Use sys/stat.h, not gdb_stat.h.
828
09607c9e
TT
8292013-11-18 Tom Tromey <tromey@redhat.com>
830
831 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
832 sys_stat.
833 * gnulib/aclocal.m4: Update.
834 * gnulib/config.in: Update.
835 * gnulib/configure: Update.
836 * gnulib/import/Makefile.am: Update.
837 * gnulib/import/Makefile.in: Update.
838 * gnulib/import/m4/gnulib-cache.m4: Update.
839 * gnulib/import/m4/gnulib-comp.m4: Update.
840 * gnulib/import/m4/sys_stat_h.m4: New.
841 * gnulib/import/m4/time_h.m4: New.
842 * gnulib/import/sys_stat.in.h: New.
843 * gnulib/import/time.in.h: New.
844
4ff70b84
TT
8452013-11-18 Tom Tromey <tromey@redhat.com>
846
847 * configure: Rebuild.
848 * configure.ac: Remove check of HAVE_SYS_TYPES_H.
849
3447c057
TT
8502013-11-18 Tom Tromey <tromey@redhat.com>
851
852 * configure: Rebuild.
853 * configure.ac: Don't check for unistd.h.
854
0080a2f6
TT
8552013-11-18 Tom Tromey <tromey@redhat.com>
856
857 * configure: Rebuild.
858 * configure.ac: Don't check for stdlib.h
859 * defs.h: Include stdlib.h unconditionally.
860
161d1bec
TT
8612013-11-18 Tom Tromey <tromey@redhat.com>
862
863 * config.in: Rebuild.
864 * configure: Rebuild.
865 * configure.ac: Don't check for stddef.h.
866 * defs.h: Unconditionally include stddef.h. Remove duplicate
867 inclusion.
868
2978b111
TT
8692013-11-18 Tom Tromey <tromey@redhat.com>
870
871 * common/common.m4 (GDB_AC_COMMON): Don't use AC_HEADER_DIRENT.
872 * common/gdb_dirent.h: Remove.
873 * common/filestuff.c: Use dirent.h.
874 * common/linux-osdata.c: Use dirent.h.
875 (NAMELEN): Define.
876 * config.in: Rebuild.
877 * configure: Rebuild.
878 * configure.ac: Don't use AC_HEADER_DIRENT.
879 * linux-fork.c: Use dirent.h
880 * linux-nat.c: Use dirent.h.
881 * nto-procfs.c: Use dirent.h.
882 * procfs.c: Use dirent.h.
883
e26b6bb0
TT
8842013-11-18 Tom Tromey <tromey@redhat.com>
885
886 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirent.
887 * gnulib/aclocal.m4: Update.
888 * gnulib/config.in: Update.
889 * gnulib/configure: Update.
890 * gnulib/import/Makefile.am: Update.
891 * gnulib/import/Makefile.in: Update.
892 * gnulib/import/dirent.in.h: New.
893 * gnulib/import/m4/dirent_h.m4: New.
894 * gnulib/import/m4/gnulib-cache.m4: Update.
895 * gnulib/import/m4/gnulib-comp.m4: Update.
896
a3d08894
TT
8972013-11-18 Tom Tromey <tromey@redhat.com>
898
899 * configure: Rebuild.
900 * common/common.m4 (GDB_AC_COMMON): Don't check for string.h or
901 strings.h.
902
0e9f083f
TT
9032013-11-18 Tom Tromey <tromey@redhat.com>
904
905 * common/gdb_string.h: Remove.
906 * aarch64-tdep.c: Use string.h, not gdb_string.h.
907 * ada-exp.y: Use string.h, not gdb_string.h.
908 * ada-lang.c: Use string.h, not gdb_string.h.
909 * ada-lex.l: Use string.h, not gdb_string.h.
910 * ada-typeprint.c: Use string.h, not gdb_string.h.
911 * ada-valprint.c: Use string.h, not gdb_string.h.
912 * aix-thread.c: Use string.h, not gdb_string.h.
913 * alpha-linux-tdep.c: Use string.h, not gdb_string.h.
914 * alpha-mdebug-tdep.c: Use string.h, not gdb_string.h.
915 * alpha-nat.c: Use string.h, not gdb_string.h.
916 * alpha-osf1-tdep.c: Use string.h, not gdb_string.h.
917 * alpha-tdep.c: Use string.h, not gdb_string.h.
918 * alphanbsd-tdep.c: Use string.h, not gdb_string.h.
919 * amd64-dicos-tdep.c: Use string.h, not gdb_string.h.
920 * amd64-linux-nat.c: Use string.h, not gdb_string.h.
921 * amd64-linux-tdep.c: Use string.h, not gdb_string.h.
922 * amd64-nat.c: Use string.h, not gdb_string.h.
923 * amd64-sol2-tdep.c: Use string.h, not gdb_string.h.
924 * amd64fbsd-tdep.c: Use string.h, not gdb_string.h.
925 * amd64obsd-tdep.c: Use string.h, not gdb_string.h.
926 * arch-utils.c: Use string.h, not gdb_string.h.
927 * arm-linux-nat.c: Use string.h, not gdb_string.h.
928 * arm-linux-tdep.c: Use string.h, not gdb_string.h.
929 * arm-tdep.c: Use string.h, not gdb_string.h.
930 * arm-wince-tdep.c: Use string.h, not gdb_string.h.
931 * armbsd-tdep.c: Use string.h, not gdb_string.h.
932 * armnbsd-nat.c: Use string.h, not gdb_string.h.
933 * armnbsd-tdep.c: Use string.h, not gdb_string.h.
934 * armobsd-tdep.c: Use string.h, not gdb_string.h.
935 * avr-tdep.c: Use string.h, not gdb_string.h.
936 * ax-gdb.c: Use string.h, not gdb_string.h.
937 * ax-general.c: Use string.h, not gdb_string.h.
938 * bcache.c: Use string.h, not gdb_string.h.
939 * bfin-tdep.c: Use string.h, not gdb_string.h.
940 * breakpoint.c: Use string.h, not gdb_string.h.
941 * build-id.c: Use string.h, not gdb_string.h.
942 * buildsym.c: Use string.h, not gdb_string.h.
943 * c-exp.y: Use string.h, not gdb_string.h.
944 * c-lang.c: Use string.h, not gdb_string.h.
945 * c-typeprint.c: Use string.h, not gdb_string.h.
946 * c-valprint.c: Use string.h, not gdb_string.h.
947 * charset.c: Use string.h, not gdb_string.h.
948 * cli-out.c: Use string.h, not gdb_string.h.
949 * cli/cli-cmds.c: Use string.h, not gdb_string.h.
950 * cli/cli-decode.c: Use string.h, not gdb_string.h.
951 * cli/cli-dump.c: Use string.h, not gdb_string.h.
952 * cli/cli-interp.c: Use string.h, not gdb_string.h.
953 * cli/cli-logging.c: Use string.h, not gdb_string.h.
954 * cli/cli-script.c: Use string.h, not gdb_string.h.
955 * cli/cli-setshow.c: Use string.h, not gdb_string.h.
956 * cli/cli-utils.c: Use string.h, not gdb_string.h.
957 * coffread.c: Use string.h, not gdb_string.h.
958 * common/common-utils.c: Use string.h, not gdb_string.h.
959 * common/filestuff.c: Use string.h, not gdb_string.h.
960 * common/linux-procfs.c: Use string.h, not gdb_string.h.
961 * common/linux-ptrace.c: Use string.h, not gdb_string.h.
962 * common/signals.c: Use string.h, not gdb_string.h.
963 * common/vec.h: Use string.h, not gdb_string.h.
964 * core-regset.c: Use string.h, not gdb_string.h.
965 * corefile.c: Use string.h, not gdb_string.h.
966 * corelow.c: Use string.h, not gdb_string.h.
967 * cp-abi.c: Use string.h, not gdb_string.h.
968 * cp-support.c: Use string.h, not gdb_string.h.
969 * cp-valprint.c: Use string.h, not gdb_string.h.
970 * cris-tdep.c: Use string.h, not gdb_string.h.
971 * d-lang.c: Use string.h, not gdb_string.h.
972 * dbxread.c: Use string.h, not gdb_string.h.
973 * dcache.c: Use string.h, not gdb_string.h.
974 * demangle.c: Use string.h, not gdb_string.h.
975 * dicos-tdep.c: Use string.h, not gdb_string.h.
976 * disasm.c: Use string.h, not gdb_string.h.
977 * doublest.c: Use string.h, not gdb_string.h.
978 * dsrec.c: Use string.h, not gdb_string.h.
979 * dummy-frame.c: Use string.h, not gdb_string.h.
980 * dwarf2-frame.c: Use string.h, not gdb_string.h.
981 * dwarf2loc.c: Use string.h, not gdb_string.h.
982 * dwarf2read.c: Use string.h, not gdb_string.h.
983 * elfread.c: Use string.h, not gdb_string.h.
984 * environ.c: Use string.h, not gdb_string.h.
985 * eval.c: Use string.h, not gdb_string.h.
986 * event-loop.c: Use string.h, not gdb_string.h.
987 * exceptions.c: Use string.h, not gdb_string.h.
988 * exec.c: Use string.h, not gdb_string.h.
989 * expprint.c: Use string.h, not gdb_string.h.
990 * f-exp.y: Use string.h, not gdb_string.h.
991 * f-lang.c: Use string.h, not gdb_string.h.
992 * f-typeprint.c: Use string.h, not gdb_string.h.
993 * f-valprint.c: Use string.h, not gdb_string.h.
994 * fbsd-nat.c: Use string.h, not gdb_string.h.
995 * findcmd.c: Use string.h, not gdb_string.h.
996 * findvar.c: Use string.h, not gdb_string.h.
997 * fork-child.c: Use string.h, not gdb_string.h.
998 * frame.c: Use string.h, not gdb_string.h.
999 * frv-linux-tdep.c: Use string.h, not gdb_string.h.
1000 * frv-tdep.c: Use string.h, not gdb_string.h.
1001 * gdb.c: Use string.h, not gdb_string.h.
1002 * gdb_bfd.c: Use string.h, not gdb_string.h.
1003 * gdbarch.c: Use string.h, not gdb_string.h.
1004 * gdbtypes.c: Use string.h, not gdb_string.h.
1005 * gnu-nat.c: Use string.h, not gdb_string.h.
1006 * gnu-v2-abi.c: Use string.h, not gdb_string.h.
1007 * gnu-v3-abi.c: Use string.h, not gdb_string.h.
1008 * go-exp.y: Use string.h, not gdb_string.h.
1009 * go-lang.c: Use string.h, not gdb_string.h.
1010 * go32-nat.c: Use string.h, not gdb_string.h.
1011 * hppa-hpux-tdep.c: Use string.h, not gdb_string.h.
1012 * hppa-linux-nat.c: Use string.h, not gdb_string.h.
1013 * hppanbsd-tdep.c: Use string.h, not gdb_string.h.
1014 * hppaobsd-tdep.c: Use string.h, not gdb_string.h.
1015 * i386-cygwin-tdep.c: Use string.h, not gdb_string.h.
1016 * i386-dicos-tdep.c: Use string.h, not gdb_string.h.
1017 * i386-linux-nat.c: Use string.h, not gdb_string.h.
1018 * i386-linux-tdep.c: Use string.h, not gdb_string.h.
1019 * i386-nto-tdep.c: Use string.h, not gdb_string.h.
1020 * i386-sol2-tdep.c: Use string.h, not gdb_string.h.
1021 * i386-tdep.c: Use string.h, not gdb_string.h.
1022 * i386bsd-tdep.c: Use string.h, not gdb_string.h.
1023 * i386gnu-nat.c: Use string.h, not gdb_string.h.
1024 * i386nbsd-tdep.c: Use string.h, not gdb_string.h.
1025 * i386obsd-tdep.c: Use string.h, not gdb_string.h.
1026 * i387-tdep.c: Use string.h, not gdb_string.h.
1027 * ia64-libunwind-tdep.c: Use string.h, not gdb_string.h.
1028 * ia64-linux-nat.c: Use string.h, not gdb_string.h.
1029 * inf-child.c: Use string.h, not gdb_string.h.
1030 * inf-ptrace.c: Use string.h, not gdb_string.h.
1031 * inf-ttrace.c: Use string.h, not gdb_string.h.
1032 * infcall.c: Use string.h, not gdb_string.h.
1033 * infcmd.c: Use string.h, not gdb_string.h.
1034 * inflow.c: Use string.h, not gdb_string.h.
1035 * infrun.c: Use string.h, not gdb_string.h.
1036 * interps.c: Use string.h, not gdb_string.h.
1037 * iq2000-tdep.c: Use string.h, not gdb_string.h.
1038 * irix5-nat.c: Use string.h, not gdb_string.h.
1039 * jv-exp.y: Use string.h, not gdb_string.h.
1040 * jv-lang.c: Use string.h, not gdb_string.h.
1041 * jv-typeprint.c: Use string.h, not gdb_string.h.
1042 * jv-valprint.c: Use string.h, not gdb_string.h.
1043 * language.c: Use string.h, not gdb_string.h.
1044 * linux-fork.c: Use string.h, not gdb_string.h.
1045 * linux-nat.c: Use string.h, not gdb_string.h.
1046 * lm32-tdep.c: Use string.h, not gdb_string.h.
1047 * m2-exp.y: Use string.h, not gdb_string.h.
1048 * m2-typeprint.c: Use string.h, not gdb_string.h.
1049 * m32c-tdep.c: Use string.h, not gdb_string.h.
1050 * m32r-linux-nat.c: Use string.h, not gdb_string.h.
1051 * m32r-linux-tdep.c: Use string.h, not gdb_string.h.
1052 * m32r-rom.c: Use string.h, not gdb_string.h.
1053 * m32r-tdep.c: Use string.h, not gdb_string.h.
1054 * m68hc11-tdep.c: Use string.h, not gdb_string.h.
1055 * m68k-tdep.c: Use string.h, not gdb_string.h.
1056 * m68kbsd-tdep.c: Use string.h, not gdb_string.h.
1057 * m68klinux-nat.c: Use string.h, not gdb_string.h.
1058 * m68klinux-tdep.c: Use string.h, not gdb_string.h.
1059 * m88k-tdep.c: Use string.h, not gdb_string.h.
1060 * macrocmd.c: Use string.h, not gdb_string.h.
1061 * main.c: Use string.h, not gdb_string.h.
1062 * mdebugread.c: Use string.h, not gdb_string.h.
1063 * mem-break.c: Use string.h, not gdb_string.h.
1064 * memattr.c: Use string.h, not gdb_string.h.
1065 * memory-map.c: Use string.h, not gdb_string.h.
1066 * mep-tdep.c: Use string.h, not gdb_string.h.
1067 * mi/mi-cmd-break.c: Use string.h, not gdb_string.h.
1068 * mi/mi-cmd-disas.c: Use string.h, not gdb_string.h.
1069 * mi/mi-cmd-env.c: Use string.h, not gdb_string.h.
1070 * mi/mi-cmd-stack.c: Use string.h, not gdb_string.h.
1071 * mi/mi-cmd-var.c: Use string.h, not gdb_string.h.
1072 * mi/mi-cmds.c: Use string.h, not gdb_string.h.
1073 * mi/mi-console.c: Use string.h, not gdb_string.h.
1074 * mi/mi-getopt.c: Use string.h, not gdb_string.h.
1075 * mi/mi-interp.c: Use string.h, not gdb_string.h.
1076 * mi/mi-main.c: Use string.h, not gdb_string.h.
1077 * mi/mi-parse.c: Use string.h, not gdb_string.h.
1078 * microblaze-rom.c: Use string.h, not gdb_string.h.
1079 * microblaze-tdep.c: Use string.h, not gdb_string.h.
1080 * mingw-hdep.c: Use string.h, not gdb_string.h.
1081 * minidebug.c: Use string.h, not gdb_string.h.
1082 * minsyms.c: Use string.h, not gdb_string.h.
1083 * mips-irix-tdep.c: Use string.h, not gdb_string.h.
1084 * mips-linux-tdep.c: Use string.h, not gdb_string.h.
1085 * mips-tdep.c: Use string.h, not gdb_string.h.
1086 * mips64obsd-tdep.c: Use string.h, not gdb_string.h.
1087 * mipsnbsd-tdep.c: Use string.h, not gdb_string.h.
1088 * mipsread.c: Use string.h, not gdb_string.h.
1089 * mn10300-linux-tdep.c: Use string.h, not gdb_string.h.
1090 * mn10300-tdep.c: Use string.h, not gdb_string.h.
1091 * monitor.c: Use string.h, not gdb_string.h.
1092 * moxie-tdep.c: Use string.h, not gdb_string.h.
1093 * mt-tdep.c: Use string.h, not gdb_string.h.
1094 * nbsd-tdep.c: Use string.h, not gdb_string.h.
1095 * nios2-linux-tdep.c: Use string.h, not gdb_string.h.
1096 * nto-procfs.c: Use string.h, not gdb_string.h.
1097 * nto-tdep.c: Use string.h, not gdb_string.h.
1098 * objc-lang.c: Use string.h, not gdb_string.h.
1099 * objfiles.c: Use string.h, not gdb_string.h.
1100 * opencl-lang.c: Use string.h, not gdb_string.h.
1101 * osabi.c: Use string.h, not gdb_string.h.
1102 * osdata.c: Use string.h, not gdb_string.h.
1103 * p-exp.y: Use string.h, not gdb_string.h.
1104 * p-lang.c: Use string.h, not gdb_string.h.
1105 * p-typeprint.c: Use string.h, not gdb_string.h.
1106 * parse.c: Use string.h, not gdb_string.h.
1107 * posix-hdep.c: Use string.h, not gdb_string.h.
1108 * ppc-linux-nat.c: Use string.h, not gdb_string.h.
1109 * ppc-sysv-tdep.c: Use string.h, not gdb_string.h.
1110 * ppcfbsd-tdep.c: Use string.h, not gdb_string.h.
1111 * ppcnbsd-tdep.c: Use string.h, not gdb_string.h.
1112 * ppcobsd-tdep.c: Use string.h, not gdb_string.h.
1113 * printcmd.c: Use string.h, not gdb_string.h.
1114 * procfs.c: Use string.h, not gdb_string.h.
1115 * prologue-value.c: Use string.h, not gdb_string.h.
1116 * python/py-auto-load.c: Use string.h, not gdb_string.h.
1117 * python/py-gdb-readline.c: Use string.h, not gdb_string.h.
1118 * ravenscar-thread.c: Use string.h, not gdb_string.h.
1119 * regcache.c: Use string.h, not gdb_string.h.
1120 * registry.c: Use string.h, not gdb_string.h.
1121 * remote-fileio.c: Use string.h, not gdb_string.h.
1122 * remote-m32r-sdi.c: Use string.h, not gdb_string.h.
1123 * remote-mips.c: Use string.h, not gdb_string.h.
1124 * remote-sim.c: Use string.h, not gdb_string.h.
1125 * remote.c: Use string.h, not gdb_string.h.
1126 * reverse.c: Use string.h, not gdb_string.h.
1127 * rs6000-aix-tdep.c: Use string.h, not gdb_string.h.
1128 * ser-base.c: Use string.h, not gdb_string.h.
1129 * ser-go32.c: Use string.h, not gdb_string.h.
1130 * ser-mingw.c: Use string.h, not gdb_string.h.
1131 * ser-pipe.c: Use string.h, not gdb_string.h.
1132 * ser-tcp.c: Use string.h, not gdb_string.h.
1133 * ser-unix.c: Use string.h, not gdb_string.h.
1134 * serial.c: Use string.h, not gdb_string.h.
1135 * sh-tdep.c: Use string.h, not gdb_string.h.
1136 * sh64-tdep.c: Use string.h, not gdb_string.h.
1137 * shnbsd-tdep.c: Use string.h, not gdb_string.h.
1138 * skip.c: Use string.h, not gdb_string.h.
1139 * sol-thread.c: Use string.h, not gdb_string.h.
1140 * solib-dsbt.c: Use string.h, not gdb_string.h.
1141 * solib-frv.c: Use string.h, not gdb_string.h.
1142 * solib-osf.c: Use string.h, not gdb_string.h.
1143 * solib-spu.c: Use string.h, not gdb_string.h.
1144 * solib-target.c: Use string.h, not gdb_string.h.
1145 * solib.c: Use string.h, not gdb_string.h.
1146 * somread.c: Use string.h, not gdb_string.h.
1147 * source.c: Use string.h, not gdb_string.h.
1148 * sparc-nat.c: Use string.h, not gdb_string.h.
1149 * sparc-sol2-tdep.c: Use string.h, not gdb_string.h.
1150 * sparc-tdep.c: Use string.h, not gdb_string.h.
1151 * sparc64-tdep.c: Use string.h, not gdb_string.h.
1152 * sparc64fbsd-tdep.c: Use string.h, not gdb_string.h.
1153 * sparc64nbsd-tdep.c: Use string.h, not gdb_string.h.
1154 * sparcnbsd-tdep.c: Use string.h, not gdb_string.h.
1155 * spu-linux-nat.c: Use string.h, not gdb_string.h.
1156 * spu-multiarch.c: Use string.h, not gdb_string.h.
1157 * spu-tdep.c: Use string.h, not gdb_string.h.
1158 * stabsread.c: Use string.h, not gdb_string.h.
1159 * stack.c: Use string.h, not gdb_string.h.
1160 * std-regs.c: Use string.h, not gdb_string.h.
1161 * symfile.c: Use string.h, not gdb_string.h.
1162 * symmisc.c: Use string.h, not gdb_string.h.
1163 * symtab.c: Use string.h, not gdb_string.h.
1164 * target.c: Use string.h, not gdb_string.h.
1165 * thread.c: Use string.h, not gdb_string.h.
1166 * tilegx-linux-nat.c: Use string.h, not gdb_string.h.
1167 * tilegx-tdep.c: Use string.h, not gdb_string.h.
1168 * top.c: Use string.h, not gdb_string.h.
1169 * tracepoint.c: Use string.h, not gdb_string.h.
1170 * tui/tui-command.c: Use string.h, not gdb_string.h.
1171 * tui/tui-data.c: Use string.h, not gdb_string.h.
1172 * tui/tui-disasm.c: Use string.h, not gdb_string.h.
1173 * tui/tui-file.c: Use string.h, not gdb_string.h.
1174 * tui/tui-layout.c: Use string.h, not gdb_string.h.
1175 * tui/tui-out.c: Use string.h, not gdb_string.h.
1176 * tui/tui-regs.c: Use string.h, not gdb_string.h.
1177 * tui/tui-source.c: Use string.h, not gdb_string.h.
1178 * tui/tui-stack.c: Use string.h, not gdb_string.h.
1179 * tui/tui-win.c: Use string.h, not gdb_string.h.
1180 * tui/tui-windata.c: Use string.h, not gdb_string.h.
1181 * tui/tui-winsource.c: Use string.h, not gdb_string.h.
1182 * typeprint.c: Use string.h, not gdb_string.h.
1183 * ui-file.c: Use string.h, not gdb_string.h.
1184 * ui-out.c: Use string.h, not gdb_string.h.
1185 * user-regs.c: Use string.h, not gdb_string.h.
1186 * utils.c: Use string.h, not gdb_string.h.
1187 * v850-tdep.c: Use string.h, not gdb_string.h.
1188 * valarith.c: Use string.h, not gdb_string.h.
1189 * valops.c: Use string.h, not gdb_string.h.
1190 * valprint.c: Use string.h, not gdb_string.h.
1191 * value.c: Use string.h, not gdb_string.h.
1192 * varobj.c: Use string.h, not gdb_string.h.
1193 * vax-tdep.c: Use string.h, not gdb_string.h.
1194 * vaxnbsd-tdep.c: Use string.h, not gdb_string.h.
1195 * vaxobsd-tdep.c: Use string.h, not gdb_string.h.
1196 * windows-nat.c: Use string.h, not gdb_string.h.
1197 * xcoffread.c: Use string.h, not gdb_string.h.
1198 * xml-support.c: Use string.h, not gdb_string.h.
1199 * xstormy16-tdep.c: Use string.h, not gdb_string.h.
1200 * xtensa-linux-nat.c: Use string.h, not gdb_string.h.
1201
63ce7108
TT
12022013-11-18 Tom Tromey <tromey@redhat.com>
1203
1204 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add strerror
1205 and strstr.
1206 * gnulib/aclocal.m4: Update.
1207 * gnulib/config.in: Update.
1208 * gnulib/configure: Update.
1209 * gnulib/import/Makefile.am: Update.
1210 * gnulib/import/Makefile.in: Update.
1211 * gnulib/import/errno.in.h: New.
1212 * gnulib/import/intprops.h: New.
1213 * gnulib/import/m4/errno_h.m4: New.
1214 * gnulib/import/m4/gnulib-cache.m4: Update.
1215 * gnulib/import/m4/gnulib-comp.m4: Update.
1216 * gnulib/import/m4/strerror.m4: New.
1217 * gnulib/import/m4/strstr.m4: New.
1218 * gnulib/import/m4/sys_socket_h.m4: New.
1219 * gnulib/import/strerror-override.c: New.
1220 * gnulib/import/strerror-override.h: New.
1221 * gnulib/import/strerror.c: New.
1222 * gnulib/import/strstr.c: New.
1223
a7c11ee1
TT
12242013-11-18 Tom Tromey <tromey@redhat.com>
1225
1226 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Split into
1227 multiple lines.
1228
d0b5971a
JM
12292013-11-18 Jose E. Marchesi <jose.marchesi@oracle.com>
1230
1231 * sparc-tdep.c (sparc_is_annulled_branch_insn): New function.
1232 * sparc-tdep.h: And its prototype.
1233
1234 * sparc64-linux-tdep.c (sparc64_linux_get_longjmp_target): New
1235 function.
1236 (sparc64_linux_init_abi): Register the get_longjmp_target hook.
1237
4b4589ad
PA
12382013-11-18 Pedro Alves <palves@redhat.com>
1239
1240 * dwarf2-frame.c (read_addr_from_reg): Remove stale comment and
1241 use unpack_pointer.
1242
422ad5c2
JB
12432013-11-18 Joel Brobecker <brobecker@adacore.com>
1244
1245 * mi/mi-main.c (mi_cmd_list_features): Add "language-options"
1246 to -list-features output.
1247
b1370418
JB
12482013-11-17 Joel Brobecker <brobecker@adacore.com>
1249
1250 * dwarf2expr.h (struct dwarf_expr_context_funcs)
1251 <read_addr_from_reg>: Renames "read_reg".
1252 * dwarf2-frame.c (read_addr_from_reg): Renames "read_reg".
1253 Adjust comment.
1254 (dwarf2_frame_ctx_funcs, execute_stack_op, dwarf2_frame_cache):
1255 Use read_addr_from_reg in place of read_reg.
1256 * dwarf2expr.c (execute_stack_op): Use read_addr_from_reg
1257 in place of read_reg.
1258 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Renames
1259 dwarf_expr_read_reg.
1260 (dwarf_expr_ctx_funcs): Replace dwarf_expr_read_reg
1261 with dwarf_expr_read_addr_from_reg.
1262 (needs_frame_read_addr_from_reg): Renames needs_frame_read_reg.
1263 (needs_frame_ctx_funcs): Replace needs_frame_read_reg with
1264 needs_frame_read_addr_from_reg.
1265
6ea71545
JK
12662013-11-15 Jan Kratochvil <jan.kratochvil@redhat.com>
1267
1268 * NEWS (Changes in GDB 7.5) (New commands) (explore): Fix typo.
1269
19a1b230
AA
12702013-11-15 Andreas Arnez <arnez@linux.vnet.ibm.com>
1271
1272 * dwarf2loc.c (chain_candidate): Prevent invoking memcpy with
1273 NULL.
1274
805e1f19
TT
12752013-11-15 Tom Tromey <tromey@redhat.com>
1276
1277 PR c++/16117:
1278 * c-exp.y (lex_one_token): Add "is_quoted_name" argument.
1279 (classify_name): Likewise. Prefer a field of "this" over a
1280 filename.
1281 (classify_inner_name, yylex): Update.
1282
0acf8b65
JB
12832013-11-15 Joel Brobecker <brobecker@adacore.com>
1284
1285 * dwarf2expr.h (struct dwarf_expr_context_funcs) <read_reg>:
1286 Extend the documentation a bit.
1287 <get_reg_value>: New field.
1288 * dwarf2loc.c (dwarf_expr_get_reg_value)
1289 (needs_frame_get_reg_value): New functions.
1290 (dwarf_expr_ctx_funcs, needs_frame_ctx_funcs): Add "get_reg_value"
1291 callback.
1292 * dwarf2-frame.c (get_reg_value): New function.
1293 (dwarf2_frame_ctx_funcs): Add "get_reg_value" callback.
1294 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_regval_type>:
1295 Use new callback to compute result_val.
1296
ef1bc9e7
AM
12972013-11-15 Alan Modra <amodra@gmail.com>
1298
1299 * ppc64-tdep.c (ppc64_plt_entry_point): Renamed from..
1300 (ppc64_desc_entry_point): ..this. Update comments here and at
1301 call points.
1302 (ppc64_standard_linkage1, ppc64_standard_linkage2,
1303 ppc64_standard_linkage3): Update comments.
1304 (ppc64_standard_linkage4, ppc64_standard_linkage5,
1305 (ppc64_standard_linkage6, ppc64_standard_linkage7): New insn
1306 patterns.
1307 (ppc64_standard_linkage4_target): New function.
1308 (ppc64_skip_trampoline_code): Skip ELFv2 patterns too.
1309 * rs6000-tdep.c (skip_prologue): Skip ELFv2 r2 setup. Correct
1310 nop match. Fix comment wrap.
1311
36fa8042
PA
13122013-11-14 Pedro Alves <palves@redhat.com>
1313
1314 * infrun.c (handle_signal_stop): Move STOP_QUIETLY,
1315 STOP_QUIETLY_REMOTE and 'stop_after_trap' handling earlier.
1316
4f5d7f63
PA
13172013-11-14 Pedro Alves <palves@redhat.com>
1318
1319 * infrun.c (struct execution_control_state)
1320 <stepped_after_stopped_by_watchpoint>: New field.
1321 (get_inferior_stop_soon): New function.
1322 (handle_inferior_event): 'stepped_after_stopped_by_watchpoint' was
1323 moved to struct execution_control_state -- adjust. Use
1324 get_inferior_stop_soon. Split TARGET_WAITKIND_STOPPED handling to
1325 new function.
1326 (handle_signal_stop): New function, factored out from
1327 handle_inferior_event.
1328
47591c29
PA
13292013-11-14 Pedro Alves <palves@redhat.com>
1330
1331 * break-catch-sig.c (signal_catchpoint_explains_signal): Adjust to
1332 return a boolean.
1333 * breakpoint.c (bpstat_explains_signal): Adjust to return a
1334 boolean.
1335 (explains_signal_watchpoint, base_breakpoint_explains_signal):
1336 Adjust to return a boolean.
1337 * breakpoint.h (enum bpstat_signal_value): Delete.
1338 (struct breakpoint_ops) <explains_signal>: New returns a boolean.
1339 (bpstat_explains_signal): Likewise.
1340 * infrun.c (handle_inferior_event) <random signal checks>:
1341 bpstat_explains_signal now returns a boolean - adjust. No longer
1342 consider hiding signals.
1343
bac7d97b
PA
13442013-11-14 Pedro Alves <palves@redhat.com>
1345
1346 * breakpoint.c (bpstat_explains_signal) <Moribund locations>:
1347 Return BPSTAT_SIGNAL_PASS instead of BPSTAT_SIGNAL_HIDE.
1348 (explains_signal_watchpoint): Return BPSTAT_SIGNAL_PASS instead of
1349 BPSTAT_SIGNAL_HIDE.
1350 (base_breakpoint_explains_signal): Return BPSTAT_SIGNAL_PASS
1351 instead of BPSTAT_SIGNAL_HIDE.
1352 * infrun.c (handle_inferior_event): Rework random signal checks.
1353
ce12b012
PA
13542013-11-14 Pedro Alves <palves@redhat.com>
1355
1356 * infrun.c (struct execution_control_state): Remove
1357 'random_signal' field.
1358 (handle_syscall_event): Use bpstat_causes_stop instead of
1359 bpstat_explains_signal. Don't set ecs->random_signal.
1360 (handle_inferior_event): New 'random_signal' local.
1361 <TARGET_WAITKIND_FORKED, TARGET_WAITKIND_VFORKED,
1362 TARGET_WAITKIND_EXECD>: Use bpstat_causes_stop instead of
1363 bpstat_explains_signal. Don't set ecs->random_signal.
1364 <TARGET_WAITKIND_STOPPED>: Adjust to use local instead of
1365 ecs->random_signal.
1366
05ba8510
PA
13672013-11-14 Pedro Alves <palves@redhat.com>
1368
1369 * infrun.c (handle_inferior_event): Move comment from the
1370 function's body to the function's description, adjusted.
1371
5c09a2c5
PA
13722013-11-14 Pedro Alves <palves@redhat.com>
1373
1374 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
1375 Handle STOP_QUIETLY_NO_SIGSTOP and STOP_QUIETLY_REMOTE here.
1376 Assert we never fall through out of the TARGET_WAITKIND_LOADED
1377 case.
1378
91822956
TT
13792013-11-14 Tom Tromey <tromey@redhat.com>
1380
1381 * python/py-linetable.c (ltpy_has_line)
1382 (ltpy_get_all_source_lines): Fix loop termination condition.
1383
403cb6b1
JB
13842013-11-14 Joel Brobecker <brobecker@adacore.com>
1385
1386 * mi/mi-parse.h (struct mi_parse) <language>: New field.
1387 * mi/mi-main.c (mi_cmd_execute): Temporarily set language to
1388 PARSE->LANGUAGE during command execution, if set.
1389 * mi/mi-parse.c: Add "language.h" #include.
1390 (mi_parse): Add parsing of "--language" command option.
1391
1392 * NEWS: Add entry mentioning the new "--language" command option.
1393
b5be8ce0
JB
13942013-11-14 Pedro Alves <palves@redhat.com>
1395 Joel Brobecker <brobecker@adacore.com>
1396
1397 * cli/cli-utils.h (extract_arg_const): Add declaration.
1398 * cli/cli-utils.c (extract_arg_const): New function.
1399 (extract_arg): Reimplement using extract_arg_const.
1400
671afef6
JB
14012013-11-14 Joel Brobecker <brobecker@adacore.com>
1402
1403 * language.h: Add "symtab.h" #include.
1404
6c1b0f7b
DE
14052013-11-13 Doug Evans <xdje42@gmail.com>
1406
1407 * breakpoint.c (bpstat_check_breakpoint_conditions): For thread
1408 specific breakpoints, don't evaluate breakpoint condition if
1409 different thread.
1410
74921315
KS
14112013-11-13 Keith Seitz <keiths@redhat.com>
1412
248ace2e 1413 PR c++/7935
74921315
KS
1414 PR c++/10541
1415 * cp-support.c (insepct_type): Add support for substituting
1416 namespace aliases, too.
1417 * dwarf2read.c (scan_partial_symbols): Add a partial symbol
1418 for DW_TAG_imported_declaration.
1419 (add_partial_symbol): Likewise.
1420 (process_die): Handle namespace aliases with
1421 read_namespace_alias.
1422 (die_needs_namespace): Add DW_TAG_imported_declaration.
1423 (read_namespace_alias): New function.
1424 (load_partial_dies): Load DW_TAG_imported_declaration, too.
1425 (new_symbol_full): Handle DW_TAG_imported_declaration.
1426
793156e6
KS
14272013-11-13 Keith Seitz <keiths@redhat.com>
1428
1429 * p-exp.y (uptok): Make first parameter const.
1430 (yylex): Make `tokstart' and `tokptr' const.
1431 Don't copy the lexer input to a temporary buffer.
1432 Make `p' const.
1433 Remove const workaround for parse_escape.
1434 Create a temporary buffer for a convenience variable instead
1435 of doing in-place modification of the input.
1436 If a match is found with a different case from the input,
1437 do not change the input at all.
1438 Use `tmp' to construct the resultant stoken instead of
1439 `tokstart'.
1440
c42bd95a
DE
14412013-11-13 Doug Evans <xdje42@gmail.com>
1442
1443 * breakpoint.c (breakpoint_cond_eval): Fix and enhance comment.
1444
93973826
JB
14452013-11-13 Joel Brobecker <brobecker@adacore.com>
1446
1447 * mi/mi-main.c (mi_cmd_list_features): Replace "info-ada-exceptions"
1448 entry with "ada-exceptions".
1449
846060df
JB
14502013-11-13 Joel Brobecker <brobecker@adacore.com>
1451
1452 * symfile.c (reread_symbols): Move call to set_objfile_per_bfd
1453 after re-initialization of OBJFILE's obstack.
1454
5efd1b2b 14552013-11-12 Doug Evans <xdje42@gmail.com>
7d4df6a4
DE
1456
1457 * breakpoint.c (bpstat_check_breakpoint_conditions): Assert
1458 bs->stop != 0 on entry. Update function comment. Simplify early
1459 exit for frame mismatch. Reindent rest of function.
1460
ee7615e1
AA
14612013-11-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
1462
1463 * objc-lang.c (uniquify_strings): Prevent invoking qsort with
1464 NULL.
1465
8943b874
DE
14662013-11-12 Doug Evans <dje@google.com>
1467
1468 Work around gold/15646.
1469 * dwarf2read.c (read_index_from_section): Update comment.
1470 (struct dw2_symtab_iterator): New member global_seen.
1471 (dw2_symtab_iter_init): Initialize it.
1472 (dw2_symtab_iter_next): Skip duplicate global symbols.
1473 (dw2_expand_symtabs_matching): Ditto.
1474
a8a9844d
JB
14752013-11-12 Joel Brobecker <brobecker@adacore.com>
1476
1477 * mi/mi-cmds.h (mi_cmd_info_ada_exceptions): Add declaration.
1478 * mi/mi-cmds.c (mi_cmds): Add entry for -info-ada-exceptions
1479 command.
1480 * mi/mi-cmd-info.c: #include "ada-lang.c" and "arch-utils.c".
1481 (mi_cmd_info_ada_exceptions): New function.
1482 * mi/mi-main.c (mi_cmd_list_features): Add "info-ada-exceptions".
1483
778865d3
JB
14842013-11-12 Joel Brobecker <brobecker@adacore.com>
1485
1486 * ada-lang.h: #include "vec.h".
1487 (struct ada_exc_info): New.
1488 (ada_exc_info): New typedef.
1489 (DEF_VEC_O(ada_exc_info)): New vector.
1490 (ada_exceptions_list): Add declaration.
1491 * ada-lang.c (ada_is_exception_sym)
1492 (ada_is_non_standard_exception_sym, compare_ada_exception_info)
1493 (sort_remove_dups_ada_exceptions_list)
1494 (ada_exc_search_name_matches, ada_add_standard_exceptions)
1495 (ada_add_exceptions_from_frame, ada_add_global_exceptions)
1496 (ada_exceptions_list_1, ada_exceptions_list)
1497 (info_exceptions_command): New function.
1498 (_initialize_ada_language): Add "info exception" command.
1499
bc79de95
PM
15002013-11-11 Phil Muldoon <pmuldoon@redhat.com>
1501
1502 PR python/15629
1503 * NEWS: Add linetable feature.
1504 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-linetable entries.
1505 * python/py-linetable.c: New file.
1506 * python/py-symtab.c (stpy_get_linetable): New function.
1507 * python/python-internal.h (symtab_to_linetable_object): Declare.
1508 (gdbpy_initialize_linetable): Ditto.
1509 * python/python.c (_initialize_python): Call
1510 gdbpy_initialize_linetable.
1511
2df4d1d5
JB
15122013-11-11 Joel Brobecker <brobecker@adacore.com>
1513
1514 * ada-lang.c (create_ada_exception_catchpoint): Enhance
1515 the documentation of fields "except_string" and "condition".
1516 * mi/mi-cmd-catch.c (mi_cmd_catch_assert): Reallocate
1517 CONDITION on the heap before passing it to
1518 create_ada_exception_catchpoint.
1519 (mi_cmd_catch_exception): Likewise for EXCEPTION_NAME and
1520 CONDITION.
1521
99c1d451
TT
15222013-11-11 Tom Tromey <tromey@redhat.com>
1523
1524 * config.in, configure: Rebuild.
1525 * configure.ac (HAVE_TKILL_SYSCALL): Check for "syscall".
1526
8ca5801b
JB
15272013-11-11 Joel Brobecker <brobecker@adacore.com>
1528
1529 * remote-sim.c (gdbsim_detach): Break declaration into
1530 shorter lines. No code change.
1531
7a06d430
EBM
15322013-11-11 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
1533
1534 * remote-sim.c (gdbsim_detach): Fix prototype.
1535
73be47f5
DE
15362013-11-08 Doug Evans <dje@google.com>
1537
1538 * dwarf2read.c (dwarf2_read_debug): Change to unsigned int.
1539 (create_debug_types_hash_table): Only print debugging messages for
1540 each TU if dwarf2-read >= 2.
1541 (process_queue): Ditto.
1542 (_initialize_dwarf2_read): Make "set debug dwarf2-read" a zuinteger.
1543 Update doc string.
1544
a18d8f10
TT
15452013-11-08 Tom Tromey <tromey@redhat.com>
1546
1547 * configure: Rebuild.
1548 * configure.ac: Remove mentions of HAVE_MULTIPLE_PROC_FDS.
1549
9467110b
TT
15502013-11-08 Tom Tromey <tromey@redhat.com>
1551
1552 * configure, config.in: Rebuild.
1553 * configure.ac: Remove unused configury.
1554
69706679
TT
15552013-11-08 Tom Tromey <tromey@redhat.com>
1556
1557 * m32c-tdep.c: Use gdb_string.h.
1558
9b4bea72
TT
15592013-11-08 Tom Tromey <tromey@redhat.com>
1560
1561 * configure, config.in: Rebuild.
1562 * configure.ac: Remove all link.h-related checks.
1563
3266f10b
TT
15642013-11-08 Tom Tromey <tromey@redhat.com>
1565
1566 * acinclude.m4: Include common.m4.
1567 * common/common.m4: New file.
1568 * configure, config.in: Rebuild.
1569 * configure.ac: Use GDB_AC_COMMON.
1570
db0fec5c
DE
15712013-11-08 Doug Evans <dje@google.com>
1572
1573 * NEWS: Mention that "set debug symtab-create" now accepts a
1574 verbosity level.
1575 * buildsym.c (end_symtab_from_static_block): Call set_symtab_primary
1576 to set the symtab's primary flag.
1577 * jit.c (finalize_symtab): Ditto.
1578 * mdebugread.c (psymtab_to_symtab_1): Ditto.
1579 * symfile.c (allocate_symtab): Only print debugging messages for
1580 symtab_create_debug levels 2 and higher.
1581 * symtab.c (symtab_create_debug): Change type to unsigned int.
1582 (set_symtab_primary): New function.
1583 (_initialize_symtab): Change "set debug symtab-create" to a
1584 zuinteger option.
1585 * symtab.h (set_symtab_primary): Declare.
1586 (symtab_create_debug): Update decl.
1587
52554a0e
TT
15882013-11-08 Tom Tromey <tromey@redhat.com>
1589
1590 * aix-thread.c (aix_thread_detach): Update.
1591 * corelow.c (core_detach): Update.
1592 * darwin-nat.c (darwin_detach): Update.
1593 * dec-thread.c (dec_thread_detach): Update.
1594 * gnu-nat.c (gnu_detach): Update.
1595 * go32-nat.c (go32_detach): Update.
1596 * inf-ptrace.c (inf_ptrace_detach): Update.
1597 * inf-ttrace.c (inf_ttrace_detach): Update.
1598 * linux-fork.c (linux_fork_detach): Update.
1599 * linux-fork.h (linux_fork_detach): Update.
1600 * linux-nat.c (linux_nat_detach): Update. Introduce "tem"
1601 local for const-correctness.
1602 * linux-thread-db.c (thread_db_detach): Update.
1603 * monitor.c (monitor_detach): Update.
1604 * nto-procfs.c (procfs_detach): Update.
1605 * procfs.c (procfs_detach): Update.
1606 * record.c (record_detach): Update.
1607 * record.h (record_detach): Update.
1608 * remote-m32r-sdi.c (m32r_detach): Update.
1609 * remote-mips.c (mips_detach): Update.
1610 * remote-sim.c (gdbsim_detach): Update.
1611 * remote.c (remote_detach_1, remote_detach)
1612 (extended_remote_detach): Update.
1613 * sol-thread.c (sol_thread_detach): Update.
1614 * target.c (target_detach): Make "args" const.
1615 (init_dummy_target): Update.
1616 * target.h (struct target_ops) <to_detach>: Make argument const.
1617 (target_detach): Likewise.
1618 * windows-nat.c (windows_detach): Update.
1619
204b5331
DE
16202013-11-07 Doug Evans <dje@google.com>
1621
1622 PR 11786
1623 * solib-svr4.c (svr4_exec_displacement): Ignore filesz, memsz, flags
1624 and align fields for PT_GNU_RELRO segments.
1625
92e32e33
PM
16262013-11-07 Phil Muldoon <pmuldoon@redhat.com>
1627
ef1bc9e7
AM
1628 PR python/15747
1629 * python/py-cmd.c: Add COMPLETE_EXPRESSION constant.
92e32e33 1630
f76c27b5
PM
16312013-11-07 Phil Muldoon <pmuldoon@redhat.com>
1632
1633 * NEWS: Document Python temporary breakpoint support.
1634 * python/py-breakpoint.c (bppy_get_temporary): New function.
1635 (bppy_init): New keyword: temporary. Parse it and set breakpoint
1636 to temporary if True.
1637
d52cd232
JM
16382013-11-07 Jose E. Marchesi <jose.marchesi@oracle.com>
1639
1640 * sparc-tdep.c (sparc_analyze_control_transfer): Assertion
1641 removed to allow analyzing unconditional branch instructions
1642 with PC-relative offsets of zero.
1643
fa4d0c40
YQ
16442013-11-07 Yao Qi <yao@codesourcery.com>
1645
1646 * mi/mi-cmd-var.c: Include "language.h".
1647 (mi_cmd_var_info_expression): Get language name from
1648 language_defn.
1649 * varobj.c (varobj_language_string): Remove.
1650 (variable_language): Remove declaration.
1651 (languages): Remove.
1652 (varobj_get_language): Change the type of return value.
1653 (variable_language): Remove.
1654 * varobj.h (enum varobj_languages): Remove.
1655 (varobj_language_string): Remove declaration.
1656 (varobj_get_language): Update declaration.
1657
6abde28f
YQ
16582013-11-07 Yao Qi <yao@codesourcery.com>
1659
1660 * language.h (struct language_defn) <la_natural_name>: New
1661 field.
1662 * ada-lang.c (ada_language_defn): Initialize field
1663 'la_natural_name'.
1664 * c-lang.c (c_language_defn): Likewise.
1665 (cplus_language_defn, asm_language_defn): Likewise.
1666 * d-lang.c (d_language_defn): Likewise.
1667 * f-lang.c (f_language_defn): Likewise.
1668 * go-lang.c (go_language_defn): Likewise.
1669 * jv-lang.c (java_language_defn): Likewise.
1670 * language.c (unknown_language_defn ): Likewise.
1671 (auto_language_defn): Likewise.
1672 * m2-lang.c (m2_language_defn): Likewise.
1673 * objc-lang.c (objc_language_defn): Likewise.
1674 * opencl-lang.c (opencl_language_defn): Likewise.
1675 * p-lang.c (pascal_language_defn): Likewise.
1676
27cd387b
YQ
16772013-11-07 Yao Qi <yao@codesourcery.com>
1678
1679 * language.c (language_str): Return const char *.
1680 (add_language): Add const to 'language_names'
1681 * language.h (struct language_defn) <la_name>: Add const.
1682 (language_str: Update declaration.
1683
6682d959
AA
16842013-11-06 Andreas Arnez <arnez@linux.vnet.ibm.com>
1685
1686 * s390-linux-nat.c (s390_read_description): Consider the TE field
1687 in the HWCAP for determining 'have_regset_tdb'.
1688
b9502d3f
WN
16892013-11-06 Will Newton <will.newton@linaro.org>
1690
1691 PR gdb/12866
1692 * dwarf2read.c (skip_one_die): Sanity check DW_AT_sibling
1693 values. (read_partial_die): Likewise.
1694
840da61a
MB
16952013-11-06 Muhammad Bilal <mbilal@codesourcery.com>
1696
1697 PR cli/16122
1698 * top.c (command_line_input): Unify interactivity tests to use
1699 input_from_terminal_p.
1700 * event-top.c (command_line_handler): Likewise.
1701
7636ccf9
YQ
17022013-11-06 Yao Qi <yao@codesourcery.com>
1703
1704 * Makefile.in (check-perf): New target.
1705
12b27276
WN
17062013-11-05 Will Newton <will.newton@linaro.org>
1707
1708 PR gdb/7670
1709 * arm-tdep.c (print_fpu_flags): Use filtered output routines.
1710 (arm_print_float_info): Likewise.
1711
67c059c2
AB
17122013-11-04 Anton Blanchard <anton@samba.org>
1713
1714 * target.c (memory_xfer_partial): Cap write to 4KB.
1715
0569175e
TSD
17162013-11-01 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
1717
1718 * breakpoint.c (create_longjmp_master_breakpoint): Allow libc
1719 probe scan even when the arch provides no get_longjmp_target.
1720
b18e90f5
PA
17212013-10-31 Pedro Alves <palves@redhat.com>
1722
1723 * infrun.c (handle_syscall_event): Don't set or clear stop_signal.
1724 (handle_inferior_event) <TARGET_WAITKIND_FORKED,
1725 TARGET_WAITKIND_VFORKED>: Don't set stop_signal to
1726 GDB_SIGNAL_TRAP, or clear it. Pass GDB_SIGNAL_0 to
1727 bpstat_explains signal, instead of GDB_SIGNAL_TRAP.
1728 <bpstat handling>: If the bpstat chain wants the signal to be
1729 hidden, then set stop_signal to GDB_SIGNAL_0 instead of
1730 GDB_SIGNAL_TRAP.
1731
638aa5a1
AB
17322013-10-31 Andrew Burgess <aburgess@broadcom.com>
1733
1734 * breakpoint.c (update_watchpoint): Update error message and add
1735 an additional error message.
1736
0e5fae36
UW
17372013-10-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1738
1739 * s390-tdep.h: Rename to...
1740 * s390-linux-tdep.h: ...here.
1741 * s390-tdep.c: Rename to...
1742 * s390-linux-tdep.c: ...here. Adjust #include.
1743 * s390-nat.c: Rename to...
1744 * s390-linux-nat.c: ...here. Adjust #include.
1745 * config/s390/s390.mh: Rename to...
1746 * config/s390/linux.mh: ...here. Reflect rename s390-nat.o ->
1747 s390-linux-nat.o.
1748 * configure.host: Reflect host rename "s390" -> "linux".
1749 * configure.tgt: Reflect rename s390-tdep.o -> s390-linux-tdep.o.
1750 * Makefile.in (ALL_TARGET_OBS): Likewise.
1751 (HFILES_NO_SRCDIR): Reflect rename s390-tdep.h ->
1752 s390-linux-tdep.h.
1753 (ALLDEPFILES): Reflect rename of .c files.
1754
34201ae3
UW
17552013-10-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1756
1757 * s390-nat.c: Whitespace cleanup.
1758 * s390-tdep.c: Likewise.
1759 * s390-tdep.h: Remove empty line at end of file.
1760
e17aaa33
MR
17612013-10-30 Maciej W. Rozycki <macro@codesourcery.com>
1762
1763 * linux-tdep.c (linux_corefile_thread_callback): Preinitialize
1764 siginfo_size.
1765
aee17e42
TT
17662013-10-29 Tom Tromey <tromey@redhat.com>
1767
1768 * utils.c (reg): Move undefinition...
1769 * gdb_curses.h: ... here. Update comment to mention AIX.
1770
9ac69859
NB
17712013-10-29 Nicolas Blanc <nicolas.blanc@intel.com>
1772
1773 * exec.h (add_target_sections_of_objfile): New declaration.
1774 * exec.c (add_target_sections_of_objfile): New function.
1775 * symfile.c (add_symbol_file_command): Update current target sections.
1776 (remove_symbol_file_command): New command.
1777 (symfile_free_objfile): New function.
1778 (_initialize_symfile): Register observer for free_objfile events.
1779 * NEWS: Add description of the remove-symbol-file command.
1780 * breakpoint.c (disable_breakpoints_in_freed_objfile): New function.
1781 * objfiles.c (free_objfile): Notify free_objfile.
1782 (is_addr_in_objfile): New function.
1783 * objfiles.h (is_addr_in_objfile): New declaration.
1784 * printcmd.c (clear_dangling_display_expressions): Act upon free_objfile
1785 events instead of solib_unloaded events.
1786 (_initialize_printcmd): Register observer for free_objfile instead
1787 of solib_unloaded notifications.
1788 * solib.c (remove_user_added_objfile): New function.
1789 (_initialize_symfile): Add remove-symbol-file.
1790
f69d9aef
AB
17912013-10-29 Andrew Burgess <aburgess@broadcom.com>
1792
1793 * infcmd.c (default_print_one_register_info): Use val_print to
1794 print all values even optimized out or unavailable ones. Don't
1795 try to print a raw form of optimized out or unavailable values.
1796
487ad57c
YQ
17972013-10-29 Yao Qi <yao@codesourcery.com>
1798
1799 * auto-load.c (auto_load_pspace_data_cleanup): Get data from
1800 parameter 'arg' instead of from program_space_data.
1801 * objfiles.c (objfiles_pspace_data_cleanup): Likewise.
1802 * solib-darwin.c (darwin_pspace_data_cleanup): Likewise.
1803 * solib-dsbt.c (dsbt_pspace_data_cleanup): Likewise.
1804 * solib-svr4.c (svr4_pspace_data_cleanup): Likewise.
1805 * inflow.c (inflow_inferior_data_cleanup): Get data from
1806 parameter 'arg' instead of inferior_data.
1807 * registry.h: Add comments.
1808
3c4797ba
PA
18092013-10-28 Pedro Alves <palves@redhat.com>
1810
1811 * breakpoint.c (watchpoints_triggered)
1812 <!target_stopped_data_address>: Hardcode return 1.
1813
cdaa5b73
PA
18142013-10-28 Pedro Alves <palves@redhat.com>
1815
1816 * infrun.c (process_event_stop_test): Remove unnecessary scoping
1817 level and reindent.
1818
94c57d6a
PA
18192013-10-28 Pedro Alves <palves@redhat.com>
1820
1821 * infrun.c (process_event_stop_test): New function, factored out
1822 from handle_inferior_event.
1823 (handle_inferior_event): 'process_event_stop_test' is now a
1824 function instead of a goto label -- adjust.
1825
fcf3daef
PA
18262013-10-28 Pedro Alves <palves@redhat.com>
1827
1828 * infrun.c (handle_inferior_event): Move process_event_stop_test
1829 goto label to the else branch of the ecs->random_signal check,
1830 along with FRAME and GDBARCH re-fetching.
1831
c447ac0b
PA
18322013-10-28 Pedro Alves <palves@redhat.com>
1833
1834 * infrun.c (switch_back_to_stepped_thread): New function, factored
1835 out from handle_inferior_event.
1836 (handle_inferior_event): Adjust to call
1837 switch_back_to_stepped_thread. Call it also at the tail of the
1838 random signal handling, and return, instead of also handling
1839 random signals just before the stepping tests.
1840
f05e4c11
PA
18412013-10-28 Pedro Alves <palves@redhat.com>
1842
1843 * infrun.c (clear_stop_func): Delete.
1844 (handle_inferior_event): Don't call clear_stop_func and don't
1845 clear 'ecs->random_signal'.
1846
ca20d462
YQ
18472013-10-27 Yao Qi <yao@codesourcery.com>
1848
1849 * varobj.c (struct varobj_root) <lang>: Rename to 'lang_ops'.
1850 (varobj_create, varobj_get_path_expr): Update.
1851 (varobj_value_has_mutated, varobj_update): Likewise.
1852 (create_child_with_value, new_root_variable): Likewise.
1853 (number_of_children, name_of_variable): Likewise.
1854 (value_of_child, my_value_of_variable): Likewise.
1855 (varobj_value_is_changeable_p): Likewise.
1856
a53b64ea
YQ
18572013-10-25 Yao Qi <yao@codesourcery.com>
1858
1859 * language.h (struct lang_varobj_ops): Declare.
1860 (struct language_defn) <la_varobj_ops>: New field.
1861 * ada-lang.c: Include "varobj.h"
1862 (defn ada_language_defn): Initialize field 'la_varobj_ops' with
1863 ada_varobj_ops.
1864 * c-lang.c: Include "varobj.h"
1865 (c_language_defn): Initialize field 'la_varobj_ops' with
1866 c_varobj_ops.
1867 (cplus_language_defn): Initialize field 'la_varobj_ops' with
1868 cplus_varobj_ops.
1869 (asm_language_defn): Initialize field 'la_varobj_ops' with
1870 default_varobj_ops.
1871 (minimal_language_defn): Likewise.
1872 * d-lang.c (d_language_defn): Likewise.
1873 * f-lang.c (f_language_defn): Likewise.
1874 * go-lang.c (go_language_defn): Likewise.
1875 * m2-lang.c (m2_language_defn): Likewise.
1876 * objc-lang.c (objc_language_defn): Likewise.
1877 * opencl-lang.c (opencl_language_defn): Likewise.
1878 * p-lang.c (pascal_language_defn): Likewise.
1879 * language.c (unknown_language_defn): Likewise.
1880 (auto_language_defn): Likewise.
1881 (local_language_defn): Likewise.
1882 * jv-lang.c (java_language_defn): Initialize field
1883 'la_varobj_ops' with java_varobj_ops.
1884 * varobj.c (varobj_create): Update.
1885 * varobj.h (default_varobj_ops): Define macro.
1886
686d4def
PA
18872013-10-25 Pedro Alves <palves@redhat.com>
1888
1889 * cp-valprint.c (cp_print_value_fields): No longer handle a NULL
1890 static field value.
1891 (cp_print_static_field): If the value is entirely optimized out,
1892 print <optimized out> here.
1893 * jv-valprint.c (java_print_value_fields): No longer handle a NULL
1894 static field value.
1895 * p-valprint.c (pascal_object_print_static_field): If the value is
1896 entirely optimized out, print <optimized out> here.
1897 * valops.c (do_search_struct_field)
1898 (value_struct_elt_for_reference): No longer handle a NULL static
1899 field value.
1900 * value.c (value_static_field): Return an optimized out value
1901 instead of NULL.
1902
6c177e28
YQ
19032013-10-25 Yao Qi <yao@codesourcery.com>
1904
1905 * remote.c (remote_traceframe_info): Return early if
1906 traceframe is not selected.
1907
98322bfa
YQ
19082013-10-25 Yao Qi <yao@codesourcery.com>
1909
1910 * tracepoint.c (traceframe_fun): Remove.
1911 (traceframe_sal): Remove.
1912 (set_traceframe_context): Add local variables.
1913
6ba1f115
JB
19142013-10-25 Joel Brobecker <brobecker@adacore.com>
1915
1916 * varobj.h (struct lang_varobj_ops): Remove spaces between '*'
1917 and parameter name.
1918
bbe769cc
MR
19192013-10-24 Maciej W. Rozycki <macro@codesourcery.com>
1920
1921 * linux-tdep.c (linux_corefile_thread_callback): Propagate any
1922 failure from register information collection.
1923
72ee4495 19242013-10-24 Maciej W. Rozycki <macro@codesourcery.com>
59a70096
MR
1925
1926 * linux-tdep.c (linux_corefile_thread_data): Remove `num_notes'
1927 member.
1928 (linux_corefile_thread_callback): Update accordingly.
1929 (linux_make_corefile_notes): Likewise.
1930
98882a26
PA
19312013-10-24 Pedro Alves <palves@redhat.com>
1932
1933 * NEWS (New options): Mention set/show startup-with-shell.
1934 * config/alpha/nm-osf3.h (START_INFERIOR_TRAPS_EXPECTED): Set to 2
1935 instead of 3.
1936 * fork-child.c (fork_inferior, startup_inferior): Handle 'set
1937 startup-with-shell'.
1938 (show_startup_with_shell): New function.
1939 (_initialize_fork_child): Register the set/show startup-with-shell
1940 commands.
1941 * inf-ptrace.c (inf_ptrace_create_inferior): Remove comment.
1942 * inf-ttrace.c (inf_ttrace_him): Remove comment.
1943 * procfs.c (procfs_init_inferior): Remove comment.
1944 * infcmd.c (startup_with_shell): New global.
1945 * inferior.h (startup_with_shell): Declare global.
1946 (STARTUP_WITH_SHELL): Delete.
1947 (START_INFERIOR_TRAPS_EXPECTED): Set to 1 by default instead of 2.
1948
c9737c08
PA
19492013-10-23 Pedro Alves <palves@redhat.com>
1950
1951 * common/gdb_signals.h (gdb_signal_to_symbol_string): Declare.
1952 * common/signals.c: Include "gdb_assert.h".
1953 (signals): New field 'symbol'.
1954 (SET): Use the 'symbol' parameter.
1955 (gdb_signal_to_symbol_string): New function.
1956 * infrun.c (handle_inferior_event) <random signal>: In debug
1957 output, print the random signal enum as string in addition to its
1958 number.
1959 * target/waitstatus.c (target_waitstatus_to_string): Print the
1960 signal's enum value as string instead of the (POSIX) signal name.
1961
f60db4f0
GB
19622013-10-23 Gary Benson <gbenson@redhat.com>
1963
1964 PR 16013
1965 * common/linux-osdata.c (command_from_pid): Reduced size of cmd
1966 from 32 to 18. Adjusted fscanf format string accordingly.
1967 (Avoids leaving cmd unterminated.)
1968 (print_sockets): Do not parse tlen, inode, sl, timeout, txq, rxq,
1969 trun, retn or extra. (Avoids leaving extra unterminated.) Check
1970 that local_address and remote_address will not overflow.
1971 (linux_xfer_osdata_modules): Parse lines using strtok to avoid
1972 leaving dependencies unterminated. Parse size as "%u" to match
1973 definition.
1974
6d3e7a94
PA
19752013-10-22 Pedro Alves <palves@redhat.com>
1976
1977 * infrun.c (handle_inferior_event) <thread hop>: Don't clear or
1978 set ecs->random signal.
1979
42ec045f
PA
19802013-10-22 Pedro Alves <palves@redhat.com>
1981
1982 * infrun.c (keep_going): Update comments.
1983
19842013-10-22 Pedro Alves <palves@redhat.com>
1985
1986 * remote.c (remote_parse_stop_reply) <'T'/'S'/'X' replies>: Map
1987 invalid signal numbers to GDB_SIGNAL_UNKNOWN.
1988
19892013-10-22 Pedro Alves <palves@redhat.com>
1990
1991 * include/gdb/signals.def (TARGET_EXC_BAD_ACCESS): Rename to
1992 GDB_EXC_BAD_ACCESS.
1993 (TARGET_EXC_BAD_INSTRUCTION): Rename to GDB_EXC_BAD_INSTRUCTION.
1994 (TARGET_EXC_ARITHMETIC): Rename to GDB_EXC_ARITHMETIC.
1995 (TARGET_EXC_EMULATION): Rename to GDB_EXC_EMULATION.
1996 (TARGET_EXC_SOFTWARE): Rename to GDB_EXC_SOFTWARE.
1997 (TARGET_EXC_BREAKPOINT): Rename to GDB_EXC_BREAKPOINT.
1998 (GDB_SIGNAL_LAST): Change description string.
1999 * common/signals.c (gdb_signal_from_host, do_gdb_signal_to_host):
2000 Adjust to signal renaming.
2001 * darwin-nat.c (darwin_decode_message): Likewise.
2002
c8fde1b1
JM
20032013-10-22 Jose E. Marchesi <jose.marchesi@oracle.com>
2004
2005 * MAINTAINERS (Write After Approval): Add myself to the list.
2006
e8369a73
AB
20072013-10-18 Andrew Burgess <aburgess@broadcom.com>
2008
2009 * breakpoint.c (update_watchpoint): If hardware watchpoints are
2010 forced off, downgrade them to software watchpoints if possible,
2011 and error out if not possible.
2012 (watch_command_1): Move watchpoint type selection closer to
2013 watchpoint creation, and extend the comments.
2014
776f04fa
PA
20152013-10-18 Pedro Alves <palves@redhat.com>
2016
2017 PR gdb/16062
2018 * infrun.c (handle_inferior_event): Keep going if we got a random
2019 signal we should not stop for, instead of falling through to the
2020 step tests.
2021
0c6faab5
YQ
20222013-10-18 Yao Qi <yao@codesourcery.com>
2023
2024 * c-varobj.c (cplus_number_of_children): Fix indentation.
2025
50b34a18
TT
20262013-10-17 Tom Tromey <tromey@redhat.com>
2027
2028 PR gdb/15995:
2029 * printcmd.c (printcmd): Call gdb_flush.
2030
5c4c8a59
TT
20312013-10-17 Tom Tromey <tromey@redhat.com>
2032
2033 * elfread.c (struct elfinfo) <stabindexsect>: Remove.
2034 (elf_locate_sections): Update.
2035
c4124bf1
YQ
20362013-10-17 Yao Qi <yao@codesourcery.com>
2037
2038 * Makefile.in (HFILES_NO_SRCDIR): Remove ada-varobj.h.
2039 * ada-varobj.c: Remove the include of ada-varobj.h.
2040 (ada_varobj_get_number_of_children): Declare.
2041 (ada_varobj_get_name_of_child): Make it static.
2042 (ada_varobj_get_path_expr_of_child): Likewise.
2043 (ada_varobj_get_value_of_child): Likewise.
2044 (ada_varobj_get_type_of_child): Likewise.
2045 (ada_varobj_get_value_of_array_variable): Likewise.
2046 * ada-varobj.h: Remove.
2047
99ad9427
YQ
20482013-10-17 Yao Qi <yao@codesourcery.com>
2049
2050 * Makefile.in (SFILES): Add c-varobj.c and jv-varobj.c.
2051 (COMMON_OBS): Add c-varobj.o and jv-varobj.o.
2052 * ada-varobj.c: Include "varobj.h".
2053 (ada_number_of_children): New. Moved from varobj.c.
2054 (ada_name_of_variable, ada_name_of_child): Likewise.
2055 (ada_path_expr_of_child, ada_value_of_child): Likewise.
2056 (ada_type_of_child, ada_value_of_variable): Likewise.
2057 (ada_value_is_changeable_p, ada_value_has_mutated): Likewise.
2058 (ada_varobj_ops): New.
2059 * c-varobj.c, jv-varobj.c: New file. Moved from varobj.c.
2060 * gdbtypes.c (get_target_type): New. Moved from varobj.c.
2061 * gdbtypes.h (get_target_type): Declare.
2062 * varobj.c: Remove the inclusion of "ada-varobj.h" and
2063 "ada-lang.h".
2064 (ANONYMOUS_STRUCT_NAME): Move it to c-varobj.c.
2065 (ANONYMOUS_UNION_NAME): Likewise.
2066 (get_type, get_value_type, get_target_type): Remove declarations.
2067 (value_get_print_value, varobj_value_get_print_value): Likewise.
2068 (c_number_of_children, c_name_of_variable): Likewise.
2069 (c_name_of_child, c_path_expr_of_child): Likewise.
2070 (c_value_of_child, c_type_of_child): Likewise.
2071 (c_value_of_variable, cplus_number_of_children): Likewise.
2072 (cplus_class_num_children, cplus_name_of_variable): Likewise.
2073 (cplus_name_of_child, cplus_path_expr_of_child): Likewise.
2074 (cplus_value_of_child, cplus_type_of_child): Likewise.
2075 (cplus_value_of_variable, java_number_of_children): Likewise.
2076 (java_name_of_variable, java_name_of_child): Likewise.
2077 (java_path_expr_of_child, java_value_of_child): Likewise.
2078 (java_type_of_child, java_value_of_variable): Likewise.
2079 (ada_number_of_children, ada_name_of_variable): Likewise.
2080 (ada_name_of_child, ada_path_expr_of_child): Likewise.
2081 (ada_value_of_child, ada_type_of_child): Likewise.
2082 (ada_value_of_variable, ada_value_is_changeable_p): Likewise.
2083 (ada_value_has_mutated): Likewise.
2084 (struct language_specific): Move it to varobj.h.
2085 (CPLUS_FAKE_CHILD): Move it to varobj.h.
2086 (restrict_range): Rename it varobj_restrict_range. Make it extern.
2087 Callers update.
2088 (get_path_expr_parent): Rename it to varobj_get_path_expr_parent.
2089 Make it extern.
2090 (is_anonymous_child): Move it to c-varobj.c and rename to
2091 varobj_is_anonymous_child. Caller update.
2092 (get_type): Move it to c-varobj.c.
2093 (get_value_type): Rename it varobj_get_value_type. Make it
2094 extern.
2095 (get_target_type): Move it gdbtypes.c.
2096 (varobj_formatted_print_options): New function.
2097 (value_get_print_value): Rename it to
2098 varobj_value_get_print_value and make it extern.
2099 (varobj_value_is_changeable_p): Make it extern.
2100 (adjust_value_for_child_access): Move it to c-varobj.c.
2101 (default_value_is_changeable_p): Rename it to
2102 varobj_default_value_is_changeable_p. Make it extern.
2103 (c_number_of_children, c_name_of_variable): Move it to c-varobj.c
2104 (c_name_of_child, c_path_expr_of_child): Likewise.
2105 (c_value_of_child, c_type_of_child): Likewise.
2106 (c_value_of_variable, cplus_number_of_children): Likewise.
2107 (cplus_class_num_children, cplus_name_of_variable): Likewise.
2108 (cplus_name_of_child, cplus_path_expr_of_child): Likewise.
2109 (cplus_value_of_child, cplus_type_of_child): Likewise.
2110 (cplus_value_of_variable): Likewise.
2111 (java_number_of_children, java_name_of_variable): Move it to jv-varobj.c.
2112 (java_name_of_child, java_path_expr_of_child): Likewise.
2113 (java_value_of_child, java_type_of_child): Likewise.
2114 (java_value_of_variable): Likewise.
2115 (ada_number_of_children, ada_name_of_variable): Move it to ada-varobj.c.
2116 (ada_name_of_child, ada_path_expr_of_child): Likewise.
2117 (ada_value_of_child, ada_type_of_child): Likewise.
2118 (ada_value_of_variable, ada_value_is_changeable_p): Likewise.
2119 (ada_value_has_mutated): Likewise.
2120 * varobj.h (CPLUS_FAKE_CHILD): New macro, moved from varobj.c.
2121 (struct lang_varobj_ops): New. Renamed by 'struct language_specific'.
2122 (c_varobj_ops, cplus_varobj_ops): Declare.
2123 (java_varobj_ops, ada_varobj_ops): Declare.
2124 (varobj_default_value_is_changeable_p): Declare.
2125 (varobj_value_is_changeable_p): Declare.
2126 (varobj_get_value_type, varobj_is_anonymous_child): Declare.
2127 (varobj_get_path_expr_parent): Declare.
2128 (varobj_value_get_print_value): Declare.
2129 (varobj_formatted_print_options): Declare.
2130 (varobj_restrict_range): Declare.
2131
c8a62302
LM
21322013-10-17 Luis Machado <lgustavo@codesourcery.com>
2133
2134 * target/waitstatus.h (target_waitkind): Remove spurious
2135 character from the comments.
2136
eade6471
JB
21372013-10-17 Joel Brobecker <brobecker@adacore.com>
2138
2139 * gdbarch.sh (get_longjmp_target): Add method documentation.
2140 * gdbarch.h: Regenerate.
2141
5411b26c
TT
21422013-10-16 Tom Tromey <tromey@redhat.com>
2143
2144 * dbxread.c (read_dbx_symtab) <bss_ext_symbol>: Remove unused
2145 label.
2146
87326c87
LM
21472013-10-16 Luis Machado <lgustavo@codesourcery.com>
2148
2149 * gcore.in: Call GDB using the full path to the gcore script.
2150 Error out if the GDB binary is not found.
2151
fd0a4d76
SDJ
21522013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
2153
2154 PR gdb/16014
2155 * dwarf2read.c (dw2_get_real_path): Remove unnecessary call to
2156 sizeof.
2157
d92f7ee3
SDJ
21582013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
2159
2160 PR gdb/16042
2161 * target.c (target_disable_btrace): Fix invalid return value for
2162 void function.
2163 (target_teardown_btrace): Likewise.
2164
bb5ce47a
YQ
21652013-10-14 Yao Qi <yao@codesourcery.com>
2166
2167 * varobj.c (struct varobj): Move most of the fields to
2168 varobj.h.
2169 (struct varobj_dynamic): New struct.
2170 (varobj_get_display_hint) [HAVE_PYTHON]: Adjust.
2171 (varobj_has_more): Likewise.
2172 (dynamic_varobj_has_child_method): Likewise.
2173 (update_dynamic_varobj_children): Likewise.
2174 (varobj_get_num_children): Likewise.
2175 (varobj_list_children, varobj_pretty_printed_p): Likewise.
2176 (install_new_value_visualizer): Likewise.
2177 (install_new_value_visualizer, install_new_value): Likewise.
2178 (varobj_update, new_variable, free_variable): Likewise.
2179 (my_value_of_variable, value_get_print_value): Likewise.
2180 (install_visualizer): Change the type of parameter 'var' to
2181 'struct varobjd_dynamic *'. Callers update.
2182 * varobj.h (struct varobj): Moved from varobj.c.
2183 (struct varobj) <dynamic>: New field.
2184
0b76b0ce
SL
21852013-10-13 Sandra Loosemore <sandra@codesourcery.com>
2186
2187 * nios2-tdep.c (nios2_reg_names): Use "sstatus" rather than "ba"
2188 as the preferred name of r30.
2189 * nios2-linux-tdep.c (reg_offsets): Likewise.
2190 * features/nios2-cpu.xml: Likewise.
2191 * features/nios2-linux.c: Regenerated.
2192 * features/nios2.c: Regenerated.
2193 * regformats/nios2-linux.dat: Regenerated.
2194
4856b6bc
JK
21952013-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2196
2197 Canonicalize directories for EXEC_FILENAME.
2198 * exec.c (exec_file_attach): Use gdb_realpath_keepfile for
2199 exec_filename.
2200 * utils.c (gdb_realpath_keepfile): New function.
2201 * utils.h (gdb_realpath_keepfile): New declaration.
2202
9b557b58
DE
22032013-10-11 Doug Evans <dje@google.com>
2204
2205 * Makefile.in (GDBFLAGS): New variable.
2206 (run): New rule.
2207
ce13fade
JB
22082013-10-11 Joel Brobecker <brobecker@adacore.com>
2209
2210 * NEWS: Add entry documenting the new "-catch-assert" and
2211 "-catch-exception" GDB/MI commands.
2212
349774ef
JB
22132013-10-11 Joel Brobecker <brobecker@adacore.com>
2214
2215 * breakpoint.h (init_ada_exception_breakpoint): Add parameter
2216 "enabled".
2217 * breakpoint.c (init_ada_exception_breakpoint): Add parameter
2218 "enabled". Set B->ENABLE_STATE accordingly.
2219 * ada-lang.h (ada_exception_catchpoint_kind): Move here from
2220 ada-lang.c.
2221 (create_ada_exception_catchpoint): Add declaration.
2222 * ada-lang.c (ada_exception_catchpoint_kind): Move to ada-lang.h.
2223 (create_ada_exception_catchpoint): Make non-static. Add new
2224 parameter "disabled". Use it in call to
2225 init_ada_exception_breakpoint.
2226 (catch_ada_exception_command): Add parameter "enabled" in call
2227 to create_ada_exception_catchpoint.
2228 (catch_assert_command): Likewise.
2229
2230 * mi/mi-cmds.h (mi_cmd_catch_assert, mi_cmd_catch_exception):
2231 Add declarations.
2232 * mi/mi-cmds.c (mi_cmds): Add the "catch-assert" and
2233 "catch-exception" commands.
2234 * mi/mi-cmd-catch.c: Add #include "ada-lang.h".
2235 (mi_cmd_catch_assert, mi_cmd_catch_exception): New functions.
2236
761269c8
JB
22372013-10-11 Joel Brobecker <brobecker@adacore.com>
2238
2239 * ada-lang.c (enum ada_exception_catchpoint_kind): Renames
2240 "enum exception_catchpoint_kind". Replace the "ex_" prefix
2241 of all its enumerates with "ada_". Update the rest of this
2242 file throughout.
2243
b4a5b78b
JB
22442013-10-11 Joel Brobecker <brobecker@adacore.com>
2245
2246 * ada-lang.c (ada_decode_exception_location): Delete.
2247 (create_ada_exception_catchpoint): Remove arguments "sal",
2248 "addr_string" and "ops". Add argument "ex_kind" instead.
2249 Adjust implementation accordingly, calling ada_exception_sal
2250 to get the entities it no longer gets passed as arguments.
2251 Document the function's arguments.
2252 (catch_ada_exception_command): Use catch_ada_exception_command_split
2253 instead of ada_decode_exception_location, and update call to
2254 create_ada_exception_catchpoint.
2255 (catch_ada_assert_command_split): Renames
2256 ada_decode_assert_location. Remove parameters "addr_string" and
2257 "ops", and now returns void. Adjust implementation accordingly.
2258 Update the function documentation.
2259 (catch_assert_command): Use catch_ada_assert_command_split
2260 instead of ada_decode_assert_location. Update call to
2261 create_ada_exception_catchpoint.
2262
7ad1d32c 22632013-10-11 Joel Brobecker <brobecker@adacore.com>
7c647d61
JB
2264
2265 * utils.h (perror_warning_with_name): Add declaration.
2266 * utils.c (perror_warning_with_name): New function.
2267 * cli/cli-cmds.c (source_script_with_search): Add call to
2268 perror_warning_with_name if from_tty is nul.
2269
7ad1d32c 22702013-10-11 Joel Brobecker <brobecker@adacore.com>
0cf4063e
JB
2271
2272 * utils.c (perror_string): New function, extracted out of
2273 throw_perror_with_name.
2274 (throw_perror_with_name): Rework to use perror_string.
2275
bcc75809
YQ
22762013-10-11 Yao Qi <yao@codesourcery.com>
2277
2278 * remote.c (discard_pending_stop_replies_in_queue): Update
2279 declaration.
2280 (struct stop_reply) <rs>: New field.
2281 (remove_stop_reply_of_remote_state): New function.
2282 (discard_pending_stop_replies_in_queue): Add parameter 'rs'.
2283 Callers update. Pass remove_stop_reply_of_remote_state to
2284 QUEUE_iterate.
2285 (remote_parse_stop_reply): Initialize field 'rs'.
2286
05feb193
WN
22872013-10-10 Will Newton <will.newton@linaro.org>
2288
2289 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
2290 linux_init_abi.
2291
0d12017b
JB
22922013-10-10 Joel Brobecker <brobecker@adacore.com>
2293
2294 * cli/cli-cmds.c (show_baud_rate): Moved to serial.c as
2295 serial_baud_show_cmd.
2296 (_initialize_cli_cmds): Delete the code creating the
2297 "set/show remotebaud" commands.
2298 * serial.c (baud_rate): Move here from top.c.
2299 (serial_baud_show_cmd): Move here from cli/cli-cmds.c.
2300 (_initialize_serial): Create "set/show serial baud" commands.
2301 Add "set/show remotebaud" command aliases.
2302 * top.c (baud_rate): Moved to serial.c.
2303 * NEWS: Document the new "set/show serial baud" commands,
2304 replacing "set/show remotebaud".
2305
578d3588
PA
23062013-10-09 Pedro Alves <palves@redhat.com>
2307
2308 * breakpoint.c (insert_bp_location): Use memory_error_message to
2309 build the memory error string.
2310 * c-lang.c: Include "gdbcore.h".
2311 (c_get_string): Use memory_error to throw error.
2312 (target_xfer_memory_error): Delete.
2313 (memory_error_message): New, factored out from
2314 target_xfer_memory_error.
2315 (memory_error): Change parameter type to target_xfer_error.
2316 Rewrite.
2317 (read_memory): Use memory_error instead of
2318 target_xfer_memory_error.
2319 * gdbcore.h: Include "target.h".
2320 (memory_error): Change parameter type to target_xfer_error.
2321 (memory_error_message): Declare function.
2322 * target.c (target_read_memory, target_read_stack)
2323 (target_write_memory, target_write_raw_memory): Return
2324 TARGET_XFER_E_IO on error. Adjust comments.
2325 (get_target_memory): Pass TARGET_XFER_E_IO to memory_error,
2326 instead of EIO.
2327 * target.h (target_read, target_insert_breakpoint)
2328 (target_remove_breakpoint): Adjust comments.
2329 * valprint.c (partial_memory_read): Rename parameter, and adjust
2330 comment.
2331 (val_print_string): Use memory_error_message to build the memory
2332 error string.
2333
c74e1ccf
JK
23342013-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2335
2336 * common/filestuff.c (gdb_fopen_cloexec): Remove initialization of
2337 result variable. Rename variable fopen_e_ever_failed to
2338 fopen_e_ever_failed_einval. Retry fopen only for errno EINVAL.
2339
915215be
PA
23402013-10-09 Pedro Alves <palves@redhat.com>
2341
2342 * monitor.c (monitor_write_memory, monitor_write_memory_bytes)
2343 (monitor_write_memory_longlongs, monitor_write_memory_block):
2344 Constify 'myaddr' parameter.
2345 (monitor_xfer_memory): Adjust interface as monitor_xfer_partial
2346 helper.
2347 (monitor_xfer_partial): New function.
2348 (init_base_monitor_ops): Don't install a deprecated_xfer_memory
2349 hook. Install a to_xfer_partial hook.
2350
acd13123
TT
23512013-10-09 Tom Tromey <tromey@redhat.com>
2352
2353 * dwarf2read.c (dwarf2_get_dwz_file): Update for type change in
2354 bfd_get_alt_debug_link_info.
2355
40135bb1
JK
23562013-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2357
2358 New flag OBJF_NOT_FILENAME.
2359 * auto-load.c (auto_load_objfile_script): Check also OBJF_NOT_FILENAME.
2360 * jit.c (jit_object_close_impl): Use OBJF_NOT_FILENAME for
2361 allocate_objfile.
2362 (jit_bfd_try_read_symtab): Use OBJF_NOT_FILENAME for
2363 symbol_file_add_from_bfd.
2364 * jv-lang.c (get_dynamics_objfile): Use OBJF_NOT_FILENAME for
2365 allocate_objfile.
2366 * objfiles.c (allocate_objfile): Assert OBJF_NOT_FILENAME if NAME is
2367 NULL.
2368 * objfiles.h (OBJF_NOT_FILENAME): New.
2369
dc294be5
TT
23702013-10-08 Tom Tromey <tromey@redhat.com>
2371
2372 * Makefile.in (SFILES): Add build-id.c.
2373 (HFILES_NO_SRCDIR): Add build-id.h.
2374 * build-id.c: New file, largely from elfread.c. Modified
2375 most functions.
2376 * build-id.h: New file.
2377 * dwarf2read.c (dwarf2_get_dwz_file): Update for change to
2378 bfd_get_alt_debug_link_info. Verify dwz file's build-id.
2379 Search for dwz file using build-id.
2380 * elfread.c (build_id_bfd_get, build_id_verify)
2381 (build_id_to_debug_filename, find_separate_debug_file): Remove.
2382
db230ce3
JB
23832013-10-08 Joel Brobecker <brobecker@adacore.com>
2384
2385 * ada-lang.c (compare_names_with_case): Renamed from
2386 compare_names, adding a new parameter "casing" and its handling.
2387 New function documentation.
2388 (compare_names): New function, implemented using
2389 compare_names_with_case.
2390
6501c98a
JB
23912013-10-08 Joel Brobecker <brobecker@adacore.com>
2392
2393 * ada-lang.c (ada_exception_sal): Remove advance declaration.
2394
84a1243b
TT
23952013-10-07 Tom Tromey <tromey@redhat.com>
2396
2397 * objfiles.c (free_objfile_per_bfd_storage): Delete the
2398 demangled_names_hash.
2399 (free_objfile): Don't delete the demangled_names_hash.
2400 * objfiles.h (struct objfile_per_bfd_storage)
2401 <demangled_names_hash>: New field.
2402 (struct objfile) <demangled_names_hash>: Move to
2403 objfile_per_bfd_storage.
2404 * symfile.c (reread_symbols): Don't delete the
2405 demangled_names_hash.
2406 * symtab.c (create_demangled_names_hash): Update.
2407 (symbol_set_names): Update.
2408
1da77581
TT
24092013-10-07 Tom Tromey <tromey@redhat.com>
2410
2411 * gdb_bfd.c (struct gdb_bfd_data) <relocation_computed,
2412 needs_relocations>: New fields.
2413 (gdb_bfd_requires_relocations): New function.
2414 * gdb_bfd.h (gdb_bfd_requires_relocations): Declare.
2415 * objfiles.c (get_objfile_bfd_data): Disallow sharing if
2416 the BFD needs relocations applied.
2417
46ecd527
PA
24182013-10-07 Pedro Alves <palves@redhat.com>
2419
2420 PR breakpoints/11568
2421 * breakpoint.c (remove_threaded_breakpoints): Say "no longer in
2422 the thread list" instead of "gone".
2423
0c557179
SDJ
24242013-10-06 Sergio Durigan Junior <sergiodj@redhat.com>
2425
2426 * NEWS: Mention new convenience variable $_exitsignal.
2427 * corelow.c (core_open): Reset exit convenience variables. Set
2428 $_exitsignal to the uncaught signal which generated the corefile.
2429 * infrun.c (handle_inferior_event): Reset exit convenience
2430 variables. Set $_exitsignal for TARGET_WAITKIND_SIGNALLED.
2431 (clear_exit_convenience_vars): New function.
2432 * inferior.h (clear_exit_convenience_vars): New prototype.
2433
1cc47d81
YQ
24342013-10-06 Yao Qi <yao@codesourcery.com>
2435
2436 * varobj.h: Add comments to enum varobj_languages.
2437
73869dc2
DE
24382013-10-04 Doug Evans <dje@google.com>
2439
2440 Add support for DWP file format version 2.
2441 * NEWS: Mention support for DWP file format version 2.
2442 * dwarf2read.c (dwarf2_section_info): Convert asection field to a
2443 union of asection, containing_section. New fields virtual_offset
2444 and is_virtual. Change type of readin filed from int to char.
2445 (dwo_sections, dwo_file): Tweak comments.
2446 (dwp_v2_section_ids): New enum.
2447 (dwp_sections): New fields abbrev, info, line, loc, macinfo, macro,
2448 str_offsets, types.
2449 (virtual_v1_dwo_sections): Renamed from virtual_dwo_sections.
2450 All uses updated.
2451 (virtual_v2_dwo_sections): New struct.
2452 (dwp_hash_table): New fields version, nr_columns. Change type of
2453 section_pool field to a union.
2454 (dwp_file): New field version.
2455 (dwarf2_has_info): Check for virtual sections.
2456 (get_containing_section): New function.
2457 (get_section_bfd_owner, get_section_bfd_section): Call it.
2458 (dwarf2_locate_sections): Update.
2459 (dwarf2_section_empty_p): Update.
2460 (dwarf2_read_section): Handle virtual sections.
2461 (locate_dwz_sections): Update.
2462 (create_dwp_hash_table): Document and handle V2 format.
2463 (locate_v1_virtual_dwo_sections): Renamed from
2464 locate_virtual_dwo_sections and update. All callers updated.
2465 (create_dwo_unit_in_dwp_v1): Renamed from create_dwo_in_dwp.
2466 Delete arg htab. Rename arg section_index to unit_index.
2467 All callers updated.
2468 (MAX_NR_V1_DWO_SECTIONS): Renamed from MAX_NR_DWO_SECTIONS.
2469 All uses updated.
2470 (create_dwp_v2_section, create_dwo_unit_in_dwp_v2): New functions.
2471 (lookup_dwo_unit_in_dwp): Add V2 support.
2472 (dwarf2_locate_dwo_sections): Update.
2473 (dwarf2_locate_common_dwp_sections): Renamed from
2474 dwarf2_locate_dwp_sections and update. All callers updated.
2475 (dwarf2_locate_v2_dwp_sections): New function.
2476 (open_and_init_dwp_file): Add V2 support.
2477 (read_str_index): New locals str_section, str_offsets_section.
2478
9a2c3737
PA
24792013-10-04 Pedro Alves <palves@redhat.com>
2480
2481 * common/ptid.c (null_ptid, minus_one_ptid, ptid_build)
2482 (pid_to_ptid, ptid_get_pid, ptid_get_lwp, ptid_get_tid)
2483 (ptid_equal, ptid_is_pid, ptid_lwp_p, ptid_tid_p): Replace
2484 describing comments with references to ptid.h.
2485 * common/ptid.h: Remove intro description of constructors,
2486 accessors and predicates.
2487 (struct ptid): Reformat.
2488 (minus_one_ptid, ptid_build, pid_to_ptid, ptid_get_pid)
2489 (ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid): Change
2490 describing comments.
2491
f5371440
JB
24922013-10-04 Joel Brobecker <brobecker@adacore.com>
2493
2494 * aix-thread.c (sync_threadlists): Add missing ')' in call
2495 to ptid_build.
2496
793e1c06
JB
24972013-10-04 Joel Brobecker <brobecker@adacore.com>
2498
2499 * procfs.c (procfs_init_inferior): Fix typo causing the build
2500 to fail.
2501
26f0edc1
JB
25022013-10-04 Joel Brobecker <brobecker@adacore.com>
2503
2504 * aix-thread.c (ptrace32): Remove cast to addr_ptr.
2505
5713b9b5
JB
25062013-10-04 Joel Brobecker <brobecker@adacore.com>
2507
2508 * mi/mi-main.c (run_one_inferior): Add function description.
2509 Make ARG a pointer to an integer whose value determines whether
2510 we should "run" or "start" the program.
2511 (mi_cmd_exec_run): Add handling of the "--start" option.
2512 Reject all other command-line options.
2513 * NEWS: Add entry for "-exec-run"'s new "--start" option.
2514
f48ff2a7
YQ
25152013-10-04 Yao Qi <yao@codesourcery.com>
2516
2517 * remote-notif.h (REMOTE_NOTIF_ID): New enum.
2518 (struct notif_client) <pending_event>: Moved
2519 to struct remote_notif_state.
2520 <id>: New field.
2521 (struct remote_notif_state) <pending_event>: New field.
2522 (notif_event_xfree): Declare.
2523 * remote-notif.c (handle_notification): Adjust.
2524 (notif_event_xfree): New function.
2525 (do_notif_event_xfree): Call notif_event_xfree.
2526 (remote_notif_state_xfree): Call notif_event_xfree to free
2527 each element in field pending_event.
2528 * remote.c (discard_pending_stop_replies): Remove declaration.
2529 (discard_pending_stop_replies_in_queue): Declare.
2530 (remote_close): Call discard_pending_stop_replies_in_queue
2531 instead of discard_pending_stop_replies.
2532 (remote_start_remote): Adjust.
2533 (stop_reply_xfree): Call notif_event_xfree.
2534 (notif_client_stop): Adjust initialization.
2535 (remote_notif_remove_all): Rename it to ...
2536 (remove_stop_reply_for_inferior): ... this. Update comments.
2537 Don't check INF is NULL.
2538 (discard_pending_stop_replies): Return early if notif_state is
2539 NULL. Adjust. Don't check INF is NULL.
2540 (remote_notif_get_pending_events): Adjust.
ef1bc9e7 2541 (discard_pending_stop_replies_in_queue): New function.
f48ff2a7
YQ
2542 (remote_wait_ns): Likewise.
2543
5965e028
YQ
25442013-10-04 Yao Qi <yao@codesourcery.com>
2545
2546 * remote-notif.c (DECLARE_QUEUE_P): Remove.
2547 (notif_queue): Remove.
2548 (remote_notif_process): Add one parameter 'notif_queue'.
2549 Update comments. Callers update.
2550 (remote_async_get_pending_events_token): Remove.
2551 (remote_notif_register_async_event_handler): Remove.
2552 (remote_notif_unregister_async_event_handler): Remove.
2553 (handle_notification): Add parameter 'notif_queue'. Update
2554 comments. Callers update.
2555 (notif_xfree): Remove.
2556 (remote_notif_state_allocate): New function.
2557 (remote_notif_state_xfree): New function.
2558 (_initialize_notif): Remove code to allocate queue.
2559 * remote-notif.h (DECLARE_QUEUE_P): Moved from remote-notif.c.
2560 (struct remote_notif_state): New.
2561 (handle_notification): Update declaration.
2562 (remote_notif_process): Likewise.
2563 (remote_notif_register_async_event_handler): Remove.
2564 (remote_notif_unregister_async_event_handler): Remove.
2565 (remote_notif_state_allocate): Declare.
2566 (remote_notif_state_xfree): Declare.
2567 * remote.c (struct remote_state) <notif_state>: New field.
2568 (remote_close): Don't call
2569 remote_notif_unregister_async_event_handler. Call
2570 remote_notif_state_xfree.
2571 (remote_open_1): Don't call
2572 remote_notif_register_async_event_handler. Call
2573 remote_notif_state_allocate.
2574
5e5ac9a5
YQ
25752013-10-04 Yao Qi <yao@codesourcery.com>
2576
2577 * varobj.c (create_child_with_value): Remove 'const' from the
2578 type of parameter 'name'.
2579 (varobj_add_child): Likewise.
2580 (install_dynamic_child): Remove 'const' from the type of
2581 parameter 'name'.
2582 (varobj_add_child): Likewise.
2583 (create_child_with_value): Likewise. Update comments. Don't
2584 duplicate 'name'.
2585 (update_dynamic_varobj_children): Duplicate 'name'
2586 and pass it to install_dynamic_child.
2587
06ab7b19
PM
25882013-10-03 Phil Muldoon <pmuldoon@redhat.com>
2589
2590 * python/py-value.c (convert_value_from_python): Move PyInt_Check
2591 conversion logic to occur after PyLong_Check. Comment on order
2592 change significance.
2593 * python/py-arch.c (archpy_disassemble): Comment on order of
2594 conversion for integers and longs.
2595
8ae377e8
PA
25962013-10-03 Pedro Alves <palves@redhat.com>
2597
2598 * common/linux-ptrace.c (linux_check_ptrace_features): Factor out
2599 the PTRACE_O_TRACESYSGOOD and PTRACE_O_TRACEFORK to separate
2600 functions. Always test for PTRACE_O_TRACESYSGOOD even if
2601 PTRACE_O_TRACEFORK is not supported.
2602 (linux_test_for_tracesysgood): New function.
2603 (linux_test_for_tracefork): New function, factored out from
2604 linux_check_ptrace_features, and also don't kill child_pid here.
2605
b1328b1b
TG
26062013-10-03 Tristan Gingold <gingold@adacore.com>
2607
2608 * i386-darwin-nat.c (i386_darwin_dr_set): Fix argument type.
2609 Remove verbose error reporting. Use detected state to
2610 thread_set_state call.
2611 (i386_darwin_dr_get): Fix return type. Remove verbose error
2612 report.
2613 Remove trailing spaces.
2614
901461f8
PA
26152013-10-02 Pedro Alves <palves@redhat.com>
2616
2617 * cp-valprint.c (cp_print_value_fields): Adjust calls to
2618 val_print_optimized_out.
2619 * jv-valprint.c (java_print_value_fields): Likewise.
2620 * p-valprint.c (pascal_object_print_value_fields): Likewise.
2621 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full)
2622 <DWARF_VALUE_REGISTER>: If the register was not saved, return a
2623 new optimized out value.
2624 * findvar.c (address_from_register): Likewise.
2625 * frame.c (put_frame_register): Tweak error string to say the
2626 register was not saved, rather than optimized out.
2627 * infcmd.c (default_print_one_register_info): Adjust call to
2628 val_print_optimized_out. Use value_of_register instead of
2629 get_frame_register_value.
2630 * mi/mi-main.c (output_register): Use value_of_register instead of
2631 get_frame_register_value.
2632 * valprint.c (valprint_check_validity): Likewise.
2633 (val_print_optimized_out): New value parameter. If the value is
2634 lval_register, print <not saved> instead.
2635 (value_check_printable, val_print_scalar_formatted): Adjust calls
2636 to val_print_optimized_out.
2637 * valprint.h (val_print_optimized_out): New value parameter.
2638 * value.c (struct value) <optimized_out>: Extend comment.
2639 (error_value_optimized_out): New function.
2640 (require_not_optimized_out): Use it. Use a different string for
2641 lval_register values.
2642 * value.h (error_value_optimized_out): New declaration.
2643 * NEWS: Mention <not saved>.
2644
042a84d9
JB
26452013-10-02 Joel Brobecker <brobecker@adacore.com>
2646
2647 * symtab.c (compare_search_syms): Use FILENAME_CMP instead of
2648 strcmp to compare two symtab filenames.
2649
6b9780fb
JB
26502013-10-02 Joel Brobecker <brobecker@adacore.com>
2651
2652 * symtab.c (search_symbols_equal): Delete.
2653 (sort_search_symbols_remove_dups): Replace call to
2654 search_symbols_equal by call to compare_search_syms,
2655 adjusting as necessary.
2656
751e7549
PM
26572013-10-02 Phil Muldoon <pmuldoon@redhat.com>
2658
2659 PR python/15579
751e7549
PM
2660 * python/python.c: Document gdb.execute command in Python help.
2661
1efd7661
PM
26622013-10-02 Phil Muldoon <pmuldoon@redhat.com>
2663
2664 * python/py-frame.c (frame_info_to_frame_object): Use
2665 gdbpy_convert_exception. Clean up Python object on failure.
2666
562fc849
PM
26672013-10-02 Phil Muldoon <pmuldoon@redhat.com>
2668
2669 * python/lib/gdb/command/frame_filters.py
2670 (InfoFrameFilter.list_frame_filters): Retrieve exception manually.
2671 (ShowFrameFilterPriority.invoke): Ditto.
2672
d7561cbb
KS
26732013-10-01 Keith Seitz <keiths@redhat.com>
2674
2675 * linespec.c (struct ls_parser): Make 'saved_arg' const.
2676 (parse_linespec): Make 'argptr' const.
2677 Remove temporary cast of 'argptr' to const char **.
2678 (decode_line_full): Pass const pointer to parse_linespec.
2679 (decode_line_1): Likewise.
2680 (decode_objc): Make local variable 'new_argptr' const.
2681 (find_function_symbols): Remove temporary cast to char *
2682 to find_imps.
2683 * objc-lang.c (find_imps): Make argument 'method' const.
2684 Return const.
2685 * objc-lang.h (find_imps): Likewise.
2686
26872013-10-01 Keith Seitz <keiths@redhat.com>
2688
2689 * completer.c (skip_quoted_chars): Make all arguments const.
2690 Return const.
2691 (skip_quoted): Likewise.
2692 * completer.h (skip_quoted_chars): Likewise.
2693 (skip_quoted): Likewise.
2694 * defs.h (skip_quoted): Remove duplicate declaration.
2695 * jv-exp.y: Include completer.h.
2696 (yylex): Remove unneccessary cast to char * fro skip_quoted.
2697 * p-exp.y: Include completer.h.
2698
26992013-10-01 Keith Seitz <keiths@redhat.com>
2700
2701 * c-exp.y (parse_number): Make first argument const.
2702 Make a copy of the input to manipulate.
2703 (c_parse_escape): Make first argument const.
2704 Make local variable 'tokptr' const.
2705 (parse_string_or_char): Make first two arguments const.
2706 (macro_original_text): Make const.
2707 (lex_one_token): Make local variable 'tokstart' const.
2708 Likewise for local variables named 'p'.
2709 Cast away const for struct stoken (temporary).
2710 * c-lang.h (c_parse_escpae): Make first argument const.
2711 * cli/cli-cmds.c (echo_command): Make local variable 'p'
2712 const.
2713 * cli/cli-setshow.c (do_set_command): Likewise for 'p' in
2714 var_string case.
2715 * f-exp.y (parse_number): Make first argument const.
2716 (match_string_literal): Make local variable 'tokstart'
2717 const.
2718 (yylex): Make local variable 'p' const.
2719 Cast away const for struct stoken (temporary).
2720 * go-exp.y (parse_number): Make first argument const.
2721 (parse_string_or_char): Likewise.
2722 Make local variable 'tokstart' const.
2723 (lex_one_token): Likewise for numerous locals called 'p'.
2724 Cast away const for struct stoken (temporary).
2725 * jv-exp.y (parse_number): Make first argument const.
2726 Make local variables 'tokstart' and 'tokptr' const.
2727 Cast away const for call to skip_quoted (temporary).
2728 (yylex): Make local variable 'p' const.
2729 Cast away const for struct stoken (temporary).
2730 * m2-exp.y (parse_number): Make local variable 'p' const.
2731 (yylex): Likewise for 'tokstart'.
2732 Cast away const for struct stoken (temporary).
2733 Make local variable 'p' const.
2734 * macroexp.c (get_character_constant): Pass a const string
2735 to c_parse_escape.
2736 (get_string_literal): Likewise.
2737 (macro_expand_next): Make first argument const.
2738 Cast away const for init_shared_buffer.
2739 * macroexp.h (macro_expand_next): Make first argument const.
2740 * p-exp.y (yylex): Make a local copy of 'lexptr'.
2741 Pass a const string to c_parse_escape.
2742 Make local variables 'p' and 'namestart' const.
2743 * parse.c (lexptr): Make const.
2744 (prev_lexptr): Likewise.
2745 (find_template_name_end): Return const.
2746 Make argument const, too.
2747 (parse_exp_in_context): Make first argument const.
2748 Remove the entire const_hack.
2749 (parse_exp_in_context_1): Make first argument const.
2750 * parser-defs.h (find_template_name_end): Return const.
2751 Make argument const, too.
2752 (lexptr): Make const.
2753 (prev_lexptr): Likewise.
2754 * utils.c (parse_escape): Make second argument const.
2755 * utils.h (parse_escape): Likewise.
2756
27572013-10-01 Keith Seitz <keiths@redhat.com>
2758
2759 * ada-exp.y (write_object_renaming): Update: struct stoken.ptr
2760 is now const.
2761 (block_lookup): Make 'raw_name' and 'name' const.
2762 * ada-lex.l (processString): Update for struct stoken.ptr.
2763 * c-exp.y (qualified_name : TYPENAME COLONCOLON '~' name): Likewise.
2764 (operator_stoken): Likewise.
2765 (lex_one_token): Remove temporary cast to char * for
2766 'yylval.sval.ptr'.
2767 * f-exp.y (yylex): Likewise.
2768 * gdb-types.c (lookup_struct_elt_type): Make argument 'name' const.
2769 * gdbtypes.h (lookup_struct_elt_type): Likewisee.
2770 * go-exp.y (lex_one_token): Remove temporary cast to char * for
2771 'yylval.sval.ptr'.
2772 * jv-exp.y (QualifiedName): Update for struct stoken.ptr.
2773 (yylex): Remove temporary cast to char * for 'yylval.sval.ptr'.
2774 * linespec.c (struct ls_parser): Make 'stream' const.
2775 (find_parameter_list_end): Make argument 'input' and local
2776 variable 'p' const.
2777 (linespec_lexer_lex_string): Make local variables 'start' and
2778 'p' const.
2779 Use skip_spaces_const instead of skip_spaces.
2780 (linespec_lexer_peek_token): Make local variable 'saved_stream'
2781 const.
2782 (parse_linespec): Temporarily cast 'argptr' to const for
2783 'parser->lexer.stream'.
2784 * m2-exp.y (yylex): Remove temporary cast to char * for
2785 'yylval.sval.ptr'.
2786 * objc-lang.c (add_msglist): Make local variable 'p' const.
2787 * p-exp.y (exp : exp '['): Update for struct stoken.ptr.
2788 (exp : STRING): Make 'sp' const.
2789 (parse_number): Make argument 'p' const.
2790 * parser-defs.h (struct stoken): Make 'ptr' const.
2791
193a8eac
DE
27922013-10-01 Doug Evans <dje@google.com>
2793
2794 * cli/cli-decode.c: Remove unnecessary inclusion of tui/tui.h.
2795
2213e2be
YQ
27962013-10-01 Yao Qi <yao@codesourcery.com>
2797
2798 * varobj.c (c_value_of_root): Remove declaration.
2799 (cplus_value_of_root, java_value_of_root): Likewise.
2800 (ada_value_of_root): Likewise.
2801 (struct language_specific) <value_of_root>: Remove.
2802 (languages): Update initialization.
2803 (check_scope): Move earlier.
2804 (c_value_of_root): Move earlier and rename to ...
2805 (value_of_root_1): ... this.
2806 (value_of_root): Caller update.
2807 (cplus_value_of_root, java_value_of_root): Remove.
2808 (ada_value_of_root): Remove.
2809
c573f273
YQ
28102013-10-01 Yao Qi <yao@codesourcery.com>
2811
2812 * varobj.c (varobj_format_string): Remove "unknown".
2813 (languages): Remove the first element.
2814 * varobj.h (enum varobj_languages): Remove vlang_c.
2815
56250258
YQ
28162013-10-01 Yao Qi <yao@codesourcery.com>
2817
2818 * varobj.c (struct language_specific) <language>: Remove.
2819 (languages): Update the initialization.
2820
29f9ebfa
YQ
28212013-10-01 Yao Qi <yao@codesourcery.com>
2822
2823 * arm-wince-tdep.c: Remove inclusion of "solib.h" and
2824 "solib-target.h". Include "windows-tdep.h".
2825 (arm_wince_init_abi): Call windows_init_abi. Remove call to
2826 set_solib_ops and set_gdbarch_has_dos_based_file_system.
2827 * configure.tgt (arm*-wince-pe | arm*-*-mingw32ce*): Append
2828 windows-tdep.o to gdb_target_obs.
2829
64870a42
YQ
28302013-10-01 Yao Qi <yao@codesourcery.com>
2831
2832 * amd64-windows-tdep.c: Remove inclusion of "solib.h" and
2833 "solib-target.h".
2834 (amd64_windows_init_abi): Don't call set_solib_ops and
2835 set_gdbarch_iterate_over_objfiles_in_search_order. Call
2836 windows_init_abi instead.
2837 * i386-cygwin-tdep.c: Remove inclusion of "solib.h" and
2838 "solib-target.h".
2839 (i386_cygwin_init_abi): Don't call set_solib_ops,
2840 set_gdbarch_has_dos_based_file_system and
2841 set_gdbarch_iterate_over_objfiles_in_search_order. Call
2842 windows_init_abi instead.
2843 * windows-tdep.c: Include "solib.h" and "solib-target.h".
2844 (windows_init_abi): New function.
2845 (windows_iterate_over_objfiles_in_search_order): Make it
2846 static.
2847 * windows-tdep.h (windows_init_abi): Declare.
2848 (windows_iterate_over_objfiles_in_search_order): Remove
2849 declaration.
2850
0aebdefa
JB
28512013-10-01 Jerome Guitton <guitton@adacore.com>
2852
2853 Checked in by Joel Brobecker <brobecker@adacore.com>
2854 * system-gdbinit/elinos.py (get_elinos_environment): Return an
2855 incomplete dictionnary instead of None in case of missing
2856 environment variables.
2857 (elinos_init): in case of an incomplete environment, best
2858 effort to load system libraries instead of abort.
2859
1c8e84b0
JB
28602013-10-01 Joel Brobecker <brobecker@adacore.com>
2861
2862 * ada-lang.c (ada_has_this_exception_support): Ignore
2863 mst_solib_trampoline minimal symbols.
2864
61d82a0d
TG
28652013-09-30 Tristan Gingold <gingold@adacore.com>
2866
2867 * i386-darwin-nat.c (darwin_complete_target): Install methods for
2868 hardware watchpoint.
2869 (i386_darwin_dr_set): Support 32 and 64 bit states.
2870 (i386_darwin_dr_get): Likewise.
2871 (i386_darwin_dr_set_control): Make static.
2872 (i386_darwin_dr_set_addr, i386_darwin_dr_get_addr)
2873 (i386_darwin_dr_get_status, i386_darwin_dr_get_control): Likewise.
2874
dfd4cc63
LM
28752013-09-30 Luis Machado <lgustavo@codesourcery.com>
2876
2877 * aarch64-linux-nat.c: Replace PIDGET with ptid_get_pid.
2878 Replace TIDGET with ptid_get_lwp.
2879 Replace GET_LWP with ptid_get_lwp.
2880 * aix-thread.c (BUILD_THREAD, BUILD_LWP): Remove.
2881 Replace BUILD_THREAD with ptid_build.
2882 Replace BUILD_LWP with ptid_build.
2883 Replace PIDGET with ptid_get_pid.
2884 Replace TIDGET with ptid_get_lwp.
2885 * alphabsd-nat.c: Replace PIDGET with ptid_get_pid.
2886 * amd64-linux-nat.c: Replace PIDGET with ptid_get_pid.
2887 Replace TIDGET with ptid_get_lwp.
2888 * amd64bsd-nat.c: Replace PIDGET with ptid_get_pid.
2889 * arm-linux-nat.c: Replace PIDGET with ptid_get_pid.
2890 Replace TIDGET with ptid_get_lwp.
2891 Replace GET_LWP with ptid_get_lwp.
2892 * armnbsd-nat.c: Replace PIDGET with ptid_get_pid.
2893 * auxv.c: Likewise.
2894 * breakpoint.c: Likewise.
2895 * common/ptid.c (ptid_is_pid): Condense check for
2896 null_ptid and minus_one_ptid.
2897 (ptid_lwp_p): New function.
2898 (ptid_tid_p): New function.
2899 * common/ptid.h: Update comments for accessors.
2900 (ptid_lwp_p): New prototype.
2901 (ptid_tid_p): New prototype.
2902 * defs.h (PIDGET, TIDGET, MERGEPID): Do not define.
2903 * gcore.c: Replace PIDGET with ptid_get_pid.
2904 * gdbthread.h: Likewise.
2905 * gnu-nat.c: Likewise.
2906 * hppa-linux-nat.c: Replace PIDGET with ptid_get_pid.
2907 Replace TIDGET with ptid_get_lwp.
2908 * hppabsd-nat.c: Replace PIDGET with ptid_get_pid.
2909 * hppanbsd-nat.c: Likewise.
2910 * i386-linux-nat.c: Replace PIDGET with ptid_get_pid.
2911 Replace TIDGET with ptid_get_lwp.
2912 * i386bsd-nat.c: Replace PIDGET with ptid_get_pid.
2913 * ia64-linux-nat.c: Replace PIDGET with ptid_get_pid.
2914 * infcmd.c: Likewise.
2915 * inferior.h: Likewise.
2916 * inflow.c: Likewise.
2917 * infrun.c: Likewise.
2918 * linux-fork.c: Likewise.
2919 * linux-nat.c: Replace PIDGET with ptid_get_pid.
2920 Replace GET_PID with ptid_get_pid.
2921 Replace is_lwp with ptid_lwp_p.
2922 Replace GET_LWP with ptid_get_lwp.
2923 Replace BUILD_LWP with ptid_build.
2924
5b4e221c
MF
29252013-09-28 Mike Frysinger <vapier@gentoo.org>
2926
2927 * common/linux-btrace.c: Move sys/syscall.h out of the
2928 HAVE_LINUX_PERF_EVENT_H check and wrap it in HAVE_SYS_SYSCALL_H.
2929 Also check for SYS_perf_event_open before attempting to buid.
2930
57d63ce2
DE
29312013-09-27 Doug Evans <dje@google.com>
2932
19ac8c2e
DE
2933 * dwarf2read.c (dwarf2_section_info): Add comment.
2934 (dwp_file): Split loaded_cutus into loaded_cus, loaded_tus.
2935 All uses updated.
2936 (dwarf2_section_empty_p): Rename arg from "info" to "section".
2937 (dwarf2_read_section): Delete unused local "header". Add section
2938 name to error message.
2939 (create_dwo_in_dwp): Tweak comment.
2940 (MAX_NR_DWO_SECTIONS): Combine count of .debug_macro + .debug_macinfo.
2941
a32a8923
DE
2942 * dwarf2read.c (die_reader_specs): Tweak comment.
2943 (get_section_bfd_owner, get_section_bfd_section): New functions.
2944 (get_section_name, get_section_file_name): New functions.
2945 (get_section_id, get_section_flags): New functions.
2946 (*): Use new functions to access section fields.
2947
57d63ce2
DE
2948 * dwarf2read.c (struct dwo_file): Add/tweak comments.
2949 (lookup_dwo_unit_in_dwp): Renamed from lookup_dwo_in_dwp. Remove
2950 arg "htab". All callers updated.
2951 (create_debug_types_hash_table): Remove redundant copy of
2952 abbrev_section.
2953 (create_dwo_in_dwp): Tweak comments.
2954 (read_str_index): Tweak comment. Record dwarf form name in static
2955 local.
2956
3736004f
PA
29572013-09-27 Pedro Alves <palves@redhat.com>
2958
2959 * remote.h (REMOTE_SYSROOT_PREFIX): New define.
2960 (remote_filename_p): Add comment.
2961 * remote.c (remote_filename_p): Adjust to use
2962 REMOTE_SYSROOT_PREFIX.
2963 * solib.c (solib_find): When deciding whether we need to add a
2964 directory separator, check whether the sysroot is "remote:"
2965 instead of checking whether the patch has a drive spec. Add
2966 comments.
2967
5b5596ff
PA
29682013-09-27 Pedro Alves <palves@redhat.com>
2969
2970 * remote.c (struct stop_reply) <solibs_changed, replay_event>:
2971 Delete fields.
2972 (remote_parse_stop_reply): Adjust, setting event->ws.kind
2973 directly.
2974
b5eef7aa
JK
29752013-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2976
2977 Fix set debug frame output.
2978 * frame.c (fprint_frame_type): Add TAILCALL_FRAME entry. Move
2979 SENTINEL_FRAME entry lower to match enum frame_type order.
2980
5b856f36
PM
29812013-09-26 Pierre Muller <muller@sourceware.org>
2982
2983 Replace constant values 8 to 15 by AMD64_R8_REGNUM to
2984 AMD64_R15_REGNUM when a register index is expected.
2985 * amd64-windows-tdep.c (amd64_windows_dummy_call_integer_regs):
2986 Substitute in array.
2987 * amd64-tdep.c (amd64_dwarf_regmap): Ditto.
2988 (amd64_push_arguments): Substitute in integer_regnum array.
2989
ade7ed9e
DE
29902013-09-25 Doug Evans <dje@google.com>
2991
d3e81981
DE
2992 * objfiles.c (allocate_objfile): Move comment to better place.
2993
8fb8eb5c
DE
2994 New option "set debug symfile on".
2995 * NEWS: Mention "set debug symfile".
2996 * Makefile.in (SFILES): Add symfile-debug.c.
2997 (COMMON_OBS): Add symfile-debug.o.
2998 * elfread.c (elf_symfile_read): Use objfile_set_sym_fns to set the
2999 objfile's symbol functions.
3000 * objfiles.h (objfile_set_sym_fns): Declare.
3001 * symfile-debug.c: New file.
3002 * symfile.c (syms_from_objfile_1): Use objfile_set_sym_fns to set the
3003 objfile's symbol functions.
3004 (reread_symbols): Ditto.
3005
c256e171
DE
3006 * symfile.h (struct sym_fns): Delete member "sym_flavour".
3007 All uses updated.
3008 (add_symtab_fns): Update prototype.
3009 * symfile.c (sym_fns_ptr): Delete. Replace with ...
3010 (registered_sym_fns): ... this.
3011 (symtab_fns): Update.
3012 (add_symtab_fns): New arg "flavour". All callers updated.
3013 (find_sym_fns): Rewrite to use new sym_fns registry.
3014
f56ce883
DE
3015 * symfile.h (struct sym_fns): Add "objfile" argument to
3016 sym_read_linetable. All uses updated.
3017
20c681d1
DE
3018 * symtab.c (domain_name, search_domain_name): New functions.
3019 * symtab.h (domain_name, search_domain_name): Declare.
3020
ade7ed9e
DE
3021 * symfile.h (struct quick_symbol_functions): Reorg arg list of
3022 map_matching_symbols so objfile is first. All uses updated.
3023 * dwarf2read.c (dw2_map_matching_symbols): Update signature.
3024 * psymtab.c (map_matching_symbols_psymtab): Update signature.
3025
7d760051
UW
30262013-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
3027
3028 PR shlibs/8882
3029 * solib-svr4.c (svr4_read_so_list): Skip the vDSO when reading
3030 link map entries.
3031
020f7036
DE
30322013-09-24 Doug Evans <dje@google.com>
3033
3034 * objfiles.c (free_objfile): Move comment.
3035
598402f0
JB
30362013-09-24 Joel Brobecker <brobecker@adacore.com>
3037
3038 * ada-exp.y (string_to_operator): Delete.
3039 (dummy_string_to_ada_operator): Delete.
3040
bf4d6c1c
JB
30412013-09-24 Joel Brobecker <brobecker@adacore.com>
3042
3043 Revert:
3044 * i386-tdep.h (enum amd64_reg_class): New, moved here from
3045 amd64-tdep.c.
3046 (struct gdbarch_tdep): Add fields call_dummy_num_integer_regs,
3047 call_dummy_integer_regs, and classify.
3048 * amd64-tdep.h (amd64_classify): Add declaration.
3049 * amd64-tdep.c (amd64_dummy_call_integer_regs): New static constant.
3050 (amd64_reg_class): Delete, moved to i386-tdep.h.
3051 (amd64_classify): Make non-static. Move declaration to amd64-tdep.h.
3052 Replace call to amd64_classify by call to tdep->classify.
3053 (amd64_push_arguments): Get the list of registers to use for
3054 passing integer parameters from the gdbarch tdep structure,
3055 rather than using a hardcoded one. Replace calls to amd64_classify
3056 by calls to tdep->classify.
3057 (amd64_push_dummy_call): Get the register number used for
3058 the "hidden" argument from tdep->call_dummy_integer_regs.
3059 (amd64_init_abi): Initialize tdep->call_dummy_num_integer_regs
3060 and tdep->call_dummy_integer_regs. Set tdep->classify.
3061
849e9755
JB
30622013-09-24 Joel Brobecker <brobecker@adacore.com>
3063
3064 Revert:
3065 * i386-tdep.h (gdbarch_tdep): Add field memory_args_by_pointer.
3066 * amd64-tdep.c (amd64_push_arguments): Add handling of architectures
3067 where tdep->memory_args_by_pointer is non-zero.
3068
c1459fd6
JB
30692013-09-24 Joel Brobecker <brobecker@adacore.com>
3070
3071 Revert:
3072 * i386-tdep.h (struct gdbarch_tdep): Add new field
3073 integer_param_regs_saved_in_caller_frame.
3074 * amd64-tdep.c (amd64_push_dummy_call): Allocate some memory on
3075 stack if tdep->integer_param_regs_saved_in_caller_frame is set.
3076
20c2e3e0
JB
30772013-09-24 Joel Brobecker <brobecker@adacore.com>
3078
874440b8 3079 * amd64-windows-tdep.c: #include "value.h"
20c2e3e0
JB
3080 (amd64_windows_classify): Delete.
3081 (amd64_windows_passed_by_integer_register)
3082 (amd64_windows_passed_by_xmm_register)
3083 (amd64_windows_passed_by_pointer)
3084 (amd64_windows_adjust_args_passed_by_pointer)
3085 (amd64_windows_store_arg_in_reg, amd64_windows_push_arguments)
3086 (amd64_windows_push_dummy_call): New functions.
3087 (amd64_windows_init_abi): Remove setting of
3088 tdep->call_dummy_num_integer_regs, tdep->call_dummy_integer_regs,
3089 tdep->classify, tdep->memory_args_by_pointer and
3090 tdep->integer_param_regs_saved_in_caller_frame.
3091 Add call to set_gdbarch_push_dummy_call.
3092
82bf32bc
JK
30932013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3094
3095 * dwarf2read.c (open_and_init_dwp_file): Try open_dwp_file also with
3096 objfile->original_name.
3097
24ba069a
JK
30982013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3099
3100 Pass down original filename for objfile.
3101 * coffread.c (coff_symfile_read): Update symbol_file_add_separate call.
3102 * elfread.c (elf_symfile_read): Likewise.
3103 * jit.c (jit_object_close_impl): Update allocate_objfile call, no
3104 longer set ORIGINAL_NAME.
3105 (jit_bfd_try_read_symtab): Update symbol_file_add_from_bfd call.
3106 * jv-lang.c (get_dynamics_objfile): Update allocate_objfile call.
3107 * machoread.c (macho_add_oso_symfile): Add parameter name. Update
3108 symbol_file_add_from_bfd call.
3109 (macho_symfile_read_all_oso): Update two macho_add_oso_symfile calls.
3110 (macho_check_dsym): Add parameter filenamep. Change function comment.
3111 Set *filenamep.
3112 (macho_symfile_read): New variable dsym_filename. Update
3113 macho_check_dsym call. Use it for symbol_file_add_separate.
3114 * objfiles.c (allocate_objfile): Add parameter name. New comment for
3115 it. Use it for objfile->original_name.
3116 (objfile_name): Return OBFD's filename, if available.
3117 * objfiles.h (allocate_objfile): Add new parameter name.
3118 * solib.c (solib_read_symbols): Update symbol_file_add_from_bfd call.
3119 * symfile-mem.c (symbol_file_add_from_memory): Update
3120 symbol_file_add_from_bfd call.
3121 * symfile.c (read_symbols): Update symbol_file_add_separate call, new
3122 comment for it.
3123 (symbol_file_add_with_addrs): New parameter name, add function comment
3124 for it. Remove variable name. Update allocate_objfile call.
3125 (symbol_file_add_separate): New parameter name, add function comment
3126 for it. Update symbol_file_add_with_addrs call.
3127 (symbol_file_add_from_bfd): New parameter name. Update
3128 symbol_file_add_with_addrs call.
3129 (symbol_file_add): Update symbol_file_add_from_bfd call.
3130 (reread_symbols): New variable original_name. Save
3131 objfile->original_name by it.
3132 * symfile.h (symbol_file_add_from_bfd, symbol_file_add_separate): Add
3133 second parameter.
3134
4262abfb
JK
31352013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3136
3137 Code cleanup: Add objfile_name accessor function.
3138 * ada-lang.c (is_known_support_routine): Use objfile_name.
3139 * auto-load.c (source_gdb_script_for_objfile)
3140 (auto_load_objfile_script): Likewise.
3141 * coffread.c (coff_symtab_read, read_one_sym): Likewise.
3142 * dbxread.c (dbx_symfile_read): Likewise.
3143 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
3144 * dwarf2loc.c (locexpr_describe_location_piece): Likewise.
3145 * dwarf2read.c (dwarf2_get_dwz_file, dwarf2_read_index)
3146 (dw2_symtab_iter_next, dw2_expand_symtabs_matching)
3147 (lookup_dwp_signatured_type, lookup_dwo_unit)
3148 (dwarf2_build_psymtabs_hard, scan_partial_symbols, process_queue)
3149 (fixup_go_packaging, process_imported_unit_die, dwarf2_physname)
3150 (read_import_statement, create_dwo_cu, open_and_init_dwp_file)
3151 (lookup_dwo_cutu, read_call_site_scope, dwarf2_ranges_read)
3152 (dwarf2_record_block_ranges, read_common_block, read_typedef)
3153 (read_subrange_type, load_partial_dies, read_partial_die)
3154 (read_addr_index_1, read_str_index, dwarf_decode_lines_1)
3155 (die_containing_type, build_error_marker_type, lookup_die_type)
3156 (follow_die_ref_or_sig, follow_die_ref, dwarf2_fetch_die_loc_sect_off)
3157 (dwarf2_fetch_constant_bytes, follow_die_sig, get_signatured_type)
3158 (get_DW_AT_signature_type, write_psymtabs_to_index)
3159 (save_gdb_index_command): Likewise.
3160 * elfread.c (find_separate_debug_file_by_buildid, elf_symfile_read):
3161 Likewise.
3162 * expprint.c (dump_subexp_body_standard): Likewise.
3163 * gdbtypes.c (type_name_no_tag_or_error): Likewise.
3164 * jit.c (jit_object_close_impl): Use the objfile field name renamed to
3165 original_name.
3166 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New variable
3167 obj_name, use objfile_name for it, use the variable.
3168 (try_thread_db_load_from_pdir, has_libpthread, thread_db_new_objfile):
3169 Use objfile_name.
3170 * machoread.c (macho_symtab_read, macho_check_dsym)
3171 (macho_symfile_relocate): Likewise.
3172 * maint.c (maintenance_translate_address): Likewise.
3173 * minidebug.c (find_separate_debug_file_in_section): Likewise.
3174 * minsyms.c (install_minimal_symbols): Likewise.
3175 * objfiles.c (allocate_objfile): Use the objfile field name renamed to
3176 original_name.
3177 (filter_overlapping_sections): Use objfile_name.
3178 (objfile_name): New function.
3179 * objfiles.h (struct objfile): Rename field name to original_name.
3180 (objfile_name): New prototype.
3181 * printcmd.c (sym_info, address_info): Use objfile_name.
3182 * probe.c (parse_probes, collect_probes, compare_probes)
3183 (info_probes_for_ops): Likewise.
3184 * progspace.c (clone_program_space): Likewise.
3185 * psymtab.c (require_partial_symbols, dump_psymtab, allocate_psymtab)
3186 (maintenance_info_psymtabs): Likewise.
3187 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
3188 (source_section_scripts): Likewise.
3189 * python/py-objfile.c (objfpy_get_filename): Likewise.
3190 * python/py-progspace.c (pspy_get_filename): Likewise.
3191 * solib-aix.c (solib_aix_get_toc_value): Likewise.
3192 * solib-som.c (match_main, som_solib_section_offsets): Likewise.
3193 * solib.c (solib_read_symbols): Likewise.
3194 * stabsread.c (scan_file_globals): Likewise.
3195 * stap-probe.c (handle_stap_probe): Likewise.
3196 * symfile.c (symbol_file_clear, separate_debug_file_exists)
3197 (find_separate_debug_file_by_debuglink): Likewise.
3198 (reread_symbols): Likewise. Use the objfile field name renamed to
3199 original_name.
3200 (allocate_symtab): Use objfile_name.
3201 * symmisc.c (print_symbol_bcache_statistics, print_objfile_statistics)
3202 (dump_objfile, dump_msymbols, dump_symtab_1)
3203 (maintenance_print_msymbols, maintenance_print_objfiles)
3204 (maintenance_info_symtabs, maintenance_check_symtabs): Likewise.
3205 * target.c (target_translate_tls_address, target_info): Likewise.
3206 * xcoffread.c (xcoff_initial_scan): Make variable name const. Use
3207 objfile_name.
3208
4721dc18
JK
32092013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3210
3211 Code cleanup.
3212 * probe.c (parse_probes): Rename variable objfile_name to
3213 objfile_namestr.
3214
a61d6db8
JK
32152013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3216
3217 Remove solib-sunos.c.
3218 * Makefile.in (ALLDEPFILES): Remove solib-sunos.c.
3219 * config/m68k/obsd.mh (NATDEPFILES): Remove solib-sunos.o.
3220 * objfiles.c (rt_common_objfile): Remove.
3221 (free_objfile): Remove rt_common_objfile comparison.
3222 * objfiles.h (rt_common_objfile): Remove.
3223 * solib-sunos.c: Remove.
3224 * symfile.c (reread_symbols): Remove solib-sunos.c comment.
3225
2659903b
JK
32262013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3227
3228 Remove a.out NetBSD and OpenBSD hosts.
3229 * NEWS (Removed native configurations): New.
3230 * config/arm/nbsdaout.mh: Remove.
3231 * config/i386/nbsdaout.mh: Remove.
3232 * config/i386/obsdaout.mh: Remove.
3233 * config/m68k/nbsdaout.mh: Remove.
3234 * config/sparc/nbsdaout.mh: Remove.
3235 * config/vax/nbsdaout.mh: Remove.
3236 * configure.host (arm*-*-netbsd*, i[34567]86-*-netbsd*)
3237 (i[34567]86-*-openbsd[0-2].*, i[34567]86-*-openbsd3.[0-3])
3238 (m68*-*-netbsd*, sparc-*-netbsd*, vax-*-netbsd*): Add them to obsolete
3239 error.
3240 (arm*-*-netbsd*, i[34567]86-*-netbsd*, i[34567]86-*-openbsd[0-2].*)
3241 (i[34567]86-*-openbsd3.[0-3], m68*-*-netbsd*, sparc-*-netbsdaout*)
3242 (sparc-*-netbsd*, vax-*-netbsd*): Remove.
3243
f60e2d5c
TT
32442013-09-23 Tom Tromey <tromey@redhat.com>
3245
3246 * linespec.c (struct minsym_and_objfile): Remove.
3247 (minsym_and_objfile_d): Remove.
3248 (struct linespec, struct collect_info, linespec_parse_basic)
3249 (convert_linespec_to_sals, linespec_parser_delete, decode_objc)
3250 (compare_msymbols, find_method, find_function_symbols)
3251 (find_linespec_symbols, struct collect_minsyms, compare_msyms)
3252 (add_minsym, search_minsyms_for_name): Update.
3253
d3eaaf66
AB
32542013-09-23 Andrew Burgess <aburgess@broadcom.com>
3255
3256 * regcache.c: Add include of valprint.h.
3257 (dump_endian_bytes): Delete.
3258 (regcache_dump): Use print_hex_chars not dump_endian_bytes.
3259
2cc762b5
AB
32602013-09-23 Andrew Burgess <aburgess@broadcom.com>
3261
3262 * sh64-tdep.c (sh64_do_fp_register): Use print_hex_chars.
3263
96181529
PA
32642013-09-19 Pedro Alves <palves@redhat.com>
3265
3266 * breakpoint.c (remove_threaded_breakpoints): Skip non-user
3267 breakpoints.
3268
9b3f3ee6
TS
32692013-09-19 Pedro Alves <palves@redhat.com>
3270 Thomas Schwinge <thomas@codesourcery.com>
3271 Yue Lu <hacklu.newborn@gmail.com>
3272
3273 * gnu-nat.c (gnu_read_inferior, gnu_write_inferior): Make static.
3274 Take a gdb_byte pointer instead of a char pointer.
3275
3276 * gnu-nat.c (gnu_xfer_memory): Adjust interface as
3277 gnu_xfer_partial helper.
3278 (gnu_xfer_partial): New function.
3279 (gnu_target): Don't install a deprecated_xfer_memory hook.
3280 Install a to_xfer_partial hook.
3281
69150c3d
JK
32822013-09-19 Jan Kratochvil <jan.kratochvil@redhat.com>
3283
3284 Constification.
3285 * main.c (captured_main): Replace catch_command_errors by
3286 catch_command_errors_const. Twice.
3287 * symfile.c (symbol_file_add_main_1): Make args parameter const.
3288 (symbol_file_add): Make name parameter const.
3289 (symbol_file_add_main, symbol_file_add_main_1): Make args parameter const.
3290 (symfile_bfd_open): Make name parameter const, rename it to cname. Add
3291 variable name. Change their usage accordingly.
3292 * symfile.h (symbol_file_add, symfile_bfd_open): Make first parameter
3293 const.
3294 (symbol_file_add_main): Make args parameter const.
3295
086850b2
UW
32962013-09-18 Raunaq Bathija <raunaq12@in.ibm.com>
3297 Ulrich Weigand <uweigand@de.ibm.com>
3298
3299 * xcoffread.c (struct coff_symbol): Use CORE_ADDR as type
3300 of c_value member.
3301 (read_xcoff_symtab): Use CORE_ADDR as type of fcn_start_addr.
3302
ca08a94c 33032013-09-18 Pedro Alves <palves@redhat.com>
d255f61f 3304 Yue Lu <hacklu.newborn@gmail.com>
ca08a94c
PA
3305
3306 * gnu-nat.c (inf_validate_procs, gnu_wait, gnu_resume)
3307 (gnu_create_inferior)
3308 (gnu_attach, gnu_thread_alive, gnu_pid_to_str, cur_thread)
3309 (set_sig_thread_cmd): Use the lwpid field of ptids to
3310 store/extract thread ids instead of the tid field.
3311 * i386gnu-nat.c (gnu_fetch_registers): Adjust.
3312
e4c6a2c4
AB
33132013-09-18 Andrew Burgess <aburgess@broadcom.com>
3314
3315 * infcmd.c (default_print_one_register_info): Add detection of
3316 optimized out values.
3317 (default_print_registers_info): Switch to using
3318 get_frame_register_value.
3319
58c48e72
MM
33202013-09-18 Markus Metzger <markus.t.metzger@intel.com>
3321
3322 * infrun.c (handle_inferior_event): Check if we know the
3323 function start address before setting a resume breakpoint.
3324
c8d37639
PA
33252013-09-18 Pedro Alves <palves@redhat.com>
3326
3327 * gnu-nat.c (set_sig_thread_cmd): Compare the thread's ptid to
3328 minus_one_ptid instead of looking at the ptid's tid field and
3329 comparing that to -1.
3330
71926e28
AB
33312013-09-18 Andrew Burgess <aburgess@broadcom.com>
3332
3333 * main.h (get_gdb_program_name): Remove extra whitespace.
3334
c88a1531
AB
33352013-09-18 Andrew Burgess <aburgess@broadcom.com>
3336
3337 * main.h (get_gdb_program_name): Add declaration.
3338 * main.c (get_gdb_program_name): Add definition.
3339
4390d890
DE
33402013-09-17 Doug Evans <dje@google.com>
3341
3342 * dwarf2read.c: Move definitions of complaint functions to after
3343 forward declarations of local functions.
3344
49fa26b0
PA
33452013-09-17 Muhammad Waqas <mwaqas@codesourcery.com>
3346 Pedro Alves <palves@redhat.com>
3347
3348 PR gdb/11568
3349 * breakpoint.c (remove_threaded_breakpoints): New function.
3350 (_initialize_breakpoint): Attach remove_threaded_breakpoints
3351 as thread_exit observer.
3352
08d72866
PA
33532013-09-17 Pedro Alves <palves@redhat.com>
3354
3355 PR gdb/15911
3356 * ada-tasks.c (task_command_1): Adjust call to print_stack_frame.
3357 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd):
3358 * corelow.c (core_open):
3359 * frame.h (print_stack_frame, print_frame_info): New
3360 'set_current_sal' parameter.
3361 * infcmd.c (finish_command, kill_command): Adjust call to
3362 print_stack_frame.
3363 * inferior.c (inferior_command): Likewise.
3364 * infrun.c (normal_stop): Likewise.
3365 * linux-fork.c (linux_fork_context): Likewise.
3366 * record-full.c (record_full_goto_entry, record_full_restore):
3367 Likewise.
3368 * remote-mips.c (common_open): Likewise.
3369 * stack.c (print_stack_frame): New 'set_current_sal' parameter.
3370 Use it.
3371 (print_frame_info): New 'set_current_sal' parameter. Set the last
3372 displayed sal depending on the new paremeter instead of looking at
3373 print_what.
3374 (backtrace_command_1, select_and_print_frame, frame_command)
3375 (current_frame_command, up_command, down_command): Adjust call to
3376 print_stack_frame.
3377 * thread.c (print_thread_info, restore_selected_frame)
3378 (do_captured_thread_select): Adjust call to print_stack_frame.
3379 * tracepoint.c (tfind_1): Likewise.
3380 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
3381 (mi_cmd_stack_info_frame): Likewise.
3382 * mi/mi-interp.c (mi_on_normal_stop): Likewise.
3383 * mi/mi-main.c (mi_cmd_exec_return, mi_cmd_trace_find): Likewise.
3384
6bc305f5
SDJ
33852013-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
3386
3387 * value.c (isvoid_internal_fn): Replace "parameter" with
3388 "argument".
3389
0a7cfe2c
SS
33902013-09-16 Stan Shebs <stan@codesourcery.com>
3391
3392 * README: Update references to writing code for GDB.
3393 * configure.ac (build_warnings): Remove obsolete comment.
3394 * configure: Regenerate.
3395 * gdbarch.sh: Remove references to gdbint.texinfo.
3396 * gdbarch.h: Regenerate.
3397 * gdbtypes.c (objfile_type): Remove comments referencing internals
3398 manual and D10V.
3399
a280dbd1
SDJ
34002013-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
3401
3402 * NEWS: Mention new convenience function $_isvoid.
3403 * value.c (isvoid_internal_fn): New function.
3404 (_initialize_values): Add new convenience function $_isvoid.
3405
04a83fee
PM
34062013-09-16 Pierre Muller <muller@sourceware.org>
3407
3408 * arm-linux-tdep.c: Add "elf/common.h" header.
3409 Remove AT_HWCAP macro definintion as it is provided in
3410 added include file.
3411 * s390-tdep.c: Remove system header <elf.h>
3412 Add "elf/common.h" header for AT_HWCAP definition.
3413 (s390_core_read_description): Use correct CORE_ADDR
3414 for hwcap local variable used as third parameter
3415 of function target_auxv_search.
3416
88505fac
PM
34172013-09-14 Pierre Muller <muller@sourceware.org>
3418 Tom Tromey <tromey@redhat.com>
3419 Pedro Alves <palves@redhat.com>
3420
3421 * common/filestuff.c (gdb_fopen_cloexec): Do not try to use "e"
3422 mode if operating system doesn't know O_CLOEXEC.
3423
d3846e71
JK
34242013-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3425
3426 Code cleanup.
3427 * symfile.c (reread_symbols): Move variable obfd_filename to a more
3428 inner block.
3429
4ac33720
UW
34302013-09-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
3431
3432 * NEWS: Mention TDB support.
3433 * features/s390-tdb.xml: New file.
3434 * features/s390-te-linux64.xml: New file.
3435 * features/s390x-te-linux64.xml: New file.
3436 * features/Makefile (WHICH): Add new tdescs above.
3437 (s390-te-linux64-expedite): Set.
3438 (s390x-te-linux64-expedite): Set.
3439 * features/s390-te-linux64.c: New file (generated).
3440 * features/s390x-te-linux64.c: New file (generated).
3441 * regformats/s390-te-linux64.dat: New file (generated).
3442 * regformats/s390x-te-linux64.dat: New file (generated).
3443 * s390-tdep.h (HWCAP_S390_HIGH_GPRS): Define.
3444 (HWCAP_S390_TE): Likewise.
3445 (S390_TDB_DWORD0_REGNUM): Likewise.
3446 (S390_TDB_DWORD0_REGNUM): Likewise.
3447 (S390_TDB_ABORT_CODE_REGNUM): Likewise.
3448 (S390_TDB_CONFLICT_TOKEN_REGNUM): Likewise.
3449 (S390_TDB_ATIA_REGNUM): Likewise.
3450 (S390_TDB_R0_REGNUM): Likewise.
3451 (S390_TDB_R1_REGNUM): Likewise.
3452 (S390_TDB_R2_REGNUM): Likewise.
3453 (S390_TDB_R3_REGNUM): Likewise.
3454 (S390_TDB_R4_REGNUM): Likewise.
3455 (S390_TDB_R5_REGNUM): Likewise.
3456 (S390_TDB_R6_REGNUM): Likewise.
3457 (S390_TDB_R7_REGNUM): Likewise.
3458 (S390_TDB_R8_REGNUM): Likewise.
3459 (S390_TDB_R9_REGNUM): Likewise.
3460 (S390_TDB_R10_REGNUM): Likewise.
3461 (S390_TDB_R11_REGNUM): Likewise.
3462 (S390_TDB_R12_REGNUM): Likewise.
3463 (S390_TDB_R13_REGNUM): Likewise.
3464 (S390_TDB_R14_REGNUM): Likewise.
3465 (S390_TDB_R15_REGNUM): Likewise.
3466 (S390_NUM_REGS): Increase.
3467 (S390_IS_TDBREGSET_REGNUM): New macro.
3468 (s390_regmap_tdb): Declare.
3469 (s390_sizeof_tdbregset): Define.
3470 (tdesc_s390_te_linux64): Declare.
3471 (tdesc_s390x_te_linux64): Likewise.
3472 * s390-tdep.c: Add includes for "auxv.h", <elf.h>,
3473 "features/s390-te-linux64.c", and "features/s390x-te-linux64.c".
3474 (s390_regmap_tdb): New regmap.
3475 (s390_supply_tdb_regset): New function.
3476 (s390_tdb_regset): New regset.
3477 (s390_linux64v2_regset_sections): Add TDB regset to list.
3478 (s390x_linux64v2_regset_sections): Likewise.
3479 (s390_regset_from_core_section): Recognize TDB core note section.
3480 (s390_core_read_description): If HWCAP indicates TE support,
3481 select tdesc_s390_te_linux64 or tdesc_s390_s390x_te_linux64.
3482 (s390_gdbarch_init): Handle TDB regset.
3483 (_initialize_s390_tdep): Initialize new tdescs.
3484 * s390-nat.c (HWCAP_S390_HIGH_GPRS): Remove define.
3485 (have_regset_tdb): New variable.
3486 (s390_native_supply): Support register invalidation.
3487 (fetch_regset): Invalidate registers if ptrace yields ENODATA.
3488 (check_regset): Treat ENODATA as "regset exists".
3489 (s390_linux_fetch_inferior_registers): Add TDB.
3490 (s390_read_description): Check for TDB existence and select
3491 appropriate tdesc.
3492 * gdbserver/Makefile.in (clean): Add removal of new makefile
3493 targets.
3494 (s390-te-linux64.c): New makefile target.
3495 (s390x-te-linux64.c): Likewise.
3496 * gdbserver/configure.srv (srv_regobj): Append new objects
3497 s390-te-linux64.o and s390x-te-linux64.o.
3498 (srv_xmlfiles): Append new files s390-te-linux64.xml,
3499 s390x-te-linux64.xml, and s390-tdb.xml.
3500 * gdbserver/linux-s390-low.c (init_registers_s390_te_linux64): New
3501 declaration.
3502 (tdesc_s390_te_linux64): Likewise.
3503 (init_registers_s390x_te_linux64): Likewise.
3504 (tdesc_s390x_te_linux64): Likewise.
3505 (s390_check_regset): Treat ENODATA as "regset exists".
3506 (s390_arch_setup): Add TDB regset support.
3507 (initialize_low_arch): Initialize registers for new tdescs.
3508
2ccd1468
UW
35092013-09-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
3510
3511 * s390-tdep.h (S390_IS_GREGSET_REGNUM): New macro.
3512 (S390_IS_FPREGSET_REGNUM): New macro.
3513 * s390-tdep.c (s390_dwarf_regmap): Make const.
3514 (regnum_is_gpr_full): New function for replacing repeated code.
3515 (s390_pseudo_register_name): Use it.
3516 (s390_pseudo_register_type): Likewise.
3517 (s390_pseudo_register_read): Likewise.
3518 (s390_pseudo_register_write): Likewise.
3519 (s390_unwind_pseudo_register): Likewise.
3520 (s390_regmap_gregset): New format for regmap.
3521 (s390x_regmap_gregset): Likewise.
3522 (s390_regmap_fpregset): Likewise.
3523 (s390_regmap_upper): Likewise.
3524 (s390_regmap_last_break): Likewise.
3525 (s390_regmap_system_call): Likewise.
3526 (s390_supply_regset): Adjust to new regmap format.
3527 (s390_collect_regset): Likewise.
3528 * s390-nat.c (s390_native_supply): Adjust to new regmap format.
3529 (s390_native_collect): Likewise.
3530 (supply_gregset): Likewise.
3531 (fill_gregset): Likewise.
3532 (supply_fpregset): Likewise.
3533 (fill_fpregset): Likewise.
3534 (fetch_regset): Likewise.
3535 (store_regset): Likewise.
3536 (s390_linux_fetch_inferior_registers): Likewise.
3537 (s390_linux_fetch_inferior_registers): Likewise.
3538
1aa4cd77
AP
35392013-09-12 Andrew Pinski <apinski@cavium.com>
3540
3541 * aarch64-linux-nat.c (aarch64_linux_set_debug_regs): Zero out regs.
3542
d91fab15
UW
35432013-09-10 Andreas Arnez <arnez@linux.vnet.ibm.com>
3544
3545 * config/s390/s390.mh (NATDEPFILES): Add linux-waitpid.o.
3546
5a5d8ead
AB
35472013-09-09 Andrew Burgess <aburgess@broadcom.com>
3548
3549 * top.c (quit_confirm): Remove use of deprecated_init_ui_hook.
3550
1385f66c
PA
35512013-09-06 Pedro Alves <palves@redhat.com>
3552
3553 * remote-sim.c (dump_mem, gdbsim_fetch_register)
3554 (gdbsim_store_register, gdbsim_kill, gdbsim_load)
3555 (gdbsim_create_inferior, gdbsim_open, gdbsim_close)
3556 (gdbsim_detach, gdbsim_resume_inferior, gdbsim_wait)
3557 (gdbsim_files_info, gdbsim_mourn_inferior): Send debug output to
3558 gdb_stdlog.
3559
146ec4db
PA
35602013-09-06 Pedro Alves <palves@redhat.com>
3561
3562 * remote-sim.c (dump_mem): Constify buf parameter.
3563 gdbsim_xfer_inferior_memory): Rename to ...
3564 (gdbsim_xfer_memory): ... this. Adjust interface as
3565 target_xfer_partial helper.
3566 (gdbsim_xfer_partial): New function.
3567 (init_gdbsim_ops): Don't install a deprecated_xfer_memory hook.
3568 Install a to_xfer_partial hook. Send output to gdb_stdlog.
3569
fcde0081
PA
35702013-09-06 Pedro Alves <palves@redhat.com>
3571
3572 * remote-sim.c (gdbsim_xfer_inferior_memory): Use
3573 host_address_to_string, and send debug output to gdb_stdlog.
3574
749c8b38
RW
35752013-09-06 Ricard Wanderlof <ricardw@axis.com>
3576
3577 * Makefile.in (ALL_TARGET_OBS): Add cris-linux-tdep.o.
3578 * configure.tgt: Add cris-linux-tdep.o and linux-tdep.o to
3579 gdb_target_obs for cris target.
3580 * cris-tdep.c (struct gdbarch_tdep): Move to cris-tdep.h.
3581 (cris_gdbarch_init): Move calls to
3582 set_gdbarch_fetch_tls_load_module_address and
3583 set_solib_svr4_fetch_link_map_offsets to cris-linux-tdep.c.
3584 Add call to gdbarch_init_osabi.
3585 * cris-linux-tdep.c: New file.
3586 * cris-tdep.h: New file.
3587
43df09d9
AB
35882013-09-06 Andrew Burgess <aburgess@broadcom.com>
3589
3590 * tui/tui-io.c (tui_initialize_io): Remove legacy comment referring
3591 to deprecated_init_ui_hook.
3592
4d09c5b4
AB
35932013-09-06 Andrew Burgess <aburgess@broadcom.com>
3594
3595 * cli/cli-interp.c (_initialize_cli_interp): Add a
3596 command_loop_proc to interp_procs.
3597 * event-top.c (cli_command_loop): Change signature to match
3598 interp_command_loop_ftype.
3599 * event-top.h (cli_command_loop): Same.
3600 * interps.c (interp_new): Require every interpreter to have a
3601 command_loop_proc.
3602 (current_interp_command_loop): Just call the command_loop_proc on
3603 the current interpreter.
3604 * tui/tui-interp.c (_initialize_tui_interp): Add a
3605 command_loop_proc to interp_procs.
3606
8eb3d7b6
RW
36072013-09-06 Ricard Wanderlof <ricardw@axis.com>
3608
3609 * cris-tdep.c (cris_gdbarch_init): Add call to
3610 get_gdbarch_fetch_tls_load_module_address.
3611
18b3c2f5
RW
36122013-09-06 Ricard Wanderlof <ricardw@axis.com>
3613
3614 * cris-tdep.c (cris_elf_greg_t): Rename from elf_greg_t.
3615 (cris_elf_gregset_t): Rename from elf_gregset_t.
3616 (crisv32_elf_gregset_t): Adjust.
3617 (cris_supply_gregset, fetch_core_registers): Adjust.
3618
dc8636ef
RW
36192013-09-06 Ricard Wanderlof <ricardw@axis.com>
3620
3621 * cris-tdep.c (elf_greg_t): Change typedef to unsigned char[4]
3622
257e6d53
AB
36232013-09-05 Andrew Burgess <aburgess@broadcom.com>
3624
1581d8a7 3625 * defs.h (deprecated_command_loop_hook): Remove, including
257e6d53 3626 references in comments.
1581d8a7 3627 * interps.c (current_interp_command_loop): No longer use
257e6d53
AB
3628 deprecated_command_loop_hook.
3629 (clear_interpreter_hooks): Remove deprecated_command_loop_hook
3630 setup.
1581d8a7 3631 * top.c (deprecated_command_loop_hook): Remove.
257e6d53 3632
7c33b57c
PA
36332013-09-05 Pedro Alves <palves@redhat.com>
3634
3635 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): 'dwarf_regnum'
3636 local is now int instead of ULONGEST. Print it with %d
3637 instead of paddress.
3638
9f8edbd5
TG
36392013-09-05 Tristan Gingold <gingold@adacore.com>
3640
3641 * MAINTAINERS: Remove avr maintainership.
3642
d5b495b4
PA
36432013-09-05 Pedro Alves <palves@redhat.com>
3644
3645 * findvar.c (value_of_register): Rework in terms of
3646 value_of_register_lazy.
3647
40b91786
MB
36482013-09-05 Muhammad Bilal <mbilal@codesourcery.com>
3649
3650 * symfile.c (add_symbol_file_command): Remove trailing
3651 whitespaces and blank line after comment.
3652
6eed1678
PA
36532013-09-05 Pedro Alves <palves@redhat.com>
3654
3655 * tui/tui-regs.c (tui_register_format): Don't look at the
3656 register's name here. Return string representing register
3657 value instead of storing it in the data element.
3658 (tui_get_register): Compare register string representations
3659 instead of register value states and contents.
3660
8eb6bda2
PA
36612013-09-05 Pedro Alves <palves@redhat.com>
3662
3663 PR tui/15933
3664 * tui/tui-regs.c (tui_show_registers): Show registers of the
3665 selected frame, not the current frame.
3666
48b1f08c
RW
36672013-09-05 Ricard Wanderlof <ricardw@axis.com>
3668
3669 * MAINTAINERS (Write After Approval): Add myself to the list.
3670
89e63ee4
DE
36712013-09-04 Doug Evans <dje@google.com>
3672
3673 * dwarf2read.c (queue_and_load_all_dwo_tus): New function.
3674 (queue_and_load_dwo_tu): New function.
3675 (lookup_dwo_signatured_type): Set per_cu.tu_read.
3676 (maybe_queue_comp_unit): Rename this_cu argument to dependent_cu.
3677 Make dependent_cu optional.
3678 (dw2_do_instantiate_symtab): If we just loaded a CU from a DWO,
3679 and an older .gdb_index is in use, queue and load all its TUs too.
3680
492c0ab7
JK
36812013-09-04 Jan Kratochvil <jan.kratochvil@redhat.com>
3682
3683 Code cleanup: Change OPF_DISABLE_REALPATH to OPF_RETURN_REALPATH.
3684 * cli/cli-cmds.c (find_and_open_script): Add OPF_RETURN_REALPATH to
3685 variable search_flags.
3686 * defs.h (OPF_DISABLE_REALPATH): Rename to ...
3687 (OPF_RETURN_REALPATH): ... here.
3688 * dwarf2read.c (try_open_dwop_file): Set OPF_RETURN_REALPATH for flags.
3689 * exec.c (exec_file_attach): Remove OPF_DISABLE_REALPATH from openp
3690 call. Twice.
3691 * nto-tdep.c (nto_find_and_open_solib): Add OPF_RETURN_REALPATH for
3692 openp call.
3693 * solib.c (solib_find): Likewise. Four times.
3694 * source.c (openp): Change OPF_DISABLE_REALPATH to OPF_RETURN_REALPATH
3695 in the function comment and for the realpath_fptr variable.
3696 (source_full_path_of): Add OPF_RETURN_REALPATH for openp call.
3697 (find_and_open_source): Likewise. Twice.
3698 * symfile.c (symfile_bfd_open): Likewise, also twice.
3699
23a44de8
DE
37002013-09-04 Doug Evans <dje@google.com>
3701
3702 * progspace.c (save_current_space_and_thread): Remove unnecessary
3703 call to save_current_inferior.
3704
47061676
AB
37052013-09-04 Andrew Burgess <aburgess@broadcom.com>
3706
3707 * sh64-tdep.c (sh64_do_register): Return after printing message
3708 about unavailable register contents.
3709
41dc8db8
MB
37102013-09-04 Muhammad Bilal <mbilal@codesourcery.com>
3711 Pedro Alves <palves@redhat.com>
3712
3713 * symfile.c (add_symbol_file_command): Error out on unknown
ef1bc9e7
AM
3714 option. Handle EXPECTING_SEC_ADDR/EXPECTING_SEC_NAME before '-'
3715 options and collapse into single conditional branch.
41dc8db8 3716
07107ca6
LM
37172013-09-03 Luis Machado <lgustavo@codesourcery.com>
3718
a7ea61cf 3719 * inf-child.c (inf_child_follow_fork): New parameter
07107ca6
LM
3720 detach_fork.
3721 * inf-ptrace.c (inf_ptrace_follow_fork): Likewise.
3722 * inf-ttrace.c (inf_ttrace_follow_fork): Likewise.
3723 * inferior.h (detach_fork): Remove.
3724 * infrun.c (detach_fork): Adjust comment and make it
3725 static.
3726 (follow_fork): Pass detach_fork parameter to
3727 target_follow_fork.
3728 * linux-nat.c (linux_child_follow_fork): New parameter
3729 detach_fork.
3730 * target.c (target_follow_fork): New parameter detach_fork.
3731 Pass detach_fork as parameter and print its value.
3732 * target.h (struct target_ops) <to_follow_fork>: New int
3733 parameter.
3734 (target_follow_fork): New parameter detach_fork.
3735
3bec2768
JB
37362013-09-03 Joel Brobecker <brobecker@adacore.com>
3737
3738 * solib-ia64-hpux.c (ia64_hpux_relocate_section_addresses):
3739 Replace sec->bfd by sec->the_bfd_section->owner.
3740
c01cbb3d
YQ
37412013-09-03 Yao Qi <yao@codesourcery.com>
3742
3743 * linux-tdep.c (linux_is_uclinux): New function. Code moved
3744 from linux_has_shared_address_space.
3745 (linux_has_shared_address_space): Call linux_is_uclinux.
3746 * linux-tdep.h (linux_is_uclinux): Declare.
3747 * m68klinux-tdep.c (m68k_linux_get_sigtramp_info): Call
3748 linux_is_uclinux.
3749
7b00db47
YQ
37502013-09-03 Yao Qi <yao@codesourcery.com>
3751
3752 * config/djgpp/fnchange.lst: Remove entry of
3753 i386-interix-nat.c and i386-interix-tdep.c.
3754 * configure.ac: Remove '*-*-interix*'.
3755 * configure: Re-generated.
3756 * defs.h (enum gdb_osabi): Remove GDB_OSABI_INTERIX.
3757 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Remove
3758 obsolete comments.
3759 * osabi.c (gdb_osabi_names): Remove "Interix".
3760
0f9741f2
YQ
37612013-09-03 Yao Qi <yao@codesourcery.com>
3762
3763 * arch-utils.c: Fix typo in the comment to gdbarch_update_p.
3764
1e038f67
MM
37652013-09-02 Markus Metzger <markus.t.metzger@intel.com>
3766
3767 * record.h (record_print_flag) <record_print_src_line,
3768 record_print_insn_range>: Rename into ...
3769 (record_print_flag) <record_print_src_line,
3770 record_print_insn_range>: ... this. Update all users.
3771
9e52adf9
PM
37722013-09-02 Pierre Muller <muller@sourceware.org>
3773
3774 * windows-nat.c (windows_xfer_memory): Handle ERROR_PARTIAL_COPY
3775 error code.
3776
a2388568
PM
37772013-09-02 Pierre Muller <muller@sourceware.org>
3778
3779 * windows-nat.c (windows_xfer_memory): Fix compilation failure
3780 by use of plongest function.
3781
9058cc3a
TG
37822013-09-02 Tristan Gingold <gingold@adacore.com>
3783
3784 * NEWS: Add entry mentioning support for native Windows x64
3785 SEH data.
3786
3787 * amd64-windows-tdep.c: #include "objfiles.h", "frame-unwind.h",
3788 "coff/internal.h", "coff/i386.h", "coff/pe.h" and "libcoff.h".
3789 (struct amd64_windows_frame_cache): New struct.
3790 (amd64_windows_w2gdb_regnum): New global.
3791 (pc_in_range, amd64_windows_frame_decode_epilogue)
3792 (amd64_windows_frame_decode_insns, amd64_windows_find_unwind_info)
3793 (amd64_windows_frame_cache, amd64_windows_frame_prev_register)
3794 (amd64_windows_frame_this_id): New functions.
3795 (amd64_windows_frame_unwind): New static global.
3796 (amd64_windows_skip_prologue): New function.
3797 (amd64_windows_init_abi): Call frame_unwind_prepend_unwinder
3798 with amd64_windows_frame_unwind. Call set_gdbarch_skip_prologue
3799 with amd64_windows_skip_prologue.
3800
3161820b 38012013-08-30 Joel Brobecker <brobecker@adacore.com>
3802
3803 GDB 7.6.1 released.
3804
02457c76
PA
38052013-08-30 Pedro Alves <palves@redhat.com>
3806
3807 * mi/mi-main.c (mi_cmd_trace_find): Use LOC_AND_ADDRESS instead of
3808 SRC_AND_LOC.
3809
e0162910
PA
38102013-08-30 Pedro Alves <palves@redhat.com>
3811
3812 * thread.c (restore_selected_frame): Use SRC_AND_LOC, and change
3813 warning text.
3814
6391ce51
PA
38152013-08-30 Pedro Alves <palves@redhat.com>
3816
3817 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd):
3818 Adjust arguments to print_stack_frame.
3819
d1da0587
PA
38202013-08-30 Pedro Alves <palves@redhat.com>
3821
3822 * ada-tasks.c (task_command_1): Write SRC_AND_LOC instead '1'.
3823
adfd8245
PA
38242013-08-30 Pedro Alves <palves@redhat.com>
3825
3826 * frame.h (show_and_print_stack_frame): Delete declaration.
3827
96d9056e
PM
38282013-08-30 Phil Muldoon <pmuldoon@redhat.com>
3829
3830 PR python/15461
96d9056e
PM
3831 * python/py-arch.c (ARCHPY_REQUIRE_VALID): New macro.
3832 (archpy_name): Check for valid architecture.
3833 (archpy_disassemble): Ditto.
3834
11cb8762
JB
38352013-08-29 Joel Brobecker <brobecker@adacore.com>
3836
3837 * rs6000-nat.c (rs6000_ptrace32): Cast "addr" to "uintptr_t"
3838 instead of "long long" in call to ptrace64.
3839
1af12a7d
AB
38402013-08-29 Andrew Burgess <aburgess@broadcom.com>
3841
3842 * mi/mi-interp.c (mi_command_loop): Change signature to match
3843 interp_command_loop_ftype.
3844 (mi1_command_loop): Remove.
3845 (mi2_command_loop): Remove.
3846 (mi3_command_loop): Remove.
3847 (mi_interpreter_resume): Remove setting of
3848 deprecated_command_loop_hook.
3849 (_initialize_mi_interp): Set mi_command_loop as the command loop
3850 callback.
3851
acc900c2
SA
38522013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
3853
3854 * valops.c (do_search_struct_field): Pass v2 instead of base_type to
3855 value_type.
3856
548b762d
SA
38572013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
3858
3859 * value.c (allocate_value_contents): Make static.
3860 * value.h (allocate_value_contents): Remove prototype.
3861
08039c9e
SA
38622013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
3863
3864 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use value_at_lazy instead
3865 of assembling value via allocate_value_lazy and attribute setter.
3866 * findvar.c (default_read_var_value): Use value_at_lazy instead of
3867 assembling value via allocate_value_lazy and attribute setter.
3868 * valops.c (do_search_struct_field): Use value_at_lazy instead of
3869 assembling value via allocate_value_lazy and attribute setter.
3870
314c7de9
SA
38712013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
3872
3873 * value.c (value_from_contents_and_address): Replace allocate_value and
3874 memcpy with value_from_contents.
3875
8f28f522
PM
38762013-08-29 Phil Muldoon <pmuldoon@redhat.com>
3877
3878 * python/py-framefilter.c (py_print_frame): Remove usage of
3879 PyString_AsString. Use python_string_to_host_string instead.
3880 Refactor function to work with a string as a new allocation
3881 instead of a pointer.
3882 (py_print_frame): Ditto.
3883 * python/lib/gdb/frames.py (return_list): Cain iterators together
3884 instead of adding them as a list.
3885 (_sort_list): Call return_list, and remove duplicate code.
3886 (execute_frame_filters): Convert iterator to a list with list().
3887 * python/lib/gdb/command/frame_filters.py
3888 (SetFrameFilterPriority._set_filter_priority): Convert priority
3889 attribute to an integer.
3890 * python/lib/gdb/FrameIterator.py (FrameIterator.next): Define
3891 wrapper function __next__.
3892 * python/lib/gdb/FrameDecorator.py: If basestring not defined,
3893 define as "str".
3894
8ee002df
PM
38952013-08-29 Phil Muldoon <pmuldoon@redhat.com>
3896
3897 PR python/15752
8ee002df
PM
3898 * python/py-framefilter.c (apply_frame_filter): Check
3899 gdb_python_initialized. Exit if the Python frame-filter code
3900 cannot be initialized.
3901
af4c453a
PM
39022013-08-29 Phil Muldoon <pmuldoon@redhat.com>
3903
3904 PR cli/15842
af4c453a
PM
3905 * top.c (print_gdb_version): Remove erroneous newline after help
3906 text.
3907
bf8793bb
YQ
39082013-08-29 Yao Qi <yao@codesourcery.com>
3909
3910 * varobj.c (install_dynamic_child): Remove trailing space.
3911 Add one blank line after variable declaration.
3912
1f0c4988
JK
39132013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3914
3915 PR gdb/15415
3916 * corefile.c (get_exec_file): Use exec_filename.
3917 * defs.h (OPF_DISABLE_REALPATH): New definition. Add new comment.
3918 * exec.c (exec_close): Free EXEC_FILENAME.
3919 (exec_file_attach): New variable canonical_pathname. Use
3920 OPF_DISABLE_REALPATH. Call gdb_realpath explicitly. Set
3921 EXEC_FILENAME.
3922 * exec.h (exec_filename): New.
3923 * inferior.c (print_inferior, inferior_command): Use
3924 PSPACE_EXEC_FILENAME.
3925 * mi/mi-main.c (print_one_inferior): Likewise.
3926 * progspace.c (clone_program_space, print_program_space): Likewise.
3927 * progspace.h (struct program_space): New field pspace_exec_filename.
3928 * source.c (openp): Describe OPF_DISABLE_REALPATH. New variable
3929 realpath_fptr, initialize it from OPF_DISABLE_REALPATH, use it.
3930
59ee9f94
WN
39312013-08-28 Will Newton <will.newton@linaro.org>
3932
3933 * common/linux-ptrace.c: Include stdint.h unconditionally.
3934
c8a2a419
JK
39352013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3936
3937 Code cleanup.
3938 * nto-tdep.c (nto_find_and_open_solib): Use OPF_TRY_CWD_FIRST.
3939
ffa4ac95
YQ
39402013-08-28 Yao Qi <yao@codesourcery.com>
3941 Pedro Alves <palves@redhat.com>
3942
3943 * event-top.c (gdb_setup_readline): Call stderr_fileopen
3944 instead of stdio_fileopen.
3945 * main.c (captured_main) [__MINGW32__]: Set stderr unbuffered.
3946 .Call stderr_fileopen instead of stdio_fileopen.
3947 * ui-file.c [__MINGW32__] (stderr_file_write): New function.
3948 [__MINGW32__] (stderr_file_fputs): New function.
3949 (stderr_fileopen): New function.
3950 * ui-file.h (stderr_fileopen): Declare.
3951
69d751e3
DE
39522013-08-27 Doug Evans <dje@google.com>
3953
3954 * dwarf2read.c (struct dwarf2_cu): Tweak comment.
3955 (struct dwarf2_per_cu_data): Ditto.
3956 (maybe_queue_comp_unit): Delete forward decl. Add comment.
3957 (process_imported_unit_die): Ditto.
3958 (follow_die_sig_1): Simplify assert.
3959
44f38867
PA
39602013-08-27 Pedro Alves <palves@redhat.com>
3961
3962 * windows-nat.c (windows_xfer_memory): Adjust prototype to follow
3963 xfer_partial's interface. Return TARGET_XFER_E_IO on error.
3964 (windows_xfer_partial): Defer TARGET_OBJECT_MEMORY handling to
3965 windows_xfer_memory directly.
3966 (init_windows_ops): Don't install a deprecated_xfer_memory method.
3967
d28d46b5
PA
39682013-08-27 Pedro Alves <palves@redhat.com>
3969
3970 * darwin-nat.c (darwin_xfer_memory): Delete.
3971 (_initialize_darwin_inferior): Don't install a
3972 deprecated_xfer_memory method.
3973
6211c335
YQ
39742013-08-27 Pedro Alves <pedro@codesourcery.com>
3975 Yao Qi <yao@codesourcery.com>
3976
3977 * mi/mi-cmd-stack.c (list_args_or_locals): Adjust prototype.
3978 (parse_no_frames_option): Remove.
3979 (mi_cmd_stack_list_locals): Handle --skip-unavailable.
3980 (mi_cmd_stack_list_args): Adjust.
3981 (mi_cmd_stack_list_variables): Handle --skip-unavailable.
3982 (list_arg_or_local): Add new parameter 'skip_unavailable'. Return
3983 early if SKIP_UNAVAILABLE is true and ARG->val is unavailable.
3984 Caller update.
3985 (list_args_or_locals): New parameter 'skip_unavailable'.
3986 Handle it.
3987 * valprint.c (scalar_type_p): Rename to ...
3988 (val_print_scalar_type_p): ... this. Make extern.
3989 (val_print, value_check_printable): Adjust.
3990 * valprint.h (val_print_scalar_type_p): Declare.
3991 * value.c (value_entirely_unavailable): New function.
3992 * value.h (value_entirely_unavailable): Declare.
3993
3994 * NEWS: Mention the new option "--skip-unavailable" to MI
3995 commands '-stack-list-locals', '-stack-list-arguments' and
3996 '-stack-list-variables'.
3997
242f1fd7
YQ
39982013-08-27 Yao Qi <yao@codesourcery.com>
3999
4000 * mi/mi-cmd-stack.c (parse_no_frames_option): Remove.
4001 (mi_cmd_stack_list_args): Use mi_getopt_silent to handle
4002 options.
4003 * mi/mi-getopt.c (mi_getopt): Remove.
4004 (mi_getopt_1): Renamed from mi_getopt. Add one parameter
4005 'error_on_unknown'.
4006 (mi_getopt): Call mi_getopt_1.
4007 (mi_getopt_silent): New.
4008 * mi/mi-getopt.h (mi_getopt_silent): Declare.
4009
260b681b
DE
40102013-08-26 Doug Evans <dje@google.com>
4011
779bd270
DE
4012 PR symtab/15885
4013 * dwarf2read.c (dw2_dump): Print some minimal information indicating
4014 .gdb_index is in use.
4015 * symfile.c (reread_symbols): Reset objfile->sf.
4016
52e260a3
DE
4017 * NEWS: Document "mt print objfiles" now takes optional regexp.
4018 * symmisc.c (maintenance_print_objfiles): Argument is now an optional
4019 regexp of objfiles to print.
4020 (_initialize_symmisc): Update doc string for "mt print objfiles".
4021
260b681b
DE
4022 * dwarf2read.c (write_psymtabs_to_index): Move error checks ahead of
4023 missing debug info checks.
4024
a85c52f2
UW
40252013-08-26 Raunaq Bathija <raunaq12@in.ibm.com>
4026 Ulrich Weigand <uweigand@de.ibm.com>
4027
4028 * xcoffread.c (arrange_linetable): Add fix to correctly handle
4029 line tables generated by XLC compiled binaries.
4030
4f00dda3
DE
40312013-08-23 Doug Evans <dje@google.com>
4032
db68bbae
DE
4033 * symmisc.c (dump_symtab): Delete prototype.
4034 (dump_msymbols, dump_objfile): Ditto.
4035 (maintenance_info_symtabs): Mark as dont_repeat.
4036 (_initialize_symmisc): Improve doc string for "mt info symtabs".
4037
4f00dda3
DE
4038 * elfread.c (elf_symfile_read): Move "Done reading minimal symbols"
4039 debugging printf to better location.
4040
23d577b0
PA
40412013-08-23 Pedro Alves <palves@redhat.com>
4042
4043 * target.c (target_read_live_memory): Change type of 'ret' local
4044 to LONGEST.
4045
00d84524
PA
40462013-08-23 Pedro Alves <palves@redhat.com>
4047
4048 * remote.c (remote_write_bytes_aux, remote_write_bytes)
4049 (remote_read_bytes): Change return type to LONGEST, and adjust to
4050 return a target_xfer_error on error.
4051 (remote_xfer_memory): Delete.
4052 (remote_flash_write): Change type of 'ret' local to LONGEST.
4053 (remote_xfer_partial, remote_xfer_partial): Adjust.
4054 (init_remote_ops): Don't install a deprecated_xfer_memory hook.
4055
1ed3ee94
PM
40562013-08-23 Pierre Muller <muller@sourceware.org>
4057
4058 ARI fix: Push # directives to start of line.
4059 * rs6000-nat.c (rs6000_ptrace32, rs6000_ptrace64): Rule applied.
4060
9eaabc75
MW
40612013-08-12 Muhammad Waqas <mwaqas@codesourcery.com>
4062
4063 PR gdb/15501
4064 * breakpoint.c (enable_command, disable_command): Iterate over
4065 all specified breakpoint locations.
4066
101158d9
LM
40672013-08-22 Luis Machado <lgustavo@codesourcery.com>
4068
4069 * common/linux-ptrace.c (linux_fork_to_function): Push #
4070 directives to the start of the line.
4071 (linux_check_ptrace_features): Fix warning message to use
4072 the "_" markup.
4073
96d7229d
LM
40742013-08-22 Luis Machado <lgustavo@codesourcery.com>
4075
4076 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-nat.h and
4077 nat/linux-waitpid.h.
4078 (linux-waitpid.o): New object file rule.
4079 * common/linux-ptrace.c: Include nat/linux-waitpid.h.
4080 (current_ptrace_options): Moved from linux-nat.c.
4081 (linux_ptrace_test_ret_to_nx): Use type casts for ptrace
4082 parameters.
4083 (linux_fork_to_function): New function.
4084 (linux_grandchild_function): Likewise.
4085 (linux_child_function): Likewise.
4086 (linux_check_ptrace_features): New function, heavily
4087 based on linux-nat.c:linux_test_for_tracefork.
4088 (linux_enable_event_reporting): New function.
4089 (ptrace_supports_feature): Likewise.
4090 (linux_supports_tracefork): Likewise.
4091 (linux_supports_traceclone): Likewise.
4092 (linux_supports_tracevforkdone): Likewise.
4093 (linux_supports_tracesysgood): Likewise.
4094 * common/linux-ptrace.h (HAS_NOMMU): Moved from
4095 gdbserver/linux-low.c.
4096 (linux_enable_event_reporting): New declaration.
4097 (linux_supports_tracefork): Likewise.
4098 (linux_supports_traceclone): Likewise.
4099 (linux_supports_tracevforkdone): Likewise.
4100 (linux_supports_tracesysgood): Likewise.
4101 * config.in (PTRACE_TYPE_ARG4): Regenerate.
4102 * config/aarch64/linux.mh (NATDEPFILES): Add linux-waitpid.o.
4103 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
4104 * config/arm/linux.mh (NATDEPFILES): Likewise.
4105 * config/i386/linux.mh (NATDEPFILES): Likewise.
4106 * config/i386/linux64.mh (NATDEPFILES): Likewise.
4107 * config/ia64/linux.mh (NATDEPFILES): Likewise.
4108 * config/m32r/linux.mh (NATDEPFILES): Likewise.
4109 * config/m68k/linux.mh (NATDEPFILES): Likewise.
4110 * config/mips/linux.mh (NATDEPFILES): Likewise.
4111 * config/pa/linux.mh (NATDEPFILES): Likewise..
4112 * config/powerpc/linux.mh (NATDEPFILES): Likewise..
4113 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
4114 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
4115 * config/sparc/linux.mh (NATDEPFILES): Likewise.
4116 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
4117 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
4118 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
4119 * configure.ac (AC_CACHE_CHECK): Add void * to the list of
4120 ptrace's 4th argument's types.
4121 Check the type of PTRACE_TYPE_ARG4.
4122 * configure: Regenerate.
4123 * linux-nat.c: Include nat/linux-nat.h and nat/linux-waitpid.h.
4124 (SYSCALL_SIGTRAP): Moved to nat/linux-nat.h.
4125 (linux_supports_tracefork_flag): Remove.
4126 (linux_supports_tracesysgood_flag): Likewise.
4127 (linux_supports_tracevforkdone_flag): Likewise.
4128 (current_ptrace_options): Moved to
4129 common/linux-ptrace.c.
4130 (linux_tracefork_child): Remove.
4131 (my_waitpid): Remove.
4132 (linux_test_for_tracefork): Renamed to
4133 linux_check_ptrace_features and moved to common/linux-ptrace.c.
4134 (linux_test_for_tracesysgood): Remove.
4135 (linux_supports_tracesysgood): Remove.
4136 (linux_supports_tracefork): Remove.
4137 (linux_supports_tracevforkdone): Remove.
4138 (linux_enable_tracesysgood): Remove.
4139 (linux_enable_event_reporting): Remove.
4140 (linux_init_ptrace): New function.
4141 (linux_child_post_attach): Call linux_init_ptrace.
4142 (linux_child_post_startup_inferior): Call linux_init_ptrace.
4143 (linux_child_follow_fork): Call linux_supports_tracefork
4144 and linux_supports_tracevforkdone.
4145 (linux_child_insert_fork_catchpoint): Call
4146 linux_supports_tracefork.
4147 (linux_child_insert_vfork_catchpoint): Likewise.
4148 (linux_child_set_syscall_catchpoint): Call
4149 linux_supports_tracesysgood.
4150 (lin_lwp_attach_lwp): Call linux_supports_tracefork.
4151 * nat/linux-nat.h: New file.
4152 * nat/linux-waitpid.c: New file.
4153 * nat/linux-waitpid.h: New file.
4154
9f948660
SDJ
41552013-08-22 Samuel Bronson <naesten@gmail.com>
4156
4157 ARM Linux support for `catch syscall'.
4158 * syscalls/arm-linux.py: New file.
4159 * syscalls/arm-linux.xml: Likewise.
4160 * arm-linux-tdep.c (arm_linux_get_syscall_number): New function.
4161 (arm_linux_init_abi): Register the new function and syscall xml file.
4162 * data-directory/Makefile.in: Install the new syscall xml file.
4163 * NEWS: Brag about this.
4164
6be7b56e
PA
41652013-08-22 Pedro Alves <palves@redhat.com>
4166
4167 PR gdb/15871
4168 * corefile.c (target_xfer_memory_error): New function.
4169 (memory_error): Defer EIO to target_memory_error.
4170 (read_memory): Use target_xfer_partial, and handle finer-grained
4171 target xfer errors.
4172 * target.c (target_xfer_error_to_string): New function.
4173 (memory_xfer_partial_1): If memory is known to be
4174 unavailable, return TARGET_XFER_E_UNAVAILABLE instead of -1.
4175 (target_xfer_partial): Make extern.
4176 * target.h (enum target_xfer_error): New enum.
4177 (target_xfer_error_to_string): Declare function.
4178 (target_xfer_partial): Declare function.
4179 (struct target_ops) <xfer_partial>: Adjust describing comment.
4180
bcbec14e
AM
41812013-08-22 Alan Modra <amodra@gmail.com>
4182
4183 * configure.host: Support powerpc64le-linux and powerpcle-linux hosts.
4184 * configure.tgt: Likewise as targets.
4185
fc474241
DE
41862013-08-20 Doug Evans <dje@google.com>
4187
4188 * buildsym.c (subfile_stack): Move here from buildsym.h.
4189 (pending_macros): Ditto.
4190 (get_macro_table): New function.
4191 (buildsym_init): Initialize subfile_stack.
4192 * coffread.c (type_vector,type_vector_length): Moved here from
4193 buildsym.h.
4194 (INITIAL_TYPE_VECTOR_LENGTH): Ditto.
4195 (coff_symtab_read): Use it.
4196 * dbxread.c (read_ofile_symtab): Delete init of subfile_stack.
4197 * dwarf2read.c (macro_start_file): Replace uses of pending_macros
4198 with call to get_macro_table.
4199 * stabsread.c (type_vector,type_vector_length): Moved here from
4200 buildsym.h.
4201 (INITIAL_TYPE_VECTOR_LENGTH): Ditto.
4202 * buildsym.h (get_macro_table): Declare.
4203
bec71544
TT
42042013-08-20 Tom Tromey <tromey@redhat.com>
4205
4206 * dbxread.c (record_minimal_symbol): Make 'name' argument const.
4207 Update.
4208 (read_dbx_dynamic_symtab): Make 'name' const. Remove casts.
4209
0002ad5f
DE
42102013-08-20 Doug Evans <dje@google.com>
4211
4212 * blockframe.c: Remove #include "psymtab.h".
4213 * cp-support.c: Ditto.
4214 * source.c: Ditto.
4215 * stack.c: Ditto.
4216
df302446
TT
42172013-08-20 Tom Tromey <tromey@redhat.com>
4218
4219 PR python/15816:
4220 * exceptions.h (return_mask): Now an enum.
4221 (RETURN_MASK_QUIT, RETURN_MASK_ERROR, RETURN_MASK_ALL): Now
4222 enum constants.
4223
df6d5441
TT
42242013-08-20 Tom Tromey <tromey@redhat.com>
4225
4226 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Use
4227 get_objfile_arch.
4228 * elfread.c (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
4229 (elf_gnu_ifunc_resolve_by_got): Use get_objfile_arch.
4230 * jit.c (jit_object_close_impl): Update.
4231 * jv-lang.c (get_dynamics_objfile): Update.
4232 * linespec.c (add_minsym): Use get_dynamics_objfile.
4233 * objfiles.c (get_objfile_bfd_data): Initialize 'gdbarch' field.
4234 (allocate_objfile): Don't initialize 'gdbarch' field.
4235 (get_objfile_arch): Update.
4236 * objfiles.h (struct objfile_per_bfd_storage) <gdbarch>: New field,
4237 moved from...
4238 (struct objfile) <gdbarch>: ... here. Remove.
4239 * stap-probe.c (stap_can_evaluate_probe_arguments): Use
4240 get_objfile_arch.
4241 * symfile.c (init_entry_point_info): Use get_objfile_arch.
4242
f5aee5ee
AM
42432013-08-20 Alan Modra <amodra@gmail.com>
4244
4245 * doublest.c (convert_floatformat_to_doublest): Use fmt->split_half
4246 for IBM long double nan and inf.
4247 (floatformat_is_negative, floatformat_classify,
4248 floatformat_mantissa): Similarly.
4249 (floatformat_ieee_single, floatformat_ieee_double,
4250 floatformat_ieee_quad, floatformat_arm_ext,
4251 floatformat_ia64_spill): Delete unused vars.
4252 (_initialize_doublest): Delete unused function.
4253 * gdbtypes.c (floatformats_ibm_long_double): Use new big- and
4254 little-endian variants of floatformat_ibm_long_double.
4255
33b60d58 42562013-08-19 Luis Machado <lgustavo@codesourcery.com>
f5aee5ee 4257
33b60d58
LM
4258 * Makefile.in (SFILES): Remove common/target-common.c and
4259 add target/waitstatus.c.
4260 (HFILES_NO_SRCDIR): Remove common/target-common.h and add
4261 target/resume.h, target/wait.h and target/waitstatus.h.
4262 (COMMON_OBS): Remove target-common.o and add
4263 waitstatus.o.
4264 (target-common.o): Remove.
4265 (waitstatus.o): New target object file.
4266 * common/target-common.c: Move contents to
4267 target/waitstatus.c and remove.
4268 * common/target-common.h: Move contents to other files and
4269 remove.
4270 (enum resume_kind: Move to target/resume.h.
4271 (TARGET_WNOHANG): Move to target/wait.h.
4272 (enum target_waitkind): Move to target/waitstatus.h.
4273 (struct target_waitstatus): Likewise.
4274 * target.h: Do not include target-common.h and
4275 include target/resume.h, target/wait.h and
4276 target/waitstatus.h.
4277 * target/resume.h: New file.
4278 * target/wait.h: New file.
4279 * target/waitstatus.h: New file.
4280 * target/waitstatus.c: New file.
4281
12696c10
PA
42822013-08-19 Pedro Alves <palves@redhat.com>
4283
4284 * linux-nat.c (linux_test_for_tracefork)
4285 (linux_test_for_tracesysgood, linux_child_follow_fork)
4286 (lin_lwp_attach_lwp, linux_nat_resume): Don't block child signals.
4287 (linux_nat_wait_1): Extend comment.
4288 (linux_async_pipe): Add comment.
4289
ba89f962
KB
42902013-08-15 Kevin Buettner <kevinb@redhat.com>
4291
4292 * rl78-tdep.c (RL78_RAW_PC_REGNUM): New enum.
4293 (RL78_PC_REGNUM): Move to list of pseudo-register enums.
4294 (rl78_register_type, rl78_register_name, rl78_register_reggroup_p):
4295 Update to account for fact that PC is now a pseudo-register.
4296 (rl78_pseudo_register_write, rl78_pseudo_register_read): Add
4297 cases for RL78_PC_REGNUM.
4298
35ab155d
MB
42992013-08-15 Muhammad Bilal <mbilal@codesourcery.com>
4300
4301 PR cli/15841
4302 * top.c (quit_force): Skip writing history file
4303 if input is not from terminal.
4304
0d031856
TT
43052013-08-14 Tom Tromey <tromey@redhat.com>
4306
4307 * remote.c (struct remote_state) <echo_nextthread, nextthread,
4308 resultthreadlist>: New fields.
4309 (OPAQUETHREADBYTES, threadref, MAXTHREADLISTRESULTS): Move earlier.
4310 (remote_get_threadlist, remote_threadlist_iterator): Use
4311 new fields. Remove static variables.
4312
ee154bee
TT
43132013-08-14 Tom Tromey <tromey@redhat.com>
4314
4315 * remote.c (struct remote_state) <remote_stopped_by_watchpoint_p,
4316 remote_watch_data_address>: New fields.
4317 (remote_stopped_by_watchpoint_p, remote_watch_data_address): Remove.
4318 (process_stop_reply, remote_wait_as)
4319 (remote_check_watch_resources, remote_stopped_data_address): Update.
4320
88b496c3
TT
43212013-08-14 Tom Tromey <tromey@redhat.com>
4322
4323 * remote.c (struct remote_state) <async_client_callback,
4324 async_client_context>: New fields.
4325 (async_client_callback, async_client_context): Remove.
4326 (remote_async_serial_handler, remote_async): Update.
4327
2f65bcb7
TT
43282013-08-14 Tom Tromey <tromey@redhat.com>
4329
4330 * remote.c (sizeof_pkt): Remove.
4331 (remote_trace_find): Use rs->buf_size, not sizeof_pkt.
4332
b80fafe3
TT
43332013-08-14 Tom Tromey <tromey@redhat.com>
4334
4335 * remote.c (struct remote_state) <use_threadinfo_query,
4336 use_threadextra_query>: New fields.
4337 (remote_threads_info, remote_threads_extra_info)
4338 (remote_open_1): Update.
4339
8e88304f
TT
43402013-08-14 Tom Tromey <tromey@redhat.com>
4341
4342 * remote.c (struct remote_state) <finished_object,
4343 finished_annex, finished_offset>: New fields.
4344 (remote_read_qxfer): Use remote_state fields; remove static
4345 variables.
4346
280ceea3
TT
43472013-08-14 Tom Tromey <tromey@redhat.com>
4348
4349 * remote.c (struct remote_state) <last_sent_step>:
4350 New field.
4351 (last_sent_step): Remove.
4352 (remote_resume, remote_wait_as): Update.
4353
b73be471
TT
43542013-08-14 Tom Tromey <tromey@redhat.com>
4355
4356 * remote.c (struct remote_state) <last_sent_signal>:
4357 New field.
4358 (last_sent_signal): Remove.
4359 (new_remote_state, remote_resume, remote_wait_as): Update.
4360
5e4a05c4
TT
43612013-08-14 Tom Tromey <tromey@redhat.com>
4362
4363 * remote.c (struct remote_state) <last_program_signals_packet>:
4364 New field.
4365 (last_program_signals_packet): Remove.
4366 (remote_program_signals, remote_open_1): Update.
4367
747dc59d
TT
43682013-08-14 Tom Tromey <tromey@redhat.com>
4369
4370 * remote.c (struct remote_state) <last_pass_packet>:
4371 New field.
4372 (last_pass_packet): Remove.
4373 (remote_pass_signals, remote_open_1): Update.
4374
262e1174
TT
43752013-08-14 Tom Tromey <tromey@redhat.com>
4376
4377 * remote.c (struct remote_state) <remote_traceframe_number>:
4378 New field.
4379 (remote_traceframe_number): Remove.
4380 (new_remote_state, remote_open_1, set_remote_traceframe)
4381 (remote_trace_find): Update.
4382
47f8a51d
TT
43832013-08-14 Tom Tromey <tromey@redhat.com>
4384
4385 * remote.c (struct remote_state) <general_thread, continue_thread>:
4386 New fields.
4387 (general_thread, continue_thread): Remove.
4388 (record_currthread, set_thread, set_general_process)
4389 (remote_open_1, extended_remote_attach_1, remote_wait_as)
4390 (extended_remote_mourn_1): Update.
4391
5d93a237
TT
43922013-08-14 Tom Tromey <tromey@redhat.com>
4393
4394 * remote.c (struct remote_state) <remote_desc>: New field.
4395 (remote_desc): Remove.
4396 (remote_threads_info, remote_threads_extra_info, remote_close)
4397 (send_interrupt_sequence, remote_start_remote, remote_open_1)
4398 (readchar, remote_xfer_partial, remote_rcmd, packet_command)
4399 (remote_hostio_send_command, remote_file_put, remote_file_get)
4400 (remote_file_delete, remote_can_async_p, remote_is_async_p)
4401 (remote_async, remote_new_objfile, set_range_stepping): Update.
4402
cf792862
TT
44032013-08-14 Tom Tromey <tromey@redhat.com>
4404
4405 * remote.c (remote_state): Now a pointer.
4406 (get_remote_state_raw): Update.
4407 (new_remote_state): New function.
4408 (_initialize_remote): Use new_remote_state.
4409
dc473cfb
TT
44102013-08-14 Tom Tromey <tromey@redhat.com>
4411
4412 * remote.c (remote_protocol_features): Now const.
4413
85ec6ce7
TT
44142013-08-14 Tom Tromey <tromey@redhat.com>
4415
4416 * remote.c (crc32_table, crc32): Remove.
4417 (remote_verify_memory): Use xcrc32.
4418
73033f12
SDJ
44192013-08-13 Sergio Durigan Junior <sergiodj@redhat.com>
4420
4421 * value.h (create_internalvar_type_lazy): Adjust prototype
4422 declaration.
4423
5c30d39a
AB
44242013-08-13 Andrew Burgess <aburgess@broadcom.com>
4425
4426 * common/format.c (parse_format_string): Don't allow '#' flag for
4427 pointer arguments in format string.
4428
1a66331e
PM
44292013-08-13 Pierre Muller <muller@sourceware.org>
4430
fde605f3 4431 * utils.c (init_page_info): Only call tgetnum function
1a66331e
PM
4432 if rl_get_screen_size did not return useful values.
4433
b4013987
AA
44342013-08-12 Ali Anwar <ali_anwar@codesourcery.com>
4435
4436 PR breakpoints/15117
4437 * linespec.c (linespec_parse_basic): Check for convenience
4438 variable or history value while parsing.
4439
959b6a66
SDJ
44402013-08-12 Sergio Durigan Junior <sergiodj@redhat.com>
4441
4442 Revert implementation of gdbarch_gdb_signal_{to,from}_target for
4443 AVR.
4444 * avr-tdep.c: Remove include of "linux-tdep.h". Remove enum with
4445 different signals between the generic Linux kernel implementation
4446 and AVR's.
4447 (avr_linux_gdb_signal_from_target): Delete.
4448 (avr_linux_gdb_signal_to_target): Delete.
4449 (avr_gdbarch_init): Don't set gdbarch_gdb_signal_{to,from}_target.
4450
24a55014
DE
44512013-08-09 Doug Evans <dje@google.com>
4452
4453 * dwarf2read.c (create_addrmap_from_index): Ignore bad address table
4454 entries.
4455
eb14d406
SDJ
44562013-08-09 Sergio Durigan Junior <sergiodj@redhat.com>
4457
4458 * linux-tdep.c: Define enum with generic signal numbers.
4459 (linux_gdb_signal_from_target): New function.
4460 (linux_gdb_signal_to_target): Likewise.
4461 (linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
4462 methods to the functions above.
4463 * linux-tdep.h (linux_gdb_signal_from_target): New prototype.
4464 (linux_gdb_signal_to_target): Likewise.
4465 * alpha-linux-tdep.c: Define new enum with signals different
4466 from generic Linux kernel.
4467 (alpha_linux_gdb_signal_from_target): New function.
4468 (alpha_linux_gdb_signal_to_target): Likewise.
4469 (alpha_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
4470 with the functions mentioned above.
4471 * avr-tdep.c: Define enum with differences between Linux kernel
4472 and AVR signals.
4473 (avr_linux_gdb_signal_from_target): New function.
4474 (avr_linux_gdb_signal_to_target): Likewise.
4475 (avr_gdbarch_init): Set gdbarch_gdb_signal_{to,from}_target to
4476 the functions mentioned above.
4477 * sparc-linux-tdep.c: Define enum with differences between SPARC
4478 and generic Linux kernel signal numbers.
4479 (sparc32_linux_gdb_signal_from_target): New function.
4480 (sparc32_linux_gdb_signal_to_target): Likewise.
4481 (sparc32_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
4482 to the functions defined above.
4483 * xtensa-linux-tdep.c: Define enum with differences between
4484 Xtensa and Linux kernel generic signals.
4485 (xtensa_linux_gdb_signal_from_target): New function.
4486 (xtensa_linux_gdb_signal_to_target): Likewise.
4487 (xtensa_linux_init_abi): Set gdbarch_gdb_signal_to_target
4488 to the functions defined above.
4489 * mips-linux-tdep.c: Define enum with differences between
4490 signals in MIPS and Linux kernel generic ones.
4491 (mips_gdb_signal_to_target): New function.
4492 (mips_gdb_signal_from_target): Redefine to use new enum, handle
4493 only different signals from the Linux kernel generic.
4494 (mips_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
4495 the functions defined above.
4496 * mips-linux-tdep.h (enum mips_signals): Remove.
4497
156d08c8
PA
44982013-08-09 Pedro Alves <palves@redhat.com>
4499
4500 * avr-tdep.c (XMALLOC): Delete macro.
4501 * cli/cli-dump.c (XMALLOC): Delete macro.
4502
db229724
PA
45032013-08-09 Pedro Alves <palves@redhat.com>
4504
4505 * cli/cli-dump.c: Don't include cli/cli-dump.h.
4506 (scan_expression_with_cleanup, scan_filename_with_cleanup)
4507 (fopen_with_cleanup, add_dump_command): Make static.
4508 * cli/cli-dump.h: Delete file.
4509 * Makefile.in (HFILES_NO_SRCDIR): Remove reference to
4510 cli/cli-dump.h.
4511
3f12a589
PA
45122013-08-09 Pedro Alves <palves@redhat.com>
4513
4514 * tracepoint.c (tfile_start): Show tilde-expanded filename in
4515 error message.
4516
c718be47
PA
45172013-08-09 Pedro Alves <palves@redhat.com>
4518
156d08c8 4519 * breakpoint.c (save_breakpoints): Show tilde-expanded filename in
c718be47
PA
4520 error message.
4521
1e351ed1
PA
45222013-08-09 Pedro Alves <palves@redhat.com>
4523
4524 * gcore.c (create_gcore_bfd): Don't use tilde_expand here.
4525 (gcore_command): Use tilde_expand here, and when showing the
4526 filename to the user, show the expanded version.
4527
1ed8d800
YQ
45282013-08-09 Yao Qi <yao@codesourcery.com>
4529
4530 * stack.c (read_frame_arg): Set 'entryval_error' to NULL if
4531 'entryval' is set.
4532
47ecca85
PA
45332013-08-08 Azat Khuzhin <a3at.mail@gmail.com> (tiny change)
4534
4535 * gcore.c (create_gcore_bfd): Use tilde_expand.
4536
82a0a75f
YQ
45372013-08-08 Yao Qi <yao@codesourcery.com>
4538
4539 * frame.h (read_frame_local): Declare.
4540 * mi/mi-cmd-stack.c (list_args_or_locals): Call
4541 read_frame_local.
4542 * stack.c (read_frame_local): New.
4543
5c4aa40b
YQ
45442013-08-08 Yao Qi <yao@codesourcery.com>
4545
4546 * mi/mi-cmd-stack.c: Update comments to function
4547 list_args_or_locals.
4548
b93601f3
TT
45492013-08-07 Tom Tromey <tromey@redhat.com>
4550
4551 PR symtab/15028:
4552 * dwarf2read.c (struct process_psymtab_comp_unit_data): New.
4553 (process_psymtab_comp_unit_reader): Use it.
4554 (process_psymtab_comp_unit): Update. Add "pretend_language"
4555 argument.
4556 (dwarf2_build_psymtabs_hard): Update.
4557 (scan_partial_symbols): Pass CU's language to
4558 process_psymtab_comp_unit.
4559
fa760f46
TT
45602013-08-07 Tom Tromey <tromey@redhat.com>
4561
4562 * dwarf2read.c (dw2_get_primary_filename_reader): Remove.
4563 (dwarf2_gdb_index_functions): Update.
4564 * psymtab.c (find_symbol_file_from_partial): Remove.
4565 (psym_functions): Update.
4566 * symfile.h (struct quick_symbol_functions) <find_symbol_file>:
4567 Remove.
4568
bf6d8a91
TT
45692013-08-07 Tom Tromey <tromey@redhat.com>
4570
4571 * symfile.c (set_initial_language): Look up "main" symbol
4572 and use its language.
4573 * symtab.c (find_main_filename): Remove.
4574 * symtab.h (find_main_filename): Remove.
4575
f9125b6c
TT
45762013-08-07 Tom Tromey <tromey@redhat.com>
4577
4578 * dwarf2read.c (recursively_compute_inclusions): Add
4579 "immediate_parent" argument. Set symtab's "user" field
4580 if not set.
4581 (compute_symtab_includes): Update.
4582
fdbb204b
TT
45832013-08-07 Tom Tromey <tromey@redhat.com>
4584
4585 * linespec.c (convert_linespec_to_sals): Use maybe_add_address
4586 when adding label symbols.
4587
49de1690
UW
45882013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
4589 Ulrich Weigand <uweigand@de.ibm.com>
4590
4591 * configure.tgt (powerpc64-*-aix*): Match powerpc64 running aix.
4592 * configure.host (powerpc64-*-aix*): Likewise.
4593
b08ee99f
UW
45942013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
4595 Ulrich Weigand <uweigand@de.ibm.com>
4596
4597 * gdb_ptrace.h: Use ptrace64 instead of ptrace if HAVE_PTRACE64
4598 is defined.
4599 * rs6000-nat.c: Check for __ld_info64_ if compiling 64 BIT gdb.
4600 (rs6000_ptrace32): Call ptrace64 instead of ptrace if present.
4601 (rs6000_ptrace64): Call ptace64 instead of ptracex if present.
4602 * configure.ac: Check for ptrace64.
4603 * configure, config.in: Regenerate.
4604
fecf803e
UW
46052013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
4606 Ulrich Weigand <uweigand@de.ibm.com>
4607
4608 * aixthread.c: Call ptrace64 instead of ptracex if defined.
4609 Call ptrace64 instead of ptrace if defined.
4610 Add macro addr_ptr to take care of ptrace address argument.
4611 (pdc_read_regs): Likewise.
4612 (pdc_write_regs): Likewise.
4613 (aix_thread_resume): Likewise.
4614 (fetch_regs_kernel_thread): Likewise.
4615 (store_regs_kernel_thread): Likewise.
4616
3bb5e4a8
AB
46172013-08-07 Anton Blanchard <anton@samba.org>
4618
4619 * MAINTAINERS: Add myself to Write After Approval.
4620
12070676
TT
46212013-08-05 Tom Tromey <tromey@redhat.com>
4622
4623 * aix-thread.c (_initialize_aix_thread): Use
4624 complete_target_initialization.
4625 * bsd-uthread.c (_initialize_bsd_uthread): Use
4626 complete_target_initialization.
4627 * dec-thread.c (_initialize_dec_thread): Use
4628 complete_target_initialization.
4629 * ravenscar-thread.c (_initialize_ravenscar): Use
4630 complete_target_initialization.
4631 * sol-thread.c (_initialize_sol_thread): Use
4632 complete_target_initialization.
4633 * spu-multiarch.c (_initialize_spu_multiarch): Use
4634 complete_target_initialization.
4635
7c7b6655
TT
46362013-08-05 Tom Tromey <tromey@redhat.com>
4637
4638 * ada-exp.y (write_var_or_type): Use bound_minimal_symbol.
4639 * ada-lang.c (ada_lookup_simple_minsym): Return
4640 bound_minimal_symbol.
4641 * ada-lang.h (ada_lookup_simple_minsym): Update.
4642 * c-exp.y (variable): Use lookup_bound_minimal_symbol.
4643 * f-exp.y (variable): Use lookup_bound_minimal_symbol.
4644 * go-exp.y (variable): Use lookup_bound_minimal_symbol.
4645 * jv-exp.y (push_expression_name): Use lookup_bound_minimal_symbol.
4646 * m2-exp.y (variable): Use lookup_bound_minimal_symbol.
4647 * minsyms.c (msymbol_objfile): Remove.
4648 (lookup_minimal_symbol_internal): New function, from
4649 lookup_minimal_symbol.
4650 (lookup_minimal_symbol): Rewrite using
4651 lookup_minimal_symbol_internal.
4652 (lookup_bound_minimal_symbol): New function.
4653 * minsyms.h (msymbol_objfile): Remove.
4654 (lookup_bound_minimal_symbol): Declare.
4655 * p-exp.y (variable): Use lookup_bound_minimal_symbol.
4656 * parse.c (write_exp_msymbol): Change parameter to a
4657 bound_minimal_symbol.
4658 (write_dollar_variable): Use lookup_bound_minimal_symbol.
4659 * parser-defs.h (write_exp_msymbol): Update.
4660 * printcmd.c (address_info): Use lookup_bound_minimal_symbol.
4661 * symfile.c (simple_read_overlay_table): Use
4662 lookup_bound_minimal_symbol.
4663 * symtab.c (skip_prologue_sal): Don't use msymbol_objfile.
4664 (search_symbols): Likewise.
4665 (print_msymbol_info): Take a bound_minimal_symbol argument.
4666 (symtab_symbol_info, rbreak_command): Update.
4667 * symtab.h (struct symbol_search) <msymbol>: Change type
4668 to bound_minimal_symbol.
4669 * valops.c (find_function_in_inferior): Use
4670 lookup_bound_minimal_symbol.
4671 * value.c (value_fn_field): Use lookup_bound_minimal_symbol.
4672
934b9bac
JK
46732013-08-05 Jan Kratochvil <jan.kratochvil@redhat.com>
4674
4675 Code cleanup.
4676 * remote.c (cleanup_sigint_signal_handler): Rename the declaration
4677 to ...
4678 (async_cleanup_sigint_signal_handler): ... this.
4679 (initialize_sigint_signal_handler): Remove declaration.
4680 (handle_remote_sigint): Rename the declaration to ...
4681 (async_handle_remote_sigint): ... this.
4682 (handle_remote_sigint_twice): Rename the declaration to ...
4683 (async_handle_remote_sigint_twice): ... this.
4684 (async_remote_interrupt, async_remote_interrupt_twice)
4685 (remote_interrupt): Remove the declarations.
4686 (remote_interrupt_twice): Rename the declaration ...
4687 (sync_remote_interrupt_twice): ... this.
4688 (sigint_remote_twice_token): Rename the variable to ...
4689 (async_sigint_remote_twice_token): ... this.
4690 (sigint_remote_token): Rename the variable to ...
4691 (async_sigint_remote_token): ... this.
4692 (initialize_sigint_signal_handler): Rename the function to ...
4693 (async_initialize_sigint_signal_handler): ... this. Update the name
4694 inside.
4695 (handle_remote_sigint): Rename the function to ...
4696 (async_handle_remote_sigint): ... this. Update the names inside.
4697 (handle_remote_sigint_twice): Rename the function to ...
4698 (async_handle_remote_sigint_twice): ... this. Update the names inside.
4699 (cleanup_sigint_signal_handler): Rename the function to ...
4700 (async_cleanup_sigint_signal_handler): ... this.
4701 (remote_interrupt): Rename the function to ...
4702 (sync_remote_interrupt): this. Update the names inside.
4703 (remote_interrupt_twice): Rename the function to ...
4704 (sync_remote_interrupt_twice): this. Update the names inside.
4705 (remote_terminal_inferior, remote_terminal_ours, remote_wait_as)
4706 (_initialize_remote): Update the names inside.
4707
3a1115a0
TT
47082013-08-02 Tom Tromey <tromey@redhat.com>
4709
4710 PR symtab/15719:
4711 * breakpoint.c (update_watchpoint, watchpoint_check)
4712 (watch_command_1): Update.
4713 * eval.c (fetch_subexp_value): Add "preserve_errors"
4714 parameter.
4715 * ppc-linux-nat.c (check_condition): Update.
4716 * value.h (fetch_subexp_value): Update.
4717
58b19776
AB
47182013-08-02 Andrew Burgess <aburgess@broadcom.com>
4719
4720 * mi/mi-interp.c (mi_interpreter_resume): Remove call to
4721 add_file_handler.
4722
ec94af83
DE
47232013-08-01 Doug Evans <dje@google.com>
4724
7ee85ab1
DE
4725 PR symtab/15691
4726 * dwarf2read.c (struct dwarf2_per_cu_data): New member tu_read.
4727 (fill_in_sig_entry_from_dwo_entry): Reorganize asserts.
4728 Add assert of sig_entry->dwo_unit == NULL.
4729 (lookup_dwo_signatured_type): Don't assign TU to a DWO if the TU
4730 had already been read.
4731 (read_signatured_type): Set per_cu.tu_read.
4732
b846d303
DE
4733 PR symtab/15695
4734 * valops.c (value_struct_elt): Add missing call to check_typedef.
4735 (value_find_oload_method_list): Ditto.
4736
b52109bc
DE
4737 * symtab.c (do_free_search_symbols_cleanup): Change arg to,
4738 effectively, struct symbol_search **.
4739 (make_cleanup_free_search_symbols): Change arg to struct
4740 symbol_search **. All callers updated.
4741 (compare_search_syms): Compare symtab file name and block as well.
4742 (search_symbols_equal): New function.
4743 (sort_search_symbols_remove_dups): Renamed from sort_search_symbols.
4744 New args new_head, new_tail. Result is now void. Remove dups after
4745 sorting the symbols.
4746 (search_symbols): Sort all found symbols once, after all have been
4747 found, and remove duplicates. Simplify cleanup tracking of result.
4748 * symtab.h (make_cleanup_free_search_symbols): Update prototype.
4749
ec94af83
DE
4750 Further workarounds for binutils/15021.
4751 * dwarf2read.c (recursively_compute_inclusions): Change type of result
4752 parameter to VEC (symtab_ptr) **. New parameter all_type_symtabs.
4753 Watch for duplicate symtabs coming from type units.
4754 (compute_symtab_includes): Update call to
4755 recursively_compute_inclusions. Build vector of included symtabs
4756 instead of per_cus.
4757 * symtab.h (symtab_ptr): New typedef.
4758 (DEF_VEC_P (symtab_ptr)): New VEC type.
4759 * linespec.c (symtab_p): Delete. All uses updated to use symtab_ptr
4760 instead.
4761
b2ae85cf
AB
47622013-08-01 Andrew Burgess <aburgess@broadcom.com>
4763
4764 * cli/cli-script.c (script_from_file): Remove use of
4765 error_pre_print.
4766 * main.c (captured_main): Remove use of error_pre_print and
4767 quit_pre_print.
4768 * utils.c (error_pre_print, quit_pre_print): Remove.
4769 * utils.h (error_pre_print, quit_pre_print): Likewise.
4770
645eab03
YQ
47712013-08-01 Yao Qi <yao@codesourcery.com>
4772
4773 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Parse argv
4774 with mi_getopt.
4775 (mi_cmd_stack_list_variables): Likewise.
4776
16f92dd4
AB
47772013-07-31 Andrew Burgess <aburgess@broadcom.com>
4778
4779 * exceptions.c (deprecated_throw_reason): Remove.
4780 * exceptions.h (deprecated_throw_reason): Remove.
4781
13f78033
AB
47822013-07-31 Andrew Burgess <aburgess@broadcom.com>
4783
4784 * remote-mips.c (mips_error): Replace use of
4785 deprecated_throw_reason with throw_verror. Use the error message
4786 passed to mips_error as the error message for throw_verror.
4787
039e3c22
AB
47882013-07-31 Andrew Burgess <aburgess@broadcom.com>
4789
4790 * monitor.c (monitor_interrupt_query): Replace use of
4791 deprecated_throw_reason with quit.
4792 * nto-procfs.c (interrupt_query): Likewise.
4793 * remote-fileio.c (remote_fileio_sig_exit): Likewise.
4794 * remote-mips.c (mips_kill): Likewise.
4795 * remote.c (interrupt_query): Likewise.
4796
8150913b
AB
47972013-07-31 Andrew Burgess <aburgess@broadcom.com>
4798
4799 * utils.c (internal_verror): Replace use of deprecated_throw_reason
4800 with call to fatal.
4801
de74e63a
YQ
48022013-07-31 Pedro Alves <pedro@codesourcery.com>
4803 Yao Qi <yao@codesourcery.com>
4804
4805 * tracepoint.c (trace_dump_command): Select the current frame.
4806
247f5c4f
DE
48072013-07-30 Doug Evans <dje@google.com>
4808
4809 * dwarf2read.c (process_queue): Add type signature to debug output.
4810
11b4b7cc
AB
48112013-07-30 Andrew Burgess <aburgess@broadcom.com>
4812
4813 * value.c (value_fetch_lazy): Mark optimized out values as such
4814 rather than raising an error.
4815
b0c54aa5
AB
48162013-07-30 Andrew Burgess <aburgess@broadcom.com>
4817
4818 * value.c (value_fetch_lazy): Ensure parent value is not lazy
4819 before checking which bits of the parent, not the child, value are
4820 valid.
4821
97c85fc6
MB
48222013-07-30 Muhammad Bilal <mbilal@codesorcery.com>
4823
4824 PR gdb/15715
4825 * top.c: Include "filenames.h".
4826 (set_history_filename): New function.
4827 (init_main): Install it as set hook of the "set history filename"
4828 command.
4829
ff39bb5e
SA
48302013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
4831
4832 * dwarf2read.c (dwarf2_get_ref_die_offset): Constify struct
4833 attribute parameter.
4834 (dwarf2_const_value_data): Constify struct attribute parameter.
4835 (dwarf2_const_value): Constify struct attribute parameter.
4836 (dwarf2_const_value_attr): Constify struct attribute parameter.
4837 (lookup_die_type): Constify struct attribute parameter.
4838 (dwarf2_get_attr_constant_value): Constify struct attribute parameter.
4839 (follow_die_ref_or_sig): Constify struct attribute parameter.
4840 (follow_die_ref): Constify struct attribute parameter.
4841 (follow_die_sig): Constify struct attribute parameter.
4842 (get_DW_AT_signature_type): Constify struct attribute parameter.
4843 (get_type_unit_group): Constify struct attribute parameter.
4844 (fill_in_loclist_baton): Constify struct attribute parameter.
4845 (dwarf2_symbol_mark_computed): Constify struct attribute parameter.
4846 (type_unit_group): Constify struct attribute parameter.
4847
6e5a29e1
SA
48482013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
4849
4850 * dwarf2read.c (attr_form_is_block): Make argument const.
4851 (attr_form_is_section_offset): Make argument const.
4852 (attr_form_is_constant): Make argument const.
4853 (attr_form_is_ref): Make argument const.
4854
7771576e
SA
48552013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
4856
4857 * dwarf2read.c (attr_is_ref): Rename to attr_form_is_ref.
4858 All uses updated.
4859 (attr_form_is_ref): Moved below attr_form_is_constant.
4860
a94e8645
DE
48612013-07-29 Doug Evans <dje@google.com>
4862
bb5291d0
DE
4863 * main.c (captured_command_loop): Tweak comment.
4864
b5419e49
DE
4865 * target.c (target_async_permitted_1): Fix comment.
4866
b2d23133
DE
4867 * symtab.c (iterate_over_some_symtabs): Add comment.
4868
a94e8645
DE
4869 * symtab.c (iterate_over_some_symtabs): Fix indentation.
4870
7a60ad40
YQ
48712013-07-27 Yao Qi <yao@codesourcery.com>
4872
4873 * NEWS: Mention that GDBserver now supports hardware
4874 watchpoints on the MIPS GNU/Linux target.
4875
aaee2056
YQ
48762013-07-27 Yao Qi <yao@codesourcery.com>
4877
4878 * Makefile.in (HFILES_NO_SRCDIR): Add
4879 common/mips-linux-watch.h.
4880 (mips-linux-watch.o): New rule.
4881 * common/mips-linux-watch.c: New.
4882 * common/mips-linux-watch.h: New.
4883 * config/mips/linux.mh (NATDEPFILES): Add mips-linux-watch.o
4884 * mips-linux-nat.c: Include mips-linux-watch.h.
4885 (W_BIT, R_BIT, I_BIT, W_MASK, R_MASK, I_MASK, IRW_MASK): Move
4886 to common/mips-linux-watch.h.
4887 (MAX_DEBUG_REGISTER): Likewise.
4888 (enum pt_watch_style): Likewise.
4889 (struct mips32_watch_regs): Likewise.
4890 (struct mips64_watch_regs): Likewise.
4891 (struct pt_watch_regs): Likewise.
4892 (struct mips_watchpoint): Likewise.
4893 (mips_linux_watch_get_irw_mask): Move to
4894 common/mips-linux-watch.c.
4895 (get_reg_mask, mips_linux_watch_get_num_valid): Likewise.
4896 (mips_linux_watch_get_watchlo): Likewise.
4897 (mips_linux_watch_set_watchlo): Likewise.
4898 (mips_linux_watch_get_watchhi): Likewise.
4899 (mips_linux_watch_set_watchhi): Likewise.
4900 (mips_linux_read_watch_registers): Likewise.
4901 (mips_linux_watch_type_to_irw): Likewise.
4902 (mips_linux_stopped_data_address, fill_mask): Likewise.
4903 (mips_linux_watch_try_one_watch): Likewise.
4904 (mips_linux_watch_populate_regs): Likewise.
4905
b3436450
YQ
49062013-07-27 Yao Qi <yao@codesourcery.com>
4907
4908 * mips-linux-nat.c (get_irw_mask): Rename to ...
4909 (mips_linux_watch_get_irw_mask): ... this. Rename parameter
4910 'set' to 'n'. Update function comment. All callers changed.
4911 (get_reg_mask): Rename parameter 'set' to 'n'. Update
4912 function comment. All callers changed.
4913 (get_num_valid): Rename to ...
4914 (mips_linux_watch_get_num_valid): ... this. Rename parameter
4915 'set' to 'n'. Update function comment. All callers changed.
4916 (get_watchlo): Rename to ...
4917 (mips_linux_watch_get_watchlo): ... this. Rename parameter
4918 'set' to 'n'. Update function comment. All callers changed.
4919 (set_watchlo): Rename to ...
4920 (mips_linux_watch_set_watchlo): ... this. Rename parameter
4921 'set' to 'n'. Update function comment. All callers changed.
4922 (get_watchhi): Rename to ...
4923 (mips_linux_watch_get_watchhi): ... this. Update function
4924 comment. All callers changed.
4925 (set_watchhi): Rename to ...
4926 (mips_linux_watch_set_watchhi): ... this. Update function
4927 comment. All callers changed.
4928 (mips_linux_read_watch_registers): Update function comment.
4929 Add new parameters 'lwpid', 'watch_readback', and
4930 'watch_readback_valid'. Update.
4931 (type_to_irw): Rename to ...
4932 (mips_linux_watch_type_to_irw): ... this. Update function
4933 comment. All callers changed.
4934 (fill_mask): Update function comment.
4935 (try_one_watch): Rename to ...
4936 (mips_linux_watch_try_one_watch): ... this. Change the type
4937 of parameter 'irw' from 'unsigned' to 'uint32_t'.
4938 (populate_regs_from_watches): Rename to ...
4939 (mips_linux_watch_populate_regs): ... this. Add parameter
4940 'current_watches'. All callers changed.
4941
9be14b81
YQ
49422013-07-27 Yao Qi <yao@codesourcery.com>
4943
4944 * mips-linux-nat.c (MAX_DEBUG_REGISTER): Move it earlier in
4945 the code.
4946 (PTRACE_SET_WATCH_REGS, enum pt_watch_style): Remove.
4947 (struct mips32_watch_regs, struct mips64_watch_regs): Remove.
4948 (struct pt_watch_regs): Likewise.
4949 [!PTRACE_GET_WATCH_REGS] (PTRACE_SET_WATCH_REGS): New macro.
4950 [!PTRACE_GET_WATCH_REGS] (enum pt_watch_style): New.
4951 [!PTRACE_GET_WATCH_REGS] (struct mips32_watch_regs): New.
4952 [!PTRACE_GET_WATCH_REGS] (struct mips64_watch_regs): New.
4953 [!PTRACE_GET_WATCH_REGS] (struct pt_watch_regs): New.
4954
de6f69ad
YQ
49552013-07-27 Yao Qi <yao@codesourcery.com>
4956
4957 * breakpoint.h: Include break-common.h.
4958 (enum target_hw_bp_type): Move to ...
4959 * common/break-common.h: ... here. New.
4960
6f64ef53
PA
49612013-07-26 Cyril Nikolaev <cyril@nichtverstehen.de>
4962
4963 * inflow.c (terminal_init_inferior_with_pgrp): Save inferior
4964 process group regardless of having tty on stdin.
4965
6107e809
DE
49662013-07-25 Doug Evans <dje@google.com>
4967
4968 * linux-fork.h (detach_fork): Delete.
4969
7fdc1521
TT
49702013-07-25 Tom Tromey <tromey@redhat.com>
4971
4972 PR remote/15256, PR remote/15266:
4973 * bfd-target.c (target_bfd_reopen): Initialize to_magic.
4974 * monitor.c (monitor_detach): Use unpush_target.
4975 * remote-m32r-sdi.c (m32r_detach): Use unpush_target.
4976 * remote-mips.c (mips_detach): Use unpush_target. Don't
4977 call mips_close.
4978 * remote-sim.c (gdbsim_detach): Use unpush_target.
4979 * target.c (pop_target): Remove.
4980 (pop_all_targets_above): Don't call target_close.
4981 (target_close): Assert that the target is unpushed.
4982 * target.h (pop_target): Don't declare.
4983 * tracepoint.c (tfile_open): Use unpush_target.
4984
c22a2b88
TT
49852013-07-25 Tom Tromey <tromey@redhat.com>
4986
4987 * linux-thread-db.c (init_thread_db_ops): Call
4988 complete_target_initialization.
4989 (_initialize_thread_db): Don't call add_target.
4990 * target.c (complete_target_initialization): New function.
4991 (add_target_with_completer): Call it.
4992 * target.h (complete_target_initialization): Declare.
4993
cbb6aada
MK
49942013-07-25 Mark Kettenis <kettenis@gnu.org>
4995
4996 * hppa-tdep.h (enum hppa_regnum): Add members for all space registers.
4997 * hppaobsd-tdep.c (HPPAOBSD_SIZEOF_GREGS): Add comment.
4998 (HPPANBSD_SIZEOF_GREGS): New define.
4999 (hppaobsd_supply_gregset): Handle additional registers.
5000 * hppabsd-nat.c (hppabsd_gregset_supplies_p): Adjust to indicate
5001 we provide more registers now.
5002 (hppabsd_supply_gregset): Supply additional registers.
5003 (hppabsd_collect_gregset): Collect additional registers.
5004
17767988
MK
50052013-07-25 Mark Kettenis <kettenis@gnu.org>
5006
5007 * hppabsd-tdep.c: Include "dwarf2-frame.h".
5008 (hppabsd_dwarf2_frame_init_reg): New function.
5009 (hppabsd_init_abi): Hook in the DWARF CFI frame unwinder.
5010
fdc8aae8
AB
50112013-07-25 Andrew Burgess <aburgess@broadcom.com>
5012
5013 * mi/mi-main.c (output_register): Make MI 'r' format use standard
5014 'z' format code. Remove error for optimized out values, standard
5015 code will handle these fine.
5016
6fbe845e
AB
50172013-07-25 Andrew Burgess <aburgess@broadcom.com>
5018
5019 * NEWS: Mention new 'z' formatter.
5020 * printcmd.c (print_scalar_formatted): Add new 'z' formatter.
5021 (_initialize_printcmd): Mention 'z' formatter in help text of the
5022 'x' command.
5023
3373342d
MR
50242013-07-24 Maciej W. Rozycki <macro@codesourcery.com>
5025
5026 * mips-tdep.c (micromips_deal_with_atomic_sequence): Correct
5027 formatting.
5028
25f9533e
SDJ
50292013-07-24 Sergio Durigan Junior <sergiodj@redhat.com>
5030
5031 * breakpoint.c (create_longjmp_master_breakpoint): Check if probe
5032 interface can evaluate arguments. Fallback to the old mode if it
5033 cannot.
5034 (create_exception_master_breakpoint): Likewise.
5035 * elfread.c (elf_can_evaluate_probe_arguments): New function.
5036 (struct sym_probe_fns elf_probe_fns): Export function above to the
5037 probe interface.
5038 * probe.c (can_evaluate_probe_arguments): New function.
5039 * probe.h (struct probe_ops) <can_evaluate_probe_arguments>: New
5040 function pointer.
5041 (can_evaluate_probe_arguments): New function prototype.
5042 * solib-svr4.c (svr4_create_solib_event_breakpoints): Check if
5043 probe interface can evaluate arguments. Fallback to the old mode
5044 if it cannot.
5045 * stap-probe.c (stap_get_probe_argument_count): Check if probe
5046 interface can evaluate arguments. Warning the user if it cannot.
5047 (stap_can_evaluate_probe_arguments): New function.
5048 (struct probe_ops stap_probe_ops): Export function above to the
5049 probe interface.
5050 * symfile.h (struct sym_probe_fns) <can_evaluate_probe_arguments>:
5051 New function pointer.
5052
3360c0bf
LM
50532013-07-24 Luis Machado <lgustavo@codesourcery.com>
5054
5055 * Makefile.in (SFILES): Add common/target-common.c.
5056 Add common/target-common.h to headers.
5057 (COMMON_OBS): Add target-common.o.
5058 (target-common.o): New target.
5059 * linux-nat.h (resume_kind): Move to common/target-common.h.
5060 * target.c (target_waitstatus_to_string): Move to
5061 common/target-common.c.
5062 * target.h: Include target-common.h.
5063 (target_waitkind): Move to common/target-common.h.
5064 (target_waitstatus): Likewise.
5065 (TARGET_WNOHANG): Likewise.
5066 * common/target-common.c: New file.
5067 * common/target-common.h: New file.
5068
6656a72d
DE
50692013-07-24 Doug Evans <dje@google.com>
5070
5071 * dwarf2read.c (lookup_dwo_cutu): Change missing DWO complaint to
5072 a warning.
5073
6df81a63
YQ
50742013-07-23 Yao Qi <yao@codesourcery.com>
5075
5076 * i386-tdep.c (i386_in_stack_tramp_p): Remove unused
5077 parameter 'gdbarch'.
5078 (i386_stack_tramp_frame_sniffer): Caller update.
5079 * i386-linux-tdep.c (i386_linux_core_read_xcr0): Remove
5080 parameter 'gdbarch' and 'target'.
5081 (i386_linux_core_read_description): Caller update.
5082 * amd64-linux-tdep.c (amd64_linux_core_read_description):
5083 Likewise.
5084 * i386-linux-tdep.h (i386_linux_core_read_xcr0): Update
5085 declaration.
5086
365156ad
TT
50872013-07-23 Tom Tromey <tromey@redhat.com>
5088
5089 * dwarf2read.c (init_cutu_and_read_dies): Revert patch from
5090 2013-07-22.
5091
046ac79f
JK
50922013-07-22 Doug Evans <dje@google.com>
5093
5094 * exec.h (remove_target_sections): Delete arg abfd.
66cbcda4
JK
5095 * exec.c (exec_close): Update call to remove_target_sections.
5096 (remove_target_sections): Delete arg abfd.
046ac79f
JK
5097 * solib.c (update_solib_list): Ditto.
5098 (reload_shared_libraries_1): Ditto.
5099 (clear_solib): Ditto, and unconditionally call remove_target_sections.
66cbcda4
JK
5100 * target.h (struct target_section): Rename key to owner.
5101 All uses updated.
046ac79f 5102
29b2cc46
TT
51032013-07-22 Tom Tromey <tromey@redhat.com>
5104
5105 * solib-som.c (som_open_symbol_file_object): Call do_cleanups.
5106
d1160018
TT
51072013-07-22 Tom Tromey <tromey@redhat.com>
5108
5109 * dwarf2read.c (init_cutu_and_read_dies): Remove 'free_cu_cleanup'.
5110 Simplify cleanup handling.
5111
2f324bf6
TT
51122013-07-22 Tom Tromey <tromey@redhat.com>
5113
5114 * dwarf2read.c (dwarf_decode_line_header): Call do_cleanups
5115 on all return paths.
5116
e23b9d6e
UW
51172013-07-22 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
5118
5119 * ppc-linux-nat.c (PPC_DEBUG_FEATURE_DATA_BP_DAWR): New define.
5120 (ppc_linux_region_ok_for_hw_watchpoint): Add checking to use the new
5121 DAWR interface for longer ranges hardware watchpoint (up to 512 bytes).
5122
1cf55f60
PM
51232013-07-22 Phil Muldoon <pmuldoon@redhat.com>
5124
5125 * top.c (print_gdb_version): Add help, apropos description and
5126 url to online documentation.
5127
fa876972
HZ
51282013-07-19 Hui Zhu <hui@codesourcery.com>
5129
5130 PR gdb/15692
5131 * mi/mi-cmd-break.c (mi_argv_to_format): Handle double quotes.
5132
1527aea8
YQ
51332013-07-19 Yao Qi <yao@codesourcery.com>
5134
5135 * target.c (update_current_target): Change the default action
5136 of 'to_traceframe_info' from tcomplain to return_zero.
5137 * target.h (struct target_ops) <to_traceframe_info>: Add more
5138 comments.
5139 * valops.c (read_value_memory): Call
5140 traceframe_available_memory unconditionally.
5141
886f230e
YQ
51422013-07-18 Yao Qi <yao@codesourcery.com>
5143
5144 * coffread.c (coff_symfile_read): Iterate over minimal symbols,
5145 if the name is prefixed by "__imp_" or "_imp_", look for minimal
5146 symbol without prefix. If found, set its type to
5147 'mst_solib_trampoline'.
5148
16419bae
DE
51492013-07-17 Doug Evans <dje@google.com>
5150
e7045703
DE
5151 * NEWS: Mention "set print raw frame-arguments".
5152 * gdbcmd.h (setprintrawlist, showprintrawlist): Declare.
5153 * stack.c (print_raw_frame_arguments): New static global.
5154 (print_frame_arg): Set opts.raw from print_raw_frame_arguments.
5155 (_initialize_stack): New command "set/show print raw frame-arguments".
5156 * valprint.c (setprintrawlist, showprintrawlist): New globals.
5157 (set_print_raw, show_print_raw): New functions.
5158 (_initialize_valprint): New prefix command "set/show print raw".
5159 * valprint.h (value_print_options): Improve comments.
5160
453e48a5
DE
5161 * cli/cli-cmds.c (init_cmd_lists): Delete unnecessary initialization
5162 of all *list variables.
5163
16419bae
DE
5164 * gdbcmd.h (togglelist): Delete.
5165 * cli/cli-cmds.c (togglelist): Delete.
5166 (init_cmd_lists): Update.
5167 * cli/cli-cmds.h (togglelist): Delete.
5168
626f2d1c
TT
51692013-07-17 Tom Tromey <tromey@redhat.com>
5170
5171 * dwarf2read.c (dwarf2_per_objfile_free): Clear
5172 dwarf2_per_objfile.
5173
57e6060e
DE
51742013-07-16 Doug Evans <dje@google.com>
5175
5176 * nto-tdep.c (nto_relocate_section_addresses): Update,
5177 target_section.bfd deleted.
5178 * ppc64-tdep.c (ppc64_convert_from_func_ptr_addr): Ditto.
5179 * s390-tdep.c (s390_load): Ditto.
5180 * solib-aix.c (solib_aix_relocate_section_addresses): Ditto.
5181
5ea5559b
AB
51822013-07-16 Andrew Burgess <aburgess@broadcom.com>
5183
5184 * common/format.c (parse_format_string): Add checks for NULL
5185 character before calling strchr.
5186
2b2848e2
DE
51872013-07-16 Doug Evans <dje@google.com>
5188
2c571006
DE
5189 * solist.h (target_so_ops.find_and_open_solib): Clarify usage of
5190 temp_pathname argument.
5191 * nto-tdep.c (nto_find_and_open_solib): Fix setting of temp_pathname
5192 when opening the file fails.
5193
2b2848e2
DE
5194 * target.h (struct target_section): Delete member bfd.
5195 All users updated to use the_bfd_section->owner instead.
5196 * exec.c (add_to_section_table): Assert bfd is expected value.
5197 Remove initialization of target_section.bfd.
5198 (remove_target_sections): Update.
5199 (section_table_available_memory): Update.
5200 (section_table_xfer_memory_partial): Update.
5201 (print_section_info): Update.
5202 (exec_set_section_address): Update.
5203 * record-full.c (record_full_core_xfer_partial): Update.
5204 * solib-svr4.c (svr4_relocate_section_addresses): Update.
5205 * solib-target.c (solib_target_relocate_section_addresses): Update.
5206 * symfile.c (build_section_addr_info_from_section_table): Update.
5207 * target.c (memory_xfer_live_readonly_partial): Update.
5208 (memory_xfer_partial_1): Update.
5209
926bf92d
UW
52102013-07-15 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
5211
5212 * ppc-linux-nat.c: Since the new PowerPC specific ptrace interface is
5213 now available for embedded (BookE) and server (BookS) processors,
5214 correct mentions of 'booke' and adjust comments accordingly in order to
5215 avoid confusion. Rename struct 'booke_debug_info' to 'hwdebug_info'.
5216 (have_ptrace_booke_interface): Rename function and variable
5217 'have_ptrace_booke_interface' to 'have_ptrace_hwdebug_interface'.
5218 Rename struct 'booke_debug_info' to 'hwdebug_info'. Update all uses.
5219 (booke_cmp_hw_point): Rename function 'booke_cmp_hw_point' to
5220 'hwdebug_point_cmp'. Update all uses.
5221 (booke_find_thread_points_by_tid): Rename function
5222 'booke_find_thread_points_by_tid' to
5223 'hwdebug_find_thread_points_by_tid'. Update all uses.
5224 (booke_insert_point): Rename function 'booke_insert_point' to
5225 'hwdebug_insert_point'. Update all uses.
5226 (booke_remove_point): Rename function 'booke_remove_point' to
5227 'hwdebug_remove_point'. Update all uses.
5228
d929bc19
MR
52292013-07-15 Maciej W. Rozycki <macro@codesourcery.com>
5230
5231 * mips-tdep.c (mips_gdbarch_init): Replace hardcoded magic
5232 numbers with enum values.
5233
054e8d9e
AA
52342013-07-15 Ali Anwar <ali_anwar@codesourcery.com>
5235
5236 PR threads/13217
5237 * thread.c (thread_apply_all_command): Check for valid threads
5238 and thread count.
5239 (thread_array_cleanup): New struct.
5240 (set_thread_refcount): New function.
5241
cf006359
AB
52422013-07-11 Andrew Burgess <aburgess@broadcom.com>
5243
5244 * infcmd.c (default_print_one_register_info): Reuse function
5245 print_hex_chars.
5246
94e36acc
TT
52472013-07-10 Tom Tromey <tromey@redhat.com>
5248
5249 * Makefile.in (GDB_WARN_CFLAGS_NO_DEFS, ADA_EXP_C): New macros.
5250 (ada-exp.o): New target.
5251
915dd369
SDJ
52522013-07-10 Sergio Durigan Junior <sergiodj@redhat.com>
5253
5254 * mt-tdep.c (mt_registers_info): Call
5255 get_no_prettyformat_print_options instead of
5256 get_raw_print_options (regression by last patch from Doug
5257 Evans).
5258
eca07816
JB
52592013-07-09 Pedro Alves <palves@redhat.com>
5260
5261 Checked in by Joel Brobecker <brobecker@adacore.com>.
5262 * ada-lang.c (coerce_unspec_val_to_type): Use
5263 value_optimized_out_const.
5264 * value.c (value_optimized_out_const): New function.
5265 * value.h (value_optimized_out_const): New declaration.
5266
2a998fc0
DE
52672013-07-09 Doug Evans <dje@google.com>
5268
5269 * defs.h (enum val_prettyformat): Renamed from val_prettyprint.
5270 Enum values rename as well. All uses updated.
5271 * valprint.h (value_print_options): Rename member pretty to
5272 pretty format. Rename member prettyprint_arrays to
5273 prettyformat_arrays. Rename member prettyprint_structs to
5274 prettyformat_structs. All uses updated.
5275 (get_no_prettyformat_print_options): Renamed from
5276 get_raw_print_options.
5277 * valprint.c (get_no_prettyformat_print_options): Renamed from
5278 get_raw_print_options. All callers updated.
5279 (show_prettyformat_structs): Renamed from show_prettyprint_structs.
5280 All callers updated.
5281 (show_prettyformat_arrays): Renamed from show_prettyprint_arrays.
5282 All callers updated.
5283 (_initialize_valprint): Improve help text for "set print pretty" and
5284 "set print arrays".
5285
466c1fca
AB
52862013-07-09 Andrew Burgess <aburgess@broadcom.com>
5287
5288 * value.c (value_bits_valid): Revert previous change, and change
5289 by Pedro on 2013-07-04, due to regressions in
5290 gdb.dwarf2/implptr.exp and gdb.dwarf2/pieces.exp.
5291
ad0f0303
AB
52922013-07-08 Andrew Burgess <aburgess@broadcom.com>
5293 Pedro Alves <palves@redhat.com>
5294
5295 * value.c (value_bits_valid): If the value is not lval_computed
5296 or has no check validity handler then the answer is the
5297 optimized_out flag, otherwise defer to the handler.
5298
b187bec1
EZ
52992013-07-06 Eli Zaretskii <eliz@gnu.org>
5300
48d1d6f5
EZ
5301 * top.c (print_gdb_configuration): Explain in output of
5302 --configuration what does "relocatable" mean.
5303
b187bec1
EZ
5304 * main.c (print_gdb_help): Regroup options in the --help text.
5305 See http://sourceware.org/ml/gdb-patches/2013-04/msg00362.html for
5306 the relevant discussions.
5307
52d361e1
YQ
53082013-07-06 Yao Qi <yao@codesourcery.com>
5309
5310 * breakpoint.h (struct breakpoint_ops) <create_breakpoints_sal>:
5311 Remove parameter 'lsal'.
5312 * breakpoint.c (create_breakpoint): Move local variable 'lsal'
5313 to inner block. Caller update.
5314 (base_breakpoint_create_breakpoints_sal): Update.
5315 (bkpt_create_breakpoints_sal): Likewise.
5316 (tracepoint_create_breakpoints_sal): Likewise.
5317 (strace_marker_create_breakpoints_sal): Get 'lsal' from the
5318 element 0 of vector 'canonical->sals'.
5319
e1ec1b42
LM
53202013-07-05 Luis Machado <lgustavo@codesourcery.com>
5321
5322 * rs6000-tdep.c (rs6000_stab_reg_to_regnum): Return the real
5323 register number instead of the pseudo register one.
5324 (rs6000_dwarf2_reg_to_regnum): Likewise.
5325
7195e6f0
PA
53262013-07-04 Pedro Alves <palves@redhat.com>
5327
5328 * findvar.c (value_of_register): Use allocate_optimized_out_value
5329 if the register has been optimized out, instead of
5330 set_value_optimized_out.
5331 * frame-unwind.c (frame_unwind_got_optimized): Use
5332 allocate_optimized_out_value.
5333
58722cac
PA
53342013-07-04 Pedro Alves <palves@redhat.com>
5335
5336 * value.c (value_bits_valid): If the value is not lval_computed,
5337 or doesn't have a check_validity hook, assume the value is entirely
5338 valid.
5339
691a26f5
AB
53402013-07-04 Andrew Burgess <aburgess@broadcom.com>
5341
5342 * stack.c (read_frame_arg): No longer fetch lazy values.
5343 * value.c (value_optimized_out): If the value is not already
5344 marked optimized out, and is lazy then fetch it.
5345 (value_primitive_field): Move optimized out check to later in the
5346 function, after we have loaded any lazy values.
5347 (value_fetch_lazy): Use optimized out flag directly rather than
5348 calling optimized_out method.
5349
a58e2656
AB
53502013-07-04 Andrew Burgess <aburgess@broadcom.com>
5351
5352 * valops.c: Don't include "user-regs.h".
5353 (value_fetch_lazy): Moved to value.c.
5354 * value.c: Include "user-regs.h".
5355 (value_fetch_lazy): Moved from valops.c.
5356
bd885420
YQ
53572013-07-04 Yao Qi <yao@codesourcery.com>
5358
5359 Revert:
5360 2013-06-27 Yao Qi <yao@codesourcery.com>
5361
5362 * common/create-version.sh: Update comments. Handle the case
5363 that TARGET_ALIAS is empty.
5364
17ef446e
PA
53652013-07-03 Pedro Alves <palves@redhat.com>
5366
5367 * Makefile.in (config.status): Depend on development.sh.
5368 (aclocal_m4_deps): Add libmcheck.m4.
5369 * acinclude.m4: Include libmcheck.m4.
5370 * configure.ac: Source development.sh instead of setting
5371 'development' here. --enable-libmcheck/--disable-libmcheck code
5372 factored out to GDB_AC_LIBMCHECK. Run it.
5373 * development.sh: New file.
5374 * libmcheck.m4: New file.
5375 * configure: Regenerate.
5376
ac6dd50f
TT
53772013-07-02 Tom Tromey <tromey@redhat.com>
5378
5379 * contrib/ari/update-web-ari.sh: Update for version.in change.
5380
bd1df410
TT
53812013-07-02 Tom Tromey <tromey@redhat.com>
5382
5383 * common/ptid.h: Comment fixes.
5384
4db1a1dc
TT
53852013-07-01 Tom Tromey <tromey@redhat.com>
5386
5387 * dwarf2read.c (dwarf2_get_dwz_file): Return NULL if
5388 .gnu_debugaltlink not found. Use bfd_get_alt_debug_link_info.
5389 (dwarf2_read_index, create_all_comp_units): Update.
5390
dd9aa048
TT
53912013-07-01 Tom Tromey <tromey@redhat.com>
5392
5393 * configure.ac (build_warnings): Add -Wold-style-definition.
5394 * configure: Rebuild.
5395 * machoread.c (_initialize_machoread): Use "(void)".
5396 * macrocmd.c (macro_inform_no_debuginfo): Fix formatting;
5397 use "(void)".
5398
44d100c3
TT
53992013-07-01 Tom Tromey <tromey@redhat.com>
5400
5401 * configure.ac (build_warnings): Add -Wold-style-declaration.
5402 * configure: Rebuild.
5403 * dsrec.c (make_srec): Use "static const", not "const static".
5404 * h8300-tdep.c (h8300_breakpoint_from_pc): Use "static const",
5405 not "const static".
5406 * mi/mi-parse.c (mi_no_values, mi_simple_values, mi_all_values):
5407 Use "static const", not "const static".
5408 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Use "static const",
5409 not "const static".
5410 * moxie-tdep.c (moxie_breakpoint_from_pc): Use "static const",
5411 not "const static".
5412 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Use "static const",
5413 not "const static".
5414 * v850-tdep.c (v850_breakpoint_from_pc): Use "static const",
5415 not "const static".
5416 (v850_dbtrap_breakpoint_from_pc): Likewise.
5417 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Use "static const",
5418 not "const static".
5419
2945b807
TT
54202013-07-01 Tom Tromey <tromey@redhat.com>
5421
5422 * configure.ac (build_warnings): Add -Wmissing-parameter-type.
5423 * configure: Rebuild.
5424
d8d2a3ee
PA
54252013-07-01 Pedro Alves <palves@redhat.com>
5426
5427 * defs.h: Include "pathmax.h".
5428 * utils.c: Don't include sys/param.h.
5429 (gdb_realpath): Remove code that checks for MAXPATHLEN.
5430 * solib-ia64-hpux.c (ia64_hpux_handle_load_event): Use PATH_MAX
5431 instead of MAXPATHLEN.
5432 * solib-sunos.c: Don't include sys/param.h.
5433 * xcoffread.c: Don't include sys/param.h.
5434 * bsd-kvm.c: Don't include sys/param.h.
5435 * darwin-nat.c: Don't include sys/param.h.
5436 (darwin_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
5437 * darwin-nat-info.c: Don't include sys/param.h.
5438 * fbsd-nat.c (fbsd_pid_to_exec_file): Use PATH_MAX instead of
5439 MAXPATHLEN.
5440 * i386obsd-nat.c: Don't include sys/param.h.
5441 * inf-child.c: Don't include sys/param.h.
5442 (inf_child_fileio_readlink): Use PATH_MAX instead of MAXPATHLEN.
5443 * linux-fork.c: Don't include sys/param.h.
5444 (fork_save_infrun_state): Use PATH_MAX instead of MAXPATHLEN.
5445 * linux-nat.c: Don't include sys/param.h.
5446 (linux_child_pid_to_exec_file, linux_proc_pending_signals)
5447 (linux_proc_pending_signals): Use PATH_MAX instead of MAXPATHLEN.
5448 * m68klinux-nat.c: Don't include sys/param.h.
5449 * nbsd-nat.c: Don't include sys/param.h.
5450 (nbsd_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
5451 * ppc-linux-nat.c: Don't include sys/param.h.
5452 * rs6000-nat.c: Don't include sys/param.h.
5453 * spu-linux-nat.c. Don't include sys/param.h.
5454 * windows-nat.c: Don't include sys/param.h.
5455 * xtensa-linux-nat.c: Don't include sys/param.h.
5456 * config/i386/nm-fbsd.h: Don't include sys/param.h.
5457
38ec2207
PA
54582013-07-01 Pedro Alves <palves@redhat.com>
5459
5460 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add pathmax.
5461 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/pathmax.m4.
5462 * gnulib/aclocal.m4: Regenerate.
5463 * gnulib/config.in: Regenerate.
5464 * gnulib/configure: Regenerate.
5465 * gnulib/import/pathmax.h: New file.
5466 * gnulib/import/Makefile.am: Regenerate.
5467 * gnulib/import/Makefile.in: Regenerate.
5468 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
5469 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
5470 * gnulib/import/m4/pathmax.m4: New file.
5471
e655c1a2
PA
54722013-07-01 Pedro Alves <palves@redhat.com>
5473
5474 * configure.ac (GDBINIT): Define, depending on host.
5475 * go32-nat.c (init_go32_ops): Don't override gdbinit here.
5476 * top.c (PATH_MAX): Delete fallback definition.
5477 (GDBINIT_FILENAME): Delete.
5478 (gdbinit): Reimplement as const char array set to the GDBINIT
5479 string constant.
5480 * top.h (gdbinit): Make const.
5481 * configure, config.in: Regenerate.
5482
50dd9793
PA
54832013-07-01 Pedro Alves <palves@redhat.com>
5484
5485 * cli/cli-cmds.c (source_script): Make 'file' parameter const.
5486 * cli/cli-cmds.h (source_script): Likewise.
5487 * exceptions.c (catch_command_errors_const): New function.
5488 * exceptions.h (catch_command_errors_const): Declare.
5489 * main.c (get_init_files): Make parameters const, and adjust.
5490 (captured_main): Make 'system_gdbinit', 'home_gdbinit' and
5491 'local_gdbinit' locals const. Adjust to use
5492 catch_command_errors_const.
5493 (print_gdb_help): Make 'system_gdbinit', 'home_gdbinit' and
5494 'local_gdbinit' locals const.
5495
bc7dea8d
PA
54962013-07-01 Pedro Alves <palves@redhat.com>
5497
5498 * defs.h: Don't check HAVE_UNISTD_H before including <unistd.h>.
5499 (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO): Delete.
5500 * tracepoint.c: Don't check HAVE_UNISTD_H before including
5501 <unistd.h>.
5502
8839a007
PA
55032013-07-01 Pedro Alves <palves@redhat.com>
5504
5505 Import the "unistd" gnulib module.
5506 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add "unistd".
5507 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/off_t.m4,
5508 import/m4/ssize_t.m4, import/m4/sys_types_h.m4 and
5509 import/m4/unistd_h.m4.
5510 * gnulib/aclocal.m4: Renenerate.
5511 * gnulib/config.in: Renenerate.
5512 * gnulib/configure: Renenerate.
5513 * gnulib/import/Makefile.am: Renenerate.
5514 * gnulib/import/Makefile.in: Renenerate.
5515 * gnulib/import/m4/gnulib-cache.m4: Renenerate.
5516 * gnulib/import/m4/gnulib-comp.m4: Renenerate.
5517 * gnulib/import/m4/off_t.m4: New file.
5518 * gnulib/import/m4/ssize_t.m4: New file.
5519 * gnulib/import/m4/sys_types_h.m4: New file.
5520 * gnulib/import/m4/unistd_h.m4: New file.
5521 * gnulib/import/sys_types.in.h: New file.
5522 * gnulib/import/unistd.c: New file.
5523 * gnulib/import/unistd.in.h: New file.
5524
8c0da261
PA
55252013-07-01 Pedro Alves <palves@redhat.com>
5526
5527 * utils.c <pathconf/_PC_PATH_MAX use>: Check if _PC_PATH_MAX is
5528 defined instead of checking HAVE_UNISTD_H.
5529
3574124b
PA
55302013-07-01 Pedro Alves <palves@redhat.com>
5531
5532 Reimport gnulib from scratch.
5533 * gnulib/Makefile.in (aclocal_m4_deps): Remove reference to
5534 import/m4/onceonly.m4.
5535 * gnulib/aclocal.m4: Renegerate.
5536 * gnulib/config.in: Renegerate.
5537 * gnulib/configure: Renegerate.
5538 * gnulib/import/Makefile.in: Renegerate.
5539 * gnulib/import/extra/update-copyright: Renegerate.
5540 * gnulib/import/m4/onceonly.m4: Delete.
5541
702dc4fd
PA
55422013-07-01 Pedro Alves <palves@redhat.com>
5543
5544 * tui/tui-regs.c (pagination_enabled): Delete declaration.
5545
47e1ce27
JK
55462013-06-30 Jan Kratochvil <jan.kratochvil@redhat.com>
5547
5548 Code cleanup.
5549 * remote.c (async_remote_interrupt_twice): Make it static.
5550 * remote.h (async_remote_interrupt_twice): Remove the declaration.
5551
e82839d4
SDJ
55522013-06-29 Sergio Durigan Junior <sergiodj@redhat.com>
5553
5554 * ia64-linux-tdep.c: Include <ctype.h>.
5555 (ia64_linux_stap_is_single_operand): New function.
5556 (ia64_linux_init_abi): Initialize SystemTap related attributes.
5557
d6c2da54
TT
55582013-06-28 Tom Tromey <tromey@redhat.com>
5559
5560 * Makefile.in (version.c): Use version.in, not
5561 common/version.in.
5562 * common/create-version.sh: Likewise.
5563 * common/version.in: Move...
5564 * version.in: ...here.
5565
74da6f00
PA
55662013-06-28 Pedro Alves <palves@redhat.com>
5567
5568 * infrun.c (set_observer_mode): Don't declare pagination_enabled
5569 here.
5570 * utils.h (pagination_enabled): Declare.
5571
d32dc48e
PA
55722013-06-28 Pedro Alves <palves@redhat.com>
5573
5574 * infrun.c (non_stop, non_stop_1, set_non_stop, show_non_stop):
5575 Move higher up in file.
5576
0edd9e3b
TT
55772013-06-28 Tom Tromey <tromey@redhat.com>
5578
5579 * tracepoint.c (deprecated_readline_begin_hook)
5580 (deprecated_readline_hook, deprecated_readline_end_hook): Don't
5581 declare.
5582
4eb59108
PA
55832013-06-28 Pedro Alves <palves@redhat.com>
5584
5585 PR tui/14880
5586 * tui/tui-regs.c (tui_get_register): Fetch value contents before
5587 checking if they're available.
5588 * value.c (value_available_contents_eq): Change comment.
5589 * value.h (value_available_contents_eq): Expand comment.
5590
97b17156
TT
55912013-06-27 Tom Tromey <tromey@redhat.com>
5592
5593 * target.c (find_run_target): Remove.
5594 * target.h (find_run_target): Remove.
5595
6a3bfc5c
TT
55962013-06-27 Tom Tromey <tromey@redhat.com>
5597
5598 * corelow.c (core_gdbarch): Now static.
5599
c9ef825d
TT
56002013-06-27 Tom Tromey <tromey@redhat.com>
5601
5602 * target.c (target_struct_index): Remove.
5603
e5823f1c
PA
56042013-06-27 Pedro Alves <palves@redhat.com>
5605
5606 * infrun.c: Remove comment describing the 'stepping over runtime
5607 loader dynamic symbol resolution code' mechanism; moved to
5608 gdbint.texinfo.
5609
97f8dd09
PA
56102013-06-27 Pedro Alves <palves@redhat.com>
5611
5612 * exceptions.c (catch_command_errors): Remove spurious space.
5613 * exceptions.h (catch_command_errors): Second parameter is "arg",
5614 not "command".
5615
02b1871e
YQ
56162013-06-27 Yao Qi <yao@codesourcery.com>
5617
5618 * common/create-version.sh: Update comments. Handle the case
5619 that TARGET_ALIAS is empty.
5620
bb1b1cf1
PA
56212013-06-26 Pedro Alves <palves@redhat.com>
5622
5623 * infrun.c (SOLIB_IN_DYNAMIC_LINKER): Delete macro and describing
5624 comment.
5625
7b624e71
PA
56262013-06-26 Pedro Alves <palves@redhat.com>
5627
5628 * infrun.c: Update comments on stepping over runtime loader
5629 dynamic symbol resolution code.
5630
74e5a346
SDJ
56312013-06-26 Sergio Durigan Junior <sergiodj@redhat.com>
5632
5633 * ax-gdb.h (union exp_element): Forward declare.
5634 * parser-defs.h: Include expression.h.
5635
a2fb2cee
MR
56362013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
5637
5638 * mips-tdep.c (fetch_mips_16): Use unmake_compact_addr.
5639
cdba14e0
DK
56402013-06-26 Dmitry Kozlov <ddk@codesourcery.com>
5641
5642 * tracepoint.c (trace_save): Extend tsave to save starttime, stoptime.
5643
f30aa5af
DK
56442013-06-26 Dmitry Kozlov <ddk@codesourcery.com>
5645
5646 Fix trace-status to output proper start-time and stop-time.
5647 * tracepoint.c (trace_status_command): Fix type of printf arg to
5648 prevent improper type conversion.
5649 (trace_status_mi): Likewise.
5650
1aee363c
MR
56512013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
5652
5653 * mips-tdep.c (mips_next_pc): Fix a typo.
5654
3356937a
MR
56552013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
5656
5657 * mips-tdep.c (micromips_scan_prologue): Fix a typo.
5658
dc673c81
YQ
56592013-06-26 Pedro Alves <pedro@codesourcery.com>
5660 Yao Qi <yao@codesourcery.com>
5661
5662 * mi/mi-cmds.c (mi_cmds): Register -trace-frame-collected.
5663 * mi/mi-cmds.h (mi_cmd_trace_frame_collected): Declare.
5664 * mi/mi-main.c (print_variable_or_computed): New function.
5665 (mi_cmd_trace_frame_collected): New function.
5666 * tracepoint.c (find_trace_state_variable_by_number): New.
5667 (struct traceframe_info): Move to tracepoint.h
5668 (struct collection_list): Likewise.
5669 (do_collect_symbol): Include locals and arguments in the
5670 collected variables list.
5671 (clear_collection_list): Clear wholly collected variables list
5672 and computed variables list.
5673 (append_exp): New function.
5674 (encode_actions_1): Include variables in the wholly
5675 collected variables list. Include memory ranges and
5676 full-fledged expressions in the computed expressions list.
5677 (encode_actions): Move some code to ...
5678 Return the cleanup chain.
5679 (encode_actions_rsp): ... here. New function.
5680 (get_traceframe_location, get_traceframe_info): Remove static.
5681 * tracepoint.h (struct memrange): Moved from tracepoint.c.
5682 (struct collection_list): Moved from tracepoint.c. Add two
5683 new fields 'wholly_collected' and 'computed'.
5684 (find_trace_state_variable_by_number): Declare.
5685 (encode_actions): Adjust declaration.
5686 (encode_actions_rsp): Declare.
5687 (get_traceframe_info, get_traceframe_location): Declare.
5688
5689 * NEWS: Mention new MI command -trace-frame-collected.
5690
28a93511
YQ
56912013-06-26 Pedro Alves <pedro@codesourcery.com>
5692 Yao Qi <yao@codesourcery.com>
5693
5694 * ctf.c (ctf_traceframe_info): Push trace state variables
5695 present in the trace data into the traceframe info object.
5696 * breakpoint.c (DEF_VEC_I): Remove.
5697 * common/filestuff.c (DEF_VEC_I): Likewise.
5698 * dwarf2loc.c (DEF_VEC_I): Likewise.
5699 * mi/mi-main.c (DEF_VEC_I): Likewise.
5700 * common/gdb_vecs.h (DEF_VEC_I): Define vector for int.
5701 * features/traceframe-info.dtd: Add tvar element and its
5702 attributes.
5703 * tracepoint.c (free_traceframe_info): Free vector 'tvars'.
5704 (build_traceframe_info): Push trace state variables present in
5705 the trace data into the traceframe info object.
5706 (traceframe_info_start_tvar): New function.
5707 (tvar_attributes): New.
5708 (traceframe_info_children): Add "tvar" element.
5709 * tracepoint.h (struct traceframe_info) <tvars>: New field.
5710
5711 * NEWS: Mention the change in GDB and GDBserver.
5712
ddacd3c8
YQ
57132013-06-26 Pedro Alves <pedro@codesourcery.com>
5714 Yao Qi <yao@codesourcery.com>
5715
5716 * tracepoint.c (trace_dump_command): Move code to ...
5717 (get_traceframe_location): ... here. New.
5718
05796b35
YQ
57192013-06-26 Pedro Alves <pedro@codesourcery.com>
5720 Yao Qi <yao@codesourcery.com>
5721
5722 * tracepoint.c (trace_dump_command): GDB emits an error
5723 instead of a warning when a traceframe is not selected.
5724
cbfa3b61
YQ
57252013-06-26 Pedro Alves <pedro@codesourcery.com>
5726 Yao Qi <yao@codesourcery.com>
5727
5728 * tracepoint.c (tracepoint_list, stepping_list): Remove.
5729 (clear_collection_list): Free fields 'aexpre_list' and 'list'
5730 in collection_list.
5731 (do_clear_collection_list, init_collection_list): New.
5732 (encode_actions): Add local variables 'tracepoint_list' and
5733 'stepping_list'. Call init_collection_list and make cleanup
5734 which calls do_clear_collection_list. Don't call
5735 clear_collection_list.
5736 (_initialize_tracepoint): Delete references to
5737 'tracepoint_list' and 'stepping_list'.
5738
6e2048d3
TT
57392013-06-25 Tom Tromey <tromey@redhat.com>
5740
5741 * common/create-version.sh (date): Use "$", not "$$" in sed
5742 expression.
5743
42059f0e
KB
57442013-06-25 Kevin Buettner <kevinb@redhat.com>
5745
5746 * NEWS (New targets): Add entry for TI MSP430.
5747
a0743c90
YQ
57482013-06-25 Yao Qi <yao@codesourcery.com>
5749
5750 * remote.c (remote_start_remote): Move code to upload tsv
5751 earlier.
5752
9d6e6e84
HZ
57532013-06-25 Yao Qi <yao@codesourcery.com>
5754 Hui Zhu <hui@codesourcery.com>
5755 Pedro Alves <palves@redhat.com>
5756
5757 PR breakpoints/15075
5758 PR breakpoints/15434
5759 * breakpoint.c (bpstat_stop_status): Call
5760 b->ops->after_condition_true.
5761 (update_dprintf_command_list): Don't append "continue" command
5762 to the command list of dprintf breakpoint.
5763 (base_breakpoint_after_condition_true): New function.
5764 (base_breakpoint_ops): Add base_breakpoint_after_condition_true.
5765 (dprintf_after_condition_true): New function.
5766 (initialize_breakpoint_ops): Set dprintf_after_condition_true.
5767 * breakpoint.h (breakpoint_ops): Add after_condition_true.
5768
586cf749
KB
57692013-06-24 Kevin Buettner <kevinb@redhat.com>
5770
5771 * Makefile.in (ALL_TARGET_OBS): Add msp430-tdep.o.
5772 (ALLDEPFILES): Add msp430-tdep.c.
5773 * configure.tgt (msp430*-*-elf): New target.
5774 * msp430-tdep.c: New file.
5775
1bbce132
MR
57762013-06-24 Maciej W. Rozycki <macro@codesourcery.com>
5777
5778 * mips-tdep.c (mips_elf_make_msymbol_special): Handle MIPS16 and
5779 microMIPS synthetic symbols.
5780
3e5d3a5a
MR
57812013-06-24 Maciej W. Rozycki <macro@codesourcery.com>
5782
5783 * objfiles.h (pc_in_section): New prototype.
5784 (in_plt_section): Remove name argument, replace prototype with
5785 static inline function.
5786 * mips-tdep.h: Include "objfiles.h".
5787 (in_mips_stubs_section): New function.
5788 * hppa-tdep.h (gdbarch_tdep): Remove name argument of
5789 in_solib_call_trampoline member.
5790 (hppa_in_solib_call_trampoline): Remove name argument.
5791 * objfiles.c (pc_in_section): New function.
5792 (in_plt_section): Remove function.
5793 * mips-linux-tdep.c: Include "objfiles.h".
5794 (mips_linux_in_dynsym_stub): Call in_mips_stubs_section. Remove
5795 name argument. Return 1 rather than the low 16-bit halfword of
5796 any instruction examined.
5797 (mips_linux_in_dynsym_resolve_code): Update
5798 mips_linux_in_dynsym_stub call accordingly.
5799 * mips-tdep.c (mips_stub_frame_sniffer): Use in_mips_stubs_section
5800 rather than an equivalent hand-coded sequence.
5801 * hppa-hpux-tdep.c (in_opd_section): Remove function.
5802 (hppa32_hpux_in_solib_call_trampoline): Remove name argument.
5803 (hppa64_hpux_in_solib_call_trampoline): Likewise.
5804 (hppa64_hpux_find_global_pointer): Use pc_in_section rather than
5805 in_opd_section.
5806 * hppa-tdep.c (hppa_stub_unwind_sniffer): Remove name argument
5807 on call to tdep->in_solib_call_trampoline.
5808 (hppa_in_solib_call_trampoline): Remove name argument, update
5809 according to in_plt_section change.
5810 (hppa_skip_trampoline_code): Update according to in_plt_section
5811 change.
5812 * aarch64-tdep.c (aarch64_stub_unwind_sniffer): Likewise.
5813 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code):
5814 Likewise.
5815 * arm-tdep.c (arm_stub_unwind_sniffer): Likewise.
5816 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): Likewise.
5817 * hppabsd-tdep.c (hppabsd_find_global_pointer): Likewise.
5818 * nios2-tdep.c (nios2_stub_frame_sniffer): Likewise.
5819 * nto-tdep.c (nto_relocate_section_addresses): Likewise.
5820 * s390-tdep.c (s390_stub_frame_sniffer): Likewise.
5821 * sh-tdep.c (sh_stub_unwind_sniffer): Likewise.
5822 * solib-dsbt.c (dsbt_in_dynsym_resolve_code): Likewise.
5823 * solib-frv.c (frv_in_dynsym_resolve_code): Likewise.
5824 * solib-svr4.c (svr4_in_dynsym_resolve_code): Likewise.
5825 * solib-target.c (solib_target_in_dynsym_resolve_code): Likewise.
5826 * sparc-tdep.c (sparc_analyze_prologue): Likewise.
5827 * tic6x-tdep.c (tic6x_stub_unwind_sniffer): Likewise.
5828
b9b26a16
JB
58292013-06-24 Joel Brobecker <brobecker@adacore.com>
5830
5831 * common/create-version.sh: Fix expansion of $host_alias
5832 and $target_alias in generation of HOST_NAME and TARGET_NAME
5833 (resp.).
5834
01208463
TT
58352013-06-24 Tom Tromey <tromey@redhat.com>
5836
5837 * common/create-version.sh: New file.
5838 * Makefile.in (version.c): Use bfd/version.h, common/version.in,
5839 create-version.sh.
5840 (HFILES_NO_SRCDIR): Use common/version.h.
5841 * version.in: Move to ...
5842 * common/version.in: ... here. Replace date with "DATE".
5843 * version.h: Move to ...
5844 * common/version.h: ... here.
5845
bb6b9a5e
JB
58462013-06-21 Joel Brobecker <brobecker@adacore.com>
5847
5848 * gdb/gnulib/Makefile.in: Update date in copyright header.
5849 * gdb/gnulib/configure.ac: Ditto.
5850 * gdb/gnulib/update-gnulib.sh: Ditto.
5851
c3b18ee7
JB
58522013-06-21 Joel Brobecker <brobecker@adacore.com>
5853
5854 * copyright.py (EXCLUDE_LIST): Replace "gdb/gnulib" by
5855 "gdb/gnulib/import".
5856
85d3b769
WN
58572013-06-21 Will Newton <will.newton@linaro.org>
5858
5859 * doublest.c (ldfrexp): Remove function.
5860 (convert_doublest_to_floatformat): Call frexpl instead of
5861 ldfrexp.
5862
88b48903
WN
58632013-06-21 Will Newton <will.newton@linaro.org>
5864
5865 * gnulib/update-gnulib.sh(IMPORTED_GNULIB_MODULES): Add frexpl.
5866 * gnulib/aclocal.m4: Regenerate.
5867 * gnulib/config.in: Regenerate.
5868 * gnulib/configure: Regenerate.
5869 * gnulib/import/Makefile.am: Update.
5870 * gnulib/import/Makefile.in: Update.
5871 * gnulib/import/m4/gnulib-cache.m4: Update.
5872 * gnulib/import/m4/gnulib-comp.m4: Update.
5873 * gnulib/import/float+.h: Import.
5874 * gnulib/import/float.c: Import.
5875 * gnulib/import/float.in.h: Import.
5876 * gnulib/import/fpucw.h: Import.
5877 * gnulib/import/frexp.c: Import.
5878 * gnulib/import/frexpl.c: Import.
5879 * gnulib/import/isnan.c: Import.
5880 * gnulib/import/isnand-nolibm.h: Import.
5881 * gnulib/import/isnand.c: Import.
5882 * gnulib/import/isnanl-nolibm.h: Import.
5883 * gnulib/import/isnanl.c: Import.
5884 * gnulib/import/itold.c: Import.
5885 * gnulib/import/m4/exponentd.m4: Import.
5886 * gnulib/import/m4/exponentl.m4: Import.
5887 * gnulib/import/m4/float_h.m4: Import.
5888 * gnulib/import/m4/fpieee.m4: Import.
5889 * gnulib/import/m4/frexp.m4: Import.
5890 * gnulib/import/m4/frexpl.m4: Import.
5891 * gnulib/import/m4/isnand.m4: Import.
5892 * gnulib/import/m4/isnanl.m4: Import.
5893 * gnulib/import/m4/math_h.m4: Import.
5894 * gnulib/import/math.c: Import.
5895 * gnulib/import/math.in.h: Import.
5896
4353c9e6
JK
58972013-06-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5898
5899 * common/linux-btrace.c (cpu_supports_btrace): Remove variable vendor,
5900 replace strcmp with signature_INTEL_ebx, signature_INTEL_ecx and
5901 signature_INTEL_edx comparisons.
5902
e3e06db3
DE
59032013-06-20 Doug Evans <dje@google.com>
5904
6ac97d4c
DE
5905 symtab/15652
5906 * dwarf2read.c (try_open_dwop_file): New arg search_cwd.
5907 All callers updated.
5908 (open_dwp_file): If we can't find the dwp file, search the basename
5909 in debug-file-directory.
5910
93417882
DE
5911 * dwarf2read.c (struct dwp_file): Fix comment.
5912 (open_and_init_dwp_file): Set dwp_file->name to bfd's file name.
5913
e3e06db3
DE
5914 * source.c (openp): Document OPF_TRY_CWD_FIRST+OPF_SEARCH_IN_PATH
5915 better.
5916
0878d0fa
YQ
59172013-06-20 Yao Qi <yao@codesourcery.com>
5918
5919 * breakpoint.c (create_breakpoint): Fix code indentation.
5920
023fa29b
YQ
59212013-06-20 Yao Qi <yao@codesourcery.com>
5922
5923 * breakpoint.c (create_breakpoints_sal_default): Remove
5924 parameter 'lsal'. Update declaration.
5925 (bkpt_create_breakpoints_sal): Caller update.
5926 (tracepoint_create_breakpoints_sal): Likewise.
5927
c898adb7
YQ
59282013-06-20 Pedro Alves <pedro@codesourcery.com>
5929 Yao Qi <yao@codesourcery.com>
5930
5931 * NEWS: Mention the new option '--skip-unavailable' of command
5932 -data-list-register-values.
5933 * mi/mi-main.c (mi_cmd_data_list_register_values): Accept the
5934 --skip-unavailable option. Adjust to use output_register.
5935 (output_register): Add new 'skip_unavailable' parameter.
5936 Handle it.
5937
4d157a3d
MF
59382013-06-19 Mike Frysinger <vapier@gentoo.org>
5939
5940 * Makefile.in (HFILES_NO_SRCDIR): Add common/i386-cpuid.h and
5941 common/i386-gcc-cpuid.h.
5942 * common/i386-cpuid.h: New wrapper header around i386-gcc-cpuid.h.
5943 * common/i386-gcc-cpuid.h: Rename from testsuite/gdb.arch/i386-cpuid.h.
5944 Copy the latest version from upstream gcc.
5945 * common/linux-btrace.c: Include i386-cpuid.h.
5946 (intel_supports_btrace): Delete x86 ifdefs and replace inline asm with
5947 call to i386_cpuid.
5948 (cpu_supports_btrace): Likewise.
5949 * go32-nat.c: Include i386-cpuid.h.
5950 (go32_sysinfo): Add (disabled) calls to i386_cpuid with comments.
5951
1ce4db08
DE
59522013-06-19 Doug Evans <dje@google.com>
5953
5954 * symfile.c (symfile_bfd_open): Delete unnecessary declaration.
5955 (get_section_index): Ditto.
5956
0e4777df
TT
59572013-06-19 Tom Tromey <tromey@redhat.com>
5958
5959 * breakpoint.c (_initialize_breakpoint): Remove trailing \n from
5960 "dprintf" help.
5961
3190f0c6
DE
59622013-06-18 Doug Evans <dje@google.com>
5963
5964 * dwarf2read.c (dw2_symtab_iter_next): Check value of cu_index
5965 before using it.
5966 (dw2_expand_symtabs_matching): Fix symbol kind validity check.
5967 Move test of cu_index closer to use. Print complaint if cu_index
5968 is bad.
5969
8b89a20a
JB
59702013-06-18 Joel Brobecker <brobecker@adacore.com>
5971
5972 * machoread.c (oso_vector): Delete this global.
5973 (macho_register_oso): Add new parameter "oso_vector_ptr".
5974 Use it instead of the "oso_vector" global.
5975 (macho_symtab_read, macho_symfile_read_all_oso): Likewise.
5976 (macho_symfile_read): Use a local oso_vector, to be free'ed
5977 at the end of this function, in place of the old "oso_vector"
5978 global. Update various function calls accordingly. Use one
5979 single cleanup chain for the entire function.
5980
59b0c7c1
JB
59812013-06-18 Joel Brobecker <brobecker@adacore.com>
5982
937c708c 5983 * dwarf2read.c (dwarf2_per_objfile_free): Replace uses of
59b0c7c1
JB
5984 DWARF2_PER_OBJFILE by uses of DATA instead.
5985
427cd150
TT
59862013-06-18 Tom Tromey <tromey@redhat.com>
5987
5988 * break-catch-sig.c (signal_catchpoint_explains_signal): Add 'sig'
5989 argument.
5990 * breakpoint.c (bpstat_explains_signal): Add 'sig' argument.
5991 Special case signals other than GDB_SIGNAL_TRAP.
5992 (explains_signal_watchpoint): New function.
5993 (base_breakpoint_explains_signal): Add 'sig' argument.
5994 (initialize_breakpoint_ops): Set 'explains_signal' method for
5995 watchpoints.
5996 * breakpoint.h (struct breakpoint_ops) <explains_signal>: Add
5997 signal argument.
5998 (bpstat_explains_signal): Likewise.
5999 * infrun.c (handle_syscall_event, handle_inferior_event): Update.
6000
2d57700b
TT
60012013-06-18 Tom Tromey <tromey@redhat.com>
6002
6003 * python/py-inferior.c (gdbpy_selected_inferior): Don't incref.
6004
ac475191
TT
60052013-06-18 Tom Tromey <tromey@redhat.com>
6006
6007 * python/python.c (finish_python_initialization): Decref
6008 'pythondir' on failure path as well.
6009
5bd1ef56
TT
60102013-06-18 Tom Tromey <tromey@redhat.com>
6011
6012 PR symtab/15391:
6013 * dwarf2loc.c (read_pieced_value): Truncate this_size_bits
6014 after taking bits_to_skip into account. Sign extend byte_offset.
6015 * utils.h (gdb_sign_extend): Declare.
6016 * utils.c (gdb_sign_extend): New function.
6017
92fac807
JK
60182013-06-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6019
6020 * dwarf2read.c (write_psymtabs_to_index): Ignore NULL PSYMTAB.
6021
2d503272
PM
60222013-06-17 Pierre Muller <muller@sourceware.org>
6023
6024 * corelow.c (core_open): Print GDB signal name instead of target
6025 signal number.
6026
6916fd98
MF
60272013-06-17 Mike Frysinger <vapier@gentoo.org>
6028
6029 * .gitignore: Add /gcore.
6030
9c02c129
DE
60312013-06-13 Doug Evans <dje@google.com>
6032
6033 * dwarf2read.c (try_open_dwop_file): Work around behaviour of
6034 OPF_TRY_CWD_FIRST to not search path if the file contains a '/'.
6035
d0548fa2
PM
60362013-06-12 Phil Muldoon <pmuldoon@redhat.com>
6037
6038 * stack.c (backtrace_command_1): Fix indentation.
6039
22128028
JB
60402013-06-11 Joel Brobecker <brobecker@adacore.com>
6041
6042 * window-nat.c (thread_rec): Add missing empty line after
6043 local variable declaration.
6044
2ed3e009
JB
60452013-06-11 Joel Brobecker <brobecker@adacore.com>
6046
6047 * windows-nat.c (thread_rec): Revert format used to print
6048 error code returned by SuspendThread from %d back to %u.
6049
0c3d84be
JB
60502013-06-11 Joel Brobecker <brobecker@adacore.com>
6051
6052 * windows-nat.c (windows_continue): Add "0x" prefix for thread
6053 ID in debug trace.
6054 (get_windows_debug_event): Likewise, for all debug traces.
6055
80e88e1a
JB
60562013-06-11 Joel Brobecker <brobecker@adacore.com>
6057
6058 * window-nat.c (thread_rec): Add thread ID in SuspendThread
6059 warning message.
6060
1edebdbf
YQ
60612013-06-08 Pedro Alves <pedro@codesourcery.com>
6062 Yao Qi <yao@codesourcery.com>
6063
6064 * mi/mi-main.c (get_register): Remove declaration.
6065 (output_register): Declare.
6066 (mi_cmd_data_list_register_values): Remove local variable
6067 'tuple_cleanup'. Move some code into output_register.
6068 (get_register): Renamed to ...
6069 (output_register): ... this. Output the register's
6070 "number" ui_out tuple here.
6071
47d48711
PA
60722013-06-07 Pedro Alves <palves@redhat.com>
6073
6074 * darwin-nat.c: Fix formating in copyright header.
6075 * darwin-nat.h: Likewise.
6076 * gnu-nat.c: Likewise.
6077 * machoread.c: Likewise.
6078
3aee8918
PA
60792013-06-07 Pedro Alves <palves@redhat.com>
6080
5f2b57b5 6081 PR server/14823
3aee8918
PA
6082 * regformats/regdat.sh: Output #include tdesc.h. Make globals
6083 static. Output a global target description pointer.
6084 (init_registers_${name}): Adjust to initialize a
6085 target description structure.
6086
fe8400b4
WN
60872013-06-07 Will Newton <will.newton@linaro.org>
6088
6089 * printcmd.c (build_address_symbolic): Call
6090 gdbarch_addr_bits_remove for text minimal symbols.
6091
20df6206
WN
60922013-06-07 Will Newton <will.newton@linaro.org>
6093
6094 * MAINTAINERS: Add myself to Write After Approval.
6095
aef525cb
YQ
60962013-06-07 Yao Qi <yao@codesourcery.com>
6097
6098 * tracepoint.c (start_tracing): Move code to ...
6099 (trace_reset_local_state): ... here. New.
6100 (disconnect_tracing): Don't call set_current_traceframe,
6101 set_tracepoint_num, and set_traceframe_context. Call
6102 trace_reset_local_state instead.
6103 (tfile_close): Call trace_reset_local_state.
6104 * ctf.c (ctf_close): Likewise.
6105 * remote.c (remote_close): Likewise.
6106 * tracepoint.h (trace_reset_local_state): Declare.
6107
d2415c6c
DE
61082013-06-06 Doug Evans <dje@google.com>
6109
6110 * dwarf2read.c: Whitespace fixes for DWP file format documentation,
6111 and fix header docs.
6112
69fc87c2
DE
61132013-06-05 Doug Evans <dje@google.com>
6114 Keith Seitz <keiths@redhat.com>
6115
6116 PR 15519
6117 * cp-namespace.c (find_symbol_in_baseclass): Call
6118 cp_lookup_symbol_in_namespace instead of cp_lookup_symbol_namespace.
6119 Check result of call to lookup_symbol_static.
6120 Call lookup_static_symbol_aux unconditionally.
6121 Call check_typedef on base types before accessing them.
6122 (cp_lookup_nested_symbol): Fix comment.
6123
a513d1e8
LM
61242013-06-05 Luis Machado <lgustavo@codesourcery.com>
6125
6126 * gnu-v3-abi.c (gnuv3_skip_trampoline): Handle thunk
6127 minimal symbols pointing to function descriptors.
6128
351a6f02
TT
61292013-06-05 Tom Tromey <tromey@redhat.com>
6130
6131 * python/py-utils.c (gdb_pymodule_addobject): Cast away const.
6132
5e1b953b 61332013-06-04 Sergio Durigan Junior <sergiodj@redhat.com>
c7c0b644 6134 Pedro Alves <palves@redhat.com>
5e1b953b
SDJ
6135
6136 * remote.c (remote_wait_as): Restore signal handler before returning
6137 when GDB gets a notification.
6138
f9e14852
GB
61392013-06-04 Gary Benson <gbenson@redhat.com>
6140
8445cbf1 6141 PR 2328
f9e14852
GB
6142 * breakpoint.h (handle_solib_event): Moved function declaration
6143 to solib.h.
6144 * breakpoint.c (handle_solib_event): Moved function to solib.c.
6145 (bpstat_stop_status): Pass new argument to handle_solib_event.
6146 * solib.h (update_solib_breakpoints): New function declaration.
6147 (handle_solib_event): Moved function declaration from
6148 breakpoint.h.
6149 * solib.c (update_solib_breakpoints): New function.
6150 (handle_solib_event): Moved function from breakpoint.c.
6151 Updated to call solib_ops->handle_event if not NULL.
6152 * solist.h (target_so_ops): New fields "update_breakpoints" and
6153 "handle_event".
6154 * infrun.c (set_stop_on_solib_events): New function.
6155 (_initialize_infrun): Use the above for "set
6156 stop-on-solib-events".
6157 (handle_inferior_event): Pass new argument to handle_solib_event.
6158 * solib-svr4.c (probe.h): New include.
6159 (svr4_free_library_list): New forward declaration.
6160 (probe_action): New enum.
6161 (probe_info): New struct.
6162 (probe_info): New static variable.
6163 (NUM_PROBES): New definition.
6164 (svr4_info): New fields "using_xfer", "probes_table" and
6165 "solib_list".
6166 (free_probes_table): New function.
6167 (free_solib_list): New function.
6168 (svr4_pspace_data_cleanup): Free probes table and solib list.
6169 (svr4_copy_library_list): New function.
6170 (svr4_current_sos_via_xfer_libraries): New parameter "annex".
6171 (svr4_read_so_list): New parameter "prev_lm".
6172 (svr4_current_sos_direct): Renamed from "svr4_current_sos".
6173 (svr4_current_sos): New function.
6174 (probe_and_action): New struct.
6175 (hash_probe_and_action): New function.
6176 (equal_probe_and_action): Likewise.
6177 (register_solib_event_probe): Likewise.
6178 (solib_event_probe_at): Likewise.
6179 (solib_event_probe_action): Likewise.
6180 (solist_update_full): Likewise.
6181 (solist_update_incremental): Likewise.
6182 (disable_probes_interface_cleanup): Likewise.
6183 (svr4_handle_solib_event): Likewise.
6184 (svr4_update_solib_event_breakpoint): Likewise.
6185 (svr4_update_solib_event_breakpoints): Likewise.
6186 (svr4_create_solib_event_breakpoints): Likewise.
6187 (enable_break): Free probes table before creating breakpoints.
6188 Use svr4_create_solib_event_breakpoints to create breakpoints.
6189 (svr4_solib_create_inferior_hook): Free the solib list.
6190 (_initialize_svr4_solib): Initialise
6191 svr4_so_ops.handle_solib_event and svr4_so_ops.update_breakpoints.
6192
ced63ec0
GB
61932013-06-04 Gary Benson <gbenson@redhat.com>
6194
6195 * target.h (target_ops): New field
6196 "to_augmented_libraries_svr4_read".
6197 (target_augmented_libraries_svr4_read): New macro.
6198 * target.c (update_current_target): Handle
6199 to_augmented_libraries_svr4_read.
6200 * remote.c (remote_state): New field
6201 "augmented_libraries_svr4_read".
6202 (remote_augmented_libraries_svr4_read_feature): New function.
6203 (remote_protocol_features): Add entry for
6204 "augmented-libraries-svr4-read".
6205 (remote_augmented_libraries_svr4_read): New function.
6206 (init_remote_ops): Initialize
6207 remote_ops.to_augmented_libraries_svr4_read.
6208
7f91dbec
GB
62092013-06-04 Gary Benson <gbenson@redhat.com>
6210
6211 * NEWS: Update.
6212
607ece04
GB
62132013-06-04 Gary Benson <gbenson@redhat.com>
6214
6215 * objfiles.h (inhibit_section_map_updates): New function
6216 declaration.
6217 (resume_section_map_updates): Likewise.
6218 (resume_section_map_updates_cleanup): Likewise.
6219 * objfiles.c (objfile_pspace_info): Removed field
6220 "objfiles_changed_p". New fields "new_objfiles_available",
6221 "section_map_dirty" and "inhibit_updates".
6222 (allocate_objfile): Set new_objfiles_available.
6223 (free_objfile): Set section_map_dirty.
6224 (objfile_relocate1): Likewise.
6225 (in_plt_section): Likewise.
6226 (find_pc_section): Update the conditions under which the
6227 section map will be updated.
6228 (inhibit_section_map_updates): New function.
6229 (resume_section_map_updates): Likewise.
6230 (resume_section_map_updates_cleanup): Likewise.
6231
9ee6a5ac
GB
62322013-06-04 Gary Benson <gbenson@redhat.com>
6233
6234 * probe.h (get_probe_argument_count): New declaration.
6235 (evaluate_probe_argument): Likewise.
6236 * probe.c (get_probe_argument_count): New function.
6237 (evaluate_probe_argument): Likewise.
6238 (probe_safe_evaluate_at_pc): Use the above new functions.
6239
845d4708
AM
62402013-06-04 Alan Modra <amodra@gmail.com>
6241
6242 * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
6243 * rs6000-tdep.c (read_insn): Add frame param, don't assume big-endian.
6244 (ppc_insns_match_pattern): Add frame param. Avoid multiple
6245 target mem reads on optional insns.
6246 * ppc-linux-tdep.c (ppc_skip_trampoline_code): Update
6247 ppc_insns_match_pattern calls.
6248 * ppc64-tdep.c (ppc64_standard_linkage2, ppc64_standard_linkage3):
6249 Add match for power7 thread safety insns, and new order of
6250 std 2,40(1) insn. Correct code shown for _dl_runtime_resolve
6251 invocation in comment, and update rest of comment.
6252 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN,
6253 PPC64_STANDARD_LINKAGE3_LEN): Delete.
6254 (ppc64_standard_linkage2_target): Update insn offsets.
6255 (ppc64_skip_trampoline_code): Use a single insn buffer. Match newer
6256 stubs first. Update calls.
6257
404e278f
YQ
62582013-06-04 Yao Qi <yao@codesourcery.com>
6259
6260 * solib.c (solib_find): Don't need dir separator if path has
6261 drive spec.
6262
f6aea118
JB
62632013-06-03 Joel Brobecker <brobecker@adacore.com>
6264
6265 Revert (indirectly causes a SIGSEGV):
6266 * machoread.c (macho_symfile_read): Assign first cleanup to
6267 'back_to'.
6268
87967e27
YQ
62692013-06-03 Yao Qi <yao@codesourcery.com>
6270
6271 * mi/mi-cmd-var.c (mi_no_values, mi_simple_values): Move to
6272 mi-parse.c. Make them static.
6273 (mi_all_values): Likewise.
6274 (mi_parse_values_option): Move to mi-parse.c. Rename it to
6275 mi_parse_print_values. Make it external.
6276 * mi/mi-cmds.h (mi_no_values, mi_simple_values, mi_all_values):
6277 Remove the declarations.
6278 * mi/mi-parse.c (mi_parse_print_values): Moved from mi-cmd-var.c.
6279 * mi/mi-parse.h (mi_parse_print_values): Declare.
6280 * mi/mi-cmd-stack.c: Include mi-parse.h.
6281 (parse_print_values): Remove
6282 (mi_cmd_stack_list_locals): Call mi_parse_print_values instead
6283 of parse_print_values.
6284 (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Likewise.
6285
3ca73e0c
YQ
62862013-05-31 Pedro Alves <pedro@codesourcery.com>
6287 Yao Qi <yao@codesourcery.com>
6288
6289 * tracepoint.c (all_tracepoint_actions_and_cleanup): Declare.
6290 (encode_actions): Move code to ...
6291 (all_tracepoint_actions_and_cleanup): ... here. New.
6292 (trace_dump_command): Likewise.
6293
4e993a19
TT
62942013-05-30 Tom Tromey <tromey@redhat.com>
6295
6296 * symmisc.c (maintenance_expand_symtabs): Call do_cleanups.
6297
e3b76b4f
TT
62982013-05-30 Tom Tromey <tromey@redhat.com>
6299
6300 * xml-support.c (gdb_xml_create_parser_and_cleanup): Rename from
6301 gdb_xml_create_parser_and_cleanup_1. Return a cleanup. Remove
6302 'old_chain' argument. Add 'parser_result' argument.
6303 (gdb_xml_create_parser_and_cleanup): Remove old version.
6304 (gdb_xml_parse_quick): Update.
6305 (xml_process_xincludes): Update.
6306 * xml-support.h (gdb_xml_create_parser_and_cleanup): Don't
6307 declare.
6308
db26349c
TT
63092013-05-30 Tom Tromey <tromey@redhat.com>
6310
6311 * probe.c (collect_probes): Check arguments for NULL before
6312 calling compile_rx_or_error.
6313 * utils.c (compile_rx_or_error): Require 'rx' to be non-NULL.
6314 Remove NULL return.
6315
77f9e713
TT
63162013-05-30 Tom Tromey <tromey@redhat.com>
6317
6318 * infrun.c (adjust_pc_after_break): Introduce an outer null
6319 cleanup.
6320
45475de7
TT
63212013-05-30 Tom Tromey <tromey@redhat.com>
6322
6323 * mi/mi-cmd-var.c (varobj_update_one): Add an outer null cleanup.
6324
ac5007fd
TT
63252013-05-30 Tom Tromey <tromey@redhat.com>
6326
6327 * cli/cli-script.c (read_command_lines_1): Use a null cleanup
6328 for 'old_chain'. Do not check 'head' before processing
6329 cleanups.
6330
cd82eddc
TT
63312013-05-30 Tom Tromey <tromey@redhat.com>
6332
6333 * mi/mi-cmd-stack.c (list_arg_or_local): Remove
6334 "cleanup_tuple".
6335
57cee33a
TT
63362013-05-30 Tom Tromey <tromey@redhat.com>
6337
6338 * dbxread.c (dbx_read_symtab): Declare 'back_to' in a more
6339 inner scope. Unconditionally call do_cleanups.
6340
795d915c
TT
63412013-05-30 Tom Tromey <tromey@redhat.com>
6342
6343 * source.c (find_and_open_source): Call do_cleanups.
6344
1fc3cf4a
TT
63452013-05-30 Tom Tromey <tromey@redhat.com>
6346
6347 * linux-thread-db.c (thread_db_load_search): Unconditionally
6348 call do_cleanups.
6349
e35ac9bf
TT
63502013-05-30 Tom Tromey <tromey@redhat.com>
6351
6352 * solib-aix.c (solib_aix_bfd_open): Don't use a null cleanup
6353 for 'cleanup'; instead use a later one.
6354
f3300387
TT
63552013-05-30 Tom Tromey <tromey@redhat.com>
6356
6357 * python/py-breakpoint.c (bppy_get_commands): Use
6358 explicit, unconditional return.
6359 * python/py-frame.c (frapy_read_var): Likewise.
6360 * python/python.c (gdbpy_decode_line): Likewise.
6361
c27e16e3
TT
63622013-05-30 Tom Tromey <tromey@redhat.com>
6363
6364 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Call
6365 do_cleanups on all return paths.
6366
5ae85e44
TT
63672013-05-30 Tom Tromey <tromey@redhat.com>
6368
6369 * top.c (execute_command): Discard 'cleanup_if_error' cleanups.
6370
73b8d9da
TT
63712013-05-30 Tom Tromey <tromey@redhat.com>
6372
6373 * stabsread.c (read_struct_type): Call do_cleanups along
6374 all return paths.
6375
7d266584
MR
63762013-05-30 Maciej W. Rozycki <macro@codesourcery.com>
6377
6378 * mips-linux-tdep.c: Adjust formatting throughout.
6379
0f900f54
TT
63802013-05-30 Tom Tromey <tromey@redhat.com>
6381
6382 * mipsread.c (read_alphacoff_dynamic_symtab): Call do_cleanups
6383 along all return paths.
6384
a991ac28
TT
63852013-05-30 Tom Tromey <tromey@redhat.com>
6386
6387 * symfile.c (find_separate_debug_file): Call do_cleanups
6388 along all return paths.
6389
1abaf042
TT
63902013-05-30 Tom Tromey <tromey@redhat.com>
6391
6392 * symtab.c (search_symbols): Introduce a null cleanup for
6393 'retval_chain'.
6394
edefe1da
TT
63952013-05-30 Tom Tromey <tromey@redhat.com>
6396
6397 * python/py-value.c (valpy_binop): Call do_cleanups before
6398 exiting loop.
6399
54f72dcc
TT
64002013-05-30 Tom Tromey <tromey@redhat.com>
6401
6402 * python/py-prettyprint.c (print_children): Remove extra
6403 do_cleanups call.
6404
af1c6971
TT
64052013-05-30 Tom Tromey <tromey@redhat.com>
6406
6407 * python/py-frame.c (frapy_read_var): Call do_cleanups along
6408 all return paths.
6409
b862ce75
TT
64102013-05-30 Tom Tromey <tromey@redhat.com>
6411
6412 * python/py-breakpoint.c (bppy_get_commands): Call do_cleanups
6413 along all return paths.
6414
e12fefc8
TT
64152013-05-30 Tom Tromey <tromey@redhat.com>
6416
6417 * cli/cli-logging.c (set_logging_redirect): Unconditionally
6418 call do_cleanups.
6419
4867f990
TT
64202013-05-30 Tom Tromey <tromey@redhat.com>
6421
6422 * varobj.c (c_value_of_root): Call do_cleanups along all
6423 return paths.
6424
4fd2d6af
TT
64252013-05-30 Tom Tromey <tromey@redhat.com>
6426
6427 * tracepoint.c (trace_dump_command): Unconditionally call
6428 do_cleanups.
6429
752eb8b4
TT
64302013-05-30 Tom Tromey <tromey@redhat.com>
6431
6432 * breakpoint.c (output_thread_groups, parse_cmd_to_aexpr): Call
6433 do_cleanups earlier.
6434
e42d0aa5
TT
64352013-05-30 Tom Tromey <tromey@redhat.com>
6436
6437 * machoread.c (macho_symfile_read): Assign first cleanup to
6438 'back_to'.
6439
4bbc010a
TT
64402013-05-30 Tom Tromey <tromey@redhat.com>
6441
6442 * m32r-rom.c (m32r_load): Call do_cleanups at all returns.
6443
b9635925
TT
64442013-05-30 Tom Tromey <tromey@redhat.com>
6445
6446 * mi/mi-main.c (list_available_thread_groups): Call do_cleanups.
6447
25f43500
TT
64482013-05-30 Tom Tromey <tromey@redhat.com>
6449
6450 * inf-ptrace.c (inf_ptrace_create_inferior): Unconditionally
6451 call discard_cleanups.
6452 (inf_ptrace_attach): Likewise.
6453
d6a2e54a
TT
64542013-05-30 Tom Tromey <tromey@redhat.com>
6455
6456 * remote-mips.c (mips_exit_debug): Call do_cleanups on all
6457 return paths.
6458 (mips_initialize): Likewise.
6459 (common_open): Call do_cleanups.
6460
48be7c1b
TT
64612013-05-30 Tom Tromey <tromey@redhat.com>
6462
6463 * utils.c (internal_vproblem): Call do_cleanups.
6464
e61727ab
TT
64652013-05-30 Tom Tromey <tromey@redhat.com>
6466
6467 * linespec.c (find_linespec_symbols): Don't reassign to 'cleanup'.
6468
b81b921f
TT
64692013-05-30 Tom Tromey <tromey@redhat.com>
6470
6471 * cli/cli-script.c (setup_user_args): Don't return after error.
6472
fe48dfb1
TT
64732013-05-30 Tom Tromey <tromey@redhat.com>
6474
6475 * somread.c (som_symtab_read): Call do_cleanups.
6476
27833de7
TT
64772013-05-30 Tom Tromey <tromey@redhat.com>
6478
6479 * printcmd.c (print_command_1): Unconditionally call do_cleanups.
6480
5b3fca71
TT
64812013-05-30 Tom Tromey <tromey@redhat.com>
6482
6483 * cli/cli-cmds.c (cd_command, alias_command): Call do_cleanups.
6484 * cli/cli-dump.c (restore_binary_file): Call do_cleanups.
6485 * interps.c (interpreter_exec_cmd): Call do_cleanups.
6486 * source.c (show_substitute_path_command): Call do_cleanups.
6487 (unset_substitute_path_command, set_substitute_path_command):
6488 Likewise.
6489 * symfile.c (load_command): Call do_cleanups.
6490
af83e3f8
TT
64912013-05-30 Tom Tromey <tromey@redhat.com>
6492
6493 * contrib/cleanup_check.py: New file.
6494 * contrib/gcc-with-excheck: Add option parsing.
6495
564eac42
JB
64962013-05-30 Joel Brobecker <brobecker@adacore.com>
6497
6498 * windows-nat.c (windows_delete_thread): Add missing space
6499 in cast expression.
6500
47902076
HAQ
65012013-05-30 Hafiz Abid Qadeer <abidh@codesourcery.com>
6502
6503 * inferior.c (top level): Include tilde.h.
6504 (add_inferior_command): Call tilde_expand on the value of 'exec'
6505 argument.
6506
23da373a
YQ
65072013-05-30 Pedro Alves <pedro@codesourcery.com>
6508 Yao Qi <yao@codesourcery.com>
6509
6510 * tracepoint.c (encode_actions_1): Remove parameter 't'.
6511 Caller update.
6512 (encode_actions): Likewise.
6513 * remote.c (remote_download_tracepoint): Caller update.
6514 * tracepoint.h (encode_actions): Update declaration.
6515
a6e6f791
PA
65162013-05-30 Pedro Alves <palves@redhat.com>
6517
6518 * python/python-internal.h (gdb_Py_DECREF): Cast OP to PyObject
6519 pointer.
6520
36d25514
YQ
65212013-05-30 Yao Qi <yao@codesourcery.com>
6522
6523 * remote.c (remote_check_symbols): Remove unused parameter
6524 'objfile'.
6525 Declaration update.
6526 (remote_start_remote, remote_new_objfile): Caller update.
6527
62a813cc
YQ
65282013-05-30 Yao Qi <yao@codesourcery.com>
6529
6530 * mi/mi-cmds.c (mi_cmds): Define MI command
6531 '-exec-arguments' by macro DEF_MI_CMD_CLI_1 instead of
6532 DEF_MI_CMD_CLI.
6533
28439a30
PA
65342013-05-29 Pedro Alves <palves@redhat.com>
6535
6536 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint)
6537 (remote_insert_watchpoint, remote_remove_watchpoint)
6538 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint)
6539 (remote_verify_memory, compare_sections_command)
6540 (remote_search_memory): Set the general process/thread on the
6541 remote side.
6542
6ac1c082
PA
65432013-05-29 Pedro Alves <palves@redhat.com>
6544
6545 * aarch64-tdep.c: Don't include "features/aarch64-without-fpu.c".
6546 (_initialize_aarch64_tdep): Don't call
6547 initialize_tdesc_aarch64_without_fpu.
6548 * features/Makefile (WHICH): Remove reference to
6549 aarch64-without-fpu.
6550 * features/aarch64-without-fpu.c: Delete file.
6551 * regformats/aarch64-without-fpu.dat: Delete file.
6552
a73e3634
YQ
65532013-05-28 Yao Qi <yao@codesourcery.com>
6554
6555 * tracepoint.c (stringify_collection_list): Remove parameter
6556 'string'.
6557 (encode_actions): Caller update. Remove local variables.
6558
c0ea94eb
YQ
65592013-05-24 Yao Qi <yao@codesourcery.com>
6560
6561 * tracepoint.c (TFILE_PID): Remove.
6562 (tfile_open): Don't add thread and inferior.
6563 (tfile_close): Don't set 'inferior_ptid'. Don't call
6564 exit_inferior_silent.
6565 (tfile_thread_alive): Remove.
6566 (init_tfile_ops): Don't set field 'to_thread_alive' of
6567 tfile_ops.
6568
20d7f211
DE
65692013-05-23 Doug Evans <dje@google.com>
6570
6571 * contrib/cc-with-tweaks.sh (-p): Handle no dwo files.
6572
8658d16d
PA
65732013-05-23 Pedro Alves <palves@redhat.com>
6574
6575 * common/filestuff.c [USE_WIN32API]: Define HAVE_SOCKETS.
6576 [HAVE_SYS_SOCKET_H]: Define HAVE_SOCKETS.
6577 (socket_mark_cloexec, gdb_socketpair_cloexec, gdb_socket_cloexec):
6578 Only define if HAVE_SOCKETS is defined.
6579 * configure.ac: Check for sys/socket.h.
6580 * config.in, configure: Regenerate.
6581
21aa081e
PA
65822013-05-23 Pedro Alves <palves@redhat.com>
6583
6584 * dwarf2read.c (create_dwp_hash_table, create_dwo_in_dwp)
6585 (open_and_init_dwp_file): Use %s/pulongest instead of %u for
6586 printing uint32_t variables.
6587
c2d6af84
PA
65882013-05-23 Pedro Alves <palves@redhat.com>
6589
6590 * NEWS: Mention GDBserver range stepping support.
6591
c1e36e3e
PA
65922013-05-23 Yao Qi <yao@codesourcery.com>
6593 Pedro Alves <palves@redhat.com>
6594
6595 * gdbthread.h (struct thread_control_state) <may_range_step>: New
6596 field.
6597 * infcmd.c (step_once, until_next_command): Enable range stepping.
6598 * infrun.c (displaced_step_prepare): Disable range stepping.
6599 (resume): Disable range stepping if stepping over a breakpoint or
6600 we have software watchpoints. If range stepping is enabled,
6601 assert the thread is in the stepping range.
6602 (clear_proceed_status_thread): Clear may_range_step.
6603 (handle_inferior_event): Disable range stepping as soon as we know
6604 the thread that hit the event. Re-enable it whenever we're going
6605 to step with a step range.
6606 * remote.c (struct vCont_action_support) <r>: New field.
6607 (use_range_stepping): New global.
6608 (remote_vcont_probe): Handle 'r' action.
6609 (append_resumption): Append an 'r' action if the thread may range
6610 step.
6611 (show_range_stepping): New function.
6612 (set_range_stepping): New function.
6613 (_initialize_remote): Call add_setshow_boolean_cmd to register the
6614 'set range-stepping' and 'show range-stepping' commands.
6615 * NEWS: Mention range stepping, the new vCont;r action, and the
6616 new "set/show range-stepping" commands.
6617
d458bd84
PA
66182013-05-23 Yao Qi <yao@codesourcery.com>
6619 Pedro Alves <palves@redhat.com>
6620
6621 * remote.c (struct vCont_action_support): New struct.
6622 (struct remote_state) <support_vCont_t>: Remove field.
6623 <vCont_actions_support>: New field.
6624 (remote_vcont_probe, remote_stop_ns): Update.
6625
ce4c476a
PA
66262013-05-23 Yao Qi <yao@codesourcery.com>
6627 Pedro Alves <palves@redhat.com>
6628
6629 * gdbthread.h (pc_in_thread_step_range): New declaration.
6630 * thread.c (pc_in_thread_step_range): New function.
6631 * infrun.c (handle_inferior_event): Use it.
6632
ce70887a
JB
66332013-05-23 Joel Brobecker <brobecker@adacore.com>
6634
6635 * mi/mi-cmd-break.c (mi_argv_to_format): Use xsnprintf instead
6636 of sprintf.
6637
55b87a52
KS
66382013-05-22 Keith Seitz <keiths@redhat.com>
6639
6640 * ada-lang.c (is_known_support_routine): Add explicit free of
6641 'func_name' from find_frame_funname.
6642 (ada_unhandled_exception_name_addr_from_raise): Add cleanups
6643 for func_name from find_frame_funname.
6644 * python/py-frame.c (frapy_name): Add explicit free of
6645 'name' from find_frame_funname.
6646 * stack.c (find_frame_funname): Add comment explaining that
6647 funcp must be freed by the caller.
6648 Return copy of symbol names instead of pointers.
6649 (print_frame): Add a cleanup for 'funname' from
6650 find_frame_funname.
6651 * stack.h (find_frame_funname): Remove "const" from
6652 'funname' parameter.
6653
5f2e6b00
TT
66542013-05-22 Tom Tromey <tromey@redhat.com>
6655
6656 PR c++/15401:
6657 * c-valprint.c (c_value_print): Use value_addr for
6658 references. Convert back to reference type with value_ref.
6659
d85c4847
EZ
66602013-05-22 Eli Zaretskii <eliz@gnu.org>
6661
6662 * windows-nat.c (handle_unload_dll): Don't call solib_add for the
6663 unloaded DLL, it will be done by handle_solib_event. See
6664 http://sourceware.org/ml/gdb-patches/2013-05/msg00713.html for the
6665 details.
6666
54eb231c
PM
66672013-05-22 Phil Muldoon <pmuldoon@redhat.com>
6668
6669 * ui-out.c: Create typedef ui_out_level_p and define vector
6670 operations for that type.
6671 (struct ui_out): Use a vector instead of an array.
6672 (current_level): Return level from a vector.
6673 (push_level): Create a level in a vector.
6674 (pop_level): Delete a level in a vector.
6675 (ui_out_new): Create initial level zero level, and store in a
6676 vector.
6677 (ui_out_destroy): Add vector cleanup.
6678
ac90359c
PA
66792013-05-22 Pedro Alves <palves@redhat.com>
6680
6681 * python/python-internal.h (gdb_Py_DECREF): Tag with
6682 "ARI: editCase function".
6683
6dcc1893
PP
66842013-05-21 Paul Pluzhnikov <ppluzhnikov@google.com>
6685
6686 * solib-svr4.c (svr4_free_so): Protect against NULL dereference.
6687
c8c735b9
PA
66882013-05-21 Pedro Alves <palves@redhat.com>
6689
6690 * python/py-prettyprint.c (apply_val_pretty_printer): Check
6691 whether PRINTER is NULL before installing a Py_DECREF cleanup.
6692 * python/py-utils.c (py_decref): Don't check for NULL before
6693 calling Py_DECREF.
6694
1915daeb
PA
66952013-05-21 Pedro Alves <palves@redhat.com>
6696
6697 * python/py-utils.c (py_decref): Remove extra braces.
6698 (gdb_pymodule_addobject): Remove extra braces.
6699 * python-internal.h (gdb_Py_DECREF): New static inline function.
6700 (Py_DECREF): Redefine as calling gdb_Py_DECREF.
6701
bd9673a4
PW
67022013-05-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6703
6704 * breakpoints.c (detach_breakpoints): Do not
6705 detach breakpoints locations with loc_type bp_loc_other.
6706
ff6009d0
JK
67072013-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6708
6709 Workaround Python 2.6.
6710 * python/py-utils.c (gdb_pymodule_addobject): Wrap Py_DECREF into
6711 a block.
6712
3641da11
JK
67132013-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6714
6715 Code cleanup: constification.
6716 * solib.c (solib_ops): Make return type and ops variable type const.
6717 (set_solib_ops): Make the new_ops parameter and ops variable const.
6718 (solib_find, solib_map_sections, clear_so, free_so, update_solib_list)
6719 (solib_add, solib_keep_data_in_core, clear_solib)
6720 (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
6721 (reload_shared_libraries, solib_global_lookup): Make the ops variable
6722 const.
6723 * solib.h (set_solib_ops): Make the new_ops parameter const.
6724
776af39e
JB
67252013-05-21 Joel Brobecker <brobecker@adacore.com>
6726
6727 * data-directory/Makefile.in (SYSTEM_GDBINIT_SRCDIR): New
6728 variable.
6729 (VPATH): Add SYSTEM_GDBINIT_SRCDIR.
6730 (SYSTEM_GDBINIT_DIR, SYSTEM_GDBINIT_INSTALL_DIR)
6731 (SYSTEM_GDBINIT_FILES): New variables.
6732 (all): Add stamp-system-gdbinit.
6733 (stamp-system-gdbinit): New rule.
6734 (clean-system-gdbinit, install-system-gdbinit)
6735 (uninstall-system-gdbinit): New rules. Make them .PHONY.
6736 (install-only): Add dependency on install-system-gdbinit.
6737 (uninstall): Add dependency on uninstall-system-gdbinit.
6738 (clean): Add dependency on clean-system-gdbinit.
6739 * system-gdbinit/elinos.py: New file.
6740 * system-gdbinit/wrs-linux.py: New file.
6741
1509e573
JB
67422013-05-21 Joel Brobecker <brobecker@adacore.com>
6743
6744 * ada-lang.c (old_renaming_is_invisible): Fix cleanup leak.
6745
c5867ab6
HZ
67462013-05-21 Hui Zhu <hui@codesourcery.com>
6747
6748 * breakpoint.c (dprintf_breakpoint_ops): Remove its static.
6749 * breakpoint.h (dprintf_breakpoint_ops): Add extern.
6750 * mi/mi-cmd-break.c (ctype.h): New include.
6751 (gdb_obstack.h): New include.
6752 (mi_argv_to_format, mi_cmd_break_insert_1): New.
6753 (mi_cmd_break_insert): Call mi_cmd_break_insert_1.
6754 (mi_cmd_dprintf_insert): New.
6755 * mi/mi-cmds.c (mi_cmds): Add "dprintf-insert".
6756 * mi/mi-cmds.h (mi_cmd_dprintf_insert): New extern.
6757
7d38e38f
TT
67582013-05-20 Tom Tromey <tromey@redhat.com>
6759
6760 * python/py-prettyprint.c (search_pp_list): Decref 'attr'.
6761
97b77b39
TT
67622013-05-20 Tom Tromey <tromey@redhat.com>
6763
6764 * python/py-value.c (valpy_get_dynamic_type): Simplify
6765 dynamic_type assignment. Use Py_XINCREF.
6766
53e66479
TT
67672013-05-20 Tom Tromey <tromey@redhat.com>
6768
6769 * python/py-type.c (typy_fields): Unconditionally decref 'r'.
6770
dcf87832
TT
67712013-05-20 Tom Tromey <tromey@redhat.com>
6772
6773 * python/py-frame.c (frapy_older, frapy_newer, gdbpy_newest_frame)
6774 (gdbpy_selected_frame): Move object-construction code
6775 out of TRY_CATCH.
6776
aa36459a
TT
67772013-05-20 Tom Tromey <tromey@redhat.com>
6778
6779 * python/py-arch.c (gdbpy_initialize_arch): Use
6780 gdb_pymodule_addobject.
6781 * python/py-block.c (gdbpy_initialize_blocks): Use
6782 gdb_pymodule_addobject.
6783 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Use
6784 gdb_pymodule_addobject.
6785 * python/py-cmd.c (gdbpy_initialize_breakpoints): Use
6786 gdb_pymodule_addobject.
6787 * python/py-event.c (gdbpy_initialize_event_generic): Use
6788 gdb_pymodule_addobject.
6789 * python/py-evtregistry.c (gdbpy_initialize_eventregistry): Use
6790 gdb_pymodule_addobject.
6791 * python/py-evts.c (add_new_registry): Use
6792 gdb_pymodule_addobject.
6793 (gdbpy_initialize_py_events): Likewise.
6794 * python/py-finishbreakpoint.c
6795 (gdbpy_initialize_finishbreakpoints): Use
6796 gdb_pymodule_addobject.
6797 * python/py-frame.c (gdbpy_initialize_frames): Use
6798 gdb_pymodule_addobject.
6799 * python/py-function.c (gdbpy_initialize_functions): Use
6800 gdb_pymodule_addobject.
6801 * python/py-inferior.c (gdbpy_initialize_inferior): Use
6802 gdb_pymodule_addobject.
6803 * python/py-infthread.c (gdbpy_initialize_thread): Use
6804 gdb_pymodule_addobject.
6805 * python/py-objfile.c (gdbpy_initialize_objfile): Use
6806 gdb_pymodule_addobject.
6807 * python/py-param.c (gdbpy_initialize_parameters): Use
6808 gdb_pymodule_addobject.
6809 * python/py-progspace.c (gdbpy_initialize_pspace): Use
6810 gdb_pymodule_addobject.
6811 * python/py-symbol.c (gdbpy_initialize_symbols): Use
6812 gdb_pymodule_addobject.
6813 * python/py-symtab.c (gdbpy_initialize_symtabs): Use
6814 gdb_pymodule_addobject.
6815 * python/py-type.c (gdbpy_initialize_types): Use
6816 gdb_pymodule_addobject.
6817 * python/py-utils.c (gdb_pymodule_addobject): New function.
6818 * python/py-value.c (gdbpy_initialize_values): Use
6819 gdb_pymodule_addobject.
6820 * python/python-internal.h (gdb_pymodule_addobject): Declare.
6821 * python/python.c (_initialize_python): Use
6822 gdb_pymodule_addobject.
6823
3d4a3c3e
TT
68242013-05-20 Tom Tromey <tromey@redhat.com>
6825
6826 * python/py-cmd.c (cmdpy_completer): Use explicit decref.
6827 * python/py-param.c (get_set_value, get_show_value): Use
6828 explicit decrefs.
6829 * python/python.c (start_type_printers, apply_type_printers):
6830 Use explicit decrefs.
6831
72ff8829
TT
68322013-05-20 Tom Tromey <tromey@redhat.com>
6833
6834 * python/py-evts.c (gdbpy_initialize_py_events): Don't
6835 incref the module.
6836
02146ba5
TT
68372013-05-20 Tom Tromey <tromey@redhat.com>
6838
6839 * python/python.c (gdbpy_run_events): Decref the result
6840 of PyObject_CallObject.
6841
33ee792f
TT
68422013-05-20 Tom Tromey <tromey@redhat.com>
6843
6844 * python/py-symtab.c (set_sal): Use
6845 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION. Return -1 on error.
6846 (symtab_and_line_to_sal_object): Update.
6847
fcb49fc8
TT
68482013-05-20 Tom Tromey <tromey@redhat.com>
6849
6850 * python/py-param.c (compute_enum_values): Decref 'item'.
6851
0646da15
TT
68522013-05-20 Tom Tromey <tromey@redhat.com>
6853
6854 * mi/mi-main.c: Include python-internal.h.
6855 (mi_cmd_list_features): Check gdb_python_initialized.
6856 * python/py-inferior.c (python_on_normal_stop, python_on_resume)
6857 (python_inferior_exit, python_new_objfile, add_thread_object)
6858 (delete_thread_object, py_free_inferior): Check
6859 gdb_python_initialized.
6860 * python/py-prettyprint.c (apply_val_pretty_printer): Check
6861 gdb_python_initialized.
6862 * python/py-type.c (save_objfile_types): Check
6863 gdb_python_initialized.
6864 * python/python-internal.h (gdb_python_initialized): Declare.
6865 * python/python.c (ensure_python_env): Throw exception if
6866 Python not initialized.
6867 (before_prompt_hook, source_python_script_for_objfile)
6868 (start_type_printers, apply_type_printers,
6869 free_type_printers): Check gdb_python_initialized.
6870 * varobj.c (varobj_get_display_hint)
6871 (dynamic_varobj_has_child_method, update_dynamic_varobj_children)
6872 (install_new_value_visualizer, varobj_set_visualizer)
6873 (value_get_print_value): Check gdb_python_initialized.
6874
999633ed
TT
68752013-05-20 Tom Tromey <tromey@redhat.com>
6876
6877 * python/py-arch.c (gdbpy_initialize_arch): Return 'int'.
6878 Check errors.
6879 * python/py-auto-load.c (gdbpy_initialize_auto_load): Return 'int'.
6880 * python/py-block.c (gdbpy_initialize_blocks): Return 'int'.
6881 Check errors.
6882 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Return 'int'.
6883 Check errors.
6884 * python/py-cmd.c (gdbpy_initialize_commands): Return 'int'.
6885 Check errors.
6886 * python/py-event.c (gdbpy_initialize_event): Return 'int'.
6887 Check errors.
6888 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Change generated
6889 init function to return 'int'.
6890 * python/py-evtregistry.c (gdbpy_initialize_eventregistry):
6891 Return 'int'. Check errors.
6892 * python/py-evts.c (gdbpy_initialize_py_events): Return 'int'.
6893 Check errors.
6894 * python/py-finishbreakpoint.c (gdbpy_initialize_finishbreakpoints):
6895 Return 'int'. Check errors.
6896 * python/py-frame.c (gdbpy_initialize_frames): Return 'int'.
6897 Check errors.
6898 * python/py-function.c (gdbpy_initialize_functions): Return 'int'.
6899 Check errors.
6900 * python/py-gdb-readline.c (gdbpy_initialize_gdb_readline):
6901 Check errors.
6902 * python/py-inferior.c (gdbpy_initialize_inferior): Return 'int'.
6903 Check errors.
6904 * python/py-infthread.c (gdbpy_initialize_thread): Return 'int'.
6905 Check errors.
6906 * python/py-lazy-string.c (gdbpy_initialize_lazy_string): Return 'int'.
6907 Check errors.
6908 * python/py-objfile.c (gdbpy_initialize_objfile): Return 'int'.
6909 Check errors.
6910 * python/py-param.c (gdbpy_initialize_parameters): Return 'int'.
6911 Check errors.
6912 * python/py-progspace.c (gdbpy_initialize_pspace): Return 'int'.
6913 Check errors.
6914 * python/py-symbol.c (gdbpy_initialize_symbols): Return 'int'.
6915 Check errors.
6916 * python/py-symtab.c (gdbpy_initialize_symtabs): Return 'int'.
6917 Check errors.
6918 * python/py-type.c (gdbpy_initialize_types): Return 'int'.
6919 Check errors.
6920 * python/py-value.c (gdbpy_initialize_values): Return 'int'.
6921 Check errors.
6922 * python/python-internal.h (gdbpy_initialize_auto_load,
6923 gdbpy_initialize_values, gdbpy_initialize_frames,
6924 gdbpy_initialize_symtabs, gdbpy_initialize_commands,
6925 gdbpy_initialize_symbols, gdbpy_initialize_symtabs,
6926 gdbpy_initialize_blocks, gdbpy_initialize_types,
6927 gdbpy_initialize_functions, gdbpy_initialize_pspace,
6928 gdbpy_initialize_objfile, gdbpy_initialize_breakpoints,
6929 gdbpy_initialize_finishbreakpoints,
6930 gdbpy_initialize_lazy_string, gdbpy_initialize_parameters,
6931 gdbpy_initialize_thread, gdbpy_initialize_inferior,
6932 gdbpy_initialize_eventregistry, gdbpy_initialize_event,
6933 gdbpy_initialize_py_events, gdbpy_initialize_stop_event,
6934 gdbpy_initialize_signal_event,
6935 gdbpy_initialize_breakpoint_event,
6936 gdbpy_initialize_continue_event,
6937 gdbpy_initialize_exited_event, gdbpy_initialize_thread_event,
6938 gdbpy_initialize_new_objfile_event, gdbpy_initialize_arch):
6939 Update. Use CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
6940 * python/python.c (gdb_python_initialized): New global.
6941 (gdbpy_initialize_events): Return 'int'. Check errors.
6942 (_initialize_python): Check errors. Set
6943 gdb_python_initialized.
6944
18868860
TT
69452013-05-20 Tom Tromey <tromey@redhat.com>
6946
6947 * python/py-finishbreakpoint.c (bpfinishpy_out_of_scope):
6948 Decref the reslut of PyObject_CallMethod.
6949
9f4ff0c2
TT
69502013-05-20 Tom Tromey <tromey@redhat.com>
6951
6952 * python/py-event.c (gdbpy_initialize_event_generic): Return
6953 early if PyType_Ready fails.
6954
0d3a2e8a
TT
69552013-05-20 Tom Tromey <tromey@redhat.com>
6956
6957 * python/py-type.c (make_fielditem): Add gdb_assert_not_reached
6958 as 'default' in the switch.
6959
b86af38a
TT
69602013-05-20 Tom Tromey <tromey@redhat.com>
6961
6962 * python/py-inferior.c (gdbpy_inferiors): Update. Hoist
6963 get_addr_from_python calls out of TRY_CATCH.
6964 (infpy_write_memory, infpy_search_memory): Likewise.
6965 * python/py-utils.c (get_addr_from_python): Return negative
6966 value on error. Use TRY_CATCH.
6967 * python/python-internal.h (get_addr_from_python): Use
6968 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
6969
c127ec58
TT
69702013-05-20 Tom Tromey <tromey@redhat.com>
6971
6972 * python/py-event.c (evpy_emit_event): Decref the
6973 result of PyObject_CallFunctionObjArgs.
6974
ba327838
TT
69752013-05-20 Tom Tromey <tromey@redhat.com>
6976
6977 * python/py-cmd.c (cmdpy_completer): Use iterator protocol.
6978 Correctly decref.
6979
d8191432
TT
69802013-05-20 Tom Tromey <tromey@redhat.com>
6981
6982 * python/py-cmd.c (cmdpy_init): Decref 'ds_obj'.
6983
5d153bd1
TT
69842013-05-20 Tom Tromey <tromey@redhat.com>
6985
6986 * python/py-event.h (gdbpy_initialize_event_generic): Use
6987 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
6988 * python/py-evts.c (add_new_registry): Use
6989 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
6990 * python/python-internal.h
6991 (CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION): New macro.
6992
56cc411c
TT
69932013-05-20 Tom Tromey <tromey@redhat.com>
6994
6995 * python/py-arch.c (archpy_disassemble): Update.
6996 * python/py-type.c (typy_get_composite, typy_lookup_typename)
6997 (typy_lookup_type): Use GDB_PY_HANDLE_EXCEPTION.
6998 * python/py-utils.c (gdbpy_convert_exception): Return 'void'.
6999 * python/python-internal.h (CPYCHECKER_SETS_EXCEPTION): New
7000 macro.
7001 (GDB_PY_HANDLE_EXCEPTION): Update.
7002 (gdbpy_convert_exception): Update. Use CPYCHECKER_SETS_EXCEPTION.
7003
8919e174
TT
70042013-05-20 Tom Tromey <tromey@redhat.com>
7005
7006 * python/python-internal.h (events_object_type): Remove.
7007
9b08f225
TT
70082013-05-20 Tom Tromey <tromey@redhat.com>
7009
f5aee5ee
AM
7010 * python/py-event.h (evpy_emit_event): Use
7011 CPYCHECKER_STEALS_REFERENCE_TO_ARG.
7012 * python/python-internal.h (CPYCHECKER_STEALS_REFERENCE_TO_ARG):
7013 New macro.
9b08f225 7014
f04010ff
TT
70152013-05-20 Tom Tromey <tromey@redhat.com>
7016
7017 * py-evtregistry.c (create_event_object): Decref
7018 eventregistry_object if PyList_New fails.
7019
3919fd96
TT
70202013-05-20 Tom Tromey <tromey@redhat.com>
7021
7022 * py-cmd.c (gdbpy_string_to_argv): Check result of
7023 PyList_New.
7024
0430e8cb
TT
70252013-05-20 Tom Tromey <tromey@redhat.com>
7026
7027 * python/python.c (before_prompt_hook): Add cleanup to
7028 decref 'hook'.
7029
764123e4
TT
70302013-05-20 Tom Tromey <tromey@redhat.com>
7031
7032 * python/py-function.c (fnpy_init): Decref result of
7033 PyObject_GetAttrString.
7034
634c58be
TT
70352013-05-20 Tom Tromey <tromey@redhat.com>
7036
7037 * python/py-threadevent.c (get_event_thread): Use
7038 CPYCHECKER_RETURNS_BORROWED_REF.
7039 * python/python-internal.h (CPYCHECKER_RETURNS_BORROWED_REF):
7040 New define.
7041 (pspace_to_pspace_object, objfile_to_objfile_object)
7042 (find_thread_object): Use it.
7043
62eec1a5
TT
70442013-05-20 Tom Tromey <tromey@redhat.com>
7045
7046 * python/py-arch.c (arch_object_type): Use
7047 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7048 * python/py-block.c (block_syms_iterator_object_type):
7049 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7050 * python/py-bpevent.c (breakpoint_event_object_type):
7051 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7052 * python/py-cmd.c (cmdpy_object_type): Use
7053 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7054 * python/py-continueevent.c (continue_event_object_type):
7055 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7056 * python/py-event.h (GDBPY_NEW_EVENT_TYPE):
7057 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7058 * python/py-events.h (thread_event_object_type):
7059 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7060 * python/py-evtregistry.c (eventregistry_object_type): Use
7061 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7062 * python/py-exitedevent.c (exited_event_object_type):
7063 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7064 * python/py-finishbreakpoint.c (finish_breakpoint_object_type):
7065 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7066 * python/py-function.c (fnpy_object_type): Use
7067 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7068 * python/py-inferior.c (inferior_object_type, membuf_object_type):
7069 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7070 * python/py-infthread.c (thread_object_type): Use
7071 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7072 * python/py-lazy-string.c (lazy_string_object_type):
7073 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7074 * python/py-newobjfileevent.c (new_objfile_event_object_type):
7075 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7076 * python/py-objfile.c (objfile_object_type): Use
7077 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7078 * python/py-param.c (parmpy_object_type):
7079 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7080 * python/py-progspace.c (pspace_object_type):
7081 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7082 * python/py-signalevent.c (signal_event_object_type):
7083 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7084 * python/py-symtab.c (symtab_object_type, sal_object_type): Use
7085 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7086 * python/py-type.c (type_object_type, field_object_type)
7087 (type_iterator_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7088 * python/py-internal.h (CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF): New
7089 define.
7090 (value_object_type, block_object_type, symbol_object_type)
7091 (event_object_type, stop_event_object_type, breakpoint_object_type)
7092 (frame_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7093
81ea8796
AT
70942013-05-20 Andreas Tobler <andreas@fgznet.ch>
7095
7096 * Makefile.in (ALL_TARGET_OBS): Add ppcfbsd-tdep.o.
7097 (ALLDEPFILES): Add ppcfbsd-nat.c and ppcfbsd-tdep.c.
7098
a2ce51a0
DE
70992013-05-20 Doug Evans <dje@google.com>
7100
7101 When reading CU, stay in DWO. Be more tolerent of bad debug info.
7102 For Fission.
7103 * dwarf2read.c (struct dwarf2_per_cu_data): New member
7104 reading_dwo_directly.
7105 (struct signatured_type): New member dwo_unit.
7106 (struct die_reader_specs): New member comp_dir.
7107 (create_signatured_type_table_from_index): Use malloc for
7108 all_type_units instead of objfile's obstack.
7109 (create_all_type_units): Ditto.
7110 (fill_in_sig_entry_from_dwo_entry): New function.
7111 (add_type_unit): New function.
7112 (lookup_dwo_signatured_type): New function.
7113 (lookup_dwp_signatured_type): New function.
7114 (lookup_signatured_type): New arg cu. All callers updated.
7115 (init_cu_die_reader): Initialize comp_dir.
7116 (read_cutu_die_from_dwo): New arg stub_comp_dir. All callers updated.
7117 Change assert of matching type signatures to call error on mismatch.
7118 (lookup_dwo_unit): Add assert.
7119 (init_tu_and_read_dwo_dies): New function.
7120 (init_cutu_and_read_dies): Call it.
7121 (build_type_unit_groups): Handle case of no type unit groups created.
7122 (hash_dwo_file, eq_dwo_file): Handle missing comp_dir.
7123 (lookup_dwo_cutu): Tweak complaint.
7124 (dwarf2_free_abbrev_table): Check for NULL abbrev_table.
7125 (dwarf2_per_objfile_free): Free all_type_units.
7126
a25cd31f
JB
71272013-05-20 Joel Brobecker <brobecker@adacore.com>
7128
7129 * windows-nat.c (handle_unload_dll): Add missing empty line.
7130
4d804846
JB
71312013-05-20 Joel Brobecker <brobecker@adacore.com>
7132
7133 * dwarf2read.c (prototyped_function_p): New function.
7134 (read_subroutine_type): Use it.
7135
1c432e72
JB
71362013-05-20 Joel Brobecker <brobecker@adacore.com>
7137
7138 * rs6000-aix-tdep.c: De-indent some example code provided
7139 as a comment.
7140
4feebbdd
EBM
71412013-05-17 Edjunior Machado <emachado@linux.vnet.ibm.com>
7142
7143 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Check if the
7144 region is ok for a hardware watchpoint using the new ptrace interface
7145 on Power servers.
7146
7d0c9981
DE
71472013-05-17 Doug Evans <dje@google.com>
7148
7149 * NEWS: Mention new maintenance commands check-symtabs, and
7150 expand-symtabs, and renamed check-psymtabs.
7151 * psymtab.c (maintenance_check_psymtabs): Renamed from
7152 maintenance_check_symtabs. Only process already-expanded symbol
7153 tables.
7154 (_initialize_psymtab): Update.
7155 * symmisc.c (maintenance_check_symtabs): New function.
7156 (maintenance_expand_name_matcher): New function
7157 (maintenance_expand_file_matcher): New function
7158 (maintenance_expand_symtabs): New function.
7159 (_initialize_symmisc): Add "mt check-symtabs" and "mt expand-symtabs"
7160 commands.
7161
6cbc7c3d
TT
71622013-05-17 Tom Tromey <tromey@redhat.com>
7163
7164 * python/py-inferior.c (infpy_read_memory): Don't call
7165 PyErr_SetString if PyObject_New fails.
7166 * python/py-frame.c (frame_info_to_frame_object): Don't call
7167 PyErr_SetString if PyObject_New fails.
7168
a48b32c0
L
71692013-05-17 Pavel Chupin <pavel.v.chupin@intel.com>
7170
7171 * acinclude.m4: Add check for dlopen in libdl.
7172 * configure.ac: Ditto.
7173 * configure: Regenerate.
7174
3de661e6
PM
71752013-05-17 Phil Muldoon <pmuldoon@redhat.com>
7176
7177 * frame.c (frame_stash): Convert to htab.
7178 (frame_addr_hash): New function.
7179 (frame_addr_hash_eq): New function.
7180 (frame_stash_create): Convert function to create
7181 a hash table.
7182 (frame_stash_add): Convert function to add an entry to a hash
7183 table.
7184 (frame_stash_find): Convert function to search the hash table.
7185 (frame_stash_invalidate): Convert function to empty the hash
7186 table.
7187 (get_frame_id): Only add to stash if a frame_id is created.
7188 (_initialize_frame): Call frame_stash_create.
7189
bb4168a9 71902013-05-16 Yue Lu <hacklu.newborn@gmail.com> (tiny change)
036c3acb
TS
7191
7192 * configure.ac: Ensure MIG is available when building for GNU Hurd
7193 hosts.
7194 * configure: Regenerate.
7195
d1be3247
JB
71962013-05-16 Joel Brobecker <brobecker@adacore.com>
7197
7198 * dwarf2read.c (set_cu_language): Add DW_LANG_UPC handling.
7199
b8fea896
JB
72002013-05-16 Joel Brobecker <brobecker@adacore.com>
7201
7202 * ada-lang.c (ada_make_symbol_completion_list): Make sure
7203 all cleanups are done before returning from this function.
7204
af880d85
JB
72052013-05-15 Joel Brobecker <brobecker@adacore.com>
7206
7207 * utils.h: #include "exceptions.h".
7208 (enum errors): Remove partial declaration.
7209
356a5233
JB
72102013-05-15 Joel Brobecker <brobecker@adacore.com>
7211
7212 * gdbarch.sh (core_xfer_shared_libraries_aix): New method.
7213 * gdbarch.h, gdbarch.c: Regenerate.
7214 * corelow.c (core_xfer_partial): Add TARGET_OBJECT_LIBRARIES_AIX
7215 handling.
7216
7217 * rs6000-aix-tdep.h: New file.
7218 * Makefile.in (HFILES_NO_SRCDIR): Add rs6000-aix-tdep.h.
7219 * rs6000-aix-tdep.c: Include "rs6000-aix-tdep.h" and
7220 "xml-utils.h".
7221 (struct field_info, struct ld_info_desc): New types.
7222 (ld_info32_desc, ld_info64_desc): New static constants.
7223 (struct ld_info): New type.
7224 (rs6000_aix_extract_ld_info): New function.
7225 (rs6000_aix_shared_library_to_xml): Likewise.
7226 (rs6000_aix_ld_info_to_xml): Likewise.
7227 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
7228 (rs6000_aix_init_osabi): Add call to
7229 set_gdbarch_core_xfer_shared_libraries_aix.
7230 * rs6000-nat.c: Add "rs6000-aix-tdep.h" include.
7231 Remove "xml-utils.h" include.
7232 (LdInfo): Delete typedef.
7233 (ARCH64_DECL, LDI_FIELD, LDI_NEXT, LDI_FD, LDI_FILENAME):
7234 Delete macros.
7235 (rs6000_ptrace_ldinfo): Change return type to gdb_byte *.
7236 Adjust code accordingly.
7237 (rs6000_core_ldinfo): Delete, folded into
7238 rs6000_aix_core_xfer_shared_libraries_aix.
7239 (rs6000_xfer_shared_library): Delete.
7240 (rs6000_xfer_shared_libraries): Reimplement.
7241
742ce053
MM
72422013-05-15 Markus Metzger <markus.t.metzger@intel.com>
7243
7244 * record.c (record_goto_cmdlist): New.
7245 (cmd_record_goto): Split into this ...
7246 (cmd_record_goto_begin): ... this
7247 (cmd_record_goto_end): ... and this.
7248 (_initialize_record): Change "record goto" to prefix command.
7249 Add commands for "record goto begin" and "record goto end".
7250 Add an alias for "record goto start" to "record goto begin".
7251
e93ba630
JK
72522013-05-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7253
7254 * linespec.c (convert_linespec_to_sals): New comment for
7255 SOURCE_FILENAME assignment.
7256
5821aace
JK
72572013-05-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7258
7259 * cleanups.c (restore_my_cleanups): Replace gdb_assert by
7260 internal_warning.
7261
a1b8c4cc
TT
72622013-05-14 Tom Tromey <tromey@redhat.com>
7263
7264 * eval.c (parse_and_eval_long): Make 'exp' const.
7265 * value.h (parse_and_eval_long): Update.
7266
23b3a2c3
TT
72672013-05-14 Tom Tromey <tromey@redhat.com>
7268
7269 * ui-file.c (gdb_fopen): Make arguments const.
7270 * ui-file.h (gdb_fopen): Make arguments const.
7271
ca623f82
TT
72722013-05-14 Tom Tromey <tromey@redhat.com>
7273
7274 * remote.c (remote_set_trace_notes): Make arguments const.
7275 * target.c (update_current_target): Update cast.
7276 * target.h (to_set_trace_notes): Make arguments const.
7277
503ebb2c
TT
72782013-05-14 Tom Tromey <tromey@redhat.com>
7279
7280 * go32-nat.c (go32_terminal_info): Make 'args' const.
7281 * inferior.h (child_terminal_info): Update.
7282 * inflow.c (child_terminal_info): Make 'args' const.
7283 * target.c (default_terminal_info): Make 'args' const.
7284 (debug_to_terminal_save_ours): Likewise.
7285 * target.h (struct target_ops) <to_terminal_info>: Make argument
7286 const.
7287
85e1311a
TT
72882013-05-13 Tom Tromey <tromey@redhat.com>
7289
7290 * gcore.c (create_gcore_bfd): Make 'filename' const.
7291 * gcore.h (create_gcore_bfd): Make 'filename' const.
7292 * record-full.c (record_full_save): Make 'recfilename' const.
7293 * target.c (target_save_record): Make 'filename' const.
7294 * target.h (struct target_ops) <to_save_record>: Make 'filename'
7295 const.
7296 (target_save_record): Likewise.
7297
d62bfeaf
TT
72982013-05-13 Tom Tromey <tromey@redhat.com>
7299
f5aee5ee 7300 PR gdb/15338:
d62bfeaf
TT
7301 * dwarf2read.c (dwarf2_record_block_ranges): Ensure that the
7302 ranges section has been read.
7303
ac1ca910
TT
73042013-05-13 Tom Tromey <tromey@redhat.com>
7305
7306 PR exp/15364:
7307 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
7308 STRUCTOP_PTR>: Return a not_lval value for
7309 EVAL_AVOID_SIDE_EFFECTS.
7310 * opencl-lang.c (evaluate_subexp_opencl): Return a not_lval value
7311 for EVAL_AVOID_SIDE_EFFECTS.
7312
36d1c68c
JB
73132013-05-13 Joel Brobecker <brobecker@adacore.com>
7314
7315 * rs6000-aix-tdep.c (rs6000_push_dummy_call): Convert
7316 floating point registers to register type before storing
7317 value.
7318 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call):
7319 Likewise.
7320
21ff4686
TT
73212013-05-10 Joel Brobecker <brobecker@adacore.com>
7322 Tom Tromey <tromey@redhat.com>
7323
7324 * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
7325 New functions.
7326 * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
7327 Declare.
7328 * darwin-nat.c (darwin_pre_ptrace): Use mark_fd_no_cloexec.
7329 (darwin_ptrace_him): Use unmark_fd_no_cloexec.
7330 * inf-ttrace.c (do_cleanup_pfds): Use unmark_fd_no_cloexec.
7331 (inf_ttrace_prepare): Use mark_fd_no_cloexec.
7332
d3685d60
TT
73332013-05-10 Freddie Chopin <freddie_chopin@op.pl>
7334 Tom Tromey <tromey@redhat.com>
7335
7336 PR build/15414:
7337 * configure: Rebuild.
7338 * configure.ac (build_warnings): Do not use -Wformat-nonliteral
7339 with -Wno-format.
7340
eb9fe518
PA
73412013-05-10 Pedro Alves <palves@redhat.com>
7342
7343 * remote.c (_initialize_remote): Fix spelling of
7344 qXfer:traceframe-info:read packet in packet config command.
7345
9779ab84
PA
73462013-05-10 David Taylor <dtaylor@emc.com>
7347
7348 PR remote/15455
7349
7350 * remote.c (remote_trace_set_readonly_regions): Do not overwrite
7351 "QTro" at start of packet.
7352
060cfbef
JB
73532013-05-10 Joel Brobecker <brobecker@adacore.com>
7354
7355 * solib-aix.c (solib_aix_relocate_section_addresses):
7356 For the .bss section action, apply the same offset as
7357 the .data section.
7358
ab1c4e88
JB
73592013-05-10 Joel Brobecker <brobecker@adacore.com>
7360
7361 * solib-aix.c (solib_aix_relocate_section_addresses):
7362 Remove FIXME comment.
7363
c1357578
JB
73642013-05-10 Joel Brobecker <brobecker@adacore.com>
7365
7366 PR tdep/15420:
7367 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
7368 New functions, directly copied from sparc-sol-thread.c.
7369 * sparc-sol-thread.c: Delete.
7370 * configure.ac: Remove code handling sparc-solaris-thread.c.
7371 * configure: Regenerate.
7372
1e611234
PM
73732013-05-10 Phil Muldoon <pmuldoon@redhat.com>
7374
7375 * stack.c (backtrace_command_1): Add "no-filters", and Python frame
7376 filter logic.
7377 (backtrace_command): Add "no-filters" option parsing.
7378 (_initialize_stack): Alter help to reflect "no-filters" option.
7379 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-framefilter.o
7380 (SUBDIR_PYTHON_SRCS): Add py-framefilter.c
7381 (py-frame.o): Add target
7382 * data-directory/Makefile.in (PYTHON_DIR): Add Python frame
7383 filter files.
7384 * python/python.h: Add new frame filter constants, and flag enum.
7385 (apply_frame_filter): Add definition.
7386 * python/python.c (apply_frame_filter): New non-Python
7387 enabled function.
7388 * python/py-utils.c (py_xdecref): New function.
7389 (make_cleanup_py_xdecref): Ditto.
7390 * python/py-objfile.c: Declare frame_filters dictionary.
7391 (objfpy_dealloc): Add frame_filters dealloc.
7392 (objfpy_new): Initialize frame_filters attribute.
7393 (objfile_to_objfile_object): Ditto.
7394 (objfpy_get_frame_filters): New function.
7395 (objfpy_set_frame_filters): New function.
7396 * python/py-progspace.c: Declare frame_filters dictionary.
7397 (pspy_dealloc): Add frame_filters dealloc.
7398 (pspy_new): Initialize frame_filters attribute.
7399 (pspacee_to_pspace_object): Ditto.
7400 (pspy_get_frame_filters): New function.
7401 (pspy_set_frame_filters): New function.
7402 * python/py-framefilter.c: New file.
7403 * python/lib/gdb/command/frame_filters.py: New file.
7404 * python/lib/gdb/frames.py: New file.
7405 * python/lib/gdb/__init__.py: Initialize global frame_filters
7406 dictionary
7407 * python/lib/gdb/FrameDecorator.py: New file.
7408 * python/lib/gdb/FrameIterator.py: New file.
7409 * mi/mi-cmds.c (mi_cmds): Add frame filters command.
7410 * mi/mi-cmds.h: Declare.
7411 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Add
7412 --no-frame-filter logic, and Python frame filter logic.
7413 (stack_enable_frame_filters): New function.
7414 (parse_no_frame_option): Ditto.
7415 (mi_cmd_stack_list_frames): Add --no-frame-filter and Python frame
7416 filter logic.
7417 (mi_cmd_stack_list_locals): Ditto.
7418 (mi_cmd_stack_list_args): Ditto.
7419 (mi_cmd_stack_list_variables): Ditto.
7420 * NEWS: Add frame filter note.
7421
2cb9c859
DE
74222013-05-09 Doug Evans <dje@google.com>
7423
6bf667bb
DE
7424 * symfile.c (syms_from_objfile_1): Delete args offsets, num_offsets.
7425 All callers updated.
7426 (syms_from_objfile): Ditto. Make static.
7427 (symbol_file_add_with_addrs): Renamed from
7428 symbol_file_add_with_addrs_or_offsets. Delete args offsets,
7429 num_offsets. All callers updated.
7430 * symfile.h (syms_from_objfile): Delete.
7431
2cb9c859
DE
7432 * symfile.c (decrement_reading_symtab): Add assert.
7433 (increment_reading_symtab): Ditto.
7434
40aea477
JB
74352013-05-09 Joel Brobecker <brobecker@adacore.com>
7436
7437 * source.c (forward_search_command): Replace call to getc
7438 by call to fgetc.
7439 (reverse_search_command): Likewise.
7440
680d1742
DE
74412013-05-08 Doug Evans <dje@google.com>
7442
7443 * psymtab.c (expand_symtabs_matching_via_partial): Fix file name
7444 matching test.
7445
17e760ae
JB
74462013-05-08 Joel Brobecker <brobecker@adacore.com>
7447
7448 * sol-thread.c (info_cb): Factorize the code a little.
7449
c0f5f490
JB
74502013-05-08 Joel Brobecker <brobecker@adacore.com>
7451
7452 * sol-thread.c (info_cb): Rework the output of the "maintenance
7453 info sol-threads" command a bit.
7454
5d74e061
JB
74552013-05-08 Joel Brobecker <brobecker@adacore.com>
7456
7457 * sol-thread.c (info_cb) [ti.ti_state == TD_THR_SLEEP]:
7458 Replace ti.ti_startfunc by ti.ti_pc.
7459
814a3ff7
JB
74602013-05-08 Joel Brobecker <brobecker@adacore.com>
7461
7462 * solib-aix.c (solib_aix_free_library_list): New function
7463 for the case where HAVE_LIBEXPAT is not defined.
7464
58ce7251
SDJ
74652013-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
7466
7467 PR breakpoints/15413:
7468 * breakpoint.c (condition_completer): Simplify the code to
7469 disconsider multiple locations of breakpoints when completing the
7470 "condition" command.
7471
be8b1ea6
PM
74722013-05-07 Pierre Muller <muller@sourceware.org>
7473
7474 * common/linux-btrace.c: ARI fix: Include "gdb_wait.h"
7475 instead of <sys/wait.h>.
7476
1e52bda6
PM
74772013-05-07 Pierre Muller <muller@sourceware.org>
7478
7479 * nios2-tdep.c (nios2_dwarf_reg_to_regnum): ARI fix: remove
7480 trailing new line from warning message.
7481
27fd0c6b
PM
74822013-05-07 Pierre Muller <muller@sourceware.org>
7483
7484 * contrib/ari/gdb_ari.sh (SOLIB_ADD, SOLIB_CREATE_INFERIOR_HOOK)
7485 (PC_SOLIB): Change type from ari_deprecate to ari_regression.
7486
e228ac87
JB
74872013-05-07 Joel Brobecker <brobecker@adacore.com>
7488
7489 * rs6000-nat.c (rs6000_core_ldinfo): Remove '\n' at end of
7490 error message (ARI fix).
7491
74922013-05-07 Joel Brobecker <brobecker@adacore.com>
7493
7494 * features/library-list-aix.dtd: Replace library-list by
7495 library-list-aix.
7496 * rs6000-nat.c: Replace library-list by library-list-aix
7497 throughout.
7498 * solib-aix.c: Likewise.
7499
75002013-05-07 Joel Brobecker <brobecker@adacore.com>
7501
7502 * target.h (enum target_object) [TARGET_OBJECT_LIBRARIES_AIX]:
7503 Renames TARGET_OBJECT_AIX_LIBRARIES.
7504 * rs6000-nat.c: Replace TARGET_OBJECT_AIX_LIBRARIES with
7505 TARGET_OBJECT_LIBRARIES_AIX throughout.
7506 * solib-aix.c: Likwise.
7507
26a4dda9
YQ
75082013-05-07 Yao Qi <yao@codesourcery.com>
7509
7510 * solib-dsbt.c (struct dsbt_info) <enable_break2_done>: Remove.
7511 (get_dsbt_info, enable_break, dsbt_clear_solib): Update.
7512
3582629f
YQ
75132013-05-07 Yao Qi <yao@codesourcery.com>
7514
7515 * solib-dsbt.c (enable_break): Declare.
7516 (dsbt_current_sos): Remove call to enable_break2.
7517 (enable_break2): Rename to enable_break. Set solib breakpoint
7518 on '_dl_debug_state'.
7519 (enable_break): Remove.
7520
aacbb8a5
LM
75212013-05-07 Luis Machado <lgustavo@codesourcery.com>
7522
7523 * ppc-linux-nat.c (ppc_linux_new_thread): Clear the new thread's
7524 debug state prior to replicating existing hardware watchpoints or
7525 breakpoints.
7526
0c013353
JK
75272013-05-07 Jan Kratochvil <jan.kratochvil@redhat.com>
7528
7529 * gcore.c (gcore_create_callback): Ignore sections with
7530 separate_debug_objfile_backlink != NULL.
7531
a1217d97
SL
75322013-05-06 Sandra Loosemore <sandra@codesourcery.com>
7533 Andrew Jenner <andrew@codesourcery.com>
7534 Chung-Lin Tang <cltang@codesourcery.com>
7535 Julian Brown <julian@codesourcery.com>
7536
7537 Based on the nios2-elf port from Altera Corporation.
7538
7539 * Makefile.in (ALL_TARGET_OBS): Add nios2-tdep.o and
7540 nios2-linux-tdep.o.
7541 (HFILES_NO_SRCDIR): Add nios2-tdep.h.
7542 (ALLDEPFILES): Add nios2-tdep.c and nios2-linux-tdep.c.
7543 * configure.tgt: Add nios2*-*-linux* and nios2*-*-* targets.
7544 * nios2-tdep.h: New.
7545 * nios2-tdep.c: New.
7546 * nios2-linux-tdep.c: New.
7547 * features/Makefile (WHICH): Add nios2-linux.
7548 (nios2-linux-expedite): Set.
7549 * features/nios2-cpu.xml: New.
7550 * features/nios2.xml: New.
7551 * features/nios2-linux.xml: New.
7552 * features/nios2.c: New (autogenerated).
7553 * features/nios2-linux.c: New (autogenerated).
7554 * regformats/nios2-linux.dat: New (autogenerated).
7555 * NEWS (Changes since GDB 7.6): Add new Nios II targets
7556 and commands.
7557
0892cb63
DE
75582013-05-06 Doug Evans <dje@google.com>
7559
3b7bacac
DE
7560 * symfile.c: Whitespace cleanup.
7561
0892cb63
DE
7562 * solist.h (struct target_so_ops): New member clear_so.
7563 * solib-svr4.c (svr4_clear_so): New function.
7564 (_initialize_svr4_solib): Set svr4_so_ops.clear_so.
7565 * solib.c (clear_so): Renamed from free_so_symbols.
7566 All callers updated. Call target clear_so if it exists.
7567
40501e00
TT
75682013-05-06 Tom Tromey <tromey@redhat.com>
7569
7570 * ada-lang.c (ada_value_primitive_packed_val): Don't
7571 call value_incref.
7572 * value.c (set_value_parent): Incref the new parent and decref
7573 the old parent.
7574 (value_copy, value_primitive_field): Use set_value_parent.
7575
b6807d98
TT
75762013-05-06 Tom Tromey <tromey@redhat.com>
7577
7578 * dwarf2loc.c (invalid_synthetic_pointer): Move earlier.
7579 (indirect_pieced_value): Call dwarf2_fetch_constant_bytes
7580 if needed.
7581 * dwarf2loc.h (dwarf2_fetch_constant_bytes): Declare.
7582 * dwarf2read.c (write_constant_as_bytes)
7583 (dwarf2_fetch_constant_bytes): New functions.
7584
3aef2284
TT
75852013-05-06 Tom Tromey <tromey@redhat.com>
7586
7587 * dwarf2read.c (dwarf2_const_value_data): Remove unused
7588 parameters.
7589 (dwarf2_const_value_attr): Update.
7590
66f65e2b
TT
75912013-05-06 Tom Tromey <tromey@redhat.com>
7592
7593 * somread.c (som_symfile_offsets): Add 'const' to addrs.
7594 * machoread.c (macho_symfile_offsets): Add 'const' to addrs.
7595 * xcoffread.c (xcoff_symfile_offsets): Add 'const' to addrs.
7596 Remove declaration.
7597
7919a973
TT
75982013-05-06 Tom Tromey <tromey@redhat.com>
7599
7600 * dwarf2read.c (dwarf2_const_value_attr): Use 'obstack', not
7601 objfile's obstack.
7602
a7bfba49
DE
76032013-05-06 Doug Evans <dje@google.com>
7604
3189cb12
DE
7605 * dbxread.c (process_one_symbol): Constify section_offsets parameter.
7606 * stabsread.h (process_one_symbol): Update declaration.
7607 * dwarf2read.c (dw2_relocate): Constify new_offsets, delta parameters.
7608 * elfread.c (elf_symfile_relocate_probe): Ditto.
7609 * psymtab.c (relocate_psymtabs): Ditto.
7610 * objfiles.c (objfile_relocate1): Constify new_offsets parameter.
7611 (objfile_relocate): Ditto.
7612 * objfiles.h (objfile_relocate): Update declaration.
7613 * symfile.c (relative_addr_info_to_section_offsets): Constify
7614 addrs parameter.
7615 (default_symfile_offsets): Ditto.
7616 (syms_from_objfile_1): Constify offsets parameter.
7617 (syms_from_objfile): Ditto.
7618 (symbol_file_add_with_addrs_or_offsets): Ditto.
7619 (symfile_map_offsets_to_segments): Constify data parameter.
7620 * symfile.h (struct quick_symbol_functions): Constify new_offsets,
7621 delta parameters of member relocate.
7622 (struct sym_probe_fns): Constify new_offsets,
7623 delta parameters of member sym_relocate_probe.
7624 (struct sym_fns): Constify section_addr_info parameter of member
7625 sym_offsets.
7626 (relative_addr_info_to_section_offsets): Update declaration.
7627 (default_symfile_offsets): Ditto.
7628 (syms_from_objfile): Ditto.
7629 (symfile_map_offsets_to_segments): Ditto.
7630
a7bfba49
DE
7631 * symfile.c (syms_from_objfile_1): Use correct section count when
7632 objfile->sf == NULL.
7633
5f8e0b8f
MF
76342013-05-06 Mike Frysinger <vapier@gentoo.org>
7635
7636 * common/linux-btrace.c (intel_supports_btrace): Fix indentation.
7637
ea52d893
DE
76382013-05-06 Doug Evans <dje@google.com>
7639
7640 * psympriv.h (struct partial_symtab): Augment comment for member
7641 section_offsets.
7642
4d1eb6b4
JB
76432013-05-06 Joel Brobecker <brobecker@adacore.com>
7644
7645 Reimplement shared library support on ppc-aix...
7646 * target.h (TARGET_OBJECT_AIX_LIBRARIES): New target_object enum.
7647 * features/library-list-aix.dtd: New file.
7648 * solib-aix.h, solib-aix.c: New file.
7649 * rs6000-aix-tdep.c: #include "solib.h" and "solib-aix.h".
7650 (rs6000_find_toc_address_hook): Delete.
7651 (rs6000_push_dummy_call): Rewrite code setting the TOC value.
7652 (rs6000_aix_init_osabi): Register solib_aix_so_ops.
7653 * rs6000-nat.c: Remove "xcoffsolib.h" include. Include
7654 "xml-utils.h".
7655 (map_vmap, vmap_exec, vmap_ldinfo, add_vmap, objfile_symbol_add)
7656 (vmap_symtab, fixup_breakpoints): Delete.
7657 (rs6000_xfer_shared_libraries): New function.
7658 (rs6000_xfer_partial): Add TARGET_OBJECT_AIX_LIBRARIES handling.
7659 (vmap_secs, bss_data_overlap, vmap_add_symbols): Delete.
7660 (xcoff_relocate_symtab, xcoff_relocate_core): Delete.
7661 (rs6000_ptrace_ldinfo, rs6000_core_ldinfo)
7662 (rs6000_xfer_shared_library): New function.
7663 (find_toc_address): Delete.
7664 (_initialize_rs6000_nat): Do not set rs6000_find_toc_address_hook.
7665 * rs6000-tdep.h (rs6000_find_toc_address_hook): Remove.
7666 * xcoffread.c (record_minimal_symbol): Reloate symbol address
7667 before creating minimal symbol. Adjust function description
7668 accordingly.
7669 (scan_xcoff_symtab): Replace call to
7670 prim_record_minimal_symbol_and_info by call to
7671 record_minimal_symbol.
7672 (xcoff_symfile_offsets): Reimplement mostly as a wrapper
7673 around default_symfile_offsets.
7674 * configure.tgt: Add solib-aix.o to gdb_target_obs for
7675 powerpc-aix targets.
7676 * config/rs6000/nm-rs6000.h: Delete.
7677 * config/powerpc/aix.mh (NAT_FILE): Delete.
7678 (NATDEPFILES): Remove xcoffsolib.o.
7679 * Makefile.in (XMLFILES): Add library-list-aix.dtd.
7680 (ALL_TARGET_OBS): Add solib-aix.o.
7681 (HFILES_NO_SRCDIR): Remove xcoffsolib.h and
7682 config/rs6000/nm-rs6000.h. Add solib-aix.h.
7683 (ALLDEPFILES): Add solib-aix.c. Remove xcoffsolib.c.
7684 * xcoffsolib.h, xcoffsolib.c: Delete.
7685
7686 * solib.c (reload_shared_libraries): Remove reference to
7687 SOLIB_CREATE_INFERIOR_HOOK.
7688 * breakpoint.c (handle_solib_event): Remove reference to SOLIB_ADD.
7689 (disable_breakpoints_in_shlibs): Remove reference to PC_SOLIB.
7690 (momentary_bkpt_re_set): Replace SOLIB_ADD by solib_add in
7691 comment.
7692 * corelow.c (deprecated_core_resize_section_table): Delete.
7693 * exec.c: Remove include of xcoffsolib.h".
7694 (map_vmap, vmap): Delete.
7695 (exec_close_1): Remove references to vmap.
7696 (exec_file_attach): Remove vmap handling code, and reference
7697 to DEPRECATED_IBM6000_TARGET.
7698 (bfdsec_to_vmap): Delete.
7699 (exec_files_info): Remove block of code handling VMAP.
7700 * infcmd.c (post_create_inferior): Remove reference to
7701 SOLIB_CREATE_INFERIOR_HOOK and SOLIB_ADD.
7702 * infrun.c (follow_exec): Remove reference to
7703 SOLIB_CREATE_INFERIOR_HOOK.
7704 * stack.c (print_frame): Remove reference to PC_SOLIB.
7705 * solib-dsbt.c (dsbt_current_sos): Adjust comment.
7706 (dsbt_relocate_main_executable): Likewise.
7707 * solib-frv.c (frv_current_sos): Likewise.
7708
0c4f667c
JB
77092013-05-06 Joel Brobecker <brobecker@adacore.com>
7710
7711 * sol-thread.c (rw_common): Cast BUF to "gdb_byte *" in calls
7712 to target_write_memory and target_read_memory.
7713
726ce67c
JB
77142013-05-06 Joel Brobecker <brobecker@adacore.com>
7715
7716 * darwin-nat.c (darwin_setup_fake_stop_event): New function.
7717 (darwin_attach): Adjust using darwin_setup_fake_stop_event.
7718
c8c9911f
JB
77192013-05-06 Joel Brobecker <brobecker@adacore.com>
7720
7721 * darwin-nat.c: Replace all "%x" instances in format strings
7722 into "0x%x" throughout.
7723
fda184b6
JB
77242013-05-06 Joel Brobecker <brobecker@adacore.com>
7725
7726 * darwin-nat.c (darwin_mourn_inferior): Replace call to
7727 gdb_assert by call to MACH_CHECK_ERROR.
7728 (darwin_attach_pid): Raise an error rather than a failed
7729 assertion when various system calls failed. Report a warning
7730 instead of raising a failed assertion when PREV_NOT is not NULL
7731 after call to mach_port_request_notification.
7732 (darwin_ptrace_me): Raise an error rather than a failed
7733 assertion when read returns nonzero.
7734
d1d69afb
JB
77352013-05-06 Joel Brobecker <brobecker@adacore.com>
7736
7737 * amd64-darwin-tdep.c: Remove #include "gdb_assert.h".
7738
dc90b24d
JK
77392013-05-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7740
7741 * cleanups.c (restore_my_cleanups): New gdb_assert for SENTINEL_CLEANUP.
7742
faab9922
JK
77432013-05-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7744
7745 * event-top.c (display_gdb_prompt): Call missing do_cleanups.
7746 * infcmd.c (get_return_value) <!stop_regs>: Do not overwrite CLEANUP.
7747 * symfile.c (symfile_bfd_open): New variable back_to. Do not leave
7748 a stale cleanup. Fix double free of NAME.
7749
e0ea48a0
EZ
77502013-05-04 Eli Zaretskii <eliz@gnu.org>
7751
7752 * windows-nat.c (windows_delete_thread): Accept an additional
7753 argument, the thread's exit code, and announce thread death when
7754 print_thread_events is non-zero and we are deleting a thread that
7755 is not the main thread.
7756 (get_windows_debug_event): Pass thread exit code to
7757 windows_delete_thread.
7758
83b2706a
KB
77592013-05-03 Kevin Buettner <kevinb@redhat.com>
7760
7761 * v850-tdep.c (elf-bfd.h, elf/v850.h): Include.
7762 (R_149_REGNUM, E_NUM_OF_V850E2_REGS, E_SELID_1_R0_REGNUM)
7763 (E_SELID_1_R31_REGNUM, E_SELID_2_R0_REGNUM, E_SELID_2_R31_REGNUM)
7764 (E_SELID_3_R0_REGNUM, E_SELID_3_R31_REGNUM, E_SELID_4_R0_REGNUM)
7765 (E_SELID_4_R31_REGNUM, E_SELID_5_R0_REGNUM, E_SELID_5_R31_REGNUM)
7766 (E_SELID_6_R0_REGNUM, E_SELID_6_R31_REGNUM, E_SELID_7_R0_REGNUM, E_SELID_7_R31_REGNUM)
7767 (E_VR0_REGNUM, E_VR31_REGNUM, E_NUM_OF_V850E3V5_REGS): Define.
7768 (v850_abi, V850_ABI_GCC, V850_ABI_RH850): New enum and constants.
7769 (gdbarch_tdep): New struct.
7770 (v850e2_register_name): Use E_NUM_OF_V850E2_REGS instead of
7771 E_NUM_REGS.
7772 (v850e3v5_register_name): New function.
7773 (v850_register_type): v850e3v5 vector registers are 64-bits wide.
7774 (v850_use_struct_convention): Add `gdbarch' parameter. Add new
7775 code handling the struct return conventions for the RH850 ABI.
7776 Update all callers.
7777 (v850_eight_byte_align_p): New function.
7778 (v850_push_call_dummy): Push structs by value, not by reference
7779 for the RH850 ABI. Add support for eight byte alignment.
7780 (v850_dbtrap_breakpoint_from_pc): New function.
7781 (v850_gdbarch_init): Add ABI detection code. Register
7782 v850e3v5_register_name for the v850e3v5 architecture. Set the
7783 number of registers for v850e3v5. Register
7784 v850_dbtrap_breakpoint_from_pc as appropriate.
7785 (_initialize_gdbarch_init): Registration bfd_arch_v850_rh850.
7786
d445b2f6
DE
77872013-05-03 Doug Evans <dje@google.com>
7788
7789 * objfiles.c (objfile_relocate): Use gdb_bfd_count_sections instead
7790 of bfd_count_sections.
7791 * solib-target.c (solib_target_relocate_section_addresses): Ditto.
7792 * symfile.c (default_symfile_offsets): Ditto.
7793 (syms_from_objfile_1): Ditto. Make dummy addrs list an array of
7794 one entry, not bfd_count_sections entries.
7795
b3ce41ea
KB
77962013-05-03 Kevin Buettner <kevinb@redhat.com>
7797
7798 * rl78-tdep.c (rl78_register_reggroup_p): Include SP in the
7799 `save' and `restore' register groups. Don't include SPL
7800 or SPH in these groups.
7801 (rl78_dwarf_reg_to_regnum): Adjust mapping for
7802 RL78_PC_REGNUM. Add mappings for RL78_PSW_REGNUM,
7803 RL78_ES_REGNUM, and RL78_CS_REGNUM.
7804 (rl78_gdbarch_init): Set `dwarf2_addr_size' to 4. Invoke
7805 dwarf2_append_unwinders().
7806
96f7d3f1
PW
78072013-05-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7808
7809 * break-catch-sig.c (signal_catchpoint_breakpoint_hit): Do not
7810 ignore SIGINT and SIGTRAP in case these internal signals are
7811 caught explicitely.
7812
b9dd1947
JB
78132013-05-01 Joel Brobecker <brobecker@adacore.com>
7814
7815 * darwin-nat.c (darwin_read_write_inferior): Change types
7816 of parameters rdaddr and wraddr to "gdb_byte *". Change type
7817 of copy_count to "mach_msg_type_number_t".
7818 (darwin_read_dyld_info): Change type of parameter
7819 rdaddr to "gdb_byte *".
7820
4ca18a63
JB
78212013-05-01 Joel Brobecker <brobecker@adacore.com>
7822
7823 * solib-ia64-hpux.c (ia64_hpux_read_dynamic_info): Change cast
7824 of &info->load_map from "char *" to "gdb_byte *".
7825
2b692d32
JB
78262013-05-01 Joel Brobecker <brobecker@adacore.com>
7827
7828 * ia64-tdep.c (ia64_access_fpreg): Change cast of val
7829 from "char *" to "gdb_byte *".
7830 (ia64_access_rse_fpreg, ia64_access_mem): Likewise.
7831
a98c29a0
DE
78322013-04-30 Doug Evans <dje@google.com>
7833
6a506a2d
DE
7834 * dwarf2read.c (lookup_dwo_unit): Return NULL if DWO not found.
7835 (init_cutu_and_read_dies): Flag a complaint, not error, for bad
7836 DWO stub. If DWO isn't found, just use stub.
7837 (lookup_dwo_cutu): Don't try DWO if there's a DWP file.
7838
a98c29a0
DE
7839 * dwarf2read.c (dw2_find_symbol_file): Initialize filename before
7840 calling init_cutu_and_read_dies.
7841
f92b06da
WT
78422013-03-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
7843
7844 * target-descriptions.c (maint_print_c_tdesc_cmd):
7845 Add case to parse structures as register types and
7846 bitfields.
7847
95eebdcc
WT
78482013-04-30 Walfred Tedeschi <walfred.tedeschi@intel.com>
7849
7850 * MAINTAINERS (Write After Approval): Add myself to the list.
7851
019c1128
JB
78522013-04-30 Joel Brobecker <brobecker@adacore.com>
7853
7854 * sol-thread.c (rw_common): Change type of parameter "buf"
7855 to "gdb_byte *".
7856 (ps_pdwrite, ps_ptwrite): Cast parameter "buf" in call to
7857 rw_common to "gdb_byte *" instead of "char *".
7858
5812197c
JB
78592013-04-30 Joel Brobecker <brobecker@adacore.com>
7860
7861 * sol-thread.c (info_cb) [ti.ti_startfunc != 0]: Change type
7862 of local variable msym to const struct bound_minimal_symbol.
7863 Adjust use accordingly.
7864 [ti.ti_state == TD_THR_SLEEP]: Likewise.
7865
ecccb813
TS
78662013-04-30 Samuel Thibault <samuel.thibault@gnu.org>
7867
7868 * i386gnu-nat.c (CREG_OFFSET): New macro.
7869 (creg_offset): New array.
7870 (CREG_ADDR): Use creg_offset instead of reg_offset.
7871
f1d02dd4 78722013-04-30 Joel Brobecker <brobecker@adacore.com>
54746424
JB
7873
7874 * mep-tdep.c (mep_write_pc): Delete.
7875 (mep_gdbarch_init): Remove call to set_gdbarch_write_pc.
7876 Add call to set_gdbarch_pc_regnum.
7877
f1d02dd4 78782013-04-30 Joel Brobecker <brobecker@adacore.com>
01da98f9
JB
7879
7880 * common/filestuff.c: Replace #include <dirent.h> by
7881 #include "gdb_dirent.h".
7882
f1d02dd4 78832013-04-30 Joel Brobecker <brobecker@adacore.com>
366c6766
JB
7884
7885 * common/filestuff.c: Replace #include <sys/stat.h> by
7886 #include "gdb_stat.h".
7887
b385a60d
PM
78882013-04-29 Pierre Muller <muller@sourceware.org>
7889
7890 * dwarf2read.c (handle_DW_AT_stmt_list): Avoid ARI warning for
7891 editCase function rule.
7892 (get_DW_AT_signature_type): Likewise.
7893
d27b54ad
JB
78942013-04-29 Joel Brobecker <brobecker@adacore.com>
7895
7896 * m32r-tdep.c (m32r_write_pc): Delete.
7897 (m32r_gdbarch_init): Remove call to set_gdbarch_write_pc.
7898 Add call to set_gdbarch_pc_regnum.
7899
47d21dc5
PM
79002013-04-29 Pierre Muller <muller@sourceware.org>
7901
7902 * ./contrib/ari/gdb_ari.sh (editCase rule): Fix spelling error.
7903
9056882e
JB
79042013-04-29 Joel Brobecker <brobecker@adacore.com>
7905
7906 * dwarf2read.c (get_DW_AT_signature_type): Add ARI marker.
7907
7ee4732a
YQ
79082013-04-28 Yao Qi <yao@codesourcery.com>
7909
7910 * solib-dsbt.c (fetch_loadmap): Re-indent.
7911 (displacement_from_map, enable_break2): Likewise.
7912 (dsbt_relocate_section_addresses): Likewise.
7913
2260af53 79142013-04-26 Joel Brobecker <brobecker@adacore.com>
7915
7916 GDB 7.6 released.
7917
ff546935
TT
79182013-04-25 Andreas Kaufmann <Andreas.Kaufmann@synopsys.com>
7919
7920 PR corefiles/14983:
7921 * dwarf2read.c (process_full_comp_unit): Always create a static
7922 block.
7923
40fb6c5e
HZ
79242013-04-25 Hui Zhu <hui@codesourcery.com>
7925
7926 * breakpoint.c (build_target_command_list): Change loc->cond_bytecode
7927 to loc->cmd_bytecode.
7928
74e04d1c
DE
79292013-04-24 Doug Evans <dje@google.com>
7930
7931 * dwarf2read.c (setup_type_unit_groups): Fix comment.
7932
3cf62c1d
KS
79332013-04-22 Keith Seitz <keiths@redhat.com>
7934
7935 * tracepoint.c (trace_save): Call the writer's start method.
7936
bf9e4d0c
MB
79372013-04-24 Muhammad Bilal <mbilal@codesourcery.com>
7938
7939 PR gdb/10462
7940 * cli/cli-decode.c (lookup_command): Show an error if there is no space
7941 before argument.
7942
5d71132c
TT
79432013-04-23 Tom Tromey <tromey@redhat.com>
7944
7945 * common/filestuff.c: Check USE_WIN32API before including
7946 sys/socket.h.
7947 (HAVE_F_GETFD): New define.
7948 (mark_cloexec): Check HAVE_F_GETFD.
7949 (gdb_open_cloexec): Change 'mode' to unsigned long.
7950 (gdb_socketpair_cloexec): Check HAVE_SOCKETPAIR.
7951 (gdb_pipe_cloexec): Check HAVE_PIPE.
7952 * common/filestuff.h (gdb_open_cloexec): Change 'mode' to unsigned
7953 long.
7954
a11cfd87
HZ
79552013-04-23 Hui Zhu <hui@codesourcery.com>
7956
7957 PR gdb/15293
a11cfd87
HZ
7958 * breakpoint.c (bpstat_what): Add BPSTAT_WHAT_SINGLE to bp_dprintf.
7959
2d9442cc
HZ
79602013-04-23 Hui Zhu <hui@codesourcery.com>
7961
7962 PR gdb/15165
2d9442cc
HZ
7963 * breakpoint.c (dprintf_print_recreate): New.
7964 (save_breakpoints): Let it not save dprintf commands.
7965 (initialize_breakpoint_ops): Set dprintf_print_recreate.
7966
614c279d
TT
79672013-04-22 Tom Tromey <tromey@redhat.com>
7968
7969 PR gdb/7912:
7970 * Makefile.in (SFILES): Add filestuff.c
7971 (COMMON_OBS): Add filestuff.o.
7972 (filestuff.o): New target.
7973 * auto-load.c (auto_load_objfile_script_1): Use
7974 gdb_fopen_cloexec.
7975 * auxv.c (procfs_xfer_auxv): Use gdb_open_cloexec.
7976 * cli/cli-cmds.c (shell_escape): Call close_most_fds.
7977 * cli/cli-dump.c (fopen_with_cleanup): Use gdb_fopen_cloexec.
7978 * common/agent.c (gdb_connect_sync_socket): Use
7979 gdb_socket_cloexec.
7980 * common/filestuff.c: New file.
7981 * common/filestuff.h: New file.
7982 * common/linux-osdata.c (linux_common_core_of_thread)
7983 (command_from_pid, commandline_from_pid, print_source_lines)
7984 (linux_xfer_osdata_shm, linux_xfer_osdata_sem)
7985 (linux_xfer_osdata_msg, linux_xfer_osdata_modules): Use
7986 gdb_fopen_cloexec.
7987 * common/linux-procfs.c (linux_proc_get_int)
7988 (linux_proc_pid_has_state): Use gdb_fopen_cloexec.
7989 * config.in, configure: Rebuild.
7990 * configure.ac: Don't check for sys/socket.h. Check for
7991 fdwalk, pipe2.
7992 * corelow.c (core_open): Use gdb_open_cloexec.
7993 * dwarf2read.c (write_psymtabs_to_index): Use gdb_fopen_cloexec.
7994 * fork-child.c (fork_inferior): Call close_most_fds.
7995 * gdb_bfd.c (gdb_bfd_open): Use gdb_open_cloexec.
7996 * inf-child.c (inf_child_fileio_readlink): Use gdb_open_cloexec.
7997 * linux-nat.c (linux_nat_thread_name, linux_proc_pending_signals):
7998 Use gdb_fopen_cloexec.
7999 (linux_proc_xfer_partial, linux_proc_xfer_spu): Use
8000 gdb_open_cloexec.
8001 (linux_async_pipe): Use gdb_pipe_cloexec.
8002 * remote-fileio.c (remote_fileio_func_open): Use
8003 gdb_open_cloexec.
8004 * remote.c (remote_file_put, remote_file_get): Use
8005 gdb_fopen_cloexec.
8006 * ser-pipe.c (pipe_open): Use gdb_socketpair_cloexec,
8007 close_most_fds.
8008 * ser-tcp.c (net_open): Use gdb_socket_cloexec.
8009 * ser-unix.c (hardwire_open): Use gdb_open_cloexec.
8010 * solib.c (solib_find): Use gdb_open_cloexec.
8011 * source.c (openp, find_and_open_source): Use gdb_open_cloexec.
8012 * tracepoint.c (tfile_start): Use gdb_fopen_cloexec.
8013 (tfile_open): Use gdb_open_cloexec.
8014 * tui/tui-io.c (tui_initialize_io): Use gdb_pipe_cloexec.
8015 * ui-file.c (gdb_fopen): Use gdb_fopen_cloexec.
8016 * xml-support.c (xml_fetch_content_from_file): Use
8017 gdb_fopen_cloexec.
8018 * main.c (captured_main): Call notice_open_fds.
8019
5fda2332
EBM
80202013-04-22 Edjunior Machado <emachado@linux.vnet.ibm.com>
8021
8022 * remote-sim.c (dump_mem): Change the type of 'buf' parameter from
8023 'char *' to 'gdb_byte *'.
8024 (gdbsim_store_register): Change the type of 'tmp' from 'char' to
8025 'gdb_byte'.
8026
eb6c553b
YQ
80272013-04-22 Yao Qi <yao@codesourcery.com>
8028
8029 * infrun.c: Fix typo in comment.
8030
9991b207
SDJ
80312013-04-22 Andrew Haley <aph@redhat.com>
8032
8033 * arm-tdep.c (BranchDest): Cast result as "unsigned long",
8034 instead of "long".
8035
8b4833e3
YQ
80362013-04-20 Yao Qi <yao@codesourcery.com>
8037
8038 * ctf.c (ctf_fetch_registers): Change the type of 'regs' from
8039 'char *' to 'gdb_byte *'. Cast the return value of
8040 'bt_ctf_get_char_array' to 'gdb_byte *'.
8041
bd3f3b55
PA
80422013-04-19 Pedro Alves <palves@redhat.com>
8043
8044 * configure.ac (build_warnings): Replace -Wno-pointer-sign with
8045 -Wpointer-sign.
8046 * configure: Regenerate.
8047
c49e7f76
PA
80482013-04-19 Pedro Alves <palves@redhat.com>
8049
8050 * ser-tcp.c (net_read_prim): Cast second argument to recv to
8051 'void *'.
8052
12ff8552
PA
80532013-04-19 Pedro Alves <palves@redhat.com>
8054
8055 * monitor.c (monitor_write_memory, monitor_write_memory_bytes):
8056 Change type of 'myaddr' parameter to gdb_byte pointer.
8057 (monitor_write_memory_longlongs): Likewise. Cast 'myaddr' pointer
8058 to 'long long' pointer instead of to 'unsigned long long'.
8059 (monitor_write_memory_block, monitor_read_memory_single)
8060 (monitor_read_memory): Change type of 'myaddr' parameter to
8061 gdb_byte pointer.
8062
9c37696b
PA
80632013-04-19 Pedro Alves <palves@redhat.com>
8064
8065 * record.c (validate_history_size): Make parameter 'setting'
8066 unsigned.
8067
a398505b
PA
80682013-04-19 Pedro Alves <palves@redhat.com>
8069
8070 * ctf.c (ctf_write_uploaded_tsv, ctf_write_uploaded_tp): Add casts
8071 to 'gdb_byte *'.
8072
9f8afa72
PA
80732013-04-19 Pedro Alves <palves@redhat.com>
8074
8075 * cp-valprint.c (cp_print_class_member): Change type of 'fieldno'
8076 local to int.
8077
c714b426
PA
80782013-04-19 Pedro Alves <palves@redhat.com>
8079
8080 * ada-lang.c (print_it_exception): Add cast to gdb_byte *.
8081 * ada-tasks.c (read_fat_string_value): Likewise.
8082
507a579c
PA
80832013-04-19 Pedro Alves <palves@redhat.com>
8084
8085 * dwarf2-frame.c (execute_cfa_program): Make 'bytes_read' local
8086 unsigned. Pass 'tmp' to safe_read_uleb128 instead of the signed
8087 'offset', and adjust.
8088
f9d83a0b
PA
80892013-04-19 Pedro Alves <palves@redhat.com>
8090
8091 * dwarf2read.c (dwarf2_get_dwz_file): Add cast to const char *.
8092 (read_index_from_section): Add cast to 'char *'.
8093
745eb4fd
PA
80942013-04-19 Pedro Alves <palves@redhat.com>
8095
8096 * xcoffread.c (xcoff_initial_scan): Add cast to 'char *'.
8097
db5be46f
PA
80982013-04-19 Pedro Alves <palves@redhat.com>
8099
8100 * coff-pe-read.c (read_pe_exported_syms): Handle strings as char.
8101
0f928d68
PA
81022013-04-19 Pedro Alves <palves@redhat.com>
8103
8104 * record-full.c (record_full_get_bookmark): Change local 'ret'
8105 type to char * and add cast to gdb_byte *.
8106 (record_full_goto_bookmark): Handle 'bookmark' argument as a
8107 string.
8108 * reverse.c (goto_bookmark_command): Add casts to gdb_byte *.
8109
89f6d837
PA
81102013-04-19 Pedro Alves <palves@redhat.com>
8111
8112 * python/py-inferior.c (infpy_write_memory): Add cast to gdb_byte
8113 * python/py-prettyprint.c (print_string_repr): Change type of
8114 'output' local to char *. Add cast to gdb_byte * in
8115 LA_PRINT_STRING call.
8116 (print_children): Change type of 'output' local to char *.
8117 * python/py-value.c (valpy_string): Add cast to const char * in
8118 PyUnicode_Decode call.
8119
ce6ec7d8
PA
81202013-04-19 Pedro Alves <palves@redhat.com>
8121
8122 * remote-mips.c (mips_cksum): Rename 'data' parameter to 'datastr'
8123 and change its type to 'const char *'. Adjust.
8124 (mips_send_packet): Add cast to 'char *', and remove cast to
8125 'unsigned char *'.
8126 (mips_receive_packet): Remove cast to 'unsigned char *'.
8127 (mips_load_srec): Use bfd_byte.
8128 (pmon_makeb64, pmon_zeroset): Make 'chksum' parameter unsigned.
8129 (pmon_checkset): Make 'value' parameter unsigned.
8130
fda0389f
PA
81312013-04-19 Pedro Alves <palves@redhat.com>
8132
8133 * common/agent.c (agent_run_command): Add cast to gdb_byte *.
8134
bc20a4af
PA
81352013-04-19 Pedro Alves <palves@redhat.com>
8136
8137 * remote.c (remote_write_bytes_aux, compare_sections_command)
8138 (remote_read_qxfer)
8139 (remote_search_memory, remote_hostio_pwrite, remote_hostio_pread)
8140 (remote_hostio_readlink, remote_bfd_iovec_pread)
8141 (remote_set_trace_notes): Use gdb_byte when RSP buffer is used as
8142 binary buffer, and char when buffer is used as string.
8143 * tracepoint.c (encode_source_string, tfile_write_uploaded_tp)
8144 (trace_save, tfile_open, traceframe_walk_blocks)
8145 (tfile_fetch_registers): Likewise.
8146
c628b528
PA
81472013-04-19 Pedro Alves <palves@redhat.com>
8148
8149 * ser-base.c (ser_base_write): Change prototype -- take 'void *'
8150 buffer and size_t size. Adjust.
8151 * ser-base.h (ser_base_write): Adjust.
8152 * ser-go32.c (cnts): Change type to size_t.
8153 (dos_write): Change prototype -- take 'void *'
8154 buffer and size_t size. Adjust.
8155 (dos_info): Print elements of 'cnts' as unsigned long.
8156 * serial.c (serial_write): Likewise.
8157 * serial.h (serial_write): Adjust.
8158 (struct serial_ops) <write>: Change prototype -- take 'void *'
8159 buffer and size_t size. Adjust.
8160
51a5cd90
PA
81612013-04-19 Pedro Alves <palves@redhat.com>
8162
8163 * c-lang.c (evaluate_subexp_c): Cast result of obstack_base to
8164 gdb_byte *.
8165 * linux-tdep.c (linux_make_mappings_corefile_notes): Likewise.
8166
a9933661
PA
81672013-04-19 Pedro Alves <palves@redhat.com>
8168
8169 * alpha-tdep.c (alpha_extract_return_value): Use
8170 regcache_cooked_read_unsigned to read 'v0'.
8171
19afdd07
PA
81722013-04-19 Pedro Alves <palves@redhat.com>
8173
8174 * xtensa-tdep.c (execute_l32e, execute_s32e): Change type of
8175 parameters 'at', 'as' and 'offset' to uint32_t.
8176
96b32e50
PA
81772013-04-19 Pedro Alves <palves@redhat.com>
8178
8179 * aarch64-tdep.c (aarch64_analyze_prologue): Change type of local
8180 'is64' to signed 'int'.
8181
eb1bd1fb
PA
81822013-04-19 Pedro Alves <palves@redhat.com>
8183
8184 * s390-tdep.c (is_rs, is_rsy, is_rx, is_rxy): Change type of 'd2'
8185 parameter to int *.
8186
463920bf
PA
81872013-04-19 Pedro Alves <palves@redhat.com>
8188
8189 * ppc-linux-tdep.c (ppc_skip_trampoline_code): Change local
8190 'insnbuf' buffer type to unsigned int[].
8191
70242eb1
PA
81922013-04-19 Pedro Alves <palves@redhat.com>
8193
8194 * mips-tdep.c (mips_read_pc): Change local 'pc' type to LONGEST.
8195
9d1dd0e2
PA
81962013-04-19 Pedro Alves <palves@redhat.com>
8197
8198 * mep-tdep.c (mep_get_insn): Change 'insn' parameter type to
8199 unsigned long *.
8200
44096aee
PA
82012013-04-19 Pedro Alves <palves@redhat.com>
8202
8203 * alpha-tdep.c (heuristic_fence_post): Change type to int.
8204 (alpha_heuristic_proc_start): Adjust to check -1 instead of
8205 UINT_MAX.
8206 * mips-tdep.c (heuristic_fence_post): Change type to int.
8207 (heuristic_proc_start): Adjust to check -1 instead of UINT_MAX.
8208
e4286e57
PA
82092013-04-19 Pedro Alves <palves@redhat.com>
8210
8211 * cris-tdep.c (usr_cmd_cris_version): Make unsigned.
8212 (struct gdbarch_tdep) <cris_version>: Make unsigned.
8213 (cris_spec_reg_applicable, cris_gdbarch_init): Adjust locals.
8214
001f13d8
PA
82152013-04-19 Pedro Alves <palves@redhat.com>
8216
8217 * avr-tdep.c (avr_io_reg_read_command): New local 'bufstr'. Use
8218 it to get a string view of the byte buffer.
8219 * i386-cygwin-tdep.c (core_process_module_section): Change local 'buf'
8220 type to gdb_byte *. Adjust.
8221 * linux-tdep.c (linux_info_proc, linux_find_memory_regions_full):
8222 Change local to char *.
8223 * solib-darwin.c (find_program_interpreter): Change return type to
8224 char *. Adjust.
8225 (darwin_solib_get_all_image_info_addr_at_init): Adjust.
8226 * solib-dsbt.c (enable_break2): Change local 'buf' to char *.
8227 * solib-frv.c (enable_break2): Change local 'buf' to char *.
8228 * solib-spu.c (spu_current_sos): Add gdb_byte * cast.
8229 * solib-svr4.c (find_program_interpreter): Change return type to
8230 char *. Adjust.
8231 (enable_break): Change local 'interp_name' to char *.
8232 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
8233 * spu-tdep.c (spu_pseudo_register_read_spu): Add cast to 'char *'.
8234 (spu_pseudo_register_write_spu): Use char for string buffer.
8235 Adjust.
8236 (info_spu_event_command, info_spu_signal_command): Add casts to
8237 'char *'.
8238
948f8e3d
PA
82392013-04-19 Pedro Alves <palves@redhat.com>
8240
8241 * aarch64-tdep.c (aarch64_default_breakpoint): Change type to
8242 gdb_byte[].
8243 (aarch64_breakpoint_from_pc): Change return type to gdb_byte *.
8244 * ada-lang.c (ada_value_assign): Use gdb_byte.
8245 * alphanbsd-tdep.c (sigtramp_retcode): Change type to gdb_byte[].
8246 (alphanbsd_sigtramp_offset): Use gdb_byte.
8247 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint)
8248 (arm_linux_arm_be_breakpoint, eabi_linux_arm_le_breakpoint)
8249 (eabi_linux_arm_be_breakpoint, arm_linux_thumb_be_breakpoint)
8250 (arm_linux_thumb_le_breakpoint, arm_linux_thumb2_be_breakpoint)
8251 (arm_linux_thumb2_le_breakpoint): Change type to gdb_byte[].
8252 * arm-tdep.c (arm_stub_unwind_sniffer)
8253 (arm_displaced_init_closure): Use gdb_byte.
8254 (arm_default_arm_le_breakpoint, arm_default_arm_be_breakpoint)
8255 (arm_default_thumb_le_breakpoint)
8256 (arm_default_thumb_be_breakpoint): Change type to gdb_byte[].
8257 * arm-tdep.h (struct gdbarch_tdep) <arm_breakpoint,
8258 thumb_breakpoint, thumb2_breakpoint>: Change type to gdb_byte *.
8259 * arm-wince-tdep.c (arm_wince_le_breakpoint)
8260 (arm_wince_thumb_le_breakpoint): Change type to gdb_byte[].
8261 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint)
8262 (arm_nbsd_arm_be_breakpoint, arm_nbsd_thumb_le_breakpoint)
8263 (arm_nbsd_thumb_be_breakpoint): Change type to gdb_byte[].
8264 * armobsd-tdep.c (arm_obsd_thumb_le_breakpoint)
8265 (arm_obsd_thumb_be_breakpoint): Change type to gdb_byte[].
8266 * cris-tdep.c (push_stack_item, cris_push_dummy_call)
8267 (cris_store_return_value, cris_extract_return_value): Use
8268 gdb_byte.
8269 (constraint): Change type of parameter to char * from signed
8270 char*. Use gdb_byte.
8271 * dwarf2loc.c (read_pieced_value, write_pieced_value): Change type
8272 of local buffer to gdb_byte *.
8273 * dwarf2read.c (read_index_from_section): Use gdb_byte.
8274 (create_dwp_hash_table): Change type of locals to gdb_byte *.
8275 (add_address_entry): Change type of local buffer to gdb_byte[].
8276 * frv-tdep.c (frv_adjust_breakpoint_address, find_func_descr)
8277 (frv_push_dummy_call): Use gdb_byte.
8278 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code)
8279 (hppa_hpux_supply_ss_fpblock, hppa_hpux_supply_ss_wide)
8280 (hppa_hpux_supply_save_state): Use gdb_byte.
8281 * hppa-tdep.c (hppa32_push_dummy_call)
8282 (hppa64_convert_code_addr_to_fptr): Use gdb_byte.
8283 * ia64-tdep.c (extract_bit_field, replace_bit_field)
8284 (slotN_contents, replace_slotN_contents): Change type of parameter
8285 to gdb_byte *.
8286 (fetch_instruction, ia64_pseudo_register_write)
8287 (ia64_register_to_value, ia64_value_to_register)
8288 (ia64_extract_return_value, ia64_store_return_value)
8289 (ia64_push_dummy_call): Use gdb_byte.
8290 * m32c-tdep.c (m32c_return_value): Remove cast.
8291 * m68hc11-tdep.c (m68hc11_pseudo_register_write)
8292 (m68hc11_push_dummy_call, m68hc11_store_return_value): Use
8293 gdb_byte.
8294 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Use gdb_byte.
8295 * mn10300-tdep.c (mn10300_store_return_value)
8296 (mn10300_breakpoint_from_pc, mn10300_push_dummy_call): Use
8297 gdb_byte.
8298 * moxie-tdep.c (moxie_process_readu): Use gdb_byte.
8299 (moxie_process_record): Remove casts.
8300 * ppc-ravenscar-thread.c (supply_register_at_address)
8301 (ppc_ravenscar_generic_store_registers): Use gdb_byte.
8302 * ravenscar-thread.c (get_running_thread_id): Use gdb_byte.
8303 * remote-m32r-sdi.c (m32r_fetch_register): Use gdb_byte.
8304 * remote-mips.c (mips_xfer_memory): Use gdb_byte.
8305 * remote.c (compare_sections_command): Use gdb_byte.
8306 * score-tdep.c (score7_free_memblock): Change type of parameter to
8307 gdb_byte *.
8308 * sh-tdep.c (sh_justify_value_in_reg): Change return type to
8309 gdb_byte *. Use gdb_byte.
8310 (sh_push_dummy_call_fpu): Use gdb_byte.
8311 (sh_extract_return_value_nofpu, sh_extract_return_value_fpu)
8312 (sh_store_return_value_nofpu, sh_store_return_value_fpu)
8313 (sh_register_convert_to_virtual, sh_register_convert_to_raw):
8314 Change parameter type to 'gdb_byte *'. Use gdb_byte.
8315 (sh_pseudo_register_read, sh_pseudo_register_write): Use gdb_byte.
8316 * sh64-tdep.c (sh64_push_dummy_call): Use gdb_byte.
8317 (sh64_store_return_value, sh64_register_convert_to_virtual):
8318 Change parameter type to 'gdb_byte *'. Use gdb_byte.
8319 (sh64_pseudo_register_write): Use gdb_byte.
8320 * solib-darwin.c (darwin_current_sos): Add casts to 'gdb_byte *'.
8321 * solib-irix.c (fetch_lm_info): Likewise. Use gdb_byte for byte
8322 buffer.
8323 (irix_current_sos): Use gdb_byte.
8324 * solib-som.c (som_current_sos): Use gdb_byte.
8325 * sparc-ravenscar-thread.c (supply_register_at_address)
8326 (sparc_ravenscar_generic_store_registers): Use gdb_byte.
8327 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
8328 * spu-tdep.c (spu_get_overlay_table): Use gdb_byte.
8329 * tic6x-tdep.c (tic6x_breakpoint_from_pc): Change return type to
8330 'gdb_byte *'.
8331 * tic6x-tdep.h (struct gdbarch_tdep) <breakpoint>: Change type to
8332 'gdb_byte *'.
8333 * tracepoint.c (tfile_fetch_registers): Use gdb_byte.
8334 * xstormy16-tdep.c (xstormy16_extract_return_value)
8335 (xstormy16_store_return_value): Change parameter type to
8336 'gdb_byte *'. Adjust.
8337 (xstormy16_push_dummy_call): Use gdb_byte.
8338 * xtensa-tdep.c (xtensa_scan_prologue, call0_ret)
8339 (call0_analyze_prologue, execute_code): Use gdb_byte.
8340
433730c9
PA
83412013-04-19 Vladimir Kargov <kargov@gmail.com>
8342 Pedro Alves <palves@redhat.com>
8343
8344 * i387-tdep.c (i387_print_float_info): Use gdb_byte for pointer to
8345 value contents.
8346
ac9ec31b
DE
83472013-04-17 Doug Evans <dje@google.com>
8348
8349 * dwarf2read.c (struct signatured_type): New member type.
8350 (struct attribute): Replace member signatured_type with signature.
8351 (DW_SIGNATURE): Replaces DW_SIGNATURE_TYPE.
8352 (read_call_site_scope): Call follow_die_ref instead of
8353 follow_die_ref_or_sig.
8354 (read_structure_type): Rewrite handling of signatured types.
8355 (read_enumeration_type): Ditto.
8356 (read_attribute_value): Update.
8357 (build_error_marker_type): New function.
8358 (lookup_die_type): Add assert. Rewrite handling of signatured types.
8359 Don't call error for bad types, just build an error marker type.
8360 (dump_die_shallow): Update.
8361 (follow_die_sig_1): Renamed from follow_die_sig.
8362 Don't call error for bad types, instead return NULL.
8363 (follow_die_sig): New function.
8364 (get_signatured_type, get_DW_AT_signature_type): New functions.
8365
e546e8bb
YZ
83662013-04-17 Yufeng Zhang <yufeng.zhang@arm.com>
8367
8368 * aarch64-tdep.c (aarch64_write_pc): Removed.
543cdd95
JB
8369 (aarch64_gdbarch_init): Remove set_gdbarch_write_pc of the above
8370 function.
e546e8bb 8371
ab116149
YQ
83722013-04-17 Yao Qi <yao@codesourcery.com>
8373
8374 * top.c (print_gdb_configuration): Print configure-time
8375 parameter on using libbabeltrace or not.
8376
488a42b8
PA
83772013-04-16 Pedro Alves <palves@redhat.com>
8378
8379 * copyright.py (EXCLUDE_LIST): Add gdb/common/glibc_thread_db.h.
8380
f5fb825b
PA
83812013-04-16 Pedro Alves <palves@redhat.com>
8382
85d494ea 8383 * common/glibc_thread_db.h: Update from upstream glibc
f5fb825b
PA
8384 (git 568035b7874a099087b77f7bba3e36a1173787b0).
8385
e1154999
PA
83862013-04-16 Pedro Alves <palves@redhat.com>
8387
8388 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: Factor out to ...
8389 * common/glibc_thread_db.h: ... this new file ...
8390 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: ... and include it.
8391
e3b50a7f
PA
83922013-04-16 Will Newton <will.newton@gmail.com>
8393 Pedro Alves <palves@redhat.com>
8394
8395 PR build/11881
8396
8397 * common/gdb_thread_db.h (LIBTHREAD_DB_SO)
8398 (LIBTHREAD_DB_SEARCH_PATH): Move outside of #ifdef
8399 HAVE_THREAD_DB_H.
8400
1c2e4450
PA
84012013-04-16 Pedro Alves <palves@redhat.com>
8402 Eli Zaretskii <eliz@gnu.org>
8403
8404 * NEWS: Mention "set foo unlimited".
8405
4031ecc5
DE
84062013-04-15 Doug Evans <dje@google.com>
8407
19c3d4c9
DE
8408 * dwarf2read.c (struct dwo_file): Replace member "cus" with "cu".
8409 (struct create_dwo_cu_data): Renamed from create_dwo_info_table_data.
8410 (create_dwo_cu_reader): Renamed from
8411 create_dwo_debug_info_hash_table_reader.
8412 (create_dwo_cu): Renamed from create_dwo_debug_info_hash_table.
8413 Remove support for multiple CUs in a DWO file.
8414 (open_and_init_dwo_file, lookup_dwo_cutu): Update.
8415
4031ecc5
DE
8416 * dwarf2read.c (create_debug_types_hash_table): Use hex_string
8417 instead of phex.
8418 (lookup_dwo_unit, create_dwo_debug_info_hash_table_reader): Ditto.
8419 (create_dwo_in_dwp): Ditto.
8420
b340913d
TT
84212013-04-15 Tom Tromey <tromey@redhat.com>
8422
8423 * NEWS: Move recent entries into "since 7.6" section.
8424
cc16e6c9
TT
84252013-04-15 Tom Tromey <tromey@redhat.com>
8426
8427 PR c++/13588:
8428 * NEWS: Update.
8429 * break-catch-throw.c (struct exception_catchpoint)
8430 <exception_rx, pattern>: New fields.
8431 (fetch_probe_arguments, dtor_exception_catchpoint)
8432 (check_status_exception_catchpoint)
8433 (print_one_detail_exception_catchpoint): New functions.
8434 (handle_gnu_v3_exceptions): Add "except_rx" argument.
8435 Compile regular expression if needed.
8436 (extract_exception_regexp): New function.
8437 (catch_exception_command_1): Use extract_exception_regexp.
8438 (compute_exception): Use fetch_probe_arguments.
8439 (initialize_throw_catchpoint_ops): Set dtor, print_one_detail,
8440 and check_status fields.
8441 * cp-abi.c (cplus_typename_from_type_info): New function.
8442 * cp-abi.h (cplus_typename_from_type_info): Declare.
8443 (struct cp_abi_ops) <get_typename_from_type_info>: New field.
8444 * gdb_regex.h (compile_rx_or_error): Declare.
8445 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info): Update
8446 comment.
8447 (init_gnuv3_ops): Set get_type_from_type_info field.
8448 * probe.c (compile_rx_or_error): Move...
8449 * utils.c (compile_rx_or_error): ... here.
8450
72f1fe8a
TT
84512013-04-15 Tom Tromey <tromey@redhat.com>
8452
8453 PR c++/15176:
8454 * NEWS: Update.
8455 * break-catch-throw.c (compute_exception): New function.
8456 (exception_funcs): New global.
8457 (_initialize_break_catch_throw): Create $_exception.
8458 * cp-abi.c (cplus_type_from_type_info): New function.
8459 * cp-abi.h (cplus_type_from_type_info): Declare.
8460 (struct cp_abi_ops) <get_type_from_type_info>: New field.
8461 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info)
8462 (gnuv3_get_type_from_type_info): New functions.
8463 (init_gnuv3_ops): Set get_type_from_type_info ABI field.
8464
fc4746a2
TT
84652013-04-15 Tom Tromey <tromey@redhat.com>
8466
8467 * break-catch-throw.c (struct exception_names): New.
8468 (exception_functions): Change type.
8469 (re_set_exception_catchpoint): Look for SDT probes.
8470
15a73f56
TT
84712013-04-15 Tom Tromey <tromey@redhat.com>
8472
8473 PR c++/10119:
8474 * break-catch-throw.c (exception_functions): New global.
8475 (gnu_v3_exception_catchpoint_ops): Move earlier.
8476 (struct exception_catchpoint): New.
8477 (classify_exception_breakpoint): Rewrite.
8478 (re_set_exception_catchpoint): New function.
8479 (handle_gnu_v3_exceptions): Return void. Use init_catchpoint.
8480 Allocate a struct exception_catchpoint.
8481 (catch_exception_command_1): Update.
8482 (initialize_throw_catchpoint_ops): Set 're_set' method.
8483
916703c0
TT
84842013-04-15 Tom Tromey <tromey@redhat.com>
8485
8486 * Makefile.in (SFILES): Add break-catch-throw.c
8487 (COMMON_OBS): Add break-catch-throw.o.
8488 * break-catch-throw.c: New file.
8489 * breakpoint.c: Move exception-catching code to new file.
8490 (ep_parse_optional_if_clause): No longer static.
8491 * breakpoint.h (ep_parse_optional_if_clause): Declare.
8492
6e72ca20
TT
84932013-04-15 Tom Tromey <tromey@redhat.com>
8494
8495 PR c++/9065:
8496 * NEWS: Update.
8497 * breakpoint.c (watchpoint_exp_is_const): Add OP_TYPEID.
8498 * c-exp.y (TYPEID): New token.
8499 (exp): Add new TYPEID productions.
8500 (ident_tokens): Add "typeid".
8501 * cp-abi.c (cplus_typeid, cplus_typeid_type): New functions.
8502 * cp-abi.h (cplus_typeid, cplus_typeid_type): Declare.
8503 (struct cp_abi_ops) <get_typeid, get_typeid_type>: New fields.
8504 * eval.c (evaluate_subexp_standard) <OP_TYPEID>: New case.
8505 * expprint.c (dump_subexp_body_standard) <OP_TYPEID>: New
8506 case.
8507 * gnu-v3-abi.c (std_type_info_gdbarch_data): New global.
8508 (build_std_type_info_type, gnuv3_get_typeid_type)
8509 (gnuv3_get_typeid): New functions.
8510 (init_gnuv3_ops): Initialize std_type_info_gdbarch_data. Set
8511 new fields on ABI object.
8512 * parse.c (operator_length_standard) <OP_TYPEID>: New case.
8513 * std-operator.def (OP_TYPEID): New.
8514
715c6909
TT
85152013-04-15 Tom Tromey <tromey@redhat.com>
8516
8517 * elfread.c (elf_symtab_read): Install versioned symbol under
8518 unversioned name as well.
8519
8de20a37
TT
85202013-04-15 Tom Tromey <tromey@redhat.com>
8521
8522 PR c++/11990:
8523 * c-lang.c (cplus_language_defn): Use gdb_demangle.
8524 * c-typeprint.c (c_type_print_base): Use gdb_demangle.
8525 * cp-support.c (mangled_name_to_comp): Use gdb_demangle.
8526 (gdb_demangle): New function.
8527 * cp-support.h (gdb_demangle): Declare.
8528 * dwarf2read.c (dwarf2_physname, fixup_partial_die)
8529 (dwarf2_name): Use gdb_demangle.
8530 * gdbtypes.c (check_stub_method): Use gdb_demangle.
8531 * gnu-v3-abi.c (gnuv3_rtti_type): Strip @plt and version
8532 suffixes from name.
8533 (gnuv3_print_method_ptr): Use gdb_demangle.
8534 * jv-lang.c (java_demangle): Use gdb_demangle.
8535 * jv-typeprint.c (java_type_print_base): Use gdb_demangle.
8536 * language.c (unk_lang_demangle): Use gdb_demangle.
8537 * symtab.c (symbol_find_demangled_name)
8538 (demangle_for_lookup): Use gdb_demangle.
8539
591f19e8
TT
85402013-04-15 Tom Tromey <tromey@redhat.com>
8541
8542 PR c++/12824:
8543 * NEWS: Update.
8544 * breakpoint.c (enum exception_event_kind) <EX_EVENT_RETHROW>:
8545 New constant.
8546 (classify_exception_breakpoint): New function.
8547 (print_it_exception_catchpoint, print_one_exception_catchpoint)
8548 (print_mention_exception_catchpoint)
8549 (print_recreate_exception_catchpoint, handle_gnu_v3_exceptions)
8550 (catch_exception_command_1): Handle "rethrow" catchpoint.
8551 (catch_rethrow_command): New function.
8552 (_initialize_breakpoint): Add "catch rethrow" command.
8553
4d40cad2
PM
85542013-04-15 Pierre Muller <muller@sourceware.org>
8555
8556 * contrib/ari/gdb_ari.sh (write_pc rule): Do not consider
8557 set_gdbarch_write_pc as deprecated anymore.
8558
30bcb456
JB
85592013-04-15 Joel Brobecker <brobecker@adacore.com>
8560
8561 * spu-tdep.c (spu_write_pc): Add empty line after local variable
8562 declarations.
8563
da9160e4
YQ
85642013-04-13 Yao Qi <yao@codesourcery.com>
8565
8566 * ctf.c (_initialize_ctf): Include "completer.h".
8567 Call add_target_with_completer instead of add_target.
8568
39ed5604
JK
85692013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
8570
8571 Fix GDB regression related to PR binutils/14813.
8572 * jit.c (mem_bfd_iovec_close): Return 0 for success.
8573 * minidebug.c (lzma_close): Add return value comment.
8574 * remote.c (remote_bfd_iovec_close): Return 0 for success.
8575 * solib-spu.c (spu_bfd_iovec_close): Likewise.
8576 * spu-linux-nat.c (spu_bfd_iovec_close): Likewise.
8577
85782013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
49369217
JK
8579
8580 * config.in: Regenerate.
8581
d521ce57
TT
85822013-04-12 Tom Tromey <tromey@redhat.com>
8583
8584 * dwarf2-frame.c (struct comp_unit) <dwarf_frame_buffer>: Now
8585 const.
8586 * dwarf2read.c (struct dwarf2_section_info) <buffer>: Now const.
8587 (struct die_reader_specs) <buffer>: Likewise.
8588 (die_reader_func_ftype): Make 'info_ptr' const.
8589 (struct line_header) <include_dirs, statement_program_start,
8590 statement_program_end>: Now const.
8591 (struct file_entry) <name>: Likewise.
8592 (struct partial_die_info) <sibling>: Likewise.
8593 (struct dwarf_block) <data>: Likewise.
8594 (dwarf2_read_section): Remove cast.
8595 (dwarf2_get_section_info): Make 'bufp' const.
8596 (read_index_from_section): Constify.
8597 (dw2_get_file_names_reader): Make 'info_ptr' const.
8598 (dw2_get_primary_filename_reader): Likewise.
8599 (read_comp_unit_head): Make 'info_ptr' and return type const.
8600 (read_and_check_comp_unit_head, read_and_check_type_unit_head):
8601 Likewise.
8602 (read_abbrev_offset): Constify.
8603 (dwarf2_create_include_psymtab): Make 'name' const.
8604 (create_debug_types_hash_table): Update.
8605 (read_cutu_die_from_dwo): Make 'result_info_ptr' const.
8606 (init_cutu_and_read_dies, init_cutu_and_read_dies_no_follow):
8607 Constify.
8608 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader)
8609 (load_partial_comp_unit_reader): Make 'info_ptr' const.
8610 (read_comp_units_from_section): Constify.
8611 (peek_abbrev_code, peek_die_abbrev, skip_children, skip_one_die)
8612 (locate_pdi_sibling, load_full_comp_unit_reader): Make 'info_ptr'
8613 const.
8614 (dwarf2_compute_name, setup_type_unit_groups): Constify.
8615 (create_dwo_debug_info_hash_table): Make 'info_ptr' const.
8616 (create_dwp_hash_table, dwarf2_ranges_read)
8617 (dwarf2_record_block_ranges): Constify.
8618 (read_die_and_children, read_die_and_siblings_1)
8619 (read_die_and_siblings): Make 'info_ptr' and 'new_info_ptr'
8620 const.
8621 (read_full_die_1, read_full_die): Make 'info_ptr' const.
8622 (abbrev_table_read_table): Constify.
8623 (load_partial_dies): Make 'info_ptr' const.
8624 (read_partial_die, read_attribute_value, read_attribute): Make
8625 'info_ptr' and return type const.
8626 (read_address, read_initial_length)
8627 (read_checked_initial_length_and_offset, read_offset)
8628 (read_offset_1, read_n_bytes, read_direct_string): Make 'buf'
8629 const.
8630 (read_direct_string): Make 'buf' and return type const.
8631 (read_indirect_string_at_offset, read_indirect_string_from_dwz)
8632 (read_indirect_string): Make return type const.
8633 (read_unsigned_leb128, read_signed_leb128): Make 'buf' const.
8634 (read_addr_index_from_leb128, dwarf2_read_addr_index_reader): Make
8635 'info_ptr' const.
8636 (read_str_index): Make return type const.
8637 (add_include_dir): Make 'include_dir' const.
8638 (add_file_name): Make 'name' const.
8639 (dwarf_decode_line_header): Constify.
8640 (psymtab_include_file_name): Make return type const.
8641 (dwarf_decode_lines_1, dwarf_decode_lines): Constify.
8642 (dwarf2_start_subfile): Make 'filename' const.
8643 (dwarf2_const_value_attr): Make 'bytes' const.
8644 (read_signatured_type_reader): Make 'info_ptr' const.
8645 (decode_locdesc): Constify.
8646 (skip_form_bytes): Make 'bytes', 'buffer_end', and return type
8647 const.
8648 (skip_unknown_opcode): Make 'opcode_definitions', 'mac_ptr',
8649 'mac_end', and return type const.
8650 (dwarf_parse_macro_header): Make 'mac_ptr' and return type const.
8651 (dwarf_decode_macro_bytes): Make 'mac_ptr', 'mac_end', and return
8652 type const.
8653 (per_cu_header_read_in): Constify.
8654 * symfile.h (dwarf2_get_section_info): Update.
8655
d47a1bc1
TT
86562013-04-12 Tom Tromey <tromey@redhat.com>
8657
8658 * symtab.h (struct general_symbol_info) <value.bytes>: Make const.
8659
6eaaf48b
EZ
86602013-04-12 Eli Zaretskii <eliz@gnu.org>
8661
fc4c25bf 8662 * NEWS: Mention "show configuration", --configuration.
6eaaf48b
EZ
8663 * top.c (print_gdb_configuration): New function, displays the
8664 details about GDB configure-time parameters.
8665 (print_gdb_version): Mention "show configuration".
6eaaf48b
EZ
8666 * cli/cli-cmds.c (show_configuration): New function.
8667 (_initialize_cli_cmds): Add the "show configuration" command.
6eaaf48b
EZ
8668 * main.c (captured_main) <print_configuration>: New static var.
8669 <long_options>: Use it.
8670 If --configuration was given, call print_gdb_configuration.
8671
b292c783
JK
86722013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8673 Pedro Alves <palves@redhat.com>
8674
8675 * Makefile.in (HAVE_NATIVE_GCORE_TARGET): New.
8676 (generated_files): Add gcore.
8677 (install-only, uninstall): Add gcore if HAVE_NATIVE_GCORE_TARGET or
8678 HAVE_NATIVE_GCORE_HOST.
8679 (gcore): New.
8680 * NEWS (Changes since GDB 7.6): Mention newly installed gcore.
8681 * config/alpha/alpha-osf3.mh, config/i386/fbsd.mh,
8682 config/i386/fbsd64.mh, config/i386/i386gnu.mh, config/i386/i386sol2.mh,
8683 config/i386/sol2-64.mh, config/mips/irix5.mh, config/mips/irix6.mh,
8684 config/powerpc/fbsd.mh, config/sparc/fbsd.mh, config/sparc/sol2.mh:
8685 Add HAVE_NATIVE_GCORE_HOST.
8686 * configure: Regenerate.
8687 * configure.ac (HAVE_NATIVE_GCORE_TARGET): New, set it, AC_SUBST it.
8688 New AC_SUBST fir GDB_TRANSFORM_NAME and GCORE_TRANSFORM_NAME. New
8689 AC_CONFIG_FILES for gcore.
8690 * configure.tgt: Add gdb_have_gcore to the initial comment. Set
8691 gdb_have_gcore.
8692 * gdb_gcore.sh: Rename to ...
8693 * gcore.in: ... here. Remove gcore.sh comment. Use GDB_TRANSFORM_NAME
8694 and GCORE_TRANSFORM_NAME substitutions.
8695
c96b3c4f
JK
8696 Fix parsing tabs in ${gdb_target_obs}.
8697 * configure.tgt (gdb_have_gcore): Replace case with for and if.
8698
d6cb50a2
JK
86992013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8700
8701 * remote.c (unpush_and_perror): Add output message final dot.
8702
cf2cb5ec
YQ
87032013-04-11 Yao Qi <yao@codesourcery.com>
8704
8705 * tracepoint.c (tfile_interp_line): Fit parameters line and
8706 utpp in one line.
8707
07293be4
JB
87082013-04-10 Joel Brobecker <brobecker@adacore.com>
8709
8710 * solib.c (solib_map_sections): Remove code overwriting
8711 SO->SO_NAME with the bfd's filename.
8712
f81d1120
PA
87132013-04-10 Pedro Alves <palves@redhat.com>
8714
8715 * cli/cli-decode.c (integer_unlimited_completer): New function.
8716 (add_setshow_integer_cmd, add_setshow_uinteger_cmd)
8717 (add_setshow_zuinteger_unlimited_cmd): Install the "unlimited"
8718 completer.
8719 * cli/cli-setshow.c: Include "cli/cli-utils.h".
8720 (is_unlimited_literal): New function.
8721 (do_set_command): Handle literal "unlimited" arguments.
8722 * frame.c (_initialize_frame) <set backtrace limit>: Document
8723 "unlimited".
8724 * printcmd.c (_initialize_printcmd) <set print
8725 max-symbolic-offset>: Add help text.
8726 * record-full.c (_initialize_record_full) <set record full
8727 insn-number-max>: Likewise.
8728 * record.c (_initialize_record) <set record
8729 instruction-history-size, set record function-call-history-size>:
8730 Add help text.
8731 * ser-tcp.c (_initialize_ser_tcp) <set tcp connect-timeout>: Add
8732 help text.
8733 * tracepoint.c (_initialize_tracepoint) <set trace-buffer-size>:
8734 Likewise.
8735 * source.c (_initialize_source) <set listsize>: Add help text.
8736 * utils.c (initialize_utils) <set height, set width>: Likewise.
8737 <set pagination>: Mention "set height unlimited".
8738 * valprint.c (_initialize_valprint) <set print elements, set print
8739 repeats>: Document "unlimited".
8740
2f9d54cf
PA
87412013-04-10 Pedro Alves <palves@redhat.com>
8742
8743 * cli/cli-cmds.c (quit_command): Call query_if_trace_running
8744 instead of disconnect_tracing.
8745 * infcmd.c (detach_command, disconnect_command): Call
8746 query_if_trace_running. Adjust.
8747 * top.c: Include "tracepoint.h".
8748 (quit_target): Delete. Contents moved ...
8749 (quit_force): ... here. Wrap each stage of teardown in
8750 TRY_CATCH. Call disconnect_tracing before detaching.
8751
393fd4c3
YQ
87522013-04-10 Hui Zhu <hui@codesourcery.com>
8753 Yao Qi <yao@codesourcery.com>
8754
8755 * configure.ac: Check libbabeltrace is installed.
8756 * config.in: Regenerate.
8757 * configure: Regenerate.
8758 * Makefile.in (LIBBABELTRACE): New.
8759 (CLIBS): Add LIBBABELTRACE.
8760 * ctf.c: Include "exec.h".
8761 (CTF_EVENT_ID_STATUS, CTF_EVENT_ID_TSV_DEF): New macros.
8762 (CTF_EVENT_ID_TP_DEF, ctf_save_write_int32): New macros.
8763 (ctf_save_metadata_header): Define new type aliases in
8764 metadata.
8765 (ctf_write_header): Define event type "tsv_def" and "tp_def"
8766 in metadata. Start a new faked packet for trace status.
8767 (ctf_write_status): Write trace status to CTF.
8768 (ctf_write_uploaded_tsv): Write TSV to CTF.
8769 (ctf_write_uploaded_tp): Write tracepoint definition to CTF.
8770 (ctf_write_definition_end): End the faked packet.
8771
8772 (ctx, ctf_iter, trace_dirname): New.
8773 (start_pos): New variable.
8774 (ctf_destroy, ctf_open_dir, ctf_open): New.
8775 (SET_INT32_FIELD, SET_ARRAY_FIELD, SET_STRING_FIELD): New
8776 macros.
8777 (ctf_read_tsv, ctf_read_tp, ctf_close, ctf_files_info): New.
8778 (ctf_fetch_registers, ctf_xfer_partial): New.
8779 (ctf_get_trace_state_variable_value): New.
8780 (ctf_get_tpnum_from_frame_event): New.
8781 (ctf_get_traceframe_address): New.
8782 (ctf_trace_find, ctf_has_stack): New.
8783 (ctf_has_registers, ctf_traceframe_info, init_ctf_ops): New.
8784 (ctf_get_trace_status, ctf_read_status): New.
8785 (_initialize_ctf): New.
8786 * tracepoint.c (get_tracepoint_number): New
8787 (get_uploaded_tsv): Remove 'static'.
5f8e0b8f 8788 (struct traceframe_info, trace_regblock_size): Move it to ...
393fd4c3
YQ
8789 * tracepoint.h: ... here.
8790 (get_tracepoint_number): Declare it.
8791 (get_uploaded_tsv): Declare it.
8792
8793 * NEWS: Mention new configure option.
8794
5c2b4418
HZ
87952013-04-10 Pedro Alves <palves@redhat.com>
8796 Hui Zhu <hui@codesourcery.com>
8797
8798 * breakpoint.c (dprintf_re_set): New.
8799 (initialize_breakpoint_ops): Set dprintf_breakpoint_ops re_set
8800 to dprintf_re_set.
8801
a5c66735
JB
88022013-04-09 Joel Brobecker <brobecker@adacore.com>
8803
8804 * configure.tgt (gdb_target_obs) <powerpc-*-aix* | rs6000-*-*>:
8805 Remove solib-svr4.o from the list.
8806
9e77999c
JB
88072013-04-09 Joel Brobecker <brobecker@adacore.com>
8808
8809 * varobj.c (update_dynamic_varobj_children) [!HAVE_PYTHON]:
8810 Use gdb_assert_not_reached instead of invalid boolean expression.
8811
1927e618
PA
88122013-04-09 Pedro Alves <palves@redhat.com>
8813
8814 * remote.c (unpush_and_perror): New function.
8815 (readchar, remote_serial_write): Use it.
8816
10782d74
MM
88172013-04-09 Markus Metzger <markus.t.metzger@intel.com>
8818
8819 * NEWS: Mention new btrace RSP packets.
8820
4c8429ef
TT
88212013-04-08 Tom Tromey <tromey@redhat.com>
8822
8823 * symmisc.c (dump_msymbols): Cast fprintf_filtered argument to
8824 long.
8825
8625fc1b
TT
88262013-04-08 Tom Tromey <tromey@redhat.com>
8827
8828 * maint.c (print_bfd_section_info): Print the section index.
8829 * symmisc.c (dump_msymbols): Print the section index.
8830
e27d198c
TT
88312013-04-08 Tom Tromey <tromey@redhat.com>
8832
8833 PR symtab/8424:
8834 * blockframe.c (find_pc_partial_function_gnu_ifunc): Check
8835 SYMBOL_SECTION, not SYMBOL_OBJ_SECTION.
8836 * breakpoint.c (resolve_sal_pc): Update.
8837 * elfread.c (elf_gnu_ifunc_record_cache): Update.
8838 * findvar.c (struct minsym_lookup_data) <objfile>: New field.
8839 (minsym_lookup_iterator_cb): Use it.
8840 (default_read_var_value): Update.
8841 * hppa-hpux-tdep.c (hppa64_hpux_in_solib_call_trampoline):
8842 Update.
8843 * infcmd.c (jump_command): Update.
8844 * linespec.c (minsym_found): Update.
8845 * maint.c (maintenance_translate_address): Update.
8846 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Update.
8847 (prim_record_minimal_symbol_full): Don't set SYMBOL_OBJ_SECTION.
8848 * parse.c (write_exp_msymbol): Update.
8849 * printcmd.c (address_info): Update.
8850 * psymtab.c (find_pc_sect_psymbol): Update.
8851 (fixup_psymbol_section): Check SYMBOL_SECTION, not
8852 SYMBOL_OBJ_SECTION.
8853 (add_psymbol_to_bcache): Correctly initialize SYMBOL_SECTION.
8854 Don't initialize SYMBOL_OBJ_SECTION.
8855 * spu-tdep.c (spu_catch_start): Update.
8856 * stabsread.c (define_symbol): Don't set SYMBOL_SECTION.
8857 * symmisc.c (dump_msymbols, print_symbol): Update.
8858 * symtab.c (fixup_section): Don't set 'obj_section'. Change
8859 how fallback section is computed.
8860 (fixup_symbol_section): Update.
8861 (find_pc_sect_symtab, find_function_start_sal, skip_prologue_sal):
8862 Update.
8863 (allocate_symbol, initialize_symbol, allocate_template_symbol):
8864 Initialize SYMBOL_SECTION.
8865 * symtab.h (struct general_symbol_info) <section>: Update comment.
8866 <obj_section>: Remove.
8867 (SYMBOL_OBJ_SECTION): Add 'objfile' argument. Rewrite.
8868 (SYMBOL_OBJFILE): New macro.
8869
e6dc44a8
TT
88702013-04-08 Tom Tromey <tromey@redhat.com>
8871
8872 * coffread.c (record_minimal_symbol): Update.
8873 * dbxread.c (record_minimal_symbol): Update.
8874 * elfread.c (record_minimal_symbol): Update.
8875 * machoread.c (macho_symtab_add_minsym): Update.
8876 * mdebugread.c (record_minimal_symbol, parse_partial_symbols):
8877 Update.
8878 * minsyms.c (prim_record_minimal_symbol): Update.
8879 (prim_record_minimal_symbol_full): Remove 'bfd_section'
8880 argument.
8881 (prim_record_minimal_symbol_and_info): Likewise.
8882 * minsyms.h (prim_record_minimal_symbol_full)
8883 (prim_record_minimal_symbol_and_info): Update.
8884 * symtab.c (allocate_symbol, initialize_symbol)
8885 (allocate_template_symbol): Initialize SYMBOL_SECTION.
8886 * xcoffread.c (record_minimal_symbol, scan_xcoff_symtab):
8887 Update.
8888
36192a8d
TT
88892013-04-08 Tom Tromey <tromey@redhat.com>
8890
8891 PR symtab/8423:
8892 * solib-som.c (som_solib_section_offsets): Use BFD section
8893 indices. Set offsets for all sections.
8894 * somread.c (som_symtab_read): Compute BFD section for
8895 symbol. Use prim_record_minimal_symbol_and_info.
8896 (som_symfile_read): Fix comment.
8897 (struct find_section_offset_arg): New.
8898 (find_section_offset, set_section_index): New functions.
8899 (som_symfile_offsets): Use set_section_index to compute
8900 section indices.
8901
65cf3563
TT
89022013-04-08 Tom Tromey <tromey@redhat.com>
8903
8904 * coffread.c (cs_to_section): Use gdb_bfd_section_index.
8905 * elfread.c (record_minimal_symbol, elf_symtab_read): Use
8906 gdb_bfd_section_index.
8907 * gdb_bfd.c (gdb_bfd_section_index, gdb_bfd_count_sections):
8908 New functions.
8909 * gdb_bfd.h (gdb_bfd_section_index, gdb_bfd_count_sections):
8910 Declare.
8911 * machoread.c (macho_symtab_add_minsym, macho_symfile_offsets):
8912 Update.
8913 * objfiles.c (add_to_objfile_sections_full): New function.
8914 (add_to_objfile_sections): Use it.
8915 (build_section_table): Rewrite.
8916 (objfile_relocate1): Use gdb_bfd_section_index. Update.
8917 * objfiles.h (obj_section_offset): Use gdb_bfd_section_index.
8918 (struct objfile) <sections>: Update comment.
8919 (ALL_OBJFILE_OSECTIONS): Skip sections where the_bfd_section
8920 is NULL.
8921 (ALL_OBJSECTIONS): Use it.
8922 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
8923 * solib-frv.c (frv_relocate_main_executable): Update.
8924 * solib-target.c (solib_target_relocate_section_addresses):
8925 Use gdb_bfd_section_index.
8926 * symfile.c (build_section_addr_info_from_section_table):
8927 Use gdb_bfd_section_index.
8928 (build_section_addr_info_from_bfd, place_section): Likewise.
8929 * symtab.c (fixup_section): Update.
8930 * xcoffread.c (find_targ_sec): Use gdb_bfd_section_index.
8931
7cbd4a93
TT
89322013-04-08 Tom Tromey <tromey@redhat.com>
8933
8934 * minsyms.h (struct bound_minimal_symbol): New.
8935 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
8936 Remove objfile argument.
8937 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
8938 Return bound_minimal_symbol.
8939 * minsyms.c (lookup_minimal_symbol_by_pc_1)
8940 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
8941 Return bound_minimal_symbol.
8942 (in_gnu_ifunc_stub): Update.
8943 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
8944 Remove 'objfile_p' argument.
8945 (lookup_solib_trampoline_symbol_by_pc): Update.
8946 * ada-tasks.c, amd64-windows-tdep.c, arm-tdep.c,
8947 arm-wince-tdep.c, block.c, blockframe.c, breakpoint.c, btrace.c,
8948 c-valprint.c, dwarf2loc.c, elfread.c, frame.c, frv-tdep.c,
8949 glibc-tdep.c, gnu-v2-abi.c, gnu-v3-abi.c, hppa-hpux-tdep.c,
8950 i386-tdep.c, ia64-tdep.c, infcall.c, infcmd.c, jit.c,
8951 linux-fork.c, m32c-tdep.c, m68hc11-tdep.c, maint.c,
8952 mips-tdep.c, p-valprint.c, parse.c, ppc-linux-tdep.c,
8953 ppc-sysv-tdep.c, printcmd.c, rs6000-tdep.c, sh64-tdep.c,
8954 stack.c, symtab.c, tui/tui-disasm.c: Update.
8955
f85f34ed
TT
89562013-04-08 Tom Tromey <tromey@redhat.com>
8957
8958 * ada-lang.c (ada_decode_symbol): Check and set 'ada_mangled'.
8959 Use symbol's obstack, not an objfile.
8960 * coffread.c (process_coff_symbol): Update.
8961 * dwarf2read.c (fixup_go_packaging, new_symbol_full): Update.
8962 * jv-lang.c (add_class_symbol): Update.
8963 * mdebugread.c (new_symbol): Update.
8964 * minsyms.c (prim_record_minimal_symbol_full)
8965 (terminate_minimal_symbol_table): Update.
8966 * psymtab.c (add_psymbol_to_bcache): Clear entire symbol. Update.
8967 * stabsread.c (define_symbol, read_enum_type): Update.
8968 * symtab.c (symbol_set_demangled_name, symbol_get_demangled_name):
8969 Handle Ada specially.
8970 (symbol_set_language): Add 'obstack' argument.
8971 (symbol_set_names): Update.
8972 (symbol_natural_name, symbol_demangled_name): Always use
8973 ada_decode_symbol.
8974 * symtab.h (struct general_symbol_info)
8975 <language_specific::obstack>: New field.
8976 <ada_mangled>: New field.
8977 (SYMBOL_SET_LANGUAGE): Add 'obstack' argument.
8978 (symbol_set_language): Update.
8979
ccde22c0
TT
89802013-04-08 Tom Tromey <tromey@redhat.com>
8981
8982 * symtab.c (symbol_init_cplus_specific, symbol_set_demangled_name):
8983 Take an obstack, not an objfile.
8984 (symbol_set_names): Update.
8985 * symtab.h (symbol_set_demangled_name): Update.
8986
e623cf5d
TT
89872013-04-08 Tom Tromey <tromey@redhat.com>
8988
8989 * coffread.c (process_coff_symbol, coff_read_enum_type): Call
8990 allocate_symbol.
8991 * dwarf2read.c (fixup_go_packaging): Call allocate_symbol.
8992 (read_func_scope): Call allocate_template_symbol.
8993 (new_symbol_full): Call allocate_symbol.
8994 * jit.c (finalize_symtab): Call allocate_symbol.
8995 * jv-lang.c (add_class_symbol): Call allocate_symbol.
8996 * mdebugread.c (parse_symbol, new_block): Call allocate_symbol.
8997 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
8998 (common_block_end): Call allocate_symbol.
8999 * symtab.c (allocate_symbol, initialize_symbol)
9000 (allocate_template_symbol): New functions.
9001 * symtab.c (allocate_symbol, initialize_symbol)
9002 (allocate_template_symbol): Declare.
9003 * xcoffread.c (process_xcoff_symbol): Call initialize_symbol.
9004
f6de8ec2
PA
90052013-04-08 Pedro Alves <palves@redhat.com>
9006 Keith Seitz <keiths@redhat.com>
9007
9008 * breakpoint.c (create_breakpoint): Rename
9009 "parse_condition_and_thread" parameter to "parse_arg". Update
9010 describing comment. If !PARSE_ARG, then error out if ARG is not
9011 the empty string after extracting the location.
9012 * breakpoint.h (create_breakpoint): Rename
9013 "parse_condition_and_thread" parameter to "parse_arg".
9014
f65ce5fb
AR
90152013-04-08 Aleksandar Ristovski <aristovski@qnx.com
9016
9017 * solib-svr4.c (lm_addr_check): Add const qualifier to 'so' arg.
9018
cc5925ad
YQ
90192013-04-07 Yao Qi <yao@codesourcery.com>
9020
9021 * remote.c (remote_trace_find): Change type of parameters 'addr1'
9022 and 'addr2' to CORE_ADDR.
9023 * target.c (update_current_target): Update.
9024 * target.h (struct target_ops) <to_trace_find>: Change parameter
9025 type to CORE_ADDR.
9026 * tracepoint.c (tfind_1): Change type of parameters 'addr1' and
9027 'addr2' to CORE_ADDR.
9028 (tfile_trace_find): Likewise.
9029 (tfile_get_traceframe_address): Change return type to CORE_ADDR.
9030 Change local variable 'addr' to type CORE_ADDR.
9031 * tracepoint.h (tfind_1): Update declaration.
9032
d9ac0664
EZ
90332013-04-06 Eli Zaretskii <eliz@gnu.org>
9034
9035 * windows-nat.c (windows_get_absolute_argv0): Move from here...
9036 * mingw-hdep.c (windows_get_absolute_argv0): ...to here.
9037 Include main.h.
9038
9039 * windows-nat.h (windows_get_absolute_argv0): Move prototype from
9040 here...
9041 * main.h (windows_get_absolute_argv0): ...to here.
9042
02142a6c
DE
90432013-04-05 Doug Evans <dje@google.com>
9044
9045 * dwarf2read.c (struct dwarf2_per_objfile): Tweak comment.
9046 (read_cutu_die_from_dwo): Add comments.
9047 (read_structure_type): Update comment.
9048 (read_enumeration_type, read_namespace_type): Update comment.
9049 (read_die_type, get_die_type_at_offset, get_die_type): Update comment.
9050
43662968
JK
90512013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
9052
9053 Convert man pages to texinfo, new gdbinit.5 texinfo page.
9054 * Makefile.in (gdb.z): Remove.
9055 (install-only): Remove $(man1dir) and gdb.1 installation.
9056 * gdb.1: Remove.
9057
9ead1b84
JK
90582013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
9059
9060 Fix compatibility with Linux kernel 3.8.3.
9061 * linux-tdep.c (linux_find_memory_regions_full): Move variable number
9062 to more inner block. Remove parsing of NUMBER from outer block.
9063 Parse NUMBER only if KEYWORD has been identified.
9064
d1794952
JK
90652013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
9066
9067 Fix variable name shadowing.
9068 * linux-tdep.c (linux_find_memory_regions_full): Rename outer variable
9069 filename to mapsfilename and update its uses.
9070
9025569e
EZ
90712013-04-05 Eli Zaretskii <eliz@gnu.org>
9072
9073 * Makefile.in (TAGS): Avoid warning from etags when $GDB_NM_FILE is
9074 empty. See http://sourceware.org/ml/gdb-patches/2012-08/msg00504.html
9075 and http://sourceware.org/ml/gdb-patches/2013-04/msg00055.html for
9076 details of the problem.
9077
c9a6ce02
PA
90782013-04-04 Pedro Alves <palves@redhat.com>
9079 Hui Zhu <hui@codesourcery.com>
9080
9081 * breakpoint.c (validate_commands_for_breakpoint): If validating a
9082 tracepoint, reset its STEP_COUNT and call validate_actionline.
9083
5ff888ce
DE
90842013-04-03 Doug Evans <dje@google.com>
9085
bf6af496
DE
9086 * dwarf2read.c (read_die_and_siblings_1): Renamed from
9087 read_die_and_siblings.
9088 (read_die_and_siblings): New function.
9089 (read_cutu_die_from_dwo): Dump die if requested.
9090 (read_die_and_children): Call read_full_die_1 and
9091 read_die_and_siblings_1.
9092 (read_full_die): Dump die if requested.
9093
9094 * dwarf2read.c (read_comp_units_from_section): Add debugging printf.
9095
0ac5b59e
DE
9096 * dwarf2read.c (struct dwo_file): New member comp_dir.
9097 Rename member name to dwo_name. All uses updated.
9098 (hash_dwo_file): Include comp_dir in computation.
9099 (eq_dwo_file): Ditto.
9100 (lookup_dwo_file_slot): New arg comp_dir. All callers updated.
9101 (create_dwo_in_dwp, lookup_dwo_in_dwp, open_and_init_dwo_file): Ditto.
9102
5ff888ce
DE
9103 * psymtab.c (read_psymtabs_with_fullname): Don't call
9104 psymtab_to_fullname if the basenames are different.
9105
ec83d211
JK
91062013-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
9107
9108 * NEWS (Changes in GDB 7.6): Update the data-disassemble for "fullname".
9109 New entry about "fullname" presence.
9110
4f4352f7
PA
91112013-04-03 Pedro Alves <palves@redhat.com>
9112
9113 * NEWS: Mention x86_64/Cygwin as new native configuration.
9114
3d1d5ea3
DE
91152013-04-02 Doug Evans <dje@google.com>
9116
9117 * dwarf2read.c (read_structure_type): Fix typo in comment.
9118
be9a8770
PA
91192013-04-02 Pedro Alves <palves@redhat.com>
9120
9121 * NEWS: Mention "set/show debug aarch64", "set/show debug
9122 coff-pe-read" and "set/show debug mach-o".
9123
a46c1e42
PA
91242013-04-02 Pedro Alves <palves@redhat.com>
9125
9126 * NEWS: Mention "set/show remote trace-buffer-size-packet".
9127
3ad18b19
EZ
91282013-04-02 Eli Zaretskii <eliz@gnu.org>
9129
9130 * Makefile.in (HFILES_NO_SRCDIR): Remove call-cmds.h.
9131 gdb_string.h is now in common/.
9132
e9f1758d
PA
91332013-04-02 Pedro Alves <palves@redhat.com>
9134
9135 * NEWS: Move "set debug notification" and "set trace-buffer-size"
9136 under "New options".
9137
049dc89b
JK
91382013-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
9139
9140 Revert this patch:
9141 PR gdb/15275
9142 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
9143
c33e31fd
PA
91442013-04-02 Pedro Alves <palves@redhat.com>
9145
9146 PR gdb/15275
9147
9148 * remote.c (send_interrupt_sequence): Use remote_serial_write.
9149 (remote_serial_write): New function.
9150 (putpkt_binary, getpkt_or_notif_sane_1): Use remote_serial_write.
9151
ea5f3910
JW
91522013-04-01 Jiong Wang <jiwang@tilera.com>
9153
9154 * NEWS: Mention TILE-Gx in "New native configurations" and
f5aee5ee 9155 "New targets" sections.
ea5f3910 9156
5c6fa7ab
DE
91572013-04-01 Doug Evans <dje@google.com>
9158
c0f78cd4
DE
9159 * dwarf2read.c (lookup_signatured_type_at_offset): Delete.
9160 (process_enumeration_scope): Simplify.
9161
0186c6a7
DE
9162 * dwarf2read.c (struct dwarf2_per_cu_data): Move member
9163 type_unit_group ...
9164 (struct signatured_type): ... to here.
9165 (sig_type_ptr): New typedef.
9166 (type_unit_group): Delete member 't.first_cu'. Move member 'tus'
9167 out of union 't'. All uses updated.
9168 (dw2_get_file_names_reader): Assert not called for a type unit.
9169 (dw2_get_file_names): Assert not called for a type unit or type
9170 unit group.
9171 (build_type_psymtabs_reader): Assert called for a type unit.
9172 (build_type_psymtab_dependencies): Assert called for a type unit group.
9173
5c6fa7ab
DE
9174 * dwarf2read.c (free_dwo_file): Add comment.
9175 (dwarf2_per_objfile_free): Unref dwp bfd.
9176
b3c0ad67 91772013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
cebca8c1
AR
9178
9179 * coff-pe-read.c (add_pe_exported_sym): Remove unused 'dll_name_len'.
9180 (add_pe_forwarded_sym): Remove unused 'section', 'dll_name_len'.
9181 (read_pe_exported_syms): Remove unused 'exportix'.
9182 (pe_text_section_offset): Remove unused 'opthdr_ofs', 'num_entries',
9183 'export_rva', 'export_size', 'expptr', 'exp_funcbase', 'expdata',
9184 'erva', 'name_rvas', 'ordinals', 'nexp', 'ordbase', 'dll_name'.
9185
e2df1547
AR
91862013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
9187
9188 * breakpoint.c (parse_cond_to_aexpr): Remove unused 'old_chain'.
9189 (print_it_watchpoint): Remove unused 'bl'.
9190 (say_where): Remove unused 'uiout'.
9191 (bpstat_remove_breakpoint_callback): Remove unused 'uiout'.
9192 (bkpt_breakpoint_hit): Remove unused 'b'.
9193 (internal_bkpt_print_it): Remove unused 'uiout'.
9194 * buildsym.c (augment_type_symtab): Remove unused 'i'.
9195
d81e75c0
TD
91962013-03-31 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
9197
9198 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_float): New function.
9199 (ppc64_sysv_abi_push_dummy_call): Handle complex arguments.
9200
5a8b3f62
DE
92012013-03-29 Doug Evans <dje@google.com>
9202
ab5088bf
DE
9203 * dwarf2read.c (open_dwo_file): Renamed from open_dwop_file.
9204 Delete arg is_dwp. All callers updated.
9205 (open_dwp_file): New function.
9206 (open_and_init_dwp_file): Call it.
9207 (get_dwp_file): New function.
9208 (lookup_dwo_cutu): Call it.
9209
a8ad1e57
DE
9210 * dwarf2read.c (open_and_init_dwp_file): Remove incorrect, and
9211 unnecessary, cleanup.
9212
6296d8c1
DE
9213 * dwarf2read.c (lookup_dwo_cutu): Improve complaint text.
9214
b0c7bfa9
DE
9215 * dwarf2read.c (read_cutu_die_from_dwo): New function.
9216 (lookup_dwo_unit): New function.
9217 (init_cutu_and_read_dies): Move DWO handling to new functions.
9218
c88ee1f0
DE
9219 * dwarf2read.c (struct signatured_type): Tweak comment.
9220 (struct dwo_unit): Tweak comment.
9221 (create_debug_types_hash_table): Tweak comment. Reformat long line.
9222 (create_dwo_debug_info_hash_table): Tweak comment.
9223 (dwarf2_per_cu_offset_and_type): Tweak comment.
9224
5a8b3f62
DE
9225 * dwarf2read.c (lookup_signatured_type): Remove complaint about
9226 missing .debug_types section.
9227
9852c492
YQ
92282013-03-29 Yao Qi <yao@codesourcery.com>
9229
9230 * corelow.c: Include "completer.h".
9231 (_initialize_corelow): Call add_target_with_completer with
9232 argument 'filename_completer'.
9233 * tracepoint.c: Likewise.
9234 * exec.c (_initialize_exec): Likewise.
9235 * target.c (add_target): Rename to ...
9236 (add_target_with_completer): ... this. Call set_cmd_completer
9237 if parameter completer is not NULL.
9238 (add_target): New.
9239 * target.h: Include "command.h".
9240 (add_target_with_completer): Declare it.
9241
af312be7
JB
92422013-03-28 Joel Brobecker <brobecker@adacore.com>
9243
9244 * coffread.c (is_import_fixup_symbol): New function.
9245 (record_minimal_symbol): Use is_import_fixup_symbol to
9246 detect import fixup symbols, and discard them.
9247
8a0459fd
DE
92482013-03-28 Doug Evans <dje@google.com>
9249
0349ea22
DE
9250 * dwarf2read.c (create_debug_types_hash_table): Don't allocate the
9251 types hash table until we know we need it.
9252
f652bce2
DE
9253 * dwarf2read.c (create_addrmap_from_index): Complain about bad CU
9254 index numbers.
9255
e4a48d9d
DE
9256 * dwarf2read.c (dw2_get_file_names): Delete arg "objfile".
9257 All callers updated.
9258 (dw2_print_stats): Print #read CUs too.
9259 (dump_die_shallow): Print signatured types better.
9260
8a0459fd
DE
9261 * dwarf2read.c (struct dwarf2_per_cu_data): Rename member
9262 info_or_types_section to section. All uses updated.
9263 (struct dwo_unit): Ditto.
9264
bd3eecc3
PA
92652013-03-28 Pedro Alves <palves@redhat.com>
9266
9267 * NEWS (New options): New section.
9268 (New options): Mention set/show remote trace-status-packet.
9269 * remote.c (PACKET_qTStatus): New enumeration value.
9270 (remote_get_trace_status): Skip sending qTStatus if the packet is
9271 disabled. Use packet_ok.
9272 (_initialize_remote): Register a configuration command for
9273 qTStatus packet.
9274
41245087
DE
92752013-03-28 Doug Evans <dje@google.com>
9276
7edbb660
DE
9277 * symfile.c (find_separate_debug_file): Add comment.
9278 (terminate_after_last_dir_separator): Tweak comment.
9279
0018ea6f
DE
9280 * dwarf2read.c (create_partial_symtab): Add forward decl.
9281 (create_partial_symtab): Move to be closer to other psymtab functions.
9282 (process_psymtab_comp_unit_reader, process_psymtab_comp_unit): Ditto.
9283
ca69b9e6
DE
9284 * dwarf2read.c (dwarf2_physname): Move declaration to better spot.
9285 (compute_symtab_includes): Remove unnecessary forward declaration.
9286 (die_needs_namespace): Add comment marking group of functions for
9287 dwarf2 name computation.
9288
a9375afe
DE
9289 * typeprint.c (_initialize_typeprint): Improve type help text.
9290
41245087
DE
9291 * python/python.c (finish_python_initialization): Provide suggestion
9292 for how to tell gdb to find its python files.
9293
7f7cc265
PA
92942013-03-28 Pedro Alves <palves@redhat.com>
9295
9296 PR gdb/15294
9297
9298 * source.c (_initialize_source): Change back "set listsize" to an
9299 integer command.
9300
ec21308c
JK
93012013-03-27 Gareth McMullin <gareth@blacksphere.co.nz>
9302
9303 PR gdb/15275
9304 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
9305
840a9a1f
PA
93062013-03-27 Pedro Alves <palves@redhat.com>
9307
9308 * top.c (history_size): Rename to ...
9309 (history_size_setshow_var): ... this. Add comment.
9310 (show_commands): Use readline's 'history_length' instead of
9311 computing the history length by calling history_get in a loop.
9312 (set_history_size_command): Error out for sizes over INT_MAX.
9313 Restore previous history size on invalid size.
9314 (init_history): If HISTSIZE is negative, leave the history size as
9315 zero. Add comments.
9316 (init_main): Adjust.
9317
826ecc4d
PA
93182013-03-27 Pedro Alves <palves@redhat.com>
9319
9320 * coff-pe-read.c (_initialize_coff_pe_read): Rename "set debug
9321 coff_pe_read" command to "set debug coff-pe-read".
9322
0ccfeeae
MM
93232013-03-27 Markus Metzger <markus.t.metzger@intel.com>
9324
9325 * record.c (command_size_to_target_size): Fix size comparison.
9326 Change parameter type from pointer to integer to integer.
9327 Update all users.
9328
40653b35
PM
93292013-03-27 Pierre Muller <muller@sourceware.org>
9330
9331 * windows-nat.c (handle_output_debug_string): Avoid typecast
9332 from integer of different size warning.
9333
c62fa0e2
JB
93342013-03-26 Joel Brobecker <brobecker@adacore.com>
9335
9336 * windows-nat.c (handle_output_debug_string): Add empty line
9337 after local block variable definition.
9338
2c619be2
PA
93392013-03-26 Pedro Alves <palves@redhat.com>
9340
9341 * ser-tcp.c (wait_for_connect): Make 'polls' parameter unsigned.
9342 (net_open): Make 'polls' local unsigned.
9343
1b493192
PA
93442013-03-26 Pedro Alves <palves@redhat.com>
9345
9346 * remote.c (_initialize_remote): Make "set remoteaddresssize"
9347 a zuinteger command instead of uinteger.
9348
7ee70bf5
PA
93492013-03-26 Pedro Alves <palves@redhat.com>
9350
9351 * record-full.c (record_full_insn_num): Make it unsigned.
9352 (record_full_check_insn_num, record_full_message)
9353 (record_full_registers_change, record_full_xfer_partial): Remove
9354 record_full_insn_max_num check (it's always != 0).
9355 (record_full_info, record_full_restore): Use %u as format string.
9356 (): Use %u as format string.
9357 (set_record_full_insn_max_num): Remove record_full_insn_max_num
9358 check (it's always != 0).
9359
dfd1f9bb
PA
93602013-03-26 Pedro Alves <palves@redhat.com>
9361
9362 * dcache.c (_initialize_dcache): Make the "set dcache line-size"
9363 and "set dcache size" commands zuinteger instead of uinteger.
9364
addb4faf
PA
93652013-03-26 Pedro Alves <palves@redhat.com>
9366
9367 * cris-tdep.c (_initialize_cris_tdep): Make the "set cris-version"
9368 command zuinteger instead of uinteger.
9369
b75bf488
PA
93702013-03-26 Pedro Alves <palves@redhat.com>
9371
9372 * coff-pe-read.c (_initialize_coff_pe_read): Make the command
9373 zuinteger instead of uinteger.
9374
42c634cb
PA
93752013-03-26 Pedro Alves <palves@redhat.com>
9376
9377 * record.c (record_insn_history_size_setshow_var)
9378 (record_call_history_size_setshow_var): New globals.
9379 (command_size_to_target_size): New function.
9380 (cmd_record_insn_history, cmd_record_call_history): Use
9381 command_size_to_target_size instead of cast.
9382 (validate_history_size, set_record_insn_history_size)
9383 (set_record_call_history_size): New functions.
9384 (_initialize_record): Install set_record_insn_history_size and
9385 set_record_call_history_size as "set" hooks of "set record
9386 instruction-history-size" and "set record
9387 function-call-history-size".
9388
1fb2e2b5
PA
93892013-03-26 Pedro Alves <palves@redhat.com>
9390
9391 * top.c (gdb_rl_operate_and_get_next): Replace max_input_history
9392 use with history_max_entries use. Remove FIXME note.
9393
99c819ee
MM
93942013-03-26 Markus Metzger <markus.t.metzger@intel.com>
9395
9396 * record-btrace.c (record_btrace_close): Call
9397 record_btrace_auto_disable.
9398
9f9e404c
JB
93992013-03-25 Joel Brobecker <brobecker@adacore.com>
9400
9401 * rs6000-nat.c (fixup_breakpoints): Delete declaration.
9402
ebcdfe33
DE
94032013-03-25 Doug Evans <dje@google.com>
9404
9405 * contrib/cc-with-tweaks.sh: Check exit code of dwp.
9406
24955f63
TT
94072013-03-25 Tom Tromey <tromey@redhat.com>
9408
9409 PR symtab/11462:
9410 * c-exp.y (exp): Add new productions for destructors after '.' and
9411 '->'.
9412 (write_destructor_name): New function.
9413
fce632b6
TT
94142013-03-25 Tom Tromey <tromey@redhat.com>
9415
9416 PR c++/9197:
9417 * opencl-lang.c (evaluate_subexp_opencl) <STRUCTOP_STRUCT>: Use
9418 value_struct_elt, not lookup_struct_elt_type.
9419 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
9420 STRUCTOP_PTR>: Use value_struct_elt, not lookup_struct_elt_type.
9421 * expression.h (EVAL_AVOID_SIDE_EFFECTS): Update comment.
9422
a4341769
YQ
94232013-03-25 Yao Qi <yao@codesourcery.com>
9424
9425 * ctf.c [USE_WIN32API]: Undef 'mkdir' and use 'mkdir'
9426 instead of '_mkdir'.
9427
b5981e5a
EZ
94282013-03-23 Eli Zaretskii <eliz@gnu.org>
9429
9430 * windows-nat.c (windows_get_absolute_argv0): New function.
9431 * windows-nat.h: Add its prototype.
9432
9433 * main.c (get_init_files): Use filename_ncmp instead of strncmp.
9434 Use IS_DIR_SEPARATOR instead of looking for a character inside
9435 SLASH_STRING. Include filenames.h.
9436 (captured_main) [__MINGW32__]: Make argv[0] absolute, so that
9437 relocate_gdb_directory works when passed gdb_program_name.
9438 Include windows-nat.h.
9439
598d3636
JK
94402013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
9441
9442 * exceptions.h (enum errors): New entry TARGET_CLOSE_ERROR.
9443 * remote.c (trace_error): Remove the special handling of '2'.
9444 (readchar) <SERIAL_EOF>
9445 (readchar) <SERIAL_ERROR>
9446 (getpkt_or_notif_sane_1): Use TARGET_CLOSE_ERROR for them.
9447 (remote_get_trace_status): Call throw_exception if EX is
9448 TARGET_CLOSE_ERROR.
9449 * utils.c (perror_with_name): Rename to ...
9450 (throw_perror_with_name): ... here. New parameter errcode, describe it
9451 in the function comment.
9452 (perror_with_name): New function wrapper.
9453 * utils.h (enum errors): New stub declaration.
9454 (throw_perror_with_name): New declaration.
9455
82b821e9
PA
94562013-03-22 Pedro Alves <palves@redhat.com>
9457 Yao Qi <yao@codesourcery.com>
9458 Mark Kettenis <kettenis@gnu.org>
9459
9460 * cli/cli-setshow.c (do_set_command) <var_uinteger>:
9461 Don't let the user set the value to UINT_MAX directly.
9462 <var_integer>: Don't let the user set the value to INT_MAX
9463 directly.
9464
78a095c3
JK
94652013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
9466
9467 * remote.c (remote_unpush_target): New function.
9468 (remote_open_1): Remove two pop_target calls, update one comment, add
9469 comment to target_preopen call. Replace pop_target call by
9470 remote_unpush_target call.
9471 (interrupt_query, readchar, getpkt_or_notif_sane_1): Replace
9472 pop_target calls by remote_unpush_target calls.
9473
3e74e146
PA
94742013-03-22 Pedro Alves <palves@redhat.com>
9475
9476 * linux-nat.c (linux_child_follow_fork): Don't call
9477 linux_enable_event_reporting.
9478 (linux_handle_extended_wait): Don't call
9479 linux_enable_event_reporting.
9480
a2213dca
PA
94812013-03-22 Pedro Alves <palves@redhat.com>
9482
9483 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Define INSN macro,
9484 use it to rewrite the trampoline buffers with type gdb_byte[], and
9485 undefine the macro. Remove char* cast.
9486
bd712aed
DE
94872013-03-21 Doug Evans <dje@google.com>
9488
9489 New commands "mt set per-command {space,time,symtab} {on,off}".
9490 * NEWS: Add entry.
9491 * event-top.c: #include "maint.h".
9492 * main.c: #include "maint.h".
9493 * maint.c: #include <sys/time.h>, <time.h>, block.h, top.h,
9494 timeval-utils.h, maint.h, cli/cli-setshow.h.
9495 (per_command_time, per_command_space): New static globals.
9496 (per_command_symtab): New static global.
9497 (per_command_setlist, per_command_showlist): New static globals.
9498 (struct cmd_stats): Move here from utils.c.
9499 (set_per_command_time): Renamed from set_display_time in utils.c
9500 and moved here. All callers updated.
9501 (set_per_command_space): Renamed from set_display_space in utils.c
9502 and moved here. All callers updated.
9503 (count_symtabs_and_blocks): New function.
9504 (report_command_stats): Moved here from utils.c. Add support for
9505 printing symtab stats. Only print data if enabled before command
9506 executed.
9507 (make_command_stats_cleanup): Ditto.
9508 (sert_per_command_cmd, show_per_command_cmd): New functions.
9509 (_initialize_maint_cmds): Add new commands
9510 mt set per-command {space,time,symtab} {on,off}.
9511 * maint.h: New file.
9512 * top.c: #include "maint.h".
9513 * utils.c (reset_prompt_for_continue_wait_time): New function.
9514 (get_prompt_for_continue_wait_time): New function.
9515 * utils.h (reset_prompt_for_continue_wait_time): Declare
9516 (get_prompt_for_continue_wait_time): Declare.
9517 (make_command_stats_cleanup): Moved to maint.h.
9518 (set_display_time, set_display_space): Moved to maint.h and renamed
9519 to set_per_command_time, set_per_command_space.
9520 * cli/cli-setshow.c (parse_cli_boolean_value): Renamed from
9521 parse_binary_operation and made non-static. Don't call error,
9522 just return an error marker. All callers updated.
9523 * cli/cli-setshow.h (parse_cli_boolean_value): Declare.
9524
d76488d8
TT
95252013-03-21 Tom Tromey <tromey@redhat.com>
9526
9527 * symfile.c (alloc_section_addr_info): Update header. Don't set
9528 'num_sections' field.
9529 (build_section_addr_info_from_section_table): Set 'num_sections'.
9530 (build_section_addr_info_from_bfd): Likewise.
9531 (build_section_addr_info_from_objfile): Remove dead loop
9532 condition.
9533 (free_section_addr_info): Unconditionally call xfree.
9534 (relative_addr_info_to_section_offsets, addrs_section_sort)
9535 (addr_info_make_relative, syms_from_objfile_1): Remove dead loop
9536 condition.
9537 (syms_from_objfile_1): Remove dead 'if' condition. Check
9538 'num_sections'.
9539 (add_symbol_file_command): Set 'num_sections'.
9540 * symfile-mem.c (symbol_file_add_from_memory): Set
9541 'num_sections'.
9542 * somread.c (som_symfile_offsets): Remove dead loop condition.
9543 * machoread.c (macho_symfile_offsets): Remove dead 'if'.
9544 * jit.c (jit_bfd_try_read_symtab): Set 'num_sections'.
9545
a72e5169 95462013-03-21 Tom Tromey <tromey@redhat.com>
92bc6a20
TT
9547
9548 * tracepoint.h (decode_agent_options): Add 'trace_string'
9549 argument.
9550 * tracepoint.c (decode_agent_options): Add 'trace_string'
9551 argument.
9552 (validate_actionline): Update.
9553 (collect_symbol): Add 'trace_string' argument.
9554 (struct add_local_symbols_data) <trace_string>: New field.
9555 (do_collect_symbol): Update.
9556 (add_local_symbols): Add 'trace_string' argument.
9557 (encode_actions_1): Update.
9558 (trace_dump_actions): Update.
9559 * dwarf2loc.c (access_memory): Update.
9560 * ax.h (struct agent_expr) <tracing, trace_string>: New fields.
9561 * ax-general.c (new_agent_expr): Update.
9562 * ax-gdb.h (gen_trace_for_expr, gen_trace_for_var)
9563 (gen_trace_for_return_address): Add argument.
9564 (trace_kludge, trace_string_kludge): Remove.
9565 * ax-gdb.c (trace_kludge, trace_string_kludge): Remove.
9566 (gen_traced_pop, gen_fetch, gen_bitfield_ref, gen_expr): Update.
9567 (gen_trace_for_var): Add 'trace_string' argument.
9568 (gen_trace_for_expr, gen_trace_for_return_address): Likewise.
9569 (gen_printf, agent_eval_command_one): Update.
9570
b2f83c08
TT
95712013-03-21 Tom Tromey <tromey@redhat.com>
9572
9573 PR exp/15109:
9574 * c-exp.y (yylex): Rewrite to push all tokens onto the FIFO.
9575 Handle FILENAME token.
9576
9507860e
TT
95772013-03-21 Tom Tromey <tromey@redhat.com>
9578
9579 * c-exp.y (YYPRINT): Define.
9580 (c_print_token): New function.
9581
e403aa4b
TT
95822013-03-21 Tom Tromey <tromey@redhat.com>
9583
9584 * c-exp.y (%union) <sym, ivar, ivec>: Remove.
9585
af307d6a
YQ
95862013-03-21 Yao Qi <yao@codesourcery.com>
9587
9588 * ctf.c: Include "gdb_stat.h".
9589 [USE_WIN32API]: New macro 'mkdir'.
9590 (ctf_start): Use permission bits macros if they are defined.
9591
fb81d016
KS
95922013-03-20 Keith Seitz <keiths@redhat.com>
9593
9594 * breakpoint.h (struct breakpoint): Add comment to
9595 extra_string indicating that this member is mallod'd.
9596 * breakpoint.c (base_breakpoint_dtor): Free extra_string.
9597
ef0026f0
PA
95982013-03-20 Pedro Alves <palves@redhat.com>
9599
9600 PR gdb/15289
9601
9602 * cli/cli-setshow.c (do_set_command)
9603 <var_uinteger, var_zuinteger>: Use LONGEST for variable holding
9604 the result of parsing the command argument. Throw error if the
9605 value is greater than UINT_MAX. Print the invalid value with
9606 plongest.
9607 <var_integer, var_zinteger>: Use LONGEST for variable holding the
9608 result of parsing the command argument. Throw error if the value
9609 is greater than INT_MAX, not greater or equal. Also throw error
9610 if the value is less than INT_MIN. Print the invalid value with
9611 plongest.
9612 <var_zuinteger_unlimited>: Throw error if the value is greater
9613 than INT_MAX, not greater or equal.
9614 (do_show_command) <var_integer, var_zinteger,
9615 var_zuinteger_unlimited>: Use %d for printing int, not %u.
9616
24d6c2a0
TT
96172013-03-20 Tom Tromey <tromey@redhat.com>
9618
9619 * ax-gdb.c (gen_var_ref): Unconditionally call via computed ops,
9620 if possible.
9621 * dwarf2read.c (read_func_scope): Remove old FIXME.
9622 * eval.c (evaluate_subexp_standard): Check SYMBOL_COMPUTED_OPS,
9623 not LOC_COMPUTED.
9624 * findvar.c (symbol_read_needs_frame, default_read_var_value):
9625 Unconditionally call via computed ops, if possible.
9626 * printcmd.c (address_info): Unconditionally call via computed ops,
9627 if possible.
9628 * stack.c (read_frame_arg): Unconditionally call via computed ops,
9629 if possible.
9630 * symtab.c (register_symbol_computed_impl): Sanity check 'ops'.
9631 * tracepoint.c (scope_info): Unconditionally call via computed ops,
9632 if possible.
9633
f1e6e072
TT
96342013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9635 Tom Tromey <tromey@redhat.com>
9636
9637 PR symtab/8421:
9638 * coffread.c (coff_register_index): New global.
9639 (process_coff_symbol, coff_read_enum_type): Set
9640 SYMBOL_ACLASS_INDEX.
9641 (_initialize_coffread): Initialize new global.
9642 * dwarf2loc.c (locexpr_find_frame_base_location)
9643 (dwarf2_block_frame_base_locexpr_funcs)
9644 (loclist_find_frame_base_location)
9645 (dwarf2_block_frame_base_loclist_funcs): New.
9646 (dwarf_expr_frame_base_1): Call SYMBOL_BLOCK_OPS, remove internal_error.
9647 (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Add location_has_loclist.
9648 * dwarf2loc.h (dwarf2_block_frame_base_locexpr_funcs)
9649 (dwarf2_block_frame_base_loclist_funcs): New.
9650 * dwarf2read.c (dwarf2_locexpr_index, dwarf2_loclist_index)
9651 (dwarf2_locexpr_block_index, dwarf2_loclist_block_index): New
9652 globals.
9653 (read_func_scope): Update.
9654 (fixup_go_packaging, mark_common_block_symbol_computed)
9655 (var_decode_location, new_symbol_full, dwarf2_const_value):
9656 Set SYMBOL_ACLASS_INDEX.
9657 (dwarf2_symbol_mark_computed): Likewise. Add 'is_block' argument.
9658 (_initialize_dwarf2_read): Initialize new globals.
9659 * jit.c (finalize_symtab): Set SYMBOL_ACLASS_INDEX.
9660 * jv-lang.c (add_class_symbol): Set SYMBOL_ACLASS_INDEX.
9661 * mdebugread.c (mdebug_register_index, mdebug_regparm_index): New
9662 globals.
9663 (parse_symbol, psymtab_to_symtab_1): Set SYMBOL_ACLASS_INDEX.
9664 (_initialize_mdebugread): Initialize new globals.
9665 * psympriv.h (struct partial_symbol) <aclass>: Update comment.
9666 * stabsread.c (patch_block_stabs): Set SYMBOL_ACLASS_INDEX.
9667 (stab_register_index, stab_regparm_index): New globals.
9668 (define_symbol, read_enum_type, common_block_end): Set
9669 SYMBOL_ACLASS_INDEX.
9670 (_initialize_stabsread): Initialize new globals.
9671 * symtab.c (next_aclass_value, symbol_impl, symbol_impls): New
9672 globals.
9673 (MAX_SYMBOL_IMPLS): New define.
9674 (register_symbol_computed_impl, register_symbol_block_impl)
9675 (register_symbol_register_impl)
9676 (initialize_ordinary_address_classes): New functions.
9677 (_initialize_symtab): Call initialize_ordinary_address_classes.
9678 * symtab.h (enum address_class) <LOC_FINAL_VALUE>: New constant.
9679 (struct symbol_impl): New.
9680 (SYMBOL_ACLASS_BITS): New define.
9681 (struct symbol) <aclass, ops>: Remove fields.
9682 <aclass_index>: New field.
9683 (symbol_impls): Declare.
9684 (SYMBOL_CLASS, SYMBOL_COMPUTED_OPS, SYMBOL_REGISTER_OPS): Redefine.
9685 (SYMBOL_IMPL, SYMBOL_ACLASS_INDEX): New defines.
9686 (register_symbol_computed_impl, register_symbol_block_impl)
9687 (register_symbol_register_impl): Declare.
9688 (struct symbol_computed_ops): Add location_has_loclist.
9689 (struct symbol_block_ops): New.
9690 (SYMBOL_BLOCK_OPS): New.
9691 * xcoffread.c (process_xcoff_symbol): Set SYMBOL_ACLASS_INDEX.
9692
dbccfd4c
TT
96932013-03-20 Tom Tromey <tromey@redhat.com>
9694
9695 * psymtab.c (find_pc_sect_psymbol, fixup_psymbol_section)
9696 (print_partial_symbols, recursively_search_psymtabs): Use
9697 PSYMBOL_CLASS.
9698
e3f1ad4f
PM
96992013-03-20 Pierre Muller <muller@sourceware.org>
9700
9701 * contrib/ari/gdb_ari.sh (OP eol rule): Also check
9702 addtion, subtraction, multiplication and division binary operator.
9703
460014f5
JK
97042013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9705
9706 Code cleanup.
9707 * bfd-target.c (target_bfd_xclose): Remove parameter quitting.
9708 * bsd-kvm.c (bsd_kvm_close): Likewise.
9709 * bsd-uthread.c (bsd_uthread_close): Likewise.
9710 * corelow.c (core_close): Likewise.
9711 (core_close_cleanup): Remove parameter quitting from a caller.
9712 * event-top.c (async_disconnect): Likewise.
9713 * exec.c (exec_close_1): Remove parameter quitting.
9714 * go32-nat.c (go32_close): Likewise.
9715 * linux-nat.c (linux_nat_close): Remove parameter quitting. Remove
9716 parameter quitting from a caller.
9717 * mips-linux-nat.c (super_close): Remove parameter quitting from the
9718 variable.
9719 (mips_linux_close): Remove parameter quitting. Remove parameter
9720 quitting from a caller.
9721 * monitor.c (monitor_close): Remove parameter quitting.
9722 * monitor.h (monitor_close): Likewise.
9723 * record-btrace.c (record_btrace_close): Likewise.
9724 * record-full.c (record_full_close): Likewise.
9725 * remote-m32r-sdi.c (m32r_close): Remove parameter quitting and remove
9726 it also from fprintf_unfiltered.
9727 * remote-mips.c (mips_close): Remove parameter quitting.
9728 (mips_detach): Remove parameter quitting from a caller.
9729 * remote-sim.c (gdbsim_close): Remove parameter quitting.
9730 (gdbsim_close): Remove duplicate function comment. Remove parameter
9731 quitting and remove it also from printf_filtered.
9732 * remote.c (remote_close): Remove parameter quitting.
9733 * solib-svr4.c (enable_break): Remove parameter quitting from a caller.
9734 * target.c (update_current_target): Remove parameter int from to_close
9735 de_fault.
9736 (push_target, unpush_target, pop_target): Remove parameter quitting from
9737 a caller.
9738 (pop_all_targets_above, pop_all_targets): Remove parameter quitting.
9739 Remove parameter quitting from a caller.
9740 (target_preopen): Remove parameter quitting from a caller.
9741 (target_close): Remove parameter quitting. Remove parameter quitting
9742 from a caller two times. Remove parameter quitting also from
9743 fprintf_unfiltered.
9744 * target.h (struct target_ops): Remove parameter quitting and as int
9745 from fields to_xclose and to_close.
9746 (extern struct target_ops current_target):
9747 (target_close, pop_all_targets): Remove parameter quitting. Update the
9748 comment.
9749 (pop_all_targets_above): Remove parameter quitting.
9750 * top.c (quit_target): Remove parameter quitting from a caller.
9751 * tracepoint.c (tfile_close): Remove parameter quitting.
9752 * windows-nat.c (windows_close): Remove parameter quitting.
9753
35a7120b
CV
97542013-03-20 Corinna Vinschen <vinschen@redhat.com>
9755
9756 * windows-nat.c (handle_output_debug_string): Replace call
9757 to string_to_core_addr with call to strtoull.
9758
8249a5a9
YQ
97592013-03-20 Yao Qi <yao@codesourcery.com>
9760
9761 * ctf.c (ctf_save_metadata_header): Define macro HOST_ENDIANNESS
9762 and write it to CTF metadata.
9763
2c15ef43
CV
97642013-03-19 Corinna Vinschen <vinschen@redhat.com>
9765
9766 * windows-nat.c (handle_output_debug_string): Change type of n to
9767 SIZE_T to avoid crash on 64 bit systems.
9768
1cdd3232
EZ
97692013-03-17 Eli Zaretskii <eliz@gnu.org>
9770
9771 * python/python-internal.h (HAVE_SNPRINTF)
9772 [_WIN32 && HAVE_DECL_SNPRINTF]: Define, to avoid compiler warnings
9773 about redefinition of snprintf by pyerrors.h.
9774
3cb2ab1a
SE
97752013-03-15 Steve Ellcey <sellcey@mips.com>
9776
9777 * remote-sim.c (sim_command_completer): Make char arguments const.
9778
9ce98649
TT
97792013-03-15 Tom Tromey <tromey@redhat.com>
9780
9781 PR c++/15116:
9782 * gdbtypes.c (types_equal): Handle TYPE_CODE_FUNC.
9783
dccee2de
TT
97842013-03-14 Tom Tromey <tromey@redhat.com>
9785
9786 * gdb_bfd.c (struct gdb_bfd_data) <crc_computed, crc>:
9787 New fields.
9788 (get_file_crc): Move from symfile.c.
9789 (gdb_bfd_crc): New function.
9790 * gdb_bfd.h (gdb_bfd_crc): Declare.
9791 * objfiles.h (struct objfile) <crc32, crc32_p>: Remove.
9792 * symfile.c (get_file_crc): Move to gdb_bfd.c.
9793 (separate_debug_file_exists): Use gdb_bfd_crc.
9794
cc0ea93c
TT
97952013-03-14 Tom Tromey <tromey@redhat.com>
9796
9797 * symfile.c (get_debug_link_info): Remove.
9798 (find_separate_debug_file_by_debuglink): Use
9799 bfd_get_debug_link_info.
9800
08c23b0d
TT
98012013-03-14 Tom Tromey <tromey@redhat.com>
9802
9803 * symtab.c (error_in_psymtab_expansion): New function.
9804 (lookup_symbol_aux_quick)
9805 (basic_lookup_transparent_type_quick): Remove "last resort"
9806 code. Use error_in_psymtab_expansion.
9807
288e77a7
JK
98082013-03-14 Doug Evans <dje@google.com>
9809 Jan Kratochvil <jan.kratochvil@redhat.com>
9810
9811 * dwarf2read.c (dw2_map_symtabs_matching_filename): Put continue after
9812 any successful compare_filenames_for_search or FILENAME_CMP.
9813 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
9814 * symtab.c (iterate_over_some_symtabs): Likewise.
9815
8f1b8b82
JK
98162013-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9817
9818 * source.c (print_source_lines_base): Make a local copy of
9819 symtab_to_fullname.
9820
23eb71e4
JK
98212013-03-14 Hui Zhu <hui_zhu@mentor.com>
9822 Jan Kratochvil <jan.kratochvil@redhat.com>
9823
9824 * source.c (print_source_lines_base): Suppress "file" for TUI.
9825
bb869963
SDJ
98262013-03-14 Keith Seitz <keiths@redhat.com>
9827 Alan Matsuoka <alanm@redhat.com>
9828
9829 PR c++/15203
9830 PR c++/15210
9831 * cp-namespace.c (cp_lookup_nested_symbol): Handle TYPE_CODE_FUNC and
9832 TYPE_CODE_METHOD.
9833 * elfread.c (elf_symtab_read): Handle BSF_GNU_UNIQUE for certain
9834 symbols.
9835
d6682f9e
YQ
98362013-03-14 Yao Qi <yao@codesourcery.com>
9837
9838 * tracepoint.c (tfile_write_status): Write 'stop_desc' of trace
9839 status to tfile if trace is stopped by command 'tstop'.
9840
a22fa6e4
YQ
98412013-03-14 Yao Qi <yao@codesourcery.com>
9842
9843 * tracepoint.c (tfile_write_status): Write trace notes and user
9844 name into tfile if they are not NULL.
9845
d0353e76
YQ
98462013-03-14 Hui Zhu <hui@codesourcery.com>
9847 Yao Qi <yao@codesourcery.com>
9848
9849 * Makefile.in (REMOTE_OBS): Add ctf.o.
9850 (SFILES): Add ctf.c.
9851 (HFILES_NO_SRCDIR): Add ctf.h.
9852 * ctf.c, ctf.h: New files.
9853 * tracepoint.c: Include 'ctf.h'.
9854 (collect_pseudocommand): Remove static.
9855 (trace_save_command): Parse option "-ctf".
9856 Produce different trace file writers per option.
9857 Adjust output message.
9858 (trace_save_tfile, trace_save_ctf): New.
9859 * tracepoint.h (trace_save_tfile, trace_save_ctf): Declare.
9860 * mi/mi-main.c: Include 'ctf.h'.
9861 (mi_cmd_trace_save): Handle option '-ctf'. Call either
9862 trace_save_tfile or trace_save_ctf.
9863 * NEWS: Mention these changes.
9864
3f43bc09
YQ
98652013-03-14 Yao Qi <yao@codesourcery.com>
9866
9867 * tracepoint.c (trace_file_writer_xfree): New.
9868 (struct tfile_writer_data): New.
9869 (tfile_dtor, tfile_can_target_save, tfile_start): New.
9870 (tfile_write_header, tfile_write_regblock_type): New.
9871 (tfile_write_status, tfile_write_uploaded_tsv): New.
9872 (tfile_write_uploaded_tp, tfile_write_definition_end): New.
9873 (tfile_write_raw_data, (tfile_end): New.
9874 (tfile_write_ops): New global variable.
9875 (TRACE_WRITE_R_BLOCK): New macro.
9876 (TRACE_WRITE_M_BLOCK_HEADER): New macro.
9877 (TRACE_WRITE_M_BLOCK_MEMORY): New macro.
9878 (TRACE_WRITE_V_BLOCK): New macro.
9879 (trace_save): Add extra one parameter WRITER. Make it static.
9880 Use WRITER to writer trace.
9881 (tfile_trace_file_writer_new): New.
9882 (trace_save_command): Caller update.
9883 (trace_save_tfile): Write trace data in TFILE format.
9884 * tracepoint.h (struct trace_frame_write_ops): New.
9885 (struct trace_file_write_ops): New.
9886 (struct trace_file_writer): New.
9887 (trace_save): Remove its declaration.
9888 (trace_save_tfile): Declare it.
9889 * mi/mi-main.c (mi_cmd_trace_save): Call trace_save_tfile
9890 instead of trace_save.
9891
58665b40
PA
98922013-03-13 Pedro Alves <palves@redhat.com>
9893
9894 * hppa-hpux-nat.c (hppa_hpux_save_state_offset): Make static.
9895
10217050
PA
98962013-03-13 Pedro Alves <palves@redhat.com>
9897
9898 * dbxread.c (read_ofile_symtab, process_one_symbol): Remove
9899 commented out code.
9900 * demangle.c (current_demangling_style_string): Make it const.
9901 (set_demangling_command): Assert the demangling style is known.
9902 Remove all handling of unknown styles. Set
9903 'current_demangling_style_string' to an element of the
9904 demangling_style_names array.
9905 (set_demangling_style): Delete.
9906 (_initialize_demangler): Set current_demangling_style_string to the
9907 element of the demangling_style_names array that corresponds to
9908 the default demangling style. Remove FIXME note. Don't call
9909 set_demangling_style.
9910 * gdb-demangle.h (set_demangling_style): Remove declaration.
9911
6f937416
PA
99122013-03-13 Pedro Alves <palves@redhat.com>
9913
9914 * ada-lang.c (struct add_partial_datum) <text, text0, word>: Make
9915 fields const.
9916 (ada_make_symbol_completion_list): Make "text0" parameter const.
9917 * ax-gdb.c (agent_eval_command_one): Make "exp" parameter const.
9918 * breakpoint.c (condition_completer): Make "text" and "word"
9919 parameters const. Adjust.
9920 (check_tracepoint_command): Adjust to validate_actionline
9921 prototype change.
9922 (catch_syscall_completer): Make "text" and "word" parameters
9923 const.
9924 * cli/cli-cmds.c (show_user): Make "comname" local const.
9925 (valid_command_p): Make "command" parameter const.
9926 (alias_command): Make "alias_prefix" and "command_prefix" locals
9927 const.
9928 * cli/cli-decode.c (add_cmd): Make "name" parameter const.
9929 (add_alias_cmd): Make "name" and "oldname" parameters const.
9930 Adjust. No longer make copy of OLDNAME.
9931 (add_prefix_cmd, add_abbrev_prefix_cmd, add_set_or_show_cmd)
9932 (add_setshow_cmd_full, add_setshow_enum_cmd)
9933 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
9934 (add_setshow_filename_cmd, add_setshow_string_cmd)
9935 (add_setshow_string_noescape_cmd)
9936 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
9937 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
9938 (add_setshow_zuinteger_unlimited_cmd, add_setshow_zuinteger_cmd)
9939 (delete_cmd, add_info, add_info_alias, add_com, add_com_alias):
9940 Make "name" parameter const.
9941 (help_cmd): Rename "command" parameter to "arg". New const local
9942 "command".
9943 (find_cmd): Make "command" parameter const.
9944 (lookup_cmd_1): Make "text" parameter pointer to const. Adjust to
9945 deprecated_cmd_warning prototype change.
9946 (undef_cmd_error): Make "cmdtype" parameter const.
9947 (lookup_cmd): Make "line" parameter const.
9948 (deprecated_cmd_warning): Change type of "text" parameter to
9949 pointer to const char, from pointer to pointer to char. Adjust.
9950 (lookup_cmd_composition): Make "text" parameter const.
9951 (complete_on_cmdlist, complete_on_enum): Make "text" and "word"
9952 parameters const.
9953 * cli/cli-decode.h (struct cmd_list_element) <name>: Make field
9954 const.
9955 * cli/cli-script.c (validate_comname): Make "tem" local const.
9956 (define_command): New const local "tem_c". Use it in calls to
9957 lookup_cmd.
9958 (document_command): Make "tem" and "comfull" locals const.
9959 (show_user_1): Make "prefix" and "name" parameters const.
9960 * cli-script.h (show_user_1): Make "prefix" and "name" parameters
9961 const.
9962 * command.h (add_cmd, add_alias_cmd, add_prefix_cmd)
9963 (add_abbrev_prefix_cmd, completer_ftype, lookup_cmd, lookup_cmd_1)
9964 (deprecated_cmd_warning, lookup_cmd_composition, add_com)
9965 (add_com_alias, add_info, add_info_alias, complete_on_cmdlist)
9966 (complete_on_enum, add_setshow_enum_cmd)
9967 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
9968 (add_setshow_filename_cmd, add_setshow_string_cmd)
9969 (add_setshow_string_noescape_cmd)
9970 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
9971 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
9972 (add_setshow_zuinteger_cmd, add_setshow_zuinteger_unlimited_cmd):
9973 Change prototypes, constifying strings.
9974 * completer.c (noop_completer, filename_completer): Make "text"
9975 and "prefix" parameters const.
9976 (location_completer, expression_completer)
9977 (complete_line_internal): Make "text" and "prefix" parameters
9978 const and adjust.
9979 (command_completer, signal_completer): Make "text" and "prefix"
9980 parameters const.
9981 * completer.h (noop_completer, filename_completer)
9982 (expression_completer, location_completer, command_completer)
9983 (signal_completer): Change prototypes.
9984 * corefile.c (complete_set_gnutarget): Make "text" and "word"
9985 parameters const.
9986 * cp-abi.c (cp_abi_completer): Likewise.
9987 * expression.h (parse_expression_for_completion): Change
9988 prototype.
9989 * f-lang.c (f_make_symbol_completion_list): Make "text" and "word"
9990 parameters const.
9991 * infcmd.c (_initialize_infcmd): Make "cmd_name" local const.
9992 * infrun.c (handle_completer): Make "text" and "word" parameters
9993 const.
9994 * interps.c (interpreter_completer): Make "text" and "word"
9995 parameters const.
9996 * language.h (struct language_defn)
9997 <la_make_symbol_completion_list>: Make "text" and "word"
9998 parameters const.
9999 * parse.c (parse_exp_1): Move const hack to parse_exp_in_context.
10000 (parse_exp_in_context): Rename to ...
10001 (parse_exp_in_context_1): ... this.
10002 (parse_exp_in_context): Reimplement, with const hack from
10003 parse_exp_1.
10004 (parse_expression_for_completion): Make "string" parameter const.
10005 * printcmd.c (decode_format): Make "string_ptr" parameter pointer
10006 to pointer to const char. Adjust.
10007 (print_command_1): Make "exp" parameter const.
10008 (output_command): Rename to ...
10009 (output_command_const): ... this. Make "exp" parameter const.
10010 (output_command): Reimplement.
10011 (x_command): Adjust.
10012 (display_command): Rename "exp" parameter to "arg". New "exp"
10013 local, const version of "arg".
10014 * python/py-auto-load.c (gdbpy_initialize_auto_load): Make
10015 "cmd_name" local const.
10016 * python/py-cmd.c (cmdpy_destroyer): Cast const away in xfree
10017 call.
10018 (cmdpy_completer): Make "text" and "word" parameters const.
10019 (gdbpy_parse_command_name): Make "prefix_text2" local const.
10020 * python/py-param.c (add_setshow_generic): Make "tmp_name" local
10021 const.
10022 * remote.c (_initialize_remote): Make "cmd_name" local const.
10023 * symtab.c (language_search_unquoted_string): Make "text" and "p"
10024 parameters const. Adjust.
10025 (completion_list_add_fields): Make "sym_text", "text" and "word"
10026 parameters const.
10027 (struct add_name_data) <sym_text, text, word>: Make fields const.
10028 (default_make_symbol_completion_list_break_on): Make "text" and
10029 "word" parameters const. Adjust locals.
10030 (default_make_symbol_completion_list)
10031 (make_symbol_completion_list, make_symbol_completion_type)
10032 (make_symbol_completion_list_fn): Make "text" and "word"
10033 parameters const.
10034 (make_file_symbol_completion_list): Make "text", "word" and
10035 "srcfile" parameters const. Adjust locals.
10036 (add_filename_to_list): Make "text" and "word" parameters const.
10037 (struct add_partial_filename_data) <text, word>: Make fields
10038 const.
10039 (make_source_files_completion_list): Make "text" and "word"
10040 parameters const.
10041 * symtab.h (default_make_symbol_completion_list_break_on)
10042 (default_make_symbol_completion_list, make_symbol_completion_list)
10043 (make_symbol_completion_type enum type_code)
10044 (make_symbol_completion_list_fn make_file_symbol_completion_list)
10045 (make_source_files_completion_list): Change prototype.
10046 * top.c (execute_command): Adjust to pass pointer to pointer to
10047 const char to lookup_cmd, and to deprecated_cmd_warning prototype
10048 change.
10049 (set_verbose): Make "cmdname" local const.
10050 * tracepoint.c (decode_agent_options): Make "exp" parameter const,
10051 and adjust.
10052 (validate_actionline): Make "line" parameter a pointer to const
10053 char, and adjust.
10054 (encode_actions_1): Make "action_exp" local const, and adjust.
10055 (encode_actions): Adjust.
10056 (replace_comma): Delete.
10057 (trace_dump_actions): Make "action_exp" and "next_comma" locals
10058 const, and adjust. Don't frob the action string while splitting
10059 it at commas. Instead, make a copy of each split substring in
10060 turn.
10061 (trace_dump_command): Adjust to validate_actionline prototype
10062 change.
10063 * tracepoint.h (decode_agent_options, decode_agent_options)
10064 (encode_actions, validate_actionline): Change prototypes.
10065 * valprint.h (output_command): Delete declaration.
10066 (output_command_const): Declare.
10067 * value.c (function_destroyer): Cast const away in xfree call.
10068
a0bcdaa7
PA
100692013-03-13 Pedro Alves <palves@redhat.com>
10070
10071 * ada-lang.c (ada_decode_symbol): Cast away constness of GSYMBOL
10072 rather than casting 'const char * const *' to 'const char **'.
10073 * ada-lex.l (processInt): Make "trailer" local const. Remove
10074 'const char **' cast.
10075 * arm-linux-tdep.c (arm_stap_parse_special_token): Add 'char *'
10076 locals, and use those as strtol output pointer, instead than doing
10077 invalid casts to from 'const char **' to 'char **'.
10078 (_initialize_demangle): Remove cast.
10079 * i386-tdep.c (i386_stap_parse_special_token): : Add 'char *'
10080 locals, and use those as strtol output pointer, instead than doing
10081 invalid casts to from 'const char **' to 'char **'.
10082 * solib-dsbt.c (dsbt_get_initial_loadmaps): Remove 'gdb_byte**'
10083 casts.
10084 * stap-probe.c (stap_parse_register_operand)
10085 (stap_parse_single_operand): Likewise.
10086
8ddb1965
YQ
100872013-03-13 Yao Qi <yao@codesourcery.com>
10088
10089 * tracepoint.c (tfile_get_trace_state_variable_value): Look for
10090 the last matched 'V' blcok in trace frame.
10091
2d450646
JB
100922013-03-12 Joel Brobecker <brobecker@adacore.com>
10093
10094 * NEWS: Create a new section for the next release branch.
10095 Rename the section of the current branch, now that it has
10096 been cut.
10097
b4b79973 100982013-03-12 Joel Brobecker <brobecker@adacore.com>
10099
10100 GDB 7.6 branch created (branch timestamp: 2013-03-12 22:15 UTC)
10101 * version.in: Bump version to 7.6.50.20130312-cvs.
10102
ee047554
KS
101032013-03-12 Keith Seitz <keiths@redhat.com>
10104
10105 * mi/mi-cmds.h (mi_execute_command): Make "cmd" const.
10106 * mi/mi-interp.c (mi_interpreter_exec): Make "command" const.
10107 Remove temporary copy of input string.
10108 (mi_execute_command_wrapper): Make "cmd" const.
10109 * mi/mi-main.c (mi_execute_command): Make "string_ptr" const.
10110 * mi/mi-parse.c (mi_parse_argv): Make "args" const.
10111 Use const strings.
10112 (mi_parse): Make "cmd" const.
10113 Use const strings.
10114 * mi/mi-parse.h (mi_parse): Make "cmd" const.
10115
bbc13ae3
KS
101162013-03-12 Keith Seitz <keiths@redhat.com>
10117
10118 * ada-lang.c (ada_read_renaming_var_value): Pass const
10119 pointer to expression string to parse_exp_1.
10120 (create_excep_cond_exprs): Likewise.
10121 * ax-gdb.c (agent_eval_command_one): Likewise.
10122 (maint_agent_printf_command): Likewise.
10123 Constify much of the string handling/parsing.
10124 * breakpoint.c (set_breakpoint_condition): Pass const
10125 pointer to expression string to parse_exp_1.
10126 (update_watchpoint): Likewise.
10127 (parse_cmd_to_aexpr): Constify string handling.
10128 Pass const pointer to parse_exp_1.
10129 (init_breakpoint_sal): Pass const pointer to parse_exp_1.
10130 (find_condition_and_thread): Likewise.
10131 Make TOK const.
10132 (watch_command_1): Make "arg" const.
10133 Constify string handling.
10134 Copy the expression string instead of changing the input
10135 string.
10136 (update_breakpoint_location): Pass const pointer to
10137 parse_exp_1.
10138 * eval.c (parse_and_eval_address): Make "exp" const.
10139 (parse_to_comma_and_eval): Make "expp" const.
10140 (parse_and_eval): Make "exp" const.
10141 * expression.h (parse_expression): Make argument const.
10142 (parse_exp_1): Make first argument const.
10143 * findcmd.c (parse_find_args): Treat "args" as const.
10144 * linespec.c (parse_linespec): Pass const pointer to
10145 linespec_expression_to_pc.
10146 (linespec_expression_to_pc): Make "exp_ptr" const.
10147 * parse.c (parse_exp_1): Make "stringptr" const.
10148 Make a copy of the expression to pass to parse_exp_in_context until
10149 this whole interface can be constified.
10150 (parse_expression): Make "string" const.
10151 * printcmd.c (ui_printf): Treat "arg" as const.
10152 Handle const strings.
10153 * tracepoint.c (validate_actionline): Pass const pointer to
10154 all calls to parse_exp_1.
10155 (encode_actions_1): Likewise.
10156 * value.h (parse_to_comma_and_eval): Make argument const.
10157 (parse_and_eval_address): Likewise.
10158 (parse_and_eval): Likewise.
10159 * varobj.c (varobj_create): Pass const pointer to parse_exp_1.
10160 (varobj_set_value): Likewise.
10161 * cli/cli-cmds.c (disassemble_command): Treat "arg" as const and
10162 constify string handling.
10163 Pass const pointers to parse_and_eval_address and
10164 parse_to_comman_and_eval.
10165 * cli/cli-utils.c (skip_to_space): Rename to ...
10166 (skip_to_space_const): ... this. Handle const strings.
10167 * cli/cli-utils.h (skip_to_space): Turn into macro which invokes
10168 skip_to_space_const.
10169 (skip_to_space_const): Declare.
10170 * common/format.c (parse_format_string): Make "arg" const.
10171 Handle const strings.
10172 * common/format.h (parse_format_string): Make "arg" const.
10173 * gdbserver/ax.c (ax_printf): Make "format" const.
10174 * python/python.c (gdbpy_parse_and_eval): Do not make a copy
10175 of the expression string.
10176
f3cec7e6
HZ
101772013-03-12 Hui Zhu <hui@codesourcery.com>
10178
10179 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Update error message.
10180
9df7235c
HZ
101812013-03-12 Yao Qi <yao@codesourcery.com>
10182 Hui Zhu <hui@codesourcery.com>
10183
10184 * dwarf2loc.c (access_memory): Change nbits to nbytes in gdb_assert.
10185 (dwarf2_compile_expr_to_ax): Call access_memory in DW_OP_deref and
10186 DW_OP_deref_size.
10187
82d049ab
PH
101882013-03-12 Paul Hilfinger <hilfingr@adacore.com>
10189
5f8e0b8f
MF
10190 * ada-lex.l (rules): Only recognize 'thread' as a
10191 delimiter when followed by numerals, as for c-exp.y.
10192 Use new rewind_to_char function to rewind the input for
10193 expression-delimiting tokens.
10194 (rewind_to_char): New function.
82d049ab 10195
8c1fb155
JK
101962013-03-11 Pedro Alves <palves@redhat.com>
10197 Jan Kratochvil <jan.kratochvil@redhat.com>
10198
10199 * configure: Regenerate.
10200 * configure.ac (check dynamic export flag): Link python test with
10201 $PYTHON_LIBS.
10202
cc81e1c6
DE
102032013-03-11 Doug Evans <dje@google.com>
10204 Keith Seitz <keiths@redhat.com>
10205
10206 * linespec.c (find_linespec_symbols): Call find_function_symbols
10207 first, and then call lookup_prefix_sym/find_method.
10208
39086a0e
PA
102092013-03-11 Pedro Alves <palves@redhat.com>
10210
10211 * charset.c (convert_between_encodings): Don't cast between
10212 different pointer to pointer types. Instead, make the 'inp' local
10213 be of the type iconv expects.
10214 (wchar_iterate): Don't cast between different pointer to pointer
10215 types. Instead, use new pointer local of the type iconv expects.
10216 * target.c (target_read_stralloc, target_fileio_read_stralloc):
10217 Add new local of type char pointer, and use it to get a
10218 char/string view of the byte buffer, instead of casting between
10219 pointer to pointer types.
10220
90585175
HAQ
102212013-03-11 Hafiz Abid Qadeer <abidh@codesourcery.com>
10222
10223 * remote.c (remote_set_trace_buffer_size): Move != operator
10224 to the start of next line to fix an ARI warning.
10225
59ea5688
MM
102262013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10227
10228 * NEWS: Add record changes.
10229
946287b7
MM
102302013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10231
10232 * record-btrace.c (btrace_insn_history): Omit the pc prefix in
10233 the instruction history disassembly.
10234 * disasm.c (dump_insns): Omit the pc prefix, if requested.
10235 * disasm.h (DISASSEMBLY_OMIT_PC): New.
10236
afedecd3
MM
102372013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10238
10239 * Makefile.in (SFILES): Add record-btrace.c
10240 (COMMON_OBS): Add record-btrace.o
10241 * record-btrace.c: New.
10242 * objfiles.c: Include btrace.h.
10243 (free_objfile): call btrace_free_objfile.
10244
15984c13
MM
102452013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10246
10247 * target.c (target_call_history, target_call_history_from,
10248 target_call_history_range): New.
10249 * target.h (target_ops) <to_call_history, to_call_history_from,
10250 to_call_history_range>: New fields.
10251 (target_call_history, target_call_history_from,
10252 target_call_history_range): New declaration.
10253 * record.c (get_call_history_modifiers, cmd_record_call_history,
10254 record_call_history_size): New.
10255 (_initialize_record): Add the "record function-call-history" command.
10256 Add "set/show record function-call-history-size" commands.
10257 * record.h (record_print_flag): New.
10258
67c86d06
MM
102592013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10260
10261 * target.h (target_ops) <to_insn_history, to_insn_history_from,
10262 to_insn_history_range>: New fields.
10263 (target_insn_history): New.
10264 (target_insn_history_from): New.
10265 (target_insn_history_range): New.
10266 * target.c (target_insn_history): New.
10267 (target_insn_history_from): New.
10268 (target_insn_history_range): New.
10269 * record.c: Include cli/cli-utils.h, disasm.h, ctype.h.
10270 (record_insn_history_size): New.
10271 (get_insn_number): New.
10272 (get_context_size): New.
10273 (no_chunk): New.
10274 (get_insn_history_modifiers): New.
10275 (cmd_record_insn_history): New.
10276 (_initialize_record): Add "set/show record instruction-history-size"
10277 command. Add "record instruction-history" command.
10278
7c1687a9
MM
102792013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10280
10281 * record.h (record_disconnect): New.
10282 (record_detach): New.
10283 (record_mourn_inferior): New.
10284 (record_kill): New.
10285 * record-full.c (record_disconnect, record_detach,
10286 record_mourn_inferior, record_kill): Move to...
10287 * record.c: ...here.
10288 (DEBUG): New.
10289 (record_stop): New.
10290 (record_unpush): New.
10291 (cmd_record_stop): Call record_stop. Replace unpush_target
10292 call with record_unpush call.
10293 (record_disconnect, record_detach): Assert that the target
10294 is of record stratum. Call record_unpush, record_stop, and
10295 DEBUG.
10296 (record_mourn_inferior, record_kill): Assert that the target
10297 is of record stratum. Call record_unpush and DEBUG.
10298
25ea693b
MM
102992013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10300
10301 * record-full.h, record-full.c (record_memory_query): Rename
10302 to ...
10303 (record_full_memory_query): ...this. Update all users.
10304 (record_arch_list_add_reg): Rename to ...
10305 (record_full_arch_list_add_reg): ...this. Update all users.
10306 (record_arch_list_add_mem): Rename to ...
10307 (record_full_arch_list_add_mem): ...this. Update all users.
10308 (record_arch_list_add_end): Rename to ...
10309 (record_full_arch_list_add_end): ...this. Update all users.
10310 (record_gdb_operation_disable_set): Rename to ...
10311 (record_full_gdb_operation_disable_set): ...this.
10312 Update all users.
10313
88d1aa9d
MM
103142013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10315
10316 * record-full.c (DEFAULT_RECORD_INSN_MAX_NUM): Renamed to ...
10317 (DEFAULT_RECORD_FULL_INSN_MAX_NUM): ... this. Updated all users.
10318 (RECORD_IS_REPLAY): Renamed to ...
10319 (RECORD_FULL_IS_REPLAY): ... this. Updated all users.
10320 (RECORD_FILE_MAGIC): Renamed to ...
10321 (RECORD_FULL_FILE_MAGIC): ... this. Updated all users.
10322 (record_mem_entry): Renamed to ...
10323 (record_full_mem_entry): ... this. Updated all users.
10324 (record_reg_entry): Renamed to ...
10325 (record_full_reg_entry): ... this. Updated all users.
10326 (record_end_entry): Renamed to ...
10327 (record_full_end_entry): ... this. Updated all users.
10328 (record_type) <record_end, record_reg, record_mem>: Renamed
10329 to ...
10330 (record_full_type) <record_full_end, record_full_reg,
10331 record_full_mem>: ... this. Updated all users.
10332 (record_entry): Renamed to ...
10333 (record_full_entry): ... this. Updated all users.
10334 (record_core_buf_entry): Renamed to ...
10335 (record_full_core_buf_entry): ... this. Updated all users.
10336 (record_core_regbuf): Renamed to ...
10337 (record_full_core_regbuf): ... this. Updated all users.
10338 (record_core_start): Renamed to ...
10339 (record_full_core_start): ... this. Updated all users.
10340 (record_core_end): Renamed to ...
10341 (record_full_core_end): ... this. Updated all users.
10342 (record_core_buf_list): Renamed to ...
10343 (record_full_core_buf_list): ... this. Updated all users.
10344 (record_first): Renamed to ...
10345 (record_full_first): ... this. Updated all users.
10346 (record_list): Renamed to ...
10347 (record_full_list): ... this. Updated all users.
10348 (record_arch_list_head): Renamed to ...
10349 (record_full_arch_list_head): ... this. Updated all users.
10350 (record_arch_list_tail): Renamed to ...
10351 (record_full_arch_list_tail): ... this. Updated all users.
10352 (record_stop_at_limit): Renamed to ...
10353 (record_full_stop_at_limit): ... this. Updated all users.
10354 (record_insn_max_num): Renamed to ...
10355 (record_full_insn_max_num): ... this. Updated all users.
10356 (record_insn_num): Renamed to ...
10357 (record_full_insn_num): ... this. Updated all users.
10358 (record_insn_count): Renamed to ...
10359 (record_full_insn_count): ... this. Updated all users.
10360 (record_ops): Renamed to ...
10361 (record_full_ops): ... this. Updated all users.
10362 (record_core_ops): Renamed to ...
10363 (record_full_core_ops): ... this. Updated all users.
10364 (set_record_cmdlist): Renamed to ...
10365 (set_record_full_cmdlist): ... this. Updated all users.
10366 (show_record_cmdlist): Renamed to ...
10367 (show_record_full_cmdlist): ... this. Updated all users.
10368 (record_cmdlist): Renamed to ...
10369 (record_full_cmdlist): ... this. Updated all users.
10370 (record_beneath_to_resume_ops): Renamed to ...
10371 (record_full_beneath_to_resume_ops): ... this. Updated all users.
10372 (record_beneath_to_resume): Renamed to ...
10373 (record_full_beneath_to_resume): ... this. Updated all users.
10374 (record_beneath_to_wait_ops): Renamed to ...
10375 (record_full_beneath_to_wait_ops): ... this. Updated all users.
10376 (record_beneath_to_wait): Renamed to ...
10377 (record_full_beneath_to_wait): ... this. Updated all users.
10378 (record_beneath_to_store_registers_ops): Renamed to ...
10379 (record_full_beneath_to_store_registers_ops): ... this.
10380 Updated all users.
10381 (record_beneath_to_store_registers): Renamed to ...
10382 (record_full_beneath_to_store_registers): ... this.
10383 Updated all users.
10384 (record_beneath_to_xfer_partial_ops): Renamed to ...
10385 (record_full_beneath_to_xfer_partial_ops): ... this.
10386 Updated all users.
10387 (record_beneath_to_xfer_partial): Renamed to ...
10388 (record_full_beneath_to_xfer_partial): ... this.
10389 Updated all users.
10390 (record_beneath_to_insert_breakpoint): Renamed to ...
10391 (record_full_beneath_to_insert_breakpoint): ... this.
10392 Updated all users.
10393 (record_beneath_to_stopped_by_watchpoint): Renamed to ...
10394 (record_full_beneath_to_stopped_by_watchpoint): ... this.
10395 Updated all users.
10396 (record_beneath_to_stopped_data_address): Renamed to ...
10397 (record_full_beneath_to_stopped_data_address): ... this.
10398 Updated all users.
10399 (record_beneath_to_async): Renamed to ...
10400 (record_full_beneath_to_async): ... this. Updated all users.
10401 (record_goto_insn): Renamed to ...
10402 (record_full_goto_insn): ... this. Updated all users.
10403 (record_save): Renamed to ...
10404 (record_full_save): ... this. Updated all users.
10405 (record_reg_alloc): Renamed to ...
10406 (record_full_reg_alloc): ... this. Updated all users.
10407 (record_reg_release): Renamed to ...
10408 (record_full_reg_release): ... this. Updated all users.
10409 (record_mem_alloc): Renamed to ...
10410 (record_full_mem_alloc): ... this. Updated all users.
10411 (record_mem_release): Renamed to ...
10412 (record_full_mem_release): ... this. Updated all users.
10413 (record_end_alloc): Renamed to ...
10414 (record_full_end_alloc): ... this. Updated all users.
10415 (record_end_release): Renamed to ...
10416 (record_full_end_release): ... this. Updated all users.
10417 (record_entry_release): Renamed to ...
10418 (record_full_entry_release): ... this. Updated all users.
10419 (record_list_release): Renamed to ...
10420 (record_full_list_release): ... this. Updated all users.
10421 (record_list_release_following): Renamed to ...
10422 (record_full_list_release_following): ... this.
10423 Updated all users.
10424 (record_list_release_first): Renamed to ...
10425 (record_full_list_release_first): ... this. Updated all users.
10426 (record_arch_list_add): Renamed to ...
10427 (record_full_arch_list_add): ... this. Updated all users.
10428 (record_get_loc): Renamed to ...
10429 (record_full_get_loc): ... this. Updated all users.
10430 (record_check_insn_num): Renamed to ...
10431 (record_full_check_insn_num): ... this. Updated all users.
10432 (record_arch_list_cleanups): Renamed to ...
10433 (record_full_arch_list_cleanups): ... this. Updated all users.
10434 (record_message): Renamed to ...
10435 (record_full_message): ... this. Updated all users.
10436 (record_message_wrapper): Renamed to ...
10437 (record_full_message_wrapper): ... this. Updated all users.
10438 (record_message_wrapper_safe): Renamed to ...
10439 (record_full_message_wrapper_safe): ... this. Updated all users.
10440 (record_gdb_operation_disable): Renamed to ...
10441 (record_full_gdb_operation_disable): ... this. Updated all users.
10442 (record_hw_watchpoint): Renamed to ...
10443 (record_full_hw_watchpoint): ... this. Updated all users.
10444 (record_exec_insn): Renamed to ...
10445 (record_full_exec_insn): ... this. Updated all users.
10446 (record_restore): Renamed to ...
10447 (record_full_restore): ... this. Updated all users.
10448 (record_async_inferior_event_token): Renamed to ...
10449 (record_full_async_inferior_event_token): ... this.
10450 Updated all users.
10451 (record_async_inferior_event_handler): Renamed to ...
10452 (record_full_async_inferior_event_handler): ... this.
10453 Updated all users.
10454 (record_core_open_1): Renamed to ...
10455 (record_full_core_open_1): ... this. Updated all users.
10456 (record_open_1): Renamed to ...
10457 (record_full_open_1): ... this. Updated all users.
10458 (record_open): Renamed to ...
10459 (record_full_open): ... this. Updated all users.
10460 (record_close): Renamed to ...
10461 (record_full_close): ... this. Updated all users.
10462 (record_resume_step): Renamed to ...
10463 (record_full_resume_step): ... this. Updated all users.
10464 (record_resumed): Renamed to ...
10465 (record_full_resumed): ... this. Updated all users.
10466 (record_execution_dir): Renamed to ...
10467 (record_full_execution_dir): ... this. Updated all users.
10468 (record_resume): Renamed to ...
10469 (record_full_resume): ... this. Updated all users.
10470 (record_get_sig): Renamed to ...
10471 (record_full_get_sig): ... this. Updated all users.
10472 (record_sig_handler): Renamed to ...
10473 (record_full_sig_handler): ... this. Updated all users.
10474 (record_wait_cleanups): Renamed to ...
10475 (record_full_wait_cleanups): ... this. Updated all users.
10476 (record_wait_1): Renamed to ...
10477 (record_full_wait_1): ... this. Updated all users.
10478 (record_wait): Renamed to ...
10479 (record_full_wait): ... this. Updated all users.
10480 (record_stopped_by_watchpoint): Renamed to ...
10481 (record_full_stopped_by_watchpoint): ... this. Updated all users.
10482 (record_disconnect): Renamed to ...
10483 (record_full_disconnect): ... this. Updated all users.
10484 (record_detach): Renamed to ...
10485 (record_full_detach): ... this. Updated all users.
10486 (record_mourn_inferior): Renamed to ...
10487 (record_full_mourn_inferior): ... this. Updated all users.
10488 (record_kill): Renamed to ...
10489 (record_full_kill): ... this. Updated all users.
10490 (record_stopped_data_address): Renamed to ...
10491 (record_full_stopped_data_address): ... this. Updated all users.
10492 (record_registers_change): Renamed to ...
10493 (record_full_registers_change): ... this. Updated all users.
10494 (record_store_registers): Renamed to ...
10495 (record_full_store_registers): ... this. Updated all users.
10496 (record_xfer_partial): Renamed to ...
10497 (record_full_xfer_partial): ... this. Updated all users.
10498 (record_breakpoint): Renamed to ...
10499 (record_full_breakpoint): ... this. Updated all users.
10500 (record_breakpoint_p): Renamed to ...
10501 (record_full_breakpoint_p): ... this. Updated all users.
10502 (record_breakpoints): Renamed to ...
10503 (record_full_breakpoints): ... this. Updated all users.
10504 (record_sync_record_breakpoints): Renamed to ...
10505 (record_full_sync_record_breakpoints): ... this.
10506 Updated all users.
10507 (record_init_record_breakpoints): Renamed to ...
10508 (record_full_init_record_breakpoints): ... this.
10509 Updated all users.
10510 (record_insert_breakpoint): Renamed to ...
10511 (record_full_insert_breakpoint): ... this. Updated all users.
10512 (record_remove_breakpoint): Renamed to ...
10513 (record_full_remove_breakpoint): ... this. Updated all users.
10514 (record_can_execute_reverse): Renamed to ...
10515 (record_full_can_execute_reverse): ... this. Updated all users.
10516 (record_get_bookmark): Renamed to ...
10517 (record_full_get_bookmark): ... this. Updated all users.
10518 (record_goto_bookmark): Renamed to ...
10519 (record_full_goto_bookmark): ... this. Updated all users.
10520 (record_async): Renamed to ...
10521 (record_full_async): ... this. Updated all users.
10522 (record_can_async_p): Renamed to ...
10523 (record_full_can_async_p): ... this. Updated all users.
10524 (record_is_async_p): Renamed to ...
10525 (record_full_is_async_p): ... this. Updated all users.
10526 (record_execution_direction): Renamed to ...
10527 (record_full_execution_direction): ... this. Updated all users.
10528 (record_info): Renamed to ...
10529 (record_full_info): ... this. Updated all users.
10530 (record_delete): Renamed to ...
10531 (record_full_delete): ... this. Updated all users.
10532 (record_is_replaying): Renamed to ...
10533 (record_full_is_replaying): ... this. Updated all users.
10534 (record_goto_entry): Renamed to ...
10535 (record_full_goto_entry): ... this. Updated all users.
10536 (record_goto_begin): Renamed to ...
10537 (record_full_goto_begin): ... this. Updated all users.
10538 (record_goto_end): Renamed to ...
10539 (record_full_goto_end): ... this. Updated all users.
10540 (record_goto): Renamed to ...
10541 (record_full_goto): ... this. Updated all users.
10542 (init_record_ops): Renamed to ...
10543 (init_record_full_ops): ... this. Updated all users.
10544 (record_core_resume): Renamed to ...
10545 (record_full_core_resume): ... this. Updated all users.
10546 (record_core_kill): Renamed to ...
10547 (record_full_core_kill): ... this. Updated all users.
10548 (record_core_fetch_registers): Renamed to ...
10549 (record_full_core_fetch_registers): ... this. Updated all users.
10550 (record_core_prepare_to_store): Renamed to ...
10551 (record_full_core_prepare_to_store): ... this. Updated all users.
10552 (record_core_store_registers): Renamed to ...
10553 (record_full_core_store_registers): ... this. Updated all users.
10554 (record_core_xfer_partial): Renamed to ...
10555 (record_full_core_xfer_partial): ... this. Updated all users.
10556 (record_core_insert_breakpoint): Renamed to ...
10557 (record_full_core_insert_breakpoint): ... this. Updated all users.
10558 (record_core_remove_breakpoint): Renamed to ...
10559 (record_full_core_remove_breakpoint): ... this. Updated all users.
10560 (record_core_has_execution): Renamed to ...
10561 (record_full_core_has_execution): ... this. Updated all users.
10562 (init_record_core_ops): Renamed to ...
10563 (init_record_full_core_ops): ... this. Updated all users.
10564 (cmd_record_restore): Renamed to ...
10565 (cmd_record_full_restore): ... this. Updated all users.
10566 (record_save_cleanups): Renamed to ...
10567 (record_full_save_cleanups): ... this. Updated all users.
10568 (cmd_record_start): Renamed to ...
10569 (cmd_record_full_start): ... this. Updated all users.
10570 (set_record_insn_max_num): Renamed to ...
10571 (set_record_full_insn_max_num): ... this. Updated all users.
10572 (set_record_command): Renamed to ...
10573 (set_record_full_command): ... this. Updated all users.
10574 (show_record_command): Renamed to ...
10575 (show_record_full_command): ... this. Updated all users.
10576 (_initialize_record): Renamed to ...
10577 (_initialize_record_full): ... this. Updated all users.
10578
d02ed0bb
MM
105792013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10580
10581 * record.h: Split into this and ...
10582 * record-full.h: ... this.
10583 * record.c: Split into this and ...
10584 * record-full.c: ... this.
10585 * target.h (target_ops): Add new fields to_info_record,
10586 to_save_record, to_delete_record, to_record_is_replaying,
10587 to_goto_record_begin, to_goto_record_end, to_goto_record.
10588 (target_info_record): New.
10589 (target_save_record): New.
10590 (target_supports_delete_record): New.
10591 (target_delete_record): New.
10592 (target_record_is_replaying): New.
10593 (target_goto_record_begin): New.
10594 (target_goto_record_end): New.
10595 (target_goto_record): New.
10596 * target.c (target_info_record): New.
10597 (target_save_record): New.
10598 (target_supports_delete_record): New.
10599 (target_delete_record): New.
10600 (target_record_is_replaying): New.
10601 (target_goto_record_begin): New.
10602 (target_goto_record_end): New.
10603 (target_goto_record): New.
10604 * record.h: Declare struct cmd_list_element.
10605 (record_cmdlist): New declaration.
10606 (set_record_cmdlist): New declaration.
10607 (show_record_cmdlist): New declaration.
10608 (info_record_cmdlist): New declaration.
10609 (cmd_record_goto): New declaration.
10610 * record.c: Remove unnecessary includes.
10611 Include inferior.h.
10612 (cmd_record_goto): Remove declaration.
10613 (record_cmdlist): Now extern. Initialize.
10614 (set_record_cmdlist): Now extern. Initialize.
10615 (show_record_cmdlist): Now extern. Initialize.
10616 (info_record_cmdlist): Now extern. Initialize.
10617 (find_record_target): New.
10618 (require_record_target): New.
10619 (cmd_record_start): Update.
10620 (cmd_record_delete): Remove target-specific code.
10621 Call target_delete_record.
10622 (cmd_record_stop): Unpush any record target.
10623 (set_record_insn_max_num): Move to record-full.c
10624 (set_record_command): Add comment.
10625 (show_record_command): Add comment.
10626 (info_record_command): Update comment.
10627 Remove target-specific code.
10628 Call the record target's to_info_record.
10629 (cmd_record_start): New.
10630 (cmd_record_goto): Now extern.
10631 Remove target-specific code.
10632 Call target_goto_begin, target_goto_end, or target_goto.
10633 (_initialize_record): Move record target ops initialization to
10634 record-full.c.
10635 Change "record" command help text.
10636 Move "record restore", "record set", and "record show" commands to
10637 record-full.c.
10638 * Makefile.in (SFILES): Add record-full.c.
10639 (HFILES_NO_SRCDIR): Add record-full.h.
10640 (COMMON_OBS): Add record-full.o.
10641 * amd64-linux-tdep.c: Include record-full.h instead of record.h.
10642 * arm-tdep.c: Include record-full.h.
10643 * i386-linux-tdep.c: Include record-full.h instead of record.h.
10644 * i386-tdep.c: Include record-full.h.
10645 * infrun.c: Include record-full.h.
10646 * linux-record.c: Include record-full.h.
10647 * moxie-tdep.c: Include record-full.h.
10648 * record-full.c: Include record-full.h.
10649 Change module comment.
10650 (set_record_full_cmdlist): New.
10651 (show_record_full_cmdlist): New.
10652 (record_full_cmdlist): New.
10653 (record_goto_insn): New declaration.
10654 (record_save): New declaration.
10655 (record_check_insn_num): Change query string.
10656 (record_info): New.
10657 (record_delete): New.
10658 (record_is_replaying): New.
10659 (record_goto_entry): New.
10660 (record_goto_begin): New.
10661 (record_goto_end): New.
10662 (record_goto): New.
10663 (init_record_ops): Update.
10664 (init_record_core_ops): Update.
10665 (cmd_record_save): Rename to record_save. Remove target and arg checks.
10666 (cmd_record_start): New.
10667 (set_record_insn_max_num): Moved from record.c
10668 (set_record_full_command): New.
10669 (show_record_full_command): New.
10670 (_initialize_record_full): New.
10671
b48d48eb
MM
106722013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10673
10674 * target.h (add_deprecated_target_alias): New.
10675 * target.c (add_deprecated_target_alias): New.
10676
a950d57c
MM
106772013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10678
10679 * common/linux-btrace.c: Include sys/ptrace, sys/types, sys/wait.h,
10680 and signal.h.
10681 (linux_supports_btrace): Add kernel and
10682 cpuid check.
10683 (kernel_supports_btrace): New function.
10684 (cpu_supports_btrace): New function.
10685 (intel_supports_btrace): New function.
10686
9accd112
MM
106872013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10688
10689 * target.h (enum target_object): Add TARGET_OBJECT_BTRACE.
10690 * remote.c: Include btrace.h.
10691 (struct btrace_target_info): New struct.
10692 (remote_supports_btrace): New function.
10693 (send_Qbtrace): New function.
10694 (remote_enable_btrace): New function.
10695 (remote_disable_btrace): New function.
10696 (remote_teardown_btrace): New function.
10697 (remote_read_btrace): New function.
10698 (init_remote_ops): Add btrace ops.
10699 (enum <unnamed>): Add btrace packets.
10700 (struct protocol_feature remote_protocol_features[]): Add btrace packets.
10701 (_initialize_remote): Add packet configuration for branch tracing.
10702
c12a2917
MM
107032013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10704
10705 * features/btrace.dtd: New file.
10706 * Makefile.in (XMLFILES): Add btrace.dtd.
10707 * btrace.h (parse_xml_btrace): New declaration.
10708 * btrace.c: Include xml-support.h.
10709 (parse_xml_btrace): New function.
10710 (parse_xml_btrace_block): New function.
10711 (block_attributes): New struct.
10712 (btrace_attributes): New struct.
10713 (btrace_children): New struct.
10714 (btrace_elements): New struct.
10715
3e3aea48
MM
107162013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10717
10718 * amd64-linux-nat.c: Include btrace.h and linux-btrace.h.
10719 (amd64_linux_enable_btrace): New.
10720 (amd64_linux_disable_btrace): New.
10721 (amd64_linux_teardown_btrace): New.
10722 (_initialize_amd64_linux_nat): Initialize btrace ops.
10723 * i386-linux.nat.c: Include btrace.h and linux-btrace.h.
10724 (i386_linux_enable_btrace): New.
10725 (i386_linux_disable_btrace): New.
10726 (i386_linux_teardown_btrace): New.
10727 (_initialize_i386_linux_nat): Initialize btrace ops.
10728 * config/i386/linux.mh: Add linux-btrace.o.
10729 * config/i386/linux64.mh: Add linux-btrace.o.
10730
7c97f91e
MM
107312013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10732
10733 * common/linux_btrace.h: New file.
10734 * common/linux_btrace.c: New file.
10735 * Makefile.in (SFILES): Add btrace.c.
10736 (HFILES_NO_SRCDIR): Add common/linux-btrace.h.
10737 (COMMON_OBS): Add btrace.o.
10738 (linux-btrace.o): New rule.
10739
1999790b 107402013-03-11 Markus Metzger <markus.t.metzger@intel.com>
02d27625
MM
10741
10742 * target.h: Include btrace.h.
10743 (struct target_ops) <to_supports_btrace, to_enable_btrace,
10744 to_disable_btrace, to_teardown_btrace, to_read_btrace>: New.
10745 * target.c (target_supports_btrace): New function.
10746 (target_enable_btrace): New function.
10747 (target_disable_btrace): New function.
10748 (target_teardown_btrace): New function.
10749 (target_read_btrace): New function.
10750 * btrace.h: New file.
10751 * btrace.c: New file.
10752 * Makefile.in: Add btrace.c.
10753 * gdbthread.h: Include btrace.h.
10754 (struct thread_info): Add btrace field.
10755 * thread.c: Include btrace.h.
10756 (clear_thread_inferior_resources): Call target_teardown_btrace.
10757 * common/btrace-common.h: New file.
10758
61a31a67
JK
107592013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10760
10761 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Call also kill
10762 for CHILD, ignore PTRACE_KILL errors, move the inner block variable
10763 kill_status to outer block.
10764
05c56a9d
JK
107652013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10766
10767 Fix entry-values if the callee called a noreturn function.
10768 * dwarf2-frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
10769 get_frame_address_in_block. Add new comment.
10770
9112db09
JK
107712013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10772
10773 Fix entry-values in C++ across CUs.
10774 * dwarf2loc.c (call_site_to_target_addr) <FIELD_LOC_KIND_PHYSNAME>: Use
10775 lookup_minimal_symbol. Add a comment.
10776 * dwarf2read.c
10777 (read_call_site_scope) <is_ref_attr> <die_is_declaration>: Prefer
10778 DW_AT_linkage_name.
10779
9b67fcec
YQ
107802013-03-08 Yao Qi <yao@codesourcery.com>
10781
10782 * tracepoint.c (_initialize_tracepoint): Indent the code.
10783
6221be90
PA
107842013-03-08 Pedro Alves <palves@redhat.com>
10785
10786 * findcmd.c (put_bits): Change type of parameter to 'gdb_byte *'.
10787 (parse_find_args, find_command): Change type of pattern buffer
10788 locals to 'gdb_byte *'.
10789
be9a119c 107902013-03-08 Stan Shebs <stan@codesourcery.com>
f6f899bf
HAQ
10791 Hafiz Abid Qadeer <abidh@codesourcery.com>
10792
10793 * NEWS: Mention set and show trace-buffer-size commands.
10794 Mention new packet.
10795 * target.h (struct target_ops): New method
10796 to_set_trace_buffer_size.
10797 (target_set_trace_buffer_size): New macro.
10798 * target.c (update_current_target): Set up new method.
10799 * tracepoint.c (trace_buffer_size): New global.
10800 (start_tracing): Send it to the target.
10801 (set_trace_buffer_size): New function.
10802 (_initialize_tracepoint): Add new setshow for trace-buffer-size.
10803 * remote.c (remote_set_trace_buffer_size): New function.
10804 (_initialize_remote): Use it.
10805 (QTBuffer:size) New remote command.
10806 (PACKET_QTBuffer_size): New enum.
10807 (remote_protocol_features): Add an entry for
10808 PACKET_QTBuffer_size.
10809
7da3ab79
TT
108102013-03-08 Tom Tromey <tromey@redhat.com>
10811
10812 * remote-m32r-sdi.c (m32r_load): Call skip_spaces on correct
10813 variable.
10814
0c1f71e7
PA
108152013-03-07 Pedro Alves <palves@redhat.com>
10816
10817 * target.c (target_read_stralloc, target_fileio_read_alloc):
10818 *Cast pointer to 'gdb_byte *' in target call.
10819
c8af03a2
PA
108202013-03-07 Pedro Alves <palves@redhat.com>
10821
10822 * corefile.c (read_memory_string): Cast pointer to gdb_byte* in
10823 call.
10824
529480d0
KS
108252013-03-07 Keith Seitz <keiths@redhat.com>
10826
10827 * breakpoint.c (catch_syscall_split_args): Use skip_spaces.
10828 (trace_pass_command): Likewise.
10829 * cli/cli-cmds.c: Include cli/cli-utils.h.
10830 (source_command): Use skip-spaces.
10831 (disassemble_command): Likewise.
10832 * findcmd.c: Include cli/cli-utils.h.
10833 (parse_find_args): Use skip_spaces.
10834 * go32-nat.c: Include cli/cli-utils.h.
10835 (go32_sldt): Use skip_spaces.
10836 (go32_sgdt): Likewise.
10837 (go32_sidt): Likewise.
10838 (go32_pde): Likewise.
10839 (go32_pte): Likewise.
10840 (go32_pte_for_address): Likewise.
10841 * infcmd.c: Include cli/cli-utils.h.
10842 (registers_info): Use skip_spaces.
10843 * linux-tdep.c (read_mapping): Use skip_spaces_const.
10844 (linux_info_proc): Likewise.
10845 * linux-thread-db.c: Include cli/cli-utils.h.
10846 (info_auto_load_libthread_db): Use skip_spaces_const.
10847 * m32r-rom.c: Include cli/cli-utils.h.
10848 (m32r_upload_command): Use skip_spaces.
10849 * maint.c: Include cli/cli-utils.h.
10850 (maintenance_translate_address): Use skip_spaces.
10851 * mi/mi-parse.c: Include cli/cli-utils.h.
10852 (mi_parse_argv): Use skip_spaces.
10853 (mi_parse): Likewise.
10854 * minsyms.c: Include cli/cli-utils.h.
10855 (msymbol_hash_iw): Use skip_spaces_const.
10856 * objc-lang.c: Include cli/cli-utils.h.
10857 (parse_selector): Use skip_spaces.
10858 (parse_method): Likewise.
10859 * python/python.c: Include cli/cli-utils.h.
10860 (python_interactive_command)[HAVE_PYTHON]: Use skip_spaces.
10861 (python_command)[HAVE_PYTHON]: Likewise.
10862 (python_interactive_command)[!HAVE_PYTHON]: Likewise.
10863 * remote-m32r-sdi.c: Include cli/cli-utils.h.
10864 (m32r_load): Use skip_spaces.
10865 * serial.c: Include cli/cli-utils.h.
10866 (serial_open): Use skip_spaces_const.
10867 * stack.c: Include cli/cli-utils.h.
10868 (parse_frame_specification_1): Use skip_spaces_const.
10869 * symfile.c: Include cli/cli-utils.h.
10870 (set_ext_lang_command): Use skip_spaces.
10871 * symtab.c: Include cli/cli-utils.h.
10872 (rbreak_command): Use skip_spaces.
10873 * thread.c (thread_name_command): Use skip_spaces.
10874 * tracepoint.c (validate_actionline): Use skip_spaces.
10875 (encode_actions_1): Likewise.
10876 (trace_find_range_command): Likewise.
10877 (trace_find_outside_command): Likewise.
10878 (trace_dump_actions): Likewise.
10879
ac91cd70
PA
108802013-03-07 Pedro Alves <palves@redhat.com>
10881
10882 * c-lang.c (parse_one_string): Cast argument to gdb_byte *.
10883 * expprint.c (print_subexp_standard): Likewise.
10884 * utils.c (host_char_to_target): Likewise.
10885 * valprint.c (generic_emit_char, generic_printstr): Likewise.
10886 * varobj.c (value_get_print_value): Change type of local to char*.
10887 Cast it gdb_byte * in call to language printer.
10888
2898e560
PA
108892013-03-07 Pedro Alves <palves@redhat.com>
10890
10891 * charset.c (struct wchar_iterator) <input>: Change type to 'const
10892 gdb_byte *'.
10893 (make_wchar_iterator): Remove cast to char*.
10894 (wchar_iterate): Change type of local.
10895
a09b4448
PA
108962013-03-07 Pedro Alves <palves@redhat.com>
10897
10898 * regcache.c (regcache_xmalloc_1): Call XCALLOC with signed char
10899 for 'regcache->register_status'.
10900
20ced3e4
PA
109012013-03-07 Pedro Alves <palves@redhat.com>
10902
c2d6a675 10903 * breakpoint.c (breakpoint_xfer_memory): Change type of local to
20ced3e4
PA
10904 int.
10905
fe106009
PA
109062013-03-07 Pedro Alves <palves@redhat.com>
10907
10908 * stap-probe.c (handle_stap_probe): Add cast to char*.
10909
8ac2c12b
PA
109102013-03-07 Pedro Alves <palves@redhat.com>
10911
10912 * linux-record.c (record_linux_system_call) <gdb_sys_msgrcv,
10913 RECORD_MSGRCV>: Pass a signed variable to
10914 regcache_raw_read_signed, instead of an unsigned one.
10915
99f0a309
PA
109162013-03-07 Pedro Alves <palves@redhat.com>
10917
10918 * remote-notif.c (notif_debug): Change type to int.
10919 * remote-notif.h (notif_debug): Likewise.
10920
964b8317
PA
109212013-03-07 Pedro Alves <palves@redhat.com>
10922
10923 * ser-tcp.c (tcp_retry_limit): Change type to unsigned int.
10924
f0cc8ad4
PA
109252013-03-07 Pedro Alves <palves@redhat.com>
10926
10927 * remote.c (hex2bin, bin2hex): Move extern declarations to ...
10928 * remote.h (hex2bin, bin2hex): ... here.
10929 * tracepoint.c (hex2bin, bin2hex): Remove extern declarations.
10930
77dec115
EZ
109312013-03-07 Eli Zaretskii <eliz@gnu.org>
10932
10933 * utils.c (initialize_utils): Improve doc strings of "set/show
10934 width", "set/show height", and "set/show pagination".
10935
741d92cf
KS
109362013-03-06 Keith Seitz <keiths@redhat.com>
10937
10938 * ax-gdb.c (gen_printf): Make FORMAT const.
10939 * ax-gdb.h (gen_printf): Likewise.
10940 * ax-general.c (ax_string): Make STR const.
10941 * ax.h (ax_string): Likewise.
10942
7b6c814e
DE
109432013-03-06 Doug Evans <dje@google.com>
10944
10945 * elfread.c (elf_symfile_read): Move debugging printf to more
10946 logical location.
10947
634334ab
PA
109482013-03-06 Pedro Alves <palves@redhat.com>
10949
10950 * python/py-utils.c (target_string_to_unicode): Delete function.
10951 * python/python-internal.h (target_string_to_unicode): Delete
10952 declaration.
10953
e482a1a7
PM
109542013-03-06 Pierre Muller <muller@sourceware.org>
10955
10956 * linespec.c (get_current_search_block): ARI fix, use (void)
10957 for empty parameter list.
10958
4eeaa230
DE
109592013-03-05 Doug Evans <dje@google.com>
10960
10961 * ada-lang.c (ada_lookup_symbol_list_worker): New function, contents
10962 of old ada_lookup_symbol_list. In !full_search case, don't
10963 search superblocks.
10964 (ada_lookup_symbol_list): Delete arg full_search, all callers
10965 updated. Call ada_lookup_symbol_list_worker.
10966 (ada_iterate_over_symbols): Call ada_lookup_symbol_list_worker.
10967 * ada-lang.h (ada_lookup_symbol_list): Update.
10968 * language.h (language_defn): Update comment for
10969 la_iterate_over_symbols.
10970 * linespec.c (iterate_over_file_blocks): New function.
10971 (iterate_over_all_matching_symtabs): Call it.
10972 (lookup_prefix_sym): Ditto.
10973 (get_current_search_block): New function.
10974 (get_search_block): Delete.
10975 (find_label_symbols): Call get_current_search_block.
10976 (add_matching_symbols_to_info): Call iterate_over_file_blocks.
10977 * symtab.c (iterate_over_symbols): Don't search superblocks.
10978
b69b1fb1
YQ
109792013-03-05 Yao Qi <yao@codesourcery.com>
10980
10981 * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): Change
10982 parameter VAR's type from "unsigned int" to "int".
10983 * command.h (var_zuinteger_unlimited): Update its comments.
10984 (add_setshow_zuinteger_unlimited_cmd): Update the declaration.
10985
3c095f49
CV
109862013-03-05 Corinna Vinschen <vinschen@redhat.de>
10987
10988 * NEWS: Mention new target x86_64-*-cygwin*.
10989
b5b0b0af
CV
109902013-03-05 Corinna Vinschen <vinschen@redhat.de>
10991
10992 * configure.host: Add x86_64-*-cygwin* as host.
10993 * configure.tgt: Add x86_64-*-cygwin* as target.
10994 * config/i386/cygwin64.mh: New file.
10995
f6f99966
JK
109962013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
10997
10998 * linespec.c (decode_line_2): Fix duplicate request off by two message.
10999
33f448b1
JK
110002013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
11001
11002 * linespec.c (struct linespec_canonical_name): New.
11003 (struct linespec_state): Change canonical_names type to it.
11004 (add_sal_to_sals): Change variable canonical_name to canonical. Change
11005 xrealloc element size. Initialize the different CANONICAL fields.
11006 (canonical_to_fullform): New.
11007 (filter_results): Use it. Add variables canonical, fullform and
11008 cleanup.
11009 (struct decode_line_2_item, decode_line_2_compare_items): New.
11010 (decode_line_2): Remove variables iter and item_names, add variables
11011 items and items_count. Modify the code for these new variables.
11012
feb14725
CV
110132013-03-04 Corinna Vinschen <vinschen@redhat.com>
11014
11015 * coff-pe-read.c (read_pe_exported_syms): Don't return without
11016 calling do_cleanup.
11017
e83b17ba
HZ
110182013-03-04 Luis Machado <lgustavo@codesourcery.com>
11019
11020 * tracepoint.c (build_traceframe_info): Add code for byte order.
11021
a2d13a0d
KB
110222013-03-02 Kevin Buettner <kevinb@redhat.com>
11023
8dddcae8
KB
11024 * v850-tdep.c: (v850e2_register_name): Revise system register
11025 names to match current V850E2M architecture specifications.
11026 Update register number enum comments too.
f5aee5ee 11027
d79e58d8
JW
110282013-03-01 Jiong Wang <jiwang@tilera.com>
11029 Pedro Alves <palves@redhat.com>
11030
11031 * tilegx-tdep.c (tilegx_analyze_prologue): Limit bundle reading
11032 to END_ADDR.
11033 (tilegx_skip_prologue): Limit prologue analysis to section end.
11034
c4be5165
JK
110352013-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
11036
11037 * dwarf2loc.c (call_site_find_chain_1): New variable save_callee_pc,
11038 use it.
11039
e362b510
PA
110402013-03-01 Pedro Alves <palves@redhat.com>
11041
11042 Use gdb_byte for bytes from the program being debugged.
11043
11044 * arm-tdep.c (arm_store_return_value, arm_get_longjmp_target):
11045 Change type of local 'buf' to gdb_byte.
11046 * avr-tdep.c (avr_frame_prev_register, avr_push_dummy_call): Likewise.
11047 * bfin-tdep.c (bfin_push_dummy_call): Likewise.
11048 * cris-tdep.c (cris_sigcontext_addr)
11049 (cris_sigtramp_frame_unwind_cache): Likewise.
11050 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp)
11051 (frv_linux_sigcontext_reg_addr, frv_linux_sigtramp_frame_cache):
11052 Likewise.
11053 * frv-tdep.c (frv_pseudo_register_write, frv_analyze_prologue): Likewise.
11054 * hppa-hpux-tdep.c (hppa32_hpux_find_global_pointer)
11055 (hppa32_hpux_search_dummy_call_sequence)
11056 (hppa_hpux_supply_save_state): Likewise.
11057 * hppa-linux-tdep.c (insns_match_pattern)
11058 (hppa_linux_find_global_pointer): Likewise.
11059 * hppa-tdep.c (hppa_in_function_epilogue_p)
11060 (skip_prologue_hard_way, hppa_frame_cache): Likewise.
11061 * i386-nto-tdep.c (i386nto_sigcontext_addr): Likewise.
11062 * i386fbsd-tdep.c (i386fbsd_supply_uthread)
11063 (i386fbsd_collect_uthread): Likewise.
11064 * ia64-hpux-tdep.c (ia64_hpux_push_dummy_code): Likewise.
11065 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address): Likewise.
11066 * ia64-tdep.c (examine_prologue, ia64_frame_cache)
11067 (ia64_frame_prev_register, ia64_sigtramp_frame_cache)
11068 (ia64_sigtramp_frame_prev_register, ia64_access_reg)
11069 (ia64_access_rse_reg, ia64_libunwind_frame_this_id)
11070 (ia64_libunwind_frame_prev_register)
11071 (ia64_libunwind_sigtramp_frame_this_id)
11072 (ia64_find_global_pointer_from_dynamic_section)
11073 (find_extant_func_descr, find_func_descr, ia64_dummy_id)
11074 (ia64_unwind_pc): Likewise.
11075 * iq2000-tdep.c (iq2000_store_return_value): Likewise.
11076 * m68hc11-tdep.c (m68hc11_push_dummy_call)
11077 (m68hc11_extract_return_value): Likewise.
11078 * m68klinux-nat.c (fetch_register, store_register): Likewise.
11079 * mep-tdep.c (mep_pseudo_cr32_read, mep_pseudo_cr32_write)
11080 (mep_get_insn, mep_push_dummy_call): Likewise.
11081 * mips-linux-tdep.c (mips_linux_get_longjmp_target)
11082 (mips_linux_in_dynsym_stub): Likewise.
11083 * mn10300-tdep.c (mep_pseudo_cr32_write): Likewise.
11084 * ppc-linux-nat.c (fetch_register, store_register): Likewise.
11085 * regcache.c (dump_endian_bytes): Change type of parameter 'buf'
11086 to gdb_byte.
11087 * remote-mips.c (mips_set_register): Likewise.
11088 * remote-sim.c (gdbsim_fetch_register): Likewise.
11089 * score-tdep.c (score7_fetch_inst): Change type of parameter
11090 'memblock' and local 'buf' to gdb_byte.
11091 (score7_malloc_and_get_memblock): Change return type to gdb_byte.
11092 Change type of local 'buf' to gdb_byte. Adjust.
11093 (score7_adjust_memblock_ptr): Change type of parameter 'memblock'
11094 to gdb_byte**.
11095 (score7_analyze_prologue): Change type of 'memblock' and
11096 'memblock_ptr' locals to gdb_byte*.
11097 * sh64-tdep.c (sh64_extract_return_value)
11098 (sh64_store_return_value): Change type of local 'buf' to gdb_byte.
11099 * solib-darwin.c (darwin_current_sos, darwin_read_exec_load_addr):
11100 * solib-pa64.c (pa64_solib_create_inferior_hook)
11101 (pa64_open_symbol_file_object): Remove local 'buf'.
11102 * solib-som.c (som_solib_create_inferior_hook, link_map_start)
11103 (som_open_symbol_file_object): Likewise.
11104 * solib-spu.c (spu_current_sos): Likewise.
11105 * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
11106 * spu-multiarch.c (parse_spufs_run, spu_fetch_registers)
11107 (spu_store_registers): Likewise.
11108 * target.c (debug_print_register): Likewise.
11109 * tic6x-tdep.c (tic6x_get_longjmp_target): Likewise.
11110 * xstormy16-tdep.c (xstormy16_store_return_value)
11111 (xstormy16_push_dummy_call, xstormy16_resolve_jmp_table_entry)
11112 (xstormy16_find_jmp_table_entry): Likewise.
11113
75cc61ca 111142013-03-01 Jiong Wang <jiwang@tilera.com>
61d8bd0e
JW
11115
11116 * tilegx-tdep.c (tilegx_get_longjmp_target): New function.
11117 (tilegx_gdbarch_init): Install it.
11118
ddb08e9c
TT
111192013-02-28 Tom Tromey <tromey@redhat.com>
11120
11121 * python/py-arch.c (archpy_disassemble): Use PyInt_Check and
11122 PyLong_Check.
11123
62d7fb51
DE
111242013-02-28 Doug Evans <dje@google.com>
11125
11126 * python/py-finishbreakpoint.c (bpfinishpy_init): gcc -Wall lint.
11127 * python/python.c (gdbpy_find_pc_line): Ditto.
11128
c4a9e8b4
TT
111292013-02-28 Tom Tromey <tromey@redhat.com>
11130
11131 * contrib/excheck.py: New file.
11132 * contrib/exsummary.py: New file.
11133 * contrib/gcc-with-excheck: New file.
11134
7f6a5dde
TT
111352013-02-28 Tom Tromey <tromey@redhat.com>
11136
11137 * python/python.c (gdbpy_print_stack): Call begin_line and
11138 fprintf_filtered inside TRY_CATCH.
11139
9e974e55
TT
111402013-02-28 Tom Tromey <tromey@redhat.com>
11141
11142 * python/python.c (gdbpy_find_pc_line): Call find_pc_line
11143 inside TRY_CATCH.
11144
dd5fa3e7
TT
111452013-02-28 Tom Tromey <tromey@redhat.com>
11146
11147 * py-finishbreakpoint.c (bpfinishpy_init): Reorganize to call
11148 frame_object_to_frame_info inside TRY_CATCH.
11149
86a3263f
TT
111502013-02-28 Tom Tromey <tromey@redhat.com>
11151
11152 * py-block.c (gdbpy_block_for_pc): Call block_for_pc inside
11153 TRY_CATCH.
11154
81b52a3a
TT
111552013-02-28 Tom Tromey <tromey@redhat.com>
11156
11157 * objfiles.h (ALL_PSPACE_OBJFILES): Remove trailing backlash.
11158
d50a0ce2
CV
111592013-02-27 Corinna Vinschen <vinschen@redhat.com>
11160
11161 * windows-nat.c: Throughout, fix format strings and casts of
11162 printf-like functions to avoid type related warnings on all
11163 platforms.
11164 (handle_output_debug_string): Fetch context information address
11165 from debug string using string_to_core_addr.
11166
e1f58301
JW
111672013-02-27 Jiong Wang <jiwang@tilera.com>
11168
11169 * regformats/reg-tilegx.dat (name): Change abi name to "tilegx".
11170 * regformats/reg-tilegx32.dat: New.
11171
4fcd89fc
JW
111722013-02-27 Jiong Wang <jiwang@tilera.com>
11173
11174 * configure.tgt (tilegx-*-linux*): Enable gdbserver.
11175
748d24e6
JW
111762013-02-27 Jiong Wang <jiwang@tilera.com>
11177
11178 * configure.tgt (tilegx-*-linux*): Replace whitespace with tab.
11179
6c8e944d
YQ
111802013-02-27 Yao Qi <yao@codesourcery.com>
11181 Pedro Alves <palves@redhat.com>
11182
11183 * tracepoint.c (tfile_trace_find): For tfind
5f8e0b8f
MF
11184 pc/tp/range/outside, look for the next trace frame instead of
11185 always starting from frame 0.
6c8e944d 11186
acd7db30
AG
111872013-02-26 Anthony Green <green@moxielogic.com>
11188
11189 * configure.tgt: Add support for moxie-*-rtems* target.
11190
025e6dce
PA
111912013-02-25 Pedro Alves <palves@redhat.com>
11192
11193 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Change
11194 warning text.
11195
ca9c94ef
MR
111962013-02-24 Maciej W. Rozycki <macro@codesourcery.com>
11197
11198 * mips-tdep.c (mips32_scan_prologue): Reset frame_offset to zero
11199 if $fp is used as the virtual frame pointer.
11200
24c274a1
AM
112012013-02-23 Alan Modra <amodra@gmail.com>
11202
11203 * elfread.c (elf_symtab_read): Do not use udata.p here to find
11204 symbol size.
11205 * ppc64-tdep.c (ppc64_elf_make_msymbol_special): New function.
11206 * ppc64-tdep.h (ppc64_elf_make_msymbol_special): Declare.
11207 * ppc-linux-tdep.c (ppc_linux_init_abi): Set up to use the above.
11208 * ppcfbsd-tdep.c (ppcfbsd_init_abi): Likewise.
11209
bfada189
JK
112102013-02-22 Jan Kratochvil <jan.kratochvil@redhat.com>
11211
11212 Code cleanup.
11213 * elfread.c (build_id_bfd_get): Make the return type const.
11214 (build_id_verify): Make the check parameter const.
11215 (build_id_to_debug_filename): Make the build_id parameter and variable
11216 data const.
11217 (find_separate_debug_file_by_buildid): Make the variable build_id const.
11218
c0355132
AM
112192013-02-21 Alan Modra <amodra@gmail.com>
11220
11221 * elfread.c (build_id_bfd_get): Adjust for elf_tdata changes.
11222
9f44fbc0
SCR
112232013-02-20 Siva Chandra Reddy <sivachandra@google.com>
11224
11225 Add a new method 'disassemble' to gdb.Architecture class.
11226 * python/py-arch.c (archpy_disassmble): Implementation of the
11227 new method gdb.Architecture.disassemble.
11228 (arch_object_methods): Add entry for the new method.
11229
b74ea3eb
JW
112302013-02-20 Jiong Wang <jiwang@tilera.com>
11231
11232 * MAINTAINERS (Write After Approval): Add myself to the list.
11233
61a672f1
PA
112342013-02-19 Pedro Alves <palves@redhat.com>
11235
11236 Garbage collect 'struct monitor_ops'::load_routine.
11237
11238 * monitor.h (struct monitor_ops) <load_routine>: Remove field.
11239 * monitor.c (monitor_load): No longer call
11240 current_monitor->load_routine.
11241 * dbug-rom.c (init_dbug_cmds): Don't set 'load_routine'.
11242 * m32r-rom.c (init_m32r_cmds): Don't set 'load_routine'.
11243 * ppcbug-rom.c (init_ppc_cmds): Don't set 'load_routine'.
11244
40e397df
PA
112452013-02-19 Pedro Alves <palves@redhat.com>
11246
11247 PR gdb/15161
11248
11249 Harmonize with generic_load.
11250
11251 * monitor.c: Include "readline/readline.h".
11252 (monitor_load): Rename parameter 'file' to 'args'. Use build_argv
11253 instead of sscanf. Use CORE_ADDR/strtoulst instead of unsigned
11254 long/strtol for the 'load_offset' local. Error out if no argument
11255 is given or if too many arguments are given. Tilde expand the
11256 passed in file name.
11257
f698ca8e
KT
112582013-02-19 Kai Tietz <ktietz@redhat.com>
11259
11260 PR gdb/15161
11261 * symfile.c (load_section_data): Change type of load_offset
11262 to CORE_ADDR.
11263 (generic_load): User strtoulst instead of strtoul for conversion
11264 of load_offset.
11265
3361b059
WL
112662013-02-19 Jiong Wang <jiwang@tilera.com>
11267
11268 * tilegx-tdep.c (tilegx_analyze_prologue): add check for
11269 for return address, "lr" register, saved on stack.
11270 * tilegx-tdep.c (tilegx_frame_cache): update "PC" reg
11271 after we invoke tilegx_analyze_prologue.
11272
3e9d5130
WL
112732013-02-19 Jiong Wang <jiwang@tilera.com>
11274
bb1bcd86
WL
11275 * tilegx-tdep.c (itilegx_gdbarch_init): char type should be signed.
11276
3361b059 112772013-02-19 Jiong Wang <jiwang@tilera.com>
bb1bcd86 11278
b74ea3eb 11279 * tilegx-tdep.c (tilegx_skip_prologue): Use skip_prologue_using_sal.
3e9d5130 11280
4aaf2503
WL
112812013-02-19 Jiong Wang <jiwang@tilera.com>
11282
b74ea3eb 11283 * tilegx-tdep.c (INT_SWINT_1_SIGRETURN): New macro.
4aaf2503
WL
11284 (tilegx_write_pc): New function.
11285 (tilegx_cannot_reference_register): Return zero if REGNO
11286 is TILEGX_FAULTNUM_REGNUM.
11287 (tilegx_gdbarch_init): Add call to set_gdbarch_write_pc.
11288 (tilegx_register_name): Add handling of "faultnum" register.
11289 * tilegx-tdep.h (enum tilegx_regnum): Add TILEGX_FAULTNUM_REGNUM.
11290 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Add
11291 handling of TILEGX_FAULTNUM_REGNUM.
11292 * tilegx-linux-nat.c (regmap): Add entry for TILEGX_FAULTNUM_REGNUM.
11293
bc23a956
WL
112942013-02-19 Jiong Wang <jiwang@tilera.com>
11295
11296 * tilegx-tdep.c (tilegx_push_dummy_call): args pushed on stack
b74ea3eb 11297 should be aligned to 64bit.
bc23a956 11298
42f45f1a
KT
112992013-02-19 Kai Tietz <ktietz@redhat.com>
11300
11301 * windows-nat.c (windows_xfer_memory): Fix debug-output
11302 for LLP64.
11303
6ce4c112
LL
113042013-02-19 Lei Liu <lei.liu2@windriver.com>
11305
11306 * mips-linux-nat.c (mips64_linux_regsets_store_registers):
11307 Don't check DSP register number if HAVE_DSP is not set.
11308
30e8ee25
AM
113092013-02-19 Alan Modra <amodra@gmail.com>
11310
11311 * elfread.c (struct build_id): Delete. Use struct elf_build_id
11312 throughout file instead.
11313 (build_id_bfd_get): Update to use new elf_tdata build_id field.
11314 Don't xmalloc return value.
11315 (build_id_verify): Similarly. Don't xfree.
11316 (build_id_to_debug_filename): Update.
11317 (find_separate_debug_file_by_buildid): Update, don't xfree.
11318
4c9ad8c2
TT
113192013-02-18 Tom Tromey <tromey@redhat.com>
11320
11321 PR gdb/15102:
11322 * dwarf2read.c (read_subrange_type): Use result of
11323 'check_typedef'.
11324
983dc440
YQ
113252013-02-16 Yuanhui Zhang <asmwarrior@gmail.com>
11326
11327 * frame.c: Remove one extra white space after #include
11328 directive.
11329
7fb2b84a
JK
113302013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
11331
11332 * contrib/cc-with-tweaks.sh: Extend the comment for -p option.
11333
edceb2a9
JK
113342013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
11335
11336 * gdb-gdb.gdb.in: Wrap set complaints, b internal_error, b info_command
11337 and dir commands into an if block.
11338
e81b7af8
TT
113392013-02-15 Sanimir Agovic <sanimir.agovic@intel.com>
11340
11341 * python/py-breakpoint (struct pybp_code): Use int instead of
11342 enum type_code.
11343
f5911ea1
HAQ
113442013-02-15 Pedro Alves <pedro@codesourcery.com>
11345 Hafiz Abid Qadeer <abidh@codesourcery.com>
11346
11347 * NEWS: Mention new field "trace-file".
11348 * tracepoint.c (trace_status_mi): Output "trace-file" field.
11349 (tfile_open): Record the trace file's filename in the trace
11350 status.
11351 (tfile_files_info): Mention the name of the trace file.
11352 Check the "filename" field explicitely.
11353 (trace_status_command): Explicitely check "filename" field.
11354 (trace_find_command): Ditto.
11355 (trace_find_pc_command): Ditto.
11356 (trace_find_tracepoint_command): Ditto.
11357 (trace_find_line_command): Ditto.
11358 (trace_find_range_command): Ditto.
11359 (trace_find_outside_command): Ditto.
11360 * tracepoint.h (struct trace_status) <from_file>: Rename it
11361 to "filename" and make it hold the trace file's filename
11362 instead of a boolean.
11363 * remote.c (remote_get_trace_status): Initialize "filename"
11364 field with NULL instead of 0.
11365
796cb314
YQ
113662013-02-15 Yao Qi <yao@codesourcery.com>
11367
11368 * remote.c: Fix a typo.
11369
42e79b1d
PM
113702013-02-14 Pierre Muller <muller@sourceware.org>
11371
11372 * contrib/ari/gdb_ari.sh (GNU/Linux rule): Remove.
11373
baea0dae
PA
113742013-02-14 Pedro Alves <palves@redhat.com>
11375
11376 * utils.c (savestring): Don't #undef it. Move function to
11377 common/common-utils.c.
11378 * common/common-utils.c: Include gdb_string.h.
11379 (savestring): Move here from utils.c.
11380 * common/common-utils.h (savestring): Declare.
11381
57c3b6ed
PA
113822013-02-14 Pedro Alves <palves@redhat.com>
11383
11384 * utils.c (savestring): Rename parameter 'size' to 'len'.
11385
d6c44983
YZ
113862013-02-14 Pedro Alves <palves@redhat.com>
11387 Yufeng Zhang <yufeng.zhang@arm.com>
11388
11389 * aarch64-linux-nat.c (aarch64_init_debug_reg_state): Delete.
11390 (aarch64_inferior_data, struct aarch64_inferior_data):
11391 Delete.
11392 (struct aarch64_process_info): New.
11393 (aarch64_process_list): New global.
11394 (aarch64_find_process_pid, aarch64_add_process)
11395 (aarch64_process_info_get): New functions.
11396 (aarch64_inferior_data_get): Delete.
11397 (aarch64_process_info_get): New function.
11398 (aarch64_forget_process): New function.
11399 (aarch64_get_debug_reg_state): New parameter 'pid'. Reimplement.
11400 (aarch64_linux_prepare_to_resume): Pass the lwp's pid to
11401 aarch64_get_debug_reg_state.
11402 (aarch64_notify_debug_reg_change): Use iterate_over_lwps
11403 instead of linux_nat_iterate_watchpoint_lwps.
11404 (aarch64_linux_new_fork): New function.
11405 (aarch64_linux_child_post_startup_inferior): Use
11406 aarch64_forget_process instead of aarch64_init_debug_reg_state.
11407 (aarch64_handle_breakpoint, aarch64_linux_insert_hw_breakpoint)
11408 (aarch64_linux_remove_hw_breakpoint)
11409 (aarch64_handle_aligned_watchpoint)
11410 (aarch64_handle_unaligned_watchpoint)
11411 (aarch64_linux_insert_watchpoint)
11412 (aarch64_linux_remove_watchpoint)
11413 (aarch64_linux_stopped_data_address): Adjust to pass the current
11414 process id to aarch64_debug_reg_state.
11415 (_initialize_aarch64_linux_nat): Install aarch64_linux_new_fork as
11416 linux_nat_new_fork hook, and aarch64_forget_process as
11417 linux_nat_forget_process hook; remove the call to
11418 register_inferior_data_with_cleanup.
11419
4819b3f8
PA
114202013-02-14 Pedro Alves <palves@redhat.com>
11421
11422 * eval.c (evaluate_subexp_for_address) <default_case_after_eval,
11423 EVAL_AVOID_SIDE_EFFECTS>: Swap and handle TYPE_CODE_REF before
11424 lval_memory.
11425
1773c82c
HAQ
114262013-02-14 Pedro Alves <pedro@codesourcery.com>
11427 Hafiz Abid Qadeer <abidh@codesourcery.com>
11428
11429 * tracepoint.h (validate_trace_state_variable_name): Declare.
11430 * tracepoint.c (validate_trace_state_variable_name): New.
11431 (trace_variable_command): Parse the trace state variable's name
11432 without using parse_expression. Do several validations.
11433 * mi/mi-main.c (mi_cmd_trace_define_variable): Don't parse the
11434 trace state variable's name with parse_expression. Validate it.
11435
53778a97
YQ
114362013-02-14 Yao Qi <yao@codesourcery.com>
11437
11438 * infcmd.c (breakpoint_proceeded): Remove it.
11439
7b3ae3a6
YQ
114402013-02-14 Yao Qi <yao@codesourcery.com>
11441
11442 * tracepoint.c (end_actions_pseudocommand): Make it static.
11443 (while_stepping_pseudocommand): Likewise.
11444 * tracepoint.h (end_actions_pseudocommand): Remove the
11445 declaration.
11446 (while_stepping_pseudocommand): Likewise.
11447
64580925
YQ
114482013-02-14 Yao Qi <yao@codesourcery.com>
11449
11450 * cli/cli-decode.c (help_cmd): Remove the declaration of
11451 "cmdlist".
11452 (help_all): Likewise.
11453
26cb8b7c
PA
114542013-02-13 Pedro Alves <palves@redhat.com>
11455
11456 * amd64-linux-nat.c (update_debug_registers_callback):
11457 Update comment.
11458 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
11459 iterate_over_lwps.
11460 (amd64_linux_prepare_to_resume): Pass the lwp's pid to
11461 i386_debug_reg_state.
11462 (amd64_linux_new_fork): New function.
11463 (_initialize_amd64_linux_nat): Install amd64_linux_new_fork as
11464 linux_nat_new_fork hook, and i386_forget_process as
11465 linux_nat_forget_process hook.
11466 * i386-linux-nat.c (update_debug_registers_callback):
11467 Update comment.
a8256ea1 11468 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
26cb8b7c
PA
11469 iterate_over_lwps.
11470 (i386_linux_prepare_to_resume): Pass the lwp's pid to
11471 i386_debug_reg_state.
11472 (i386_linux_new_fork): New function.
11473 (_initialize_i386_linux_nat): Install i386_linux_new_fork as
11474 linux_nat_new_fork hook, and i386_forget_process as
11475 linux_nat_forget_process hook.
11476 * i386-nat.c (i386_init_dregs): Delete.
11477 (i386_inferior_data, struct i386_inferior_data):
11478 Delete.
11479 (struct i386_process_info): New.
11480 (i386_process_list): New global.
11481 (i386_find_process_pid, i386_add_process, i386_process_info_get):
11482 New functions.
11483 (i386_inferior_data_get): Delete.
11484 (i386_process_info_get): New function.
11485 (i386_debug_reg_state): New parameter 'pid'. Reimplement.
11486 (i386_forget_process): New function.
11487 (i386_cleanup_dregs): Rewrite.
11488 (i386_update_inferior_debug_regs, i386_insert_watchpoint)
11489 (i386_remove_watchpoint, i386_region_ok_for_watchpoint)
11490 (i386_stopped_data_address, i386_insert_hw_breakpoint)
11491 (i386_remove_hw_breakpoint): Adjust to pass the current process id
11492 to i386_debug_reg_state.
11493 (i386_use_watchpoints): Don't register inferior data.
11494 * i386-nat.h (i386_debug_reg_state): Add new 'pid' parameter, and
11495 adjust comment.
11496 (i386_forget_process): Declare.
11497 * linux-fork.c (delete_fork): Call linux_nat_forget_process.
11498 * linux-nat.c (linux_nat_new_fork, linux_nat_forget_process_hook):
11499 New static globals.
11500 (linux_child_follow_fork): Don't call linux_nat_new_thread here.
11501 (add_initial_lwp): New, factored out from ...
11502 (add_lwp): ... this. Don't check the number of lwps before
11503 calling linux_nat_new_thread.
11504 (linux_nat_iterate_watchpoint_lwps): Delete.
11505 (linux_nat_attach): Use add_initial_lwp instead of add_lwp.
11506 (linux_handle_extended_wait): Call the linux_nat_new_fork hook on
11507 forks and vforks.
11508 (linux_nat_wait_1): Use add_initial_lwp instead of add_lwp for the
11509 initial lwp.
11510 (linux_nat_kill, linux_nat_mourn_inferior): Call
11511 linux_nat_forget_process.
11512 (linux_nat_set_new_fork, linux_nat_set_forget_process)
11513 (linux_nat_forget_process): New functions.
11514 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): Delete
11515 type.
11516 (linux_nat_iterate_watchpoint_lwps): Delete declaration.
11517 (linux_nat_new_fork_ftype, linux_nat_forget_process_ftype): New
11518 types.
11519 (linux_nat_set_new_fork, linux_nat_set_forget_process)
11520 (linux_nat_forget_process): New declarations.
11521
11522 * amd64fbsd-nat.c (super_mourn_inferior): New global.
11523 (amd64fbsd_mourn_inferior): New function.
11524 (_initialize_amd64fbsd_nat): Override to_mourn_inferior.
11525 * windows-nat.c (windows_detach): Call i386_cleanup_dregs.
11526
5befea72
MS
115272013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
11528
55015247
YQ
11529 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
11530 Adding _().
5befea72 11531
1d3ffd6b
MS
115322013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
11533
11534 * aarch64-linux-nat.c (debug_reg_change_callback)
11535 (aarch64_linux_get_debug_reg_capacity): ARI fix: Replace %llx with
11536 %s and phex().
11537
6eb04473
MS
115382013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
11539
11540 * aarch64-linux-nat.c (dr_changed_t): ARI fix: Replace long long
11541 with LONGEST.
11542
a016fc87
HAQ
115432013-02-13 Pedro Alves <palves@redhat.com>
11544 Hafiz Abid Qadeer <abidh@codesourcery.com>
11545
11546 * c-lang.c (c_op_print_tab): Add entry for UNOP_PLUS.
11547
e234dfaf
TT
115482013-02-12 Tom Tromey <tromey@redhat.com>
11549
11550 PR symtab/11464:
11551 * c-exp.y (lex_one_token): Initialize other fields of yylval on
11552 NAME return.
11553 (classify_inner_name): Remove 'first_name' argument, add
11554 'context'. Remove unused variable.
11555 (yylex): Explicitly maintain the context type. Exit loop earlier
11556 if NAME result is seen.
11557
0b1afbb3
PA
115582013-02-12 Pedro Alves <palves@redhat.com>
11559
11560 * amd64-darwin-tdep.c: Add (C) after Copyright.
11561 * cli/cli-cmds.h: Ditto.
11562 * cli/cli-decode.c: Ditto.
11563 * cli/cli-decode.h: Ditto.
11564 * cli/cli-dump.c: Ditto.
11565 * cli/cli-dump.h: Ditto.
11566 * cli/cli-interp.c: Ditto.
11567 * cli/cli-logging.c: Ditto.
11568 * cli/cli-script.c: Ditto.
11569 * cli/cli-script.h: Ditto.
11570 * cli/cli-setshow.c: Ditto.
11571 * cli/cli-setshow.h: Ditto.
11572 * cli/cli-utils.c: Ditto.
11573 * cli/cli-utils.h: Ditto.
11574 * config/alpha/nm-osf3.h: Ditto.
11575 * config/djgpp/djconfig.sh: Ditto.
11576 * config/i386/nm-fbsd.h: Ditto.
11577 * config/i386/nm-i386gnu.h: Ditto.
11578 * config/nm-linux.h: Ditto.
11579 * config/nm-nto.h: Ditto.
11580 * config/rs6000/nm-rs6000.h: Ditto.
11581 * config/sparc/nm-sol2.h: Ditto.
11582 * darwin-nat-info.c: Ditto.
11583 * dfp.c: Ditto.
11584 * dfp.h: Ditto.
11585 * gdb-demangle.h: Ditto.
11586 * i386-darwin-nat.c: Ditto.
11587 * i386-darwin-tdep.c: Ditto.
11588 * linux-fork.h: Ditto.
11589 * m32c-tdep.c: Ditto.
11590 * microblaze-linux-tdep.c: Ditto.
11591 * microblaze-rom.c: Ditto.
11592 * microblaze-tdep.c: Ditto.
11593 * microblaze-tdep.h: Ditto.
11594 * mips-linux-tdep.h: Ditto.
11595 * ppc-ravenscar-thread.c: Ditto.
11596 * ppc-ravenscar-thread.h: Ditto.
11597 * prologue-value.c: Ditto.
11598 * prologue-value.h: Ditto.
11599 * ravenscar-thread.c: Ditto.
11600 * ravenscar-thread.h: Ditto.
11601 * sparc-ravenscar-thread.c: Ditto.
11602 * sparc-ravenscar-thread.h: Ditto.
11603 * tilegx-linux-tdep.c: Ditto.
11604 * unwind_stop_reasons.def: Ditto.
11605 * windows-nat.h: Ditto.
11606 * xtensa-linux-tdep.c: Ditto.
11607 * xtensa-xtregs.c: Ditto.
11608 * regformats/regdat.sh: Ditto.
11609 * regformats/regdef.h: Ditto.
11610
6c01dd94
PA
116112013-02-12 Pedro Alves <palves@redhat.com>
11612
11613 * break-catch-sig.c: Update copyright years.
11614
b65a2bd9
SCR
116152013-02-11 Siva Chandra Reddy <sivachandra@google.com>
11616
11617 Add support for a destructor for ui_out data and use it to
11618 provide a ui_out destructor.
11619 * ui-out.h: Declare the new ui_out destructor.
11620 (ui_out_impl): Add a field for data destructor in ui_out_impl.
11621 * ui-out.c (default_data_destroy): Add a default data destructor
11622 which does nothing.
11623 (default_ui_out_impl): Set the new data_destroy field to
11624 default_data_destroy
11625 (uo_data_destroy): Local function which invokes the data
11626 destructor if present.
11627 (clear_table): Local function which clears the table data of a
11628 ui_out object.
11629 (ui_out_destroy): Public function which frees a ui_out object.
11630 (ui_out_table_end): Use the new clear_table function.
11631 * cli-out.c (cli_ui_out_impl): Set the new data_destroy field to
11632 NULL.
11633 * mi/mi-out.c (mi_ui_out_impl): Set the new data_destroy field
11634 to NULL.
11635
c2792f5a
DE
116362013-02-11 Doug Evans <dje@google.com>
11637
11638 * printcmd.c (printf_c_string,printf_wide_c_string): New functions.
11639 (printf_decfloat): New function. Broken out from ui_printf.
11640 Remove unnecessary code to shift the entire format string down.
11641 (printf_pointer): New function.
11642 (ui_printf): Code to print C strings, wide C strings, decfloats,
11643 and pointers moved to separate functions.
11644
d9e98382
SDJ
116452013-02-11 Sergio Durigan Junior <sergiodj@redhat.com>
11646
11647 * valops.c (value_assign): Handling bitfield offset in
11648 `lval_internalvar_component' case.
11649
4ff3ce77
DE
116502013-02-08 Doug Evans <dje@google.com>
11651
11652 * common/format.c (parse_format_string): Fix whitespace.
11653
901900c4
MGD
116542013-02-08 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
11655
11656 * stack.c (return_command): Work around uninitialized variable
11657 warning.
11658
b5dbc8d4
YZ
116592013-02-08 Yufeng Zhang <yufeng.zhang@arm.com>
11660
11661 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET): Change the
11662 number of the registers from 36 to 34.
11663
51d66578
MS
116642013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
11665
11666 * NEWS: Mention new AArch64 native and target support.
11667
176b1c95
MS
116682013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
11669
11670 * MAINTAINERS (Write After Approval): Add myself.
11671
9d19df75
MS
116722013-02-08 Jim MacArthur <jim.macarthur@arm.com>
11673 Marcus Shawcroft <marcus.shawcroft@arm.com>
11674 Nigel Stephens <nigel.stephens@arm.com>
11675 Yufeng Zhang <yufeng.zhang@arm.com>
11676
11677 * aarch64-linux-nat.c: New file.
11678 * config/aarch64/linux.mh: New file.
11679 * configure.host: Add AArch64.
11680 * Makefile.in (ALLDEPFILES): Add aarch64-linux-nat.c.
11681
7e1e0340
DE
116822013-02-07 Doug Evans <dje@google.com>
11683
11684 * cli/cli-cmds.c (_initialize_cli_cmds): Clarify argument to
11685 disassemble command.
11686
45e25a36
MS
116872013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
11688
11689 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
11690 set_gdbarch_fetch_tls_load_module_address.
11691
bbfdfe1c
DM
116922013-02-06 David S. Miller <davem@davemloft.net>
11693
11694 * sparc-tdep.c (sparc32_return_value): Handle writing return value when
11695 using RETURN_VALUE_ABI_PRESERVES_ADDRESS.
11696 * value.c (struct_return_convention): New function.
11697 (using_struct_return): Implement in terms of struct_return_convention.
11698 * value.h (struct_return_convention): Declare.
11699 * stack.c (return_command): Allow successful overriding of the return
11700 value when RETURN_VALUE_ABI_PRESERVES_ADDRESS.
11701
bc9abe4a
TT
117022013-02-06 Tom Tromey <tromey@redhat.com>
11703
11704 * python/py-type.c (typy_strip_typedefs): Don't call check_typedef
11705 outside of TRY_CATCH.
11706
134a2066
YQ
117072013-02-06 Yao Qi <yao@codesourcery.com>
11708
11709 * mi/mi-interp.c: Include "tracepoint.h".
11710 (mi_tsv_modified): Declare.
11711 (mi_tsv_created, mi_tsv_deleted): Update declaration.
11712 (mi_interpreter_init): Call observer_attach_tsv_modified.
11713 (mi_tsv_modified): New.
11714 (mi_tsv_created, mi_tsv_deleted): Update.
11715 * tracepoint.c (trace_variable_command): Call
11716 observer_notify_tsv_modified if the initial value of tsv is
11717 changed.
11718 (delete_trace_state_variable): Call
11719 observer_notify_tsv_deleted earlier.
11720 (trace_variable_command): Caller update.
11721 (create_tsv_from_upload): Likewise.
11722 * observer.sh: Declare "struct trace_state_variable".
11723
11724 * NEWS: Mention the new MI notification "=tsv-modified".
11725
59be2b6a
DE
117262013-02-05 Doug Evans <dje@google.com>
11727
11728 * completer.c (location_completer): Fix typo in comment.
11729
d30113d4
JK
117302013-02-05 Jan Kratochvil <jan.kratochvil@redhat.com>
11731
11732 * breakpoint.c (add_location_to_breakpoint): Insert the location with
11733 ADDRESS sorted.
11734
14ac654f
MS
117352013-02-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
11736
11737 * aarch64-tdep.c (aarch64_analyze_prologue): ARI fix:
11738 Refactor if statement to avoid trailing || operator.
11739
543bf33d
AT
117402013-02-05 Andreas Tobler <andreast@fgznet.ch>
11741
11742 * NEWS: Add PowerPC FreeBSD as a new native configuration.
11743
dc18f110
AT
117442013-02-04 Andreas Tobler <andreast@fgznet.ch>
11745
11746 * Makefile.in (ALL_TARGET_OBS): Add powerpc FreeBSD files.
11747 * configure.host: Add powerpc*-*-freebsd* target.
11748 * configure.tgt: Add target info for powerpc*-*-freebsd*.
11749 * ppcfbsd-nat.c, ppcfbsd-tdep.h, ppcfbsd-tdep.c: New files.
11750 * config/powerpc/fbsd.mh: New file.
11751
b3ac9c77
SDJ
117522013-02-04 Sergio Durigan Junior <sergiodj@redhat.com>
11753 Denys Vlasenko <dvlasenk@redhat.com>
11754 Pedro Alves <palves@redhat.com>
11755
11756 * gdbarch.sh (elfcore_write_linux_prpsinfo): New F hook.
11757 (struct elf_internal_linux_prpsinfo): Forward declare.
11758 * gdbarch.h, gdbarch.c: Regenerate.
11759 * linux-tdep.c: Include `cli/cli-utils.h'.
11760 (linux_fill_prpsinfo): New function.
11761 (linux_make_corefile_notes): Use linux_fill_prpsinfo. If there's
11762 an elfcore_write_linux_prpsinfo hook, use it, otherwise, use
11763 elfcore_write_linux_prpsinfo32 or elfcore_write_linux_prpsinfo64
11764 depending on gdbarch pointer bitness.
11765 * ppc-linux-tdep.c: Include elf-bfd.h.
11766 (ppc_linux_init_abi): Hook in elfcore_write_ppc_linux_prpsinfo32
11767 on 32-bit.
11768
176eb98c
MS
117692013-02-04 Jim MacArthur <jim.macarthur@arm.com>
11770 Marcus Shawcroft <marcus.shawcroft@arm.com>
11771 Nigel Stephens <nigel.stephens@arm.com>
11772 Yufeng Zhang <yufeng.zhang@arm.com>
11773
11774 * configure.tgt (aarch64*-*-linux*): Set build_gdbserver=yes.
11775
cf0dbd6f
MS
117762013-02-04 Jim MacArthur <jim.macarthur@arm.com>
11777 Marcus Shawcroft <marcus.shawcroft@arm.com>
11778 Nigel Stephens <nigel.stephens@arm.com>
11779 Yufeng Zhang <yufeng.zhang@arm.com>
11780
11781 * aarch64-newlib-tdep.c: New file.
11782 * configure.tgt: Add aarch64-newlib-tdep.o to gdb_target_obs of
11783 aarch64*-*-elf.
11784 * defs.h (enum gdb_osabi): Add GDB_OSABI_NEWLIB.
11785 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-newlib-tdep.o.
11786 (ALLDEPFILES): Add aarch64-newlib-tdep.c.
11787 * osabi.c (gdb_osabi_names): Add "Newlib".
11788
1ae3db19
MS
117892013-02-04 Jim MacArthur <jim.macarthur@arm.com>
11790 Marcus Shawcroft <marcus.shawcroft@arm.com>
11791 Nigel Stephens <nigel.stephens@arm.com>
11792 Yufeng Zhang <yufeng.zhang@arm.com>
11793
11794 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-linux-tdep.o.
11795 (ALLDEPFILES): Add aarch64-linux-tdep.c.
11796 * aarch64-linux-tdep.c: New file.
11797 * aarch64-linux-tdep.h: New file.
11798 * aarch64-tdep.h (gdbarch_tdep): Define gregset and fpregset.
11799 * configure.tgt: Add aarch64-none-linux-gnu.
11800
07b287a0
MS
118012013-02-04 Jim MacArthur <jim.macarthur@arm.com>
11802 Marcus Shawcroft <marcus.shawcroft@arm.com>
11803 Nigel Stephens <nigel.stephens@arm.com>
11804 Yufeng Zhang <yufeng.zhang@arm.com>
11805
11806 * Makefile.in (ALL_64_TARGET_OBS): Add arch64-tdep.o.
11807 (HFILES_NO_SRCDIR): Add aarch64-tdep.h.
11808 (ALLDEPFILES): Add aarch64-tdep.c.
11809 * aarch64-tdep.c: New file.
11810 * aarch64-tdep.h: New file.
11811 * configure.tgt: Add AArch64.
11812 * features/Makefile (WHICH): Add aarch64 and aarch64-without-fpu.
11813 (aarch64-expedite): New definition.
11814 * features/aarch64-core.xml: New file.
11815 * features/aarch64-fpu.xml: New file.
11816 * features/aarch64-without-fpu.c: New file (generated).
11817 * features/aarch64-without-fpu.xml: New file.
11818 * features/aarch64.c: New file (generated).
11819 * features/aarch64.xml: New file.
11820 * regformats/aarch64-without-fpu.dat: New file (generated).
11821 * regformats/aarch64.dat: New file (generated).
11822
0f1b18ab
JK
118232013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11824
11825 * contrib/expect-read1.c: New file.
11826 * contrib/expect-read1.sh: New file.
11827
233d95b5
JK
118282013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11829
11830 * dwarf2read.c (file_file_name): New function with code from
11831 file_full_name.
11832 (file_full_name): Move most of the code to file_file_name.
11833 (macro_start_file): Rename variable full_name to file_name and use
11834 file_file_name for it. Add comp_dir parameter to new_macro_table.
11835 * macrocmd.c (show_pp_source_pos): New variable fullname. Replace any
11836 macro_source_file->filename access by macro_source_fullname call.
11837 * macroscope.c (_initialize_macroscope): Update the new_macro_table
11838 caller.
11839 * macrotab.c (struct macro_table): New field comp_dir.
11840 (macro_include): New variables link_fullname and source_fullname.
11841 Replace any macro_source_file->filename access by macro_source_fullname
11842 call.
11843 (macro_lookup_inclusion): Remove the partial filenames checking code.
11844 (check_for_redefinition): New variables source_fullname and
11845 found_key_fullname. Replace any macro_source_file->filename access by
11846 macro_source_fullname call.
11847 (macro_undef): New variables source_fullname and key_fullname. Replace
11848 any macro_source_file->filename access by macro_source_fullname call.
11849 (macro_lookup_definition): New variables retval and source_fullname.
11850 Replace any macro_source_file->filename access by macro_source_fullname
11851 call.
11852 (foreach_macro): New variable key_fullname. Replace any
11853 macro_source_file->filename access by macro_source_fullname call.
11854 (foreach_macro_in_scope): New variable datum_fullname. Replace any
11855 macro_source_file->filename access by macro_source_fullname call.
11856 (new_macro_table): Add parameter comp_dir. Initialize T with it.
11857 (macro_source_fullname): New function.
11858 * macrotab.h (struct macro_source_file): Extent the filename field
11859 comment.
11860 (new_macro_table): New parameter comp_dir, add a comment for it.
11861 (macro_source_fullname): new declaration.
11862
da235a7c
JK
118632013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11864
11865 * dwarf2read.c (dw2_map_symtabs_matching_filename): Move variable
11866 this_real_name to outer block. Use it also for
11867 compare_filenames_for_search.
11868 (dw2_expand_symtabs_matching): New variable this_real_name. Use it
11869 with dw2_get_real_path for file_matcher, considering also
11870 BASENAMES_MAY_DIFFER.
11871 (file_full_name): Prepend COMP_DIR even for relative lh->INCLUDE_DIRS.
11872
fbd9ab74
JK
118732013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11874
11875 * dwarf2read.c (dw2_expand_symtabs_matching): Add basenames parameter
11876 to the file_matcher parameter. Pass 0 to it.
11877 (dwarf2_create_include_psymtab): Copy also DIRNAME.
11878 * psymtab.c (partial_map_symtabs_matching_filename): Drop handling of
11879 NULL psymtab_to_fullname result.
11880 (psymtab_to_fullname): Remove variable r. Never return NULL, assemble
11881 an expected filename instead.
11882 (expand_symtabs_matching_via_partial): Add basenames parameter to the
11883 file_matcher parameter. Call also psymtab_to_fullname, after newly
11884 considering BASENAMES_MAY_DIFFER.
11885 * source.c (rewrite_source_path): Remove static.
11886 * source.h (rewrite_source_path): New declaration.
11887 * symfile.h (struct quick_symbol_functions): Add basenames parameter to
11888 the expand_symtabs_matching field. Comment it.
11889 * symtab.c (file_matches): New function comment. Add parameter
11890 basenames, implement it.
11891 (search_symbols_file_matches): Add basenames parameter. Update the
11892 file_matches caller.
11893 (search_symbols): Match FILES also against symtab_to_fullname.
11894 Optimize it for BASENAMES_MAY_DIFFER.
11895
56d397a3
JK
118962013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11897
11898 * source.c (print_source_lines_base): Print for TUI also "fullname".
11899 * tui/tui-data.c (init_content_element): Change tui_locator_element
11900 field to full_name.
11901 * tui/tui-data.h (struct tui_locator_element): Likewise.
11902 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Rename
11903 tui_update_locator_filename calls to tui_update_locator_fullname.
11904 Replace symtab->filename refererence by symtab_to_fullname call.
11905 * tui/tui-out.c (tui_field_string): Check for "fullname" now.
11906 * tui/tui-source.c (tui_set_source_content): Change tui_locator_element
11907 field to full_name. Replace symtab->filename refererence by
11908 symtab_to_fullname call.
11909 (tui_show_symtab_source): Rename parameter to fullname. Change
11910 tui_locator_element field to full_name.
11911 * tui/tui-stack.c: Include source.h.
11912 (tui_set_locator_filename): Rename the declaration to ...
11913 (tui_set_locator_fullname): ... here. Rename its parameter to
11914 fullname, updates its comment.
11915 (tui_set_locator_info): Rename its parameter to fullname.
11916 (tui_set_locator_filename): Rename the definition to ...
11917 (tui_set_locator_fullname): ... here. Rename its parameter to
11918 fullname, updates its comment. Change tui_locator_element field to
11919 full_name.
11920 (tui_set_locator_info): Rename its parameter to fullname.
11921 (tui_set_locator_info): Rename callee to tui_set_locator_fullname.
11922 (tui_update_locator_filename): Rename to ...
11923 (tui_update_locator_fullname): ... here. Rename callee to
11924 tui_set_locator_fullname.
11925 (tui_show_frame_info): Replace symtab->filename refererence by
11926 symtab_to_fullname call.
11927 * tui/tui-stack.h (tui_update_locator_filename): Rename to ...
11928 (tui_update_locator_fullname): ... here.
11929 * tui/tui-winsource.c (tui_display_main): Rename the callee to
11930 tui_update_locator_fullname. Replace symtab->filename refererence by
11931 symtab_to_fullname call.
11932 * tui/tui.c (tui_show_source): Rename its parameter to fullname.
11933 Rename the callee to tui_update_locator_fullname.
11934 * tui/tui.h (tui_show_source): Rename its parameter to fullname.
11935
05cba821
JK
119362013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11937
11938 * ada-lang.c (user_select_syms): Replace symtab->filename refererences
11939 by symtab_to_filename_for_display calls.
11940 * breakpoint.c (print_breakpoint_location, resolve_sal_pc): Likewise.
11941 (clear_command): New variable sal_fullname, initialize it. Replace
11942 compare_filenames_for_search by filename_cmp with sal_fullname.
11943 (say_where, update_static_tracepoint): Replace symtab->filename
11944 refererences by symtab_to_filename_for_display calls.
11945 * cli/cli-cmds.c (edit_command, list_command, ambiguous_line_spec):
11946 Likewise.
11947 * dwarf2read.c: Include source.h.
11948 (fixup_go_packaging): Replace symtab->filename refererences by
11949 symtab_to_filename_for_display calls.
11950 * linespec.c (add_sal_to_sals): Rename variable filename to fullname.
11951 Replace symtab->filename refererences by symtab_to_filename_for_display
11952 calls.
11953 (create_sals_line_offset, convert_linespec_to_sals): New variable
11954 fullname, initialize it, replace symtab->filename reference by the
11955 variable.
11956 * linux-fork.c: Include source.h.
11957 (info_checkpoints_command): Replace symtab->filename refererences by
11958 symtab_to_filename_for_display calls.
11959 * macroscope.c (sal_macro_scope): Replace symtab->filename refererences
11960 by symtab_to_filename_for_display calls.
11961 * mdebugread.c: Include source.h.
11962 (psymtab_to_symtab_1): Replace symtab->filename refererences by
11963 symtab_to_filename_for_display calls.
11964 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
11965 (mi_cmd_file_list_exec_source_files): Likewise.
11966 * printcmd.c: Include source.h.
11967 (build_address_symbolic): Replace symtab->filename refererences by
11968 symtab_to_filename_for_display calls.
11969 * psymtab.c (partial_map_symtabs_matching_filename)
11970 (read_psymtabs_with_fullname): Call compare_filenames_for_search also
11971 with psymtab_to_fullname.
11972 * python/py-symtab.c (stpy_str): Replace symtab->filename refererences
11973 by symtab_to_filename_for_display calls.
11974 (stpy_get_filename): New variable filename, initialize it, use instead
11975 of symtab->filename refererences.
11976 (salpy_str): Make variable filename const char *. Replace
11977 symtab->filename refererences by symtab_to_filename_for_display calls.
11978 * skip.c: Include source.h and filenames.h.
11979 (skip_file_command): Remove const from the symtab variable. Replace
11980 symtab->filename refererences by symtab_to_fullname call.
11981 (function_name_is_marked_for_skip): New variables searched_for_fullname
11982 and fullname. Use them to search also with symtab's fullname.
11983 * source.c (find_source_lines): Replace symtab->filename refererences
11984 by symtab_to_filename_for_display calls.
11985 (print_source_lines_base): New variable filename, use it instead of
11986 symtab->filename. Replace symtab->filename refererences by
11987 symtab_to_filename_for_display calls.
11988 (line_info, forward_search_command): Replace symtab->filename
11989 refererences by symtab_to_filename_for_display calls.
11990 (reverse_search_command): Replace symtab->filename refererences by
11991 symtab_to_filename_for_display calls. New variable filename for it.
11992 * stack.c (frame_info): Likewise.
11993 * symmisc.c: Include source.h.
11994 (dump_objfile, dump_symtab_1, maintenance_print_symbols)
11995 (maintenance_info_symtabs): Replace symtab->filename refererences by
11996 symtab_to_filename_for_display calls.
11997 * symtab.c (iterate_over_some_symtabs): Call
11998 compare_filenames_for_search also with symtab_to_fullname.
11999 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Replace
12000 symtab->filename refererences by symtab_to_filename_for_display calls.
12001 (find_line_symtab): Replace symtab->filename refererences by
12002 symtab_to_filename_for_display calls.
12003 (file_matches): Replace filename_cmp by compare_filenames_for_search.
12004 (print_symbol_info): Make the last parameter const char *. New
12005 variable s_filename. Use it in the function.
12006 (symtab_symbol_info): Make the last_filename variable const char *.
12007 Replace symtab->filename refererences by symtab_to_filename_for_display
12008 calls.
12009 (rbreak_command): New variable fullname. Use it. Replace
12010 symtab->filename refererence by symtab_to_filename_for_display call.
12011 * tracepoint.c (set_traceframe_context, trace_find_line_command)
12012 (print_one_static_tracepoint_marker): Replace symtab->filename
12013 refererences by symtab_to_filename_for_display calls.
12014 * tui/tui-source.c (tui_set_source_content): New variables filename and
12015 s_filename. Replace symtab->filename refererences by this variable.
12016 Replace other symtab->filename refererences by
12017 symtab_to_filename_for_display calls.
12018
1b56eb55
JK
120192013-02-03 Eldar Gaynetdinov <hal9000ed2k@gmail.com>
12020 Jan Kratochvil <jan.kratochvil@redhat.com>
12021
12022 Add a new variable that controls a way in which filenames are
12023 displayed.
12024 * NEWS (set filename-display): New entry.
12025 * source.c (filename_display_basename, filename_display_relative)
12026 (filename_display_absolute, filename_display_kind_names)
12027 (filename_display_string, show_filename_display_string)
12028 (symtab_to_filename_for_display): New.
12029 (_initialize_source): Added initialization of 'filename-display'
12030 variable.
12031 * source.h (symtab_to_filename_for_display): Added declaration.
12032 * stack.c (print_frame): Added new variable and calling of a new
12033 function and condition with this variable. Changed third argument of
12034 calling of a function.
12035
aa079c93
JK
120362013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12037
12038 * tui/tui-data.c (init_win_info, tui_del_window, tui_free_window):
12039 Rename field reference filename to fullname.
12040 * tui/tui-data.h (struct tui_source_info): Rename field filename to
12041 fullname. New comment for it.
12042 * tui/tui-source.c (tui_set_source_content): Rename field reference
12043 filename to fullname. Initialize field by symtab_to_fullname now.
12044 * tui/tui-winsource.c (tui_update_breakpoint_info): Rename field
12045 reference filename to fullname. Use symtab_to_fullname during
12046 comparison.
12047
652a8996
JK
120482013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12049
12050 Code cleanup.
12051 * dwarf2read.c (dw2_expand_symtabs_with_filename): Rename to ...
12052 (dw2_expand_symtabs_with_fullname): ... here. Rename parameter
12053 filename to fullname. Rename variable this_name to this_fullname.
12054 Lowercase FILENAME_CMP call.
12055 (dw2_find_symbol_file): New comment for the returned string.
12056 (dwarf2_gdb_index_functions): Rename the function to
12057 dw2_expand_symtabs_with_fullname.
12058 * psymtab.c (read_psymtabs_with_filename): Rename to ...
12059 (read_psymtabs_with_fullname): ... here. Rename parameter filename to
12060 fullname.
12061 (psym_functions): Rename the function to read_psymtabs_with_fullname.
12062 * symfile.h (struct quick_symbol_functions): Rename field
12063 expand_symtabs_with_filename to expand_symtabs_with_fullname and its
12064 parameter filename to fullname. Document returned string meaning for
12065 find_symbol_file.
12066 * symtab.c (find_line_symtab): Rename the called function to
12067 expand_symtabs_with_fullname.
12068
af529f8f
JK
120692013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12070
12071 Code cleanup.
12072 * breakpoint.c (clear_command): Remove variable is_abs, unify the
12073 call of filename_cmp with compare_filenames_for_search.
12074 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove variable
12075 is_abs, unify the call of FILENAME_CMP with
12076 compare_filenames_for_search. New gdb_asserts for real_path and name.
12077 Unify the call of compare_filenames_for_search with FILENAME_CMP.
12078 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
12079 * symfile.h (struct quick_symbol_functions): Extend the comment for
12080 map_symtabs_matching_filename.
12081 * symtab.c (compare_filenames_for_search): Remove the function comment
12082 relative path requirement. Handle absolute filenames, with a comment.
12083 (iterate_over_some_symtabs): Remove variable is_abs, unify the call of
12084 FILENAME_CMP with compare_filenames_for_search. New gdb_asserts for
12085 real_path and name. Unify the call of compare_filenames_for_search
12086 with FILENAME_CMP.
12087 (iterate_over_symtabs): New gdb_assert on REAL_PATH.
12088
2f202fde
JK
120892013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12090
12091 Code cleanup.
12092 * breakpoint.c (print_breakpoint_location): Replace bp_location field
12093 source_file references by symtab field references. Remove variables
12094 sal and fullname.
12095 (momentary_breakpoint_from_master, add_location_to_breakpoint):
12096 (clear_command, say_where): Replace bp_location field source_file
12097 references by symtab field references.
12098 (bp_location_dtor): Remove the source_file reference.
12099 (update_static_tracepoint): Replace bp_location field source_file
12100 references by symtab field references.
12101 (breakpoint_free_objfile): New function.
12102 * breakpoint.h (struct bp_location): Extend the comment for line_number.
12103 Replace the field source_file by field symtab, extend its comment.
12104 (breakpoint_free_objfile): New declaration.
12105 * objfiles.c (free_objfile): Call breakpoint_free_objfile.
12106 * tui/tui-winsource.c (tui_update_breakpoint_info): Replace bp_location
12107 field source_file references by symtab field references.
12108
f5b95b50
JK
121092013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12110
12111 Replace xfullpath calls by gdb_realpath calls.
12112 * cli/cli-cmds.c (find_and_open_script): Remove xfullpath from the
12113 function comment.
12114 * dwarf2read.c (dw2_map_expand_apply): Remove parameter full_path.
12115 Remove it from the iterate_over_some_symtabs call.
12116 (dw2_map_symtabs_matching_filename): Remove parameter full_path.
12117 Remove it from the dw2_map_expand_apply calls, remove a block handling
12118 it.
12119 * psymtab.c (partial_map_expand_apply): Remove parameter full_path.
12120 Remove it from the iterate_over_some_symtabs call.
12121 (partial_map_symtabs_matching_filename): Remove parameter full_path.
12122 Remove it from the partial_map_expand_apply calls, remove a block
12123 handling it. Drop gdb_realpath call and cleanups from the real_path
12124 handling.
12125 * source.c (openp): Drop the comment part about xfullpath. Replace
12126 xfullpath calls by gdb_realpath calls.
12127 (find_and_open_source): Replace xfullpath call by gdb_realpath call.
12128 * symfile.h (struct quick_symbol_functions): Remove parameter full_path
12129 from method map_symtabs_matching_filename and its comment.
12130 * symmisc.c (maintenance_print_msymbols): Replace xfullpath call by
12131 gdb_realpath call.
12132 * symtab.c (iterate_over_some_symtabs): Remove parameter full_path,
12133 remove it also from the function comment, remove a block handling it.
12134 Drop gdb_realpath call and cleanups from the real_path handling.
12135 (iterate_over_symtabs): Drop variable full_path and its use.
12136 * symtab.h (iterate_over_some_symtabs): Remove parameter full_path.
12137 * utils.c (xfullpath): Remove.
12138 * utils.h (xfullpath): Remove.
12139
d78489bf
AT
121402013-02-01 Andreas Tobler <andreast@fgznet.ch>
12141
12142 * Makefile.in (ALL_TARGET_OBS): Add ppc64-tdep.o.
12143 (HFILES_NO_SRCDIR): Add ppc64-tdep.h.
12144 (ALLDEPFILES): Add ppc64-tdep.c.
12145 * configure.tgt (powerpc-*-linux* | powerpc64-*-linux*): Add
12146 ppc64-tdep.o to gdb_target_obs.
12147 * ppc64-tdep.h: New file.
12148 * ppc64-tdep.c: New file.
12149 (insn_d, insn_ds, insn_xfx, ppc64_desc_entry_point): Move from
12150 ppc-linux-tdep.c to here.
12151 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN)
12152 (PPC64_STANDARD_LINKAGE2_LEN): Likewise and use ARRAY_SIZE macro.
12153 (ppc64_standard_linkage1_target, ppc64_standard_linkage2_target)
12154 (ppc64_standard_linkage3_target, ppc64_skip_trampoline_code): Move
12155 from ppc-linux-tdep.c to here.
12156 (ppc64_convert_from_func_ptr_addr): Rename from
12157 ppc64_linux_convert_from_func_ptr_addr to
12158 ppc64_convert_from_func_ptr_addr and move from ppc-linux-tdep.c to
12159 here.
12160 * rs6000-tdep.c:
12161 (read_insn): Move from ppc-linux-tdep.c to here.
12162 (insns_match_pattern, insn_d_field, insn_ds_field): Move
12163 from ppc-linux-tdep.c to here and rename them with the ppc_ prefix.
12164 * ppc-linux-tdep.c: Include ppc64-tdep.h.
12165 Removed above functions.
12166 (ppc_linux_init_abi): Adjust.
12167
8db60374
AR
121682013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
12169
12170 * ada-valprint.c (ada_print_floating): Remove unused 'len'.
12171
f2e5f4ce
AR
121722013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
12173
12174 * ada-lang.c (assign_aggregate): Remove unused 'is_array_aggregate'.
12175
c1f7d745
PA
121762013-02-01 Pedro Alves <palves@redhat.com>
12177
12178 * dummy-frame.c (deprecated_pc_in_call_dummy): Delete function.
12179 * frame.h (deprecated_pc_in_call_dummy): Delete declaration.
12180
8a92335b
JK
121812013-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
12182
12183 * elfread.c (elf_symfile_read): Limit separate debug info additions to
12184 files with no separate debug info.
12185 * objfiles.c (add_separate_debug_objfile): Add gdb_assert calls.
12186 * symfile.c (read_symbols): Call find_separate_debug_file_in_section
12187 only for files with no separate debug info.
12188
8eacb197
TT
121892013-01-31 Tom Tromey <tromey@redhat.com>
12190
12191 * jit.c (jit_program_space_data): Rename from jit_inferior_data;
12192 change type.
12193 (struct jit_program_space_data): Rename from jit_inferior_data.
12194 Update comments.
12195 (get_jit_program_space_data): Rename from get_jit_inferior_data.
12196 Change return type. Attach data to program space.
12197 (jit_program_space_data_cleanup): Rename from
12198 jit_inferior_data_cleanup; change argument type.
12199 (jit_read_descriptor): Change 'inf_data' argument to 'ps_data',
12200 change type.
12201 (jit_register_code): Update.
12202 (jit_update_inferior_cache): Remove.
12203 (jit_breakpoint_deleted): Get jit data from the location's program
12204 space.
12205 (jit_breakpoint_re_set_internal): Rename 'inf_data' argument to
12206 'ps_data', change type.
12207 (jit_inferior_init, jit_breakpoint_re_set_internal)
12208 (jit_event_handler): Update.
12209 (free_objfile_data): Get data from objfile's program space.
12210 (_initialize_jit): Update.
12211
f25c0135
TT
122122013-01-31 Tom Tromey <tromey@redhat.com>
12213
12214 PR gdb/13987:
12215 * jit.c (struct jit_inferior_data) <cached_code_address,
12216 jit_breakpoint>: New fields.
12217 (jit_breakpoint_re_set_internal): Fix logging. Only create
12218 breakpoint if cached address has changed.
12219 (jit_update_inferior_cache, jit_breakpoint_deleted): New
12220 functions.
12221 (_initialize_jit): Register breakpoint deleted observer.
12222
974a734b
AR
122232013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12224
12225 * infrun.c (handle_syscall_event): Remove unused gdbarch.
12226 (save_infcall_suspend_state): Ifdef out unused inf.
12227 (restore_infcall_suspend_state): Ifdef out unused inf.
12228 * jit.c (jit_register_code): Remove unused i, b, inf_data.
12229 (jit_frame_sniffer): Remove unused inf_data.
12230
df54f8eb
AR
122312013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12232
12233 * c-exp.y (classify_inner_name): Remove unused type.
12234 * c-lang.c (c_printstr): Remove unused byte_order, i, things_printed,
12235 in_quotes, need_comma, wchar_buf, output, cleanup, iter, finished,
12236 need_escape.
12237 (c_get_string): Remove unused kind.
12238 * c-typeprint.c (c_type_print_args): Remove unused i, len, args, table2.
12239
5799c0b9
AR
122402013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12241
12242 * charset.c (intermediate_encoding): Remove unused i.
12243 * completer.c (signal_completer): Remove unused i.
12244 * continuations.c (discard_my_continuations_1): Remove unused
12245 continuation_ptr.
12246 * corelow.c (core_close): Remove unuseD name.
12247 (get_core_siginfo): Remove unused pid.
12248 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Remove unused
12249 i, cps.
12250 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove unused base_offset.
12251 (loclist_describe_location): Remove unused first.
12252 * event-top.c (command_line_handler): Remove unused got_eof.
12253 * exec.c (exec_close_1): Remove unused need_symtab_cleanup.
12254 (resize_section_table): Remove unused old_value.
12255 * gdb_bfd.c (gdb_bfd_map_section): Remove unused header.
12256 * gnu-v3-abi.c (compute_vtable_size): Remove unused addr.
12257 * i386-tdep.c (i386_process_record): Remove unused rex.
12258 * infcmd.c (get_return_value): Remove unused uiout.
12259 * jv-lang.c (type_from_class): Remove unused is_array.
12260 * jv-valprint.c (java_val_print): Remove unused i.
12261 * linux-nat.c (linux_nat_stop_lwp): Remove unused ptid.
12262 * linux-thread-db.c (thread_db_find_new_threads_2): Remove unuseD pid.
12263 * m2-typeprint.c (m2_print_type): Remove unused code.
12264 * macroexp.c (get_character_constant): Remove unused body_start.
12265 (macro_stringify): Remove unused result.
12266 * objc-lang.c (find_methods): Remove unused gdbarch.
12267 * objfiles.c (filter_overlapping_sections): Remove unused abfd1, abfd2.
12268 * regcache.c (regcache_cooked_read): Remove unused gdbarch.
12269 * stack.c (print_frame_args): Remove unused summary.
12270 * thread.c (thread_apply_command): Remove unused p.
12271 * valarith.c (value_x_unop): Remove unused mangle_ptr.
12272 * valops.c (search_struct_method): Remove unused skip.
12273 * valprint.c (generic_val_print): Remove unused byte_order.
12274 * varobj.c (varobj_update): Remove unused changed.
12275 * cli/cli-cmds.c (complete_command): Remove unused next_item.
12276 (alias_command): Remove unused c.
12277 * mi/mi-cmd-catch.c (mi_catch_load_unload): Remove unused c.
12278 * mi/mi-main.c (mi_cmd_data_write_register_values): Remove unused
12279 format.
12280 (mi_cmd_data_write_memory): Remove unused word_format.
12281 (mi_cmd_data_write_memory_bytes): Remove unused r.
12282 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Remove unused
12283 p_start, p_end.
12284 * python/python.c (_initialize_python): Remove unused cmd_name, cmd.
12285 * tui/tui-disasm.c (tui_set_disassem_content): Remove unused
12286 line_width.
12287
c656bca5
AR
122882013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12289
12290 * dwarf2-frame.c (dwarf2_compile_cfa_to_ax): Remove unused num_regs.
12291 * symtab.c (iterate_over_symtabs): Remove unused s.
12292 (find_pc_sect_symtab): Remove unused pspAce.
12293 (find_pc_sect_line): Remove unused alt_symtab.
12294 (find_pcs_for_symtab_line): Remove unused ix, previous_function.
12295 (completion_list_add_name): Remove unused newsize.
12296
7078baeb
TT
122972013-01-31 Tom Tromey <tromey@redhat.com>
12298
12299 PR c++/14998:
12300 * dwarf2read.c (read_tag_ptr_to_member_type): Handle
12301 TYPE_CODE_FUNC.
12302
c2e8b827
AR
123032013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12304
12305 * target.c (target_read_string): Remove unused origlen.
12306
0e43993a
AR
123072013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12308
12309 * auto-load.c (auto_load_expand_dir_vars): Remove unused dir_vec.
12310 * ax-gdb.c (gen_printf): Remove unused expr, i, bot, fr, flen, fmt.
12311 * ax-general.c (ax_print): Remove unused is_float.
12312 * blockframe.c (block_innermost_frame): Remove unused start, end.
12313 * break-catch-sig.c (catch_signal_command): Remove unused gdbarch.
12314
765a97ab
AR
123152013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12316
12317 * solib-svr4.c (svr4_keep_data_in_core): Remove unused lmo.
12318 (svr4_read_so_list): Remove unused lmo.
12319 * solib-target.c (solib_target_relocate_section_addresses): Remove
12320 unused flags.
12321
a99dad3d
TT
123222013-01-30 Tom Tromey <tromey@redhat.com>
12323
12324 * hppa-tdep.c (read_unwind_info): Use SECT_OFF_TEXT, not "0".
12325
3bff1ecd
TT
123262013-01-30 Tom Tromey <tromey@redhat.com>
12327
12328 * symfile.c (get_file_crc): Use bfd_calc_gnu_debuglink_crc32.
12329 * utils.c (gnu_debuglink_crc32): Remove.
12330 * utils.h (gnu_debuglink_crc32): Don't declare.
12331
7d455152
TT
123322013-01-30 Tom Tromey <tromey@redhat.com>
12333
12334 * dwarf2read.c (compute_delayed_physnames, read_call_site_scope)
12335 (read_structure_type, read_enumeration_type): Remove cast.
12336
abee88f2
TT
123372013-01-30 Tom Tromey <tromey@redhat.com>
12338
12339 * dwarf2read.c (read_namespace_type): Remove cast.
12340 (read_typedef): Likewise.
12341
8d9878a4
TT
123422013-01-29 Tom Tromey <tromey@redhat.com>
12343
12344 * dwarf2read.c (free_dwo_file): Remove assert.
12345
a543d2a9
TT
123462013-01-29 Tom Tromey <tromey@redhat.com>
12347
12348 * value.c (deprecated_set_value_modifiable): Remove.
12349 * value.h (deprecated_set_value_modifiable): Remove.
12350
bed911e5
DE
123512013-01-28 Doug Evans <dje@google.com>
12352
12353 * dwarf2loc.c (dwarf2_find_location_expression): Don't add base address
12354 to addresses from dwo files.
12355
28c64fc2
SCR
123562013-01-25 Siva Chandra Reddy <sivachandra@google.com>
12357
12358 * valops.c (find_overload_match): Remove unused argument 'lax'.
12359 * value.h: Remove unused argument 'lax' from the declaration of
12360 find_overload_match.
12361 * eval.c (value_subexp_standard): Do not pass a 'lax' argument
12362 to find_overload_match.
12363 * valarith.c (value_user_defined_cpp_op): Do not pass a 'lax'
12364 argument to find_overload_match.
12365
4d4ec4e5
TT
123662013-01-25 Tom Tromey <tromey@redhat.com>
12367
12368 * dwarf2read.c (processing_has_namespace_info): Remove.
12369 (struct dwarf2_cu) <processing_has_namespace_info>: New field.
12370 (process_die, read_func_scope, dwarf2_start_symtab)
12371 (new_symbol_full): Update.
12372
195a3f6c
TT
123732013-01-25 Tom Tromey <tromey@redhat.com>
12374
12375 * cp-namespace.c (cp_set_block_scope): Remove.
12376 * cp-support.h (cp_set_block_scope): Remove.
12377 * dbxread.c: Include block.h.
12378 (cp_set_block_scope): New function.
12379 (process_one_symbol): Update.
12380 * dwarf2read.c (read_func_scope): Use block_set_scope.
12381
8ba0730a
PA
123822013-01-25 Pedro Alves <palves@redhat.com>
12383
12384 * remote.c (add_current_inferior_and_thread): Tweak comment.
12385
12aaed36
TT
123862013-01-25 Tom Tromey <tromey@redhat.com>
12387
12388 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
12389 (cp_add_using_directive): Add 'copy_names' argument.
12390 * cp-support.h (cp_add_using_directive): Update.
12391 (struct using_direct) <import_src, import_dest, alias,
12392 declaration>: Now const.
12393 * dwarf2read.c (read_import_statement): Use obconcat.
12394 Don't copy names passed to cp_add_using_directive.
12395
7fc75ca7
TT
123962013-01-25 Tom Tromey <tromey@redhat.com>
12397
12398 * c-exp.y (qualified_name): Use TYPE_SAFE_NAME.
12399
3405876a
PA
124002013-01-25 Pedro Alves <palves@redhat.com>
12401
12402 * remote.c (stop_reply_extract_thread): New.
12403 (add_current_inferior_and_thread): New parameter 'wait_status'.
12404 Handle it.
12405 (remote_start_remote): Pass wait status to
12406 add_current_inferior_and_thread.
12407 (extended_remote_run): Update comment.
12408 (extended_remote_create_inferior_1): Pass wait status to
12409 add_current_inferior_and_thread.
12410
8954db33
AB
124112013-01-25 Andrew Burgess <aburgess@broadcom.com>
12412 Ulrich Weigand <uweigand@de.ibm.com>
12413
12414 * valarith.c (value_vector_widen): New function for replicating a
12415 scalar into a vector.
12416 (value_binop): Use value_vector_widen to widen scalar to vector
12417 rather than casting, this better matches gcc C behaviour.
12418 * valops.c (value_casst): Update logic for casting between vector
12419 types, and for casting from scalar to vector, try to match gcc C
12420 behaviour.
12421 * value.h (value_vector_widen): Declare.
12422 * opencl-lang.c (opencl_value_cast): New opencl specific casting
12423 function, handle special case for casting scalar to vector.
12424 (opencl_relop): Use opencl_value_cast.
12425 (evaluate_subexp_opencl): Use opencl_value_cast instead of
12426 value_cast, and handle BINOP_ASSIGN, UNOP_CAST, and UNOP_CAST_TYPE
12427 in order to use opencl_value_cast.
12428
843b20dc
YQ
124292013-01-25 Yao Qi <yao@codesourcery.com>
12430
12431 * event-loop.c: Include "queue.h".
12432 (gdb_event_p): New typedef.
12433 (DECLARE_QUEUE_P): Use.
12434 (DEFINE_QUEUE_P): Use.
12435 (async_queue_event): Remove.
12436 (gdb_event_xfree): New.
12437 (initialize_event_loop): New.
12438 (process_event): Use QUEUE macros.
12439 (event_queue): Remove.
12440 (gdb_wait_for_event): Caller update.
12441 (check_async_event_handlers): Likewise.
12442 (poll_timers): Likewise.
12443 * event-loop.h (initialize_event_loop): Declare.
12444 * event-loop.c (gdb_event_xfree): New.
12445 * top.c (gdb_init): Call initialize_event_loop.
12446
20ad8856
YQ
124472013-01-25 Yao Qi <yao@codesourcery.com>
12448
12449 * event-loop.c (async_queue_event): Remove one parameter
12450 'position'. Remove code handling 'position' == TAIL.
12451 (gdb_wait_for_event): Caller update.
12452 (check_async_event_handlers): Caller update.
12453 (poll_timers): Caller update.
12454 * event-loop.h (enum queue_position): Remove.
12455
3bbbe775
MK
124562013-01-25 Maxim Kuvyrkov <maxim@kugelworks.com>
12457
12458 * MAINTAINERS: Update my email.
12459
a87d9ac4
YQ
124602013-01-25 Yao Qi <yao@codesourcery.com>
12461
12462 * main.c (print_gdb_help): Remove "--epoch" from the help
12463 message.
12464
2077afdd
TD
124652013-01-24 Ulrich Weigand  <uweigand@de.ibm.com>
12466
12467 * symtab.c (skip_prologue_using_sal): Consider a file
12468 change the same as an increased line number
12469
63da4037
TD
124702013-01-24 Tiago Stürmer Daitx  <tdaitx@linux.vnet.ibm.com>
12471
30e8ee25 12472 * MAINTAINERS (Write After Approval): Add myself to the list.
63da4037 12473
45e6c716
TT
124742013-01-24 Tom Tromey <tromey@redhat.com>
12475
12476 * ada-lang.h (ada_decode_symbol): Make return type const.
12477 * ada-lang.c (ada_decode_symbol): Likewise.
12478
b1ae631a
DE
124792013-01-23 Doug Evans <dje@google.com>
12480
12481 * linespec.c (find_linespec_symbols): Make static.
12482
55a78401
SDJ
124832013-01-23 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
12484
12485 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Set correct
12486 type on float conversion for complex type.
12487
bea883fd
SCR
124882013-01-23 Siva Chandra Reddy <sivachandra@google.com>
12489
12490 Add a new class gdb.Architecture which exposes GDB's
12491 internal representation of architecture via GDB Python API.
12492 * Makefile.in: Add entries corresponding to the new file
12493 python/py-arch.c.
12494 * NEWS (Python Scripting): Add entries for the new class
12495 gdb.Architecture and the new method gdb.Frame.architecture.
12496 * python/py-arch.c: Implement gdb.Architecture class.
12497 * python/py-frame.c (frapy_arch): Implement the method
12498 gdb.Frame.architecture().
12499 (frame_object_methods): Add 'architecture' to the method table.
12500 * python/python-internal.h: Add declarations of new utility
12501 functions.
12502 * python/python.c (_initialize_python): Initialize
12503 gdb.Architecture class.
12504
796a7ff8
DE
125052013-01-23 Doug Evans <dje@google.com>
12506
12507 Work around binutils/15021.
12508 * dwarf2read.c (dwarf2_per_cu_data): Split imported_symtabs and
12509 type_unit_group out of union s. All uses updated.
12510 (read_index_from_section): Watch for index version 8.
12511 (follow_die_sig): If using .gdb_index version <= 7, record the TU as
12512 an imported symtab.
12513 (write_psymtabs_to_index): Increment version number to 8.
12514
0928e93d
PA
125152013-01-22 Pedro Alves <palves@redhat.com>
12516
12517 * annotate.c (breakpoint_changed): Skip if breakpoint is not
12518 user-visible.
12519
9c97429f
PA
125202013-01-22 Pedro Alves <palves@redhat.com>
12521
12522 * annotate.c (annotate_breakpoints_changed): Rename to ...
12523 (annotate_breakpoints_invalid): ... this. Make static.
12524 (breakpoint_changed): Adjust.
12525 (_initialize_annotate): Always install the observers. Install a
12526 "breakpoint_created" observer.
12527 * annotate.h (annotate_breakpoints_changed): Delete declaration.
12528 * breakpoint.c (set_breakpoint_condition)
12529 (breakpoint_set_commands, do_map_commands_command)
12530 (init_raw_breakpoint, clear_command, set_ignore_count)
12531 (enable_breakpoint_disp): No longer call
12532 annotate_breakpoints_changed.
12533
bd00c694
PA
125342013-01-22 Pedro Alves <palves@redhat.com>
12535
12536 * annotate.c: Include "inferior.h".
12537 (frames_invalid_emitted)
12538 (breakpoints_invalid_emitted): New globals.
12539 (async_background_execution_p): New function.
12540 (annotate_breakpoints_changed, annotate_frames_invalid): Skip
12541 emitting the annotation if it has already been emitted.
12542 (annotate_display_prompt): New function.
12543 * annotate.h (annotate_display_prompt): New declaration.
12544 * event-top.c: Include annotate.h.
12545 (display_gdb_prompt): Call annotate_display_prompt.
12546
187d10dd
PA
125472013-01-22 Pedro Alves <palves@redhat.com>
12548
12549 * annotate.c (ignore_count_changed): Delete.
12550 (annotate_breakpoints_changed): Don't clear ignore_count_changed.
12551 (annotate_ignore_count_change): Delete.
12552 (annotate_stopped): Don't emit a delayed breakpoints-changed
12553 annotation.
12554 * annotate.h (annotate_ignore_count_change): Delete.
12555 * breakpoint.c (bpstat_check_breakpoint_conditions): Don't call
12556 annotate_ignore_count_change.
12557
d84cf7eb
TT
125582013-01-22 Tom Tromey <tromey@redhat.com>
12559
12560 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>: Only
12561 require_rvalue for a register location.
12562
8f1d5693
MK
125632013-01-21 Marc Khouzam <marc.khouzam@ericsson.com>
12564
12565 * breakpoint.c (print_one_breakpoint_location): Add MI
12566 field 'thread-groups' when printing a breakpoint.
12567 (output_thread_groups): New function.
12568
aa6199c6
SCR
125692013-01-21 Siva Chandra Reddy <sivachandra@google.com>
12570
12571 * python/lib/gdb/commands/explore.py
12572 (CompoundExplorer.explore_expr): Correct the name of a method
12573 being invoked.
12574 (ExploreTypeCommand.invoke): Add a missing 'return'.
12575
d2afef13
TT
125762013-01-21 Tom Tromey <tromey@redhat.com>
12577
12578 * gdb_obstack.h (obconcat): Move declaration here, from...
12579 * symfile.h (obconcat): ... here.
12580 * gdb_obstack.c: New file.
12581 (obconcat): Move from...
12582 * symfile.c (obconcat): ... here.
12583 * Makefile.in (SFILES): Add gdb_obstack.c.
12584 (COMMON_OBS): Add gdb_obstack.o.
12585
10f0c4bb
TT
125862013-01-21 Tom Tromey <tromey@redhat.com>
12587
12588 * symfile.h (obsavestring): Don't declare.
12589 * symfile.c (obsavestring): Remove.
12590 * ada-exp.y: Use obstack_copy0, not obsavestring.
12591 * ada-lang.c: Use obstack_copy0, not obsavestring.
12592 * coffread.c: Use obstack_copy0, not obsavestring.
12593 * cp-namespace.c: Use obstack_copy0, not obsavestring.
12594 * dbxread.c: Use obstack_copy0, not obsavestring.
12595 * dwarf2read.c: Use obstack_copy0, not obsavestring.
12596 * jit.c: Use obstack_copy0, not obsavestring.
12597 * mdebugread.c: Use obstack_copy0, not obsavestring.
12598 * psymtab.c: Use obstack_copy0, not obsavestring.
12599 * stabsread.c: Use obstack_copy0, not obsavestring.
12600 * xcoffread.c: Use obstack_copy0, not obsavestring.
12601
86f62fd7
TT
126022013-01-21 Tom Tromey <tromey@redhat.com>
12603
12604 * dwarf2read.c (fixup_go_packaging): Save package name
12605 on objfile obstack.
12606 * gdbtypes.c (init_type): Don't copy name.
12607
15d034d0
TT
126082013-01-21 Tom Tromey <tromey@redhat.com>
12609
12610 * dwarf2read.c (struct partial_die_info) <name, scope>: Now
12611 const.
12612 (struct attribute) <u.str>: Now const.
12613 (struct fnfieldlist) <name>: Now const.
12614 (dw2_get_file_names_reader, init_cutu_and_read_dies): Update.
12615 (partial_die_parent_scope): Make return type const.
12616 (partial_die_full_name, add_partial_symbol): Update.
12617 (dwarf2_compute_name, dwarf2_full_name, dwarf2_physname): Make
12618 'name' const.
12619 (find_file_and_directory): Make 'name' and 'comp_dir' const.
12620 (read_file_scope, read_func_scope, dwarf2_add_field)
12621 (dwarf2_add_member_fn, read_structure_type)
12622 (process_enumeration_scope, read_array_type, read_module_type)
12623 (read_base_type, read_subrange_type): Update.
12624 (dwarf2_start_symtab): Make 'name' and 'comp_dir' const.
12625 (new_symbol_full, guess_full_die_structure_name): Update.
12626 (dwarf2_canonicalize_name): Return const type. Make 'name' const.
12627 (dwarf2_name): Return const type.
12628 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make 'comp_dir'
12629 const.
12630
748e18ae
TT
126312013-01-21 Tom Tromey <tromey@redhat.com>
12632
12633 * gdbtypes.c (init_type): Make 'name' const.
12634 * gdbtypes.h (init_type): Update.
12635
46212e0b
TT
126362013-01-21 Tom Tromey <tromey@redhat.com>
12637
12638 * buildsym.c (patch_subfile_names): Use set_last_source_file.
12639 (start_symtab): Make 'name' and 'dirname' const. Use
12640 set_last_source_file.
12641 (restart_symtab, reset_symtab_globals): Use set_last_source_file.
12642 (last_source_file): Define. Now static.
12643 (set_last_source_file, get_last_source_file): New functions.
12644 * buildsym.h (last_source_file): Don't declare.
12645 (start_symtab): Update.
12646 (set_last_source_file, get_last_source_file): Declare.
12647 * coffread.c (complete_symtab): Use set_last_source_file.
12648 (coff_end_symtab): Likewise.
12649 (coff_symtab_read): Use set_last_source_file, get_last_source_file.
12650 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Use
12651 set_last_source_file.
12652 (process_one_symbol): Use get_last_source_file.
12653 * mdebugread.c (parse_partial_symbols): Use set_last_source_file.
12654 (psymtab_to_symtab_1): Use get_last_source_file.
12655 * xcoffread.c (process_linenos): Use get_last_source_file.
12656 (complete_symtab): Use set_last_source_file.
12657 (read_xcoff_symtab): Use set_last_source_file, get_last_source_file.
12658 (scan_xcoff_symtab): Use set_last_source_file.
12659
9d2ceabe
TT
126602013-01-21 Tom Tromey <tromey@redhat.com>
12661
12662 * symtab.c (struct demangled_name_entry) <mangled>: Now const.
12663 (symbol_set_names): Remove casts. Handle field const-ness.
12664
cfc594ee
TT
126652013-01-21 Tom Tromey <tromey@redhat.com>
12666
12667 * dwarf2read.c (new_symbol_full): Remove cast.
12668 * symtab.c (symbol_set_demangled_name): Make 'name' const.
12669 * symtab.h (symbol_set_demangled_name): Update.
12670
5484b13a
TT
126712013-01-21 Tom Tromey <tromey@redhat.com>
12672
12673 * main.c (captured_main): Call bfd_init.
12674
1605ef26
TT
126752013-01-21 Tom Tromey <tromey@redhat.com>
12676
12677 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Don't set default ABI.
12678 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Set default ABI.
12679 * minsyms.c (install_minimal_symbols): Don't check for _Z symbols.
12680 * NEWS: Update.
12681
3b74cdc3
JK
126822013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
12683
12684 * symmisc.c (maintenance_print_msymbols): Check also ST_DEV.
12685
5a352474
JK
126862013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
12687
12688 Fix gdb.fortran/common-block.exp crash in PIE mode.
12689 * dwarf2read.c (new_symbol_full) <DW_TAG_common_block>: Use
12690 LOC_COMMON_BLOCK.
12691 * f-valprint.c (info_common_command_for_block): Expect
12692 LOC_COMMON_BLOCK in gdb_assert.
12693 * symtab.h (struct general_symbol_info): Update comment for the
12694 common_block member.
12695 (domain_enum): Extend comment for the COMMON_BLOCK_DOMAIN member.
12696 (enum address_class): New member LOC_COMMON_BLOCK.
12697
c60797fd
DB
126982013-01-18 David Blaikie <dblaikie@gmail.com>
12699
12700 * MAINTAINERS (Write After Approval): Add "David Blaikie".
0cae7dfb 12701
46f35228
TT
127022013-01-18 Tom Tromey <tromey@redhat.com>
12703
12704 PR c++/14999:
12705 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>:
12706 Call require_rvalue.
12707
257e7a09
YQ
127082013-01-18 Yao Qi <yao@codesourcery.com>
12709
12710 * dbxread.c (dbx_psymtab_to_symtab): Delete the declaration.
12711 (dbx_read_symtab): New declaration.
12712 (dbx_psymtab_to_symtab): Delete.
12713 (dbx_read_symtab): Rename from dbx_psymtab_to_symtab.
12714 Rename parameter PST to SELF. Exchanged two parameters.
12715 (start_psymtab): Caller update.
12716 * dwarf2read.c (dwarf2_psymtab_to_symtab): Delete the declaration.
12717 (dwarf2_read_symtab): New declaration.
12718 (dwarf2_psymtab_to_symtab): Delete.
12719 (dwarf2_read_symtab): Rename from dwarf2_psymtab_to_symtab.
12720 Rename parameter PST to SELF. Exchanged two parameters.
12721 (create_partial_symtab): Caller update.
12722 * mdebugread.c (mdebug_psymtab_to_symtab): Delete.
12723 (mdebug_read_symtab): Rename from mdebug_psymtab_to_symtab.
12724 Rename parameter PST to SELF. Exchanged two parameters.
12725 (parse_partial_symbols, new_psymtab): Caller update.
12726 * psympriv.h (struct partial_symtab) <read_symtab>: Exchange
12727 two parameters.
12728 * psymtab.c (psymtab_to_symtab): Caller update.
12729 * xcoffread.c (xcoff_psymtab_to_symtab): Delete.
12730 (xcoff_read_symtab): Rename from xcoff_psymtab_to_symtab.
12731 Rename parameter PST to SELF. Exchanged two parameters.
12732 (xcoff_start_psymtab): Caller update.
12733
0de5618e
YQ
127342013-01-18 Yao Qi <yao@codesourcery.com>
12735
12736 * infrun.c (proceed): Rename local variable 'oneproc' to
12737 'force_step'.
12738
5c04624b
DE
127392013-01-17 Doug Evans <dje@google.com>
12740
848e3e78
DE
12741 * dwarf2read.c (dw2_build_type_unit_groups_reader): Delete.
12742 (dw2_build_type_unit_groups): Delete. All uses updated.
12743
5c04624b
DE
12744 * symtab.h (struct symbol_search): Add comment.
12745
d84fca2c
JK
127462013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
12747
12748 * symtab.c (compare_filenames_for_search): New comment for
12749 HAS_DRIVE_SPEC.
12750
6108433d
TT
127512013-01-17 Tom Tromey <tromey@redhat.com>
12752
12753 * cp-abi.c (cp_abi_completer): Fix typo in assignment.
12754
c89ffd86
JK
127552013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
12756
12757 * symtab.c (iterate_over_some_symtabs): New variable cleanups,
12758 initialize it by existing make_cleanup. Call new do_cleanups.
12759
db2b2972
TT
127602013-01-17 Tom Tromey <tromey@redhat.com>
12761
12762 * cp-abi.c (cp_abi_completer): New function.
12763 (_initialize_cp_abi): Set completer for "set cp-abi".
12764
be7d37a2
TT
127652013-01-17 Tom Tromey <tromey@redhat.com>
12766
12767 * mem-break.c: Remove obsolete comment.
12768 * bfin-tdep.c (bfin_breakpoint_from_pc): Fix comment.
12769
c9fb1240
SD
127702012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
12771
12772 * jit.c (jit_reader_load_command): Interpret the jit reader name
12773 as an absolute path if it begins with a forward slash.
12774
db334a01
SD
127752012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
12776
12777 PR gdb/14550
12778
12779 * jit.c (finalize_symtab): Ensure that only the global block has a
12780 NULL superblock.
12781
7d928dac
PA
127822013-01-17 Pedro Alves <palves@redhat.com>
12783
12784 * acinclude.m4: Include ../config/plugins.m4,
12785 ../config/largefile.m4 and ../config/lead-dot.m4. Add comments.
12786 * Makefile.in (aclocal_m4_deps): Update.
12787 * aclocal.m4: Renegerate.
12788
fb8cf7c5
DE
127892013-01-16 Doug Evans <dje@google.com>
12790
12791 * contrib/cc-with-tweaks.sh: Add references to Fission docs.
12792
ab04a2af
TT
127932013-01-16 Pedro Alves <palves@redhat.com>
12794 Tom Tromey <tromey@redhat.com>
12795
12796 PR cli/7221:
12797 * NEWS: Add "catch signal".
12798 * breakpoint.c (base_breakpoint_ops): No longer static.
12799 (bpstat_explains_signal): New function.
12800 (init_catchpoint): No longer static.
12801 (base_breakpoint_explains_signal): New function.
12802 (base_breakpoint_ops): Initialize new field.
12803 * breakpoint.h (enum bpstat_signal_value): New.
12804 (struct breakpoint_ops) <explains_signal>: New field.
12805 (bpstat_explains_signal): Remove macro, declare as function.
12806 (base_breakpoint_ops, init_catchpoint): Declare.
12807 * break-catch-sig.c: New file.
12808 * inferior.h (signal_catch_update): Declare.
12809 * infrun.c (signal_catch): New global.
12810 (handle_syscall_event): Update for change to
12811 bpstat_explains_signal.
12812 (handle_inferior_event): Likewise. Always handle random signals
12813 via bpstats.
12814 (signal_cache_update): Check signal_catch.
12815 (signal_catch_update): New function.
12816 (_initialize_infrun): Initialize signal_catch.
12817 * Makefile.in (SFILES): Add break-catch-sig.c.
12818 (COMMON_OBS): Add break-catch-sig.o.
12819
8ac3646f
TT
128202013-01-16 Tom Tromey <tromey@redhat.com>
12821
12822 * breakpoint.c (print_one_catch_fork, print_one_catch_vfork)
12823 (print_one_catch_solib, print_one_catch_syscall)
12824 (print_one_catch_exec, print_one_exception_catchpoint): Emit
12825 "catch-type".
12826
5a18e302
YQ
128272013-01-16 Yao Qi <yao@codesourcery.com>
12828
12829 * printcmd.c (current_display_number): Make it static.
12830
3f01d0d0
YQ
128312013-01-16 Yao Qi <yao@codesourcery.com>
12832
12833 * infcmd.c (step_once): Don't check '!single_inst' as it was
12834 checked before.
12835
1ed59174
JK
128362013-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
12837
12838 * dwarf2read.c (psymtab_include_file_name): Extend the function comment.
12839
44478ab3
TT
128402013-01-14 Tom Tromey <tromey@redhat.com>
12841
12842 * cli/cli-decode.c (add_setshow_string_noescape_cmd): Return the
12843 set command.
12844 * command.h (add_setshow_string_noescape_cmd): Update.
12845 * corefile.c (set_gnutarget_command): Remove trailing whitespace.
12846 (complete_set_gnutarget): New function.
12847 (_initialize_core): Set the "set gnutarget" completer.
12848
06d66ee9
TT
128492013-01-14 Tom Tromey <tromey@redhat.com>
12850
12851 PR symtab/14442:
12852 * c-typeprint.c (cp_type_print_method_args): Handle 'restrict'.
12853 (c_type_print_modifier): Likewise.
12854 * dwarf2read.c (read_tag_restrict_type): New function.
12855 (read_type_die_1): Handle DW_TAG_restrict_type.
12856 * gdbtypes.c (make_restrict_type): New function.
12857 (recursive_dump_type): Handle TYPE_RESTRICT.
12858 * gdbtypes.h (enum type_flag_values): Renumber.
12859 (enum type_instance_flag_value): Add
12860 TYPE_INSTANCE_FLAG_RESTRICT.
12861 (TYPE_RESTRICT): New macro.
12862 (make_restrict_type): Declare.
12863
c9bf0622
TT
128642013-01-14 Tom Tromey <tromey@redhat.com>
12865
12866 PR symtab/14931:
12867 * psymtab.c (struct psymtab_state): New.
12868 (discard_psymtabs_upto, make_cleanup_discard_psymtabs): New
12869 functions.
12870 * psympriv.h (make_cleanup_discard_psymtabs): Declare.
12871 * dwarf2read.c (dwarf2_build_psymtabs): Catch exceptions.
12872
44d594fd
PA
128732013-01-14 Richard Sharman <richard_sharman@mitel.com>
12874 Pedro Alves <palves@redhat.com>
12875
12876 PR remote/14786
12877
12878 * remote.c (remote_threads_info): Make a copy of the reply from
12879 qfThreadInfo and use that instead of rs->buf.
12880
442e4d9c
YQ
128812013-01-14 Yao Qi <yao@codesourcery.com>
12882
12883 * dbxread.c (dbx_psymtab_to_symtab_1): Don't check PST is NULL.
12884 (dbx_psymtab_to_symtab): Likewise.
12885 * dwarf2read.c (dwarf2_psymtab_to_symtab): Likewise.
12886 * mdebugread.c (mdebug_psymtab_to_symtab): Likewise.
12887 * xcoffread.c (xcoff_psymtab_to_symtab_1): Likewise.
12888
5b12a61c
JK
128892013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
12890
12891 * parse.c (parse_exp_in_context): New variable inner_chain. Call
12892 make_cleanup_restore_current_language. Call set_language. Move
12893 OLD_CHAIN and INNER_CHAIN cleanups.
12894 * utils.c (do_restore_current_language)
12895 (make_cleanup_restore_current_language): New functions.
12896 * utils.h (make_cleanup_restore_current_language): New declaration.
12897
f0a4b570
JK
128982013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
12899
12900 * source.c (symtab_to_fullname): Apply rewrite_source_path also for
12901 non-existing files.
12902
57b3c00c
JK
12903 * source.c (symtab_to_fullname): Do not prepend DIRNAME for
12904 non-existing files if FILENAME is already absolute.
12905
daefa854
JK
129062013-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
12907
12908 * macrocmd.c (macro_inform_no_debuginfo): Use puts_filtered instead of
12909 fputs_filtered. Append trailing newline.
12910
ca9c6ee2
YQ
129112013-01-11 Yao Qi <yao@codesourcery.com>
12912 Stan Shebs <stan@codesourcery.com>
12913
12914 * psymtab.c (init_psymbol_list): Clarify the comment.
12915
f28045c2
YQ
129162013-01-11 Yao Qi <yao@codesourcery.com>
12917
12918 * breakpoint.c (print_one_breakpoint_location): Remove dead code.
12919 (update_dprintf_command_list): Assert that 'printf_line' is
12920 non-null. Remove condition check.
12921
da5132d3
JK
129222013-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
12923
12924 Code cleanup.
12925 * psymtab.c (psymtab_to_fullname, psymtab_to_fullname): Make the return
12926 type const char *.
12927 * tui/tui-source.c (tui_source_is_displayed): Make the parameter fname
12928 const char *.
12929 * tui/tui-source.h (tui_source_is_displayed): Likewise.
12930
843e694d
AG
129312013-01-09 Anthony Green <green@moxielogic.com>
12932
12933 * cp-abi.c (cplus_print_vtable): Don't return value from void
12934 function.
12935 * ada-lang.c (re_set_catch_assert): Ditto.
12936
da51c347
DE
129372013-01-09 Doug Evans <dje@google.com>
12938
12939 * symfile.h (quick_symbol_functions): Delete member
12940 pre_expand_symtabs_matching. All uses removed.
12941 * dwarf2read.c (dw2_lookup_symbol): Implement.
12942 (dw2_do_expand_symtabs_matching): Delete.
12943 (dw2_pre_expand_symtabs_matching): Delete.
12944 (struct dw2_symtab_iterator): New type.
12945 (dw2_symtab_iter_init, dw2_symtab_iter_next): New functions.
12946 (dw2_expand_symtabs_for_function): Rewrite.
12947 (dwarf2_gdb_index_functions): Update.
12948 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Delete.
12949 (psym_functions): Update.
12950
b2259038
TT
129512013-01-09 Tom Tromey <tromey@redhat.com>
12952
12953 * config/pa/hpux.mh (NATDEPFILES): Remove somread.o.
12954 * configure: Rebuild.
12955 * configure.ac: Add somread.o to the build if BFD has SOM
12956 support.
12957 * somread.c: Include som/aout.h, not syms.h.
12958 (som_symtab_read): Use som_external_symbol_dictionary_record.
12959 Unpack records manually.
12960 (_initialize_somread): Declare.
12961
bdad4180
MF
129622012-01-08 Mike Frysinger <vapier@gentoo.org>
12963
12964 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx) [__x86_64__]:
12965 Cast return_address to 64bits.
12966
03cdf680
HZ
129672013-01-08 Hui Zhu <hui_zhu@mentor.com>
12968
12969 * printcmd.c: Remove define of function output_command.
12970 * tracepoint.c: Remove extern of function output_command.
12971 * valprint.h: (output_command): New extern.
12972
8a808554
TT
129732013-01-07 Tom Tromey <tromey@redhat.com>
12974
12975 * objc-lang.c (objc_emit_char, objc_printchar, objc_printstr):
12976 Remove.
12977 (objc_language_defn): Use c_printchar, c_printstr,
12978 c_emit_char.
12979
e93a8774
TT
129802013-01-07 Tom Tromey <tromey@redhat.com>
12981
12982 PR cli/7719:
12983 * NEWS: Update.
12984 * ada-valprint.c (printstr, print_field_values): Remove
12985 "inspect_it" code.
12986 * cp-valprint.c (cp_print_value_fields): Remove "inspect_it"
12987 code.
12988 * jv-valprint.c (java_print_value_fields): Remove "inspect_it"
12989 code.
12990 * m2-lang.c (m2_printstr): Remove "inspect_it" code.
12991 * main.c (captured_main): Remove "epoch" argument.
12992 * objc-lang.c (objc_printstr): Remove "inspect_it" code.
12993 * p-lang.c (pascal_printstr): Remove "inspect_it" code.
12994 * p-valprint.c (pascal_object_print_value_fields): Remove
12995 "inspect_it" code.
12996 * printcmd.c (print_command_1): Remove 'inspect' argument.
12997 (print_command, call_command): Update.
12998 (inspect_command): Remove.
12999 (_initialize_printcmd): Make "inspect" an alias for "print".
13000 * top.c (epoch_interface): Remove.
13001 * top.h (epoch_interface): Remove.
13002 * valprint.c (user_print_options): Update.
13003 (print_converted_chars_to_obstack): Remove "inspect_it" code.
13004 * valprint.h (struct value_print_options) <inspect_it>: Remove
13005 field.
13006
130072013-01-04 Tom Tromey <tromey@redhat.com>
13008
13009 * valprint.h (read_string): Add 'extern'.
13010
b967eb24
JB
130112013-01-07 Joel Brobecker <brobecker@adacore.com>
13012
13013 * darwin-nat.c: Fix typo in TASK_DYLD_INFO_COUNT macro test
13014 used to decide whether to define darwin_read_dyld_info or not.
13015
78a8b30e
PM
130162013-01-03 Pierre Muller <muller@sourceware.org>
13017
13018 * main.c (relocate_gdb_directory): Avoid calling stat function
13019 if DIR is empty.
13020
50da2f25
YQ
130212013-01-03 Yao Qi <yao@codesourcery.com>
13022
13023 * psymtab.c (fixup_psymbol_section): Update declaration.
13024 (fixup_psymbol_section): Remove code returning value.
13025
e7e8980f
YQ
130262013-01-03 Yao Qi <yao@codesourcery.com>
13027
13028 * symtab.h: Remove some out of date comments.
13029 (enum exception_event_kind): Move it ...
13030 * breakpoint.c: ... here.
13031
569283d4
MF
130322013-01-02 Iain Sandoe <developer@sandoe-acoustics.co.uk>
13033
9f9d9a96 13034 PR gdb/14405
569283d4
MF
13035 * darwin-nat.c (darwin_read_dyld_info): Only build if
13036 TASK_DYLD_INFO_COUNT is defined.
13037 (darwin_xfer_partial): Call darwin_read_dyld_info only if
13038 TASK_DYLD_INFO_COUNT is defined.
13039
2e36fbea
TT
130402013-01-02 Tom Tromey <tromey@redhat.com>
13041
13042 * symfile.h (struct ecoff_debug_hack): Remove.
13043 * objfiles.c: Don't include mdebugread.h.
13044
4f05add4
TT
130452013-01-02 Tom Tromey <tromey@redhat.com>
13046
13047 * config/i386/darwin.mh (NATDEPFILES): Remove machoread.o.
13048 * configure.ac: Check for Mach-O support in BFD. Update
13049 CONFIG_OBS.
13050 * configure: Rebuild.
13051
def63ff0
TT
130522013-01-02 Tom Tromey <tromey@redhat.com>
13053
13054 * acinclude.m4 (GDB_AC_CHECK_BFD): New macro.
13055 * configure.ac: Use GDB_AC_CHECK_BFD.
13056 * configure: Rebuild.
13057
60c5dd93
MK
130582013-01-01 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
13059
13060 * MAINTAINERS: Update my email.
13061
6e58437e
JB
130622013-01-01 Joel Brobecker <brobecker@adacore.com>
13063
13064 * cli/cli-script.h (make_cleanup_free_command_lines): Make extern.
13065
627fe805
JB
130662013-01-01 Joel Brobecker <brobecker@adacore.com>
13067
13068 * rs6000-nat.c (bss_data_overlap): New function.
13069 (vmap_symtab): Use it to adjust the .bss section's offset.
13070
28e7fd62
JB
130712013-01-01 Joel Brobecker <brobecker@adacore.com>
13072
13073 Update year range in copyright notice of all files.
13074
e93a8774 130752013-01-01, 13 Joel Brobecker <brobecker@adacore.com>
b9786c74
JB
13076
13077 * top.c (print_gdb_version): Update copyright year.
13078
72b20e9c 13079For older changes see ChangeLog-2012.
c906108c
SS
13080\f
13081Local Variables:
13082mode: change-log
13083left-margin: 8
13084fill-column: 74
13085version-control: never
57da7796 13086coding: utf-8
c906108c 13087End:
This page took 2.163598 seconds and 4 git commands to generate.