MAINTAINERS (Write After Approval): Add myself to the list.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
34a4fb3a
SB
12013-12-03 Samuel Bronson <naesten@gmail.com>
2
3 * MAINTAINERS (Write After Approval): Add myself to the list.
4
688981c9
JB
52013-12-03 Joel Brobecker <brobecker@adacore.com>
6
7 * mi/mi-main.c (mi_cmd_list_features): Remove "ada-exceptions".
8
c1244769
JB
92013-12-03 Joel Brobecker <brobecker@adacore.com>
10
11 * mi/mi-main.c: Remove trailing spaces throughout.
12
2ea126fa
JB
132013-12-03 Pedro Alves <palves@redhat.com>
14 Joel Brobecker <brobecker@adacore.com>
15
16 * exceptions.h (enum_errors) <UNDEFINED_COMMAND_ERROR>: New enum.
17 * mi/mi-parse.c (mi_parse): Throw UNDEFINED_COMMAND_ERROR instead
18 of a regular error when the GDB/MI command does not exist.
19 * mi/mi-main.c (mi_cmd_list_features): Add
20 "undefined-command-error-code".
21 (mi_print_exception): Print an "undefined-command"
22 error code if EXCEPTION.ERROR is UNDEFINED_COMMAND_ERROR.
23 * NEWS: Add entry documenting the new "code" variable in
24 "^error" result records.
25
6b7cbff1
JB
262013-12-03 Joel Brobecker <brobecker@adacore.com>
27
28 * mi/mi-cmds.h (mi_cmd_info_gdb_mi_command): Declare.
29 * mi/mi-cmd-info.c (mi_cmd_info_gdb_mi_command): New function.
30 * mi/mi-cmds.c (mi_cmds): Add -info-gdb-mi-command command.
31 * mi/mi-main.c (mi_cmd_list_features): Add "info-gdb-mi-command"
32 field to output of "-list-features".
33
34 * NEWS: Add entry for new -info-gdb-mi-command.
35
04affae3
JK
362013-12-02 Doug Evans <dje@google.com>
37 Jan Kratochvil <jan.kratochvil@redhat.com>
38
39 * objfiles.c (allocate_objfile): Save original_name as an absolute
40 path.
41 * objfiles.h (struct objfile): Expand comment on original_name.
42 * source.c (openp): Call gdb_abspath.
43 * utils.c (gdb_abspath): New function.
44 * utils.h (gdb_abspath): Declare.
45
aee4bf85
PA
462013-12-02 Pedro Alves <palves@redhat.com>
47
48 * dcache.c (dcache_read_line): Use target_read_raw_memory.
49 * target.c (target_read_raw_memory): New function.
50 (target_read_stack, target_write_memory, target_write_raw_memory):
51 Update comment.
52 (target_read_code): Add comment.
53 * target.h (target_read_raw_memory): Declare.
54
840207d8
PA
552013-12-02 Pedro Alves <palves@redhat.com>
56
57 * ctf.c (ctf_start): Use S_IRGRP, S_IXGRP, S_IXOTH
58 unconditionally.
59
0fdf84ca
PA
602013-12-02 Pedro Alves <pedro@codesourcery.com>
61 Maciej W. Rozycki <macro@codesourcery.com>
62
63 * remote.c (putpkt_for_catch_errors): Remove function.
64 (remote_kill): Handle TARGET_CLOSE_ERROR from the kill packet
65 gracefully.
66
62972e0b
YQ
672013-12-02 Pedro Alves <palves@redhat.com>
68
69 PR remote/15974
70 * remote-notif.c (handle_notification): Return early if no
71 notification is found.
72
f9b0da3d
JB
732013-12-02 Joel Brobecker <brobecker@adacore.com>
74
75 * common/filestuff.c (fdwalk): Add "defined(RLIMIT_NOFILE)"
76 preprocessor check.
77
2dd4d422
JB
782013-12-02 Joel Brobecker <brobecker@adacore.com>
79
80 * Makefile.in (HFILES_NO_SRCDIR): Remove "common/gdb_dirent.h".
81
e72eff80
JB
822013-12-02 Joel Brobecker <brobecker@adacore.com>
83
84 * Makefile.in (HFILES_NO_SRCDIR): Remove "common/gdb_stat.h".
85 * ctf.c (ctf_start): Remove obsolete comment.
86
844ad005
JB
872013-12-02 Joel Brobecker <brobecker@adacore.com>
88
89 * Makefile.in (HFILES_NO_SRCDIR): Remove "common/gdb_string.h".
90
5b2bf947
DE
912013-11-30 Doug Evans <xdje42@gmail.com>
92
93 * auto-load.h (script_language): New members name, auto_load_enabled.
94 Add missing comments on struct members.
95 (auto_load_objfile_script): Delete.
96 * auto-load.c: #include "cli/cli-cmds.h".
97 (auto_load_gdb_scripts_enabled): New function.
98 (script_language_gdb): Update, add new members.
99 (source_gdb_script_for_objfile): Simplify, auto-load safe-checking
100 and call to maybe_add_script moved to caller.
101 (auto_load_objfile_script_1): Auto-load safe-checking and
102 call to maybe_add_script moved here.
103 (auto_load_objfile_script): Make static. Early exit if support for
104 scripting language hasn't been compiled in, or auto-loading has been
105 disabled.
106 (source_section_scripts): Argument "source_name" renamed to
107 "section_name". All uses updated. Replace uses of AUTO_SECTION_NAME
108 with section_name. Skip loading script if support for scripting
109 language hasn't been compiled in, or auto-loading has been disabled.
110 Call language->source_script_for_objfile instead of calling
111 source_python_script_for_objfile directly.
112 (load_auto_scripts_for_objfile): Update.
113 * python/py-auto-load.c: Delete #include "cli/cli-cmds.h".
114 (gdbpy_load_auto_script_for_objfile): Delete.
115 (auto_load_python_scripts_enabled): New function.
116 (script_language_python): Update, add new members.
117 (gdbpy_script_language_defn): New function.
118 * python/python.h (gdbpy_load_auto_scripts_for_objfile): Delete.
119 (gdbpy_script_language_defn): Declare.
120
121 * auto-load.c (AUTO_SECTION_NAME): Moved here and renamed from
122 py-auto-load.c, GDBPY_AUTO_SECTION_NAME.
123 (source_section_scripts): Moved here from py-auto-load.c.
124 (auto_load_section_scripts): Ditto.
125 * python/py-auto-load.c (GDBPY_AUTO_SECTION_NAME): Moved to
126 auto-load.c, renamed AUTO_SECTION_NAME.
127 (source_section_scripts, auto_load_section_scripts): Moved to
128 auto-load.c.
129
d9c43928
YQ
1302013-11-30 Yao Qi <yao@codesourcery.com>
131
132 * remote.c (getpkt_or_notif_sane_1): Fix typo "checksm".
133
e7b12392
SDJ
1342013-11-29 Sergio Durigan Junior <sergiodj@redhat.com>
135
136 * gdbarch.sh: Remove include of "gdb_string.h", replace by
137 <string.h>.
138
256458bc
DE
1392013-11-29 Doug Evans <xdje42@gmail.com>
140
7b2d3abf
DE
141 * python/py-auto-load.c (source_section_scripts): Move comment to
142 more relevant location.
143
256458bc
DE
144 Whitespace cleanup.
145 * python/py-breakpoint.c: Remove trailing whitespace.
146 * python/py-cmd.c: Ditto.
147 * python/py-evts.c: Ditto.
148 * python/py-finishbreakpoint.c: Ditto.
149 * python/py-frame.c: Ditto.
150 * python/py-function.c: Ditto.
151 * python/py-inferior.c: Ditto.
152 * python/py-infthread.c: Ditto.
153 * python/py-param.c: Ditto.
154 * python/py-prettyprint.c: Ditto.
155 * python/py-symbol.c: Ditto.
156 * python/py-type.c: Ditto.
157 * python/py-utils.c: Ditto.
158 * python/py-value.c: Ditto.
159 * python/python-internal.h: Ditto.
160 * python/python.c: Ditto.
161
20e1ca3b
PA
1622013-11-29 Pedro Alves <palves@redhat.com>
163
164 * unwind_stop_reasons.def (UNWIND_NULL_ID): Update comment.
165
8b4f3082
PA
1662013-11-29 Pedro Alves <palves@redhat.com>
167
168 * breakpoint.c (build_target_condition_list): Release previous
169 conditions.
170 (build_target_command_list): Release previous commands.
171 (bp_location_dtor): Release target conditions and commands.
172 * remote.c (remote_add_target_side_condition): Don't release
173 conditions.
174 (remote_add_target_side_commands): Don't release commands.
175
9f713294
YQ
1762013-11-29 Yao Qi <yao@codesourcery.com>
177 Pedro Alves <palves@redhat.com>
178
179 * dcache.c (dcache_read_line): Use current_target.beneath
180 instead of &current_target.
181 * target.c (memory_xfer_partial_1): Factor code out to ...
182 (raw_memory_xfer_partial): ... it. New function.
183 (target_xfer_partial): Call raw_memory_xfer_partial if OBJECT
184 is TARGET_OBJECT_RAW_MEMORY.
185
4cb0213d
DE
1862013-11-28 Doug Evans <xdje42@gmail.com>
187
188 * breakpoint.h (gdbpy_breakpoint_object): Renamed from
189 breakpoint_object. All uses updated.
190 * python/python-internal.h (gdbpy_breakpoint_object): Renamed from
191 breakpoint_object. All uses updated.
192 * python.c (*): All uses of breakpoint_object updated.
193 * python.h (*): All uses of breakpoint_object updated.
194 * python/py-breakpoint.c (*): All uses of breakpoint_object updated.
195 * python/py-finishbreakpoint.c (*): Ditto.
196
d344e670
DE
1972013-11-28 Doug Evans <xdje42@gmail.com>
198
d729aae0 199 * configure.ac: Add comments delineating libpython and libmcheck.
d344e670
DE
200 * configure: Regenerate.
201
eebc056c
AB
2022013-11-28 Andrew Burgess <aburgess@broadcom.com>
203 Pedro Alves <palves@redhat.com>
204
205 * valprint.c (value_check_printable): If the value is entirely
206 unavailable, print a single "<unavailable>" instead of printing
207 all subfields.
208
a7300869
PA
2092013-11-28 Pedro Alves <palves@redhat.com>
210
211 * frame.c (get_prev_frame_1) <stop_reason != UNWIND_NO_REASON>:
212 Add "set debug frame" output.
213 (frame_stop_reason_symbol_string): New function.
214
50fd528a
PA
2152013-11-28 Pedro Alves <palves@redhat.com>
216
217 * frame-unwind.c (default_frame_unwind_stop_reason): Return
218 UNWIND_OUTERMOST if the frame's ID is outer_frame_id.
219 * frame.c (get_prev_frame_1): Remove outer_frame_id check.
220
5de51581
PA
2212013-11-28 Pedro Alves <palves@redhat.com>
222
223 * frame.c (get_prev_frame_1): If the frame id is outer_frame_id,
224 set the unwind stop reason to UNWIND_OUTERMOST, not
225 UNWIND_NULL_ID. Remove explicit check for sentinel frame.
226
739cb10c
PA
2272013-11-28 Pedro Alves <palves@redhat.com>
228
229 * frame.c (frame_unwind_register): Say the register was "not
230 saved" instead of "optimized out".
231
514c0aa6 2322013-11-27 Steffen Sledz <sledz@dresearch-fe.de>
92a021de 233
514c0aa6 234 PR 16152
92a021de 235 * configure: Rebuild.
514c0aa6 236 * configure.ac: Tighten cygwin detection check.
92a021de 237
908fa2aa
PA
2382013-11-27 Pedro Alves <palves@redhat.com>
239
240 * frame-unwind.c (frame_unwind_got_optimized): Use the type of the
241 register in the previous frame's arch.
242
6bd273ae
PA
2432013-11-27 Pedro Alves <palves@redhat.com>
244
245 * frame-unwind.c (frame_unwind_got_optimized): Return
246 an lval_register value instead of a not_lval value.
247
f6c01fc5
AB
2482013-11-27 Andrew Burgess <aburgess@broadcom.com>
249
250 * frame.c: Include "valprint.h".
251 (frame_unwind_register_value): Use value_optimized_out.
252 * value.c (value_fetch_lazy): Likewise.
253
4f14910f
AB
2542013-11-26 Andrew Burgess <aburgess@broadcom.com>
255
256 * value.c (allocate_optimized_out_value): Mark value as non-lazy.
257
15859968
TT
2582013-11-26 Tom Tromey <tromey@redhat.com>
259
260 * dwarf2-frame.c (dwarf2_frame_cache): Revert patch from
261 2013-11-22.
262
244ec0da
WT
2632013-11-26 Walfred Tedeschi <walfred.tedeschi@intel.com>
264
265 * i386-xstate.h (I386_XSTATE_MPX): New Macro.
266 (I386_XSTATE_MPX_MASK): Makes use of I386_XSTATE_MPX.
267 (HAS_MPX): New macro.
268 (HAS_AVX): New macro.
269 (I386_XSTATE_SIZE): Uses HAS_MPX and HAS_AVX.
270
f7e3ecae
KS
2712013-11-25 Keith Seitz <keiths@redhat.com>
272
273 PR c++/14819
274 * c-exp.y (classify_inner_name): If no matching symbol was
275 found, try looking up the token as a base class.
276 Likewise if a constructor was found.
277 * cp-namespace.c (find_type_baseclass_by_name): New function.
278 * cp-support.h (find_type_baseclass_by_name): Declare.
279 * valops.c (value_struct_elt_for_reference): If we get
280 a non-static field, try to get a value based on the
281 current instance, if any.
282
283f7163
YQ
2832013-11-24 Yao Qi <yao@codesourcery.com>
284
285 * disasm.c (dis_asm_read_memory): Call target_read_code
286 instead of target_read_memory.
287
29453a14
YQ
2882013-11-24 Yao Qi <yao@codesourcery.com>
289
290 * NEWS: Add note on new "set code-cache" option.
291 * target-dcache.c (code_cache_enabled_1): New variable.
292 (code_cache_enabled): New variable.
293 (show_code_cache, set_code_cache): New function.
294 (code_cache_enabled_p): New function.
295 (_initialize_target_dcache): Register command.
296 * target-dcache.h (code_cache_enabled_p): Declare.
297 * target.c (memory_xfer_partial_1):Handle
298 TARGET_OBJECT_CODE_MEMORY and code_cache_enabled.
299 (target_read_code): New function.
300 * target.h (enum target_object) <TARGET_OBJECT_CODE_MEMORY>:
301 New.
302 (target_read_code): Declare.
303
0fb14d8f
YQ
3042013-11-24 Yao Qi <yao@codesourcery.com>
305
306 * target-dcache.c (stack_cache_enabled_p_1): Rename to ...
307 (stack_cache_enabled_1): ... this. New variable.
308 (stack_cache_enabled_p): Rename to ...
309 (stack_cache_enabled): ... this. New variable.
310 (set_stack_cache_enabled_p): Rename to ...
311 (set_stack_cache): ... this. Update caller.
312 (show_stack_cache_enabled_p): Rename to ...
313 (show_stack_cache): ... this. Update caller.
314 (stack_cache_enabled): Rename to ...
315 (stack_cache_enabled_p): ... this. Update caller.
316 (_initialize_target_dcache): Replace "data cache" with
317 "target memory cache".
318 * target-dcache.h (stack_cache_enabled): Remove declaration.
319 (stack_cache_enabled_p): Add declaration.
320
a12361b9
DE
3212013-11-23 Doug Evans <xdje42@gmail.com>
322
323 * python/py-frame.c (gdbpy_initialize_frames): Remove FIRST_ERROR,
324 superfluous.
325
1e1d6920
DE
3262013-11-23 Doug Evans <xdje42@gmail.com>
327
328 * python/py-frame.c (frapy_block): Fix error message text.
329
1e9c71b8
DE
3302013-11-23 Doug Evans <xdje42@gmail.com>
331
332 * cli/cli-script.c (multi_line_command_p): New function.
333 (recurse_read_control_structure, read_command_lines_1): Call it.
334 (execute_control_command): Consistently have a blank line between
335 each case.
336
f380848e
SA
3372013-11-22 Sterling Augustine <saugustine@google.com>
338
38e1f2a7 339 PR gdb/16196:
f380848e
SA
340 * valprint.c (read_string): Set new variable fetchlen based on
341 fetchlimit and size. Use it in call to partial_memory_read.
342 Update comment.
343
da2b2fdf
TT
3442013-11-22 Tom Tromey <tromey@redhat.com>
345
346 PR backtrace/16155:
347 * dwarf2-frame.c (dwarf2_frame_cache): Set undefined_retaddr if
348 the return address column is unspecified.
349
6eeee81c
TT
3502013-11-22 Tom Tromey <tromey@redhat.com>
351 Pedro Alves <palves@redhat.com>
352
353 PR backtrace/16155
354 * value.c (value_fetch_lazy): Internal error if
355 get_frame_register_value returns the same register.
356
194cca41
PA
3572013-11-22 Pedro Alves <palves@redhat.com>
358 Tom Tromey <tromey@redhat.com>
359
360 * frame.c (frame_stash_add): Now returns whether a frame with the
361 same ID was already known.
362 (compute_frame_id): New function, factored out from get_frame_id.
363 (get_frame_id): No longer lazilly compute the frame id here.
364 (get_prev_frame_if_no_cycle): New function. Detects wider stack
365 cycles.
366 (get_prev_frame_1): Use it instead of get_prev_frame_raw directly,
367 and checking for stack cycles here.
368
33f8fe58
PA
3692013-11-22 Pedro Alves <palves@redhat.com>
370
371 PR 16155
372 * frame.c (get_prev_frame_1): Do the UNWIND_SAME_ID check between
373 this frame and the new previous frame, not between this frame and
374 the next frame.
375
1ec56e88
PA
3762013-11-22 Pedro Alves <palves@redhat.com>
377
378 PR 16155
379 * dwarf2-frame.c (struct dwarf2_frame_cache)
380 <checked_tailcall_bottom, entry_cfa_sp_offset,
381 entry_cfa_sp_offset_p>: New fields.
382 (dwarf2_frame_cache): Adjust to use the new cache fields instead
383 of locals. Don't call dwarf2_tailcall_sniffer_first here.
384 (dwarf2_frame_prev_register): Call it here, but only once.
385
ca092b61
DE
3862013-11-21 Doug Evans <xdje42@gmail.com>
387
388 * gdbtypes.c: #include bcache.h, dwarf2loc.h.
389 (type_equality_entry): Move here from python/py-type.c.
390 (type_equality_entry_d): Ditto.
391 (compare_maybe_null_strings, check_types_equal): Ditto.
392 (check_types_worklist, types_deeply_equal): Ditto.
393 * gdbtypes.h (types_deeply_equal): Declare.
394 * python/py-type.c: Remove inclusion of bcache.h, dwarf2loc.h.
395 (typy_richcompare): Update.
396
7c245c24
JB
3972013-11-20 Joel Brobecker <brobecker@adacore.com>
398
399 * python/py-value.c (is_intlike): Delete.
400 (valpy_int): Replace use of CHECK_TYPEDEF and is_intlike
401 by use of is_integral_type.
402 (valpy_long): Replace use of CHECK_TYPEDEF and is_intlike
403 by use of is_integral_type and check for TYPE_CODE_PTR.
404
8986e351
TT
4052013-11-20 Tom Tromey <tromey@redhat.com>
406
407 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Remove
408 strerror module.
409 * gnulib/aclocal.m4: Update.
410 * gnulib/config.in: Update.
411 * gnulib/configure: Update.
412 * gnulib/import/Makefile.am: Update.
413 * gnulib/import/Makefile.in: Update.
414 * gnulib/import/errno.in.h: Remove.
415 * gnulib/import/intprops.h: Remove.
416 * gnulib/import/m4/errno_h.m4: Remove.
417 * gnulib/import/m4/gnulib-cache.m4: Update.
418 * gnulib/import/m4/gnulib-comp.m4: Update.
419 * gnulib/import/m4/strerror.m4: Remove.
420 * gnulib/import/m4/sys_socket_h.m4: Remove.
421 * gnulib/import/strerror-override.c: Remove.
422 * gnulib/import/strerror-override.h: Remove.
423 * gnulib/import/strerror.c: Remove.
424 * gnulib/update-gnulib.sh: Update.
425
6b1141e3
YQ
4262013-11-20 Yao Qi <yao@codesourcery.com>
427
428 * target-dcache.c (target_dcache_get_or_init): Call
429 set_address_space_data if 'dcache' is NULL.
430
60650f2e
WT
4312013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
432
433 * common/i386-gcc-cpuid.h (bit_MPX): Synchronize with gcc file.
434
09748966
WT
4352013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
436
437 * python/lib/gdb/command/bound_register.py: New file.
995c1ad9
DE
438 * data-directory/Makefile.in: Copy bond_register.py to the right path
439 to be initialized at gdb startup.
09748966 440
e43e105e
WT
4412013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
442
443 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset):
444 Add MPX registers.
445 (amd64_linux_read_description): Add initialization for MPX and
446 AVX independently.
447 * amd64-linux-tdep.c: Includes features/i386/amd64-mpx-linux.c.
448 (amd64_linux_gregset_reg_offset): Add MPX registers.
449 (amd64_linux_core_read_description): Add initialization for MPX
450 registers.
451 (_initialize_amd64_linux_tdep): Initialize MPX targets.
452 * amd64-linux-tdep.h (AMD64_LINUX_RAX_REGNUM): Set it to the last
453 register on the list.
454 (tdesc_amd64_mpx_linux) Add new target for MPX.
455 * amd64-tdep.c: Includes features/i386/amd64-mpx.c.
456 (amd64_mpx_names): MPX register names.
457 (amd64_init_abi): Add MPX register while initializing the ABI.
458 (_initialize_amd64_tdep): Initialize MPX targets.
459 * amd64-tdep.h (amd64_regnum): Add MPX registers.
460 (AMD64_NUM_REGS): Set number of registers taking MPX into account.
461
1dbcd68c
WT
4622013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
463
464 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Add MPX
465 registers on the range of registers to be read from
466 xsave buffer.
467 (i386_linux_read_description): Add case for MPX.
468 * i386-linux-tdep.c: Include features/i386/i386-mpx-linux.c.
469 (i386_linux_gregset_reg_offset): Add MPX registers.
470 (i386_linux_core_read_description): Initialize also MPX.
471 (_initialize_i386_linux_tdep): Add mpx initialization.
472 * i386-tdep.h (gdbarch_tdep): Add fields bnd0r_regnum, bnd0_regnum,
473 mpx_register_names.
474 (i386_regnum): Add MPX registers.
475 (I386_MPX_NUM_REGS): New macro.
476 (i386_bnd_regnum_p): New function.
477 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set
478 number of registers to be the number of BNDSTATUS.
479 (tdesc_i386_mpx_linux): Add description for MPX Linux registers.
480 * i386-tdep.c: Include features/i386/i386-mpx.c.
481 (i386_mpx_names): Add MPX register names array.
482 (i386_bnd_names): Add bnd pseudo register names array.
483 (i386_bndr_regnum_p): Lookup register numbers for bnd raw
484 registers.
485 (i386_bndr_regnum_p): Lookup register numbers for bnd raw registers.
486 (386_mpx_ctrl_regnum_p): Lookup register numbers for MPX control
487 registers.
488 (i386_bnd_type): New function.
489 (i386_pseudo_register_type): Use i386_bnd_type for bnd pseudo
490 register types.
491 (i386_pseudo_register_read_into_value): Add bnd case.
492 (i386_pseudo_register_write): Add bnd pseudo registers.
493 (i386_register_reggroup_p): Add MPX register to the group all.
494 (i386_validate_tdesc_p): Add MPX to the target description
495 validation.
496 (i386_pseudo_register_name): Add bnd pseudo registers.
497 (i386_gdbarch_init): Add MPX for architecture initialization.
498 (_initia_initialize_i386_tdep): Add mpx initialization.
499 * i387-tdep.c (xsave_mpx_offset): New vector for MPX offsets on
500 XSAVE buffer.
501 (XSAVE_MPX_ADDR): New macro.
502 (i387_supply_xsave): Add MPX case.
503 (i387_collect_xsave): Add MPX case.
504 * i387-tdep.h (I387_BND0R_REGNUM): New macro.
505 (I387_BNDCFGU_REGNUM): New macro.
506 (I387_NUM_MPX_REGS): New macro.
507 (I387_NUM_BND_REGS): New macro.
508 (I387_NUM_MPX_CTRL_REGS): New macro.
509 (I387_MPXEND_REGNUM): New macro.
510 * common/i386-xstate.h (I386_XSTATE_BNDREGS): New macro.
511 (I386_XSTATE_BNDCFG): Likewise.
512 (I386_XSTATE_MPX_MASK): Likewise.
513 (I386_XSTATE_ALL_MASK): New macro represents flags for all states.
514 (I386_XSTATE_BNDREGS_SIZE): New macro.
515 (I386_XSTATE_BNDCFG_SIZE): Likewise.
516 (I386_XSTATE_SIZE): Adapt for MPX.
517 (I386_XSTATE_MAX_SIZE): Likewise.
518
ccc42043
WT
5192013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
520
521 * features/i386/Makefile: Adapts for using MPX registers.
522 * features/i386/32bit-mpx.xml: New file.
523 * features/i386/64bit-mpx.xml: Likewise.
524 * features/i386/amd64-mpx-linux.c: Likewise.
525 * features/i386/amd64-mpx-linux.xml: Likewise.
526 * features/i386/amd64-mpx.c: Likewise.
527 * features/i386/amd64-mpx.xml: Likewise.
528 * features/i386/i386-mpx-linux.c: Likewise.
529 * features/i386/i386-mpx-linux.xml: Likewise.
530 * features/i386/i386-mpx.c: Likewise.
531 * features/i386/i386-mpx.xml: Likewise.
532 * regformats/i386/amd64-mpx-linux.dat: New file.
533 * regformats/i386/amd64-mpx.dat: Likewise.
534 * regformats/i386/i386-mpx-linux.dat: Likewise.
535 * regformats/i386/i386-mpx.dat: Likewise.
536
57803a3c
WT
5372013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
538
539 * target-descriptions.c (maint_print_maint_print_c_tdesc_cmd):
540 Modified logic of creating a bitfield to be in sync with
541 tdesc_gdb_type.
542
2b59118e
WN
5432013-11-20 Will Newton <will.newton@linaro.org>
544
545 * arm-tdep.c (arm_get_next_pc): Remove "Infinite loop detected"
546 error message.
547
b26dfc9a
YQ
5482013-11-20 Yao Qi <yao@codesourcery.com>
549
550 * progspace.h (struct address_space_data): Declare.
551 * target-dcache.c: Include "progspace.h".
552 (target_dache): Remove.
553 (target_dcache_aspace_key): New.
554 (target_dcache_cleanup): New function.
555 (target_dcache_init_p): Get data through
556 target_dcache_aspace_key.
557 (target_dcache_invalidate): Likewise.
558 (target_dcache_get): Likewise.
559 (target_dcache_get_or_init): Likewise.
560 (_initialize_target_dcache): Initialize
561 target_dcache_aspace_key.
562
3a8356ff
YQ
5632013-11-20 Yao Qi <yao@codesourcery.com>
564
565 * progspace.c (struct address_space): Update comments.
566 <REGISTRY_FIELDS>: New fields.
567 DEFINE_REGISTRY for address_space.
568 (new_address_space): Call address_space_alloc_data.
569 (free_address_space): Call address_space_free_data.
570 * progspace.h: Use DECLARE_REGISTRY.
571
68c765e2
YQ
5722013-11-20 Yao Qi <yao@codesourcery.com>
573
574 * Makefile.in (SFILES):Add target-dcache.c.
575 (HFILES_NO_SRCDIR): Add target-dcache.h.
576 (COMMON_OBS): Add target-dcache.o.
577 * dcache.c: Remove inclusion to "target.h". Include
578 "target-dcache.h".
579 * memattr.c: Include "target-dcache.h".
580 * top.c: Likewise.
581 * tracepoint.c: Likewise.
582 * target.c: (stack_cache_enabled_p_1): Move to
583 target-dcache.c.
584 (stack_cache_enabled_p): Likewise.
585 (set_stack_cache_enabled_p): Likewise.
586 (show_stack_cache_enabled_p): Likewise.
587 (target_dcache, target_dcache_init_p): Likewise.
588 (target_dcache_invalidate): Likewise.
589 (target_dcache_get, target_dcache_get_or_init): Likewise.
590 (memory_xfer_partial_1): Call function stack_cache_enabled.
591 (initialize_target): Move code to target-dcache.c.
592 * target.h (target_dcache_invalidate): Move to
593 target-dcache.h.
594 (target_dcache_get): Likewise.
595 * target-dcache.c: New.
596 * target-dcache.h: New.
597
f2de9785
YQ
5982013-11-20 Yao Qi <yao@codesourcery.com>
599
600 * target.c (memory_xfer_partial_1): Update 'target_dcache' if
601 it is initialized.
602
2a2f9fe4
YQ
6032013-11-20 Yao Qi <yao@codesourcery.com>
604
605 * dcache.c (last_cache): Remove.
606 (dcache_free, dcache_init): Update.
607 (dcache_update):
608 (dcache_print_line): Add parameter 'dcache'. Replace
609 'target_dcache' with 'dcache'.
610 (dcache_info): Move code to dcache_info_1. Call
611 'dcache_info_1'.
612 (dcache_info_1): New function.
613 (set_dcache_size): Call target_dcache_invalidate.
614 (set_dcache_line_size): Call target_dcache_invalidate.
615 * target.c (target_dcache_init_p): New function.
616 (target_dcache_invalidate): Check target_dcache_init_p first.
617 (target_dcache_get, target_dcache_get_or_init): New function.
618 (memory_xfer_partial_1): Adjust.
619 (initialize_target): Don't initialize 'target_dcache'.
620 * target.h (struct dcache_struct): Declare.
621 (target_dcache_get): Declare.
622
8ab91b96
YQ
6232013-11-19 Yao Qi <yao@codesourcery.com>
624
625 * varobj.c (varobj_get_type): Fix typo.
626
df7752b0
JB
6272013-11-19 Joel Brobecker <brobecker@adacore.com>
628
629 * python/py-value.c (is_intlike): Add TYPE_CODE_RANGE handling.
630
4a0a886a
JB
6312013-11-19 Joel Brobecker <brobecker@adacore.com>
632
633 * contrib/ari/gdb_ari.sh: Remove checks for "dirent.h" and
634 "stat.h".
635
53ce3c39
TT
6362013-11-18 Tom Tromey <tromey@redhat.com>
637
638 * common/gdb_stat.h: Remove.
639 * ada-lang.c: Use sys/stat.h, not gdb_stat.h.
640 * common/filestuff.c: Use sys/stat.h, not gdb_stat.h.
641 * common/linux-osdata.c: Use sys/stat.h, not gdb_stat.h.
642 * corefile.c: Use sys/stat.h, not gdb_stat.h.
643 * ctf.c: Use sys/stat.h, not gdb_stat.h.
644 * darwin-nat.c: Use sys/stat.h, not gdb_stat.h.
645 * dbxread.c: Use sys/stat.h, not gdb_stat.h.
646 * dwarf2read.c: Use sys/stat.h, not gdb_stat.h.
647 * exec.c: Use sys/stat.h, not gdb_stat.h.
648 * gdbserver/linux-low.c: Use sys/stat.h, not gdb_stat.h.
649 * gdbserver/remote-utils.c: Use sys/stat.h, not gdb_stat.h.
650 * inf-child.c: Use sys/stat.h, not gdb_stat.h.
651 * jit.c: Use sys/stat.h, not gdb_stat.h.
652 * linux-nat.c: Use sys/stat.h, not gdb_stat.h.
653 * m68klinux-nat.c: Use sys/stat.h, not gdb_stat.h.
654 * main.c: Use sys/stat.h, not gdb_stat.h.
655 * mdebugread.c: Use sys/stat.h, not gdb_stat.h.
656 * mi/mi-cmd-env.c: Use sys/stat.h, not gdb_stat.h.
657 * nto-tdep.c: Use sys/stat.h, not gdb_stat.h.
658 * objfiles.c: Use sys/stat.h, not gdb_stat.h.
659 * procfs.c: Use sys/stat.h, not gdb_stat.h.
660 * remote-fileio.c: Use sys/stat.h, not gdb_stat.h.
661 * remote-mips.c: Use sys/stat.h, not gdb_stat.h.
662 * remote.c: Use sys/stat.h, not gdb_stat.h.
663 * rs6000-nat.c: Use sys/stat.h, not gdb_stat.h.
664 * sol-thread.c: Use sys/stat.h, not gdb_stat.h.
665 * solib-spu.c: Use sys/stat.h, not gdb_stat.h.
666 * source.c: Use sys/stat.h, not gdb_stat.h.
667 * symfile.c: Use sys/stat.h, not gdb_stat.h.
668 * symmisc.c: Use sys/stat.h, not gdb_stat.h.
669 * symtab.c: Use sys/stat.h, not gdb_stat.h.
670 * top.c: Use sys/stat.h, not gdb_stat.h.
671 * xcoffread.c: Use sys/stat.h, not gdb_stat.h.
672
09607c9e
TT
6732013-11-18 Tom Tromey <tromey@redhat.com>
674
675 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
676 sys_stat.
677 * gnulib/aclocal.m4: Update.
678 * gnulib/config.in: Update.
679 * gnulib/configure: Update.
680 * gnulib/import/Makefile.am: Update.
681 * gnulib/import/Makefile.in: Update.
682 * gnulib/import/m4/gnulib-cache.m4: Update.
683 * gnulib/import/m4/gnulib-comp.m4: Update.
684 * gnulib/import/m4/sys_stat_h.m4: New.
685 * gnulib/import/m4/time_h.m4: New.
686 * gnulib/import/sys_stat.in.h: New.
687 * gnulib/import/time.in.h: New.
688
4ff70b84
TT
6892013-11-18 Tom Tromey <tromey@redhat.com>
690
691 * configure: Rebuild.
692 * configure.ac: Remove check of HAVE_SYS_TYPES_H.
693
3447c057
TT
6942013-11-18 Tom Tromey <tromey@redhat.com>
695
696 * configure: Rebuild.
697 * configure.ac: Don't check for unistd.h.
698
0080a2f6
TT
6992013-11-18 Tom Tromey <tromey@redhat.com>
700
701 * configure: Rebuild.
702 * configure.ac: Don't check for stdlib.h
703 * defs.h: Include stdlib.h unconditionally.
704
161d1bec
TT
7052013-11-18 Tom Tromey <tromey@redhat.com>
706
707 * config.in: Rebuild.
708 * configure: Rebuild.
709 * configure.ac: Don't check for stddef.h.
710 * defs.h: Unconditionally include stddef.h. Remove duplicate
711 inclusion.
712
2978b111
TT
7132013-11-18 Tom Tromey <tromey@redhat.com>
714
715 * common/common.m4 (GDB_AC_COMMON): Don't use AC_HEADER_DIRENT.
716 * common/gdb_dirent.h: Remove.
717 * common/filestuff.c: Use dirent.h.
718 * common/linux-osdata.c: Use dirent.h.
719 (NAMELEN): Define.
720 * config.in: Rebuild.
721 * configure: Rebuild.
722 * configure.ac: Don't use AC_HEADER_DIRENT.
723 * linux-fork.c: Use dirent.h
724 * linux-nat.c: Use dirent.h.
725 * nto-procfs.c: Use dirent.h.
726 * procfs.c: Use dirent.h.
727
e26b6bb0
TT
7282013-11-18 Tom Tromey <tromey@redhat.com>
729
730 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirent.
731 * gnulib/aclocal.m4: Update.
732 * gnulib/config.in: Update.
733 * gnulib/configure: Update.
734 * gnulib/import/Makefile.am: Update.
735 * gnulib/import/Makefile.in: Update.
736 * gnulib/import/dirent.in.h: New.
737 * gnulib/import/m4/dirent_h.m4: New.
738 * gnulib/import/m4/gnulib-cache.m4: Update.
739 * gnulib/import/m4/gnulib-comp.m4: Update.
740
a3d08894
TT
7412013-11-18 Tom Tromey <tromey@redhat.com>
742
743 * configure: Rebuild.
744 * common/common.m4 (GDB_AC_COMMON): Don't check for string.h or
745 strings.h.
746
0e9f083f
TT
7472013-11-18 Tom Tromey <tromey@redhat.com>
748
749 * common/gdb_string.h: Remove.
750 * aarch64-tdep.c: Use string.h, not gdb_string.h.
751 * ada-exp.y: Use string.h, not gdb_string.h.
752 * ada-lang.c: Use string.h, not gdb_string.h.
753 * ada-lex.l: Use string.h, not gdb_string.h.
754 * ada-typeprint.c: Use string.h, not gdb_string.h.
755 * ada-valprint.c: Use string.h, not gdb_string.h.
756 * aix-thread.c: Use string.h, not gdb_string.h.
757 * alpha-linux-tdep.c: Use string.h, not gdb_string.h.
758 * alpha-mdebug-tdep.c: Use string.h, not gdb_string.h.
759 * alpha-nat.c: Use string.h, not gdb_string.h.
760 * alpha-osf1-tdep.c: Use string.h, not gdb_string.h.
761 * alpha-tdep.c: Use string.h, not gdb_string.h.
762 * alphanbsd-tdep.c: Use string.h, not gdb_string.h.
763 * amd64-dicos-tdep.c: Use string.h, not gdb_string.h.
764 * amd64-linux-nat.c: Use string.h, not gdb_string.h.
765 * amd64-linux-tdep.c: Use string.h, not gdb_string.h.
766 * amd64-nat.c: Use string.h, not gdb_string.h.
767 * amd64-sol2-tdep.c: Use string.h, not gdb_string.h.
768 * amd64fbsd-tdep.c: Use string.h, not gdb_string.h.
769 * amd64obsd-tdep.c: Use string.h, not gdb_string.h.
770 * arch-utils.c: Use string.h, not gdb_string.h.
771 * arm-linux-nat.c: Use string.h, not gdb_string.h.
772 * arm-linux-tdep.c: Use string.h, not gdb_string.h.
773 * arm-tdep.c: Use string.h, not gdb_string.h.
774 * arm-wince-tdep.c: Use string.h, not gdb_string.h.
775 * armbsd-tdep.c: Use string.h, not gdb_string.h.
776 * armnbsd-nat.c: Use string.h, not gdb_string.h.
777 * armnbsd-tdep.c: Use string.h, not gdb_string.h.
778 * armobsd-tdep.c: Use string.h, not gdb_string.h.
779 * avr-tdep.c: Use string.h, not gdb_string.h.
780 * ax-gdb.c: Use string.h, not gdb_string.h.
781 * ax-general.c: Use string.h, not gdb_string.h.
782 * bcache.c: Use string.h, not gdb_string.h.
783 * bfin-tdep.c: Use string.h, not gdb_string.h.
784 * breakpoint.c: Use string.h, not gdb_string.h.
785 * build-id.c: Use string.h, not gdb_string.h.
786 * buildsym.c: Use string.h, not gdb_string.h.
787 * c-exp.y: Use string.h, not gdb_string.h.
788 * c-lang.c: Use string.h, not gdb_string.h.
789 * c-typeprint.c: Use string.h, not gdb_string.h.
790 * c-valprint.c: Use string.h, not gdb_string.h.
791 * charset.c: Use string.h, not gdb_string.h.
792 * cli-out.c: Use string.h, not gdb_string.h.
793 * cli/cli-cmds.c: Use string.h, not gdb_string.h.
794 * cli/cli-decode.c: Use string.h, not gdb_string.h.
795 * cli/cli-dump.c: Use string.h, not gdb_string.h.
796 * cli/cli-interp.c: Use string.h, not gdb_string.h.
797 * cli/cli-logging.c: Use string.h, not gdb_string.h.
798 * cli/cli-script.c: Use string.h, not gdb_string.h.
799 * cli/cli-setshow.c: Use string.h, not gdb_string.h.
800 * cli/cli-utils.c: Use string.h, not gdb_string.h.
801 * coffread.c: Use string.h, not gdb_string.h.
802 * common/common-utils.c: Use string.h, not gdb_string.h.
803 * common/filestuff.c: Use string.h, not gdb_string.h.
804 * common/linux-procfs.c: Use string.h, not gdb_string.h.
805 * common/linux-ptrace.c: Use string.h, not gdb_string.h.
806 * common/signals.c: Use string.h, not gdb_string.h.
807 * common/vec.h: Use string.h, not gdb_string.h.
808 * core-regset.c: Use string.h, not gdb_string.h.
809 * corefile.c: Use string.h, not gdb_string.h.
810 * corelow.c: Use string.h, not gdb_string.h.
811 * cp-abi.c: Use string.h, not gdb_string.h.
812 * cp-support.c: Use string.h, not gdb_string.h.
813 * cp-valprint.c: Use string.h, not gdb_string.h.
814 * cris-tdep.c: Use string.h, not gdb_string.h.
815 * d-lang.c: Use string.h, not gdb_string.h.
816 * dbxread.c: Use string.h, not gdb_string.h.
817 * dcache.c: Use string.h, not gdb_string.h.
818 * demangle.c: Use string.h, not gdb_string.h.
819 * dicos-tdep.c: Use string.h, not gdb_string.h.
820 * disasm.c: Use string.h, not gdb_string.h.
821 * doublest.c: Use string.h, not gdb_string.h.
822 * dsrec.c: Use string.h, not gdb_string.h.
823 * dummy-frame.c: Use string.h, not gdb_string.h.
824 * dwarf2-frame.c: Use string.h, not gdb_string.h.
825 * dwarf2loc.c: Use string.h, not gdb_string.h.
826 * dwarf2read.c: Use string.h, not gdb_string.h.
827 * elfread.c: Use string.h, not gdb_string.h.
828 * environ.c: Use string.h, not gdb_string.h.
829 * eval.c: Use string.h, not gdb_string.h.
830 * event-loop.c: Use string.h, not gdb_string.h.
831 * exceptions.c: Use string.h, not gdb_string.h.
832 * exec.c: Use string.h, not gdb_string.h.
833 * expprint.c: Use string.h, not gdb_string.h.
834 * f-exp.y: Use string.h, not gdb_string.h.
835 * f-lang.c: Use string.h, not gdb_string.h.
836 * f-typeprint.c: Use string.h, not gdb_string.h.
837 * f-valprint.c: Use string.h, not gdb_string.h.
838 * fbsd-nat.c: Use string.h, not gdb_string.h.
839 * findcmd.c: Use string.h, not gdb_string.h.
840 * findvar.c: Use string.h, not gdb_string.h.
841 * fork-child.c: Use string.h, not gdb_string.h.
842 * frame.c: Use string.h, not gdb_string.h.
843 * frv-linux-tdep.c: Use string.h, not gdb_string.h.
844 * frv-tdep.c: Use string.h, not gdb_string.h.
845 * gdb.c: Use string.h, not gdb_string.h.
846 * gdb_bfd.c: Use string.h, not gdb_string.h.
847 * gdbarch.c: Use string.h, not gdb_string.h.
848 * gdbtypes.c: Use string.h, not gdb_string.h.
849 * gnu-nat.c: Use string.h, not gdb_string.h.
850 * gnu-v2-abi.c: Use string.h, not gdb_string.h.
851 * gnu-v3-abi.c: Use string.h, not gdb_string.h.
852 * go-exp.y: Use string.h, not gdb_string.h.
853 * go-lang.c: Use string.h, not gdb_string.h.
854 * go32-nat.c: Use string.h, not gdb_string.h.
855 * hppa-hpux-tdep.c: Use string.h, not gdb_string.h.
856 * hppa-linux-nat.c: Use string.h, not gdb_string.h.
857 * hppanbsd-tdep.c: Use string.h, not gdb_string.h.
858 * hppaobsd-tdep.c: Use string.h, not gdb_string.h.
859 * i386-cygwin-tdep.c: Use string.h, not gdb_string.h.
860 * i386-dicos-tdep.c: Use string.h, not gdb_string.h.
861 * i386-linux-nat.c: Use string.h, not gdb_string.h.
862 * i386-linux-tdep.c: Use string.h, not gdb_string.h.
863 * i386-nto-tdep.c: Use string.h, not gdb_string.h.
864 * i386-sol2-tdep.c: Use string.h, not gdb_string.h.
865 * i386-tdep.c: Use string.h, not gdb_string.h.
866 * i386bsd-tdep.c: Use string.h, not gdb_string.h.
867 * i386gnu-nat.c: Use string.h, not gdb_string.h.
868 * i386nbsd-tdep.c: Use string.h, not gdb_string.h.
869 * i386obsd-tdep.c: Use string.h, not gdb_string.h.
870 * i387-tdep.c: Use string.h, not gdb_string.h.
871 * ia64-libunwind-tdep.c: Use string.h, not gdb_string.h.
872 * ia64-linux-nat.c: Use string.h, not gdb_string.h.
873 * inf-child.c: Use string.h, not gdb_string.h.
874 * inf-ptrace.c: Use string.h, not gdb_string.h.
875 * inf-ttrace.c: Use string.h, not gdb_string.h.
876 * infcall.c: Use string.h, not gdb_string.h.
877 * infcmd.c: Use string.h, not gdb_string.h.
878 * inflow.c: Use string.h, not gdb_string.h.
879 * infrun.c: Use string.h, not gdb_string.h.
880 * interps.c: Use string.h, not gdb_string.h.
881 * iq2000-tdep.c: Use string.h, not gdb_string.h.
882 * irix5-nat.c: Use string.h, not gdb_string.h.
883 * jv-exp.y: Use string.h, not gdb_string.h.
884 * jv-lang.c: Use string.h, not gdb_string.h.
885 * jv-typeprint.c: Use string.h, not gdb_string.h.
886 * jv-valprint.c: Use string.h, not gdb_string.h.
887 * language.c: Use string.h, not gdb_string.h.
888 * linux-fork.c: Use string.h, not gdb_string.h.
889 * linux-nat.c: Use string.h, not gdb_string.h.
890 * lm32-tdep.c: Use string.h, not gdb_string.h.
891 * m2-exp.y: Use string.h, not gdb_string.h.
892 * m2-typeprint.c: Use string.h, not gdb_string.h.
893 * m32c-tdep.c: Use string.h, not gdb_string.h.
894 * m32r-linux-nat.c: Use string.h, not gdb_string.h.
895 * m32r-linux-tdep.c: Use string.h, not gdb_string.h.
896 * m32r-rom.c: Use string.h, not gdb_string.h.
897 * m32r-tdep.c: Use string.h, not gdb_string.h.
898 * m68hc11-tdep.c: Use string.h, not gdb_string.h.
899 * m68k-tdep.c: Use string.h, not gdb_string.h.
900 * m68kbsd-tdep.c: Use string.h, not gdb_string.h.
901 * m68klinux-nat.c: Use string.h, not gdb_string.h.
902 * m68klinux-tdep.c: Use string.h, not gdb_string.h.
903 * m88k-tdep.c: Use string.h, not gdb_string.h.
904 * macrocmd.c: Use string.h, not gdb_string.h.
905 * main.c: Use string.h, not gdb_string.h.
906 * mdebugread.c: Use string.h, not gdb_string.h.
907 * mem-break.c: Use string.h, not gdb_string.h.
908 * memattr.c: Use string.h, not gdb_string.h.
909 * memory-map.c: Use string.h, not gdb_string.h.
910 * mep-tdep.c: Use string.h, not gdb_string.h.
911 * mi/mi-cmd-break.c: Use string.h, not gdb_string.h.
912 * mi/mi-cmd-disas.c: Use string.h, not gdb_string.h.
913 * mi/mi-cmd-env.c: Use string.h, not gdb_string.h.
914 * mi/mi-cmd-stack.c: Use string.h, not gdb_string.h.
915 * mi/mi-cmd-var.c: Use string.h, not gdb_string.h.
916 * mi/mi-cmds.c: Use string.h, not gdb_string.h.
917 * mi/mi-console.c: Use string.h, not gdb_string.h.
918 * mi/mi-getopt.c: Use string.h, not gdb_string.h.
919 * mi/mi-interp.c: Use string.h, not gdb_string.h.
920 * mi/mi-main.c: Use string.h, not gdb_string.h.
921 * mi/mi-parse.c: Use string.h, not gdb_string.h.
922 * microblaze-rom.c: Use string.h, not gdb_string.h.
923 * microblaze-tdep.c: Use string.h, not gdb_string.h.
924 * mingw-hdep.c: Use string.h, not gdb_string.h.
925 * minidebug.c: Use string.h, not gdb_string.h.
926 * minsyms.c: Use string.h, not gdb_string.h.
927 * mips-irix-tdep.c: Use string.h, not gdb_string.h.
928 * mips-linux-tdep.c: Use string.h, not gdb_string.h.
929 * mips-tdep.c: Use string.h, not gdb_string.h.
930 * mips64obsd-tdep.c: Use string.h, not gdb_string.h.
931 * mipsnbsd-tdep.c: Use string.h, not gdb_string.h.
932 * mipsread.c: Use string.h, not gdb_string.h.
933 * mn10300-linux-tdep.c: Use string.h, not gdb_string.h.
934 * mn10300-tdep.c: Use string.h, not gdb_string.h.
935 * monitor.c: Use string.h, not gdb_string.h.
936 * moxie-tdep.c: Use string.h, not gdb_string.h.
937 * mt-tdep.c: Use string.h, not gdb_string.h.
938 * nbsd-tdep.c: Use string.h, not gdb_string.h.
939 * nios2-linux-tdep.c: Use string.h, not gdb_string.h.
940 * nto-procfs.c: Use string.h, not gdb_string.h.
941 * nto-tdep.c: Use string.h, not gdb_string.h.
942 * objc-lang.c: Use string.h, not gdb_string.h.
943 * objfiles.c: Use string.h, not gdb_string.h.
944 * opencl-lang.c: Use string.h, not gdb_string.h.
945 * osabi.c: Use string.h, not gdb_string.h.
946 * osdata.c: Use string.h, not gdb_string.h.
947 * p-exp.y: Use string.h, not gdb_string.h.
948 * p-lang.c: Use string.h, not gdb_string.h.
949 * p-typeprint.c: Use string.h, not gdb_string.h.
950 * parse.c: Use string.h, not gdb_string.h.
951 * posix-hdep.c: Use string.h, not gdb_string.h.
952 * ppc-linux-nat.c: Use string.h, not gdb_string.h.
953 * ppc-sysv-tdep.c: Use string.h, not gdb_string.h.
954 * ppcfbsd-tdep.c: Use string.h, not gdb_string.h.
955 * ppcnbsd-tdep.c: Use string.h, not gdb_string.h.
956 * ppcobsd-tdep.c: Use string.h, not gdb_string.h.
957 * printcmd.c: Use string.h, not gdb_string.h.
958 * procfs.c: Use string.h, not gdb_string.h.
959 * prologue-value.c: Use string.h, not gdb_string.h.
960 * python/py-auto-load.c: Use string.h, not gdb_string.h.
961 * python/py-gdb-readline.c: Use string.h, not gdb_string.h.
962 * ravenscar-thread.c: Use string.h, not gdb_string.h.
963 * regcache.c: Use string.h, not gdb_string.h.
964 * registry.c: Use string.h, not gdb_string.h.
965 * remote-fileio.c: Use string.h, not gdb_string.h.
966 * remote-m32r-sdi.c: Use string.h, not gdb_string.h.
967 * remote-mips.c: Use string.h, not gdb_string.h.
968 * remote-sim.c: Use string.h, not gdb_string.h.
969 * remote.c: Use string.h, not gdb_string.h.
970 * reverse.c: Use string.h, not gdb_string.h.
971 * rs6000-aix-tdep.c: Use string.h, not gdb_string.h.
972 * ser-base.c: Use string.h, not gdb_string.h.
973 * ser-go32.c: Use string.h, not gdb_string.h.
974 * ser-mingw.c: Use string.h, not gdb_string.h.
975 * ser-pipe.c: Use string.h, not gdb_string.h.
976 * ser-tcp.c: Use string.h, not gdb_string.h.
977 * ser-unix.c: Use string.h, not gdb_string.h.
978 * serial.c: Use string.h, not gdb_string.h.
979 * sh-tdep.c: Use string.h, not gdb_string.h.
980 * sh64-tdep.c: Use string.h, not gdb_string.h.
981 * shnbsd-tdep.c: Use string.h, not gdb_string.h.
982 * skip.c: Use string.h, not gdb_string.h.
983 * sol-thread.c: Use string.h, not gdb_string.h.
984 * solib-dsbt.c: Use string.h, not gdb_string.h.
985 * solib-frv.c: Use string.h, not gdb_string.h.
986 * solib-osf.c: Use string.h, not gdb_string.h.
987 * solib-spu.c: Use string.h, not gdb_string.h.
988 * solib-target.c: Use string.h, not gdb_string.h.
989 * solib.c: Use string.h, not gdb_string.h.
990 * somread.c: Use string.h, not gdb_string.h.
991 * source.c: Use string.h, not gdb_string.h.
992 * sparc-nat.c: Use string.h, not gdb_string.h.
993 * sparc-sol2-tdep.c: Use string.h, not gdb_string.h.
994 * sparc-tdep.c: Use string.h, not gdb_string.h.
995 * sparc64-tdep.c: Use string.h, not gdb_string.h.
996 * sparc64fbsd-tdep.c: Use string.h, not gdb_string.h.
997 * sparc64nbsd-tdep.c: Use string.h, not gdb_string.h.
998 * sparcnbsd-tdep.c: Use string.h, not gdb_string.h.
999 * spu-linux-nat.c: Use string.h, not gdb_string.h.
1000 * spu-multiarch.c: Use string.h, not gdb_string.h.
1001 * spu-tdep.c: Use string.h, not gdb_string.h.
1002 * stabsread.c: Use string.h, not gdb_string.h.
1003 * stack.c: Use string.h, not gdb_string.h.
1004 * std-regs.c: Use string.h, not gdb_string.h.
1005 * symfile.c: Use string.h, not gdb_string.h.
1006 * symmisc.c: Use string.h, not gdb_string.h.
1007 * symtab.c: Use string.h, not gdb_string.h.
1008 * target.c: Use string.h, not gdb_string.h.
1009 * thread.c: Use string.h, not gdb_string.h.
1010 * tilegx-linux-nat.c: Use string.h, not gdb_string.h.
1011 * tilegx-tdep.c: Use string.h, not gdb_string.h.
1012 * top.c: Use string.h, not gdb_string.h.
1013 * tracepoint.c: Use string.h, not gdb_string.h.
1014 * tui/tui-command.c: Use string.h, not gdb_string.h.
1015 * tui/tui-data.c: Use string.h, not gdb_string.h.
1016 * tui/tui-disasm.c: Use string.h, not gdb_string.h.
1017 * tui/tui-file.c: Use string.h, not gdb_string.h.
1018 * tui/tui-layout.c: Use string.h, not gdb_string.h.
1019 * tui/tui-out.c: Use string.h, not gdb_string.h.
1020 * tui/tui-regs.c: Use string.h, not gdb_string.h.
1021 * tui/tui-source.c: Use string.h, not gdb_string.h.
1022 * tui/tui-stack.c: Use string.h, not gdb_string.h.
1023 * tui/tui-win.c: Use string.h, not gdb_string.h.
1024 * tui/tui-windata.c: Use string.h, not gdb_string.h.
1025 * tui/tui-winsource.c: Use string.h, not gdb_string.h.
1026 * typeprint.c: Use string.h, not gdb_string.h.
1027 * ui-file.c: Use string.h, not gdb_string.h.
1028 * ui-out.c: Use string.h, not gdb_string.h.
1029 * user-regs.c: Use string.h, not gdb_string.h.
1030 * utils.c: Use string.h, not gdb_string.h.
1031 * v850-tdep.c: Use string.h, not gdb_string.h.
1032 * valarith.c: Use string.h, not gdb_string.h.
1033 * valops.c: Use string.h, not gdb_string.h.
1034 * valprint.c: Use string.h, not gdb_string.h.
1035 * value.c: Use string.h, not gdb_string.h.
1036 * varobj.c: Use string.h, not gdb_string.h.
1037 * vax-tdep.c: Use string.h, not gdb_string.h.
1038 * vaxnbsd-tdep.c: Use string.h, not gdb_string.h.
1039 * vaxobsd-tdep.c: Use string.h, not gdb_string.h.
1040 * windows-nat.c: Use string.h, not gdb_string.h.
1041 * xcoffread.c: Use string.h, not gdb_string.h.
1042 * xml-support.c: Use string.h, not gdb_string.h.
1043 * xstormy16-tdep.c: Use string.h, not gdb_string.h.
1044 * xtensa-linux-nat.c: Use string.h, not gdb_string.h.
1045
63ce7108
TT
10462013-11-18 Tom Tromey <tromey@redhat.com>
1047
1048 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add strerror
1049 and strstr.
1050 * gnulib/aclocal.m4: Update.
1051 * gnulib/config.in: Update.
1052 * gnulib/configure: Update.
1053 * gnulib/import/Makefile.am: Update.
1054 * gnulib/import/Makefile.in: Update.
1055 * gnulib/import/errno.in.h: New.
1056 * gnulib/import/intprops.h: New.
1057 * gnulib/import/m4/errno_h.m4: New.
1058 * gnulib/import/m4/gnulib-cache.m4: Update.
1059 * gnulib/import/m4/gnulib-comp.m4: Update.
1060 * gnulib/import/m4/strerror.m4: New.
1061 * gnulib/import/m4/strstr.m4: New.
1062 * gnulib/import/m4/sys_socket_h.m4: New.
1063 * gnulib/import/strerror-override.c: New.
1064 * gnulib/import/strerror-override.h: New.
1065 * gnulib/import/strerror.c: New.
1066 * gnulib/import/strstr.c: New.
1067
a7c11ee1
TT
10682013-11-18 Tom Tromey <tromey@redhat.com>
1069
1070 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Split into
1071 multiple lines.
1072
d0b5971a
JM
10732013-11-18 Jose E. Marchesi <jose.marchesi@oracle.com>
1074
1075 * sparc-tdep.c (sparc_is_annulled_branch_insn): New function.
1076 * sparc-tdep.h: And its prototype.
1077
1078 * sparc64-linux-tdep.c (sparc64_linux_get_longjmp_target): New
1079 function.
1080 (sparc64_linux_init_abi): Register the get_longjmp_target hook.
1081
4b4589ad
PA
10822013-11-18 Pedro Alves <palves@redhat.com>
1083
1084 * dwarf2-frame.c (read_addr_from_reg): Remove stale comment and
1085 use unpack_pointer.
1086
422ad5c2
JB
10872013-11-18 Joel Brobecker <brobecker@adacore.com>
1088
1089 * mi/mi-main.c (mi_cmd_list_features): Add "language-options"
1090 to -list-features output.
1091
b1370418
JB
10922013-11-17 Joel Brobecker <brobecker@adacore.com>
1093
1094 * dwarf2expr.h (struct dwarf_expr_context_funcs)
1095 <read_addr_from_reg>: Renames "read_reg".
1096 * dwarf2-frame.c (read_addr_from_reg): Renames "read_reg".
1097 Adjust comment.
1098 (dwarf2_frame_ctx_funcs, execute_stack_op, dwarf2_frame_cache):
1099 Use read_addr_from_reg in place of read_reg.
1100 * dwarf2expr.c (execute_stack_op): Use read_addr_from_reg
1101 in place of read_reg.
1102 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Renames
1103 dwarf_expr_read_reg.
1104 (dwarf_expr_ctx_funcs): Replace dwarf_expr_read_reg
1105 with dwarf_expr_read_addr_from_reg.
1106 (needs_frame_read_addr_from_reg): Renames needs_frame_read_reg.
1107 (needs_frame_ctx_funcs): Replace needs_frame_read_reg with
1108 needs_frame_read_addr_from_reg.
1109
6ea71545
JK
11102013-11-15 Jan Kratochvil <jan.kratochvil@redhat.com>
1111
1112 * NEWS (Changes in GDB 7.5) (New commands) (explore): Fix typo.
1113
19a1b230
AA
11142013-11-15 Andreas Arnez <arnez@linux.vnet.ibm.com>
1115
1116 * dwarf2loc.c (chain_candidate): Prevent invoking memcpy with
1117 NULL.
1118
805e1f19
TT
11192013-11-15 Tom Tromey <tromey@redhat.com>
1120
1121 PR c++/16117:
1122 * c-exp.y (lex_one_token): Add "is_quoted_name" argument.
1123 (classify_name): Likewise. Prefer a field of "this" over a
1124 filename.
1125 (classify_inner_name, yylex): Update.
1126
0acf8b65
JB
11272013-11-15 Joel Brobecker <brobecker@adacore.com>
1128
1129 * dwarf2expr.h (struct dwarf_expr_context_funcs) <read_reg>:
1130 Extend the documentation a bit.
1131 <get_reg_value>: New field.
1132 * dwarf2loc.c (dwarf_expr_get_reg_value)
1133 (needs_frame_get_reg_value): New functions.
1134 (dwarf_expr_ctx_funcs, needs_frame_ctx_funcs): Add "get_reg_value"
1135 callback.
1136 * dwarf2-frame.c (get_reg_value): New function.
1137 (dwarf2_frame_ctx_funcs): Add "get_reg_value" callback.
1138 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_regval_type>:
1139 Use new callback to compute result_val.
1140
ef1bc9e7
AM
11412013-11-15 Alan Modra <amodra@gmail.com>
1142
1143 * ppc64-tdep.c (ppc64_plt_entry_point): Renamed from..
1144 (ppc64_desc_entry_point): ..this. Update comments here and at
1145 call points.
1146 (ppc64_standard_linkage1, ppc64_standard_linkage2,
1147 ppc64_standard_linkage3): Update comments.
1148 (ppc64_standard_linkage4, ppc64_standard_linkage5,
1149 (ppc64_standard_linkage6, ppc64_standard_linkage7): New insn
1150 patterns.
1151 (ppc64_standard_linkage4_target): New function.
1152 (ppc64_skip_trampoline_code): Skip ELFv2 patterns too.
1153 * rs6000-tdep.c (skip_prologue): Skip ELFv2 r2 setup. Correct
1154 nop match. Fix comment wrap.
1155
36fa8042
PA
11562013-11-14 Pedro Alves <palves@redhat.com>
1157
1158 * infrun.c (handle_signal_stop): Move STOP_QUIETLY,
1159 STOP_QUIETLY_REMOTE and 'stop_after_trap' handling earlier.
1160
4f5d7f63
PA
11612013-11-14 Pedro Alves <palves@redhat.com>
1162
1163 * infrun.c (struct execution_control_state)
1164 <stepped_after_stopped_by_watchpoint>: New field.
1165 (get_inferior_stop_soon): New function.
1166 (handle_inferior_event): 'stepped_after_stopped_by_watchpoint' was
1167 moved to struct execution_control_state -- adjust. Use
1168 get_inferior_stop_soon. Split TARGET_WAITKIND_STOPPED handling to
1169 new function.
1170 (handle_signal_stop): New function, factored out from
1171 handle_inferior_event.
1172
47591c29
PA
11732013-11-14 Pedro Alves <palves@redhat.com>
1174
1175 * break-catch-sig.c (signal_catchpoint_explains_signal): Adjust to
1176 return a boolean.
1177 * breakpoint.c (bpstat_explains_signal): Adjust to return a
1178 boolean.
1179 (explains_signal_watchpoint, base_breakpoint_explains_signal):
1180 Adjust to return a boolean.
1181 * breakpoint.h (enum bpstat_signal_value): Delete.
1182 (struct breakpoint_ops) <explains_signal>: New returns a boolean.
1183 (bpstat_explains_signal): Likewise.
1184 * infrun.c (handle_inferior_event) <random signal checks>:
1185 bpstat_explains_signal now returns a boolean - adjust. No longer
1186 consider hiding signals.
1187
bac7d97b
PA
11882013-11-14 Pedro Alves <palves@redhat.com>
1189
1190 * breakpoint.c (bpstat_explains_signal) <Moribund locations>:
1191 Return BPSTAT_SIGNAL_PASS instead of BPSTAT_SIGNAL_HIDE.
1192 (explains_signal_watchpoint): Return BPSTAT_SIGNAL_PASS instead of
1193 BPSTAT_SIGNAL_HIDE.
1194 (base_breakpoint_explains_signal): Return BPSTAT_SIGNAL_PASS
1195 instead of BPSTAT_SIGNAL_HIDE.
1196 * infrun.c (handle_inferior_event): Rework random signal checks.
1197
ce12b012
PA
11982013-11-14 Pedro Alves <palves@redhat.com>
1199
1200 * infrun.c (struct execution_control_state): Remove
1201 'random_signal' field.
1202 (handle_syscall_event): Use bpstat_causes_stop instead of
1203 bpstat_explains_signal. Don't set ecs->random_signal.
1204 (handle_inferior_event): New 'random_signal' local.
1205 <TARGET_WAITKIND_FORKED, TARGET_WAITKIND_VFORKED,
1206 TARGET_WAITKIND_EXECD>: Use bpstat_causes_stop instead of
1207 bpstat_explains_signal. Don't set ecs->random_signal.
1208 <TARGET_WAITKIND_STOPPED>: Adjust to use local instead of
1209 ecs->random_signal.
1210
05ba8510
PA
12112013-11-14 Pedro Alves <palves@redhat.com>
1212
1213 * infrun.c (handle_inferior_event): Move comment from the
1214 function's body to the function's description, adjusted.
1215
5c09a2c5
PA
12162013-11-14 Pedro Alves <palves@redhat.com>
1217
1218 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
1219 Handle STOP_QUIETLY_NO_SIGSTOP and STOP_QUIETLY_REMOTE here.
1220 Assert we never fall through out of the TARGET_WAITKIND_LOADED
1221 case.
1222
91822956
TT
12232013-11-14 Tom Tromey <tromey@redhat.com>
1224
1225 * python/py-linetable.c (ltpy_has_line)
1226 (ltpy_get_all_source_lines): Fix loop termination condition.
1227
403cb6b1
JB
12282013-11-14 Joel Brobecker <brobecker@adacore.com>
1229
1230 * mi/mi-parse.h (struct mi_parse) <language>: New field.
1231 * mi/mi-main.c (mi_cmd_execute): Temporarily set language to
1232 PARSE->LANGUAGE during command execution, if set.
1233 * mi/mi-parse.c: Add "language.h" #include.
1234 (mi_parse): Add parsing of "--language" command option.
1235
1236 * NEWS: Add entry mentioning the new "--language" command option.
1237
b5be8ce0
JB
12382013-11-14 Pedro Alves <palves@redhat.com>
1239 Joel Brobecker <brobecker@adacore.com>
1240
1241 * cli/cli-utils.h (extract_arg_const): Add declaration.
1242 * cli/cli-utils.c (extract_arg_const): New function.
1243 (extract_arg): Reimplement using extract_arg_const.
1244
671afef6
JB
12452013-11-14 Joel Brobecker <brobecker@adacore.com>
1246
1247 * language.h: Add "symtab.h" #include.
1248
6c1b0f7b
DE
12492013-11-13 Doug Evans <xdje42@gmail.com>
1250
1251 * breakpoint.c (bpstat_check_breakpoint_conditions): For thread
1252 specific breakpoints, don't evaluate breakpoint condition if
1253 different thread.
1254
74921315
KS
12552013-11-13 Keith Seitz <keiths@redhat.com>
1256
248ace2e 1257 PR c++/7935
74921315
KS
1258 PR c++/10541
1259 * cp-support.c (insepct_type): Add support for substituting
1260 namespace aliases, too.
1261 * dwarf2read.c (scan_partial_symbols): Add a partial symbol
1262 for DW_TAG_imported_declaration.
1263 (add_partial_symbol): Likewise.
1264 (process_die): Handle namespace aliases with
1265 read_namespace_alias.
1266 (die_needs_namespace): Add DW_TAG_imported_declaration.
1267 (read_namespace_alias): New function.
1268 (load_partial_dies): Load DW_TAG_imported_declaration, too.
1269 (new_symbol_full): Handle DW_TAG_imported_declaration.
1270
793156e6
KS
12712013-11-13 Keith Seitz <keiths@redhat.com>
1272
1273 * p-exp.y (uptok): Make first parameter const.
1274 (yylex): Make `tokstart' and `tokptr' const.
1275 Don't copy the lexer input to a temporary buffer.
1276 Make `p' const.
1277 Remove const workaround for parse_escape.
1278 Create a temporary buffer for a convenience variable instead
1279 of doing in-place modification of the input.
1280 If a match is found with a different case from the input,
1281 do not change the input at all.
1282 Use `tmp' to construct the resultant stoken instead of
1283 `tokstart'.
1284
c42bd95a
DE
12852013-11-13 Doug Evans <xdje42@gmail.com>
1286
1287 * breakpoint.c (breakpoint_cond_eval): Fix and enhance comment.
1288
93973826
JB
12892013-11-13 Joel Brobecker <brobecker@adacore.com>
1290
1291 * mi/mi-main.c (mi_cmd_list_features): Replace "info-ada-exceptions"
1292 entry with "ada-exceptions".
1293
846060df
JB
12942013-11-13 Joel Brobecker <brobecker@adacore.com>
1295
1296 * symfile.c (reread_symbols): Move call to set_objfile_per_bfd
1297 after re-initialization of OBJFILE's obstack.
1298
5efd1b2b 12992013-11-12 Doug Evans <xdje42@gmail.com>
7d4df6a4
DE
1300
1301 * breakpoint.c (bpstat_check_breakpoint_conditions): Assert
1302 bs->stop != 0 on entry. Update function comment. Simplify early
1303 exit for frame mismatch. Reindent rest of function.
1304
ee7615e1
AA
13052013-11-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
1306
1307 * objc-lang.c (uniquify_strings): Prevent invoking qsort with
1308 NULL.
1309
8943b874
DE
13102013-11-12 Doug Evans <dje@google.com>
1311
1312 Work around gold/15646.
1313 * dwarf2read.c (read_index_from_section): Update comment.
1314 (struct dw2_symtab_iterator): New member global_seen.
1315 (dw2_symtab_iter_init): Initialize it.
1316 (dw2_symtab_iter_next): Skip duplicate global symbols.
1317 (dw2_expand_symtabs_matching): Ditto.
1318
a8a9844d
JB
13192013-11-12 Joel Brobecker <brobecker@adacore.com>
1320
1321 * mi/mi-cmds.h (mi_cmd_info_ada_exceptions): Add declaration.
1322 * mi/mi-cmds.c (mi_cmds): Add entry for -info-ada-exceptions
1323 command.
1324 * mi/mi-cmd-info.c: #include "ada-lang.c" and "arch-utils.c".
1325 (mi_cmd_info_ada_exceptions): New function.
1326 * mi/mi-main.c (mi_cmd_list_features): Add "info-ada-exceptions".
1327
778865d3
JB
13282013-11-12 Joel Brobecker <brobecker@adacore.com>
1329
1330 * ada-lang.h: #include "vec.h".
1331 (struct ada_exc_info): New.
1332 (ada_exc_info): New typedef.
1333 (DEF_VEC_O(ada_exc_info)): New vector.
1334 (ada_exceptions_list): Add declaration.
1335 * ada-lang.c (ada_is_exception_sym)
1336 (ada_is_non_standard_exception_sym, compare_ada_exception_info)
1337 (sort_remove_dups_ada_exceptions_list)
1338 (ada_exc_search_name_matches, ada_add_standard_exceptions)
1339 (ada_add_exceptions_from_frame, ada_add_global_exceptions)
1340 (ada_exceptions_list_1, ada_exceptions_list)
1341 (info_exceptions_command): New function.
1342 (_initialize_ada_language): Add "info exception" command.
1343
bc79de95
PM
13442013-11-11 Phil Muldoon <pmuldoon@redhat.com>
1345
1346 PR python/15629
1347 * NEWS: Add linetable feature.
1348 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-linetable entries.
1349 * python/py-linetable.c: New file.
1350 * python/py-symtab.c (stpy_get_linetable): New function.
1351 * python/python-internal.h (symtab_to_linetable_object): Declare.
1352 (gdbpy_initialize_linetable): Ditto.
1353 * python/python.c (_initialize_python): Call
1354 gdbpy_initialize_linetable.
1355
2df4d1d5
JB
13562013-11-11 Joel Brobecker <brobecker@adacore.com>
1357
1358 * ada-lang.c (create_ada_exception_catchpoint): Enhance
1359 the documentation of fields "except_string" and "condition".
1360 * mi/mi-cmd-catch.c (mi_cmd_catch_assert): Reallocate
1361 CONDITION on the heap before passing it to
1362 create_ada_exception_catchpoint.
1363 (mi_cmd_catch_exception): Likewise for EXCEPTION_NAME and
1364 CONDITION.
1365
99c1d451
TT
13662013-11-11 Tom Tromey <tromey@redhat.com>
1367
1368 * config.in, configure: Rebuild.
1369 * configure.ac (HAVE_TKILL_SYSCALL): Check for "syscall".
1370
8ca5801b
JB
13712013-11-11 Joel Brobecker <brobecker@adacore.com>
1372
1373 * remote-sim.c (gdbsim_detach): Break declaration into
1374 shorter lines. No code change.
1375
7a06d430
EBM
13762013-11-11 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
1377
1378 * remote-sim.c (gdbsim_detach): Fix prototype.
1379
73be47f5
DE
13802013-11-08 Doug Evans <dje@google.com>
1381
1382 * dwarf2read.c (dwarf2_read_debug): Change to unsigned int.
1383 (create_debug_types_hash_table): Only print debugging messages for
1384 each TU if dwarf2-read >= 2.
1385 (process_queue): Ditto.
1386 (_initialize_dwarf2_read): Make "set debug dwarf2-read" a zuinteger.
1387 Update doc string.
1388
a18d8f10
TT
13892013-11-08 Tom Tromey <tromey@redhat.com>
1390
1391 * configure: Rebuild.
1392 * configure.ac: Remove mentions of HAVE_MULTIPLE_PROC_FDS.
1393
9467110b
TT
13942013-11-08 Tom Tromey <tromey@redhat.com>
1395
1396 * configure, config.in: Rebuild.
1397 * configure.ac: Remove unused configury.
1398
69706679
TT
13992013-11-08 Tom Tromey <tromey@redhat.com>
1400
1401 * m32c-tdep.c: Use gdb_string.h.
1402
9b4bea72
TT
14032013-11-08 Tom Tromey <tromey@redhat.com>
1404
1405 * configure, config.in: Rebuild.
1406 * configure.ac: Remove all link.h-related checks.
1407
3266f10b
TT
14082013-11-08 Tom Tromey <tromey@redhat.com>
1409
1410 * acinclude.m4: Include common.m4.
1411 * common/common.m4: New file.
1412 * configure, config.in: Rebuild.
1413 * configure.ac: Use GDB_AC_COMMON.
1414
db0fec5c
DE
14152013-11-08 Doug Evans <dje@google.com>
1416
1417 * NEWS: Mention that "set debug symtab-create" now accepts a
1418 verbosity level.
1419 * buildsym.c (end_symtab_from_static_block): Call set_symtab_primary
1420 to set the symtab's primary flag.
1421 * jit.c (finalize_symtab): Ditto.
1422 * mdebugread.c (psymtab_to_symtab_1): Ditto.
1423 * symfile.c (allocate_symtab): Only print debugging messages for
1424 symtab_create_debug levels 2 and higher.
1425 * symtab.c (symtab_create_debug): Change type to unsigned int.
1426 (set_symtab_primary): New function.
1427 (_initialize_symtab): Change "set debug symtab-create" to a
1428 zuinteger option.
1429 * symtab.h (set_symtab_primary): Declare.
1430 (symtab_create_debug): Update decl.
1431
52554a0e
TT
14322013-11-08 Tom Tromey <tromey@redhat.com>
1433
1434 * aix-thread.c (aix_thread_detach): Update.
1435 * corelow.c (core_detach): Update.
1436 * darwin-nat.c (darwin_detach): Update.
1437 * dec-thread.c (dec_thread_detach): Update.
1438 * gnu-nat.c (gnu_detach): Update.
1439 * go32-nat.c (go32_detach): Update.
1440 * inf-ptrace.c (inf_ptrace_detach): Update.
1441 * inf-ttrace.c (inf_ttrace_detach): Update.
1442 * linux-fork.c (linux_fork_detach): Update.
1443 * linux-fork.h (linux_fork_detach): Update.
1444 * linux-nat.c (linux_nat_detach): Update. Introduce "tem"
1445 local for const-correctness.
1446 * linux-thread-db.c (thread_db_detach): Update.
1447 * monitor.c (monitor_detach): Update.
1448 * nto-procfs.c (procfs_detach): Update.
1449 * procfs.c (procfs_detach): Update.
1450 * record.c (record_detach): Update.
1451 * record.h (record_detach): Update.
1452 * remote-m32r-sdi.c (m32r_detach): Update.
1453 * remote-mips.c (mips_detach): Update.
1454 * remote-sim.c (gdbsim_detach): Update.
1455 * remote.c (remote_detach_1, remote_detach)
1456 (extended_remote_detach): Update.
1457 * sol-thread.c (sol_thread_detach): Update.
1458 * target.c (target_detach): Make "args" const.
1459 (init_dummy_target): Update.
1460 * target.h (struct target_ops) <to_detach>: Make argument const.
1461 (target_detach): Likewise.
1462 * windows-nat.c (windows_detach): Update.
1463
204b5331
DE
14642013-11-07 Doug Evans <dje@google.com>
1465
1466 PR 11786
1467 * solib-svr4.c (svr4_exec_displacement): Ignore filesz, memsz, flags
1468 and align fields for PT_GNU_RELRO segments.
1469
92e32e33
PM
14702013-11-07 Phil Muldoon <pmuldoon@redhat.com>
1471
ef1bc9e7
AM
1472 PR python/15747
1473 * python/py-cmd.c: Add COMPLETE_EXPRESSION constant.
92e32e33 1474
f76c27b5
PM
14752013-11-07 Phil Muldoon <pmuldoon@redhat.com>
1476
1477 * NEWS: Document Python temporary breakpoint support.
1478 * python/py-breakpoint.c (bppy_get_temporary): New function.
1479 (bppy_init): New keyword: temporary. Parse it and set breakpoint
1480 to temporary if True.
1481
d52cd232
JM
14822013-11-07 Jose E. Marchesi <jose.marchesi@oracle.com>
1483
1484 * sparc-tdep.c (sparc_analyze_control_transfer): Assertion
1485 removed to allow analyzing unconditional branch instructions
1486 with PC-relative offsets of zero.
1487
fa4d0c40
YQ
14882013-11-07 Yao Qi <yao@codesourcery.com>
1489
1490 * mi/mi-cmd-var.c: Include "language.h".
1491 (mi_cmd_var_info_expression): Get language name from
1492 language_defn.
1493 * varobj.c (varobj_language_string): Remove.
1494 (variable_language): Remove declaration.
1495 (languages): Remove.
1496 (varobj_get_language): Change the type of return value.
1497 (variable_language): Remove.
1498 * varobj.h (enum varobj_languages): Remove.
1499 (varobj_language_string): Remove declaration.
1500 (varobj_get_language): Update declaration.
1501
6abde28f
YQ
15022013-11-07 Yao Qi <yao@codesourcery.com>
1503
1504 * language.h (struct language_defn) <la_natural_name>: New
1505 field.
1506 * ada-lang.c (ada_language_defn): Initialize field
1507 'la_natural_name'.
1508 * c-lang.c (c_language_defn): Likewise.
1509 (cplus_language_defn, asm_language_defn): Likewise.
1510 * d-lang.c (d_language_defn): Likewise.
1511 * f-lang.c (f_language_defn): Likewise.
1512 * go-lang.c (go_language_defn): Likewise.
1513 * jv-lang.c (java_language_defn): Likewise.
1514 * language.c (unknown_language_defn ): Likewise.
1515 (auto_language_defn): Likewise.
1516 * m2-lang.c (m2_language_defn): Likewise.
1517 * objc-lang.c (objc_language_defn): Likewise.
1518 * opencl-lang.c (opencl_language_defn): Likewise.
1519 * p-lang.c (pascal_language_defn): Likewise.
1520
27cd387b
YQ
15212013-11-07 Yao Qi <yao@codesourcery.com>
1522
1523 * language.c (language_str): Return const char *.
1524 (add_language): Add const to 'language_names'
1525 * language.h (struct language_defn) <la_name>: Add const.
1526 (language_str: Update declaration.
1527
6682d959
AA
15282013-11-06 Andreas Arnez <arnez@linux.vnet.ibm.com>
1529
1530 * s390-linux-nat.c (s390_read_description): Consider the TE field
1531 in the HWCAP for determining 'have_regset_tdb'.
1532
b9502d3f
WN
15332013-11-06 Will Newton <will.newton@linaro.org>
1534
1535 PR gdb/12866
1536 * dwarf2read.c (skip_one_die): Sanity check DW_AT_sibling
1537 values. (read_partial_die): Likewise.
1538
840da61a
MB
15392013-11-06 Muhammad Bilal <mbilal@codesourcery.com>
1540
1541 PR cli/16122
1542 * top.c (command_line_input): Unify interactivity tests to use
1543 input_from_terminal_p.
1544 * event-top.c (command_line_handler): Likewise.
1545
7636ccf9
YQ
15462013-11-06 Yao Qi <yao@codesourcery.com>
1547
1548 * Makefile.in (check-perf): New target.
1549
12b27276
WN
15502013-11-05 Will Newton <will.newton@linaro.org>
1551
1552 PR gdb/7670
1553 * arm-tdep.c (print_fpu_flags): Use filtered output routines.
1554 (arm_print_float_info): Likewise.
1555
67c059c2
AB
15562013-11-04 Anton Blanchard <anton@samba.org>
1557
1558 * target.c (memory_xfer_partial): Cap write to 4KB.
1559
0569175e
TSD
15602013-11-01 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
1561
1562 * breakpoint.c (create_longjmp_master_breakpoint): Allow libc
1563 probe scan even when the arch provides no get_longjmp_target.
1564
b18e90f5
PA
15652013-10-31 Pedro Alves <palves@redhat.com>
1566
1567 * infrun.c (handle_syscall_event): Don't set or clear stop_signal.
1568 (handle_inferior_event) <TARGET_WAITKIND_FORKED,
1569 TARGET_WAITKIND_VFORKED>: Don't set stop_signal to
1570 GDB_SIGNAL_TRAP, or clear it. Pass GDB_SIGNAL_0 to
1571 bpstat_explains signal, instead of GDB_SIGNAL_TRAP.
1572 <bpstat handling>: If the bpstat chain wants the signal to be
1573 hidden, then set stop_signal to GDB_SIGNAL_0 instead of
1574 GDB_SIGNAL_TRAP.
1575
638aa5a1
AB
15762013-10-31 Andrew Burgess <aburgess@broadcom.com>
1577
1578 * breakpoint.c (update_watchpoint): Update error message and add
1579 an additional error message.
1580
0e5fae36
UW
15812013-10-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1582
1583 * s390-tdep.h: Rename to...
1584 * s390-linux-tdep.h: ...here.
1585 * s390-tdep.c: Rename to...
1586 * s390-linux-tdep.c: ...here. Adjust #include.
1587 * s390-nat.c: Rename to...
1588 * s390-linux-nat.c: ...here. Adjust #include.
1589 * config/s390/s390.mh: Rename to...
1590 * config/s390/linux.mh: ...here. Reflect rename s390-nat.o ->
1591 s390-linux-nat.o.
1592 * configure.host: Reflect host rename "s390" -> "linux".
1593 * configure.tgt: Reflect rename s390-tdep.o -> s390-linux-tdep.o.
1594 * Makefile.in (ALL_TARGET_OBS): Likewise.
1595 (HFILES_NO_SRCDIR): Reflect rename s390-tdep.h ->
1596 s390-linux-tdep.h.
1597 (ALLDEPFILES): Reflect rename of .c files.
1598
34201ae3
UW
15992013-10-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1600
1601 * s390-nat.c: Whitespace cleanup.
1602 * s390-tdep.c: Likewise.
1603 * s390-tdep.h: Remove empty line at end of file.
1604
e17aaa33
MR
16052013-10-30 Maciej W. Rozycki <macro@codesourcery.com>
1606
1607 * linux-tdep.c (linux_corefile_thread_callback): Preinitialize
1608 siginfo_size.
1609
aee17e42
TT
16102013-10-29 Tom Tromey <tromey@redhat.com>
1611
1612 * utils.c (reg): Move undefinition...
1613 * gdb_curses.h: ... here. Update comment to mention AIX.
1614
9ac69859
NB
16152013-10-29 Nicolas Blanc <nicolas.blanc@intel.com>
1616
1617 * exec.h (add_target_sections_of_objfile): New declaration.
1618 * exec.c (add_target_sections_of_objfile): New function.
1619 * symfile.c (add_symbol_file_command): Update current target sections.
1620 (remove_symbol_file_command): New command.
1621 (symfile_free_objfile): New function.
1622 (_initialize_symfile): Register observer for free_objfile events.
1623 * NEWS: Add description of the remove-symbol-file command.
1624 * breakpoint.c (disable_breakpoints_in_freed_objfile): New function.
1625 * objfiles.c (free_objfile): Notify free_objfile.
1626 (is_addr_in_objfile): New function.
1627 * objfiles.h (is_addr_in_objfile): New declaration.
1628 * printcmd.c (clear_dangling_display_expressions): Act upon free_objfile
1629 events instead of solib_unloaded events.
1630 (_initialize_printcmd): Register observer for free_objfile instead
1631 of solib_unloaded notifications.
1632 * solib.c (remove_user_added_objfile): New function.
1633 (_initialize_symfile): Add remove-symbol-file.
1634
f69d9aef
AB
16352013-10-29 Andrew Burgess <aburgess@broadcom.com>
1636
1637 * infcmd.c (default_print_one_register_info): Use val_print to
1638 print all values even optimized out or unavailable ones. Don't
1639 try to print a raw form of optimized out or unavailable values.
1640
487ad57c
YQ
16412013-10-29 Yao Qi <yao@codesourcery.com>
1642
1643 * auto-load.c (auto_load_pspace_data_cleanup): Get data from
1644 parameter 'arg' instead of from program_space_data.
1645 * objfiles.c (objfiles_pspace_data_cleanup): Likewise.
1646 * solib-darwin.c (darwin_pspace_data_cleanup): Likewise.
1647 * solib-dsbt.c (dsbt_pspace_data_cleanup): Likewise.
1648 * solib-svr4.c (svr4_pspace_data_cleanup): Likewise.
1649 * inflow.c (inflow_inferior_data_cleanup): Get data from
1650 parameter 'arg' instead of inferior_data.
1651 * registry.h: Add comments.
1652
3c4797ba
PA
16532013-10-28 Pedro Alves <palves@redhat.com>
1654
1655 * breakpoint.c (watchpoints_triggered)
1656 <!target_stopped_data_address>: Hardcode return 1.
1657
cdaa5b73
PA
16582013-10-28 Pedro Alves <palves@redhat.com>
1659
1660 * infrun.c (process_event_stop_test): Remove unnecessary scoping
1661 level and reindent.
1662
94c57d6a
PA
16632013-10-28 Pedro Alves <palves@redhat.com>
1664
1665 * infrun.c (process_event_stop_test): New function, factored out
1666 from handle_inferior_event.
1667 (handle_inferior_event): 'process_event_stop_test' is now a
1668 function instead of a goto label -- adjust.
1669
fcf3daef
PA
16702013-10-28 Pedro Alves <palves@redhat.com>
1671
1672 * infrun.c (handle_inferior_event): Move process_event_stop_test
1673 goto label to the else branch of the ecs->random_signal check,
1674 along with FRAME and GDBARCH re-fetching.
1675
c447ac0b
PA
16762013-10-28 Pedro Alves <palves@redhat.com>
1677
1678 * infrun.c (switch_back_to_stepped_thread): New function, factored
1679 out from handle_inferior_event.
1680 (handle_inferior_event): Adjust to call
1681 switch_back_to_stepped_thread. Call it also at the tail of the
1682 random signal handling, and return, instead of also handling
1683 random signals just before the stepping tests.
1684
f05e4c11
PA
16852013-10-28 Pedro Alves <palves@redhat.com>
1686
1687 * infrun.c (clear_stop_func): Delete.
1688 (handle_inferior_event): Don't call clear_stop_func and don't
1689 clear 'ecs->random_signal'.
1690
ca20d462
YQ
16912013-10-27 Yao Qi <yao@codesourcery.com>
1692
1693 * varobj.c (struct varobj_root) <lang>: Rename to 'lang_ops'.
1694 (varobj_create, varobj_get_path_expr): Update.
1695 (varobj_value_has_mutated, varobj_update): Likewise.
1696 (create_child_with_value, new_root_variable): Likewise.
1697 (number_of_children, name_of_variable): Likewise.
1698 (value_of_child, my_value_of_variable): Likewise.
1699 (varobj_value_is_changeable_p): Likewise.
1700
a53b64ea
YQ
17012013-10-25 Yao Qi <yao@codesourcery.com>
1702
1703 * language.h (struct lang_varobj_ops): Declare.
1704 (struct language_defn) <la_varobj_ops>: New field.
1705 * ada-lang.c: Include "varobj.h"
1706 (defn ada_language_defn): Initialize field 'la_varobj_ops' with
1707 ada_varobj_ops.
1708 * c-lang.c: Include "varobj.h"
1709 (c_language_defn): Initialize field 'la_varobj_ops' with
1710 c_varobj_ops.
1711 (cplus_language_defn): Initialize field 'la_varobj_ops' with
1712 cplus_varobj_ops.
1713 (asm_language_defn): Initialize field 'la_varobj_ops' with
1714 default_varobj_ops.
1715 (minimal_language_defn): Likewise.
1716 * d-lang.c (d_language_defn): Likewise.
1717 * f-lang.c (f_language_defn): Likewise.
1718 * go-lang.c (go_language_defn): Likewise.
1719 * m2-lang.c (m2_language_defn): Likewise.
1720 * objc-lang.c (objc_language_defn): Likewise.
1721 * opencl-lang.c (opencl_language_defn): Likewise.
1722 * p-lang.c (pascal_language_defn): Likewise.
1723 * language.c (unknown_language_defn): Likewise.
1724 (auto_language_defn): Likewise.
1725 (local_language_defn): Likewise.
1726 * jv-lang.c (java_language_defn): Initialize field
1727 'la_varobj_ops' with java_varobj_ops.
1728 * varobj.c (varobj_create): Update.
1729 * varobj.h (default_varobj_ops): Define macro.
1730
686d4def
PA
17312013-10-25 Pedro Alves <palves@redhat.com>
1732
1733 * cp-valprint.c (cp_print_value_fields): No longer handle a NULL
1734 static field value.
1735 (cp_print_static_field): If the value is entirely optimized out,
1736 print <optimized out> here.
1737 * jv-valprint.c (java_print_value_fields): No longer handle a NULL
1738 static field value.
1739 * p-valprint.c (pascal_object_print_static_field): If the value is
1740 entirely optimized out, print <optimized out> here.
1741 * valops.c (do_search_struct_field)
1742 (value_struct_elt_for_reference): No longer handle a NULL static
1743 field value.
1744 * value.c (value_static_field): Return an optimized out value
1745 instead of NULL.
1746
6c177e28
YQ
17472013-10-25 Yao Qi <yao@codesourcery.com>
1748
1749 * remote.c (remote_traceframe_info): Return early if
1750 traceframe is not selected.
1751
98322bfa
YQ
17522013-10-25 Yao Qi <yao@codesourcery.com>
1753
1754 * tracepoint.c (traceframe_fun): Remove.
1755 (traceframe_sal): Remove.
1756 (set_traceframe_context): Add local variables.
1757
6ba1f115
JB
17582013-10-25 Joel Brobecker <brobecker@adacore.com>
1759
1760 * varobj.h (struct lang_varobj_ops): Remove spaces between '*'
1761 and parameter name.
1762
bbe769cc
MR
17632013-10-24 Maciej W. Rozycki <macro@codesourcery.com>
1764
1765 * linux-tdep.c (linux_corefile_thread_callback): Propagate any
1766 failure from register information collection.
1767
72ee4495 17682013-10-24 Maciej W. Rozycki <macro@codesourcery.com>
59a70096
MR
1769
1770 * linux-tdep.c (linux_corefile_thread_data): Remove `num_notes'
1771 member.
1772 (linux_corefile_thread_callback): Update accordingly.
1773 (linux_make_corefile_notes): Likewise.
1774
98882a26
PA
17752013-10-24 Pedro Alves <palves@redhat.com>
1776
1777 * NEWS (New options): Mention set/show startup-with-shell.
1778 * config/alpha/nm-osf3.h (START_INFERIOR_TRAPS_EXPECTED): Set to 2
1779 instead of 3.
1780 * fork-child.c (fork_inferior, startup_inferior): Handle 'set
1781 startup-with-shell'.
1782 (show_startup_with_shell): New function.
1783 (_initialize_fork_child): Register the set/show startup-with-shell
1784 commands.
1785 * inf-ptrace.c (inf_ptrace_create_inferior): Remove comment.
1786 * inf-ttrace.c (inf_ttrace_him): Remove comment.
1787 * procfs.c (procfs_init_inferior): Remove comment.
1788 * infcmd.c (startup_with_shell): New global.
1789 * inferior.h (startup_with_shell): Declare global.
1790 (STARTUP_WITH_SHELL): Delete.
1791 (START_INFERIOR_TRAPS_EXPECTED): Set to 1 by default instead of 2.
1792
c9737c08
PA
17932013-10-23 Pedro Alves <palves@redhat.com>
1794
1795 * common/gdb_signals.h (gdb_signal_to_symbol_string): Declare.
1796 * common/signals.c: Include "gdb_assert.h".
1797 (signals): New field 'symbol'.
1798 (SET): Use the 'symbol' parameter.
1799 (gdb_signal_to_symbol_string): New function.
1800 * infrun.c (handle_inferior_event) <random signal>: In debug
1801 output, print the random signal enum as string in addition to its
1802 number.
1803 * target/waitstatus.c (target_waitstatus_to_string): Print the
1804 signal's enum value as string instead of the (POSIX) signal name.
1805
f60db4f0
GB
18062013-10-23 Gary Benson <gbenson@redhat.com>
1807
1808 PR 16013
1809 * common/linux-osdata.c (command_from_pid): Reduced size of cmd
1810 from 32 to 18. Adjusted fscanf format string accordingly.
1811 (Avoids leaving cmd unterminated.)
1812 (print_sockets): Do not parse tlen, inode, sl, timeout, txq, rxq,
1813 trun, retn or extra. (Avoids leaving extra unterminated.) Check
1814 that local_address and remote_address will not overflow.
1815 (linux_xfer_osdata_modules): Parse lines using strtok to avoid
1816 leaving dependencies unterminated. Parse size as "%u" to match
1817 definition.
1818
6d3e7a94
PA
18192013-10-22 Pedro Alves <palves@redhat.com>
1820
1821 * infrun.c (handle_inferior_event) <thread hop>: Don't clear or
1822 set ecs->random signal.
1823
42ec045f
PA
18242013-10-22 Pedro Alves <palves@redhat.com>
1825
1826 * infrun.c (keep_going): Update comments.
1827
18282013-10-22 Pedro Alves <palves@redhat.com>
1829
1830 * remote.c (remote_parse_stop_reply) <'T'/'S'/'X' replies>: Map
1831 invalid signal numbers to GDB_SIGNAL_UNKNOWN.
1832
18332013-10-22 Pedro Alves <palves@redhat.com>
1834
1835 * include/gdb/signals.def (TARGET_EXC_BAD_ACCESS): Rename to
1836 GDB_EXC_BAD_ACCESS.
1837 (TARGET_EXC_BAD_INSTRUCTION): Rename to GDB_EXC_BAD_INSTRUCTION.
1838 (TARGET_EXC_ARITHMETIC): Rename to GDB_EXC_ARITHMETIC.
1839 (TARGET_EXC_EMULATION): Rename to GDB_EXC_EMULATION.
1840 (TARGET_EXC_SOFTWARE): Rename to GDB_EXC_SOFTWARE.
1841 (TARGET_EXC_BREAKPOINT): Rename to GDB_EXC_BREAKPOINT.
1842 (GDB_SIGNAL_LAST): Change description string.
1843 * common/signals.c (gdb_signal_from_host, do_gdb_signal_to_host):
1844 Adjust to signal renaming.
1845 * darwin-nat.c (darwin_decode_message): Likewise.
1846
c8fde1b1
JM
18472013-10-22 Jose E. Marchesi <jose.marchesi@oracle.com>
1848
1849 * MAINTAINERS (Write After Approval): Add myself to the list.
1850
e8369a73
AB
18512013-10-18 Andrew Burgess <aburgess@broadcom.com>
1852
1853 * breakpoint.c (update_watchpoint): If hardware watchpoints are
1854 forced off, downgrade them to software watchpoints if possible,
1855 and error out if not possible.
1856 (watch_command_1): Move watchpoint type selection closer to
1857 watchpoint creation, and extend the comments.
1858
776f04fa
PA
18592013-10-18 Pedro Alves <palves@redhat.com>
1860
1861 PR gdb/16062
1862 * infrun.c (handle_inferior_event): Keep going if we got a random
1863 signal we should not stop for, instead of falling through to the
1864 step tests.
1865
0c6faab5
YQ
18662013-10-18 Yao Qi <yao@codesourcery.com>
1867
1868 * c-varobj.c (cplus_number_of_children): Fix indentation.
1869
50b34a18
TT
18702013-10-17 Tom Tromey <tromey@redhat.com>
1871
1872 PR gdb/15995:
1873 * printcmd.c (printcmd): Call gdb_flush.
1874
5c4c8a59
TT
18752013-10-17 Tom Tromey <tromey@redhat.com>
1876
1877 * elfread.c (struct elfinfo) <stabindexsect>: Remove.
1878 (elf_locate_sections): Update.
1879
c4124bf1
YQ
18802013-10-17 Yao Qi <yao@codesourcery.com>
1881
1882 * Makefile.in (HFILES_NO_SRCDIR): Remove ada-varobj.h.
1883 * ada-varobj.c: Remove the include of ada-varobj.h.
1884 (ada_varobj_get_number_of_children): Declare.
1885 (ada_varobj_get_name_of_child): Make it static.
1886 (ada_varobj_get_path_expr_of_child): Likewise.
1887 (ada_varobj_get_value_of_child): Likewise.
1888 (ada_varobj_get_type_of_child): Likewise.
1889 (ada_varobj_get_value_of_array_variable): Likewise.
1890 * ada-varobj.h: Remove.
1891
99ad9427
YQ
18922013-10-17 Yao Qi <yao@codesourcery.com>
1893
1894 * Makefile.in (SFILES): Add c-varobj.c and jv-varobj.c.
1895 (COMMON_OBS): Add c-varobj.o and jv-varobj.o.
1896 * ada-varobj.c: Include "varobj.h".
1897 (ada_number_of_children): New. Moved from varobj.c.
1898 (ada_name_of_variable, ada_name_of_child): Likewise.
1899 (ada_path_expr_of_child, ada_value_of_child): Likewise.
1900 (ada_type_of_child, ada_value_of_variable): Likewise.
1901 (ada_value_is_changeable_p, ada_value_has_mutated): Likewise.
1902 (ada_varobj_ops): New.
1903 * c-varobj.c, jv-varobj.c: New file. Moved from varobj.c.
1904 * gdbtypes.c (get_target_type): New. Moved from varobj.c.
1905 * gdbtypes.h (get_target_type): Declare.
1906 * varobj.c: Remove the inclusion of "ada-varobj.h" and
1907 "ada-lang.h".
1908 (ANONYMOUS_STRUCT_NAME): Move it to c-varobj.c.
1909 (ANONYMOUS_UNION_NAME): Likewise.
1910 (get_type, get_value_type, get_target_type): Remove declarations.
1911 (value_get_print_value, varobj_value_get_print_value): Likewise.
1912 (c_number_of_children, c_name_of_variable): Likewise.
1913 (c_name_of_child, c_path_expr_of_child): Likewise.
1914 (c_value_of_child, c_type_of_child): Likewise.
1915 (c_value_of_variable, cplus_number_of_children): Likewise.
1916 (cplus_class_num_children, cplus_name_of_variable): Likewise.
1917 (cplus_name_of_child, cplus_path_expr_of_child): Likewise.
1918 (cplus_value_of_child, cplus_type_of_child): Likewise.
1919 (cplus_value_of_variable, java_number_of_children): Likewise.
1920 (java_name_of_variable, java_name_of_child): Likewise.
1921 (java_path_expr_of_child, java_value_of_child): Likewise.
1922 (java_type_of_child, java_value_of_variable): Likewise.
1923 (ada_number_of_children, ada_name_of_variable): Likewise.
1924 (ada_name_of_child, ada_path_expr_of_child): Likewise.
1925 (ada_value_of_child, ada_type_of_child): Likewise.
1926 (ada_value_of_variable, ada_value_is_changeable_p): Likewise.
1927 (ada_value_has_mutated): Likewise.
1928 (struct language_specific): Move it to varobj.h.
1929 (CPLUS_FAKE_CHILD): Move it to varobj.h.
1930 (restrict_range): Rename it varobj_restrict_range. Make it extern.
1931 Callers update.
1932 (get_path_expr_parent): Rename it to varobj_get_path_expr_parent.
1933 Make it extern.
1934 (is_anonymous_child): Move it to c-varobj.c and rename to
1935 varobj_is_anonymous_child. Caller update.
1936 (get_type): Move it to c-varobj.c.
1937 (get_value_type): Rename it varobj_get_value_type. Make it
1938 extern.
1939 (get_target_type): Move it gdbtypes.c.
1940 (varobj_formatted_print_options): New function.
1941 (value_get_print_value): Rename it to
1942 varobj_value_get_print_value and make it extern.
1943 (varobj_value_is_changeable_p): Make it extern.
1944 (adjust_value_for_child_access): Move it to c-varobj.c.
1945 (default_value_is_changeable_p): Rename it to
1946 varobj_default_value_is_changeable_p. Make it extern.
1947 (c_number_of_children, c_name_of_variable): Move it to c-varobj.c
1948 (c_name_of_child, c_path_expr_of_child): Likewise.
1949 (c_value_of_child, c_type_of_child): Likewise.
1950 (c_value_of_variable, cplus_number_of_children): Likewise.
1951 (cplus_class_num_children, cplus_name_of_variable): Likewise.
1952 (cplus_name_of_child, cplus_path_expr_of_child): Likewise.
1953 (cplus_value_of_child, cplus_type_of_child): Likewise.
1954 (cplus_value_of_variable): Likewise.
1955 (java_number_of_children, java_name_of_variable): Move it to jv-varobj.c.
1956 (java_name_of_child, java_path_expr_of_child): Likewise.
1957 (java_value_of_child, java_type_of_child): Likewise.
1958 (java_value_of_variable): Likewise.
1959 (ada_number_of_children, ada_name_of_variable): Move it to ada-varobj.c.
1960 (ada_name_of_child, ada_path_expr_of_child): Likewise.
1961 (ada_value_of_child, ada_type_of_child): Likewise.
1962 (ada_value_of_variable, ada_value_is_changeable_p): Likewise.
1963 (ada_value_has_mutated): Likewise.
1964 * varobj.h (CPLUS_FAKE_CHILD): New macro, moved from varobj.c.
1965 (struct lang_varobj_ops): New. Renamed by 'struct language_specific'.
1966 (c_varobj_ops, cplus_varobj_ops): Declare.
1967 (java_varobj_ops, ada_varobj_ops): Declare.
1968 (varobj_default_value_is_changeable_p): Declare.
1969 (varobj_value_is_changeable_p): Declare.
1970 (varobj_get_value_type, varobj_is_anonymous_child): Declare.
1971 (varobj_get_path_expr_parent): Declare.
1972 (varobj_value_get_print_value): Declare.
1973 (varobj_formatted_print_options): Declare.
1974 (varobj_restrict_range): Declare.
1975
c8a62302
LM
19762013-10-17 Luis Machado <lgustavo@codesourcery.com>
1977
1978 * target/waitstatus.h (target_waitkind): Remove spurious
1979 character from the comments.
1980
eade6471
JB
19812013-10-17 Joel Brobecker <brobecker@adacore.com>
1982
1983 * gdbarch.sh (get_longjmp_target): Add method documentation.
1984 * gdbarch.h: Regenerate.
1985
5411b26c
TT
19862013-10-16 Tom Tromey <tromey@redhat.com>
1987
1988 * dbxread.c (read_dbx_symtab) <bss_ext_symbol>: Remove unused
1989 label.
1990
87326c87
LM
19912013-10-16 Luis Machado <lgustavo@codesourcery.com>
1992
1993 * gcore.in: Call GDB using the full path to the gcore script.
1994 Error out if the GDB binary is not found.
1995
fd0a4d76
SDJ
19962013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
1997
1998 PR gdb/16014
1999 * dwarf2read.c (dw2_get_real_path): Remove unnecessary call to
2000 sizeof.
2001
d92f7ee3
SDJ
20022013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
2003
2004 PR gdb/16042
2005 * target.c (target_disable_btrace): Fix invalid return value for
2006 void function.
2007 (target_teardown_btrace): Likewise.
2008
bb5ce47a
YQ
20092013-10-14 Yao Qi <yao@codesourcery.com>
2010
2011 * varobj.c (struct varobj): Move most of the fields to
2012 varobj.h.
2013 (struct varobj_dynamic): New struct.
2014 (varobj_get_display_hint) [HAVE_PYTHON]: Adjust.
2015 (varobj_has_more): Likewise.
2016 (dynamic_varobj_has_child_method): Likewise.
2017 (update_dynamic_varobj_children): Likewise.
2018 (varobj_get_num_children): Likewise.
2019 (varobj_list_children, varobj_pretty_printed_p): Likewise.
2020 (install_new_value_visualizer): Likewise.
2021 (install_new_value_visualizer, install_new_value): Likewise.
2022 (varobj_update, new_variable, free_variable): Likewise.
2023 (my_value_of_variable, value_get_print_value): Likewise.
2024 (install_visualizer): Change the type of parameter 'var' to
2025 'struct varobjd_dynamic *'. Callers update.
2026 * varobj.h (struct varobj): Moved from varobj.c.
2027 (struct varobj) <dynamic>: New field.
2028
0b76b0ce
SL
20292013-10-13 Sandra Loosemore <sandra@codesourcery.com>
2030
2031 * nios2-tdep.c (nios2_reg_names): Use "sstatus" rather than "ba"
2032 as the preferred name of r30.
2033 * nios2-linux-tdep.c (reg_offsets): Likewise.
2034 * features/nios2-cpu.xml: Likewise.
2035 * features/nios2-linux.c: Regenerated.
2036 * features/nios2.c: Regenerated.
2037 * regformats/nios2-linux.dat: Regenerated.
2038
4856b6bc
JK
20392013-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2040
2041 Canonicalize directories for EXEC_FILENAME.
2042 * exec.c (exec_file_attach): Use gdb_realpath_keepfile for
2043 exec_filename.
2044 * utils.c (gdb_realpath_keepfile): New function.
2045 * utils.h (gdb_realpath_keepfile): New declaration.
2046
9b557b58
DE
20472013-10-11 Doug Evans <dje@google.com>
2048
2049 * Makefile.in (GDBFLAGS): New variable.
2050 (run): New rule.
2051
ce13fade
JB
20522013-10-11 Joel Brobecker <brobecker@adacore.com>
2053
2054 * NEWS: Add entry documenting the new "-catch-assert" and
2055 "-catch-exception" GDB/MI commands.
2056
349774ef
JB
20572013-10-11 Joel Brobecker <brobecker@adacore.com>
2058
2059 * breakpoint.h (init_ada_exception_breakpoint): Add parameter
2060 "enabled".
2061 * breakpoint.c (init_ada_exception_breakpoint): Add parameter
2062 "enabled". Set B->ENABLE_STATE accordingly.
2063 * ada-lang.h (ada_exception_catchpoint_kind): Move here from
2064 ada-lang.c.
2065 (create_ada_exception_catchpoint): Add declaration.
2066 * ada-lang.c (ada_exception_catchpoint_kind): Move to ada-lang.h.
2067 (create_ada_exception_catchpoint): Make non-static. Add new
2068 parameter "disabled". Use it in call to
2069 init_ada_exception_breakpoint.
2070 (catch_ada_exception_command): Add parameter "enabled" in call
2071 to create_ada_exception_catchpoint.
2072 (catch_assert_command): Likewise.
2073
2074 * mi/mi-cmds.h (mi_cmd_catch_assert, mi_cmd_catch_exception):
2075 Add declarations.
2076 * mi/mi-cmds.c (mi_cmds): Add the "catch-assert" and
2077 "catch-exception" commands.
2078 * mi/mi-cmd-catch.c: Add #include "ada-lang.h".
2079 (mi_cmd_catch_assert, mi_cmd_catch_exception): New functions.
2080
761269c8
JB
20812013-10-11 Joel Brobecker <brobecker@adacore.com>
2082
2083 * ada-lang.c (enum ada_exception_catchpoint_kind): Renames
2084 "enum exception_catchpoint_kind". Replace the "ex_" prefix
2085 of all its enumerates with "ada_". Update the rest of this
2086 file throughout.
2087
b4a5b78b
JB
20882013-10-11 Joel Brobecker <brobecker@adacore.com>
2089
2090 * ada-lang.c (ada_decode_exception_location): Delete.
2091 (create_ada_exception_catchpoint): Remove arguments "sal",
2092 "addr_string" and "ops". Add argument "ex_kind" instead.
2093 Adjust implementation accordingly, calling ada_exception_sal
2094 to get the entities it no longer gets passed as arguments.
2095 Document the function's arguments.
2096 (catch_ada_exception_command): Use catch_ada_exception_command_split
2097 instead of ada_decode_exception_location, and update call to
2098 create_ada_exception_catchpoint.
2099 (catch_ada_assert_command_split): Renames
2100 ada_decode_assert_location. Remove parameters "addr_string" and
2101 "ops", and now returns void. Adjust implementation accordingly.
2102 Update the function documentation.
2103 (catch_assert_command): Use catch_ada_assert_command_split
2104 instead of ada_decode_assert_location. Update call to
2105 create_ada_exception_catchpoint.
2106
7ad1d32c 21072013-10-11 Joel Brobecker <brobecker@adacore.com>
7c647d61
JB
2108
2109 * utils.h (perror_warning_with_name): Add declaration.
2110 * utils.c (perror_warning_with_name): New function.
2111 * cli/cli-cmds.c (source_script_with_search): Add call to
2112 perror_warning_with_name if from_tty is nul.
2113
7ad1d32c 21142013-10-11 Joel Brobecker <brobecker@adacore.com>
0cf4063e
JB
2115
2116 * utils.c (perror_string): New function, extracted out of
2117 throw_perror_with_name.
2118 (throw_perror_with_name): Rework to use perror_string.
2119
bcc75809
YQ
21202013-10-11 Yao Qi <yao@codesourcery.com>
2121
2122 * remote.c (discard_pending_stop_replies_in_queue): Update
2123 declaration.
2124 (struct stop_reply) <rs>: New field.
2125 (remove_stop_reply_of_remote_state): New function.
2126 (discard_pending_stop_replies_in_queue): Add parameter 'rs'.
2127 Callers update. Pass remove_stop_reply_of_remote_state to
2128 QUEUE_iterate.
2129 (remote_parse_stop_reply): Initialize field 'rs'.
2130
05feb193
WN
21312013-10-10 Will Newton <will.newton@linaro.org>
2132
2133 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
2134 linux_init_abi.
2135
0d12017b
JB
21362013-10-10 Joel Brobecker <brobecker@adacore.com>
2137
2138 * cli/cli-cmds.c (show_baud_rate): Moved to serial.c as
2139 serial_baud_show_cmd.
2140 (_initialize_cli_cmds): Delete the code creating the
2141 "set/show remotebaud" commands.
2142 * serial.c (baud_rate): Move here from top.c.
2143 (serial_baud_show_cmd): Move here from cli/cli-cmds.c.
2144 (_initialize_serial): Create "set/show serial baud" commands.
2145 Add "set/show remotebaud" command aliases.
2146 * top.c (baud_rate): Moved to serial.c.
2147 * NEWS: Document the new "set/show serial baud" commands,
2148 replacing "set/show remotebaud".
2149
578d3588
PA
21502013-10-09 Pedro Alves <palves@redhat.com>
2151
2152 * breakpoint.c (insert_bp_location): Use memory_error_message to
2153 build the memory error string.
2154 * c-lang.c: Include "gdbcore.h".
2155 (c_get_string): Use memory_error to throw error.
2156 (target_xfer_memory_error): Delete.
2157 (memory_error_message): New, factored out from
2158 target_xfer_memory_error.
2159 (memory_error): Change parameter type to target_xfer_error.
2160 Rewrite.
2161 (read_memory): Use memory_error instead of
2162 target_xfer_memory_error.
2163 * gdbcore.h: Include "target.h".
2164 (memory_error): Change parameter type to target_xfer_error.
2165 (memory_error_message): Declare function.
2166 * target.c (target_read_memory, target_read_stack)
2167 (target_write_memory, target_write_raw_memory): Return
2168 TARGET_XFER_E_IO on error. Adjust comments.
2169 (get_target_memory): Pass TARGET_XFER_E_IO to memory_error,
2170 instead of EIO.
2171 * target.h (target_read, target_insert_breakpoint)
2172 (target_remove_breakpoint): Adjust comments.
2173 * valprint.c (partial_memory_read): Rename parameter, and adjust
2174 comment.
2175 (val_print_string): Use memory_error_message to build the memory
2176 error string.
2177
c74e1ccf
JK
21782013-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2179
2180 * common/filestuff.c (gdb_fopen_cloexec): Remove initialization of
2181 result variable. Rename variable fopen_e_ever_failed to
2182 fopen_e_ever_failed_einval. Retry fopen only for errno EINVAL.
2183
915215be
PA
21842013-10-09 Pedro Alves <palves@redhat.com>
2185
2186 * monitor.c (monitor_write_memory, monitor_write_memory_bytes)
2187 (monitor_write_memory_longlongs, monitor_write_memory_block):
2188 Constify 'myaddr' parameter.
2189 (monitor_xfer_memory): Adjust interface as monitor_xfer_partial
2190 helper.
2191 (monitor_xfer_partial): New function.
2192 (init_base_monitor_ops): Don't install a deprecated_xfer_memory
2193 hook. Install a to_xfer_partial hook.
2194
acd13123
TT
21952013-10-09 Tom Tromey <tromey@redhat.com>
2196
2197 * dwarf2read.c (dwarf2_get_dwz_file): Update for type change in
2198 bfd_get_alt_debug_link_info.
2199
40135bb1
JK
22002013-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2201
2202 New flag OBJF_NOT_FILENAME.
2203 * auto-load.c (auto_load_objfile_script): Check also OBJF_NOT_FILENAME.
2204 * jit.c (jit_object_close_impl): Use OBJF_NOT_FILENAME for
2205 allocate_objfile.
2206 (jit_bfd_try_read_symtab): Use OBJF_NOT_FILENAME for
2207 symbol_file_add_from_bfd.
2208 * jv-lang.c (get_dynamics_objfile): Use OBJF_NOT_FILENAME for
2209 allocate_objfile.
2210 * objfiles.c (allocate_objfile): Assert OBJF_NOT_FILENAME if NAME is
2211 NULL.
2212 * objfiles.h (OBJF_NOT_FILENAME): New.
2213
dc294be5
TT
22142013-10-08 Tom Tromey <tromey@redhat.com>
2215
2216 * Makefile.in (SFILES): Add build-id.c.
2217 (HFILES_NO_SRCDIR): Add build-id.h.
2218 * build-id.c: New file, largely from elfread.c. Modified
2219 most functions.
2220 * build-id.h: New file.
2221 * dwarf2read.c (dwarf2_get_dwz_file): Update for change to
2222 bfd_get_alt_debug_link_info. Verify dwz file's build-id.
2223 Search for dwz file using build-id.
2224 * elfread.c (build_id_bfd_get, build_id_verify)
2225 (build_id_to_debug_filename, find_separate_debug_file): Remove.
2226
db230ce3
JB
22272013-10-08 Joel Brobecker <brobecker@adacore.com>
2228
2229 * ada-lang.c (compare_names_with_case): Renamed from
2230 compare_names, adding a new parameter "casing" and its handling.
2231 New function documentation.
2232 (compare_names): New function, implemented using
2233 compare_names_with_case.
2234
6501c98a
JB
22352013-10-08 Joel Brobecker <brobecker@adacore.com>
2236
2237 * ada-lang.c (ada_exception_sal): Remove advance declaration.
2238
84a1243b
TT
22392013-10-07 Tom Tromey <tromey@redhat.com>
2240
2241 * objfiles.c (free_objfile_per_bfd_storage): Delete the
2242 demangled_names_hash.
2243 (free_objfile): Don't delete the demangled_names_hash.
2244 * objfiles.h (struct objfile_per_bfd_storage)
2245 <demangled_names_hash>: New field.
2246 (struct objfile) <demangled_names_hash>: Move to
2247 objfile_per_bfd_storage.
2248 * symfile.c (reread_symbols): Don't delete the
2249 demangled_names_hash.
2250 * symtab.c (create_demangled_names_hash): Update.
2251 (symbol_set_names): Update.
2252
1da77581
TT
22532013-10-07 Tom Tromey <tromey@redhat.com>
2254
2255 * gdb_bfd.c (struct gdb_bfd_data) <relocation_computed,
2256 needs_relocations>: New fields.
2257 (gdb_bfd_requires_relocations): New function.
2258 * gdb_bfd.h (gdb_bfd_requires_relocations): Declare.
2259 * objfiles.c (get_objfile_bfd_data): Disallow sharing if
2260 the BFD needs relocations applied.
2261
46ecd527
PA
22622013-10-07 Pedro Alves <palves@redhat.com>
2263
2264 PR breakpoints/11568
2265 * breakpoint.c (remove_threaded_breakpoints): Say "no longer in
2266 the thread list" instead of "gone".
2267
0c557179
SDJ
22682013-10-06 Sergio Durigan Junior <sergiodj@redhat.com>
2269
2270 * NEWS: Mention new convenience variable $_exitsignal.
2271 * corelow.c (core_open): Reset exit convenience variables. Set
2272 $_exitsignal to the uncaught signal which generated the corefile.
2273 * infrun.c (handle_inferior_event): Reset exit convenience
2274 variables. Set $_exitsignal for TARGET_WAITKIND_SIGNALLED.
2275 (clear_exit_convenience_vars): New function.
2276 * inferior.h (clear_exit_convenience_vars): New prototype.
2277
1cc47d81
YQ
22782013-10-06 Yao Qi <yao@codesourcery.com>
2279
2280 * varobj.h: Add comments to enum varobj_languages.
2281
73869dc2
DE
22822013-10-04 Doug Evans <dje@google.com>
2283
2284 Add support for DWP file format version 2.
2285 * NEWS: Mention support for DWP file format version 2.
2286 * dwarf2read.c (dwarf2_section_info): Convert asection field to a
2287 union of asection, containing_section. New fields virtual_offset
2288 and is_virtual. Change type of readin filed from int to char.
2289 (dwo_sections, dwo_file): Tweak comments.
2290 (dwp_v2_section_ids): New enum.
2291 (dwp_sections): New fields abbrev, info, line, loc, macinfo, macro,
2292 str_offsets, types.
2293 (virtual_v1_dwo_sections): Renamed from virtual_dwo_sections.
2294 All uses updated.
2295 (virtual_v2_dwo_sections): New struct.
2296 (dwp_hash_table): New fields version, nr_columns. Change type of
2297 section_pool field to a union.
2298 (dwp_file): New field version.
2299 (dwarf2_has_info): Check for virtual sections.
2300 (get_containing_section): New function.
2301 (get_section_bfd_owner, get_section_bfd_section): Call it.
2302 (dwarf2_locate_sections): Update.
2303 (dwarf2_section_empty_p): Update.
2304 (dwarf2_read_section): Handle virtual sections.
2305 (locate_dwz_sections): Update.
2306 (create_dwp_hash_table): Document and handle V2 format.
2307 (locate_v1_virtual_dwo_sections): Renamed from
2308 locate_virtual_dwo_sections and update. All callers updated.
2309 (create_dwo_unit_in_dwp_v1): Renamed from create_dwo_in_dwp.
2310 Delete arg htab. Rename arg section_index to unit_index.
2311 All callers updated.
2312 (MAX_NR_V1_DWO_SECTIONS): Renamed from MAX_NR_DWO_SECTIONS.
2313 All uses updated.
2314 (create_dwp_v2_section, create_dwo_unit_in_dwp_v2): New functions.
2315 (lookup_dwo_unit_in_dwp): Add V2 support.
2316 (dwarf2_locate_dwo_sections): Update.
2317 (dwarf2_locate_common_dwp_sections): Renamed from
2318 dwarf2_locate_dwp_sections and update. All callers updated.
2319 (dwarf2_locate_v2_dwp_sections): New function.
2320 (open_and_init_dwp_file): Add V2 support.
2321 (read_str_index): New locals str_section, str_offsets_section.
2322
9a2c3737
PA
23232013-10-04 Pedro Alves <palves@redhat.com>
2324
2325 * common/ptid.c (null_ptid, minus_one_ptid, ptid_build)
2326 (pid_to_ptid, ptid_get_pid, ptid_get_lwp, ptid_get_tid)
2327 (ptid_equal, ptid_is_pid, ptid_lwp_p, ptid_tid_p): Replace
2328 describing comments with references to ptid.h.
2329 * common/ptid.h: Remove intro description of constructors,
2330 accessors and predicates.
2331 (struct ptid): Reformat.
2332 (minus_one_ptid, ptid_build, pid_to_ptid, ptid_get_pid)
2333 (ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid): Change
2334 describing comments.
2335
f5371440
JB
23362013-10-04 Joel Brobecker <brobecker@adacore.com>
2337
2338 * aix-thread.c (sync_threadlists): Add missing ')' in call
2339 to ptid_build.
2340
793e1c06
JB
23412013-10-04 Joel Brobecker <brobecker@adacore.com>
2342
2343 * procfs.c (procfs_init_inferior): Fix typo causing the build
2344 to fail.
2345
26f0edc1
JB
23462013-10-04 Joel Brobecker <brobecker@adacore.com>
2347
2348 * aix-thread.c (ptrace32): Remove cast to addr_ptr.
2349
5713b9b5
JB
23502013-10-04 Joel Brobecker <brobecker@adacore.com>
2351
2352 * mi/mi-main.c (run_one_inferior): Add function description.
2353 Make ARG a pointer to an integer whose value determines whether
2354 we should "run" or "start" the program.
2355 (mi_cmd_exec_run): Add handling of the "--start" option.
2356 Reject all other command-line options.
2357 * NEWS: Add entry for "-exec-run"'s new "--start" option.
2358
f48ff2a7
YQ
23592013-10-04 Yao Qi <yao@codesourcery.com>
2360
2361 * remote-notif.h (REMOTE_NOTIF_ID): New enum.
2362 (struct notif_client) <pending_event>: Moved
2363 to struct remote_notif_state.
2364 <id>: New field.
2365 (struct remote_notif_state) <pending_event>: New field.
2366 (notif_event_xfree): Declare.
2367 * remote-notif.c (handle_notification): Adjust.
2368 (notif_event_xfree): New function.
2369 (do_notif_event_xfree): Call notif_event_xfree.
2370 (remote_notif_state_xfree): Call notif_event_xfree to free
2371 each element in field pending_event.
2372 * remote.c (discard_pending_stop_replies): Remove declaration.
2373 (discard_pending_stop_replies_in_queue): Declare.
2374 (remote_close): Call discard_pending_stop_replies_in_queue
2375 instead of discard_pending_stop_replies.
2376 (remote_start_remote): Adjust.
2377 (stop_reply_xfree): Call notif_event_xfree.
2378 (notif_client_stop): Adjust initialization.
2379 (remote_notif_remove_all): Rename it to ...
2380 (remove_stop_reply_for_inferior): ... this. Update comments.
2381 Don't check INF is NULL.
2382 (discard_pending_stop_replies): Return early if notif_state is
2383 NULL. Adjust. Don't check INF is NULL.
2384 (remote_notif_get_pending_events): Adjust.
ef1bc9e7 2385 (discard_pending_stop_replies_in_queue): New function.
f48ff2a7
YQ
2386 (remote_wait_ns): Likewise.
2387
5965e028
YQ
23882013-10-04 Yao Qi <yao@codesourcery.com>
2389
2390 * remote-notif.c (DECLARE_QUEUE_P): Remove.
2391 (notif_queue): Remove.
2392 (remote_notif_process): Add one parameter 'notif_queue'.
2393 Update comments. Callers update.
2394 (remote_async_get_pending_events_token): Remove.
2395 (remote_notif_register_async_event_handler): Remove.
2396 (remote_notif_unregister_async_event_handler): Remove.
2397 (handle_notification): Add parameter 'notif_queue'. Update
2398 comments. Callers update.
2399 (notif_xfree): Remove.
2400 (remote_notif_state_allocate): New function.
2401 (remote_notif_state_xfree): New function.
2402 (_initialize_notif): Remove code to allocate queue.
2403 * remote-notif.h (DECLARE_QUEUE_P): Moved from remote-notif.c.
2404 (struct remote_notif_state): New.
2405 (handle_notification): Update declaration.
2406 (remote_notif_process): Likewise.
2407 (remote_notif_register_async_event_handler): Remove.
2408 (remote_notif_unregister_async_event_handler): Remove.
2409 (remote_notif_state_allocate): Declare.
2410 (remote_notif_state_xfree): Declare.
2411 * remote.c (struct remote_state) <notif_state>: New field.
2412 (remote_close): Don't call
2413 remote_notif_unregister_async_event_handler. Call
2414 remote_notif_state_xfree.
2415 (remote_open_1): Don't call
2416 remote_notif_register_async_event_handler. Call
2417 remote_notif_state_allocate.
2418
5e5ac9a5
YQ
24192013-10-04 Yao Qi <yao@codesourcery.com>
2420
2421 * varobj.c (create_child_with_value): Remove 'const' from the
2422 type of parameter 'name'.
2423 (varobj_add_child): Likewise.
2424 (install_dynamic_child): Remove 'const' from the type of
2425 parameter 'name'.
2426 (varobj_add_child): Likewise.
2427 (create_child_with_value): Likewise. Update comments. Don't
2428 duplicate 'name'.
2429 (update_dynamic_varobj_children): Duplicate 'name'
2430 and pass it to install_dynamic_child.
2431
06ab7b19
PM
24322013-10-03 Phil Muldoon <pmuldoon@redhat.com>
2433
2434 * python/py-value.c (convert_value_from_python): Move PyInt_Check
2435 conversion logic to occur after PyLong_Check. Comment on order
2436 change significance.
2437 * python/py-arch.c (archpy_disassemble): Comment on order of
2438 conversion for integers and longs.
2439
8ae377e8
PA
24402013-10-03 Pedro Alves <palves@redhat.com>
2441
2442 * common/linux-ptrace.c (linux_check_ptrace_features): Factor out
2443 the PTRACE_O_TRACESYSGOOD and PTRACE_O_TRACEFORK to separate
2444 functions. Always test for PTRACE_O_TRACESYSGOOD even if
2445 PTRACE_O_TRACEFORK is not supported.
2446 (linux_test_for_tracesysgood): New function.
2447 (linux_test_for_tracefork): New function, factored out from
2448 linux_check_ptrace_features, and also don't kill child_pid here.
2449
b1328b1b
TG
24502013-10-03 Tristan Gingold <gingold@adacore.com>
2451
2452 * i386-darwin-nat.c (i386_darwin_dr_set): Fix argument type.
2453 Remove verbose error reporting. Use detected state to
2454 thread_set_state call.
2455 (i386_darwin_dr_get): Fix return type. Remove verbose error
2456 report.
2457 Remove trailing spaces.
2458
901461f8
PA
24592013-10-02 Pedro Alves <palves@redhat.com>
2460
2461 * cp-valprint.c (cp_print_value_fields): Adjust calls to
2462 val_print_optimized_out.
2463 * jv-valprint.c (java_print_value_fields): Likewise.
2464 * p-valprint.c (pascal_object_print_value_fields): Likewise.
2465 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full)
2466 <DWARF_VALUE_REGISTER>: If the register was not saved, return a
2467 new optimized out value.
2468 * findvar.c (address_from_register): Likewise.
2469 * frame.c (put_frame_register): Tweak error string to say the
2470 register was not saved, rather than optimized out.
2471 * infcmd.c (default_print_one_register_info): Adjust call to
2472 val_print_optimized_out. Use value_of_register instead of
2473 get_frame_register_value.
2474 * mi/mi-main.c (output_register): Use value_of_register instead of
2475 get_frame_register_value.
2476 * valprint.c (valprint_check_validity): Likewise.
2477 (val_print_optimized_out): New value parameter. If the value is
2478 lval_register, print <not saved> instead.
2479 (value_check_printable, val_print_scalar_formatted): Adjust calls
2480 to val_print_optimized_out.
2481 * valprint.h (val_print_optimized_out): New value parameter.
2482 * value.c (struct value) <optimized_out>: Extend comment.
2483 (error_value_optimized_out): New function.
2484 (require_not_optimized_out): Use it. Use a different string for
2485 lval_register values.
2486 * value.h (error_value_optimized_out): New declaration.
2487 * NEWS: Mention <not saved>.
2488
042a84d9
JB
24892013-10-02 Joel Brobecker <brobecker@adacore.com>
2490
2491 * symtab.c (compare_search_syms): Use FILENAME_CMP instead of
2492 strcmp to compare two symtab filenames.
2493
6b9780fb
JB
24942013-10-02 Joel Brobecker <brobecker@adacore.com>
2495
2496 * symtab.c (search_symbols_equal): Delete.
2497 (sort_search_symbols_remove_dups): Replace call to
2498 search_symbols_equal by call to compare_search_syms,
2499 adjusting as necessary.
2500
751e7549
PM
25012013-10-02 Phil Muldoon <pmuldoon@redhat.com>
2502
2503 PR python/15579
751e7549
PM
2504 * python/python.c: Document gdb.execute command in Python help.
2505
1efd7661
PM
25062013-10-02 Phil Muldoon <pmuldoon@redhat.com>
2507
2508 * python/py-frame.c (frame_info_to_frame_object): Use
2509 gdbpy_convert_exception. Clean up Python object on failure.
2510
562fc849
PM
25112013-10-02 Phil Muldoon <pmuldoon@redhat.com>
2512
2513 * python/lib/gdb/command/frame_filters.py
2514 (InfoFrameFilter.list_frame_filters): Retrieve exception manually.
2515 (ShowFrameFilterPriority.invoke): Ditto.
2516
d7561cbb
KS
25172013-10-01 Keith Seitz <keiths@redhat.com>
2518
2519 * linespec.c (struct ls_parser): Make 'saved_arg' const.
2520 (parse_linespec): Make 'argptr' const.
2521 Remove temporary cast of 'argptr' to const char **.
2522 (decode_line_full): Pass const pointer to parse_linespec.
2523 (decode_line_1): Likewise.
2524 (decode_objc): Make local variable 'new_argptr' const.
2525 (find_function_symbols): Remove temporary cast to char *
2526 to find_imps.
2527 * objc-lang.c (find_imps): Make argument 'method' const.
2528 Return const.
2529 * objc-lang.h (find_imps): Likewise.
2530
25312013-10-01 Keith Seitz <keiths@redhat.com>
2532
2533 * completer.c (skip_quoted_chars): Make all arguments const.
2534 Return const.
2535 (skip_quoted): Likewise.
2536 * completer.h (skip_quoted_chars): Likewise.
2537 (skip_quoted): Likewise.
2538 * defs.h (skip_quoted): Remove duplicate declaration.
2539 * jv-exp.y: Include completer.h.
2540 (yylex): Remove unneccessary cast to char * fro skip_quoted.
2541 * p-exp.y: Include completer.h.
2542
25432013-10-01 Keith Seitz <keiths@redhat.com>
2544
2545 * c-exp.y (parse_number): Make first argument const.
2546 Make a copy of the input to manipulate.
2547 (c_parse_escape): Make first argument const.
2548 Make local variable 'tokptr' const.
2549 (parse_string_or_char): Make first two arguments const.
2550 (macro_original_text): Make const.
2551 (lex_one_token): Make local variable 'tokstart' const.
2552 Likewise for local variables named 'p'.
2553 Cast away const for struct stoken (temporary).
2554 * c-lang.h (c_parse_escpae): Make first argument const.
2555 * cli/cli-cmds.c (echo_command): Make local variable 'p'
2556 const.
2557 * cli/cli-setshow.c (do_set_command): Likewise for 'p' in
2558 var_string case.
2559 * f-exp.y (parse_number): Make first argument const.
2560 (match_string_literal): Make local variable 'tokstart'
2561 const.
2562 (yylex): Make local variable 'p' const.
2563 Cast away const for struct stoken (temporary).
2564 * go-exp.y (parse_number): Make first argument const.
2565 (parse_string_or_char): Likewise.
2566 Make local variable 'tokstart' const.
2567 (lex_one_token): Likewise for numerous locals called 'p'.
2568 Cast away const for struct stoken (temporary).
2569 * jv-exp.y (parse_number): Make first argument const.
2570 Make local variables 'tokstart' and 'tokptr' const.
2571 Cast away const for call to skip_quoted (temporary).
2572 (yylex): Make local variable 'p' const.
2573 Cast away const for struct stoken (temporary).
2574 * m2-exp.y (parse_number): Make local variable 'p' const.
2575 (yylex): Likewise for 'tokstart'.
2576 Cast away const for struct stoken (temporary).
2577 Make local variable 'p' const.
2578 * macroexp.c (get_character_constant): Pass a const string
2579 to c_parse_escape.
2580 (get_string_literal): Likewise.
2581 (macro_expand_next): Make first argument const.
2582 Cast away const for init_shared_buffer.
2583 * macroexp.h (macro_expand_next): Make first argument const.
2584 * p-exp.y (yylex): Make a local copy of 'lexptr'.
2585 Pass a const string to c_parse_escape.
2586 Make local variables 'p' and 'namestart' const.
2587 * parse.c (lexptr): Make const.
2588 (prev_lexptr): Likewise.
2589 (find_template_name_end): Return const.
2590 Make argument const, too.
2591 (parse_exp_in_context): Make first argument const.
2592 Remove the entire const_hack.
2593 (parse_exp_in_context_1): Make first argument const.
2594 * parser-defs.h (find_template_name_end): Return const.
2595 Make argument const, too.
2596 (lexptr): Make const.
2597 (prev_lexptr): Likewise.
2598 * utils.c (parse_escape): Make second argument const.
2599 * utils.h (parse_escape): Likewise.
2600
26012013-10-01 Keith Seitz <keiths@redhat.com>
2602
2603 * ada-exp.y (write_object_renaming): Update: struct stoken.ptr
2604 is now const.
2605 (block_lookup): Make 'raw_name' and 'name' const.
2606 * ada-lex.l (processString): Update for struct stoken.ptr.
2607 * c-exp.y (qualified_name : TYPENAME COLONCOLON '~' name): Likewise.
2608 (operator_stoken): Likewise.
2609 (lex_one_token): Remove temporary cast to char * for
2610 'yylval.sval.ptr'.
2611 * f-exp.y (yylex): Likewise.
2612 * gdb-types.c (lookup_struct_elt_type): Make argument 'name' const.
2613 * gdbtypes.h (lookup_struct_elt_type): Likewisee.
2614 * go-exp.y (lex_one_token): Remove temporary cast to char * for
2615 'yylval.sval.ptr'.
2616 * jv-exp.y (QualifiedName): Update for struct stoken.ptr.
2617 (yylex): Remove temporary cast to char * for 'yylval.sval.ptr'.
2618 * linespec.c (struct ls_parser): Make 'stream' const.
2619 (find_parameter_list_end): Make argument 'input' and local
2620 variable 'p' const.
2621 (linespec_lexer_lex_string): Make local variables 'start' and
2622 'p' const.
2623 Use skip_spaces_const instead of skip_spaces.
2624 (linespec_lexer_peek_token): Make local variable 'saved_stream'
2625 const.
2626 (parse_linespec): Temporarily cast 'argptr' to const for
2627 'parser->lexer.stream'.
2628 * m2-exp.y (yylex): Remove temporary cast to char * for
2629 'yylval.sval.ptr'.
2630 * objc-lang.c (add_msglist): Make local variable 'p' const.
2631 * p-exp.y (exp : exp '['): Update for struct stoken.ptr.
2632 (exp : STRING): Make 'sp' const.
2633 (parse_number): Make argument 'p' const.
2634 * parser-defs.h (struct stoken): Make 'ptr' const.
2635
193a8eac
DE
26362013-10-01 Doug Evans <dje@google.com>
2637
2638 * cli/cli-decode.c: Remove unnecessary inclusion of tui/tui.h.
2639
2213e2be
YQ
26402013-10-01 Yao Qi <yao@codesourcery.com>
2641
2642 * varobj.c (c_value_of_root): Remove declaration.
2643 (cplus_value_of_root, java_value_of_root): Likewise.
2644 (ada_value_of_root): Likewise.
2645 (struct language_specific) <value_of_root>: Remove.
2646 (languages): Update initialization.
2647 (check_scope): Move earlier.
2648 (c_value_of_root): Move earlier and rename to ...
2649 (value_of_root_1): ... this.
2650 (value_of_root): Caller update.
2651 (cplus_value_of_root, java_value_of_root): Remove.
2652 (ada_value_of_root): Remove.
2653
c573f273
YQ
26542013-10-01 Yao Qi <yao@codesourcery.com>
2655
2656 * varobj.c (varobj_format_string): Remove "unknown".
2657 (languages): Remove the first element.
2658 * varobj.h (enum varobj_languages): Remove vlang_c.
2659
56250258
YQ
26602013-10-01 Yao Qi <yao@codesourcery.com>
2661
2662 * varobj.c (struct language_specific) <language>: Remove.
2663 (languages): Update the initialization.
2664
29f9ebfa
YQ
26652013-10-01 Yao Qi <yao@codesourcery.com>
2666
2667 * arm-wince-tdep.c: Remove inclusion of "solib.h" and
2668 "solib-target.h". Include "windows-tdep.h".
2669 (arm_wince_init_abi): Call windows_init_abi. Remove call to
2670 set_solib_ops and set_gdbarch_has_dos_based_file_system.
2671 * configure.tgt (arm*-wince-pe | arm*-*-mingw32ce*): Append
2672 windows-tdep.o to gdb_target_obs.
2673
64870a42
YQ
26742013-10-01 Yao Qi <yao@codesourcery.com>
2675
2676 * amd64-windows-tdep.c: Remove inclusion of "solib.h" and
2677 "solib-target.h".
2678 (amd64_windows_init_abi): Don't call set_solib_ops and
2679 set_gdbarch_iterate_over_objfiles_in_search_order. Call
2680 windows_init_abi instead.
2681 * i386-cygwin-tdep.c: Remove inclusion of "solib.h" and
2682 "solib-target.h".
2683 (i386_cygwin_init_abi): Don't call set_solib_ops,
2684 set_gdbarch_has_dos_based_file_system and
2685 set_gdbarch_iterate_over_objfiles_in_search_order. Call
2686 windows_init_abi instead.
2687 * windows-tdep.c: Include "solib.h" and "solib-target.h".
2688 (windows_init_abi): New function.
2689 (windows_iterate_over_objfiles_in_search_order): Make it
2690 static.
2691 * windows-tdep.h (windows_init_abi): Declare.
2692 (windows_iterate_over_objfiles_in_search_order): Remove
2693 declaration.
2694
0aebdefa
JB
26952013-10-01 Jerome Guitton <guitton@adacore.com>
2696
2697 Checked in by Joel Brobecker <brobecker@adacore.com>
2698 * system-gdbinit/elinos.py (get_elinos_environment): Return an
2699 incomplete dictionnary instead of None in case of missing
2700 environment variables.
2701 (elinos_init): in case of an incomplete environment, best
2702 effort to load system libraries instead of abort.
2703
1c8e84b0
JB
27042013-10-01 Joel Brobecker <brobecker@adacore.com>
2705
2706 * ada-lang.c (ada_has_this_exception_support): Ignore
2707 mst_solib_trampoline minimal symbols.
2708
61d82a0d
TG
27092013-09-30 Tristan Gingold <gingold@adacore.com>
2710
2711 * i386-darwin-nat.c (darwin_complete_target): Install methods for
2712 hardware watchpoint.
2713 (i386_darwin_dr_set): Support 32 and 64 bit states.
2714 (i386_darwin_dr_get): Likewise.
2715 (i386_darwin_dr_set_control): Make static.
2716 (i386_darwin_dr_set_addr, i386_darwin_dr_get_addr)
2717 (i386_darwin_dr_get_status, i386_darwin_dr_get_control): Likewise.
2718
dfd4cc63
LM
27192013-09-30 Luis Machado <lgustavo@codesourcery.com>
2720
2721 * aarch64-linux-nat.c: Replace PIDGET with ptid_get_pid.
2722 Replace TIDGET with ptid_get_lwp.
2723 Replace GET_LWP with ptid_get_lwp.
2724 * aix-thread.c (BUILD_THREAD, BUILD_LWP): Remove.
2725 Replace BUILD_THREAD with ptid_build.
2726 Replace BUILD_LWP with ptid_build.
2727 Replace PIDGET with ptid_get_pid.
2728 Replace TIDGET with ptid_get_lwp.
2729 * alphabsd-nat.c: Replace PIDGET with ptid_get_pid.
2730 * amd64-linux-nat.c: Replace PIDGET with ptid_get_pid.
2731 Replace TIDGET with ptid_get_lwp.
2732 * amd64bsd-nat.c: Replace PIDGET with ptid_get_pid.
2733 * arm-linux-nat.c: Replace PIDGET with ptid_get_pid.
2734 Replace TIDGET with ptid_get_lwp.
2735 Replace GET_LWP with ptid_get_lwp.
2736 * armnbsd-nat.c: Replace PIDGET with ptid_get_pid.
2737 * auxv.c: Likewise.
2738 * breakpoint.c: Likewise.
2739 * common/ptid.c (ptid_is_pid): Condense check for
2740 null_ptid and minus_one_ptid.
2741 (ptid_lwp_p): New function.
2742 (ptid_tid_p): New function.
2743 * common/ptid.h: Update comments for accessors.
2744 (ptid_lwp_p): New prototype.
2745 (ptid_tid_p): New prototype.
2746 * defs.h (PIDGET, TIDGET, MERGEPID): Do not define.
2747 * gcore.c: Replace PIDGET with ptid_get_pid.
2748 * gdbthread.h: Likewise.
2749 * gnu-nat.c: Likewise.
2750 * hppa-linux-nat.c: Replace PIDGET with ptid_get_pid.
2751 Replace TIDGET with ptid_get_lwp.
2752 * hppabsd-nat.c: Replace PIDGET with ptid_get_pid.
2753 * hppanbsd-nat.c: Likewise.
2754 * i386-linux-nat.c: Replace PIDGET with ptid_get_pid.
2755 Replace TIDGET with ptid_get_lwp.
2756 * i386bsd-nat.c: Replace PIDGET with ptid_get_pid.
2757 * ia64-linux-nat.c: Replace PIDGET with ptid_get_pid.
2758 * infcmd.c: Likewise.
2759 * inferior.h: Likewise.
2760 * inflow.c: Likewise.
2761 * infrun.c: Likewise.
2762 * linux-fork.c: Likewise.
2763 * linux-nat.c: Replace PIDGET with ptid_get_pid.
2764 Replace GET_PID with ptid_get_pid.
2765 Replace is_lwp with ptid_lwp_p.
2766 Replace GET_LWP with ptid_get_lwp.
2767 Replace BUILD_LWP with ptid_build.
2768
5b4e221c
MF
27692013-09-28 Mike Frysinger <vapier@gentoo.org>
2770
2771 * common/linux-btrace.c: Move sys/syscall.h out of the
2772 HAVE_LINUX_PERF_EVENT_H check and wrap it in HAVE_SYS_SYSCALL_H.
2773 Also check for SYS_perf_event_open before attempting to buid.
2774
57d63ce2
DE
27752013-09-27 Doug Evans <dje@google.com>
2776
19ac8c2e
DE
2777 * dwarf2read.c (dwarf2_section_info): Add comment.
2778 (dwp_file): Split loaded_cutus into loaded_cus, loaded_tus.
2779 All uses updated.
2780 (dwarf2_section_empty_p): Rename arg from "info" to "section".
2781 (dwarf2_read_section): Delete unused local "header". Add section
2782 name to error message.
2783 (create_dwo_in_dwp): Tweak comment.
2784 (MAX_NR_DWO_SECTIONS): Combine count of .debug_macro + .debug_macinfo.
2785
a32a8923
DE
2786 * dwarf2read.c (die_reader_specs): Tweak comment.
2787 (get_section_bfd_owner, get_section_bfd_section): New functions.
2788 (get_section_name, get_section_file_name): New functions.
2789 (get_section_id, get_section_flags): New functions.
2790 (*): Use new functions to access section fields.
2791
57d63ce2
DE
2792 * dwarf2read.c (struct dwo_file): Add/tweak comments.
2793 (lookup_dwo_unit_in_dwp): Renamed from lookup_dwo_in_dwp. Remove
2794 arg "htab". All callers updated.
2795 (create_debug_types_hash_table): Remove redundant copy of
2796 abbrev_section.
2797 (create_dwo_in_dwp): Tweak comments.
2798 (read_str_index): Tweak comment. Record dwarf form name in static
2799 local.
2800
3736004f
PA
28012013-09-27 Pedro Alves <palves@redhat.com>
2802
2803 * remote.h (REMOTE_SYSROOT_PREFIX): New define.
2804 (remote_filename_p): Add comment.
2805 * remote.c (remote_filename_p): Adjust to use
2806 REMOTE_SYSROOT_PREFIX.
2807 * solib.c (solib_find): When deciding whether we need to add a
2808 directory separator, check whether the sysroot is "remote:"
2809 instead of checking whether the patch has a drive spec. Add
2810 comments.
2811
5b5596ff
PA
28122013-09-27 Pedro Alves <palves@redhat.com>
2813
2814 * remote.c (struct stop_reply) <solibs_changed, replay_event>:
2815 Delete fields.
2816 (remote_parse_stop_reply): Adjust, setting event->ws.kind
2817 directly.
2818
b5eef7aa
JK
28192013-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2820
2821 Fix set debug frame output.
2822 * frame.c (fprint_frame_type): Add TAILCALL_FRAME entry. Move
2823 SENTINEL_FRAME entry lower to match enum frame_type order.
2824
5b856f36
PM
28252013-09-26 Pierre Muller <muller@sourceware.org>
2826
2827 Replace constant values 8 to 15 by AMD64_R8_REGNUM to
2828 AMD64_R15_REGNUM when a register index is expected.
2829 * amd64-windows-tdep.c (amd64_windows_dummy_call_integer_regs):
2830 Substitute in array.
2831 * amd64-tdep.c (amd64_dwarf_regmap): Ditto.
2832 (amd64_push_arguments): Substitute in integer_regnum array.
2833
ade7ed9e
DE
28342013-09-25 Doug Evans <dje@google.com>
2835
d3e81981
DE
2836 * objfiles.c (allocate_objfile): Move comment to better place.
2837
8fb8eb5c
DE
2838 New option "set debug symfile on".
2839 * NEWS: Mention "set debug symfile".
2840 * Makefile.in (SFILES): Add symfile-debug.c.
2841 (COMMON_OBS): Add symfile-debug.o.
2842 * elfread.c (elf_symfile_read): Use objfile_set_sym_fns to set the
2843 objfile's symbol functions.
2844 * objfiles.h (objfile_set_sym_fns): Declare.
2845 * symfile-debug.c: New file.
2846 * symfile.c (syms_from_objfile_1): Use objfile_set_sym_fns to set the
2847 objfile's symbol functions.
2848 (reread_symbols): Ditto.
2849
c256e171
DE
2850 * symfile.h (struct sym_fns): Delete member "sym_flavour".
2851 All uses updated.
2852 (add_symtab_fns): Update prototype.
2853 * symfile.c (sym_fns_ptr): Delete. Replace with ...
2854 (registered_sym_fns): ... this.
2855 (symtab_fns): Update.
2856 (add_symtab_fns): New arg "flavour". All callers updated.
2857 (find_sym_fns): Rewrite to use new sym_fns registry.
2858
f56ce883
DE
2859 * symfile.h (struct sym_fns): Add "objfile" argument to
2860 sym_read_linetable. All uses updated.
2861
20c681d1
DE
2862 * symtab.c (domain_name, search_domain_name): New functions.
2863 * symtab.h (domain_name, search_domain_name): Declare.
2864
ade7ed9e
DE
2865 * symfile.h (struct quick_symbol_functions): Reorg arg list of
2866 map_matching_symbols so objfile is first. All uses updated.
2867 * dwarf2read.c (dw2_map_matching_symbols): Update signature.
2868 * psymtab.c (map_matching_symbols_psymtab): Update signature.
2869
7d760051
UW
28702013-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
2871
2872 PR shlibs/8882
2873 * solib-svr4.c (svr4_read_so_list): Skip the vDSO when reading
2874 link map entries.
2875
020f7036
DE
28762013-09-24 Doug Evans <dje@google.com>
2877
2878 * objfiles.c (free_objfile): Move comment.
2879
598402f0
JB
28802013-09-24 Joel Brobecker <brobecker@adacore.com>
2881
2882 * ada-exp.y (string_to_operator): Delete.
2883 (dummy_string_to_ada_operator): Delete.
2884
bf4d6c1c
JB
28852013-09-24 Joel Brobecker <brobecker@adacore.com>
2886
2887 Revert:
2888 * i386-tdep.h (enum amd64_reg_class): New, moved here from
2889 amd64-tdep.c.
2890 (struct gdbarch_tdep): Add fields call_dummy_num_integer_regs,
2891 call_dummy_integer_regs, and classify.
2892 * amd64-tdep.h (amd64_classify): Add declaration.
2893 * amd64-tdep.c (amd64_dummy_call_integer_regs): New static constant.
2894 (amd64_reg_class): Delete, moved to i386-tdep.h.
2895 (amd64_classify): Make non-static. Move declaration to amd64-tdep.h.
2896 Replace call to amd64_classify by call to tdep->classify.
2897 (amd64_push_arguments): Get the list of registers to use for
2898 passing integer parameters from the gdbarch tdep structure,
2899 rather than using a hardcoded one. Replace calls to amd64_classify
2900 by calls to tdep->classify.
2901 (amd64_push_dummy_call): Get the register number used for
2902 the "hidden" argument from tdep->call_dummy_integer_regs.
2903 (amd64_init_abi): Initialize tdep->call_dummy_num_integer_regs
2904 and tdep->call_dummy_integer_regs. Set tdep->classify.
2905
849e9755
JB
29062013-09-24 Joel Brobecker <brobecker@adacore.com>
2907
2908 Revert:
2909 * i386-tdep.h (gdbarch_tdep): Add field memory_args_by_pointer.
2910 * amd64-tdep.c (amd64_push_arguments): Add handling of architectures
2911 where tdep->memory_args_by_pointer is non-zero.
2912
c1459fd6
JB
29132013-09-24 Joel Brobecker <brobecker@adacore.com>
2914
2915 Revert:
2916 * i386-tdep.h (struct gdbarch_tdep): Add new field
2917 integer_param_regs_saved_in_caller_frame.
2918 * amd64-tdep.c (amd64_push_dummy_call): Allocate some memory on
2919 stack if tdep->integer_param_regs_saved_in_caller_frame is set.
2920
20c2e3e0
JB
29212013-09-24 Joel Brobecker <brobecker@adacore.com>
2922
874440b8 2923 * amd64-windows-tdep.c: #include "value.h"
20c2e3e0
JB
2924 (amd64_windows_classify): Delete.
2925 (amd64_windows_passed_by_integer_register)
2926 (amd64_windows_passed_by_xmm_register)
2927 (amd64_windows_passed_by_pointer)
2928 (amd64_windows_adjust_args_passed_by_pointer)
2929 (amd64_windows_store_arg_in_reg, amd64_windows_push_arguments)
2930 (amd64_windows_push_dummy_call): New functions.
2931 (amd64_windows_init_abi): Remove setting of
2932 tdep->call_dummy_num_integer_regs, tdep->call_dummy_integer_regs,
2933 tdep->classify, tdep->memory_args_by_pointer and
2934 tdep->integer_param_regs_saved_in_caller_frame.
2935 Add call to set_gdbarch_push_dummy_call.
2936
82bf32bc
JK
29372013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2938
2939 * dwarf2read.c (open_and_init_dwp_file): Try open_dwp_file also with
2940 objfile->original_name.
2941
24ba069a
JK
29422013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2943
2944 Pass down original filename for objfile.
2945 * coffread.c (coff_symfile_read): Update symbol_file_add_separate call.
2946 * elfread.c (elf_symfile_read): Likewise.
2947 * jit.c (jit_object_close_impl): Update allocate_objfile call, no
2948 longer set ORIGINAL_NAME.
2949 (jit_bfd_try_read_symtab): Update symbol_file_add_from_bfd call.
2950 * jv-lang.c (get_dynamics_objfile): Update allocate_objfile call.
2951 * machoread.c (macho_add_oso_symfile): Add parameter name. Update
2952 symbol_file_add_from_bfd call.
2953 (macho_symfile_read_all_oso): Update two macho_add_oso_symfile calls.
2954 (macho_check_dsym): Add parameter filenamep. Change function comment.
2955 Set *filenamep.
2956 (macho_symfile_read): New variable dsym_filename. Update
2957 macho_check_dsym call. Use it for symbol_file_add_separate.
2958 * objfiles.c (allocate_objfile): Add parameter name. New comment for
2959 it. Use it for objfile->original_name.
2960 (objfile_name): Return OBFD's filename, if available.
2961 * objfiles.h (allocate_objfile): Add new parameter name.
2962 * solib.c (solib_read_symbols): Update symbol_file_add_from_bfd call.
2963 * symfile-mem.c (symbol_file_add_from_memory): Update
2964 symbol_file_add_from_bfd call.
2965 * symfile.c (read_symbols): Update symbol_file_add_separate call, new
2966 comment for it.
2967 (symbol_file_add_with_addrs): New parameter name, add function comment
2968 for it. Remove variable name. Update allocate_objfile call.
2969 (symbol_file_add_separate): New parameter name, add function comment
2970 for it. Update symbol_file_add_with_addrs call.
2971 (symbol_file_add_from_bfd): New parameter name. Update
2972 symbol_file_add_with_addrs call.
2973 (symbol_file_add): Update symbol_file_add_from_bfd call.
2974 (reread_symbols): New variable original_name. Save
2975 objfile->original_name by it.
2976 * symfile.h (symbol_file_add_from_bfd, symbol_file_add_separate): Add
2977 second parameter.
2978
4262abfb
JK
29792013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2980
2981 Code cleanup: Add objfile_name accessor function.
2982 * ada-lang.c (is_known_support_routine): Use objfile_name.
2983 * auto-load.c (source_gdb_script_for_objfile)
2984 (auto_load_objfile_script): Likewise.
2985 * coffread.c (coff_symtab_read, read_one_sym): Likewise.
2986 * dbxread.c (dbx_symfile_read): Likewise.
2987 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
2988 * dwarf2loc.c (locexpr_describe_location_piece): Likewise.
2989 * dwarf2read.c (dwarf2_get_dwz_file, dwarf2_read_index)
2990 (dw2_symtab_iter_next, dw2_expand_symtabs_matching)
2991 (lookup_dwp_signatured_type, lookup_dwo_unit)
2992 (dwarf2_build_psymtabs_hard, scan_partial_symbols, process_queue)
2993 (fixup_go_packaging, process_imported_unit_die, dwarf2_physname)
2994 (read_import_statement, create_dwo_cu, open_and_init_dwp_file)
2995 (lookup_dwo_cutu, read_call_site_scope, dwarf2_ranges_read)
2996 (dwarf2_record_block_ranges, read_common_block, read_typedef)
2997 (read_subrange_type, load_partial_dies, read_partial_die)
2998 (read_addr_index_1, read_str_index, dwarf_decode_lines_1)
2999 (die_containing_type, build_error_marker_type, lookup_die_type)
3000 (follow_die_ref_or_sig, follow_die_ref, dwarf2_fetch_die_loc_sect_off)
3001 (dwarf2_fetch_constant_bytes, follow_die_sig, get_signatured_type)
3002 (get_DW_AT_signature_type, write_psymtabs_to_index)
3003 (save_gdb_index_command): Likewise.
3004 * elfread.c (find_separate_debug_file_by_buildid, elf_symfile_read):
3005 Likewise.
3006 * expprint.c (dump_subexp_body_standard): Likewise.
3007 * gdbtypes.c (type_name_no_tag_or_error): Likewise.
3008 * jit.c (jit_object_close_impl): Use the objfile field name renamed to
3009 original_name.
3010 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New variable
3011 obj_name, use objfile_name for it, use the variable.
3012 (try_thread_db_load_from_pdir, has_libpthread, thread_db_new_objfile):
3013 Use objfile_name.
3014 * machoread.c (macho_symtab_read, macho_check_dsym)
3015 (macho_symfile_relocate): Likewise.
3016 * maint.c (maintenance_translate_address): Likewise.
3017 * minidebug.c (find_separate_debug_file_in_section): Likewise.
3018 * minsyms.c (install_minimal_symbols): Likewise.
3019 * objfiles.c (allocate_objfile): Use the objfile field name renamed to
3020 original_name.
3021 (filter_overlapping_sections): Use objfile_name.
3022 (objfile_name): New function.
3023 * objfiles.h (struct objfile): Rename field name to original_name.
3024 (objfile_name): New prototype.
3025 * printcmd.c (sym_info, address_info): Use objfile_name.
3026 * probe.c (parse_probes, collect_probes, compare_probes)
3027 (info_probes_for_ops): Likewise.
3028 * progspace.c (clone_program_space): Likewise.
3029 * psymtab.c (require_partial_symbols, dump_psymtab, allocate_psymtab)
3030 (maintenance_info_psymtabs): Likewise.
3031 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
3032 (source_section_scripts): Likewise.
3033 * python/py-objfile.c (objfpy_get_filename): Likewise.
3034 * python/py-progspace.c (pspy_get_filename): Likewise.
3035 * solib-aix.c (solib_aix_get_toc_value): Likewise.
3036 * solib-som.c (match_main, som_solib_section_offsets): Likewise.
3037 * solib.c (solib_read_symbols): Likewise.
3038 * stabsread.c (scan_file_globals): Likewise.
3039 * stap-probe.c (handle_stap_probe): Likewise.
3040 * symfile.c (symbol_file_clear, separate_debug_file_exists)
3041 (find_separate_debug_file_by_debuglink): Likewise.
3042 (reread_symbols): Likewise. Use the objfile field name renamed to
3043 original_name.
3044 (allocate_symtab): Use objfile_name.
3045 * symmisc.c (print_symbol_bcache_statistics, print_objfile_statistics)
3046 (dump_objfile, dump_msymbols, dump_symtab_1)
3047 (maintenance_print_msymbols, maintenance_print_objfiles)
3048 (maintenance_info_symtabs, maintenance_check_symtabs): Likewise.
3049 * target.c (target_translate_tls_address, target_info): Likewise.
3050 * xcoffread.c (xcoff_initial_scan): Make variable name const. Use
3051 objfile_name.
3052
4721dc18
JK
30532013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3054
3055 Code cleanup.
3056 * probe.c (parse_probes): Rename variable objfile_name to
3057 objfile_namestr.
3058
a61d6db8
JK
30592013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3060
3061 Remove solib-sunos.c.
3062 * Makefile.in (ALLDEPFILES): Remove solib-sunos.c.
3063 * config/m68k/obsd.mh (NATDEPFILES): Remove solib-sunos.o.
3064 * objfiles.c (rt_common_objfile): Remove.
3065 (free_objfile): Remove rt_common_objfile comparison.
3066 * objfiles.h (rt_common_objfile): Remove.
3067 * solib-sunos.c: Remove.
3068 * symfile.c (reread_symbols): Remove solib-sunos.c comment.
3069
2659903b
JK
30702013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3071
3072 Remove a.out NetBSD and OpenBSD hosts.
3073 * NEWS (Removed native configurations): New.
3074 * config/arm/nbsdaout.mh: Remove.
3075 * config/i386/nbsdaout.mh: Remove.
3076 * config/i386/obsdaout.mh: Remove.
3077 * config/m68k/nbsdaout.mh: Remove.
3078 * config/sparc/nbsdaout.mh: Remove.
3079 * config/vax/nbsdaout.mh: Remove.
3080 * configure.host (arm*-*-netbsd*, i[34567]86-*-netbsd*)
3081 (i[34567]86-*-openbsd[0-2].*, i[34567]86-*-openbsd3.[0-3])
3082 (m68*-*-netbsd*, sparc-*-netbsd*, vax-*-netbsd*): Add them to obsolete
3083 error.
3084 (arm*-*-netbsd*, i[34567]86-*-netbsd*, i[34567]86-*-openbsd[0-2].*)
3085 (i[34567]86-*-openbsd3.[0-3], m68*-*-netbsd*, sparc-*-netbsdaout*)
3086 (sparc-*-netbsd*, vax-*-netbsd*): Remove.
3087
f60e2d5c
TT
30882013-09-23 Tom Tromey <tromey@redhat.com>
3089
3090 * linespec.c (struct minsym_and_objfile): Remove.
3091 (minsym_and_objfile_d): Remove.
3092 (struct linespec, struct collect_info, linespec_parse_basic)
3093 (convert_linespec_to_sals, linespec_parser_delete, decode_objc)
3094 (compare_msymbols, find_method, find_function_symbols)
3095 (find_linespec_symbols, struct collect_minsyms, compare_msyms)
3096 (add_minsym, search_minsyms_for_name): Update.
3097
d3eaaf66
AB
30982013-09-23 Andrew Burgess <aburgess@broadcom.com>
3099
3100 * regcache.c: Add include of valprint.h.
3101 (dump_endian_bytes): Delete.
3102 (regcache_dump): Use print_hex_chars not dump_endian_bytes.
3103
2cc762b5
AB
31042013-09-23 Andrew Burgess <aburgess@broadcom.com>
3105
3106 * sh64-tdep.c (sh64_do_fp_register): Use print_hex_chars.
3107
96181529
PA
31082013-09-19 Pedro Alves <palves@redhat.com>
3109
3110 * breakpoint.c (remove_threaded_breakpoints): Skip non-user
3111 breakpoints.
3112
9b3f3ee6
TS
31132013-09-19 Pedro Alves <palves@redhat.com>
3114 Thomas Schwinge <thomas@codesourcery.com>
3115 Yue Lu <hacklu.newborn@gmail.com>
3116
3117 * gnu-nat.c (gnu_read_inferior, gnu_write_inferior): Make static.
3118 Take a gdb_byte pointer instead of a char pointer.
3119
3120 * gnu-nat.c (gnu_xfer_memory): Adjust interface as
3121 gnu_xfer_partial helper.
3122 (gnu_xfer_partial): New function.
3123 (gnu_target): Don't install a deprecated_xfer_memory hook.
3124 Install a to_xfer_partial hook.
3125
69150c3d
JK
31262013-09-19 Jan Kratochvil <jan.kratochvil@redhat.com>
3127
3128 Constification.
3129 * main.c (captured_main): Replace catch_command_errors by
3130 catch_command_errors_const. Twice.
3131 * symfile.c (symbol_file_add_main_1): Make args parameter const.
3132 (symbol_file_add): Make name parameter const.
3133 (symbol_file_add_main, symbol_file_add_main_1): Make args parameter const.
3134 (symfile_bfd_open): Make name parameter const, rename it to cname. Add
3135 variable name. Change their usage accordingly.
3136 * symfile.h (symbol_file_add, symfile_bfd_open): Make first parameter
3137 const.
3138 (symbol_file_add_main): Make args parameter const.
3139
086850b2
UW
31402013-09-18 Raunaq Bathija <raunaq12@in.ibm.com>
3141 Ulrich Weigand <uweigand@de.ibm.com>
3142
3143 * xcoffread.c (struct coff_symbol): Use CORE_ADDR as type
3144 of c_value member.
3145 (read_xcoff_symtab): Use CORE_ADDR as type of fcn_start_addr.
3146
ca08a94c 31472013-09-18 Pedro Alves <palves@redhat.com>
d255f61f 3148 Yue Lu <hacklu.newborn@gmail.com>
ca08a94c
PA
3149
3150 * gnu-nat.c (inf_validate_procs, gnu_wait, gnu_resume)
3151 (gnu_create_inferior)
3152 (gnu_attach, gnu_thread_alive, gnu_pid_to_str, cur_thread)
3153 (set_sig_thread_cmd): Use the lwpid field of ptids to
3154 store/extract thread ids instead of the tid field.
3155 * i386gnu-nat.c (gnu_fetch_registers): Adjust.
3156
e4c6a2c4
AB
31572013-09-18 Andrew Burgess <aburgess@broadcom.com>
3158
3159 * infcmd.c (default_print_one_register_info): Add detection of
3160 optimized out values.
3161 (default_print_registers_info): Switch to using
3162 get_frame_register_value.
3163
58c48e72
MM
31642013-09-18 Markus Metzger <markus.t.metzger@intel.com>
3165
3166 * infrun.c (handle_inferior_event): Check if we know the
3167 function start address before setting a resume breakpoint.
3168
c8d37639
PA
31692013-09-18 Pedro Alves <palves@redhat.com>
3170
3171 * gnu-nat.c (set_sig_thread_cmd): Compare the thread's ptid to
3172 minus_one_ptid instead of looking at the ptid's tid field and
3173 comparing that to -1.
3174
71926e28
AB
31752013-09-18 Andrew Burgess <aburgess@broadcom.com>
3176
3177 * main.h (get_gdb_program_name): Remove extra whitespace.
3178
c88a1531
AB
31792013-09-18 Andrew Burgess <aburgess@broadcom.com>
3180
3181 * main.h (get_gdb_program_name): Add declaration.
3182 * main.c (get_gdb_program_name): Add definition.
3183
4390d890
DE
31842013-09-17 Doug Evans <dje@google.com>
3185
3186 * dwarf2read.c: Move definitions of complaint functions to after
3187 forward declarations of local functions.
3188
49fa26b0
PA
31892013-09-17 Muhammad Waqas <mwaqas@codesourcery.com>
3190 Pedro Alves <palves@redhat.com>
3191
3192 PR gdb/11568
3193 * breakpoint.c (remove_threaded_breakpoints): New function.
3194 (_initialize_breakpoint): Attach remove_threaded_breakpoints
3195 as thread_exit observer.
3196
08d72866
PA
31972013-09-17 Pedro Alves <palves@redhat.com>
3198
3199 PR gdb/15911
3200 * ada-tasks.c (task_command_1): Adjust call to print_stack_frame.
3201 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd):
3202 * corelow.c (core_open):
3203 * frame.h (print_stack_frame, print_frame_info): New
3204 'set_current_sal' parameter.
3205 * infcmd.c (finish_command, kill_command): Adjust call to
3206 print_stack_frame.
3207 * inferior.c (inferior_command): Likewise.
3208 * infrun.c (normal_stop): Likewise.
3209 * linux-fork.c (linux_fork_context): Likewise.
3210 * record-full.c (record_full_goto_entry, record_full_restore):
3211 Likewise.
3212 * remote-mips.c (common_open): Likewise.
3213 * stack.c (print_stack_frame): New 'set_current_sal' parameter.
3214 Use it.
3215 (print_frame_info): New 'set_current_sal' parameter. Set the last
3216 displayed sal depending on the new paremeter instead of looking at
3217 print_what.
3218 (backtrace_command_1, select_and_print_frame, frame_command)
3219 (current_frame_command, up_command, down_command): Adjust call to
3220 print_stack_frame.
3221 * thread.c (print_thread_info, restore_selected_frame)
3222 (do_captured_thread_select): Adjust call to print_stack_frame.
3223 * tracepoint.c (tfind_1): Likewise.
3224 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
3225 (mi_cmd_stack_info_frame): Likewise.
3226 * mi/mi-interp.c (mi_on_normal_stop): Likewise.
3227 * mi/mi-main.c (mi_cmd_exec_return, mi_cmd_trace_find): Likewise.
3228
6bc305f5
SDJ
32292013-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
3230
3231 * value.c (isvoid_internal_fn): Replace "parameter" with
3232 "argument".
3233
0a7cfe2c
SS
32342013-09-16 Stan Shebs <stan@codesourcery.com>
3235
3236 * README: Update references to writing code for GDB.
3237 * configure.ac (build_warnings): Remove obsolete comment.
3238 * configure: Regenerate.
3239 * gdbarch.sh: Remove references to gdbint.texinfo.
3240 * gdbarch.h: Regenerate.
3241 * gdbtypes.c (objfile_type): Remove comments referencing internals
3242 manual and D10V.
3243
a280dbd1
SDJ
32442013-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
3245
3246 * NEWS: Mention new convenience function $_isvoid.
3247 * value.c (isvoid_internal_fn): New function.
3248 (_initialize_values): Add new convenience function $_isvoid.
3249
04a83fee
PM
32502013-09-16 Pierre Muller <muller@sourceware.org>
3251
3252 * arm-linux-tdep.c: Add "elf/common.h" header.
3253 Remove AT_HWCAP macro definintion as it is provided in
3254 added include file.
3255 * s390-tdep.c: Remove system header <elf.h>
3256 Add "elf/common.h" header for AT_HWCAP definition.
3257 (s390_core_read_description): Use correct CORE_ADDR
3258 for hwcap local variable used as third parameter
3259 of function target_auxv_search.
3260
88505fac
PM
32612013-09-14 Pierre Muller <muller@sourceware.org>
3262 Tom Tromey <tromey@redhat.com>
3263 Pedro Alves <palves@redhat.com>
3264
3265 * common/filestuff.c (gdb_fopen_cloexec): Do not try to use "e"
3266 mode if operating system doesn't know O_CLOEXEC.
3267
d3846e71
JK
32682013-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3269
3270 Code cleanup.
3271 * symfile.c (reread_symbols): Move variable obfd_filename to a more
3272 inner block.
3273
4ac33720
UW
32742013-09-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
3275
3276 * NEWS: Mention TDB support.
3277 * features/s390-tdb.xml: New file.
3278 * features/s390-te-linux64.xml: New file.
3279 * features/s390x-te-linux64.xml: New file.
3280 * features/Makefile (WHICH): Add new tdescs above.
3281 (s390-te-linux64-expedite): Set.
3282 (s390x-te-linux64-expedite): Set.
3283 * features/s390-te-linux64.c: New file (generated).
3284 * features/s390x-te-linux64.c: New file (generated).
3285 * regformats/s390-te-linux64.dat: New file (generated).
3286 * regformats/s390x-te-linux64.dat: New file (generated).
3287 * s390-tdep.h (HWCAP_S390_HIGH_GPRS): Define.
3288 (HWCAP_S390_TE): Likewise.
3289 (S390_TDB_DWORD0_REGNUM): Likewise.
3290 (S390_TDB_DWORD0_REGNUM): Likewise.
3291 (S390_TDB_ABORT_CODE_REGNUM): Likewise.
3292 (S390_TDB_CONFLICT_TOKEN_REGNUM): Likewise.
3293 (S390_TDB_ATIA_REGNUM): Likewise.
3294 (S390_TDB_R0_REGNUM): Likewise.
3295 (S390_TDB_R1_REGNUM): Likewise.
3296 (S390_TDB_R2_REGNUM): Likewise.
3297 (S390_TDB_R3_REGNUM): Likewise.
3298 (S390_TDB_R4_REGNUM): Likewise.
3299 (S390_TDB_R5_REGNUM): Likewise.
3300 (S390_TDB_R6_REGNUM): Likewise.
3301 (S390_TDB_R7_REGNUM): Likewise.
3302 (S390_TDB_R8_REGNUM): Likewise.
3303 (S390_TDB_R9_REGNUM): Likewise.
3304 (S390_TDB_R10_REGNUM): Likewise.
3305 (S390_TDB_R11_REGNUM): Likewise.
3306 (S390_TDB_R12_REGNUM): Likewise.
3307 (S390_TDB_R13_REGNUM): Likewise.
3308 (S390_TDB_R14_REGNUM): Likewise.
3309 (S390_TDB_R15_REGNUM): Likewise.
3310 (S390_NUM_REGS): Increase.
3311 (S390_IS_TDBREGSET_REGNUM): New macro.
3312 (s390_regmap_tdb): Declare.
3313 (s390_sizeof_tdbregset): Define.
3314 (tdesc_s390_te_linux64): Declare.
3315 (tdesc_s390x_te_linux64): Likewise.
3316 * s390-tdep.c: Add includes for "auxv.h", <elf.h>,
3317 "features/s390-te-linux64.c", and "features/s390x-te-linux64.c".
3318 (s390_regmap_tdb): New regmap.
3319 (s390_supply_tdb_regset): New function.
3320 (s390_tdb_regset): New regset.
3321 (s390_linux64v2_regset_sections): Add TDB regset to list.
3322 (s390x_linux64v2_regset_sections): Likewise.
3323 (s390_regset_from_core_section): Recognize TDB core note section.
3324 (s390_core_read_description): If HWCAP indicates TE support,
3325 select tdesc_s390_te_linux64 or tdesc_s390_s390x_te_linux64.
3326 (s390_gdbarch_init): Handle TDB regset.
3327 (_initialize_s390_tdep): Initialize new tdescs.
3328 * s390-nat.c (HWCAP_S390_HIGH_GPRS): Remove define.
3329 (have_regset_tdb): New variable.
3330 (s390_native_supply): Support register invalidation.
3331 (fetch_regset): Invalidate registers if ptrace yields ENODATA.
3332 (check_regset): Treat ENODATA as "regset exists".
3333 (s390_linux_fetch_inferior_registers): Add TDB.
3334 (s390_read_description): Check for TDB existence and select
3335 appropriate tdesc.
3336 * gdbserver/Makefile.in (clean): Add removal of new makefile
3337 targets.
3338 (s390-te-linux64.c): New makefile target.
3339 (s390x-te-linux64.c): Likewise.
3340 * gdbserver/configure.srv (srv_regobj): Append new objects
3341 s390-te-linux64.o and s390x-te-linux64.o.
3342 (srv_xmlfiles): Append new files s390-te-linux64.xml,
3343 s390x-te-linux64.xml, and s390-tdb.xml.
3344 * gdbserver/linux-s390-low.c (init_registers_s390_te_linux64): New
3345 declaration.
3346 (tdesc_s390_te_linux64): Likewise.
3347 (init_registers_s390x_te_linux64): Likewise.
3348 (tdesc_s390x_te_linux64): Likewise.
3349 (s390_check_regset): Treat ENODATA as "regset exists".
3350 (s390_arch_setup): Add TDB regset support.
3351 (initialize_low_arch): Initialize registers for new tdescs.
3352
2ccd1468
UW
33532013-09-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
3354
3355 * s390-tdep.h (S390_IS_GREGSET_REGNUM): New macro.
3356 (S390_IS_FPREGSET_REGNUM): New macro.
3357 * s390-tdep.c (s390_dwarf_regmap): Make const.
3358 (regnum_is_gpr_full): New function for replacing repeated code.
3359 (s390_pseudo_register_name): Use it.
3360 (s390_pseudo_register_type): Likewise.
3361 (s390_pseudo_register_read): Likewise.
3362 (s390_pseudo_register_write): Likewise.
3363 (s390_unwind_pseudo_register): Likewise.
3364 (s390_regmap_gregset): New format for regmap.
3365 (s390x_regmap_gregset): Likewise.
3366 (s390_regmap_fpregset): Likewise.
3367 (s390_regmap_upper): Likewise.
3368 (s390_regmap_last_break): Likewise.
3369 (s390_regmap_system_call): Likewise.
3370 (s390_supply_regset): Adjust to new regmap format.
3371 (s390_collect_regset): Likewise.
3372 * s390-nat.c (s390_native_supply): Adjust to new regmap format.
3373 (s390_native_collect): Likewise.
3374 (supply_gregset): Likewise.
3375 (fill_gregset): Likewise.
3376 (supply_fpregset): Likewise.
3377 (fill_fpregset): Likewise.
3378 (fetch_regset): Likewise.
3379 (store_regset): Likewise.
3380 (s390_linux_fetch_inferior_registers): Likewise.
3381 (s390_linux_fetch_inferior_registers): Likewise.
3382
1aa4cd77
AP
33832013-09-12 Andrew Pinski <apinski@cavium.com>
3384
3385 * aarch64-linux-nat.c (aarch64_linux_set_debug_regs): Zero out regs.
3386
d91fab15
UW
33872013-09-10 Andreas Arnez <arnez@linux.vnet.ibm.com>
3388
3389 * config/s390/s390.mh (NATDEPFILES): Add linux-waitpid.o.
3390
5a5d8ead
AB
33912013-09-09 Andrew Burgess <aburgess@broadcom.com>
3392
3393 * top.c (quit_confirm): Remove use of deprecated_init_ui_hook.
3394
1385f66c
PA
33952013-09-06 Pedro Alves <palves@redhat.com>
3396
3397 * remote-sim.c (dump_mem, gdbsim_fetch_register)
3398 (gdbsim_store_register, gdbsim_kill, gdbsim_load)
3399 (gdbsim_create_inferior, gdbsim_open, gdbsim_close)
3400 (gdbsim_detach, gdbsim_resume_inferior, gdbsim_wait)
3401 (gdbsim_files_info, gdbsim_mourn_inferior): Send debug output to
3402 gdb_stdlog.
3403
146ec4db
PA
34042013-09-06 Pedro Alves <palves@redhat.com>
3405
3406 * remote-sim.c (dump_mem): Constify buf parameter.
3407 gdbsim_xfer_inferior_memory): Rename to ...
3408 (gdbsim_xfer_memory): ... this. Adjust interface as
3409 target_xfer_partial helper.
3410 (gdbsim_xfer_partial): New function.
3411 (init_gdbsim_ops): Don't install a deprecated_xfer_memory hook.
3412 Install a to_xfer_partial hook. Send output to gdb_stdlog.
3413
fcde0081
PA
34142013-09-06 Pedro Alves <palves@redhat.com>
3415
3416 * remote-sim.c (gdbsim_xfer_inferior_memory): Use
3417 host_address_to_string, and send debug output to gdb_stdlog.
3418
749c8b38
RW
34192013-09-06 Ricard Wanderlof <ricardw@axis.com>
3420
3421 * Makefile.in (ALL_TARGET_OBS): Add cris-linux-tdep.o.
3422 * configure.tgt: Add cris-linux-tdep.o and linux-tdep.o to
3423 gdb_target_obs for cris target.
3424 * cris-tdep.c (struct gdbarch_tdep): Move to cris-tdep.h.
3425 (cris_gdbarch_init): Move calls to
3426 set_gdbarch_fetch_tls_load_module_address and
3427 set_solib_svr4_fetch_link_map_offsets to cris-linux-tdep.c.
3428 Add call to gdbarch_init_osabi.
3429 * cris-linux-tdep.c: New file.
3430 * cris-tdep.h: New file.
3431
43df09d9
AB
34322013-09-06 Andrew Burgess <aburgess@broadcom.com>
3433
3434 * tui/tui-io.c (tui_initialize_io): Remove legacy comment referring
3435 to deprecated_init_ui_hook.
3436
4d09c5b4
AB
34372013-09-06 Andrew Burgess <aburgess@broadcom.com>
3438
3439 * cli/cli-interp.c (_initialize_cli_interp): Add a
3440 command_loop_proc to interp_procs.
3441 * event-top.c (cli_command_loop): Change signature to match
3442 interp_command_loop_ftype.
3443 * event-top.h (cli_command_loop): Same.
3444 * interps.c (interp_new): Require every interpreter to have a
3445 command_loop_proc.
3446 (current_interp_command_loop): Just call the command_loop_proc on
3447 the current interpreter.
3448 * tui/tui-interp.c (_initialize_tui_interp): Add a
3449 command_loop_proc to interp_procs.
3450
8eb3d7b6
RW
34512013-09-06 Ricard Wanderlof <ricardw@axis.com>
3452
3453 * cris-tdep.c (cris_gdbarch_init): Add call to
3454 get_gdbarch_fetch_tls_load_module_address.
3455
18b3c2f5
RW
34562013-09-06 Ricard Wanderlof <ricardw@axis.com>
3457
3458 * cris-tdep.c (cris_elf_greg_t): Rename from elf_greg_t.
3459 (cris_elf_gregset_t): Rename from elf_gregset_t.
3460 (crisv32_elf_gregset_t): Adjust.
3461 (cris_supply_gregset, fetch_core_registers): Adjust.
3462
dc8636ef
RW
34632013-09-06 Ricard Wanderlof <ricardw@axis.com>
3464
3465 * cris-tdep.c (elf_greg_t): Change typedef to unsigned char[4]
3466
257e6d53
AB
34672013-09-05 Andrew Burgess <aburgess@broadcom.com>
3468
1581d8a7 3469 * defs.h (deprecated_command_loop_hook): Remove, including
257e6d53 3470 references in comments.
1581d8a7 3471 * interps.c (current_interp_command_loop): No longer use
257e6d53
AB
3472 deprecated_command_loop_hook.
3473 (clear_interpreter_hooks): Remove deprecated_command_loop_hook
3474 setup.
1581d8a7 3475 * top.c (deprecated_command_loop_hook): Remove.
257e6d53 3476
7c33b57c
PA
34772013-09-05 Pedro Alves <palves@redhat.com>
3478
3479 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): 'dwarf_regnum'
3480 local is now int instead of ULONGEST. Print it with %d
3481 instead of paddress.
3482
9f8edbd5
TG
34832013-09-05 Tristan Gingold <gingold@adacore.com>
3484
3485 * MAINTAINERS: Remove avr maintainership.
3486
d5b495b4
PA
34872013-09-05 Pedro Alves <palves@redhat.com>
3488
3489 * findvar.c (value_of_register): Rework in terms of
3490 value_of_register_lazy.
3491
40b91786
MB
34922013-09-05 Muhammad Bilal <mbilal@codesourcery.com>
3493
3494 * symfile.c (add_symbol_file_command): Remove trailing
3495 whitespaces and blank line after comment.
3496
6eed1678
PA
34972013-09-05 Pedro Alves <palves@redhat.com>
3498
3499 * tui/tui-regs.c (tui_register_format): Don't look at the
3500 register's name here. Return string representing register
3501 value instead of storing it in the data element.
3502 (tui_get_register): Compare register string representations
3503 instead of register value states and contents.
3504
8eb6bda2
PA
35052013-09-05 Pedro Alves <palves@redhat.com>
3506
3507 PR tui/15933
3508 * tui/tui-regs.c (tui_show_registers): Show registers of the
3509 selected frame, not the current frame.
3510
48b1f08c
RW
35112013-09-05 Ricard Wanderlof <ricardw@axis.com>
3512
3513 * MAINTAINERS (Write After Approval): Add myself to the list.
3514
89e63ee4
DE
35152013-09-04 Doug Evans <dje@google.com>
3516
3517 * dwarf2read.c (queue_and_load_all_dwo_tus): New function.
3518 (queue_and_load_dwo_tu): New function.
3519 (lookup_dwo_signatured_type): Set per_cu.tu_read.
3520 (maybe_queue_comp_unit): Rename this_cu argument to dependent_cu.
3521 Make dependent_cu optional.
3522 (dw2_do_instantiate_symtab): If we just loaded a CU from a DWO,
3523 and an older .gdb_index is in use, queue and load all its TUs too.
3524
492c0ab7
JK
35252013-09-04 Jan Kratochvil <jan.kratochvil@redhat.com>
3526
3527 Code cleanup: Change OPF_DISABLE_REALPATH to OPF_RETURN_REALPATH.
3528 * cli/cli-cmds.c (find_and_open_script): Add OPF_RETURN_REALPATH to
3529 variable search_flags.
3530 * defs.h (OPF_DISABLE_REALPATH): Rename to ...
3531 (OPF_RETURN_REALPATH): ... here.
3532 * dwarf2read.c (try_open_dwop_file): Set OPF_RETURN_REALPATH for flags.
3533 * exec.c (exec_file_attach): Remove OPF_DISABLE_REALPATH from openp
3534 call. Twice.
3535 * nto-tdep.c (nto_find_and_open_solib): Add OPF_RETURN_REALPATH for
3536 openp call.
3537 * solib.c (solib_find): Likewise. Four times.
3538 * source.c (openp): Change OPF_DISABLE_REALPATH to OPF_RETURN_REALPATH
3539 in the function comment and for the realpath_fptr variable.
3540 (source_full_path_of): Add OPF_RETURN_REALPATH for openp call.
3541 (find_and_open_source): Likewise. Twice.
3542 * symfile.c (symfile_bfd_open): Likewise, also twice.
3543
23a44de8
DE
35442013-09-04 Doug Evans <dje@google.com>
3545
3546 * progspace.c (save_current_space_and_thread): Remove unnecessary
3547 call to save_current_inferior.
3548
47061676
AB
35492013-09-04 Andrew Burgess <aburgess@broadcom.com>
3550
3551 * sh64-tdep.c (sh64_do_register): Return after printing message
3552 about unavailable register contents.
3553
41dc8db8
MB
35542013-09-04 Muhammad Bilal <mbilal@codesourcery.com>
3555 Pedro Alves <palves@redhat.com>
3556
3557 * symfile.c (add_symbol_file_command): Error out on unknown
ef1bc9e7
AM
3558 option. Handle EXPECTING_SEC_ADDR/EXPECTING_SEC_NAME before '-'
3559 options and collapse into single conditional branch.
41dc8db8 3560
07107ca6
LM
35612013-09-03 Luis Machado <lgustavo@codesourcery.com>
3562
a7ea61cf 3563 * inf-child.c (inf_child_follow_fork): New parameter
07107ca6
LM
3564 detach_fork.
3565 * inf-ptrace.c (inf_ptrace_follow_fork): Likewise.
3566 * inf-ttrace.c (inf_ttrace_follow_fork): Likewise.
3567 * inferior.h (detach_fork): Remove.
3568 * infrun.c (detach_fork): Adjust comment and make it
3569 static.
3570 (follow_fork): Pass detach_fork parameter to
3571 target_follow_fork.
3572 * linux-nat.c (linux_child_follow_fork): New parameter
3573 detach_fork.
3574 * target.c (target_follow_fork): New parameter detach_fork.
3575 Pass detach_fork as parameter and print its value.
3576 * target.h (struct target_ops) <to_follow_fork>: New int
3577 parameter.
3578 (target_follow_fork): New parameter detach_fork.
3579
3bec2768
JB
35802013-09-03 Joel Brobecker <brobecker@adacore.com>
3581
3582 * solib-ia64-hpux.c (ia64_hpux_relocate_section_addresses):
3583 Replace sec->bfd by sec->the_bfd_section->owner.
3584
c01cbb3d
YQ
35852013-09-03 Yao Qi <yao@codesourcery.com>
3586
3587 * linux-tdep.c (linux_is_uclinux): New function. Code moved
3588 from linux_has_shared_address_space.
3589 (linux_has_shared_address_space): Call linux_is_uclinux.
3590 * linux-tdep.h (linux_is_uclinux): Declare.
3591 * m68klinux-tdep.c (m68k_linux_get_sigtramp_info): Call
3592 linux_is_uclinux.
3593
7b00db47
YQ
35942013-09-03 Yao Qi <yao@codesourcery.com>
3595
3596 * config/djgpp/fnchange.lst: Remove entry of
3597 i386-interix-nat.c and i386-interix-tdep.c.
3598 * configure.ac: Remove '*-*-interix*'.
3599 * configure: Re-generated.
3600 * defs.h (enum gdb_osabi): Remove GDB_OSABI_INTERIX.
3601 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Remove
3602 obsolete comments.
3603 * osabi.c (gdb_osabi_names): Remove "Interix".
3604
0f9741f2
YQ
36052013-09-03 Yao Qi <yao@codesourcery.com>
3606
3607 * arch-utils.c: Fix typo in the comment to gdbarch_update_p.
3608
1e038f67
MM
36092013-09-02 Markus Metzger <markus.t.metzger@intel.com>
3610
3611 * record.h (record_print_flag) <record_print_src_line,
3612 record_print_insn_range>: Rename into ...
3613 (record_print_flag) <record_print_src_line,
3614 record_print_insn_range>: ... this. Update all users.
3615
9e52adf9
PM
36162013-09-02 Pierre Muller <muller@sourceware.org>
3617
3618 * windows-nat.c (windows_xfer_memory): Handle ERROR_PARTIAL_COPY
3619 error code.
3620
a2388568
PM
36212013-09-02 Pierre Muller <muller@sourceware.org>
3622
3623 * windows-nat.c (windows_xfer_memory): Fix compilation failure
3624 by use of plongest function.
3625
9058cc3a
TG
36262013-09-02 Tristan Gingold <gingold@adacore.com>
3627
3628 * NEWS: Add entry mentioning support for native Windows x64
3629 SEH data.
3630
3631 * amd64-windows-tdep.c: #include "objfiles.h", "frame-unwind.h",
3632 "coff/internal.h", "coff/i386.h", "coff/pe.h" and "libcoff.h".
3633 (struct amd64_windows_frame_cache): New struct.
3634 (amd64_windows_w2gdb_regnum): New global.
3635 (pc_in_range, amd64_windows_frame_decode_epilogue)
3636 (amd64_windows_frame_decode_insns, amd64_windows_find_unwind_info)
3637 (amd64_windows_frame_cache, amd64_windows_frame_prev_register)
3638 (amd64_windows_frame_this_id): New functions.
3639 (amd64_windows_frame_unwind): New static global.
3640 (amd64_windows_skip_prologue): New function.
3641 (amd64_windows_init_abi): Call frame_unwind_prepend_unwinder
3642 with amd64_windows_frame_unwind. Call set_gdbarch_skip_prologue
3643 with amd64_windows_skip_prologue.
3644
3161820b 36452013-08-30 Joel Brobecker <brobecker@adacore.com>
3646
3647 GDB 7.6.1 released.
3648
02457c76
PA
36492013-08-30 Pedro Alves <palves@redhat.com>
3650
3651 * mi/mi-main.c (mi_cmd_trace_find): Use LOC_AND_ADDRESS instead of
3652 SRC_AND_LOC.
3653
e0162910
PA
36542013-08-30 Pedro Alves <palves@redhat.com>
3655
3656 * thread.c (restore_selected_frame): Use SRC_AND_LOC, and change
3657 warning text.
3658
6391ce51
PA
36592013-08-30 Pedro Alves <palves@redhat.com>
3660
3661 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd):
3662 Adjust arguments to print_stack_frame.
3663
d1da0587
PA
36642013-08-30 Pedro Alves <palves@redhat.com>
3665
3666 * ada-tasks.c (task_command_1): Write SRC_AND_LOC instead '1'.
3667
adfd8245
PA
36682013-08-30 Pedro Alves <palves@redhat.com>
3669
3670 * frame.h (show_and_print_stack_frame): Delete declaration.
3671
96d9056e
PM
36722013-08-30 Phil Muldoon <pmuldoon@redhat.com>
3673
3674 PR python/15461
96d9056e
PM
3675 * python/py-arch.c (ARCHPY_REQUIRE_VALID): New macro.
3676 (archpy_name): Check for valid architecture.
3677 (archpy_disassemble): Ditto.
3678
11cb8762
JB
36792013-08-29 Joel Brobecker <brobecker@adacore.com>
3680
3681 * rs6000-nat.c (rs6000_ptrace32): Cast "addr" to "uintptr_t"
3682 instead of "long long" in call to ptrace64.
3683
1af12a7d
AB
36842013-08-29 Andrew Burgess <aburgess@broadcom.com>
3685
3686 * mi/mi-interp.c (mi_command_loop): Change signature to match
3687 interp_command_loop_ftype.
3688 (mi1_command_loop): Remove.
3689 (mi2_command_loop): Remove.
3690 (mi3_command_loop): Remove.
3691 (mi_interpreter_resume): Remove setting of
3692 deprecated_command_loop_hook.
3693 (_initialize_mi_interp): Set mi_command_loop as the command loop
3694 callback.
3695
acc900c2
SA
36962013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
3697
3698 * valops.c (do_search_struct_field): Pass v2 instead of base_type to
3699 value_type.
3700
548b762d
SA
37012013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
3702
3703 * value.c (allocate_value_contents): Make static.
3704 * value.h (allocate_value_contents): Remove prototype.
3705
08039c9e
SA
37062013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
3707
3708 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use value_at_lazy instead
3709 of assembling value via allocate_value_lazy and attribute setter.
3710 * findvar.c (default_read_var_value): Use value_at_lazy instead of
3711 assembling value via allocate_value_lazy and attribute setter.
3712 * valops.c (do_search_struct_field): Use value_at_lazy instead of
3713 assembling value via allocate_value_lazy and attribute setter.
3714
314c7de9
SA
37152013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
3716
3717 * value.c (value_from_contents_and_address): Replace allocate_value and
3718 memcpy with value_from_contents.
3719
8f28f522
PM
37202013-08-29 Phil Muldoon <pmuldoon@redhat.com>
3721
3722 * python/py-framefilter.c (py_print_frame): Remove usage of
3723 PyString_AsString. Use python_string_to_host_string instead.
3724 Refactor function to work with a string as a new allocation
3725 instead of a pointer.
3726 (py_print_frame): Ditto.
3727 * python/lib/gdb/frames.py (return_list): Cain iterators together
3728 instead of adding them as a list.
3729 (_sort_list): Call return_list, and remove duplicate code.
3730 (execute_frame_filters): Convert iterator to a list with list().
3731 * python/lib/gdb/command/frame_filters.py
3732 (SetFrameFilterPriority._set_filter_priority): Convert priority
3733 attribute to an integer.
3734 * python/lib/gdb/FrameIterator.py (FrameIterator.next): Define
3735 wrapper function __next__.
3736 * python/lib/gdb/FrameDecorator.py: If basestring not defined,
3737 define as "str".
3738
8ee002df
PM
37392013-08-29 Phil Muldoon <pmuldoon@redhat.com>
3740
3741 PR python/15752
8ee002df
PM
3742 * python/py-framefilter.c (apply_frame_filter): Check
3743 gdb_python_initialized. Exit if the Python frame-filter code
3744 cannot be initialized.
3745
af4c453a
PM
37462013-08-29 Phil Muldoon <pmuldoon@redhat.com>
3747
3748 PR cli/15842
af4c453a
PM
3749 * top.c (print_gdb_version): Remove erroneous newline after help
3750 text.
3751
bf8793bb
YQ
37522013-08-29 Yao Qi <yao@codesourcery.com>
3753
3754 * varobj.c (install_dynamic_child): Remove trailing space.
3755 Add one blank line after variable declaration.
3756
1f0c4988
JK
37572013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3758
3759 PR gdb/15415
3760 * corefile.c (get_exec_file): Use exec_filename.
3761 * defs.h (OPF_DISABLE_REALPATH): New definition. Add new comment.
3762 * exec.c (exec_close): Free EXEC_FILENAME.
3763 (exec_file_attach): New variable canonical_pathname. Use
3764 OPF_DISABLE_REALPATH. Call gdb_realpath explicitly. Set
3765 EXEC_FILENAME.
3766 * exec.h (exec_filename): New.
3767 * inferior.c (print_inferior, inferior_command): Use
3768 PSPACE_EXEC_FILENAME.
3769 * mi/mi-main.c (print_one_inferior): Likewise.
3770 * progspace.c (clone_program_space, print_program_space): Likewise.
3771 * progspace.h (struct program_space): New field pspace_exec_filename.
3772 * source.c (openp): Describe OPF_DISABLE_REALPATH. New variable
3773 realpath_fptr, initialize it from OPF_DISABLE_REALPATH, use it.
3774
59ee9f94
WN
37752013-08-28 Will Newton <will.newton@linaro.org>
3776
3777 * common/linux-ptrace.c: Include stdint.h unconditionally.
3778
c8a2a419
JK
37792013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3780
3781 Code cleanup.
3782 * nto-tdep.c (nto_find_and_open_solib): Use OPF_TRY_CWD_FIRST.
3783
ffa4ac95
YQ
37842013-08-28 Yao Qi <yao@codesourcery.com>
3785 Pedro Alves <palves@redhat.com>
3786
3787 * event-top.c (gdb_setup_readline): Call stderr_fileopen
3788 instead of stdio_fileopen.
3789 * main.c (captured_main) [__MINGW32__]: Set stderr unbuffered.
3790 .Call stderr_fileopen instead of stdio_fileopen.
3791 * ui-file.c [__MINGW32__] (stderr_file_write): New function.
3792 [__MINGW32__] (stderr_file_fputs): New function.
3793 (stderr_fileopen): New function.
3794 * ui-file.h (stderr_fileopen): Declare.
3795
69d751e3
DE
37962013-08-27 Doug Evans <dje@google.com>
3797
3798 * dwarf2read.c (struct dwarf2_cu): Tweak comment.
3799 (struct dwarf2_per_cu_data): Ditto.
3800 (maybe_queue_comp_unit): Delete forward decl. Add comment.
3801 (process_imported_unit_die): Ditto.
3802 (follow_die_sig_1): Simplify assert.
3803
44f38867
PA
38042013-08-27 Pedro Alves <palves@redhat.com>
3805
3806 * windows-nat.c (windows_xfer_memory): Adjust prototype to follow
3807 xfer_partial's interface. Return TARGET_XFER_E_IO on error.
3808 (windows_xfer_partial): Defer TARGET_OBJECT_MEMORY handling to
3809 windows_xfer_memory directly.
3810 (init_windows_ops): Don't install a deprecated_xfer_memory method.
3811
d28d46b5
PA
38122013-08-27 Pedro Alves <palves@redhat.com>
3813
3814 * darwin-nat.c (darwin_xfer_memory): Delete.
3815 (_initialize_darwin_inferior): Don't install a
3816 deprecated_xfer_memory method.
3817
6211c335
YQ
38182013-08-27 Pedro Alves <pedro@codesourcery.com>
3819 Yao Qi <yao@codesourcery.com>
3820
3821 * mi/mi-cmd-stack.c (list_args_or_locals): Adjust prototype.
3822 (parse_no_frames_option): Remove.
3823 (mi_cmd_stack_list_locals): Handle --skip-unavailable.
3824 (mi_cmd_stack_list_args): Adjust.
3825 (mi_cmd_stack_list_variables): Handle --skip-unavailable.
3826 (list_arg_or_local): Add new parameter 'skip_unavailable'. Return
3827 early if SKIP_UNAVAILABLE is true and ARG->val is unavailable.
3828 Caller update.
3829 (list_args_or_locals): New parameter 'skip_unavailable'.
3830 Handle it.
3831 * valprint.c (scalar_type_p): Rename to ...
3832 (val_print_scalar_type_p): ... this. Make extern.
3833 (val_print, value_check_printable): Adjust.
3834 * valprint.h (val_print_scalar_type_p): Declare.
3835 * value.c (value_entirely_unavailable): New function.
3836 * value.h (value_entirely_unavailable): Declare.
3837
3838 * NEWS: Mention the new option "--skip-unavailable" to MI
3839 commands '-stack-list-locals', '-stack-list-arguments' and
3840 '-stack-list-variables'.
3841
242f1fd7
YQ
38422013-08-27 Yao Qi <yao@codesourcery.com>
3843
3844 * mi/mi-cmd-stack.c (parse_no_frames_option): Remove.
3845 (mi_cmd_stack_list_args): Use mi_getopt_silent to handle
3846 options.
3847 * mi/mi-getopt.c (mi_getopt): Remove.
3848 (mi_getopt_1): Renamed from mi_getopt. Add one parameter
3849 'error_on_unknown'.
3850 (mi_getopt): Call mi_getopt_1.
3851 (mi_getopt_silent): New.
3852 * mi/mi-getopt.h (mi_getopt_silent): Declare.
3853
260b681b
DE
38542013-08-26 Doug Evans <dje@google.com>
3855
779bd270
DE
3856 PR symtab/15885
3857 * dwarf2read.c (dw2_dump): Print some minimal information indicating
3858 .gdb_index is in use.
3859 * symfile.c (reread_symbols): Reset objfile->sf.
3860
52e260a3
DE
3861 * NEWS: Document "mt print objfiles" now takes optional regexp.
3862 * symmisc.c (maintenance_print_objfiles): Argument is now an optional
3863 regexp of objfiles to print.
3864 (_initialize_symmisc): Update doc string for "mt print objfiles".
3865
260b681b
DE
3866 * dwarf2read.c (write_psymtabs_to_index): Move error checks ahead of
3867 missing debug info checks.
3868
a85c52f2
UW
38692013-08-26 Raunaq Bathija <raunaq12@in.ibm.com>
3870 Ulrich Weigand <uweigand@de.ibm.com>
3871
3872 * xcoffread.c (arrange_linetable): Add fix to correctly handle
3873 line tables generated by XLC compiled binaries.
3874
4f00dda3
DE
38752013-08-23 Doug Evans <dje@google.com>
3876
db68bbae
DE
3877 * symmisc.c (dump_symtab): Delete prototype.
3878 (dump_msymbols, dump_objfile): Ditto.
3879 (maintenance_info_symtabs): Mark as dont_repeat.
3880 (_initialize_symmisc): Improve doc string for "mt info symtabs".
3881
4f00dda3
DE
3882 * elfread.c (elf_symfile_read): Move "Done reading minimal symbols"
3883 debugging printf to better location.
3884
23d577b0
PA
38852013-08-23 Pedro Alves <palves@redhat.com>
3886
3887 * target.c (target_read_live_memory): Change type of 'ret' local
3888 to LONGEST.
3889
00d84524
PA
38902013-08-23 Pedro Alves <palves@redhat.com>
3891
3892 * remote.c (remote_write_bytes_aux, remote_write_bytes)
3893 (remote_read_bytes): Change return type to LONGEST, and adjust to
3894 return a target_xfer_error on error.
3895 (remote_xfer_memory): Delete.
3896 (remote_flash_write): Change type of 'ret' local to LONGEST.
3897 (remote_xfer_partial, remote_xfer_partial): Adjust.
3898 (init_remote_ops): Don't install a deprecated_xfer_memory hook.
3899
1ed3ee94
PM
39002013-08-23 Pierre Muller <muller@sourceware.org>
3901
3902 ARI fix: Push # directives to start of line.
3903 * rs6000-nat.c (rs6000_ptrace32, rs6000_ptrace64): Rule applied.
3904
9eaabc75
MW
39052013-08-12 Muhammad Waqas <mwaqas@codesourcery.com>
3906
3907 PR gdb/15501
3908 * breakpoint.c (enable_command, disable_command): Iterate over
3909 all specified breakpoint locations.
3910
101158d9
LM
39112013-08-22 Luis Machado <lgustavo@codesourcery.com>
3912
3913 * common/linux-ptrace.c (linux_fork_to_function): Push #
3914 directives to the start of the line.
3915 (linux_check_ptrace_features): Fix warning message to use
3916 the "_" markup.
3917
96d7229d
LM
39182013-08-22 Luis Machado <lgustavo@codesourcery.com>
3919
3920 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-nat.h and
3921 nat/linux-waitpid.h.
3922 (linux-waitpid.o): New object file rule.
3923 * common/linux-ptrace.c: Include nat/linux-waitpid.h.
3924 (current_ptrace_options): Moved from linux-nat.c.
3925 (linux_ptrace_test_ret_to_nx): Use type casts for ptrace
3926 parameters.
3927 (linux_fork_to_function): New function.
3928 (linux_grandchild_function): Likewise.
3929 (linux_child_function): Likewise.
3930 (linux_check_ptrace_features): New function, heavily
3931 based on linux-nat.c:linux_test_for_tracefork.
3932 (linux_enable_event_reporting): New function.
3933 (ptrace_supports_feature): Likewise.
3934 (linux_supports_tracefork): Likewise.
3935 (linux_supports_traceclone): Likewise.
3936 (linux_supports_tracevforkdone): Likewise.
3937 (linux_supports_tracesysgood): Likewise.
3938 * common/linux-ptrace.h (HAS_NOMMU): Moved from
3939 gdbserver/linux-low.c.
3940 (linux_enable_event_reporting): New declaration.
3941 (linux_supports_tracefork): Likewise.
3942 (linux_supports_traceclone): Likewise.
3943 (linux_supports_tracevforkdone): Likewise.
3944 (linux_supports_tracesysgood): Likewise.
3945 * config.in (PTRACE_TYPE_ARG4): Regenerate.
3946 * config/aarch64/linux.mh (NATDEPFILES): Add linux-waitpid.o.
3947 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
3948 * config/arm/linux.mh (NATDEPFILES): Likewise.
3949 * config/i386/linux.mh (NATDEPFILES): Likewise.
3950 * config/i386/linux64.mh (NATDEPFILES): Likewise.
3951 * config/ia64/linux.mh (NATDEPFILES): Likewise.
3952 * config/m32r/linux.mh (NATDEPFILES): Likewise.
3953 * config/m68k/linux.mh (NATDEPFILES): Likewise.
3954 * config/mips/linux.mh (NATDEPFILES): Likewise.
3955 * config/pa/linux.mh (NATDEPFILES): Likewise..
3956 * config/powerpc/linux.mh (NATDEPFILES): Likewise..
3957 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
3958 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
3959 * config/sparc/linux.mh (NATDEPFILES): Likewise.
3960 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
3961 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
3962 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
3963 * configure.ac (AC_CACHE_CHECK): Add void * to the list of
3964 ptrace's 4th argument's types.
3965 Check the type of PTRACE_TYPE_ARG4.
3966 * configure: Regenerate.
3967 * linux-nat.c: Include nat/linux-nat.h and nat/linux-waitpid.h.
3968 (SYSCALL_SIGTRAP): Moved to nat/linux-nat.h.
3969 (linux_supports_tracefork_flag): Remove.
3970 (linux_supports_tracesysgood_flag): Likewise.
3971 (linux_supports_tracevforkdone_flag): Likewise.
3972 (current_ptrace_options): Moved to
3973 common/linux-ptrace.c.
3974 (linux_tracefork_child): Remove.
3975 (my_waitpid): Remove.
3976 (linux_test_for_tracefork): Renamed to
3977 linux_check_ptrace_features and moved to common/linux-ptrace.c.
3978 (linux_test_for_tracesysgood): Remove.
3979 (linux_supports_tracesysgood): Remove.
3980 (linux_supports_tracefork): Remove.
3981 (linux_supports_tracevforkdone): Remove.
3982 (linux_enable_tracesysgood): Remove.
3983 (linux_enable_event_reporting): Remove.
3984 (linux_init_ptrace): New function.
3985 (linux_child_post_attach): Call linux_init_ptrace.
3986 (linux_child_post_startup_inferior): Call linux_init_ptrace.
3987 (linux_child_follow_fork): Call linux_supports_tracefork
3988 and linux_supports_tracevforkdone.
3989 (linux_child_insert_fork_catchpoint): Call
3990 linux_supports_tracefork.
3991 (linux_child_insert_vfork_catchpoint): Likewise.
3992 (linux_child_set_syscall_catchpoint): Call
3993 linux_supports_tracesysgood.
3994 (lin_lwp_attach_lwp): Call linux_supports_tracefork.
3995 * nat/linux-nat.h: New file.
3996 * nat/linux-waitpid.c: New file.
3997 * nat/linux-waitpid.h: New file.
3998
9f948660
SDJ
39992013-08-22 Samuel Bronson <naesten@gmail.com>
4000
4001 ARM Linux support for `catch syscall'.
4002 * syscalls/arm-linux.py: New file.
4003 * syscalls/arm-linux.xml: Likewise.
4004 * arm-linux-tdep.c (arm_linux_get_syscall_number): New function.
4005 (arm_linux_init_abi): Register the new function and syscall xml file.
4006 * data-directory/Makefile.in: Install the new syscall xml file.
4007 * NEWS: Brag about this.
4008
6be7b56e
PA
40092013-08-22 Pedro Alves <palves@redhat.com>
4010
4011 PR gdb/15871
4012 * corefile.c (target_xfer_memory_error): New function.
4013 (memory_error): Defer EIO to target_memory_error.
4014 (read_memory): Use target_xfer_partial, and handle finer-grained
4015 target xfer errors.
4016 * target.c (target_xfer_error_to_string): New function.
4017 (memory_xfer_partial_1): If memory is known to be
4018 unavailable, return TARGET_XFER_E_UNAVAILABLE instead of -1.
4019 (target_xfer_partial): Make extern.
4020 * target.h (enum target_xfer_error): New enum.
4021 (target_xfer_error_to_string): Declare function.
4022 (target_xfer_partial): Declare function.
4023 (struct target_ops) <xfer_partial>: Adjust describing comment.
4024
bcbec14e
AM
40252013-08-22 Alan Modra <amodra@gmail.com>
4026
4027 * configure.host: Support powerpc64le-linux and powerpcle-linux hosts.
4028 * configure.tgt: Likewise as targets.
4029
fc474241
DE
40302013-08-20 Doug Evans <dje@google.com>
4031
4032 * buildsym.c (subfile_stack): Move here from buildsym.h.
4033 (pending_macros): Ditto.
4034 (get_macro_table): New function.
4035 (buildsym_init): Initialize subfile_stack.
4036 * coffread.c (type_vector,type_vector_length): Moved here from
4037 buildsym.h.
4038 (INITIAL_TYPE_VECTOR_LENGTH): Ditto.
4039 (coff_symtab_read): Use it.
4040 * dbxread.c (read_ofile_symtab): Delete init of subfile_stack.
4041 * dwarf2read.c (macro_start_file): Replace uses of pending_macros
4042 with call to get_macro_table.
4043 * stabsread.c (type_vector,type_vector_length): Moved here from
4044 buildsym.h.
4045 (INITIAL_TYPE_VECTOR_LENGTH): Ditto.
4046 * buildsym.h (get_macro_table): Declare.
4047
bec71544
TT
40482013-08-20 Tom Tromey <tromey@redhat.com>
4049
4050 * dbxread.c (record_minimal_symbol): Make 'name' argument const.
4051 Update.
4052 (read_dbx_dynamic_symtab): Make 'name' const. Remove casts.
4053
0002ad5f
DE
40542013-08-20 Doug Evans <dje@google.com>
4055
4056 * blockframe.c: Remove #include "psymtab.h".
4057 * cp-support.c: Ditto.
4058 * source.c: Ditto.
4059 * stack.c: Ditto.
4060
df302446
TT
40612013-08-20 Tom Tromey <tromey@redhat.com>
4062
4063 PR python/15816:
4064 * exceptions.h (return_mask): Now an enum.
4065 (RETURN_MASK_QUIT, RETURN_MASK_ERROR, RETURN_MASK_ALL): Now
4066 enum constants.
4067
df6d5441
TT
40682013-08-20 Tom Tromey <tromey@redhat.com>
4069
4070 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Use
4071 get_objfile_arch.
4072 * elfread.c (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
4073 (elf_gnu_ifunc_resolve_by_got): Use get_objfile_arch.
4074 * jit.c (jit_object_close_impl): Update.
4075 * jv-lang.c (get_dynamics_objfile): Update.
4076 * linespec.c (add_minsym): Use get_dynamics_objfile.
4077 * objfiles.c (get_objfile_bfd_data): Initialize 'gdbarch' field.
4078 (allocate_objfile): Don't initialize 'gdbarch' field.
4079 (get_objfile_arch): Update.
4080 * objfiles.h (struct objfile_per_bfd_storage) <gdbarch>: New field,
4081 moved from...
4082 (struct objfile) <gdbarch>: ... here. Remove.
4083 * stap-probe.c (stap_can_evaluate_probe_arguments): Use
4084 get_objfile_arch.
4085 * symfile.c (init_entry_point_info): Use get_objfile_arch.
4086
f5aee5ee
AM
40872013-08-20 Alan Modra <amodra@gmail.com>
4088
4089 * doublest.c (convert_floatformat_to_doublest): Use fmt->split_half
4090 for IBM long double nan and inf.
4091 (floatformat_is_negative, floatformat_classify,
4092 floatformat_mantissa): Similarly.
4093 (floatformat_ieee_single, floatformat_ieee_double,
4094 floatformat_ieee_quad, floatformat_arm_ext,
4095 floatformat_ia64_spill): Delete unused vars.
4096 (_initialize_doublest): Delete unused function.
4097 * gdbtypes.c (floatformats_ibm_long_double): Use new big- and
4098 little-endian variants of floatformat_ibm_long_double.
4099
33b60d58 41002013-08-19 Luis Machado <lgustavo@codesourcery.com>
f5aee5ee 4101
33b60d58
LM
4102 * Makefile.in (SFILES): Remove common/target-common.c and
4103 add target/waitstatus.c.
4104 (HFILES_NO_SRCDIR): Remove common/target-common.h and add
4105 target/resume.h, target/wait.h and target/waitstatus.h.
4106 (COMMON_OBS): Remove target-common.o and add
4107 waitstatus.o.
4108 (target-common.o): Remove.
4109 (waitstatus.o): New target object file.
4110 * common/target-common.c: Move contents to
4111 target/waitstatus.c and remove.
4112 * common/target-common.h: Move contents to other files and
4113 remove.
4114 (enum resume_kind: Move to target/resume.h.
4115 (TARGET_WNOHANG): Move to target/wait.h.
4116 (enum target_waitkind): Move to target/waitstatus.h.
4117 (struct target_waitstatus): Likewise.
4118 * target.h: Do not include target-common.h and
4119 include target/resume.h, target/wait.h and
4120 target/waitstatus.h.
4121 * target/resume.h: New file.
4122 * target/wait.h: New file.
4123 * target/waitstatus.h: New file.
4124 * target/waitstatus.c: New file.
4125
12696c10
PA
41262013-08-19 Pedro Alves <palves@redhat.com>
4127
4128 * linux-nat.c (linux_test_for_tracefork)
4129 (linux_test_for_tracesysgood, linux_child_follow_fork)
4130 (lin_lwp_attach_lwp, linux_nat_resume): Don't block child signals.
4131 (linux_nat_wait_1): Extend comment.
4132 (linux_async_pipe): Add comment.
4133
ba89f962
KB
41342013-08-15 Kevin Buettner <kevinb@redhat.com>
4135
4136 * rl78-tdep.c (RL78_RAW_PC_REGNUM): New enum.
4137 (RL78_PC_REGNUM): Move to list of pseudo-register enums.
4138 (rl78_register_type, rl78_register_name, rl78_register_reggroup_p):
4139 Update to account for fact that PC is now a pseudo-register.
4140 (rl78_pseudo_register_write, rl78_pseudo_register_read): Add
4141 cases for RL78_PC_REGNUM.
4142
35ab155d
MB
41432013-08-15 Muhammad Bilal <mbilal@codesourcery.com>
4144
4145 PR cli/15841
4146 * top.c (quit_force): Skip writing history file
4147 if input is not from terminal.
4148
0d031856
TT
41492013-08-14 Tom Tromey <tromey@redhat.com>
4150
4151 * remote.c (struct remote_state) <echo_nextthread, nextthread,
4152 resultthreadlist>: New fields.
4153 (OPAQUETHREADBYTES, threadref, MAXTHREADLISTRESULTS): Move earlier.
4154 (remote_get_threadlist, remote_threadlist_iterator): Use
4155 new fields. Remove static variables.
4156
ee154bee
TT
41572013-08-14 Tom Tromey <tromey@redhat.com>
4158
4159 * remote.c (struct remote_state) <remote_stopped_by_watchpoint_p,
4160 remote_watch_data_address>: New fields.
4161 (remote_stopped_by_watchpoint_p, remote_watch_data_address): Remove.
4162 (process_stop_reply, remote_wait_as)
4163 (remote_check_watch_resources, remote_stopped_data_address): Update.
4164
88b496c3
TT
41652013-08-14 Tom Tromey <tromey@redhat.com>
4166
4167 * remote.c (struct remote_state) <async_client_callback,
4168 async_client_context>: New fields.
4169 (async_client_callback, async_client_context): Remove.
4170 (remote_async_serial_handler, remote_async): Update.
4171
2f65bcb7
TT
41722013-08-14 Tom Tromey <tromey@redhat.com>
4173
4174 * remote.c (sizeof_pkt): Remove.
4175 (remote_trace_find): Use rs->buf_size, not sizeof_pkt.
4176
b80fafe3
TT
41772013-08-14 Tom Tromey <tromey@redhat.com>
4178
4179 * remote.c (struct remote_state) <use_threadinfo_query,
4180 use_threadextra_query>: New fields.
4181 (remote_threads_info, remote_threads_extra_info)
4182 (remote_open_1): Update.
4183
8e88304f
TT
41842013-08-14 Tom Tromey <tromey@redhat.com>
4185
4186 * remote.c (struct remote_state) <finished_object,
4187 finished_annex, finished_offset>: New fields.
4188 (remote_read_qxfer): Use remote_state fields; remove static
4189 variables.
4190
280ceea3
TT
41912013-08-14 Tom Tromey <tromey@redhat.com>
4192
4193 * remote.c (struct remote_state) <last_sent_step>:
4194 New field.
4195 (last_sent_step): Remove.
4196 (remote_resume, remote_wait_as): Update.
4197
b73be471
TT
41982013-08-14 Tom Tromey <tromey@redhat.com>
4199
4200 * remote.c (struct remote_state) <last_sent_signal>:
4201 New field.
4202 (last_sent_signal): Remove.
4203 (new_remote_state, remote_resume, remote_wait_as): Update.
4204
5e4a05c4
TT
42052013-08-14 Tom Tromey <tromey@redhat.com>
4206
4207 * remote.c (struct remote_state) <last_program_signals_packet>:
4208 New field.
4209 (last_program_signals_packet): Remove.
4210 (remote_program_signals, remote_open_1): Update.
4211
747dc59d
TT
42122013-08-14 Tom Tromey <tromey@redhat.com>
4213
4214 * remote.c (struct remote_state) <last_pass_packet>:
4215 New field.
4216 (last_pass_packet): Remove.
4217 (remote_pass_signals, remote_open_1): Update.
4218
262e1174
TT
42192013-08-14 Tom Tromey <tromey@redhat.com>
4220
4221 * remote.c (struct remote_state) <remote_traceframe_number>:
4222 New field.
4223 (remote_traceframe_number): Remove.
4224 (new_remote_state, remote_open_1, set_remote_traceframe)
4225 (remote_trace_find): Update.
4226
47f8a51d
TT
42272013-08-14 Tom Tromey <tromey@redhat.com>
4228
4229 * remote.c (struct remote_state) <general_thread, continue_thread>:
4230 New fields.
4231 (general_thread, continue_thread): Remove.
4232 (record_currthread, set_thread, set_general_process)
4233 (remote_open_1, extended_remote_attach_1, remote_wait_as)
4234 (extended_remote_mourn_1): Update.
4235
5d93a237
TT
42362013-08-14 Tom Tromey <tromey@redhat.com>
4237
4238 * remote.c (struct remote_state) <remote_desc>: New field.
4239 (remote_desc): Remove.
4240 (remote_threads_info, remote_threads_extra_info, remote_close)
4241 (send_interrupt_sequence, remote_start_remote, remote_open_1)
4242 (readchar, remote_xfer_partial, remote_rcmd, packet_command)
4243 (remote_hostio_send_command, remote_file_put, remote_file_get)
4244 (remote_file_delete, remote_can_async_p, remote_is_async_p)
4245 (remote_async, remote_new_objfile, set_range_stepping): Update.
4246
cf792862
TT
42472013-08-14 Tom Tromey <tromey@redhat.com>
4248
4249 * remote.c (remote_state): Now a pointer.
4250 (get_remote_state_raw): Update.
4251 (new_remote_state): New function.
4252 (_initialize_remote): Use new_remote_state.
4253
dc473cfb
TT
42542013-08-14 Tom Tromey <tromey@redhat.com>
4255
4256 * remote.c (remote_protocol_features): Now const.
4257
85ec6ce7
TT
42582013-08-14 Tom Tromey <tromey@redhat.com>
4259
4260 * remote.c (crc32_table, crc32): Remove.
4261 (remote_verify_memory): Use xcrc32.
4262
73033f12
SDJ
42632013-08-13 Sergio Durigan Junior <sergiodj@redhat.com>
4264
4265 * value.h (create_internalvar_type_lazy): Adjust prototype
4266 declaration.
4267
5c30d39a
AB
42682013-08-13 Andrew Burgess <aburgess@broadcom.com>
4269
4270 * common/format.c (parse_format_string): Don't allow '#' flag for
4271 pointer arguments in format string.
4272
1a66331e
PM
42732013-08-13 Pierre Muller <muller@sourceware.org>
4274
fde605f3 4275 * utils.c (init_page_info): Only call tgetnum function
1a66331e
PM
4276 if rl_get_screen_size did not return useful values.
4277
b4013987
AA
42782013-08-12 Ali Anwar <ali_anwar@codesourcery.com>
4279
4280 PR breakpoints/15117
4281 * linespec.c (linespec_parse_basic): Check for convenience
4282 variable or history value while parsing.
4283
959b6a66
SDJ
42842013-08-12 Sergio Durigan Junior <sergiodj@redhat.com>
4285
4286 Revert implementation of gdbarch_gdb_signal_{to,from}_target for
4287 AVR.
4288 * avr-tdep.c: Remove include of "linux-tdep.h". Remove enum with
4289 different signals between the generic Linux kernel implementation
4290 and AVR's.
4291 (avr_linux_gdb_signal_from_target): Delete.
4292 (avr_linux_gdb_signal_to_target): Delete.
4293 (avr_gdbarch_init): Don't set gdbarch_gdb_signal_{to,from}_target.
4294
24a55014
DE
42952013-08-09 Doug Evans <dje@google.com>
4296
4297 * dwarf2read.c (create_addrmap_from_index): Ignore bad address table
4298 entries.
4299
eb14d406
SDJ
43002013-08-09 Sergio Durigan Junior <sergiodj@redhat.com>
4301
4302 * linux-tdep.c: Define enum with generic signal numbers.
4303 (linux_gdb_signal_from_target): New function.
4304 (linux_gdb_signal_to_target): Likewise.
4305 (linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
4306 methods to the functions above.
4307 * linux-tdep.h (linux_gdb_signal_from_target): New prototype.
4308 (linux_gdb_signal_to_target): Likewise.
4309 * alpha-linux-tdep.c: Define new enum with signals different
4310 from generic Linux kernel.
4311 (alpha_linux_gdb_signal_from_target): New function.
4312 (alpha_linux_gdb_signal_to_target): Likewise.
4313 (alpha_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
4314 with the functions mentioned above.
4315 * avr-tdep.c: Define enum with differences between Linux kernel
4316 and AVR signals.
4317 (avr_linux_gdb_signal_from_target): New function.
4318 (avr_linux_gdb_signal_to_target): Likewise.
4319 (avr_gdbarch_init): Set gdbarch_gdb_signal_{to,from}_target to
4320 the functions mentioned above.
4321 * sparc-linux-tdep.c: Define enum with differences between SPARC
4322 and generic Linux kernel signal numbers.
4323 (sparc32_linux_gdb_signal_from_target): New function.
4324 (sparc32_linux_gdb_signal_to_target): Likewise.
4325 (sparc32_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
4326 to the functions defined above.
4327 * xtensa-linux-tdep.c: Define enum with differences between
4328 Xtensa and Linux kernel generic signals.
4329 (xtensa_linux_gdb_signal_from_target): New function.
4330 (xtensa_linux_gdb_signal_to_target): Likewise.
4331 (xtensa_linux_init_abi): Set gdbarch_gdb_signal_to_target
4332 to the functions defined above.
4333 * mips-linux-tdep.c: Define enum with differences between
4334 signals in MIPS and Linux kernel generic ones.
4335 (mips_gdb_signal_to_target): New function.
4336 (mips_gdb_signal_from_target): Redefine to use new enum, handle
4337 only different signals from the Linux kernel generic.
4338 (mips_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
4339 the functions defined above.
4340 * mips-linux-tdep.h (enum mips_signals): Remove.
4341
156d08c8
PA
43422013-08-09 Pedro Alves <palves@redhat.com>
4343
4344 * avr-tdep.c (XMALLOC): Delete macro.
4345 * cli/cli-dump.c (XMALLOC): Delete macro.
4346
db229724
PA
43472013-08-09 Pedro Alves <palves@redhat.com>
4348
4349 * cli/cli-dump.c: Don't include cli/cli-dump.h.
4350 (scan_expression_with_cleanup, scan_filename_with_cleanup)
4351 (fopen_with_cleanup, add_dump_command): Make static.
4352 * cli/cli-dump.h: Delete file.
4353 * Makefile.in (HFILES_NO_SRCDIR): Remove reference to
4354 cli/cli-dump.h.
4355
3f12a589
PA
43562013-08-09 Pedro Alves <palves@redhat.com>
4357
4358 * tracepoint.c (tfile_start): Show tilde-expanded filename in
4359 error message.
4360
c718be47
PA
43612013-08-09 Pedro Alves <palves@redhat.com>
4362
156d08c8 4363 * breakpoint.c (save_breakpoints): Show tilde-expanded filename in
c718be47
PA
4364 error message.
4365
1e351ed1
PA
43662013-08-09 Pedro Alves <palves@redhat.com>
4367
4368 * gcore.c (create_gcore_bfd): Don't use tilde_expand here.
4369 (gcore_command): Use tilde_expand here, and when showing the
4370 filename to the user, show the expanded version.
4371
1ed8d800
YQ
43722013-08-09 Yao Qi <yao@codesourcery.com>
4373
4374 * stack.c (read_frame_arg): Set 'entryval_error' to NULL if
4375 'entryval' is set.
4376
47ecca85
PA
43772013-08-08 Azat Khuzhin <a3at.mail@gmail.com> (tiny change)
4378
4379 * gcore.c (create_gcore_bfd): Use tilde_expand.
4380
82a0a75f
YQ
43812013-08-08 Yao Qi <yao@codesourcery.com>
4382
4383 * frame.h (read_frame_local): Declare.
4384 * mi/mi-cmd-stack.c (list_args_or_locals): Call
4385 read_frame_local.
4386 * stack.c (read_frame_local): New.
4387
5c4aa40b
YQ
43882013-08-08 Yao Qi <yao@codesourcery.com>
4389
4390 * mi/mi-cmd-stack.c: Update comments to function
4391 list_args_or_locals.
4392
b93601f3
TT
43932013-08-07 Tom Tromey <tromey@redhat.com>
4394
4395 PR symtab/15028:
4396 * dwarf2read.c (struct process_psymtab_comp_unit_data): New.
4397 (process_psymtab_comp_unit_reader): Use it.
4398 (process_psymtab_comp_unit): Update. Add "pretend_language"
4399 argument.
4400 (dwarf2_build_psymtabs_hard): Update.
4401 (scan_partial_symbols): Pass CU's language to
4402 process_psymtab_comp_unit.
4403
fa760f46
TT
44042013-08-07 Tom Tromey <tromey@redhat.com>
4405
4406 * dwarf2read.c (dw2_get_primary_filename_reader): Remove.
4407 (dwarf2_gdb_index_functions): Update.
4408 * psymtab.c (find_symbol_file_from_partial): Remove.
4409 (psym_functions): Update.
4410 * symfile.h (struct quick_symbol_functions) <find_symbol_file>:
4411 Remove.
4412
bf6d8a91
TT
44132013-08-07 Tom Tromey <tromey@redhat.com>
4414
4415 * symfile.c (set_initial_language): Look up "main" symbol
4416 and use its language.
4417 * symtab.c (find_main_filename): Remove.
4418 * symtab.h (find_main_filename): Remove.
4419
f9125b6c
TT
44202013-08-07 Tom Tromey <tromey@redhat.com>
4421
4422 * dwarf2read.c (recursively_compute_inclusions): Add
4423 "immediate_parent" argument. Set symtab's "user" field
4424 if not set.
4425 (compute_symtab_includes): Update.
4426
fdbb204b
TT
44272013-08-07 Tom Tromey <tromey@redhat.com>
4428
4429 * linespec.c (convert_linespec_to_sals): Use maybe_add_address
4430 when adding label symbols.
4431
49de1690
UW
44322013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
4433 Ulrich Weigand <uweigand@de.ibm.com>
4434
4435 * configure.tgt (powerpc64-*-aix*): Match powerpc64 running aix.
4436 * configure.host (powerpc64-*-aix*): Likewise.
4437
b08ee99f
UW
44382013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
4439 Ulrich Weigand <uweigand@de.ibm.com>
4440
4441 * gdb_ptrace.h: Use ptrace64 instead of ptrace if HAVE_PTRACE64
4442 is defined.
4443 * rs6000-nat.c: Check for __ld_info64_ if compiling 64 BIT gdb.
4444 (rs6000_ptrace32): Call ptrace64 instead of ptrace if present.
4445 (rs6000_ptrace64): Call ptace64 instead of ptracex if present.
4446 * configure.ac: Check for ptrace64.
4447 * configure, config.in: Regenerate.
4448
fecf803e
UW
44492013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
4450 Ulrich Weigand <uweigand@de.ibm.com>
4451
4452 * aixthread.c: Call ptrace64 instead of ptracex if defined.
4453 Call ptrace64 instead of ptrace if defined.
4454 Add macro addr_ptr to take care of ptrace address argument.
4455 (pdc_read_regs): Likewise.
4456 (pdc_write_regs): Likewise.
4457 (aix_thread_resume): Likewise.
4458 (fetch_regs_kernel_thread): Likewise.
4459 (store_regs_kernel_thread): Likewise.
4460
3bb5e4a8
AB
44612013-08-07 Anton Blanchard <anton@samba.org>
4462
4463 * MAINTAINERS: Add myself to Write After Approval.
4464
12070676
TT
44652013-08-05 Tom Tromey <tromey@redhat.com>
4466
4467 * aix-thread.c (_initialize_aix_thread): Use
4468 complete_target_initialization.
4469 * bsd-uthread.c (_initialize_bsd_uthread): Use
4470 complete_target_initialization.
4471 * dec-thread.c (_initialize_dec_thread): Use
4472 complete_target_initialization.
4473 * ravenscar-thread.c (_initialize_ravenscar): Use
4474 complete_target_initialization.
4475 * sol-thread.c (_initialize_sol_thread): Use
4476 complete_target_initialization.
4477 * spu-multiarch.c (_initialize_spu_multiarch): Use
4478 complete_target_initialization.
4479
7c7b6655
TT
44802013-08-05 Tom Tromey <tromey@redhat.com>
4481
4482 * ada-exp.y (write_var_or_type): Use bound_minimal_symbol.
4483 * ada-lang.c (ada_lookup_simple_minsym): Return
4484 bound_minimal_symbol.
4485 * ada-lang.h (ada_lookup_simple_minsym): Update.
4486 * c-exp.y (variable): Use lookup_bound_minimal_symbol.
4487 * f-exp.y (variable): Use lookup_bound_minimal_symbol.
4488 * go-exp.y (variable): Use lookup_bound_minimal_symbol.
4489 * jv-exp.y (push_expression_name): Use lookup_bound_minimal_symbol.
4490 * m2-exp.y (variable): Use lookup_bound_minimal_symbol.
4491 * minsyms.c (msymbol_objfile): Remove.
4492 (lookup_minimal_symbol_internal): New function, from
4493 lookup_minimal_symbol.
4494 (lookup_minimal_symbol): Rewrite using
4495 lookup_minimal_symbol_internal.
4496 (lookup_bound_minimal_symbol): New function.
4497 * minsyms.h (msymbol_objfile): Remove.
4498 (lookup_bound_minimal_symbol): Declare.
4499 * p-exp.y (variable): Use lookup_bound_minimal_symbol.
4500 * parse.c (write_exp_msymbol): Change parameter to a
4501 bound_minimal_symbol.
4502 (write_dollar_variable): Use lookup_bound_minimal_symbol.
4503 * parser-defs.h (write_exp_msymbol): Update.
4504 * printcmd.c (address_info): Use lookup_bound_minimal_symbol.
4505 * symfile.c (simple_read_overlay_table): Use
4506 lookup_bound_minimal_symbol.
4507 * symtab.c (skip_prologue_sal): Don't use msymbol_objfile.
4508 (search_symbols): Likewise.
4509 (print_msymbol_info): Take a bound_minimal_symbol argument.
4510 (symtab_symbol_info, rbreak_command): Update.
4511 * symtab.h (struct symbol_search) <msymbol>: Change type
4512 to bound_minimal_symbol.
4513 * valops.c (find_function_in_inferior): Use
4514 lookup_bound_minimal_symbol.
4515 * value.c (value_fn_field): Use lookup_bound_minimal_symbol.
4516
934b9bac
JK
45172013-08-05 Jan Kratochvil <jan.kratochvil@redhat.com>
4518
4519 Code cleanup.
4520 * remote.c (cleanup_sigint_signal_handler): Rename the declaration
4521 to ...
4522 (async_cleanup_sigint_signal_handler): ... this.
4523 (initialize_sigint_signal_handler): Remove declaration.
4524 (handle_remote_sigint): Rename the declaration to ...
4525 (async_handle_remote_sigint): ... this.
4526 (handle_remote_sigint_twice): Rename the declaration to ...
4527 (async_handle_remote_sigint_twice): ... this.
4528 (async_remote_interrupt, async_remote_interrupt_twice)
4529 (remote_interrupt): Remove the declarations.
4530 (remote_interrupt_twice): Rename the declaration ...
4531 (sync_remote_interrupt_twice): ... this.
4532 (sigint_remote_twice_token): Rename the variable to ...
4533 (async_sigint_remote_twice_token): ... this.
4534 (sigint_remote_token): Rename the variable to ...
4535 (async_sigint_remote_token): ... this.
4536 (initialize_sigint_signal_handler): Rename the function to ...
4537 (async_initialize_sigint_signal_handler): ... this. Update the name
4538 inside.
4539 (handle_remote_sigint): Rename the function to ...
4540 (async_handle_remote_sigint): ... this. Update the names inside.
4541 (handle_remote_sigint_twice): Rename the function to ...
4542 (async_handle_remote_sigint_twice): ... this. Update the names inside.
4543 (cleanup_sigint_signal_handler): Rename the function to ...
4544 (async_cleanup_sigint_signal_handler): ... this.
4545 (remote_interrupt): Rename the function to ...
4546 (sync_remote_interrupt): this. Update the names inside.
4547 (remote_interrupt_twice): Rename the function to ...
4548 (sync_remote_interrupt_twice): this. Update the names inside.
4549 (remote_terminal_inferior, remote_terminal_ours, remote_wait_as)
4550 (_initialize_remote): Update the names inside.
4551
3a1115a0
TT
45522013-08-02 Tom Tromey <tromey@redhat.com>
4553
4554 PR symtab/15719:
4555 * breakpoint.c (update_watchpoint, watchpoint_check)
4556 (watch_command_1): Update.
4557 * eval.c (fetch_subexp_value): Add "preserve_errors"
4558 parameter.
4559 * ppc-linux-nat.c (check_condition): Update.
4560 * value.h (fetch_subexp_value): Update.
4561
58b19776
AB
45622013-08-02 Andrew Burgess <aburgess@broadcom.com>
4563
4564 * mi/mi-interp.c (mi_interpreter_resume): Remove call to
4565 add_file_handler.
4566
ec94af83
DE
45672013-08-01 Doug Evans <dje@google.com>
4568
7ee85ab1
DE
4569 PR symtab/15691
4570 * dwarf2read.c (struct dwarf2_per_cu_data): New member tu_read.
4571 (fill_in_sig_entry_from_dwo_entry): Reorganize asserts.
4572 Add assert of sig_entry->dwo_unit == NULL.
4573 (lookup_dwo_signatured_type): Don't assign TU to a DWO if the TU
4574 had already been read.
4575 (read_signatured_type): Set per_cu.tu_read.
4576
b846d303
DE
4577 PR symtab/15695
4578 * valops.c (value_struct_elt): Add missing call to check_typedef.
4579 (value_find_oload_method_list): Ditto.
4580
b52109bc
DE
4581 * symtab.c (do_free_search_symbols_cleanup): Change arg to,
4582 effectively, struct symbol_search **.
4583 (make_cleanup_free_search_symbols): Change arg to struct
4584 symbol_search **. All callers updated.
4585 (compare_search_syms): Compare symtab file name and block as well.
4586 (search_symbols_equal): New function.
4587 (sort_search_symbols_remove_dups): Renamed from sort_search_symbols.
4588 New args new_head, new_tail. Result is now void. Remove dups after
4589 sorting the symbols.
4590 (search_symbols): Sort all found symbols once, after all have been
4591 found, and remove duplicates. Simplify cleanup tracking of result.
4592 * symtab.h (make_cleanup_free_search_symbols): Update prototype.
4593
ec94af83
DE
4594 Further workarounds for binutils/15021.
4595 * dwarf2read.c (recursively_compute_inclusions): Change type of result
4596 parameter to VEC (symtab_ptr) **. New parameter all_type_symtabs.
4597 Watch for duplicate symtabs coming from type units.
4598 (compute_symtab_includes): Update call to
4599 recursively_compute_inclusions. Build vector of included symtabs
4600 instead of per_cus.
4601 * symtab.h (symtab_ptr): New typedef.
4602 (DEF_VEC_P (symtab_ptr)): New VEC type.
4603 * linespec.c (symtab_p): Delete. All uses updated to use symtab_ptr
4604 instead.
4605
b2ae85cf
AB
46062013-08-01 Andrew Burgess <aburgess@broadcom.com>
4607
4608 * cli/cli-script.c (script_from_file): Remove use of
4609 error_pre_print.
4610 * main.c (captured_main): Remove use of error_pre_print and
4611 quit_pre_print.
4612 * utils.c (error_pre_print, quit_pre_print): Remove.
4613 * utils.h (error_pre_print, quit_pre_print): Likewise.
4614
645eab03
YQ
46152013-08-01 Yao Qi <yao@codesourcery.com>
4616
4617 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Parse argv
4618 with mi_getopt.
4619 (mi_cmd_stack_list_variables): Likewise.
4620
16f92dd4
AB
46212013-07-31 Andrew Burgess <aburgess@broadcom.com>
4622
4623 * exceptions.c (deprecated_throw_reason): Remove.
4624 * exceptions.h (deprecated_throw_reason): Remove.
4625
13f78033
AB
46262013-07-31 Andrew Burgess <aburgess@broadcom.com>
4627
4628 * remote-mips.c (mips_error): Replace use of
4629 deprecated_throw_reason with throw_verror. Use the error message
4630 passed to mips_error as the error message for throw_verror.
4631
039e3c22
AB
46322013-07-31 Andrew Burgess <aburgess@broadcom.com>
4633
4634 * monitor.c (monitor_interrupt_query): Replace use of
4635 deprecated_throw_reason with quit.
4636 * nto-procfs.c (interrupt_query): Likewise.
4637 * remote-fileio.c (remote_fileio_sig_exit): Likewise.
4638 * remote-mips.c (mips_kill): Likewise.
4639 * remote.c (interrupt_query): Likewise.
4640
8150913b
AB
46412013-07-31 Andrew Burgess <aburgess@broadcom.com>
4642
4643 * utils.c (internal_verror): Replace use of deprecated_throw_reason
4644 with call to fatal.
4645
de74e63a
YQ
46462013-07-31 Pedro Alves <pedro@codesourcery.com>
4647 Yao Qi <yao@codesourcery.com>
4648
4649 * tracepoint.c (trace_dump_command): Select the current frame.
4650
247f5c4f
DE
46512013-07-30 Doug Evans <dje@google.com>
4652
4653 * dwarf2read.c (process_queue): Add type signature to debug output.
4654
11b4b7cc
AB
46552013-07-30 Andrew Burgess <aburgess@broadcom.com>
4656
4657 * value.c (value_fetch_lazy): Mark optimized out values as such
4658 rather than raising an error.
4659
b0c54aa5
AB
46602013-07-30 Andrew Burgess <aburgess@broadcom.com>
4661
4662 * value.c (value_fetch_lazy): Ensure parent value is not lazy
4663 before checking which bits of the parent, not the child, value are
4664 valid.
4665
97c85fc6
MB
46662013-07-30 Muhammad Bilal <mbilal@codesorcery.com>
4667
4668 PR gdb/15715
4669 * top.c: Include "filenames.h".
4670 (set_history_filename): New function.
4671 (init_main): Install it as set hook of the "set history filename"
4672 command.
4673
ff39bb5e
SA
46742013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
4675
4676 * dwarf2read.c (dwarf2_get_ref_die_offset): Constify struct
4677 attribute parameter.
4678 (dwarf2_const_value_data): Constify struct attribute parameter.
4679 (dwarf2_const_value): Constify struct attribute parameter.
4680 (dwarf2_const_value_attr): Constify struct attribute parameter.
4681 (lookup_die_type): Constify struct attribute parameter.
4682 (dwarf2_get_attr_constant_value): Constify struct attribute parameter.
4683 (follow_die_ref_or_sig): Constify struct attribute parameter.
4684 (follow_die_ref): Constify struct attribute parameter.
4685 (follow_die_sig): Constify struct attribute parameter.
4686 (get_DW_AT_signature_type): Constify struct attribute parameter.
4687 (get_type_unit_group): Constify struct attribute parameter.
4688 (fill_in_loclist_baton): Constify struct attribute parameter.
4689 (dwarf2_symbol_mark_computed): Constify struct attribute parameter.
4690 (type_unit_group): Constify struct attribute parameter.
4691
6e5a29e1
SA
46922013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
4693
4694 * dwarf2read.c (attr_form_is_block): Make argument const.
4695 (attr_form_is_section_offset): Make argument const.
4696 (attr_form_is_constant): Make argument const.
4697 (attr_form_is_ref): Make argument const.
4698
7771576e
SA
46992013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
4700
4701 * dwarf2read.c (attr_is_ref): Rename to attr_form_is_ref.
4702 All uses updated.
4703 (attr_form_is_ref): Moved below attr_form_is_constant.
4704
a94e8645
DE
47052013-07-29 Doug Evans <dje@google.com>
4706
bb5291d0
DE
4707 * main.c (captured_command_loop): Tweak comment.
4708
b5419e49
DE
4709 * target.c (target_async_permitted_1): Fix comment.
4710
b2d23133
DE
4711 * symtab.c (iterate_over_some_symtabs): Add comment.
4712
a94e8645
DE
4713 * symtab.c (iterate_over_some_symtabs): Fix indentation.
4714
7a60ad40
YQ
47152013-07-27 Yao Qi <yao@codesourcery.com>
4716
4717 * NEWS: Mention that GDBserver now supports hardware
4718 watchpoints on the MIPS GNU/Linux target.
4719
aaee2056
YQ
47202013-07-27 Yao Qi <yao@codesourcery.com>
4721
4722 * Makefile.in (HFILES_NO_SRCDIR): Add
4723 common/mips-linux-watch.h.
4724 (mips-linux-watch.o): New rule.
4725 * common/mips-linux-watch.c: New.
4726 * common/mips-linux-watch.h: New.
4727 * config/mips/linux.mh (NATDEPFILES): Add mips-linux-watch.o
4728 * mips-linux-nat.c: Include mips-linux-watch.h.
4729 (W_BIT, R_BIT, I_BIT, W_MASK, R_MASK, I_MASK, IRW_MASK): Move
4730 to common/mips-linux-watch.h.
4731 (MAX_DEBUG_REGISTER): Likewise.
4732 (enum pt_watch_style): Likewise.
4733 (struct mips32_watch_regs): Likewise.
4734 (struct mips64_watch_regs): Likewise.
4735 (struct pt_watch_regs): Likewise.
4736 (struct mips_watchpoint): Likewise.
4737 (mips_linux_watch_get_irw_mask): Move to
4738 common/mips-linux-watch.c.
4739 (get_reg_mask, mips_linux_watch_get_num_valid): Likewise.
4740 (mips_linux_watch_get_watchlo): Likewise.
4741 (mips_linux_watch_set_watchlo): Likewise.
4742 (mips_linux_watch_get_watchhi): Likewise.
4743 (mips_linux_watch_set_watchhi): Likewise.
4744 (mips_linux_read_watch_registers): Likewise.
4745 (mips_linux_watch_type_to_irw): Likewise.
4746 (mips_linux_stopped_data_address, fill_mask): Likewise.
4747 (mips_linux_watch_try_one_watch): Likewise.
4748 (mips_linux_watch_populate_regs): Likewise.
4749
b3436450
YQ
47502013-07-27 Yao Qi <yao@codesourcery.com>
4751
4752 * mips-linux-nat.c (get_irw_mask): Rename to ...
4753 (mips_linux_watch_get_irw_mask): ... this. Rename parameter
4754 'set' to 'n'. Update function comment. All callers changed.
4755 (get_reg_mask): Rename parameter 'set' to 'n'. Update
4756 function comment. All callers changed.
4757 (get_num_valid): Rename to ...
4758 (mips_linux_watch_get_num_valid): ... this. Rename parameter
4759 'set' to 'n'. Update function comment. All callers changed.
4760 (get_watchlo): Rename to ...
4761 (mips_linux_watch_get_watchlo): ... this. Rename parameter
4762 'set' to 'n'. Update function comment. All callers changed.
4763 (set_watchlo): Rename to ...
4764 (mips_linux_watch_set_watchlo): ... this. Rename parameter
4765 'set' to 'n'. Update function comment. All callers changed.
4766 (get_watchhi): Rename to ...
4767 (mips_linux_watch_get_watchhi): ... this. Update function
4768 comment. All callers changed.
4769 (set_watchhi): Rename to ...
4770 (mips_linux_watch_set_watchhi): ... this. Update function
4771 comment. All callers changed.
4772 (mips_linux_read_watch_registers): Update function comment.
4773 Add new parameters 'lwpid', 'watch_readback', and
4774 'watch_readback_valid'. Update.
4775 (type_to_irw): Rename to ...
4776 (mips_linux_watch_type_to_irw): ... this. Update function
4777 comment. All callers changed.
4778 (fill_mask): Update function comment.
4779 (try_one_watch): Rename to ...
4780 (mips_linux_watch_try_one_watch): ... this. Change the type
4781 of parameter 'irw' from 'unsigned' to 'uint32_t'.
4782 (populate_regs_from_watches): Rename to ...
4783 (mips_linux_watch_populate_regs): ... this. Add parameter
4784 'current_watches'. All callers changed.
4785
9be14b81
YQ
47862013-07-27 Yao Qi <yao@codesourcery.com>
4787
4788 * mips-linux-nat.c (MAX_DEBUG_REGISTER): Move it earlier in
4789 the code.
4790 (PTRACE_SET_WATCH_REGS, enum pt_watch_style): Remove.
4791 (struct mips32_watch_regs, struct mips64_watch_regs): Remove.
4792 (struct pt_watch_regs): Likewise.
4793 [!PTRACE_GET_WATCH_REGS] (PTRACE_SET_WATCH_REGS): New macro.
4794 [!PTRACE_GET_WATCH_REGS] (enum pt_watch_style): New.
4795 [!PTRACE_GET_WATCH_REGS] (struct mips32_watch_regs): New.
4796 [!PTRACE_GET_WATCH_REGS] (struct mips64_watch_regs): New.
4797 [!PTRACE_GET_WATCH_REGS] (struct pt_watch_regs): New.
4798
de6f69ad
YQ
47992013-07-27 Yao Qi <yao@codesourcery.com>
4800
4801 * breakpoint.h: Include break-common.h.
4802 (enum target_hw_bp_type): Move to ...
4803 * common/break-common.h: ... here. New.
4804
6f64ef53
PA
48052013-07-26 Cyril Nikolaev <cyril@nichtverstehen.de>
4806
4807 * inflow.c (terminal_init_inferior_with_pgrp): Save inferior
4808 process group regardless of having tty on stdin.
4809
6107e809
DE
48102013-07-25 Doug Evans <dje@google.com>
4811
4812 * linux-fork.h (detach_fork): Delete.
4813
7fdc1521
TT
48142013-07-25 Tom Tromey <tromey@redhat.com>
4815
4816 PR remote/15256, PR remote/15266:
4817 * bfd-target.c (target_bfd_reopen): Initialize to_magic.
4818 * monitor.c (monitor_detach): Use unpush_target.
4819 * remote-m32r-sdi.c (m32r_detach): Use unpush_target.
4820 * remote-mips.c (mips_detach): Use unpush_target. Don't
4821 call mips_close.
4822 * remote-sim.c (gdbsim_detach): Use unpush_target.
4823 * target.c (pop_target): Remove.
4824 (pop_all_targets_above): Don't call target_close.
4825 (target_close): Assert that the target is unpushed.
4826 * target.h (pop_target): Don't declare.
4827 * tracepoint.c (tfile_open): Use unpush_target.
4828
c22a2b88
TT
48292013-07-25 Tom Tromey <tromey@redhat.com>
4830
4831 * linux-thread-db.c (init_thread_db_ops): Call
4832 complete_target_initialization.
4833 (_initialize_thread_db): Don't call add_target.
4834 * target.c (complete_target_initialization): New function.
4835 (add_target_with_completer): Call it.
4836 * target.h (complete_target_initialization): Declare.
4837
cbb6aada
MK
48382013-07-25 Mark Kettenis <kettenis@gnu.org>
4839
4840 * hppa-tdep.h (enum hppa_regnum): Add members for all space registers.
4841 * hppaobsd-tdep.c (HPPAOBSD_SIZEOF_GREGS): Add comment.
4842 (HPPANBSD_SIZEOF_GREGS): New define.
4843 (hppaobsd_supply_gregset): Handle additional registers.
4844 * hppabsd-nat.c (hppabsd_gregset_supplies_p): Adjust to indicate
4845 we provide more registers now.
4846 (hppabsd_supply_gregset): Supply additional registers.
4847 (hppabsd_collect_gregset): Collect additional registers.
4848
17767988
MK
48492013-07-25 Mark Kettenis <kettenis@gnu.org>
4850
4851 * hppabsd-tdep.c: Include "dwarf2-frame.h".
4852 (hppabsd_dwarf2_frame_init_reg): New function.
4853 (hppabsd_init_abi): Hook in the DWARF CFI frame unwinder.
4854
fdc8aae8
AB
48552013-07-25 Andrew Burgess <aburgess@broadcom.com>
4856
4857 * mi/mi-main.c (output_register): Make MI 'r' format use standard
4858 'z' format code. Remove error for optimized out values, standard
4859 code will handle these fine.
4860
6fbe845e
AB
48612013-07-25 Andrew Burgess <aburgess@broadcom.com>
4862
4863 * NEWS: Mention new 'z' formatter.
4864 * printcmd.c (print_scalar_formatted): Add new 'z' formatter.
4865 (_initialize_printcmd): Mention 'z' formatter in help text of the
4866 'x' command.
4867
3373342d
MR
48682013-07-24 Maciej W. Rozycki <macro@codesourcery.com>
4869
4870 * mips-tdep.c (micromips_deal_with_atomic_sequence): Correct
4871 formatting.
4872
25f9533e
SDJ
48732013-07-24 Sergio Durigan Junior <sergiodj@redhat.com>
4874
4875 * breakpoint.c (create_longjmp_master_breakpoint): Check if probe
4876 interface can evaluate arguments. Fallback to the old mode if it
4877 cannot.
4878 (create_exception_master_breakpoint): Likewise.
4879 * elfread.c (elf_can_evaluate_probe_arguments): New function.
4880 (struct sym_probe_fns elf_probe_fns): Export function above to the
4881 probe interface.
4882 * probe.c (can_evaluate_probe_arguments): New function.
4883 * probe.h (struct probe_ops) <can_evaluate_probe_arguments>: New
4884 function pointer.
4885 (can_evaluate_probe_arguments): New function prototype.
4886 * solib-svr4.c (svr4_create_solib_event_breakpoints): Check if
4887 probe interface can evaluate arguments. Fallback to the old mode
4888 if it cannot.
4889 * stap-probe.c (stap_get_probe_argument_count): Check if probe
4890 interface can evaluate arguments. Warning the user if it cannot.
4891 (stap_can_evaluate_probe_arguments): New function.
4892 (struct probe_ops stap_probe_ops): Export function above to the
4893 probe interface.
4894 * symfile.h (struct sym_probe_fns) <can_evaluate_probe_arguments>:
4895 New function pointer.
4896
3360c0bf
LM
48972013-07-24 Luis Machado <lgustavo@codesourcery.com>
4898
4899 * Makefile.in (SFILES): Add common/target-common.c.
4900 Add common/target-common.h to headers.
4901 (COMMON_OBS): Add target-common.o.
4902 (target-common.o): New target.
4903 * linux-nat.h (resume_kind): Move to common/target-common.h.
4904 * target.c (target_waitstatus_to_string): Move to
4905 common/target-common.c.
4906 * target.h: Include target-common.h.
4907 (target_waitkind): Move to common/target-common.h.
4908 (target_waitstatus): Likewise.
4909 (TARGET_WNOHANG): Likewise.
4910 * common/target-common.c: New file.
4911 * common/target-common.h: New file.
4912
6656a72d
DE
49132013-07-24 Doug Evans <dje@google.com>
4914
4915 * dwarf2read.c (lookup_dwo_cutu): Change missing DWO complaint to
4916 a warning.
4917
6df81a63
YQ
49182013-07-23 Yao Qi <yao@codesourcery.com>
4919
4920 * i386-tdep.c (i386_in_stack_tramp_p): Remove unused
4921 parameter 'gdbarch'.
4922 (i386_stack_tramp_frame_sniffer): Caller update.
4923 * i386-linux-tdep.c (i386_linux_core_read_xcr0): Remove
4924 parameter 'gdbarch' and 'target'.
4925 (i386_linux_core_read_description): Caller update.
4926 * amd64-linux-tdep.c (amd64_linux_core_read_description):
4927 Likewise.
4928 * i386-linux-tdep.h (i386_linux_core_read_xcr0): Update
4929 declaration.
4930
365156ad
TT
49312013-07-23 Tom Tromey <tromey@redhat.com>
4932
4933 * dwarf2read.c (init_cutu_and_read_dies): Revert patch from
4934 2013-07-22.
4935
046ac79f
JK
49362013-07-22 Doug Evans <dje@google.com>
4937
4938 * exec.h (remove_target_sections): Delete arg abfd.
66cbcda4
JK
4939 * exec.c (exec_close): Update call to remove_target_sections.
4940 (remove_target_sections): Delete arg abfd.
046ac79f
JK
4941 * solib.c (update_solib_list): Ditto.
4942 (reload_shared_libraries_1): Ditto.
4943 (clear_solib): Ditto, and unconditionally call remove_target_sections.
66cbcda4
JK
4944 * target.h (struct target_section): Rename key to owner.
4945 All uses updated.
046ac79f 4946
29b2cc46
TT
49472013-07-22 Tom Tromey <tromey@redhat.com>
4948
4949 * solib-som.c (som_open_symbol_file_object): Call do_cleanups.
4950
d1160018
TT
49512013-07-22 Tom Tromey <tromey@redhat.com>
4952
4953 * dwarf2read.c (init_cutu_and_read_dies): Remove 'free_cu_cleanup'.
4954 Simplify cleanup handling.
4955
2f324bf6
TT
49562013-07-22 Tom Tromey <tromey@redhat.com>
4957
4958 * dwarf2read.c (dwarf_decode_line_header): Call do_cleanups
4959 on all return paths.
4960
e23b9d6e
UW
49612013-07-22 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
4962
4963 * ppc-linux-nat.c (PPC_DEBUG_FEATURE_DATA_BP_DAWR): New define.
4964 (ppc_linux_region_ok_for_hw_watchpoint): Add checking to use the new
4965 DAWR interface for longer ranges hardware watchpoint (up to 512 bytes).
4966
1cf55f60
PM
49672013-07-22 Phil Muldoon <pmuldoon@redhat.com>
4968
4969 * top.c (print_gdb_version): Add help, apropos description and
4970 url to online documentation.
4971
fa876972
HZ
49722013-07-19 Hui Zhu <hui@codesourcery.com>
4973
4974 PR gdb/15692
4975 * mi/mi-cmd-break.c (mi_argv_to_format): Handle double quotes.
4976
1527aea8
YQ
49772013-07-19 Yao Qi <yao@codesourcery.com>
4978
4979 * target.c (update_current_target): Change the default action
4980 of 'to_traceframe_info' from tcomplain to return_zero.
4981 * target.h (struct target_ops) <to_traceframe_info>: Add more
4982 comments.
4983 * valops.c (read_value_memory): Call
4984 traceframe_available_memory unconditionally.
4985
886f230e
YQ
49862013-07-18 Yao Qi <yao@codesourcery.com>
4987
4988 * coffread.c (coff_symfile_read): Iterate over minimal symbols,
4989 if the name is prefixed by "__imp_" or "_imp_", look for minimal
4990 symbol without prefix. If found, set its type to
4991 'mst_solib_trampoline'.
4992
16419bae
DE
49932013-07-17 Doug Evans <dje@google.com>
4994
e7045703
DE
4995 * NEWS: Mention "set print raw frame-arguments".
4996 * gdbcmd.h (setprintrawlist, showprintrawlist): Declare.
4997 * stack.c (print_raw_frame_arguments): New static global.
4998 (print_frame_arg): Set opts.raw from print_raw_frame_arguments.
4999 (_initialize_stack): New command "set/show print raw frame-arguments".
5000 * valprint.c (setprintrawlist, showprintrawlist): New globals.
5001 (set_print_raw, show_print_raw): New functions.
5002 (_initialize_valprint): New prefix command "set/show print raw".
5003 * valprint.h (value_print_options): Improve comments.
5004
453e48a5
DE
5005 * cli/cli-cmds.c (init_cmd_lists): Delete unnecessary initialization
5006 of all *list variables.
5007
16419bae
DE
5008 * gdbcmd.h (togglelist): Delete.
5009 * cli/cli-cmds.c (togglelist): Delete.
5010 (init_cmd_lists): Update.
5011 * cli/cli-cmds.h (togglelist): Delete.
5012
626f2d1c
TT
50132013-07-17 Tom Tromey <tromey@redhat.com>
5014
5015 * dwarf2read.c (dwarf2_per_objfile_free): Clear
5016 dwarf2_per_objfile.
5017
57e6060e
DE
50182013-07-16 Doug Evans <dje@google.com>
5019
5020 * nto-tdep.c (nto_relocate_section_addresses): Update,
5021 target_section.bfd deleted.
5022 * ppc64-tdep.c (ppc64_convert_from_func_ptr_addr): Ditto.
5023 * s390-tdep.c (s390_load): Ditto.
5024 * solib-aix.c (solib_aix_relocate_section_addresses): Ditto.
5025
5ea5559b
AB
50262013-07-16 Andrew Burgess <aburgess@broadcom.com>
5027
5028 * common/format.c (parse_format_string): Add checks for NULL
5029 character before calling strchr.
5030
2b2848e2
DE
50312013-07-16 Doug Evans <dje@google.com>
5032
2c571006
DE
5033 * solist.h (target_so_ops.find_and_open_solib): Clarify usage of
5034 temp_pathname argument.
5035 * nto-tdep.c (nto_find_and_open_solib): Fix setting of temp_pathname
5036 when opening the file fails.
5037
2b2848e2
DE
5038 * target.h (struct target_section): Delete member bfd.
5039 All users updated to use the_bfd_section->owner instead.
5040 * exec.c (add_to_section_table): Assert bfd is expected value.
5041 Remove initialization of target_section.bfd.
5042 (remove_target_sections): Update.
5043 (section_table_available_memory): Update.
5044 (section_table_xfer_memory_partial): Update.
5045 (print_section_info): Update.
5046 (exec_set_section_address): Update.
5047 * record-full.c (record_full_core_xfer_partial): Update.
5048 * solib-svr4.c (svr4_relocate_section_addresses): Update.
5049 * solib-target.c (solib_target_relocate_section_addresses): Update.
5050 * symfile.c (build_section_addr_info_from_section_table): Update.
5051 * target.c (memory_xfer_live_readonly_partial): Update.
5052 (memory_xfer_partial_1): Update.
5053
926bf92d
UW
50542013-07-15 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
5055
5056 * ppc-linux-nat.c: Since the new PowerPC specific ptrace interface is
5057 now available for embedded (BookE) and server (BookS) processors,
5058 correct mentions of 'booke' and adjust comments accordingly in order to
5059 avoid confusion. Rename struct 'booke_debug_info' to 'hwdebug_info'.
5060 (have_ptrace_booke_interface): Rename function and variable
5061 'have_ptrace_booke_interface' to 'have_ptrace_hwdebug_interface'.
5062 Rename struct 'booke_debug_info' to 'hwdebug_info'. Update all uses.
5063 (booke_cmp_hw_point): Rename function 'booke_cmp_hw_point' to
5064 'hwdebug_point_cmp'. Update all uses.
5065 (booke_find_thread_points_by_tid): Rename function
5066 'booke_find_thread_points_by_tid' to
5067 'hwdebug_find_thread_points_by_tid'. Update all uses.
5068 (booke_insert_point): Rename function 'booke_insert_point' to
5069 'hwdebug_insert_point'. Update all uses.
5070 (booke_remove_point): Rename function 'booke_remove_point' to
5071 'hwdebug_remove_point'. Update all uses.
5072
d929bc19
MR
50732013-07-15 Maciej W. Rozycki <macro@codesourcery.com>
5074
5075 * mips-tdep.c (mips_gdbarch_init): Replace hardcoded magic
5076 numbers with enum values.
5077
054e8d9e
AA
50782013-07-15 Ali Anwar <ali_anwar@codesourcery.com>
5079
5080 PR threads/13217
5081 * thread.c (thread_apply_all_command): Check for valid threads
5082 and thread count.
5083 (thread_array_cleanup): New struct.
5084 (set_thread_refcount): New function.
5085
cf006359
AB
50862013-07-11 Andrew Burgess <aburgess@broadcom.com>
5087
5088 * infcmd.c (default_print_one_register_info): Reuse function
5089 print_hex_chars.
5090
94e36acc
TT
50912013-07-10 Tom Tromey <tromey@redhat.com>
5092
5093 * Makefile.in (GDB_WARN_CFLAGS_NO_DEFS, ADA_EXP_C): New macros.
5094 (ada-exp.o): New target.
5095
915dd369
SDJ
50962013-07-10 Sergio Durigan Junior <sergiodj@redhat.com>
5097
5098 * mt-tdep.c (mt_registers_info): Call
5099 get_no_prettyformat_print_options instead of
5100 get_raw_print_options (regression by last patch from Doug
5101 Evans).
5102
eca07816
JB
51032013-07-09 Pedro Alves <palves@redhat.com>
5104
5105 Checked in by Joel Brobecker <brobecker@adacore.com>.
5106 * ada-lang.c (coerce_unspec_val_to_type): Use
5107 value_optimized_out_const.
5108 * value.c (value_optimized_out_const): New function.
5109 * value.h (value_optimized_out_const): New declaration.
5110
2a998fc0
DE
51112013-07-09 Doug Evans <dje@google.com>
5112
5113 * defs.h (enum val_prettyformat): Renamed from val_prettyprint.
5114 Enum values rename as well. All uses updated.
5115 * valprint.h (value_print_options): Rename member pretty to
5116 pretty format. Rename member prettyprint_arrays to
5117 prettyformat_arrays. Rename member prettyprint_structs to
5118 prettyformat_structs. All uses updated.
5119 (get_no_prettyformat_print_options): Renamed from
5120 get_raw_print_options.
5121 * valprint.c (get_no_prettyformat_print_options): Renamed from
5122 get_raw_print_options. All callers updated.
5123 (show_prettyformat_structs): Renamed from show_prettyprint_structs.
5124 All callers updated.
5125 (show_prettyformat_arrays): Renamed from show_prettyprint_arrays.
5126 All callers updated.
5127 (_initialize_valprint): Improve help text for "set print pretty" and
5128 "set print arrays".
5129
466c1fca
AB
51302013-07-09 Andrew Burgess <aburgess@broadcom.com>
5131
5132 * value.c (value_bits_valid): Revert previous change, and change
5133 by Pedro on 2013-07-04, due to regressions in
5134 gdb.dwarf2/implptr.exp and gdb.dwarf2/pieces.exp.
5135
ad0f0303
AB
51362013-07-08 Andrew Burgess <aburgess@broadcom.com>
5137 Pedro Alves <palves@redhat.com>
5138
5139 * value.c (value_bits_valid): If the value is not lval_computed
5140 or has no check validity handler then the answer is the
5141 optimized_out flag, otherwise defer to the handler.
5142
b187bec1
EZ
51432013-07-06 Eli Zaretskii <eliz@gnu.org>
5144
48d1d6f5
EZ
5145 * top.c (print_gdb_configuration): Explain in output of
5146 --configuration what does "relocatable" mean.
5147
b187bec1
EZ
5148 * main.c (print_gdb_help): Regroup options in the --help text.
5149 See http://sourceware.org/ml/gdb-patches/2013-04/msg00362.html for
5150 the relevant discussions.
5151
52d361e1
YQ
51522013-07-06 Yao Qi <yao@codesourcery.com>
5153
5154 * breakpoint.h (struct breakpoint_ops) <create_breakpoints_sal>:
5155 Remove parameter 'lsal'.
5156 * breakpoint.c (create_breakpoint): Move local variable 'lsal'
5157 to inner block. Caller update.
5158 (base_breakpoint_create_breakpoints_sal): Update.
5159 (bkpt_create_breakpoints_sal): Likewise.
5160 (tracepoint_create_breakpoints_sal): Likewise.
5161 (strace_marker_create_breakpoints_sal): Get 'lsal' from the
5162 element 0 of vector 'canonical->sals'.
5163
e1ec1b42
LM
51642013-07-05 Luis Machado <lgustavo@codesourcery.com>
5165
5166 * rs6000-tdep.c (rs6000_stab_reg_to_regnum): Return the real
5167 register number instead of the pseudo register one.
5168 (rs6000_dwarf2_reg_to_regnum): Likewise.
5169
7195e6f0
PA
51702013-07-04 Pedro Alves <palves@redhat.com>
5171
5172 * findvar.c (value_of_register): Use allocate_optimized_out_value
5173 if the register has been optimized out, instead of
5174 set_value_optimized_out.
5175 * frame-unwind.c (frame_unwind_got_optimized): Use
5176 allocate_optimized_out_value.
5177
58722cac
PA
51782013-07-04 Pedro Alves <palves@redhat.com>
5179
5180 * value.c (value_bits_valid): If the value is not lval_computed,
5181 or doesn't have a check_validity hook, assume the value is entirely
5182 valid.
5183
691a26f5
AB
51842013-07-04 Andrew Burgess <aburgess@broadcom.com>
5185
5186 * stack.c (read_frame_arg): No longer fetch lazy values.
5187 * value.c (value_optimized_out): If the value is not already
5188 marked optimized out, and is lazy then fetch it.
5189 (value_primitive_field): Move optimized out check to later in the
5190 function, after we have loaded any lazy values.
5191 (value_fetch_lazy): Use optimized out flag directly rather than
5192 calling optimized_out method.
5193
a58e2656
AB
51942013-07-04 Andrew Burgess <aburgess@broadcom.com>
5195
5196 * valops.c: Don't include "user-regs.h".
5197 (value_fetch_lazy): Moved to value.c.
5198 * value.c: Include "user-regs.h".
5199 (value_fetch_lazy): Moved from valops.c.
5200
bd885420
YQ
52012013-07-04 Yao Qi <yao@codesourcery.com>
5202
5203 Revert:
5204 2013-06-27 Yao Qi <yao@codesourcery.com>
5205
5206 * common/create-version.sh: Update comments. Handle the case
5207 that TARGET_ALIAS is empty.
5208
17ef446e
PA
52092013-07-03 Pedro Alves <palves@redhat.com>
5210
5211 * Makefile.in (config.status): Depend on development.sh.
5212 (aclocal_m4_deps): Add libmcheck.m4.
5213 * acinclude.m4: Include libmcheck.m4.
5214 * configure.ac: Source development.sh instead of setting
5215 'development' here. --enable-libmcheck/--disable-libmcheck code
5216 factored out to GDB_AC_LIBMCHECK. Run it.
5217 * development.sh: New file.
5218 * libmcheck.m4: New file.
5219 * configure: Regenerate.
5220
ac6dd50f
TT
52212013-07-02 Tom Tromey <tromey@redhat.com>
5222
5223 * contrib/ari/update-web-ari.sh: Update for version.in change.
5224
bd1df410
TT
52252013-07-02 Tom Tromey <tromey@redhat.com>
5226
5227 * common/ptid.h: Comment fixes.
5228
4db1a1dc
TT
52292013-07-01 Tom Tromey <tromey@redhat.com>
5230
5231 * dwarf2read.c (dwarf2_get_dwz_file): Return NULL if
5232 .gnu_debugaltlink not found. Use bfd_get_alt_debug_link_info.
5233 (dwarf2_read_index, create_all_comp_units): Update.
5234
dd9aa048
TT
52352013-07-01 Tom Tromey <tromey@redhat.com>
5236
5237 * configure.ac (build_warnings): Add -Wold-style-definition.
5238 * configure: Rebuild.
5239 * machoread.c (_initialize_machoread): Use "(void)".
5240 * macrocmd.c (macro_inform_no_debuginfo): Fix formatting;
5241 use "(void)".
5242
44d100c3
TT
52432013-07-01 Tom Tromey <tromey@redhat.com>
5244
5245 * configure.ac (build_warnings): Add -Wold-style-declaration.
5246 * configure: Rebuild.
5247 * dsrec.c (make_srec): Use "static const", not "const static".
5248 * h8300-tdep.c (h8300_breakpoint_from_pc): Use "static const",
5249 not "const static".
5250 * mi/mi-parse.c (mi_no_values, mi_simple_values, mi_all_values):
5251 Use "static const", not "const static".
5252 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Use "static const",
5253 not "const static".
5254 * moxie-tdep.c (moxie_breakpoint_from_pc): Use "static const",
5255 not "const static".
5256 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Use "static const",
5257 not "const static".
5258 * v850-tdep.c (v850_breakpoint_from_pc): Use "static const",
5259 not "const static".
5260 (v850_dbtrap_breakpoint_from_pc): Likewise.
5261 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Use "static const",
5262 not "const static".
5263
2945b807
TT
52642013-07-01 Tom Tromey <tromey@redhat.com>
5265
5266 * configure.ac (build_warnings): Add -Wmissing-parameter-type.
5267 * configure: Rebuild.
5268
d8d2a3ee
PA
52692013-07-01 Pedro Alves <palves@redhat.com>
5270
5271 * defs.h: Include "pathmax.h".
5272 * utils.c: Don't include sys/param.h.
5273 (gdb_realpath): Remove code that checks for MAXPATHLEN.
5274 * solib-ia64-hpux.c (ia64_hpux_handle_load_event): Use PATH_MAX
5275 instead of MAXPATHLEN.
5276 * solib-sunos.c: Don't include sys/param.h.
5277 * xcoffread.c: Don't include sys/param.h.
5278 * bsd-kvm.c: Don't include sys/param.h.
5279 * darwin-nat.c: Don't include sys/param.h.
5280 (darwin_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
5281 * darwin-nat-info.c: Don't include sys/param.h.
5282 * fbsd-nat.c (fbsd_pid_to_exec_file): Use PATH_MAX instead of
5283 MAXPATHLEN.
5284 * i386obsd-nat.c: Don't include sys/param.h.
5285 * inf-child.c: Don't include sys/param.h.
5286 (inf_child_fileio_readlink): Use PATH_MAX instead of MAXPATHLEN.
5287 * linux-fork.c: Don't include sys/param.h.
5288 (fork_save_infrun_state): Use PATH_MAX instead of MAXPATHLEN.
5289 * linux-nat.c: Don't include sys/param.h.
5290 (linux_child_pid_to_exec_file, linux_proc_pending_signals)
5291 (linux_proc_pending_signals): Use PATH_MAX instead of MAXPATHLEN.
5292 * m68klinux-nat.c: Don't include sys/param.h.
5293 * nbsd-nat.c: Don't include sys/param.h.
5294 (nbsd_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
5295 * ppc-linux-nat.c: Don't include sys/param.h.
5296 * rs6000-nat.c: Don't include sys/param.h.
5297 * spu-linux-nat.c. Don't include sys/param.h.
5298 * windows-nat.c: Don't include sys/param.h.
5299 * xtensa-linux-nat.c: Don't include sys/param.h.
5300 * config/i386/nm-fbsd.h: Don't include sys/param.h.
5301
38ec2207
PA
53022013-07-01 Pedro Alves <palves@redhat.com>
5303
5304 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add pathmax.
5305 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/pathmax.m4.
5306 * gnulib/aclocal.m4: Regenerate.
5307 * gnulib/config.in: Regenerate.
5308 * gnulib/configure: Regenerate.
5309 * gnulib/import/pathmax.h: New file.
5310 * gnulib/import/Makefile.am: Regenerate.
5311 * gnulib/import/Makefile.in: Regenerate.
5312 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
5313 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
5314 * gnulib/import/m4/pathmax.m4: New file.
5315
e655c1a2
PA
53162013-07-01 Pedro Alves <palves@redhat.com>
5317
5318 * configure.ac (GDBINIT): Define, depending on host.
5319 * go32-nat.c (init_go32_ops): Don't override gdbinit here.
5320 * top.c (PATH_MAX): Delete fallback definition.
5321 (GDBINIT_FILENAME): Delete.
5322 (gdbinit): Reimplement as const char array set to the GDBINIT
5323 string constant.
5324 * top.h (gdbinit): Make const.
5325 * configure, config.in: Regenerate.
5326
50dd9793
PA
53272013-07-01 Pedro Alves <palves@redhat.com>
5328
5329 * cli/cli-cmds.c (source_script): Make 'file' parameter const.
5330 * cli/cli-cmds.h (source_script): Likewise.
5331 * exceptions.c (catch_command_errors_const): New function.
5332 * exceptions.h (catch_command_errors_const): Declare.
5333 * main.c (get_init_files): Make parameters const, and adjust.
5334 (captured_main): Make 'system_gdbinit', 'home_gdbinit' and
5335 'local_gdbinit' locals const. Adjust to use
5336 catch_command_errors_const.
5337 (print_gdb_help): Make 'system_gdbinit', 'home_gdbinit' and
5338 'local_gdbinit' locals const.
5339
bc7dea8d
PA
53402013-07-01 Pedro Alves <palves@redhat.com>
5341
5342 * defs.h: Don't check HAVE_UNISTD_H before including <unistd.h>.
5343 (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO): Delete.
5344 * tracepoint.c: Don't check HAVE_UNISTD_H before including
5345 <unistd.h>.
5346
8839a007
PA
53472013-07-01 Pedro Alves <palves@redhat.com>
5348
5349 Import the "unistd" gnulib module.
5350 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add "unistd".
5351 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/off_t.m4,
5352 import/m4/ssize_t.m4, import/m4/sys_types_h.m4 and
5353 import/m4/unistd_h.m4.
5354 * gnulib/aclocal.m4: Renenerate.
5355 * gnulib/config.in: Renenerate.
5356 * gnulib/configure: Renenerate.
5357 * gnulib/import/Makefile.am: Renenerate.
5358 * gnulib/import/Makefile.in: Renenerate.
5359 * gnulib/import/m4/gnulib-cache.m4: Renenerate.
5360 * gnulib/import/m4/gnulib-comp.m4: Renenerate.
5361 * gnulib/import/m4/off_t.m4: New file.
5362 * gnulib/import/m4/ssize_t.m4: New file.
5363 * gnulib/import/m4/sys_types_h.m4: New file.
5364 * gnulib/import/m4/unistd_h.m4: New file.
5365 * gnulib/import/sys_types.in.h: New file.
5366 * gnulib/import/unistd.c: New file.
5367 * gnulib/import/unistd.in.h: New file.
5368
8c0da261
PA
53692013-07-01 Pedro Alves <palves@redhat.com>
5370
5371 * utils.c <pathconf/_PC_PATH_MAX use>: Check if _PC_PATH_MAX is
5372 defined instead of checking HAVE_UNISTD_H.
5373
3574124b
PA
53742013-07-01 Pedro Alves <palves@redhat.com>
5375
5376 Reimport gnulib from scratch.
5377 * gnulib/Makefile.in (aclocal_m4_deps): Remove reference to
5378 import/m4/onceonly.m4.
5379 * gnulib/aclocal.m4: Renegerate.
5380 * gnulib/config.in: Renegerate.
5381 * gnulib/configure: Renegerate.
5382 * gnulib/import/Makefile.in: Renegerate.
5383 * gnulib/import/extra/update-copyright: Renegerate.
5384 * gnulib/import/m4/onceonly.m4: Delete.
5385
702dc4fd
PA
53862013-07-01 Pedro Alves <palves@redhat.com>
5387
5388 * tui/tui-regs.c (pagination_enabled): Delete declaration.
5389
47e1ce27
JK
53902013-06-30 Jan Kratochvil <jan.kratochvil@redhat.com>
5391
5392 Code cleanup.
5393 * remote.c (async_remote_interrupt_twice): Make it static.
5394 * remote.h (async_remote_interrupt_twice): Remove the declaration.
5395
e82839d4
SDJ
53962013-06-29 Sergio Durigan Junior <sergiodj@redhat.com>
5397
5398 * ia64-linux-tdep.c: Include <ctype.h>.
5399 (ia64_linux_stap_is_single_operand): New function.
5400 (ia64_linux_init_abi): Initialize SystemTap related attributes.
5401
d6c2da54
TT
54022013-06-28 Tom Tromey <tromey@redhat.com>
5403
5404 * Makefile.in (version.c): Use version.in, not
5405 common/version.in.
5406 * common/create-version.sh: Likewise.
5407 * common/version.in: Move...
5408 * version.in: ...here.
5409
74da6f00
PA
54102013-06-28 Pedro Alves <palves@redhat.com>
5411
5412 * infrun.c (set_observer_mode): Don't declare pagination_enabled
5413 here.
5414 * utils.h (pagination_enabled): Declare.
5415
d32dc48e
PA
54162013-06-28 Pedro Alves <palves@redhat.com>
5417
5418 * infrun.c (non_stop, non_stop_1, set_non_stop, show_non_stop):
5419 Move higher up in file.
5420
0edd9e3b
TT
54212013-06-28 Tom Tromey <tromey@redhat.com>
5422
5423 * tracepoint.c (deprecated_readline_begin_hook)
5424 (deprecated_readline_hook, deprecated_readline_end_hook): Don't
5425 declare.
5426
4eb59108
PA
54272013-06-28 Pedro Alves <palves@redhat.com>
5428
5429 PR tui/14880
5430 * tui/tui-regs.c (tui_get_register): Fetch value contents before
5431 checking if they're available.
5432 * value.c (value_available_contents_eq): Change comment.
5433 * value.h (value_available_contents_eq): Expand comment.
5434
97b17156
TT
54352013-06-27 Tom Tromey <tromey@redhat.com>
5436
5437 * target.c (find_run_target): Remove.
5438 * target.h (find_run_target): Remove.
5439
6a3bfc5c
TT
54402013-06-27 Tom Tromey <tromey@redhat.com>
5441
5442 * corelow.c (core_gdbarch): Now static.
5443
c9ef825d
TT
54442013-06-27 Tom Tromey <tromey@redhat.com>
5445
5446 * target.c (target_struct_index): Remove.
5447
e5823f1c
PA
54482013-06-27 Pedro Alves <palves@redhat.com>
5449
5450 * infrun.c: Remove comment describing the 'stepping over runtime
5451 loader dynamic symbol resolution code' mechanism; moved to
5452 gdbint.texinfo.
5453
97f8dd09
PA
54542013-06-27 Pedro Alves <palves@redhat.com>
5455
5456 * exceptions.c (catch_command_errors): Remove spurious space.
5457 * exceptions.h (catch_command_errors): Second parameter is "arg",
5458 not "command".
5459
02b1871e
YQ
54602013-06-27 Yao Qi <yao@codesourcery.com>
5461
5462 * common/create-version.sh: Update comments. Handle the case
5463 that TARGET_ALIAS is empty.
5464
bb1b1cf1
PA
54652013-06-26 Pedro Alves <palves@redhat.com>
5466
5467 * infrun.c (SOLIB_IN_DYNAMIC_LINKER): Delete macro and describing
5468 comment.
5469
7b624e71
PA
54702013-06-26 Pedro Alves <palves@redhat.com>
5471
5472 * infrun.c: Update comments on stepping over runtime loader
5473 dynamic symbol resolution code.
5474
74e5a346
SDJ
54752013-06-26 Sergio Durigan Junior <sergiodj@redhat.com>
5476
5477 * ax-gdb.h (union exp_element): Forward declare.
5478 * parser-defs.h: Include expression.h.
5479
a2fb2cee
MR
54802013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
5481
5482 * mips-tdep.c (fetch_mips_16): Use unmake_compact_addr.
5483
cdba14e0
DK
54842013-06-26 Dmitry Kozlov <ddk@codesourcery.com>
5485
5486 * tracepoint.c (trace_save): Extend tsave to save starttime, stoptime.
5487
f30aa5af
DK
54882013-06-26 Dmitry Kozlov <ddk@codesourcery.com>
5489
5490 Fix trace-status to output proper start-time and stop-time.
5491 * tracepoint.c (trace_status_command): Fix type of printf arg to
5492 prevent improper type conversion.
5493 (trace_status_mi): Likewise.
5494
1aee363c
MR
54952013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
5496
5497 * mips-tdep.c (mips_next_pc): Fix a typo.
5498
3356937a
MR
54992013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
5500
5501 * mips-tdep.c (micromips_scan_prologue): Fix a typo.
5502
dc673c81
YQ
55032013-06-26 Pedro Alves <pedro@codesourcery.com>
5504 Yao Qi <yao@codesourcery.com>
5505
5506 * mi/mi-cmds.c (mi_cmds): Register -trace-frame-collected.
5507 * mi/mi-cmds.h (mi_cmd_trace_frame_collected): Declare.
5508 * mi/mi-main.c (print_variable_or_computed): New function.
5509 (mi_cmd_trace_frame_collected): New function.
5510 * tracepoint.c (find_trace_state_variable_by_number): New.
5511 (struct traceframe_info): Move to tracepoint.h
5512 (struct collection_list): Likewise.
5513 (do_collect_symbol): Include locals and arguments in the
5514 collected variables list.
5515 (clear_collection_list): Clear wholly collected variables list
5516 and computed variables list.
5517 (append_exp): New function.
5518 (encode_actions_1): Include variables in the wholly
5519 collected variables list. Include memory ranges and
5520 full-fledged expressions in the computed expressions list.
5521 (encode_actions): Move some code to ...
5522 Return the cleanup chain.
5523 (encode_actions_rsp): ... here. New function.
5524 (get_traceframe_location, get_traceframe_info): Remove static.
5525 * tracepoint.h (struct memrange): Moved from tracepoint.c.
5526 (struct collection_list): Moved from tracepoint.c. Add two
5527 new fields 'wholly_collected' and 'computed'.
5528 (find_trace_state_variable_by_number): Declare.
5529 (encode_actions): Adjust declaration.
5530 (encode_actions_rsp): Declare.
5531 (get_traceframe_info, get_traceframe_location): Declare.
5532
5533 * NEWS: Mention new MI command -trace-frame-collected.
5534
28a93511
YQ
55352013-06-26 Pedro Alves <pedro@codesourcery.com>
5536 Yao Qi <yao@codesourcery.com>
5537
5538 * ctf.c (ctf_traceframe_info): Push trace state variables
5539 present in the trace data into the traceframe info object.
5540 * breakpoint.c (DEF_VEC_I): Remove.
5541 * common/filestuff.c (DEF_VEC_I): Likewise.
5542 * dwarf2loc.c (DEF_VEC_I): Likewise.
5543 * mi/mi-main.c (DEF_VEC_I): Likewise.
5544 * common/gdb_vecs.h (DEF_VEC_I): Define vector for int.
5545 * features/traceframe-info.dtd: Add tvar element and its
5546 attributes.
5547 * tracepoint.c (free_traceframe_info): Free vector 'tvars'.
5548 (build_traceframe_info): Push trace state variables present in
5549 the trace data into the traceframe info object.
5550 (traceframe_info_start_tvar): New function.
5551 (tvar_attributes): New.
5552 (traceframe_info_children): Add "tvar" element.
5553 * tracepoint.h (struct traceframe_info) <tvars>: New field.
5554
5555 * NEWS: Mention the change in GDB and GDBserver.
5556
ddacd3c8
YQ
55572013-06-26 Pedro Alves <pedro@codesourcery.com>
5558 Yao Qi <yao@codesourcery.com>
5559
5560 * tracepoint.c (trace_dump_command): Move code to ...
5561 (get_traceframe_location): ... here. New.
5562
05796b35
YQ
55632013-06-26 Pedro Alves <pedro@codesourcery.com>
5564 Yao Qi <yao@codesourcery.com>
5565
5566 * tracepoint.c (trace_dump_command): GDB emits an error
5567 instead of a warning when a traceframe is not selected.
5568
cbfa3b61
YQ
55692013-06-26 Pedro Alves <pedro@codesourcery.com>
5570 Yao Qi <yao@codesourcery.com>
5571
5572 * tracepoint.c (tracepoint_list, stepping_list): Remove.
5573 (clear_collection_list): Free fields 'aexpre_list' and 'list'
5574 in collection_list.
5575 (do_clear_collection_list, init_collection_list): New.
5576 (encode_actions): Add local variables 'tracepoint_list' and
5577 'stepping_list'. Call init_collection_list and make cleanup
5578 which calls do_clear_collection_list. Don't call
5579 clear_collection_list.
5580 (_initialize_tracepoint): Delete references to
5581 'tracepoint_list' and 'stepping_list'.
5582
6e2048d3
TT
55832013-06-25 Tom Tromey <tromey@redhat.com>
5584
5585 * common/create-version.sh (date): Use "$", not "$$" in sed
5586 expression.
5587
42059f0e
KB
55882013-06-25 Kevin Buettner <kevinb@redhat.com>
5589
5590 * NEWS (New targets): Add entry for TI MSP430.
5591
a0743c90
YQ
55922013-06-25 Yao Qi <yao@codesourcery.com>
5593
5594 * remote.c (remote_start_remote): Move code to upload tsv
5595 earlier.
5596
9d6e6e84
HZ
55972013-06-25 Yao Qi <yao@codesourcery.com>
5598 Hui Zhu <hui@codesourcery.com>
5599 Pedro Alves <palves@redhat.com>
5600
5601 PR breakpoints/15075
5602 PR breakpoints/15434
5603 * breakpoint.c (bpstat_stop_status): Call
5604 b->ops->after_condition_true.
5605 (update_dprintf_command_list): Don't append "continue" command
5606 to the command list of dprintf breakpoint.
5607 (base_breakpoint_after_condition_true): New function.
5608 (base_breakpoint_ops): Add base_breakpoint_after_condition_true.
5609 (dprintf_after_condition_true): New function.
5610 (initialize_breakpoint_ops): Set dprintf_after_condition_true.
5611 * breakpoint.h (breakpoint_ops): Add after_condition_true.
5612
586cf749
KB
56132013-06-24 Kevin Buettner <kevinb@redhat.com>
5614
5615 * Makefile.in (ALL_TARGET_OBS): Add msp430-tdep.o.
5616 (ALLDEPFILES): Add msp430-tdep.c.
5617 * configure.tgt (msp430*-*-elf): New target.
5618 * msp430-tdep.c: New file.
5619
1bbce132
MR
56202013-06-24 Maciej W. Rozycki <macro@codesourcery.com>
5621
5622 * mips-tdep.c (mips_elf_make_msymbol_special): Handle MIPS16 and
5623 microMIPS synthetic symbols.
5624
3e5d3a5a
MR
56252013-06-24 Maciej W. Rozycki <macro@codesourcery.com>
5626
5627 * objfiles.h (pc_in_section): New prototype.
5628 (in_plt_section): Remove name argument, replace prototype with
5629 static inline function.
5630 * mips-tdep.h: Include "objfiles.h".
5631 (in_mips_stubs_section): New function.
5632 * hppa-tdep.h (gdbarch_tdep): Remove name argument of
5633 in_solib_call_trampoline member.
5634 (hppa_in_solib_call_trampoline): Remove name argument.
5635 * objfiles.c (pc_in_section): New function.
5636 (in_plt_section): Remove function.
5637 * mips-linux-tdep.c: Include "objfiles.h".
5638 (mips_linux_in_dynsym_stub): Call in_mips_stubs_section. Remove
5639 name argument. Return 1 rather than the low 16-bit halfword of
5640 any instruction examined.
5641 (mips_linux_in_dynsym_resolve_code): Update
5642 mips_linux_in_dynsym_stub call accordingly.
5643 * mips-tdep.c (mips_stub_frame_sniffer): Use in_mips_stubs_section
5644 rather than an equivalent hand-coded sequence.
5645 * hppa-hpux-tdep.c (in_opd_section): Remove function.
5646 (hppa32_hpux_in_solib_call_trampoline): Remove name argument.
5647 (hppa64_hpux_in_solib_call_trampoline): Likewise.
5648 (hppa64_hpux_find_global_pointer): Use pc_in_section rather than
5649 in_opd_section.
5650 * hppa-tdep.c (hppa_stub_unwind_sniffer): Remove name argument
5651 on call to tdep->in_solib_call_trampoline.
5652 (hppa_in_solib_call_trampoline): Remove name argument, update
5653 according to in_plt_section change.
5654 (hppa_skip_trampoline_code): Update according to in_plt_section
5655 change.
5656 * aarch64-tdep.c (aarch64_stub_unwind_sniffer): Likewise.
5657 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code):
5658 Likewise.
5659 * arm-tdep.c (arm_stub_unwind_sniffer): Likewise.
5660 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): Likewise.
5661 * hppabsd-tdep.c (hppabsd_find_global_pointer): Likewise.
5662 * nios2-tdep.c (nios2_stub_frame_sniffer): Likewise.
5663 * nto-tdep.c (nto_relocate_section_addresses): Likewise.
5664 * s390-tdep.c (s390_stub_frame_sniffer): Likewise.
5665 * sh-tdep.c (sh_stub_unwind_sniffer): Likewise.
5666 * solib-dsbt.c (dsbt_in_dynsym_resolve_code): Likewise.
5667 * solib-frv.c (frv_in_dynsym_resolve_code): Likewise.
5668 * solib-svr4.c (svr4_in_dynsym_resolve_code): Likewise.
5669 * solib-target.c (solib_target_in_dynsym_resolve_code): Likewise.
5670 * sparc-tdep.c (sparc_analyze_prologue): Likewise.
5671 * tic6x-tdep.c (tic6x_stub_unwind_sniffer): Likewise.
5672
b9b26a16
JB
56732013-06-24 Joel Brobecker <brobecker@adacore.com>
5674
5675 * common/create-version.sh: Fix expansion of $host_alias
5676 and $target_alias in generation of HOST_NAME and TARGET_NAME
5677 (resp.).
5678
01208463
TT
56792013-06-24 Tom Tromey <tromey@redhat.com>
5680
5681 * common/create-version.sh: New file.
5682 * Makefile.in (version.c): Use bfd/version.h, common/version.in,
5683 create-version.sh.
5684 (HFILES_NO_SRCDIR): Use common/version.h.
5685 * version.in: Move to ...
5686 * common/version.in: ... here. Replace date with "DATE".
5687 * version.h: Move to ...
5688 * common/version.h: ... here.
5689
bb6b9a5e
JB
56902013-06-21 Joel Brobecker <brobecker@adacore.com>
5691
5692 * gdb/gnulib/Makefile.in: Update date in copyright header.
5693 * gdb/gnulib/configure.ac: Ditto.
5694 * gdb/gnulib/update-gnulib.sh: Ditto.
5695
c3b18ee7
JB
56962013-06-21 Joel Brobecker <brobecker@adacore.com>
5697
5698 * copyright.py (EXCLUDE_LIST): Replace "gdb/gnulib" by
5699 "gdb/gnulib/import".
5700
85d3b769
WN
57012013-06-21 Will Newton <will.newton@linaro.org>
5702
5703 * doublest.c (ldfrexp): Remove function.
5704 (convert_doublest_to_floatformat): Call frexpl instead of
5705 ldfrexp.
5706
88b48903
WN
57072013-06-21 Will Newton <will.newton@linaro.org>
5708
5709 * gnulib/update-gnulib.sh(IMPORTED_GNULIB_MODULES): Add frexpl.
5710 * gnulib/aclocal.m4: Regenerate.
5711 * gnulib/config.in: Regenerate.
5712 * gnulib/configure: Regenerate.
5713 * gnulib/import/Makefile.am: Update.
5714 * gnulib/import/Makefile.in: Update.
5715 * gnulib/import/m4/gnulib-cache.m4: Update.
5716 * gnulib/import/m4/gnulib-comp.m4: Update.
5717 * gnulib/import/float+.h: Import.
5718 * gnulib/import/float.c: Import.
5719 * gnulib/import/float.in.h: Import.
5720 * gnulib/import/fpucw.h: Import.
5721 * gnulib/import/frexp.c: Import.
5722 * gnulib/import/frexpl.c: Import.
5723 * gnulib/import/isnan.c: Import.
5724 * gnulib/import/isnand-nolibm.h: Import.
5725 * gnulib/import/isnand.c: Import.
5726 * gnulib/import/isnanl-nolibm.h: Import.
5727 * gnulib/import/isnanl.c: Import.
5728 * gnulib/import/itold.c: Import.
5729 * gnulib/import/m4/exponentd.m4: Import.
5730 * gnulib/import/m4/exponentl.m4: Import.
5731 * gnulib/import/m4/float_h.m4: Import.
5732 * gnulib/import/m4/fpieee.m4: Import.
5733 * gnulib/import/m4/frexp.m4: Import.
5734 * gnulib/import/m4/frexpl.m4: Import.
5735 * gnulib/import/m4/isnand.m4: Import.
5736 * gnulib/import/m4/isnanl.m4: Import.
5737 * gnulib/import/m4/math_h.m4: Import.
5738 * gnulib/import/math.c: Import.
5739 * gnulib/import/math.in.h: Import.
5740
4353c9e6
JK
57412013-06-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5742
5743 * common/linux-btrace.c (cpu_supports_btrace): Remove variable vendor,
5744 replace strcmp with signature_INTEL_ebx, signature_INTEL_ecx and
5745 signature_INTEL_edx comparisons.
5746
e3e06db3
DE
57472013-06-20 Doug Evans <dje@google.com>
5748
6ac97d4c
DE
5749 symtab/15652
5750 * dwarf2read.c (try_open_dwop_file): New arg search_cwd.
5751 All callers updated.
5752 (open_dwp_file): If we can't find the dwp file, search the basename
5753 in debug-file-directory.
5754
93417882
DE
5755 * dwarf2read.c (struct dwp_file): Fix comment.
5756 (open_and_init_dwp_file): Set dwp_file->name to bfd's file name.
5757
e3e06db3
DE
5758 * source.c (openp): Document OPF_TRY_CWD_FIRST+OPF_SEARCH_IN_PATH
5759 better.
5760
0878d0fa
YQ
57612013-06-20 Yao Qi <yao@codesourcery.com>
5762
5763 * breakpoint.c (create_breakpoint): Fix code indentation.
5764
023fa29b
YQ
57652013-06-20 Yao Qi <yao@codesourcery.com>
5766
5767 * breakpoint.c (create_breakpoints_sal_default): Remove
5768 parameter 'lsal'. Update declaration.
5769 (bkpt_create_breakpoints_sal): Caller update.
5770 (tracepoint_create_breakpoints_sal): Likewise.
5771
c898adb7
YQ
57722013-06-20 Pedro Alves <pedro@codesourcery.com>
5773 Yao Qi <yao@codesourcery.com>
5774
5775 * NEWS: Mention the new option '--skip-unavailable' of command
5776 -data-list-register-values.
5777 * mi/mi-main.c (mi_cmd_data_list_register_values): Accept the
5778 --skip-unavailable option. Adjust to use output_register.
5779 (output_register): Add new 'skip_unavailable' parameter.
5780 Handle it.
5781
4d157a3d
MF
57822013-06-19 Mike Frysinger <vapier@gentoo.org>
5783
5784 * Makefile.in (HFILES_NO_SRCDIR): Add common/i386-cpuid.h and
5785 common/i386-gcc-cpuid.h.
5786 * common/i386-cpuid.h: New wrapper header around i386-gcc-cpuid.h.
5787 * common/i386-gcc-cpuid.h: Rename from testsuite/gdb.arch/i386-cpuid.h.
5788 Copy the latest version from upstream gcc.
5789 * common/linux-btrace.c: Include i386-cpuid.h.
5790 (intel_supports_btrace): Delete x86 ifdefs and replace inline asm with
5791 call to i386_cpuid.
5792 (cpu_supports_btrace): Likewise.
5793 * go32-nat.c: Include i386-cpuid.h.
5794 (go32_sysinfo): Add (disabled) calls to i386_cpuid with comments.
5795
1ce4db08
DE
57962013-06-19 Doug Evans <dje@google.com>
5797
5798 * symfile.c (symfile_bfd_open): Delete unnecessary declaration.
5799 (get_section_index): Ditto.
5800
0e4777df
TT
58012013-06-19 Tom Tromey <tromey@redhat.com>
5802
5803 * breakpoint.c (_initialize_breakpoint): Remove trailing \n from
5804 "dprintf" help.
5805
3190f0c6
DE
58062013-06-18 Doug Evans <dje@google.com>
5807
5808 * dwarf2read.c (dw2_symtab_iter_next): Check value of cu_index
5809 before using it.
5810 (dw2_expand_symtabs_matching): Fix symbol kind validity check.
5811 Move test of cu_index closer to use. Print complaint if cu_index
5812 is bad.
5813
8b89a20a
JB
58142013-06-18 Joel Brobecker <brobecker@adacore.com>
5815
5816 * machoread.c (oso_vector): Delete this global.
5817 (macho_register_oso): Add new parameter "oso_vector_ptr".
5818 Use it instead of the "oso_vector" global.
5819 (macho_symtab_read, macho_symfile_read_all_oso): Likewise.
5820 (macho_symfile_read): Use a local oso_vector, to be free'ed
5821 at the end of this function, in place of the old "oso_vector"
5822 global. Update various function calls accordingly. Use one
5823 single cleanup chain for the entire function.
5824
59b0c7c1
JB
58252013-06-18 Joel Brobecker <brobecker@adacore.com>
5826
937c708c 5827 * dwarf2read.c (dwarf2_per_objfile_free): Replace uses of
59b0c7c1
JB
5828 DWARF2_PER_OBJFILE by uses of DATA instead.
5829
427cd150
TT
58302013-06-18 Tom Tromey <tromey@redhat.com>
5831
5832 * break-catch-sig.c (signal_catchpoint_explains_signal): Add 'sig'
5833 argument.
5834 * breakpoint.c (bpstat_explains_signal): Add 'sig' argument.
5835 Special case signals other than GDB_SIGNAL_TRAP.
5836 (explains_signal_watchpoint): New function.
5837 (base_breakpoint_explains_signal): Add 'sig' argument.
5838 (initialize_breakpoint_ops): Set 'explains_signal' method for
5839 watchpoints.
5840 * breakpoint.h (struct breakpoint_ops) <explains_signal>: Add
5841 signal argument.
5842 (bpstat_explains_signal): Likewise.
5843 * infrun.c (handle_syscall_event, handle_inferior_event): Update.
5844
2d57700b
TT
58452013-06-18 Tom Tromey <tromey@redhat.com>
5846
5847 * python/py-inferior.c (gdbpy_selected_inferior): Don't incref.
5848
ac475191
TT
58492013-06-18 Tom Tromey <tromey@redhat.com>
5850
5851 * python/python.c (finish_python_initialization): Decref
5852 'pythondir' on failure path as well.
5853
5bd1ef56
TT
58542013-06-18 Tom Tromey <tromey@redhat.com>
5855
5856 PR symtab/15391:
5857 * dwarf2loc.c (read_pieced_value): Truncate this_size_bits
5858 after taking bits_to_skip into account. Sign extend byte_offset.
5859 * utils.h (gdb_sign_extend): Declare.
5860 * utils.c (gdb_sign_extend): New function.
5861
92fac807
JK
58622013-06-18 Jan Kratochvil <jan.kratochvil@redhat.com>
5863
5864 * dwarf2read.c (write_psymtabs_to_index): Ignore NULL PSYMTAB.
5865
2d503272
PM
58662013-06-17 Pierre Muller <muller@sourceware.org>
5867
5868 * corelow.c (core_open): Print GDB signal name instead of target
5869 signal number.
5870
6916fd98
MF
58712013-06-17 Mike Frysinger <vapier@gentoo.org>
5872
5873 * .gitignore: Add /gcore.
5874
9c02c129
DE
58752013-06-13 Doug Evans <dje@google.com>
5876
5877 * dwarf2read.c (try_open_dwop_file): Work around behaviour of
5878 OPF_TRY_CWD_FIRST to not search path if the file contains a '/'.
5879
d0548fa2
PM
58802013-06-12 Phil Muldoon <pmuldoon@redhat.com>
5881
5882 * stack.c (backtrace_command_1): Fix indentation.
5883
22128028
JB
58842013-06-11 Joel Brobecker <brobecker@adacore.com>
5885
5886 * window-nat.c (thread_rec): Add missing empty line after
5887 local variable declaration.
5888
2ed3e009
JB
58892013-06-11 Joel Brobecker <brobecker@adacore.com>
5890
5891 * windows-nat.c (thread_rec): Revert format used to print
5892 error code returned by SuspendThread from %d back to %u.
5893
0c3d84be
JB
58942013-06-11 Joel Brobecker <brobecker@adacore.com>
5895
5896 * windows-nat.c (windows_continue): Add "0x" prefix for thread
5897 ID in debug trace.
5898 (get_windows_debug_event): Likewise, for all debug traces.
5899
80e88e1a
JB
59002013-06-11 Joel Brobecker <brobecker@adacore.com>
5901
5902 * window-nat.c (thread_rec): Add thread ID in SuspendThread
5903 warning message.
5904
1edebdbf
YQ
59052013-06-08 Pedro Alves <pedro@codesourcery.com>
5906 Yao Qi <yao@codesourcery.com>
5907
5908 * mi/mi-main.c (get_register): Remove declaration.
5909 (output_register): Declare.
5910 (mi_cmd_data_list_register_values): Remove local variable
5911 'tuple_cleanup'. Move some code into output_register.
5912 (get_register): Renamed to ...
5913 (output_register): ... this. Output the register's
5914 "number" ui_out tuple here.
5915
47d48711
PA
59162013-06-07 Pedro Alves <palves@redhat.com>
5917
5918 * darwin-nat.c: Fix formating in copyright header.
5919 * darwin-nat.h: Likewise.
5920 * gnu-nat.c: Likewise.
5921 * machoread.c: Likewise.
5922
3aee8918
PA
59232013-06-07 Pedro Alves <palves@redhat.com>
5924
5f2b57b5 5925 PR server/14823
3aee8918
PA
5926 * regformats/regdat.sh: Output #include tdesc.h. Make globals
5927 static. Output a global target description pointer.
5928 (init_registers_${name}): Adjust to initialize a
5929 target description structure.
5930
fe8400b4
WN
59312013-06-07 Will Newton <will.newton@linaro.org>
5932
5933 * printcmd.c (build_address_symbolic): Call
5934 gdbarch_addr_bits_remove for text minimal symbols.
5935
20df6206
WN
59362013-06-07 Will Newton <will.newton@linaro.org>
5937
5938 * MAINTAINERS: Add myself to Write After Approval.
5939
aef525cb
YQ
59402013-06-07 Yao Qi <yao@codesourcery.com>
5941
5942 * tracepoint.c (start_tracing): Move code to ...
5943 (trace_reset_local_state): ... here. New.
5944 (disconnect_tracing): Don't call set_current_traceframe,
5945 set_tracepoint_num, and set_traceframe_context. Call
5946 trace_reset_local_state instead.
5947 (tfile_close): Call trace_reset_local_state.
5948 * ctf.c (ctf_close): Likewise.
5949 * remote.c (remote_close): Likewise.
5950 * tracepoint.h (trace_reset_local_state): Declare.
5951
d2415c6c
DE
59522013-06-06 Doug Evans <dje@google.com>
5953
5954 * dwarf2read.c: Whitespace fixes for DWP file format documentation,
5955 and fix header docs.
5956
69fc87c2
DE
59572013-06-05 Doug Evans <dje@google.com>
5958 Keith Seitz <keiths@redhat.com>
5959
5960 PR 15519
5961 * cp-namespace.c (find_symbol_in_baseclass): Call
5962 cp_lookup_symbol_in_namespace instead of cp_lookup_symbol_namespace.
5963 Check result of call to lookup_symbol_static.
5964 Call lookup_static_symbol_aux unconditionally.
5965 Call check_typedef on base types before accessing them.
5966 (cp_lookup_nested_symbol): Fix comment.
5967
a513d1e8
LM
59682013-06-05 Luis Machado <lgustavo@codesourcery.com>
5969
5970 * gnu-v3-abi.c (gnuv3_skip_trampoline): Handle thunk
5971 minimal symbols pointing to function descriptors.
5972
351a6f02
TT
59732013-06-05 Tom Tromey <tromey@redhat.com>
5974
5975 * python/py-utils.c (gdb_pymodule_addobject): Cast away const.
5976
5e1b953b 59772013-06-04 Sergio Durigan Junior <sergiodj@redhat.com>
c7c0b644 5978 Pedro Alves <palves@redhat.com>
5e1b953b
SDJ
5979
5980 * remote.c (remote_wait_as): Restore signal handler before returning
5981 when GDB gets a notification.
5982
f9e14852
GB
59832013-06-04 Gary Benson <gbenson@redhat.com>
5984
8445cbf1 5985 PR 2328
f9e14852
GB
5986 * breakpoint.h (handle_solib_event): Moved function declaration
5987 to solib.h.
5988 * breakpoint.c (handle_solib_event): Moved function to solib.c.
5989 (bpstat_stop_status): Pass new argument to handle_solib_event.
5990 * solib.h (update_solib_breakpoints): New function declaration.
5991 (handle_solib_event): Moved function declaration from
5992 breakpoint.h.
5993 * solib.c (update_solib_breakpoints): New function.
5994 (handle_solib_event): Moved function from breakpoint.c.
5995 Updated to call solib_ops->handle_event if not NULL.
5996 * solist.h (target_so_ops): New fields "update_breakpoints" and
5997 "handle_event".
5998 * infrun.c (set_stop_on_solib_events): New function.
5999 (_initialize_infrun): Use the above for "set
6000 stop-on-solib-events".
6001 (handle_inferior_event): Pass new argument to handle_solib_event.
6002 * solib-svr4.c (probe.h): New include.
6003 (svr4_free_library_list): New forward declaration.
6004 (probe_action): New enum.
6005 (probe_info): New struct.
6006 (probe_info): New static variable.
6007 (NUM_PROBES): New definition.
6008 (svr4_info): New fields "using_xfer", "probes_table" and
6009 "solib_list".
6010 (free_probes_table): New function.
6011 (free_solib_list): New function.
6012 (svr4_pspace_data_cleanup): Free probes table and solib list.
6013 (svr4_copy_library_list): New function.
6014 (svr4_current_sos_via_xfer_libraries): New parameter "annex".
6015 (svr4_read_so_list): New parameter "prev_lm".
6016 (svr4_current_sos_direct): Renamed from "svr4_current_sos".
6017 (svr4_current_sos): New function.
6018 (probe_and_action): New struct.
6019 (hash_probe_and_action): New function.
6020 (equal_probe_and_action): Likewise.
6021 (register_solib_event_probe): Likewise.
6022 (solib_event_probe_at): Likewise.
6023 (solib_event_probe_action): Likewise.
6024 (solist_update_full): Likewise.
6025 (solist_update_incremental): Likewise.
6026 (disable_probes_interface_cleanup): Likewise.
6027 (svr4_handle_solib_event): Likewise.
6028 (svr4_update_solib_event_breakpoint): Likewise.
6029 (svr4_update_solib_event_breakpoints): Likewise.
6030 (svr4_create_solib_event_breakpoints): Likewise.
6031 (enable_break): Free probes table before creating breakpoints.
6032 Use svr4_create_solib_event_breakpoints to create breakpoints.
6033 (svr4_solib_create_inferior_hook): Free the solib list.
6034 (_initialize_svr4_solib): Initialise
6035 svr4_so_ops.handle_solib_event and svr4_so_ops.update_breakpoints.
6036
ced63ec0
GB
60372013-06-04 Gary Benson <gbenson@redhat.com>
6038
6039 * target.h (target_ops): New field
6040 "to_augmented_libraries_svr4_read".
6041 (target_augmented_libraries_svr4_read): New macro.
6042 * target.c (update_current_target): Handle
6043 to_augmented_libraries_svr4_read.
6044 * remote.c (remote_state): New field
6045 "augmented_libraries_svr4_read".
6046 (remote_augmented_libraries_svr4_read_feature): New function.
6047 (remote_protocol_features): Add entry for
6048 "augmented-libraries-svr4-read".
6049 (remote_augmented_libraries_svr4_read): New function.
6050 (init_remote_ops): Initialize
6051 remote_ops.to_augmented_libraries_svr4_read.
6052
7f91dbec
GB
60532013-06-04 Gary Benson <gbenson@redhat.com>
6054
6055 * NEWS: Update.
6056
607ece04
GB
60572013-06-04 Gary Benson <gbenson@redhat.com>
6058
6059 * objfiles.h (inhibit_section_map_updates): New function
6060 declaration.
6061 (resume_section_map_updates): Likewise.
6062 (resume_section_map_updates_cleanup): Likewise.
6063 * objfiles.c (objfile_pspace_info): Removed field
6064 "objfiles_changed_p". New fields "new_objfiles_available",
6065 "section_map_dirty" and "inhibit_updates".
6066 (allocate_objfile): Set new_objfiles_available.
6067 (free_objfile): Set section_map_dirty.
6068 (objfile_relocate1): Likewise.
6069 (in_plt_section): Likewise.
6070 (find_pc_section): Update the conditions under which the
6071 section map will be updated.
6072 (inhibit_section_map_updates): New function.
6073 (resume_section_map_updates): Likewise.
6074 (resume_section_map_updates_cleanup): Likewise.
6075
9ee6a5ac
GB
60762013-06-04 Gary Benson <gbenson@redhat.com>
6077
6078 * probe.h (get_probe_argument_count): New declaration.
6079 (evaluate_probe_argument): Likewise.
6080 * probe.c (get_probe_argument_count): New function.
6081 (evaluate_probe_argument): Likewise.
6082 (probe_safe_evaluate_at_pc): Use the above new functions.
6083
845d4708
AM
60842013-06-04 Alan Modra <amodra@gmail.com>
6085
6086 * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
6087 * rs6000-tdep.c (read_insn): Add frame param, don't assume big-endian.
6088 (ppc_insns_match_pattern): Add frame param. Avoid multiple
6089 target mem reads on optional insns.
6090 * ppc-linux-tdep.c (ppc_skip_trampoline_code): Update
6091 ppc_insns_match_pattern calls.
6092 * ppc64-tdep.c (ppc64_standard_linkage2, ppc64_standard_linkage3):
6093 Add match for power7 thread safety insns, and new order of
6094 std 2,40(1) insn. Correct code shown for _dl_runtime_resolve
6095 invocation in comment, and update rest of comment.
6096 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN,
6097 PPC64_STANDARD_LINKAGE3_LEN): Delete.
6098 (ppc64_standard_linkage2_target): Update insn offsets.
6099 (ppc64_skip_trampoline_code): Use a single insn buffer. Match newer
6100 stubs first. Update calls.
6101
404e278f
YQ
61022013-06-04 Yao Qi <yao@codesourcery.com>
6103
6104 * solib.c (solib_find): Don't need dir separator if path has
6105 drive spec.
6106
f6aea118
JB
61072013-06-03 Joel Brobecker <brobecker@adacore.com>
6108
6109 Revert (indirectly causes a SIGSEGV):
6110 * machoread.c (macho_symfile_read): Assign first cleanup to
6111 'back_to'.
6112
87967e27
YQ
61132013-06-03 Yao Qi <yao@codesourcery.com>
6114
6115 * mi/mi-cmd-var.c (mi_no_values, mi_simple_values): Move to
6116 mi-parse.c. Make them static.
6117 (mi_all_values): Likewise.
6118 (mi_parse_values_option): Move to mi-parse.c. Rename it to
6119 mi_parse_print_values. Make it external.
6120 * mi/mi-cmds.h (mi_no_values, mi_simple_values, mi_all_values):
6121 Remove the declarations.
6122 * mi/mi-parse.c (mi_parse_print_values): Moved from mi-cmd-var.c.
6123 * mi/mi-parse.h (mi_parse_print_values): Declare.
6124 * mi/mi-cmd-stack.c: Include mi-parse.h.
6125 (parse_print_values): Remove
6126 (mi_cmd_stack_list_locals): Call mi_parse_print_values instead
6127 of parse_print_values.
6128 (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Likewise.
6129
3ca73e0c
YQ
61302013-05-31 Pedro Alves <pedro@codesourcery.com>
6131 Yao Qi <yao@codesourcery.com>
6132
6133 * tracepoint.c (all_tracepoint_actions_and_cleanup): Declare.
6134 (encode_actions): Move code to ...
6135 (all_tracepoint_actions_and_cleanup): ... here. New.
6136 (trace_dump_command): Likewise.
6137
4e993a19
TT
61382013-05-30 Tom Tromey <tromey@redhat.com>
6139
6140 * symmisc.c (maintenance_expand_symtabs): Call do_cleanups.
6141
e3b76b4f
TT
61422013-05-30 Tom Tromey <tromey@redhat.com>
6143
6144 * xml-support.c (gdb_xml_create_parser_and_cleanup): Rename from
6145 gdb_xml_create_parser_and_cleanup_1. Return a cleanup. Remove
6146 'old_chain' argument. Add 'parser_result' argument.
6147 (gdb_xml_create_parser_and_cleanup): Remove old version.
6148 (gdb_xml_parse_quick): Update.
6149 (xml_process_xincludes): Update.
6150 * xml-support.h (gdb_xml_create_parser_and_cleanup): Don't
6151 declare.
6152
db26349c
TT
61532013-05-30 Tom Tromey <tromey@redhat.com>
6154
6155 * probe.c (collect_probes): Check arguments for NULL before
6156 calling compile_rx_or_error.
6157 * utils.c (compile_rx_or_error): Require 'rx' to be non-NULL.
6158 Remove NULL return.
6159
77f9e713
TT
61602013-05-30 Tom Tromey <tromey@redhat.com>
6161
6162 * infrun.c (adjust_pc_after_break): Introduce an outer null
6163 cleanup.
6164
45475de7
TT
61652013-05-30 Tom Tromey <tromey@redhat.com>
6166
6167 * mi/mi-cmd-var.c (varobj_update_one): Add an outer null cleanup.
6168
ac5007fd
TT
61692013-05-30 Tom Tromey <tromey@redhat.com>
6170
6171 * cli/cli-script.c (read_command_lines_1): Use a null cleanup
6172 for 'old_chain'. Do not check 'head' before processing
6173 cleanups.
6174
cd82eddc
TT
61752013-05-30 Tom Tromey <tromey@redhat.com>
6176
6177 * mi/mi-cmd-stack.c (list_arg_or_local): Remove
6178 "cleanup_tuple".
6179
57cee33a
TT
61802013-05-30 Tom Tromey <tromey@redhat.com>
6181
6182 * dbxread.c (dbx_read_symtab): Declare 'back_to' in a more
6183 inner scope. Unconditionally call do_cleanups.
6184
795d915c
TT
61852013-05-30 Tom Tromey <tromey@redhat.com>
6186
6187 * source.c (find_and_open_source): Call do_cleanups.
6188
1fc3cf4a
TT
61892013-05-30 Tom Tromey <tromey@redhat.com>
6190
6191 * linux-thread-db.c (thread_db_load_search): Unconditionally
6192 call do_cleanups.
6193
e35ac9bf
TT
61942013-05-30 Tom Tromey <tromey@redhat.com>
6195
6196 * solib-aix.c (solib_aix_bfd_open): Don't use a null cleanup
6197 for 'cleanup'; instead use a later one.
6198
f3300387
TT
61992013-05-30 Tom Tromey <tromey@redhat.com>
6200
6201 * python/py-breakpoint.c (bppy_get_commands): Use
6202 explicit, unconditional return.
6203 * python/py-frame.c (frapy_read_var): Likewise.
6204 * python/python.c (gdbpy_decode_line): Likewise.
6205
c27e16e3
TT
62062013-05-30 Tom Tromey <tromey@redhat.com>
6207
6208 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Call
6209 do_cleanups on all return paths.
6210
5ae85e44
TT
62112013-05-30 Tom Tromey <tromey@redhat.com>
6212
6213 * top.c (execute_command): Discard 'cleanup_if_error' cleanups.
6214
73b8d9da
TT
62152013-05-30 Tom Tromey <tromey@redhat.com>
6216
6217 * stabsread.c (read_struct_type): Call do_cleanups along
6218 all return paths.
6219
7d266584
MR
62202013-05-30 Maciej W. Rozycki <macro@codesourcery.com>
6221
6222 * mips-linux-tdep.c: Adjust formatting throughout.
6223
0f900f54
TT
62242013-05-30 Tom Tromey <tromey@redhat.com>
6225
6226 * mipsread.c (read_alphacoff_dynamic_symtab): Call do_cleanups
6227 along all return paths.
6228
a991ac28
TT
62292013-05-30 Tom Tromey <tromey@redhat.com>
6230
6231 * symfile.c (find_separate_debug_file): Call do_cleanups
6232 along all return paths.
6233
1abaf042
TT
62342013-05-30 Tom Tromey <tromey@redhat.com>
6235
6236 * symtab.c (search_symbols): Introduce a null cleanup for
6237 'retval_chain'.
6238
edefe1da
TT
62392013-05-30 Tom Tromey <tromey@redhat.com>
6240
6241 * python/py-value.c (valpy_binop): Call do_cleanups before
6242 exiting loop.
6243
54f72dcc
TT
62442013-05-30 Tom Tromey <tromey@redhat.com>
6245
6246 * python/py-prettyprint.c (print_children): Remove extra
6247 do_cleanups call.
6248
af1c6971
TT
62492013-05-30 Tom Tromey <tromey@redhat.com>
6250
6251 * python/py-frame.c (frapy_read_var): Call do_cleanups along
6252 all return paths.
6253
b862ce75
TT
62542013-05-30 Tom Tromey <tromey@redhat.com>
6255
6256 * python/py-breakpoint.c (bppy_get_commands): Call do_cleanups
6257 along all return paths.
6258
e12fefc8
TT
62592013-05-30 Tom Tromey <tromey@redhat.com>
6260
6261 * cli/cli-logging.c (set_logging_redirect): Unconditionally
6262 call do_cleanups.
6263
4867f990
TT
62642013-05-30 Tom Tromey <tromey@redhat.com>
6265
6266 * varobj.c (c_value_of_root): Call do_cleanups along all
6267 return paths.
6268
4fd2d6af
TT
62692013-05-30 Tom Tromey <tromey@redhat.com>
6270
6271 * tracepoint.c (trace_dump_command): Unconditionally call
6272 do_cleanups.
6273
752eb8b4
TT
62742013-05-30 Tom Tromey <tromey@redhat.com>
6275
6276 * breakpoint.c (output_thread_groups, parse_cmd_to_aexpr): Call
6277 do_cleanups earlier.
6278
e42d0aa5
TT
62792013-05-30 Tom Tromey <tromey@redhat.com>
6280
6281 * machoread.c (macho_symfile_read): Assign first cleanup to
6282 'back_to'.
6283
4bbc010a
TT
62842013-05-30 Tom Tromey <tromey@redhat.com>
6285
6286 * m32r-rom.c (m32r_load): Call do_cleanups at all returns.
6287
b9635925
TT
62882013-05-30 Tom Tromey <tromey@redhat.com>
6289
6290 * mi/mi-main.c (list_available_thread_groups): Call do_cleanups.
6291
25f43500
TT
62922013-05-30 Tom Tromey <tromey@redhat.com>
6293
6294 * inf-ptrace.c (inf_ptrace_create_inferior): Unconditionally
6295 call discard_cleanups.
6296 (inf_ptrace_attach): Likewise.
6297
d6a2e54a
TT
62982013-05-30 Tom Tromey <tromey@redhat.com>
6299
6300 * remote-mips.c (mips_exit_debug): Call do_cleanups on all
6301 return paths.
6302 (mips_initialize): Likewise.
6303 (common_open): Call do_cleanups.
6304
48be7c1b
TT
63052013-05-30 Tom Tromey <tromey@redhat.com>
6306
6307 * utils.c (internal_vproblem): Call do_cleanups.
6308
e61727ab
TT
63092013-05-30 Tom Tromey <tromey@redhat.com>
6310
6311 * linespec.c (find_linespec_symbols): Don't reassign to 'cleanup'.
6312
b81b921f
TT
63132013-05-30 Tom Tromey <tromey@redhat.com>
6314
6315 * cli/cli-script.c (setup_user_args): Don't return after error.
6316
fe48dfb1
TT
63172013-05-30 Tom Tromey <tromey@redhat.com>
6318
6319 * somread.c (som_symtab_read): Call do_cleanups.
6320
27833de7
TT
63212013-05-30 Tom Tromey <tromey@redhat.com>
6322
6323 * printcmd.c (print_command_1): Unconditionally call do_cleanups.
6324
5b3fca71
TT
63252013-05-30 Tom Tromey <tromey@redhat.com>
6326
6327 * cli/cli-cmds.c (cd_command, alias_command): Call do_cleanups.
6328 * cli/cli-dump.c (restore_binary_file): Call do_cleanups.
6329 * interps.c (interpreter_exec_cmd): Call do_cleanups.
6330 * source.c (show_substitute_path_command): Call do_cleanups.
6331 (unset_substitute_path_command, set_substitute_path_command):
6332 Likewise.
6333 * symfile.c (load_command): Call do_cleanups.
6334
af83e3f8
TT
63352013-05-30 Tom Tromey <tromey@redhat.com>
6336
6337 * contrib/cleanup_check.py: New file.
6338 * contrib/gcc-with-excheck: Add option parsing.
6339
564eac42
JB
63402013-05-30 Joel Brobecker <brobecker@adacore.com>
6341
6342 * windows-nat.c (windows_delete_thread): Add missing space
6343 in cast expression.
6344
47902076
HAQ
63452013-05-30 Hafiz Abid Qadeer <abidh@codesourcery.com>
6346
6347 * inferior.c (top level): Include tilde.h.
6348 (add_inferior_command): Call tilde_expand on the value of 'exec'
6349 argument.
6350
23da373a
YQ
63512013-05-30 Pedro Alves <pedro@codesourcery.com>
6352 Yao Qi <yao@codesourcery.com>
6353
6354 * tracepoint.c (encode_actions_1): Remove parameter 't'.
6355 Caller update.
6356 (encode_actions): Likewise.
6357 * remote.c (remote_download_tracepoint): Caller update.
6358 * tracepoint.h (encode_actions): Update declaration.
6359
a6e6f791
PA
63602013-05-30 Pedro Alves <palves@redhat.com>
6361
6362 * python/python-internal.h (gdb_Py_DECREF): Cast OP to PyObject
6363 pointer.
6364
36d25514
YQ
63652013-05-30 Yao Qi <yao@codesourcery.com>
6366
6367 * remote.c (remote_check_symbols): Remove unused parameter
6368 'objfile'.
6369 Declaration update.
6370 (remote_start_remote, remote_new_objfile): Caller update.
6371
62a813cc
YQ
63722013-05-30 Yao Qi <yao@codesourcery.com>
6373
6374 * mi/mi-cmds.c (mi_cmds): Define MI command
6375 '-exec-arguments' by macro DEF_MI_CMD_CLI_1 instead of
6376 DEF_MI_CMD_CLI.
6377
28439a30
PA
63782013-05-29 Pedro Alves <palves@redhat.com>
6379
6380 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint)
6381 (remote_insert_watchpoint, remote_remove_watchpoint)
6382 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint)
6383 (remote_verify_memory, compare_sections_command)
6384 (remote_search_memory): Set the general process/thread on the
6385 remote side.
6386
6ac1c082
PA
63872013-05-29 Pedro Alves <palves@redhat.com>
6388
6389 * aarch64-tdep.c: Don't include "features/aarch64-without-fpu.c".
6390 (_initialize_aarch64_tdep): Don't call
6391 initialize_tdesc_aarch64_without_fpu.
6392 * features/Makefile (WHICH): Remove reference to
6393 aarch64-without-fpu.
6394 * features/aarch64-without-fpu.c: Delete file.
6395 * regformats/aarch64-without-fpu.dat: Delete file.
6396
a73e3634
YQ
63972013-05-28 Yao Qi <yao@codesourcery.com>
6398
6399 * tracepoint.c (stringify_collection_list): Remove parameter
6400 'string'.
6401 (encode_actions): Caller update. Remove local variables.
6402
c0ea94eb
YQ
64032013-05-24 Yao Qi <yao@codesourcery.com>
6404
6405 * tracepoint.c (TFILE_PID): Remove.
6406 (tfile_open): Don't add thread and inferior.
6407 (tfile_close): Don't set 'inferior_ptid'. Don't call
6408 exit_inferior_silent.
6409 (tfile_thread_alive): Remove.
6410 (init_tfile_ops): Don't set field 'to_thread_alive' of
6411 tfile_ops.
6412
20d7f211
DE
64132013-05-23 Doug Evans <dje@google.com>
6414
6415 * contrib/cc-with-tweaks.sh (-p): Handle no dwo files.
6416
8658d16d
PA
64172013-05-23 Pedro Alves <palves@redhat.com>
6418
6419 * common/filestuff.c [USE_WIN32API]: Define HAVE_SOCKETS.
6420 [HAVE_SYS_SOCKET_H]: Define HAVE_SOCKETS.
6421 (socket_mark_cloexec, gdb_socketpair_cloexec, gdb_socket_cloexec):
6422 Only define if HAVE_SOCKETS is defined.
6423 * configure.ac: Check for sys/socket.h.
6424 * config.in, configure: Regenerate.
6425
21aa081e
PA
64262013-05-23 Pedro Alves <palves@redhat.com>
6427
6428 * dwarf2read.c (create_dwp_hash_table, create_dwo_in_dwp)
6429 (open_and_init_dwp_file): Use %s/pulongest instead of %u for
6430 printing uint32_t variables.
6431
c2d6af84
PA
64322013-05-23 Pedro Alves <palves@redhat.com>
6433
6434 * NEWS: Mention GDBserver range stepping support.
6435
c1e36e3e
PA
64362013-05-23 Yao Qi <yao@codesourcery.com>
6437 Pedro Alves <palves@redhat.com>
6438
6439 * gdbthread.h (struct thread_control_state) <may_range_step>: New
6440 field.
6441 * infcmd.c (step_once, until_next_command): Enable range stepping.
6442 * infrun.c (displaced_step_prepare): Disable range stepping.
6443 (resume): Disable range stepping if stepping over a breakpoint or
6444 we have software watchpoints. If range stepping is enabled,
6445 assert the thread is in the stepping range.
6446 (clear_proceed_status_thread): Clear may_range_step.
6447 (handle_inferior_event): Disable range stepping as soon as we know
6448 the thread that hit the event. Re-enable it whenever we're going
6449 to step with a step range.
6450 * remote.c (struct vCont_action_support) <r>: New field.
6451 (use_range_stepping): New global.
6452 (remote_vcont_probe): Handle 'r' action.
6453 (append_resumption): Append an 'r' action if the thread may range
6454 step.
6455 (show_range_stepping): New function.
6456 (set_range_stepping): New function.
6457 (_initialize_remote): Call add_setshow_boolean_cmd to register the
6458 'set range-stepping' and 'show range-stepping' commands.
6459 * NEWS: Mention range stepping, the new vCont;r action, and the
6460 new "set/show range-stepping" commands.
6461
d458bd84
PA
64622013-05-23 Yao Qi <yao@codesourcery.com>
6463 Pedro Alves <palves@redhat.com>
6464
6465 * remote.c (struct vCont_action_support): New struct.
6466 (struct remote_state) <support_vCont_t>: Remove field.
6467 <vCont_actions_support>: New field.
6468 (remote_vcont_probe, remote_stop_ns): Update.
6469
ce4c476a
PA
64702013-05-23 Yao Qi <yao@codesourcery.com>
6471 Pedro Alves <palves@redhat.com>
6472
6473 * gdbthread.h (pc_in_thread_step_range): New declaration.
6474 * thread.c (pc_in_thread_step_range): New function.
6475 * infrun.c (handle_inferior_event): Use it.
6476
ce70887a
JB
64772013-05-23 Joel Brobecker <brobecker@adacore.com>
6478
6479 * mi/mi-cmd-break.c (mi_argv_to_format): Use xsnprintf instead
6480 of sprintf.
6481
55b87a52
KS
64822013-05-22 Keith Seitz <keiths@redhat.com>
6483
6484 * ada-lang.c (is_known_support_routine): Add explicit free of
6485 'func_name' from find_frame_funname.
6486 (ada_unhandled_exception_name_addr_from_raise): Add cleanups
6487 for func_name from find_frame_funname.
6488 * python/py-frame.c (frapy_name): Add explicit free of
6489 'name' from find_frame_funname.
6490 * stack.c (find_frame_funname): Add comment explaining that
6491 funcp must be freed by the caller.
6492 Return copy of symbol names instead of pointers.
6493 (print_frame): Add a cleanup for 'funname' from
6494 find_frame_funname.
6495 * stack.h (find_frame_funname): Remove "const" from
6496 'funname' parameter.
6497
5f2e6b00
TT
64982013-05-22 Tom Tromey <tromey@redhat.com>
6499
6500 PR c++/15401:
6501 * c-valprint.c (c_value_print): Use value_addr for
6502 references. Convert back to reference type with value_ref.
6503
d85c4847
EZ
65042013-05-22 Eli Zaretskii <eliz@gnu.org>
6505
6506 * windows-nat.c (handle_unload_dll): Don't call solib_add for the
6507 unloaded DLL, it will be done by handle_solib_event. See
6508 http://sourceware.org/ml/gdb-patches/2013-05/msg00713.html for the
6509 details.
6510
54eb231c
PM
65112013-05-22 Phil Muldoon <pmuldoon@redhat.com>
6512
6513 * ui-out.c: Create typedef ui_out_level_p and define vector
6514 operations for that type.
6515 (struct ui_out): Use a vector instead of an array.
6516 (current_level): Return level from a vector.
6517 (push_level): Create a level in a vector.
6518 (pop_level): Delete a level in a vector.
6519 (ui_out_new): Create initial level zero level, and store in a
6520 vector.
6521 (ui_out_destroy): Add vector cleanup.
6522
ac90359c
PA
65232013-05-22 Pedro Alves <palves@redhat.com>
6524
6525 * python/python-internal.h (gdb_Py_DECREF): Tag with
6526 "ARI: editCase function".
6527
6dcc1893
PP
65282013-05-21 Paul Pluzhnikov <ppluzhnikov@google.com>
6529
6530 * solib-svr4.c (svr4_free_so): Protect against NULL dereference.
6531
c8c735b9
PA
65322013-05-21 Pedro Alves <palves@redhat.com>
6533
6534 * python/py-prettyprint.c (apply_val_pretty_printer): Check
6535 whether PRINTER is NULL before installing a Py_DECREF cleanup.
6536 * python/py-utils.c (py_decref): Don't check for NULL before
6537 calling Py_DECREF.
6538
1915daeb
PA
65392013-05-21 Pedro Alves <palves@redhat.com>
6540
6541 * python/py-utils.c (py_decref): Remove extra braces.
6542 (gdb_pymodule_addobject): Remove extra braces.
6543 * python-internal.h (gdb_Py_DECREF): New static inline function.
6544 (Py_DECREF): Redefine as calling gdb_Py_DECREF.
6545
bd9673a4
PW
65462013-05-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6547
6548 * breakpoints.c (detach_breakpoints): Do not
6549 detach breakpoints locations with loc_type bp_loc_other.
6550
ff6009d0
JK
65512013-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6552
6553 Workaround Python 2.6.
6554 * python/py-utils.c (gdb_pymodule_addobject): Wrap Py_DECREF into
6555 a block.
6556
3641da11
JK
65572013-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6558
6559 Code cleanup: constification.
6560 * solib.c (solib_ops): Make return type and ops variable type const.
6561 (set_solib_ops): Make the new_ops parameter and ops variable const.
6562 (solib_find, solib_map_sections, clear_so, free_so, update_solib_list)
6563 (solib_add, solib_keep_data_in_core, clear_solib)
6564 (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
6565 (reload_shared_libraries, solib_global_lookup): Make the ops variable
6566 const.
6567 * solib.h (set_solib_ops): Make the new_ops parameter const.
6568
776af39e
JB
65692013-05-21 Joel Brobecker <brobecker@adacore.com>
6570
6571 * data-directory/Makefile.in (SYSTEM_GDBINIT_SRCDIR): New
6572 variable.
6573 (VPATH): Add SYSTEM_GDBINIT_SRCDIR.
6574 (SYSTEM_GDBINIT_DIR, SYSTEM_GDBINIT_INSTALL_DIR)
6575 (SYSTEM_GDBINIT_FILES): New variables.
6576 (all): Add stamp-system-gdbinit.
6577 (stamp-system-gdbinit): New rule.
6578 (clean-system-gdbinit, install-system-gdbinit)
6579 (uninstall-system-gdbinit): New rules. Make them .PHONY.
6580 (install-only): Add dependency on install-system-gdbinit.
6581 (uninstall): Add dependency on uninstall-system-gdbinit.
6582 (clean): Add dependency on clean-system-gdbinit.
6583 * system-gdbinit/elinos.py: New file.
6584 * system-gdbinit/wrs-linux.py: New file.
6585
1509e573
JB
65862013-05-21 Joel Brobecker <brobecker@adacore.com>
6587
6588 * ada-lang.c (old_renaming_is_invisible): Fix cleanup leak.
6589
c5867ab6
HZ
65902013-05-21 Hui Zhu <hui@codesourcery.com>
6591
6592 * breakpoint.c (dprintf_breakpoint_ops): Remove its static.
6593 * breakpoint.h (dprintf_breakpoint_ops): Add extern.
6594 * mi/mi-cmd-break.c (ctype.h): New include.
6595 (gdb_obstack.h): New include.
6596 (mi_argv_to_format, mi_cmd_break_insert_1): New.
6597 (mi_cmd_break_insert): Call mi_cmd_break_insert_1.
6598 (mi_cmd_dprintf_insert): New.
6599 * mi/mi-cmds.c (mi_cmds): Add "dprintf-insert".
6600 * mi/mi-cmds.h (mi_cmd_dprintf_insert): New extern.
6601
7d38e38f
TT
66022013-05-20 Tom Tromey <tromey@redhat.com>
6603
6604 * python/py-prettyprint.c (search_pp_list): Decref 'attr'.
6605
97b77b39
TT
66062013-05-20 Tom Tromey <tromey@redhat.com>
6607
6608 * python/py-value.c (valpy_get_dynamic_type): Simplify
6609 dynamic_type assignment. Use Py_XINCREF.
6610
53e66479
TT
66112013-05-20 Tom Tromey <tromey@redhat.com>
6612
6613 * python/py-type.c (typy_fields): Unconditionally decref 'r'.
6614
dcf87832
TT
66152013-05-20 Tom Tromey <tromey@redhat.com>
6616
6617 * python/py-frame.c (frapy_older, frapy_newer, gdbpy_newest_frame)
6618 (gdbpy_selected_frame): Move object-construction code
6619 out of TRY_CATCH.
6620
aa36459a
TT
66212013-05-20 Tom Tromey <tromey@redhat.com>
6622
6623 * python/py-arch.c (gdbpy_initialize_arch): Use
6624 gdb_pymodule_addobject.
6625 * python/py-block.c (gdbpy_initialize_blocks): Use
6626 gdb_pymodule_addobject.
6627 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Use
6628 gdb_pymodule_addobject.
6629 * python/py-cmd.c (gdbpy_initialize_breakpoints): Use
6630 gdb_pymodule_addobject.
6631 * python/py-event.c (gdbpy_initialize_event_generic): Use
6632 gdb_pymodule_addobject.
6633 * python/py-evtregistry.c (gdbpy_initialize_eventregistry): Use
6634 gdb_pymodule_addobject.
6635 * python/py-evts.c (add_new_registry): Use
6636 gdb_pymodule_addobject.
6637 (gdbpy_initialize_py_events): Likewise.
6638 * python/py-finishbreakpoint.c
6639 (gdbpy_initialize_finishbreakpoints): Use
6640 gdb_pymodule_addobject.
6641 * python/py-frame.c (gdbpy_initialize_frames): Use
6642 gdb_pymodule_addobject.
6643 * python/py-function.c (gdbpy_initialize_functions): Use
6644 gdb_pymodule_addobject.
6645 * python/py-inferior.c (gdbpy_initialize_inferior): Use
6646 gdb_pymodule_addobject.
6647 * python/py-infthread.c (gdbpy_initialize_thread): Use
6648 gdb_pymodule_addobject.
6649 * python/py-objfile.c (gdbpy_initialize_objfile): Use
6650 gdb_pymodule_addobject.
6651 * python/py-param.c (gdbpy_initialize_parameters): Use
6652 gdb_pymodule_addobject.
6653 * python/py-progspace.c (gdbpy_initialize_pspace): Use
6654 gdb_pymodule_addobject.
6655 * python/py-symbol.c (gdbpy_initialize_symbols): Use
6656 gdb_pymodule_addobject.
6657 * python/py-symtab.c (gdbpy_initialize_symtabs): Use
6658 gdb_pymodule_addobject.
6659 * python/py-type.c (gdbpy_initialize_types): Use
6660 gdb_pymodule_addobject.
6661 * python/py-utils.c (gdb_pymodule_addobject): New function.
6662 * python/py-value.c (gdbpy_initialize_values): Use
6663 gdb_pymodule_addobject.
6664 * python/python-internal.h (gdb_pymodule_addobject): Declare.
6665 * python/python.c (_initialize_python): Use
6666 gdb_pymodule_addobject.
6667
3d4a3c3e
TT
66682013-05-20 Tom Tromey <tromey@redhat.com>
6669
6670 * python/py-cmd.c (cmdpy_completer): Use explicit decref.
6671 * python/py-param.c (get_set_value, get_show_value): Use
6672 explicit decrefs.
6673 * python/python.c (start_type_printers, apply_type_printers):
6674 Use explicit decrefs.
6675
72ff8829
TT
66762013-05-20 Tom Tromey <tromey@redhat.com>
6677
6678 * python/py-evts.c (gdbpy_initialize_py_events): Don't
6679 incref the module.
6680
02146ba5
TT
66812013-05-20 Tom Tromey <tromey@redhat.com>
6682
6683 * python/python.c (gdbpy_run_events): Decref the result
6684 of PyObject_CallObject.
6685
33ee792f
TT
66862013-05-20 Tom Tromey <tromey@redhat.com>
6687
6688 * python/py-symtab.c (set_sal): Use
6689 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION. Return -1 on error.
6690 (symtab_and_line_to_sal_object): Update.
6691
fcb49fc8
TT
66922013-05-20 Tom Tromey <tromey@redhat.com>
6693
6694 * python/py-param.c (compute_enum_values): Decref 'item'.
6695
0646da15
TT
66962013-05-20 Tom Tromey <tromey@redhat.com>
6697
6698 * mi/mi-main.c: Include python-internal.h.
6699 (mi_cmd_list_features): Check gdb_python_initialized.
6700 * python/py-inferior.c (python_on_normal_stop, python_on_resume)
6701 (python_inferior_exit, python_new_objfile, add_thread_object)
6702 (delete_thread_object, py_free_inferior): Check
6703 gdb_python_initialized.
6704 * python/py-prettyprint.c (apply_val_pretty_printer): Check
6705 gdb_python_initialized.
6706 * python/py-type.c (save_objfile_types): Check
6707 gdb_python_initialized.
6708 * python/python-internal.h (gdb_python_initialized): Declare.
6709 * python/python.c (ensure_python_env): Throw exception if
6710 Python not initialized.
6711 (before_prompt_hook, source_python_script_for_objfile)
6712 (start_type_printers, apply_type_printers,
6713 free_type_printers): Check gdb_python_initialized.
6714 * varobj.c (varobj_get_display_hint)
6715 (dynamic_varobj_has_child_method, update_dynamic_varobj_children)
6716 (install_new_value_visualizer, varobj_set_visualizer)
6717 (value_get_print_value): Check gdb_python_initialized.
6718
999633ed
TT
67192013-05-20 Tom Tromey <tromey@redhat.com>
6720
6721 * python/py-arch.c (gdbpy_initialize_arch): Return 'int'.
6722 Check errors.
6723 * python/py-auto-load.c (gdbpy_initialize_auto_load): Return 'int'.
6724 * python/py-block.c (gdbpy_initialize_blocks): Return 'int'.
6725 Check errors.
6726 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Return 'int'.
6727 Check errors.
6728 * python/py-cmd.c (gdbpy_initialize_commands): Return 'int'.
6729 Check errors.
6730 * python/py-event.c (gdbpy_initialize_event): Return 'int'.
6731 Check errors.
6732 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Change generated
6733 init function to return 'int'.
6734 * python/py-evtregistry.c (gdbpy_initialize_eventregistry):
6735 Return 'int'. Check errors.
6736 * python/py-evts.c (gdbpy_initialize_py_events): Return 'int'.
6737 Check errors.
6738 * python/py-finishbreakpoint.c (gdbpy_initialize_finishbreakpoints):
6739 Return 'int'. Check errors.
6740 * python/py-frame.c (gdbpy_initialize_frames): Return 'int'.
6741 Check errors.
6742 * python/py-function.c (gdbpy_initialize_functions): Return 'int'.
6743 Check errors.
6744 * python/py-gdb-readline.c (gdbpy_initialize_gdb_readline):
6745 Check errors.
6746 * python/py-inferior.c (gdbpy_initialize_inferior): Return 'int'.
6747 Check errors.
6748 * python/py-infthread.c (gdbpy_initialize_thread): Return 'int'.
6749 Check errors.
6750 * python/py-lazy-string.c (gdbpy_initialize_lazy_string): Return 'int'.
6751 Check errors.
6752 * python/py-objfile.c (gdbpy_initialize_objfile): Return 'int'.
6753 Check errors.
6754 * python/py-param.c (gdbpy_initialize_parameters): Return 'int'.
6755 Check errors.
6756 * python/py-progspace.c (gdbpy_initialize_pspace): Return 'int'.
6757 Check errors.
6758 * python/py-symbol.c (gdbpy_initialize_symbols): Return 'int'.
6759 Check errors.
6760 * python/py-symtab.c (gdbpy_initialize_symtabs): Return 'int'.
6761 Check errors.
6762 * python/py-type.c (gdbpy_initialize_types): Return 'int'.
6763 Check errors.
6764 * python/py-value.c (gdbpy_initialize_values): Return 'int'.
6765 Check errors.
6766 * python/python-internal.h (gdbpy_initialize_auto_load,
6767 gdbpy_initialize_values, gdbpy_initialize_frames,
6768 gdbpy_initialize_symtabs, gdbpy_initialize_commands,
6769 gdbpy_initialize_symbols, gdbpy_initialize_symtabs,
6770 gdbpy_initialize_blocks, gdbpy_initialize_types,
6771 gdbpy_initialize_functions, gdbpy_initialize_pspace,
6772 gdbpy_initialize_objfile, gdbpy_initialize_breakpoints,
6773 gdbpy_initialize_finishbreakpoints,
6774 gdbpy_initialize_lazy_string, gdbpy_initialize_parameters,
6775 gdbpy_initialize_thread, gdbpy_initialize_inferior,
6776 gdbpy_initialize_eventregistry, gdbpy_initialize_event,
6777 gdbpy_initialize_py_events, gdbpy_initialize_stop_event,
6778 gdbpy_initialize_signal_event,
6779 gdbpy_initialize_breakpoint_event,
6780 gdbpy_initialize_continue_event,
6781 gdbpy_initialize_exited_event, gdbpy_initialize_thread_event,
6782 gdbpy_initialize_new_objfile_event, gdbpy_initialize_arch):
6783 Update. Use CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
6784 * python/python.c (gdb_python_initialized): New global.
6785 (gdbpy_initialize_events): Return 'int'. Check errors.
6786 (_initialize_python): Check errors. Set
6787 gdb_python_initialized.
6788
18868860
TT
67892013-05-20 Tom Tromey <tromey@redhat.com>
6790
6791 * python/py-finishbreakpoint.c (bpfinishpy_out_of_scope):
6792 Decref the reslut of PyObject_CallMethod.
6793
9f4ff0c2
TT
67942013-05-20 Tom Tromey <tromey@redhat.com>
6795
6796 * python/py-event.c (gdbpy_initialize_event_generic): Return
6797 early if PyType_Ready fails.
6798
0d3a2e8a
TT
67992013-05-20 Tom Tromey <tromey@redhat.com>
6800
6801 * python/py-type.c (make_fielditem): Add gdb_assert_not_reached
6802 as 'default' in the switch.
6803
b86af38a
TT
68042013-05-20 Tom Tromey <tromey@redhat.com>
6805
6806 * python/py-inferior.c (gdbpy_inferiors): Update. Hoist
6807 get_addr_from_python calls out of TRY_CATCH.
6808 (infpy_write_memory, infpy_search_memory): Likewise.
6809 * python/py-utils.c (get_addr_from_python): Return negative
6810 value on error. Use TRY_CATCH.
6811 * python/python-internal.h (get_addr_from_python): Use
6812 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
6813
c127ec58
TT
68142013-05-20 Tom Tromey <tromey@redhat.com>
6815
6816 * python/py-event.c (evpy_emit_event): Decref the
6817 result of PyObject_CallFunctionObjArgs.
6818
ba327838
TT
68192013-05-20 Tom Tromey <tromey@redhat.com>
6820
6821 * python/py-cmd.c (cmdpy_completer): Use iterator protocol.
6822 Correctly decref.
6823
d8191432
TT
68242013-05-20 Tom Tromey <tromey@redhat.com>
6825
6826 * python/py-cmd.c (cmdpy_init): Decref 'ds_obj'.
6827
5d153bd1
TT
68282013-05-20 Tom Tromey <tromey@redhat.com>
6829
6830 * python/py-event.h (gdbpy_initialize_event_generic): Use
6831 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
6832 * python/py-evts.c (add_new_registry): Use
6833 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
6834 * python/python-internal.h
6835 (CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION): New macro.
6836
56cc411c
TT
68372013-05-20 Tom Tromey <tromey@redhat.com>
6838
6839 * python/py-arch.c (archpy_disassemble): Update.
6840 * python/py-type.c (typy_get_composite, typy_lookup_typename)
6841 (typy_lookup_type): Use GDB_PY_HANDLE_EXCEPTION.
6842 * python/py-utils.c (gdbpy_convert_exception): Return 'void'.
6843 * python/python-internal.h (CPYCHECKER_SETS_EXCEPTION): New
6844 macro.
6845 (GDB_PY_HANDLE_EXCEPTION): Update.
6846 (gdbpy_convert_exception): Update. Use CPYCHECKER_SETS_EXCEPTION.
6847
8919e174
TT
68482013-05-20 Tom Tromey <tromey@redhat.com>
6849
6850 * python/python-internal.h (events_object_type): Remove.
6851
9b08f225
TT
68522013-05-20 Tom Tromey <tromey@redhat.com>
6853
f5aee5ee
AM
6854 * python/py-event.h (evpy_emit_event): Use
6855 CPYCHECKER_STEALS_REFERENCE_TO_ARG.
6856 * python/python-internal.h (CPYCHECKER_STEALS_REFERENCE_TO_ARG):
6857 New macro.
9b08f225 6858
f04010ff
TT
68592013-05-20 Tom Tromey <tromey@redhat.com>
6860
6861 * py-evtregistry.c (create_event_object): Decref
6862 eventregistry_object if PyList_New fails.
6863
3919fd96
TT
68642013-05-20 Tom Tromey <tromey@redhat.com>
6865
6866 * py-cmd.c (gdbpy_string_to_argv): Check result of
6867 PyList_New.
6868
0430e8cb
TT
68692013-05-20 Tom Tromey <tromey@redhat.com>
6870
6871 * python/python.c (before_prompt_hook): Add cleanup to
6872 decref 'hook'.
6873
764123e4
TT
68742013-05-20 Tom Tromey <tromey@redhat.com>
6875
6876 * python/py-function.c (fnpy_init): Decref result of
6877 PyObject_GetAttrString.
6878
634c58be
TT
68792013-05-20 Tom Tromey <tromey@redhat.com>
6880
6881 * python/py-threadevent.c (get_event_thread): Use
6882 CPYCHECKER_RETURNS_BORROWED_REF.
6883 * python/python-internal.h (CPYCHECKER_RETURNS_BORROWED_REF):
6884 New define.
6885 (pspace_to_pspace_object, objfile_to_objfile_object)
6886 (find_thread_object): Use it.
6887
62eec1a5
TT
68882013-05-20 Tom Tromey <tromey@redhat.com>
6889
6890 * python/py-arch.c (arch_object_type): Use
6891 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6892 * python/py-block.c (block_syms_iterator_object_type):
6893 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6894 * python/py-bpevent.c (breakpoint_event_object_type):
6895 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6896 * python/py-cmd.c (cmdpy_object_type): Use
6897 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6898 * python/py-continueevent.c (continue_event_object_type):
6899 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6900 * python/py-event.h (GDBPY_NEW_EVENT_TYPE):
6901 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6902 * python/py-events.h (thread_event_object_type):
6903 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6904 * python/py-evtregistry.c (eventregistry_object_type): Use
6905 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6906 * python/py-exitedevent.c (exited_event_object_type):
6907 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6908 * python/py-finishbreakpoint.c (finish_breakpoint_object_type):
6909 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6910 * python/py-function.c (fnpy_object_type): Use
6911 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6912 * python/py-inferior.c (inferior_object_type, membuf_object_type):
6913 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6914 * python/py-infthread.c (thread_object_type): Use
6915 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6916 * python/py-lazy-string.c (lazy_string_object_type):
6917 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6918 * python/py-newobjfileevent.c (new_objfile_event_object_type):
6919 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6920 * python/py-objfile.c (objfile_object_type): Use
6921 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6922 * python/py-param.c (parmpy_object_type):
6923 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6924 * python/py-progspace.c (pspace_object_type):
6925 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6926 * python/py-signalevent.c (signal_event_object_type):
6927 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6928 * python/py-symtab.c (symtab_object_type, sal_object_type): Use
6929 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6930 * python/py-type.c (type_object_type, field_object_type)
6931 (type_iterator_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6932 * python/py-internal.h (CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF): New
6933 define.
6934 (value_object_type, block_object_type, symbol_object_type)
6935 (event_object_type, stop_event_object_type, breakpoint_object_type)
6936 (frame_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6937
81ea8796
AT
69382013-05-20 Andreas Tobler <andreas@fgznet.ch>
6939
6940 * Makefile.in (ALL_TARGET_OBS): Add ppcfbsd-tdep.o.
6941 (ALLDEPFILES): Add ppcfbsd-nat.c and ppcfbsd-tdep.c.
6942
a2ce51a0
DE
69432013-05-20 Doug Evans <dje@google.com>
6944
6945 When reading CU, stay in DWO. Be more tolerent of bad debug info.
6946 For Fission.
6947 * dwarf2read.c (struct dwarf2_per_cu_data): New member
6948 reading_dwo_directly.
6949 (struct signatured_type): New member dwo_unit.
6950 (struct die_reader_specs): New member comp_dir.
6951 (create_signatured_type_table_from_index): Use malloc for
6952 all_type_units instead of objfile's obstack.
6953 (create_all_type_units): Ditto.
6954 (fill_in_sig_entry_from_dwo_entry): New function.
6955 (add_type_unit): New function.
6956 (lookup_dwo_signatured_type): New function.
6957 (lookup_dwp_signatured_type): New function.
6958 (lookup_signatured_type): New arg cu. All callers updated.
6959 (init_cu_die_reader): Initialize comp_dir.
6960 (read_cutu_die_from_dwo): New arg stub_comp_dir. All callers updated.
6961 Change assert of matching type signatures to call error on mismatch.
6962 (lookup_dwo_unit): Add assert.
6963 (init_tu_and_read_dwo_dies): New function.
6964 (init_cutu_and_read_dies): Call it.
6965 (build_type_unit_groups): Handle case of no type unit groups created.
6966 (hash_dwo_file, eq_dwo_file): Handle missing comp_dir.
6967 (lookup_dwo_cutu): Tweak complaint.
6968 (dwarf2_free_abbrev_table): Check for NULL abbrev_table.
6969 (dwarf2_per_objfile_free): Free all_type_units.
6970
a25cd31f
JB
69712013-05-20 Joel Brobecker <brobecker@adacore.com>
6972
6973 * windows-nat.c (handle_unload_dll): Add missing empty line.
6974
4d804846
JB
69752013-05-20 Joel Brobecker <brobecker@adacore.com>
6976
6977 * dwarf2read.c (prototyped_function_p): New function.
6978 (read_subroutine_type): Use it.
6979
1c432e72
JB
69802013-05-20 Joel Brobecker <brobecker@adacore.com>
6981
6982 * rs6000-aix-tdep.c: De-indent some example code provided
6983 as a comment.
6984
4feebbdd
EBM
69852013-05-17 Edjunior Machado <emachado@linux.vnet.ibm.com>
6986
6987 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Check if the
6988 region is ok for a hardware watchpoint using the new ptrace interface
6989 on Power servers.
6990
7d0c9981
DE
69912013-05-17 Doug Evans <dje@google.com>
6992
6993 * NEWS: Mention new maintenance commands check-symtabs, and
6994 expand-symtabs, and renamed check-psymtabs.
6995 * psymtab.c (maintenance_check_psymtabs): Renamed from
6996 maintenance_check_symtabs. Only process already-expanded symbol
6997 tables.
6998 (_initialize_psymtab): Update.
6999 * symmisc.c (maintenance_check_symtabs): New function.
7000 (maintenance_expand_name_matcher): New function
7001 (maintenance_expand_file_matcher): New function
7002 (maintenance_expand_symtabs): New function.
7003 (_initialize_symmisc): Add "mt check-symtabs" and "mt expand-symtabs"
7004 commands.
7005
6cbc7c3d
TT
70062013-05-17 Tom Tromey <tromey@redhat.com>
7007
7008 * python/py-inferior.c (infpy_read_memory): Don't call
7009 PyErr_SetString if PyObject_New fails.
7010 * python/py-frame.c (frame_info_to_frame_object): Don't call
7011 PyErr_SetString if PyObject_New fails.
7012
a48b32c0
L
70132013-05-17 Pavel Chupin <pavel.v.chupin@intel.com>
7014
7015 * acinclude.m4: Add check for dlopen in libdl.
7016 * configure.ac: Ditto.
7017 * configure: Regenerate.
7018
3de661e6
PM
70192013-05-17 Phil Muldoon <pmuldoon@redhat.com>
7020
7021 * frame.c (frame_stash): Convert to htab.
7022 (frame_addr_hash): New function.
7023 (frame_addr_hash_eq): New function.
7024 (frame_stash_create): Convert function to create
7025 a hash table.
7026 (frame_stash_add): Convert function to add an entry to a hash
7027 table.
7028 (frame_stash_find): Convert function to search the hash table.
7029 (frame_stash_invalidate): Convert function to empty the hash
7030 table.
7031 (get_frame_id): Only add to stash if a frame_id is created.
7032 (_initialize_frame): Call frame_stash_create.
7033
bb4168a9 70342013-05-16 Yue Lu <hacklu.newborn@gmail.com> (tiny change)
036c3acb
TS
7035
7036 * configure.ac: Ensure MIG is available when building for GNU Hurd
7037 hosts.
7038 * configure: Regenerate.
7039
d1be3247
JB
70402013-05-16 Joel Brobecker <brobecker@adacore.com>
7041
7042 * dwarf2read.c (set_cu_language): Add DW_LANG_UPC handling.
7043
b8fea896
JB
70442013-05-16 Joel Brobecker <brobecker@adacore.com>
7045
7046 * ada-lang.c (ada_make_symbol_completion_list): Make sure
7047 all cleanups are done before returning from this function.
7048
af880d85
JB
70492013-05-15 Joel Brobecker <brobecker@adacore.com>
7050
7051 * utils.h: #include "exceptions.h".
7052 (enum errors): Remove partial declaration.
7053
356a5233
JB
70542013-05-15 Joel Brobecker <brobecker@adacore.com>
7055
7056 * gdbarch.sh (core_xfer_shared_libraries_aix): New method.
7057 * gdbarch.h, gdbarch.c: Regenerate.
7058 * corelow.c (core_xfer_partial): Add TARGET_OBJECT_LIBRARIES_AIX
7059 handling.
7060
7061 * rs6000-aix-tdep.h: New file.
7062 * Makefile.in (HFILES_NO_SRCDIR): Add rs6000-aix-tdep.h.
7063 * rs6000-aix-tdep.c: Include "rs6000-aix-tdep.h" and
7064 "xml-utils.h".
7065 (struct field_info, struct ld_info_desc): New types.
7066 (ld_info32_desc, ld_info64_desc): New static constants.
7067 (struct ld_info): New type.
7068 (rs6000_aix_extract_ld_info): New function.
7069 (rs6000_aix_shared_library_to_xml): Likewise.
7070 (rs6000_aix_ld_info_to_xml): Likewise.
7071 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
7072 (rs6000_aix_init_osabi): Add call to
7073 set_gdbarch_core_xfer_shared_libraries_aix.
7074 * rs6000-nat.c: Add "rs6000-aix-tdep.h" include.
7075 Remove "xml-utils.h" include.
7076 (LdInfo): Delete typedef.
7077 (ARCH64_DECL, LDI_FIELD, LDI_NEXT, LDI_FD, LDI_FILENAME):
7078 Delete macros.
7079 (rs6000_ptrace_ldinfo): Change return type to gdb_byte *.
7080 Adjust code accordingly.
7081 (rs6000_core_ldinfo): Delete, folded into
7082 rs6000_aix_core_xfer_shared_libraries_aix.
7083 (rs6000_xfer_shared_library): Delete.
7084 (rs6000_xfer_shared_libraries): Reimplement.
7085
742ce053
MM
70862013-05-15 Markus Metzger <markus.t.metzger@intel.com>
7087
7088 * record.c (record_goto_cmdlist): New.
7089 (cmd_record_goto): Split into this ...
7090 (cmd_record_goto_begin): ... this
7091 (cmd_record_goto_end): ... and this.
7092 (_initialize_record): Change "record goto" to prefix command.
7093 Add commands for "record goto begin" and "record goto end".
7094 Add an alias for "record goto start" to "record goto begin".
7095
e93ba630
JK
70962013-05-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7097
7098 * linespec.c (convert_linespec_to_sals): New comment for
7099 SOURCE_FILENAME assignment.
7100
5821aace
JK
71012013-05-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7102
7103 * cleanups.c (restore_my_cleanups): Replace gdb_assert by
7104 internal_warning.
7105
a1b8c4cc
TT
71062013-05-14 Tom Tromey <tromey@redhat.com>
7107
7108 * eval.c (parse_and_eval_long): Make 'exp' const.
7109 * value.h (parse_and_eval_long): Update.
7110
23b3a2c3
TT
71112013-05-14 Tom Tromey <tromey@redhat.com>
7112
7113 * ui-file.c (gdb_fopen): Make arguments const.
7114 * ui-file.h (gdb_fopen): Make arguments const.
7115
ca623f82
TT
71162013-05-14 Tom Tromey <tromey@redhat.com>
7117
7118 * remote.c (remote_set_trace_notes): Make arguments const.
7119 * target.c (update_current_target): Update cast.
7120 * target.h (to_set_trace_notes): Make arguments const.
7121
503ebb2c
TT
71222013-05-14 Tom Tromey <tromey@redhat.com>
7123
7124 * go32-nat.c (go32_terminal_info): Make 'args' const.
7125 * inferior.h (child_terminal_info): Update.
7126 * inflow.c (child_terminal_info): Make 'args' const.
7127 * target.c (default_terminal_info): Make 'args' const.
7128 (debug_to_terminal_save_ours): Likewise.
7129 * target.h (struct target_ops) <to_terminal_info>: Make argument
7130 const.
7131
85e1311a
TT
71322013-05-13 Tom Tromey <tromey@redhat.com>
7133
7134 * gcore.c (create_gcore_bfd): Make 'filename' const.
7135 * gcore.h (create_gcore_bfd): Make 'filename' const.
7136 * record-full.c (record_full_save): Make 'recfilename' const.
7137 * target.c (target_save_record): Make 'filename' const.
7138 * target.h (struct target_ops) <to_save_record>: Make 'filename'
7139 const.
7140 (target_save_record): Likewise.
7141
d62bfeaf
TT
71422013-05-13 Tom Tromey <tromey@redhat.com>
7143
f5aee5ee 7144 PR gdb/15338:
d62bfeaf
TT
7145 * dwarf2read.c (dwarf2_record_block_ranges): Ensure that the
7146 ranges section has been read.
7147
ac1ca910
TT
71482013-05-13 Tom Tromey <tromey@redhat.com>
7149
7150 PR exp/15364:
7151 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
7152 STRUCTOP_PTR>: Return a not_lval value for
7153 EVAL_AVOID_SIDE_EFFECTS.
7154 * opencl-lang.c (evaluate_subexp_opencl): Return a not_lval value
7155 for EVAL_AVOID_SIDE_EFFECTS.
7156
36d1c68c
JB
71572013-05-13 Joel Brobecker <brobecker@adacore.com>
7158
7159 * rs6000-aix-tdep.c (rs6000_push_dummy_call): Convert
7160 floating point registers to register type before storing
7161 value.
7162 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call):
7163 Likewise.
7164
21ff4686
TT
71652013-05-10 Joel Brobecker <brobecker@adacore.com>
7166 Tom Tromey <tromey@redhat.com>
7167
7168 * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
7169 New functions.
7170 * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
7171 Declare.
7172 * darwin-nat.c (darwin_pre_ptrace): Use mark_fd_no_cloexec.
7173 (darwin_ptrace_him): Use unmark_fd_no_cloexec.
7174 * inf-ttrace.c (do_cleanup_pfds): Use unmark_fd_no_cloexec.
7175 (inf_ttrace_prepare): Use mark_fd_no_cloexec.
7176
d3685d60
TT
71772013-05-10 Freddie Chopin <freddie_chopin@op.pl>
7178 Tom Tromey <tromey@redhat.com>
7179
7180 PR build/15414:
7181 * configure: Rebuild.
7182 * configure.ac (build_warnings): Do not use -Wformat-nonliteral
7183 with -Wno-format.
7184
eb9fe518
PA
71852013-05-10 Pedro Alves <palves@redhat.com>
7186
7187 * remote.c (_initialize_remote): Fix spelling of
7188 qXfer:traceframe-info:read packet in packet config command.
7189
9779ab84
PA
71902013-05-10 David Taylor <dtaylor@emc.com>
7191
7192 PR remote/15455
7193
7194 * remote.c (remote_trace_set_readonly_regions): Do not overwrite
7195 "QTro" at start of packet.
7196
060cfbef
JB
71972013-05-10 Joel Brobecker <brobecker@adacore.com>
7198
7199 * solib-aix.c (solib_aix_relocate_section_addresses):
7200 For the .bss section action, apply the same offset as
7201 the .data section.
7202
ab1c4e88
JB
72032013-05-10 Joel Brobecker <brobecker@adacore.com>
7204
7205 * solib-aix.c (solib_aix_relocate_section_addresses):
7206 Remove FIXME comment.
7207
c1357578
JB
72082013-05-10 Joel Brobecker <brobecker@adacore.com>
7209
7210 PR tdep/15420:
7211 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
7212 New functions, directly copied from sparc-sol-thread.c.
7213 * sparc-sol-thread.c: Delete.
7214 * configure.ac: Remove code handling sparc-solaris-thread.c.
7215 * configure: Regenerate.
7216
1e611234
PM
72172013-05-10 Phil Muldoon <pmuldoon@redhat.com>
7218
7219 * stack.c (backtrace_command_1): Add "no-filters", and Python frame
7220 filter logic.
7221 (backtrace_command): Add "no-filters" option parsing.
7222 (_initialize_stack): Alter help to reflect "no-filters" option.
7223 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-framefilter.o
7224 (SUBDIR_PYTHON_SRCS): Add py-framefilter.c
7225 (py-frame.o): Add target
7226 * data-directory/Makefile.in (PYTHON_DIR): Add Python frame
7227 filter files.
7228 * python/python.h: Add new frame filter constants, and flag enum.
7229 (apply_frame_filter): Add definition.
7230 * python/python.c (apply_frame_filter): New non-Python
7231 enabled function.
7232 * python/py-utils.c (py_xdecref): New function.
7233 (make_cleanup_py_xdecref): Ditto.
7234 * python/py-objfile.c: Declare frame_filters dictionary.
7235 (objfpy_dealloc): Add frame_filters dealloc.
7236 (objfpy_new): Initialize frame_filters attribute.
7237 (objfile_to_objfile_object): Ditto.
7238 (objfpy_get_frame_filters): New function.
7239 (objfpy_set_frame_filters): New function.
7240 * python/py-progspace.c: Declare frame_filters dictionary.
7241 (pspy_dealloc): Add frame_filters dealloc.
7242 (pspy_new): Initialize frame_filters attribute.
7243 (pspacee_to_pspace_object): Ditto.
7244 (pspy_get_frame_filters): New function.
7245 (pspy_set_frame_filters): New function.
7246 * python/py-framefilter.c: New file.
7247 * python/lib/gdb/command/frame_filters.py: New file.
7248 * python/lib/gdb/frames.py: New file.
7249 * python/lib/gdb/__init__.py: Initialize global frame_filters
7250 dictionary
7251 * python/lib/gdb/FrameDecorator.py: New file.
7252 * python/lib/gdb/FrameIterator.py: New file.
7253 * mi/mi-cmds.c (mi_cmds): Add frame filters command.
7254 * mi/mi-cmds.h: Declare.
7255 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Add
7256 --no-frame-filter logic, and Python frame filter logic.
7257 (stack_enable_frame_filters): New function.
7258 (parse_no_frame_option): Ditto.
7259 (mi_cmd_stack_list_frames): Add --no-frame-filter and Python frame
7260 filter logic.
7261 (mi_cmd_stack_list_locals): Ditto.
7262 (mi_cmd_stack_list_args): Ditto.
7263 (mi_cmd_stack_list_variables): Ditto.
7264 * NEWS: Add frame filter note.
7265
2cb9c859
DE
72662013-05-09 Doug Evans <dje@google.com>
7267
6bf667bb
DE
7268 * symfile.c (syms_from_objfile_1): Delete args offsets, num_offsets.
7269 All callers updated.
7270 (syms_from_objfile): Ditto. Make static.
7271 (symbol_file_add_with_addrs): Renamed from
7272 symbol_file_add_with_addrs_or_offsets. Delete args offsets,
7273 num_offsets. All callers updated.
7274 * symfile.h (syms_from_objfile): Delete.
7275
2cb9c859
DE
7276 * symfile.c (decrement_reading_symtab): Add assert.
7277 (increment_reading_symtab): Ditto.
7278
40aea477
JB
72792013-05-09 Joel Brobecker <brobecker@adacore.com>
7280
7281 * source.c (forward_search_command): Replace call to getc
7282 by call to fgetc.
7283 (reverse_search_command): Likewise.
7284
680d1742
DE
72852013-05-08 Doug Evans <dje@google.com>
7286
7287 * psymtab.c (expand_symtabs_matching_via_partial): Fix file name
7288 matching test.
7289
17e760ae
JB
72902013-05-08 Joel Brobecker <brobecker@adacore.com>
7291
7292 * sol-thread.c (info_cb): Factorize the code a little.
7293
c0f5f490
JB
72942013-05-08 Joel Brobecker <brobecker@adacore.com>
7295
7296 * sol-thread.c (info_cb): Rework the output of the "maintenance
7297 info sol-threads" command a bit.
7298
5d74e061
JB
72992013-05-08 Joel Brobecker <brobecker@adacore.com>
7300
7301 * sol-thread.c (info_cb) [ti.ti_state == TD_THR_SLEEP]:
7302 Replace ti.ti_startfunc by ti.ti_pc.
7303
814a3ff7
JB
73042013-05-08 Joel Brobecker <brobecker@adacore.com>
7305
7306 * solib-aix.c (solib_aix_free_library_list): New function
7307 for the case where HAVE_LIBEXPAT is not defined.
7308
58ce7251
SDJ
73092013-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
7310
7311 PR breakpoints/15413:
7312 * breakpoint.c (condition_completer): Simplify the code to
7313 disconsider multiple locations of breakpoints when completing the
7314 "condition" command.
7315
be8b1ea6
PM
73162013-05-07 Pierre Muller <muller@sourceware.org>
7317
7318 * common/linux-btrace.c: ARI fix: Include "gdb_wait.h"
7319 instead of <sys/wait.h>.
7320
1e52bda6
PM
73212013-05-07 Pierre Muller <muller@sourceware.org>
7322
7323 * nios2-tdep.c (nios2_dwarf_reg_to_regnum): ARI fix: remove
7324 trailing new line from warning message.
7325
27fd0c6b
PM
73262013-05-07 Pierre Muller <muller@sourceware.org>
7327
7328 * contrib/ari/gdb_ari.sh (SOLIB_ADD, SOLIB_CREATE_INFERIOR_HOOK)
7329 (PC_SOLIB): Change type from ari_deprecate to ari_regression.
7330
e228ac87
JB
73312013-05-07 Joel Brobecker <brobecker@adacore.com>
7332
7333 * rs6000-nat.c (rs6000_core_ldinfo): Remove '\n' at end of
7334 error message (ARI fix).
7335
73362013-05-07 Joel Brobecker <brobecker@adacore.com>
7337
7338 * features/library-list-aix.dtd: Replace library-list by
7339 library-list-aix.
7340 * rs6000-nat.c: Replace library-list by library-list-aix
7341 throughout.
7342 * solib-aix.c: Likewise.
7343
73442013-05-07 Joel Brobecker <brobecker@adacore.com>
7345
7346 * target.h (enum target_object) [TARGET_OBJECT_LIBRARIES_AIX]:
7347 Renames TARGET_OBJECT_AIX_LIBRARIES.
7348 * rs6000-nat.c: Replace TARGET_OBJECT_AIX_LIBRARIES with
7349 TARGET_OBJECT_LIBRARIES_AIX throughout.
7350 * solib-aix.c: Likwise.
7351
26a4dda9
YQ
73522013-05-07 Yao Qi <yao@codesourcery.com>
7353
7354 * solib-dsbt.c (struct dsbt_info) <enable_break2_done>: Remove.
7355 (get_dsbt_info, enable_break, dsbt_clear_solib): Update.
7356
3582629f
YQ
73572013-05-07 Yao Qi <yao@codesourcery.com>
7358
7359 * solib-dsbt.c (enable_break): Declare.
7360 (dsbt_current_sos): Remove call to enable_break2.
7361 (enable_break2): Rename to enable_break. Set solib breakpoint
7362 on '_dl_debug_state'.
7363 (enable_break): Remove.
7364
aacbb8a5
LM
73652013-05-07 Luis Machado <lgustavo@codesourcery.com>
7366
7367 * ppc-linux-nat.c (ppc_linux_new_thread): Clear the new thread's
7368 debug state prior to replicating existing hardware watchpoints or
7369 breakpoints.
7370
0c013353
JK
73712013-05-07 Jan Kratochvil <jan.kratochvil@redhat.com>
7372
7373 * gcore.c (gcore_create_callback): Ignore sections with
7374 separate_debug_objfile_backlink != NULL.
7375
a1217d97
SL
73762013-05-06 Sandra Loosemore <sandra@codesourcery.com>
7377 Andrew Jenner <andrew@codesourcery.com>
7378 Chung-Lin Tang <cltang@codesourcery.com>
7379 Julian Brown <julian@codesourcery.com>
7380
7381 Based on the nios2-elf port from Altera Corporation.
7382
7383 * Makefile.in (ALL_TARGET_OBS): Add nios2-tdep.o and
7384 nios2-linux-tdep.o.
7385 (HFILES_NO_SRCDIR): Add nios2-tdep.h.
7386 (ALLDEPFILES): Add nios2-tdep.c and nios2-linux-tdep.c.
7387 * configure.tgt: Add nios2*-*-linux* and nios2*-*-* targets.
7388 * nios2-tdep.h: New.
7389 * nios2-tdep.c: New.
7390 * nios2-linux-tdep.c: New.
7391 * features/Makefile (WHICH): Add nios2-linux.
7392 (nios2-linux-expedite): Set.
7393 * features/nios2-cpu.xml: New.
7394 * features/nios2.xml: New.
7395 * features/nios2-linux.xml: New.
7396 * features/nios2.c: New (autogenerated).
7397 * features/nios2-linux.c: New (autogenerated).
7398 * regformats/nios2-linux.dat: New (autogenerated).
7399 * NEWS (Changes since GDB 7.6): Add new Nios II targets
7400 and commands.
7401
0892cb63
DE
74022013-05-06 Doug Evans <dje@google.com>
7403
3b7bacac
DE
7404 * symfile.c: Whitespace cleanup.
7405
0892cb63
DE
7406 * solist.h (struct target_so_ops): New member clear_so.
7407 * solib-svr4.c (svr4_clear_so): New function.
7408 (_initialize_svr4_solib): Set svr4_so_ops.clear_so.
7409 * solib.c (clear_so): Renamed from free_so_symbols.
7410 All callers updated. Call target clear_so if it exists.
7411
40501e00
TT
74122013-05-06 Tom Tromey <tromey@redhat.com>
7413
7414 * ada-lang.c (ada_value_primitive_packed_val): Don't
7415 call value_incref.
7416 * value.c (set_value_parent): Incref the new parent and decref
7417 the old parent.
7418 (value_copy, value_primitive_field): Use set_value_parent.
7419
b6807d98
TT
74202013-05-06 Tom Tromey <tromey@redhat.com>
7421
7422 * dwarf2loc.c (invalid_synthetic_pointer): Move earlier.
7423 (indirect_pieced_value): Call dwarf2_fetch_constant_bytes
7424 if needed.
7425 * dwarf2loc.h (dwarf2_fetch_constant_bytes): Declare.
7426 * dwarf2read.c (write_constant_as_bytes)
7427 (dwarf2_fetch_constant_bytes): New functions.
7428
3aef2284
TT
74292013-05-06 Tom Tromey <tromey@redhat.com>
7430
7431 * dwarf2read.c (dwarf2_const_value_data): Remove unused
7432 parameters.
7433 (dwarf2_const_value_attr): Update.
7434
66f65e2b
TT
74352013-05-06 Tom Tromey <tromey@redhat.com>
7436
7437 * somread.c (som_symfile_offsets): Add 'const' to addrs.
7438 * machoread.c (macho_symfile_offsets): Add 'const' to addrs.
7439 * xcoffread.c (xcoff_symfile_offsets): Add 'const' to addrs.
7440 Remove declaration.
7441
7919a973
TT
74422013-05-06 Tom Tromey <tromey@redhat.com>
7443
7444 * dwarf2read.c (dwarf2_const_value_attr): Use 'obstack', not
7445 objfile's obstack.
7446
a7bfba49
DE
74472013-05-06 Doug Evans <dje@google.com>
7448
3189cb12
DE
7449 * dbxread.c (process_one_symbol): Constify section_offsets parameter.
7450 * stabsread.h (process_one_symbol): Update declaration.
7451 * dwarf2read.c (dw2_relocate): Constify new_offsets, delta parameters.
7452 * elfread.c (elf_symfile_relocate_probe): Ditto.
7453 * psymtab.c (relocate_psymtabs): Ditto.
7454 * objfiles.c (objfile_relocate1): Constify new_offsets parameter.
7455 (objfile_relocate): Ditto.
7456 * objfiles.h (objfile_relocate): Update declaration.
7457 * symfile.c (relative_addr_info_to_section_offsets): Constify
7458 addrs parameter.
7459 (default_symfile_offsets): Ditto.
7460 (syms_from_objfile_1): Constify offsets parameter.
7461 (syms_from_objfile): Ditto.
7462 (symbol_file_add_with_addrs_or_offsets): Ditto.
7463 (symfile_map_offsets_to_segments): Constify data parameter.
7464 * symfile.h (struct quick_symbol_functions): Constify new_offsets,
7465 delta parameters of member relocate.
7466 (struct sym_probe_fns): Constify new_offsets,
7467 delta parameters of member sym_relocate_probe.
7468 (struct sym_fns): Constify section_addr_info parameter of member
7469 sym_offsets.
7470 (relative_addr_info_to_section_offsets): Update declaration.
7471 (default_symfile_offsets): Ditto.
7472 (syms_from_objfile): Ditto.
7473 (symfile_map_offsets_to_segments): Ditto.
7474
a7bfba49
DE
7475 * symfile.c (syms_from_objfile_1): Use correct section count when
7476 objfile->sf == NULL.
7477
5f8e0b8f
MF
74782013-05-06 Mike Frysinger <vapier@gentoo.org>
7479
7480 * common/linux-btrace.c (intel_supports_btrace): Fix indentation.
7481
ea52d893
DE
74822013-05-06 Doug Evans <dje@google.com>
7483
7484 * psympriv.h (struct partial_symtab): Augment comment for member
7485 section_offsets.
7486
4d1eb6b4
JB
74872013-05-06 Joel Brobecker <brobecker@adacore.com>
7488
7489 Reimplement shared library support on ppc-aix...
7490 * target.h (TARGET_OBJECT_AIX_LIBRARIES): New target_object enum.
7491 * features/library-list-aix.dtd: New file.
7492 * solib-aix.h, solib-aix.c: New file.
7493 * rs6000-aix-tdep.c: #include "solib.h" and "solib-aix.h".
7494 (rs6000_find_toc_address_hook): Delete.
7495 (rs6000_push_dummy_call): Rewrite code setting the TOC value.
7496 (rs6000_aix_init_osabi): Register solib_aix_so_ops.
7497 * rs6000-nat.c: Remove "xcoffsolib.h" include. Include
7498 "xml-utils.h".
7499 (map_vmap, vmap_exec, vmap_ldinfo, add_vmap, objfile_symbol_add)
7500 (vmap_symtab, fixup_breakpoints): Delete.
7501 (rs6000_xfer_shared_libraries): New function.
7502 (rs6000_xfer_partial): Add TARGET_OBJECT_AIX_LIBRARIES handling.
7503 (vmap_secs, bss_data_overlap, vmap_add_symbols): Delete.
7504 (xcoff_relocate_symtab, xcoff_relocate_core): Delete.
7505 (rs6000_ptrace_ldinfo, rs6000_core_ldinfo)
7506 (rs6000_xfer_shared_library): New function.
7507 (find_toc_address): Delete.
7508 (_initialize_rs6000_nat): Do not set rs6000_find_toc_address_hook.
7509 * rs6000-tdep.h (rs6000_find_toc_address_hook): Remove.
7510 * xcoffread.c (record_minimal_symbol): Reloate symbol address
7511 before creating minimal symbol. Adjust function description
7512 accordingly.
7513 (scan_xcoff_symtab): Replace call to
7514 prim_record_minimal_symbol_and_info by call to
7515 record_minimal_symbol.
7516 (xcoff_symfile_offsets): Reimplement mostly as a wrapper
7517 around default_symfile_offsets.
7518 * configure.tgt: Add solib-aix.o to gdb_target_obs for
7519 powerpc-aix targets.
7520 * config/rs6000/nm-rs6000.h: Delete.
7521 * config/powerpc/aix.mh (NAT_FILE): Delete.
7522 (NATDEPFILES): Remove xcoffsolib.o.
7523 * Makefile.in (XMLFILES): Add library-list-aix.dtd.
7524 (ALL_TARGET_OBS): Add solib-aix.o.
7525 (HFILES_NO_SRCDIR): Remove xcoffsolib.h and
7526 config/rs6000/nm-rs6000.h. Add solib-aix.h.
7527 (ALLDEPFILES): Add solib-aix.c. Remove xcoffsolib.c.
7528 * xcoffsolib.h, xcoffsolib.c: Delete.
7529
7530 * solib.c (reload_shared_libraries): Remove reference to
7531 SOLIB_CREATE_INFERIOR_HOOK.
7532 * breakpoint.c (handle_solib_event): Remove reference to SOLIB_ADD.
7533 (disable_breakpoints_in_shlibs): Remove reference to PC_SOLIB.
7534 (momentary_bkpt_re_set): Replace SOLIB_ADD by solib_add in
7535 comment.
7536 * corelow.c (deprecated_core_resize_section_table): Delete.
7537 * exec.c: Remove include of xcoffsolib.h".
7538 (map_vmap, vmap): Delete.
7539 (exec_close_1): Remove references to vmap.
7540 (exec_file_attach): Remove vmap handling code, and reference
7541 to DEPRECATED_IBM6000_TARGET.
7542 (bfdsec_to_vmap): Delete.
7543 (exec_files_info): Remove block of code handling VMAP.
7544 * infcmd.c (post_create_inferior): Remove reference to
7545 SOLIB_CREATE_INFERIOR_HOOK and SOLIB_ADD.
7546 * infrun.c (follow_exec): Remove reference to
7547 SOLIB_CREATE_INFERIOR_HOOK.
7548 * stack.c (print_frame): Remove reference to PC_SOLIB.
7549 * solib-dsbt.c (dsbt_current_sos): Adjust comment.
7550 (dsbt_relocate_main_executable): Likewise.
7551 * solib-frv.c (frv_current_sos): Likewise.
7552
0c4f667c
JB
75532013-05-06 Joel Brobecker <brobecker@adacore.com>
7554
7555 * sol-thread.c (rw_common): Cast BUF to "gdb_byte *" in calls
7556 to target_write_memory and target_read_memory.
7557
726ce67c
JB
75582013-05-06 Joel Brobecker <brobecker@adacore.com>
7559
7560 * darwin-nat.c (darwin_setup_fake_stop_event): New function.
7561 (darwin_attach): Adjust using darwin_setup_fake_stop_event.
7562
c8c9911f
JB
75632013-05-06 Joel Brobecker <brobecker@adacore.com>
7564
7565 * darwin-nat.c: Replace all "%x" instances in format strings
7566 into "0x%x" throughout.
7567
fda184b6
JB
75682013-05-06 Joel Brobecker <brobecker@adacore.com>
7569
7570 * darwin-nat.c (darwin_mourn_inferior): Replace call to
7571 gdb_assert by call to MACH_CHECK_ERROR.
7572 (darwin_attach_pid): Raise an error rather than a failed
7573 assertion when various system calls failed. Report a warning
7574 instead of raising a failed assertion when PREV_NOT is not NULL
7575 after call to mach_port_request_notification.
7576 (darwin_ptrace_me): Raise an error rather than a failed
7577 assertion when read returns nonzero.
7578
d1d69afb
JB
75792013-05-06 Joel Brobecker <brobecker@adacore.com>
7580
7581 * amd64-darwin-tdep.c: Remove #include "gdb_assert.h".
7582
dc90b24d
JK
75832013-05-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7584
7585 * cleanups.c (restore_my_cleanups): New gdb_assert for SENTINEL_CLEANUP.
7586
faab9922
JK
75872013-05-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7588
7589 * event-top.c (display_gdb_prompt): Call missing do_cleanups.
7590 * infcmd.c (get_return_value) <!stop_regs>: Do not overwrite CLEANUP.
7591 * symfile.c (symfile_bfd_open): New variable back_to. Do not leave
7592 a stale cleanup. Fix double free of NAME.
7593
e0ea48a0
EZ
75942013-05-04 Eli Zaretskii <eliz@gnu.org>
7595
7596 * windows-nat.c (windows_delete_thread): Accept an additional
7597 argument, the thread's exit code, and announce thread death when
7598 print_thread_events is non-zero and we are deleting a thread that
7599 is not the main thread.
7600 (get_windows_debug_event): Pass thread exit code to
7601 windows_delete_thread.
7602
83b2706a
KB
76032013-05-03 Kevin Buettner <kevinb@redhat.com>
7604
7605 * v850-tdep.c (elf-bfd.h, elf/v850.h): Include.
7606 (R_149_REGNUM, E_NUM_OF_V850E2_REGS, E_SELID_1_R0_REGNUM)
7607 (E_SELID_1_R31_REGNUM, E_SELID_2_R0_REGNUM, E_SELID_2_R31_REGNUM)
7608 (E_SELID_3_R0_REGNUM, E_SELID_3_R31_REGNUM, E_SELID_4_R0_REGNUM)
7609 (E_SELID_4_R31_REGNUM, E_SELID_5_R0_REGNUM, E_SELID_5_R31_REGNUM)
7610 (E_SELID_6_R0_REGNUM, E_SELID_6_R31_REGNUM, E_SELID_7_R0_REGNUM, E_SELID_7_R31_REGNUM)
7611 (E_VR0_REGNUM, E_VR31_REGNUM, E_NUM_OF_V850E3V5_REGS): Define.
7612 (v850_abi, V850_ABI_GCC, V850_ABI_RH850): New enum and constants.
7613 (gdbarch_tdep): New struct.
7614 (v850e2_register_name): Use E_NUM_OF_V850E2_REGS instead of
7615 E_NUM_REGS.
7616 (v850e3v5_register_name): New function.
7617 (v850_register_type): v850e3v5 vector registers are 64-bits wide.
7618 (v850_use_struct_convention): Add `gdbarch' parameter. Add new
7619 code handling the struct return conventions for the RH850 ABI.
7620 Update all callers.
7621 (v850_eight_byte_align_p): New function.
7622 (v850_push_call_dummy): Push structs by value, not by reference
7623 for the RH850 ABI. Add support for eight byte alignment.
7624 (v850_dbtrap_breakpoint_from_pc): New function.
7625 (v850_gdbarch_init): Add ABI detection code. Register
7626 v850e3v5_register_name for the v850e3v5 architecture. Set the
7627 number of registers for v850e3v5. Register
7628 v850_dbtrap_breakpoint_from_pc as appropriate.
7629 (_initialize_gdbarch_init): Registration bfd_arch_v850_rh850.
7630
d445b2f6
DE
76312013-05-03 Doug Evans <dje@google.com>
7632
7633 * objfiles.c (objfile_relocate): Use gdb_bfd_count_sections instead
7634 of bfd_count_sections.
7635 * solib-target.c (solib_target_relocate_section_addresses): Ditto.
7636 * symfile.c (default_symfile_offsets): Ditto.
7637 (syms_from_objfile_1): Ditto. Make dummy addrs list an array of
7638 one entry, not bfd_count_sections entries.
7639
b3ce41ea
KB
76402013-05-03 Kevin Buettner <kevinb@redhat.com>
7641
7642 * rl78-tdep.c (rl78_register_reggroup_p): Include SP in the
7643 `save' and `restore' register groups. Don't include SPL
7644 or SPH in these groups.
7645 (rl78_dwarf_reg_to_regnum): Adjust mapping for
7646 RL78_PC_REGNUM. Add mappings for RL78_PSW_REGNUM,
7647 RL78_ES_REGNUM, and RL78_CS_REGNUM.
7648 (rl78_gdbarch_init): Set `dwarf2_addr_size' to 4. Invoke
7649 dwarf2_append_unwinders().
7650
96f7d3f1
PW
76512013-05-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7652
7653 * break-catch-sig.c (signal_catchpoint_breakpoint_hit): Do not
7654 ignore SIGINT and SIGTRAP in case these internal signals are
7655 caught explicitely.
7656
b9dd1947
JB
76572013-05-01 Joel Brobecker <brobecker@adacore.com>
7658
7659 * darwin-nat.c (darwin_read_write_inferior): Change types
7660 of parameters rdaddr and wraddr to "gdb_byte *". Change type
7661 of copy_count to "mach_msg_type_number_t".
7662 (darwin_read_dyld_info): Change type of parameter
7663 rdaddr to "gdb_byte *".
7664
4ca18a63
JB
76652013-05-01 Joel Brobecker <brobecker@adacore.com>
7666
7667 * solib-ia64-hpux.c (ia64_hpux_read_dynamic_info): Change cast
7668 of &info->load_map from "char *" to "gdb_byte *".
7669
2b692d32
JB
76702013-05-01 Joel Brobecker <brobecker@adacore.com>
7671
7672 * ia64-tdep.c (ia64_access_fpreg): Change cast of val
7673 from "char *" to "gdb_byte *".
7674 (ia64_access_rse_fpreg, ia64_access_mem): Likewise.
7675
a98c29a0
DE
76762013-04-30 Doug Evans <dje@google.com>
7677
6a506a2d
DE
7678 * dwarf2read.c (lookup_dwo_unit): Return NULL if DWO not found.
7679 (init_cutu_and_read_dies): Flag a complaint, not error, for bad
7680 DWO stub. If DWO isn't found, just use stub.
7681 (lookup_dwo_cutu): Don't try DWO if there's a DWP file.
7682
a98c29a0
DE
7683 * dwarf2read.c (dw2_find_symbol_file): Initialize filename before
7684 calling init_cutu_and_read_dies.
7685
f92b06da
WT
76862013-03-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
7687
7688 * target-descriptions.c (maint_print_c_tdesc_cmd):
7689 Add case to parse structures as register types and
7690 bitfields.
7691
95eebdcc
WT
76922013-04-30 Walfred Tedeschi <walfred.tedeschi@intel.com>
7693
7694 * MAINTAINERS (Write After Approval): Add myself to the list.
7695
019c1128
JB
76962013-04-30 Joel Brobecker <brobecker@adacore.com>
7697
7698 * sol-thread.c (rw_common): Change type of parameter "buf"
7699 to "gdb_byte *".
7700 (ps_pdwrite, ps_ptwrite): Cast parameter "buf" in call to
7701 rw_common to "gdb_byte *" instead of "char *".
7702
5812197c
JB
77032013-04-30 Joel Brobecker <brobecker@adacore.com>
7704
7705 * sol-thread.c (info_cb) [ti.ti_startfunc != 0]: Change type
7706 of local variable msym to const struct bound_minimal_symbol.
7707 Adjust use accordingly.
7708 [ti.ti_state == TD_THR_SLEEP]: Likewise.
7709
ecccb813
TS
77102013-04-30 Samuel Thibault <samuel.thibault@gnu.org>
7711
7712 * i386gnu-nat.c (CREG_OFFSET): New macro.
7713 (creg_offset): New array.
7714 (CREG_ADDR): Use creg_offset instead of reg_offset.
7715
f1d02dd4 77162013-04-30 Joel Brobecker <brobecker@adacore.com>
54746424
JB
7717
7718 * mep-tdep.c (mep_write_pc): Delete.
7719 (mep_gdbarch_init): Remove call to set_gdbarch_write_pc.
7720 Add call to set_gdbarch_pc_regnum.
7721
f1d02dd4 77222013-04-30 Joel Brobecker <brobecker@adacore.com>
01da98f9
JB
7723
7724 * common/filestuff.c: Replace #include <dirent.h> by
7725 #include "gdb_dirent.h".
7726
f1d02dd4 77272013-04-30 Joel Brobecker <brobecker@adacore.com>
366c6766
JB
7728
7729 * common/filestuff.c: Replace #include <sys/stat.h> by
7730 #include "gdb_stat.h".
7731
b385a60d
PM
77322013-04-29 Pierre Muller <muller@sourceware.org>
7733
7734 * dwarf2read.c (handle_DW_AT_stmt_list): Avoid ARI warning for
7735 editCase function rule.
7736 (get_DW_AT_signature_type): Likewise.
7737
d27b54ad
JB
77382013-04-29 Joel Brobecker <brobecker@adacore.com>
7739
7740 * m32r-tdep.c (m32r_write_pc): Delete.
7741 (m32r_gdbarch_init): Remove call to set_gdbarch_write_pc.
7742 Add call to set_gdbarch_pc_regnum.
7743
47d21dc5
PM
77442013-04-29 Pierre Muller <muller@sourceware.org>
7745
7746 * ./contrib/ari/gdb_ari.sh (editCase rule): Fix spelling error.
7747
9056882e
JB
77482013-04-29 Joel Brobecker <brobecker@adacore.com>
7749
7750 * dwarf2read.c (get_DW_AT_signature_type): Add ARI marker.
7751
7ee4732a
YQ
77522013-04-28 Yao Qi <yao@codesourcery.com>
7753
7754 * solib-dsbt.c (fetch_loadmap): Re-indent.
7755 (displacement_from_map, enable_break2): Likewise.
7756 (dsbt_relocate_section_addresses): Likewise.
7757
2260af53 77582013-04-26 Joel Brobecker <brobecker@adacore.com>
7759
7760 GDB 7.6 released.
7761
ff546935
TT
77622013-04-25 Andreas Kaufmann <Andreas.Kaufmann@synopsys.com>
7763
7764 PR corefiles/14983:
7765 * dwarf2read.c (process_full_comp_unit): Always create a static
7766 block.
7767
40fb6c5e
HZ
77682013-04-25 Hui Zhu <hui@codesourcery.com>
7769
7770 * breakpoint.c (build_target_command_list): Change loc->cond_bytecode
7771 to loc->cmd_bytecode.
7772
74e04d1c
DE
77732013-04-24 Doug Evans <dje@google.com>
7774
7775 * dwarf2read.c (setup_type_unit_groups): Fix comment.
7776
3cf62c1d
KS
77772013-04-22 Keith Seitz <keiths@redhat.com>
7778
7779 * tracepoint.c (trace_save): Call the writer's start method.
7780
bf9e4d0c
MB
77812013-04-24 Muhammad Bilal <mbilal@codesourcery.com>
7782
7783 PR gdb/10462
7784 * cli/cli-decode.c (lookup_command): Show an error if there is no space
7785 before argument.
7786
5d71132c
TT
77872013-04-23 Tom Tromey <tromey@redhat.com>
7788
7789 * common/filestuff.c: Check USE_WIN32API before including
7790 sys/socket.h.
7791 (HAVE_F_GETFD): New define.
7792 (mark_cloexec): Check HAVE_F_GETFD.
7793 (gdb_open_cloexec): Change 'mode' to unsigned long.
7794 (gdb_socketpair_cloexec): Check HAVE_SOCKETPAIR.
7795 (gdb_pipe_cloexec): Check HAVE_PIPE.
7796 * common/filestuff.h (gdb_open_cloexec): Change 'mode' to unsigned
7797 long.
7798
a11cfd87
HZ
77992013-04-23 Hui Zhu <hui@codesourcery.com>
7800
7801 PR gdb/15293
a11cfd87
HZ
7802 * breakpoint.c (bpstat_what): Add BPSTAT_WHAT_SINGLE to bp_dprintf.
7803
2d9442cc
HZ
78042013-04-23 Hui Zhu <hui@codesourcery.com>
7805
7806 PR gdb/15165
2d9442cc
HZ
7807 * breakpoint.c (dprintf_print_recreate): New.
7808 (save_breakpoints): Let it not save dprintf commands.
7809 (initialize_breakpoint_ops): Set dprintf_print_recreate.
7810
614c279d
TT
78112013-04-22 Tom Tromey <tromey@redhat.com>
7812
7813 PR gdb/7912:
7814 * Makefile.in (SFILES): Add filestuff.c
7815 (COMMON_OBS): Add filestuff.o.
7816 (filestuff.o): New target.
7817 * auto-load.c (auto_load_objfile_script_1): Use
7818 gdb_fopen_cloexec.
7819 * auxv.c (procfs_xfer_auxv): Use gdb_open_cloexec.
7820 * cli/cli-cmds.c (shell_escape): Call close_most_fds.
7821 * cli/cli-dump.c (fopen_with_cleanup): Use gdb_fopen_cloexec.
7822 * common/agent.c (gdb_connect_sync_socket): Use
7823 gdb_socket_cloexec.
7824 * common/filestuff.c: New file.
7825 * common/filestuff.h: New file.
7826 * common/linux-osdata.c (linux_common_core_of_thread)
7827 (command_from_pid, commandline_from_pid, print_source_lines)
7828 (linux_xfer_osdata_shm, linux_xfer_osdata_sem)
7829 (linux_xfer_osdata_msg, linux_xfer_osdata_modules): Use
7830 gdb_fopen_cloexec.
7831 * common/linux-procfs.c (linux_proc_get_int)
7832 (linux_proc_pid_has_state): Use gdb_fopen_cloexec.
7833 * config.in, configure: Rebuild.
7834 * configure.ac: Don't check for sys/socket.h. Check for
7835 fdwalk, pipe2.
7836 * corelow.c (core_open): Use gdb_open_cloexec.
7837 * dwarf2read.c (write_psymtabs_to_index): Use gdb_fopen_cloexec.
7838 * fork-child.c (fork_inferior): Call close_most_fds.
7839 * gdb_bfd.c (gdb_bfd_open): Use gdb_open_cloexec.
7840 * inf-child.c (inf_child_fileio_readlink): Use gdb_open_cloexec.
7841 * linux-nat.c (linux_nat_thread_name, linux_proc_pending_signals):
7842 Use gdb_fopen_cloexec.
7843 (linux_proc_xfer_partial, linux_proc_xfer_spu): Use
7844 gdb_open_cloexec.
7845 (linux_async_pipe): Use gdb_pipe_cloexec.
7846 * remote-fileio.c (remote_fileio_func_open): Use
7847 gdb_open_cloexec.
7848 * remote.c (remote_file_put, remote_file_get): Use
7849 gdb_fopen_cloexec.
7850 * ser-pipe.c (pipe_open): Use gdb_socketpair_cloexec,
7851 close_most_fds.
7852 * ser-tcp.c (net_open): Use gdb_socket_cloexec.
7853 * ser-unix.c (hardwire_open): Use gdb_open_cloexec.
7854 * solib.c (solib_find): Use gdb_open_cloexec.
7855 * source.c (openp, find_and_open_source): Use gdb_open_cloexec.
7856 * tracepoint.c (tfile_start): Use gdb_fopen_cloexec.
7857 (tfile_open): Use gdb_open_cloexec.
7858 * tui/tui-io.c (tui_initialize_io): Use gdb_pipe_cloexec.
7859 * ui-file.c (gdb_fopen): Use gdb_fopen_cloexec.
7860 * xml-support.c (xml_fetch_content_from_file): Use
7861 gdb_fopen_cloexec.
7862 * main.c (captured_main): Call notice_open_fds.
7863
5fda2332
EBM
78642013-04-22 Edjunior Machado <emachado@linux.vnet.ibm.com>
7865
7866 * remote-sim.c (dump_mem): Change the type of 'buf' parameter from
7867 'char *' to 'gdb_byte *'.
7868 (gdbsim_store_register): Change the type of 'tmp' from 'char' to
7869 'gdb_byte'.
7870
eb6c553b
YQ
78712013-04-22 Yao Qi <yao@codesourcery.com>
7872
7873 * infrun.c: Fix typo in comment.
7874
9991b207
SDJ
78752013-04-22 Andrew Haley <aph@redhat.com>
7876
7877 * arm-tdep.c (BranchDest): Cast result as "unsigned long",
7878 instead of "long".
7879
8b4833e3
YQ
78802013-04-20 Yao Qi <yao@codesourcery.com>
7881
7882 * ctf.c (ctf_fetch_registers): Change the type of 'regs' from
7883 'char *' to 'gdb_byte *'. Cast the return value of
7884 'bt_ctf_get_char_array' to 'gdb_byte *'.
7885
bd3f3b55
PA
78862013-04-19 Pedro Alves <palves@redhat.com>
7887
7888 * configure.ac (build_warnings): Replace -Wno-pointer-sign with
7889 -Wpointer-sign.
7890 * configure: Regenerate.
7891
c49e7f76
PA
78922013-04-19 Pedro Alves <palves@redhat.com>
7893
7894 * ser-tcp.c (net_read_prim): Cast second argument to recv to
7895 'void *'.
7896
12ff8552
PA
78972013-04-19 Pedro Alves <palves@redhat.com>
7898
7899 * monitor.c (monitor_write_memory, monitor_write_memory_bytes):
7900 Change type of 'myaddr' parameter to gdb_byte pointer.
7901 (monitor_write_memory_longlongs): Likewise. Cast 'myaddr' pointer
7902 to 'long long' pointer instead of to 'unsigned long long'.
7903 (monitor_write_memory_block, monitor_read_memory_single)
7904 (monitor_read_memory): Change type of 'myaddr' parameter to
7905 gdb_byte pointer.
7906
9c37696b
PA
79072013-04-19 Pedro Alves <palves@redhat.com>
7908
7909 * record.c (validate_history_size): Make parameter 'setting'
7910 unsigned.
7911
a398505b
PA
79122013-04-19 Pedro Alves <palves@redhat.com>
7913
7914 * ctf.c (ctf_write_uploaded_tsv, ctf_write_uploaded_tp): Add casts
7915 to 'gdb_byte *'.
7916
9f8afa72
PA
79172013-04-19 Pedro Alves <palves@redhat.com>
7918
7919 * cp-valprint.c (cp_print_class_member): Change type of 'fieldno'
7920 local to int.
7921
c714b426
PA
79222013-04-19 Pedro Alves <palves@redhat.com>
7923
7924 * ada-lang.c (print_it_exception): Add cast to gdb_byte *.
7925 * ada-tasks.c (read_fat_string_value): Likewise.
7926
507a579c
PA
79272013-04-19 Pedro Alves <palves@redhat.com>
7928
7929 * dwarf2-frame.c (execute_cfa_program): Make 'bytes_read' local
7930 unsigned. Pass 'tmp' to safe_read_uleb128 instead of the signed
7931 'offset', and adjust.
7932
f9d83a0b
PA
79332013-04-19 Pedro Alves <palves@redhat.com>
7934
7935 * dwarf2read.c (dwarf2_get_dwz_file): Add cast to const char *.
7936 (read_index_from_section): Add cast to 'char *'.
7937
745eb4fd
PA
79382013-04-19 Pedro Alves <palves@redhat.com>
7939
7940 * xcoffread.c (xcoff_initial_scan): Add cast to 'char *'.
7941
db5be46f
PA
79422013-04-19 Pedro Alves <palves@redhat.com>
7943
7944 * coff-pe-read.c (read_pe_exported_syms): Handle strings as char.
7945
0f928d68
PA
79462013-04-19 Pedro Alves <palves@redhat.com>
7947
7948 * record-full.c (record_full_get_bookmark): Change local 'ret'
7949 type to char * and add cast to gdb_byte *.
7950 (record_full_goto_bookmark): Handle 'bookmark' argument as a
7951 string.
7952 * reverse.c (goto_bookmark_command): Add casts to gdb_byte *.
7953
89f6d837
PA
79542013-04-19 Pedro Alves <palves@redhat.com>
7955
7956 * python/py-inferior.c (infpy_write_memory): Add cast to gdb_byte
7957 * python/py-prettyprint.c (print_string_repr): Change type of
7958 'output' local to char *. Add cast to gdb_byte * in
7959 LA_PRINT_STRING call.
7960 (print_children): Change type of 'output' local to char *.
7961 * python/py-value.c (valpy_string): Add cast to const char * in
7962 PyUnicode_Decode call.
7963
ce6ec7d8
PA
79642013-04-19 Pedro Alves <palves@redhat.com>
7965
7966 * remote-mips.c (mips_cksum): Rename 'data' parameter to 'datastr'
7967 and change its type to 'const char *'. Adjust.
7968 (mips_send_packet): Add cast to 'char *', and remove cast to
7969 'unsigned char *'.
7970 (mips_receive_packet): Remove cast to 'unsigned char *'.
7971 (mips_load_srec): Use bfd_byte.
7972 (pmon_makeb64, pmon_zeroset): Make 'chksum' parameter unsigned.
7973 (pmon_checkset): Make 'value' parameter unsigned.
7974
fda0389f
PA
79752013-04-19 Pedro Alves <palves@redhat.com>
7976
7977 * common/agent.c (agent_run_command): Add cast to gdb_byte *.
7978
bc20a4af
PA
79792013-04-19 Pedro Alves <palves@redhat.com>
7980
7981 * remote.c (remote_write_bytes_aux, compare_sections_command)
7982 (remote_read_qxfer)
7983 (remote_search_memory, remote_hostio_pwrite, remote_hostio_pread)
7984 (remote_hostio_readlink, remote_bfd_iovec_pread)
7985 (remote_set_trace_notes): Use gdb_byte when RSP buffer is used as
7986 binary buffer, and char when buffer is used as string.
7987 * tracepoint.c (encode_source_string, tfile_write_uploaded_tp)
7988 (trace_save, tfile_open, traceframe_walk_blocks)
7989 (tfile_fetch_registers): Likewise.
7990
c628b528
PA
79912013-04-19 Pedro Alves <palves@redhat.com>
7992
7993 * ser-base.c (ser_base_write): Change prototype -- take 'void *'
7994 buffer and size_t size. Adjust.
7995 * ser-base.h (ser_base_write): Adjust.
7996 * ser-go32.c (cnts): Change type to size_t.
7997 (dos_write): Change prototype -- take 'void *'
7998 buffer and size_t size. Adjust.
7999 (dos_info): Print elements of 'cnts' as unsigned long.
8000 * serial.c (serial_write): Likewise.
8001 * serial.h (serial_write): Adjust.
8002 (struct serial_ops) <write>: Change prototype -- take 'void *'
8003 buffer and size_t size. Adjust.
8004
51a5cd90
PA
80052013-04-19 Pedro Alves <palves@redhat.com>
8006
8007 * c-lang.c (evaluate_subexp_c): Cast result of obstack_base to
8008 gdb_byte *.
8009 * linux-tdep.c (linux_make_mappings_corefile_notes): Likewise.
8010
a9933661
PA
80112013-04-19 Pedro Alves <palves@redhat.com>
8012
8013 * alpha-tdep.c (alpha_extract_return_value): Use
8014 regcache_cooked_read_unsigned to read 'v0'.
8015
19afdd07
PA
80162013-04-19 Pedro Alves <palves@redhat.com>
8017
8018 * xtensa-tdep.c (execute_l32e, execute_s32e): Change type of
8019 parameters 'at', 'as' and 'offset' to uint32_t.
8020
96b32e50
PA
80212013-04-19 Pedro Alves <palves@redhat.com>
8022
8023 * aarch64-tdep.c (aarch64_analyze_prologue): Change type of local
8024 'is64' to signed 'int'.
8025
eb1bd1fb
PA
80262013-04-19 Pedro Alves <palves@redhat.com>
8027
8028 * s390-tdep.c (is_rs, is_rsy, is_rx, is_rxy): Change type of 'd2'
8029 parameter to int *.
8030
463920bf
PA
80312013-04-19 Pedro Alves <palves@redhat.com>
8032
8033 * ppc-linux-tdep.c (ppc_skip_trampoline_code): Change local
8034 'insnbuf' buffer type to unsigned int[].
8035
70242eb1
PA
80362013-04-19 Pedro Alves <palves@redhat.com>
8037
8038 * mips-tdep.c (mips_read_pc): Change local 'pc' type to LONGEST.
8039
9d1dd0e2
PA
80402013-04-19 Pedro Alves <palves@redhat.com>
8041
8042 * mep-tdep.c (mep_get_insn): Change 'insn' parameter type to
8043 unsigned long *.
8044
44096aee
PA
80452013-04-19 Pedro Alves <palves@redhat.com>
8046
8047 * alpha-tdep.c (heuristic_fence_post): Change type to int.
8048 (alpha_heuristic_proc_start): Adjust to check -1 instead of
8049 UINT_MAX.
8050 * mips-tdep.c (heuristic_fence_post): Change type to int.
8051 (heuristic_proc_start): Adjust to check -1 instead of UINT_MAX.
8052
e4286e57
PA
80532013-04-19 Pedro Alves <palves@redhat.com>
8054
8055 * cris-tdep.c (usr_cmd_cris_version): Make unsigned.
8056 (struct gdbarch_tdep) <cris_version>: Make unsigned.
8057 (cris_spec_reg_applicable, cris_gdbarch_init): Adjust locals.
8058
001f13d8
PA
80592013-04-19 Pedro Alves <palves@redhat.com>
8060
8061 * avr-tdep.c (avr_io_reg_read_command): New local 'bufstr'. Use
8062 it to get a string view of the byte buffer.
8063 * i386-cygwin-tdep.c (core_process_module_section): Change local 'buf'
8064 type to gdb_byte *. Adjust.
8065 * linux-tdep.c (linux_info_proc, linux_find_memory_regions_full):
8066 Change local to char *.
8067 * solib-darwin.c (find_program_interpreter): Change return type to
8068 char *. Adjust.
8069 (darwin_solib_get_all_image_info_addr_at_init): Adjust.
8070 * solib-dsbt.c (enable_break2): Change local 'buf' to char *.
8071 * solib-frv.c (enable_break2): Change local 'buf' to char *.
8072 * solib-spu.c (spu_current_sos): Add gdb_byte * cast.
8073 * solib-svr4.c (find_program_interpreter): Change return type to
8074 char *. Adjust.
8075 (enable_break): Change local 'interp_name' to char *.
8076 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
8077 * spu-tdep.c (spu_pseudo_register_read_spu): Add cast to 'char *'.
8078 (spu_pseudo_register_write_spu): Use char for string buffer.
8079 Adjust.
8080 (info_spu_event_command, info_spu_signal_command): Add casts to
8081 'char *'.
8082
948f8e3d
PA
80832013-04-19 Pedro Alves <palves@redhat.com>
8084
8085 * aarch64-tdep.c (aarch64_default_breakpoint): Change type to
8086 gdb_byte[].
8087 (aarch64_breakpoint_from_pc): Change return type to gdb_byte *.
8088 * ada-lang.c (ada_value_assign): Use gdb_byte.
8089 * alphanbsd-tdep.c (sigtramp_retcode): Change type to gdb_byte[].
8090 (alphanbsd_sigtramp_offset): Use gdb_byte.
8091 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint)
8092 (arm_linux_arm_be_breakpoint, eabi_linux_arm_le_breakpoint)
8093 (eabi_linux_arm_be_breakpoint, arm_linux_thumb_be_breakpoint)
8094 (arm_linux_thumb_le_breakpoint, arm_linux_thumb2_be_breakpoint)
8095 (arm_linux_thumb2_le_breakpoint): Change type to gdb_byte[].
8096 * arm-tdep.c (arm_stub_unwind_sniffer)
8097 (arm_displaced_init_closure): Use gdb_byte.
8098 (arm_default_arm_le_breakpoint, arm_default_arm_be_breakpoint)
8099 (arm_default_thumb_le_breakpoint)
8100 (arm_default_thumb_be_breakpoint): Change type to gdb_byte[].
8101 * arm-tdep.h (struct gdbarch_tdep) <arm_breakpoint,
8102 thumb_breakpoint, thumb2_breakpoint>: Change type to gdb_byte *.
8103 * arm-wince-tdep.c (arm_wince_le_breakpoint)
8104 (arm_wince_thumb_le_breakpoint): Change type to gdb_byte[].
8105 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint)
8106 (arm_nbsd_arm_be_breakpoint, arm_nbsd_thumb_le_breakpoint)
8107 (arm_nbsd_thumb_be_breakpoint): Change type to gdb_byte[].
8108 * armobsd-tdep.c (arm_obsd_thumb_le_breakpoint)
8109 (arm_obsd_thumb_be_breakpoint): Change type to gdb_byte[].
8110 * cris-tdep.c (push_stack_item, cris_push_dummy_call)
8111 (cris_store_return_value, cris_extract_return_value): Use
8112 gdb_byte.
8113 (constraint): Change type of parameter to char * from signed
8114 char*. Use gdb_byte.
8115 * dwarf2loc.c (read_pieced_value, write_pieced_value): Change type
8116 of local buffer to gdb_byte *.
8117 * dwarf2read.c (read_index_from_section): Use gdb_byte.
8118 (create_dwp_hash_table): Change type of locals to gdb_byte *.
8119 (add_address_entry): Change type of local buffer to gdb_byte[].
8120 * frv-tdep.c (frv_adjust_breakpoint_address, find_func_descr)
8121 (frv_push_dummy_call): Use gdb_byte.
8122 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code)
8123 (hppa_hpux_supply_ss_fpblock, hppa_hpux_supply_ss_wide)
8124 (hppa_hpux_supply_save_state): Use gdb_byte.
8125 * hppa-tdep.c (hppa32_push_dummy_call)
8126 (hppa64_convert_code_addr_to_fptr): Use gdb_byte.
8127 * ia64-tdep.c (extract_bit_field, replace_bit_field)
8128 (slotN_contents, replace_slotN_contents): Change type of parameter
8129 to gdb_byte *.
8130 (fetch_instruction, ia64_pseudo_register_write)
8131 (ia64_register_to_value, ia64_value_to_register)
8132 (ia64_extract_return_value, ia64_store_return_value)
8133 (ia64_push_dummy_call): Use gdb_byte.
8134 * m32c-tdep.c (m32c_return_value): Remove cast.
8135 * m68hc11-tdep.c (m68hc11_pseudo_register_write)
8136 (m68hc11_push_dummy_call, m68hc11_store_return_value): Use
8137 gdb_byte.
8138 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Use gdb_byte.
8139 * mn10300-tdep.c (mn10300_store_return_value)
8140 (mn10300_breakpoint_from_pc, mn10300_push_dummy_call): Use
8141 gdb_byte.
8142 * moxie-tdep.c (moxie_process_readu): Use gdb_byte.
8143 (moxie_process_record): Remove casts.
8144 * ppc-ravenscar-thread.c (supply_register_at_address)
8145 (ppc_ravenscar_generic_store_registers): Use gdb_byte.
8146 * ravenscar-thread.c (get_running_thread_id): Use gdb_byte.
8147 * remote-m32r-sdi.c (m32r_fetch_register): Use gdb_byte.
8148 * remote-mips.c (mips_xfer_memory): Use gdb_byte.
8149 * remote.c (compare_sections_command): Use gdb_byte.
8150 * score-tdep.c (score7_free_memblock): Change type of parameter to
8151 gdb_byte *.
8152 * sh-tdep.c (sh_justify_value_in_reg): Change return type to
8153 gdb_byte *. Use gdb_byte.
8154 (sh_push_dummy_call_fpu): Use gdb_byte.
8155 (sh_extract_return_value_nofpu, sh_extract_return_value_fpu)
8156 (sh_store_return_value_nofpu, sh_store_return_value_fpu)
8157 (sh_register_convert_to_virtual, sh_register_convert_to_raw):
8158 Change parameter type to 'gdb_byte *'. Use gdb_byte.
8159 (sh_pseudo_register_read, sh_pseudo_register_write): Use gdb_byte.
8160 * sh64-tdep.c (sh64_push_dummy_call): Use gdb_byte.
8161 (sh64_store_return_value, sh64_register_convert_to_virtual):
8162 Change parameter type to 'gdb_byte *'. Use gdb_byte.
8163 (sh64_pseudo_register_write): Use gdb_byte.
8164 * solib-darwin.c (darwin_current_sos): Add casts to 'gdb_byte *'.
8165 * solib-irix.c (fetch_lm_info): Likewise. Use gdb_byte for byte
8166 buffer.
8167 (irix_current_sos): Use gdb_byte.
8168 * solib-som.c (som_current_sos): Use gdb_byte.
8169 * sparc-ravenscar-thread.c (supply_register_at_address)
8170 (sparc_ravenscar_generic_store_registers): Use gdb_byte.
8171 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
8172 * spu-tdep.c (spu_get_overlay_table): Use gdb_byte.
8173 * tic6x-tdep.c (tic6x_breakpoint_from_pc): Change return type to
8174 'gdb_byte *'.
8175 * tic6x-tdep.h (struct gdbarch_tdep) <breakpoint>: Change type to
8176 'gdb_byte *'.
8177 * tracepoint.c (tfile_fetch_registers): Use gdb_byte.
8178 * xstormy16-tdep.c (xstormy16_extract_return_value)
8179 (xstormy16_store_return_value): Change parameter type to
8180 'gdb_byte *'. Adjust.
8181 (xstormy16_push_dummy_call): Use gdb_byte.
8182 * xtensa-tdep.c (xtensa_scan_prologue, call0_ret)
8183 (call0_analyze_prologue, execute_code): Use gdb_byte.
8184
433730c9
PA
81852013-04-19 Vladimir Kargov <kargov@gmail.com>
8186 Pedro Alves <palves@redhat.com>
8187
8188 * i387-tdep.c (i387_print_float_info): Use gdb_byte for pointer to
8189 value contents.
8190
ac9ec31b
DE
81912013-04-17 Doug Evans <dje@google.com>
8192
8193 * dwarf2read.c (struct signatured_type): New member type.
8194 (struct attribute): Replace member signatured_type with signature.
8195 (DW_SIGNATURE): Replaces DW_SIGNATURE_TYPE.
8196 (read_call_site_scope): Call follow_die_ref instead of
8197 follow_die_ref_or_sig.
8198 (read_structure_type): Rewrite handling of signatured types.
8199 (read_enumeration_type): Ditto.
8200 (read_attribute_value): Update.
8201 (build_error_marker_type): New function.
8202 (lookup_die_type): Add assert. Rewrite handling of signatured types.
8203 Don't call error for bad types, just build an error marker type.
8204 (dump_die_shallow): Update.
8205 (follow_die_sig_1): Renamed from follow_die_sig.
8206 Don't call error for bad types, instead return NULL.
8207 (follow_die_sig): New function.
8208 (get_signatured_type, get_DW_AT_signature_type): New functions.
8209
e546e8bb
YZ
82102013-04-17 Yufeng Zhang <yufeng.zhang@arm.com>
8211
8212 * aarch64-tdep.c (aarch64_write_pc): Removed.
543cdd95
JB
8213 (aarch64_gdbarch_init): Remove set_gdbarch_write_pc of the above
8214 function.
e546e8bb 8215
ab116149
YQ
82162013-04-17 Yao Qi <yao@codesourcery.com>
8217
8218 * top.c (print_gdb_configuration): Print configure-time
8219 parameter on using libbabeltrace or not.
8220
488a42b8
PA
82212013-04-16 Pedro Alves <palves@redhat.com>
8222
8223 * copyright.py (EXCLUDE_LIST): Add gdb/common/glibc_thread_db.h.
8224
f5fb825b
PA
82252013-04-16 Pedro Alves <palves@redhat.com>
8226
85d494ea 8227 * common/glibc_thread_db.h: Update from upstream glibc
f5fb825b
PA
8228 (git 568035b7874a099087b77f7bba3e36a1173787b0).
8229
e1154999
PA
82302013-04-16 Pedro Alves <palves@redhat.com>
8231
8232 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: Factor out to ...
8233 * common/glibc_thread_db.h: ... this new file ...
8234 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: ... and include it.
8235
e3b50a7f
PA
82362013-04-16 Will Newton <will.newton@gmail.com>
8237 Pedro Alves <palves@redhat.com>
8238
8239 PR build/11881
8240
8241 * common/gdb_thread_db.h (LIBTHREAD_DB_SO)
8242 (LIBTHREAD_DB_SEARCH_PATH): Move outside of #ifdef
8243 HAVE_THREAD_DB_H.
8244
1c2e4450
PA
82452013-04-16 Pedro Alves <palves@redhat.com>
8246 Eli Zaretskii <eliz@gnu.org>
8247
8248 * NEWS: Mention "set foo unlimited".
8249
4031ecc5
DE
82502013-04-15 Doug Evans <dje@google.com>
8251
19c3d4c9
DE
8252 * dwarf2read.c (struct dwo_file): Replace member "cus" with "cu".
8253 (struct create_dwo_cu_data): Renamed from create_dwo_info_table_data.
8254 (create_dwo_cu_reader): Renamed from
8255 create_dwo_debug_info_hash_table_reader.
8256 (create_dwo_cu): Renamed from create_dwo_debug_info_hash_table.
8257 Remove support for multiple CUs in a DWO file.
8258 (open_and_init_dwo_file, lookup_dwo_cutu): Update.
8259
4031ecc5
DE
8260 * dwarf2read.c (create_debug_types_hash_table): Use hex_string
8261 instead of phex.
8262 (lookup_dwo_unit, create_dwo_debug_info_hash_table_reader): Ditto.
8263 (create_dwo_in_dwp): Ditto.
8264
b340913d
TT
82652013-04-15 Tom Tromey <tromey@redhat.com>
8266
8267 * NEWS: Move recent entries into "since 7.6" section.
8268
cc16e6c9
TT
82692013-04-15 Tom Tromey <tromey@redhat.com>
8270
8271 PR c++/13588:
8272 * NEWS: Update.
8273 * break-catch-throw.c (struct exception_catchpoint)
8274 <exception_rx, pattern>: New fields.
8275 (fetch_probe_arguments, dtor_exception_catchpoint)
8276 (check_status_exception_catchpoint)
8277 (print_one_detail_exception_catchpoint): New functions.
8278 (handle_gnu_v3_exceptions): Add "except_rx" argument.
8279 Compile regular expression if needed.
8280 (extract_exception_regexp): New function.
8281 (catch_exception_command_1): Use extract_exception_regexp.
8282 (compute_exception): Use fetch_probe_arguments.
8283 (initialize_throw_catchpoint_ops): Set dtor, print_one_detail,
8284 and check_status fields.
8285 * cp-abi.c (cplus_typename_from_type_info): New function.
8286 * cp-abi.h (cplus_typename_from_type_info): Declare.
8287 (struct cp_abi_ops) <get_typename_from_type_info>: New field.
8288 * gdb_regex.h (compile_rx_or_error): Declare.
8289 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info): Update
8290 comment.
8291 (init_gnuv3_ops): Set get_type_from_type_info field.
8292 * probe.c (compile_rx_or_error): Move...
8293 * utils.c (compile_rx_or_error): ... here.
8294
72f1fe8a
TT
82952013-04-15 Tom Tromey <tromey@redhat.com>
8296
8297 PR c++/15176:
8298 * NEWS: Update.
8299 * break-catch-throw.c (compute_exception): New function.
8300 (exception_funcs): New global.
8301 (_initialize_break_catch_throw): Create $_exception.
8302 * cp-abi.c (cplus_type_from_type_info): New function.
8303 * cp-abi.h (cplus_type_from_type_info): Declare.
8304 (struct cp_abi_ops) <get_type_from_type_info>: New field.
8305 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info)
8306 (gnuv3_get_type_from_type_info): New functions.
8307 (init_gnuv3_ops): Set get_type_from_type_info ABI field.
8308
fc4746a2
TT
83092013-04-15 Tom Tromey <tromey@redhat.com>
8310
8311 * break-catch-throw.c (struct exception_names): New.
8312 (exception_functions): Change type.
8313 (re_set_exception_catchpoint): Look for SDT probes.
8314
15a73f56
TT
83152013-04-15 Tom Tromey <tromey@redhat.com>
8316
8317 PR c++/10119:
8318 * break-catch-throw.c (exception_functions): New global.
8319 (gnu_v3_exception_catchpoint_ops): Move earlier.
8320 (struct exception_catchpoint): New.
8321 (classify_exception_breakpoint): Rewrite.
8322 (re_set_exception_catchpoint): New function.
8323 (handle_gnu_v3_exceptions): Return void. Use init_catchpoint.
8324 Allocate a struct exception_catchpoint.
8325 (catch_exception_command_1): Update.
8326 (initialize_throw_catchpoint_ops): Set 're_set' method.
8327
916703c0
TT
83282013-04-15 Tom Tromey <tromey@redhat.com>
8329
8330 * Makefile.in (SFILES): Add break-catch-throw.c
8331 (COMMON_OBS): Add break-catch-throw.o.
8332 * break-catch-throw.c: New file.
8333 * breakpoint.c: Move exception-catching code to new file.
8334 (ep_parse_optional_if_clause): No longer static.
8335 * breakpoint.h (ep_parse_optional_if_clause): Declare.
8336
6e72ca20
TT
83372013-04-15 Tom Tromey <tromey@redhat.com>
8338
8339 PR c++/9065:
8340 * NEWS: Update.
8341 * breakpoint.c (watchpoint_exp_is_const): Add OP_TYPEID.
8342 * c-exp.y (TYPEID): New token.
8343 (exp): Add new TYPEID productions.
8344 (ident_tokens): Add "typeid".
8345 * cp-abi.c (cplus_typeid, cplus_typeid_type): New functions.
8346 * cp-abi.h (cplus_typeid, cplus_typeid_type): Declare.
8347 (struct cp_abi_ops) <get_typeid, get_typeid_type>: New fields.
8348 * eval.c (evaluate_subexp_standard) <OP_TYPEID>: New case.
8349 * expprint.c (dump_subexp_body_standard) <OP_TYPEID>: New
8350 case.
8351 * gnu-v3-abi.c (std_type_info_gdbarch_data): New global.
8352 (build_std_type_info_type, gnuv3_get_typeid_type)
8353 (gnuv3_get_typeid): New functions.
8354 (init_gnuv3_ops): Initialize std_type_info_gdbarch_data. Set
8355 new fields on ABI object.
8356 * parse.c (operator_length_standard) <OP_TYPEID>: New case.
8357 * std-operator.def (OP_TYPEID): New.
8358
715c6909
TT
83592013-04-15 Tom Tromey <tromey@redhat.com>
8360
8361 * elfread.c (elf_symtab_read): Install versioned symbol under
8362 unversioned name as well.
8363
8de20a37
TT
83642013-04-15 Tom Tromey <tromey@redhat.com>
8365
8366 PR c++/11990:
8367 * c-lang.c (cplus_language_defn): Use gdb_demangle.
8368 * c-typeprint.c (c_type_print_base): Use gdb_demangle.
8369 * cp-support.c (mangled_name_to_comp): Use gdb_demangle.
8370 (gdb_demangle): New function.
8371 * cp-support.h (gdb_demangle): Declare.
8372 * dwarf2read.c (dwarf2_physname, fixup_partial_die)
8373 (dwarf2_name): Use gdb_demangle.
8374 * gdbtypes.c (check_stub_method): Use gdb_demangle.
8375 * gnu-v3-abi.c (gnuv3_rtti_type): Strip @plt and version
8376 suffixes from name.
8377 (gnuv3_print_method_ptr): Use gdb_demangle.
8378 * jv-lang.c (java_demangle): Use gdb_demangle.
8379 * jv-typeprint.c (java_type_print_base): Use gdb_demangle.
8380 * language.c (unk_lang_demangle): Use gdb_demangle.
8381 * symtab.c (symbol_find_demangled_name)
8382 (demangle_for_lookup): Use gdb_demangle.
8383
591f19e8
TT
83842013-04-15 Tom Tromey <tromey@redhat.com>
8385
8386 PR c++/12824:
8387 * NEWS: Update.
8388 * breakpoint.c (enum exception_event_kind) <EX_EVENT_RETHROW>:
8389 New constant.
8390 (classify_exception_breakpoint): New function.
8391 (print_it_exception_catchpoint, print_one_exception_catchpoint)
8392 (print_mention_exception_catchpoint)
8393 (print_recreate_exception_catchpoint, handle_gnu_v3_exceptions)
8394 (catch_exception_command_1): Handle "rethrow" catchpoint.
8395 (catch_rethrow_command): New function.
8396 (_initialize_breakpoint): Add "catch rethrow" command.
8397
4d40cad2
PM
83982013-04-15 Pierre Muller <muller@sourceware.org>
8399
8400 * contrib/ari/gdb_ari.sh (write_pc rule): Do not consider
8401 set_gdbarch_write_pc as deprecated anymore.
8402
30bcb456
JB
84032013-04-15 Joel Brobecker <brobecker@adacore.com>
8404
8405 * spu-tdep.c (spu_write_pc): Add empty line after local variable
8406 declarations.
8407
da9160e4
YQ
84082013-04-13 Yao Qi <yao@codesourcery.com>
8409
8410 * ctf.c (_initialize_ctf): Include "completer.h".
8411 Call add_target_with_completer instead of add_target.
8412
39ed5604
JK
84132013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
8414
8415 Fix GDB regression related to PR binutils/14813.
8416 * jit.c (mem_bfd_iovec_close): Return 0 for success.
8417 * minidebug.c (lzma_close): Add return value comment.
8418 * remote.c (remote_bfd_iovec_close): Return 0 for success.
8419 * solib-spu.c (spu_bfd_iovec_close): Likewise.
8420 * spu-linux-nat.c (spu_bfd_iovec_close): Likewise.
8421
84222013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
49369217
JK
8423
8424 * config.in: Regenerate.
8425
d521ce57
TT
84262013-04-12 Tom Tromey <tromey@redhat.com>
8427
8428 * dwarf2-frame.c (struct comp_unit) <dwarf_frame_buffer>: Now
8429 const.
8430 * dwarf2read.c (struct dwarf2_section_info) <buffer>: Now const.
8431 (struct die_reader_specs) <buffer>: Likewise.
8432 (die_reader_func_ftype): Make 'info_ptr' const.
8433 (struct line_header) <include_dirs, statement_program_start,
8434 statement_program_end>: Now const.
8435 (struct file_entry) <name>: Likewise.
8436 (struct partial_die_info) <sibling>: Likewise.
8437 (struct dwarf_block) <data>: Likewise.
8438 (dwarf2_read_section): Remove cast.
8439 (dwarf2_get_section_info): Make 'bufp' const.
8440 (read_index_from_section): Constify.
8441 (dw2_get_file_names_reader): Make 'info_ptr' const.
8442 (dw2_get_primary_filename_reader): Likewise.
8443 (read_comp_unit_head): Make 'info_ptr' and return type const.
8444 (read_and_check_comp_unit_head, read_and_check_type_unit_head):
8445 Likewise.
8446 (read_abbrev_offset): Constify.
8447 (dwarf2_create_include_psymtab): Make 'name' const.
8448 (create_debug_types_hash_table): Update.
8449 (read_cutu_die_from_dwo): Make 'result_info_ptr' const.
8450 (init_cutu_and_read_dies, init_cutu_and_read_dies_no_follow):
8451 Constify.
8452 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader)
8453 (load_partial_comp_unit_reader): Make 'info_ptr' const.
8454 (read_comp_units_from_section): Constify.
8455 (peek_abbrev_code, peek_die_abbrev, skip_children, skip_one_die)
8456 (locate_pdi_sibling, load_full_comp_unit_reader): Make 'info_ptr'
8457 const.
8458 (dwarf2_compute_name, setup_type_unit_groups): Constify.
8459 (create_dwo_debug_info_hash_table): Make 'info_ptr' const.
8460 (create_dwp_hash_table, dwarf2_ranges_read)
8461 (dwarf2_record_block_ranges): Constify.
8462 (read_die_and_children, read_die_and_siblings_1)
8463 (read_die_and_siblings): Make 'info_ptr' and 'new_info_ptr'
8464 const.
8465 (read_full_die_1, read_full_die): Make 'info_ptr' const.
8466 (abbrev_table_read_table): Constify.
8467 (load_partial_dies): Make 'info_ptr' const.
8468 (read_partial_die, read_attribute_value, read_attribute): Make
8469 'info_ptr' and return type const.
8470 (read_address, read_initial_length)
8471 (read_checked_initial_length_and_offset, read_offset)
8472 (read_offset_1, read_n_bytes, read_direct_string): Make 'buf'
8473 const.
8474 (read_direct_string): Make 'buf' and return type const.
8475 (read_indirect_string_at_offset, read_indirect_string_from_dwz)
8476 (read_indirect_string): Make return type const.
8477 (read_unsigned_leb128, read_signed_leb128): Make 'buf' const.
8478 (read_addr_index_from_leb128, dwarf2_read_addr_index_reader): Make
8479 'info_ptr' const.
8480 (read_str_index): Make return type const.
8481 (add_include_dir): Make 'include_dir' const.
8482 (add_file_name): Make 'name' const.
8483 (dwarf_decode_line_header): Constify.
8484 (psymtab_include_file_name): Make return type const.
8485 (dwarf_decode_lines_1, dwarf_decode_lines): Constify.
8486 (dwarf2_start_subfile): Make 'filename' const.
8487 (dwarf2_const_value_attr): Make 'bytes' const.
8488 (read_signatured_type_reader): Make 'info_ptr' const.
8489 (decode_locdesc): Constify.
8490 (skip_form_bytes): Make 'bytes', 'buffer_end', and return type
8491 const.
8492 (skip_unknown_opcode): Make 'opcode_definitions', 'mac_ptr',
8493 'mac_end', and return type const.
8494 (dwarf_parse_macro_header): Make 'mac_ptr' and return type const.
8495 (dwarf_decode_macro_bytes): Make 'mac_ptr', 'mac_end', and return
8496 type const.
8497 (per_cu_header_read_in): Constify.
8498 * symfile.h (dwarf2_get_section_info): Update.
8499
d47a1bc1
TT
85002013-04-12 Tom Tromey <tromey@redhat.com>
8501
8502 * symtab.h (struct general_symbol_info) <value.bytes>: Make const.
8503
6eaaf48b
EZ
85042013-04-12 Eli Zaretskii <eliz@gnu.org>
8505
fc4c25bf 8506 * NEWS: Mention "show configuration", --configuration.
6eaaf48b
EZ
8507 * top.c (print_gdb_configuration): New function, displays the
8508 details about GDB configure-time parameters.
8509 (print_gdb_version): Mention "show configuration".
6eaaf48b
EZ
8510 * cli/cli-cmds.c (show_configuration): New function.
8511 (_initialize_cli_cmds): Add the "show configuration" command.
6eaaf48b
EZ
8512 * main.c (captured_main) <print_configuration>: New static var.
8513 <long_options>: Use it.
8514 If --configuration was given, call print_gdb_configuration.
8515
b292c783
JK
85162013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8517 Pedro Alves <palves@redhat.com>
8518
8519 * Makefile.in (HAVE_NATIVE_GCORE_TARGET): New.
8520 (generated_files): Add gcore.
8521 (install-only, uninstall): Add gcore if HAVE_NATIVE_GCORE_TARGET or
8522 HAVE_NATIVE_GCORE_HOST.
8523 (gcore): New.
8524 * NEWS (Changes since GDB 7.6): Mention newly installed gcore.
8525 * config/alpha/alpha-osf3.mh, config/i386/fbsd.mh,
8526 config/i386/fbsd64.mh, config/i386/i386gnu.mh, config/i386/i386sol2.mh,
8527 config/i386/sol2-64.mh, config/mips/irix5.mh, config/mips/irix6.mh,
8528 config/powerpc/fbsd.mh, config/sparc/fbsd.mh, config/sparc/sol2.mh:
8529 Add HAVE_NATIVE_GCORE_HOST.
8530 * configure: Regenerate.
8531 * configure.ac (HAVE_NATIVE_GCORE_TARGET): New, set it, AC_SUBST it.
8532 New AC_SUBST fir GDB_TRANSFORM_NAME and GCORE_TRANSFORM_NAME. New
8533 AC_CONFIG_FILES for gcore.
8534 * configure.tgt: Add gdb_have_gcore to the initial comment. Set
8535 gdb_have_gcore.
8536 * gdb_gcore.sh: Rename to ...
8537 * gcore.in: ... here. Remove gcore.sh comment. Use GDB_TRANSFORM_NAME
8538 and GCORE_TRANSFORM_NAME substitutions.
8539
c96b3c4f
JK
8540 Fix parsing tabs in ${gdb_target_obs}.
8541 * configure.tgt (gdb_have_gcore): Replace case with for and if.
8542
d6cb50a2
JK
85432013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8544
8545 * remote.c (unpush_and_perror): Add output message final dot.
8546
cf2cb5ec
YQ
85472013-04-11 Yao Qi <yao@codesourcery.com>
8548
8549 * tracepoint.c (tfile_interp_line): Fit parameters line and
8550 utpp in one line.
8551
07293be4
JB
85522013-04-10 Joel Brobecker <brobecker@adacore.com>
8553
8554 * solib.c (solib_map_sections): Remove code overwriting
8555 SO->SO_NAME with the bfd's filename.
8556
f81d1120
PA
85572013-04-10 Pedro Alves <palves@redhat.com>
8558
8559 * cli/cli-decode.c (integer_unlimited_completer): New function.
8560 (add_setshow_integer_cmd, add_setshow_uinteger_cmd)
8561 (add_setshow_zuinteger_unlimited_cmd): Install the "unlimited"
8562 completer.
8563 * cli/cli-setshow.c: Include "cli/cli-utils.h".
8564 (is_unlimited_literal): New function.
8565 (do_set_command): Handle literal "unlimited" arguments.
8566 * frame.c (_initialize_frame) <set backtrace limit>: Document
8567 "unlimited".
8568 * printcmd.c (_initialize_printcmd) <set print
8569 max-symbolic-offset>: Add help text.
8570 * record-full.c (_initialize_record_full) <set record full
8571 insn-number-max>: Likewise.
8572 * record.c (_initialize_record) <set record
8573 instruction-history-size, set record function-call-history-size>:
8574 Add help text.
8575 * ser-tcp.c (_initialize_ser_tcp) <set tcp connect-timeout>: Add
8576 help text.
8577 * tracepoint.c (_initialize_tracepoint) <set trace-buffer-size>:
8578 Likewise.
8579 * source.c (_initialize_source) <set listsize>: Add help text.
8580 * utils.c (initialize_utils) <set height, set width>: Likewise.
8581 <set pagination>: Mention "set height unlimited".
8582 * valprint.c (_initialize_valprint) <set print elements, set print
8583 repeats>: Document "unlimited".
8584
2f9d54cf
PA
85852013-04-10 Pedro Alves <palves@redhat.com>
8586
8587 * cli/cli-cmds.c (quit_command): Call query_if_trace_running
8588 instead of disconnect_tracing.
8589 * infcmd.c (detach_command, disconnect_command): Call
8590 query_if_trace_running. Adjust.
8591 * top.c: Include "tracepoint.h".
8592 (quit_target): Delete. Contents moved ...
8593 (quit_force): ... here. Wrap each stage of teardown in
8594 TRY_CATCH. Call disconnect_tracing before detaching.
8595
393fd4c3
YQ
85962013-04-10 Hui Zhu <hui@codesourcery.com>
8597 Yao Qi <yao@codesourcery.com>
8598
8599 * configure.ac: Check libbabeltrace is installed.
8600 * config.in: Regenerate.
8601 * configure: Regenerate.
8602 * Makefile.in (LIBBABELTRACE): New.
8603 (CLIBS): Add LIBBABELTRACE.
8604 * ctf.c: Include "exec.h".
8605 (CTF_EVENT_ID_STATUS, CTF_EVENT_ID_TSV_DEF): New macros.
8606 (CTF_EVENT_ID_TP_DEF, ctf_save_write_int32): New macros.
8607 (ctf_save_metadata_header): Define new type aliases in
8608 metadata.
8609 (ctf_write_header): Define event type "tsv_def" and "tp_def"
8610 in metadata. Start a new faked packet for trace status.
8611 (ctf_write_status): Write trace status to CTF.
8612 (ctf_write_uploaded_tsv): Write TSV to CTF.
8613 (ctf_write_uploaded_tp): Write tracepoint definition to CTF.
8614 (ctf_write_definition_end): End the faked packet.
8615
8616 (ctx, ctf_iter, trace_dirname): New.
8617 (start_pos): New variable.
8618 (ctf_destroy, ctf_open_dir, ctf_open): New.
8619 (SET_INT32_FIELD, SET_ARRAY_FIELD, SET_STRING_FIELD): New
8620 macros.
8621 (ctf_read_tsv, ctf_read_tp, ctf_close, ctf_files_info): New.
8622 (ctf_fetch_registers, ctf_xfer_partial): New.
8623 (ctf_get_trace_state_variable_value): New.
8624 (ctf_get_tpnum_from_frame_event): New.
8625 (ctf_get_traceframe_address): New.
8626 (ctf_trace_find, ctf_has_stack): New.
8627 (ctf_has_registers, ctf_traceframe_info, init_ctf_ops): New.
8628 (ctf_get_trace_status, ctf_read_status): New.
8629 (_initialize_ctf): New.
8630 * tracepoint.c (get_tracepoint_number): New
8631 (get_uploaded_tsv): Remove 'static'.
5f8e0b8f 8632 (struct traceframe_info, trace_regblock_size): Move it to ...
393fd4c3
YQ
8633 * tracepoint.h: ... here.
8634 (get_tracepoint_number): Declare it.
8635 (get_uploaded_tsv): Declare it.
8636
8637 * NEWS: Mention new configure option.
8638
5c2b4418
HZ
86392013-04-10 Pedro Alves <palves@redhat.com>
8640 Hui Zhu <hui@codesourcery.com>
8641
8642 * breakpoint.c (dprintf_re_set): New.
8643 (initialize_breakpoint_ops): Set dprintf_breakpoint_ops re_set
8644 to dprintf_re_set.
8645
a5c66735
JB
86462013-04-09 Joel Brobecker <brobecker@adacore.com>
8647
8648 * configure.tgt (gdb_target_obs) <powerpc-*-aix* | rs6000-*-*>:
8649 Remove solib-svr4.o from the list.
8650
9e77999c
JB
86512013-04-09 Joel Brobecker <brobecker@adacore.com>
8652
8653 * varobj.c (update_dynamic_varobj_children) [!HAVE_PYTHON]:
8654 Use gdb_assert_not_reached instead of invalid boolean expression.
8655
1927e618
PA
86562013-04-09 Pedro Alves <palves@redhat.com>
8657
8658 * remote.c (unpush_and_perror): New function.
8659 (readchar, remote_serial_write): Use it.
8660
10782d74
MM
86612013-04-09 Markus Metzger <markus.t.metzger@intel.com>
8662
8663 * NEWS: Mention new btrace RSP packets.
8664
4c8429ef
TT
86652013-04-08 Tom Tromey <tromey@redhat.com>
8666
8667 * symmisc.c (dump_msymbols): Cast fprintf_filtered argument to
8668 long.
8669
8625fc1b
TT
86702013-04-08 Tom Tromey <tromey@redhat.com>
8671
8672 * maint.c (print_bfd_section_info): Print the section index.
8673 * symmisc.c (dump_msymbols): Print the section index.
8674
e27d198c
TT
86752013-04-08 Tom Tromey <tromey@redhat.com>
8676
8677 PR symtab/8424:
8678 * blockframe.c (find_pc_partial_function_gnu_ifunc): Check
8679 SYMBOL_SECTION, not SYMBOL_OBJ_SECTION.
8680 * breakpoint.c (resolve_sal_pc): Update.
8681 * elfread.c (elf_gnu_ifunc_record_cache): Update.
8682 * findvar.c (struct minsym_lookup_data) <objfile>: New field.
8683 (minsym_lookup_iterator_cb): Use it.
8684 (default_read_var_value): Update.
8685 * hppa-hpux-tdep.c (hppa64_hpux_in_solib_call_trampoline):
8686 Update.
8687 * infcmd.c (jump_command): Update.
8688 * linespec.c (minsym_found): Update.
8689 * maint.c (maintenance_translate_address): Update.
8690 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Update.
8691 (prim_record_minimal_symbol_full): Don't set SYMBOL_OBJ_SECTION.
8692 * parse.c (write_exp_msymbol): Update.
8693 * printcmd.c (address_info): Update.
8694 * psymtab.c (find_pc_sect_psymbol): Update.
8695 (fixup_psymbol_section): Check SYMBOL_SECTION, not
8696 SYMBOL_OBJ_SECTION.
8697 (add_psymbol_to_bcache): Correctly initialize SYMBOL_SECTION.
8698 Don't initialize SYMBOL_OBJ_SECTION.
8699 * spu-tdep.c (spu_catch_start): Update.
8700 * stabsread.c (define_symbol): Don't set SYMBOL_SECTION.
8701 * symmisc.c (dump_msymbols, print_symbol): Update.
8702 * symtab.c (fixup_section): Don't set 'obj_section'. Change
8703 how fallback section is computed.
8704 (fixup_symbol_section): Update.
8705 (find_pc_sect_symtab, find_function_start_sal, skip_prologue_sal):
8706 Update.
8707 (allocate_symbol, initialize_symbol, allocate_template_symbol):
8708 Initialize SYMBOL_SECTION.
8709 * symtab.h (struct general_symbol_info) <section>: Update comment.
8710 <obj_section>: Remove.
8711 (SYMBOL_OBJ_SECTION): Add 'objfile' argument. Rewrite.
8712 (SYMBOL_OBJFILE): New macro.
8713
e6dc44a8
TT
87142013-04-08 Tom Tromey <tromey@redhat.com>
8715
8716 * coffread.c (record_minimal_symbol): Update.
8717 * dbxread.c (record_minimal_symbol): Update.
8718 * elfread.c (record_minimal_symbol): Update.
8719 * machoread.c (macho_symtab_add_minsym): Update.
8720 * mdebugread.c (record_minimal_symbol, parse_partial_symbols):
8721 Update.
8722 * minsyms.c (prim_record_minimal_symbol): Update.
8723 (prim_record_minimal_symbol_full): Remove 'bfd_section'
8724 argument.
8725 (prim_record_minimal_symbol_and_info): Likewise.
8726 * minsyms.h (prim_record_minimal_symbol_full)
8727 (prim_record_minimal_symbol_and_info): Update.
8728 * symtab.c (allocate_symbol, initialize_symbol)
8729 (allocate_template_symbol): Initialize SYMBOL_SECTION.
8730 * xcoffread.c (record_minimal_symbol, scan_xcoff_symtab):
8731 Update.
8732
36192a8d
TT
87332013-04-08 Tom Tromey <tromey@redhat.com>
8734
8735 PR symtab/8423:
8736 * solib-som.c (som_solib_section_offsets): Use BFD section
8737 indices. Set offsets for all sections.
8738 * somread.c (som_symtab_read): Compute BFD section for
8739 symbol. Use prim_record_minimal_symbol_and_info.
8740 (som_symfile_read): Fix comment.
8741 (struct find_section_offset_arg): New.
8742 (find_section_offset, set_section_index): New functions.
8743 (som_symfile_offsets): Use set_section_index to compute
8744 section indices.
8745
65cf3563
TT
87462013-04-08 Tom Tromey <tromey@redhat.com>
8747
8748 * coffread.c (cs_to_section): Use gdb_bfd_section_index.
8749 * elfread.c (record_minimal_symbol, elf_symtab_read): Use
8750 gdb_bfd_section_index.
8751 * gdb_bfd.c (gdb_bfd_section_index, gdb_bfd_count_sections):
8752 New functions.
8753 * gdb_bfd.h (gdb_bfd_section_index, gdb_bfd_count_sections):
8754 Declare.
8755 * machoread.c (macho_symtab_add_minsym, macho_symfile_offsets):
8756 Update.
8757 * objfiles.c (add_to_objfile_sections_full): New function.
8758 (add_to_objfile_sections): Use it.
8759 (build_section_table): Rewrite.
8760 (objfile_relocate1): Use gdb_bfd_section_index. Update.
8761 * objfiles.h (obj_section_offset): Use gdb_bfd_section_index.
8762 (struct objfile) <sections>: Update comment.
8763 (ALL_OBJFILE_OSECTIONS): Skip sections where the_bfd_section
8764 is NULL.
8765 (ALL_OBJSECTIONS): Use it.
8766 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
8767 * solib-frv.c (frv_relocate_main_executable): Update.
8768 * solib-target.c (solib_target_relocate_section_addresses):
8769 Use gdb_bfd_section_index.
8770 * symfile.c (build_section_addr_info_from_section_table):
8771 Use gdb_bfd_section_index.
8772 (build_section_addr_info_from_bfd, place_section): Likewise.
8773 * symtab.c (fixup_section): Update.
8774 * xcoffread.c (find_targ_sec): Use gdb_bfd_section_index.
8775
7cbd4a93
TT
87762013-04-08 Tom Tromey <tromey@redhat.com>
8777
8778 * minsyms.h (struct bound_minimal_symbol): New.
8779 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
8780 Remove objfile argument.
8781 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
8782 Return bound_minimal_symbol.
8783 * minsyms.c (lookup_minimal_symbol_by_pc_1)
8784 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
8785 Return bound_minimal_symbol.
8786 (in_gnu_ifunc_stub): Update.
8787 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
8788 Remove 'objfile_p' argument.
8789 (lookup_solib_trampoline_symbol_by_pc): Update.
8790 * ada-tasks.c, amd64-windows-tdep.c, arm-tdep.c,
8791 arm-wince-tdep.c, block.c, blockframe.c, breakpoint.c, btrace.c,
8792 c-valprint.c, dwarf2loc.c, elfread.c, frame.c, frv-tdep.c,
8793 glibc-tdep.c, gnu-v2-abi.c, gnu-v3-abi.c, hppa-hpux-tdep.c,
8794 i386-tdep.c, ia64-tdep.c, infcall.c, infcmd.c, jit.c,
8795 linux-fork.c, m32c-tdep.c, m68hc11-tdep.c, maint.c,
8796 mips-tdep.c, p-valprint.c, parse.c, ppc-linux-tdep.c,
8797 ppc-sysv-tdep.c, printcmd.c, rs6000-tdep.c, sh64-tdep.c,
8798 stack.c, symtab.c, tui/tui-disasm.c: Update.
8799
f85f34ed
TT
88002013-04-08 Tom Tromey <tromey@redhat.com>
8801
8802 * ada-lang.c (ada_decode_symbol): Check and set 'ada_mangled'.
8803 Use symbol's obstack, not an objfile.
8804 * coffread.c (process_coff_symbol): Update.
8805 * dwarf2read.c (fixup_go_packaging, new_symbol_full): Update.
8806 * jv-lang.c (add_class_symbol): Update.
8807 * mdebugread.c (new_symbol): Update.
8808 * minsyms.c (prim_record_minimal_symbol_full)
8809 (terminate_minimal_symbol_table): Update.
8810 * psymtab.c (add_psymbol_to_bcache): Clear entire symbol. Update.
8811 * stabsread.c (define_symbol, read_enum_type): Update.
8812 * symtab.c (symbol_set_demangled_name, symbol_get_demangled_name):
8813 Handle Ada specially.
8814 (symbol_set_language): Add 'obstack' argument.
8815 (symbol_set_names): Update.
8816 (symbol_natural_name, symbol_demangled_name): Always use
8817 ada_decode_symbol.
8818 * symtab.h (struct general_symbol_info)
8819 <language_specific::obstack>: New field.
8820 <ada_mangled>: New field.
8821 (SYMBOL_SET_LANGUAGE): Add 'obstack' argument.
8822 (symbol_set_language): Update.
8823
ccde22c0
TT
88242013-04-08 Tom Tromey <tromey@redhat.com>
8825
8826 * symtab.c (symbol_init_cplus_specific, symbol_set_demangled_name):
8827 Take an obstack, not an objfile.
8828 (symbol_set_names): Update.
8829 * symtab.h (symbol_set_demangled_name): Update.
8830
e623cf5d
TT
88312013-04-08 Tom Tromey <tromey@redhat.com>
8832
8833 * coffread.c (process_coff_symbol, coff_read_enum_type): Call
8834 allocate_symbol.
8835 * dwarf2read.c (fixup_go_packaging): Call allocate_symbol.
8836 (read_func_scope): Call allocate_template_symbol.
8837 (new_symbol_full): Call allocate_symbol.
8838 * jit.c (finalize_symtab): Call allocate_symbol.
8839 * jv-lang.c (add_class_symbol): Call allocate_symbol.
8840 * mdebugread.c (parse_symbol, new_block): Call allocate_symbol.
8841 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
8842 (common_block_end): Call allocate_symbol.
8843 * symtab.c (allocate_symbol, initialize_symbol)
8844 (allocate_template_symbol): New functions.
8845 * symtab.c (allocate_symbol, initialize_symbol)
8846 (allocate_template_symbol): Declare.
8847 * xcoffread.c (process_xcoff_symbol): Call initialize_symbol.
8848
f6de8ec2
PA
88492013-04-08 Pedro Alves <palves@redhat.com>
8850 Keith Seitz <keiths@redhat.com>
8851
8852 * breakpoint.c (create_breakpoint): Rename
8853 "parse_condition_and_thread" parameter to "parse_arg". Update
8854 describing comment. If !PARSE_ARG, then error out if ARG is not
8855 the empty string after extracting the location.
8856 * breakpoint.h (create_breakpoint): Rename
8857 "parse_condition_and_thread" parameter to "parse_arg".
8858
f65ce5fb
AR
88592013-04-08 Aleksandar Ristovski <aristovski@qnx.com
8860
8861 * solib-svr4.c (lm_addr_check): Add const qualifier to 'so' arg.
8862
cc5925ad
YQ
88632013-04-07 Yao Qi <yao@codesourcery.com>
8864
8865 * remote.c (remote_trace_find): Change type of parameters 'addr1'
8866 and 'addr2' to CORE_ADDR.
8867 * target.c (update_current_target): Update.
8868 * target.h (struct target_ops) <to_trace_find>: Change parameter
8869 type to CORE_ADDR.
8870 * tracepoint.c (tfind_1): Change type of parameters 'addr1' and
8871 'addr2' to CORE_ADDR.
8872 (tfile_trace_find): Likewise.
8873 (tfile_get_traceframe_address): Change return type to CORE_ADDR.
8874 Change local variable 'addr' to type CORE_ADDR.
8875 * tracepoint.h (tfind_1): Update declaration.
8876
d9ac0664
EZ
88772013-04-06 Eli Zaretskii <eliz@gnu.org>
8878
8879 * windows-nat.c (windows_get_absolute_argv0): Move from here...
8880 * mingw-hdep.c (windows_get_absolute_argv0): ...to here.
8881 Include main.h.
8882
8883 * windows-nat.h (windows_get_absolute_argv0): Move prototype from
8884 here...
8885 * main.h (windows_get_absolute_argv0): ...to here.
8886
02142a6c
DE
88872013-04-05 Doug Evans <dje@google.com>
8888
8889 * dwarf2read.c (struct dwarf2_per_objfile): Tweak comment.
8890 (read_cutu_die_from_dwo): Add comments.
8891 (read_structure_type): Update comment.
8892 (read_enumeration_type, read_namespace_type): Update comment.
8893 (read_die_type, get_die_type_at_offset, get_die_type): Update comment.
8894
43662968
JK
88952013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
8896
8897 Convert man pages to texinfo, new gdbinit.5 texinfo page.
8898 * Makefile.in (gdb.z): Remove.
8899 (install-only): Remove $(man1dir) and gdb.1 installation.
8900 * gdb.1: Remove.
8901
9ead1b84
JK
89022013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
8903
8904 Fix compatibility with Linux kernel 3.8.3.
8905 * linux-tdep.c (linux_find_memory_regions_full): Move variable number
8906 to more inner block. Remove parsing of NUMBER from outer block.
8907 Parse NUMBER only if KEYWORD has been identified.
8908
d1794952
JK
89092013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
8910
8911 Fix variable name shadowing.
8912 * linux-tdep.c (linux_find_memory_regions_full): Rename outer variable
8913 filename to mapsfilename and update its uses.
8914
9025569e
EZ
89152013-04-05 Eli Zaretskii <eliz@gnu.org>
8916
8917 * Makefile.in (TAGS): Avoid warning from etags when $GDB_NM_FILE is
8918 empty. See http://sourceware.org/ml/gdb-patches/2012-08/msg00504.html
8919 and http://sourceware.org/ml/gdb-patches/2013-04/msg00055.html for
8920 details of the problem.
8921
c9a6ce02
PA
89222013-04-04 Pedro Alves <palves@redhat.com>
8923 Hui Zhu <hui@codesourcery.com>
8924
8925 * breakpoint.c (validate_commands_for_breakpoint): If validating a
8926 tracepoint, reset its STEP_COUNT and call validate_actionline.
8927
5ff888ce
DE
89282013-04-03 Doug Evans <dje@google.com>
8929
bf6af496
DE
8930 * dwarf2read.c (read_die_and_siblings_1): Renamed from
8931 read_die_and_siblings.
8932 (read_die_and_siblings): New function.
8933 (read_cutu_die_from_dwo): Dump die if requested.
8934 (read_die_and_children): Call read_full_die_1 and
8935 read_die_and_siblings_1.
8936 (read_full_die): Dump die if requested.
8937
8938 * dwarf2read.c (read_comp_units_from_section): Add debugging printf.
8939
0ac5b59e
DE
8940 * dwarf2read.c (struct dwo_file): New member comp_dir.
8941 Rename member name to dwo_name. All uses updated.
8942 (hash_dwo_file): Include comp_dir in computation.
8943 (eq_dwo_file): Ditto.
8944 (lookup_dwo_file_slot): New arg comp_dir. All callers updated.
8945 (create_dwo_in_dwp, lookup_dwo_in_dwp, open_and_init_dwo_file): Ditto.
8946
5ff888ce
DE
8947 * psymtab.c (read_psymtabs_with_fullname): Don't call
8948 psymtab_to_fullname if the basenames are different.
8949
ec83d211
JK
89502013-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
8951
8952 * NEWS (Changes in GDB 7.6): Update the data-disassemble for "fullname".
8953 New entry about "fullname" presence.
8954
4f4352f7
PA
89552013-04-03 Pedro Alves <palves@redhat.com>
8956
8957 * NEWS: Mention x86_64/Cygwin as new native configuration.
8958
3d1d5ea3
DE
89592013-04-02 Doug Evans <dje@google.com>
8960
8961 * dwarf2read.c (read_structure_type): Fix typo in comment.
8962
be9a8770
PA
89632013-04-02 Pedro Alves <palves@redhat.com>
8964
8965 * NEWS: Mention "set/show debug aarch64", "set/show debug
8966 coff-pe-read" and "set/show debug mach-o".
8967
a46c1e42
PA
89682013-04-02 Pedro Alves <palves@redhat.com>
8969
8970 * NEWS: Mention "set/show remote trace-buffer-size-packet".
8971
3ad18b19
EZ
89722013-04-02 Eli Zaretskii <eliz@gnu.org>
8973
8974 * Makefile.in (HFILES_NO_SRCDIR): Remove call-cmds.h.
8975 gdb_string.h is now in common/.
8976
e9f1758d
PA
89772013-04-02 Pedro Alves <palves@redhat.com>
8978
8979 * NEWS: Move "set debug notification" and "set trace-buffer-size"
8980 under "New options".
8981
049dc89b
JK
89822013-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8983
8984 Revert this patch:
8985 PR gdb/15275
8986 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
8987
c33e31fd
PA
89882013-04-02 Pedro Alves <palves@redhat.com>
8989
8990 PR gdb/15275
8991
8992 * remote.c (send_interrupt_sequence): Use remote_serial_write.
8993 (remote_serial_write): New function.
8994 (putpkt_binary, getpkt_or_notif_sane_1): Use remote_serial_write.
8995
ea5f3910
JW
89962013-04-01 Jiong Wang <jiwang@tilera.com>
8997
8998 * NEWS: Mention TILE-Gx in "New native configurations" and
f5aee5ee 8999 "New targets" sections.
ea5f3910 9000
5c6fa7ab
DE
90012013-04-01 Doug Evans <dje@google.com>
9002
c0f78cd4
DE
9003 * dwarf2read.c (lookup_signatured_type_at_offset): Delete.
9004 (process_enumeration_scope): Simplify.
9005
0186c6a7
DE
9006 * dwarf2read.c (struct dwarf2_per_cu_data): Move member
9007 type_unit_group ...
9008 (struct signatured_type): ... to here.
9009 (sig_type_ptr): New typedef.
9010 (type_unit_group): Delete member 't.first_cu'. Move member 'tus'
9011 out of union 't'. All uses updated.
9012 (dw2_get_file_names_reader): Assert not called for a type unit.
9013 (dw2_get_file_names): Assert not called for a type unit or type
9014 unit group.
9015 (build_type_psymtabs_reader): Assert called for a type unit.
9016 (build_type_psymtab_dependencies): Assert called for a type unit group.
9017
5c6fa7ab
DE
9018 * dwarf2read.c (free_dwo_file): Add comment.
9019 (dwarf2_per_objfile_free): Unref dwp bfd.
9020
b3c0ad67 90212013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
cebca8c1
AR
9022
9023 * coff-pe-read.c (add_pe_exported_sym): Remove unused 'dll_name_len'.
9024 (add_pe_forwarded_sym): Remove unused 'section', 'dll_name_len'.
9025 (read_pe_exported_syms): Remove unused 'exportix'.
9026 (pe_text_section_offset): Remove unused 'opthdr_ofs', 'num_entries',
9027 'export_rva', 'export_size', 'expptr', 'exp_funcbase', 'expdata',
9028 'erva', 'name_rvas', 'ordinals', 'nexp', 'ordbase', 'dll_name'.
9029
e2df1547
AR
90302013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
9031
9032 * breakpoint.c (parse_cond_to_aexpr): Remove unused 'old_chain'.
9033 (print_it_watchpoint): Remove unused 'bl'.
9034 (say_where): Remove unused 'uiout'.
9035 (bpstat_remove_breakpoint_callback): Remove unused 'uiout'.
9036 (bkpt_breakpoint_hit): Remove unused 'b'.
9037 (internal_bkpt_print_it): Remove unused 'uiout'.
9038 * buildsym.c (augment_type_symtab): Remove unused 'i'.
9039
d81e75c0
TD
90402013-03-31 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
9041
9042 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_float): New function.
9043 (ppc64_sysv_abi_push_dummy_call): Handle complex arguments.
9044
5a8b3f62
DE
90452013-03-29 Doug Evans <dje@google.com>
9046
ab5088bf
DE
9047 * dwarf2read.c (open_dwo_file): Renamed from open_dwop_file.
9048 Delete arg is_dwp. All callers updated.
9049 (open_dwp_file): New function.
9050 (open_and_init_dwp_file): Call it.
9051 (get_dwp_file): New function.
9052 (lookup_dwo_cutu): Call it.
9053
a8ad1e57
DE
9054 * dwarf2read.c (open_and_init_dwp_file): Remove incorrect, and
9055 unnecessary, cleanup.
9056
6296d8c1
DE
9057 * dwarf2read.c (lookup_dwo_cutu): Improve complaint text.
9058
b0c7bfa9
DE
9059 * dwarf2read.c (read_cutu_die_from_dwo): New function.
9060 (lookup_dwo_unit): New function.
9061 (init_cutu_and_read_dies): Move DWO handling to new functions.
9062
c88ee1f0
DE
9063 * dwarf2read.c (struct signatured_type): Tweak comment.
9064 (struct dwo_unit): Tweak comment.
9065 (create_debug_types_hash_table): Tweak comment. Reformat long line.
9066 (create_dwo_debug_info_hash_table): Tweak comment.
9067 (dwarf2_per_cu_offset_and_type): Tweak comment.
9068
5a8b3f62
DE
9069 * dwarf2read.c (lookup_signatured_type): Remove complaint about
9070 missing .debug_types section.
9071
9852c492
YQ
90722013-03-29 Yao Qi <yao@codesourcery.com>
9073
9074 * corelow.c: Include "completer.h".
9075 (_initialize_corelow): Call add_target_with_completer with
9076 argument 'filename_completer'.
9077 * tracepoint.c: Likewise.
9078 * exec.c (_initialize_exec): Likewise.
9079 * target.c (add_target): Rename to ...
9080 (add_target_with_completer): ... this. Call set_cmd_completer
9081 if parameter completer is not NULL.
9082 (add_target): New.
9083 * target.h: Include "command.h".
9084 (add_target_with_completer): Declare it.
9085
af312be7
JB
90862013-03-28 Joel Brobecker <brobecker@adacore.com>
9087
9088 * coffread.c (is_import_fixup_symbol): New function.
9089 (record_minimal_symbol): Use is_import_fixup_symbol to
9090 detect import fixup symbols, and discard them.
9091
8a0459fd
DE
90922013-03-28 Doug Evans <dje@google.com>
9093
0349ea22
DE
9094 * dwarf2read.c (create_debug_types_hash_table): Don't allocate the
9095 types hash table until we know we need it.
9096
f652bce2
DE
9097 * dwarf2read.c (create_addrmap_from_index): Complain about bad CU
9098 index numbers.
9099
e4a48d9d
DE
9100 * dwarf2read.c (dw2_get_file_names): Delete arg "objfile".
9101 All callers updated.
9102 (dw2_print_stats): Print #read CUs too.
9103 (dump_die_shallow): Print signatured types better.
9104
8a0459fd
DE
9105 * dwarf2read.c (struct dwarf2_per_cu_data): Rename member
9106 info_or_types_section to section. All uses updated.
9107 (struct dwo_unit): Ditto.
9108
bd3eecc3
PA
91092013-03-28 Pedro Alves <palves@redhat.com>
9110
9111 * NEWS (New options): New section.
9112 (New options): Mention set/show remote trace-status-packet.
9113 * remote.c (PACKET_qTStatus): New enumeration value.
9114 (remote_get_trace_status): Skip sending qTStatus if the packet is
9115 disabled. Use packet_ok.
9116 (_initialize_remote): Register a configuration command for
9117 qTStatus packet.
9118
41245087
DE
91192013-03-28 Doug Evans <dje@google.com>
9120
7edbb660
DE
9121 * symfile.c (find_separate_debug_file): Add comment.
9122 (terminate_after_last_dir_separator): Tweak comment.
9123
0018ea6f
DE
9124 * dwarf2read.c (create_partial_symtab): Add forward decl.
9125 (create_partial_symtab): Move to be closer to other psymtab functions.
9126 (process_psymtab_comp_unit_reader, process_psymtab_comp_unit): Ditto.
9127
ca69b9e6
DE
9128 * dwarf2read.c (dwarf2_physname): Move declaration to better spot.
9129 (compute_symtab_includes): Remove unnecessary forward declaration.
9130 (die_needs_namespace): Add comment marking group of functions for
9131 dwarf2 name computation.
9132
a9375afe
DE
9133 * typeprint.c (_initialize_typeprint): Improve type help text.
9134
41245087
DE
9135 * python/python.c (finish_python_initialization): Provide suggestion
9136 for how to tell gdb to find its python files.
9137
7f7cc265
PA
91382013-03-28 Pedro Alves <palves@redhat.com>
9139
9140 PR gdb/15294
9141
9142 * source.c (_initialize_source): Change back "set listsize" to an
9143 integer command.
9144
ec21308c
JK
91452013-03-27 Gareth McMullin <gareth@blacksphere.co.nz>
9146
9147 PR gdb/15275
9148 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
9149
840a9a1f
PA
91502013-03-27 Pedro Alves <palves@redhat.com>
9151
9152 * top.c (history_size): Rename to ...
9153 (history_size_setshow_var): ... this. Add comment.
9154 (show_commands): Use readline's 'history_length' instead of
9155 computing the history length by calling history_get in a loop.
9156 (set_history_size_command): Error out for sizes over INT_MAX.
9157 Restore previous history size on invalid size.
9158 (init_history): If HISTSIZE is negative, leave the history size as
9159 zero. Add comments.
9160 (init_main): Adjust.
9161
826ecc4d
PA
91622013-03-27 Pedro Alves <palves@redhat.com>
9163
9164 * coff-pe-read.c (_initialize_coff_pe_read): Rename "set debug
9165 coff_pe_read" command to "set debug coff-pe-read".
9166
0ccfeeae
MM
91672013-03-27 Markus Metzger <markus.t.metzger@intel.com>
9168
9169 * record.c (command_size_to_target_size): Fix size comparison.
9170 Change parameter type from pointer to integer to integer.
9171 Update all users.
9172
40653b35
PM
91732013-03-27 Pierre Muller <muller@sourceware.org>
9174
9175 * windows-nat.c (handle_output_debug_string): Avoid typecast
9176 from integer of different size warning.
9177
c62fa0e2
JB
91782013-03-26 Joel Brobecker <brobecker@adacore.com>
9179
9180 * windows-nat.c (handle_output_debug_string): Add empty line
9181 after local block variable definition.
9182
2c619be2
PA
91832013-03-26 Pedro Alves <palves@redhat.com>
9184
9185 * ser-tcp.c (wait_for_connect): Make 'polls' parameter unsigned.
9186 (net_open): Make 'polls' local unsigned.
9187
1b493192
PA
91882013-03-26 Pedro Alves <palves@redhat.com>
9189
9190 * remote.c (_initialize_remote): Make "set remoteaddresssize"
9191 a zuinteger command instead of uinteger.
9192
7ee70bf5
PA
91932013-03-26 Pedro Alves <palves@redhat.com>
9194
9195 * record-full.c (record_full_insn_num): Make it unsigned.
9196 (record_full_check_insn_num, record_full_message)
9197 (record_full_registers_change, record_full_xfer_partial): Remove
9198 record_full_insn_max_num check (it's always != 0).
9199 (record_full_info, record_full_restore): Use %u as format string.
9200 (): Use %u as format string.
9201 (set_record_full_insn_max_num): Remove record_full_insn_max_num
9202 check (it's always != 0).
9203
dfd1f9bb
PA
92042013-03-26 Pedro Alves <palves@redhat.com>
9205
9206 * dcache.c (_initialize_dcache): Make the "set dcache line-size"
9207 and "set dcache size" commands zuinteger instead of uinteger.
9208
addb4faf
PA
92092013-03-26 Pedro Alves <palves@redhat.com>
9210
9211 * cris-tdep.c (_initialize_cris_tdep): Make the "set cris-version"
9212 command zuinteger instead of uinteger.
9213
b75bf488
PA
92142013-03-26 Pedro Alves <palves@redhat.com>
9215
9216 * coff-pe-read.c (_initialize_coff_pe_read): Make the command
9217 zuinteger instead of uinteger.
9218
42c634cb
PA
92192013-03-26 Pedro Alves <palves@redhat.com>
9220
9221 * record.c (record_insn_history_size_setshow_var)
9222 (record_call_history_size_setshow_var): New globals.
9223 (command_size_to_target_size): New function.
9224 (cmd_record_insn_history, cmd_record_call_history): Use
9225 command_size_to_target_size instead of cast.
9226 (validate_history_size, set_record_insn_history_size)
9227 (set_record_call_history_size): New functions.
9228 (_initialize_record): Install set_record_insn_history_size and
9229 set_record_call_history_size as "set" hooks of "set record
9230 instruction-history-size" and "set record
9231 function-call-history-size".
9232
1fb2e2b5
PA
92332013-03-26 Pedro Alves <palves@redhat.com>
9234
9235 * top.c (gdb_rl_operate_and_get_next): Replace max_input_history
9236 use with history_max_entries use. Remove FIXME note.
9237
99c819ee
MM
92382013-03-26 Markus Metzger <markus.t.metzger@intel.com>
9239
9240 * record-btrace.c (record_btrace_close): Call
9241 record_btrace_auto_disable.
9242
9f9e404c
JB
92432013-03-25 Joel Brobecker <brobecker@adacore.com>
9244
9245 * rs6000-nat.c (fixup_breakpoints): Delete declaration.
9246
ebcdfe33
DE
92472013-03-25 Doug Evans <dje@google.com>
9248
9249 * contrib/cc-with-tweaks.sh: Check exit code of dwp.
9250
24955f63
TT
92512013-03-25 Tom Tromey <tromey@redhat.com>
9252
9253 PR symtab/11462:
9254 * c-exp.y (exp): Add new productions for destructors after '.' and
9255 '->'.
9256 (write_destructor_name): New function.
9257
fce632b6
TT
92582013-03-25 Tom Tromey <tromey@redhat.com>
9259
9260 PR c++/9197:
9261 * opencl-lang.c (evaluate_subexp_opencl) <STRUCTOP_STRUCT>: Use
9262 value_struct_elt, not lookup_struct_elt_type.
9263 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
9264 STRUCTOP_PTR>: Use value_struct_elt, not lookup_struct_elt_type.
9265 * expression.h (EVAL_AVOID_SIDE_EFFECTS): Update comment.
9266
a4341769
YQ
92672013-03-25 Yao Qi <yao@codesourcery.com>
9268
9269 * ctf.c [USE_WIN32API]: Undef 'mkdir' and use 'mkdir'
9270 instead of '_mkdir'.
9271
b5981e5a
EZ
92722013-03-23 Eli Zaretskii <eliz@gnu.org>
9273
9274 * windows-nat.c (windows_get_absolute_argv0): New function.
9275 * windows-nat.h: Add its prototype.
9276
9277 * main.c (get_init_files): Use filename_ncmp instead of strncmp.
9278 Use IS_DIR_SEPARATOR instead of looking for a character inside
9279 SLASH_STRING. Include filenames.h.
9280 (captured_main) [__MINGW32__]: Make argv[0] absolute, so that
9281 relocate_gdb_directory works when passed gdb_program_name.
9282 Include windows-nat.h.
9283
598d3636
JK
92842013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
9285
9286 * exceptions.h (enum errors): New entry TARGET_CLOSE_ERROR.
9287 * remote.c (trace_error): Remove the special handling of '2'.
9288 (readchar) <SERIAL_EOF>
9289 (readchar) <SERIAL_ERROR>
9290 (getpkt_or_notif_sane_1): Use TARGET_CLOSE_ERROR for them.
9291 (remote_get_trace_status): Call throw_exception if EX is
9292 TARGET_CLOSE_ERROR.
9293 * utils.c (perror_with_name): Rename to ...
9294 (throw_perror_with_name): ... here. New parameter errcode, describe it
9295 in the function comment.
9296 (perror_with_name): New function wrapper.
9297 * utils.h (enum errors): New stub declaration.
9298 (throw_perror_with_name): New declaration.
9299
82b821e9
PA
93002013-03-22 Pedro Alves <palves@redhat.com>
9301 Yao Qi <yao@codesourcery.com>
9302 Mark Kettenis <kettenis@gnu.org>
9303
9304 * cli/cli-setshow.c (do_set_command) <var_uinteger>:
9305 Don't let the user set the value to UINT_MAX directly.
9306 <var_integer>: Don't let the user set the value to INT_MAX
9307 directly.
9308
78a095c3
JK
93092013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
9310
9311 * remote.c (remote_unpush_target): New function.
9312 (remote_open_1): Remove two pop_target calls, update one comment, add
9313 comment to target_preopen call. Replace pop_target call by
9314 remote_unpush_target call.
9315 (interrupt_query, readchar, getpkt_or_notif_sane_1): Replace
9316 pop_target calls by remote_unpush_target calls.
9317
3e74e146
PA
93182013-03-22 Pedro Alves <palves@redhat.com>
9319
9320 * linux-nat.c (linux_child_follow_fork): Don't call
9321 linux_enable_event_reporting.
9322 (linux_handle_extended_wait): Don't call
9323 linux_enable_event_reporting.
9324
a2213dca
PA
93252013-03-22 Pedro Alves <palves@redhat.com>
9326
9327 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Define INSN macro,
9328 use it to rewrite the trampoline buffers with type gdb_byte[], and
9329 undefine the macro. Remove char* cast.
9330
bd712aed
DE
93312013-03-21 Doug Evans <dje@google.com>
9332
9333 New commands "mt set per-command {space,time,symtab} {on,off}".
9334 * NEWS: Add entry.
9335 * event-top.c: #include "maint.h".
9336 * main.c: #include "maint.h".
9337 * maint.c: #include <sys/time.h>, <time.h>, block.h, top.h,
9338 timeval-utils.h, maint.h, cli/cli-setshow.h.
9339 (per_command_time, per_command_space): New static globals.
9340 (per_command_symtab): New static global.
9341 (per_command_setlist, per_command_showlist): New static globals.
9342 (struct cmd_stats): Move here from utils.c.
9343 (set_per_command_time): Renamed from set_display_time in utils.c
9344 and moved here. All callers updated.
9345 (set_per_command_space): Renamed from set_display_space in utils.c
9346 and moved here. All callers updated.
9347 (count_symtabs_and_blocks): New function.
9348 (report_command_stats): Moved here from utils.c. Add support for
9349 printing symtab stats. Only print data if enabled before command
9350 executed.
9351 (make_command_stats_cleanup): Ditto.
9352 (sert_per_command_cmd, show_per_command_cmd): New functions.
9353 (_initialize_maint_cmds): Add new commands
9354 mt set per-command {space,time,symtab} {on,off}.
9355 * maint.h: New file.
9356 * top.c: #include "maint.h".
9357 * utils.c (reset_prompt_for_continue_wait_time): New function.
9358 (get_prompt_for_continue_wait_time): New function.
9359 * utils.h (reset_prompt_for_continue_wait_time): Declare
9360 (get_prompt_for_continue_wait_time): Declare.
9361 (make_command_stats_cleanup): Moved to maint.h.
9362 (set_display_time, set_display_space): Moved to maint.h and renamed
9363 to set_per_command_time, set_per_command_space.
9364 * cli/cli-setshow.c (parse_cli_boolean_value): Renamed from
9365 parse_binary_operation and made non-static. Don't call error,
9366 just return an error marker. All callers updated.
9367 * cli/cli-setshow.h (parse_cli_boolean_value): Declare.
9368
d76488d8
TT
93692013-03-21 Tom Tromey <tromey@redhat.com>
9370
9371 * symfile.c (alloc_section_addr_info): Update header. Don't set
9372 'num_sections' field.
9373 (build_section_addr_info_from_section_table): Set 'num_sections'.
9374 (build_section_addr_info_from_bfd): Likewise.
9375 (build_section_addr_info_from_objfile): Remove dead loop
9376 condition.
9377 (free_section_addr_info): Unconditionally call xfree.
9378 (relative_addr_info_to_section_offsets, addrs_section_sort)
9379 (addr_info_make_relative, syms_from_objfile_1): Remove dead loop
9380 condition.
9381 (syms_from_objfile_1): Remove dead 'if' condition. Check
9382 'num_sections'.
9383 (add_symbol_file_command): Set 'num_sections'.
9384 * symfile-mem.c (symbol_file_add_from_memory): Set
9385 'num_sections'.
9386 * somread.c (som_symfile_offsets): Remove dead loop condition.
9387 * machoread.c (macho_symfile_offsets): Remove dead 'if'.
9388 * jit.c (jit_bfd_try_read_symtab): Set 'num_sections'.
9389
a72e5169 93902013-03-21 Tom Tromey <tromey@redhat.com>
92bc6a20
TT
9391
9392 * tracepoint.h (decode_agent_options): Add 'trace_string'
9393 argument.
9394 * tracepoint.c (decode_agent_options): Add 'trace_string'
9395 argument.
9396 (validate_actionline): Update.
9397 (collect_symbol): Add 'trace_string' argument.
9398 (struct add_local_symbols_data) <trace_string>: New field.
9399 (do_collect_symbol): Update.
9400 (add_local_symbols): Add 'trace_string' argument.
9401 (encode_actions_1): Update.
9402 (trace_dump_actions): Update.
9403 * dwarf2loc.c (access_memory): Update.
9404 * ax.h (struct agent_expr) <tracing, trace_string>: New fields.
9405 * ax-general.c (new_agent_expr): Update.
9406 * ax-gdb.h (gen_trace_for_expr, gen_trace_for_var)
9407 (gen_trace_for_return_address): Add argument.
9408 (trace_kludge, trace_string_kludge): Remove.
9409 * ax-gdb.c (trace_kludge, trace_string_kludge): Remove.
9410 (gen_traced_pop, gen_fetch, gen_bitfield_ref, gen_expr): Update.
9411 (gen_trace_for_var): Add 'trace_string' argument.
9412 (gen_trace_for_expr, gen_trace_for_return_address): Likewise.
9413 (gen_printf, agent_eval_command_one): Update.
9414
b2f83c08
TT
94152013-03-21 Tom Tromey <tromey@redhat.com>
9416
9417 PR exp/15109:
9418 * c-exp.y (yylex): Rewrite to push all tokens onto the FIFO.
9419 Handle FILENAME token.
9420
9507860e
TT
94212013-03-21 Tom Tromey <tromey@redhat.com>
9422
9423 * c-exp.y (YYPRINT): Define.
9424 (c_print_token): New function.
9425
e403aa4b
TT
94262013-03-21 Tom Tromey <tromey@redhat.com>
9427
9428 * c-exp.y (%union) <sym, ivar, ivec>: Remove.
9429
af307d6a
YQ
94302013-03-21 Yao Qi <yao@codesourcery.com>
9431
9432 * ctf.c: Include "gdb_stat.h".
9433 [USE_WIN32API]: New macro 'mkdir'.
9434 (ctf_start): Use permission bits macros if they are defined.
9435
fb81d016
KS
94362013-03-20 Keith Seitz <keiths@redhat.com>
9437
9438 * breakpoint.h (struct breakpoint): Add comment to
9439 extra_string indicating that this member is mallod'd.
9440 * breakpoint.c (base_breakpoint_dtor): Free extra_string.
9441
ef0026f0
PA
94422013-03-20 Pedro Alves <palves@redhat.com>
9443
9444 PR gdb/15289
9445
9446 * cli/cli-setshow.c (do_set_command)
9447 <var_uinteger, var_zuinteger>: Use LONGEST for variable holding
9448 the result of parsing the command argument. Throw error if the
9449 value is greater than UINT_MAX. Print the invalid value with
9450 plongest.
9451 <var_integer, var_zinteger>: Use LONGEST for variable holding the
9452 result of parsing the command argument. Throw error if the value
9453 is greater than INT_MAX, not greater or equal. Also throw error
9454 if the value is less than INT_MIN. Print the invalid value with
9455 plongest.
9456 <var_zuinteger_unlimited>: Throw error if the value is greater
9457 than INT_MAX, not greater or equal.
9458 (do_show_command) <var_integer, var_zinteger,
9459 var_zuinteger_unlimited>: Use %d for printing int, not %u.
9460
24d6c2a0
TT
94612013-03-20 Tom Tromey <tromey@redhat.com>
9462
9463 * ax-gdb.c (gen_var_ref): Unconditionally call via computed ops,
9464 if possible.
9465 * dwarf2read.c (read_func_scope): Remove old FIXME.
9466 * eval.c (evaluate_subexp_standard): Check SYMBOL_COMPUTED_OPS,
9467 not LOC_COMPUTED.
9468 * findvar.c (symbol_read_needs_frame, default_read_var_value):
9469 Unconditionally call via computed ops, if possible.
9470 * printcmd.c (address_info): Unconditionally call via computed ops,
9471 if possible.
9472 * stack.c (read_frame_arg): Unconditionally call via computed ops,
9473 if possible.
9474 * symtab.c (register_symbol_computed_impl): Sanity check 'ops'.
9475 * tracepoint.c (scope_info): Unconditionally call via computed ops,
9476 if possible.
9477
f1e6e072
TT
94782013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9479 Tom Tromey <tromey@redhat.com>
9480
9481 PR symtab/8421:
9482 * coffread.c (coff_register_index): New global.
9483 (process_coff_symbol, coff_read_enum_type): Set
9484 SYMBOL_ACLASS_INDEX.
9485 (_initialize_coffread): Initialize new global.
9486 * dwarf2loc.c (locexpr_find_frame_base_location)
9487 (dwarf2_block_frame_base_locexpr_funcs)
9488 (loclist_find_frame_base_location)
9489 (dwarf2_block_frame_base_loclist_funcs): New.
9490 (dwarf_expr_frame_base_1): Call SYMBOL_BLOCK_OPS, remove internal_error.
9491 (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Add location_has_loclist.
9492 * dwarf2loc.h (dwarf2_block_frame_base_locexpr_funcs)
9493 (dwarf2_block_frame_base_loclist_funcs): New.
9494 * dwarf2read.c (dwarf2_locexpr_index, dwarf2_loclist_index)
9495 (dwarf2_locexpr_block_index, dwarf2_loclist_block_index): New
9496 globals.
9497 (read_func_scope): Update.
9498 (fixup_go_packaging, mark_common_block_symbol_computed)
9499 (var_decode_location, new_symbol_full, dwarf2_const_value):
9500 Set SYMBOL_ACLASS_INDEX.
9501 (dwarf2_symbol_mark_computed): Likewise. Add 'is_block' argument.
9502 (_initialize_dwarf2_read): Initialize new globals.
9503 * jit.c (finalize_symtab): Set SYMBOL_ACLASS_INDEX.
9504 * jv-lang.c (add_class_symbol): Set SYMBOL_ACLASS_INDEX.
9505 * mdebugread.c (mdebug_register_index, mdebug_regparm_index): New
9506 globals.
9507 (parse_symbol, psymtab_to_symtab_1): Set SYMBOL_ACLASS_INDEX.
9508 (_initialize_mdebugread): Initialize new globals.
9509 * psympriv.h (struct partial_symbol) <aclass>: Update comment.
9510 * stabsread.c (patch_block_stabs): Set SYMBOL_ACLASS_INDEX.
9511 (stab_register_index, stab_regparm_index): New globals.
9512 (define_symbol, read_enum_type, common_block_end): Set
9513 SYMBOL_ACLASS_INDEX.
9514 (_initialize_stabsread): Initialize new globals.
9515 * symtab.c (next_aclass_value, symbol_impl, symbol_impls): New
9516 globals.
9517 (MAX_SYMBOL_IMPLS): New define.
9518 (register_symbol_computed_impl, register_symbol_block_impl)
9519 (register_symbol_register_impl)
9520 (initialize_ordinary_address_classes): New functions.
9521 (_initialize_symtab): Call initialize_ordinary_address_classes.
9522 * symtab.h (enum address_class) <LOC_FINAL_VALUE>: New constant.
9523 (struct symbol_impl): New.
9524 (SYMBOL_ACLASS_BITS): New define.
9525 (struct symbol) <aclass, ops>: Remove fields.
9526 <aclass_index>: New field.
9527 (symbol_impls): Declare.
9528 (SYMBOL_CLASS, SYMBOL_COMPUTED_OPS, SYMBOL_REGISTER_OPS): Redefine.
9529 (SYMBOL_IMPL, SYMBOL_ACLASS_INDEX): New defines.
9530 (register_symbol_computed_impl, register_symbol_block_impl)
9531 (register_symbol_register_impl): Declare.
9532 (struct symbol_computed_ops): Add location_has_loclist.
9533 (struct symbol_block_ops): New.
9534 (SYMBOL_BLOCK_OPS): New.
9535 * xcoffread.c (process_xcoff_symbol): Set SYMBOL_ACLASS_INDEX.
9536
dbccfd4c
TT
95372013-03-20 Tom Tromey <tromey@redhat.com>
9538
9539 * psymtab.c (find_pc_sect_psymbol, fixup_psymbol_section)
9540 (print_partial_symbols, recursively_search_psymtabs): Use
9541 PSYMBOL_CLASS.
9542
e3f1ad4f
PM
95432013-03-20 Pierre Muller <muller@sourceware.org>
9544
9545 * contrib/ari/gdb_ari.sh (OP eol rule): Also check
9546 addtion, subtraction, multiplication and division binary operator.
9547
460014f5
JK
95482013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9549
9550 Code cleanup.
9551 * bfd-target.c (target_bfd_xclose): Remove parameter quitting.
9552 * bsd-kvm.c (bsd_kvm_close): Likewise.
9553 * bsd-uthread.c (bsd_uthread_close): Likewise.
9554 * corelow.c (core_close): Likewise.
9555 (core_close_cleanup): Remove parameter quitting from a caller.
9556 * event-top.c (async_disconnect): Likewise.
9557 * exec.c (exec_close_1): Remove parameter quitting.
9558 * go32-nat.c (go32_close): Likewise.
9559 * linux-nat.c (linux_nat_close): Remove parameter quitting. Remove
9560 parameter quitting from a caller.
9561 * mips-linux-nat.c (super_close): Remove parameter quitting from the
9562 variable.
9563 (mips_linux_close): Remove parameter quitting. Remove parameter
9564 quitting from a caller.
9565 * monitor.c (monitor_close): Remove parameter quitting.
9566 * monitor.h (monitor_close): Likewise.
9567 * record-btrace.c (record_btrace_close): Likewise.
9568 * record-full.c (record_full_close): Likewise.
9569 * remote-m32r-sdi.c (m32r_close): Remove parameter quitting and remove
9570 it also from fprintf_unfiltered.
9571 * remote-mips.c (mips_close): Remove parameter quitting.
9572 (mips_detach): Remove parameter quitting from a caller.
9573 * remote-sim.c (gdbsim_close): Remove parameter quitting.
9574 (gdbsim_close): Remove duplicate function comment. Remove parameter
9575 quitting and remove it also from printf_filtered.
9576 * remote.c (remote_close): Remove parameter quitting.
9577 * solib-svr4.c (enable_break): Remove parameter quitting from a caller.
9578 * target.c (update_current_target): Remove parameter int from to_close
9579 de_fault.
9580 (push_target, unpush_target, pop_target): Remove parameter quitting from
9581 a caller.
9582 (pop_all_targets_above, pop_all_targets): Remove parameter quitting.
9583 Remove parameter quitting from a caller.
9584 (target_preopen): Remove parameter quitting from a caller.
9585 (target_close): Remove parameter quitting. Remove parameter quitting
9586 from a caller two times. Remove parameter quitting also from
9587 fprintf_unfiltered.
9588 * target.h (struct target_ops): Remove parameter quitting and as int
9589 from fields to_xclose and to_close.
9590 (extern struct target_ops current_target):
9591 (target_close, pop_all_targets): Remove parameter quitting. Update the
9592 comment.
9593 (pop_all_targets_above): Remove parameter quitting.
9594 * top.c (quit_target): Remove parameter quitting from a caller.
9595 * tracepoint.c (tfile_close): Remove parameter quitting.
9596 * windows-nat.c (windows_close): Remove parameter quitting.
9597
35a7120b
CV
95982013-03-20 Corinna Vinschen <vinschen@redhat.com>
9599
9600 * windows-nat.c (handle_output_debug_string): Replace call
9601 to string_to_core_addr with call to strtoull.
9602
8249a5a9
YQ
96032013-03-20 Yao Qi <yao@codesourcery.com>
9604
9605 * ctf.c (ctf_save_metadata_header): Define macro HOST_ENDIANNESS
9606 and write it to CTF metadata.
9607
2c15ef43
CV
96082013-03-19 Corinna Vinschen <vinschen@redhat.com>
9609
9610 * windows-nat.c (handle_output_debug_string): Change type of n to
9611 SIZE_T to avoid crash on 64 bit systems.
9612
1cdd3232
EZ
96132013-03-17 Eli Zaretskii <eliz@gnu.org>
9614
9615 * python/python-internal.h (HAVE_SNPRINTF)
9616 [_WIN32 && HAVE_DECL_SNPRINTF]: Define, to avoid compiler warnings
9617 about redefinition of snprintf by pyerrors.h.
9618
3cb2ab1a
SE
96192013-03-15 Steve Ellcey <sellcey@mips.com>
9620
9621 * remote-sim.c (sim_command_completer): Make char arguments const.
9622
9ce98649
TT
96232013-03-15 Tom Tromey <tromey@redhat.com>
9624
9625 PR c++/15116:
9626 * gdbtypes.c (types_equal): Handle TYPE_CODE_FUNC.
9627
dccee2de
TT
96282013-03-14 Tom Tromey <tromey@redhat.com>
9629
9630 * gdb_bfd.c (struct gdb_bfd_data) <crc_computed, crc>:
9631 New fields.
9632 (get_file_crc): Move from symfile.c.
9633 (gdb_bfd_crc): New function.
9634 * gdb_bfd.h (gdb_bfd_crc): Declare.
9635 * objfiles.h (struct objfile) <crc32, crc32_p>: Remove.
9636 * symfile.c (get_file_crc): Move to gdb_bfd.c.
9637 (separate_debug_file_exists): Use gdb_bfd_crc.
9638
cc0ea93c
TT
96392013-03-14 Tom Tromey <tromey@redhat.com>
9640
9641 * symfile.c (get_debug_link_info): Remove.
9642 (find_separate_debug_file_by_debuglink): Use
9643 bfd_get_debug_link_info.
9644
08c23b0d
TT
96452013-03-14 Tom Tromey <tromey@redhat.com>
9646
9647 * symtab.c (error_in_psymtab_expansion): New function.
9648 (lookup_symbol_aux_quick)
9649 (basic_lookup_transparent_type_quick): Remove "last resort"
9650 code. Use error_in_psymtab_expansion.
9651
288e77a7
JK
96522013-03-14 Doug Evans <dje@google.com>
9653 Jan Kratochvil <jan.kratochvil@redhat.com>
9654
9655 * dwarf2read.c (dw2_map_symtabs_matching_filename): Put continue after
9656 any successful compare_filenames_for_search or FILENAME_CMP.
9657 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
9658 * symtab.c (iterate_over_some_symtabs): Likewise.
9659
8f1b8b82
JK
96602013-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9661
9662 * source.c (print_source_lines_base): Make a local copy of
9663 symtab_to_fullname.
9664
23eb71e4
JK
96652013-03-14 Hui Zhu <hui_zhu@mentor.com>
9666 Jan Kratochvil <jan.kratochvil@redhat.com>
9667
9668 * source.c (print_source_lines_base): Suppress "file" for TUI.
9669
bb869963
SDJ
96702013-03-14 Keith Seitz <keiths@redhat.com>
9671 Alan Matsuoka <alanm@redhat.com>
9672
9673 PR c++/15203
9674 PR c++/15210
9675 * cp-namespace.c (cp_lookup_nested_symbol): Handle TYPE_CODE_FUNC and
9676 TYPE_CODE_METHOD.
9677 * elfread.c (elf_symtab_read): Handle BSF_GNU_UNIQUE for certain
9678 symbols.
9679
d6682f9e
YQ
96802013-03-14 Yao Qi <yao@codesourcery.com>
9681
9682 * tracepoint.c (tfile_write_status): Write 'stop_desc' of trace
9683 status to tfile if trace is stopped by command 'tstop'.
9684
a22fa6e4
YQ
96852013-03-14 Yao Qi <yao@codesourcery.com>
9686
9687 * tracepoint.c (tfile_write_status): Write trace notes and user
9688 name into tfile if they are not NULL.
9689
d0353e76
YQ
96902013-03-14 Hui Zhu <hui@codesourcery.com>
9691 Yao Qi <yao@codesourcery.com>
9692
9693 * Makefile.in (REMOTE_OBS): Add ctf.o.
9694 (SFILES): Add ctf.c.
9695 (HFILES_NO_SRCDIR): Add ctf.h.
9696 * ctf.c, ctf.h: New files.
9697 * tracepoint.c: Include 'ctf.h'.
9698 (collect_pseudocommand): Remove static.
9699 (trace_save_command): Parse option "-ctf".
9700 Produce different trace file writers per option.
9701 Adjust output message.
9702 (trace_save_tfile, trace_save_ctf): New.
9703 * tracepoint.h (trace_save_tfile, trace_save_ctf): Declare.
9704 * mi/mi-main.c: Include 'ctf.h'.
9705 (mi_cmd_trace_save): Handle option '-ctf'. Call either
9706 trace_save_tfile or trace_save_ctf.
9707 * NEWS: Mention these changes.
9708
3f43bc09
YQ
97092013-03-14 Yao Qi <yao@codesourcery.com>
9710
9711 * tracepoint.c (trace_file_writer_xfree): New.
9712 (struct tfile_writer_data): New.
9713 (tfile_dtor, tfile_can_target_save, tfile_start): New.
9714 (tfile_write_header, tfile_write_regblock_type): New.
9715 (tfile_write_status, tfile_write_uploaded_tsv): New.
9716 (tfile_write_uploaded_tp, tfile_write_definition_end): New.
9717 (tfile_write_raw_data, (tfile_end): New.
9718 (tfile_write_ops): New global variable.
9719 (TRACE_WRITE_R_BLOCK): New macro.
9720 (TRACE_WRITE_M_BLOCK_HEADER): New macro.
9721 (TRACE_WRITE_M_BLOCK_MEMORY): New macro.
9722 (TRACE_WRITE_V_BLOCK): New macro.
9723 (trace_save): Add extra one parameter WRITER. Make it static.
9724 Use WRITER to writer trace.
9725 (tfile_trace_file_writer_new): New.
9726 (trace_save_command): Caller update.
9727 (trace_save_tfile): Write trace data in TFILE format.
9728 * tracepoint.h (struct trace_frame_write_ops): New.
9729 (struct trace_file_write_ops): New.
9730 (struct trace_file_writer): New.
9731 (trace_save): Remove its declaration.
9732 (trace_save_tfile): Declare it.
9733 * mi/mi-main.c (mi_cmd_trace_save): Call trace_save_tfile
9734 instead of trace_save.
9735
58665b40
PA
97362013-03-13 Pedro Alves <palves@redhat.com>
9737
9738 * hppa-hpux-nat.c (hppa_hpux_save_state_offset): Make static.
9739
10217050
PA
97402013-03-13 Pedro Alves <palves@redhat.com>
9741
9742 * dbxread.c (read_ofile_symtab, process_one_symbol): Remove
9743 commented out code.
9744 * demangle.c (current_demangling_style_string): Make it const.
9745 (set_demangling_command): Assert the demangling style is known.
9746 Remove all handling of unknown styles. Set
9747 'current_demangling_style_string' to an element of the
9748 demangling_style_names array.
9749 (set_demangling_style): Delete.
9750 (_initialize_demangler): Set current_demangling_style_string to the
9751 element of the demangling_style_names array that corresponds to
9752 the default demangling style. Remove FIXME note. Don't call
9753 set_demangling_style.
9754 * gdb-demangle.h (set_demangling_style): Remove declaration.
9755
6f937416
PA
97562013-03-13 Pedro Alves <palves@redhat.com>
9757
9758 * ada-lang.c (struct add_partial_datum) <text, text0, word>: Make
9759 fields const.
9760 (ada_make_symbol_completion_list): Make "text0" parameter const.
9761 * ax-gdb.c (agent_eval_command_one): Make "exp" parameter const.
9762 * breakpoint.c (condition_completer): Make "text" and "word"
9763 parameters const. Adjust.
9764 (check_tracepoint_command): Adjust to validate_actionline
9765 prototype change.
9766 (catch_syscall_completer): Make "text" and "word" parameters
9767 const.
9768 * cli/cli-cmds.c (show_user): Make "comname" local const.
9769 (valid_command_p): Make "command" parameter const.
9770 (alias_command): Make "alias_prefix" and "command_prefix" locals
9771 const.
9772 * cli/cli-decode.c (add_cmd): Make "name" parameter const.
9773 (add_alias_cmd): Make "name" and "oldname" parameters const.
9774 Adjust. No longer make copy of OLDNAME.
9775 (add_prefix_cmd, add_abbrev_prefix_cmd, add_set_or_show_cmd)
9776 (add_setshow_cmd_full, add_setshow_enum_cmd)
9777 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
9778 (add_setshow_filename_cmd, add_setshow_string_cmd)
9779 (add_setshow_string_noescape_cmd)
9780 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
9781 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
9782 (add_setshow_zuinteger_unlimited_cmd, add_setshow_zuinteger_cmd)
9783 (delete_cmd, add_info, add_info_alias, add_com, add_com_alias):
9784 Make "name" parameter const.
9785 (help_cmd): Rename "command" parameter to "arg". New const local
9786 "command".
9787 (find_cmd): Make "command" parameter const.
9788 (lookup_cmd_1): Make "text" parameter pointer to const. Adjust to
9789 deprecated_cmd_warning prototype change.
9790 (undef_cmd_error): Make "cmdtype" parameter const.
9791 (lookup_cmd): Make "line" parameter const.
9792 (deprecated_cmd_warning): Change type of "text" parameter to
9793 pointer to const char, from pointer to pointer to char. Adjust.
9794 (lookup_cmd_composition): Make "text" parameter const.
9795 (complete_on_cmdlist, complete_on_enum): Make "text" and "word"
9796 parameters const.
9797 * cli/cli-decode.h (struct cmd_list_element) <name>: Make field
9798 const.
9799 * cli/cli-script.c (validate_comname): Make "tem" local const.
9800 (define_command): New const local "tem_c". Use it in calls to
9801 lookup_cmd.
9802 (document_command): Make "tem" and "comfull" locals const.
9803 (show_user_1): Make "prefix" and "name" parameters const.
9804 * cli-script.h (show_user_1): Make "prefix" and "name" parameters
9805 const.
9806 * command.h (add_cmd, add_alias_cmd, add_prefix_cmd)
9807 (add_abbrev_prefix_cmd, completer_ftype, lookup_cmd, lookup_cmd_1)
9808 (deprecated_cmd_warning, lookup_cmd_composition, add_com)
9809 (add_com_alias, add_info, add_info_alias, complete_on_cmdlist)
9810 (complete_on_enum, add_setshow_enum_cmd)
9811 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
9812 (add_setshow_filename_cmd, add_setshow_string_cmd)
9813 (add_setshow_string_noescape_cmd)
9814 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
9815 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
9816 (add_setshow_zuinteger_cmd, add_setshow_zuinteger_unlimited_cmd):
9817 Change prototypes, constifying strings.
9818 * completer.c (noop_completer, filename_completer): Make "text"
9819 and "prefix" parameters const.
9820 (location_completer, expression_completer)
9821 (complete_line_internal): Make "text" and "prefix" parameters
9822 const and adjust.
9823 (command_completer, signal_completer): Make "text" and "prefix"
9824 parameters const.
9825 * completer.h (noop_completer, filename_completer)
9826 (expression_completer, location_completer, command_completer)
9827 (signal_completer): Change prototypes.
9828 * corefile.c (complete_set_gnutarget): Make "text" and "word"
9829 parameters const.
9830 * cp-abi.c (cp_abi_completer): Likewise.
9831 * expression.h (parse_expression_for_completion): Change
9832 prototype.
9833 * f-lang.c (f_make_symbol_completion_list): Make "text" and "word"
9834 parameters const.
9835 * infcmd.c (_initialize_infcmd): Make "cmd_name" local const.
9836 * infrun.c (handle_completer): Make "text" and "word" parameters
9837 const.
9838 * interps.c (interpreter_completer): Make "text" and "word"
9839 parameters const.
9840 * language.h (struct language_defn)
9841 <la_make_symbol_completion_list>: Make "text" and "word"
9842 parameters const.
9843 * parse.c (parse_exp_1): Move const hack to parse_exp_in_context.
9844 (parse_exp_in_context): Rename to ...
9845 (parse_exp_in_context_1): ... this.
9846 (parse_exp_in_context): Reimplement, with const hack from
9847 parse_exp_1.
9848 (parse_expression_for_completion): Make "string" parameter const.
9849 * printcmd.c (decode_format): Make "string_ptr" parameter pointer
9850 to pointer to const char. Adjust.
9851 (print_command_1): Make "exp" parameter const.
9852 (output_command): Rename to ...
9853 (output_command_const): ... this. Make "exp" parameter const.
9854 (output_command): Reimplement.
9855 (x_command): Adjust.
9856 (display_command): Rename "exp" parameter to "arg". New "exp"
9857 local, const version of "arg".
9858 * python/py-auto-load.c (gdbpy_initialize_auto_load): Make
9859 "cmd_name" local const.
9860 * python/py-cmd.c (cmdpy_destroyer): Cast const away in xfree
9861 call.
9862 (cmdpy_completer): Make "text" and "word" parameters const.
9863 (gdbpy_parse_command_name): Make "prefix_text2" local const.
9864 * python/py-param.c (add_setshow_generic): Make "tmp_name" local
9865 const.
9866 * remote.c (_initialize_remote): Make "cmd_name" local const.
9867 * symtab.c (language_search_unquoted_string): Make "text" and "p"
9868 parameters const. Adjust.
9869 (completion_list_add_fields): Make "sym_text", "text" and "word"
9870 parameters const.
9871 (struct add_name_data) <sym_text, text, word>: Make fields const.
9872 (default_make_symbol_completion_list_break_on): Make "text" and
9873 "word" parameters const. Adjust locals.
9874 (default_make_symbol_completion_list)
9875 (make_symbol_completion_list, make_symbol_completion_type)
9876 (make_symbol_completion_list_fn): Make "text" and "word"
9877 parameters const.
9878 (make_file_symbol_completion_list): Make "text", "word" and
9879 "srcfile" parameters const. Adjust locals.
9880 (add_filename_to_list): Make "text" and "word" parameters const.
9881 (struct add_partial_filename_data) <text, word>: Make fields
9882 const.
9883 (make_source_files_completion_list): Make "text" and "word"
9884 parameters const.
9885 * symtab.h (default_make_symbol_completion_list_break_on)
9886 (default_make_symbol_completion_list, make_symbol_completion_list)
9887 (make_symbol_completion_type enum type_code)
9888 (make_symbol_completion_list_fn make_file_symbol_completion_list)
9889 (make_source_files_completion_list): Change prototype.
9890 * top.c (execute_command): Adjust to pass pointer to pointer to
9891 const char to lookup_cmd, and to deprecated_cmd_warning prototype
9892 change.
9893 (set_verbose): Make "cmdname" local const.
9894 * tracepoint.c (decode_agent_options): Make "exp" parameter const,
9895 and adjust.
9896 (validate_actionline): Make "line" parameter a pointer to const
9897 char, and adjust.
9898 (encode_actions_1): Make "action_exp" local const, and adjust.
9899 (encode_actions): Adjust.
9900 (replace_comma): Delete.
9901 (trace_dump_actions): Make "action_exp" and "next_comma" locals
9902 const, and adjust. Don't frob the action string while splitting
9903 it at commas. Instead, make a copy of each split substring in
9904 turn.
9905 (trace_dump_command): Adjust to validate_actionline prototype
9906 change.
9907 * tracepoint.h (decode_agent_options, decode_agent_options)
9908 (encode_actions, validate_actionline): Change prototypes.
9909 * valprint.h (output_command): Delete declaration.
9910 (output_command_const): Declare.
9911 * value.c (function_destroyer): Cast const away in xfree call.
9912
a0bcdaa7
PA
99132013-03-13 Pedro Alves <palves@redhat.com>
9914
9915 * ada-lang.c (ada_decode_symbol): Cast away constness of GSYMBOL
9916 rather than casting 'const char * const *' to 'const char **'.
9917 * ada-lex.l (processInt): Make "trailer" local const. Remove
9918 'const char **' cast.
9919 * arm-linux-tdep.c (arm_stap_parse_special_token): Add 'char *'
9920 locals, and use those as strtol output pointer, instead than doing
9921 invalid casts to from 'const char **' to 'char **'.
9922 (_initialize_demangle): Remove cast.
9923 * i386-tdep.c (i386_stap_parse_special_token): : Add 'char *'
9924 locals, and use those as strtol output pointer, instead than doing
9925 invalid casts to from 'const char **' to 'char **'.
9926 * solib-dsbt.c (dsbt_get_initial_loadmaps): Remove 'gdb_byte**'
9927 casts.
9928 * stap-probe.c (stap_parse_register_operand)
9929 (stap_parse_single_operand): Likewise.
9930
8ddb1965
YQ
99312013-03-13 Yao Qi <yao@codesourcery.com>
9932
9933 * tracepoint.c (tfile_get_trace_state_variable_value): Look for
9934 the last matched 'V' blcok in trace frame.
9935
2d450646
JB
99362013-03-12 Joel Brobecker <brobecker@adacore.com>
9937
9938 * NEWS: Create a new section for the next release branch.
9939 Rename the section of the current branch, now that it has
9940 been cut.
9941
b4b79973 99422013-03-12 Joel Brobecker <brobecker@adacore.com>
9943
9944 GDB 7.6 branch created (branch timestamp: 2013-03-12 22:15 UTC)
9945 * version.in: Bump version to 7.6.50.20130312-cvs.
9946
ee047554
KS
99472013-03-12 Keith Seitz <keiths@redhat.com>
9948
9949 * mi/mi-cmds.h (mi_execute_command): Make "cmd" const.
9950 * mi/mi-interp.c (mi_interpreter_exec): Make "command" const.
9951 Remove temporary copy of input string.
9952 (mi_execute_command_wrapper): Make "cmd" const.
9953 * mi/mi-main.c (mi_execute_command): Make "string_ptr" const.
9954 * mi/mi-parse.c (mi_parse_argv): Make "args" const.
9955 Use const strings.
9956 (mi_parse): Make "cmd" const.
9957 Use const strings.
9958 * mi/mi-parse.h (mi_parse): Make "cmd" const.
9959
bbc13ae3
KS
99602013-03-12 Keith Seitz <keiths@redhat.com>
9961
9962 * ada-lang.c (ada_read_renaming_var_value): Pass const
9963 pointer to expression string to parse_exp_1.
9964 (create_excep_cond_exprs): Likewise.
9965 * ax-gdb.c (agent_eval_command_one): Likewise.
9966 (maint_agent_printf_command): Likewise.
9967 Constify much of the string handling/parsing.
9968 * breakpoint.c (set_breakpoint_condition): Pass const
9969 pointer to expression string to parse_exp_1.
9970 (update_watchpoint): Likewise.
9971 (parse_cmd_to_aexpr): Constify string handling.
9972 Pass const pointer to parse_exp_1.
9973 (init_breakpoint_sal): Pass const pointer to parse_exp_1.
9974 (find_condition_and_thread): Likewise.
9975 Make TOK const.
9976 (watch_command_1): Make "arg" const.
9977 Constify string handling.
9978 Copy the expression string instead of changing the input
9979 string.
9980 (update_breakpoint_location): Pass const pointer to
9981 parse_exp_1.
9982 * eval.c (parse_and_eval_address): Make "exp" const.
9983 (parse_to_comma_and_eval): Make "expp" const.
9984 (parse_and_eval): Make "exp" const.
9985 * expression.h (parse_expression): Make argument const.
9986 (parse_exp_1): Make first argument const.
9987 * findcmd.c (parse_find_args): Treat "args" as const.
9988 * linespec.c (parse_linespec): Pass const pointer to
9989 linespec_expression_to_pc.
9990 (linespec_expression_to_pc): Make "exp_ptr" const.
9991 * parse.c (parse_exp_1): Make "stringptr" const.
9992 Make a copy of the expression to pass to parse_exp_in_context until
9993 this whole interface can be constified.
9994 (parse_expression): Make "string" const.
9995 * printcmd.c (ui_printf): Treat "arg" as const.
9996 Handle const strings.
9997 * tracepoint.c (validate_actionline): Pass const pointer to
9998 all calls to parse_exp_1.
9999 (encode_actions_1): Likewise.
10000 * value.h (parse_to_comma_and_eval): Make argument const.
10001 (parse_and_eval_address): Likewise.
10002 (parse_and_eval): Likewise.
10003 * varobj.c (varobj_create): Pass const pointer to parse_exp_1.
10004 (varobj_set_value): Likewise.
10005 * cli/cli-cmds.c (disassemble_command): Treat "arg" as const and
10006 constify string handling.
10007 Pass const pointers to parse_and_eval_address and
10008 parse_to_comman_and_eval.
10009 * cli/cli-utils.c (skip_to_space): Rename to ...
10010 (skip_to_space_const): ... this. Handle const strings.
10011 * cli/cli-utils.h (skip_to_space): Turn into macro which invokes
10012 skip_to_space_const.
10013 (skip_to_space_const): Declare.
10014 * common/format.c (parse_format_string): Make "arg" const.
10015 Handle const strings.
10016 * common/format.h (parse_format_string): Make "arg" const.
10017 * gdbserver/ax.c (ax_printf): Make "format" const.
10018 * python/python.c (gdbpy_parse_and_eval): Do not make a copy
10019 of the expression string.
10020
f3cec7e6
HZ
100212013-03-12 Hui Zhu <hui@codesourcery.com>
10022
10023 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Update error message.
10024
9df7235c
HZ
100252013-03-12 Yao Qi <yao@codesourcery.com>
10026 Hui Zhu <hui@codesourcery.com>
10027
10028 * dwarf2loc.c (access_memory): Change nbits to nbytes in gdb_assert.
10029 (dwarf2_compile_expr_to_ax): Call access_memory in DW_OP_deref and
10030 DW_OP_deref_size.
10031
82d049ab
PH
100322013-03-12 Paul Hilfinger <hilfingr@adacore.com>
10033
5f8e0b8f
MF
10034 * ada-lex.l (rules): Only recognize 'thread' as a
10035 delimiter when followed by numerals, as for c-exp.y.
10036 Use new rewind_to_char function to rewind the input for
10037 expression-delimiting tokens.
10038 (rewind_to_char): New function.
82d049ab 10039
8c1fb155
JK
100402013-03-11 Pedro Alves <palves@redhat.com>
10041 Jan Kratochvil <jan.kratochvil@redhat.com>
10042
10043 * configure: Regenerate.
10044 * configure.ac (check dynamic export flag): Link python test with
10045 $PYTHON_LIBS.
10046
cc81e1c6
DE
100472013-03-11 Doug Evans <dje@google.com>
10048 Keith Seitz <keiths@redhat.com>
10049
10050 * linespec.c (find_linespec_symbols): Call find_function_symbols
10051 first, and then call lookup_prefix_sym/find_method.
10052
39086a0e
PA
100532013-03-11 Pedro Alves <palves@redhat.com>
10054
10055 * charset.c (convert_between_encodings): Don't cast between
10056 different pointer to pointer types. Instead, make the 'inp' local
10057 be of the type iconv expects.
10058 (wchar_iterate): Don't cast between different pointer to pointer
10059 types. Instead, use new pointer local of the type iconv expects.
10060 * target.c (target_read_stralloc, target_fileio_read_stralloc):
10061 Add new local of type char pointer, and use it to get a
10062 char/string view of the byte buffer, instead of casting between
10063 pointer to pointer types.
10064
90585175
HAQ
100652013-03-11 Hafiz Abid Qadeer <abidh@codesourcery.com>
10066
10067 * remote.c (remote_set_trace_buffer_size): Move != operator
10068 to the start of next line to fix an ARI warning.
10069
59ea5688
MM
100702013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10071
10072 * NEWS: Add record changes.
10073
946287b7
MM
100742013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10075
10076 * record-btrace.c (btrace_insn_history): Omit the pc prefix in
10077 the instruction history disassembly.
10078 * disasm.c (dump_insns): Omit the pc prefix, if requested.
10079 * disasm.h (DISASSEMBLY_OMIT_PC): New.
10080
afedecd3
MM
100812013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10082
10083 * Makefile.in (SFILES): Add record-btrace.c
10084 (COMMON_OBS): Add record-btrace.o
10085 * record-btrace.c: New.
10086 * objfiles.c: Include btrace.h.
10087 (free_objfile): call btrace_free_objfile.
10088
15984c13
MM
100892013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10090
10091 * target.c (target_call_history, target_call_history_from,
10092 target_call_history_range): New.
10093 * target.h (target_ops) <to_call_history, to_call_history_from,
10094 to_call_history_range>: New fields.
10095 (target_call_history, target_call_history_from,
10096 target_call_history_range): New declaration.
10097 * record.c (get_call_history_modifiers, cmd_record_call_history,
10098 record_call_history_size): New.
10099 (_initialize_record): Add the "record function-call-history" command.
10100 Add "set/show record function-call-history-size" commands.
10101 * record.h (record_print_flag): New.
10102
67c86d06
MM
101032013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10104
10105 * target.h (target_ops) <to_insn_history, to_insn_history_from,
10106 to_insn_history_range>: New fields.
10107 (target_insn_history): New.
10108 (target_insn_history_from): New.
10109 (target_insn_history_range): New.
10110 * target.c (target_insn_history): New.
10111 (target_insn_history_from): New.
10112 (target_insn_history_range): New.
10113 * record.c: Include cli/cli-utils.h, disasm.h, ctype.h.
10114 (record_insn_history_size): New.
10115 (get_insn_number): New.
10116 (get_context_size): New.
10117 (no_chunk): New.
10118 (get_insn_history_modifiers): New.
10119 (cmd_record_insn_history): New.
10120 (_initialize_record): Add "set/show record instruction-history-size"
10121 command. Add "record instruction-history" command.
10122
7c1687a9
MM
101232013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10124
10125 * record.h (record_disconnect): New.
10126 (record_detach): New.
10127 (record_mourn_inferior): New.
10128 (record_kill): New.
10129 * record-full.c (record_disconnect, record_detach,
10130 record_mourn_inferior, record_kill): Move to...
10131 * record.c: ...here.
10132 (DEBUG): New.
10133 (record_stop): New.
10134 (record_unpush): New.
10135 (cmd_record_stop): Call record_stop. Replace unpush_target
10136 call with record_unpush call.
10137 (record_disconnect, record_detach): Assert that the target
10138 is of record stratum. Call record_unpush, record_stop, and
10139 DEBUG.
10140 (record_mourn_inferior, record_kill): Assert that the target
10141 is of record stratum. Call record_unpush and DEBUG.
10142
25ea693b
MM
101432013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10144
10145 * record-full.h, record-full.c (record_memory_query): Rename
10146 to ...
10147 (record_full_memory_query): ...this. Update all users.
10148 (record_arch_list_add_reg): Rename to ...
10149 (record_full_arch_list_add_reg): ...this. Update all users.
10150 (record_arch_list_add_mem): Rename to ...
10151 (record_full_arch_list_add_mem): ...this. Update all users.
10152 (record_arch_list_add_end): Rename to ...
10153 (record_full_arch_list_add_end): ...this. Update all users.
10154 (record_gdb_operation_disable_set): Rename to ...
10155 (record_full_gdb_operation_disable_set): ...this.
10156 Update all users.
10157
88d1aa9d
MM
101582013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10159
10160 * record-full.c (DEFAULT_RECORD_INSN_MAX_NUM): Renamed to ...
10161 (DEFAULT_RECORD_FULL_INSN_MAX_NUM): ... this. Updated all users.
10162 (RECORD_IS_REPLAY): Renamed to ...
10163 (RECORD_FULL_IS_REPLAY): ... this. Updated all users.
10164 (RECORD_FILE_MAGIC): Renamed to ...
10165 (RECORD_FULL_FILE_MAGIC): ... this. Updated all users.
10166 (record_mem_entry): Renamed to ...
10167 (record_full_mem_entry): ... this. Updated all users.
10168 (record_reg_entry): Renamed to ...
10169 (record_full_reg_entry): ... this. Updated all users.
10170 (record_end_entry): Renamed to ...
10171 (record_full_end_entry): ... this. Updated all users.
10172 (record_type) <record_end, record_reg, record_mem>: Renamed
10173 to ...
10174 (record_full_type) <record_full_end, record_full_reg,
10175 record_full_mem>: ... this. Updated all users.
10176 (record_entry): Renamed to ...
10177 (record_full_entry): ... this. Updated all users.
10178 (record_core_buf_entry): Renamed to ...
10179 (record_full_core_buf_entry): ... this. Updated all users.
10180 (record_core_regbuf): Renamed to ...
10181 (record_full_core_regbuf): ... this. Updated all users.
10182 (record_core_start): Renamed to ...
10183 (record_full_core_start): ... this. Updated all users.
10184 (record_core_end): Renamed to ...
10185 (record_full_core_end): ... this. Updated all users.
10186 (record_core_buf_list): Renamed to ...
10187 (record_full_core_buf_list): ... this. Updated all users.
10188 (record_first): Renamed to ...
10189 (record_full_first): ... this. Updated all users.
10190 (record_list): Renamed to ...
10191 (record_full_list): ... this. Updated all users.
10192 (record_arch_list_head): Renamed to ...
10193 (record_full_arch_list_head): ... this. Updated all users.
10194 (record_arch_list_tail): Renamed to ...
10195 (record_full_arch_list_tail): ... this. Updated all users.
10196 (record_stop_at_limit): Renamed to ...
10197 (record_full_stop_at_limit): ... this. Updated all users.
10198 (record_insn_max_num): Renamed to ...
10199 (record_full_insn_max_num): ... this. Updated all users.
10200 (record_insn_num): Renamed to ...
10201 (record_full_insn_num): ... this. Updated all users.
10202 (record_insn_count): Renamed to ...
10203 (record_full_insn_count): ... this. Updated all users.
10204 (record_ops): Renamed to ...
10205 (record_full_ops): ... this. Updated all users.
10206 (record_core_ops): Renamed to ...
10207 (record_full_core_ops): ... this. Updated all users.
10208 (set_record_cmdlist): Renamed to ...
10209 (set_record_full_cmdlist): ... this. Updated all users.
10210 (show_record_cmdlist): Renamed to ...
10211 (show_record_full_cmdlist): ... this. Updated all users.
10212 (record_cmdlist): Renamed to ...
10213 (record_full_cmdlist): ... this. Updated all users.
10214 (record_beneath_to_resume_ops): Renamed to ...
10215 (record_full_beneath_to_resume_ops): ... this. Updated all users.
10216 (record_beneath_to_resume): Renamed to ...
10217 (record_full_beneath_to_resume): ... this. Updated all users.
10218 (record_beneath_to_wait_ops): Renamed to ...
10219 (record_full_beneath_to_wait_ops): ... this. Updated all users.
10220 (record_beneath_to_wait): Renamed to ...
10221 (record_full_beneath_to_wait): ... this. Updated all users.
10222 (record_beneath_to_store_registers_ops): Renamed to ...
10223 (record_full_beneath_to_store_registers_ops): ... this.
10224 Updated all users.
10225 (record_beneath_to_store_registers): Renamed to ...
10226 (record_full_beneath_to_store_registers): ... this.
10227 Updated all users.
10228 (record_beneath_to_xfer_partial_ops): Renamed to ...
10229 (record_full_beneath_to_xfer_partial_ops): ... this.
10230 Updated all users.
10231 (record_beneath_to_xfer_partial): Renamed to ...
10232 (record_full_beneath_to_xfer_partial): ... this.
10233 Updated all users.
10234 (record_beneath_to_insert_breakpoint): Renamed to ...
10235 (record_full_beneath_to_insert_breakpoint): ... this.
10236 Updated all users.
10237 (record_beneath_to_stopped_by_watchpoint): Renamed to ...
10238 (record_full_beneath_to_stopped_by_watchpoint): ... this.
10239 Updated all users.
10240 (record_beneath_to_stopped_data_address): Renamed to ...
10241 (record_full_beneath_to_stopped_data_address): ... this.
10242 Updated all users.
10243 (record_beneath_to_async): Renamed to ...
10244 (record_full_beneath_to_async): ... this. Updated all users.
10245 (record_goto_insn): Renamed to ...
10246 (record_full_goto_insn): ... this. Updated all users.
10247 (record_save): Renamed to ...
10248 (record_full_save): ... this. Updated all users.
10249 (record_reg_alloc): Renamed to ...
10250 (record_full_reg_alloc): ... this. Updated all users.
10251 (record_reg_release): Renamed to ...
10252 (record_full_reg_release): ... this. Updated all users.
10253 (record_mem_alloc): Renamed to ...
10254 (record_full_mem_alloc): ... this. Updated all users.
10255 (record_mem_release): Renamed to ...
10256 (record_full_mem_release): ... this. Updated all users.
10257 (record_end_alloc): Renamed to ...
10258 (record_full_end_alloc): ... this. Updated all users.
10259 (record_end_release): Renamed to ...
10260 (record_full_end_release): ... this. Updated all users.
10261 (record_entry_release): Renamed to ...
10262 (record_full_entry_release): ... this. Updated all users.
10263 (record_list_release): Renamed to ...
10264 (record_full_list_release): ... this. Updated all users.
10265 (record_list_release_following): Renamed to ...
10266 (record_full_list_release_following): ... this.
10267 Updated all users.
10268 (record_list_release_first): Renamed to ...
10269 (record_full_list_release_first): ... this. Updated all users.
10270 (record_arch_list_add): Renamed to ...
10271 (record_full_arch_list_add): ... this. Updated all users.
10272 (record_get_loc): Renamed to ...
10273 (record_full_get_loc): ... this. Updated all users.
10274 (record_check_insn_num): Renamed to ...
10275 (record_full_check_insn_num): ... this. Updated all users.
10276 (record_arch_list_cleanups): Renamed to ...
10277 (record_full_arch_list_cleanups): ... this. Updated all users.
10278 (record_message): Renamed to ...
10279 (record_full_message): ... this. Updated all users.
10280 (record_message_wrapper): Renamed to ...
10281 (record_full_message_wrapper): ... this. Updated all users.
10282 (record_message_wrapper_safe): Renamed to ...
10283 (record_full_message_wrapper_safe): ... this. Updated all users.
10284 (record_gdb_operation_disable): Renamed to ...
10285 (record_full_gdb_operation_disable): ... this. Updated all users.
10286 (record_hw_watchpoint): Renamed to ...
10287 (record_full_hw_watchpoint): ... this. Updated all users.
10288 (record_exec_insn): Renamed to ...
10289 (record_full_exec_insn): ... this. Updated all users.
10290 (record_restore): Renamed to ...
10291 (record_full_restore): ... this. Updated all users.
10292 (record_async_inferior_event_token): Renamed to ...
10293 (record_full_async_inferior_event_token): ... this.
10294 Updated all users.
10295 (record_async_inferior_event_handler): Renamed to ...
10296 (record_full_async_inferior_event_handler): ... this.
10297 Updated all users.
10298 (record_core_open_1): Renamed to ...
10299 (record_full_core_open_1): ... this. Updated all users.
10300 (record_open_1): Renamed to ...
10301 (record_full_open_1): ... this. Updated all users.
10302 (record_open): Renamed to ...
10303 (record_full_open): ... this. Updated all users.
10304 (record_close): Renamed to ...
10305 (record_full_close): ... this. Updated all users.
10306 (record_resume_step): Renamed to ...
10307 (record_full_resume_step): ... this. Updated all users.
10308 (record_resumed): Renamed to ...
10309 (record_full_resumed): ... this. Updated all users.
10310 (record_execution_dir): Renamed to ...
10311 (record_full_execution_dir): ... this. Updated all users.
10312 (record_resume): Renamed to ...
10313 (record_full_resume): ... this. Updated all users.
10314 (record_get_sig): Renamed to ...
10315 (record_full_get_sig): ... this. Updated all users.
10316 (record_sig_handler): Renamed to ...
10317 (record_full_sig_handler): ... this. Updated all users.
10318 (record_wait_cleanups): Renamed to ...
10319 (record_full_wait_cleanups): ... this. Updated all users.
10320 (record_wait_1): Renamed to ...
10321 (record_full_wait_1): ... this. Updated all users.
10322 (record_wait): Renamed to ...
10323 (record_full_wait): ... this. Updated all users.
10324 (record_stopped_by_watchpoint): Renamed to ...
10325 (record_full_stopped_by_watchpoint): ... this. Updated all users.
10326 (record_disconnect): Renamed to ...
10327 (record_full_disconnect): ... this. Updated all users.
10328 (record_detach): Renamed to ...
10329 (record_full_detach): ... this. Updated all users.
10330 (record_mourn_inferior): Renamed to ...
10331 (record_full_mourn_inferior): ... this. Updated all users.
10332 (record_kill): Renamed to ...
10333 (record_full_kill): ... this. Updated all users.
10334 (record_stopped_data_address): Renamed to ...
10335 (record_full_stopped_data_address): ... this. Updated all users.
10336 (record_registers_change): Renamed to ...
10337 (record_full_registers_change): ... this. Updated all users.
10338 (record_store_registers): Renamed to ...
10339 (record_full_store_registers): ... this. Updated all users.
10340 (record_xfer_partial): Renamed to ...
10341 (record_full_xfer_partial): ... this. Updated all users.
10342 (record_breakpoint): Renamed to ...
10343 (record_full_breakpoint): ... this. Updated all users.
10344 (record_breakpoint_p): Renamed to ...
10345 (record_full_breakpoint_p): ... this. Updated all users.
10346 (record_breakpoints): Renamed to ...
10347 (record_full_breakpoints): ... this. Updated all users.
10348 (record_sync_record_breakpoints): Renamed to ...
10349 (record_full_sync_record_breakpoints): ... this.
10350 Updated all users.
10351 (record_init_record_breakpoints): Renamed to ...
10352 (record_full_init_record_breakpoints): ... this.
10353 Updated all users.
10354 (record_insert_breakpoint): Renamed to ...
10355 (record_full_insert_breakpoint): ... this. Updated all users.
10356 (record_remove_breakpoint): Renamed to ...
10357 (record_full_remove_breakpoint): ... this. Updated all users.
10358 (record_can_execute_reverse): Renamed to ...
10359 (record_full_can_execute_reverse): ... this. Updated all users.
10360 (record_get_bookmark): Renamed to ...
10361 (record_full_get_bookmark): ... this. Updated all users.
10362 (record_goto_bookmark): Renamed to ...
10363 (record_full_goto_bookmark): ... this. Updated all users.
10364 (record_async): Renamed to ...
10365 (record_full_async): ... this. Updated all users.
10366 (record_can_async_p): Renamed to ...
10367 (record_full_can_async_p): ... this. Updated all users.
10368 (record_is_async_p): Renamed to ...
10369 (record_full_is_async_p): ... this. Updated all users.
10370 (record_execution_direction): Renamed to ...
10371 (record_full_execution_direction): ... this. Updated all users.
10372 (record_info): Renamed to ...
10373 (record_full_info): ... this. Updated all users.
10374 (record_delete): Renamed to ...
10375 (record_full_delete): ... this. Updated all users.
10376 (record_is_replaying): Renamed to ...
10377 (record_full_is_replaying): ... this. Updated all users.
10378 (record_goto_entry): Renamed to ...
10379 (record_full_goto_entry): ... this. Updated all users.
10380 (record_goto_begin): Renamed to ...
10381 (record_full_goto_begin): ... this. Updated all users.
10382 (record_goto_end): Renamed to ...
10383 (record_full_goto_end): ... this. Updated all users.
10384 (record_goto): Renamed to ...
10385 (record_full_goto): ... this. Updated all users.
10386 (init_record_ops): Renamed to ...
10387 (init_record_full_ops): ... this. Updated all users.
10388 (record_core_resume): Renamed to ...
10389 (record_full_core_resume): ... this. Updated all users.
10390 (record_core_kill): Renamed to ...
10391 (record_full_core_kill): ... this. Updated all users.
10392 (record_core_fetch_registers): Renamed to ...
10393 (record_full_core_fetch_registers): ... this. Updated all users.
10394 (record_core_prepare_to_store): Renamed to ...
10395 (record_full_core_prepare_to_store): ... this. Updated all users.
10396 (record_core_store_registers): Renamed to ...
10397 (record_full_core_store_registers): ... this. Updated all users.
10398 (record_core_xfer_partial): Renamed to ...
10399 (record_full_core_xfer_partial): ... this. Updated all users.
10400 (record_core_insert_breakpoint): Renamed to ...
10401 (record_full_core_insert_breakpoint): ... this. Updated all users.
10402 (record_core_remove_breakpoint): Renamed to ...
10403 (record_full_core_remove_breakpoint): ... this. Updated all users.
10404 (record_core_has_execution): Renamed to ...
10405 (record_full_core_has_execution): ... this. Updated all users.
10406 (init_record_core_ops): Renamed to ...
10407 (init_record_full_core_ops): ... this. Updated all users.
10408 (cmd_record_restore): Renamed to ...
10409 (cmd_record_full_restore): ... this. Updated all users.
10410 (record_save_cleanups): Renamed to ...
10411 (record_full_save_cleanups): ... this. Updated all users.
10412 (cmd_record_start): Renamed to ...
10413 (cmd_record_full_start): ... this. Updated all users.
10414 (set_record_insn_max_num): Renamed to ...
10415 (set_record_full_insn_max_num): ... this. Updated all users.
10416 (set_record_command): Renamed to ...
10417 (set_record_full_command): ... this. Updated all users.
10418 (show_record_command): Renamed to ...
10419 (show_record_full_command): ... this. Updated all users.
10420 (_initialize_record): Renamed to ...
10421 (_initialize_record_full): ... this. Updated all users.
10422
d02ed0bb
MM
104232013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10424
10425 * record.h: Split into this and ...
10426 * record-full.h: ... this.
10427 * record.c: Split into this and ...
10428 * record-full.c: ... this.
10429 * target.h (target_ops): Add new fields to_info_record,
10430 to_save_record, to_delete_record, to_record_is_replaying,
10431 to_goto_record_begin, to_goto_record_end, to_goto_record.
10432 (target_info_record): New.
10433 (target_save_record): New.
10434 (target_supports_delete_record): New.
10435 (target_delete_record): New.
10436 (target_record_is_replaying): New.
10437 (target_goto_record_begin): New.
10438 (target_goto_record_end): New.
10439 (target_goto_record): New.
10440 * target.c (target_info_record): New.
10441 (target_save_record): New.
10442 (target_supports_delete_record): New.
10443 (target_delete_record): New.
10444 (target_record_is_replaying): New.
10445 (target_goto_record_begin): New.
10446 (target_goto_record_end): New.
10447 (target_goto_record): New.
10448 * record.h: Declare struct cmd_list_element.
10449 (record_cmdlist): New declaration.
10450 (set_record_cmdlist): New declaration.
10451 (show_record_cmdlist): New declaration.
10452 (info_record_cmdlist): New declaration.
10453 (cmd_record_goto): New declaration.
10454 * record.c: Remove unnecessary includes.
10455 Include inferior.h.
10456 (cmd_record_goto): Remove declaration.
10457 (record_cmdlist): Now extern. Initialize.
10458 (set_record_cmdlist): Now extern. Initialize.
10459 (show_record_cmdlist): Now extern. Initialize.
10460 (info_record_cmdlist): Now extern. Initialize.
10461 (find_record_target): New.
10462 (require_record_target): New.
10463 (cmd_record_start): Update.
10464 (cmd_record_delete): Remove target-specific code.
10465 Call target_delete_record.
10466 (cmd_record_stop): Unpush any record target.
10467 (set_record_insn_max_num): Move to record-full.c
10468 (set_record_command): Add comment.
10469 (show_record_command): Add comment.
10470 (info_record_command): Update comment.
10471 Remove target-specific code.
10472 Call the record target's to_info_record.
10473 (cmd_record_start): New.
10474 (cmd_record_goto): Now extern.
10475 Remove target-specific code.
10476 Call target_goto_begin, target_goto_end, or target_goto.
10477 (_initialize_record): Move record target ops initialization to
10478 record-full.c.
10479 Change "record" command help text.
10480 Move "record restore", "record set", and "record show" commands to
10481 record-full.c.
10482 * Makefile.in (SFILES): Add record-full.c.
10483 (HFILES_NO_SRCDIR): Add record-full.h.
10484 (COMMON_OBS): Add record-full.o.
10485 * amd64-linux-tdep.c: Include record-full.h instead of record.h.
10486 * arm-tdep.c: Include record-full.h.
10487 * i386-linux-tdep.c: Include record-full.h instead of record.h.
10488 * i386-tdep.c: Include record-full.h.
10489 * infrun.c: Include record-full.h.
10490 * linux-record.c: Include record-full.h.
10491 * moxie-tdep.c: Include record-full.h.
10492 * record-full.c: Include record-full.h.
10493 Change module comment.
10494 (set_record_full_cmdlist): New.
10495 (show_record_full_cmdlist): New.
10496 (record_full_cmdlist): New.
10497 (record_goto_insn): New declaration.
10498 (record_save): New declaration.
10499 (record_check_insn_num): Change query string.
10500 (record_info): New.
10501 (record_delete): New.
10502 (record_is_replaying): New.
10503 (record_goto_entry): New.
10504 (record_goto_begin): New.
10505 (record_goto_end): New.
10506 (record_goto): New.
10507 (init_record_ops): Update.
10508 (init_record_core_ops): Update.
10509 (cmd_record_save): Rename to record_save. Remove target and arg checks.
10510 (cmd_record_start): New.
10511 (set_record_insn_max_num): Moved from record.c
10512 (set_record_full_command): New.
10513 (show_record_full_command): New.
10514 (_initialize_record_full): New.
10515
b48d48eb
MM
105162013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10517
10518 * target.h (add_deprecated_target_alias): New.
10519 * target.c (add_deprecated_target_alias): New.
10520
a950d57c
MM
105212013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10522
10523 * common/linux-btrace.c: Include sys/ptrace, sys/types, sys/wait.h,
10524 and signal.h.
10525 (linux_supports_btrace): Add kernel and
10526 cpuid check.
10527 (kernel_supports_btrace): New function.
10528 (cpu_supports_btrace): New function.
10529 (intel_supports_btrace): New function.
10530
9accd112
MM
105312013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10532
10533 * target.h (enum target_object): Add TARGET_OBJECT_BTRACE.
10534 * remote.c: Include btrace.h.
10535 (struct btrace_target_info): New struct.
10536 (remote_supports_btrace): New function.
10537 (send_Qbtrace): New function.
10538 (remote_enable_btrace): New function.
10539 (remote_disable_btrace): New function.
10540 (remote_teardown_btrace): New function.
10541 (remote_read_btrace): New function.
10542 (init_remote_ops): Add btrace ops.
10543 (enum <unnamed>): Add btrace packets.
10544 (struct protocol_feature remote_protocol_features[]): Add btrace packets.
10545 (_initialize_remote): Add packet configuration for branch tracing.
10546
c12a2917
MM
105472013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10548
10549 * features/btrace.dtd: New file.
10550 * Makefile.in (XMLFILES): Add btrace.dtd.
10551 * btrace.h (parse_xml_btrace): New declaration.
10552 * btrace.c: Include xml-support.h.
10553 (parse_xml_btrace): New function.
10554 (parse_xml_btrace_block): New function.
10555 (block_attributes): New struct.
10556 (btrace_attributes): New struct.
10557 (btrace_children): New struct.
10558 (btrace_elements): New struct.
10559
3e3aea48
MM
105602013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10561
10562 * amd64-linux-nat.c: Include btrace.h and linux-btrace.h.
10563 (amd64_linux_enable_btrace): New.
10564 (amd64_linux_disable_btrace): New.
10565 (amd64_linux_teardown_btrace): New.
10566 (_initialize_amd64_linux_nat): Initialize btrace ops.
10567 * i386-linux.nat.c: Include btrace.h and linux-btrace.h.
10568 (i386_linux_enable_btrace): New.
10569 (i386_linux_disable_btrace): New.
10570 (i386_linux_teardown_btrace): New.
10571 (_initialize_i386_linux_nat): Initialize btrace ops.
10572 * config/i386/linux.mh: Add linux-btrace.o.
10573 * config/i386/linux64.mh: Add linux-btrace.o.
10574
7c97f91e
MM
105752013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10576
10577 * common/linux_btrace.h: New file.
10578 * common/linux_btrace.c: New file.
10579 * Makefile.in (SFILES): Add btrace.c.
10580 (HFILES_NO_SRCDIR): Add common/linux-btrace.h.
10581 (COMMON_OBS): Add btrace.o.
10582 (linux-btrace.o): New rule.
10583
1999790b 105842013-03-11 Markus Metzger <markus.t.metzger@intel.com>
02d27625
MM
10585
10586 * target.h: Include btrace.h.
10587 (struct target_ops) <to_supports_btrace, to_enable_btrace,
10588 to_disable_btrace, to_teardown_btrace, to_read_btrace>: New.
10589 * target.c (target_supports_btrace): New function.
10590 (target_enable_btrace): New function.
10591 (target_disable_btrace): New function.
10592 (target_teardown_btrace): New function.
10593 (target_read_btrace): New function.
10594 * btrace.h: New file.
10595 * btrace.c: New file.
10596 * Makefile.in: Add btrace.c.
10597 * gdbthread.h: Include btrace.h.
10598 (struct thread_info): Add btrace field.
10599 * thread.c: Include btrace.h.
10600 (clear_thread_inferior_resources): Call target_teardown_btrace.
10601 * common/btrace-common.h: New file.
10602
61a31a67
JK
106032013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10604
10605 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Call also kill
10606 for CHILD, ignore PTRACE_KILL errors, move the inner block variable
10607 kill_status to outer block.
10608
05c56a9d
JK
106092013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10610
10611 Fix entry-values if the callee called a noreturn function.
10612 * dwarf2-frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
10613 get_frame_address_in_block. Add new comment.
10614
9112db09
JK
106152013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10616
10617 Fix entry-values in C++ across CUs.
10618 * dwarf2loc.c (call_site_to_target_addr) <FIELD_LOC_KIND_PHYSNAME>: Use
10619 lookup_minimal_symbol. Add a comment.
10620 * dwarf2read.c
10621 (read_call_site_scope) <is_ref_attr> <die_is_declaration>: Prefer
10622 DW_AT_linkage_name.
10623
9b67fcec
YQ
106242013-03-08 Yao Qi <yao@codesourcery.com>
10625
10626 * tracepoint.c (_initialize_tracepoint): Indent the code.
10627
6221be90
PA
106282013-03-08 Pedro Alves <palves@redhat.com>
10629
10630 * findcmd.c (put_bits): Change type of parameter to 'gdb_byte *'.
10631 (parse_find_args, find_command): Change type of pattern buffer
10632 locals to 'gdb_byte *'.
10633
be9a119c 106342013-03-08 Stan Shebs <stan@codesourcery.com>
f6f899bf
HAQ
10635 Hafiz Abid Qadeer <abidh@codesourcery.com>
10636
10637 * NEWS: Mention set and show trace-buffer-size commands.
10638 Mention new packet.
10639 * target.h (struct target_ops): New method
10640 to_set_trace_buffer_size.
10641 (target_set_trace_buffer_size): New macro.
10642 * target.c (update_current_target): Set up new method.
10643 * tracepoint.c (trace_buffer_size): New global.
10644 (start_tracing): Send it to the target.
10645 (set_trace_buffer_size): New function.
10646 (_initialize_tracepoint): Add new setshow for trace-buffer-size.
10647 * remote.c (remote_set_trace_buffer_size): New function.
10648 (_initialize_remote): Use it.
10649 (QTBuffer:size) New remote command.
10650 (PACKET_QTBuffer_size): New enum.
10651 (remote_protocol_features): Add an entry for
10652 PACKET_QTBuffer_size.
10653
7da3ab79
TT
106542013-03-08 Tom Tromey <tromey@redhat.com>
10655
10656 * remote-m32r-sdi.c (m32r_load): Call skip_spaces on correct
10657 variable.
10658
0c1f71e7
PA
106592013-03-07 Pedro Alves <palves@redhat.com>
10660
10661 * target.c (target_read_stralloc, target_fileio_read_alloc):
10662 *Cast pointer to 'gdb_byte *' in target call.
10663
c8af03a2
PA
106642013-03-07 Pedro Alves <palves@redhat.com>
10665
10666 * corefile.c (read_memory_string): Cast pointer to gdb_byte* in
10667 call.
10668
529480d0
KS
106692013-03-07 Keith Seitz <keiths@redhat.com>
10670
10671 * breakpoint.c (catch_syscall_split_args): Use skip_spaces.
10672 (trace_pass_command): Likewise.
10673 * cli/cli-cmds.c: Include cli/cli-utils.h.
10674 (source_command): Use skip-spaces.
10675 (disassemble_command): Likewise.
10676 * findcmd.c: Include cli/cli-utils.h.
10677 (parse_find_args): Use skip_spaces.
10678 * go32-nat.c: Include cli/cli-utils.h.
10679 (go32_sldt): Use skip_spaces.
10680 (go32_sgdt): Likewise.
10681 (go32_sidt): Likewise.
10682 (go32_pde): Likewise.
10683 (go32_pte): Likewise.
10684 (go32_pte_for_address): Likewise.
10685 * infcmd.c: Include cli/cli-utils.h.
10686 (registers_info): Use skip_spaces.
10687 * linux-tdep.c (read_mapping): Use skip_spaces_const.
10688 (linux_info_proc): Likewise.
10689 * linux-thread-db.c: Include cli/cli-utils.h.
10690 (info_auto_load_libthread_db): Use skip_spaces_const.
10691 * m32r-rom.c: Include cli/cli-utils.h.
10692 (m32r_upload_command): Use skip_spaces.
10693 * maint.c: Include cli/cli-utils.h.
10694 (maintenance_translate_address): Use skip_spaces.
10695 * mi/mi-parse.c: Include cli/cli-utils.h.
10696 (mi_parse_argv): Use skip_spaces.
10697 (mi_parse): Likewise.
10698 * minsyms.c: Include cli/cli-utils.h.
10699 (msymbol_hash_iw): Use skip_spaces_const.
10700 * objc-lang.c: Include cli/cli-utils.h.
10701 (parse_selector): Use skip_spaces.
10702 (parse_method): Likewise.
10703 * python/python.c: Include cli/cli-utils.h.
10704 (python_interactive_command)[HAVE_PYTHON]: Use skip_spaces.
10705 (python_command)[HAVE_PYTHON]: Likewise.
10706 (python_interactive_command)[!HAVE_PYTHON]: Likewise.
10707 * remote-m32r-sdi.c: Include cli/cli-utils.h.
10708 (m32r_load): Use skip_spaces.
10709 * serial.c: Include cli/cli-utils.h.
10710 (serial_open): Use skip_spaces_const.
10711 * stack.c: Include cli/cli-utils.h.
10712 (parse_frame_specification_1): Use skip_spaces_const.
10713 * symfile.c: Include cli/cli-utils.h.
10714 (set_ext_lang_command): Use skip_spaces.
10715 * symtab.c: Include cli/cli-utils.h.
10716 (rbreak_command): Use skip_spaces.
10717 * thread.c (thread_name_command): Use skip_spaces.
10718 * tracepoint.c (validate_actionline): Use skip_spaces.
10719 (encode_actions_1): Likewise.
10720 (trace_find_range_command): Likewise.
10721 (trace_find_outside_command): Likewise.
10722 (trace_dump_actions): Likewise.
10723
ac91cd70
PA
107242013-03-07 Pedro Alves <palves@redhat.com>
10725
10726 * c-lang.c (parse_one_string): Cast argument to gdb_byte *.
10727 * expprint.c (print_subexp_standard): Likewise.
10728 * utils.c (host_char_to_target): Likewise.
10729 * valprint.c (generic_emit_char, generic_printstr): Likewise.
10730 * varobj.c (value_get_print_value): Change type of local to char*.
10731 Cast it gdb_byte * in call to language printer.
10732
2898e560
PA
107332013-03-07 Pedro Alves <palves@redhat.com>
10734
10735 * charset.c (struct wchar_iterator) <input>: Change type to 'const
10736 gdb_byte *'.
10737 (make_wchar_iterator): Remove cast to char*.
10738 (wchar_iterate): Change type of local.
10739
a09b4448
PA
107402013-03-07 Pedro Alves <palves@redhat.com>
10741
10742 * regcache.c (regcache_xmalloc_1): Call XCALLOC with signed char
10743 for 'regcache->register_status'.
10744
20ced3e4
PA
107452013-03-07 Pedro Alves <palves@redhat.com>
10746
c2d6a675 10747 * breakpoint.c (breakpoint_xfer_memory): Change type of local to
20ced3e4
PA
10748 int.
10749
fe106009
PA
107502013-03-07 Pedro Alves <palves@redhat.com>
10751
10752 * stap-probe.c (handle_stap_probe): Add cast to char*.
10753
8ac2c12b
PA
107542013-03-07 Pedro Alves <palves@redhat.com>
10755
10756 * linux-record.c (record_linux_system_call) <gdb_sys_msgrcv,
10757 RECORD_MSGRCV>: Pass a signed variable to
10758 regcache_raw_read_signed, instead of an unsigned one.
10759
99f0a309
PA
107602013-03-07 Pedro Alves <palves@redhat.com>
10761
10762 * remote-notif.c (notif_debug): Change type to int.
10763 * remote-notif.h (notif_debug): Likewise.
10764
964b8317
PA
107652013-03-07 Pedro Alves <palves@redhat.com>
10766
10767 * ser-tcp.c (tcp_retry_limit): Change type to unsigned int.
10768
f0cc8ad4
PA
107692013-03-07 Pedro Alves <palves@redhat.com>
10770
10771 * remote.c (hex2bin, bin2hex): Move extern declarations to ...
10772 * remote.h (hex2bin, bin2hex): ... here.
10773 * tracepoint.c (hex2bin, bin2hex): Remove extern declarations.
10774
77dec115
EZ
107752013-03-07 Eli Zaretskii <eliz@gnu.org>
10776
10777 * utils.c (initialize_utils): Improve doc strings of "set/show
10778 width", "set/show height", and "set/show pagination".
10779
741d92cf
KS
107802013-03-06 Keith Seitz <keiths@redhat.com>
10781
10782 * ax-gdb.c (gen_printf): Make FORMAT const.
10783 * ax-gdb.h (gen_printf): Likewise.
10784 * ax-general.c (ax_string): Make STR const.
10785 * ax.h (ax_string): Likewise.
10786
7b6c814e
DE
107872013-03-06 Doug Evans <dje@google.com>
10788
10789 * elfread.c (elf_symfile_read): Move debugging printf to more
10790 logical location.
10791
634334ab
PA
107922013-03-06 Pedro Alves <palves@redhat.com>
10793
10794 * python/py-utils.c (target_string_to_unicode): Delete function.
10795 * python/python-internal.h (target_string_to_unicode): Delete
10796 declaration.
10797
e482a1a7
PM
107982013-03-06 Pierre Muller <muller@sourceware.org>
10799
10800 * linespec.c (get_current_search_block): ARI fix, use (void)
10801 for empty parameter list.
10802
4eeaa230
DE
108032013-03-05 Doug Evans <dje@google.com>
10804
10805 * ada-lang.c (ada_lookup_symbol_list_worker): New function, contents
10806 of old ada_lookup_symbol_list. In !full_search case, don't
10807 search superblocks.
10808 (ada_lookup_symbol_list): Delete arg full_search, all callers
10809 updated. Call ada_lookup_symbol_list_worker.
10810 (ada_iterate_over_symbols): Call ada_lookup_symbol_list_worker.
10811 * ada-lang.h (ada_lookup_symbol_list): Update.
10812 * language.h (language_defn): Update comment for
10813 la_iterate_over_symbols.
10814 * linespec.c (iterate_over_file_blocks): New function.
10815 (iterate_over_all_matching_symtabs): Call it.
10816 (lookup_prefix_sym): Ditto.
10817 (get_current_search_block): New function.
10818 (get_search_block): Delete.
10819 (find_label_symbols): Call get_current_search_block.
10820 (add_matching_symbols_to_info): Call iterate_over_file_blocks.
10821 * symtab.c (iterate_over_symbols): Don't search superblocks.
10822
b69b1fb1
YQ
108232013-03-05 Yao Qi <yao@codesourcery.com>
10824
10825 * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): Change
10826 parameter VAR's type from "unsigned int" to "int".
10827 * command.h (var_zuinteger_unlimited): Update its comments.
10828 (add_setshow_zuinteger_unlimited_cmd): Update the declaration.
10829
3c095f49
CV
108302013-03-05 Corinna Vinschen <vinschen@redhat.de>
10831
10832 * NEWS: Mention new target x86_64-*-cygwin*.
10833
b5b0b0af
CV
108342013-03-05 Corinna Vinschen <vinschen@redhat.de>
10835
10836 * configure.host: Add x86_64-*-cygwin* as host.
10837 * configure.tgt: Add x86_64-*-cygwin* as target.
10838 * config/i386/cygwin64.mh: New file.
10839
f6f99966
JK
108402013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
10841
10842 * linespec.c (decode_line_2): Fix duplicate request off by two message.
10843
33f448b1
JK
108442013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
10845
10846 * linespec.c (struct linespec_canonical_name): New.
10847 (struct linespec_state): Change canonical_names type to it.
10848 (add_sal_to_sals): Change variable canonical_name to canonical. Change
10849 xrealloc element size. Initialize the different CANONICAL fields.
10850 (canonical_to_fullform): New.
10851 (filter_results): Use it. Add variables canonical, fullform and
10852 cleanup.
10853 (struct decode_line_2_item, decode_line_2_compare_items): New.
10854 (decode_line_2): Remove variables iter and item_names, add variables
10855 items and items_count. Modify the code for these new variables.
10856
feb14725
CV
108572013-03-04 Corinna Vinschen <vinschen@redhat.com>
10858
10859 * coff-pe-read.c (read_pe_exported_syms): Don't return without
10860 calling do_cleanup.
10861
e83b17ba
HZ
108622013-03-04 Luis Machado <lgustavo@codesourcery.com>
10863
10864 * tracepoint.c (build_traceframe_info): Add code for byte order.
10865
a2d13a0d
KB
108662013-03-02 Kevin Buettner <kevinb@redhat.com>
10867
8dddcae8
KB
10868 * v850-tdep.c: (v850e2_register_name): Revise system register
10869 names to match current V850E2M architecture specifications.
10870 Update register number enum comments too.
f5aee5ee 10871
d79e58d8
JW
108722013-03-01 Jiong Wang <jiwang@tilera.com>
10873 Pedro Alves <palves@redhat.com>
10874
10875 * tilegx-tdep.c (tilegx_analyze_prologue): Limit bundle reading
10876 to END_ADDR.
10877 (tilegx_skip_prologue): Limit prologue analysis to section end.
10878
c4be5165
JK
108792013-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10880
10881 * dwarf2loc.c (call_site_find_chain_1): New variable save_callee_pc,
10882 use it.
10883
e362b510
PA
108842013-03-01 Pedro Alves <palves@redhat.com>
10885
10886 Use gdb_byte for bytes from the program being debugged.
10887
10888 * arm-tdep.c (arm_store_return_value, arm_get_longjmp_target):
10889 Change type of local 'buf' to gdb_byte.
10890 * avr-tdep.c (avr_frame_prev_register, avr_push_dummy_call): Likewise.
10891 * bfin-tdep.c (bfin_push_dummy_call): Likewise.
10892 * cris-tdep.c (cris_sigcontext_addr)
10893 (cris_sigtramp_frame_unwind_cache): Likewise.
10894 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp)
10895 (frv_linux_sigcontext_reg_addr, frv_linux_sigtramp_frame_cache):
10896 Likewise.
10897 * frv-tdep.c (frv_pseudo_register_write, frv_analyze_prologue): Likewise.
10898 * hppa-hpux-tdep.c (hppa32_hpux_find_global_pointer)
10899 (hppa32_hpux_search_dummy_call_sequence)
10900 (hppa_hpux_supply_save_state): Likewise.
10901 * hppa-linux-tdep.c (insns_match_pattern)
10902 (hppa_linux_find_global_pointer): Likewise.
10903 * hppa-tdep.c (hppa_in_function_epilogue_p)
10904 (skip_prologue_hard_way, hppa_frame_cache): Likewise.
10905 * i386-nto-tdep.c (i386nto_sigcontext_addr): Likewise.
10906 * i386fbsd-tdep.c (i386fbsd_supply_uthread)
10907 (i386fbsd_collect_uthread): Likewise.
10908 * ia64-hpux-tdep.c (ia64_hpux_push_dummy_code): Likewise.
10909 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address): Likewise.
10910 * ia64-tdep.c (examine_prologue, ia64_frame_cache)
10911 (ia64_frame_prev_register, ia64_sigtramp_frame_cache)
10912 (ia64_sigtramp_frame_prev_register, ia64_access_reg)
10913 (ia64_access_rse_reg, ia64_libunwind_frame_this_id)
10914 (ia64_libunwind_frame_prev_register)
10915 (ia64_libunwind_sigtramp_frame_this_id)
10916 (ia64_find_global_pointer_from_dynamic_section)
10917 (find_extant_func_descr, find_func_descr, ia64_dummy_id)
10918 (ia64_unwind_pc): Likewise.
10919 * iq2000-tdep.c (iq2000_store_return_value): Likewise.
10920 * m68hc11-tdep.c (m68hc11_push_dummy_call)
10921 (m68hc11_extract_return_value): Likewise.
10922 * m68klinux-nat.c (fetch_register, store_register): Likewise.
10923 * mep-tdep.c (mep_pseudo_cr32_read, mep_pseudo_cr32_write)
10924 (mep_get_insn, mep_push_dummy_call): Likewise.
10925 * mips-linux-tdep.c (mips_linux_get_longjmp_target)
10926 (mips_linux_in_dynsym_stub): Likewise.
10927 * mn10300-tdep.c (mep_pseudo_cr32_write): Likewise.
10928 * ppc-linux-nat.c (fetch_register, store_register): Likewise.
10929 * regcache.c (dump_endian_bytes): Change type of parameter 'buf'
10930 to gdb_byte.
10931 * remote-mips.c (mips_set_register): Likewise.
10932 * remote-sim.c (gdbsim_fetch_register): Likewise.
10933 * score-tdep.c (score7_fetch_inst): Change type of parameter
10934 'memblock' and local 'buf' to gdb_byte.
10935 (score7_malloc_and_get_memblock): Change return type to gdb_byte.
10936 Change type of local 'buf' to gdb_byte. Adjust.
10937 (score7_adjust_memblock_ptr): Change type of parameter 'memblock'
10938 to gdb_byte**.
10939 (score7_analyze_prologue): Change type of 'memblock' and
10940 'memblock_ptr' locals to gdb_byte*.
10941 * sh64-tdep.c (sh64_extract_return_value)
10942 (sh64_store_return_value): Change type of local 'buf' to gdb_byte.
10943 * solib-darwin.c (darwin_current_sos, darwin_read_exec_load_addr):
10944 * solib-pa64.c (pa64_solib_create_inferior_hook)
10945 (pa64_open_symbol_file_object): Remove local 'buf'.
10946 * solib-som.c (som_solib_create_inferior_hook, link_map_start)
10947 (som_open_symbol_file_object): Likewise.
10948 * solib-spu.c (spu_current_sos): Likewise.
10949 * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
10950 * spu-multiarch.c (parse_spufs_run, spu_fetch_registers)
10951 (spu_store_registers): Likewise.
10952 * target.c (debug_print_register): Likewise.
10953 * tic6x-tdep.c (tic6x_get_longjmp_target): Likewise.
10954 * xstormy16-tdep.c (xstormy16_store_return_value)
10955 (xstormy16_push_dummy_call, xstormy16_resolve_jmp_table_entry)
10956 (xstormy16_find_jmp_table_entry): Likewise.
10957
75cc61ca 109582013-03-01 Jiong Wang <jiwang@tilera.com>
61d8bd0e
JW
10959
10960 * tilegx-tdep.c (tilegx_get_longjmp_target): New function.
10961 (tilegx_gdbarch_init): Install it.
10962
ddb08e9c
TT
109632013-02-28 Tom Tromey <tromey@redhat.com>
10964
10965 * python/py-arch.c (archpy_disassemble): Use PyInt_Check and
10966 PyLong_Check.
10967
62d7fb51
DE
109682013-02-28 Doug Evans <dje@google.com>
10969
10970 * python/py-finishbreakpoint.c (bpfinishpy_init): gcc -Wall lint.
10971 * python/python.c (gdbpy_find_pc_line): Ditto.
10972
c4a9e8b4
TT
109732013-02-28 Tom Tromey <tromey@redhat.com>
10974
10975 * contrib/excheck.py: New file.
10976 * contrib/exsummary.py: New file.
10977 * contrib/gcc-with-excheck: New file.
10978
7f6a5dde
TT
109792013-02-28 Tom Tromey <tromey@redhat.com>
10980
10981 * python/python.c (gdbpy_print_stack): Call begin_line and
10982 fprintf_filtered inside TRY_CATCH.
10983
9e974e55
TT
109842013-02-28 Tom Tromey <tromey@redhat.com>
10985
10986 * python/python.c (gdbpy_find_pc_line): Call find_pc_line
10987 inside TRY_CATCH.
10988
dd5fa3e7
TT
109892013-02-28 Tom Tromey <tromey@redhat.com>
10990
10991 * py-finishbreakpoint.c (bpfinishpy_init): Reorganize to call
10992 frame_object_to_frame_info inside TRY_CATCH.
10993
86a3263f
TT
109942013-02-28 Tom Tromey <tromey@redhat.com>
10995
10996 * py-block.c (gdbpy_block_for_pc): Call block_for_pc inside
10997 TRY_CATCH.
10998
81b52a3a
TT
109992013-02-28 Tom Tromey <tromey@redhat.com>
11000
11001 * objfiles.h (ALL_PSPACE_OBJFILES): Remove trailing backlash.
11002
d50a0ce2
CV
110032013-02-27 Corinna Vinschen <vinschen@redhat.com>
11004
11005 * windows-nat.c: Throughout, fix format strings and casts of
11006 printf-like functions to avoid type related warnings on all
11007 platforms.
11008 (handle_output_debug_string): Fetch context information address
11009 from debug string using string_to_core_addr.
11010
e1f58301
JW
110112013-02-27 Jiong Wang <jiwang@tilera.com>
11012
11013 * regformats/reg-tilegx.dat (name): Change abi name to "tilegx".
11014 * regformats/reg-tilegx32.dat: New.
11015
4fcd89fc
JW
110162013-02-27 Jiong Wang <jiwang@tilera.com>
11017
11018 * configure.tgt (tilegx-*-linux*): Enable gdbserver.
11019
748d24e6
JW
110202013-02-27 Jiong Wang <jiwang@tilera.com>
11021
11022 * configure.tgt (tilegx-*-linux*): Replace whitespace with tab.
11023
6c8e944d
YQ
110242013-02-27 Yao Qi <yao@codesourcery.com>
11025 Pedro Alves <palves@redhat.com>
11026
11027 * tracepoint.c (tfile_trace_find): For tfind
5f8e0b8f
MF
11028 pc/tp/range/outside, look for the next trace frame instead of
11029 always starting from frame 0.
6c8e944d 11030
acd7db30
AG
110312013-02-26 Anthony Green <green@moxielogic.com>
11032
11033 * configure.tgt: Add support for moxie-*-rtems* target.
11034
025e6dce
PA
110352013-02-25 Pedro Alves <palves@redhat.com>
11036
11037 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Change
11038 warning text.
11039
ca9c94ef
MR
110402013-02-24 Maciej W. Rozycki <macro@codesourcery.com>
11041
11042 * mips-tdep.c (mips32_scan_prologue): Reset frame_offset to zero
11043 if $fp is used as the virtual frame pointer.
11044
24c274a1
AM
110452013-02-23 Alan Modra <amodra@gmail.com>
11046
11047 * elfread.c (elf_symtab_read): Do not use udata.p here to find
11048 symbol size.
11049 * ppc64-tdep.c (ppc64_elf_make_msymbol_special): New function.
11050 * ppc64-tdep.h (ppc64_elf_make_msymbol_special): Declare.
11051 * ppc-linux-tdep.c (ppc_linux_init_abi): Set up to use the above.
11052 * ppcfbsd-tdep.c (ppcfbsd_init_abi): Likewise.
11053
bfada189
JK
110542013-02-22 Jan Kratochvil <jan.kratochvil@redhat.com>
11055
11056 Code cleanup.
11057 * elfread.c (build_id_bfd_get): Make the return type const.
11058 (build_id_verify): Make the check parameter const.
11059 (build_id_to_debug_filename): Make the build_id parameter and variable
11060 data const.
11061 (find_separate_debug_file_by_buildid): Make the variable build_id const.
11062
c0355132
AM
110632013-02-21 Alan Modra <amodra@gmail.com>
11064
11065 * elfread.c (build_id_bfd_get): Adjust for elf_tdata changes.
11066
9f44fbc0
SCR
110672013-02-20 Siva Chandra Reddy <sivachandra@google.com>
11068
11069 Add a new method 'disassemble' to gdb.Architecture class.
11070 * python/py-arch.c (archpy_disassmble): Implementation of the
11071 new method gdb.Architecture.disassemble.
11072 (arch_object_methods): Add entry for the new method.
11073
b74ea3eb
JW
110742013-02-20 Jiong Wang <jiwang@tilera.com>
11075
11076 * MAINTAINERS (Write After Approval): Add myself to the list.
11077
61a672f1
PA
110782013-02-19 Pedro Alves <palves@redhat.com>
11079
11080 Garbage collect 'struct monitor_ops'::load_routine.
11081
11082 * monitor.h (struct monitor_ops) <load_routine>: Remove field.
11083 * monitor.c (monitor_load): No longer call
11084 current_monitor->load_routine.
11085 * dbug-rom.c (init_dbug_cmds): Don't set 'load_routine'.
11086 * m32r-rom.c (init_m32r_cmds): Don't set 'load_routine'.
11087 * ppcbug-rom.c (init_ppc_cmds): Don't set 'load_routine'.
11088
40e397df
PA
110892013-02-19 Pedro Alves <palves@redhat.com>
11090
11091 PR gdb/15161
11092
11093 Harmonize with generic_load.
11094
11095 * monitor.c: Include "readline/readline.h".
11096 (monitor_load): Rename parameter 'file' to 'args'. Use build_argv
11097 instead of sscanf. Use CORE_ADDR/strtoulst instead of unsigned
11098 long/strtol for the 'load_offset' local. Error out if no argument
11099 is given or if too many arguments are given. Tilde expand the
11100 passed in file name.
11101
f698ca8e
KT
111022013-02-19 Kai Tietz <ktietz@redhat.com>
11103
11104 PR gdb/15161
11105 * symfile.c (load_section_data): Change type of load_offset
11106 to CORE_ADDR.
11107 (generic_load): User strtoulst instead of strtoul for conversion
11108 of load_offset.
11109
3361b059
WL
111102013-02-19 Jiong Wang <jiwang@tilera.com>
11111
11112 * tilegx-tdep.c (tilegx_analyze_prologue): add check for
11113 for return address, "lr" register, saved on stack.
11114 * tilegx-tdep.c (tilegx_frame_cache): update "PC" reg
11115 after we invoke tilegx_analyze_prologue.
11116
3e9d5130
WL
111172013-02-19 Jiong Wang <jiwang@tilera.com>
11118
bb1bcd86
WL
11119 * tilegx-tdep.c (itilegx_gdbarch_init): char type should be signed.
11120
3361b059 111212013-02-19 Jiong Wang <jiwang@tilera.com>
bb1bcd86 11122
b74ea3eb 11123 * tilegx-tdep.c (tilegx_skip_prologue): Use skip_prologue_using_sal.
3e9d5130 11124
4aaf2503
WL
111252013-02-19 Jiong Wang <jiwang@tilera.com>
11126
b74ea3eb 11127 * tilegx-tdep.c (INT_SWINT_1_SIGRETURN): New macro.
4aaf2503
WL
11128 (tilegx_write_pc): New function.
11129 (tilegx_cannot_reference_register): Return zero if REGNO
11130 is TILEGX_FAULTNUM_REGNUM.
11131 (tilegx_gdbarch_init): Add call to set_gdbarch_write_pc.
11132 (tilegx_register_name): Add handling of "faultnum" register.
11133 * tilegx-tdep.h (enum tilegx_regnum): Add TILEGX_FAULTNUM_REGNUM.
11134 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Add
11135 handling of TILEGX_FAULTNUM_REGNUM.
11136 * tilegx-linux-nat.c (regmap): Add entry for TILEGX_FAULTNUM_REGNUM.
11137
bc23a956
WL
111382013-02-19 Jiong Wang <jiwang@tilera.com>
11139
11140 * tilegx-tdep.c (tilegx_push_dummy_call): args pushed on stack
b74ea3eb 11141 should be aligned to 64bit.
bc23a956 11142
42f45f1a
KT
111432013-02-19 Kai Tietz <ktietz@redhat.com>
11144
11145 * windows-nat.c (windows_xfer_memory): Fix debug-output
11146 for LLP64.
11147
6ce4c112
LL
111482013-02-19 Lei Liu <lei.liu2@windriver.com>
11149
11150 * mips-linux-nat.c (mips64_linux_regsets_store_registers):
11151 Don't check DSP register number if HAVE_DSP is not set.
11152
30e8ee25
AM
111532013-02-19 Alan Modra <amodra@gmail.com>
11154
11155 * elfread.c (struct build_id): Delete. Use struct elf_build_id
11156 throughout file instead.
11157 (build_id_bfd_get): Update to use new elf_tdata build_id field.
11158 Don't xmalloc return value.
11159 (build_id_verify): Similarly. Don't xfree.
11160 (build_id_to_debug_filename): Update.
11161 (find_separate_debug_file_by_buildid): Update, don't xfree.
11162
4c9ad8c2
TT
111632013-02-18 Tom Tromey <tromey@redhat.com>
11164
11165 PR gdb/15102:
11166 * dwarf2read.c (read_subrange_type): Use result of
11167 'check_typedef'.
11168
983dc440
YQ
111692013-02-16 Yuanhui Zhang <asmwarrior@gmail.com>
11170
11171 * frame.c: Remove one extra white space after #include
11172 directive.
11173
7fb2b84a
JK
111742013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
11175
11176 * contrib/cc-with-tweaks.sh: Extend the comment for -p option.
11177
edceb2a9
JK
111782013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
11179
11180 * gdb-gdb.gdb.in: Wrap set complaints, b internal_error, b info_command
11181 and dir commands into an if block.
11182
e81b7af8
TT
111832013-02-15 Sanimir Agovic <sanimir.agovic@intel.com>
11184
11185 * python/py-breakpoint (struct pybp_code): Use int instead of
11186 enum type_code.
11187
f5911ea1
HAQ
111882013-02-15 Pedro Alves <pedro@codesourcery.com>
11189 Hafiz Abid Qadeer <abidh@codesourcery.com>
11190
11191 * NEWS: Mention new field "trace-file".
11192 * tracepoint.c (trace_status_mi): Output "trace-file" field.
11193 (tfile_open): Record the trace file's filename in the trace
11194 status.
11195 (tfile_files_info): Mention the name of the trace file.
11196 Check the "filename" field explicitely.
11197 (trace_status_command): Explicitely check "filename" field.
11198 (trace_find_command): Ditto.
11199 (trace_find_pc_command): Ditto.
11200 (trace_find_tracepoint_command): Ditto.
11201 (trace_find_line_command): Ditto.
11202 (trace_find_range_command): Ditto.
11203 (trace_find_outside_command): Ditto.
11204 * tracepoint.h (struct trace_status) <from_file>: Rename it
11205 to "filename" and make it hold the trace file's filename
11206 instead of a boolean.
11207 * remote.c (remote_get_trace_status): Initialize "filename"
11208 field with NULL instead of 0.
11209
796cb314
YQ
112102013-02-15 Yao Qi <yao@codesourcery.com>
11211
11212 * remote.c: Fix a typo.
11213
42e79b1d
PM
112142013-02-14 Pierre Muller <muller@sourceware.org>
11215
11216 * contrib/ari/gdb_ari.sh (GNU/Linux rule): Remove.
11217
baea0dae
PA
112182013-02-14 Pedro Alves <palves@redhat.com>
11219
11220 * utils.c (savestring): Don't #undef it. Move function to
11221 common/common-utils.c.
11222 * common/common-utils.c: Include gdb_string.h.
11223 (savestring): Move here from utils.c.
11224 * common/common-utils.h (savestring): Declare.
11225
57c3b6ed
PA
112262013-02-14 Pedro Alves <palves@redhat.com>
11227
11228 * utils.c (savestring): Rename parameter 'size' to 'len'.
11229
d6c44983
YZ
112302013-02-14 Pedro Alves <palves@redhat.com>
11231 Yufeng Zhang <yufeng.zhang@arm.com>
11232
11233 * aarch64-linux-nat.c (aarch64_init_debug_reg_state): Delete.
11234 (aarch64_inferior_data, struct aarch64_inferior_data):
11235 Delete.
11236 (struct aarch64_process_info): New.
11237 (aarch64_process_list): New global.
11238 (aarch64_find_process_pid, aarch64_add_process)
11239 (aarch64_process_info_get): New functions.
11240 (aarch64_inferior_data_get): Delete.
11241 (aarch64_process_info_get): New function.
11242 (aarch64_forget_process): New function.
11243 (aarch64_get_debug_reg_state): New parameter 'pid'. Reimplement.
11244 (aarch64_linux_prepare_to_resume): Pass the lwp's pid to
11245 aarch64_get_debug_reg_state.
11246 (aarch64_notify_debug_reg_change): Use iterate_over_lwps
11247 instead of linux_nat_iterate_watchpoint_lwps.
11248 (aarch64_linux_new_fork): New function.
11249 (aarch64_linux_child_post_startup_inferior): Use
11250 aarch64_forget_process instead of aarch64_init_debug_reg_state.
11251 (aarch64_handle_breakpoint, aarch64_linux_insert_hw_breakpoint)
11252 (aarch64_linux_remove_hw_breakpoint)
11253 (aarch64_handle_aligned_watchpoint)
11254 (aarch64_handle_unaligned_watchpoint)
11255 (aarch64_linux_insert_watchpoint)
11256 (aarch64_linux_remove_watchpoint)
11257 (aarch64_linux_stopped_data_address): Adjust to pass the current
11258 process id to aarch64_debug_reg_state.
11259 (_initialize_aarch64_linux_nat): Install aarch64_linux_new_fork as
11260 linux_nat_new_fork hook, and aarch64_forget_process as
11261 linux_nat_forget_process hook; remove the call to
11262 register_inferior_data_with_cleanup.
11263
4819b3f8
PA
112642013-02-14 Pedro Alves <palves@redhat.com>
11265
11266 * eval.c (evaluate_subexp_for_address) <default_case_after_eval,
11267 EVAL_AVOID_SIDE_EFFECTS>: Swap and handle TYPE_CODE_REF before
11268 lval_memory.
11269
1773c82c
HAQ
112702013-02-14 Pedro Alves <pedro@codesourcery.com>
11271 Hafiz Abid Qadeer <abidh@codesourcery.com>
11272
11273 * tracepoint.h (validate_trace_state_variable_name): Declare.
11274 * tracepoint.c (validate_trace_state_variable_name): New.
11275 (trace_variable_command): Parse the trace state variable's name
11276 without using parse_expression. Do several validations.
11277 * mi/mi-main.c (mi_cmd_trace_define_variable): Don't parse the
11278 trace state variable's name with parse_expression. Validate it.
11279
53778a97
YQ
112802013-02-14 Yao Qi <yao@codesourcery.com>
11281
11282 * infcmd.c (breakpoint_proceeded): Remove it.
11283
7b3ae3a6
YQ
112842013-02-14 Yao Qi <yao@codesourcery.com>
11285
11286 * tracepoint.c (end_actions_pseudocommand): Make it static.
11287 (while_stepping_pseudocommand): Likewise.
11288 * tracepoint.h (end_actions_pseudocommand): Remove the
11289 declaration.
11290 (while_stepping_pseudocommand): Likewise.
11291
64580925
YQ
112922013-02-14 Yao Qi <yao@codesourcery.com>
11293
11294 * cli/cli-decode.c (help_cmd): Remove the declaration of
11295 "cmdlist".
11296 (help_all): Likewise.
11297
26cb8b7c
PA
112982013-02-13 Pedro Alves <palves@redhat.com>
11299
11300 * amd64-linux-nat.c (update_debug_registers_callback):
11301 Update comment.
11302 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
11303 iterate_over_lwps.
11304 (amd64_linux_prepare_to_resume): Pass the lwp's pid to
11305 i386_debug_reg_state.
11306 (amd64_linux_new_fork): New function.
11307 (_initialize_amd64_linux_nat): Install amd64_linux_new_fork as
11308 linux_nat_new_fork hook, and i386_forget_process as
11309 linux_nat_forget_process hook.
11310 * i386-linux-nat.c (update_debug_registers_callback):
11311 Update comment.
a8256ea1 11312 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
26cb8b7c
PA
11313 iterate_over_lwps.
11314 (i386_linux_prepare_to_resume): Pass the lwp's pid to
11315 i386_debug_reg_state.
11316 (i386_linux_new_fork): New function.
11317 (_initialize_i386_linux_nat): Install i386_linux_new_fork as
11318 linux_nat_new_fork hook, and i386_forget_process as
11319 linux_nat_forget_process hook.
11320 * i386-nat.c (i386_init_dregs): Delete.
11321 (i386_inferior_data, struct i386_inferior_data):
11322 Delete.
11323 (struct i386_process_info): New.
11324 (i386_process_list): New global.
11325 (i386_find_process_pid, i386_add_process, i386_process_info_get):
11326 New functions.
11327 (i386_inferior_data_get): Delete.
11328 (i386_process_info_get): New function.
11329 (i386_debug_reg_state): New parameter 'pid'. Reimplement.
11330 (i386_forget_process): New function.
11331 (i386_cleanup_dregs): Rewrite.
11332 (i386_update_inferior_debug_regs, i386_insert_watchpoint)
11333 (i386_remove_watchpoint, i386_region_ok_for_watchpoint)
11334 (i386_stopped_data_address, i386_insert_hw_breakpoint)
11335 (i386_remove_hw_breakpoint): Adjust to pass the current process id
11336 to i386_debug_reg_state.
11337 (i386_use_watchpoints): Don't register inferior data.
11338 * i386-nat.h (i386_debug_reg_state): Add new 'pid' parameter, and
11339 adjust comment.
11340 (i386_forget_process): Declare.
11341 * linux-fork.c (delete_fork): Call linux_nat_forget_process.
11342 * linux-nat.c (linux_nat_new_fork, linux_nat_forget_process_hook):
11343 New static globals.
11344 (linux_child_follow_fork): Don't call linux_nat_new_thread here.
11345 (add_initial_lwp): New, factored out from ...
11346 (add_lwp): ... this. Don't check the number of lwps before
11347 calling linux_nat_new_thread.
11348 (linux_nat_iterate_watchpoint_lwps): Delete.
11349 (linux_nat_attach): Use add_initial_lwp instead of add_lwp.
11350 (linux_handle_extended_wait): Call the linux_nat_new_fork hook on
11351 forks and vforks.
11352 (linux_nat_wait_1): Use add_initial_lwp instead of add_lwp for the
11353 initial lwp.
11354 (linux_nat_kill, linux_nat_mourn_inferior): Call
11355 linux_nat_forget_process.
11356 (linux_nat_set_new_fork, linux_nat_set_forget_process)
11357 (linux_nat_forget_process): New functions.
11358 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): Delete
11359 type.
11360 (linux_nat_iterate_watchpoint_lwps): Delete declaration.
11361 (linux_nat_new_fork_ftype, linux_nat_forget_process_ftype): New
11362 types.
11363 (linux_nat_set_new_fork, linux_nat_set_forget_process)
11364 (linux_nat_forget_process): New declarations.
11365
11366 * amd64fbsd-nat.c (super_mourn_inferior): New global.
11367 (amd64fbsd_mourn_inferior): New function.
11368 (_initialize_amd64fbsd_nat): Override to_mourn_inferior.
11369 * windows-nat.c (windows_detach): Call i386_cleanup_dregs.
11370
5befea72
MS
113712013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
11372
55015247
YQ
11373 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
11374 Adding _().
5befea72 11375
1d3ffd6b
MS
113762013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
11377
11378 * aarch64-linux-nat.c (debug_reg_change_callback)
11379 (aarch64_linux_get_debug_reg_capacity): ARI fix: Replace %llx with
11380 %s and phex().
11381
6eb04473
MS
113822013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
11383
11384 * aarch64-linux-nat.c (dr_changed_t): ARI fix: Replace long long
11385 with LONGEST.
11386
a016fc87
HAQ
113872013-02-13 Pedro Alves <palves@redhat.com>
11388 Hafiz Abid Qadeer <abidh@codesourcery.com>
11389
11390 * c-lang.c (c_op_print_tab): Add entry for UNOP_PLUS.
11391
e234dfaf
TT
113922013-02-12 Tom Tromey <tromey@redhat.com>
11393
11394 PR symtab/11464:
11395 * c-exp.y (lex_one_token): Initialize other fields of yylval on
11396 NAME return.
11397 (classify_inner_name): Remove 'first_name' argument, add
11398 'context'. Remove unused variable.
11399 (yylex): Explicitly maintain the context type. Exit loop earlier
11400 if NAME result is seen.
11401
0b1afbb3
PA
114022013-02-12 Pedro Alves <palves@redhat.com>
11403
11404 * amd64-darwin-tdep.c: Add (C) after Copyright.
11405 * cli/cli-cmds.h: Ditto.
11406 * cli/cli-decode.c: Ditto.
11407 * cli/cli-decode.h: Ditto.
11408 * cli/cli-dump.c: Ditto.
11409 * cli/cli-dump.h: Ditto.
11410 * cli/cli-interp.c: Ditto.
11411 * cli/cli-logging.c: Ditto.
11412 * cli/cli-script.c: Ditto.
11413 * cli/cli-script.h: Ditto.
11414 * cli/cli-setshow.c: Ditto.
11415 * cli/cli-setshow.h: Ditto.
11416 * cli/cli-utils.c: Ditto.
11417 * cli/cli-utils.h: Ditto.
11418 * config/alpha/nm-osf3.h: Ditto.
11419 * config/djgpp/djconfig.sh: Ditto.
11420 * config/i386/nm-fbsd.h: Ditto.
11421 * config/i386/nm-i386gnu.h: Ditto.
11422 * config/nm-linux.h: Ditto.
11423 * config/nm-nto.h: Ditto.
11424 * config/rs6000/nm-rs6000.h: Ditto.
11425 * config/sparc/nm-sol2.h: Ditto.
11426 * darwin-nat-info.c: Ditto.
11427 * dfp.c: Ditto.
11428 * dfp.h: Ditto.
11429 * gdb-demangle.h: Ditto.
11430 * i386-darwin-nat.c: Ditto.
11431 * i386-darwin-tdep.c: Ditto.
11432 * linux-fork.h: Ditto.
11433 * m32c-tdep.c: Ditto.
11434 * microblaze-linux-tdep.c: Ditto.
11435 * microblaze-rom.c: Ditto.
11436 * microblaze-tdep.c: Ditto.
11437 * microblaze-tdep.h: Ditto.
11438 * mips-linux-tdep.h: Ditto.
11439 * ppc-ravenscar-thread.c: Ditto.
11440 * ppc-ravenscar-thread.h: Ditto.
11441 * prologue-value.c: Ditto.
11442 * prologue-value.h: Ditto.
11443 * ravenscar-thread.c: Ditto.
11444 * ravenscar-thread.h: Ditto.
11445 * sparc-ravenscar-thread.c: Ditto.
11446 * sparc-ravenscar-thread.h: Ditto.
11447 * tilegx-linux-tdep.c: Ditto.
11448 * unwind_stop_reasons.def: Ditto.
11449 * windows-nat.h: Ditto.
11450 * xtensa-linux-tdep.c: Ditto.
11451 * xtensa-xtregs.c: Ditto.
11452 * regformats/regdat.sh: Ditto.
11453 * regformats/regdef.h: Ditto.
11454
6c01dd94
PA
114552013-02-12 Pedro Alves <palves@redhat.com>
11456
11457 * break-catch-sig.c: Update copyright years.
11458
b65a2bd9
SCR
114592013-02-11 Siva Chandra Reddy <sivachandra@google.com>
11460
11461 Add support for a destructor for ui_out data and use it to
11462 provide a ui_out destructor.
11463 * ui-out.h: Declare the new ui_out destructor.
11464 (ui_out_impl): Add a field for data destructor in ui_out_impl.
11465 * ui-out.c (default_data_destroy): Add a default data destructor
11466 which does nothing.
11467 (default_ui_out_impl): Set the new data_destroy field to
11468 default_data_destroy
11469 (uo_data_destroy): Local function which invokes the data
11470 destructor if present.
11471 (clear_table): Local function which clears the table data of a
11472 ui_out object.
11473 (ui_out_destroy): Public function which frees a ui_out object.
11474 (ui_out_table_end): Use the new clear_table function.
11475 * cli-out.c (cli_ui_out_impl): Set the new data_destroy field to
11476 NULL.
11477 * mi/mi-out.c (mi_ui_out_impl): Set the new data_destroy field
11478 to NULL.
11479
c2792f5a
DE
114802013-02-11 Doug Evans <dje@google.com>
11481
11482 * printcmd.c (printf_c_string,printf_wide_c_string): New functions.
11483 (printf_decfloat): New function. Broken out from ui_printf.
11484 Remove unnecessary code to shift the entire format string down.
11485 (printf_pointer): New function.
11486 (ui_printf): Code to print C strings, wide C strings, decfloats,
11487 and pointers moved to separate functions.
11488
d9e98382
SDJ
114892013-02-11 Sergio Durigan Junior <sergiodj@redhat.com>
11490
11491 * valops.c (value_assign): Handling bitfield offset in
11492 `lval_internalvar_component' case.
11493
4ff3ce77
DE
114942013-02-08 Doug Evans <dje@google.com>
11495
11496 * common/format.c (parse_format_string): Fix whitespace.
11497
901900c4
MGD
114982013-02-08 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
11499
11500 * stack.c (return_command): Work around uninitialized variable
11501 warning.
11502
b5dbc8d4
YZ
115032013-02-08 Yufeng Zhang <yufeng.zhang@arm.com>
11504
11505 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET): Change the
11506 number of the registers from 36 to 34.
11507
51d66578
MS
115082013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
11509
11510 * NEWS: Mention new AArch64 native and target support.
11511
176b1c95
MS
115122013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
11513
11514 * MAINTAINERS (Write After Approval): Add myself.
11515
9d19df75
MS
115162013-02-08 Jim MacArthur <jim.macarthur@arm.com>
11517 Marcus Shawcroft <marcus.shawcroft@arm.com>
11518 Nigel Stephens <nigel.stephens@arm.com>
11519 Yufeng Zhang <yufeng.zhang@arm.com>
11520
11521 * aarch64-linux-nat.c: New file.
11522 * config/aarch64/linux.mh: New file.
11523 * configure.host: Add AArch64.
11524 * Makefile.in (ALLDEPFILES): Add aarch64-linux-nat.c.
11525
7e1e0340
DE
115262013-02-07 Doug Evans <dje@google.com>
11527
11528 * cli/cli-cmds.c (_initialize_cli_cmds): Clarify argument to
11529 disassemble command.
11530
45e25a36
MS
115312013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
11532
11533 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
11534 set_gdbarch_fetch_tls_load_module_address.
11535
bbfdfe1c
DM
115362013-02-06 David S. Miller <davem@davemloft.net>
11537
11538 * sparc-tdep.c (sparc32_return_value): Handle writing return value when
11539 using RETURN_VALUE_ABI_PRESERVES_ADDRESS.
11540 * value.c (struct_return_convention): New function.
11541 (using_struct_return): Implement in terms of struct_return_convention.
11542 * value.h (struct_return_convention): Declare.
11543 * stack.c (return_command): Allow successful overriding of the return
11544 value when RETURN_VALUE_ABI_PRESERVES_ADDRESS.
11545
bc9abe4a
TT
115462013-02-06 Tom Tromey <tromey@redhat.com>
11547
11548 * python/py-type.c (typy_strip_typedefs): Don't call check_typedef
11549 outside of TRY_CATCH.
11550
134a2066
YQ
115512013-02-06 Yao Qi <yao@codesourcery.com>
11552
11553 * mi/mi-interp.c: Include "tracepoint.h".
11554 (mi_tsv_modified): Declare.
11555 (mi_tsv_created, mi_tsv_deleted): Update declaration.
11556 (mi_interpreter_init): Call observer_attach_tsv_modified.
11557 (mi_tsv_modified): New.
11558 (mi_tsv_created, mi_tsv_deleted): Update.
11559 * tracepoint.c (trace_variable_command): Call
11560 observer_notify_tsv_modified if the initial value of tsv is
11561 changed.
11562 (delete_trace_state_variable): Call
11563 observer_notify_tsv_deleted earlier.
11564 (trace_variable_command): Caller update.
11565 (create_tsv_from_upload): Likewise.
11566 * observer.sh: Declare "struct trace_state_variable".
11567
11568 * NEWS: Mention the new MI notification "=tsv-modified".
11569
59be2b6a
DE
115702013-02-05 Doug Evans <dje@google.com>
11571
11572 * completer.c (location_completer): Fix typo in comment.
11573
d30113d4
JK
115742013-02-05 Jan Kratochvil <jan.kratochvil@redhat.com>
11575
11576 * breakpoint.c (add_location_to_breakpoint): Insert the location with
11577 ADDRESS sorted.
11578
14ac654f
MS
115792013-02-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
11580
11581 * aarch64-tdep.c (aarch64_analyze_prologue): ARI fix:
11582 Refactor if statement to avoid trailing || operator.
11583
543bf33d
AT
115842013-02-05 Andreas Tobler <andreast@fgznet.ch>
11585
11586 * NEWS: Add PowerPC FreeBSD as a new native configuration.
11587
dc18f110
AT
115882013-02-04 Andreas Tobler <andreast@fgznet.ch>
11589
11590 * Makefile.in (ALL_TARGET_OBS): Add powerpc FreeBSD files.
11591 * configure.host: Add powerpc*-*-freebsd* target.
11592 * configure.tgt: Add target info for powerpc*-*-freebsd*.
11593 * ppcfbsd-nat.c, ppcfbsd-tdep.h, ppcfbsd-tdep.c: New files.
11594 * config/powerpc/fbsd.mh: New file.
11595
b3ac9c77
SDJ
115962013-02-04 Sergio Durigan Junior <sergiodj@redhat.com>
11597 Denys Vlasenko <dvlasenk@redhat.com>
11598 Pedro Alves <palves@redhat.com>
11599
11600 * gdbarch.sh (elfcore_write_linux_prpsinfo): New F hook.
11601 (struct elf_internal_linux_prpsinfo): Forward declare.
11602 * gdbarch.h, gdbarch.c: Regenerate.
11603 * linux-tdep.c: Include `cli/cli-utils.h'.
11604 (linux_fill_prpsinfo): New function.
11605 (linux_make_corefile_notes): Use linux_fill_prpsinfo. If there's
11606 an elfcore_write_linux_prpsinfo hook, use it, otherwise, use
11607 elfcore_write_linux_prpsinfo32 or elfcore_write_linux_prpsinfo64
11608 depending on gdbarch pointer bitness.
11609 * ppc-linux-tdep.c: Include elf-bfd.h.
11610 (ppc_linux_init_abi): Hook in elfcore_write_ppc_linux_prpsinfo32
11611 on 32-bit.
11612
176eb98c
MS
116132013-02-04 Jim MacArthur <jim.macarthur@arm.com>
11614 Marcus Shawcroft <marcus.shawcroft@arm.com>
11615 Nigel Stephens <nigel.stephens@arm.com>
11616 Yufeng Zhang <yufeng.zhang@arm.com>
11617
11618 * configure.tgt (aarch64*-*-linux*): Set build_gdbserver=yes.
11619
cf0dbd6f
MS
116202013-02-04 Jim MacArthur <jim.macarthur@arm.com>
11621 Marcus Shawcroft <marcus.shawcroft@arm.com>
11622 Nigel Stephens <nigel.stephens@arm.com>
11623 Yufeng Zhang <yufeng.zhang@arm.com>
11624
11625 * aarch64-newlib-tdep.c: New file.
11626 * configure.tgt: Add aarch64-newlib-tdep.o to gdb_target_obs of
11627 aarch64*-*-elf.
11628 * defs.h (enum gdb_osabi): Add GDB_OSABI_NEWLIB.
11629 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-newlib-tdep.o.
11630 (ALLDEPFILES): Add aarch64-newlib-tdep.c.
11631 * osabi.c (gdb_osabi_names): Add "Newlib".
11632
1ae3db19
MS
116332013-02-04 Jim MacArthur <jim.macarthur@arm.com>
11634 Marcus Shawcroft <marcus.shawcroft@arm.com>
11635 Nigel Stephens <nigel.stephens@arm.com>
11636 Yufeng Zhang <yufeng.zhang@arm.com>
11637
11638 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-linux-tdep.o.
11639 (ALLDEPFILES): Add aarch64-linux-tdep.c.
11640 * aarch64-linux-tdep.c: New file.
11641 * aarch64-linux-tdep.h: New file.
11642 * aarch64-tdep.h (gdbarch_tdep): Define gregset and fpregset.
11643 * configure.tgt: Add aarch64-none-linux-gnu.
11644
07b287a0
MS
116452013-02-04 Jim MacArthur <jim.macarthur@arm.com>
11646 Marcus Shawcroft <marcus.shawcroft@arm.com>
11647 Nigel Stephens <nigel.stephens@arm.com>
11648 Yufeng Zhang <yufeng.zhang@arm.com>
11649
11650 * Makefile.in (ALL_64_TARGET_OBS): Add arch64-tdep.o.
11651 (HFILES_NO_SRCDIR): Add aarch64-tdep.h.
11652 (ALLDEPFILES): Add aarch64-tdep.c.
11653 * aarch64-tdep.c: New file.
11654 * aarch64-tdep.h: New file.
11655 * configure.tgt: Add AArch64.
11656 * features/Makefile (WHICH): Add aarch64 and aarch64-without-fpu.
11657 (aarch64-expedite): New definition.
11658 * features/aarch64-core.xml: New file.
11659 * features/aarch64-fpu.xml: New file.
11660 * features/aarch64-without-fpu.c: New file (generated).
11661 * features/aarch64-without-fpu.xml: New file.
11662 * features/aarch64.c: New file (generated).
11663 * features/aarch64.xml: New file.
11664 * regformats/aarch64-without-fpu.dat: New file (generated).
11665 * regformats/aarch64.dat: New file (generated).
11666
0f1b18ab
JK
116672013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11668
11669 * contrib/expect-read1.c: New file.
11670 * contrib/expect-read1.sh: New file.
11671
233d95b5
JK
116722013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11673
11674 * dwarf2read.c (file_file_name): New function with code from
11675 file_full_name.
11676 (file_full_name): Move most of the code to file_file_name.
11677 (macro_start_file): Rename variable full_name to file_name and use
11678 file_file_name for it. Add comp_dir parameter to new_macro_table.
11679 * macrocmd.c (show_pp_source_pos): New variable fullname. Replace any
11680 macro_source_file->filename access by macro_source_fullname call.
11681 * macroscope.c (_initialize_macroscope): Update the new_macro_table
11682 caller.
11683 * macrotab.c (struct macro_table): New field comp_dir.
11684 (macro_include): New variables link_fullname and source_fullname.
11685 Replace any macro_source_file->filename access by macro_source_fullname
11686 call.
11687 (macro_lookup_inclusion): Remove the partial filenames checking code.
11688 (check_for_redefinition): New variables source_fullname and
11689 found_key_fullname. Replace any macro_source_file->filename access by
11690 macro_source_fullname call.
11691 (macro_undef): New variables source_fullname and key_fullname. Replace
11692 any macro_source_file->filename access by macro_source_fullname call.
11693 (macro_lookup_definition): New variables retval and source_fullname.
11694 Replace any macro_source_file->filename access by macro_source_fullname
11695 call.
11696 (foreach_macro): New variable key_fullname. Replace any
11697 macro_source_file->filename access by macro_source_fullname call.
11698 (foreach_macro_in_scope): New variable datum_fullname. Replace any
11699 macro_source_file->filename access by macro_source_fullname call.
11700 (new_macro_table): Add parameter comp_dir. Initialize T with it.
11701 (macro_source_fullname): New function.
11702 * macrotab.h (struct macro_source_file): Extent the filename field
11703 comment.
11704 (new_macro_table): New parameter comp_dir, add a comment for it.
11705 (macro_source_fullname): new declaration.
11706
da235a7c
JK
117072013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11708
11709 * dwarf2read.c (dw2_map_symtabs_matching_filename): Move variable
11710 this_real_name to outer block. Use it also for
11711 compare_filenames_for_search.
11712 (dw2_expand_symtabs_matching): New variable this_real_name. Use it
11713 with dw2_get_real_path for file_matcher, considering also
11714 BASENAMES_MAY_DIFFER.
11715 (file_full_name): Prepend COMP_DIR even for relative lh->INCLUDE_DIRS.
11716
fbd9ab74
JK
117172013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11718
11719 * dwarf2read.c (dw2_expand_symtabs_matching): Add basenames parameter
11720 to the file_matcher parameter. Pass 0 to it.
11721 (dwarf2_create_include_psymtab): Copy also DIRNAME.
11722 * psymtab.c (partial_map_symtabs_matching_filename): Drop handling of
11723 NULL psymtab_to_fullname result.
11724 (psymtab_to_fullname): Remove variable r. Never return NULL, assemble
11725 an expected filename instead.
11726 (expand_symtabs_matching_via_partial): Add basenames parameter to the
11727 file_matcher parameter. Call also psymtab_to_fullname, after newly
11728 considering BASENAMES_MAY_DIFFER.
11729 * source.c (rewrite_source_path): Remove static.
11730 * source.h (rewrite_source_path): New declaration.
11731 * symfile.h (struct quick_symbol_functions): Add basenames parameter to
11732 the expand_symtabs_matching field. Comment it.
11733 * symtab.c (file_matches): New function comment. Add parameter
11734 basenames, implement it.
11735 (search_symbols_file_matches): Add basenames parameter. Update the
11736 file_matches caller.
11737 (search_symbols): Match FILES also against symtab_to_fullname.
11738 Optimize it for BASENAMES_MAY_DIFFER.
11739
56d397a3
JK
117402013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11741
11742 * source.c (print_source_lines_base): Print for TUI also "fullname".
11743 * tui/tui-data.c (init_content_element): Change tui_locator_element
11744 field to full_name.
11745 * tui/tui-data.h (struct tui_locator_element): Likewise.
11746 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Rename
11747 tui_update_locator_filename calls to tui_update_locator_fullname.
11748 Replace symtab->filename refererence by symtab_to_fullname call.
11749 * tui/tui-out.c (tui_field_string): Check for "fullname" now.
11750 * tui/tui-source.c (tui_set_source_content): Change tui_locator_element
11751 field to full_name. Replace symtab->filename refererence by
11752 symtab_to_fullname call.
11753 (tui_show_symtab_source): Rename parameter to fullname. Change
11754 tui_locator_element field to full_name.
11755 * tui/tui-stack.c: Include source.h.
11756 (tui_set_locator_filename): Rename the declaration to ...
11757 (tui_set_locator_fullname): ... here. Rename its parameter to
11758 fullname, updates its comment.
11759 (tui_set_locator_info): Rename its parameter to fullname.
11760 (tui_set_locator_filename): Rename the definition to ...
11761 (tui_set_locator_fullname): ... here. Rename its parameter to
11762 fullname, updates its comment. Change tui_locator_element field to
11763 full_name.
11764 (tui_set_locator_info): Rename its parameter to fullname.
11765 (tui_set_locator_info): Rename callee to tui_set_locator_fullname.
11766 (tui_update_locator_filename): Rename to ...
11767 (tui_update_locator_fullname): ... here. Rename callee to
11768 tui_set_locator_fullname.
11769 (tui_show_frame_info): Replace symtab->filename refererence by
11770 symtab_to_fullname call.
11771 * tui/tui-stack.h (tui_update_locator_filename): Rename to ...
11772 (tui_update_locator_fullname): ... here.
11773 * tui/tui-winsource.c (tui_display_main): Rename the callee to
11774 tui_update_locator_fullname. Replace symtab->filename refererence by
11775 symtab_to_fullname call.
11776 * tui/tui.c (tui_show_source): Rename its parameter to fullname.
11777 Rename the callee to tui_update_locator_fullname.
11778 * tui/tui.h (tui_show_source): Rename its parameter to fullname.
11779
05cba821
JK
117802013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11781
11782 * ada-lang.c (user_select_syms): Replace symtab->filename refererences
11783 by symtab_to_filename_for_display calls.
11784 * breakpoint.c (print_breakpoint_location, resolve_sal_pc): Likewise.
11785 (clear_command): New variable sal_fullname, initialize it. Replace
11786 compare_filenames_for_search by filename_cmp with sal_fullname.
11787 (say_where, update_static_tracepoint): Replace symtab->filename
11788 refererences by symtab_to_filename_for_display calls.
11789 * cli/cli-cmds.c (edit_command, list_command, ambiguous_line_spec):
11790 Likewise.
11791 * dwarf2read.c: Include source.h.
11792 (fixup_go_packaging): Replace symtab->filename refererences by
11793 symtab_to_filename_for_display calls.
11794 * linespec.c (add_sal_to_sals): Rename variable filename to fullname.
11795 Replace symtab->filename refererences by symtab_to_filename_for_display
11796 calls.
11797 (create_sals_line_offset, convert_linespec_to_sals): New variable
11798 fullname, initialize it, replace symtab->filename reference by the
11799 variable.
11800 * linux-fork.c: Include source.h.
11801 (info_checkpoints_command): Replace symtab->filename refererences by
11802 symtab_to_filename_for_display calls.
11803 * macroscope.c (sal_macro_scope): Replace symtab->filename refererences
11804 by symtab_to_filename_for_display calls.
11805 * mdebugread.c: Include source.h.
11806 (psymtab_to_symtab_1): Replace symtab->filename refererences by
11807 symtab_to_filename_for_display calls.
11808 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
11809 (mi_cmd_file_list_exec_source_files): Likewise.
11810 * printcmd.c: Include source.h.
11811 (build_address_symbolic): Replace symtab->filename refererences by
11812 symtab_to_filename_for_display calls.
11813 * psymtab.c (partial_map_symtabs_matching_filename)
11814 (read_psymtabs_with_fullname): Call compare_filenames_for_search also
11815 with psymtab_to_fullname.
11816 * python/py-symtab.c (stpy_str): Replace symtab->filename refererences
11817 by symtab_to_filename_for_display calls.
11818 (stpy_get_filename): New variable filename, initialize it, use instead
11819 of symtab->filename refererences.
11820 (salpy_str): Make variable filename const char *. Replace
11821 symtab->filename refererences by symtab_to_filename_for_display calls.
11822 * skip.c: Include source.h and filenames.h.
11823 (skip_file_command): Remove const from the symtab variable. Replace
11824 symtab->filename refererences by symtab_to_fullname call.
11825 (function_name_is_marked_for_skip): New variables searched_for_fullname
11826 and fullname. Use them to search also with symtab's fullname.
11827 * source.c (find_source_lines): Replace symtab->filename refererences
11828 by symtab_to_filename_for_display calls.
11829 (print_source_lines_base): New variable filename, use it instead of
11830 symtab->filename. Replace symtab->filename refererences by
11831 symtab_to_filename_for_display calls.
11832 (line_info, forward_search_command): Replace symtab->filename
11833 refererences by symtab_to_filename_for_display calls.
11834 (reverse_search_command): Replace symtab->filename refererences by
11835 symtab_to_filename_for_display calls. New variable filename for it.
11836 * stack.c (frame_info): Likewise.
11837 * symmisc.c: Include source.h.
11838 (dump_objfile, dump_symtab_1, maintenance_print_symbols)
11839 (maintenance_info_symtabs): Replace symtab->filename refererences by
11840 symtab_to_filename_for_display calls.
11841 * symtab.c (iterate_over_some_symtabs): Call
11842 compare_filenames_for_search also with symtab_to_fullname.
11843 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Replace
11844 symtab->filename refererences by symtab_to_filename_for_display calls.
11845 (find_line_symtab): Replace symtab->filename refererences by
11846 symtab_to_filename_for_display calls.
11847 (file_matches): Replace filename_cmp by compare_filenames_for_search.
11848 (print_symbol_info): Make the last parameter const char *. New
11849 variable s_filename. Use it in the function.
11850 (symtab_symbol_info): Make the last_filename variable const char *.
11851 Replace symtab->filename refererences by symtab_to_filename_for_display
11852 calls.
11853 (rbreak_command): New variable fullname. Use it. Replace
11854 symtab->filename refererence by symtab_to_filename_for_display call.
11855 * tracepoint.c (set_traceframe_context, trace_find_line_command)
11856 (print_one_static_tracepoint_marker): Replace symtab->filename
11857 refererences by symtab_to_filename_for_display calls.
11858 * tui/tui-source.c (tui_set_source_content): New variables filename and
11859 s_filename. Replace symtab->filename refererences by this variable.
11860 Replace other symtab->filename refererences by
11861 symtab_to_filename_for_display calls.
11862
1b56eb55
JK
118632013-02-03 Eldar Gaynetdinov <hal9000ed2k@gmail.com>
11864 Jan Kratochvil <jan.kratochvil@redhat.com>
11865
11866 Add a new variable that controls a way in which filenames are
11867 displayed.
11868 * NEWS (set filename-display): New entry.
11869 * source.c (filename_display_basename, filename_display_relative)
11870 (filename_display_absolute, filename_display_kind_names)
11871 (filename_display_string, show_filename_display_string)
11872 (symtab_to_filename_for_display): New.
11873 (_initialize_source): Added initialization of 'filename-display'
11874 variable.
11875 * source.h (symtab_to_filename_for_display): Added declaration.
11876 * stack.c (print_frame): Added new variable and calling of a new
11877 function and condition with this variable. Changed third argument of
11878 calling of a function.
11879
aa079c93
JK
118802013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11881
11882 * tui/tui-data.c (init_win_info, tui_del_window, tui_free_window):
11883 Rename field reference filename to fullname.
11884 * tui/tui-data.h (struct tui_source_info): Rename field filename to
11885 fullname. New comment for it.
11886 * tui/tui-source.c (tui_set_source_content): Rename field reference
11887 filename to fullname. Initialize field by symtab_to_fullname now.
11888 * tui/tui-winsource.c (tui_update_breakpoint_info): Rename field
11889 reference filename to fullname. Use symtab_to_fullname during
11890 comparison.
11891
652a8996
JK
118922013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11893
11894 Code cleanup.
11895 * dwarf2read.c (dw2_expand_symtabs_with_filename): Rename to ...
11896 (dw2_expand_symtabs_with_fullname): ... here. Rename parameter
11897 filename to fullname. Rename variable this_name to this_fullname.
11898 Lowercase FILENAME_CMP call.
11899 (dw2_find_symbol_file): New comment for the returned string.
11900 (dwarf2_gdb_index_functions): Rename the function to
11901 dw2_expand_symtabs_with_fullname.
11902 * psymtab.c (read_psymtabs_with_filename): Rename to ...
11903 (read_psymtabs_with_fullname): ... here. Rename parameter filename to
11904 fullname.
11905 (psym_functions): Rename the function to read_psymtabs_with_fullname.
11906 * symfile.h (struct quick_symbol_functions): Rename field
11907 expand_symtabs_with_filename to expand_symtabs_with_fullname and its
11908 parameter filename to fullname. Document returned string meaning for
11909 find_symbol_file.
11910 * symtab.c (find_line_symtab): Rename the called function to
11911 expand_symtabs_with_fullname.
11912
af529f8f
JK
119132013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11914
11915 Code cleanup.
11916 * breakpoint.c (clear_command): Remove variable is_abs, unify the
11917 call of filename_cmp with compare_filenames_for_search.
11918 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove variable
11919 is_abs, unify the call of FILENAME_CMP with
11920 compare_filenames_for_search. New gdb_asserts for real_path and name.
11921 Unify the call of compare_filenames_for_search with FILENAME_CMP.
11922 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
11923 * symfile.h (struct quick_symbol_functions): Extend the comment for
11924 map_symtabs_matching_filename.
11925 * symtab.c (compare_filenames_for_search): Remove the function comment
11926 relative path requirement. Handle absolute filenames, with a comment.
11927 (iterate_over_some_symtabs): Remove variable is_abs, unify the call of
11928 FILENAME_CMP with compare_filenames_for_search. New gdb_asserts for
11929 real_path and name. Unify the call of compare_filenames_for_search
11930 with FILENAME_CMP.
11931 (iterate_over_symtabs): New gdb_assert on REAL_PATH.
11932
2f202fde
JK
119332013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11934
11935 Code cleanup.
11936 * breakpoint.c (print_breakpoint_location): Replace bp_location field
11937 source_file references by symtab field references. Remove variables
11938 sal and fullname.
11939 (momentary_breakpoint_from_master, add_location_to_breakpoint):
11940 (clear_command, say_where): Replace bp_location field source_file
11941 references by symtab field references.
11942 (bp_location_dtor): Remove the source_file reference.
11943 (update_static_tracepoint): Replace bp_location field source_file
11944 references by symtab field references.
11945 (breakpoint_free_objfile): New function.
11946 * breakpoint.h (struct bp_location): Extend the comment for line_number.
11947 Replace the field source_file by field symtab, extend its comment.
11948 (breakpoint_free_objfile): New declaration.
11949 * objfiles.c (free_objfile): Call breakpoint_free_objfile.
11950 * tui/tui-winsource.c (tui_update_breakpoint_info): Replace bp_location
11951 field source_file references by symtab field references.
11952
f5b95b50
JK
119532013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11954
11955 Replace xfullpath calls by gdb_realpath calls.
11956 * cli/cli-cmds.c (find_and_open_script): Remove xfullpath from the
11957 function comment.
11958 * dwarf2read.c (dw2_map_expand_apply): Remove parameter full_path.
11959 Remove it from the iterate_over_some_symtabs call.
11960 (dw2_map_symtabs_matching_filename): Remove parameter full_path.
11961 Remove it from the dw2_map_expand_apply calls, remove a block handling
11962 it.
11963 * psymtab.c (partial_map_expand_apply): Remove parameter full_path.
11964 Remove it from the iterate_over_some_symtabs call.
11965 (partial_map_symtabs_matching_filename): Remove parameter full_path.
11966 Remove it from the partial_map_expand_apply calls, remove a block
11967 handling it. Drop gdb_realpath call and cleanups from the real_path
11968 handling.
11969 * source.c (openp): Drop the comment part about xfullpath. Replace
11970 xfullpath calls by gdb_realpath calls.
11971 (find_and_open_source): Replace xfullpath call by gdb_realpath call.
11972 * symfile.h (struct quick_symbol_functions): Remove parameter full_path
11973 from method map_symtabs_matching_filename and its comment.
11974 * symmisc.c (maintenance_print_msymbols): Replace xfullpath call by
11975 gdb_realpath call.
11976 * symtab.c (iterate_over_some_symtabs): Remove parameter full_path,
11977 remove it also from the function comment, remove a block handling it.
11978 Drop gdb_realpath call and cleanups from the real_path handling.
11979 (iterate_over_symtabs): Drop variable full_path and its use.
11980 * symtab.h (iterate_over_some_symtabs): Remove parameter full_path.
11981 * utils.c (xfullpath): Remove.
11982 * utils.h (xfullpath): Remove.
11983
d78489bf
AT
119842013-02-01 Andreas Tobler <andreast@fgznet.ch>
11985
11986 * Makefile.in (ALL_TARGET_OBS): Add ppc64-tdep.o.
11987 (HFILES_NO_SRCDIR): Add ppc64-tdep.h.
11988 (ALLDEPFILES): Add ppc64-tdep.c.
11989 * configure.tgt (powerpc-*-linux* | powerpc64-*-linux*): Add
11990 ppc64-tdep.o to gdb_target_obs.
11991 * ppc64-tdep.h: New file.
11992 * ppc64-tdep.c: New file.
11993 (insn_d, insn_ds, insn_xfx, ppc64_desc_entry_point): Move from
11994 ppc-linux-tdep.c to here.
11995 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN)
11996 (PPC64_STANDARD_LINKAGE2_LEN): Likewise and use ARRAY_SIZE macro.
11997 (ppc64_standard_linkage1_target, ppc64_standard_linkage2_target)
11998 (ppc64_standard_linkage3_target, ppc64_skip_trampoline_code): Move
11999 from ppc-linux-tdep.c to here.
12000 (ppc64_convert_from_func_ptr_addr): Rename from
12001 ppc64_linux_convert_from_func_ptr_addr to
12002 ppc64_convert_from_func_ptr_addr and move from ppc-linux-tdep.c to
12003 here.
12004 * rs6000-tdep.c:
12005 (read_insn): Move from ppc-linux-tdep.c to here.
12006 (insns_match_pattern, insn_d_field, insn_ds_field): Move
12007 from ppc-linux-tdep.c to here and rename them with the ppc_ prefix.
12008 * ppc-linux-tdep.c: Include ppc64-tdep.h.
12009 Removed above functions.
12010 (ppc_linux_init_abi): Adjust.
12011
8db60374
AR
120122013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
12013
12014 * ada-valprint.c (ada_print_floating): Remove unused 'len'.
12015
f2e5f4ce
AR
120162013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
12017
12018 * ada-lang.c (assign_aggregate): Remove unused 'is_array_aggregate'.
12019
c1f7d745
PA
120202013-02-01 Pedro Alves <palves@redhat.com>
12021
12022 * dummy-frame.c (deprecated_pc_in_call_dummy): Delete function.
12023 * frame.h (deprecated_pc_in_call_dummy): Delete declaration.
12024
8a92335b
JK
120252013-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
12026
12027 * elfread.c (elf_symfile_read): Limit separate debug info additions to
12028 files with no separate debug info.
12029 * objfiles.c (add_separate_debug_objfile): Add gdb_assert calls.
12030 * symfile.c (read_symbols): Call find_separate_debug_file_in_section
12031 only for files with no separate debug info.
12032
8eacb197
TT
120332013-01-31 Tom Tromey <tromey@redhat.com>
12034
12035 * jit.c (jit_program_space_data): Rename from jit_inferior_data;
12036 change type.
12037 (struct jit_program_space_data): Rename from jit_inferior_data.
12038 Update comments.
12039 (get_jit_program_space_data): Rename from get_jit_inferior_data.
12040 Change return type. Attach data to program space.
12041 (jit_program_space_data_cleanup): Rename from
12042 jit_inferior_data_cleanup; change argument type.
12043 (jit_read_descriptor): Change 'inf_data' argument to 'ps_data',
12044 change type.
12045 (jit_register_code): Update.
12046 (jit_update_inferior_cache): Remove.
12047 (jit_breakpoint_deleted): Get jit data from the location's program
12048 space.
12049 (jit_breakpoint_re_set_internal): Rename 'inf_data' argument to
12050 'ps_data', change type.
12051 (jit_inferior_init, jit_breakpoint_re_set_internal)
12052 (jit_event_handler): Update.
12053 (free_objfile_data): Get data from objfile's program space.
12054 (_initialize_jit): Update.
12055
f25c0135
TT
120562013-01-31 Tom Tromey <tromey@redhat.com>
12057
12058 PR gdb/13987:
12059 * jit.c (struct jit_inferior_data) <cached_code_address,
12060 jit_breakpoint>: New fields.
12061 (jit_breakpoint_re_set_internal): Fix logging. Only create
12062 breakpoint if cached address has changed.
12063 (jit_update_inferior_cache, jit_breakpoint_deleted): New
12064 functions.
12065 (_initialize_jit): Register breakpoint deleted observer.
12066
974a734b
AR
120672013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12068
12069 * infrun.c (handle_syscall_event): Remove unused gdbarch.
12070 (save_infcall_suspend_state): Ifdef out unused inf.
12071 (restore_infcall_suspend_state): Ifdef out unused inf.
12072 * jit.c (jit_register_code): Remove unused i, b, inf_data.
12073 (jit_frame_sniffer): Remove unused inf_data.
12074
df54f8eb
AR
120752013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12076
12077 * c-exp.y (classify_inner_name): Remove unused type.
12078 * c-lang.c (c_printstr): Remove unused byte_order, i, things_printed,
12079 in_quotes, need_comma, wchar_buf, output, cleanup, iter, finished,
12080 need_escape.
12081 (c_get_string): Remove unused kind.
12082 * c-typeprint.c (c_type_print_args): Remove unused i, len, args, table2.
12083
5799c0b9
AR
120842013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12085
12086 * charset.c (intermediate_encoding): Remove unused i.
12087 * completer.c (signal_completer): Remove unused i.
12088 * continuations.c (discard_my_continuations_1): Remove unused
12089 continuation_ptr.
12090 * corelow.c (core_close): Remove unuseD name.
12091 (get_core_siginfo): Remove unused pid.
12092 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Remove unused
12093 i, cps.
12094 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove unused base_offset.
12095 (loclist_describe_location): Remove unused first.
12096 * event-top.c (command_line_handler): Remove unused got_eof.
12097 * exec.c (exec_close_1): Remove unused need_symtab_cleanup.
12098 (resize_section_table): Remove unused old_value.
12099 * gdb_bfd.c (gdb_bfd_map_section): Remove unused header.
12100 * gnu-v3-abi.c (compute_vtable_size): Remove unused addr.
12101 * i386-tdep.c (i386_process_record): Remove unused rex.
12102 * infcmd.c (get_return_value): Remove unused uiout.
12103 * jv-lang.c (type_from_class): Remove unused is_array.
12104 * jv-valprint.c (java_val_print): Remove unused i.
12105 * linux-nat.c (linux_nat_stop_lwp): Remove unused ptid.
12106 * linux-thread-db.c (thread_db_find_new_threads_2): Remove unuseD pid.
12107 * m2-typeprint.c (m2_print_type): Remove unused code.
12108 * macroexp.c (get_character_constant): Remove unused body_start.
12109 (macro_stringify): Remove unused result.
12110 * objc-lang.c (find_methods): Remove unused gdbarch.
12111 * objfiles.c (filter_overlapping_sections): Remove unused abfd1, abfd2.
12112 * regcache.c (regcache_cooked_read): Remove unused gdbarch.
12113 * stack.c (print_frame_args): Remove unused summary.
12114 * thread.c (thread_apply_command): Remove unused p.
12115 * valarith.c (value_x_unop): Remove unused mangle_ptr.
12116 * valops.c (search_struct_method): Remove unused skip.
12117 * valprint.c (generic_val_print): Remove unused byte_order.
12118 * varobj.c (varobj_update): Remove unused changed.
12119 * cli/cli-cmds.c (complete_command): Remove unused next_item.
12120 (alias_command): Remove unused c.
12121 * mi/mi-cmd-catch.c (mi_catch_load_unload): Remove unused c.
12122 * mi/mi-main.c (mi_cmd_data_write_register_values): Remove unused
12123 format.
12124 (mi_cmd_data_write_memory): Remove unused word_format.
12125 (mi_cmd_data_write_memory_bytes): Remove unused r.
12126 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Remove unused
12127 p_start, p_end.
12128 * python/python.c (_initialize_python): Remove unused cmd_name, cmd.
12129 * tui/tui-disasm.c (tui_set_disassem_content): Remove unused
12130 line_width.
12131
c656bca5
AR
121322013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12133
12134 * dwarf2-frame.c (dwarf2_compile_cfa_to_ax): Remove unused num_regs.
12135 * symtab.c (iterate_over_symtabs): Remove unused s.
12136 (find_pc_sect_symtab): Remove unused pspAce.
12137 (find_pc_sect_line): Remove unused alt_symtab.
12138 (find_pcs_for_symtab_line): Remove unused ix, previous_function.
12139 (completion_list_add_name): Remove unused newsize.
12140
7078baeb
TT
121412013-01-31 Tom Tromey <tromey@redhat.com>
12142
12143 PR c++/14998:
12144 * dwarf2read.c (read_tag_ptr_to_member_type): Handle
12145 TYPE_CODE_FUNC.
12146
c2e8b827
AR
121472013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12148
12149 * target.c (target_read_string): Remove unused origlen.
12150
0e43993a
AR
121512013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12152
12153 * auto-load.c (auto_load_expand_dir_vars): Remove unused dir_vec.
12154 * ax-gdb.c (gen_printf): Remove unused expr, i, bot, fr, flen, fmt.
12155 * ax-general.c (ax_print): Remove unused is_float.
12156 * blockframe.c (block_innermost_frame): Remove unused start, end.
12157 * break-catch-sig.c (catch_signal_command): Remove unused gdbarch.
12158
765a97ab
AR
121592013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12160
12161 * solib-svr4.c (svr4_keep_data_in_core): Remove unused lmo.
12162 (svr4_read_so_list): Remove unused lmo.
12163 * solib-target.c (solib_target_relocate_section_addresses): Remove
12164 unused flags.
12165
a99dad3d
TT
121662013-01-30 Tom Tromey <tromey@redhat.com>
12167
12168 * hppa-tdep.c (read_unwind_info): Use SECT_OFF_TEXT, not "0".
12169
3bff1ecd
TT
121702013-01-30 Tom Tromey <tromey@redhat.com>
12171
12172 * symfile.c (get_file_crc): Use bfd_calc_gnu_debuglink_crc32.
12173 * utils.c (gnu_debuglink_crc32): Remove.
12174 * utils.h (gnu_debuglink_crc32): Don't declare.
12175
7d455152
TT
121762013-01-30 Tom Tromey <tromey@redhat.com>
12177
12178 * dwarf2read.c (compute_delayed_physnames, read_call_site_scope)
12179 (read_structure_type, read_enumeration_type): Remove cast.
12180
abee88f2
TT
121812013-01-30 Tom Tromey <tromey@redhat.com>
12182
12183 * dwarf2read.c (read_namespace_type): Remove cast.
12184 (read_typedef): Likewise.
12185
8d9878a4
TT
121862013-01-29 Tom Tromey <tromey@redhat.com>
12187
12188 * dwarf2read.c (free_dwo_file): Remove assert.
12189
a543d2a9
TT
121902013-01-29 Tom Tromey <tromey@redhat.com>
12191
12192 * value.c (deprecated_set_value_modifiable): Remove.
12193 * value.h (deprecated_set_value_modifiable): Remove.
12194
bed911e5
DE
121952013-01-28 Doug Evans <dje@google.com>
12196
12197 * dwarf2loc.c (dwarf2_find_location_expression): Don't add base address
12198 to addresses from dwo files.
12199
28c64fc2
SCR
122002013-01-25 Siva Chandra Reddy <sivachandra@google.com>
12201
12202 * valops.c (find_overload_match): Remove unused argument 'lax'.
12203 * value.h: Remove unused argument 'lax' from the declaration of
12204 find_overload_match.
12205 * eval.c (value_subexp_standard): Do not pass a 'lax' argument
12206 to find_overload_match.
12207 * valarith.c (value_user_defined_cpp_op): Do not pass a 'lax'
12208 argument to find_overload_match.
12209
4d4ec4e5
TT
122102013-01-25 Tom Tromey <tromey@redhat.com>
12211
12212 * dwarf2read.c (processing_has_namespace_info): Remove.
12213 (struct dwarf2_cu) <processing_has_namespace_info>: New field.
12214 (process_die, read_func_scope, dwarf2_start_symtab)
12215 (new_symbol_full): Update.
12216
195a3f6c
TT
122172013-01-25 Tom Tromey <tromey@redhat.com>
12218
12219 * cp-namespace.c (cp_set_block_scope): Remove.
12220 * cp-support.h (cp_set_block_scope): Remove.
12221 * dbxread.c: Include block.h.
12222 (cp_set_block_scope): New function.
12223 (process_one_symbol): Update.
12224 * dwarf2read.c (read_func_scope): Use block_set_scope.
12225
8ba0730a
PA
122262013-01-25 Pedro Alves <palves@redhat.com>
12227
12228 * remote.c (add_current_inferior_and_thread): Tweak comment.
12229
12aaed36
TT
122302013-01-25 Tom Tromey <tromey@redhat.com>
12231
12232 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
12233 (cp_add_using_directive): Add 'copy_names' argument.
12234 * cp-support.h (cp_add_using_directive): Update.
12235 (struct using_direct) <import_src, import_dest, alias,
12236 declaration>: Now const.
12237 * dwarf2read.c (read_import_statement): Use obconcat.
12238 Don't copy names passed to cp_add_using_directive.
12239
7fc75ca7
TT
122402013-01-25 Tom Tromey <tromey@redhat.com>
12241
12242 * c-exp.y (qualified_name): Use TYPE_SAFE_NAME.
12243
3405876a
PA
122442013-01-25 Pedro Alves <palves@redhat.com>
12245
12246 * remote.c (stop_reply_extract_thread): New.
12247 (add_current_inferior_and_thread): New parameter 'wait_status'.
12248 Handle it.
12249 (remote_start_remote): Pass wait status to
12250 add_current_inferior_and_thread.
12251 (extended_remote_run): Update comment.
12252 (extended_remote_create_inferior_1): Pass wait status to
12253 add_current_inferior_and_thread.
12254
8954db33
AB
122552013-01-25 Andrew Burgess <aburgess@broadcom.com>
12256 Ulrich Weigand <uweigand@de.ibm.com>
12257
12258 * valarith.c (value_vector_widen): New function for replicating a
12259 scalar into a vector.
12260 (value_binop): Use value_vector_widen to widen scalar to vector
12261 rather than casting, this better matches gcc C behaviour.
12262 * valops.c (value_casst): Update logic for casting between vector
12263 types, and for casting from scalar to vector, try to match gcc C
12264 behaviour.
12265 * value.h (value_vector_widen): Declare.
12266 * opencl-lang.c (opencl_value_cast): New opencl specific casting
12267 function, handle special case for casting scalar to vector.
12268 (opencl_relop): Use opencl_value_cast.
12269 (evaluate_subexp_opencl): Use opencl_value_cast instead of
12270 value_cast, and handle BINOP_ASSIGN, UNOP_CAST, and UNOP_CAST_TYPE
12271 in order to use opencl_value_cast.
12272
843b20dc
YQ
122732013-01-25 Yao Qi <yao@codesourcery.com>
12274
12275 * event-loop.c: Include "queue.h".
12276 (gdb_event_p): New typedef.
12277 (DECLARE_QUEUE_P): Use.
12278 (DEFINE_QUEUE_P): Use.
12279 (async_queue_event): Remove.
12280 (gdb_event_xfree): New.
12281 (initialize_event_loop): New.
12282 (process_event): Use QUEUE macros.
12283 (event_queue): Remove.
12284 (gdb_wait_for_event): Caller update.
12285 (check_async_event_handlers): Likewise.
12286 (poll_timers): Likewise.
12287 * event-loop.h (initialize_event_loop): Declare.
12288 * event-loop.c (gdb_event_xfree): New.
12289 * top.c (gdb_init): Call initialize_event_loop.
12290
20ad8856
YQ
122912013-01-25 Yao Qi <yao@codesourcery.com>
12292
12293 * event-loop.c (async_queue_event): Remove one parameter
12294 'position'. Remove code handling 'position' == TAIL.
12295 (gdb_wait_for_event): Caller update.
12296 (check_async_event_handlers): Caller update.
12297 (poll_timers): Caller update.
12298 * event-loop.h (enum queue_position): Remove.
12299
3bbbe775
MK
123002013-01-25 Maxim Kuvyrkov <maxim@kugelworks.com>
12301
12302 * MAINTAINERS: Update my email.
12303
a87d9ac4
YQ
123042013-01-25 Yao Qi <yao@codesourcery.com>
12305
12306 * main.c (print_gdb_help): Remove "--epoch" from the help
12307 message.
12308
2077afdd
TD
123092013-01-24 Ulrich Weigand  <uweigand@de.ibm.com>
12310
12311 * symtab.c (skip_prologue_using_sal): Consider a file
12312 change the same as an increased line number
12313
63da4037
TD
123142013-01-24 Tiago Stürmer Daitx  <tdaitx@linux.vnet.ibm.com>
12315
30e8ee25 12316 * MAINTAINERS (Write After Approval): Add myself to the list.
63da4037 12317
45e6c716
TT
123182013-01-24 Tom Tromey <tromey@redhat.com>
12319
12320 * ada-lang.h (ada_decode_symbol): Make return type const.
12321 * ada-lang.c (ada_decode_symbol): Likewise.
12322
b1ae631a
DE
123232013-01-23 Doug Evans <dje@google.com>
12324
12325 * linespec.c (find_linespec_symbols): Make static.
12326
55a78401
SDJ
123272013-01-23 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
12328
12329 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Set correct
12330 type on float conversion for complex type.
12331
bea883fd
SCR
123322013-01-23 Siva Chandra Reddy <sivachandra@google.com>
12333
12334 Add a new class gdb.Architecture which exposes GDB's
12335 internal representation of architecture via GDB Python API.
12336 * Makefile.in: Add entries corresponding to the new file
12337 python/py-arch.c.
12338 * NEWS (Python Scripting): Add entries for the new class
12339 gdb.Architecture and the new method gdb.Frame.architecture.
12340 * python/py-arch.c: Implement gdb.Architecture class.
12341 * python/py-frame.c (frapy_arch): Implement the method
12342 gdb.Frame.architecture().
12343 (frame_object_methods): Add 'architecture' to the method table.
12344 * python/python-internal.h: Add declarations of new utility
12345 functions.
12346 * python/python.c (_initialize_python): Initialize
12347 gdb.Architecture class.
12348
796a7ff8
DE
123492013-01-23 Doug Evans <dje@google.com>
12350
12351 Work around binutils/15021.
12352 * dwarf2read.c (dwarf2_per_cu_data): Split imported_symtabs and
12353 type_unit_group out of union s. All uses updated.
12354 (read_index_from_section): Watch for index version 8.
12355 (follow_die_sig): If using .gdb_index version <= 7, record the TU as
12356 an imported symtab.
12357 (write_psymtabs_to_index): Increment version number to 8.
12358
0928e93d
PA
123592013-01-22 Pedro Alves <palves@redhat.com>
12360
12361 * annotate.c (breakpoint_changed): Skip if breakpoint is not
12362 user-visible.
12363
9c97429f
PA
123642013-01-22 Pedro Alves <palves@redhat.com>
12365
12366 * annotate.c (annotate_breakpoints_changed): Rename to ...
12367 (annotate_breakpoints_invalid): ... this. Make static.
12368 (breakpoint_changed): Adjust.
12369 (_initialize_annotate): Always install the observers. Install a
12370 "breakpoint_created" observer.
12371 * annotate.h (annotate_breakpoints_changed): Delete declaration.
12372 * breakpoint.c (set_breakpoint_condition)
12373 (breakpoint_set_commands, do_map_commands_command)
12374 (init_raw_breakpoint, clear_command, set_ignore_count)
12375 (enable_breakpoint_disp): No longer call
12376 annotate_breakpoints_changed.
12377
bd00c694
PA
123782013-01-22 Pedro Alves <palves@redhat.com>
12379
12380 * annotate.c: Include "inferior.h".
12381 (frames_invalid_emitted)
12382 (breakpoints_invalid_emitted): New globals.
12383 (async_background_execution_p): New function.
12384 (annotate_breakpoints_changed, annotate_frames_invalid): Skip
12385 emitting the annotation if it has already been emitted.
12386 (annotate_display_prompt): New function.
12387 * annotate.h (annotate_display_prompt): New declaration.
12388 * event-top.c: Include annotate.h.
12389 (display_gdb_prompt): Call annotate_display_prompt.
12390
187d10dd
PA
123912013-01-22 Pedro Alves <palves@redhat.com>
12392
12393 * annotate.c (ignore_count_changed): Delete.
12394 (annotate_breakpoints_changed): Don't clear ignore_count_changed.
12395 (annotate_ignore_count_change): Delete.
12396 (annotate_stopped): Don't emit a delayed breakpoints-changed
12397 annotation.
12398 * annotate.h (annotate_ignore_count_change): Delete.
12399 * breakpoint.c (bpstat_check_breakpoint_conditions): Don't call
12400 annotate_ignore_count_change.
12401
d84cf7eb
TT
124022013-01-22 Tom Tromey <tromey@redhat.com>
12403
12404 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>: Only
12405 require_rvalue for a register location.
12406
8f1d5693
MK
124072013-01-21 Marc Khouzam <marc.khouzam@ericsson.com>
12408
12409 * breakpoint.c (print_one_breakpoint_location): Add MI
12410 field 'thread-groups' when printing a breakpoint.
12411 (output_thread_groups): New function.
12412
aa6199c6
SCR
124132013-01-21 Siva Chandra Reddy <sivachandra@google.com>
12414
12415 * python/lib/gdb/commands/explore.py
12416 (CompoundExplorer.explore_expr): Correct the name of a method
12417 being invoked.
12418 (ExploreTypeCommand.invoke): Add a missing 'return'.
12419
d2afef13
TT
124202013-01-21 Tom Tromey <tromey@redhat.com>
12421
12422 * gdb_obstack.h (obconcat): Move declaration here, from...
12423 * symfile.h (obconcat): ... here.
12424 * gdb_obstack.c: New file.
12425 (obconcat): Move from...
12426 * symfile.c (obconcat): ... here.
12427 * Makefile.in (SFILES): Add gdb_obstack.c.
12428 (COMMON_OBS): Add gdb_obstack.o.
12429
10f0c4bb
TT
124302013-01-21 Tom Tromey <tromey@redhat.com>
12431
12432 * symfile.h (obsavestring): Don't declare.
12433 * symfile.c (obsavestring): Remove.
12434 * ada-exp.y: Use obstack_copy0, not obsavestring.
12435 * ada-lang.c: Use obstack_copy0, not obsavestring.
12436 * coffread.c: Use obstack_copy0, not obsavestring.
12437 * cp-namespace.c: Use obstack_copy0, not obsavestring.
12438 * dbxread.c: Use obstack_copy0, not obsavestring.
12439 * dwarf2read.c: Use obstack_copy0, not obsavestring.
12440 * jit.c: Use obstack_copy0, not obsavestring.
12441 * mdebugread.c: Use obstack_copy0, not obsavestring.
12442 * psymtab.c: Use obstack_copy0, not obsavestring.
12443 * stabsread.c: Use obstack_copy0, not obsavestring.
12444 * xcoffread.c: Use obstack_copy0, not obsavestring.
12445
86f62fd7
TT
124462013-01-21 Tom Tromey <tromey@redhat.com>
12447
12448 * dwarf2read.c (fixup_go_packaging): Save package name
12449 on objfile obstack.
12450 * gdbtypes.c (init_type): Don't copy name.
12451
15d034d0
TT
124522013-01-21 Tom Tromey <tromey@redhat.com>
12453
12454 * dwarf2read.c (struct partial_die_info) <name, scope>: Now
12455 const.
12456 (struct attribute) <u.str>: Now const.
12457 (struct fnfieldlist) <name>: Now const.
12458 (dw2_get_file_names_reader, init_cutu_and_read_dies): Update.
12459 (partial_die_parent_scope): Make return type const.
12460 (partial_die_full_name, add_partial_symbol): Update.
12461 (dwarf2_compute_name, dwarf2_full_name, dwarf2_physname): Make
12462 'name' const.
12463 (find_file_and_directory): Make 'name' and 'comp_dir' const.
12464 (read_file_scope, read_func_scope, dwarf2_add_field)
12465 (dwarf2_add_member_fn, read_structure_type)
12466 (process_enumeration_scope, read_array_type, read_module_type)
12467 (read_base_type, read_subrange_type): Update.
12468 (dwarf2_start_symtab): Make 'name' and 'comp_dir' const.
12469 (new_symbol_full, guess_full_die_structure_name): Update.
12470 (dwarf2_canonicalize_name): Return const type. Make 'name' const.
12471 (dwarf2_name): Return const type.
12472 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make 'comp_dir'
12473 const.
12474
748e18ae
TT
124752013-01-21 Tom Tromey <tromey@redhat.com>
12476
12477 * gdbtypes.c (init_type): Make 'name' const.
12478 * gdbtypes.h (init_type): Update.
12479
46212e0b
TT
124802013-01-21 Tom Tromey <tromey@redhat.com>
12481
12482 * buildsym.c (patch_subfile_names): Use set_last_source_file.
12483 (start_symtab): Make 'name' and 'dirname' const. Use
12484 set_last_source_file.
12485 (restart_symtab, reset_symtab_globals): Use set_last_source_file.
12486 (last_source_file): Define. Now static.
12487 (set_last_source_file, get_last_source_file): New functions.
12488 * buildsym.h (last_source_file): Don't declare.
12489 (start_symtab): Update.
12490 (set_last_source_file, get_last_source_file): Declare.
12491 * coffread.c (complete_symtab): Use set_last_source_file.
12492 (coff_end_symtab): Likewise.
12493 (coff_symtab_read): Use set_last_source_file, get_last_source_file.
12494 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Use
12495 set_last_source_file.
12496 (process_one_symbol): Use get_last_source_file.
12497 * mdebugread.c (parse_partial_symbols): Use set_last_source_file.
12498 (psymtab_to_symtab_1): Use get_last_source_file.
12499 * xcoffread.c (process_linenos): Use get_last_source_file.
12500 (complete_symtab): Use set_last_source_file.
12501 (read_xcoff_symtab): Use set_last_source_file, get_last_source_file.
12502 (scan_xcoff_symtab): Use set_last_source_file.
12503
9d2ceabe
TT
125042013-01-21 Tom Tromey <tromey@redhat.com>
12505
12506 * symtab.c (struct demangled_name_entry) <mangled>: Now const.
12507 (symbol_set_names): Remove casts. Handle field const-ness.
12508
cfc594ee
TT
125092013-01-21 Tom Tromey <tromey@redhat.com>
12510
12511 * dwarf2read.c (new_symbol_full): Remove cast.
12512 * symtab.c (symbol_set_demangled_name): Make 'name' const.
12513 * symtab.h (symbol_set_demangled_name): Update.
12514
5484b13a
TT
125152013-01-21 Tom Tromey <tromey@redhat.com>
12516
12517 * main.c (captured_main): Call bfd_init.
12518
1605ef26
TT
125192013-01-21 Tom Tromey <tromey@redhat.com>
12520
12521 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Don't set default ABI.
12522 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Set default ABI.
12523 * minsyms.c (install_minimal_symbols): Don't check for _Z symbols.
12524 * NEWS: Update.
12525
3b74cdc3
JK
125262013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
12527
12528 * symmisc.c (maintenance_print_msymbols): Check also ST_DEV.
12529
5a352474
JK
125302013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
12531
12532 Fix gdb.fortran/common-block.exp crash in PIE mode.
12533 * dwarf2read.c (new_symbol_full) <DW_TAG_common_block>: Use
12534 LOC_COMMON_BLOCK.
12535 * f-valprint.c (info_common_command_for_block): Expect
12536 LOC_COMMON_BLOCK in gdb_assert.
12537 * symtab.h (struct general_symbol_info): Update comment for the
12538 common_block member.
12539 (domain_enum): Extend comment for the COMMON_BLOCK_DOMAIN member.
12540 (enum address_class): New member LOC_COMMON_BLOCK.
12541
c60797fd
DB
125422013-01-18 David Blaikie <dblaikie@gmail.com>
12543
12544 * MAINTAINERS (Write After Approval): Add "David Blaikie".
0cae7dfb 12545
46f35228
TT
125462013-01-18 Tom Tromey <tromey@redhat.com>
12547
12548 PR c++/14999:
12549 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>:
12550 Call require_rvalue.
12551
257e7a09
YQ
125522013-01-18 Yao Qi <yao@codesourcery.com>
12553
12554 * dbxread.c (dbx_psymtab_to_symtab): Delete the declaration.
12555 (dbx_read_symtab): New declaration.
12556 (dbx_psymtab_to_symtab): Delete.
12557 (dbx_read_symtab): Rename from dbx_psymtab_to_symtab.
12558 Rename parameter PST to SELF. Exchanged two parameters.
12559 (start_psymtab): Caller update.
12560 * dwarf2read.c (dwarf2_psymtab_to_symtab): Delete the declaration.
12561 (dwarf2_read_symtab): New declaration.
12562 (dwarf2_psymtab_to_symtab): Delete.
12563 (dwarf2_read_symtab): Rename from dwarf2_psymtab_to_symtab.
12564 Rename parameter PST to SELF. Exchanged two parameters.
12565 (create_partial_symtab): Caller update.
12566 * mdebugread.c (mdebug_psymtab_to_symtab): Delete.
12567 (mdebug_read_symtab): Rename from mdebug_psymtab_to_symtab.
12568 Rename parameter PST to SELF. Exchanged two parameters.
12569 (parse_partial_symbols, new_psymtab): Caller update.
12570 * psympriv.h (struct partial_symtab) <read_symtab>: Exchange
12571 two parameters.
12572 * psymtab.c (psymtab_to_symtab): Caller update.
12573 * xcoffread.c (xcoff_psymtab_to_symtab): Delete.
12574 (xcoff_read_symtab): Rename from xcoff_psymtab_to_symtab.
12575 Rename parameter PST to SELF. Exchanged two parameters.
12576 (xcoff_start_psymtab): Caller update.
12577
0de5618e
YQ
125782013-01-18 Yao Qi <yao@codesourcery.com>
12579
12580 * infrun.c (proceed): Rename local variable 'oneproc' to
12581 'force_step'.
12582
5c04624b
DE
125832013-01-17 Doug Evans <dje@google.com>
12584
848e3e78
DE
12585 * dwarf2read.c (dw2_build_type_unit_groups_reader): Delete.
12586 (dw2_build_type_unit_groups): Delete. All uses updated.
12587
5c04624b
DE
12588 * symtab.h (struct symbol_search): Add comment.
12589
d84fca2c
JK
125902013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
12591
12592 * symtab.c (compare_filenames_for_search): New comment for
12593 HAS_DRIVE_SPEC.
12594
6108433d
TT
125952013-01-17 Tom Tromey <tromey@redhat.com>
12596
12597 * cp-abi.c (cp_abi_completer): Fix typo in assignment.
12598
c89ffd86
JK
125992013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
12600
12601 * symtab.c (iterate_over_some_symtabs): New variable cleanups,
12602 initialize it by existing make_cleanup. Call new do_cleanups.
12603
db2b2972
TT
126042013-01-17 Tom Tromey <tromey@redhat.com>
12605
12606 * cp-abi.c (cp_abi_completer): New function.
12607 (_initialize_cp_abi): Set completer for "set cp-abi".
12608
be7d37a2
TT
126092013-01-17 Tom Tromey <tromey@redhat.com>
12610
12611 * mem-break.c: Remove obsolete comment.
12612 * bfin-tdep.c (bfin_breakpoint_from_pc): Fix comment.
12613
c9fb1240
SD
126142012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
12615
12616 * jit.c (jit_reader_load_command): Interpret the jit reader name
12617 as an absolute path if it begins with a forward slash.
12618
db334a01
SD
126192012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
12620
12621 PR gdb/14550
12622
12623 * jit.c (finalize_symtab): Ensure that only the global block has a
12624 NULL superblock.
12625
7d928dac
PA
126262013-01-17 Pedro Alves <palves@redhat.com>
12627
12628 * acinclude.m4: Include ../config/plugins.m4,
12629 ../config/largefile.m4 and ../config/lead-dot.m4. Add comments.
12630 * Makefile.in (aclocal_m4_deps): Update.
12631 * aclocal.m4: Renegerate.
12632
fb8cf7c5
DE
126332013-01-16 Doug Evans <dje@google.com>
12634
12635 * contrib/cc-with-tweaks.sh: Add references to Fission docs.
12636
ab04a2af
TT
126372013-01-16 Pedro Alves <palves@redhat.com>
12638 Tom Tromey <tromey@redhat.com>
12639
12640 PR cli/7221:
12641 * NEWS: Add "catch signal".
12642 * breakpoint.c (base_breakpoint_ops): No longer static.
12643 (bpstat_explains_signal): New function.
12644 (init_catchpoint): No longer static.
12645 (base_breakpoint_explains_signal): New function.
12646 (base_breakpoint_ops): Initialize new field.
12647 * breakpoint.h (enum bpstat_signal_value): New.
12648 (struct breakpoint_ops) <explains_signal>: New field.
12649 (bpstat_explains_signal): Remove macro, declare as function.
12650 (base_breakpoint_ops, init_catchpoint): Declare.
12651 * break-catch-sig.c: New file.
12652 * inferior.h (signal_catch_update): Declare.
12653 * infrun.c (signal_catch): New global.
12654 (handle_syscall_event): Update for change to
12655 bpstat_explains_signal.
12656 (handle_inferior_event): Likewise. Always handle random signals
12657 via bpstats.
12658 (signal_cache_update): Check signal_catch.
12659 (signal_catch_update): New function.
12660 (_initialize_infrun): Initialize signal_catch.
12661 * Makefile.in (SFILES): Add break-catch-sig.c.
12662 (COMMON_OBS): Add break-catch-sig.o.
12663
8ac3646f
TT
126642013-01-16 Tom Tromey <tromey@redhat.com>
12665
12666 * breakpoint.c (print_one_catch_fork, print_one_catch_vfork)
12667 (print_one_catch_solib, print_one_catch_syscall)
12668 (print_one_catch_exec, print_one_exception_catchpoint): Emit
12669 "catch-type".
12670
5a18e302
YQ
126712013-01-16 Yao Qi <yao@codesourcery.com>
12672
12673 * printcmd.c (current_display_number): Make it static.
12674
3f01d0d0
YQ
126752013-01-16 Yao Qi <yao@codesourcery.com>
12676
12677 * infcmd.c (step_once): Don't check '!single_inst' as it was
12678 checked before.
12679
1ed59174
JK
126802013-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
12681
12682 * dwarf2read.c (psymtab_include_file_name): Extend the function comment.
12683
44478ab3
TT
126842013-01-14 Tom Tromey <tromey@redhat.com>
12685
12686 * cli/cli-decode.c (add_setshow_string_noescape_cmd): Return the
12687 set command.
12688 * command.h (add_setshow_string_noescape_cmd): Update.
12689 * corefile.c (set_gnutarget_command): Remove trailing whitespace.
12690 (complete_set_gnutarget): New function.
12691 (_initialize_core): Set the "set gnutarget" completer.
12692
06d66ee9
TT
126932013-01-14 Tom Tromey <tromey@redhat.com>
12694
12695 PR symtab/14442:
12696 * c-typeprint.c (cp_type_print_method_args): Handle 'restrict'.
12697 (c_type_print_modifier): Likewise.
12698 * dwarf2read.c (read_tag_restrict_type): New function.
12699 (read_type_die_1): Handle DW_TAG_restrict_type.
12700 * gdbtypes.c (make_restrict_type): New function.
12701 (recursive_dump_type): Handle TYPE_RESTRICT.
12702 * gdbtypes.h (enum type_flag_values): Renumber.
12703 (enum type_instance_flag_value): Add
12704 TYPE_INSTANCE_FLAG_RESTRICT.
12705 (TYPE_RESTRICT): New macro.
12706 (make_restrict_type): Declare.
12707
c9bf0622
TT
127082013-01-14 Tom Tromey <tromey@redhat.com>
12709
12710 PR symtab/14931:
12711 * psymtab.c (struct psymtab_state): New.
12712 (discard_psymtabs_upto, make_cleanup_discard_psymtabs): New
12713 functions.
12714 * psympriv.h (make_cleanup_discard_psymtabs): Declare.
12715 * dwarf2read.c (dwarf2_build_psymtabs): Catch exceptions.
12716
44d594fd
PA
127172013-01-14 Richard Sharman <richard_sharman@mitel.com>
12718 Pedro Alves <palves@redhat.com>
12719
12720 PR remote/14786
12721
12722 * remote.c (remote_threads_info): Make a copy of the reply from
12723 qfThreadInfo and use that instead of rs->buf.
12724
442e4d9c
YQ
127252013-01-14 Yao Qi <yao@codesourcery.com>
12726
12727 * dbxread.c (dbx_psymtab_to_symtab_1): Don't check PST is NULL.
12728 (dbx_psymtab_to_symtab): Likewise.
12729 * dwarf2read.c (dwarf2_psymtab_to_symtab): Likewise.
12730 * mdebugread.c (mdebug_psymtab_to_symtab): Likewise.
12731 * xcoffread.c (xcoff_psymtab_to_symtab_1): Likewise.
12732
5b12a61c
JK
127332013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
12734
12735 * parse.c (parse_exp_in_context): New variable inner_chain. Call
12736 make_cleanup_restore_current_language. Call set_language. Move
12737 OLD_CHAIN and INNER_CHAIN cleanups.
12738 * utils.c (do_restore_current_language)
12739 (make_cleanup_restore_current_language): New functions.
12740 * utils.h (make_cleanup_restore_current_language): New declaration.
12741
f0a4b570
JK
127422013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
12743
12744 * source.c (symtab_to_fullname): Apply rewrite_source_path also for
12745 non-existing files.
12746
57b3c00c
JK
12747 * source.c (symtab_to_fullname): Do not prepend DIRNAME for
12748 non-existing files if FILENAME is already absolute.
12749
daefa854
JK
127502013-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
12751
12752 * macrocmd.c (macro_inform_no_debuginfo): Use puts_filtered instead of
12753 fputs_filtered. Append trailing newline.
12754
ca9c6ee2
YQ
127552013-01-11 Yao Qi <yao@codesourcery.com>
12756 Stan Shebs <stan@codesourcery.com>
12757
12758 * psymtab.c (init_psymbol_list): Clarify the comment.
12759
f28045c2
YQ
127602013-01-11 Yao Qi <yao@codesourcery.com>
12761
12762 * breakpoint.c (print_one_breakpoint_location): Remove dead code.
12763 (update_dprintf_command_list): Assert that 'printf_line' is
12764 non-null. Remove condition check.
12765
da5132d3
JK
127662013-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
12767
12768 Code cleanup.
12769 * psymtab.c (psymtab_to_fullname, psymtab_to_fullname): Make the return
12770 type const char *.
12771 * tui/tui-source.c (tui_source_is_displayed): Make the parameter fname
12772 const char *.
12773 * tui/tui-source.h (tui_source_is_displayed): Likewise.
12774
843e694d
AG
127752013-01-09 Anthony Green <green@moxielogic.com>
12776
12777 * cp-abi.c (cplus_print_vtable): Don't return value from void
12778 function.
12779 * ada-lang.c (re_set_catch_assert): Ditto.
12780
da51c347
DE
127812013-01-09 Doug Evans <dje@google.com>
12782
12783 * symfile.h (quick_symbol_functions): Delete member
12784 pre_expand_symtabs_matching. All uses removed.
12785 * dwarf2read.c (dw2_lookup_symbol): Implement.
12786 (dw2_do_expand_symtabs_matching): Delete.
12787 (dw2_pre_expand_symtabs_matching): Delete.
12788 (struct dw2_symtab_iterator): New type.
12789 (dw2_symtab_iter_init, dw2_symtab_iter_next): New functions.
12790 (dw2_expand_symtabs_for_function): Rewrite.
12791 (dwarf2_gdb_index_functions): Update.
12792 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Delete.
12793 (psym_functions): Update.
12794
b2259038
TT
127952013-01-09 Tom Tromey <tromey@redhat.com>
12796
12797 * config/pa/hpux.mh (NATDEPFILES): Remove somread.o.
12798 * configure: Rebuild.
12799 * configure.ac: Add somread.o to the build if BFD has SOM
12800 support.
12801 * somread.c: Include som/aout.h, not syms.h.
12802 (som_symtab_read): Use som_external_symbol_dictionary_record.
12803 Unpack records manually.
12804 (_initialize_somread): Declare.
12805
bdad4180
MF
128062012-01-08 Mike Frysinger <vapier@gentoo.org>
12807
12808 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx) [__x86_64__]:
12809 Cast return_address to 64bits.
12810
03cdf680
HZ
128112013-01-08 Hui Zhu <hui_zhu@mentor.com>
12812
12813 * printcmd.c: Remove define of function output_command.
12814 * tracepoint.c: Remove extern of function output_command.
12815 * valprint.h: (output_command): New extern.
12816
8a808554
TT
128172013-01-07 Tom Tromey <tromey@redhat.com>
12818
12819 * objc-lang.c (objc_emit_char, objc_printchar, objc_printstr):
12820 Remove.
12821 (objc_language_defn): Use c_printchar, c_printstr,
12822 c_emit_char.
12823
e93a8774
TT
128242013-01-07 Tom Tromey <tromey@redhat.com>
12825
12826 PR cli/7719:
12827 * NEWS: Update.
12828 * ada-valprint.c (printstr, print_field_values): Remove
12829 "inspect_it" code.
12830 * cp-valprint.c (cp_print_value_fields): Remove "inspect_it"
12831 code.
12832 * jv-valprint.c (java_print_value_fields): Remove "inspect_it"
12833 code.
12834 * m2-lang.c (m2_printstr): Remove "inspect_it" code.
12835 * main.c (captured_main): Remove "epoch" argument.
12836 * objc-lang.c (objc_printstr): Remove "inspect_it" code.
12837 * p-lang.c (pascal_printstr): Remove "inspect_it" code.
12838 * p-valprint.c (pascal_object_print_value_fields): Remove
12839 "inspect_it" code.
12840 * printcmd.c (print_command_1): Remove 'inspect' argument.
12841 (print_command, call_command): Update.
12842 (inspect_command): Remove.
12843 (_initialize_printcmd): Make "inspect" an alias for "print".
12844 * top.c (epoch_interface): Remove.
12845 * top.h (epoch_interface): Remove.
12846 * valprint.c (user_print_options): Update.
12847 (print_converted_chars_to_obstack): Remove "inspect_it" code.
12848 * valprint.h (struct value_print_options) <inspect_it>: Remove
12849 field.
12850
128512013-01-04 Tom Tromey <tromey@redhat.com>
12852
12853 * valprint.h (read_string): Add 'extern'.
12854
b967eb24
JB
128552013-01-07 Joel Brobecker <brobecker@adacore.com>
12856
12857 * darwin-nat.c: Fix typo in TASK_DYLD_INFO_COUNT macro test
12858 used to decide whether to define darwin_read_dyld_info or not.
12859
78a8b30e
PM
128602013-01-03 Pierre Muller <muller@sourceware.org>
12861
12862 * main.c (relocate_gdb_directory): Avoid calling stat function
12863 if DIR is empty.
12864
50da2f25
YQ
128652013-01-03 Yao Qi <yao@codesourcery.com>
12866
12867 * psymtab.c (fixup_psymbol_section): Update declaration.
12868 (fixup_psymbol_section): Remove code returning value.
12869
e7e8980f
YQ
128702013-01-03 Yao Qi <yao@codesourcery.com>
12871
12872 * symtab.h: Remove some out of date comments.
12873 (enum exception_event_kind): Move it ...
12874 * breakpoint.c: ... here.
12875
569283d4
MF
128762013-01-02 Iain Sandoe <developer@sandoe-acoustics.co.uk>
12877
9f9d9a96 12878 PR gdb/14405
569283d4
MF
12879 * darwin-nat.c (darwin_read_dyld_info): Only build if
12880 TASK_DYLD_INFO_COUNT is defined.
12881 (darwin_xfer_partial): Call darwin_read_dyld_info only if
12882 TASK_DYLD_INFO_COUNT is defined.
12883
2e36fbea
TT
128842013-01-02 Tom Tromey <tromey@redhat.com>
12885
12886 * symfile.h (struct ecoff_debug_hack): Remove.
12887 * objfiles.c: Don't include mdebugread.h.
12888
4f05add4
TT
128892013-01-02 Tom Tromey <tromey@redhat.com>
12890
12891 * config/i386/darwin.mh (NATDEPFILES): Remove machoread.o.
12892 * configure.ac: Check for Mach-O support in BFD. Update
12893 CONFIG_OBS.
12894 * configure: Rebuild.
12895
def63ff0
TT
128962013-01-02 Tom Tromey <tromey@redhat.com>
12897
12898 * acinclude.m4 (GDB_AC_CHECK_BFD): New macro.
12899 * configure.ac: Use GDB_AC_CHECK_BFD.
12900 * configure: Rebuild.
12901
60c5dd93
MK
129022013-01-01 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
12903
12904 * MAINTAINERS: Update my email.
12905
6e58437e
JB
129062013-01-01 Joel Brobecker <brobecker@adacore.com>
12907
12908 * cli/cli-script.h (make_cleanup_free_command_lines): Make extern.
12909
627fe805
JB
129102013-01-01 Joel Brobecker <brobecker@adacore.com>
12911
12912 * rs6000-nat.c (bss_data_overlap): New function.
12913 (vmap_symtab): Use it to adjust the .bss section's offset.
12914
28e7fd62
JB
129152013-01-01 Joel Brobecker <brobecker@adacore.com>
12916
12917 Update year range in copyright notice of all files.
12918
e93a8774 129192013-01-01, 13 Joel Brobecker <brobecker@adacore.com>
b9786c74
JB
12920
12921 * top.c (print_gdb_version): Update copyright year.
12922
72b20e9c 12923For older changes see ChangeLog-2012.
c906108c
SS
12924\f
12925Local Variables:
12926mode: change-log
12927left-margin: 8
12928fill-column: 74
12929version-control: never
57da7796 12930coding: utf-8
c906108c 12931End:
This page took 2.132528 seconds and 4 git commands to generate.