NEWS: Extend documentation of the new GDB/MI --language option.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
4e35e808
JB
12013-12-03 Joel Brobecker <brobecker@adacore.com>
2
3 * NEWS: Mention "-list-features" in the entry documenting
4 the support for the "--language" option.
5
caf26be9
SB
62013-12-03 Tom Tromey <tromey@redhat.com>
7 Jan Kratochvil <jan.kratochvil@redhat.com>
8 Doug Evans <dje@google.com>
9 Samuel Bronson <naesten@gmail.com>
10
11 Bring back gdb-add-index as a contrib script.
12 * contrib/gdb-add-index.sh: New file.
13 * NEWS: Note the addition.
14
34a4fb3a
SB
152013-12-03 Samuel Bronson <naesten@gmail.com>
16
17 * MAINTAINERS (Write After Approval): Add myself to the list.
18
688981c9
JB
192013-12-03 Joel Brobecker <brobecker@adacore.com>
20
21 * mi/mi-main.c (mi_cmd_list_features): Remove "ada-exceptions".
22
c1244769
JB
232013-12-03 Joel Brobecker <brobecker@adacore.com>
24
25 * mi/mi-main.c: Remove trailing spaces throughout.
26
2ea126fa
JB
272013-12-03 Pedro Alves <palves@redhat.com>
28 Joel Brobecker <brobecker@adacore.com>
29
30 * exceptions.h (enum_errors) <UNDEFINED_COMMAND_ERROR>: New enum.
31 * mi/mi-parse.c (mi_parse): Throw UNDEFINED_COMMAND_ERROR instead
32 of a regular error when the GDB/MI command does not exist.
33 * mi/mi-main.c (mi_cmd_list_features): Add
34 "undefined-command-error-code".
35 (mi_print_exception): Print an "undefined-command"
36 error code if EXCEPTION.ERROR is UNDEFINED_COMMAND_ERROR.
37 * NEWS: Add entry documenting the new "code" variable in
38 "^error" result records.
39
6b7cbff1
JB
402013-12-03 Joel Brobecker <brobecker@adacore.com>
41
42 * mi/mi-cmds.h (mi_cmd_info_gdb_mi_command): Declare.
43 * mi/mi-cmd-info.c (mi_cmd_info_gdb_mi_command): New function.
44 * mi/mi-cmds.c (mi_cmds): Add -info-gdb-mi-command command.
45 * mi/mi-main.c (mi_cmd_list_features): Add "info-gdb-mi-command"
46 field to output of "-list-features".
47
48 * NEWS: Add entry for new -info-gdb-mi-command.
49
04affae3
JK
502013-12-02 Doug Evans <dje@google.com>
51 Jan Kratochvil <jan.kratochvil@redhat.com>
52
53 * objfiles.c (allocate_objfile): Save original_name as an absolute
54 path.
55 * objfiles.h (struct objfile): Expand comment on original_name.
56 * source.c (openp): Call gdb_abspath.
57 * utils.c (gdb_abspath): New function.
58 * utils.h (gdb_abspath): Declare.
59
aee4bf85
PA
602013-12-02 Pedro Alves <palves@redhat.com>
61
62 * dcache.c (dcache_read_line): Use target_read_raw_memory.
63 * target.c (target_read_raw_memory): New function.
64 (target_read_stack, target_write_memory, target_write_raw_memory):
65 Update comment.
66 (target_read_code): Add comment.
67 * target.h (target_read_raw_memory): Declare.
68
840207d8
PA
692013-12-02 Pedro Alves <palves@redhat.com>
70
71 * ctf.c (ctf_start): Use S_IRGRP, S_IXGRP, S_IXOTH
72 unconditionally.
73
0fdf84ca
PA
742013-12-02 Pedro Alves <pedro@codesourcery.com>
75 Maciej W. Rozycki <macro@codesourcery.com>
76
77 * remote.c (putpkt_for_catch_errors): Remove function.
78 (remote_kill): Handle TARGET_CLOSE_ERROR from the kill packet
79 gracefully.
80
62972e0b
YQ
812013-12-02 Pedro Alves <palves@redhat.com>
82
83 PR remote/15974
84 * remote-notif.c (handle_notification): Return early if no
85 notification is found.
86
f9b0da3d
JB
872013-12-02 Joel Brobecker <brobecker@adacore.com>
88
89 * common/filestuff.c (fdwalk): Add "defined(RLIMIT_NOFILE)"
90 preprocessor check.
91
2dd4d422
JB
922013-12-02 Joel Brobecker <brobecker@adacore.com>
93
94 * Makefile.in (HFILES_NO_SRCDIR): Remove "common/gdb_dirent.h".
95
e72eff80
JB
962013-12-02 Joel Brobecker <brobecker@adacore.com>
97
98 * Makefile.in (HFILES_NO_SRCDIR): Remove "common/gdb_stat.h".
99 * ctf.c (ctf_start): Remove obsolete comment.
100
844ad005
JB
1012013-12-02 Joel Brobecker <brobecker@adacore.com>
102
103 * Makefile.in (HFILES_NO_SRCDIR): Remove "common/gdb_string.h".
104
5b2bf947
DE
1052013-11-30 Doug Evans <xdje42@gmail.com>
106
107 * auto-load.h (script_language): New members name, auto_load_enabled.
108 Add missing comments on struct members.
109 (auto_load_objfile_script): Delete.
110 * auto-load.c: #include "cli/cli-cmds.h".
111 (auto_load_gdb_scripts_enabled): New function.
112 (script_language_gdb): Update, add new members.
113 (source_gdb_script_for_objfile): Simplify, auto-load safe-checking
114 and call to maybe_add_script moved to caller.
115 (auto_load_objfile_script_1): Auto-load safe-checking and
116 call to maybe_add_script moved here.
117 (auto_load_objfile_script): Make static. Early exit if support for
118 scripting language hasn't been compiled in, or auto-loading has been
119 disabled.
120 (source_section_scripts): Argument "source_name" renamed to
121 "section_name". All uses updated. Replace uses of AUTO_SECTION_NAME
122 with section_name. Skip loading script if support for scripting
123 language hasn't been compiled in, or auto-loading has been disabled.
124 Call language->source_script_for_objfile instead of calling
125 source_python_script_for_objfile directly.
126 (load_auto_scripts_for_objfile): Update.
127 * python/py-auto-load.c: Delete #include "cli/cli-cmds.h".
128 (gdbpy_load_auto_script_for_objfile): Delete.
129 (auto_load_python_scripts_enabled): New function.
130 (script_language_python): Update, add new members.
131 (gdbpy_script_language_defn): New function.
132 * python/python.h (gdbpy_load_auto_scripts_for_objfile): Delete.
133 (gdbpy_script_language_defn): Declare.
134
135 * auto-load.c (AUTO_SECTION_NAME): Moved here and renamed from
136 py-auto-load.c, GDBPY_AUTO_SECTION_NAME.
137 (source_section_scripts): Moved here from py-auto-load.c.
138 (auto_load_section_scripts): Ditto.
139 * python/py-auto-load.c (GDBPY_AUTO_SECTION_NAME): Moved to
140 auto-load.c, renamed AUTO_SECTION_NAME.
141 (source_section_scripts, auto_load_section_scripts): Moved to
142 auto-load.c.
143
d9c43928
YQ
1442013-11-30 Yao Qi <yao@codesourcery.com>
145
146 * remote.c (getpkt_or_notif_sane_1): Fix typo "checksm".
147
e7b12392
SDJ
1482013-11-29 Sergio Durigan Junior <sergiodj@redhat.com>
149
150 * gdbarch.sh: Remove include of "gdb_string.h", replace by
151 <string.h>.
152
256458bc
DE
1532013-11-29 Doug Evans <xdje42@gmail.com>
154
7b2d3abf
DE
155 * python/py-auto-load.c (source_section_scripts): Move comment to
156 more relevant location.
157
256458bc
DE
158 Whitespace cleanup.
159 * python/py-breakpoint.c: Remove trailing whitespace.
160 * python/py-cmd.c: Ditto.
161 * python/py-evts.c: Ditto.
162 * python/py-finishbreakpoint.c: Ditto.
163 * python/py-frame.c: Ditto.
164 * python/py-function.c: Ditto.
165 * python/py-inferior.c: Ditto.
166 * python/py-infthread.c: Ditto.
167 * python/py-param.c: Ditto.
168 * python/py-prettyprint.c: Ditto.
169 * python/py-symbol.c: Ditto.
170 * python/py-type.c: Ditto.
171 * python/py-utils.c: Ditto.
172 * python/py-value.c: Ditto.
173 * python/python-internal.h: Ditto.
174 * python/python.c: Ditto.
175
20e1ca3b
PA
1762013-11-29 Pedro Alves <palves@redhat.com>
177
178 * unwind_stop_reasons.def (UNWIND_NULL_ID): Update comment.
179
8b4f3082
PA
1802013-11-29 Pedro Alves <palves@redhat.com>
181
182 * breakpoint.c (build_target_condition_list): Release previous
183 conditions.
184 (build_target_command_list): Release previous commands.
185 (bp_location_dtor): Release target conditions and commands.
186 * remote.c (remote_add_target_side_condition): Don't release
187 conditions.
188 (remote_add_target_side_commands): Don't release commands.
189
9f713294
YQ
1902013-11-29 Yao Qi <yao@codesourcery.com>
191 Pedro Alves <palves@redhat.com>
192
193 * dcache.c (dcache_read_line): Use current_target.beneath
194 instead of &current_target.
195 * target.c (memory_xfer_partial_1): Factor code out to ...
196 (raw_memory_xfer_partial): ... it. New function.
197 (target_xfer_partial): Call raw_memory_xfer_partial if OBJECT
198 is TARGET_OBJECT_RAW_MEMORY.
199
4cb0213d
DE
2002013-11-28 Doug Evans <xdje42@gmail.com>
201
202 * breakpoint.h (gdbpy_breakpoint_object): Renamed from
203 breakpoint_object. All uses updated.
204 * python/python-internal.h (gdbpy_breakpoint_object): Renamed from
205 breakpoint_object. All uses updated.
206 * python.c (*): All uses of breakpoint_object updated.
207 * python.h (*): All uses of breakpoint_object updated.
208 * python/py-breakpoint.c (*): All uses of breakpoint_object updated.
209 * python/py-finishbreakpoint.c (*): Ditto.
210
d344e670
DE
2112013-11-28 Doug Evans <xdje42@gmail.com>
212
d729aae0 213 * configure.ac: Add comments delineating libpython and libmcheck.
d344e670
DE
214 * configure: Regenerate.
215
eebc056c
AB
2162013-11-28 Andrew Burgess <aburgess@broadcom.com>
217 Pedro Alves <palves@redhat.com>
218
219 * valprint.c (value_check_printable): If the value is entirely
220 unavailable, print a single "<unavailable>" instead of printing
221 all subfields.
222
a7300869
PA
2232013-11-28 Pedro Alves <palves@redhat.com>
224
225 * frame.c (get_prev_frame_1) <stop_reason != UNWIND_NO_REASON>:
226 Add "set debug frame" output.
227 (frame_stop_reason_symbol_string): New function.
228
50fd528a
PA
2292013-11-28 Pedro Alves <palves@redhat.com>
230
231 * frame-unwind.c (default_frame_unwind_stop_reason): Return
232 UNWIND_OUTERMOST if the frame's ID is outer_frame_id.
233 * frame.c (get_prev_frame_1): Remove outer_frame_id check.
234
5de51581
PA
2352013-11-28 Pedro Alves <palves@redhat.com>
236
237 * frame.c (get_prev_frame_1): If the frame id is outer_frame_id,
238 set the unwind stop reason to UNWIND_OUTERMOST, not
239 UNWIND_NULL_ID. Remove explicit check for sentinel frame.
240
739cb10c
PA
2412013-11-28 Pedro Alves <palves@redhat.com>
242
243 * frame.c (frame_unwind_register): Say the register was "not
244 saved" instead of "optimized out".
245
514c0aa6 2462013-11-27 Steffen Sledz <sledz@dresearch-fe.de>
92a021de 247
514c0aa6 248 PR 16152
92a021de 249 * configure: Rebuild.
514c0aa6 250 * configure.ac: Tighten cygwin detection check.
92a021de 251
908fa2aa
PA
2522013-11-27 Pedro Alves <palves@redhat.com>
253
254 * frame-unwind.c (frame_unwind_got_optimized): Use the type of the
255 register in the previous frame's arch.
256
6bd273ae
PA
2572013-11-27 Pedro Alves <palves@redhat.com>
258
259 * frame-unwind.c (frame_unwind_got_optimized): Return
260 an lval_register value instead of a not_lval value.
261
f6c01fc5
AB
2622013-11-27 Andrew Burgess <aburgess@broadcom.com>
263
264 * frame.c: Include "valprint.h".
265 (frame_unwind_register_value): Use value_optimized_out.
266 * value.c (value_fetch_lazy): Likewise.
267
4f14910f
AB
2682013-11-26 Andrew Burgess <aburgess@broadcom.com>
269
270 * value.c (allocate_optimized_out_value): Mark value as non-lazy.
271
15859968
TT
2722013-11-26 Tom Tromey <tromey@redhat.com>
273
274 * dwarf2-frame.c (dwarf2_frame_cache): Revert patch from
275 2013-11-22.
276
244ec0da
WT
2772013-11-26 Walfred Tedeschi <walfred.tedeschi@intel.com>
278
279 * i386-xstate.h (I386_XSTATE_MPX): New Macro.
280 (I386_XSTATE_MPX_MASK): Makes use of I386_XSTATE_MPX.
281 (HAS_MPX): New macro.
282 (HAS_AVX): New macro.
283 (I386_XSTATE_SIZE): Uses HAS_MPX and HAS_AVX.
284
f7e3ecae
KS
2852013-11-25 Keith Seitz <keiths@redhat.com>
286
287 PR c++/14819
288 * c-exp.y (classify_inner_name): If no matching symbol was
289 found, try looking up the token as a base class.
290 Likewise if a constructor was found.
291 * cp-namespace.c (find_type_baseclass_by_name): New function.
292 * cp-support.h (find_type_baseclass_by_name): Declare.
293 * valops.c (value_struct_elt_for_reference): If we get
294 a non-static field, try to get a value based on the
295 current instance, if any.
296
283f7163
YQ
2972013-11-24 Yao Qi <yao@codesourcery.com>
298
299 * disasm.c (dis_asm_read_memory): Call target_read_code
300 instead of target_read_memory.
301
29453a14
YQ
3022013-11-24 Yao Qi <yao@codesourcery.com>
303
304 * NEWS: Add note on new "set code-cache" option.
305 * target-dcache.c (code_cache_enabled_1): New variable.
306 (code_cache_enabled): New variable.
307 (show_code_cache, set_code_cache): New function.
308 (code_cache_enabled_p): New function.
309 (_initialize_target_dcache): Register command.
310 * target-dcache.h (code_cache_enabled_p): Declare.
311 * target.c (memory_xfer_partial_1):Handle
312 TARGET_OBJECT_CODE_MEMORY and code_cache_enabled.
313 (target_read_code): New function.
314 * target.h (enum target_object) <TARGET_OBJECT_CODE_MEMORY>:
315 New.
316 (target_read_code): Declare.
317
0fb14d8f
YQ
3182013-11-24 Yao Qi <yao@codesourcery.com>
319
320 * target-dcache.c (stack_cache_enabled_p_1): Rename to ...
321 (stack_cache_enabled_1): ... this. New variable.
322 (stack_cache_enabled_p): Rename to ...
323 (stack_cache_enabled): ... this. New variable.
324 (set_stack_cache_enabled_p): Rename to ...
325 (set_stack_cache): ... this. Update caller.
326 (show_stack_cache_enabled_p): Rename to ...
327 (show_stack_cache): ... this. Update caller.
328 (stack_cache_enabled): Rename to ...
329 (stack_cache_enabled_p): ... this. Update caller.
330 (_initialize_target_dcache): Replace "data cache" with
331 "target memory cache".
332 * target-dcache.h (stack_cache_enabled): Remove declaration.
333 (stack_cache_enabled_p): Add declaration.
334
a12361b9
DE
3352013-11-23 Doug Evans <xdje42@gmail.com>
336
337 * python/py-frame.c (gdbpy_initialize_frames): Remove FIRST_ERROR,
338 superfluous.
339
1e1d6920
DE
3402013-11-23 Doug Evans <xdje42@gmail.com>
341
342 * python/py-frame.c (frapy_block): Fix error message text.
343
1e9c71b8
DE
3442013-11-23 Doug Evans <xdje42@gmail.com>
345
346 * cli/cli-script.c (multi_line_command_p): New function.
347 (recurse_read_control_structure, read_command_lines_1): Call it.
348 (execute_control_command): Consistently have a blank line between
349 each case.
350
f380848e
SA
3512013-11-22 Sterling Augustine <saugustine@google.com>
352
38e1f2a7 353 PR gdb/16196:
f380848e
SA
354 * valprint.c (read_string): Set new variable fetchlen based on
355 fetchlimit and size. Use it in call to partial_memory_read.
356 Update comment.
357
da2b2fdf
TT
3582013-11-22 Tom Tromey <tromey@redhat.com>
359
360 PR backtrace/16155:
361 * dwarf2-frame.c (dwarf2_frame_cache): Set undefined_retaddr if
362 the return address column is unspecified.
363
6eeee81c
TT
3642013-11-22 Tom Tromey <tromey@redhat.com>
365 Pedro Alves <palves@redhat.com>
366
367 PR backtrace/16155
368 * value.c (value_fetch_lazy): Internal error if
369 get_frame_register_value returns the same register.
370
194cca41
PA
3712013-11-22 Pedro Alves <palves@redhat.com>
372 Tom Tromey <tromey@redhat.com>
373
374 * frame.c (frame_stash_add): Now returns whether a frame with the
375 same ID was already known.
376 (compute_frame_id): New function, factored out from get_frame_id.
377 (get_frame_id): No longer lazilly compute the frame id here.
378 (get_prev_frame_if_no_cycle): New function. Detects wider stack
379 cycles.
380 (get_prev_frame_1): Use it instead of get_prev_frame_raw directly,
381 and checking for stack cycles here.
382
33f8fe58
PA
3832013-11-22 Pedro Alves <palves@redhat.com>
384
385 PR 16155
386 * frame.c (get_prev_frame_1): Do the UNWIND_SAME_ID check between
387 this frame and the new previous frame, not between this frame and
388 the next frame.
389
1ec56e88
PA
3902013-11-22 Pedro Alves <palves@redhat.com>
391
392 PR 16155
393 * dwarf2-frame.c (struct dwarf2_frame_cache)
394 <checked_tailcall_bottom, entry_cfa_sp_offset,
395 entry_cfa_sp_offset_p>: New fields.
396 (dwarf2_frame_cache): Adjust to use the new cache fields instead
397 of locals. Don't call dwarf2_tailcall_sniffer_first here.
398 (dwarf2_frame_prev_register): Call it here, but only once.
399
ca092b61
DE
4002013-11-21 Doug Evans <xdje42@gmail.com>
401
402 * gdbtypes.c: #include bcache.h, dwarf2loc.h.
403 (type_equality_entry): Move here from python/py-type.c.
404 (type_equality_entry_d): Ditto.
405 (compare_maybe_null_strings, check_types_equal): Ditto.
406 (check_types_worklist, types_deeply_equal): Ditto.
407 * gdbtypes.h (types_deeply_equal): Declare.
408 * python/py-type.c: Remove inclusion of bcache.h, dwarf2loc.h.
409 (typy_richcompare): Update.
410
7c245c24
JB
4112013-11-20 Joel Brobecker <brobecker@adacore.com>
412
413 * python/py-value.c (is_intlike): Delete.
414 (valpy_int): Replace use of CHECK_TYPEDEF and is_intlike
415 by use of is_integral_type.
416 (valpy_long): Replace use of CHECK_TYPEDEF and is_intlike
417 by use of is_integral_type and check for TYPE_CODE_PTR.
418
8986e351
TT
4192013-11-20 Tom Tromey <tromey@redhat.com>
420
421 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Remove
422 strerror module.
423 * gnulib/aclocal.m4: Update.
424 * gnulib/config.in: Update.
425 * gnulib/configure: Update.
426 * gnulib/import/Makefile.am: Update.
427 * gnulib/import/Makefile.in: Update.
428 * gnulib/import/errno.in.h: Remove.
429 * gnulib/import/intprops.h: Remove.
430 * gnulib/import/m4/errno_h.m4: Remove.
431 * gnulib/import/m4/gnulib-cache.m4: Update.
432 * gnulib/import/m4/gnulib-comp.m4: Update.
433 * gnulib/import/m4/strerror.m4: Remove.
434 * gnulib/import/m4/sys_socket_h.m4: Remove.
435 * gnulib/import/strerror-override.c: Remove.
436 * gnulib/import/strerror-override.h: Remove.
437 * gnulib/import/strerror.c: Remove.
438 * gnulib/update-gnulib.sh: Update.
439
6b1141e3
YQ
4402013-11-20 Yao Qi <yao@codesourcery.com>
441
442 * target-dcache.c (target_dcache_get_or_init): Call
443 set_address_space_data if 'dcache' is NULL.
444
60650f2e
WT
4452013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
446
447 * common/i386-gcc-cpuid.h (bit_MPX): Synchronize with gcc file.
448
09748966
WT
4492013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
450
451 * python/lib/gdb/command/bound_register.py: New file.
995c1ad9
DE
452 * data-directory/Makefile.in: Copy bond_register.py to the right path
453 to be initialized at gdb startup.
09748966 454
e43e105e
WT
4552013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
456
457 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset):
458 Add MPX registers.
459 (amd64_linux_read_description): Add initialization for MPX and
460 AVX independently.
461 * amd64-linux-tdep.c: Includes features/i386/amd64-mpx-linux.c.
462 (amd64_linux_gregset_reg_offset): Add MPX registers.
463 (amd64_linux_core_read_description): Add initialization for MPX
464 registers.
465 (_initialize_amd64_linux_tdep): Initialize MPX targets.
466 * amd64-linux-tdep.h (AMD64_LINUX_RAX_REGNUM): Set it to the last
467 register on the list.
468 (tdesc_amd64_mpx_linux) Add new target for MPX.
469 * amd64-tdep.c: Includes features/i386/amd64-mpx.c.
470 (amd64_mpx_names): MPX register names.
471 (amd64_init_abi): Add MPX register while initializing the ABI.
472 (_initialize_amd64_tdep): Initialize MPX targets.
473 * amd64-tdep.h (amd64_regnum): Add MPX registers.
474 (AMD64_NUM_REGS): Set number of registers taking MPX into account.
475
1dbcd68c
WT
4762013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
477
478 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Add MPX
479 registers on the range of registers to be read from
480 xsave buffer.
481 (i386_linux_read_description): Add case for MPX.
482 * i386-linux-tdep.c: Include features/i386/i386-mpx-linux.c.
483 (i386_linux_gregset_reg_offset): Add MPX registers.
484 (i386_linux_core_read_description): Initialize also MPX.
485 (_initialize_i386_linux_tdep): Add mpx initialization.
486 * i386-tdep.h (gdbarch_tdep): Add fields bnd0r_regnum, bnd0_regnum,
487 mpx_register_names.
488 (i386_regnum): Add MPX registers.
489 (I386_MPX_NUM_REGS): New macro.
490 (i386_bnd_regnum_p): New function.
491 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set
492 number of registers to be the number of BNDSTATUS.
493 (tdesc_i386_mpx_linux): Add description for MPX Linux registers.
494 * i386-tdep.c: Include features/i386/i386-mpx.c.
495 (i386_mpx_names): Add MPX register names array.
496 (i386_bnd_names): Add bnd pseudo register names array.
497 (i386_bndr_regnum_p): Lookup register numbers for bnd raw
498 registers.
499 (i386_bndr_regnum_p): Lookup register numbers for bnd raw registers.
500 (386_mpx_ctrl_regnum_p): Lookup register numbers for MPX control
501 registers.
502 (i386_bnd_type): New function.
503 (i386_pseudo_register_type): Use i386_bnd_type for bnd pseudo
504 register types.
505 (i386_pseudo_register_read_into_value): Add bnd case.
506 (i386_pseudo_register_write): Add bnd pseudo registers.
507 (i386_register_reggroup_p): Add MPX register to the group all.
508 (i386_validate_tdesc_p): Add MPX to the target description
509 validation.
510 (i386_pseudo_register_name): Add bnd pseudo registers.
511 (i386_gdbarch_init): Add MPX for architecture initialization.
512 (_initia_initialize_i386_tdep): Add mpx initialization.
513 * i387-tdep.c (xsave_mpx_offset): New vector for MPX offsets on
514 XSAVE buffer.
515 (XSAVE_MPX_ADDR): New macro.
516 (i387_supply_xsave): Add MPX case.
517 (i387_collect_xsave): Add MPX case.
518 * i387-tdep.h (I387_BND0R_REGNUM): New macro.
519 (I387_BNDCFGU_REGNUM): New macro.
520 (I387_NUM_MPX_REGS): New macro.
521 (I387_NUM_BND_REGS): New macro.
522 (I387_NUM_MPX_CTRL_REGS): New macro.
523 (I387_MPXEND_REGNUM): New macro.
524 * common/i386-xstate.h (I386_XSTATE_BNDREGS): New macro.
525 (I386_XSTATE_BNDCFG): Likewise.
526 (I386_XSTATE_MPX_MASK): Likewise.
527 (I386_XSTATE_ALL_MASK): New macro represents flags for all states.
528 (I386_XSTATE_BNDREGS_SIZE): New macro.
529 (I386_XSTATE_BNDCFG_SIZE): Likewise.
530 (I386_XSTATE_SIZE): Adapt for MPX.
531 (I386_XSTATE_MAX_SIZE): Likewise.
532
ccc42043
WT
5332013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
534
535 * features/i386/Makefile: Adapts for using MPX registers.
536 * features/i386/32bit-mpx.xml: New file.
537 * features/i386/64bit-mpx.xml: Likewise.
538 * features/i386/amd64-mpx-linux.c: Likewise.
539 * features/i386/amd64-mpx-linux.xml: Likewise.
540 * features/i386/amd64-mpx.c: Likewise.
541 * features/i386/amd64-mpx.xml: Likewise.
542 * features/i386/i386-mpx-linux.c: Likewise.
543 * features/i386/i386-mpx-linux.xml: Likewise.
544 * features/i386/i386-mpx.c: Likewise.
545 * features/i386/i386-mpx.xml: Likewise.
546 * regformats/i386/amd64-mpx-linux.dat: New file.
547 * regformats/i386/amd64-mpx.dat: Likewise.
548 * regformats/i386/i386-mpx-linux.dat: Likewise.
549 * regformats/i386/i386-mpx.dat: Likewise.
550
57803a3c
WT
5512013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
552
553 * target-descriptions.c (maint_print_maint_print_c_tdesc_cmd):
554 Modified logic of creating a bitfield to be in sync with
555 tdesc_gdb_type.
556
2b59118e
WN
5572013-11-20 Will Newton <will.newton@linaro.org>
558
559 * arm-tdep.c (arm_get_next_pc): Remove "Infinite loop detected"
560 error message.
561
b26dfc9a
YQ
5622013-11-20 Yao Qi <yao@codesourcery.com>
563
564 * progspace.h (struct address_space_data): Declare.
565 * target-dcache.c: Include "progspace.h".
566 (target_dache): Remove.
567 (target_dcache_aspace_key): New.
568 (target_dcache_cleanup): New function.
569 (target_dcache_init_p): Get data through
570 target_dcache_aspace_key.
571 (target_dcache_invalidate): Likewise.
572 (target_dcache_get): Likewise.
573 (target_dcache_get_or_init): Likewise.
574 (_initialize_target_dcache): Initialize
575 target_dcache_aspace_key.
576
3a8356ff
YQ
5772013-11-20 Yao Qi <yao@codesourcery.com>
578
579 * progspace.c (struct address_space): Update comments.
580 <REGISTRY_FIELDS>: New fields.
581 DEFINE_REGISTRY for address_space.
582 (new_address_space): Call address_space_alloc_data.
583 (free_address_space): Call address_space_free_data.
584 * progspace.h: Use DECLARE_REGISTRY.
585
68c765e2
YQ
5862013-11-20 Yao Qi <yao@codesourcery.com>
587
588 * Makefile.in (SFILES):Add target-dcache.c.
589 (HFILES_NO_SRCDIR): Add target-dcache.h.
590 (COMMON_OBS): Add target-dcache.o.
591 * dcache.c: Remove inclusion to "target.h". Include
592 "target-dcache.h".
593 * memattr.c: Include "target-dcache.h".
594 * top.c: Likewise.
595 * tracepoint.c: Likewise.
596 * target.c: (stack_cache_enabled_p_1): Move to
597 target-dcache.c.
598 (stack_cache_enabled_p): Likewise.
599 (set_stack_cache_enabled_p): Likewise.
600 (show_stack_cache_enabled_p): Likewise.
601 (target_dcache, target_dcache_init_p): Likewise.
602 (target_dcache_invalidate): Likewise.
603 (target_dcache_get, target_dcache_get_or_init): Likewise.
604 (memory_xfer_partial_1): Call function stack_cache_enabled.
605 (initialize_target): Move code to target-dcache.c.
606 * target.h (target_dcache_invalidate): Move to
607 target-dcache.h.
608 (target_dcache_get): Likewise.
609 * target-dcache.c: New.
610 * target-dcache.h: New.
611
f2de9785
YQ
6122013-11-20 Yao Qi <yao@codesourcery.com>
613
614 * target.c (memory_xfer_partial_1): Update 'target_dcache' if
615 it is initialized.
616
2a2f9fe4
YQ
6172013-11-20 Yao Qi <yao@codesourcery.com>
618
619 * dcache.c (last_cache): Remove.
620 (dcache_free, dcache_init): Update.
621 (dcache_update):
622 (dcache_print_line): Add parameter 'dcache'. Replace
623 'target_dcache' with 'dcache'.
624 (dcache_info): Move code to dcache_info_1. Call
625 'dcache_info_1'.
626 (dcache_info_1): New function.
627 (set_dcache_size): Call target_dcache_invalidate.
628 (set_dcache_line_size): Call target_dcache_invalidate.
629 * target.c (target_dcache_init_p): New function.
630 (target_dcache_invalidate): Check target_dcache_init_p first.
631 (target_dcache_get, target_dcache_get_or_init): New function.
632 (memory_xfer_partial_1): Adjust.
633 (initialize_target): Don't initialize 'target_dcache'.
634 * target.h (struct dcache_struct): Declare.
635 (target_dcache_get): Declare.
636
8ab91b96
YQ
6372013-11-19 Yao Qi <yao@codesourcery.com>
638
639 * varobj.c (varobj_get_type): Fix typo.
640
df7752b0
JB
6412013-11-19 Joel Brobecker <brobecker@adacore.com>
642
643 * python/py-value.c (is_intlike): Add TYPE_CODE_RANGE handling.
644
4a0a886a
JB
6452013-11-19 Joel Brobecker <brobecker@adacore.com>
646
647 * contrib/ari/gdb_ari.sh: Remove checks for "dirent.h" and
648 "stat.h".
649
53ce3c39
TT
6502013-11-18 Tom Tromey <tromey@redhat.com>
651
652 * common/gdb_stat.h: Remove.
653 * ada-lang.c: Use sys/stat.h, not gdb_stat.h.
654 * common/filestuff.c: Use sys/stat.h, not gdb_stat.h.
655 * common/linux-osdata.c: Use sys/stat.h, not gdb_stat.h.
656 * corefile.c: Use sys/stat.h, not gdb_stat.h.
657 * ctf.c: Use sys/stat.h, not gdb_stat.h.
658 * darwin-nat.c: Use sys/stat.h, not gdb_stat.h.
659 * dbxread.c: Use sys/stat.h, not gdb_stat.h.
660 * dwarf2read.c: Use sys/stat.h, not gdb_stat.h.
661 * exec.c: Use sys/stat.h, not gdb_stat.h.
662 * gdbserver/linux-low.c: Use sys/stat.h, not gdb_stat.h.
663 * gdbserver/remote-utils.c: Use sys/stat.h, not gdb_stat.h.
664 * inf-child.c: Use sys/stat.h, not gdb_stat.h.
665 * jit.c: Use sys/stat.h, not gdb_stat.h.
666 * linux-nat.c: Use sys/stat.h, not gdb_stat.h.
667 * m68klinux-nat.c: Use sys/stat.h, not gdb_stat.h.
668 * main.c: Use sys/stat.h, not gdb_stat.h.
669 * mdebugread.c: Use sys/stat.h, not gdb_stat.h.
670 * mi/mi-cmd-env.c: Use sys/stat.h, not gdb_stat.h.
671 * nto-tdep.c: Use sys/stat.h, not gdb_stat.h.
672 * objfiles.c: Use sys/stat.h, not gdb_stat.h.
673 * procfs.c: Use sys/stat.h, not gdb_stat.h.
674 * remote-fileio.c: Use sys/stat.h, not gdb_stat.h.
675 * remote-mips.c: Use sys/stat.h, not gdb_stat.h.
676 * remote.c: Use sys/stat.h, not gdb_stat.h.
677 * rs6000-nat.c: Use sys/stat.h, not gdb_stat.h.
678 * sol-thread.c: Use sys/stat.h, not gdb_stat.h.
679 * solib-spu.c: Use sys/stat.h, not gdb_stat.h.
680 * source.c: Use sys/stat.h, not gdb_stat.h.
681 * symfile.c: Use sys/stat.h, not gdb_stat.h.
682 * symmisc.c: Use sys/stat.h, not gdb_stat.h.
683 * symtab.c: Use sys/stat.h, not gdb_stat.h.
684 * top.c: Use sys/stat.h, not gdb_stat.h.
685 * xcoffread.c: Use sys/stat.h, not gdb_stat.h.
686
09607c9e
TT
6872013-11-18 Tom Tromey <tromey@redhat.com>
688
689 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
690 sys_stat.
691 * gnulib/aclocal.m4: Update.
692 * gnulib/config.in: Update.
693 * gnulib/configure: Update.
694 * gnulib/import/Makefile.am: Update.
695 * gnulib/import/Makefile.in: Update.
696 * gnulib/import/m4/gnulib-cache.m4: Update.
697 * gnulib/import/m4/gnulib-comp.m4: Update.
698 * gnulib/import/m4/sys_stat_h.m4: New.
699 * gnulib/import/m4/time_h.m4: New.
700 * gnulib/import/sys_stat.in.h: New.
701 * gnulib/import/time.in.h: New.
702
4ff70b84
TT
7032013-11-18 Tom Tromey <tromey@redhat.com>
704
705 * configure: Rebuild.
706 * configure.ac: Remove check of HAVE_SYS_TYPES_H.
707
3447c057
TT
7082013-11-18 Tom Tromey <tromey@redhat.com>
709
710 * configure: Rebuild.
711 * configure.ac: Don't check for unistd.h.
712
0080a2f6
TT
7132013-11-18 Tom Tromey <tromey@redhat.com>
714
715 * configure: Rebuild.
716 * configure.ac: Don't check for stdlib.h
717 * defs.h: Include stdlib.h unconditionally.
718
161d1bec
TT
7192013-11-18 Tom Tromey <tromey@redhat.com>
720
721 * config.in: Rebuild.
722 * configure: Rebuild.
723 * configure.ac: Don't check for stddef.h.
724 * defs.h: Unconditionally include stddef.h. Remove duplicate
725 inclusion.
726
2978b111
TT
7272013-11-18 Tom Tromey <tromey@redhat.com>
728
729 * common/common.m4 (GDB_AC_COMMON): Don't use AC_HEADER_DIRENT.
730 * common/gdb_dirent.h: Remove.
731 * common/filestuff.c: Use dirent.h.
732 * common/linux-osdata.c: Use dirent.h.
733 (NAMELEN): Define.
734 * config.in: Rebuild.
735 * configure: Rebuild.
736 * configure.ac: Don't use AC_HEADER_DIRENT.
737 * linux-fork.c: Use dirent.h
738 * linux-nat.c: Use dirent.h.
739 * nto-procfs.c: Use dirent.h.
740 * procfs.c: Use dirent.h.
741
e26b6bb0
TT
7422013-11-18 Tom Tromey <tromey@redhat.com>
743
744 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirent.
745 * gnulib/aclocal.m4: Update.
746 * gnulib/config.in: Update.
747 * gnulib/configure: Update.
748 * gnulib/import/Makefile.am: Update.
749 * gnulib/import/Makefile.in: Update.
750 * gnulib/import/dirent.in.h: New.
751 * gnulib/import/m4/dirent_h.m4: New.
752 * gnulib/import/m4/gnulib-cache.m4: Update.
753 * gnulib/import/m4/gnulib-comp.m4: Update.
754
a3d08894
TT
7552013-11-18 Tom Tromey <tromey@redhat.com>
756
757 * configure: Rebuild.
758 * common/common.m4 (GDB_AC_COMMON): Don't check for string.h or
759 strings.h.
760
0e9f083f
TT
7612013-11-18 Tom Tromey <tromey@redhat.com>
762
763 * common/gdb_string.h: Remove.
764 * aarch64-tdep.c: Use string.h, not gdb_string.h.
765 * ada-exp.y: Use string.h, not gdb_string.h.
766 * ada-lang.c: Use string.h, not gdb_string.h.
767 * ada-lex.l: Use string.h, not gdb_string.h.
768 * ada-typeprint.c: Use string.h, not gdb_string.h.
769 * ada-valprint.c: Use string.h, not gdb_string.h.
770 * aix-thread.c: Use string.h, not gdb_string.h.
771 * alpha-linux-tdep.c: Use string.h, not gdb_string.h.
772 * alpha-mdebug-tdep.c: Use string.h, not gdb_string.h.
773 * alpha-nat.c: Use string.h, not gdb_string.h.
774 * alpha-osf1-tdep.c: Use string.h, not gdb_string.h.
775 * alpha-tdep.c: Use string.h, not gdb_string.h.
776 * alphanbsd-tdep.c: Use string.h, not gdb_string.h.
777 * amd64-dicos-tdep.c: Use string.h, not gdb_string.h.
778 * amd64-linux-nat.c: Use string.h, not gdb_string.h.
779 * amd64-linux-tdep.c: Use string.h, not gdb_string.h.
780 * amd64-nat.c: Use string.h, not gdb_string.h.
781 * amd64-sol2-tdep.c: Use string.h, not gdb_string.h.
782 * amd64fbsd-tdep.c: Use string.h, not gdb_string.h.
783 * amd64obsd-tdep.c: Use string.h, not gdb_string.h.
784 * arch-utils.c: Use string.h, not gdb_string.h.
785 * arm-linux-nat.c: Use string.h, not gdb_string.h.
786 * arm-linux-tdep.c: Use string.h, not gdb_string.h.
787 * arm-tdep.c: Use string.h, not gdb_string.h.
788 * arm-wince-tdep.c: Use string.h, not gdb_string.h.
789 * armbsd-tdep.c: Use string.h, not gdb_string.h.
790 * armnbsd-nat.c: Use string.h, not gdb_string.h.
791 * armnbsd-tdep.c: Use string.h, not gdb_string.h.
792 * armobsd-tdep.c: Use string.h, not gdb_string.h.
793 * avr-tdep.c: Use string.h, not gdb_string.h.
794 * ax-gdb.c: Use string.h, not gdb_string.h.
795 * ax-general.c: Use string.h, not gdb_string.h.
796 * bcache.c: Use string.h, not gdb_string.h.
797 * bfin-tdep.c: Use string.h, not gdb_string.h.
798 * breakpoint.c: Use string.h, not gdb_string.h.
799 * build-id.c: Use string.h, not gdb_string.h.
800 * buildsym.c: Use string.h, not gdb_string.h.
801 * c-exp.y: Use string.h, not gdb_string.h.
802 * c-lang.c: Use string.h, not gdb_string.h.
803 * c-typeprint.c: Use string.h, not gdb_string.h.
804 * c-valprint.c: Use string.h, not gdb_string.h.
805 * charset.c: Use string.h, not gdb_string.h.
806 * cli-out.c: Use string.h, not gdb_string.h.
807 * cli/cli-cmds.c: Use string.h, not gdb_string.h.
808 * cli/cli-decode.c: Use string.h, not gdb_string.h.
809 * cli/cli-dump.c: Use string.h, not gdb_string.h.
810 * cli/cli-interp.c: Use string.h, not gdb_string.h.
811 * cli/cli-logging.c: Use string.h, not gdb_string.h.
812 * cli/cli-script.c: Use string.h, not gdb_string.h.
813 * cli/cli-setshow.c: Use string.h, not gdb_string.h.
814 * cli/cli-utils.c: Use string.h, not gdb_string.h.
815 * coffread.c: Use string.h, not gdb_string.h.
816 * common/common-utils.c: Use string.h, not gdb_string.h.
817 * common/filestuff.c: Use string.h, not gdb_string.h.
818 * common/linux-procfs.c: Use string.h, not gdb_string.h.
819 * common/linux-ptrace.c: Use string.h, not gdb_string.h.
820 * common/signals.c: Use string.h, not gdb_string.h.
821 * common/vec.h: Use string.h, not gdb_string.h.
822 * core-regset.c: Use string.h, not gdb_string.h.
823 * corefile.c: Use string.h, not gdb_string.h.
824 * corelow.c: Use string.h, not gdb_string.h.
825 * cp-abi.c: Use string.h, not gdb_string.h.
826 * cp-support.c: Use string.h, not gdb_string.h.
827 * cp-valprint.c: Use string.h, not gdb_string.h.
828 * cris-tdep.c: Use string.h, not gdb_string.h.
829 * d-lang.c: Use string.h, not gdb_string.h.
830 * dbxread.c: Use string.h, not gdb_string.h.
831 * dcache.c: Use string.h, not gdb_string.h.
832 * demangle.c: Use string.h, not gdb_string.h.
833 * dicos-tdep.c: Use string.h, not gdb_string.h.
834 * disasm.c: Use string.h, not gdb_string.h.
835 * doublest.c: Use string.h, not gdb_string.h.
836 * dsrec.c: Use string.h, not gdb_string.h.
837 * dummy-frame.c: Use string.h, not gdb_string.h.
838 * dwarf2-frame.c: Use string.h, not gdb_string.h.
839 * dwarf2loc.c: Use string.h, not gdb_string.h.
840 * dwarf2read.c: Use string.h, not gdb_string.h.
841 * elfread.c: Use string.h, not gdb_string.h.
842 * environ.c: Use string.h, not gdb_string.h.
843 * eval.c: Use string.h, not gdb_string.h.
844 * event-loop.c: Use string.h, not gdb_string.h.
845 * exceptions.c: Use string.h, not gdb_string.h.
846 * exec.c: Use string.h, not gdb_string.h.
847 * expprint.c: Use string.h, not gdb_string.h.
848 * f-exp.y: Use string.h, not gdb_string.h.
849 * f-lang.c: Use string.h, not gdb_string.h.
850 * f-typeprint.c: Use string.h, not gdb_string.h.
851 * f-valprint.c: Use string.h, not gdb_string.h.
852 * fbsd-nat.c: Use string.h, not gdb_string.h.
853 * findcmd.c: Use string.h, not gdb_string.h.
854 * findvar.c: Use string.h, not gdb_string.h.
855 * fork-child.c: Use string.h, not gdb_string.h.
856 * frame.c: Use string.h, not gdb_string.h.
857 * frv-linux-tdep.c: Use string.h, not gdb_string.h.
858 * frv-tdep.c: Use string.h, not gdb_string.h.
859 * gdb.c: Use string.h, not gdb_string.h.
860 * gdb_bfd.c: Use string.h, not gdb_string.h.
861 * gdbarch.c: Use string.h, not gdb_string.h.
862 * gdbtypes.c: Use string.h, not gdb_string.h.
863 * gnu-nat.c: Use string.h, not gdb_string.h.
864 * gnu-v2-abi.c: Use string.h, not gdb_string.h.
865 * gnu-v3-abi.c: Use string.h, not gdb_string.h.
866 * go-exp.y: Use string.h, not gdb_string.h.
867 * go-lang.c: Use string.h, not gdb_string.h.
868 * go32-nat.c: Use string.h, not gdb_string.h.
869 * hppa-hpux-tdep.c: Use string.h, not gdb_string.h.
870 * hppa-linux-nat.c: Use string.h, not gdb_string.h.
871 * hppanbsd-tdep.c: Use string.h, not gdb_string.h.
872 * hppaobsd-tdep.c: Use string.h, not gdb_string.h.
873 * i386-cygwin-tdep.c: Use string.h, not gdb_string.h.
874 * i386-dicos-tdep.c: Use string.h, not gdb_string.h.
875 * i386-linux-nat.c: Use string.h, not gdb_string.h.
876 * i386-linux-tdep.c: Use string.h, not gdb_string.h.
877 * i386-nto-tdep.c: Use string.h, not gdb_string.h.
878 * i386-sol2-tdep.c: Use string.h, not gdb_string.h.
879 * i386-tdep.c: Use string.h, not gdb_string.h.
880 * i386bsd-tdep.c: Use string.h, not gdb_string.h.
881 * i386gnu-nat.c: Use string.h, not gdb_string.h.
882 * i386nbsd-tdep.c: Use string.h, not gdb_string.h.
883 * i386obsd-tdep.c: Use string.h, not gdb_string.h.
884 * i387-tdep.c: Use string.h, not gdb_string.h.
885 * ia64-libunwind-tdep.c: Use string.h, not gdb_string.h.
886 * ia64-linux-nat.c: Use string.h, not gdb_string.h.
887 * inf-child.c: Use string.h, not gdb_string.h.
888 * inf-ptrace.c: Use string.h, not gdb_string.h.
889 * inf-ttrace.c: Use string.h, not gdb_string.h.
890 * infcall.c: Use string.h, not gdb_string.h.
891 * infcmd.c: Use string.h, not gdb_string.h.
892 * inflow.c: Use string.h, not gdb_string.h.
893 * infrun.c: Use string.h, not gdb_string.h.
894 * interps.c: Use string.h, not gdb_string.h.
895 * iq2000-tdep.c: Use string.h, not gdb_string.h.
896 * irix5-nat.c: Use string.h, not gdb_string.h.
897 * jv-exp.y: Use string.h, not gdb_string.h.
898 * jv-lang.c: Use string.h, not gdb_string.h.
899 * jv-typeprint.c: Use string.h, not gdb_string.h.
900 * jv-valprint.c: Use string.h, not gdb_string.h.
901 * language.c: Use string.h, not gdb_string.h.
902 * linux-fork.c: Use string.h, not gdb_string.h.
903 * linux-nat.c: Use string.h, not gdb_string.h.
904 * lm32-tdep.c: Use string.h, not gdb_string.h.
905 * m2-exp.y: Use string.h, not gdb_string.h.
906 * m2-typeprint.c: Use string.h, not gdb_string.h.
907 * m32c-tdep.c: Use string.h, not gdb_string.h.
908 * m32r-linux-nat.c: Use string.h, not gdb_string.h.
909 * m32r-linux-tdep.c: Use string.h, not gdb_string.h.
910 * m32r-rom.c: Use string.h, not gdb_string.h.
911 * m32r-tdep.c: Use string.h, not gdb_string.h.
912 * m68hc11-tdep.c: Use string.h, not gdb_string.h.
913 * m68k-tdep.c: Use string.h, not gdb_string.h.
914 * m68kbsd-tdep.c: Use string.h, not gdb_string.h.
915 * m68klinux-nat.c: Use string.h, not gdb_string.h.
916 * m68klinux-tdep.c: Use string.h, not gdb_string.h.
917 * m88k-tdep.c: Use string.h, not gdb_string.h.
918 * macrocmd.c: Use string.h, not gdb_string.h.
919 * main.c: Use string.h, not gdb_string.h.
920 * mdebugread.c: Use string.h, not gdb_string.h.
921 * mem-break.c: Use string.h, not gdb_string.h.
922 * memattr.c: Use string.h, not gdb_string.h.
923 * memory-map.c: Use string.h, not gdb_string.h.
924 * mep-tdep.c: Use string.h, not gdb_string.h.
925 * mi/mi-cmd-break.c: Use string.h, not gdb_string.h.
926 * mi/mi-cmd-disas.c: Use string.h, not gdb_string.h.
927 * mi/mi-cmd-env.c: Use string.h, not gdb_string.h.
928 * mi/mi-cmd-stack.c: Use string.h, not gdb_string.h.
929 * mi/mi-cmd-var.c: Use string.h, not gdb_string.h.
930 * mi/mi-cmds.c: Use string.h, not gdb_string.h.
931 * mi/mi-console.c: Use string.h, not gdb_string.h.
932 * mi/mi-getopt.c: Use string.h, not gdb_string.h.
933 * mi/mi-interp.c: Use string.h, not gdb_string.h.
934 * mi/mi-main.c: Use string.h, not gdb_string.h.
935 * mi/mi-parse.c: Use string.h, not gdb_string.h.
936 * microblaze-rom.c: Use string.h, not gdb_string.h.
937 * microblaze-tdep.c: Use string.h, not gdb_string.h.
938 * mingw-hdep.c: Use string.h, not gdb_string.h.
939 * minidebug.c: Use string.h, not gdb_string.h.
940 * minsyms.c: Use string.h, not gdb_string.h.
941 * mips-irix-tdep.c: Use string.h, not gdb_string.h.
942 * mips-linux-tdep.c: Use string.h, not gdb_string.h.
943 * mips-tdep.c: Use string.h, not gdb_string.h.
944 * mips64obsd-tdep.c: Use string.h, not gdb_string.h.
945 * mipsnbsd-tdep.c: Use string.h, not gdb_string.h.
946 * mipsread.c: Use string.h, not gdb_string.h.
947 * mn10300-linux-tdep.c: Use string.h, not gdb_string.h.
948 * mn10300-tdep.c: Use string.h, not gdb_string.h.
949 * monitor.c: Use string.h, not gdb_string.h.
950 * moxie-tdep.c: Use string.h, not gdb_string.h.
951 * mt-tdep.c: Use string.h, not gdb_string.h.
952 * nbsd-tdep.c: Use string.h, not gdb_string.h.
953 * nios2-linux-tdep.c: Use string.h, not gdb_string.h.
954 * nto-procfs.c: Use string.h, not gdb_string.h.
955 * nto-tdep.c: Use string.h, not gdb_string.h.
956 * objc-lang.c: Use string.h, not gdb_string.h.
957 * objfiles.c: Use string.h, not gdb_string.h.
958 * opencl-lang.c: Use string.h, not gdb_string.h.
959 * osabi.c: Use string.h, not gdb_string.h.
960 * osdata.c: Use string.h, not gdb_string.h.
961 * p-exp.y: Use string.h, not gdb_string.h.
962 * p-lang.c: Use string.h, not gdb_string.h.
963 * p-typeprint.c: Use string.h, not gdb_string.h.
964 * parse.c: Use string.h, not gdb_string.h.
965 * posix-hdep.c: Use string.h, not gdb_string.h.
966 * ppc-linux-nat.c: Use string.h, not gdb_string.h.
967 * ppc-sysv-tdep.c: Use string.h, not gdb_string.h.
968 * ppcfbsd-tdep.c: Use string.h, not gdb_string.h.
969 * ppcnbsd-tdep.c: Use string.h, not gdb_string.h.
970 * ppcobsd-tdep.c: Use string.h, not gdb_string.h.
971 * printcmd.c: Use string.h, not gdb_string.h.
972 * procfs.c: Use string.h, not gdb_string.h.
973 * prologue-value.c: Use string.h, not gdb_string.h.
974 * python/py-auto-load.c: Use string.h, not gdb_string.h.
975 * python/py-gdb-readline.c: Use string.h, not gdb_string.h.
976 * ravenscar-thread.c: Use string.h, not gdb_string.h.
977 * regcache.c: Use string.h, not gdb_string.h.
978 * registry.c: Use string.h, not gdb_string.h.
979 * remote-fileio.c: Use string.h, not gdb_string.h.
980 * remote-m32r-sdi.c: Use string.h, not gdb_string.h.
981 * remote-mips.c: Use string.h, not gdb_string.h.
982 * remote-sim.c: Use string.h, not gdb_string.h.
983 * remote.c: Use string.h, not gdb_string.h.
984 * reverse.c: Use string.h, not gdb_string.h.
985 * rs6000-aix-tdep.c: Use string.h, not gdb_string.h.
986 * ser-base.c: Use string.h, not gdb_string.h.
987 * ser-go32.c: Use string.h, not gdb_string.h.
988 * ser-mingw.c: Use string.h, not gdb_string.h.
989 * ser-pipe.c: Use string.h, not gdb_string.h.
990 * ser-tcp.c: Use string.h, not gdb_string.h.
991 * ser-unix.c: Use string.h, not gdb_string.h.
992 * serial.c: Use string.h, not gdb_string.h.
993 * sh-tdep.c: Use string.h, not gdb_string.h.
994 * sh64-tdep.c: Use string.h, not gdb_string.h.
995 * shnbsd-tdep.c: Use string.h, not gdb_string.h.
996 * skip.c: Use string.h, not gdb_string.h.
997 * sol-thread.c: Use string.h, not gdb_string.h.
998 * solib-dsbt.c: Use string.h, not gdb_string.h.
999 * solib-frv.c: Use string.h, not gdb_string.h.
1000 * solib-osf.c: Use string.h, not gdb_string.h.
1001 * solib-spu.c: Use string.h, not gdb_string.h.
1002 * solib-target.c: Use string.h, not gdb_string.h.
1003 * solib.c: Use string.h, not gdb_string.h.
1004 * somread.c: Use string.h, not gdb_string.h.
1005 * source.c: Use string.h, not gdb_string.h.
1006 * sparc-nat.c: Use string.h, not gdb_string.h.
1007 * sparc-sol2-tdep.c: Use string.h, not gdb_string.h.
1008 * sparc-tdep.c: Use string.h, not gdb_string.h.
1009 * sparc64-tdep.c: Use string.h, not gdb_string.h.
1010 * sparc64fbsd-tdep.c: Use string.h, not gdb_string.h.
1011 * sparc64nbsd-tdep.c: Use string.h, not gdb_string.h.
1012 * sparcnbsd-tdep.c: Use string.h, not gdb_string.h.
1013 * spu-linux-nat.c: Use string.h, not gdb_string.h.
1014 * spu-multiarch.c: Use string.h, not gdb_string.h.
1015 * spu-tdep.c: Use string.h, not gdb_string.h.
1016 * stabsread.c: Use string.h, not gdb_string.h.
1017 * stack.c: Use string.h, not gdb_string.h.
1018 * std-regs.c: Use string.h, not gdb_string.h.
1019 * symfile.c: Use string.h, not gdb_string.h.
1020 * symmisc.c: Use string.h, not gdb_string.h.
1021 * symtab.c: Use string.h, not gdb_string.h.
1022 * target.c: Use string.h, not gdb_string.h.
1023 * thread.c: Use string.h, not gdb_string.h.
1024 * tilegx-linux-nat.c: Use string.h, not gdb_string.h.
1025 * tilegx-tdep.c: Use string.h, not gdb_string.h.
1026 * top.c: Use string.h, not gdb_string.h.
1027 * tracepoint.c: Use string.h, not gdb_string.h.
1028 * tui/tui-command.c: Use string.h, not gdb_string.h.
1029 * tui/tui-data.c: Use string.h, not gdb_string.h.
1030 * tui/tui-disasm.c: Use string.h, not gdb_string.h.
1031 * tui/tui-file.c: Use string.h, not gdb_string.h.
1032 * tui/tui-layout.c: Use string.h, not gdb_string.h.
1033 * tui/tui-out.c: Use string.h, not gdb_string.h.
1034 * tui/tui-regs.c: Use string.h, not gdb_string.h.
1035 * tui/tui-source.c: Use string.h, not gdb_string.h.
1036 * tui/tui-stack.c: Use string.h, not gdb_string.h.
1037 * tui/tui-win.c: Use string.h, not gdb_string.h.
1038 * tui/tui-windata.c: Use string.h, not gdb_string.h.
1039 * tui/tui-winsource.c: Use string.h, not gdb_string.h.
1040 * typeprint.c: Use string.h, not gdb_string.h.
1041 * ui-file.c: Use string.h, not gdb_string.h.
1042 * ui-out.c: Use string.h, not gdb_string.h.
1043 * user-regs.c: Use string.h, not gdb_string.h.
1044 * utils.c: Use string.h, not gdb_string.h.
1045 * v850-tdep.c: Use string.h, not gdb_string.h.
1046 * valarith.c: Use string.h, not gdb_string.h.
1047 * valops.c: Use string.h, not gdb_string.h.
1048 * valprint.c: Use string.h, not gdb_string.h.
1049 * value.c: Use string.h, not gdb_string.h.
1050 * varobj.c: Use string.h, not gdb_string.h.
1051 * vax-tdep.c: Use string.h, not gdb_string.h.
1052 * vaxnbsd-tdep.c: Use string.h, not gdb_string.h.
1053 * vaxobsd-tdep.c: Use string.h, not gdb_string.h.
1054 * windows-nat.c: Use string.h, not gdb_string.h.
1055 * xcoffread.c: Use string.h, not gdb_string.h.
1056 * xml-support.c: Use string.h, not gdb_string.h.
1057 * xstormy16-tdep.c: Use string.h, not gdb_string.h.
1058 * xtensa-linux-nat.c: Use string.h, not gdb_string.h.
1059
63ce7108
TT
10602013-11-18 Tom Tromey <tromey@redhat.com>
1061
1062 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add strerror
1063 and strstr.
1064 * gnulib/aclocal.m4: Update.
1065 * gnulib/config.in: Update.
1066 * gnulib/configure: Update.
1067 * gnulib/import/Makefile.am: Update.
1068 * gnulib/import/Makefile.in: Update.
1069 * gnulib/import/errno.in.h: New.
1070 * gnulib/import/intprops.h: New.
1071 * gnulib/import/m4/errno_h.m4: New.
1072 * gnulib/import/m4/gnulib-cache.m4: Update.
1073 * gnulib/import/m4/gnulib-comp.m4: Update.
1074 * gnulib/import/m4/strerror.m4: New.
1075 * gnulib/import/m4/strstr.m4: New.
1076 * gnulib/import/m4/sys_socket_h.m4: New.
1077 * gnulib/import/strerror-override.c: New.
1078 * gnulib/import/strerror-override.h: New.
1079 * gnulib/import/strerror.c: New.
1080 * gnulib/import/strstr.c: New.
1081
a7c11ee1
TT
10822013-11-18 Tom Tromey <tromey@redhat.com>
1083
1084 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Split into
1085 multiple lines.
1086
d0b5971a
JM
10872013-11-18 Jose E. Marchesi <jose.marchesi@oracle.com>
1088
1089 * sparc-tdep.c (sparc_is_annulled_branch_insn): New function.
1090 * sparc-tdep.h: And its prototype.
1091
1092 * sparc64-linux-tdep.c (sparc64_linux_get_longjmp_target): New
1093 function.
1094 (sparc64_linux_init_abi): Register the get_longjmp_target hook.
1095
4b4589ad
PA
10962013-11-18 Pedro Alves <palves@redhat.com>
1097
1098 * dwarf2-frame.c (read_addr_from_reg): Remove stale comment and
1099 use unpack_pointer.
1100
422ad5c2
JB
11012013-11-18 Joel Brobecker <brobecker@adacore.com>
1102
1103 * mi/mi-main.c (mi_cmd_list_features): Add "language-options"
1104 to -list-features output.
1105
b1370418
JB
11062013-11-17 Joel Brobecker <brobecker@adacore.com>
1107
1108 * dwarf2expr.h (struct dwarf_expr_context_funcs)
1109 <read_addr_from_reg>: Renames "read_reg".
1110 * dwarf2-frame.c (read_addr_from_reg): Renames "read_reg".
1111 Adjust comment.
1112 (dwarf2_frame_ctx_funcs, execute_stack_op, dwarf2_frame_cache):
1113 Use read_addr_from_reg in place of read_reg.
1114 * dwarf2expr.c (execute_stack_op): Use read_addr_from_reg
1115 in place of read_reg.
1116 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Renames
1117 dwarf_expr_read_reg.
1118 (dwarf_expr_ctx_funcs): Replace dwarf_expr_read_reg
1119 with dwarf_expr_read_addr_from_reg.
1120 (needs_frame_read_addr_from_reg): Renames needs_frame_read_reg.
1121 (needs_frame_ctx_funcs): Replace needs_frame_read_reg with
1122 needs_frame_read_addr_from_reg.
1123
6ea71545
JK
11242013-11-15 Jan Kratochvil <jan.kratochvil@redhat.com>
1125
1126 * NEWS (Changes in GDB 7.5) (New commands) (explore): Fix typo.
1127
19a1b230
AA
11282013-11-15 Andreas Arnez <arnez@linux.vnet.ibm.com>
1129
1130 * dwarf2loc.c (chain_candidate): Prevent invoking memcpy with
1131 NULL.
1132
805e1f19
TT
11332013-11-15 Tom Tromey <tromey@redhat.com>
1134
1135 PR c++/16117:
1136 * c-exp.y (lex_one_token): Add "is_quoted_name" argument.
1137 (classify_name): Likewise. Prefer a field of "this" over a
1138 filename.
1139 (classify_inner_name, yylex): Update.
1140
0acf8b65
JB
11412013-11-15 Joel Brobecker <brobecker@adacore.com>
1142
1143 * dwarf2expr.h (struct dwarf_expr_context_funcs) <read_reg>:
1144 Extend the documentation a bit.
1145 <get_reg_value>: New field.
1146 * dwarf2loc.c (dwarf_expr_get_reg_value)
1147 (needs_frame_get_reg_value): New functions.
1148 (dwarf_expr_ctx_funcs, needs_frame_ctx_funcs): Add "get_reg_value"
1149 callback.
1150 * dwarf2-frame.c (get_reg_value): New function.
1151 (dwarf2_frame_ctx_funcs): Add "get_reg_value" callback.
1152 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_regval_type>:
1153 Use new callback to compute result_val.
1154
ef1bc9e7
AM
11552013-11-15 Alan Modra <amodra@gmail.com>
1156
1157 * ppc64-tdep.c (ppc64_plt_entry_point): Renamed from..
1158 (ppc64_desc_entry_point): ..this. Update comments here and at
1159 call points.
1160 (ppc64_standard_linkage1, ppc64_standard_linkage2,
1161 ppc64_standard_linkage3): Update comments.
1162 (ppc64_standard_linkage4, ppc64_standard_linkage5,
1163 (ppc64_standard_linkage6, ppc64_standard_linkage7): New insn
1164 patterns.
1165 (ppc64_standard_linkage4_target): New function.
1166 (ppc64_skip_trampoline_code): Skip ELFv2 patterns too.
1167 * rs6000-tdep.c (skip_prologue): Skip ELFv2 r2 setup. Correct
1168 nop match. Fix comment wrap.
1169
36fa8042
PA
11702013-11-14 Pedro Alves <palves@redhat.com>
1171
1172 * infrun.c (handle_signal_stop): Move STOP_QUIETLY,
1173 STOP_QUIETLY_REMOTE and 'stop_after_trap' handling earlier.
1174
4f5d7f63
PA
11752013-11-14 Pedro Alves <palves@redhat.com>
1176
1177 * infrun.c (struct execution_control_state)
1178 <stepped_after_stopped_by_watchpoint>: New field.
1179 (get_inferior_stop_soon): New function.
1180 (handle_inferior_event): 'stepped_after_stopped_by_watchpoint' was
1181 moved to struct execution_control_state -- adjust. Use
1182 get_inferior_stop_soon. Split TARGET_WAITKIND_STOPPED handling to
1183 new function.
1184 (handle_signal_stop): New function, factored out from
1185 handle_inferior_event.
1186
47591c29
PA
11872013-11-14 Pedro Alves <palves@redhat.com>
1188
1189 * break-catch-sig.c (signal_catchpoint_explains_signal): Adjust to
1190 return a boolean.
1191 * breakpoint.c (bpstat_explains_signal): Adjust to return a
1192 boolean.
1193 (explains_signal_watchpoint, base_breakpoint_explains_signal):
1194 Adjust to return a boolean.
1195 * breakpoint.h (enum bpstat_signal_value): Delete.
1196 (struct breakpoint_ops) <explains_signal>: New returns a boolean.
1197 (bpstat_explains_signal): Likewise.
1198 * infrun.c (handle_inferior_event) <random signal checks>:
1199 bpstat_explains_signal now returns a boolean - adjust. No longer
1200 consider hiding signals.
1201
bac7d97b
PA
12022013-11-14 Pedro Alves <palves@redhat.com>
1203
1204 * breakpoint.c (bpstat_explains_signal) <Moribund locations>:
1205 Return BPSTAT_SIGNAL_PASS instead of BPSTAT_SIGNAL_HIDE.
1206 (explains_signal_watchpoint): Return BPSTAT_SIGNAL_PASS instead of
1207 BPSTAT_SIGNAL_HIDE.
1208 (base_breakpoint_explains_signal): Return BPSTAT_SIGNAL_PASS
1209 instead of BPSTAT_SIGNAL_HIDE.
1210 * infrun.c (handle_inferior_event): Rework random signal checks.
1211
ce12b012
PA
12122013-11-14 Pedro Alves <palves@redhat.com>
1213
1214 * infrun.c (struct execution_control_state): Remove
1215 'random_signal' field.
1216 (handle_syscall_event): Use bpstat_causes_stop instead of
1217 bpstat_explains_signal. Don't set ecs->random_signal.
1218 (handle_inferior_event): New 'random_signal' local.
1219 <TARGET_WAITKIND_FORKED, TARGET_WAITKIND_VFORKED,
1220 TARGET_WAITKIND_EXECD>: Use bpstat_causes_stop instead of
1221 bpstat_explains_signal. Don't set ecs->random_signal.
1222 <TARGET_WAITKIND_STOPPED>: Adjust to use local instead of
1223 ecs->random_signal.
1224
05ba8510
PA
12252013-11-14 Pedro Alves <palves@redhat.com>
1226
1227 * infrun.c (handle_inferior_event): Move comment from the
1228 function's body to the function's description, adjusted.
1229
5c09a2c5
PA
12302013-11-14 Pedro Alves <palves@redhat.com>
1231
1232 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
1233 Handle STOP_QUIETLY_NO_SIGSTOP and STOP_QUIETLY_REMOTE here.
1234 Assert we never fall through out of the TARGET_WAITKIND_LOADED
1235 case.
1236
91822956
TT
12372013-11-14 Tom Tromey <tromey@redhat.com>
1238
1239 * python/py-linetable.c (ltpy_has_line)
1240 (ltpy_get_all_source_lines): Fix loop termination condition.
1241
403cb6b1
JB
12422013-11-14 Joel Brobecker <brobecker@adacore.com>
1243
1244 * mi/mi-parse.h (struct mi_parse) <language>: New field.
1245 * mi/mi-main.c (mi_cmd_execute): Temporarily set language to
1246 PARSE->LANGUAGE during command execution, if set.
1247 * mi/mi-parse.c: Add "language.h" #include.
1248 (mi_parse): Add parsing of "--language" command option.
1249
1250 * NEWS: Add entry mentioning the new "--language" command option.
1251
b5be8ce0
JB
12522013-11-14 Pedro Alves <palves@redhat.com>
1253 Joel Brobecker <brobecker@adacore.com>
1254
1255 * cli/cli-utils.h (extract_arg_const): Add declaration.
1256 * cli/cli-utils.c (extract_arg_const): New function.
1257 (extract_arg): Reimplement using extract_arg_const.
1258
671afef6
JB
12592013-11-14 Joel Brobecker <brobecker@adacore.com>
1260
1261 * language.h: Add "symtab.h" #include.
1262
6c1b0f7b
DE
12632013-11-13 Doug Evans <xdje42@gmail.com>
1264
1265 * breakpoint.c (bpstat_check_breakpoint_conditions): For thread
1266 specific breakpoints, don't evaluate breakpoint condition if
1267 different thread.
1268
74921315
KS
12692013-11-13 Keith Seitz <keiths@redhat.com>
1270
248ace2e 1271 PR c++/7935
74921315
KS
1272 PR c++/10541
1273 * cp-support.c (insepct_type): Add support for substituting
1274 namespace aliases, too.
1275 * dwarf2read.c (scan_partial_symbols): Add a partial symbol
1276 for DW_TAG_imported_declaration.
1277 (add_partial_symbol): Likewise.
1278 (process_die): Handle namespace aliases with
1279 read_namespace_alias.
1280 (die_needs_namespace): Add DW_TAG_imported_declaration.
1281 (read_namespace_alias): New function.
1282 (load_partial_dies): Load DW_TAG_imported_declaration, too.
1283 (new_symbol_full): Handle DW_TAG_imported_declaration.
1284
793156e6
KS
12852013-11-13 Keith Seitz <keiths@redhat.com>
1286
1287 * p-exp.y (uptok): Make first parameter const.
1288 (yylex): Make `tokstart' and `tokptr' const.
1289 Don't copy the lexer input to a temporary buffer.
1290 Make `p' const.
1291 Remove const workaround for parse_escape.
1292 Create a temporary buffer for a convenience variable instead
1293 of doing in-place modification of the input.
1294 If a match is found with a different case from the input,
1295 do not change the input at all.
1296 Use `tmp' to construct the resultant stoken instead of
1297 `tokstart'.
1298
c42bd95a
DE
12992013-11-13 Doug Evans <xdje42@gmail.com>
1300
1301 * breakpoint.c (breakpoint_cond_eval): Fix and enhance comment.
1302
93973826
JB
13032013-11-13 Joel Brobecker <brobecker@adacore.com>
1304
1305 * mi/mi-main.c (mi_cmd_list_features): Replace "info-ada-exceptions"
1306 entry with "ada-exceptions".
1307
846060df
JB
13082013-11-13 Joel Brobecker <brobecker@adacore.com>
1309
1310 * symfile.c (reread_symbols): Move call to set_objfile_per_bfd
1311 after re-initialization of OBJFILE's obstack.
1312
5efd1b2b 13132013-11-12 Doug Evans <xdje42@gmail.com>
7d4df6a4
DE
1314
1315 * breakpoint.c (bpstat_check_breakpoint_conditions): Assert
1316 bs->stop != 0 on entry. Update function comment. Simplify early
1317 exit for frame mismatch. Reindent rest of function.
1318
ee7615e1
AA
13192013-11-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
1320
1321 * objc-lang.c (uniquify_strings): Prevent invoking qsort with
1322 NULL.
1323
8943b874
DE
13242013-11-12 Doug Evans <dje@google.com>
1325
1326 Work around gold/15646.
1327 * dwarf2read.c (read_index_from_section): Update comment.
1328 (struct dw2_symtab_iterator): New member global_seen.
1329 (dw2_symtab_iter_init): Initialize it.
1330 (dw2_symtab_iter_next): Skip duplicate global symbols.
1331 (dw2_expand_symtabs_matching): Ditto.
1332
a8a9844d
JB
13332013-11-12 Joel Brobecker <brobecker@adacore.com>
1334
1335 * mi/mi-cmds.h (mi_cmd_info_ada_exceptions): Add declaration.
1336 * mi/mi-cmds.c (mi_cmds): Add entry for -info-ada-exceptions
1337 command.
1338 * mi/mi-cmd-info.c: #include "ada-lang.c" and "arch-utils.c".
1339 (mi_cmd_info_ada_exceptions): New function.
1340 * mi/mi-main.c (mi_cmd_list_features): Add "info-ada-exceptions".
1341
778865d3
JB
13422013-11-12 Joel Brobecker <brobecker@adacore.com>
1343
1344 * ada-lang.h: #include "vec.h".
1345 (struct ada_exc_info): New.
1346 (ada_exc_info): New typedef.
1347 (DEF_VEC_O(ada_exc_info)): New vector.
1348 (ada_exceptions_list): Add declaration.
1349 * ada-lang.c (ada_is_exception_sym)
1350 (ada_is_non_standard_exception_sym, compare_ada_exception_info)
1351 (sort_remove_dups_ada_exceptions_list)
1352 (ada_exc_search_name_matches, ada_add_standard_exceptions)
1353 (ada_add_exceptions_from_frame, ada_add_global_exceptions)
1354 (ada_exceptions_list_1, ada_exceptions_list)
1355 (info_exceptions_command): New function.
1356 (_initialize_ada_language): Add "info exception" command.
1357
bc79de95
PM
13582013-11-11 Phil Muldoon <pmuldoon@redhat.com>
1359
1360 PR python/15629
1361 * NEWS: Add linetable feature.
1362 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-linetable entries.
1363 * python/py-linetable.c: New file.
1364 * python/py-symtab.c (stpy_get_linetable): New function.
1365 * python/python-internal.h (symtab_to_linetable_object): Declare.
1366 (gdbpy_initialize_linetable): Ditto.
1367 * python/python.c (_initialize_python): Call
1368 gdbpy_initialize_linetable.
1369
2df4d1d5
JB
13702013-11-11 Joel Brobecker <brobecker@adacore.com>
1371
1372 * ada-lang.c (create_ada_exception_catchpoint): Enhance
1373 the documentation of fields "except_string" and "condition".
1374 * mi/mi-cmd-catch.c (mi_cmd_catch_assert): Reallocate
1375 CONDITION on the heap before passing it to
1376 create_ada_exception_catchpoint.
1377 (mi_cmd_catch_exception): Likewise for EXCEPTION_NAME and
1378 CONDITION.
1379
99c1d451
TT
13802013-11-11 Tom Tromey <tromey@redhat.com>
1381
1382 * config.in, configure: Rebuild.
1383 * configure.ac (HAVE_TKILL_SYSCALL): Check for "syscall".
1384
8ca5801b
JB
13852013-11-11 Joel Brobecker <brobecker@adacore.com>
1386
1387 * remote-sim.c (gdbsim_detach): Break declaration into
1388 shorter lines. No code change.
1389
7a06d430
EBM
13902013-11-11 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
1391
1392 * remote-sim.c (gdbsim_detach): Fix prototype.
1393
73be47f5
DE
13942013-11-08 Doug Evans <dje@google.com>
1395
1396 * dwarf2read.c (dwarf2_read_debug): Change to unsigned int.
1397 (create_debug_types_hash_table): Only print debugging messages for
1398 each TU if dwarf2-read >= 2.
1399 (process_queue): Ditto.
1400 (_initialize_dwarf2_read): Make "set debug dwarf2-read" a zuinteger.
1401 Update doc string.
1402
a18d8f10
TT
14032013-11-08 Tom Tromey <tromey@redhat.com>
1404
1405 * configure: Rebuild.
1406 * configure.ac: Remove mentions of HAVE_MULTIPLE_PROC_FDS.
1407
9467110b
TT
14082013-11-08 Tom Tromey <tromey@redhat.com>
1409
1410 * configure, config.in: Rebuild.
1411 * configure.ac: Remove unused configury.
1412
69706679
TT
14132013-11-08 Tom Tromey <tromey@redhat.com>
1414
1415 * m32c-tdep.c: Use gdb_string.h.
1416
9b4bea72
TT
14172013-11-08 Tom Tromey <tromey@redhat.com>
1418
1419 * configure, config.in: Rebuild.
1420 * configure.ac: Remove all link.h-related checks.
1421
3266f10b
TT
14222013-11-08 Tom Tromey <tromey@redhat.com>
1423
1424 * acinclude.m4: Include common.m4.
1425 * common/common.m4: New file.
1426 * configure, config.in: Rebuild.
1427 * configure.ac: Use GDB_AC_COMMON.
1428
db0fec5c
DE
14292013-11-08 Doug Evans <dje@google.com>
1430
1431 * NEWS: Mention that "set debug symtab-create" now accepts a
1432 verbosity level.
1433 * buildsym.c (end_symtab_from_static_block): Call set_symtab_primary
1434 to set the symtab's primary flag.
1435 * jit.c (finalize_symtab): Ditto.
1436 * mdebugread.c (psymtab_to_symtab_1): Ditto.
1437 * symfile.c (allocate_symtab): Only print debugging messages for
1438 symtab_create_debug levels 2 and higher.
1439 * symtab.c (symtab_create_debug): Change type to unsigned int.
1440 (set_symtab_primary): New function.
1441 (_initialize_symtab): Change "set debug symtab-create" to a
1442 zuinteger option.
1443 * symtab.h (set_symtab_primary): Declare.
1444 (symtab_create_debug): Update decl.
1445
52554a0e
TT
14462013-11-08 Tom Tromey <tromey@redhat.com>
1447
1448 * aix-thread.c (aix_thread_detach): Update.
1449 * corelow.c (core_detach): Update.
1450 * darwin-nat.c (darwin_detach): Update.
1451 * dec-thread.c (dec_thread_detach): Update.
1452 * gnu-nat.c (gnu_detach): Update.
1453 * go32-nat.c (go32_detach): Update.
1454 * inf-ptrace.c (inf_ptrace_detach): Update.
1455 * inf-ttrace.c (inf_ttrace_detach): Update.
1456 * linux-fork.c (linux_fork_detach): Update.
1457 * linux-fork.h (linux_fork_detach): Update.
1458 * linux-nat.c (linux_nat_detach): Update. Introduce "tem"
1459 local for const-correctness.
1460 * linux-thread-db.c (thread_db_detach): Update.
1461 * monitor.c (monitor_detach): Update.
1462 * nto-procfs.c (procfs_detach): Update.
1463 * procfs.c (procfs_detach): Update.
1464 * record.c (record_detach): Update.
1465 * record.h (record_detach): Update.
1466 * remote-m32r-sdi.c (m32r_detach): Update.
1467 * remote-mips.c (mips_detach): Update.
1468 * remote-sim.c (gdbsim_detach): Update.
1469 * remote.c (remote_detach_1, remote_detach)
1470 (extended_remote_detach): Update.
1471 * sol-thread.c (sol_thread_detach): Update.
1472 * target.c (target_detach): Make "args" const.
1473 (init_dummy_target): Update.
1474 * target.h (struct target_ops) <to_detach>: Make argument const.
1475 (target_detach): Likewise.
1476 * windows-nat.c (windows_detach): Update.
1477
204b5331
DE
14782013-11-07 Doug Evans <dje@google.com>
1479
1480 PR 11786
1481 * solib-svr4.c (svr4_exec_displacement): Ignore filesz, memsz, flags
1482 and align fields for PT_GNU_RELRO segments.
1483
92e32e33
PM
14842013-11-07 Phil Muldoon <pmuldoon@redhat.com>
1485
ef1bc9e7
AM
1486 PR python/15747
1487 * python/py-cmd.c: Add COMPLETE_EXPRESSION constant.
92e32e33 1488
f76c27b5
PM
14892013-11-07 Phil Muldoon <pmuldoon@redhat.com>
1490
1491 * NEWS: Document Python temporary breakpoint support.
1492 * python/py-breakpoint.c (bppy_get_temporary): New function.
1493 (bppy_init): New keyword: temporary. Parse it and set breakpoint
1494 to temporary if True.
1495
d52cd232
JM
14962013-11-07 Jose E. Marchesi <jose.marchesi@oracle.com>
1497
1498 * sparc-tdep.c (sparc_analyze_control_transfer): Assertion
1499 removed to allow analyzing unconditional branch instructions
1500 with PC-relative offsets of zero.
1501
fa4d0c40
YQ
15022013-11-07 Yao Qi <yao@codesourcery.com>
1503
1504 * mi/mi-cmd-var.c: Include "language.h".
1505 (mi_cmd_var_info_expression): Get language name from
1506 language_defn.
1507 * varobj.c (varobj_language_string): Remove.
1508 (variable_language): Remove declaration.
1509 (languages): Remove.
1510 (varobj_get_language): Change the type of return value.
1511 (variable_language): Remove.
1512 * varobj.h (enum varobj_languages): Remove.
1513 (varobj_language_string): Remove declaration.
1514 (varobj_get_language): Update declaration.
1515
6abde28f
YQ
15162013-11-07 Yao Qi <yao@codesourcery.com>
1517
1518 * language.h (struct language_defn) <la_natural_name>: New
1519 field.
1520 * ada-lang.c (ada_language_defn): Initialize field
1521 'la_natural_name'.
1522 * c-lang.c (c_language_defn): Likewise.
1523 (cplus_language_defn, asm_language_defn): Likewise.
1524 * d-lang.c (d_language_defn): Likewise.
1525 * f-lang.c (f_language_defn): Likewise.
1526 * go-lang.c (go_language_defn): Likewise.
1527 * jv-lang.c (java_language_defn): Likewise.
1528 * language.c (unknown_language_defn ): Likewise.
1529 (auto_language_defn): Likewise.
1530 * m2-lang.c (m2_language_defn): Likewise.
1531 * objc-lang.c (objc_language_defn): Likewise.
1532 * opencl-lang.c (opencl_language_defn): Likewise.
1533 * p-lang.c (pascal_language_defn): Likewise.
1534
27cd387b
YQ
15352013-11-07 Yao Qi <yao@codesourcery.com>
1536
1537 * language.c (language_str): Return const char *.
1538 (add_language): Add const to 'language_names'
1539 * language.h (struct language_defn) <la_name>: Add const.
1540 (language_str: Update declaration.
1541
6682d959
AA
15422013-11-06 Andreas Arnez <arnez@linux.vnet.ibm.com>
1543
1544 * s390-linux-nat.c (s390_read_description): Consider the TE field
1545 in the HWCAP for determining 'have_regset_tdb'.
1546
b9502d3f
WN
15472013-11-06 Will Newton <will.newton@linaro.org>
1548
1549 PR gdb/12866
1550 * dwarf2read.c (skip_one_die): Sanity check DW_AT_sibling
1551 values. (read_partial_die): Likewise.
1552
840da61a
MB
15532013-11-06 Muhammad Bilal <mbilal@codesourcery.com>
1554
1555 PR cli/16122
1556 * top.c (command_line_input): Unify interactivity tests to use
1557 input_from_terminal_p.
1558 * event-top.c (command_line_handler): Likewise.
1559
7636ccf9
YQ
15602013-11-06 Yao Qi <yao@codesourcery.com>
1561
1562 * Makefile.in (check-perf): New target.
1563
12b27276
WN
15642013-11-05 Will Newton <will.newton@linaro.org>
1565
1566 PR gdb/7670
1567 * arm-tdep.c (print_fpu_flags): Use filtered output routines.
1568 (arm_print_float_info): Likewise.
1569
67c059c2
AB
15702013-11-04 Anton Blanchard <anton@samba.org>
1571
1572 * target.c (memory_xfer_partial): Cap write to 4KB.
1573
0569175e
TSD
15742013-11-01 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
1575
1576 * breakpoint.c (create_longjmp_master_breakpoint): Allow libc
1577 probe scan even when the arch provides no get_longjmp_target.
1578
b18e90f5
PA
15792013-10-31 Pedro Alves <palves@redhat.com>
1580
1581 * infrun.c (handle_syscall_event): Don't set or clear stop_signal.
1582 (handle_inferior_event) <TARGET_WAITKIND_FORKED,
1583 TARGET_WAITKIND_VFORKED>: Don't set stop_signal to
1584 GDB_SIGNAL_TRAP, or clear it. Pass GDB_SIGNAL_0 to
1585 bpstat_explains signal, instead of GDB_SIGNAL_TRAP.
1586 <bpstat handling>: If the bpstat chain wants the signal to be
1587 hidden, then set stop_signal to GDB_SIGNAL_0 instead of
1588 GDB_SIGNAL_TRAP.
1589
638aa5a1
AB
15902013-10-31 Andrew Burgess <aburgess@broadcom.com>
1591
1592 * breakpoint.c (update_watchpoint): Update error message and add
1593 an additional error message.
1594
0e5fae36
UW
15952013-10-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1596
1597 * s390-tdep.h: Rename to...
1598 * s390-linux-tdep.h: ...here.
1599 * s390-tdep.c: Rename to...
1600 * s390-linux-tdep.c: ...here. Adjust #include.
1601 * s390-nat.c: Rename to...
1602 * s390-linux-nat.c: ...here. Adjust #include.
1603 * config/s390/s390.mh: Rename to...
1604 * config/s390/linux.mh: ...here. Reflect rename s390-nat.o ->
1605 s390-linux-nat.o.
1606 * configure.host: Reflect host rename "s390" -> "linux".
1607 * configure.tgt: Reflect rename s390-tdep.o -> s390-linux-tdep.o.
1608 * Makefile.in (ALL_TARGET_OBS): Likewise.
1609 (HFILES_NO_SRCDIR): Reflect rename s390-tdep.h ->
1610 s390-linux-tdep.h.
1611 (ALLDEPFILES): Reflect rename of .c files.
1612
34201ae3
UW
16132013-10-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1614
1615 * s390-nat.c: Whitespace cleanup.
1616 * s390-tdep.c: Likewise.
1617 * s390-tdep.h: Remove empty line at end of file.
1618
e17aaa33
MR
16192013-10-30 Maciej W. Rozycki <macro@codesourcery.com>
1620
1621 * linux-tdep.c (linux_corefile_thread_callback): Preinitialize
1622 siginfo_size.
1623
aee17e42
TT
16242013-10-29 Tom Tromey <tromey@redhat.com>
1625
1626 * utils.c (reg): Move undefinition...
1627 * gdb_curses.h: ... here. Update comment to mention AIX.
1628
9ac69859
NB
16292013-10-29 Nicolas Blanc <nicolas.blanc@intel.com>
1630
1631 * exec.h (add_target_sections_of_objfile): New declaration.
1632 * exec.c (add_target_sections_of_objfile): New function.
1633 * symfile.c (add_symbol_file_command): Update current target sections.
1634 (remove_symbol_file_command): New command.
1635 (symfile_free_objfile): New function.
1636 (_initialize_symfile): Register observer for free_objfile events.
1637 * NEWS: Add description of the remove-symbol-file command.
1638 * breakpoint.c (disable_breakpoints_in_freed_objfile): New function.
1639 * objfiles.c (free_objfile): Notify free_objfile.
1640 (is_addr_in_objfile): New function.
1641 * objfiles.h (is_addr_in_objfile): New declaration.
1642 * printcmd.c (clear_dangling_display_expressions): Act upon free_objfile
1643 events instead of solib_unloaded events.
1644 (_initialize_printcmd): Register observer for free_objfile instead
1645 of solib_unloaded notifications.
1646 * solib.c (remove_user_added_objfile): New function.
1647 (_initialize_symfile): Add remove-symbol-file.
1648
f69d9aef
AB
16492013-10-29 Andrew Burgess <aburgess@broadcom.com>
1650
1651 * infcmd.c (default_print_one_register_info): Use val_print to
1652 print all values even optimized out or unavailable ones. Don't
1653 try to print a raw form of optimized out or unavailable values.
1654
487ad57c
YQ
16552013-10-29 Yao Qi <yao@codesourcery.com>
1656
1657 * auto-load.c (auto_load_pspace_data_cleanup): Get data from
1658 parameter 'arg' instead of from program_space_data.
1659 * objfiles.c (objfiles_pspace_data_cleanup): Likewise.
1660 * solib-darwin.c (darwin_pspace_data_cleanup): Likewise.
1661 * solib-dsbt.c (dsbt_pspace_data_cleanup): Likewise.
1662 * solib-svr4.c (svr4_pspace_data_cleanup): Likewise.
1663 * inflow.c (inflow_inferior_data_cleanup): Get data from
1664 parameter 'arg' instead of inferior_data.
1665 * registry.h: Add comments.
1666
3c4797ba
PA
16672013-10-28 Pedro Alves <palves@redhat.com>
1668
1669 * breakpoint.c (watchpoints_triggered)
1670 <!target_stopped_data_address>: Hardcode return 1.
1671
cdaa5b73
PA
16722013-10-28 Pedro Alves <palves@redhat.com>
1673
1674 * infrun.c (process_event_stop_test): Remove unnecessary scoping
1675 level and reindent.
1676
94c57d6a
PA
16772013-10-28 Pedro Alves <palves@redhat.com>
1678
1679 * infrun.c (process_event_stop_test): New function, factored out
1680 from handle_inferior_event.
1681 (handle_inferior_event): 'process_event_stop_test' is now a
1682 function instead of a goto label -- adjust.
1683
fcf3daef
PA
16842013-10-28 Pedro Alves <palves@redhat.com>
1685
1686 * infrun.c (handle_inferior_event): Move process_event_stop_test
1687 goto label to the else branch of the ecs->random_signal check,
1688 along with FRAME and GDBARCH re-fetching.
1689
c447ac0b
PA
16902013-10-28 Pedro Alves <palves@redhat.com>
1691
1692 * infrun.c (switch_back_to_stepped_thread): New function, factored
1693 out from handle_inferior_event.
1694 (handle_inferior_event): Adjust to call
1695 switch_back_to_stepped_thread. Call it also at the tail of the
1696 random signal handling, and return, instead of also handling
1697 random signals just before the stepping tests.
1698
f05e4c11
PA
16992013-10-28 Pedro Alves <palves@redhat.com>
1700
1701 * infrun.c (clear_stop_func): Delete.
1702 (handle_inferior_event): Don't call clear_stop_func and don't
1703 clear 'ecs->random_signal'.
1704
ca20d462
YQ
17052013-10-27 Yao Qi <yao@codesourcery.com>
1706
1707 * varobj.c (struct varobj_root) <lang>: Rename to 'lang_ops'.
1708 (varobj_create, varobj_get_path_expr): Update.
1709 (varobj_value_has_mutated, varobj_update): Likewise.
1710 (create_child_with_value, new_root_variable): Likewise.
1711 (number_of_children, name_of_variable): Likewise.
1712 (value_of_child, my_value_of_variable): Likewise.
1713 (varobj_value_is_changeable_p): Likewise.
1714
a53b64ea
YQ
17152013-10-25 Yao Qi <yao@codesourcery.com>
1716
1717 * language.h (struct lang_varobj_ops): Declare.
1718 (struct language_defn) <la_varobj_ops>: New field.
1719 * ada-lang.c: Include "varobj.h"
1720 (defn ada_language_defn): Initialize field 'la_varobj_ops' with
1721 ada_varobj_ops.
1722 * c-lang.c: Include "varobj.h"
1723 (c_language_defn): Initialize field 'la_varobj_ops' with
1724 c_varobj_ops.
1725 (cplus_language_defn): Initialize field 'la_varobj_ops' with
1726 cplus_varobj_ops.
1727 (asm_language_defn): Initialize field 'la_varobj_ops' with
1728 default_varobj_ops.
1729 (minimal_language_defn): Likewise.
1730 * d-lang.c (d_language_defn): Likewise.
1731 * f-lang.c (f_language_defn): Likewise.
1732 * go-lang.c (go_language_defn): Likewise.
1733 * m2-lang.c (m2_language_defn): Likewise.
1734 * objc-lang.c (objc_language_defn): Likewise.
1735 * opencl-lang.c (opencl_language_defn): Likewise.
1736 * p-lang.c (pascal_language_defn): Likewise.
1737 * language.c (unknown_language_defn): Likewise.
1738 (auto_language_defn): Likewise.
1739 (local_language_defn): Likewise.
1740 * jv-lang.c (java_language_defn): Initialize field
1741 'la_varobj_ops' with java_varobj_ops.
1742 * varobj.c (varobj_create): Update.
1743 * varobj.h (default_varobj_ops): Define macro.
1744
686d4def
PA
17452013-10-25 Pedro Alves <palves@redhat.com>
1746
1747 * cp-valprint.c (cp_print_value_fields): No longer handle a NULL
1748 static field value.
1749 (cp_print_static_field): If the value is entirely optimized out,
1750 print <optimized out> here.
1751 * jv-valprint.c (java_print_value_fields): No longer handle a NULL
1752 static field value.
1753 * p-valprint.c (pascal_object_print_static_field): If the value is
1754 entirely optimized out, print <optimized out> here.
1755 * valops.c (do_search_struct_field)
1756 (value_struct_elt_for_reference): No longer handle a NULL static
1757 field value.
1758 * value.c (value_static_field): Return an optimized out value
1759 instead of NULL.
1760
6c177e28
YQ
17612013-10-25 Yao Qi <yao@codesourcery.com>
1762
1763 * remote.c (remote_traceframe_info): Return early if
1764 traceframe is not selected.
1765
98322bfa
YQ
17662013-10-25 Yao Qi <yao@codesourcery.com>
1767
1768 * tracepoint.c (traceframe_fun): Remove.
1769 (traceframe_sal): Remove.
1770 (set_traceframe_context): Add local variables.
1771
6ba1f115
JB
17722013-10-25 Joel Brobecker <brobecker@adacore.com>
1773
1774 * varobj.h (struct lang_varobj_ops): Remove spaces between '*'
1775 and parameter name.
1776
bbe769cc
MR
17772013-10-24 Maciej W. Rozycki <macro@codesourcery.com>
1778
1779 * linux-tdep.c (linux_corefile_thread_callback): Propagate any
1780 failure from register information collection.
1781
72ee4495 17822013-10-24 Maciej W. Rozycki <macro@codesourcery.com>
59a70096
MR
1783
1784 * linux-tdep.c (linux_corefile_thread_data): Remove `num_notes'
1785 member.
1786 (linux_corefile_thread_callback): Update accordingly.
1787 (linux_make_corefile_notes): Likewise.
1788
98882a26
PA
17892013-10-24 Pedro Alves <palves@redhat.com>
1790
1791 * NEWS (New options): Mention set/show startup-with-shell.
1792 * config/alpha/nm-osf3.h (START_INFERIOR_TRAPS_EXPECTED): Set to 2
1793 instead of 3.
1794 * fork-child.c (fork_inferior, startup_inferior): Handle 'set
1795 startup-with-shell'.
1796 (show_startup_with_shell): New function.
1797 (_initialize_fork_child): Register the set/show startup-with-shell
1798 commands.
1799 * inf-ptrace.c (inf_ptrace_create_inferior): Remove comment.
1800 * inf-ttrace.c (inf_ttrace_him): Remove comment.
1801 * procfs.c (procfs_init_inferior): Remove comment.
1802 * infcmd.c (startup_with_shell): New global.
1803 * inferior.h (startup_with_shell): Declare global.
1804 (STARTUP_WITH_SHELL): Delete.
1805 (START_INFERIOR_TRAPS_EXPECTED): Set to 1 by default instead of 2.
1806
c9737c08
PA
18072013-10-23 Pedro Alves <palves@redhat.com>
1808
1809 * common/gdb_signals.h (gdb_signal_to_symbol_string): Declare.
1810 * common/signals.c: Include "gdb_assert.h".
1811 (signals): New field 'symbol'.
1812 (SET): Use the 'symbol' parameter.
1813 (gdb_signal_to_symbol_string): New function.
1814 * infrun.c (handle_inferior_event) <random signal>: In debug
1815 output, print the random signal enum as string in addition to its
1816 number.
1817 * target/waitstatus.c (target_waitstatus_to_string): Print the
1818 signal's enum value as string instead of the (POSIX) signal name.
1819
f60db4f0
GB
18202013-10-23 Gary Benson <gbenson@redhat.com>
1821
1822 PR 16013
1823 * common/linux-osdata.c (command_from_pid): Reduced size of cmd
1824 from 32 to 18. Adjusted fscanf format string accordingly.
1825 (Avoids leaving cmd unterminated.)
1826 (print_sockets): Do not parse tlen, inode, sl, timeout, txq, rxq,
1827 trun, retn or extra. (Avoids leaving extra unterminated.) Check
1828 that local_address and remote_address will not overflow.
1829 (linux_xfer_osdata_modules): Parse lines using strtok to avoid
1830 leaving dependencies unterminated. Parse size as "%u" to match
1831 definition.
1832
6d3e7a94
PA
18332013-10-22 Pedro Alves <palves@redhat.com>
1834
1835 * infrun.c (handle_inferior_event) <thread hop>: Don't clear or
1836 set ecs->random signal.
1837
42ec045f
PA
18382013-10-22 Pedro Alves <palves@redhat.com>
1839
1840 * infrun.c (keep_going): Update comments.
1841
18422013-10-22 Pedro Alves <palves@redhat.com>
1843
1844 * remote.c (remote_parse_stop_reply) <'T'/'S'/'X' replies>: Map
1845 invalid signal numbers to GDB_SIGNAL_UNKNOWN.
1846
18472013-10-22 Pedro Alves <palves@redhat.com>
1848
1849 * include/gdb/signals.def (TARGET_EXC_BAD_ACCESS): Rename to
1850 GDB_EXC_BAD_ACCESS.
1851 (TARGET_EXC_BAD_INSTRUCTION): Rename to GDB_EXC_BAD_INSTRUCTION.
1852 (TARGET_EXC_ARITHMETIC): Rename to GDB_EXC_ARITHMETIC.
1853 (TARGET_EXC_EMULATION): Rename to GDB_EXC_EMULATION.
1854 (TARGET_EXC_SOFTWARE): Rename to GDB_EXC_SOFTWARE.
1855 (TARGET_EXC_BREAKPOINT): Rename to GDB_EXC_BREAKPOINT.
1856 (GDB_SIGNAL_LAST): Change description string.
1857 * common/signals.c (gdb_signal_from_host, do_gdb_signal_to_host):
1858 Adjust to signal renaming.
1859 * darwin-nat.c (darwin_decode_message): Likewise.
1860
c8fde1b1
JM
18612013-10-22 Jose E. Marchesi <jose.marchesi@oracle.com>
1862
1863 * MAINTAINERS (Write After Approval): Add myself to the list.
1864
e8369a73
AB
18652013-10-18 Andrew Burgess <aburgess@broadcom.com>
1866
1867 * breakpoint.c (update_watchpoint): If hardware watchpoints are
1868 forced off, downgrade them to software watchpoints if possible,
1869 and error out if not possible.
1870 (watch_command_1): Move watchpoint type selection closer to
1871 watchpoint creation, and extend the comments.
1872
776f04fa
PA
18732013-10-18 Pedro Alves <palves@redhat.com>
1874
1875 PR gdb/16062
1876 * infrun.c (handle_inferior_event): Keep going if we got a random
1877 signal we should not stop for, instead of falling through to the
1878 step tests.
1879
0c6faab5
YQ
18802013-10-18 Yao Qi <yao@codesourcery.com>
1881
1882 * c-varobj.c (cplus_number_of_children): Fix indentation.
1883
50b34a18
TT
18842013-10-17 Tom Tromey <tromey@redhat.com>
1885
1886 PR gdb/15995:
1887 * printcmd.c (printcmd): Call gdb_flush.
1888
5c4c8a59
TT
18892013-10-17 Tom Tromey <tromey@redhat.com>
1890
1891 * elfread.c (struct elfinfo) <stabindexsect>: Remove.
1892 (elf_locate_sections): Update.
1893
c4124bf1
YQ
18942013-10-17 Yao Qi <yao@codesourcery.com>
1895
1896 * Makefile.in (HFILES_NO_SRCDIR): Remove ada-varobj.h.
1897 * ada-varobj.c: Remove the include of ada-varobj.h.
1898 (ada_varobj_get_number_of_children): Declare.
1899 (ada_varobj_get_name_of_child): Make it static.
1900 (ada_varobj_get_path_expr_of_child): Likewise.
1901 (ada_varobj_get_value_of_child): Likewise.
1902 (ada_varobj_get_type_of_child): Likewise.
1903 (ada_varobj_get_value_of_array_variable): Likewise.
1904 * ada-varobj.h: Remove.
1905
99ad9427
YQ
19062013-10-17 Yao Qi <yao@codesourcery.com>
1907
1908 * Makefile.in (SFILES): Add c-varobj.c and jv-varobj.c.
1909 (COMMON_OBS): Add c-varobj.o and jv-varobj.o.
1910 * ada-varobj.c: Include "varobj.h".
1911 (ada_number_of_children): New. Moved from varobj.c.
1912 (ada_name_of_variable, ada_name_of_child): Likewise.
1913 (ada_path_expr_of_child, ada_value_of_child): Likewise.
1914 (ada_type_of_child, ada_value_of_variable): Likewise.
1915 (ada_value_is_changeable_p, ada_value_has_mutated): Likewise.
1916 (ada_varobj_ops): New.
1917 * c-varobj.c, jv-varobj.c: New file. Moved from varobj.c.
1918 * gdbtypes.c (get_target_type): New. Moved from varobj.c.
1919 * gdbtypes.h (get_target_type): Declare.
1920 * varobj.c: Remove the inclusion of "ada-varobj.h" and
1921 "ada-lang.h".
1922 (ANONYMOUS_STRUCT_NAME): Move it to c-varobj.c.
1923 (ANONYMOUS_UNION_NAME): Likewise.
1924 (get_type, get_value_type, get_target_type): Remove declarations.
1925 (value_get_print_value, varobj_value_get_print_value): Likewise.
1926 (c_number_of_children, c_name_of_variable): Likewise.
1927 (c_name_of_child, c_path_expr_of_child): Likewise.
1928 (c_value_of_child, c_type_of_child): Likewise.
1929 (c_value_of_variable, cplus_number_of_children): Likewise.
1930 (cplus_class_num_children, cplus_name_of_variable): Likewise.
1931 (cplus_name_of_child, cplus_path_expr_of_child): Likewise.
1932 (cplus_value_of_child, cplus_type_of_child): Likewise.
1933 (cplus_value_of_variable, java_number_of_children): Likewise.
1934 (java_name_of_variable, java_name_of_child): Likewise.
1935 (java_path_expr_of_child, java_value_of_child): Likewise.
1936 (java_type_of_child, java_value_of_variable): Likewise.
1937 (ada_number_of_children, ada_name_of_variable): Likewise.
1938 (ada_name_of_child, ada_path_expr_of_child): Likewise.
1939 (ada_value_of_child, ada_type_of_child): Likewise.
1940 (ada_value_of_variable, ada_value_is_changeable_p): Likewise.
1941 (ada_value_has_mutated): Likewise.
1942 (struct language_specific): Move it to varobj.h.
1943 (CPLUS_FAKE_CHILD): Move it to varobj.h.
1944 (restrict_range): Rename it varobj_restrict_range. Make it extern.
1945 Callers update.
1946 (get_path_expr_parent): Rename it to varobj_get_path_expr_parent.
1947 Make it extern.
1948 (is_anonymous_child): Move it to c-varobj.c and rename to
1949 varobj_is_anonymous_child. Caller update.
1950 (get_type): Move it to c-varobj.c.
1951 (get_value_type): Rename it varobj_get_value_type. Make it
1952 extern.
1953 (get_target_type): Move it gdbtypes.c.
1954 (varobj_formatted_print_options): New function.
1955 (value_get_print_value): Rename it to
1956 varobj_value_get_print_value and make it extern.
1957 (varobj_value_is_changeable_p): Make it extern.
1958 (adjust_value_for_child_access): Move it to c-varobj.c.
1959 (default_value_is_changeable_p): Rename it to
1960 varobj_default_value_is_changeable_p. Make it extern.
1961 (c_number_of_children, c_name_of_variable): Move it to c-varobj.c
1962 (c_name_of_child, c_path_expr_of_child): Likewise.
1963 (c_value_of_child, c_type_of_child): Likewise.
1964 (c_value_of_variable, cplus_number_of_children): Likewise.
1965 (cplus_class_num_children, cplus_name_of_variable): Likewise.
1966 (cplus_name_of_child, cplus_path_expr_of_child): Likewise.
1967 (cplus_value_of_child, cplus_type_of_child): Likewise.
1968 (cplus_value_of_variable): Likewise.
1969 (java_number_of_children, java_name_of_variable): Move it to jv-varobj.c.
1970 (java_name_of_child, java_path_expr_of_child): Likewise.
1971 (java_value_of_child, java_type_of_child): Likewise.
1972 (java_value_of_variable): Likewise.
1973 (ada_number_of_children, ada_name_of_variable): Move it to ada-varobj.c.
1974 (ada_name_of_child, ada_path_expr_of_child): Likewise.
1975 (ada_value_of_child, ada_type_of_child): Likewise.
1976 (ada_value_of_variable, ada_value_is_changeable_p): Likewise.
1977 (ada_value_has_mutated): Likewise.
1978 * varobj.h (CPLUS_FAKE_CHILD): New macro, moved from varobj.c.
1979 (struct lang_varobj_ops): New. Renamed by 'struct language_specific'.
1980 (c_varobj_ops, cplus_varobj_ops): Declare.
1981 (java_varobj_ops, ada_varobj_ops): Declare.
1982 (varobj_default_value_is_changeable_p): Declare.
1983 (varobj_value_is_changeable_p): Declare.
1984 (varobj_get_value_type, varobj_is_anonymous_child): Declare.
1985 (varobj_get_path_expr_parent): Declare.
1986 (varobj_value_get_print_value): Declare.
1987 (varobj_formatted_print_options): Declare.
1988 (varobj_restrict_range): Declare.
1989
c8a62302
LM
19902013-10-17 Luis Machado <lgustavo@codesourcery.com>
1991
1992 * target/waitstatus.h (target_waitkind): Remove spurious
1993 character from the comments.
1994
eade6471
JB
19952013-10-17 Joel Brobecker <brobecker@adacore.com>
1996
1997 * gdbarch.sh (get_longjmp_target): Add method documentation.
1998 * gdbarch.h: Regenerate.
1999
5411b26c
TT
20002013-10-16 Tom Tromey <tromey@redhat.com>
2001
2002 * dbxread.c (read_dbx_symtab) <bss_ext_symbol>: Remove unused
2003 label.
2004
87326c87
LM
20052013-10-16 Luis Machado <lgustavo@codesourcery.com>
2006
2007 * gcore.in: Call GDB using the full path to the gcore script.
2008 Error out if the GDB binary is not found.
2009
fd0a4d76
SDJ
20102013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
2011
2012 PR gdb/16014
2013 * dwarf2read.c (dw2_get_real_path): Remove unnecessary call to
2014 sizeof.
2015
d92f7ee3
SDJ
20162013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
2017
2018 PR gdb/16042
2019 * target.c (target_disable_btrace): Fix invalid return value for
2020 void function.
2021 (target_teardown_btrace): Likewise.
2022
bb5ce47a
YQ
20232013-10-14 Yao Qi <yao@codesourcery.com>
2024
2025 * varobj.c (struct varobj): Move most of the fields to
2026 varobj.h.
2027 (struct varobj_dynamic): New struct.
2028 (varobj_get_display_hint) [HAVE_PYTHON]: Adjust.
2029 (varobj_has_more): Likewise.
2030 (dynamic_varobj_has_child_method): Likewise.
2031 (update_dynamic_varobj_children): Likewise.
2032 (varobj_get_num_children): Likewise.
2033 (varobj_list_children, varobj_pretty_printed_p): Likewise.
2034 (install_new_value_visualizer): Likewise.
2035 (install_new_value_visualizer, install_new_value): Likewise.
2036 (varobj_update, new_variable, free_variable): Likewise.
2037 (my_value_of_variable, value_get_print_value): Likewise.
2038 (install_visualizer): Change the type of parameter 'var' to
2039 'struct varobjd_dynamic *'. Callers update.
2040 * varobj.h (struct varobj): Moved from varobj.c.
2041 (struct varobj) <dynamic>: New field.
2042
0b76b0ce
SL
20432013-10-13 Sandra Loosemore <sandra@codesourcery.com>
2044
2045 * nios2-tdep.c (nios2_reg_names): Use "sstatus" rather than "ba"
2046 as the preferred name of r30.
2047 * nios2-linux-tdep.c (reg_offsets): Likewise.
2048 * features/nios2-cpu.xml: Likewise.
2049 * features/nios2-linux.c: Regenerated.
2050 * features/nios2.c: Regenerated.
2051 * regformats/nios2-linux.dat: Regenerated.
2052
4856b6bc
JK
20532013-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2054
2055 Canonicalize directories for EXEC_FILENAME.
2056 * exec.c (exec_file_attach): Use gdb_realpath_keepfile for
2057 exec_filename.
2058 * utils.c (gdb_realpath_keepfile): New function.
2059 * utils.h (gdb_realpath_keepfile): New declaration.
2060
9b557b58
DE
20612013-10-11 Doug Evans <dje@google.com>
2062
2063 * Makefile.in (GDBFLAGS): New variable.
2064 (run): New rule.
2065
ce13fade
JB
20662013-10-11 Joel Brobecker <brobecker@adacore.com>
2067
2068 * NEWS: Add entry documenting the new "-catch-assert" and
2069 "-catch-exception" GDB/MI commands.
2070
349774ef
JB
20712013-10-11 Joel Brobecker <brobecker@adacore.com>
2072
2073 * breakpoint.h (init_ada_exception_breakpoint): Add parameter
2074 "enabled".
2075 * breakpoint.c (init_ada_exception_breakpoint): Add parameter
2076 "enabled". Set B->ENABLE_STATE accordingly.
2077 * ada-lang.h (ada_exception_catchpoint_kind): Move here from
2078 ada-lang.c.
2079 (create_ada_exception_catchpoint): Add declaration.
2080 * ada-lang.c (ada_exception_catchpoint_kind): Move to ada-lang.h.
2081 (create_ada_exception_catchpoint): Make non-static. Add new
2082 parameter "disabled". Use it in call to
2083 init_ada_exception_breakpoint.
2084 (catch_ada_exception_command): Add parameter "enabled" in call
2085 to create_ada_exception_catchpoint.
2086 (catch_assert_command): Likewise.
2087
2088 * mi/mi-cmds.h (mi_cmd_catch_assert, mi_cmd_catch_exception):
2089 Add declarations.
2090 * mi/mi-cmds.c (mi_cmds): Add the "catch-assert" and
2091 "catch-exception" commands.
2092 * mi/mi-cmd-catch.c: Add #include "ada-lang.h".
2093 (mi_cmd_catch_assert, mi_cmd_catch_exception): New functions.
2094
761269c8
JB
20952013-10-11 Joel Brobecker <brobecker@adacore.com>
2096
2097 * ada-lang.c (enum ada_exception_catchpoint_kind): Renames
2098 "enum exception_catchpoint_kind". Replace the "ex_" prefix
2099 of all its enumerates with "ada_". Update the rest of this
2100 file throughout.
2101
b4a5b78b
JB
21022013-10-11 Joel Brobecker <brobecker@adacore.com>
2103
2104 * ada-lang.c (ada_decode_exception_location): Delete.
2105 (create_ada_exception_catchpoint): Remove arguments "sal",
2106 "addr_string" and "ops". Add argument "ex_kind" instead.
2107 Adjust implementation accordingly, calling ada_exception_sal
2108 to get the entities it no longer gets passed as arguments.
2109 Document the function's arguments.
2110 (catch_ada_exception_command): Use catch_ada_exception_command_split
2111 instead of ada_decode_exception_location, and update call to
2112 create_ada_exception_catchpoint.
2113 (catch_ada_assert_command_split): Renames
2114 ada_decode_assert_location. Remove parameters "addr_string" and
2115 "ops", and now returns void. Adjust implementation accordingly.
2116 Update the function documentation.
2117 (catch_assert_command): Use catch_ada_assert_command_split
2118 instead of ada_decode_assert_location. Update call to
2119 create_ada_exception_catchpoint.
2120
7ad1d32c 21212013-10-11 Joel Brobecker <brobecker@adacore.com>
7c647d61
JB
2122
2123 * utils.h (perror_warning_with_name): Add declaration.
2124 * utils.c (perror_warning_with_name): New function.
2125 * cli/cli-cmds.c (source_script_with_search): Add call to
2126 perror_warning_with_name if from_tty is nul.
2127
7ad1d32c 21282013-10-11 Joel Brobecker <brobecker@adacore.com>
0cf4063e
JB
2129
2130 * utils.c (perror_string): New function, extracted out of
2131 throw_perror_with_name.
2132 (throw_perror_with_name): Rework to use perror_string.
2133
bcc75809
YQ
21342013-10-11 Yao Qi <yao@codesourcery.com>
2135
2136 * remote.c (discard_pending_stop_replies_in_queue): Update
2137 declaration.
2138 (struct stop_reply) <rs>: New field.
2139 (remove_stop_reply_of_remote_state): New function.
2140 (discard_pending_stop_replies_in_queue): Add parameter 'rs'.
2141 Callers update. Pass remove_stop_reply_of_remote_state to
2142 QUEUE_iterate.
2143 (remote_parse_stop_reply): Initialize field 'rs'.
2144
05feb193
WN
21452013-10-10 Will Newton <will.newton@linaro.org>
2146
2147 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
2148 linux_init_abi.
2149
0d12017b
JB
21502013-10-10 Joel Brobecker <brobecker@adacore.com>
2151
2152 * cli/cli-cmds.c (show_baud_rate): Moved to serial.c as
2153 serial_baud_show_cmd.
2154 (_initialize_cli_cmds): Delete the code creating the
2155 "set/show remotebaud" commands.
2156 * serial.c (baud_rate): Move here from top.c.
2157 (serial_baud_show_cmd): Move here from cli/cli-cmds.c.
2158 (_initialize_serial): Create "set/show serial baud" commands.
2159 Add "set/show remotebaud" command aliases.
2160 * top.c (baud_rate): Moved to serial.c.
2161 * NEWS: Document the new "set/show serial baud" commands,
2162 replacing "set/show remotebaud".
2163
578d3588
PA
21642013-10-09 Pedro Alves <palves@redhat.com>
2165
2166 * breakpoint.c (insert_bp_location): Use memory_error_message to
2167 build the memory error string.
2168 * c-lang.c: Include "gdbcore.h".
2169 (c_get_string): Use memory_error to throw error.
2170 (target_xfer_memory_error): Delete.
2171 (memory_error_message): New, factored out from
2172 target_xfer_memory_error.
2173 (memory_error): Change parameter type to target_xfer_error.
2174 Rewrite.
2175 (read_memory): Use memory_error instead of
2176 target_xfer_memory_error.
2177 * gdbcore.h: Include "target.h".
2178 (memory_error): Change parameter type to target_xfer_error.
2179 (memory_error_message): Declare function.
2180 * target.c (target_read_memory, target_read_stack)
2181 (target_write_memory, target_write_raw_memory): Return
2182 TARGET_XFER_E_IO on error. Adjust comments.
2183 (get_target_memory): Pass TARGET_XFER_E_IO to memory_error,
2184 instead of EIO.
2185 * target.h (target_read, target_insert_breakpoint)
2186 (target_remove_breakpoint): Adjust comments.
2187 * valprint.c (partial_memory_read): Rename parameter, and adjust
2188 comment.
2189 (val_print_string): Use memory_error_message to build the memory
2190 error string.
2191
c74e1ccf
JK
21922013-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2193
2194 * common/filestuff.c (gdb_fopen_cloexec): Remove initialization of
2195 result variable. Rename variable fopen_e_ever_failed to
2196 fopen_e_ever_failed_einval. Retry fopen only for errno EINVAL.
2197
915215be
PA
21982013-10-09 Pedro Alves <palves@redhat.com>
2199
2200 * monitor.c (monitor_write_memory, monitor_write_memory_bytes)
2201 (monitor_write_memory_longlongs, monitor_write_memory_block):
2202 Constify 'myaddr' parameter.
2203 (monitor_xfer_memory): Adjust interface as monitor_xfer_partial
2204 helper.
2205 (monitor_xfer_partial): New function.
2206 (init_base_monitor_ops): Don't install a deprecated_xfer_memory
2207 hook. Install a to_xfer_partial hook.
2208
acd13123
TT
22092013-10-09 Tom Tromey <tromey@redhat.com>
2210
2211 * dwarf2read.c (dwarf2_get_dwz_file): Update for type change in
2212 bfd_get_alt_debug_link_info.
2213
40135bb1
JK
22142013-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2215
2216 New flag OBJF_NOT_FILENAME.
2217 * auto-load.c (auto_load_objfile_script): Check also OBJF_NOT_FILENAME.
2218 * jit.c (jit_object_close_impl): Use OBJF_NOT_FILENAME for
2219 allocate_objfile.
2220 (jit_bfd_try_read_symtab): Use OBJF_NOT_FILENAME for
2221 symbol_file_add_from_bfd.
2222 * jv-lang.c (get_dynamics_objfile): Use OBJF_NOT_FILENAME for
2223 allocate_objfile.
2224 * objfiles.c (allocate_objfile): Assert OBJF_NOT_FILENAME if NAME is
2225 NULL.
2226 * objfiles.h (OBJF_NOT_FILENAME): New.
2227
dc294be5
TT
22282013-10-08 Tom Tromey <tromey@redhat.com>
2229
2230 * Makefile.in (SFILES): Add build-id.c.
2231 (HFILES_NO_SRCDIR): Add build-id.h.
2232 * build-id.c: New file, largely from elfread.c. Modified
2233 most functions.
2234 * build-id.h: New file.
2235 * dwarf2read.c (dwarf2_get_dwz_file): Update for change to
2236 bfd_get_alt_debug_link_info. Verify dwz file's build-id.
2237 Search for dwz file using build-id.
2238 * elfread.c (build_id_bfd_get, build_id_verify)
2239 (build_id_to_debug_filename, find_separate_debug_file): Remove.
2240
db230ce3
JB
22412013-10-08 Joel Brobecker <brobecker@adacore.com>
2242
2243 * ada-lang.c (compare_names_with_case): Renamed from
2244 compare_names, adding a new parameter "casing" and its handling.
2245 New function documentation.
2246 (compare_names): New function, implemented using
2247 compare_names_with_case.
2248
6501c98a
JB
22492013-10-08 Joel Brobecker <brobecker@adacore.com>
2250
2251 * ada-lang.c (ada_exception_sal): Remove advance declaration.
2252
84a1243b
TT
22532013-10-07 Tom Tromey <tromey@redhat.com>
2254
2255 * objfiles.c (free_objfile_per_bfd_storage): Delete the
2256 demangled_names_hash.
2257 (free_objfile): Don't delete the demangled_names_hash.
2258 * objfiles.h (struct objfile_per_bfd_storage)
2259 <demangled_names_hash>: New field.
2260 (struct objfile) <demangled_names_hash>: Move to
2261 objfile_per_bfd_storage.
2262 * symfile.c (reread_symbols): Don't delete the
2263 demangled_names_hash.
2264 * symtab.c (create_demangled_names_hash): Update.
2265 (symbol_set_names): Update.
2266
1da77581
TT
22672013-10-07 Tom Tromey <tromey@redhat.com>
2268
2269 * gdb_bfd.c (struct gdb_bfd_data) <relocation_computed,
2270 needs_relocations>: New fields.
2271 (gdb_bfd_requires_relocations): New function.
2272 * gdb_bfd.h (gdb_bfd_requires_relocations): Declare.
2273 * objfiles.c (get_objfile_bfd_data): Disallow sharing if
2274 the BFD needs relocations applied.
2275
46ecd527
PA
22762013-10-07 Pedro Alves <palves@redhat.com>
2277
2278 PR breakpoints/11568
2279 * breakpoint.c (remove_threaded_breakpoints): Say "no longer in
2280 the thread list" instead of "gone".
2281
0c557179
SDJ
22822013-10-06 Sergio Durigan Junior <sergiodj@redhat.com>
2283
2284 * NEWS: Mention new convenience variable $_exitsignal.
2285 * corelow.c (core_open): Reset exit convenience variables. Set
2286 $_exitsignal to the uncaught signal which generated the corefile.
2287 * infrun.c (handle_inferior_event): Reset exit convenience
2288 variables. Set $_exitsignal for TARGET_WAITKIND_SIGNALLED.
2289 (clear_exit_convenience_vars): New function.
2290 * inferior.h (clear_exit_convenience_vars): New prototype.
2291
1cc47d81
YQ
22922013-10-06 Yao Qi <yao@codesourcery.com>
2293
2294 * varobj.h: Add comments to enum varobj_languages.
2295
73869dc2
DE
22962013-10-04 Doug Evans <dje@google.com>
2297
2298 Add support for DWP file format version 2.
2299 * NEWS: Mention support for DWP file format version 2.
2300 * dwarf2read.c (dwarf2_section_info): Convert asection field to a
2301 union of asection, containing_section. New fields virtual_offset
2302 and is_virtual. Change type of readin filed from int to char.
2303 (dwo_sections, dwo_file): Tweak comments.
2304 (dwp_v2_section_ids): New enum.
2305 (dwp_sections): New fields abbrev, info, line, loc, macinfo, macro,
2306 str_offsets, types.
2307 (virtual_v1_dwo_sections): Renamed from virtual_dwo_sections.
2308 All uses updated.
2309 (virtual_v2_dwo_sections): New struct.
2310 (dwp_hash_table): New fields version, nr_columns. Change type of
2311 section_pool field to a union.
2312 (dwp_file): New field version.
2313 (dwarf2_has_info): Check for virtual sections.
2314 (get_containing_section): New function.
2315 (get_section_bfd_owner, get_section_bfd_section): Call it.
2316 (dwarf2_locate_sections): Update.
2317 (dwarf2_section_empty_p): Update.
2318 (dwarf2_read_section): Handle virtual sections.
2319 (locate_dwz_sections): Update.
2320 (create_dwp_hash_table): Document and handle V2 format.
2321 (locate_v1_virtual_dwo_sections): Renamed from
2322 locate_virtual_dwo_sections and update. All callers updated.
2323 (create_dwo_unit_in_dwp_v1): Renamed from create_dwo_in_dwp.
2324 Delete arg htab. Rename arg section_index to unit_index.
2325 All callers updated.
2326 (MAX_NR_V1_DWO_SECTIONS): Renamed from MAX_NR_DWO_SECTIONS.
2327 All uses updated.
2328 (create_dwp_v2_section, create_dwo_unit_in_dwp_v2): New functions.
2329 (lookup_dwo_unit_in_dwp): Add V2 support.
2330 (dwarf2_locate_dwo_sections): Update.
2331 (dwarf2_locate_common_dwp_sections): Renamed from
2332 dwarf2_locate_dwp_sections and update. All callers updated.
2333 (dwarf2_locate_v2_dwp_sections): New function.
2334 (open_and_init_dwp_file): Add V2 support.
2335 (read_str_index): New locals str_section, str_offsets_section.
2336
9a2c3737
PA
23372013-10-04 Pedro Alves <palves@redhat.com>
2338
2339 * common/ptid.c (null_ptid, minus_one_ptid, ptid_build)
2340 (pid_to_ptid, ptid_get_pid, ptid_get_lwp, ptid_get_tid)
2341 (ptid_equal, ptid_is_pid, ptid_lwp_p, ptid_tid_p): Replace
2342 describing comments with references to ptid.h.
2343 * common/ptid.h: Remove intro description of constructors,
2344 accessors and predicates.
2345 (struct ptid): Reformat.
2346 (minus_one_ptid, ptid_build, pid_to_ptid, ptid_get_pid)
2347 (ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid): Change
2348 describing comments.
2349
f5371440
JB
23502013-10-04 Joel Brobecker <brobecker@adacore.com>
2351
2352 * aix-thread.c (sync_threadlists): Add missing ')' in call
2353 to ptid_build.
2354
793e1c06
JB
23552013-10-04 Joel Brobecker <brobecker@adacore.com>
2356
2357 * procfs.c (procfs_init_inferior): Fix typo causing the build
2358 to fail.
2359
26f0edc1
JB
23602013-10-04 Joel Brobecker <brobecker@adacore.com>
2361
2362 * aix-thread.c (ptrace32): Remove cast to addr_ptr.
2363
5713b9b5
JB
23642013-10-04 Joel Brobecker <brobecker@adacore.com>
2365
2366 * mi/mi-main.c (run_one_inferior): Add function description.
2367 Make ARG a pointer to an integer whose value determines whether
2368 we should "run" or "start" the program.
2369 (mi_cmd_exec_run): Add handling of the "--start" option.
2370 Reject all other command-line options.
2371 * NEWS: Add entry for "-exec-run"'s new "--start" option.
2372
f48ff2a7
YQ
23732013-10-04 Yao Qi <yao@codesourcery.com>
2374
2375 * remote-notif.h (REMOTE_NOTIF_ID): New enum.
2376 (struct notif_client) <pending_event>: Moved
2377 to struct remote_notif_state.
2378 <id>: New field.
2379 (struct remote_notif_state) <pending_event>: New field.
2380 (notif_event_xfree): Declare.
2381 * remote-notif.c (handle_notification): Adjust.
2382 (notif_event_xfree): New function.
2383 (do_notif_event_xfree): Call notif_event_xfree.
2384 (remote_notif_state_xfree): Call notif_event_xfree to free
2385 each element in field pending_event.
2386 * remote.c (discard_pending_stop_replies): Remove declaration.
2387 (discard_pending_stop_replies_in_queue): Declare.
2388 (remote_close): Call discard_pending_stop_replies_in_queue
2389 instead of discard_pending_stop_replies.
2390 (remote_start_remote): Adjust.
2391 (stop_reply_xfree): Call notif_event_xfree.
2392 (notif_client_stop): Adjust initialization.
2393 (remote_notif_remove_all): Rename it to ...
2394 (remove_stop_reply_for_inferior): ... this. Update comments.
2395 Don't check INF is NULL.
2396 (discard_pending_stop_replies): Return early if notif_state is
2397 NULL. Adjust. Don't check INF is NULL.
2398 (remote_notif_get_pending_events): Adjust.
ef1bc9e7 2399 (discard_pending_stop_replies_in_queue): New function.
f48ff2a7
YQ
2400 (remote_wait_ns): Likewise.
2401
5965e028
YQ
24022013-10-04 Yao Qi <yao@codesourcery.com>
2403
2404 * remote-notif.c (DECLARE_QUEUE_P): Remove.
2405 (notif_queue): Remove.
2406 (remote_notif_process): Add one parameter 'notif_queue'.
2407 Update comments. Callers update.
2408 (remote_async_get_pending_events_token): Remove.
2409 (remote_notif_register_async_event_handler): Remove.
2410 (remote_notif_unregister_async_event_handler): Remove.
2411 (handle_notification): Add parameter 'notif_queue'. Update
2412 comments. Callers update.
2413 (notif_xfree): Remove.
2414 (remote_notif_state_allocate): New function.
2415 (remote_notif_state_xfree): New function.
2416 (_initialize_notif): Remove code to allocate queue.
2417 * remote-notif.h (DECLARE_QUEUE_P): Moved from remote-notif.c.
2418 (struct remote_notif_state): New.
2419 (handle_notification): Update declaration.
2420 (remote_notif_process): Likewise.
2421 (remote_notif_register_async_event_handler): Remove.
2422 (remote_notif_unregister_async_event_handler): Remove.
2423 (remote_notif_state_allocate): Declare.
2424 (remote_notif_state_xfree): Declare.
2425 * remote.c (struct remote_state) <notif_state>: New field.
2426 (remote_close): Don't call
2427 remote_notif_unregister_async_event_handler. Call
2428 remote_notif_state_xfree.
2429 (remote_open_1): Don't call
2430 remote_notif_register_async_event_handler. Call
2431 remote_notif_state_allocate.
2432
5e5ac9a5
YQ
24332013-10-04 Yao Qi <yao@codesourcery.com>
2434
2435 * varobj.c (create_child_with_value): Remove 'const' from the
2436 type of parameter 'name'.
2437 (varobj_add_child): Likewise.
2438 (install_dynamic_child): Remove 'const' from the type of
2439 parameter 'name'.
2440 (varobj_add_child): Likewise.
2441 (create_child_with_value): Likewise. Update comments. Don't
2442 duplicate 'name'.
2443 (update_dynamic_varobj_children): Duplicate 'name'
2444 and pass it to install_dynamic_child.
2445
06ab7b19
PM
24462013-10-03 Phil Muldoon <pmuldoon@redhat.com>
2447
2448 * python/py-value.c (convert_value_from_python): Move PyInt_Check
2449 conversion logic to occur after PyLong_Check. Comment on order
2450 change significance.
2451 * python/py-arch.c (archpy_disassemble): Comment on order of
2452 conversion for integers and longs.
2453
8ae377e8
PA
24542013-10-03 Pedro Alves <palves@redhat.com>
2455
2456 * common/linux-ptrace.c (linux_check_ptrace_features): Factor out
2457 the PTRACE_O_TRACESYSGOOD and PTRACE_O_TRACEFORK to separate
2458 functions. Always test for PTRACE_O_TRACESYSGOOD even if
2459 PTRACE_O_TRACEFORK is not supported.
2460 (linux_test_for_tracesysgood): New function.
2461 (linux_test_for_tracefork): New function, factored out from
2462 linux_check_ptrace_features, and also don't kill child_pid here.
2463
b1328b1b
TG
24642013-10-03 Tristan Gingold <gingold@adacore.com>
2465
2466 * i386-darwin-nat.c (i386_darwin_dr_set): Fix argument type.
2467 Remove verbose error reporting. Use detected state to
2468 thread_set_state call.
2469 (i386_darwin_dr_get): Fix return type. Remove verbose error
2470 report.
2471 Remove trailing spaces.
2472
901461f8
PA
24732013-10-02 Pedro Alves <palves@redhat.com>
2474
2475 * cp-valprint.c (cp_print_value_fields): Adjust calls to
2476 val_print_optimized_out.
2477 * jv-valprint.c (java_print_value_fields): Likewise.
2478 * p-valprint.c (pascal_object_print_value_fields): Likewise.
2479 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full)
2480 <DWARF_VALUE_REGISTER>: If the register was not saved, return a
2481 new optimized out value.
2482 * findvar.c (address_from_register): Likewise.
2483 * frame.c (put_frame_register): Tweak error string to say the
2484 register was not saved, rather than optimized out.
2485 * infcmd.c (default_print_one_register_info): Adjust call to
2486 val_print_optimized_out. Use value_of_register instead of
2487 get_frame_register_value.
2488 * mi/mi-main.c (output_register): Use value_of_register instead of
2489 get_frame_register_value.
2490 * valprint.c (valprint_check_validity): Likewise.
2491 (val_print_optimized_out): New value parameter. If the value is
2492 lval_register, print <not saved> instead.
2493 (value_check_printable, val_print_scalar_formatted): Adjust calls
2494 to val_print_optimized_out.
2495 * valprint.h (val_print_optimized_out): New value parameter.
2496 * value.c (struct value) <optimized_out>: Extend comment.
2497 (error_value_optimized_out): New function.
2498 (require_not_optimized_out): Use it. Use a different string for
2499 lval_register values.
2500 * value.h (error_value_optimized_out): New declaration.
2501 * NEWS: Mention <not saved>.
2502
042a84d9
JB
25032013-10-02 Joel Brobecker <brobecker@adacore.com>
2504
2505 * symtab.c (compare_search_syms): Use FILENAME_CMP instead of
2506 strcmp to compare two symtab filenames.
2507
6b9780fb
JB
25082013-10-02 Joel Brobecker <brobecker@adacore.com>
2509
2510 * symtab.c (search_symbols_equal): Delete.
2511 (sort_search_symbols_remove_dups): Replace call to
2512 search_symbols_equal by call to compare_search_syms,
2513 adjusting as necessary.
2514
751e7549
PM
25152013-10-02 Phil Muldoon <pmuldoon@redhat.com>
2516
2517 PR python/15579
751e7549
PM
2518 * python/python.c: Document gdb.execute command in Python help.
2519
1efd7661
PM
25202013-10-02 Phil Muldoon <pmuldoon@redhat.com>
2521
2522 * python/py-frame.c (frame_info_to_frame_object): Use
2523 gdbpy_convert_exception. Clean up Python object on failure.
2524
562fc849
PM
25252013-10-02 Phil Muldoon <pmuldoon@redhat.com>
2526
2527 * python/lib/gdb/command/frame_filters.py
2528 (InfoFrameFilter.list_frame_filters): Retrieve exception manually.
2529 (ShowFrameFilterPriority.invoke): Ditto.
2530
d7561cbb
KS
25312013-10-01 Keith Seitz <keiths@redhat.com>
2532
2533 * linespec.c (struct ls_parser): Make 'saved_arg' const.
2534 (parse_linespec): Make 'argptr' const.
2535 Remove temporary cast of 'argptr' to const char **.
2536 (decode_line_full): Pass const pointer to parse_linespec.
2537 (decode_line_1): Likewise.
2538 (decode_objc): Make local variable 'new_argptr' const.
2539 (find_function_symbols): Remove temporary cast to char *
2540 to find_imps.
2541 * objc-lang.c (find_imps): Make argument 'method' const.
2542 Return const.
2543 * objc-lang.h (find_imps): Likewise.
2544
25452013-10-01 Keith Seitz <keiths@redhat.com>
2546
2547 * completer.c (skip_quoted_chars): Make all arguments const.
2548 Return const.
2549 (skip_quoted): Likewise.
2550 * completer.h (skip_quoted_chars): Likewise.
2551 (skip_quoted): Likewise.
2552 * defs.h (skip_quoted): Remove duplicate declaration.
2553 * jv-exp.y: Include completer.h.
2554 (yylex): Remove unneccessary cast to char * fro skip_quoted.
2555 * p-exp.y: Include completer.h.
2556
25572013-10-01 Keith Seitz <keiths@redhat.com>
2558
2559 * c-exp.y (parse_number): Make first argument const.
2560 Make a copy of the input to manipulate.
2561 (c_parse_escape): Make first argument const.
2562 Make local variable 'tokptr' const.
2563 (parse_string_or_char): Make first two arguments const.
2564 (macro_original_text): Make const.
2565 (lex_one_token): Make local variable 'tokstart' const.
2566 Likewise for local variables named 'p'.
2567 Cast away const for struct stoken (temporary).
2568 * c-lang.h (c_parse_escpae): Make first argument const.
2569 * cli/cli-cmds.c (echo_command): Make local variable 'p'
2570 const.
2571 * cli/cli-setshow.c (do_set_command): Likewise for 'p' in
2572 var_string case.
2573 * f-exp.y (parse_number): Make first argument const.
2574 (match_string_literal): Make local variable 'tokstart'
2575 const.
2576 (yylex): Make local variable 'p' const.
2577 Cast away const for struct stoken (temporary).
2578 * go-exp.y (parse_number): Make first argument const.
2579 (parse_string_or_char): Likewise.
2580 Make local variable 'tokstart' const.
2581 (lex_one_token): Likewise for numerous locals called 'p'.
2582 Cast away const for struct stoken (temporary).
2583 * jv-exp.y (parse_number): Make first argument const.
2584 Make local variables 'tokstart' and 'tokptr' const.
2585 Cast away const for call to skip_quoted (temporary).
2586 (yylex): Make local variable 'p' const.
2587 Cast away const for struct stoken (temporary).
2588 * m2-exp.y (parse_number): Make local variable 'p' const.
2589 (yylex): Likewise for 'tokstart'.
2590 Cast away const for struct stoken (temporary).
2591 Make local variable 'p' const.
2592 * macroexp.c (get_character_constant): Pass a const string
2593 to c_parse_escape.
2594 (get_string_literal): Likewise.
2595 (macro_expand_next): Make first argument const.
2596 Cast away const for init_shared_buffer.
2597 * macroexp.h (macro_expand_next): Make first argument const.
2598 * p-exp.y (yylex): Make a local copy of 'lexptr'.
2599 Pass a const string to c_parse_escape.
2600 Make local variables 'p' and 'namestart' const.
2601 * parse.c (lexptr): Make const.
2602 (prev_lexptr): Likewise.
2603 (find_template_name_end): Return const.
2604 Make argument const, too.
2605 (parse_exp_in_context): Make first argument const.
2606 Remove the entire const_hack.
2607 (parse_exp_in_context_1): Make first argument const.
2608 * parser-defs.h (find_template_name_end): Return const.
2609 Make argument const, too.
2610 (lexptr): Make const.
2611 (prev_lexptr): Likewise.
2612 * utils.c (parse_escape): Make second argument const.
2613 * utils.h (parse_escape): Likewise.
2614
26152013-10-01 Keith Seitz <keiths@redhat.com>
2616
2617 * ada-exp.y (write_object_renaming): Update: struct stoken.ptr
2618 is now const.
2619 (block_lookup): Make 'raw_name' and 'name' const.
2620 * ada-lex.l (processString): Update for struct stoken.ptr.
2621 * c-exp.y (qualified_name : TYPENAME COLONCOLON '~' name): Likewise.
2622 (operator_stoken): Likewise.
2623 (lex_one_token): Remove temporary cast to char * for
2624 'yylval.sval.ptr'.
2625 * f-exp.y (yylex): Likewise.
2626 * gdb-types.c (lookup_struct_elt_type): Make argument 'name' const.
2627 * gdbtypes.h (lookup_struct_elt_type): Likewisee.
2628 * go-exp.y (lex_one_token): Remove temporary cast to char * for
2629 'yylval.sval.ptr'.
2630 * jv-exp.y (QualifiedName): Update for struct stoken.ptr.
2631 (yylex): Remove temporary cast to char * for 'yylval.sval.ptr'.
2632 * linespec.c (struct ls_parser): Make 'stream' const.
2633 (find_parameter_list_end): Make argument 'input' and local
2634 variable 'p' const.
2635 (linespec_lexer_lex_string): Make local variables 'start' and
2636 'p' const.
2637 Use skip_spaces_const instead of skip_spaces.
2638 (linespec_lexer_peek_token): Make local variable 'saved_stream'
2639 const.
2640 (parse_linespec): Temporarily cast 'argptr' to const for
2641 'parser->lexer.stream'.
2642 * m2-exp.y (yylex): Remove temporary cast to char * for
2643 'yylval.sval.ptr'.
2644 * objc-lang.c (add_msglist): Make local variable 'p' const.
2645 * p-exp.y (exp : exp '['): Update for struct stoken.ptr.
2646 (exp : STRING): Make 'sp' const.
2647 (parse_number): Make argument 'p' const.
2648 * parser-defs.h (struct stoken): Make 'ptr' const.
2649
193a8eac
DE
26502013-10-01 Doug Evans <dje@google.com>
2651
2652 * cli/cli-decode.c: Remove unnecessary inclusion of tui/tui.h.
2653
2213e2be
YQ
26542013-10-01 Yao Qi <yao@codesourcery.com>
2655
2656 * varobj.c (c_value_of_root): Remove declaration.
2657 (cplus_value_of_root, java_value_of_root): Likewise.
2658 (ada_value_of_root): Likewise.
2659 (struct language_specific) <value_of_root>: Remove.
2660 (languages): Update initialization.
2661 (check_scope): Move earlier.
2662 (c_value_of_root): Move earlier and rename to ...
2663 (value_of_root_1): ... this.
2664 (value_of_root): Caller update.
2665 (cplus_value_of_root, java_value_of_root): Remove.
2666 (ada_value_of_root): Remove.
2667
c573f273
YQ
26682013-10-01 Yao Qi <yao@codesourcery.com>
2669
2670 * varobj.c (varobj_format_string): Remove "unknown".
2671 (languages): Remove the first element.
2672 * varobj.h (enum varobj_languages): Remove vlang_c.
2673
56250258
YQ
26742013-10-01 Yao Qi <yao@codesourcery.com>
2675
2676 * varobj.c (struct language_specific) <language>: Remove.
2677 (languages): Update the initialization.
2678
29f9ebfa
YQ
26792013-10-01 Yao Qi <yao@codesourcery.com>
2680
2681 * arm-wince-tdep.c: Remove inclusion of "solib.h" and
2682 "solib-target.h". Include "windows-tdep.h".
2683 (arm_wince_init_abi): Call windows_init_abi. Remove call to
2684 set_solib_ops and set_gdbarch_has_dos_based_file_system.
2685 * configure.tgt (arm*-wince-pe | arm*-*-mingw32ce*): Append
2686 windows-tdep.o to gdb_target_obs.
2687
64870a42
YQ
26882013-10-01 Yao Qi <yao@codesourcery.com>
2689
2690 * amd64-windows-tdep.c: Remove inclusion of "solib.h" and
2691 "solib-target.h".
2692 (amd64_windows_init_abi): Don't call set_solib_ops and
2693 set_gdbarch_iterate_over_objfiles_in_search_order. Call
2694 windows_init_abi instead.
2695 * i386-cygwin-tdep.c: Remove inclusion of "solib.h" and
2696 "solib-target.h".
2697 (i386_cygwin_init_abi): Don't call set_solib_ops,
2698 set_gdbarch_has_dos_based_file_system and
2699 set_gdbarch_iterate_over_objfiles_in_search_order. Call
2700 windows_init_abi instead.
2701 * windows-tdep.c: Include "solib.h" and "solib-target.h".
2702 (windows_init_abi): New function.
2703 (windows_iterate_over_objfiles_in_search_order): Make it
2704 static.
2705 * windows-tdep.h (windows_init_abi): Declare.
2706 (windows_iterate_over_objfiles_in_search_order): Remove
2707 declaration.
2708
0aebdefa
JB
27092013-10-01 Jerome Guitton <guitton@adacore.com>
2710
2711 Checked in by Joel Brobecker <brobecker@adacore.com>
2712 * system-gdbinit/elinos.py (get_elinos_environment): Return an
2713 incomplete dictionnary instead of None in case of missing
2714 environment variables.
2715 (elinos_init): in case of an incomplete environment, best
2716 effort to load system libraries instead of abort.
2717
1c8e84b0
JB
27182013-10-01 Joel Brobecker <brobecker@adacore.com>
2719
2720 * ada-lang.c (ada_has_this_exception_support): Ignore
2721 mst_solib_trampoline minimal symbols.
2722
61d82a0d
TG
27232013-09-30 Tristan Gingold <gingold@adacore.com>
2724
2725 * i386-darwin-nat.c (darwin_complete_target): Install methods for
2726 hardware watchpoint.
2727 (i386_darwin_dr_set): Support 32 and 64 bit states.
2728 (i386_darwin_dr_get): Likewise.
2729 (i386_darwin_dr_set_control): Make static.
2730 (i386_darwin_dr_set_addr, i386_darwin_dr_get_addr)
2731 (i386_darwin_dr_get_status, i386_darwin_dr_get_control): Likewise.
2732
dfd4cc63
LM
27332013-09-30 Luis Machado <lgustavo@codesourcery.com>
2734
2735 * aarch64-linux-nat.c: Replace PIDGET with ptid_get_pid.
2736 Replace TIDGET with ptid_get_lwp.
2737 Replace GET_LWP with ptid_get_lwp.
2738 * aix-thread.c (BUILD_THREAD, BUILD_LWP): Remove.
2739 Replace BUILD_THREAD with ptid_build.
2740 Replace BUILD_LWP with ptid_build.
2741 Replace PIDGET with ptid_get_pid.
2742 Replace TIDGET with ptid_get_lwp.
2743 * alphabsd-nat.c: Replace PIDGET with ptid_get_pid.
2744 * amd64-linux-nat.c: Replace PIDGET with ptid_get_pid.
2745 Replace TIDGET with ptid_get_lwp.
2746 * amd64bsd-nat.c: Replace PIDGET with ptid_get_pid.
2747 * arm-linux-nat.c: Replace PIDGET with ptid_get_pid.
2748 Replace TIDGET with ptid_get_lwp.
2749 Replace GET_LWP with ptid_get_lwp.
2750 * armnbsd-nat.c: Replace PIDGET with ptid_get_pid.
2751 * auxv.c: Likewise.
2752 * breakpoint.c: Likewise.
2753 * common/ptid.c (ptid_is_pid): Condense check for
2754 null_ptid and minus_one_ptid.
2755 (ptid_lwp_p): New function.
2756 (ptid_tid_p): New function.
2757 * common/ptid.h: Update comments for accessors.
2758 (ptid_lwp_p): New prototype.
2759 (ptid_tid_p): New prototype.
2760 * defs.h (PIDGET, TIDGET, MERGEPID): Do not define.
2761 * gcore.c: Replace PIDGET with ptid_get_pid.
2762 * gdbthread.h: Likewise.
2763 * gnu-nat.c: Likewise.
2764 * hppa-linux-nat.c: Replace PIDGET with ptid_get_pid.
2765 Replace TIDGET with ptid_get_lwp.
2766 * hppabsd-nat.c: Replace PIDGET with ptid_get_pid.
2767 * hppanbsd-nat.c: Likewise.
2768 * i386-linux-nat.c: Replace PIDGET with ptid_get_pid.
2769 Replace TIDGET with ptid_get_lwp.
2770 * i386bsd-nat.c: Replace PIDGET with ptid_get_pid.
2771 * ia64-linux-nat.c: Replace PIDGET with ptid_get_pid.
2772 * infcmd.c: Likewise.
2773 * inferior.h: Likewise.
2774 * inflow.c: Likewise.
2775 * infrun.c: Likewise.
2776 * linux-fork.c: Likewise.
2777 * linux-nat.c: Replace PIDGET with ptid_get_pid.
2778 Replace GET_PID with ptid_get_pid.
2779 Replace is_lwp with ptid_lwp_p.
2780 Replace GET_LWP with ptid_get_lwp.
2781 Replace BUILD_LWP with ptid_build.
2782
5b4e221c
MF
27832013-09-28 Mike Frysinger <vapier@gentoo.org>
2784
2785 * common/linux-btrace.c: Move sys/syscall.h out of the
2786 HAVE_LINUX_PERF_EVENT_H check and wrap it in HAVE_SYS_SYSCALL_H.
2787 Also check for SYS_perf_event_open before attempting to buid.
2788
57d63ce2
DE
27892013-09-27 Doug Evans <dje@google.com>
2790
19ac8c2e
DE
2791 * dwarf2read.c (dwarf2_section_info): Add comment.
2792 (dwp_file): Split loaded_cutus into loaded_cus, loaded_tus.
2793 All uses updated.
2794 (dwarf2_section_empty_p): Rename arg from "info" to "section".
2795 (dwarf2_read_section): Delete unused local "header". Add section
2796 name to error message.
2797 (create_dwo_in_dwp): Tweak comment.
2798 (MAX_NR_DWO_SECTIONS): Combine count of .debug_macro + .debug_macinfo.
2799
a32a8923
DE
2800 * dwarf2read.c (die_reader_specs): Tweak comment.
2801 (get_section_bfd_owner, get_section_bfd_section): New functions.
2802 (get_section_name, get_section_file_name): New functions.
2803 (get_section_id, get_section_flags): New functions.
2804 (*): Use new functions to access section fields.
2805
57d63ce2
DE
2806 * dwarf2read.c (struct dwo_file): Add/tweak comments.
2807 (lookup_dwo_unit_in_dwp): Renamed from lookup_dwo_in_dwp. Remove
2808 arg "htab". All callers updated.
2809 (create_debug_types_hash_table): Remove redundant copy of
2810 abbrev_section.
2811 (create_dwo_in_dwp): Tweak comments.
2812 (read_str_index): Tweak comment. Record dwarf form name in static
2813 local.
2814
3736004f
PA
28152013-09-27 Pedro Alves <palves@redhat.com>
2816
2817 * remote.h (REMOTE_SYSROOT_PREFIX): New define.
2818 (remote_filename_p): Add comment.
2819 * remote.c (remote_filename_p): Adjust to use
2820 REMOTE_SYSROOT_PREFIX.
2821 * solib.c (solib_find): When deciding whether we need to add a
2822 directory separator, check whether the sysroot is "remote:"
2823 instead of checking whether the patch has a drive spec. Add
2824 comments.
2825
5b5596ff
PA
28262013-09-27 Pedro Alves <palves@redhat.com>
2827
2828 * remote.c (struct stop_reply) <solibs_changed, replay_event>:
2829 Delete fields.
2830 (remote_parse_stop_reply): Adjust, setting event->ws.kind
2831 directly.
2832
b5eef7aa
JK
28332013-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2834
2835 Fix set debug frame output.
2836 * frame.c (fprint_frame_type): Add TAILCALL_FRAME entry. Move
2837 SENTINEL_FRAME entry lower to match enum frame_type order.
2838
5b856f36
PM
28392013-09-26 Pierre Muller <muller@sourceware.org>
2840
2841 Replace constant values 8 to 15 by AMD64_R8_REGNUM to
2842 AMD64_R15_REGNUM when a register index is expected.
2843 * amd64-windows-tdep.c (amd64_windows_dummy_call_integer_regs):
2844 Substitute in array.
2845 * amd64-tdep.c (amd64_dwarf_regmap): Ditto.
2846 (amd64_push_arguments): Substitute in integer_regnum array.
2847
ade7ed9e
DE
28482013-09-25 Doug Evans <dje@google.com>
2849
d3e81981
DE
2850 * objfiles.c (allocate_objfile): Move comment to better place.
2851
8fb8eb5c
DE
2852 New option "set debug symfile on".
2853 * NEWS: Mention "set debug symfile".
2854 * Makefile.in (SFILES): Add symfile-debug.c.
2855 (COMMON_OBS): Add symfile-debug.o.
2856 * elfread.c (elf_symfile_read): Use objfile_set_sym_fns to set the
2857 objfile's symbol functions.
2858 * objfiles.h (objfile_set_sym_fns): Declare.
2859 * symfile-debug.c: New file.
2860 * symfile.c (syms_from_objfile_1): Use objfile_set_sym_fns to set the
2861 objfile's symbol functions.
2862 (reread_symbols): Ditto.
2863
c256e171
DE
2864 * symfile.h (struct sym_fns): Delete member "sym_flavour".
2865 All uses updated.
2866 (add_symtab_fns): Update prototype.
2867 * symfile.c (sym_fns_ptr): Delete. Replace with ...
2868 (registered_sym_fns): ... this.
2869 (symtab_fns): Update.
2870 (add_symtab_fns): New arg "flavour". All callers updated.
2871 (find_sym_fns): Rewrite to use new sym_fns registry.
2872
f56ce883
DE
2873 * symfile.h (struct sym_fns): Add "objfile" argument to
2874 sym_read_linetable. All uses updated.
2875
20c681d1
DE
2876 * symtab.c (domain_name, search_domain_name): New functions.
2877 * symtab.h (domain_name, search_domain_name): Declare.
2878
ade7ed9e
DE
2879 * symfile.h (struct quick_symbol_functions): Reorg arg list of
2880 map_matching_symbols so objfile is first. All uses updated.
2881 * dwarf2read.c (dw2_map_matching_symbols): Update signature.
2882 * psymtab.c (map_matching_symbols_psymtab): Update signature.
2883
7d760051
UW
28842013-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
2885
2886 PR shlibs/8882
2887 * solib-svr4.c (svr4_read_so_list): Skip the vDSO when reading
2888 link map entries.
2889
020f7036
DE
28902013-09-24 Doug Evans <dje@google.com>
2891
2892 * objfiles.c (free_objfile): Move comment.
2893
598402f0
JB
28942013-09-24 Joel Brobecker <brobecker@adacore.com>
2895
2896 * ada-exp.y (string_to_operator): Delete.
2897 (dummy_string_to_ada_operator): Delete.
2898
bf4d6c1c
JB
28992013-09-24 Joel Brobecker <brobecker@adacore.com>
2900
2901 Revert:
2902 * i386-tdep.h (enum amd64_reg_class): New, moved here from
2903 amd64-tdep.c.
2904 (struct gdbarch_tdep): Add fields call_dummy_num_integer_regs,
2905 call_dummy_integer_regs, and classify.
2906 * amd64-tdep.h (amd64_classify): Add declaration.
2907 * amd64-tdep.c (amd64_dummy_call_integer_regs): New static constant.
2908 (amd64_reg_class): Delete, moved to i386-tdep.h.
2909 (amd64_classify): Make non-static. Move declaration to amd64-tdep.h.
2910 Replace call to amd64_classify by call to tdep->classify.
2911 (amd64_push_arguments): Get the list of registers to use for
2912 passing integer parameters from the gdbarch tdep structure,
2913 rather than using a hardcoded one. Replace calls to amd64_classify
2914 by calls to tdep->classify.
2915 (amd64_push_dummy_call): Get the register number used for
2916 the "hidden" argument from tdep->call_dummy_integer_regs.
2917 (amd64_init_abi): Initialize tdep->call_dummy_num_integer_regs
2918 and tdep->call_dummy_integer_regs. Set tdep->classify.
2919
849e9755
JB
29202013-09-24 Joel Brobecker <brobecker@adacore.com>
2921
2922 Revert:
2923 * i386-tdep.h (gdbarch_tdep): Add field memory_args_by_pointer.
2924 * amd64-tdep.c (amd64_push_arguments): Add handling of architectures
2925 where tdep->memory_args_by_pointer is non-zero.
2926
c1459fd6
JB
29272013-09-24 Joel Brobecker <brobecker@adacore.com>
2928
2929 Revert:
2930 * i386-tdep.h (struct gdbarch_tdep): Add new field
2931 integer_param_regs_saved_in_caller_frame.
2932 * amd64-tdep.c (amd64_push_dummy_call): Allocate some memory on
2933 stack if tdep->integer_param_regs_saved_in_caller_frame is set.
2934
20c2e3e0
JB
29352013-09-24 Joel Brobecker <brobecker@adacore.com>
2936
874440b8 2937 * amd64-windows-tdep.c: #include "value.h"
20c2e3e0
JB
2938 (amd64_windows_classify): Delete.
2939 (amd64_windows_passed_by_integer_register)
2940 (amd64_windows_passed_by_xmm_register)
2941 (amd64_windows_passed_by_pointer)
2942 (amd64_windows_adjust_args_passed_by_pointer)
2943 (amd64_windows_store_arg_in_reg, amd64_windows_push_arguments)
2944 (amd64_windows_push_dummy_call): New functions.
2945 (amd64_windows_init_abi): Remove setting of
2946 tdep->call_dummy_num_integer_regs, tdep->call_dummy_integer_regs,
2947 tdep->classify, tdep->memory_args_by_pointer and
2948 tdep->integer_param_regs_saved_in_caller_frame.
2949 Add call to set_gdbarch_push_dummy_call.
2950
82bf32bc
JK
29512013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2952
2953 * dwarf2read.c (open_and_init_dwp_file): Try open_dwp_file also with
2954 objfile->original_name.
2955
24ba069a
JK
29562013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2957
2958 Pass down original filename for objfile.
2959 * coffread.c (coff_symfile_read): Update symbol_file_add_separate call.
2960 * elfread.c (elf_symfile_read): Likewise.
2961 * jit.c (jit_object_close_impl): Update allocate_objfile call, no
2962 longer set ORIGINAL_NAME.
2963 (jit_bfd_try_read_symtab): Update symbol_file_add_from_bfd call.
2964 * jv-lang.c (get_dynamics_objfile): Update allocate_objfile call.
2965 * machoread.c (macho_add_oso_symfile): Add parameter name. Update
2966 symbol_file_add_from_bfd call.
2967 (macho_symfile_read_all_oso): Update two macho_add_oso_symfile calls.
2968 (macho_check_dsym): Add parameter filenamep. Change function comment.
2969 Set *filenamep.
2970 (macho_symfile_read): New variable dsym_filename. Update
2971 macho_check_dsym call. Use it for symbol_file_add_separate.
2972 * objfiles.c (allocate_objfile): Add parameter name. New comment for
2973 it. Use it for objfile->original_name.
2974 (objfile_name): Return OBFD's filename, if available.
2975 * objfiles.h (allocate_objfile): Add new parameter name.
2976 * solib.c (solib_read_symbols): Update symbol_file_add_from_bfd call.
2977 * symfile-mem.c (symbol_file_add_from_memory): Update
2978 symbol_file_add_from_bfd call.
2979 * symfile.c (read_symbols): Update symbol_file_add_separate call, new
2980 comment for it.
2981 (symbol_file_add_with_addrs): New parameter name, add function comment
2982 for it. Remove variable name. Update allocate_objfile call.
2983 (symbol_file_add_separate): New parameter name, add function comment
2984 for it. Update symbol_file_add_with_addrs call.
2985 (symbol_file_add_from_bfd): New parameter name. Update
2986 symbol_file_add_with_addrs call.
2987 (symbol_file_add): Update symbol_file_add_from_bfd call.
2988 (reread_symbols): New variable original_name. Save
2989 objfile->original_name by it.
2990 * symfile.h (symbol_file_add_from_bfd, symbol_file_add_separate): Add
2991 second parameter.
2992
4262abfb
JK
29932013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2994
2995 Code cleanup: Add objfile_name accessor function.
2996 * ada-lang.c (is_known_support_routine): Use objfile_name.
2997 * auto-load.c (source_gdb_script_for_objfile)
2998 (auto_load_objfile_script): Likewise.
2999 * coffread.c (coff_symtab_read, read_one_sym): Likewise.
3000 * dbxread.c (dbx_symfile_read): Likewise.
3001 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
3002 * dwarf2loc.c (locexpr_describe_location_piece): Likewise.
3003 * dwarf2read.c (dwarf2_get_dwz_file, dwarf2_read_index)
3004 (dw2_symtab_iter_next, dw2_expand_symtabs_matching)
3005 (lookup_dwp_signatured_type, lookup_dwo_unit)
3006 (dwarf2_build_psymtabs_hard, scan_partial_symbols, process_queue)
3007 (fixup_go_packaging, process_imported_unit_die, dwarf2_physname)
3008 (read_import_statement, create_dwo_cu, open_and_init_dwp_file)
3009 (lookup_dwo_cutu, read_call_site_scope, dwarf2_ranges_read)
3010 (dwarf2_record_block_ranges, read_common_block, read_typedef)
3011 (read_subrange_type, load_partial_dies, read_partial_die)
3012 (read_addr_index_1, read_str_index, dwarf_decode_lines_1)
3013 (die_containing_type, build_error_marker_type, lookup_die_type)
3014 (follow_die_ref_or_sig, follow_die_ref, dwarf2_fetch_die_loc_sect_off)
3015 (dwarf2_fetch_constant_bytes, follow_die_sig, get_signatured_type)
3016 (get_DW_AT_signature_type, write_psymtabs_to_index)
3017 (save_gdb_index_command): Likewise.
3018 * elfread.c (find_separate_debug_file_by_buildid, elf_symfile_read):
3019 Likewise.
3020 * expprint.c (dump_subexp_body_standard): Likewise.
3021 * gdbtypes.c (type_name_no_tag_or_error): Likewise.
3022 * jit.c (jit_object_close_impl): Use the objfile field name renamed to
3023 original_name.
3024 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New variable
3025 obj_name, use objfile_name for it, use the variable.
3026 (try_thread_db_load_from_pdir, has_libpthread, thread_db_new_objfile):
3027 Use objfile_name.
3028 * machoread.c (macho_symtab_read, macho_check_dsym)
3029 (macho_symfile_relocate): Likewise.
3030 * maint.c (maintenance_translate_address): Likewise.
3031 * minidebug.c (find_separate_debug_file_in_section): Likewise.
3032 * minsyms.c (install_minimal_symbols): Likewise.
3033 * objfiles.c (allocate_objfile): Use the objfile field name renamed to
3034 original_name.
3035 (filter_overlapping_sections): Use objfile_name.
3036 (objfile_name): New function.
3037 * objfiles.h (struct objfile): Rename field name to original_name.
3038 (objfile_name): New prototype.
3039 * printcmd.c (sym_info, address_info): Use objfile_name.
3040 * probe.c (parse_probes, collect_probes, compare_probes)
3041 (info_probes_for_ops): Likewise.
3042 * progspace.c (clone_program_space): Likewise.
3043 * psymtab.c (require_partial_symbols, dump_psymtab, allocate_psymtab)
3044 (maintenance_info_psymtabs): Likewise.
3045 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
3046 (source_section_scripts): Likewise.
3047 * python/py-objfile.c (objfpy_get_filename): Likewise.
3048 * python/py-progspace.c (pspy_get_filename): Likewise.
3049 * solib-aix.c (solib_aix_get_toc_value): Likewise.
3050 * solib-som.c (match_main, som_solib_section_offsets): Likewise.
3051 * solib.c (solib_read_symbols): Likewise.
3052 * stabsread.c (scan_file_globals): Likewise.
3053 * stap-probe.c (handle_stap_probe): Likewise.
3054 * symfile.c (symbol_file_clear, separate_debug_file_exists)
3055 (find_separate_debug_file_by_debuglink): Likewise.
3056 (reread_symbols): Likewise. Use the objfile field name renamed to
3057 original_name.
3058 (allocate_symtab): Use objfile_name.
3059 * symmisc.c (print_symbol_bcache_statistics, print_objfile_statistics)
3060 (dump_objfile, dump_msymbols, dump_symtab_1)
3061 (maintenance_print_msymbols, maintenance_print_objfiles)
3062 (maintenance_info_symtabs, maintenance_check_symtabs): Likewise.
3063 * target.c (target_translate_tls_address, target_info): Likewise.
3064 * xcoffread.c (xcoff_initial_scan): Make variable name const. Use
3065 objfile_name.
3066
4721dc18
JK
30672013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3068
3069 Code cleanup.
3070 * probe.c (parse_probes): Rename variable objfile_name to
3071 objfile_namestr.
3072
a61d6db8
JK
30732013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3074
3075 Remove solib-sunos.c.
3076 * Makefile.in (ALLDEPFILES): Remove solib-sunos.c.
3077 * config/m68k/obsd.mh (NATDEPFILES): Remove solib-sunos.o.
3078 * objfiles.c (rt_common_objfile): Remove.
3079 (free_objfile): Remove rt_common_objfile comparison.
3080 * objfiles.h (rt_common_objfile): Remove.
3081 * solib-sunos.c: Remove.
3082 * symfile.c (reread_symbols): Remove solib-sunos.c comment.
3083
2659903b
JK
30842013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3085
3086 Remove a.out NetBSD and OpenBSD hosts.
3087 * NEWS (Removed native configurations): New.
3088 * config/arm/nbsdaout.mh: Remove.
3089 * config/i386/nbsdaout.mh: Remove.
3090 * config/i386/obsdaout.mh: Remove.
3091 * config/m68k/nbsdaout.mh: Remove.
3092 * config/sparc/nbsdaout.mh: Remove.
3093 * config/vax/nbsdaout.mh: Remove.
3094 * configure.host (arm*-*-netbsd*, i[34567]86-*-netbsd*)
3095 (i[34567]86-*-openbsd[0-2].*, i[34567]86-*-openbsd3.[0-3])
3096 (m68*-*-netbsd*, sparc-*-netbsd*, vax-*-netbsd*): Add them to obsolete
3097 error.
3098 (arm*-*-netbsd*, i[34567]86-*-netbsd*, i[34567]86-*-openbsd[0-2].*)
3099 (i[34567]86-*-openbsd3.[0-3], m68*-*-netbsd*, sparc-*-netbsdaout*)
3100 (sparc-*-netbsd*, vax-*-netbsd*): Remove.
3101
f60e2d5c
TT
31022013-09-23 Tom Tromey <tromey@redhat.com>
3103
3104 * linespec.c (struct minsym_and_objfile): Remove.
3105 (minsym_and_objfile_d): Remove.
3106 (struct linespec, struct collect_info, linespec_parse_basic)
3107 (convert_linespec_to_sals, linespec_parser_delete, decode_objc)
3108 (compare_msymbols, find_method, find_function_symbols)
3109 (find_linespec_symbols, struct collect_minsyms, compare_msyms)
3110 (add_minsym, search_minsyms_for_name): Update.
3111
d3eaaf66
AB
31122013-09-23 Andrew Burgess <aburgess@broadcom.com>
3113
3114 * regcache.c: Add include of valprint.h.
3115 (dump_endian_bytes): Delete.
3116 (regcache_dump): Use print_hex_chars not dump_endian_bytes.
3117
2cc762b5
AB
31182013-09-23 Andrew Burgess <aburgess@broadcom.com>
3119
3120 * sh64-tdep.c (sh64_do_fp_register): Use print_hex_chars.
3121
96181529
PA
31222013-09-19 Pedro Alves <palves@redhat.com>
3123
3124 * breakpoint.c (remove_threaded_breakpoints): Skip non-user
3125 breakpoints.
3126
9b3f3ee6
TS
31272013-09-19 Pedro Alves <palves@redhat.com>
3128 Thomas Schwinge <thomas@codesourcery.com>
3129 Yue Lu <hacklu.newborn@gmail.com>
3130
3131 * gnu-nat.c (gnu_read_inferior, gnu_write_inferior): Make static.
3132 Take a gdb_byte pointer instead of a char pointer.
3133
3134 * gnu-nat.c (gnu_xfer_memory): Adjust interface as
3135 gnu_xfer_partial helper.
3136 (gnu_xfer_partial): New function.
3137 (gnu_target): Don't install a deprecated_xfer_memory hook.
3138 Install a to_xfer_partial hook.
3139
69150c3d
JK
31402013-09-19 Jan Kratochvil <jan.kratochvil@redhat.com>
3141
3142 Constification.
3143 * main.c (captured_main): Replace catch_command_errors by
3144 catch_command_errors_const. Twice.
3145 * symfile.c (symbol_file_add_main_1): Make args parameter const.
3146 (symbol_file_add): Make name parameter const.
3147 (symbol_file_add_main, symbol_file_add_main_1): Make args parameter const.
3148 (symfile_bfd_open): Make name parameter const, rename it to cname. Add
3149 variable name. Change their usage accordingly.
3150 * symfile.h (symbol_file_add, symfile_bfd_open): Make first parameter
3151 const.
3152 (symbol_file_add_main): Make args parameter const.
3153
086850b2
UW
31542013-09-18 Raunaq Bathija <raunaq12@in.ibm.com>
3155 Ulrich Weigand <uweigand@de.ibm.com>
3156
3157 * xcoffread.c (struct coff_symbol): Use CORE_ADDR as type
3158 of c_value member.
3159 (read_xcoff_symtab): Use CORE_ADDR as type of fcn_start_addr.
3160
ca08a94c 31612013-09-18 Pedro Alves <palves@redhat.com>
d255f61f 3162 Yue Lu <hacklu.newborn@gmail.com>
ca08a94c
PA
3163
3164 * gnu-nat.c (inf_validate_procs, gnu_wait, gnu_resume)
3165 (gnu_create_inferior)
3166 (gnu_attach, gnu_thread_alive, gnu_pid_to_str, cur_thread)
3167 (set_sig_thread_cmd): Use the lwpid field of ptids to
3168 store/extract thread ids instead of the tid field.
3169 * i386gnu-nat.c (gnu_fetch_registers): Adjust.
3170
e4c6a2c4
AB
31712013-09-18 Andrew Burgess <aburgess@broadcom.com>
3172
3173 * infcmd.c (default_print_one_register_info): Add detection of
3174 optimized out values.
3175 (default_print_registers_info): Switch to using
3176 get_frame_register_value.
3177
58c48e72
MM
31782013-09-18 Markus Metzger <markus.t.metzger@intel.com>
3179
3180 * infrun.c (handle_inferior_event): Check if we know the
3181 function start address before setting a resume breakpoint.
3182
c8d37639
PA
31832013-09-18 Pedro Alves <palves@redhat.com>
3184
3185 * gnu-nat.c (set_sig_thread_cmd): Compare the thread's ptid to
3186 minus_one_ptid instead of looking at the ptid's tid field and
3187 comparing that to -1.
3188
71926e28
AB
31892013-09-18 Andrew Burgess <aburgess@broadcom.com>
3190
3191 * main.h (get_gdb_program_name): Remove extra whitespace.
3192
c88a1531
AB
31932013-09-18 Andrew Burgess <aburgess@broadcom.com>
3194
3195 * main.h (get_gdb_program_name): Add declaration.
3196 * main.c (get_gdb_program_name): Add definition.
3197
4390d890
DE
31982013-09-17 Doug Evans <dje@google.com>
3199
3200 * dwarf2read.c: Move definitions of complaint functions to after
3201 forward declarations of local functions.
3202
49fa26b0
PA
32032013-09-17 Muhammad Waqas <mwaqas@codesourcery.com>
3204 Pedro Alves <palves@redhat.com>
3205
3206 PR gdb/11568
3207 * breakpoint.c (remove_threaded_breakpoints): New function.
3208 (_initialize_breakpoint): Attach remove_threaded_breakpoints
3209 as thread_exit observer.
3210
08d72866
PA
32112013-09-17 Pedro Alves <palves@redhat.com>
3212
3213 PR gdb/15911
3214 * ada-tasks.c (task_command_1): Adjust call to print_stack_frame.
3215 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd):
3216 * corelow.c (core_open):
3217 * frame.h (print_stack_frame, print_frame_info): New
3218 'set_current_sal' parameter.
3219 * infcmd.c (finish_command, kill_command): Adjust call to
3220 print_stack_frame.
3221 * inferior.c (inferior_command): Likewise.
3222 * infrun.c (normal_stop): Likewise.
3223 * linux-fork.c (linux_fork_context): Likewise.
3224 * record-full.c (record_full_goto_entry, record_full_restore):
3225 Likewise.
3226 * remote-mips.c (common_open): Likewise.
3227 * stack.c (print_stack_frame): New 'set_current_sal' parameter.
3228 Use it.
3229 (print_frame_info): New 'set_current_sal' parameter. Set the last
3230 displayed sal depending on the new paremeter instead of looking at
3231 print_what.
3232 (backtrace_command_1, select_and_print_frame, frame_command)
3233 (current_frame_command, up_command, down_command): Adjust call to
3234 print_stack_frame.
3235 * thread.c (print_thread_info, restore_selected_frame)
3236 (do_captured_thread_select): Adjust call to print_stack_frame.
3237 * tracepoint.c (tfind_1): Likewise.
3238 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
3239 (mi_cmd_stack_info_frame): Likewise.
3240 * mi/mi-interp.c (mi_on_normal_stop): Likewise.
3241 * mi/mi-main.c (mi_cmd_exec_return, mi_cmd_trace_find): Likewise.
3242
6bc305f5
SDJ
32432013-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
3244
3245 * value.c (isvoid_internal_fn): Replace "parameter" with
3246 "argument".
3247
0a7cfe2c
SS
32482013-09-16 Stan Shebs <stan@codesourcery.com>
3249
3250 * README: Update references to writing code for GDB.
3251 * configure.ac (build_warnings): Remove obsolete comment.
3252 * configure: Regenerate.
3253 * gdbarch.sh: Remove references to gdbint.texinfo.
3254 * gdbarch.h: Regenerate.
3255 * gdbtypes.c (objfile_type): Remove comments referencing internals
3256 manual and D10V.
3257
a280dbd1
SDJ
32582013-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
3259
3260 * NEWS: Mention new convenience function $_isvoid.
3261 * value.c (isvoid_internal_fn): New function.
3262 (_initialize_values): Add new convenience function $_isvoid.
3263
04a83fee
PM
32642013-09-16 Pierre Muller <muller@sourceware.org>
3265
3266 * arm-linux-tdep.c: Add "elf/common.h" header.
3267 Remove AT_HWCAP macro definintion as it is provided in
3268 added include file.
3269 * s390-tdep.c: Remove system header <elf.h>
3270 Add "elf/common.h" header for AT_HWCAP definition.
3271 (s390_core_read_description): Use correct CORE_ADDR
3272 for hwcap local variable used as third parameter
3273 of function target_auxv_search.
3274
88505fac
PM
32752013-09-14 Pierre Muller <muller@sourceware.org>
3276 Tom Tromey <tromey@redhat.com>
3277 Pedro Alves <palves@redhat.com>
3278
3279 * common/filestuff.c (gdb_fopen_cloexec): Do not try to use "e"
3280 mode if operating system doesn't know O_CLOEXEC.
3281
d3846e71
JK
32822013-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3283
3284 Code cleanup.
3285 * symfile.c (reread_symbols): Move variable obfd_filename to a more
3286 inner block.
3287
4ac33720
UW
32882013-09-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
3289
3290 * NEWS: Mention TDB support.
3291 * features/s390-tdb.xml: New file.
3292 * features/s390-te-linux64.xml: New file.
3293 * features/s390x-te-linux64.xml: New file.
3294 * features/Makefile (WHICH): Add new tdescs above.
3295 (s390-te-linux64-expedite): Set.
3296 (s390x-te-linux64-expedite): Set.
3297 * features/s390-te-linux64.c: New file (generated).
3298 * features/s390x-te-linux64.c: New file (generated).
3299 * regformats/s390-te-linux64.dat: New file (generated).
3300 * regformats/s390x-te-linux64.dat: New file (generated).
3301 * s390-tdep.h (HWCAP_S390_HIGH_GPRS): Define.
3302 (HWCAP_S390_TE): Likewise.
3303 (S390_TDB_DWORD0_REGNUM): Likewise.
3304 (S390_TDB_DWORD0_REGNUM): Likewise.
3305 (S390_TDB_ABORT_CODE_REGNUM): Likewise.
3306 (S390_TDB_CONFLICT_TOKEN_REGNUM): Likewise.
3307 (S390_TDB_ATIA_REGNUM): Likewise.
3308 (S390_TDB_R0_REGNUM): Likewise.
3309 (S390_TDB_R1_REGNUM): Likewise.
3310 (S390_TDB_R2_REGNUM): Likewise.
3311 (S390_TDB_R3_REGNUM): Likewise.
3312 (S390_TDB_R4_REGNUM): Likewise.
3313 (S390_TDB_R5_REGNUM): Likewise.
3314 (S390_TDB_R6_REGNUM): Likewise.
3315 (S390_TDB_R7_REGNUM): Likewise.
3316 (S390_TDB_R8_REGNUM): Likewise.
3317 (S390_TDB_R9_REGNUM): Likewise.
3318 (S390_TDB_R10_REGNUM): Likewise.
3319 (S390_TDB_R11_REGNUM): Likewise.
3320 (S390_TDB_R12_REGNUM): Likewise.
3321 (S390_TDB_R13_REGNUM): Likewise.
3322 (S390_TDB_R14_REGNUM): Likewise.
3323 (S390_TDB_R15_REGNUM): Likewise.
3324 (S390_NUM_REGS): Increase.
3325 (S390_IS_TDBREGSET_REGNUM): New macro.
3326 (s390_regmap_tdb): Declare.
3327 (s390_sizeof_tdbregset): Define.
3328 (tdesc_s390_te_linux64): Declare.
3329 (tdesc_s390x_te_linux64): Likewise.
3330 * s390-tdep.c: Add includes for "auxv.h", <elf.h>,
3331 "features/s390-te-linux64.c", and "features/s390x-te-linux64.c".
3332 (s390_regmap_tdb): New regmap.
3333 (s390_supply_tdb_regset): New function.
3334 (s390_tdb_regset): New regset.
3335 (s390_linux64v2_regset_sections): Add TDB regset to list.
3336 (s390x_linux64v2_regset_sections): Likewise.
3337 (s390_regset_from_core_section): Recognize TDB core note section.
3338 (s390_core_read_description): If HWCAP indicates TE support,
3339 select tdesc_s390_te_linux64 or tdesc_s390_s390x_te_linux64.
3340 (s390_gdbarch_init): Handle TDB regset.
3341 (_initialize_s390_tdep): Initialize new tdescs.
3342 * s390-nat.c (HWCAP_S390_HIGH_GPRS): Remove define.
3343 (have_regset_tdb): New variable.
3344 (s390_native_supply): Support register invalidation.
3345 (fetch_regset): Invalidate registers if ptrace yields ENODATA.
3346 (check_regset): Treat ENODATA as "regset exists".
3347 (s390_linux_fetch_inferior_registers): Add TDB.
3348 (s390_read_description): Check for TDB existence and select
3349 appropriate tdesc.
3350 * gdbserver/Makefile.in (clean): Add removal of new makefile
3351 targets.
3352 (s390-te-linux64.c): New makefile target.
3353 (s390x-te-linux64.c): Likewise.
3354 * gdbserver/configure.srv (srv_regobj): Append new objects
3355 s390-te-linux64.o and s390x-te-linux64.o.
3356 (srv_xmlfiles): Append new files s390-te-linux64.xml,
3357 s390x-te-linux64.xml, and s390-tdb.xml.
3358 * gdbserver/linux-s390-low.c (init_registers_s390_te_linux64): New
3359 declaration.
3360 (tdesc_s390_te_linux64): Likewise.
3361 (init_registers_s390x_te_linux64): Likewise.
3362 (tdesc_s390x_te_linux64): Likewise.
3363 (s390_check_regset): Treat ENODATA as "regset exists".
3364 (s390_arch_setup): Add TDB regset support.
3365 (initialize_low_arch): Initialize registers for new tdescs.
3366
2ccd1468
UW
33672013-09-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
3368
3369 * s390-tdep.h (S390_IS_GREGSET_REGNUM): New macro.
3370 (S390_IS_FPREGSET_REGNUM): New macro.
3371 * s390-tdep.c (s390_dwarf_regmap): Make const.
3372 (regnum_is_gpr_full): New function for replacing repeated code.
3373 (s390_pseudo_register_name): Use it.
3374 (s390_pseudo_register_type): Likewise.
3375 (s390_pseudo_register_read): Likewise.
3376 (s390_pseudo_register_write): Likewise.
3377 (s390_unwind_pseudo_register): Likewise.
3378 (s390_regmap_gregset): New format for regmap.
3379 (s390x_regmap_gregset): Likewise.
3380 (s390_regmap_fpregset): Likewise.
3381 (s390_regmap_upper): Likewise.
3382 (s390_regmap_last_break): Likewise.
3383 (s390_regmap_system_call): Likewise.
3384 (s390_supply_regset): Adjust to new regmap format.
3385 (s390_collect_regset): Likewise.
3386 * s390-nat.c (s390_native_supply): Adjust to new regmap format.
3387 (s390_native_collect): Likewise.
3388 (supply_gregset): Likewise.
3389 (fill_gregset): Likewise.
3390 (supply_fpregset): Likewise.
3391 (fill_fpregset): Likewise.
3392 (fetch_regset): Likewise.
3393 (store_regset): Likewise.
3394 (s390_linux_fetch_inferior_registers): Likewise.
3395 (s390_linux_fetch_inferior_registers): Likewise.
3396
1aa4cd77
AP
33972013-09-12 Andrew Pinski <apinski@cavium.com>
3398
3399 * aarch64-linux-nat.c (aarch64_linux_set_debug_regs): Zero out regs.
3400
d91fab15
UW
34012013-09-10 Andreas Arnez <arnez@linux.vnet.ibm.com>
3402
3403 * config/s390/s390.mh (NATDEPFILES): Add linux-waitpid.o.
3404
5a5d8ead
AB
34052013-09-09 Andrew Burgess <aburgess@broadcom.com>
3406
3407 * top.c (quit_confirm): Remove use of deprecated_init_ui_hook.
3408
1385f66c
PA
34092013-09-06 Pedro Alves <palves@redhat.com>
3410
3411 * remote-sim.c (dump_mem, gdbsim_fetch_register)
3412 (gdbsim_store_register, gdbsim_kill, gdbsim_load)
3413 (gdbsim_create_inferior, gdbsim_open, gdbsim_close)
3414 (gdbsim_detach, gdbsim_resume_inferior, gdbsim_wait)
3415 (gdbsim_files_info, gdbsim_mourn_inferior): Send debug output to
3416 gdb_stdlog.
3417
146ec4db
PA
34182013-09-06 Pedro Alves <palves@redhat.com>
3419
3420 * remote-sim.c (dump_mem): Constify buf parameter.
3421 gdbsim_xfer_inferior_memory): Rename to ...
3422 (gdbsim_xfer_memory): ... this. Adjust interface as
3423 target_xfer_partial helper.
3424 (gdbsim_xfer_partial): New function.
3425 (init_gdbsim_ops): Don't install a deprecated_xfer_memory hook.
3426 Install a to_xfer_partial hook. Send output to gdb_stdlog.
3427
fcde0081
PA
34282013-09-06 Pedro Alves <palves@redhat.com>
3429
3430 * remote-sim.c (gdbsim_xfer_inferior_memory): Use
3431 host_address_to_string, and send debug output to gdb_stdlog.
3432
749c8b38
RW
34332013-09-06 Ricard Wanderlof <ricardw@axis.com>
3434
3435 * Makefile.in (ALL_TARGET_OBS): Add cris-linux-tdep.o.
3436 * configure.tgt: Add cris-linux-tdep.o and linux-tdep.o to
3437 gdb_target_obs for cris target.
3438 * cris-tdep.c (struct gdbarch_tdep): Move to cris-tdep.h.
3439 (cris_gdbarch_init): Move calls to
3440 set_gdbarch_fetch_tls_load_module_address and
3441 set_solib_svr4_fetch_link_map_offsets to cris-linux-tdep.c.
3442 Add call to gdbarch_init_osabi.
3443 * cris-linux-tdep.c: New file.
3444 * cris-tdep.h: New file.
3445
43df09d9
AB
34462013-09-06 Andrew Burgess <aburgess@broadcom.com>
3447
3448 * tui/tui-io.c (tui_initialize_io): Remove legacy comment referring
3449 to deprecated_init_ui_hook.
3450
4d09c5b4
AB
34512013-09-06 Andrew Burgess <aburgess@broadcom.com>
3452
3453 * cli/cli-interp.c (_initialize_cli_interp): Add a
3454 command_loop_proc to interp_procs.
3455 * event-top.c (cli_command_loop): Change signature to match
3456 interp_command_loop_ftype.
3457 * event-top.h (cli_command_loop): Same.
3458 * interps.c (interp_new): Require every interpreter to have a
3459 command_loop_proc.
3460 (current_interp_command_loop): Just call the command_loop_proc on
3461 the current interpreter.
3462 * tui/tui-interp.c (_initialize_tui_interp): Add a
3463 command_loop_proc to interp_procs.
3464
8eb3d7b6
RW
34652013-09-06 Ricard Wanderlof <ricardw@axis.com>
3466
3467 * cris-tdep.c (cris_gdbarch_init): Add call to
3468 get_gdbarch_fetch_tls_load_module_address.
3469
18b3c2f5
RW
34702013-09-06 Ricard Wanderlof <ricardw@axis.com>
3471
3472 * cris-tdep.c (cris_elf_greg_t): Rename from elf_greg_t.
3473 (cris_elf_gregset_t): Rename from elf_gregset_t.
3474 (crisv32_elf_gregset_t): Adjust.
3475 (cris_supply_gregset, fetch_core_registers): Adjust.
3476
dc8636ef
RW
34772013-09-06 Ricard Wanderlof <ricardw@axis.com>
3478
3479 * cris-tdep.c (elf_greg_t): Change typedef to unsigned char[4]
3480
257e6d53
AB
34812013-09-05 Andrew Burgess <aburgess@broadcom.com>
3482
1581d8a7 3483 * defs.h (deprecated_command_loop_hook): Remove, including
257e6d53 3484 references in comments.
1581d8a7 3485 * interps.c (current_interp_command_loop): No longer use
257e6d53
AB
3486 deprecated_command_loop_hook.
3487 (clear_interpreter_hooks): Remove deprecated_command_loop_hook
3488 setup.
1581d8a7 3489 * top.c (deprecated_command_loop_hook): Remove.
257e6d53 3490
7c33b57c
PA
34912013-09-05 Pedro Alves <palves@redhat.com>
3492
3493 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): 'dwarf_regnum'
3494 local is now int instead of ULONGEST. Print it with %d
3495 instead of paddress.
3496
9f8edbd5
TG
34972013-09-05 Tristan Gingold <gingold@adacore.com>
3498
3499 * MAINTAINERS: Remove avr maintainership.
3500
d5b495b4
PA
35012013-09-05 Pedro Alves <palves@redhat.com>
3502
3503 * findvar.c (value_of_register): Rework in terms of
3504 value_of_register_lazy.
3505
40b91786
MB
35062013-09-05 Muhammad Bilal <mbilal@codesourcery.com>
3507
3508 * symfile.c (add_symbol_file_command): Remove trailing
3509 whitespaces and blank line after comment.
3510
6eed1678
PA
35112013-09-05 Pedro Alves <palves@redhat.com>
3512
3513 * tui/tui-regs.c (tui_register_format): Don't look at the
3514 register's name here. Return string representing register
3515 value instead of storing it in the data element.
3516 (tui_get_register): Compare register string representations
3517 instead of register value states and contents.
3518
8eb6bda2
PA
35192013-09-05 Pedro Alves <palves@redhat.com>
3520
3521 PR tui/15933
3522 * tui/tui-regs.c (tui_show_registers): Show registers of the
3523 selected frame, not the current frame.
3524
48b1f08c
RW
35252013-09-05 Ricard Wanderlof <ricardw@axis.com>
3526
3527 * MAINTAINERS (Write After Approval): Add myself to the list.
3528
89e63ee4
DE
35292013-09-04 Doug Evans <dje@google.com>
3530
3531 * dwarf2read.c (queue_and_load_all_dwo_tus): New function.
3532 (queue_and_load_dwo_tu): New function.
3533 (lookup_dwo_signatured_type): Set per_cu.tu_read.
3534 (maybe_queue_comp_unit): Rename this_cu argument to dependent_cu.
3535 Make dependent_cu optional.
3536 (dw2_do_instantiate_symtab): If we just loaded a CU from a DWO,
3537 and an older .gdb_index is in use, queue and load all its TUs too.
3538
492c0ab7
JK
35392013-09-04 Jan Kratochvil <jan.kratochvil@redhat.com>
3540
3541 Code cleanup: Change OPF_DISABLE_REALPATH to OPF_RETURN_REALPATH.
3542 * cli/cli-cmds.c (find_and_open_script): Add OPF_RETURN_REALPATH to
3543 variable search_flags.
3544 * defs.h (OPF_DISABLE_REALPATH): Rename to ...
3545 (OPF_RETURN_REALPATH): ... here.
3546 * dwarf2read.c (try_open_dwop_file): Set OPF_RETURN_REALPATH for flags.
3547 * exec.c (exec_file_attach): Remove OPF_DISABLE_REALPATH from openp
3548 call. Twice.
3549 * nto-tdep.c (nto_find_and_open_solib): Add OPF_RETURN_REALPATH for
3550 openp call.
3551 * solib.c (solib_find): Likewise. Four times.
3552 * source.c (openp): Change OPF_DISABLE_REALPATH to OPF_RETURN_REALPATH
3553 in the function comment and for the realpath_fptr variable.
3554 (source_full_path_of): Add OPF_RETURN_REALPATH for openp call.
3555 (find_and_open_source): Likewise. Twice.
3556 * symfile.c (symfile_bfd_open): Likewise, also twice.
3557
23a44de8
DE
35582013-09-04 Doug Evans <dje@google.com>
3559
3560 * progspace.c (save_current_space_and_thread): Remove unnecessary
3561 call to save_current_inferior.
3562
47061676
AB
35632013-09-04 Andrew Burgess <aburgess@broadcom.com>
3564
3565 * sh64-tdep.c (sh64_do_register): Return after printing message
3566 about unavailable register contents.
3567
41dc8db8
MB
35682013-09-04 Muhammad Bilal <mbilal@codesourcery.com>
3569 Pedro Alves <palves@redhat.com>
3570
3571 * symfile.c (add_symbol_file_command): Error out on unknown
ef1bc9e7
AM
3572 option. Handle EXPECTING_SEC_ADDR/EXPECTING_SEC_NAME before '-'
3573 options and collapse into single conditional branch.
41dc8db8 3574
07107ca6
LM
35752013-09-03 Luis Machado <lgustavo@codesourcery.com>
3576
a7ea61cf 3577 * inf-child.c (inf_child_follow_fork): New parameter
07107ca6
LM
3578 detach_fork.
3579 * inf-ptrace.c (inf_ptrace_follow_fork): Likewise.
3580 * inf-ttrace.c (inf_ttrace_follow_fork): Likewise.
3581 * inferior.h (detach_fork): Remove.
3582 * infrun.c (detach_fork): Adjust comment and make it
3583 static.
3584 (follow_fork): Pass detach_fork parameter to
3585 target_follow_fork.
3586 * linux-nat.c (linux_child_follow_fork): New parameter
3587 detach_fork.
3588 * target.c (target_follow_fork): New parameter detach_fork.
3589 Pass detach_fork as parameter and print its value.
3590 * target.h (struct target_ops) <to_follow_fork>: New int
3591 parameter.
3592 (target_follow_fork): New parameter detach_fork.
3593
3bec2768
JB
35942013-09-03 Joel Brobecker <brobecker@adacore.com>
3595
3596 * solib-ia64-hpux.c (ia64_hpux_relocate_section_addresses):
3597 Replace sec->bfd by sec->the_bfd_section->owner.
3598
c01cbb3d
YQ
35992013-09-03 Yao Qi <yao@codesourcery.com>
3600
3601 * linux-tdep.c (linux_is_uclinux): New function. Code moved
3602 from linux_has_shared_address_space.
3603 (linux_has_shared_address_space): Call linux_is_uclinux.
3604 * linux-tdep.h (linux_is_uclinux): Declare.
3605 * m68klinux-tdep.c (m68k_linux_get_sigtramp_info): Call
3606 linux_is_uclinux.
3607
7b00db47
YQ
36082013-09-03 Yao Qi <yao@codesourcery.com>
3609
3610 * config/djgpp/fnchange.lst: Remove entry of
3611 i386-interix-nat.c and i386-interix-tdep.c.
3612 * configure.ac: Remove '*-*-interix*'.
3613 * configure: Re-generated.
3614 * defs.h (enum gdb_osabi): Remove GDB_OSABI_INTERIX.
3615 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Remove
3616 obsolete comments.
3617 * osabi.c (gdb_osabi_names): Remove "Interix".
3618
0f9741f2
YQ
36192013-09-03 Yao Qi <yao@codesourcery.com>
3620
3621 * arch-utils.c: Fix typo in the comment to gdbarch_update_p.
3622
1e038f67
MM
36232013-09-02 Markus Metzger <markus.t.metzger@intel.com>
3624
3625 * record.h (record_print_flag) <record_print_src_line,
3626 record_print_insn_range>: Rename into ...
3627 (record_print_flag) <record_print_src_line,
3628 record_print_insn_range>: ... this. Update all users.
3629
9e52adf9
PM
36302013-09-02 Pierre Muller <muller@sourceware.org>
3631
3632 * windows-nat.c (windows_xfer_memory): Handle ERROR_PARTIAL_COPY
3633 error code.
3634
a2388568
PM
36352013-09-02 Pierre Muller <muller@sourceware.org>
3636
3637 * windows-nat.c (windows_xfer_memory): Fix compilation failure
3638 by use of plongest function.
3639
9058cc3a
TG
36402013-09-02 Tristan Gingold <gingold@adacore.com>
3641
3642 * NEWS: Add entry mentioning support for native Windows x64
3643 SEH data.
3644
3645 * amd64-windows-tdep.c: #include "objfiles.h", "frame-unwind.h",
3646 "coff/internal.h", "coff/i386.h", "coff/pe.h" and "libcoff.h".
3647 (struct amd64_windows_frame_cache): New struct.
3648 (amd64_windows_w2gdb_regnum): New global.
3649 (pc_in_range, amd64_windows_frame_decode_epilogue)
3650 (amd64_windows_frame_decode_insns, amd64_windows_find_unwind_info)
3651 (amd64_windows_frame_cache, amd64_windows_frame_prev_register)
3652 (amd64_windows_frame_this_id): New functions.
3653 (amd64_windows_frame_unwind): New static global.
3654 (amd64_windows_skip_prologue): New function.
3655 (amd64_windows_init_abi): Call frame_unwind_prepend_unwinder
3656 with amd64_windows_frame_unwind. Call set_gdbarch_skip_prologue
3657 with amd64_windows_skip_prologue.
3658
3161820b 36592013-08-30 Joel Brobecker <brobecker@adacore.com>
3660
3661 GDB 7.6.1 released.
3662
02457c76
PA
36632013-08-30 Pedro Alves <palves@redhat.com>
3664
3665 * mi/mi-main.c (mi_cmd_trace_find): Use LOC_AND_ADDRESS instead of
3666 SRC_AND_LOC.
3667
e0162910
PA
36682013-08-30 Pedro Alves <palves@redhat.com>
3669
3670 * thread.c (restore_selected_frame): Use SRC_AND_LOC, and change
3671 warning text.
3672
6391ce51
PA
36732013-08-30 Pedro Alves <palves@redhat.com>
3674
3675 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd):
3676 Adjust arguments to print_stack_frame.
3677
d1da0587
PA
36782013-08-30 Pedro Alves <palves@redhat.com>
3679
3680 * ada-tasks.c (task_command_1): Write SRC_AND_LOC instead '1'.
3681
adfd8245
PA
36822013-08-30 Pedro Alves <palves@redhat.com>
3683
3684 * frame.h (show_and_print_stack_frame): Delete declaration.
3685
96d9056e
PM
36862013-08-30 Phil Muldoon <pmuldoon@redhat.com>
3687
3688 PR python/15461
96d9056e
PM
3689 * python/py-arch.c (ARCHPY_REQUIRE_VALID): New macro.
3690 (archpy_name): Check for valid architecture.
3691 (archpy_disassemble): Ditto.
3692
11cb8762
JB
36932013-08-29 Joel Brobecker <brobecker@adacore.com>
3694
3695 * rs6000-nat.c (rs6000_ptrace32): Cast "addr" to "uintptr_t"
3696 instead of "long long" in call to ptrace64.
3697
1af12a7d
AB
36982013-08-29 Andrew Burgess <aburgess@broadcom.com>
3699
3700 * mi/mi-interp.c (mi_command_loop): Change signature to match
3701 interp_command_loop_ftype.
3702 (mi1_command_loop): Remove.
3703 (mi2_command_loop): Remove.
3704 (mi3_command_loop): Remove.
3705 (mi_interpreter_resume): Remove setting of
3706 deprecated_command_loop_hook.
3707 (_initialize_mi_interp): Set mi_command_loop as the command loop
3708 callback.
3709
acc900c2
SA
37102013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
3711
3712 * valops.c (do_search_struct_field): Pass v2 instead of base_type to
3713 value_type.
3714
548b762d
SA
37152013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
3716
3717 * value.c (allocate_value_contents): Make static.
3718 * value.h (allocate_value_contents): Remove prototype.
3719
08039c9e
SA
37202013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
3721
3722 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use value_at_lazy instead
3723 of assembling value via allocate_value_lazy and attribute setter.
3724 * findvar.c (default_read_var_value): Use value_at_lazy instead of
3725 assembling value via allocate_value_lazy and attribute setter.
3726 * valops.c (do_search_struct_field): Use value_at_lazy instead of
3727 assembling value via allocate_value_lazy and attribute setter.
3728
314c7de9
SA
37292013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
3730
3731 * value.c (value_from_contents_and_address): Replace allocate_value and
3732 memcpy with value_from_contents.
3733
8f28f522
PM
37342013-08-29 Phil Muldoon <pmuldoon@redhat.com>
3735
3736 * python/py-framefilter.c (py_print_frame): Remove usage of
3737 PyString_AsString. Use python_string_to_host_string instead.
3738 Refactor function to work with a string as a new allocation
3739 instead of a pointer.
3740 (py_print_frame): Ditto.
3741 * python/lib/gdb/frames.py (return_list): Cain iterators together
3742 instead of adding them as a list.
3743 (_sort_list): Call return_list, and remove duplicate code.
3744 (execute_frame_filters): Convert iterator to a list with list().
3745 * python/lib/gdb/command/frame_filters.py
3746 (SetFrameFilterPriority._set_filter_priority): Convert priority
3747 attribute to an integer.
3748 * python/lib/gdb/FrameIterator.py (FrameIterator.next): Define
3749 wrapper function __next__.
3750 * python/lib/gdb/FrameDecorator.py: If basestring not defined,
3751 define as "str".
3752
8ee002df
PM
37532013-08-29 Phil Muldoon <pmuldoon@redhat.com>
3754
3755 PR python/15752
8ee002df
PM
3756 * python/py-framefilter.c (apply_frame_filter): Check
3757 gdb_python_initialized. Exit if the Python frame-filter code
3758 cannot be initialized.
3759
af4c453a
PM
37602013-08-29 Phil Muldoon <pmuldoon@redhat.com>
3761
3762 PR cli/15842
af4c453a
PM
3763 * top.c (print_gdb_version): Remove erroneous newline after help
3764 text.
3765
bf8793bb
YQ
37662013-08-29 Yao Qi <yao@codesourcery.com>
3767
3768 * varobj.c (install_dynamic_child): Remove trailing space.
3769 Add one blank line after variable declaration.
3770
1f0c4988
JK
37712013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3772
3773 PR gdb/15415
3774 * corefile.c (get_exec_file): Use exec_filename.
3775 * defs.h (OPF_DISABLE_REALPATH): New definition. Add new comment.
3776 * exec.c (exec_close): Free EXEC_FILENAME.
3777 (exec_file_attach): New variable canonical_pathname. Use
3778 OPF_DISABLE_REALPATH. Call gdb_realpath explicitly. Set
3779 EXEC_FILENAME.
3780 * exec.h (exec_filename): New.
3781 * inferior.c (print_inferior, inferior_command): Use
3782 PSPACE_EXEC_FILENAME.
3783 * mi/mi-main.c (print_one_inferior): Likewise.
3784 * progspace.c (clone_program_space, print_program_space): Likewise.
3785 * progspace.h (struct program_space): New field pspace_exec_filename.
3786 * source.c (openp): Describe OPF_DISABLE_REALPATH. New variable
3787 realpath_fptr, initialize it from OPF_DISABLE_REALPATH, use it.
3788
59ee9f94
WN
37892013-08-28 Will Newton <will.newton@linaro.org>
3790
3791 * common/linux-ptrace.c: Include stdint.h unconditionally.
3792
c8a2a419
JK
37932013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3794
3795 Code cleanup.
3796 * nto-tdep.c (nto_find_and_open_solib): Use OPF_TRY_CWD_FIRST.
3797
ffa4ac95
YQ
37982013-08-28 Yao Qi <yao@codesourcery.com>
3799 Pedro Alves <palves@redhat.com>
3800
3801 * event-top.c (gdb_setup_readline): Call stderr_fileopen
3802 instead of stdio_fileopen.
3803 * main.c (captured_main) [__MINGW32__]: Set stderr unbuffered.
3804 .Call stderr_fileopen instead of stdio_fileopen.
3805 * ui-file.c [__MINGW32__] (stderr_file_write): New function.
3806 [__MINGW32__] (stderr_file_fputs): New function.
3807 (stderr_fileopen): New function.
3808 * ui-file.h (stderr_fileopen): Declare.
3809
69d751e3
DE
38102013-08-27 Doug Evans <dje@google.com>
3811
3812 * dwarf2read.c (struct dwarf2_cu): Tweak comment.
3813 (struct dwarf2_per_cu_data): Ditto.
3814 (maybe_queue_comp_unit): Delete forward decl. Add comment.
3815 (process_imported_unit_die): Ditto.
3816 (follow_die_sig_1): Simplify assert.
3817
44f38867
PA
38182013-08-27 Pedro Alves <palves@redhat.com>
3819
3820 * windows-nat.c (windows_xfer_memory): Adjust prototype to follow
3821 xfer_partial's interface. Return TARGET_XFER_E_IO on error.
3822 (windows_xfer_partial): Defer TARGET_OBJECT_MEMORY handling to
3823 windows_xfer_memory directly.
3824 (init_windows_ops): Don't install a deprecated_xfer_memory method.
3825
d28d46b5
PA
38262013-08-27 Pedro Alves <palves@redhat.com>
3827
3828 * darwin-nat.c (darwin_xfer_memory): Delete.
3829 (_initialize_darwin_inferior): Don't install a
3830 deprecated_xfer_memory method.
3831
6211c335
YQ
38322013-08-27 Pedro Alves <pedro@codesourcery.com>
3833 Yao Qi <yao@codesourcery.com>
3834
3835 * mi/mi-cmd-stack.c (list_args_or_locals): Adjust prototype.
3836 (parse_no_frames_option): Remove.
3837 (mi_cmd_stack_list_locals): Handle --skip-unavailable.
3838 (mi_cmd_stack_list_args): Adjust.
3839 (mi_cmd_stack_list_variables): Handle --skip-unavailable.
3840 (list_arg_or_local): Add new parameter 'skip_unavailable'. Return
3841 early if SKIP_UNAVAILABLE is true and ARG->val is unavailable.
3842 Caller update.
3843 (list_args_or_locals): New parameter 'skip_unavailable'.
3844 Handle it.
3845 * valprint.c (scalar_type_p): Rename to ...
3846 (val_print_scalar_type_p): ... this. Make extern.
3847 (val_print, value_check_printable): Adjust.
3848 * valprint.h (val_print_scalar_type_p): Declare.
3849 * value.c (value_entirely_unavailable): New function.
3850 * value.h (value_entirely_unavailable): Declare.
3851
3852 * NEWS: Mention the new option "--skip-unavailable" to MI
3853 commands '-stack-list-locals', '-stack-list-arguments' and
3854 '-stack-list-variables'.
3855
242f1fd7
YQ
38562013-08-27 Yao Qi <yao@codesourcery.com>
3857
3858 * mi/mi-cmd-stack.c (parse_no_frames_option): Remove.
3859 (mi_cmd_stack_list_args): Use mi_getopt_silent to handle
3860 options.
3861 * mi/mi-getopt.c (mi_getopt): Remove.
3862 (mi_getopt_1): Renamed from mi_getopt. Add one parameter
3863 'error_on_unknown'.
3864 (mi_getopt): Call mi_getopt_1.
3865 (mi_getopt_silent): New.
3866 * mi/mi-getopt.h (mi_getopt_silent): Declare.
3867
260b681b
DE
38682013-08-26 Doug Evans <dje@google.com>
3869
779bd270
DE
3870 PR symtab/15885
3871 * dwarf2read.c (dw2_dump): Print some minimal information indicating
3872 .gdb_index is in use.
3873 * symfile.c (reread_symbols): Reset objfile->sf.
3874
52e260a3
DE
3875 * NEWS: Document "mt print objfiles" now takes optional regexp.
3876 * symmisc.c (maintenance_print_objfiles): Argument is now an optional
3877 regexp of objfiles to print.
3878 (_initialize_symmisc): Update doc string for "mt print objfiles".
3879
260b681b
DE
3880 * dwarf2read.c (write_psymtabs_to_index): Move error checks ahead of
3881 missing debug info checks.
3882
a85c52f2
UW
38832013-08-26 Raunaq Bathija <raunaq12@in.ibm.com>
3884 Ulrich Weigand <uweigand@de.ibm.com>
3885
3886 * xcoffread.c (arrange_linetable): Add fix to correctly handle
3887 line tables generated by XLC compiled binaries.
3888
4f00dda3
DE
38892013-08-23 Doug Evans <dje@google.com>
3890
db68bbae
DE
3891 * symmisc.c (dump_symtab): Delete prototype.
3892 (dump_msymbols, dump_objfile): Ditto.
3893 (maintenance_info_symtabs): Mark as dont_repeat.
3894 (_initialize_symmisc): Improve doc string for "mt info symtabs".
3895
4f00dda3
DE
3896 * elfread.c (elf_symfile_read): Move "Done reading minimal symbols"
3897 debugging printf to better location.
3898
23d577b0
PA
38992013-08-23 Pedro Alves <palves@redhat.com>
3900
3901 * target.c (target_read_live_memory): Change type of 'ret' local
3902 to LONGEST.
3903
00d84524
PA
39042013-08-23 Pedro Alves <palves@redhat.com>
3905
3906 * remote.c (remote_write_bytes_aux, remote_write_bytes)
3907 (remote_read_bytes): Change return type to LONGEST, and adjust to
3908 return a target_xfer_error on error.
3909 (remote_xfer_memory): Delete.
3910 (remote_flash_write): Change type of 'ret' local to LONGEST.
3911 (remote_xfer_partial, remote_xfer_partial): Adjust.
3912 (init_remote_ops): Don't install a deprecated_xfer_memory hook.
3913
1ed3ee94
PM
39142013-08-23 Pierre Muller <muller@sourceware.org>
3915
3916 ARI fix: Push # directives to start of line.
3917 * rs6000-nat.c (rs6000_ptrace32, rs6000_ptrace64): Rule applied.
3918
9eaabc75
MW
39192013-08-12 Muhammad Waqas <mwaqas@codesourcery.com>
3920
3921 PR gdb/15501
3922 * breakpoint.c (enable_command, disable_command): Iterate over
3923 all specified breakpoint locations.
3924
101158d9
LM
39252013-08-22 Luis Machado <lgustavo@codesourcery.com>
3926
3927 * common/linux-ptrace.c (linux_fork_to_function): Push #
3928 directives to the start of the line.
3929 (linux_check_ptrace_features): Fix warning message to use
3930 the "_" markup.
3931
96d7229d
LM
39322013-08-22 Luis Machado <lgustavo@codesourcery.com>
3933
3934 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-nat.h and
3935 nat/linux-waitpid.h.
3936 (linux-waitpid.o): New object file rule.
3937 * common/linux-ptrace.c: Include nat/linux-waitpid.h.
3938 (current_ptrace_options): Moved from linux-nat.c.
3939 (linux_ptrace_test_ret_to_nx): Use type casts for ptrace
3940 parameters.
3941 (linux_fork_to_function): New function.
3942 (linux_grandchild_function): Likewise.
3943 (linux_child_function): Likewise.
3944 (linux_check_ptrace_features): New function, heavily
3945 based on linux-nat.c:linux_test_for_tracefork.
3946 (linux_enable_event_reporting): New function.
3947 (ptrace_supports_feature): Likewise.
3948 (linux_supports_tracefork): Likewise.
3949 (linux_supports_traceclone): Likewise.
3950 (linux_supports_tracevforkdone): Likewise.
3951 (linux_supports_tracesysgood): Likewise.
3952 * common/linux-ptrace.h (HAS_NOMMU): Moved from
3953 gdbserver/linux-low.c.
3954 (linux_enable_event_reporting): New declaration.
3955 (linux_supports_tracefork): Likewise.
3956 (linux_supports_traceclone): Likewise.
3957 (linux_supports_tracevforkdone): Likewise.
3958 (linux_supports_tracesysgood): Likewise.
3959 * config.in (PTRACE_TYPE_ARG4): Regenerate.
3960 * config/aarch64/linux.mh (NATDEPFILES): Add linux-waitpid.o.
3961 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
3962 * config/arm/linux.mh (NATDEPFILES): Likewise.
3963 * config/i386/linux.mh (NATDEPFILES): Likewise.
3964 * config/i386/linux64.mh (NATDEPFILES): Likewise.
3965 * config/ia64/linux.mh (NATDEPFILES): Likewise.
3966 * config/m32r/linux.mh (NATDEPFILES): Likewise.
3967 * config/m68k/linux.mh (NATDEPFILES): Likewise.
3968 * config/mips/linux.mh (NATDEPFILES): Likewise.
3969 * config/pa/linux.mh (NATDEPFILES): Likewise..
3970 * config/powerpc/linux.mh (NATDEPFILES): Likewise..
3971 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
3972 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
3973 * config/sparc/linux.mh (NATDEPFILES): Likewise.
3974 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
3975 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
3976 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
3977 * configure.ac (AC_CACHE_CHECK): Add void * to the list of
3978 ptrace's 4th argument's types.
3979 Check the type of PTRACE_TYPE_ARG4.
3980 * configure: Regenerate.
3981 * linux-nat.c: Include nat/linux-nat.h and nat/linux-waitpid.h.
3982 (SYSCALL_SIGTRAP): Moved to nat/linux-nat.h.
3983 (linux_supports_tracefork_flag): Remove.
3984 (linux_supports_tracesysgood_flag): Likewise.
3985 (linux_supports_tracevforkdone_flag): Likewise.
3986 (current_ptrace_options): Moved to
3987 common/linux-ptrace.c.
3988 (linux_tracefork_child): Remove.
3989 (my_waitpid): Remove.
3990 (linux_test_for_tracefork): Renamed to
3991 linux_check_ptrace_features and moved to common/linux-ptrace.c.
3992 (linux_test_for_tracesysgood): Remove.
3993 (linux_supports_tracesysgood): Remove.
3994 (linux_supports_tracefork): Remove.
3995 (linux_supports_tracevforkdone): Remove.
3996 (linux_enable_tracesysgood): Remove.
3997 (linux_enable_event_reporting): Remove.
3998 (linux_init_ptrace): New function.
3999 (linux_child_post_attach): Call linux_init_ptrace.
4000 (linux_child_post_startup_inferior): Call linux_init_ptrace.
4001 (linux_child_follow_fork): Call linux_supports_tracefork
4002 and linux_supports_tracevforkdone.
4003 (linux_child_insert_fork_catchpoint): Call
4004 linux_supports_tracefork.
4005 (linux_child_insert_vfork_catchpoint): Likewise.
4006 (linux_child_set_syscall_catchpoint): Call
4007 linux_supports_tracesysgood.
4008 (lin_lwp_attach_lwp): Call linux_supports_tracefork.
4009 * nat/linux-nat.h: New file.
4010 * nat/linux-waitpid.c: New file.
4011 * nat/linux-waitpid.h: New file.
4012
9f948660
SDJ
40132013-08-22 Samuel Bronson <naesten@gmail.com>
4014
4015 ARM Linux support for `catch syscall'.
4016 * syscalls/arm-linux.py: New file.
4017 * syscalls/arm-linux.xml: Likewise.
4018 * arm-linux-tdep.c (arm_linux_get_syscall_number): New function.
4019 (arm_linux_init_abi): Register the new function and syscall xml file.
4020 * data-directory/Makefile.in: Install the new syscall xml file.
4021 * NEWS: Brag about this.
4022
6be7b56e
PA
40232013-08-22 Pedro Alves <palves@redhat.com>
4024
4025 PR gdb/15871
4026 * corefile.c (target_xfer_memory_error): New function.
4027 (memory_error): Defer EIO to target_memory_error.
4028 (read_memory): Use target_xfer_partial, and handle finer-grained
4029 target xfer errors.
4030 * target.c (target_xfer_error_to_string): New function.
4031 (memory_xfer_partial_1): If memory is known to be
4032 unavailable, return TARGET_XFER_E_UNAVAILABLE instead of -1.
4033 (target_xfer_partial): Make extern.
4034 * target.h (enum target_xfer_error): New enum.
4035 (target_xfer_error_to_string): Declare function.
4036 (target_xfer_partial): Declare function.
4037 (struct target_ops) <xfer_partial>: Adjust describing comment.
4038
bcbec14e
AM
40392013-08-22 Alan Modra <amodra@gmail.com>
4040
4041 * configure.host: Support powerpc64le-linux and powerpcle-linux hosts.
4042 * configure.tgt: Likewise as targets.
4043
fc474241
DE
40442013-08-20 Doug Evans <dje@google.com>
4045
4046 * buildsym.c (subfile_stack): Move here from buildsym.h.
4047 (pending_macros): Ditto.
4048 (get_macro_table): New function.
4049 (buildsym_init): Initialize subfile_stack.
4050 * coffread.c (type_vector,type_vector_length): Moved here from
4051 buildsym.h.
4052 (INITIAL_TYPE_VECTOR_LENGTH): Ditto.
4053 (coff_symtab_read): Use it.
4054 * dbxread.c (read_ofile_symtab): Delete init of subfile_stack.
4055 * dwarf2read.c (macro_start_file): Replace uses of pending_macros
4056 with call to get_macro_table.
4057 * stabsread.c (type_vector,type_vector_length): Moved here from
4058 buildsym.h.
4059 (INITIAL_TYPE_VECTOR_LENGTH): Ditto.
4060 * buildsym.h (get_macro_table): Declare.
4061
bec71544
TT
40622013-08-20 Tom Tromey <tromey@redhat.com>
4063
4064 * dbxread.c (record_minimal_symbol): Make 'name' argument const.
4065 Update.
4066 (read_dbx_dynamic_symtab): Make 'name' const. Remove casts.
4067
0002ad5f
DE
40682013-08-20 Doug Evans <dje@google.com>
4069
4070 * blockframe.c: Remove #include "psymtab.h".
4071 * cp-support.c: Ditto.
4072 * source.c: Ditto.
4073 * stack.c: Ditto.
4074
df302446
TT
40752013-08-20 Tom Tromey <tromey@redhat.com>
4076
4077 PR python/15816:
4078 * exceptions.h (return_mask): Now an enum.
4079 (RETURN_MASK_QUIT, RETURN_MASK_ERROR, RETURN_MASK_ALL): Now
4080 enum constants.
4081
df6d5441
TT
40822013-08-20 Tom Tromey <tromey@redhat.com>
4083
4084 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Use
4085 get_objfile_arch.
4086 * elfread.c (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
4087 (elf_gnu_ifunc_resolve_by_got): Use get_objfile_arch.
4088 * jit.c (jit_object_close_impl): Update.
4089 * jv-lang.c (get_dynamics_objfile): Update.
4090 * linespec.c (add_minsym): Use get_dynamics_objfile.
4091 * objfiles.c (get_objfile_bfd_data): Initialize 'gdbarch' field.
4092 (allocate_objfile): Don't initialize 'gdbarch' field.
4093 (get_objfile_arch): Update.
4094 * objfiles.h (struct objfile_per_bfd_storage) <gdbarch>: New field,
4095 moved from...
4096 (struct objfile) <gdbarch>: ... here. Remove.
4097 * stap-probe.c (stap_can_evaluate_probe_arguments): Use
4098 get_objfile_arch.
4099 * symfile.c (init_entry_point_info): Use get_objfile_arch.
4100
f5aee5ee
AM
41012013-08-20 Alan Modra <amodra@gmail.com>
4102
4103 * doublest.c (convert_floatformat_to_doublest): Use fmt->split_half
4104 for IBM long double nan and inf.
4105 (floatformat_is_negative, floatformat_classify,
4106 floatformat_mantissa): Similarly.
4107 (floatformat_ieee_single, floatformat_ieee_double,
4108 floatformat_ieee_quad, floatformat_arm_ext,
4109 floatformat_ia64_spill): Delete unused vars.
4110 (_initialize_doublest): Delete unused function.
4111 * gdbtypes.c (floatformats_ibm_long_double): Use new big- and
4112 little-endian variants of floatformat_ibm_long_double.
4113
33b60d58 41142013-08-19 Luis Machado <lgustavo@codesourcery.com>
f5aee5ee 4115
33b60d58
LM
4116 * Makefile.in (SFILES): Remove common/target-common.c and
4117 add target/waitstatus.c.
4118 (HFILES_NO_SRCDIR): Remove common/target-common.h and add
4119 target/resume.h, target/wait.h and target/waitstatus.h.
4120 (COMMON_OBS): Remove target-common.o and add
4121 waitstatus.o.
4122 (target-common.o): Remove.
4123 (waitstatus.o): New target object file.
4124 * common/target-common.c: Move contents to
4125 target/waitstatus.c and remove.
4126 * common/target-common.h: Move contents to other files and
4127 remove.
4128 (enum resume_kind: Move to target/resume.h.
4129 (TARGET_WNOHANG): Move to target/wait.h.
4130 (enum target_waitkind): Move to target/waitstatus.h.
4131 (struct target_waitstatus): Likewise.
4132 * target.h: Do not include target-common.h and
4133 include target/resume.h, target/wait.h and
4134 target/waitstatus.h.
4135 * target/resume.h: New file.
4136 * target/wait.h: New file.
4137 * target/waitstatus.h: New file.
4138 * target/waitstatus.c: New file.
4139
12696c10
PA
41402013-08-19 Pedro Alves <palves@redhat.com>
4141
4142 * linux-nat.c (linux_test_for_tracefork)
4143 (linux_test_for_tracesysgood, linux_child_follow_fork)
4144 (lin_lwp_attach_lwp, linux_nat_resume): Don't block child signals.
4145 (linux_nat_wait_1): Extend comment.
4146 (linux_async_pipe): Add comment.
4147
ba89f962
KB
41482013-08-15 Kevin Buettner <kevinb@redhat.com>
4149
4150 * rl78-tdep.c (RL78_RAW_PC_REGNUM): New enum.
4151 (RL78_PC_REGNUM): Move to list of pseudo-register enums.
4152 (rl78_register_type, rl78_register_name, rl78_register_reggroup_p):
4153 Update to account for fact that PC is now a pseudo-register.
4154 (rl78_pseudo_register_write, rl78_pseudo_register_read): Add
4155 cases for RL78_PC_REGNUM.
4156
35ab155d
MB
41572013-08-15 Muhammad Bilal <mbilal@codesourcery.com>
4158
4159 PR cli/15841
4160 * top.c (quit_force): Skip writing history file
4161 if input is not from terminal.
4162
0d031856
TT
41632013-08-14 Tom Tromey <tromey@redhat.com>
4164
4165 * remote.c (struct remote_state) <echo_nextthread, nextthread,
4166 resultthreadlist>: New fields.
4167 (OPAQUETHREADBYTES, threadref, MAXTHREADLISTRESULTS): Move earlier.
4168 (remote_get_threadlist, remote_threadlist_iterator): Use
4169 new fields. Remove static variables.
4170
ee154bee
TT
41712013-08-14 Tom Tromey <tromey@redhat.com>
4172
4173 * remote.c (struct remote_state) <remote_stopped_by_watchpoint_p,
4174 remote_watch_data_address>: New fields.
4175 (remote_stopped_by_watchpoint_p, remote_watch_data_address): Remove.
4176 (process_stop_reply, remote_wait_as)
4177 (remote_check_watch_resources, remote_stopped_data_address): Update.
4178
88b496c3
TT
41792013-08-14 Tom Tromey <tromey@redhat.com>
4180
4181 * remote.c (struct remote_state) <async_client_callback,
4182 async_client_context>: New fields.
4183 (async_client_callback, async_client_context): Remove.
4184 (remote_async_serial_handler, remote_async): Update.
4185
2f65bcb7
TT
41862013-08-14 Tom Tromey <tromey@redhat.com>
4187
4188 * remote.c (sizeof_pkt): Remove.
4189 (remote_trace_find): Use rs->buf_size, not sizeof_pkt.
4190
b80fafe3
TT
41912013-08-14 Tom Tromey <tromey@redhat.com>
4192
4193 * remote.c (struct remote_state) <use_threadinfo_query,
4194 use_threadextra_query>: New fields.
4195 (remote_threads_info, remote_threads_extra_info)
4196 (remote_open_1): Update.
4197
8e88304f
TT
41982013-08-14 Tom Tromey <tromey@redhat.com>
4199
4200 * remote.c (struct remote_state) <finished_object,
4201 finished_annex, finished_offset>: New fields.
4202 (remote_read_qxfer): Use remote_state fields; remove static
4203 variables.
4204
280ceea3
TT
42052013-08-14 Tom Tromey <tromey@redhat.com>
4206
4207 * remote.c (struct remote_state) <last_sent_step>:
4208 New field.
4209 (last_sent_step): Remove.
4210 (remote_resume, remote_wait_as): Update.
4211
b73be471
TT
42122013-08-14 Tom Tromey <tromey@redhat.com>
4213
4214 * remote.c (struct remote_state) <last_sent_signal>:
4215 New field.
4216 (last_sent_signal): Remove.
4217 (new_remote_state, remote_resume, remote_wait_as): Update.
4218
5e4a05c4
TT
42192013-08-14 Tom Tromey <tromey@redhat.com>
4220
4221 * remote.c (struct remote_state) <last_program_signals_packet>:
4222 New field.
4223 (last_program_signals_packet): Remove.
4224 (remote_program_signals, remote_open_1): Update.
4225
747dc59d
TT
42262013-08-14 Tom Tromey <tromey@redhat.com>
4227
4228 * remote.c (struct remote_state) <last_pass_packet>:
4229 New field.
4230 (last_pass_packet): Remove.
4231 (remote_pass_signals, remote_open_1): Update.
4232
262e1174
TT
42332013-08-14 Tom Tromey <tromey@redhat.com>
4234
4235 * remote.c (struct remote_state) <remote_traceframe_number>:
4236 New field.
4237 (remote_traceframe_number): Remove.
4238 (new_remote_state, remote_open_1, set_remote_traceframe)
4239 (remote_trace_find): Update.
4240
47f8a51d
TT
42412013-08-14 Tom Tromey <tromey@redhat.com>
4242
4243 * remote.c (struct remote_state) <general_thread, continue_thread>:
4244 New fields.
4245 (general_thread, continue_thread): Remove.
4246 (record_currthread, set_thread, set_general_process)
4247 (remote_open_1, extended_remote_attach_1, remote_wait_as)
4248 (extended_remote_mourn_1): Update.
4249
5d93a237
TT
42502013-08-14 Tom Tromey <tromey@redhat.com>
4251
4252 * remote.c (struct remote_state) <remote_desc>: New field.
4253 (remote_desc): Remove.
4254 (remote_threads_info, remote_threads_extra_info, remote_close)
4255 (send_interrupt_sequence, remote_start_remote, remote_open_1)
4256 (readchar, remote_xfer_partial, remote_rcmd, packet_command)
4257 (remote_hostio_send_command, remote_file_put, remote_file_get)
4258 (remote_file_delete, remote_can_async_p, remote_is_async_p)
4259 (remote_async, remote_new_objfile, set_range_stepping): Update.
4260
cf792862
TT
42612013-08-14 Tom Tromey <tromey@redhat.com>
4262
4263 * remote.c (remote_state): Now a pointer.
4264 (get_remote_state_raw): Update.
4265 (new_remote_state): New function.
4266 (_initialize_remote): Use new_remote_state.
4267
dc473cfb
TT
42682013-08-14 Tom Tromey <tromey@redhat.com>
4269
4270 * remote.c (remote_protocol_features): Now const.
4271
85ec6ce7
TT
42722013-08-14 Tom Tromey <tromey@redhat.com>
4273
4274 * remote.c (crc32_table, crc32): Remove.
4275 (remote_verify_memory): Use xcrc32.
4276
73033f12
SDJ
42772013-08-13 Sergio Durigan Junior <sergiodj@redhat.com>
4278
4279 * value.h (create_internalvar_type_lazy): Adjust prototype
4280 declaration.
4281
5c30d39a
AB
42822013-08-13 Andrew Burgess <aburgess@broadcom.com>
4283
4284 * common/format.c (parse_format_string): Don't allow '#' flag for
4285 pointer arguments in format string.
4286
1a66331e
PM
42872013-08-13 Pierre Muller <muller@sourceware.org>
4288
fde605f3 4289 * utils.c (init_page_info): Only call tgetnum function
1a66331e
PM
4290 if rl_get_screen_size did not return useful values.
4291
b4013987
AA
42922013-08-12 Ali Anwar <ali_anwar@codesourcery.com>
4293
4294 PR breakpoints/15117
4295 * linespec.c (linespec_parse_basic): Check for convenience
4296 variable or history value while parsing.
4297
959b6a66
SDJ
42982013-08-12 Sergio Durigan Junior <sergiodj@redhat.com>
4299
4300 Revert implementation of gdbarch_gdb_signal_{to,from}_target for
4301 AVR.
4302 * avr-tdep.c: Remove include of "linux-tdep.h". Remove enum with
4303 different signals between the generic Linux kernel implementation
4304 and AVR's.
4305 (avr_linux_gdb_signal_from_target): Delete.
4306 (avr_linux_gdb_signal_to_target): Delete.
4307 (avr_gdbarch_init): Don't set gdbarch_gdb_signal_{to,from}_target.
4308
24a55014
DE
43092013-08-09 Doug Evans <dje@google.com>
4310
4311 * dwarf2read.c (create_addrmap_from_index): Ignore bad address table
4312 entries.
4313
eb14d406
SDJ
43142013-08-09 Sergio Durigan Junior <sergiodj@redhat.com>
4315
4316 * linux-tdep.c: Define enum with generic signal numbers.
4317 (linux_gdb_signal_from_target): New function.
4318 (linux_gdb_signal_to_target): Likewise.
4319 (linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
4320 methods to the functions above.
4321 * linux-tdep.h (linux_gdb_signal_from_target): New prototype.
4322 (linux_gdb_signal_to_target): Likewise.
4323 * alpha-linux-tdep.c: Define new enum with signals different
4324 from generic Linux kernel.
4325 (alpha_linux_gdb_signal_from_target): New function.
4326 (alpha_linux_gdb_signal_to_target): Likewise.
4327 (alpha_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
4328 with the functions mentioned above.
4329 * avr-tdep.c: Define enum with differences between Linux kernel
4330 and AVR signals.
4331 (avr_linux_gdb_signal_from_target): New function.
4332 (avr_linux_gdb_signal_to_target): Likewise.
4333 (avr_gdbarch_init): Set gdbarch_gdb_signal_{to,from}_target to
4334 the functions mentioned above.
4335 * sparc-linux-tdep.c: Define enum with differences between SPARC
4336 and generic Linux kernel signal numbers.
4337 (sparc32_linux_gdb_signal_from_target): New function.
4338 (sparc32_linux_gdb_signal_to_target): Likewise.
4339 (sparc32_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
4340 to the functions defined above.
4341 * xtensa-linux-tdep.c: Define enum with differences between
4342 Xtensa and Linux kernel generic signals.
4343 (xtensa_linux_gdb_signal_from_target): New function.
4344 (xtensa_linux_gdb_signal_to_target): Likewise.
4345 (xtensa_linux_init_abi): Set gdbarch_gdb_signal_to_target
4346 to the functions defined above.
4347 * mips-linux-tdep.c: Define enum with differences between
4348 signals in MIPS and Linux kernel generic ones.
4349 (mips_gdb_signal_to_target): New function.
4350 (mips_gdb_signal_from_target): Redefine to use new enum, handle
4351 only different signals from the Linux kernel generic.
4352 (mips_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
4353 the functions defined above.
4354 * mips-linux-tdep.h (enum mips_signals): Remove.
4355
156d08c8
PA
43562013-08-09 Pedro Alves <palves@redhat.com>
4357
4358 * avr-tdep.c (XMALLOC): Delete macro.
4359 * cli/cli-dump.c (XMALLOC): Delete macro.
4360
db229724
PA
43612013-08-09 Pedro Alves <palves@redhat.com>
4362
4363 * cli/cli-dump.c: Don't include cli/cli-dump.h.
4364 (scan_expression_with_cleanup, scan_filename_with_cleanup)
4365 (fopen_with_cleanup, add_dump_command): Make static.
4366 * cli/cli-dump.h: Delete file.
4367 * Makefile.in (HFILES_NO_SRCDIR): Remove reference to
4368 cli/cli-dump.h.
4369
3f12a589
PA
43702013-08-09 Pedro Alves <palves@redhat.com>
4371
4372 * tracepoint.c (tfile_start): Show tilde-expanded filename in
4373 error message.
4374
c718be47
PA
43752013-08-09 Pedro Alves <palves@redhat.com>
4376
156d08c8 4377 * breakpoint.c (save_breakpoints): Show tilde-expanded filename in
c718be47
PA
4378 error message.
4379
1e351ed1
PA
43802013-08-09 Pedro Alves <palves@redhat.com>
4381
4382 * gcore.c (create_gcore_bfd): Don't use tilde_expand here.
4383 (gcore_command): Use tilde_expand here, and when showing the
4384 filename to the user, show the expanded version.
4385
1ed8d800
YQ
43862013-08-09 Yao Qi <yao@codesourcery.com>
4387
4388 * stack.c (read_frame_arg): Set 'entryval_error' to NULL if
4389 'entryval' is set.
4390
47ecca85
PA
43912013-08-08 Azat Khuzhin <a3at.mail@gmail.com> (tiny change)
4392
4393 * gcore.c (create_gcore_bfd): Use tilde_expand.
4394
82a0a75f
YQ
43952013-08-08 Yao Qi <yao@codesourcery.com>
4396
4397 * frame.h (read_frame_local): Declare.
4398 * mi/mi-cmd-stack.c (list_args_or_locals): Call
4399 read_frame_local.
4400 * stack.c (read_frame_local): New.
4401
5c4aa40b
YQ
44022013-08-08 Yao Qi <yao@codesourcery.com>
4403
4404 * mi/mi-cmd-stack.c: Update comments to function
4405 list_args_or_locals.
4406
b93601f3
TT
44072013-08-07 Tom Tromey <tromey@redhat.com>
4408
4409 PR symtab/15028:
4410 * dwarf2read.c (struct process_psymtab_comp_unit_data): New.
4411 (process_psymtab_comp_unit_reader): Use it.
4412 (process_psymtab_comp_unit): Update. Add "pretend_language"
4413 argument.
4414 (dwarf2_build_psymtabs_hard): Update.
4415 (scan_partial_symbols): Pass CU's language to
4416 process_psymtab_comp_unit.
4417
fa760f46
TT
44182013-08-07 Tom Tromey <tromey@redhat.com>
4419
4420 * dwarf2read.c (dw2_get_primary_filename_reader): Remove.
4421 (dwarf2_gdb_index_functions): Update.
4422 * psymtab.c (find_symbol_file_from_partial): Remove.
4423 (psym_functions): Update.
4424 * symfile.h (struct quick_symbol_functions) <find_symbol_file>:
4425 Remove.
4426
bf6d8a91
TT
44272013-08-07 Tom Tromey <tromey@redhat.com>
4428
4429 * symfile.c (set_initial_language): Look up "main" symbol
4430 and use its language.
4431 * symtab.c (find_main_filename): Remove.
4432 * symtab.h (find_main_filename): Remove.
4433
f9125b6c
TT
44342013-08-07 Tom Tromey <tromey@redhat.com>
4435
4436 * dwarf2read.c (recursively_compute_inclusions): Add
4437 "immediate_parent" argument. Set symtab's "user" field
4438 if not set.
4439 (compute_symtab_includes): Update.
4440
fdbb204b
TT
44412013-08-07 Tom Tromey <tromey@redhat.com>
4442
4443 * linespec.c (convert_linespec_to_sals): Use maybe_add_address
4444 when adding label symbols.
4445
49de1690
UW
44462013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
4447 Ulrich Weigand <uweigand@de.ibm.com>
4448
4449 * configure.tgt (powerpc64-*-aix*): Match powerpc64 running aix.
4450 * configure.host (powerpc64-*-aix*): Likewise.
4451
b08ee99f
UW
44522013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
4453 Ulrich Weigand <uweigand@de.ibm.com>
4454
4455 * gdb_ptrace.h: Use ptrace64 instead of ptrace if HAVE_PTRACE64
4456 is defined.
4457 * rs6000-nat.c: Check for __ld_info64_ if compiling 64 BIT gdb.
4458 (rs6000_ptrace32): Call ptrace64 instead of ptrace if present.
4459 (rs6000_ptrace64): Call ptace64 instead of ptracex if present.
4460 * configure.ac: Check for ptrace64.
4461 * configure, config.in: Regenerate.
4462
fecf803e
UW
44632013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
4464 Ulrich Weigand <uweigand@de.ibm.com>
4465
4466 * aixthread.c: Call ptrace64 instead of ptracex if defined.
4467 Call ptrace64 instead of ptrace if defined.
4468 Add macro addr_ptr to take care of ptrace address argument.
4469 (pdc_read_regs): Likewise.
4470 (pdc_write_regs): Likewise.
4471 (aix_thread_resume): Likewise.
4472 (fetch_regs_kernel_thread): Likewise.
4473 (store_regs_kernel_thread): Likewise.
4474
3bb5e4a8
AB
44752013-08-07 Anton Blanchard <anton@samba.org>
4476
4477 * MAINTAINERS: Add myself to Write After Approval.
4478
12070676
TT
44792013-08-05 Tom Tromey <tromey@redhat.com>
4480
4481 * aix-thread.c (_initialize_aix_thread): Use
4482 complete_target_initialization.
4483 * bsd-uthread.c (_initialize_bsd_uthread): Use
4484 complete_target_initialization.
4485 * dec-thread.c (_initialize_dec_thread): Use
4486 complete_target_initialization.
4487 * ravenscar-thread.c (_initialize_ravenscar): Use
4488 complete_target_initialization.
4489 * sol-thread.c (_initialize_sol_thread): Use
4490 complete_target_initialization.
4491 * spu-multiarch.c (_initialize_spu_multiarch): Use
4492 complete_target_initialization.
4493
7c7b6655
TT
44942013-08-05 Tom Tromey <tromey@redhat.com>
4495
4496 * ada-exp.y (write_var_or_type): Use bound_minimal_symbol.
4497 * ada-lang.c (ada_lookup_simple_minsym): Return
4498 bound_minimal_symbol.
4499 * ada-lang.h (ada_lookup_simple_minsym): Update.
4500 * c-exp.y (variable): Use lookup_bound_minimal_symbol.
4501 * f-exp.y (variable): Use lookup_bound_minimal_symbol.
4502 * go-exp.y (variable): Use lookup_bound_minimal_symbol.
4503 * jv-exp.y (push_expression_name): Use lookup_bound_minimal_symbol.
4504 * m2-exp.y (variable): Use lookup_bound_minimal_symbol.
4505 * minsyms.c (msymbol_objfile): Remove.
4506 (lookup_minimal_symbol_internal): New function, from
4507 lookup_minimal_symbol.
4508 (lookup_minimal_symbol): Rewrite using
4509 lookup_minimal_symbol_internal.
4510 (lookup_bound_minimal_symbol): New function.
4511 * minsyms.h (msymbol_objfile): Remove.
4512 (lookup_bound_minimal_symbol): Declare.
4513 * p-exp.y (variable): Use lookup_bound_minimal_symbol.
4514 * parse.c (write_exp_msymbol): Change parameter to a
4515 bound_minimal_symbol.
4516 (write_dollar_variable): Use lookup_bound_minimal_symbol.
4517 * parser-defs.h (write_exp_msymbol): Update.
4518 * printcmd.c (address_info): Use lookup_bound_minimal_symbol.
4519 * symfile.c (simple_read_overlay_table): Use
4520 lookup_bound_minimal_symbol.
4521 * symtab.c (skip_prologue_sal): Don't use msymbol_objfile.
4522 (search_symbols): Likewise.
4523 (print_msymbol_info): Take a bound_minimal_symbol argument.
4524 (symtab_symbol_info, rbreak_command): Update.
4525 * symtab.h (struct symbol_search) <msymbol>: Change type
4526 to bound_minimal_symbol.
4527 * valops.c (find_function_in_inferior): Use
4528 lookup_bound_minimal_symbol.
4529 * value.c (value_fn_field): Use lookup_bound_minimal_symbol.
4530
934b9bac
JK
45312013-08-05 Jan Kratochvil <jan.kratochvil@redhat.com>
4532
4533 Code cleanup.
4534 * remote.c (cleanup_sigint_signal_handler): Rename the declaration
4535 to ...
4536 (async_cleanup_sigint_signal_handler): ... this.
4537 (initialize_sigint_signal_handler): Remove declaration.
4538 (handle_remote_sigint): Rename the declaration to ...
4539 (async_handle_remote_sigint): ... this.
4540 (handle_remote_sigint_twice): Rename the declaration to ...
4541 (async_handle_remote_sigint_twice): ... this.
4542 (async_remote_interrupt, async_remote_interrupt_twice)
4543 (remote_interrupt): Remove the declarations.
4544 (remote_interrupt_twice): Rename the declaration ...
4545 (sync_remote_interrupt_twice): ... this.
4546 (sigint_remote_twice_token): Rename the variable to ...
4547 (async_sigint_remote_twice_token): ... this.
4548 (sigint_remote_token): Rename the variable to ...
4549 (async_sigint_remote_token): ... this.
4550 (initialize_sigint_signal_handler): Rename the function to ...
4551 (async_initialize_sigint_signal_handler): ... this. Update the name
4552 inside.
4553 (handle_remote_sigint): Rename the function to ...
4554 (async_handle_remote_sigint): ... this. Update the names inside.
4555 (handle_remote_sigint_twice): Rename the function to ...
4556 (async_handle_remote_sigint_twice): ... this. Update the names inside.
4557 (cleanup_sigint_signal_handler): Rename the function to ...
4558 (async_cleanup_sigint_signal_handler): ... this.
4559 (remote_interrupt): Rename the function to ...
4560 (sync_remote_interrupt): this. Update the names inside.
4561 (remote_interrupt_twice): Rename the function to ...
4562 (sync_remote_interrupt_twice): this. Update the names inside.
4563 (remote_terminal_inferior, remote_terminal_ours, remote_wait_as)
4564 (_initialize_remote): Update the names inside.
4565
3a1115a0
TT
45662013-08-02 Tom Tromey <tromey@redhat.com>
4567
4568 PR symtab/15719:
4569 * breakpoint.c (update_watchpoint, watchpoint_check)
4570 (watch_command_1): Update.
4571 * eval.c (fetch_subexp_value): Add "preserve_errors"
4572 parameter.
4573 * ppc-linux-nat.c (check_condition): Update.
4574 * value.h (fetch_subexp_value): Update.
4575
58b19776
AB
45762013-08-02 Andrew Burgess <aburgess@broadcom.com>
4577
4578 * mi/mi-interp.c (mi_interpreter_resume): Remove call to
4579 add_file_handler.
4580
ec94af83
DE
45812013-08-01 Doug Evans <dje@google.com>
4582
7ee85ab1
DE
4583 PR symtab/15691
4584 * dwarf2read.c (struct dwarf2_per_cu_data): New member tu_read.
4585 (fill_in_sig_entry_from_dwo_entry): Reorganize asserts.
4586 Add assert of sig_entry->dwo_unit == NULL.
4587 (lookup_dwo_signatured_type): Don't assign TU to a DWO if the TU
4588 had already been read.
4589 (read_signatured_type): Set per_cu.tu_read.
4590
b846d303
DE
4591 PR symtab/15695
4592 * valops.c (value_struct_elt): Add missing call to check_typedef.
4593 (value_find_oload_method_list): Ditto.
4594
b52109bc
DE
4595 * symtab.c (do_free_search_symbols_cleanup): Change arg to,
4596 effectively, struct symbol_search **.
4597 (make_cleanup_free_search_symbols): Change arg to struct
4598 symbol_search **. All callers updated.
4599 (compare_search_syms): Compare symtab file name and block as well.
4600 (search_symbols_equal): New function.
4601 (sort_search_symbols_remove_dups): Renamed from sort_search_symbols.
4602 New args new_head, new_tail. Result is now void. Remove dups after
4603 sorting the symbols.
4604 (search_symbols): Sort all found symbols once, after all have been
4605 found, and remove duplicates. Simplify cleanup tracking of result.
4606 * symtab.h (make_cleanup_free_search_symbols): Update prototype.
4607
ec94af83
DE
4608 Further workarounds for binutils/15021.
4609 * dwarf2read.c (recursively_compute_inclusions): Change type of result
4610 parameter to VEC (symtab_ptr) **. New parameter all_type_symtabs.
4611 Watch for duplicate symtabs coming from type units.
4612 (compute_symtab_includes): Update call to
4613 recursively_compute_inclusions. Build vector of included symtabs
4614 instead of per_cus.
4615 * symtab.h (symtab_ptr): New typedef.
4616 (DEF_VEC_P (symtab_ptr)): New VEC type.
4617 * linespec.c (symtab_p): Delete. All uses updated to use symtab_ptr
4618 instead.
4619
b2ae85cf
AB
46202013-08-01 Andrew Burgess <aburgess@broadcom.com>
4621
4622 * cli/cli-script.c (script_from_file): Remove use of
4623 error_pre_print.
4624 * main.c (captured_main): Remove use of error_pre_print and
4625 quit_pre_print.
4626 * utils.c (error_pre_print, quit_pre_print): Remove.
4627 * utils.h (error_pre_print, quit_pre_print): Likewise.
4628
645eab03
YQ
46292013-08-01 Yao Qi <yao@codesourcery.com>
4630
4631 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Parse argv
4632 with mi_getopt.
4633 (mi_cmd_stack_list_variables): Likewise.
4634
16f92dd4
AB
46352013-07-31 Andrew Burgess <aburgess@broadcom.com>
4636
4637 * exceptions.c (deprecated_throw_reason): Remove.
4638 * exceptions.h (deprecated_throw_reason): Remove.
4639
13f78033
AB
46402013-07-31 Andrew Burgess <aburgess@broadcom.com>
4641
4642 * remote-mips.c (mips_error): Replace use of
4643 deprecated_throw_reason with throw_verror. Use the error message
4644 passed to mips_error as the error message for throw_verror.
4645
039e3c22
AB
46462013-07-31 Andrew Burgess <aburgess@broadcom.com>
4647
4648 * monitor.c (monitor_interrupt_query): Replace use of
4649 deprecated_throw_reason with quit.
4650 * nto-procfs.c (interrupt_query): Likewise.
4651 * remote-fileio.c (remote_fileio_sig_exit): Likewise.
4652 * remote-mips.c (mips_kill): Likewise.
4653 * remote.c (interrupt_query): Likewise.
4654
8150913b
AB
46552013-07-31 Andrew Burgess <aburgess@broadcom.com>
4656
4657 * utils.c (internal_verror): Replace use of deprecated_throw_reason
4658 with call to fatal.
4659
de74e63a
YQ
46602013-07-31 Pedro Alves <pedro@codesourcery.com>
4661 Yao Qi <yao@codesourcery.com>
4662
4663 * tracepoint.c (trace_dump_command): Select the current frame.
4664
247f5c4f
DE
46652013-07-30 Doug Evans <dje@google.com>
4666
4667 * dwarf2read.c (process_queue): Add type signature to debug output.
4668
11b4b7cc
AB
46692013-07-30 Andrew Burgess <aburgess@broadcom.com>
4670
4671 * value.c (value_fetch_lazy): Mark optimized out values as such
4672 rather than raising an error.
4673
b0c54aa5
AB
46742013-07-30 Andrew Burgess <aburgess@broadcom.com>
4675
4676 * value.c (value_fetch_lazy): Ensure parent value is not lazy
4677 before checking which bits of the parent, not the child, value are
4678 valid.
4679
97c85fc6
MB
46802013-07-30 Muhammad Bilal <mbilal@codesorcery.com>
4681
4682 PR gdb/15715
4683 * top.c: Include "filenames.h".
4684 (set_history_filename): New function.
4685 (init_main): Install it as set hook of the "set history filename"
4686 command.
4687
ff39bb5e
SA
46882013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
4689
4690 * dwarf2read.c (dwarf2_get_ref_die_offset): Constify struct
4691 attribute parameter.
4692 (dwarf2_const_value_data): Constify struct attribute parameter.
4693 (dwarf2_const_value): Constify struct attribute parameter.
4694 (dwarf2_const_value_attr): Constify struct attribute parameter.
4695 (lookup_die_type): Constify struct attribute parameter.
4696 (dwarf2_get_attr_constant_value): Constify struct attribute parameter.
4697 (follow_die_ref_or_sig): Constify struct attribute parameter.
4698 (follow_die_ref): Constify struct attribute parameter.
4699 (follow_die_sig): Constify struct attribute parameter.
4700 (get_DW_AT_signature_type): Constify struct attribute parameter.
4701 (get_type_unit_group): Constify struct attribute parameter.
4702 (fill_in_loclist_baton): Constify struct attribute parameter.
4703 (dwarf2_symbol_mark_computed): Constify struct attribute parameter.
4704 (type_unit_group): Constify struct attribute parameter.
4705
6e5a29e1
SA
47062013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
4707
4708 * dwarf2read.c (attr_form_is_block): Make argument const.
4709 (attr_form_is_section_offset): Make argument const.
4710 (attr_form_is_constant): Make argument const.
4711 (attr_form_is_ref): Make argument const.
4712
7771576e
SA
47132013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
4714
4715 * dwarf2read.c (attr_is_ref): Rename to attr_form_is_ref.
4716 All uses updated.
4717 (attr_form_is_ref): Moved below attr_form_is_constant.
4718
a94e8645
DE
47192013-07-29 Doug Evans <dje@google.com>
4720
bb5291d0
DE
4721 * main.c (captured_command_loop): Tweak comment.
4722
b5419e49
DE
4723 * target.c (target_async_permitted_1): Fix comment.
4724
b2d23133
DE
4725 * symtab.c (iterate_over_some_symtabs): Add comment.
4726
a94e8645
DE
4727 * symtab.c (iterate_over_some_symtabs): Fix indentation.
4728
7a60ad40
YQ
47292013-07-27 Yao Qi <yao@codesourcery.com>
4730
4731 * NEWS: Mention that GDBserver now supports hardware
4732 watchpoints on the MIPS GNU/Linux target.
4733
aaee2056
YQ
47342013-07-27 Yao Qi <yao@codesourcery.com>
4735
4736 * Makefile.in (HFILES_NO_SRCDIR): Add
4737 common/mips-linux-watch.h.
4738 (mips-linux-watch.o): New rule.
4739 * common/mips-linux-watch.c: New.
4740 * common/mips-linux-watch.h: New.
4741 * config/mips/linux.mh (NATDEPFILES): Add mips-linux-watch.o
4742 * mips-linux-nat.c: Include mips-linux-watch.h.
4743 (W_BIT, R_BIT, I_BIT, W_MASK, R_MASK, I_MASK, IRW_MASK): Move
4744 to common/mips-linux-watch.h.
4745 (MAX_DEBUG_REGISTER): Likewise.
4746 (enum pt_watch_style): Likewise.
4747 (struct mips32_watch_regs): Likewise.
4748 (struct mips64_watch_regs): Likewise.
4749 (struct pt_watch_regs): Likewise.
4750 (struct mips_watchpoint): Likewise.
4751 (mips_linux_watch_get_irw_mask): Move to
4752 common/mips-linux-watch.c.
4753 (get_reg_mask, mips_linux_watch_get_num_valid): Likewise.
4754 (mips_linux_watch_get_watchlo): Likewise.
4755 (mips_linux_watch_set_watchlo): Likewise.
4756 (mips_linux_watch_get_watchhi): Likewise.
4757 (mips_linux_watch_set_watchhi): Likewise.
4758 (mips_linux_read_watch_registers): Likewise.
4759 (mips_linux_watch_type_to_irw): Likewise.
4760 (mips_linux_stopped_data_address, fill_mask): Likewise.
4761 (mips_linux_watch_try_one_watch): Likewise.
4762 (mips_linux_watch_populate_regs): Likewise.
4763
b3436450
YQ
47642013-07-27 Yao Qi <yao@codesourcery.com>
4765
4766 * mips-linux-nat.c (get_irw_mask): Rename to ...
4767 (mips_linux_watch_get_irw_mask): ... this. Rename parameter
4768 'set' to 'n'. Update function comment. All callers changed.
4769 (get_reg_mask): Rename parameter 'set' to 'n'. Update
4770 function comment. All callers changed.
4771 (get_num_valid): Rename to ...
4772 (mips_linux_watch_get_num_valid): ... this. Rename parameter
4773 'set' to 'n'. Update function comment. All callers changed.
4774 (get_watchlo): Rename to ...
4775 (mips_linux_watch_get_watchlo): ... this. Rename parameter
4776 'set' to 'n'. Update function comment. All callers changed.
4777 (set_watchlo): Rename to ...
4778 (mips_linux_watch_set_watchlo): ... this. Rename parameter
4779 'set' to 'n'. Update function comment. All callers changed.
4780 (get_watchhi): Rename to ...
4781 (mips_linux_watch_get_watchhi): ... this. Update function
4782 comment. All callers changed.
4783 (set_watchhi): Rename to ...
4784 (mips_linux_watch_set_watchhi): ... this. Update function
4785 comment. All callers changed.
4786 (mips_linux_read_watch_registers): Update function comment.
4787 Add new parameters 'lwpid', 'watch_readback', and
4788 'watch_readback_valid'. Update.
4789 (type_to_irw): Rename to ...
4790 (mips_linux_watch_type_to_irw): ... this. Update function
4791 comment. All callers changed.
4792 (fill_mask): Update function comment.
4793 (try_one_watch): Rename to ...
4794 (mips_linux_watch_try_one_watch): ... this. Change the type
4795 of parameter 'irw' from 'unsigned' to 'uint32_t'.
4796 (populate_regs_from_watches): Rename to ...
4797 (mips_linux_watch_populate_regs): ... this. Add parameter
4798 'current_watches'. All callers changed.
4799
9be14b81
YQ
48002013-07-27 Yao Qi <yao@codesourcery.com>
4801
4802 * mips-linux-nat.c (MAX_DEBUG_REGISTER): Move it earlier in
4803 the code.
4804 (PTRACE_SET_WATCH_REGS, enum pt_watch_style): Remove.
4805 (struct mips32_watch_regs, struct mips64_watch_regs): Remove.
4806 (struct pt_watch_regs): Likewise.
4807 [!PTRACE_GET_WATCH_REGS] (PTRACE_SET_WATCH_REGS): New macro.
4808 [!PTRACE_GET_WATCH_REGS] (enum pt_watch_style): New.
4809 [!PTRACE_GET_WATCH_REGS] (struct mips32_watch_regs): New.
4810 [!PTRACE_GET_WATCH_REGS] (struct mips64_watch_regs): New.
4811 [!PTRACE_GET_WATCH_REGS] (struct pt_watch_regs): New.
4812
de6f69ad
YQ
48132013-07-27 Yao Qi <yao@codesourcery.com>
4814
4815 * breakpoint.h: Include break-common.h.
4816 (enum target_hw_bp_type): Move to ...
4817 * common/break-common.h: ... here. New.
4818
6f64ef53
PA
48192013-07-26 Cyril Nikolaev <cyril@nichtverstehen.de>
4820
4821 * inflow.c (terminal_init_inferior_with_pgrp): Save inferior
4822 process group regardless of having tty on stdin.
4823
6107e809
DE
48242013-07-25 Doug Evans <dje@google.com>
4825
4826 * linux-fork.h (detach_fork): Delete.
4827
7fdc1521
TT
48282013-07-25 Tom Tromey <tromey@redhat.com>
4829
4830 PR remote/15256, PR remote/15266:
4831 * bfd-target.c (target_bfd_reopen): Initialize to_magic.
4832 * monitor.c (monitor_detach): Use unpush_target.
4833 * remote-m32r-sdi.c (m32r_detach): Use unpush_target.
4834 * remote-mips.c (mips_detach): Use unpush_target. Don't
4835 call mips_close.
4836 * remote-sim.c (gdbsim_detach): Use unpush_target.
4837 * target.c (pop_target): Remove.
4838 (pop_all_targets_above): Don't call target_close.
4839 (target_close): Assert that the target is unpushed.
4840 * target.h (pop_target): Don't declare.
4841 * tracepoint.c (tfile_open): Use unpush_target.
4842
c22a2b88
TT
48432013-07-25 Tom Tromey <tromey@redhat.com>
4844
4845 * linux-thread-db.c (init_thread_db_ops): Call
4846 complete_target_initialization.
4847 (_initialize_thread_db): Don't call add_target.
4848 * target.c (complete_target_initialization): New function.
4849 (add_target_with_completer): Call it.
4850 * target.h (complete_target_initialization): Declare.
4851
cbb6aada
MK
48522013-07-25 Mark Kettenis <kettenis@gnu.org>
4853
4854 * hppa-tdep.h (enum hppa_regnum): Add members for all space registers.
4855 * hppaobsd-tdep.c (HPPAOBSD_SIZEOF_GREGS): Add comment.
4856 (HPPANBSD_SIZEOF_GREGS): New define.
4857 (hppaobsd_supply_gregset): Handle additional registers.
4858 * hppabsd-nat.c (hppabsd_gregset_supplies_p): Adjust to indicate
4859 we provide more registers now.
4860 (hppabsd_supply_gregset): Supply additional registers.
4861 (hppabsd_collect_gregset): Collect additional registers.
4862
17767988
MK
48632013-07-25 Mark Kettenis <kettenis@gnu.org>
4864
4865 * hppabsd-tdep.c: Include "dwarf2-frame.h".
4866 (hppabsd_dwarf2_frame_init_reg): New function.
4867 (hppabsd_init_abi): Hook in the DWARF CFI frame unwinder.
4868
fdc8aae8
AB
48692013-07-25 Andrew Burgess <aburgess@broadcom.com>
4870
4871 * mi/mi-main.c (output_register): Make MI 'r' format use standard
4872 'z' format code. Remove error for optimized out values, standard
4873 code will handle these fine.
4874
6fbe845e
AB
48752013-07-25 Andrew Burgess <aburgess@broadcom.com>
4876
4877 * NEWS: Mention new 'z' formatter.
4878 * printcmd.c (print_scalar_formatted): Add new 'z' formatter.
4879 (_initialize_printcmd): Mention 'z' formatter in help text of the
4880 'x' command.
4881
3373342d
MR
48822013-07-24 Maciej W. Rozycki <macro@codesourcery.com>
4883
4884 * mips-tdep.c (micromips_deal_with_atomic_sequence): Correct
4885 formatting.
4886
25f9533e
SDJ
48872013-07-24 Sergio Durigan Junior <sergiodj@redhat.com>
4888
4889 * breakpoint.c (create_longjmp_master_breakpoint): Check if probe
4890 interface can evaluate arguments. Fallback to the old mode if it
4891 cannot.
4892 (create_exception_master_breakpoint): Likewise.
4893 * elfread.c (elf_can_evaluate_probe_arguments): New function.
4894 (struct sym_probe_fns elf_probe_fns): Export function above to the
4895 probe interface.
4896 * probe.c (can_evaluate_probe_arguments): New function.
4897 * probe.h (struct probe_ops) <can_evaluate_probe_arguments>: New
4898 function pointer.
4899 (can_evaluate_probe_arguments): New function prototype.
4900 * solib-svr4.c (svr4_create_solib_event_breakpoints): Check if
4901 probe interface can evaluate arguments. Fallback to the old mode
4902 if it cannot.
4903 * stap-probe.c (stap_get_probe_argument_count): Check if probe
4904 interface can evaluate arguments. Warning the user if it cannot.
4905 (stap_can_evaluate_probe_arguments): New function.
4906 (struct probe_ops stap_probe_ops): Export function above to the
4907 probe interface.
4908 * symfile.h (struct sym_probe_fns) <can_evaluate_probe_arguments>:
4909 New function pointer.
4910
3360c0bf
LM
49112013-07-24 Luis Machado <lgustavo@codesourcery.com>
4912
4913 * Makefile.in (SFILES): Add common/target-common.c.
4914 Add common/target-common.h to headers.
4915 (COMMON_OBS): Add target-common.o.
4916 (target-common.o): New target.
4917 * linux-nat.h (resume_kind): Move to common/target-common.h.
4918 * target.c (target_waitstatus_to_string): Move to
4919 common/target-common.c.
4920 * target.h: Include target-common.h.
4921 (target_waitkind): Move to common/target-common.h.
4922 (target_waitstatus): Likewise.
4923 (TARGET_WNOHANG): Likewise.
4924 * common/target-common.c: New file.
4925 * common/target-common.h: New file.
4926
6656a72d
DE
49272013-07-24 Doug Evans <dje@google.com>
4928
4929 * dwarf2read.c (lookup_dwo_cutu): Change missing DWO complaint to
4930 a warning.
4931
6df81a63
YQ
49322013-07-23 Yao Qi <yao@codesourcery.com>
4933
4934 * i386-tdep.c (i386_in_stack_tramp_p): Remove unused
4935 parameter 'gdbarch'.
4936 (i386_stack_tramp_frame_sniffer): Caller update.
4937 * i386-linux-tdep.c (i386_linux_core_read_xcr0): Remove
4938 parameter 'gdbarch' and 'target'.
4939 (i386_linux_core_read_description): Caller update.
4940 * amd64-linux-tdep.c (amd64_linux_core_read_description):
4941 Likewise.
4942 * i386-linux-tdep.h (i386_linux_core_read_xcr0): Update
4943 declaration.
4944
365156ad
TT
49452013-07-23 Tom Tromey <tromey@redhat.com>
4946
4947 * dwarf2read.c (init_cutu_and_read_dies): Revert patch from
4948 2013-07-22.
4949
046ac79f
JK
49502013-07-22 Doug Evans <dje@google.com>
4951
4952 * exec.h (remove_target_sections): Delete arg abfd.
66cbcda4
JK
4953 * exec.c (exec_close): Update call to remove_target_sections.
4954 (remove_target_sections): Delete arg abfd.
046ac79f
JK
4955 * solib.c (update_solib_list): Ditto.
4956 (reload_shared_libraries_1): Ditto.
4957 (clear_solib): Ditto, and unconditionally call remove_target_sections.
66cbcda4
JK
4958 * target.h (struct target_section): Rename key to owner.
4959 All uses updated.
046ac79f 4960
29b2cc46
TT
49612013-07-22 Tom Tromey <tromey@redhat.com>
4962
4963 * solib-som.c (som_open_symbol_file_object): Call do_cleanups.
4964
d1160018
TT
49652013-07-22 Tom Tromey <tromey@redhat.com>
4966
4967 * dwarf2read.c (init_cutu_and_read_dies): Remove 'free_cu_cleanup'.
4968 Simplify cleanup handling.
4969
2f324bf6
TT
49702013-07-22 Tom Tromey <tromey@redhat.com>
4971
4972 * dwarf2read.c (dwarf_decode_line_header): Call do_cleanups
4973 on all return paths.
4974
e23b9d6e
UW
49752013-07-22 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
4976
4977 * ppc-linux-nat.c (PPC_DEBUG_FEATURE_DATA_BP_DAWR): New define.
4978 (ppc_linux_region_ok_for_hw_watchpoint): Add checking to use the new
4979 DAWR interface for longer ranges hardware watchpoint (up to 512 bytes).
4980
1cf55f60
PM
49812013-07-22 Phil Muldoon <pmuldoon@redhat.com>
4982
4983 * top.c (print_gdb_version): Add help, apropos description and
4984 url to online documentation.
4985
fa876972
HZ
49862013-07-19 Hui Zhu <hui@codesourcery.com>
4987
4988 PR gdb/15692
4989 * mi/mi-cmd-break.c (mi_argv_to_format): Handle double quotes.
4990
1527aea8
YQ
49912013-07-19 Yao Qi <yao@codesourcery.com>
4992
4993 * target.c (update_current_target): Change the default action
4994 of 'to_traceframe_info' from tcomplain to return_zero.
4995 * target.h (struct target_ops) <to_traceframe_info>: Add more
4996 comments.
4997 * valops.c (read_value_memory): Call
4998 traceframe_available_memory unconditionally.
4999
886f230e
YQ
50002013-07-18 Yao Qi <yao@codesourcery.com>
5001
5002 * coffread.c (coff_symfile_read): Iterate over minimal symbols,
5003 if the name is prefixed by "__imp_" or "_imp_", look for minimal
5004 symbol without prefix. If found, set its type to
5005 'mst_solib_trampoline'.
5006
16419bae
DE
50072013-07-17 Doug Evans <dje@google.com>
5008
e7045703
DE
5009 * NEWS: Mention "set print raw frame-arguments".
5010 * gdbcmd.h (setprintrawlist, showprintrawlist): Declare.
5011 * stack.c (print_raw_frame_arguments): New static global.
5012 (print_frame_arg): Set opts.raw from print_raw_frame_arguments.
5013 (_initialize_stack): New command "set/show print raw frame-arguments".
5014 * valprint.c (setprintrawlist, showprintrawlist): New globals.
5015 (set_print_raw, show_print_raw): New functions.
5016 (_initialize_valprint): New prefix command "set/show print raw".
5017 * valprint.h (value_print_options): Improve comments.
5018
453e48a5
DE
5019 * cli/cli-cmds.c (init_cmd_lists): Delete unnecessary initialization
5020 of all *list variables.
5021
16419bae
DE
5022 * gdbcmd.h (togglelist): Delete.
5023 * cli/cli-cmds.c (togglelist): Delete.
5024 (init_cmd_lists): Update.
5025 * cli/cli-cmds.h (togglelist): Delete.
5026
626f2d1c
TT
50272013-07-17 Tom Tromey <tromey@redhat.com>
5028
5029 * dwarf2read.c (dwarf2_per_objfile_free): Clear
5030 dwarf2_per_objfile.
5031
57e6060e
DE
50322013-07-16 Doug Evans <dje@google.com>
5033
5034 * nto-tdep.c (nto_relocate_section_addresses): Update,
5035 target_section.bfd deleted.
5036 * ppc64-tdep.c (ppc64_convert_from_func_ptr_addr): Ditto.
5037 * s390-tdep.c (s390_load): Ditto.
5038 * solib-aix.c (solib_aix_relocate_section_addresses): Ditto.
5039
5ea5559b
AB
50402013-07-16 Andrew Burgess <aburgess@broadcom.com>
5041
5042 * common/format.c (parse_format_string): Add checks for NULL
5043 character before calling strchr.
5044
2b2848e2
DE
50452013-07-16 Doug Evans <dje@google.com>
5046
2c571006
DE
5047 * solist.h (target_so_ops.find_and_open_solib): Clarify usage of
5048 temp_pathname argument.
5049 * nto-tdep.c (nto_find_and_open_solib): Fix setting of temp_pathname
5050 when opening the file fails.
5051
2b2848e2
DE
5052 * target.h (struct target_section): Delete member bfd.
5053 All users updated to use the_bfd_section->owner instead.
5054 * exec.c (add_to_section_table): Assert bfd is expected value.
5055 Remove initialization of target_section.bfd.
5056 (remove_target_sections): Update.
5057 (section_table_available_memory): Update.
5058 (section_table_xfer_memory_partial): Update.
5059 (print_section_info): Update.
5060 (exec_set_section_address): Update.
5061 * record-full.c (record_full_core_xfer_partial): Update.
5062 * solib-svr4.c (svr4_relocate_section_addresses): Update.
5063 * solib-target.c (solib_target_relocate_section_addresses): Update.
5064 * symfile.c (build_section_addr_info_from_section_table): Update.
5065 * target.c (memory_xfer_live_readonly_partial): Update.
5066 (memory_xfer_partial_1): Update.
5067
926bf92d
UW
50682013-07-15 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
5069
5070 * ppc-linux-nat.c: Since the new PowerPC specific ptrace interface is
5071 now available for embedded (BookE) and server (BookS) processors,
5072 correct mentions of 'booke' and adjust comments accordingly in order to
5073 avoid confusion. Rename struct 'booke_debug_info' to 'hwdebug_info'.
5074 (have_ptrace_booke_interface): Rename function and variable
5075 'have_ptrace_booke_interface' to 'have_ptrace_hwdebug_interface'.
5076 Rename struct 'booke_debug_info' to 'hwdebug_info'. Update all uses.
5077 (booke_cmp_hw_point): Rename function 'booke_cmp_hw_point' to
5078 'hwdebug_point_cmp'. Update all uses.
5079 (booke_find_thread_points_by_tid): Rename function
5080 'booke_find_thread_points_by_tid' to
5081 'hwdebug_find_thread_points_by_tid'. Update all uses.
5082 (booke_insert_point): Rename function 'booke_insert_point' to
5083 'hwdebug_insert_point'. Update all uses.
5084 (booke_remove_point): Rename function 'booke_remove_point' to
5085 'hwdebug_remove_point'. Update all uses.
5086
d929bc19
MR
50872013-07-15 Maciej W. Rozycki <macro@codesourcery.com>
5088
5089 * mips-tdep.c (mips_gdbarch_init): Replace hardcoded magic
5090 numbers with enum values.
5091
054e8d9e
AA
50922013-07-15 Ali Anwar <ali_anwar@codesourcery.com>
5093
5094 PR threads/13217
5095 * thread.c (thread_apply_all_command): Check for valid threads
5096 and thread count.
5097 (thread_array_cleanup): New struct.
5098 (set_thread_refcount): New function.
5099
cf006359
AB
51002013-07-11 Andrew Burgess <aburgess@broadcom.com>
5101
5102 * infcmd.c (default_print_one_register_info): Reuse function
5103 print_hex_chars.
5104
94e36acc
TT
51052013-07-10 Tom Tromey <tromey@redhat.com>
5106
5107 * Makefile.in (GDB_WARN_CFLAGS_NO_DEFS, ADA_EXP_C): New macros.
5108 (ada-exp.o): New target.
5109
915dd369
SDJ
51102013-07-10 Sergio Durigan Junior <sergiodj@redhat.com>
5111
5112 * mt-tdep.c (mt_registers_info): Call
5113 get_no_prettyformat_print_options instead of
5114 get_raw_print_options (regression by last patch from Doug
5115 Evans).
5116
eca07816
JB
51172013-07-09 Pedro Alves <palves@redhat.com>
5118
5119 Checked in by Joel Brobecker <brobecker@adacore.com>.
5120 * ada-lang.c (coerce_unspec_val_to_type): Use
5121 value_optimized_out_const.
5122 * value.c (value_optimized_out_const): New function.
5123 * value.h (value_optimized_out_const): New declaration.
5124
2a998fc0
DE
51252013-07-09 Doug Evans <dje@google.com>
5126
5127 * defs.h (enum val_prettyformat): Renamed from val_prettyprint.
5128 Enum values rename as well. All uses updated.
5129 * valprint.h (value_print_options): Rename member pretty to
5130 pretty format. Rename member prettyprint_arrays to
5131 prettyformat_arrays. Rename member prettyprint_structs to
5132 prettyformat_structs. All uses updated.
5133 (get_no_prettyformat_print_options): Renamed from
5134 get_raw_print_options.
5135 * valprint.c (get_no_prettyformat_print_options): Renamed from
5136 get_raw_print_options. All callers updated.
5137 (show_prettyformat_structs): Renamed from show_prettyprint_structs.
5138 All callers updated.
5139 (show_prettyformat_arrays): Renamed from show_prettyprint_arrays.
5140 All callers updated.
5141 (_initialize_valprint): Improve help text for "set print pretty" and
5142 "set print arrays".
5143
466c1fca
AB
51442013-07-09 Andrew Burgess <aburgess@broadcom.com>
5145
5146 * value.c (value_bits_valid): Revert previous change, and change
5147 by Pedro on 2013-07-04, due to regressions in
5148 gdb.dwarf2/implptr.exp and gdb.dwarf2/pieces.exp.
5149
ad0f0303
AB
51502013-07-08 Andrew Burgess <aburgess@broadcom.com>
5151 Pedro Alves <palves@redhat.com>
5152
5153 * value.c (value_bits_valid): If the value is not lval_computed
5154 or has no check validity handler then the answer is the
5155 optimized_out flag, otherwise defer to the handler.
5156
b187bec1
EZ
51572013-07-06 Eli Zaretskii <eliz@gnu.org>
5158
48d1d6f5
EZ
5159 * top.c (print_gdb_configuration): Explain in output of
5160 --configuration what does "relocatable" mean.
5161
b187bec1
EZ
5162 * main.c (print_gdb_help): Regroup options in the --help text.
5163 See http://sourceware.org/ml/gdb-patches/2013-04/msg00362.html for
5164 the relevant discussions.
5165
52d361e1
YQ
51662013-07-06 Yao Qi <yao@codesourcery.com>
5167
5168 * breakpoint.h (struct breakpoint_ops) <create_breakpoints_sal>:
5169 Remove parameter 'lsal'.
5170 * breakpoint.c (create_breakpoint): Move local variable 'lsal'
5171 to inner block. Caller update.
5172 (base_breakpoint_create_breakpoints_sal): Update.
5173 (bkpt_create_breakpoints_sal): Likewise.
5174 (tracepoint_create_breakpoints_sal): Likewise.
5175 (strace_marker_create_breakpoints_sal): Get 'lsal' from the
5176 element 0 of vector 'canonical->sals'.
5177
e1ec1b42
LM
51782013-07-05 Luis Machado <lgustavo@codesourcery.com>
5179
5180 * rs6000-tdep.c (rs6000_stab_reg_to_regnum): Return the real
5181 register number instead of the pseudo register one.
5182 (rs6000_dwarf2_reg_to_regnum): Likewise.
5183
7195e6f0
PA
51842013-07-04 Pedro Alves <palves@redhat.com>
5185
5186 * findvar.c (value_of_register): Use allocate_optimized_out_value
5187 if the register has been optimized out, instead of
5188 set_value_optimized_out.
5189 * frame-unwind.c (frame_unwind_got_optimized): Use
5190 allocate_optimized_out_value.
5191
58722cac
PA
51922013-07-04 Pedro Alves <palves@redhat.com>
5193
5194 * value.c (value_bits_valid): If the value is not lval_computed,
5195 or doesn't have a check_validity hook, assume the value is entirely
5196 valid.
5197
691a26f5
AB
51982013-07-04 Andrew Burgess <aburgess@broadcom.com>
5199
5200 * stack.c (read_frame_arg): No longer fetch lazy values.
5201 * value.c (value_optimized_out): If the value is not already
5202 marked optimized out, and is lazy then fetch it.
5203 (value_primitive_field): Move optimized out check to later in the
5204 function, after we have loaded any lazy values.
5205 (value_fetch_lazy): Use optimized out flag directly rather than
5206 calling optimized_out method.
5207
a58e2656
AB
52082013-07-04 Andrew Burgess <aburgess@broadcom.com>
5209
5210 * valops.c: Don't include "user-regs.h".
5211 (value_fetch_lazy): Moved to value.c.
5212 * value.c: Include "user-regs.h".
5213 (value_fetch_lazy): Moved from valops.c.
5214
bd885420
YQ
52152013-07-04 Yao Qi <yao@codesourcery.com>
5216
5217 Revert:
5218 2013-06-27 Yao Qi <yao@codesourcery.com>
5219
5220 * common/create-version.sh: Update comments. Handle the case
5221 that TARGET_ALIAS is empty.
5222
17ef446e
PA
52232013-07-03 Pedro Alves <palves@redhat.com>
5224
5225 * Makefile.in (config.status): Depend on development.sh.
5226 (aclocal_m4_deps): Add libmcheck.m4.
5227 * acinclude.m4: Include libmcheck.m4.
5228 * configure.ac: Source development.sh instead of setting
5229 'development' here. --enable-libmcheck/--disable-libmcheck code
5230 factored out to GDB_AC_LIBMCHECK. Run it.
5231 * development.sh: New file.
5232 * libmcheck.m4: New file.
5233 * configure: Regenerate.
5234
ac6dd50f
TT
52352013-07-02 Tom Tromey <tromey@redhat.com>
5236
5237 * contrib/ari/update-web-ari.sh: Update for version.in change.
5238
bd1df410
TT
52392013-07-02 Tom Tromey <tromey@redhat.com>
5240
5241 * common/ptid.h: Comment fixes.
5242
4db1a1dc
TT
52432013-07-01 Tom Tromey <tromey@redhat.com>
5244
5245 * dwarf2read.c (dwarf2_get_dwz_file): Return NULL if
5246 .gnu_debugaltlink not found. Use bfd_get_alt_debug_link_info.
5247 (dwarf2_read_index, create_all_comp_units): Update.
5248
dd9aa048
TT
52492013-07-01 Tom Tromey <tromey@redhat.com>
5250
5251 * configure.ac (build_warnings): Add -Wold-style-definition.
5252 * configure: Rebuild.
5253 * machoread.c (_initialize_machoread): Use "(void)".
5254 * macrocmd.c (macro_inform_no_debuginfo): Fix formatting;
5255 use "(void)".
5256
44d100c3
TT
52572013-07-01 Tom Tromey <tromey@redhat.com>
5258
5259 * configure.ac (build_warnings): Add -Wold-style-declaration.
5260 * configure: Rebuild.
5261 * dsrec.c (make_srec): Use "static const", not "const static".
5262 * h8300-tdep.c (h8300_breakpoint_from_pc): Use "static const",
5263 not "const static".
5264 * mi/mi-parse.c (mi_no_values, mi_simple_values, mi_all_values):
5265 Use "static const", not "const static".
5266 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Use "static const",
5267 not "const static".
5268 * moxie-tdep.c (moxie_breakpoint_from_pc): Use "static const",
5269 not "const static".
5270 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Use "static const",
5271 not "const static".
5272 * v850-tdep.c (v850_breakpoint_from_pc): Use "static const",
5273 not "const static".
5274 (v850_dbtrap_breakpoint_from_pc): Likewise.
5275 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Use "static const",
5276 not "const static".
5277
2945b807
TT
52782013-07-01 Tom Tromey <tromey@redhat.com>
5279
5280 * configure.ac (build_warnings): Add -Wmissing-parameter-type.
5281 * configure: Rebuild.
5282
d8d2a3ee
PA
52832013-07-01 Pedro Alves <palves@redhat.com>
5284
5285 * defs.h: Include "pathmax.h".
5286 * utils.c: Don't include sys/param.h.
5287 (gdb_realpath): Remove code that checks for MAXPATHLEN.
5288 * solib-ia64-hpux.c (ia64_hpux_handle_load_event): Use PATH_MAX
5289 instead of MAXPATHLEN.
5290 * solib-sunos.c: Don't include sys/param.h.
5291 * xcoffread.c: Don't include sys/param.h.
5292 * bsd-kvm.c: Don't include sys/param.h.
5293 * darwin-nat.c: Don't include sys/param.h.
5294 (darwin_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
5295 * darwin-nat-info.c: Don't include sys/param.h.
5296 * fbsd-nat.c (fbsd_pid_to_exec_file): Use PATH_MAX instead of
5297 MAXPATHLEN.
5298 * i386obsd-nat.c: Don't include sys/param.h.
5299 * inf-child.c: Don't include sys/param.h.
5300 (inf_child_fileio_readlink): Use PATH_MAX instead of MAXPATHLEN.
5301 * linux-fork.c: Don't include sys/param.h.
5302 (fork_save_infrun_state): Use PATH_MAX instead of MAXPATHLEN.
5303 * linux-nat.c: Don't include sys/param.h.
5304 (linux_child_pid_to_exec_file, linux_proc_pending_signals)
5305 (linux_proc_pending_signals): Use PATH_MAX instead of MAXPATHLEN.
5306 * m68klinux-nat.c: Don't include sys/param.h.
5307 * nbsd-nat.c: Don't include sys/param.h.
5308 (nbsd_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
5309 * ppc-linux-nat.c: Don't include sys/param.h.
5310 * rs6000-nat.c: Don't include sys/param.h.
5311 * spu-linux-nat.c. Don't include sys/param.h.
5312 * windows-nat.c: Don't include sys/param.h.
5313 * xtensa-linux-nat.c: Don't include sys/param.h.
5314 * config/i386/nm-fbsd.h: Don't include sys/param.h.
5315
38ec2207
PA
53162013-07-01 Pedro Alves <palves@redhat.com>
5317
5318 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add pathmax.
5319 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/pathmax.m4.
5320 * gnulib/aclocal.m4: Regenerate.
5321 * gnulib/config.in: Regenerate.
5322 * gnulib/configure: Regenerate.
5323 * gnulib/import/pathmax.h: New file.
5324 * gnulib/import/Makefile.am: Regenerate.
5325 * gnulib/import/Makefile.in: Regenerate.
5326 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
5327 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
5328 * gnulib/import/m4/pathmax.m4: New file.
5329
e655c1a2
PA
53302013-07-01 Pedro Alves <palves@redhat.com>
5331
5332 * configure.ac (GDBINIT): Define, depending on host.
5333 * go32-nat.c (init_go32_ops): Don't override gdbinit here.
5334 * top.c (PATH_MAX): Delete fallback definition.
5335 (GDBINIT_FILENAME): Delete.
5336 (gdbinit): Reimplement as const char array set to the GDBINIT
5337 string constant.
5338 * top.h (gdbinit): Make const.
5339 * configure, config.in: Regenerate.
5340
50dd9793
PA
53412013-07-01 Pedro Alves <palves@redhat.com>
5342
5343 * cli/cli-cmds.c (source_script): Make 'file' parameter const.
5344 * cli/cli-cmds.h (source_script): Likewise.
5345 * exceptions.c (catch_command_errors_const): New function.
5346 * exceptions.h (catch_command_errors_const): Declare.
5347 * main.c (get_init_files): Make parameters const, and adjust.
5348 (captured_main): Make 'system_gdbinit', 'home_gdbinit' and
5349 'local_gdbinit' locals const. Adjust to use
5350 catch_command_errors_const.
5351 (print_gdb_help): Make 'system_gdbinit', 'home_gdbinit' and
5352 'local_gdbinit' locals const.
5353
bc7dea8d
PA
53542013-07-01 Pedro Alves <palves@redhat.com>
5355
5356 * defs.h: Don't check HAVE_UNISTD_H before including <unistd.h>.
5357 (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO): Delete.
5358 * tracepoint.c: Don't check HAVE_UNISTD_H before including
5359 <unistd.h>.
5360
8839a007
PA
53612013-07-01 Pedro Alves <palves@redhat.com>
5362
5363 Import the "unistd" gnulib module.
5364 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add "unistd".
5365 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/off_t.m4,
5366 import/m4/ssize_t.m4, import/m4/sys_types_h.m4 and
5367 import/m4/unistd_h.m4.
5368 * gnulib/aclocal.m4: Renenerate.
5369 * gnulib/config.in: Renenerate.
5370 * gnulib/configure: Renenerate.
5371 * gnulib/import/Makefile.am: Renenerate.
5372 * gnulib/import/Makefile.in: Renenerate.
5373 * gnulib/import/m4/gnulib-cache.m4: Renenerate.
5374 * gnulib/import/m4/gnulib-comp.m4: Renenerate.
5375 * gnulib/import/m4/off_t.m4: New file.
5376 * gnulib/import/m4/ssize_t.m4: New file.
5377 * gnulib/import/m4/sys_types_h.m4: New file.
5378 * gnulib/import/m4/unistd_h.m4: New file.
5379 * gnulib/import/sys_types.in.h: New file.
5380 * gnulib/import/unistd.c: New file.
5381 * gnulib/import/unistd.in.h: New file.
5382
8c0da261
PA
53832013-07-01 Pedro Alves <palves@redhat.com>
5384
5385 * utils.c <pathconf/_PC_PATH_MAX use>: Check if _PC_PATH_MAX is
5386 defined instead of checking HAVE_UNISTD_H.
5387
3574124b
PA
53882013-07-01 Pedro Alves <palves@redhat.com>
5389
5390 Reimport gnulib from scratch.
5391 * gnulib/Makefile.in (aclocal_m4_deps): Remove reference to
5392 import/m4/onceonly.m4.
5393 * gnulib/aclocal.m4: Renegerate.
5394 * gnulib/config.in: Renegerate.
5395 * gnulib/configure: Renegerate.
5396 * gnulib/import/Makefile.in: Renegerate.
5397 * gnulib/import/extra/update-copyright: Renegerate.
5398 * gnulib/import/m4/onceonly.m4: Delete.
5399
702dc4fd
PA
54002013-07-01 Pedro Alves <palves@redhat.com>
5401
5402 * tui/tui-regs.c (pagination_enabled): Delete declaration.
5403
47e1ce27
JK
54042013-06-30 Jan Kratochvil <jan.kratochvil@redhat.com>
5405
5406 Code cleanup.
5407 * remote.c (async_remote_interrupt_twice): Make it static.
5408 * remote.h (async_remote_interrupt_twice): Remove the declaration.
5409
e82839d4
SDJ
54102013-06-29 Sergio Durigan Junior <sergiodj@redhat.com>
5411
5412 * ia64-linux-tdep.c: Include <ctype.h>.
5413 (ia64_linux_stap_is_single_operand): New function.
5414 (ia64_linux_init_abi): Initialize SystemTap related attributes.
5415
d6c2da54
TT
54162013-06-28 Tom Tromey <tromey@redhat.com>
5417
5418 * Makefile.in (version.c): Use version.in, not
5419 common/version.in.
5420 * common/create-version.sh: Likewise.
5421 * common/version.in: Move...
5422 * version.in: ...here.
5423
74da6f00
PA
54242013-06-28 Pedro Alves <palves@redhat.com>
5425
5426 * infrun.c (set_observer_mode): Don't declare pagination_enabled
5427 here.
5428 * utils.h (pagination_enabled): Declare.
5429
d32dc48e
PA
54302013-06-28 Pedro Alves <palves@redhat.com>
5431
5432 * infrun.c (non_stop, non_stop_1, set_non_stop, show_non_stop):
5433 Move higher up in file.
5434
0edd9e3b
TT
54352013-06-28 Tom Tromey <tromey@redhat.com>
5436
5437 * tracepoint.c (deprecated_readline_begin_hook)
5438 (deprecated_readline_hook, deprecated_readline_end_hook): Don't
5439 declare.
5440
4eb59108
PA
54412013-06-28 Pedro Alves <palves@redhat.com>
5442
5443 PR tui/14880
5444 * tui/tui-regs.c (tui_get_register): Fetch value contents before
5445 checking if they're available.
5446 * value.c (value_available_contents_eq): Change comment.
5447 * value.h (value_available_contents_eq): Expand comment.
5448
97b17156
TT
54492013-06-27 Tom Tromey <tromey@redhat.com>
5450
5451 * target.c (find_run_target): Remove.
5452 * target.h (find_run_target): Remove.
5453
6a3bfc5c
TT
54542013-06-27 Tom Tromey <tromey@redhat.com>
5455
5456 * corelow.c (core_gdbarch): Now static.
5457
c9ef825d
TT
54582013-06-27 Tom Tromey <tromey@redhat.com>
5459
5460 * target.c (target_struct_index): Remove.
5461
e5823f1c
PA
54622013-06-27 Pedro Alves <palves@redhat.com>
5463
5464 * infrun.c: Remove comment describing the 'stepping over runtime
5465 loader dynamic symbol resolution code' mechanism; moved to
5466 gdbint.texinfo.
5467
97f8dd09
PA
54682013-06-27 Pedro Alves <palves@redhat.com>
5469
5470 * exceptions.c (catch_command_errors): Remove spurious space.
5471 * exceptions.h (catch_command_errors): Second parameter is "arg",
5472 not "command".
5473
02b1871e
YQ
54742013-06-27 Yao Qi <yao@codesourcery.com>
5475
5476 * common/create-version.sh: Update comments. Handle the case
5477 that TARGET_ALIAS is empty.
5478
bb1b1cf1
PA
54792013-06-26 Pedro Alves <palves@redhat.com>
5480
5481 * infrun.c (SOLIB_IN_DYNAMIC_LINKER): Delete macro and describing
5482 comment.
5483
7b624e71
PA
54842013-06-26 Pedro Alves <palves@redhat.com>
5485
5486 * infrun.c: Update comments on stepping over runtime loader
5487 dynamic symbol resolution code.
5488
74e5a346
SDJ
54892013-06-26 Sergio Durigan Junior <sergiodj@redhat.com>
5490
5491 * ax-gdb.h (union exp_element): Forward declare.
5492 * parser-defs.h: Include expression.h.
5493
a2fb2cee
MR
54942013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
5495
5496 * mips-tdep.c (fetch_mips_16): Use unmake_compact_addr.
5497
cdba14e0
DK
54982013-06-26 Dmitry Kozlov <ddk@codesourcery.com>
5499
5500 * tracepoint.c (trace_save): Extend tsave to save starttime, stoptime.
5501
f30aa5af
DK
55022013-06-26 Dmitry Kozlov <ddk@codesourcery.com>
5503
5504 Fix trace-status to output proper start-time and stop-time.
5505 * tracepoint.c (trace_status_command): Fix type of printf arg to
5506 prevent improper type conversion.
5507 (trace_status_mi): Likewise.
5508
1aee363c
MR
55092013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
5510
5511 * mips-tdep.c (mips_next_pc): Fix a typo.
5512
3356937a
MR
55132013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
5514
5515 * mips-tdep.c (micromips_scan_prologue): Fix a typo.
5516
dc673c81
YQ
55172013-06-26 Pedro Alves <pedro@codesourcery.com>
5518 Yao Qi <yao@codesourcery.com>
5519
5520 * mi/mi-cmds.c (mi_cmds): Register -trace-frame-collected.
5521 * mi/mi-cmds.h (mi_cmd_trace_frame_collected): Declare.
5522 * mi/mi-main.c (print_variable_or_computed): New function.
5523 (mi_cmd_trace_frame_collected): New function.
5524 * tracepoint.c (find_trace_state_variable_by_number): New.
5525 (struct traceframe_info): Move to tracepoint.h
5526 (struct collection_list): Likewise.
5527 (do_collect_symbol): Include locals and arguments in the
5528 collected variables list.
5529 (clear_collection_list): Clear wholly collected variables list
5530 and computed variables list.
5531 (append_exp): New function.
5532 (encode_actions_1): Include variables in the wholly
5533 collected variables list. Include memory ranges and
5534 full-fledged expressions in the computed expressions list.
5535 (encode_actions): Move some code to ...
5536 Return the cleanup chain.
5537 (encode_actions_rsp): ... here. New function.
5538 (get_traceframe_location, get_traceframe_info): Remove static.
5539 * tracepoint.h (struct memrange): Moved from tracepoint.c.
5540 (struct collection_list): Moved from tracepoint.c. Add two
5541 new fields 'wholly_collected' and 'computed'.
5542 (find_trace_state_variable_by_number): Declare.
5543 (encode_actions): Adjust declaration.
5544 (encode_actions_rsp): Declare.
5545 (get_traceframe_info, get_traceframe_location): Declare.
5546
5547 * NEWS: Mention new MI command -trace-frame-collected.
5548
28a93511
YQ
55492013-06-26 Pedro Alves <pedro@codesourcery.com>
5550 Yao Qi <yao@codesourcery.com>
5551
5552 * ctf.c (ctf_traceframe_info): Push trace state variables
5553 present in the trace data into the traceframe info object.
5554 * breakpoint.c (DEF_VEC_I): Remove.
5555 * common/filestuff.c (DEF_VEC_I): Likewise.
5556 * dwarf2loc.c (DEF_VEC_I): Likewise.
5557 * mi/mi-main.c (DEF_VEC_I): Likewise.
5558 * common/gdb_vecs.h (DEF_VEC_I): Define vector for int.
5559 * features/traceframe-info.dtd: Add tvar element and its
5560 attributes.
5561 * tracepoint.c (free_traceframe_info): Free vector 'tvars'.
5562 (build_traceframe_info): Push trace state variables present in
5563 the trace data into the traceframe info object.
5564 (traceframe_info_start_tvar): New function.
5565 (tvar_attributes): New.
5566 (traceframe_info_children): Add "tvar" element.
5567 * tracepoint.h (struct traceframe_info) <tvars>: New field.
5568
5569 * NEWS: Mention the change in GDB and GDBserver.
5570
ddacd3c8
YQ
55712013-06-26 Pedro Alves <pedro@codesourcery.com>
5572 Yao Qi <yao@codesourcery.com>
5573
5574 * tracepoint.c (trace_dump_command): Move code to ...
5575 (get_traceframe_location): ... here. New.
5576
05796b35
YQ
55772013-06-26 Pedro Alves <pedro@codesourcery.com>
5578 Yao Qi <yao@codesourcery.com>
5579
5580 * tracepoint.c (trace_dump_command): GDB emits an error
5581 instead of a warning when a traceframe is not selected.
5582
cbfa3b61
YQ
55832013-06-26 Pedro Alves <pedro@codesourcery.com>
5584 Yao Qi <yao@codesourcery.com>
5585
5586 * tracepoint.c (tracepoint_list, stepping_list): Remove.
5587 (clear_collection_list): Free fields 'aexpre_list' and 'list'
5588 in collection_list.
5589 (do_clear_collection_list, init_collection_list): New.
5590 (encode_actions): Add local variables 'tracepoint_list' and
5591 'stepping_list'. Call init_collection_list and make cleanup
5592 which calls do_clear_collection_list. Don't call
5593 clear_collection_list.
5594 (_initialize_tracepoint): Delete references to
5595 'tracepoint_list' and 'stepping_list'.
5596
6e2048d3
TT
55972013-06-25 Tom Tromey <tromey@redhat.com>
5598
5599 * common/create-version.sh (date): Use "$", not "$$" in sed
5600 expression.
5601
42059f0e
KB
56022013-06-25 Kevin Buettner <kevinb@redhat.com>
5603
5604 * NEWS (New targets): Add entry for TI MSP430.
5605
a0743c90
YQ
56062013-06-25 Yao Qi <yao@codesourcery.com>
5607
5608 * remote.c (remote_start_remote): Move code to upload tsv
5609 earlier.
5610
9d6e6e84
HZ
56112013-06-25 Yao Qi <yao@codesourcery.com>
5612 Hui Zhu <hui@codesourcery.com>
5613 Pedro Alves <palves@redhat.com>
5614
5615 PR breakpoints/15075
5616 PR breakpoints/15434
5617 * breakpoint.c (bpstat_stop_status): Call
5618 b->ops->after_condition_true.
5619 (update_dprintf_command_list): Don't append "continue" command
5620 to the command list of dprintf breakpoint.
5621 (base_breakpoint_after_condition_true): New function.
5622 (base_breakpoint_ops): Add base_breakpoint_after_condition_true.
5623 (dprintf_after_condition_true): New function.
5624 (initialize_breakpoint_ops): Set dprintf_after_condition_true.
5625 * breakpoint.h (breakpoint_ops): Add after_condition_true.
5626
586cf749
KB
56272013-06-24 Kevin Buettner <kevinb@redhat.com>
5628
5629 * Makefile.in (ALL_TARGET_OBS): Add msp430-tdep.o.
5630 (ALLDEPFILES): Add msp430-tdep.c.
5631 * configure.tgt (msp430*-*-elf): New target.
5632 * msp430-tdep.c: New file.
5633
1bbce132
MR
56342013-06-24 Maciej W. Rozycki <macro@codesourcery.com>
5635
5636 * mips-tdep.c (mips_elf_make_msymbol_special): Handle MIPS16 and
5637 microMIPS synthetic symbols.
5638
3e5d3a5a
MR
56392013-06-24 Maciej W. Rozycki <macro@codesourcery.com>
5640
5641 * objfiles.h (pc_in_section): New prototype.
5642 (in_plt_section): Remove name argument, replace prototype with
5643 static inline function.
5644 * mips-tdep.h: Include "objfiles.h".
5645 (in_mips_stubs_section): New function.
5646 * hppa-tdep.h (gdbarch_tdep): Remove name argument of
5647 in_solib_call_trampoline member.
5648 (hppa_in_solib_call_trampoline): Remove name argument.
5649 * objfiles.c (pc_in_section): New function.
5650 (in_plt_section): Remove function.
5651 * mips-linux-tdep.c: Include "objfiles.h".
5652 (mips_linux_in_dynsym_stub): Call in_mips_stubs_section. Remove
5653 name argument. Return 1 rather than the low 16-bit halfword of
5654 any instruction examined.
5655 (mips_linux_in_dynsym_resolve_code): Update
5656 mips_linux_in_dynsym_stub call accordingly.
5657 * mips-tdep.c (mips_stub_frame_sniffer): Use in_mips_stubs_section
5658 rather than an equivalent hand-coded sequence.
5659 * hppa-hpux-tdep.c (in_opd_section): Remove function.
5660 (hppa32_hpux_in_solib_call_trampoline): Remove name argument.
5661 (hppa64_hpux_in_solib_call_trampoline): Likewise.
5662 (hppa64_hpux_find_global_pointer): Use pc_in_section rather than
5663 in_opd_section.
5664 * hppa-tdep.c (hppa_stub_unwind_sniffer): Remove name argument
5665 on call to tdep->in_solib_call_trampoline.
5666 (hppa_in_solib_call_trampoline): Remove name argument, update
5667 according to in_plt_section change.
5668 (hppa_skip_trampoline_code): Update according to in_plt_section
5669 change.
5670 * aarch64-tdep.c (aarch64_stub_unwind_sniffer): Likewise.
5671 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code):
5672 Likewise.
5673 * arm-tdep.c (arm_stub_unwind_sniffer): Likewise.
5674 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): Likewise.
5675 * hppabsd-tdep.c (hppabsd_find_global_pointer): Likewise.
5676 * nios2-tdep.c (nios2_stub_frame_sniffer): Likewise.
5677 * nto-tdep.c (nto_relocate_section_addresses): Likewise.
5678 * s390-tdep.c (s390_stub_frame_sniffer): Likewise.
5679 * sh-tdep.c (sh_stub_unwind_sniffer): Likewise.
5680 * solib-dsbt.c (dsbt_in_dynsym_resolve_code): Likewise.
5681 * solib-frv.c (frv_in_dynsym_resolve_code): Likewise.
5682 * solib-svr4.c (svr4_in_dynsym_resolve_code): Likewise.
5683 * solib-target.c (solib_target_in_dynsym_resolve_code): Likewise.
5684 * sparc-tdep.c (sparc_analyze_prologue): Likewise.
5685 * tic6x-tdep.c (tic6x_stub_unwind_sniffer): Likewise.
5686
b9b26a16
JB
56872013-06-24 Joel Brobecker <brobecker@adacore.com>
5688
5689 * common/create-version.sh: Fix expansion of $host_alias
5690 and $target_alias in generation of HOST_NAME and TARGET_NAME
5691 (resp.).
5692
01208463
TT
56932013-06-24 Tom Tromey <tromey@redhat.com>
5694
5695 * common/create-version.sh: New file.
5696 * Makefile.in (version.c): Use bfd/version.h, common/version.in,
5697 create-version.sh.
5698 (HFILES_NO_SRCDIR): Use common/version.h.
5699 * version.in: Move to ...
5700 * common/version.in: ... here. Replace date with "DATE".
5701 * version.h: Move to ...
5702 * common/version.h: ... here.
5703
bb6b9a5e
JB
57042013-06-21 Joel Brobecker <brobecker@adacore.com>
5705
5706 * gdb/gnulib/Makefile.in: Update date in copyright header.
5707 * gdb/gnulib/configure.ac: Ditto.
5708 * gdb/gnulib/update-gnulib.sh: Ditto.
5709
c3b18ee7
JB
57102013-06-21 Joel Brobecker <brobecker@adacore.com>
5711
5712 * copyright.py (EXCLUDE_LIST): Replace "gdb/gnulib" by
5713 "gdb/gnulib/import".
5714
85d3b769
WN
57152013-06-21 Will Newton <will.newton@linaro.org>
5716
5717 * doublest.c (ldfrexp): Remove function.
5718 (convert_doublest_to_floatformat): Call frexpl instead of
5719 ldfrexp.
5720
88b48903
WN
57212013-06-21 Will Newton <will.newton@linaro.org>
5722
5723 * gnulib/update-gnulib.sh(IMPORTED_GNULIB_MODULES): Add frexpl.
5724 * gnulib/aclocal.m4: Regenerate.
5725 * gnulib/config.in: Regenerate.
5726 * gnulib/configure: Regenerate.
5727 * gnulib/import/Makefile.am: Update.
5728 * gnulib/import/Makefile.in: Update.
5729 * gnulib/import/m4/gnulib-cache.m4: Update.
5730 * gnulib/import/m4/gnulib-comp.m4: Update.
5731 * gnulib/import/float+.h: Import.
5732 * gnulib/import/float.c: Import.
5733 * gnulib/import/float.in.h: Import.
5734 * gnulib/import/fpucw.h: Import.
5735 * gnulib/import/frexp.c: Import.
5736 * gnulib/import/frexpl.c: Import.
5737 * gnulib/import/isnan.c: Import.
5738 * gnulib/import/isnand-nolibm.h: Import.
5739 * gnulib/import/isnand.c: Import.
5740 * gnulib/import/isnanl-nolibm.h: Import.
5741 * gnulib/import/isnanl.c: Import.
5742 * gnulib/import/itold.c: Import.
5743 * gnulib/import/m4/exponentd.m4: Import.
5744 * gnulib/import/m4/exponentl.m4: Import.
5745 * gnulib/import/m4/float_h.m4: Import.
5746 * gnulib/import/m4/fpieee.m4: Import.
5747 * gnulib/import/m4/frexp.m4: Import.
5748 * gnulib/import/m4/frexpl.m4: Import.
5749 * gnulib/import/m4/isnand.m4: Import.
5750 * gnulib/import/m4/isnanl.m4: Import.
5751 * gnulib/import/m4/math_h.m4: Import.
5752 * gnulib/import/math.c: Import.
5753 * gnulib/import/math.in.h: Import.
5754
4353c9e6
JK
57552013-06-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5756
5757 * common/linux-btrace.c (cpu_supports_btrace): Remove variable vendor,
5758 replace strcmp with signature_INTEL_ebx, signature_INTEL_ecx and
5759 signature_INTEL_edx comparisons.
5760
e3e06db3
DE
57612013-06-20 Doug Evans <dje@google.com>
5762
6ac97d4c
DE
5763 symtab/15652
5764 * dwarf2read.c (try_open_dwop_file): New arg search_cwd.
5765 All callers updated.
5766 (open_dwp_file): If we can't find the dwp file, search the basename
5767 in debug-file-directory.
5768
93417882
DE
5769 * dwarf2read.c (struct dwp_file): Fix comment.
5770 (open_and_init_dwp_file): Set dwp_file->name to bfd's file name.
5771
e3e06db3
DE
5772 * source.c (openp): Document OPF_TRY_CWD_FIRST+OPF_SEARCH_IN_PATH
5773 better.
5774
0878d0fa
YQ
57752013-06-20 Yao Qi <yao@codesourcery.com>
5776
5777 * breakpoint.c (create_breakpoint): Fix code indentation.
5778
023fa29b
YQ
57792013-06-20 Yao Qi <yao@codesourcery.com>
5780
5781 * breakpoint.c (create_breakpoints_sal_default): Remove
5782 parameter 'lsal'. Update declaration.
5783 (bkpt_create_breakpoints_sal): Caller update.
5784 (tracepoint_create_breakpoints_sal): Likewise.
5785
c898adb7
YQ
57862013-06-20 Pedro Alves <pedro@codesourcery.com>
5787 Yao Qi <yao@codesourcery.com>
5788
5789 * NEWS: Mention the new option '--skip-unavailable' of command
5790 -data-list-register-values.
5791 * mi/mi-main.c (mi_cmd_data_list_register_values): Accept the
5792 --skip-unavailable option. Adjust to use output_register.
5793 (output_register): Add new 'skip_unavailable' parameter.
5794 Handle it.
5795
4d157a3d
MF
57962013-06-19 Mike Frysinger <vapier@gentoo.org>
5797
5798 * Makefile.in (HFILES_NO_SRCDIR): Add common/i386-cpuid.h and
5799 common/i386-gcc-cpuid.h.
5800 * common/i386-cpuid.h: New wrapper header around i386-gcc-cpuid.h.
5801 * common/i386-gcc-cpuid.h: Rename from testsuite/gdb.arch/i386-cpuid.h.
5802 Copy the latest version from upstream gcc.
5803 * common/linux-btrace.c: Include i386-cpuid.h.
5804 (intel_supports_btrace): Delete x86 ifdefs and replace inline asm with
5805 call to i386_cpuid.
5806 (cpu_supports_btrace): Likewise.
5807 * go32-nat.c: Include i386-cpuid.h.
5808 (go32_sysinfo): Add (disabled) calls to i386_cpuid with comments.
5809
1ce4db08
DE
58102013-06-19 Doug Evans <dje@google.com>
5811
5812 * symfile.c (symfile_bfd_open): Delete unnecessary declaration.
5813 (get_section_index): Ditto.
5814
0e4777df
TT
58152013-06-19 Tom Tromey <tromey@redhat.com>
5816
5817 * breakpoint.c (_initialize_breakpoint): Remove trailing \n from
5818 "dprintf" help.
5819
3190f0c6
DE
58202013-06-18 Doug Evans <dje@google.com>
5821
5822 * dwarf2read.c (dw2_symtab_iter_next): Check value of cu_index
5823 before using it.
5824 (dw2_expand_symtabs_matching): Fix symbol kind validity check.
5825 Move test of cu_index closer to use. Print complaint if cu_index
5826 is bad.
5827
8b89a20a
JB
58282013-06-18 Joel Brobecker <brobecker@adacore.com>
5829
5830 * machoread.c (oso_vector): Delete this global.
5831 (macho_register_oso): Add new parameter "oso_vector_ptr".
5832 Use it instead of the "oso_vector" global.
5833 (macho_symtab_read, macho_symfile_read_all_oso): Likewise.
5834 (macho_symfile_read): Use a local oso_vector, to be free'ed
5835 at the end of this function, in place of the old "oso_vector"
5836 global. Update various function calls accordingly. Use one
5837 single cleanup chain for the entire function.
5838
59b0c7c1
JB
58392013-06-18 Joel Brobecker <brobecker@adacore.com>
5840
937c708c 5841 * dwarf2read.c (dwarf2_per_objfile_free): Replace uses of
59b0c7c1
JB
5842 DWARF2_PER_OBJFILE by uses of DATA instead.
5843
427cd150
TT
58442013-06-18 Tom Tromey <tromey@redhat.com>
5845
5846 * break-catch-sig.c (signal_catchpoint_explains_signal): Add 'sig'
5847 argument.
5848 * breakpoint.c (bpstat_explains_signal): Add 'sig' argument.
5849 Special case signals other than GDB_SIGNAL_TRAP.
5850 (explains_signal_watchpoint): New function.
5851 (base_breakpoint_explains_signal): Add 'sig' argument.
5852 (initialize_breakpoint_ops): Set 'explains_signal' method for
5853 watchpoints.
5854 * breakpoint.h (struct breakpoint_ops) <explains_signal>: Add
5855 signal argument.
5856 (bpstat_explains_signal): Likewise.
5857 * infrun.c (handle_syscall_event, handle_inferior_event): Update.
5858
2d57700b
TT
58592013-06-18 Tom Tromey <tromey@redhat.com>
5860
5861 * python/py-inferior.c (gdbpy_selected_inferior): Don't incref.
5862
ac475191
TT
58632013-06-18 Tom Tromey <tromey@redhat.com>
5864
5865 * python/python.c (finish_python_initialization): Decref
5866 'pythondir' on failure path as well.
5867
5bd1ef56
TT
58682013-06-18 Tom Tromey <tromey@redhat.com>
5869
5870 PR symtab/15391:
5871 * dwarf2loc.c (read_pieced_value): Truncate this_size_bits
5872 after taking bits_to_skip into account. Sign extend byte_offset.
5873 * utils.h (gdb_sign_extend): Declare.
5874 * utils.c (gdb_sign_extend): New function.
5875
92fac807
JK
58762013-06-18 Jan Kratochvil <jan.kratochvil@redhat.com>
5877
5878 * dwarf2read.c (write_psymtabs_to_index): Ignore NULL PSYMTAB.
5879
2d503272
PM
58802013-06-17 Pierre Muller <muller@sourceware.org>
5881
5882 * corelow.c (core_open): Print GDB signal name instead of target
5883 signal number.
5884
6916fd98
MF
58852013-06-17 Mike Frysinger <vapier@gentoo.org>
5886
5887 * .gitignore: Add /gcore.
5888
9c02c129
DE
58892013-06-13 Doug Evans <dje@google.com>
5890
5891 * dwarf2read.c (try_open_dwop_file): Work around behaviour of
5892 OPF_TRY_CWD_FIRST to not search path if the file contains a '/'.
5893
d0548fa2
PM
58942013-06-12 Phil Muldoon <pmuldoon@redhat.com>
5895
5896 * stack.c (backtrace_command_1): Fix indentation.
5897
22128028
JB
58982013-06-11 Joel Brobecker <brobecker@adacore.com>
5899
5900 * window-nat.c (thread_rec): Add missing empty line after
5901 local variable declaration.
5902
2ed3e009
JB
59032013-06-11 Joel Brobecker <brobecker@adacore.com>
5904
5905 * windows-nat.c (thread_rec): Revert format used to print
5906 error code returned by SuspendThread from %d back to %u.
5907
0c3d84be
JB
59082013-06-11 Joel Brobecker <brobecker@adacore.com>
5909
5910 * windows-nat.c (windows_continue): Add "0x" prefix for thread
5911 ID in debug trace.
5912 (get_windows_debug_event): Likewise, for all debug traces.
5913
80e88e1a
JB
59142013-06-11 Joel Brobecker <brobecker@adacore.com>
5915
5916 * window-nat.c (thread_rec): Add thread ID in SuspendThread
5917 warning message.
5918
1edebdbf
YQ
59192013-06-08 Pedro Alves <pedro@codesourcery.com>
5920 Yao Qi <yao@codesourcery.com>
5921
5922 * mi/mi-main.c (get_register): Remove declaration.
5923 (output_register): Declare.
5924 (mi_cmd_data_list_register_values): Remove local variable
5925 'tuple_cleanup'. Move some code into output_register.
5926 (get_register): Renamed to ...
5927 (output_register): ... this. Output the register's
5928 "number" ui_out tuple here.
5929
47d48711
PA
59302013-06-07 Pedro Alves <palves@redhat.com>
5931
5932 * darwin-nat.c: Fix formating in copyright header.
5933 * darwin-nat.h: Likewise.
5934 * gnu-nat.c: Likewise.
5935 * machoread.c: Likewise.
5936
3aee8918
PA
59372013-06-07 Pedro Alves <palves@redhat.com>
5938
5f2b57b5 5939 PR server/14823
3aee8918
PA
5940 * regformats/regdat.sh: Output #include tdesc.h. Make globals
5941 static. Output a global target description pointer.
5942 (init_registers_${name}): Adjust to initialize a
5943 target description structure.
5944
fe8400b4
WN
59452013-06-07 Will Newton <will.newton@linaro.org>
5946
5947 * printcmd.c (build_address_symbolic): Call
5948 gdbarch_addr_bits_remove for text minimal symbols.
5949
20df6206
WN
59502013-06-07 Will Newton <will.newton@linaro.org>
5951
5952 * MAINTAINERS: Add myself to Write After Approval.
5953
aef525cb
YQ
59542013-06-07 Yao Qi <yao@codesourcery.com>
5955
5956 * tracepoint.c (start_tracing): Move code to ...
5957 (trace_reset_local_state): ... here. New.
5958 (disconnect_tracing): Don't call set_current_traceframe,
5959 set_tracepoint_num, and set_traceframe_context. Call
5960 trace_reset_local_state instead.
5961 (tfile_close): Call trace_reset_local_state.
5962 * ctf.c (ctf_close): Likewise.
5963 * remote.c (remote_close): Likewise.
5964 * tracepoint.h (trace_reset_local_state): Declare.
5965
d2415c6c
DE
59662013-06-06 Doug Evans <dje@google.com>
5967
5968 * dwarf2read.c: Whitespace fixes for DWP file format documentation,
5969 and fix header docs.
5970
69fc87c2
DE
59712013-06-05 Doug Evans <dje@google.com>
5972 Keith Seitz <keiths@redhat.com>
5973
5974 PR 15519
5975 * cp-namespace.c (find_symbol_in_baseclass): Call
5976 cp_lookup_symbol_in_namespace instead of cp_lookup_symbol_namespace.
5977 Check result of call to lookup_symbol_static.
5978 Call lookup_static_symbol_aux unconditionally.
5979 Call check_typedef on base types before accessing them.
5980 (cp_lookup_nested_symbol): Fix comment.
5981
a513d1e8
LM
59822013-06-05 Luis Machado <lgustavo@codesourcery.com>
5983
5984 * gnu-v3-abi.c (gnuv3_skip_trampoline): Handle thunk
5985 minimal symbols pointing to function descriptors.
5986
351a6f02
TT
59872013-06-05 Tom Tromey <tromey@redhat.com>
5988
5989 * python/py-utils.c (gdb_pymodule_addobject): Cast away const.
5990
5e1b953b 59912013-06-04 Sergio Durigan Junior <sergiodj@redhat.com>
c7c0b644 5992 Pedro Alves <palves@redhat.com>
5e1b953b
SDJ
5993
5994 * remote.c (remote_wait_as): Restore signal handler before returning
5995 when GDB gets a notification.
5996
f9e14852
GB
59972013-06-04 Gary Benson <gbenson@redhat.com>
5998
8445cbf1 5999 PR 2328
f9e14852
GB
6000 * breakpoint.h (handle_solib_event): Moved function declaration
6001 to solib.h.
6002 * breakpoint.c (handle_solib_event): Moved function to solib.c.
6003 (bpstat_stop_status): Pass new argument to handle_solib_event.
6004 * solib.h (update_solib_breakpoints): New function declaration.
6005 (handle_solib_event): Moved function declaration from
6006 breakpoint.h.
6007 * solib.c (update_solib_breakpoints): New function.
6008 (handle_solib_event): Moved function from breakpoint.c.
6009 Updated to call solib_ops->handle_event if not NULL.
6010 * solist.h (target_so_ops): New fields "update_breakpoints" and
6011 "handle_event".
6012 * infrun.c (set_stop_on_solib_events): New function.
6013 (_initialize_infrun): Use the above for "set
6014 stop-on-solib-events".
6015 (handle_inferior_event): Pass new argument to handle_solib_event.
6016 * solib-svr4.c (probe.h): New include.
6017 (svr4_free_library_list): New forward declaration.
6018 (probe_action): New enum.
6019 (probe_info): New struct.
6020 (probe_info): New static variable.
6021 (NUM_PROBES): New definition.
6022 (svr4_info): New fields "using_xfer", "probes_table" and
6023 "solib_list".
6024 (free_probes_table): New function.
6025 (free_solib_list): New function.
6026 (svr4_pspace_data_cleanup): Free probes table and solib list.
6027 (svr4_copy_library_list): New function.
6028 (svr4_current_sos_via_xfer_libraries): New parameter "annex".
6029 (svr4_read_so_list): New parameter "prev_lm".
6030 (svr4_current_sos_direct): Renamed from "svr4_current_sos".
6031 (svr4_current_sos): New function.
6032 (probe_and_action): New struct.
6033 (hash_probe_and_action): New function.
6034 (equal_probe_and_action): Likewise.
6035 (register_solib_event_probe): Likewise.
6036 (solib_event_probe_at): Likewise.
6037 (solib_event_probe_action): Likewise.
6038 (solist_update_full): Likewise.
6039 (solist_update_incremental): Likewise.
6040 (disable_probes_interface_cleanup): Likewise.
6041 (svr4_handle_solib_event): Likewise.
6042 (svr4_update_solib_event_breakpoint): Likewise.
6043 (svr4_update_solib_event_breakpoints): Likewise.
6044 (svr4_create_solib_event_breakpoints): Likewise.
6045 (enable_break): Free probes table before creating breakpoints.
6046 Use svr4_create_solib_event_breakpoints to create breakpoints.
6047 (svr4_solib_create_inferior_hook): Free the solib list.
6048 (_initialize_svr4_solib): Initialise
6049 svr4_so_ops.handle_solib_event and svr4_so_ops.update_breakpoints.
6050
ced63ec0
GB
60512013-06-04 Gary Benson <gbenson@redhat.com>
6052
6053 * target.h (target_ops): New field
6054 "to_augmented_libraries_svr4_read".
6055 (target_augmented_libraries_svr4_read): New macro.
6056 * target.c (update_current_target): Handle
6057 to_augmented_libraries_svr4_read.
6058 * remote.c (remote_state): New field
6059 "augmented_libraries_svr4_read".
6060 (remote_augmented_libraries_svr4_read_feature): New function.
6061 (remote_protocol_features): Add entry for
6062 "augmented-libraries-svr4-read".
6063 (remote_augmented_libraries_svr4_read): New function.
6064 (init_remote_ops): Initialize
6065 remote_ops.to_augmented_libraries_svr4_read.
6066
7f91dbec
GB
60672013-06-04 Gary Benson <gbenson@redhat.com>
6068
6069 * NEWS: Update.
6070
607ece04
GB
60712013-06-04 Gary Benson <gbenson@redhat.com>
6072
6073 * objfiles.h (inhibit_section_map_updates): New function
6074 declaration.
6075 (resume_section_map_updates): Likewise.
6076 (resume_section_map_updates_cleanup): Likewise.
6077 * objfiles.c (objfile_pspace_info): Removed field
6078 "objfiles_changed_p". New fields "new_objfiles_available",
6079 "section_map_dirty" and "inhibit_updates".
6080 (allocate_objfile): Set new_objfiles_available.
6081 (free_objfile): Set section_map_dirty.
6082 (objfile_relocate1): Likewise.
6083 (in_plt_section): Likewise.
6084 (find_pc_section): Update the conditions under which the
6085 section map will be updated.
6086 (inhibit_section_map_updates): New function.
6087 (resume_section_map_updates): Likewise.
6088 (resume_section_map_updates_cleanup): Likewise.
6089
9ee6a5ac
GB
60902013-06-04 Gary Benson <gbenson@redhat.com>
6091
6092 * probe.h (get_probe_argument_count): New declaration.
6093 (evaluate_probe_argument): Likewise.
6094 * probe.c (get_probe_argument_count): New function.
6095 (evaluate_probe_argument): Likewise.
6096 (probe_safe_evaluate_at_pc): Use the above new functions.
6097
845d4708
AM
60982013-06-04 Alan Modra <amodra@gmail.com>
6099
6100 * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
6101 * rs6000-tdep.c (read_insn): Add frame param, don't assume big-endian.
6102 (ppc_insns_match_pattern): Add frame param. Avoid multiple
6103 target mem reads on optional insns.
6104 * ppc-linux-tdep.c (ppc_skip_trampoline_code): Update
6105 ppc_insns_match_pattern calls.
6106 * ppc64-tdep.c (ppc64_standard_linkage2, ppc64_standard_linkage3):
6107 Add match for power7 thread safety insns, and new order of
6108 std 2,40(1) insn. Correct code shown for _dl_runtime_resolve
6109 invocation in comment, and update rest of comment.
6110 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN,
6111 PPC64_STANDARD_LINKAGE3_LEN): Delete.
6112 (ppc64_standard_linkage2_target): Update insn offsets.
6113 (ppc64_skip_trampoline_code): Use a single insn buffer. Match newer
6114 stubs first. Update calls.
6115
404e278f
YQ
61162013-06-04 Yao Qi <yao@codesourcery.com>
6117
6118 * solib.c (solib_find): Don't need dir separator if path has
6119 drive spec.
6120
f6aea118
JB
61212013-06-03 Joel Brobecker <brobecker@adacore.com>
6122
6123 Revert (indirectly causes a SIGSEGV):
6124 * machoread.c (macho_symfile_read): Assign first cleanup to
6125 'back_to'.
6126
87967e27
YQ
61272013-06-03 Yao Qi <yao@codesourcery.com>
6128
6129 * mi/mi-cmd-var.c (mi_no_values, mi_simple_values): Move to
6130 mi-parse.c. Make them static.
6131 (mi_all_values): Likewise.
6132 (mi_parse_values_option): Move to mi-parse.c. Rename it to
6133 mi_parse_print_values. Make it external.
6134 * mi/mi-cmds.h (mi_no_values, mi_simple_values, mi_all_values):
6135 Remove the declarations.
6136 * mi/mi-parse.c (mi_parse_print_values): Moved from mi-cmd-var.c.
6137 * mi/mi-parse.h (mi_parse_print_values): Declare.
6138 * mi/mi-cmd-stack.c: Include mi-parse.h.
6139 (parse_print_values): Remove
6140 (mi_cmd_stack_list_locals): Call mi_parse_print_values instead
6141 of parse_print_values.
6142 (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Likewise.
6143
3ca73e0c
YQ
61442013-05-31 Pedro Alves <pedro@codesourcery.com>
6145 Yao Qi <yao@codesourcery.com>
6146
6147 * tracepoint.c (all_tracepoint_actions_and_cleanup): Declare.
6148 (encode_actions): Move code to ...
6149 (all_tracepoint_actions_and_cleanup): ... here. New.
6150 (trace_dump_command): Likewise.
6151
4e993a19
TT
61522013-05-30 Tom Tromey <tromey@redhat.com>
6153
6154 * symmisc.c (maintenance_expand_symtabs): Call do_cleanups.
6155
e3b76b4f
TT
61562013-05-30 Tom Tromey <tromey@redhat.com>
6157
6158 * xml-support.c (gdb_xml_create_parser_and_cleanup): Rename from
6159 gdb_xml_create_parser_and_cleanup_1. Return a cleanup. Remove
6160 'old_chain' argument. Add 'parser_result' argument.
6161 (gdb_xml_create_parser_and_cleanup): Remove old version.
6162 (gdb_xml_parse_quick): Update.
6163 (xml_process_xincludes): Update.
6164 * xml-support.h (gdb_xml_create_parser_and_cleanup): Don't
6165 declare.
6166
db26349c
TT
61672013-05-30 Tom Tromey <tromey@redhat.com>
6168
6169 * probe.c (collect_probes): Check arguments for NULL before
6170 calling compile_rx_or_error.
6171 * utils.c (compile_rx_or_error): Require 'rx' to be non-NULL.
6172 Remove NULL return.
6173
77f9e713
TT
61742013-05-30 Tom Tromey <tromey@redhat.com>
6175
6176 * infrun.c (adjust_pc_after_break): Introduce an outer null
6177 cleanup.
6178
45475de7
TT
61792013-05-30 Tom Tromey <tromey@redhat.com>
6180
6181 * mi/mi-cmd-var.c (varobj_update_one): Add an outer null cleanup.
6182
ac5007fd
TT
61832013-05-30 Tom Tromey <tromey@redhat.com>
6184
6185 * cli/cli-script.c (read_command_lines_1): Use a null cleanup
6186 for 'old_chain'. Do not check 'head' before processing
6187 cleanups.
6188
cd82eddc
TT
61892013-05-30 Tom Tromey <tromey@redhat.com>
6190
6191 * mi/mi-cmd-stack.c (list_arg_or_local): Remove
6192 "cleanup_tuple".
6193
57cee33a
TT
61942013-05-30 Tom Tromey <tromey@redhat.com>
6195
6196 * dbxread.c (dbx_read_symtab): Declare 'back_to' in a more
6197 inner scope. Unconditionally call do_cleanups.
6198
795d915c
TT
61992013-05-30 Tom Tromey <tromey@redhat.com>
6200
6201 * source.c (find_and_open_source): Call do_cleanups.
6202
1fc3cf4a
TT
62032013-05-30 Tom Tromey <tromey@redhat.com>
6204
6205 * linux-thread-db.c (thread_db_load_search): Unconditionally
6206 call do_cleanups.
6207
e35ac9bf
TT
62082013-05-30 Tom Tromey <tromey@redhat.com>
6209
6210 * solib-aix.c (solib_aix_bfd_open): Don't use a null cleanup
6211 for 'cleanup'; instead use a later one.
6212
f3300387
TT
62132013-05-30 Tom Tromey <tromey@redhat.com>
6214
6215 * python/py-breakpoint.c (bppy_get_commands): Use
6216 explicit, unconditional return.
6217 * python/py-frame.c (frapy_read_var): Likewise.
6218 * python/python.c (gdbpy_decode_line): Likewise.
6219
c27e16e3
TT
62202013-05-30 Tom Tromey <tromey@redhat.com>
6221
6222 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Call
6223 do_cleanups on all return paths.
6224
5ae85e44
TT
62252013-05-30 Tom Tromey <tromey@redhat.com>
6226
6227 * top.c (execute_command): Discard 'cleanup_if_error' cleanups.
6228
73b8d9da
TT
62292013-05-30 Tom Tromey <tromey@redhat.com>
6230
6231 * stabsread.c (read_struct_type): Call do_cleanups along
6232 all return paths.
6233
7d266584
MR
62342013-05-30 Maciej W. Rozycki <macro@codesourcery.com>
6235
6236 * mips-linux-tdep.c: Adjust formatting throughout.
6237
0f900f54
TT
62382013-05-30 Tom Tromey <tromey@redhat.com>
6239
6240 * mipsread.c (read_alphacoff_dynamic_symtab): Call do_cleanups
6241 along all return paths.
6242
a991ac28
TT
62432013-05-30 Tom Tromey <tromey@redhat.com>
6244
6245 * symfile.c (find_separate_debug_file): Call do_cleanups
6246 along all return paths.
6247
1abaf042
TT
62482013-05-30 Tom Tromey <tromey@redhat.com>
6249
6250 * symtab.c (search_symbols): Introduce a null cleanup for
6251 'retval_chain'.
6252
edefe1da
TT
62532013-05-30 Tom Tromey <tromey@redhat.com>
6254
6255 * python/py-value.c (valpy_binop): Call do_cleanups before
6256 exiting loop.
6257
54f72dcc
TT
62582013-05-30 Tom Tromey <tromey@redhat.com>
6259
6260 * python/py-prettyprint.c (print_children): Remove extra
6261 do_cleanups call.
6262
af1c6971
TT
62632013-05-30 Tom Tromey <tromey@redhat.com>
6264
6265 * python/py-frame.c (frapy_read_var): Call do_cleanups along
6266 all return paths.
6267
b862ce75
TT
62682013-05-30 Tom Tromey <tromey@redhat.com>
6269
6270 * python/py-breakpoint.c (bppy_get_commands): Call do_cleanups
6271 along all return paths.
6272
e12fefc8
TT
62732013-05-30 Tom Tromey <tromey@redhat.com>
6274
6275 * cli/cli-logging.c (set_logging_redirect): Unconditionally
6276 call do_cleanups.
6277
4867f990
TT
62782013-05-30 Tom Tromey <tromey@redhat.com>
6279
6280 * varobj.c (c_value_of_root): Call do_cleanups along all
6281 return paths.
6282
4fd2d6af
TT
62832013-05-30 Tom Tromey <tromey@redhat.com>
6284
6285 * tracepoint.c (trace_dump_command): Unconditionally call
6286 do_cleanups.
6287
752eb8b4
TT
62882013-05-30 Tom Tromey <tromey@redhat.com>
6289
6290 * breakpoint.c (output_thread_groups, parse_cmd_to_aexpr): Call
6291 do_cleanups earlier.
6292
e42d0aa5
TT
62932013-05-30 Tom Tromey <tromey@redhat.com>
6294
6295 * machoread.c (macho_symfile_read): Assign first cleanup to
6296 'back_to'.
6297
4bbc010a
TT
62982013-05-30 Tom Tromey <tromey@redhat.com>
6299
6300 * m32r-rom.c (m32r_load): Call do_cleanups at all returns.
6301
b9635925
TT
63022013-05-30 Tom Tromey <tromey@redhat.com>
6303
6304 * mi/mi-main.c (list_available_thread_groups): Call do_cleanups.
6305
25f43500
TT
63062013-05-30 Tom Tromey <tromey@redhat.com>
6307
6308 * inf-ptrace.c (inf_ptrace_create_inferior): Unconditionally
6309 call discard_cleanups.
6310 (inf_ptrace_attach): Likewise.
6311
d6a2e54a
TT
63122013-05-30 Tom Tromey <tromey@redhat.com>
6313
6314 * remote-mips.c (mips_exit_debug): Call do_cleanups on all
6315 return paths.
6316 (mips_initialize): Likewise.
6317 (common_open): Call do_cleanups.
6318
48be7c1b
TT
63192013-05-30 Tom Tromey <tromey@redhat.com>
6320
6321 * utils.c (internal_vproblem): Call do_cleanups.
6322
e61727ab
TT
63232013-05-30 Tom Tromey <tromey@redhat.com>
6324
6325 * linespec.c (find_linespec_symbols): Don't reassign to 'cleanup'.
6326
b81b921f
TT
63272013-05-30 Tom Tromey <tromey@redhat.com>
6328
6329 * cli/cli-script.c (setup_user_args): Don't return after error.
6330
fe48dfb1
TT
63312013-05-30 Tom Tromey <tromey@redhat.com>
6332
6333 * somread.c (som_symtab_read): Call do_cleanups.
6334
27833de7
TT
63352013-05-30 Tom Tromey <tromey@redhat.com>
6336
6337 * printcmd.c (print_command_1): Unconditionally call do_cleanups.
6338
5b3fca71
TT
63392013-05-30 Tom Tromey <tromey@redhat.com>
6340
6341 * cli/cli-cmds.c (cd_command, alias_command): Call do_cleanups.
6342 * cli/cli-dump.c (restore_binary_file): Call do_cleanups.
6343 * interps.c (interpreter_exec_cmd): Call do_cleanups.
6344 * source.c (show_substitute_path_command): Call do_cleanups.
6345 (unset_substitute_path_command, set_substitute_path_command):
6346 Likewise.
6347 * symfile.c (load_command): Call do_cleanups.
6348
af83e3f8
TT
63492013-05-30 Tom Tromey <tromey@redhat.com>
6350
6351 * contrib/cleanup_check.py: New file.
6352 * contrib/gcc-with-excheck: Add option parsing.
6353
564eac42
JB
63542013-05-30 Joel Brobecker <brobecker@adacore.com>
6355
6356 * windows-nat.c (windows_delete_thread): Add missing space
6357 in cast expression.
6358
47902076
HAQ
63592013-05-30 Hafiz Abid Qadeer <abidh@codesourcery.com>
6360
6361 * inferior.c (top level): Include tilde.h.
6362 (add_inferior_command): Call tilde_expand on the value of 'exec'
6363 argument.
6364
23da373a
YQ
63652013-05-30 Pedro Alves <pedro@codesourcery.com>
6366 Yao Qi <yao@codesourcery.com>
6367
6368 * tracepoint.c (encode_actions_1): Remove parameter 't'.
6369 Caller update.
6370 (encode_actions): Likewise.
6371 * remote.c (remote_download_tracepoint): Caller update.
6372 * tracepoint.h (encode_actions): Update declaration.
6373
a6e6f791
PA
63742013-05-30 Pedro Alves <palves@redhat.com>
6375
6376 * python/python-internal.h (gdb_Py_DECREF): Cast OP to PyObject
6377 pointer.
6378
36d25514
YQ
63792013-05-30 Yao Qi <yao@codesourcery.com>
6380
6381 * remote.c (remote_check_symbols): Remove unused parameter
6382 'objfile'.
6383 Declaration update.
6384 (remote_start_remote, remote_new_objfile): Caller update.
6385
62a813cc
YQ
63862013-05-30 Yao Qi <yao@codesourcery.com>
6387
6388 * mi/mi-cmds.c (mi_cmds): Define MI command
6389 '-exec-arguments' by macro DEF_MI_CMD_CLI_1 instead of
6390 DEF_MI_CMD_CLI.
6391
28439a30
PA
63922013-05-29 Pedro Alves <palves@redhat.com>
6393
6394 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint)
6395 (remote_insert_watchpoint, remote_remove_watchpoint)
6396 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint)
6397 (remote_verify_memory, compare_sections_command)
6398 (remote_search_memory): Set the general process/thread on the
6399 remote side.
6400
6ac1c082
PA
64012013-05-29 Pedro Alves <palves@redhat.com>
6402
6403 * aarch64-tdep.c: Don't include "features/aarch64-without-fpu.c".
6404 (_initialize_aarch64_tdep): Don't call
6405 initialize_tdesc_aarch64_without_fpu.
6406 * features/Makefile (WHICH): Remove reference to
6407 aarch64-without-fpu.
6408 * features/aarch64-without-fpu.c: Delete file.
6409 * regformats/aarch64-without-fpu.dat: Delete file.
6410
a73e3634
YQ
64112013-05-28 Yao Qi <yao@codesourcery.com>
6412
6413 * tracepoint.c (stringify_collection_list): Remove parameter
6414 'string'.
6415 (encode_actions): Caller update. Remove local variables.
6416
c0ea94eb
YQ
64172013-05-24 Yao Qi <yao@codesourcery.com>
6418
6419 * tracepoint.c (TFILE_PID): Remove.
6420 (tfile_open): Don't add thread and inferior.
6421 (tfile_close): Don't set 'inferior_ptid'. Don't call
6422 exit_inferior_silent.
6423 (tfile_thread_alive): Remove.
6424 (init_tfile_ops): Don't set field 'to_thread_alive' of
6425 tfile_ops.
6426
20d7f211
DE
64272013-05-23 Doug Evans <dje@google.com>
6428
6429 * contrib/cc-with-tweaks.sh (-p): Handle no dwo files.
6430
8658d16d
PA
64312013-05-23 Pedro Alves <palves@redhat.com>
6432
6433 * common/filestuff.c [USE_WIN32API]: Define HAVE_SOCKETS.
6434 [HAVE_SYS_SOCKET_H]: Define HAVE_SOCKETS.
6435 (socket_mark_cloexec, gdb_socketpair_cloexec, gdb_socket_cloexec):
6436 Only define if HAVE_SOCKETS is defined.
6437 * configure.ac: Check for sys/socket.h.
6438 * config.in, configure: Regenerate.
6439
21aa081e
PA
64402013-05-23 Pedro Alves <palves@redhat.com>
6441
6442 * dwarf2read.c (create_dwp_hash_table, create_dwo_in_dwp)
6443 (open_and_init_dwp_file): Use %s/pulongest instead of %u for
6444 printing uint32_t variables.
6445
c2d6af84
PA
64462013-05-23 Pedro Alves <palves@redhat.com>
6447
6448 * NEWS: Mention GDBserver range stepping support.
6449
c1e36e3e
PA
64502013-05-23 Yao Qi <yao@codesourcery.com>
6451 Pedro Alves <palves@redhat.com>
6452
6453 * gdbthread.h (struct thread_control_state) <may_range_step>: New
6454 field.
6455 * infcmd.c (step_once, until_next_command): Enable range stepping.
6456 * infrun.c (displaced_step_prepare): Disable range stepping.
6457 (resume): Disable range stepping if stepping over a breakpoint or
6458 we have software watchpoints. If range stepping is enabled,
6459 assert the thread is in the stepping range.
6460 (clear_proceed_status_thread): Clear may_range_step.
6461 (handle_inferior_event): Disable range stepping as soon as we know
6462 the thread that hit the event. Re-enable it whenever we're going
6463 to step with a step range.
6464 * remote.c (struct vCont_action_support) <r>: New field.
6465 (use_range_stepping): New global.
6466 (remote_vcont_probe): Handle 'r' action.
6467 (append_resumption): Append an 'r' action if the thread may range
6468 step.
6469 (show_range_stepping): New function.
6470 (set_range_stepping): New function.
6471 (_initialize_remote): Call add_setshow_boolean_cmd to register the
6472 'set range-stepping' and 'show range-stepping' commands.
6473 * NEWS: Mention range stepping, the new vCont;r action, and the
6474 new "set/show range-stepping" commands.
6475
d458bd84
PA
64762013-05-23 Yao Qi <yao@codesourcery.com>
6477 Pedro Alves <palves@redhat.com>
6478
6479 * remote.c (struct vCont_action_support): New struct.
6480 (struct remote_state) <support_vCont_t>: Remove field.
6481 <vCont_actions_support>: New field.
6482 (remote_vcont_probe, remote_stop_ns): Update.
6483
ce4c476a
PA
64842013-05-23 Yao Qi <yao@codesourcery.com>
6485 Pedro Alves <palves@redhat.com>
6486
6487 * gdbthread.h (pc_in_thread_step_range): New declaration.
6488 * thread.c (pc_in_thread_step_range): New function.
6489 * infrun.c (handle_inferior_event): Use it.
6490
ce70887a
JB
64912013-05-23 Joel Brobecker <brobecker@adacore.com>
6492
6493 * mi/mi-cmd-break.c (mi_argv_to_format): Use xsnprintf instead
6494 of sprintf.
6495
55b87a52
KS
64962013-05-22 Keith Seitz <keiths@redhat.com>
6497
6498 * ada-lang.c (is_known_support_routine): Add explicit free of
6499 'func_name' from find_frame_funname.
6500 (ada_unhandled_exception_name_addr_from_raise): Add cleanups
6501 for func_name from find_frame_funname.
6502 * python/py-frame.c (frapy_name): Add explicit free of
6503 'name' from find_frame_funname.
6504 * stack.c (find_frame_funname): Add comment explaining that
6505 funcp must be freed by the caller.
6506 Return copy of symbol names instead of pointers.
6507 (print_frame): Add a cleanup for 'funname' from
6508 find_frame_funname.
6509 * stack.h (find_frame_funname): Remove "const" from
6510 'funname' parameter.
6511
5f2e6b00
TT
65122013-05-22 Tom Tromey <tromey@redhat.com>
6513
6514 PR c++/15401:
6515 * c-valprint.c (c_value_print): Use value_addr for
6516 references. Convert back to reference type with value_ref.
6517
d85c4847
EZ
65182013-05-22 Eli Zaretskii <eliz@gnu.org>
6519
6520 * windows-nat.c (handle_unload_dll): Don't call solib_add for the
6521 unloaded DLL, it will be done by handle_solib_event. See
6522 http://sourceware.org/ml/gdb-patches/2013-05/msg00713.html for the
6523 details.
6524
54eb231c
PM
65252013-05-22 Phil Muldoon <pmuldoon@redhat.com>
6526
6527 * ui-out.c: Create typedef ui_out_level_p and define vector
6528 operations for that type.
6529 (struct ui_out): Use a vector instead of an array.
6530 (current_level): Return level from a vector.
6531 (push_level): Create a level in a vector.
6532 (pop_level): Delete a level in a vector.
6533 (ui_out_new): Create initial level zero level, and store in a
6534 vector.
6535 (ui_out_destroy): Add vector cleanup.
6536
ac90359c
PA
65372013-05-22 Pedro Alves <palves@redhat.com>
6538
6539 * python/python-internal.h (gdb_Py_DECREF): Tag with
6540 "ARI: editCase function".
6541
6dcc1893
PP
65422013-05-21 Paul Pluzhnikov <ppluzhnikov@google.com>
6543
6544 * solib-svr4.c (svr4_free_so): Protect against NULL dereference.
6545
c8c735b9
PA
65462013-05-21 Pedro Alves <palves@redhat.com>
6547
6548 * python/py-prettyprint.c (apply_val_pretty_printer): Check
6549 whether PRINTER is NULL before installing a Py_DECREF cleanup.
6550 * python/py-utils.c (py_decref): Don't check for NULL before
6551 calling Py_DECREF.
6552
1915daeb
PA
65532013-05-21 Pedro Alves <palves@redhat.com>
6554
6555 * python/py-utils.c (py_decref): Remove extra braces.
6556 (gdb_pymodule_addobject): Remove extra braces.
6557 * python-internal.h (gdb_Py_DECREF): New static inline function.
6558 (Py_DECREF): Redefine as calling gdb_Py_DECREF.
6559
bd9673a4
PW
65602013-05-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6561
6562 * breakpoints.c (detach_breakpoints): Do not
6563 detach breakpoints locations with loc_type bp_loc_other.
6564
ff6009d0
JK
65652013-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6566
6567 Workaround Python 2.6.
6568 * python/py-utils.c (gdb_pymodule_addobject): Wrap Py_DECREF into
6569 a block.
6570
3641da11
JK
65712013-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6572
6573 Code cleanup: constification.
6574 * solib.c (solib_ops): Make return type and ops variable type const.
6575 (set_solib_ops): Make the new_ops parameter and ops variable const.
6576 (solib_find, solib_map_sections, clear_so, free_so, update_solib_list)
6577 (solib_add, solib_keep_data_in_core, clear_solib)
6578 (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
6579 (reload_shared_libraries, solib_global_lookup): Make the ops variable
6580 const.
6581 * solib.h (set_solib_ops): Make the new_ops parameter const.
6582
776af39e
JB
65832013-05-21 Joel Brobecker <brobecker@adacore.com>
6584
6585 * data-directory/Makefile.in (SYSTEM_GDBINIT_SRCDIR): New
6586 variable.
6587 (VPATH): Add SYSTEM_GDBINIT_SRCDIR.
6588 (SYSTEM_GDBINIT_DIR, SYSTEM_GDBINIT_INSTALL_DIR)
6589 (SYSTEM_GDBINIT_FILES): New variables.
6590 (all): Add stamp-system-gdbinit.
6591 (stamp-system-gdbinit): New rule.
6592 (clean-system-gdbinit, install-system-gdbinit)
6593 (uninstall-system-gdbinit): New rules. Make them .PHONY.
6594 (install-only): Add dependency on install-system-gdbinit.
6595 (uninstall): Add dependency on uninstall-system-gdbinit.
6596 (clean): Add dependency on clean-system-gdbinit.
6597 * system-gdbinit/elinos.py: New file.
6598 * system-gdbinit/wrs-linux.py: New file.
6599
1509e573
JB
66002013-05-21 Joel Brobecker <brobecker@adacore.com>
6601
6602 * ada-lang.c (old_renaming_is_invisible): Fix cleanup leak.
6603
c5867ab6
HZ
66042013-05-21 Hui Zhu <hui@codesourcery.com>
6605
6606 * breakpoint.c (dprintf_breakpoint_ops): Remove its static.
6607 * breakpoint.h (dprintf_breakpoint_ops): Add extern.
6608 * mi/mi-cmd-break.c (ctype.h): New include.
6609 (gdb_obstack.h): New include.
6610 (mi_argv_to_format, mi_cmd_break_insert_1): New.
6611 (mi_cmd_break_insert): Call mi_cmd_break_insert_1.
6612 (mi_cmd_dprintf_insert): New.
6613 * mi/mi-cmds.c (mi_cmds): Add "dprintf-insert".
6614 * mi/mi-cmds.h (mi_cmd_dprintf_insert): New extern.
6615
7d38e38f
TT
66162013-05-20 Tom Tromey <tromey@redhat.com>
6617
6618 * python/py-prettyprint.c (search_pp_list): Decref 'attr'.
6619
97b77b39
TT
66202013-05-20 Tom Tromey <tromey@redhat.com>
6621
6622 * python/py-value.c (valpy_get_dynamic_type): Simplify
6623 dynamic_type assignment. Use Py_XINCREF.
6624
53e66479
TT
66252013-05-20 Tom Tromey <tromey@redhat.com>
6626
6627 * python/py-type.c (typy_fields): Unconditionally decref 'r'.
6628
dcf87832
TT
66292013-05-20 Tom Tromey <tromey@redhat.com>
6630
6631 * python/py-frame.c (frapy_older, frapy_newer, gdbpy_newest_frame)
6632 (gdbpy_selected_frame): Move object-construction code
6633 out of TRY_CATCH.
6634
aa36459a
TT
66352013-05-20 Tom Tromey <tromey@redhat.com>
6636
6637 * python/py-arch.c (gdbpy_initialize_arch): Use
6638 gdb_pymodule_addobject.
6639 * python/py-block.c (gdbpy_initialize_blocks): Use
6640 gdb_pymodule_addobject.
6641 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Use
6642 gdb_pymodule_addobject.
6643 * python/py-cmd.c (gdbpy_initialize_breakpoints): Use
6644 gdb_pymodule_addobject.
6645 * python/py-event.c (gdbpy_initialize_event_generic): Use
6646 gdb_pymodule_addobject.
6647 * python/py-evtregistry.c (gdbpy_initialize_eventregistry): Use
6648 gdb_pymodule_addobject.
6649 * python/py-evts.c (add_new_registry): Use
6650 gdb_pymodule_addobject.
6651 (gdbpy_initialize_py_events): Likewise.
6652 * python/py-finishbreakpoint.c
6653 (gdbpy_initialize_finishbreakpoints): Use
6654 gdb_pymodule_addobject.
6655 * python/py-frame.c (gdbpy_initialize_frames): Use
6656 gdb_pymodule_addobject.
6657 * python/py-function.c (gdbpy_initialize_functions): Use
6658 gdb_pymodule_addobject.
6659 * python/py-inferior.c (gdbpy_initialize_inferior): Use
6660 gdb_pymodule_addobject.
6661 * python/py-infthread.c (gdbpy_initialize_thread): Use
6662 gdb_pymodule_addobject.
6663 * python/py-objfile.c (gdbpy_initialize_objfile): Use
6664 gdb_pymodule_addobject.
6665 * python/py-param.c (gdbpy_initialize_parameters): Use
6666 gdb_pymodule_addobject.
6667 * python/py-progspace.c (gdbpy_initialize_pspace): Use
6668 gdb_pymodule_addobject.
6669 * python/py-symbol.c (gdbpy_initialize_symbols): Use
6670 gdb_pymodule_addobject.
6671 * python/py-symtab.c (gdbpy_initialize_symtabs): Use
6672 gdb_pymodule_addobject.
6673 * python/py-type.c (gdbpy_initialize_types): Use
6674 gdb_pymodule_addobject.
6675 * python/py-utils.c (gdb_pymodule_addobject): New function.
6676 * python/py-value.c (gdbpy_initialize_values): Use
6677 gdb_pymodule_addobject.
6678 * python/python-internal.h (gdb_pymodule_addobject): Declare.
6679 * python/python.c (_initialize_python): Use
6680 gdb_pymodule_addobject.
6681
3d4a3c3e
TT
66822013-05-20 Tom Tromey <tromey@redhat.com>
6683
6684 * python/py-cmd.c (cmdpy_completer): Use explicit decref.
6685 * python/py-param.c (get_set_value, get_show_value): Use
6686 explicit decrefs.
6687 * python/python.c (start_type_printers, apply_type_printers):
6688 Use explicit decrefs.
6689
72ff8829
TT
66902013-05-20 Tom Tromey <tromey@redhat.com>
6691
6692 * python/py-evts.c (gdbpy_initialize_py_events): Don't
6693 incref the module.
6694
02146ba5
TT
66952013-05-20 Tom Tromey <tromey@redhat.com>
6696
6697 * python/python.c (gdbpy_run_events): Decref the result
6698 of PyObject_CallObject.
6699
33ee792f
TT
67002013-05-20 Tom Tromey <tromey@redhat.com>
6701
6702 * python/py-symtab.c (set_sal): Use
6703 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION. Return -1 on error.
6704 (symtab_and_line_to_sal_object): Update.
6705
fcb49fc8
TT
67062013-05-20 Tom Tromey <tromey@redhat.com>
6707
6708 * python/py-param.c (compute_enum_values): Decref 'item'.
6709
0646da15
TT
67102013-05-20 Tom Tromey <tromey@redhat.com>
6711
6712 * mi/mi-main.c: Include python-internal.h.
6713 (mi_cmd_list_features): Check gdb_python_initialized.
6714 * python/py-inferior.c (python_on_normal_stop, python_on_resume)
6715 (python_inferior_exit, python_new_objfile, add_thread_object)
6716 (delete_thread_object, py_free_inferior): Check
6717 gdb_python_initialized.
6718 * python/py-prettyprint.c (apply_val_pretty_printer): Check
6719 gdb_python_initialized.
6720 * python/py-type.c (save_objfile_types): Check
6721 gdb_python_initialized.
6722 * python/python-internal.h (gdb_python_initialized): Declare.
6723 * python/python.c (ensure_python_env): Throw exception if
6724 Python not initialized.
6725 (before_prompt_hook, source_python_script_for_objfile)
6726 (start_type_printers, apply_type_printers,
6727 free_type_printers): Check gdb_python_initialized.
6728 * varobj.c (varobj_get_display_hint)
6729 (dynamic_varobj_has_child_method, update_dynamic_varobj_children)
6730 (install_new_value_visualizer, varobj_set_visualizer)
6731 (value_get_print_value): Check gdb_python_initialized.
6732
999633ed
TT
67332013-05-20 Tom Tromey <tromey@redhat.com>
6734
6735 * python/py-arch.c (gdbpy_initialize_arch): Return 'int'.
6736 Check errors.
6737 * python/py-auto-load.c (gdbpy_initialize_auto_load): Return 'int'.
6738 * python/py-block.c (gdbpy_initialize_blocks): Return 'int'.
6739 Check errors.
6740 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Return 'int'.
6741 Check errors.
6742 * python/py-cmd.c (gdbpy_initialize_commands): Return 'int'.
6743 Check errors.
6744 * python/py-event.c (gdbpy_initialize_event): Return 'int'.
6745 Check errors.
6746 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Change generated
6747 init function to return 'int'.
6748 * python/py-evtregistry.c (gdbpy_initialize_eventregistry):
6749 Return 'int'. Check errors.
6750 * python/py-evts.c (gdbpy_initialize_py_events): Return 'int'.
6751 Check errors.
6752 * python/py-finishbreakpoint.c (gdbpy_initialize_finishbreakpoints):
6753 Return 'int'. Check errors.
6754 * python/py-frame.c (gdbpy_initialize_frames): Return 'int'.
6755 Check errors.
6756 * python/py-function.c (gdbpy_initialize_functions): Return 'int'.
6757 Check errors.
6758 * python/py-gdb-readline.c (gdbpy_initialize_gdb_readline):
6759 Check errors.
6760 * python/py-inferior.c (gdbpy_initialize_inferior): Return 'int'.
6761 Check errors.
6762 * python/py-infthread.c (gdbpy_initialize_thread): Return 'int'.
6763 Check errors.
6764 * python/py-lazy-string.c (gdbpy_initialize_lazy_string): Return 'int'.
6765 Check errors.
6766 * python/py-objfile.c (gdbpy_initialize_objfile): Return 'int'.
6767 Check errors.
6768 * python/py-param.c (gdbpy_initialize_parameters): Return 'int'.
6769 Check errors.
6770 * python/py-progspace.c (gdbpy_initialize_pspace): Return 'int'.
6771 Check errors.
6772 * python/py-symbol.c (gdbpy_initialize_symbols): Return 'int'.
6773 Check errors.
6774 * python/py-symtab.c (gdbpy_initialize_symtabs): Return 'int'.
6775 Check errors.
6776 * python/py-type.c (gdbpy_initialize_types): Return 'int'.
6777 Check errors.
6778 * python/py-value.c (gdbpy_initialize_values): Return 'int'.
6779 Check errors.
6780 * python/python-internal.h (gdbpy_initialize_auto_load,
6781 gdbpy_initialize_values, gdbpy_initialize_frames,
6782 gdbpy_initialize_symtabs, gdbpy_initialize_commands,
6783 gdbpy_initialize_symbols, gdbpy_initialize_symtabs,
6784 gdbpy_initialize_blocks, gdbpy_initialize_types,
6785 gdbpy_initialize_functions, gdbpy_initialize_pspace,
6786 gdbpy_initialize_objfile, gdbpy_initialize_breakpoints,
6787 gdbpy_initialize_finishbreakpoints,
6788 gdbpy_initialize_lazy_string, gdbpy_initialize_parameters,
6789 gdbpy_initialize_thread, gdbpy_initialize_inferior,
6790 gdbpy_initialize_eventregistry, gdbpy_initialize_event,
6791 gdbpy_initialize_py_events, gdbpy_initialize_stop_event,
6792 gdbpy_initialize_signal_event,
6793 gdbpy_initialize_breakpoint_event,
6794 gdbpy_initialize_continue_event,
6795 gdbpy_initialize_exited_event, gdbpy_initialize_thread_event,
6796 gdbpy_initialize_new_objfile_event, gdbpy_initialize_arch):
6797 Update. Use CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
6798 * python/python.c (gdb_python_initialized): New global.
6799 (gdbpy_initialize_events): Return 'int'. Check errors.
6800 (_initialize_python): Check errors. Set
6801 gdb_python_initialized.
6802
18868860
TT
68032013-05-20 Tom Tromey <tromey@redhat.com>
6804
6805 * python/py-finishbreakpoint.c (bpfinishpy_out_of_scope):
6806 Decref the reslut of PyObject_CallMethod.
6807
9f4ff0c2
TT
68082013-05-20 Tom Tromey <tromey@redhat.com>
6809
6810 * python/py-event.c (gdbpy_initialize_event_generic): Return
6811 early if PyType_Ready fails.
6812
0d3a2e8a
TT
68132013-05-20 Tom Tromey <tromey@redhat.com>
6814
6815 * python/py-type.c (make_fielditem): Add gdb_assert_not_reached
6816 as 'default' in the switch.
6817
b86af38a
TT
68182013-05-20 Tom Tromey <tromey@redhat.com>
6819
6820 * python/py-inferior.c (gdbpy_inferiors): Update. Hoist
6821 get_addr_from_python calls out of TRY_CATCH.
6822 (infpy_write_memory, infpy_search_memory): Likewise.
6823 * python/py-utils.c (get_addr_from_python): Return negative
6824 value on error. Use TRY_CATCH.
6825 * python/python-internal.h (get_addr_from_python): Use
6826 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
6827
c127ec58
TT
68282013-05-20 Tom Tromey <tromey@redhat.com>
6829
6830 * python/py-event.c (evpy_emit_event): Decref the
6831 result of PyObject_CallFunctionObjArgs.
6832
ba327838
TT
68332013-05-20 Tom Tromey <tromey@redhat.com>
6834
6835 * python/py-cmd.c (cmdpy_completer): Use iterator protocol.
6836 Correctly decref.
6837
d8191432
TT
68382013-05-20 Tom Tromey <tromey@redhat.com>
6839
6840 * python/py-cmd.c (cmdpy_init): Decref 'ds_obj'.
6841
5d153bd1
TT
68422013-05-20 Tom Tromey <tromey@redhat.com>
6843
6844 * python/py-event.h (gdbpy_initialize_event_generic): Use
6845 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
6846 * python/py-evts.c (add_new_registry): Use
6847 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
6848 * python/python-internal.h
6849 (CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION): New macro.
6850
56cc411c
TT
68512013-05-20 Tom Tromey <tromey@redhat.com>
6852
6853 * python/py-arch.c (archpy_disassemble): Update.
6854 * python/py-type.c (typy_get_composite, typy_lookup_typename)
6855 (typy_lookup_type): Use GDB_PY_HANDLE_EXCEPTION.
6856 * python/py-utils.c (gdbpy_convert_exception): Return 'void'.
6857 * python/python-internal.h (CPYCHECKER_SETS_EXCEPTION): New
6858 macro.
6859 (GDB_PY_HANDLE_EXCEPTION): Update.
6860 (gdbpy_convert_exception): Update. Use CPYCHECKER_SETS_EXCEPTION.
6861
8919e174
TT
68622013-05-20 Tom Tromey <tromey@redhat.com>
6863
6864 * python/python-internal.h (events_object_type): Remove.
6865
9b08f225
TT
68662013-05-20 Tom Tromey <tromey@redhat.com>
6867
f5aee5ee
AM
6868 * python/py-event.h (evpy_emit_event): Use
6869 CPYCHECKER_STEALS_REFERENCE_TO_ARG.
6870 * python/python-internal.h (CPYCHECKER_STEALS_REFERENCE_TO_ARG):
6871 New macro.
9b08f225 6872
f04010ff
TT
68732013-05-20 Tom Tromey <tromey@redhat.com>
6874
6875 * py-evtregistry.c (create_event_object): Decref
6876 eventregistry_object if PyList_New fails.
6877
3919fd96
TT
68782013-05-20 Tom Tromey <tromey@redhat.com>
6879
6880 * py-cmd.c (gdbpy_string_to_argv): Check result of
6881 PyList_New.
6882
0430e8cb
TT
68832013-05-20 Tom Tromey <tromey@redhat.com>
6884
6885 * python/python.c (before_prompt_hook): Add cleanup to
6886 decref 'hook'.
6887
764123e4
TT
68882013-05-20 Tom Tromey <tromey@redhat.com>
6889
6890 * python/py-function.c (fnpy_init): Decref result of
6891 PyObject_GetAttrString.
6892
634c58be
TT
68932013-05-20 Tom Tromey <tromey@redhat.com>
6894
6895 * python/py-threadevent.c (get_event_thread): Use
6896 CPYCHECKER_RETURNS_BORROWED_REF.
6897 * python/python-internal.h (CPYCHECKER_RETURNS_BORROWED_REF):
6898 New define.
6899 (pspace_to_pspace_object, objfile_to_objfile_object)
6900 (find_thread_object): Use it.
6901
62eec1a5
TT
69022013-05-20 Tom Tromey <tromey@redhat.com>
6903
6904 * python/py-arch.c (arch_object_type): Use
6905 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6906 * python/py-block.c (block_syms_iterator_object_type):
6907 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6908 * python/py-bpevent.c (breakpoint_event_object_type):
6909 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6910 * python/py-cmd.c (cmdpy_object_type): Use
6911 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6912 * python/py-continueevent.c (continue_event_object_type):
6913 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6914 * python/py-event.h (GDBPY_NEW_EVENT_TYPE):
6915 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6916 * python/py-events.h (thread_event_object_type):
6917 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6918 * python/py-evtregistry.c (eventregistry_object_type): Use
6919 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6920 * python/py-exitedevent.c (exited_event_object_type):
6921 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6922 * python/py-finishbreakpoint.c (finish_breakpoint_object_type):
6923 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6924 * python/py-function.c (fnpy_object_type): Use
6925 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6926 * python/py-inferior.c (inferior_object_type, membuf_object_type):
6927 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6928 * python/py-infthread.c (thread_object_type): Use
6929 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6930 * python/py-lazy-string.c (lazy_string_object_type):
6931 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6932 * python/py-newobjfileevent.c (new_objfile_event_object_type):
6933 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6934 * python/py-objfile.c (objfile_object_type): Use
6935 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6936 * python/py-param.c (parmpy_object_type):
6937 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6938 * python/py-progspace.c (pspace_object_type):
6939 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6940 * python/py-signalevent.c (signal_event_object_type):
6941 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6942 * python/py-symtab.c (symtab_object_type, sal_object_type): Use
6943 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6944 * python/py-type.c (type_object_type, field_object_type)
6945 (type_iterator_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6946 * python/py-internal.h (CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF): New
6947 define.
6948 (value_object_type, block_object_type, symbol_object_type)
6949 (event_object_type, stop_event_object_type, breakpoint_object_type)
6950 (frame_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6951
81ea8796
AT
69522013-05-20 Andreas Tobler <andreas@fgznet.ch>
6953
6954 * Makefile.in (ALL_TARGET_OBS): Add ppcfbsd-tdep.o.
6955 (ALLDEPFILES): Add ppcfbsd-nat.c and ppcfbsd-tdep.c.
6956
a2ce51a0
DE
69572013-05-20 Doug Evans <dje@google.com>
6958
6959 When reading CU, stay in DWO. Be more tolerent of bad debug info.
6960 For Fission.
6961 * dwarf2read.c (struct dwarf2_per_cu_data): New member
6962 reading_dwo_directly.
6963 (struct signatured_type): New member dwo_unit.
6964 (struct die_reader_specs): New member comp_dir.
6965 (create_signatured_type_table_from_index): Use malloc for
6966 all_type_units instead of objfile's obstack.
6967 (create_all_type_units): Ditto.
6968 (fill_in_sig_entry_from_dwo_entry): New function.
6969 (add_type_unit): New function.
6970 (lookup_dwo_signatured_type): New function.
6971 (lookup_dwp_signatured_type): New function.
6972 (lookup_signatured_type): New arg cu. All callers updated.
6973 (init_cu_die_reader): Initialize comp_dir.
6974 (read_cutu_die_from_dwo): New arg stub_comp_dir. All callers updated.
6975 Change assert of matching type signatures to call error on mismatch.
6976 (lookup_dwo_unit): Add assert.
6977 (init_tu_and_read_dwo_dies): New function.
6978 (init_cutu_and_read_dies): Call it.
6979 (build_type_unit_groups): Handle case of no type unit groups created.
6980 (hash_dwo_file, eq_dwo_file): Handle missing comp_dir.
6981 (lookup_dwo_cutu): Tweak complaint.
6982 (dwarf2_free_abbrev_table): Check for NULL abbrev_table.
6983 (dwarf2_per_objfile_free): Free all_type_units.
6984
a25cd31f
JB
69852013-05-20 Joel Brobecker <brobecker@adacore.com>
6986
6987 * windows-nat.c (handle_unload_dll): Add missing empty line.
6988
4d804846
JB
69892013-05-20 Joel Brobecker <brobecker@adacore.com>
6990
6991 * dwarf2read.c (prototyped_function_p): New function.
6992 (read_subroutine_type): Use it.
6993
1c432e72
JB
69942013-05-20 Joel Brobecker <brobecker@adacore.com>
6995
6996 * rs6000-aix-tdep.c: De-indent some example code provided
6997 as a comment.
6998
4feebbdd
EBM
69992013-05-17 Edjunior Machado <emachado@linux.vnet.ibm.com>
7000
7001 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Check if the
7002 region is ok for a hardware watchpoint using the new ptrace interface
7003 on Power servers.
7004
7d0c9981
DE
70052013-05-17 Doug Evans <dje@google.com>
7006
7007 * NEWS: Mention new maintenance commands check-symtabs, and
7008 expand-symtabs, and renamed check-psymtabs.
7009 * psymtab.c (maintenance_check_psymtabs): Renamed from
7010 maintenance_check_symtabs. Only process already-expanded symbol
7011 tables.
7012 (_initialize_psymtab): Update.
7013 * symmisc.c (maintenance_check_symtabs): New function.
7014 (maintenance_expand_name_matcher): New function
7015 (maintenance_expand_file_matcher): New function
7016 (maintenance_expand_symtabs): New function.
7017 (_initialize_symmisc): Add "mt check-symtabs" and "mt expand-symtabs"
7018 commands.
7019
6cbc7c3d
TT
70202013-05-17 Tom Tromey <tromey@redhat.com>
7021
7022 * python/py-inferior.c (infpy_read_memory): Don't call
7023 PyErr_SetString if PyObject_New fails.
7024 * python/py-frame.c (frame_info_to_frame_object): Don't call
7025 PyErr_SetString if PyObject_New fails.
7026
a48b32c0
L
70272013-05-17 Pavel Chupin <pavel.v.chupin@intel.com>
7028
7029 * acinclude.m4: Add check for dlopen in libdl.
7030 * configure.ac: Ditto.
7031 * configure: Regenerate.
7032
3de661e6
PM
70332013-05-17 Phil Muldoon <pmuldoon@redhat.com>
7034
7035 * frame.c (frame_stash): Convert to htab.
7036 (frame_addr_hash): New function.
7037 (frame_addr_hash_eq): New function.
7038 (frame_stash_create): Convert function to create
7039 a hash table.
7040 (frame_stash_add): Convert function to add an entry to a hash
7041 table.
7042 (frame_stash_find): Convert function to search the hash table.
7043 (frame_stash_invalidate): Convert function to empty the hash
7044 table.
7045 (get_frame_id): Only add to stash if a frame_id is created.
7046 (_initialize_frame): Call frame_stash_create.
7047
bb4168a9 70482013-05-16 Yue Lu <hacklu.newborn@gmail.com> (tiny change)
036c3acb
TS
7049
7050 * configure.ac: Ensure MIG is available when building for GNU Hurd
7051 hosts.
7052 * configure: Regenerate.
7053
d1be3247
JB
70542013-05-16 Joel Brobecker <brobecker@adacore.com>
7055
7056 * dwarf2read.c (set_cu_language): Add DW_LANG_UPC handling.
7057
b8fea896
JB
70582013-05-16 Joel Brobecker <brobecker@adacore.com>
7059
7060 * ada-lang.c (ada_make_symbol_completion_list): Make sure
7061 all cleanups are done before returning from this function.
7062
af880d85
JB
70632013-05-15 Joel Brobecker <brobecker@adacore.com>
7064
7065 * utils.h: #include "exceptions.h".
7066 (enum errors): Remove partial declaration.
7067
356a5233
JB
70682013-05-15 Joel Brobecker <brobecker@adacore.com>
7069
7070 * gdbarch.sh (core_xfer_shared_libraries_aix): New method.
7071 * gdbarch.h, gdbarch.c: Regenerate.
7072 * corelow.c (core_xfer_partial): Add TARGET_OBJECT_LIBRARIES_AIX
7073 handling.
7074
7075 * rs6000-aix-tdep.h: New file.
7076 * Makefile.in (HFILES_NO_SRCDIR): Add rs6000-aix-tdep.h.
7077 * rs6000-aix-tdep.c: Include "rs6000-aix-tdep.h" and
7078 "xml-utils.h".
7079 (struct field_info, struct ld_info_desc): New types.
7080 (ld_info32_desc, ld_info64_desc): New static constants.
7081 (struct ld_info): New type.
7082 (rs6000_aix_extract_ld_info): New function.
7083 (rs6000_aix_shared_library_to_xml): Likewise.
7084 (rs6000_aix_ld_info_to_xml): Likewise.
7085 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
7086 (rs6000_aix_init_osabi): Add call to
7087 set_gdbarch_core_xfer_shared_libraries_aix.
7088 * rs6000-nat.c: Add "rs6000-aix-tdep.h" include.
7089 Remove "xml-utils.h" include.
7090 (LdInfo): Delete typedef.
7091 (ARCH64_DECL, LDI_FIELD, LDI_NEXT, LDI_FD, LDI_FILENAME):
7092 Delete macros.
7093 (rs6000_ptrace_ldinfo): Change return type to gdb_byte *.
7094 Adjust code accordingly.
7095 (rs6000_core_ldinfo): Delete, folded into
7096 rs6000_aix_core_xfer_shared_libraries_aix.
7097 (rs6000_xfer_shared_library): Delete.
7098 (rs6000_xfer_shared_libraries): Reimplement.
7099
742ce053
MM
71002013-05-15 Markus Metzger <markus.t.metzger@intel.com>
7101
7102 * record.c (record_goto_cmdlist): New.
7103 (cmd_record_goto): Split into this ...
7104 (cmd_record_goto_begin): ... this
7105 (cmd_record_goto_end): ... and this.
7106 (_initialize_record): Change "record goto" to prefix command.
7107 Add commands for "record goto begin" and "record goto end".
7108 Add an alias for "record goto start" to "record goto begin".
7109
e93ba630
JK
71102013-05-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7111
7112 * linespec.c (convert_linespec_to_sals): New comment for
7113 SOURCE_FILENAME assignment.
7114
5821aace
JK
71152013-05-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7116
7117 * cleanups.c (restore_my_cleanups): Replace gdb_assert by
7118 internal_warning.
7119
a1b8c4cc
TT
71202013-05-14 Tom Tromey <tromey@redhat.com>
7121
7122 * eval.c (parse_and_eval_long): Make 'exp' const.
7123 * value.h (parse_and_eval_long): Update.
7124
23b3a2c3
TT
71252013-05-14 Tom Tromey <tromey@redhat.com>
7126
7127 * ui-file.c (gdb_fopen): Make arguments const.
7128 * ui-file.h (gdb_fopen): Make arguments const.
7129
ca623f82
TT
71302013-05-14 Tom Tromey <tromey@redhat.com>
7131
7132 * remote.c (remote_set_trace_notes): Make arguments const.
7133 * target.c (update_current_target): Update cast.
7134 * target.h (to_set_trace_notes): Make arguments const.
7135
503ebb2c
TT
71362013-05-14 Tom Tromey <tromey@redhat.com>
7137
7138 * go32-nat.c (go32_terminal_info): Make 'args' const.
7139 * inferior.h (child_terminal_info): Update.
7140 * inflow.c (child_terminal_info): Make 'args' const.
7141 * target.c (default_terminal_info): Make 'args' const.
7142 (debug_to_terminal_save_ours): Likewise.
7143 * target.h (struct target_ops) <to_terminal_info>: Make argument
7144 const.
7145
85e1311a
TT
71462013-05-13 Tom Tromey <tromey@redhat.com>
7147
7148 * gcore.c (create_gcore_bfd): Make 'filename' const.
7149 * gcore.h (create_gcore_bfd): Make 'filename' const.
7150 * record-full.c (record_full_save): Make 'recfilename' const.
7151 * target.c (target_save_record): Make 'filename' const.
7152 * target.h (struct target_ops) <to_save_record>: Make 'filename'
7153 const.
7154 (target_save_record): Likewise.
7155
d62bfeaf
TT
71562013-05-13 Tom Tromey <tromey@redhat.com>
7157
f5aee5ee 7158 PR gdb/15338:
d62bfeaf
TT
7159 * dwarf2read.c (dwarf2_record_block_ranges): Ensure that the
7160 ranges section has been read.
7161
ac1ca910
TT
71622013-05-13 Tom Tromey <tromey@redhat.com>
7163
7164 PR exp/15364:
7165 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
7166 STRUCTOP_PTR>: Return a not_lval value for
7167 EVAL_AVOID_SIDE_EFFECTS.
7168 * opencl-lang.c (evaluate_subexp_opencl): Return a not_lval value
7169 for EVAL_AVOID_SIDE_EFFECTS.
7170
36d1c68c
JB
71712013-05-13 Joel Brobecker <brobecker@adacore.com>
7172
7173 * rs6000-aix-tdep.c (rs6000_push_dummy_call): Convert
7174 floating point registers to register type before storing
7175 value.
7176 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call):
7177 Likewise.
7178
21ff4686
TT
71792013-05-10 Joel Brobecker <brobecker@adacore.com>
7180 Tom Tromey <tromey@redhat.com>
7181
7182 * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
7183 New functions.
7184 * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
7185 Declare.
7186 * darwin-nat.c (darwin_pre_ptrace): Use mark_fd_no_cloexec.
7187 (darwin_ptrace_him): Use unmark_fd_no_cloexec.
7188 * inf-ttrace.c (do_cleanup_pfds): Use unmark_fd_no_cloexec.
7189 (inf_ttrace_prepare): Use mark_fd_no_cloexec.
7190
d3685d60
TT
71912013-05-10 Freddie Chopin <freddie_chopin@op.pl>
7192 Tom Tromey <tromey@redhat.com>
7193
7194 PR build/15414:
7195 * configure: Rebuild.
7196 * configure.ac (build_warnings): Do not use -Wformat-nonliteral
7197 with -Wno-format.
7198
eb9fe518
PA
71992013-05-10 Pedro Alves <palves@redhat.com>
7200
7201 * remote.c (_initialize_remote): Fix spelling of
7202 qXfer:traceframe-info:read packet in packet config command.
7203
9779ab84
PA
72042013-05-10 David Taylor <dtaylor@emc.com>
7205
7206 PR remote/15455
7207
7208 * remote.c (remote_trace_set_readonly_regions): Do not overwrite
7209 "QTro" at start of packet.
7210
060cfbef
JB
72112013-05-10 Joel Brobecker <brobecker@adacore.com>
7212
7213 * solib-aix.c (solib_aix_relocate_section_addresses):
7214 For the .bss section action, apply the same offset as
7215 the .data section.
7216
ab1c4e88
JB
72172013-05-10 Joel Brobecker <brobecker@adacore.com>
7218
7219 * solib-aix.c (solib_aix_relocate_section_addresses):
7220 Remove FIXME comment.
7221
c1357578
JB
72222013-05-10 Joel Brobecker <brobecker@adacore.com>
7223
7224 PR tdep/15420:
7225 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
7226 New functions, directly copied from sparc-sol-thread.c.
7227 * sparc-sol-thread.c: Delete.
7228 * configure.ac: Remove code handling sparc-solaris-thread.c.
7229 * configure: Regenerate.
7230
1e611234
PM
72312013-05-10 Phil Muldoon <pmuldoon@redhat.com>
7232
7233 * stack.c (backtrace_command_1): Add "no-filters", and Python frame
7234 filter logic.
7235 (backtrace_command): Add "no-filters" option parsing.
7236 (_initialize_stack): Alter help to reflect "no-filters" option.
7237 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-framefilter.o
7238 (SUBDIR_PYTHON_SRCS): Add py-framefilter.c
7239 (py-frame.o): Add target
7240 * data-directory/Makefile.in (PYTHON_DIR): Add Python frame
7241 filter files.
7242 * python/python.h: Add new frame filter constants, and flag enum.
7243 (apply_frame_filter): Add definition.
7244 * python/python.c (apply_frame_filter): New non-Python
7245 enabled function.
7246 * python/py-utils.c (py_xdecref): New function.
7247 (make_cleanup_py_xdecref): Ditto.
7248 * python/py-objfile.c: Declare frame_filters dictionary.
7249 (objfpy_dealloc): Add frame_filters dealloc.
7250 (objfpy_new): Initialize frame_filters attribute.
7251 (objfile_to_objfile_object): Ditto.
7252 (objfpy_get_frame_filters): New function.
7253 (objfpy_set_frame_filters): New function.
7254 * python/py-progspace.c: Declare frame_filters dictionary.
7255 (pspy_dealloc): Add frame_filters dealloc.
7256 (pspy_new): Initialize frame_filters attribute.
7257 (pspacee_to_pspace_object): Ditto.
7258 (pspy_get_frame_filters): New function.
7259 (pspy_set_frame_filters): New function.
7260 * python/py-framefilter.c: New file.
7261 * python/lib/gdb/command/frame_filters.py: New file.
7262 * python/lib/gdb/frames.py: New file.
7263 * python/lib/gdb/__init__.py: Initialize global frame_filters
7264 dictionary
7265 * python/lib/gdb/FrameDecorator.py: New file.
7266 * python/lib/gdb/FrameIterator.py: New file.
7267 * mi/mi-cmds.c (mi_cmds): Add frame filters command.
7268 * mi/mi-cmds.h: Declare.
7269 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Add
7270 --no-frame-filter logic, and Python frame filter logic.
7271 (stack_enable_frame_filters): New function.
7272 (parse_no_frame_option): Ditto.
7273 (mi_cmd_stack_list_frames): Add --no-frame-filter and Python frame
7274 filter logic.
7275 (mi_cmd_stack_list_locals): Ditto.
7276 (mi_cmd_stack_list_args): Ditto.
7277 (mi_cmd_stack_list_variables): Ditto.
7278 * NEWS: Add frame filter note.
7279
2cb9c859
DE
72802013-05-09 Doug Evans <dje@google.com>
7281
6bf667bb
DE
7282 * symfile.c (syms_from_objfile_1): Delete args offsets, num_offsets.
7283 All callers updated.
7284 (syms_from_objfile): Ditto. Make static.
7285 (symbol_file_add_with_addrs): Renamed from
7286 symbol_file_add_with_addrs_or_offsets. Delete args offsets,
7287 num_offsets. All callers updated.
7288 * symfile.h (syms_from_objfile): Delete.
7289
2cb9c859
DE
7290 * symfile.c (decrement_reading_symtab): Add assert.
7291 (increment_reading_symtab): Ditto.
7292
40aea477
JB
72932013-05-09 Joel Brobecker <brobecker@adacore.com>
7294
7295 * source.c (forward_search_command): Replace call to getc
7296 by call to fgetc.
7297 (reverse_search_command): Likewise.
7298
680d1742
DE
72992013-05-08 Doug Evans <dje@google.com>
7300
7301 * psymtab.c (expand_symtabs_matching_via_partial): Fix file name
7302 matching test.
7303
17e760ae
JB
73042013-05-08 Joel Brobecker <brobecker@adacore.com>
7305
7306 * sol-thread.c (info_cb): Factorize the code a little.
7307
c0f5f490
JB
73082013-05-08 Joel Brobecker <brobecker@adacore.com>
7309
7310 * sol-thread.c (info_cb): Rework the output of the "maintenance
7311 info sol-threads" command a bit.
7312
5d74e061
JB
73132013-05-08 Joel Brobecker <brobecker@adacore.com>
7314
7315 * sol-thread.c (info_cb) [ti.ti_state == TD_THR_SLEEP]:
7316 Replace ti.ti_startfunc by ti.ti_pc.
7317
814a3ff7
JB
73182013-05-08 Joel Brobecker <brobecker@adacore.com>
7319
7320 * solib-aix.c (solib_aix_free_library_list): New function
7321 for the case where HAVE_LIBEXPAT is not defined.
7322
58ce7251
SDJ
73232013-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
7324
7325 PR breakpoints/15413:
7326 * breakpoint.c (condition_completer): Simplify the code to
7327 disconsider multiple locations of breakpoints when completing the
7328 "condition" command.
7329
be8b1ea6
PM
73302013-05-07 Pierre Muller <muller@sourceware.org>
7331
7332 * common/linux-btrace.c: ARI fix: Include "gdb_wait.h"
7333 instead of <sys/wait.h>.
7334
1e52bda6
PM
73352013-05-07 Pierre Muller <muller@sourceware.org>
7336
7337 * nios2-tdep.c (nios2_dwarf_reg_to_regnum): ARI fix: remove
7338 trailing new line from warning message.
7339
27fd0c6b
PM
73402013-05-07 Pierre Muller <muller@sourceware.org>
7341
7342 * contrib/ari/gdb_ari.sh (SOLIB_ADD, SOLIB_CREATE_INFERIOR_HOOK)
7343 (PC_SOLIB): Change type from ari_deprecate to ari_regression.
7344
e228ac87
JB
73452013-05-07 Joel Brobecker <brobecker@adacore.com>
7346
7347 * rs6000-nat.c (rs6000_core_ldinfo): Remove '\n' at end of
7348 error message (ARI fix).
7349
73502013-05-07 Joel Brobecker <brobecker@adacore.com>
7351
7352 * features/library-list-aix.dtd: Replace library-list by
7353 library-list-aix.
7354 * rs6000-nat.c: Replace library-list by library-list-aix
7355 throughout.
7356 * solib-aix.c: Likewise.
7357
73582013-05-07 Joel Brobecker <brobecker@adacore.com>
7359
7360 * target.h (enum target_object) [TARGET_OBJECT_LIBRARIES_AIX]:
7361 Renames TARGET_OBJECT_AIX_LIBRARIES.
7362 * rs6000-nat.c: Replace TARGET_OBJECT_AIX_LIBRARIES with
7363 TARGET_OBJECT_LIBRARIES_AIX throughout.
7364 * solib-aix.c: Likwise.
7365
26a4dda9
YQ
73662013-05-07 Yao Qi <yao@codesourcery.com>
7367
7368 * solib-dsbt.c (struct dsbt_info) <enable_break2_done>: Remove.
7369 (get_dsbt_info, enable_break, dsbt_clear_solib): Update.
7370
3582629f
YQ
73712013-05-07 Yao Qi <yao@codesourcery.com>
7372
7373 * solib-dsbt.c (enable_break): Declare.
7374 (dsbt_current_sos): Remove call to enable_break2.
7375 (enable_break2): Rename to enable_break. Set solib breakpoint
7376 on '_dl_debug_state'.
7377 (enable_break): Remove.
7378
aacbb8a5
LM
73792013-05-07 Luis Machado <lgustavo@codesourcery.com>
7380
7381 * ppc-linux-nat.c (ppc_linux_new_thread): Clear the new thread's
7382 debug state prior to replicating existing hardware watchpoints or
7383 breakpoints.
7384
0c013353
JK
73852013-05-07 Jan Kratochvil <jan.kratochvil@redhat.com>
7386
7387 * gcore.c (gcore_create_callback): Ignore sections with
7388 separate_debug_objfile_backlink != NULL.
7389
a1217d97
SL
73902013-05-06 Sandra Loosemore <sandra@codesourcery.com>
7391 Andrew Jenner <andrew@codesourcery.com>
7392 Chung-Lin Tang <cltang@codesourcery.com>
7393 Julian Brown <julian@codesourcery.com>
7394
7395 Based on the nios2-elf port from Altera Corporation.
7396
7397 * Makefile.in (ALL_TARGET_OBS): Add nios2-tdep.o and
7398 nios2-linux-tdep.o.
7399 (HFILES_NO_SRCDIR): Add nios2-tdep.h.
7400 (ALLDEPFILES): Add nios2-tdep.c and nios2-linux-tdep.c.
7401 * configure.tgt: Add nios2*-*-linux* and nios2*-*-* targets.
7402 * nios2-tdep.h: New.
7403 * nios2-tdep.c: New.
7404 * nios2-linux-tdep.c: New.
7405 * features/Makefile (WHICH): Add nios2-linux.
7406 (nios2-linux-expedite): Set.
7407 * features/nios2-cpu.xml: New.
7408 * features/nios2.xml: New.
7409 * features/nios2-linux.xml: New.
7410 * features/nios2.c: New (autogenerated).
7411 * features/nios2-linux.c: New (autogenerated).
7412 * regformats/nios2-linux.dat: New (autogenerated).
7413 * NEWS (Changes since GDB 7.6): Add new Nios II targets
7414 and commands.
7415
0892cb63
DE
74162013-05-06 Doug Evans <dje@google.com>
7417
3b7bacac
DE
7418 * symfile.c: Whitespace cleanup.
7419
0892cb63
DE
7420 * solist.h (struct target_so_ops): New member clear_so.
7421 * solib-svr4.c (svr4_clear_so): New function.
7422 (_initialize_svr4_solib): Set svr4_so_ops.clear_so.
7423 * solib.c (clear_so): Renamed from free_so_symbols.
7424 All callers updated. Call target clear_so if it exists.
7425
40501e00
TT
74262013-05-06 Tom Tromey <tromey@redhat.com>
7427
7428 * ada-lang.c (ada_value_primitive_packed_val): Don't
7429 call value_incref.
7430 * value.c (set_value_parent): Incref the new parent and decref
7431 the old parent.
7432 (value_copy, value_primitive_field): Use set_value_parent.
7433
b6807d98
TT
74342013-05-06 Tom Tromey <tromey@redhat.com>
7435
7436 * dwarf2loc.c (invalid_synthetic_pointer): Move earlier.
7437 (indirect_pieced_value): Call dwarf2_fetch_constant_bytes
7438 if needed.
7439 * dwarf2loc.h (dwarf2_fetch_constant_bytes): Declare.
7440 * dwarf2read.c (write_constant_as_bytes)
7441 (dwarf2_fetch_constant_bytes): New functions.
7442
3aef2284
TT
74432013-05-06 Tom Tromey <tromey@redhat.com>
7444
7445 * dwarf2read.c (dwarf2_const_value_data): Remove unused
7446 parameters.
7447 (dwarf2_const_value_attr): Update.
7448
66f65e2b
TT
74492013-05-06 Tom Tromey <tromey@redhat.com>
7450
7451 * somread.c (som_symfile_offsets): Add 'const' to addrs.
7452 * machoread.c (macho_symfile_offsets): Add 'const' to addrs.
7453 * xcoffread.c (xcoff_symfile_offsets): Add 'const' to addrs.
7454 Remove declaration.
7455
7919a973
TT
74562013-05-06 Tom Tromey <tromey@redhat.com>
7457
7458 * dwarf2read.c (dwarf2_const_value_attr): Use 'obstack', not
7459 objfile's obstack.
7460
a7bfba49
DE
74612013-05-06 Doug Evans <dje@google.com>
7462
3189cb12
DE
7463 * dbxread.c (process_one_symbol): Constify section_offsets parameter.
7464 * stabsread.h (process_one_symbol): Update declaration.
7465 * dwarf2read.c (dw2_relocate): Constify new_offsets, delta parameters.
7466 * elfread.c (elf_symfile_relocate_probe): Ditto.
7467 * psymtab.c (relocate_psymtabs): Ditto.
7468 * objfiles.c (objfile_relocate1): Constify new_offsets parameter.
7469 (objfile_relocate): Ditto.
7470 * objfiles.h (objfile_relocate): Update declaration.
7471 * symfile.c (relative_addr_info_to_section_offsets): Constify
7472 addrs parameter.
7473 (default_symfile_offsets): Ditto.
7474 (syms_from_objfile_1): Constify offsets parameter.
7475 (syms_from_objfile): Ditto.
7476 (symbol_file_add_with_addrs_or_offsets): Ditto.
7477 (symfile_map_offsets_to_segments): Constify data parameter.
7478 * symfile.h (struct quick_symbol_functions): Constify new_offsets,
7479 delta parameters of member relocate.
7480 (struct sym_probe_fns): Constify new_offsets,
7481 delta parameters of member sym_relocate_probe.
7482 (struct sym_fns): Constify section_addr_info parameter of member
7483 sym_offsets.
7484 (relative_addr_info_to_section_offsets): Update declaration.
7485 (default_symfile_offsets): Ditto.
7486 (syms_from_objfile): Ditto.
7487 (symfile_map_offsets_to_segments): Ditto.
7488
a7bfba49
DE
7489 * symfile.c (syms_from_objfile_1): Use correct section count when
7490 objfile->sf == NULL.
7491
5f8e0b8f
MF
74922013-05-06 Mike Frysinger <vapier@gentoo.org>
7493
7494 * common/linux-btrace.c (intel_supports_btrace): Fix indentation.
7495
ea52d893
DE
74962013-05-06 Doug Evans <dje@google.com>
7497
7498 * psympriv.h (struct partial_symtab): Augment comment for member
7499 section_offsets.
7500
4d1eb6b4
JB
75012013-05-06 Joel Brobecker <brobecker@adacore.com>
7502
7503 Reimplement shared library support on ppc-aix...
7504 * target.h (TARGET_OBJECT_AIX_LIBRARIES): New target_object enum.
7505 * features/library-list-aix.dtd: New file.
7506 * solib-aix.h, solib-aix.c: New file.
7507 * rs6000-aix-tdep.c: #include "solib.h" and "solib-aix.h".
7508 (rs6000_find_toc_address_hook): Delete.
7509 (rs6000_push_dummy_call): Rewrite code setting the TOC value.
7510 (rs6000_aix_init_osabi): Register solib_aix_so_ops.
7511 * rs6000-nat.c: Remove "xcoffsolib.h" include. Include
7512 "xml-utils.h".
7513 (map_vmap, vmap_exec, vmap_ldinfo, add_vmap, objfile_symbol_add)
7514 (vmap_symtab, fixup_breakpoints): Delete.
7515 (rs6000_xfer_shared_libraries): New function.
7516 (rs6000_xfer_partial): Add TARGET_OBJECT_AIX_LIBRARIES handling.
7517 (vmap_secs, bss_data_overlap, vmap_add_symbols): Delete.
7518 (xcoff_relocate_symtab, xcoff_relocate_core): Delete.
7519 (rs6000_ptrace_ldinfo, rs6000_core_ldinfo)
7520 (rs6000_xfer_shared_library): New function.
7521 (find_toc_address): Delete.
7522 (_initialize_rs6000_nat): Do not set rs6000_find_toc_address_hook.
7523 * rs6000-tdep.h (rs6000_find_toc_address_hook): Remove.
7524 * xcoffread.c (record_minimal_symbol): Reloate symbol address
7525 before creating minimal symbol. Adjust function description
7526 accordingly.
7527 (scan_xcoff_symtab): Replace call to
7528 prim_record_minimal_symbol_and_info by call to
7529 record_minimal_symbol.
7530 (xcoff_symfile_offsets): Reimplement mostly as a wrapper
7531 around default_symfile_offsets.
7532 * configure.tgt: Add solib-aix.o to gdb_target_obs for
7533 powerpc-aix targets.
7534 * config/rs6000/nm-rs6000.h: Delete.
7535 * config/powerpc/aix.mh (NAT_FILE): Delete.
7536 (NATDEPFILES): Remove xcoffsolib.o.
7537 * Makefile.in (XMLFILES): Add library-list-aix.dtd.
7538 (ALL_TARGET_OBS): Add solib-aix.o.
7539 (HFILES_NO_SRCDIR): Remove xcoffsolib.h and
7540 config/rs6000/nm-rs6000.h. Add solib-aix.h.
7541 (ALLDEPFILES): Add solib-aix.c. Remove xcoffsolib.c.
7542 * xcoffsolib.h, xcoffsolib.c: Delete.
7543
7544 * solib.c (reload_shared_libraries): Remove reference to
7545 SOLIB_CREATE_INFERIOR_HOOK.
7546 * breakpoint.c (handle_solib_event): Remove reference to SOLIB_ADD.
7547 (disable_breakpoints_in_shlibs): Remove reference to PC_SOLIB.
7548 (momentary_bkpt_re_set): Replace SOLIB_ADD by solib_add in
7549 comment.
7550 * corelow.c (deprecated_core_resize_section_table): Delete.
7551 * exec.c: Remove include of xcoffsolib.h".
7552 (map_vmap, vmap): Delete.
7553 (exec_close_1): Remove references to vmap.
7554 (exec_file_attach): Remove vmap handling code, and reference
7555 to DEPRECATED_IBM6000_TARGET.
7556 (bfdsec_to_vmap): Delete.
7557 (exec_files_info): Remove block of code handling VMAP.
7558 * infcmd.c (post_create_inferior): Remove reference to
7559 SOLIB_CREATE_INFERIOR_HOOK and SOLIB_ADD.
7560 * infrun.c (follow_exec): Remove reference to
7561 SOLIB_CREATE_INFERIOR_HOOK.
7562 * stack.c (print_frame): Remove reference to PC_SOLIB.
7563 * solib-dsbt.c (dsbt_current_sos): Adjust comment.
7564 (dsbt_relocate_main_executable): Likewise.
7565 * solib-frv.c (frv_current_sos): Likewise.
7566
0c4f667c
JB
75672013-05-06 Joel Brobecker <brobecker@adacore.com>
7568
7569 * sol-thread.c (rw_common): Cast BUF to "gdb_byte *" in calls
7570 to target_write_memory and target_read_memory.
7571
726ce67c
JB
75722013-05-06 Joel Brobecker <brobecker@adacore.com>
7573
7574 * darwin-nat.c (darwin_setup_fake_stop_event): New function.
7575 (darwin_attach): Adjust using darwin_setup_fake_stop_event.
7576
c8c9911f
JB
75772013-05-06 Joel Brobecker <brobecker@adacore.com>
7578
7579 * darwin-nat.c: Replace all "%x" instances in format strings
7580 into "0x%x" throughout.
7581
fda184b6
JB
75822013-05-06 Joel Brobecker <brobecker@adacore.com>
7583
7584 * darwin-nat.c (darwin_mourn_inferior): Replace call to
7585 gdb_assert by call to MACH_CHECK_ERROR.
7586 (darwin_attach_pid): Raise an error rather than a failed
7587 assertion when various system calls failed. Report a warning
7588 instead of raising a failed assertion when PREV_NOT is not NULL
7589 after call to mach_port_request_notification.
7590 (darwin_ptrace_me): Raise an error rather than a failed
7591 assertion when read returns nonzero.
7592
d1d69afb
JB
75932013-05-06 Joel Brobecker <brobecker@adacore.com>
7594
7595 * amd64-darwin-tdep.c: Remove #include "gdb_assert.h".
7596
dc90b24d
JK
75972013-05-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7598
7599 * cleanups.c (restore_my_cleanups): New gdb_assert for SENTINEL_CLEANUP.
7600
faab9922
JK
76012013-05-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7602
7603 * event-top.c (display_gdb_prompt): Call missing do_cleanups.
7604 * infcmd.c (get_return_value) <!stop_regs>: Do not overwrite CLEANUP.
7605 * symfile.c (symfile_bfd_open): New variable back_to. Do not leave
7606 a stale cleanup. Fix double free of NAME.
7607
e0ea48a0
EZ
76082013-05-04 Eli Zaretskii <eliz@gnu.org>
7609
7610 * windows-nat.c (windows_delete_thread): Accept an additional
7611 argument, the thread's exit code, and announce thread death when
7612 print_thread_events is non-zero and we are deleting a thread that
7613 is not the main thread.
7614 (get_windows_debug_event): Pass thread exit code to
7615 windows_delete_thread.
7616
83b2706a
KB
76172013-05-03 Kevin Buettner <kevinb@redhat.com>
7618
7619 * v850-tdep.c (elf-bfd.h, elf/v850.h): Include.
7620 (R_149_REGNUM, E_NUM_OF_V850E2_REGS, E_SELID_1_R0_REGNUM)
7621 (E_SELID_1_R31_REGNUM, E_SELID_2_R0_REGNUM, E_SELID_2_R31_REGNUM)
7622 (E_SELID_3_R0_REGNUM, E_SELID_3_R31_REGNUM, E_SELID_4_R0_REGNUM)
7623 (E_SELID_4_R31_REGNUM, E_SELID_5_R0_REGNUM, E_SELID_5_R31_REGNUM)
7624 (E_SELID_6_R0_REGNUM, E_SELID_6_R31_REGNUM, E_SELID_7_R0_REGNUM, E_SELID_7_R31_REGNUM)
7625 (E_VR0_REGNUM, E_VR31_REGNUM, E_NUM_OF_V850E3V5_REGS): Define.
7626 (v850_abi, V850_ABI_GCC, V850_ABI_RH850): New enum and constants.
7627 (gdbarch_tdep): New struct.
7628 (v850e2_register_name): Use E_NUM_OF_V850E2_REGS instead of
7629 E_NUM_REGS.
7630 (v850e3v5_register_name): New function.
7631 (v850_register_type): v850e3v5 vector registers are 64-bits wide.
7632 (v850_use_struct_convention): Add `gdbarch' parameter. Add new
7633 code handling the struct return conventions for the RH850 ABI.
7634 Update all callers.
7635 (v850_eight_byte_align_p): New function.
7636 (v850_push_call_dummy): Push structs by value, not by reference
7637 for the RH850 ABI. Add support for eight byte alignment.
7638 (v850_dbtrap_breakpoint_from_pc): New function.
7639 (v850_gdbarch_init): Add ABI detection code. Register
7640 v850e3v5_register_name for the v850e3v5 architecture. Set the
7641 number of registers for v850e3v5. Register
7642 v850_dbtrap_breakpoint_from_pc as appropriate.
7643 (_initialize_gdbarch_init): Registration bfd_arch_v850_rh850.
7644
d445b2f6
DE
76452013-05-03 Doug Evans <dje@google.com>
7646
7647 * objfiles.c (objfile_relocate): Use gdb_bfd_count_sections instead
7648 of bfd_count_sections.
7649 * solib-target.c (solib_target_relocate_section_addresses): Ditto.
7650 * symfile.c (default_symfile_offsets): Ditto.
7651 (syms_from_objfile_1): Ditto. Make dummy addrs list an array of
7652 one entry, not bfd_count_sections entries.
7653
b3ce41ea
KB
76542013-05-03 Kevin Buettner <kevinb@redhat.com>
7655
7656 * rl78-tdep.c (rl78_register_reggroup_p): Include SP in the
7657 `save' and `restore' register groups. Don't include SPL
7658 or SPH in these groups.
7659 (rl78_dwarf_reg_to_regnum): Adjust mapping for
7660 RL78_PC_REGNUM. Add mappings for RL78_PSW_REGNUM,
7661 RL78_ES_REGNUM, and RL78_CS_REGNUM.
7662 (rl78_gdbarch_init): Set `dwarf2_addr_size' to 4. Invoke
7663 dwarf2_append_unwinders().
7664
96f7d3f1
PW
76652013-05-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7666
7667 * break-catch-sig.c (signal_catchpoint_breakpoint_hit): Do not
7668 ignore SIGINT and SIGTRAP in case these internal signals are
7669 caught explicitely.
7670
b9dd1947
JB
76712013-05-01 Joel Brobecker <brobecker@adacore.com>
7672
7673 * darwin-nat.c (darwin_read_write_inferior): Change types
7674 of parameters rdaddr and wraddr to "gdb_byte *". Change type
7675 of copy_count to "mach_msg_type_number_t".
7676 (darwin_read_dyld_info): Change type of parameter
7677 rdaddr to "gdb_byte *".
7678
4ca18a63
JB
76792013-05-01 Joel Brobecker <brobecker@adacore.com>
7680
7681 * solib-ia64-hpux.c (ia64_hpux_read_dynamic_info): Change cast
7682 of &info->load_map from "char *" to "gdb_byte *".
7683
2b692d32
JB
76842013-05-01 Joel Brobecker <brobecker@adacore.com>
7685
7686 * ia64-tdep.c (ia64_access_fpreg): Change cast of val
7687 from "char *" to "gdb_byte *".
7688 (ia64_access_rse_fpreg, ia64_access_mem): Likewise.
7689
a98c29a0
DE
76902013-04-30 Doug Evans <dje@google.com>
7691
6a506a2d
DE
7692 * dwarf2read.c (lookup_dwo_unit): Return NULL if DWO not found.
7693 (init_cutu_and_read_dies): Flag a complaint, not error, for bad
7694 DWO stub. If DWO isn't found, just use stub.
7695 (lookup_dwo_cutu): Don't try DWO if there's a DWP file.
7696
a98c29a0
DE
7697 * dwarf2read.c (dw2_find_symbol_file): Initialize filename before
7698 calling init_cutu_and_read_dies.
7699
f92b06da
WT
77002013-03-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
7701
7702 * target-descriptions.c (maint_print_c_tdesc_cmd):
7703 Add case to parse structures as register types and
7704 bitfields.
7705
95eebdcc
WT
77062013-04-30 Walfred Tedeschi <walfred.tedeschi@intel.com>
7707
7708 * MAINTAINERS (Write After Approval): Add myself to the list.
7709
019c1128
JB
77102013-04-30 Joel Brobecker <brobecker@adacore.com>
7711
7712 * sol-thread.c (rw_common): Change type of parameter "buf"
7713 to "gdb_byte *".
7714 (ps_pdwrite, ps_ptwrite): Cast parameter "buf" in call to
7715 rw_common to "gdb_byte *" instead of "char *".
7716
5812197c
JB
77172013-04-30 Joel Brobecker <brobecker@adacore.com>
7718
7719 * sol-thread.c (info_cb) [ti.ti_startfunc != 0]: Change type
7720 of local variable msym to const struct bound_minimal_symbol.
7721 Adjust use accordingly.
7722 [ti.ti_state == TD_THR_SLEEP]: Likewise.
7723
ecccb813
TS
77242013-04-30 Samuel Thibault <samuel.thibault@gnu.org>
7725
7726 * i386gnu-nat.c (CREG_OFFSET): New macro.
7727 (creg_offset): New array.
7728 (CREG_ADDR): Use creg_offset instead of reg_offset.
7729
f1d02dd4 77302013-04-30 Joel Brobecker <brobecker@adacore.com>
54746424
JB
7731
7732 * mep-tdep.c (mep_write_pc): Delete.
7733 (mep_gdbarch_init): Remove call to set_gdbarch_write_pc.
7734 Add call to set_gdbarch_pc_regnum.
7735
f1d02dd4 77362013-04-30 Joel Brobecker <brobecker@adacore.com>
01da98f9
JB
7737
7738 * common/filestuff.c: Replace #include <dirent.h> by
7739 #include "gdb_dirent.h".
7740
f1d02dd4 77412013-04-30 Joel Brobecker <brobecker@adacore.com>
366c6766
JB
7742
7743 * common/filestuff.c: Replace #include <sys/stat.h> by
7744 #include "gdb_stat.h".
7745
b385a60d
PM
77462013-04-29 Pierre Muller <muller@sourceware.org>
7747
7748 * dwarf2read.c (handle_DW_AT_stmt_list): Avoid ARI warning for
7749 editCase function rule.
7750 (get_DW_AT_signature_type): Likewise.
7751
d27b54ad
JB
77522013-04-29 Joel Brobecker <brobecker@adacore.com>
7753
7754 * m32r-tdep.c (m32r_write_pc): Delete.
7755 (m32r_gdbarch_init): Remove call to set_gdbarch_write_pc.
7756 Add call to set_gdbarch_pc_regnum.
7757
47d21dc5
PM
77582013-04-29 Pierre Muller <muller@sourceware.org>
7759
7760 * ./contrib/ari/gdb_ari.sh (editCase rule): Fix spelling error.
7761
9056882e
JB
77622013-04-29 Joel Brobecker <brobecker@adacore.com>
7763
7764 * dwarf2read.c (get_DW_AT_signature_type): Add ARI marker.
7765
7ee4732a
YQ
77662013-04-28 Yao Qi <yao@codesourcery.com>
7767
7768 * solib-dsbt.c (fetch_loadmap): Re-indent.
7769 (displacement_from_map, enable_break2): Likewise.
7770 (dsbt_relocate_section_addresses): Likewise.
7771
2260af53 77722013-04-26 Joel Brobecker <brobecker@adacore.com>
7773
7774 GDB 7.6 released.
7775
ff546935
TT
77762013-04-25 Andreas Kaufmann <Andreas.Kaufmann@synopsys.com>
7777
7778 PR corefiles/14983:
7779 * dwarf2read.c (process_full_comp_unit): Always create a static
7780 block.
7781
40fb6c5e
HZ
77822013-04-25 Hui Zhu <hui@codesourcery.com>
7783
7784 * breakpoint.c (build_target_command_list): Change loc->cond_bytecode
7785 to loc->cmd_bytecode.
7786
74e04d1c
DE
77872013-04-24 Doug Evans <dje@google.com>
7788
7789 * dwarf2read.c (setup_type_unit_groups): Fix comment.
7790
3cf62c1d
KS
77912013-04-22 Keith Seitz <keiths@redhat.com>
7792
7793 * tracepoint.c (trace_save): Call the writer's start method.
7794
bf9e4d0c
MB
77952013-04-24 Muhammad Bilal <mbilal@codesourcery.com>
7796
7797 PR gdb/10462
7798 * cli/cli-decode.c (lookup_command): Show an error if there is no space
7799 before argument.
7800
5d71132c
TT
78012013-04-23 Tom Tromey <tromey@redhat.com>
7802
7803 * common/filestuff.c: Check USE_WIN32API before including
7804 sys/socket.h.
7805 (HAVE_F_GETFD): New define.
7806 (mark_cloexec): Check HAVE_F_GETFD.
7807 (gdb_open_cloexec): Change 'mode' to unsigned long.
7808 (gdb_socketpair_cloexec): Check HAVE_SOCKETPAIR.
7809 (gdb_pipe_cloexec): Check HAVE_PIPE.
7810 * common/filestuff.h (gdb_open_cloexec): Change 'mode' to unsigned
7811 long.
7812
a11cfd87
HZ
78132013-04-23 Hui Zhu <hui@codesourcery.com>
7814
7815 PR gdb/15293
a11cfd87
HZ
7816 * breakpoint.c (bpstat_what): Add BPSTAT_WHAT_SINGLE to bp_dprintf.
7817
2d9442cc
HZ
78182013-04-23 Hui Zhu <hui@codesourcery.com>
7819
7820 PR gdb/15165
2d9442cc
HZ
7821 * breakpoint.c (dprintf_print_recreate): New.
7822 (save_breakpoints): Let it not save dprintf commands.
7823 (initialize_breakpoint_ops): Set dprintf_print_recreate.
7824
614c279d
TT
78252013-04-22 Tom Tromey <tromey@redhat.com>
7826
7827 PR gdb/7912:
7828 * Makefile.in (SFILES): Add filestuff.c
7829 (COMMON_OBS): Add filestuff.o.
7830 (filestuff.o): New target.
7831 * auto-load.c (auto_load_objfile_script_1): Use
7832 gdb_fopen_cloexec.
7833 * auxv.c (procfs_xfer_auxv): Use gdb_open_cloexec.
7834 * cli/cli-cmds.c (shell_escape): Call close_most_fds.
7835 * cli/cli-dump.c (fopen_with_cleanup): Use gdb_fopen_cloexec.
7836 * common/agent.c (gdb_connect_sync_socket): Use
7837 gdb_socket_cloexec.
7838 * common/filestuff.c: New file.
7839 * common/filestuff.h: New file.
7840 * common/linux-osdata.c (linux_common_core_of_thread)
7841 (command_from_pid, commandline_from_pid, print_source_lines)
7842 (linux_xfer_osdata_shm, linux_xfer_osdata_sem)
7843 (linux_xfer_osdata_msg, linux_xfer_osdata_modules): Use
7844 gdb_fopen_cloexec.
7845 * common/linux-procfs.c (linux_proc_get_int)
7846 (linux_proc_pid_has_state): Use gdb_fopen_cloexec.
7847 * config.in, configure: Rebuild.
7848 * configure.ac: Don't check for sys/socket.h. Check for
7849 fdwalk, pipe2.
7850 * corelow.c (core_open): Use gdb_open_cloexec.
7851 * dwarf2read.c (write_psymtabs_to_index): Use gdb_fopen_cloexec.
7852 * fork-child.c (fork_inferior): Call close_most_fds.
7853 * gdb_bfd.c (gdb_bfd_open): Use gdb_open_cloexec.
7854 * inf-child.c (inf_child_fileio_readlink): Use gdb_open_cloexec.
7855 * linux-nat.c (linux_nat_thread_name, linux_proc_pending_signals):
7856 Use gdb_fopen_cloexec.
7857 (linux_proc_xfer_partial, linux_proc_xfer_spu): Use
7858 gdb_open_cloexec.
7859 (linux_async_pipe): Use gdb_pipe_cloexec.
7860 * remote-fileio.c (remote_fileio_func_open): Use
7861 gdb_open_cloexec.
7862 * remote.c (remote_file_put, remote_file_get): Use
7863 gdb_fopen_cloexec.
7864 * ser-pipe.c (pipe_open): Use gdb_socketpair_cloexec,
7865 close_most_fds.
7866 * ser-tcp.c (net_open): Use gdb_socket_cloexec.
7867 * ser-unix.c (hardwire_open): Use gdb_open_cloexec.
7868 * solib.c (solib_find): Use gdb_open_cloexec.
7869 * source.c (openp, find_and_open_source): Use gdb_open_cloexec.
7870 * tracepoint.c (tfile_start): Use gdb_fopen_cloexec.
7871 (tfile_open): Use gdb_open_cloexec.
7872 * tui/tui-io.c (tui_initialize_io): Use gdb_pipe_cloexec.
7873 * ui-file.c (gdb_fopen): Use gdb_fopen_cloexec.
7874 * xml-support.c (xml_fetch_content_from_file): Use
7875 gdb_fopen_cloexec.
7876 * main.c (captured_main): Call notice_open_fds.
7877
5fda2332
EBM
78782013-04-22 Edjunior Machado <emachado@linux.vnet.ibm.com>
7879
7880 * remote-sim.c (dump_mem): Change the type of 'buf' parameter from
7881 'char *' to 'gdb_byte *'.
7882 (gdbsim_store_register): Change the type of 'tmp' from 'char' to
7883 'gdb_byte'.
7884
eb6c553b
YQ
78852013-04-22 Yao Qi <yao@codesourcery.com>
7886
7887 * infrun.c: Fix typo in comment.
7888
9991b207
SDJ
78892013-04-22 Andrew Haley <aph@redhat.com>
7890
7891 * arm-tdep.c (BranchDest): Cast result as "unsigned long",
7892 instead of "long".
7893
8b4833e3
YQ
78942013-04-20 Yao Qi <yao@codesourcery.com>
7895
7896 * ctf.c (ctf_fetch_registers): Change the type of 'regs' from
7897 'char *' to 'gdb_byte *'. Cast the return value of
7898 'bt_ctf_get_char_array' to 'gdb_byte *'.
7899
bd3f3b55
PA
79002013-04-19 Pedro Alves <palves@redhat.com>
7901
7902 * configure.ac (build_warnings): Replace -Wno-pointer-sign with
7903 -Wpointer-sign.
7904 * configure: Regenerate.
7905
c49e7f76
PA
79062013-04-19 Pedro Alves <palves@redhat.com>
7907
7908 * ser-tcp.c (net_read_prim): Cast second argument to recv to
7909 'void *'.
7910
12ff8552
PA
79112013-04-19 Pedro Alves <palves@redhat.com>
7912
7913 * monitor.c (monitor_write_memory, monitor_write_memory_bytes):
7914 Change type of 'myaddr' parameter to gdb_byte pointer.
7915 (monitor_write_memory_longlongs): Likewise. Cast 'myaddr' pointer
7916 to 'long long' pointer instead of to 'unsigned long long'.
7917 (monitor_write_memory_block, monitor_read_memory_single)
7918 (monitor_read_memory): Change type of 'myaddr' parameter to
7919 gdb_byte pointer.
7920
9c37696b
PA
79212013-04-19 Pedro Alves <palves@redhat.com>
7922
7923 * record.c (validate_history_size): Make parameter 'setting'
7924 unsigned.
7925
a398505b
PA
79262013-04-19 Pedro Alves <palves@redhat.com>
7927
7928 * ctf.c (ctf_write_uploaded_tsv, ctf_write_uploaded_tp): Add casts
7929 to 'gdb_byte *'.
7930
9f8afa72
PA
79312013-04-19 Pedro Alves <palves@redhat.com>
7932
7933 * cp-valprint.c (cp_print_class_member): Change type of 'fieldno'
7934 local to int.
7935
c714b426
PA
79362013-04-19 Pedro Alves <palves@redhat.com>
7937
7938 * ada-lang.c (print_it_exception): Add cast to gdb_byte *.
7939 * ada-tasks.c (read_fat_string_value): Likewise.
7940
507a579c
PA
79412013-04-19 Pedro Alves <palves@redhat.com>
7942
7943 * dwarf2-frame.c (execute_cfa_program): Make 'bytes_read' local
7944 unsigned. Pass 'tmp' to safe_read_uleb128 instead of the signed
7945 'offset', and adjust.
7946
f9d83a0b
PA
79472013-04-19 Pedro Alves <palves@redhat.com>
7948
7949 * dwarf2read.c (dwarf2_get_dwz_file): Add cast to const char *.
7950 (read_index_from_section): Add cast to 'char *'.
7951
745eb4fd
PA
79522013-04-19 Pedro Alves <palves@redhat.com>
7953
7954 * xcoffread.c (xcoff_initial_scan): Add cast to 'char *'.
7955
db5be46f
PA
79562013-04-19 Pedro Alves <palves@redhat.com>
7957
7958 * coff-pe-read.c (read_pe_exported_syms): Handle strings as char.
7959
0f928d68
PA
79602013-04-19 Pedro Alves <palves@redhat.com>
7961
7962 * record-full.c (record_full_get_bookmark): Change local 'ret'
7963 type to char * and add cast to gdb_byte *.
7964 (record_full_goto_bookmark): Handle 'bookmark' argument as a
7965 string.
7966 * reverse.c (goto_bookmark_command): Add casts to gdb_byte *.
7967
89f6d837
PA
79682013-04-19 Pedro Alves <palves@redhat.com>
7969
7970 * python/py-inferior.c (infpy_write_memory): Add cast to gdb_byte
7971 * python/py-prettyprint.c (print_string_repr): Change type of
7972 'output' local to char *. Add cast to gdb_byte * in
7973 LA_PRINT_STRING call.
7974 (print_children): Change type of 'output' local to char *.
7975 * python/py-value.c (valpy_string): Add cast to const char * in
7976 PyUnicode_Decode call.
7977
ce6ec7d8
PA
79782013-04-19 Pedro Alves <palves@redhat.com>
7979
7980 * remote-mips.c (mips_cksum): Rename 'data' parameter to 'datastr'
7981 and change its type to 'const char *'. Adjust.
7982 (mips_send_packet): Add cast to 'char *', and remove cast to
7983 'unsigned char *'.
7984 (mips_receive_packet): Remove cast to 'unsigned char *'.
7985 (mips_load_srec): Use bfd_byte.
7986 (pmon_makeb64, pmon_zeroset): Make 'chksum' parameter unsigned.
7987 (pmon_checkset): Make 'value' parameter unsigned.
7988
fda0389f
PA
79892013-04-19 Pedro Alves <palves@redhat.com>
7990
7991 * common/agent.c (agent_run_command): Add cast to gdb_byte *.
7992
bc20a4af
PA
79932013-04-19 Pedro Alves <palves@redhat.com>
7994
7995 * remote.c (remote_write_bytes_aux, compare_sections_command)
7996 (remote_read_qxfer)
7997 (remote_search_memory, remote_hostio_pwrite, remote_hostio_pread)
7998 (remote_hostio_readlink, remote_bfd_iovec_pread)
7999 (remote_set_trace_notes): Use gdb_byte when RSP buffer is used as
8000 binary buffer, and char when buffer is used as string.
8001 * tracepoint.c (encode_source_string, tfile_write_uploaded_tp)
8002 (trace_save, tfile_open, traceframe_walk_blocks)
8003 (tfile_fetch_registers): Likewise.
8004
c628b528
PA
80052013-04-19 Pedro Alves <palves@redhat.com>
8006
8007 * ser-base.c (ser_base_write): Change prototype -- take 'void *'
8008 buffer and size_t size. Adjust.
8009 * ser-base.h (ser_base_write): Adjust.
8010 * ser-go32.c (cnts): Change type to size_t.
8011 (dos_write): Change prototype -- take 'void *'
8012 buffer and size_t size. Adjust.
8013 (dos_info): Print elements of 'cnts' as unsigned long.
8014 * serial.c (serial_write): Likewise.
8015 * serial.h (serial_write): Adjust.
8016 (struct serial_ops) <write>: Change prototype -- take 'void *'
8017 buffer and size_t size. Adjust.
8018
51a5cd90
PA
80192013-04-19 Pedro Alves <palves@redhat.com>
8020
8021 * c-lang.c (evaluate_subexp_c): Cast result of obstack_base to
8022 gdb_byte *.
8023 * linux-tdep.c (linux_make_mappings_corefile_notes): Likewise.
8024
a9933661
PA
80252013-04-19 Pedro Alves <palves@redhat.com>
8026
8027 * alpha-tdep.c (alpha_extract_return_value): Use
8028 regcache_cooked_read_unsigned to read 'v0'.
8029
19afdd07
PA
80302013-04-19 Pedro Alves <palves@redhat.com>
8031
8032 * xtensa-tdep.c (execute_l32e, execute_s32e): Change type of
8033 parameters 'at', 'as' and 'offset' to uint32_t.
8034
96b32e50
PA
80352013-04-19 Pedro Alves <palves@redhat.com>
8036
8037 * aarch64-tdep.c (aarch64_analyze_prologue): Change type of local
8038 'is64' to signed 'int'.
8039
eb1bd1fb
PA
80402013-04-19 Pedro Alves <palves@redhat.com>
8041
8042 * s390-tdep.c (is_rs, is_rsy, is_rx, is_rxy): Change type of 'd2'
8043 parameter to int *.
8044
463920bf
PA
80452013-04-19 Pedro Alves <palves@redhat.com>
8046
8047 * ppc-linux-tdep.c (ppc_skip_trampoline_code): Change local
8048 'insnbuf' buffer type to unsigned int[].
8049
70242eb1
PA
80502013-04-19 Pedro Alves <palves@redhat.com>
8051
8052 * mips-tdep.c (mips_read_pc): Change local 'pc' type to LONGEST.
8053
9d1dd0e2
PA
80542013-04-19 Pedro Alves <palves@redhat.com>
8055
8056 * mep-tdep.c (mep_get_insn): Change 'insn' parameter type to
8057 unsigned long *.
8058
44096aee
PA
80592013-04-19 Pedro Alves <palves@redhat.com>
8060
8061 * alpha-tdep.c (heuristic_fence_post): Change type to int.
8062 (alpha_heuristic_proc_start): Adjust to check -1 instead of
8063 UINT_MAX.
8064 * mips-tdep.c (heuristic_fence_post): Change type to int.
8065 (heuristic_proc_start): Adjust to check -1 instead of UINT_MAX.
8066
e4286e57
PA
80672013-04-19 Pedro Alves <palves@redhat.com>
8068
8069 * cris-tdep.c (usr_cmd_cris_version): Make unsigned.
8070 (struct gdbarch_tdep) <cris_version>: Make unsigned.
8071 (cris_spec_reg_applicable, cris_gdbarch_init): Adjust locals.
8072
001f13d8
PA
80732013-04-19 Pedro Alves <palves@redhat.com>
8074
8075 * avr-tdep.c (avr_io_reg_read_command): New local 'bufstr'. Use
8076 it to get a string view of the byte buffer.
8077 * i386-cygwin-tdep.c (core_process_module_section): Change local 'buf'
8078 type to gdb_byte *. Adjust.
8079 * linux-tdep.c (linux_info_proc, linux_find_memory_regions_full):
8080 Change local to char *.
8081 * solib-darwin.c (find_program_interpreter): Change return type to
8082 char *. Adjust.
8083 (darwin_solib_get_all_image_info_addr_at_init): Adjust.
8084 * solib-dsbt.c (enable_break2): Change local 'buf' to char *.
8085 * solib-frv.c (enable_break2): Change local 'buf' to char *.
8086 * solib-spu.c (spu_current_sos): Add gdb_byte * cast.
8087 * solib-svr4.c (find_program_interpreter): Change return type to
8088 char *. Adjust.
8089 (enable_break): Change local 'interp_name' to char *.
8090 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
8091 * spu-tdep.c (spu_pseudo_register_read_spu): Add cast to 'char *'.
8092 (spu_pseudo_register_write_spu): Use char for string buffer.
8093 Adjust.
8094 (info_spu_event_command, info_spu_signal_command): Add casts to
8095 'char *'.
8096
948f8e3d
PA
80972013-04-19 Pedro Alves <palves@redhat.com>
8098
8099 * aarch64-tdep.c (aarch64_default_breakpoint): Change type to
8100 gdb_byte[].
8101 (aarch64_breakpoint_from_pc): Change return type to gdb_byte *.
8102 * ada-lang.c (ada_value_assign): Use gdb_byte.
8103 * alphanbsd-tdep.c (sigtramp_retcode): Change type to gdb_byte[].
8104 (alphanbsd_sigtramp_offset): Use gdb_byte.
8105 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint)
8106 (arm_linux_arm_be_breakpoint, eabi_linux_arm_le_breakpoint)
8107 (eabi_linux_arm_be_breakpoint, arm_linux_thumb_be_breakpoint)
8108 (arm_linux_thumb_le_breakpoint, arm_linux_thumb2_be_breakpoint)
8109 (arm_linux_thumb2_le_breakpoint): Change type to gdb_byte[].
8110 * arm-tdep.c (arm_stub_unwind_sniffer)
8111 (arm_displaced_init_closure): Use gdb_byte.
8112 (arm_default_arm_le_breakpoint, arm_default_arm_be_breakpoint)
8113 (arm_default_thumb_le_breakpoint)
8114 (arm_default_thumb_be_breakpoint): Change type to gdb_byte[].
8115 * arm-tdep.h (struct gdbarch_tdep) <arm_breakpoint,
8116 thumb_breakpoint, thumb2_breakpoint>: Change type to gdb_byte *.
8117 * arm-wince-tdep.c (arm_wince_le_breakpoint)
8118 (arm_wince_thumb_le_breakpoint): Change type to gdb_byte[].
8119 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint)
8120 (arm_nbsd_arm_be_breakpoint, arm_nbsd_thumb_le_breakpoint)
8121 (arm_nbsd_thumb_be_breakpoint): Change type to gdb_byte[].
8122 * armobsd-tdep.c (arm_obsd_thumb_le_breakpoint)
8123 (arm_obsd_thumb_be_breakpoint): Change type to gdb_byte[].
8124 * cris-tdep.c (push_stack_item, cris_push_dummy_call)
8125 (cris_store_return_value, cris_extract_return_value): Use
8126 gdb_byte.
8127 (constraint): Change type of parameter to char * from signed
8128 char*. Use gdb_byte.
8129 * dwarf2loc.c (read_pieced_value, write_pieced_value): Change type
8130 of local buffer to gdb_byte *.
8131 * dwarf2read.c (read_index_from_section): Use gdb_byte.
8132 (create_dwp_hash_table): Change type of locals to gdb_byte *.
8133 (add_address_entry): Change type of local buffer to gdb_byte[].
8134 * frv-tdep.c (frv_adjust_breakpoint_address, find_func_descr)
8135 (frv_push_dummy_call): Use gdb_byte.
8136 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code)
8137 (hppa_hpux_supply_ss_fpblock, hppa_hpux_supply_ss_wide)
8138 (hppa_hpux_supply_save_state): Use gdb_byte.
8139 * hppa-tdep.c (hppa32_push_dummy_call)
8140 (hppa64_convert_code_addr_to_fptr): Use gdb_byte.
8141 * ia64-tdep.c (extract_bit_field, replace_bit_field)
8142 (slotN_contents, replace_slotN_contents): Change type of parameter
8143 to gdb_byte *.
8144 (fetch_instruction, ia64_pseudo_register_write)
8145 (ia64_register_to_value, ia64_value_to_register)
8146 (ia64_extract_return_value, ia64_store_return_value)
8147 (ia64_push_dummy_call): Use gdb_byte.
8148 * m32c-tdep.c (m32c_return_value): Remove cast.
8149 * m68hc11-tdep.c (m68hc11_pseudo_register_write)
8150 (m68hc11_push_dummy_call, m68hc11_store_return_value): Use
8151 gdb_byte.
8152 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Use gdb_byte.
8153 * mn10300-tdep.c (mn10300_store_return_value)
8154 (mn10300_breakpoint_from_pc, mn10300_push_dummy_call): Use
8155 gdb_byte.
8156 * moxie-tdep.c (moxie_process_readu): Use gdb_byte.
8157 (moxie_process_record): Remove casts.
8158 * ppc-ravenscar-thread.c (supply_register_at_address)
8159 (ppc_ravenscar_generic_store_registers): Use gdb_byte.
8160 * ravenscar-thread.c (get_running_thread_id): Use gdb_byte.
8161 * remote-m32r-sdi.c (m32r_fetch_register): Use gdb_byte.
8162 * remote-mips.c (mips_xfer_memory): Use gdb_byte.
8163 * remote.c (compare_sections_command): Use gdb_byte.
8164 * score-tdep.c (score7_free_memblock): Change type of parameter to
8165 gdb_byte *.
8166 * sh-tdep.c (sh_justify_value_in_reg): Change return type to
8167 gdb_byte *. Use gdb_byte.
8168 (sh_push_dummy_call_fpu): Use gdb_byte.
8169 (sh_extract_return_value_nofpu, sh_extract_return_value_fpu)
8170 (sh_store_return_value_nofpu, sh_store_return_value_fpu)
8171 (sh_register_convert_to_virtual, sh_register_convert_to_raw):
8172 Change parameter type to 'gdb_byte *'. Use gdb_byte.
8173 (sh_pseudo_register_read, sh_pseudo_register_write): Use gdb_byte.
8174 * sh64-tdep.c (sh64_push_dummy_call): Use gdb_byte.
8175 (sh64_store_return_value, sh64_register_convert_to_virtual):
8176 Change parameter type to 'gdb_byte *'. Use gdb_byte.
8177 (sh64_pseudo_register_write): Use gdb_byte.
8178 * solib-darwin.c (darwin_current_sos): Add casts to 'gdb_byte *'.
8179 * solib-irix.c (fetch_lm_info): Likewise. Use gdb_byte for byte
8180 buffer.
8181 (irix_current_sos): Use gdb_byte.
8182 * solib-som.c (som_current_sos): Use gdb_byte.
8183 * sparc-ravenscar-thread.c (supply_register_at_address)
8184 (sparc_ravenscar_generic_store_registers): Use gdb_byte.
8185 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
8186 * spu-tdep.c (spu_get_overlay_table): Use gdb_byte.
8187 * tic6x-tdep.c (tic6x_breakpoint_from_pc): Change return type to
8188 'gdb_byte *'.
8189 * tic6x-tdep.h (struct gdbarch_tdep) <breakpoint>: Change type to
8190 'gdb_byte *'.
8191 * tracepoint.c (tfile_fetch_registers): Use gdb_byte.
8192 * xstormy16-tdep.c (xstormy16_extract_return_value)
8193 (xstormy16_store_return_value): Change parameter type to
8194 'gdb_byte *'. Adjust.
8195 (xstormy16_push_dummy_call): Use gdb_byte.
8196 * xtensa-tdep.c (xtensa_scan_prologue, call0_ret)
8197 (call0_analyze_prologue, execute_code): Use gdb_byte.
8198
433730c9
PA
81992013-04-19 Vladimir Kargov <kargov@gmail.com>
8200 Pedro Alves <palves@redhat.com>
8201
8202 * i387-tdep.c (i387_print_float_info): Use gdb_byte for pointer to
8203 value contents.
8204
ac9ec31b
DE
82052013-04-17 Doug Evans <dje@google.com>
8206
8207 * dwarf2read.c (struct signatured_type): New member type.
8208 (struct attribute): Replace member signatured_type with signature.
8209 (DW_SIGNATURE): Replaces DW_SIGNATURE_TYPE.
8210 (read_call_site_scope): Call follow_die_ref instead of
8211 follow_die_ref_or_sig.
8212 (read_structure_type): Rewrite handling of signatured types.
8213 (read_enumeration_type): Ditto.
8214 (read_attribute_value): Update.
8215 (build_error_marker_type): New function.
8216 (lookup_die_type): Add assert. Rewrite handling of signatured types.
8217 Don't call error for bad types, just build an error marker type.
8218 (dump_die_shallow): Update.
8219 (follow_die_sig_1): Renamed from follow_die_sig.
8220 Don't call error for bad types, instead return NULL.
8221 (follow_die_sig): New function.
8222 (get_signatured_type, get_DW_AT_signature_type): New functions.
8223
e546e8bb
YZ
82242013-04-17 Yufeng Zhang <yufeng.zhang@arm.com>
8225
8226 * aarch64-tdep.c (aarch64_write_pc): Removed.
543cdd95
JB
8227 (aarch64_gdbarch_init): Remove set_gdbarch_write_pc of the above
8228 function.
e546e8bb 8229
ab116149
YQ
82302013-04-17 Yao Qi <yao@codesourcery.com>
8231
8232 * top.c (print_gdb_configuration): Print configure-time
8233 parameter on using libbabeltrace or not.
8234
488a42b8
PA
82352013-04-16 Pedro Alves <palves@redhat.com>
8236
8237 * copyright.py (EXCLUDE_LIST): Add gdb/common/glibc_thread_db.h.
8238
f5fb825b
PA
82392013-04-16 Pedro Alves <palves@redhat.com>
8240
85d494ea 8241 * common/glibc_thread_db.h: Update from upstream glibc
f5fb825b
PA
8242 (git 568035b7874a099087b77f7bba3e36a1173787b0).
8243
e1154999
PA
82442013-04-16 Pedro Alves <palves@redhat.com>
8245
8246 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: Factor out to ...
8247 * common/glibc_thread_db.h: ... this new file ...
8248 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: ... and include it.
8249
e3b50a7f
PA
82502013-04-16 Will Newton <will.newton@gmail.com>
8251 Pedro Alves <palves@redhat.com>
8252
8253 PR build/11881
8254
8255 * common/gdb_thread_db.h (LIBTHREAD_DB_SO)
8256 (LIBTHREAD_DB_SEARCH_PATH): Move outside of #ifdef
8257 HAVE_THREAD_DB_H.
8258
1c2e4450
PA
82592013-04-16 Pedro Alves <palves@redhat.com>
8260 Eli Zaretskii <eliz@gnu.org>
8261
8262 * NEWS: Mention "set foo unlimited".
8263
4031ecc5
DE
82642013-04-15 Doug Evans <dje@google.com>
8265
19c3d4c9
DE
8266 * dwarf2read.c (struct dwo_file): Replace member "cus" with "cu".
8267 (struct create_dwo_cu_data): Renamed from create_dwo_info_table_data.
8268 (create_dwo_cu_reader): Renamed from
8269 create_dwo_debug_info_hash_table_reader.
8270 (create_dwo_cu): Renamed from create_dwo_debug_info_hash_table.
8271 Remove support for multiple CUs in a DWO file.
8272 (open_and_init_dwo_file, lookup_dwo_cutu): Update.
8273
4031ecc5
DE
8274 * dwarf2read.c (create_debug_types_hash_table): Use hex_string
8275 instead of phex.
8276 (lookup_dwo_unit, create_dwo_debug_info_hash_table_reader): Ditto.
8277 (create_dwo_in_dwp): Ditto.
8278
b340913d
TT
82792013-04-15 Tom Tromey <tromey@redhat.com>
8280
8281 * NEWS: Move recent entries into "since 7.6" section.
8282
cc16e6c9
TT
82832013-04-15 Tom Tromey <tromey@redhat.com>
8284
8285 PR c++/13588:
8286 * NEWS: Update.
8287 * break-catch-throw.c (struct exception_catchpoint)
8288 <exception_rx, pattern>: New fields.
8289 (fetch_probe_arguments, dtor_exception_catchpoint)
8290 (check_status_exception_catchpoint)
8291 (print_one_detail_exception_catchpoint): New functions.
8292 (handle_gnu_v3_exceptions): Add "except_rx" argument.
8293 Compile regular expression if needed.
8294 (extract_exception_regexp): New function.
8295 (catch_exception_command_1): Use extract_exception_regexp.
8296 (compute_exception): Use fetch_probe_arguments.
8297 (initialize_throw_catchpoint_ops): Set dtor, print_one_detail,
8298 and check_status fields.
8299 * cp-abi.c (cplus_typename_from_type_info): New function.
8300 * cp-abi.h (cplus_typename_from_type_info): Declare.
8301 (struct cp_abi_ops) <get_typename_from_type_info>: New field.
8302 * gdb_regex.h (compile_rx_or_error): Declare.
8303 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info): Update
8304 comment.
8305 (init_gnuv3_ops): Set get_type_from_type_info field.
8306 * probe.c (compile_rx_or_error): Move...
8307 * utils.c (compile_rx_or_error): ... here.
8308
72f1fe8a
TT
83092013-04-15 Tom Tromey <tromey@redhat.com>
8310
8311 PR c++/15176:
8312 * NEWS: Update.
8313 * break-catch-throw.c (compute_exception): New function.
8314 (exception_funcs): New global.
8315 (_initialize_break_catch_throw): Create $_exception.
8316 * cp-abi.c (cplus_type_from_type_info): New function.
8317 * cp-abi.h (cplus_type_from_type_info): Declare.
8318 (struct cp_abi_ops) <get_type_from_type_info>: New field.
8319 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info)
8320 (gnuv3_get_type_from_type_info): New functions.
8321 (init_gnuv3_ops): Set get_type_from_type_info ABI field.
8322
fc4746a2
TT
83232013-04-15 Tom Tromey <tromey@redhat.com>
8324
8325 * break-catch-throw.c (struct exception_names): New.
8326 (exception_functions): Change type.
8327 (re_set_exception_catchpoint): Look for SDT probes.
8328
15a73f56
TT
83292013-04-15 Tom Tromey <tromey@redhat.com>
8330
8331 PR c++/10119:
8332 * break-catch-throw.c (exception_functions): New global.
8333 (gnu_v3_exception_catchpoint_ops): Move earlier.
8334 (struct exception_catchpoint): New.
8335 (classify_exception_breakpoint): Rewrite.
8336 (re_set_exception_catchpoint): New function.
8337 (handle_gnu_v3_exceptions): Return void. Use init_catchpoint.
8338 Allocate a struct exception_catchpoint.
8339 (catch_exception_command_1): Update.
8340 (initialize_throw_catchpoint_ops): Set 're_set' method.
8341
916703c0
TT
83422013-04-15 Tom Tromey <tromey@redhat.com>
8343
8344 * Makefile.in (SFILES): Add break-catch-throw.c
8345 (COMMON_OBS): Add break-catch-throw.o.
8346 * break-catch-throw.c: New file.
8347 * breakpoint.c: Move exception-catching code to new file.
8348 (ep_parse_optional_if_clause): No longer static.
8349 * breakpoint.h (ep_parse_optional_if_clause): Declare.
8350
6e72ca20
TT
83512013-04-15 Tom Tromey <tromey@redhat.com>
8352
8353 PR c++/9065:
8354 * NEWS: Update.
8355 * breakpoint.c (watchpoint_exp_is_const): Add OP_TYPEID.
8356 * c-exp.y (TYPEID): New token.
8357 (exp): Add new TYPEID productions.
8358 (ident_tokens): Add "typeid".
8359 * cp-abi.c (cplus_typeid, cplus_typeid_type): New functions.
8360 * cp-abi.h (cplus_typeid, cplus_typeid_type): Declare.
8361 (struct cp_abi_ops) <get_typeid, get_typeid_type>: New fields.
8362 * eval.c (evaluate_subexp_standard) <OP_TYPEID>: New case.
8363 * expprint.c (dump_subexp_body_standard) <OP_TYPEID>: New
8364 case.
8365 * gnu-v3-abi.c (std_type_info_gdbarch_data): New global.
8366 (build_std_type_info_type, gnuv3_get_typeid_type)
8367 (gnuv3_get_typeid): New functions.
8368 (init_gnuv3_ops): Initialize std_type_info_gdbarch_data. Set
8369 new fields on ABI object.
8370 * parse.c (operator_length_standard) <OP_TYPEID>: New case.
8371 * std-operator.def (OP_TYPEID): New.
8372
715c6909
TT
83732013-04-15 Tom Tromey <tromey@redhat.com>
8374
8375 * elfread.c (elf_symtab_read): Install versioned symbol under
8376 unversioned name as well.
8377
8de20a37
TT
83782013-04-15 Tom Tromey <tromey@redhat.com>
8379
8380 PR c++/11990:
8381 * c-lang.c (cplus_language_defn): Use gdb_demangle.
8382 * c-typeprint.c (c_type_print_base): Use gdb_demangle.
8383 * cp-support.c (mangled_name_to_comp): Use gdb_demangle.
8384 (gdb_demangle): New function.
8385 * cp-support.h (gdb_demangle): Declare.
8386 * dwarf2read.c (dwarf2_physname, fixup_partial_die)
8387 (dwarf2_name): Use gdb_demangle.
8388 * gdbtypes.c (check_stub_method): Use gdb_demangle.
8389 * gnu-v3-abi.c (gnuv3_rtti_type): Strip @plt and version
8390 suffixes from name.
8391 (gnuv3_print_method_ptr): Use gdb_demangle.
8392 * jv-lang.c (java_demangle): Use gdb_demangle.
8393 * jv-typeprint.c (java_type_print_base): Use gdb_demangle.
8394 * language.c (unk_lang_demangle): Use gdb_demangle.
8395 * symtab.c (symbol_find_demangled_name)
8396 (demangle_for_lookup): Use gdb_demangle.
8397
591f19e8
TT
83982013-04-15 Tom Tromey <tromey@redhat.com>
8399
8400 PR c++/12824:
8401 * NEWS: Update.
8402 * breakpoint.c (enum exception_event_kind) <EX_EVENT_RETHROW>:
8403 New constant.
8404 (classify_exception_breakpoint): New function.
8405 (print_it_exception_catchpoint, print_one_exception_catchpoint)
8406 (print_mention_exception_catchpoint)
8407 (print_recreate_exception_catchpoint, handle_gnu_v3_exceptions)
8408 (catch_exception_command_1): Handle "rethrow" catchpoint.
8409 (catch_rethrow_command): New function.
8410 (_initialize_breakpoint): Add "catch rethrow" command.
8411
4d40cad2
PM
84122013-04-15 Pierre Muller <muller@sourceware.org>
8413
8414 * contrib/ari/gdb_ari.sh (write_pc rule): Do not consider
8415 set_gdbarch_write_pc as deprecated anymore.
8416
30bcb456
JB
84172013-04-15 Joel Brobecker <brobecker@adacore.com>
8418
8419 * spu-tdep.c (spu_write_pc): Add empty line after local variable
8420 declarations.
8421
da9160e4
YQ
84222013-04-13 Yao Qi <yao@codesourcery.com>
8423
8424 * ctf.c (_initialize_ctf): Include "completer.h".
8425 Call add_target_with_completer instead of add_target.
8426
39ed5604
JK
84272013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
8428
8429 Fix GDB regression related to PR binutils/14813.
8430 * jit.c (mem_bfd_iovec_close): Return 0 for success.
8431 * minidebug.c (lzma_close): Add return value comment.
8432 * remote.c (remote_bfd_iovec_close): Return 0 for success.
8433 * solib-spu.c (spu_bfd_iovec_close): Likewise.
8434 * spu-linux-nat.c (spu_bfd_iovec_close): Likewise.
8435
84362013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
49369217
JK
8437
8438 * config.in: Regenerate.
8439
d521ce57
TT
84402013-04-12 Tom Tromey <tromey@redhat.com>
8441
8442 * dwarf2-frame.c (struct comp_unit) <dwarf_frame_buffer>: Now
8443 const.
8444 * dwarf2read.c (struct dwarf2_section_info) <buffer>: Now const.
8445 (struct die_reader_specs) <buffer>: Likewise.
8446 (die_reader_func_ftype): Make 'info_ptr' const.
8447 (struct line_header) <include_dirs, statement_program_start,
8448 statement_program_end>: Now const.
8449 (struct file_entry) <name>: Likewise.
8450 (struct partial_die_info) <sibling>: Likewise.
8451 (struct dwarf_block) <data>: Likewise.
8452 (dwarf2_read_section): Remove cast.
8453 (dwarf2_get_section_info): Make 'bufp' const.
8454 (read_index_from_section): Constify.
8455 (dw2_get_file_names_reader): Make 'info_ptr' const.
8456 (dw2_get_primary_filename_reader): Likewise.
8457 (read_comp_unit_head): Make 'info_ptr' and return type const.
8458 (read_and_check_comp_unit_head, read_and_check_type_unit_head):
8459 Likewise.
8460 (read_abbrev_offset): Constify.
8461 (dwarf2_create_include_psymtab): Make 'name' const.
8462 (create_debug_types_hash_table): Update.
8463 (read_cutu_die_from_dwo): Make 'result_info_ptr' const.
8464 (init_cutu_and_read_dies, init_cutu_and_read_dies_no_follow):
8465 Constify.
8466 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader)
8467 (load_partial_comp_unit_reader): Make 'info_ptr' const.
8468 (read_comp_units_from_section): Constify.
8469 (peek_abbrev_code, peek_die_abbrev, skip_children, skip_one_die)
8470 (locate_pdi_sibling, load_full_comp_unit_reader): Make 'info_ptr'
8471 const.
8472 (dwarf2_compute_name, setup_type_unit_groups): Constify.
8473 (create_dwo_debug_info_hash_table): Make 'info_ptr' const.
8474 (create_dwp_hash_table, dwarf2_ranges_read)
8475 (dwarf2_record_block_ranges): Constify.
8476 (read_die_and_children, read_die_and_siblings_1)
8477 (read_die_and_siblings): Make 'info_ptr' and 'new_info_ptr'
8478 const.
8479 (read_full_die_1, read_full_die): Make 'info_ptr' const.
8480 (abbrev_table_read_table): Constify.
8481 (load_partial_dies): Make 'info_ptr' const.
8482 (read_partial_die, read_attribute_value, read_attribute): Make
8483 'info_ptr' and return type const.
8484 (read_address, read_initial_length)
8485 (read_checked_initial_length_and_offset, read_offset)
8486 (read_offset_1, read_n_bytes, read_direct_string): Make 'buf'
8487 const.
8488 (read_direct_string): Make 'buf' and return type const.
8489 (read_indirect_string_at_offset, read_indirect_string_from_dwz)
8490 (read_indirect_string): Make return type const.
8491 (read_unsigned_leb128, read_signed_leb128): Make 'buf' const.
8492 (read_addr_index_from_leb128, dwarf2_read_addr_index_reader): Make
8493 'info_ptr' const.
8494 (read_str_index): Make return type const.
8495 (add_include_dir): Make 'include_dir' const.
8496 (add_file_name): Make 'name' const.
8497 (dwarf_decode_line_header): Constify.
8498 (psymtab_include_file_name): Make return type const.
8499 (dwarf_decode_lines_1, dwarf_decode_lines): Constify.
8500 (dwarf2_start_subfile): Make 'filename' const.
8501 (dwarf2_const_value_attr): Make 'bytes' const.
8502 (read_signatured_type_reader): Make 'info_ptr' const.
8503 (decode_locdesc): Constify.
8504 (skip_form_bytes): Make 'bytes', 'buffer_end', and return type
8505 const.
8506 (skip_unknown_opcode): Make 'opcode_definitions', 'mac_ptr',
8507 'mac_end', and return type const.
8508 (dwarf_parse_macro_header): Make 'mac_ptr' and return type const.
8509 (dwarf_decode_macro_bytes): Make 'mac_ptr', 'mac_end', and return
8510 type const.
8511 (per_cu_header_read_in): Constify.
8512 * symfile.h (dwarf2_get_section_info): Update.
8513
d47a1bc1
TT
85142013-04-12 Tom Tromey <tromey@redhat.com>
8515
8516 * symtab.h (struct general_symbol_info) <value.bytes>: Make const.
8517
6eaaf48b
EZ
85182013-04-12 Eli Zaretskii <eliz@gnu.org>
8519
fc4c25bf 8520 * NEWS: Mention "show configuration", --configuration.
6eaaf48b
EZ
8521 * top.c (print_gdb_configuration): New function, displays the
8522 details about GDB configure-time parameters.
8523 (print_gdb_version): Mention "show configuration".
6eaaf48b
EZ
8524 * cli/cli-cmds.c (show_configuration): New function.
8525 (_initialize_cli_cmds): Add the "show configuration" command.
6eaaf48b
EZ
8526 * main.c (captured_main) <print_configuration>: New static var.
8527 <long_options>: Use it.
8528 If --configuration was given, call print_gdb_configuration.
8529
b292c783
JK
85302013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8531 Pedro Alves <palves@redhat.com>
8532
8533 * Makefile.in (HAVE_NATIVE_GCORE_TARGET): New.
8534 (generated_files): Add gcore.
8535 (install-only, uninstall): Add gcore if HAVE_NATIVE_GCORE_TARGET or
8536 HAVE_NATIVE_GCORE_HOST.
8537 (gcore): New.
8538 * NEWS (Changes since GDB 7.6): Mention newly installed gcore.
8539 * config/alpha/alpha-osf3.mh, config/i386/fbsd.mh,
8540 config/i386/fbsd64.mh, config/i386/i386gnu.mh, config/i386/i386sol2.mh,
8541 config/i386/sol2-64.mh, config/mips/irix5.mh, config/mips/irix6.mh,
8542 config/powerpc/fbsd.mh, config/sparc/fbsd.mh, config/sparc/sol2.mh:
8543 Add HAVE_NATIVE_GCORE_HOST.
8544 * configure: Regenerate.
8545 * configure.ac (HAVE_NATIVE_GCORE_TARGET): New, set it, AC_SUBST it.
8546 New AC_SUBST fir GDB_TRANSFORM_NAME and GCORE_TRANSFORM_NAME. New
8547 AC_CONFIG_FILES for gcore.
8548 * configure.tgt: Add gdb_have_gcore to the initial comment. Set
8549 gdb_have_gcore.
8550 * gdb_gcore.sh: Rename to ...
8551 * gcore.in: ... here. Remove gcore.sh comment. Use GDB_TRANSFORM_NAME
8552 and GCORE_TRANSFORM_NAME substitutions.
8553
c96b3c4f
JK
8554 Fix parsing tabs in ${gdb_target_obs}.
8555 * configure.tgt (gdb_have_gcore): Replace case with for and if.
8556
d6cb50a2
JK
85572013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8558
8559 * remote.c (unpush_and_perror): Add output message final dot.
8560
cf2cb5ec
YQ
85612013-04-11 Yao Qi <yao@codesourcery.com>
8562
8563 * tracepoint.c (tfile_interp_line): Fit parameters line and
8564 utpp in one line.
8565
07293be4
JB
85662013-04-10 Joel Brobecker <brobecker@adacore.com>
8567
8568 * solib.c (solib_map_sections): Remove code overwriting
8569 SO->SO_NAME with the bfd's filename.
8570
f81d1120
PA
85712013-04-10 Pedro Alves <palves@redhat.com>
8572
8573 * cli/cli-decode.c (integer_unlimited_completer): New function.
8574 (add_setshow_integer_cmd, add_setshow_uinteger_cmd)
8575 (add_setshow_zuinteger_unlimited_cmd): Install the "unlimited"
8576 completer.
8577 * cli/cli-setshow.c: Include "cli/cli-utils.h".
8578 (is_unlimited_literal): New function.
8579 (do_set_command): Handle literal "unlimited" arguments.
8580 * frame.c (_initialize_frame) <set backtrace limit>: Document
8581 "unlimited".
8582 * printcmd.c (_initialize_printcmd) <set print
8583 max-symbolic-offset>: Add help text.
8584 * record-full.c (_initialize_record_full) <set record full
8585 insn-number-max>: Likewise.
8586 * record.c (_initialize_record) <set record
8587 instruction-history-size, set record function-call-history-size>:
8588 Add help text.
8589 * ser-tcp.c (_initialize_ser_tcp) <set tcp connect-timeout>: Add
8590 help text.
8591 * tracepoint.c (_initialize_tracepoint) <set trace-buffer-size>:
8592 Likewise.
8593 * source.c (_initialize_source) <set listsize>: Add help text.
8594 * utils.c (initialize_utils) <set height, set width>: Likewise.
8595 <set pagination>: Mention "set height unlimited".
8596 * valprint.c (_initialize_valprint) <set print elements, set print
8597 repeats>: Document "unlimited".
8598
2f9d54cf
PA
85992013-04-10 Pedro Alves <palves@redhat.com>
8600
8601 * cli/cli-cmds.c (quit_command): Call query_if_trace_running
8602 instead of disconnect_tracing.
8603 * infcmd.c (detach_command, disconnect_command): Call
8604 query_if_trace_running. Adjust.
8605 * top.c: Include "tracepoint.h".
8606 (quit_target): Delete. Contents moved ...
8607 (quit_force): ... here. Wrap each stage of teardown in
8608 TRY_CATCH. Call disconnect_tracing before detaching.
8609
393fd4c3
YQ
86102013-04-10 Hui Zhu <hui@codesourcery.com>
8611 Yao Qi <yao@codesourcery.com>
8612
8613 * configure.ac: Check libbabeltrace is installed.
8614 * config.in: Regenerate.
8615 * configure: Regenerate.
8616 * Makefile.in (LIBBABELTRACE): New.
8617 (CLIBS): Add LIBBABELTRACE.
8618 * ctf.c: Include "exec.h".
8619 (CTF_EVENT_ID_STATUS, CTF_EVENT_ID_TSV_DEF): New macros.
8620 (CTF_EVENT_ID_TP_DEF, ctf_save_write_int32): New macros.
8621 (ctf_save_metadata_header): Define new type aliases in
8622 metadata.
8623 (ctf_write_header): Define event type "tsv_def" and "tp_def"
8624 in metadata. Start a new faked packet for trace status.
8625 (ctf_write_status): Write trace status to CTF.
8626 (ctf_write_uploaded_tsv): Write TSV to CTF.
8627 (ctf_write_uploaded_tp): Write tracepoint definition to CTF.
8628 (ctf_write_definition_end): End the faked packet.
8629
8630 (ctx, ctf_iter, trace_dirname): New.
8631 (start_pos): New variable.
8632 (ctf_destroy, ctf_open_dir, ctf_open): New.
8633 (SET_INT32_FIELD, SET_ARRAY_FIELD, SET_STRING_FIELD): New
8634 macros.
8635 (ctf_read_tsv, ctf_read_tp, ctf_close, ctf_files_info): New.
8636 (ctf_fetch_registers, ctf_xfer_partial): New.
8637 (ctf_get_trace_state_variable_value): New.
8638 (ctf_get_tpnum_from_frame_event): New.
8639 (ctf_get_traceframe_address): New.
8640 (ctf_trace_find, ctf_has_stack): New.
8641 (ctf_has_registers, ctf_traceframe_info, init_ctf_ops): New.
8642 (ctf_get_trace_status, ctf_read_status): New.
8643 (_initialize_ctf): New.
8644 * tracepoint.c (get_tracepoint_number): New
8645 (get_uploaded_tsv): Remove 'static'.
5f8e0b8f 8646 (struct traceframe_info, trace_regblock_size): Move it to ...
393fd4c3
YQ
8647 * tracepoint.h: ... here.
8648 (get_tracepoint_number): Declare it.
8649 (get_uploaded_tsv): Declare it.
8650
8651 * NEWS: Mention new configure option.
8652
5c2b4418
HZ
86532013-04-10 Pedro Alves <palves@redhat.com>
8654 Hui Zhu <hui@codesourcery.com>
8655
8656 * breakpoint.c (dprintf_re_set): New.
8657 (initialize_breakpoint_ops): Set dprintf_breakpoint_ops re_set
8658 to dprintf_re_set.
8659
a5c66735
JB
86602013-04-09 Joel Brobecker <brobecker@adacore.com>
8661
8662 * configure.tgt (gdb_target_obs) <powerpc-*-aix* | rs6000-*-*>:
8663 Remove solib-svr4.o from the list.
8664
9e77999c
JB
86652013-04-09 Joel Brobecker <brobecker@adacore.com>
8666
8667 * varobj.c (update_dynamic_varobj_children) [!HAVE_PYTHON]:
8668 Use gdb_assert_not_reached instead of invalid boolean expression.
8669
1927e618
PA
86702013-04-09 Pedro Alves <palves@redhat.com>
8671
8672 * remote.c (unpush_and_perror): New function.
8673 (readchar, remote_serial_write): Use it.
8674
10782d74
MM
86752013-04-09 Markus Metzger <markus.t.metzger@intel.com>
8676
8677 * NEWS: Mention new btrace RSP packets.
8678
4c8429ef
TT
86792013-04-08 Tom Tromey <tromey@redhat.com>
8680
8681 * symmisc.c (dump_msymbols): Cast fprintf_filtered argument to
8682 long.
8683
8625fc1b
TT
86842013-04-08 Tom Tromey <tromey@redhat.com>
8685
8686 * maint.c (print_bfd_section_info): Print the section index.
8687 * symmisc.c (dump_msymbols): Print the section index.
8688
e27d198c
TT
86892013-04-08 Tom Tromey <tromey@redhat.com>
8690
8691 PR symtab/8424:
8692 * blockframe.c (find_pc_partial_function_gnu_ifunc): Check
8693 SYMBOL_SECTION, not SYMBOL_OBJ_SECTION.
8694 * breakpoint.c (resolve_sal_pc): Update.
8695 * elfread.c (elf_gnu_ifunc_record_cache): Update.
8696 * findvar.c (struct minsym_lookup_data) <objfile>: New field.
8697 (minsym_lookup_iterator_cb): Use it.
8698 (default_read_var_value): Update.
8699 * hppa-hpux-tdep.c (hppa64_hpux_in_solib_call_trampoline):
8700 Update.
8701 * infcmd.c (jump_command): Update.
8702 * linespec.c (minsym_found): Update.
8703 * maint.c (maintenance_translate_address): Update.
8704 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Update.
8705 (prim_record_minimal_symbol_full): Don't set SYMBOL_OBJ_SECTION.
8706 * parse.c (write_exp_msymbol): Update.
8707 * printcmd.c (address_info): Update.
8708 * psymtab.c (find_pc_sect_psymbol): Update.
8709 (fixup_psymbol_section): Check SYMBOL_SECTION, not
8710 SYMBOL_OBJ_SECTION.
8711 (add_psymbol_to_bcache): Correctly initialize SYMBOL_SECTION.
8712 Don't initialize SYMBOL_OBJ_SECTION.
8713 * spu-tdep.c (spu_catch_start): Update.
8714 * stabsread.c (define_symbol): Don't set SYMBOL_SECTION.
8715 * symmisc.c (dump_msymbols, print_symbol): Update.
8716 * symtab.c (fixup_section): Don't set 'obj_section'. Change
8717 how fallback section is computed.
8718 (fixup_symbol_section): Update.
8719 (find_pc_sect_symtab, find_function_start_sal, skip_prologue_sal):
8720 Update.
8721 (allocate_symbol, initialize_symbol, allocate_template_symbol):
8722 Initialize SYMBOL_SECTION.
8723 * symtab.h (struct general_symbol_info) <section>: Update comment.
8724 <obj_section>: Remove.
8725 (SYMBOL_OBJ_SECTION): Add 'objfile' argument. Rewrite.
8726 (SYMBOL_OBJFILE): New macro.
8727
e6dc44a8
TT
87282013-04-08 Tom Tromey <tromey@redhat.com>
8729
8730 * coffread.c (record_minimal_symbol): Update.
8731 * dbxread.c (record_minimal_symbol): Update.
8732 * elfread.c (record_minimal_symbol): Update.
8733 * machoread.c (macho_symtab_add_minsym): Update.
8734 * mdebugread.c (record_minimal_symbol, parse_partial_symbols):
8735 Update.
8736 * minsyms.c (prim_record_minimal_symbol): Update.
8737 (prim_record_minimal_symbol_full): Remove 'bfd_section'
8738 argument.
8739 (prim_record_minimal_symbol_and_info): Likewise.
8740 * minsyms.h (prim_record_minimal_symbol_full)
8741 (prim_record_minimal_symbol_and_info): Update.
8742 * symtab.c (allocate_symbol, initialize_symbol)
8743 (allocate_template_symbol): Initialize SYMBOL_SECTION.
8744 * xcoffread.c (record_minimal_symbol, scan_xcoff_symtab):
8745 Update.
8746
36192a8d
TT
87472013-04-08 Tom Tromey <tromey@redhat.com>
8748
8749 PR symtab/8423:
8750 * solib-som.c (som_solib_section_offsets): Use BFD section
8751 indices. Set offsets for all sections.
8752 * somread.c (som_symtab_read): Compute BFD section for
8753 symbol. Use prim_record_minimal_symbol_and_info.
8754 (som_symfile_read): Fix comment.
8755 (struct find_section_offset_arg): New.
8756 (find_section_offset, set_section_index): New functions.
8757 (som_symfile_offsets): Use set_section_index to compute
8758 section indices.
8759
65cf3563
TT
87602013-04-08 Tom Tromey <tromey@redhat.com>
8761
8762 * coffread.c (cs_to_section): Use gdb_bfd_section_index.
8763 * elfread.c (record_minimal_symbol, elf_symtab_read): Use
8764 gdb_bfd_section_index.
8765 * gdb_bfd.c (gdb_bfd_section_index, gdb_bfd_count_sections):
8766 New functions.
8767 * gdb_bfd.h (gdb_bfd_section_index, gdb_bfd_count_sections):
8768 Declare.
8769 * machoread.c (macho_symtab_add_minsym, macho_symfile_offsets):
8770 Update.
8771 * objfiles.c (add_to_objfile_sections_full): New function.
8772 (add_to_objfile_sections): Use it.
8773 (build_section_table): Rewrite.
8774 (objfile_relocate1): Use gdb_bfd_section_index. Update.
8775 * objfiles.h (obj_section_offset): Use gdb_bfd_section_index.
8776 (struct objfile) <sections>: Update comment.
8777 (ALL_OBJFILE_OSECTIONS): Skip sections where the_bfd_section
8778 is NULL.
8779 (ALL_OBJSECTIONS): Use it.
8780 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
8781 * solib-frv.c (frv_relocate_main_executable): Update.
8782 * solib-target.c (solib_target_relocate_section_addresses):
8783 Use gdb_bfd_section_index.
8784 * symfile.c (build_section_addr_info_from_section_table):
8785 Use gdb_bfd_section_index.
8786 (build_section_addr_info_from_bfd, place_section): Likewise.
8787 * symtab.c (fixup_section): Update.
8788 * xcoffread.c (find_targ_sec): Use gdb_bfd_section_index.
8789
7cbd4a93
TT
87902013-04-08 Tom Tromey <tromey@redhat.com>
8791
8792 * minsyms.h (struct bound_minimal_symbol): New.
8793 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
8794 Remove objfile argument.
8795 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
8796 Return bound_minimal_symbol.
8797 * minsyms.c (lookup_minimal_symbol_by_pc_1)
8798 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
8799 Return bound_minimal_symbol.
8800 (in_gnu_ifunc_stub): Update.
8801 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
8802 Remove 'objfile_p' argument.
8803 (lookup_solib_trampoline_symbol_by_pc): Update.
8804 * ada-tasks.c, amd64-windows-tdep.c, arm-tdep.c,
8805 arm-wince-tdep.c, block.c, blockframe.c, breakpoint.c, btrace.c,
8806 c-valprint.c, dwarf2loc.c, elfread.c, frame.c, frv-tdep.c,
8807 glibc-tdep.c, gnu-v2-abi.c, gnu-v3-abi.c, hppa-hpux-tdep.c,
8808 i386-tdep.c, ia64-tdep.c, infcall.c, infcmd.c, jit.c,
8809 linux-fork.c, m32c-tdep.c, m68hc11-tdep.c, maint.c,
8810 mips-tdep.c, p-valprint.c, parse.c, ppc-linux-tdep.c,
8811 ppc-sysv-tdep.c, printcmd.c, rs6000-tdep.c, sh64-tdep.c,
8812 stack.c, symtab.c, tui/tui-disasm.c: Update.
8813
f85f34ed
TT
88142013-04-08 Tom Tromey <tromey@redhat.com>
8815
8816 * ada-lang.c (ada_decode_symbol): Check and set 'ada_mangled'.
8817 Use symbol's obstack, not an objfile.
8818 * coffread.c (process_coff_symbol): Update.
8819 * dwarf2read.c (fixup_go_packaging, new_symbol_full): Update.
8820 * jv-lang.c (add_class_symbol): Update.
8821 * mdebugread.c (new_symbol): Update.
8822 * minsyms.c (prim_record_minimal_symbol_full)
8823 (terminate_minimal_symbol_table): Update.
8824 * psymtab.c (add_psymbol_to_bcache): Clear entire symbol. Update.
8825 * stabsread.c (define_symbol, read_enum_type): Update.
8826 * symtab.c (symbol_set_demangled_name, symbol_get_demangled_name):
8827 Handle Ada specially.
8828 (symbol_set_language): Add 'obstack' argument.
8829 (symbol_set_names): Update.
8830 (symbol_natural_name, symbol_demangled_name): Always use
8831 ada_decode_symbol.
8832 * symtab.h (struct general_symbol_info)
8833 <language_specific::obstack>: New field.
8834 <ada_mangled>: New field.
8835 (SYMBOL_SET_LANGUAGE): Add 'obstack' argument.
8836 (symbol_set_language): Update.
8837
ccde22c0
TT
88382013-04-08 Tom Tromey <tromey@redhat.com>
8839
8840 * symtab.c (symbol_init_cplus_specific, symbol_set_demangled_name):
8841 Take an obstack, not an objfile.
8842 (symbol_set_names): Update.
8843 * symtab.h (symbol_set_demangled_name): Update.
8844
e623cf5d
TT
88452013-04-08 Tom Tromey <tromey@redhat.com>
8846
8847 * coffread.c (process_coff_symbol, coff_read_enum_type): Call
8848 allocate_symbol.
8849 * dwarf2read.c (fixup_go_packaging): Call allocate_symbol.
8850 (read_func_scope): Call allocate_template_symbol.
8851 (new_symbol_full): Call allocate_symbol.
8852 * jit.c (finalize_symtab): Call allocate_symbol.
8853 * jv-lang.c (add_class_symbol): Call allocate_symbol.
8854 * mdebugread.c (parse_symbol, new_block): Call allocate_symbol.
8855 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
8856 (common_block_end): Call allocate_symbol.
8857 * symtab.c (allocate_symbol, initialize_symbol)
8858 (allocate_template_symbol): New functions.
8859 * symtab.c (allocate_symbol, initialize_symbol)
8860 (allocate_template_symbol): Declare.
8861 * xcoffread.c (process_xcoff_symbol): Call initialize_symbol.
8862
f6de8ec2
PA
88632013-04-08 Pedro Alves <palves@redhat.com>
8864 Keith Seitz <keiths@redhat.com>
8865
8866 * breakpoint.c (create_breakpoint): Rename
8867 "parse_condition_and_thread" parameter to "parse_arg". Update
8868 describing comment. If !PARSE_ARG, then error out if ARG is not
8869 the empty string after extracting the location.
8870 * breakpoint.h (create_breakpoint): Rename
8871 "parse_condition_and_thread" parameter to "parse_arg".
8872
f65ce5fb
AR
88732013-04-08 Aleksandar Ristovski <aristovski@qnx.com
8874
8875 * solib-svr4.c (lm_addr_check): Add const qualifier to 'so' arg.
8876
cc5925ad
YQ
88772013-04-07 Yao Qi <yao@codesourcery.com>
8878
8879 * remote.c (remote_trace_find): Change type of parameters 'addr1'
8880 and 'addr2' to CORE_ADDR.
8881 * target.c (update_current_target): Update.
8882 * target.h (struct target_ops) <to_trace_find>: Change parameter
8883 type to CORE_ADDR.
8884 * tracepoint.c (tfind_1): Change type of parameters 'addr1' and
8885 'addr2' to CORE_ADDR.
8886 (tfile_trace_find): Likewise.
8887 (tfile_get_traceframe_address): Change return type to CORE_ADDR.
8888 Change local variable 'addr' to type CORE_ADDR.
8889 * tracepoint.h (tfind_1): Update declaration.
8890
d9ac0664
EZ
88912013-04-06 Eli Zaretskii <eliz@gnu.org>
8892
8893 * windows-nat.c (windows_get_absolute_argv0): Move from here...
8894 * mingw-hdep.c (windows_get_absolute_argv0): ...to here.
8895 Include main.h.
8896
8897 * windows-nat.h (windows_get_absolute_argv0): Move prototype from
8898 here...
8899 * main.h (windows_get_absolute_argv0): ...to here.
8900
02142a6c
DE
89012013-04-05 Doug Evans <dje@google.com>
8902
8903 * dwarf2read.c (struct dwarf2_per_objfile): Tweak comment.
8904 (read_cutu_die_from_dwo): Add comments.
8905 (read_structure_type): Update comment.
8906 (read_enumeration_type, read_namespace_type): Update comment.
8907 (read_die_type, get_die_type_at_offset, get_die_type): Update comment.
8908
43662968
JK
89092013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
8910
8911 Convert man pages to texinfo, new gdbinit.5 texinfo page.
8912 * Makefile.in (gdb.z): Remove.
8913 (install-only): Remove $(man1dir) and gdb.1 installation.
8914 * gdb.1: Remove.
8915
9ead1b84
JK
89162013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
8917
8918 Fix compatibility with Linux kernel 3.8.3.
8919 * linux-tdep.c (linux_find_memory_regions_full): Move variable number
8920 to more inner block. Remove parsing of NUMBER from outer block.
8921 Parse NUMBER only if KEYWORD has been identified.
8922
d1794952
JK
89232013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
8924
8925 Fix variable name shadowing.
8926 * linux-tdep.c (linux_find_memory_regions_full): Rename outer variable
8927 filename to mapsfilename and update its uses.
8928
9025569e
EZ
89292013-04-05 Eli Zaretskii <eliz@gnu.org>
8930
8931 * Makefile.in (TAGS): Avoid warning from etags when $GDB_NM_FILE is
8932 empty. See http://sourceware.org/ml/gdb-patches/2012-08/msg00504.html
8933 and http://sourceware.org/ml/gdb-patches/2013-04/msg00055.html for
8934 details of the problem.
8935
c9a6ce02
PA
89362013-04-04 Pedro Alves <palves@redhat.com>
8937 Hui Zhu <hui@codesourcery.com>
8938
8939 * breakpoint.c (validate_commands_for_breakpoint): If validating a
8940 tracepoint, reset its STEP_COUNT and call validate_actionline.
8941
5ff888ce
DE
89422013-04-03 Doug Evans <dje@google.com>
8943
bf6af496
DE
8944 * dwarf2read.c (read_die_and_siblings_1): Renamed from
8945 read_die_and_siblings.
8946 (read_die_and_siblings): New function.
8947 (read_cutu_die_from_dwo): Dump die if requested.
8948 (read_die_and_children): Call read_full_die_1 and
8949 read_die_and_siblings_1.
8950 (read_full_die): Dump die if requested.
8951
8952 * dwarf2read.c (read_comp_units_from_section): Add debugging printf.
8953
0ac5b59e
DE
8954 * dwarf2read.c (struct dwo_file): New member comp_dir.
8955 Rename member name to dwo_name. All uses updated.
8956 (hash_dwo_file): Include comp_dir in computation.
8957 (eq_dwo_file): Ditto.
8958 (lookup_dwo_file_slot): New arg comp_dir. All callers updated.
8959 (create_dwo_in_dwp, lookup_dwo_in_dwp, open_and_init_dwo_file): Ditto.
8960
5ff888ce
DE
8961 * psymtab.c (read_psymtabs_with_fullname): Don't call
8962 psymtab_to_fullname if the basenames are different.
8963
ec83d211
JK
89642013-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
8965
8966 * NEWS (Changes in GDB 7.6): Update the data-disassemble for "fullname".
8967 New entry about "fullname" presence.
8968
4f4352f7
PA
89692013-04-03 Pedro Alves <palves@redhat.com>
8970
8971 * NEWS: Mention x86_64/Cygwin as new native configuration.
8972
3d1d5ea3
DE
89732013-04-02 Doug Evans <dje@google.com>
8974
8975 * dwarf2read.c (read_structure_type): Fix typo in comment.
8976
be9a8770
PA
89772013-04-02 Pedro Alves <palves@redhat.com>
8978
8979 * NEWS: Mention "set/show debug aarch64", "set/show debug
8980 coff-pe-read" and "set/show debug mach-o".
8981
a46c1e42
PA
89822013-04-02 Pedro Alves <palves@redhat.com>
8983
8984 * NEWS: Mention "set/show remote trace-buffer-size-packet".
8985
3ad18b19
EZ
89862013-04-02 Eli Zaretskii <eliz@gnu.org>
8987
8988 * Makefile.in (HFILES_NO_SRCDIR): Remove call-cmds.h.
8989 gdb_string.h is now in common/.
8990
e9f1758d
PA
89912013-04-02 Pedro Alves <palves@redhat.com>
8992
8993 * NEWS: Move "set debug notification" and "set trace-buffer-size"
8994 under "New options".
8995
049dc89b
JK
89962013-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8997
8998 Revert this patch:
8999 PR gdb/15275
9000 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
9001
c33e31fd
PA
90022013-04-02 Pedro Alves <palves@redhat.com>
9003
9004 PR gdb/15275
9005
9006 * remote.c (send_interrupt_sequence): Use remote_serial_write.
9007 (remote_serial_write): New function.
9008 (putpkt_binary, getpkt_or_notif_sane_1): Use remote_serial_write.
9009
ea5f3910
JW
90102013-04-01 Jiong Wang <jiwang@tilera.com>
9011
9012 * NEWS: Mention TILE-Gx in "New native configurations" and
f5aee5ee 9013 "New targets" sections.
ea5f3910 9014
5c6fa7ab
DE
90152013-04-01 Doug Evans <dje@google.com>
9016
c0f78cd4
DE
9017 * dwarf2read.c (lookup_signatured_type_at_offset): Delete.
9018 (process_enumeration_scope): Simplify.
9019
0186c6a7
DE
9020 * dwarf2read.c (struct dwarf2_per_cu_data): Move member
9021 type_unit_group ...
9022 (struct signatured_type): ... to here.
9023 (sig_type_ptr): New typedef.
9024 (type_unit_group): Delete member 't.first_cu'. Move member 'tus'
9025 out of union 't'. All uses updated.
9026 (dw2_get_file_names_reader): Assert not called for a type unit.
9027 (dw2_get_file_names): Assert not called for a type unit or type
9028 unit group.
9029 (build_type_psymtabs_reader): Assert called for a type unit.
9030 (build_type_psymtab_dependencies): Assert called for a type unit group.
9031
5c6fa7ab
DE
9032 * dwarf2read.c (free_dwo_file): Add comment.
9033 (dwarf2_per_objfile_free): Unref dwp bfd.
9034
b3c0ad67 90352013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
cebca8c1
AR
9036
9037 * coff-pe-read.c (add_pe_exported_sym): Remove unused 'dll_name_len'.
9038 (add_pe_forwarded_sym): Remove unused 'section', 'dll_name_len'.
9039 (read_pe_exported_syms): Remove unused 'exportix'.
9040 (pe_text_section_offset): Remove unused 'opthdr_ofs', 'num_entries',
9041 'export_rva', 'export_size', 'expptr', 'exp_funcbase', 'expdata',
9042 'erva', 'name_rvas', 'ordinals', 'nexp', 'ordbase', 'dll_name'.
9043
e2df1547
AR
90442013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
9045
9046 * breakpoint.c (parse_cond_to_aexpr): Remove unused 'old_chain'.
9047 (print_it_watchpoint): Remove unused 'bl'.
9048 (say_where): Remove unused 'uiout'.
9049 (bpstat_remove_breakpoint_callback): Remove unused 'uiout'.
9050 (bkpt_breakpoint_hit): Remove unused 'b'.
9051 (internal_bkpt_print_it): Remove unused 'uiout'.
9052 * buildsym.c (augment_type_symtab): Remove unused 'i'.
9053
d81e75c0
TD
90542013-03-31 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
9055
9056 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_float): New function.
9057 (ppc64_sysv_abi_push_dummy_call): Handle complex arguments.
9058
5a8b3f62
DE
90592013-03-29 Doug Evans <dje@google.com>
9060
ab5088bf
DE
9061 * dwarf2read.c (open_dwo_file): Renamed from open_dwop_file.
9062 Delete arg is_dwp. All callers updated.
9063 (open_dwp_file): New function.
9064 (open_and_init_dwp_file): Call it.
9065 (get_dwp_file): New function.
9066 (lookup_dwo_cutu): Call it.
9067
a8ad1e57
DE
9068 * dwarf2read.c (open_and_init_dwp_file): Remove incorrect, and
9069 unnecessary, cleanup.
9070
6296d8c1
DE
9071 * dwarf2read.c (lookup_dwo_cutu): Improve complaint text.
9072
b0c7bfa9
DE
9073 * dwarf2read.c (read_cutu_die_from_dwo): New function.
9074 (lookup_dwo_unit): New function.
9075 (init_cutu_and_read_dies): Move DWO handling to new functions.
9076
c88ee1f0
DE
9077 * dwarf2read.c (struct signatured_type): Tweak comment.
9078 (struct dwo_unit): Tweak comment.
9079 (create_debug_types_hash_table): Tweak comment. Reformat long line.
9080 (create_dwo_debug_info_hash_table): Tweak comment.
9081 (dwarf2_per_cu_offset_and_type): Tweak comment.
9082
5a8b3f62
DE
9083 * dwarf2read.c (lookup_signatured_type): Remove complaint about
9084 missing .debug_types section.
9085
9852c492
YQ
90862013-03-29 Yao Qi <yao@codesourcery.com>
9087
9088 * corelow.c: Include "completer.h".
9089 (_initialize_corelow): Call add_target_with_completer with
9090 argument 'filename_completer'.
9091 * tracepoint.c: Likewise.
9092 * exec.c (_initialize_exec): Likewise.
9093 * target.c (add_target): Rename to ...
9094 (add_target_with_completer): ... this. Call set_cmd_completer
9095 if parameter completer is not NULL.
9096 (add_target): New.
9097 * target.h: Include "command.h".
9098 (add_target_with_completer): Declare it.
9099
af312be7
JB
91002013-03-28 Joel Brobecker <brobecker@adacore.com>
9101
9102 * coffread.c (is_import_fixup_symbol): New function.
9103 (record_minimal_symbol): Use is_import_fixup_symbol to
9104 detect import fixup symbols, and discard them.
9105
8a0459fd
DE
91062013-03-28 Doug Evans <dje@google.com>
9107
0349ea22
DE
9108 * dwarf2read.c (create_debug_types_hash_table): Don't allocate the
9109 types hash table until we know we need it.
9110
f652bce2
DE
9111 * dwarf2read.c (create_addrmap_from_index): Complain about bad CU
9112 index numbers.
9113
e4a48d9d
DE
9114 * dwarf2read.c (dw2_get_file_names): Delete arg "objfile".
9115 All callers updated.
9116 (dw2_print_stats): Print #read CUs too.
9117 (dump_die_shallow): Print signatured types better.
9118
8a0459fd
DE
9119 * dwarf2read.c (struct dwarf2_per_cu_data): Rename member
9120 info_or_types_section to section. All uses updated.
9121 (struct dwo_unit): Ditto.
9122
bd3eecc3
PA
91232013-03-28 Pedro Alves <palves@redhat.com>
9124
9125 * NEWS (New options): New section.
9126 (New options): Mention set/show remote trace-status-packet.
9127 * remote.c (PACKET_qTStatus): New enumeration value.
9128 (remote_get_trace_status): Skip sending qTStatus if the packet is
9129 disabled. Use packet_ok.
9130 (_initialize_remote): Register a configuration command for
9131 qTStatus packet.
9132
41245087
DE
91332013-03-28 Doug Evans <dje@google.com>
9134
7edbb660
DE
9135 * symfile.c (find_separate_debug_file): Add comment.
9136 (terminate_after_last_dir_separator): Tweak comment.
9137
0018ea6f
DE
9138 * dwarf2read.c (create_partial_symtab): Add forward decl.
9139 (create_partial_symtab): Move to be closer to other psymtab functions.
9140 (process_psymtab_comp_unit_reader, process_psymtab_comp_unit): Ditto.
9141
ca69b9e6
DE
9142 * dwarf2read.c (dwarf2_physname): Move declaration to better spot.
9143 (compute_symtab_includes): Remove unnecessary forward declaration.
9144 (die_needs_namespace): Add comment marking group of functions for
9145 dwarf2 name computation.
9146
a9375afe
DE
9147 * typeprint.c (_initialize_typeprint): Improve type help text.
9148
41245087
DE
9149 * python/python.c (finish_python_initialization): Provide suggestion
9150 for how to tell gdb to find its python files.
9151
7f7cc265
PA
91522013-03-28 Pedro Alves <palves@redhat.com>
9153
9154 PR gdb/15294
9155
9156 * source.c (_initialize_source): Change back "set listsize" to an
9157 integer command.
9158
ec21308c
JK
91592013-03-27 Gareth McMullin <gareth@blacksphere.co.nz>
9160
9161 PR gdb/15275
9162 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
9163
840a9a1f
PA
91642013-03-27 Pedro Alves <palves@redhat.com>
9165
9166 * top.c (history_size): Rename to ...
9167 (history_size_setshow_var): ... this. Add comment.
9168 (show_commands): Use readline's 'history_length' instead of
9169 computing the history length by calling history_get in a loop.
9170 (set_history_size_command): Error out for sizes over INT_MAX.
9171 Restore previous history size on invalid size.
9172 (init_history): If HISTSIZE is negative, leave the history size as
9173 zero. Add comments.
9174 (init_main): Adjust.
9175
826ecc4d
PA
91762013-03-27 Pedro Alves <palves@redhat.com>
9177
9178 * coff-pe-read.c (_initialize_coff_pe_read): Rename "set debug
9179 coff_pe_read" command to "set debug coff-pe-read".
9180
0ccfeeae
MM
91812013-03-27 Markus Metzger <markus.t.metzger@intel.com>
9182
9183 * record.c (command_size_to_target_size): Fix size comparison.
9184 Change parameter type from pointer to integer to integer.
9185 Update all users.
9186
40653b35
PM
91872013-03-27 Pierre Muller <muller@sourceware.org>
9188
9189 * windows-nat.c (handle_output_debug_string): Avoid typecast
9190 from integer of different size warning.
9191
c62fa0e2
JB
91922013-03-26 Joel Brobecker <brobecker@adacore.com>
9193
9194 * windows-nat.c (handle_output_debug_string): Add empty line
9195 after local block variable definition.
9196
2c619be2
PA
91972013-03-26 Pedro Alves <palves@redhat.com>
9198
9199 * ser-tcp.c (wait_for_connect): Make 'polls' parameter unsigned.
9200 (net_open): Make 'polls' local unsigned.
9201
1b493192
PA
92022013-03-26 Pedro Alves <palves@redhat.com>
9203
9204 * remote.c (_initialize_remote): Make "set remoteaddresssize"
9205 a zuinteger command instead of uinteger.
9206
7ee70bf5
PA
92072013-03-26 Pedro Alves <palves@redhat.com>
9208
9209 * record-full.c (record_full_insn_num): Make it unsigned.
9210 (record_full_check_insn_num, record_full_message)
9211 (record_full_registers_change, record_full_xfer_partial): Remove
9212 record_full_insn_max_num check (it's always != 0).
9213 (record_full_info, record_full_restore): Use %u as format string.
9214 (): Use %u as format string.
9215 (set_record_full_insn_max_num): Remove record_full_insn_max_num
9216 check (it's always != 0).
9217
dfd1f9bb
PA
92182013-03-26 Pedro Alves <palves@redhat.com>
9219
9220 * dcache.c (_initialize_dcache): Make the "set dcache line-size"
9221 and "set dcache size" commands zuinteger instead of uinteger.
9222
addb4faf
PA
92232013-03-26 Pedro Alves <palves@redhat.com>
9224
9225 * cris-tdep.c (_initialize_cris_tdep): Make the "set cris-version"
9226 command zuinteger instead of uinteger.
9227
b75bf488
PA
92282013-03-26 Pedro Alves <palves@redhat.com>
9229
9230 * coff-pe-read.c (_initialize_coff_pe_read): Make the command
9231 zuinteger instead of uinteger.
9232
42c634cb
PA
92332013-03-26 Pedro Alves <palves@redhat.com>
9234
9235 * record.c (record_insn_history_size_setshow_var)
9236 (record_call_history_size_setshow_var): New globals.
9237 (command_size_to_target_size): New function.
9238 (cmd_record_insn_history, cmd_record_call_history): Use
9239 command_size_to_target_size instead of cast.
9240 (validate_history_size, set_record_insn_history_size)
9241 (set_record_call_history_size): New functions.
9242 (_initialize_record): Install set_record_insn_history_size and
9243 set_record_call_history_size as "set" hooks of "set record
9244 instruction-history-size" and "set record
9245 function-call-history-size".
9246
1fb2e2b5
PA
92472013-03-26 Pedro Alves <palves@redhat.com>
9248
9249 * top.c (gdb_rl_operate_and_get_next): Replace max_input_history
9250 use with history_max_entries use. Remove FIXME note.
9251
99c819ee
MM
92522013-03-26 Markus Metzger <markus.t.metzger@intel.com>
9253
9254 * record-btrace.c (record_btrace_close): Call
9255 record_btrace_auto_disable.
9256
9f9e404c
JB
92572013-03-25 Joel Brobecker <brobecker@adacore.com>
9258
9259 * rs6000-nat.c (fixup_breakpoints): Delete declaration.
9260
ebcdfe33
DE
92612013-03-25 Doug Evans <dje@google.com>
9262
9263 * contrib/cc-with-tweaks.sh: Check exit code of dwp.
9264
24955f63
TT
92652013-03-25 Tom Tromey <tromey@redhat.com>
9266
9267 PR symtab/11462:
9268 * c-exp.y (exp): Add new productions for destructors after '.' and
9269 '->'.
9270 (write_destructor_name): New function.
9271
fce632b6
TT
92722013-03-25 Tom Tromey <tromey@redhat.com>
9273
9274 PR c++/9197:
9275 * opencl-lang.c (evaluate_subexp_opencl) <STRUCTOP_STRUCT>: Use
9276 value_struct_elt, not lookup_struct_elt_type.
9277 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
9278 STRUCTOP_PTR>: Use value_struct_elt, not lookup_struct_elt_type.
9279 * expression.h (EVAL_AVOID_SIDE_EFFECTS): Update comment.
9280
a4341769
YQ
92812013-03-25 Yao Qi <yao@codesourcery.com>
9282
9283 * ctf.c [USE_WIN32API]: Undef 'mkdir' and use 'mkdir'
9284 instead of '_mkdir'.
9285
b5981e5a
EZ
92862013-03-23 Eli Zaretskii <eliz@gnu.org>
9287
9288 * windows-nat.c (windows_get_absolute_argv0): New function.
9289 * windows-nat.h: Add its prototype.
9290
9291 * main.c (get_init_files): Use filename_ncmp instead of strncmp.
9292 Use IS_DIR_SEPARATOR instead of looking for a character inside
9293 SLASH_STRING. Include filenames.h.
9294 (captured_main) [__MINGW32__]: Make argv[0] absolute, so that
9295 relocate_gdb_directory works when passed gdb_program_name.
9296 Include windows-nat.h.
9297
598d3636
JK
92982013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
9299
9300 * exceptions.h (enum errors): New entry TARGET_CLOSE_ERROR.
9301 * remote.c (trace_error): Remove the special handling of '2'.
9302 (readchar) <SERIAL_EOF>
9303 (readchar) <SERIAL_ERROR>
9304 (getpkt_or_notif_sane_1): Use TARGET_CLOSE_ERROR for them.
9305 (remote_get_trace_status): Call throw_exception if EX is
9306 TARGET_CLOSE_ERROR.
9307 * utils.c (perror_with_name): Rename to ...
9308 (throw_perror_with_name): ... here. New parameter errcode, describe it
9309 in the function comment.
9310 (perror_with_name): New function wrapper.
9311 * utils.h (enum errors): New stub declaration.
9312 (throw_perror_with_name): New declaration.
9313
82b821e9
PA
93142013-03-22 Pedro Alves <palves@redhat.com>
9315 Yao Qi <yao@codesourcery.com>
9316 Mark Kettenis <kettenis@gnu.org>
9317
9318 * cli/cli-setshow.c (do_set_command) <var_uinteger>:
9319 Don't let the user set the value to UINT_MAX directly.
9320 <var_integer>: Don't let the user set the value to INT_MAX
9321 directly.
9322
78a095c3
JK
93232013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
9324
9325 * remote.c (remote_unpush_target): New function.
9326 (remote_open_1): Remove two pop_target calls, update one comment, add
9327 comment to target_preopen call. Replace pop_target call by
9328 remote_unpush_target call.
9329 (interrupt_query, readchar, getpkt_or_notif_sane_1): Replace
9330 pop_target calls by remote_unpush_target calls.
9331
3e74e146
PA
93322013-03-22 Pedro Alves <palves@redhat.com>
9333
9334 * linux-nat.c (linux_child_follow_fork): Don't call
9335 linux_enable_event_reporting.
9336 (linux_handle_extended_wait): Don't call
9337 linux_enable_event_reporting.
9338
a2213dca
PA
93392013-03-22 Pedro Alves <palves@redhat.com>
9340
9341 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Define INSN macro,
9342 use it to rewrite the trampoline buffers with type gdb_byte[], and
9343 undefine the macro. Remove char* cast.
9344
bd712aed
DE
93452013-03-21 Doug Evans <dje@google.com>
9346
9347 New commands "mt set per-command {space,time,symtab} {on,off}".
9348 * NEWS: Add entry.
9349 * event-top.c: #include "maint.h".
9350 * main.c: #include "maint.h".
9351 * maint.c: #include <sys/time.h>, <time.h>, block.h, top.h,
9352 timeval-utils.h, maint.h, cli/cli-setshow.h.
9353 (per_command_time, per_command_space): New static globals.
9354 (per_command_symtab): New static global.
9355 (per_command_setlist, per_command_showlist): New static globals.
9356 (struct cmd_stats): Move here from utils.c.
9357 (set_per_command_time): Renamed from set_display_time in utils.c
9358 and moved here. All callers updated.
9359 (set_per_command_space): Renamed from set_display_space in utils.c
9360 and moved here. All callers updated.
9361 (count_symtabs_and_blocks): New function.
9362 (report_command_stats): Moved here from utils.c. Add support for
9363 printing symtab stats. Only print data if enabled before command
9364 executed.
9365 (make_command_stats_cleanup): Ditto.
9366 (sert_per_command_cmd, show_per_command_cmd): New functions.
9367 (_initialize_maint_cmds): Add new commands
9368 mt set per-command {space,time,symtab} {on,off}.
9369 * maint.h: New file.
9370 * top.c: #include "maint.h".
9371 * utils.c (reset_prompt_for_continue_wait_time): New function.
9372 (get_prompt_for_continue_wait_time): New function.
9373 * utils.h (reset_prompt_for_continue_wait_time): Declare
9374 (get_prompt_for_continue_wait_time): Declare.
9375 (make_command_stats_cleanup): Moved to maint.h.
9376 (set_display_time, set_display_space): Moved to maint.h and renamed
9377 to set_per_command_time, set_per_command_space.
9378 * cli/cli-setshow.c (parse_cli_boolean_value): Renamed from
9379 parse_binary_operation and made non-static. Don't call error,
9380 just return an error marker. All callers updated.
9381 * cli/cli-setshow.h (parse_cli_boolean_value): Declare.
9382
d76488d8
TT
93832013-03-21 Tom Tromey <tromey@redhat.com>
9384
9385 * symfile.c (alloc_section_addr_info): Update header. Don't set
9386 'num_sections' field.
9387 (build_section_addr_info_from_section_table): Set 'num_sections'.
9388 (build_section_addr_info_from_bfd): Likewise.
9389 (build_section_addr_info_from_objfile): Remove dead loop
9390 condition.
9391 (free_section_addr_info): Unconditionally call xfree.
9392 (relative_addr_info_to_section_offsets, addrs_section_sort)
9393 (addr_info_make_relative, syms_from_objfile_1): Remove dead loop
9394 condition.
9395 (syms_from_objfile_1): Remove dead 'if' condition. Check
9396 'num_sections'.
9397 (add_symbol_file_command): Set 'num_sections'.
9398 * symfile-mem.c (symbol_file_add_from_memory): Set
9399 'num_sections'.
9400 * somread.c (som_symfile_offsets): Remove dead loop condition.
9401 * machoread.c (macho_symfile_offsets): Remove dead 'if'.
9402 * jit.c (jit_bfd_try_read_symtab): Set 'num_sections'.
9403
a72e5169 94042013-03-21 Tom Tromey <tromey@redhat.com>
92bc6a20
TT
9405
9406 * tracepoint.h (decode_agent_options): Add 'trace_string'
9407 argument.
9408 * tracepoint.c (decode_agent_options): Add 'trace_string'
9409 argument.
9410 (validate_actionline): Update.
9411 (collect_symbol): Add 'trace_string' argument.
9412 (struct add_local_symbols_data) <trace_string>: New field.
9413 (do_collect_symbol): Update.
9414 (add_local_symbols): Add 'trace_string' argument.
9415 (encode_actions_1): Update.
9416 (trace_dump_actions): Update.
9417 * dwarf2loc.c (access_memory): Update.
9418 * ax.h (struct agent_expr) <tracing, trace_string>: New fields.
9419 * ax-general.c (new_agent_expr): Update.
9420 * ax-gdb.h (gen_trace_for_expr, gen_trace_for_var)
9421 (gen_trace_for_return_address): Add argument.
9422 (trace_kludge, trace_string_kludge): Remove.
9423 * ax-gdb.c (trace_kludge, trace_string_kludge): Remove.
9424 (gen_traced_pop, gen_fetch, gen_bitfield_ref, gen_expr): Update.
9425 (gen_trace_for_var): Add 'trace_string' argument.
9426 (gen_trace_for_expr, gen_trace_for_return_address): Likewise.
9427 (gen_printf, agent_eval_command_one): Update.
9428
b2f83c08
TT
94292013-03-21 Tom Tromey <tromey@redhat.com>
9430
9431 PR exp/15109:
9432 * c-exp.y (yylex): Rewrite to push all tokens onto the FIFO.
9433 Handle FILENAME token.
9434
9507860e
TT
94352013-03-21 Tom Tromey <tromey@redhat.com>
9436
9437 * c-exp.y (YYPRINT): Define.
9438 (c_print_token): New function.
9439
e403aa4b
TT
94402013-03-21 Tom Tromey <tromey@redhat.com>
9441
9442 * c-exp.y (%union) <sym, ivar, ivec>: Remove.
9443
af307d6a
YQ
94442013-03-21 Yao Qi <yao@codesourcery.com>
9445
9446 * ctf.c: Include "gdb_stat.h".
9447 [USE_WIN32API]: New macro 'mkdir'.
9448 (ctf_start): Use permission bits macros if they are defined.
9449
fb81d016
KS
94502013-03-20 Keith Seitz <keiths@redhat.com>
9451
9452 * breakpoint.h (struct breakpoint): Add comment to
9453 extra_string indicating that this member is mallod'd.
9454 * breakpoint.c (base_breakpoint_dtor): Free extra_string.
9455
ef0026f0
PA
94562013-03-20 Pedro Alves <palves@redhat.com>
9457
9458 PR gdb/15289
9459
9460 * cli/cli-setshow.c (do_set_command)
9461 <var_uinteger, var_zuinteger>: Use LONGEST for variable holding
9462 the result of parsing the command argument. Throw error if the
9463 value is greater than UINT_MAX. Print the invalid value with
9464 plongest.
9465 <var_integer, var_zinteger>: Use LONGEST for variable holding the
9466 result of parsing the command argument. Throw error if the value
9467 is greater than INT_MAX, not greater or equal. Also throw error
9468 if the value is less than INT_MIN. Print the invalid value with
9469 plongest.
9470 <var_zuinteger_unlimited>: Throw error if the value is greater
9471 than INT_MAX, not greater or equal.
9472 (do_show_command) <var_integer, var_zinteger,
9473 var_zuinteger_unlimited>: Use %d for printing int, not %u.
9474
24d6c2a0
TT
94752013-03-20 Tom Tromey <tromey@redhat.com>
9476
9477 * ax-gdb.c (gen_var_ref): Unconditionally call via computed ops,
9478 if possible.
9479 * dwarf2read.c (read_func_scope): Remove old FIXME.
9480 * eval.c (evaluate_subexp_standard): Check SYMBOL_COMPUTED_OPS,
9481 not LOC_COMPUTED.
9482 * findvar.c (symbol_read_needs_frame, default_read_var_value):
9483 Unconditionally call via computed ops, if possible.
9484 * printcmd.c (address_info): Unconditionally call via computed ops,
9485 if possible.
9486 * stack.c (read_frame_arg): Unconditionally call via computed ops,
9487 if possible.
9488 * symtab.c (register_symbol_computed_impl): Sanity check 'ops'.
9489 * tracepoint.c (scope_info): Unconditionally call via computed ops,
9490 if possible.
9491
f1e6e072
TT
94922013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9493 Tom Tromey <tromey@redhat.com>
9494
9495 PR symtab/8421:
9496 * coffread.c (coff_register_index): New global.
9497 (process_coff_symbol, coff_read_enum_type): Set
9498 SYMBOL_ACLASS_INDEX.
9499 (_initialize_coffread): Initialize new global.
9500 * dwarf2loc.c (locexpr_find_frame_base_location)
9501 (dwarf2_block_frame_base_locexpr_funcs)
9502 (loclist_find_frame_base_location)
9503 (dwarf2_block_frame_base_loclist_funcs): New.
9504 (dwarf_expr_frame_base_1): Call SYMBOL_BLOCK_OPS, remove internal_error.
9505 (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Add location_has_loclist.
9506 * dwarf2loc.h (dwarf2_block_frame_base_locexpr_funcs)
9507 (dwarf2_block_frame_base_loclist_funcs): New.
9508 * dwarf2read.c (dwarf2_locexpr_index, dwarf2_loclist_index)
9509 (dwarf2_locexpr_block_index, dwarf2_loclist_block_index): New
9510 globals.
9511 (read_func_scope): Update.
9512 (fixup_go_packaging, mark_common_block_symbol_computed)
9513 (var_decode_location, new_symbol_full, dwarf2_const_value):
9514 Set SYMBOL_ACLASS_INDEX.
9515 (dwarf2_symbol_mark_computed): Likewise. Add 'is_block' argument.
9516 (_initialize_dwarf2_read): Initialize new globals.
9517 * jit.c (finalize_symtab): Set SYMBOL_ACLASS_INDEX.
9518 * jv-lang.c (add_class_symbol): Set SYMBOL_ACLASS_INDEX.
9519 * mdebugread.c (mdebug_register_index, mdebug_regparm_index): New
9520 globals.
9521 (parse_symbol, psymtab_to_symtab_1): Set SYMBOL_ACLASS_INDEX.
9522 (_initialize_mdebugread): Initialize new globals.
9523 * psympriv.h (struct partial_symbol) <aclass>: Update comment.
9524 * stabsread.c (patch_block_stabs): Set SYMBOL_ACLASS_INDEX.
9525 (stab_register_index, stab_regparm_index): New globals.
9526 (define_symbol, read_enum_type, common_block_end): Set
9527 SYMBOL_ACLASS_INDEX.
9528 (_initialize_stabsread): Initialize new globals.
9529 * symtab.c (next_aclass_value, symbol_impl, symbol_impls): New
9530 globals.
9531 (MAX_SYMBOL_IMPLS): New define.
9532 (register_symbol_computed_impl, register_symbol_block_impl)
9533 (register_symbol_register_impl)
9534 (initialize_ordinary_address_classes): New functions.
9535 (_initialize_symtab): Call initialize_ordinary_address_classes.
9536 * symtab.h (enum address_class) <LOC_FINAL_VALUE>: New constant.
9537 (struct symbol_impl): New.
9538 (SYMBOL_ACLASS_BITS): New define.
9539 (struct symbol) <aclass, ops>: Remove fields.
9540 <aclass_index>: New field.
9541 (symbol_impls): Declare.
9542 (SYMBOL_CLASS, SYMBOL_COMPUTED_OPS, SYMBOL_REGISTER_OPS): Redefine.
9543 (SYMBOL_IMPL, SYMBOL_ACLASS_INDEX): New defines.
9544 (register_symbol_computed_impl, register_symbol_block_impl)
9545 (register_symbol_register_impl): Declare.
9546 (struct symbol_computed_ops): Add location_has_loclist.
9547 (struct symbol_block_ops): New.
9548 (SYMBOL_BLOCK_OPS): New.
9549 * xcoffread.c (process_xcoff_symbol): Set SYMBOL_ACLASS_INDEX.
9550
dbccfd4c
TT
95512013-03-20 Tom Tromey <tromey@redhat.com>
9552
9553 * psymtab.c (find_pc_sect_psymbol, fixup_psymbol_section)
9554 (print_partial_symbols, recursively_search_psymtabs): Use
9555 PSYMBOL_CLASS.
9556
e3f1ad4f
PM
95572013-03-20 Pierre Muller <muller@sourceware.org>
9558
9559 * contrib/ari/gdb_ari.sh (OP eol rule): Also check
9560 addtion, subtraction, multiplication and division binary operator.
9561
460014f5
JK
95622013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9563
9564 Code cleanup.
9565 * bfd-target.c (target_bfd_xclose): Remove parameter quitting.
9566 * bsd-kvm.c (bsd_kvm_close): Likewise.
9567 * bsd-uthread.c (bsd_uthread_close): Likewise.
9568 * corelow.c (core_close): Likewise.
9569 (core_close_cleanup): Remove parameter quitting from a caller.
9570 * event-top.c (async_disconnect): Likewise.
9571 * exec.c (exec_close_1): Remove parameter quitting.
9572 * go32-nat.c (go32_close): Likewise.
9573 * linux-nat.c (linux_nat_close): Remove parameter quitting. Remove
9574 parameter quitting from a caller.
9575 * mips-linux-nat.c (super_close): Remove parameter quitting from the
9576 variable.
9577 (mips_linux_close): Remove parameter quitting. Remove parameter
9578 quitting from a caller.
9579 * monitor.c (monitor_close): Remove parameter quitting.
9580 * monitor.h (monitor_close): Likewise.
9581 * record-btrace.c (record_btrace_close): Likewise.
9582 * record-full.c (record_full_close): Likewise.
9583 * remote-m32r-sdi.c (m32r_close): Remove parameter quitting and remove
9584 it also from fprintf_unfiltered.
9585 * remote-mips.c (mips_close): Remove parameter quitting.
9586 (mips_detach): Remove parameter quitting from a caller.
9587 * remote-sim.c (gdbsim_close): Remove parameter quitting.
9588 (gdbsim_close): Remove duplicate function comment. Remove parameter
9589 quitting and remove it also from printf_filtered.
9590 * remote.c (remote_close): Remove parameter quitting.
9591 * solib-svr4.c (enable_break): Remove parameter quitting from a caller.
9592 * target.c (update_current_target): Remove parameter int from to_close
9593 de_fault.
9594 (push_target, unpush_target, pop_target): Remove parameter quitting from
9595 a caller.
9596 (pop_all_targets_above, pop_all_targets): Remove parameter quitting.
9597 Remove parameter quitting from a caller.
9598 (target_preopen): Remove parameter quitting from a caller.
9599 (target_close): Remove parameter quitting. Remove parameter quitting
9600 from a caller two times. Remove parameter quitting also from
9601 fprintf_unfiltered.
9602 * target.h (struct target_ops): Remove parameter quitting and as int
9603 from fields to_xclose and to_close.
9604 (extern struct target_ops current_target):
9605 (target_close, pop_all_targets): Remove parameter quitting. Update the
9606 comment.
9607 (pop_all_targets_above): Remove parameter quitting.
9608 * top.c (quit_target): Remove parameter quitting from a caller.
9609 * tracepoint.c (tfile_close): Remove parameter quitting.
9610 * windows-nat.c (windows_close): Remove parameter quitting.
9611
35a7120b
CV
96122013-03-20 Corinna Vinschen <vinschen@redhat.com>
9613
9614 * windows-nat.c (handle_output_debug_string): Replace call
9615 to string_to_core_addr with call to strtoull.
9616
8249a5a9
YQ
96172013-03-20 Yao Qi <yao@codesourcery.com>
9618
9619 * ctf.c (ctf_save_metadata_header): Define macro HOST_ENDIANNESS
9620 and write it to CTF metadata.
9621
2c15ef43
CV
96222013-03-19 Corinna Vinschen <vinschen@redhat.com>
9623
9624 * windows-nat.c (handle_output_debug_string): Change type of n to
9625 SIZE_T to avoid crash on 64 bit systems.
9626
1cdd3232
EZ
96272013-03-17 Eli Zaretskii <eliz@gnu.org>
9628
9629 * python/python-internal.h (HAVE_SNPRINTF)
9630 [_WIN32 && HAVE_DECL_SNPRINTF]: Define, to avoid compiler warnings
9631 about redefinition of snprintf by pyerrors.h.
9632
3cb2ab1a
SE
96332013-03-15 Steve Ellcey <sellcey@mips.com>
9634
9635 * remote-sim.c (sim_command_completer): Make char arguments const.
9636
9ce98649
TT
96372013-03-15 Tom Tromey <tromey@redhat.com>
9638
9639 PR c++/15116:
9640 * gdbtypes.c (types_equal): Handle TYPE_CODE_FUNC.
9641
dccee2de
TT
96422013-03-14 Tom Tromey <tromey@redhat.com>
9643
9644 * gdb_bfd.c (struct gdb_bfd_data) <crc_computed, crc>:
9645 New fields.
9646 (get_file_crc): Move from symfile.c.
9647 (gdb_bfd_crc): New function.
9648 * gdb_bfd.h (gdb_bfd_crc): Declare.
9649 * objfiles.h (struct objfile) <crc32, crc32_p>: Remove.
9650 * symfile.c (get_file_crc): Move to gdb_bfd.c.
9651 (separate_debug_file_exists): Use gdb_bfd_crc.
9652
cc0ea93c
TT
96532013-03-14 Tom Tromey <tromey@redhat.com>
9654
9655 * symfile.c (get_debug_link_info): Remove.
9656 (find_separate_debug_file_by_debuglink): Use
9657 bfd_get_debug_link_info.
9658
08c23b0d
TT
96592013-03-14 Tom Tromey <tromey@redhat.com>
9660
9661 * symtab.c (error_in_psymtab_expansion): New function.
9662 (lookup_symbol_aux_quick)
9663 (basic_lookup_transparent_type_quick): Remove "last resort"
9664 code. Use error_in_psymtab_expansion.
9665
288e77a7
JK
96662013-03-14 Doug Evans <dje@google.com>
9667 Jan Kratochvil <jan.kratochvil@redhat.com>
9668
9669 * dwarf2read.c (dw2_map_symtabs_matching_filename): Put continue after
9670 any successful compare_filenames_for_search or FILENAME_CMP.
9671 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
9672 * symtab.c (iterate_over_some_symtabs): Likewise.
9673
8f1b8b82
JK
96742013-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9675
9676 * source.c (print_source_lines_base): Make a local copy of
9677 symtab_to_fullname.
9678
23eb71e4
JK
96792013-03-14 Hui Zhu <hui_zhu@mentor.com>
9680 Jan Kratochvil <jan.kratochvil@redhat.com>
9681
9682 * source.c (print_source_lines_base): Suppress "file" for TUI.
9683
bb869963
SDJ
96842013-03-14 Keith Seitz <keiths@redhat.com>
9685 Alan Matsuoka <alanm@redhat.com>
9686
9687 PR c++/15203
9688 PR c++/15210
9689 * cp-namespace.c (cp_lookup_nested_symbol): Handle TYPE_CODE_FUNC and
9690 TYPE_CODE_METHOD.
9691 * elfread.c (elf_symtab_read): Handle BSF_GNU_UNIQUE for certain
9692 symbols.
9693
d6682f9e
YQ
96942013-03-14 Yao Qi <yao@codesourcery.com>
9695
9696 * tracepoint.c (tfile_write_status): Write 'stop_desc' of trace
9697 status to tfile if trace is stopped by command 'tstop'.
9698
a22fa6e4
YQ
96992013-03-14 Yao Qi <yao@codesourcery.com>
9700
9701 * tracepoint.c (tfile_write_status): Write trace notes and user
9702 name into tfile if they are not NULL.
9703
d0353e76
YQ
97042013-03-14 Hui Zhu <hui@codesourcery.com>
9705 Yao Qi <yao@codesourcery.com>
9706
9707 * Makefile.in (REMOTE_OBS): Add ctf.o.
9708 (SFILES): Add ctf.c.
9709 (HFILES_NO_SRCDIR): Add ctf.h.
9710 * ctf.c, ctf.h: New files.
9711 * tracepoint.c: Include 'ctf.h'.
9712 (collect_pseudocommand): Remove static.
9713 (trace_save_command): Parse option "-ctf".
9714 Produce different trace file writers per option.
9715 Adjust output message.
9716 (trace_save_tfile, trace_save_ctf): New.
9717 * tracepoint.h (trace_save_tfile, trace_save_ctf): Declare.
9718 * mi/mi-main.c: Include 'ctf.h'.
9719 (mi_cmd_trace_save): Handle option '-ctf'. Call either
9720 trace_save_tfile or trace_save_ctf.
9721 * NEWS: Mention these changes.
9722
3f43bc09
YQ
97232013-03-14 Yao Qi <yao@codesourcery.com>
9724
9725 * tracepoint.c (trace_file_writer_xfree): New.
9726 (struct tfile_writer_data): New.
9727 (tfile_dtor, tfile_can_target_save, tfile_start): New.
9728 (tfile_write_header, tfile_write_regblock_type): New.
9729 (tfile_write_status, tfile_write_uploaded_tsv): New.
9730 (tfile_write_uploaded_tp, tfile_write_definition_end): New.
9731 (tfile_write_raw_data, (tfile_end): New.
9732 (tfile_write_ops): New global variable.
9733 (TRACE_WRITE_R_BLOCK): New macro.
9734 (TRACE_WRITE_M_BLOCK_HEADER): New macro.
9735 (TRACE_WRITE_M_BLOCK_MEMORY): New macro.
9736 (TRACE_WRITE_V_BLOCK): New macro.
9737 (trace_save): Add extra one parameter WRITER. Make it static.
9738 Use WRITER to writer trace.
9739 (tfile_trace_file_writer_new): New.
9740 (trace_save_command): Caller update.
9741 (trace_save_tfile): Write trace data in TFILE format.
9742 * tracepoint.h (struct trace_frame_write_ops): New.
9743 (struct trace_file_write_ops): New.
9744 (struct trace_file_writer): New.
9745 (trace_save): Remove its declaration.
9746 (trace_save_tfile): Declare it.
9747 * mi/mi-main.c (mi_cmd_trace_save): Call trace_save_tfile
9748 instead of trace_save.
9749
58665b40
PA
97502013-03-13 Pedro Alves <palves@redhat.com>
9751
9752 * hppa-hpux-nat.c (hppa_hpux_save_state_offset): Make static.
9753
10217050
PA
97542013-03-13 Pedro Alves <palves@redhat.com>
9755
9756 * dbxread.c (read_ofile_symtab, process_one_symbol): Remove
9757 commented out code.
9758 * demangle.c (current_demangling_style_string): Make it const.
9759 (set_demangling_command): Assert the demangling style is known.
9760 Remove all handling of unknown styles. Set
9761 'current_demangling_style_string' to an element of the
9762 demangling_style_names array.
9763 (set_demangling_style): Delete.
9764 (_initialize_demangler): Set current_demangling_style_string to the
9765 element of the demangling_style_names array that corresponds to
9766 the default demangling style. Remove FIXME note. Don't call
9767 set_demangling_style.
9768 * gdb-demangle.h (set_demangling_style): Remove declaration.
9769
6f937416
PA
97702013-03-13 Pedro Alves <palves@redhat.com>
9771
9772 * ada-lang.c (struct add_partial_datum) <text, text0, word>: Make
9773 fields const.
9774 (ada_make_symbol_completion_list): Make "text0" parameter const.
9775 * ax-gdb.c (agent_eval_command_one): Make "exp" parameter const.
9776 * breakpoint.c (condition_completer): Make "text" and "word"
9777 parameters const. Adjust.
9778 (check_tracepoint_command): Adjust to validate_actionline
9779 prototype change.
9780 (catch_syscall_completer): Make "text" and "word" parameters
9781 const.
9782 * cli/cli-cmds.c (show_user): Make "comname" local const.
9783 (valid_command_p): Make "command" parameter const.
9784 (alias_command): Make "alias_prefix" and "command_prefix" locals
9785 const.
9786 * cli/cli-decode.c (add_cmd): Make "name" parameter const.
9787 (add_alias_cmd): Make "name" and "oldname" parameters const.
9788 Adjust. No longer make copy of OLDNAME.
9789 (add_prefix_cmd, add_abbrev_prefix_cmd, add_set_or_show_cmd)
9790 (add_setshow_cmd_full, add_setshow_enum_cmd)
9791 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
9792 (add_setshow_filename_cmd, add_setshow_string_cmd)
9793 (add_setshow_string_noescape_cmd)
9794 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
9795 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
9796 (add_setshow_zuinteger_unlimited_cmd, add_setshow_zuinteger_cmd)
9797 (delete_cmd, add_info, add_info_alias, add_com, add_com_alias):
9798 Make "name" parameter const.
9799 (help_cmd): Rename "command" parameter to "arg". New const local
9800 "command".
9801 (find_cmd): Make "command" parameter const.
9802 (lookup_cmd_1): Make "text" parameter pointer to const. Adjust to
9803 deprecated_cmd_warning prototype change.
9804 (undef_cmd_error): Make "cmdtype" parameter const.
9805 (lookup_cmd): Make "line" parameter const.
9806 (deprecated_cmd_warning): Change type of "text" parameter to
9807 pointer to const char, from pointer to pointer to char. Adjust.
9808 (lookup_cmd_composition): Make "text" parameter const.
9809 (complete_on_cmdlist, complete_on_enum): Make "text" and "word"
9810 parameters const.
9811 * cli/cli-decode.h (struct cmd_list_element) <name>: Make field
9812 const.
9813 * cli/cli-script.c (validate_comname): Make "tem" local const.
9814 (define_command): New const local "tem_c". Use it in calls to
9815 lookup_cmd.
9816 (document_command): Make "tem" and "comfull" locals const.
9817 (show_user_1): Make "prefix" and "name" parameters const.
9818 * cli-script.h (show_user_1): Make "prefix" and "name" parameters
9819 const.
9820 * command.h (add_cmd, add_alias_cmd, add_prefix_cmd)
9821 (add_abbrev_prefix_cmd, completer_ftype, lookup_cmd, lookup_cmd_1)
9822 (deprecated_cmd_warning, lookup_cmd_composition, add_com)
9823 (add_com_alias, add_info, add_info_alias, complete_on_cmdlist)
9824 (complete_on_enum, add_setshow_enum_cmd)
9825 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
9826 (add_setshow_filename_cmd, add_setshow_string_cmd)
9827 (add_setshow_string_noescape_cmd)
9828 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
9829 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
9830 (add_setshow_zuinteger_cmd, add_setshow_zuinteger_unlimited_cmd):
9831 Change prototypes, constifying strings.
9832 * completer.c (noop_completer, filename_completer): Make "text"
9833 and "prefix" parameters const.
9834 (location_completer, expression_completer)
9835 (complete_line_internal): Make "text" and "prefix" parameters
9836 const and adjust.
9837 (command_completer, signal_completer): Make "text" and "prefix"
9838 parameters const.
9839 * completer.h (noop_completer, filename_completer)
9840 (expression_completer, location_completer, command_completer)
9841 (signal_completer): Change prototypes.
9842 * corefile.c (complete_set_gnutarget): Make "text" and "word"
9843 parameters const.
9844 * cp-abi.c (cp_abi_completer): Likewise.
9845 * expression.h (parse_expression_for_completion): Change
9846 prototype.
9847 * f-lang.c (f_make_symbol_completion_list): Make "text" and "word"
9848 parameters const.
9849 * infcmd.c (_initialize_infcmd): Make "cmd_name" local const.
9850 * infrun.c (handle_completer): Make "text" and "word" parameters
9851 const.
9852 * interps.c (interpreter_completer): Make "text" and "word"
9853 parameters const.
9854 * language.h (struct language_defn)
9855 <la_make_symbol_completion_list>: Make "text" and "word"
9856 parameters const.
9857 * parse.c (parse_exp_1): Move const hack to parse_exp_in_context.
9858 (parse_exp_in_context): Rename to ...
9859 (parse_exp_in_context_1): ... this.
9860 (parse_exp_in_context): Reimplement, with const hack from
9861 parse_exp_1.
9862 (parse_expression_for_completion): Make "string" parameter const.
9863 * printcmd.c (decode_format): Make "string_ptr" parameter pointer
9864 to pointer to const char. Adjust.
9865 (print_command_1): Make "exp" parameter const.
9866 (output_command): Rename to ...
9867 (output_command_const): ... this. Make "exp" parameter const.
9868 (output_command): Reimplement.
9869 (x_command): Adjust.
9870 (display_command): Rename "exp" parameter to "arg". New "exp"
9871 local, const version of "arg".
9872 * python/py-auto-load.c (gdbpy_initialize_auto_load): Make
9873 "cmd_name" local const.
9874 * python/py-cmd.c (cmdpy_destroyer): Cast const away in xfree
9875 call.
9876 (cmdpy_completer): Make "text" and "word" parameters const.
9877 (gdbpy_parse_command_name): Make "prefix_text2" local const.
9878 * python/py-param.c (add_setshow_generic): Make "tmp_name" local
9879 const.
9880 * remote.c (_initialize_remote): Make "cmd_name" local const.
9881 * symtab.c (language_search_unquoted_string): Make "text" and "p"
9882 parameters const. Adjust.
9883 (completion_list_add_fields): Make "sym_text", "text" and "word"
9884 parameters const.
9885 (struct add_name_data) <sym_text, text, word>: Make fields const.
9886 (default_make_symbol_completion_list_break_on): Make "text" and
9887 "word" parameters const. Adjust locals.
9888 (default_make_symbol_completion_list)
9889 (make_symbol_completion_list, make_symbol_completion_type)
9890 (make_symbol_completion_list_fn): Make "text" and "word"
9891 parameters const.
9892 (make_file_symbol_completion_list): Make "text", "word" and
9893 "srcfile" parameters const. Adjust locals.
9894 (add_filename_to_list): Make "text" and "word" parameters const.
9895 (struct add_partial_filename_data) <text, word>: Make fields
9896 const.
9897 (make_source_files_completion_list): Make "text" and "word"
9898 parameters const.
9899 * symtab.h (default_make_symbol_completion_list_break_on)
9900 (default_make_symbol_completion_list, make_symbol_completion_list)
9901 (make_symbol_completion_type enum type_code)
9902 (make_symbol_completion_list_fn make_file_symbol_completion_list)
9903 (make_source_files_completion_list): Change prototype.
9904 * top.c (execute_command): Adjust to pass pointer to pointer to
9905 const char to lookup_cmd, and to deprecated_cmd_warning prototype
9906 change.
9907 (set_verbose): Make "cmdname" local const.
9908 * tracepoint.c (decode_agent_options): Make "exp" parameter const,
9909 and adjust.
9910 (validate_actionline): Make "line" parameter a pointer to const
9911 char, and adjust.
9912 (encode_actions_1): Make "action_exp" local const, and adjust.
9913 (encode_actions): Adjust.
9914 (replace_comma): Delete.
9915 (trace_dump_actions): Make "action_exp" and "next_comma" locals
9916 const, and adjust. Don't frob the action string while splitting
9917 it at commas. Instead, make a copy of each split substring in
9918 turn.
9919 (trace_dump_command): Adjust to validate_actionline prototype
9920 change.
9921 * tracepoint.h (decode_agent_options, decode_agent_options)
9922 (encode_actions, validate_actionline): Change prototypes.
9923 * valprint.h (output_command): Delete declaration.
9924 (output_command_const): Declare.
9925 * value.c (function_destroyer): Cast const away in xfree call.
9926
a0bcdaa7
PA
99272013-03-13 Pedro Alves <palves@redhat.com>
9928
9929 * ada-lang.c (ada_decode_symbol): Cast away constness of GSYMBOL
9930 rather than casting 'const char * const *' to 'const char **'.
9931 * ada-lex.l (processInt): Make "trailer" local const. Remove
9932 'const char **' cast.
9933 * arm-linux-tdep.c (arm_stap_parse_special_token): Add 'char *'
9934 locals, and use those as strtol output pointer, instead than doing
9935 invalid casts to from 'const char **' to 'char **'.
9936 (_initialize_demangle): Remove cast.
9937 * i386-tdep.c (i386_stap_parse_special_token): : Add 'char *'
9938 locals, and use those as strtol output pointer, instead than doing
9939 invalid casts to from 'const char **' to 'char **'.
9940 * solib-dsbt.c (dsbt_get_initial_loadmaps): Remove 'gdb_byte**'
9941 casts.
9942 * stap-probe.c (stap_parse_register_operand)
9943 (stap_parse_single_operand): Likewise.
9944
8ddb1965
YQ
99452013-03-13 Yao Qi <yao@codesourcery.com>
9946
9947 * tracepoint.c (tfile_get_trace_state_variable_value): Look for
9948 the last matched 'V' blcok in trace frame.
9949
2d450646
JB
99502013-03-12 Joel Brobecker <brobecker@adacore.com>
9951
9952 * NEWS: Create a new section for the next release branch.
9953 Rename the section of the current branch, now that it has
9954 been cut.
9955
b4b79973 99562013-03-12 Joel Brobecker <brobecker@adacore.com>
9957
9958 GDB 7.6 branch created (branch timestamp: 2013-03-12 22:15 UTC)
9959 * version.in: Bump version to 7.6.50.20130312-cvs.
9960
ee047554
KS
99612013-03-12 Keith Seitz <keiths@redhat.com>
9962
9963 * mi/mi-cmds.h (mi_execute_command): Make "cmd" const.
9964 * mi/mi-interp.c (mi_interpreter_exec): Make "command" const.
9965 Remove temporary copy of input string.
9966 (mi_execute_command_wrapper): Make "cmd" const.
9967 * mi/mi-main.c (mi_execute_command): Make "string_ptr" const.
9968 * mi/mi-parse.c (mi_parse_argv): Make "args" const.
9969 Use const strings.
9970 (mi_parse): Make "cmd" const.
9971 Use const strings.
9972 * mi/mi-parse.h (mi_parse): Make "cmd" const.
9973
bbc13ae3
KS
99742013-03-12 Keith Seitz <keiths@redhat.com>
9975
9976 * ada-lang.c (ada_read_renaming_var_value): Pass const
9977 pointer to expression string to parse_exp_1.
9978 (create_excep_cond_exprs): Likewise.
9979 * ax-gdb.c (agent_eval_command_one): Likewise.
9980 (maint_agent_printf_command): Likewise.
9981 Constify much of the string handling/parsing.
9982 * breakpoint.c (set_breakpoint_condition): Pass const
9983 pointer to expression string to parse_exp_1.
9984 (update_watchpoint): Likewise.
9985 (parse_cmd_to_aexpr): Constify string handling.
9986 Pass const pointer to parse_exp_1.
9987 (init_breakpoint_sal): Pass const pointer to parse_exp_1.
9988 (find_condition_and_thread): Likewise.
9989 Make TOK const.
9990 (watch_command_1): Make "arg" const.
9991 Constify string handling.
9992 Copy the expression string instead of changing the input
9993 string.
9994 (update_breakpoint_location): Pass const pointer to
9995 parse_exp_1.
9996 * eval.c (parse_and_eval_address): Make "exp" const.
9997 (parse_to_comma_and_eval): Make "expp" const.
9998 (parse_and_eval): Make "exp" const.
9999 * expression.h (parse_expression): Make argument const.
10000 (parse_exp_1): Make first argument const.
10001 * findcmd.c (parse_find_args): Treat "args" as const.
10002 * linespec.c (parse_linespec): Pass const pointer to
10003 linespec_expression_to_pc.
10004 (linespec_expression_to_pc): Make "exp_ptr" const.
10005 * parse.c (parse_exp_1): Make "stringptr" const.
10006 Make a copy of the expression to pass to parse_exp_in_context until
10007 this whole interface can be constified.
10008 (parse_expression): Make "string" const.
10009 * printcmd.c (ui_printf): Treat "arg" as const.
10010 Handle const strings.
10011 * tracepoint.c (validate_actionline): Pass const pointer to
10012 all calls to parse_exp_1.
10013 (encode_actions_1): Likewise.
10014 * value.h (parse_to_comma_and_eval): Make argument const.
10015 (parse_and_eval_address): Likewise.
10016 (parse_and_eval): Likewise.
10017 * varobj.c (varobj_create): Pass const pointer to parse_exp_1.
10018 (varobj_set_value): Likewise.
10019 * cli/cli-cmds.c (disassemble_command): Treat "arg" as const and
10020 constify string handling.
10021 Pass const pointers to parse_and_eval_address and
10022 parse_to_comman_and_eval.
10023 * cli/cli-utils.c (skip_to_space): Rename to ...
10024 (skip_to_space_const): ... this. Handle const strings.
10025 * cli/cli-utils.h (skip_to_space): Turn into macro which invokes
10026 skip_to_space_const.
10027 (skip_to_space_const): Declare.
10028 * common/format.c (parse_format_string): Make "arg" const.
10029 Handle const strings.
10030 * common/format.h (parse_format_string): Make "arg" const.
10031 * gdbserver/ax.c (ax_printf): Make "format" const.
10032 * python/python.c (gdbpy_parse_and_eval): Do not make a copy
10033 of the expression string.
10034
f3cec7e6
HZ
100352013-03-12 Hui Zhu <hui@codesourcery.com>
10036
10037 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Update error message.
10038
9df7235c
HZ
100392013-03-12 Yao Qi <yao@codesourcery.com>
10040 Hui Zhu <hui@codesourcery.com>
10041
10042 * dwarf2loc.c (access_memory): Change nbits to nbytes in gdb_assert.
10043 (dwarf2_compile_expr_to_ax): Call access_memory in DW_OP_deref and
10044 DW_OP_deref_size.
10045
82d049ab
PH
100462013-03-12 Paul Hilfinger <hilfingr@adacore.com>
10047
5f8e0b8f
MF
10048 * ada-lex.l (rules): Only recognize 'thread' as a
10049 delimiter when followed by numerals, as for c-exp.y.
10050 Use new rewind_to_char function to rewind the input for
10051 expression-delimiting tokens.
10052 (rewind_to_char): New function.
82d049ab 10053
8c1fb155
JK
100542013-03-11 Pedro Alves <palves@redhat.com>
10055 Jan Kratochvil <jan.kratochvil@redhat.com>
10056
10057 * configure: Regenerate.
10058 * configure.ac (check dynamic export flag): Link python test with
10059 $PYTHON_LIBS.
10060
cc81e1c6
DE
100612013-03-11 Doug Evans <dje@google.com>
10062 Keith Seitz <keiths@redhat.com>
10063
10064 * linespec.c (find_linespec_symbols): Call find_function_symbols
10065 first, and then call lookup_prefix_sym/find_method.
10066
39086a0e
PA
100672013-03-11 Pedro Alves <palves@redhat.com>
10068
10069 * charset.c (convert_between_encodings): Don't cast between
10070 different pointer to pointer types. Instead, make the 'inp' local
10071 be of the type iconv expects.
10072 (wchar_iterate): Don't cast between different pointer to pointer
10073 types. Instead, use new pointer local of the type iconv expects.
10074 * target.c (target_read_stralloc, target_fileio_read_stralloc):
10075 Add new local of type char pointer, and use it to get a
10076 char/string view of the byte buffer, instead of casting between
10077 pointer to pointer types.
10078
90585175
HAQ
100792013-03-11 Hafiz Abid Qadeer <abidh@codesourcery.com>
10080
10081 * remote.c (remote_set_trace_buffer_size): Move != operator
10082 to the start of next line to fix an ARI warning.
10083
59ea5688
MM
100842013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10085
10086 * NEWS: Add record changes.
10087
946287b7
MM
100882013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10089
10090 * record-btrace.c (btrace_insn_history): Omit the pc prefix in
10091 the instruction history disassembly.
10092 * disasm.c (dump_insns): Omit the pc prefix, if requested.
10093 * disasm.h (DISASSEMBLY_OMIT_PC): New.
10094
afedecd3
MM
100952013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10096
10097 * Makefile.in (SFILES): Add record-btrace.c
10098 (COMMON_OBS): Add record-btrace.o
10099 * record-btrace.c: New.
10100 * objfiles.c: Include btrace.h.
10101 (free_objfile): call btrace_free_objfile.
10102
15984c13
MM
101032013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10104
10105 * target.c (target_call_history, target_call_history_from,
10106 target_call_history_range): New.
10107 * target.h (target_ops) <to_call_history, to_call_history_from,
10108 to_call_history_range>: New fields.
10109 (target_call_history, target_call_history_from,
10110 target_call_history_range): New declaration.
10111 * record.c (get_call_history_modifiers, cmd_record_call_history,
10112 record_call_history_size): New.
10113 (_initialize_record): Add the "record function-call-history" command.
10114 Add "set/show record function-call-history-size" commands.
10115 * record.h (record_print_flag): New.
10116
67c86d06
MM
101172013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10118
10119 * target.h (target_ops) <to_insn_history, to_insn_history_from,
10120 to_insn_history_range>: New fields.
10121 (target_insn_history): New.
10122 (target_insn_history_from): New.
10123 (target_insn_history_range): New.
10124 * target.c (target_insn_history): New.
10125 (target_insn_history_from): New.
10126 (target_insn_history_range): New.
10127 * record.c: Include cli/cli-utils.h, disasm.h, ctype.h.
10128 (record_insn_history_size): New.
10129 (get_insn_number): New.
10130 (get_context_size): New.
10131 (no_chunk): New.
10132 (get_insn_history_modifiers): New.
10133 (cmd_record_insn_history): New.
10134 (_initialize_record): Add "set/show record instruction-history-size"
10135 command. Add "record instruction-history" command.
10136
7c1687a9
MM
101372013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10138
10139 * record.h (record_disconnect): New.
10140 (record_detach): New.
10141 (record_mourn_inferior): New.
10142 (record_kill): New.
10143 * record-full.c (record_disconnect, record_detach,
10144 record_mourn_inferior, record_kill): Move to...
10145 * record.c: ...here.
10146 (DEBUG): New.
10147 (record_stop): New.
10148 (record_unpush): New.
10149 (cmd_record_stop): Call record_stop. Replace unpush_target
10150 call with record_unpush call.
10151 (record_disconnect, record_detach): Assert that the target
10152 is of record stratum. Call record_unpush, record_stop, and
10153 DEBUG.
10154 (record_mourn_inferior, record_kill): Assert that the target
10155 is of record stratum. Call record_unpush and DEBUG.
10156
25ea693b
MM
101572013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10158
10159 * record-full.h, record-full.c (record_memory_query): Rename
10160 to ...
10161 (record_full_memory_query): ...this. Update all users.
10162 (record_arch_list_add_reg): Rename to ...
10163 (record_full_arch_list_add_reg): ...this. Update all users.
10164 (record_arch_list_add_mem): Rename to ...
10165 (record_full_arch_list_add_mem): ...this. Update all users.
10166 (record_arch_list_add_end): Rename to ...
10167 (record_full_arch_list_add_end): ...this. Update all users.
10168 (record_gdb_operation_disable_set): Rename to ...
10169 (record_full_gdb_operation_disable_set): ...this.
10170 Update all users.
10171
88d1aa9d
MM
101722013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10173
10174 * record-full.c (DEFAULT_RECORD_INSN_MAX_NUM): Renamed to ...
10175 (DEFAULT_RECORD_FULL_INSN_MAX_NUM): ... this. Updated all users.
10176 (RECORD_IS_REPLAY): Renamed to ...
10177 (RECORD_FULL_IS_REPLAY): ... this. Updated all users.
10178 (RECORD_FILE_MAGIC): Renamed to ...
10179 (RECORD_FULL_FILE_MAGIC): ... this. Updated all users.
10180 (record_mem_entry): Renamed to ...
10181 (record_full_mem_entry): ... this. Updated all users.
10182 (record_reg_entry): Renamed to ...
10183 (record_full_reg_entry): ... this. Updated all users.
10184 (record_end_entry): Renamed to ...
10185 (record_full_end_entry): ... this. Updated all users.
10186 (record_type) <record_end, record_reg, record_mem>: Renamed
10187 to ...
10188 (record_full_type) <record_full_end, record_full_reg,
10189 record_full_mem>: ... this. Updated all users.
10190 (record_entry): Renamed to ...
10191 (record_full_entry): ... this. Updated all users.
10192 (record_core_buf_entry): Renamed to ...
10193 (record_full_core_buf_entry): ... this. Updated all users.
10194 (record_core_regbuf): Renamed to ...
10195 (record_full_core_regbuf): ... this. Updated all users.
10196 (record_core_start): Renamed to ...
10197 (record_full_core_start): ... this. Updated all users.
10198 (record_core_end): Renamed to ...
10199 (record_full_core_end): ... this. Updated all users.
10200 (record_core_buf_list): Renamed to ...
10201 (record_full_core_buf_list): ... this. Updated all users.
10202 (record_first): Renamed to ...
10203 (record_full_first): ... this. Updated all users.
10204 (record_list): Renamed to ...
10205 (record_full_list): ... this. Updated all users.
10206 (record_arch_list_head): Renamed to ...
10207 (record_full_arch_list_head): ... this. Updated all users.
10208 (record_arch_list_tail): Renamed to ...
10209 (record_full_arch_list_tail): ... this. Updated all users.
10210 (record_stop_at_limit): Renamed to ...
10211 (record_full_stop_at_limit): ... this. Updated all users.
10212 (record_insn_max_num): Renamed to ...
10213 (record_full_insn_max_num): ... this. Updated all users.
10214 (record_insn_num): Renamed to ...
10215 (record_full_insn_num): ... this. Updated all users.
10216 (record_insn_count): Renamed to ...
10217 (record_full_insn_count): ... this. Updated all users.
10218 (record_ops): Renamed to ...
10219 (record_full_ops): ... this. Updated all users.
10220 (record_core_ops): Renamed to ...
10221 (record_full_core_ops): ... this. Updated all users.
10222 (set_record_cmdlist): Renamed to ...
10223 (set_record_full_cmdlist): ... this. Updated all users.
10224 (show_record_cmdlist): Renamed to ...
10225 (show_record_full_cmdlist): ... this. Updated all users.
10226 (record_cmdlist): Renamed to ...
10227 (record_full_cmdlist): ... this. Updated all users.
10228 (record_beneath_to_resume_ops): Renamed to ...
10229 (record_full_beneath_to_resume_ops): ... this. Updated all users.
10230 (record_beneath_to_resume): Renamed to ...
10231 (record_full_beneath_to_resume): ... this. Updated all users.
10232 (record_beneath_to_wait_ops): Renamed to ...
10233 (record_full_beneath_to_wait_ops): ... this. Updated all users.
10234 (record_beneath_to_wait): Renamed to ...
10235 (record_full_beneath_to_wait): ... this. Updated all users.
10236 (record_beneath_to_store_registers_ops): Renamed to ...
10237 (record_full_beneath_to_store_registers_ops): ... this.
10238 Updated all users.
10239 (record_beneath_to_store_registers): Renamed to ...
10240 (record_full_beneath_to_store_registers): ... this.
10241 Updated all users.
10242 (record_beneath_to_xfer_partial_ops): Renamed to ...
10243 (record_full_beneath_to_xfer_partial_ops): ... this.
10244 Updated all users.
10245 (record_beneath_to_xfer_partial): Renamed to ...
10246 (record_full_beneath_to_xfer_partial): ... this.
10247 Updated all users.
10248 (record_beneath_to_insert_breakpoint): Renamed to ...
10249 (record_full_beneath_to_insert_breakpoint): ... this.
10250 Updated all users.
10251 (record_beneath_to_stopped_by_watchpoint): Renamed to ...
10252 (record_full_beneath_to_stopped_by_watchpoint): ... this.
10253 Updated all users.
10254 (record_beneath_to_stopped_data_address): Renamed to ...
10255 (record_full_beneath_to_stopped_data_address): ... this.
10256 Updated all users.
10257 (record_beneath_to_async): Renamed to ...
10258 (record_full_beneath_to_async): ... this. Updated all users.
10259 (record_goto_insn): Renamed to ...
10260 (record_full_goto_insn): ... this. Updated all users.
10261 (record_save): Renamed to ...
10262 (record_full_save): ... this. Updated all users.
10263 (record_reg_alloc): Renamed to ...
10264 (record_full_reg_alloc): ... this. Updated all users.
10265 (record_reg_release): Renamed to ...
10266 (record_full_reg_release): ... this. Updated all users.
10267 (record_mem_alloc): Renamed to ...
10268 (record_full_mem_alloc): ... this. Updated all users.
10269 (record_mem_release): Renamed to ...
10270 (record_full_mem_release): ... this. Updated all users.
10271 (record_end_alloc): Renamed to ...
10272 (record_full_end_alloc): ... this. Updated all users.
10273 (record_end_release): Renamed to ...
10274 (record_full_end_release): ... this. Updated all users.
10275 (record_entry_release): Renamed to ...
10276 (record_full_entry_release): ... this. Updated all users.
10277 (record_list_release): Renamed to ...
10278 (record_full_list_release): ... this. Updated all users.
10279 (record_list_release_following): Renamed to ...
10280 (record_full_list_release_following): ... this.
10281 Updated all users.
10282 (record_list_release_first): Renamed to ...
10283 (record_full_list_release_first): ... this. Updated all users.
10284 (record_arch_list_add): Renamed to ...
10285 (record_full_arch_list_add): ... this. Updated all users.
10286 (record_get_loc): Renamed to ...
10287 (record_full_get_loc): ... this. Updated all users.
10288 (record_check_insn_num): Renamed to ...
10289 (record_full_check_insn_num): ... this. Updated all users.
10290 (record_arch_list_cleanups): Renamed to ...
10291 (record_full_arch_list_cleanups): ... this. Updated all users.
10292 (record_message): Renamed to ...
10293 (record_full_message): ... this. Updated all users.
10294 (record_message_wrapper): Renamed to ...
10295 (record_full_message_wrapper): ... this. Updated all users.
10296 (record_message_wrapper_safe): Renamed to ...
10297 (record_full_message_wrapper_safe): ... this. Updated all users.
10298 (record_gdb_operation_disable): Renamed to ...
10299 (record_full_gdb_operation_disable): ... this. Updated all users.
10300 (record_hw_watchpoint): Renamed to ...
10301 (record_full_hw_watchpoint): ... this. Updated all users.
10302 (record_exec_insn): Renamed to ...
10303 (record_full_exec_insn): ... this. Updated all users.
10304 (record_restore): Renamed to ...
10305 (record_full_restore): ... this. Updated all users.
10306 (record_async_inferior_event_token): Renamed to ...
10307 (record_full_async_inferior_event_token): ... this.
10308 Updated all users.
10309 (record_async_inferior_event_handler): Renamed to ...
10310 (record_full_async_inferior_event_handler): ... this.
10311 Updated all users.
10312 (record_core_open_1): Renamed to ...
10313 (record_full_core_open_1): ... this. Updated all users.
10314 (record_open_1): Renamed to ...
10315 (record_full_open_1): ... this. Updated all users.
10316 (record_open): Renamed to ...
10317 (record_full_open): ... this. Updated all users.
10318 (record_close): Renamed to ...
10319 (record_full_close): ... this. Updated all users.
10320 (record_resume_step): Renamed to ...
10321 (record_full_resume_step): ... this. Updated all users.
10322 (record_resumed): Renamed to ...
10323 (record_full_resumed): ... this. Updated all users.
10324 (record_execution_dir): Renamed to ...
10325 (record_full_execution_dir): ... this. Updated all users.
10326 (record_resume): Renamed to ...
10327 (record_full_resume): ... this. Updated all users.
10328 (record_get_sig): Renamed to ...
10329 (record_full_get_sig): ... this. Updated all users.
10330 (record_sig_handler): Renamed to ...
10331 (record_full_sig_handler): ... this. Updated all users.
10332 (record_wait_cleanups): Renamed to ...
10333 (record_full_wait_cleanups): ... this. Updated all users.
10334 (record_wait_1): Renamed to ...
10335 (record_full_wait_1): ... this. Updated all users.
10336 (record_wait): Renamed to ...
10337 (record_full_wait): ... this. Updated all users.
10338 (record_stopped_by_watchpoint): Renamed to ...
10339 (record_full_stopped_by_watchpoint): ... this. Updated all users.
10340 (record_disconnect): Renamed to ...
10341 (record_full_disconnect): ... this. Updated all users.
10342 (record_detach): Renamed to ...
10343 (record_full_detach): ... this. Updated all users.
10344 (record_mourn_inferior): Renamed to ...
10345 (record_full_mourn_inferior): ... this. Updated all users.
10346 (record_kill): Renamed to ...
10347 (record_full_kill): ... this. Updated all users.
10348 (record_stopped_data_address): Renamed to ...
10349 (record_full_stopped_data_address): ... this. Updated all users.
10350 (record_registers_change): Renamed to ...
10351 (record_full_registers_change): ... this. Updated all users.
10352 (record_store_registers): Renamed to ...
10353 (record_full_store_registers): ... this. Updated all users.
10354 (record_xfer_partial): Renamed to ...
10355 (record_full_xfer_partial): ... this. Updated all users.
10356 (record_breakpoint): Renamed to ...
10357 (record_full_breakpoint): ... this. Updated all users.
10358 (record_breakpoint_p): Renamed to ...
10359 (record_full_breakpoint_p): ... this. Updated all users.
10360 (record_breakpoints): Renamed to ...
10361 (record_full_breakpoints): ... this. Updated all users.
10362 (record_sync_record_breakpoints): Renamed to ...
10363 (record_full_sync_record_breakpoints): ... this.
10364 Updated all users.
10365 (record_init_record_breakpoints): Renamed to ...
10366 (record_full_init_record_breakpoints): ... this.
10367 Updated all users.
10368 (record_insert_breakpoint): Renamed to ...
10369 (record_full_insert_breakpoint): ... this. Updated all users.
10370 (record_remove_breakpoint): Renamed to ...
10371 (record_full_remove_breakpoint): ... this. Updated all users.
10372 (record_can_execute_reverse): Renamed to ...
10373 (record_full_can_execute_reverse): ... this. Updated all users.
10374 (record_get_bookmark): Renamed to ...
10375 (record_full_get_bookmark): ... this. Updated all users.
10376 (record_goto_bookmark): Renamed to ...
10377 (record_full_goto_bookmark): ... this. Updated all users.
10378 (record_async): Renamed to ...
10379 (record_full_async): ... this. Updated all users.
10380 (record_can_async_p): Renamed to ...
10381 (record_full_can_async_p): ... this. Updated all users.
10382 (record_is_async_p): Renamed to ...
10383 (record_full_is_async_p): ... this. Updated all users.
10384 (record_execution_direction): Renamed to ...
10385 (record_full_execution_direction): ... this. Updated all users.
10386 (record_info): Renamed to ...
10387 (record_full_info): ... this. Updated all users.
10388 (record_delete): Renamed to ...
10389 (record_full_delete): ... this. Updated all users.
10390 (record_is_replaying): Renamed to ...
10391 (record_full_is_replaying): ... this. Updated all users.
10392 (record_goto_entry): Renamed to ...
10393 (record_full_goto_entry): ... this. Updated all users.
10394 (record_goto_begin): Renamed to ...
10395 (record_full_goto_begin): ... this. Updated all users.
10396 (record_goto_end): Renamed to ...
10397 (record_full_goto_end): ... this. Updated all users.
10398 (record_goto): Renamed to ...
10399 (record_full_goto): ... this. Updated all users.
10400 (init_record_ops): Renamed to ...
10401 (init_record_full_ops): ... this. Updated all users.
10402 (record_core_resume): Renamed to ...
10403 (record_full_core_resume): ... this. Updated all users.
10404 (record_core_kill): Renamed to ...
10405 (record_full_core_kill): ... this. Updated all users.
10406 (record_core_fetch_registers): Renamed to ...
10407 (record_full_core_fetch_registers): ... this. Updated all users.
10408 (record_core_prepare_to_store): Renamed to ...
10409 (record_full_core_prepare_to_store): ... this. Updated all users.
10410 (record_core_store_registers): Renamed to ...
10411 (record_full_core_store_registers): ... this. Updated all users.
10412 (record_core_xfer_partial): Renamed to ...
10413 (record_full_core_xfer_partial): ... this. Updated all users.
10414 (record_core_insert_breakpoint): Renamed to ...
10415 (record_full_core_insert_breakpoint): ... this. Updated all users.
10416 (record_core_remove_breakpoint): Renamed to ...
10417 (record_full_core_remove_breakpoint): ... this. Updated all users.
10418 (record_core_has_execution): Renamed to ...
10419 (record_full_core_has_execution): ... this. Updated all users.
10420 (init_record_core_ops): Renamed to ...
10421 (init_record_full_core_ops): ... this. Updated all users.
10422 (cmd_record_restore): Renamed to ...
10423 (cmd_record_full_restore): ... this. Updated all users.
10424 (record_save_cleanups): Renamed to ...
10425 (record_full_save_cleanups): ... this. Updated all users.
10426 (cmd_record_start): Renamed to ...
10427 (cmd_record_full_start): ... this. Updated all users.
10428 (set_record_insn_max_num): Renamed to ...
10429 (set_record_full_insn_max_num): ... this. Updated all users.
10430 (set_record_command): Renamed to ...
10431 (set_record_full_command): ... this. Updated all users.
10432 (show_record_command): Renamed to ...
10433 (show_record_full_command): ... this. Updated all users.
10434 (_initialize_record): Renamed to ...
10435 (_initialize_record_full): ... this. Updated all users.
10436
d02ed0bb
MM
104372013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10438
10439 * record.h: Split into this and ...
10440 * record-full.h: ... this.
10441 * record.c: Split into this and ...
10442 * record-full.c: ... this.
10443 * target.h (target_ops): Add new fields to_info_record,
10444 to_save_record, to_delete_record, to_record_is_replaying,
10445 to_goto_record_begin, to_goto_record_end, to_goto_record.
10446 (target_info_record): New.
10447 (target_save_record): New.
10448 (target_supports_delete_record): New.
10449 (target_delete_record): New.
10450 (target_record_is_replaying): New.
10451 (target_goto_record_begin): New.
10452 (target_goto_record_end): New.
10453 (target_goto_record): New.
10454 * target.c (target_info_record): New.
10455 (target_save_record): New.
10456 (target_supports_delete_record): New.
10457 (target_delete_record): New.
10458 (target_record_is_replaying): New.
10459 (target_goto_record_begin): New.
10460 (target_goto_record_end): New.
10461 (target_goto_record): New.
10462 * record.h: Declare struct cmd_list_element.
10463 (record_cmdlist): New declaration.
10464 (set_record_cmdlist): New declaration.
10465 (show_record_cmdlist): New declaration.
10466 (info_record_cmdlist): New declaration.
10467 (cmd_record_goto): New declaration.
10468 * record.c: Remove unnecessary includes.
10469 Include inferior.h.
10470 (cmd_record_goto): Remove declaration.
10471 (record_cmdlist): Now extern. Initialize.
10472 (set_record_cmdlist): Now extern. Initialize.
10473 (show_record_cmdlist): Now extern. Initialize.
10474 (info_record_cmdlist): Now extern. Initialize.
10475 (find_record_target): New.
10476 (require_record_target): New.
10477 (cmd_record_start): Update.
10478 (cmd_record_delete): Remove target-specific code.
10479 Call target_delete_record.
10480 (cmd_record_stop): Unpush any record target.
10481 (set_record_insn_max_num): Move to record-full.c
10482 (set_record_command): Add comment.
10483 (show_record_command): Add comment.
10484 (info_record_command): Update comment.
10485 Remove target-specific code.
10486 Call the record target's to_info_record.
10487 (cmd_record_start): New.
10488 (cmd_record_goto): Now extern.
10489 Remove target-specific code.
10490 Call target_goto_begin, target_goto_end, or target_goto.
10491 (_initialize_record): Move record target ops initialization to
10492 record-full.c.
10493 Change "record" command help text.
10494 Move "record restore", "record set", and "record show" commands to
10495 record-full.c.
10496 * Makefile.in (SFILES): Add record-full.c.
10497 (HFILES_NO_SRCDIR): Add record-full.h.
10498 (COMMON_OBS): Add record-full.o.
10499 * amd64-linux-tdep.c: Include record-full.h instead of record.h.
10500 * arm-tdep.c: Include record-full.h.
10501 * i386-linux-tdep.c: Include record-full.h instead of record.h.
10502 * i386-tdep.c: Include record-full.h.
10503 * infrun.c: Include record-full.h.
10504 * linux-record.c: Include record-full.h.
10505 * moxie-tdep.c: Include record-full.h.
10506 * record-full.c: Include record-full.h.
10507 Change module comment.
10508 (set_record_full_cmdlist): New.
10509 (show_record_full_cmdlist): New.
10510 (record_full_cmdlist): New.
10511 (record_goto_insn): New declaration.
10512 (record_save): New declaration.
10513 (record_check_insn_num): Change query string.
10514 (record_info): New.
10515 (record_delete): New.
10516 (record_is_replaying): New.
10517 (record_goto_entry): New.
10518 (record_goto_begin): New.
10519 (record_goto_end): New.
10520 (record_goto): New.
10521 (init_record_ops): Update.
10522 (init_record_core_ops): Update.
10523 (cmd_record_save): Rename to record_save. Remove target and arg checks.
10524 (cmd_record_start): New.
10525 (set_record_insn_max_num): Moved from record.c
10526 (set_record_full_command): New.
10527 (show_record_full_command): New.
10528 (_initialize_record_full): New.
10529
b48d48eb
MM
105302013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10531
10532 * target.h (add_deprecated_target_alias): New.
10533 * target.c (add_deprecated_target_alias): New.
10534
a950d57c
MM
105352013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10536
10537 * common/linux-btrace.c: Include sys/ptrace, sys/types, sys/wait.h,
10538 and signal.h.
10539 (linux_supports_btrace): Add kernel and
10540 cpuid check.
10541 (kernel_supports_btrace): New function.
10542 (cpu_supports_btrace): New function.
10543 (intel_supports_btrace): New function.
10544
9accd112
MM
105452013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10546
10547 * target.h (enum target_object): Add TARGET_OBJECT_BTRACE.
10548 * remote.c: Include btrace.h.
10549 (struct btrace_target_info): New struct.
10550 (remote_supports_btrace): New function.
10551 (send_Qbtrace): New function.
10552 (remote_enable_btrace): New function.
10553 (remote_disable_btrace): New function.
10554 (remote_teardown_btrace): New function.
10555 (remote_read_btrace): New function.
10556 (init_remote_ops): Add btrace ops.
10557 (enum <unnamed>): Add btrace packets.
10558 (struct protocol_feature remote_protocol_features[]): Add btrace packets.
10559 (_initialize_remote): Add packet configuration for branch tracing.
10560
c12a2917
MM
105612013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10562
10563 * features/btrace.dtd: New file.
10564 * Makefile.in (XMLFILES): Add btrace.dtd.
10565 * btrace.h (parse_xml_btrace): New declaration.
10566 * btrace.c: Include xml-support.h.
10567 (parse_xml_btrace): New function.
10568 (parse_xml_btrace_block): New function.
10569 (block_attributes): New struct.
10570 (btrace_attributes): New struct.
10571 (btrace_children): New struct.
10572 (btrace_elements): New struct.
10573
3e3aea48
MM
105742013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10575
10576 * amd64-linux-nat.c: Include btrace.h and linux-btrace.h.
10577 (amd64_linux_enable_btrace): New.
10578 (amd64_linux_disable_btrace): New.
10579 (amd64_linux_teardown_btrace): New.
10580 (_initialize_amd64_linux_nat): Initialize btrace ops.
10581 * i386-linux.nat.c: Include btrace.h and linux-btrace.h.
10582 (i386_linux_enable_btrace): New.
10583 (i386_linux_disable_btrace): New.
10584 (i386_linux_teardown_btrace): New.
10585 (_initialize_i386_linux_nat): Initialize btrace ops.
10586 * config/i386/linux.mh: Add linux-btrace.o.
10587 * config/i386/linux64.mh: Add linux-btrace.o.
10588
7c97f91e
MM
105892013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10590
10591 * common/linux_btrace.h: New file.
10592 * common/linux_btrace.c: New file.
10593 * Makefile.in (SFILES): Add btrace.c.
10594 (HFILES_NO_SRCDIR): Add common/linux-btrace.h.
10595 (COMMON_OBS): Add btrace.o.
10596 (linux-btrace.o): New rule.
10597
1999790b 105982013-03-11 Markus Metzger <markus.t.metzger@intel.com>
02d27625
MM
10599
10600 * target.h: Include btrace.h.
10601 (struct target_ops) <to_supports_btrace, to_enable_btrace,
10602 to_disable_btrace, to_teardown_btrace, to_read_btrace>: New.
10603 * target.c (target_supports_btrace): New function.
10604 (target_enable_btrace): New function.
10605 (target_disable_btrace): New function.
10606 (target_teardown_btrace): New function.
10607 (target_read_btrace): New function.
10608 * btrace.h: New file.
10609 * btrace.c: New file.
10610 * Makefile.in: Add btrace.c.
10611 * gdbthread.h: Include btrace.h.
10612 (struct thread_info): Add btrace field.
10613 * thread.c: Include btrace.h.
10614 (clear_thread_inferior_resources): Call target_teardown_btrace.
10615 * common/btrace-common.h: New file.
10616
61a31a67
JK
106172013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10618
10619 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Call also kill
10620 for CHILD, ignore PTRACE_KILL errors, move the inner block variable
10621 kill_status to outer block.
10622
05c56a9d
JK
106232013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10624
10625 Fix entry-values if the callee called a noreturn function.
10626 * dwarf2-frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
10627 get_frame_address_in_block. Add new comment.
10628
9112db09
JK
106292013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10630
10631 Fix entry-values in C++ across CUs.
10632 * dwarf2loc.c (call_site_to_target_addr) <FIELD_LOC_KIND_PHYSNAME>: Use
10633 lookup_minimal_symbol. Add a comment.
10634 * dwarf2read.c
10635 (read_call_site_scope) <is_ref_attr> <die_is_declaration>: Prefer
10636 DW_AT_linkage_name.
10637
9b67fcec
YQ
106382013-03-08 Yao Qi <yao@codesourcery.com>
10639
10640 * tracepoint.c (_initialize_tracepoint): Indent the code.
10641
6221be90
PA
106422013-03-08 Pedro Alves <palves@redhat.com>
10643
10644 * findcmd.c (put_bits): Change type of parameter to 'gdb_byte *'.
10645 (parse_find_args, find_command): Change type of pattern buffer
10646 locals to 'gdb_byte *'.
10647
be9a119c 106482013-03-08 Stan Shebs <stan@codesourcery.com>
f6f899bf
HAQ
10649 Hafiz Abid Qadeer <abidh@codesourcery.com>
10650
10651 * NEWS: Mention set and show trace-buffer-size commands.
10652 Mention new packet.
10653 * target.h (struct target_ops): New method
10654 to_set_trace_buffer_size.
10655 (target_set_trace_buffer_size): New macro.
10656 * target.c (update_current_target): Set up new method.
10657 * tracepoint.c (trace_buffer_size): New global.
10658 (start_tracing): Send it to the target.
10659 (set_trace_buffer_size): New function.
10660 (_initialize_tracepoint): Add new setshow for trace-buffer-size.
10661 * remote.c (remote_set_trace_buffer_size): New function.
10662 (_initialize_remote): Use it.
10663 (QTBuffer:size) New remote command.
10664 (PACKET_QTBuffer_size): New enum.
10665 (remote_protocol_features): Add an entry for
10666 PACKET_QTBuffer_size.
10667
7da3ab79
TT
106682013-03-08 Tom Tromey <tromey@redhat.com>
10669
10670 * remote-m32r-sdi.c (m32r_load): Call skip_spaces on correct
10671 variable.
10672
0c1f71e7
PA
106732013-03-07 Pedro Alves <palves@redhat.com>
10674
10675 * target.c (target_read_stralloc, target_fileio_read_alloc):
10676 *Cast pointer to 'gdb_byte *' in target call.
10677
c8af03a2
PA
106782013-03-07 Pedro Alves <palves@redhat.com>
10679
10680 * corefile.c (read_memory_string): Cast pointer to gdb_byte* in
10681 call.
10682
529480d0
KS
106832013-03-07 Keith Seitz <keiths@redhat.com>
10684
10685 * breakpoint.c (catch_syscall_split_args): Use skip_spaces.
10686 (trace_pass_command): Likewise.
10687 * cli/cli-cmds.c: Include cli/cli-utils.h.
10688 (source_command): Use skip-spaces.
10689 (disassemble_command): Likewise.
10690 * findcmd.c: Include cli/cli-utils.h.
10691 (parse_find_args): Use skip_spaces.
10692 * go32-nat.c: Include cli/cli-utils.h.
10693 (go32_sldt): Use skip_spaces.
10694 (go32_sgdt): Likewise.
10695 (go32_sidt): Likewise.
10696 (go32_pde): Likewise.
10697 (go32_pte): Likewise.
10698 (go32_pte_for_address): Likewise.
10699 * infcmd.c: Include cli/cli-utils.h.
10700 (registers_info): Use skip_spaces.
10701 * linux-tdep.c (read_mapping): Use skip_spaces_const.
10702 (linux_info_proc): Likewise.
10703 * linux-thread-db.c: Include cli/cli-utils.h.
10704 (info_auto_load_libthread_db): Use skip_spaces_const.
10705 * m32r-rom.c: Include cli/cli-utils.h.
10706 (m32r_upload_command): Use skip_spaces.
10707 * maint.c: Include cli/cli-utils.h.
10708 (maintenance_translate_address): Use skip_spaces.
10709 * mi/mi-parse.c: Include cli/cli-utils.h.
10710 (mi_parse_argv): Use skip_spaces.
10711 (mi_parse): Likewise.
10712 * minsyms.c: Include cli/cli-utils.h.
10713 (msymbol_hash_iw): Use skip_spaces_const.
10714 * objc-lang.c: Include cli/cli-utils.h.
10715 (parse_selector): Use skip_spaces.
10716 (parse_method): Likewise.
10717 * python/python.c: Include cli/cli-utils.h.
10718 (python_interactive_command)[HAVE_PYTHON]: Use skip_spaces.
10719 (python_command)[HAVE_PYTHON]: Likewise.
10720 (python_interactive_command)[!HAVE_PYTHON]: Likewise.
10721 * remote-m32r-sdi.c: Include cli/cli-utils.h.
10722 (m32r_load): Use skip_spaces.
10723 * serial.c: Include cli/cli-utils.h.
10724 (serial_open): Use skip_spaces_const.
10725 * stack.c: Include cli/cli-utils.h.
10726 (parse_frame_specification_1): Use skip_spaces_const.
10727 * symfile.c: Include cli/cli-utils.h.
10728 (set_ext_lang_command): Use skip_spaces.
10729 * symtab.c: Include cli/cli-utils.h.
10730 (rbreak_command): Use skip_spaces.
10731 * thread.c (thread_name_command): Use skip_spaces.
10732 * tracepoint.c (validate_actionline): Use skip_spaces.
10733 (encode_actions_1): Likewise.
10734 (trace_find_range_command): Likewise.
10735 (trace_find_outside_command): Likewise.
10736 (trace_dump_actions): Likewise.
10737
ac91cd70
PA
107382013-03-07 Pedro Alves <palves@redhat.com>
10739
10740 * c-lang.c (parse_one_string): Cast argument to gdb_byte *.
10741 * expprint.c (print_subexp_standard): Likewise.
10742 * utils.c (host_char_to_target): Likewise.
10743 * valprint.c (generic_emit_char, generic_printstr): Likewise.
10744 * varobj.c (value_get_print_value): Change type of local to char*.
10745 Cast it gdb_byte * in call to language printer.
10746
2898e560
PA
107472013-03-07 Pedro Alves <palves@redhat.com>
10748
10749 * charset.c (struct wchar_iterator) <input>: Change type to 'const
10750 gdb_byte *'.
10751 (make_wchar_iterator): Remove cast to char*.
10752 (wchar_iterate): Change type of local.
10753
a09b4448
PA
107542013-03-07 Pedro Alves <palves@redhat.com>
10755
10756 * regcache.c (regcache_xmalloc_1): Call XCALLOC with signed char
10757 for 'regcache->register_status'.
10758
20ced3e4
PA
107592013-03-07 Pedro Alves <palves@redhat.com>
10760
c2d6a675 10761 * breakpoint.c (breakpoint_xfer_memory): Change type of local to
20ced3e4
PA
10762 int.
10763
fe106009
PA
107642013-03-07 Pedro Alves <palves@redhat.com>
10765
10766 * stap-probe.c (handle_stap_probe): Add cast to char*.
10767
8ac2c12b
PA
107682013-03-07 Pedro Alves <palves@redhat.com>
10769
10770 * linux-record.c (record_linux_system_call) <gdb_sys_msgrcv,
10771 RECORD_MSGRCV>: Pass a signed variable to
10772 regcache_raw_read_signed, instead of an unsigned one.
10773
99f0a309
PA
107742013-03-07 Pedro Alves <palves@redhat.com>
10775
10776 * remote-notif.c (notif_debug): Change type to int.
10777 * remote-notif.h (notif_debug): Likewise.
10778
964b8317
PA
107792013-03-07 Pedro Alves <palves@redhat.com>
10780
10781 * ser-tcp.c (tcp_retry_limit): Change type to unsigned int.
10782
f0cc8ad4
PA
107832013-03-07 Pedro Alves <palves@redhat.com>
10784
10785 * remote.c (hex2bin, bin2hex): Move extern declarations to ...
10786 * remote.h (hex2bin, bin2hex): ... here.
10787 * tracepoint.c (hex2bin, bin2hex): Remove extern declarations.
10788
77dec115
EZ
107892013-03-07 Eli Zaretskii <eliz@gnu.org>
10790
10791 * utils.c (initialize_utils): Improve doc strings of "set/show
10792 width", "set/show height", and "set/show pagination".
10793
741d92cf
KS
107942013-03-06 Keith Seitz <keiths@redhat.com>
10795
10796 * ax-gdb.c (gen_printf): Make FORMAT const.
10797 * ax-gdb.h (gen_printf): Likewise.
10798 * ax-general.c (ax_string): Make STR const.
10799 * ax.h (ax_string): Likewise.
10800
7b6c814e
DE
108012013-03-06 Doug Evans <dje@google.com>
10802
10803 * elfread.c (elf_symfile_read): Move debugging printf to more
10804 logical location.
10805
634334ab
PA
108062013-03-06 Pedro Alves <palves@redhat.com>
10807
10808 * python/py-utils.c (target_string_to_unicode): Delete function.
10809 * python/python-internal.h (target_string_to_unicode): Delete
10810 declaration.
10811
e482a1a7
PM
108122013-03-06 Pierre Muller <muller@sourceware.org>
10813
10814 * linespec.c (get_current_search_block): ARI fix, use (void)
10815 for empty parameter list.
10816
4eeaa230
DE
108172013-03-05 Doug Evans <dje@google.com>
10818
10819 * ada-lang.c (ada_lookup_symbol_list_worker): New function, contents
10820 of old ada_lookup_symbol_list. In !full_search case, don't
10821 search superblocks.
10822 (ada_lookup_symbol_list): Delete arg full_search, all callers
10823 updated. Call ada_lookup_symbol_list_worker.
10824 (ada_iterate_over_symbols): Call ada_lookup_symbol_list_worker.
10825 * ada-lang.h (ada_lookup_symbol_list): Update.
10826 * language.h (language_defn): Update comment for
10827 la_iterate_over_symbols.
10828 * linespec.c (iterate_over_file_blocks): New function.
10829 (iterate_over_all_matching_symtabs): Call it.
10830 (lookup_prefix_sym): Ditto.
10831 (get_current_search_block): New function.
10832 (get_search_block): Delete.
10833 (find_label_symbols): Call get_current_search_block.
10834 (add_matching_symbols_to_info): Call iterate_over_file_blocks.
10835 * symtab.c (iterate_over_symbols): Don't search superblocks.
10836
b69b1fb1
YQ
108372013-03-05 Yao Qi <yao@codesourcery.com>
10838
10839 * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): Change
10840 parameter VAR's type from "unsigned int" to "int".
10841 * command.h (var_zuinteger_unlimited): Update its comments.
10842 (add_setshow_zuinteger_unlimited_cmd): Update the declaration.
10843
3c095f49
CV
108442013-03-05 Corinna Vinschen <vinschen@redhat.de>
10845
10846 * NEWS: Mention new target x86_64-*-cygwin*.
10847
b5b0b0af
CV
108482013-03-05 Corinna Vinschen <vinschen@redhat.de>
10849
10850 * configure.host: Add x86_64-*-cygwin* as host.
10851 * configure.tgt: Add x86_64-*-cygwin* as target.
10852 * config/i386/cygwin64.mh: New file.
10853
f6f99966
JK
108542013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
10855
10856 * linespec.c (decode_line_2): Fix duplicate request off by two message.
10857
33f448b1
JK
108582013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
10859
10860 * linespec.c (struct linespec_canonical_name): New.
10861 (struct linespec_state): Change canonical_names type to it.
10862 (add_sal_to_sals): Change variable canonical_name to canonical. Change
10863 xrealloc element size. Initialize the different CANONICAL fields.
10864 (canonical_to_fullform): New.
10865 (filter_results): Use it. Add variables canonical, fullform and
10866 cleanup.
10867 (struct decode_line_2_item, decode_line_2_compare_items): New.
10868 (decode_line_2): Remove variables iter and item_names, add variables
10869 items and items_count. Modify the code for these new variables.
10870
feb14725
CV
108712013-03-04 Corinna Vinschen <vinschen@redhat.com>
10872
10873 * coff-pe-read.c (read_pe_exported_syms): Don't return without
10874 calling do_cleanup.
10875
e83b17ba
HZ
108762013-03-04 Luis Machado <lgustavo@codesourcery.com>
10877
10878 * tracepoint.c (build_traceframe_info): Add code for byte order.
10879
a2d13a0d
KB
108802013-03-02 Kevin Buettner <kevinb@redhat.com>
10881
8dddcae8
KB
10882 * v850-tdep.c: (v850e2_register_name): Revise system register
10883 names to match current V850E2M architecture specifications.
10884 Update register number enum comments too.
f5aee5ee 10885
d79e58d8
JW
108862013-03-01 Jiong Wang <jiwang@tilera.com>
10887 Pedro Alves <palves@redhat.com>
10888
10889 * tilegx-tdep.c (tilegx_analyze_prologue): Limit bundle reading
10890 to END_ADDR.
10891 (tilegx_skip_prologue): Limit prologue analysis to section end.
10892
c4be5165
JK
108932013-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10894
10895 * dwarf2loc.c (call_site_find_chain_1): New variable save_callee_pc,
10896 use it.
10897
e362b510
PA
108982013-03-01 Pedro Alves <palves@redhat.com>
10899
10900 Use gdb_byte for bytes from the program being debugged.
10901
10902 * arm-tdep.c (arm_store_return_value, arm_get_longjmp_target):
10903 Change type of local 'buf' to gdb_byte.
10904 * avr-tdep.c (avr_frame_prev_register, avr_push_dummy_call): Likewise.
10905 * bfin-tdep.c (bfin_push_dummy_call): Likewise.
10906 * cris-tdep.c (cris_sigcontext_addr)
10907 (cris_sigtramp_frame_unwind_cache): Likewise.
10908 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp)
10909 (frv_linux_sigcontext_reg_addr, frv_linux_sigtramp_frame_cache):
10910 Likewise.
10911 * frv-tdep.c (frv_pseudo_register_write, frv_analyze_prologue): Likewise.
10912 * hppa-hpux-tdep.c (hppa32_hpux_find_global_pointer)
10913 (hppa32_hpux_search_dummy_call_sequence)
10914 (hppa_hpux_supply_save_state): Likewise.
10915 * hppa-linux-tdep.c (insns_match_pattern)
10916 (hppa_linux_find_global_pointer): Likewise.
10917 * hppa-tdep.c (hppa_in_function_epilogue_p)
10918 (skip_prologue_hard_way, hppa_frame_cache): Likewise.
10919 * i386-nto-tdep.c (i386nto_sigcontext_addr): Likewise.
10920 * i386fbsd-tdep.c (i386fbsd_supply_uthread)
10921 (i386fbsd_collect_uthread): Likewise.
10922 * ia64-hpux-tdep.c (ia64_hpux_push_dummy_code): Likewise.
10923 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address): Likewise.
10924 * ia64-tdep.c (examine_prologue, ia64_frame_cache)
10925 (ia64_frame_prev_register, ia64_sigtramp_frame_cache)
10926 (ia64_sigtramp_frame_prev_register, ia64_access_reg)
10927 (ia64_access_rse_reg, ia64_libunwind_frame_this_id)
10928 (ia64_libunwind_frame_prev_register)
10929 (ia64_libunwind_sigtramp_frame_this_id)
10930 (ia64_find_global_pointer_from_dynamic_section)
10931 (find_extant_func_descr, find_func_descr, ia64_dummy_id)
10932 (ia64_unwind_pc): Likewise.
10933 * iq2000-tdep.c (iq2000_store_return_value): Likewise.
10934 * m68hc11-tdep.c (m68hc11_push_dummy_call)
10935 (m68hc11_extract_return_value): Likewise.
10936 * m68klinux-nat.c (fetch_register, store_register): Likewise.
10937 * mep-tdep.c (mep_pseudo_cr32_read, mep_pseudo_cr32_write)
10938 (mep_get_insn, mep_push_dummy_call): Likewise.
10939 * mips-linux-tdep.c (mips_linux_get_longjmp_target)
10940 (mips_linux_in_dynsym_stub): Likewise.
10941 * mn10300-tdep.c (mep_pseudo_cr32_write): Likewise.
10942 * ppc-linux-nat.c (fetch_register, store_register): Likewise.
10943 * regcache.c (dump_endian_bytes): Change type of parameter 'buf'
10944 to gdb_byte.
10945 * remote-mips.c (mips_set_register): Likewise.
10946 * remote-sim.c (gdbsim_fetch_register): Likewise.
10947 * score-tdep.c (score7_fetch_inst): Change type of parameter
10948 'memblock' and local 'buf' to gdb_byte.
10949 (score7_malloc_and_get_memblock): Change return type to gdb_byte.
10950 Change type of local 'buf' to gdb_byte. Adjust.
10951 (score7_adjust_memblock_ptr): Change type of parameter 'memblock'
10952 to gdb_byte**.
10953 (score7_analyze_prologue): Change type of 'memblock' and
10954 'memblock_ptr' locals to gdb_byte*.
10955 * sh64-tdep.c (sh64_extract_return_value)
10956 (sh64_store_return_value): Change type of local 'buf' to gdb_byte.
10957 * solib-darwin.c (darwin_current_sos, darwin_read_exec_load_addr):
10958 * solib-pa64.c (pa64_solib_create_inferior_hook)
10959 (pa64_open_symbol_file_object): Remove local 'buf'.
10960 * solib-som.c (som_solib_create_inferior_hook, link_map_start)
10961 (som_open_symbol_file_object): Likewise.
10962 * solib-spu.c (spu_current_sos): Likewise.
10963 * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
10964 * spu-multiarch.c (parse_spufs_run, spu_fetch_registers)
10965 (spu_store_registers): Likewise.
10966 * target.c (debug_print_register): Likewise.
10967 * tic6x-tdep.c (tic6x_get_longjmp_target): Likewise.
10968 * xstormy16-tdep.c (xstormy16_store_return_value)
10969 (xstormy16_push_dummy_call, xstormy16_resolve_jmp_table_entry)
10970 (xstormy16_find_jmp_table_entry): Likewise.
10971
75cc61ca 109722013-03-01 Jiong Wang <jiwang@tilera.com>
61d8bd0e
JW
10973
10974 * tilegx-tdep.c (tilegx_get_longjmp_target): New function.
10975 (tilegx_gdbarch_init): Install it.
10976
ddb08e9c
TT
109772013-02-28 Tom Tromey <tromey@redhat.com>
10978
10979 * python/py-arch.c (archpy_disassemble): Use PyInt_Check and
10980 PyLong_Check.
10981
62d7fb51
DE
109822013-02-28 Doug Evans <dje@google.com>
10983
10984 * python/py-finishbreakpoint.c (bpfinishpy_init): gcc -Wall lint.
10985 * python/python.c (gdbpy_find_pc_line): Ditto.
10986
c4a9e8b4
TT
109872013-02-28 Tom Tromey <tromey@redhat.com>
10988
10989 * contrib/excheck.py: New file.
10990 * contrib/exsummary.py: New file.
10991 * contrib/gcc-with-excheck: New file.
10992
7f6a5dde
TT
109932013-02-28 Tom Tromey <tromey@redhat.com>
10994
10995 * python/python.c (gdbpy_print_stack): Call begin_line and
10996 fprintf_filtered inside TRY_CATCH.
10997
9e974e55
TT
109982013-02-28 Tom Tromey <tromey@redhat.com>
10999
11000 * python/python.c (gdbpy_find_pc_line): Call find_pc_line
11001 inside TRY_CATCH.
11002
dd5fa3e7
TT
110032013-02-28 Tom Tromey <tromey@redhat.com>
11004
11005 * py-finishbreakpoint.c (bpfinishpy_init): Reorganize to call
11006 frame_object_to_frame_info inside TRY_CATCH.
11007
86a3263f
TT
110082013-02-28 Tom Tromey <tromey@redhat.com>
11009
11010 * py-block.c (gdbpy_block_for_pc): Call block_for_pc inside
11011 TRY_CATCH.
11012
81b52a3a
TT
110132013-02-28 Tom Tromey <tromey@redhat.com>
11014
11015 * objfiles.h (ALL_PSPACE_OBJFILES): Remove trailing backlash.
11016
d50a0ce2
CV
110172013-02-27 Corinna Vinschen <vinschen@redhat.com>
11018
11019 * windows-nat.c: Throughout, fix format strings and casts of
11020 printf-like functions to avoid type related warnings on all
11021 platforms.
11022 (handle_output_debug_string): Fetch context information address
11023 from debug string using string_to_core_addr.
11024
e1f58301
JW
110252013-02-27 Jiong Wang <jiwang@tilera.com>
11026
11027 * regformats/reg-tilegx.dat (name): Change abi name to "tilegx".
11028 * regformats/reg-tilegx32.dat: New.
11029
4fcd89fc
JW
110302013-02-27 Jiong Wang <jiwang@tilera.com>
11031
11032 * configure.tgt (tilegx-*-linux*): Enable gdbserver.
11033
748d24e6
JW
110342013-02-27 Jiong Wang <jiwang@tilera.com>
11035
11036 * configure.tgt (tilegx-*-linux*): Replace whitespace with tab.
11037
6c8e944d
YQ
110382013-02-27 Yao Qi <yao@codesourcery.com>
11039 Pedro Alves <palves@redhat.com>
11040
11041 * tracepoint.c (tfile_trace_find): For tfind
5f8e0b8f
MF
11042 pc/tp/range/outside, look for the next trace frame instead of
11043 always starting from frame 0.
6c8e944d 11044
acd7db30
AG
110452013-02-26 Anthony Green <green@moxielogic.com>
11046
11047 * configure.tgt: Add support for moxie-*-rtems* target.
11048
025e6dce
PA
110492013-02-25 Pedro Alves <palves@redhat.com>
11050
11051 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Change
11052 warning text.
11053
ca9c94ef
MR
110542013-02-24 Maciej W. Rozycki <macro@codesourcery.com>
11055
11056 * mips-tdep.c (mips32_scan_prologue): Reset frame_offset to zero
11057 if $fp is used as the virtual frame pointer.
11058
24c274a1
AM
110592013-02-23 Alan Modra <amodra@gmail.com>
11060
11061 * elfread.c (elf_symtab_read): Do not use udata.p here to find
11062 symbol size.
11063 * ppc64-tdep.c (ppc64_elf_make_msymbol_special): New function.
11064 * ppc64-tdep.h (ppc64_elf_make_msymbol_special): Declare.
11065 * ppc-linux-tdep.c (ppc_linux_init_abi): Set up to use the above.
11066 * ppcfbsd-tdep.c (ppcfbsd_init_abi): Likewise.
11067
bfada189
JK
110682013-02-22 Jan Kratochvil <jan.kratochvil@redhat.com>
11069
11070 Code cleanup.
11071 * elfread.c (build_id_bfd_get): Make the return type const.
11072 (build_id_verify): Make the check parameter const.
11073 (build_id_to_debug_filename): Make the build_id parameter and variable
11074 data const.
11075 (find_separate_debug_file_by_buildid): Make the variable build_id const.
11076
c0355132
AM
110772013-02-21 Alan Modra <amodra@gmail.com>
11078
11079 * elfread.c (build_id_bfd_get): Adjust for elf_tdata changes.
11080
9f44fbc0
SCR
110812013-02-20 Siva Chandra Reddy <sivachandra@google.com>
11082
11083 Add a new method 'disassemble' to gdb.Architecture class.
11084 * python/py-arch.c (archpy_disassmble): Implementation of the
11085 new method gdb.Architecture.disassemble.
11086 (arch_object_methods): Add entry for the new method.
11087
b74ea3eb
JW
110882013-02-20 Jiong Wang <jiwang@tilera.com>
11089
11090 * MAINTAINERS (Write After Approval): Add myself to the list.
11091
61a672f1
PA
110922013-02-19 Pedro Alves <palves@redhat.com>
11093
11094 Garbage collect 'struct monitor_ops'::load_routine.
11095
11096 * monitor.h (struct monitor_ops) <load_routine>: Remove field.
11097 * monitor.c (monitor_load): No longer call
11098 current_monitor->load_routine.
11099 * dbug-rom.c (init_dbug_cmds): Don't set 'load_routine'.
11100 * m32r-rom.c (init_m32r_cmds): Don't set 'load_routine'.
11101 * ppcbug-rom.c (init_ppc_cmds): Don't set 'load_routine'.
11102
40e397df
PA
111032013-02-19 Pedro Alves <palves@redhat.com>
11104
11105 PR gdb/15161
11106
11107 Harmonize with generic_load.
11108
11109 * monitor.c: Include "readline/readline.h".
11110 (monitor_load): Rename parameter 'file' to 'args'. Use build_argv
11111 instead of sscanf. Use CORE_ADDR/strtoulst instead of unsigned
11112 long/strtol for the 'load_offset' local. Error out if no argument
11113 is given or if too many arguments are given. Tilde expand the
11114 passed in file name.
11115
f698ca8e
KT
111162013-02-19 Kai Tietz <ktietz@redhat.com>
11117
11118 PR gdb/15161
11119 * symfile.c (load_section_data): Change type of load_offset
11120 to CORE_ADDR.
11121 (generic_load): User strtoulst instead of strtoul for conversion
11122 of load_offset.
11123
3361b059
WL
111242013-02-19 Jiong Wang <jiwang@tilera.com>
11125
11126 * tilegx-tdep.c (tilegx_analyze_prologue): add check for
11127 for return address, "lr" register, saved on stack.
11128 * tilegx-tdep.c (tilegx_frame_cache): update "PC" reg
11129 after we invoke tilegx_analyze_prologue.
11130
3e9d5130
WL
111312013-02-19 Jiong Wang <jiwang@tilera.com>
11132
bb1bcd86
WL
11133 * tilegx-tdep.c (itilegx_gdbarch_init): char type should be signed.
11134
3361b059 111352013-02-19 Jiong Wang <jiwang@tilera.com>
bb1bcd86 11136
b74ea3eb 11137 * tilegx-tdep.c (tilegx_skip_prologue): Use skip_prologue_using_sal.
3e9d5130 11138
4aaf2503
WL
111392013-02-19 Jiong Wang <jiwang@tilera.com>
11140
b74ea3eb 11141 * tilegx-tdep.c (INT_SWINT_1_SIGRETURN): New macro.
4aaf2503
WL
11142 (tilegx_write_pc): New function.
11143 (tilegx_cannot_reference_register): Return zero if REGNO
11144 is TILEGX_FAULTNUM_REGNUM.
11145 (tilegx_gdbarch_init): Add call to set_gdbarch_write_pc.
11146 (tilegx_register_name): Add handling of "faultnum" register.
11147 * tilegx-tdep.h (enum tilegx_regnum): Add TILEGX_FAULTNUM_REGNUM.
11148 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Add
11149 handling of TILEGX_FAULTNUM_REGNUM.
11150 * tilegx-linux-nat.c (regmap): Add entry for TILEGX_FAULTNUM_REGNUM.
11151
bc23a956
WL
111522013-02-19 Jiong Wang <jiwang@tilera.com>
11153
11154 * tilegx-tdep.c (tilegx_push_dummy_call): args pushed on stack
b74ea3eb 11155 should be aligned to 64bit.
bc23a956 11156
42f45f1a
KT
111572013-02-19 Kai Tietz <ktietz@redhat.com>
11158
11159 * windows-nat.c (windows_xfer_memory): Fix debug-output
11160 for LLP64.
11161
6ce4c112
LL
111622013-02-19 Lei Liu <lei.liu2@windriver.com>
11163
11164 * mips-linux-nat.c (mips64_linux_regsets_store_registers):
11165 Don't check DSP register number if HAVE_DSP is not set.
11166
30e8ee25
AM
111672013-02-19 Alan Modra <amodra@gmail.com>
11168
11169 * elfread.c (struct build_id): Delete. Use struct elf_build_id
11170 throughout file instead.
11171 (build_id_bfd_get): Update to use new elf_tdata build_id field.
11172 Don't xmalloc return value.
11173 (build_id_verify): Similarly. Don't xfree.
11174 (build_id_to_debug_filename): Update.
11175 (find_separate_debug_file_by_buildid): Update, don't xfree.
11176
4c9ad8c2
TT
111772013-02-18 Tom Tromey <tromey@redhat.com>
11178
11179 PR gdb/15102:
11180 * dwarf2read.c (read_subrange_type): Use result of
11181 'check_typedef'.
11182
983dc440
YQ
111832013-02-16 Yuanhui Zhang <asmwarrior@gmail.com>
11184
11185 * frame.c: Remove one extra white space after #include
11186 directive.
11187
7fb2b84a
JK
111882013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
11189
11190 * contrib/cc-with-tweaks.sh: Extend the comment for -p option.
11191
edceb2a9
JK
111922013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
11193
11194 * gdb-gdb.gdb.in: Wrap set complaints, b internal_error, b info_command
11195 and dir commands into an if block.
11196
e81b7af8
TT
111972013-02-15 Sanimir Agovic <sanimir.agovic@intel.com>
11198
11199 * python/py-breakpoint (struct pybp_code): Use int instead of
11200 enum type_code.
11201
f5911ea1
HAQ
112022013-02-15 Pedro Alves <pedro@codesourcery.com>
11203 Hafiz Abid Qadeer <abidh@codesourcery.com>
11204
11205 * NEWS: Mention new field "trace-file".
11206 * tracepoint.c (trace_status_mi): Output "trace-file" field.
11207 (tfile_open): Record the trace file's filename in the trace
11208 status.
11209 (tfile_files_info): Mention the name of the trace file.
11210 Check the "filename" field explicitely.
11211 (trace_status_command): Explicitely check "filename" field.
11212 (trace_find_command): Ditto.
11213 (trace_find_pc_command): Ditto.
11214 (trace_find_tracepoint_command): Ditto.
11215 (trace_find_line_command): Ditto.
11216 (trace_find_range_command): Ditto.
11217 (trace_find_outside_command): Ditto.
11218 * tracepoint.h (struct trace_status) <from_file>: Rename it
11219 to "filename" and make it hold the trace file's filename
11220 instead of a boolean.
11221 * remote.c (remote_get_trace_status): Initialize "filename"
11222 field with NULL instead of 0.
11223
796cb314
YQ
112242013-02-15 Yao Qi <yao@codesourcery.com>
11225
11226 * remote.c: Fix a typo.
11227
42e79b1d
PM
112282013-02-14 Pierre Muller <muller@sourceware.org>
11229
11230 * contrib/ari/gdb_ari.sh (GNU/Linux rule): Remove.
11231
baea0dae
PA
112322013-02-14 Pedro Alves <palves@redhat.com>
11233
11234 * utils.c (savestring): Don't #undef it. Move function to
11235 common/common-utils.c.
11236 * common/common-utils.c: Include gdb_string.h.
11237 (savestring): Move here from utils.c.
11238 * common/common-utils.h (savestring): Declare.
11239
57c3b6ed
PA
112402013-02-14 Pedro Alves <palves@redhat.com>
11241
11242 * utils.c (savestring): Rename parameter 'size' to 'len'.
11243
d6c44983
YZ
112442013-02-14 Pedro Alves <palves@redhat.com>
11245 Yufeng Zhang <yufeng.zhang@arm.com>
11246
11247 * aarch64-linux-nat.c (aarch64_init_debug_reg_state): Delete.
11248 (aarch64_inferior_data, struct aarch64_inferior_data):
11249 Delete.
11250 (struct aarch64_process_info): New.
11251 (aarch64_process_list): New global.
11252 (aarch64_find_process_pid, aarch64_add_process)
11253 (aarch64_process_info_get): New functions.
11254 (aarch64_inferior_data_get): Delete.
11255 (aarch64_process_info_get): New function.
11256 (aarch64_forget_process): New function.
11257 (aarch64_get_debug_reg_state): New parameter 'pid'. Reimplement.
11258 (aarch64_linux_prepare_to_resume): Pass the lwp's pid to
11259 aarch64_get_debug_reg_state.
11260 (aarch64_notify_debug_reg_change): Use iterate_over_lwps
11261 instead of linux_nat_iterate_watchpoint_lwps.
11262 (aarch64_linux_new_fork): New function.
11263 (aarch64_linux_child_post_startup_inferior): Use
11264 aarch64_forget_process instead of aarch64_init_debug_reg_state.
11265 (aarch64_handle_breakpoint, aarch64_linux_insert_hw_breakpoint)
11266 (aarch64_linux_remove_hw_breakpoint)
11267 (aarch64_handle_aligned_watchpoint)
11268 (aarch64_handle_unaligned_watchpoint)
11269 (aarch64_linux_insert_watchpoint)
11270 (aarch64_linux_remove_watchpoint)
11271 (aarch64_linux_stopped_data_address): Adjust to pass the current
11272 process id to aarch64_debug_reg_state.
11273 (_initialize_aarch64_linux_nat): Install aarch64_linux_new_fork as
11274 linux_nat_new_fork hook, and aarch64_forget_process as
11275 linux_nat_forget_process hook; remove the call to
11276 register_inferior_data_with_cleanup.
11277
4819b3f8
PA
112782013-02-14 Pedro Alves <palves@redhat.com>
11279
11280 * eval.c (evaluate_subexp_for_address) <default_case_after_eval,
11281 EVAL_AVOID_SIDE_EFFECTS>: Swap and handle TYPE_CODE_REF before
11282 lval_memory.
11283
1773c82c
HAQ
112842013-02-14 Pedro Alves <pedro@codesourcery.com>
11285 Hafiz Abid Qadeer <abidh@codesourcery.com>
11286
11287 * tracepoint.h (validate_trace_state_variable_name): Declare.
11288 * tracepoint.c (validate_trace_state_variable_name): New.
11289 (trace_variable_command): Parse the trace state variable's name
11290 without using parse_expression. Do several validations.
11291 * mi/mi-main.c (mi_cmd_trace_define_variable): Don't parse the
11292 trace state variable's name with parse_expression. Validate it.
11293
53778a97
YQ
112942013-02-14 Yao Qi <yao@codesourcery.com>
11295
11296 * infcmd.c (breakpoint_proceeded): Remove it.
11297
7b3ae3a6
YQ
112982013-02-14 Yao Qi <yao@codesourcery.com>
11299
11300 * tracepoint.c (end_actions_pseudocommand): Make it static.
11301 (while_stepping_pseudocommand): Likewise.
11302 * tracepoint.h (end_actions_pseudocommand): Remove the
11303 declaration.
11304 (while_stepping_pseudocommand): Likewise.
11305
64580925
YQ
113062013-02-14 Yao Qi <yao@codesourcery.com>
11307
11308 * cli/cli-decode.c (help_cmd): Remove the declaration of
11309 "cmdlist".
11310 (help_all): Likewise.
11311
26cb8b7c
PA
113122013-02-13 Pedro Alves <palves@redhat.com>
11313
11314 * amd64-linux-nat.c (update_debug_registers_callback):
11315 Update comment.
11316 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
11317 iterate_over_lwps.
11318 (amd64_linux_prepare_to_resume): Pass the lwp's pid to
11319 i386_debug_reg_state.
11320 (amd64_linux_new_fork): New function.
11321 (_initialize_amd64_linux_nat): Install amd64_linux_new_fork as
11322 linux_nat_new_fork hook, and i386_forget_process as
11323 linux_nat_forget_process hook.
11324 * i386-linux-nat.c (update_debug_registers_callback):
11325 Update comment.
a8256ea1 11326 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
26cb8b7c
PA
11327 iterate_over_lwps.
11328 (i386_linux_prepare_to_resume): Pass the lwp's pid to
11329 i386_debug_reg_state.
11330 (i386_linux_new_fork): New function.
11331 (_initialize_i386_linux_nat): Install i386_linux_new_fork as
11332 linux_nat_new_fork hook, and i386_forget_process as
11333 linux_nat_forget_process hook.
11334 * i386-nat.c (i386_init_dregs): Delete.
11335 (i386_inferior_data, struct i386_inferior_data):
11336 Delete.
11337 (struct i386_process_info): New.
11338 (i386_process_list): New global.
11339 (i386_find_process_pid, i386_add_process, i386_process_info_get):
11340 New functions.
11341 (i386_inferior_data_get): Delete.
11342 (i386_process_info_get): New function.
11343 (i386_debug_reg_state): New parameter 'pid'. Reimplement.
11344 (i386_forget_process): New function.
11345 (i386_cleanup_dregs): Rewrite.
11346 (i386_update_inferior_debug_regs, i386_insert_watchpoint)
11347 (i386_remove_watchpoint, i386_region_ok_for_watchpoint)
11348 (i386_stopped_data_address, i386_insert_hw_breakpoint)
11349 (i386_remove_hw_breakpoint): Adjust to pass the current process id
11350 to i386_debug_reg_state.
11351 (i386_use_watchpoints): Don't register inferior data.
11352 * i386-nat.h (i386_debug_reg_state): Add new 'pid' parameter, and
11353 adjust comment.
11354 (i386_forget_process): Declare.
11355 * linux-fork.c (delete_fork): Call linux_nat_forget_process.
11356 * linux-nat.c (linux_nat_new_fork, linux_nat_forget_process_hook):
11357 New static globals.
11358 (linux_child_follow_fork): Don't call linux_nat_new_thread here.
11359 (add_initial_lwp): New, factored out from ...
11360 (add_lwp): ... this. Don't check the number of lwps before
11361 calling linux_nat_new_thread.
11362 (linux_nat_iterate_watchpoint_lwps): Delete.
11363 (linux_nat_attach): Use add_initial_lwp instead of add_lwp.
11364 (linux_handle_extended_wait): Call the linux_nat_new_fork hook on
11365 forks and vforks.
11366 (linux_nat_wait_1): Use add_initial_lwp instead of add_lwp for the
11367 initial lwp.
11368 (linux_nat_kill, linux_nat_mourn_inferior): Call
11369 linux_nat_forget_process.
11370 (linux_nat_set_new_fork, linux_nat_set_forget_process)
11371 (linux_nat_forget_process): New functions.
11372 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): Delete
11373 type.
11374 (linux_nat_iterate_watchpoint_lwps): Delete declaration.
11375 (linux_nat_new_fork_ftype, linux_nat_forget_process_ftype): New
11376 types.
11377 (linux_nat_set_new_fork, linux_nat_set_forget_process)
11378 (linux_nat_forget_process): New declarations.
11379
11380 * amd64fbsd-nat.c (super_mourn_inferior): New global.
11381 (amd64fbsd_mourn_inferior): New function.
11382 (_initialize_amd64fbsd_nat): Override to_mourn_inferior.
11383 * windows-nat.c (windows_detach): Call i386_cleanup_dregs.
11384
5befea72
MS
113852013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
11386
55015247
YQ
11387 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
11388 Adding _().
5befea72 11389
1d3ffd6b
MS
113902013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
11391
11392 * aarch64-linux-nat.c (debug_reg_change_callback)
11393 (aarch64_linux_get_debug_reg_capacity): ARI fix: Replace %llx with
11394 %s and phex().
11395
6eb04473
MS
113962013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
11397
11398 * aarch64-linux-nat.c (dr_changed_t): ARI fix: Replace long long
11399 with LONGEST.
11400
a016fc87
HAQ
114012013-02-13 Pedro Alves <palves@redhat.com>
11402 Hafiz Abid Qadeer <abidh@codesourcery.com>
11403
11404 * c-lang.c (c_op_print_tab): Add entry for UNOP_PLUS.
11405
e234dfaf
TT
114062013-02-12 Tom Tromey <tromey@redhat.com>
11407
11408 PR symtab/11464:
11409 * c-exp.y (lex_one_token): Initialize other fields of yylval on
11410 NAME return.
11411 (classify_inner_name): Remove 'first_name' argument, add
11412 'context'. Remove unused variable.
11413 (yylex): Explicitly maintain the context type. Exit loop earlier
11414 if NAME result is seen.
11415
0b1afbb3
PA
114162013-02-12 Pedro Alves <palves@redhat.com>
11417
11418 * amd64-darwin-tdep.c: Add (C) after Copyright.
11419 * cli/cli-cmds.h: Ditto.
11420 * cli/cli-decode.c: Ditto.
11421 * cli/cli-decode.h: Ditto.
11422 * cli/cli-dump.c: Ditto.
11423 * cli/cli-dump.h: Ditto.
11424 * cli/cli-interp.c: Ditto.
11425 * cli/cli-logging.c: Ditto.
11426 * cli/cli-script.c: Ditto.
11427 * cli/cli-script.h: Ditto.
11428 * cli/cli-setshow.c: Ditto.
11429 * cli/cli-setshow.h: Ditto.
11430 * cli/cli-utils.c: Ditto.
11431 * cli/cli-utils.h: Ditto.
11432 * config/alpha/nm-osf3.h: Ditto.
11433 * config/djgpp/djconfig.sh: Ditto.
11434 * config/i386/nm-fbsd.h: Ditto.
11435 * config/i386/nm-i386gnu.h: Ditto.
11436 * config/nm-linux.h: Ditto.
11437 * config/nm-nto.h: Ditto.
11438 * config/rs6000/nm-rs6000.h: Ditto.
11439 * config/sparc/nm-sol2.h: Ditto.
11440 * darwin-nat-info.c: Ditto.
11441 * dfp.c: Ditto.
11442 * dfp.h: Ditto.
11443 * gdb-demangle.h: Ditto.
11444 * i386-darwin-nat.c: Ditto.
11445 * i386-darwin-tdep.c: Ditto.
11446 * linux-fork.h: Ditto.
11447 * m32c-tdep.c: Ditto.
11448 * microblaze-linux-tdep.c: Ditto.
11449 * microblaze-rom.c: Ditto.
11450 * microblaze-tdep.c: Ditto.
11451 * microblaze-tdep.h: Ditto.
11452 * mips-linux-tdep.h: Ditto.
11453 * ppc-ravenscar-thread.c: Ditto.
11454 * ppc-ravenscar-thread.h: Ditto.
11455 * prologue-value.c: Ditto.
11456 * prologue-value.h: Ditto.
11457 * ravenscar-thread.c: Ditto.
11458 * ravenscar-thread.h: Ditto.
11459 * sparc-ravenscar-thread.c: Ditto.
11460 * sparc-ravenscar-thread.h: Ditto.
11461 * tilegx-linux-tdep.c: Ditto.
11462 * unwind_stop_reasons.def: Ditto.
11463 * windows-nat.h: Ditto.
11464 * xtensa-linux-tdep.c: Ditto.
11465 * xtensa-xtregs.c: Ditto.
11466 * regformats/regdat.sh: Ditto.
11467 * regformats/regdef.h: Ditto.
11468
6c01dd94
PA
114692013-02-12 Pedro Alves <palves@redhat.com>
11470
11471 * break-catch-sig.c: Update copyright years.
11472
b65a2bd9
SCR
114732013-02-11 Siva Chandra Reddy <sivachandra@google.com>
11474
11475 Add support for a destructor for ui_out data and use it to
11476 provide a ui_out destructor.
11477 * ui-out.h: Declare the new ui_out destructor.
11478 (ui_out_impl): Add a field for data destructor in ui_out_impl.
11479 * ui-out.c (default_data_destroy): Add a default data destructor
11480 which does nothing.
11481 (default_ui_out_impl): Set the new data_destroy field to
11482 default_data_destroy
11483 (uo_data_destroy): Local function which invokes the data
11484 destructor if present.
11485 (clear_table): Local function which clears the table data of a
11486 ui_out object.
11487 (ui_out_destroy): Public function which frees a ui_out object.
11488 (ui_out_table_end): Use the new clear_table function.
11489 * cli-out.c (cli_ui_out_impl): Set the new data_destroy field to
11490 NULL.
11491 * mi/mi-out.c (mi_ui_out_impl): Set the new data_destroy field
11492 to NULL.
11493
c2792f5a
DE
114942013-02-11 Doug Evans <dje@google.com>
11495
11496 * printcmd.c (printf_c_string,printf_wide_c_string): New functions.
11497 (printf_decfloat): New function. Broken out from ui_printf.
11498 Remove unnecessary code to shift the entire format string down.
11499 (printf_pointer): New function.
11500 (ui_printf): Code to print C strings, wide C strings, decfloats,
11501 and pointers moved to separate functions.
11502
d9e98382
SDJ
115032013-02-11 Sergio Durigan Junior <sergiodj@redhat.com>
11504
11505 * valops.c (value_assign): Handling bitfield offset in
11506 `lval_internalvar_component' case.
11507
4ff3ce77
DE
115082013-02-08 Doug Evans <dje@google.com>
11509
11510 * common/format.c (parse_format_string): Fix whitespace.
11511
901900c4
MGD
115122013-02-08 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
11513
11514 * stack.c (return_command): Work around uninitialized variable
11515 warning.
11516
b5dbc8d4
YZ
115172013-02-08 Yufeng Zhang <yufeng.zhang@arm.com>
11518
11519 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET): Change the
11520 number of the registers from 36 to 34.
11521
51d66578
MS
115222013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
11523
11524 * NEWS: Mention new AArch64 native and target support.
11525
176b1c95
MS
115262013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
11527
11528 * MAINTAINERS (Write After Approval): Add myself.
11529
9d19df75
MS
115302013-02-08 Jim MacArthur <jim.macarthur@arm.com>
11531 Marcus Shawcroft <marcus.shawcroft@arm.com>
11532 Nigel Stephens <nigel.stephens@arm.com>
11533 Yufeng Zhang <yufeng.zhang@arm.com>
11534
11535 * aarch64-linux-nat.c: New file.
11536 * config/aarch64/linux.mh: New file.
11537 * configure.host: Add AArch64.
11538 * Makefile.in (ALLDEPFILES): Add aarch64-linux-nat.c.
11539
7e1e0340
DE
115402013-02-07 Doug Evans <dje@google.com>
11541
11542 * cli/cli-cmds.c (_initialize_cli_cmds): Clarify argument to
11543 disassemble command.
11544
45e25a36
MS
115452013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
11546
11547 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
11548 set_gdbarch_fetch_tls_load_module_address.
11549
bbfdfe1c
DM
115502013-02-06 David S. Miller <davem@davemloft.net>
11551
11552 * sparc-tdep.c (sparc32_return_value): Handle writing return value when
11553 using RETURN_VALUE_ABI_PRESERVES_ADDRESS.
11554 * value.c (struct_return_convention): New function.
11555 (using_struct_return): Implement in terms of struct_return_convention.
11556 * value.h (struct_return_convention): Declare.
11557 * stack.c (return_command): Allow successful overriding of the return
11558 value when RETURN_VALUE_ABI_PRESERVES_ADDRESS.
11559
bc9abe4a
TT
115602013-02-06 Tom Tromey <tromey@redhat.com>
11561
11562 * python/py-type.c (typy_strip_typedefs): Don't call check_typedef
11563 outside of TRY_CATCH.
11564
134a2066
YQ
115652013-02-06 Yao Qi <yao@codesourcery.com>
11566
11567 * mi/mi-interp.c: Include "tracepoint.h".
11568 (mi_tsv_modified): Declare.
11569 (mi_tsv_created, mi_tsv_deleted): Update declaration.
11570 (mi_interpreter_init): Call observer_attach_tsv_modified.
11571 (mi_tsv_modified): New.
11572 (mi_tsv_created, mi_tsv_deleted): Update.
11573 * tracepoint.c (trace_variable_command): Call
11574 observer_notify_tsv_modified if the initial value of tsv is
11575 changed.
11576 (delete_trace_state_variable): Call
11577 observer_notify_tsv_deleted earlier.
11578 (trace_variable_command): Caller update.
11579 (create_tsv_from_upload): Likewise.
11580 * observer.sh: Declare "struct trace_state_variable".
11581
11582 * NEWS: Mention the new MI notification "=tsv-modified".
11583
59be2b6a
DE
115842013-02-05 Doug Evans <dje@google.com>
11585
11586 * completer.c (location_completer): Fix typo in comment.
11587
d30113d4
JK
115882013-02-05 Jan Kratochvil <jan.kratochvil@redhat.com>
11589
11590 * breakpoint.c (add_location_to_breakpoint): Insert the location with
11591 ADDRESS sorted.
11592
14ac654f
MS
115932013-02-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
11594
11595 * aarch64-tdep.c (aarch64_analyze_prologue): ARI fix:
11596 Refactor if statement to avoid trailing || operator.
11597
543bf33d
AT
115982013-02-05 Andreas Tobler <andreast@fgznet.ch>
11599
11600 * NEWS: Add PowerPC FreeBSD as a new native configuration.
11601
dc18f110
AT
116022013-02-04 Andreas Tobler <andreast@fgznet.ch>
11603
11604 * Makefile.in (ALL_TARGET_OBS): Add powerpc FreeBSD files.
11605 * configure.host: Add powerpc*-*-freebsd* target.
11606 * configure.tgt: Add target info for powerpc*-*-freebsd*.
11607 * ppcfbsd-nat.c, ppcfbsd-tdep.h, ppcfbsd-tdep.c: New files.
11608 * config/powerpc/fbsd.mh: New file.
11609
b3ac9c77
SDJ
116102013-02-04 Sergio Durigan Junior <sergiodj@redhat.com>
11611 Denys Vlasenko <dvlasenk@redhat.com>
11612 Pedro Alves <palves@redhat.com>
11613
11614 * gdbarch.sh (elfcore_write_linux_prpsinfo): New F hook.
11615 (struct elf_internal_linux_prpsinfo): Forward declare.
11616 * gdbarch.h, gdbarch.c: Regenerate.
11617 * linux-tdep.c: Include `cli/cli-utils.h'.
11618 (linux_fill_prpsinfo): New function.
11619 (linux_make_corefile_notes): Use linux_fill_prpsinfo. If there's
11620 an elfcore_write_linux_prpsinfo hook, use it, otherwise, use
11621 elfcore_write_linux_prpsinfo32 or elfcore_write_linux_prpsinfo64
11622 depending on gdbarch pointer bitness.
11623 * ppc-linux-tdep.c: Include elf-bfd.h.
11624 (ppc_linux_init_abi): Hook in elfcore_write_ppc_linux_prpsinfo32
11625 on 32-bit.
11626
176eb98c
MS
116272013-02-04 Jim MacArthur <jim.macarthur@arm.com>
11628 Marcus Shawcroft <marcus.shawcroft@arm.com>
11629 Nigel Stephens <nigel.stephens@arm.com>
11630 Yufeng Zhang <yufeng.zhang@arm.com>
11631
11632 * configure.tgt (aarch64*-*-linux*): Set build_gdbserver=yes.
11633
cf0dbd6f
MS
116342013-02-04 Jim MacArthur <jim.macarthur@arm.com>
11635 Marcus Shawcroft <marcus.shawcroft@arm.com>
11636 Nigel Stephens <nigel.stephens@arm.com>
11637 Yufeng Zhang <yufeng.zhang@arm.com>
11638
11639 * aarch64-newlib-tdep.c: New file.
11640 * configure.tgt: Add aarch64-newlib-tdep.o to gdb_target_obs of
11641 aarch64*-*-elf.
11642 * defs.h (enum gdb_osabi): Add GDB_OSABI_NEWLIB.
11643 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-newlib-tdep.o.
11644 (ALLDEPFILES): Add aarch64-newlib-tdep.c.
11645 * osabi.c (gdb_osabi_names): Add "Newlib".
11646
1ae3db19
MS
116472013-02-04 Jim MacArthur <jim.macarthur@arm.com>
11648 Marcus Shawcroft <marcus.shawcroft@arm.com>
11649 Nigel Stephens <nigel.stephens@arm.com>
11650 Yufeng Zhang <yufeng.zhang@arm.com>
11651
11652 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-linux-tdep.o.
11653 (ALLDEPFILES): Add aarch64-linux-tdep.c.
11654 * aarch64-linux-tdep.c: New file.
11655 * aarch64-linux-tdep.h: New file.
11656 * aarch64-tdep.h (gdbarch_tdep): Define gregset and fpregset.
11657 * configure.tgt: Add aarch64-none-linux-gnu.
11658
07b287a0
MS
116592013-02-04 Jim MacArthur <jim.macarthur@arm.com>
11660 Marcus Shawcroft <marcus.shawcroft@arm.com>
11661 Nigel Stephens <nigel.stephens@arm.com>
11662 Yufeng Zhang <yufeng.zhang@arm.com>
11663
11664 * Makefile.in (ALL_64_TARGET_OBS): Add arch64-tdep.o.
11665 (HFILES_NO_SRCDIR): Add aarch64-tdep.h.
11666 (ALLDEPFILES): Add aarch64-tdep.c.
11667 * aarch64-tdep.c: New file.
11668 * aarch64-tdep.h: New file.
11669 * configure.tgt: Add AArch64.
11670 * features/Makefile (WHICH): Add aarch64 and aarch64-without-fpu.
11671 (aarch64-expedite): New definition.
11672 * features/aarch64-core.xml: New file.
11673 * features/aarch64-fpu.xml: New file.
11674 * features/aarch64-without-fpu.c: New file (generated).
11675 * features/aarch64-without-fpu.xml: New file.
11676 * features/aarch64.c: New file (generated).
11677 * features/aarch64.xml: New file.
11678 * regformats/aarch64-without-fpu.dat: New file (generated).
11679 * regformats/aarch64.dat: New file (generated).
11680
0f1b18ab
JK
116812013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11682
11683 * contrib/expect-read1.c: New file.
11684 * contrib/expect-read1.sh: New file.
11685
233d95b5
JK
116862013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11687
11688 * dwarf2read.c (file_file_name): New function with code from
11689 file_full_name.
11690 (file_full_name): Move most of the code to file_file_name.
11691 (macro_start_file): Rename variable full_name to file_name and use
11692 file_file_name for it. Add comp_dir parameter to new_macro_table.
11693 * macrocmd.c (show_pp_source_pos): New variable fullname. Replace any
11694 macro_source_file->filename access by macro_source_fullname call.
11695 * macroscope.c (_initialize_macroscope): Update the new_macro_table
11696 caller.
11697 * macrotab.c (struct macro_table): New field comp_dir.
11698 (macro_include): New variables link_fullname and source_fullname.
11699 Replace any macro_source_file->filename access by macro_source_fullname
11700 call.
11701 (macro_lookup_inclusion): Remove the partial filenames checking code.
11702 (check_for_redefinition): New variables source_fullname and
11703 found_key_fullname. Replace any macro_source_file->filename access by
11704 macro_source_fullname call.
11705 (macro_undef): New variables source_fullname and key_fullname. Replace
11706 any macro_source_file->filename access by macro_source_fullname call.
11707 (macro_lookup_definition): New variables retval and source_fullname.
11708 Replace any macro_source_file->filename access by macro_source_fullname
11709 call.
11710 (foreach_macro): New variable key_fullname. Replace any
11711 macro_source_file->filename access by macro_source_fullname call.
11712 (foreach_macro_in_scope): New variable datum_fullname. Replace any
11713 macro_source_file->filename access by macro_source_fullname call.
11714 (new_macro_table): Add parameter comp_dir. Initialize T with it.
11715 (macro_source_fullname): New function.
11716 * macrotab.h (struct macro_source_file): Extent the filename field
11717 comment.
11718 (new_macro_table): New parameter comp_dir, add a comment for it.
11719 (macro_source_fullname): new declaration.
11720
da235a7c
JK
117212013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11722
11723 * dwarf2read.c (dw2_map_symtabs_matching_filename): Move variable
11724 this_real_name to outer block. Use it also for
11725 compare_filenames_for_search.
11726 (dw2_expand_symtabs_matching): New variable this_real_name. Use it
11727 with dw2_get_real_path for file_matcher, considering also
11728 BASENAMES_MAY_DIFFER.
11729 (file_full_name): Prepend COMP_DIR even for relative lh->INCLUDE_DIRS.
11730
fbd9ab74
JK
117312013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11732
11733 * dwarf2read.c (dw2_expand_symtabs_matching): Add basenames parameter
11734 to the file_matcher parameter. Pass 0 to it.
11735 (dwarf2_create_include_psymtab): Copy also DIRNAME.
11736 * psymtab.c (partial_map_symtabs_matching_filename): Drop handling of
11737 NULL psymtab_to_fullname result.
11738 (psymtab_to_fullname): Remove variable r. Never return NULL, assemble
11739 an expected filename instead.
11740 (expand_symtabs_matching_via_partial): Add basenames parameter to the
11741 file_matcher parameter. Call also psymtab_to_fullname, after newly
11742 considering BASENAMES_MAY_DIFFER.
11743 * source.c (rewrite_source_path): Remove static.
11744 * source.h (rewrite_source_path): New declaration.
11745 * symfile.h (struct quick_symbol_functions): Add basenames parameter to
11746 the expand_symtabs_matching field. Comment it.
11747 * symtab.c (file_matches): New function comment. Add parameter
11748 basenames, implement it.
11749 (search_symbols_file_matches): Add basenames parameter. Update the
11750 file_matches caller.
11751 (search_symbols): Match FILES also against symtab_to_fullname.
11752 Optimize it for BASENAMES_MAY_DIFFER.
11753
56d397a3
JK
117542013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11755
11756 * source.c (print_source_lines_base): Print for TUI also "fullname".
11757 * tui/tui-data.c (init_content_element): Change tui_locator_element
11758 field to full_name.
11759 * tui/tui-data.h (struct tui_locator_element): Likewise.
11760 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Rename
11761 tui_update_locator_filename calls to tui_update_locator_fullname.
11762 Replace symtab->filename refererence by symtab_to_fullname call.
11763 * tui/tui-out.c (tui_field_string): Check for "fullname" now.
11764 * tui/tui-source.c (tui_set_source_content): Change tui_locator_element
11765 field to full_name. Replace symtab->filename refererence by
11766 symtab_to_fullname call.
11767 (tui_show_symtab_source): Rename parameter to fullname. Change
11768 tui_locator_element field to full_name.
11769 * tui/tui-stack.c: Include source.h.
11770 (tui_set_locator_filename): Rename the declaration to ...
11771 (tui_set_locator_fullname): ... here. Rename its parameter to
11772 fullname, updates its comment.
11773 (tui_set_locator_info): Rename its parameter to fullname.
11774 (tui_set_locator_filename): Rename the definition to ...
11775 (tui_set_locator_fullname): ... here. Rename its parameter to
11776 fullname, updates its comment. Change tui_locator_element field to
11777 full_name.
11778 (tui_set_locator_info): Rename its parameter to fullname.
11779 (tui_set_locator_info): Rename callee to tui_set_locator_fullname.
11780 (tui_update_locator_filename): Rename to ...
11781 (tui_update_locator_fullname): ... here. Rename callee to
11782 tui_set_locator_fullname.
11783 (tui_show_frame_info): Replace symtab->filename refererence by
11784 symtab_to_fullname call.
11785 * tui/tui-stack.h (tui_update_locator_filename): Rename to ...
11786 (tui_update_locator_fullname): ... here.
11787 * tui/tui-winsource.c (tui_display_main): Rename the callee to
11788 tui_update_locator_fullname. Replace symtab->filename refererence by
11789 symtab_to_fullname call.
11790 * tui/tui.c (tui_show_source): Rename its parameter to fullname.
11791 Rename the callee to tui_update_locator_fullname.
11792 * tui/tui.h (tui_show_source): Rename its parameter to fullname.
11793
05cba821
JK
117942013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11795
11796 * ada-lang.c (user_select_syms): Replace symtab->filename refererences
11797 by symtab_to_filename_for_display calls.
11798 * breakpoint.c (print_breakpoint_location, resolve_sal_pc): Likewise.
11799 (clear_command): New variable sal_fullname, initialize it. Replace
11800 compare_filenames_for_search by filename_cmp with sal_fullname.
11801 (say_where, update_static_tracepoint): Replace symtab->filename
11802 refererences by symtab_to_filename_for_display calls.
11803 * cli/cli-cmds.c (edit_command, list_command, ambiguous_line_spec):
11804 Likewise.
11805 * dwarf2read.c: Include source.h.
11806 (fixup_go_packaging): Replace symtab->filename refererences by
11807 symtab_to_filename_for_display calls.
11808 * linespec.c (add_sal_to_sals): Rename variable filename to fullname.
11809 Replace symtab->filename refererences by symtab_to_filename_for_display
11810 calls.
11811 (create_sals_line_offset, convert_linespec_to_sals): New variable
11812 fullname, initialize it, replace symtab->filename reference by the
11813 variable.
11814 * linux-fork.c: Include source.h.
11815 (info_checkpoints_command): Replace symtab->filename refererences by
11816 symtab_to_filename_for_display calls.
11817 * macroscope.c (sal_macro_scope): Replace symtab->filename refererences
11818 by symtab_to_filename_for_display calls.
11819 * mdebugread.c: Include source.h.
11820 (psymtab_to_symtab_1): Replace symtab->filename refererences by
11821 symtab_to_filename_for_display calls.
11822 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
11823 (mi_cmd_file_list_exec_source_files): Likewise.
11824 * printcmd.c: Include source.h.
11825 (build_address_symbolic): Replace symtab->filename refererences by
11826 symtab_to_filename_for_display calls.
11827 * psymtab.c (partial_map_symtabs_matching_filename)
11828 (read_psymtabs_with_fullname): Call compare_filenames_for_search also
11829 with psymtab_to_fullname.
11830 * python/py-symtab.c (stpy_str): Replace symtab->filename refererences
11831 by symtab_to_filename_for_display calls.
11832 (stpy_get_filename): New variable filename, initialize it, use instead
11833 of symtab->filename refererences.
11834 (salpy_str): Make variable filename const char *. Replace
11835 symtab->filename refererences by symtab_to_filename_for_display calls.
11836 * skip.c: Include source.h and filenames.h.
11837 (skip_file_command): Remove const from the symtab variable. Replace
11838 symtab->filename refererences by symtab_to_fullname call.
11839 (function_name_is_marked_for_skip): New variables searched_for_fullname
11840 and fullname. Use them to search also with symtab's fullname.
11841 * source.c (find_source_lines): Replace symtab->filename refererences
11842 by symtab_to_filename_for_display calls.
11843 (print_source_lines_base): New variable filename, use it instead of
11844 symtab->filename. Replace symtab->filename refererences by
11845 symtab_to_filename_for_display calls.
11846 (line_info, forward_search_command): Replace symtab->filename
11847 refererences by symtab_to_filename_for_display calls.
11848 (reverse_search_command): Replace symtab->filename refererences by
11849 symtab_to_filename_for_display calls. New variable filename for it.
11850 * stack.c (frame_info): Likewise.
11851 * symmisc.c: Include source.h.
11852 (dump_objfile, dump_symtab_1, maintenance_print_symbols)
11853 (maintenance_info_symtabs): Replace symtab->filename refererences by
11854 symtab_to_filename_for_display calls.
11855 * symtab.c (iterate_over_some_symtabs): Call
11856 compare_filenames_for_search also with symtab_to_fullname.
11857 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Replace
11858 symtab->filename refererences by symtab_to_filename_for_display calls.
11859 (find_line_symtab): Replace symtab->filename refererences by
11860 symtab_to_filename_for_display calls.
11861 (file_matches): Replace filename_cmp by compare_filenames_for_search.
11862 (print_symbol_info): Make the last parameter const char *. New
11863 variable s_filename. Use it in the function.
11864 (symtab_symbol_info): Make the last_filename variable const char *.
11865 Replace symtab->filename refererences by symtab_to_filename_for_display
11866 calls.
11867 (rbreak_command): New variable fullname. Use it. Replace
11868 symtab->filename refererence by symtab_to_filename_for_display call.
11869 * tracepoint.c (set_traceframe_context, trace_find_line_command)
11870 (print_one_static_tracepoint_marker): Replace symtab->filename
11871 refererences by symtab_to_filename_for_display calls.
11872 * tui/tui-source.c (tui_set_source_content): New variables filename and
11873 s_filename. Replace symtab->filename refererences by this variable.
11874 Replace other symtab->filename refererences by
11875 symtab_to_filename_for_display calls.
11876
1b56eb55
JK
118772013-02-03 Eldar Gaynetdinov <hal9000ed2k@gmail.com>
11878 Jan Kratochvil <jan.kratochvil@redhat.com>
11879
11880 Add a new variable that controls a way in which filenames are
11881 displayed.
11882 * NEWS (set filename-display): New entry.
11883 * source.c (filename_display_basename, filename_display_relative)
11884 (filename_display_absolute, filename_display_kind_names)
11885 (filename_display_string, show_filename_display_string)
11886 (symtab_to_filename_for_display): New.
11887 (_initialize_source): Added initialization of 'filename-display'
11888 variable.
11889 * source.h (symtab_to_filename_for_display): Added declaration.
11890 * stack.c (print_frame): Added new variable and calling of a new
11891 function and condition with this variable. Changed third argument of
11892 calling of a function.
11893
aa079c93
JK
118942013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11895
11896 * tui/tui-data.c (init_win_info, tui_del_window, tui_free_window):
11897 Rename field reference filename to fullname.
11898 * tui/tui-data.h (struct tui_source_info): Rename field filename to
11899 fullname. New comment for it.
11900 * tui/tui-source.c (tui_set_source_content): Rename field reference
11901 filename to fullname. Initialize field by symtab_to_fullname now.
11902 * tui/tui-winsource.c (tui_update_breakpoint_info): Rename field
11903 reference filename to fullname. Use symtab_to_fullname during
11904 comparison.
11905
652a8996
JK
119062013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11907
11908 Code cleanup.
11909 * dwarf2read.c (dw2_expand_symtabs_with_filename): Rename to ...
11910 (dw2_expand_symtabs_with_fullname): ... here. Rename parameter
11911 filename to fullname. Rename variable this_name to this_fullname.
11912 Lowercase FILENAME_CMP call.
11913 (dw2_find_symbol_file): New comment for the returned string.
11914 (dwarf2_gdb_index_functions): Rename the function to
11915 dw2_expand_symtabs_with_fullname.
11916 * psymtab.c (read_psymtabs_with_filename): Rename to ...
11917 (read_psymtabs_with_fullname): ... here. Rename parameter filename to
11918 fullname.
11919 (psym_functions): Rename the function to read_psymtabs_with_fullname.
11920 * symfile.h (struct quick_symbol_functions): Rename field
11921 expand_symtabs_with_filename to expand_symtabs_with_fullname and its
11922 parameter filename to fullname. Document returned string meaning for
11923 find_symbol_file.
11924 * symtab.c (find_line_symtab): Rename the called function to
11925 expand_symtabs_with_fullname.
11926
af529f8f
JK
119272013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11928
11929 Code cleanup.
11930 * breakpoint.c (clear_command): Remove variable is_abs, unify the
11931 call of filename_cmp with compare_filenames_for_search.
11932 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove variable
11933 is_abs, unify the call of FILENAME_CMP with
11934 compare_filenames_for_search. New gdb_asserts for real_path and name.
11935 Unify the call of compare_filenames_for_search with FILENAME_CMP.
11936 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
11937 * symfile.h (struct quick_symbol_functions): Extend the comment for
11938 map_symtabs_matching_filename.
11939 * symtab.c (compare_filenames_for_search): Remove the function comment
11940 relative path requirement. Handle absolute filenames, with a comment.
11941 (iterate_over_some_symtabs): Remove variable is_abs, unify the call of
11942 FILENAME_CMP with compare_filenames_for_search. New gdb_asserts for
11943 real_path and name. Unify the call of compare_filenames_for_search
11944 with FILENAME_CMP.
11945 (iterate_over_symtabs): New gdb_assert on REAL_PATH.
11946
2f202fde
JK
119472013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11948
11949 Code cleanup.
11950 * breakpoint.c (print_breakpoint_location): Replace bp_location field
11951 source_file references by symtab field references. Remove variables
11952 sal and fullname.
11953 (momentary_breakpoint_from_master, add_location_to_breakpoint):
11954 (clear_command, say_where): Replace bp_location field source_file
11955 references by symtab field references.
11956 (bp_location_dtor): Remove the source_file reference.
11957 (update_static_tracepoint): Replace bp_location field source_file
11958 references by symtab field references.
11959 (breakpoint_free_objfile): New function.
11960 * breakpoint.h (struct bp_location): Extend the comment for line_number.
11961 Replace the field source_file by field symtab, extend its comment.
11962 (breakpoint_free_objfile): New declaration.
11963 * objfiles.c (free_objfile): Call breakpoint_free_objfile.
11964 * tui/tui-winsource.c (tui_update_breakpoint_info): Replace bp_location
11965 field source_file references by symtab field references.
11966
f5b95b50
JK
119672013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11968
11969 Replace xfullpath calls by gdb_realpath calls.
11970 * cli/cli-cmds.c (find_and_open_script): Remove xfullpath from the
11971 function comment.
11972 * dwarf2read.c (dw2_map_expand_apply): Remove parameter full_path.
11973 Remove it from the iterate_over_some_symtabs call.
11974 (dw2_map_symtabs_matching_filename): Remove parameter full_path.
11975 Remove it from the dw2_map_expand_apply calls, remove a block handling
11976 it.
11977 * psymtab.c (partial_map_expand_apply): Remove parameter full_path.
11978 Remove it from the iterate_over_some_symtabs call.
11979 (partial_map_symtabs_matching_filename): Remove parameter full_path.
11980 Remove it from the partial_map_expand_apply calls, remove a block
11981 handling it. Drop gdb_realpath call and cleanups from the real_path
11982 handling.
11983 * source.c (openp): Drop the comment part about xfullpath. Replace
11984 xfullpath calls by gdb_realpath calls.
11985 (find_and_open_source): Replace xfullpath call by gdb_realpath call.
11986 * symfile.h (struct quick_symbol_functions): Remove parameter full_path
11987 from method map_symtabs_matching_filename and its comment.
11988 * symmisc.c (maintenance_print_msymbols): Replace xfullpath call by
11989 gdb_realpath call.
11990 * symtab.c (iterate_over_some_symtabs): Remove parameter full_path,
11991 remove it also from the function comment, remove a block handling it.
11992 Drop gdb_realpath call and cleanups from the real_path handling.
11993 (iterate_over_symtabs): Drop variable full_path and its use.
11994 * symtab.h (iterate_over_some_symtabs): Remove parameter full_path.
11995 * utils.c (xfullpath): Remove.
11996 * utils.h (xfullpath): Remove.
11997
d78489bf
AT
119982013-02-01 Andreas Tobler <andreast@fgznet.ch>
11999
12000 * Makefile.in (ALL_TARGET_OBS): Add ppc64-tdep.o.
12001 (HFILES_NO_SRCDIR): Add ppc64-tdep.h.
12002 (ALLDEPFILES): Add ppc64-tdep.c.
12003 * configure.tgt (powerpc-*-linux* | powerpc64-*-linux*): Add
12004 ppc64-tdep.o to gdb_target_obs.
12005 * ppc64-tdep.h: New file.
12006 * ppc64-tdep.c: New file.
12007 (insn_d, insn_ds, insn_xfx, ppc64_desc_entry_point): Move from
12008 ppc-linux-tdep.c to here.
12009 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN)
12010 (PPC64_STANDARD_LINKAGE2_LEN): Likewise and use ARRAY_SIZE macro.
12011 (ppc64_standard_linkage1_target, ppc64_standard_linkage2_target)
12012 (ppc64_standard_linkage3_target, ppc64_skip_trampoline_code): Move
12013 from ppc-linux-tdep.c to here.
12014 (ppc64_convert_from_func_ptr_addr): Rename from
12015 ppc64_linux_convert_from_func_ptr_addr to
12016 ppc64_convert_from_func_ptr_addr and move from ppc-linux-tdep.c to
12017 here.
12018 * rs6000-tdep.c:
12019 (read_insn): Move from ppc-linux-tdep.c to here.
12020 (insns_match_pattern, insn_d_field, insn_ds_field): Move
12021 from ppc-linux-tdep.c to here and rename them with the ppc_ prefix.
12022 * ppc-linux-tdep.c: Include ppc64-tdep.h.
12023 Removed above functions.
12024 (ppc_linux_init_abi): Adjust.
12025
8db60374
AR
120262013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
12027
12028 * ada-valprint.c (ada_print_floating): Remove unused 'len'.
12029
f2e5f4ce
AR
120302013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
12031
12032 * ada-lang.c (assign_aggregate): Remove unused 'is_array_aggregate'.
12033
c1f7d745
PA
120342013-02-01 Pedro Alves <palves@redhat.com>
12035
12036 * dummy-frame.c (deprecated_pc_in_call_dummy): Delete function.
12037 * frame.h (deprecated_pc_in_call_dummy): Delete declaration.
12038
8a92335b
JK
120392013-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
12040
12041 * elfread.c (elf_symfile_read): Limit separate debug info additions to
12042 files with no separate debug info.
12043 * objfiles.c (add_separate_debug_objfile): Add gdb_assert calls.
12044 * symfile.c (read_symbols): Call find_separate_debug_file_in_section
12045 only for files with no separate debug info.
12046
8eacb197
TT
120472013-01-31 Tom Tromey <tromey@redhat.com>
12048
12049 * jit.c (jit_program_space_data): Rename from jit_inferior_data;
12050 change type.
12051 (struct jit_program_space_data): Rename from jit_inferior_data.
12052 Update comments.
12053 (get_jit_program_space_data): Rename from get_jit_inferior_data.
12054 Change return type. Attach data to program space.
12055 (jit_program_space_data_cleanup): Rename from
12056 jit_inferior_data_cleanup; change argument type.
12057 (jit_read_descriptor): Change 'inf_data' argument to 'ps_data',
12058 change type.
12059 (jit_register_code): Update.
12060 (jit_update_inferior_cache): Remove.
12061 (jit_breakpoint_deleted): Get jit data from the location's program
12062 space.
12063 (jit_breakpoint_re_set_internal): Rename 'inf_data' argument to
12064 'ps_data', change type.
12065 (jit_inferior_init, jit_breakpoint_re_set_internal)
12066 (jit_event_handler): Update.
12067 (free_objfile_data): Get data from objfile's program space.
12068 (_initialize_jit): Update.
12069
f25c0135
TT
120702013-01-31 Tom Tromey <tromey@redhat.com>
12071
12072 PR gdb/13987:
12073 * jit.c (struct jit_inferior_data) <cached_code_address,
12074 jit_breakpoint>: New fields.
12075 (jit_breakpoint_re_set_internal): Fix logging. Only create
12076 breakpoint if cached address has changed.
12077 (jit_update_inferior_cache, jit_breakpoint_deleted): New
12078 functions.
12079 (_initialize_jit): Register breakpoint deleted observer.
12080
974a734b
AR
120812013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12082
12083 * infrun.c (handle_syscall_event): Remove unused gdbarch.
12084 (save_infcall_suspend_state): Ifdef out unused inf.
12085 (restore_infcall_suspend_state): Ifdef out unused inf.
12086 * jit.c (jit_register_code): Remove unused i, b, inf_data.
12087 (jit_frame_sniffer): Remove unused inf_data.
12088
df54f8eb
AR
120892013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12090
12091 * c-exp.y (classify_inner_name): Remove unused type.
12092 * c-lang.c (c_printstr): Remove unused byte_order, i, things_printed,
12093 in_quotes, need_comma, wchar_buf, output, cleanup, iter, finished,
12094 need_escape.
12095 (c_get_string): Remove unused kind.
12096 * c-typeprint.c (c_type_print_args): Remove unused i, len, args, table2.
12097
5799c0b9
AR
120982013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12099
12100 * charset.c (intermediate_encoding): Remove unused i.
12101 * completer.c (signal_completer): Remove unused i.
12102 * continuations.c (discard_my_continuations_1): Remove unused
12103 continuation_ptr.
12104 * corelow.c (core_close): Remove unuseD name.
12105 (get_core_siginfo): Remove unused pid.
12106 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Remove unused
12107 i, cps.
12108 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove unused base_offset.
12109 (loclist_describe_location): Remove unused first.
12110 * event-top.c (command_line_handler): Remove unused got_eof.
12111 * exec.c (exec_close_1): Remove unused need_symtab_cleanup.
12112 (resize_section_table): Remove unused old_value.
12113 * gdb_bfd.c (gdb_bfd_map_section): Remove unused header.
12114 * gnu-v3-abi.c (compute_vtable_size): Remove unused addr.
12115 * i386-tdep.c (i386_process_record): Remove unused rex.
12116 * infcmd.c (get_return_value): Remove unused uiout.
12117 * jv-lang.c (type_from_class): Remove unused is_array.
12118 * jv-valprint.c (java_val_print): Remove unused i.
12119 * linux-nat.c (linux_nat_stop_lwp): Remove unused ptid.
12120 * linux-thread-db.c (thread_db_find_new_threads_2): Remove unuseD pid.
12121 * m2-typeprint.c (m2_print_type): Remove unused code.
12122 * macroexp.c (get_character_constant): Remove unused body_start.
12123 (macro_stringify): Remove unused result.
12124 * objc-lang.c (find_methods): Remove unused gdbarch.
12125 * objfiles.c (filter_overlapping_sections): Remove unused abfd1, abfd2.
12126 * regcache.c (regcache_cooked_read): Remove unused gdbarch.
12127 * stack.c (print_frame_args): Remove unused summary.
12128 * thread.c (thread_apply_command): Remove unused p.
12129 * valarith.c (value_x_unop): Remove unused mangle_ptr.
12130 * valops.c (search_struct_method): Remove unused skip.
12131 * valprint.c (generic_val_print): Remove unused byte_order.
12132 * varobj.c (varobj_update): Remove unused changed.
12133 * cli/cli-cmds.c (complete_command): Remove unused next_item.
12134 (alias_command): Remove unused c.
12135 * mi/mi-cmd-catch.c (mi_catch_load_unload): Remove unused c.
12136 * mi/mi-main.c (mi_cmd_data_write_register_values): Remove unused
12137 format.
12138 (mi_cmd_data_write_memory): Remove unused word_format.
12139 (mi_cmd_data_write_memory_bytes): Remove unused r.
12140 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Remove unused
12141 p_start, p_end.
12142 * python/python.c (_initialize_python): Remove unused cmd_name, cmd.
12143 * tui/tui-disasm.c (tui_set_disassem_content): Remove unused
12144 line_width.
12145
c656bca5
AR
121462013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12147
12148 * dwarf2-frame.c (dwarf2_compile_cfa_to_ax): Remove unused num_regs.
12149 * symtab.c (iterate_over_symtabs): Remove unused s.
12150 (find_pc_sect_symtab): Remove unused pspAce.
12151 (find_pc_sect_line): Remove unused alt_symtab.
12152 (find_pcs_for_symtab_line): Remove unused ix, previous_function.
12153 (completion_list_add_name): Remove unused newsize.
12154
7078baeb
TT
121552013-01-31 Tom Tromey <tromey@redhat.com>
12156
12157 PR c++/14998:
12158 * dwarf2read.c (read_tag_ptr_to_member_type): Handle
12159 TYPE_CODE_FUNC.
12160
c2e8b827
AR
121612013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12162
12163 * target.c (target_read_string): Remove unused origlen.
12164
0e43993a
AR
121652013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12166
12167 * auto-load.c (auto_load_expand_dir_vars): Remove unused dir_vec.
12168 * ax-gdb.c (gen_printf): Remove unused expr, i, bot, fr, flen, fmt.
12169 * ax-general.c (ax_print): Remove unused is_float.
12170 * blockframe.c (block_innermost_frame): Remove unused start, end.
12171 * break-catch-sig.c (catch_signal_command): Remove unused gdbarch.
12172
765a97ab
AR
121732013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12174
12175 * solib-svr4.c (svr4_keep_data_in_core): Remove unused lmo.
12176 (svr4_read_so_list): Remove unused lmo.
12177 * solib-target.c (solib_target_relocate_section_addresses): Remove
12178 unused flags.
12179
a99dad3d
TT
121802013-01-30 Tom Tromey <tromey@redhat.com>
12181
12182 * hppa-tdep.c (read_unwind_info): Use SECT_OFF_TEXT, not "0".
12183
3bff1ecd
TT
121842013-01-30 Tom Tromey <tromey@redhat.com>
12185
12186 * symfile.c (get_file_crc): Use bfd_calc_gnu_debuglink_crc32.
12187 * utils.c (gnu_debuglink_crc32): Remove.
12188 * utils.h (gnu_debuglink_crc32): Don't declare.
12189
7d455152
TT
121902013-01-30 Tom Tromey <tromey@redhat.com>
12191
12192 * dwarf2read.c (compute_delayed_physnames, read_call_site_scope)
12193 (read_structure_type, read_enumeration_type): Remove cast.
12194
abee88f2
TT
121952013-01-30 Tom Tromey <tromey@redhat.com>
12196
12197 * dwarf2read.c (read_namespace_type): Remove cast.
12198 (read_typedef): Likewise.
12199
8d9878a4
TT
122002013-01-29 Tom Tromey <tromey@redhat.com>
12201
12202 * dwarf2read.c (free_dwo_file): Remove assert.
12203
a543d2a9
TT
122042013-01-29 Tom Tromey <tromey@redhat.com>
12205
12206 * value.c (deprecated_set_value_modifiable): Remove.
12207 * value.h (deprecated_set_value_modifiable): Remove.
12208
bed911e5
DE
122092013-01-28 Doug Evans <dje@google.com>
12210
12211 * dwarf2loc.c (dwarf2_find_location_expression): Don't add base address
12212 to addresses from dwo files.
12213
28c64fc2
SCR
122142013-01-25 Siva Chandra Reddy <sivachandra@google.com>
12215
12216 * valops.c (find_overload_match): Remove unused argument 'lax'.
12217 * value.h: Remove unused argument 'lax' from the declaration of
12218 find_overload_match.
12219 * eval.c (value_subexp_standard): Do not pass a 'lax' argument
12220 to find_overload_match.
12221 * valarith.c (value_user_defined_cpp_op): Do not pass a 'lax'
12222 argument to find_overload_match.
12223
4d4ec4e5
TT
122242013-01-25 Tom Tromey <tromey@redhat.com>
12225
12226 * dwarf2read.c (processing_has_namespace_info): Remove.
12227 (struct dwarf2_cu) <processing_has_namespace_info>: New field.
12228 (process_die, read_func_scope, dwarf2_start_symtab)
12229 (new_symbol_full): Update.
12230
195a3f6c
TT
122312013-01-25 Tom Tromey <tromey@redhat.com>
12232
12233 * cp-namespace.c (cp_set_block_scope): Remove.
12234 * cp-support.h (cp_set_block_scope): Remove.
12235 * dbxread.c: Include block.h.
12236 (cp_set_block_scope): New function.
12237 (process_one_symbol): Update.
12238 * dwarf2read.c (read_func_scope): Use block_set_scope.
12239
8ba0730a
PA
122402013-01-25 Pedro Alves <palves@redhat.com>
12241
12242 * remote.c (add_current_inferior_and_thread): Tweak comment.
12243
12aaed36
TT
122442013-01-25 Tom Tromey <tromey@redhat.com>
12245
12246 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
12247 (cp_add_using_directive): Add 'copy_names' argument.
12248 * cp-support.h (cp_add_using_directive): Update.
12249 (struct using_direct) <import_src, import_dest, alias,
12250 declaration>: Now const.
12251 * dwarf2read.c (read_import_statement): Use obconcat.
12252 Don't copy names passed to cp_add_using_directive.
12253
7fc75ca7
TT
122542013-01-25 Tom Tromey <tromey@redhat.com>
12255
12256 * c-exp.y (qualified_name): Use TYPE_SAFE_NAME.
12257
3405876a
PA
122582013-01-25 Pedro Alves <palves@redhat.com>
12259
12260 * remote.c (stop_reply_extract_thread): New.
12261 (add_current_inferior_and_thread): New parameter 'wait_status'.
12262 Handle it.
12263 (remote_start_remote): Pass wait status to
12264 add_current_inferior_and_thread.
12265 (extended_remote_run): Update comment.
12266 (extended_remote_create_inferior_1): Pass wait status to
12267 add_current_inferior_and_thread.
12268
8954db33
AB
122692013-01-25 Andrew Burgess <aburgess@broadcom.com>
12270 Ulrich Weigand <uweigand@de.ibm.com>
12271
12272 * valarith.c (value_vector_widen): New function for replicating a
12273 scalar into a vector.
12274 (value_binop): Use value_vector_widen to widen scalar to vector
12275 rather than casting, this better matches gcc C behaviour.
12276 * valops.c (value_casst): Update logic for casting between vector
12277 types, and for casting from scalar to vector, try to match gcc C
12278 behaviour.
12279 * value.h (value_vector_widen): Declare.
12280 * opencl-lang.c (opencl_value_cast): New opencl specific casting
12281 function, handle special case for casting scalar to vector.
12282 (opencl_relop): Use opencl_value_cast.
12283 (evaluate_subexp_opencl): Use opencl_value_cast instead of
12284 value_cast, and handle BINOP_ASSIGN, UNOP_CAST, and UNOP_CAST_TYPE
12285 in order to use opencl_value_cast.
12286
843b20dc
YQ
122872013-01-25 Yao Qi <yao@codesourcery.com>
12288
12289 * event-loop.c: Include "queue.h".
12290 (gdb_event_p): New typedef.
12291 (DECLARE_QUEUE_P): Use.
12292 (DEFINE_QUEUE_P): Use.
12293 (async_queue_event): Remove.
12294 (gdb_event_xfree): New.
12295 (initialize_event_loop): New.
12296 (process_event): Use QUEUE macros.
12297 (event_queue): Remove.
12298 (gdb_wait_for_event): Caller update.
12299 (check_async_event_handlers): Likewise.
12300 (poll_timers): Likewise.
12301 * event-loop.h (initialize_event_loop): Declare.
12302 * event-loop.c (gdb_event_xfree): New.
12303 * top.c (gdb_init): Call initialize_event_loop.
12304
20ad8856
YQ
123052013-01-25 Yao Qi <yao@codesourcery.com>
12306
12307 * event-loop.c (async_queue_event): Remove one parameter
12308 'position'. Remove code handling 'position' == TAIL.
12309 (gdb_wait_for_event): Caller update.
12310 (check_async_event_handlers): Caller update.
12311 (poll_timers): Caller update.
12312 * event-loop.h (enum queue_position): Remove.
12313
3bbbe775
MK
123142013-01-25 Maxim Kuvyrkov <maxim@kugelworks.com>
12315
12316 * MAINTAINERS: Update my email.
12317
a87d9ac4
YQ
123182013-01-25 Yao Qi <yao@codesourcery.com>
12319
12320 * main.c (print_gdb_help): Remove "--epoch" from the help
12321 message.
12322
2077afdd
TD
123232013-01-24 Ulrich Weigand  <uweigand@de.ibm.com>
12324
12325 * symtab.c (skip_prologue_using_sal): Consider a file
12326 change the same as an increased line number
12327
63da4037
TD
123282013-01-24 Tiago Stürmer Daitx  <tdaitx@linux.vnet.ibm.com>
12329
30e8ee25 12330 * MAINTAINERS (Write After Approval): Add myself to the list.
63da4037 12331
45e6c716
TT
123322013-01-24 Tom Tromey <tromey@redhat.com>
12333
12334 * ada-lang.h (ada_decode_symbol): Make return type const.
12335 * ada-lang.c (ada_decode_symbol): Likewise.
12336
b1ae631a
DE
123372013-01-23 Doug Evans <dje@google.com>
12338
12339 * linespec.c (find_linespec_symbols): Make static.
12340
55a78401
SDJ
123412013-01-23 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
12342
12343 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Set correct
12344 type on float conversion for complex type.
12345
bea883fd
SCR
123462013-01-23 Siva Chandra Reddy <sivachandra@google.com>
12347
12348 Add a new class gdb.Architecture which exposes GDB's
12349 internal representation of architecture via GDB Python API.
12350 * Makefile.in: Add entries corresponding to the new file
12351 python/py-arch.c.
12352 * NEWS (Python Scripting): Add entries for the new class
12353 gdb.Architecture and the new method gdb.Frame.architecture.
12354 * python/py-arch.c: Implement gdb.Architecture class.
12355 * python/py-frame.c (frapy_arch): Implement the method
12356 gdb.Frame.architecture().
12357 (frame_object_methods): Add 'architecture' to the method table.
12358 * python/python-internal.h: Add declarations of new utility
12359 functions.
12360 * python/python.c (_initialize_python): Initialize
12361 gdb.Architecture class.
12362
796a7ff8
DE
123632013-01-23 Doug Evans <dje@google.com>
12364
12365 Work around binutils/15021.
12366 * dwarf2read.c (dwarf2_per_cu_data): Split imported_symtabs and
12367 type_unit_group out of union s. All uses updated.
12368 (read_index_from_section): Watch for index version 8.
12369 (follow_die_sig): If using .gdb_index version <= 7, record the TU as
12370 an imported symtab.
12371 (write_psymtabs_to_index): Increment version number to 8.
12372
0928e93d
PA
123732013-01-22 Pedro Alves <palves@redhat.com>
12374
12375 * annotate.c (breakpoint_changed): Skip if breakpoint is not
12376 user-visible.
12377
9c97429f
PA
123782013-01-22 Pedro Alves <palves@redhat.com>
12379
12380 * annotate.c (annotate_breakpoints_changed): Rename to ...
12381 (annotate_breakpoints_invalid): ... this. Make static.
12382 (breakpoint_changed): Adjust.
12383 (_initialize_annotate): Always install the observers. Install a
12384 "breakpoint_created" observer.
12385 * annotate.h (annotate_breakpoints_changed): Delete declaration.
12386 * breakpoint.c (set_breakpoint_condition)
12387 (breakpoint_set_commands, do_map_commands_command)
12388 (init_raw_breakpoint, clear_command, set_ignore_count)
12389 (enable_breakpoint_disp): No longer call
12390 annotate_breakpoints_changed.
12391
bd00c694
PA
123922013-01-22 Pedro Alves <palves@redhat.com>
12393
12394 * annotate.c: Include "inferior.h".
12395 (frames_invalid_emitted)
12396 (breakpoints_invalid_emitted): New globals.
12397 (async_background_execution_p): New function.
12398 (annotate_breakpoints_changed, annotate_frames_invalid): Skip
12399 emitting the annotation if it has already been emitted.
12400 (annotate_display_prompt): New function.
12401 * annotate.h (annotate_display_prompt): New declaration.
12402 * event-top.c: Include annotate.h.
12403 (display_gdb_prompt): Call annotate_display_prompt.
12404
187d10dd
PA
124052013-01-22 Pedro Alves <palves@redhat.com>
12406
12407 * annotate.c (ignore_count_changed): Delete.
12408 (annotate_breakpoints_changed): Don't clear ignore_count_changed.
12409 (annotate_ignore_count_change): Delete.
12410 (annotate_stopped): Don't emit a delayed breakpoints-changed
12411 annotation.
12412 * annotate.h (annotate_ignore_count_change): Delete.
12413 * breakpoint.c (bpstat_check_breakpoint_conditions): Don't call
12414 annotate_ignore_count_change.
12415
d84cf7eb
TT
124162013-01-22 Tom Tromey <tromey@redhat.com>
12417
12418 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>: Only
12419 require_rvalue for a register location.
12420
8f1d5693
MK
124212013-01-21 Marc Khouzam <marc.khouzam@ericsson.com>
12422
12423 * breakpoint.c (print_one_breakpoint_location): Add MI
12424 field 'thread-groups' when printing a breakpoint.
12425 (output_thread_groups): New function.
12426
aa6199c6
SCR
124272013-01-21 Siva Chandra Reddy <sivachandra@google.com>
12428
12429 * python/lib/gdb/commands/explore.py
12430 (CompoundExplorer.explore_expr): Correct the name of a method
12431 being invoked.
12432 (ExploreTypeCommand.invoke): Add a missing 'return'.
12433
d2afef13
TT
124342013-01-21 Tom Tromey <tromey@redhat.com>
12435
12436 * gdb_obstack.h (obconcat): Move declaration here, from...
12437 * symfile.h (obconcat): ... here.
12438 * gdb_obstack.c: New file.
12439 (obconcat): Move from...
12440 * symfile.c (obconcat): ... here.
12441 * Makefile.in (SFILES): Add gdb_obstack.c.
12442 (COMMON_OBS): Add gdb_obstack.o.
12443
10f0c4bb
TT
124442013-01-21 Tom Tromey <tromey@redhat.com>
12445
12446 * symfile.h (obsavestring): Don't declare.
12447 * symfile.c (obsavestring): Remove.
12448 * ada-exp.y: Use obstack_copy0, not obsavestring.
12449 * ada-lang.c: Use obstack_copy0, not obsavestring.
12450 * coffread.c: Use obstack_copy0, not obsavestring.
12451 * cp-namespace.c: Use obstack_copy0, not obsavestring.
12452 * dbxread.c: Use obstack_copy0, not obsavestring.
12453 * dwarf2read.c: Use obstack_copy0, not obsavestring.
12454 * jit.c: Use obstack_copy0, not obsavestring.
12455 * mdebugread.c: Use obstack_copy0, not obsavestring.
12456 * psymtab.c: Use obstack_copy0, not obsavestring.
12457 * stabsread.c: Use obstack_copy0, not obsavestring.
12458 * xcoffread.c: Use obstack_copy0, not obsavestring.
12459
86f62fd7
TT
124602013-01-21 Tom Tromey <tromey@redhat.com>
12461
12462 * dwarf2read.c (fixup_go_packaging): Save package name
12463 on objfile obstack.
12464 * gdbtypes.c (init_type): Don't copy name.
12465
15d034d0
TT
124662013-01-21 Tom Tromey <tromey@redhat.com>
12467
12468 * dwarf2read.c (struct partial_die_info) <name, scope>: Now
12469 const.
12470 (struct attribute) <u.str>: Now const.
12471 (struct fnfieldlist) <name>: Now const.
12472 (dw2_get_file_names_reader, init_cutu_and_read_dies): Update.
12473 (partial_die_parent_scope): Make return type const.
12474 (partial_die_full_name, add_partial_symbol): Update.
12475 (dwarf2_compute_name, dwarf2_full_name, dwarf2_physname): Make
12476 'name' const.
12477 (find_file_and_directory): Make 'name' and 'comp_dir' const.
12478 (read_file_scope, read_func_scope, dwarf2_add_field)
12479 (dwarf2_add_member_fn, read_structure_type)
12480 (process_enumeration_scope, read_array_type, read_module_type)
12481 (read_base_type, read_subrange_type): Update.
12482 (dwarf2_start_symtab): Make 'name' and 'comp_dir' const.
12483 (new_symbol_full, guess_full_die_structure_name): Update.
12484 (dwarf2_canonicalize_name): Return const type. Make 'name' const.
12485 (dwarf2_name): Return const type.
12486 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make 'comp_dir'
12487 const.
12488
748e18ae
TT
124892013-01-21 Tom Tromey <tromey@redhat.com>
12490
12491 * gdbtypes.c (init_type): Make 'name' const.
12492 * gdbtypes.h (init_type): Update.
12493
46212e0b
TT
124942013-01-21 Tom Tromey <tromey@redhat.com>
12495
12496 * buildsym.c (patch_subfile_names): Use set_last_source_file.
12497 (start_symtab): Make 'name' and 'dirname' const. Use
12498 set_last_source_file.
12499 (restart_symtab, reset_symtab_globals): Use set_last_source_file.
12500 (last_source_file): Define. Now static.
12501 (set_last_source_file, get_last_source_file): New functions.
12502 * buildsym.h (last_source_file): Don't declare.
12503 (start_symtab): Update.
12504 (set_last_source_file, get_last_source_file): Declare.
12505 * coffread.c (complete_symtab): Use set_last_source_file.
12506 (coff_end_symtab): Likewise.
12507 (coff_symtab_read): Use set_last_source_file, get_last_source_file.
12508 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Use
12509 set_last_source_file.
12510 (process_one_symbol): Use get_last_source_file.
12511 * mdebugread.c (parse_partial_symbols): Use set_last_source_file.
12512 (psymtab_to_symtab_1): Use get_last_source_file.
12513 * xcoffread.c (process_linenos): Use get_last_source_file.
12514 (complete_symtab): Use set_last_source_file.
12515 (read_xcoff_symtab): Use set_last_source_file, get_last_source_file.
12516 (scan_xcoff_symtab): Use set_last_source_file.
12517
9d2ceabe
TT
125182013-01-21 Tom Tromey <tromey@redhat.com>
12519
12520 * symtab.c (struct demangled_name_entry) <mangled>: Now const.
12521 (symbol_set_names): Remove casts. Handle field const-ness.
12522
cfc594ee
TT
125232013-01-21 Tom Tromey <tromey@redhat.com>
12524
12525 * dwarf2read.c (new_symbol_full): Remove cast.
12526 * symtab.c (symbol_set_demangled_name): Make 'name' const.
12527 * symtab.h (symbol_set_demangled_name): Update.
12528
5484b13a
TT
125292013-01-21 Tom Tromey <tromey@redhat.com>
12530
12531 * main.c (captured_main): Call bfd_init.
12532
1605ef26
TT
125332013-01-21 Tom Tromey <tromey@redhat.com>
12534
12535 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Don't set default ABI.
12536 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Set default ABI.
12537 * minsyms.c (install_minimal_symbols): Don't check for _Z symbols.
12538 * NEWS: Update.
12539
3b74cdc3
JK
125402013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
12541
12542 * symmisc.c (maintenance_print_msymbols): Check also ST_DEV.
12543
5a352474
JK
125442013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
12545
12546 Fix gdb.fortran/common-block.exp crash in PIE mode.
12547 * dwarf2read.c (new_symbol_full) <DW_TAG_common_block>: Use
12548 LOC_COMMON_BLOCK.
12549 * f-valprint.c (info_common_command_for_block): Expect
12550 LOC_COMMON_BLOCK in gdb_assert.
12551 * symtab.h (struct general_symbol_info): Update comment for the
12552 common_block member.
12553 (domain_enum): Extend comment for the COMMON_BLOCK_DOMAIN member.
12554 (enum address_class): New member LOC_COMMON_BLOCK.
12555
c60797fd
DB
125562013-01-18 David Blaikie <dblaikie@gmail.com>
12557
12558 * MAINTAINERS (Write After Approval): Add "David Blaikie".
0cae7dfb 12559
46f35228
TT
125602013-01-18 Tom Tromey <tromey@redhat.com>
12561
12562 PR c++/14999:
12563 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>:
12564 Call require_rvalue.
12565
257e7a09
YQ
125662013-01-18 Yao Qi <yao@codesourcery.com>
12567
12568 * dbxread.c (dbx_psymtab_to_symtab): Delete the declaration.
12569 (dbx_read_symtab): New declaration.
12570 (dbx_psymtab_to_symtab): Delete.
12571 (dbx_read_symtab): Rename from dbx_psymtab_to_symtab.
12572 Rename parameter PST to SELF. Exchanged two parameters.
12573 (start_psymtab): Caller update.
12574 * dwarf2read.c (dwarf2_psymtab_to_symtab): Delete the declaration.
12575 (dwarf2_read_symtab): New declaration.
12576 (dwarf2_psymtab_to_symtab): Delete.
12577 (dwarf2_read_symtab): Rename from dwarf2_psymtab_to_symtab.
12578 Rename parameter PST to SELF. Exchanged two parameters.
12579 (create_partial_symtab): Caller update.
12580 * mdebugread.c (mdebug_psymtab_to_symtab): Delete.
12581 (mdebug_read_symtab): Rename from mdebug_psymtab_to_symtab.
12582 Rename parameter PST to SELF. Exchanged two parameters.
12583 (parse_partial_symbols, new_psymtab): Caller update.
12584 * psympriv.h (struct partial_symtab) <read_symtab>: Exchange
12585 two parameters.
12586 * psymtab.c (psymtab_to_symtab): Caller update.
12587 * xcoffread.c (xcoff_psymtab_to_symtab): Delete.
12588 (xcoff_read_symtab): Rename from xcoff_psymtab_to_symtab.
12589 Rename parameter PST to SELF. Exchanged two parameters.
12590 (xcoff_start_psymtab): Caller update.
12591
0de5618e
YQ
125922013-01-18 Yao Qi <yao@codesourcery.com>
12593
12594 * infrun.c (proceed): Rename local variable 'oneproc' to
12595 'force_step'.
12596
5c04624b
DE
125972013-01-17 Doug Evans <dje@google.com>
12598
848e3e78
DE
12599 * dwarf2read.c (dw2_build_type_unit_groups_reader): Delete.
12600 (dw2_build_type_unit_groups): Delete. All uses updated.
12601
5c04624b
DE
12602 * symtab.h (struct symbol_search): Add comment.
12603
d84fca2c
JK
126042013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
12605
12606 * symtab.c (compare_filenames_for_search): New comment for
12607 HAS_DRIVE_SPEC.
12608
6108433d
TT
126092013-01-17 Tom Tromey <tromey@redhat.com>
12610
12611 * cp-abi.c (cp_abi_completer): Fix typo in assignment.
12612
c89ffd86
JK
126132013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
12614
12615 * symtab.c (iterate_over_some_symtabs): New variable cleanups,
12616 initialize it by existing make_cleanup. Call new do_cleanups.
12617
db2b2972
TT
126182013-01-17 Tom Tromey <tromey@redhat.com>
12619
12620 * cp-abi.c (cp_abi_completer): New function.
12621 (_initialize_cp_abi): Set completer for "set cp-abi".
12622
be7d37a2
TT
126232013-01-17 Tom Tromey <tromey@redhat.com>
12624
12625 * mem-break.c: Remove obsolete comment.
12626 * bfin-tdep.c (bfin_breakpoint_from_pc): Fix comment.
12627
c9fb1240
SD
126282012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
12629
12630 * jit.c (jit_reader_load_command): Interpret the jit reader name
12631 as an absolute path if it begins with a forward slash.
12632
db334a01
SD
126332012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
12634
12635 PR gdb/14550
12636
12637 * jit.c (finalize_symtab): Ensure that only the global block has a
12638 NULL superblock.
12639
7d928dac
PA
126402013-01-17 Pedro Alves <palves@redhat.com>
12641
12642 * acinclude.m4: Include ../config/plugins.m4,
12643 ../config/largefile.m4 and ../config/lead-dot.m4. Add comments.
12644 * Makefile.in (aclocal_m4_deps): Update.
12645 * aclocal.m4: Renegerate.
12646
fb8cf7c5
DE
126472013-01-16 Doug Evans <dje@google.com>
12648
12649 * contrib/cc-with-tweaks.sh: Add references to Fission docs.
12650
ab04a2af
TT
126512013-01-16 Pedro Alves <palves@redhat.com>
12652 Tom Tromey <tromey@redhat.com>
12653
12654 PR cli/7221:
12655 * NEWS: Add "catch signal".
12656 * breakpoint.c (base_breakpoint_ops): No longer static.
12657 (bpstat_explains_signal): New function.
12658 (init_catchpoint): No longer static.
12659 (base_breakpoint_explains_signal): New function.
12660 (base_breakpoint_ops): Initialize new field.
12661 * breakpoint.h (enum bpstat_signal_value): New.
12662 (struct breakpoint_ops) <explains_signal>: New field.
12663 (bpstat_explains_signal): Remove macro, declare as function.
12664 (base_breakpoint_ops, init_catchpoint): Declare.
12665 * break-catch-sig.c: New file.
12666 * inferior.h (signal_catch_update): Declare.
12667 * infrun.c (signal_catch): New global.
12668 (handle_syscall_event): Update for change to
12669 bpstat_explains_signal.
12670 (handle_inferior_event): Likewise. Always handle random signals
12671 via bpstats.
12672 (signal_cache_update): Check signal_catch.
12673 (signal_catch_update): New function.
12674 (_initialize_infrun): Initialize signal_catch.
12675 * Makefile.in (SFILES): Add break-catch-sig.c.
12676 (COMMON_OBS): Add break-catch-sig.o.
12677
8ac3646f
TT
126782013-01-16 Tom Tromey <tromey@redhat.com>
12679
12680 * breakpoint.c (print_one_catch_fork, print_one_catch_vfork)
12681 (print_one_catch_solib, print_one_catch_syscall)
12682 (print_one_catch_exec, print_one_exception_catchpoint): Emit
12683 "catch-type".
12684
5a18e302
YQ
126852013-01-16 Yao Qi <yao@codesourcery.com>
12686
12687 * printcmd.c (current_display_number): Make it static.
12688
3f01d0d0
YQ
126892013-01-16 Yao Qi <yao@codesourcery.com>
12690
12691 * infcmd.c (step_once): Don't check '!single_inst' as it was
12692 checked before.
12693
1ed59174
JK
126942013-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
12695
12696 * dwarf2read.c (psymtab_include_file_name): Extend the function comment.
12697
44478ab3
TT
126982013-01-14 Tom Tromey <tromey@redhat.com>
12699
12700 * cli/cli-decode.c (add_setshow_string_noescape_cmd): Return the
12701 set command.
12702 * command.h (add_setshow_string_noescape_cmd): Update.
12703 * corefile.c (set_gnutarget_command): Remove trailing whitespace.
12704 (complete_set_gnutarget): New function.
12705 (_initialize_core): Set the "set gnutarget" completer.
12706
06d66ee9
TT
127072013-01-14 Tom Tromey <tromey@redhat.com>
12708
12709 PR symtab/14442:
12710 * c-typeprint.c (cp_type_print_method_args): Handle 'restrict'.
12711 (c_type_print_modifier): Likewise.
12712 * dwarf2read.c (read_tag_restrict_type): New function.
12713 (read_type_die_1): Handle DW_TAG_restrict_type.
12714 * gdbtypes.c (make_restrict_type): New function.
12715 (recursive_dump_type): Handle TYPE_RESTRICT.
12716 * gdbtypes.h (enum type_flag_values): Renumber.
12717 (enum type_instance_flag_value): Add
12718 TYPE_INSTANCE_FLAG_RESTRICT.
12719 (TYPE_RESTRICT): New macro.
12720 (make_restrict_type): Declare.
12721
c9bf0622
TT
127222013-01-14 Tom Tromey <tromey@redhat.com>
12723
12724 PR symtab/14931:
12725 * psymtab.c (struct psymtab_state): New.
12726 (discard_psymtabs_upto, make_cleanup_discard_psymtabs): New
12727 functions.
12728 * psympriv.h (make_cleanup_discard_psymtabs): Declare.
12729 * dwarf2read.c (dwarf2_build_psymtabs): Catch exceptions.
12730
44d594fd
PA
127312013-01-14 Richard Sharman <richard_sharman@mitel.com>
12732 Pedro Alves <palves@redhat.com>
12733
12734 PR remote/14786
12735
12736 * remote.c (remote_threads_info): Make a copy of the reply from
12737 qfThreadInfo and use that instead of rs->buf.
12738
442e4d9c
YQ
127392013-01-14 Yao Qi <yao@codesourcery.com>
12740
12741 * dbxread.c (dbx_psymtab_to_symtab_1): Don't check PST is NULL.
12742 (dbx_psymtab_to_symtab): Likewise.
12743 * dwarf2read.c (dwarf2_psymtab_to_symtab): Likewise.
12744 * mdebugread.c (mdebug_psymtab_to_symtab): Likewise.
12745 * xcoffread.c (xcoff_psymtab_to_symtab_1): Likewise.
12746
5b12a61c
JK
127472013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
12748
12749 * parse.c (parse_exp_in_context): New variable inner_chain. Call
12750 make_cleanup_restore_current_language. Call set_language. Move
12751 OLD_CHAIN and INNER_CHAIN cleanups.
12752 * utils.c (do_restore_current_language)
12753 (make_cleanup_restore_current_language): New functions.
12754 * utils.h (make_cleanup_restore_current_language): New declaration.
12755
f0a4b570
JK
127562013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
12757
12758 * source.c (symtab_to_fullname): Apply rewrite_source_path also for
12759 non-existing files.
12760
57b3c00c
JK
12761 * source.c (symtab_to_fullname): Do not prepend DIRNAME for
12762 non-existing files if FILENAME is already absolute.
12763
daefa854
JK
127642013-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
12765
12766 * macrocmd.c (macro_inform_no_debuginfo): Use puts_filtered instead of
12767 fputs_filtered. Append trailing newline.
12768
ca9c6ee2
YQ
127692013-01-11 Yao Qi <yao@codesourcery.com>
12770 Stan Shebs <stan@codesourcery.com>
12771
12772 * psymtab.c (init_psymbol_list): Clarify the comment.
12773
f28045c2
YQ
127742013-01-11 Yao Qi <yao@codesourcery.com>
12775
12776 * breakpoint.c (print_one_breakpoint_location): Remove dead code.
12777 (update_dprintf_command_list): Assert that 'printf_line' is
12778 non-null. Remove condition check.
12779
da5132d3
JK
127802013-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
12781
12782 Code cleanup.
12783 * psymtab.c (psymtab_to_fullname, psymtab_to_fullname): Make the return
12784 type const char *.
12785 * tui/tui-source.c (tui_source_is_displayed): Make the parameter fname
12786 const char *.
12787 * tui/tui-source.h (tui_source_is_displayed): Likewise.
12788
843e694d
AG
127892013-01-09 Anthony Green <green@moxielogic.com>
12790
12791 * cp-abi.c (cplus_print_vtable): Don't return value from void
12792 function.
12793 * ada-lang.c (re_set_catch_assert): Ditto.
12794
da51c347
DE
127952013-01-09 Doug Evans <dje@google.com>
12796
12797 * symfile.h (quick_symbol_functions): Delete member
12798 pre_expand_symtabs_matching. All uses removed.
12799 * dwarf2read.c (dw2_lookup_symbol): Implement.
12800 (dw2_do_expand_symtabs_matching): Delete.
12801 (dw2_pre_expand_symtabs_matching): Delete.
12802 (struct dw2_symtab_iterator): New type.
12803 (dw2_symtab_iter_init, dw2_symtab_iter_next): New functions.
12804 (dw2_expand_symtabs_for_function): Rewrite.
12805 (dwarf2_gdb_index_functions): Update.
12806 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Delete.
12807 (psym_functions): Update.
12808
b2259038
TT
128092013-01-09 Tom Tromey <tromey@redhat.com>
12810
12811 * config/pa/hpux.mh (NATDEPFILES): Remove somread.o.
12812 * configure: Rebuild.
12813 * configure.ac: Add somread.o to the build if BFD has SOM
12814 support.
12815 * somread.c: Include som/aout.h, not syms.h.
12816 (som_symtab_read): Use som_external_symbol_dictionary_record.
12817 Unpack records manually.
12818 (_initialize_somread): Declare.
12819
bdad4180
MF
128202012-01-08 Mike Frysinger <vapier@gentoo.org>
12821
12822 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx) [__x86_64__]:
12823 Cast return_address to 64bits.
12824
03cdf680
HZ
128252013-01-08 Hui Zhu <hui_zhu@mentor.com>
12826
12827 * printcmd.c: Remove define of function output_command.
12828 * tracepoint.c: Remove extern of function output_command.
12829 * valprint.h: (output_command): New extern.
12830
8a808554
TT
128312013-01-07 Tom Tromey <tromey@redhat.com>
12832
12833 * objc-lang.c (objc_emit_char, objc_printchar, objc_printstr):
12834 Remove.
12835 (objc_language_defn): Use c_printchar, c_printstr,
12836 c_emit_char.
12837
e93a8774
TT
128382013-01-07 Tom Tromey <tromey@redhat.com>
12839
12840 PR cli/7719:
12841 * NEWS: Update.
12842 * ada-valprint.c (printstr, print_field_values): Remove
12843 "inspect_it" code.
12844 * cp-valprint.c (cp_print_value_fields): Remove "inspect_it"
12845 code.
12846 * jv-valprint.c (java_print_value_fields): Remove "inspect_it"
12847 code.
12848 * m2-lang.c (m2_printstr): Remove "inspect_it" code.
12849 * main.c (captured_main): Remove "epoch" argument.
12850 * objc-lang.c (objc_printstr): Remove "inspect_it" code.
12851 * p-lang.c (pascal_printstr): Remove "inspect_it" code.
12852 * p-valprint.c (pascal_object_print_value_fields): Remove
12853 "inspect_it" code.
12854 * printcmd.c (print_command_1): Remove 'inspect' argument.
12855 (print_command, call_command): Update.
12856 (inspect_command): Remove.
12857 (_initialize_printcmd): Make "inspect" an alias for "print".
12858 * top.c (epoch_interface): Remove.
12859 * top.h (epoch_interface): Remove.
12860 * valprint.c (user_print_options): Update.
12861 (print_converted_chars_to_obstack): Remove "inspect_it" code.
12862 * valprint.h (struct value_print_options) <inspect_it>: Remove
12863 field.
12864
128652013-01-04 Tom Tromey <tromey@redhat.com>
12866
12867 * valprint.h (read_string): Add 'extern'.
12868
b967eb24
JB
128692013-01-07 Joel Brobecker <brobecker@adacore.com>
12870
12871 * darwin-nat.c: Fix typo in TASK_DYLD_INFO_COUNT macro test
12872 used to decide whether to define darwin_read_dyld_info or not.
12873
78a8b30e
PM
128742013-01-03 Pierre Muller <muller@sourceware.org>
12875
12876 * main.c (relocate_gdb_directory): Avoid calling stat function
12877 if DIR is empty.
12878
50da2f25
YQ
128792013-01-03 Yao Qi <yao@codesourcery.com>
12880
12881 * psymtab.c (fixup_psymbol_section): Update declaration.
12882 (fixup_psymbol_section): Remove code returning value.
12883
e7e8980f
YQ
128842013-01-03 Yao Qi <yao@codesourcery.com>
12885
12886 * symtab.h: Remove some out of date comments.
12887 (enum exception_event_kind): Move it ...
12888 * breakpoint.c: ... here.
12889
569283d4
MF
128902013-01-02 Iain Sandoe <developer@sandoe-acoustics.co.uk>
12891
9f9d9a96 12892 PR gdb/14405
569283d4
MF
12893 * darwin-nat.c (darwin_read_dyld_info): Only build if
12894 TASK_DYLD_INFO_COUNT is defined.
12895 (darwin_xfer_partial): Call darwin_read_dyld_info only if
12896 TASK_DYLD_INFO_COUNT is defined.
12897
2e36fbea
TT
128982013-01-02 Tom Tromey <tromey@redhat.com>
12899
12900 * symfile.h (struct ecoff_debug_hack): Remove.
12901 * objfiles.c: Don't include mdebugread.h.
12902
4f05add4
TT
129032013-01-02 Tom Tromey <tromey@redhat.com>
12904
12905 * config/i386/darwin.mh (NATDEPFILES): Remove machoread.o.
12906 * configure.ac: Check for Mach-O support in BFD. Update
12907 CONFIG_OBS.
12908 * configure: Rebuild.
12909
def63ff0
TT
129102013-01-02 Tom Tromey <tromey@redhat.com>
12911
12912 * acinclude.m4 (GDB_AC_CHECK_BFD): New macro.
12913 * configure.ac: Use GDB_AC_CHECK_BFD.
12914 * configure: Rebuild.
12915
60c5dd93
MK
129162013-01-01 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
12917
12918 * MAINTAINERS: Update my email.
12919
6e58437e
JB
129202013-01-01 Joel Brobecker <brobecker@adacore.com>
12921
12922 * cli/cli-script.h (make_cleanup_free_command_lines): Make extern.
12923
627fe805
JB
129242013-01-01 Joel Brobecker <brobecker@adacore.com>
12925
12926 * rs6000-nat.c (bss_data_overlap): New function.
12927 (vmap_symtab): Use it to adjust the .bss section's offset.
12928
28e7fd62
JB
129292013-01-01 Joel Brobecker <brobecker@adacore.com>
12930
12931 Update year range in copyright notice of all files.
12932
e93a8774 129332013-01-01, 13 Joel Brobecker <brobecker@adacore.com>
b9786c74
JB
12934
12935 * top.c (print_gdb_version): Update copyright year.
12936
72b20e9c 12937For older changes see ChangeLog-2012.
c906108c
SS
12938\f
12939Local Variables:
12940mode: change-log
12941left-margin: 8
12942fill-column: 74
12943version-control: never
57da7796 12944coding: utf-8
c906108c 12945End:
This page took 3.246739 seconds and 4 git commands to generate.