PowerPC64 linking of --just-symbols objects (klibc)
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
2ea126fa
JB
12013-12-03 Pedro Alves <palves@redhat.com>
2 Joel Brobecker <brobecker@adacore.com>
3
4 * exceptions.h (enum_errors) <UNDEFINED_COMMAND_ERROR>: New enum.
5 * mi/mi-parse.c (mi_parse): Throw UNDEFINED_COMMAND_ERROR instead
6 of a regular error when the GDB/MI command does not exist.
7 * mi/mi-main.c (mi_cmd_list_features): Add
8 "undefined-command-error-code".
9 (mi_print_exception): Print an "undefined-command"
10 error code if EXCEPTION.ERROR is UNDEFINED_COMMAND_ERROR.
11 * NEWS: Add entry documenting the new "code" variable in
12 "^error" result records.
13
6b7cbff1
JB
142013-12-03 Joel Brobecker <brobecker@adacore.com>
15
16 * mi/mi-cmds.h (mi_cmd_info_gdb_mi_command): Declare.
17 * mi/mi-cmd-info.c (mi_cmd_info_gdb_mi_command): New function.
18 * mi/mi-cmds.c (mi_cmds): Add -info-gdb-mi-command command.
19 * mi/mi-main.c (mi_cmd_list_features): Add "info-gdb-mi-command"
20 field to output of "-list-features".
21
22 * NEWS: Add entry for new -info-gdb-mi-command.
23
04affae3
JK
242013-12-02 Doug Evans <dje@google.com>
25 Jan Kratochvil <jan.kratochvil@redhat.com>
26
27 * objfiles.c (allocate_objfile): Save original_name as an absolute
28 path.
29 * objfiles.h (struct objfile): Expand comment on original_name.
30 * source.c (openp): Call gdb_abspath.
31 * utils.c (gdb_abspath): New function.
32 * utils.h (gdb_abspath): Declare.
33
aee4bf85
PA
342013-12-02 Pedro Alves <palves@redhat.com>
35
36 * dcache.c (dcache_read_line): Use target_read_raw_memory.
37 * target.c (target_read_raw_memory): New function.
38 (target_read_stack, target_write_memory, target_write_raw_memory):
39 Update comment.
40 (target_read_code): Add comment.
41 * target.h (target_read_raw_memory): Declare.
42
840207d8
PA
432013-12-02 Pedro Alves <palves@redhat.com>
44
45 * ctf.c (ctf_start): Use S_IRGRP, S_IXGRP, S_IXOTH
46 unconditionally.
47
0fdf84ca
PA
482013-12-02 Pedro Alves <pedro@codesourcery.com>
49 Maciej W. Rozycki <macro@codesourcery.com>
50
51 * remote.c (putpkt_for_catch_errors): Remove function.
52 (remote_kill): Handle TARGET_CLOSE_ERROR from the kill packet
53 gracefully.
54
62972e0b
YQ
552013-12-02 Pedro Alves <palves@redhat.com>
56
57 PR remote/15974
58 * remote-notif.c (handle_notification): Return early if no
59 notification is found.
60
f9b0da3d
JB
612013-12-02 Joel Brobecker <brobecker@adacore.com>
62
63 * common/filestuff.c (fdwalk): Add "defined(RLIMIT_NOFILE)"
64 preprocessor check.
65
2dd4d422
JB
662013-12-02 Joel Brobecker <brobecker@adacore.com>
67
68 * Makefile.in (HFILES_NO_SRCDIR): Remove "common/gdb_dirent.h".
69
e72eff80
JB
702013-12-02 Joel Brobecker <brobecker@adacore.com>
71
72 * Makefile.in (HFILES_NO_SRCDIR): Remove "common/gdb_stat.h".
73 * ctf.c (ctf_start): Remove obsolete comment.
74
844ad005
JB
752013-12-02 Joel Brobecker <brobecker@adacore.com>
76
77 * Makefile.in (HFILES_NO_SRCDIR): Remove "common/gdb_string.h".
78
5b2bf947
DE
792013-11-30 Doug Evans <xdje42@gmail.com>
80
81 * auto-load.h (script_language): New members name, auto_load_enabled.
82 Add missing comments on struct members.
83 (auto_load_objfile_script): Delete.
84 * auto-load.c: #include "cli/cli-cmds.h".
85 (auto_load_gdb_scripts_enabled): New function.
86 (script_language_gdb): Update, add new members.
87 (source_gdb_script_for_objfile): Simplify, auto-load safe-checking
88 and call to maybe_add_script moved to caller.
89 (auto_load_objfile_script_1): Auto-load safe-checking and
90 call to maybe_add_script moved here.
91 (auto_load_objfile_script): Make static. Early exit if support for
92 scripting language hasn't been compiled in, or auto-loading has been
93 disabled.
94 (source_section_scripts): Argument "source_name" renamed to
95 "section_name". All uses updated. Replace uses of AUTO_SECTION_NAME
96 with section_name. Skip loading script if support for scripting
97 language hasn't been compiled in, or auto-loading has been disabled.
98 Call language->source_script_for_objfile instead of calling
99 source_python_script_for_objfile directly.
100 (load_auto_scripts_for_objfile): Update.
101 * python/py-auto-load.c: Delete #include "cli/cli-cmds.h".
102 (gdbpy_load_auto_script_for_objfile): Delete.
103 (auto_load_python_scripts_enabled): New function.
104 (script_language_python): Update, add new members.
105 (gdbpy_script_language_defn): New function.
106 * python/python.h (gdbpy_load_auto_scripts_for_objfile): Delete.
107 (gdbpy_script_language_defn): Declare.
108
109 * auto-load.c (AUTO_SECTION_NAME): Moved here and renamed from
110 py-auto-load.c, GDBPY_AUTO_SECTION_NAME.
111 (source_section_scripts): Moved here from py-auto-load.c.
112 (auto_load_section_scripts): Ditto.
113 * python/py-auto-load.c (GDBPY_AUTO_SECTION_NAME): Moved to
114 auto-load.c, renamed AUTO_SECTION_NAME.
115 (source_section_scripts, auto_load_section_scripts): Moved to
116 auto-load.c.
117
d9c43928
YQ
1182013-11-30 Yao Qi <yao@codesourcery.com>
119
120 * remote.c (getpkt_or_notif_sane_1): Fix typo "checksm".
121
e7b12392
SDJ
1222013-11-29 Sergio Durigan Junior <sergiodj@redhat.com>
123
124 * gdbarch.sh: Remove include of "gdb_string.h", replace by
125 <string.h>.
126
256458bc
DE
1272013-11-29 Doug Evans <xdje42@gmail.com>
128
7b2d3abf
DE
129 * python/py-auto-load.c (source_section_scripts): Move comment to
130 more relevant location.
131
256458bc
DE
132 Whitespace cleanup.
133 * python/py-breakpoint.c: Remove trailing whitespace.
134 * python/py-cmd.c: Ditto.
135 * python/py-evts.c: Ditto.
136 * python/py-finishbreakpoint.c: Ditto.
137 * python/py-frame.c: Ditto.
138 * python/py-function.c: Ditto.
139 * python/py-inferior.c: Ditto.
140 * python/py-infthread.c: Ditto.
141 * python/py-param.c: Ditto.
142 * python/py-prettyprint.c: Ditto.
143 * python/py-symbol.c: Ditto.
144 * python/py-type.c: Ditto.
145 * python/py-utils.c: Ditto.
146 * python/py-value.c: Ditto.
147 * python/python-internal.h: Ditto.
148 * python/python.c: Ditto.
149
20e1ca3b
PA
1502013-11-29 Pedro Alves <palves@redhat.com>
151
152 * unwind_stop_reasons.def (UNWIND_NULL_ID): Update comment.
153
8b4f3082
PA
1542013-11-29 Pedro Alves <palves@redhat.com>
155
156 * breakpoint.c (build_target_condition_list): Release previous
157 conditions.
158 (build_target_command_list): Release previous commands.
159 (bp_location_dtor): Release target conditions and commands.
160 * remote.c (remote_add_target_side_condition): Don't release
161 conditions.
162 (remote_add_target_side_commands): Don't release commands.
163
9f713294
YQ
1642013-11-29 Yao Qi <yao@codesourcery.com>
165 Pedro Alves <palves@redhat.com>
166
167 * dcache.c (dcache_read_line): Use current_target.beneath
168 instead of &current_target.
169 * target.c (memory_xfer_partial_1): Factor code out to ...
170 (raw_memory_xfer_partial): ... it. New function.
171 (target_xfer_partial): Call raw_memory_xfer_partial if OBJECT
172 is TARGET_OBJECT_RAW_MEMORY.
173
4cb0213d
DE
1742013-11-28 Doug Evans <xdje42@gmail.com>
175
176 * breakpoint.h (gdbpy_breakpoint_object): Renamed from
177 breakpoint_object. All uses updated.
178 * python/python-internal.h (gdbpy_breakpoint_object): Renamed from
179 breakpoint_object. All uses updated.
180 * python.c (*): All uses of breakpoint_object updated.
181 * python.h (*): All uses of breakpoint_object updated.
182 * python/py-breakpoint.c (*): All uses of breakpoint_object updated.
183 * python/py-finishbreakpoint.c (*): Ditto.
184
d344e670
DE
1852013-11-28 Doug Evans <xdje42@gmail.com>
186
d729aae0 187 * configure.ac: Add comments delineating libpython and libmcheck.
d344e670
DE
188 * configure: Regenerate.
189
eebc056c
AB
1902013-11-28 Andrew Burgess <aburgess@broadcom.com>
191 Pedro Alves <palves@redhat.com>
192
193 * valprint.c (value_check_printable): If the value is entirely
194 unavailable, print a single "<unavailable>" instead of printing
195 all subfields.
196
a7300869
PA
1972013-11-28 Pedro Alves <palves@redhat.com>
198
199 * frame.c (get_prev_frame_1) <stop_reason != UNWIND_NO_REASON>:
200 Add "set debug frame" output.
201 (frame_stop_reason_symbol_string): New function.
202
50fd528a
PA
2032013-11-28 Pedro Alves <palves@redhat.com>
204
205 * frame-unwind.c (default_frame_unwind_stop_reason): Return
206 UNWIND_OUTERMOST if the frame's ID is outer_frame_id.
207 * frame.c (get_prev_frame_1): Remove outer_frame_id check.
208
5de51581
PA
2092013-11-28 Pedro Alves <palves@redhat.com>
210
211 * frame.c (get_prev_frame_1): If the frame id is outer_frame_id,
212 set the unwind stop reason to UNWIND_OUTERMOST, not
213 UNWIND_NULL_ID. Remove explicit check for sentinel frame.
214
739cb10c
PA
2152013-11-28 Pedro Alves <palves@redhat.com>
216
217 * frame.c (frame_unwind_register): Say the register was "not
218 saved" instead of "optimized out".
219
514c0aa6 2202013-11-27 Steffen Sledz <sledz@dresearch-fe.de>
92a021de 221
514c0aa6 222 PR 16152
92a021de 223 * configure: Rebuild.
514c0aa6 224 * configure.ac: Tighten cygwin detection check.
92a021de 225
908fa2aa
PA
2262013-11-27 Pedro Alves <palves@redhat.com>
227
228 * frame-unwind.c (frame_unwind_got_optimized): Use the type of the
229 register in the previous frame's arch.
230
6bd273ae
PA
2312013-11-27 Pedro Alves <palves@redhat.com>
232
233 * frame-unwind.c (frame_unwind_got_optimized): Return
234 an lval_register value instead of a not_lval value.
235
f6c01fc5
AB
2362013-11-27 Andrew Burgess <aburgess@broadcom.com>
237
238 * frame.c: Include "valprint.h".
239 (frame_unwind_register_value): Use value_optimized_out.
240 * value.c (value_fetch_lazy): Likewise.
241
4f14910f
AB
2422013-11-26 Andrew Burgess <aburgess@broadcom.com>
243
244 * value.c (allocate_optimized_out_value): Mark value as non-lazy.
245
15859968
TT
2462013-11-26 Tom Tromey <tromey@redhat.com>
247
248 * dwarf2-frame.c (dwarf2_frame_cache): Revert patch from
249 2013-11-22.
250
244ec0da
WT
2512013-11-26 Walfred Tedeschi <walfred.tedeschi@intel.com>
252
253 * i386-xstate.h (I386_XSTATE_MPX): New Macro.
254 (I386_XSTATE_MPX_MASK): Makes use of I386_XSTATE_MPX.
255 (HAS_MPX): New macro.
256 (HAS_AVX): New macro.
257 (I386_XSTATE_SIZE): Uses HAS_MPX and HAS_AVX.
258
f7e3ecae
KS
2592013-11-25 Keith Seitz <keiths@redhat.com>
260
261 PR c++/14819
262 * c-exp.y (classify_inner_name): If no matching symbol was
263 found, try looking up the token as a base class.
264 Likewise if a constructor was found.
265 * cp-namespace.c (find_type_baseclass_by_name): New function.
266 * cp-support.h (find_type_baseclass_by_name): Declare.
267 * valops.c (value_struct_elt_for_reference): If we get
268 a non-static field, try to get a value based on the
269 current instance, if any.
270
283f7163
YQ
2712013-11-24 Yao Qi <yao@codesourcery.com>
272
273 * disasm.c (dis_asm_read_memory): Call target_read_code
274 instead of target_read_memory.
275
29453a14
YQ
2762013-11-24 Yao Qi <yao@codesourcery.com>
277
278 * NEWS: Add note on new "set code-cache" option.
279 * target-dcache.c (code_cache_enabled_1): New variable.
280 (code_cache_enabled): New variable.
281 (show_code_cache, set_code_cache): New function.
282 (code_cache_enabled_p): New function.
283 (_initialize_target_dcache): Register command.
284 * target-dcache.h (code_cache_enabled_p): Declare.
285 * target.c (memory_xfer_partial_1):Handle
286 TARGET_OBJECT_CODE_MEMORY and code_cache_enabled.
287 (target_read_code): New function.
288 * target.h (enum target_object) <TARGET_OBJECT_CODE_MEMORY>:
289 New.
290 (target_read_code): Declare.
291
0fb14d8f
YQ
2922013-11-24 Yao Qi <yao@codesourcery.com>
293
294 * target-dcache.c (stack_cache_enabled_p_1): Rename to ...
295 (stack_cache_enabled_1): ... this. New variable.
296 (stack_cache_enabled_p): Rename to ...
297 (stack_cache_enabled): ... this. New variable.
298 (set_stack_cache_enabled_p): Rename to ...
299 (set_stack_cache): ... this. Update caller.
300 (show_stack_cache_enabled_p): Rename to ...
301 (show_stack_cache): ... this. Update caller.
302 (stack_cache_enabled): Rename to ...
303 (stack_cache_enabled_p): ... this. Update caller.
304 (_initialize_target_dcache): Replace "data cache" with
305 "target memory cache".
306 * target-dcache.h (stack_cache_enabled): Remove declaration.
307 (stack_cache_enabled_p): Add declaration.
308
a12361b9
DE
3092013-11-23 Doug Evans <xdje42@gmail.com>
310
311 * python/py-frame.c (gdbpy_initialize_frames): Remove FIRST_ERROR,
312 superfluous.
313
1e1d6920
DE
3142013-11-23 Doug Evans <xdje42@gmail.com>
315
316 * python/py-frame.c (frapy_block): Fix error message text.
317
1e9c71b8
DE
3182013-11-23 Doug Evans <xdje42@gmail.com>
319
320 * cli/cli-script.c (multi_line_command_p): New function.
321 (recurse_read_control_structure, read_command_lines_1): Call it.
322 (execute_control_command): Consistently have a blank line between
323 each case.
324
f380848e
SA
3252013-11-22 Sterling Augustine <saugustine@google.com>
326
38e1f2a7 327 PR gdb/16196:
f380848e
SA
328 * valprint.c (read_string): Set new variable fetchlen based on
329 fetchlimit and size. Use it in call to partial_memory_read.
330 Update comment.
331
da2b2fdf
TT
3322013-11-22 Tom Tromey <tromey@redhat.com>
333
334 PR backtrace/16155:
335 * dwarf2-frame.c (dwarf2_frame_cache): Set undefined_retaddr if
336 the return address column is unspecified.
337
6eeee81c
TT
3382013-11-22 Tom Tromey <tromey@redhat.com>
339 Pedro Alves <palves@redhat.com>
340
341 PR backtrace/16155
342 * value.c (value_fetch_lazy): Internal error if
343 get_frame_register_value returns the same register.
344
194cca41
PA
3452013-11-22 Pedro Alves <palves@redhat.com>
346 Tom Tromey <tromey@redhat.com>
347
348 * frame.c (frame_stash_add): Now returns whether a frame with the
349 same ID was already known.
350 (compute_frame_id): New function, factored out from get_frame_id.
351 (get_frame_id): No longer lazilly compute the frame id here.
352 (get_prev_frame_if_no_cycle): New function. Detects wider stack
353 cycles.
354 (get_prev_frame_1): Use it instead of get_prev_frame_raw directly,
355 and checking for stack cycles here.
356
33f8fe58
PA
3572013-11-22 Pedro Alves <palves@redhat.com>
358
359 PR 16155
360 * frame.c (get_prev_frame_1): Do the UNWIND_SAME_ID check between
361 this frame and the new previous frame, not between this frame and
362 the next frame.
363
1ec56e88
PA
3642013-11-22 Pedro Alves <palves@redhat.com>
365
366 PR 16155
367 * dwarf2-frame.c (struct dwarf2_frame_cache)
368 <checked_tailcall_bottom, entry_cfa_sp_offset,
369 entry_cfa_sp_offset_p>: New fields.
370 (dwarf2_frame_cache): Adjust to use the new cache fields instead
371 of locals. Don't call dwarf2_tailcall_sniffer_first here.
372 (dwarf2_frame_prev_register): Call it here, but only once.
373
ca092b61
DE
3742013-11-21 Doug Evans <xdje42@gmail.com>
375
376 * gdbtypes.c: #include bcache.h, dwarf2loc.h.
377 (type_equality_entry): Move here from python/py-type.c.
378 (type_equality_entry_d): Ditto.
379 (compare_maybe_null_strings, check_types_equal): Ditto.
380 (check_types_worklist, types_deeply_equal): Ditto.
381 * gdbtypes.h (types_deeply_equal): Declare.
382 * python/py-type.c: Remove inclusion of bcache.h, dwarf2loc.h.
383 (typy_richcompare): Update.
384
7c245c24
JB
3852013-11-20 Joel Brobecker <brobecker@adacore.com>
386
387 * python/py-value.c (is_intlike): Delete.
388 (valpy_int): Replace use of CHECK_TYPEDEF and is_intlike
389 by use of is_integral_type.
390 (valpy_long): Replace use of CHECK_TYPEDEF and is_intlike
391 by use of is_integral_type and check for TYPE_CODE_PTR.
392
8986e351
TT
3932013-11-20 Tom Tromey <tromey@redhat.com>
394
395 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Remove
396 strerror module.
397 * gnulib/aclocal.m4: Update.
398 * gnulib/config.in: Update.
399 * gnulib/configure: Update.
400 * gnulib/import/Makefile.am: Update.
401 * gnulib/import/Makefile.in: Update.
402 * gnulib/import/errno.in.h: Remove.
403 * gnulib/import/intprops.h: Remove.
404 * gnulib/import/m4/errno_h.m4: Remove.
405 * gnulib/import/m4/gnulib-cache.m4: Update.
406 * gnulib/import/m4/gnulib-comp.m4: Update.
407 * gnulib/import/m4/strerror.m4: Remove.
408 * gnulib/import/m4/sys_socket_h.m4: Remove.
409 * gnulib/import/strerror-override.c: Remove.
410 * gnulib/import/strerror-override.h: Remove.
411 * gnulib/import/strerror.c: Remove.
412 * gnulib/update-gnulib.sh: Update.
413
6b1141e3
YQ
4142013-11-20 Yao Qi <yao@codesourcery.com>
415
416 * target-dcache.c (target_dcache_get_or_init): Call
417 set_address_space_data if 'dcache' is NULL.
418
60650f2e
WT
4192013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
420
421 * common/i386-gcc-cpuid.h (bit_MPX): Synchronize with gcc file.
422
09748966
WT
4232013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
424
425 * python/lib/gdb/command/bound_register.py: New file.
995c1ad9
DE
426 * data-directory/Makefile.in: Copy bond_register.py to the right path
427 to be initialized at gdb startup.
09748966 428
e43e105e
WT
4292013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
430
431 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset):
432 Add MPX registers.
433 (amd64_linux_read_description): Add initialization for MPX and
434 AVX independently.
435 * amd64-linux-tdep.c: Includes features/i386/amd64-mpx-linux.c.
436 (amd64_linux_gregset_reg_offset): Add MPX registers.
437 (amd64_linux_core_read_description): Add initialization for MPX
438 registers.
439 (_initialize_amd64_linux_tdep): Initialize MPX targets.
440 * amd64-linux-tdep.h (AMD64_LINUX_RAX_REGNUM): Set it to the last
441 register on the list.
442 (tdesc_amd64_mpx_linux) Add new target for MPX.
443 * amd64-tdep.c: Includes features/i386/amd64-mpx.c.
444 (amd64_mpx_names): MPX register names.
445 (amd64_init_abi): Add MPX register while initializing the ABI.
446 (_initialize_amd64_tdep): Initialize MPX targets.
447 * amd64-tdep.h (amd64_regnum): Add MPX registers.
448 (AMD64_NUM_REGS): Set number of registers taking MPX into account.
449
1dbcd68c
WT
4502013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
451
452 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Add MPX
453 registers on the range of registers to be read from
454 xsave buffer.
455 (i386_linux_read_description): Add case for MPX.
456 * i386-linux-tdep.c: Include features/i386/i386-mpx-linux.c.
457 (i386_linux_gregset_reg_offset): Add MPX registers.
458 (i386_linux_core_read_description): Initialize also MPX.
459 (_initialize_i386_linux_tdep): Add mpx initialization.
460 * i386-tdep.h (gdbarch_tdep): Add fields bnd0r_regnum, bnd0_regnum,
461 mpx_register_names.
462 (i386_regnum): Add MPX registers.
463 (I386_MPX_NUM_REGS): New macro.
464 (i386_bnd_regnum_p): New function.
465 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set
466 number of registers to be the number of BNDSTATUS.
467 (tdesc_i386_mpx_linux): Add description for MPX Linux registers.
468 * i386-tdep.c: Include features/i386/i386-mpx.c.
469 (i386_mpx_names): Add MPX register names array.
470 (i386_bnd_names): Add bnd pseudo register names array.
471 (i386_bndr_regnum_p): Lookup register numbers for bnd raw
472 registers.
473 (i386_bndr_regnum_p): Lookup register numbers for bnd raw registers.
474 (386_mpx_ctrl_regnum_p): Lookup register numbers for MPX control
475 registers.
476 (i386_bnd_type): New function.
477 (i386_pseudo_register_type): Use i386_bnd_type for bnd pseudo
478 register types.
479 (i386_pseudo_register_read_into_value): Add bnd case.
480 (i386_pseudo_register_write): Add bnd pseudo registers.
481 (i386_register_reggroup_p): Add MPX register to the group all.
482 (i386_validate_tdesc_p): Add MPX to the target description
483 validation.
484 (i386_pseudo_register_name): Add bnd pseudo registers.
485 (i386_gdbarch_init): Add MPX for architecture initialization.
486 (_initia_initialize_i386_tdep): Add mpx initialization.
487 * i387-tdep.c (xsave_mpx_offset): New vector for MPX offsets on
488 XSAVE buffer.
489 (XSAVE_MPX_ADDR): New macro.
490 (i387_supply_xsave): Add MPX case.
491 (i387_collect_xsave): Add MPX case.
492 * i387-tdep.h (I387_BND0R_REGNUM): New macro.
493 (I387_BNDCFGU_REGNUM): New macro.
494 (I387_NUM_MPX_REGS): New macro.
495 (I387_NUM_BND_REGS): New macro.
496 (I387_NUM_MPX_CTRL_REGS): New macro.
497 (I387_MPXEND_REGNUM): New macro.
498 * common/i386-xstate.h (I386_XSTATE_BNDREGS): New macro.
499 (I386_XSTATE_BNDCFG): Likewise.
500 (I386_XSTATE_MPX_MASK): Likewise.
501 (I386_XSTATE_ALL_MASK): New macro represents flags for all states.
502 (I386_XSTATE_BNDREGS_SIZE): New macro.
503 (I386_XSTATE_BNDCFG_SIZE): Likewise.
504 (I386_XSTATE_SIZE): Adapt for MPX.
505 (I386_XSTATE_MAX_SIZE): Likewise.
506
ccc42043
WT
5072013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
508
509 * features/i386/Makefile: Adapts for using MPX registers.
510 * features/i386/32bit-mpx.xml: New file.
511 * features/i386/64bit-mpx.xml: Likewise.
512 * features/i386/amd64-mpx-linux.c: Likewise.
513 * features/i386/amd64-mpx-linux.xml: Likewise.
514 * features/i386/amd64-mpx.c: Likewise.
515 * features/i386/amd64-mpx.xml: Likewise.
516 * features/i386/i386-mpx-linux.c: Likewise.
517 * features/i386/i386-mpx-linux.xml: Likewise.
518 * features/i386/i386-mpx.c: Likewise.
519 * features/i386/i386-mpx.xml: Likewise.
520 * regformats/i386/amd64-mpx-linux.dat: New file.
521 * regformats/i386/amd64-mpx.dat: Likewise.
522 * regformats/i386/i386-mpx-linux.dat: Likewise.
523 * regformats/i386/i386-mpx.dat: Likewise.
524
57803a3c
WT
5252013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
526
527 * target-descriptions.c (maint_print_maint_print_c_tdesc_cmd):
528 Modified logic of creating a bitfield to be in sync with
529 tdesc_gdb_type.
530
2b59118e
WN
5312013-11-20 Will Newton <will.newton@linaro.org>
532
533 * arm-tdep.c (arm_get_next_pc): Remove "Infinite loop detected"
534 error message.
535
b26dfc9a
YQ
5362013-11-20 Yao Qi <yao@codesourcery.com>
537
538 * progspace.h (struct address_space_data): Declare.
539 * target-dcache.c: Include "progspace.h".
540 (target_dache): Remove.
541 (target_dcache_aspace_key): New.
542 (target_dcache_cleanup): New function.
543 (target_dcache_init_p): Get data through
544 target_dcache_aspace_key.
545 (target_dcache_invalidate): Likewise.
546 (target_dcache_get): Likewise.
547 (target_dcache_get_or_init): Likewise.
548 (_initialize_target_dcache): Initialize
549 target_dcache_aspace_key.
550
3a8356ff
YQ
5512013-11-20 Yao Qi <yao@codesourcery.com>
552
553 * progspace.c (struct address_space): Update comments.
554 <REGISTRY_FIELDS>: New fields.
555 DEFINE_REGISTRY for address_space.
556 (new_address_space): Call address_space_alloc_data.
557 (free_address_space): Call address_space_free_data.
558 * progspace.h: Use DECLARE_REGISTRY.
559
68c765e2
YQ
5602013-11-20 Yao Qi <yao@codesourcery.com>
561
562 * Makefile.in (SFILES):Add target-dcache.c.
563 (HFILES_NO_SRCDIR): Add target-dcache.h.
564 (COMMON_OBS): Add target-dcache.o.
565 * dcache.c: Remove inclusion to "target.h". Include
566 "target-dcache.h".
567 * memattr.c: Include "target-dcache.h".
568 * top.c: Likewise.
569 * tracepoint.c: Likewise.
570 * target.c: (stack_cache_enabled_p_1): Move to
571 target-dcache.c.
572 (stack_cache_enabled_p): Likewise.
573 (set_stack_cache_enabled_p): Likewise.
574 (show_stack_cache_enabled_p): Likewise.
575 (target_dcache, target_dcache_init_p): Likewise.
576 (target_dcache_invalidate): Likewise.
577 (target_dcache_get, target_dcache_get_or_init): Likewise.
578 (memory_xfer_partial_1): Call function stack_cache_enabled.
579 (initialize_target): Move code to target-dcache.c.
580 * target.h (target_dcache_invalidate): Move to
581 target-dcache.h.
582 (target_dcache_get): Likewise.
583 * target-dcache.c: New.
584 * target-dcache.h: New.
585
f2de9785
YQ
5862013-11-20 Yao Qi <yao@codesourcery.com>
587
588 * target.c (memory_xfer_partial_1): Update 'target_dcache' if
589 it is initialized.
590
2a2f9fe4
YQ
5912013-11-20 Yao Qi <yao@codesourcery.com>
592
593 * dcache.c (last_cache): Remove.
594 (dcache_free, dcache_init): Update.
595 (dcache_update):
596 (dcache_print_line): Add parameter 'dcache'. Replace
597 'target_dcache' with 'dcache'.
598 (dcache_info): Move code to dcache_info_1. Call
599 'dcache_info_1'.
600 (dcache_info_1): New function.
601 (set_dcache_size): Call target_dcache_invalidate.
602 (set_dcache_line_size): Call target_dcache_invalidate.
603 * target.c (target_dcache_init_p): New function.
604 (target_dcache_invalidate): Check target_dcache_init_p first.
605 (target_dcache_get, target_dcache_get_or_init): New function.
606 (memory_xfer_partial_1): Adjust.
607 (initialize_target): Don't initialize 'target_dcache'.
608 * target.h (struct dcache_struct): Declare.
609 (target_dcache_get): Declare.
610
8ab91b96
YQ
6112013-11-19 Yao Qi <yao@codesourcery.com>
612
613 * varobj.c (varobj_get_type): Fix typo.
614
df7752b0
JB
6152013-11-19 Joel Brobecker <brobecker@adacore.com>
616
617 * python/py-value.c (is_intlike): Add TYPE_CODE_RANGE handling.
618
4a0a886a
JB
6192013-11-19 Joel Brobecker <brobecker@adacore.com>
620
621 * contrib/ari/gdb_ari.sh: Remove checks for "dirent.h" and
622 "stat.h".
623
53ce3c39
TT
6242013-11-18 Tom Tromey <tromey@redhat.com>
625
626 * common/gdb_stat.h: Remove.
627 * ada-lang.c: Use sys/stat.h, not gdb_stat.h.
628 * common/filestuff.c: Use sys/stat.h, not gdb_stat.h.
629 * common/linux-osdata.c: Use sys/stat.h, not gdb_stat.h.
630 * corefile.c: Use sys/stat.h, not gdb_stat.h.
631 * ctf.c: Use sys/stat.h, not gdb_stat.h.
632 * darwin-nat.c: Use sys/stat.h, not gdb_stat.h.
633 * dbxread.c: Use sys/stat.h, not gdb_stat.h.
634 * dwarf2read.c: Use sys/stat.h, not gdb_stat.h.
635 * exec.c: Use sys/stat.h, not gdb_stat.h.
636 * gdbserver/linux-low.c: Use sys/stat.h, not gdb_stat.h.
637 * gdbserver/remote-utils.c: Use sys/stat.h, not gdb_stat.h.
638 * inf-child.c: Use sys/stat.h, not gdb_stat.h.
639 * jit.c: Use sys/stat.h, not gdb_stat.h.
640 * linux-nat.c: Use sys/stat.h, not gdb_stat.h.
641 * m68klinux-nat.c: Use sys/stat.h, not gdb_stat.h.
642 * main.c: Use sys/stat.h, not gdb_stat.h.
643 * mdebugread.c: Use sys/stat.h, not gdb_stat.h.
644 * mi/mi-cmd-env.c: Use sys/stat.h, not gdb_stat.h.
645 * nto-tdep.c: Use sys/stat.h, not gdb_stat.h.
646 * objfiles.c: Use sys/stat.h, not gdb_stat.h.
647 * procfs.c: Use sys/stat.h, not gdb_stat.h.
648 * remote-fileio.c: Use sys/stat.h, not gdb_stat.h.
649 * remote-mips.c: Use sys/stat.h, not gdb_stat.h.
650 * remote.c: Use sys/stat.h, not gdb_stat.h.
651 * rs6000-nat.c: Use sys/stat.h, not gdb_stat.h.
652 * sol-thread.c: Use sys/stat.h, not gdb_stat.h.
653 * solib-spu.c: Use sys/stat.h, not gdb_stat.h.
654 * source.c: Use sys/stat.h, not gdb_stat.h.
655 * symfile.c: Use sys/stat.h, not gdb_stat.h.
656 * symmisc.c: Use sys/stat.h, not gdb_stat.h.
657 * symtab.c: Use sys/stat.h, not gdb_stat.h.
658 * top.c: Use sys/stat.h, not gdb_stat.h.
659 * xcoffread.c: Use sys/stat.h, not gdb_stat.h.
660
09607c9e
TT
6612013-11-18 Tom Tromey <tromey@redhat.com>
662
663 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
664 sys_stat.
665 * gnulib/aclocal.m4: Update.
666 * gnulib/config.in: Update.
667 * gnulib/configure: Update.
668 * gnulib/import/Makefile.am: Update.
669 * gnulib/import/Makefile.in: Update.
670 * gnulib/import/m4/gnulib-cache.m4: Update.
671 * gnulib/import/m4/gnulib-comp.m4: Update.
672 * gnulib/import/m4/sys_stat_h.m4: New.
673 * gnulib/import/m4/time_h.m4: New.
674 * gnulib/import/sys_stat.in.h: New.
675 * gnulib/import/time.in.h: New.
676
4ff70b84
TT
6772013-11-18 Tom Tromey <tromey@redhat.com>
678
679 * configure: Rebuild.
680 * configure.ac: Remove check of HAVE_SYS_TYPES_H.
681
3447c057
TT
6822013-11-18 Tom Tromey <tromey@redhat.com>
683
684 * configure: Rebuild.
685 * configure.ac: Don't check for unistd.h.
686
0080a2f6
TT
6872013-11-18 Tom Tromey <tromey@redhat.com>
688
689 * configure: Rebuild.
690 * configure.ac: Don't check for stdlib.h
691 * defs.h: Include stdlib.h unconditionally.
692
161d1bec
TT
6932013-11-18 Tom Tromey <tromey@redhat.com>
694
695 * config.in: Rebuild.
696 * configure: Rebuild.
697 * configure.ac: Don't check for stddef.h.
698 * defs.h: Unconditionally include stddef.h. Remove duplicate
699 inclusion.
700
2978b111
TT
7012013-11-18 Tom Tromey <tromey@redhat.com>
702
703 * common/common.m4 (GDB_AC_COMMON): Don't use AC_HEADER_DIRENT.
704 * common/gdb_dirent.h: Remove.
705 * common/filestuff.c: Use dirent.h.
706 * common/linux-osdata.c: Use dirent.h.
707 (NAMELEN): Define.
708 * config.in: Rebuild.
709 * configure: Rebuild.
710 * configure.ac: Don't use AC_HEADER_DIRENT.
711 * linux-fork.c: Use dirent.h
712 * linux-nat.c: Use dirent.h.
713 * nto-procfs.c: Use dirent.h.
714 * procfs.c: Use dirent.h.
715
e26b6bb0
TT
7162013-11-18 Tom Tromey <tromey@redhat.com>
717
718 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirent.
719 * gnulib/aclocal.m4: Update.
720 * gnulib/config.in: Update.
721 * gnulib/configure: Update.
722 * gnulib/import/Makefile.am: Update.
723 * gnulib/import/Makefile.in: Update.
724 * gnulib/import/dirent.in.h: New.
725 * gnulib/import/m4/dirent_h.m4: New.
726 * gnulib/import/m4/gnulib-cache.m4: Update.
727 * gnulib/import/m4/gnulib-comp.m4: Update.
728
a3d08894
TT
7292013-11-18 Tom Tromey <tromey@redhat.com>
730
731 * configure: Rebuild.
732 * common/common.m4 (GDB_AC_COMMON): Don't check for string.h or
733 strings.h.
734
0e9f083f
TT
7352013-11-18 Tom Tromey <tromey@redhat.com>
736
737 * common/gdb_string.h: Remove.
738 * aarch64-tdep.c: Use string.h, not gdb_string.h.
739 * ada-exp.y: Use string.h, not gdb_string.h.
740 * ada-lang.c: Use string.h, not gdb_string.h.
741 * ada-lex.l: Use string.h, not gdb_string.h.
742 * ada-typeprint.c: Use string.h, not gdb_string.h.
743 * ada-valprint.c: Use string.h, not gdb_string.h.
744 * aix-thread.c: Use string.h, not gdb_string.h.
745 * alpha-linux-tdep.c: Use string.h, not gdb_string.h.
746 * alpha-mdebug-tdep.c: Use string.h, not gdb_string.h.
747 * alpha-nat.c: Use string.h, not gdb_string.h.
748 * alpha-osf1-tdep.c: Use string.h, not gdb_string.h.
749 * alpha-tdep.c: Use string.h, not gdb_string.h.
750 * alphanbsd-tdep.c: Use string.h, not gdb_string.h.
751 * amd64-dicos-tdep.c: Use string.h, not gdb_string.h.
752 * amd64-linux-nat.c: Use string.h, not gdb_string.h.
753 * amd64-linux-tdep.c: Use string.h, not gdb_string.h.
754 * amd64-nat.c: Use string.h, not gdb_string.h.
755 * amd64-sol2-tdep.c: Use string.h, not gdb_string.h.
756 * amd64fbsd-tdep.c: Use string.h, not gdb_string.h.
757 * amd64obsd-tdep.c: Use string.h, not gdb_string.h.
758 * arch-utils.c: Use string.h, not gdb_string.h.
759 * arm-linux-nat.c: Use string.h, not gdb_string.h.
760 * arm-linux-tdep.c: Use string.h, not gdb_string.h.
761 * arm-tdep.c: Use string.h, not gdb_string.h.
762 * arm-wince-tdep.c: Use string.h, not gdb_string.h.
763 * armbsd-tdep.c: Use string.h, not gdb_string.h.
764 * armnbsd-nat.c: Use string.h, not gdb_string.h.
765 * armnbsd-tdep.c: Use string.h, not gdb_string.h.
766 * armobsd-tdep.c: Use string.h, not gdb_string.h.
767 * avr-tdep.c: Use string.h, not gdb_string.h.
768 * ax-gdb.c: Use string.h, not gdb_string.h.
769 * ax-general.c: Use string.h, not gdb_string.h.
770 * bcache.c: Use string.h, not gdb_string.h.
771 * bfin-tdep.c: Use string.h, not gdb_string.h.
772 * breakpoint.c: Use string.h, not gdb_string.h.
773 * build-id.c: Use string.h, not gdb_string.h.
774 * buildsym.c: Use string.h, not gdb_string.h.
775 * c-exp.y: Use string.h, not gdb_string.h.
776 * c-lang.c: Use string.h, not gdb_string.h.
777 * c-typeprint.c: Use string.h, not gdb_string.h.
778 * c-valprint.c: Use string.h, not gdb_string.h.
779 * charset.c: Use string.h, not gdb_string.h.
780 * cli-out.c: Use string.h, not gdb_string.h.
781 * cli/cli-cmds.c: Use string.h, not gdb_string.h.
782 * cli/cli-decode.c: Use string.h, not gdb_string.h.
783 * cli/cli-dump.c: Use string.h, not gdb_string.h.
784 * cli/cli-interp.c: Use string.h, not gdb_string.h.
785 * cli/cli-logging.c: Use string.h, not gdb_string.h.
786 * cli/cli-script.c: Use string.h, not gdb_string.h.
787 * cli/cli-setshow.c: Use string.h, not gdb_string.h.
788 * cli/cli-utils.c: Use string.h, not gdb_string.h.
789 * coffread.c: Use string.h, not gdb_string.h.
790 * common/common-utils.c: Use string.h, not gdb_string.h.
791 * common/filestuff.c: Use string.h, not gdb_string.h.
792 * common/linux-procfs.c: Use string.h, not gdb_string.h.
793 * common/linux-ptrace.c: Use string.h, not gdb_string.h.
794 * common/signals.c: Use string.h, not gdb_string.h.
795 * common/vec.h: Use string.h, not gdb_string.h.
796 * core-regset.c: Use string.h, not gdb_string.h.
797 * corefile.c: Use string.h, not gdb_string.h.
798 * corelow.c: Use string.h, not gdb_string.h.
799 * cp-abi.c: Use string.h, not gdb_string.h.
800 * cp-support.c: Use string.h, not gdb_string.h.
801 * cp-valprint.c: Use string.h, not gdb_string.h.
802 * cris-tdep.c: Use string.h, not gdb_string.h.
803 * d-lang.c: Use string.h, not gdb_string.h.
804 * dbxread.c: Use string.h, not gdb_string.h.
805 * dcache.c: Use string.h, not gdb_string.h.
806 * demangle.c: Use string.h, not gdb_string.h.
807 * dicos-tdep.c: Use string.h, not gdb_string.h.
808 * disasm.c: Use string.h, not gdb_string.h.
809 * doublest.c: Use string.h, not gdb_string.h.
810 * dsrec.c: Use string.h, not gdb_string.h.
811 * dummy-frame.c: Use string.h, not gdb_string.h.
812 * dwarf2-frame.c: Use string.h, not gdb_string.h.
813 * dwarf2loc.c: Use string.h, not gdb_string.h.
814 * dwarf2read.c: Use string.h, not gdb_string.h.
815 * elfread.c: Use string.h, not gdb_string.h.
816 * environ.c: Use string.h, not gdb_string.h.
817 * eval.c: Use string.h, not gdb_string.h.
818 * event-loop.c: Use string.h, not gdb_string.h.
819 * exceptions.c: Use string.h, not gdb_string.h.
820 * exec.c: Use string.h, not gdb_string.h.
821 * expprint.c: Use string.h, not gdb_string.h.
822 * f-exp.y: Use string.h, not gdb_string.h.
823 * f-lang.c: Use string.h, not gdb_string.h.
824 * f-typeprint.c: Use string.h, not gdb_string.h.
825 * f-valprint.c: Use string.h, not gdb_string.h.
826 * fbsd-nat.c: Use string.h, not gdb_string.h.
827 * findcmd.c: Use string.h, not gdb_string.h.
828 * findvar.c: Use string.h, not gdb_string.h.
829 * fork-child.c: Use string.h, not gdb_string.h.
830 * frame.c: Use string.h, not gdb_string.h.
831 * frv-linux-tdep.c: Use string.h, not gdb_string.h.
832 * frv-tdep.c: Use string.h, not gdb_string.h.
833 * gdb.c: Use string.h, not gdb_string.h.
834 * gdb_bfd.c: Use string.h, not gdb_string.h.
835 * gdbarch.c: Use string.h, not gdb_string.h.
836 * gdbtypes.c: Use string.h, not gdb_string.h.
837 * gnu-nat.c: Use string.h, not gdb_string.h.
838 * gnu-v2-abi.c: Use string.h, not gdb_string.h.
839 * gnu-v3-abi.c: Use string.h, not gdb_string.h.
840 * go-exp.y: Use string.h, not gdb_string.h.
841 * go-lang.c: Use string.h, not gdb_string.h.
842 * go32-nat.c: Use string.h, not gdb_string.h.
843 * hppa-hpux-tdep.c: Use string.h, not gdb_string.h.
844 * hppa-linux-nat.c: Use string.h, not gdb_string.h.
845 * hppanbsd-tdep.c: Use string.h, not gdb_string.h.
846 * hppaobsd-tdep.c: Use string.h, not gdb_string.h.
847 * i386-cygwin-tdep.c: Use string.h, not gdb_string.h.
848 * i386-dicos-tdep.c: Use string.h, not gdb_string.h.
849 * i386-linux-nat.c: Use string.h, not gdb_string.h.
850 * i386-linux-tdep.c: Use string.h, not gdb_string.h.
851 * i386-nto-tdep.c: Use string.h, not gdb_string.h.
852 * i386-sol2-tdep.c: Use string.h, not gdb_string.h.
853 * i386-tdep.c: Use string.h, not gdb_string.h.
854 * i386bsd-tdep.c: Use string.h, not gdb_string.h.
855 * i386gnu-nat.c: Use string.h, not gdb_string.h.
856 * i386nbsd-tdep.c: Use string.h, not gdb_string.h.
857 * i386obsd-tdep.c: Use string.h, not gdb_string.h.
858 * i387-tdep.c: Use string.h, not gdb_string.h.
859 * ia64-libunwind-tdep.c: Use string.h, not gdb_string.h.
860 * ia64-linux-nat.c: Use string.h, not gdb_string.h.
861 * inf-child.c: Use string.h, not gdb_string.h.
862 * inf-ptrace.c: Use string.h, not gdb_string.h.
863 * inf-ttrace.c: Use string.h, not gdb_string.h.
864 * infcall.c: Use string.h, not gdb_string.h.
865 * infcmd.c: Use string.h, not gdb_string.h.
866 * inflow.c: Use string.h, not gdb_string.h.
867 * infrun.c: Use string.h, not gdb_string.h.
868 * interps.c: Use string.h, not gdb_string.h.
869 * iq2000-tdep.c: Use string.h, not gdb_string.h.
870 * irix5-nat.c: Use string.h, not gdb_string.h.
871 * jv-exp.y: Use string.h, not gdb_string.h.
872 * jv-lang.c: Use string.h, not gdb_string.h.
873 * jv-typeprint.c: Use string.h, not gdb_string.h.
874 * jv-valprint.c: Use string.h, not gdb_string.h.
875 * language.c: Use string.h, not gdb_string.h.
876 * linux-fork.c: Use string.h, not gdb_string.h.
877 * linux-nat.c: Use string.h, not gdb_string.h.
878 * lm32-tdep.c: Use string.h, not gdb_string.h.
879 * m2-exp.y: Use string.h, not gdb_string.h.
880 * m2-typeprint.c: Use string.h, not gdb_string.h.
881 * m32c-tdep.c: Use string.h, not gdb_string.h.
882 * m32r-linux-nat.c: Use string.h, not gdb_string.h.
883 * m32r-linux-tdep.c: Use string.h, not gdb_string.h.
884 * m32r-rom.c: Use string.h, not gdb_string.h.
885 * m32r-tdep.c: Use string.h, not gdb_string.h.
886 * m68hc11-tdep.c: Use string.h, not gdb_string.h.
887 * m68k-tdep.c: Use string.h, not gdb_string.h.
888 * m68kbsd-tdep.c: Use string.h, not gdb_string.h.
889 * m68klinux-nat.c: Use string.h, not gdb_string.h.
890 * m68klinux-tdep.c: Use string.h, not gdb_string.h.
891 * m88k-tdep.c: Use string.h, not gdb_string.h.
892 * macrocmd.c: Use string.h, not gdb_string.h.
893 * main.c: Use string.h, not gdb_string.h.
894 * mdebugread.c: Use string.h, not gdb_string.h.
895 * mem-break.c: Use string.h, not gdb_string.h.
896 * memattr.c: Use string.h, not gdb_string.h.
897 * memory-map.c: Use string.h, not gdb_string.h.
898 * mep-tdep.c: Use string.h, not gdb_string.h.
899 * mi/mi-cmd-break.c: Use string.h, not gdb_string.h.
900 * mi/mi-cmd-disas.c: Use string.h, not gdb_string.h.
901 * mi/mi-cmd-env.c: Use string.h, not gdb_string.h.
902 * mi/mi-cmd-stack.c: Use string.h, not gdb_string.h.
903 * mi/mi-cmd-var.c: Use string.h, not gdb_string.h.
904 * mi/mi-cmds.c: Use string.h, not gdb_string.h.
905 * mi/mi-console.c: Use string.h, not gdb_string.h.
906 * mi/mi-getopt.c: Use string.h, not gdb_string.h.
907 * mi/mi-interp.c: Use string.h, not gdb_string.h.
908 * mi/mi-main.c: Use string.h, not gdb_string.h.
909 * mi/mi-parse.c: Use string.h, not gdb_string.h.
910 * microblaze-rom.c: Use string.h, not gdb_string.h.
911 * microblaze-tdep.c: Use string.h, not gdb_string.h.
912 * mingw-hdep.c: Use string.h, not gdb_string.h.
913 * minidebug.c: Use string.h, not gdb_string.h.
914 * minsyms.c: Use string.h, not gdb_string.h.
915 * mips-irix-tdep.c: Use string.h, not gdb_string.h.
916 * mips-linux-tdep.c: Use string.h, not gdb_string.h.
917 * mips-tdep.c: Use string.h, not gdb_string.h.
918 * mips64obsd-tdep.c: Use string.h, not gdb_string.h.
919 * mipsnbsd-tdep.c: Use string.h, not gdb_string.h.
920 * mipsread.c: Use string.h, not gdb_string.h.
921 * mn10300-linux-tdep.c: Use string.h, not gdb_string.h.
922 * mn10300-tdep.c: Use string.h, not gdb_string.h.
923 * monitor.c: Use string.h, not gdb_string.h.
924 * moxie-tdep.c: Use string.h, not gdb_string.h.
925 * mt-tdep.c: Use string.h, not gdb_string.h.
926 * nbsd-tdep.c: Use string.h, not gdb_string.h.
927 * nios2-linux-tdep.c: Use string.h, not gdb_string.h.
928 * nto-procfs.c: Use string.h, not gdb_string.h.
929 * nto-tdep.c: Use string.h, not gdb_string.h.
930 * objc-lang.c: Use string.h, not gdb_string.h.
931 * objfiles.c: Use string.h, not gdb_string.h.
932 * opencl-lang.c: Use string.h, not gdb_string.h.
933 * osabi.c: Use string.h, not gdb_string.h.
934 * osdata.c: Use string.h, not gdb_string.h.
935 * p-exp.y: Use string.h, not gdb_string.h.
936 * p-lang.c: Use string.h, not gdb_string.h.
937 * p-typeprint.c: Use string.h, not gdb_string.h.
938 * parse.c: Use string.h, not gdb_string.h.
939 * posix-hdep.c: Use string.h, not gdb_string.h.
940 * ppc-linux-nat.c: Use string.h, not gdb_string.h.
941 * ppc-sysv-tdep.c: Use string.h, not gdb_string.h.
942 * ppcfbsd-tdep.c: Use string.h, not gdb_string.h.
943 * ppcnbsd-tdep.c: Use string.h, not gdb_string.h.
944 * ppcobsd-tdep.c: Use string.h, not gdb_string.h.
945 * printcmd.c: Use string.h, not gdb_string.h.
946 * procfs.c: Use string.h, not gdb_string.h.
947 * prologue-value.c: Use string.h, not gdb_string.h.
948 * python/py-auto-load.c: Use string.h, not gdb_string.h.
949 * python/py-gdb-readline.c: Use string.h, not gdb_string.h.
950 * ravenscar-thread.c: Use string.h, not gdb_string.h.
951 * regcache.c: Use string.h, not gdb_string.h.
952 * registry.c: Use string.h, not gdb_string.h.
953 * remote-fileio.c: Use string.h, not gdb_string.h.
954 * remote-m32r-sdi.c: Use string.h, not gdb_string.h.
955 * remote-mips.c: Use string.h, not gdb_string.h.
956 * remote-sim.c: Use string.h, not gdb_string.h.
957 * remote.c: Use string.h, not gdb_string.h.
958 * reverse.c: Use string.h, not gdb_string.h.
959 * rs6000-aix-tdep.c: Use string.h, not gdb_string.h.
960 * ser-base.c: Use string.h, not gdb_string.h.
961 * ser-go32.c: Use string.h, not gdb_string.h.
962 * ser-mingw.c: Use string.h, not gdb_string.h.
963 * ser-pipe.c: Use string.h, not gdb_string.h.
964 * ser-tcp.c: Use string.h, not gdb_string.h.
965 * ser-unix.c: Use string.h, not gdb_string.h.
966 * serial.c: Use string.h, not gdb_string.h.
967 * sh-tdep.c: Use string.h, not gdb_string.h.
968 * sh64-tdep.c: Use string.h, not gdb_string.h.
969 * shnbsd-tdep.c: Use string.h, not gdb_string.h.
970 * skip.c: Use string.h, not gdb_string.h.
971 * sol-thread.c: Use string.h, not gdb_string.h.
972 * solib-dsbt.c: Use string.h, not gdb_string.h.
973 * solib-frv.c: Use string.h, not gdb_string.h.
974 * solib-osf.c: Use string.h, not gdb_string.h.
975 * solib-spu.c: Use string.h, not gdb_string.h.
976 * solib-target.c: Use string.h, not gdb_string.h.
977 * solib.c: Use string.h, not gdb_string.h.
978 * somread.c: Use string.h, not gdb_string.h.
979 * source.c: Use string.h, not gdb_string.h.
980 * sparc-nat.c: Use string.h, not gdb_string.h.
981 * sparc-sol2-tdep.c: Use string.h, not gdb_string.h.
982 * sparc-tdep.c: Use string.h, not gdb_string.h.
983 * sparc64-tdep.c: Use string.h, not gdb_string.h.
984 * sparc64fbsd-tdep.c: Use string.h, not gdb_string.h.
985 * sparc64nbsd-tdep.c: Use string.h, not gdb_string.h.
986 * sparcnbsd-tdep.c: Use string.h, not gdb_string.h.
987 * spu-linux-nat.c: Use string.h, not gdb_string.h.
988 * spu-multiarch.c: Use string.h, not gdb_string.h.
989 * spu-tdep.c: Use string.h, not gdb_string.h.
990 * stabsread.c: Use string.h, not gdb_string.h.
991 * stack.c: Use string.h, not gdb_string.h.
992 * std-regs.c: Use string.h, not gdb_string.h.
993 * symfile.c: Use string.h, not gdb_string.h.
994 * symmisc.c: Use string.h, not gdb_string.h.
995 * symtab.c: Use string.h, not gdb_string.h.
996 * target.c: Use string.h, not gdb_string.h.
997 * thread.c: Use string.h, not gdb_string.h.
998 * tilegx-linux-nat.c: Use string.h, not gdb_string.h.
999 * tilegx-tdep.c: Use string.h, not gdb_string.h.
1000 * top.c: Use string.h, not gdb_string.h.
1001 * tracepoint.c: Use string.h, not gdb_string.h.
1002 * tui/tui-command.c: Use string.h, not gdb_string.h.
1003 * tui/tui-data.c: Use string.h, not gdb_string.h.
1004 * tui/tui-disasm.c: Use string.h, not gdb_string.h.
1005 * tui/tui-file.c: Use string.h, not gdb_string.h.
1006 * tui/tui-layout.c: Use string.h, not gdb_string.h.
1007 * tui/tui-out.c: Use string.h, not gdb_string.h.
1008 * tui/tui-regs.c: Use string.h, not gdb_string.h.
1009 * tui/tui-source.c: Use string.h, not gdb_string.h.
1010 * tui/tui-stack.c: Use string.h, not gdb_string.h.
1011 * tui/tui-win.c: Use string.h, not gdb_string.h.
1012 * tui/tui-windata.c: Use string.h, not gdb_string.h.
1013 * tui/tui-winsource.c: Use string.h, not gdb_string.h.
1014 * typeprint.c: Use string.h, not gdb_string.h.
1015 * ui-file.c: Use string.h, not gdb_string.h.
1016 * ui-out.c: Use string.h, not gdb_string.h.
1017 * user-regs.c: Use string.h, not gdb_string.h.
1018 * utils.c: Use string.h, not gdb_string.h.
1019 * v850-tdep.c: Use string.h, not gdb_string.h.
1020 * valarith.c: Use string.h, not gdb_string.h.
1021 * valops.c: Use string.h, not gdb_string.h.
1022 * valprint.c: Use string.h, not gdb_string.h.
1023 * value.c: Use string.h, not gdb_string.h.
1024 * varobj.c: Use string.h, not gdb_string.h.
1025 * vax-tdep.c: Use string.h, not gdb_string.h.
1026 * vaxnbsd-tdep.c: Use string.h, not gdb_string.h.
1027 * vaxobsd-tdep.c: Use string.h, not gdb_string.h.
1028 * windows-nat.c: Use string.h, not gdb_string.h.
1029 * xcoffread.c: Use string.h, not gdb_string.h.
1030 * xml-support.c: Use string.h, not gdb_string.h.
1031 * xstormy16-tdep.c: Use string.h, not gdb_string.h.
1032 * xtensa-linux-nat.c: Use string.h, not gdb_string.h.
1033
63ce7108
TT
10342013-11-18 Tom Tromey <tromey@redhat.com>
1035
1036 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add strerror
1037 and strstr.
1038 * gnulib/aclocal.m4: Update.
1039 * gnulib/config.in: Update.
1040 * gnulib/configure: Update.
1041 * gnulib/import/Makefile.am: Update.
1042 * gnulib/import/Makefile.in: Update.
1043 * gnulib/import/errno.in.h: New.
1044 * gnulib/import/intprops.h: New.
1045 * gnulib/import/m4/errno_h.m4: New.
1046 * gnulib/import/m4/gnulib-cache.m4: Update.
1047 * gnulib/import/m4/gnulib-comp.m4: Update.
1048 * gnulib/import/m4/strerror.m4: New.
1049 * gnulib/import/m4/strstr.m4: New.
1050 * gnulib/import/m4/sys_socket_h.m4: New.
1051 * gnulib/import/strerror-override.c: New.
1052 * gnulib/import/strerror-override.h: New.
1053 * gnulib/import/strerror.c: New.
1054 * gnulib/import/strstr.c: New.
1055
a7c11ee1
TT
10562013-11-18 Tom Tromey <tromey@redhat.com>
1057
1058 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Split into
1059 multiple lines.
1060
d0b5971a
JM
10612013-11-18 Jose E. Marchesi <jose.marchesi@oracle.com>
1062
1063 * sparc-tdep.c (sparc_is_annulled_branch_insn): New function.
1064 * sparc-tdep.h: And its prototype.
1065
1066 * sparc64-linux-tdep.c (sparc64_linux_get_longjmp_target): New
1067 function.
1068 (sparc64_linux_init_abi): Register the get_longjmp_target hook.
1069
4b4589ad
PA
10702013-11-18 Pedro Alves <palves@redhat.com>
1071
1072 * dwarf2-frame.c (read_addr_from_reg): Remove stale comment and
1073 use unpack_pointer.
1074
422ad5c2
JB
10752013-11-18 Joel Brobecker <brobecker@adacore.com>
1076
1077 * mi/mi-main.c (mi_cmd_list_features): Add "language-options"
1078 to -list-features output.
1079
b1370418
JB
10802013-11-17 Joel Brobecker <brobecker@adacore.com>
1081
1082 * dwarf2expr.h (struct dwarf_expr_context_funcs)
1083 <read_addr_from_reg>: Renames "read_reg".
1084 * dwarf2-frame.c (read_addr_from_reg): Renames "read_reg".
1085 Adjust comment.
1086 (dwarf2_frame_ctx_funcs, execute_stack_op, dwarf2_frame_cache):
1087 Use read_addr_from_reg in place of read_reg.
1088 * dwarf2expr.c (execute_stack_op): Use read_addr_from_reg
1089 in place of read_reg.
1090 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Renames
1091 dwarf_expr_read_reg.
1092 (dwarf_expr_ctx_funcs): Replace dwarf_expr_read_reg
1093 with dwarf_expr_read_addr_from_reg.
1094 (needs_frame_read_addr_from_reg): Renames needs_frame_read_reg.
1095 (needs_frame_ctx_funcs): Replace needs_frame_read_reg with
1096 needs_frame_read_addr_from_reg.
1097
6ea71545
JK
10982013-11-15 Jan Kratochvil <jan.kratochvil@redhat.com>
1099
1100 * NEWS (Changes in GDB 7.5) (New commands) (explore): Fix typo.
1101
19a1b230
AA
11022013-11-15 Andreas Arnez <arnez@linux.vnet.ibm.com>
1103
1104 * dwarf2loc.c (chain_candidate): Prevent invoking memcpy with
1105 NULL.
1106
805e1f19
TT
11072013-11-15 Tom Tromey <tromey@redhat.com>
1108
1109 PR c++/16117:
1110 * c-exp.y (lex_one_token): Add "is_quoted_name" argument.
1111 (classify_name): Likewise. Prefer a field of "this" over a
1112 filename.
1113 (classify_inner_name, yylex): Update.
1114
0acf8b65
JB
11152013-11-15 Joel Brobecker <brobecker@adacore.com>
1116
1117 * dwarf2expr.h (struct dwarf_expr_context_funcs) <read_reg>:
1118 Extend the documentation a bit.
1119 <get_reg_value>: New field.
1120 * dwarf2loc.c (dwarf_expr_get_reg_value)
1121 (needs_frame_get_reg_value): New functions.
1122 (dwarf_expr_ctx_funcs, needs_frame_ctx_funcs): Add "get_reg_value"
1123 callback.
1124 * dwarf2-frame.c (get_reg_value): New function.
1125 (dwarf2_frame_ctx_funcs): Add "get_reg_value" callback.
1126 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_regval_type>:
1127 Use new callback to compute result_val.
1128
ef1bc9e7
AM
11292013-11-15 Alan Modra <amodra@gmail.com>
1130
1131 * ppc64-tdep.c (ppc64_plt_entry_point): Renamed from..
1132 (ppc64_desc_entry_point): ..this. Update comments here and at
1133 call points.
1134 (ppc64_standard_linkage1, ppc64_standard_linkage2,
1135 ppc64_standard_linkage3): Update comments.
1136 (ppc64_standard_linkage4, ppc64_standard_linkage5,
1137 (ppc64_standard_linkage6, ppc64_standard_linkage7): New insn
1138 patterns.
1139 (ppc64_standard_linkage4_target): New function.
1140 (ppc64_skip_trampoline_code): Skip ELFv2 patterns too.
1141 * rs6000-tdep.c (skip_prologue): Skip ELFv2 r2 setup. Correct
1142 nop match. Fix comment wrap.
1143
36fa8042
PA
11442013-11-14 Pedro Alves <palves@redhat.com>
1145
1146 * infrun.c (handle_signal_stop): Move STOP_QUIETLY,
1147 STOP_QUIETLY_REMOTE and 'stop_after_trap' handling earlier.
1148
4f5d7f63
PA
11492013-11-14 Pedro Alves <palves@redhat.com>
1150
1151 * infrun.c (struct execution_control_state)
1152 <stepped_after_stopped_by_watchpoint>: New field.
1153 (get_inferior_stop_soon): New function.
1154 (handle_inferior_event): 'stepped_after_stopped_by_watchpoint' was
1155 moved to struct execution_control_state -- adjust. Use
1156 get_inferior_stop_soon. Split TARGET_WAITKIND_STOPPED handling to
1157 new function.
1158 (handle_signal_stop): New function, factored out from
1159 handle_inferior_event.
1160
47591c29
PA
11612013-11-14 Pedro Alves <palves@redhat.com>
1162
1163 * break-catch-sig.c (signal_catchpoint_explains_signal): Adjust to
1164 return a boolean.
1165 * breakpoint.c (bpstat_explains_signal): Adjust to return a
1166 boolean.
1167 (explains_signal_watchpoint, base_breakpoint_explains_signal):
1168 Adjust to return a boolean.
1169 * breakpoint.h (enum bpstat_signal_value): Delete.
1170 (struct breakpoint_ops) <explains_signal>: New returns a boolean.
1171 (bpstat_explains_signal): Likewise.
1172 * infrun.c (handle_inferior_event) <random signal checks>:
1173 bpstat_explains_signal now returns a boolean - adjust. No longer
1174 consider hiding signals.
1175
bac7d97b
PA
11762013-11-14 Pedro Alves <palves@redhat.com>
1177
1178 * breakpoint.c (bpstat_explains_signal) <Moribund locations>:
1179 Return BPSTAT_SIGNAL_PASS instead of BPSTAT_SIGNAL_HIDE.
1180 (explains_signal_watchpoint): Return BPSTAT_SIGNAL_PASS instead of
1181 BPSTAT_SIGNAL_HIDE.
1182 (base_breakpoint_explains_signal): Return BPSTAT_SIGNAL_PASS
1183 instead of BPSTAT_SIGNAL_HIDE.
1184 * infrun.c (handle_inferior_event): Rework random signal checks.
1185
ce12b012
PA
11862013-11-14 Pedro Alves <palves@redhat.com>
1187
1188 * infrun.c (struct execution_control_state): Remove
1189 'random_signal' field.
1190 (handle_syscall_event): Use bpstat_causes_stop instead of
1191 bpstat_explains_signal. Don't set ecs->random_signal.
1192 (handle_inferior_event): New 'random_signal' local.
1193 <TARGET_WAITKIND_FORKED, TARGET_WAITKIND_VFORKED,
1194 TARGET_WAITKIND_EXECD>: Use bpstat_causes_stop instead of
1195 bpstat_explains_signal. Don't set ecs->random_signal.
1196 <TARGET_WAITKIND_STOPPED>: Adjust to use local instead of
1197 ecs->random_signal.
1198
05ba8510
PA
11992013-11-14 Pedro Alves <palves@redhat.com>
1200
1201 * infrun.c (handle_inferior_event): Move comment from the
1202 function's body to the function's description, adjusted.
1203
5c09a2c5
PA
12042013-11-14 Pedro Alves <palves@redhat.com>
1205
1206 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
1207 Handle STOP_QUIETLY_NO_SIGSTOP and STOP_QUIETLY_REMOTE here.
1208 Assert we never fall through out of the TARGET_WAITKIND_LOADED
1209 case.
1210
91822956
TT
12112013-11-14 Tom Tromey <tromey@redhat.com>
1212
1213 * python/py-linetable.c (ltpy_has_line)
1214 (ltpy_get_all_source_lines): Fix loop termination condition.
1215
403cb6b1
JB
12162013-11-14 Joel Brobecker <brobecker@adacore.com>
1217
1218 * mi/mi-parse.h (struct mi_parse) <language>: New field.
1219 * mi/mi-main.c (mi_cmd_execute): Temporarily set language to
1220 PARSE->LANGUAGE during command execution, if set.
1221 * mi/mi-parse.c: Add "language.h" #include.
1222 (mi_parse): Add parsing of "--language" command option.
1223
1224 * NEWS: Add entry mentioning the new "--language" command option.
1225
b5be8ce0
JB
12262013-11-14 Pedro Alves <palves@redhat.com>
1227 Joel Brobecker <brobecker@adacore.com>
1228
1229 * cli/cli-utils.h (extract_arg_const): Add declaration.
1230 * cli/cli-utils.c (extract_arg_const): New function.
1231 (extract_arg): Reimplement using extract_arg_const.
1232
671afef6
JB
12332013-11-14 Joel Brobecker <brobecker@adacore.com>
1234
1235 * language.h: Add "symtab.h" #include.
1236
6c1b0f7b
DE
12372013-11-13 Doug Evans <xdje42@gmail.com>
1238
1239 * breakpoint.c (bpstat_check_breakpoint_conditions): For thread
1240 specific breakpoints, don't evaluate breakpoint condition if
1241 different thread.
1242
74921315
KS
12432013-11-13 Keith Seitz <keiths@redhat.com>
1244
248ace2e 1245 PR c++/7935
74921315
KS
1246 PR c++/10541
1247 * cp-support.c (insepct_type): Add support for substituting
1248 namespace aliases, too.
1249 * dwarf2read.c (scan_partial_symbols): Add a partial symbol
1250 for DW_TAG_imported_declaration.
1251 (add_partial_symbol): Likewise.
1252 (process_die): Handle namespace aliases with
1253 read_namespace_alias.
1254 (die_needs_namespace): Add DW_TAG_imported_declaration.
1255 (read_namespace_alias): New function.
1256 (load_partial_dies): Load DW_TAG_imported_declaration, too.
1257 (new_symbol_full): Handle DW_TAG_imported_declaration.
1258
793156e6
KS
12592013-11-13 Keith Seitz <keiths@redhat.com>
1260
1261 * p-exp.y (uptok): Make first parameter const.
1262 (yylex): Make `tokstart' and `tokptr' const.
1263 Don't copy the lexer input to a temporary buffer.
1264 Make `p' const.
1265 Remove const workaround for parse_escape.
1266 Create a temporary buffer for a convenience variable instead
1267 of doing in-place modification of the input.
1268 If a match is found with a different case from the input,
1269 do not change the input at all.
1270 Use `tmp' to construct the resultant stoken instead of
1271 `tokstart'.
1272
c42bd95a
DE
12732013-11-13 Doug Evans <xdje42@gmail.com>
1274
1275 * breakpoint.c (breakpoint_cond_eval): Fix and enhance comment.
1276
93973826
JB
12772013-11-13 Joel Brobecker <brobecker@adacore.com>
1278
1279 * mi/mi-main.c (mi_cmd_list_features): Replace "info-ada-exceptions"
1280 entry with "ada-exceptions".
1281
846060df
JB
12822013-11-13 Joel Brobecker <brobecker@adacore.com>
1283
1284 * symfile.c (reread_symbols): Move call to set_objfile_per_bfd
1285 after re-initialization of OBJFILE's obstack.
1286
5efd1b2b 12872013-11-12 Doug Evans <xdje42@gmail.com>
7d4df6a4
DE
1288
1289 * breakpoint.c (bpstat_check_breakpoint_conditions): Assert
1290 bs->stop != 0 on entry. Update function comment. Simplify early
1291 exit for frame mismatch. Reindent rest of function.
1292
ee7615e1
AA
12932013-11-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
1294
1295 * objc-lang.c (uniquify_strings): Prevent invoking qsort with
1296 NULL.
1297
8943b874
DE
12982013-11-12 Doug Evans <dje@google.com>
1299
1300 Work around gold/15646.
1301 * dwarf2read.c (read_index_from_section): Update comment.
1302 (struct dw2_symtab_iterator): New member global_seen.
1303 (dw2_symtab_iter_init): Initialize it.
1304 (dw2_symtab_iter_next): Skip duplicate global symbols.
1305 (dw2_expand_symtabs_matching): Ditto.
1306
a8a9844d
JB
13072013-11-12 Joel Brobecker <brobecker@adacore.com>
1308
1309 * mi/mi-cmds.h (mi_cmd_info_ada_exceptions): Add declaration.
1310 * mi/mi-cmds.c (mi_cmds): Add entry for -info-ada-exceptions
1311 command.
1312 * mi/mi-cmd-info.c: #include "ada-lang.c" and "arch-utils.c".
1313 (mi_cmd_info_ada_exceptions): New function.
1314 * mi/mi-main.c (mi_cmd_list_features): Add "info-ada-exceptions".
1315
778865d3
JB
13162013-11-12 Joel Brobecker <brobecker@adacore.com>
1317
1318 * ada-lang.h: #include "vec.h".
1319 (struct ada_exc_info): New.
1320 (ada_exc_info): New typedef.
1321 (DEF_VEC_O(ada_exc_info)): New vector.
1322 (ada_exceptions_list): Add declaration.
1323 * ada-lang.c (ada_is_exception_sym)
1324 (ada_is_non_standard_exception_sym, compare_ada_exception_info)
1325 (sort_remove_dups_ada_exceptions_list)
1326 (ada_exc_search_name_matches, ada_add_standard_exceptions)
1327 (ada_add_exceptions_from_frame, ada_add_global_exceptions)
1328 (ada_exceptions_list_1, ada_exceptions_list)
1329 (info_exceptions_command): New function.
1330 (_initialize_ada_language): Add "info exception" command.
1331
bc79de95
PM
13322013-11-11 Phil Muldoon <pmuldoon@redhat.com>
1333
1334 PR python/15629
1335 * NEWS: Add linetable feature.
1336 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-linetable entries.
1337 * python/py-linetable.c: New file.
1338 * python/py-symtab.c (stpy_get_linetable): New function.
1339 * python/python-internal.h (symtab_to_linetable_object): Declare.
1340 (gdbpy_initialize_linetable): Ditto.
1341 * python/python.c (_initialize_python): Call
1342 gdbpy_initialize_linetable.
1343
2df4d1d5
JB
13442013-11-11 Joel Brobecker <brobecker@adacore.com>
1345
1346 * ada-lang.c (create_ada_exception_catchpoint): Enhance
1347 the documentation of fields "except_string" and "condition".
1348 * mi/mi-cmd-catch.c (mi_cmd_catch_assert): Reallocate
1349 CONDITION on the heap before passing it to
1350 create_ada_exception_catchpoint.
1351 (mi_cmd_catch_exception): Likewise for EXCEPTION_NAME and
1352 CONDITION.
1353
99c1d451
TT
13542013-11-11 Tom Tromey <tromey@redhat.com>
1355
1356 * config.in, configure: Rebuild.
1357 * configure.ac (HAVE_TKILL_SYSCALL): Check for "syscall".
1358
8ca5801b
JB
13592013-11-11 Joel Brobecker <brobecker@adacore.com>
1360
1361 * remote-sim.c (gdbsim_detach): Break declaration into
1362 shorter lines. No code change.
1363
7a06d430
EBM
13642013-11-11 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
1365
1366 * remote-sim.c (gdbsim_detach): Fix prototype.
1367
73be47f5
DE
13682013-11-08 Doug Evans <dje@google.com>
1369
1370 * dwarf2read.c (dwarf2_read_debug): Change to unsigned int.
1371 (create_debug_types_hash_table): Only print debugging messages for
1372 each TU if dwarf2-read >= 2.
1373 (process_queue): Ditto.
1374 (_initialize_dwarf2_read): Make "set debug dwarf2-read" a zuinteger.
1375 Update doc string.
1376
a18d8f10
TT
13772013-11-08 Tom Tromey <tromey@redhat.com>
1378
1379 * configure: Rebuild.
1380 * configure.ac: Remove mentions of HAVE_MULTIPLE_PROC_FDS.
1381
9467110b
TT
13822013-11-08 Tom Tromey <tromey@redhat.com>
1383
1384 * configure, config.in: Rebuild.
1385 * configure.ac: Remove unused configury.
1386
69706679
TT
13872013-11-08 Tom Tromey <tromey@redhat.com>
1388
1389 * m32c-tdep.c: Use gdb_string.h.
1390
9b4bea72
TT
13912013-11-08 Tom Tromey <tromey@redhat.com>
1392
1393 * configure, config.in: Rebuild.
1394 * configure.ac: Remove all link.h-related checks.
1395
3266f10b
TT
13962013-11-08 Tom Tromey <tromey@redhat.com>
1397
1398 * acinclude.m4: Include common.m4.
1399 * common/common.m4: New file.
1400 * configure, config.in: Rebuild.
1401 * configure.ac: Use GDB_AC_COMMON.
1402
db0fec5c
DE
14032013-11-08 Doug Evans <dje@google.com>
1404
1405 * NEWS: Mention that "set debug symtab-create" now accepts a
1406 verbosity level.
1407 * buildsym.c (end_symtab_from_static_block): Call set_symtab_primary
1408 to set the symtab's primary flag.
1409 * jit.c (finalize_symtab): Ditto.
1410 * mdebugread.c (psymtab_to_symtab_1): Ditto.
1411 * symfile.c (allocate_symtab): Only print debugging messages for
1412 symtab_create_debug levels 2 and higher.
1413 * symtab.c (symtab_create_debug): Change type to unsigned int.
1414 (set_symtab_primary): New function.
1415 (_initialize_symtab): Change "set debug symtab-create" to a
1416 zuinteger option.
1417 * symtab.h (set_symtab_primary): Declare.
1418 (symtab_create_debug): Update decl.
1419
52554a0e
TT
14202013-11-08 Tom Tromey <tromey@redhat.com>
1421
1422 * aix-thread.c (aix_thread_detach): Update.
1423 * corelow.c (core_detach): Update.
1424 * darwin-nat.c (darwin_detach): Update.
1425 * dec-thread.c (dec_thread_detach): Update.
1426 * gnu-nat.c (gnu_detach): Update.
1427 * go32-nat.c (go32_detach): Update.
1428 * inf-ptrace.c (inf_ptrace_detach): Update.
1429 * inf-ttrace.c (inf_ttrace_detach): Update.
1430 * linux-fork.c (linux_fork_detach): Update.
1431 * linux-fork.h (linux_fork_detach): Update.
1432 * linux-nat.c (linux_nat_detach): Update. Introduce "tem"
1433 local for const-correctness.
1434 * linux-thread-db.c (thread_db_detach): Update.
1435 * monitor.c (monitor_detach): Update.
1436 * nto-procfs.c (procfs_detach): Update.
1437 * procfs.c (procfs_detach): Update.
1438 * record.c (record_detach): Update.
1439 * record.h (record_detach): Update.
1440 * remote-m32r-sdi.c (m32r_detach): Update.
1441 * remote-mips.c (mips_detach): Update.
1442 * remote-sim.c (gdbsim_detach): Update.
1443 * remote.c (remote_detach_1, remote_detach)
1444 (extended_remote_detach): Update.
1445 * sol-thread.c (sol_thread_detach): Update.
1446 * target.c (target_detach): Make "args" const.
1447 (init_dummy_target): Update.
1448 * target.h (struct target_ops) <to_detach>: Make argument const.
1449 (target_detach): Likewise.
1450 * windows-nat.c (windows_detach): Update.
1451
204b5331
DE
14522013-11-07 Doug Evans <dje@google.com>
1453
1454 PR 11786
1455 * solib-svr4.c (svr4_exec_displacement): Ignore filesz, memsz, flags
1456 and align fields for PT_GNU_RELRO segments.
1457
92e32e33
PM
14582013-11-07 Phil Muldoon <pmuldoon@redhat.com>
1459
ef1bc9e7
AM
1460 PR python/15747
1461 * python/py-cmd.c: Add COMPLETE_EXPRESSION constant.
92e32e33 1462
f76c27b5
PM
14632013-11-07 Phil Muldoon <pmuldoon@redhat.com>
1464
1465 * NEWS: Document Python temporary breakpoint support.
1466 * python/py-breakpoint.c (bppy_get_temporary): New function.
1467 (bppy_init): New keyword: temporary. Parse it and set breakpoint
1468 to temporary if True.
1469
d52cd232
JM
14702013-11-07 Jose E. Marchesi <jose.marchesi@oracle.com>
1471
1472 * sparc-tdep.c (sparc_analyze_control_transfer): Assertion
1473 removed to allow analyzing unconditional branch instructions
1474 with PC-relative offsets of zero.
1475
fa4d0c40
YQ
14762013-11-07 Yao Qi <yao@codesourcery.com>
1477
1478 * mi/mi-cmd-var.c: Include "language.h".
1479 (mi_cmd_var_info_expression): Get language name from
1480 language_defn.
1481 * varobj.c (varobj_language_string): Remove.
1482 (variable_language): Remove declaration.
1483 (languages): Remove.
1484 (varobj_get_language): Change the type of return value.
1485 (variable_language): Remove.
1486 * varobj.h (enum varobj_languages): Remove.
1487 (varobj_language_string): Remove declaration.
1488 (varobj_get_language): Update declaration.
1489
6abde28f
YQ
14902013-11-07 Yao Qi <yao@codesourcery.com>
1491
1492 * language.h (struct language_defn) <la_natural_name>: New
1493 field.
1494 * ada-lang.c (ada_language_defn): Initialize field
1495 'la_natural_name'.
1496 * c-lang.c (c_language_defn): Likewise.
1497 (cplus_language_defn, asm_language_defn): Likewise.
1498 * d-lang.c (d_language_defn): Likewise.
1499 * f-lang.c (f_language_defn): Likewise.
1500 * go-lang.c (go_language_defn): Likewise.
1501 * jv-lang.c (java_language_defn): Likewise.
1502 * language.c (unknown_language_defn ): Likewise.
1503 (auto_language_defn): Likewise.
1504 * m2-lang.c (m2_language_defn): Likewise.
1505 * objc-lang.c (objc_language_defn): Likewise.
1506 * opencl-lang.c (opencl_language_defn): Likewise.
1507 * p-lang.c (pascal_language_defn): Likewise.
1508
27cd387b
YQ
15092013-11-07 Yao Qi <yao@codesourcery.com>
1510
1511 * language.c (language_str): Return const char *.
1512 (add_language): Add const to 'language_names'
1513 * language.h (struct language_defn) <la_name>: Add const.
1514 (language_str: Update declaration.
1515
6682d959
AA
15162013-11-06 Andreas Arnez <arnez@linux.vnet.ibm.com>
1517
1518 * s390-linux-nat.c (s390_read_description): Consider the TE field
1519 in the HWCAP for determining 'have_regset_tdb'.
1520
b9502d3f
WN
15212013-11-06 Will Newton <will.newton@linaro.org>
1522
1523 PR gdb/12866
1524 * dwarf2read.c (skip_one_die): Sanity check DW_AT_sibling
1525 values. (read_partial_die): Likewise.
1526
840da61a
MB
15272013-11-06 Muhammad Bilal <mbilal@codesourcery.com>
1528
1529 PR cli/16122
1530 * top.c (command_line_input): Unify interactivity tests to use
1531 input_from_terminal_p.
1532 * event-top.c (command_line_handler): Likewise.
1533
7636ccf9
YQ
15342013-11-06 Yao Qi <yao@codesourcery.com>
1535
1536 * Makefile.in (check-perf): New target.
1537
12b27276
WN
15382013-11-05 Will Newton <will.newton@linaro.org>
1539
1540 PR gdb/7670
1541 * arm-tdep.c (print_fpu_flags): Use filtered output routines.
1542 (arm_print_float_info): Likewise.
1543
67c059c2
AB
15442013-11-04 Anton Blanchard <anton@samba.org>
1545
1546 * target.c (memory_xfer_partial): Cap write to 4KB.
1547
0569175e
TSD
15482013-11-01 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
1549
1550 * breakpoint.c (create_longjmp_master_breakpoint): Allow libc
1551 probe scan even when the arch provides no get_longjmp_target.
1552
b18e90f5
PA
15532013-10-31 Pedro Alves <palves@redhat.com>
1554
1555 * infrun.c (handle_syscall_event): Don't set or clear stop_signal.
1556 (handle_inferior_event) <TARGET_WAITKIND_FORKED,
1557 TARGET_WAITKIND_VFORKED>: Don't set stop_signal to
1558 GDB_SIGNAL_TRAP, or clear it. Pass GDB_SIGNAL_0 to
1559 bpstat_explains signal, instead of GDB_SIGNAL_TRAP.
1560 <bpstat handling>: If the bpstat chain wants the signal to be
1561 hidden, then set stop_signal to GDB_SIGNAL_0 instead of
1562 GDB_SIGNAL_TRAP.
1563
638aa5a1
AB
15642013-10-31 Andrew Burgess <aburgess@broadcom.com>
1565
1566 * breakpoint.c (update_watchpoint): Update error message and add
1567 an additional error message.
1568
0e5fae36
UW
15692013-10-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1570
1571 * s390-tdep.h: Rename to...
1572 * s390-linux-tdep.h: ...here.
1573 * s390-tdep.c: Rename to...
1574 * s390-linux-tdep.c: ...here. Adjust #include.
1575 * s390-nat.c: Rename to...
1576 * s390-linux-nat.c: ...here. Adjust #include.
1577 * config/s390/s390.mh: Rename to...
1578 * config/s390/linux.mh: ...here. Reflect rename s390-nat.o ->
1579 s390-linux-nat.o.
1580 * configure.host: Reflect host rename "s390" -> "linux".
1581 * configure.tgt: Reflect rename s390-tdep.o -> s390-linux-tdep.o.
1582 * Makefile.in (ALL_TARGET_OBS): Likewise.
1583 (HFILES_NO_SRCDIR): Reflect rename s390-tdep.h ->
1584 s390-linux-tdep.h.
1585 (ALLDEPFILES): Reflect rename of .c files.
1586
34201ae3
UW
15872013-10-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1588
1589 * s390-nat.c: Whitespace cleanup.
1590 * s390-tdep.c: Likewise.
1591 * s390-tdep.h: Remove empty line at end of file.
1592
e17aaa33
MR
15932013-10-30 Maciej W. Rozycki <macro@codesourcery.com>
1594
1595 * linux-tdep.c (linux_corefile_thread_callback): Preinitialize
1596 siginfo_size.
1597
aee17e42
TT
15982013-10-29 Tom Tromey <tromey@redhat.com>
1599
1600 * utils.c (reg): Move undefinition...
1601 * gdb_curses.h: ... here. Update comment to mention AIX.
1602
9ac69859
NB
16032013-10-29 Nicolas Blanc <nicolas.blanc@intel.com>
1604
1605 * exec.h (add_target_sections_of_objfile): New declaration.
1606 * exec.c (add_target_sections_of_objfile): New function.
1607 * symfile.c (add_symbol_file_command): Update current target sections.
1608 (remove_symbol_file_command): New command.
1609 (symfile_free_objfile): New function.
1610 (_initialize_symfile): Register observer for free_objfile events.
1611 * NEWS: Add description of the remove-symbol-file command.
1612 * breakpoint.c (disable_breakpoints_in_freed_objfile): New function.
1613 * objfiles.c (free_objfile): Notify free_objfile.
1614 (is_addr_in_objfile): New function.
1615 * objfiles.h (is_addr_in_objfile): New declaration.
1616 * printcmd.c (clear_dangling_display_expressions): Act upon free_objfile
1617 events instead of solib_unloaded events.
1618 (_initialize_printcmd): Register observer for free_objfile instead
1619 of solib_unloaded notifications.
1620 * solib.c (remove_user_added_objfile): New function.
1621 (_initialize_symfile): Add remove-symbol-file.
1622
f69d9aef
AB
16232013-10-29 Andrew Burgess <aburgess@broadcom.com>
1624
1625 * infcmd.c (default_print_one_register_info): Use val_print to
1626 print all values even optimized out or unavailable ones. Don't
1627 try to print a raw form of optimized out or unavailable values.
1628
487ad57c
YQ
16292013-10-29 Yao Qi <yao@codesourcery.com>
1630
1631 * auto-load.c (auto_load_pspace_data_cleanup): Get data from
1632 parameter 'arg' instead of from program_space_data.
1633 * objfiles.c (objfiles_pspace_data_cleanup): Likewise.
1634 * solib-darwin.c (darwin_pspace_data_cleanup): Likewise.
1635 * solib-dsbt.c (dsbt_pspace_data_cleanup): Likewise.
1636 * solib-svr4.c (svr4_pspace_data_cleanup): Likewise.
1637 * inflow.c (inflow_inferior_data_cleanup): Get data from
1638 parameter 'arg' instead of inferior_data.
1639 * registry.h: Add comments.
1640
3c4797ba
PA
16412013-10-28 Pedro Alves <palves@redhat.com>
1642
1643 * breakpoint.c (watchpoints_triggered)
1644 <!target_stopped_data_address>: Hardcode return 1.
1645
cdaa5b73
PA
16462013-10-28 Pedro Alves <palves@redhat.com>
1647
1648 * infrun.c (process_event_stop_test): Remove unnecessary scoping
1649 level and reindent.
1650
94c57d6a
PA
16512013-10-28 Pedro Alves <palves@redhat.com>
1652
1653 * infrun.c (process_event_stop_test): New function, factored out
1654 from handle_inferior_event.
1655 (handle_inferior_event): 'process_event_stop_test' is now a
1656 function instead of a goto label -- adjust.
1657
fcf3daef
PA
16582013-10-28 Pedro Alves <palves@redhat.com>
1659
1660 * infrun.c (handle_inferior_event): Move process_event_stop_test
1661 goto label to the else branch of the ecs->random_signal check,
1662 along with FRAME and GDBARCH re-fetching.
1663
c447ac0b
PA
16642013-10-28 Pedro Alves <palves@redhat.com>
1665
1666 * infrun.c (switch_back_to_stepped_thread): New function, factored
1667 out from handle_inferior_event.
1668 (handle_inferior_event): Adjust to call
1669 switch_back_to_stepped_thread. Call it also at the tail of the
1670 random signal handling, and return, instead of also handling
1671 random signals just before the stepping tests.
1672
f05e4c11
PA
16732013-10-28 Pedro Alves <palves@redhat.com>
1674
1675 * infrun.c (clear_stop_func): Delete.
1676 (handle_inferior_event): Don't call clear_stop_func and don't
1677 clear 'ecs->random_signal'.
1678
ca20d462
YQ
16792013-10-27 Yao Qi <yao@codesourcery.com>
1680
1681 * varobj.c (struct varobj_root) <lang>: Rename to 'lang_ops'.
1682 (varobj_create, varobj_get_path_expr): Update.
1683 (varobj_value_has_mutated, varobj_update): Likewise.
1684 (create_child_with_value, new_root_variable): Likewise.
1685 (number_of_children, name_of_variable): Likewise.
1686 (value_of_child, my_value_of_variable): Likewise.
1687 (varobj_value_is_changeable_p): Likewise.
1688
a53b64ea
YQ
16892013-10-25 Yao Qi <yao@codesourcery.com>
1690
1691 * language.h (struct lang_varobj_ops): Declare.
1692 (struct language_defn) <la_varobj_ops>: New field.
1693 * ada-lang.c: Include "varobj.h"
1694 (defn ada_language_defn): Initialize field 'la_varobj_ops' with
1695 ada_varobj_ops.
1696 * c-lang.c: Include "varobj.h"
1697 (c_language_defn): Initialize field 'la_varobj_ops' with
1698 c_varobj_ops.
1699 (cplus_language_defn): Initialize field 'la_varobj_ops' with
1700 cplus_varobj_ops.
1701 (asm_language_defn): Initialize field 'la_varobj_ops' with
1702 default_varobj_ops.
1703 (minimal_language_defn): Likewise.
1704 * d-lang.c (d_language_defn): Likewise.
1705 * f-lang.c (f_language_defn): Likewise.
1706 * go-lang.c (go_language_defn): Likewise.
1707 * m2-lang.c (m2_language_defn): Likewise.
1708 * objc-lang.c (objc_language_defn): Likewise.
1709 * opencl-lang.c (opencl_language_defn): Likewise.
1710 * p-lang.c (pascal_language_defn): Likewise.
1711 * language.c (unknown_language_defn): Likewise.
1712 (auto_language_defn): Likewise.
1713 (local_language_defn): Likewise.
1714 * jv-lang.c (java_language_defn): Initialize field
1715 'la_varobj_ops' with java_varobj_ops.
1716 * varobj.c (varobj_create): Update.
1717 * varobj.h (default_varobj_ops): Define macro.
1718
686d4def
PA
17192013-10-25 Pedro Alves <palves@redhat.com>
1720
1721 * cp-valprint.c (cp_print_value_fields): No longer handle a NULL
1722 static field value.
1723 (cp_print_static_field): If the value is entirely optimized out,
1724 print <optimized out> here.
1725 * jv-valprint.c (java_print_value_fields): No longer handle a NULL
1726 static field value.
1727 * p-valprint.c (pascal_object_print_static_field): If the value is
1728 entirely optimized out, print <optimized out> here.
1729 * valops.c (do_search_struct_field)
1730 (value_struct_elt_for_reference): No longer handle a NULL static
1731 field value.
1732 * value.c (value_static_field): Return an optimized out value
1733 instead of NULL.
1734
6c177e28
YQ
17352013-10-25 Yao Qi <yao@codesourcery.com>
1736
1737 * remote.c (remote_traceframe_info): Return early if
1738 traceframe is not selected.
1739
98322bfa
YQ
17402013-10-25 Yao Qi <yao@codesourcery.com>
1741
1742 * tracepoint.c (traceframe_fun): Remove.
1743 (traceframe_sal): Remove.
1744 (set_traceframe_context): Add local variables.
1745
6ba1f115
JB
17462013-10-25 Joel Brobecker <brobecker@adacore.com>
1747
1748 * varobj.h (struct lang_varobj_ops): Remove spaces between '*'
1749 and parameter name.
1750
bbe769cc
MR
17512013-10-24 Maciej W. Rozycki <macro@codesourcery.com>
1752
1753 * linux-tdep.c (linux_corefile_thread_callback): Propagate any
1754 failure from register information collection.
1755
72ee4495 17562013-10-24 Maciej W. Rozycki <macro@codesourcery.com>
59a70096
MR
1757
1758 * linux-tdep.c (linux_corefile_thread_data): Remove `num_notes'
1759 member.
1760 (linux_corefile_thread_callback): Update accordingly.
1761 (linux_make_corefile_notes): Likewise.
1762
98882a26
PA
17632013-10-24 Pedro Alves <palves@redhat.com>
1764
1765 * NEWS (New options): Mention set/show startup-with-shell.
1766 * config/alpha/nm-osf3.h (START_INFERIOR_TRAPS_EXPECTED): Set to 2
1767 instead of 3.
1768 * fork-child.c (fork_inferior, startup_inferior): Handle 'set
1769 startup-with-shell'.
1770 (show_startup_with_shell): New function.
1771 (_initialize_fork_child): Register the set/show startup-with-shell
1772 commands.
1773 * inf-ptrace.c (inf_ptrace_create_inferior): Remove comment.
1774 * inf-ttrace.c (inf_ttrace_him): Remove comment.
1775 * procfs.c (procfs_init_inferior): Remove comment.
1776 * infcmd.c (startup_with_shell): New global.
1777 * inferior.h (startup_with_shell): Declare global.
1778 (STARTUP_WITH_SHELL): Delete.
1779 (START_INFERIOR_TRAPS_EXPECTED): Set to 1 by default instead of 2.
1780
c9737c08
PA
17812013-10-23 Pedro Alves <palves@redhat.com>
1782
1783 * common/gdb_signals.h (gdb_signal_to_symbol_string): Declare.
1784 * common/signals.c: Include "gdb_assert.h".
1785 (signals): New field 'symbol'.
1786 (SET): Use the 'symbol' parameter.
1787 (gdb_signal_to_symbol_string): New function.
1788 * infrun.c (handle_inferior_event) <random signal>: In debug
1789 output, print the random signal enum as string in addition to its
1790 number.
1791 * target/waitstatus.c (target_waitstatus_to_string): Print the
1792 signal's enum value as string instead of the (POSIX) signal name.
1793
f60db4f0
GB
17942013-10-23 Gary Benson <gbenson@redhat.com>
1795
1796 PR 16013
1797 * common/linux-osdata.c (command_from_pid): Reduced size of cmd
1798 from 32 to 18. Adjusted fscanf format string accordingly.
1799 (Avoids leaving cmd unterminated.)
1800 (print_sockets): Do not parse tlen, inode, sl, timeout, txq, rxq,
1801 trun, retn or extra. (Avoids leaving extra unterminated.) Check
1802 that local_address and remote_address will not overflow.
1803 (linux_xfer_osdata_modules): Parse lines using strtok to avoid
1804 leaving dependencies unterminated. Parse size as "%u" to match
1805 definition.
1806
6d3e7a94
PA
18072013-10-22 Pedro Alves <palves@redhat.com>
1808
1809 * infrun.c (handle_inferior_event) <thread hop>: Don't clear or
1810 set ecs->random signal.
1811
42ec045f
PA
18122013-10-22 Pedro Alves <palves@redhat.com>
1813
1814 * infrun.c (keep_going): Update comments.
1815
18162013-10-22 Pedro Alves <palves@redhat.com>
1817
1818 * remote.c (remote_parse_stop_reply) <'T'/'S'/'X' replies>: Map
1819 invalid signal numbers to GDB_SIGNAL_UNKNOWN.
1820
18212013-10-22 Pedro Alves <palves@redhat.com>
1822
1823 * include/gdb/signals.def (TARGET_EXC_BAD_ACCESS): Rename to
1824 GDB_EXC_BAD_ACCESS.
1825 (TARGET_EXC_BAD_INSTRUCTION): Rename to GDB_EXC_BAD_INSTRUCTION.
1826 (TARGET_EXC_ARITHMETIC): Rename to GDB_EXC_ARITHMETIC.
1827 (TARGET_EXC_EMULATION): Rename to GDB_EXC_EMULATION.
1828 (TARGET_EXC_SOFTWARE): Rename to GDB_EXC_SOFTWARE.
1829 (TARGET_EXC_BREAKPOINT): Rename to GDB_EXC_BREAKPOINT.
1830 (GDB_SIGNAL_LAST): Change description string.
1831 * common/signals.c (gdb_signal_from_host, do_gdb_signal_to_host):
1832 Adjust to signal renaming.
1833 * darwin-nat.c (darwin_decode_message): Likewise.
1834
c8fde1b1
JM
18352013-10-22 Jose E. Marchesi <jose.marchesi@oracle.com>
1836
1837 * MAINTAINERS (Write After Approval): Add myself to the list.
1838
e8369a73
AB
18392013-10-18 Andrew Burgess <aburgess@broadcom.com>
1840
1841 * breakpoint.c (update_watchpoint): If hardware watchpoints are
1842 forced off, downgrade them to software watchpoints if possible,
1843 and error out if not possible.
1844 (watch_command_1): Move watchpoint type selection closer to
1845 watchpoint creation, and extend the comments.
1846
776f04fa
PA
18472013-10-18 Pedro Alves <palves@redhat.com>
1848
1849 PR gdb/16062
1850 * infrun.c (handle_inferior_event): Keep going if we got a random
1851 signal we should not stop for, instead of falling through to the
1852 step tests.
1853
0c6faab5
YQ
18542013-10-18 Yao Qi <yao@codesourcery.com>
1855
1856 * c-varobj.c (cplus_number_of_children): Fix indentation.
1857
50b34a18
TT
18582013-10-17 Tom Tromey <tromey@redhat.com>
1859
1860 PR gdb/15995:
1861 * printcmd.c (printcmd): Call gdb_flush.
1862
5c4c8a59
TT
18632013-10-17 Tom Tromey <tromey@redhat.com>
1864
1865 * elfread.c (struct elfinfo) <stabindexsect>: Remove.
1866 (elf_locate_sections): Update.
1867
c4124bf1
YQ
18682013-10-17 Yao Qi <yao@codesourcery.com>
1869
1870 * Makefile.in (HFILES_NO_SRCDIR): Remove ada-varobj.h.
1871 * ada-varobj.c: Remove the include of ada-varobj.h.
1872 (ada_varobj_get_number_of_children): Declare.
1873 (ada_varobj_get_name_of_child): Make it static.
1874 (ada_varobj_get_path_expr_of_child): Likewise.
1875 (ada_varobj_get_value_of_child): Likewise.
1876 (ada_varobj_get_type_of_child): Likewise.
1877 (ada_varobj_get_value_of_array_variable): Likewise.
1878 * ada-varobj.h: Remove.
1879
99ad9427
YQ
18802013-10-17 Yao Qi <yao@codesourcery.com>
1881
1882 * Makefile.in (SFILES): Add c-varobj.c and jv-varobj.c.
1883 (COMMON_OBS): Add c-varobj.o and jv-varobj.o.
1884 * ada-varobj.c: Include "varobj.h".
1885 (ada_number_of_children): New. Moved from varobj.c.
1886 (ada_name_of_variable, ada_name_of_child): Likewise.
1887 (ada_path_expr_of_child, ada_value_of_child): Likewise.
1888 (ada_type_of_child, ada_value_of_variable): Likewise.
1889 (ada_value_is_changeable_p, ada_value_has_mutated): Likewise.
1890 (ada_varobj_ops): New.
1891 * c-varobj.c, jv-varobj.c: New file. Moved from varobj.c.
1892 * gdbtypes.c (get_target_type): New. Moved from varobj.c.
1893 * gdbtypes.h (get_target_type): Declare.
1894 * varobj.c: Remove the inclusion of "ada-varobj.h" and
1895 "ada-lang.h".
1896 (ANONYMOUS_STRUCT_NAME): Move it to c-varobj.c.
1897 (ANONYMOUS_UNION_NAME): Likewise.
1898 (get_type, get_value_type, get_target_type): Remove declarations.
1899 (value_get_print_value, varobj_value_get_print_value): Likewise.
1900 (c_number_of_children, c_name_of_variable): Likewise.
1901 (c_name_of_child, c_path_expr_of_child): Likewise.
1902 (c_value_of_child, c_type_of_child): Likewise.
1903 (c_value_of_variable, cplus_number_of_children): Likewise.
1904 (cplus_class_num_children, cplus_name_of_variable): Likewise.
1905 (cplus_name_of_child, cplus_path_expr_of_child): Likewise.
1906 (cplus_value_of_child, cplus_type_of_child): Likewise.
1907 (cplus_value_of_variable, java_number_of_children): Likewise.
1908 (java_name_of_variable, java_name_of_child): Likewise.
1909 (java_path_expr_of_child, java_value_of_child): Likewise.
1910 (java_type_of_child, java_value_of_variable): Likewise.
1911 (ada_number_of_children, ada_name_of_variable): Likewise.
1912 (ada_name_of_child, ada_path_expr_of_child): Likewise.
1913 (ada_value_of_child, ada_type_of_child): Likewise.
1914 (ada_value_of_variable, ada_value_is_changeable_p): Likewise.
1915 (ada_value_has_mutated): Likewise.
1916 (struct language_specific): Move it to varobj.h.
1917 (CPLUS_FAKE_CHILD): Move it to varobj.h.
1918 (restrict_range): Rename it varobj_restrict_range. Make it extern.
1919 Callers update.
1920 (get_path_expr_parent): Rename it to varobj_get_path_expr_parent.
1921 Make it extern.
1922 (is_anonymous_child): Move it to c-varobj.c and rename to
1923 varobj_is_anonymous_child. Caller update.
1924 (get_type): Move it to c-varobj.c.
1925 (get_value_type): Rename it varobj_get_value_type. Make it
1926 extern.
1927 (get_target_type): Move it gdbtypes.c.
1928 (varobj_formatted_print_options): New function.
1929 (value_get_print_value): Rename it to
1930 varobj_value_get_print_value and make it extern.
1931 (varobj_value_is_changeable_p): Make it extern.
1932 (adjust_value_for_child_access): Move it to c-varobj.c.
1933 (default_value_is_changeable_p): Rename it to
1934 varobj_default_value_is_changeable_p. Make it extern.
1935 (c_number_of_children, c_name_of_variable): Move it to c-varobj.c
1936 (c_name_of_child, c_path_expr_of_child): Likewise.
1937 (c_value_of_child, c_type_of_child): Likewise.
1938 (c_value_of_variable, cplus_number_of_children): Likewise.
1939 (cplus_class_num_children, cplus_name_of_variable): Likewise.
1940 (cplus_name_of_child, cplus_path_expr_of_child): Likewise.
1941 (cplus_value_of_child, cplus_type_of_child): Likewise.
1942 (cplus_value_of_variable): Likewise.
1943 (java_number_of_children, java_name_of_variable): Move it to jv-varobj.c.
1944 (java_name_of_child, java_path_expr_of_child): Likewise.
1945 (java_value_of_child, java_type_of_child): Likewise.
1946 (java_value_of_variable): Likewise.
1947 (ada_number_of_children, ada_name_of_variable): Move it to ada-varobj.c.
1948 (ada_name_of_child, ada_path_expr_of_child): Likewise.
1949 (ada_value_of_child, ada_type_of_child): Likewise.
1950 (ada_value_of_variable, ada_value_is_changeable_p): Likewise.
1951 (ada_value_has_mutated): Likewise.
1952 * varobj.h (CPLUS_FAKE_CHILD): New macro, moved from varobj.c.
1953 (struct lang_varobj_ops): New. Renamed by 'struct language_specific'.
1954 (c_varobj_ops, cplus_varobj_ops): Declare.
1955 (java_varobj_ops, ada_varobj_ops): Declare.
1956 (varobj_default_value_is_changeable_p): Declare.
1957 (varobj_value_is_changeable_p): Declare.
1958 (varobj_get_value_type, varobj_is_anonymous_child): Declare.
1959 (varobj_get_path_expr_parent): Declare.
1960 (varobj_value_get_print_value): Declare.
1961 (varobj_formatted_print_options): Declare.
1962 (varobj_restrict_range): Declare.
1963
c8a62302
LM
19642013-10-17 Luis Machado <lgustavo@codesourcery.com>
1965
1966 * target/waitstatus.h (target_waitkind): Remove spurious
1967 character from the comments.
1968
eade6471
JB
19692013-10-17 Joel Brobecker <brobecker@adacore.com>
1970
1971 * gdbarch.sh (get_longjmp_target): Add method documentation.
1972 * gdbarch.h: Regenerate.
1973
5411b26c
TT
19742013-10-16 Tom Tromey <tromey@redhat.com>
1975
1976 * dbxread.c (read_dbx_symtab) <bss_ext_symbol>: Remove unused
1977 label.
1978
87326c87
LM
19792013-10-16 Luis Machado <lgustavo@codesourcery.com>
1980
1981 * gcore.in: Call GDB using the full path to the gcore script.
1982 Error out if the GDB binary is not found.
1983
fd0a4d76
SDJ
19842013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
1985
1986 PR gdb/16014
1987 * dwarf2read.c (dw2_get_real_path): Remove unnecessary call to
1988 sizeof.
1989
d92f7ee3
SDJ
19902013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
1991
1992 PR gdb/16042
1993 * target.c (target_disable_btrace): Fix invalid return value for
1994 void function.
1995 (target_teardown_btrace): Likewise.
1996
bb5ce47a
YQ
19972013-10-14 Yao Qi <yao@codesourcery.com>
1998
1999 * varobj.c (struct varobj): Move most of the fields to
2000 varobj.h.
2001 (struct varobj_dynamic): New struct.
2002 (varobj_get_display_hint) [HAVE_PYTHON]: Adjust.
2003 (varobj_has_more): Likewise.
2004 (dynamic_varobj_has_child_method): Likewise.
2005 (update_dynamic_varobj_children): Likewise.
2006 (varobj_get_num_children): Likewise.
2007 (varobj_list_children, varobj_pretty_printed_p): Likewise.
2008 (install_new_value_visualizer): Likewise.
2009 (install_new_value_visualizer, install_new_value): Likewise.
2010 (varobj_update, new_variable, free_variable): Likewise.
2011 (my_value_of_variable, value_get_print_value): Likewise.
2012 (install_visualizer): Change the type of parameter 'var' to
2013 'struct varobjd_dynamic *'. Callers update.
2014 * varobj.h (struct varobj): Moved from varobj.c.
2015 (struct varobj) <dynamic>: New field.
2016
0b76b0ce
SL
20172013-10-13 Sandra Loosemore <sandra@codesourcery.com>
2018
2019 * nios2-tdep.c (nios2_reg_names): Use "sstatus" rather than "ba"
2020 as the preferred name of r30.
2021 * nios2-linux-tdep.c (reg_offsets): Likewise.
2022 * features/nios2-cpu.xml: Likewise.
2023 * features/nios2-linux.c: Regenerated.
2024 * features/nios2.c: Regenerated.
2025 * regformats/nios2-linux.dat: Regenerated.
2026
4856b6bc
JK
20272013-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2028
2029 Canonicalize directories for EXEC_FILENAME.
2030 * exec.c (exec_file_attach): Use gdb_realpath_keepfile for
2031 exec_filename.
2032 * utils.c (gdb_realpath_keepfile): New function.
2033 * utils.h (gdb_realpath_keepfile): New declaration.
2034
9b557b58
DE
20352013-10-11 Doug Evans <dje@google.com>
2036
2037 * Makefile.in (GDBFLAGS): New variable.
2038 (run): New rule.
2039
ce13fade
JB
20402013-10-11 Joel Brobecker <brobecker@adacore.com>
2041
2042 * NEWS: Add entry documenting the new "-catch-assert" and
2043 "-catch-exception" GDB/MI commands.
2044
349774ef
JB
20452013-10-11 Joel Brobecker <brobecker@adacore.com>
2046
2047 * breakpoint.h (init_ada_exception_breakpoint): Add parameter
2048 "enabled".
2049 * breakpoint.c (init_ada_exception_breakpoint): Add parameter
2050 "enabled". Set B->ENABLE_STATE accordingly.
2051 * ada-lang.h (ada_exception_catchpoint_kind): Move here from
2052 ada-lang.c.
2053 (create_ada_exception_catchpoint): Add declaration.
2054 * ada-lang.c (ada_exception_catchpoint_kind): Move to ada-lang.h.
2055 (create_ada_exception_catchpoint): Make non-static. Add new
2056 parameter "disabled". Use it in call to
2057 init_ada_exception_breakpoint.
2058 (catch_ada_exception_command): Add parameter "enabled" in call
2059 to create_ada_exception_catchpoint.
2060 (catch_assert_command): Likewise.
2061
2062 * mi/mi-cmds.h (mi_cmd_catch_assert, mi_cmd_catch_exception):
2063 Add declarations.
2064 * mi/mi-cmds.c (mi_cmds): Add the "catch-assert" and
2065 "catch-exception" commands.
2066 * mi/mi-cmd-catch.c: Add #include "ada-lang.h".
2067 (mi_cmd_catch_assert, mi_cmd_catch_exception): New functions.
2068
761269c8
JB
20692013-10-11 Joel Brobecker <brobecker@adacore.com>
2070
2071 * ada-lang.c (enum ada_exception_catchpoint_kind): Renames
2072 "enum exception_catchpoint_kind". Replace the "ex_" prefix
2073 of all its enumerates with "ada_". Update the rest of this
2074 file throughout.
2075
b4a5b78b
JB
20762013-10-11 Joel Brobecker <brobecker@adacore.com>
2077
2078 * ada-lang.c (ada_decode_exception_location): Delete.
2079 (create_ada_exception_catchpoint): Remove arguments "sal",
2080 "addr_string" and "ops". Add argument "ex_kind" instead.
2081 Adjust implementation accordingly, calling ada_exception_sal
2082 to get the entities it no longer gets passed as arguments.
2083 Document the function's arguments.
2084 (catch_ada_exception_command): Use catch_ada_exception_command_split
2085 instead of ada_decode_exception_location, and update call to
2086 create_ada_exception_catchpoint.
2087 (catch_ada_assert_command_split): Renames
2088 ada_decode_assert_location. Remove parameters "addr_string" and
2089 "ops", and now returns void. Adjust implementation accordingly.
2090 Update the function documentation.
2091 (catch_assert_command): Use catch_ada_assert_command_split
2092 instead of ada_decode_assert_location. Update call to
2093 create_ada_exception_catchpoint.
2094
7ad1d32c 20952013-10-11 Joel Brobecker <brobecker@adacore.com>
7c647d61
JB
2096
2097 * utils.h (perror_warning_with_name): Add declaration.
2098 * utils.c (perror_warning_with_name): New function.
2099 * cli/cli-cmds.c (source_script_with_search): Add call to
2100 perror_warning_with_name if from_tty is nul.
2101
7ad1d32c 21022013-10-11 Joel Brobecker <brobecker@adacore.com>
0cf4063e
JB
2103
2104 * utils.c (perror_string): New function, extracted out of
2105 throw_perror_with_name.
2106 (throw_perror_with_name): Rework to use perror_string.
2107
bcc75809
YQ
21082013-10-11 Yao Qi <yao@codesourcery.com>
2109
2110 * remote.c (discard_pending_stop_replies_in_queue): Update
2111 declaration.
2112 (struct stop_reply) <rs>: New field.
2113 (remove_stop_reply_of_remote_state): New function.
2114 (discard_pending_stop_replies_in_queue): Add parameter 'rs'.
2115 Callers update. Pass remove_stop_reply_of_remote_state to
2116 QUEUE_iterate.
2117 (remote_parse_stop_reply): Initialize field 'rs'.
2118
05feb193
WN
21192013-10-10 Will Newton <will.newton@linaro.org>
2120
2121 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
2122 linux_init_abi.
2123
0d12017b
JB
21242013-10-10 Joel Brobecker <brobecker@adacore.com>
2125
2126 * cli/cli-cmds.c (show_baud_rate): Moved to serial.c as
2127 serial_baud_show_cmd.
2128 (_initialize_cli_cmds): Delete the code creating the
2129 "set/show remotebaud" commands.
2130 * serial.c (baud_rate): Move here from top.c.
2131 (serial_baud_show_cmd): Move here from cli/cli-cmds.c.
2132 (_initialize_serial): Create "set/show serial baud" commands.
2133 Add "set/show remotebaud" command aliases.
2134 * top.c (baud_rate): Moved to serial.c.
2135 * NEWS: Document the new "set/show serial baud" commands,
2136 replacing "set/show remotebaud".
2137
578d3588
PA
21382013-10-09 Pedro Alves <palves@redhat.com>
2139
2140 * breakpoint.c (insert_bp_location): Use memory_error_message to
2141 build the memory error string.
2142 * c-lang.c: Include "gdbcore.h".
2143 (c_get_string): Use memory_error to throw error.
2144 (target_xfer_memory_error): Delete.
2145 (memory_error_message): New, factored out from
2146 target_xfer_memory_error.
2147 (memory_error): Change parameter type to target_xfer_error.
2148 Rewrite.
2149 (read_memory): Use memory_error instead of
2150 target_xfer_memory_error.
2151 * gdbcore.h: Include "target.h".
2152 (memory_error): Change parameter type to target_xfer_error.
2153 (memory_error_message): Declare function.
2154 * target.c (target_read_memory, target_read_stack)
2155 (target_write_memory, target_write_raw_memory): Return
2156 TARGET_XFER_E_IO on error. Adjust comments.
2157 (get_target_memory): Pass TARGET_XFER_E_IO to memory_error,
2158 instead of EIO.
2159 * target.h (target_read, target_insert_breakpoint)
2160 (target_remove_breakpoint): Adjust comments.
2161 * valprint.c (partial_memory_read): Rename parameter, and adjust
2162 comment.
2163 (val_print_string): Use memory_error_message to build the memory
2164 error string.
2165
c74e1ccf
JK
21662013-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2167
2168 * common/filestuff.c (gdb_fopen_cloexec): Remove initialization of
2169 result variable. Rename variable fopen_e_ever_failed to
2170 fopen_e_ever_failed_einval. Retry fopen only for errno EINVAL.
2171
915215be
PA
21722013-10-09 Pedro Alves <palves@redhat.com>
2173
2174 * monitor.c (monitor_write_memory, monitor_write_memory_bytes)
2175 (monitor_write_memory_longlongs, monitor_write_memory_block):
2176 Constify 'myaddr' parameter.
2177 (monitor_xfer_memory): Adjust interface as monitor_xfer_partial
2178 helper.
2179 (monitor_xfer_partial): New function.
2180 (init_base_monitor_ops): Don't install a deprecated_xfer_memory
2181 hook. Install a to_xfer_partial hook.
2182
acd13123
TT
21832013-10-09 Tom Tromey <tromey@redhat.com>
2184
2185 * dwarf2read.c (dwarf2_get_dwz_file): Update for type change in
2186 bfd_get_alt_debug_link_info.
2187
40135bb1
JK
21882013-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2189
2190 New flag OBJF_NOT_FILENAME.
2191 * auto-load.c (auto_load_objfile_script): Check also OBJF_NOT_FILENAME.
2192 * jit.c (jit_object_close_impl): Use OBJF_NOT_FILENAME for
2193 allocate_objfile.
2194 (jit_bfd_try_read_symtab): Use OBJF_NOT_FILENAME for
2195 symbol_file_add_from_bfd.
2196 * jv-lang.c (get_dynamics_objfile): Use OBJF_NOT_FILENAME for
2197 allocate_objfile.
2198 * objfiles.c (allocate_objfile): Assert OBJF_NOT_FILENAME if NAME is
2199 NULL.
2200 * objfiles.h (OBJF_NOT_FILENAME): New.
2201
dc294be5
TT
22022013-10-08 Tom Tromey <tromey@redhat.com>
2203
2204 * Makefile.in (SFILES): Add build-id.c.
2205 (HFILES_NO_SRCDIR): Add build-id.h.
2206 * build-id.c: New file, largely from elfread.c. Modified
2207 most functions.
2208 * build-id.h: New file.
2209 * dwarf2read.c (dwarf2_get_dwz_file): Update for change to
2210 bfd_get_alt_debug_link_info. Verify dwz file's build-id.
2211 Search for dwz file using build-id.
2212 * elfread.c (build_id_bfd_get, build_id_verify)
2213 (build_id_to_debug_filename, find_separate_debug_file): Remove.
2214
db230ce3
JB
22152013-10-08 Joel Brobecker <brobecker@adacore.com>
2216
2217 * ada-lang.c (compare_names_with_case): Renamed from
2218 compare_names, adding a new parameter "casing" and its handling.
2219 New function documentation.
2220 (compare_names): New function, implemented using
2221 compare_names_with_case.
2222
6501c98a
JB
22232013-10-08 Joel Brobecker <brobecker@adacore.com>
2224
2225 * ada-lang.c (ada_exception_sal): Remove advance declaration.
2226
84a1243b
TT
22272013-10-07 Tom Tromey <tromey@redhat.com>
2228
2229 * objfiles.c (free_objfile_per_bfd_storage): Delete the
2230 demangled_names_hash.
2231 (free_objfile): Don't delete the demangled_names_hash.
2232 * objfiles.h (struct objfile_per_bfd_storage)
2233 <demangled_names_hash>: New field.
2234 (struct objfile) <demangled_names_hash>: Move to
2235 objfile_per_bfd_storage.
2236 * symfile.c (reread_symbols): Don't delete the
2237 demangled_names_hash.
2238 * symtab.c (create_demangled_names_hash): Update.
2239 (symbol_set_names): Update.
2240
1da77581
TT
22412013-10-07 Tom Tromey <tromey@redhat.com>
2242
2243 * gdb_bfd.c (struct gdb_bfd_data) <relocation_computed,
2244 needs_relocations>: New fields.
2245 (gdb_bfd_requires_relocations): New function.
2246 * gdb_bfd.h (gdb_bfd_requires_relocations): Declare.
2247 * objfiles.c (get_objfile_bfd_data): Disallow sharing if
2248 the BFD needs relocations applied.
2249
46ecd527
PA
22502013-10-07 Pedro Alves <palves@redhat.com>
2251
2252 PR breakpoints/11568
2253 * breakpoint.c (remove_threaded_breakpoints): Say "no longer in
2254 the thread list" instead of "gone".
2255
0c557179
SDJ
22562013-10-06 Sergio Durigan Junior <sergiodj@redhat.com>
2257
2258 * NEWS: Mention new convenience variable $_exitsignal.
2259 * corelow.c (core_open): Reset exit convenience variables. Set
2260 $_exitsignal to the uncaught signal which generated the corefile.
2261 * infrun.c (handle_inferior_event): Reset exit convenience
2262 variables. Set $_exitsignal for TARGET_WAITKIND_SIGNALLED.
2263 (clear_exit_convenience_vars): New function.
2264 * inferior.h (clear_exit_convenience_vars): New prototype.
2265
1cc47d81
YQ
22662013-10-06 Yao Qi <yao@codesourcery.com>
2267
2268 * varobj.h: Add comments to enum varobj_languages.
2269
73869dc2
DE
22702013-10-04 Doug Evans <dje@google.com>
2271
2272 Add support for DWP file format version 2.
2273 * NEWS: Mention support for DWP file format version 2.
2274 * dwarf2read.c (dwarf2_section_info): Convert asection field to a
2275 union of asection, containing_section. New fields virtual_offset
2276 and is_virtual. Change type of readin filed from int to char.
2277 (dwo_sections, dwo_file): Tweak comments.
2278 (dwp_v2_section_ids): New enum.
2279 (dwp_sections): New fields abbrev, info, line, loc, macinfo, macro,
2280 str_offsets, types.
2281 (virtual_v1_dwo_sections): Renamed from virtual_dwo_sections.
2282 All uses updated.
2283 (virtual_v2_dwo_sections): New struct.
2284 (dwp_hash_table): New fields version, nr_columns. Change type of
2285 section_pool field to a union.
2286 (dwp_file): New field version.
2287 (dwarf2_has_info): Check for virtual sections.
2288 (get_containing_section): New function.
2289 (get_section_bfd_owner, get_section_bfd_section): Call it.
2290 (dwarf2_locate_sections): Update.
2291 (dwarf2_section_empty_p): Update.
2292 (dwarf2_read_section): Handle virtual sections.
2293 (locate_dwz_sections): Update.
2294 (create_dwp_hash_table): Document and handle V2 format.
2295 (locate_v1_virtual_dwo_sections): Renamed from
2296 locate_virtual_dwo_sections and update. All callers updated.
2297 (create_dwo_unit_in_dwp_v1): Renamed from create_dwo_in_dwp.
2298 Delete arg htab. Rename arg section_index to unit_index.
2299 All callers updated.
2300 (MAX_NR_V1_DWO_SECTIONS): Renamed from MAX_NR_DWO_SECTIONS.
2301 All uses updated.
2302 (create_dwp_v2_section, create_dwo_unit_in_dwp_v2): New functions.
2303 (lookup_dwo_unit_in_dwp): Add V2 support.
2304 (dwarf2_locate_dwo_sections): Update.
2305 (dwarf2_locate_common_dwp_sections): Renamed from
2306 dwarf2_locate_dwp_sections and update. All callers updated.
2307 (dwarf2_locate_v2_dwp_sections): New function.
2308 (open_and_init_dwp_file): Add V2 support.
2309 (read_str_index): New locals str_section, str_offsets_section.
2310
9a2c3737
PA
23112013-10-04 Pedro Alves <palves@redhat.com>
2312
2313 * common/ptid.c (null_ptid, minus_one_ptid, ptid_build)
2314 (pid_to_ptid, ptid_get_pid, ptid_get_lwp, ptid_get_tid)
2315 (ptid_equal, ptid_is_pid, ptid_lwp_p, ptid_tid_p): Replace
2316 describing comments with references to ptid.h.
2317 * common/ptid.h: Remove intro description of constructors,
2318 accessors and predicates.
2319 (struct ptid): Reformat.
2320 (minus_one_ptid, ptid_build, pid_to_ptid, ptid_get_pid)
2321 (ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid): Change
2322 describing comments.
2323
f5371440
JB
23242013-10-04 Joel Brobecker <brobecker@adacore.com>
2325
2326 * aix-thread.c (sync_threadlists): Add missing ')' in call
2327 to ptid_build.
2328
793e1c06
JB
23292013-10-04 Joel Brobecker <brobecker@adacore.com>
2330
2331 * procfs.c (procfs_init_inferior): Fix typo causing the build
2332 to fail.
2333
26f0edc1
JB
23342013-10-04 Joel Brobecker <brobecker@adacore.com>
2335
2336 * aix-thread.c (ptrace32): Remove cast to addr_ptr.
2337
5713b9b5
JB
23382013-10-04 Joel Brobecker <brobecker@adacore.com>
2339
2340 * mi/mi-main.c (run_one_inferior): Add function description.
2341 Make ARG a pointer to an integer whose value determines whether
2342 we should "run" or "start" the program.
2343 (mi_cmd_exec_run): Add handling of the "--start" option.
2344 Reject all other command-line options.
2345 * NEWS: Add entry for "-exec-run"'s new "--start" option.
2346
f48ff2a7
YQ
23472013-10-04 Yao Qi <yao@codesourcery.com>
2348
2349 * remote-notif.h (REMOTE_NOTIF_ID): New enum.
2350 (struct notif_client) <pending_event>: Moved
2351 to struct remote_notif_state.
2352 <id>: New field.
2353 (struct remote_notif_state) <pending_event>: New field.
2354 (notif_event_xfree): Declare.
2355 * remote-notif.c (handle_notification): Adjust.
2356 (notif_event_xfree): New function.
2357 (do_notif_event_xfree): Call notif_event_xfree.
2358 (remote_notif_state_xfree): Call notif_event_xfree to free
2359 each element in field pending_event.
2360 * remote.c (discard_pending_stop_replies): Remove declaration.
2361 (discard_pending_stop_replies_in_queue): Declare.
2362 (remote_close): Call discard_pending_stop_replies_in_queue
2363 instead of discard_pending_stop_replies.
2364 (remote_start_remote): Adjust.
2365 (stop_reply_xfree): Call notif_event_xfree.
2366 (notif_client_stop): Adjust initialization.
2367 (remote_notif_remove_all): Rename it to ...
2368 (remove_stop_reply_for_inferior): ... this. Update comments.
2369 Don't check INF is NULL.
2370 (discard_pending_stop_replies): Return early if notif_state is
2371 NULL. Adjust. Don't check INF is NULL.
2372 (remote_notif_get_pending_events): Adjust.
ef1bc9e7 2373 (discard_pending_stop_replies_in_queue): New function.
f48ff2a7
YQ
2374 (remote_wait_ns): Likewise.
2375
5965e028
YQ
23762013-10-04 Yao Qi <yao@codesourcery.com>
2377
2378 * remote-notif.c (DECLARE_QUEUE_P): Remove.
2379 (notif_queue): Remove.
2380 (remote_notif_process): Add one parameter 'notif_queue'.
2381 Update comments. Callers update.
2382 (remote_async_get_pending_events_token): Remove.
2383 (remote_notif_register_async_event_handler): Remove.
2384 (remote_notif_unregister_async_event_handler): Remove.
2385 (handle_notification): Add parameter 'notif_queue'. Update
2386 comments. Callers update.
2387 (notif_xfree): Remove.
2388 (remote_notif_state_allocate): New function.
2389 (remote_notif_state_xfree): New function.
2390 (_initialize_notif): Remove code to allocate queue.
2391 * remote-notif.h (DECLARE_QUEUE_P): Moved from remote-notif.c.
2392 (struct remote_notif_state): New.
2393 (handle_notification): Update declaration.
2394 (remote_notif_process): Likewise.
2395 (remote_notif_register_async_event_handler): Remove.
2396 (remote_notif_unregister_async_event_handler): Remove.
2397 (remote_notif_state_allocate): Declare.
2398 (remote_notif_state_xfree): Declare.
2399 * remote.c (struct remote_state) <notif_state>: New field.
2400 (remote_close): Don't call
2401 remote_notif_unregister_async_event_handler. Call
2402 remote_notif_state_xfree.
2403 (remote_open_1): Don't call
2404 remote_notif_register_async_event_handler. Call
2405 remote_notif_state_allocate.
2406
5e5ac9a5
YQ
24072013-10-04 Yao Qi <yao@codesourcery.com>
2408
2409 * varobj.c (create_child_with_value): Remove 'const' from the
2410 type of parameter 'name'.
2411 (varobj_add_child): Likewise.
2412 (install_dynamic_child): Remove 'const' from the type of
2413 parameter 'name'.
2414 (varobj_add_child): Likewise.
2415 (create_child_with_value): Likewise. Update comments. Don't
2416 duplicate 'name'.
2417 (update_dynamic_varobj_children): Duplicate 'name'
2418 and pass it to install_dynamic_child.
2419
06ab7b19
PM
24202013-10-03 Phil Muldoon <pmuldoon@redhat.com>
2421
2422 * python/py-value.c (convert_value_from_python): Move PyInt_Check
2423 conversion logic to occur after PyLong_Check. Comment on order
2424 change significance.
2425 * python/py-arch.c (archpy_disassemble): Comment on order of
2426 conversion for integers and longs.
2427
8ae377e8
PA
24282013-10-03 Pedro Alves <palves@redhat.com>
2429
2430 * common/linux-ptrace.c (linux_check_ptrace_features): Factor out
2431 the PTRACE_O_TRACESYSGOOD and PTRACE_O_TRACEFORK to separate
2432 functions. Always test for PTRACE_O_TRACESYSGOOD even if
2433 PTRACE_O_TRACEFORK is not supported.
2434 (linux_test_for_tracesysgood): New function.
2435 (linux_test_for_tracefork): New function, factored out from
2436 linux_check_ptrace_features, and also don't kill child_pid here.
2437
b1328b1b
TG
24382013-10-03 Tristan Gingold <gingold@adacore.com>
2439
2440 * i386-darwin-nat.c (i386_darwin_dr_set): Fix argument type.
2441 Remove verbose error reporting. Use detected state to
2442 thread_set_state call.
2443 (i386_darwin_dr_get): Fix return type. Remove verbose error
2444 report.
2445 Remove trailing spaces.
2446
901461f8
PA
24472013-10-02 Pedro Alves <palves@redhat.com>
2448
2449 * cp-valprint.c (cp_print_value_fields): Adjust calls to
2450 val_print_optimized_out.
2451 * jv-valprint.c (java_print_value_fields): Likewise.
2452 * p-valprint.c (pascal_object_print_value_fields): Likewise.
2453 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full)
2454 <DWARF_VALUE_REGISTER>: If the register was not saved, return a
2455 new optimized out value.
2456 * findvar.c (address_from_register): Likewise.
2457 * frame.c (put_frame_register): Tweak error string to say the
2458 register was not saved, rather than optimized out.
2459 * infcmd.c (default_print_one_register_info): Adjust call to
2460 val_print_optimized_out. Use value_of_register instead of
2461 get_frame_register_value.
2462 * mi/mi-main.c (output_register): Use value_of_register instead of
2463 get_frame_register_value.
2464 * valprint.c (valprint_check_validity): Likewise.
2465 (val_print_optimized_out): New value parameter. If the value is
2466 lval_register, print <not saved> instead.
2467 (value_check_printable, val_print_scalar_formatted): Adjust calls
2468 to val_print_optimized_out.
2469 * valprint.h (val_print_optimized_out): New value parameter.
2470 * value.c (struct value) <optimized_out>: Extend comment.
2471 (error_value_optimized_out): New function.
2472 (require_not_optimized_out): Use it. Use a different string for
2473 lval_register values.
2474 * value.h (error_value_optimized_out): New declaration.
2475 * NEWS: Mention <not saved>.
2476
042a84d9
JB
24772013-10-02 Joel Brobecker <brobecker@adacore.com>
2478
2479 * symtab.c (compare_search_syms): Use FILENAME_CMP instead of
2480 strcmp to compare two symtab filenames.
2481
6b9780fb
JB
24822013-10-02 Joel Brobecker <brobecker@adacore.com>
2483
2484 * symtab.c (search_symbols_equal): Delete.
2485 (sort_search_symbols_remove_dups): Replace call to
2486 search_symbols_equal by call to compare_search_syms,
2487 adjusting as necessary.
2488
751e7549
PM
24892013-10-02 Phil Muldoon <pmuldoon@redhat.com>
2490
2491 PR python/15579
751e7549
PM
2492 * python/python.c: Document gdb.execute command in Python help.
2493
1efd7661
PM
24942013-10-02 Phil Muldoon <pmuldoon@redhat.com>
2495
2496 * python/py-frame.c (frame_info_to_frame_object): Use
2497 gdbpy_convert_exception. Clean up Python object on failure.
2498
562fc849
PM
24992013-10-02 Phil Muldoon <pmuldoon@redhat.com>
2500
2501 * python/lib/gdb/command/frame_filters.py
2502 (InfoFrameFilter.list_frame_filters): Retrieve exception manually.
2503 (ShowFrameFilterPriority.invoke): Ditto.
2504
d7561cbb
KS
25052013-10-01 Keith Seitz <keiths@redhat.com>
2506
2507 * linespec.c (struct ls_parser): Make 'saved_arg' const.
2508 (parse_linespec): Make 'argptr' const.
2509 Remove temporary cast of 'argptr' to const char **.
2510 (decode_line_full): Pass const pointer to parse_linespec.
2511 (decode_line_1): Likewise.
2512 (decode_objc): Make local variable 'new_argptr' const.
2513 (find_function_symbols): Remove temporary cast to char *
2514 to find_imps.
2515 * objc-lang.c (find_imps): Make argument 'method' const.
2516 Return const.
2517 * objc-lang.h (find_imps): Likewise.
2518
25192013-10-01 Keith Seitz <keiths@redhat.com>
2520
2521 * completer.c (skip_quoted_chars): Make all arguments const.
2522 Return const.
2523 (skip_quoted): Likewise.
2524 * completer.h (skip_quoted_chars): Likewise.
2525 (skip_quoted): Likewise.
2526 * defs.h (skip_quoted): Remove duplicate declaration.
2527 * jv-exp.y: Include completer.h.
2528 (yylex): Remove unneccessary cast to char * fro skip_quoted.
2529 * p-exp.y: Include completer.h.
2530
25312013-10-01 Keith Seitz <keiths@redhat.com>
2532
2533 * c-exp.y (parse_number): Make first argument const.
2534 Make a copy of the input to manipulate.
2535 (c_parse_escape): Make first argument const.
2536 Make local variable 'tokptr' const.
2537 (parse_string_or_char): Make first two arguments const.
2538 (macro_original_text): Make const.
2539 (lex_one_token): Make local variable 'tokstart' const.
2540 Likewise for local variables named 'p'.
2541 Cast away const for struct stoken (temporary).
2542 * c-lang.h (c_parse_escpae): Make first argument const.
2543 * cli/cli-cmds.c (echo_command): Make local variable 'p'
2544 const.
2545 * cli/cli-setshow.c (do_set_command): Likewise for 'p' in
2546 var_string case.
2547 * f-exp.y (parse_number): Make first argument const.
2548 (match_string_literal): Make local variable 'tokstart'
2549 const.
2550 (yylex): Make local variable 'p' const.
2551 Cast away const for struct stoken (temporary).
2552 * go-exp.y (parse_number): Make first argument const.
2553 (parse_string_or_char): Likewise.
2554 Make local variable 'tokstart' const.
2555 (lex_one_token): Likewise for numerous locals called 'p'.
2556 Cast away const for struct stoken (temporary).
2557 * jv-exp.y (parse_number): Make first argument const.
2558 Make local variables 'tokstart' and 'tokptr' const.
2559 Cast away const for call to skip_quoted (temporary).
2560 (yylex): Make local variable 'p' const.
2561 Cast away const for struct stoken (temporary).
2562 * m2-exp.y (parse_number): Make local variable 'p' const.
2563 (yylex): Likewise for 'tokstart'.
2564 Cast away const for struct stoken (temporary).
2565 Make local variable 'p' const.
2566 * macroexp.c (get_character_constant): Pass a const string
2567 to c_parse_escape.
2568 (get_string_literal): Likewise.
2569 (macro_expand_next): Make first argument const.
2570 Cast away const for init_shared_buffer.
2571 * macroexp.h (macro_expand_next): Make first argument const.
2572 * p-exp.y (yylex): Make a local copy of 'lexptr'.
2573 Pass a const string to c_parse_escape.
2574 Make local variables 'p' and 'namestart' const.
2575 * parse.c (lexptr): Make const.
2576 (prev_lexptr): Likewise.
2577 (find_template_name_end): Return const.
2578 Make argument const, too.
2579 (parse_exp_in_context): Make first argument const.
2580 Remove the entire const_hack.
2581 (parse_exp_in_context_1): Make first argument const.
2582 * parser-defs.h (find_template_name_end): Return const.
2583 Make argument const, too.
2584 (lexptr): Make const.
2585 (prev_lexptr): Likewise.
2586 * utils.c (parse_escape): Make second argument const.
2587 * utils.h (parse_escape): Likewise.
2588
25892013-10-01 Keith Seitz <keiths@redhat.com>
2590
2591 * ada-exp.y (write_object_renaming): Update: struct stoken.ptr
2592 is now const.
2593 (block_lookup): Make 'raw_name' and 'name' const.
2594 * ada-lex.l (processString): Update for struct stoken.ptr.
2595 * c-exp.y (qualified_name : TYPENAME COLONCOLON '~' name): Likewise.
2596 (operator_stoken): Likewise.
2597 (lex_one_token): Remove temporary cast to char * for
2598 'yylval.sval.ptr'.
2599 * f-exp.y (yylex): Likewise.
2600 * gdb-types.c (lookup_struct_elt_type): Make argument 'name' const.
2601 * gdbtypes.h (lookup_struct_elt_type): Likewisee.
2602 * go-exp.y (lex_one_token): Remove temporary cast to char * for
2603 'yylval.sval.ptr'.
2604 * jv-exp.y (QualifiedName): Update for struct stoken.ptr.
2605 (yylex): Remove temporary cast to char * for 'yylval.sval.ptr'.
2606 * linespec.c (struct ls_parser): Make 'stream' const.
2607 (find_parameter_list_end): Make argument 'input' and local
2608 variable 'p' const.
2609 (linespec_lexer_lex_string): Make local variables 'start' and
2610 'p' const.
2611 Use skip_spaces_const instead of skip_spaces.
2612 (linespec_lexer_peek_token): Make local variable 'saved_stream'
2613 const.
2614 (parse_linespec): Temporarily cast 'argptr' to const for
2615 'parser->lexer.stream'.
2616 * m2-exp.y (yylex): Remove temporary cast to char * for
2617 'yylval.sval.ptr'.
2618 * objc-lang.c (add_msglist): Make local variable 'p' const.
2619 * p-exp.y (exp : exp '['): Update for struct stoken.ptr.
2620 (exp : STRING): Make 'sp' const.
2621 (parse_number): Make argument 'p' const.
2622 * parser-defs.h (struct stoken): Make 'ptr' const.
2623
193a8eac
DE
26242013-10-01 Doug Evans <dje@google.com>
2625
2626 * cli/cli-decode.c: Remove unnecessary inclusion of tui/tui.h.
2627
2213e2be
YQ
26282013-10-01 Yao Qi <yao@codesourcery.com>
2629
2630 * varobj.c (c_value_of_root): Remove declaration.
2631 (cplus_value_of_root, java_value_of_root): Likewise.
2632 (ada_value_of_root): Likewise.
2633 (struct language_specific) <value_of_root>: Remove.
2634 (languages): Update initialization.
2635 (check_scope): Move earlier.
2636 (c_value_of_root): Move earlier and rename to ...
2637 (value_of_root_1): ... this.
2638 (value_of_root): Caller update.
2639 (cplus_value_of_root, java_value_of_root): Remove.
2640 (ada_value_of_root): Remove.
2641
c573f273
YQ
26422013-10-01 Yao Qi <yao@codesourcery.com>
2643
2644 * varobj.c (varobj_format_string): Remove "unknown".
2645 (languages): Remove the first element.
2646 * varobj.h (enum varobj_languages): Remove vlang_c.
2647
56250258
YQ
26482013-10-01 Yao Qi <yao@codesourcery.com>
2649
2650 * varobj.c (struct language_specific) <language>: Remove.
2651 (languages): Update the initialization.
2652
29f9ebfa
YQ
26532013-10-01 Yao Qi <yao@codesourcery.com>
2654
2655 * arm-wince-tdep.c: Remove inclusion of "solib.h" and
2656 "solib-target.h". Include "windows-tdep.h".
2657 (arm_wince_init_abi): Call windows_init_abi. Remove call to
2658 set_solib_ops and set_gdbarch_has_dos_based_file_system.
2659 * configure.tgt (arm*-wince-pe | arm*-*-mingw32ce*): Append
2660 windows-tdep.o to gdb_target_obs.
2661
64870a42
YQ
26622013-10-01 Yao Qi <yao@codesourcery.com>
2663
2664 * amd64-windows-tdep.c: Remove inclusion of "solib.h" and
2665 "solib-target.h".
2666 (amd64_windows_init_abi): Don't call set_solib_ops and
2667 set_gdbarch_iterate_over_objfiles_in_search_order. Call
2668 windows_init_abi instead.
2669 * i386-cygwin-tdep.c: Remove inclusion of "solib.h" and
2670 "solib-target.h".
2671 (i386_cygwin_init_abi): Don't call set_solib_ops,
2672 set_gdbarch_has_dos_based_file_system and
2673 set_gdbarch_iterate_over_objfiles_in_search_order. Call
2674 windows_init_abi instead.
2675 * windows-tdep.c: Include "solib.h" and "solib-target.h".
2676 (windows_init_abi): New function.
2677 (windows_iterate_over_objfiles_in_search_order): Make it
2678 static.
2679 * windows-tdep.h (windows_init_abi): Declare.
2680 (windows_iterate_over_objfiles_in_search_order): Remove
2681 declaration.
2682
0aebdefa
JB
26832013-10-01 Jerome Guitton <guitton@adacore.com>
2684
2685 Checked in by Joel Brobecker <brobecker@adacore.com>
2686 * system-gdbinit/elinos.py (get_elinos_environment): Return an
2687 incomplete dictionnary instead of None in case of missing
2688 environment variables.
2689 (elinos_init): in case of an incomplete environment, best
2690 effort to load system libraries instead of abort.
2691
1c8e84b0
JB
26922013-10-01 Joel Brobecker <brobecker@adacore.com>
2693
2694 * ada-lang.c (ada_has_this_exception_support): Ignore
2695 mst_solib_trampoline minimal symbols.
2696
61d82a0d
TG
26972013-09-30 Tristan Gingold <gingold@adacore.com>
2698
2699 * i386-darwin-nat.c (darwin_complete_target): Install methods for
2700 hardware watchpoint.
2701 (i386_darwin_dr_set): Support 32 and 64 bit states.
2702 (i386_darwin_dr_get): Likewise.
2703 (i386_darwin_dr_set_control): Make static.
2704 (i386_darwin_dr_set_addr, i386_darwin_dr_get_addr)
2705 (i386_darwin_dr_get_status, i386_darwin_dr_get_control): Likewise.
2706
dfd4cc63
LM
27072013-09-30 Luis Machado <lgustavo@codesourcery.com>
2708
2709 * aarch64-linux-nat.c: Replace PIDGET with ptid_get_pid.
2710 Replace TIDGET with ptid_get_lwp.
2711 Replace GET_LWP with ptid_get_lwp.
2712 * aix-thread.c (BUILD_THREAD, BUILD_LWP): Remove.
2713 Replace BUILD_THREAD with ptid_build.
2714 Replace BUILD_LWP with ptid_build.
2715 Replace PIDGET with ptid_get_pid.
2716 Replace TIDGET with ptid_get_lwp.
2717 * alphabsd-nat.c: Replace PIDGET with ptid_get_pid.
2718 * amd64-linux-nat.c: Replace PIDGET with ptid_get_pid.
2719 Replace TIDGET with ptid_get_lwp.
2720 * amd64bsd-nat.c: Replace PIDGET with ptid_get_pid.
2721 * arm-linux-nat.c: Replace PIDGET with ptid_get_pid.
2722 Replace TIDGET with ptid_get_lwp.
2723 Replace GET_LWP with ptid_get_lwp.
2724 * armnbsd-nat.c: Replace PIDGET with ptid_get_pid.
2725 * auxv.c: Likewise.
2726 * breakpoint.c: Likewise.
2727 * common/ptid.c (ptid_is_pid): Condense check for
2728 null_ptid and minus_one_ptid.
2729 (ptid_lwp_p): New function.
2730 (ptid_tid_p): New function.
2731 * common/ptid.h: Update comments for accessors.
2732 (ptid_lwp_p): New prototype.
2733 (ptid_tid_p): New prototype.
2734 * defs.h (PIDGET, TIDGET, MERGEPID): Do not define.
2735 * gcore.c: Replace PIDGET with ptid_get_pid.
2736 * gdbthread.h: Likewise.
2737 * gnu-nat.c: Likewise.
2738 * hppa-linux-nat.c: Replace PIDGET with ptid_get_pid.
2739 Replace TIDGET with ptid_get_lwp.
2740 * hppabsd-nat.c: Replace PIDGET with ptid_get_pid.
2741 * hppanbsd-nat.c: Likewise.
2742 * i386-linux-nat.c: Replace PIDGET with ptid_get_pid.
2743 Replace TIDGET with ptid_get_lwp.
2744 * i386bsd-nat.c: Replace PIDGET with ptid_get_pid.
2745 * ia64-linux-nat.c: Replace PIDGET with ptid_get_pid.
2746 * infcmd.c: Likewise.
2747 * inferior.h: Likewise.
2748 * inflow.c: Likewise.
2749 * infrun.c: Likewise.
2750 * linux-fork.c: Likewise.
2751 * linux-nat.c: Replace PIDGET with ptid_get_pid.
2752 Replace GET_PID with ptid_get_pid.
2753 Replace is_lwp with ptid_lwp_p.
2754 Replace GET_LWP with ptid_get_lwp.
2755 Replace BUILD_LWP with ptid_build.
2756
5b4e221c
MF
27572013-09-28 Mike Frysinger <vapier@gentoo.org>
2758
2759 * common/linux-btrace.c: Move sys/syscall.h out of the
2760 HAVE_LINUX_PERF_EVENT_H check and wrap it in HAVE_SYS_SYSCALL_H.
2761 Also check for SYS_perf_event_open before attempting to buid.
2762
57d63ce2
DE
27632013-09-27 Doug Evans <dje@google.com>
2764
19ac8c2e
DE
2765 * dwarf2read.c (dwarf2_section_info): Add comment.
2766 (dwp_file): Split loaded_cutus into loaded_cus, loaded_tus.
2767 All uses updated.
2768 (dwarf2_section_empty_p): Rename arg from "info" to "section".
2769 (dwarf2_read_section): Delete unused local "header". Add section
2770 name to error message.
2771 (create_dwo_in_dwp): Tweak comment.
2772 (MAX_NR_DWO_SECTIONS): Combine count of .debug_macro + .debug_macinfo.
2773
a32a8923
DE
2774 * dwarf2read.c (die_reader_specs): Tweak comment.
2775 (get_section_bfd_owner, get_section_bfd_section): New functions.
2776 (get_section_name, get_section_file_name): New functions.
2777 (get_section_id, get_section_flags): New functions.
2778 (*): Use new functions to access section fields.
2779
57d63ce2
DE
2780 * dwarf2read.c (struct dwo_file): Add/tweak comments.
2781 (lookup_dwo_unit_in_dwp): Renamed from lookup_dwo_in_dwp. Remove
2782 arg "htab". All callers updated.
2783 (create_debug_types_hash_table): Remove redundant copy of
2784 abbrev_section.
2785 (create_dwo_in_dwp): Tweak comments.
2786 (read_str_index): Tweak comment. Record dwarf form name in static
2787 local.
2788
3736004f
PA
27892013-09-27 Pedro Alves <palves@redhat.com>
2790
2791 * remote.h (REMOTE_SYSROOT_PREFIX): New define.
2792 (remote_filename_p): Add comment.
2793 * remote.c (remote_filename_p): Adjust to use
2794 REMOTE_SYSROOT_PREFIX.
2795 * solib.c (solib_find): When deciding whether we need to add a
2796 directory separator, check whether the sysroot is "remote:"
2797 instead of checking whether the patch has a drive spec. Add
2798 comments.
2799
5b5596ff
PA
28002013-09-27 Pedro Alves <palves@redhat.com>
2801
2802 * remote.c (struct stop_reply) <solibs_changed, replay_event>:
2803 Delete fields.
2804 (remote_parse_stop_reply): Adjust, setting event->ws.kind
2805 directly.
2806
b5eef7aa
JK
28072013-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2808
2809 Fix set debug frame output.
2810 * frame.c (fprint_frame_type): Add TAILCALL_FRAME entry. Move
2811 SENTINEL_FRAME entry lower to match enum frame_type order.
2812
5b856f36
PM
28132013-09-26 Pierre Muller <muller@sourceware.org>
2814
2815 Replace constant values 8 to 15 by AMD64_R8_REGNUM to
2816 AMD64_R15_REGNUM when a register index is expected.
2817 * amd64-windows-tdep.c (amd64_windows_dummy_call_integer_regs):
2818 Substitute in array.
2819 * amd64-tdep.c (amd64_dwarf_regmap): Ditto.
2820 (amd64_push_arguments): Substitute in integer_regnum array.
2821
ade7ed9e
DE
28222013-09-25 Doug Evans <dje@google.com>
2823
d3e81981
DE
2824 * objfiles.c (allocate_objfile): Move comment to better place.
2825
8fb8eb5c
DE
2826 New option "set debug symfile on".
2827 * NEWS: Mention "set debug symfile".
2828 * Makefile.in (SFILES): Add symfile-debug.c.
2829 (COMMON_OBS): Add symfile-debug.o.
2830 * elfread.c (elf_symfile_read): Use objfile_set_sym_fns to set the
2831 objfile's symbol functions.
2832 * objfiles.h (objfile_set_sym_fns): Declare.
2833 * symfile-debug.c: New file.
2834 * symfile.c (syms_from_objfile_1): Use objfile_set_sym_fns to set the
2835 objfile's symbol functions.
2836 (reread_symbols): Ditto.
2837
c256e171
DE
2838 * symfile.h (struct sym_fns): Delete member "sym_flavour".
2839 All uses updated.
2840 (add_symtab_fns): Update prototype.
2841 * symfile.c (sym_fns_ptr): Delete. Replace with ...
2842 (registered_sym_fns): ... this.
2843 (symtab_fns): Update.
2844 (add_symtab_fns): New arg "flavour". All callers updated.
2845 (find_sym_fns): Rewrite to use new sym_fns registry.
2846
f56ce883
DE
2847 * symfile.h (struct sym_fns): Add "objfile" argument to
2848 sym_read_linetable. All uses updated.
2849
20c681d1
DE
2850 * symtab.c (domain_name, search_domain_name): New functions.
2851 * symtab.h (domain_name, search_domain_name): Declare.
2852
ade7ed9e
DE
2853 * symfile.h (struct quick_symbol_functions): Reorg arg list of
2854 map_matching_symbols so objfile is first. All uses updated.
2855 * dwarf2read.c (dw2_map_matching_symbols): Update signature.
2856 * psymtab.c (map_matching_symbols_psymtab): Update signature.
2857
7d760051
UW
28582013-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
2859
2860 PR shlibs/8882
2861 * solib-svr4.c (svr4_read_so_list): Skip the vDSO when reading
2862 link map entries.
2863
020f7036
DE
28642013-09-24 Doug Evans <dje@google.com>
2865
2866 * objfiles.c (free_objfile): Move comment.
2867
598402f0
JB
28682013-09-24 Joel Brobecker <brobecker@adacore.com>
2869
2870 * ada-exp.y (string_to_operator): Delete.
2871 (dummy_string_to_ada_operator): Delete.
2872
bf4d6c1c
JB
28732013-09-24 Joel Brobecker <brobecker@adacore.com>
2874
2875 Revert:
2876 * i386-tdep.h (enum amd64_reg_class): New, moved here from
2877 amd64-tdep.c.
2878 (struct gdbarch_tdep): Add fields call_dummy_num_integer_regs,
2879 call_dummy_integer_regs, and classify.
2880 * amd64-tdep.h (amd64_classify): Add declaration.
2881 * amd64-tdep.c (amd64_dummy_call_integer_regs): New static constant.
2882 (amd64_reg_class): Delete, moved to i386-tdep.h.
2883 (amd64_classify): Make non-static. Move declaration to amd64-tdep.h.
2884 Replace call to amd64_classify by call to tdep->classify.
2885 (amd64_push_arguments): Get the list of registers to use for
2886 passing integer parameters from the gdbarch tdep structure,
2887 rather than using a hardcoded one. Replace calls to amd64_classify
2888 by calls to tdep->classify.
2889 (amd64_push_dummy_call): Get the register number used for
2890 the "hidden" argument from tdep->call_dummy_integer_regs.
2891 (amd64_init_abi): Initialize tdep->call_dummy_num_integer_regs
2892 and tdep->call_dummy_integer_regs. Set tdep->classify.
2893
849e9755
JB
28942013-09-24 Joel Brobecker <brobecker@adacore.com>
2895
2896 Revert:
2897 * i386-tdep.h (gdbarch_tdep): Add field memory_args_by_pointer.
2898 * amd64-tdep.c (amd64_push_arguments): Add handling of architectures
2899 where tdep->memory_args_by_pointer is non-zero.
2900
c1459fd6
JB
29012013-09-24 Joel Brobecker <brobecker@adacore.com>
2902
2903 Revert:
2904 * i386-tdep.h (struct gdbarch_tdep): Add new field
2905 integer_param_regs_saved_in_caller_frame.
2906 * amd64-tdep.c (amd64_push_dummy_call): Allocate some memory on
2907 stack if tdep->integer_param_regs_saved_in_caller_frame is set.
2908
20c2e3e0
JB
29092013-09-24 Joel Brobecker <brobecker@adacore.com>
2910
874440b8 2911 * amd64-windows-tdep.c: #include "value.h"
20c2e3e0
JB
2912 (amd64_windows_classify): Delete.
2913 (amd64_windows_passed_by_integer_register)
2914 (amd64_windows_passed_by_xmm_register)
2915 (amd64_windows_passed_by_pointer)
2916 (amd64_windows_adjust_args_passed_by_pointer)
2917 (amd64_windows_store_arg_in_reg, amd64_windows_push_arguments)
2918 (amd64_windows_push_dummy_call): New functions.
2919 (amd64_windows_init_abi): Remove setting of
2920 tdep->call_dummy_num_integer_regs, tdep->call_dummy_integer_regs,
2921 tdep->classify, tdep->memory_args_by_pointer and
2922 tdep->integer_param_regs_saved_in_caller_frame.
2923 Add call to set_gdbarch_push_dummy_call.
2924
82bf32bc
JK
29252013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2926
2927 * dwarf2read.c (open_and_init_dwp_file): Try open_dwp_file also with
2928 objfile->original_name.
2929
24ba069a
JK
29302013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2931
2932 Pass down original filename for objfile.
2933 * coffread.c (coff_symfile_read): Update symbol_file_add_separate call.
2934 * elfread.c (elf_symfile_read): Likewise.
2935 * jit.c (jit_object_close_impl): Update allocate_objfile call, no
2936 longer set ORIGINAL_NAME.
2937 (jit_bfd_try_read_symtab): Update symbol_file_add_from_bfd call.
2938 * jv-lang.c (get_dynamics_objfile): Update allocate_objfile call.
2939 * machoread.c (macho_add_oso_symfile): Add parameter name. Update
2940 symbol_file_add_from_bfd call.
2941 (macho_symfile_read_all_oso): Update two macho_add_oso_symfile calls.
2942 (macho_check_dsym): Add parameter filenamep. Change function comment.
2943 Set *filenamep.
2944 (macho_symfile_read): New variable dsym_filename. Update
2945 macho_check_dsym call. Use it for symbol_file_add_separate.
2946 * objfiles.c (allocate_objfile): Add parameter name. New comment for
2947 it. Use it for objfile->original_name.
2948 (objfile_name): Return OBFD's filename, if available.
2949 * objfiles.h (allocate_objfile): Add new parameter name.
2950 * solib.c (solib_read_symbols): Update symbol_file_add_from_bfd call.
2951 * symfile-mem.c (symbol_file_add_from_memory): Update
2952 symbol_file_add_from_bfd call.
2953 * symfile.c (read_symbols): Update symbol_file_add_separate call, new
2954 comment for it.
2955 (symbol_file_add_with_addrs): New parameter name, add function comment
2956 for it. Remove variable name. Update allocate_objfile call.
2957 (symbol_file_add_separate): New parameter name, add function comment
2958 for it. Update symbol_file_add_with_addrs call.
2959 (symbol_file_add_from_bfd): New parameter name. Update
2960 symbol_file_add_with_addrs call.
2961 (symbol_file_add): Update symbol_file_add_from_bfd call.
2962 (reread_symbols): New variable original_name. Save
2963 objfile->original_name by it.
2964 * symfile.h (symbol_file_add_from_bfd, symbol_file_add_separate): Add
2965 second parameter.
2966
4262abfb
JK
29672013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2968
2969 Code cleanup: Add objfile_name accessor function.
2970 * ada-lang.c (is_known_support_routine): Use objfile_name.
2971 * auto-load.c (source_gdb_script_for_objfile)
2972 (auto_load_objfile_script): Likewise.
2973 * coffread.c (coff_symtab_read, read_one_sym): Likewise.
2974 * dbxread.c (dbx_symfile_read): Likewise.
2975 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
2976 * dwarf2loc.c (locexpr_describe_location_piece): Likewise.
2977 * dwarf2read.c (dwarf2_get_dwz_file, dwarf2_read_index)
2978 (dw2_symtab_iter_next, dw2_expand_symtabs_matching)
2979 (lookup_dwp_signatured_type, lookup_dwo_unit)
2980 (dwarf2_build_psymtabs_hard, scan_partial_symbols, process_queue)
2981 (fixup_go_packaging, process_imported_unit_die, dwarf2_physname)
2982 (read_import_statement, create_dwo_cu, open_and_init_dwp_file)
2983 (lookup_dwo_cutu, read_call_site_scope, dwarf2_ranges_read)
2984 (dwarf2_record_block_ranges, read_common_block, read_typedef)
2985 (read_subrange_type, load_partial_dies, read_partial_die)
2986 (read_addr_index_1, read_str_index, dwarf_decode_lines_1)
2987 (die_containing_type, build_error_marker_type, lookup_die_type)
2988 (follow_die_ref_or_sig, follow_die_ref, dwarf2_fetch_die_loc_sect_off)
2989 (dwarf2_fetch_constant_bytes, follow_die_sig, get_signatured_type)
2990 (get_DW_AT_signature_type, write_psymtabs_to_index)
2991 (save_gdb_index_command): Likewise.
2992 * elfread.c (find_separate_debug_file_by_buildid, elf_symfile_read):
2993 Likewise.
2994 * expprint.c (dump_subexp_body_standard): Likewise.
2995 * gdbtypes.c (type_name_no_tag_or_error): Likewise.
2996 * jit.c (jit_object_close_impl): Use the objfile field name renamed to
2997 original_name.
2998 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New variable
2999 obj_name, use objfile_name for it, use the variable.
3000 (try_thread_db_load_from_pdir, has_libpthread, thread_db_new_objfile):
3001 Use objfile_name.
3002 * machoread.c (macho_symtab_read, macho_check_dsym)
3003 (macho_symfile_relocate): Likewise.
3004 * maint.c (maintenance_translate_address): Likewise.
3005 * minidebug.c (find_separate_debug_file_in_section): Likewise.
3006 * minsyms.c (install_minimal_symbols): Likewise.
3007 * objfiles.c (allocate_objfile): Use the objfile field name renamed to
3008 original_name.
3009 (filter_overlapping_sections): Use objfile_name.
3010 (objfile_name): New function.
3011 * objfiles.h (struct objfile): Rename field name to original_name.
3012 (objfile_name): New prototype.
3013 * printcmd.c (sym_info, address_info): Use objfile_name.
3014 * probe.c (parse_probes, collect_probes, compare_probes)
3015 (info_probes_for_ops): Likewise.
3016 * progspace.c (clone_program_space): Likewise.
3017 * psymtab.c (require_partial_symbols, dump_psymtab, allocate_psymtab)
3018 (maintenance_info_psymtabs): Likewise.
3019 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
3020 (source_section_scripts): Likewise.
3021 * python/py-objfile.c (objfpy_get_filename): Likewise.
3022 * python/py-progspace.c (pspy_get_filename): Likewise.
3023 * solib-aix.c (solib_aix_get_toc_value): Likewise.
3024 * solib-som.c (match_main, som_solib_section_offsets): Likewise.
3025 * solib.c (solib_read_symbols): Likewise.
3026 * stabsread.c (scan_file_globals): Likewise.
3027 * stap-probe.c (handle_stap_probe): Likewise.
3028 * symfile.c (symbol_file_clear, separate_debug_file_exists)
3029 (find_separate_debug_file_by_debuglink): Likewise.
3030 (reread_symbols): Likewise. Use the objfile field name renamed to
3031 original_name.
3032 (allocate_symtab): Use objfile_name.
3033 * symmisc.c (print_symbol_bcache_statistics, print_objfile_statistics)
3034 (dump_objfile, dump_msymbols, dump_symtab_1)
3035 (maintenance_print_msymbols, maintenance_print_objfiles)
3036 (maintenance_info_symtabs, maintenance_check_symtabs): Likewise.
3037 * target.c (target_translate_tls_address, target_info): Likewise.
3038 * xcoffread.c (xcoff_initial_scan): Make variable name const. Use
3039 objfile_name.
3040
4721dc18
JK
30412013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3042
3043 Code cleanup.
3044 * probe.c (parse_probes): Rename variable objfile_name to
3045 objfile_namestr.
3046
a61d6db8
JK
30472013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3048
3049 Remove solib-sunos.c.
3050 * Makefile.in (ALLDEPFILES): Remove solib-sunos.c.
3051 * config/m68k/obsd.mh (NATDEPFILES): Remove solib-sunos.o.
3052 * objfiles.c (rt_common_objfile): Remove.
3053 (free_objfile): Remove rt_common_objfile comparison.
3054 * objfiles.h (rt_common_objfile): Remove.
3055 * solib-sunos.c: Remove.
3056 * symfile.c (reread_symbols): Remove solib-sunos.c comment.
3057
2659903b
JK
30582013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3059
3060 Remove a.out NetBSD and OpenBSD hosts.
3061 * NEWS (Removed native configurations): New.
3062 * config/arm/nbsdaout.mh: Remove.
3063 * config/i386/nbsdaout.mh: Remove.
3064 * config/i386/obsdaout.mh: Remove.
3065 * config/m68k/nbsdaout.mh: Remove.
3066 * config/sparc/nbsdaout.mh: Remove.
3067 * config/vax/nbsdaout.mh: Remove.
3068 * configure.host (arm*-*-netbsd*, i[34567]86-*-netbsd*)
3069 (i[34567]86-*-openbsd[0-2].*, i[34567]86-*-openbsd3.[0-3])
3070 (m68*-*-netbsd*, sparc-*-netbsd*, vax-*-netbsd*): Add them to obsolete
3071 error.
3072 (arm*-*-netbsd*, i[34567]86-*-netbsd*, i[34567]86-*-openbsd[0-2].*)
3073 (i[34567]86-*-openbsd3.[0-3], m68*-*-netbsd*, sparc-*-netbsdaout*)
3074 (sparc-*-netbsd*, vax-*-netbsd*): Remove.
3075
f60e2d5c
TT
30762013-09-23 Tom Tromey <tromey@redhat.com>
3077
3078 * linespec.c (struct minsym_and_objfile): Remove.
3079 (minsym_and_objfile_d): Remove.
3080 (struct linespec, struct collect_info, linespec_parse_basic)
3081 (convert_linespec_to_sals, linespec_parser_delete, decode_objc)
3082 (compare_msymbols, find_method, find_function_symbols)
3083 (find_linespec_symbols, struct collect_minsyms, compare_msyms)
3084 (add_minsym, search_minsyms_for_name): Update.
3085
d3eaaf66
AB
30862013-09-23 Andrew Burgess <aburgess@broadcom.com>
3087
3088 * regcache.c: Add include of valprint.h.
3089 (dump_endian_bytes): Delete.
3090 (regcache_dump): Use print_hex_chars not dump_endian_bytes.
3091
2cc762b5
AB
30922013-09-23 Andrew Burgess <aburgess@broadcom.com>
3093
3094 * sh64-tdep.c (sh64_do_fp_register): Use print_hex_chars.
3095
96181529
PA
30962013-09-19 Pedro Alves <palves@redhat.com>
3097
3098 * breakpoint.c (remove_threaded_breakpoints): Skip non-user
3099 breakpoints.
3100
9b3f3ee6
TS
31012013-09-19 Pedro Alves <palves@redhat.com>
3102 Thomas Schwinge <thomas@codesourcery.com>
3103 Yue Lu <hacklu.newborn@gmail.com>
3104
3105 * gnu-nat.c (gnu_read_inferior, gnu_write_inferior): Make static.
3106 Take a gdb_byte pointer instead of a char pointer.
3107
3108 * gnu-nat.c (gnu_xfer_memory): Adjust interface as
3109 gnu_xfer_partial helper.
3110 (gnu_xfer_partial): New function.
3111 (gnu_target): Don't install a deprecated_xfer_memory hook.
3112 Install a to_xfer_partial hook.
3113
69150c3d
JK
31142013-09-19 Jan Kratochvil <jan.kratochvil@redhat.com>
3115
3116 Constification.
3117 * main.c (captured_main): Replace catch_command_errors by
3118 catch_command_errors_const. Twice.
3119 * symfile.c (symbol_file_add_main_1): Make args parameter const.
3120 (symbol_file_add): Make name parameter const.
3121 (symbol_file_add_main, symbol_file_add_main_1): Make args parameter const.
3122 (symfile_bfd_open): Make name parameter const, rename it to cname. Add
3123 variable name. Change their usage accordingly.
3124 * symfile.h (symbol_file_add, symfile_bfd_open): Make first parameter
3125 const.
3126 (symbol_file_add_main): Make args parameter const.
3127
086850b2
UW
31282013-09-18 Raunaq Bathija <raunaq12@in.ibm.com>
3129 Ulrich Weigand <uweigand@de.ibm.com>
3130
3131 * xcoffread.c (struct coff_symbol): Use CORE_ADDR as type
3132 of c_value member.
3133 (read_xcoff_symtab): Use CORE_ADDR as type of fcn_start_addr.
3134
ca08a94c 31352013-09-18 Pedro Alves <palves@redhat.com>
d255f61f 3136 Yue Lu <hacklu.newborn@gmail.com>
ca08a94c
PA
3137
3138 * gnu-nat.c (inf_validate_procs, gnu_wait, gnu_resume)
3139 (gnu_create_inferior)
3140 (gnu_attach, gnu_thread_alive, gnu_pid_to_str, cur_thread)
3141 (set_sig_thread_cmd): Use the lwpid field of ptids to
3142 store/extract thread ids instead of the tid field.
3143 * i386gnu-nat.c (gnu_fetch_registers): Adjust.
3144
e4c6a2c4
AB
31452013-09-18 Andrew Burgess <aburgess@broadcom.com>
3146
3147 * infcmd.c (default_print_one_register_info): Add detection of
3148 optimized out values.
3149 (default_print_registers_info): Switch to using
3150 get_frame_register_value.
3151
58c48e72
MM
31522013-09-18 Markus Metzger <markus.t.metzger@intel.com>
3153
3154 * infrun.c (handle_inferior_event): Check if we know the
3155 function start address before setting a resume breakpoint.
3156
c8d37639
PA
31572013-09-18 Pedro Alves <palves@redhat.com>
3158
3159 * gnu-nat.c (set_sig_thread_cmd): Compare the thread's ptid to
3160 minus_one_ptid instead of looking at the ptid's tid field and
3161 comparing that to -1.
3162
71926e28
AB
31632013-09-18 Andrew Burgess <aburgess@broadcom.com>
3164
3165 * main.h (get_gdb_program_name): Remove extra whitespace.
3166
c88a1531
AB
31672013-09-18 Andrew Burgess <aburgess@broadcom.com>
3168
3169 * main.h (get_gdb_program_name): Add declaration.
3170 * main.c (get_gdb_program_name): Add definition.
3171
4390d890
DE
31722013-09-17 Doug Evans <dje@google.com>
3173
3174 * dwarf2read.c: Move definitions of complaint functions to after
3175 forward declarations of local functions.
3176
49fa26b0
PA
31772013-09-17 Muhammad Waqas <mwaqas@codesourcery.com>
3178 Pedro Alves <palves@redhat.com>
3179
3180 PR gdb/11568
3181 * breakpoint.c (remove_threaded_breakpoints): New function.
3182 (_initialize_breakpoint): Attach remove_threaded_breakpoints
3183 as thread_exit observer.
3184
08d72866
PA
31852013-09-17 Pedro Alves <palves@redhat.com>
3186
3187 PR gdb/15911
3188 * ada-tasks.c (task_command_1): Adjust call to print_stack_frame.
3189 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd):
3190 * corelow.c (core_open):
3191 * frame.h (print_stack_frame, print_frame_info): New
3192 'set_current_sal' parameter.
3193 * infcmd.c (finish_command, kill_command): Adjust call to
3194 print_stack_frame.
3195 * inferior.c (inferior_command): Likewise.
3196 * infrun.c (normal_stop): Likewise.
3197 * linux-fork.c (linux_fork_context): Likewise.
3198 * record-full.c (record_full_goto_entry, record_full_restore):
3199 Likewise.
3200 * remote-mips.c (common_open): Likewise.
3201 * stack.c (print_stack_frame): New 'set_current_sal' parameter.
3202 Use it.
3203 (print_frame_info): New 'set_current_sal' parameter. Set the last
3204 displayed sal depending on the new paremeter instead of looking at
3205 print_what.
3206 (backtrace_command_1, select_and_print_frame, frame_command)
3207 (current_frame_command, up_command, down_command): Adjust call to
3208 print_stack_frame.
3209 * thread.c (print_thread_info, restore_selected_frame)
3210 (do_captured_thread_select): Adjust call to print_stack_frame.
3211 * tracepoint.c (tfind_1): Likewise.
3212 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
3213 (mi_cmd_stack_info_frame): Likewise.
3214 * mi/mi-interp.c (mi_on_normal_stop): Likewise.
3215 * mi/mi-main.c (mi_cmd_exec_return, mi_cmd_trace_find): Likewise.
3216
6bc305f5
SDJ
32172013-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
3218
3219 * value.c (isvoid_internal_fn): Replace "parameter" with
3220 "argument".
3221
0a7cfe2c
SS
32222013-09-16 Stan Shebs <stan@codesourcery.com>
3223
3224 * README: Update references to writing code for GDB.
3225 * configure.ac (build_warnings): Remove obsolete comment.
3226 * configure: Regenerate.
3227 * gdbarch.sh: Remove references to gdbint.texinfo.
3228 * gdbarch.h: Regenerate.
3229 * gdbtypes.c (objfile_type): Remove comments referencing internals
3230 manual and D10V.
3231
a280dbd1
SDJ
32322013-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
3233
3234 * NEWS: Mention new convenience function $_isvoid.
3235 * value.c (isvoid_internal_fn): New function.
3236 (_initialize_values): Add new convenience function $_isvoid.
3237
04a83fee
PM
32382013-09-16 Pierre Muller <muller@sourceware.org>
3239
3240 * arm-linux-tdep.c: Add "elf/common.h" header.
3241 Remove AT_HWCAP macro definintion as it is provided in
3242 added include file.
3243 * s390-tdep.c: Remove system header <elf.h>
3244 Add "elf/common.h" header for AT_HWCAP definition.
3245 (s390_core_read_description): Use correct CORE_ADDR
3246 for hwcap local variable used as third parameter
3247 of function target_auxv_search.
3248
88505fac
PM
32492013-09-14 Pierre Muller <muller@sourceware.org>
3250 Tom Tromey <tromey@redhat.com>
3251 Pedro Alves <palves@redhat.com>
3252
3253 * common/filestuff.c (gdb_fopen_cloexec): Do not try to use "e"
3254 mode if operating system doesn't know O_CLOEXEC.
3255
d3846e71
JK
32562013-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3257
3258 Code cleanup.
3259 * symfile.c (reread_symbols): Move variable obfd_filename to a more
3260 inner block.
3261
4ac33720
UW
32622013-09-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
3263
3264 * NEWS: Mention TDB support.
3265 * features/s390-tdb.xml: New file.
3266 * features/s390-te-linux64.xml: New file.
3267 * features/s390x-te-linux64.xml: New file.
3268 * features/Makefile (WHICH): Add new tdescs above.
3269 (s390-te-linux64-expedite): Set.
3270 (s390x-te-linux64-expedite): Set.
3271 * features/s390-te-linux64.c: New file (generated).
3272 * features/s390x-te-linux64.c: New file (generated).
3273 * regformats/s390-te-linux64.dat: New file (generated).
3274 * regformats/s390x-te-linux64.dat: New file (generated).
3275 * s390-tdep.h (HWCAP_S390_HIGH_GPRS): Define.
3276 (HWCAP_S390_TE): Likewise.
3277 (S390_TDB_DWORD0_REGNUM): Likewise.
3278 (S390_TDB_DWORD0_REGNUM): Likewise.
3279 (S390_TDB_ABORT_CODE_REGNUM): Likewise.
3280 (S390_TDB_CONFLICT_TOKEN_REGNUM): Likewise.
3281 (S390_TDB_ATIA_REGNUM): Likewise.
3282 (S390_TDB_R0_REGNUM): Likewise.
3283 (S390_TDB_R1_REGNUM): Likewise.
3284 (S390_TDB_R2_REGNUM): Likewise.
3285 (S390_TDB_R3_REGNUM): Likewise.
3286 (S390_TDB_R4_REGNUM): Likewise.
3287 (S390_TDB_R5_REGNUM): Likewise.
3288 (S390_TDB_R6_REGNUM): Likewise.
3289 (S390_TDB_R7_REGNUM): Likewise.
3290 (S390_TDB_R8_REGNUM): Likewise.
3291 (S390_TDB_R9_REGNUM): Likewise.
3292 (S390_TDB_R10_REGNUM): Likewise.
3293 (S390_TDB_R11_REGNUM): Likewise.
3294 (S390_TDB_R12_REGNUM): Likewise.
3295 (S390_TDB_R13_REGNUM): Likewise.
3296 (S390_TDB_R14_REGNUM): Likewise.
3297 (S390_TDB_R15_REGNUM): Likewise.
3298 (S390_NUM_REGS): Increase.
3299 (S390_IS_TDBREGSET_REGNUM): New macro.
3300 (s390_regmap_tdb): Declare.
3301 (s390_sizeof_tdbregset): Define.
3302 (tdesc_s390_te_linux64): Declare.
3303 (tdesc_s390x_te_linux64): Likewise.
3304 * s390-tdep.c: Add includes for "auxv.h", <elf.h>,
3305 "features/s390-te-linux64.c", and "features/s390x-te-linux64.c".
3306 (s390_regmap_tdb): New regmap.
3307 (s390_supply_tdb_regset): New function.
3308 (s390_tdb_regset): New regset.
3309 (s390_linux64v2_regset_sections): Add TDB regset to list.
3310 (s390x_linux64v2_regset_sections): Likewise.
3311 (s390_regset_from_core_section): Recognize TDB core note section.
3312 (s390_core_read_description): If HWCAP indicates TE support,
3313 select tdesc_s390_te_linux64 or tdesc_s390_s390x_te_linux64.
3314 (s390_gdbarch_init): Handle TDB regset.
3315 (_initialize_s390_tdep): Initialize new tdescs.
3316 * s390-nat.c (HWCAP_S390_HIGH_GPRS): Remove define.
3317 (have_regset_tdb): New variable.
3318 (s390_native_supply): Support register invalidation.
3319 (fetch_regset): Invalidate registers if ptrace yields ENODATA.
3320 (check_regset): Treat ENODATA as "regset exists".
3321 (s390_linux_fetch_inferior_registers): Add TDB.
3322 (s390_read_description): Check for TDB existence and select
3323 appropriate tdesc.
3324 * gdbserver/Makefile.in (clean): Add removal of new makefile
3325 targets.
3326 (s390-te-linux64.c): New makefile target.
3327 (s390x-te-linux64.c): Likewise.
3328 * gdbserver/configure.srv (srv_regobj): Append new objects
3329 s390-te-linux64.o and s390x-te-linux64.o.
3330 (srv_xmlfiles): Append new files s390-te-linux64.xml,
3331 s390x-te-linux64.xml, and s390-tdb.xml.
3332 * gdbserver/linux-s390-low.c (init_registers_s390_te_linux64): New
3333 declaration.
3334 (tdesc_s390_te_linux64): Likewise.
3335 (init_registers_s390x_te_linux64): Likewise.
3336 (tdesc_s390x_te_linux64): Likewise.
3337 (s390_check_regset): Treat ENODATA as "regset exists".
3338 (s390_arch_setup): Add TDB regset support.
3339 (initialize_low_arch): Initialize registers for new tdescs.
3340
2ccd1468
UW
33412013-09-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
3342
3343 * s390-tdep.h (S390_IS_GREGSET_REGNUM): New macro.
3344 (S390_IS_FPREGSET_REGNUM): New macro.
3345 * s390-tdep.c (s390_dwarf_regmap): Make const.
3346 (regnum_is_gpr_full): New function for replacing repeated code.
3347 (s390_pseudo_register_name): Use it.
3348 (s390_pseudo_register_type): Likewise.
3349 (s390_pseudo_register_read): Likewise.
3350 (s390_pseudo_register_write): Likewise.
3351 (s390_unwind_pseudo_register): Likewise.
3352 (s390_regmap_gregset): New format for regmap.
3353 (s390x_regmap_gregset): Likewise.
3354 (s390_regmap_fpregset): Likewise.
3355 (s390_regmap_upper): Likewise.
3356 (s390_regmap_last_break): Likewise.
3357 (s390_regmap_system_call): Likewise.
3358 (s390_supply_regset): Adjust to new regmap format.
3359 (s390_collect_regset): Likewise.
3360 * s390-nat.c (s390_native_supply): Adjust to new regmap format.
3361 (s390_native_collect): Likewise.
3362 (supply_gregset): Likewise.
3363 (fill_gregset): Likewise.
3364 (supply_fpregset): Likewise.
3365 (fill_fpregset): Likewise.
3366 (fetch_regset): Likewise.
3367 (store_regset): Likewise.
3368 (s390_linux_fetch_inferior_registers): Likewise.
3369 (s390_linux_fetch_inferior_registers): Likewise.
3370
1aa4cd77
AP
33712013-09-12 Andrew Pinski <apinski@cavium.com>
3372
3373 * aarch64-linux-nat.c (aarch64_linux_set_debug_regs): Zero out regs.
3374
d91fab15
UW
33752013-09-10 Andreas Arnez <arnez@linux.vnet.ibm.com>
3376
3377 * config/s390/s390.mh (NATDEPFILES): Add linux-waitpid.o.
3378
5a5d8ead
AB
33792013-09-09 Andrew Burgess <aburgess@broadcom.com>
3380
3381 * top.c (quit_confirm): Remove use of deprecated_init_ui_hook.
3382
1385f66c
PA
33832013-09-06 Pedro Alves <palves@redhat.com>
3384
3385 * remote-sim.c (dump_mem, gdbsim_fetch_register)
3386 (gdbsim_store_register, gdbsim_kill, gdbsim_load)
3387 (gdbsim_create_inferior, gdbsim_open, gdbsim_close)
3388 (gdbsim_detach, gdbsim_resume_inferior, gdbsim_wait)
3389 (gdbsim_files_info, gdbsim_mourn_inferior): Send debug output to
3390 gdb_stdlog.
3391
146ec4db
PA
33922013-09-06 Pedro Alves <palves@redhat.com>
3393
3394 * remote-sim.c (dump_mem): Constify buf parameter.
3395 gdbsim_xfer_inferior_memory): Rename to ...
3396 (gdbsim_xfer_memory): ... this. Adjust interface as
3397 target_xfer_partial helper.
3398 (gdbsim_xfer_partial): New function.
3399 (init_gdbsim_ops): Don't install a deprecated_xfer_memory hook.
3400 Install a to_xfer_partial hook. Send output to gdb_stdlog.
3401
fcde0081
PA
34022013-09-06 Pedro Alves <palves@redhat.com>
3403
3404 * remote-sim.c (gdbsim_xfer_inferior_memory): Use
3405 host_address_to_string, and send debug output to gdb_stdlog.
3406
749c8b38
RW
34072013-09-06 Ricard Wanderlof <ricardw@axis.com>
3408
3409 * Makefile.in (ALL_TARGET_OBS): Add cris-linux-tdep.o.
3410 * configure.tgt: Add cris-linux-tdep.o and linux-tdep.o to
3411 gdb_target_obs for cris target.
3412 * cris-tdep.c (struct gdbarch_tdep): Move to cris-tdep.h.
3413 (cris_gdbarch_init): Move calls to
3414 set_gdbarch_fetch_tls_load_module_address and
3415 set_solib_svr4_fetch_link_map_offsets to cris-linux-tdep.c.
3416 Add call to gdbarch_init_osabi.
3417 * cris-linux-tdep.c: New file.
3418 * cris-tdep.h: New file.
3419
43df09d9
AB
34202013-09-06 Andrew Burgess <aburgess@broadcom.com>
3421
3422 * tui/tui-io.c (tui_initialize_io): Remove legacy comment referring
3423 to deprecated_init_ui_hook.
3424
4d09c5b4
AB
34252013-09-06 Andrew Burgess <aburgess@broadcom.com>
3426
3427 * cli/cli-interp.c (_initialize_cli_interp): Add a
3428 command_loop_proc to interp_procs.
3429 * event-top.c (cli_command_loop): Change signature to match
3430 interp_command_loop_ftype.
3431 * event-top.h (cli_command_loop): Same.
3432 * interps.c (interp_new): Require every interpreter to have a
3433 command_loop_proc.
3434 (current_interp_command_loop): Just call the command_loop_proc on
3435 the current interpreter.
3436 * tui/tui-interp.c (_initialize_tui_interp): Add a
3437 command_loop_proc to interp_procs.
3438
8eb3d7b6
RW
34392013-09-06 Ricard Wanderlof <ricardw@axis.com>
3440
3441 * cris-tdep.c (cris_gdbarch_init): Add call to
3442 get_gdbarch_fetch_tls_load_module_address.
3443
18b3c2f5
RW
34442013-09-06 Ricard Wanderlof <ricardw@axis.com>
3445
3446 * cris-tdep.c (cris_elf_greg_t): Rename from elf_greg_t.
3447 (cris_elf_gregset_t): Rename from elf_gregset_t.
3448 (crisv32_elf_gregset_t): Adjust.
3449 (cris_supply_gregset, fetch_core_registers): Adjust.
3450
dc8636ef
RW
34512013-09-06 Ricard Wanderlof <ricardw@axis.com>
3452
3453 * cris-tdep.c (elf_greg_t): Change typedef to unsigned char[4]
3454
257e6d53
AB
34552013-09-05 Andrew Burgess <aburgess@broadcom.com>
3456
1581d8a7 3457 * defs.h (deprecated_command_loop_hook): Remove, including
257e6d53 3458 references in comments.
1581d8a7 3459 * interps.c (current_interp_command_loop): No longer use
257e6d53
AB
3460 deprecated_command_loop_hook.
3461 (clear_interpreter_hooks): Remove deprecated_command_loop_hook
3462 setup.
1581d8a7 3463 * top.c (deprecated_command_loop_hook): Remove.
257e6d53 3464
7c33b57c
PA
34652013-09-05 Pedro Alves <palves@redhat.com>
3466
3467 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): 'dwarf_regnum'
3468 local is now int instead of ULONGEST. Print it with %d
3469 instead of paddress.
3470
9f8edbd5
TG
34712013-09-05 Tristan Gingold <gingold@adacore.com>
3472
3473 * MAINTAINERS: Remove avr maintainership.
3474
d5b495b4
PA
34752013-09-05 Pedro Alves <palves@redhat.com>
3476
3477 * findvar.c (value_of_register): Rework in terms of
3478 value_of_register_lazy.
3479
40b91786
MB
34802013-09-05 Muhammad Bilal <mbilal@codesourcery.com>
3481
3482 * symfile.c (add_symbol_file_command): Remove trailing
3483 whitespaces and blank line after comment.
3484
6eed1678
PA
34852013-09-05 Pedro Alves <palves@redhat.com>
3486
3487 * tui/tui-regs.c (tui_register_format): Don't look at the
3488 register's name here. Return string representing register
3489 value instead of storing it in the data element.
3490 (tui_get_register): Compare register string representations
3491 instead of register value states and contents.
3492
8eb6bda2
PA
34932013-09-05 Pedro Alves <palves@redhat.com>
3494
3495 PR tui/15933
3496 * tui/tui-regs.c (tui_show_registers): Show registers of the
3497 selected frame, not the current frame.
3498
48b1f08c
RW
34992013-09-05 Ricard Wanderlof <ricardw@axis.com>
3500
3501 * MAINTAINERS (Write After Approval): Add myself to the list.
3502
89e63ee4
DE
35032013-09-04 Doug Evans <dje@google.com>
3504
3505 * dwarf2read.c (queue_and_load_all_dwo_tus): New function.
3506 (queue_and_load_dwo_tu): New function.
3507 (lookup_dwo_signatured_type): Set per_cu.tu_read.
3508 (maybe_queue_comp_unit): Rename this_cu argument to dependent_cu.
3509 Make dependent_cu optional.
3510 (dw2_do_instantiate_symtab): If we just loaded a CU from a DWO,
3511 and an older .gdb_index is in use, queue and load all its TUs too.
3512
492c0ab7
JK
35132013-09-04 Jan Kratochvil <jan.kratochvil@redhat.com>
3514
3515 Code cleanup: Change OPF_DISABLE_REALPATH to OPF_RETURN_REALPATH.
3516 * cli/cli-cmds.c (find_and_open_script): Add OPF_RETURN_REALPATH to
3517 variable search_flags.
3518 * defs.h (OPF_DISABLE_REALPATH): Rename to ...
3519 (OPF_RETURN_REALPATH): ... here.
3520 * dwarf2read.c (try_open_dwop_file): Set OPF_RETURN_REALPATH for flags.
3521 * exec.c (exec_file_attach): Remove OPF_DISABLE_REALPATH from openp
3522 call. Twice.
3523 * nto-tdep.c (nto_find_and_open_solib): Add OPF_RETURN_REALPATH for
3524 openp call.
3525 * solib.c (solib_find): Likewise. Four times.
3526 * source.c (openp): Change OPF_DISABLE_REALPATH to OPF_RETURN_REALPATH
3527 in the function comment and for the realpath_fptr variable.
3528 (source_full_path_of): Add OPF_RETURN_REALPATH for openp call.
3529 (find_and_open_source): Likewise. Twice.
3530 * symfile.c (symfile_bfd_open): Likewise, also twice.
3531
23a44de8
DE
35322013-09-04 Doug Evans <dje@google.com>
3533
3534 * progspace.c (save_current_space_and_thread): Remove unnecessary
3535 call to save_current_inferior.
3536
47061676
AB
35372013-09-04 Andrew Burgess <aburgess@broadcom.com>
3538
3539 * sh64-tdep.c (sh64_do_register): Return after printing message
3540 about unavailable register contents.
3541
41dc8db8
MB
35422013-09-04 Muhammad Bilal <mbilal@codesourcery.com>
3543 Pedro Alves <palves@redhat.com>
3544
3545 * symfile.c (add_symbol_file_command): Error out on unknown
ef1bc9e7
AM
3546 option. Handle EXPECTING_SEC_ADDR/EXPECTING_SEC_NAME before '-'
3547 options and collapse into single conditional branch.
41dc8db8 3548
07107ca6
LM
35492013-09-03 Luis Machado <lgustavo@codesourcery.com>
3550
a7ea61cf 3551 * inf-child.c (inf_child_follow_fork): New parameter
07107ca6
LM
3552 detach_fork.
3553 * inf-ptrace.c (inf_ptrace_follow_fork): Likewise.
3554 * inf-ttrace.c (inf_ttrace_follow_fork): Likewise.
3555 * inferior.h (detach_fork): Remove.
3556 * infrun.c (detach_fork): Adjust comment and make it
3557 static.
3558 (follow_fork): Pass detach_fork parameter to
3559 target_follow_fork.
3560 * linux-nat.c (linux_child_follow_fork): New parameter
3561 detach_fork.
3562 * target.c (target_follow_fork): New parameter detach_fork.
3563 Pass detach_fork as parameter and print its value.
3564 * target.h (struct target_ops) <to_follow_fork>: New int
3565 parameter.
3566 (target_follow_fork): New parameter detach_fork.
3567
3bec2768
JB
35682013-09-03 Joel Brobecker <brobecker@adacore.com>
3569
3570 * solib-ia64-hpux.c (ia64_hpux_relocate_section_addresses):
3571 Replace sec->bfd by sec->the_bfd_section->owner.
3572
c01cbb3d
YQ
35732013-09-03 Yao Qi <yao@codesourcery.com>
3574
3575 * linux-tdep.c (linux_is_uclinux): New function. Code moved
3576 from linux_has_shared_address_space.
3577 (linux_has_shared_address_space): Call linux_is_uclinux.
3578 * linux-tdep.h (linux_is_uclinux): Declare.
3579 * m68klinux-tdep.c (m68k_linux_get_sigtramp_info): Call
3580 linux_is_uclinux.
3581
7b00db47
YQ
35822013-09-03 Yao Qi <yao@codesourcery.com>
3583
3584 * config/djgpp/fnchange.lst: Remove entry of
3585 i386-interix-nat.c and i386-interix-tdep.c.
3586 * configure.ac: Remove '*-*-interix*'.
3587 * configure: Re-generated.
3588 * defs.h (enum gdb_osabi): Remove GDB_OSABI_INTERIX.
3589 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Remove
3590 obsolete comments.
3591 * osabi.c (gdb_osabi_names): Remove "Interix".
3592
0f9741f2
YQ
35932013-09-03 Yao Qi <yao@codesourcery.com>
3594
3595 * arch-utils.c: Fix typo in the comment to gdbarch_update_p.
3596
1e038f67
MM
35972013-09-02 Markus Metzger <markus.t.metzger@intel.com>
3598
3599 * record.h (record_print_flag) <record_print_src_line,
3600 record_print_insn_range>: Rename into ...
3601 (record_print_flag) <record_print_src_line,
3602 record_print_insn_range>: ... this. Update all users.
3603
9e52adf9
PM
36042013-09-02 Pierre Muller <muller@sourceware.org>
3605
3606 * windows-nat.c (windows_xfer_memory): Handle ERROR_PARTIAL_COPY
3607 error code.
3608
a2388568
PM
36092013-09-02 Pierre Muller <muller@sourceware.org>
3610
3611 * windows-nat.c (windows_xfer_memory): Fix compilation failure
3612 by use of plongest function.
3613
9058cc3a
TG
36142013-09-02 Tristan Gingold <gingold@adacore.com>
3615
3616 * NEWS: Add entry mentioning support for native Windows x64
3617 SEH data.
3618
3619 * amd64-windows-tdep.c: #include "objfiles.h", "frame-unwind.h",
3620 "coff/internal.h", "coff/i386.h", "coff/pe.h" and "libcoff.h".
3621 (struct amd64_windows_frame_cache): New struct.
3622 (amd64_windows_w2gdb_regnum): New global.
3623 (pc_in_range, amd64_windows_frame_decode_epilogue)
3624 (amd64_windows_frame_decode_insns, amd64_windows_find_unwind_info)
3625 (amd64_windows_frame_cache, amd64_windows_frame_prev_register)
3626 (amd64_windows_frame_this_id): New functions.
3627 (amd64_windows_frame_unwind): New static global.
3628 (amd64_windows_skip_prologue): New function.
3629 (amd64_windows_init_abi): Call frame_unwind_prepend_unwinder
3630 with amd64_windows_frame_unwind. Call set_gdbarch_skip_prologue
3631 with amd64_windows_skip_prologue.
3632
3161820b 36332013-08-30 Joel Brobecker <brobecker@adacore.com>
3634
3635 GDB 7.6.1 released.
3636
02457c76
PA
36372013-08-30 Pedro Alves <palves@redhat.com>
3638
3639 * mi/mi-main.c (mi_cmd_trace_find): Use LOC_AND_ADDRESS instead of
3640 SRC_AND_LOC.
3641
e0162910
PA
36422013-08-30 Pedro Alves <palves@redhat.com>
3643
3644 * thread.c (restore_selected_frame): Use SRC_AND_LOC, and change
3645 warning text.
3646
6391ce51
PA
36472013-08-30 Pedro Alves <palves@redhat.com>
3648
3649 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd):
3650 Adjust arguments to print_stack_frame.
3651
d1da0587
PA
36522013-08-30 Pedro Alves <palves@redhat.com>
3653
3654 * ada-tasks.c (task_command_1): Write SRC_AND_LOC instead '1'.
3655
adfd8245
PA
36562013-08-30 Pedro Alves <palves@redhat.com>
3657
3658 * frame.h (show_and_print_stack_frame): Delete declaration.
3659
96d9056e
PM
36602013-08-30 Phil Muldoon <pmuldoon@redhat.com>
3661
3662 PR python/15461
96d9056e
PM
3663 * python/py-arch.c (ARCHPY_REQUIRE_VALID): New macro.
3664 (archpy_name): Check for valid architecture.
3665 (archpy_disassemble): Ditto.
3666
11cb8762
JB
36672013-08-29 Joel Brobecker <brobecker@adacore.com>
3668
3669 * rs6000-nat.c (rs6000_ptrace32): Cast "addr" to "uintptr_t"
3670 instead of "long long" in call to ptrace64.
3671
1af12a7d
AB
36722013-08-29 Andrew Burgess <aburgess@broadcom.com>
3673
3674 * mi/mi-interp.c (mi_command_loop): Change signature to match
3675 interp_command_loop_ftype.
3676 (mi1_command_loop): Remove.
3677 (mi2_command_loop): Remove.
3678 (mi3_command_loop): Remove.
3679 (mi_interpreter_resume): Remove setting of
3680 deprecated_command_loop_hook.
3681 (_initialize_mi_interp): Set mi_command_loop as the command loop
3682 callback.
3683
acc900c2
SA
36842013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
3685
3686 * valops.c (do_search_struct_field): Pass v2 instead of base_type to
3687 value_type.
3688
548b762d
SA
36892013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
3690
3691 * value.c (allocate_value_contents): Make static.
3692 * value.h (allocate_value_contents): Remove prototype.
3693
08039c9e
SA
36942013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
3695
3696 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use value_at_lazy instead
3697 of assembling value via allocate_value_lazy and attribute setter.
3698 * findvar.c (default_read_var_value): Use value_at_lazy instead of
3699 assembling value via allocate_value_lazy and attribute setter.
3700 * valops.c (do_search_struct_field): Use value_at_lazy instead of
3701 assembling value via allocate_value_lazy and attribute setter.
3702
314c7de9
SA
37032013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
3704
3705 * value.c (value_from_contents_and_address): Replace allocate_value and
3706 memcpy with value_from_contents.
3707
8f28f522
PM
37082013-08-29 Phil Muldoon <pmuldoon@redhat.com>
3709
3710 * python/py-framefilter.c (py_print_frame): Remove usage of
3711 PyString_AsString. Use python_string_to_host_string instead.
3712 Refactor function to work with a string as a new allocation
3713 instead of a pointer.
3714 (py_print_frame): Ditto.
3715 * python/lib/gdb/frames.py (return_list): Cain iterators together
3716 instead of adding them as a list.
3717 (_sort_list): Call return_list, and remove duplicate code.
3718 (execute_frame_filters): Convert iterator to a list with list().
3719 * python/lib/gdb/command/frame_filters.py
3720 (SetFrameFilterPriority._set_filter_priority): Convert priority
3721 attribute to an integer.
3722 * python/lib/gdb/FrameIterator.py (FrameIterator.next): Define
3723 wrapper function __next__.
3724 * python/lib/gdb/FrameDecorator.py: If basestring not defined,
3725 define as "str".
3726
8ee002df
PM
37272013-08-29 Phil Muldoon <pmuldoon@redhat.com>
3728
3729 PR python/15752
8ee002df
PM
3730 * python/py-framefilter.c (apply_frame_filter): Check
3731 gdb_python_initialized. Exit if the Python frame-filter code
3732 cannot be initialized.
3733
af4c453a
PM
37342013-08-29 Phil Muldoon <pmuldoon@redhat.com>
3735
3736 PR cli/15842
af4c453a
PM
3737 * top.c (print_gdb_version): Remove erroneous newline after help
3738 text.
3739
bf8793bb
YQ
37402013-08-29 Yao Qi <yao@codesourcery.com>
3741
3742 * varobj.c (install_dynamic_child): Remove trailing space.
3743 Add one blank line after variable declaration.
3744
1f0c4988
JK
37452013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3746
3747 PR gdb/15415
3748 * corefile.c (get_exec_file): Use exec_filename.
3749 * defs.h (OPF_DISABLE_REALPATH): New definition. Add new comment.
3750 * exec.c (exec_close): Free EXEC_FILENAME.
3751 (exec_file_attach): New variable canonical_pathname. Use
3752 OPF_DISABLE_REALPATH. Call gdb_realpath explicitly. Set
3753 EXEC_FILENAME.
3754 * exec.h (exec_filename): New.
3755 * inferior.c (print_inferior, inferior_command): Use
3756 PSPACE_EXEC_FILENAME.
3757 * mi/mi-main.c (print_one_inferior): Likewise.
3758 * progspace.c (clone_program_space, print_program_space): Likewise.
3759 * progspace.h (struct program_space): New field pspace_exec_filename.
3760 * source.c (openp): Describe OPF_DISABLE_REALPATH. New variable
3761 realpath_fptr, initialize it from OPF_DISABLE_REALPATH, use it.
3762
59ee9f94
WN
37632013-08-28 Will Newton <will.newton@linaro.org>
3764
3765 * common/linux-ptrace.c: Include stdint.h unconditionally.
3766
c8a2a419
JK
37672013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3768
3769 Code cleanup.
3770 * nto-tdep.c (nto_find_and_open_solib): Use OPF_TRY_CWD_FIRST.
3771
ffa4ac95
YQ
37722013-08-28 Yao Qi <yao@codesourcery.com>
3773 Pedro Alves <palves@redhat.com>
3774
3775 * event-top.c (gdb_setup_readline): Call stderr_fileopen
3776 instead of stdio_fileopen.
3777 * main.c (captured_main) [__MINGW32__]: Set stderr unbuffered.
3778 .Call stderr_fileopen instead of stdio_fileopen.
3779 * ui-file.c [__MINGW32__] (stderr_file_write): New function.
3780 [__MINGW32__] (stderr_file_fputs): New function.
3781 (stderr_fileopen): New function.
3782 * ui-file.h (stderr_fileopen): Declare.
3783
69d751e3
DE
37842013-08-27 Doug Evans <dje@google.com>
3785
3786 * dwarf2read.c (struct dwarf2_cu): Tweak comment.
3787 (struct dwarf2_per_cu_data): Ditto.
3788 (maybe_queue_comp_unit): Delete forward decl. Add comment.
3789 (process_imported_unit_die): Ditto.
3790 (follow_die_sig_1): Simplify assert.
3791
44f38867
PA
37922013-08-27 Pedro Alves <palves@redhat.com>
3793
3794 * windows-nat.c (windows_xfer_memory): Adjust prototype to follow
3795 xfer_partial's interface. Return TARGET_XFER_E_IO on error.
3796 (windows_xfer_partial): Defer TARGET_OBJECT_MEMORY handling to
3797 windows_xfer_memory directly.
3798 (init_windows_ops): Don't install a deprecated_xfer_memory method.
3799
d28d46b5
PA
38002013-08-27 Pedro Alves <palves@redhat.com>
3801
3802 * darwin-nat.c (darwin_xfer_memory): Delete.
3803 (_initialize_darwin_inferior): Don't install a
3804 deprecated_xfer_memory method.
3805
6211c335
YQ
38062013-08-27 Pedro Alves <pedro@codesourcery.com>
3807 Yao Qi <yao@codesourcery.com>
3808
3809 * mi/mi-cmd-stack.c (list_args_or_locals): Adjust prototype.
3810 (parse_no_frames_option): Remove.
3811 (mi_cmd_stack_list_locals): Handle --skip-unavailable.
3812 (mi_cmd_stack_list_args): Adjust.
3813 (mi_cmd_stack_list_variables): Handle --skip-unavailable.
3814 (list_arg_or_local): Add new parameter 'skip_unavailable'. Return
3815 early if SKIP_UNAVAILABLE is true and ARG->val is unavailable.
3816 Caller update.
3817 (list_args_or_locals): New parameter 'skip_unavailable'.
3818 Handle it.
3819 * valprint.c (scalar_type_p): Rename to ...
3820 (val_print_scalar_type_p): ... this. Make extern.
3821 (val_print, value_check_printable): Adjust.
3822 * valprint.h (val_print_scalar_type_p): Declare.
3823 * value.c (value_entirely_unavailable): New function.
3824 * value.h (value_entirely_unavailable): Declare.
3825
3826 * NEWS: Mention the new option "--skip-unavailable" to MI
3827 commands '-stack-list-locals', '-stack-list-arguments' and
3828 '-stack-list-variables'.
3829
242f1fd7
YQ
38302013-08-27 Yao Qi <yao@codesourcery.com>
3831
3832 * mi/mi-cmd-stack.c (parse_no_frames_option): Remove.
3833 (mi_cmd_stack_list_args): Use mi_getopt_silent to handle
3834 options.
3835 * mi/mi-getopt.c (mi_getopt): Remove.
3836 (mi_getopt_1): Renamed from mi_getopt. Add one parameter
3837 'error_on_unknown'.
3838 (mi_getopt): Call mi_getopt_1.
3839 (mi_getopt_silent): New.
3840 * mi/mi-getopt.h (mi_getopt_silent): Declare.
3841
260b681b
DE
38422013-08-26 Doug Evans <dje@google.com>
3843
779bd270
DE
3844 PR symtab/15885
3845 * dwarf2read.c (dw2_dump): Print some minimal information indicating
3846 .gdb_index is in use.
3847 * symfile.c (reread_symbols): Reset objfile->sf.
3848
52e260a3
DE
3849 * NEWS: Document "mt print objfiles" now takes optional regexp.
3850 * symmisc.c (maintenance_print_objfiles): Argument is now an optional
3851 regexp of objfiles to print.
3852 (_initialize_symmisc): Update doc string for "mt print objfiles".
3853
260b681b
DE
3854 * dwarf2read.c (write_psymtabs_to_index): Move error checks ahead of
3855 missing debug info checks.
3856
a85c52f2
UW
38572013-08-26 Raunaq Bathija <raunaq12@in.ibm.com>
3858 Ulrich Weigand <uweigand@de.ibm.com>
3859
3860 * xcoffread.c (arrange_linetable): Add fix to correctly handle
3861 line tables generated by XLC compiled binaries.
3862
4f00dda3
DE
38632013-08-23 Doug Evans <dje@google.com>
3864
db68bbae
DE
3865 * symmisc.c (dump_symtab): Delete prototype.
3866 (dump_msymbols, dump_objfile): Ditto.
3867 (maintenance_info_symtabs): Mark as dont_repeat.
3868 (_initialize_symmisc): Improve doc string for "mt info symtabs".
3869
4f00dda3
DE
3870 * elfread.c (elf_symfile_read): Move "Done reading minimal symbols"
3871 debugging printf to better location.
3872
23d577b0
PA
38732013-08-23 Pedro Alves <palves@redhat.com>
3874
3875 * target.c (target_read_live_memory): Change type of 'ret' local
3876 to LONGEST.
3877
00d84524
PA
38782013-08-23 Pedro Alves <palves@redhat.com>
3879
3880 * remote.c (remote_write_bytes_aux, remote_write_bytes)
3881 (remote_read_bytes): Change return type to LONGEST, and adjust to
3882 return a target_xfer_error on error.
3883 (remote_xfer_memory): Delete.
3884 (remote_flash_write): Change type of 'ret' local to LONGEST.
3885 (remote_xfer_partial, remote_xfer_partial): Adjust.
3886 (init_remote_ops): Don't install a deprecated_xfer_memory hook.
3887
1ed3ee94
PM
38882013-08-23 Pierre Muller <muller@sourceware.org>
3889
3890 ARI fix: Push # directives to start of line.
3891 * rs6000-nat.c (rs6000_ptrace32, rs6000_ptrace64): Rule applied.
3892
9eaabc75
MW
38932013-08-12 Muhammad Waqas <mwaqas@codesourcery.com>
3894
3895 PR gdb/15501
3896 * breakpoint.c (enable_command, disable_command): Iterate over
3897 all specified breakpoint locations.
3898
101158d9
LM
38992013-08-22 Luis Machado <lgustavo@codesourcery.com>
3900
3901 * common/linux-ptrace.c (linux_fork_to_function): Push #
3902 directives to the start of the line.
3903 (linux_check_ptrace_features): Fix warning message to use
3904 the "_" markup.
3905
96d7229d
LM
39062013-08-22 Luis Machado <lgustavo@codesourcery.com>
3907
3908 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-nat.h and
3909 nat/linux-waitpid.h.
3910 (linux-waitpid.o): New object file rule.
3911 * common/linux-ptrace.c: Include nat/linux-waitpid.h.
3912 (current_ptrace_options): Moved from linux-nat.c.
3913 (linux_ptrace_test_ret_to_nx): Use type casts for ptrace
3914 parameters.
3915 (linux_fork_to_function): New function.
3916 (linux_grandchild_function): Likewise.
3917 (linux_child_function): Likewise.
3918 (linux_check_ptrace_features): New function, heavily
3919 based on linux-nat.c:linux_test_for_tracefork.
3920 (linux_enable_event_reporting): New function.
3921 (ptrace_supports_feature): Likewise.
3922 (linux_supports_tracefork): Likewise.
3923 (linux_supports_traceclone): Likewise.
3924 (linux_supports_tracevforkdone): Likewise.
3925 (linux_supports_tracesysgood): Likewise.
3926 * common/linux-ptrace.h (HAS_NOMMU): Moved from
3927 gdbserver/linux-low.c.
3928 (linux_enable_event_reporting): New declaration.
3929 (linux_supports_tracefork): Likewise.
3930 (linux_supports_traceclone): Likewise.
3931 (linux_supports_tracevforkdone): Likewise.
3932 (linux_supports_tracesysgood): Likewise.
3933 * config.in (PTRACE_TYPE_ARG4): Regenerate.
3934 * config/aarch64/linux.mh (NATDEPFILES): Add linux-waitpid.o.
3935 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
3936 * config/arm/linux.mh (NATDEPFILES): Likewise.
3937 * config/i386/linux.mh (NATDEPFILES): Likewise.
3938 * config/i386/linux64.mh (NATDEPFILES): Likewise.
3939 * config/ia64/linux.mh (NATDEPFILES): Likewise.
3940 * config/m32r/linux.mh (NATDEPFILES): Likewise.
3941 * config/m68k/linux.mh (NATDEPFILES): Likewise.
3942 * config/mips/linux.mh (NATDEPFILES): Likewise.
3943 * config/pa/linux.mh (NATDEPFILES): Likewise..
3944 * config/powerpc/linux.mh (NATDEPFILES): Likewise..
3945 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
3946 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
3947 * config/sparc/linux.mh (NATDEPFILES): Likewise.
3948 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
3949 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
3950 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
3951 * configure.ac (AC_CACHE_CHECK): Add void * to the list of
3952 ptrace's 4th argument's types.
3953 Check the type of PTRACE_TYPE_ARG4.
3954 * configure: Regenerate.
3955 * linux-nat.c: Include nat/linux-nat.h and nat/linux-waitpid.h.
3956 (SYSCALL_SIGTRAP): Moved to nat/linux-nat.h.
3957 (linux_supports_tracefork_flag): Remove.
3958 (linux_supports_tracesysgood_flag): Likewise.
3959 (linux_supports_tracevforkdone_flag): Likewise.
3960 (current_ptrace_options): Moved to
3961 common/linux-ptrace.c.
3962 (linux_tracefork_child): Remove.
3963 (my_waitpid): Remove.
3964 (linux_test_for_tracefork): Renamed to
3965 linux_check_ptrace_features and moved to common/linux-ptrace.c.
3966 (linux_test_for_tracesysgood): Remove.
3967 (linux_supports_tracesysgood): Remove.
3968 (linux_supports_tracefork): Remove.
3969 (linux_supports_tracevforkdone): Remove.
3970 (linux_enable_tracesysgood): Remove.
3971 (linux_enable_event_reporting): Remove.
3972 (linux_init_ptrace): New function.
3973 (linux_child_post_attach): Call linux_init_ptrace.
3974 (linux_child_post_startup_inferior): Call linux_init_ptrace.
3975 (linux_child_follow_fork): Call linux_supports_tracefork
3976 and linux_supports_tracevforkdone.
3977 (linux_child_insert_fork_catchpoint): Call
3978 linux_supports_tracefork.
3979 (linux_child_insert_vfork_catchpoint): Likewise.
3980 (linux_child_set_syscall_catchpoint): Call
3981 linux_supports_tracesysgood.
3982 (lin_lwp_attach_lwp): Call linux_supports_tracefork.
3983 * nat/linux-nat.h: New file.
3984 * nat/linux-waitpid.c: New file.
3985 * nat/linux-waitpid.h: New file.
3986
9f948660
SDJ
39872013-08-22 Samuel Bronson <naesten@gmail.com>
3988
3989 ARM Linux support for `catch syscall'.
3990 * syscalls/arm-linux.py: New file.
3991 * syscalls/arm-linux.xml: Likewise.
3992 * arm-linux-tdep.c (arm_linux_get_syscall_number): New function.
3993 (arm_linux_init_abi): Register the new function and syscall xml file.
3994 * data-directory/Makefile.in: Install the new syscall xml file.
3995 * NEWS: Brag about this.
3996
6be7b56e
PA
39972013-08-22 Pedro Alves <palves@redhat.com>
3998
3999 PR gdb/15871
4000 * corefile.c (target_xfer_memory_error): New function.
4001 (memory_error): Defer EIO to target_memory_error.
4002 (read_memory): Use target_xfer_partial, and handle finer-grained
4003 target xfer errors.
4004 * target.c (target_xfer_error_to_string): New function.
4005 (memory_xfer_partial_1): If memory is known to be
4006 unavailable, return TARGET_XFER_E_UNAVAILABLE instead of -1.
4007 (target_xfer_partial): Make extern.
4008 * target.h (enum target_xfer_error): New enum.
4009 (target_xfer_error_to_string): Declare function.
4010 (target_xfer_partial): Declare function.
4011 (struct target_ops) <xfer_partial>: Adjust describing comment.
4012
bcbec14e
AM
40132013-08-22 Alan Modra <amodra@gmail.com>
4014
4015 * configure.host: Support powerpc64le-linux and powerpcle-linux hosts.
4016 * configure.tgt: Likewise as targets.
4017
fc474241
DE
40182013-08-20 Doug Evans <dje@google.com>
4019
4020 * buildsym.c (subfile_stack): Move here from buildsym.h.
4021 (pending_macros): Ditto.
4022 (get_macro_table): New function.
4023 (buildsym_init): Initialize subfile_stack.
4024 * coffread.c (type_vector,type_vector_length): Moved here from
4025 buildsym.h.
4026 (INITIAL_TYPE_VECTOR_LENGTH): Ditto.
4027 (coff_symtab_read): Use it.
4028 * dbxread.c (read_ofile_symtab): Delete init of subfile_stack.
4029 * dwarf2read.c (macro_start_file): Replace uses of pending_macros
4030 with call to get_macro_table.
4031 * stabsread.c (type_vector,type_vector_length): Moved here from
4032 buildsym.h.
4033 (INITIAL_TYPE_VECTOR_LENGTH): Ditto.
4034 * buildsym.h (get_macro_table): Declare.
4035
bec71544
TT
40362013-08-20 Tom Tromey <tromey@redhat.com>
4037
4038 * dbxread.c (record_minimal_symbol): Make 'name' argument const.
4039 Update.
4040 (read_dbx_dynamic_symtab): Make 'name' const. Remove casts.
4041
0002ad5f
DE
40422013-08-20 Doug Evans <dje@google.com>
4043
4044 * blockframe.c: Remove #include "psymtab.h".
4045 * cp-support.c: Ditto.
4046 * source.c: Ditto.
4047 * stack.c: Ditto.
4048
df302446
TT
40492013-08-20 Tom Tromey <tromey@redhat.com>
4050
4051 PR python/15816:
4052 * exceptions.h (return_mask): Now an enum.
4053 (RETURN_MASK_QUIT, RETURN_MASK_ERROR, RETURN_MASK_ALL): Now
4054 enum constants.
4055
df6d5441
TT
40562013-08-20 Tom Tromey <tromey@redhat.com>
4057
4058 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Use
4059 get_objfile_arch.
4060 * elfread.c (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
4061 (elf_gnu_ifunc_resolve_by_got): Use get_objfile_arch.
4062 * jit.c (jit_object_close_impl): Update.
4063 * jv-lang.c (get_dynamics_objfile): Update.
4064 * linespec.c (add_minsym): Use get_dynamics_objfile.
4065 * objfiles.c (get_objfile_bfd_data): Initialize 'gdbarch' field.
4066 (allocate_objfile): Don't initialize 'gdbarch' field.
4067 (get_objfile_arch): Update.
4068 * objfiles.h (struct objfile_per_bfd_storage) <gdbarch>: New field,
4069 moved from...
4070 (struct objfile) <gdbarch>: ... here. Remove.
4071 * stap-probe.c (stap_can_evaluate_probe_arguments): Use
4072 get_objfile_arch.
4073 * symfile.c (init_entry_point_info): Use get_objfile_arch.
4074
f5aee5ee
AM
40752013-08-20 Alan Modra <amodra@gmail.com>
4076
4077 * doublest.c (convert_floatformat_to_doublest): Use fmt->split_half
4078 for IBM long double nan and inf.
4079 (floatformat_is_negative, floatformat_classify,
4080 floatformat_mantissa): Similarly.
4081 (floatformat_ieee_single, floatformat_ieee_double,
4082 floatformat_ieee_quad, floatformat_arm_ext,
4083 floatformat_ia64_spill): Delete unused vars.
4084 (_initialize_doublest): Delete unused function.
4085 * gdbtypes.c (floatformats_ibm_long_double): Use new big- and
4086 little-endian variants of floatformat_ibm_long_double.
4087
33b60d58 40882013-08-19 Luis Machado <lgustavo@codesourcery.com>
f5aee5ee 4089
33b60d58
LM
4090 * Makefile.in (SFILES): Remove common/target-common.c and
4091 add target/waitstatus.c.
4092 (HFILES_NO_SRCDIR): Remove common/target-common.h and add
4093 target/resume.h, target/wait.h and target/waitstatus.h.
4094 (COMMON_OBS): Remove target-common.o and add
4095 waitstatus.o.
4096 (target-common.o): Remove.
4097 (waitstatus.o): New target object file.
4098 * common/target-common.c: Move contents to
4099 target/waitstatus.c and remove.
4100 * common/target-common.h: Move contents to other files and
4101 remove.
4102 (enum resume_kind: Move to target/resume.h.
4103 (TARGET_WNOHANG): Move to target/wait.h.
4104 (enum target_waitkind): Move to target/waitstatus.h.
4105 (struct target_waitstatus): Likewise.
4106 * target.h: Do not include target-common.h and
4107 include target/resume.h, target/wait.h and
4108 target/waitstatus.h.
4109 * target/resume.h: New file.
4110 * target/wait.h: New file.
4111 * target/waitstatus.h: New file.
4112 * target/waitstatus.c: New file.
4113
12696c10
PA
41142013-08-19 Pedro Alves <palves@redhat.com>
4115
4116 * linux-nat.c (linux_test_for_tracefork)
4117 (linux_test_for_tracesysgood, linux_child_follow_fork)
4118 (lin_lwp_attach_lwp, linux_nat_resume): Don't block child signals.
4119 (linux_nat_wait_1): Extend comment.
4120 (linux_async_pipe): Add comment.
4121
ba89f962
KB
41222013-08-15 Kevin Buettner <kevinb@redhat.com>
4123
4124 * rl78-tdep.c (RL78_RAW_PC_REGNUM): New enum.
4125 (RL78_PC_REGNUM): Move to list of pseudo-register enums.
4126 (rl78_register_type, rl78_register_name, rl78_register_reggroup_p):
4127 Update to account for fact that PC is now a pseudo-register.
4128 (rl78_pseudo_register_write, rl78_pseudo_register_read): Add
4129 cases for RL78_PC_REGNUM.
4130
35ab155d
MB
41312013-08-15 Muhammad Bilal <mbilal@codesourcery.com>
4132
4133 PR cli/15841
4134 * top.c (quit_force): Skip writing history file
4135 if input is not from terminal.
4136
0d031856
TT
41372013-08-14 Tom Tromey <tromey@redhat.com>
4138
4139 * remote.c (struct remote_state) <echo_nextthread, nextthread,
4140 resultthreadlist>: New fields.
4141 (OPAQUETHREADBYTES, threadref, MAXTHREADLISTRESULTS): Move earlier.
4142 (remote_get_threadlist, remote_threadlist_iterator): Use
4143 new fields. Remove static variables.
4144
ee154bee
TT
41452013-08-14 Tom Tromey <tromey@redhat.com>
4146
4147 * remote.c (struct remote_state) <remote_stopped_by_watchpoint_p,
4148 remote_watch_data_address>: New fields.
4149 (remote_stopped_by_watchpoint_p, remote_watch_data_address): Remove.
4150 (process_stop_reply, remote_wait_as)
4151 (remote_check_watch_resources, remote_stopped_data_address): Update.
4152
88b496c3
TT
41532013-08-14 Tom Tromey <tromey@redhat.com>
4154
4155 * remote.c (struct remote_state) <async_client_callback,
4156 async_client_context>: New fields.
4157 (async_client_callback, async_client_context): Remove.
4158 (remote_async_serial_handler, remote_async): Update.
4159
2f65bcb7
TT
41602013-08-14 Tom Tromey <tromey@redhat.com>
4161
4162 * remote.c (sizeof_pkt): Remove.
4163 (remote_trace_find): Use rs->buf_size, not sizeof_pkt.
4164
b80fafe3
TT
41652013-08-14 Tom Tromey <tromey@redhat.com>
4166
4167 * remote.c (struct remote_state) <use_threadinfo_query,
4168 use_threadextra_query>: New fields.
4169 (remote_threads_info, remote_threads_extra_info)
4170 (remote_open_1): Update.
4171
8e88304f
TT
41722013-08-14 Tom Tromey <tromey@redhat.com>
4173
4174 * remote.c (struct remote_state) <finished_object,
4175 finished_annex, finished_offset>: New fields.
4176 (remote_read_qxfer): Use remote_state fields; remove static
4177 variables.
4178
280ceea3
TT
41792013-08-14 Tom Tromey <tromey@redhat.com>
4180
4181 * remote.c (struct remote_state) <last_sent_step>:
4182 New field.
4183 (last_sent_step): Remove.
4184 (remote_resume, remote_wait_as): Update.
4185
b73be471
TT
41862013-08-14 Tom Tromey <tromey@redhat.com>
4187
4188 * remote.c (struct remote_state) <last_sent_signal>:
4189 New field.
4190 (last_sent_signal): Remove.
4191 (new_remote_state, remote_resume, remote_wait_as): Update.
4192
5e4a05c4
TT
41932013-08-14 Tom Tromey <tromey@redhat.com>
4194
4195 * remote.c (struct remote_state) <last_program_signals_packet>:
4196 New field.
4197 (last_program_signals_packet): Remove.
4198 (remote_program_signals, remote_open_1): Update.
4199
747dc59d
TT
42002013-08-14 Tom Tromey <tromey@redhat.com>
4201
4202 * remote.c (struct remote_state) <last_pass_packet>:
4203 New field.
4204 (last_pass_packet): Remove.
4205 (remote_pass_signals, remote_open_1): Update.
4206
262e1174
TT
42072013-08-14 Tom Tromey <tromey@redhat.com>
4208
4209 * remote.c (struct remote_state) <remote_traceframe_number>:
4210 New field.
4211 (remote_traceframe_number): Remove.
4212 (new_remote_state, remote_open_1, set_remote_traceframe)
4213 (remote_trace_find): Update.
4214
47f8a51d
TT
42152013-08-14 Tom Tromey <tromey@redhat.com>
4216
4217 * remote.c (struct remote_state) <general_thread, continue_thread>:
4218 New fields.
4219 (general_thread, continue_thread): Remove.
4220 (record_currthread, set_thread, set_general_process)
4221 (remote_open_1, extended_remote_attach_1, remote_wait_as)
4222 (extended_remote_mourn_1): Update.
4223
5d93a237
TT
42242013-08-14 Tom Tromey <tromey@redhat.com>
4225
4226 * remote.c (struct remote_state) <remote_desc>: New field.
4227 (remote_desc): Remove.
4228 (remote_threads_info, remote_threads_extra_info, remote_close)
4229 (send_interrupt_sequence, remote_start_remote, remote_open_1)
4230 (readchar, remote_xfer_partial, remote_rcmd, packet_command)
4231 (remote_hostio_send_command, remote_file_put, remote_file_get)
4232 (remote_file_delete, remote_can_async_p, remote_is_async_p)
4233 (remote_async, remote_new_objfile, set_range_stepping): Update.
4234
cf792862
TT
42352013-08-14 Tom Tromey <tromey@redhat.com>
4236
4237 * remote.c (remote_state): Now a pointer.
4238 (get_remote_state_raw): Update.
4239 (new_remote_state): New function.
4240 (_initialize_remote): Use new_remote_state.
4241
dc473cfb
TT
42422013-08-14 Tom Tromey <tromey@redhat.com>
4243
4244 * remote.c (remote_protocol_features): Now const.
4245
85ec6ce7
TT
42462013-08-14 Tom Tromey <tromey@redhat.com>
4247
4248 * remote.c (crc32_table, crc32): Remove.
4249 (remote_verify_memory): Use xcrc32.
4250
73033f12
SDJ
42512013-08-13 Sergio Durigan Junior <sergiodj@redhat.com>
4252
4253 * value.h (create_internalvar_type_lazy): Adjust prototype
4254 declaration.
4255
5c30d39a
AB
42562013-08-13 Andrew Burgess <aburgess@broadcom.com>
4257
4258 * common/format.c (parse_format_string): Don't allow '#' flag for
4259 pointer arguments in format string.
4260
1a66331e
PM
42612013-08-13 Pierre Muller <muller@sourceware.org>
4262
fde605f3 4263 * utils.c (init_page_info): Only call tgetnum function
1a66331e
PM
4264 if rl_get_screen_size did not return useful values.
4265
b4013987
AA
42662013-08-12 Ali Anwar <ali_anwar@codesourcery.com>
4267
4268 PR breakpoints/15117
4269 * linespec.c (linespec_parse_basic): Check for convenience
4270 variable or history value while parsing.
4271
959b6a66
SDJ
42722013-08-12 Sergio Durigan Junior <sergiodj@redhat.com>
4273
4274 Revert implementation of gdbarch_gdb_signal_{to,from}_target for
4275 AVR.
4276 * avr-tdep.c: Remove include of "linux-tdep.h". Remove enum with
4277 different signals between the generic Linux kernel implementation
4278 and AVR's.
4279 (avr_linux_gdb_signal_from_target): Delete.
4280 (avr_linux_gdb_signal_to_target): Delete.
4281 (avr_gdbarch_init): Don't set gdbarch_gdb_signal_{to,from}_target.
4282
24a55014
DE
42832013-08-09 Doug Evans <dje@google.com>
4284
4285 * dwarf2read.c (create_addrmap_from_index): Ignore bad address table
4286 entries.
4287
eb14d406
SDJ
42882013-08-09 Sergio Durigan Junior <sergiodj@redhat.com>
4289
4290 * linux-tdep.c: Define enum with generic signal numbers.
4291 (linux_gdb_signal_from_target): New function.
4292 (linux_gdb_signal_to_target): Likewise.
4293 (linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
4294 methods to the functions above.
4295 * linux-tdep.h (linux_gdb_signal_from_target): New prototype.
4296 (linux_gdb_signal_to_target): Likewise.
4297 * alpha-linux-tdep.c: Define new enum with signals different
4298 from generic Linux kernel.
4299 (alpha_linux_gdb_signal_from_target): New function.
4300 (alpha_linux_gdb_signal_to_target): Likewise.
4301 (alpha_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
4302 with the functions mentioned above.
4303 * avr-tdep.c: Define enum with differences between Linux kernel
4304 and AVR signals.
4305 (avr_linux_gdb_signal_from_target): New function.
4306 (avr_linux_gdb_signal_to_target): Likewise.
4307 (avr_gdbarch_init): Set gdbarch_gdb_signal_{to,from}_target to
4308 the functions mentioned above.
4309 * sparc-linux-tdep.c: Define enum with differences between SPARC
4310 and generic Linux kernel signal numbers.
4311 (sparc32_linux_gdb_signal_from_target): New function.
4312 (sparc32_linux_gdb_signal_to_target): Likewise.
4313 (sparc32_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
4314 to the functions defined above.
4315 * xtensa-linux-tdep.c: Define enum with differences between
4316 Xtensa and Linux kernel generic signals.
4317 (xtensa_linux_gdb_signal_from_target): New function.
4318 (xtensa_linux_gdb_signal_to_target): Likewise.
4319 (xtensa_linux_init_abi): Set gdbarch_gdb_signal_to_target
4320 to the functions defined above.
4321 * mips-linux-tdep.c: Define enum with differences between
4322 signals in MIPS and Linux kernel generic ones.
4323 (mips_gdb_signal_to_target): New function.
4324 (mips_gdb_signal_from_target): Redefine to use new enum, handle
4325 only different signals from the Linux kernel generic.
4326 (mips_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
4327 the functions defined above.
4328 * mips-linux-tdep.h (enum mips_signals): Remove.
4329
156d08c8
PA
43302013-08-09 Pedro Alves <palves@redhat.com>
4331
4332 * avr-tdep.c (XMALLOC): Delete macro.
4333 * cli/cli-dump.c (XMALLOC): Delete macro.
4334
db229724
PA
43352013-08-09 Pedro Alves <palves@redhat.com>
4336
4337 * cli/cli-dump.c: Don't include cli/cli-dump.h.
4338 (scan_expression_with_cleanup, scan_filename_with_cleanup)
4339 (fopen_with_cleanup, add_dump_command): Make static.
4340 * cli/cli-dump.h: Delete file.
4341 * Makefile.in (HFILES_NO_SRCDIR): Remove reference to
4342 cli/cli-dump.h.
4343
3f12a589
PA
43442013-08-09 Pedro Alves <palves@redhat.com>
4345
4346 * tracepoint.c (tfile_start): Show tilde-expanded filename in
4347 error message.
4348
c718be47
PA
43492013-08-09 Pedro Alves <palves@redhat.com>
4350
156d08c8 4351 * breakpoint.c (save_breakpoints): Show tilde-expanded filename in
c718be47
PA
4352 error message.
4353
1e351ed1
PA
43542013-08-09 Pedro Alves <palves@redhat.com>
4355
4356 * gcore.c (create_gcore_bfd): Don't use tilde_expand here.
4357 (gcore_command): Use tilde_expand here, and when showing the
4358 filename to the user, show the expanded version.
4359
1ed8d800
YQ
43602013-08-09 Yao Qi <yao@codesourcery.com>
4361
4362 * stack.c (read_frame_arg): Set 'entryval_error' to NULL if
4363 'entryval' is set.
4364
47ecca85
PA
43652013-08-08 Azat Khuzhin <a3at.mail@gmail.com> (tiny change)
4366
4367 * gcore.c (create_gcore_bfd): Use tilde_expand.
4368
82a0a75f
YQ
43692013-08-08 Yao Qi <yao@codesourcery.com>
4370
4371 * frame.h (read_frame_local): Declare.
4372 * mi/mi-cmd-stack.c (list_args_or_locals): Call
4373 read_frame_local.
4374 * stack.c (read_frame_local): New.
4375
5c4aa40b
YQ
43762013-08-08 Yao Qi <yao@codesourcery.com>
4377
4378 * mi/mi-cmd-stack.c: Update comments to function
4379 list_args_or_locals.
4380
b93601f3
TT
43812013-08-07 Tom Tromey <tromey@redhat.com>
4382
4383 PR symtab/15028:
4384 * dwarf2read.c (struct process_psymtab_comp_unit_data): New.
4385 (process_psymtab_comp_unit_reader): Use it.
4386 (process_psymtab_comp_unit): Update. Add "pretend_language"
4387 argument.
4388 (dwarf2_build_psymtabs_hard): Update.
4389 (scan_partial_symbols): Pass CU's language to
4390 process_psymtab_comp_unit.
4391
fa760f46
TT
43922013-08-07 Tom Tromey <tromey@redhat.com>
4393
4394 * dwarf2read.c (dw2_get_primary_filename_reader): Remove.
4395 (dwarf2_gdb_index_functions): Update.
4396 * psymtab.c (find_symbol_file_from_partial): Remove.
4397 (psym_functions): Update.
4398 * symfile.h (struct quick_symbol_functions) <find_symbol_file>:
4399 Remove.
4400
bf6d8a91
TT
44012013-08-07 Tom Tromey <tromey@redhat.com>
4402
4403 * symfile.c (set_initial_language): Look up "main" symbol
4404 and use its language.
4405 * symtab.c (find_main_filename): Remove.
4406 * symtab.h (find_main_filename): Remove.
4407
f9125b6c
TT
44082013-08-07 Tom Tromey <tromey@redhat.com>
4409
4410 * dwarf2read.c (recursively_compute_inclusions): Add
4411 "immediate_parent" argument. Set symtab's "user" field
4412 if not set.
4413 (compute_symtab_includes): Update.
4414
fdbb204b
TT
44152013-08-07 Tom Tromey <tromey@redhat.com>
4416
4417 * linespec.c (convert_linespec_to_sals): Use maybe_add_address
4418 when adding label symbols.
4419
49de1690
UW
44202013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
4421 Ulrich Weigand <uweigand@de.ibm.com>
4422
4423 * configure.tgt (powerpc64-*-aix*): Match powerpc64 running aix.
4424 * configure.host (powerpc64-*-aix*): Likewise.
4425
b08ee99f
UW
44262013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
4427 Ulrich Weigand <uweigand@de.ibm.com>
4428
4429 * gdb_ptrace.h: Use ptrace64 instead of ptrace if HAVE_PTRACE64
4430 is defined.
4431 * rs6000-nat.c: Check for __ld_info64_ if compiling 64 BIT gdb.
4432 (rs6000_ptrace32): Call ptrace64 instead of ptrace if present.
4433 (rs6000_ptrace64): Call ptace64 instead of ptracex if present.
4434 * configure.ac: Check for ptrace64.
4435 * configure, config.in: Regenerate.
4436
fecf803e
UW
44372013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
4438 Ulrich Weigand <uweigand@de.ibm.com>
4439
4440 * aixthread.c: Call ptrace64 instead of ptracex if defined.
4441 Call ptrace64 instead of ptrace if defined.
4442 Add macro addr_ptr to take care of ptrace address argument.
4443 (pdc_read_regs): Likewise.
4444 (pdc_write_regs): Likewise.
4445 (aix_thread_resume): Likewise.
4446 (fetch_regs_kernel_thread): Likewise.
4447 (store_regs_kernel_thread): Likewise.
4448
3bb5e4a8
AB
44492013-08-07 Anton Blanchard <anton@samba.org>
4450
4451 * MAINTAINERS: Add myself to Write After Approval.
4452
12070676
TT
44532013-08-05 Tom Tromey <tromey@redhat.com>
4454
4455 * aix-thread.c (_initialize_aix_thread): Use
4456 complete_target_initialization.
4457 * bsd-uthread.c (_initialize_bsd_uthread): Use
4458 complete_target_initialization.
4459 * dec-thread.c (_initialize_dec_thread): Use
4460 complete_target_initialization.
4461 * ravenscar-thread.c (_initialize_ravenscar): Use
4462 complete_target_initialization.
4463 * sol-thread.c (_initialize_sol_thread): Use
4464 complete_target_initialization.
4465 * spu-multiarch.c (_initialize_spu_multiarch): Use
4466 complete_target_initialization.
4467
7c7b6655
TT
44682013-08-05 Tom Tromey <tromey@redhat.com>
4469
4470 * ada-exp.y (write_var_or_type): Use bound_minimal_symbol.
4471 * ada-lang.c (ada_lookup_simple_minsym): Return
4472 bound_minimal_symbol.
4473 * ada-lang.h (ada_lookup_simple_minsym): Update.
4474 * c-exp.y (variable): Use lookup_bound_minimal_symbol.
4475 * f-exp.y (variable): Use lookup_bound_minimal_symbol.
4476 * go-exp.y (variable): Use lookup_bound_minimal_symbol.
4477 * jv-exp.y (push_expression_name): Use lookup_bound_minimal_symbol.
4478 * m2-exp.y (variable): Use lookup_bound_minimal_symbol.
4479 * minsyms.c (msymbol_objfile): Remove.
4480 (lookup_minimal_symbol_internal): New function, from
4481 lookup_minimal_symbol.
4482 (lookup_minimal_symbol): Rewrite using
4483 lookup_minimal_symbol_internal.
4484 (lookup_bound_minimal_symbol): New function.
4485 * minsyms.h (msymbol_objfile): Remove.
4486 (lookup_bound_minimal_symbol): Declare.
4487 * p-exp.y (variable): Use lookup_bound_minimal_symbol.
4488 * parse.c (write_exp_msymbol): Change parameter to a
4489 bound_minimal_symbol.
4490 (write_dollar_variable): Use lookup_bound_minimal_symbol.
4491 * parser-defs.h (write_exp_msymbol): Update.
4492 * printcmd.c (address_info): Use lookup_bound_minimal_symbol.
4493 * symfile.c (simple_read_overlay_table): Use
4494 lookup_bound_minimal_symbol.
4495 * symtab.c (skip_prologue_sal): Don't use msymbol_objfile.
4496 (search_symbols): Likewise.
4497 (print_msymbol_info): Take a bound_minimal_symbol argument.
4498 (symtab_symbol_info, rbreak_command): Update.
4499 * symtab.h (struct symbol_search) <msymbol>: Change type
4500 to bound_minimal_symbol.
4501 * valops.c (find_function_in_inferior): Use
4502 lookup_bound_minimal_symbol.
4503 * value.c (value_fn_field): Use lookup_bound_minimal_symbol.
4504
934b9bac
JK
45052013-08-05 Jan Kratochvil <jan.kratochvil@redhat.com>
4506
4507 Code cleanup.
4508 * remote.c (cleanup_sigint_signal_handler): Rename the declaration
4509 to ...
4510 (async_cleanup_sigint_signal_handler): ... this.
4511 (initialize_sigint_signal_handler): Remove declaration.
4512 (handle_remote_sigint): Rename the declaration to ...
4513 (async_handle_remote_sigint): ... this.
4514 (handle_remote_sigint_twice): Rename the declaration to ...
4515 (async_handle_remote_sigint_twice): ... this.
4516 (async_remote_interrupt, async_remote_interrupt_twice)
4517 (remote_interrupt): Remove the declarations.
4518 (remote_interrupt_twice): Rename the declaration ...
4519 (sync_remote_interrupt_twice): ... this.
4520 (sigint_remote_twice_token): Rename the variable to ...
4521 (async_sigint_remote_twice_token): ... this.
4522 (sigint_remote_token): Rename the variable to ...
4523 (async_sigint_remote_token): ... this.
4524 (initialize_sigint_signal_handler): Rename the function to ...
4525 (async_initialize_sigint_signal_handler): ... this. Update the name
4526 inside.
4527 (handle_remote_sigint): Rename the function to ...
4528 (async_handle_remote_sigint): ... this. Update the names inside.
4529 (handle_remote_sigint_twice): Rename the function to ...
4530 (async_handle_remote_sigint_twice): ... this. Update the names inside.
4531 (cleanup_sigint_signal_handler): Rename the function to ...
4532 (async_cleanup_sigint_signal_handler): ... this.
4533 (remote_interrupt): Rename the function to ...
4534 (sync_remote_interrupt): this. Update the names inside.
4535 (remote_interrupt_twice): Rename the function to ...
4536 (sync_remote_interrupt_twice): this. Update the names inside.
4537 (remote_terminal_inferior, remote_terminal_ours, remote_wait_as)
4538 (_initialize_remote): Update the names inside.
4539
3a1115a0
TT
45402013-08-02 Tom Tromey <tromey@redhat.com>
4541
4542 PR symtab/15719:
4543 * breakpoint.c (update_watchpoint, watchpoint_check)
4544 (watch_command_1): Update.
4545 * eval.c (fetch_subexp_value): Add "preserve_errors"
4546 parameter.
4547 * ppc-linux-nat.c (check_condition): Update.
4548 * value.h (fetch_subexp_value): Update.
4549
58b19776
AB
45502013-08-02 Andrew Burgess <aburgess@broadcom.com>
4551
4552 * mi/mi-interp.c (mi_interpreter_resume): Remove call to
4553 add_file_handler.
4554
ec94af83
DE
45552013-08-01 Doug Evans <dje@google.com>
4556
7ee85ab1
DE
4557 PR symtab/15691
4558 * dwarf2read.c (struct dwarf2_per_cu_data): New member tu_read.
4559 (fill_in_sig_entry_from_dwo_entry): Reorganize asserts.
4560 Add assert of sig_entry->dwo_unit == NULL.
4561 (lookup_dwo_signatured_type): Don't assign TU to a DWO if the TU
4562 had already been read.
4563 (read_signatured_type): Set per_cu.tu_read.
4564
b846d303
DE
4565 PR symtab/15695
4566 * valops.c (value_struct_elt): Add missing call to check_typedef.
4567 (value_find_oload_method_list): Ditto.
4568
b52109bc
DE
4569 * symtab.c (do_free_search_symbols_cleanup): Change arg to,
4570 effectively, struct symbol_search **.
4571 (make_cleanup_free_search_symbols): Change arg to struct
4572 symbol_search **. All callers updated.
4573 (compare_search_syms): Compare symtab file name and block as well.
4574 (search_symbols_equal): New function.
4575 (sort_search_symbols_remove_dups): Renamed from sort_search_symbols.
4576 New args new_head, new_tail. Result is now void. Remove dups after
4577 sorting the symbols.
4578 (search_symbols): Sort all found symbols once, after all have been
4579 found, and remove duplicates. Simplify cleanup tracking of result.
4580 * symtab.h (make_cleanup_free_search_symbols): Update prototype.
4581
ec94af83
DE
4582 Further workarounds for binutils/15021.
4583 * dwarf2read.c (recursively_compute_inclusions): Change type of result
4584 parameter to VEC (symtab_ptr) **. New parameter all_type_symtabs.
4585 Watch for duplicate symtabs coming from type units.
4586 (compute_symtab_includes): Update call to
4587 recursively_compute_inclusions. Build vector of included symtabs
4588 instead of per_cus.
4589 * symtab.h (symtab_ptr): New typedef.
4590 (DEF_VEC_P (symtab_ptr)): New VEC type.
4591 * linespec.c (symtab_p): Delete. All uses updated to use symtab_ptr
4592 instead.
4593
b2ae85cf
AB
45942013-08-01 Andrew Burgess <aburgess@broadcom.com>
4595
4596 * cli/cli-script.c (script_from_file): Remove use of
4597 error_pre_print.
4598 * main.c (captured_main): Remove use of error_pre_print and
4599 quit_pre_print.
4600 * utils.c (error_pre_print, quit_pre_print): Remove.
4601 * utils.h (error_pre_print, quit_pre_print): Likewise.
4602
645eab03
YQ
46032013-08-01 Yao Qi <yao@codesourcery.com>
4604
4605 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Parse argv
4606 with mi_getopt.
4607 (mi_cmd_stack_list_variables): Likewise.
4608
16f92dd4
AB
46092013-07-31 Andrew Burgess <aburgess@broadcom.com>
4610
4611 * exceptions.c (deprecated_throw_reason): Remove.
4612 * exceptions.h (deprecated_throw_reason): Remove.
4613
13f78033
AB
46142013-07-31 Andrew Burgess <aburgess@broadcom.com>
4615
4616 * remote-mips.c (mips_error): Replace use of
4617 deprecated_throw_reason with throw_verror. Use the error message
4618 passed to mips_error as the error message for throw_verror.
4619
039e3c22
AB
46202013-07-31 Andrew Burgess <aburgess@broadcom.com>
4621
4622 * monitor.c (monitor_interrupt_query): Replace use of
4623 deprecated_throw_reason with quit.
4624 * nto-procfs.c (interrupt_query): Likewise.
4625 * remote-fileio.c (remote_fileio_sig_exit): Likewise.
4626 * remote-mips.c (mips_kill): Likewise.
4627 * remote.c (interrupt_query): Likewise.
4628
8150913b
AB
46292013-07-31 Andrew Burgess <aburgess@broadcom.com>
4630
4631 * utils.c (internal_verror): Replace use of deprecated_throw_reason
4632 with call to fatal.
4633
de74e63a
YQ
46342013-07-31 Pedro Alves <pedro@codesourcery.com>
4635 Yao Qi <yao@codesourcery.com>
4636
4637 * tracepoint.c (trace_dump_command): Select the current frame.
4638
247f5c4f
DE
46392013-07-30 Doug Evans <dje@google.com>
4640
4641 * dwarf2read.c (process_queue): Add type signature to debug output.
4642
11b4b7cc
AB
46432013-07-30 Andrew Burgess <aburgess@broadcom.com>
4644
4645 * value.c (value_fetch_lazy): Mark optimized out values as such
4646 rather than raising an error.
4647
b0c54aa5
AB
46482013-07-30 Andrew Burgess <aburgess@broadcom.com>
4649
4650 * value.c (value_fetch_lazy): Ensure parent value is not lazy
4651 before checking which bits of the parent, not the child, value are
4652 valid.
4653
97c85fc6
MB
46542013-07-30 Muhammad Bilal <mbilal@codesorcery.com>
4655
4656 PR gdb/15715
4657 * top.c: Include "filenames.h".
4658 (set_history_filename): New function.
4659 (init_main): Install it as set hook of the "set history filename"
4660 command.
4661
ff39bb5e
SA
46622013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
4663
4664 * dwarf2read.c (dwarf2_get_ref_die_offset): Constify struct
4665 attribute parameter.
4666 (dwarf2_const_value_data): Constify struct attribute parameter.
4667 (dwarf2_const_value): Constify struct attribute parameter.
4668 (dwarf2_const_value_attr): Constify struct attribute parameter.
4669 (lookup_die_type): Constify struct attribute parameter.
4670 (dwarf2_get_attr_constant_value): Constify struct attribute parameter.
4671 (follow_die_ref_or_sig): Constify struct attribute parameter.
4672 (follow_die_ref): Constify struct attribute parameter.
4673 (follow_die_sig): Constify struct attribute parameter.
4674 (get_DW_AT_signature_type): Constify struct attribute parameter.
4675 (get_type_unit_group): Constify struct attribute parameter.
4676 (fill_in_loclist_baton): Constify struct attribute parameter.
4677 (dwarf2_symbol_mark_computed): Constify struct attribute parameter.
4678 (type_unit_group): Constify struct attribute parameter.
4679
6e5a29e1
SA
46802013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
4681
4682 * dwarf2read.c (attr_form_is_block): Make argument const.
4683 (attr_form_is_section_offset): Make argument const.
4684 (attr_form_is_constant): Make argument const.
4685 (attr_form_is_ref): Make argument const.
4686
7771576e
SA
46872013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
4688
4689 * dwarf2read.c (attr_is_ref): Rename to attr_form_is_ref.
4690 All uses updated.
4691 (attr_form_is_ref): Moved below attr_form_is_constant.
4692
a94e8645
DE
46932013-07-29 Doug Evans <dje@google.com>
4694
bb5291d0
DE
4695 * main.c (captured_command_loop): Tweak comment.
4696
b5419e49
DE
4697 * target.c (target_async_permitted_1): Fix comment.
4698
b2d23133
DE
4699 * symtab.c (iterate_over_some_symtabs): Add comment.
4700
a94e8645
DE
4701 * symtab.c (iterate_over_some_symtabs): Fix indentation.
4702
7a60ad40
YQ
47032013-07-27 Yao Qi <yao@codesourcery.com>
4704
4705 * NEWS: Mention that GDBserver now supports hardware
4706 watchpoints on the MIPS GNU/Linux target.
4707
aaee2056
YQ
47082013-07-27 Yao Qi <yao@codesourcery.com>
4709
4710 * Makefile.in (HFILES_NO_SRCDIR): Add
4711 common/mips-linux-watch.h.
4712 (mips-linux-watch.o): New rule.
4713 * common/mips-linux-watch.c: New.
4714 * common/mips-linux-watch.h: New.
4715 * config/mips/linux.mh (NATDEPFILES): Add mips-linux-watch.o
4716 * mips-linux-nat.c: Include mips-linux-watch.h.
4717 (W_BIT, R_BIT, I_BIT, W_MASK, R_MASK, I_MASK, IRW_MASK): Move
4718 to common/mips-linux-watch.h.
4719 (MAX_DEBUG_REGISTER): Likewise.
4720 (enum pt_watch_style): Likewise.
4721 (struct mips32_watch_regs): Likewise.
4722 (struct mips64_watch_regs): Likewise.
4723 (struct pt_watch_regs): Likewise.
4724 (struct mips_watchpoint): Likewise.
4725 (mips_linux_watch_get_irw_mask): Move to
4726 common/mips-linux-watch.c.
4727 (get_reg_mask, mips_linux_watch_get_num_valid): Likewise.
4728 (mips_linux_watch_get_watchlo): Likewise.
4729 (mips_linux_watch_set_watchlo): Likewise.
4730 (mips_linux_watch_get_watchhi): Likewise.
4731 (mips_linux_watch_set_watchhi): Likewise.
4732 (mips_linux_read_watch_registers): Likewise.
4733 (mips_linux_watch_type_to_irw): Likewise.
4734 (mips_linux_stopped_data_address, fill_mask): Likewise.
4735 (mips_linux_watch_try_one_watch): Likewise.
4736 (mips_linux_watch_populate_regs): Likewise.
4737
b3436450
YQ
47382013-07-27 Yao Qi <yao@codesourcery.com>
4739
4740 * mips-linux-nat.c (get_irw_mask): Rename to ...
4741 (mips_linux_watch_get_irw_mask): ... this. Rename parameter
4742 'set' to 'n'. Update function comment. All callers changed.
4743 (get_reg_mask): Rename parameter 'set' to 'n'. Update
4744 function comment. All callers changed.
4745 (get_num_valid): Rename to ...
4746 (mips_linux_watch_get_num_valid): ... this. Rename parameter
4747 'set' to 'n'. Update function comment. All callers changed.
4748 (get_watchlo): Rename to ...
4749 (mips_linux_watch_get_watchlo): ... this. Rename parameter
4750 'set' to 'n'. Update function comment. All callers changed.
4751 (set_watchlo): Rename to ...
4752 (mips_linux_watch_set_watchlo): ... this. Rename parameter
4753 'set' to 'n'. Update function comment. All callers changed.
4754 (get_watchhi): Rename to ...
4755 (mips_linux_watch_get_watchhi): ... this. Update function
4756 comment. All callers changed.
4757 (set_watchhi): Rename to ...
4758 (mips_linux_watch_set_watchhi): ... this. Update function
4759 comment. All callers changed.
4760 (mips_linux_read_watch_registers): Update function comment.
4761 Add new parameters 'lwpid', 'watch_readback', and
4762 'watch_readback_valid'. Update.
4763 (type_to_irw): Rename to ...
4764 (mips_linux_watch_type_to_irw): ... this. Update function
4765 comment. All callers changed.
4766 (fill_mask): Update function comment.
4767 (try_one_watch): Rename to ...
4768 (mips_linux_watch_try_one_watch): ... this. Change the type
4769 of parameter 'irw' from 'unsigned' to 'uint32_t'.
4770 (populate_regs_from_watches): Rename to ...
4771 (mips_linux_watch_populate_regs): ... this. Add parameter
4772 'current_watches'. All callers changed.
4773
9be14b81
YQ
47742013-07-27 Yao Qi <yao@codesourcery.com>
4775
4776 * mips-linux-nat.c (MAX_DEBUG_REGISTER): Move it earlier in
4777 the code.
4778 (PTRACE_SET_WATCH_REGS, enum pt_watch_style): Remove.
4779 (struct mips32_watch_regs, struct mips64_watch_regs): Remove.
4780 (struct pt_watch_regs): Likewise.
4781 [!PTRACE_GET_WATCH_REGS] (PTRACE_SET_WATCH_REGS): New macro.
4782 [!PTRACE_GET_WATCH_REGS] (enum pt_watch_style): New.
4783 [!PTRACE_GET_WATCH_REGS] (struct mips32_watch_regs): New.
4784 [!PTRACE_GET_WATCH_REGS] (struct mips64_watch_regs): New.
4785 [!PTRACE_GET_WATCH_REGS] (struct pt_watch_regs): New.
4786
de6f69ad
YQ
47872013-07-27 Yao Qi <yao@codesourcery.com>
4788
4789 * breakpoint.h: Include break-common.h.
4790 (enum target_hw_bp_type): Move to ...
4791 * common/break-common.h: ... here. New.
4792
6f64ef53
PA
47932013-07-26 Cyril Nikolaev <cyril@nichtverstehen.de>
4794
4795 * inflow.c (terminal_init_inferior_with_pgrp): Save inferior
4796 process group regardless of having tty on stdin.
4797
6107e809
DE
47982013-07-25 Doug Evans <dje@google.com>
4799
4800 * linux-fork.h (detach_fork): Delete.
4801
7fdc1521
TT
48022013-07-25 Tom Tromey <tromey@redhat.com>
4803
4804 PR remote/15256, PR remote/15266:
4805 * bfd-target.c (target_bfd_reopen): Initialize to_magic.
4806 * monitor.c (monitor_detach): Use unpush_target.
4807 * remote-m32r-sdi.c (m32r_detach): Use unpush_target.
4808 * remote-mips.c (mips_detach): Use unpush_target. Don't
4809 call mips_close.
4810 * remote-sim.c (gdbsim_detach): Use unpush_target.
4811 * target.c (pop_target): Remove.
4812 (pop_all_targets_above): Don't call target_close.
4813 (target_close): Assert that the target is unpushed.
4814 * target.h (pop_target): Don't declare.
4815 * tracepoint.c (tfile_open): Use unpush_target.
4816
c22a2b88
TT
48172013-07-25 Tom Tromey <tromey@redhat.com>
4818
4819 * linux-thread-db.c (init_thread_db_ops): Call
4820 complete_target_initialization.
4821 (_initialize_thread_db): Don't call add_target.
4822 * target.c (complete_target_initialization): New function.
4823 (add_target_with_completer): Call it.
4824 * target.h (complete_target_initialization): Declare.
4825
cbb6aada
MK
48262013-07-25 Mark Kettenis <kettenis@gnu.org>
4827
4828 * hppa-tdep.h (enum hppa_regnum): Add members for all space registers.
4829 * hppaobsd-tdep.c (HPPAOBSD_SIZEOF_GREGS): Add comment.
4830 (HPPANBSD_SIZEOF_GREGS): New define.
4831 (hppaobsd_supply_gregset): Handle additional registers.
4832 * hppabsd-nat.c (hppabsd_gregset_supplies_p): Adjust to indicate
4833 we provide more registers now.
4834 (hppabsd_supply_gregset): Supply additional registers.
4835 (hppabsd_collect_gregset): Collect additional registers.
4836
17767988
MK
48372013-07-25 Mark Kettenis <kettenis@gnu.org>
4838
4839 * hppabsd-tdep.c: Include "dwarf2-frame.h".
4840 (hppabsd_dwarf2_frame_init_reg): New function.
4841 (hppabsd_init_abi): Hook in the DWARF CFI frame unwinder.
4842
fdc8aae8
AB
48432013-07-25 Andrew Burgess <aburgess@broadcom.com>
4844
4845 * mi/mi-main.c (output_register): Make MI 'r' format use standard
4846 'z' format code. Remove error for optimized out values, standard
4847 code will handle these fine.
4848
6fbe845e
AB
48492013-07-25 Andrew Burgess <aburgess@broadcom.com>
4850
4851 * NEWS: Mention new 'z' formatter.
4852 * printcmd.c (print_scalar_formatted): Add new 'z' formatter.
4853 (_initialize_printcmd): Mention 'z' formatter in help text of the
4854 'x' command.
4855
3373342d
MR
48562013-07-24 Maciej W. Rozycki <macro@codesourcery.com>
4857
4858 * mips-tdep.c (micromips_deal_with_atomic_sequence): Correct
4859 formatting.
4860
25f9533e
SDJ
48612013-07-24 Sergio Durigan Junior <sergiodj@redhat.com>
4862
4863 * breakpoint.c (create_longjmp_master_breakpoint): Check if probe
4864 interface can evaluate arguments. Fallback to the old mode if it
4865 cannot.
4866 (create_exception_master_breakpoint): Likewise.
4867 * elfread.c (elf_can_evaluate_probe_arguments): New function.
4868 (struct sym_probe_fns elf_probe_fns): Export function above to the
4869 probe interface.
4870 * probe.c (can_evaluate_probe_arguments): New function.
4871 * probe.h (struct probe_ops) <can_evaluate_probe_arguments>: New
4872 function pointer.
4873 (can_evaluate_probe_arguments): New function prototype.
4874 * solib-svr4.c (svr4_create_solib_event_breakpoints): Check if
4875 probe interface can evaluate arguments. Fallback to the old mode
4876 if it cannot.
4877 * stap-probe.c (stap_get_probe_argument_count): Check if probe
4878 interface can evaluate arguments. Warning the user if it cannot.
4879 (stap_can_evaluate_probe_arguments): New function.
4880 (struct probe_ops stap_probe_ops): Export function above to the
4881 probe interface.
4882 * symfile.h (struct sym_probe_fns) <can_evaluate_probe_arguments>:
4883 New function pointer.
4884
3360c0bf
LM
48852013-07-24 Luis Machado <lgustavo@codesourcery.com>
4886
4887 * Makefile.in (SFILES): Add common/target-common.c.
4888 Add common/target-common.h to headers.
4889 (COMMON_OBS): Add target-common.o.
4890 (target-common.o): New target.
4891 * linux-nat.h (resume_kind): Move to common/target-common.h.
4892 * target.c (target_waitstatus_to_string): Move to
4893 common/target-common.c.
4894 * target.h: Include target-common.h.
4895 (target_waitkind): Move to common/target-common.h.
4896 (target_waitstatus): Likewise.
4897 (TARGET_WNOHANG): Likewise.
4898 * common/target-common.c: New file.
4899 * common/target-common.h: New file.
4900
6656a72d
DE
49012013-07-24 Doug Evans <dje@google.com>
4902
4903 * dwarf2read.c (lookup_dwo_cutu): Change missing DWO complaint to
4904 a warning.
4905
6df81a63
YQ
49062013-07-23 Yao Qi <yao@codesourcery.com>
4907
4908 * i386-tdep.c (i386_in_stack_tramp_p): Remove unused
4909 parameter 'gdbarch'.
4910 (i386_stack_tramp_frame_sniffer): Caller update.
4911 * i386-linux-tdep.c (i386_linux_core_read_xcr0): Remove
4912 parameter 'gdbarch' and 'target'.
4913 (i386_linux_core_read_description): Caller update.
4914 * amd64-linux-tdep.c (amd64_linux_core_read_description):
4915 Likewise.
4916 * i386-linux-tdep.h (i386_linux_core_read_xcr0): Update
4917 declaration.
4918
365156ad
TT
49192013-07-23 Tom Tromey <tromey@redhat.com>
4920
4921 * dwarf2read.c (init_cutu_and_read_dies): Revert patch from
4922 2013-07-22.
4923
046ac79f
JK
49242013-07-22 Doug Evans <dje@google.com>
4925
4926 * exec.h (remove_target_sections): Delete arg abfd.
66cbcda4
JK
4927 * exec.c (exec_close): Update call to remove_target_sections.
4928 (remove_target_sections): Delete arg abfd.
046ac79f
JK
4929 * solib.c (update_solib_list): Ditto.
4930 (reload_shared_libraries_1): Ditto.
4931 (clear_solib): Ditto, and unconditionally call remove_target_sections.
66cbcda4
JK
4932 * target.h (struct target_section): Rename key to owner.
4933 All uses updated.
046ac79f 4934
29b2cc46
TT
49352013-07-22 Tom Tromey <tromey@redhat.com>
4936
4937 * solib-som.c (som_open_symbol_file_object): Call do_cleanups.
4938
d1160018
TT
49392013-07-22 Tom Tromey <tromey@redhat.com>
4940
4941 * dwarf2read.c (init_cutu_and_read_dies): Remove 'free_cu_cleanup'.
4942 Simplify cleanup handling.
4943
2f324bf6
TT
49442013-07-22 Tom Tromey <tromey@redhat.com>
4945
4946 * dwarf2read.c (dwarf_decode_line_header): Call do_cleanups
4947 on all return paths.
4948
e23b9d6e
UW
49492013-07-22 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
4950
4951 * ppc-linux-nat.c (PPC_DEBUG_FEATURE_DATA_BP_DAWR): New define.
4952 (ppc_linux_region_ok_for_hw_watchpoint): Add checking to use the new
4953 DAWR interface for longer ranges hardware watchpoint (up to 512 bytes).
4954
1cf55f60
PM
49552013-07-22 Phil Muldoon <pmuldoon@redhat.com>
4956
4957 * top.c (print_gdb_version): Add help, apropos description and
4958 url to online documentation.
4959
fa876972
HZ
49602013-07-19 Hui Zhu <hui@codesourcery.com>
4961
4962 PR gdb/15692
4963 * mi/mi-cmd-break.c (mi_argv_to_format): Handle double quotes.
4964
1527aea8
YQ
49652013-07-19 Yao Qi <yao@codesourcery.com>
4966
4967 * target.c (update_current_target): Change the default action
4968 of 'to_traceframe_info' from tcomplain to return_zero.
4969 * target.h (struct target_ops) <to_traceframe_info>: Add more
4970 comments.
4971 * valops.c (read_value_memory): Call
4972 traceframe_available_memory unconditionally.
4973
886f230e
YQ
49742013-07-18 Yao Qi <yao@codesourcery.com>
4975
4976 * coffread.c (coff_symfile_read): Iterate over minimal symbols,
4977 if the name is prefixed by "__imp_" or "_imp_", look for minimal
4978 symbol without prefix. If found, set its type to
4979 'mst_solib_trampoline'.
4980
16419bae
DE
49812013-07-17 Doug Evans <dje@google.com>
4982
e7045703
DE
4983 * NEWS: Mention "set print raw frame-arguments".
4984 * gdbcmd.h (setprintrawlist, showprintrawlist): Declare.
4985 * stack.c (print_raw_frame_arguments): New static global.
4986 (print_frame_arg): Set opts.raw from print_raw_frame_arguments.
4987 (_initialize_stack): New command "set/show print raw frame-arguments".
4988 * valprint.c (setprintrawlist, showprintrawlist): New globals.
4989 (set_print_raw, show_print_raw): New functions.
4990 (_initialize_valprint): New prefix command "set/show print raw".
4991 * valprint.h (value_print_options): Improve comments.
4992
453e48a5
DE
4993 * cli/cli-cmds.c (init_cmd_lists): Delete unnecessary initialization
4994 of all *list variables.
4995
16419bae
DE
4996 * gdbcmd.h (togglelist): Delete.
4997 * cli/cli-cmds.c (togglelist): Delete.
4998 (init_cmd_lists): Update.
4999 * cli/cli-cmds.h (togglelist): Delete.
5000
626f2d1c
TT
50012013-07-17 Tom Tromey <tromey@redhat.com>
5002
5003 * dwarf2read.c (dwarf2_per_objfile_free): Clear
5004 dwarf2_per_objfile.
5005
57e6060e
DE
50062013-07-16 Doug Evans <dje@google.com>
5007
5008 * nto-tdep.c (nto_relocate_section_addresses): Update,
5009 target_section.bfd deleted.
5010 * ppc64-tdep.c (ppc64_convert_from_func_ptr_addr): Ditto.
5011 * s390-tdep.c (s390_load): Ditto.
5012 * solib-aix.c (solib_aix_relocate_section_addresses): Ditto.
5013
5ea5559b
AB
50142013-07-16 Andrew Burgess <aburgess@broadcom.com>
5015
5016 * common/format.c (parse_format_string): Add checks for NULL
5017 character before calling strchr.
5018
2b2848e2
DE
50192013-07-16 Doug Evans <dje@google.com>
5020
2c571006
DE
5021 * solist.h (target_so_ops.find_and_open_solib): Clarify usage of
5022 temp_pathname argument.
5023 * nto-tdep.c (nto_find_and_open_solib): Fix setting of temp_pathname
5024 when opening the file fails.
5025
2b2848e2
DE
5026 * target.h (struct target_section): Delete member bfd.
5027 All users updated to use the_bfd_section->owner instead.
5028 * exec.c (add_to_section_table): Assert bfd is expected value.
5029 Remove initialization of target_section.bfd.
5030 (remove_target_sections): Update.
5031 (section_table_available_memory): Update.
5032 (section_table_xfer_memory_partial): Update.
5033 (print_section_info): Update.
5034 (exec_set_section_address): Update.
5035 * record-full.c (record_full_core_xfer_partial): Update.
5036 * solib-svr4.c (svr4_relocate_section_addresses): Update.
5037 * solib-target.c (solib_target_relocate_section_addresses): Update.
5038 * symfile.c (build_section_addr_info_from_section_table): Update.
5039 * target.c (memory_xfer_live_readonly_partial): Update.
5040 (memory_xfer_partial_1): Update.
5041
926bf92d
UW
50422013-07-15 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
5043
5044 * ppc-linux-nat.c: Since the new PowerPC specific ptrace interface is
5045 now available for embedded (BookE) and server (BookS) processors,
5046 correct mentions of 'booke' and adjust comments accordingly in order to
5047 avoid confusion. Rename struct 'booke_debug_info' to 'hwdebug_info'.
5048 (have_ptrace_booke_interface): Rename function and variable
5049 'have_ptrace_booke_interface' to 'have_ptrace_hwdebug_interface'.
5050 Rename struct 'booke_debug_info' to 'hwdebug_info'. Update all uses.
5051 (booke_cmp_hw_point): Rename function 'booke_cmp_hw_point' to
5052 'hwdebug_point_cmp'. Update all uses.
5053 (booke_find_thread_points_by_tid): Rename function
5054 'booke_find_thread_points_by_tid' to
5055 'hwdebug_find_thread_points_by_tid'. Update all uses.
5056 (booke_insert_point): Rename function 'booke_insert_point' to
5057 'hwdebug_insert_point'. Update all uses.
5058 (booke_remove_point): Rename function 'booke_remove_point' to
5059 'hwdebug_remove_point'. Update all uses.
5060
d929bc19
MR
50612013-07-15 Maciej W. Rozycki <macro@codesourcery.com>
5062
5063 * mips-tdep.c (mips_gdbarch_init): Replace hardcoded magic
5064 numbers with enum values.
5065
054e8d9e
AA
50662013-07-15 Ali Anwar <ali_anwar@codesourcery.com>
5067
5068 PR threads/13217
5069 * thread.c (thread_apply_all_command): Check for valid threads
5070 and thread count.
5071 (thread_array_cleanup): New struct.
5072 (set_thread_refcount): New function.
5073
cf006359
AB
50742013-07-11 Andrew Burgess <aburgess@broadcom.com>
5075
5076 * infcmd.c (default_print_one_register_info): Reuse function
5077 print_hex_chars.
5078
94e36acc
TT
50792013-07-10 Tom Tromey <tromey@redhat.com>
5080
5081 * Makefile.in (GDB_WARN_CFLAGS_NO_DEFS, ADA_EXP_C): New macros.
5082 (ada-exp.o): New target.
5083
915dd369
SDJ
50842013-07-10 Sergio Durigan Junior <sergiodj@redhat.com>
5085
5086 * mt-tdep.c (mt_registers_info): Call
5087 get_no_prettyformat_print_options instead of
5088 get_raw_print_options (regression by last patch from Doug
5089 Evans).
5090
eca07816
JB
50912013-07-09 Pedro Alves <palves@redhat.com>
5092
5093 Checked in by Joel Brobecker <brobecker@adacore.com>.
5094 * ada-lang.c (coerce_unspec_val_to_type): Use
5095 value_optimized_out_const.
5096 * value.c (value_optimized_out_const): New function.
5097 * value.h (value_optimized_out_const): New declaration.
5098
2a998fc0
DE
50992013-07-09 Doug Evans <dje@google.com>
5100
5101 * defs.h (enum val_prettyformat): Renamed from val_prettyprint.
5102 Enum values rename as well. All uses updated.
5103 * valprint.h (value_print_options): Rename member pretty to
5104 pretty format. Rename member prettyprint_arrays to
5105 prettyformat_arrays. Rename member prettyprint_structs to
5106 prettyformat_structs. All uses updated.
5107 (get_no_prettyformat_print_options): Renamed from
5108 get_raw_print_options.
5109 * valprint.c (get_no_prettyformat_print_options): Renamed from
5110 get_raw_print_options. All callers updated.
5111 (show_prettyformat_structs): Renamed from show_prettyprint_structs.
5112 All callers updated.
5113 (show_prettyformat_arrays): Renamed from show_prettyprint_arrays.
5114 All callers updated.
5115 (_initialize_valprint): Improve help text for "set print pretty" and
5116 "set print arrays".
5117
466c1fca
AB
51182013-07-09 Andrew Burgess <aburgess@broadcom.com>
5119
5120 * value.c (value_bits_valid): Revert previous change, and change
5121 by Pedro on 2013-07-04, due to regressions in
5122 gdb.dwarf2/implptr.exp and gdb.dwarf2/pieces.exp.
5123
ad0f0303
AB
51242013-07-08 Andrew Burgess <aburgess@broadcom.com>
5125 Pedro Alves <palves@redhat.com>
5126
5127 * value.c (value_bits_valid): If the value is not lval_computed
5128 or has no check validity handler then the answer is the
5129 optimized_out flag, otherwise defer to the handler.
5130
b187bec1
EZ
51312013-07-06 Eli Zaretskii <eliz@gnu.org>
5132
48d1d6f5
EZ
5133 * top.c (print_gdb_configuration): Explain in output of
5134 --configuration what does "relocatable" mean.
5135
b187bec1
EZ
5136 * main.c (print_gdb_help): Regroup options in the --help text.
5137 See http://sourceware.org/ml/gdb-patches/2013-04/msg00362.html for
5138 the relevant discussions.
5139
52d361e1
YQ
51402013-07-06 Yao Qi <yao@codesourcery.com>
5141
5142 * breakpoint.h (struct breakpoint_ops) <create_breakpoints_sal>:
5143 Remove parameter 'lsal'.
5144 * breakpoint.c (create_breakpoint): Move local variable 'lsal'
5145 to inner block. Caller update.
5146 (base_breakpoint_create_breakpoints_sal): Update.
5147 (bkpt_create_breakpoints_sal): Likewise.
5148 (tracepoint_create_breakpoints_sal): Likewise.
5149 (strace_marker_create_breakpoints_sal): Get 'lsal' from the
5150 element 0 of vector 'canonical->sals'.
5151
e1ec1b42
LM
51522013-07-05 Luis Machado <lgustavo@codesourcery.com>
5153
5154 * rs6000-tdep.c (rs6000_stab_reg_to_regnum): Return the real
5155 register number instead of the pseudo register one.
5156 (rs6000_dwarf2_reg_to_regnum): Likewise.
5157
7195e6f0
PA
51582013-07-04 Pedro Alves <palves@redhat.com>
5159
5160 * findvar.c (value_of_register): Use allocate_optimized_out_value
5161 if the register has been optimized out, instead of
5162 set_value_optimized_out.
5163 * frame-unwind.c (frame_unwind_got_optimized): Use
5164 allocate_optimized_out_value.
5165
58722cac
PA
51662013-07-04 Pedro Alves <palves@redhat.com>
5167
5168 * value.c (value_bits_valid): If the value is not lval_computed,
5169 or doesn't have a check_validity hook, assume the value is entirely
5170 valid.
5171
691a26f5
AB
51722013-07-04 Andrew Burgess <aburgess@broadcom.com>
5173
5174 * stack.c (read_frame_arg): No longer fetch lazy values.
5175 * value.c (value_optimized_out): If the value is not already
5176 marked optimized out, and is lazy then fetch it.
5177 (value_primitive_field): Move optimized out check to later in the
5178 function, after we have loaded any lazy values.
5179 (value_fetch_lazy): Use optimized out flag directly rather than
5180 calling optimized_out method.
5181
a58e2656
AB
51822013-07-04 Andrew Burgess <aburgess@broadcom.com>
5183
5184 * valops.c: Don't include "user-regs.h".
5185 (value_fetch_lazy): Moved to value.c.
5186 * value.c: Include "user-regs.h".
5187 (value_fetch_lazy): Moved from valops.c.
5188
bd885420
YQ
51892013-07-04 Yao Qi <yao@codesourcery.com>
5190
5191 Revert:
5192 2013-06-27 Yao Qi <yao@codesourcery.com>
5193
5194 * common/create-version.sh: Update comments. Handle the case
5195 that TARGET_ALIAS is empty.
5196
17ef446e
PA
51972013-07-03 Pedro Alves <palves@redhat.com>
5198
5199 * Makefile.in (config.status): Depend on development.sh.
5200 (aclocal_m4_deps): Add libmcheck.m4.
5201 * acinclude.m4: Include libmcheck.m4.
5202 * configure.ac: Source development.sh instead of setting
5203 'development' here. --enable-libmcheck/--disable-libmcheck code
5204 factored out to GDB_AC_LIBMCHECK. Run it.
5205 * development.sh: New file.
5206 * libmcheck.m4: New file.
5207 * configure: Regenerate.
5208
ac6dd50f
TT
52092013-07-02 Tom Tromey <tromey@redhat.com>
5210
5211 * contrib/ari/update-web-ari.sh: Update for version.in change.
5212
bd1df410
TT
52132013-07-02 Tom Tromey <tromey@redhat.com>
5214
5215 * common/ptid.h: Comment fixes.
5216
4db1a1dc
TT
52172013-07-01 Tom Tromey <tromey@redhat.com>
5218
5219 * dwarf2read.c (dwarf2_get_dwz_file): Return NULL if
5220 .gnu_debugaltlink not found. Use bfd_get_alt_debug_link_info.
5221 (dwarf2_read_index, create_all_comp_units): Update.
5222
dd9aa048
TT
52232013-07-01 Tom Tromey <tromey@redhat.com>
5224
5225 * configure.ac (build_warnings): Add -Wold-style-definition.
5226 * configure: Rebuild.
5227 * machoread.c (_initialize_machoread): Use "(void)".
5228 * macrocmd.c (macro_inform_no_debuginfo): Fix formatting;
5229 use "(void)".
5230
44d100c3
TT
52312013-07-01 Tom Tromey <tromey@redhat.com>
5232
5233 * configure.ac (build_warnings): Add -Wold-style-declaration.
5234 * configure: Rebuild.
5235 * dsrec.c (make_srec): Use "static const", not "const static".
5236 * h8300-tdep.c (h8300_breakpoint_from_pc): Use "static const",
5237 not "const static".
5238 * mi/mi-parse.c (mi_no_values, mi_simple_values, mi_all_values):
5239 Use "static const", not "const static".
5240 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Use "static const",
5241 not "const static".
5242 * moxie-tdep.c (moxie_breakpoint_from_pc): Use "static const",
5243 not "const static".
5244 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Use "static const",
5245 not "const static".
5246 * v850-tdep.c (v850_breakpoint_from_pc): Use "static const",
5247 not "const static".
5248 (v850_dbtrap_breakpoint_from_pc): Likewise.
5249 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Use "static const",
5250 not "const static".
5251
2945b807
TT
52522013-07-01 Tom Tromey <tromey@redhat.com>
5253
5254 * configure.ac (build_warnings): Add -Wmissing-parameter-type.
5255 * configure: Rebuild.
5256
d8d2a3ee
PA
52572013-07-01 Pedro Alves <palves@redhat.com>
5258
5259 * defs.h: Include "pathmax.h".
5260 * utils.c: Don't include sys/param.h.
5261 (gdb_realpath): Remove code that checks for MAXPATHLEN.
5262 * solib-ia64-hpux.c (ia64_hpux_handle_load_event): Use PATH_MAX
5263 instead of MAXPATHLEN.
5264 * solib-sunos.c: Don't include sys/param.h.
5265 * xcoffread.c: Don't include sys/param.h.
5266 * bsd-kvm.c: Don't include sys/param.h.
5267 * darwin-nat.c: Don't include sys/param.h.
5268 (darwin_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
5269 * darwin-nat-info.c: Don't include sys/param.h.
5270 * fbsd-nat.c (fbsd_pid_to_exec_file): Use PATH_MAX instead of
5271 MAXPATHLEN.
5272 * i386obsd-nat.c: Don't include sys/param.h.
5273 * inf-child.c: Don't include sys/param.h.
5274 (inf_child_fileio_readlink): Use PATH_MAX instead of MAXPATHLEN.
5275 * linux-fork.c: Don't include sys/param.h.
5276 (fork_save_infrun_state): Use PATH_MAX instead of MAXPATHLEN.
5277 * linux-nat.c: Don't include sys/param.h.
5278 (linux_child_pid_to_exec_file, linux_proc_pending_signals)
5279 (linux_proc_pending_signals): Use PATH_MAX instead of MAXPATHLEN.
5280 * m68klinux-nat.c: Don't include sys/param.h.
5281 * nbsd-nat.c: Don't include sys/param.h.
5282 (nbsd_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
5283 * ppc-linux-nat.c: Don't include sys/param.h.
5284 * rs6000-nat.c: Don't include sys/param.h.
5285 * spu-linux-nat.c. Don't include sys/param.h.
5286 * windows-nat.c: Don't include sys/param.h.
5287 * xtensa-linux-nat.c: Don't include sys/param.h.
5288 * config/i386/nm-fbsd.h: Don't include sys/param.h.
5289
38ec2207
PA
52902013-07-01 Pedro Alves <palves@redhat.com>
5291
5292 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add pathmax.
5293 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/pathmax.m4.
5294 * gnulib/aclocal.m4: Regenerate.
5295 * gnulib/config.in: Regenerate.
5296 * gnulib/configure: Regenerate.
5297 * gnulib/import/pathmax.h: New file.
5298 * gnulib/import/Makefile.am: Regenerate.
5299 * gnulib/import/Makefile.in: Regenerate.
5300 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
5301 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
5302 * gnulib/import/m4/pathmax.m4: New file.
5303
e655c1a2
PA
53042013-07-01 Pedro Alves <palves@redhat.com>
5305
5306 * configure.ac (GDBINIT): Define, depending on host.
5307 * go32-nat.c (init_go32_ops): Don't override gdbinit here.
5308 * top.c (PATH_MAX): Delete fallback definition.
5309 (GDBINIT_FILENAME): Delete.
5310 (gdbinit): Reimplement as const char array set to the GDBINIT
5311 string constant.
5312 * top.h (gdbinit): Make const.
5313 * configure, config.in: Regenerate.
5314
50dd9793
PA
53152013-07-01 Pedro Alves <palves@redhat.com>
5316
5317 * cli/cli-cmds.c (source_script): Make 'file' parameter const.
5318 * cli/cli-cmds.h (source_script): Likewise.
5319 * exceptions.c (catch_command_errors_const): New function.
5320 * exceptions.h (catch_command_errors_const): Declare.
5321 * main.c (get_init_files): Make parameters const, and adjust.
5322 (captured_main): Make 'system_gdbinit', 'home_gdbinit' and
5323 'local_gdbinit' locals const. Adjust to use
5324 catch_command_errors_const.
5325 (print_gdb_help): Make 'system_gdbinit', 'home_gdbinit' and
5326 'local_gdbinit' locals const.
5327
bc7dea8d
PA
53282013-07-01 Pedro Alves <palves@redhat.com>
5329
5330 * defs.h: Don't check HAVE_UNISTD_H before including <unistd.h>.
5331 (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO): Delete.
5332 * tracepoint.c: Don't check HAVE_UNISTD_H before including
5333 <unistd.h>.
5334
8839a007
PA
53352013-07-01 Pedro Alves <palves@redhat.com>
5336
5337 Import the "unistd" gnulib module.
5338 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add "unistd".
5339 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/off_t.m4,
5340 import/m4/ssize_t.m4, import/m4/sys_types_h.m4 and
5341 import/m4/unistd_h.m4.
5342 * gnulib/aclocal.m4: Renenerate.
5343 * gnulib/config.in: Renenerate.
5344 * gnulib/configure: Renenerate.
5345 * gnulib/import/Makefile.am: Renenerate.
5346 * gnulib/import/Makefile.in: Renenerate.
5347 * gnulib/import/m4/gnulib-cache.m4: Renenerate.
5348 * gnulib/import/m4/gnulib-comp.m4: Renenerate.
5349 * gnulib/import/m4/off_t.m4: New file.
5350 * gnulib/import/m4/ssize_t.m4: New file.
5351 * gnulib/import/m4/sys_types_h.m4: New file.
5352 * gnulib/import/m4/unistd_h.m4: New file.
5353 * gnulib/import/sys_types.in.h: New file.
5354 * gnulib/import/unistd.c: New file.
5355 * gnulib/import/unistd.in.h: New file.
5356
8c0da261
PA
53572013-07-01 Pedro Alves <palves@redhat.com>
5358
5359 * utils.c <pathconf/_PC_PATH_MAX use>: Check if _PC_PATH_MAX is
5360 defined instead of checking HAVE_UNISTD_H.
5361
3574124b
PA
53622013-07-01 Pedro Alves <palves@redhat.com>
5363
5364 Reimport gnulib from scratch.
5365 * gnulib/Makefile.in (aclocal_m4_deps): Remove reference to
5366 import/m4/onceonly.m4.
5367 * gnulib/aclocal.m4: Renegerate.
5368 * gnulib/config.in: Renegerate.
5369 * gnulib/configure: Renegerate.
5370 * gnulib/import/Makefile.in: Renegerate.
5371 * gnulib/import/extra/update-copyright: Renegerate.
5372 * gnulib/import/m4/onceonly.m4: Delete.
5373
702dc4fd
PA
53742013-07-01 Pedro Alves <palves@redhat.com>
5375
5376 * tui/tui-regs.c (pagination_enabled): Delete declaration.
5377
47e1ce27
JK
53782013-06-30 Jan Kratochvil <jan.kratochvil@redhat.com>
5379
5380 Code cleanup.
5381 * remote.c (async_remote_interrupt_twice): Make it static.
5382 * remote.h (async_remote_interrupt_twice): Remove the declaration.
5383
e82839d4
SDJ
53842013-06-29 Sergio Durigan Junior <sergiodj@redhat.com>
5385
5386 * ia64-linux-tdep.c: Include <ctype.h>.
5387 (ia64_linux_stap_is_single_operand): New function.
5388 (ia64_linux_init_abi): Initialize SystemTap related attributes.
5389
d6c2da54
TT
53902013-06-28 Tom Tromey <tromey@redhat.com>
5391
5392 * Makefile.in (version.c): Use version.in, not
5393 common/version.in.
5394 * common/create-version.sh: Likewise.
5395 * common/version.in: Move...
5396 * version.in: ...here.
5397
74da6f00
PA
53982013-06-28 Pedro Alves <palves@redhat.com>
5399
5400 * infrun.c (set_observer_mode): Don't declare pagination_enabled
5401 here.
5402 * utils.h (pagination_enabled): Declare.
5403
d32dc48e
PA
54042013-06-28 Pedro Alves <palves@redhat.com>
5405
5406 * infrun.c (non_stop, non_stop_1, set_non_stop, show_non_stop):
5407 Move higher up in file.
5408
0edd9e3b
TT
54092013-06-28 Tom Tromey <tromey@redhat.com>
5410
5411 * tracepoint.c (deprecated_readline_begin_hook)
5412 (deprecated_readline_hook, deprecated_readline_end_hook): Don't
5413 declare.
5414
4eb59108
PA
54152013-06-28 Pedro Alves <palves@redhat.com>
5416
5417 PR tui/14880
5418 * tui/tui-regs.c (tui_get_register): Fetch value contents before
5419 checking if they're available.
5420 * value.c (value_available_contents_eq): Change comment.
5421 * value.h (value_available_contents_eq): Expand comment.
5422
97b17156
TT
54232013-06-27 Tom Tromey <tromey@redhat.com>
5424
5425 * target.c (find_run_target): Remove.
5426 * target.h (find_run_target): Remove.
5427
6a3bfc5c
TT
54282013-06-27 Tom Tromey <tromey@redhat.com>
5429
5430 * corelow.c (core_gdbarch): Now static.
5431
c9ef825d
TT
54322013-06-27 Tom Tromey <tromey@redhat.com>
5433
5434 * target.c (target_struct_index): Remove.
5435
e5823f1c
PA
54362013-06-27 Pedro Alves <palves@redhat.com>
5437
5438 * infrun.c: Remove comment describing the 'stepping over runtime
5439 loader dynamic symbol resolution code' mechanism; moved to
5440 gdbint.texinfo.
5441
97f8dd09
PA
54422013-06-27 Pedro Alves <palves@redhat.com>
5443
5444 * exceptions.c (catch_command_errors): Remove spurious space.
5445 * exceptions.h (catch_command_errors): Second parameter is "arg",
5446 not "command".
5447
02b1871e
YQ
54482013-06-27 Yao Qi <yao@codesourcery.com>
5449
5450 * common/create-version.sh: Update comments. Handle the case
5451 that TARGET_ALIAS is empty.
5452
bb1b1cf1
PA
54532013-06-26 Pedro Alves <palves@redhat.com>
5454
5455 * infrun.c (SOLIB_IN_DYNAMIC_LINKER): Delete macro and describing
5456 comment.
5457
7b624e71
PA
54582013-06-26 Pedro Alves <palves@redhat.com>
5459
5460 * infrun.c: Update comments on stepping over runtime loader
5461 dynamic symbol resolution code.
5462
74e5a346
SDJ
54632013-06-26 Sergio Durigan Junior <sergiodj@redhat.com>
5464
5465 * ax-gdb.h (union exp_element): Forward declare.
5466 * parser-defs.h: Include expression.h.
5467
a2fb2cee
MR
54682013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
5469
5470 * mips-tdep.c (fetch_mips_16): Use unmake_compact_addr.
5471
cdba14e0
DK
54722013-06-26 Dmitry Kozlov <ddk@codesourcery.com>
5473
5474 * tracepoint.c (trace_save): Extend tsave to save starttime, stoptime.
5475
f30aa5af
DK
54762013-06-26 Dmitry Kozlov <ddk@codesourcery.com>
5477
5478 Fix trace-status to output proper start-time and stop-time.
5479 * tracepoint.c (trace_status_command): Fix type of printf arg to
5480 prevent improper type conversion.
5481 (trace_status_mi): Likewise.
5482
1aee363c
MR
54832013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
5484
5485 * mips-tdep.c (mips_next_pc): Fix a typo.
5486
3356937a
MR
54872013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
5488
5489 * mips-tdep.c (micromips_scan_prologue): Fix a typo.
5490
dc673c81
YQ
54912013-06-26 Pedro Alves <pedro@codesourcery.com>
5492 Yao Qi <yao@codesourcery.com>
5493
5494 * mi/mi-cmds.c (mi_cmds): Register -trace-frame-collected.
5495 * mi/mi-cmds.h (mi_cmd_trace_frame_collected): Declare.
5496 * mi/mi-main.c (print_variable_or_computed): New function.
5497 (mi_cmd_trace_frame_collected): New function.
5498 * tracepoint.c (find_trace_state_variable_by_number): New.
5499 (struct traceframe_info): Move to tracepoint.h
5500 (struct collection_list): Likewise.
5501 (do_collect_symbol): Include locals and arguments in the
5502 collected variables list.
5503 (clear_collection_list): Clear wholly collected variables list
5504 and computed variables list.
5505 (append_exp): New function.
5506 (encode_actions_1): Include variables in the wholly
5507 collected variables list. Include memory ranges and
5508 full-fledged expressions in the computed expressions list.
5509 (encode_actions): Move some code to ...
5510 Return the cleanup chain.
5511 (encode_actions_rsp): ... here. New function.
5512 (get_traceframe_location, get_traceframe_info): Remove static.
5513 * tracepoint.h (struct memrange): Moved from tracepoint.c.
5514 (struct collection_list): Moved from tracepoint.c. Add two
5515 new fields 'wholly_collected' and 'computed'.
5516 (find_trace_state_variable_by_number): Declare.
5517 (encode_actions): Adjust declaration.
5518 (encode_actions_rsp): Declare.
5519 (get_traceframe_info, get_traceframe_location): Declare.
5520
5521 * NEWS: Mention new MI command -trace-frame-collected.
5522
28a93511
YQ
55232013-06-26 Pedro Alves <pedro@codesourcery.com>
5524 Yao Qi <yao@codesourcery.com>
5525
5526 * ctf.c (ctf_traceframe_info): Push trace state variables
5527 present in the trace data into the traceframe info object.
5528 * breakpoint.c (DEF_VEC_I): Remove.
5529 * common/filestuff.c (DEF_VEC_I): Likewise.
5530 * dwarf2loc.c (DEF_VEC_I): Likewise.
5531 * mi/mi-main.c (DEF_VEC_I): Likewise.
5532 * common/gdb_vecs.h (DEF_VEC_I): Define vector for int.
5533 * features/traceframe-info.dtd: Add tvar element and its
5534 attributes.
5535 * tracepoint.c (free_traceframe_info): Free vector 'tvars'.
5536 (build_traceframe_info): Push trace state variables present in
5537 the trace data into the traceframe info object.
5538 (traceframe_info_start_tvar): New function.
5539 (tvar_attributes): New.
5540 (traceframe_info_children): Add "tvar" element.
5541 * tracepoint.h (struct traceframe_info) <tvars>: New field.
5542
5543 * NEWS: Mention the change in GDB and GDBserver.
5544
ddacd3c8
YQ
55452013-06-26 Pedro Alves <pedro@codesourcery.com>
5546 Yao Qi <yao@codesourcery.com>
5547
5548 * tracepoint.c (trace_dump_command): Move code to ...
5549 (get_traceframe_location): ... here. New.
5550
05796b35
YQ
55512013-06-26 Pedro Alves <pedro@codesourcery.com>
5552 Yao Qi <yao@codesourcery.com>
5553
5554 * tracepoint.c (trace_dump_command): GDB emits an error
5555 instead of a warning when a traceframe is not selected.
5556
cbfa3b61
YQ
55572013-06-26 Pedro Alves <pedro@codesourcery.com>
5558 Yao Qi <yao@codesourcery.com>
5559
5560 * tracepoint.c (tracepoint_list, stepping_list): Remove.
5561 (clear_collection_list): Free fields 'aexpre_list' and 'list'
5562 in collection_list.
5563 (do_clear_collection_list, init_collection_list): New.
5564 (encode_actions): Add local variables 'tracepoint_list' and
5565 'stepping_list'. Call init_collection_list and make cleanup
5566 which calls do_clear_collection_list. Don't call
5567 clear_collection_list.
5568 (_initialize_tracepoint): Delete references to
5569 'tracepoint_list' and 'stepping_list'.
5570
6e2048d3
TT
55712013-06-25 Tom Tromey <tromey@redhat.com>
5572
5573 * common/create-version.sh (date): Use "$", not "$$" in sed
5574 expression.
5575
42059f0e
KB
55762013-06-25 Kevin Buettner <kevinb@redhat.com>
5577
5578 * NEWS (New targets): Add entry for TI MSP430.
5579
a0743c90
YQ
55802013-06-25 Yao Qi <yao@codesourcery.com>
5581
5582 * remote.c (remote_start_remote): Move code to upload tsv
5583 earlier.
5584
9d6e6e84
HZ
55852013-06-25 Yao Qi <yao@codesourcery.com>
5586 Hui Zhu <hui@codesourcery.com>
5587 Pedro Alves <palves@redhat.com>
5588
5589 PR breakpoints/15075
5590 PR breakpoints/15434
5591 * breakpoint.c (bpstat_stop_status): Call
5592 b->ops->after_condition_true.
5593 (update_dprintf_command_list): Don't append "continue" command
5594 to the command list of dprintf breakpoint.
5595 (base_breakpoint_after_condition_true): New function.
5596 (base_breakpoint_ops): Add base_breakpoint_after_condition_true.
5597 (dprintf_after_condition_true): New function.
5598 (initialize_breakpoint_ops): Set dprintf_after_condition_true.
5599 * breakpoint.h (breakpoint_ops): Add after_condition_true.
5600
586cf749
KB
56012013-06-24 Kevin Buettner <kevinb@redhat.com>
5602
5603 * Makefile.in (ALL_TARGET_OBS): Add msp430-tdep.o.
5604 (ALLDEPFILES): Add msp430-tdep.c.
5605 * configure.tgt (msp430*-*-elf): New target.
5606 * msp430-tdep.c: New file.
5607
1bbce132
MR
56082013-06-24 Maciej W. Rozycki <macro@codesourcery.com>
5609
5610 * mips-tdep.c (mips_elf_make_msymbol_special): Handle MIPS16 and
5611 microMIPS synthetic symbols.
5612
3e5d3a5a
MR
56132013-06-24 Maciej W. Rozycki <macro@codesourcery.com>
5614
5615 * objfiles.h (pc_in_section): New prototype.
5616 (in_plt_section): Remove name argument, replace prototype with
5617 static inline function.
5618 * mips-tdep.h: Include "objfiles.h".
5619 (in_mips_stubs_section): New function.
5620 * hppa-tdep.h (gdbarch_tdep): Remove name argument of
5621 in_solib_call_trampoline member.
5622 (hppa_in_solib_call_trampoline): Remove name argument.
5623 * objfiles.c (pc_in_section): New function.
5624 (in_plt_section): Remove function.
5625 * mips-linux-tdep.c: Include "objfiles.h".
5626 (mips_linux_in_dynsym_stub): Call in_mips_stubs_section. Remove
5627 name argument. Return 1 rather than the low 16-bit halfword of
5628 any instruction examined.
5629 (mips_linux_in_dynsym_resolve_code): Update
5630 mips_linux_in_dynsym_stub call accordingly.
5631 * mips-tdep.c (mips_stub_frame_sniffer): Use in_mips_stubs_section
5632 rather than an equivalent hand-coded sequence.
5633 * hppa-hpux-tdep.c (in_opd_section): Remove function.
5634 (hppa32_hpux_in_solib_call_trampoline): Remove name argument.
5635 (hppa64_hpux_in_solib_call_trampoline): Likewise.
5636 (hppa64_hpux_find_global_pointer): Use pc_in_section rather than
5637 in_opd_section.
5638 * hppa-tdep.c (hppa_stub_unwind_sniffer): Remove name argument
5639 on call to tdep->in_solib_call_trampoline.
5640 (hppa_in_solib_call_trampoline): Remove name argument, update
5641 according to in_plt_section change.
5642 (hppa_skip_trampoline_code): Update according to in_plt_section
5643 change.
5644 * aarch64-tdep.c (aarch64_stub_unwind_sniffer): Likewise.
5645 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code):
5646 Likewise.
5647 * arm-tdep.c (arm_stub_unwind_sniffer): Likewise.
5648 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): Likewise.
5649 * hppabsd-tdep.c (hppabsd_find_global_pointer): Likewise.
5650 * nios2-tdep.c (nios2_stub_frame_sniffer): Likewise.
5651 * nto-tdep.c (nto_relocate_section_addresses): Likewise.
5652 * s390-tdep.c (s390_stub_frame_sniffer): Likewise.
5653 * sh-tdep.c (sh_stub_unwind_sniffer): Likewise.
5654 * solib-dsbt.c (dsbt_in_dynsym_resolve_code): Likewise.
5655 * solib-frv.c (frv_in_dynsym_resolve_code): Likewise.
5656 * solib-svr4.c (svr4_in_dynsym_resolve_code): Likewise.
5657 * solib-target.c (solib_target_in_dynsym_resolve_code): Likewise.
5658 * sparc-tdep.c (sparc_analyze_prologue): Likewise.
5659 * tic6x-tdep.c (tic6x_stub_unwind_sniffer): Likewise.
5660
b9b26a16
JB
56612013-06-24 Joel Brobecker <brobecker@adacore.com>
5662
5663 * common/create-version.sh: Fix expansion of $host_alias
5664 and $target_alias in generation of HOST_NAME and TARGET_NAME
5665 (resp.).
5666
01208463
TT
56672013-06-24 Tom Tromey <tromey@redhat.com>
5668
5669 * common/create-version.sh: New file.
5670 * Makefile.in (version.c): Use bfd/version.h, common/version.in,
5671 create-version.sh.
5672 (HFILES_NO_SRCDIR): Use common/version.h.
5673 * version.in: Move to ...
5674 * common/version.in: ... here. Replace date with "DATE".
5675 * version.h: Move to ...
5676 * common/version.h: ... here.
5677
bb6b9a5e
JB
56782013-06-21 Joel Brobecker <brobecker@adacore.com>
5679
5680 * gdb/gnulib/Makefile.in: Update date in copyright header.
5681 * gdb/gnulib/configure.ac: Ditto.
5682 * gdb/gnulib/update-gnulib.sh: Ditto.
5683
c3b18ee7
JB
56842013-06-21 Joel Brobecker <brobecker@adacore.com>
5685
5686 * copyright.py (EXCLUDE_LIST): Replace "gdb/gnulib" by
5687 "gdb/gnulib/import".
5688
85d3b769
WN
56892013-06-21 Will Newton <will.newton@linaro.org>
5690
5691 * doublest.c (ldfrexp): Remove function.
5692 (convert_doublest_to_floatformat): Call frexpl instead of
5693 ldfrexp.
5694
88b48903
WN
56952013-06-21 Will Newton <will.newton@linaro.org>
5696
5697 * gnulib/update-gnulib.sh(IMPORTED_GNULIB_MODULES): Add frexpl.
5698 * gnulib/aclocal.m4: Regenerate.
5699 * gnulib/config.in: Regenerate.
5700 * gnulib/configure: Regenerate.
5701 * gnulib/import/Makefile.am: Update.
5702 * gnulib/import/Makefile.in: Update.
5703 * gnulib/import/m4/gnulib-cache.m4: Update.
5704 * gnulib/import/m4/gnulib-comp.m4: Update.
5705 * gnulib/import/float+.h: Import.
5706 * gnulib/import/float.c: Import.
5707 * gnulib/import/float.in.h: Import.
5708 * gnulib/import/fpucw.h: Import.
5709 * gnulib/import/frexp.c: Import.
5710 * gnulib/import/frexpl.c: Import.
5711 * gnulib/import/isnan.c: Import.
5712 * gnulib/import/isnand-nolibm.h: Import.
5713 * gnulib/import/isnand.c: Import.
5714 * gnulib/import/isnanl-nolibm.h: Import.
5715 * gnulib/import/isnanl.c: Import.
5716 * gnulib/import/itold.c: Import.
5717 * gnulib/import/m4/exponentd.m4: Import.
5718 * gnulib/import/m4/exponentl.m4: Import.
5719 * gnulib/import/m4/float_h.m4: Import.
5720 * gnulib/import/m4/fpieee.m4: Import.
5721 * gnulib/import/m4/frexp.m4: Import.
5722 * gnulib/import/m4/frexpl.m4: Import.
5723 * gnulib/import/m4/isnand.m4: Import.
5724 * gnulib/import/m4/isnanl.m4: Import.
5725 * gnulib/import/m4/math_h.m4: Import.
5726 * gnulib/import/math.c: Import.
5727 * gnulib/import/math.in.h: Import.
5728
4353c9e6
JK
57292013-06-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5730
5731 * common/linux-btrace.c (cpu_supports_btrace): Remove variable vendor,
5732 replace strcmp with signature_INTEL_ebx, signature_INTEL_ecx and
5733 signature_INTEL_edx comparisons.
5734
e3e06db3
DE
57352013-06-20 Doug Evans <dje@google.com>
5736
6ac97d4c
DE
5737 symtab/15652
5738 * dwarf2read.c (try_open_dwop_file): New arg search_cwd.
5739 All callers updated.
5740 (open_dwp_file): If we can't find the dwp file, search the basename
5741 in debug-file-directory.
5742
93417882
DE
5743 * dwarf2read.c (struct dwp_file): Fix comment.
5744 (open_and_init_dwp_file): Set dwp_file->name to bfd's file name.
5745
e3e06db3
DE
5746 * source.c (openp): Document OPF_TRY_CWD_FIRST+OPF_SEARCH_IN_PATH
5747 better.
5748
0878d0fa
YQ
57492013-06-20 Yao Qi <yao@codesourcery.com>
5750
5751 * breakpoint.c (create_breakpoint): Fix code indentation.
5752
023fa29b
YQ
57532013-06-20 Yao Qi <yao@codesourcery.com>
5754
5755 * breakpoint.c (create_breakpoints_sal_default): Remove
5756 parameter 'lsal'. Update declaration.
5757 (bkpt_create_breakpoints_sal): Caller update.
5758 (tracepoint_create_breakpoints_sal): Likewise.
5759
c898adb7
YQ
57602013-06-20 Pedro Alves <pedro@codesourcery.com>
5761 Yao Qi <yao@codesourcery.com>
5762
5763 * NEWS: Mention the new option '--skip-unavailable' of command
5764 -data-list-register-values.
5765 * mi/mi-main.c (mi_cmd_data_list_register_values): Accept the
5766 --skip-unavailable option. Adjust to use output_register.
5767 (output_register): Add new 'skip_unavailable' parameter.
5768 Handle it.
5769
4d157a3d
MF
57702013-06-19 Mike Frysinger <vapier@gentoo.org>
5771
5772 * Makefile.in (HFILES_NO_SRCDIR): Add common/i386-cpuid.h and
5773 common/i386-gcc-cpuid.h.
5774 * common/i386-cpuid.h: New wrapper header around i386-gcc-cpuid.h.
5775 * common/i386-gcc-cpuid.h: Rename from testsuite/gdb.arch/i386-cpuid.h.
5776 Copy the latest version from upstream gcc.
5777 * common/linux-btrace.c: Include i386-cpuid.h.
5778 (intel_supports_btrace): Delete x86 ifdefs and replace inline asm with
5779 call to i386_cpuid.
5780 (cpu_supports_btrace): Likewise.
5781 * go32-nat.c: Include i386-cpuid.h.
5782 (go32_sysinfo): Add (disabled) calls to i386_cpuid with comments.
5783
1ce4db08
DE
57842013-06-19 Doug Evans <dje@google.com>
5785
5786 * symfile.c (symfile_bfd_open): Delete unnecessary declaration.
5787 (get_section_index): Ditto.
5788
0e4777df
TT
57892013-06-19 Tom Tromey <tromey@redhat.com>
5790
5791 * breakpoint.c (_initialize_breakpoint): Remove trailing \n from
5792 "dprintf" help.
5793
3190f0c6
DE
57942013-06-18 Doug Evans <dje@google.com>
5795
5796 * dwarf2read.c (dw2_symtab_iter_next): Check value of cu_index
5797 before using it.
5798 (dw2_expand_symtabs_matching): Fix symbol kind validity check.
5799 Move test of cu_index closer to use. Print complaint if cu_index
5800 is bad.
5801
8b89a20a
JB
58022013-06-18 Joel Brobecker <brobecker@adacore.com>
5803
5804 * machoread.c (oso_vector): Delete this global.
5805 (macho_register_oso): Add new parameter "oso_vector_ptr".
5806 Use it instead of the "oso_vector" global.
5807 (macho_symtab_read, macho_symfile_read_all_oso): Likewise.
5808 (macho_symfile_read): Use a local oso_vector, to be free'ed
5809 at the end of this function, in place of the old "oso_vector"
5810 global. Update various function calls accordingly. Use one
5811 single cleanup chain for the entire function.
5812
59b0c7c1
JB
58132013-06-18 Joel Brobecker <brobecker@adacore.com>
5814
937c708c 5815 * dwarf2read.c (dwarf2_per_objfile_free): Replace uses of
59b0c7c1
JB
5816 DWARF2_PER_OBJFILE by uses of DATA instead.
5817
427cd150
TT
58182013-06-18 Tom Tromey <tromey@redhat.com>
5819
5820 * break-catch-sig.c (signal_catchpoint_explains_signal): Add 'sig'
5821 argument.
5822 * breakpoint.c (bpstat_explains_signal): Add 'sig' argument.
5823 Special case signals other than GDB_SIGNAL_TRAP.
5824 (explains_signal_watchpoint): New function.
5825 (base_breakpoint_explains_signal): Add 'sig' argument.
5826 (initialize_breakpoint_ops): Set 'explains_signal' method for
5827 watchpoints.
5828 * breakpoint.h (struct breakpoint_ops) <explains_signal>: Add
5829 signal argument.
5830 (bpstat_explains_signal): Likewise.
5831 * infrun.c (handle_syscall_event, handle_inferior_event): Update.
5832
2d57700b
TT
58332013-06-18 Tom Tromey <tromey@redhat.com>
5834
5835 * python/py-inferior.c (gdbpy_selected_inferior): Don't incref.
5836
ac475191
TT
58372013-06-18 Tom Tromey <tromey@redhat.com>
5838
5839 * python/python.c (finish_python_initialization): Decref
5840 'pythondir' on failure path as well.
5841
5bd1ef56
TT
58422013-06-18 Tom Tromey <tromey@redhat.com>
5843
5844 PR symtab/15391:
5845 * dwarf2loc.c (read_pieced_value): Truncate this_size_bits
5846 after taking bits_to_skip into account. Sign extend byte_offset.
5847 * utils.h (gdb_sign_extend): Declare.
5848 * utils.c (gdb_sign_extend): New function.
5849
92fac807
JK
58502013-06-18 Jan Kratochvil <jan.kratochvil@redhat.com>
5851
5852 * dwarf2read.c (write_psymtabs_to_index): Ignore NULL PSYMTAB.
5853
2d503272
PM
58542013-06-17 Pierre Muller <muller@sourceware.org>
5855
5856 * corelow.c (core_open): Print GDB signal name instead of target
5857 signal number.
5858
6916fd98
MF
58592013-06-17 Mike Frysinger <vapier@gentoo.org>
5860
5861 * .gitignore: Add /gcore.
5862
9c02c129
DE
58632013-06-13 Doug Evans <dje@google.com>
5864
5865 * dwarf2read.c (try_open_dwop_file): Work around behaviour of
5866 OPF_TRY_CWD_FIRST to not search path if the file contains a '/'.
5867
d0548fa2
PM
58682013-06-12 Phil Muldoon <pmuldoon@redhat.com>
5869
5870 * stack.c (backtrace_command_1): Fix indentation.
5871
22128028
JB
58722013-06-11 Joel Brobecker <brobecker@adacore.com>
5873
5874 * window-nat.c (thread_rec): Add missing empty line after
5875 local variable declaration.
5876
2ed3e009
JB
58772013-06-11 Joel Brobecker <brobecker@adacore.com>
5878
5879 * windows-nat.c (thread_rec): Revert format used to print
5880 error code returned by SuspendThread from %d back to %u.
5881
0c3d84be
JB
58822013-06-11 Joel Brobecker <brobecker@adacore.com>
5883
5884 * windows-nat.c (windows_continue): Add "0x" prefix for thread
5885 ID in debug trace.
5886 (get_windows_debug_event): Likewise, for all debug traces.
5887
80e88e1a
JB
58882013-06-11 Joel Brobecker <brobecker@adacore.com>
5889
5890 * window-nat.c (thread_rec): Add thread ID in SuspendThread
5891 warning message.
5892
1edebdbf
YQ
58932013-06-08 Pedro Alves <pedro@codesourcery.com>
5894 Yao Qi <yao@codesourcery.com>
5895
5896 * mi/mi-main.c (get_register): Remove declaration.
5897 (output_register): Declare.
5898 (mi_cmd_data_list_register_values): Remove local variable
5899 'tuple_cleanup'. Move some code into output_register.
5900 (get_register): Renamed to ...
5901 (output_register): ... this. Output the register's
5902 "number" ui_out tuple here.
5903
47d48711
PA
59042013-06-07 Pedro Alves <palves@redhat.com>
5905
5906 * darwin-nat.c: Fix formating in copyright header.
5907 * darwin-nat.h: Likewise.
5908 * gnu-nat.c: Likewise.
5909 * machoread.c: Likewise.
5910
3aee8918
PA
59112013-06-07 Pedro Alves <palves@redhat.com>
5912
5f2b57b5 5913 PR server/14823
3aee8918
PA
5914 * regformats/regdat.sh: Output #include tdesc.h. Make globals
5915 static. Output a global target description pointer.
5916 (init_registers_${name}): Adjust to initialize a
5917 target description structure.
5918
fe8400b4
WN
59192013-06-07 Will Newton <will.newton@linaro.org>
5920
5921 * printcmd.c (build_address_symbolic): Call
5922 gdbarch_addr_bits_remove for text minimal symbols.
5923
20df6206
WN
59242013-06-07 Will Newton <will.newton@linaro.org>
5925
5926 * MAINTAINERS: Add myself to Write After Approval.
5927
aef525cb
YQ
59282013-06-07 Yao Qi <yao@codesourcery.com>
5929
5930 * tracepoint.c (start_tracing): Move code to ...
5931 (trace_reset_local_state): ... here. New.
5932 (disconnect_tracing): Don't call set_current_traceframe,
5933 set_tracepoint_num, and set_traceframe_context. Call
5934 trace_reset_local_state instead.
5935 (tfile_close): Call trace_reset_local_state.
5936 * ctf.c (ctf_close): Likewise.
5937 * remote.c (remote_close): Likewise.
5938 * tracepoint.h (trace_reset_local_state): Declare.
5939
d2415c6c
DE
59402013-06-06 Doug Evans <dje@google.com>
5941
5942 * dwarf2read.c: Whitespace fixes for DWP file format documentation,
5943 and fix header docs.
5944
69fc87c2
DE
59452013-06-05 Doug Evans <dje@google.com>
5946 Keith Seitz <keiths@redhat.com>
5947
5948 PR 15519
5949 * cp-namespace.c (find_symbol_in_baseclass): Call
5950 cp_lookup_symbol_in_namespace instead of cp_lookup_symbol_namespace.
5951 Check result of call to lookup_symbol_static.
5952 Call lookup_static_symbol_aux unconditionally.
5953 Call check_typedef on base types before accessing them.
5954 (cp_lookup_nested_symbol): Fix comment.
5955
a513d1e8
LM
59562013-06-05 Luis Machado <lgustavo@codesourcery.com>
5957
5958 * gnu-v3-abi.c (gnuv3_skip_trampoline): Handle thunk
5959 minimal symbols pointing to function descriptors.
5960
351a6f02
TT
59612013-06-05 Tom Tromey <tromey@redhat.com>
5962
5963 * python/py-utils.c (gdb_pymodule_addobject): Cast away const.
5964
5e1b953b 59652013-06-04 Sergio Durigan Junior <sergiodj@redhat.com>
c7c0b644 5966 Pedro Alves <palves@redhat.com>
5e1b953b
SDJ
5967
5968 * remote.c (remote_wait_as): Restore signal handler before returning
5969 when GDB gets a notification.
5970
f9e14852
GB
59712013-06-04 Gary Benson <gbenson@redhat.com>
5972
8445cbf1 5973 PR 2328
f9e14852
GB
5974 * breakpoint.h (handle_solib_event): Moved function declaration
5975 to solib.h.
5976 * breakpoint.c (handle_solib_event): Moved function to solib.c.
5977 (bpstat_stop_status): Pass new argument to handle_solib_event.
5978 * solib.h (update_solib_breakpoints): New function declaration.
5979 (handle_solib_event): Moved function declaration from
5980 breakpoint.h.
5981 * solib.c (update_solib_breakpoints): New function.
5982 (handle_solib_event): Moved function from breakpoint.c.
5983 Updated to call solib_ops->handle_event if not NULL.
5984 * solist.h (target_so_ops): New fields "update_breakpoints" and
5985 "handle_event".
5986 * infrun.c (set_stop_on_solib_events): New function.
5987 (_initialize_infrun): Use the above for "set
5988 stop-on-solib-events".
5989 (handle_inferior_event): Pass new argument to handle_solib_event.
5990 * solib-svr4.c (probe.h): New include.
5991 (svr4_free_library_list): New forward declaration.
5992 (probe_action): New enum.
5993 (probe_info): New struct.
5994 (probe_info): New static variable.
5995 (NUM_PROBES): New definition.
5996 (svr4_info): New fields "using_xfer", "probes_table" and
5997 "solib_list".
5998 (free_probes_table): New function.
5999 (free_solib_list): New function.
6000 (svr4_pspace_data_cleanup): Free probes table and solib list.
6001 (svr4_copy_library_list): New function.
6002 (svr4_current_sos_via_xfer_libraries): New parameter "annex".
6003 (svr4_read_so_list): New parameter "prev_lm".
6004 (svr4_current_sos_direct): Renamed from "svr4_current_sos".
6005 (svr4_current_sos): New function.
6006 (probe_and_action): New struct.
6007 (hash_probe_and_action): New function.
6008 (equal_probe_and_action): Likewise.
6009 (register_solib_event_probe): Likewise.
6010 (solib_event_probe_at): Likewise.
6011 (solib_event_probe_action): Likewise.
6012 (solist_update_full): Likewise.
6013 (solist_update_incremental): Likewise.
6014 (disable_probes_interface_cleanup): Likewise.
6015 (svr4_handle_solib_event): Likewise.
6016 (svr4_update_solib_event_breakpoint): Likewise.
6017 (svr4_update_solib_event_breakpoints): Likewise.
6018 (svr4_create_solib_event_breakpoints): Likewise.
6019 (enable_break): Free probes table before creating breakpoints.
6020 Use svr4_create_solib_event_breakpoints to create breakpoints.
6021 (svr4_solib_create_inferior_hook): Free the solib list.
6022 (_initialize_svr4_solib): Initialise
6023 svr4_so_ops.handle_solib_event and svr4_so_ops.update_breakpoints.
6024
ced63ec0
GB
60252013-06-04 Gary Benson <gbenson@redhat.com>
6026
6027 * target.h (target_ops): New field
6028 "to_augmented_libraries_svr4_read".
6029 (target_augmented_libraries_svr4_read): New macro.
6030 * target.c (update_current_target): Handle
6031 to_augmented_libraries_svr4_read.
6032 * remote.c (remote_state): New field
6033 "augmented_libraries_svr4_read".
6034 (remote_augmented_libraries_svr4_read_feature): New function.
6035 (remote_protocol_features): Add entry for
6036 "augmented-libraries-svr4-read".
6037 (remote_augmented_libraries_svr4_read): New function.
6038 (init_remote_ops): Initialize
6039 remote_ops.to_augmented_libraries_svr4_read.
6040
7f91dbec
GB
60412013-06-04 Gary Benson <gbenson@redhat.com>
6042
6043 * NEWS: Update.
6044
607ece04
GB
60452013-06-04 Gary Benson <gbenson@redhat.com>
6046
6047 * objfiles.h (inhibit_section_map_updates): New function
6048 declaration.
6049 (resume_section_map_updates): Likewise.
6050 (resume_section_map_updates_cleanup): Likewise.
6051 * objfiles.c (objfile_pspace_info): Removed field
6052 "objfiles_changed_p". New fields "new_objfiles_available",
6053 "section_map_dirty" and "inhibit_updates".
6054 (allocate_objfile): Set new_objfiles_available.
6055 (free_objfile): Set section_map_dirty.
6056 (objfile_relocate1): Likewise.
6057 (in_plt_section): Likewise.
6058 (find_pc_section): Update the conditions under which the
6059 section map will be updated.
6060 (inhibit_section_map_updates): New function.
6061 (resume_section_map_updates): Likewise.
6062 (resume_section_map_updates_cleanup): Likewise.
6063
9ee6a5ac
GB
60642013-06-04 Gary Benson <gbenson@redhat.com>
6065
6066 * probe.h (get_probe_argument_count): New declaration.
6067 (evaluate_probe_argument): Likewise.
6068 * probe.c (get_probe_argument_count): New function.
6069 (evaluate_probe_argument): Likewise.
6070 (probe_safe_evaluate_at_pc): Use the above new functions.
6071
845d4708
AM
60722013-06-04 Alan Modra <amodra@gmail.com>
6073
6074 * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
6075 * rs6000-tdep.c (read_insn): Add frame param, don't assume big-endian.
6076 (ppc_insns_match_pattern): Add frame param. Avoid multiple
6077 target mem reads on optional insns.
6078 * ppc-linux-tdep.c (ppc_skip_trampoline_code): Update
6079 ppc_insns_match_pattern calls.
6080 * ppc64-tdep.c (ppc64_standard_linkage2, ppc64_standard_linkage3):
6081 Add match for power7 thread safety insns, and new order of
6082 std 2,40(1) insn. Correct code shown for _dl_runtime_resolve
6083 invocation in comment, and update rest of comment.
6084 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN,
6085 PPC64_STANDARD_LINKAGE3_LEN): Delete.
6086 (ppc64_standard_linkage2_target): Update insn offsets.
6087 (ppc64_skip_trampoline_code): Use a single insn buffer. Match newer
6088 stubs first. Update calls.
6089
404e278f
YQ
60902013-06-04 Yao Qi <yao@codesourcery.com>
6091
6092 * solib.c (solib_find): Don't need dir separator if path has
6093 drive spec.
6094
f6aea118
JB
60952013-06-03 Joel Brobecker <brobecker@adacore.com>
6096
6097 Revert (indirectly causes a SIGSEGV):
6098 * machoread.c (macho_symfile_read): Assign first cleanup to
6099 'back_to'.
6100
87967e27
YQ
61012013-06-03 Yao Qi <yao@codesourcery.com>
6102
6103 * mi/mi-cmd-var.c (mi_no_values, mi_simple_values): Move to
6104 mi-parse.c. Make them static.
6105 (mi_all_values): Likewise.
6106 (mi_parse_values_option): Move to mi-parse.c. Rename it to
6107 mi_parse_print_values. Make it external.
6108 * mi/mi-cmds.h (mi_no_values, mi_simple_values, mi_all_values):
6109 Remove the declarations.
6110 * mi/mi-parse.c (mi_parse_print_values): Moved from mi-cmd-var.c.
6111 * mi/mi-parse.h (mi_parse_print_values): Declare.
6112 * mi/mi-cmd-stack.c: Include mi-parse.h.
6113 (parse_print_values): Remove
6114 (mi_cmd_stack_list_locals): Call mi_parse_print_values instead
6115 of parse_print_values.
6116 (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Likewise.
6117
3ca73e0c
YQ
61182013-05-31 Pedro Alves <pedro@codesourcery.com>
6119 Yao Qi <yao@codesourcery.com>
6120
6121 * tracepoint.c (all_tracepoint_actions_and_cleanup): Declare.
6122 (encode_actions): Move code to ...
6123 (all_tracepoint_actions_and_cleanup): ... here. New.
6124 (trace_dump_command): Likewise.
6125
4e993a19
TT
61262013-05-30 Tom Tromey <tromey@redhat.com>
6127
6128 * symmisc.c (maintenance_expand_symtabs): Call do_cleanups.
6129
e3b76b4f
TT
61302013-05-30 Tom Tromey <tromey@redhat.com>
6131
6132 * xml-support.c (gdb_xml_create_parser_and_cleanup): Rename from
6133 gdb_xml_create_parser_and_cleanup_1. Return a cleanup. Remove
6134 'old_chain' argument. Add 'parser_result' argument.
6135 (gdb_xml_create_parser_and_cleanup): Remove old version.
6136 (gdb_xml_parse_quick): Update.
6137 (xml_process_xincludes): Update.
6138 * xml-support.h (gdb_xml_create_parser_and_cleanup): Don't
6139 declare.
6140
db26349c
TT
61412013-05-30 Tom Tromey <tromey@redhat.com>
6142
6143 * probe.c (collect_probes): Check arguments for NULL before
6144 calling compile_rx_or_error.
6145 * utils.c (compile_rx_or_error): Require 'rx' to be non-NULL.
6146 Remove NULL return.
6147
77f9e713
TT
61482013-05-30 Tom Tromey <tromey@redhat.com>
6149
6150 * infrun.c (adjust_pc_after_break): Introduce an outer null
6151 cleanup.
6152
45475de7
TT
61532013-05-30 Tom Tromey <tromey@redhat.com>
6154
6155 * mi/mi-cmd-var.c (varobj_update_one): Add an outer null cleanup.
6156
ac5007fd
TT
61572013-05-30 Tom Tromey <tromey@redhat.com>
6158
6159 * cli/cli-script.c (read_command_lines_1): Use a null cleanup
6160 for 'old_chain'. Do not check 'head' before processing
6161 cleanups.
6162
cd82eddc
TT
61632013-05-30 Tom Tromey <tromey@redhat.com>
6164
6165 * mi/mi-cmd-stack.c (list_arg_or_local): Remove
6166 "cleanup_tuple".
6167
57cee33a
TT
61682013-05-30 Tom Tromey <tromey@redhat.com>
6169
6170 * dbxread.c (dbx_read_symtab): Declare 'back_to' in a more
6171 inner scope. Unconditionally call do_cleanups.
6172
795d915c
TT
61732013-05-30 Tom Tromey <tromey@redhat.com>
6174
6175 * source.c (find_and_open_source): Call do_cleanups.
6176
1fc3cf4a
TT
61772013-05-30 Tom Tromey <tromey@redhat.com>
6178
6179 * linux-thread-db.c (thread_db_load_search): Unconditionally
6180 call do_cleanups.
6181
e35ac9bf
TT
61822013-05-30 Tom Tromey <tromey@redhat.com>
6183
6184 * solib-aix.c (solib_aix_bfd_open): Don't use a null cleanup
6185 for 'cleanup'; instead use a later one.
6186
f3300387
TT
61872013-05-30 Tom Tromey <tromey@redhat.com>
6188
6189 * python/py-breakpoint.c (bppy_get_commands): Use
6190 explicit, unconditional return.
6191 * python/py-frame.c (frapy_read_var): Likewise.
6192 * python/python.c (gdbpy_decode_line): Likewise.
6193
c27e16e3
TT
61942013-05-30 Tom Tromey <tromey@redhat.com>
6195
6196 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Call
6197 do_cleanups on all return paths.
6198
5ae85e44
TT
61992013-05-30 Tom Tromey <tromey@redhat.com>
6200
6201 * top.c (execute_command): Discard 'cleanup_if_error' cleanups.
6202
73b8d9da
TT
62032013-05-30 Tom Tromey <tromey@redhat.com>
6204
6205 * stabsread.c (read_struct_type): Call do_cleanups along
6206 all return paths.
6207
7d266584
MR
62082013-05-30 Maciej W. Rozycki <macro@codesourcery.com>
6209
6210 * mips-linux-tdep.c: Adjust formatting throughout.
6211
0f900f54
TT
62122013-05-30 Tom Tromey <tromey@redhat.com>
6213
6214 * mipsread.c (read_alphacoff_dynamic_symtab): Call do_cleanups
6215 along all return paths.
6216
a991ac28
TT
62172013-05-30 Tom Tromey <tromey@redhat.com>
6218
6219 * symfile.c (find_separate_debug_file): Call do_cleanups
6220 along all return paths.
6221
1abaf042
TT
62222013-05-30 Tom Tromey <tromey@redhat.com>
6223
6224 * symtab.c (search_symbols): Introduce a null cleanup for
6225 'retval_chain'.
6226
edefe1da
TT
62272013-05-30 Tom Tromey <tromey@redhat.com>
6228
6229 * python/py-value.c (valpy_binop): Call do_cleanups before
6230 exiting loop.
6231
54f72dcc
TT
62322013-05-30 Tom Tromey <tromey@redhat.com>
6233
6234 * python/py-prettyprint.c (print_children): Remove extra
6235 do_cleanups call.
6236
af1c6971
TT
62372013-05-30 Tom Tromey <tromey@redhat.com>
6238
6239 * python/py-frame.c (frapy_read_var): Call do_cleanups along
6240 all return paths.
6241
b862ce75
TT
62422013-05-30 Tom Tromey <tromey@redhat.com>
6243
6244 * python/py-breakpoint.c (bppy_get_commands): Call do_cleanups
6245 along all return paths.
6246
e12fefc8
TT
62472013-05-30 Tom Tromey <tromey@redhat.com>
6248
6249 * cli/cli-logging.c (set_logging_redirect): Unconditionally
6250 call do_cleanups.
6251
4867f990
TT
62522013-05-30 Tom Tromey <tromey@redhat.com>
6253
6254 * varobj.c (c_value_of_root): Call do_cleanups along all
6255 return paths.
6256
4fd2d6af
TT
62572013-05-30 Tom Tromey <tromey@redhat.com>
6258
6259 * tracepoint.c (trace_dump_command): Unconditionally call
6260 do_cleanups.
6261
752eb8b4
TT
62622013-05-30 Tom Tromey <tromey@redhat.com>
6263
6264 * breakpoint.c (output_thread_groups, parse_cmd_to_aexpr): Call
6265 do_cleanups earlier.
6266
e42d0aa5
TT
62672013-05-30 Tom Tromey <tromey@redhat.com>
6268
6269 * machoread.c (macho_symfile_read): Assign first cleanup to
6270 'back_to'.
6271
4bbc010a
TT
62722013-05-30 Tom Tromey <tromey@redhat.com>
6273
6274 * m32r-rom.c (m32r_load): Call do_cleanups at all returns.
6275
b9635925
TT
62762013-05-30 Tom Tromey <tromey@redhat.com>
6277
6278 * mi/mi-main.c (list_available_thread_groups): Call do_cleanups.
6279
25f43500
TT
62802013-05-30 Tom Tromey <tromey@redhat.com>
6281
6282 * inf-ptrace.c (inf_ptrace_create_inferior): Unconditionally
6283 call discard_cleanups.
6284 (inf_ptrace_attach): Likewise.
6285
d6a2e54a
TT
62862013-05-30 Tom Tromey <tromey@redhat.com>
6287
6288 * remote-mips.c (mips_exit_debug): Call do_cleanups on all
6289 return paths.
6290 (mips_initialize): Likewise.
6291 (common_open): Call do_cleanups.
6292
48be7c1b
TT
62932013-05-30 Tom Tromey <tromey@redhat.com>
6294
6295 * utils.c (internal_vproblem): Call do_cleanups.
6296
e61727ab
TT
62972013-05-30 Tom Tromey <tromey@redhat.com>
6298
6299 * linespec.c (find_linespec_symbols): Don't reassign to 'cleanup'.
6300
b81b921f
TT
63012013-05-30 Tom Tromey <tromey@redhat.com>
6302
6303 * cli/cli-script.c (setup_user_args): Don't return after error.
6304
fe48dfb1
TT
63052013-05-30 Tom Tromey <tromey@redhat.com>
6306
6307 * somread.c (som_symtab_read): Call do_cleanups.
6308
27833de7
TT
63092013-05-30 Tom Tromey <tromey@redhat.com>
6310
6311 * printcmd.c (print_command_1): Unconditionally call do_cleanups.
6312
5b3fca71
TT
63132013-05-30 Tom Tromey <tromey@redhat.com>
6314
6315 * cli/cli-cmds.c (cd_command, alias_command): Call do_cleanups.
6316 * cli/cli-dump.c (restore_binary_file): Call do_cleanups.
6317 * interps.c (interpreter_exec_cmd): Call do_cleanups.
6318 * source.c (show_substitute_path_command): Call do_cleanups.
6319 (unset_substitute_path_command, set_substitute_path_command):
6320 Likewise.
6321 * symfile.c (load_command): Call do_cleanups.
6322
af83e3f8
TT
63232013-05-30 Tom Tromey <tromey@redhat.com>
6324
6325 * contrib/cleanup_check.py: New file.
6326 * contrib/gcc-with-excheck: Add option parsing.
6327
564eac42
JB
63282013-05-30 Joel Brobecker <brobecker@adacore.com>
6329
6330 * windows-nat.c (windows_delete_thread): Add missing space
6331 in cast expression.
6332
47902076
HAQ
63332013-05-30 Hafiz Abid Qadeer <abidh@codesourcery.com>
6334
6335 * inferior.c (top level): Include tilde.h.
6336 (add_inferior_command): Call tilde_expand on the value of 'exec'
6337 argument.
6338
23da373a
YQ
63392013-05-30 Pedro Alves <pedro@codesourcery.com>
6340 Yao Qi <yao@codesourcery.com>
6341
6342 * tracepoint.c (encode_actions_1): Remove parameter 't'.
6343 Caller update.
6344 (encode_actions): Likewise.
6345 * remote.c (remote_download_tracepoint): Caller update.
6346 * tracepoint.h (encode_actions): Update declaration.
6347
a6e6f791
PA
63482013-05-30 Pedro Alves <palves@redhat.com>
6349
6350 * python/python-internal.h (gdb_Py_DECREF): Cast OP to PyObject
6351 pointer.
6352
36d25514
YQ
63532013-05-30 Yao Qi <yao@codesourcery.com>
6354
6355 * remote.c (remote_check_symbols): Remove unused parameter
6356 'objfile'.
6357 Declaration update.
6358 (remote_start_remote, remote_new_objfile): Caller update.
6359
62a813cc
YQ
63602013-05-30 Yao Qi <yao@codesourcery.com>
6361
6362 * mi/mi-cmds.c (mi_cmds): Define MI command
6363 '-exec-arguments' by macro DEF_MI_CMD_CLI_1 instead of
6364 DEF_MI_CMD_CLI.
6365
28439a30
PA
63662013-05-29 Pedro Alves <palves@redhat.com>
6367
6368 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint)
6369 (remote_insert_watchpoint, remote_remove_watchpoint)
6370 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint)
6371 (remote_verify_memory, compare_sections_command)
6372 (remote_search_memory): Set the general process/thread on the
6373 remote side.
6374
6ac1c082
PA
63752013-05-29 Pedro Alves <palves@redhat.com>
6376
6377 * aarch64-tdep.c: Don't include "features/aarch64-without-fpu.c".
6378 (_initialize_aarch64_tdep): Don't call
6379 initialize_tdesc_aarch64_without_fpu.
6380 * features/Makefile (WHICH): Remove reference to
6381 aarch64-without-fpu.
6382 * features/aarch64-without-fpu.c: Delete file.
6383 * regformats/aarch64-without-fpu.dat: Delete file.
6384
a73e3634
YQ
63852013-05-28 Yao Qi <yao@codesourcery.com>
6386
6387 * tracepoint.c (stringify_collection_list): Remove parameter
6388 'string'.
6389 (encode_actions): Caller update. Remove local variables.
6390
c0ea94eb
YQ
63912013-05-24 Yao Qi <yao@codesourcery.com>
6392
6393 * tracepoint.c (TFILE_PID): Remove.
6394 (tfile_open): Don't add thread and inferior.
6395 (tfile_close): Don't set 'inferior_ptid'. Don't call
6396 exit_inferior_silent.
6397 (tfile_thread_alive): Remove.
6398 (init_tfile_ops): Don't set field 'to_thread_alive' of
6399 tfile_ops.
6400
20d7f211
DE
64012013-05-23 Doug Evans <dje@google.com>
6402
6403 * contrib/cc-with-tweaks.sh (-p): Handle no dwo files.
6404
8658d16d
PA
64052013-05-23 Pedro Alves <palves@redhat.com>
6406
6407 * common/filestuff.c [USE_WIN32API]: Define HAVE_SOCKETS.
6408 [HAVE_SYS_SOCKET_H]: Define HAVE_SOCKETS.
6409 (socket_mark_cloexec, gdb_socketpair_cloexec, gdb_socket_cloexec):
6410 Only define if HAVE_SOCKETS is defined.
6411 * configure.ac: Check for sys/socket.h.
6412 * config.in, configure: Regenerate.
6413
21aa081e
PA
64142013-05-23 Pedro Alves <palves@redhat.com>
6415
6416 * dwarf2read.c (create_dwp_hash_table, create_dwo_in_dwp)
6417 (open_and_init_dwp_file): Use %s/pulongest instead of %u for
6418 printing uint32_t variables.
6419
c2d6af84
PA
64202013-05-23 Pedro Alves <palves@redhat.com>
6421
6422 * NEWS: Mention GDBserver range stepping support.
6423
c1e36e3e
PA
64242013-05-23 Yao Qi <yao@codesourcery.com>
6425 Pedro Alves <palves@redhat.com>
6426
6427 * gdbthread.h (struct thread_control_state) <may_range_step>: New
6428 field.
6429 * infcmd.c (step_once, until_next_command): Enable range stepping.
6430 * infrun.c (displaced_step_prepare): Disable range stepping.
6431 (resume): Disable range stepping if stepping over a breakpoint or
6432 we have software watchpoints. If range stepping is enabled,
6433 assert the thread is in the stepping range.
6434 (clear_proceed_status_thread): Clear may_range_step.
6435 (handle_inferior_event): Disable range stepping as soon as we know
6436 the thread that hit the event. Re-enable it whenever we're going
6437 to step with a step range.
6438 * remote.c (struct vCont_action_support) <r>: New field.
6439 (use_range_stepping): New global.
6440 (remote_vcont_probe): Handle 'r' action.
6441 (append_resumption): Append an 'r' action if the thread may range
6442 step.
6443 (show_range_stepping): New function.
6444 (set_range_stepping): New function.
6445 (_initialize_remote): Call add_setshow_boolean_cmd to register the
6446 'set range-stepping' and 'show range-stepping' commands.
6447 * NEWS: Mention range stepping, the new vCont;r action, and the
6448 new "set/show range-stepping" commands.
6449
d458bd84
PA
64502013-05-23 Yao Qi <yao@codesourcery.com>
6451 Pedro Alves <palves@redhat.com>
6452
6453 * remote.c (struct vCont_action_support): New struct.
6454 (struct remote_state) <support_vCont_t>: Remove field.
6455 <vCont_actions_support>: New field.
6456 (remote_vcont_probe, remote_stop_ns): Update.
6457
ce4c476a
PA
64582013-05-23 Yao Qi <yao@codesourcery.com>
6459 Pedro Alves <palves@redhat.com>
6460
6461 * gdbthread.h (pc_in_thread_step_range): New declaration.
6462 * thread.c (pc_in_thread_step_range): New function.
6463 * infrun.c (handle_inferior_event): Use it.
6464
ce70887a
JB
64652013-05-23 Joel Brobecker <brobecker@adacore.com>
6466
6467 * mi/mi-cmd-break.c (mi_argv_to_format): Use xsnprintf instead
6468 of sprintf.
6469
55b87a52
KS
64702013-05-22 Keith Seitz <keiths@redhat.com>
6471
6472 * ada-lang.c (is_known_support_routine): Add explicit free of
6473 'func_name' from find_frame_funname.
6474 (ada_unhandled_exception_name_addr_from_raise): Add cleanups
6475 for func_name from find_frame_funname.
6476 * python/py-frame.c (frapy_name): Add explicit free of
6477 'name' from find_frame_funname.
6478 * stack.c (find_frame_funname): Add comment explaining that
6479 funcp must be freed by the caller.
6480 Return copy of symbol names instead of pointers.
6481 (print_frame): Add a cleanup for 'funname' from
6482 find_frame_funname.
6483 * stack.h (find_frame_funname): Remove "const" from
6484 'funname' parameter.
6485
5f2e6b00
TT
64862013-05-22 Tom Tromey <tromey@redhat.com>
6487
6488 PR c++/15401:
6489 * c-valprint.c (c_value_print): Use value_addr for
6490 references. Convert back to reference type with value_ref.
6491
d85c4847
EZ
64922013-05-22 Eli Zaretskii <eliz@gnu.org>
6493
6494 * windows-nat.c (handle_unload_dll): Don't call solib_add for the
6495 unloaded DLL, it will be done by handle_solib_event. See
6496 http://sourceware.org/ml/gdb-patches/2013-05/msg00713.html for the
6497 details.
6498
54eb231c
PM
64992013-05-22 Phil Muldoon <pmuldoon@redhat.com>
6500
6501 * ui-out.c: Create typedef ui_out_level_p and define vector
6502 operations for that type.
6503 (struct ui_out): Use a vector instead of an array.
6504 (current_level): Return level from a vector.
6505 (push_level): Create a level in a vector.
6506 (pop_level): Delete a level in a vector.
6507 (ui_out_new): Create initial level zero level, and store in a
6508 vector.
6509 (ui_out_destroy): Add vector cleanup.
6510
ac90359c
PA
65112013-05-22 Pedro Alves <palves@redhat.com>
6512
6513 * python/python-internal.h (gdb_Py_DECREF): Tag with
6514 "ARI: editCase function".
6515
6dcc1893
PP
65162013-05-21 Paul Pluzhnikov <ppluzhnikov@google.com>
6517
6518 * solib-svr4.c (svr4_free_so): Protect against NULL dereference.
6519
c8c735b9
PA
65202013-05-21 Pedro Alves <palves@redhat.com>
6521
6522 * python/py-prettyprint.c (apply_val_pretty_printer): Check
6523 whether PRINTER is NULL before installing a Py_DECREF cleanup.
6524 * python/py-utils.c (py_decref): Don't check for NULL before
6525 calling Py_DECREF.
6526
1915daeb
PA
65272013-05-21 Pedro Alves <palves@redhat.com>
6528
6529 * python/py-utils.c (py_decref): Remove extra braces.
6530 (gdb_pymodule_addobject): Remove extra braces.
6531 * python-internal.h (gdb_Py_DECREF): New static inline function.
6532 (Py_DECREF): Redefine as calling gdb_Py_DECREF.
6533
bd9673a4
PW
65342013-05-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6535
6536 * breakpoints.c (detach_breakpoints): Do not
6537 detach breakpoints locations with loc_type bp_loc_other.
6538
ff6009d0
JK
65392013-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6540
6541 Workaround Python 2.6.
6542 * python/py-utils.c (gdb_pymodule_addobject): Wrap Py_DECREF into
6543 a block.
6544
3641da11
JK
65452013-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6546
6547 Code cleanup: constification.
6548 * solib.c (solib_ops): Make return type and ops variable type const.
6549 (set_solib_ops): Make the new_ops parameter and ops variable const.
6550 (solib_find, solib_map_sections, clear_so, free_so, update_solib_list)
6551 (solib_add, solib_keep_data_in_core, clear_solib)
6552 (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
6553 (reload_shared_libraries, solib_global_lookup): Make the ops variable
6554 const.
6555 * solib.h (set_solib_ops): Make the new_ops parameter const.
6556
776af39e
JB
65572013-05-21 Joel Brobecker <brobecker@adacore.com>
6558
6559 * data-directory/Makefile.in (SYSTEM_GDBINIT_SRCDIR): New
6560 variable.
6561 (VPATH): Add SYSTEM_GDBINIT_SRCDIR.
6562 (SYSTEM_GDBINIT_DIR, SYSTEM_GDBINIT_INSTALL_DIR)
6563 (SYSTEM_GDBINIT_FILES): New variables.
6564 (all): Add stamp-system-gdbinit.
6565 (stamp-system-gdbinit): New rule.
6566 (clean-system-gdbinit, install-system-gdbinit)
6567 (uninstall-system-gdbinit): New rules. Make them .PHONY.
6568 (install-only): Add dependency on install-system-gdbinit.
6569 (uninstall): Add dependency on uninstall-system-gdbinit.
6570 (clean): Add dependency on clean-system-gdbinit.
6571 * system-gdbinit/elinos.py: New file.
6572 * system-gdbinit/wrs-linux.py: New file.
6573
1509e573
JB
65742013-05-21 Joel Brobecker <brobecker@adacore.com>
6575
6576 * ada-lang.c (old_renaming_is_invisible): Fix cleanup leak.
6577
c5867ab6
HZ
65782013-05-21 Hui Zhu <hui@codesourcery.com>
6579
6580 * breakpoint.c (dprintf_breakpoint_ops): Remove its static.
6581 * breakpoint.h (dprintf_breakpoint_ops): Add extern.
6582 * mi/mi-cmd-break.c (ctype.h): New include.
6583 (gdb_obstack.h): New include.
6584 (mi_argv_to_format, mi_cmd_break_insert_1): New.
6585 (mi_cmd_break_insert): Call mi_cmd_break_insert_1.
6586 (mi_cmd_dprintf_insert): New.
6587 * mi/mi-cmds.c (mi_cmds): Add "dprintf-insert".
6588 * mi/mi-cmds.h (mi_cmd_dprintf_insert): New extern.
6589
7d38e38f
TT
65902013-05-20 Tom Tromey <tromey@redhat.com>
6591
6592 * python/py-prettyprint.c (search_pp_list): Decref 'attr'.
6593
97b77b39
TT
65942013-05-20 Tom Tromey <tromey@redhat.com>
6595
6596 * python/py-value.c (valpy_get_dynamic_type): Simplify
6597 dynamic_type assignment. Use Py_XINCREF.
6598
53e66479
TT
65992013-05-20 Tom Tromey <tromey@redhat.com>
6600
6601 * python/py-type.c (typy_fields): Unconditionally decref 'r'.
6602
dcf87832
TT
66032013-05-20 Tom Tromey <tromey@redhat.com>
6604
6605 * python/py-frame.c (frapy_older, frapy_newer, gdbpy_newest_frame)
6606 (gdbpy_selected_frame): Move object-construction code
6607 out of TRY_CATCH.
6608
aa36459a
TT
66092013-05-20 Tom Tromey <tromey@redhat.com>
6610
6611 * python/py-arch.c (gdbpy_initialize_arch): Use
6612 gdb_pymodule_addobject.
6613 * python/py-block.c (gdbpy_initialize_blocks): Use
6614 gdb_pymodule_addobject.
6615 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Use
6616 gdb_pymodule_addobject.
6617 * python/py-cmd.c (gdbpy_initialize_breakpoints): Use
6618 gdb_pymodule_addobject.
6619 * python/py-event.c (gdbpy_initialize_event_generic): Use
6620 gdb_pymodule_addobject.
6621 * python/py-evtregistry.c (gdbpy_initialize_eventregistry): Use
6622 gdb_pymodule_addobject.
6623 * python/py-evts.c (add_new_registry): Use
6624 gdb_pymodule_addobject.
6625 (gdbpy_initialize_py_events): Likewise.
6626 * python/py-finishbreakpoint.c
6627 (gdbpy_initialize_finishbreakpoints): Use
6628 gdb_pymodule_addobject.
6629 * python/py-frame.c (gdbpy_initialize_frames): Use
6630 gdb_pymodule_addobject.
6631 * python/py-function.c (gdbpy_initialize_functions): Use
6632 gdb_pymodule_addobject.
6633 * python/py-inferior.c (gdbpy_initialize_inferior): Use
6634 gdb_pymodule_addobject.
6635 * python/py-infthread.c (gdbpy_initialize_thread): Use
6636 gdb_pymodule_addobject.
6637 * python/py-objfile.c (gdbpy_initialize_objfile): Use
6638 gdb_pymodule_addobject.
6639 * python/py-param.c (gdbpy_initialize_parameters): Use
6640 gdb_pymodule_addobject.
6641 * python/py-progspace.c (gdbpy_initialize_pspace): Use
6642 gdb_pymodule_addobject.
6643 * python/py-symbol.c (gdbpy_initialize_symbols): Use
6644 gdb_pymodule_addobject.
6645 * python/py-symtab.c (gdbpy_initialize_symtabs): Use
6646 gdb_pymodule_addobject.
6647 * python/py-type.c (gdbpy_initialize_types): Use
6648 gdb_pymodule_addobject.
6649 * python/py-utils.c (gdb_pymodule_addobject): New function.
6650 * python/py-value.c (gdbpy_initialize_values): Use
6651 gdb_pymodule_addobject.
6652 * python/python-internal.h (gdb_pymodule_addobject): Declare.
6653 * python/python.c (_initialize_python): Use
6654 gdb_pymodule_addobject.
6655
3d4a3c3e
TT
66562013-05-20 Tom Tromey <tromey@redhat.com>
6657
6658 * python/py-cmd.c (cmdpy_completer): Use explicit decref.
6659 * python/py-param.c (get_set_value, get_show_value): Use
6660 explicit decrefs.
6661 * python/python.c (start_type_printers, apply_type_printers):
6662 Use explicit decrefs.
6663
72ff8829
TT
66642013-05-20 Tom Tromey <tromey@redhat.com>
6665
6666 * python/py-evts.c (gdbpy_initialize_py_events): Don't
6667 incref the module.
6668
02146ba5
TT
66692013-05-20 Tom Tromey <tromey@redhat.com>
6670
6671 * python/python.c (gdbpy_run_events): Decref the result
6672 of PyObject_CallObject.
6673
33ee792f
TT
66742013-05-20 Tom Tromey <tromey@redhat.com>
6675
6676 * python/py-symtab.c (set_sal): Use
6677 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION. Return -1 on error.
6678 (symtab_and_line_to_sal_object): Update.
6679
fcb49fc8
TT
66802013-05-20 Tom Tromey <tromey@redhat.com>
6681
6682 * python/py-param.c (compute_enum_values): Decref 'item'.
6683
0646da15
TT
66842013-05-20 Tom Tromey <tromey@redhat.com>
6685
6686 * mi/mi-main.c: Include python-internal.h.
6687 (mi_cmd_list_features): Check gdb_python_initialized.
6688 * python/py-inferior.c (python_on_normal_stop, python_on_resume)
6689 (python_inferior_exit, python_new_objfile, add_thread_object)
6690 (delete_thread_object, py_free_inferior): Check
6691 gdb_python_initialized.
6692 * python/py-prettyprint.c (apply_val_pretty_printer): Check
6693 gdb_python_initialized.
6694 * python/py-type.c (save_objfile_types): Check
6695 gdb_python_initialized.
6696 * python/python-internal.h (gdb_python_initialized): Declare.
6697 * python/python.c (ensure_python_env): Throw exception if
6698 Python not initialized.
6699 (before_prompt_hook, source_python_script_for_objfile)
6700 (start_type_printers, apply_type_printers,
6701 free_type_printers): Check gdb_python_initialized.
6702 * varobj.c (varobj_get_display_hint)
6703 (dynamic_varobj_has_child_method, update_dynamic_varobj_children)
6704 (install_new_value_visualizer, varobj_set_visualizer)
6705 (value_get_print_value): Check gdb_python_initialized.
6706
999633ed
TT
67072013-05-20 Tom Tromey <tromey@redhat.com>
6708
6709 * python/py-arch.c (gdbpy_initialize_arch): Return 'int'.
6710 Check errors.
6711 * python/py-auto-load.c (gdbpy_initialize_auto_load): Return 'int'.
6712 * python/py-block.c (gdbpy_initialize_blocks): Return 'int'.
6713 Check errors.
6714 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Return 'int'.
6715 Check errors.
6716 * python/py-cmd.c (gdbpy_initialize_commands): Return 'int'.
6717 Check errors.
6718 * python/py-event.c (gdbpy_initialize_event): Return 'int'.
6719 Check errors.
6720 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Change generated
6721 init function to return 'int'.
6722 * python/py-evtregistry.c (gdbpy_initialize_eventregistry):
6723 Return 'int'. Check errors.
6724 * python/py-evts.c (gdbpy_initialize_py_events): Return 'int'.
6725 Check errors.
6726 * python/py-finishbreakpoint.c (gdbpy_initialize_finishbreakpoints):
6727 Return 'int'. Check errors.
6728 * python/py-frame.c (gdbpy_initialize_frames): Return 'int'.
6729 Check errors.
6730 * python/py-function.c (gdbpy_initialize_functions): Return 'int'.
6731 Check errors.
6732 * python/py-gdb-readline.c (gdbpy_initialize_gdb_readline):
6733 Check errors.
6734 * python/py-inferior.c (gdbpy_initialize_inferior): Return 'int'.
6735 Check errors.
6736 * python/py-infthread.c (gdbpy_initialize_thread): Return 'int'.
6737 Check errors.
6738 * python/py-lazy-string.c (gdbpy_initialize_lazy_string): Return 'int'.
6739 Check errors.
6740 * python/py-objfile.c (gdbpy_initialize_objfile): Return 'int'.
6741 Check errors.
6742 * python/py-param.c (gdbpy_initialize_parameters): Return 'int'.
6743 Check errors.
6744 * python/py-progspace.c (gdbpy_initialize_pspace): Return 'int'.
6745 Check errors.
6746 * python/py-symbol.c (gdbpy_initialize_symbols): Return 'int'.
6747 Check errors.
6748 * python/py-symtab.c (gdbpy_initialize_symtabs): Return 'int'.
6749 Check errors.
6750 * python/py-type.c (gdbpy_initialize_types): Return 'int'.
6751 Check errors.
6752 * python/py-value.c (gdbpy_initialize_values): Return 'int'.
6753 Check errors.
6754 * python/python-internal.h (gdbpy_initialize_auto_load,
6755 gdbpy_initialize_values, gdbpy_initialize_frames,
6756 gdbpy_initialize_symtabs, gdbpy_initialize_commands,
6757 gdbpy_initialize_symbols, gdbpy_initialize_symtabs,
6758 gdbpy_initialize_blocks, gdbpy_initialize_types,
6759 gdbpy_initialize_functions, gdbpy_initialize_pspace,
6760 gdbpy_initialize_objfile, gdbpy_initialize_breakpoints,
6761 gdbpy_initialize_finishbreakpoints,
6762 gdbpy_initialize_lazy_string, gdbpy_initialize_parameters,
6763 gdbpy_initialize_thread, gdbpy_initialize_inferior,
6764 gdbpy_initialize_eventregistry, gdbpy_initialize_event,
6765 gdbpy_initialize_py_events, gdbpy_initialize_stop_event,
6766 gdbpy_initialize_signal_event,
6767 gdbpy_initialize_breakpoint_event,
6768 gdbpy_initialize_continue_event,
6769 gdbpy_initialize_exited_event, gdbpy_initialize_thread_event,
6770 gdbpy_initialize_new_objfile_event, gdbpy_initialize_arch):
6771 Update. Use CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
6772 * python/python.c (gdb_python_initialized): New global.
6773 (gdbpy_initialize_events): Return 'int'. Check errors.
6774 (_initialize_python): Check errors. Set
6775 gdb_python_initialized.
6776
18868860
TT
67772013-05-20 Tom Tromey <tromey@redhat.com>
6778
6779 * python/py-finishbreakpoint.c (bpfinishpy_out_of_scope):
6780 Decref the reslut of PyObject_CallMethod.
6781
9f4ff0c2
TT
67822013-05-20 Tom Tromey <tromey@redhat.com>
6783
6784 * python/py-event.c (gdbpy_initialize_event_generic): Return
6785 early if PyType_Ready fails.
6786
0d3a2e8a
TT
67872013-05-20 Tom Tromey <tromey@redhat.com>
6788
6789 * python/py-type.c (make_fielditem): Add gdb_assert_not_reached
6790 as 'default' in the switch.
6791
b86af38a
TT
67922013-05-20 Tom Tromey <tromey@redhat.com>
6793
6794 * python/py-inferior.c (gdbpy_inferiors): Update. Hoist
6795 get_addr_from_python calls out of TRY_CATCH.
6796 (infpy_write_memory, infpy_search_memory): Likewise.
6797 * python/py-utils.c (get_addr_from_python): Return negative
6798 value on error. Use TRY_CATCH.
6799 * python/python-internal.h (get_addr_from_python): Use
6800 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
6801
c127ec58
TT
68022013-05-20 Tom Tromey <tromey@redhat.com>
6803
6804 * python/py-event.c (evpy_emit_event): Decref the
6805 result of PyObject_CallFunctionObjArgs.
6806
ba327838
TT
68072013-05-20 Tom Tromey <tromey@redhat.com>
6808
6809 * python/py-cmd.c (cmdpy_completer): Use iterator protocol.
6810 Correctly decref.
6811
d8191432
TT
68122013-05-20 Tom Tromey <tromey@redhat.com>
6813
6814 * python/py-cmd.c (cmdpy_init): Decref 'ds_obj'.
6815
5d153bd1
TT
68162013-05-20 Tom Tromey <tromey@redhat.com>
6817
6818 * python/py-event.h (gdbpy_initialize_event_generic): Use
6819 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
6820 * python/py-evts.c (add_new_registry): Use
6821 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
6822 * python/python-internal.h
6823 (CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION): New macro.
6824
56cc411c
TT
68252013-05-20 Tom Tromey <tromey@redhat.com>
6826
6827 * python/py-arch.c (archpy_disassemble): Update.
6828 * python/py-type.c (typy_get_composite, typy_lookup_typename)
6829 (typy_lookup_type): Use GDB_PY_HANDLE_EXCEPTION.
6830 * python/py-utils.c (gdbpy_convert_exception): Return 'void'.
6831 * python/python-internal.h (CPYCHECKER_SETS_EXCEPTION): New
6832 macro.
6833 (GDB_PY_HANDLE_EXCEPTION): Update.
6834 (gdbpy_convert_exception): Update. Use CPYCHECKER_SETS_EXCEPTION.
6835
8919e174
TT
68362013-05-20 Tom Tromey <tromey@redhat.com>
6837
6838 * python/python-internal.h (events_object_type): Remove.
6839
9b08f225
TT
68402013-05-20 Tom Tromey <tromey@redhat.com>
6841
f5aee5ee
AM
6842 * python/py-event.h (evpy_emit_event): Use
6843 CPYCHECKER_STEALS_REFERENCE_TO_ARG.
6844 * python/python-internal.h (CPYCHECKER_STEALS_REFERENCE_TO_ARG):
6845 New macro.
9b08f225 6846
f04010ff
TT
68472013-05-20 Tom Tromey <tromey@redhat.com>
6848
6849 * py-evtregistry.c (create_event_object): Decref
6850 eventregistry_object if PyList_New fails.
6851
3919fd96
TT
68522013-05-20 Tom Tromey <tromey@redhat.com>
6853
6854 * py-cmd.c (gdbpy_string_to_argv): Check result of
6855 PyList_New.
6856
0430e8cb
TT
68572013-05-20 Tom Tromey <tromey@redhat.com>
6858
6859 * python/python.c (before_prompt_hook): Add cleanup to
6860 decref 'hook'.
6861
764123e4
TT
68622013-05-20 Tom Tromey <tromey@redhat.com>
6863
6864 * python/py-function.c (fnpy_init): Decref result of
6865 PyObject_GetAttrString.
6866
634c58be
TT
68672013-05-20 Tom Tromey <tromey@redhat.com>
6868
6869 * python/py-threadevent.c (get_event_thread): Use
6870 CPYCHECKER_RETURNS_BORROWED_REF.
6871 * python/python-internal.h (CPYCHECKER_RETURNS_BORROWED_REF):
6872 New define.
6873 (pspace_to_pspace_object, objfile_to_objfile_object)
6874 (find_thread_object): Use it.
6875
62eec1a5
TT
68762013-05-20 Tom Tromey <tromey@redhat.com>
6877
6878 * python/py-arch.c (arch_object_type): Use
6879 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6880 * python/py-block.c (block_syms_iterator_object_type):
6881 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6882 * python/py-bpevent.c (breakpoint_event_object_type):
6883 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6884 * python/py-cmd.c (cmdpy_object_type): Use
6885 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6886 * python/py-continueevent.c (continue_event_object_type):
6887 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6888 * python/py-event.h (GDBPY_NEW_EVENT_TYPE):
6889 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6890 * python/py-events.h (thread_event_object_type):
6891 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6892 * python/py-evtregistry.c (eventregistry_object_type): Use
6893 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6894 * python/py-exitedevent.c (exited_event_object_type):
6895 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6896 * python/py-finishbreakpoint.c (finish_breakpoint_object_type):
6897 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6898 * python/py-function.c (fnpy_object_type): Use
6899 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6900 * python/py-inferior.c (inferior_object_type, membuf_object_type):
6901 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6902 * python/py-infthread.c (thread_object_type): Use
6903 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6904 * python/py-lazy-string.c (lazy_string_object_type):
6905 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6906 * python/py-newobjfileevent.c (new_objfile_event_object_type):
6907 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6908 * python/py-objfile.c (objfile_object_type): Use
6909 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6910 * python/py-param.c (parmpy_object_type):
6911 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6912 * python/py-progspace.c (pspace_object_type):
6913 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6914 * python/py-signalevent.c (signal_event_object_type):
6915 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6916 * python/py-symtab.c (symtab_object_type, sal_object_type): Use
6917 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6918 * python/py-type.c (type_object_type, field_object_type)
6919 (type_iterator_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6920 * python/py-internal.h (CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF): New
6921 define.
6922 (value_object_type, block_object_type, symbol_object_type)
6923 (event_object_type, stop_event_object_type, breakpoint_object_type)
6924 (frame_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6925
81ea8796
AT
69262013-05-20 Andreas Tobler <andreas@fgznet.ch>
6927
6928 * Makefile.in (ALL_TARGET_OBS): Add ppcfbsd-tdep.o.
6929 (ALLDEPFILES): Add ppcfbsd-nat.c and ppcfbsd-tdep.c.
6930
a2ce51a0
DE
69312013-05-20 Doug Evans <dje@google.com>
6932
6933 When reading CU, stay in DWO. Be more tolerent of bad debug info.
6934 For Fission.
6935 * dwarf2read.c (struct dwarf2_per_cu_data): New member
6936 reading_dwo_directly.
6937 (struct signatured_type): New member dwo_unit.
6938 (struct die_reader_specs): New member comp_dir.
6939 (create_signatured_type_table_from_index): Use malloc for
6940 all_type_units instead of objfile's obstack.
6941 (create_all_type_units): Ditto.
6942 (fill_in_sig_entry_from_dwo_entry): New function.
6943 (add_type_unit): New function.
6944 (lookup_dwo_signatured_type): New function.
6945 (lookup_dwp_signatured_type): New function.
6946 (lookup_signatured_type): New arg cu. All callers updated.
6947 (init_cu_die_reader): Initialize comp_dir.
6948 (read_cutu_die_from_dwo): New arg stub_comp_dir. All callers updated.
6949 Change assert of matching type signatures to call error on mismatch.
6950 (lookup_dwo_unit): Add assert.
6951 (init_tu_and_read_dwo_dies): New function.
6952 (init_cutu_and_read_dies): Call it.
6953 (build_type_unit_groups): Handle case of no type unit groups created.
6954 (hash_dwo_file, eq_dwo_file): Handle missing comp_dir.
6955 (lookup_dwo_cutu): Tweak complaint.
6956 (dwarf2_free_abbrev_table): Check for NULL abbrev_table.
6957 (dwarf2_per_objfile_free): Free all_type_units.
6958
a25cd31f
JB
69592013-05-20 Joel Brobecker <brobecker@adacore.com>
6960
6961 * windows-nat.c (handle_unload_dll): Add missing empty line.
6962
4d804846
JB
69632013-05-20 Joel Brobecker <brobecker@adacore.com>
6964
6965 * dwarf2read.c (prototyped_function_p): New function.
6966 (read_subroutine_type): Use it.
6967
1c432e72
JB
69682013-05-20 Joel Brobecker <brobecker@adacore.com>
6969
6970 * rs6000-aix-tdep.c: De-indent some example code provided
6971 as a comment.
6972
4feebbdd
EBM
69732013-05-17 Edjunior Machado <emachado@linux.vnet.ibm.com>
6974
6975 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Check if the
6976 region is ok for a hardware watchpoint using the new ptrace interface
6977 on Power servers.
6978
7d0c9981
DE
69792013-05-17 Doug Evans <dje@google.com>
6980
6981 * NEWS: Mention new maintenance commands check-symtabs, and
6982 expand-symtabs, and renamed check-psymtabs.
6983 * psymtab.c (maintenance_check_psymtabs): Renamed from
6984 maintenance_check_symtabs. Only process already-expanded symbol
6985 tables.
6986 (_initialize_psymtab): Update.
6987 * symmisc.c (maintenance_check_symtabs): New function.
6988 (maintenance_expand_name_matcher): New function
6989 (maintenance_expand_file_matcher): New function
6990 (maintenance_expand_symtabs): New function.
6991 (_initialize_symmisc): Add "mt check-symtabs" and "mt expand-symtabs"
6992 commands.
6993
6cbc7c3d
TT
69942013-05-17 Tom Tromey <tromey@redhat.com>
6995
6996 * python/py-inferior.c (infpy_read_memory): Don't call
6997 PyErr_SetString if PyObject_New fails.
6998 * python/py-frame.c (frame_info_to_frame_object): Don't call
6999 PyErr_SetString if PyObject_New fails.
7000
a48b32c0
L
70012013-05-17 Pavel Chupin <pavel.v.chupin@intel.com>
7002
7003 * acinclude.m4: Add check for dlopen in libdl.
7004 * configure.ac: Ditto.
7005 * configure: Regenerate.
7006
3de661e6
PM
70072013-05-17 Phil Muldoon <pmuldoon@redhat.com>
7008
7009 * frame.c (frame_stash): Convert to htab.
7010 (frame_addr_hash): New function.
7011 (frame_addr_hash_eq): New function.
7012 (frame_stash_create): Convert function to create
7013 a hash table.
7014 (frame_stash_add): Convert function to add an entry to a hash
7015 table.
7016 (frame_stash_find): Convert function to search the hash table.
7017 (frame_stash_invalidate): Convert function to empty the hash
7018 table.
7019 (get_frame_id): Only add to stash if a frame_id is created.
7020 (_initialize_frame): Call frame_stash_create.
7021
bb4168a9 70222013-05-16 Yue Lu <hacklu.newborn@gmail.com> (tiny change)
036c3acb
TS
7023
7024 * configure.ac: Ensure MIG is available when building for GNU Hurd
7025 hosts.
7026 * configure: Regenerate.
7027
d1be3247
JB
70282013-05-16 Joel Brobecker <brobecker@adacore.com>
7029
7030 * dwarf2read.c (set_cu_language): Add DW_LANG_UPC handling.
7031
b8fea896
JB
70322013-05-16 Joel Brobecker <brobecker@adacore.com>
7033
7034 * ada-lang.c (ada_make_symbol_completion_list): Make sure
7035 all cleanups are done before returning from this function.
7036
af880d85
JB
70372013-05-15 Joel Brobecker <brobecker@adacore.com>
7038
7039 * utils.h: #include "exceptions.h".
7040 (enum errors): Remove partial declaration.
7041
356a5233
JB
70422013-05-15 Joel Brobecker <brobecker@adacore.com>
7043
7044 * gdbarch.sh (core_xfer_shared_libraries_aix): New method.
7045 * gdbarch.h, gdbarch.c: Regenerate.
7046 * corelow.c (core_xfer_partial): Add TARGET_OBJECT_LIBRARIES_AIX
7047 handling.
7048
7049 * rs6000-aix-tdep.h: New file.
7050 * Makefile.in (HFILES_NO_SRCDIR): Add rs6000-aix-tdep.h.
7051 * rs6000-aix-tdep.c: Include "rs6000-aix-tdep.h" and
7052 "xml-utils.h".
7053 (struct field_info, struct ld_info_desc): New types.
7054 (ld_info32_desc, ld_info64_desc): New static constants.
7055 (struct ld_info): New type.
7056 (rs6000_aix_extract_ld_info): New function.
7057 (rs6000_aix_shared_library_to_xml): Likewise.
7058 (rs6000_aix_ld_info_to_xml): Likewise.
7059 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
7060 (rs6000_aix_init_osabi): Add call to
7061 set_gdbarch_core_xfer_shared_libraries_aix.
7062 * rs6000-nat.c: Add "rs6000-aix-tdep.h" include.
7063 Remove "xml-utils.h" include.
7064 (LdInfo): Delete typedef.
7065 (ARCH64_DECL, LDI_FIELD, LDI_NEXT, LDI_FD, LDI_FILENAME):
7066 Delete macros.
7067 (rs6000_ptrace_ldinfo): Change return type to gdb_byte *.
7068 Adjust code accordingly.
7069 (rs6000_core_ldinfo): Delete, folded into
7070 rs6000_aix_core_xfer_shared_libraries_aix.
7071 (rs6000_xfer_shared_library): Delete.
7072 (rs6000_xfer_shared_libraries): Reimplement.
7073
742ce053
MM
70742013-05-15 Markus Metzger <markus.t.metzger@intel.com>
7075
7076 * record.c (record_goto_cmdlist): New.
7077 (cmd_record_goto): Split into this ...
7078 (cmd_record_goto_begin): ... this
7079 (cmd_record_goto_end): ... and this.
7080 (_initialize_record): Change "record goto" to prefix command.
7081 Add commands for "record goto begin" and "record goto end".
7082 Add an alias for "record goto start" to "record goto begin".
7083
e93ba630
JK
70842013-05-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7085
7086 * linespec.c (convert_linespec_to_sals): New comment for
7087 SOURCE_FILENAME assignment.
7088
5821aace
JK
70892013-05-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7090
7091 * cleanups.c (restore_my_cleanups): Replace gdb_assert by
7092 internal_warning.
7093
a1b8c4cc
TT
70942013-05-14 Tom Tromey <tromey@redhat.com>
7095
7096 * eval.c (parse_and_eval_long): Make 'exp' const.
7097 * value.h (parse_and_eval_long): Update.
7098
23b3a2c3
TT
70992013-05-14 Tom Tromey <tromey@redhat.com>
7100
7101 * ui-file.c (gdb_fopen): Make arguments const.
7102 * ui-file.h (gdb_fopen): Make arguments const.
7103
ca623f82
TT
71042013-05-14 Tom Tromey <tromey@redhat.com>
7105
7106 * remote.c (remote_set_trace_notes): Make arguments const.
7107 * target.c (update_current_target): Update cast.
7108 * target.h (to_set_trace_notes): Make arguments const.
7109
503ebb2c
TT
71102013-05-14 Tom Tromey <tromey@redhat.com>
7111
7112 * go32-nat.c (go32_terminal_info): Make 'args' const.
7113 * inferior.h (child_terminal_info): Update.
7114 * inflow.c (child_terminal_info): Make 'args' const.
7115 * target.c (default_terminal_info): Make 'args' const.
7116 (debug_to_terminal_save_ours): Likewise.
7117 * target.h (struct target_ops) <to_terminal_info>: Make argument
7118 const.
7119
85e1311a
TT
71202013-05-13 Tom Tromey <tromey@redhat.com>
7121
7122 * gcore.c (create_gcore_bfd): Make 'filename' const.
7123 * gcore.h (create_gcore_bfd): Make 'filename' const.
7124 * record-full.c (record_full_save): Make 'recfilename' const.
7125 * target.c (target_save_record): Make 'filename' const.
7126 * target.h (struct target_ops) <to_save_record>: Make 'filename'
7127 const.
7128 (target_save_record): Likewise.
7129
d62bfeaf
TT
71302013-05-13 Tom Tromey <tromey@redhat.com>
7131
f5aee5ee 7132 PR gdb/15338:
d62bfeaf
TT
7133 * dwarf2read.c (dwarf2_record_block_ranges): Ensure that the
7134 ranges section has been read.
7135
ac1ca910
TT
71362013-05-13 Tom Tromey <tromey@redhat.com>
7137
7138 PR exp/15364:
7139 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
7140 STRUCTOP_PTR>: Return a not_lval value for
7141 EVAL_AVOID_SIDE_EFFECTS.
7142 * opencl-lang.c (evaluate_subexp_opencl): Return a not_lval value
7143 for EVAL_AVOID_SIDE_EFFECTS.
7144
36d1c68c
JB
71452013-05-13 Joel Brobecker <brobecker@adacore.com>
7146
7147 * rs6000-aix-tdep.c (rs6000_push_dummy_call): Convert
7148 floating point registers to register type before storing
7149 value.
7150 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call):
7151 Likewise.
7152
21ff4686
TT
71532013-05-10 Joel Brobecker <brobecker@adacore.com>
7154 Tom Tromey <tromey@redhat.com>
7155
7156 * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
7157 New functions.
7158 * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
7159 Declare.
7160 * darwin-nat.c (darwin_pre_ptrace): Use mark_fd_no_cloexec.
7161 (darwin_ptrace_him): Use unmark_fd_no_cloexec.
7162 * inf-ttrace.c (do_cleanup_pfds): Use unmark_fd_no_cloexec.
7163 (inf_ttrace_prepare): Use mark_fd_no_cloexec.
7164
d3685d60
TT
71652013-05-10 Freddie Chopin <freddie_chopin@op.pl>
7166 Tom Tromey <tromey@redhat.com>
7167
7168 PR build/15414:
7169 * configure: Rebuild.
7170 * configure.ac (build_warnings): Do not use -Wformat-nonliteral
7171 with -Wno-format.
7172
eb9fe518
PA
71732013-05-10 Pedro Alves <palves@redhat.com>
7174
7175 * remote.c (_initialize_remote): Fix spelling of
7176 qXfer:traceframe-info:read packet in packet config command.
7177
9779ab84
PA
71782013-05-10 David Taylor <dtaylor@emc.com>
7179
7180 PR remote/15455
7181
7182 * remote.c (remote_trace_set_readonly_regions): Do not overwrite
7183 "QTro" at start of packet.
7184
060cfbef
JB
71852013-05-10 Joel Brobecker <brobecker@adacore.com>
7186
7187 * solib-aix.c (solib_aix_relocate_section_addresses):
7188 For the .bss section action, apply the same offset as
7189 the .data section.
7190
ab1c4e88
JB
71912013-05-10 Joel Brobecker <brobecker@adacore.com>
7192
7193 * solib-aix.c (solib_aix_relocate_section_addresses):
7194 Remove FIXME comment.
7195
c1357578
JB
71962013-05-10 Joel Brobecker <brobecker@adacore.com>
7197
7198 PR tdep/15420:
7199 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
7200 New functions, directly copied from sparc-sol-thread.c.
7201 * sparc-sol-thread.c: Delete.
7202 * configure.ac: Remove code handling sparc-solaris-thread.c.
7203 * configure: Regenerate.
7204
1e611234
PM
72052013-05-10 Phil Muldoon <pmuldoon@redhat.com>
7206
7207 * stack.c (backtrace_command_1): Add "no-filters", and Python frame
7208 filter logic.
7209 (backtrace_command): Add "no-filters" option parsing.
7210 (_initialize_stack): Alter help to reflect "no-filters" option.
7211 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-framefilter.o
7212 (SUBDIR_PYTHON_SRCS): Add py-framefilter.c
7213 (py-frame.o): Add target
7214 * data-directory/Makefile.in (PYTHON_DIR): Add Python frame
7215 filter files.
7216 * python/python.h: Add new frame filter constants, and flag enum.
7217 (apply_frame_filter): Add definition.
7218 * python/python.c (apply_frame_filter): New non-Python
7219 enabled function.
7220 * python/py-utils.c (py_xdecref): New function.
7221 (make_cleanup_py_xdecref): Ditto.
7222 * python/py-objfile.c: Declare frame_filters dictionary.
7223 (objfpy_dealloc): Add frame_filters dealloc.
7224 (objfpy_new): Initialize frame_filters attribute.
7225 (objfile_to_objfile_object): Ditto.
7226 (objfpy_get_frame_filters): New function.
7227 (objfpy_set_frame_filters): New function.
7228 * python/py-progspace.c: Declare frame_filters dictionary.
7229 (pspy_dealloc): Add frame_filters dealloc.
7230 (pspy_new): Initialize frame_filters attribute.
7231 (pspacee_to_pspace_object): Ditto.
7232 (pspy_get_frame_filters): New function.
7233 (pspy_set_frame_filters): New function.
7234 * python/py-framefilter.c: New file.
7235 * python/lib/gdb/command/frame_filters.py: New file.
7236 * python/lib/gdb/frames.py: New file.
7237 * python/lib/gdb/__init__.py: Initialize global frame_filters
7238 dictionary
7239 * python/lib/gdb/FrameDecorator.py: New file.
7240 * python/lib/gdb/FrameIterator.py: New file.
7241 * mi/mi-cmds.c (mi_cmds): Add frame filters command.
7242 * mi/mi-cmds.h: Declare.
7243 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Add
7244 --no-frame-filter logic, and Python frame filter logic.
7245 (stack_enable_frame_filters): New function.
7246 (parse_no_frame_option): Ditto.
7247 (mi_cmd_stack_list_frames): Add --no-frame-filter and Python frame
7248 filter logic.
7249 (mi_cmd_stack_list_locals): Ditto.
7250 (mi_cmd_stack_list_args): Ditto.
7251 (mi_cmd_stack_list_variables): Ditto.
7252 * NEWS: Add frame filter note.
7253
2cb9c859
DE
72542013-05-09 Doug Evans <dje@google.com>
7255
6bf667bb
DE
7256 * symfile.c (syms_from_objfile_1): Delete args offsets, num_offsets.
7257 All callers updated.
7258 (syms_from_objfile): Ditto. Make static.
7259 (symbol_file_add_with_addrs): Renamed from
7260 symbol_file_add_with_addrs_or_offsets. Delete args offsets,
7261 num_offsets. All callers updated.
7262 * symfile.h (syms_from_objfile): Delete.
7263
2cb9c859
DE
7264 * symfile.c (decrement_reading_symtab): Add assert.
7265 (increment_reading_symtab): Ditto.
7266
40aea477
JB
72672013-05-09 Joel Brobecker <brobecker@adacore.com>
7268
7269 * source.c (forward_search_command): Replace call to getc
7270 by call to fgetc.
7271 (reverse_search_command): Likewise.
7272
680d1742
DE
72732013-05-08 Doug Evans <dje@google.com>
7274
7275 * psymtab.c (expand_symtabs_matching_via_partial): Fix file name
7276 matching test.
7277
17e760ae
JB
72782013-05-08 Joel Brobecker <brobecker@adacore.com>
7279
7280 * sol-thread.c (info_cb): Factorize the code a little.
7281
c0f5f490
JB
72822013-05-08 Joel Brobecker <brobecker@adacore.com>
7283
7284 * sol-thread.c (info_cb): Rework the output of the "maintenance
7285 info sol-threads" command a bit.
7286
5d74e061
JB
72872013-05-08 Joel Brobecker <brobecker@adacore.com>
7288
7289 * sol-thread.c (info_cb) [ti.ti_state == TD_THR_SLEEP]:
7290 Replace ti.ti_startfunc by ti.ti_pc.
7291
814a3ff7
JB
72922013-05-08 Joel Brobecker <brobecker@adacore.com>
7293
7294 * solib-aix.c (solib_aix_free_library_list): New function
7295 for the case where HAVE_LIBEXPAT is not defined.
7296
58ce7251
SDJ
72972013-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
7298
7299 PR breakpoints/15413:
7300 * breakpoint.c (condition_completer): Simplify the code to
7301 disconsider multiple locations of breakpoints when completing the
7302 "condition" command.
7303
be8b1ea6
PM
73042013-05-07 Pierre Muller <muller@sourceware.org>
7305
7306 * common/linux-btrace.c: ARI fix: Include "gdb_wait.h"
7307 instead of <sys/wait.h>.
7308
1e52bda6
PM
73092013-05-07 Pierre Muller <muller@sourceware.org>
7310
7311 * nios2-tdep.c (nios2_dwarf_reg_to_regnum): ARI fix: remove
7312 trailing new line from warning message.
7313
27fd0c6b
PM
73142013-05-07 Pierre Muller <muller@sourceware.org>
7315
7316 * contrib/ari/gdb_ari.sh (SOLIB_ADD, SOLIB_CREATE_INFERIOR_HOOK)
7317 (PC_SOLIB): Change type from ari_deprecate to ari_regression.
7318
e228ac87
JB
73192013-05-07 Joel Brobecker <brobecker@adacore.com>
7320
7321 * rs6000-nat.c (rs6000_core_ldinfo): Remove '\n' at end of
7322 error message (ARI fix).
7323
73242013-05-07 Joel Brobecker <brobecker@adacore.com>
7325
7326 * features/library-list-aix.dtd: Replace library-list by
7327 library-list-aix.
7328 * rs6000-nat.c: Replace library-list by library-list-aix
7329 throughout.
7330 * solib-aix.c: Likewise.
7331
73322013-05-07 Joel Brobecker <brobecker@adacore.com>
7333
7334 * target.h (enum target_object) [TARGET_OBJECT_LIBRARIES_AIX]:
7335 Renames TARGET_OBJECT_AIX_LIBRARIES.
7336 * rs6000-nat.c: Replace TARGET_OBJECT_AIX_LIBRARIES with
7337 TARGET_OBJECT_LIBRARIES_AIX throughout.
7338 * solib-aix.c: Likwise.
7339
26a4dda9
YQ
73402013-05-07 Yao Qi <yao@codesourcery.com>
7341
7342 * solib-dsbt.c (struct dsbt_info) <enable_break2_done>: Remove.
7343 (get_dsbt_info, enable_break, dsbt_clear_solib): Update.
7344
3582629f
YQ
73452013-05-07 Yao Qi <yao@codesourcery.com>
7346
7347 * solib-dsbt.c (enable_break): Declare.
7348 (dsbt_current_sos): Remove call to enable_break2.
7349 (enable_break2): Rename to enable_break. Set solib breakpoint
7350 on '_dl_debug_state'.
7351 (enable_break): Remove.
7352
aacbb8a5
LM
73532013-05-07 Luis Machado <lgustavo@codesourcery.com>
7354
7355 * ppc-linux-nat.c (ppc_linux_new_thread): Clear the new thread's
7356 debug state prior to replicating existing hardware watchpoints or
7357 breakpoints.
7358
0c013353
JK
73592013-05-07 Jan Kratochvil <jan.kratochvil@redhat.com>
7360
7361 * gcore.c (gcore_create_callback): Ignore sections with
7362 separate_debug_objfile_backlink != NULL.
7363
a1217d97
SL
73642013-05-06 Sandra Loosemore <sandra@codesourcery.com>
7365 Andrew Jenner <andrew@codesourcery.com>
7366 Chung-Lin Tang <cltang@codesourcery.com>
7367 Julian Brown <julian@codesourcery.com>
7368
7369 Based on the nios2-elf port from Altera Corporation.
7370
7371 * Makefile.in (ALL_TARGET_OBS): Add nios2-tdep.o and
7372 nios2-linux-tdep.o.
7373 (HFILES_NO_SRCDIR): Add nios2-tdep.h.
7374 (ALLDEPFILES): Add nios2-tdep.c and nios2-linux-tdep.c.
7375 * configure.tgt: Add nios2*-*-linux* and nios2*-*-* targets.
7376 * nios2-tdep.h: New.
7377 * nios2-tdep.c: New.
7378 * nios2-linux-tdep.c: New.
7379 * features/Makefile (WHICH): Add nios2-linux.
7380 (nios2-linux-expedite): Set.
7381 * features/nios2-cpu.xml: New.
7382 * features/nios2.xml: New.
7383 * features/nios2-linux.xml: New.
7384 * features/nios2.c: New (autogenerated).
7385 * features/nios2-linux.c: New (autogenerated).
7386 * regformats/nios2-linux.dat: New (autogenerated).
7387 * NEWS (Changes since GDB 7.6): Add new Nios II targets
7388 and commands.
7389
0892cb63
DE
73902013-05-06 Doug Evans <dje@google.com>
7391
3b7bacac
DE
7392 * symfile.c: Whitespace cleanup.
7393
0892cb63
DE
7394 * solist.h (struct target_so_ops): New member clear_so.
7395 * solib-svr4.c (svr4_clear_so): New function.
7396 (_initialize_svr4_solib): Set svr4_so_ops.clear_so.
7397 * solib.c (clear_so): Renamed from free_so_symbols.
7398 All callers updated. Call target clear_so if it exists.
7399
40501e00
TT
74002013-05-06 Tom Tromey <tromey@redhat.com>
7401
7402 * ada-lang.c (ada_value_primitive_packed_val): Don't
7403 call value_incref.
7404 * value.c (set_value_parent): Incref the new parent and decref
7405 the old parent.
7406 (value_copy, value_primitive_field): Use set_value_parent.
7407
b6807d98
TT
74082013-05-06 Tom Tromey <tromey@redhat.com>
7409
7410 * dwarf2loc.c (invalid_synthetic_pointer): Move earlier.
7411 (indirect_pieced_value): Call dwarf2_fetch_constant_bytes
7412 if needed.
7413 * dwarf2loc.h (dwarf2_fetch_constant_bytes): Declare.
7414 * dwarf2read.c (write_constant_as_bytes)
7415 (dwarf2_fetch_constant_bytes): New functions.
7416
3aef2284
TT
74172013-05-06 Tom Tromey <tromey@redhat.com>
7418
7419 * dwarf2read.c (dwarf2_const_value_data): Remove unused
7420 parameters.
7421 (dwarf2_const_value_attr): Update.
7422
66f65e2b
TT
74232013-05-06 Tom Tromey <tromey@redhat.com>
7424
7425 * somread.c (som_symfile_offsets): Add 'const' to addrs.
7426 * machoread.c (macho_symfile_offsets): Add 'const' to addrs.
7427 * xcoffread.c (xcoff_symfile_offsets): Add 'const' to addrs.
7428 Remove declaration.
7429
7919a973
TT
74302013-05-06 Tom Tromey <tromey@redhat.com>
7431
7432 * dwarf2read.c (dwarf2_const_value_attr): Use 'obstack', not
7433 objfile's obstack.
7434
a7bfba49
DE
74352013-05-06 Doug Evans <dje@google.com>
7436
3189cb12
DE
7437 * dbxread.c (process_one_symbol): Constify section_offsets parameter.
7438 * stabsread.h (process_one_symbol): Update declaration.
7439 * dwarf2read.c (dw2_relocate): Constify new_offsets, delta parameters.
7440 * elfread.c (elf_symfile_relocate_probe): Ditto.
7441 * psymtab.c (relocate_psymtabs): Ditto.
7442 * objfiles.c (objfile_relocate1): Constify new_offsets parameter.
7443 (objfile_relocate): Ditto.
7444 * objfiles.h (objfile_relocate): Update declaration.
7445 * symfile.c (relative_addr_info_to_section_offsets): Constify
7446 addrs parameter.
7447 (default_symfile_offsets): Ditto.
7448 (syms_from_objfile_1): Constify offsets parameter.
7449 (syms_from_objfile): Ditto.
7450 (symbol_file_add_with_addrs_or_offsets): Ditto.
7451 (symfile_map_offsets_to_segments): Constify data parameter.
7452 * symfile.h (struct quick_symbol_functions): Constify new_offsets,
7453 delta parameters of member relocate.
7454 (struct sym_probe_fns): Constify new_offsets,
7455 delta parameters of member sym_relocate_probe.
7456 (struct sym_fns): Constify section_addr_info parameter of member
7457 sym_offsets.
7458 (relative_addr_info_to_section_offsets): Update declaration.
7459 (default_symfile_offsets): Ditto.
7460 (syms_from_objfile): Ditto.
7461 (symfile_map_offsets_to_segments): Ditto.
7462
a7bfba49
DE
7463 * symfile.c (syms_from_objfile_1): Use correct section count when
7464 objfile->sf == NULL.
7465
5f8e0b8f
MF
74662013-05-06 Mike Frysinger <vapier@gentoo.org>
7467
7468 * common/linux-btrace.c (intel_supports_btrace): Fix indentation.
7469
ea52d893
DE
74702013-05-06 Doug Evans <dje@google.com>
7471
7472 * psympriv.h (struct partial_symtab): Augment comment for member
7473 section_offsets.
7474
4d1eb6b4
JB
74752013-05-06 Joel Brobecker <brobecker@adacore.com>
7476
7477 Reimplement shared library support on ppc-aix...
7478 * target.h (TARGET_OBJECT_AIX_LIBRARIES): New target_object enum.
7479 * features/library-list-aix.dtd: New file.
7480 * solib-aix.h, solib-aix.c: New file.
7481 * rs6000-aix-tdep.c: #include "solib.h" and "solib-aix.h".
7482 (rs6000_find_toc_address_hook): Delete.
7483 (rs6000_push_dummy_call): Rewrite code setting the TOC value.
7484 (rs6000_aix_init_osabi): Register solib_aix_so_ops.
7485 * rs6000-nat.c: Remove "xcoffsolib.h" include. Include
7486 "xml-utils.h".
7487 (map_vmap, vmap_exec, vmap_ldinfo, add_vmap, objfile_symbol_add)
7488 (vmap_symtab, fixup_breakpoints): Delete.
7489 (rs6000_xfer_shared_libraries): New function.
7490 (rs6000_xfer_partial): Add TARGET_OBJECT_AIX_LIBRARIES handling.
7491 (vmap_secs, bss_data_overlap, vmap_add_symbols): Delete.
7492 (xcoff_relocate_symtab, xcoff_relocate_core): Delete.
7493 (rs6000_ptrace_ldinfo, rs6000_core_ldinfo)
7494 (rs6000_xfer_shared_library): New function.
7495 (find_toc_address): Delete.
7496 (_initialize_rs6000_nat): Do not set rs6000_find_toc_address_hook.
7497 * rs6000-tdep.h (rs6000_find_toc_address_hook): Remove.
7498 * xcoffread.c (record_minimal_symbol): Reloate symbol address
7499 before creating minimal symbol. Adjust function description
7500 accordingly.
7501 (scan_xcoff_symtab): Replace call to
7502 prim_record_minimal_symbol_and_info by call to
7503 record_minimal_symbol.
7504 (xcoff_symfile_offsets): Reimplement mostly as a wrapper
7505 around default_symfile_offsets.
7506 * configure.tgt: Add solib-aix.o to gdb_target_obs for
7507 powerpc-aix targets.
7508 * config/rs6000/nm-rs6000.h: Delete.
7509 * config/powerpc/aix.mh (NAT_FILE): Delete.
7510 (NATDEPFILES): Remove xcoffsolib.o.
7511 * Makefile.in (XMLFILES): Add library-list-aix.dtd.
7512 (ALL_TARGET_OBS): Add solib-aix.o.
7513 (HFILES_NO_SRCDIR): Remove xcoffsolib.h and
7514 config/rs6000/nm-rs6000.h. Add solib-aix.h.
7515 (ALLDEPFILES): Add solib-aix.c. Remove xcoffsolib.c.
7516 * xcoffsolib.h, xcoffsolib.c: Delete.
7517
7518 * solib.c (reload_shared_libraries): Remove reference to
7519 SOLIB_CREATE_INFERIOR_HOOK.
7520 * breakpoint.c (handle_solib_event): Remove reference to SOLIB_ADD.
7521 (disable_breakpoints_in_shlibs): Remove reference to PC_SOLIB.
7522 (momentary_bkpt_re_set): Replace SOLIB_ADD by solib_add in
7523 comment.
7524 * corelow.c (deprecated_core_resize_section_table): Delete.
7525 * exec.c: Remove include of xcoffsolib.h".
7526 (map_vmap, vmap): Delete.
7527 (exec_close_1): Remove references to vmap.
7528 (exec_file_attach): Remove vmap handling code, and reference
7529 to DEPRECATED_IBM6000_TARGET.
7530 (bfdsec_to_vmap): Delete.
7531 (exec_files_info): Remove block of code handling VMAP.
7532 * infcmd.c (post_create_inferior): Remove reference to
7533 SOLIB_CREATE_INFERIOR_HOOK and SOLIB_ADD.
7534 * infrun.c (follow_exec): Remove reference to
7535 SOLIB_CREATE_INFERIOR_HOOK.
7536 * stack.c (print_frame): Remove reference to PC_SOLIB.
7537 * solib-dsbt.c (dsbt_current_sos): Adjust comment.
7538 (dsbt_relocate_main_executable): Likewise.
7539 * solib-frv.c (frv_current_sos): Likewise.
7540
0c4f667c
JB
75412013-05-06 Joel Brobecker <brobecker@adacore.com>
7542
7543 * sol-thread.c (rw_common): Cast BUF to "gdb_byte *" in calls
7544 to target_write_memory and target_read_memory.
7545
726ce67c
JB
75462013-05-06 Joel Brobecker <brobecker@adacore.com>
7547
7548 * darwin-nat.c (darwin_setup_fake_stop_event): New function.
7549 (darwin_attach): Adjust using darwin_setup_fake_stop_event.
7550
c8c9911f
JB
75512013-05-06 Joel Brobecker <brobecker@adacore.com>
7552
7553 * darwin-nat.c: Replace all "%x" instances in format strings
7554 into "0x%x" throughout.
7555
fda184b6
JB
75562013-05-06 Joel Brobecker <brobecker@adacore.com>
7557
7558 * darwin-nat.c (darwin_mourn_inferior): Replace call to
7559 gdb_assert by call to MACH_CHECK_ERROR.
7560 (darwin_attach_pid): Raise an error rather than a failed
7561 assertion when various system calls failed. Report a warning
7562 instead of raising a failed assertion when PREV_NOT is not NULL
7563 after call to mach_port_request_notification.
7564 (darwin_ptrace_me): Raise an error rather than a failed
7565 assertion when read returns nonzero.
7566
d1d69afb
JB
75672013-05-06 Joel Brobecker <brobecker@adacore.com>
7568
7569 * amd64-darwin-tdep.c: Remove #include "gdb_assert.h".
7570
dc90b24d
JK
75712013-05-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7572
7573 * cleanups.c (restore_my_cleanups): New gdb_assert for SENTINEL_CLEANUP.
7574
faab9922
JK
75752013-05-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7576
7577 * event-top.c (display_gdb_prompt): Call missing do_cleanups.
7578 * infcmd.c (get_return_value) <!stop_regs>: Do not overwrite CLEANUP.
7579 * symfile.c (symfile_bfd_open): New variable back_to. Do not leave
7580 a stale cleanup. Fix double free of NAME.
7581
e0ea48a0
EZ
75822013-05-04 Eli Zaretskii <eliz@gnu.org>
7583
7584 * windows-nat.c (windows_delete_thread): Accept an additional
7585 argument, the thread's exit code, and announce thread death when
7586 print_thread_events is non-zero and we are deleting a thread that
7587 is not the main thread.
7588 (get_windows_debug_event): Pass thread exit code to
7589 windows_delete_thread.
7590
83b2706a
KB
75912013-05-03 Kevin Buettner <kevinb@redhat.com>
7592
7593 * v850-tdep.c (elf-bfd.h, elf/v850.h): Include.
7594 (R_149_REGNUM, E_NUM_OF_V850E2_REGS, E_SELID_1_R0_REGNUM)
7595 (E_SELID_1_R31_REGNUM, E_SELID_2_R0_REGNUM, E_SELID_2_R31_REGNUM)
7596 (E_SELID_3_R0_REGNUM, E_SELID_3_R31_REGNUM, E_SELID_4_R0_REGNUM)
7597 (E_SELID_4_R31_REGNUM, E_SELID_5_R0_REGNUM, E_SELID_5_R31_REGNUM)
7598 (E_SELID_6_R0_REGNUM, E_SELID_6_R31_REGNUM, E_SELID_7_R0_REGNUM, E_SELID_7_R31_REGNUM)
7599 (E_VR0_REGNUM, E_VR31_REGNUM, E_NUM_OF_V850E3V5_REGS): Define.
7600 (v850_abi, V850_ABI_GCC, V850_ABI_RH850): New enum and constants.
7601 (gdbarch_tdep): New struct.
7602 (v850e2_register_name): Use E_NUM_OF_V850E2_REGS instead of
7603 E_NUM_REGS.
7604 (v850e3v5_register_name): New function.
7605 (v850_register_type): v850e3v5 vector registers are 64-bits wide.
7606 (v850_use_struct_convention): Add `gdbarch' parameter. Add new
7607 code handling the struct return conventions for the RH850 ABI.
7608 Update all callers.
7609 (v850_eight_byte_align_p): New function.
7610 (v850_push_call_dummy): Push structs by value, not by reference
7611 for the RH850 ABI. Add support for eight byte alignment.
7612 (v850_dbtrap_breakpoint_from_pc): New function.
7613 (v850_gdbarch_init): Add ABI detection code. Register
7614 v850e3v5_register_name for the v850e3v5 architecture. Set the
7615 number of registers for v850e3v5. Register
7616 v850_dbtrap_breakpoint_from_pc as appropriate.
7617 (_initialize_gdbarch_init): Registration bfd_arch_v850_rh850.
7618
d445b2f6
DE
76192013-05-03 Doug Evans <dje@google.com>
7620
7621 * objfiles.c (objfile_relocate): Use gdb_bfd_count_sections instead
7622 of bfd_count_sections.
7623 * solib-target.c (solib_target_relocate_section_addresses): Ditto.
7624 * symfile.c (default_symfile_offsets): Ditto.
7625 (syms_from_objfile_1): Ditto. Make dummy addrs list an array of
7626 one entry, not bfd_count_sections entries.
7627
b3ce41ea
KB
76282013-05-03 Kevin Buettner <kevinb@redhat.com>
7629
7630 * rl78-tdep.c (rl78_register_reggroup_p): Include SP in the
7631 `save' and `restore' register groups. Don't include SPL
7632 or SPH in these groups.
7633 (rl78_dwarf_reg_to_regnum): Adjust mapping for
7634 RL78_PC_REGNUM. Add mappings for RL78_PSW_REGNUM,
7635 RL78_ES_REGNUM, and RL78_CS_REGNUM.
7636 (rl78_gdbarch_init): Set `dwarf2_addr_size' to 4. Invoke
7637 dwarf2_append_unwinders().
7638
96f7d3f1
PW
76392013-05-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7640
7641 * break-catch-sig.c (signal_catchpoint_breakpoint_hit): Do not
7642 ignore SIGINT and SIGTRAP in case these internal signals are
7643 caught explicitely.
7644
b9dd1947
JB
76452013-05-01 Joel Brobecker <brobecker@adacore.com>
7646
7647 * darwin-nat.c (darwin_read_write_inferior): Change types
7648 of parameters rdaddr and wraddr to "gdb_byte *". Change type
7649 of copy_count to "mach_msg_type_number_t".
7650 (darwin_read_dyld_info): Change type of parameter
7651 rdaddr to "gdb_byte *".
7652
4ca18a63
JB
76532013-05-01 Joel Brobecker <brobecker@adacore.com>
7654
7655 * solib-ia64-hpux.c (ia64_hpux_read_dynamic_info): Change cast
7656 of &info->load_map from "char *" to "gdb_byte *".
7657
2b692d32
JB
76582013-05-01 Joel Brobecker <brobecker@adacore.com>
7659
7660 * ia64-tdep.c (ia64_access_fpreg): Change cast of val
7661 from "char *" to "gdb_byte *".
7662 (ia64_access_rse_fpreg, ia64_access_mem): Likewise.
7663
a98c29a0
DE
76642013-04-30 Doug Evans <dje@google.com>
7665
6a506a2d
DE
7666 * dwarf2read.c (lookup_dwo_unit): Return NULL if DWO not found.
7667 (init_cutu_and_read_dies): Flag a complaint, not error, for bad
7668 DWO stub. If DWO isn't found, just use stub.
7669 (lookup_dwo_cutu): Don't try DWO if there's a DWP file.
7670
a98c29a0
DE
7671 * dwarf2read.c (dw2_find_symbol_file): Initialize filename before
7672 calling init_cutu_and_read_dies.
7673
f92b06da
WT
76742013-03-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
7675
7676 * target-descriptions.c (maint_print_c_tdesc_cmd):
7677 Add case to parse structures as register types and
7678 bitfields.
7679
95eebdcc
WT
76802013-04-30 Walfred Tedeschi <walfred.tedeschi@intel.com>
7681
7682 * MAINTAINERS (Write After Approval): Add myself to the list.
7683
019c1128
JB
76842013-04-30 Joel Brobecker <brobecker@adacore.com>
7685
7686 * sol-thread.c (rw_common): Change type of parameter "buf"
7687 to "gdb_byte *".
7688 (ps_pdwrite, ps_ptwrite): Cast parameter "buf" in call to
7689 rw_common to "gdb_byte *" instead of "char *".
7690
5812197c
JB
76912013-04-30 Joel Brobecker <brobecker@adacore.com>
7692
7693 * sol-thread.c (info_cb) [ti.ti_startfunc != 0]: Change type
7694 of local variable msym to const struct bound_minimal_symbol.
7695 Adjust use accordingly.
7696 [ti.ti_state == TD_THR_SLEEP]: Likewise.
7697
ecccb813
TS
76982013-04-30 Samuel Thibault <samuel.thibault@gnu.org>
7699
7700 * i386gnu-nat.c (CREG_OFFSET): New macro.
7701 (creg_offset): New array.
7702 (CREG_ADDR): Use creg_offset instead of reg_offset.
7703
f1d02dd4 77042013-04-30 Joel Brobecker <brobecker@adacore.com>
54746424
JB
7705
7706 * mep-tdep.c (mep_write_pc): Delete.
7707 (mep_gdbarch_init): Remove call to set_gdbarch_write_pc.
7708 Add call to set_gdbarch_pc_regnum.
7709
f1d02dd4 77102013-04-30 Joel Brobecker <brobecker@adacore.com>
01da98f9
JB
7711
7712 * common/filestuff.c: Replace #include <dirent.h> by
7713 #include "gdb_dirent.h".
7714
f1d02dd4 77152013-04-30 Joel Brobecker <brobecker@adacore.com>
366c6766
JB
7716
7717 * common/filestuff.c: Replace #include <sys/stat.h> by
7718 #include "gdb_stat.h".
7719
b385a60d
PM
77202013-04-29 Pierre Muller <muller@sourceware.org>
7721
7722 * dwarf2read.c (handle_DW_AT_stmt_list): Avoid ARI warning for
7723 editCase function rule.
7724 (get_DW_AT_signature_type): Likewise.
7725
d27b54ad
JB
77262013-04-29 Joel Brobecker <brobecker@adacore.com>
7727
7728 * m32r-tdep.c (m32r_write_pc): Delete.
7729 (m32r_gdbarch_init): Remove call to set_gdbarch_write_pc.
7730 Add call to set_gdbarch_pc_regnum.
7731
47d21dc5
PM
77322013-04-29 Pierre Muller <muller@sourceware.org>
7733
7734 * ./contrib/ari/gdb_ari.sh (editCase rule): Fix spelling error.
7735
9056882e
JB
77362013-04-29 Joel Brobecker <brobecker@adacore.com>
7737
7738 * dwarf2read.c (get_DW_AT_signature_type): Add ARI marker.
7739
7ee4732a
YQ
77402013-04-28 Yao Qi <yao@codesourcery.com>
7741
7742 * solib-dsbt.c (fetch_loadmap): Re-indent.
7743 (displacement_from_map, enable_break2): Likewise.
7744 (dsbt_relocate_section_addresses): Likewise.
7745
2260af53 77462013-04-26 Joel Brobecker <brobecker@adacore.com>
7747
7748 GDB 7.6 released.
7749
ff546935
TT
77502013-04-25 Andreas Kaufmann <Andreas.Kaufmann@synopsys.com>
7751
7752 PR corefiles/14983:
7753 * dwarf2read.c (process_full_comp_unit): Always create a static
7754 block.
7755
40fb6c5e
HZ
77562013-04-25 Hui Zhu <hui@codesourcery.com>
7757
7758 * breakpoint.c (build_target_command_list): Change loc->cond_bytecode
7759 to loc->cmd_bytecode.
7760
74e04d1c
DE
77612013-04-24 Doug Evans <dje@google.com>
7762
7763 * dwarf2read.c (setup_type_unit_groups): Fix comment.
7764
3cf62c1d
KS
77652013-04-22 Keith Seitz <keiths@redhat.com>
7766
7767 * tracepoint.c (trace_save): Call the writer's start method.
7768
bf9e4d0c
MB
77692013-04-24 Muhammad Bilal <mbilal@codesourcery.com>
7770
7771 PR gdb/10462
7772 * cli/cli-decode.c (lookup_command): Show an error if there is no space
7773 before argument.
7774
5d71132c
TT
77752013-04-23 Tom Tromey <tromey@redhat.com>
7776
7777 * common/filestuff.c: Check USE_WIN32API before including
7778 sys/socket.h.
7779 (HAVE_F_GETFD): New define.
7780 (mark_cloexec): Check HAVE_F_GETFD.
7781 (gdb_open_cloexec): Change 'mode' to unsigned long.
7782 (gdb_socketpair_cloexec): Check HAVE_SOCKETPAIR.
7783 (gdb_pipe_cloexec): Check HAVE_PIPE.
7784 * common/filestuff.h (gdb_open_cloexec): Change 'mode' to unsigned
7785 long.
7786
a11cfd87
HZ
77872013-04-23 Hui Zhu <hui@codesourcery.com>
7788
7789 PR gdb/15293
a11cfd87
HZ
7790 * breakpoint.c (bpstat_what): Add BPSTAT_WHAT_SINGLE to bp_dprintf.
7791
2d9442cc
HZ
77922013-04-23 Hui Zhu <hui@codesourcery.com>
7793
7794 PR gdb/15165
2d9442cc
HZ
7795 * breakpoint.c (dprintf_print_recreate): New.
7796 (save_breakpoints): Let it not save dprintf commands.
7797 (initialize_breakpoint_ops): Set dprintf_print_recreate.
7798
614c279d
TT
77992013-04-22 Tom Tromey <tromey@redhat.com>
7800
7801 PR gdb/7912:
7802 * Makefile.in (SFILES): Add filestuff.c
7803 (COMMON_OBS): Add filestuff.o.
7804 (filestuff.o): New target.
7805 * auto-load.c (auto_load_objfile_script_1): Use
7806 gdb_fopen_cloexec.
7807 * auxv.c (procfs_xfer_auxv): Use gdb_open_cloexec.
7808 * cli/cli-cmds.c (shell_escape): Call close_most_fds.
7809 * cli/cli-dump.c (fopen_with_cleanup): Use gdb_fopen_cloexec.
7810 * common/agent.c (gdb_connect_sync_socket): Use
7811 gdb_socket_cloexec.
7812 * common/filestuff.c: New file.
7813 * common/filestuff.h: New file.
7814 * common/linux-osdata.c (linux_common_core_of_thread)
7815 (command_from_pid, commandline_from_pid, print_source_lines)
7816 (linux_xfer_osdata_shm, linux_xfer_osdata_sem)
7817 (linux_xfer_osdata_msg, linux_xfer_osdata_modules): Use
7818 gdb_fopen_cloexec.
7819 * common/linux-procfs.c (linux_proc_get_int)
7820 (linux_proc_pid_has_state): Use gdb_fopen_cloexec.
7821 * config.in, configure: Rebuild.
7822 * configure.ac: Don't check for sys/socket.h. Check for
7823 fdwalk, pipe2.
7824 * corelow.c (core_open): Use gdb_open_cloexec.
7825 * dwarf2read.c (write_psymtabs_to_index): Use gdb_fopen_cloexec.
7826 * fork-child.c (fork_inferior): Call close_most_fds.
7827 * gdb_bfd.c (gdb_bfd_open): Use gdb_open_cloexec.
7828 * inf-child.c (inf_child_fileio_readlink): Use gdb_open_cloexec.
7829 * linux-nat.c (linux_nat_thread_name, linux_proc_pending_signals):
7830 Use gdb_fopen_cloexec.
7831 (linux_proc_xfer_partial, linux_proc_xfer_spu): Use
7832 gdb_open_cloexec.
7833 (linux_async_pipe): Use gdb_pipe_cloexec.
7834 * remote-fileio.c (remote_fileio_func_open): Use
7835 gdb_open_cloexec.
7836 * remote.c (remote_file_put, remote_file_get): Use
7837 gdb_fopen_cloexec.
7838 * ser-pipe.c (pipe_open): Use gdb_socketpair_cloexec,
7839 close_most_fds.
7840 * ser-tcp.c (net_open): Use gdb_socket_cloexec.
7841 * ser-unix.c (hardwire_open): Use gdb_open_cloexec.
7842 * solib.c (solib_find): Use gdb_open_cloexec.
7843 * source.c (openp, find_and_open_source): Use gdb_open_cloexec.
7844 * tracepoint.c (tfile_start): Use gdb_fopen_cloexec.
7845 (tfile_open): Use gdb_open_cloexec.
7846 * tui/tui-io.c (tui_initialize_io): Use gdb_pipe_cloexec.
7847 * ui-file.c (gdb_fopen): Use gdb_fopen_cloexec.
7848 * xml-support.c (xml_fetch_content_from_file): Use
7849 gdb_fopen_cloexec.
7850 * main.c (captured_main): Call notice_open_fds.
7851
5fda2332
EBM
78522013-04-22 Edjunior Machado <emachado@linux.vnet.ibm.com>
7853
7854 * remote-sim.c (dump_mem): Change the type of 'buf' parameter from
7855 'char *' to 'gdb_byte *'.
7856 (gdbsim_store_register): Change the type of 'tmp' from 'char' to
7857 'gdb_byte'.
7858
eb6c553b
YQ
78592013-04-22 Yao Qi <yao@codesourcery.com>
7860
7861 * infrun.c: Fix typo in comment.
7862
9991b207
SDJ
78632013-04-22 Andrew Haley <aph@redhat.com>
7864
7865 * arm-tdep.c (BranchDest): Cast result as "unsigned long",
7866 instead of "long".
7867
8b4833e3
YQ
78682013-04-20 Yao Qi <yao@codesourcery.com>
7869
7870 * ctf.c (ctf_fetch_registers): Change the type of 'regs' from
7871 'char *' to 'gdb_byte *'. Cast the return value of
7872 'bt_ctf_get_char_array' to 'gdb_byte *'.
7873
bd3f3b55
PA
78742013-04-19 Pedro Alves <palves@redhat.com>
7875
7876 * configure.ac (build_warnings): Replace -Wno-pointer-sign with
7877 -Wpointer-sign.
7878 * configure: Regenerate.
7879
c49e7f76
PA
78802013-04-19 Pedro Alves <palves@redhat.com>
7881
7882 * ser-tcp.c (net_read_prim): Cast second argument to recv to
7883 'void *'.
7884
12ff8552
PA
78852013-04-19 Pedro Alves <palves@redhat.com>
7886
7887 * monitor.c (monitor_write_memory, monitor_write_memory_bytes):
7888 Change type of 'myaddr' parameter to gdb_byte pointer.
7889 (monitor_write_memory_longlongs): Likewise. Cast 'myaddr' pointer
7890 to 'long long' pointer instead of to 'unsigned long long'.
7891 (monitor_write_memory_block, monitor_read_memory_single)
7892 (monitor_read_memory): Change type of 'myaddr' parameter to
7893 gdb_byte pointer.
7894
9c37696b
PA
78952013-04-19 Pedro Alves <palves@redhat.com>
7896
7897 * record.c (validate_history_size): Make parameter 'setting'
7898 unsigned.
7899
a398505b
PA
79002013-04-19 Pedro Alves <palves@redhat.com>
7901
7902 * ctf.c (ctf_write_uploaded_tsv, ctf_write_uploaded_tp): Add casts
7903 to 'gdb_byte *'.
7904
9f8afa72
PA
79052013-04-19 Pedro Alves <palves@redhat.com>
7906
7907 * cp-valprint.c (cp_print_class_member): Change type of 'fieldno'
7908 local to int.
7909
c714b426
PA
79102013-04-19 Pedro Alves <palves@redhat.com>
7911
7912 * ada-lang.c (print_it_exception): Add cast to gdb_byte *.
7913 * ada-tasks.c (read_fat_string_value): Likewise.
7914
507a579c
PA
79152013-04-19 Pedro Alves <palves@redhat.com>
7916
7917 * dwarf2-frame.c (execute_cfa_program): Make 'bytes_read' local
7918 unsigned. Pass 'tmp' to safe_read_uleb128 instead of the signed
7919 'offset', and adjust.
7920
f9d83a0b
PA
79212013-04-19 Pedro Alves <palves@redhat.com>
7922
7923 * dwarf2read.c (dwarf2_get_dwz_file): Add cast to const char *.
7924 (read_index_from_section): Add cast to 'char *'.
7925
745eb4fd
PA
79262013-04-19 Pedro Alves <palves@redhat.com>
7927
7928 * xcoffread.c (xcoff_initial_scan): Add cast to 'char *'.
7929
db5be46f
PA
79302013-04-19 Pedro Alves <palves@redhat.com>
7931
7932 * coff-pe-read.c (read_pe_exported_syms): Handle strings as char.
7933
0f928d68
PA
79342013-04-19 Pedro Alves <palves@redhat.com>
7935
7936 * record-full.c (record_full_get_bookmark): Change local 'ret'
7937 type to char * and add cast to gdb_byte *.
7938 (record_full_goto_bookmark): Handle 'bookmark' argument as a
7939 string.
7940 * reverse.c (goto_bookmark_command): Add casts to gdb_byte *.
7941
89f6d837
PA
79422013-04-19 Pedro Alves <palves@redhat.com>
7943
7944 * python/py-inferior.c (infpy_write_memory): Add cast to gdb_byte
7945 * python/py-prettyprint.c (print_string_repr): Change type of
7946 'output' local to char *. Add cast to gdb_byte * in
7947 LA_PRINT_STRING call.
7948 (print_children): Change type of 'output' local to char *.
7949 * python/py-value.c (valpy_string): Add cast to const char * in
7950 PyUnicode_Decode call.
7951
ce6ec7d8
PA
79522013-04-19 Pedro Alves <palves@redhat.com>
7953
7954 * remote-mips.c (mips_cksum): Rename 'data' parameter to 'datastr'
7955 and change its type to 'const char *'. Adjust.
7956 (mips_send_packet): Add cast to 'char *', and remove cast to
7957 'unsigned char *'.
7958 (mips_receive_packet): Remove cast to 'unsigned char *'.
7959 (mips_load_srec): Use bfd_byte.
7960 (pmon_makeb64, pmon_zeroset): Make 'chksum' parameter unsigned.
7961 (pmon_checkset): Make 'value' parameter unsigned.
7962
fda0389f
PA
79632013-04-19 Pedro Alves <palves@redhat.com>
7964
7965 * common/agent.c (agent_run_command): Add cast to gdb_byte *.
7966
bc20a4af
PA
79672013-04-19 Pedro Alves <palves@redhat.com>
7968
7969 * remote.c (remote_write_bytes_aux, compare_sections_command)
7970 (remote_read_qxfer)
7971 (remote_search_memory, remote_hostio_pwrite, remote_hostio_pread)
7972 (remote_hostio_readlink, remote_bfd_iovec_pread)
7973 (remote_set_trace_notes): Use gdb_byte when RSP buffer is used as
7974 binary buffer, and char when buffer is used as string.
7975 * tracepoint.c (encode_source_string, tfile_write_uploaded_tp)
7976 (trace_save, tfile_open, traceframe_walk_blocks)
7977 (tfile_fetch_registers): Likewise.
7978
c628b528
PA
79792013-04-19 Pedro Alves <palves@redhat.com>
7980
7981 * ser-base.c (ser_base_write): Change prototype -- take 'void *'
7982 buffer and size_t size. Adjust.
7983 * ser-base.h (ser_base_write): Adjust.
7984 * ser-go32.c (cnts): Change type to size_t.
7985 (dos_write): Change prototype -- take 'void *'
7986 buffer and size_t size. Adjust.
7987 (dos_info): Print elements of 'cnts' as unsigned long.
7988 * serial.c (serial_write): Likewise.
7989 * serial.h (serial_write): Adjust.
7990 (struct serial_ops) <write>: Change prototype -- take 'void *'
7991 buffer and size_t size. Adjust.
7992
51a5cd90
PA
79932013-04-19 Pedro Alves <palves@redhat.com>
7994
7995 * c-lang.c (evaluate_subexp_c): Cast result of obstack_base to
7996 gdb_byte *.
7997 * linux-tdep.c (linux_make_mappings_corefile_notes): Likewise.
7998
a9933661
PA
79992013-04-19 Pedro Alves <palves@redhat.com>
8000
8001 * alpha-tdep.c (alpha_extract_return_value): Use
8002 regcache_cooked_read_unsigned to read 'v0'.
8003
19afdd07
PA
80042013-04-19 Pedro Alves <palves@redhat.com>
8005
8006 * xtensa-tdep.c (execute_l32e, execute_s32e): Change type of
8007 parameters 'at', 'as' and 'offset' to uint32_t.
8008
96b32e50
PA
80092013-04-19 Pedro Alves <palves@redhat.com>
8010
8011 * aarch64-tdep.c (aarch64_analyze_prologue): Change type of local
8012 'is64' to signed 'int'.
8013
eb1bd1fb
PA
80142013-04-19 Pedro Alves <palves@redhat.com>
8015
8016 * s390-tdep.c (is_rs, is_rsy, is_rx, is_rxy): Change type of 'd2'
8017 parameter to int *.
8018
463920bf
PA
80192013-04-19 Pedro Alves <palves@redhat.com>
8020
8021 * ppc-linux-tdep.c (ppc_skip_trampoline_code): Change local
8022 'insnbuf' buffer type to unsigned int[].
8023
70242eb1
PA
80242013-04-19 Pedro Alves <palves@redhat.com>
8025
8026 * mips-tdep.c (mips_read_pc): Change local 'pc' type to LONGEST.
8027
9d1dd0e2
PA
80282013-04-19 Pedro Alves <palves@redhat.com>
8029
8030 * mep-tdep.c (mep_get_insn): Change 'insn' parameter type to
8031 unsigned long *.
8032
44096aee
PA
80332013-04-19 Pedro Alves <palves@redhat.com>
8034
8035 * alpha-tdep.c (heuristic_fence_post): Change type to int.
8036 (alpha_heuristic_proc_start): Adjust to check -1 instead of
8037 UINT_MAX.
8038 * mips-tdep.c (heuristic_fence_post): Change type to int.
8039 (heuristic_proc_start): Adjust to check -1 instead of UINT_MAX.
8040
e4286e57
PA
80412013-04-19 Pedro Alves <palves@redhat.com>
8042
8043 * cris-tdep.c (usr_cmd_cris_version): Make unsigned.
8044 (struct gdbarch_tdep) <cris_version>: Make unsigned.
8045 (cris_spec_reg_applicable, cris_gdbarch_init): Adjust locals.
8046
001f13d8
PA
80472013-04-19 Pedro Alves <palves@redhat.com>
8048
8049 * avr-tdep.c (avr_io_reg_read_command): New local 'bufstr'. Use
8050 it to get a string view of the byte buffer.
8051 * i386-cygwin-tdep.c (core_process_module_section): Change local 'buf'
8052 type to gdb_byte *. Adjust.
8053 * linux-tdep.c (linux_info_proc, linux_find_memory_regions_full):
8054 Change local to char *.
8055 * solib-darwin.c (find_program_interpreter): Change return type to
8056 char *. Adjust.
8057 (darwin_solib_get_all_image_info_addr_at_init): Adjust.
8058 * solib-dsbt.c (enable_break2): Change local 'buf' to char *.
8059 * solib-frv.c (enable_break2): Change local 'buf' to char *.
8060 * solib-spu.c (spu_current_sos): Add gdb_byte * cast.
8061 * solib-svr4.c (find_program_interpreter): Change return type to
8062 char *. Adjust.
8063 (enable_break): Change local 'interp_name' to char *.
8064 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
8065 * spu-tdep.c (spu_pseudo_register_read_spu): Add cast to 'char *'.
8066 (spu_pseudo_register_write_spu): Use char for string buffer.
8067 Adjust.
8068 (info_spu_event_command, info_spu_signal_command): Add casts to
8069 'char *'.
8070
948f8e3d
PA
80712013-04-19 Pedro Alves <palves@redhat.com>
8072
8073 * aarch64-tdep.c (aarch64_default_breakpoint): Change type to
8074 gdb_byte[].
8075 (aarch64_breakpoint_from_pc): Change return type to gdb_byte *.
8076 * ada-lang.c (ada_value_assign): Use gdb_byte.
8077 * alphanbsd-tdep.c (sigtramp_retcode): Change type to gdb_byte[].
8078 (alphanbsd_sigtramp_offset): Use gdb_byte.
8079 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint)
8080 (arm_linux_arm_be_breakpoint, eabi_linux_arm_le_breakpoint)
8081 (eabi_linux_arm_be_breakpoint, arm_linux_thumb_be_breakpoint)
8082 (arm_linux_thumb_le_breakpoint, arm_linux_thumb2_be_breakpoint)
8083 (arm_linux_thumb2_le_breakpoint): Change type to gdb_byte[].
8084 * arm-tdep.c (arm_stub_unwind_sniffer)
8085 (arm_displaced_init_closure): Use gdb_byte.
8086 (arm_default_arm_le_breakpoint, arm_default_arm_be_breakpoint)
8087 (arm_default_thumb_le_breakpoint)
8088 (arm_default_thumb_be_breakpoint): Change type to gdb_byte[].
8089 * arm-tdep.h (struct gdbarch_tdep) <arm_breakpoint,
8090 thumb_breakpoint, thumb2_breakpoint>: Change type to gdb_byte *.
8091 * arm-wince-tdep.c (arm_wince_le_breakpoint)
8092 (arm_wince_thumb_le_breakpoint): Change type to gdb_byte[].
8093 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint)
8094 (arm_nbsd_arm_be_breakpoint, arm_nbsd_thumb_le_breakpoint)
8095 (arm_nbsd_thumb_be_breakpoint): Change type to gdb_byte[].
8096 * armobsd-tdep.c (arm_obsd_thumb_le_breakpoint)
8097 (arm_obsd_thumb_be_breakpoint): Change type to gdb_byte[].
8098 * cris-tdep.c (push_stack_item, cris_push_dummy_call)
8099 (cris_store_return_value, cris_extract_return_value): Use
8100 gdb_byte.
8101 (constraint): Change type of parameter to char * from signed
8102 char*. Use gdb_byte.
8103 * dwarf2loc.c (read_pieced_value, write_pieced_value): Change type
8104 of local buffer to gdb_byte *.
8105 * dwarf2read.c (read_index_from_section): Use gdb_byte.
8106 (create_dwp_hash_table): Change type of locals to gdb_byte *.
8107 (add_address_entry): Change type of local buffer to gdb_byte[].
8108 * frv-tdep.c (frv_adjust_breakpoint_address, find_func_descr)
8109 (frv_push_dummy_call): Use gdb_byte.
8110 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code)
8111 (hppa_hpux_supply_ss_fpblock, hppa_hpux_supply_ss_wide)
8112 (hppa_hpux_supply_save_state): Use gdb_byte.
8113 * hppa-tdep.c (hppa32_push_dummy_call)
8114 (hppa64_convert_code_addr_to_fptr): Use gdb_byte.
8115 * ia64-tdep.c (extract_bit_field, replace_bit_field)
8116 (slotN_contents, replace_slotN_contents): Change type of parameter
8117 to gdb_byte *.
8118 (fetch_instruction, ia64_pseudo_register_write)
8119 (ia64_register_to_value, ia64_value_to_register)
8120 (ia64_extract_return_value, ia64_store_return_value)
8121 (ia64_push_dummy_call): Use gdb_byte.
8122 * m32c-tdep.c (m32c_return_value): Remove cast.
8123 * m68hc11-tdep.c (m68hc11_pseudo_register_write)
8124 (m68hc11_push_dummy_call, m68hc11_store_return_value): Use
8125 gdb_byte.
8126 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Use gdb_byte.
8127 * mn10300-tdep.c (mn10300_store_return_value)
8128 (mn10300_breakpoint_from_pc, mn10300_push_dummy_call): Use
8129 gdb_byte.
8130 * moxie-tdep.c (moxie_process_readu): Use gdb_byte.
8131 (moxie_process_record): Remove casts.
8132 * ppc-ravenscar-thread.c (supply_register_at_address)
8133 (ppc_ravenscar_generic_store_registers): Use gdb_byte.
8134 * ravenscar-thread.c (get_running_thread_id): Use gdb_byte.
8135 * remote-m32r-sdi.c (m32r_fetch_register): Use gdb_byte.
8136 * remote-mips.c (mips_xfer_memory): Use gdb_byte.
8137 * remote.c (compare_sections_command): Use gdb_byte.
8138 * score-tdep.c (score7_free_memblock): Change type of parameter to
8139 gdb_byte *.
8140 * sh-tdep.c (sh_justify_value_in_reg): Change return type to
8141 gdb_byte *. Use gdb_byte.
8142 (sh_push_dummy_call_fpu): Use gdb_byte.
8143 (sh_extract_return_value_nofpu, sh_extract_return_value_fpu)
8144 (sh_store_return_value_nofpu, sh_store_return_value_fpu)
8145 (sh_register_convert_to_virtual, sh_register_convert_to_raw):
8146 Change parameter type to 'gdb_byte *'. Use gdb_byte.
8147 (sh_pseudo_register_read, sh_pseudo_register_write): Use gdb_byte.
8148 * sh64-tdep.c (sh64_push_dummy_call): Use gdb_byte.
8149 (sh64_store_return_value, sh64_register_convert_to_virtual):
8150 Change parameter type to 'gdb_byte *'. Use gdb_byte.
8151 (sh64_pseudo_register_write): Use gdb_byte.
8152 * solib-darwin.c (darwin_current_sos): Add casts to 'gdb_byte *'.
8153 * solib-irix.c (fetch_lm_info): Likewise. Use gdb_byte for byte
8154 buffer.
8155 (irix_current_sos): Use gdb_byte.
8156 * solib-som.c (som_current_sos): Use gdb_byte.
8157 * sparc-ravenscar-thread.c (supply_register_at_address)
8158 (sparc_ravenscar_generic_store_registers): Use gdb_byte.
8159 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
8160 * spu-tdep.c (spu_get_overlay_table): Use gdb_byte.
8161 * tic6x-tdep.c (tic6x_breakpoint_from_pc): Change return type to
8162 'gdb_byte *'.
8163 * tic6x-tdep.h (struct gdbarch_tdep) <breakpoint>: Change type to
8164 'gdb_byte *'.
8165 * tracepoint.c (tfile_fetch_registers): Use gdb_byte.
8166 * xstormy16-tdep.c (xstormy16_extract_return_value)
8167 (xstormy16_store_return_value): Change parameter type to
8168 'gdb_byte *'. Adjust.
8169 (xstormy16_push_dummy_call): Use gdb_byte.
8170 * xtensa-tdep.c (xtensa_scan_prologue, call0_ret)
8171 (call0_analyze_prologue, execute_code): Use gdb_byte.
8172
433730c9
PA
81732013-04-19 Vladimir Kargov <kargov@gmail.com>
8174 Pedro Alves <palves@redhat.com>
8175
8176 * i387-tdep.c (i387_print_float_info): Use gdb_byte for pointer to
8177 value contents.
8178
ac9ec31b
DE
81792013-04-17 Doug Evans <dje@google.com>
8180
8181 * dwarf2read.c (struct signatured_type): New member type.
8182 (struct attribute): Replace member signatured_type with signature.
8183 (DW_SIGNATURE): Replaces DW_SIGNATURE_TYPE.
8184 (read_call_site_scope): Call follow_die_ref instead of
8185 follow_die_ref_or_sig.
8186 (read_structure_type): Rewrite handling of signatured types.
8187 (read_enumeration_type): Ditto.
8188 (read_attribute_value): Update.
8189 (build_error_marker_type): New function.
8190 (lookup_die_type): Add assert. Rewrite handling of signatured types.
8191 Don't call error for bad types, just build an error marker type.
8192 (dump_die_shallow): Update.
8193 (follow_die_sig_1): Renamed from follow_die_sig.
8194 Don't call error for bad types, instead return NULL.
8195 (follow_die_sig): New function.
8196 (get_signatured_type, get_DW_AT_signature_type): New functions.
8197
e546e8bb
YZ
81982013-04-17 Yufeng Zhang <yufeng.zhang@arm.com>
8199
8200 * aarch64-tdep.c (aarch64_write_pc): Removed.
543cdd95
JB
8201 (aarch64_gdbarch_init): Remove set_gdbarch_write_pc of the above
8202 function.
e546e8bb 8203
ab116149
YQ
82042013-04-17 Yao Qi <yao@codesourcery.com>
8205
8206 * top.c (print_gdb_configuration): Print configure-time
8207 parameter on using libbabeltrace or not.
8208
488a42b8
PA
82092013-04-16 Pedro Alves <palves@redhat.com>
8210
8211 * copyright.py (EXCLUDE_LIST): Add gdb/common/glibc_thread_db.h.
8212
f5fb825b
PA
82132013-04-16 Pedro Alves <palves@redhat.com>
8214
85d494ea 8215 * common/glibc_thread_db.h: Update from upstream glibc
f5fb825b
PA
8216 (git 568035b7874a099087b77f7bba3e36a1173787b0).
8217
e1154999
PA
82182013-04-16 Pedro Alves <palves@redhat.com>
8219
8220 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: Factor out to ...
8221 * common/glibc_thread_db.h: ... this new file ...
8222 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: ... and include it.
8223
e3b50a7f
PA
82242013-04-16 Will Newton <will.newton@gmail.com>
8225 Pedro Alves <palves@redhat.com>
8226
8227 PR build/11881
8228
8229 * common/gdb_thread_db.h (LIBTHREAD_DB_SO)
8230 (LIBTHREAD_DB_SEARCH_PATH): Move outside of #ifdef
8231 HAVE_THREAD_DB_H.
8232
1c2e4450
PA
82332013-04-16 Pedro Alves <palves@redhat.com>
8234 Eli Zaretskii <eliz@gnu.org>
8235
8236 * NEWS: Mention "set foo unlimited".
8237
4031ecc5
DE
82382013-04-15 Doug Evans <dje@google.com>
8239
19c3d4c9
DE
8240 * dwarf2read.c (struct dwo_file): Replace member "cus" with "cu".
8241 (struct create_dwo_cu_data): Renamed from create_dwo_info_table_data.
8242 (create_dwo_cu_reader): Renamed from
8243 create_dwo_debug_info_hash_table_reader.
8244 (create_dwo_cu): Renamed from create_dwo_debug_info_hash_table.
8245 Remove support for multiple CUs in a DWO file.
8246 (open_and_init_dwo_file, lookup_dwo_cutu): Update.
8247
4031ecc5
DE
8248 * dwarf2read.c (create_debug_types_hash_table): Use hex_string
8249 instead of phex.
8250 (lookup_dwo_unit, create_dwo_debug_info_hash_table_reader): Ditto.
8251 (create_dwo_in_dwp): Ditto.
8252
b340913d
TT
82532013-04-15 Tom Tromey <tromey@redhat.com>
8254
8255 * NEWS: Move recent entries into "since 7.6" section.
8256
cc16e6c9
TT
82572013-04-15 Tom Tromey <tromey@redhat.com>
8258
8259 PR c++/13588:
8260 * NEWS: Update.
8261 * break-catch-throw.c (struct exception_catchpoint)
8262 <exception_rx, pattern>: New fields.
8263 (fetch_probe_arguments, dtor_exception_catchpoint)
8264 (check_status_exception_catchpoint)
8265 (print_one_detail_exception_catchpoint): New functions.
8266 (handle_gnu_v3_exceptions): Add "except_rx" argument.
8267 Compile regular expression if needed.
8268 (extract_exception_regexp): New function.
8269 (catch_exception_command_1): Use extract_exception_regexp.
8270 (compute_exception): Use fetch_probe_arguments.
8271 (initialize_throw_catchpoint_ops): Set dtor, print_one_detail,
8272 and check_status fields.
8273 * cp-abi.c (cplus_typename_from_type_info): New function.
8274 * cp-abi.h (cplus_typename_from_type_info): Declare.
8275 (struct cp_abi_ops) <get_typename_from_type_info>: New field.
8276 * gdb_regex.h (compile_rx_or_error): Declare.
8277 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info): Update
8278 comment.
8279 (init_gnuv3_ops): Set get_type_from_type_info field.
8280 * probe.c (compile_rx_or_error): Move...
8281 * utils.c (compile_rx_or_error): ... here.
8282
72f1fe8a
TT
82832013-04-15 Tom Tromey <tromey@redhat.com>
8284
8285 PR c++/15176:
8286 * NEWS: Update.
8287 * break-catch-throw.c (compute_exception): New function.
8288 (exception_funcs): New global.
8289 (_initialize_break_catch_throw): Create $_exception.
8290 * cp-abi.c (cplus_type_from_type_info): New function.
8291 * cp-abi.h (cplus_type_from_type_info): Declare.
8292 (struct cp_abi_ops) <get_type_from_type_info>: New field.
8293 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info)
8294 (gnuv3_get_type_from_type_info): New functions.
8295 (init_gnuv3_ops): Set get_type_from_type_info ABI field.
8296
fc4746a2
TT
82972013-04-15 Tom Tromey <tromey@redhat.com>
8298
8299 * break-catch-throw.c (struct exception_names): New.
8300 (exception_functions): Change type.
8301 (re_set_exception_catchpoint): Look for SDT probes.
8302
15a73f56
TT
83032013-04-15 Tom Tromey <tromey@redhat.com>
8304
8305 PR c++/10119:
8306 * break-catch-throw.c (exception_functions): New global.
8307 (gnu_v3_exception_catchpoint_ops): Move earlier.
8308 (struct exception_catchpoint): New.
8309 (classify_exception_breakpoint): Rewrite.
8310 (re_set_exception_catchpoint): New function.
8311 (handle_gnu_v3_exceptions): Return void. Use init_catchpoint.
8312 Allocate a struct exception_catchpoint.
8313 (catch_exception_command_1): Update.
8314 (initialize_throw_catchpoint_ops): Set 're_set' method.
8315
916703c0
TT
83162013-04-15 Tom Tromey <tromey@redhat.com>
8317
8318 * Makefile.in (SFILES): Add break-catch-throw.c
8319 (COMMON_OBS): Add break-catch-throw.o.
8320 * break-catch-throw.c: New file.
8321 * breakpoint.c: Move exception-catching code to new file.
8322 (ep_parse_optional_if_clause): No longer static.
8323 * breakpoint.h (ep_parse_optional_if_clause): Declare.
8324
6e72ca20
TT
83252013-04-15 Tom Tromey <tromey@redhat.com>
8326
8327 PR c++/9065:
8328 * NEWS: Update.
8329 * breakpoint.c (watchpoint_exp_is_const): Add OP_TYPEID.
8330 * c-exp.y (TYPEID): New token.
8331 (exp): Add new TYPEID productions.
8332 (ident_tokens): Add "typeid".
8333 * cp-abi.c (cplus_typeid, cplus_typeid_type): New functions.
8334 * cp-abi.h (cplus_typeid, cplus_typeid_type): Declare.
8335 (struct cp_abi_ops) <get_typeid, get_typeid_type>: New fields.
8336 * eval.c (evaluate_subexp_standard) <OP_TYPEID>: New case.
8337 * expprint.c (dump_subexp_body_standard) <OP_TYPEID>: New
8338 case.
8339 * gnu-v3-abi.c (std_type_info_gdbarch_data): New global.
8340 (build_std_type_info_type, gnuv3_get_typeid_type)
8341 (gnuv3_get_typeid): New functions.
8342 (init_gnuv3_ops): Initialize std_type_info_gdbarch_data. Set
8343 new fields on ABI object.
8344 * parse.c (operator_length_standard) <OP_TYPEID>: New case.
8345 * std-operator.def (OP_TYPEID): New.
8346
715c6909
TT
83472013-04-15 Tom Tromey <tromey@redhat.com>
8348
8349 * elfread.c (elf_symtab_read): Install versioned symbol under
8350 unversioned name as well.
8351
8de20a37
TT
83522013-04-15 Tom Tromey <tromey@redhat.com>
8353
8354 PR c++/11990:
8355 * c-lang.c (cplus_language_defn): Use gdb_demangle.
8356 * c-typeprint.c (c_type_print_base): Use gdb_demangle.
8357 * cp-support.c (mangled_name_to_comp): Use gdb_demangle.
8358 (gdb_demangle): New function.
8359 * cp-support.h (gdb_demangle): Declare.
8360 * dwarf2read.c (dwarf2_physname, fixup_partial_die)
8361 (dwarf2_name): Use gdb_demangle.
8362 * gdbtypes.c (check_stub_method): Use gdb_demangle.
8363 * gnu-v3-abi.c (gnuv3_rtti_type): Strip @plt and version
8364 suffixes from name.
8365 (gnuv3_print_method_ptr): Use gdb_demangle.
8366 * jv-lang.c (java_demangle): Use gdb_demangle.
8367 * jv-typeprint.c (java_type_print_base): Use gdb_demangle.
8368 * language.c (unk_lang_demangle): Use gdb_demangle.
8369 * symtab.c (symbol_find_demangled_name)
8370 (demangle_for_lookup): Use gdb_demangle.
8371
591f19e8
TT
83722013-04-15 Tom Tromey <tromey@redhat.com>
8373
8374 PR c++/12824:
8375 * NEWS: Update.
8376 * breakpoint.c (enum exception_event_kind) <EX_EVENT_RETHROW>:
8377 New constant.
8378 (classify_exception_breakpoint): New function.
8379 (print_it_exception_catchpoint, print_one_exception_catchpoint)
8380 (print_mention_exception_catchpoint)
8381 (print_recreate_exception_catchpoint, handle_gnu_v3_exceptions)
8382 (catch_exception_command_1): Handle "rethrow" catchpoint.
8383 (catch_rethrow_command): New function.
8384 (_initialize_breakpoint): Add "catch rethrow" command.
8385
4d40cad2
PM
83862013-04-15 Pierre Muller <muller@sourceware.org>
8387
8388 * contrib/ari/gdb_ari.sh (write_pc rule): Do not consider
8389 set_gdbarch_write_pc as deprecated anymore.
8390
30bcb456
JB
83912013-04-15 Joel Brobecker <brobecker@adacore.com>
8392
8393 * spu-tdep.c (spu_write_pc): Add empty line after local variable
8394 declarations.
8395
da9160e4
YQ
83962013-04-13 Yao Qi <yao@codesourcery.com>
8397
8398 * ctf.c (_initialize_ctf): Include "completer.h".
8399 Call add_target_with_completer instead of add_target.
8400
39ed5604
JK
84012013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
8402
8403 Fix GDB regression related to PR binutils/14813.
8404 * jit.c (mem_bfd_iovec_close): Return 0 for success.
8405 * minidebug.c (lzma_close): Add return value comment.
8406 * remote.c (remote_bfd_iovec_close): Return 0 for success.
8407 * solib-spu.c (spu_bfd_iovec_close): Likewise.
8408 * spu-linux-nat.c (spu_bfd_iovec_close): Likewise.
8409
84102013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
49369217
JK
8411
8412 * config.in: Regenerate.
8413
d521ce57
TT
84142013-04-12 Tom Tromey <tromey@redhat.com>
8415
8416 * dwarf2-frame.c (struct comp_unit) <dwarf_frame_buffer>: Now
8417 const.
8418 * dwarf2read.c (struct dwarf2_section_info) <buffer>: Now const.
8419 (struct die_reader_specs) <buffer>: Likewise.
8420 (die_reader_func_ftype): Make 'info_ptr' const.
8421 (struct line_header) <include_dirs, statement_program_start,
8422 statement_program_end>: Now const.
8423 (struct file_entry) <name>: Likewise.
8424 (struct partial_die_info) <sibling>: Likewise.
8425 (struct dwarf_block) <data>: Likewise.
8426 (dwarf2_read_section): Remove cast.
8427 (dwarf2_get_section_info): Make 'bufp' const.
8428 (read_index_from_section): Constify.
8429 (dw2_get_file_names_reader): Make 'info_ptr' const.
8430 (dw2_get_primary_filename_reader): Likewise.
8431 (read_comp_unit_head): Make 'info_ptr' and return type const.
8432 (read_and_check_comp_unit_head, read_and_check_type_unit_head):
8433 Likewise.
8434 (read_abbrev_offset): Constify.
8435 (dwarf2_create_include_psymtab): Make 'name' const.
8436 (create_debug_types_hash_table): Update.
8437 (read_cutu_die_from_dwo): Make 'result_info_ptr' const.
8438 (init_cutu_and_read_dies, init_cutu_and_read_dies_no_follow):
8439 Constify.
8440 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader)
8441 (load_partial_comp_unit_reader): Make 'info_ptr' const.
8442 (read_comp_units_from_section): Constify.
8443 (peek_abbrev_code, peek_die_abbrev, skip_children, skip_one_die)
8444 (locate_pdi_sibling, load_full_comp_unit_reader): Make 'info_ptr'
8445 const.
8446 (dwarf2_compute_name, setup_type_unit_groups): Constify.
8447 (create_dwo_debug_info_hash_table): Make 'info_ptr' const.
8448 (create_dwp_hash_table, dwarf2_ranges_read)
8449 (dwarf2_record_block_ranges): Constify.
8450 (read_die_and_children, read_die_and_siblings_1)
8451 (read_die_and_siblings): Make 'info_ptr' and 'new_info_ptr'
8452 const.
8453 (read_full_die_1, read_full_die): Make 'info_ptr' const.
8454 (abbrev_table_read_table): Constify.
8455 (load_partial_dies): Make 'info_ptr' const.
8456 (read_partial_die, read_attribute_value, read_attribute): Make
8457 'info_ptr' and return type const.
8458 (read_address, read_initial_length)
8459 (read_checked_initial_length_and_offset, read_offset)
8460 (read_offset_1, read_n_bytes, read_direct_string): Make 'buf'
8461 const.
8462 (read_direct_string): Make 'buf' and return type const.
8463 (read_indirect_string_at_offset, read_indirect_string_from_dwz)
8464 (read_indirect_string): Make return type const.
8465 (read_unsigned_leb128, read_signed_leb128): Make 'buf' const.
8466 (read_addr_index_from_leb128, dwarf2_read_addr_index_reader): Make
8467 'info_ptr' const.
8468 (read_str_index): Make return type const.
8469 (add_include_dir): Make 'include_dir' const.
8470 (add_file_name): Make 'name' const.
8471 (dwarf_decode_line_header): Constify.
8472 (psymtab_include_file_name): Make return type const.
8473 (dwarf_decode_lines_1, dwarf_decode_lines): Constify.
8474 (dwarf2_start_subfile): Make 'filename' const.
8475 (dwarf2_const_value_attr): Make 'bytes' const.
8476 (read_signatured_type_reader): Make 'info_ptr' const.
8477 (decode_locdesc): Constify.
8478 (skip_form_bytes): Make 'bytes', 'buffer_end', and return type
8479 const.
8480 (skip_unknown_opcode): Make 'opcode_definitions', 'mac_ptr',
8481 'mac_end', and return type const.
8482 (dwarf_parse_macro_header): Make 'mac_ptr' and return type const.
8483 (dwarf_decode_macro_bytes): Make 'mac_ptr', 'mac_end', and return
8484 type const.
8485 (per_cu_header_read_in): Constify.
8486 * symfile.h (dwarf2_get_section_info): Update.
8487
d47a1bc1
TT
84882013-04-12 Tom Tromey <tromey@redhat.com>
8489
8490 * symtab.h (struct general_symbol_info) <value.bytes>: Make const.
8491
6eaaf48b
EZ
84922013-04-12 Eli Zaretskii <eliz@gnu.org>
8493
fc4c25bf 8494 * NEWS: Mention "show configuration", --configuration.
6eaaf48b
EZ
8495 * top.c (print_gdb_configuration): New function, displays the
8496 details about GDB configure-time parameters.
8497 (print_gdb_version): Mention "show configuration".
6eaaf48b
EZ
8498 * cli/cli-cmds.c (show_configuration): New function.
8499 (_initialize_cli_cmds): Add the "show configuration" command.
6eaaf48b
EZ
8500 * main.c (captured_main) <print_configuration>: New static var.
8501 <long_options>: Use it.
8502 If --configuration was given, call print_gdb_configuration.
8503
b292c783
JK
85042013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8505 Pedro Alves <palves@redhat.com>
8506
8507 * Makefile.in (HAVE_NATIVE_GCORE_TARGET): New.
8508 (generated_files): Add gcore.
8509 (install-only, uninstall): Add gcore if HAVE_NATIVE_GCORE_TARGET or
8510 HAVE_NATIVE_GCORE_HOST.
8511 (gcore): New.
8512 * NEWS (Changes since GDB 7.6): Mention newly installed gcore.
8513 * config/alpha/alpha-osf3.mh, config/i386/fbsd.mh,
8514 config/i386/fbsd64.mh, config/i386/i386gnu.mh, config/i386/i386sol2.mh,
8515 config/i386/sol2-64.mh, config/mips/irix5.mh, config/mips/irix6.mh,
8516 config/powerpc/fbsd.mh, config/sparc/fbsd.mh, config/sparc/sol2.mh:
8517 Add HAVE_NATIVE_GCORE_HOST.
8518 * configure: Regenerate.
8519 * configure.ac (HAVE_NATIVE_GCORE_TARGET): New, set it, AC_SUBST it.
8520 New AC_SUBST fir GDB_TRANSFORM_NAME and GCORE_TRANSFORM_NAME. New
8521 AC_CONFIG_FILES for gcore.
8522 * configure.tgt: Add gdb_have_gcore to the initial comment. Set
8523 gdb_have_gcore.
8524 * gdb_gcore.sh: Rename to ...
8525 * gcore.in: ... here. Remove gcore.sh comment. Use GDB_TRANSFORM_NAME
8526 and GCORE_TRANSFORM_NAME substitutions.
8527
c96b3c4f
JK
8528 Fix parsing tabs in ${gdb_target_obs}.
8529 * configure.tgt (gdb_have_gcore): Replace case with for and if.
8530
d6cb50a2
JK
85312013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8532
8533 * remote.c (unpush_and_perror): Add output message final dot.
8534
cf2cb5ec
YQ
85352013-04-11 Yao Qi <yao@codesourcery.com>
8536
8537 * tracepoint.c (tfile_interp_line): Fit parameters line and
8538 utpp in one line.
8539
07293be4
JB
85402013-04-10 Joel Brobecker <brobecker@adacore.com>
8541
8542 * solib.c (solib_map_sections): Remove code overwriting
8543 SO->SO_NAME with the bfd's filename.
8544
f81d1120
PA
85452013-04-10 Pedro Alves <palves@redhat.com>
8546
8547 * cli/cli-decode.c (integer_unlimited_completer): New function.
8548 (add_setshow_integer_cmd, add_setshow_uinteger_cmd)
8549 (add_setshow_zuinteger_unlimited_cmd): Install the "unlimited"
8550 completer.
8551 * cli/cli-setshow.c: Include "cli/cli-utils.h".
8552 (is_unlimited_literal): New function.
8553 (do_set_command): Handle literal "unlimited" arguments.
8554 * frame.c (_initialize_frame) <set backtrace limit>: Document
8555 "unlimited".
8556 * printcmd.c (_initialize_printcmd) <set print
8557 max-symbolic-offset>: Add help text.
8558 * record-full.c (_initialize_record_full) <set record full
8559 insn-number-max>: Likewise.
8560 * record.c (_initialize_record) <set record
8561 instruction-history-size, set record function-call-history-size>:
8562 Add help text.
8563 * ser-tcp.c (_initialize_ser_tcp) <set tcp connect-timeout>: Add
8564 help text.
8565 * tracepoint.c (_initialize_tracepoint) <set trace-buffer-size>:
8566 Likewise.
8567 * source.c (_initialize_source) <set listsize>: Add help text.
8568 * utils.c (initialize_utils) <set height, set width>: Likewise.
8569 <set pagination>: Mention "set height unlimited".
8570 * valprint.c (_initialize_valprint) <set print elements, set print
8571 repeats>: Document "unlimited".
8572
2f9d54cf
PA
85732013-04-10 Pedro Alves <palves@redhat.com>
8574
8575 * cli/cli-cmds.c (quit_command): Call query_if_trace_running
8576 instead of disconnect_tracing.
8577 * infcmd.c (detach_command, disconnect_command): Call
8578 query_if_trace_running. Adjust.
8579 * top.c: Include "tracepoint.h".
8580 (quit_target): Delete. Contents moved ...
8581 (quit_force): ... here. Wrap each stage of teardown in
8582 TRY_CATCH. Call disconnect_tracing before detaching.
8583
393fd4c3
YQ
85842013-04-10 Hui Zhu <hui@codesourcery.com>
8585 Yao Qi <yao@codesourcery.com>
8586
8587 * configure.ac: Check libbabeltrace is installed.
8588 * config.in: Regenerate.
8589 * configure: Regenerate.
8590 * Makefile.in (LIBBABELTRACE): New.
8591 (CLIBS): Add LIBBABELTRACE.
8592 * ctf.c: Include "exec.h".
8593 (CTF_EVENT_ID_STATUS, CTF_EVENT_ID_TSV_DEF): New macros.
8594 (CTF_EVENT_ID_TP_DEF, ctf_save_write_int32): New macros.
8595 (ctf_save_metadata_header): Define new type aliases in
8596 metadata.
8597 (ctf_write_header): Define event type "tsv_def" and "tp_def"
8598 in metadata. Start a new faked packet for trace status.
8599 (ctf_write_status): Write trace status to CTF.
8600 (ctf_write_uploaded_tsv): Write TSV to CTF.
8601 (ctf_write_uploaded_tp): Write tracepoint definition to CTF.
8602 (ctf_write_definition_end): End the faked packet.
8603
8604 (ctx, ctf_iter, trace_dirname): New.
8605 (start_pos): New variable.
8606 (ctf_destroy, ctf_open_dir, ctf_open): New.
8607 (SET_INT32_FIELD, SET_ARRAY_FIELD, SET_STRING_FIELD): New
8608 macros.
8609 (ctf_read_tsv, ctf_read_tp, ctf_close, ctf_files_info): New.
8610 (ctf_fetch_registers, ctf_xfer_partial): New.
8611 (ctf_get_trace_state_variable_value): New.
8612 (ctf_get_tpnum_from_frame_event): New.
8613 (ctf_get_traceframe_address): New.
8614 (ctf_trace_find, ctf_has_stack): New.
8615 (ctf_has_registers, ctf_traceframe_info, init_ctf_ops): New.
8616 (ctf_get_trace_status, ctf_read_status): New.
8617 (_initialize_ctf): New.
8618 * tracepoint.c (get_tracepoint_number): New
8619 (get_uploaded_tsv): Remove 'static'.
5f8e0b8f 8620 (struct traceframe_info, trace_regblock_size): Move it to ...
393fd4c3
YQ
8621 * tracepoint.h: ... here.
8622 (get_tracepoint_number): Declare it.
8623 (get_uploaded_tsv): Declare it.
8624
8625 * NEWS: Mention new configure option.
8626
5c2b4418
HZ
86272013-04-10 Pedro Alves <palves@redhat.com>
8628 Hui Zhu <hui@codesourcery.com>
8629
8630 * breakpoint.c (dprintf_re_set): New.
8631 (initialize_breakpoint_ops): Set dprintf_breakpoint_ops re_set
8632 to dprintf_re_set.
8633
a5c66735
JB
86342013-04-09 Joel Brobecker <brobecker@adacore.com>
8635
8636 * configure.tgt (gdb_target_obs) <powerpc-*-aix* | rs6000-*-*>:
8637 Remove solib-svr4.o from the list.
8638
9e77999c
JB
86392013-04-09 Joel Brobecker <brobecker@adacore.com>
8640
8641 * varobj.c (update_dynamic_varobj_children) [!HAVE_PYTHON]:
8642 Use gdb_assert_not_reached instead of invalid boolean expression.
8643
1927e618
PA
86442013-04-09 Pedro Alves <palves@redhat.com>
8645
8646 * remote.c (unpush_and_perror): New function.
8647 (readchar, remote_serial_write): Use it.
8648
10782d74
MM
86492013-04-09 Markus Metzger <markus.t.metzger@intel.com>
8650
8651 * NEWS: Mention new btrace RSP packets.
8652
4c8429ef
TT
86532013-04-08 Tom Tromey <tromey@redhat.com>
8654
8655 * symmisc.c (dump_msymbols): Cast fprintf_filtered argument to
8656 long.
8657
8625fc1b
TT
86582013-04-08 Tom Tromey <tromey@redhat.com>
8659
8660 * maint.c (print_bfd_section_info): Print the section index.
8661 * symmisc.c (dump_msymbols): Print the section index.
8662
e27d198c
TT
86632013-04-08 Tom Tromey <tromey@redhat.com>
8664
8665 PR symtab/8424:
8666 * blockframe.c (find_pc_partial_function_gnu_ifunc): Check
8667 SYMBOL_SECTION, not SYMBOL_OBJ_SECTION.
8668 * breakpoint.c (resolve_sal_pc): Update.
8669 * elfread.c (elf_gnu_ifunc_record_cache): Update.
8670 * findvar.c (struct minsym_lookup_data) <objfile>: New field.
8671 (minsym_lookup_iterator_cb): Use it.
8672 (default_read_var_value): Update.
8673 * hppa-hpux-tdep.c (hppa64_hpux_in_solib_call_trampoline):
8674 Update.
8675 * infcmd.c (jump_command): Update.
8676 * linespec.c (minsym_found): Update.
8677 * maint.c (maintenance_translate_address): Update.
8678 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Update.
8679 (prim_record_minimal_symbol_full): Don't set SYMBOL_OBJ_SECTION.
8680 * parse.c (write_exp_msymbol): Update.
8681 * printcmd.c (address_info): Update.
8682 * psymtab.c (find_pc_sect_psymbol): Update.
8683 (fixup_psymbol_section): Check SYMBOL_SECTION, not
8684 SYMBOL_OBJ_SECTION.
8685 (add_psymbol_to_bcache): Correctly initialize SYMBOL_SECTION.
8686 Don't initialize SYMBOL_OBJ_SECTION.
8687 * spu-tdep.c (spu_catch_start): Update.
8688 * stabsread.c (define_symbol): Don't set SYMBOL_SECTION.
8689 * symmisc.c (dump_msymbols, print_symbol): Update.
8690 * symtab.c (fixup_section): Don't set 'obj_section'. Change
8691 how fallback section is computed.
8692 (fixup_symbol_section): Update.
8693 (find_pc_sect_symtab, find_function_start_sal, skip_prologue_sal):
8694 Update.
8695 (allocate_symbol, initialize_symbol, allocate_template_symbol):
8696 Initialize SYMBOL_SECTION.
8697 * symtab.h (struct general_symbol_info) <section>: Update comment.
8698 <obj_section>: Remove.
8699 (SYMBOL_OBJ_SECTION): Add 'objfile' argument. Rewrite.
8700 (SYMBOL_OBJFILE): New macro.
8701
e6dc44a8
TT
87022013-04-08 Tom Tromey <tromey@redhat.com>
8703
8704 * coffread.c (record_minimal_symbol): Update.
8705 * dbxread.c (record_minimal_symbol): Update.
8706 * elfread.c (record_minimal_symbol): Update.
8707 * machoread.c (macho_symtab_add_minsym): Update.
8708 * mdebugread.c (record_minimal_symbol, parse_partial_symbols):
8709 Update.
8710 * minsyms.c (prim_record_minimal_symbol): Update.
8711 (prim_record_minimal_symbol_full): Remove 'bfd_section'
8712 argument.
8713 (prim_record_minimal_symbol_and_info): Likewise.
8714 * minsyms.h (prim_record_minimal_symbol_full)
8715 (prim_record_minimal_symbol_and_info): Update.
8716 * symtab.c (allocate_symbol, initialize_symbol)
8717 (allocate_template_symbol): Initialize SYMBOL_SECTION.
8718 * xcoffread.c (record_minimal_symbol, scan_xcoff_symtab):
8719 Update.
8720
36192a8d
TT
87212013-04-08 Tom Tromey <tromey@redhat.com>
8722
8723 PR symtab/8423:
8724 * solib-som.c (som_solib_section_offsets): Use BFD section
8725 indices. Set offsets for all sections.
8726 * somread.c (som_symtab_read): Compute BFD section for
8727 symbol. Use prim_record_minimal_symbol_and_info.
8728 (som_symfile_read): Fix comment.
8729 (struct find_section_offset_arg): New.
8730 (find_section_offset, set_section_index): New functions.
8731 (som_symfile_offsets): Use set_section_index to compute
8732 section indices.
8733
65cf3563
TT
87342013-04-08 Tom Tromey <tromey@redhat.com>
8735
8736 * coffread.c (cs_to_section): Use gdb_bfd_section_index.
8737 * elfread.c (record_minimal_symbol, elf_symtab_read): Use
8738 gdb_bfd_section_index.
8739 * gdb_bfd.c (gdb_bfd_section_index, gdb_bfd_count_sections):
8740 New functions.
8741 * gdb_bfd.h (gdb_bfd_section_index, gdb_bfd_count_sections):
8742 Declare.
8743 * machoread.c (macho_symtab_add_minsym, macho_symfile_offsets):
8744 Update.
8745 * objfiles.c (add_to_objfile_sections_full): New function.
8746 (add_to_objfile_sections): Use it.
8747 (build_section_table): Rewrite.
8748 (objfile_relocate1): Use gdb_bfd_section_index. Update.
8749 * objfiles.h (obj_section_offset): Use gdb_bfd_section_index.
8750 (struct objfile) <sections>: Update comment.
8751 (ALL_OBJFILE_OSECTIONS): Skip sections where the_bfd_section
8752 is NULL.
8753 (ALL_OBJSECTIONS): Use it.
8754 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
8755 * solib-frv.c (frv_relocate_main_executable): Update.
8756 * solib-target.c (solib_target_relocate_section_addresses):
8757 Use gdb_bfd_section_index.
8758 * symfile.c (build_section_addr_info_from_section_table):
8759 Use gdb_bfd_section_index.
8760 (build_section_addr_info_from_bfd, place_section): Likewise.
8761 * symtab.c (fixup_section): Update.
8762 * xcoffread.c (find_targ_sec): Use gdb_bfd_section_index.
8763
7cbd4a93
TT
87642013-04-08 Tom Tromey <tromey@redhat.com>
8765
8766 * minsyms.h (struct bound_minimal_symbol): New.
8767 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
8768 Remove objfile argument.
8769 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
8770 Return bound_minimal_symbol.
8771 * minsyms.c (lookup_minimal_symbol_by_pc_1)
8772 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
8773 Return bound_minimal_symbol.
8774 (in_gnu_ifunc_stub): Update.
8775 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
8776 Remove 'objfile_p' argument.
8777 (lookup_solib_trampoline_symbol_by_pc): Update.
8778 * ada-tasks.c, amd64-windows-tdep.c, arm-tdep.c,
8779 arm-wince-tdep.c, block.c, blockframe.c, breakpoint.c, btrace.c,
8780 c-valprint.c, dwarf2loc.c, elfread.c, frame.c, frv-tdep.c,
8781 glibc-tdep.c, gnu-v2-abi.c, gnu-v3-abi.c, hppa-hpux-tdep.c,
8782 i386-tdep.c, ia64-tdep.c, infcall.c, infcmd.c, jit.c,
8783 linux-fork.c, m32c-tdep.c, m68hc11-tdep.c, maint.c,
8784 mips-tdep.c, p-valprint.c, parse.c, ppc-linux-tdep.c,
8785 ppc-sysv-tdep.c, printcmd.c, rs6000-tdep.c, sh64-tdep.c,
8786 stack.c, symtab.c, tui/tui-disasm.c: Update.
8787
f85f34ed
TT
87882013-04-08 Tom Tromey <tromey@redhat.com>
8789
8790 * ada-lang.c (ada_decode_symbol): Check and set 'ada_mangled'.
8791 Use symbol's obstack, not an objfile.
8792 * coffread.c (process_coff_symbol): Update.
8793 * dwarf2read.c (fixup_go_packaging, new_symbol_full): Update.
8794 * jv-lang.c (add_class_symbol): Update.
8795 * mdebugread.c (new_symbol): Update.
8796 * minsyms.c (prim_record_minimal_symbol_full)
8797 (terminate_minimal_symbol_table): Update.
8798 * psymtab.c (add_psymbol_to_bcache): Clear entire symbol. Update.
8799 * stabsread.c (define_symbol, read_enum_type): Update.
8800 * symtab.c (symbol_set_demangled_name, symbol_get_demangled_name):
8801 Handle Ada specially.
8802 (symbol_set_language): Add 'obstack' argument.
8803 (symbol_set_names): Update.
8804 (symbol_natural_name, symbol_demangled_name): Always use
8805 ada_decode_symbol.
8806 * symtab.h (struct general_symbol_info)
8807 <language_specific::obstack>: New field.
8808 <ada_mangled>: New field.
8809 (SYMBOL_SET_LANGUAGE): Add 'obstack' argument.
8810 (symbol_set_language): Update.
8811
ccde22c0
TT
88122013-04-08 Tom Tromey <tromey@redhat.com>
8813
8814 * symtab.c (symbol_init_cplus_specific, symbol_set_demangled_name):
8815 Take an obstack, not an objfile.
8816 (symbol_set_names): Update.
8817 * symtab.h (symbol_set_demangled_name): Update.
8818
e623cf5d
TT
88192013-04-08 Tom Tromey <tromey@redhat.com>
8820
8821 * coffread.c (process_coff_symbol, coff_read_enum_type): Call
8822 allocate_symbol.
8823 * dwarf2read.c (fixup_go_packaging): Call allocate_symbol.
8824 (read_func_scope): Call allocate_template_symbol.
8825 (new_symbol_full): Call allocate_symbol.
8826 * jit.c (finalize_symtab): Call allocate_symbol.
8827 * jv-lang.c (add_class_symbol): Call allocate_symbol.
8828 * mdebugread.c (parse_symbol, new_block): Call allocate_symbol.
8829 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
8830 (common_block_end): Call allocate_symbol.
8831 * symtab.c (allocate_symbol, initialize_symbol)
8832 (allocate_template_symbol): New functions.
8833 * symtab.c (allocate_symbol, initialize_symbol)
8834 (allocate_template_symbol): Declare.
8835 * xcoffread.c (process_xcoff_symbol): Call initialize_symbol.
8836
f6de8ec2
PA
88372013-04-08 Pedro Alves <palves@redhat.com>
8838 Keith Seitz <keiths@redhat.com>
8839
8840 * breakpoint.c (create_breakpoint): Rename
8841 "parse_condition_and_thread" parameter to "parse_arg". Update
8842 describing comment. If !PARSE_ARG, then error out if ARG is not
8843 the empty string after extracting the location.
8844 * breakpoint.h (create_breakpoint): Rename
8845 "parse_condition_and_thread" parameter to "parse_arg".
8846
f65ce5fb
AR
88472013-04-08 Aleksandar Ristovski <aristovski@qnx.com
8848
8849 * solib-svr4.c (lm_addr_check): Add const qualifier to 'so' arg.
8850
cc5925ad
YQ
88512013-04-07 Yao Qi <yao@codesourcery.com>
8852
8853 * remote.c (remote_trace_find): Change type of parameters 'addr1'
8854 and 'addr2' to CORE_ADDR.
8855 * target.c (update_current_target): Update.
8856 * target.h (struct target_ops) <to_trace_find>: Change parameter
8857 type to CORE_ADDR.
8858 * tracepoint.c (tfind_1): Change type of parameters 'addr1' and
8859 'addr2' to CORE_ADDR.
8860 (tfile_trace_find): Likewise.
8861 (tfile_get_traceframe_address): Change return type to CORE_ADDR.
8862 Change local variable 'addr' to type CORE_ADDR.
8863 * tracepoint.h (tfind_1): Update declaration.
8864
d9ac0664
EZ
88652013-04-06 Eli Zaretskii <eliz@gnu.org>
8866
8867 * windows-nat.c (windows_get_absolute_argv0): Move from here...
8868 * mingw-hdep.c (windows_get_absolute_argv0): ...to here.
8869 Include main.h.
8870
8871 * windows-nat.h (windows_get_absolute_argv0): Move prototype from
8872 here...
8873 * main.h (windows_get_absolute_argv0): ...to here.
8874
02142a6c
DE
88752013-04-05 Doug Evans <dje@google.com>
8876
8877 * dwarf2read.c (struct dwarf2_per_objfile): Tweak comment.
8878 (read_cutu_die_from_dwo): Add comments.
8879 (read_structure_type): Update comment.
8880 (read_enumeration_type, read_namespace_type): Update comment.
8881 (read_die_type, get_die_type_at_offset, get_die_type): Update comment.
8882
43662968
JK
88832013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
8884
8885 Convert man pages to texinfo, new gdbinit.5 texinfo page.
8886 * Makefile.in (gdb.z): Remove.
8887 (install-only): Remove $(man1dir) and gdb.1 installation.
8888 * gdb.1: Remove.
8889
9ead1b84
JK
88902013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
8891
8892 Fix compatibility with Linux kernel 3.8.3.
8893 * linux-tdep.c (linux_find_memory_regions_full): Move variable number
8894 to more inner block. Remove parsing of NUMBER from outer block.
8895 Parse NUMBER only if KEYWORD has been identified.
8896
d1794952
JK
88972013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
8898
8899 Fix variable name shadowing.
8900 * linux-tdep.c (linux_find_memory_regions_full): Rename outer variable
8901 filename to mapsfilename and update its uses.
8902
9025569e
EZ
89032013-04-05 Eli Zaretskii <eliz@gnu.org>
8904
8905 * Makefile.in (TAGS): Avoid warning from etags when $GDB_NM_FILE is
8906 empty. See http://sourceware.org/ml/gdb-patches/2012-08/msg00504.html
8907 and http://sourceware.org/ml/gdb-patches/2013-04/msg00055.html for
8908 details of the problem.
8909
c9a6ce02
PA
89102013-04-04 Pedro Alves <palves@redhat.com>
8911 Hui Zhu <hui@codesourcery.com>
8912
8913 * breakpoint.c (validate_commands_for_breakpoint): If validating a
8914 tracepoint, reset its STEP_COUNT and call validate_actionline.
8915
5ff888ce
DE
89162013-04-03 Doug Evans <dje@google.com>
8917
bf6af496
DE
8918 * dwarf2read.c (read_die_and_siblings_1): Renamed from
8919 read_die_and_siblings.
8920 (read_die_and_siblings): New function.
8921 (read_cutu_die_from_dwo): Dump die if requested.
8922 (read_die_and_children): Call read_full_die_1 and
8923 read_die_and_siblings_1.
8924 (read_full_die): Dump die if requested.
8925
8926 * dwarf2read.c (read_comp_units_from_section): Add debugging printf.
8927
0ac5b59e
DE
8928 * dwarf2read.c (struct dwo_file): New member comp_dir.
8929 Rename member name to dwo_name. All uses updated.
8930 (hash_dwo_file): Include comp_dir in computation.
8931 (eq_dwo_file): Ditto.
8932 (lookup_dwo_file_slot): New arg comp_dir. All callers updated.
8933 (create_dwo_in_dwp, lookup_dwo_in_dwp, open_and_init_dwo_file): Ditto.
8934
5ff888ce
DE
8935 * psymtab.c (read_psymtabs_with_fullname): Don't call
8936 psymtab_to_fullname if the basenames are different.
8937
ec83d211
JK
89382013-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
8939
8940 * NEWS (Changes in GDB 7.6): Update the data-disassemble for "fullname".
8941 New entry about "fullname" presence.
8942
4f4352f7
PA
89432013-04-03 Pedro Alves <palves@redhat.com>
8944
8945 * NEWS: Mention x86_64/Cygwin as new native configuration.
8946
3d1d5ea3
DE
89472013-04-02 Doug Evans <dje@google.com>
8948
8949 * dwarf2read.c (read_structure_type): Fix typo in comment.
8950
be9a8770
PA
89512013-04-02 Pedro Alves <palves@redhat.com>
8952
8953 * NEWS: Mention "set/show debug aarch64", "set/show debug
8954 coff-pe-read" and "set/show debug mach-o".
8955
a46c1e42
PA
89562013-04-02 Pedro Alves <palves@redhat.com>
8957
8958 * NEWS: Mention "set/show remote trace-buffer-size-packet".
8959
3ad18b19
EZ
89602013-04-02 Eli Zaretskii <eliz@gnu.org>
8961
8962 * Makefile.in (HFILES_NO_SRCDIR): Remove call-cmds.h.
8963 gdb_string.h is now in common/.
8964
e9f1758d
PA
89652013-04-02 Pedro Alves <palves@redhat.com>
8966
8967 * NEWS: Move "set debug notification" and "set trace-buffer-size"
8968 under "New options".
8969
049dc89b
JK
89702013-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8971
8972 Revert this patch:
8973 PR gdb/15275
8974 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
8975
c33e31fd
PA
89762013-04-02 Pedro Alves <palves@redhat.com>
8977
8978 PR gdb/15275
8979
8980 * remote.c (send_interrupt_sequence): Use remote_serial_write.
8981 (remote_serial_write): New function.
8982 (putpkt_binary, getpkt_or_notif_sane_1): Use remote_serial_write.
8983
ea5f3910
JW
89842013-04-01 Jiong Wang <jiwang@tilera.com>
8985
8986 * NEWS: Mention TILE-Gx in "New native configurations" and
f5aee5ee 8987 "New targets" sections.
ea5f3910 8988
5c6fa7ab
DE
89892013-04-01 Doug Evans <dje@google.com>
8990
c0f78cd4
DE
8991 * dwarf2read.c (lookup_signatured_type_at_offset): Delete.
8992 (process_enumeration_scope): Simplify.
8993
0186c6a7
DE
8994 * dwarf2read.c (struct dwarf2_per_cu_data): Move member
8995 type_unit_group ...
8996 (struct signatured_type): ... to here.
8997 (sig_type_ptr): New typedef.
8998 (type_unit_group): Delete member 't.first_cu'. Move member 'tus'
8999 out of union 't'. All uses updated.
9000 (dw2_get_file_names_reader): Assert not called for a type unit.
9001 (dw2_get_file_names): Assert not called for a type unit or type
9002 unit group.
9003 (build_type_psymtabs_reader): Assert called for a type unit.
9004 (build_type_psymtab_dependencies): Assert called for a type unit group.
9005
5c6fa7ab
DE
9006 * dwarf2read.c (free_dwo_file): Add comment.
9007 (dwarf2_per_objfile_free): Unref dwp bfd.
9008
b3c0ad67 90092013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
cebca8c1
AR
9010
9011 * coff-pe-read.c (add_pe_exported_sym): Remove unused 'dll_name_len'.
9012 (add_pe_forwarded_sym): Remove unused 'section', 'dll_name_len'.
9013 (read_pe_exported_syms): Remove unused 'exportix'.
9014 (pe_text_section_offset): Remove unused 'opthdr_ofs', 'num_entries',
9015 'export_rva', 'export_size', 'expptr', 'exp_funcbase', 'expdata',
9016 'erva', 'name_rvas', 'ordinals', 'nexp', 'ordbase', 'dll_name'.
9017
e2df1547
AR
90182013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
9019
9020 * breakpoint.c (parse_cond_to_aexpr): Remove unused 'old_chain'.
9021 (print_it_watchpoint): Remove unused 'bl'.
9022 (say_where): Remove unused 'uiout'.
9023 (bpstat_remove_breakpoint_callback): Remove unused 'uiout'.
9024 (bkpt_breakpoint_hit): Remove unused 'b'.
9025 (internal_bkpt_print_it): Remove unused 'uiout'.
9026 * buildsym.c (augment_type_symtab): Remove unused 'i'.
9027
d81e75c0
TD
90282013-03-31 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
9029
9030 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_float): New function.
9031 (ppc64_sysv_abi_push_dummy_call): Handle complex arguments.
9032
5a8b3f62
DE
90332013-03-29 Doug Evans <dje@google.com>
9034
ab5088bf
DE
9035 * dwarf2read.c (open_dwo_file): Renamed from open_dwop_file.
9036 Delete arg is_dwp. All callers updated.
9037 (open_dwp_file): New function.
9038 (open_and_init_dwp_file): Call it.
9039 (get_dwp_file): New function.
9040 (lookup_dwo_cutu): Call it.
9041
a8ad1e57
DE
9042 * dwarf2read.c (open_and_init_dwp_file): Remove incorrect, and
9043 unnecessary, cleanup.
9044
6296d8c1
DE
9045 * dwarf2read.c (lookup_dwo_cutu): Improve complaint text.
9046
b0c7bfa9
DE
9047 * dwarf2read.c (read_cutu_die_from_dwo): New function.
9048 (lookup_dwo_unit): New function.
9049 (init_cutu_and_read_dies): Move DWO handling to new functions.
9050
c88ee1f0
DE
9051 * dwarf2read.c (struct signatured_type): Tweak comment.
9052 (struct dwo_unit): Tweak comment.
9053 (create_debug_types_hash_table): Tweak comment. Reformat long line.
9054 (create_dwo_debug_info_hash_table): Tweak comment.
9055 (dwarf2_per_cu_offset_and_type): Tweak comment.
9056
5a8b3f62
DE
9057 * dwarf2read.c (lookup_signatured_type): Remove complaint about
9058 missing .debug_types section.
9059
9852c492
YQ
90602013-03-29 Yao Qi <yao@codesourcery.com>
9061
9062 * corelow.c: Include "completer.h".
9063 (_initialize_corelow): Call add_target_with_completer with
9064 argument 'filename_completer'.
9065 * tracepoint.c: Likewise.
9066 * exec.c (_initialize_exec): Likewise.
9067 * target.c (add_target): Rename to ...
9068 (add_target_with_completer): ... this. Call set_cmd_completer
9069 if parameter completer is not NULL.
9070 (add_target): New.
9071 * target.h: Include "command.h".
9072 (add_target_with_completer): Declare it.
9073
af312be7
JB
90742013-03-28 Joel Brobecker <brobecker@adacore.com>
9075
9076 * coffread.c (is_import_fixup_symbol): New function.
9077 (record_minimal_symbol): Use is_import_fixup_symbol to
9078 detect import fixup symbols, and discard them.
9079
8a0459fd
DE
90802013-03-28 Doug Evans <dje@google.com>
9081
0349ea22
DE
9082 * dwarf2read.c (create_debug_types_hash_table): Don't allocate the
9083 types hash table until we know we need it.
9084
f652bce2
DE
9085 * dwarf2read.c (create_addrmap_from_index): Complain about bad CU
9086 index numbers.
9087
e4a48d9d
DE
9088 * dwarf2read.c (dw2_get_file_names): Delete arg "objfile".
9089 All callers updated.
9090 (dw2_print_stats): Print #read CUs too.
9091 (dump_die_shallow): Print signatured types better.
9092
8a0459fd
DE
9093 * dwarf2read.c (struct dwarf2_per_cu_data): Rename member
9094 info_or_types_section to section. All uses updated.
9095 (struct dwo_unit): Ditto.
9096
bd3eecc3
PA
90972013-03-28 Pedro Alves <palves@redhat.com>
9098
9099 * NEWS (New options): New section.
9100 (New options): Mention set/show remote trace-status-packet.
9101 * remote.c (PACKET_qTStatus): New enumeration value.
9102 (remote_get_trace_status): Skip sending qTStatus if the packet is
9103 disabled. Use packet_ok.
9104 (_initialize_remote): Register a configuration command for
9105 qTStatus packet.
9106
41245087
DE
91072013-03-28 Doug Evans <dje@google.com>
9108
7edbb660
DE
9109 * symfile.c (find_separate_debug_file): Add comment.
9110 (terminate_after_last_dir_separator): Tweak comment.
9111
0018ea6f
DE
9112 * dwarf2read.c (create_partial_symtab): Add forward decl.
9113 (create_partial_symtab): Move to be closer to other psymtab functions.
9114 (process_psymtab_comp_unit_reader, process_psymtab_comp_unit): Ditto.
9115
ca69b9e6
DE
9116 * dwarf2read.c (dwarf2_physname): Move declaration to better spot.
9117 (compute_symtab_includes): Remove unnecessary forward declaration.
9118 (die_needs_namespace): Add comment marking group of functions for
9119 dwarf2 name computation.
9120
a9375afe
DE
9121 * typeprint.c (_initialize_typeprint): Improve type help text.
9122
41245087
DE
9123 * python/python.c (finish_python_initialization): Provide suggestion
9124 for how to tell gdb to find its python files.
9125
7f7cc265
PA
91262013-03-28 Pedro Alves <palves@redhat.com>
9127
9128 PR gdb/15294
9129
9130 * source.c (_initialize_source): Change back "set listsize" to an
9131 integer command.
9132
ec21308c
JK
91332013-03-27 Gareth McMullin <gareth@blacksphere.co.nz>
9134
9135 PR gdb/15275
9136 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
9137
840a9a1f
PA
91382013-03-27 Pedro Alves <palves@redhat.com>
9139
9140 * top.c (history_size): Rename to ...
9141 (history_size_setshow_var): ... this. Add comment.
9142 (show_commands): Use readline's 'history_length' instead of
9143 computing the history length by calling history_get in a loop.
9144 (set_history_size_command): Error out for sizes over INT_MAX.
9145 Restore previous history size on invalid size.
9146 (init_history): If HISTSIZE is negative, leave the history size as
9147 zero. Add comments.
9148 (init_main): Adjust.
9149
826ecc4d
PA
91502013-03-27 Pedro Alves <palves@redhat.com>
9151
9152 * coff-pe-read.c (_initialize_coff_pe_read): Rename "set debug
9153 coff_pe_read" command to "set debug coff-pe-read".
9154
0ccfeeae
MM
91552013-03-27 Markus Metzger <markus.t.metzger@intel.com>
9156
9157 * record.c (command_size_to_target_size): Fix size comparison.
9158 Change parameter type from pointer to integer to integer.
9159 Update all users.
9160
40653b35
PM
91612013-03-27 Pierre Muller <muller@sourceware.org>
9162
9163 * windows-nat.c (handle_output_debug_string): Avoid typecast
9164 from integer of different size warning.
9165
c62fa0e2
JB
91662013-03-26 Joel Brobecker <brobecker@adacore.com>
9167
9168 * windows-nat.c (handle_output_debug_string): Add empty line
9169 after local block variable definition.
9170
2c619be2
PA
91712013-03-26 Pedro Alves <palves@redhat.com>
9172
9173 * ser-tcp.c (wait_for_connect): Make 'polls' parameter unsigned.
9174 (net_open): Make 'polls' local unsigned.
9175
1b493192
PA
91762013-03-26 Pedro Alves <palves@redhat.com>
9177
9178 * remote.c (_initialize_remote): Make "set remoteaddresssize"
9179 a zuinteger command instead of uinteger.
9180
7ee70bf5
PA
91812013-03-26 Pedro Alves <palves@redhat.com>
9182
9183 * record-full.c (record_full_insn_num): Make it unsigned.
9184 (record_full_check_insn_num, record_full_message)
9185 (record_full_registers_change, record_full_xfer_partial): Remove
9186 record_full_insn_max_num check (it's always != 0).
9187 (record_full_info, record_full_restore): Use %u as format string.
9188 (): Use %u as format string.
9189 (set_record_full_insn_max_num): Remove record_full_insn_max_num
9190 check (it's always != 0).
9191
dfd1f9bb
PA
91922013-03-26 Pedro Alves <palves@redhat.com>
9193
9194 * dcache.c (_initialize_dcache): Make the "set dcache line-size"
9195 and "set dcache size" commands zuinteger instead of uinteger.
9196
addb4faf
PA
91972013-03-26 Pedro Alves <palves@redhat.com>
9198
9199 * cris-tdep.c (_initialize_cris_tdep): Make the "set cris-version"
9200 command zuinteger instead of uinteger.
9201
b75bf488
PA
92022013-03-26 Pedro Alves <palves@redhat.com>
9203
9204 * coff-pe-read.c (_initialize_coff_pe_read): Make the command
9205 zuinteger instead of uinteger.
9206
42c634cb
PA
92072013-03-26 Pedro Alves <palves@redhat.com>
9208
9209 * record.c (record_insn_history_size_setshow_var)
9210 (record_call_history_size_setshow_var): New globals.
9211 (command_size_to_target_size): New function.
9212 (cmd_record_insn_history, cmd_record_call_history): Use
9213 command_size_to_target_size instead of cast.
9214 (validate_history_size, set_record_insn_history_size)
9215 (set_record_call_history_size): New functions.
9216 (_initialize_record): Install set_record_insn_history_size and
9217 set_record_call_history_size as "set" hooks of "set record
9218 instruction-history-size" and "set record
9219 function-call-history-size".
9220
1fb2e2b5
PA
92212013-03-26 Pedro Alves <palves@redhat.com>
9222
9223 * top.c (gdb_rl_operate_and_get_next): Replace max_input_history
9224 use with history_max_entries use. Remove FIXME note.
9225
99c819ee
MM
92262013-03-26 Markus Metzger <markus.t.metzger@intel.com>
9227
9228 * record-btrace.c (record_btrace_close): Call
9229 record_btrace_auto_disable.
9230
9f9e404c
JB
92312013-03-25 Joel Brobecker <brobecker@adacore.com>
9232
9233 * rs6000-nat.c (fixup_breakpoints): Delete declaration.
9234
ebcdfe33
DE
92352013-03-25 Doug Evans <dje@google.com>
9236
9237 * contrib/cc-with-tweaks.sh: Check exit code of dwp.
9238
24955f63
TT
92392013-03-25 Tom Tromey <tromey@redhat.com>
9240
9241 PR symtab/11462:
9242 * c-exp.y (exp): Add new productions for destructors after '.' and
9243 '->'.
9244 (write_destructor_name): New function.
9245
fce632b6
TT
92462013-03-25 Tom Tromey <tromey@redhat.com>
9247
9248 PR c++/9197:
9249 * opencl-lang.c (evaluate_subexp_opencl) <STRUCTOP_STRUCT>: Use
9250 value_struct_elt, not lookup_struct_elt_type.
9251 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
9252 STRUCTOP_PTR>: Use value_struct_elt, not lookup_struct_elt_type.
9253 * expression.h (EVAL_AVOID_SIDE_EFFECTS): Update comment.
9254
a4341769
YQ
92552013-03-25 Yao Qi <yao@codesourcery.com>
9256
9257 * ctf.c [USE_WIN32API]: Undef 'mkdir' and use 'mkdir'
9258 instead of '_mkdir'.
9259
b5981e5a
EZ
92602013-03-23 Eli Zaretskii <eliz@gnu.org>
9261
9262 * windows-nat.c (windows_get_absolute_argv0): New function.
9263 * windows-nat.h: Add its prototype.
9264
9265 * main.c (get_init_files): Use filename_ncmp instead of strncmp.
9266 Use IS_DIR_SEPARATOR instead of looking for a character inside
9267 SLASH_STRING. Include filenames.h.
9268 (captured_main) [__MINGW32__]: Make argv[0] absolute, so that
9269 relocate_gdb_directory works when passed gdb_program_name.
9270 Include windows-nat.h.
9271
598d3636
JK
92722013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
9273
9274 * exceptions.h (enum errors): New entry TARGET_CLOSE_ERROR.
9275 * remote.c (trace_error): Remove the special handling of '2'.
9276 (readchar) <SERIAL_EOF>
9277 (readchar) <SERIAL_ERROR>
9278 (getpkt_or_notif_sane_1): Use TARGET_CLOSE_ERROR for them.
9279 (remote_get_trace_status): Call throw_exception if EX is
9280 TARGET_CLOSE_ERROR.
9281 * utils.c (perror_with_name): Rename to ...
9282 (throw_perror_with_name): ... here. New parameter errcode, describe it
9283 in the function comment.
9284 (perror_with_name): New function wrapper.
9285 * utils.h (enum errors): New stub declaration.
9286 (throw_perror_with_name): New declaration.
9287
82b821e9
PA
92882013-03-22 Pedro Alves <palves@redhat.com>
9289 Yao Qi <yao@codesourcery.com>
9290 Mark Kettenis <kettenis@gnu.org>
9291
9292 * cli/cli-setshow.c (do_set_command) <var_uinteger>:
9293 Don't let the user set the value to UINT_MAX directly.
9294 <var_integer>: Don't let the user set the value to INT_MAX
9295 directly.
9296
78a095c3
JK
92972013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
9298
9299 * remote.c (remote_unpush_target): New function.
9300 (remote_open_1): Remove two pop_target calls, update one comment, add
9301 comment to target_preopen call. Replace pop_target call by
9302 remote_unpush_target call.
9303 (interrupt_query, readchar, getpkt_or_notif_sane_1): Replace
9304 pop_target calls by remote_unpush_target calls.
9305
3e74e146
PA
93062013-03-22 Pedro Alves <palves@redhat.com>
9307
9308 * linux-nat.c (linux_child_follow_fork): Don't call
9309 linux_enable_event_reporting.
9310 (linux_handle_extended_wait): Don't call
9311 linux_enable_event_reporting.
9312
a2213dca
PA
93132013-03-22 Pedro Alves <palves@redhat.com>
9314
9315 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Define INSN macro,
9316 use it to rewrite the trampoline buffers with type gdb_byte[], and
9317 undefine the macro. Remove char* cast.
9318
bd712aed
DE
93192013-03-21 Doug Evans <dje@google.com>
9320
9321 New commands "mt set per-command {space,time,symtab} {on,off}".
9322 * NEWS: Add entry.
9323 * event-top.c: #include "maint.h".
9324 * main.c: #include "maint.h".
9325 * maint.c: #include <sys/time.h>, <time.h>, block.h, top.h,
9326 timeval-utils.h, maint.h, cli/cli-setshow.h.
9327 (per_command_time, per_command_space): New static globals.
9328 (per_command_symtab): New static global.
9329 (per_command_setlist, per_command_showlist): New static globals.
9330 (struct cmd_stats): Move here from utils.c.
9331 (set_per_command_time): Renamed from set_display_time in utils.c
9332 and moved here. All callers updated.
9333 (set_per_command_space): Renamed from set_display_space in utils.c
9334 and moved here. All callers updated.
9335 (count_symtabs_and_blocks): New function.
9336 (report_command_stats): Moved here from utils.c. Add support for
9337 printing symtab stats. Only print data if enabled before command
9338 executed.
9339 (make_command_stats_cleanup): Ditto.
9340 (sert_per_command_cmd, show_per_command_cmd): New functions.
9341 (_initialize_maint_cmds): Add new commands
9342 mt set per-command {space,time,symtab} {on,off}.
9343 * maint.h: New file.
9344 * top.c: #include "maint.h".
9345 * utils.c (reset_prompt_for_continue_wait_time): New function.
9346 (get_prompt_for_continue_wait_time): New function.
9347 * utils.h (reset_prompt_for_continue_wait_time): Declare
9348 (get_prompt_for_continue_wait_time): Declare.
9349 (make_command_stats_cleanup): Moved to maint.h.
9350 (set_display_time, set_display_space): Moved to maint.h and renamed
9351 to set_per_command_time, set_per_command_space.
9352 * cli/cli-setshow.c (parse_cli_boolean_value): Renamed from
9353 parse_binary_operation and made non-static. Don't call error,
9354 just return an error marker. All callers updated.
9355 * cli/cli-setshow.h (parse_cli_boolean_value): Declare.
9356
d76488d8
TT
93572013-03-21 Tom Tromey <tromey@redhat.com>
9358
9359 * symfile.c (alloc_section_addr_info): Update header. Don't set
9360 'num_sections' field.
9361 (build_section_addr_info_from_section_table): Set 'num_sections'.
9362 (build_section_addr_info_from_bfd): Likewise.
9363 (build_section_addr_info_from_objfile): Remove dead loop
9364 condition.
9365 (free_section_addr_info): Unconditionally call xfree.
9366 (relative_addr_info_to_section_offsets, addrs_section_sort)
9367 (addr_info_make_relative, syms_from_objfile_1): Remove dead loop
9368 condition.
9369 (syms_from_objfile_1): Remove dead 'if' condition. Check
9370 'num_sections'.
9371 (add_symbol_file_command): Set 'num_sections'.
9372 * symfile-mem.c (symbol_file_add_from_memory): Set
9373 'num_sections'.
9374 * somread.c (som_symfile_offsets): Remove dead loop condition.
9375 * machoread.c (macho_symfile_offsets): Remove dead 'if'.
9376 * jit.c (jit_bfd_try_read_symtab): Set 'num_sections'.
9377
a72e5169 93782013-03-21 Tom Tromey <tromey@redhat.com>
92bc6a20
TT
9379
9380 * tracepoint.h (decode_agent_options): Add 'trace_string'
9381 argument.
9382 * tracepoint.c (decode_agent_options): Add 'trace_string'
9383 argument.
9384 (validate_actionline): Update.
9385 (collect_symbol): Add 'trace_string' argument.
9386 (struct add_local_symbols_data) <trace_string>: New field.
9387 (do_collect_symbol): Update.
9388 (add_local_symbols): Add 'trace_string' argument.
9389 (encode_actions_1): Update.
9390 (trace_dump_actions): Update.
9391 * dwarf2loc.c (access_memory): Update.
9392 * ax.h (struct agent_expr) <tracing, trace_string>: New fields.
9393 * ax-general.c (new_agent_expr): Update.
9394 * ax-gdb.h (gen_trace_for_expr, gen_trace_for_var)
9395 (gen_trace_for_return_address): Add argument.
9396 (trace_kludge, trace_string_kludge): Remove.
9397 * ax-gdb.c (trace_kludge, trace_string_kludge): Remove.
9398 (gen_traced_pop, gen_fetch, gen_bitfield_ref, gen_expr): Update.
9399 (gen_trace_for_var): Add 'trace_string' argument.
9400 (gen_trace_for_expr, gen_trace_for_return_address): Likewise.
9401 (gen_printf, agent_eval_command_one): Update.
9402
b2f83c08
TT
94032013-03-21 Tom Tromey <tromey@redhat.com>
9404
9405 PR exp/15109:
9406 * c-exp.y (yylex): Rewrite to push all tokens onto the FIFO.
9407 Handle FILENAME token.
9408
9507860e
TT
94092013-03-21 Tom Tromey <tromey@redhat.com>
9410
9411 * c-exp.y (YYPRINT): Define.
9412 (c_print_token): New function.
9413
e403aa4b
TT
94142013-03-21 Tom Tromey <tromey@redhat.com>
9415
9416 * c-exp.y (%union) <sym, ivar, ivec>: Remove.
9417
af307d6a
YQ
94182013-03-21 Yao Qi <yao@codesourcery.com>
9419
9420 * ctf.c: Include "gdb_stat.h".
9421 [USE_WIN32API]: New macro 'mkdir'.
9422 (ctf_start): Use permission bits macros if they are defined.
9423
fb81d016
KS
94242013-03-20 Keith Seitz <keiths@redhat.com>
9425
9426 * breakpoint.h (struct breakpoint): Add comment to
9427 extra_string indicating that this member is mallod'd.
9428 * breakpoint.c (base_breakpoint_dtor): Free extra_string.
9429
ef0026f0
PA
94302013-03-20 Pedro Alves <palves@redhat.com>
9431
9432 PR gdb/15289
9433
9434 * cli/cli-setshow.c (do_set_command)
9435 <var_uinteger, var_zuinteger>: Use LONGEST for variable holding
9436 the result of parsing the command argument. Throw error if the
9437 value is greater than UINT_MAX. Print the invalid value with
9438 plongest.
9439 <var_integer, var_zinteger>: Use LONGEST for variable holding the
9440 result of parsing the command argument. Throw error if the value
9441 is greater than INT_MAX, not greater or equal. Also throw error
9442 if the value is less than INT_MIN. Print the invalid value with
9443 plongest.
9444 <var_zuinteger_unlimited>: Throw error if the value is greater
9445 than INT_MAX, not greater or equal.
9446 (do_show_command) <var_integer, var_zinteger,
9447 var_zuinteger_unlimited>: Use %d for printing int, not %u.
9448
24d6c2a0
TT
94492013-03-20 Tom Tromey <tromey@redhat.com>
9450
9451 * ax-gdb.c (gen_var_ref): Unconditionally call via computed ops,
9452 if possible.
9453 * dwarf2read.c (read_func_scope): Remove old FIXME.
9454 * eval.c (evaluate_subexp_standard): Check SYMBOL_COMPUTED_OPS,
9455 not LOC_COMPUTED.
9456 * findvar.c (symbol_read_needs_frame, default_read_var_value):
9457 Unconditionally call via computed ops, if possible.
9458 * printcmd.c (address_info): Unconditionally call via computed ops,
9459 if possible.
9460 * stack.c (read_frame_arg): Unconditionally call via computed ops,
9461 if possible.
9462 * symtab.c (register_symbol_computed_impl): Sanity check 'ops'.
9463 * tracepoint.c (scope_info): Unconditionally call via computed ops,
9464 if possible.
9465
f1e6e072
TT
94662013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9467 Tom Tromey <tromey@redhat.com>
9468
9469 PR symtab/8421:
9470 * coffread.c (coff_register_index): New global.
9471 (process_coff_symbol, coff_read_enum_type): Set
9472 SYMBOL_ACLASS_INDEX.
9473 (_initialize_coffread): Initialize new global.
9474 * dwarf2loc.c (locexpr_find_frame_base_location)
9475 (dwarf2_block_frame_base_locexpr_funcs)
9476 (loclist_find_frame_base_location)
9477 (dwarf2_block_frame_base_loclist_funcs): New.
9478 (dwarf_expr_frame_base_1): Call SYMBOL_BLOCK_OPS, remove internal_error.
9479 (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Add location_has_loclist.
9480 * dwarf2loc.h (dwarf2_block_frame_base_locexpr_funcs)
9481 (dwarf2_block_frame_base_loclist_funcs): New.
9482 * dwarf2read.c (dwarf2_locexpr_index, dwarf2_loclist_index)
9483 (dwarf2_locexpr_block_index, dwarf2_loclist_block_index): New
9484 globals.
9485 (read_func_scope): Update.
9486 (fixup_go_packaging, mark_common_block_symbol_computed)
9487 (var_decode_location, new_symbol_full, dwarf2_const_value):
9488 Set SYMBOL_ACLASS_INDEX.
9489 (dwarf2_symbol_mark_computed): Likewise. Add 'is_block' argument.
9490 (_initialize_dwarf2_read): Initialize new globals.
9491 * jit.c (finalize_symtab): Set SYMBOL_ACLASS_INDEX.
9492 * jv-lang.c (add_class_symbol): Set SYMBOL_ACLASS_INDEX.
9493 * mdebugread.c (mdebug_register_index, mdebug_regparm_index): New
9494 globals.
9495 (parse_symbol, psymtab_to_symtab_1): Set SYMBOL_ACLASS_INDEX.
9496 (_initialize_mdebugread): Initialize new globals.
9497 * psympriv.h (struct partial_symbol) <aclass>: Update comment.
9498 * stabsread.c (patch_block_stabs): Set SYMBOL_ACLASS_INDEX.
9499 (stab_register_index, stab_regparm_index): New globals.
9500 (define_symbol, read_enum_type, common_block_end): Set
9501 SYMBOL_ACLASS_INDEX.
9502 (_initialize_stabsread): Initialize new globals.
9503 * symtab.c (next_aclass_value, symbol_impl, symbol_impls): New
9504 globals.
9505 (MAX_SYMBOL_IMPLS): New define.
9506 (register_symbol_computed_impl, register_symbol_block_impl)
9507 (register_symbol_register_impl)
9508 (initialize_ordinary_address_classes): New functions.
9509 (_initialize_symtab): Call initialize_ordinary_address_classes.
9510 * symtab.h (enum address_class) <LOC_FINAL_VALUE>: New constant.
9511 (struct symbol_impl): New.
9512 (SYMBOL_ACLASS_BITS): New define.
9513 (struct symbol) <aclass, ops>: Remove fields.
9514 <aclass_index>: New field.
9515 (symbol_impls): Declare.
9516 (SYMBOL_CLASS, SYMBOL_COMPUTED_OPS, SYMBOL_REGISTER_OPS): Redefine.
9517 (SYMBOL_IMPL, SYMBOL_ACLASS_INDEX): New defines.
9518 (register_symbol_computed_impl, register_symbol_block_impl)
9519 (register_symbol_register_impl): Declare.
9520 (struct symbol_computed_ops): Add location_has_loclist.
9521 (struct symbol_block_ops): New.
9522 (SYMBOL_BLOCK_OPS): New.
9523 * xcoffread.c (process_xcoff_symbol): Set SYMBOL_ACLASS_INDEX.
9524
dbccfd4c
TT
95252013-03-20 Tom Tromey <tromey@redhat.com>
9526
9527 * psymtab.c (find_pc_sect_psymbol, fixup_psymbol_section)
9528 (print_partial_symbols, recursively_search_psymtabs): Use
9529 PSYMBOL_CLASS.
9530
e3f1ad4f
PM
95312013-03-20 Pierre Muller <muller@sourceware.org>
9532
9533 * contrib/ari/gdb_ari.sh (OP eol rule): Also check
9534 addtion, subtraction, multiplication and division binary operator.
9535
460014f5
JK
95362013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9537
9538 Code cleanup.
9539 * bfd-target.c (target_bfd_xclose): Remove parameter quitting.
9540 * bsd-kvm.c (bsd_kvm_close): Likewise.
9541 * bsd-uthread.c (bsd_uthread_close): Likewise.
9542 * corelow.c (core_close): Likewise.
9543 (core_close_cleanup): Remove parameter quitting from a caller.
9544 * event-top.c (async_disconnect): Likewise.
9545 * exec.c (exec_close_1): Remove parameter quitting.
9546 * go32-nat.c (go32_close): Likewise.
9547 * linux-nat.c (linux_nat_close): Remove parameter quitting. Remove
9548 parameter quitting from a caller.
9549 * mips-linux-nat.c (super_close): Remove parameter quitting from the
9550 variable.
9551 (mips_linux_close): Remove parameter quitting. Remove parameter
9552 quitting from a caller.
9553 * monitor.c (monitor_close): Remove parameter quitting.
9554 * monitor.h (monitor_close): Likewise.
9555 * record-btrace.c (record_btrace_close): Likewise.
9556 * record-full.c (record_full_close): Likewise.
9557 * remote-m32r-sdi.c (m32r_close): Remove parameter quitting and remove
9558 it also from fprintf_unfiltered.
9559 * remote-mips.c (mips_close): Remove parameter quitting.
9560 (mips_detach): Remove parameter quitting from a caller.
9561 * remote-sim.c (gdbsim_close): Remove parameter quitting.
9562 (gdbsim_close): Remove duplicate function comment. Remove parameter
9563 quitting and remove it also from printf_filtered.
9564 * remote.c (remote_close): Remove parameter quitting.
9565 * solib-svr4.c (enable_break): Remove parameter quitting from a caller.
9566 * target.c (update_current_target): Remove parameter int from to_close
9567 de_fault.
9568 (push_target, unpush_target, pop_target): Remove parameter quitting from
9569 a caller.
9570 (pop_all_targets_above, pop_all_targets): Remove parameter quitting.
9571 Remove parameter quitting from a caller.
9572 (target_preopen): Remove parameter quitting from a caller.
9573 (target_close): Remove parameter quitting. Remove parameter quitting
9574 from a caller two times. Remove parameter quitting also from
9575 fprintf_unfiltered.
9576 * target.h (struct target_ops): Remove parameter quitting and as int
9577 from fields to_xclose and to_close.
9578 (extern struct target_ops current_target):
9579 (target_close, pop_all_targets): Remove parameter quitting. Update the
9580 comment.
9581 (pop_all_targets_above): Remove parameter quitting.
9582 * top.c (quit_target): Remove parameter quitting from a caller.
9583 * tracepoint.c (tfile_close): Remove parameter quitting.
9584 * windows-nat.c (windows_close): Remove parameter quitting.
9585
35a7120b
CV
95862013-03-20 Corinna Vinschen <vinschen@redhat.com>
9587
9588 * windows-nat.c (handle_output_debug_string): Replace call
9589 to string_to_core_addr with call to strtoull.
9590
8249a5a9
YQ
95912013-03-20 Yao Qi <yao@codesourcery.com>
9592
9593 * ctf.c (ctf_save_metadata_header): Define macro HOST_ENDIANNESS
9594 and write it to CTF metadata.
9595
2c15ef43
CV
95962013-03-19 Corinna Vinschen <vinschen@redhat.com>
9597
9598 * windows-nat.c (handle_output_debug_string): Change type of n to
9599 SIZE_T to avoid crash on 64 bit systems.
9600
1cdd3232
EZ
96012013-03-17 Eli Zaretskii <eliz@gnu.org>
9602
9603 * python/python-internal.h (HAVE_SNPRINTF)
9604 [_WIN32 && HAVE_DECL_SNPRINTF]: Define, to avoid compiler warnings
9605 about redefinition of snprintf by pyerrors.h.
9606
3cb2ab1a
SE
96072013-03-15 Steve Ellcey <sellcey@mips.com>
9608
9609 * remote-sim.c (sim_command_completer): Make char arguments const.
9610
9ce98649
TT
96112013-03-15 Tom Tromey <tromey@redhat.com>
9612
9613 PR c++/15116:
9614 * gdbtypes.c (types_equal): Handle TYPE_CODE_FUNC.
9615
dccee2de
TT
96162013-03-14 Tom Tromey <tromey@redhat.com>
9617
9618 * gdb_bfd.c (struct gdb_bfd_data) <crc_computed, crc>:
9619 New fields.
9620 (get_file_crc): Move from symfile.c.
9621 (gdb_bfd_crc): New function.
9622 * gdb_bfd.h (gdb_bfd_crc): Declare.
9623 * objfiles.h (struct objfile) <crc32, crc32_p>: Remove.
9624 * symfile.c (get_file_crc): Move to gdb_bfd.c.
9625 (separate_debug_file_exists): Use gdb_bfd_crc.
9626
cc0ea93c
TT
96272013-03-14 Tom Tromey <tromey@redhat.com>
9628
9629 * symfile.c (get_debug_link_info): Remove.
9630 (find_separate_debug_file_by_debuglink): Use
9631 bfd_get_debug_link_info.
9632
08c23b0d
TT
96332013-03-14 Tom Tromey <tromey@redhat.com>
9634
9635 * symtab.c (error_in_psymtab_expansion): New function.
9636 (lookup_symbol_aux_quick)
9637 (basic_lookup_transparent_type_quick): Remove "last resort"
9638 code. Use error_in_psymtab_expansion.
9639
288e77a7
JK
96402013-03-14 Doug Evans <dje@google.com>
9641 Jan Kratochvil <jan.kratochvil@redhat.com>
9642
9643 * dwarf2read.c (dw2_map_symtabs_matching_filename): Put continue after
9644 any successful compare_filenames_for_search or FILENAME_CMP.
9645 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
9646 * symtab.c (iterate_over_some_symtabs): Likewise.
9647
8f1b8b82
JK
96482013-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9649
9650 * source.c (print_source_lines_base): Make a local copy of
9651 symtab_to_fullname.
9652
23eb71e4
JK
96532013-03-14 Hui Zhu <hui_zhu@mentor.com>
9654 Jan Kratochvil <jan.kratochvil@redhat.com>
9655
9656 * source.c (print_source_lines_base): Suppress "file" for TUI.
9657
bb869963
SDJ
96582013-03-14 Keith Seitz <keiths@redhat.com>
9659 Alan Matsuoka <alanm@redhat.com>
9660
9661 PR c++/15203
9662 PR c++/15210
9663 * cp-namespace.c (cp_lookup_nested_symbol): Handle TYPE_CODE_FUNC and
9664 TYPE_CODE_METHOD.
9665 * elfread.c (elf_symtab_read): Handle BSF_GNU_UNIQUE for certain
9666 symbols.
9667
d6682f9e
YQ
96682013-03-14 Yao Qi <yao@codesourcery.com>
9669
9670 * tracepoint.c (tfile_write_status): Write 'stop_desc' of trace
9671 status to tfile if trace is stopped by command 'tstop'.
9672
a22fa6e4
YQ
96732013-03-14 Yao Qi <yao@codesourcery.com>
9674
9675 * tracepoint.c (tfile_write_status): Write trace notes and user
9676 name into tfile if they are not NULL.
9677
d0353e76
YQ
96782013-03-14 Hui Zhu <hui@codesourcery.com>
9679 Yao Qi <yao@codesourcery.com>
9680
9681 * Makefile.in (REMOTE_OBS): Add ctf.o.
9682 (SFILES): Add ctf.c.
9683 (HFILES_NO_SRCDIR): Add ctf.h.
9684 * ctf.c, ctf.h: New files.
9685 * tracepoint.c: Include 'ctf.h'.
9686 (collect_pseudocommand): Remove static.
9687 (trace_save_command): Parse option "-ctf".
9688 Produce different trace file writers per option.
9689 Adjust output message.
9690 (trace_save_tfile, trace_save_ctf): New.
9691 * tracepoint.h (trace_save_tfile, trace_save_ctf): Declare.
9692 * mi/mi-main.c: Include 'ctf.h'.
9693 (mi_cmd_trace_save): Handle option '-ctf'. Call either
9694 trace_save_tfile or trace_save_ctf.
9695 * NEWS: Mention these changes.
9696
3f43bc09
YQ
96972013-03-14 Yao Qi <yao@codesourcery.com>
9698
9699 * tracepoint.c (trace_file_writer_xfree): New.
9700 (struct tfile_writer_data): New.
9701 (tfile_dtor, tfile_can_target_save, tfile_start): New.
9702 (tfile_write_header, tfile_write_regblock_type): New.
9703 (tfile_write_status, tfile_write_uploaded_tsv): New.
9704 (tfile_write_uploaded_tp, tfile_write_definition_end): New.
9705 (tfile_write_raw_data, (tfile_end): New.
9706 (tfile_write_ops): New global variable.
9707 (TRACE_WRITE_R_BLOCK): New macro.
9708 (TRACE_WRITE_M_BLOCK_HEADER): New macro.
9709 (TRACE_WRITE_M_BLOCK_MEMORY): New macro.
9710 (TRACE_WRITE_V_BLOCK): New macro.
9711 (trace_save): Add extra one parameter WRITER. Make it static.
9712 Use WRITER to writer trace.
9713 (tfile_trace_file_writer_new): New.
9714 (trace_save_command): Caller update.
9715 (trace_save_tfile): Write trace data in TFILE format.
9716 * tracepoint.h (struct trace_frame_write_ops): New.
9717 (struct trace_file_write_ops): New.
9718 (struct trace_file_writer): New.
9719 (trace_save): Remove its declaration.
9720 (trace_save_tfile): Declare it.
9721 * mi/mi-main.c (mi_cmd_trace_save): Call trace_save_tfile
9722 instead of trace_save.
9723
58665b40
PA
97242013-03-13 Pedro Alves <palves@redhat.com>
9725
9726 * hppa-hpux-nat.c (hppa_hpux_save_state_offset): Make static.
9727
10217050
PA
97282013-03-13 Pedro Alves <palves@redhat.com>
9729
9730 * dbxread.c (read_ofile_symtab, process_one_symbol): Remove
9731 commented out code.
9732 * demangle.c (current_demangling_style_string): Make it const.
9733 (set_demangling_command): Assert the demangling style is known.
9734 Remove all handling of unknown styles. Set
9735 'current_demangling_style_string' to an element of the
9736 demangling_style_names array.
9737 (set_demangling_style): Delete.
9738 (_initialize_demangler): Set current_demangling_style_string to the
9739 element of the demangling_style_names array that corresponds to
9740 the default demangling style. Remove FIXME note. Don't call
9741 set_demangling_style.
9742 * gdb-demangle.h (set_demangling_style): Remove declaration.
9743
6f937416
PA
97442013-03-13 Pedro Alves <palves@redhat.com>
9745
9746 * ada-lang.c (struct add_partial_datum) <text, text0, word>: Make
9747 fields const.
9748 (ada_make_symbol_completion_list): Make "text0" parameter const.
9749 * ax-gdb.c (agent_eval_command_one): Make "exp" parameter const.
9750 * breakpoint.c (condition_completer): Make "text" and "word"
9751 parameters const. Adjust.
9752 (check_tracepoint_command): Adjust to validate_actionline
9753 prototype change.
9754 (catch_syscall_completer): Make "text" and "word" parameters
9755 const.
9756 * cli/cli-cmds.c (show_user): Make "comname" local const.
9757 (valid_command_p): Make "command" parameter const.
9758 (alias_command): Make "alias_prefix" and "command_prefix" locals
9759 const.
9760 * cli/cli-decode.c (add_cmd): Make "name" parameter const.
9761 (add_alias_cmd): Make "name" and "oldname" parameters const.
9762 Adjust. No longer make copy of OLDNAME.
9763 (add_prefix_cmd, add_abbrev_prefix_cmd, add_set_or_show_cmd)
9764 (add_setshow_cmd_full, add_setshow_enum_cmd)
9765 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
9766 (add_setshow_filename_cmd, add_setshow_string_cmd)
9767 (add_setshow_string_noescape_cmd)
9768 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
9769 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
9770 (add_setshow_zuinteger_unlimited_cmd, add_setshow_zuinteger_cmd)
9771 (delete_cmd, add_info, add_info_alias, add_com, add_com_alias):
9772 Make "name" parameter const.
9773 (help_cmd): Rename "command" parameter to "arg". New const local
9774 "command".
9775 (find_cmd): Make "command" parameter const.
9776 (lookup_cmd_1): Make "text" parameter pointer to const. Adjust to
9777 deprecated_cmd_warning prototype change.
9778 (undef_cmd_error): Make "cmdtype" parameter const.
9779 (lookup_cmd): Make "line" parameter const.
9780 (deprecated_cmd_warning): Change type of "text" parameter to
9781 pointer to const char, from pointer to pointer to char. Adjust.
9782 (lookup_cmd_composition): Make "text" parameter const.
9783 (complete_on_cmdlist, complete_on_enum): Make "text" and "word"
9784 parameters const.
9785 * cli/cli-decode.h (struct cmd_list_element) <name>: Make field
9786 const.
9787 * cli/cli-script.c (validate_comname): Make "tem" local const.
9788 (define_command): New const local "tem_c". Use it in calls to
9789 lookup_cmd.
9790 (document_command): Make "tem" and "comfull" locals const.
9791 (show_user_1): Make "prefix" and "name" parameters const.
9792 * cli-script.h (show_user_1): Make "prefix" and "name" parameters
9793 const.
9794 * command.h (add_cmd, add_alias_cmd, add_prefix_cmd)
9795 (add_abbrev_prefix_cmd, completer_ftype, lookup_cmd, lookup_cmd_1)
9796 (deprecated_cmd_warning, lookup_cmd_composition, add_com)
9797 (add_com_alias, add_info, add_info_alias, complete_on_cmdlist)
9798 (complete_on_enum, add_setshow_enum_cmd)
9799 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
9800 (add_setshow_filename_cmd, add_setshow_string_cmd)
9801 (add_setshow_string_noescape_cmd)
9802 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
9803 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
9804 (add_setshow_zuinteger_cmd, add_setshow_zuinteger_unlimited_cmd):
9805 Change prototypes, constifying strings.
9806 * completer.c (noop_completer, filename_completer): Make "text"
9807 and "prefix" parameters const.
9808 (location_completer, expression_completer)
9809 (complete_line_internal): Make "text" and "prefix" parameters
9810 const and adjust.
9811 (command_completer, signal_completer): Make "text" and "prefix"
9812 parameters const.
9813 * completer.h (noop_completer, filename_completer)
9814 (expression_completer, location_completer, command_completer)
9815 (signal_completer): Change prototypes.
9816 * corefile.c (complete_set_gnutarget): Make "text" and "word"
9817 parameters const.
9818 * cp-abi.c (cp_abi_completer): Likewise.
9819 * expression.h (parse_expression_for_completion): Change
9820 prototype.
9821 * f-lang.c (f_make_symbol_completion_list): Make "text" and "word"
9822 parameters const.
9823 * infcmd.c (_initialize_infcmd): Make "cmd_name" local const.
9824 * infrun.c (handle_completer): Make "text" and "word" parameters
9825 const.
9826 * interps.c (interpreter_completer): Make "text" and "word"
9827 parameters const.
9828 * language.h (struct language_defn)
9829 <la_make_symbol_completion_list>: Make "text" and "word"
9830 parameters const.
9831 * parse.c (parse_exp_1): Move const hack to parse_exp_in_context.
9832 (parse_exp_in_context): Rename to ...
9833 (parse_exp_in_context_1): ... this.
9834 (parse_exp_in_context): Reimplement, with const hack from
9835 parse_exp_1.
9836 (parse_expression_for_completion): Make "string" parameter const.
9837 * printcmd.c (decode_format): Make "string_ptr" parameter pointer
9838 to pointer to const char. Adjust.
9839 (print_command_1): Make "exp" parameter const.
9840 (output_command): Rename to ...
9841 (output_command_const): ... this. Make "exp" parameter const.
9842 (output_command): Reimplement.
9843 (x_command): Adjust.
9844 (display_command): Rename "exp" parameter to "arg". New "exp"
9845 local, const version of "arg".
9846 * python/py-auto-load.c (gdbpy_initialize_auto_load): Make
9847 "cmd_name" local const.
9848 * python/py-cmd.c (cmdpy_destroyer): Cast const away in xfree
9849 call.
9850 (cmdpy_completer): Make "text" and "word" parameters const.
9851 (gdbpy_parse_command_name): Make "prefix_text2" local const.
9852 * python/py-param.c (add_setshow_generic): Make "tmp_name" local
9853 const.
9854 * remote.c (_initialize_remote): Make "cmd_name" local const.
9855 * symtab.c (language_search_unquoted_string): Make "text" and "p"
9856 parameters const. Adjust.
9857 (completion_list_add_fields): Make "sym_text", "text" and "word"
9858 parameters const.
9859 (struct add_name_data) <sym_text, text, word>: Make fields const.
9860 (default_make_symbol_completion_list_break_on): Make "text" and
9861 "word" parameters const. Adjust locals.
9862 (default_make_symbol_completion_list)
9863 (make_symbol_completion_list, make_symbol_completion_type)
9864 (make_symbol_completion_list_fn): Make "text" and "word"
9865 parameters const.
9866 (make_file_symbol_completion_list): Make "text", "word" and
9867 "srcfile" parameters const. Adjust locals.
9868 (add_filename_to_list): Make "text" and "word" parameters const.
9869 (struct add_partial_filename_data) <text, word>: Make fields
9870 const.
9871 (make_source_files_completion_list): Make "text" and "word"
9872 parameters const.
9873 * symtab.h (default_make_symbol_completion_list_break_on)
9874 (default_make_symbol_completion_list, make_symbol_completion_list)
9875 (make_symbol_completion_type enum type_code)
9876 (make_symbol_completion_list_fn make_file_symbol_completion_list)
9877 (make_source_files_completion_list): Change prototype.
9878 * top.c (execute_command): Adjust to pass pointer to pointer to
9879 const char to lookup_cmd, and to deprecated_cmd_warning prototype
9880 change.
9881 (set_verbose): Make "cmdname" local const.
9882 * tracepoint.c (decode_agent_options): Make "exp" parameter const,
9883 and adjust.
9884 (validate_actionline): Make "line" parameter a pointer to const
9885 char, and adjust.
9886 (encode_actions_1): Make "action_exp" local const, and adjust.
9887 (encode_actions): Adjust.
9888 (replace_comma): Delete.
9889 (trace_dump_actions): Make "action_exp" and "next_comma" locals
9890 const, and adjust. Don't frob the action string while splitting
9891 it at commas. Instead, make a copy of each split substring in
9892 turn.
9893 (trace_dump_command): Adjust to validate_actionline prototype
9894 change.
9895 * tracepoint.h (decode_agent_options, decode_agent_options)
9896 (encode_actions, validate_actionline): Change prototypes.
9897 * valprint.h (output_command): Delete declaration.
9898 (output_command_const): Declare.
9899 * value.c (function_destroyer): Cast const away in xfree call.
9900
a0bcdaa7
PA
99012013-03-13 Pedro Alves <palves@redhat.com>
9902
9903 * ada-lang.c (ada_decode_symbol): Cast away constness of GSYMBOL
9904 rather than casting 'const char * const *' to 'const char **'.
9905 * ada-lex.l (processInt): Make "trailer" local const. Remove
9906 'const char **' cast.
9907 * arm-linux-tdep.c (arm_stap_parse_special_token): Add 'char *'
9908 locals, and use those as strtol output pointer, instead than doing
9909 invalid casts to from 'const char **' to 'char **'.
9910 (_initialize_demangle): Remove cast.
9911 * i386-tdep.c (i386_stap_parse_special_token): : Add 'char *'
9912 locals, and use those as strtol output pointer, instead than doing
9913 invalid casts to from 'const char **' to 'char **'.
9914 * solib-dsbt.c (dsbt_get_initial_loadmaps): Remove 'gdb_byte**'
9915 casts.
9916 * stap-probe.c (stap_parse_register_operand)
9917 (stap_parse_single_operand): Likewise.
9918
8ddb1965
YQ
99192013-03-13 Yao Qi <yao@codesourcery.com>
9920
9921 * tracepoint.c (tfile_get_trace_state_variable_value): Look for
9922 the last matched 'V' blcok in trace frame.
9923
2d450646
JB
99242013-03-12 Joel Brobecker <brobecker@adacore.com>
9925
9926 * NEWS: Create a new section for the next release branch.
9927 Rename the section of the current branch, now that it has
9928 been cut.
9929
b4b79973 99302013-03-12 Joel Brobecker <brobecker@adacore.com>
9931
9932 GDB 7.6 branch created (branch timestamp: 2013-03-12 22:15 UTC)
9933 * version.in: Bump version to 7.6.50.20130312-cvs.
9934
ee047554
KS
99352013-03-12 Keith Seitz <keiths@redhat.com>
9936
9937 * mi/mi-cmds.h (mi_execute_command): Make "cmd" const.
9938 * mi/mi-interp.c (mi_interpreter_exec): Make "command" const.
9939 Remove temporary copy of input string.
9940 (mi_execute_command_wrapper): Make "cmd" const.
9941 * mi/mi-main.c (mi_execute_command): Make "string_ptr" const.
9942 * mi/mi-parse.c (mi_parse_argv): Make "args" const.
9943 Use const strings.
9944 (mi_parse): Make "cmd" const.
9945 Use const strings.
9946 * mi/mi-parse.h (mi_parse): Make "cmd" const.
9947
bbc13ae3
KS
99482013-03-12 Keith Seitz <keiths@redhat.com>
9949
9950 * ada-lang.c (ada_read_renaming_var_value): Pass const
9951 pointer to expression string to parse_exp_1.
9952 (create_excep_cond_exprs): Likewise.
9953 * ax-gdb.c (agent_eval_command_one): Likewise.
9954 (maint_agent_printf_command): Likewise.
9955 Constify much of the string handling/parsing.
9956 * breakpoint.c (set_breakpoint_condition): Pass const
9957 pointer to expression string to parse_exp_1.
9958 (update_watchpoint): Likewise.
9959 (parse_cmd_to_aexpr): Constify string handling.
9960 Pass const pointer to parse_exp_1.
9961 (init_breakpoint_sal): Pass const pointer to parse_exp_1.
9962 (find_condition_and_thread): Likewise.
9963 Make TOK const.
9964 (watch_command_1): Make "arg" const.
9965 Constify string handling.
9966 Copy the expression string instead of changing the input
9967 string.
9968 (update_breakpoint_location): Pass const pointer to
9969 parse_exp_1.
9970 * eval.c (parse_and_eval_address): Make "exp" const.
9971 (parse_to_comma_and_eval): Make "expp" const.
9972 (parse_and_eval): Make "exp" const.
9973 * expression.h (parse_expression): Make argument const.
9974 (parse_exp_1): Make first argument const.
9975 * findcmd.c (parse_find_args): Treat "args" as const.
9976 * linespec.c (parse_linespec): Pass const pointer to
9977 linespec_expression_to_pc.
9978 (linespec_expression_to_pc): Make "exp_ptr" const.
9979 * parse.c (parse_exp_1): Make "stringptr" const.
9980 Make a copy of the expression to pass to parse_exp_in_context until
9981 this whole interface can be constified.
9982 (parse_expression): Make "string" const.
9983 * printcmd.c (ui_printf): Treat "arg" as const.
9984 Handle const strings.
9985 * tracepoint.c (validate_actionline): Pass const pointer to
9986 all calls to parse_exp_1.
9987 (encode_actions_1): Likewise.
9988 * value.h (parse_to_comma_and_eval): Make argument const.
9989 (parse_and_eval_address): Likewise.
9990 (parse_and_eval): Likewise.
9991 * varobj.c (varobj_create): Pass const pointer to parse_exp_1.
9992 (varobj_set_value): Likewise.
9993 * cli/cli-cmds.c (disassemble_command): Treat "arg" as const and
9994 constify string handling.
9995 Pass const pointers to parse_and_eval_address and
9996 parse_to_comman_and_eval.
9997 * cli/cli-utils.c (skip_to_space): Rename to ...
9998 (skip_to_space_const): ... this. Handle const strings.
9999 * cli/cli-utils.h (skip_to_space): Turn into macro which invokes
10000 skip_to_space_const.
10001 (skip_to_space_const): Declare.
10002 * common/format.c (parse_format_string): Make "arg" const.
10003 Handle const strings.
10004 * common/format.h (parse_format_string): Make "arg" const.
10005 * gdbserver/ax.c (ax_printf): Make "format" const.
10006 * python/python.c (gdbpy_parse_and_eval): Do not make a copy
10007 of the expression string.
10008
f3cec7e6
HZ
100092013-03-12 Hui Zhu <hui@codesourcery.com>
10010
10011 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Update error message.
10012
9df7235c
HZ
100132013-03-12 Yao Qi <yao@codesourcery.com>
10014 Hui Zhu <hui@codesourcery.com>
10015
10016 * dwarf2loc.c (access_memory): Change nbits to nbytes in gdb_assert.
10017 (dwarf2_compile_expr_to_ax): Call access_memory in DW_OP_deref and
10018 DW_OP_deref_size.
10019
82d049ab
PH
100202013-03-12 Paul Hilfinger <hilfingr@adacore.com>
10021
5f8e0b8f
MF
10022 * ada-lex.l (rules): Only recognize 'thread' as a
10023 delimiter when followed by numerals, as for c-exp.y.
10024 Use new rewind_to_char function to rewind the input for
10025 expression-delimiting tokens.
10026 (rewind_to_char): New function.
82d049ab 10027
8c1fb155
JK
100282013-03-11 Pedro Alves <palves@redhat.com>
10029 Jan Kratochvil <jan.kratochvil@redhat.com>
10030
10031 * configure: Regenerate.
10032 * configure.ac (check dynamic export flag): Link python test with
10033 $PYTHON_LIBS.
10034
cc81e1c6
DE
100352013-03-11 Doug Evans <dje@google.com>
10036 Keith Seitz <keiths@redhat.com>
10037
10038 * linespec.c (find_linespec_symbols): Call find_function_symbols
10039 first, and then call lookup_prefix_sym/find_method.
10040
39086a0e
PA
100412013-03-11 Pedro Alves <palves@redhat.com>
10042
10043 * charset.c (convert_between_encodings): Don't cast between
10044 different pointer to pointer types. Instead, make the 'inp' local
10045 be of the type iconv expects.
10046 (wchar_iterate): Don't cast between different pointer to pointer
10047 types. Instead, use new pointer local of the type iconv expects.
10048 * target.c (target_read_stralloc, target_fileio_read_stralloc):
10049 Add new local of type char pointer, and use it to get a
10050 char/string view of the byte buffer, instead of casting between
10051 pointer to pointer types.
10052
90585175
HAQ
100532013-03-11 Hafiz Abid Qadeer <abidh@codesourcery.com>
10054
10055 * remote.c (remote_set_trace_buffer_size): Move != operator
10056 to the start of next line to fix an ARI warning.
10057
59ea5688
MM
100582013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10059
10060 * NEWS: Add record changes.
10061
946287b7
MM
100622013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10063
10064 * record-btrace.c (btrace_insn_history): Omit the pc prefix in
10065 the instruction history disassembly.
10066 * disasm.c (dump_insns): Omit the pc prefix, if requested.
10067 * disasm.h (DISASSEMBLY_OMIT_PC): New.
10068
afedecd3
MM
100692013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10070
10071 * Makefile.in (SFILES): Add record-btrace.c
10072 (COMMON_OBS): Add record-btrace.o
10073 * record-btrace.c: New.
10074 * objfiles.c: Include btrace.h.
10075 (free_objfile): call btrace_free_objfile.
10076
15984c13
MM
100772013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10078
10079 * target.c (target_call_history, target_call_history_from,
10080 target_call_history_range): New.
10081 * target.h (target_ops) <to_call_history, to_call_history_from,
10082 to_call_history_range>: New fields.
10083 (target_call_history, target_call_history_from,
10084 target_call_history_range): New declaration.
10085 * record.c (get_call_history_modifiers, cmd_record_call_history,
10086 record_call_history_size): New.
10087 (_initialize_record): Add the "record function-call-history" command.
10088 Add "set/show record function-call-history-size" commands.
10089 * record.h (record_print_flag): New.
10090
67c86d06
MM
100912013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10092
10093 * target.h (target_ops) <to_insn_history, to_insn_history_from,
10094 to_insn_history_range>: New fields.
10095 (target_insn_history): New.
10096 (target_insn_history_from): New.
10097 (target_insn_history_range): New.
10098 * target.c (target_insn_history): New.
10099 (target_insn_history_from): New.
10100 (target_insn_history_range): New.
10101 * record.c: Include cli/cli-utils.h, disasm.h, ctype.h.
10102 (record_insn_history_size): New.
10103 (get_insn_number): New.
10104 (get_context_size): New.
10105 (no_chunk): New.
10106 (get_insn_history_modifiers): New.
10107 (cmd_record_insn_history): New.
10108 (_initialize_record): Add "set/show record instruction-history-size"
10109 command. Add "record instruction-history" command.
10110
7c1687a9
MM
101112013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10112
10113 * record.h (record_disconnect): New.
10114 (record_detach): New.
10115 (record_mourn_inferior): New.
10116 (record_kill): New.
10117 * record-full.c (record_disconnect, record_detach,
10118 record_mourn_inferior, record_kill): Move to...
10119 * record.c: ...here.
10120 (DEBUG): New.
10121 (record_stop): New.
10122 (record_unpush): New.
10123 (cmd_record_stop): Call record_stop. Replace unpush_target
10124 call with record_unpush call.
10125 (record_disconnect, record_detach): Assert that the target
10126 is of record stratum. Call record_unpush, record_stop, and
10127 DEBUG.
10128 (record_mourn_inferior, record_kill): Assert that the target
10129 is of record stratum. Call record_unpush and DEBUG.
10130
25ea693b
MM
101312013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10132
10133 * record-full.h, record-full.c (record_memory_query): Rename
10134 to ...
10135 (record_full_memory_query): ...this. Update all users.
10136 (record_arch_list_add_reg): Rename to ...
10137 (record_full_arch_list_add_reg): ...this. Update all users.
10138 (record_arch_list_add_mem): Rename to ...
10139 (record_full_arch_list_add_mem): ...this. Update all users.
10140 (record_arch_list_add_end): Rename to ...
10141 (record_full_arch_list_add_end): ...this. Update all users.
10142 (record_gdb_operation_disable_set): Rename to ...
10143 (record_full_gdb_operation_disable_set): ...this.
10144 Update all users.
10145
88d1aa9d
MM
101462013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10147
10148 * record-full.c (DEFAULT_RECORD_INSN_MAX_NUM): Renamed to ...
10149 (DEFAULT_RECORD_FULL_INSN_MAX_NUM): ... this. Updated all users.
10150 (RECORD_IS_REPLAY): Renamed to ...
10151 (RECORD_FULL_IS_REPLAY): ... this. Updated all users.
10152 (RECORD_FILE_MAGIC): Renamed to ...
10153 (RECORD_FULL_FILE_MAGIC): ... this. Updated all users.
10154 (record_mem_entry): Renamed to ...
10155 (record_full_mem_entry): ... this. Updated all users.
10156 (record_reg_entry): Renamed to ...
10157 (record_full_reg_entry): ... this. Updated all users.
10158 (record_end_entry): Renamed to ...
10159 (record_full_end_entry): ... this. Updated all users.
10160 (record_type) <record_end, record_reg, record_mem>: Renamed
10161 to ...
10162 (record_full_type) <record_full_end, record_full_reg,
10163 record_full_mem>: ... this. Updated all users.
10164 (record_entry): Renamed to ...
10165 (record_full_entry): ... this. Updated all users.
10166 (record_core_buf_entry): Renamed to ...
10167 (record_full_core_buf_entry): ... this. Updated all users.
10168 (record_core_regbuf): Renamed to ...
10169 (record_full_core_regbuf): ... this. Updated all users.
10170 (record_core_start): Renamed to ...
10171 (record_full_core_start): ... this. Updated all users.
10172 (record_core_end): Renamed to ...
10173 (record_full_core_end): ... this. Updated all users.
10174 (record_core_buf_list): Renamed to ...
10175 (record_full_core_buf_list): ... this. Updated all users.
10176 (record_first): Renamed to ...
10177 (record_full_first): ... this. Updated all users.
10178 (record_list): Renamed to ...
10179 (record_full_list): ... this. Updated all users.
10180 (record_arch_list_head): Renamed to ...
10181 (record_full_arch_list_head): ... this. Updated all users.
10182 (record_arch_list_tail): Renamed to ...
10183 (record_full_arch_list_tail): ... this. Updated all users.
10184 (record_stop_at_limit): Renamed to ...
10185 (record_full_stop_at_limit): ... this. Updated all users.
10186 (record_insn_max_num): Renamed to ...
10187 (record_full_insn_max_num): ... this. Updated all users.
10188 (record_insn_num): Renamed to ...
10189 (record_full_insn_num): ... this. Updated all users.
10190 (record_insn_count): Renamed to ...
10191 (record_full_insn_count): ... this. Updated all users.
10192 (record_ops): Renamed to ...
10193 (record_full_ops): ... this. Updated all users.
10194 (record_core_ops): Renamed to ...
10195 (record_full_core_ops): ... this. Updated all users.
10196 (set_record_cmdlist): Renamed to ...
10197 (set_record_full_cmdlist): ... this. Updated all users.
10198 (show_record_cmdlist): Renamed to ...
10199 (show_record_full_cmdlist): ... this. Updated all users.
10200 (record_cmdlist): Renamed to ...
10201 (record_full_cmdlist): ... this. Updated all users.
10202 (record_beneath_to_resume_ops): Renamed to ...
10203 (record_full_beneath_to_resume_ops): ... this. Updated all users.
10204 (record_beneath_to_resume): Renamed to ...
10205 (record_full_beneath_to_resume): ... this. Updated all users.
10206 (record_beneath_to_wait_ops): Renamed to ...
10207 (record_full_beneath_to_wait_ops): ... this. Updated all users.
10208 (record_beneath_to_wait): Renamed to ...
10209 (record_full_beneath_to_wait): ... this. Updated all users.
10210 (record_beneath_to_store_registers_ops): Renamed to ...
10211 (record_full_beneath_to_store_registers_ops): ... this.
10212 Updated all users.
10213 (record_beneath_to_store_registers): Renamed to ...
10214 (record_full_beneath_to_store_registers): ... this.
10215 Updated all users.
10216 (record_beneath_to_xfer_partial_ops): Renamed to ...
10217 (record_full_beneath_to_xfer_partial_ops): ... this.
10218 Updated all users.
10219 (record_beneath_to_xfer_partial): Renamed to ...
10220 (record_full_beneath_to_xfer_partial): ... this.
10221 Updated all users.
10222 (record_beneath_to_insert_breakpoint): Renamed to ...
10223 (record_full_beneath_to_insert_breakpoint): ... this.
10224 Updated all users.
10225 (record_beneath_to_stopped_by_watchpoint): Renamed to ...
10226 (record_full_beneath_to_stopped_by_watchpoint): ... this.
10227 Updated all users.
10228 (record_beneath_to_stopped_data_address): Renamed to ...
10229 (record_full_beneath_to_stopped_data_address): ... this.
10230 Updated all users.
10231 (record_beneath_to_async): Renamed to ...
10232 (record_full_beneath_to_async): ... this. Updated all users.
10233 (record_goto_insn): Renamed to ...
10234 (record_full_goto_insn): ... this. Updated all users.
10235 (record_save): Renamed to ...
10236 (record_full_save): ... this. Updated all users.
10237 (record_reg_alloc): Renamed to ...
10238 (record_full_reg_alloc): ... this. Updated all users.
10239 (record_reg_release): Renamed to ...
10240 (record_full_reg_release): ... this. Updated all users.
10241 (record_mem_alloc): Renamed to ...
10242 (record_full_mem_alloc): ... this. Updated all users.
10243 (record_mem_release): Renamed to ...
10244 (record_full_mem_release): ... this. Updated all users.
10245 (record_end_alloc): Renamed to ...
10246 (record_full_end_alloc): ... this. Updated all users.
10247 (record_end_release): Renamed to ...
10248 (record_full_end_release): ... this. Updated all users.
10249 (record_entry_release): Renamed to ...
10250 (record_full_entry_release): ... this. Updated all users.
10251 (record_list_release): Renamed to ...
10252 (record_full_list_release): ... this. Updated all users.
10253 (record_list_release_following): Renamed to ...
10254 (record_full_list_release_following): ... this.
10255 Updated all users.
10256 (record_list_release_first): Renamed to ...
10257 (record_full_list_release_first): ... this. Updated all users.
10258 (record_arch_list_add): Renamed to ...
10259 (record_full_arch_list_add): ... this. Updated all users.
10260 (record_get_loc): Renamed to ...
10261 (record_full_get_loc): ... this. Updated all users.
10262 (record_check_insn_num): Renamed to ...
10263 (record_full_check_insn_num): ... this. Updated all users.
10264 (record_arch_list_cleanups): Renamed to ...
10265 (record_full_arch_list_cleanups): ... this. Updated all users.
10266 (record_message): Renamed to ...
10267 (record_full_message): ... this. Updated all users.
10268 (record_message_wrapper): Renamed to ...
10269 (record_full_message_wrapper): ... this. Updated all users.
10270 (record_message_wrapper_safe): Renamed to ...
10271 (record_full_message_wrapper_safe): ... this. Updated all users.
10272 (record_gdb_operation_disable): Renamed to ...
10273 (record_full_gdb_operation_disable): ... this. Updated all users.
10274 (record_hw_watchpoint): Renamed to ...
10275 (record_full_hw_watchpoint): ... this. Updated all users.
10276 (record_exec_insn): Renamed to ...
10277 (record_full_exec_insn): ... this. Updated all users.
10278 (record_restore): Renamed to ...
10279 (record_full_restore): ... this. Updated all users.
10280 (record_async_inferior_event_token): Renamed to ...
10281 (record_full_async_inferior_event_token): ... this.
10282 Updated all users.
10283 (record_async_inferior_event_handler): Renamed to ...
10284 (record_full_async_inferior_event_handler): ... this.
10285 Updated all users.
10286 (record_core_open_1): Renamed to ...
10287 (record_full_core_open_1): ... this. Updated all users.
10288 (record_open_1): Renamed to ...
10289 (record_full_open_1): ... this. Updated all users.
10290 (record_open): Renamed to ...
10291 (record_full_open): ... this. Updated all users.
10292 (record_close): Renamed to ...
10293 (record_full_close): ... this. Updated all users.
10294 (record_resume_step): Renamed to ...
10295 (record_full_resume_step): ... this. Updated all users.
10296 (record_resumed): Renamed to ...
10297 (record_full_resumed): ... this. Updated all users.
10298 (record_execution_dir): Renamed to ...
10299 (record_full_execution_dir): ... this. Updated all users.
10300 (record_resume): Renamed to ...
10301 (record_full_resume): ... this. Updated all users.
10302 (record_get_sig): Renamed to ...
10303 (record_full_get_sig): ... this. Updated all users.
10304 (record_sig_handler): Renamed to ...
10305 (record_full_sig_handler): ... this. Updated all users.
10306 (record_wait_cleanups): Renamed to ...
10307 (record_full_wait_cleanups): ... this. Updated all users.
10308 (record_wait_1): Renamed to ...
10309 (record_full_wait_1): ... this. Updated all users.
10310 (record_wait): Renamed to ...
10311 (record_full_wait): ... this. Updated all users.
10312 (record_stopped_by_watchpoint): Renamed to ...
10313 (record_full_stopped_by_watchpoint): ... this. Updated all users.
10314 (record_disconnect): Renamed to ...
10315 (record_full_disconnect): ... this. Updated all users.
10316 (record_detach): Renamed to ...
10317 (record_full_detach): ... this. Updated all users.
10318 (record_mourn_inferior): Renamed to ...
10319 (record_full_mourn_inferior): ... this. Updated all users.
10320 (record_kill): Renamed to ...
10321 (record_full_kill): ... this. Updated all users.
10322 (record_stopped_data_address): Renamed to ...
10323 (record_full_stopped_data_address): ... this. Updated all users.
10324 (record_registers_change): Renamed to ...
10325 (record_full_registers_change): ... this. Updated all users.
10326 (record_store_registers): Renamed to ...
10327 (record_full_store_registers): ... this. Updated all users.
10328 (record_xfer_partial): Renamed to ...
10329 (record_full_xfer_partial): ... this. Updated all users.
10330 (record_breakpoint): Renamed to ...
10331 (record_full_breakpoint): ... this. Updated all users.
10332 (record_breakpoint_p): Renamed to ...
10333 (record_full_breakpoint_p): ... this. Updated all users.
10334 (record_breakpoints): Renamed to ...
10335 (record_full_breakpoints): ... this. Updated all users.
10336 (record_sync_record_breakpoints): Renamed to ...
10337 (record_full_sync_record_breakpoints): ... this.
10338 Updated all users.
10339 (record_init_record_breakpoints): Renamed to ...
10340 (record_full_init_record_breakpoints): ... this.
10341 Updated all users.
10342 (record_insert_breakpoint): Renamed to ...
10343 (record_full_insert_breakpoint): ... this. Updated all users.
10344 (record_remove_breakpoint): Renamed to ...
10345 (record_full_remove_breakpoint): ... this. Updated all users.
10346 (record_can_execute_reverse): Renamed to ...
10347 (record_full_can_execute_reverse): ... this. Updated all users.
10348 (record_get_bookmark): Renamed to ...
10349 (record_full_get_bookmark): ... this. Updated all users.
10350 (record_goto_bookmark): Renamed to ...
10351 (record_full_goto_bookmark): ... this. Updated all users.
10352 (record_async): Renamed to ...
10353 (record_full_async): ... this. Updated all users.
10354 (record_can_async_p): Renamed to ...
10355 (record_full_can_async_p): ... this. Updated all users.
10356 (record_is_async_p): Renamed to ...
10357 (record_full_is_async_p): ... this. Updated all users.
10358 (record_execution_direction): Renamed to ...
10359 (record_full_execution_direction): ... this. Updated all users.
10360 (record_info): Renamed to ...
10361 (record_full_info): ... this. Updated all users.
10362 (record_delete): Renamed to ...
10363 (record_full_delete): ... this. Updated all users.
10364 (record_is_replaying): Renamed to ...
10365 (record_full_is_replaying): ... this. Updated all users.
10366 (record_goto_entry): Renamed to ...
10367 (record_full_goto_entry): ... this. Updated all users.
10368 (record_goto_begin): Renamed to ...
10369 (record_full_goto_begin): ... this. Updated all users.
10370 (record_goto_end): Renamed to ...
10371 (record_full_goto_end): ... this. Updated all users.
10372 (record_goto): Renamed to ...
10373 (record_full_goto): ... this. Updated all users.
10374 (init_record_ops): Renamed to ...
10375 (init_record_full_ops): ... this. Updated all users.
10376 (record_core_resume): Renamed to ...
10377 (record_full_core_resume): ... this. Updated all users.
10378 (record_core_kill): Renamed to ...
10379 (record_full_core_kill): ... this. Updated all users.
10380 (record_core_fetch_registers): Renamed to ...
10381 (record_full_core_fetch_registers): ... this. Updated all users.
10382 (record_core_prepare_to_store): Renamed to ...
10383 (record_full_core_prepare_to_store): ... this. Updated all users.
10384 (record_core_store_registers): Renamed to ...
10385 (record_full_core_store_registers): ... this. Updated all users.
10386 (record_core_xfer_partial): Renamed to ...
10387 (record_full_core_xfer_partial): ... this. Updated all users.
10388 (record_core_insert_breakpoint): Renamed to ...
10389 (record_full_core_insert_breakpoint): ... this. Updated all users.
10390 (record_core_remove_breakpoint): Renamed to ...
10391 (record_full_core_remove_breakpoint): ... this. Updated all users.
10392 (record_core_has_execution): Renamed to ...
10393 (record_full_core_has_execution): ... this. Updated all users.
10394 (init_record_core_ops): Renamed to ...
10395 (init_record_full_core_ops): ... this. Updated all users.
10396 (cmd_record_restore): Renamed to ...
10397 (cmd_record_full_restore): ... this. Updated all users.
10398 (record_save_cleanups): Renamed to ...
10399 (record_full_save_cleanups): ... this. Updated all users.
10400 (cmd_record_start): Renamed to ...
10401 (cmd_record_full_start): ... this. Updated all users.
10402 (set_record_insn_max_num): Renamed to ...
10403 (set_record_full_insn_max_num): ... this. Updated all users.
10404 (set_record_command): Renamed to ...
10405 (set_record_full_command): ... this. Updated all users.
10406 (show_record_command): Renamed to ...
10407 (show_record_full_command): ... this. Updated all users.
10408 (_initialize_record): Renamed to ...
10409 (_initialize_record_full): ... this. Updated all users.
10410
d02ed0bb
MM
104112013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10412
10413 * record.h: Split into this and ...
10414 * record-full.h: ... this.
10415 * record.c: Split into this and ...
10416 * record-full.c: ... this.
10417 * target.h (target_ops): Add new fields to_info_record,
10418 to_save_record, to_delete_record, to_record_is_replaying,
10419 to_goto_record_begin, to_goto_record_end, to_goto_record.
10420 (target_info_record): New.
10421 (target_save_record): New.
10422 (target_supports_delete_record): New.
10423 (target_delete_record): New.
10424 (target_record_is_replaying): New.
10425 (target_goto_record_begin): New.
10426 (target_goto_record_end): New.
10427 (target_goto_record): New.
10428 * target.c (target_info_record): New.
10429 (target_save_record): New.
10430 (target_supports_delete_record): New.
10431 (target_delete_record): New.
10432 (target_record_is_replaying): New.
10433 (target_goto_record_begin): New.
10434 (target_goto_record_end): New.
10435 (target_goto_record): New.
10436 * record.h: Declare struct cmd_list_element.
10437 (record_cmdlist): New declaration.
10438 (set_record_cmdlist): New declaration.
10439 (show_record_cmdlist): New declaration.
10440 (info_record_cmdlist): New declaration.
10441 (cmd_record_goto): New declaration.
10442 * record.c: Remove unnecessary includes.
10443 Include inferior.h.
10444 (cmd_record_goto): Remove declaration.
10445 (record_cmdlist): Now extern. Initialize.
10446 (set_record_cmdlist): Now extern. Initialize.
10447 (show_record_cmdlist): Now extern. Initialize.
10448 (info_record_cmdlist): Now extern. Initialize.
10449 (find_record_target): New.
10450 (require_record_target): New.
10451 (cmd_record_start): Update.
10452 (cmd_record_delete): Remove target-specific code.
10453 Call target_delete_record.
10454 (cmd_record_stop): Unpush any record target.
10455 (set_record_insn_max_num): Move to record-full.c
10456 (set_record_command): Add comment.
10457 (show_record_command): Add comment.
10458 (info_record_command): Update comment.
10459 Remove target-specific code.
10460 Call the record target's to_info_record.
10461 (cmd_record_start): New.
10462 (cmd_record_goto): Now extern.
10463 Remove target-specific code.
10464 Call target_goto_begin, target_goto_end, or target_goto.
10465 (_initialize_record): Move record target ops initialization to
10466 record-full.c.
10467 Change "record" command help text.
10468 Move "record restore", "record set", and "record show" commands to
10469 record-full.c.
10470 * Makefile.in (SFILES): Add record-full.c.
10471 (HFILES_NO_SRCDIR): Add record-full.h.
10472 (COMMON_OBS): Add record-full.o.
10473 * amd64-linux-tdep.c: Include record-full.h instead of record.h.
10474 * arm-tdep.c: Include record-full.h.
10475 * i386-linux-tdep.c: Include record-full.h instead of record.h.
10476 * i386-tdep.c: Include record-full.h.
10477 * infrun.c: Include record-full.h.
10478 * linux-record.c: Include record-full.h.
10479 * moxie-tdep.c: Include record-full.h.
10480 * record-full.c: Include record-full.h.
10481 Change module comment.
10482 (set_record_full_cmdlist): New.
10483 (show_record_full_cmdlist): New.
10484 (record_full_cmdlist): New.
10485 (record_goto_insn): New declaration.
10486 (record_save): New declaration.
10487 (record_check_insn_num): Change query string.
10488 (record_info): New.
10489 (record_delete): New.
10490 (record_is_replaying): New.
10491 (record_goto_entry): New.
10492 (record_goto_begin): New.
10493 (record_goto_end): New.
10494 (record_goto): New.
10495 (init_record_ops): Update.
10496 (init_record_core_ops): Update.
10497 (cmd_record_save): Rename to record_save. Remove target and arg checks.
10498 (cmd_record_start): New.
10499 (set_record_insn_max_num): Moved from record.c
10500 (set_record_full_command): New.
10501 (show_record_full_command): New.
10502 (_initialize_record_full): New.
10503
b48d48eb
MM
105042013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10505
10506 * target.h (add_deprecated_target_alias): New.
10507 * target.c (add_deprecated_target_alias): New.
10508
a950d57c
MM
105092013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10510
10511 * common/linux-btrace.c: Include sys/ptrace, sys/types, sys/wait.h,
10512 and signal.h.
10513 (linux_supports_btrace): Add kernel and
10514 cpuid check.
10515 (kernel_supports_btrace): New function.
10516 (cpu_supports_btrace): New function.
10517 (intel_supports_btrace): New function.
10518
9accd112
MM
105192013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10520
10521 * target.h (enum target_object): Add TARGET_OBJECT_BTRACE.
10522 * remote.c: Include btrace.h.
10523 (struct btrace_target_info): New struct.
10524 (remote_supports_btrace): New function.
10525 (send_Qbtrace): New function.
10526 (remote_enable_btrace): New function.
10527 (remote_disable_btrace): New function.
10528 (remote_teardown_btrace): New function.
10529 (remote_read_btrace): New function.
10530 (init_remote_ops): Add btrace ops.
10531 (enum <unnamed>): Add btrace packets.
10532 (struct protocol_feature remote_protocol_features[]): Add btrace packets.
10533 (_initialize_remote): Add packet configuration for branch tracing.
10534
c12a2917
MM
105352013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10536
10537 * features/btrace.dtd: New file.
10538 * Makefile.in (XMLFILES): Add btrace.dtd.
10539 * btrace.h (parse_xml_btrace): New declaration.
10540 * btrace.c: Include xml-support.h.
10541 (parse_xml_btrace): New function.
10542 (parse_xml_btrace_block): New function.
10543 (block_attributes): New struct.
10544 (btrace_attributes): New struct.
10545 (btrace_children): New struct.
10546 (btrace_elements): New struct.
10547
3e3aea48
MM
105482013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10549
10550 * amd64-linux-nat.c: Include btrace.h and linux-btrace.h.
10551 (amd64_linux_enable_btrace): New.
10552 (amd64_linux_disable_btrace): New.
10553 (amd64_linux_teardown_btrace): New.
10554 (_initialize_amd64_linux_nat): Initialize btrace ops.
10555 * i386-linux.nat.c: Include btrace.h and linux-btrace.h.
10556 (i386_linux_enable_btrace): New.
10557 (i386_linux_disable_btrace): New.
10558 (i386_linux_teardown_btrace): New.
10559 (_initialize_i386_linux_nat): Initialize btrace ops.
10560 * config/i386/linux.mh: Add linux-btrace.o.
10561 * config/i386/linux64.mh: Add linux-btrace.o.
10562
7c97f91e
MM
105632013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10564
10565 * common/linux_btrace.h: New file.
10566 * common/linux_btrace.c: New file.
10567 * Makefile.in (SFILES): Add btrace.c.
10568 (HFILES_NO_SRCDIR): Add common/linux-btrace.h.
10569 (COMMON_OBS): Add btrace.o.
10570 (linux-btrace.o): New rule.
10571
1999790b 105722013-03-11 Markus Metzger <markus.t.metzger@intel.com>
02d27625
MM
10573
10574 * target.h: Include btrace.h.
10575 (struct target_ops) <to_supports_btrace, to_enable_btrace,
10576 to_disable_btrace, to_teardown_btrace, to_read_btrace>: New.
10577 * target.c (target_supports_btrace): New function.
10578 (target_enable_btrace): New function.
10579 (target_disable_btrace): New function.
10580 (target_teardown_btrace): New function.
10581 (target_read_btrace): New function.
10582 * btrace.h: New file.
10583 * btrace.c: New file.
10584 * Makefile.in: Add btrace.c.
10585 * gdbthread.h: Include btrace.h.
10586 (struct thread_info): Add btrace field.
10587 * thread.c: Include btrace.h.
10588 (clear_thread_inferior_resources): Call target_teardown_btrace.
10589 * common/btrace-common.h: New file.
10590
61a31a67
JK
105912013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10592
10593 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Call also kill
10594 for CHILD, ignore PTRACE_KILL errors, move the inner block variable
10595 kill_status to outer block.
10596
05c56a9d
JK
105972013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10598
10599 Fix entry-values if the callee called a noreturn function.
10600 * dwarf2-frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
10601 get_frame_address_in_block. Add new comment.
10602
9112db09
JK
106032013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10604
10605 Fix entry-values in C++ across CUs.
10606 * dwarf2loc.c (call_site_to_target_addr) <FIELD_LOC_KIND_PHYSNAME>: Use
10607 lookup_minimal_symbol. Add a comment.
10608 * dwarf2read.c
10609 (read_call_site_scope) <is_ref_attr> <die_is_declaration>: Prefer
10610 DW_AT_linkage_name.
10611
9b67fcec
YQ
106122013-03-08 Yao Qi <yao@codesourcery.com>
10613
10614 * tracepoint.c (_initialize_tracepoint): Indent the code.
10615
6221be90
PA
106162013-03-08 Pedro Alves <palves@redhat.com>
10617
10618 * findcmd.c (put_bits): Change type of parameter to 'gdb_byte *'.
10619 (parse_find_args, find_command): Change type of pattern buffer
10620 locals to 'gdb_byte *'.
10621
be9a119c 106222013-03-08 Stan Shebs <stan@codesourcery.com>
f6f899bf
HAQ
10623 Hafiz Abid Qadeer <abidh@codesourcery.com>
10624
10625 * NEWS: Mention set and show trace-buffer-size commands.
10626 Mention new packet.
10627 * target.h (struct target_ops): New method
10628 to_set_trace_buffer_size.
10629 (target_set_trace_buffer_size): New macro.
10630 * target.c (update_current_target): Set up new method.
10631 * tracepoint.c (trace_buffer_size): New global.
10632 (start_tracing): Send it to the target.
10633 (set_trace_buffer_size): New function.
10634 (_initialize_tracepoint): Add new setshow for trace-buffer-size.
10635 * remote.c (remote_set_trace_buffer_size): New function.
10636 (_initialize_remote): Use it.
10637 (QTBuffer:size) New remote command.
10638 (PACKET_QTBuffer_size): New enum.
10639 (remote_protocol_features): Add an entry for
10640 PACKET_QTBuffer_size.
10641
7da3ab79
TT
106422013-03-08 Tom Tromey <tromey@redhat.com>
10643
10644 * remote-m32r-sdi.c (m32r_load): Call skip_spaces on correct
10645 variable.
10646
0c1f71e7
PA
106472013-03-07 Pedro Alves <palves@redhat.com>
10648
10649 * target.c (target_read_stralloc, target_fileio_read_alloc):
10650 *Cast pointer to 'gdb_byte *' in target call.
10651
c8af03a2
PA
106522013-03-07 Pedro Alves <palves@redhat.com>
10653
10654 * corefile.c (read_memory_string): Cast pointer to gdb_byte* in
10655 call.
10656
529480d0
KS
106572013-03-07 Keith Seitz <keiths@redhat.com>
10658
10659 * breakpoint.c (catch_syscall_split_args): Use skip_spaces.
10660 (trace_pass_command): Likewise.
10661 * cli/cli-cmds.c: Include cli/cli-utils.h.
10662 (source_command): Use skip-spaces.
10663 (disassemble_command): Likewise.
10664 * findcmd.c: Include cli/cli-utils.h.
10665 (parse_find_args): Use skip_spaces.
10666 * go32-nat.c: Include cli/cli-utils.h.
10667 (go32_sldt): Use skip_spaces.
10668 (go32_sgdt): Likewise.
10669 (go32_sidt): Likewise.
10670 (go32_pde): Likewise.
10671 (go32_pte): Likewise.
10672 (go32_pte_for_address): Likewise.
10673 * infcmd.c: Include cli/cli-utils.h.
10674 (registers_info): Use skip_spaces.
10675 * linux-tdep.c (read_mapping): Use skip_spaces_const.
10676 (linux_info_proc): Likewise.
10677 * linux-thread-db.c: Include cli/cli-utils.h.
10678 (info_auto_load_libthread_db): Use skip_spaces_const.
10679 * m32r-rom.c: Include cli/cli-utils.h.
10680 (m32r_upload_command): Use skip_spaces.
10681 * maint.c: Include cli/cli-utils.h.
10682 (maintenance_translate_address): Use skip_spaces.
10683 * mi/mi-parse.c: Include cli/cli-utils.h.
10684 (mi_parse_argv): Use skip_spaces.
10685 (mi_parse): Likewise.
10686 * minsyms.c: Include cli/cli-utils.h.
10687 (msymbol_hash_iw): Use skip_spaces_const.
10688 * objc-lang.c: Include cli/cli-utils.h.
10689 (parse_selector): Use skip_spaces.
10690 (parse_method): Likewise.
10691 * python/python.c: Include cli/cli-utils.h.
10692 (python_interactive_command)[HAVE_PYTHON]: Use skip_spaces.
10693 (python_command)[HAVE_PYTHON]: Likewise.
10694 (python_interactive_command)[!HAVE_PYTHON]: Likewise.
10695 * remote-m32r-sdi.c: Include cli/cli-utils.h.
10696 (m32r_load): Use skip_spaces.
10697 * serial.c: Include cli/cli-utils.h.
10698 (serial_open): Use skip_spaces_const.
10699 * stack.c: Include cli/cli-utils.h.
10700 (parse_frame_specification_1): Use skip_spaces_const.
10701 * symfile.c: Include cli/cli-utils.h.
10702 (set_ext_lang_command): Use skip_spaces.
10703 * symtab.c: Include cli/cli-utils.h.
10704 (rbreak_command): Use skip_spaces.
10705 * thread.c (thread_name_command): Use skip_spaces.
10706 * tracepoint.c (validate_actionline): Use skip_spaces.
10707 (encode_actions_1): Likewise.
10708 (trace_find_range_command): Likewise.
10709 (trace_find_outside_command): Likewise.
10710 (trace_dump_actions): Likewise.
10711
ac91cd70
PA
107122013-03-07 Pedro Alves <palves@redhat.com>
10713
10714 * c-lang.c (parse_one_string): Cast argument to gdb_byte *.
10715 * expprint.c (print_subexp_standard): Likewise.
10716 * utils.c (host_char_to_target): Likewise.
10717 * valprint.c (generic_emit_char, generic_printstr): Likewise.
10718 * varobj.c (value_get_print_value): Change type of local to char*.
10719 Cast it gdb_byte * in call to language printer.
10720
2898e560
PA
107212013-03-07 Pedro Alves <palves@redhat.com>
10722
10723 * charset.c (struct wchar_iterator) <input>: Change type to 'const
10724 gdb_byte *'.
10725 (make_wchar_iterator): Remove cast to char*.
10726 (wchar_iterate): Change type of local.
10727
a09b4448
PA
107282013-03-07 Pedro Alves <palves@redhat.com>
10729
10730 * regcache.c (regcache_xmalloc_1): Call XCALLOC with signed char
10731 for 'regcache->register_status'.
10732
20ced3e4
PA
107332013-03-07 Pedro Alves <palves@redhat.com>
10734
c2d6a675 10735 * breakpoint.c (breakpoint_xfer_memory): Change type of local to
20ced3e4
PA
10736 int.
10737
fe106009
PA
107382013-03-07 Pedro Alves <palves@redhat.com>
10739
10740 * stap-probe.c (handle_stap_probe): Add cast to char*.
10741
8ac2c12b
PA
107422013-03-07 Pedro Alves <palves@redhat.com>
10743
10744 * linux-record.c (record_linux_system_call) <gdb_sys_msgrcv,
10745 RECORD_MSGRCV>: Pass a signed variable to
10746 regcache_raw_read_signed, instead of an unsigned one.
10747
99f0a309
PA
107482013-03-07 Pedro Alves <palves@redhat.com>
10749
10750 * remote-notif.c (notif_debug): Change type to int.
10751 * remote-notif.h (notif_debug): Likewise.
10752
964b8317
PA
107532013-03-07 Pedro Alves <palves@redhat.com>
10754
10755 * ser-tcp.c (tcp_retry_limit): Change type to unsigned int.
10756
f0cc8ad4
PA
107572013-03-07 Pedro Alves <palves@redhat.com>
10758
10759 * remote.c (hex2bin, bin2hex): Move extern declarations to ...
10760 * remote.h (hex2bin, bin2hex): ... here.
10761 * tracepoint.c (hex2bin, bin2hex): Remove extern declarations.
10762
77dec115
EZ
107632013-03-07 Eli Zaretskii <eliz@gnu.org>
10764
10765 * utils.c (initialize_utils): Improve doc strings of "set/show
10766 width", "set/show height", and "set/show pagination".
10767
741d92cf
KS
107682013-03-06 Keith Seitz <keiths@redhat.com>
10769
10770 * ax-gdb.c (gen_printf): Make FORMAT const.
10771 * ax-gdb.h (gen_printf): Likewise.
10772 * ax-general.c (ax_string): Make STR const.
10773 * ax.h (ax_string): Likewise.
10774
7b6c814e
DE
107752013-03-06 Doug Evans <dje@google.com>
10776
10777 * elfread.c (elf_symfile_read): Move debugging printf to more
10778 logical location.
10779
634334ab
PA
107802013-03-06 Pedro Alves <palves@redhat.com>
10781
10782 * python/py-utils.c (target_string_to_unicode): Delete function.
10783 * python/python-internal.h (target_string_to_unicode): Delete
10784 declaration.
10785
e482a1a7
PM
107862013-03-06 Pierre Muller <muller@sourceware.org>
10787
10788 * linespec.c (get_current_search_block): ARI fix, use (void)
10789 for empty parameter list.
10790
4eeaa230
DE
107912013-03-05 Doug Evans <dje@google.com>
10792
10793 * ada-lang.c (ada_lookup_symbol_list_worker): New function, contents
10794 of old ada_lookup_symbol_list. In !full_search case, don't
10795 search superblocks.
10796 (ada_lookup_symbol_list): Delete arg full_search, all callers
10797 updated. Call ada_lookup_symbol_list_worker.
10798 (ada_iterate_over_symbols): Call ada_lookup_symbol_list_worker.
10799 * ada-lang.h (ada_lookup_symbol_list): Update.
10800 * language.h (language_defn): Update comment for
10801 la_iterate_over_symbols.
10802 * linespec.c (iterate_over_file_blocks): New function.
10803 (iterate_over_all_matching_symtabs): Call it.
10804 (lookup_prefix_sym): Ditto.
10805 (get_current_search_block): New function.
10806 (get_search_block): Delete.
10807 (find_label_symbols): Call get_current_search_block.
10808 (add_matching_symbols_to_info): Call iterate_over_file_blocks.
10809 * symtab.c (iterate_over_symbols): Don't search superblocks.
10810
b69b1fb1
YQ
108112013-03-05 Yao Qi <yao@codesourcery.com>
10812
10813 * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): Change
10814 parameter VAR's type from "unsigned int" to "int".
10815 * command.h (var_zuinteger_unlimited): Update its comments.
10816 (add_setshow_zuinteger_unlimited_cmd): Update the declaration.
10817
3c095f49
CV
108182013-03-05 Corinna Vinschen <vinschen@redhat.de>
10819
10820 * NEWS: Mention new target x86_64-*-cygwin*.
10821
b5b0b0af
CV
108222013-03-05 Corinna Vinschen <vinschen@redhat.de>
10823
10824 * configure.host: Add x86_64-*-cygwin* as host.
10825 * configure.tgt: Add x86_64-*-cygwin* as target.
10826 * config/i386/cygwin64.mh: New file.
10827
f6f99966
JK
108282013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
10829
10830 * linespec.c (decode_line_2): Fix duplicate request off by two message.
10831
33f448b1
JK
108322013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
10833
10834 * linespec.c (struct linespec_canonical_name): New.
10835 (struct linespec_state): Change canonical_names type to it.
10836 (add_sal_to_sals): Change variable canonical_name to canonical. Change
10837 xrealloc element size. Initialize the different CANONICAL fields.
10838 (canonical_to_fullform): New.
10839 (filter_results): Use it. Add variables canonical, fullform and
10840 cleanup.
10841 (struct decode_line_2_item, decode_line_2_compare_items): New.
10842 (decode_line_2): Remove variables iter and item_names, add variables
10843 items and items_count. Modify the code for these new variables.
10844
feb14725
CV
108452013-03-04 Corinna Vinschen <vinschen@redhat.com>
10846
10847 * coff-pe-read.c (read_pe_exported_syms): Don't return without
10848 calling do_cleanup.
10849
e83b17ba
HZ
108502013-03-04 Luis Machado <lgustavo@codesourcery.com>
10851
10852 * tracepoint.c (build_traceframe_info): Add code for byte order.
10853
a2d13a0d
KB
108542013-03-02 Kevin Buettner <kevinb@redhat.com>
10855
8dddcae8
KB
10856 * v850-tdep.c: (v850e2_register_name): Revise system register
10857 names to match current V850E2M architecture specifications.
10858 Update register number enum comments too.
f5aee5ee 10859
d79e58d8
JW
108602013-03-01 Jiong Wang <jiwang@tilera.com>
10861 Pedro Alves <palves@redhat.com>
10862
10863 * tilegx-tdep.c (tilegx_analyze_prologue): Limit bundle reading
10864 to END_ADDR.
10865 (tilegx_skip_prologue): Limit prologue analysis to section end.
10866
c4be5165
JK
108672013-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10868
10869 * dwarf2loc.c (call_site_find_chain_1): New variable save_callee_pc,
10870 use it.
10871
e362b510
PA
108722013-03-01 Pedro Alves <palves@redhat.com>
10873
10874 Use gdb_byte for bytes from the program being debugged.
10875
10876 * arm-tdep.c (arm_store_return_value, arm_get_longjmp_target):
10877 Change type of local 'buf' to gdb_byte.
10878 * avr-tdep.c (avr_frame_prev_register, avr_push_dummy_call): Likewise.
10879 * bfin-tdep.c (bfin_push_dummy_call): Likewise.
10880 * cris-tdep.c (cris_sigcontext_addr)
10881 (cris_sigtramp_frame_unwind_cache): Likewise.
10882 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp)
10883 (frv_linux_sigcontext_reg_addr, frv_linux_sigtramp_frame_cache):
10884 Likewise.
10885 * frv-tdep.c (frv_pseudo_register_write, frv_analyze_prologue): Likewise.
10886 * hppa-hpux-tdep.c (hppa32_hpux_find_global_pointer)
10887 (hppa32_hpux_search_dummy_call_sequence)
10888 (hppa_hpux_supply_save_state): Likewise.
10889 * hppa-linux-tdep.c (insns_match_pattern)
10890 (hppa_linux_find_global_pointer): Likewise.
10891 * hppa-tdep.c (hppa_in_function_epilogue_p)
10892 (skip_prologue_hard_way, hppa_frame_cache): Likewise.
10893 * i386-nto-tdep.c (i386nto_sigcontext_addr): Likewise.
10894 * i386fbsd-tdep.c (i386fbsd_supply_uthread)
10895 (i386fbsd_collect_uthread): Likewise.
10896 * ia64-hpux-tdep.c (ia64_hpux_push_dummy_code): Likewise.
10897 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address): Likewise.
10898 * ia64-tdep.c (examine_prologue, ia64_frame_cache)
10899 (ia64_frame_prev_register, ia64_sigtramp_frame_cache)
10900 (ia64_sigtramp_frame_prev_register, ia64_access_reg)
10901 (ia64_access_rse_reg, ia64_libunwind_frame_this_id)
10902 (ia64_libunwind_frame_prev_register)
10903 (ia64_libunwind_sigtramp_frame_this_id)
10904 (ia64_find_global_pointer_from_dynamic_section)
10905 (find_extant_func_descr, find_func_descr, ia64_dummy_id)
10906 (ia64_unwind_pc): Likewise.
10907 * iq2000-tdep.c (iq2000_store_return_value): Likewise.
10908 * m68hc11-tdep.c (m68hc11_push_dummy_call)
10909 (m68hc11_extract_return_value): Likewise.
10910 * m68klinux-nat.c (fetch_register, store_register): Likewise.
10911 * mep-tdep.c (mep_pseudo_cr32_read, mep_pseudo_cr32_write)
10912 (mep_get_insn, mep_push_dummy_call): Likewise.
10913 * mips-linux-tdep.c (mips_linux_get_longjmp_target)
10914 (mips_linux_in_dynsym_stub): Likewise.
10915 * mn10300-tdep.c (mep_pseudo_cr32_write): Likewise.
10916 * ppc-linux-nat.c (fetch_register, store_register): Likewise.
10917 * regcache.c (dump_endian_bytes): Change type of parameter 'buf'
10918 to gdb_byte.
10919 * remote-mips.c (mips_set_register): Likewise.
10920 * remote-sim.c (gdbsim_fetch_register): Likewise.
10921 * score-tdep.c (score7_fetch_inst): Change type of parameter
10922 'memblock' and local 'buf' to gdb_byte.
10923 (score7_malloc_and_get_memblock): Change return type to gdb_byte.
10924 Change type of local 'buf' to gdb_byte. Adjust.
10925 (score7_adjust_memblock_ptr): Change type of parameter 'memblock'
10926 to gdb_byte**.
10927 (score7_analyze_prologue): Change type of 'memblock' and
10928 'memblock_ptr' locals to gdb_byte*.
10929 * sh64-tdep.c (sh64_extract_return_value)
10930 (sh64_store_return_value): Change type of local 'buf' to gdb_byte.
10931 * solib-darwin.c (darwin_current_sos, darwin_read_exec_load_addr):
10932 * solib-pa64.c (pa64_solib_create_inferior_hook)
10933 (pa64_open_symbol_file_object): Remove local 'buf'.
10934 * solib-som.c (som_solib_create_inferior_hook, link_map_start)
10935 (som_open_symbol_file_object): Likewise.
10936 * solib-spu.c (spu_current_sos): Likewise.
10937 * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
10938 * spu-multiarch.c (parse_spufs_run, spu_fetch_registers)
10939 (spu_store_registers): Likewise.
10940 * target.c (debug_print_register): Likewise.
10941 * tic6x-tdep.c (tic6x_get_longjmp_target): Likewise.
10942 * xstormy16-tdep.c (xstormy16_store_return_value)
10943 (xstormy16_push_dummy_call, xstormy16_resolve_jmp_table_entry)
10944 (xstormy16_find_jmp_table_entry): Likewise.
10945
75cc61ca 109462013-03-01 Jiong Wang <jiwang@tilera.com>
61d8bd0e
JW
10947
10948 * tilegx-tdep.c (tilegx_get_longjmp_target): New function.
10949 (tilegx_gdbarch_init): Install it.
10950
ddb08e9c
TT
109512013-02-28 Tom Tromey <tromey@redhat.com>
10952
10953 * python/py-arch.c (archpy_disassemble): Use PyInt_Check and
10954 PyLong_Check.
10955
62d7fb51
DE
109562013-02-28 Doug Evans <dje@google.com>
10957
10958 * python/py-finishbreakpoint.c (bpfinishpy_init): gcc -Wall lint.
10959 * python/python.c (gdbpy_find_pc_line): Ditto.
10960
c4a9e8b4
TT
109612013-02-28 Tom Tromey <tromey@redhat.com>
10962
10963 * contrib/excheck.py: New file.
10964 * contrib/exsummary.py: New file.
10965 * contrib/gcc-with-excheck: New file.
10966
7f6a5dde
TT
109672013-02-28 Tom Tromey <tromey@redhat.com>
10968
10969 * python/python.c (gdbpy_print_stack): Call begin_line and
10970 fprintf_filtered inside TRY_CATCH.
10971
9e974e55
TT
109722013-02-28 Tom Tromey <tromey@redhat.com>
10973
10974 * python/python.c (gdbpy_find_pc_line): Call find_pc_line
10975 inside TRY_CATCH.
10976
dd5fa3e7
TT
109772013-02-28 Tom Tromey <tromey@redhat.com>
10978
10979 * py-finishbreakpoint.c (bpfinishpy_init): Reorganize to call
10980 frame_object_to_frame_info inside TRY_CATCH.
10981
86a3263f
TT
109822013-02-28 Tom Tromey <tromey@redhat.com>
10983
10984 * py-block.c (gdbpy_block_for_pc): Call block_for_pc inside
10985 TRY_CATCH.
10986
81b52a3a
TT
109872013-02-28 Tom Tromey <tromey@redhat.com>
10988
10989 * objfiles.h (ALL_PSPACE_OBJFILES): Remove trailing backlash.
10990
d50a0ce2
CV
109912013-02-27 Corinna Vinschen <vinschen@redhat.com>
10992
10993 * windows-nat.c: Throughout, fix format strings and casts of
10994 printf-like functions to avoid type related warnings on all
10995 platforms.
10996 (handle_output_debug_string): Fetch context information address
10997 from debug string using string_to_core_addr.
10998
e1f58301
JW
109992013-02-27 Jiong Wang <jiwang@tilera.com>
11000
11001 * regformats/reg-tilegx.dat (name): Change abi name to "tilegx".
11002 * regformats/reg-tilegx32.dat: New.
11003
4fcd89fc
JW
110042013-02-27 Jiong Wang <jiwang@tilera.com>
11005
11006 * configure.tgt (tilegx-*-linux*): Enable gdbserver.
11007
748d24e6
JW
110082013-02-27 Jiong Wang <jiwang@tilera.com>
11009
11010 * configure.tgt (tilegx-*-linux*): Replace whitespace with tab.
11011
6c8e944d
YQ
110122013-02-27 Yao Qi <yao@codesourcery.com>
11013 Pedro Alves <palves@redhat.com>
11014
11015 * tracepoint.c (tfile_trace_find): For tfind
5f8e0b8f
MF
11016 pc/tp/range/outside, look for the next trace frame instead of
11017 always starting from frame 0.
6c8e944d 11018
acd7db30
AG
110192013-02-26 Anthony Green <green@moxielogic.com>
11020
11021 * configure.tgt: Add support for moxie-*-rtems* target.
11022
025e6dce
PA
110232013-02-25 Pedro Alves <palves@redhat.com>
11024
11025 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Change
11026 warning text.
11027
ca9c94ef
MR
110282013-02-24 Maciej W. Rozycki <macro@codesourcery.com>
11029
11030 * mips-tdep.c (mips32_scan_prologue): Reset frame_offset to zero
11031 if $fp is used as the virtual frame pointer.
11032
24c274a1
AM
110332013-02-23 Alan Modra <amodra@gmail.com>
11034
11035 * elfread.c (elf_symtab_read): Do not use udata.p here to find
11036 symbol size.
11037 * ppc64-tdep.c (ppc64_elf_make_msymbol_special): New function.
11038 * ppc64-tdep.h (ppc64_elf_make_msymbol_special): Declare.
11039 * ppc-linux-tdep.c (ppc_linux_init_abi): Set up to use the above.
11040 * ppcfbsd-tdep.c (ppcfbsd_init_abi): Likewise.
11041
bfada189
JK
110422013-02-22 Jan Kratochvil <jan.kratochvil@redhat.com>
11043
11044 Code cleanup.
11045 * elfread.c (build_id_bfd_get): Make the return type const.
11046 (build_id_verify): Make the check parameter const.
11047 (build_id_to_debug_filename): Make the build_id parameter and variable
11048 data const.
11049 (find_separate_debug_file_by_buildid): Make the variable build_id const.
11050
c0355132
AM
110512013-02-21 Alan Modra <amodra@gmail.com>
11052
11053 * elfread.c (build_id_bfd_get): Adjust for elf_tdata changes.
11054
9f44fbc0
SCR
110552013-02-20 Siva Chandra Reddy <sivachandra@google.com>
11056
11057 Add a new method 'disassemble' to gdb.Architecture class.
11058 * python/py-arch.c (archpy_disassmble): Implementation of the
11059 new method gdb.Architecture.disassemble.
11060 (arch_object_methods): Add entry for the new method.
11061
b74ea3eb
JW
110622013-02-20 Jiong Wang <jiwang@tilera.com>
11063
11064 * MAINTAINERS (Write After Approval): Add myself to the list.
11065
61a672f1
PA
110662013-02-19 Pedro Alves <palves@redhat.com>
11067
11068 Garbage collect 'struct monitor_ops'::load_routine.
11069
11070 * monitor.h (struct monitor_ops) <load_routine>: Remove field.
11071 * monitor.c (monitor_load): No longer call
11072 current_monitor->load_routine.
11073 * dbug-rom.c (init_dbug_cmds): Don't set 'load_routine'.
11074 * m32r-rom.c (init_m32r_cmds): Don't set 'load_routine'.
11075 * ppcbug-rom.c (init_ppc_cmds): Don't set 'load_routine'.
11076
40e397df
PA
110772013-02-19 Pedro Alves <palves@redhat.com>
11078
11079 PR gdb/15161
11080
11081 Harmonize with generic_load.
11082
11083 * monitor.c: Include "readline/readline.h".
11084 (monitor_load): Rename parameter 'file' to 'args'. Use build_argv
11085 instead of sscanf. Use CORE_ADDR/strtoulst instead of unsigned
11086 long/strtol for the 'load_offset' local. Error out if no argument
11087 is given or if too many arguments are given. Tilde expand the
11088 passed in file name.
11089
f698ca8e
KT
110902013-02-19 Kai Tietz <ktietz@redhat.com>
11091
11092 PR gdb/15161
11093 * symfile.c (load_section_data): Change type of load_offset
11094 to CORE_ADDR.
11095 (generic_load): User strtoulst instead of strtoul for conversion
11096 of load_offset.
11097
3361b059
WL
110982013-02-19 Jiong Wang <jiwang@tilera.com>
11099
11100 * tilegx-tdep.c (tilegx_analyze_prologue): add check for
11101 for return address, "lr" register, saved on stack.
11102 * tilegx-tdep.c (tilegx_frame_cache): update "PC" reg
11103 after we invoke tilegx_analyze_prologue.
11104
3e9d5130
WL
111052013-02-19 Jiong Wang <jiwang@tilera.com>
11106
bb1bcd86
WL
11107 * tilegx-tdep.c (itilegx_gdbarch_init): char type should be signed.
11108
3361b059 111092013-02-19 Jiong Wang <jiwang@tilera.com>
bb1bcd86 11110
b74ea3eb 11111 * tilegx-tdep.c (tilegx_skip_prologue): Use skip_prologue_using_sal.
3e9d5130 11112
4aaf2503
WL
111132013-02-19 Jiong Wang <jiwang@tilera.com>
11114
b74ea3eb 11115 * tilegx-tdep.c (INT_SWINT_1_SIGRETURN): New macro.
4aaf2503
WL
11116 (tilegx_write_pc): New function.
11117 (tilegx_cannot_reference_register): Return zero if REGNO
11118 is TILEGX_FAULTNUM_REGNUM.
11119 (tilegx_gdbarch_init): Add call to set_gdbarch_write_pc.
11120 (tilegx_register_name): Add handling of "faultnum" register.
11121 * tilegx-tdep.h (enum tilegx_regnum): Add TILEGX_FAULTNUM_REGNUM.
11122 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Add
11123 handling of TILEGX_FAULTNUM_REGNUM.
11124 * tilegx-linux-nat.c (regmap): Add entry for TILEGX_FAULTNUM_REGNUM.
11125
bc23a956
WL
111262013-02-19 Jiong Wang <jiwang@tilera.com>
11127
11128 * tilegx-tdep.c (tilegx_push_dummy_call): args pushed on stack
b74ea3eb 11129 should be aligned to 64bit.
bc23a956 11130
42f45f1a
KT
111312013-02-19 Kai Tietz <ktietz@redhat.com>
11132
11133 * windows-nat.c (windows_xfer_memory): Fix debug-output
11134 for LLP64.
11135
6ce4c112
LL
111362013-02-19 Lei Liu <lei.liu2@windriver.com>
11137
11138 * mips-linux-nat.c (mips64_linux_regsets_store_registers):
11139 Don't check DSP register number if HAVE_DSP is not set.
11140
30e8ee25
AM
111412013-02-19 Alan Modra <amodra@gmail.com>
11142
11143 * elfread.c (struct build_id): Delete. Use struct elf_build_id
11144 throughout file instead.
11145 (build_id_bfd_get): Update to use new elf_tdata build_id field.
11146 Don't xmalloc return value.
11147 (build_id_verify): Similarly. Don't xfree.
11148 (build_id_to_debug_filename): Update.
11149 (find_separate_debug_file_by_buildid): Update, don't xfree.
11150
4c9ad8c2
TT
111512013-02-18 Tom Tromey <tromey@redhat.com>
11152
11153 PR gdb/15102:
11154 * dwarf2read.c (read_subrange_type): Use result of
11155 'check_typedef'.
11156
983dc440
YQ
111572013-02-16 Yuanhui Zhang <asmwarrior@gmail.com>
11158
11159 * frame.c: Remove one extra white space after #include
11160 directive.
11161
7fb2b84a
JK
111622013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
11163
11164 * contrib/cc-with-tweaks.sh: Extend the comment for -p option.
11165
edceb2a9
JK
111662013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
11167
11168 * gdb-gdb.gdb.in: Wrap set complaints, b internal_error, b info_command
11169 and dir commands into an if block.
11170
e81b7af8
TT
111712013-02-15 Sanimir Agovic <sanimir.agovic@intel.com>
11172
11173 * python/py-breakpoint (struct pybp_code): Use int instead of
11174 enum type_code.
11175
f5911ea1
HAQ
111762013-02-15 Pedro Alves <pedro@codesourcery.com>
11177 Hafiz Abid Qadeer <abidh@codesourcery.com>
11178
11179 * NEWS: Mention new field "trace-file".
11180 * tracepoint.c (trace_status_mi): Output "trace-file" field.
11181 (tfile_open): Record the trace file's filename in the trace
11182 status.
11183 (tfile_files_info): Mention the name of the trace file.
11184 Check the "filename" field explicitely.
11185 (trace_status_command): Explicitely check "filename" field.
11186 (trace_find_command): Ditto.
11187 (trace_find_pc_command): Ditto.
11188 (trace_find_tracepoint_command): Ditto.
11189 (trace_find_line_command): Ditto.
11190 (trace_find_range_command): Ditto.
11191 (trace_find_outside_command): Ditto.
11192 * tracepoint.h (struct trace_status) <from_file>: Rename it
11193 to "filename" and make it hold the trace file's filename
11194 instead of a boolean.
11195 * remote.c (remote_get_trace_status): Initialize "filename"
11196 field with NULL instead of 0.
11197
796cb314
YQ
111982013-02-15 Yao Qi <yao@codesourcery.com>
11199
11200 * remote.c: Fix a typo.
11201
42e79b1d
PM
112022013-02-14 Pierre Muller <muller@sourceware.org>
11203
11204 * contrib/ari/gdb_ari.sh (GNU/Linux rule): Remove.
11205
baea0dae
PA
112062013-02-14 Pedro Alves <palves@redhat.com>
11207
11208 * utils.c (savestring): Don't #undef it. Move function to
11209 common/common-utils.c.
11210 * common/common-utils.c: Include gdb_string.h.
11211 (savestring): Move here from utils.c.
11212 * common/common-utils.h (savestring): Declare.
11213
57c3b6ed
PA
112142013-02-14 Pedro Alves <palves@redhat.com>
11215
11216 * utils.c (savestring): Rename parameter 'size' to 'len'.
11217
d6c44983
YZ
112182013-02-14 Pedro Alves <palves@redhat.com>
11219 Yufeng Zhang <yufeng.zhang@arm.com>
11220
11221 * aarch64-linux-nat.c (aarch64_init_debug_reg_state): Delete.
11222 (aarch64_inferior_data, struct aarch64_inferior_data):
11223 Delete.
11224 (struct aarch64_process_info): New.
11225 (aarch64_process_list): New global.
11226 (aarch64_find_process_pid, aarch64_add_process)
11227 (aarch64_process_info_get): New functions.
11228 (aarch64_inferior_data_get): Delete.
11229 (aarch64_process_info_get): New function.
11230 (aarch64_forget_process): New function.
11231 (aarch64_get_debug_reg_state): New parameter 'pid'. Reimplement.
11232 (aarch64_linux_prepare_to_resume): Pass the lwp's pid to
11233 aarch64_get_debug_reg_state.
11234 (aarch64_notify_debug_reg_change): Use iterate_over_lwps
11235 instead of linux_nat_iterate_watchpoint_lwps.
11236 (aarch64_linux_new_fork): New function.
11237 (aarch64_linux_child_post_startup_inferior): Use
11238 aarch64_forget_process instead of aarch64_init_debug_reg_state.
11239 (aarch64_handle_breakpoint, aarch64_linux_insert_hw_breakpoint)
11240 (aarch64_linux_remove_hw_breakpoint)
11241 (aarch64_handle_aligned_watchpoint)
11242 (aarch64_handle_unaligned_watchpoint)
11243 (aarch64_linux_insert_watchpoint)
11244 (aarch64_linux_remove_watchpoint)
11245 (aarch64_linux_stopped_data_address): Adjust to pass the current
11246 process id to aarch64_debug_reg_state.
11247 (_initialize_aarch64_linux_nat): Install aarch64_linux_new_fork as
11248 linux_nat_new_fork hook, and aarch64_forget_process as
11249 linux_nat_forget_process hook; remove the call to
11250 register_inferior_data_with_cleanup.
11251
4819b3f8
PA
112522013-02-14 Pedro Alves <palves@redhat.com>
11253
11254 * eval.c (evaluate_subexp_for_address) <default_case_after_eval,
11255 EVAL_AVOID_SIDE_EFFECTS>: Swap and handle TYPE_CODE_REF before
11256 lval_memory.
11257
1773c82c
HAQ
112582013-02-14 Pedro Alves <pedro@codesourcery.com>
11259 Hafiz Abid Qadeer <abidh@codesourcery.com>
11260
11261 * tracepoint.h (validate_trace_state_variable_name): Declare.
11262 * tracepoint.c (validate_trace_state_variable_name): New.
11263 (trace_variable_command): Parse the trace state variable's name
11264 without using parse_expression. Do several validations.
11265 * mi/mi-main.c (mi_cmd_trace_define_variable): Don't parse the
11266 trace state variable's name with parse_expression. Validate it.
11267
53778a97
YQ
112682013-02-14 Yao Qi <yao@codesourcery.com>
11269
11270 * infcmd.c (breakpoint_proceeded): Remove it.
11271
7b3ae3a6
YQ
112722013-02-14 Yao Qi <yao@codesourcery.com>
11273
11274 * tracepoint.c (end_actions_pseudocommand): Make it static.
11275 (while_stepping_pseudocommand): Likewise.
11276 * tracepoint.h (end_actions_pseudocommand): Remove the
11277 declaration.
11278 (while_stepping_pseudocommand): Likewise.
11279
64580925
YQ
112802013-02-14 Yao Qi <yao@codesourcery.com>
11281
11282 * cli/cli-decode.c (help_cmd): Remove the declaration of
11283 "cmdlist".
11284 (help_all): Likewise.
11285
26cb8b7c
PA
112862013-02-13 Pedro Alves <palves@redhat.com>
11287
11288 * amd64-linux-nat.c (update_debug_registers_callback):
11289 Update comment.
11290 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
11291 iterate_over_lwps.
11292 (amd64_linux_prepare_to_resume): Pass the lwp's pid to
11293 i386_debug_reg_state.
11294 (amd64_linux_new_fork): New function.
11295 (_initialize_amd64_linux_nat): Install amd64_linux_new_fork as
11296 linux_nat_new_fork hook, and i386_forget_process as
11297 linux_nat_forget_process hook.
11298 * i386-linux-nat.c (update_debug_registers_callback):
11299 Update comment.
a8256ea1 11300 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
26cb8b7c
PA
11301 iterate_over_lwps.
11302 (i386_linux_prepare_to_resume): Pass the lwp's pid to
11303 i386_debug_reg_state.
11304 (i386_linux_new_fork): New function.
11305 (_initialize_i386_linux_nat): Install i386_linux_new_fork as
11306 linux_nat_new_fork hook, and i386_forget_process as
11307 linux_nat_forget_process hook.
11308 * i386-nat.c (i386_init_dregs): Delete.
11309 (i386_inferior_data, struct i386_inferior_data):
11310 Delete.
11311 (struct i386_process_info): New.
11312 (i386_process_list): New global.
11313 (i386_find_process_pid, i386_add_process, i386_process_info_get):
11314 New functions.
11315 (i386_inferior_data_get): Delete.
11316 (i386_process_info_get): New function.
11317 (i386_debug_reg_state): New parameter 'pid'. Reimplement.
11318 (i386_forget_process): New function.
11319 (i386_cleanup_dregs): Rewrite.
11320 (i386_update_inferior_debug_regs, i386_insert_watchpoint)
11321 (i386_remove_watchpoint, i386_region_ok_for_watchpoint)
11322 (i386_stopped_data_address, i386_insert_hw_breakpoint)
11323 (i386_remove_hw_breakpoint): Adjust to pass the current process id
11324 to i386_debug_reg_state.
11325 (i386_use_watchpoints): Don't register inferior data.
11326 * i386-nat.h (i386_debug_reg_state): Add new 'pid' parameter, and
11327 adjust comment.
11328 (i386_forget_process): Declare.
11329 * linux-fork.c (delete_fork): Call linux_nat_forget_process.
11330 * linux-nat.c (linux_nat_new_fork, linux_nat_forget_process_hook):
11331 New static globals.
11332 (linux_child_follow_fork): Don't call linux_nat_new_thread here.
11333 (add_initial_lwp): New, factored out from ...
11334 (add_lwp): ... this. Don't check the number of lwps before
11335 calling linux_nat_new_thread.
11336 (linux_nat_iterate_watchpoint_lwps): Delete.
11337 (linux_nat_attach): Use add_initial_lwp instead of add_lwp.
11338 (linux_handle_extended_wait): Call the linux_nat_new_fork hook on
11339 forks and vforks.
11340 (linux_nat_wait_1): Use add_initial_lwp instead of add_lwp for the
11341 initial lwp.
11342 (linux_nat_kill, linux_nat_mourn_inferior): Call
11343 linux_nat_forget_process.
11344 (linux_nat_set_new_fork, linux_nat_set_forget_process)
11345 (linux_nat_forget_process): New functions.
11346 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): Delete
11347 type.
11348 (linux_nat_iterate_watchpoint_lwps): Delete declaration.
11349 (linux_nat_new_fork_ftype, linux_nat_forget_process_ftype): New
11350 types.
11351 (linux_nat_set_new_fork, linux_nat_set_forget_process)
11352 (linux_nat_forget_process): New declarations.
11353
11354 * amd64fbsd-nat.c (super_mourn_inferior): New global.
11355 (amd64fbsd_mourn_inferior): New function.
11356 (_initialize_amd64fbsd_nat): Override to_mourn_inferior.
11357 * windows-nat.c (windows_detach): Call i386_cleanup_dregs.
11358
5befea72
MS
113592013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
11360
55015247
YQ
11361 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
11362 Adding _().
5befea72 11363
1d3ffd6b
MS
113642013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
11365
11366 * aarch64-linux-nat.c (debug_reg_change_callback)
11367 (aarch64_linux_get_debug_reg_capacity): ARI fix: Replace %llx with
11368 %s and phex().
11369
6eb04473
MS
113702013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
11371
11372 * aarch64-linux-nat.c (dr_changed_t): ARI fix: Replace long long
11373 with LONGEST.
11374
a016fc87
HAQ
113752013-02-13 Pedro Alves <palves@redhat.com>
11376 Hafiz Abid Qadeer <abidh@codesourcery.com>
11377
11378 * c-lang.c (c_op_print_tab): Add entry for UNOP_PLUS.
11379
e234dfaf
TT
113802013-02-12 Tom Tromey <tromey@redhat.com>
11381
11382 PR symtab/11464:
11383 * c-exp.y (lex_one_token): Initialize other fields of yylval on
11384 NAME return.
11385 (classify_inner_name): Remove 'first_name' argument, add
11386 'context'. Remove unused variable.
11387 (yylex): Explicitly maintain the context type. Exit loop earlier
11388 if NAME result is seen.
11389
0b1afbb3
PA
113902013-02-12 Pedro Alves <palves@redhat.com>
11391
11392 * amd64-darwin-tdep.c: Add (C) after Copyright.
11393 * cli/cli-cmds.h: Ditto.
11394 * cli/cli-decode.c: Ditto.
11395 * cli/cli-decode.h: Ditto.
11396 * cli/cli-dump.c: Ditto.
11397 * cli/cli-dump.h: Ditto.
11398 * cli/cli-interp.c: Ditto.
11399 * cli/cli-logging.c: Ditto.
11400 * cli/cli-script.c: Ditto.
11401 * cli/cli-script.h: Ditto.
11402 * cli/cli-setshow.c: Ditto.
11403 * cli/cli-setshow.h: Ditto.
11404 * cli/cli-utils.c: Ditto.
11405 * cli/cli-utils.h: Ditto.
11406 * config/alpha/nm-osf3.h: Ditto.
11407 * config/djgpp/djconfig.sh: Ditto.
11408 * config/i386/nm-fbsd.h: Ditto.
11409 * config/i386/nm-i386gnu.h: Ditto.
11410 * config/nm-linux.h: Ditto.
11411 * config/nm-nto.h: Ditto.
11412 * config/rs6000/nm-rs6000.h: Ditto.
11413 * config/sparc/nm-sol2.h: Ditto.
11414 * darwin-nat-info.c: Ditto.
11415 * dfp.c: Ditto.
11416 * dfp.h: Ditto.
11417 * gdb-demangle.h: Ditto.
11418 * i386-darwin-nat.c: Ditto.
11419 * i386-darwin-tdep.c: Ditto.
11420 * linux-fork.h: Ditto.
11421 * m32c-tdep.c: Ditto.
11422 * microblaze-linux-tdep.c: Ditto.
11423 * microblaze-rom.c: Ditto.
11424 * microblaze-tdep.c: Ditto.
11425 * microblaze-tdep.h: Ditto.
11426 * mips-linux-tdep.h: Ditto.
11427 * ppc-ravenscar-thread.c: Ditto.
11428 * ppc-ravenscar-thread.h: Ditto.
11429 * prologue-value.c: Ditto.
11430 * prologue-value.h: Ditto.
11431 * ravenscar-thread.c: Ditto.
11432 * ravenscar-thread.h: Ditto.
11433 * sparc-ravenscar-thread.c: Ditto.
11434 * sparc-ravenscar-thread.h: Ditto.
11435 * tilegx-linux-tdep.c: Ditto.
11436 * unwind_stop_reasons.def: Ditto.
11437 * windows-nat.h: Ditto.
11438 * xtensa-linux-tdep.c: Ditto.
11439 * xtensa-xtregs.c: Ditto.
11440 * regformats/regdat.sh: Ditto.
11441 * regformats/regdef.h: Ditto.
11442
6c01dd94
PA
114432013-02-12 Pedro Alves <palves@redhat.com>
11444
11445 * break-catch-sig.c: Update copyright years.
11446
b65a2bd9
SCR
114472013-02-11 Siva Chandra Reddy <sivachandra@google.com>
11448
11449 Add support for a destructor for ui_out data and use it to
11450 provide a ui_out destructor.
11451 * ui-out.h: Declare the new ui_out destructor.
11452 (ui_out_impl): Add a field for data destructor in ui_out_impl.
11453 * ui-out.c (default_data_destroy): Add a default data destructor
11454 which does nothing.
11455 (default_ui_out_impl): Set the new data_destroy field to
11456 default_data_destroy
11457 (uo_data_destroy): Local function which invokes the data
11458 destructor if present.
11459 (clear_table): Local function which clears the table data of a
11460 ui_out object.
11461 (ui_out_destroy): Public function which frees a ui_out object.
11462 (ui_out_table_end): Use the new clear_table function.
11463 * cli-out.c (cli_ui_out_impl): Set the new data_destroy field to
11464 NULL.
11465 * mi/mi-out.c (mi_ui_out_impl): Set the new data_destroy field
11466 to NULL.
11467
c2792f5a
DE
114682013-02-11 Doug Evans <dje@google.com>
11469
11470 * printcmd.c (printf_c_string,printf_wide_c_string): New functions.
11471 (printf_decfloat): New function. Broken out from ui_printf.
11472 Remove unnecessary code to shift the entire format string down.
11473 (printf_pointer): New function.
11474 (ui_printf): Code to print C strings, wide C strings, decfloats,
11475 and pointers moved to separate functions.
11476
d9e98382
SDJ
114772013-02-11 Sergio Durigan Junior <sergiodj@redhat.com>
11478
11479 * valops.c (value_assign): Handling bitfield offset in
11480 `lval_internalvar_component' case.
11481
4ff3ce77
DE
114822013-02-08 Doug Evans <dje@google.com>
11483
11484 * common/format.c (parse_format_string): Fix whitespace.
11485
901900c4
MGD
114862013-02-08 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
11487
11488 * stack.c (return_command): Work around uninitialized variable
11489 warning.
11490
b5dbc8d4
YZ
114912013-02-08 Yufeng Zhang <yufeng.zhang@arm.com>
11492
11493 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET): Change the
11494 number of the registers from 36 to 34.
11495
51d66578
MS
114962013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
11497
11498 * NEWS: Mention new AArch64 native and target support.
11499
176b1c95
MS
115002013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
11501
11502 * MAINTAINERS (Write After Approval): Add myself.
11503
9d19df75
MS
115042013-02-08 Jim MacArthur <jim.macarthur@arm.com>
11505 Marcus Shawcroft <marcus.shawcroft@arm.com>
11506 Nigel Stephens <nigel.stephens@arm.com>
11507 Yufeng Zhang <yufeng.zhang@arm.com>
11508
11509 * aarch64-linux-nat.c: New file.
11510 * config/aarch64/linux.mh: New file.
11511 * configure.host: Add AArch64.
11512 * Makefile.in (ALLDEPFILES): Add aarch64-linux-nat.c.
11513
7e1e0340
DE
115142013-02-07 Doug Evans <dje@google.com>
11515
11516 * cli/cli-cmds.c (_initialize_cli_cmds): Clarify argument to
11517 disassemble command.
11518
45e25a36
MS
115192013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
11520
11521 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
11522 set_gdbarch_fetch_tls_load_module_address.
11523
bbfdfe1c
DM
115242013-02-06 David S. Miller <davem@davemloft.net>
11525
11526 * sparc-tdep.c (sparc32_return_value): Handle writing return value when
11527 using RETURN_VALUE_ABI_PRESERVES_ADDRESS.
11528 * value.c (struct_return_convention): New function.
11529 (using_struct_return): Implement in terms of struct_return_convention.
11530 * value.h (struct_return_convention): Declare.
11531 * stack.c (return_command): Allow successful overriding of the return
11532 value when RETURN_VALUE_ABI_PRESERVES_ADDRESS.
11533
bc9abe4a
TT
115342013-02-06 Tom Tromey <tromey@redhat.com>
11535
11536 * python/py-type.c (typy_strip_typedefs): Don't call check_typedef
11537 outside of TRY_CATCH.
11538
134a2066
YQ
115392013-02-06 Yao Qi <yao@codesourcery.com>
11540
11541 * mi/mi-interp.c: Include "tracepoint.h".
11542 (mi_tsv_modified): Declare.
11543 (mi_tsv_created, mi_tsv_deleted): Update declaration.
11544 (mi_interpreter_init): Call observer_attach_tsv_modified.
11545 (mi_tsv_modified): New.
11546 (mi_tsv_created, mi_tsv_deleted): Update.
11547 * tracepoint.c (trace_variable_command): Call
11548 observer_notify_tsv_modified if the initial value of tsv is
11549 changed.
11550 (delete_trace_state_variable): Call
11551 observer_notify_tsv_deleted earlier.
11552 (trace_variable_command): Caller update.
11553 (create_tsv_from_upload): Likewise.
11554 * observer.sh: Declare "struct trace_state_variable".
11555
11556 * NEWS: Mention the new MI notification "=tsv-modified".
11557
59be2b6a
DE
115582013-02-05 Doug Evans <dje@google.com>
11559
11560 * completer.c (location_completer): Fix typo in comment.
11561
d30113d4
JK
115622013-02-05 Jan Kratochvil <jan.kratochvil@redhat.com>
11563
11564 * breakpoint.c (add_location_to_breakpoint): Insert the location with
11565 ADDRESS sorted.
11566
14ac654f
MS
115672013-02-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
11568
11569 * aarch64-tdep.c (aarch64_analyze_prologue): ARI fix:
11570 Refactor if statement to avoid trailing || operator.
11571
543bf33d
AT
115722013-02-05 Andreas Tobler <andreast@fgznet.ch>
11573
11574 * NEWS: Add PowerPC FreeBSD as a new native configuration.
11575
dc18f110
AT
115762013-02-04 Andreas Tobler <andreast@fgznet.ch>
11577
11578 * Makefile.in (ALL_TARGET_OBS): Add powerpc FreeBSD files.
11579 * configure.host: Add powerpc*-*-freebsd* target.
11580 * configure.tgt: Add target info for powerpc*-*-freebsd*.
11581 * ppcfbsd-nat.c, ppcfbsd-tdep.h, ppcfbsd-tdep.c: New files.
11582 * config/powerpc/fbsd.mh: New file.
11583
b3ac9c77
SDJ
115842013-02-04 Sergio Durigan Junior <sergiodj@redhat.com>
11585 Denys Vlasenko <dvlasenk@redhat.com>
11586 Pedro Alves <palves@redhat.com>
11587
11588 * gdbarch.sh (elfcore_write_linux_prpsinfo): New F hook.
11589 (struct elf_internal_linux_prpsinfo): Forward declare.
11590 * gdbarch.h, gdbarch.c: Regenerate.
11591 * linux-tdep.c: Include `cli/cli-utils.h'.
11592 (linux_fill_prpsinfo): New function.
11593 (linux_make_corefile_notes): Use linux_fill_prpsinfo. If there's
11594 an elfcore_write_linux_prpsinfo hook, use it, otherwise, use
11595 elfcore_write_linux_prpsinfo32 or elfcore_write_linux_prpsinfo64
11596 depending on gdbarch pointer bitness.
11597 * ppc-linux-tdep.c: Include elf-bfd.h.
11598 (ppc_linux_init_abi): Hook in elfcore_write_ppc_linux_prpsinfo32
11599 on 32-bit.
11600
176eb98c
MS
116012013-02-04 Jim MacArthur <jim.macarthur@arm.com>
11602 Marcus Shawcroft <marcus.shawcroft@arm.com>
11603 Nigel Stephens <nigel.stephens@arm.com>
11604 Yufeng Zhang <yufeng.zhang@arm.com>
11605
11606 * configure.tgt (aarch64*-*-linux*): Set build_gdbserver=yes.
11607
cf0dbd6f
MS
116082013-02-04 Jim MacArthur <jim.macarthur@arm.com>
11609 Marcus Shawcroft <marcus.shawcroft@arm.com>
11610 Nigel Stephens <nigel.stephens@arm.com>
11611 Yufeng Zhang <yufeng.zhang@arm.com>
11612
11613 * aarch64-newlib-tdep.c: New file.
11614 * configure.tgt: Add aarch64-newlib-tdep.o to gdb_target_obs of
11615 aarch64*-*-elf.
11616 * defs.h (enum gdb_osabi): Add GDB_OSABI_NEWLIB.
11617 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-newlib-tdep.o.
11618 (ALLDEPFILES): Add aarch64-newlib-tdep.c.
11619 * osabi.c (gdb_osabi_names): Add "Newlib".
11620
1ae3db19
MS
116212013-02-04 Jim MacArthur <jim.macarthur@arm.com>
11622 Marcus Shawcroft <marcus.shawcroft@arm.com>
11623 Nigel Stephens <nigel.stephens@arm.com>
11624 Yufeng Zhang <yufeng.zhang@arm.com>
11625
11626 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-linux-tdep.o.
11627 (ALLDEPFILES): Add aarch64-linux-tdep.c.
11628 * aarch64-linux-tdep.c: New file.
11629 * aarch64-linux-tdep.h: New file.
11630 * aarch64-tdep.h (gdbarch_tdep): Define gregset and fpregset.
11631 * configure.tgt: Add aarch64-none-linux-gnu.
11632
07b287a0
MS
116332013-02-04 Jim MacArthur <jim.macarthur@arm.com>
11634 Marcus Shawcroft <marcus.shawcroft@arm.com>
11635 Nigel Stephens <nigel.stephens@arm.com>
11636 Yufeng Zhang <yufeng.zhang@arm.com>
11637
11638 * Makefile.in (ALL_64_TARGET_OBS): Add arch64-tdep.o.
11639 (HFILES_NO_SRCDIR): Add aarch64-tdep.h.
11640 (ALLDEPFILES): Add aarch64-tdep.c.
11641 * aarch64-tdep.c: New file.
11642 * aarch64-tdep.h: New file.
11643 * configure.tgt: Add AArch64.
11644 * features/Makefile (WHICH): Add aarch64 and aarch64-without-fpu.
11645 (aarch64-expedite): New definition.
11646 * features/aarch64-core.xml: New file.
11647 * features/aarch64-fpu.xml: New file.
11648 * features/aarch64-without-fpu.c: New file (generated).
11649 * features/aarch64-without-fpu.xml: New file.
11650 * features/aarch64.c: New file (generated).
11651 * features/aarch64.xml: New file.
11652 * regformats/aarch64-without-fpu.dat: New file (generated).
11653 * regformats/aarch64.dat: New file (generated).
11654
0f1b18ab
JK
116552013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11656
11657 * contrib/expect-read1.c: New file.
11658 * contrib/expect-read1.sh: New file.
11659
233d95b5
JK
116602013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11661
11662 * dwarf2read.c (file_file_name): New function with code from
11663 file_full_name.
11664 (file_full_name): Move most of the code to file_file_name.
11665 (macro_start_file): Rename variable full_name to file_name and use
11666 file_file_name for it. Add comp_dir parameter to new_macro_table.
11667 * macrocmd.c (show_pp_source_pos): New variable fullname. Replace any
11668 macro_source_file->filename access by macro_source_fullname call.
11669 * macroscope.c (_initialize_macroscope): Update the new_macro_table
11670 caller.
11671 * macrotab.c (struct macro_table): New field comp_dir.
11672 (macro_include): New variables link_fullname and source_fullname.
11673 Replace any macro_source_file->filename access by macro_source_fullname
11674 call.
11675 (macro_lookup_inclusion): Remove the partial filenames checking code.
11676 (check_for_redefinition): New variables source_fullname and
11677 found_key_fullname. Replace any macro_source_file->filename access by
11678 macro_source_fullname call.
11679 (macro_undef): New variables source_fullname and key_fullname. Replace
11680 any macro_source_file->filename access by macro_source_fullname call.
11681 (macro_lookup_definition): New variables retval and source_fullname.
11682 Replace any macro_source_file->filename access by macro_source_fullname
11683 call.
11684 (foreach_macro): New variable key_fullname. Replace any
11685 macro_source_file->filename access by macro_source_fullname call.
11686 (foreach_macro_in_scope): New variable datum_fullname. Replace any
11687 macro_source_file->filename access by macro_source_fullname call.
11688 (new_macro_table): Add parameter comp_dir. Initialize T with it.
11689 (macro_source_fullname): New function.
11690 * macrotab.h (struct macro_source_file): Extent the filename field
11691 comment.
11692 (new_macro_table): New parameter comp_dir, add a comment for it.
11693 (macro_source_fullname): new declaration.
11694
da235a7c
JK
116952013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11696
11697 * dwarf2read.c (dw2_map_symtabs_matching_filename): Move variable
11698 this_real_name to outer block. Use it also for
11699 compare_filenames_for_search.
11700 (dw2_expand_symtabs_matching): New variable this_real_name. Use it
11701 with dw2_get_real_path for file_matcher, considering also
11702 BASENAMES_MAY_DIFFER.
11703 (file_full_name): Prepend COMP_DIR even for relative lh->INCLUDE_DIRS.
11704
fbd9ab74
JK
117052013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11706
11707 * dwarf2read.c (dw2_expand_symtabs_matching): Add basenames parameter
11708 to the file_matcher parameter. Pass 0 to it.
11709 (dwarf2_create_include_psymtab): Copy also DIRNAME.
11710 * psymtab.c (partial_map_symtabs_matching_filename): Drop handling of
11711 NULL psymtab_to_fullname result.
11712 (psymtab_to_fullname): Remove variable r. Never return NULL, assemble
11713 an expected filename instead.
11714 (expand_symtabs_matching_via_partial): Add basenames parameter to the
11715 file_matcher parameter. Call also psymtab_to_fullname, after newly
11716 considering BASENAMES_MAY_DIFFER.
11717 * source.c (rewrite_source_path): Remove static.
11718 * source.h (rewrite_source_path): New declaration.
11719 * symfile.h (struct quick_symbol_functions): Add basenames parameter to
11720 the expand_symtabs_matching field. Comment it.
11721 * symtab.c (file_matches): New function comment. Add parameter
11722 basenames, implement it.
11723 (search_symbols_file_matches): Add basenames parameter. Update the
11724 file_matches caller.
11725 (search_symbols): Match FILES also against symtab_to_fullname.
11726 Optimize it for BASENAMES_MAY_DIFFER.
11727
56d397a3
JK
117282013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11729
11730 * source.c (print_source_lines_base): Print for TUI also "fullname".
11731 * tui/tui-data.c (init_content_element): Change tui_locator_element
11732 field to full_name.
11733 * tui/tui-data.h (struct tui_locator_element): Likewise.
11734 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Rename
11735 tui_update_locator_filename calls to tui_update_locator_fullname.
11736 Replace symtab->filename refererence by symtab_to_fullname call.
11737 * tui/tui-out.c (tui_field_string): Check for "fullname" now.
11738 * tui/tui-source.c (tui_set_source_content): Change tui_locator_element
11739 field to full_name. Replace symtab->filename refererence by
11740 symtab_to_fullname call.
11741 (tui_show_symtab_source): Rename parameter to fullname. Change
11742 tui_locator_element field to full_name.
11743 * tui/tui-stack.c: Include source.h.
11744 (tui_set_locator_filename): Rename the declaration to ...
11745 (tui_set_locator_fullname): ... here. Rename its parameter to
11746 fullname, updates its comment.
11747 (tui_set_locator_info): Rename its parameter to fullname.
11748 (tui_set_locator_filename): Rename the definition to ...
11749 (tui_set_locator_fullname): ... here. Rename its parameter to
11750 fullname, updates its comment. Change tui_locator_element field to
11751 full_name.
11752 (tui_set_locator_info): Rename its parameter to fullname.
11753 (tui_set_locator_info): Rename callee to tui_set_locator_fullname.
11754 (tui_update_locator_filename): Rename to ...
11755 (tui_update_locator_fullname): ... here. Rename callee to
11756 tui_set_locator_fullname.
11757 (tui_show_frame_info): Replace symtab->filename refererence by
11758 symtab_to_fullname call.
11759 * tui/tui-stack.h (tui_update_locator_filename): Rename to ...
11760 (tui_update_locator_fullname): ... here.
11761 * tui/tui-winsource.c (tui_display_main): Rename the callee to
11762 tui_update_locator_fullname. Replace symtab->filename refererence by
11763 symtab_to_fullname call.
11764 * tui/tui.c (tui_show_source): Rename its parameter to fullname.
11765 Rename the callee to tui_update_locator_fullname.
11766 * tui/tui.h (tui_show_source): Rename its parameter to fullname.
11767
05cba821
JK
117682013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11769
11770 * ada-lang.c (user_select_syms): Replace symtab->filename refererences
11771 by symtab_to_filename_for_display calls.
11772 * breakpoint.c (print_breakpoint_location, resolve_sal_pc): Likewise.
11773 (clear_command): New variable sal_fullname, initialize it. Replace
11774 compare_filenames_for_search by filename_cmp with sal_fullname.
11775 (say_where, update_static_tracepoint): Replace symtab->filename
11776 refererences by symtab_to_filename_for_display calls.
11777 * cli/cli-cmds.c (edit_command, list_command, ambiguous_line_spec):
11778 Likewise.
11779 * dwarf2read.c: Include source.h.
11780 (fixup_go_packaging): Replace symtab->filename refererences by
11781 symtab_to_filename_for_display calls.
11782 * linespec.c (add_sal_to_sals): Rename variable filename to fullname.
11783 Replace symtab->filename refererences by symtab_to_filename_for_display
11784 calls.
11785 (create_sals_line_offset, convert_linespec_to_sals): New variable
11786 fullname, initialize it, replace symtab->filename reference by the
11787 variable.
11788 * linux-fork.c: Include source.h.
11789 (info_checkpoints_command): Replace symtab->filename refererences by
11790 symtab_to_filename_for_display calls.
11791 * macroscope.c (sal_macro_scope): Replace symtab->filename refererences
11792 by symtab_to_filename_for_display calls.
11793 * mdebugread.c: Include source.h.
11794 (psymtab_to_symtab_1): Replace symtab->filename refererences by
11795 symtab_to_filename_for_display calls.
11796 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
11797 (mi_cmd_file_list_exec_source_files): Likewise.
11798 * printcmd.c: Include source.h.
11799 (build_address_symbolic): Replace symtab->filename refererences by
11800 symtab_to_filename_for_display calls.
11801 * psymtab.c (partial_map_symtabs_matching_filename)
11802 (read_psymtabs_with_fullname): Call compare_filenames_for_search also
11803 with psymtab_to_fullname.
11804 * python/py-symtab.c (stpy_str): Replace symtab->filename refererences
11805 by symtab_to_filename_for_display calls.
11806 (stpy_get_filename): New variable filename, initialize it, use instead
11807 of symtab->filename refererences.
11808 (salpy_str): Make variable filename const char *. Replace
11809 symtab->filename refererences by symtab_to_filename_for_display calls.
11810 * skip.c: Include source.h and filenames.h.
11811 (skip_file_command): Remove const from the symtab variable. Replace
11812 symtab->filename refererences by symtab_to_fullname call.
11813 (function_name_is_marked_for_skip): New variables searched_for_fullname
11814 and fullname. Use them to search also with symtab's fullname.
11815 * source.c (find_source_lines): Replace symtab->filename refererences
11816 by symtab_to_filename_for_display calls.
11817 (print_source_lines_base): New variable filename, use it instead of
11818 symtab->filename. Replace symtab->filename refererences by
11819 symtab_to_filename_for_display calls.
11820 (line_info, forward_search_command): Replace symtab->filename
11821 refererences by symtab_to_filename_for_display calls.
11822 (reverse_search_command): Replace symtab->filename refererences by
11823 symtab_to_filename_for_display calls. New variable filename for it.
11824 * stack.c (frame_info): Likewise.
11825 * symmisc.c: Include source.h.
11826 (dump_objfile, dump_symtab_1, maintenance_print_symbols)
11827 (maintenance_info_symtabs): Replace symtab->filename refererences by
11828 symtab_to_filename_for_display calls.
11829 * symtab.c (iterate_over_some_symtabs): Call
11830 compare_filenames_for_search also with symtab_to_fullname.
11831 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Replace
11832 symtab->filename refererences by symtab_to_filename_for_display calls.
11833 (find_line_symtab): Replace symtab->filename refererences by
11834 symtab_to_filename_for_display calls.
11835 (file_matches): Replace filename_cmp by compare_filenames_for_search.
11836 (print_symbol_info): Make the last parameter const char *. New
11837 variable s_filename. Use it in the function.
11838 (symtab_symbol_info): Make the last_filename variable const char *.
11839 Replace symtab->filename refererences by symtab_to_filename_for_display
11840 calls.
11841 (rbreak_command): New variable fullname. Use it. Replace
11842 symtab->filename refererence by symtab_to_filename_for_display call.
11843 * tracepoint.c (set_traceframe_context, trace_find_line_command)
11844 (print_one_static_tracepoint_marker): Replace symtab->filename
11845 refererences by symtab_to_filename_for_display calls.
11846 * tui/tui-source.c (tui_set_source_content): New variables filename and
11847 s_filename. Replace symtab->filename refererences by this variable.
11848 Replace other symtab->filename refererences by
11849 symtab_to_filename_for_display calls.
11850
1b56eb55
JK
118512013-02-03 Eldar Gaynetdinov <hal9000ed2k@gmail.com>
11852 Jan Kratochvil <jan.kratochvil@redhat.com>
11853
11854 Add a new variable that controls a way in which filenames are
11855 displayed.
11856 * NEWS (set filename-display): New entry.
11857 * source.c (filename_display_basename, filename_display_relative)
11858 (filename_display_absolute, filename_display_kind_names)
11859 (filename_display_string, show_filename_display_string)
11860 (symtab_to_filename_for_display): New.
11861 (_initialize_source): Added initialization of 'filename-display'
11862 variable.
11863 * source.h (symtab_to_filename_for_display): Added declaration.
11864 * stack.c (print_frame): Added new variable and calling of a new
11865 function and condition with this variable. Changed third argument of
11866 calling of a function.
11867
aa079c93
JK
118682013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11869
11870 * tui/tui-data.c (init_win_info, tui_del_window, tui_free_window):
11871 Rename field reference filename to fullname.
11872 * tui/tui-data.h (struct tui_source_info): Rename field filename to
11873 fullname. New comment for it.
11874 * tui/tui-source.c (tui_set_source_content): Rename field reference
11875 filename to fullname. Initialize field by symtab_to_fullname now.
11876 * tui/tui-winsource.c (tui_update_breakpoint_info): Rename field
11877 reference filename to fullname. Use symtab_to_fullname during
11878 comparison.
11879
652a8996
JK
118802013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11881
11882 Code cleanup.
11883 * dwarf2read.c (dw2_expand_symtabs_with_filename): Rename to ...
11884 (dw2_expand_symtabs_with_fullname): ... here. Rename parameter
11885 filename to fullname. Rename variable this_name to this_fullname.
11886 Lowercase FILENAME_CMP call.
11887 (dw2_find_symbol_file): New comment for the returned string.
11888 (dwarf2_gdb_index_functions): Rename the function to
11889 dw2_expand_symtabs_with_fullname.
11890 * psymtab.c (read_psymtabs_with_filename): Rename to ...
11891 (read_psymtabs_with_fullname): ... here. Rename parameter filename to
11892 fullname.
11893 (psym_functions): Rename the function to read_psymtabs_with_fullname.
11894 * symfile.h (struct quick_symbol_functions): Rename field
11895 expand_symtabs_with_filename to expand_symtabs_with_fullname and its
11896 parameter filename to fullname. Document returned string meaning for
11897 find_symbol_file.
11898 * symtab.c (find_line_symtab): Rename the called function to
11899 expand_symtabs_with_fullname.
11900
af529f8f
JK
119012013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11902
11903 Code cleanup.
11904 * breakpoint.c (clear_command): Remove variable is_abs, unify the
11905 call of filename_cmp with compare_filenames_for_search.
11906 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove variable
11907 is_abs, unify the call of FILENAME_CMP with
11908 compare_filenames_for_search. New gdb_asserts for real_path and name.
11909 Unify the call of compare_filenames_for_search with FILENAME_CMP.
11910 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
11911 * symfile.h (struct quick_symbol_functions): Extend the comment for
11912 map_symtabs_matching_filename.
11913 * symtab.c (compare_filenames_for_search): Remove the function comment
11914 relative path requirement. Handle absolute filenames, with a comment.
11915 (iterate_over_some_symtabs): Remove variable is_abs, unify the call of
11916 FILENAME_CMP with compare_filenames_for_search. New gdb_asserts for
11917 real_path and name. Unify the call of compare_filenames_for_search
11918 with FILENAME_CMP.
11919 (iterate_over_symtabs): New gdb_assert on REAL_PATH.
11920
2f202fde
JK
119212013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11922
11923 Code cleanup.
11924 * breakpoint.c (print_breakpoint_location): Replace bp_location field
11925 source_file references by symtab field references. Remove variables
11926 sal and fullname.
11927 (momentary_breakpoint_from_master, add_location_to_breakpoint):
11928 (clear_command, say_where): Replace bp_location field source_file
11929 references by symtab field references.
11930 (bp_location_dtor): Remove the source_file reference.
11931 (update_static_tracepoint): Replace bp_location field source_file
11932 references by symtab field references.
11933 (breakpoint_free_objfile): New function.
11934 * breakpoint.h (struct bp_location): Extend the comment for line_number.
11935 Replace the field source_file by field symtab, extend its comment.
11936 (breakpoint_free_objfile): New declaration.
11937 * objfiles.c (free_objfile): Call breakpoint_free_objfile.
11938 * tui/tui-winsource.c (tui_update_breakpoint_info): Replace bp_location
11939 field source_file references by symtab field references.
11940
f5b95b50
JK
119412013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11942
11943 Replace xfullpath calls by gdb_realpath calls.
11944 * cli/cli-cmds.c (find_and_open_script): Remove xfullpath from the
11945 function comment.
11946 * dwarf2read.c (dw2_map_expand_apply): Remove parameter full_path.
11947 Remove it from the iterate_over_some_symtabs call.
11948 (dw2_map_symtabs_matching_filename): Remove parameter full_path.
11949 Remove it from the dw2_map_expand_apply calls, remove a block handling
11950 it.
11951 * psymtab.c (partial_map_expand_apply): Remove parameter full_path.
11952 Remove it from the iterate_over_some_symtabs call.
11953 (partial_map_symtabs_matching_filename): Remove parameter full_path.
11954 Remove it from the partial_map_expand_apply calls, remove a block
11955 handling it. Drop gdb_realpath call and cleanups from the real_path
11956 handling.
11957 * source.c (openp): Drop the comment part about xfullpath. Replace
11958 xfullpath calls by gdb_realpath calls.
11959 (find_and_open_source): Replace xfullpath call by gdb_realpath call.
11960 * symfile.h (struct quick_symbol_functions): Remove parameter full_path
11961 from method map_symtabs_matching_filename and its comment.
11962 * symmisc.c (maintenance_print_msymbols): Replace xfullpath call by
11963 gdb_realpath call.
11964 * symtab.c (iterate_over_some_symtabs): Remove parameter full_path,
11965 remove it also from the function comment, remove a block handling it.
11966 Drop gdb_realpath call and cleanups from the real_path handling.
11967 (iterate_over_symtabs): Drop variable full_path and its use.
11968 * symtab.h (iterate_over_some_symtabs): Remove parameter full_path.
11969 * utils.c (xfullpath): Remove.
11970 * utils.h (xfullpath): Remove.
11971
d78489bf
AT
119722013-02-01 Andreas Tobler <andreast@fgznet.ch>
11973
11974 * Makefile.in (ALL_TARGET_OBS): Add ppc64-tdep.o.
11975 (HFILES_NO_SRCDIR): Add ppc64-tdep.h.
11976 (ALLDEPFILES): Add ppc64-tdep.c.
11977 * configure.tgt (powerpc-*-linux* | powerpc64-*-linux*): Add
11978 ppc64-tdep.o to gdb_target_obs.
11979 * ppc64-tdep.h: New file.
11980 * ppc64-tdep.c: New file.
11981 (insn_d, insn_ds, insn_xfx, ppc64_desc_entry_point): Move from
11982 ppc-linux-tdep.c to here.
11983 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN)
11984 (PPC64_STANDARD_LINKAGE2_LEN): Likewise and use ARRAY_SIZE macro.
11985 (ppc64_standard_linkage1_target, ppc64_standard_linkage2_target)
11986 (ppc64_standard_linkage3_target, ppc64_skip_trampoline_code): Move
11987 from ppc-linux-tdep.c to here.
11988 (ppc64_convert_from_func_ptr_addr): Rename from
11989 ppc64_linux_convert_from_func_ptr_addr to
11990 ppc64_convert_from_func_ptr_addr and move from ppc-linux-tdep.c to
11991 here.
11992 * rs6000-tdep.c:
11993 (read_insn): Move from ppc-linux-tdep.c to here.
11994 (insns_match_pattern, insn_d_field, insn_ds_field): Move
11995 from ppc-linux-tdep.c to here and rename them with the ppc_ prefix.
11996 * ppc-linux-tdep.c: Include ppc64-tdep.h.
11997 Removed above functions.
11998 (ppc_linux_init_abi): Adjust.
11999
8db60374
AR
120002013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
12001
12002 * ada-valprint.c (ada_print_floating): Remove unused 'len'.
12003
f2e5f4ce
AR
120042013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
12005
12006 * ada-lang.c (assign_aggregate): Remove unused 'is_array_aggregate'.
12007
c1f7d745
PA
120082013-02-01 Pedro Alves <palves@redhat.com>
12009
12010 * dummy-frame.c (deprecated_pc_in_call_dummy): Delete function.
12011 * frame.h (deprecated_pc_in_call_dummy): Delete declaration.
12012
8a92335b
JK
120132013-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
12014
12015 * elfread.c (elf_symfile_read): Limit separate debug info additions to
12016 files with no separate debug info.
12017 * objfiles.c (add_separate_debug_objfile): Add gdb_assert calls.
12018 * symfile.c (read_symbols): Call find_separate_debug_file_in_section
12019 only for files with no separate debug info.
12020
8eacb197
TT
120212013-01-31 Tom Tromey <tromey@redhat.com>
12022
12023 * jit.c (jit_program_space_data): Rename from jit_inferior_data;
12024 change type.
12025 (struct jit_program_space_data): Rename from jit_inferior_data.
12026 Update comments.
12027 (get_jit_program_space_data): Rename from get_jit_inferior_data.
12028 Change return type. Attach data to program space.
12029 (jit_program_space_data_cleanup): Rename from
12030 jit_inferior_data_cleanup; change argument type.
12031 (jit_read_descriptor): Change 'inf_data' argument to 'ps_data',
12032 change type.
12033 (jit_register_code): Update.
12034 (jit_update_inferior_cache): Remove.
12035 (jit_breakpoint_deleted): Get jit data from the location's program
12036 space.
12037 (jit_breakpoint_re_set_internal): Rename 'inf_data' argument to
12038 'ps_data', change type.
12039 (jit_inferior_init, jit_breakpoint_re_set_internal)
12040 (jit_event_handler): Update.
12041 (free_objfile_data): Get data from objfile's program space.
12042 (_initialize_jit): Update.
12043
f25c0135
TT
120442013-01-31 Tom Tromey <tromey@redhat.com>
12045
12046 PR gdb/13987:
12047 * jit.c (struct jit_inferior_data) <cached_code_address,
12048 jit_breakpoint>: New fields.
12049 (jit_breakpoint_re_set_internal): Fix logging. Only create
12050 breakpoint if cached address has changed.
12051 (jit_update_inferior_cache, jit_breakpoint_deleted): New
12052 functions.
12053 (_initialize_jit): Register breakpoint deleted observer.
12054
974a734b
AR
120552013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12056
12057 * infrun.c (handle_syscall_event): Remove unused gdbarch.
12058 (save_infcall_suspend_state): Ifdef out unused inf.
12059 (restore_infcall_suspend_state): Ifdef out unused inf.
12060 * jit.c (jit_register_code): Remove unused i, b, inf_data.
12061 (jit_frame_sniffer): Remove unused inf_data.
12062
df54f8eb
AR
120632013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12064
12065 * c-exp.y (classify_inner_name): Remove unused type.
12066 * c-lang.c (c_printstr): Remove unused byte_order, i, things_printed,
12067 in_quotes, need_comma, wchar_buf, output, cleanup, iter, finished,
12068 need_escape.
12069 (c_get_string): Remove unused kind.
12070 * c-typeprint.c (c_type_print_args): Remove unused i, len, args, table2.
12071
5799c0b9
AR
120722013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12073
12074 * charset.c (intermediate_encoding): Remove unused i.
12075 * completer.c (signal_completer): Remove unused i.
12076 * continuations.c (discard_my_continuations_1): Remove unused
12077 continuation_ptr.
12078 * corelow.c (core_close): Remove unuseD name.
12079 (get_core_siginfo): Remove unused pid.
12080 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Remove unused
12081 i, cps.
12082 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove unused base_offset.
12083 (loclist_describe_location): Remove unused first.
12084 * event-top.c (command_line_handler): Remove unused got_eof.
12085 * exec.c (exec_close_1): Remove unused need_symtab_cleanup.
12086 (resize_section_table): Remove unused old_value.
12087 * gdb_bfd.c (gdb_bfd_map_section): Remove unused header.
12088 * gnu-v3-abi.c (compute_vtable_size): Remove unused addr.
12089 * i386-tdep.c (i386_process_record): Remove unused rex.
12090 * infcmd.c (get_return_value): Remove unused uiout.
12091 * jv-lang.c (type_from_class): Remove unused is_array.
12092 * jv-valprint.c (java_val_print): Remove unused i.
12093 * linux-nat.c (linux_nat_stop_lwp): Remove unused ptid.
12094 * linux-thread-db.c (thread_db_find_new_threads_2): Remove unuseD pid.
12095 * m2-typeprint.c (m2_print_type): Remove unused code.
12096 * macroexp.c (get_character_constant): Remove unused body_start.
12097 (macro_stringify): Remove unused result.
12098 * objc-lang.c (find_methods): Remove unused gdbarch.
12099 * objfiles.c (filter_overlapping_sections): Remove unused abfd1, abfd2.
12100 * regcache.c (regcache_cooked_read): Remove unused gdbarch.
12101 * stack.c (print_frame_args): Remove unused summary.
12102 * thread.c (thread_apply_command): Remove unused p.
12103 * valarith.c (value_x_unop): Remove unused mangle_ptr.
12104 * valops.c (search_struct_method): Remove unused skip.
12105 * valprint.c (generic_val_print): Remove unused byte_order.
12106 * varobj.c (varobj_update): Remove unused changed.
12107 * cli/cli-cmds.c (complete_command): Remove unused next_item.
12108 (alias_command): Remove unused c.
12109 * mi/mi-cmd-catch.c (mi_catch_load_unload): Remove unused c.
12110 * mi/mi-main.c (mi_cmd_data_write_register_values): Remove unused
12111 format.
12112 (mi_cmd_data_write_memory): Remove unused word_format.
12113 (mi_cmd_data_write_memory_bytes): Remove unused r.
12114 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Remove unused
12115 p_start, p_end.
12116 * python/python.c (_initialize_python): Remove unused cmd_name, cmd.
12117 * tui/tui-disasm.c (tui_set_disassem_content): Remove unused
12118 line_width.
12119
c656bca5
AR
121202013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12121
12122 * dwarf2-frame.c (dwarf2_compile_cfa_to_ax): Remove unused num_regs.
12123 * symtab.c (iterate_over_symtabs): Remove unused s.
12124 (find_pc_sect_symtab): Remove unused pspAce.
12125 (find_pc_sect_line): Remove unused alt_symtab.
12126 (find_pcs_for_symtab_line): Remove unused ix, previous_function.
12127 (completion_list_add_name): Remove unused newsize.
12128
7078baeb
TT
121292013-01-31 Tom Tromey <tromey@redhat.com>
12130
12131 PR c++/14998:
12132 * dwarf2read.c (read_tag_ptr_to_member_type): Handle
12133 TYPE_CODE_FUNC.
12134
c2e8b827
AR
121352013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12136
12137 * target.c (target_read_string): Remove unused origlen.
12138
0e43993a
AR
121392013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12140
12141 * auto-load.c (auto_load_expand_dir_vars): Remove unused dir_vec.
12142 * ax-gdb.c (gen_printf): Remove unused expr, i, bot, fr, flen, fmt.
12143 * ax-general.c (ax_print): Remove unused is_float.
12144 * blockframe.c (block_innermost_frame): Remove unused start, end.
12145 * break-catch-sig.c (catch_signal_command): Remove unused gdbarch.
12146
765a97ab
AR
121472013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12148
12149 * solib-svr4.c (svr4_keep_data_in_core): Remove unused lmo.
12150 (svr4_read_so_list): Remove unused lmo.
12151 * solib-target.c (solib_target_relocate_section_addresses): Remove
12152 unused flags.
12153
a99dad3d
TT
121542013-01-30 Tom Tromey <tromey@redhat.com>
12155
12156 * hppa-tdep.c (read_unwind_info): Use SECT_OFF_TEXT, not "0".
12157
3bff1ecd
TT
121582013-01-30 Tom Tromey <tromey@redhat.com>
12159
12160 * symfile.c (get_file_crc): Use bfd_calc_gnu_debuglink_crc32.
12161 * utils.c (gnu_debuglink_crc32): Remove.
12162 * utils.h (gnu_debuglink_crc32): Don't declare.
12163
7d455152
TT
121642013-01-30 Tom Tromey <tromey@redhat.com>
12165
12166 * dwarf2read.c (compute_delayed_physnames, read_call_site_scope)
12167 (read_structure_type, read_enumeration_type): Remove cast.
12168
abee88f2
TT
121692013-01-30 Tom Tromey <tromey@redhat.com>
12170
12171 * dwarf2read.c (read_namespace_type): Remove cast.
12172 (read_typedef): Likewise.
12173
8d9878a4
TT
121742013-01-29 Tom Tromey <tromey@redhat.com>
12175
12176 * dwarf2read.c (free_dwo_file): Remove assert.
12177
a543d2a9
TT
121782013-01-29 Tom Tromey <tromey@redhat.com>
12179
12180 * value.c (deprecated_set_value_modifiable): Remove.
12181 * value.h (deprecated_set_value_modifiable): Remove.
12182
bed911e5
DE
121832013-01-28 Doug Evans <dje@google.com>
12184
12185 * dwarf2loc.c (dwarf2_find_location_expression): Don't add base address
12186 to addresses from dwo files.
12187
28c64fc2
SCR
121882013-01-25 Siva Chandra Reddy <sivachandra@google.com>
12189
12190 * valops.c (find_overload_match): Remove unused argument 'lax'.
12191 * value.h: Remove unused argument 'lax' from the declaration of
12192 find_overload_match.
12193 * eval.c (value_subexp_standard): Do not pass a 'lax' argument
12194 to find_overload_match.
12195 * valarith.c (value_user_defined_cpp_op): Do not pass a 'lax'
12196 argument to find_overload_match.
12197
4d4ec4e5
TT
121982013-01-25 Tom Tromey <tromey@redhat.com>
12199
12200 * dwarf2read.c (processing_has_namespace_info): Remove.
12201 (struct dwarf2_cu) <processing_has_namespace_info>: New field.
12202 (process_die, read_func_scope, dwarf2_start_symtab)
12203 (new_symbol_full): Update.
12204
195a3f6c
TT
122052013-01-25 Tom Tromey <tromey@redhat.com>
12206
12207 * cp-namespace.c (cp_set_block_scope): Remove.
12208 * cp-support.h (cp_set_block_scope): Remove.
12209 * dbxread.c: Include block.h.
12210 (cp_set_block_scope): New function.
12211 (process_one_symbol): Update.
12212 * dwarf2read.c (read_func_scope): Use block_set_scope.
12213
8ba0730a
PA
122142013-01-25 Pedro Alves <palves@redhat.com>
12215
12216 * remote.c (add_current_inferior_and_thread): Tweak comment.
12217
12aaed36
TT
122182013-01-25 Tom Tromey <tromey@redhat.com>
12219
12220 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
12221 (cp_add_using_directive): Add 'copy_names' argument.
12222 * cp-support.h (cp_add_using_directive): Update.
12223 (struct using_direct) <import_src, import_dest, alias,
12224 declaration>: Now const.
12225 * dwarf2read.c (read_import_statement): Use obconcat.
12226 Don't copy names passed to cp_add_using_directive.
12227
7fc75ca7
TT
122282013-01-25 Tom Tromey <tromey@redhat.com>
12229
12230 * c-exp.y (qualified_name): Use TYPE_SAFE_NAME.
12231
3405876a
PA
122322013-01-25 Pedro Alves <palves@redhat.com>
12233
12234 * remote.c (stop_reply_extract_thread): New.
12235 (add_current_inferior_and_thread): New parameter 'wait_status'.
12236 Handle it.
12237 (remote_start_remote): Pass wait status to
12238 add_current_inferior_and_thread.
12239 (extended_remote_run): Update comment.
12240 (extended_remote_create_inferior_1): Pass wait status to
12241 add_current_inferior_and_thread.
12242
8954db33
AB
122432013-01-25 Andrew Burgess <aburgess@broadcom.com>
12244 Ulrich Weigand <uweigand@de.ibm.com>
12245
12246 * valarith.c (value_vector_widen): New function for replicating a
12247 scalar into a vector.
12248 (value_binop): Use value_vector_widen to widen scalar to vector
12249 rather than casting, this better matches gcc C behaviour.
12250 * valops.c (value_casst): Update logic for casting between vector
12251 types, and for casting from scalar to vector, try to match gcc C
12252 behaviour.
12253 * value.h (value_vector_widen): Declare.
12254 * opencl-lang.c (opencl_value_cast): New opencl specific casting
12255 function, handle special case for casting scalar to vector.
12256 (opencl_relop): Use opencl_value_cast.
12257 (evaluate_subexp_opencl): Use opencl_value_cast instead of
12258 value_cast, and handle BINOP_ASSIGN, UNOP_CAST, and UNOP_CAST_TYPE
12259 in order to use opencl_value_cast.
12260
843b20dc
YQ
122612013-01-25 Yao Qi <yao@codesourcery.com>
12262
12263 * event-loop.c: Include "queue.h".
12264 (gdb_event_p): New typedef.
12265 (DECLARE_QUEUE_P): Use.
12266 (DEFINE_QUEUE_P): Use.
12267 (async_queue_event): Remove.
12268 (gdb_event_xfree): New.
12269 (initialize_event_loop): New.
12270 (process_event): Use QUEUE macros.
12271 (event_queue): Remove.
12272 (gdb_wait_for_event): Caller update.
12273 (check_async_event_handlers): Likewise.
12274 (poll_timers): Likewise.
12275 * event-loop.h (initialize_event_loop): Declare.
12276 * event-loop.c (gdb_event_xfree): New.
12277 * top.c (gdb_init): Call initialize_event_loop.
12278
20ad8856
YQ
122792013-01-25 Yao Qi <yao@codesourcery.com>
12280
12281 * event-loop.c (async_queue_event): Remove one parameter
12282 'position'. Remove code handling 'position' == TAIL.
12283 (gdb_wait_for_event): Caller update.
12284 (check_async_event_handlers): Caller update.
12285 (poll_timers): Caller update.
12286 * event-loop.h (enum queue_position): Remove.
12287
3bbbe775
MK
122882013-01-25 Maxim Kuvyrkov <maxim@kugelworks.com>
12289
12290 * MAINTAINERS: Update my email.
12291
a87d9ac4
YQ
122922013-01-25 Yao Qi <yao@codesourcery.com>
12293
12294 * main.c (print_gdb_help): Remove "--epoch" from the help
12295 message.
12296
2077afdd
TD
122972013-01-24 Ulrich Weigand  <uweigand@de.ibm.com>
12298
12299 * symtab.c (skip_prologue_using_sal): Consider a file
12300 change the same as an increased line number
12301
63da4037
TD
123022013-01-24 Tiago Stürmer Daitx  <tdaitx@linux.vnet.ibm.com>
12303
30e8ee25 12304 * MAINTAINERS (Write After Approval): Add myself to the list.
63da4037 12305
45e6c716
TT
123062013-01-24 Tom Tromey <tromey@redhat.com>
12307
12308 * ada-lang.h (ada_decode_symbol): Make return type const.
12309 * ada-lang.c (ada_decode_symbol): Likewise.
12310
b1ae631a
DE
123112013-01-23 Doug Evans <dje@google.com>
12312
12313 * linespec.c (find_linespec_symbols): Make static.
12314
55a78401
SDJ
123152013-01-23 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
12316
12317 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Set correct
12318 type on float conversion for complex type.
12319
bea883fd
SCR
123202013-01-23 Siva Chandra Reddy <sivachandra@google.com>
12321
12322 Add a new class gdb.Architecture which exposes GDB's
12323 internal representation of architecture via GDB Python API.
12324 * Makefile.in: Add entries corresponding to the new file
12325 python/py-arch.c.
12326 * NEWS (Python Scripting): Add entries for the new class
12327 gdb.Architecture and the new method gdb.Frame.architecture.
12328 * python/py-arch.c: Implement gdb.Architecture class.
12329 * python/py-frame.c (frapy_arch): Implement the method
12330 gdb.Frame.architecture().
12331 (frame_object_methods): Add 'architecture' to the method table.
12332 * python/python-internal.h: Add declarations of new utility
12333 functions.
12334 * python/python.c (_initialize_python): Initialize
12335 gdb.Architecture class.
12336
796a7ff8
DE
123372013-01-23 Doug Evans <dje@google.com>
12338
12339 Work around binutils/15021.
12340 * dwarf2read.c (dwarf2_per_cu_data): Split imported_symtabs and
12341 type_unit_group out of union s. All uses updated.
12342 (read_index_from_section): Watch for index version 8.
12343 (follow_die_sig): If using .gdb_index version <= 7, record the TU as
12344 an imported symtab.
12345 (write_psymtabs_to_index): Increment version number to 8.
12346
0928e93d
PA
123472013-01-22 Pedro Alves <palves@redhat.com>
12348
12349 * annotate.c (breakpoint_changed): Skip if breakpoint is not
12350 user-visible.
12351
9c97429f
PA
123522013-01-22 Pedro Alves <palves@redhat.com>
12353
12354 * annotate.c (annotate_breakpoints_changed): Rename to ...
12355 (annotate_breakpoints_invalid): ... this. Make static.
12356 (breakpoint_changed): Adjust.
12357 (_initialize_annotate): Always install the observers. Install a
12358 "breakpoint_created" observer.
12359 * annotate.h (annotate_breakpoints_changed): Delete declaration.
12360 * breakpoint.c (set_breakpoint_condition)
12361 (breakpoint_set_commands, do_map_commands_command)
12362 (init_raw_breakpoint, clear_command, set_ignore_count)
12363 (enable_breakpoint_disp): No longer call
12364 annotate_breakpoints_changed.
12365
bd00c694
PA
123662013-01-22 Pedro Alves <palves@redhat.com>
12367
12368 * annotate.c: Include "inferior.h".
12369 (frames_invalid_emitted)
12370 (breakpoints_invalid_emitted): New globals.
12371 (async_background_execution_p): New function.
12372 (annotate_breakpoints_changed, annotate_frames_invalid): Skip
12373 emitting the annotation if it has already been emitted.
12374 (annotate_display_prompt): New function.
12375 * annotate.h (annotate_display_prompt): New declaration.
12376 * event-top.c: Include annotate.h.
12377 (display_gdb_prompt): Call annotate_display_prompt.
12378
187d10dd
PA
123792013-01-22 Pedro Alves <palves@redhat.com>
12380
12381 * annotate.c (ignore_count_changed): Delete.
12382 (annotate_breakpoints_changed): Don't clear ignore_count_changed.
12383 (annotate_ignore_count_change): Delete.
12384 (annotate_stopped): Don't emit a delayed breakpoints-changed
12385 annotation.
12386 * annotate.h (annotate_ignore_count_change): Delete.
12387 * breakpoint.c (bpstat_check_breakpoint_conditions): Don't call
12388 annotate_ignore_count_change.
12389
d84cf7eb
TT
123902013-01-22 Tom Tromey <tromey@redhat.com>
12391
12392 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>: Only
12393 require_rvalue for a register location.
12394
8f1d5693
MK
123952013-01-21 Marc Khouzam <marc.khouzam@ericsson.com>
12396
12397 * breakpoint.c (print_one_breakpoint_location): Add MI
12398 field 'thread-groups' when printing a breakpoint.
12399 (output_thread_groups): New function.
12400
aa6199c6
SCR
124012013-01-21 Siva Chandra Reddy <sivachandra@google.com>
12402
12403 * python/lib/gdb/commands/explore.py
12404 (CompoundExplorer.explore_expr): Correct the name of a method
12405 being invoked.
12406 (ExploreTypeCommand.invoke): Add a missing 'return'.
12407
d2afef13
TT
124082013-01-21 Tom Tromey <tromey@redhat.com>
12409
12410 * gdb_obstack.h (obconcat): Move declaration here, from...
12411 * symfile.h (obconcat): ... here.
12412 * gdb_obstack.c: New file.
12413 (obconcat): Move from...
12414 * symfile.c (obconcat): ... here.
12415 * Makefile.in (SFILES): Add gdb_obstack.c.
12416 (COMMON_OBS): Add gdb_obstack.o.
12417
10f0c4bb
TT
124182013-01-21 Tom Tromey <tromey@redhat.com>
12419
12420 * symfile.h (obsavestring): Don't declare.
12421 * symfile.c (obsavestring): Remove.
12422 * ada-exp.y: Use obstack_copy0, not obsavestring.
12423 * ada-lang.c: Use obstack_copy0, not obsavestring.
12424 * coffread.c: Use obstack_copy0, not obsavestring.
12425 * cp-namespace.c: Use obstack_copy0, not obsavestring.
12426 * dbxread.c: Use obstack_copy0, not obsavestring.
12427 * dwarf2read.c: Use obstack_copy0, not obsavestring.
12428 * jit.c: Use obstack_copy0, not obsavestring.
12429 * mdebugread.c: Use obstack_copy0, not obsavestring.
12430 * psymtab.c: Use obstack_copy0, not obsavestring.
12431 * stabsread.c: Use obstack_copy0, not obsavestring.
12432 * xcoffread.c: Use obstack_copy0, not obsavestring.
12433
86f62fd7
TT
124342013-01-21 Tom Tromey <tromey@redhat.com>
12435
12436 * dwarf2read.c (fixup_go_packaging): Save package name
12437 on objfile obstack.
12438 * gdbtypes.c (init_type): Don't copy name.
12439
15d034d0
TT
124402013-01-21 Tom Tromey <tromey@redhat.com>
12441
12442 * dwarf2read.c (struct partial_die_info) <name, scope>: Now
12443 const.
12444 (struct attribute) <u.str>: Now const.
12445 (struct fnfieldlist) <name>: Now const.
12446 (dw2_get_file_names_reader, init_cutu_and_read_dies): Update.
12447 (partial_die_parent_scope): Make return type const.
12448 (partial_die_full_name, add_partial_symbol): Update.
12449 (dwarf2_compute_name, dwarf2_full_name, dwarf2_physname): Make
12450 'name' const.
12451 (find_file_and_directory): Make 'name' and 'comp_dir' const.
12452 (read_file_scope, read_func_scope, dwarf2_add_field)
12453 (dwarf2_add_member_fn, read_structure_type)
12454 (process_enumeration_scope, read_array_type, read_module_type)
12455 (read_base_type, read_subrange_type): Update.
12456 (dwarf2_start_symtab): Make 'name' and 'comp_dir' const.
12457 (new_symbol_full, guess_full_die_structure_name): Update.
12458 (dwarf2_canonicalize_name): Return const type. Make 'name' const.
12459 (dwarf2_name): Return const type.
12460 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make 'comp_dir'
12461 const.
12462
748e18ae
TT
124632013-01-21 Tom Tromey <tromey@redhat.com>
12464
12465 * gdbtypes.c (init_type): Make 'name' const.
12466 * gdbtypes.h (init_type): Update.
12467
46212e0b
TT
124682013-01-21 Tom Tromey <tromey@redhat.com>
12469
12470 * buildsym.c (patch_subfile_names): Use set_last_source_file.
12471 (start_symtab): Make 'name' and 'dirname' const. Use
12472 set_last_source_file.
12473 (restart_symtab, reset_symtab_globals): Use set_last_source_file.
12474 (last_source_file): Define. Now static.
12475 (set_last_source_file, get_last_source_file): New functions.
12476 * buildsym.h (last_source_file): Don't declare.
12477 (start_symtab): Update.
12478 (set_last_source_file, get_last_source_file): Declare.
12479 * coffread.c (complete_symtab): Use set_last_source_file.
12480 (coff_end_symtab): Likewise.
12481 (coff_symtab_read): Use set_last_source_file, get_last_source_file.
12482 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Use
12483 set_last_source_file.
12484 (process_one_symbol): Use get_last_source_file.
12485 * mdebugread.c (parse_partial_symbols): Use set_last_source_file.
12486 (psymtab_to_symtab_1): Use get_last_source_file.
12487 * xcoffread.c (process_linenos): Use get_last_source_file.
12488 (complete_symtab): Use set_last_source_file.
12489 (read_xcoff_symtab): Use set_last_source_file, get_last_source_file.
12490 (scan_xcoff_symtab): Use set_last_source_file.
12491
9d2ceabe
TT
124922013-01-21 Tom Tromey <tromey@redhat.com>
12493
12494 * symtab.c (struct demangled_name_entry) <mangled>: Now const.
12495 (symbol_set_names): Remove casts. Handle field const-ness.
12496
cfc594ee
TT
124972013-01-21 Tom Tromey <tromey@redhat.com>
12498
12499 * dwarf2read.c (new_symbol_full): Remove cast.
12500 * symtab.c (symbol_set_demangled_name): Make 'name' const.
12501 * symtab.h (symbol_set_demangled_name): Update.
12502
5484b13a
TT
125032013-01-21 Tom Tromey <tromey@redhat.com>
12504
12505 * main.c (captured_main): Call bfd_init.
12506
1605ef26
TT
125072013-01-21 Tom Tromey <tromey@redhat.com>
12508
12509 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Don't set default ABI.
12510 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Set default ABI.
12511 * minsyms.c (install_minimal_symbols): Don't check for _Z symbols.
12512 * NEWS: Update.
12513
3b74cdc3
JK
125142013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
12515
12516 * symmisc.c (maintenance_print_msymbols): Check also ST_DEV.
12517
5a352474
JK
125182013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
12519
12520 Fix gdb.fortran/common-block.exp crash in PIE mode.
12521 * dwarf2read.c (new_symbol_full) <DW_TAG_common_block>: Use
12522 LOC_COMMON_BLOCK.
12523 * f-valprint.c (info_common_command_for_block): Expect
12524 LOC_COMMON_BLOCK in gdb_assert.
12525 * symtab.h (struct general_symbol_info): Update comment for the
12526 common_block member.
12527 (domain_enum): Extend comment for the COMMON_BLOCK_DOMAIN member.
12528 (enum address_class): New member LOC_COMMON_BLOCK.
12529
c60797fd
DB
125302013-01-18 David Blaikie <dblaikie@gmail.com>
12531
12532 * MAINTAINERS (Write After Approval): Add "David Blaikie".
0cae7dfb 12533
46f35228
TT
125342013-01-18 Tom Tromey <tromey@redhat.com>
12535
12536 PR c++/14999:
12537 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>:
12538 Call require_rvalue.
12539
257e7a09
YQ
125402013-01-18 Yao Qi <yao@codesourcery.com>
12541
12542 * dbxread.c (dbx_psymtab_to_symtab): Delete the declaration.
12543 (dbx_read_symtab): New declaration.
12544 (dbx_psymtab_to_symtab): Delete.
12545 (dbx_read_symtab): Rename from dbx_psymtab_to_symtab.
12546 Rename parameter PST to SELF. Exchanged two parameters.
12547 (start_psymtab): Caller update.
12548 * dwarf2read.c (dwarf2_psymtab_to_symtab): Delete the declaration.
12549 (dwarf2_read_symtab): New declaration.
12550 (dwarf2_psymtab_to_symtab): Delete.
12551 (dwarf2_read_symtab): Rename from dwarf2_psymtab_to_symtab.
12552 Rename parameter PST to SELF. Exchanged two parameters.
12553 (create_partial_symtab): Caller update.
12554 * mdebugread.c (mdebug_psymtab_to_symtab): Delete.
12555 (mdebug_read_symtab): Rename from mdebug_psymtab_to_symtab.
12556 Rename parameter PST to SELF. Exchanged two parameters.
12557 (parse_partial_symbols, new_psymtab): Caller update.
12558 * psympriv.h (struct partial_symtab) <read_symtab>: Exchange
12559 two parameters.
12560 * psymtab.c (psymtab_to_symtab): Caller update.
12561 * xcoffread.c (xcoff_psymtab_to_symtab): Delete.
12562 (xcoff_read_symtab): Rename from xcoff_psymtab_to_symtab.
12563 Rename parameter PST to SELF. Exchanged two parameters.
12564 (xcoff_start_psymtab): Caller update.
12565
0de5618e
YQ
125662013-01-18 Yao Qi <yao@codesourcery.com>
12567
12568 * infrun.c (proceed): Rename local variable 'oneproc' to
12569 'force_step'.
12570
5c04624b
DE
125712013-01-17 Doug Evans <dje@google.com>
12572
848e3e78
DE
12573 * dwarf2read.c (dw2_build_type_unit_groups_reader): Delete.
12574 (dw2_build_type_unit_groups): Delete. All uses updated.
12575
5c04624b
DE
12576 * symtab.h (struct symbol_search): Add comment.
12577
d84fca2c
JK
125782013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
12579
12580 * symtab.c (compare_filenames_for_search): New comment for
12581 HAS_DRIVE_SPEC.
12582
6108433d
TT
125832013-01-17 Tom Tromey <tromey@redhat.com>
12584
12585 * cp-abi.c (cp_abi_completer): Fix typo in assignment.
12586
c89ffd86
JK
125872013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
12588
12589 * symtab.c (iterate_over_some_symtabs): New variable cleanups,
12590 initialize it by existing make_cleanup. Call new do_cleanups.
12591
db2b2972
TT
125922013-01-17 Tom Tromey <tromey@redhat.com>
12593
12594 * cp-abi.c (cp_abi_completer): New function.
12595 (_initialize_cp_abi): Set completer for "set cp-abi".
12596
be7d37a2
TT
125972013-01-17 Tom Tromey <tromey@redhat.com>
12598
12599 * mem-break.c: Remove obsolete comment.
12600 * bfin-tdep.c (bfin_breakpoint_from_pc): Fix comment.
12601
c9fb1240
SD
126022012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
12603
12604 * jit.c (jit_reader_load_command): Interpret the jit reader name
12605 as an absolute path if it begins with a forward slash.
12606
db334a01
SD
126072012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
12608
12609 PR gdb/14550
12610
12611 * jit.c (finalize_symtab): Ensure that only the global block has a
12612 NULL superblock.
12613
7d928dac
PA
126142013-01-17 Pedro Alves <palves@redhat.com>
12615
12616 * acinclude.m4: Include ../config/plugins.m4,
12617 ../config/largefile.m4 and ../config/lead-dot.m4. Add comments.
12618 * Makefile.in (aclocal_m4_deps): Update.
12619 * aclocal.m4: Renegerate.
12620
fb8cf7c5
DE
126212013-01-16 Doug Evans <dje@google.com>
12622
12623 * contrib/cc-with-tweaks.sh: Add references to Fission docs.
12624
ab04a2af
TT
126252013-01-16 Pedro Alves <palves@redhat.com>
12626 Tom Tromey <tromey@redhat.com>
12627
12628 PR cli/7221:
12629 * NEWS: Add "catch signal".
12630 * breakpoint.c (base_breakpoint_ops): No longer static.
12631 (bpstat_explains_signal): New function.
12632 (init_catchpoint): No longer static.
12633 (base_breakpoint_explains_signal): New function.
12634 (base_breakpoint_ops): Initialize new field.
12635 * breakpoint.h (enum bpstat_signal_value): New.
12636 (struct breakpoint_ops) <explains_signal>: New field.
12637 (bpstat_explains_signal): Remove macro, declare as function.
12638 (base_breakpoint_ops, init_catchpoint): Declare.
12639 * break-catch-sig.c: New file.
12640 * inferior.h (signal_catch_update): Declare.
12641 * infrun.c (signal_catch): New global.
12642 (handle_syscall_event): Update for change to
12643 bpstat_explains_signal.
12644 (handle_inferior_event): Likewise. Always handle random signals
12645 via bpstats.
12646 (signal_cache_update): Check signal_catch.
12647 (signal_catch_update): New function.
12648 (_initialize_infrun): Initialize signal_catch.
12649 * Makefile.in (SFILES): Add break-catch-sig.c.
12650 (COMMON_OBS): Add break-catch-sig.o.
12651
8ac3646f
TT
126522013-01-16 Tom Tromey <tromey@redhat.com>
12653
12654 * breakpoint.c (print_one_catch_fork, print_one_catch_vfork)
12655 (print_one_catch_solib, print_one_catch_syscall)
12656 (print_one_catch_exec, print_one_exception_catchpoint): Emit
12657 "catch-type".
12658
5a18e302
YQ
126592013-01-16 Yao Qi <yao@codesourcery.com>
12660
12661 * printcmd.c (current_display_number): Make it static.
12662
3f01d0d0
YQ
126632013-01-16 Yao Qi <yao@codesourcery.com>
12664
12665 * infcmd.c (step_once): Don't check '!single_inst' as it was
12666 checked before.
12667
1ed59174
JK
126682013-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
12669
12670 * dwarf2read.c (psymtab_include_file_name): Extend the function comment.
12671
44478ab3
TT
126722013-01-14 Tom Tromey <tromey@redhat.com>
12673
12674 * cli/cli-decode.c (add_setshow_string_noescape_cmd): Return the
12675 set command.
12676 * command.h (add_setshow_string_noescape_cmd): Update.
12677 * corefile.c (set_gnutarget_command): Remove trailing whitespace.
12678 (complete_set_gnutarget): New function.
12679 (_initialize_core): Set the "set gnutarget" completer.
12680
06d66ee9
TT
126812013-01-14 Tom Tromey <tromey@redhat.com>
12682
12683 PR symtab/14442:
12684 * c-typeprint.c (cp_type_print_method_args): Handle 'restrict'.
12685 (c_type_print_modifier): Likewise.
12686 * dwarf2read.c (read_tag_restrict_type): New function.
12687 (read_type_die_1): Handle DW_TAG_restrict_type.
12688 * gdbtypes.c (make_restrict_type): New function.
12689 (recursive_dump_type): Handle TYPE_RESTRICT.
12690 * gdbtypes.h (enum type_flag_values): Renumber.
12691 (enum type_instance_flag_value): Add
12692 TYPE_INSTANCE_FLAG_RESTRICT.
12693 (TYPE_RESTRICT): New macro.
12694 (make_restrict_type): Declare.
12695
c9bf0622
TT
126962013-01-14 Tom Tromey <tromey@redhat.com>
12697
12698 PR symtab/14931:
12699 * psymtab.c (struct psymtab_state): New.
12700 (discard_psymtabs_upto, make_cleanup_discard_psymtabs): New
12701 functions.
12702 * psympriv.h (make_cleanup_discard_psymtabs): Declare.
12703 * dwarf2read.c (dwarf2_build_psymtabs): Catch exceptions.
12704
44d594fd
PA
127052013-01-14 Richard Sharman <richard_sharman@mitel.com>
12706 Pedro Alves <palves@redhat.com>
12707
12708 PR remote/14786
12709
12710 * remote.c (remote_threads_info): Make a copy of the reply from
12711 qfThreadInfo and use that instead of rs->buf.
12712
442e4d9c
YQ
127132013-01-14 Yao Qi <yao@codesourcery.com>
12714
12715 * dbxread.c (dbx_psymtab_to_symtab_1): Don't check PST is NULL.
12716 (dbx_psymtab_to_symtab): Likewise.
12717 * dwarf2read.c (dwarf2_psymtab_to_symtab): Likewise.
12718 * mdebugread.c (mdebug_psymtab_to_symtab): Likewise.
12719 * xcoffread.c (xcoff_psymtab_to_symtab_1): Likewise.
12720
5b12a61c
JK
127212013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
12722
12723 * parse.c (parse_exp_in_context): New variable inner_chain. Call
12724 make_cleanup_restore_current_language. Call set_language. Move
12725 OLD_CHAIN and INNER_CHAIN cleanups.
12726 * utils.c (do_restore_current_language)
12727 (make_cleanup_restore_current_language): New functions.
12728 * utils.h (make_cleanup_restore_current_language): New declaration.
12729
f0a4b570
JK
127302013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
12731
12732 * source.c (symtab_to_fullname): Apply rewrite_source_path also for
12733 non-existing files.
12734
57b3c00c
JK
12735 * source.c (symtab_to_fullname): Do not prepend DIRNAME for
12736 non-existing files if FILENAME is already absolute.
12737
daefa854
JK
127382013-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
12739
12740 * macrocmd.c (macro_inform_no_debuginfo): Use puts_filtered instead of
12741 fputs_filtered. Append trailing newline.
12742
ca9c6ee2
YQ
127432013-01-11 Yao Qi <yao@codesourcery.com>
12744 Stan Shebs <stan@codesourcery.com>
12745
12746 * psymtab.c (init_psymbol_list): Clarify the comment.
12747
f28045c2
YQ
127482013-01-11 Yao Qi <yao@codesourcery.com>
12749
12750 * breakpoint.c (print_one_breakpoint_location): Remove dead code.
12751 (update_dprintf_command_list): Assert that 'printf_line' is
12752 non-null. Remove condition check.
12753
da5132d3
JK
127542013-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
12755
12756 Code cleanup.
12757 * psymtab.c (psymtab_to_fullname, psymtab_to_fullname): Make the return
12758 type const char *.
12759 * tui/tui-source.c (tui_source_is_displayed): Make the parameter fname
12760 const char *.
12761 * tui/tui-source.h (tui_source_is_displayed): Likewise.
12762
843e694d
AG
127632013-01-09 Anthony Green <green@moxielogic.com>
12764
12765 * cp-abi.c (cplus_print_vtable): Don't return value from void
12766 function.
12767 * ada-lang.c (re_set_catch_assert): Ditto.
12768
da51c347
DE
127692013-01-09 Doug Evans <dje@google.com>
12770
12771 * symfile.h (quick_symbol_functions): Delete member
12772 pre_expand_symtabs_matching. All uses removed.
12773 * dwarf2read.c (dw2_lookup_symbol): Implement.
12774 (dw2_do_expand_symtabs_matching): Delete.
12775 (dw2_pre_expand_symtabs_matching): Delete.
12776 (struct dw2_symtab_iterator): New type.
12777 (dw2_symtab_iter_init, dw2_symtab_iter_next): New functions.
12778 (dw2_expand_symtabs_for_function): Rewrite.
12779 (dwarf2_gdb_index_functions): Update.
12780 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Delete.
12781 (psym_functions): Update.
12782
b2259038
TT
127832013-01-09 Tom Tromey <tromey@redhat.com>
12784
12785 * config/pa/hpux.mh (NATDEPFILES): Remove somread.o.
12786 * configure: Rebuild.
12787 * configure.ac: Add somread.o to the build if BFD has SOM
12788 support.
12789 * somread.c: Include som/aout.h, not syms.h.
12790 (som_symtab_read): Use som_external_symbol_dictionary_record.
12791 Unpack records manually.
12792 (_initialize_somread): Declare.
12793
bdad4180
MF
127942012-01-08 Mike Frysinger <vapier@gentoo.org>
12795
12796 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx) [__x86_64__]:
12797 Cast return_address to 64bits.
12798
03cdf680
HZ
127992013-01-08 Hui Zhu <hui_zhu@mentor.com>
12800
12801 * printcmd.c: Remove define of function output_command.
12802 * tracepoint.c: Remove extern of function output_command.
12803 * valprint.h: (output_command): New extern.
12804
8a808554
TT
128052013-01-07 Tom Tromey <tromey@redhat.com>
12806
12807 * objc-lang.c (objc_emit_char, objc_printchar, objc_printstr):
12808 Remove.
12809 (objc_language_defn): Use c_printchar, c_printstr,
12810 c_emit_char.
12811
e93a8774
TT
128122013-01-07 Tom Tromey <tromey@redhat.com>
12813
12814 PR cli/7719:
12815 * NEWS: Update.
12816 * ada-valprint.c (printstr, print_field_values): Remove
12817 "inspect_it" code.
12818 * cp-valprint.c (cp_print_value_fields): Remove "inspect_it"
12819 code.
12820 * jv-valprint.c (java_print_value_fields): Remove "inspect_it"
12821 code.
12822 * m2-lang.c (m2_printstr): Remove "inspect_it" code.
12823 * main.c (captured_main): Remove "epoch" argument.
12824 * objc-lang.c (objc_printstr): Remove "inspect_it" code.
12825 * p-lang.c (pascal_printstr): Remove "inspect_it" code.
12826 * p-valprint.c (pascal_object_print_value_fields): Remove
12827 "inspect_it" code.
12828 * printcmd.c (print_command_1): Remove 'inspect' argument.
12829 (print_command, call_command): Update.
12830 (inspect_command): Remove.
12831 (_initialize_printcmd): Make "inspect" an alias for "print".
12832 * top.c (epoch_interface): Remove.
12833 * top.h (epoch_interface): Remove.
12834 * valprint.c (user_print_options): Update.
12835 (print_converted_chars_to_obstack): Remove "inspect_it" code.
12836 * valprint.h (struct value_print_options) <inspect_it>: Remove
12837 field.
12838
128392013-01-04 Tom Tromey <tromey@redhat.com>
12840
12841 * valprint.h (read_string): Add 'extern'.
12842
b967eb24
JB
128432013-01-07 Joel Brobecker <brobecker@adacore.com>
12844
12845 * darwin-nat.c: Fix typo in TASK_DYLD_INFO_COUNT macro test
12846 used to decide whether to define darwin_read_dyld_info or not.
12847
78a8b30e
PM
128482013-01-03 Pierre Muller <muller@sourceware.org>
12849
12850 * main.c (relocate_gdb_directory): Avoid calling stat function
12851 if DIR is empty.
12852
50da2f25
YQ
128532013-01-03 Yao Qi <yao@codesourcery.com>
12854
12855 * psymtab.c (fixup_psymbol_section): Update declaration.
12856 (fixup_psymbol_section): Remove code returning value.
12857
e7e8980f
YQ
128582013-01-03 Yao Qi <yao@codesourcery.com>
12859
12860 * symtab.h: Remove some out of date comments.
12861 (enum exception_event_kind): Move it ...
12862 * breakpoint.c: ... here.
12863
569283d4
MF
128642013-01-02 Iain Sandoe <developer@sandoe-acoustics.co.uk>
12865
9f9d9a96 12866 PR gdb/14405
569283d4
MF
12867 * darwin-nat.c (darwin_read_dyld_info): Only build if
12868 TASK_DYLD_INFO_COUNT is defined.
12869 (darwin_xfer_partial): Call darwin_read_dyld_info only if
12870 TASK_DYLD_INFO_COUNT is defined.
12871
2e36fbea
TT
128722013-01-02 Tom Tromey <tromey@redhat.com>
12873
12874 * symfile.h (struct ecoff_debug_hack): Remove.
12875 * objfiles.c: Don't include mdebugread.h.
12876
4f05add4
TT
128772013-01-02 Tom Tromey <tromey@redhat.com>
12878
12879 * config/i386/darwin.mh (NATDEPFILES): Remove machoread.o.
12880 * configure.ac: Check for Mach-O support in BFD. Update
12881 CONFIG_OBS.
12882 * configure: Rebuild.
12883
def63ff0
TT
128842013-01-02 Tom Tromey <tromey@redhat.com>
12885
12886 * acinclude.m4 (GDB_AC_CHECK_BFD): New macro.
12887 * configure.ac: Use GDB_AC_CHECK_BFD.
12888 * configure: Rebuild.
12889
60c5dd93
MK
128902013-01-01 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
12891
12892 * MAINTAINERS: Update my email.
12893
6e58437e
JB
128942013-01-01 Joel Brobecker <brobecker@adacore.com>
12895
12896 * cli/cli-script.h (make_cleanup_free_command_lines): Make extern.
12897
627fe805
JB
128982013-01-01 Joel Brobecker <brobecker@adacore.com>
12899
12900 * rs6000-nat.c (bss_data_overlap): New function.
12901 (vmap_symtab): Use it to adjust the .bss section's offset.
12902
28e7fd62
JB
129032013-01-01 Joel Brobecker <brobecker@adacore.com>
12904
12905 Update year range in copyright notice of all files.
12906
e93a8774 129072013-01-01, 13 Joel Brobecker <brobecker@adacore.com>
b9786c74
JB
12908
12909 * top.c (print_gdb_version): Update copyright year.
12910
72b20e9c 12911For older changes see ChangeLog-2012.
c906108c
SS
12912\f
12913Local Variables:
12914mode: change-log
12915left-margin: 8
12916fill-column: 74
12917version-control: never
57da7796 12918coding: utf-8
c906108c 12919End:
This page took 2.384444 seconds and 4 git commands to generate.