*** empty log message ***
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
4cf93a03
DE
12012-08-14 Doug Evans <dje@google.com>
2
70b099cf
DE
3 * gdbtypes.c (struct extra): Delete, unused.
4
5212577a
DE
5 * gdbtypes.c: Whitespace cleanup.
6 (address_space_name_to_int): Remove "extern" from definition.
7 (_initialize_gdbtypes): Declare with initialize_file_ftype.
8
4cf93a03
DE
9 * gdbtypes.c (make_pointer_type): Remove redundant setting of
10 TYPE_POINTER_TYPE (type).
11
3756ef7e
GB
122012-08-14 Gary Benson <gbenson@redhat.com>
13
14 * solib-svr4.c (svr4_free_library_list): Use free_so.
15
40d72643
MF
162012-08-13 Mike Frysinger <vapier@gentoo.org>
17
18 * .gitignore: Add go-exp.c.
19
f47f77df
DE
202012-08-13 Doug Evans <dje@google.com>
21
22 * value.c (show_convenience): Tweak comment.
23 (_initialize_values): Mention convenience functions in the help text
24 for "show convenience".
25
7507c54a
YQ
262012-08-13 Yao Qi <yao@codesourcery.com>
27
28 * std-operator.def: Remove TERNOP_SLICE_COUNT.
29 * breakpoint.c (watchpoint_exp_is_const): Remove handling to
30 TERNOP_SLICE_COUNT.
31 * eval.c (evaluate_subexp_standard): Likewise.
32 * expprint.c (print_subexp_standard): Likewise.
33 (dump_subexp_body_standard): Likewise.
34 * parse.c (operator_length_standard): Likewise.
35
5cad9736
YQ
362012-08-13 Yao Qi <yao@codesourcery.com>
37
38 * std-operator.def: Remove OP_BITSTRING.
39 * breakpoint.c (watchpoint_exp_is_const): Update.
40 * eval.c (evaluate_subexp_standard): Remove handling to
41 OP_BITSTRING.
42 * expprint.c (print_subexp_standard): Likewise.
43 (dump_subexp_body_standard): Likewise.
44 * parse.c (operator_length_standard): Likewise.
45 * valops.c (value_bitstring): Remove.
46 * value.h: Remove the declaration of 'value_bitstring'.
47
bad7670a
SDJ
482012-08-10 Sergio Durigan Junior <sergiodj@redhat.com>
49
50 * linespec.c (find_methods): Remove unused variables `i1' and
51 `name_len'.
52 (decode_line_full): Likewise for `arg_start'.
53
d9dce7fa
SDJ
542012-08-10 Sergio Durigan Junior <sergiodj@redhat.com>
55
56 * gdb_bfd.c (gdb_bfd_unref): Remove unused variable `slot'.
57 (zlib_decompress_section): Likewise for `section_data'.
58 (gdb_bfd_map_section): Likewise for `buf' and `retbuf'.
59
a72c3253
DE
602012-08-10 Doug Evans <dje@google.com>
61
62 Add $_memeq, $_regex, $_streq, $_strlen convenience functions.
63 * NEWS: Document them.
64 * data-directory/Makefile.in (PYTHON_FILES): Add function/__init__.py,
65 function/strfns.py.
66 * python/py-type.c (typy_array_1): New function.
67 (typy_array): Call it.
68 (typy_vector): New function.
69 (type_object_methods): Add "vector".
70 * python/lib/gdb/function/__init__.py: New file.
71 * python/lib/gdb/function/strfns.py: New file.
72
200bc880
SP
732012-08-10 Siddhesh Poyarekar <siddhesh@redhat.com>
74
75 * python/py-type.c (convert_field): Use gdb_py_long_from_longest
76 for TYPE_FIELD_BITPOS.
77 (typy_get_sizeof): Likewise for TYPE_LENGTH.
78
de0bea00
MF
792012-08-10 Mike Frysinger <vapier@gentoo.org>
80
81 PR cli/10436:
82 * common/vec.h (VEC_merge): Define.
83 (DEF_VEC_ALLOC_FUNC_I): Add a merge helper.
84 (DEF_VEC_ALLOC_FUNC_P): Likewise.
85 (DEF_VEC_ALLOC_FUNC_O): Likewise.
86 * completer.c: Include gdb_signals.h.
87 (signal_completer): Define.
88 * completer.h (signal_completer): Add prototype.
89 * infcmd.c (_initialize_infcmd): Assign the command
90 completer for "signal" to handle_completer.
91 * infrun.c: Include completer.h.
92 (handle_completer): Define.
93 (_initialize_infrun): Declare a new local variable c. Store the
94 result of add_com("handle") to it. Assign the command
95 completer for "handle" to handle_completer.
96
5b9afe8a
YQ
972012-08-09 Yao Qi <yao@codesourcery.com>
98
99 * cli/cli-decode.c (set_cmd_prefix): New.
100 (lookup_cmd_for_prefixlist): New.
101 (add_prefix_cmd): Call set_cmd_prefix and update field 'prefix'
102 of each cmd_list_element in *prefixlist.
103 (add_setshow_cmd_full): set_cmd_prefix.
104 (add_alias_cmd): Likewise.
105 * cli/cli-decode.h (struct cmd_list_element) <prefix>: New field.
106 Declare 'auto_boolean_enums'.
107 * cli/cli-setshow.c: Include "observer.h".
108 (notify_command_param_changed_p): New.
109 (add_setshow_auto_boolean_cmd): Move auto_boolean_enums out.
110 Remove 'static'.
111 (do_setshow_command): Split it to ...
112 (do_set_command, do_show_command): ... them. New.
113 (do_set_command): Call observer_notify_command_param_changed if
114 notify_command_param_changed_p returns true.
115 (cmd_show_list): Caller update.
116 * auto-load.c (set_auto_load_cmd): Likewise.
117 * remote.c (show_remote_cmd): Likewise.
118 * cli/cli-setshow.h: Update declarations.
119 * top.c (execute_command): Call do_set_command and do_show_command.
120
121 * NEWS: Mention new MI notification.
122 * mi/mi-interp.c: Declare mi_command_param_changed.
123 (mi_interpreter_init): Attach mi_command_param_changed to
124 observer command_param_changed.
125 (mi_command_param_changed): New.
126 Remove mi_suppress_breakpoint_notifications.
127 Define global variable mi_suppress_notification.
128 (mi_breakpoint_created): Update.
129 (mi_breakpoint_deleted): Likewise.
130 (mi_breakpoint_modified): Likewise.
131 * mi/mi-main.c (mi_cmd_execute): Likewise. Check command
132 'gdb-set' and set mi_suppress_notification.
133 * mi/mi-main.h: (mi_suppress_notification): New struct.
134
1969df89
JK
1352012-08-09 Andreas Tobler <andreast@fgznet.ch>
136 Jan Kratochvil <jan.kratochvil@redhat.com>
137
138 * fbsd-nat.h (fbsd_find_memory_regions): Use find_memory_region_ftype.
139
8bfd80db
YQ
1402012-08-09 Yao Qi <yao@codesourcery.com>
141
142 * cli/cli-cmds.c (enablebreaklist): Move it to breakpoint.c.
143 (skiplist): Move it to skip.c.
144 (init_cmd_lists): Remove code setting enablebreaklist and
145 skiplist to NULL.
146 * breakpoint.c (enablebreaklist): Moved from cli/cli-cmds.c.
147 * cli/cli-cmds.h: Remove declaration of enablebreaklist and
148 skiplist.
149 * gdbcmd.h: Likewise.
150 * skip.c (_initialize_step_skip): Move 'skiplist' from
151 cli/cli-cmds.c.
152
28578e6b
YQ
1532012-08-09 Yao Qi <yao@codesourcery.com>
154
155 * cli/cli-dump.c: Add 'static' to some cmd_list_element variables.
156 * gnu-nat.c, symfile.c: Likewise.
157
260c0b2a
DE
1582012-08-08 Aaron Gamble <agamble@google.com>
159
160 * utils.c (prompt_for_continue_wait_time): New static global.
161 (make_command_stats_cleanup): Initialize it.
162 (report_command_stats): Subtract time waiting for user.
163 (prompt_for_continue): Track time waiting for user.
164 (defaulted_query): Track time waiting for user.
165
4f485ebc
DE
1662012-08-08 Doug Evans <dje@google.com>
167
168 * eval.c (evaluate_subexp_standard): Fix thinko in handling
169 UNOP_MEMVAL_TYPE.
170 * expprint.c (print_subexp_standard, case OP_TYPE): New.
171 (print_subexp_standard, case UNOP_CAST_TYPE): Don't increment pos.
172 (print_subexp_standard, case UNOP_DYNAMIC_CAST): Ditto.
173 (print_subexp_standard, case UNOP_REINTERPRET_CAST): Ditto.
174 (print_subexp_standard, case UNOP_MEMVAL_TYPE): Ditto.
175 (dump_subexp_body_standard, case UNOP_DYNAMIC_CAST): Don't increment
176 elt.
177 (dump_subexp_body_standard, case UNOP_REINTERPRET_CAST): Ditto.
178 (dump_subexp_body_standard, case UNOP_CAST_TYPE): Ditto.
179 (dump_subexp_body_standard, case UNOP_MEMVAL_TYPE): Ditto.
180 (dump_prefix_expression): Handle OP_TYPE.
181
2acf2b39
KS
1822012-08-08 Keith Seitz <keiths@redhat.com>
183
184 * breakpoint.c (parse_breakpoint_sals): Remove unused variable
185 addr_start.
186
e6712ff1
DE
1872012-08-08 Doug Evans <dje@google.com>
188
189 * linux-thread-db.c: #include "gdb_vecs.h".
190 (try_thread_db_load_from_pdir_1): New arg "subdir". All callers
191 updated.
192 (try_thread_db_load_from_pdir): New arg "subdir". All callers updated.
193 (thread_db_load_search): Use a vector to iterate over path elements.
194 Handle text appearing after "$pdir".
195
196 * gdb_string.h: Moved to ...
197 * common/gdb_string.h: ... here.
198 * common/vec.h: Remove #ifndef GDBSERVER conditional inclusion of
199 gdb_string.h and gdb_assert.h.
200
ab854e54
YQ
2012012-08-08 Yao Qi <yao@codesourcery.com>
202
203 * tic6x-tdep.c (tic6x_register_to_value): Remove.
204 (tic6x_value_to_register): Likewise.
205 (tic6x_gdbarch_init): Don't call set_gdbarch_register_to_value
206 and set_gdbarch_value_to_register.
207
4f69f4c2
JK
2082012-08-07 Jan Kratochvil <jan.kratochvil@redhat.com>
209 Jean-Marc Saffroy <saffroy@gmail.com>
210
211 PR 11804
212 * defs.h (find_memory_region_ftype): New comment. New arg modified.
213 * fbsd-nat.c (fbsd_find_memory_regions): Add the passed modified value.
214 * gcore.c (gcore_create_callback): New function comment. Add modified
215 parameter. Only write modified regions. Set SEC_READONLY exactly
216 according to MODIFIED.
217 (objfile_find_memory_regions): Ignore separate debug info files. Ass
218 the passed modified value to FUNC.
219 * gnu-nat.c (gnu_find_memory_regions): Add the passed modified value.
220 * linux-tdep.c (linux_find_memory_regions): Try to reads smaps file
221 first. New variables modified and has_anonymous. Parse the lines of
222 smaps file. Add the passed MODIFIED value to FUNC.
223 * procfs.c (find_memory_regions_callback): Add the passed modified
224 value.
225
78ac5f83
TT
2262012-08-06 Tom Tromey <tromey@redhat.com>
227
228 * dwarf2-frame.c (clear_pointer_cleanup): New function.
229 (dwarf2_frame_cache): Use it.
230 * frame-unwind.h (frame_sniffer_ftype): Document prologue
231 cache initialization constraint.
232
2c12abee
TT
2332012-08-06 Tom Tromey <tromey@redhat.com>
234
235 PR python/14386:
236 * varobj.c (update_dynamic_varobj_children): Don't call
237 PyIter_Check.
238
4979d7f0
TT
2392012-08-06 Tom Tromey <tromey@redhat.com>
240
241 PR cli/14392:
242 * cli/cli-cmds.c (list_command): Filter 'sals_end'.
243
f3c8a52a
JK
2442012-08-06 Nathaniel Flath <flat0103@gmail.com>
245
246 * NEWS: New entry for 'cd' default parameters.
247 * cli/cli-cmds.c (cd_command): Replace error_no_arg by DIR assignment.
248
5a1cf4d6
TT
2492012-08-03 Tom Tromey <tromey@redhat.com>
250
251 * dwarf2-frame.c (dwarf2_frame_cache): Call do_cleanups before
252 return.
253
7c3270ae
UW
2542012-08-02 Ulrich Weigand <ulrich.weigand@linaro.org>
255
256 * inf-child.c (inf_child_fileio_pwrite): If pwrite fails, fall back
257 to attempting lseek/write.
258 (inf_child_fileio_pread): Likewise for pread.
259
ccce17b0
YQ
2602012-08-02 Yao Qi <yao@codesourcery.com>
261
262 * dwarf2loc.c (entry_values_debug): Add 'unsigned'.
263 (_initialize_dwarf2loc): Call add_setshow_zuinteger_cmd instead of
264 add_setshow_zinteger_cmd.
265 * dwarf2loc.h: Update the declaration of 'entry_values_debug'.
266 * dwarf2read.c (dwarf2_die_debug): Add 'unsigned'.
267 (_initialize_dwarf2_read): Call add_setshow_zuinteger_cmd
268 instead of add_setshow_zinteger_cmd.
269 * darwin-nat.c (dwarwin_debug_flag): Add 'unsigned'.
270 (_initialize_darwin_inferior): Call add_setshow_zuinteger_cmd
271 instead of add_setshow_zinteger_cmd.
272 * frame.c (frame_debug): Add 'unsigned'.
273 (_intialize_frame): Call add_setshow_zuinteger_cmd instead of
274 add_setshow_zinteger_cmd.
275 * frame.h: Update the declaration of 'frame_debug'.
276 * gdbtypes.c (overload_debug): Add 'unsigned'.
277 (_initialize_gdbtypes): Call add_setshow_zuinteger_cmd instead of
278 add_setshow_zinteger_cmd.
279 * inferior.h: Update declaration of 'debug_infrun'.
280 * infrun.c (debug_infrun): Add 'unsigned'.
281 (_initialize_infrun): Call add_setshow_zuinteger_cmd instead of
282 add_setshow_zinteger_cmd.
283 * jit.c (jit_debug): Add 'unsigned'.
284 (_initialize_jit): Call add_setshow_zuinteger_cmd instead of
285 add_setshow_zinteger_cmd.
286 * linux-nat.c (debug_linux_nat): Add 'unsigned'.
287 (_initialize_linux_nat): Call add_setshow_zuinteger_cmd
288 instead of add_setshow_zinteger_cmd.
289 * linux-thread-db.c (libthread_db_debug): Add 'unsigned'.
290 (_initialize_thread_db): Call add_setshow_zuinteger_cmd instead of
291 add_setshow_zinteger_cmd.
292 * machoread.c (mach_o_debug_level): Add 'unsigned'.
293 (_initialize_machoread): Call add_setshow_zuinteger_cmd
294 instead of add_setshow_zinteger_cmd.
295 * mi/mi-cmd-var.c: Update the declaration of 'varobjdebug'.
296 * microblaze-tdep.c (microblaze_debug_flag): Add 'unsigned'.
297 (_initialize_microblaze_tdep): Call add_setshow_zuinteger_cmd
298 intead of add_setshow_zinteger_cmd.
299 * mips-tdep.c (mips_debug): Add 'unsigned'.
300 (_initialize_mips_tdep): Call add_setshow_zuinteger_cmd
301 instead of add_setshow_zinteger_cmd.
302 * monitor.c (monitor_debug): Add 'unsigned'.
303 (_initialize_remote_monitors): Call add_setshow_zuinteger_cmd instead of
304 add_setshow_zinteger_cmd.
305 * observer.c (observer_debug): Add 'unsigned'.
306 (_initialize_observer): Call add_setshow_zuinteger_cmd instead of
307 add_setshow_zinteger_cmd.
308 * parse.c (expressiondebug): Add 'unsigned'.
309 (_initialize_parse): Call add_setshow_zuinteger_cmd instead of
310 add_setshow_zinteger_cmd.
311 * record.c (record_debug): Add 'unsigned'.
312 (_initialize_record): Call add_setshow_zuinteger_cmd instead of
313 add_setshow_zinteger_cmd.
314 * record.h: Update the declaration of 'record_debug'.
315 * stap-probe.c (stap_expression_debug): Add 'unsigned'.
316 (_initialize_stap_probe): Call add_setshow_zuinteger_cmd instead of
317 add_setshow_zinteger_cmd.
318 * serial.c (global_serial_debug_p): Add 'unsigned'.
319 (_initialize_serial): Call add_setshow_zuinteger_cmd instead of
320 add_setshow_zinteger_cmd.
321 * solib-dsbt.c (solib_dsbt_debug): Add 'unsigned'.
322 (_initialize_dsbt_solib): Call add_setshow_zuinteger_cmd instead of
323 add_setshow_zinteger_cmd.
324 * solib-frv.c (solib_frv_debug): Add 'unsigned'.
325 (_initialize_frv_solib): Call add_setshow_zuinteger_cmd instead of
326 add_setshow_zinteger_cmd.
327 * target.c (targetdebug): Add 'unsigned'.
328 (initialize_targets): Call add_setshow_zuinteger_cmd instead of
329 add_setshow_zinteger_cmd.
330 * valops.c (overload_debug): Add 'unsigned'.
331 * varobj.c (varobjdebug): Add 'unsigned'.
332 (_initialize_varobj): Call add_setshow_zuinteger_cmd instead of
333 add_setshow_zinteger_cmd.
334 * xtensa-tdep.c (xtensa_debug_level): Add 'unsigned'.
335 (_initialize_xtensa_tdep): Call add_setshow_zuinteger_cmd
336 instead of add_setshow_zinteger_cmd.
337
338 * arch-utils.h: Remove the declaration of 'gdbarch_debug'.
339 * gdbarch.sh (gdbarch_debug): Add 'unsigned'.
340 (extern void _initialize_gdbarch): Call add_setshow_zuinteger_cmd
341 instead of add_setshow_zinteger_cmd.
342 * gdbarch.c, gdbarch.h: Re-generated.
343
95b07c96
YQ
3442012-08-02 Yao Qi <yao@codesourcery.com>
345
346 * nto-tdep.c: Don't include cli/cli-decode.h and
347 cli/cli-cmds.h.
348 (_initialize_nto_tdep): Remove.
349 * nto-tdep.h (struct nto_target_ops) <internal_debugging>:
350 Remove field.
351 Remove macro nto_internal_debugging.
352
57295b0b
RH
3532012-08-01 Richard Henderson <rth@redhat.com>
354
355 * configure.tgt (m32c-*-*) [gdb_target_obs]: Remove prologue-value.o.
356 (mep-*-*) [gdb_target_obs]: Likewise.
357
f782ad9b
AS
3582012-07-31 Andreas Schwab <schwab@linux-m68k.org>
359
360 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
361 linux_get_siginfo_type.
362
a14dd77e
JK
3632012-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
364
365 * infcall.c (call_function_by_hand): Move BP_ADDR comment to
366 AT_ENTRY_POINT.
367 (call_function_by_hand) <ON_STACK>: Call write_memory with
368 gdbarch_breakpoint_from_pc, if possible.
369 (call_function_by_hand) <AT_ENTRY_POINT>: The BP_ADDR comment is moved
370 here.
371
1467929f
YQ
3722012-07-31 Yao Qi <yao@codesourcery.com>
373
374 * tracepoint.c: Add 'static' for some variables.
375
70976b65
YQ
3762012-07-31 Yao Qi <yao@codesourcery.com>
377
378 * go32-nat.c: Declare _initialize_go32_nat.
379 * ser-go32.c: Declare _initialize_ser_dos.
380 * top.c (do_chdir_cleanup): Add 'static'.
381
eff9c3e6
KS
3822012-07-30 Keith Seitz <keiths@redhat.com>
383
384 * linespec.c (linespec_lex_number): A number followed
385 by quotes is a valid number, too.
386
728400d7
TT
3872012-07-30 Tom Tromey <tromey@redhat.com>
388
389 * remote-sim.c (gdb_os_poll_quit): Don't check immediate_quit.
390
fcf303ab
UW
3912012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org>
392
393 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Do not
394 attempt to 4-byte-align HW breakpoint addresses for Thumb.
395
4e969b4f
AB
3962012-07-30 Andrew Burgess <aburgess@broadcom.com>
397
398 * varobj.c (varobj_invalidate_iter): All varobj must be marked as
399 invalid or reevaluated to prevent prevent references to possibly
400 delete'd type objects being left in the varobj.
401
c4bfde41
JK
4022012-07-27 Tom Tromey <tromey@redhat.com>
403 Jan Kratochvil <jan.kratochvil@redhat.com>
404
405 * copying.awk: Print buffer-read-only and vi ro markers.
406 * copying.c: Rebuild.
407 * gdbarch.sh (copyright): Print buffer-read-only and vi ro markers.
408 * gdbarch.c, gdbarch.h: Rebuild.
409 * target-descriptions.c (maint_print_c_tdesc_cmd): Print
410 buffer-read-only and vi ro markers.
411 * features/arm-with-iwmmxt.c: Rebuild.
412 * features/arm-with-m-fpa-layout.c: Rebuild.
413 * features/arm-with-m-vfp-d16.c: Rebuild.
414 * features/arm-with-m.c: Rebuild.
415 * features/arm-with-neon.c: Rebuild.
416 * features/arm-with-vfpv2.c: Rebuild.
417 * features/arm-with-vfpv3.c: Rebuild.
418 * features/i386/amd64-avx-linux.c: Rebuild.
419 * features/i386/amd64-avx.c: Rebuild.
420 * features/i386/amd64-linux.c: Rebuild.
421 * features/i386/amd64.c: Rebuild.
422 * features/i386/i386-avx-linux.c: Rebuild.
423 * features/i386/i386-avx.c: Rebuild.
424 * features/i386/i386-linux.c: Rebuild.
425 * features/i386/i386-mmx-linux.c: Rebuild.
426 * features/i386/i386-mmx.c: Rebuild.
427 * features/i386/i386.c: Rebuild.
428 * features/i386/x32-avx-linux.c: Rebuild.
429 * features/i386/x32-avx.c: Rebuild.
430 * features/i386/x32-linux.c: Rebuild.
431 * features/i386/x32.c: Rebuild.
432 * features/mips-dsp-linux.c: Rebuild.
433 * features/mips-linux.c: Rebuild.
434 * features/mips64-dsp-linux.c: Rebuild.
435 * features/mips64-linux.c: Rebuild.
436 * features/rs6000/powerpc-32.c: Rebuild.
437 * features/rs6000/powerpc-32l.c: Rebuild.
438 * features/rs6000/powerpc-403.c: Rebuild.
439 * features/rs6000/powerpc-403gc.c: Rebuild.
440 * features/rs6000/powerpc-405.c: Rebuild.
441 * features/rs6000/powerpc-505.c: Rebuild.
442 * features/rs6000/powerpc-601.c: Rebuild.
443 * features/rs6000/powerpc-602.c: Rebuild.
444 * features/rs6000/powerpc-603.c: Rebuild.
445 * features/rs6000/powerpc-604.c: Rebuild.
446 * features/rs6000/powerpc-64.c: Rebuild.
447 * features/rs6000/powerpc-64l.c: Rebuild.
448 * features/rs6000/powerpc-7400.c: Rebuild.
449 * features/rs6000/powerpc-750.c: Rebuild.
450 * features/rs6000/powerpc-860.c: Rebuild.
451 * features/rs6000/powerpc-altivec32.c: Rebuild.
452 * features/rs6000/powerpc-altivec32l.c: Rebuild.
453 * features/rs6000/powerpc-altivec64.c: Rebuild.
454 * features/rs6000/powerpc-altivec64l.c: Rebuild.
455 * features/rs6000/powerpc-cell32l.c: Rebuild.
456 * features/rs6000/powerpc-cell64l.c: Rebuild.
457 * features/rs6000/powerpc-e500.c: Rebuild.
458 * features/rs6000/powerpc-e500l.c: Rebuild.
459 * features/rs6000/powerpc-isa205-32l.c: Rebuild.
460 * features/rs6000/powerpc-isa205-64l.c: Rebuild.
461 * features/rs6000/powerpc-isa205-altivec32l.c: Rebuild.
462 * features/rs6000/powerpc-isa205-altivec64l.c: Rebuild.
463 * features/rs6000/powerpc-isa205-vsx32l.c: Rebuild.
464 * features/rs6000/powerpc-isa205-vsx64l.c: Rebuild.
465 * features/rs6000/powerpc-vsx32.c: Rebuild.
466 * features/rs6000/powerpc-vsx32l.c: Rebuild.
467 * features/rs6000/powerpc-vsx64.c: Rebuild.
468 * features/rs6000/powerpc-vsx64l.c: Rebuild.
469 * features/rs6000/rs6000.c: Rebuild.
470 * features/s390-linux32.c: Rebuild.
471 * features/s390-linux32v1.c: Rebuild.
472 * features/s390-linux32v2.c: Rebuild.
473 * features/s390-linux64.c: Rebuild.
474 * features/s390-linux64v1.c: Rebuild.
475 * features/s390-linux64v2.c: Rebuild.
476 * features/s390x-linux64.c: Rebuild.
477 * features/s390x-linux64v1.c: Rebuild.
478 * features/s390x-linux64v2.c: Rebuild.
479 * features/tic6x-c62x-linux.c: Rebuild.
480 * features/tic6x-c62x.c: Rebuild.
481 * features/tic6x-c64x-linux.c: Rebuild.
482 * features/tic6x-c64x.c: Rebuild.
483 * features/tic6x-c64xp-linux.c: Rebuild.
484 * features/tic6x-c64xp.c: Rebuild.
485
826f0041
TT
4862012-07-27 Tom Tromey <tromey@redhat.com>
487
488 * c-exp.y (classify_name): Avoid assignment in condition.
489
84552b16
PA
4902012-07-27 Roland Schwingel <roland.schwingel@onevision.com>
491
492 * amd64-windows-tdep.c: Include "frame.h".
493 (amd64_windows_skip_trampoline_code): New function.
494 (amd64_windows_init_abi): Add trampoline registration.
495
a8a64aa8
YQ
4962012-07-27 Yao Qi <yao@codesourcery.com>
497
498 * tracepoint.c (cur_traceframe_number): Remove.
499 (set_tfile_traceframe): Remove.
500 (tfile_trace_find, tfile_fetch_registers): Update callers.
501 (tfile_xfer_partial, tfile_get_trace_state_variable_value): Likewise.
502 (tfile_open, tfile_trace_find): Likewise.
503
d99067cb
YQ
5042012-07-27 Yao Qi <yao@codesourcery.com>
505
506 * thread.c (switch_to_thread): Don't call registers_changed.
507
f2e8016f
TT
5082012-07-26 Tom Tromey <tromey@redhat.com>
509
f782ad9b
AS
510 * Makefile.in (SFILES): Remove objc-exp.y.
511 (YYFILES): Remove objc-exp.c.
512 (YYOBJ): Remove objc-exp.o.
513 (local-maintainer-clean): Don't mention objc-exp.c.
514 * c-exp.y: Include objc-lang.h.
515 (%union) <class>: New field.
516 (NSSTRING, SELECTOR, CLASSNAME, OBJC_LBRAC): New tokens.
517 (exp): Clone subscript production for OBJC_LBRAC. Add various
518 Objective C productions.
519 (msglist, msgarglist, msgarg): New productions.
520 (array_mod, func_mod, operator): Clone productions for
521 OBJC_LBRAC.
522 (parse_string_or_char): Handle '@' strings.
523 (lex_one_token): Return OBJC_LBRAC. Recognize @selector.
524 (classify_name): Check la_name_of_this. Recognize ObjC class
525 names.
526 * objc-exp.y: Remove.
527 * objc-lang.c (objc_language_defn): Use c_parse, c_error.
528 * objc-lang.h (objc_parse, objc_error): Don't declare.
f2e8016f 529
f66713d2
JK
5302012-07-26 Markus Metzger <markus.t.metzger@intel.com>
531
532 * python/py-inferior.c (infpy_threads): Call update_thread_list ().
533
7cfe01b4
JK
5342012-07-26 Jan Kratochvil <jan.kratochvil@redhat.com>
535
536 * auto-load.c (auto_load_info_scripts): Remove immediate_quit increment
537 and decrement.
538
5ba19b4c
TT
5392012-07-26 Tom Tromey <tromey@redhat.com>
540
541 * copying.c: Rebuild.
542 * copying.awk: Don't use immediate_quit. Use 'no_set_class', not
543 'no_class'.
544
27618ce4
TT
5452012-07-26 Tom Tromey <tromey@redhat.com>
546
547 * symmisc.c (print_symbol_bcache_statistics): Use QUIT, not
548 immediate_quit.
549 (print_objfile_statistics): Likewise.
550 (maintenance_print_symbols): Likewise.
551 (maintenance_print_msymbols): Likewise.
552 (maintenance_print_objfiles): Likewise.
553 * psymtab.c (print_partial_symbols): Call QUIT.
554 (maintenance_print_psymbols): Likewise. Don't modify
555 immediate_quit.
556 * copying.c (show_copying_command): Don't modify immediate_quit.
557 (show_warranty_command): Likewise.
558 * cli/cli-cmds.c (show_version): Don't modify immediate_quit.
559
dd3818c8
KS
5602012-07-26 Keith Seitz <keiths@redhat.com>
561
562 * linespec.c (linespec_lexer_lex_number): The input
563 is also a valid number if the next character is a comma
564 or colon.
565
23a80689
JB
5662012-07-26 Joel Brobecker <brobecker@adacore.com>
567
568 * NEWS: Document new --enable-libmcheck/--disable-libmcheck
569 configure options.
570
29f77997
TG
5712012-07-26 Tristan Gingold <gingold@adacore.com>
572
573 * machoread.c: Include gdb_bfd.h.
574
a55c1f32
TG
5752012-07-26 Tristan Gingold <gingold@adacore.com>
576
577 * dwarf2loc.c (locexpr_describe_location_piece): Use uint64_t for
578 offset.
579
56eb65bd
SP
5802012-07-26 Siddhesh Poyarekar <siddhesh@redhat.com>
581
582 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Expand parameter
583 SIZE to size_t.
584 (dwarf2_evaluate_loc_desc): Likewise.
585 (dwarf2_loc_desc_needs_frame): Likewise.
586 (locexpr_describe_location_1): Likewise.
587 * dwarf2loc.h (struct dwarf2_locexpr_baton): Make SIZE as
588 size_t.
589 (struct dwarf2_loclist_baton): Likewise.
590 * dwarf2read.c (struct dwarf_block): Likewise.
591 (dump_die_shallow): Use pulongest to print dwarf_block.size.
592 (decode_locdesc): Expand SIZE and I to size_t.
593
aec8845c
JK
5942012-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
595
596 * contrib/cc-with-tweaks.sh: Put into comment path gdb/contrib/.
597
33d7655b
JB
5982012-07-25 Joel Brobecker <brobecker@adacore.com>
599
600 * doublest.c (convert_doublest_to_floatformat): If the exponent
601 is too small, treat the value as zero. If the exponent is too
602 large, treat the value as infinity.
603
a22d44ff
JB
6042012-07-25 Joel Brobecker <brobecker@adacore.com>
605
606 * configure.ac: Add --enable-lmcheck configure option.
607 * configure: Regenerate.
608
d6b28940
TT
6092012-07-25 Tom Tromey <tromey@redhat.com>
610
f782ad9b
AS
611 * NEWS: Mention maint info bfds.
612 * gdb_bfd.c (all_bfds): New global.
613 (gdb_bfd_ref, gdb_bfd_unref): Update all_bfds.
614 (print_one_bfd, maintenance_info_bfds, _initialize_gdb_bfd):
615 New functions.
d6b28940 616
6e73ba20
RC
6172012-07-25 Ralf Corsépius <ralf.corsepius@rtems.org>
618
619 * configure.tgt: Add v850*-*-rtems*.
620
d560eebd
TT
6212012-07-25 Tom Tromey <tromey@redhat.com>
622
623 * macrotab.c (macro_bcache_str): Remove cast.
624
d7cbec71
HZ
6252012-07-25 Hui Zhu <hui_zhu@mentor.com>
626
627 * linespec.c (linespec_lexer_lex_number): Update comments,
628 change the return and add check to make sure the input is
629 the decimal numbers.
630 (linespec_lexer_lex_one): If linespec_lexer_lex_number return
631 false, call linespec_lexer_lex_string.
632
882f447f
TT
6332012-07-24 Tom Tromey <tromey@redhat.com>
634
635 * symfile.c (symbol_file_add): Don't open BFD twice.
636
53ab4066 6372012-07-24 Marc Khouzam <marc.khouzam@ericsson.com>
e12c7713
MK
638
639 * breakpoint.c (create_breakpoint): Store condition for pending
640 breakpoints.
641
108fb0f7
AS
6422012-07-24 Andreas Schwab <schwab@linux-m68k.org>
643
644 * m68k-tdep.c (m68k_reg_struct_return_p): Accept complex types.
645 (m68k_return_value): Handle complex types like structures.
646 (m68k_svr4_return_value): Likewise.
647
1634dcbe
JK
6482012-07-24 Marcus Shawcroft <marcus.shawcroft@arm.com>
649
650 * gdb_bfd.c (zlib_decompress_section) <!HAVE_ZLIB_H>: Adjust
651 parameters to bfd_get_section_name.
652
e2d12c21
YQ
6532012-07-24 Yao Qi <yao@codesourcery.com>
654
655 * cli/cli-setshow.c: Handle case 'var_uinteger'
656 and 'var_zuninteger' together. Handle case 'var_integer' and
657 'var_zinteger' together.
658
64b92e45
KS
6592012-07-23 Keith Seitz <keiths@redhat.com>
660
661 * linespec.c (convert_linespec_to_sal): Don't add
662 any symbols to the result vector if symbol_to_sal
663 returns zero.
664
0f5f4ffe
KS
6652012-07-23 Keith Seitz <keiths@redhat.com>
666
667 * linespec.c (decode_objc): Record the function name
668 in the linespec.
669
da1cc82f
TT
6702012-07-23 Tom Tromey <tromey@redhat.com>
671
672 * rs6000-nat.c (add_vmap): Rewrite archive loop. Fix reference
673 counting.
674 * exec.c (exec_close_1): Unconditionally release vmap's BFD.
675 (map_vmap): Acquire a reference to the BFD.
676
6c18f3e0
SP
6772012-07-23 Siddhesh Poyarekar <siddhesh@redhat.com>
678
679 * p-valprint.c (pascal_object_print_value): Replace potentially
680 unsafe alloca with xmalloc/xfree.
681 * valops.c (search_struct_method): Likewise.
682
695c3173
TT
6832012-07-23 Tom Tromey <tromey@redhat.com>
684
685 * solib-svr4.c (enable_break): Update.
686 * bfd-target.h (target_bfd_reopen): Update documentation.
687
08d2cd74
TT
6882012-07-23 Tom Tromey <tromey@redhat.com>
689
690 * symfile.c (separate_debug_file_exists): Update.
691 (gdb_bfd_open_maybe_remote): Rename from bfd_open_maybe_remote.
692 (reread_symbols): Update.
693 * elfread.c (build_id_verify): Update.
694 * symfile.h (gdb_bfd_open_maybe_remote): Rename from
695 bfd_open_maybe_remote.
696
596f7d67
TT
6972012-07-23 Tom Tromey <tromey@redhat.com>
698
699 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Fix comment.
700
8ac244b4
TT
7012012-07-23 Tom Tromey <tromey@redhat.com>
702
703 * coffread.c (coff_symfile_read): Make a cleanup for 'debugfile'
704 and 'abfd'.
705 * elfread.c (elf_symfile_read): Make a cleanup for 'debugfile'
706 and 'abfd'.
707 * jit.c (jit_bfd_try_read_symtab): Make a cleanup for 'nbfd'.
708 * machoread.c (macho_add_oso_symfile): Make a cleanup for
709 'abfd'.
710 (macho_symfile_read): Make a cleanup for 'dsym_bfd'.
711 * objfiles.c (allocate_objfile): Acquire a new reference.
712 * rs6000-nat.c (add_vmap): Don't acquire a BFD reference.
713 * solib.c (solib_read_symbols): Don't acquire a BFD reference.
714 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Make
715 a cleanup for 'nbfd'.
716 * symfile-mem.c (symbol_file_add_from_memory): Make a cleanup
717 for 'nbfd'.
718 * symfile.c (symbol_file_add_with_addrs_or_offsets): Don't
719 make a cleanup for 'abfd'.
720 (symbol_file_add): Make a BFD cleanup.
721
64c31149
TT
7222012-07-23 Tom Tromey <tromey@redhat.com>
723
724 * cli/cli-dump.c (bfd_openr_with_cleanup): Use gdb_bfd_openr.
725 (bfd_openw_with_cleanup): Use gdb_bfd_openw.
726 * corelow.c (core_open): Use gdb_bfd_fopen.
727 * dsrec.c (load_srec): Use gdb_bfd_openr.
728 * exec.c (exec_file_attach): Use gdb_bfd_fopen.
729 * gcore.c (gcore_memory_sections): Use gdb_bfd_openw.
730 * gdb_bfd.c (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
731 (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
732 (gdb_bfd_fdopenr): New functions.
733 * gdb_bfd.h (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
734 (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
735 (gdb_bfd_fdopenr): Declare.
736 * jit.c (bfd_open_from_target_memory): Use gdb_bfd_openr_iovec.
737 * m32-rom.c (m32r_load, m32r_upload_command): Use gdb_bfd_openr.
738 * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_openr,
739 gdb_bfd_openr_next_archived_file.
740 (macho_check_dsym): Use gdb_bfd_openr.
741 (macho_add_oso_symfile): Don't call gdb_bfd_stash_filename.
742 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_fdopenr.
743 * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_openr.
744 * remote-mips.c (mips_load_srec, pmon_load_fast): Use
745 gdb_bfd_openr.
746 * remote.c (remote_bfd_open): Use gdb_bfd_openr_iovec.
747 * rs6000-nat.c (add_vmap): Use gdb_bfd_openr, gdb_bfd_fdopenr,
748 gdb_bfd_openr_next_archived_file.
749 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
750 Use gdb_bfd_openr.
751 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
752 gdb_bfd_openr.
753 * solib-spu.c (spu_bfd_fopen): Use gdb_bfd_openr_iovec.
754 * solib.c (solib_bfd_fopen): Use gdb_bfd_fopen.
755 * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_openr_iovec.
756 * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_openr.
757 (symfile_bfd_open): Use gdb_bfd_fopen.
758 (generic_load): Use gdb_bfd_openr.
759 * windows-nat.c (windows_make_so): Use gdb_bfd_openr.
760
520b0001
TT
7612012-07-23 Tom Tromey <tromey@redhat.com>
762
763 * bfd-target.c (target_bfd_reopen): Update.
764 * cli/cli-dump.c (bfd_openr_with_cleanup)
765 (bfd_openw_with_cleanup): Update.
766 * corelow.c (core_open): Update.
767 * dsrec.c (load_srec): Update.
768 * exec.c (exec_file_attach): Update.
769 * gcore.c (create_gcore_bfd): Update.
770 * gdb_bfd.c (gdb_bfd_ref): Return void.
771 (gdb_bfd_open): Update.
772 * gdb_bfd.h (gdb_bfd_ref): Return void.
773 Update comments.
774 * jit.c (jit_bfd_try_read_symtab): Update.
775 * m32r-rom.c (m32r_load, m32r_upload_command): Update.
776 * machoread.c (macho_symfile_read_all_oso): Update.
777 (macho_check_dsym): Update.
778 * procfs.c (insert_dbx_link_bpt_in_file): Update.
779 * remote-m32r-sdi.c (m32r_load): Update.
780 * remote-mips.c (mips_load_srec, pmon_load_fast): Update.
781 * rs6000-nat.c (add_vmap): Update.
782 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
783 Update.
784 * solib-pa64.c (pa64_solib_create_inferior_hook): Update.
785 * solib-spu.c (spu_bfd_open): Update.
786 * solib.c (solib_bfd_fopen, solib_read_symbols): Update.
787 * spu-linux-nat.c (spu_bfd_open): Update.
788 * symfile.c (bfd_open_maybe_remote, symfile_bfd_open)
789 (generic_load): Update.
790 * windows-nat.c (windows_make_so): Update.
791
2322ff16
SP
7922012-07-22 Siddhesh Poyarekar <siddhesh@redhat.com>
793
794 * sh-tdep.c (sh_treat_as_flt_p): Remove unused variable LEN.
795
3def0b36
PA
7962012-07-20 Jeff Kenton <jkenton@tilera.com>
797
798 * tilegx-linux-tdep.c (tilegx_linux_sigframe_init): Fix
799 SIGTRAMP_FRAME unwinding.
800
e615022a
DE
8012012-07-20 Doug Evans <dje@google.com>
802
803 * NEWS: Document new options "set/show use-deprecated-index-sections",
804 and delete reference to --use-deprecated-index-sections.
805 * symfile.h (use_deprecated_index_sections): Delete.
806 * dwarf2read.c (use_deprecated_index_sections): Make static.
807 (read_index_from_section): Update wording of how to load
808 deprecated index sections.
809 (_initialize_dwarf2_read): New options
810 "set/show use-deprecated-index-sections".
811 * main.c (captured_main): Delete --use-deprecated-index-sections.
812
64776a0b
PA
8132012-07-20 Pedro Alves <palves@redhat.com>
814
815 PR threads/11692
816 PR gdb/12203
817
818 * infrun.c (handle_inferior_event) <new thread>: Don't special
819 case minus_one_ptid.
820 <TARGET_WAITKIND_SPURIOUS>: Ditto.
821 * linux-thread-db.c (thread_get_info_callback): Don't return early
822 if the thread is zombie.
823 (thread_from_lwp): Change return type to void. Rewrite stale
824 comment.
825 (attach_thread): Don't return early if the thread is zombie,
826 instead set its "dying" flag.
827 (thread_db_wait): Don't return TARGET_WAITKIND_SPURIOUS anymore.
828 (find_new_threads_callback): Don't return early if the thread is
829 zombie.
830
09826ec5
PA
8312012-07-20 Pedro Alves <palves@redhat.com>
832
833 * linux-nat.c (linux_nat_wait): Dump the passed in target options.
834 * target.c (target_wait): Likewise.
835 (str_comma_list_concat_elem, do_option, target_options_to_string):
836 New functions.
837 * target.h (target_options_to_string): Declare.
838
f7a35f02
TT
8392012-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
840 Tom Tromey <tromey@redhat.com>
841
842 * dwarf2read.c (dwarf_decode_macros)
843 <DW_MACRO_GNU_define_indirect_alt, DW_MACRO_GNU_undef_indirect_alt,
844 DW_MACRO_GNU_transparent_include_alt>: New cases.
845 (dwarf_decode_macro_bytes) <DW_MACRO_GNU_define_indirect,
846 DW_MACRO_GNU_undef_indirect>: Examine 'section_is_dwz'.
847
b81e1ee0
TT
8482012-07-20 Tom Tromey <tromey@redhat.com>
849
850 * dwarf2read.c (try_open_dwo_file): Don't call
851 gdb_bfd_stash_filename.
852
99c1624c
PA
8532012-07-20 Pedro Alves <palves@redhat.com>
854
855 * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
856 (i386_record_lea_modrm, i386_record_push, i386_record_floats)
857 (i386_process_record): Tweak description comments.
858
4ffa4fc7
PA
8592012-07-20 Pedro Alves <palves@redhat.com>
860
861 * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
862 (i386_process_record): Use record_read_memory.
863 * record.c (record_read_memory): New function.
864 (record_arch_list_add_mem, record_exec_insn): Use
865 record_read_memory.
866 * record.h (record_read_memory): Declare.
867
c24343e2
YQ
8682012-07-20 Yao Qi <yao@codesourcery.com>
869
870 * cli/cli-setshow.c (do_setshow_command): Don't check pointer is
871 NULL for xfree.
872
90f47860
PA
8732012-07-19 Pedro Alves <palves@redhat.com>
874
875 * record.c (record_resume): Ask the target beneath to report all
876 signals.
877
01093045
DE
8782012-07-19 Doug Evans <dje@google.com>
879
880 * dwarf2read.c (dwarf2_ranges_read): Ignore ranges starting at zero if
881 there's no section at address zero.
882 (dwarf2_record_block_ranges): Ditto.
883
a7c3d162
YQ
8842012-07-19 Yao Qi <yao@codesourcery.com>
885
886 * command.h, remote.c: Fix a typo in comment.
887
608b4967
TT
8882012-07-19 Tom Tromey <tromey@redhat.com>
889
890 PR exp/13206:
891 * ax-gdb.c (gen_expr) <OP_TYPEOF, OP_DECLTYPE>: New cases.
892 * breakpoint.c (watchpoint_exp_is_const) <OP_TYPEOF,
893 OP_DECLTYPE>: New cases.
894 * c-exp.y (TYPEOF, DECLTYPE): New tokens.
895 (type_exp): Add new productions.
896 (ident_tokens): Add __typeof__, typeof, __typeof, __decltype,
897 and decltype.
898 * eval.c (evaluate_subexp_standard) <OP_TYPEOF, OP_DECLTYPE>:
899 New case.
900 * expprint.c (dump_subexp_body_standard) <OP_TYPEOF,
901 OP_DECLTYPE>: New case.
902 * parse.c (operator_length_standard) <OP_TYPEOF, OP_DECLTYPE>:
903 New case.
904 * std-operator.def (OP_TYPEOF, OP_DECLTYPE): New constants.
905 * varobj.c (varobj_create): Handle OP_TYPEOF, OP_DECLTYPE.
906
274b54d7
TT
9072012-07-19 Tom Tromey <tromey@redhat.com>
908
909 * c-exp.y (enum token_flags): New.
910 (struct token) <cxx_only>: Remove.
911 <flags>: New field.
912 (tokentab3, tokentab2, ident_tokens): Update.
913 (lex_one_token): Update. Handle FLAG_SHADOW.
914
9eaf6705
TT
9152012-07-19 Tom Tromey <tromey@redhat.com>
916
917 * ax-gdb.c (gen_expr): Handle UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE.
918 * breakpoint.c (watchpoint_exp_is_const): Handle UNOP_CAST_TYPE,
919 UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST.
920 * c-exp.y (exp): Emit UNOP_MEMVAL_TYPE, UNOP_CAST_TYPE. Update
921 for changes to UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST. Use
922 type_exp production where appropriate.
923 * eval.c (evaluate_subexp_standard) <UNOP_CAST_TYPE>: New case.
924 <UNOP_DYNAMIC_CAST, UNOP_REINTERPRET_CAST>: Update.
925 <UNOP_MEMVAL_TYPE>: New case.
926 (evaluate_subexp_for_address) <UNOP_MEMVAL_TYPE>: New case.
927 (evaluate_subexp_for_sizeof) <UNOP_MEMVAL_TYPE>: New case.
928 * expprint.c (print_subexp_standard) <UNOP_CAST_TYPE>: New case.
929 <UNOP_MEMVAL_TYPE>: New case.
930 (dump_subexp_body_standard) <UNOP_DYNAMIC_CAST,
931 UNOP_REINTERPRET_CAST>: Update.
932 <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
933 * parse.c (operator_length_standard) <UNOP_DYNAMIC_CAST,
934 UNOP_REINTERPRET_CAST>: Update.
935 <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
936 * stack.c (return_command): Also check for UNOP_CAST_TYPE.
937 * std-operator.def (UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE): New
938 constants.
939
6ace3df1
YQ
9402012-07-19 Yao Qi <yao@codesourcery.com>
941 Jan Kratochvil <jan.kratochvil@redhat.com>
942
943 * cli/cli-setshow.c (do_setshow_command): Handle case 'var_filename'
944 and case 'var_optional_filename' together.
945 * infcmd.c (_initialize_infcmd): Call add_setshow_string_noescape_cmd
946 instead of add_setshow_optional_filename_cmd for setshow command
947 'args'. Set completer for 'set args'.
948
48faced0
DE
9492012-07-18 Doug Evans <dje@google.com>
950
951 * common/gdb_vecs.h: Moved here from ./gdb_vecs.h.
952 * common/gdb_vecs.c: New file, contents from utils.c.
953 * common/host-defs.h: New file, contents from defs.h.
954 * utils.h: New file, contents from defs.h.
955 * defs.h: Move all declarations of objects defined in utils.c
956 to utils.h (except QUIT() and related).
957 #include "utils.h", "host-defs.h".
958 * probe.h (probe_p): Move here from gdb_vecs.h.
959 * symfile.c: #include "probe.h" instead of "gdb_vecs.h".
960 * utils.c (free_char_ptr_vec): Moved to common/gdb_vecs.c.
961 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): Ditto.
962 * Makefile.in (SFILES): Add common/gdb_vecs.c.
963 (HFILES_NO_SRCDIR): Add common/gdb_vecs.h, common/host-defs.h, utils.h.
964 (COMMON_OBS): Add gdb_vecs.o.
965 (gdb_vecs.o): New rule.
966
66f1999b
KS
9672012-07-18 Keith Seitz <keiths@redhat.com>
968
969 * linespec.c (add_sal_to_sals): Add LITERAL_CANONICAL
970 parameter. If non-zero, use SYMNAME as the canonical name
971 for the SaL.
972 Update all callers.
973 (convert_linespec_to_sals): Use add_sal_to_sals for
974 expressions, too.
975 (decode_line_full): No need to "fill in missing canonical names"
976 anymore. Simply make cleanups for the allocated names.
977
5d94e27b
KS
9782012-07-18 Keith Seitz <keiths@redhat.com>
979
980 * linespec.c (struct linespec): Constify expression,
981 source_filename, function_name, and label_name.
982 (symbol_not_found_error): Make all parameters const.
983 (linespec_parser_delete): No need to check for NULL
984 when using xfree. Cast const char * to char * for xfree.
985
af4908ba
KS
9862012-07-18 Keith Seitz <keiths@redhat.com>
987
988 * breakpoint.c (invalid_thread_id_error): New function.
989 (find_condition_and_thread): Use invalid_thread_id_error.
990 (watch_command_1): Likewise.
991
853254db
TT
9922012-07-18 Tom Tromey <tromey@redhat.com>
993
994 * cc-with-index.sh, cc-with-dwz.sh: Remove.
995 * contrib/cc-with-tweaks.sh: New file.
996
2ec9a5e0
TT
9972012-07-18 Tom Tromey <tromey@redhat.com>
998
999 * dwarf2read.c (struct dwz_file) <gdb_index>: New field.
1000 (locate_dwz_sections): Recognize .gdb_index.
1001 (create_cus_from_index_list): New function.
1002 (create_cus_from_index): Use it. Handle .dwz data.
1003 (read_index_from_section): New function, extracted from
1004 dwarf2_read_index.
1005 (dwarf2_read_index): Use it. Read .gdb_index from dwz file,
1006 if needed.
1007
36586728
TT
10082012-07-18 Tom Tromey <tromey@redhat.com>
1009
1010 * dwarf2read.c (struct dwarf2_per_objfile) <dwz_file>: New field.
1011 (struct dwarf2_per_cu_data) <length>: No longer bitfield.
1012 <is_dwz>: New field.
1013 (struct dwz_file): New.
1014 (struct partial_die_info) <is_dwz, spec_is_dwz>: New fields.
1015 (locate_dwz_sections, dwarf2_get_dwz_file)
1016 (get_abbrev_section_for_cu): New functions.
1017 (error_check_comp_unit_head, read_and_check_comp_unit_head)
1018 (read_and_check_type_unit_head): Add abbrev_section argument.
1019 (create_debug_types_hash_table): Update.
1020 (init_cutu_and_read_dies): Use proper abbrev section.
1021 (init_cutu_and_read_dies_no_follow): Likewise.
1022 (set_partial_user): Do nothing if PST==NULL.
1023 (read_comp_units_from_section): New function.
1024 (create_all_comp_units): Use it.
1025 (scan_partial_symbols, partial_die_parent_scope): Update.
1026 (skip_one_die): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
1027 (process_imported_unit_die, read_partial_die): Handle .dwz files.
1028 (find_partial_die): Add offset_in_dwz argument. Update.
1029 (guess_partial_die_structure_name, fixup_partial_die): Update.
1030 (read_attribute_value): Handle DW_FORM_GNU_ref_alt,
1031 DW_FORM_GNU_strp_alt.
1032 (read_indirect_string_from_dwz): New function.
1033 (dwarf2_const_value_attr): Handle DW_FORM_GNU_strp_alt.
1034 (dump_die_shallow): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
1035 (is_ref_attr): Handle DW_FORM_GNU_ref_alt.
1036 (follow_die_offset): Add offset_in_dwz argument.
1037 (follow_die_ref, dwarf2_fetch_die_location_block): Update.
1038 (skip_form_bytes): Handle DW_FORM_GNU_strp_alt.
1039 (dwarf_decode_macro_bytes): Add section_is_dwz argument.
1040 Handle new macro forms.
1041 (dwarf_decode_macros): Update.
1042 (dwarf2_find_containing_comp_unit): Add offset_in_dwz argument.
1043 (dwarf2_per_objfile_free): Unref dwz_bfd, if it exists
1044 (lookup_die_type): Handle DW_FORM_GNU_ref_alt.
1045 (create_debug_types_hash_table): Use correct abbrev section.
1046 (get_debug_line_section): New function.
1047 (dwarf_decode_line_header, dwarf_decode_lines_1): Use it.
1048 (process_full_comp_unit): Pass 'required' argument to
1049 end_symtab_get_static_block.
1050 * buildsym.h (end_symtab_get_static_block): Update.
1051 * buildsym.c (end_symtab_get_static_block): Add 'required'
1052 argument.
1053 (end_symtab, end_expandable_symtab): Update.
1054
4bf44c1c
TT
10552012-07-18 Tom Tromey <tromey@redhat.com>
1056
1057 * dwarf2read.c: Don't include zlib.h or sys/mman.h.
1058 (pagesize): Remove.
1059 (struct dwarf2_section_info) <map_addr, map_len>: Remove.
1060 (zlib_decompress_section): Remove.
1061 (dwarf2_read_section): Use gdb_bfd_map_section.
1062 (munmap_section_buffer): Remove.
1063 (free_dwo_file, dwarf2_per_objfile_free): Don't use
1064 munmap_section_buffer.
1065 * gdb_bfd.c: Include zlib.h, sys/mman.h.
1066 (struct gdb_bfd_section_data): New.
1067 (free_one_bfd_section): New function.
1068 (gdb_bfd_close_or_warn): Use free_one_bfd_section.
1069 (get_section_descriptor, zlib_decompress_section)
1070 (gdb_bfd_map_section): New functions.
1071 * gdb_bfd.h (gdb_bfd_map_section): Declare.
1072
bb397797
TT
10732012-07-18 Tom Tromey <tromey@redhat.com>
1074
1075 * dwarf2read.c (try_open_dwo_file): use gdb_bfd_open.
1076
6ec53d05
TT
10772012-07-18 Tom Tromey <tromey@redhat.com>
1078
1079 * gdb_bfd.c (struct gdb_bfd_data): New.
1080 (gdb_bfd_cache): New global.
1081 (struct gdb_bfd_cache_search): New.
1082 (hash_bfd, eq_bfd, gdb_bfd_open): New functions.
1083 (gdb_bfd_ref, gdb_bfd_unref): Use gdb_bfd_data.
1084 * gdb_bfd.h (gdb_bfd_open): Declare.
1085
f9a062ff
TT
10862012-07-18 Tom Tromey <tromey@redhat.com>
1087
1088 * utils.c (make_cleanup_bfd_unref): Rename from
1089 make_cleanup_bfd_close.
1090 * defs.h (make_cleanup_bfd_unref): Rename from
1091 make_cleanup_bfd_close.
1092 * cli/cli-dump.c (bfd_openr_with_cleanup): Update.
1093 (bfd_openw_with_cleanup): Update.
1094 * corelow.c (core_open): Update.
1095 * dsrec.c (load_srec): Update.
1096 * m32r-rom.c (m32r_load, m32r_upload_command): Update.
1097 * remote-m32r-sdi.c (m32r_load): Update.
1098 * remote-mips.c (mips_load_srec): Update.
1099 (pmon_load_fast): Update.
1100 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
1101 Update.
1102 (darwin_bfd_open): Update.
1103 * solib.c (solib_bfd_fopen): Update.
1104 * symfile-mem.c (symbol_file_add_from_memory): Update.
1105 * symfile.c (symbol_file_add_with_addrs_or_offsets): Update.
1106 (symfile_bfd_open): Update.
1107 (generic_load): Update.
1108
d6ad71ba
TT
11092012-07-18 Tom Tromey <tromey@redhat.com>
1110
1111 * remote-mips.c (mips_load_srec): Use make_cleanup_bfd_close.
1112 (pmon_load_fast): Likewise.
1113 * m32r-rom.c (m32r_load): Use make_cleanup_bfd_close.
1114 (m32r_upload_command): Likewise.
1115 * dsrec.c (load_srec): Use make_cleanup_bfd_close.
1116 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
1117 Use make_cleanup_bfd_close.
1118
a4453b7e
TT
11192012-07-18 Tom Tromey <tromey@redhat.com>
1120
1121 * symfile.c (symfile_bfd_open): Don't copy name. Call
1122 gdb_bfd_stash_filename.
1123 (load_command): Open the new BFD before freeing the old.
1124 (bfd_open_maybe_remote): Call gdb_bfd_stash_filename.
1125 * symfile-mem.c (symbol_file_add_from_memory): Don't copy name.
1126 Call gdb_bfd_stash_filename.
1127 * spu-linux-nat.c (spu_bfd_open): Don't copy name.
1128 * solib-spu.c (spu_bfd_fopen): Don't copy name. Call
1129 gdb_bfd_stash_filename.
1130 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
1131 Free found_pathname.
1132 * rs6000-nat.c (add_vmap): Don't copy filename. Call
1133 gdb_bfd_stash_filename.
1134 * remote.c (remote_bfd_open): Call gdb_bfd_stash_filename.
1135 * machoread.c (macho_add_oso_symfile): Call
1136 gdb_bfd_stash_filename.
1137 (macho_symfile_read_all_oso): Arrange to free archive_name. Call
1138 gdb_bfd_stash_filename.
1139 (macho_check_dsym): Don't copy filename. Call
1140 gdb_bfd_stash_filename.
1141 * jit.c (bfd_open_from_target_memory): Don't copy the filename.
1142 * gdb_bfd.c (gdb_bfd_stash_filename): New function.
1143 * gdb_bfd.h (gdb_bfd_stash_filename): Declare.
1144 * gcore.c (create_gcore_bfd): Call gdb_bfd_stash_filename.
1145 * exec.c (exec_close): Don't free the BFD's filename.
1146 (exec_file_attach): Don't copy the filename. Call
1147 gdb_bfd_stash_filename.
1148 * corelow.c (core_close): Don't free the BFD's filename.
1149 (core_open): Call gdb_bfd_stash_filename.
1150 * corefile.c (reopen_exec_file): Remove #if 0 code.
1151 * solib.c (solib_bfd_fopen): Call gdb_bfd_stash_filename. Free
1152 pathname.
1153 * dwarf2read.c (try_open_dwo_file): Call gdb_bfd_stash_filename.
1154
cbb099e8
TT
11552012-07-18 Tom Tromey <tromey@redhat.com>
1156
1157 * dwarf2read.c (try_open_dwo_file): Use gdb_bfd_ref and
1158 gdb_bfd_unref.
1159 (free_dwo_file): Use gdb_bfd_unref.
1160 * cli/cli-dump.c: Include gdb_bfd.h.
1161 (bfd_openw_with_cleanup): Use gdb_bfd_ref.
1162 (bfd_openr_with_cleanup): Likewise.
1163 * windows-nat.c (windows_make_so): Use gdb_bfd_ref,
1164 gdb_bfd_unref.
1165 * utils.c: Include gdb_bfd.h.
1166 (do_bfd_close_cleanup): Use gdb_bfd_unref.
1167 * symfile.c: Include gdb_bfd.h.
1168 (separate_debug_file_exists): Use gdb_bfd_unref.
1169 (bfd_open_maybe_remote): Use gdb_bfd_ref.
1170 (symfile_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
1171 (generic_load): Use gdb_bfd_ref.
1172 (reread_symbols): Use gdb_bfd_unref.
1173 * symfile-mem.c: Include gdb_bfd.h.
1174 (symbol_file_add_from_memory): Use make_cleanup_bfd_close.
1175 * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
1176 * solib.c: Include gdb_bfd.h.
1177 (solib_bfd_fopen): Use gdb_bfd_ref.
1178 (solib_bfd_open): Use gdb_bfd_unref.
1179 (free_so_symbols): Use gdb_bfd_unref.
1180 (reload_shared_libraries_1): Use gdb_bfd_unref.
1181 * solib-spu.c: Include gdb_bfd.h.
1182 (spu_bfd_fopen): Use gdb_bfd_ref, gdb_bfd_unref.
1183 * solib-pa64.c (pa64_solib_create_inferior_hook): Use gdb_bfd_ref,
1184 gdb_bfd_unref.
1185 * solib-frv.c: Include gdb_bfd.h.
1186 (enable_break2): Use gdb_bfd_unref.
1187 * solib-dsbt.c: Include gdb_bfd.h.
1188 (enable_break2): Use gdb_bfd_unref.
1189 * solib-darwin.c: Include gdb_bfd.h.
1190 (darwin_solib_get_all_image_info_addr_at_init): Use gdb_bfd_ref,
1191 gdb_bfd_unref.
1192 (darwin_bfd_open): Use gdb_bfd_unref.
1193 * rs6000-nat.c (add_vmap): Use gdb_bfd_ref, gdb_bfd_unref.
1194 * remote-mips.c: Include gdb_bfd.h.
1195 (mips_load_srec): Use gdb_bfd_ref.
1196 (pmon_load_fast): Use gdb_bfd_ref.
1197 * remote-m32r-sdi.c: Include gdb_bfd.h.
1198 (m32r_load): Use gdb_bfd_ref.
1199 * record.c: Include gdb_bfd.h.
1200 (record_save_cleanups): Use gdb_bfd_unref.
1201 (cmd_record_save): Use gdb_bfd_unref.
1202 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_ref,
1203 gdb_bfd_unref.
1204 * objfiles.h (gdb_bfd_close_or_warn): Remove.
1205 (gdb_bfd_ref, gdb_bfd_unref): Move to gdb_bfd.h.
1206 * objfiles.c: Include gdb_bfd.h.
1207 (free_objfile): Use gdb_bfd_unref.
1208 (gdb_bfd_close_or_warn, gdb_bfd_ref, gdb_bfd_unref): Move to
1209 gdb_bfd.c.
1210 * machoread.c (macho_add_oso_symfile): Use gdb_bfd_unref.
1211 (macho_symfile_read_all_oso): Use gdb_bfd_ref, gdb_bfd_unref.
1212 (macho_check_dsym): Likewise.
1213 * m32r-rom.c: Include gdb_bfd.h.
1214 (m32r_load): Use gdb_bfd_ref.
1215 (m32r_upload_command): Use gdb_bfd_ref.
1216 * jit.c: Include gdb_bfd.h.
1217 (jit_bfd_try_read_symtab): Use gdb_bfd_ref, gdb_bfd_unref.
1218 * gdb_bfd.h: New file.
1219 * gdb_bfd.c: New file.
1220 * gcore.c: Include gdb_bfd.h.
1221 (create_gcore_bfd): Use gdb_bfd_ref.
1222 (do_bfd_delete_cleanup): Use gdb_bfd_unref.
1223 (gcore_command): Use gdb_bfd_unref.
1224 * exec.c: Include gdb_bfd.h.
1225 (exec_close): Use gdb_bfd_unref.
1226 (exec_close_1): Use gdb_bfd_unref.
1227 (exec_file_attach): Use gdb_bfd_ref.
1228 * elfread.c: Include gdb_bfd.h.
1229 (build_id_verify): Use gdb_bfd_unref.
1230 * dsrec.c: Include gdb_bfd.h.
1231 (load_srec): Use gdb_bfd_ref.
1232 * corelow.c: Include gdb_bfd.h.
1233 (core_close): Use gdb_bfd_unref.
1234 (core_open): Use gdb_bfd_ref.
1235 * bfd-target.c: Include gdb_bfd.h.
1236 (target_bfd_xclose): Use gdb_bfd_unref.
1237 (target_bfd_reopen): Use gdb_bfd_ref.
1238 * Makefile.in (SFILES): Add gdb_bfd.c.
1239 (HFILES_NO_SRCDIR): Add gdb_bfd.h.
1240 (COMMON_OBS): Add gdb_bfd.o.
1241
ed1d1739
KS
12422012-07-18 Keith Seitz <keiths@redhat.com>
1243
1244 * breakpoint.c (find_condition_and_thread): Initialize
1245 TASK and REST.
1246 (create_breakpiont): find_condition_and_thread will now
1247 initialize COND_STRING, THREAD, and REST (and TASK).
1248 (addr_string_to_sals): Likewise.
1249
eab402df
PA
12502012-07-18 Pedro Alves <palves@redhat.com>
1251
1252 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_NO_HISTORY>:
1253 Pull the single step breakpoints out of the target.
1254
2b963b68
SDJ
12552012-07-18 Sergio Durigan Junior <sergiodj@redhat.com>
1256
1257 * probe.c (probe_safe_evaluate_at_pc): Rename variable `n_probes'.
1258 * stap-probe.c (compile_probe_arg): Likewise.
1259
6bac7473
SDJ
12602012-07-18 Sergio Durigan Junior <sergiodj@redhat.com>
1261
1262 * elfread.c (elf_get_probe_argument_count): Remove `objfile' argument.
1263 (elf_compile_to_ax): Likewise.
1264 * infrun.c (insert_exception_resume_from_probe): Likewise.
1265 (check_exception_resume): Remove `objfile' variable.
1266 * probe.c (find_probe_by_pc): Remove `objfile' argument.
1267 (struct probe_and_objfile, probe_and_objfile_s): Delete.
1268 (collect_probes): Adjust return value to `VEC (probe_p) *'.
1269 (compare_entries): Rename to...
1270 (compare_probes): ...this. Adjust function to work with
1271 `struct probe *'. Rename variables `ea' and `eb' to `pa' and `pb'
1272 respectively.
1273 (gen_ui_out_table_header_info): Adjust `probes' argument to be
1274 `VEC (probe_p) *'.
1275 (print_ui_out_info): Adjust argument to be `struct probe *'.
1276 (info_probes_for_ops): Adjust internal computations to use
1277 `VEC (probe_p) *'.
1278 (probe_safe_evaluate_at_pc): Refactor to not pass `objfile' anymore.
1279 * probe.h (struct probe_ops) <get_probe_argument_count, compile_to_ax,
1280 gen_info_probes_table_values>: Remove `objfile' argument.
1281 (struct probe) <objfile>: New field.
1282 (find_probe_by_pc): Remove `objfile' argument.
1283 * stap-probe.c (stap_parse_probe_arguments): Likewise.
1284 (stap_get_probe_argument_count): Likewise.
1285 (stap_get_arg): Likewise.
1286 (stap_evaluate_probe_argument): Likewise.
1287 (stap_compile_to_ax): Likewise.
1288 (compile_probe_arg): Refactor not to pass `objfile' anymore.
1289 (handle_stap_probe): Fill `objfile' field from `struct probe'.
1290 (stap_gen_info_probes_table_header): Remove `objfile' argument.
1291 * symfile.h (struct sym_probe_fns) <sym_evaluate_probe_argument,
1292 sym_compile_to_ax>: Likewise.
1293
3347eb1a 12942012-07-18 Terry Guo <terry.guo@arm.com>
1295
1296 PR 14329
1297 * defs.h (GDB_MI_MSG_WIDTH): New.
1298 * ser_base (ser_base_read_error_fd): New function.
1299 (do_ser_base_readchar): Poll error file descriptor as well as
1300 standard output.
f782ad9b 1301 (generic_readchar): Refactor error handling.
3347eb1a 1302
80c8d323
JB
13032012-07-18 Joel Brobecker <brobecker@adacore.com>
1304
1305 * NEWS: Create a new section for the next release branch.
1306 Rename the section of the current branch, now that it has
1307 been cut.
1308
b45a0664 13092012-07-18 Joel Brobecker <brobecker@adacore.com>
1310
1311 GDB 7.5 branch created (branch timestamp: 2012-07-18 03:22 UTC)
1312 * version.in: Bump version to 7.5.50.20120718-cvs.
1313
09cf2b22
KS
13142012-07-17 Keith Seitz <keiths@redhat.com>
1315
1316 * linespec.c (linespec_parse_line_offset): Make parameter
1317 const.
1318
8f043999
JK
13192012-07-16 Jan Kratochvil <jan.kratochvil@redhat.com>
1320
1321 PR 11914
1322 * f-valprint.c (info_common_command): New variable frame_id.
1323 Reinitialize FI form FRAME_ID after each print_variable_and_value.
1324 * printcmd.c (print_variable_and_value): Extend function comment.
1325 Add comment for invalidated FRAME.
1326 * stack.c (backtrace_command_1): New variable frame_id. Reinitialize
1327 FI form FRAME_ID after each print_frame_local_vars.
1328 (struct print_variable_and_value_data): Change frame to frame_id.
1329 (do_print_variable_and_value): New variable frame, initialize it from
1330 p->frame_id. Add comment for invalidated FRAME.
1331 (print_frame_local_vars, print_frame_arg_vars): New function comment.
1332 Update CB_DATA.FRAME to CB_DATA.FRAME_ID initialization. Add comment
1333 for invalidated FRAME.
1334
ae5e0686
MK
13352012-07-16 Marc Khouzam <marc.khouzam@ericsson.com>
1336 Pedro Alves <palves@redhat.com>
1337
1338 * linux-nat.c (linux_nat_detach): Don't unregister from the event
1339 loop.
1340
5049c5be
TT
13412012-07-16 Tom Tromey <tromey@redhat.com>
1342
1343 * jv-typeprint.c (c_type_print_varspec_suffix): Don't declare.
1344
2908cac6
DE
13452012-07-15 Doug Evans <dje@google.com>
1346
094b34ac
DE
1347 * dwarf2read.c (stmt_list_hash): New struct.
1348 (type_unit_group): Embed "per_cu" member, remove pointer.
1349 New union member "t", move member "tus" into it, all uses updated.
1350 New member "hash", replaces member "line_offset, all uses updated.
1351 (quick_file_names): Replace member "offset" with "hash", all uses
1352 updated.
1353 (hash_stmt_list_entry, eq_stmt_list_entry): New functions.
1354 (hash_file_name_entry, eq_file_name_entry): Call them.
1355 (hash_type_unit_group, eq_type_unit_group): Ditto.
1356 (dw2_get_cu, dw2_get_primary_cu): Replace assert with a better one.
1357 (dw2_get_file_names_reader): Fix file name table calculation for TUs.
1358 (dw2_get_file_names): Update.
1359 (create_type_unit_group): Replace "per_cu" arg with "cu".
1360 All callers updated. Fix "quick" (.gdb_index) handling.
1361 (get_type_unit_group): Replace "per_cu" arg with "cu".
1362 All callers updated.
1363 (build_type_unit_groups): Don't reset tu_stats.
1364
2908cac6
DE
1365 * symtab.c (filename_seen_cache): Delete members "tab_alloc_size",
1366 "tab_cur_size". Change member "tab" to be a htab_t.
1367 (create_filename_seen_cache): Update.
1368 (clear_filename_seen_cache, delete_filename_seen_cache): Update.
1369 (filename_seen): Update.
1370
a2b6eff5
DE
13712012-07-13 Doug Evans <dje@google.com>
1372
1373 * symtab.c (filename_seen): Update comment.
1374
4359dff1
JK
13752012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1376 Doug Evans <dje@google.com>
1377
1378 * buildsym.c (end_symtab_1): Split it to ...
1379 (end_symtab_get_static_block): ... this ...
1380 (end_symtab_from_static_block): ... and this function.
1381 (end_symtab, end_expandable_symtab): Call them.
1382 * buildsym.h (end_symtab_get_static_block)
1383 (end_symtab_from_static_block): New declarations.
1384 * dwarf2read.c (process_full_comp_unit): New variable static_block.
1385 Set its valid CU ranges.
1386
a24f71ab
JK
13872012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1388
1389 * dwarf2loc.c (disassemble_dwarf_expression): Handle
1390 DW_OP_GNU_parameter_ref.
1391
d76b7dbc
JK
13922012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1393
1394 * dwarf2read.c (read_call_site_scope): Do not gdb_assert for invalid
1395 read-in CALL_SITE_PARAMETER_PARAM_OFFSET.
1396
9fdc877b
DE
13972012-07-13 Doug Evans <dje@google.com>
1398
1399 * symtab.c (output_source_filename): Delete unnecessary forward decl.
1400 (filename_seen_cache): New struct.
1401 (INITIAL_FILENAME_SEEN_CACHE_SIZE): New macro.
1402 (create_filename_seen_cache): New function.
1403 (clear_filename_seen_cache, delete_filename_seen_cache): New functions.
1404 (filename_seen): Delete arg "first". New arg "cache". All callers
1405 updated.
1406 (output_source_filename_data): New struct.
1407 (output_source_filename): Delete arg "first". New arg "data".
1408 All callers updated.
1409 (sources_info): Delete local "first". New locals "data", "cleanups".
1410 Rewrite to use filename_seen_cache.
1411 (add_partial_filename_data): Delete member "first". New member
1412 "filename_seen_cache". All uses updated.
1413 (make_source_files_completion_list): Rewrite to use
1414 filename_seen_cache.
1415
f80c6f3f
DE
14162012-07-12 Doug Evans <dje@google.com>
1417
1418 * psymtab.c (map_symbol_filenames_psymtab): Skip shared psymtabs.
1419
0bfa869d
DE
14202012-07-10 Doug Evans <dje@google.com>
1421
f4dc4d17
DE
1422 PR gdb/13498
1423 * dwarf2read.c (dwarf2_per_objfile): New members n_type_unit_groups,
1424 all_type_unit_groups, type_unit_groups, tu_stats.
1425 (dwarf2_per_cu_data): Move "imported_symtabs" into new union "s".
1426 All uses updated. Add type_unit_group to union "s".
1427 (type_unit_group): New struct.
1428 (IS_TYPE_UNIT_GROUP): New macro.
1429 (abbrev_table): Delete unused member "section".
1430 (dw2_do_instantiate_symtab): Early exit if type_unit_group.
1431 (dw2_get_cu): Assert not used with type_unit_group.
1432 (dw2_get_primary_cu): New function.
1433 (dw2_build_type_unit_groups_reader): New function.
1434 (dw2_build_type_unit_groups): New function.
1435 (dw2_get_file_names): Assert not called on type units.
1436 (dw2_map_symtabs_matching_filename): Call dw2_build_type_unit_groups.
1437 Redo loop to iterate over type unit groups instead of type units.
1438 (dw2_expand_symtabs_matching, dw2_map_symbol_filenames): Ditto.
1439 (read_abbrev_offset): New function.
1440 (init_cutu_and_read_dies): New arg "abbrev_table". All callers
1441 updated.
1442 (create_partial_symtab): New function.
1443 (process_psymtab_comp_unit_reader): Assert not used with type units.
1444 Call create_partial_symtab.
1445 (process_psymtab_type_unit): Delete.
1446 (hash_type_unit_group, eq_type_unit_group): New functions.
1447 (allocate_type_unit_groups_table): New function.
1448 (NO_STMT_LIST_TYPE_UNIT_PSYMTAB): New macro.
1449 (NO_STMT_LIST_TYPE_UNIT_PSYMTAB_SIZE): New macro.
1450 (create_type_unit_group, get_type_unit_group): New functions.
1451 (tu_abbrev_offset): New struct.
1452 (sort_tu_by_abbrev_offset): New function.
1453 (add_type_unit_group_to_table): New function.
1454 (build_type_unit_groups): New function.
1455 (build_type_psymtabs_reader): New function.
1456 (build_type_psymtab_dependencies): New function.
1457 (build_type_psymtabs): Rewrite.
1458 (scan_partial_symbols): Flag an error if a DW_TAG_imported_unit
1459 is seen in a type unit.
1460 (process_queue): Move symtab expansion debugging printfs here.
1461 Call process_full_type_unit for type units.
1462 (compute_symtab_includes): Assert not called for type units.
1463 (process_cu_includes): Don't call compute_symtab_includes for
1464 type units.
1465 (process_full_type_unit): New function.
1466 (process_imported_unit_die): Flag an error if called for type units.
1467 (handle_DW_AT_stmt_list): Delete arg "want_line_info". All callers
1468 updated. Assert not called for type units.
1469 (read_file_scope): Call dwarf2_start_symtab.
1470 (setup_type_unit_groups): New function.
1471 (read_type_unit_scope): Rewrite.
1472 (abbrev_table_read_table): Initialize abbrev_table->offset.
1473 (abbrev_table_free_cleanup): New function.
1474 (dwarf2_start_symtab): New function.
1475 (load_full_type_unit): Assert not called for type unit groups.
6d30eef8
DE
1476 * buildsym.c (finish_block_internal): New arg "expandable".
1477 All callers updated.
1478 (start_symtab): Move most contents to ...
1479 (restart_symtab): ... here. New function.
1480 (reset_symtab_globals): New function.
1481 (end_symtab_1): Renamed from end_symtab. New arg "expandable".
1482 Call reset_symtab_globals.
1483 (end_symtab, end_expandable_symtab): New functions.
1484 (set_missing_symtab, augment_type_symtab): New functions.
1485 * buildsym.h (end_expandable_symtab): Declare.
1486 (augment_type_symtab, restart_symtab): Declare.
b4c41fc7
DE
1487 * psympriv.h (struct partial_symtab): New member "anonymous".
1488 * psymtab.c (partial_map_symtabs_matching_filename): Ignore
1489 anonymous psymtabs.
1490 (read_psymtabs_with_filename): Ditto.
1491 (map_symbol_filenames_psymtab, psymtab_to_fullname): Ditto.
1492 (expand_symtabs_matching_via_partial): Ditto.
1493 (dump_psymtab): Update.
0bfa869d
DE
1494 * dictionary.c (dict_add_pending): New function.
1495 * dictionary.h (dict_add_pending): Declare.
1496
45e58e77
DE
14972012-07-09 Doug Evans <dje@google.com>
1498
b74db436
DE
1499 * buildsym.c (start_subfile): Remove unnecessary check for
1500 name == NULL.
1501
fd55216c
DE
1502 * psymtab.c (allocate_psymtab): Use host_address_to_string.
1503
6721b2ec
DE
1504 * dwarf2read.c (load_full_type_unit): Simplify.
1505
b4dd5633
DE
1506 * dwarf2read.c (dwarf2_per_objfile): Change type of all_type_units
1507 to struct signatured_type **. All uses updated.
1508
45e58e77
DE
1509 * dwarf2read.c (dwarf2_attr_no_follow): Delete unused arg "cu".
1510 All callers updated.
1511
e314d629
TT
15122012-07-09 Tom Tromey <tromey@redhat.com>
1513
1514 * c-exp.y (check_parameter_typelist): New function.
1515 (parameter_typelist): Call it.
1516 * eval.c (make_params): Handle '(void)' case.
1517 * gdbtypes.c (lookup_function_type_with_arguments): Handle
1518 '(void)' case.
1519
aa7c7447
JK
15202012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
1521
1522 * common/linux-ptrace.c: Include gdb_assert.h.
1523 <__i386__> (linux_ptrace_test_ret_to_nx_instr): New declaration.
1524 <__i386__>: Include sys/reg.h, sys/mman.h, signal.h, sys/wait.h and
1525 stdint.h.
1526 (linux_ptrace_test_ret_to_nx, linux_ptrace_init_warnings): New
1527 functions.
1528 * common/linux-ptrace.h (linux_ptrace_init_warnings): New declarations.
1529 * linux-nat.c (linux_child_post_attach)
1530 (linux_child_post_startup_inferior): Call linux_ptrace_init_warnings.
1531
889003ed
JK
15322012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
1533
1534 * linux-thread-db.c (thread_db_find_new_threads_silently): Do not apply
1535 nptl <2.7 bug workaround for core files.
1536
da559b09
JK
15372012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
1538
1539 * linux-nat.c (resume_lwp, linux_nat_resume): Remove LP->SIGINFO
1540 clearing.
1541 (save_siginfo): Remove.
1542 (stop_wait_callback, linux_nat_filter_event): Remove the save_siginfo
1543 call.
1544 (resume_stopped_resumed_lwps): Remove LP->SIGINFO clearing.
1545 (linux_nat_get_siginfo): Use PTRACE_GETSIGINFO.
1546 * linux-nat.h (struct lwp_info): Remove field siginfo.
1547
f865ee35
JK
15482012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
1549
1550 Code cleanup for the next patch.
1551 * arm-linux-nat.c (arm_linux_stopped_data_address): Change variable
1552 siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
1553 call for it.
1554 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
1555 (ia64_linux_stopped_data_address):
1556 * linux-nat.c (linux_nat_get_siginfo): Add parameter siginfo, change
1557 the return value.
1558 * linux-nat.h (linux_nat_get_siginfo): Likewise.
1559 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Change variable
1560 siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
1561 call for it.
1562
76b83c51
JK
15632012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
1564
1565 PR 14321
1566 * findcmd.c (parse_find_args): New variable pattern_buf_size_need.
1567 Increase buffer sizes to 2x we need, not just 2x of the previous size.
1568
a6fb9c08
TT
15692012-07-06 Tom Tromey <tromey@redhat.com>
1570
1571 * c-exp.y (DOTDOTDOT): New token.
1572 (func_mod, exp): Use parameter_typelist.
1573 (parameter_typelist): New production.
1574 (tokentab3): Add "..." token.
1575 * eval.c (make_params): Handle varargs.
1576 * gdbtypes.c (lookup_function_type_with_arguments): Handle
1577 varargs.
1578
71918a86
TT
15792012-07-06 Tom Tromey <tromey@redhat.com>
1580
1581 PR exp/9608:
1582 * c-exp.y (%union) <tvec>: Change type.
1583 (func_mod): Now uses <tvec> type.
1584 (exp): Update for tvec change.
1585 (direct_abs_decl): Push the typelist.
1586 (func_mod): Return a typelist.
1587 (nonempty_typelist): Update for tvec change.
1588 * gdbtypes.c (lookup_function_type_with_arguments): New function.
1589 * gdbtypes.h (lookup_function_type_with_arguments): Declare.
1590 * parse.c (pop_type_list): New function.
1591 (push_typelist): New function.
1592 (follow_types): Handle tp_function_with_arguments.
1593 * parser-defs.h (type_ptr): New typedef. Define a VEC.
1594 (enum type_pieces) <tp_function_with_arguments>: New constant.
1595 (union type_stack_elt) <typelist_val>: New field.
1596 (push_typelist): Declare.
1597
fcde5961
TT
15982012-07-06 Tom Tromey <tromey@redhat.com>
1599
1600 * c-exp.y (%union) <type_stack>: New field.
1601 (abs_decl, direct_abs_decl): Use <type_stack> type. Update.
1602 (ptr_operator_ts): New production.
1603 (ptype): Update.
1604 * parse.c (type_stack_reserve): New function.
1605 (check_type_stack_depth): Use it.
1606 (pop_type_stack, append_type_stack, push_type_stack)
1607 (get_type_stack, type_stack_cleanup): New functions.
1608 (follow_types): Handle tp_type_stack.
1609 (_initialize_parse): Simplify initialization.
1610 * parser-defs.h (enum type_pieces) <tp_type_stack>: New
1611 constant.
1612 (union type_stack_elt) <stack_val>: New field.
1613 (get_type_stack, append_type_stack, push_type_stack)
1614 (type_stack_cleanup): Declare.
1615
1a7d0ce4
TT
16162012-07-06 Tom Tromey <tromey@redhat.com>
1617
1618 * parser-defs.h (type_stack, type_stack_size, type_stack_depth):
1619 Remove.
1620 (struct type_stack): New.
1621 * parse.c (type_stack, type_stack_size, type_stack_depth):
1622 Remove.
1623 (type_stack): New global.
1624 (parse_exp_in_context, check_type_stack_depth)
1625 (insert_into_type_stack, insert_type, push_type, push_type_int)
1626 (insert_type_address_space, pop_type, pop_type_int)
1627 (_initialize_parse): Update.
1628
16d01384
TT
16292012-07-06 Tom Tromey <tromey@redhat.com>
1630
1631 * c-exp.y (func_mod, direct_abs_decl, abs_decl, ptr_operator):
1632 Remove %type.
1633
9bfc60bf
SP
16342012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
1635
1636 * c-lang.c (c_printstr): Remove ununsed variable WIDTH.
1637
d5161074
SP
16382012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
1639 Jan Kratochvil <jan.kratochvil@redhat.com>
1640
1641 * cp-valprint.c (cp_print_value): Replace potentially unsafe
1642 alloca with xmalloc/xfree.
1643
a74bc576
SP
16442012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
1645
1646 * MAINTAINERS (Write After Approval): Add myself to the list.
1647
667e0a4b
DE
16482012-07-05 Doug Evans <dje@google.com>
1649
1650 * dwarf2read.c (dw2_expand_symtabs_matching): Fix typo.
1651
34b536a8
HZ
16522012-07-05 Hui Zhu <hui_zhu@mentor.com>
1653
1654 * ax-gdb.c (cli/cli-utils.h): New include.
1655 (linespec.h): Ditto.
1656 (agent_eval_command_one): New function.
1657 (agent_command_1): Ditto.
1658 (agent_command): Call function agent_command_1.
1659 (agent_eval_command): Ditto.
1660 (_initialize_ax_gdb): Change help for "maint agent"
1661 and "maint agent-eval".
1662
e6f0bce7
HZ
16632012-07-05 Hui Zhu <hui_zhu@mentor.com>
1664
1665 * breakpoint.c (check_for_argument): Move to file cli/cli-utils.c.
1666 * cli/cli-utils.c (check_for_argument): New function.
1667 * cli/cli-utils.h (check_for_argument): Ditto.
1668
1b3371b1
L
16692012-07-04 H.J. Lu <hongjiu.lu@intel.com>
1670
1671 * NEWS: Mention x32 ABI support.
1672
23e2d720
L
16732012-07-04 H.J. Lu <hongjiu.lu@intel.com>
1674
1675 * amd64-tdep.c (amd64_x32_init_abi): Set sp_regnum_from_eax to
1676 AMD64_RSP_REGNUM and pc_regnum_from_eax to AMD64_RIP_REGNUM.
1677
1678 * i386-tdep.c (i386_gdbarch_init): Initialize sp_regnum_from_eax
1679 and pc_regnum_from_eax to -1. Update SP regnum from
1680 sp_regnum_from_eax and PC regnum from pc_regnum_from_eax if
1681 needed.
1682
1683 * i386-tdep.h (gdbarch_tdep): Add sp_regnum_from_eax and
1684 pc_regnum_from_eax.
1685
836bf454
JK
16862012-07-03 Jan Kratochvil <jan.kratochvil@redhat.com>
1687
1688 Fix 'warning: parameter has incomplete type' with gcc-3.4.6.
1689 * dwarf2expr.h: Include gdbtypes.h.
1690 (enum call_site_parameter_kind, union call_site_parameter_u): Remove
1691 these forward declarations.
1692 (cu_offset, sect_offset): Move these ...
1693 * gdbtypes.h: Remove include dwarf2expr.h.
1694 (cu_offset, sect_offset): ... here.
1695
1e55e04f
L
16962012-07-03 H.J. Lu <hongjiu.lu@intel.com>
1697
1698 * amd64-linux-tdep.c (linux_sigtramp_code): Renamed to ...
1699 (amd64_linux_sigtramp_code): This.
1700 (amd64_x32_linux_sigtramp_code): New.
1701 (LINUX_SIGTRAMP_LEN): Updated.
1702 (amd64_linux_sigtramp_start): Check x32 sigtramp.
1703
7d0e21ad
JK
17042012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1705
1706 * linux-thread-db.c (thread_db_new_objfile): Fix comment typos.
1707
8775fd2d
JK
17082012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1709
1710 * config.in: Regenerate.
1711 * configure: Regenerate.
1712 * configure.ac: Remove check for gnu/libc-version.h.
1713 * linux-thread-db.c <HAVE_GNU_LIBC_VERSION_H>: Remove include of
1714 gnu/libc-version.h.
1715 (enable_thread_event_reporting) <HAVE_GNU_LIBC_VERSION_H>: Remove
1716 variables libc_version, libc_major and libc_minor. Replace sscanf by
1717 inferior_has_bug. Extend the comment.
1718
fcb44371
JK
17192012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1720
1721 * linux-thread-db.c (inferior_has_bug): New function.
1722 (thread_db_find_new_threads_silently): Return boolean as checked by
1723 inferior_has_bug, describe it in the comments.
1724 (try_thread_db_load_1): Move call to thread_db_find_new_threads_silently
1725 earlier. Abort the initialization if it returned non-zero.
7d0e21ad 1726 (thread_db_new_objfile): Exclude debug files.
fcb44371
JK
1727 (thread_db_find_new_threads_2): Preinitialize ERR. Check errors also
1728 if UNTIL_NO_NEW,
1729
09406207
DE
17302012-07-02 Doug Evans <dje@google.com>
1731
0907af0c
DE
1732 * dwarf2read.c (maybe_queue_comp_unit): Move definition next to others
1733 related to queue management.
1734
09406207
DE
1735 * dwarf2read.c (create_debug_types_hash_table): Use "debug dwarf2-read"
1736 instead of "debug dwarf2-die" in debugging printfs.
1737 (create_debug_info_hash_table_reader): Ditto.
1738 (create_debug_info_hash_table): Ditto.
1739 (init_dwo_file): Ditto.
1740 (init_cutu_and_read_dies): Add debugging printf.
1741 (init_cutu_and_read_dies_no_follow): Ditto.
1742 (process_psymtab_comp_unit_reader): Ditto.
1743
d3ce09f5
SS
17442012-07-02 Stan Shebs <stan@codesourcery.com>
1745
1746 Add target-side support for dynamic printf.
1747 * NEWS: Mention the additional style.
1748 * breakpoint.h (struct bp_target_info): New fields tcommands, persist.
1749 (struct bp_location): New field cmd_bytecode.
1750 * breakpoint.c: Include format.h.
1751 (disconnected_dprintf): New global.
1752 (parse_cmd_to_aexpr): New function.
1753 (build_target_command_list): New function.
1754 (insert_bp_location): Call it.
1755 (remove_breakpoints_pid): Skip dprintf breakpoints.
1756 (print_one_breakpoint_location): Ditto.
1757 (dprintf_style_agent): New global.
1758 (dprintf_style_enums): Add dprintf_style_agent.
1759 (update_dprintf_command_list): Add agent case.
1760 (agent_printf_command): New function.
1761 (_initialize_breakpoint): Add new commands.
1762 * common/ax.def (printf): New bytecode.
1763 * ax.h (ax_string): Declare.
1764 * ax-gdb.h (gen_printf): Declare.
1765 * ax-gdb.c: Include cli-utils.h, format.h.
1766 (gen_printf): New function.
1767 (maint_agent_print_command): New function.
1768 (_initialize_ax_gdb): Add maint agent-printf command.
1769 * ax-general.c (ax_string): New function.
1770 (ax_print): Add printf disassembly.
1771 * Makefile.in (SFILES): Add format.c
1772 (COMMON_OBS): Add format.o.
1773 * common/format.h: New file.
1774 * common/format.c: New file.
1775 * printcmd.c: Include format.h.
1776 (ui_printf): Call parse_format_string.
1777 * remote.c (remote_state): New field breakpoint_commands.
1778 (PACKET_BreakpointCommands): New enum.
1779 (remote_breakpoint_commands_feature): New function.
1780 (remote_protocol_features): Add new BreakpointCommands entry.
1781 (remote_can_run_breakpoint_commands): New function.
1782 (remote_add_target_side_commands): New function.
1783 (remote_insert_breakpoint): Call it.
1784 (remote_insert_hw_breakpoint): Ditto.
1785 (_initialize_remote): Add new packet configuration for
1786 target-side breakpoint commands.
1787 * target.h (struct target_ops): New field
1788 to_can_run_breakpoint_commands.
1789 (target_can_run_breakpoint_commands): New macro.
1790 * target.c (update_current_target): Handle
1791 to_can_run_breakpoint_commands.
1792
2d7b58e8
JK
17932012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1794
1795 Execute -ix and -iex only after system and user gdbinit files.
1796 * main.c (captured_main): Move CMDARG_INIT_FILE and CMDARG_INIT_COMMAND
1797 processing down after gdbinit files.
1798
8690e634
JK
17992012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1800
1801 Add fnmatch-gnu module.
1802 * gnulib/Makefile.in (aclocal_m4_deps): Add new files and remove one.
1803 * gnulib/configure.ac (AC_INIT): Use now import/memmem.c.
1804 * gnulib/aclocal.m4: Regenerate.
1805 * gnulib/config.in: Regenerate.
1806 * gnulib/configure: Regenerate.
1807 * gnulib/import/dummy.c: Remove.
1808 * gnulib/import/Makefile.am: Regenerate.
1809 * gnulib/import/Makefile.in: Likewise.
1810 * gnulib/import/m4/gnulib-cache.m4: Likewise.
1811 * gnulib/import/m4/gnulib-comp.m4: Likewise.
1812 * gnulib/import/alloca.c: New file.
1813 * gnulib/import/alloca.in.h: Likewise.
1814 * gnulib/import/config.charset: Likewise.
1815 * gnulib/import/fnmatch.c: Likewise.
1816 * gnulib/import/fnmatch.in.h: Likewise.
1817 * gnulib/import/fnmatch_loop.c: Likewise.
1818 * gnulib/import/localcharset.c: Likewise.
1819 * gnulib/import/localcharset.h: Likewise.
1820 * gnulib/import/m4/alloca.m4: Likewise.
1821 * gnulib/import/m4/codeset.m4: Likewise.
1822 * gnulib/import/m4/configmake.m4: Likewise.
1823 * gnulib/import/m4/fcntl-o.m4: Likewise.
1824 * gnulib/import/m4/fnmatch.m4: Likewise.
1825 * gnulib/import/m4/glibc21.m4: Likewise.
1826 * gnulib/import/m4/localcharset.m4: Likewise.
1827 * gnulib/import/m4/locale-fr.m4: Likewise.
1828 * gnulib/import/m4/locale-ja.m4: Likewise.
1829 * gnulib/import/m4/locale-zh.m4: Likewise.
1830 * gnulib/import/m4/mbrtowc.m4: Likewise.
1831 * gnulib/import/m4/mbsinit.m4: Likewise.
1832 * gnulib/import/m4/mbsrtowcs.m4: Likewise.
1833 * gnulib/import/m4/mbstate_t.m4: Likewise.
1834 * gnulib/import/m4/stdbool.m4: Likewise.
1835 * gnulib/import/m4/wchar_h.m4: Likewise.
1836 * gnulib/import/m4/wctype_h.m4: Likewise.
1837 * gnulib/import/m4/wint_t.m4: Likewise.
1838 * gnulib/import/mbrtowc.c: Likewise.
1839 * gnulib/import/mbsinit.c: Likewise.
1840 * gnulib/import/mbsrtowcs-impl.h: Likewise.
1841 * gnulib/import/mbsrtowcs-state.c: Likewise.
1842 * gnulib/import/mbsrtowcs.c: Likewise.
1843 * gnulib/import/ref-add.sin: Likewise.
1844 * gnulib/import/ref-del.sin: Likewise.
1845 * gnulib/import/stdbool.in.h: Likewise.
1846 * gnulib/import/streq.h: Likewise.
1847 * gnulib/import/strnlen1.c: Likewise.
1848 * gnulib/import/strnlen1.h: Likewise.
1849 * gnulib/import/verify.h: Likewise.
1850 * gnulib/import/wchar.in.h: Likewise.
1851 * gnulib/import/wctype.in.h: Likewise.
1852
202cbf1c
JK
18532012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1854
1855 Support shell wildcards for 'set auto-load safe-path'.
1856 * auto-load.c: Include fnmatch.h.
1857 (filename_is_in_dir): Rename to ...
1858 (filename_is_in_pattern_1, filename_is_in_pattern): ... here and split
1859 it. Update function comment. Rename dir_len to pattern_len. New
1860 variables filename_len, pattern and filename. Add more DEBUG_AUTO_LOAD
1861 messages. Use gdb_filename_fnmatch.
1862 (filename_is_in_auto_load_safe_path_vec): Rename variable dir to
1863 pattern.
1864 (_initialize_auto_load): Extend the "set auto-load safe-path" help text.
1865 * defs.h (gdb_filename_fnmatch): New declaration.
1866 * utils.c: Include fnmatch.h.
1867 (gdb_filename_fnmatch): New function.
1868
fb7b5af4
SDJ
18692012-07-02 Sergio Durigan Junior <sergiodj@redhat.com>
1870
1871 * breakpoint.c (BREAK_ARGS_HELP): Include help message for the new
1872 `-probe' and `-probe-stap' options.
1873
72d0e2c5
YQ
18742012-07-01 Yao Qi <yao@codesourcery.com>
1875
1876 * breakpoint.c: Removed always_inserted_auto, always_inserted_on,
1877 always_inserted_off, and always_inserted_enums.
1878 Change always_inserted_mode's type to 'enum auto_boolean'.
1879 (show_always_inserted_mode, breakpoint_always_inserted_mode): Update
1880 callers.
1881 (_initialize_breakpoint): Call add_setshow_auto_boolean_cmd instead
1882 of add_setshow_enum_cmd.
1883 * infrun.c: Remove can_use_displaced_stepping_auto,
1884 can_use_displaced_stepping_on, can_use_displaced_stepping_off, and
1885 can_use_displaced_stepping_enum.
1886 Change can_use_displaced_stepping's type to 'enum auto_boolean'.
1887 (show_can_use_displaced_stepping, use_displaced_stepping): Update callers.
1888 (_initialize_infrun): Call add_setshow_auto_boolean_cmd instead of
1889 add_setshow_enum_cmd.
1890
42e7ad6c
DE
18912012-06-30 Doug Evans <dje@google.com>
1892
1893 * dwarf2read.c (signatured_type): Make "per_cu" member first.
1894 (init_cutu_and_read_dies): Handle rereading a DWO CU while it's
1895 currently being read. Propagate DW_AT_comp_dir to DWO DIE.
1896
39cf75f7
DE
18972012-06-29 Doug Evans <dje@google.com>
1898
1899 * linespec.c: #include "stack.h".
1900 (decode_line_with_current_source): Moved here from symtab.c and
1901 renamed from decode_line_spec. All callers updated.
1902 (decode_line_with_last_displayed): Moved here from breakpoint.c and
1903 renamed from decode_line_spec_1. All callers updated.
1904 * linespec.h (decode_line_with_current_source): Move declaration here
1905 from symtab.h and renamed from decode_line_spec.
1906 (decode_line_with_last_displayed): Move declaration here from symtab.h
1907 and renamed from decode_line_spec_1.
1908 * macrocmd.c: #include "linespec.h".
1909 * symtab.c: Remove #include "linespec.h".
1910
433df2d4
DE
19112012-06-28 Doug Evans <dje@google.com>
1912
1ce1cefd
DE
1913 * dwarf2read.c (get_cu_length): New function.
1914 (offset_in_cu_p, error_check_comp_unit_head): Call it.
1915 (create_debug_types_hash_table): Ditto.
1916 (init_cutu_and_read_dies): Ditto.
1917 (init_cutu_and_read_dies_no_follow): Ditto.
1918
3b80fe9b
DE
1919 * dwarf2read.c (dwarf2_find_base_address): Move definition.
1920
433df2d4
DE
1921 * dwarf2read.c (ABBREV_HASH_SIZE): Remove enclosing #ifndef/#endif.
1922 (struct abbrev_table): Define.
1923 (dwarf2_cu): Replace members dwarf2_abbrevs, abbrev_obstack with
1924 abbrev_table.
1925 (init_cutu_and_read_dies): Update.
1926 (abbrev_table_alloc_abbrev): New function. Replaces
1927 dwarf_alloc_abbrev. All callers updated.
1928 (abbrev_table_add_abbrev): New function.
1929 (abbrev_table_lookup_abbrev): New function. Replaces
1930 dwarf2_lookup_abbrev. All callers updated.
1931 (abbrev_table_read_table): New function. Contents moved here from
1932 dwarf2_read_abbrevs.
1933 (dwarf2_read_abbrevs): Call it.
1934 (abbrev_table_free): New function.
1935 (dwarf2_free_abbrev_table): Call it.
1936
71caed83
SS
19372012-06-28 Stan Shebs <stan@codesourcery.com>
1938
1939 * osdata.c (info_osdata_command): Filter out "Title" columns
1940 from non-MI uses.
1941 * common/linux-osdata.c (struct osdata_type): Add title field.
1942 (osdata_table): Add titles to each entry.
1943 (linux_command_xfer_osdata): Add a column for title data.
1944
37ce89eb
SS
19452012-06-28 Stan Shebs <stan@codesourcery.com>
1946
1947 Make logging work for MI.
1948 * NEWS: Mention it.
1949 * interps.h (interp_set_logging_ftype): New typedef.
1950 (struct interp_procs): New field set_logging_proc.
1951 (current_interp_set_logging): Declare.
1952 * interps.c (current_interp_set_logging): New function.
1953 * cli/cli-logging.c: Include interps.h.
1954 (set_logging_redirect): Call current_interp_set_logging.
1955 (pop_output_files): Ditto.
1956 (handle_redirections): Ditto, plus skip ui-out redirect if MI.
1957 * mi/mi-console.h (mi_console_set_raw): Declare.
1958 * mi/mi-console.c (mi_console_set_raw): New function.
1959 * mi/mi-interp.c (saved_raw_stdout): New global.
1960 (mi_set_logging): New function.
1961 (_initialize_mi_interp): Add it to interp procs.
1962
659c9f3a
DE
19632012-06-28 Doug Evans <dje@google.com>
1964
a743abeb
DE
1965 * symtab.c (lookup_symbol_aux_objfile): Use
1966 ALL_OBJFILE_PRIMARY_SYMTABS.
1967
659c9f3a
DE
1968 * gdbtypes.c (lookup_typename): Rename local variable "tmp" to "type".
1969
da2d6d3d
JK
19702012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1971
1972 * common/buffer.c: Include inttypes.h and stdint.h.
1973 (buffer_xml_printf): Use PRId64, PRIu64, PRIx64 and PRIo64.
1974
e5ef252a
PA
19752012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1976 Pedro Alves <palves@redhat.com>
1977
1978 * gdbthread.h (ALL_THREADS): New macro.
1979 (thread_list): Declare.
1980 * infrun.c (handle_inferior_event) <spurious signal>: Don't keep
1981 going, but instead fall through to the stepping handling.
1982 * linux-nat.c (resume_lwp): New parameter 'signo'. Resume with
1983 the passed in signal. Adjust debug output.
1984 (resume_callback): Rename to ...
1985 (linux_nat_resume_callback): ... this. Pass the thread's last
1986 stop signal, if in "pass" state.
1987 (linux_nat_resume): Adjust to rename.
1988 (stop_wait_callback): New assertion. Don't respawn signals;
1989 instead let the LWP remain with SIGNALLED set.
1990 (linux_nat_wait_1): Remove flushing of pending SIGSTOPs.
1991 * remote.c (append_pending_thread_resumptions): New.
1992 (remote_vcont_resume): Call it.
1993 * target.h (target_resume): Extend comment.
1994
1d7975eb
IS
19952012-06-28 Iain Sandoe <iain@codesourcery.com>
1996
1997 * auxv.c (fprint_target_auxv): Handle extended cache data tags.
1998
2e3cf129
DE
19992012-06-27 Doug Evans <dje@google.com>
2000
2001 * dwarf2read.c (dwarf2_cu): Add ranges_base.
2002 Delete have_addr_base, unused. All uses updated.
2003 (init_cutu_and_read_dies): Process DW_AT_GNU_ranges_base.
2004 (dwarf2_get_pc_bounds): Add ranges_base.
2005 (dwarf2_record_block_ranges): Ditto.
2006
1bb9788d
TT
20072012-06-27 Tom Tromey <tromey@redhat.com>
2008
2009 PR macros/7961:
2010 * varobj.c (varobj_create): Update.
2011 (varobj_set_value): Update.
2012 * tracepoint.c (validate_actionline): Update.
2013 (encode_actions_1): Update.
2014 * parse.c (parse_exp_1): Add 'pc' argument.
2015 (parse_exp_in_context): Add 'pc' argument. Change how
2016 expression_context_pc is set.
2017 (parse_expression): Update.
2018 (parse_field_expression): Update.
2019 * expression.h (parse_exp_1): Update.
2020 * eval.c (parse_to_comma_and_eval): Update.
2021 * breakpoint.c (set_breakpoint_condition): Update.
2022 (update_watchpoint): Update.
2023 (init_breakpoint_sal): Update
2024 (find_condition_and_thread): Update.
2025 (watch_command_1): Update.
2026 (update_breakpoint_locations): Update.
2027 * ada-lang.c (ada_read_renaming_var_value): Update.
2028 (create_excep_cond_exprs): Update.
2029
0bc3a05c
DE
20302012-06-27 Doug Evans <dje@google.com>
2031
2032 * dwarf2read.c (per_cu_header_read_in): Simplify, and handle
2033 type units.
2034
4bdcc0c1
DE
20352012-06-26 Doug Evans <dje@google.com>
2036
2037 * dwarf2read.c (read_and_check_comp_unit_head): Delete unnecessary
2038 prototype.
2039 (error_check_comp_unit_head): New arg abbrev_section. All callers
2040 updated.
2041 (read_and_check_comp_unit_head): Ditto.
2042 (read_and_check_type_unit_head): Ditto.
2043
ee0bf529
SCR
20442012-06-26 Siva Chandra Reddy <sivachandra@google.com>
2045
2046 New attribute 'last' for gdb.Symtab_and_line.
2047 * NEWS (Python Scripting): Add entry about the new attribute.
2048 * python/py-symtab.c (salpy_get_last): New function which
2049 implements the get method for the 'last' attribute of
2050 gdb.Symtab_and_line.
2051 (sal_object_getset): Add entry for the 'last' attribute.
2052
1c658ad5
DE
20532012-06-26 Doug Evans <dje@google.com>
2054
09262596
DE
2055 * dwarf2read.c (dwo_section_names): Add macinfo_dwo, macro_dwo.
2056 (dwo_sections): Add macinfo, macro.
2057 (dwarf2_locate_dwo_sections): Watch for macro sections.
2058 (dwarf_decode_macros): Remove args lh, abfd, section, section_name.
2059 All callers updated. Handle DWO files.
2060
45cfd468
DE
2061 * NEWS: Mention new options "set debug dwarf2-read" and
2062 "set debug symtab-create".
2063 * dwarf2read.c (dwarf2_read_debug): New static global.
2064 (dwarf2_build_psymtabs_hard): Add debugging printfs.
2065 (process_queue): Ditto.
2066 (process_full_comp_unit): Ditto.
2067 (_initialize_dwarf2_read): Add new option "set debug dwarf2-read".
2068 * elfread.c (elf_symfile_read): Add debugging printf.
2069 * minsyms.c (install_minimal_symbols): Ditto.
2070 * psymtab.c (allocate_psymtab): Ditto.
2071 * symfile.c (allocate_symtab): Ditto.
2072 * symtab.c (symtab_create_debug): New global.
2073 (_initialize_symtab): Add new option "set debug symtab-create".
2074 * symtab.h (symtab_create_debug): Declare.
2075
1c658ad5
DE
2076 * dwarf2read.c (lookup_dwo_comp_unit): Enhance comment.
2077 (lookup_dwo_type_unit): Ditto.
2078
6fea9e18
L
20792012-06-26 Roland McGrath <roland@hack.frob.com>
2080 H.J. Lu <hongjiu.lu@intel.com>
2081
2082 * amd64-linux-nat.c: Include <sys/user.h>.
2083 (ps_get_thread_area): Use PTRACE_PEEKUSER to get fs_base/gs_base
2084 if HAVE_STRUCT_USER_REGS_STRUCT_FS_BASE or
2085 HAVE_STRUCT_USER_REGS_STRUCT_GS_BASE is defined.
2086
2087 * configure.ac: Check if the fs_base and gs_base members of
2088 `struct user_regs_struct' exist.
2089 * config.in: Regenerated.
2090 * configure: Likewise.
2091
adb4fe3b
ME
20922012-06-25 Michael Eager <eager@eagercon.com>
2093
2094 PR python/14291
f782ad9b 2095 * python/python.c (gdbpy_write): Check for interrupted output.
adb4fe3b 2096
fc51cce1
MGD
20972012-06-25 Greta Yorsh <greta.yorsh@arm.com>
2098
2099 * arm-tdep.c (arm_in_function_epilogue_p): Recognize POP with a single
2100 register as a stack alignment in ARM mode.
2101
40a73391
JK
21022012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2103
2104 Update gnulib to GIT commit a39f53ccb70a613e647e1019fb4c63645220267e.
2105 * gnulib/config.in: Regenerate.
2106 * gnulib/configure: Likewise.
2107 * gnulib/import/m4/extensions.m4: Update it.
2108 * gnulib/import/m4/gnulib-common.m4: Likewise.
2109 * gnulib/import/m4/memmem.m4: Likewise.
2110 * gnulib/import/m4/mmap-anon.m4: Likewise.
2111 * gnulib/import/m4/multiarch.m4: Likewise.
2112 * gnulib/import/stdint.in.h: Likewise.
2113
972daa01
YQ
21142012-06-24 Yao Qi <yao@codesourcery.com>
2115
2116 * corefile.c (write_memory_with_notification): New.
2117 * gdbcore.h: Declare write_memory_with_notification.
2118 * ada-lang.c (ada_value_assign): Replace 'write_memory' and
2119 'observer_notify_memory_changed' with 'write_memory_with_notification'.
2120 * valops.c (value_assign): Likewise.
2121 * python/py-inferior.c (infpy_write_memory): Call
2122 'write_memory_with_notification'.
2123
8d6e0714
JK
21242012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2125
2126 * cc-with-index.sh: Use also -ex "set auto-load no".
2127
156942c7
DE
21282012-06-23 Doug Evans <dje@google.com>
2129
2130 PR 14125
2131 * NEWS: Document additions to .gdb_index.
2132 * dwarf2read.c: #include "gdb/gdb-index.h".
2133 (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): New macro.
2134 (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): New macro.
2135 (DW2_GDB_INDEX_CU_SET_VALUE): New macro.
2136 (dwarf2_read_index): Recognize version 7.
2137 (dw2_do_expand_symtabs_matching): New args want_specific_block,
2138 block_kind, domain): All callers updated.
2139 (dw2_find_symbol_file): Handle new index CU values.
2140 (dw2_expand_symtabs_matching): Match symbol kind if requested.
2141 (add_index_entry): New args is_static, kind. All callers updated.
2142 (offset_type_compare, uniquify_cu_indices): New functions
2143 (symbol_kind): New function.
2144 (write_psymtabs_to_index): Remove duplicate CU values.
2145 (write_psymtabs_to_index): Write .gdb_index version 7.
2146
352b3eda
JB
21472012-06-22 Joel Brobecker <brobecker@adacore.com>
2148
2149 * configure.ac (build_warnings): Add -Wdeclaration-after-statement.
2150 * configure: Regenerate.
2151
2678e2af
YQ
21522012-06-20 Yao Qi <yao@codesourcery.com>
2153
2154 * python/py-inferior.c: Update comments of infpy_read_memory
2155 and infpy_write_memory.
2156
95c391b6
TT
21572012-06-19 Tom Tromey <tromey@redhat.com>
2158
2159 PR exp/9514:
2160 * parser-defs.h (insert_type, insert_type_address_space): Declare.
2161 (push_type_address_space): Remove.
2162 * parse.c (insert_into_type_stack): New function.
2163 (insert_type): Likewise.
2164 (insert_type_address_space): Rename from push_type_address_space.
2165 Insert tp_space_identifier.
2166 * c-exp.y (ptr_operator): New production.
2167 (abs_decl): Use ptr_operator.
2168 (space_identifier): Call insert_type_address_space.
2169 (ptype): Don't use const_or_volatile_or_space_identifier.
2170 (const_or_volatile_noopt): Call insert_type.
2171 (conversion_type_id, conversion_declarator): New productions.
2172 (operator): Use conversion_type_id.
2173
6ac9ef80
DE
21742012-06-18 Doug Evans <dje@google.com>
2175
422d65e7
DE
2176 * symtab.h (minimal_symbol): New member created_by_gdb.
2177 * elfread.c (elf_symtab_read): Set created_by_gdb for @plt minsym
2178 created by gdb.
2179 * symtab.c (lookup_symbol_in_objfile_from_linkage_name): New function.
2180 (search_symbols): Call it instead of lookup_symbol.
2181 Skip symbols created by gdb. Only scan minsyms if nfiles == 0.
2182
49f6c839
DE
2183 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_const_index.
2184 Adjust address for DW_OP_GNU_addr_index.
2185 * dwarf2expr.h (dwarf_expr_context): Update comment.
2186 * dwarf2loc.c (locexpr_describe_location_piece): New arg per_cu,
2187 all callers updated. Handle TLS vars described with
2188 DW_OP_GNU_const_index.
2189 (disassemble_dwarf_expression): Handle DW_OP_GNU_addr_index
2190 and DW_OP_GNU_const_index.
2191 * dwarf2read.c (decode_locdesc): Handle DW_OP_GNU_addr_index.
2192
6ac9ef80
DE
2193 * block.c (find_block_in_blockvector): Make explicit the fact that we
2194 ignore GLOBAL_BLOCK.
2195
4cd18215
TT
21962012-06-18 Tom Tromey <tromey@redhat.com>
2197
2198 * c-exp.y (operator): Remove trailing space after "delete" and
2199 "delete[]".
2200
a9b8d892
JK
22012012-06-18 Mark Kettenis <kettenis@gnu.org>
2202 Jan Kratochvil <jan.kratochvil@redhat.com>
2203
2204 Switch i386 and derived targets to ON_STACK.
2205 * amd64-dicos-tdep.c (amd64_dicos_push_dummy_code): Remove.
2206 (amd64_dicos_init_abi): Remove its installment.
2207 * dicos-tdep.c (dicos_init_abi): Remove the
2208 set_gdbarch_call_dummy_location call. Update the comment here.
2209 * i386-dicos-tdep.c (i386_dicos_push_dummy_code): Remove.
2210 (i386_dicos_init_abi): Remove its installment.
2211 * i386-tdep.c (i386_push_dummy_code): New function.
2212 (i386_gdbarch_init): Call set_gdbarch_call_dummy_location, install
2213 i386_push_dummy_code.
2214
e2e4d78b
JK
22152012-06-18 Jan Kratochvil <jan.kratochvil@redhat.com>
2216
2217 Remove stale dummy frames.
2218 * breakpoint.c: Include dummy-frame.h.
2219 (longjmp_breakpoint_ops): New variable.
2220 (update_breakpoints_after_exec, breakpoint_init_inferior): Delete also
2221 bp_longjmp_call_dummy.
2222 (bpstat_what, bptype_string, print_one_breakpoint_location)
2223 (init_bp_location): Support bp_longjmp_call_dummy.
2224 (set_longjmp_breakpoint): Use longjmp_breakpoint_ops. Comment why.
2225 (set_longjmp_breakpoint_for_call_dummy)
2226 (check_longjmp_breakpoint_for_call_dummy, longjmp_bkpt_dtor): New
2227 functions.
2228 (initialize_breakpoint_ops): Initialize longjmp_breakpoint_ops.
2229 * breakpoint.h (enum bptype): New item bp_longjmp_call_dummy. Delete
2230 FIXME comment and extend the other comment for bp_call_dummy.
2231 (set_longjmp_breakpoint_for_call_dummy)
2232 (check_longjmp_breakpoint_for_call_dummy): New declarations.
2233 * dummy-frame.c: Include gdbthread.h.
2234 (pop_dummy_frame_bpt): New function.
2235 (pop_dummy_frame): Call pop_dummy_frame_bpt.
2236 (dummy_frame_discard): New function.
2237 (cleanup_dummy_frames): Update the comment about longjmps.
2238 * dummy-frame.h (dummy_frame_discard): New declaration.
2239 * gdbthread.h (struct thread_info): Extend initiating_frame comment.
2240 * infcall.c (call_function_by_hand): New variable longjmp_b. Call
2241 set_longjmp_breakpoint_for_call_dummy. Chain its breakpoints with BPT.
2242 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>:
2243 Add case 4 comment. Call check_longjmp_breakpoint_for_call_dummy and
2244 keep_going if IS_LONGJMP and there is no other reason to stop.
2245
09d5912c
TT
22462012-06-18 Greta Yorsh <Greta.Yorsh@arm.com>
2247
2248 * remote-sim.c (sim_command_completer): Initialize
2249 variable 'result'.
2250
1788b2d3
JK
22512012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2252
2253 * dwarf2expr.c (execute_stack_op): Support DW_OP_GNU_parameter_ref.
2254 * dwarf2loc.c (call_site_parameter_matches): Support
2255 CALL_SITE_PARAMETER_PARAM_OFFSET.
2256 (needs_dwarf_reg_entry_value): Push stub value.
2257 * dwarf2read.c (read_call_site_scope): New variable origin. Support
2258 CALL_SITE_PARAMETER_PARAM_OFFSET and its DW_AT_abstract_origin.
2259 * gdbtypes.h (enum call_site_parameter_kind): New item
2260 CALL_SITE_PARAMETER_PARAM_OFFSET.
2261 (struct call_site.parameter.u): New field param_offset.
2262
24c5c679
JK
22632012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2264
2265 Code cleanup: Generalize call_site.parameter key.
2266 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_entry_value>: Remove
2267 variable dwarf_reg. New variable kind_u. Update parameters to
2268 push_dwarf_reg_entry_value.
2269 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
2270 * dwarf2expr.h (enum call_site_parameter_kind)
2271 (union call_site_parameter_u): Forward declarations.
2272 (struct dwarf_expr_context_funcs): Update parameters and their
2273 description for push_dwarf_reg_entry_value.
2274 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
2275 * dwarf2loc.c (call_site_parameter_matches): New function.
2276 (dwarf_expr_reg_to_entry_parameter): Update parameters and their
2277 description. Use call_site_parameter_matches.
2278 (dwarf_expr_push_dwarf_reg_entry_value, value_of_dwarf_reg_entry):
2279 Update parameters and their description.
2280 (value_of_dwarf_block_entry): Remove variables dwarf_reg and fb_offset.
2281 New variable kind_u. Adjust the caller for updated parameters.
2282 (needs_dwarf_reg_entry_value): Update parameters.
2283 * dwarf2read.c (read_call_site_scope): New variable loc. Use it
2284 instead of attr. Update for the changed fields of struct
2285 call_site_parameter.
2286 * gdbtypes.h: Include dwarf2expr.h.
2287 (enum call_site_parameter_kind): New.
2288 (struct call_site.parameter): New field kind. Wrap dwarf_reg and
2289 fb_offset into new union u.
2290
ac142d96
L
22912012-06-16 H.J. Lu <hongjiu.lu@intel.com>
2292
2293 * amd64-tdep.c (amd64_x32_analyze_stack_align): New function.
2294 (amd64_analyze_prologue): Call amd64_x32_analyze_stack_align
2295 for x32.
2296
ba224c70
L
22972012-06-16 H.J. Lu <hongjiu.lu@intel.com>
2298
2299 * amd64-linux-nat.c (compat_x32_clock_t): New.
2300 (compat_x32_siginfo_t): Likewise.
2301 (compat_x32_siginfo_from_siginfo): Likewise.
2302 (siginfo_from_compat_x32_siginfo): Likewise.
2303 (amd64_linux_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
2304 and siginfo_from_compat_x32_siginfo for x32.
2305
7ecbc825
HZ
23062012-06-15 Hui Zhu <hui_zhu@mentor.com>
2307
2308 * tracepoint.c (tfile_xfer_partial): Add a lseek.
2309
233dfcf0
L
23102012-06-15 H.J. Lu <hongjiu.lu@intel.com>
2311
2312 * amd64-linux-nat.c (ps_get_thread_area): Check bits_per_word
2313 instead of gdbarch_ptr_bit.
2314 * amd64-nat.c (amd64_native_gregset_reg_offset): Likewise.
2315 (amd64_supply_native_gregset): Likewise.
2316 (amd64_collect_native_gregset): Likewise.
2317 * amd64-tdep.c (amd64_supply_fxsave): Likewise.
2318 (amd64_supply_xsave): Likewise.
2319 (amd64_collect_fxsave): Likewise.
2320 (amd64_collect_xsave): Likewise.
2321
6da38f42
L
23222012-06-15 H.J. Lu <hongjiu.lu@intel.com>
2323
2324 * amd64-linux-nat.c (AMD64_LINUX_X32_DS): New.
2325 (amd64_linux_read_description): Check DS segment register for
2326 x32 process.
2327
663b969e
TT
23282012-06-15 Tom Tromey <tromey@redhat.com>
2329
2330 * dwarf2read.c (dw2_find_symbol_file): Unconditionally use
2331 init_cutu_and_read_dies.
2332
d6f05027
IS
23332012-06-15 Iain Sandoe <iain@codesourcery.com>
2334
2335 * MAINTAINERS (Write After Approval): Add myself to the list.
2336
6598ed07
TT
23372012-06-15 Tom Tromey <tromey@redhat.com>
2338
2339 * valops.c (value_find_oload_method_list): Now static.
2340 * value.h (value_find_oload_method_list): Don't declare.
2341
2b214ea6
TT
23422012-06-15 Tom Tromey <tromey@redhat.com>
2343
2344 * valops.c (find_overload_match): Use value_ind.
2345
a210c238
MR
23462012-06-15 Maciej W. Rozycki <macro@codesourcery.com>
2347
2348 * infrun.c (handle_inferior_event): Correct indentation.
2349
3771a44c
DE
23502012-06-14 Doug Evans <dje@google.com>
2351
2352 * dwarf2loc.c (debug_loc_kind): Add DEBUG_LOC_START_LENGTH.
2353 (DEBUG_LOC_START_END): Renamed from DEBUG_LOC_NORMAL.
2354 All uses updated.
2355 (decode_debug_loc_dwo_addresses): New arg "byte_order". All callers
2356 updated. Handle DEBUG_LOC_START_LENGTH.
2357 (dwarf2_find_location_expression): Handle DEBUG_LOC_START_LENGTH.
2358 (loclist_describe_location): Ditto.
2359
1c5a993e
MR
23602012-06-14 Maciej W. Rozycki <macro@codesourcery.com>
2361
2362 PR backtrace/13866
2363 * infrun.c (handle_inferior_event): Re-fetch frame and gdbarch
2364 after hiding inline functions.
2365
0b155465
JB
23662012-06-13 Joel Brobecker <brobecker@adacore.com>
2367
2368 * inf-ttrace.c (_initialize_hppa_hpux_nat): Rename into
2369 _initialize_inf_ttrace.
2370
45717bac
JB
23712012-06-13 Joel Brobecker <brobecker@adacore.com>
2372
2373 * ia64-hpux-nat.c (_initialize_ia64_hpux_nat): Renames
2374 _initialize_hppa_hpux_nat.
2375
34370865
JB
23762012-06-13 Joel Brobecker <brobecker@adacore.com>
2377
2378 * remote-sim.c (sim_command_completer): Change type of return
2379 value to "VEC (char_ptr) *". Adjust implementation accordingly.
2380
284c5a60
MK
23812012-06-13 Mark Kettenis <kettenis@gnu.org>
2382 Jan Kratochvil <jan.kratochvil@redhat.com>
2383
2384 PR tdep/14222
2385 * i386-tdep.c (i386_push_dummy_call): Unconditionally align the
2386 stack on a 16-byte boundary.
2387
2535757a
TT
23882012-06-13 Kaushik Srenevasan <kaushik@twitter.com>
2389
2390 * jit.c (finalize_symtab): Set function's return type to 'void' by
2391 default.
2392
fff4548b
MK
23932012-06-13 Mark Kettenis <kettenis@gnu.org>
2394 H.J. Lu <hongjiu.lu@intel.com>
2395
5a83521a
MK
2396 * amd64-linux-tdep.c (amd64_linux_init_abi_common): New function.
2397 Move bits common to both the classic LP64 and the new x32 ILP32
2398 ABI here.
2399 (amd64_linux_init_abi): Call amd64_linux_init_abi_common.
2400 (amd64_x32_linux_init_abi): New function.
2401 (_initialize_amd64_linux_tdep): Register osabi for bfd_mach_x64_32
2402 subtype.
2403
fff4548b
MK
2404 * i386-tdep.h (i386_pseudo_register_name): New prototype.
2405 * i386-tdep.c (i386_pseudo_register_name): Make public.
2406 * amd64-tdep.h (amd64_x32_init_abi): New prototype.
2407 * amd64-tdep.c (amd64_dword_names): Add "eip".
2408 (amd64_x32_pseudo_register_type): New function
2409 (amd64_x32_init_abi): New function.
2410
dd80ea3c
JK
24112012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2412
2413 PR build/14003
2414 * inferior.h (struct inferior_suspend_state): Comment out.
2415 (struct inferior): Comment out the field suspend.
2416 * infrun.c (struct infcall_suspend_state): Comment out the field
2417 inferior_suspend.
2418 (save_infcall_suspend_state, restore_infcall_suspend_state): Comment
2419 out its assignment.
2420
50af5481
JK
24212012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2422
2423 PR c++/14177 - Fix parsing TYPENAME:: in parentheses.
2424 * c-exp.y (classify_inner_name): Remove caller assumptions in the
2425 function comment. Return ERROR for unresolved cases. Implement
2426 returning proper NAME.
2427 (yylex): Accept also NAME from classify_inner_name.
2428 * cp-namespace.c (cp_lookup_nested_type): Rename to ...
2429 (cp_lookup_nested_symbol): ... here. Return any found symbol, not just
2430 LOC_TYPEDEF type.
2431 * cp-support.h (cp_lookup_nested_type): Update its declaration.
2432
d55637df
TT
24332012-06-13 Tom Tromey <tromey@redhat.com>
2434
2435 * breakpoint.c (condition_completer): New function.
2436 (_initialize_breakpoint): Use it.
2437 * value.c (complete_internalvar): New function.
2438 * value.h (complete_internalvar): Declare.
2439
49c4e619
TT
24402012-06-13 Tom Tromey <tromey@redhat.com>
2441
2442 * ada-lang.c (ada_make_symbol_completion_list): Return a VEC.
2443 * breakpoint.c (catch_syscall_completer): Return a VEC.
2444 * cli/cli-cmds.c (complete_command): Update.
2445 * cli/cli-decode.c (complete_on_cmdlist): Return a VEC.
2446 (complete_on_enum): Likewise.
2447 * command.h: Include gdb_vecs.h.
2448 (completer_ftype): Change return type.
2449 (complete_on_cmdlist, complete_on_enum): Likewise.
2450 * completer.c (noop_completer, filename_completer)
2451 (location_completer): Return a VEC.
2452 (add_struct_fields): Remove 'nextp' argument. Change 'output'
2453 to a VEC.
2454 (expression_completer, complete_line_internal, complete_line)
2455 (command_completer): Return a VEC.
2456 (gdb_completion_word_break_characters, line_completion_function):
2457 Update.
2458 * completer.h: Include gdb_vecs.h.
2459 (complete_line, noop_completer, filename_completer)
2460 (expression_completer, location_completer, command_completer):
2461 Update.
2462 * f-lang.c (f_word_break_characters): Return a VEC.
2463 * interps.c (interpreter_completer): Return a VEC.
2464 * language.h (struct language_defn)
2465 <la_make_symbol_completion_list>: Return a VEC.
2466 * python/py-cmd.c (cmdpy_completer): Return a VEC.
2467 * symtab.c (free_completion_list): Take a VEC.
2468 (return_val_size, return_val_index): Remove.
2469 (return_val): Now a VEC.
2470 (completion_list_add_name): Update.
2471 (default_make_symbol_completion_list_break_on)
2472 (default_make_symbol_completion_list, make_symbol_completion_list)
2473 (make_symbol_completion_list_fn, make_file_symbol_completion_list):
2474 Return a VEC.
2475 (add_filename_to_list): Update.
2476 (struct add_partial_filename_data) <list_used, list_alloced>: Remove.
2477 <list>: Now a VEC.
2478 (maybe_add_partial_symtab_filename): Update.
2479 (make_source_files_completion_list): Return a VEC.
2480 * symtab.h (default_make_symbol_completion_list_break_on)
2481 (default_make_symbol_completion_list, make_symbol_completion_list)
2482 (make_symbol_completion_list_fn, make_file_symbol_completion_list)
2483 (make_source_files_completion_list): Update.
2484
625e8578
TT
24852012-06-13 Tom Tromey <tromey@redhat.com>
2486
2487 * breakpoint.c (add_catch_command): Use completer_ftype.
2488 * breakpoint.h: Include command.h.
2489 (add_catch_command): Use completer_ftype.
2490 * cli/cli-decode.c (set_cmd_completer): Use completer_ftype.
2491 * cli/cli-decode.h (struct cmd_list_element) <completer>:
2492 Use completer_ftype.
2493 * command.h (completer_ftype): New typedef.
2494 (set_cmd_completer): Use it.
2495 * python/py-cmd.c (struct cmdpy_completer) <completer>: Use
2496 completer_ftype.
2497
5eb3b062
PA
24982012-06-13 Pedro Alves <palves@redhat.com>
2499
2500 Partial revert of previous change.
2501
2502 * serial.c (scb_base): New global.
2503 (serial_for_fd): New.
2504 (serial_open, serial_fdopen_ops): Link new serial in open serials
2505 chain.
2506 (do_serial_close): Unlink serial from the open serials chain.
2507
8b3ee56d
PA
25082012-06-12 Pedro Alves <palves@redhat.com>
2509
2510 * infrun.c (infrun_thread_stop_requested_callback): Don't switch
2511 threads here.
2512 (prepare_for_detach): No longer context switch here in non-stop
2513 mode.
2514 (fetch_inferior_event): Ditto.
2515 (handle_inferior_event) <STOP_QUIETLY || NO_STOP_QUIETLY>: Switch
2516 to the event thread before removing breakpoints. Switch to the
2517 event thread before inserting breakpoints and resuming.
2518 (handle_inferior_event) <TARGET_WAITKIND_SPURIOUS>: Switch to the
2519 event thread before resuming.
2520 (handle_inferior_event) <stepping_past_singlestep_breakpoint>:
2521 Switch to the event thread before removing breakpoints.
2522
5d60742e
EZ
25232012-06-12 Eli Zaretskii <eliz@gnu.org>
2524
2525 * infcmd.c (construct_inferior_arguments) [__MINGW32__]: Quote
2526 special characters correctly for the Windows shells. See
2527 http://sourceware.org/ml/gdb/2012-06/msg00047.html for the bug
2528 report.
2529 [!__MINGW32__]: Remove extra double quote character from special
2530 characters.
2531
a6feecf7
SS
25322012-06-11 Stan Shebs <stan@codesourcery.com>
2533
2534 * ui-out.h: Remove #if 0 declarations.
2535 * ui-out.c: Remove #if 0 functions.
2536
ddefb60f
PA
25372012-06-11 Pedro Alves <palves@redhat.com>
2538
2539 * ser-base.c (run_async_handler_and_reschedule): New.
2540 (fd_event, push_event): Use it.
2541 * serial.c (serial_open, serial_fdopen_ops): Set the initial
2542 reference count to 1.
2543 (do_serial_close): Set the bufp field to NULL. Use serial_unref
2544 instead of xfree.
2545 (serial_is_open, serial_ref, serial_unref): New.
2546 * serial.h (serial_open): Adjust comment.
2547 (serial_is_open): Declare.
2548 (serial_close): Adjust comment.
2549 (serial_ref, serial_unref) Declare.
2550 (struct serial): New field 'refcnt'.
2551
d5ad6aa5
PA
25522012-06-11 Pedro Alves <palves@redhat.com>
2553
2554 Remove #if 0'd "connect" command, and unnecessary associated
2555 refcounting and serial reuse bits.
2556
2557 * serial.h (struct serial): Remove fields 'next' and 'refcnt'.
2558 * serial.c (last_serial_opened): Delete.
2559 (scb_base): Delete.
2560 (serial_open): Adjust.
2561 (serial_for_fd): Delete.
2562 (serial_fdopen_ops, do_serial_close): Adjust.
2563 (serial_fdopen_ops): Adjust.
2564
318aa544
PA
25652012-06-11 Pedro Alves <palves@redhat.com>
2566
2567 * serial.c (do_serial_close): Remove early return when SCB is
2568 null.
2569
07261596
TT
25702012-06-11 Tom Tromey <tromey@redhat.com>
2571
2572 * dwarf2read.c (dw2_get_file_names_reader): Ignore partial units.
2573
cc80f267
JK
25742012-06-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2575
2576 Fix regression by the "ambiguous linespec" series.
2577 * breakpoint.c (parse_breakpoint_sals): New variable cursal. Use
2578 get_last_displayed_symtab and get_last_displayed_line and depending
2579 on CURSAL.
2580
356d9f9d
TT
25812012-06-11 Tom Tromey <tromey@redhat.com>
2582
2583 * dwarf2read.c (dw2_get_primary_filename_reader): New function.
2584 (dw2_find_symbol_file): Use it.
2585
232b8704
ME
25862012-06-11 Michael Eager <eager@eagercon.com>
2587
2588 * mips-linux-tdep.c (mips_gdb_signal_from_target): New
2589 * mips-linux-tdep.h (mips_signals): New
2590
e81a37f7
TT
25912012-06-11 Tom Tromey <tromey@redhat.com>
2592
2593 * infrun.c (handle_inferior_event)
2594 <BPSTAT_WHAT_SET_LONGJMP_RESUME>: Don't delete the step-resume
2595 breakpoint.
2596 <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>: Remove longjmp logic; use
2597 exception logic in all cases. Update comments.
2598 (insert_longjmp_resume_breakpoint): Set the exception resume
2599 breakpoint.
2600
2e81047f
MR
26012012-06-11 Maciej W. Rozycki <macro@codesourcery.com>
2602
2603 * mips-tdep.c (mips_push_dummy_code): Handle microMIPS code.
2604
4e32eda7
SCR
26052012-06-09 Siva Chandra Reddy <sivachandra@google.com>
2606
2607 * valarith.c (binop_types_user_defined_p): Fix a typo.
2608
18648a37 26092012-06-08 Yao Qi <yao@codesourcery.com>
f782ad9b 2610 Chung-Lin Tang <cltang@codesourcery.com>
18648a37
YQ
2611
2612 * arch-utils.c (default_return_in_first_hidden_param_p): New.
2613 * arch-utils.h: Declare.
2614 * gdbarch.sh: Add return_in_first_hidden_param_p.
2615 * gdbarch.c, gdbarch.h: Regenerated.
2616 * infcall.c (call_function_by_hand): Call
2617 gdbarch_return_in_first_hidden_param_p instead of
2618 language_pass_by_reference.
2619
2620 * m68k-tdep.c (m68k_return_in_first_hidden_param_p): New.
2621 (m68k_gdbarch_init): Install m68k_return_in_first_hidden_param_p.
2622 * sh-tdep.c (sh_return_in_first_hidden_param_p): New.
2623 (sh_gdbarch_init): Install sh_return_in_first_hidden_param_p.
2624 * tic6x-tdep.c (tic6x_push_dummy_call): Remove local variable
2625 `cplus_return_struct_by_reference'.
2626 (tic6x_return_value): Handle language cplusplus.
2627 (tic6x_return_in_first_hidden_param_p): New.
2628 (tic6x_gdbarch_init): Install tic6x_return_in_first_hidden_param_p.
2629
034e5797
DE
26302012-06-07 Doug Evans <dje@google.com>
2631
2632 * dwarf2read.c (dwarf2_cu): Add comment.
2633
6a00aa1e
MR
26342012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
2635
2636 * mips-tdep.c (mips_pseudo_register_type): Remove tdep local
2637 variable.
2638 (mips_eabi_push_dummy_call): Likewise.
2639 (mips_n32n64_push_dummy_call): Likewise.
2640 (mips_o32_push_dummy_call): Likewise.
2641 (mips_o64_push_dummy_call): Likewise.
2642
eaa05d59
MR
26432012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
2644
2645 * mips-tdep.c (mips_convert_register_p): Correct coding style.
2646
de13fcf2
MR
26472012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
2648
2649 * mips-tdep.c (mips_pseudo_register_type): Use
2650 mips_float_register_p.
2651
c3a01a22
PA
26522012-06-06 Pedro Alves <palves@redhat.com>
2653
2654 * infrun.c (handle_inferior_event): Remove calls to
2655 reinit_frame_cache that follow a context_switch call.
2656
d25f45d9
PA
26572012-06-06 Pedro Alves <palves@redhat.com>
2658
2659 * infrun.c (handle_inferior_event) <deferred_step_ptid>: Use
2660 context_switch and remove stale comment.
2661
359f5fe6
PA
26622012-06-06 Pedro Alves <palves@redhat.com>
2663
2664 * infrun.c (struct execution_control_state): Remove
2665 `new_thread_event' field.
2666 (handle_inferior_event): Simplify new threads handling; don't
2667 resume the inferior if we find a new thread.
2668
2d4c29c5
TS
26692012-06-06 Thomas Schwinge <thomas@codesourcery.com>
2670
2671 * NEWS: Document the deprecation of SH's 'regs' command.
2672 * inferior.h (all_registers_info): Add function declaration.
2673 * sh-tdep.c (sh_show_regs): Remove variable.
2674 (sh_generic_show_regs, sh3_show_regs, sh2e_show_regs, sh2a_show_regs)
2675 (sh2a_nofpu_show_regs, sh3e_show_regs, sh3_dsp_show_regs)
2676 (sh4_show_regs, sh4_nofpu_show_regs, sh_dsp_show_regs)
2677 (sh_show_regs_command): Remove functions.
2678 (sh_gdbarch_init): Don't set sh_show_regs.
2679 (_initialize_sh_tdep): Make the 'regs' command an deprecated alias to
2680 'info all-registers'.
2681 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs)
2682 (sh64_show_regs): Remove functions.
2683 * sh64-tdep.h (sh64_show_regs): Remove function declaration.
2684
f5f1cdb6
JK
26852012-06-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2686
2687 * configure.ac: Move development=true below AC_INIT.
2688 * configure: Regenerate.
2689
bf6309af
SS
26902012-06-05 Stan Shebs <stan@codesourcery.com>
2691
2692 * mi/mi-interp.c (mi_interpreter_init): Set raw_stdout from
2693 gdb_stdout.
2694
45aa4659
JK
26952012-06-05 Siddhesh Poyarekar <siddhesh@redhat.com>
2696
2697 * corefile.c (read_memory, read_stack, write_memory): Accept LEN
2698 argument as ssize_t.
2699 * gdbcore.h (read_memory, read_stack, write_memory): Likewise.
2700 * remote.c (remote_write_bytes_aux, remote_write_bytes): Likewise.
2701 * target.c (target_read_stack, target_write_memory)
2702 (target_write_raw_memory): Likewise.
2703 * target.h (target_read_stack, target_write_memory)
2704 (target_write_raw_memory): Likewise.
2705
1b162304
JK
27062012-06-05 Jan Kratochvil <jan.kratochvil@redhat.com>
2707
2708 * symfile-mem.c: Change gdb_static_assert to ssize_t.
2709 (target_read_memory_bfd): Cast gdb_assert LEN to ssize_t.
2710 * target.c (target_read_memory): Change LEN to ssize_t.
2711 * target.h (target_read_memory): Change LEN to ssize_t.
2712
8556afb4
PA
27132012-06-05 Pedro Alves <palves@redhat.com>
2714
2715 PR backtrace/13866
2716
2717 * breakpoint.c (until_break_command): Only fetch the selected
2718 frame after decode_line_1.
2719
fb139f32
PA
27202012-06-05 Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
2721
2722 * solib-svr4.c (enable_break): Don't fallback to setting the solib
2723 event breakpoint at _start, __start or main if a program
2724 interpreter is not found.
2725
a8e1bb34
JB
27262012-06-05 Joel Brobecker <brobecker@adacore.com>
2727
2728 * windows-tdep.h (windows_iterate_over_objfiles_in_search_order):
2729 Add declaration.
2730 * windows-tdep.c: #include "objfiles.h".
2731 (windows_iterate_over_objfiles_in_search_order): New function.
2732 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
2733 iterate_over_objfiles_in_search_order gdbarch method to
2734 windows_iterate_over_objfiles_in_search_order.
2735 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
2736
19630284
JB
27372012-06-05 Joel Brobecker <brobecker@adacore.com>
2738
2739 * gdbarch.sh: Add generation of
2740 "iterate_over_objfiles_in_search_order_cb_ftype" typedef in
2741 gdbarch.h. Add include of "objfiles.h" in gdbarch.c.
2742 (iterate_over_objfiles_in_search_order): New gdbarch method.
2743 * gdbarch.h, gdbarch.c: Regenerate.
2744 * objfiles.h (default_iterate_over_objfiles_in_search_order):
2745 Add declaration.
2746 * objfiles.c (default_iterate_over_objfiles_in_search_order):
2747 New function.
2748 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
2749 out of lookup_symbol_aux_symtabs.
2750 (lookup_symbol_aux_symtabs): Replace extracted-out code by
2751 call to lookup_symbol_aux_objfile.
2752 (struct global_sym_lookup_data): New type.
2753 (lookup_symbol_global_iterator_cb): New function.
2754 (lookup_symbol_global): Search for symbol using
2755 gdbarch_iterate_over_objfiles_in_search_order and
2756 lookup_symbol_global_iterator_cb.
2757 * findvar.c (struct minsym_lookup_data): New type.
2758 (minsym_lookup_iterator_cb): New function.
2759 (default_read_var_value) [case LOC_UNRESOLVED]: Resolve the
2760 symbol's address via gdbarch_iterate_over_objfiles_in_search_order
2761 and minsym_lookup_iterator_cb.
2762
67ff19f7
JB
27632012-06-05 Joel Brobecker <brobecker@adacore.com>
2764
2765 Revert the following patch:
2766 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
2767 try locating the symbol in the symbol's own objfile first, before
2768 extending the search to all objfiles.
2769 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
2770 out of lookup_symbol_aux_symtabs.
2771 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
2772 Replace extracted-out code by call to lookup_symbol_aux_objfile.
2773 Do not search EXCLUDE_OBJFILE.
2774 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
2775 (lookup_symbol_global): Search for matches in the block's objfile
2776 first, before searching all other objfiles.
2777
ccab2054
JB
27782012-06-05 Joel Brobecker <brobecker@adacore.com>
2779
2780 * breakpoint.c (find_condition_and_thread): Stop parsing
2781 as soon as the first invalid keyword is found.
2782
e23d4a9c
JB
27832012-06-05 Joel Brobecker <brobecker@adacore.com>
2784
2785 * copyright.py (EXCLUDE_LIST): Add 'gdb/CONTRIBUTE' to list.
2786
70160166
JB
27872012-06-05 Joel Brobecker <brobecker@adacore.com>
2788
2789 * config/djgpp/djcheck.sh: Add copyright header.
2790
399501a5
JB
27912012-06-05 Joel Brobecker <brobecker@adacore.com>
2792
2793 * copyright.py (update_files, main): Fix path to update-copyright
2794 script.
2795
3770a159
JB
27962012-06-05 Joel Brobecker <brobecker@adacore.com>
2797
2798 * copyright.py (MULTIPLE_COPYRIGHT_HEADERS): New constant.
2799 (main): Add MULTIPLE_COPYRIGHT_HEADERS to the list of files
2800 for which a reminder to update by hand is printed.
2801
4aad0dfc
DE
28022012-06-04 Doug Evans <dje@google.com>
2803
2804 * buildsym.c (make_blockvector): Add comment.
2805
1f8cf220
PA
28062012-06-04 Pedro Alves <palves@redhat.com>
2807
2808 * arch-utils.c (default_gdb_signal_from_target): Delete.
2809 * arch-utils.h (default_gdb_signal_from_target): Delete.
2810 * corelow.c (core_open) <signal mapping>: Extended comment. Check
2811 gdbarch_gdb_signal_from_target_p.
2812 * gdbarch.sh (gdb_signal_from_target): Make it an M method (with
2813 predicate).
2814 * gdbarch.h: Regenerate.
2815 * gdbarch.c: Regenerate.
2816
86b49880
PA
28172012-06-04 Pedro Alves <palves@redhat.com>
2818
2819 * gdbarch.sh (gdb_signal_from_target): Mention that the
2820 implementation of the method must be host independent.
2821 * gdbarch.h: Regenerate.
2822
fe78531d
JK
28232012-06-04 Jan Kratochvil <jan.kratochvil@redhat.com>
2824
2825 * symfile-mem.c: 3 new gdb_static_assert for target_read_memory_bfd
2826 parameters.
2827 (target_read_memory_bfd): New function.
2828 (symbol_file_add_from_memory): Use it.
2829
d790cf0a
DE
28302012-06-03 Doug Evans <dje@google.com>
2831
78e5175a
DE
2832 * symtab.c (lookup_global_symbol_from_objfile): Only scan blockvector
2833 of primary symtab.
2834 (basic_lookup_transparent_type): Ditto.
2835
d790cf0a
DE
2836 * objfiles.h (ALL_OBJFILE_PRIMARY_SYMTABS): New macro.
2837 (ALL_PRIMARY_SYMTABS): Use it.
2838 (ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
2839 * dwarf2read.c (dw2_find_symbol_file): Ditto.
2840 * linespec.c (iterate_over_all_matching_symtabs): Ditto.
2841 * symtab.c (lookup_symbol_aux_objfile): Ditto.
2842 (basic_lookup_transparent_type): Ditto.
2843
c6e5ee5e
SDJ
28442012-06-02 Sergio Durigan Junior <sergiodj@redhat.com>
2845
2846 * symtab.c (symbol_demangled_name): New variable `dem_name'. Use
2847 it to optimize resolution of demangled name.
2848
a68ffae9
JK
28492012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2850
2851 * configure.ac (development): Define new variable.
2852 Call AC_CHECK_LIB for mcheck if $development.
2853 (ERROR_ON_WARNING): Enable it by default only if $development.
2854 * config.in: Regenerate.
2855 * configure: Regenerate.
2856
5299c1c4
JK
28572012-06-01 Siddhesh Poyarekar <siddhesh@redhat.com>
2858
2859 * target.c (target_read_memory): Make LEN argument as size_t.
2860 * target.h (target_read_memory): Likewise.
2861
28622012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
7c71816c
JK
2863
2864 * tilegx-linux-tdep.c (tilegx_l): Use ULL for 64-bit values.
2865
0c56f59b
EBM
28662012-05-31 Edjunior Machado <emachado@linux.vnet.ibm.com>
2867
2868 * ppc-linux-nat.c (have_ptrace_booke_interface): Disable ptrace
2869 BookE interface for PowerPC server processors if not available
2870 in the Linux Kernel.
2871
71bdabee
KS
28722012-05-31 Keith Seitz <keiths@redhat.com>
2873
2874 * linespec.c (decode_objc): Add cleanup to free
2875 INFO.FILE_SYMTABS.
2876 (find_linespec_symbols): Add cleanup to free CLASSES.
2877 * symfile.c (find_separate_debug_file_by_debuglink): Add
2878 cleanup to free DEBUGLINK.
2879 * ui-out.c (clear_header_list): No need to check if
2880 HEADER_NEXT.COLHDR is NULL.
2881 Free HEADER_NEXT.COL_NAME.
2882
acbd605d
MGD
28832012-05-31 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
2884
2885 * ada-lang.c (standard_lookup): Prevent uninitialized variable
2886 warning.
2887
65662cde
PA
28882012-05-30 Jeff Kenton <jkenton@tilera.com>
2889
2890 * configure.host (gdb_host_cpu): Handle tilegx*.
2891 (gdb_host): Handle tilegx-*-linux*.
2892 * tilegx-linux-nat.c: New file.
2893 * config/tilegx/linux.mh: New file.
2894
ade64f0e
PA
28952012-05-30 Jeff Kenton <jkenton@tilera.com>
2896
2897 * Makefile.in (ALL_TARGET_OBJS): Add tilegx-tdep.o and
2898 tilegx-linux-tdep.o.
2899 (ALLDEPFILES): Add tilegx-linux-nat.c, tilegx-tdep.c and
2900 tilegx-linux-tdep.c.
2901 * configure.tgt: Handle tilegx-*-linux*.
2902 * tilegx-tdep.h: New file.
2903 * tilegx-tdep.c: New file.
2904 * tilegx-linux-tdep.c: New file.
2905 * regformats/reg-tilegx.dat: New file.
2906
bb08bdbd
EBM
29072012-05-30 Edjunior Machado <emachado@linux.vnet.ibm.com>
2908
2909 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): fix
2910 accounting of hw watchpoints on ppc.
2911
ebd86fb5
TJB
29122012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
2913
2914 * source.c (openp): Expand tilde in path entries.
2915
0a0edcd5
DE
29162012-05-29 Doug Evans <dje@google.com>
2917
98cc87bd
DE
2918 * buildsym.c (block_compar): Fix comment.
2919 (end_symtab): Fix and clarify some comments.
2920
0a0edcd5
DE
2921 * stabsread.h (cleanup_undefined_stabs_types): Renamed from
2922 cleanup_undefined_types.
2923 * stabsread.c (cleanup_undefined_stabs_types): Ditto.
2924 All callers updated.
2925
6f0c7050
TT
29262012-05-29 Tom Tromey <tromey@redhat.com>
2927
2928 * symfile.c (symfile_bfd_open): Don't close desc if bfd_fopen
2929 fails.
2930 * solib.c (solib_bfd_fopen): Don't close fd if bfd_fopen fails.
2931 * exec.c (exec_file_attach): Don't close scratch_chan if bfd_fopen
2932 fails.
2933 * dwarf2read.c (try_open_dwo_file): Don't close fd if bfd_fopen
2934 fails.
2935
ec95993c
TG
29362012-05-29 Tristan Gingold <gingold@adacore.com>
2937
2938 * solib-darwin.c (dyld_all_image_addr, dyld_all_image): Move into...
2939 (struct darwin_info): ... New struct.
2940 (solib_darwin_pspace_data): New variable.
2941 (darwin_pspace_data_cleanup): New function.
2942 (get_darwin_info): Likewise.
2943 (darwin_dyld_version_ok, darwin_load_image_infos)
2944 (darwin_solib_get_all_image_info_addr_at_init)
2945 (darwin_solib_read_all_image_info_addr): Add info argument.
2946 Adjust code.
2947 (darwin_current_sos): Use per pspace structure.
2948 (darwin_solib_create_inferior_hook): Likewise.
2949 (darwin_clear_solib): Likewise.
2950 (_initialize_darwin_solib): Initialize solib_darwin_pspace_data.
2951
ae25568b
PA
29522012-05-28 Pedro Alves <palves@redhat.com>
2953
2954 * infrun.c (wait_for_inferior): Move ecss and ecs locals to the
2955 block that uses them. Clear ecss before handling each event.
2956
0c5bf5a9
JK
29572012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2958
2959 * solib-svr4.c (svr4_current_sos): New comment on
2960 svr4_current_sos_via_xfer_libraries fall back.
2961
bfb05775
JK
29622012-05-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2963
2964 * psymtab.c (lookup_symbol_aux_psymtabs): New variable stab_best. Use
2965 it as a fallback for TYPE_IS_OPAQUE.
2966 * symfile.h (struct quick_symbol_functions): Mention TYPE_OPAQUE
2967 symbols for lookup_symbol.
2968
685b1105
JK
29692012-05-24 John Steele Scott <toojays@toojays.net>
2970
2971 PR symtab/13277: Resolving opaque structures in ICC generated binaries.
2972 * dwarf2read.c (struct dwarf2_cu) <producer_is_icc>: New field.
2973 (producer_is_gxx_lt_4_6): Move the checking and caching to...
2974 (check_producer): ... this new function, which also checks for ICC
2975 and caches the result.
2976 (producer_is_icc): New function.
2977 (read_structure_type): Don't set TYPE_STUB_SUPPORTED if the
2978 producer was ICC.
2979
22203bbf
PA
29802012-05-24 Pedro Alves <palves@redhat.com>
2981
2982 PR gdb/7205
2983
2984 * arch-utils.c (default_gdb_signal_to_host): Rename to ...
2985 (default_gdb_signal_to_target): ... this. Add comment.
2986 (default_gdb_signal_from_host): Rename to ...
2987 (default_gdb_signal_from_target): ... this. Add comment.
2988 * arch-utils.h (default_gdb_signal_to_host): Rename to ...
2989 (default_gdb_signal_to_target): ... this.
2990 (default_gdb_signal_from_host): Rename to ...
2991 (default_gdb_signal_from_target): ... this.
2992 * corelow.c (core_open): Adjust to naming change. Replace comment.
2993 * gdbarch.sh (gdb_signal_from_host): Rename to ...
2994 (gdb_signal_from_target): ... this. Adjust to
2995 default_gdb_signal_from_host naming change. Extend comment.
2996 (gdb_signal_to_host): Rename to ...
2997 (gdb_signal_to_target): ... this. Adjust to
2998 default_gdb_signal_to_host naming change.
2999 * gdbarch.h, gdbarch.c: Renegerate.
3000
a493e3e2
PA
30012012-05-24 Pedro Alves <palves@redhat.com>
3002
3003 PR gdb/7205
3004
f782ad9b 3005 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
a493e3e2 3006
2ea28649
PA
30072012-05-24 Pedro Alves <palves@redhat.com>
3008
3009 PR gdb/7205
3010
3011 Replace target_signal with gdb_signal throughout.
3012
b09846a9
PA
30132012-05-24 Pedro Alves <palves@redhat.com>
3014
3015 PR tui/14159
3016
3017 * tui/tui-hooks.c (tui_query_hook): Pre-compute the question
3018 string, instead of reusing the va_list argument.
3019
e77c107e
TT
30202012-05-24 Tom Tromey <tromey@redhat.com>
3021
3022 * cp-support.h (cp_finalize_namespace, cp_initialize_namespace):
3023 Remove.
3024
9fccedf7
DE
30252012-05-23 Doug Evans <dje@google.com>
3026
d50bd42b
DE
3027 * symtab.c (search_symbols): Formatting fixes.
3028 (print_symbol_info): Formatting fixes.
3029
9fccedf7
DE
3030 * dwarf2-frame.c (execute_cfa_program): Update to handle long long ->
3031 int64_t change to leb128 API.
3032 (read_encoded_value, decode_frame_entry_1): Ditto.
3033 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Ditto.
3034 (dwarf_block_to_dwarf_reg, dwarf_block_to_dwarf_reg_deref): Ditto.
3035 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
3036 (execute_stack_op): Ditto.
3037 * dwarf2expr.h (gdb_read_uleb128, gdb_read_sleb128): Ditto.
3038 (safe_read_uleb128, safe_read_sleb128): Ditto.
3039 * dwarf2loc.c (decode_debug_loc_dwo_addresses): Ditto.
3040 (dwarf2_compile_expr_to_ax): Ditto.
3041 (locexpr_describe_location_piece): Ditto.
3042 (disassemble_dwarf_expression): Ditto.
3043 (locexpr_describe_location_1): Ditto.
3044
f3e0e960
SS
30452012-05-23 Stan Shebs <stan@codesourcery.com>
3046 Kwok Cheung Yeung <kcy@codesourcery.com>
3047
3048 * Makefile.in (SUBDIR_MI_OBS): Add mi-cmd-info.o.
3049 (SUBDIR_MI_SRCS): Add mi-cmd-info.c.
3050 (mi-cmd-info.o): New rule.
3051 * osdata.h (info_osdata_command): New declaration.
3052 * osdata.c (info_osdata_command): Change to non-static.
3053 * mi/mi-cmds.h (mi_cmd_info_os): New declaration.
3054 * mi/mi-cmds.c (mi_cmds): Add -info-os MI command.
3055 * mi/mi-cmd-info.c: New file.
3056
c51fe631
DE
30572012-05-23 Doug Evans <dje@google.com>
3058
71cddcc1
DE
3059 * symtab.c (search_symbols): Pass NULL for file_matcher to
3060 expand_symtabs_matching if there are no files to match.
3061
c51fe631
DE
3062 * gdbtypes.c (lookup_typename): Simplify.
3063
a79378d4
PA
30642012-05-23 Pedro Alves <palves@redhat.com>
3065
3066 * arch-utils.h (default_target_signal_to_host): Delete.
3067 * arch-utils.c (default_target_signal_to_host): Delete.
3068 * gdbarch.sh (target_signal_to_host): Remove.
3069 * gdbarch.h, gdbarch.c: Regenerate.
3070
f664829e
DE
30712012-05-22 Doug Evans <dje@google.com>
3072
3073 * dwarf2-frame.c (struct dwarf2_cie): Make initial_instructions, end
3074 "const gdb_byte *".
3075 (struct dwarf2_fde): Make instructions, end "const gdb_byte *".
3076 (execute_cfa_program): Update to match API of leb128 functions.
3077 (read_1_byte, read_4_bytes, read_8_bytes): Make buf parameter
3078 "const gdb_byte *".
3079 (read_unsigned_leb128, read_signed_leb128): Delete.
3080 (read_initial_length): Change type of buf argument to
3081 "const gdb_byte *".
3082 (read_encoded_value): Update to match API of leb128 functions.
3083 (decode_frame_entry): Change result to "const gdb_byte *", and
3084 similarly for "start" parameter.
3085 (decode_frame_entry_1): Ditto. Use new leb128 reader functions.
3086 (dwarf2_build_frame_info): Change local frame_ptr to
3087 "const gdb_byte *".
3088 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Replaces
3089 read_uleb128, read_sleb128. All callers updated.
3090 (safe_skip_leb128): New function.
3091 (dwarf_block_to_dwarf_reg): Update to match API of leb128 functions.
3092 Call gdb_read_uleb128, gdb_skip_leb128 instead of read_uleb128.
3093 (dwarf_block_to_dwarf_reg_deref): Update to match API of leb128
3094 functions. Call gdb_read_uleb128, gdb_read_sleb128 instead of
3095 read_uleb128, read_sleb128.
3096 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
3097 (execute_stack_op): Update to match API of leb128 functions.
3098 * dwarf2expr.h: #include "leb128.h".
3099 (read_uleb128, read_sleb128): Delete.
3100 (gdb_read_uleb128, gdb_read_sleb128, gdb_skip_leb128): New functions.
3101 (safe_read_uleb128, safe_read_sleb128, safe_skip_leb128): Declare.
3102 * dwarf2loc.c (debug_loc_kind): New enum.
3103 (decode_debug_loc_addresses): New function.
3104 (decode_debug_loc_dwo_addresses): New function.
3105 (dwarf2_find_location_expression): Rewrite.
3106 (dwarf2_compile_expr_to_ax): Update to match API of leb128 functions.
3107 (locexpr_describe_location_piece): Ditto.
3108 (disassemble_dwarf_expression): Ditto.
3109 (locexpr_describe_location_1): Ditto.
3110 (loclist_describe_location): Rewrite.
3111 * dwarf2loc.h (dwarf2_loclist_baton): New member "from_dwo".
3112 * dwarf2read.c (die_reader_specs): New member "buffer_end".
3113 (dwarf2_section_buffer_overflow_complaint): Renamed from
3114 dwarf2_macros_too_long_complaint. All callers updated.
3115 (skip_leb128): Delete.
3116 (init_cu_die_reader): Initialize reader->buffer_end.
3117 (skip_one_die): Replace call to skip_leb128 with safe_skip_leb128.
3118 (skip_form_bytes): New arg buffer_end. All callers updated.
3119 Replace call to skip_leb128 with gdb_skip_leb128.
3120 (skip_unknown_opcode): New arg mac_end. All callers updated.
3121 (fill_in_loclist_baton): Initialize baton->from_dwo.
3122
837a1b32
MR
31232012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
3124
3125 * mips-linux-nat.c (mips_linux_read_description): Use a more
3126 verbose error message.
3127
d0e64392
MR
31282012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
3129
3130 * NEWS: Add MIPS/Linux DSP support.
3131 * mips-linux-tdep.c: Document post-2.6.12 o32 sigcontext layout.
3132 (SIGCONTEXT_DSPCTL): New macro.
3133 (SIGCONTEXT_HI1, SIGCONTEXT_LO1): Likewise.
3134 (SIGCONTEXT_HI2, SIGCONTEXT_LO2): Likewise.
3135 (SIGCONTEXT_HI3, SIGCONTEXT_LO3): Likewise.
3136 (N64_SIGCONTEXT_HI1, N64_SIGCONTEXT_HI2): Likewise.
3137 (N64_SIGCONTEXT_HI3): Likewise.
3138 (N64_SIGCONTEXT_LO1, N64_SIGCONTEXT_LO2): Likewise.
3139 (N64_SIGCONTEXT_LO3): Likewise.
3140 (N64_SIGCONTEXT_DSPCTL): Likewise.
3141 (N64_SIGCONTEXT_FPCSR): Clarify definition.
3142 (mips_linux_o32_sigframe_init): Handle DSP registers.
3143 (mips_linux_n32n64_sigframe_init): Likewise.
3144
8bea7ed1
PM
31452012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
3146
3147 * common/buffer.c (buffer_grow): ARI fix: Remove unneeded
3148 call to abort.
3149
dab06dbe
PA
31502012-05-22 Pedro Alves <palves@redhat.com>
3151
3152 * target.h (store_waitstatus): Move declaration ...
3153 * inf-child.h (store_waitstatus): ... here.
3154 * target.c: Move inclusion of gdb_wait.h, and ...
3155 (store_waitstatus): ... this ...
3156 * inf-child.c: ... here.
3157 * linux-nat.c: Include inf-child.h.
3158 * rs6000-nat.c: Include inf-child.h.
3159 * spu-linux-nat.c: Include inf-child.h.
3160
43011e52
PM
31612012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
3162
3163 * tracepoint.c (start_tracing): Add missing i18n markup.
3164 (stop_tracing, set_trace_user): Ditto.
3165 (set_trace_notes, set_trace_stop_notes): Ditto.
3166
b1af9e97
TT
31672012-05-21 Tom Tromey <tromey@redhat.com>
3168
3169 PR c++/7173:
3170 * gnu-v3-abi.c (gnuv3_baseclass_offset): Return early for Java
3171 types.
3172 * value.h (value_cast_pointers): Update.
3173 * valops.c (value_cast_pointers): Add 'subclass_check' argument.
3174 (value_cast): Update.
3175 (update_search_result): New function.
3176 (do_search_struct_field): New, from search_struct_field. Check
3177 for ambiguous results.
3178 (search_struct_field): Rewrite.
3179 * infcall.c (value_arg_coerce): Update.
3180 * eval.c (evaluate_subexp_standard) <STRUCTOP_MEMBER>: Use
3181 value_cast_pointers.
3182 * ada-lang.c (ada_convert_actual): Update.
3183
e9e5e6b3
TT
31842012-05-21 Tom Tromey <tromey@redhat.com>
3185
3186 * macroexp.c (macro_stringify): Terminate the string.
3187
1564a261
JK
31882012-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
3189
3190 * NEWS (--with-auto-load-dir): Prepend $debugdir to the default path.
3191 Describe it.
3192 * auto-load.c (auto_load_expand_dir_vars): New function.
3193 (auto_load_safe_path_vec_update): Use it, remove the
3194 substitute_path_component call thanks to it.
3195 (auto_load_objfile_script): Remove the debug_file_directory processing.
3196 Use auto_load_expand_dir_vars, remove the substitute_path_component
3197 call thanks to it.
3198 * configure: Regenerate.
3199 * configure.ac (--with-auto-load-dir): Prepend $debugdir to the default
3200 path. Escape $ also for $debugdir.
3201 (--with_auto_load_safe_path): Escape $ also for $debugdir.
3202 * utils.c (substitute_path_component): Accept also DIRNAME_SEPARATOR.
3203
a3ec0bb1
DE
32042012-05-20 Doug Evans <dje@google.com>
3205
3206 * dwarf2read.c (recursively_find_pc_sect_symtab): Initialize "s"
3207 before use. Check for symtab->includes == NULL before scanning it.
3208
d467df4e
MR
32092012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
3210
3211 * mips-tdep.c (mips_reg3_to_reg): Optimize storage.
3212
4cc0665f
MR
32132012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
3214
3215 * NEWS: Add microMIPS support and "set mips compression",
3216 "show mips compression" commands.
3217 * mips-tdep.h (mips_isa): New enum.
3218 (gdbarch_tdep): Add mips_isa.
3219 (mips_pc_is_mips16): Update prototype.
3220 (mips_pc_is_mips, mips_pc_is_micromips): New prototypes.
3221 * mips-tdep.c (mips_compression_mips16): New variable.
3222 (mips_compression_micromips): Likewise.
3223 (mips_compression_strings): Likewise.
3224 (mips_compression_string): Likewise.
3225 (is_mips16_isa, is_micromips_isa): New functions.
3226 (is_mips16_addr): Rename to...
3227 (is_compact_addr): ... this.
3228 (unmake_mips16_addr): Likewise to...
3229 (unmake_compact_addr): ... this.
3230 (make_mips16_addr): Likewise to...
3231 (make_compact_addr): ... this.
3232 (is_mips_addr, is_mips16_addr, is_micromips_addr): New
3233 functions.
3234 (mips_elf_make_msymbol_special): Handle microMIPS code.
3235 (msymbol_is_special): Rename to...
3236 (msymbol_is_mips16): ... this.
3237 (mips_make_symbol_special, mips_pc_is_mips16): Update
3238 accordingly.
3239 (msymbol_is_mips, msymbol_is_micromips): New functions.
3240 (mips16_to_32_reg): Rename to...
3241 (mips_reg3_to_reg): ... this.
3242 (mips_pc_is_mips, mips_pc_is_micromips): New functions.
3243 (mips_pc_isa): Likewise.
3244 (mips_read_pc, mips_unwind_pc, mips_write_pc): Handle microMIPS
3245 code.
3246 (mips_fetch_instruction): Pass return status instead of printing
3247 an error message if requested. Handle microMIPS code. Bail out
3248 on an invalid ISA.
3249 (micromips_op): New macro.
3250 (b0s4_imm, b0s5_imm, b0s5_reg, b0s7_imm, b0s10_imm): Likewise.
3251 (b1s9_imm, b2s3_cc, b4s2_regl, b5s5_op, b5s5_reg): Likewise.
3252 (b6s4_op, b7s3_reg): Likewise.
3253 (b0s6_op, b0s11_op, b0s12_imm, b0s16_imm, b0s26_imm): Likewise.
3254 (b6s10_ext, b11s5_reg, b12s4_op): Likewise.
3255 (mips_insn_size): New function.
3256 (mips32_next_pc): Update mips_fetch_instruction call.
3257 (micromips_relative_offset7): New function.
3258 (micromips_relative_offset10): Likewise.
3259 (micromips_relative_offset16): Likewise.
3260 (micromips_pc_insn_size): Likewise.
3261 (micromips_bc1_pc): Likewise.
3262 (micromips_next_pc): Likewise.
3263 (unpack_mips16): Update mips_fetch_instruction call.
3264 (extended_mips16_next_pc): Update according to change to
3265 mips16_to_32_reg.
3266 (mips_next_pc): Update mips_pc_is_mips16 call. Handle microMIPS
3267 code.
3268 (mips16_scan_prologue): Update mips_fetch_instruction call.
3269 Update according to change to mips16_to_32_reg.
3270 (mips_insn16_frame_sniffer): Update mips_pc_is_mips16 call.
3271 (mips_insn16_frame_base_sniffer): Likewise.
3272 (micromips_decode_imm9): New function.
3273 (micromips_scan_prologue): Likewise.
3274 (mips_micro_frame_cache): Likewise.
3275 (mips_micro_frame_this_id): Likewise.
3276 (mips_micro_frame_prev_register): Likewise.
3277 (mips_micro_frame_sniffer): Likewise.
3278 (mips_micro_frame_unwind): New variable.
3279 (mips_micro_frame_base_address): New function.
3280 (mips_micro_frame_base): New variable.
3281 (mips_micro_frame_base_sniffer): New function.
3282 (mips32_scan_prologue): Update mips_fetch_instruction call.
3283 (mips_insn32_frame_sniffer): Check for the standard MIPS ISA
3284 rather than for MIPS16.
3285 (mips_insn32_frame_base_sniffer): Likewise.
3286 (mips_addr_bits_remove): Handle microMIPS code.
3287 (deal_with_atomic_sequence): Rename to...
3288 (mips_deal_with_atomic_sequence): ... this. Update the type
3289 of the variable used to hold an instruction. Remove the ISA bit
3290 check. Update mips_fetch_instruction call.
3291 (micromips_deal_with_atomic_sequence): New function.
3292 (deal_with_atomic_sequence): Likewise.
3293 (mips_about_to_return): Handle microMIPS code. Update
3294 mips_fetch_instruction call.
3295 (heuristic_proc_start): Check for the standard MIPS ISA rather
3296 than for MIPS16. Update mips_pc_is_mips16 and
3297 mips_fetch_instruction calls. Handle microMIPS code.
3298 (mips_push_dummy_code): Handle microMIPS code.
3299 (mips_eabi_push_dummy_call): Likewise.
3300 (mips_o32_return_value): Update mips_pc_is_mips16 call.
3301 (mips_o64_push_dummy_call): Handle microMIPS code.
3302 (mips_o64_return_value): Update mips_pc_is_mips16 call.
3303 (is_delayed): Remove function.
3304 (mips_single_step_through_delay): Replace the call to is_delayed
3305 with mips32_instruction_has_delay_slot. Correct MIPS16 handling.
3306 Handle microMIPS code.
3307 (mips_skip_prologue): Update mips_pc_is_mips16 call. Handle
3308 microMIPS code.
3309 (mips32_in_function_epilogue_p): Update mips_fetch_instruction
3310 call.
3311 (micromips_in_function_epilogue_p): New function.
3312 (mips16_in_function_epilogue_p): Update mips_fetch_instruction
3313 call.
3314 (mips_in_function_epilogue_p): Update mips_pc_is_mips16 call.
3315 Handle microMIPS.
3316 (gdb_print_insn_mips): Likewise.
3317 (mips_breakpoint_from_pc): Likewise.
3318 (mips_remote_breakpoint_from_pc): New function.
3319 (mips32_instruction_has_delay_slot): Simplify making use of the
3320 updated mips_fetch_instruction interface.
3321 (micromips_instruction_has_delay_slot): New function.
3322 (mips16_instruction_has_delay_slot): Simplify making use of the
3323 updated mips_fetch_instruction interface.
3324 (mips_adjust_breakpoint_address): Check for the standard MIPS
f782ad9b 3325 ISA rather than for MIPS16 ISA. Update for unmake_compact_addr
4cc0665f
MR
3326 calls. Handle microMIPS code.
3327 (mips_get_mips16_fn_stub_pc): Update mips_fetch_instruction call.
3328 (mips_skip_trampoline_code): Handle microMIPS code.
3329 (global_mips_compression): New function.
3330 (mips_gdbarch_init): Handle the compressed ISA setting from ELF
3331 file flags. Register the microMIPS remote breakpoint handler
3332 and heuristic frame unwinder.
3333 (show_mips_compression): New function.
3334 (_initialize_mips_tdep): Add the "set mips compression" and
3335 "show mips compression" commands.
3336
22e048c9
SDJ
33372012-05-18 Sergio Durigan Junior <sergiodj@redhat.com>
3338
3339 * ada-lang.c:
3340 * ada-tasks.c:
3341 * ada-varobj.c:
3342 * amd64-darwin-tdep.c:
3343 * arm-symbian-tdep.c:
3344 * arm-tdep.c:
3345 * avr-tdep.c:
3346 * ax-gdb.c:
3347 * bfin-linux-tdep.c:
3348 * breakpoint.c:
3349 * c-valprint.c:
3350 * cli/cli-cmds.c:
3351 * coffread.c:
3352 * cp-support.c:
3353 * cris-tdep.c:
3354 * dwarf2-frame-tailcall.c:
3355 * dwarf2-frame.c:
3356 * dwarf2expr.c:
3357 * dwarf2loc.c:
3358 * dwarf2read.c:
3359 * elfread.c:
3360 * eval.c:
3361 * expprint.c:
3362 * f-valprint.c:
3363 * frv-tdep.c:
3364 * h8300-tdep.c:
3365 * hppa-hpux-tdep.c:
3366 * hppa-tdep.c:
3367 * hppanbsd-tdep.c:
3368 * i386-nto-tdep.c:
3369 * i386-tdep.c:
3370 * i387-tdep.c:
3371 * ia64-tdep.c:
3372 * jit.c:
3373 * linespec.c:
3374 * linux-tdep.c:
3375 * lm32-tdep.c:
3376 * m2-valprint.c:
3377 * m32c-tdep.c:
3378 * m32r-rom.c:
3379 * m32r-tdep.c:
3380 * m68k-tdep.c:
3381 * m68klinux-tdep.c:
3382 * mi/mi-main.c:
3383 * microblaze-tdep.c:
3384 * mips-linux-tdep.c:
3385 * mips-tdep.c:
3386 * mn10300-tdep.c:
3387 * p-valprint.c:
3388 * parse.c:
3389 * ppc-linux-tdep.c:
3390 * ppc-sysv-tdep.c:
3391 * printcmd.c:
3392 * python/py-finishbreakpoint.c:
3393 * python/py-inferior.c:
3394 * python/py-infthread.c:
3395 * python/py-type.c:
3396 * python/python.c:
3397 * remote-fileio.c:
3398 * remote-m32r-sdi.c:
3399 * remote-mips.c:
3400 * reverse.c:
3401 * rl78-tdep.c:
3402 * rs6000-aix-tdep.c:
3403 * rs6000-tdep.c:
3404 * s390-tdep.c:
3405 * score-tdep.c:
3406 * sh64-tdep.c:
3407 * skip.c:
3408 * solib-darwin.c:
3409 * solib-dsbt.c:
3410 * solib-frv.c:
3411 * sparc-tdep.c:
3412 * spu-multiarch.c:
3413 * spu-tdep.c:
3414 * stack.c:
3415 * symfile.c:
3416 * symtab.c:
3417 * tic6x-tdep.c:
3418 * tracepoint.c:
3419 * v850-tdep.c:
3420 * valarith.c:
3421 * valprint.c:
3422 * value.c:
3423 * xcoffread.c:
3424 * xtensa-tdep.c:
3425 * ada-lang.c:
3426 * ada-tasks.c:
3427 * ada-varobj.c:
3428 * amd64-darwin-tdep.c:
3429 * arm-symbian-tdep.c:
3430 * arm-tdep.c: Delete unused variables.
3431
aff139ff
JK
34322012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
3433
3434 Rename $ddir to $datadir.
3435 * NEWS (--with-auto-load-dir): Rename $ddir to $datadir.
3436 * auto-load.c (auto_load_safe_path_vec_update)
3437 (auto_load_gdb_datadir_changed, auto_load_objfile_script): Likewise.
3438 * configure: Regenerate.
3439 * configure.ac (--with-auto-load-dir, --with-auto-load-safe-path):
3440 Likewise. Remove the 'use $ddir' help string.
3441
f7bfa992
JK
34422012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
3443
3444 * auto-load.c (show_auto_load_safe_path): Accept any combination of
3445 DIRNAME_SEPARATOR and IS_DIR_SEPARATOR for wild-match.
3446
9cb709b6
TT
34472012-05-18 Tom Tromey <tromey@redhat.com>
3448
3449 PR exp/13907:
3450 * valprint.h (struct value_print_options) <symbol_print>: New
3451 field.
3452 * valprint.c (user_print_options): Add default for symbol_print.
3453 (show_symbol_print): New function.
3454 (generic_val_print): Respect symbol_print.
3455 (_initialize_valprint): Add "print symbol" setting.
3456 * f-valprint.c (f_val_print): Respect symbol_print.
3457 * c-valprint.c (c_val_print): Respect symbol_print.
3458 * NEWS: Update.
3459 * printcmd.c (print_address_symbolic): Return int. Ignore some
3460 zero-size symbols.
3461 (print_address_demangle): Return int.
3462 * defs.h: (print_address_symbolic): Return int.
3463 * value.h (print_address_demangle): Return int.
3464
b012acdd
TT
34652012-05-18 Tom Tromey <tromey@redhat.com>
3466
3467 * valprint.c (val_print_string): Don't print leading space.
3468 * p-valprint.c (pascal_val_print) <TYPE_CODE_PTR>: Optionally
3469 print space before string or vtbl.
3470 * m2-valprint.c (print_unpacked_pointer): Optionally print space
3471 before string.
3472 * jv-valprint.c (java_value_print): Print space before string.
3473 * go-valprint.c (print_go_string): Print space before string.
3474 * f-valprint.c (f_val_print) <TYPE_CODE_PTR>: Optionally print
3475 space before string.
3476 * c-valprint.c (c_val_print) <TYPE_CODE_PTR>: Optionally print
3477 space before string or vtbl.
3478 * auxv.c (fprint_target_auxv): Print space after address.
3479
1d51a733
TT
34802012-05-18 Tom Tromey <tromey@redhat.com>
3481
3482 * printcmd.c (print_address_demangle): Remove special case for 0.
3483
edf0c1b7
TT
34842012-05-18 Tom Tromey <tromey@redhat.com>
3485
3486 * printcmd.c (print_address_demangle): Add 'opts' argument.
3487 * p-valprint.c (pascal_val_print): Update.
3488 * jv-valprint.c (java_val_print): Update.
3489 * value.h: Update.
3490 * valprint.c (generic_val_print): Update.
3491 (print_function_pointer_address): Add 'options' argument. Remove
3492 'addressprint' argument. Update.
3493 * m2-valprint.c (print_unpacked_pointer): Update.
3494 * gnu-v3-abi.c (print_one_vtable): Update.
3495 (gnuv3_print_method_ptr): Update.
3496 * f-valprint.c (f_val_print): Update.
3497 * cp-valprint.c (cp_print_value_fields): Update.
3498 * valprint.h (print_function_pointer_address): Update.
3499 * c-valprint.c (c_val_print): Update.
3500
9703b513
TT
35012012-05-18 Tom Tromey <tromey@redhat.com>
3502
3503 * psymtab.c (find_pc_sect_symtab_from_partial): Return the symtab
3504 directly corresponding to the found psymtab.
3505 * dwarf2read.c (recursively_find_pc_sect_symtab): New function.
3506 (dw2_find_pc_sect_symtab): Use it.
3507 * block.h (blockvector_contains_pc): Declare.
3508 * block.c (find_block_in_blockvector): New function.
3509 (blockvector_for_pc_sect): Use it.
3510 (blockvector_contains_pc): New function.
3511
5a439849
MR
35122012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
3513
3514 * mips-tdep.h (mips_write_pc): New prototype.
3515 * mips-tdep.c (mips_write_pc): Make external, add description.
3516 * mips-linux-tdep.c (mips_linux_write_pc): Use mips_write_pc,
3517 add description.
3518
8376de04
MR
35192012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
3520
3521 * mips-tdep.c (mips_read_pc): Use gdbarch_pc_regnum instead of
3522 mips_regnum->pc.
3523 (mips_unwind_pc, mips_write_pc): Likewise.
3524 (mips_gdbarch_init): Remove a comment on gdbarch_pc_regnum and
3525 gdbarch_read_pc.
3526
d3581e61
JB
35272012-05-17 Joel Brobecker <brobecker@adacore.com>
3528
3529 * procfs.c (procfs_find_new_threads, procfs_pid_to_str,
3530 proc_warn, proc_error, proc_get_status, proc_flags,
3531 proc_why, proc_what, proc_nsysarg, proc_sysargs,
3532 proc_set_run_on_last_close, proc_unset_run_on_last_close,
3533 proc_unset_inherit_on_fork, proc_set_async, proc_unset_async,
3534 proc_stop_process, proc_wait_for_stop, proc_run_process,
3535 proc_set_traced_signals, proc_set_traced_faults,
3536 proc_set_traced_sysentry, proc_set_traced_sysexit,
3537 proc_set_held_signals, proc_get_held_signals,
3538 proc_get_traced_signals, proc_get_traced_faults,
3539 proc_get_traced_sysentry, proc_get_traced_sysexit,
3540 proc_clear_current_fault, proc_set_current_signal,
3541 proc_clear_current_signal, proc_get_gregs, proc_get_fpregs,
3542 proc_set_gregs, proc_set_fpregs, proc_kill, proc_parent_pid,
3543 proc_get_nthreads, proc_get_nthreads, proc_get_nthreads,
3544 proc_get_current_thread, proc_get_current_thread,
3545 proc_get_current_thread, proc_update_threads,
3546 proc_update_threads, proc_update_threads, proc_update_threads,
3547 proc_iterate_over_threads, procfs_find_new_threads,
3548 procfs_pid_to_str): Make static. Remove advance declaration.
3549 (proc_cursig): Make static. Conditionalized defintion on
3550 PROCFS_DONT_PIOCSSIG_CURSIG being defined.
3551 (proc_syscall, proc_set_kill_on_last_close,
3552 proc_unset_kill_on_last_close, proc_set_inherit_on_fork,
3553 proc_get_pending_signals, proc_get_signal_actions,
3554 proc_trace_signal, proc_ignore_signal): Delete.
3555
81b9b86e
SDJ
35562012-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
3557
3558 * coffread.c (cs_section_address): Passing proper argument for
3559 `bfd_get_section_vma'.
3560 * dwarf2read.c (dwarf2_locate_sections): Likewise, for
3561 `bfd_get_section_flags'.
3562 * remote.c (remote_trace_set_readonly_regions): Likewise, for
3563 `bfd_get_section_vma'.
3564
abc9d0dc
TT
35652012-05-16 Tom Tromey <tromey@redhat.com>
3566
3567 PR macros/13205:
3568 * macrotab.h: (macro_define_special): Declare.
3569 (enum macro_special_kind): New.
3570 (struct macro_definition) <argc, replacement>: Update comments.
3571 * macrotab.c (new_macro_definition): Unconditionally set 'argc'.
3572 (macro_define_object_internal): New function.
3573 (macro_define_object): Use it.
3574 (macro_define_special): New function.
3575 (fixup_definition): New function.
3576 (macro_lookup_definition, foreach_macro_in_scope)
3577 (foreach_macro): Use fixup_definition.
3578 * macroexp.h (macro_stringify): Declare.
3579 * macroexp.c (free_buffer_return_text): New function.
3580 (stringify): Constify "arg".
3581 (macro_stringify): New function.
3582 * dwarf2read.c (macro_start_file): Call macro_define_special.
3583
6a3a010b 35842012-05-16 Maciej W. Rozycki <macro@codesourcery.com>
f782ad9b 3585 Maciej W. Rozycki <macro@mips.com>
6a3a010b
MR
3586
3587 * breakpoint.h (bp_location): Add related_address member.
3588 * inferior.h (get_return_value): Take a pointer to struct value
3589 instead of struct type for the function requested.
3590 * value.h (using_struct_return): Likewise.
3591 * gdbarch.sh (return_value): Take a pointer to struct value
3592 instead of struct type for the function requested.
3593 * breakpoint.c (set_breakpoint_location_function): Initialize
3594 related_address for bp_gnu_ifunc_resolver breakpoints.
3595 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Pass the
3596 requested function's address to gdbarch_return_value.
3597 * eval.c (evaluate_subexp_standard): Pass the requested
3598 function's address to using_struct_return.
3599 * infcall.c (call_function_by_hand): Pass the requested
3600 function's address to using_struct_return and
3601 gdbarch_return_value.
3602 * infcmd.c (get_return_value): Take a pointer to struct value
3603 instead of struct type for the function requested.
3604 (print_return_value): Update accordingly.
3605 (finish_command_continuation): Likewise.
3606 * stack.c (return_command): Pass the requested function's
3607 address to using_struct_return and gdbarch_return_value.
3608 * value.c (using_struct_return): Take a pointer to struct value
3609 instead of struct type for the function requested. Pass the
3610 requested function's address to gdbarch_return_value.
3611 * python/py-finishbreakpoint.c (finish_breakpoint_object):
3612 New function_value member, replacing function_type.
3613 (bpfinishpy_dealloc): Update accordingly.
3614 (bpfinishpy_pre_stop_hook): Likewise.
3615 (bpfinishpy_init): Likewise. Record the requested function's
3616 address.
3617 * mips-tdep.c (mips_fval_reg): New enum.
3618 (mips_o32_push_dummy_call): For MIPS16 FP doubles do not swap
3619 words put in GP registers.
3620 (mips_o64_push_dummy_call): Update a comment.
3621 (mips_o32_return_value): Take a pointer to struct value instead
3622 of struct type for the function requested and use it to check if
3623 using the MIPS16 calling convention. Return the designated
3624 general purpose registers for floating-point values returned in
3625 MIPS16 mode.
3626 (mips_o64_return_value): Likewise.
3627 * ppc-tdep.h (ppc_sysv_abi_return_value): Update prototype.
3628 (ppc_sysv_abi_broken_return_value): Likewise.
3629 (ppc64_sysv_abi_return_value): Likewise.
3630 * alpha-tdep.c (alpha_return_value): Take a pointer to struct
3631 value instead of struct type for the function requested.
3632 * amd64-tdep.c (amd64_return_value): Likewise.
3633 * amd64-windows-tdep.c (amd64_windows_return_value): Likewise.
3634 * arm-tdep.c (arm_return_value): Likewise.
3635 * avr-tdep.c (avr_return_value): Likewise.
3636 * bfin-tdep.c (bfin_return_value): Likewise.
3637 * cris-tdep.c (cris_return_value): Likewise.
3638 * frv-tdep.c (frv_return_value): Likewise.
3639 * h8300-tdep.c (h8300_return_value): Likewise.
3640 (h8300h_return_value): Likewise.
3641 * hppa-tdep.c (hppa32_return_value): Likewise.
3642 (hppa64_return_value): Likewise.
3643 * i386-tdep.c (i386_return_value): Likewise.
3644 * ia64-tdep.c (ia64_return_value): Likewise.
3645 * iq2000-tdep.c (iq2000_return_value): Likewise.
3646 * lm32-tdep.c (lm32_return_value): Likewise.
3647 * m32c-tdep.c (m32c_return_value): Likewise.
3648 * m32r-tdep.c (m32r_return_value): Likewise.
3649 * m68hc11-tdep.c (m68hc11_return_value): Likewise.
3650 * m68k-tdep.c (m68k_return_value): Likewise.
3651 (m68k_svr4_return_value): Likewise.
3652 * m88k-tdep.c (m88k_return_value): Likewise.
3653 * mep-tdep.c (mep_return_value): Likewise.
3654 * microblaze-tdep.c (microblaze_return_value): Likewise.
3655 * mn10300-tdep.c (mn10300_return_value): Likewise.
3656 * moxie-tdep.c (moxie_return_value): Likewise.
3657 * mt-tdep.c (mt_return_value): Likewise.
3658 * ppc-linux-tdep.c (ppc_linux_return_value): Likewise.
3659 * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): Likewise.
3660 (ppc_sysv_abi_broken_return_value): Likewise.
3661 (ppc64_sysv_abi_return_value): Likewise.
3662 * ppcnbsd-tdep.c (ppcnbsd_return_value): Likewise.
3663 * rl78-tdep.c (rl78_return_value): Likewise.
3664 * rs6000-aix-tdep.c (rs6000_return_value): Likewise.
3665 * rx-tdep.c (rx_return_value): Likewise.
3666 * s390-tdep.c (s390_return_value): Likewise.
3667 * score-tdep.c (score_return_value): Likewise.
3668 * sh-tdep.c (sh_return_value_nofpu): Likewise.
3669 (sh_return_value_fpu): Likewise.
3670 * sh64-tdep.c (sh64_return_value): Likewise.
3671 * sparc-tdep.c (sparc32_return_value): Likewise.
3672 * sparc64-tdep.c (sparc64_return_value): Likewise.
3673 * spu-tdep.c (spu_return_value): Likewise.
3674 * tic6x-tdep.c (tic6x_return_value): Likewise.
3675 * v850-tdep.c (v850_return_value): Likewise.
3676 * vax-tdep.c (vax_return_value): Likewise.
3677 * xstormy16-tdep.c (xstormy16_return_value): Likewise.
3678 * xtensa-tdep.c (xtensa_return_value): Likewise.
3679 * gdbarch.c: Regenerate.
3680 * gdbarch.h: Regenerate.
3681
29ca12b3
TT
36822012-05-15 Tom Tromey <tromey@redhat.com>
3683
3684 * python/python.c (gdbpy_find_pc_line): Use gdb_py_ulongest.
3685
588ae58c
JB
36862012-05-15 Joel Brobecker <brobecker@adacore.com>
3687
3688 * breakpoint.c (init_breakpoint_sal): Add quotes around part
3689 of command in two error message.
3690
855a6e68
JB
36912012-05-15 Joel Brobecker <brobecker@adacore.com>
3692
3693 * breakpoint.c (init_breakpoint_sal): Remove trailing spaces.
3694
d634f2de
JB
36952012-05-15 Joel Brobecker <brobecker@adacore.com>
3696
3697 * breakpoint.c (find_condition_and_thread): Minor reformatting.
3698
9cc815f5
JK
36992012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
3700
3701 * NEWS (show auto-load scripts-directory): Add forgotten command.
3702
6a609e58
JK
37032012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
3704
3705 * spu-tdep.c (spu_catch_start): Update create_breakpoint caller
3706 parameters.
3707
ac1438b5
L
37082012-05-14 H.J. Lu <hongjiu.lu@intel.com>
3709
3710 * amd64-tdep.c: Include features/i386/x32.c and
3711 features/i386/x32-avx.c.
3712 (_initialize_amd64_tdep): Call initialize_tdesc_x32 and
3713 initialize_tdesc_x32_avx.
3714
e7e0cddf
SS
37152012-05-14 Stan Shebs <stan@codesourcery.com>
3716
3717 Add dynamic printf.
3718 * breakpoint.h (enum bptype): New type bp_dprintf.
3719 (struct breakpoint): New field extra_string.
3720 (struct breakpoint_ops): Add arg to create_breakpoints_sal.
3721 (create_breakpoint): Add extra_string arg.
3722 * breakpoint.c (dprintf_breakpoint_ops): New.
3723 (is_breakpoint): Add bp_dprintf.
3724 (bpstat_what): Add dprintf case.
3725 (bptype_string): Ditto.
3726 (print_one_breakpoint_location): Ditto.
3727 (init_bp_location): Ditto.
3728 (bkpt_print_mention): Ditto.
3729 (dprintf_style_enums): New array.
3730 (dprintf_style): New global.
3731 (dprintf_function): New global.
3732 (dprintf_channel): New global.
3733 (update_dprintf_command_list): New function.
3734 (update_dprintf_commands): New function.
3735 (init_breakpoint_sal): Add extra_string argument, handle it.
3736 (create_breakpoint_sal): Add extra_string argument.
3737 (create_breakpoints_sal): Add extra_string argument, update callers.
3738 (find_condition_and_thread): Add extra argument.
3739 (create_breakpoint): Add extra_string argument, record it.
3740 (dprintf_command): New function.
3741 (break_command_1): Add arg to create_breakpoint call.
3742 (handle_gnu_v3_exceptions): Ditto.
3743 (trace_command): Ditto.
3744 (ftrace_command): Ditto.
3745 (strace_command): Ditto.
3746 (bkpt_print_mention): Add dprintf case.
3747 (create_breakpoint_sal_default): Add extra_string argument.
3748 (_initialize_breakpoint): Add new commands.
3749 * mi/mi-cmd-break.c (mi_cmd_break_insert): Add arg to call.
3750 * python/py-breakpoint.c (bppy_init): Ditto.
3751 * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
3752
8ae38c14
MR
37532012-05-14 Maciej W. Rozycki <macro@codesourcery.com>
3754
3755 * mips-tdep.c (mips_push_dummy_code): Correct description typo.
3756
9f676e66
SCR
37572012-05-14 Siva Chandra Reddy <sivachandra@google.com>
3758
3759 * python/python.c (gdbpy_find_pc_line): Use ULONGEST instead of
3760 unsigned long long.
3761
7efc75aa
SCR
37622012-05-13 Siva Chandra Reddy <sivachandra@google.com>
3763
3764 Add a new function gdb.find_pc_line to the Python API.
3765 * NEWS (Python Scripting): Add entry about the new function.
3766 * python/python.c (gdbpy_find_pc_line): New function which
3767 implements gdb.find_pc_line.
3768 (GdbMethods): Add entry for the new function.
3769
70af3797
PA
37702012-05-12 Pedro Alves <palves@redhat.com>
3771
3772 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Call
3773 initialize_tdesc_x32_linux and initialize_tdesc_x32_avx_linux.
3774
06da564e
EZ
37752012-05-12 Eli Zaretskii <eliz@gnu.org>
3776
3777 * inferior.c: Include completer.h
3778 (initialize_inferiors): Set completer of add-inferior to
3779 filename_completer.
3780
0288cee2
L
37812012-05-11 H.J. Lu <hongjiu.lu@intel.com>
3782
3783 * amd64-linux-tdep.c (amd64_linux_core_read_description): Check
3784 gdbarch_ptr_bit for x32 core dump.
3785
f6537a2c
L
37862012-05-11 H.J. Lu <hongjiu.lu@intel.com>
3787
3788 * amd64-linux-tdep.c: Include features/i386/x32-linux.c
3789 and features/i386/x32-avx-linux.c.
3790
85d4a676
SS
37912012-05-11 Stan Shebs <stan@codesourcery.com>
3792 Kwok Cheung Yeung <kcy@codesourcery.com>
3793
3794 * NEWS: Describe new info os commands.
3795 * common/linux-osdata.c (PID_T, TIME_T): Define.
3796 (MAX_PID_T_STRLEN): New.
3797 (linux_common_core_of_thread): Add comment. Change to use PID_T and
3798 MAX_PID_T_STRLEN.
3799 (command_from_pid): Add comment. Change to use PID_T.
3800 (commandline_from_pid): Change to use PID_T.
3801 (user_from_pid): Add comment.
3802 (get_process_owner): Add comment. Change to use PID_T and
3803 MAX_PID_T_STRLEN.
3804 (get_number_of_cpu_cores): Add comment.
3805 (get_cores_used_by_process): Add comment. Change to use PID_T and
3806 MAX_PID_T_STRLEN.
3807 (linux_xfer_osdata_processes): Change to use PID_T and
3808 MAX_PID_T_STRLEN.
3809 (compare_processes): New function.
3810 (linux_xfer_osdata_processgroups): New function.
3811 (linux_xfer_osdata_threads): Change to use PID_T.
3812 (linux_xfer_osdata_fds): New function.
3813 (format_socket_state, print_sockets): New functions.
3814 (union socket_addr): New union.
3815 (linux_xfer_osdata_isockets): New function.
3816 (time_from_time_t, group_from_gid): New functions.
3817 (linux_xfer_osdata_shm): New function.
3818 (linux_xfer_osdata_sem): New function.
3819 (linux_xfer_osdata_msg): New function.
3820 (linux_xfer_osdata_modules): New function.
3821 (osdata_table): Add new entries.
3822 * common/buffer.c (buffer_xml_printf): Add support for long and
3823 long long format specifiers.
3824
f24afd6d
L
38252012-05-11 H.J. Lu <hongjiu.lu@intel.com>
3826
3827 * amd64-linux-tdep.h (tdesc_x32_linux): New.
3828 (tdesc_x32_avx_linux): Likewise.
3829
7349ff92
JK
38302012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3831
3832 Implement multi-component --with-auto-load-dir.
3833 * NEWS (set auto-load scripts-directory, --with-auto-load-dir): New
3834 entries.
3835 (--with-auto-load-safe-path): Update the default value description.
3836 * auto-load.c (auto_load_dir, set_auto_load_dir, show_auto_load_dir):
3837 New.
3838 (auto_load_objfile_script): Add DEBUG_AUTO_LOAD output. Remove
3839 GDB_DATADIR NULL check. Replace GDB_DATADIR/auto-load by
3840 AUTO_LOAD_DIR. Support $ddir and multiple components in it.
3841 (_initialize_auto_load): Initialize also auto_load_dir. Install new
3842 "set auto-load scripts-directory".
3843 * config.in: Regenerate.
3844 * configure: Regenerate.
3845 * configure.ac (--with-auto-load-dir): New configure option.
3846 (--auto-load-safe-path): Change the default to --with-auto-load-dir.
3847
6dea1fbd
JK
38482012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3849
3850 Provide $ddir substitution for --with-auto-load-safe-path.
3851 * NEWS (--with-auto-load-safe-path, --without-auto-load-safe-path): New
3852 entries.
3853 * auto-load.c: Include observer.h.
3854 (auto_load_safe_path_vec_update): Call substitute_path_component for
3855 each component. New variable ddir_subst.
3856 (auto_load_gdb_datadir_changed): New function.
3857 (set_auto_load_safe_path): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
3858 AUTO_LOAD_SAFE_PATH. New comment.
3859 (_initialize_auto_load): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
3860 AUTO_LOAD_SAFE_PATH. Install auto_load_gdb_datadir_changed.
3861 * config.in: Regenerate.
3862 * configure: Regenerate.
3863 * configure.ac (--auto-load-safe-path): Rename
3864 DEFAULT_AUTO_LOAD_SAFE_PATH to AUTO_LOAD_SAFE_PATH. Default to
3865 GDB_DATADIR/auto-load.
3866 * defs.h (substitute_path_component): New declaration.
3867 * top.c: Include observer.h.
3868 (set_gdb_datadir): New function.
3869 (init_main): Install it for "set data-directory".
3870 * utils.c (substitute_path_component): New function.
3871
b09aca3a
JK
38722012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3873
3874 Make auto-load handle multiple components of DEBUG_FILE_DIRECTORY.
3875 * auto-load.c (auto_load_objfile_script): Remove check for NULL
3876 DEBUG_FILE_DIRECTORY. Handle multiple components of
3877 DEBUG_FILE_DIRECTORY.
3878
95554aad
TT
38792012-05-10 Tom Tromey <tromey@redhat.com>
3880
3881 * dwarf2read.c (recursively_write_psymbols): New function.
3882 (write_psymtabs_to_index): Use it.
3883
3884 * dwarf2read.c (struct dwarf2_queue_item) <pretend_language>: New
3885 field.
3886 (load_cu, dw2_do_instantiate_symtab, process_psymtab_comp_unit)
3887 (load_partial_comp_unit): Update.
3888 (queue_comp_unit): Add argument 'pretend_language'.
3889 (process_queue): Update.
3890 (psymtab_to_symtab_1): Skip dependencies that have a user.
3891 (load_partial_comp_unit_reader): Give meaning to the 'data'
3892 argument.
3893 (load_full_comp_unit): Add 'pretend_language' argument.
3894 (process_full_comp_unit): Add 'pretend_language' argument. Set
3895 language on CU.
3896 (process_imported_unit_die, read_file_scope, read_type_unit_scope):
3897 Update.
3898 (maybe_queue_comp_unit): Add 'pretend_language' argument.
3899 (follow_die_offset, follow_die_sig, read_signatured_type_reader):
3900 Update.
3901 (prepare_one_comp_unit): Add 'pretend_language' argument.
3902
3903 * dwarf2read.c: (dwarf2_per_cu_ptr): New typedef.
3904 (struct dwarf2_per_objfile) <just_read_cus>: New field.
3905 (struct dwarf2_per_cu_data) <imported_symtabs>: New field.
3906 (dw2_do_instantiate_symtab): Check whether symtab was read in
3907 before queueing.
3908 (dw2_instantiate_symtab): Add assertion. Call
3909 process_cu_includes.
3910 (process_psymtab_comp_unit): Compute 'dependencies' for psymtab.
3911 (partial_symtab_p): New typedef.
3912 (set_partial_user): New function.
3913 (dwarf2_build_psymtabs_hard): Use set_partial_user.
3914 (scan_partial_symbols): Add imported CU to imported_symtabs.
3915 (dwarf2_psymtab_to_symtab): Call process_cu_includes.
3916 (psymtab_to_symtab_1): Do nothing if psymtab is readin.
3917 (get_symtab, recursively_compute_inclusions)
3918 (compute_symtab_includes, process_cu_includes)
3919 (process_imported_unit_die): New functions.
3920 (process_die) <DW_TAG_imported_unit>: New case.
3921 (dwarf2_per_objfile_free): Free 'imported_symtabs'.
3922
3923 * dwarf2read.c (struct dwarf2_per_cu_data) <psymtab>: Update
3924 comment.
3925 (struct partial_die_info) <locdesc>: Remove.
3926 <d>: New field.
3927 (process_psymtab_comp_unit): Add 'read_partial' argument.
3928 Update.
3929 (process_type_comp_unit, dwarf2_build_psymtabs_hard): Update.
3930 (scan_partial_symbols): Handle DW_TAG_imported_unit.
3931 (add_partial_symbol): Update.
3932 (process_die): Handle DW_TAG_partial_unit.
3933 (read_file_scope): Update comment.
3934 (load_partial_dies): Handle DW_TAG_imported_unit.
3935 (read_partial_die): Handle DW_TAG_partial_unit, DW_AT_import.
3936 (determine_prefix, dwarf2_name): Handle DW_TAG_partial_unit.
3937
e871fbb9
TT
39382012-05-10 Tom Tromey <tromey@redhat.com>
3939
3940 * cc-with-dwz.sh: New file.
3941
b5b04b5b
TT
39422012-05-10 Tom Tromey <tromey@redhat.com>
3943
3944 * symtab.h (struct symtab) <includes, user>: New fields.
3945 * block.h (struct block_iterator) <d, idx, which>: New fields.
3946 * block.c (initialize_block_iterator, find_iterator_symtab)
3947 (block_iterator_step, block_iter_name_step)
3948 (block_iter_match_step): New functions.
3949 (block_iterator_first, block_iterator_next)
3950 (block_iter_name_first, block_iter_name_next)
3951 (block_iter_match_first, block_iter_match_next): Rewrite.
3952 (get_block_symtab): New function.
3953
84a146c9
TT
39542012-05-10 Tom Tromey <tromey@redhat.com>
3955
3956 * jv-lang.c (get_java_class_symtab): Use allocate_global_block,
3957 set_block_symtab.
3958 * jit.c (finalize_symtab): Use allocate_global_block,
3959 set_block_symtab.
3960 * buildsym.c (finish_block_internal): New function, from old
3961 finish_block.
3962 (finish_block): Rewrite.
3963 (end_symtab): Use finish_block_internal, set_block_symtab.
3964 * block.h (struct global_block): New.
3965 (allocate_global_block, set_block_symtab): Declare.
3966 * block.c (allocate_global_block, set_block_symtab): New
3967 functions.
3968
9439a077
TT
39692012-05-10 Tom Tromey <tromey@redhat.com>
3970
3971 * psymtab.c (partial_map_expand_apply): Add assertion.
3972 (partial_map_symtabs_matching_filename): Skip included psymtabs.
3973 (psymtab_to_symtab): Find unshared psymtab.
3974 (dump_psymtab): Print including psymtabs.
3975 (recursively_search_psymtabs): New function.
3976 (expand_symtabs_matching_via_partial): Use it.
3977 * psympriv.h (struct partial_symtab) <user, searched_flag>: New
3978 fields.
3979 (enum psymtab_search_status): New.
3980
8157b174
TT
39812012-05-10 Tom Tromey <tromey@redhat.com>
3982
3983 * tracepoint.c (scope_info): Update.
3984 * symtab.c (lookup_block_symbol, iterate_over_symbols)
3985 (find_pc_sect_symtab, search_symbols)
3986 (default_make_symbol_completion_list_break_on)
3987 (make_file_symbol_completion_list): Update.
3988 * symmisc.c (dump_symtab_1): Update.
3989 * stack.c (print_frame_args, iterate_over_block_locals)
3990 (print_frame_labels, iterate_over_block_arg_vars): Update.
3991 * python/py-block.c (block_object) <dict>: Remove.
3992 <block>: New field.
3993 <iter>: Change type.
3994 (blpy_iter): Update.
3995 (blpy_block_syms_iternext): Update.
3996 * psymtab.c (map_block): Use block iterators.
3997 * objfiles.c (objfile_relocate1): Use ALL_DICT_SYMBOLS.
3998 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
3999 * mdebugread.c (parse_symbol, mylookup_symbol): Update.
4000 * infrun.c (check_exception_resume): Update.
4001 * cp-support.c (make_symbol_overload_list_block): Update.
4002 * coffread.c (patch_opaque_types): Update.
4003 * buildsym.c (finish_block, end_symtab): Use ALL_DICT_SYMBOLS.
4004 * block.h (struct block_iterator): New.
4005 (block_iterator_first, block_iterator_next, block_iter_name_first)
4006 (block_iter_name_next, block_iter_match_first)
4007 (block_iter_match_next): Declare.
4008 (ALL_BLOCK_SYMBOLS): Redefine.
4009 * block.c (block_iterator_first, block_iterator_next)
4010 (block_iter_name_first, block_iter_name_next)
4011 (block_iter_match_first, block_iter_match_next): New functions.
4012 * ada-lang.c (ada_add_block_symbols)
4013 (ada_make_symbol_completion_list): Use block iterator.
4014
a2ca7a52
TT
40152012-05-10 Tom Tromey <tromey@redhat.com>
4016
4017 * psymtab.c (PSYMTAB_TO_SYMTAB): Remove.
4018 (find_pc_sect_symtab_from_partial, lookup_symbol_aux_psymtabs)
4019 (lookup_partial_symbol, find_last_source_symtab_from_partial)
4020 (read_psymtabs_with_filename, map_matching_symbols_psymtab)
4021 (expand_symtabs_matching_via_partial, maintenance_check_symtabs):
4022 Update.
4023
64ea88dc
JB
40242012-05-10 Joel Brobecker <brobecker@adacore.com>
4025
4026 * config/djgpp/fnchange.lst: Add entries for print-file-var-lib1.c,
4027 print-file-var-lib2.c, print-file-var-main.c and
4028 print-file-var.exp (located in gdb/testsuite/gdb.base).
4029
99a547d6
JB
40302012-05-10 Joel Brobecker <brobecker@adacore.com>
4031
4032 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
4033 try locating the symbol in the symbol's own objfile first, before
4034 extending the search to all objfiles.
4035 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
4036 out of lookup_symbol_aux_symtabs.
4037 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
4038 Replace extracted-out code by call to lookup_symbol_aux_objfile.
4039 Do not search EXCLUDE_OBJFILE.
4040 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
4041 (lookup_symbol_global): Search for matches in the block's objfile
4042 first, before searching all other objfiles.
4043
0ece64fd
TG
40442012-05-10 Tristan Gingold <gingold@adacore.com>
4045
4046 * printcmd.c (set_command): Add pre/post inc/dec.
4047
3d16a105
FCE
40482012-05-09 Frank Ch. Eigler <fche@redhat.com>
4049
4050 * gdb.1: Document -ex option.
4051
2efbc0f7
JB
40522012-05-09 Joel Brobecker <brobecker@adacore.com>
4053
4054 * infcall.c (call_function_by_hand): Remove AT_SYMBOL handling.
4055 * inferior.h (AT_SYMBOL): Delete.
4056
2c76a0c7
JB
40572012-05-09 Joel Brobecker <brobecker@adacore.com>
4058
4059 * mips-tdep.c (mips_push_dummy_code): New function.
4060 (mips_gdbarch_init): Set the gdbarch call_dummy_location to
4061 ON_STACK and install mips_push_dummy_code as our gdbarch
4062 push_dummy_code routine.
4063
9401a810
PA
40642012-05-09 Pedro Alves <palves@redhat.com>
4065
4066 * target.c (set_maintenance_target_async_permitted): Rename to ...
4067 (set_target_async_command): ... this.
4068 (show_maintenance_target_async_permitted): Rename to ...
4069 (show_target_async_command): ... this.
4070 (initialize_targets): Adjust.
4071
3929b321
DE
40722012-05-08 Doug Evans <dje@google.com>
4073
4074 * go-exp.y (classify_name): Add missing assignment of fields of
4075 yylval.ssym.
4076
c41535fd
EZ
40772012-05-08 Eli Zaretskii <eliz@gnu.org>
4078
4079 Display the ">" prompt in interactive mode while reading canned
4080 commands, even when the current interpreter is MI.
4081
4082 * interps.c (interp_set_temp): New function.
4083
4084 * interps.h (interp_set_temp): Add prototype.
4085
4086 * cli/cli-script.c (restore_interp): New cleanup function.
4087 (read_command_lines): Temporarily override the current interpreter
4088 with CLI and arrange for restoring the original one.
4089
c0749c4d
JS
40902012-05-12 Joel Sherrill <joel.sherrill@oarcorp.com>
4091
4092 * microblaze-rom.c (_initialize_picobug_rom): Add prototype.
4093
d7333987
SDJ
40942012-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
4095
4096 * probe.c (parse_probes): Move conditional to check for
4097 debuginfo files from here...
4098 * stap-probe.c (stap_get_probes): ... to here.
4099
649e6d92
MK
41002012-05-07 Mark Kettenis <kettenis@gnu.org>
4101 H.J. Lu <hongjiu.lu@intel.com>
4102
4103 * amd64-tdep.c (amd64_analyze_prologue): Additionally check for
4104 `movl %esp, %ebp' for the X32 ABI.
4105
f39c6ffd
TT
41062012-05-07 Tom Tromey <tromey@redhat.com>
4107
4108 * dwarf2read.c (dwarf_tag_name): Return const char *. Use
4109 get_DW_TAG_name.
4110 (dwarf_attr_name): Return const char *. Use get_DW_AT_name.
4111 (dwarf_form_name): Return const char *. Use get_DW_FORM_name.
4112 (dwarf_stack_op_name): Remove.
4113 (dwarf_cfi_name): Return const char *. Use get_DW_ATE_name.
4114 (decode_locdesc): Use get_DW_OP_name.
4115 * dwarf2loc.c (unimplemented): Use get_DW_OP_name.
4116 (dwarf2_compile_expr_to_ax): Likewise.
4117 (disassemble_dwarf_expression): Likewise.
4118 * dwarf2expr.h: (dwarf_stack_op_name): Remove.
4119
1e1f6591
CLT
41202012-05-07 Chung-Lin Tang <cltang@codesourcery.com>
4121
4122 * sh-linux-tdep.c: Include trad-frame.h and tramp-frame.h.
4123 (sh_linux_sigtramp_cache): New function.
4124 (sh_linux_sigreturn_init): New function.
4125 (sh_linux_rt_sigreturn_init): New function.
4126 (SH_MOVW,SH_TRAP,SH_OR_R0_R0): New symbols for instruction
4127 patterns.
4128 (SH_NR_SIGRETURN,SH_NR_RT_SIGRETURN): New symbols for sigreturn
4129 syscall codes.
4130 (sh_linux_sigreturn_tramp_frame): New tramp_frame definition.
4131 (sh_linux_rt_sigreturn_tramp_frame): Likewise.
4132 (sh_linux_init_abi): Add init calls to register new tramp_frame
4133 definitions under 32-bit SH, update comments.
4134
545c08b4
PA
41352012-05-07 Pedro Alves <palves@redhat.com>
4136
daac165e
PA
4137 PR gdb/10952
4138
545c08b4
PA
4139 * amd64-linux-tdep.c: Include glibc-tdep.h.
4140 (amd64_linux_init_abi): Install glibc_skip_solib_resolver as
4141 gdbarch_skip_solib_resolver callback.
4142
af2c1515
JK
41432012-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4144
4145 * auto-load.c (set_auto_load_safe_path): Reset AUTO_LOAD_SAFE_PATH
4146 back to DEFAULT_AUTO_LOAD_SAFE_PATH if it is being set to "".
4147 (show_auto_load_safe_path): Check any-directory by comparison with "/".
4148 (add_auto_load_safe_path): Change the error message.
4149 (_initialize_auto_load): Change the "safe-path" help text.
4150 * configure: Regenerate
4151 * configure.ac (--without-auto-load-safe-path): Set
4152 WITH_AUTO_LOAD_SAFE_PATH to /.
4153
1067f998
SDJ
41542012-05-05 Sergio Durigan Junior <sergiodj@redhat.com>
4155
4156 * stap-probe.h: Do not include unecessary `probe.h'.
4157
45dfa85a
AM
41582012-05-05 Alan Modra <amodra@gmail.com>
4159
4160 * elfread.c (elf_symtab_read): Use bfd_abs_section_ptr and
4161 bfd_und_section_ptr.
4162 * machoread.c (macho_symtab_add_minsym): Use bfd_abs_section_ptr
4163 and bfd_com_section_ptr.
4164
cf093994
JB
41652012-05-04 Joel Brobecker <brobecker@adacore.com>
4166
762ebb75 4167 * MAINTAINERS (Past Maintainers): Add Chris Faylor.
cf093994 4168
d40dc7a8
JB
41692012-05-04 Joel Brobecker <brobecker@adacore.com>
4170
4171 * windows-nat.h (segment_register_p_ftype): New typedef.
4172 (windows_set_segment_register_p): Add declaration.
4173 * windows-nat.c (segment_register_p): New static global.
4174 (windows_set_segment_register_p): New function.
4175 (do_windows_fetch_inferior_registers): Add special handling
4176 for segment registers.
4177 * amd64-windows-nat.c: #include "amd64-tdep.h".
4178 (amd64_windows_segment_register_p): New function.
4179 (_initialize_amd64_windows_nat): Call windows_set_segment_register_p.
4180 * i386-windows-nat.c: #include "i386-tdep.h".
4181 (i386_windows_segment_register_p): New function.
4182 (_initialize_i386_windows_nat): Call windows_set_segment_register_p.
4183
52b3699b
TG
41842012-05-04 Tristan Gingold <gingold@adacore.com>
4185
4186 * printcmd.c (set_command): Emit a warning if the expression is not
4187 an assignment.
4188
94c74239
JB
41892012-05-03 Joel Brobecker <brobecker@adacore.com>
4190
4191 * nto-procfs.c (procfs_find_new_threads, procfs_pid_to_str):
4192 Make static.
4193
fcf57f19
SDJ
41942012-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
4195
4196 * stap-probe.c (stap_is_operator): Change declaration.
4197 (stap_get_opcode): Change return value.
4198 (stap_parse_argument_1): Update calls to `stap_get_opcode' and
4199 `stap_parse_argument_1'.
4200
27d2932e
PA
42012012-05-03 Pedro Alves <pedro@codesourcery.com>
4202
4203 * infrun.c (displaced_step_fixup): Add "displaced:" prefix to
4204 debug log.
4205
a20ee7a4
SCR
42062012-05-03 Siva Chandra Reddy <sivachandra@google.com>
4207
4208 Add two new methods global_block and static_block to gdb.Symtab
4209 objects.
4210 * NEWS (Python scripting): Add entry about the new methods.
4211 * python/py-symtab.c (stpy_global_block): New function which
4212 implements the gdb.Symtab.global_block() method.
4213 (stpy_static_block): New function which implements the
4214 gdb.Symtab.static_block() method.
4215 (symtab_object_methods): Add entries for the two new methods.
4216
943cb756
DE
42172012-05-03 Doug Evans <dje@google.com>
4218
4219 * dwarf2read.c (dw2_find_symbol_file): Don't crash if there are no
4220 files.
4221
f4644a3f
YQ
42222012-05-03 Yao Qi <yao@codesourcery.com>
4223
4224 * i386-tdep.c (i386_fetch_pointer_argument): Remove extra
4225 space.
4226 (i386_process_record): Ditto.
4227
ef61f180
JB
42282012-05-02 Joel Brobecker <brobecker@adacore.com>
4229
4230 * infcall.c (unwind_on_signal_p): Make static.
4231
02f1df11
JB
42322012-05-02 Joel Brobecker <brobecker@adacore.com>
4233
4234 * sol-thread.c (solaris_pid_to_str): Make static.
4235 (_initialize_sol_thread): Add prototype.
4236
39023530
JB
42372012-05-02 Joel Brobecker <brobecker@adacore.com>
4238
4239 * sol-thread.c (procfs_pid_to_str): Delete extern declaration.
4240
c6b0c501
CF
42412012-05-02 Christopher Faylor <me.cygwin2012@cgf.cx>
4242
4243 * MAINTAINERS: Remove myself.
4244
1ef71717
JK
42452012-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4246
4247 Fix --without-auto-load-safe-path for MS-Windows host platform.
4248 * auto-load.c (filename_is_in_dir): Return 1 for DIR_LEN 0.
4249
b31b86a7
EZ
42502012-05-02 Eli Zaretskii <eliz@gnu.org>
4251
4252 * gdb_curses.h: Undefine KEY_EVENT before including curses
4253 headers. Move "#undef MOUSE_MOVED" before any curses header
4254 inclusion.
4255
777532fc
SDJ
42562012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
4257
4258 * features/i386/i386-mmx-linux.c: Regenerate.
4259 * features/rs6000/powerpc-32.c: Likewise.
4260 * features/rs6000/powerpc-32l.c: Likewise.
4261 * features/rs6000/powerpc-403.c: Likewise.
4262 * features/rs6000/powerpc-403gc.c: Likewise.
4263 * features/rs6000/powerpc-405.c: Likewise.
4264 * features/rs6000/powerpc-505.c: Likewise.
4265 * features/rs6000/powerpc-601.c: Likewise.
4266 * features/rs6000/powerpc-602.c: Likewise.
4267 * features/rs6000/powerpc-603.c: Likewise.
4268 * features/rs6000/powerpc-604.c: Likewise.
4269 * features/rs6000/powerpc-64.c: Likewise.
4270 * features/rs6000/powerpc-64l.c: Likewise.
4271 * features/rs6000/powerpc-750.c: Likewise.
4272 * features/rs6000/powerpc-860.c: Likewise.
4273 * features/rs6000/powerpc-e500.c: Likewise.
4274 * features/rs6000/powerpc-e500l.c: Likewise.
4275 * features/rs6000/powerpc-isa205-32l.c: Likewise.
4276 * features/rs6000/powerpc-isa205-64l.c: Likewise.
4277 * features/rs6000/rs6000.c: Likewise.
4278
d71871bc
SDJ
42792012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
4280
4281 * i386-tdep.c (i386_stap_parse_special_token) <s>: Remove unused
4282 variable.
4283 * stap-probe.c (stap_parse_single_operand) <reg_suffix,
4284 reg_ind_suffix, reg_suffix_len, reg_ind_suffix_len>: Likewise.
4285 (stap_parse_argument) <e>: Likewise.
4286 (handle_stap_probe) <byte_order>: Likewise.
4287
fd820528
DE
42882012-04-30 Doug Evans <dje@google.com>
4289
4290 * dwarf2read.c (init_cutu_and_read_dies): Renamed from
4291 init_and_read_dies_worker. All callers updated.
4292 (init_cu_and_read_dies, init_tu_and_read_dies): Delete. All calls
4293 replaced with init_cutu_and_read_dies.
4294 (load_partial_comp_unit): Pass 1 for use_existing_cu.
4295 (find_partial_die): Remove FIXME. Don't free current CU.
4296
ec3f619d 42972012-04-30 Sterling Augustine <saugustine@google.com>
be36f02d
SA
4298
4299 * contrib: New directory.
4300 * contrib/test_pubnames_and_indexes.py: New file.
4301
fceca515
DE
43022012-04-30 Doug Evans <dje@google.com>
4303
4304 * dwarf2read.c (dwarf_decode_macros): New arg section_name.
4305 All callers updated.
4306 (init_cu_die_reader): Verify the section is non-empty.
4307 (dwarf_decode_line_header): Don't dereference section->asection
4308 until we know the section is present.
4309
311fe7e1
SDJ
43102012-04-29 Sergio Durigan Junior <sergiodj@redhat.com>
4311
4312 * tracepoint.c (start_tracing, stop_tracing): Checking for NULL
4313 probes.
4314
5977971a
YQ
43152012-04-29 Yao Qi <yao@codesourcery.com>
4316
4317 * gdb-code-style.el: New hook gdb-markup-hook
4318 and gdb-comment-hook.
4319
dee91e82
DE
43202012-04-28 Doug Evans <dje@google.com>
4321
3019eac3
DE
4322 Initial support for Fission. http://gcc.gnu.org/wiki/DebugFission
4323 * symfile.c (default_symfile_relocate): Use sectp->owner instead of
4324 objfile->obfd.
4325 * symfile.h (dwarf2_debug_sections): New member addr.
4326 * dwarf2expr.c (execute_stack_op): New case DW_OP_GNU_addr_index.
4327 (ctx_no_get_addr_index): New function.
4328 * dwarf2expr.h (dwarf_expr_context_funcs): New member get_addr_index.
4329 (ctx_no_get_addr_index): Declare.
4330 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Update.
4331 * dwarf2loc.c (dwarf_expr_get_addr_index): New function.
4332 (dwarf_expr_ctx_funcs): Update.
4333 (needs_get_addr_index): New function.
4334 (needs_frame_ctx_funcs): Update.
4335 * dwarf2loc.h (dwarf2_read_addr_index): Declare.
4336 * dwarf2read.c: #include "gdbcore.h".
4337 (dwarf2_per_objfile): New members addr, dwo_files.
4338 (dwarf2_elf_names): Add entry for addr.
4339 (struct dwo_section_names): New type.
4340 (dwo_section_names): New static global.
4341 (dwarf2_cu): New members dwo_unit, addr_base, have_addr_base.
4342 (dwarf2_per_cu_data): New member is_debug_types, all boolean uses of
4343 old debug_types_section member updated to use this.
4344 Rename member debug_types_section to info_or_types_section,
4345 all uses updated.
4346 (signatured_type): Rename member type_offset to type_offset_in_tu,
4347 all uses updated. New member type_offset_in_section.
4348 (struct dwo_sections): New type.
4349 (struct dwo_unit): New type.
4350 (struct dwo_file): New type.
4351 (die_reader_specs): New member dwo_file.
4352 (dwarf2_locate_sections): Watch for .debug_addr.
4353 (zlib_decompress_section): Use sectp->owner instead of objfile->obfd.
4354 (dwarf2_read_section): Get bfd of section from bfd's asection,
4355 instead of objfile.
4356 (create_cus_from_index): Initialize the_cu->info_or_types_section.
4357 (create_signatured_type_table_from_index): Initialize
4358 sig_type->info_or_types_section.
4359 (dw2_get_file_names): Statement lists for type units with DWO files
4360 live in the DWO file.
4361 (create_debug_types_hash_table): New function.
4362 (create_all_type_units): Rewrite.
4363 (init_cu_die_reader): New arg dwo_file, all callers updated.
4364 (init_and_read_dies_worker): Get section from
4365 this_cu->info_or_types_section. Set sig_type->type_offset_in_section.
4366 Watch for DW_AT_GNU_dwo_name and if present lookup the file and
4367 continue reading the CU/TU from there.
4368 (init_cutu_and_read_dies_no_follow): New arg dwo_file, all callers
4369 updated. Get section from this_cu->info_or_types_section.
4370 (create_all_comp_units): Initialize this_cu->info_or_types_section.
4371 (skip_one_die): New cases DW_FORM_GNU_addr_index,
4372 DW_FORM_GNU_str_index.
4373 (hash_dwo_file, eq_dwo_file): New functions.
4374 (allocate_dwo_file_hash_table): New function.
4375 (hash_dwo_unit, eq_dwo_unit): New functions.
4376 (allocate_dwo_unit_table): New function.
4377 (dwarf2_locate_dwo_sections): New function.
4378 (struct create_dwo_info_table_data): New type.
4379 (create_debug_info_hash_table_reader): New function.
4380 (create_debug_info_hash_table): New function.
4381 (try_open_dwo_file, open_dwo_file, init_dwo_file): New function.
4382 (lookup_dwo_file): New function.
4383 (lookup_dwo_comp_unit, lookup_dwo_type_unit): New functions.
4384 (free_dwo_file, free_dwo_file_cleanup): New functions.
4385 (free_dwo_file_from_slot, free_dwo_files): New functions.
4386 (dwarf2_get_pc_bounds): Handle DW_FORM_GNU_addr_index.
4387 (dwarf2_record_block_ranges): Ditto.
4388 (read_partial_die): Ditto.
4389 (process_enumeration_scope): Update to use type_offset_in_section.
4390 (read_full_die_1): New function.
4391 (read_full_die): Rewrite.
4392 (read_attribute_value): New cases DW_FORM_GNU_addr_index,
4393 DW_FORM_GNU_str_index.
4394 (read_addr_index_1, read_addr_index): New functions.
4395 (read_addr_index_from_leb128): New function.
4396 (struct dwarf2_read_addr_index_data): New type.
4397 (dwarf2_read_addr_index_reader): New function.
4398 (dwarf2_read_addr_index): New function.
4399 (read_str_index): New function.
4400 (leb128_size): New function.
4401 (dwarf_decode_line_header): Delete arg abfd, all callers updated.
4402 If processing a type unit from a DWO file, get the line section
4403 from the DWO file.
4404 (var_decode_location): Watch for DW_OP_GNU_addr_index.
4405 (dwarf2_const_value_attr): New cases DW_FORM_GNU_addr_index,
4406 DW_FORM_GNU_str_index.
4407 (lookup_die_type): Check whether section offset of type's die is
4408 known before looking it up. Remove assert. Condition can
4409 legimately happen for inter-cu type references.
4410 (dwarf_attr_name): Handle Fission attributes.
4411 (dwarf_form_name): Handle Fission forms.
4412 (dump_die_shallow): New cases DW_FORM_GNU_addr_index,
4413 DW_FORM_GNU_str_index.
4414 (follow_die_sig): Update to use type_offset_in_section.
4415 (decode_locdesc): New case DW_OP_GNU_addr_index.
4416 (skip_form_bytes): New cases DW_FORM_GNU_addr_index,
4417 DW_FORM_GNU_str_index.
4418 (cu_debug_loc_section): New function.
4419 (fill_in_loclist_baton, dwarf2_symbol_mark_computed): Call it.
4420 (dwarf2_per_objfile_free): Unmap .debug_addr section.
4421 Free DWO files if present.
4422 * xcoffread.c (dwarf2_xcoff_names): Add .debug_addr.
4423
dee91e82
DE
4424 Refactor DIE reading.
4425 * dwarf2read.c (dwarf2_per_objfile): Replace members
4426 debug_info_type_hash and debug_types_type_hash with die_type_hash.
4427 (die_reader_specs): New member "die_section". Temporarily make
4428 member "buffer" non-const, pending constifying all info_ptr uses.
4429 (die_reader_func_ftype): New typedef.
4430 (dw2_get_file_names_reader): New function.
4431 (dw2_get_file_names): Rewrite.
4432 (read_and_check_type_unit_head): Rename arg type_offset to
4433 type_offset_in_tu.
4434 (create_all_type_units): Improve debugging message.
4435 Improve dummy type unit check.
4436 (init_cu_die_reader): New arg "section". All callers updated.
4437 (init_and_read_dies_worker): New function.
4438 (init_cu_and_read_dies, init_tu_and_read_dies): New functions.
4439 (init_cutu_and_read_dies_no_follow): New function.
4440 (init_cutu_and_read_dies_simple): New function.
4441 (process_psymtab_comp_unit_reader): New function.
4442 (process_psymtab_comp_unit): Delete args section,
4443 is_debug_types_section. Rewrite. All callers updated.
4444 (process_psymtab_type_unit): Renamed from process_type_comp_unit.
4445 All callers updated. Rewrite.
4446 (load_partial_comp_unit_reader): New function.
4447 (load_partial_comp_unit): Rewrite.
4448 (skip_children): New arg reader. Delete args buffer, cu.
4449 All callers updated.
4450 (skip_one_die): New arg reader. Delete args buffer, cu.
4451 All callers updated.
4452 (locate_pdi_sibling): New arg reader. Delete args buffer, abfd, cu.
4453 All callers updated.
4454 (load_full_comp_unit_reader): New function.
4455 (load_full_comp_unit): Rewrite.
4456 (read_comp_unit): Delete.
4457 (read_die_and_children_1): Delete, contents moved ...
4458 (read_die_and_children): ... here.
4459 (dwarf2_read_abbrevs): New arg abbrev_section. All callers updated.
4460 (load_partial_dies): New arg reader. Delete args abfd, buffer, cu.
4461 All callers updated.
4462 (read_partial_die): New arg reader. Delete args abfd, buffer, cu.
4463 All callers updated.
4464 (find_partial_die): Rewrite load_all_dies support.
4465 (read_attribute_value): New arg reader. Delete args abfd, cu.
4466 All callers updated.
4467 (read_attribute): New arg reader. Delete args abfd, cu.
4468 All callers updated.
4469 (load_full_type_unit): Add assert.
4470 (read_signatured_type_reader): New function.
4471 (read_signatured_type): Rewrite.
4472 (free_stack_comp_unit): Remove call to age_cached_comp_units.
4473 (free_one_cached_comp_unit): Change target_cu arg to target_per_cu.
4474 All callers updated. Set per_cu->cu = NULL after freeing it.
4475 (dwarf2_per_cu_offset_and_type): Renamed from dwarf2_offset_and_type.
4476 (per_cu_offset_and_type_hash): Renamed from offset_and_type_hash.
4477 (per_cu_offset_and_type_eq): Renamed from offset_and_type_eq.
4478 (set_die_type): Update.
4479 (get_die_type_at_offset): Update.
4480 (read_file_scope): Call prepare_one_comp_unit.
4481 (read_type_unit_scope): Ditto.
4482 (prepare_one_comp_unit): Set producer if present.
4483
72d59e0d
SDJ
44842012-04-28 Sergio Durigan Junior <sergiodj@redhat.com>
4485
4486 * probe.c (compile_rx_or_error): Silence ARI warning about missing
4487 gettext function on `error'.
4488
0fefef59
DE
44892012-04-27 Doug Evans <dje@google.com>
4490
4491 * dwarf2read.c (dwarf2_read_index): Don't use index if symbol table
4492 is empty.
4493
28106bc2
SDJ
44942012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
4495 Tom Tromey <tromey@redhat.com>
4496
4497 * breakpoint.c (struct breakpoint_objfile_data)
4498 <longjmp_searched>,<longjmp_probes>,<exception_searched>,
4499 <exception_probes>: New fields.
4500 (free_breakpoint_probes): New function.
4501 (create_longjmp_master_breakpoint): Prefer SystemTap probe over
4502 `_Unwind_DebugHook'.
4503 (create_exception_master_breakpoint): Likewise.
4504 (_initialize_breakpoint): Registering cleanup for SystemTap probes.
4505 * infrun.c: Including necessary header files for handling SystemTap
4506 probes.
4507 (handle_inferior_event): Handling longjmp breakpoint and exceptions
4508 via SystemTap probes.
4509 (check_exception_resume): Remove `func' argument. Handle exception
4510 unwinding breakpoint set via a SystemTap probe.
4511 (insert_exception_resume_from_probe): New function.
4512
55aa24fb
SDJ
45132012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
4514 Tom Tromey <tromey@redhat.com>
4515 Jan Kratochvil <jan.kratochvil@redhat.com>
4516
4517 * Makefile.in (SFILES): Add `probe' and `stap-probe'.
4518 (COMMON_OBS): Likewise.
4519 (HFILES_NO_SRCDIR): Add `probe'.
4520 * NEWS: Mention support for static and SystemTap probes.
4521 * amd64-tdep.c (amd64_init_abi): Initializing proper fields used by
4522 SystemTap probes' arguments parser.
4523 * arm-linux-tdep.c: Including headers needed to perform the parsing
4524 of SystemTap probes' arguments.
4525 (arm_stap_is_single_operand): New function.
4526 (arm_stap_parse_special_token): Likewise.
4527 (arm_linux_init_abi): Initializing proper fields used by SystemTap
4528 probes' arguments parser.
4529 * ax-gdb.c (require_rvalue): Removing static declaration.
4530 (gen_expr): Likewise.
4531 * ax-gdb.h (gen_expr): Declaring function.
4532 (require_rvalue): Likewise.
4533 * breakpoint.c: Include `gdb_regex.h' and `probe.h'.
4534 (bkpt_probe_breakpoint_ops): New variable.
4535 (momentary_breakpoint_from_master): Set the `probe' value.
4536 (add_location_to_breakpoint): Likewise.
4537 (break_command_1): Using proper breakpoint_ops according to the
4538 argument passed by the user in the command line.
4539 (bkpt_probe_insert_location): New function.
4540 (bkpt_probe_remove_location): Likewise.
4541 (bkpt_probe_create_sals_from_address): Likewise.
4542 (bkpt_probe_decode_linespec): Likewise.
4543 (tracepoint_probe_create_sals_from_address): Likewise.
4544 (tracepoint_probe_decode_linespec): Likewise.
4545 (tracepoint_probe_breakpoint_ops): New variable.
4546 (trace_command): Using proper breakpoint_ops according to the
4547 argument passed by the user in the command line.
4548 (initialize_breakpoint_ops): Initializing breakpoint_ops for
4549 static probes on breakpoints and tracepoints.
4550 * breakpoint.h (struct bp_location) <probe>: New field.
4551 * cli-utils.c (skip_spaces_const): New function.
4552 (extract_arg): Likewise.
4553 * cli-utils.h (skip_spaces_const): Likewise.
4554 (extract_arg): Likewise.
4555 * coffread.c (coff_sym_fns): Add `sym_probe_fns' value.
4556 * configure.ac: Append `stap-probe.o' to be generated when ELF
4557 support is present.
4558 * configure: Regenerate.
4559 * dbxread.c (aout_sym_fns): Add `sym_probe_fns' value.
4560 * elfread.c: Include `probe.h' and `arch-utils.h'.
4561 (probe_key): New variable.
4562 (elf_get_probes): New function.
4563 (elf_get_probe_argument_count): Likewise.
4564 (elf_evaluate_probe_argument): Likewise.
4565 (elf_compile_to_ax): Likewise.
4566 (elf_symfile_relocate_probe): Likewise.
4567 (stap_probe_key_free): Likewise.
4568 (elf_probe_fns): New variable.
4569 (elf_sym_fns): Add `sym_probe_fns' value.
4570 (elf_sym_fns_lazy_psyms): Likewise.
4571 (elf_sym_fns_gdb_index): Likewise.
4572 (_initialize_elfread): Initialize objfile cache for static
4573 probes.
4574 * gdb_vecs.h (struct probe): New forward declaration.
4575 (probe_p): New VEC declaration.
4576 * gdbarch.c: Regenerate.
4577 * gdbarch.h: Regenerate.
4578 * gdbarch.sh (stap_integer_prefix): New variable.
4579 (stap_integer_suffix): Likewise.
4580 (stap_register_prefix): Likewise.
4581 (stap_register_suffix): Likewise.
4582 (stap_register_indirection_prefix): Likewise.
4583 (stap_register_indirection_suffix): Likewise.
4584 (stap_gdb_register_prefix): Likewise.
4585 (stap_gdb_register_suffix): Likewise.
4586 (stap_is_single_operand): New function.
4587 (stap_parse_special_token): Likewise.
4588 (struct stap_parse_info): Forward declaration.
4589 * i386-tdep.c: Including headers needed to perform the parsing
4590 of SystemTap probes' arguments.
4591 (i386_stap_is_single_operand): New function.
4592 (i386_stap_parse_special_token): Likewise.
4593 (i386_elf_init_abi): Initializing proper fields used by SystemTap
4594 probes' arguments parser.
4595 * i386-tdep.h (i386_stap_is_single_operand): New function.
4596 (i386_stap_parse_special_token): Likewise.
4597 * machoread.c (macho_sym_fns): Add `sym_probe_fns' value.
4598 * mipsread.c (ecoff_sym_fns): Likewise.
4599 * objfiles.c (objfile_relocate1): Support relocation for static
4600 probes.
4601 * parse.c (prefixify_expression): Remove static declaration.
4602 (initialize_expout): Likewise.
4603 (reallocate_expout): Likewise.
4604 * parser-defs.h (initialize_expout): Declare function.
4605 (reallocate_expout): Likewise.
4606 (prefixify_expression): Likewise.
4607 * ppc-linux-tdep.c: Including headers needed to perform the parsing
4608 of SystemTap probes' arguments.
4609 (ppc_stap_is_single_operand): New function.
4610 (ppc_stap_parse_special_token): Likewise.
4611 (ppc_linux_init_abi): Initializing proper fields used by SystemTap
4612 probes' arguments parser.
4613 * probe.c: New file, for generic statically defined probe support.
4614 * probe.h: Likewise.
4615 * s390-tdep.c: Including headers needed to perform the parsing of
4616 SystemTap probes' arguments.
4617 (s390_stap_is_single_operand): New function.
4618 (s390_gdbarch_init): Initializing proper fields used by SystemTap
4619 probes' arguments parser.
4620 * somread.c (som_sym_fns): Add `sym_probe_fns' value.
4621 * stap-probe.c: New file, for SystemTap probe support.
4622 * stap-probe.h: Likewise.
4623 * symfile.h: Include `gdb_vecs.h'.
4624 (struct sym_probe_fns): New struct.
4625 (struct sym_fns) <sym_probe_fns>: New field.
4626 * symtab.c (init_sal): Initialize `probe' field.
4627 * symtab.h (struct probe): Forward declaration.
4628 (struct symtab_and_line) <probe>: New field.
4629 * tracepoint.c (start_tracing): Adjust semaphore on breakpoints
4630 locations.
4631 (stop_tracing): Likewise.
4632 * xcoffread.c (xcoff_sym_fns): Add `sym_probe_fns' value.
4633
22d2b532
SDJ
46342012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
4635 Tom Tromey <tromey@redhat.com>
4636
4637 * ax-gdb.c (gen_expr): Clean up code to handle internal variables
4638 and to compile agent expressions.
4639 * infrun.c (siginfo_make_value): New argument `ignore'.
4640 (siginfo_funcs): New struct.
4641 (_initialize_infrun): New argument when calling
4642 `create_internalvar_type_lazy'.
4643 * thread.c (thread_id_make_value): New argument `ignore'.
4644 (thread_funcs): New struct.
4645 (_initialize_thread): New argument when calling
4646 `create_internalvar_type_lazy'.
4647 * tracepoint.c (sdata_make_value): New argument `ignore'.
4648 (sdata_funcs): New struct.
4649 (_initialize_tracepoint): New argument when calling
4650 `create_internalvar_type_lazy'.
4651 * value.c (make_value): New struct.
4652 (create_internalvar_type_lazy): New argument `data'.
4653 (compile_internalvar_to_ax): New function.
4654 (value_of_internalvar): Properly handling `make_value' case.
4655 (clear_internalvar): Likewise.
4656 (show_convenience): Adding `TRY_CATCH' block.
4657 * value.h (internalvar_make_value): Delete, replace by...
4658 (struct internalvar_funcs): ... this.
4659 (create_internalvar_type_lazy) <fun>: Delete argument.
4660 (create_internalvar_type_lazy) <funcs>, <data>: New arguments.
4661 (compile_internalvar_to_ax): New function.
4662 * windows-tdep.c (tlb_make_value): New argument `ignore'.
4663 (tlb_funcs): New struct.
4664 (_initialize_windows_tdep): New argument when calling
4665 `create_internalvar_type_lazy'.
4666
91da1414
MW
46672012-04-27 Mark Wielaard <mjw@redhat.com>
4668
4669 * dwarf2read.c (dwarf2_get_pc_bounds): Check DW_AT_high_pc form to
4670 see whether it is an address or a constant offset from DW_AT_low_pc.
4671 (dwarf2_record_block_ranges): Likewise.
4672 (read_partial_die): Likewise.
4673
4ab9d8ec
MW
46742012-04-26 Mark Wielaard <mjw@redhat.com>
4675
4676 * MAINTAINERS (Write After Approval): Add myself to the list.
4677
a0911fd0
MR
46782012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
4679
4680 * proc-utils.h (proc_prettyprint_signalset): New prototype.
4681 (proc_prettyprint_signal): Likewise.
4682 (proc_prettyprint_faultset): Likewise.
4683 (proc_prettyprint_fault): Likewise.
4684 (proc_prettyprint_actionset): Likewise.
4685 (proc_prettyprint_flags): Move to new proc-flags.c section.
4686 (proc_prettyfprint_flags): New prototype.
4687 * procfs.c (proc_nsysarg, proc_sysargs): Add prototypes.
4688 (proc_syscall, proc_cursig): Likewise.
4689 (proc_set_kill_on_last_close): Likewise.
4690 (proc_unset_kill_on_last_close): Likewise.
4691 (proc_set_watchpoint): Make static.
4692 (proc_delete_dead_threads): Likewise.
4693 (procfs_set_watchpoint): Likewise.
4694 (_initialize_procfs): Add prototype.
4695 * proc-events.c: Include proc-utils.h.
4696 (init_syscall_table): Make static.
4697 * proc-api.c (_initialize_proc_api): Add prototype.
4698 * proc-flags.c: Include proc-utils.h.
4699
9009e1ae
MR
47002012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
4701
4702 * configure.ac: Add AC_ARG_PROGRAM.
4703 * configure: Regenerate.
4704
4fae6e18
JK
47052012-04-26 Jan Kratochvil <jan.kratochvil@redhat.com>
4706
4707 Fix DW_AT_lower_bound defaults for DWARF-4+.
4708 * dwarf2read.c (read_subrange_type): Remove initialization of low and
4709 high. New variable low_default_is_valid. Implement DWARF-4+
4710 DW_AT_lower_bound defaults. Print complaint for DW_AT_lower_bound with
4711 no default by the DWARF standard.
4712
14132e89 47132012-04-26 Maciej W. Rozycki <macro@mips.com>
f782ad9b 4714 Maciej W. Rozycki <macro@codesourcery.com>
14132e89
MR
4715
4716 * infrun.c (handle_inferior_event): Move the check for return
4717 trampolines ahead of the check for function trampolines.
4718 * mips-tdep.h (MIPS_S2_REGNUM, MIPS_GP_REGNUM): New macros.
4719 * mips-tdep.c (mips_str_mips16_call_stub): New variable.
4720 (mips_str_mips16_ret_stub): Likewise.
4721 (mips_str_call_fp_stub): Likewise.
4722 (mips_str_call_stub): Likewise.
4723 (mips_str_fn_stub): Likewise.
4724 (mips_str_pic): Likewise.
4725 (mips_in_frame_stub): New function.
4726 (mips_unwind_pc): Return the return address rather than the PC
4727 if the PC of an intermediate frame is inside a call thunk.
4728 (mips_is_stub_suffix): New function.
4729 (mips_is_stub_mode): Likewise.
4730 (mips_get_mips16_fn_stub_pc): Likewise.
4731 (mips_skip_mips16_trampoline_code): Update to handle all the
4732 currently generated stub types. Don't recurse into __fn_stub
4733 thunks. Remove heuristics to handle stubs beyond etext/_etext.
4734 Use cooked register accesses.
4735 (mips_in_return_stub): Reintroduce function.
4736 (mips_skip_trampoline_code): Traverse trampolines recursively.
4737 (mips_gdbarch_init): Handle MIPS16 return trampolines.
4738
518f0db5 47392012-04-26 Joel Brobecker <brobecker@adacore.com>
4740
4741 GDB 7.4.1 released.
4742
3184d3f9
JL
47432012-04-26 Jonathan Larmour <jifl@eCosCentric.com>
4744
4745 * arm-tdep.h (VFP_REGISTER_SIZE): Define.
4746 * features/arm-with-m-vfp-d16.xml: New file. Describes
4747 Cortex-M with VFPv4-sp-d16 FPU register layout.
4748 * features/Makefile (WHICH): Add arm-with-m-vfp-d16.
4749 * features/arm-with-m-vfp-d16.c: New. Generated from above.
4750 * arm-tdep.c: Include arm-with-m-vfp-d16.c.
4751 (arm-register_g_packet_guesses): Add vfp-d16 guess.
4752 (_initialise_arm_tdep): Initialize arm-with-m-vfp-d16 tdesc.
4753
b6201d44
DE
47542012-04-25 Doug Evans <dje@google.com>
4755
4756 * cli/cli-decode.c (print_doc_line): Use stream instead of
4757 current_uiout.
4758
4e2f8df6
SDJ
47592012-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
4760
4761 * features/arm-with-iwmmxt.c: Regenerate.
4762 * features/arm-with-m-fpa-layout.c: Likewise.
4763 * features/arm-with-m.c: Likewise.
4764 * features/arm-with-neon.c: Likewise.
4765 * features/arm-with-vfpv2.c: Likewise.
4766 * features/arm-with-vfpv3.c: Likewise.
4767 * features/mips-dsp-linux.c: Likewise.
4768 * features/mips-linux.c: Likewise.
4769 * features/mips64-dsp-linux.c: Likewise.
4770 * features/mips64-linux.c: Likewise.
4771 * features/s390-linux32.c: Likewise.
4772 * features/s390-linux32v1.c: Likewise.
4773 * features/s390-linux32v2.c: Likewise.
4774 * features/s390-linux64.c: Likewise.
4775 * features/s390-linux64v1.c: Likewise.
4776 * features/s390-linux64v2.c: Likewise.
4777 * features/s390x-linux64.c: Likewise.
4778 * features/s390x-linux64v1.c: Likewise.
4779 * features/s390x-linux64v2.c: Likewise.
4780 * features/tic6x-c62x-linux.c: Likewise.
4781 * features/tic6x-c62x.c: Likewise.
4782 * features/tic6x-c64x-linux.c: Likewise.
4783 * features/tic6x-c64x.c: Likewise.
4784 * features/tic6x-c64xp-linux.c: Likewise.
4785 * features/tic6x-c64xp.c: Likewise.
4786 * target-descriptions.c: Only generate `field_type' and `type'
4787 variables when needed.
4788
2def3e66
JB
47892012-04-25 Fredrik Hederstierna <fredrikh.hederstierna@securitas-direct.com>
4790
4791 * cli/cli-cmds.c (cd_command): Use memmove instead of strcpy.
4792
a766d390
DE
47932012-04-25 Doug Evans <dje@google.com>
4794
4795 Initial pass at Go language support.
4796 * NEWS: Mention Go.
4797 * Makefile.in (SFILES): Add go-exp.y, go-lang.c, go-typeprint.c,
4798 go-valprint.c.
4799 (COMMON_OBS): Add go-lang.o, go-val.print.o, go-typeprint.o.
4800 (YYFILES): Add go-exp.c.
4801 (YYOBJ): Add go-exp.o.
4802 (local-maintainer-clean): Delete go-exp.c.
4803 * defs.h (enum language): Add language_go.
4804 * dwarf2read.c: #include "go-lang.h".
4805 (fixup_go_packaging): New function.
4806 (process_full_comp_unit): Call it when processing Go CUs.
4807 (dwarf2_physname): Add Go support.
4808 (read_file_scope): Handle missing language spec for GNU Go.
4809 (set_cu_language): Handle DW_LANG_Go.
4810 * go-exp.y: New file.
4811 * go-lang.h: New file.
4812 * go-lang.c: New file.
4813 * go-typeprint.c: New file.
4814 * go-valprint.c: New file.
4815 * symtab.c: #include "go-lang.h".
4816 (symbol_set_language): Handle language_go.
4817 (symbol_find_demangled_name, symbol_set_names): Ditto.
4818 (symbol_natural_name, demangle_for_lookup, find_main_name): Ditto.
4819
4e2af517
JM
48202012-04-24 Jim Meyering <meyering@redhat.com>
4821
4822 avoid a few strncpy-induced buffer overruns
4823 * procfs.c (procfs_make_note_section): Be sure to NUL-terminate
4824 fname and psargs before trying to concatenate.
4825 * tui/tui-stack.c (tui_get_function_from_frame): NUL-terminate
4826 "name" before applying strchr.
4827
b77b7f52
SCR
48282012-04-25 Siva Chandra Reddy <sivachandra@google.com>
4829
4830 * CONTRIBUTE: Use unified diff instead of context diff when
4831 generating patches.
4832
6321c22a
MR
48332012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
4834
4835 * mips-tdep.c (mips_about_to_return): Remove dead MIPS16 support
4836 code. Handle JR.HB correctly.
4837
742c84f6
MR
48382012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
4839
4840 * mips-tdep.c
4841 (is_mips16_addr, unmake_mips16_addr, make_mips16_addr): Group
4842 with the other MIPS16 helpers.
4843
7fc7e0c3
SDJ
48442012-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
4845
4846 * observer.sh: Conditionally declare `args', thus cleaning up
4847 unused instances of this variable.
4848
20388dd6
YQ
48492012-04-24 Yao Qi <yao@codesourcery.com>
4850
4851 Revert this patch to allow breakpoint always-inserted
4852 in record target.
4853 2011-12-05 Pedro Alves <pedro@codesourcery.com>
f782ad9b
AS
4854 * breakpoint.c: Include record.h.
4855 (breakpoints_always_inserted_mode): Return false when the record
4856 target is in use.
20388dd6
YQ
4857
4858 * breakpoint.c (iterate_over_bp_locations): New.
4859 * breakpoint.h: Declare.
4860 New typedef walk_bp_location_callback.
4861 * record.c (record_open): Call record_init_record_breakpoints.
4862 (record_sync_record_breakpoints): New.
4863 (record_init_record_breakpoints): New.
4864 * NEWS: Mention supporting breakpoint always-inserted mode in
4865 record target.
4866
4734f50e
MK
48672012-04-24 Marc Khouzam <marc.khouzam@ericsson.com>
4868
4869 * mi/mi-main.c (mi_cmd_execute): Choose a live thread not just
4870 any thread.
4871
c326b90e
YQ
48722012-04-24 Yao Qi <yao@codesourcery.com>
4873
4874 * breakpoint.c (ep_is_catchpoint): Renamed to ...
4875 (is_catchpoint): ... it.
4876 (print_one_breakpoint_location): Caller update.
4877 * breakpoint.h: Update declaration.
4878
d8fb5a1e
DM
48792012-04-23 David S. Miller <davem@davemloft.net>
4880
4881 * configure.tgt (sparc-*-linux*): Set build_gdbserver to yes.
4882
34431a2a
TT
48832012-04-23 Tom Tromey <tromey@redhat.com>
4884
4885 * buildsym.c (add_free_pendings): Remove.
4886 * buildsym.h (add_free_pendings): Remove.
4887
4568ecf9
DE
48882012-04-23 Doug Evans <dje@google.com>
4889
4890 * dwarf2read.c (partial_die_full_name): Record DW_FORM_ref_addr in
4891 attr.u.unsnd instead of attr.u.addr.
4892 (read_attribute_value) Ditto for cases DW_FORM_ref_addr,
4893 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4, DW_FORM_reg8,
4894 DW_FORM_ref_udata.
4895 (dump_die_shallow): Update cases DW_FORM_ref_addr,
4896 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4. Add cases DW_FORM_ref8,
4897 DW_FORM_ref_udata.
4898 (dwarf2_get_ref_die_offset): Use DW_UNSND for reference attributes.
4899
dca9aa3a
MR
49002012-04-23 Maciej W. Rozycki <macro@codesourcery.com>
4901
4902 * mips-tdep.c (mips_n32n64_return_value): Fix coding style.
4903 (mips_o32_return_value): Likewise.
4904 (mips_o64_return_value): Likewise.
4905
c8ea1972
PH
49062012-04-21 Paul Hilfinger <hilfinger@adacore.com>
4907
4908 * ada-lang.c (ada_evaluate_subexp): Add cases for
f782ad9b
AS
4909 TYPE_CODE_INTERNAL_FUNCTION and for TYPE_GNU_IFUNC, following
4910 their treatment in eval.c.
c8ea1972 4911
8d1b3521
DM
49122012-04-21 David S. Miller <davem@davemloft.net>
4913
4914 * sparc-tdep.c (X_DISP10): Define.
4915 (sparc_analyze_control_transfer): Handle compare-and-branch.
4916
03145bf4
JL
49172012-04-21 Jonathan Larmour <jifl@eCosCentric.com>
4918
4919 * features/Makefile (WHICH): Add arm-with-m and arm-with-m-fpa-layout.
4920 * arm-tdep.c (arm_register_g_packet_guesses): Fix comment.
4921
004159a2 49222012-04-20 Nigel Stephens <nigel@mips.com>
f782ad9b 4923 Maciej W. Rozycki <macro@codesourcery.com>
004159a2
MR
4924
4925 * mips-tdep.c (mips_float_register_p): New function.
4926 (mips_convert_register_float_case_p): Use mips_float_register_p.
4927 (mips_register_type): Likewise.
4928 (mips_print_register): Likewise.
4929 (print_gp_register_row): Likewise.
4930 (mips_print_registers_info): Likewise.
4931
7f0e6aae
MR
49322012-04-20 Shun-Yen Lu <dark.asparagus@gmail.com>
4933
4934 * mips-tdep.c (mips_elf_make_msymbol_special): Fix identification
4935 of mips16 symbols.
4936
bc17beea
AP
49372012-04-20 Andrew Pinski <apinski@cavium.com>
4938
4939 * MAINTAINERS (Write After Approval): Add myself to the list.
4940
1730a5a5
SDJ
49412012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
4942
4943 * MAINTAINERS: Update my e-mail address.
4944
38ea300a
PA
49452012-04-20 Pedro Alves <palves@redhat.com>
4946
4947 * acx_configure_dir.m4 (ACX_CONFIGURE_DIR): Handle absolute
4948 $srcdir.
4949 * configure: Regenerate.
4950
111dfaae
SDJ
49512012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
4952
4953 * cp-support.h: Include `gdb_vecs.h'. Delete `const_char_ptr' VEC
4954 declaration.
4955 * gdb_vecs.h: Declare `const_char_ptr' VEC.
4956
4fb2c64a
JK
49572012-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
4958
4959 Fix compilation compatibility with python-2.4
4960 * python/py-type.c (convert_field): Cast ADDRSTRING for
4961 PyObject_SetAttrString as non-const. New comment.
4962
6328eb38
TT
49632012-04-19 Tom Tromey <tromey@redhat.com>
4964
4965 * top.c (quit_target): Use all_cleanups.
4966 * main.c (captured_command_loop): Use all_cleanups.
4967 * exceptions.c (throw_exception): Use all_cleanups.
4968
c971b7fa
PA
49692012-04-19 Pedro Alves <palves@redhat.com>
4970
4971 * Makefile.in (GNULIB_BUILDDIR): New.
4972 (LIBGNU, INCGNU, GNULIB_H): Adjust.
4973 (SUBDIRS): Add $(GNULIB_BUILDDIR).
4974 (CLEANDIRS). Remove gnulib/import.
4975 (REQUIRED_SUBDIRS): Replace gnulib/import with $(GNULIB_BUILDDIR).
4976 (all-lib): Ditto.
4977 (distclean): Remove the $(GNULIB_BUILDDIR) directory.
4978 (gnulib/import/Makefile): Replace gnulib/import with
4979 $(GNULIB_BUILDDIR). Set CONFIG_FILES to just Makefile.
4980 (ACLOCAL_AMFLAGS): Remove '-I gnulib/import/m4'.
4981 (aclocal_m4_deps): Remove the gnulib dependencies. Add
4982 acx_configure_dir.m4.
4983 * acinclude.m4: Include acx_configure_dir.m4.
4984 * acx_configure_dir.m4: New file.
4985 * aclocal.m4: Regenerate.
a09130f9
PA
4986 * configure.ac: Remove gl_EARLY, gl_INIT and AM_INIT_AUTOMAKE
4987 calls. Configure gnulib using ACX_CONFIGURE_DIR.
4988 (GNULIB): New variable.
4989 (GNULIB_STDINT_H): Adjust.
4990 (AC_OUTPUT): Don't output gnulib/Makefile.
4991 * gdb/defs.h: Include build-gnulib/config.h.
4992 * aclocal.m4: Regenerate.
4993 * config.in: Regenerate.
4994 * configure: Regenerate.
4995
4996 * gnulib/Makefile.in: New file.
4997 * gnulib/configure.ac: New file.
4998 * gnulib/aclocal.m4: New file.
4999 * gnulib/config.in: New file.
5000 * gnulib/configure: New file.
c971b7fa
PA
5001 * gnulib/: Re-run gnulib-tool to adjust.
5002
b10faa68
DE
50032012-04-19 Doug Evans <dje@google.com>
5004
5005 * cleanups.h (struct cleanup): Move to cleanups.c.
5006 (make_cleanup_dtor_ftype): New typedef.
5007 (make_cleanup_dtor): Use it.
5008 (ALL_CLEANUPS): Replace with ...
5009 (all_cleanups): ... this. Declare. All uses updated.
5010 * cleanups.c: #include "gdb_assert.h".
5011 (sentinel_cleanup): New static global.
5012 (SENTINEL_CLEANUP): Define.
5013 (cleanup_chain, final_cleanup_chain): Initialize to SENTINEL_CLEANUP.
5014 (make_my_cleanup2): Assert result is non-NULL.
5015 (all_cleanups): New function.
5016 (save_my_cleanups): Initialize new chain to SENTINEL_CLEANUP instead
5017 of NULL.
5018
d8c267cc
PA
50192012-04-19 Pedro Alves <palves@redhat.com>
5020
5021 * Makefile.in (HFILES_NO_SRCDIR): Remove gnulib/wchar.in.h.
5022 Adjust paths to gnulib imported files.
5023
809277f8
PA
50242012-04-19 Pedro Alves <palves@redhat.com>
5025
5026 * gnulib/: Move whole directory ...
5027 * gnulib/import/: ... here, and re-rerun gnulib-tool to adjust.
5028 * Makefile.in (LIBGNU, INCGNU, GNULIB_H, CLEANDIRS)
5029 (REQUIRED_SUBDIRS, all-lib, gnulib/Makefile, ACLOCAL_AMFLAGS)
5030 (aclocal_m4_deps): Adjust.
5031 * aclocal.m4: Regenerate.
5032 * configure: Regenerate.
5033 * configure.ac: Adjust AC_OUTPUT output.
5034
aad9eab9
YQ
50352012-04-19 Yao Qi <yao@codesourcery.com>
5036
5037 * Makefile.in (SFILES): Add common/vec.c and remove vec.c.
5038 (vec.o): New rule.
5039 * vec.c: Move it ...
5040 * common/vec.c: ... here.
5041 * vec.h: Move it ...
5042 * common/vec.h: ... here.
5043
48fe4669
YQ
50442012-04-19 Yao Qi <yao@codesourcery.com>
5045
5046 * gdb-code-style.el: New.
5047
770d76d7
PA
50482012-04-18 Pedro Alves <palves@redhat.com>
5049
5050 Update gnulib from latest git.
5051 (639ea5ae15e39fe48d43e04864b2997301e4b969)
5052
5053 * gnulib/Makefile.am: Update.
5054 * gnulib/dummy.c: Update.
5055 * gnulib/extra/arg-nonnull.h: Update.
5056 * gnulib/extra/c++defs.h: Update.
5057 * gnulib/extra/update-copyright: Update.
5058 * gnulib/extra/warn-on-use.h: Update.
5059 * gnulib/inttypes.in.h: Update.
5060 * gnulib/m4/00gnulib.m4: Update.
5061 * gnulib/m4/extensions.m4: Update.
5062 * gnulib/m4/gnulib-cache.m4: Update.
5063 * gnulib/m4/gnulib-common.m4: Update.
5064 * gnulib/m4/gnulib-comp.m4: Update.
5065 * gnulib/m4/gnulib-tool.m4: Update.
5066 * gnulib/m4/include_next.m4: Update.
5067 * gnulib/m4/inttypes-pri.m4: Update.
5068 * gnulib/m4/inttypes.m4: Update.
5069 * gnulib/m4/longlong.m4: Update.
5070 * gnulib/m4/memchr.m4: Update.
5071 * gnulib/m4/memmem.m4: Update.
5072 * gnulib/m4/mmap-anon.m4: Update.
5073 * gnulib/m4/multiarch.m4: Update.
5074 * gnulib/m4/onceonly.m4: Update.
5075 * gnulib/m4/stddef_h.m4: Update.
5076 * gnulib/m4/stdint.m4: Update.
5077 * gnulib/m4/string_h.m4: Update.
5078 * gnulib/m4/warn-on-use.m4: Update.
5079 * gnulib/m4/wchar_h.m4: Update.
5080 * gnulib/m4/wchar_t.m4: Update.
5081 * gnulib/m4/wint_t.m4: Update.
5082 * gnulib/memchr.c: Update.
5083 * gnulib/memmem.c: Update.
5084 * gnulib/stddef.in.h: Update.
5085 * gnulib/stdint.in.h: Update.
5086 * gnulib/str-two-way.h: Update.
5087 * gnulib/string.in.h: Update.
5088 * gnulib/wchar.in.h: Update.
5089
5090 * gnulib/extra/arg-nonnull.h: Delete.
5091 * gnulib/extra/c++defs.h: Delete.
5092 * gnulib/extra/warn-on-use.h: Delete.
5093 * gnulib/m4/wchar_h.m4: Delete.
5094 * gnulib/m4/wint_t.m4: Delete.
5095 * gnulib/wchar.in.h: Delete.
5096
5097 * gnulib/extra/snippets/arg-nonnull.h: New.
5098 * gnulib/extra/snippets/c++defs.h: New.
5099 * gnulib/extra/snippets/warn-on-use.h: New.
5100
5101 * aclocal.m4: Regenerate.
5102 * config.in: Regenerate.
5103 * configure: Regenerate.
5104 * gnulib/Makefile.in: Regenerate.
5105
174e088e
PA
51062012-04-18 Pedro Alves <palves@redhat.com>
5107
5108 Reimport the update-copyright module from gnulib
5109 (250b80067c1e1d8faa0c42fb572f721975b929c5).
5110
5111 * configure: Regenerate.
5112 * gnulib/Makefile.am: Update.
5113 * gnulib/Makefile.in: Regenerate.
5114 * gnulib/extra/update-copyright: Update.
5115 * gnulib/m4/gnulib-cache.m4: Update.
5116 * gnulib/m4/gnulib-comp.m4: Update.
5117
7f533142
JB
51182012-04-18 Tristan Gingold <gingold@adacore.com>
5119
5120 * configure.ac (aix): Put -lpthread into libs.
5121 * configure: Regenerate.
5122
001822aa
TT
51232012-04-18 Tom Tromey <tromey@redhat.com>
5124
5125 * linespec.c (convert_linespec_to_sals): Don't use
5126 SYMBOL_OBJ_SECTION.
5127 (compare_msymbols): Arguments are minsym_and_objfile, not
5128 minimal_symbol*. Don't use SYMBOL_OBJ_SECTION.
5129
db026a31
PA
51302012-04-18 Pedro Alves <palves@redhat.com>
5131
5132 Revert gnulib/ part of:
5133 2011-01-01 Joel Brobecker <brobecker@adacore.com>
5134 Copyright year update in most files (performed by copyright.sh).
5135
12df843f
JK
51362012-04-18 Jan Kratochvil <jan.kratochvil@redhat.com>
5137
5138 Fix 64-bit constants on 32-bit hosts.
5139 * dwarf2read.c (read_unsigned_leb128): Change declaration return type
5140 from unsigned long to ULONGEST.
5141 (read_signed_leb128): Change declaration return type from long to
5142 LONGEST.
5143 (dwarf2_const_value_attr): Change declaration parameter value from long
5144 to LONGEST.
5145 (dwarf2_compute_name): Change variable value from long to LONGEST.
5146 (read_unsigned_leb128): Change return type, variable result and some
5147 casts from unsigned long to ULONGEST.
5148 (read_signed_leb128): Change return type, variable result and some
5149 casts from long to LONGEST.
5150 (dwarf2_const_value_data, dwarf2_const_value_attr): Change parameter
5151 value from long to LONGEST.
5152 (dwarf2_const_value): Change variable value from long to LONGEST.
5153 * symmisc.c (print_symbol): Change SYMBOL_VALUE format strings to use
5154 plongest and hex_string.
5155 * symtab.h (struct general_symbol_info): Change ivalue from long to
5156 LONGEST, remove the comment.
5157 * tracepoint.c (validate_actionline, collect_symbol, scope_info):
5158 Change SYMBOL_VALUE format strings to use plongest and hex_string.
5159
14e75d8e
JK
51602012-04-18 Siddhesh Poyarekar <siddhesh@redhat.com>
5161
5162 PR symtab/7259:
5163 * ada-exp.y (convert_char_literal): Use TYPE_FIELD_ENUMVAL.
5164 * ada-lang.c (ada_discrete_type_high_bound)
ac4ea3c2
JK
5165 (ada_discrete_type_low_bound): Fix function comment. Use
5166 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
14e75d8e
JK
5167 (ada_identical_enum_types_p): Use TYPE_FIELD_ENUMVAL.
5168 (pos_atr, value_val_atr): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
5169 * ada-typeprint.c (print_enum_type): Change variable lastval to LONGEST.
5170 Use TYPE_FIELD_ENUMVAL.
5171 * ada-valprint.c (print_optional_low_bound, ada_print_scalar)
5172 (ada_val_print_1): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
5173 * c-typeprint.c (c_type_print_base): Move variable lastval to inner
5174 block, change it to LONGEST. Use TYPE_FIELD_ENUMVAL for
5175 TYPE_CODE_ENUM.
5176 * coffread.c (coff_read_enum_type): Use SET_FIELD_ENUMVAL.
5177 * dwarf2read.c (process_enumeration_scope): Likewise.
5178 * gdb-gdb.py (TypeFlagsPrinter): Use field.enumval instead of
5179 field.bitpos.
5180 (class StructMainTypePrettyPrinter): Support also
5181 FIELD_LOC_KIND_ENUMVAL.
5182 * gdbtypes.c (get_discrete_bounds): Use TYPE_FIELD_ENUMVAL for
5183 TYPE_CODE_ENUM.
5184 (recursive_dump_type): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
5185 (copy_type_recursive): Support also FIELD_LOC_KIND_ENUMVAL.
5186 * gdbtypes.h (enum field_loc_kind): New FIELD_LOC_KIND_ENUMVAL.
5187 (struct main_type.flds_bnds.fields.loc): Adjust bitpos comment. New
5188 field enumval.
5189 (struct main_type.flds_bnds.bields): Adjust loc_kind and bitsize to
5190 accommodate enumval.
5191 (struct call_site): Adjust loc_kind to accommodate enumval.
5192 (FIELD_ENUMVAL, FIELD_ENUMVAL_LVAL, SET_FIELD_ENUMVAL)
5193 (TYPE_FIELD_ENUMVAL): New macros.
5194 * m2-typeprint.c (m2_enum): Use TYPE_FIELD_ENUMVAL.
5195 * mdebugread.c (parse_symbol): Use TYPE_FIELD_ENUMVAL for
5196 TYPE_CODE_ENUM.
5197 * p-typeprint.c (pascal_type_print_base): Likewise.
5198 * python/lib/gdb/printing.py (class FlagEnumerationPrinter): Use
5199 enumval.
5200 * python/lib/gdb/types.py (make_enum_dict): Likewise.
5201 * python/py-type.c (convert_field): New variable addrstring. Use
5202 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
5203 (check_types_equal): Support also FIELD_LOC_KIND_ENUMVAL.
5204 * stabsread.c (read_enum_type): Use SET_FIELD_ENUMVAL.
5205 * typepint.c (print_type_scalar): Use TYPE_FIELD_ENUMVAL for
5206 TYPE_CODE_ENUM.
5207 * valprint.c (generic_val_print): Likewise.
5208
380bca97
DE
52092012-04-17 Doug Evans <dje@google.com>
5210
dcc07052
DE
5211 * dwarf2read.c (lookup_signatured_type): Return NULL instead of 0.
5212
380bca97
DE
5213 * dwarf2read.c: Whitespace fixes.
5214 (lookup_signatured_type): Tweak comment.
5215 (get_die_type_at_offset): Fix comment.
5216
ec92004f
JB
52172012-04-17 Joel Brobecker <brobecker@adacore.com>
5218
5219 * xcoffread.c (xcoff_secnum_to_sections): New function.
5220 (secnum_to_section, secnum_to_bfd_section): Reimplement
5221 using xcoff_secnum_to_sections. Rename "secnum" parameter
5222 into "n_scnum".
5223 (RECORD_MINIMAL_SYMBOL): Delete.
5224 (record_minimal_symbol): New function.
5225 (scan_xcoff_symtab): Replace uses of RECORD_MINIMAL_SYMBOL
5226 by call to record_minimal_symbol and set misc_func_recorded
5227 to 1. Set last_csect_sec to the XCOFF section index instead
5228 of GDB's section_offset index. Update calls to
5229 prim_record_minimal_symbol_and_info to pass the BFD section
5230 as well.
5231
40301fb7
JB
52322012-04-17 Joel Brobecker <brobecker@adacore.com>
5233
5234 * xcoffread.c (read_xcoff_symtab): Delete variables
5235 last_csect_val and last_csect_sec and associated code.
5236
e0088cfd
DE
52372012-04-17 Doug Evans <dje@google.com>
5238
58d5e2c3
DE
5239 * cleanups.c (make_my_cleanup,make_my_cleanup2): Make static.
5240 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
5241 * cleanups.h (make_my_cleanup,make_my_cleanup2): Delete
5242 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Delete.
5243
c27f5738
DE
5244 * cleanups.h: New file.
5245 * cleanups.c: New file.
5246 * Makefile.in (SFILES): Add cleanups.c.
5247 (HFILES_NO_SRCDIR): Add cleanups.h.
5248 (COMMON_OBS): Add cleanups.o.
5249 * defs.h (struct cleanup): Moved to cleanups.h.
5250 (do_cleanups,do_final_cleanups): Ditto.
5251 (discard_cleanups,discard_final_cleanups): Ditto
5252 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
5253 (save_cleanups,save_final_cleanups): Ditto.
5254 (restore_cleanups,restore_final_cleanups): Ditto.
5255 (null_cleanup): Ditto.
5256 (make_my_cleanup,make_my_cleanup2): Ditto.
5257 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
5258 * utils.c (cleanup_chain,final_cleanup_chain): Moved to cleanups.c.
5259 (do_cleanups,do_final_cleanups): Ditto.
5260 (discard_cleanups,discard_final_cleanups): Ditto
5261 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
5262 (save_cleanups,save_final_cleanups): Ditto.
5263 (restore_cleanups,restore_final_cleanups): Ditto.
5264 (null_cleanup): Ditto.
5265 (make_my_cleanup,make_my_cleanup2): Ditto.
5266 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
5267
e0088cfd
DE
5268 * utils.c (make_cleanup_freeargv): Use make_cleanup instead of
5269 make_my_cleanup.
5270 (make_cleanup_dyn_string_delete): Ditto.
5271 (make_cleanup_ui_file_delete): Ditto.
5272 (make_cleanup_ui_out_redirect_pop): Ditto.
5273 (make_cleanup_free_section_addr_info): Ditto.
5274 (make_cleanup_restore_integer): Ditto.
5275 (make_cleanup_unpush_target): Ditto.
5276 (make_cleanup_value_free_to_mark): Ditto.
5277 (make_cleanup_value_free): Ditto.
5278 (make_cleanup_free_so): Ditto.
5279
4dc84fd1
JK
52802012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
5281
5282 New option "set debug auto-load".
5283 * NEWS: New commands "set debug auto-load" and "show debug auto-load".
5284 * auto-load.c (debug_auto_load, show_debug_auto_load: New.
5285 (auto_load_safe_path_vec_update)
5286 (filename_is_in_auto_load_safe_path_vec): Call fprintf_unfiltered
5287 if DEBUG_AUTO_LOAD.
5288 (file_is_auto_load_safe): New parameters debug_fmt and ....
5289 Call fprintf_unfiltered if DEBUG_AUTO_LOAD.
5290 (source_gdb_script_for_objfile): Extend the file_is_auto_load_safe
5291 caller by explanatory string.
5292 (_initialize_auto_load): Register "set debug auto-load".
5293 * auto-load.h (file_is_auto_load_safe): New parameters debug_fmt
5294 and ....
5295 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
5296 (try_thread_db_load_from_dir): Extend the file_is_auto_load_safe caller
5297 by explanatory string.
5298 * main.c (captured_main): Likewise.
5299 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
5300 (source_section_scripts): Likewise.
5301
bccbefd2
JK
53022012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
5303
5304 New option "set auto-load safe-path".
5305 * NEWS: New commands "set auto-load safe-path"
5306 and "show auto-load safe-path".
5307 * auto-load.c: Include gdb_vecs.h, readline/tilde.h and completer.h.
5308 (auto_load_safe_path, auto_load_safe_path_vec)
5309 (auto_load_safe_path_vec_update, set_auto_load_safe_path)
5310 (show_auto_load_safe_path, add_auto_load_safe_path, filename_is_in_dir)
5311 (filename_is_in_auto_load_safe_path_vec, file_is_auto_load_safe): New.
5312 (source_gdb_script_for_objfile): New variable is_safe. Call
5313 file_is_auto_load_safe. Return if it is not.
5314 (struct loaded_script): New field loaded.
5315 (maybe_add_script): Add parameter loaded. Initialize SLOT with it.
5316 (print_script): Use LOADED indicator instead of FULL_PATH. Change
5317 output "Missing" to "No".
5318 (_initialize_auto_load): New variable cmd. Initialize
5319 auto_load_safe_path. Register "set auto-load safe-path",
5320 "show auto-load safe-path" and "add-auto-load-safe-path".
5321 * auto-load.h (maybe_add_script): Add parameter loaded.
5322 (file_is_auto_load_safe): New declaration.
5323 * config.in: Regenerate.
5324 * configure: Regenerate.
5325 * configure.ac: New parameters --with-auto-load-safe-path
5326 and --without-auto-load-safe-path.
5327 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
5328 (try_thread_db_load_from_dir): Check file_is_auto_load_safe first.
5329 * main.c (captured_main): Check file_is_auto_load_safe for
5330 LOCAL_GDBINIT.
5331 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile): New
5332 variable is_safe. Call file_is_auto_load_safe. Return if it is not.
5333 (source_section_scripts): Call file_is_auto_load_safe. Return if it is
5334 not.
5335
bf88dd68
JK
53362012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
5337
5338 auto-load: Implementation.
5339 * NEWS: New descriptions for "info auto-load",
5340 "info auto-load gdb-scripts", "info auto-load python-scripts",
5341 "info auto-load local-gdbinit" and "info auto-load libthread-db".
5342 Deprecate "info auto-load-scripts", "set auto-load-scripts on|off"
5343 and "show auto-load-scripts". New description for "set auto-load",
5344 "show auto-load", "set auto-load gdb-scripts",
5345 "show auto-load gdb-scripts", "set auto-load python-scripts",
5346 "show auto-load python-scripts", "set auto-load local-gdbinit",
5347 "show auto-load local-gdbinit", "set auto-load libthread-db" and
5348 "show auto-load libthread-db".
5349 * auto-load.c: Remove include python/python-internal.h. Add includes
5350 exceptions.h, cli/cli-script.h, gdbcmd.h, cli/cli-decode.h and
5351 cli/cli-setshow.h.
5352 (GDB_AUTO_FILE_NAME, source_gdb_script_for_objfile)
5353 (auto_load_gdb_scripts, show_auto_load_gdb_scripts): New.
5354 (gdbpy_global_auto_load): Rename to ...
5355 (global_auto_load): ... here.
5356 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
5357 (auto_load_local_gdbinit_loaded, show_auto_load_local_gdbinit)
5358 (script_language_gdb, source_gdb_script_for_objfile): New.
5359 (struct loaded_script): New field language.
5360 (hash_loaded_script_entry, eq_loaded_script_entry): Calculate also
5361 LANGUAGE.
5362 (maybe_add_script): Add parameter language. Drop redundant
5363 entry.full_path initialization. Initialize entry.language and
5364 (*slot)->language.
5365 (auto_load_objfile_script): Change parameter suffix to language.
5366 Remove the call of maybe_add_script.
5367 Call language->source_script_for_objfile.
5368 (load_auto_scripts_for_objfile, struct collect_matching_scripts_data):
5369 New.
5370 (collect_matching_scripts): Adjust it for
5371 struct collect_matching_scripts_data.
5372 (auto_load_info_scripts_pattern_nl): New variable.
5373 (info_auto_load_scripts): Rename to ...
5374 (auto_load_info_scripts): ... here, add parameter language. Adjust it
5375 for struct collect_matching_scripts_data.
5376 (info_auto_load_gdb_scripts, info_auto_load_local_gdbinit)
5377 (set_auto_load_cmd, auto_load_set_cmdlist_get, show_auto_load_cmd)
5378 (auto_load_show_cmdlist_get, info_auto_load_cmd)
5379 (auto_load_info_cmdlist_get): New.
5380 (_initialize_auto_load): Move add_info of "auto-load-scripts" to
5381 python/py-auto-load.c. New installment for "set auto-load gdb-scripts",
5382 "info auto-load gdb-scripts", "set auto-load local-gdbinit" and
5383 "info auto-load local-gdbinit".
5384 * auto-load.h (struct script_language): New.
5385 (gdbpy_global_auto_load): Rename to ...
5386 (global_auto_load): ... here.
5387 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
5388 (auto_load_local_gdbinit_loaded): New declarations.
5389 (maybe_add_script): New parameter language.
5390 (auto_load_objfile_script): Change parameter suffix to language.
5391 (load_auto_scripts_for_objfile, auto_load_info_scripts_pattern_nl)
5392 (auto_load_info_scripts, auto_load_set_cmdlist_get)
5393 (auto_load_show_cmdlist_get, auto_load_info_cmdlist_get): New
5394 declarations.
5395 * linux-thread-db.c: Include auto-load.h and ctype.h.
5396 (auto_load_thread_db, show_auto_load_thread_db): New.
5397 (struct thread_db_info): New field filename.
5398 (delete_thread_db_info): Call xfree for FILENAME.
5399 (try_thread_db_load): Initialize FILENAME.
5400 (try_thread_db_load_from_pdir, try_thread_db_load_from_dir): Return
5401 if !AUTO_LOAD_THREAD_DB.
5402 (info_auto_load_libthread_db_compare, info_auto_load_libthread_db): New.
5403 (_initialize_thread_db): Install auto_load_thread_db
5404 as "set auto-load libthread-db" and install info_auto_load_libthread_db
5405 as "info auto-load libthread-db".
5406 * main.c (captured_main): Rename gdbpy_global_auto_load to
5407 global_auto_load. Initialize AUTO_LOAD_LOCAL_GDBINIT_PATHNAME and
5408 AUTO_LOAD_LOCAL_GDBINIT_LOADED.
5409 (print_gdb_help): Extend the help for 'local init file'.
5410 * python/py-auto-load.c: Remove a comment about gdb scripts extension.
5411 (GDBPY_AUTO_SECTION_NAME): Extend the comment it is Python specific.
5412 (auto_load_scripts): Rename to ...
5413 (auto_load_python_scripts): ... here, update the comment.
5414 (gdbpy_load_auto_script_for_objfile): New declaration.
5415 (show_auto_load_python_scripts, script_language_python)
5416 (gdbpy_load_auto_script_for_objfile): New.
5417 (source_section_scripts): Refactor the code.
5418 (load_auto_scripts_for_objfile): Rename to ...
5419 (gdbpy_load_auto_scripts_for_objfile): ... here, update the
5420 auto_load_objfile_script caller, drop GDBPY_GLOBAL_AUTO_LOAD checking.
5421 (info_auto_load_python_scripts): New.
5422 (gdbpy_initialize_auto_load): New variables cmd and cmd_name.
5423 Rename "set auto-load-scripts" to "set auto-load python-scripts".
5424 Register "set auto-load-scripts" as its deprecated alias. Register
5425 "info auto-load python-scripts". Register "info auto-load-scripts" as
5426 its deprecated alias.
5427 (load_auto_scripts_for_objfile): Rename to ...
5428 (gdbpy_load_auto_scripts_for_objfile): ... here.
5429 * python/python.h (load_auto_scripts_for_objfile): Rename to ...
5430 (gdbpy_load_auto_scripts_for_objfile): ... here.
5431
e2207b9a
JK
54322012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
5433
5434 auto-load: Move files.
5435 * Makefile.in (SFILES): Add auto-load.c.
5436 (HFILES_NO_SRCDIR): Add auto-load.h.
5437 (COMMON_OBS): Add auto-load.o.
5438 (distclean): Change .gdbinit for gdb-gdb.gdb.
5439 * auto-load.c: New file, with parts from python/py-auto-load.c.
5440 * auto-load.h: New file, with parts from python/python.h.
5441 * configure: Regenerate.
5442 * configure.ac (AC_OUTPUT): Change .gdbinit for gdb-gdb.gdb.
5443 * gdb-gdb.gdb.in: New file, renamed from gdbinit.in.
5444 * gdbinit.in: Remove file, rename it to gdb-gdb.gdb.in.
5445 * main.c: Include auto-load.h.
5446 * python/py-auto-load.c: Move include filenames.h, gdb_regex.h,
5447 command.h, observer.h and progspace.h to auto-load.c. Add include
5448 auto-load.h.
5449 (gdbpy_global_auto_load, struct auto_load_pspace_info)
5450 (struct loaded_script, auto_load_pspace_data)
5451 (auto_load_pspace_data_cleanup, get_auto_load_pspace_data)
5452 (hash_loaded_script_entry, eq_loaded_script_entry)
5453 (init_loaded_scripts_info, get_auto_load_pspace_data_for_loading)
5454 (maybe_add_script): Move to auto-load.c.
5455 (source_section_scripts): Change maybe_add_script parameters passing,
5456 use script_not_found_warning_print.
5457 (clear_section_scripts, auto_load_objfile_script)
5458 (auto_load_new_objfile, loaded_script_ptr)
5459 (DEF_VEC_P (loaded_script_ptr), collect_matching_scripts, print_script)
5460 (sort_scripts_by_name, info_auto_load_scripts): Move to auto-load.c.
5461 (gdbpy_initialize_auto_load): Move auto_load_pspace_data,
5462 auto_load_new_objfile and info_auto_load_scripts initizations to
5463 auto-load.c.
5464 * python/python.h (gdbpy_global_auto_load): Move to auto-load.h.
5465
e4ab2fad
JK
54662012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
5467
5468 Code cleanup.
5469 * charset.c (find_charset_names): Remove variables ix and elt.
5470 Use free_char_ptr_vec.
5471 * elfread.c (build_id_to_debug_filename): New variables debugdir_vec,
5472 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
5473 debugdir_end. New variable debugdir_len.
5474 * gdb_vecs.h (free_char_ptr_vec, make_cleanup_free_char_ptr_vec)
5475 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): New
5476 declarations.
5477 * progspace.c (clear_program_space_solib_cache): Remove variables ix
5478 and elt. Use free_char_ptr_vec.
5479 * source.c (add_path): Remove variables argv, arg and argv_index.
5480 New variables dir_vec, back_to, ix and name.
5481 Use dirnames_to_char_ptr_vec_append. Use freeargv instead of
5482 make_cleanup_freeargv. Remove variable separator. Simplify the code
5483 no longer expecting DIRNAME_SEPARATOR.
5484 (openp): Remove variable p, p1 and len. New variables dir_vec,
5485 back_to, ix and dir. Use dirnames_to_char_ptr_vec. Simplify the code
5486 no longer expecting DIRNAME_SEPARATOR.
5487 * symfile.c (find_separate_debug_file): New variables debugdir_vec,
5488 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
5489 debugdir_end.
5490 * utils.c (free_char_ptr_vec, do_free_char_ptr_vec)
5491 (make_cleanup_free_char_ptr_vec, dirnames_to_char_ptr_vec_append)
5492 (dirnames_to_char_ptr_vec): New functions.
5493
5ee4ed9f
JK
54942012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
5495
5496 Code cleanup.
5497 * source.c (add_path): Remove always true conditional 'p == 0' and
5498 unindent its code block.
5499
f41f5e61
PA
55002012-04-17 Pedro Alves <palves@redhat.com>
5501
5502 * gdbtypes.h (FIELD_BITPOS): Rename to ...
5503 (FIELD_BITPOS_LVAL): ... this.
5504 (FIELD_BITPOS): New.
5505 (SET_FIELD_BITPOS): Adjust to use FIELD_BITPOS_LVAL.
5506 * dwarf2read.c (dwarf2_add_field): Use SET_FIELD_BITPOS.
5507 * gdbtypes.c (append_composite_type_field_aligned): Adjust to use
5508 SET_FIELD_BITPOS.
5509 * gnu-v3-abi.c (build_gdb_vtable_type): Adjust to use
5510 SET_FIELD_BITPOS.
5511 * stabsread.c (read_cpp_abbrev, read_one_struct_field)
5512 (read_baseclasses): Adjust to use SET_FIELD_BITPOS.
5513 * target-descriptions.c (tdesc_gdb_type): Adjust to use
5514 SET_FIELD_BITPOS.
5515
945b3a32
JK
55162012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
5517
5518 Do not rely on FIELD_LOC_KIND_BITPOS being zero.
5519 * ada-lang.c (ada_template_to_fixed_record_type_1): Replace
5520 TYPE_FIELD_BITPOS used as lvalue by SET_FIELD_BITPOS.
5521 * gdbtypes.c (append_flags_type_flag): Likewise, twice.
5522 * jv-lang.c (java_link_class_type): Likewise, once.
5523 * stabsread.c (read_enum_type): Likewise.
5524
42476b70
YQ
55252012-04-16 Yao Qi <yao@codesourcery.com>
5526
5527 * common/agent.c (agent_run_command): Add one more parameter `len'.
5528 Update callers.
5529 * common/agent.h: Update declaration.
5530 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
5531 Update.
5532 (linux_child_static_tracepoint_markers_by_strid): Ditto.
5533
8264ba82
AG
55342012-04-14 Anton Gorenkov <xgsa@yandex.ru>
5535
5536 PR mi/13393
5537 * value.c (value_actual_type): New function.
5538 * value.h (value_actual_type): New declaration.
5539 * varobj.c (update_type_if_necessary): New function.
5540 (varobj_create): Call value_actual_type instead of
5541 value_type.
5542 (install_dynamic_child): distinct changed and type changed MI variable
5543 objects.
5544 (update_dynamic_varobj_children): Updated for install_dynamic_child
5545 change. All callers updated.
a09130f9 5546 (varobj_update): Support for MI variable object type change if
8264ba82
AG
5547 the value changed and RTTI is used to determine the type.
5548 (create_child_with_value): Call value_actual_type instead of
5549 value_type.
a09130f9 5550 (adjust_value_for_child_access): Extended with a new parameter which
8264ba82
AG
5551 specify whether the given value should be casted to enclosing type.
5552 All callers updated.
5553
55a8c076
YQ
55542012-04-14 Yao Qi <yao@codesourcery.com>
5555
5556 Import gnulib module inttypes from git
5557 (250b80067c1e1d8faa0c42fb572f721975b929c5)
5558 * Makefile.in (HFILES_NO_SRCDIR): Add gnulib/inttypes.in.h.
a09130f9
PA
5559 (aclocal_m4_deps): Add gnulib/m4/inttypes.m4 and
5560 gnulib/m4/inttypes-pri.m4
55a8c076
YQ
5561 * aclocal.m4, config.in, configure: Regenerated.
5562 * gnulib/Makefile.am: Update.
5563 * gnulib/Makefile.in: Update.
5564 * gnulib/m4/gnulib-cache.m4: Update.
5565 * gnulib/m4/gnulib-comp.m4: Update.
5566 * gnulib/inttypes.in.h: New.
5567 * gnulib/m4/inttypes-pri.m4: New.
a09130f9 5568 * gnulib/m4/inttypes.m4: New.
55a8c076 5569
ca7781d2
LM
55702012-04-13 Luis Machado <lgustavo@codesourcery.com>
5571
5572 * infrun.c (resume): Update PC address to the real PC after
5573 preparing to do displaced stepping.
5574
e319fa28
DE
55752012-04-12 Doug Evans <dje@google.com>
5576
5577 * dwarf2read.c (lookup_signatured_type): Remove arg "objfile", unused.
5578 All callers updated.
5579
15add3f5
MK
55802012-04-12 Mark Kettenis <kettenis@gnu.org>
5581
5582 * i386bsd-nat.c (_initialize_i386bsd_nat): Add missing prototype.
5583
52dc124a
DE
55842012-04-12 Doug Evans <dje@google.com>
5585
0e50663e
DE
5586 * dwarf2read.c (create_all_type_units): Renamed from
5587 create_debug_types_hash_table. All callers updated.
5588
52dc124a
DE
5589 * dwarf2read.c (create_signatured_type_table_from_index): Rename
5590 local type_sig to sig_type, type_offset to type_offset_in_tu.
5591 (hash_signatured_type): Renamed from hash_type_signature,
5592 all callers updated.
5593 (eq_signatured_type): Renamed from eq_type_signature,
5594 all callers updated.
5595 (create_debug_types_hash_table): Rename local type_sig to sig_type.
5596 (process_enumeration_scope): Ditto.
5597 (lookup_signatured_type_at_offset): Ditto.
5598 (load_full_type_unit, read_signatured_type): Ditto.
5599
248fd3bf
YQ
56002012-04-12 Yao Qi <yao@codesourcery.com>
5601
5602 * remote.c (async_remote_interrupt): Correct function name in
5603 debug message.
5604 (async_remote_interrupt_twice): Ditto.
5605
bc3aa6c3
DE
56062012-04-11 Yuanhui Zhang <asmwarrior@gmail.com>
5607
5608 * source.c (find_and_open_source): Consistently pass resulting
5609 full path through xfullpath.
5610
9e529e1d
JK
56112012-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5612
5613 Provide more specific displaced-stepping memory error message.
5614 * infrun.c (displaced_step_prepare): New variable status. Call
5615 target_read_memory instead of read_memory, provide more specific
5616 error message.
5617
82e0cec1
TG
56182012-04-11 Tristan Gingold <gingold@adacore.com>
5619
5620 PR gdb/13901
5621 * darwin-nat.c (darwin_execvp): Revert previous patch.
5622
d987a266
TG
56232012-04-11 Tristan Gingold <gingold@adacore.com>
5624
5625 PR gdb/13901
5626 * darwin-nat.c (darwin_resume_thread): Call darwin_set_sstep only
5627 in case of change.
5628
016b7430
TG
56292012-04-11 Tristan Gingold <gingold@adacore.com>
5630
5631 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
5632 warning.
5633
06fc020f
SCR
56342012-04-11 Siva Chandra Reddy <sivachandra@google.com>
5635
5636 New command 'explore' which helps explore values and types in
5637 scope.
5638 * NEWS: Add an entry about the new 'explore' command.
5639 * data-directory/Makefile.in: Add gdb/command/explore.py
5640 * python/lib/gdb/command/explore.py: Implemention of the 'explore'
a09130f9 5641 command using the GDB Python API.
06fc020f 5642
de0919f8 56432012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
34b192ce
MR
5644
5645 * mips-tdep.c (mips_skip_pic_trampoline_code): Correct sign
5646 extension in jump target calculation.
5647
de0919f8 56482012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
9e8da49c
MR
5649
5650 * mips-tdep.c (mips32_next_pc): Handle JALX.
5651
2f26ef89
YQ
56522012-04-10 Yao Qi <yao@codesourcery.com>
5653
5654 * Makefile.in (gnulib/Makefile): Remove duplicated dependency.
5655
2e505b66
YQ
56562012-04-10 Yao Qi <yao@codesourcery.com>
5657
5658 * Makefile.in (aclocal_m4_deps): Add gnulib/m4/gnulib-cache.m4
5659 and gnulib/m4/gnulib-tool.m4.
5660
0d99eb77
DE
56612012-04-10 Doug Evans <dje@google.com>
5662
5663 * dwarf2read.c (dwarf2_per_cu_data). Clarify comment.
5664 (load_partial_dies): Clarify comment.
5665 (find_partial_die): Support rereading type units.
5666 Clarify CU handling, if we know offset is in CU, don't search for the
5667 containing CU. Add comment regarding memory waste.
5668
9a82b8ff
L
56692012-04-10 H.J. Lu <hongjiu.lu@intel.com>
5670
5671 * features/Makefile (WHICH): Add i386/x32, i386/x32-linux,
5672 i386/x32-avx and i386/x32-avx-linux.
5673 (i386/x32-expedite): New.
5674 (i386/x32-linux-expedite): Likewise.
5675 (i386/x32-avx-expedite): Likewise.
5676 (i386/x32-avx-linux-expedite): Likewise.
5677 ($(outdir)/i386/x32.dat): Likewise.
5678 ($(outdir)/i386/x32-linux.dat): Likewise.
5679 ($(outdir)/i386/x32-avx.dat): Likewise.
5680 ($(outdir)/i386/x32-avx-linux.dat): Likewise.
5681
5682 * features/i386/x32-avx-linux.xml: New file.
5683 * features/i386/x32-avx.xml: Likewise.
5684 * features/i386/x32-core.xml: Likewise.
5685 * features/i386/x32-linux.xml: Likewise.
5686 * features/i386/x32.xml: Likewise.
5687
5688 * features/i386/x32-avx-linux.c: New. Generated.
5689 * features/i386/x32-avx.c: Likewise.
5690 * features/i386/x32-linux.c: Likewise.
5691 * features/i386/x32.c: Likewise.
5692 * regformats/i386/x32-avx-linux.dat: Likewise.
5693 * regformats/i386/x32-avx.dat: Likewise.
5694 * regformats/i386/x32-linux.dat: Likewise.
5695 * regformats/i386/x32.dat: Likewise.
5696
ee41036f
TG
56972012-04-10 Tristan Gingold <gingold@adacore.com>
5698
5699 * darwin-nat.c (darwin_kill_inferior): Always use the no ptrace
5700 code to kill the inferior.
5701
a7aa5b8a
MK
57022012-04-09 Mark Kettenis <kettenis@gnu.org>
5703
5704 * ada-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
5705 defines.
5706 * c-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
5707 defines.
a09130f9 5708 * cp-name-parser.y (yyss, yysslim, yyssp, yystacksize, yyvs)
a7aa5b8a
MK
5709 (yyvsp): New defines.
5710 * f-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
5711 defines.
5712 * jv-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
5713 defines.
5714 * m2-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
5715 defines.
5716 * objc-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
5717 defines.
5718 * p-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
5719 defines.
5720
fb57d452
MK
57212012-04-09 Mark Kettenis <kettenis@gnu.org>
5722
a09130f9 5723 * sparc64-tdep.c (sparc64_store_arguments)
fb57d452
MK
5724 (sparc64_store_arguments): Fix coding style.
5725
cdc7b32f
MK
57262012-04-07 Mark Kettenis <kettenis@gnu.org>
5727
5728 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
5729 complex floats, adjust some related comments and tighten a related
5730 assertion.
5731 (sparc64_extract_return_value): Handle complex floats.
5732
7adf1e79
DE
57332012-04-07 Doug Evans <dje@google.com>
5734
5735 * dwarf2read.c (load_partial_dies): Change condition to assert.
5736
50f1ae7b
DE
57372012-04-06 Doug Evans <dje@google.com>
5738
5739 * amd64-tdep.c (amd64_analyze_prologue): Recognize both variations of
5740 "mov %rsp,%rbp".
5741
55fa75c3
KB
57422012-04-05 Kevin Buettner <kevinb@redhat.com>
5743
5744 * v850-tdep.c (E_NUM_OF_V850_REGS, E_NUM_OF_V850E_REGS): Fix
5745 fencepost error.
5746 (v850_frame_cache): Use gdbarch_num_regs() instead of E_NUM_REGS.
5747 (v850_gdbarch_init): Set `num_regs' as appropriate for the
5748 architecture.
5749
40e084e1
KS
57502012-04-05 Keith Seitz <keiths@redhat.com>
5751
5752 * linespec.c (decode_compound): Remove.
5753 (enum offset_relative_sign): New enum.
5754 (struct line_offset): New struct.
5755 (struct linespec): New struct.
5756 (struct linespec_state): Move file_symtabs,
5757 user_filename, and user_function into struct linespec.
5758 Make result an anonymous struct holding vectors of
5759 symbolp and minsym_and_objfile_d.
5760 Add language member.
5761 (enum ls_token_type): New enum.
5762 (linespec_keywords): New array.
5763 (struct ls_token): New struct.
5764 (struct ls_parser): New struct.
5765 (linespec_lexer_lex_number): New function.
5766 (linespec_lexer_lex_keyword): New function.
5767 (is_ada_operator): New function.
5768 (skip_quote_char): New function.
5769 (copy_token_string): New function.
5770 (is_closing_quote_enclosed): New function.
5771 (find_parameter_list_end): New function.
5772 (linespec_lexer_lex_string): New function.
5773 (linespec_lexer_lex_one): New function.
5774 (linespec_lexer_consume_token): New function.
5775 (linespec_lexer_peek_token): New function.
5776 (cplusplus_error): Remove unused function.
5777 (find_methods): Update comment.
5778 (find_toplevel_char): Return const.
5779 (is_objc_method_format): Remove unused function.
5780 (find_toplevel_string): New function.
5781 (is_linespec_boundary): Remove.
5782 (symbol_not_found_error): New function.
5783 (find_method_overload_end): Remove function.
5784 (unexpected_linespec_error): New function.
5785 (keep_name_info): Remove.
5786 (linespec_parse_line_offset): New function.
5787 (linespec_parse_basic): New function.
5788 (canonicalize_linespec): New function.
5789 (decode_line_internal): Remove.
5790 (create_sals_line_offset): New function adapted from
5791 decode_all_digits.
5792 (convert_linespec_to_sals): New function.
5793 (parse_linespec): New function.
5794 (linespec_parser_new): New function.
5795 (linespec_state_destructor): Change parameter type to
5796 struct linespec_state *.
5797 Add language parameter.
5798 Remove freeing of moved members.
5799 (linespec_parser_delete): New function.
5800 (decode_line_full): Use parse_linespec and linespec_parser_new.
5801 (decode_line_1): Likewise.
5802 (decode_indirect): Rename to ...
5803 (linespec_expression_to_pc): ... this and rewrite
5804 to simply find CORE_ADDR, storing this result for later
5805 conversion to SALs.
5806 (locate_first_half): Remove.
5807 (deocde_objc): Add parameter LS.
5808 Initialize new struct collect_info members.
5809 Handle minimal symbols, too.
5810 (decode_compound): Delete.
5811 (lookup_prefix_sym): Rewrite.
5812 (compare_msymbols): New function.
5813 (find_method): Rewrite.
5814 Do not call cplusplus_error.
5815 (symtabs_from_filename): Rewrite.
5816 (collect_function_symbols): Delete.
5817 (find_function_symbols): Rewrite without ARGPTR-style
5818 processing.
5819 (decode_all_digits): Delete. (Rewritten as create_sals_line_offset.)
5820 (decode_dollar): Adapted and renamed to ...
5821 (linespec_parse_variable): ... this.
5822 (find_linespec_symbols): New function.
5823 (decode_label): Adapted and renamed to ...
5824 (find_label_symbols): ... this.
5825 (decode_digits_list_mode): Add and use LS argument.
5826 (decode_digits_ordinary): Likewise.
5827 (collect_symbols): Do not collect SALs, just symbols and msymbols.
5828 If in list mode, allow any symbol class. Otherwise, only
5829 permit LOC_BLOCK symbols.
5830 (minsym_found): Update comments.
5831 (search_minsyms_for_name): Do not convert the matching symbol
5832 into a SAL. Simply push the symbol and objfile into the
5833 result vector.
5834 (decode_variable): Delete. Contents adapted into
5835 find_linespec_symbols.
5836
5837 * cp-support.c (SKIP_SPACE): Remove.
5838 (operator_tokens): Remove unused global.
5839 (cp_validate_operator): Remove.
5840 * cp-support.h (cp_validate_operator): Remove declaration.
5841
a72c8f6a
JK
58422012-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
5843
5844 * cp-valprint.c (cp_print_value_fields): Check valprint_check_validity
5845 for TYPE_VPTR_FIELDNO.
5846 * valprint.c (valprint_check_validity): Make it global, move the
5847 function comment ...
5848 * value.h (valprint_check_validity): ... to this new declaration.
5849
cf9bb588
TG
58502012-04-02 Tristan Gingold <gingold@adacore.com>
5851
5852 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Use
5853 the STATE32 api for i386 state.
5854 (i386_darwin_store_inferior_registers): Likewise.
5855
17092398
TG
58562012-04-02 Tristan Gingold <gingold@adacore.com>
5857
5858 * i386-darwin-tdep.c (i386_darwin_thread_state_reg_offset): Fix
5859 SS offset.
5860 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
5861 format_string.
5862
ece0061f
TG
58632012-04-02 Tristan Gingold <gingold@adacore.com>
5864
5865 PR gdb/13901
d987a266 5866 * darwin-nat.c (darwin_execvp): Set binary preference.
ece0061f 5867
cf65ecd3
JK
58682012-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5869
5870 * NEWS (set breakpoint condition-evaluation): Use imperative mood.
5871
9bc3523d
TT
58722012-03-30 Tom Tromey <tromey@redhat.com>
5873
5874 * python/python.c (gdbpy_decode_line): Move cleanup creation out
5875 of TRY_CATCH. Fix error handling.
5876 * python/py-value.c (convert_value_from_python): Move 'old'
5877 declaration to innermost scope.
5878
b1ed564a
JB
58792012-03-29 Joel Brobecker <brobecker@adacore.com>
5880 Andrey Smirnov <andrew.smirnov@gmail.com>
5881
5882 -Wshadow warning fix.
5883 * ada-lang.c (ada_make_symbol_completion_list): Rename parameters
5884 "wild_match" and "encoded" into "wild_match_p" and "encoded_p".
5885 Adjust code accordingly.
5886
cb8e9b97
JB
58872012-03-29 Joel Brobecker <brobecker@adacore.com>
5888
5889 * ada-lang.c (symbol_completion_add): Rename parameter
5890 "encoded" into "encoded_p". Ajust code and documentation
5891 accordingly.
5892
c0af1706
JB
58932012-03-29 Joel Brobecker <brobecker@adacore.com>
5894 Andrey Smirnov <andrew.smirnov@gmail.com>
5895
5896 -Wshadow warning fix.
5897 * ada-lang.c (symbol_completion_add): Rename parameter
5898 "wild_match" into wild_match_p. Update code and documentation
5899 accordingly.
5900
6ea35997
JB
59012012-03-29 Joel Brobecker <brobecker@adacore.com>
5902
5903 * ada-lang.c (symbol_completion_match): Rename parameter
5904 "encoded" into "encoded_p". Ajust code and documentation
5905 accordingly.
5906
e701b3c0
JB
59072012-03-29 Joel Brobecker <brobecker@adacore.com>
5908 Andrey Smirnov <andrew.smirnov@gmail.com>
5909
5910 -Wshadow warning fix.
5911 * ada-lang.c (symbol_completion_match): Rename parameter
5912 "wild_match" into "wild_match_p". Adjust code and function
5913 documentation accordingly.
5914
5e2336be
JB
59152012-03-29 Joel Brobecker <brobecker@adacore.com>
5916 Andrey Smirnov <andrew.smirnov@gmail.com>
5917
5918 -Wshadow warning fix.
5919 * ada-lang.c (ada_lookup_encoded_symbol): Rename parameter
5920 "symbol_info" into "info". Adjust code accordingly.
5921 (ada_lookup_symbol): Likewise.
5922
9f88c959
JB
59232012-03-29 Joel Brobecker <brobecker@adacore.com>
5924
5925 * ada-lang.c (ada_lookup_symbol_list): Minor reformatting
5926 of this function's documentation.
5927
82ccd55e
JB
59282012-03-29 Joel Brobecker <brobecker@adacore.com>
5929 Andrey Smirnov <andrew.smirnov@gmail.com>
5930
5931 -Wshadow warning fix.
5932 * ada-lang.c (ada_lookup_symbol_list): Rename "wild_match"
5933 variable into "wild_match_p". Adjust code accordingly.
5934
d0a8ab18
JB
59352012-03-29 Joel Brobecker <brobecker@adacore.com>
5936 Andrey Smirnov <andrew.smirnov@gmail.com>
5937
5938 -Wshadow warning fix.
5939 * ada-lang.c (ada_add_local_symbols): Rename "wild_match"
5940 parameter into "wild_match_p". Adjust code accordingly.
5941 Document this parameter in the function description.
5942
48b78332
JB
59432012-03-29 Joel Brobecker <brobecker@adacore.com>
5944 Andrey Smirnov <andrew.smirnov@gmail.com>
5945
5946 -Wshadow warning fix.
5947 * ada-lang.c (add_symbols_from_enclosing_procs): Rename
5948 "wild_match" parameter to "wild_match_p" (-Wshadow).
5949
2e6e0353
JB
59502012-03-29 Joel Brobecker <brobecker@adacore.com>
5951
5952 * ada-lang.c (ada_lookup_simple_minsym): Remove trailing spaces
5953 in function documentation.
5954
dc4024cd
JB
59552012-03-29 Joel Brobecker <brobecker@adacore.com>
5956 Andrey Smirnov <andrew.smirnov@gmail.com>
5957
5958 -Wshadow warning fix.
5959 * ada-lang.c (ada_lookup_simple_minsym): Rename wild_match local
5960 variable into wild_match_p. Adjust code accordingly.
5961
6c88661c
JB
59622012-03-29 Joel Brobecker <brobecker@adacore.com>
5963 Andrey Smirnov <andrew.smirnov@gmail.com>
5964
5965 * ada-valprint.c (ada_val_print_1): Move the code handling
5966 TYPE_CODE_ENUM inside its own lexical block. Declare
5967 variables len and val there, instead of in the function's
5968 top level block. Avoid declaring deref_val again in a way
5969 that shadows another variable of the same name declared
5970 in one of the up-level blocks. Just re-use the up-level
5971 variable instead.
5972
4e5c77fe
JB
59732012-03-29 Joel Brobecker <brobecker@adacore.com>
5974
5975 * ada-lang.c (ada_lookup_encoded_symbol): Now returns void.
5976 Replace block_found argument by symbol_info. Adjust
5977 implementation accordingly. Add function documentation.
5978 (ada_lookup_symbol): Adjust to new ada_lookup_encoded_symbol.
5979 Fix documentation.
5980 * ada-lang.h (ada_lookup_encoded_symbol): Update declaration.
5981 * ada-exp.y (write_object_renaming): Adjust to new
5982 ada_lookup_encoded_symbol API.
5983
1c0ac8c7
JB
59842012-03-29 Joel Brobecker <brobecker@adacore.com>
5985
5986 * ada-lang.h (struct ada_symbol_info): Reformat. Improve
5987 documentation.
5988
2aaed979
KB
59892012-03-28 Rathish C <rathish.c@kpitcummins.com>
5990
5991 * v850-tdep.c: Add the enum values for mpu and fpu registers.
5992 (v850_register_name): Add the mpu and fpu register names.
5993 (v850e_register_name): Add the mpu and fpu register names.
5994 (v850e2_register_name): New function.
a09130f9 5995 (v850_gdbarch_init): Add case for bfd_mach_v850e2 and
2aaed979
KB
5996 bfd_mach_v850e2v3.
5997
927fbba6
JB
59982012-03-28 Joel Brobecker <brobecker@adacore.com>
5999
6000 * NEWS: Add entry for Ada varobj support.
6001
d32cafc7
JB
60022012-03-28 Joel Brobecker <brobecker@adacore.com>
6003
6004 * varobj.c (default_value_is_changeable_p): New function,
6005 extracted from varobj_value_is_changeable_p. Add declaration.
6006 (ada_value_is_changeable_p): New function, extracted from
6007 varobj_value_is_changeable_p. Add declaration.
6008 (struct language_specific): New field "value_is_changeable_p".
6009 (languages): Add entries for new field.
6010 (varobj_create): Set language before calling install_new_value.
6011 (varobj_value_is_changeable_p): Reimplement to call the varobj's
6012 "value_is_changeable_p" language callback.
6013
181875a4
JB
60142012-03-28 Joel Brobecker <brobecker@adacore.com>
6015
6016 * ada-varobj.h, ada-varobj.c: New files.
6017 * Makefile.in (SFILES): Add ada-varobj.c.
6018 (HFILES_NO_SRCDIR): Add ada-varobj.h.
6019 (COMMON_OBS): Add ada-varobj.o.
6020
7a290c40
JB
60212012-03-28 Joel Brobecker <brobecker@adacore.com>
6022
6023 * varobj.c (ada_value_has_mutated): Add declaration. New function.
6024 (struct language_specific): New field "value_has_mutated".
6025 (languages): Set field "value_has_mutated" in each entry of array.
6026 (varobj_value_has_mutated): New function.
6027 (varobj_udpdate): Add handling of type mutation.
6028 (value_of_root): Add handling of type mutation.
6029 (ada_value_has_mutated): New function.
6030
ca9b8b9c
PA
60312012-03-28 Pedro Alves <palves@redhat.com>
6032
6033 * ia64-linux-nat.c (supply_fpregset, ia64_linux_fetch_register):
6034 Always supply $fr0 as 0.0 and $fr1 as 1.0.
6035
cc0265cd
TT
60362012-03-28 Tom Tromey <tromey@redhat.com>
6037
6038 * python/py-inferior.c (infpy_read_memory): Remove cleanups and
6039 explicitly free 'buffer' on exit paths. Decref 'membuf_object'
6040 before returning.
6041
3ad2ec6f
TT
60422012-03-28 Tom Tromey <tromey@redhat.com>
6043
6044 * .dir-locals.el: New file.
6045
4a6510ba
PA
60462012-03-28 Pedro Alves <palves@redhat.com>
6047
6048 * ia64-linux-nat.c (u_offsets): Map IA64_EC_REGNUM to PT_AR_EC.
6049
5a75128f
JB
60502012-03-28 Joel Brobecker <brobecker@adacore.com>
6051
6052 * ia64-linux-nat.c (ia64_linux_fetch_register): Add special
6053 handling for r0.
6054
f99d8bf4
PA
60552012-03-27 Pedro Alves <palves@redhat.com>
6056
6057 Eliminate struct ui_stream.
6058
6059 * ui-out.h (struct ui_stream): Delete.
6060 (ui_out_field_stream): Adjust prototype.
6061 (ui_out_stream_new, ui_out_stream_delete)
6062 (make_cleanup_ui_out_stream_delete): Delete declarations.
6063 * ui-out.c (ui_out_field_stream): Change prototype to take a
6064 ui_file instead of a ui_stream. Adjust.
6065 (ui_out_stream_new, ui_out_stream_delete, do_stream_delete)
6066 (make_cleanup_ui_out_stream_delete): Delete.
6067 * breakpoint.c (print_breakpoint_location)
6068 (print_one_detail_ranged_breakpoint, print_it_watchpoint): Use
6069 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
6070 * disasm.c (dump_insns): Ditto.
6071 (do_mixed_source_and_assembly, do_assembly_only): Adjust
6072 prototype.
6073 (gdb_disassembly): Use ui_file/mem_fileopen instead of
6074 ui_stream/ui_out_stream_new.
6075 * infcmd.c (print_return_value): Ditto.
6076 * osdata.c (info_osdata_command): Don't allocate a local
6077 ui_stream.
6078 * stack.c (print_frame_arg, print_frame_args, print_frame): Use
6079 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
6080 * tracepoint.c (print_one_static_tracepoint_marker): Don't
6081 allocate a local ui_stream.
6082 * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_file/mem_fileopen
6083 instead of ui_stream/ui_out_stream_new.
6084 (list_args_or_locals): Don't allocate a local ui_stream.
6085 * mi/mi-main.c (get_register, mi_cmd_data_evaluate_expression)
6086 (mi_cmd_data_read_memory): Use ui_file/mem_fileopen instead of
6087 ui_stream/ui_out_stream_new.
6088 * cli/cli-setshow.c (do_setshow_command): Ditto.
6089
6350a066 60902012-03-27 Oza Pawandeep <oza.pawandeep@gmail.com>
72508ac0 6091
6350a066
PA
6092 * arm-linux-tdep.c (arm_linux_init_abi): Call
6093 set_gdbarch_process_record. Initialize `arm_swi_record' field.
6094 * arm-tdep.c (arm_process_record): New function.
6095 (deallocate_reg_mem): New function.
6096 (decode_insn): New function.
6097 (thumb_record_branch): New function.
6098 (thumb_record_ldm_stm_swi(): New function.
6099 (thumb_record_misc): New function.
6100 (thumb_record_ld_st_stack): New function.
6101 (thumb_record_ld_st_imm_offset): New function.
6102 (thumb_record_ld_st_reg_offset(): New function.
6103 (thumb_record_add_sub_cmp_mov): New function.
6104 (thumb_record_shift_add_sub): New function.
6105 (arm_record_coproc_data_proc): New function.
6106 (arm_record_coproc): New function.
6107 (arm_record_b_bl): New function.
6108 (arm_record_ld_st_multiple): New function.
6109 (arm_record_ld_st_reg_offset): New function.
6110 (arm_record_ld_st_imm_offset): New function.
6111 (arm_record_data_proc_imm): New function.
6112 (arm_record_data_proc_misc_ld_str): New function.
6113 (arm_record_extension_space): New function.
6114 (arm_record_strx): New function.
6115 (sbo_sbz): New function.
6116 (struct insn_decode_record): New structure for arm insn record.
6117 (REG_ALLOC): New macro for reg allocations.
6118 (MEM_ALLOC): New macro for memory allocations.
6119 * arm-tdep.h (struct gdbarch_tdep): New field 'arm_swi_record'.
72508ac0 6120
89e028e2
AS
61212012-03-27 Andreas Schwab <schwab@linux-m68k.org>
6122
6123 * m68klinux-nat.c (fetch_register): Fix strict-aliasing violation.
6124 (store_register): Likewise.
6125
6350a066 61262012-03-26 Oza Pawandeep <oza.pawandeep@gmail.com>
3d9a9eb0 6127
6350a066 6128 * MAINTAINERS (Write After Approval): Add myself to the list.
3d9a9eb0 6129
5b43fab2
JK
61302012-03-25 Jan Kratochvil <jan.kratochvil@redhat.com>
6131
6132 * NEWS (set breakpoint condition-evaluation): Change "gdb" to "host".
6133 Describe also the option "auto".
6134
b5453b95
RH
61352012-03-22 Richard Henderson <rth@redhat.com>
6136
6137 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Fix prototype.
6138 * sparc-nat.c (sparc_xfer_wcookie): Make static.
6139
227ee7fc
RH
61402012-03-22 Richard Henderson <rth@redhat.com>
6141
6142 * jit.c (jit_read_code_entry): Compute alignment and offset of
6143 int64_t member before computing entry_size.
6144
7b282c5a
SCR
61452012-03-22 Siva Chandra Reddy <sivachandra@google.com>
6146
6147 Python scripting: Add new method Value.referenced_value to
6148 gdb.Value which can dereference pointer as well as reference
6149 values.
6150 * NEWS: Add entry under 'Python scripting' about the new method
6151 Value.referenced_value on gdb.Value objects.
6152 * python/py-value.c (valpy_referenced_value): New function
6153 defining a new method on gdb.Value objects which can dereference
6154 pointer and reference values.
6155
0c83539f
SCR
61562012-03-22 Siva Chandra Reddy <sivachandra@google.com>
6157
6158 * MAINTAINERS (Write After Approval): Add myself to the list.
6159
7ccffd7c
KB
61602012-03-21 Kevin Buettner <kevinb@redhat.com>
6161
6162 * symtab.c (skip_prologue_sal): Change test to check for "main()"
6163 in addition to "main".
6164
bd0b9f9e
JB
61652012-03-21 Joel Brobecker <brobecker@adacore.com>
6166
6167 * expression.h (op_name): Add declaration.
6168 * expprint.c (op_name): Remove declaration. Make non-static.
6169 * ax-gdb.c (gen_expr): Use op_name instead of op_string.
6170
a5362b9a
TS
61712012-03-21 Thomas Schwinge <thomas@codesourcery.com>
6172
6173 * amd64-linux-nat.c (amd64_linux_siginfo_fixup): Use siginfo_t instead
6174 of struct siginfo.
6175 * arm-linux-nat.c (arm_linux_stopped_data_address): Likewise.
6176 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
6177 * linux-nat.c (linux_nat_siginfo_fixup, siginfo_fixup)
6178 (linux_xfer_siginfo, linux_nat_set_siginfo_fixup)
6179 (linux_nat_get_siginfo): Likewise.
6180 * linux-nat.h (struct lwp_info, linux_nat_set_siginfo_fixup)
6181 (linux_nat_get_siginfo): Likewise.
6182 * linux-tdep.c (linux_get_siginfo_type): Likewise.
6183 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Likewise.
6184 * procfs.c (gdb_siginfo_t): Likewise.
6185
adcadaab
MF
61862012-03-21 Mike Frysinger <vapier@gentoo.org>
6187
6188 * .gitignore: Ignore more files.
6189
e278ad5b
PA
61902012-03-20 Pedro Alves <palves@redhat.com>
6191
6192 * remote.c (remote_start_remote): Clear `rs->starting_up' on early
6193 returns.
6194
741e63d7
YQ
61952012-03-20 Yao Qi <yao@codesourcery.com>
6196
6197 * amd64-tdep.c (amd64_displaced_step_copy_insn): Complete missing "}" in
6198 comment.
6199
b64f50a1
JK
62002012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
6201
6202 Code cleanupp: Use cu_offset and sect_offset compile time type checking.
6203 * dwarf2expr.c (add_piece, dwarf_get_base_type, execute_stack_op)
6204 (ctx_no_dwarf_call, ctx_no_get_base_type): Use cu_offset and
6205 sect_offset.
6206 * dwarf2expr.h (cu_offset, sect_offset): New types.
6207 (struct dwarf_expr_context_funcs) <dwarf_call>
6208 (struct dwarf_expr_context_funcs) <get_base_type>: Use cu_offset and
6209 sect_offset.
6210 (struct dwarf_expr_context) <len>: Improve the comment.
6211 (struct dwarf_expr_piece, ctx_no_dwarf_call, ctx_no_get_base_type): Use
6212 cu_offset and sect_offset.
6213 * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call)
6214 (dwarf_expr_get_base_type, needs_frame_dwarf_call)
6215 (dwarf2_compile_expr_to_ax, disassemble_dwarf_expression): Likewise.
6216 * dwarf2loc.h: Include dwarf2expr.h.
6217 (dwarf2_fetch_die_location_block, dwarf2_get_die_type): Use cu_offset
6218 and sect_offset.
6219 * dwarf2read.c (struct dwarf2_per_objfile) <debug_types_type_hash>:
6220 Improve the comment.
6221 (struct comp_unit_head, struct dwarf2_cu, struct dwarf2_per_cu_data)
6222 (struct signatured_type, struct line_header, struct partial_die_info)
6223 (struct die_info, find_partial_die, dwarf2_get_ref_die_offset)
6224 (lookup_signatured_type_at_offset, dwarf2_find_containing_comp_unit)
6225 (get_die_type_at_offset, create_cus_from_index)
6226 (create_signatured_type_table_from_index, dw2_get_file_names)
6227 (offset_in_cu_p, read_comp_unit_head, error_check_comp_unit_head)
6228 (read_and_check_comp_unit_head, read_and_check_type_unit_head)
6229 (create_debug_types_hash_table, process_psymtab_comp_unit)
6230 (load_partial_comp_unit, create_all_comp_units)
6231 (partial_die_parent_scope, partial_die_full_name, skip_one_die)
6232 (load_full_comp_unit, dwarf2_physname, read_import_statement)
6233 (inherit_abstract_dies, read_func_scope, read_call_site_scope)
6234 (dwarf2_add_member_fn, process_enumeration_scope, read_module_type)
6235 (read_typedef, die_hash, die_eq, read_full_die, dwarf2_read_abbrevs)
6236 (load_partial_dies, read_partial_die, find_partial_die_in_comp_unit)
6237 (find_partial_die, read_attribute_value, lookup_die_type)
6238 (dump_die_shallow, store_in_ref_table): Use cu_offset and sect_offset.
6239 (is_ref_attr): New function comment.
6240 (dwarf2_get_ref_die_offset): New function comment, new variable retval.
6241 Use cu_offset and sect_offset.
6242 (follow_die_offset, follow_die_ref, dwarf2_fetch_die_location_block)
6243 (dwarf2_get_die_type, follow_die_sig, lookup_signatured_type_at_offset)
6244 (load_full_type_unit, read_signatured_type, per_cu_header_read_in)
6245 (dwarf2_find_containing_comp_unit, struct dwarf2_offset_and_type)
6246 (offset_and_type_hash, offset_and_type_eq, set_die_type)
6247 (get_die_type_at_offset, partial_die_hash, partial_die_eq)
6248 (write_one_signatured_type, write_psymtabs_to_index): Use cu_offset and
6249 sect_offset.
6250
e97a38f7
JK
62512012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
6252
6253 Code cleanup.
6254 * python/py-auto-load.c (source_section_scripts): New variable back_to.
6255 Turn fclose and xfree calls into make_cleanup_fclose and make_cleanup
6256 with xfree.
6257 (auto_load_objfile_script): Turn fclose into make_cleanup_fclose.
6258
8320cc4f
JK
62592012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
6260
6261 * NEWS: Describe new options --init-command=FILE, -ix and
6262 --init-eval-command=COMMAND, -iex.
6263 * main.c (struct cmdarg): New enum items CMDARG_INIT_FILE and
6264 CMDARG_INIT_COMMAND.
6265 (captured_main): New enum items OPT_IX and OPT_IEX. Add
6266 "init-command", "init-eval-command", "ix" and "iex" to the variable
6267 long_options. Handle OPT_IX and OPT_IEX. Process them from CMDARG_VEC.
6268 New comment for CMDARG_FILE and CMDARG_COMMAND processing.
6269 (print_gdb_help): Describe --init-command=FILE, -ix and
6270 --init-eval-command=COMMAND, -iex.
6271
26743505
JK
62722012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
6273
6274 Code cleanup.
6275 * main.c (struct cmdarg): Move it here from main. Add more comments.
6276 (cmdarg_s, VEC (cmdarg_s)): New.
6277 (main): Move struct cmdarg from here. New variables cmdarg_vec and
6278 cmdarg_p. Remove variables cmdsize and ncmd and their initialization.
6279 Install cleanup for cmdarg_vec. Update filling for options 'x' and
6280 'X'. Replace cmdarg processing by cmdarg_vec processing. Remove xfree
6281 of CMDARG.
6282
5ff5c7b4
TT
62832012-03-19 Tom Tromey <tromey@redhat.com>
6284
6285 * gnu-v3-abi.c (gnuv3_print_vtable): Initialize 'result_vec'.
6286
ab260dad
JK
62872012-03-16 Jan Kratochvil <jan.kratochvil@redhat.com>
6288
6289 PR symtab/13777
6290 * dwarf2read.c (process_full_comp_unit): Set LOCATIONS_VALID only for
6291 GCC >=4.5.
6292
c366c1f0
TT
62932012-03-16 Chris January <chris.january@allinea.com>
6294
6295 * tui-tui.win.c (tui_resize_all): Use erase and clearok instead
6296 of clear.
6297
e16edb45
TT
62982012-03-16 Chris January <chris.january@allinea.com>
6299
6300 * source.c (add_path): Use memmove instead of strcpy because the
6301 strings overlap.
6302
53ba8333
JB
63032012-03-16 Joel Brobecker <brobecker@adacore.com>
6304
6305 * value.h (set_value_parent): Add declaration.
6306 * value.c (set_value_parent): New function.
6307 (value_address): If VALUE->PARENT is not NULL, then use it as
6308 the base address instead of VALUE->LOCATION.address.
6309 * ada-lang.c (ada_value_primitive_packed_val): Keep V's address
6310 the same as OBJ's address. Adjust V's offset accordingly.
6311 Set V's parent.
6312
481860b3
GB
63132012-03-16 Gary Benson <gbenson@redhat.com>
6314
6315 PR breakpoints/10738
6316 * dwarf2read.c (use_deprecated_index_sections): New global.
6317 (struct partial_die_info): New member may_be_inlined.
6318 (read_partial_die): Set may_be_inlined where appropriate.
6319 (add_partial_subprogram): Add partial symbols for partial
6320 DIEs that may be inlined.
6321 (new_symbol_full): Add inlined subroutines to the current
6322 scope.
6323 (write_psymtabs_to_index): Bump version number.
6324 (dwarf2_read_index): Read only version 6 indices unless
6325 use_deprecated_index_sections is set.
6326 * linespec.c (symbol_and_data_callback): New structure.
6327 (iterate_inline_only): New function.
6328 (iterate_over_all_matching_symtabs): New argument
6329 "include_inline". If nonzero, also call the callback for
6330 symbols representing inlined subroutines.
6331 (lookup_prefix_sym): Pass extra argument to the above.
6332 (find_function_symbols): Likewise.
6333 (add_matching_symbols_to_info): Likewise.
6334 * NEWS: Mention that GDB can now set breakpoints on inlined
6335 functions.
6336
d0e7e15a
PM
63372012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
6338
6339 * p-typeprint.c (pascal_type_print_method_args):
6340 Fix display of parameter of methods.
6341
3d354654
PM
63422012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
6343
6344 * amd64-windows-nat.c (_initialize_amd64_windows_nat):
6345 Add missing prototype.
6346
cafe75b0
JK
63472012-03-16 Yao Qi <yao@codesourcery.com>
6348 Jan Kratochvil <jan.kratochvil@redhat.com>
6349
6350 Fix false compilation warning.
6351 * gnu-v3-abi.c (print_one_vtable): Initialize ADDR.
6352
25f8c692
JL
63532012-03-15 Jonathan Larmour <jifl@eCosCentric.com>
6354 Pedro Alves <pedro@codesourcery.com>
6355
6356 * arm-tdep.c: Include "remote.h" and "features/arm-with-m-fpa-layout.c".
6357 (arm_register_g_packet_guesses): New function.
6358 (arm_gdbarch_init): Don't force a target description with
6359 registers when the executable is detected as M-profile. Instead
6360 set gdbarch->tdep->is_m. Register `g' packet guesses.
6361 (_initialize_arm_tdep): Initialize the new target description.
6362 * features/arm-with-m-fpa-layout.xml: New description.
6363 * features/arm-with-m-fpa-layout.c: New, generated.
6364
35c63cd8
JB
63652012-03-15 Joel Brobecker <brobecker@adacore.com>
6366
6367 * breakpoint.c (breakpoint_xfer_memory): Add assertion.
6368 Update function description.
6369 (insert_bp_location): Do not wipe bl->target_info out.
6370 * mem-break.c: #include "gdb_string.h".
6371 (default_memory_insert_breakpoint): Do not call target_read_memory
6372 with a pointer to the breakpoint's shadow_contents buffer. Use
6373 a local buffer instead.
6374 * m32r-tdep.c (m32r_memory_insert_breakpoint): Ditto.
6375
57651221
TT
63762012-03-15 Tom Tromey <tromey@redhat.com>
6377
6378 * NEWS: Mention "info vtbl", not "info vtable".
6379 * cp-support.c (info_vtbl_command): Fix comment.
6380 (_initialize_cp_support): Fix text.
6381
410528f0
TT
63822012-03-15 Tom Tromey <tromey@redhat.com>
6383
6384 * cp-valprint.c (cp_print_value_fields): Use
6385 print_function_pointer_address for vtable slot.
6386
c4aeac85
TT
63872012-03-15 Tom Tromey <tromey@redhat.com>
6388
6389 * gnu-v3-abi.c (struct value_and_voffset): New.
6390 (hash_value_and_voffset, eq_value_and_voffset)
6391 (compare_value_and_voffset, compute_vtable_size)
6392 (print_one_vtable, gnuv3_print_vtable): New functions.
6393 (init_gnuv3_ops): Initialize 'print_vtable' field.
6394 * cp-support.c (info_vtbl_command): New function.
6395 (_initialize_cp_support): Add "info vtbl".
6396 * cp-abi.h (cplus_print_vtable): Declare.
6397 (struct cp_abi_ops) <print_vtable>: New field.
6398 * cp-abi.c (cplus_print_vtable): New function.
6399 * NEWS: Update.
6400
95cbceff
TT
64012012-03-15 Tom Tromey <tromey@redhat.com>
6402
6403 * d-lang.c (d_language_defn) <la_iterate_over_symbols>: Set to
6404 iterate_over_symbols.
6405
589b4a32
DE
64062012-03-14 Doug Evans <dje@google.com>
6407
6408 * dwarf2read.c (dwarf_stack_op_name): Add DW_OP_GNU_encoded_addr,
6409 DW_OP_GNU_parameter_ref.
6410
e837f12a
JK
64112012-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
6412
6413 Fix double prompt of 'interpreter-exec mi'.
6414 * mi/mi-interp.c (mi_execute_command_input_handler): New prototype.
6415 (mi_interpreter_resume): use it.
6416 (mi_execute_command_input_handler): New function.
6417 * mi/mi-main.c (mi_execute_command): Move prompt printing to
6418 mi_execute_command_input_handler.
6419
ff1e4526 64202012-03-13 Josh Matthews <josh@joshmatthews.net> (tiny change)
c381a3f6
JB
6421
6422 * darwin-nat-info.c (_initialize_darwin_info_commands): Add
6423 prototype.
6424 (darwin_debug_port_info): Make static.
6425 * darwin-nat.c (_initialize_darwin_inferior): Add prototype.
6426 * machoread.c (_initialize_machoread): Add prototype.
6427 * i386-darwin-nat.c (i386_darwin_dr_set, i386_darwin_dr_get)
6428 (i386_darwin_set_control, i386_darwin_get_control)
6429 i386_darwin_dr_set_addr, i386_darwin_get_addr)
6430 i386_darwin_get_status, i386_darwin_get_control):
6431 Comment out with HW_WATCHPOINT_NOT_YET_ENABLED macro.
6432
d8a5d6ee
JB
64332012-03-13 Joel Brobecker <brobecker@adacore.com>
6434
6435 * ax-gdb.c (gen_usual_unary): Remove special handling of
6436 enum and bool types.
6437
af381b8c
JB
64382012-03-13 Joel Brobecker <brobecker@adacore.com>
6439
6440 * ax-gdb.c (gen_fetch): Add handling for TYPE_CODE_RANGE types.
6441
786c562f
JB
64422012-03-13 Joel Brobecker <brobecker@adacore.com>
6443
6444 * aix-thread.c (supply_fprs): Make more consistent with fill_fprs.
6445
e3ebf1bb
JB
64462012-03-13 Chris January <chris.january@allinea.com>
6447
6448 * aix-thread.c (fill_sprs): Store the floating point registers
6449 at the correct offsets into vals.
6450
c5b7e1cb
DE
64512012-03-13 Doug Evans <dje@google.com>
6452
16899756
DE
6453 * NEWS: Mention symbol-reloading has been deleted.
6454 * symfile.c (symbol_reloading): Delete.
6455 (show_symbol_reloading): Delete.
6456 (_initialize_symfile): Delete set/show symbol-reloading.
6457
c5b7e1cb
DE
6458 * dwarf2read.c (load_partial_comp_unit): Defer adding cu to
6459 read_in_chain until we have successfully read it in.
6460 (load_full_comp_unit): Ditto.
6461 (read_signatured_type): Add comment.
6462
46cb6474
JB
64632012-03-13 Chris January <chris.january@allinea.com>
6464
6465 * stabsread.c (fix_common_block): Change type of valu argument
6466 to CORE_ADDR.
6467
76219d77
JB
64682012-03-13 Chris January <chris.january@allinea.com>
6469
6470 * rs6000-tdep.c (skip_prologue): Support the oril r29, r1, 0x0
6471 instruction.
6472
87b0bb13
JK
64732012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
6474
6475 * common/linux-procfs.c (linux_proc_get_int): New, from
6476 linux_proc_get_tgid, change its LWPID type to pid_t, add parameter
6477 field.
6478 (linux_proc_get_tgid): Only call linux_proc_get_int.
6479 (linux_proc_get_tracerpid): New.
6480 (linux_proc_pid_has_state): New, from linux_proc_pid_is_zombie.
6481 (linux_proc_pid_is_stopped, linux_proc_pid_is_zombie): Only call
6482 linux_proc_pid_has_state.
6483 * common/linux-procfs.h (linux_proc_get_tracerpid): New declaration.
6484 * common/linux-ptrace.c: Include linux-procfs.h and buffer.h.
6485 (linux_ptrace_attach_warnings): New.
6486 * common/linux-ptrace.h (struct buffer, linux_ptrace_attach_warnings):
6487 New declaration.
6488 * linux-nat.c: Include exceptions.h, linux-ptrace.h and buffer.h.
6489 (linux_nat_attach): New variables ex, buffer, message and message_s.
6490 Wrap to_attach by TRY_CATCH and call linux_ptrace_attach_warnings.
6491
5f572dec
JK
64922012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
6493
6494 * Makefile.in (linux-ptrace.o): New.
6495 * common/linux-procfs.c (linux_proc_pid_is_zombie): New,
6496 from linux-nat.c.
6497 * common/linux-procfs.h (linux_proc_pid_is_zombie): New declaration.
6498 * common/linux-ptrace.c: New file.
6499 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-ptrace.o.
6500 * config/arm/linux.mh: Likewise.
6501 * config/i386/linux.mh: Likewise.
6502 * config/i386/linux64.mh: Likewise.
6503 * config/ia64/linux.mh: Likewise.
6504 * config/m32r/linux.mh: Likewise.
6505 * config/m68k/linux.mh: Likewise.
6506 * config/mips/linux.mh: Likewise.
6507 * config/pa/linux.mh: Likewise.
6508 * config/powerpc/linux.mh: Likewise.
6509 * config/powerpc/ppc64-linux.mh: Likewise.
6510 * config/powerpc/spu-linux.mh: Likewise.
6511 * config/s390/s390.mh: Likewise.
6512 * config/sparc/linux.mh: Likewise.
6513 * config/sparc/linux64.mh: Likewise.
6514 * config/xtensa/linux.mh: Likewise.
6515 * linux-nat.c (linux_lwp_is_zombie): Remove, move it to
6516 common/linux-procfs.c.
6517 (wait_lwp): Rename linux_lwp_is_zombie to linux_proc_pid_is_zombie.
6518
44f238bb
PA
65192012-03-13 Hui Zhu <teawater@gmail.com>
6520 Pedro Alves <palves@redhat.com>
6521
6522 * breakpoint.c (init_breakpoint_sal): New flags parameter. Handle
6523 CREATE_BREAKPOINT_FLAGS_INSERTED.
6524 (create_breakpoint_sal, create_breakpoints_sal)
6525 (base_breakpoint_create_breakpoints_sal)
6526 (tracepoint_create_breakpoints_sal)
6527 (strace_marker_create_breakpoints_sal): New flags parameter. Pass
6528 down.
6529 (break_command_1, handle_gnu_v3_exceptions, trace_command)
6530 (ftrace_command, strace_command): Adjust.
6531 (create_tracepoint_from_upload): Pass
6532 CREATE_BREAKPOINT_FLAGS_INSERTED.
6533 * breakpoint.h (enum breakpoint_create_flags): New.
6534 (create_breakpoint): New flags parameter.
6535 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust.
6536 * python/py-breakpoint.c (bppy_init): Adjust.
6537 * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust.
6538 * spu-tdep.c (spu_catch_start): Adjust.
6539
1e51243a
PA
65402012-03-13 Pedro Alves <palves@redhat.com>
6541 Hui Zhu <teawater@gmail.com>
6542 Yao Qi <yao@codesourcery.com>
6543
6544 * remote.c (struct remote_state): New field `starting_up'.
6545 (remote_start_remote): Set and clear it.
6546 (remote_can_download_tracepoint): If starting up, return false.
6547
fa3064dd
YQ
65482012-03-13 Yao Qi <yao@codesourcery.com>
6549
6550 * inferior.h (struct inferior): Remove fields any_syscall_count,
6551 syscalls_counts and total_syscalls_count. Move them to new
6552 struct catch_syscall_inferior_data in breakpoint.c.
6553 * breakpoint.c: Call DEF_VEC_I(int).
6554 (struct catch_syscall_inferior_data): New.
6555 (get_catch_syscall_inferior_data): New.
6556 (catch_syscall_inferior_data_cleanup): New.
6557 (insert_catch_syscall): Update to access data in
6558 struct catch_syscall_inferior_data.
6559 (insert_catch_syscall): Likewise.
6560 (remove_catch_syscall): Likewise.
6561 (remove_catch_syscall): Likewise.
6562 (is_syscall_catchpoint_enabled): Likewise.
6563 (add_catch_command): Likewise.
6564 (_initialize_breakpoint): Register cleanup.
6565 * breakpoint.h: Removed DEF_VEC_I(int).
6566 * dwarf2loc.c: Call DEF_VEC_I(int).
6567 * mi/mi-main.c: Likewise.
6568
460fac3c
MK
65692012-03-12 Mark Kettenis <kettenis@gnu.org>
6570
6571 * inf-ptrace.c (inf_ptrace_post_attach): Make static.
6572
e1aca11e
JB
65732012-03-12 Chris January <chris.january@allinea.com>
6574
6575 * aix-thread.c (_initialize_aix_thread): Add prototype.
6576 * rs6000-nat.c (_initialize_rs6000_nat): Ditto.
6577 * xcoffsolib.c (_initialize_xcoffsolib): Ditto.
6578
649c7061
JB
65792012-03-12 Joel Brobecker <brobecker@adacore.com>
6580
6581 * amd64bsd-nat.c: Move #include of "amd64bsd-nat.h" after
6582 include of "amd64-nat.h".
6583
0b49e518
TT
65842012-03-12 Tom Tromey <tromey@redhat.com>
6585
6586 * buildsym.c (record_pending_block): Now static.
6587 * buildsym.h: (record_pending_block): Remove.
6588
fd24fa94
AT
65892012-03-12 Andreas Tobler <andreast@fgznet.ch>
6590
6591 * amd64bsd-nat.c: Include amd64bsd-nat.h.
6592
ba919b58
TT
65932012-03-09 Tom Tromey <tromey@redhat.com>
6594
6595 * dwarf2read.c (struct dwarf2_cu) <checked_producer,
6596 producer_is_gxx_lt_4_6>: New fields.
6597 (producer_is_gxx_lt_4_6): Use and update producer cache fields.
6598
a48e046c
TT
65992012-03-09 Tom Tromey <tromey@redhat.com>
6600
6601 * dwarf2read.c (dwarf2_attr): Avoid tail-recursive call.
6602
6f5e9362
JB
66032012-03-08 Joel Brobecker <brobecker@adacore.com>
6604
6605 * ravenscar-sparc-thread.c (_initialize_ravenscar_sparc): Add
6606 prototype.
6607
8d037db9
JB
66082012-03-08 Joel Brobecker <brobecker@adacore.com>
6609
6610 * ravenscar-thread.c (_initialize_ravenscar): Add prototype.
6611
4e841acf
JK
66122012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
6613
6614 Fix -Wmissing-prototypes build.
6615 * arm-linux-nat.c (get_thread_id): Make it static.
6616 * xtensa-linux-nat.c (get_thread_id): Likewise.
6617
c6030312
JB
66182012-03-08 Joel Brobecker <brobecker@adacore.com>
6619
6620 * server.c (process_point_options): If a conditional expression
6621 is found, only print a message if remote_debug is nonzero.
6622
52323be9
LM
66232012-03-08 Luis Machado <lgustavo@codesourcery.com>
6624
6625 * ax-gdb.c (gen_fetch): Fail gracefully and use error instead
6626 of internal error for unknown/unsupported types.
6627
7fe25d9b
JK
66282012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
6629
6630 Fix CU relative vs. absolute DIE offsets.
6631 * dwarf2loc.h (dwarf2_fetch_die_location_block): Rename parameter
6632 offset to offset_in_cu.
6633 * dwarf2read.c (process_enumeration_scope): Add CU offset to
6634 TYPE_OFFSET.
6635 (dwarf2_fetch_die_location_block): Rename parameter offset to
6636 offset_in_cu. New variable offset, add CU offset to OFFSET_IN_CU.
6637
05e7c244
JK
66382012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
6639
6640 * libunwind-frame.c: Rename to ...
6641 * ia64-libunwind-tdep.c: ... here.
6642 * libunwind-frame.h: Rename to ...
6643 * ia64-libunwind-tdep.h: ... here.
6644 * Makefile.in (HFILES_NO_SRCDIR): Rename libunwind-frame.h to
6645 ia64-libunwind-tdep.h.
6646 (ALLDEPFILES): Rename libunwind-frame.c to ia64-libunwind-tdep.c.
6647 * README (--with-libunwind): Rename to ...
6648 (--with-libunwind-ia64): ... here, note it is ia64 specific now.
6649 * config.in: Regenerate.
6650 * configure: Regenerate.
6651 * configure.ac: New option --with-libunwind-ia64, make the
6652 AS_HELP_STRING ia64 specific. Deprecate option --with-libunwind.
6653 Remove AC_DEFINE for HAVE_LIBUNWIND.
6654 * ia64-libunwind-tdep.c: Make the file top comment ia64 specific.
6655 Rename libunwind-frame.h #include to ia64-libunwind-tdep.h.
6656 Rename libunwind-frame in the general comment.
6657 * ia64-libunwind-tdep.h: Make the file top comment ia64 specific.
6658 Rename symbol LIBUNWIND_FRAME_H to IA64_TDEP_LIBUNWIND_FRAME_H.
6659 Move forward declarations inside #ifndef. Rename libunwind-frame in
6660 the general comment.
6661 * ia64-tdep.c: Rename libunwind-frame.h #include to
6662 ia64-libunwind-tdep.h.
6663 (ia64_gdb2uw_regnum, ia64_uw2gdb_regnum, ia64_is_fpreg)
6664 (ia64_libunwind_descr): Rename libunwind-frame to
6665 ia64-libunwind-tdep in these function comments.
6666 * ia64-tdep.h: Rename libunwind-frame.h #include to
6667 ia64-libunwind-tdep.h.
6668 * ia64-vms-tdep.c (ia64_vms_libunwind_descr): Rename libunwind-frame to
6669 ia64-libunwind-tdep in that data comment.
6670
3755cbfd
JK
66712012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
6672
6673 * libunwind-frame.h (struct frame_unwind): New declaration.
6674
d1cda5d9
JB
66752012-03-08 Joel Brobecker <brobecker@adacore.com>
6676
6677 * breakpoint.c (_initialize_breakpoint): Fix error in help of
6678 "set breakpoint condition-evaluation" command.
6679
a0ba0aa2
TG
66802012-03-08 Tristan Gingold <gingold@adacore.com>
6681
6682 * sparc-stub.c: Move to stubs/
6683 * sh-stub.c: Likewise.
6684 * m68k-stub.c: Likewise.
6685 * m32r-stub.c: Likewise.
6686 * i386-stub.c: Likewise.
6687
7b8b6d6d
AS
66882012-03-08 Andreas Schwab <schwab@linux-m68k.org>
6689
007cafee
AS
6690 * m68klinux-tdep.c (m68k_linux_init_abi): Register
6691 linux_get_siginfo_type.
6692
7b8b6d6d
AS
6693 * m68klinux-nat.c: Include "gdb_proc_service.h".
6694 (PTRACE_GET_THREAD_AREA): Define.
6695 (ps_get_thread_area): New function.
6696
bba74b36
YQ
66972012-03-08 Yao Qi <yao@codesourcery.com>
6698
6699 * remote.c (remote_get_noisy_reply): Replace `sprintf' with
6700 `xsnprintf'.
6701 (remote_query_attached): Likewise.
6702 (remote_static_tracepoint_marker_at): Likewise.
6703 (remote_set_permissions): Likewise.
6704 (remote_detach_1, extended_remote_attach_1): Likewise.
6705 (send_g_packet, remote_vkill): Likewise.
6706 (extended_remote_disable_randomization): Likewise.
6707 (remote_add_target_side_condition): Likewise.
6708 (remote_insert_breakpoint): Likewise.
6709 (remote_remove_breakpoint): Likewise.
6710 (remote_insert_watchpoint): Likewise.
6711 (remote_remove_watchpoint): Likewise.
6712 (remote_insert_hw_breakpoint): Likewise.
6713 (remote_insert_hw_breakpoint): Likewise.
6714 (remote_remove_hw_breakpoint): Likewise.
6715 (remote_download_command_source): Likewise.
6716 (remote_download_tracepoint): Likewise.
6717 (remote_download_trace_state_variable): Likewise.
6718 (remote_disable_tracepoint): Likewise.
6719 (remote_trace_set_readonly_regions): Likewise.
6720 (remote_get_tracepoint_status): Likewise.
6721 (remote_trace_find): Likewise.
6722 (remote_get_trace_state_variable_value): Likewise.
6723 (remote_set_disconnected_tracing): Likewise.
6724 (remote_set_circular_trace_buffer): Likewise.
6725 (remote_get_min_fast_tracepoint_insn_len): Likewise.
6726 (remote_use_agent): Likewise.
6727 (remote_add_target_side_condition): Add one parameter BUF_SIZE.
6728 Update callers.
6729
9b224c5e
PA
67302012-03-07 Pedro Alves <palves@redhat.com>
6731
6732 * NEWS: Mention QProgramSignals.
6733 * inferior.h (update_signals_program_target): Declare.
6734 * infrun.c: (update_signals_program_target): New.
6735 (handle_command): Update the target of the new program signals
6736 array changes.
6737 * remote.c (PACKET_QProgramSignals): New enum.
6738 (last_program_signals_packet): New global.
6739 (remote_program_signals): New.
6740 (remote_start_remote): Update the target with the program signals
6741 list.
6742 (remote_protocol_features): Add entry for QPassSignals.
6743 (remote_open_1): Free anc clear last_program_signals_packet.
6744 (init_remote_ops): Install remote_program_signals.
6745 * target.c (update_current_target): Adjust.
6746 (target_program_signals): New.
6747 * target.h (struct target_ops) <to_program_signals>: New field.
6748 (target_program_signals): Declare.
6749
74c48cbb
PA
67502012-03-07 Pedro Alves <palves@redhat.com>
6751
6752 * NEWS: Add subtitle for new z0/z1 conditional breakpoint
6753 extensions.
6754
0c13fc49
AS
67552012-03-07 Andreas Schwab <schwab@linux-m68k.org>
6756
6757 * m68klinux-nat.c (getregs_supplies): Make static.
6758 (getfpregs_supplies): Likewise.
6759 (have_ptrace_getregs): Likewise.
6760
1281d2a3
JB
67612012-03-06 Joel Brobecker <brobecker@adacore.com>
6762
6763 * dwarf2read.c (dwarf2_get_die_type): Pass absolute offset
6764 in call to get_die_type_at_offset.
6765
2b03b41d
SS
67662012-03-06 Stan Shebs <stan@codesourcery.com>
6767
6768 * mi/mi-cmd-break.c: Enforce coding standards, fix comments.
6769 * mi/mi-cmd-disas.c: Ditto.
6770 * mi/mi-cmd-env.c: Ditto.
6771 * mi/mi-cmd-file.c: Ditto.
6772 * mi/mi-cmd-stack.c: Ditto.
6773 * mi/mi-cmd-target.c: Ditto.
6774 * mi/mi-cmd-var.c: Ditto.
6775 * mi/mi-cmds.c: Ditto.
6776 * mi/mi-cmds.h: Ditto.
6777 * mi/mi-console.c: Ditto.
6778 * mi/mi-getopt.c: Ditto.
6779 * mi/mi-getopt.h: Ditto.
6780 * mi/mi-interp.c: Ditto.
6781 * mi/mi-main.c: Ditto.
6782 * mi/mi-out.c: Ditto.
6783 * mi/mi-parse.c: Ditto.
6784 * mi/mi-parse.h: Ditto.
6785 * mi/mi-symbol-cmds.c: Ditto.
6786
6787 * mi/mi-getopt.h: Move mi_opt struct up.
6788 * mi/mi-main.c (captured_mi_execute_command): Remove redundant
6789 return.
6790 * mi/mi-out.c (_initialize_mi_out): Remove empty initialize.
6791
c988ad87
TT
67922012-03-06 Tom Tromey <tromey@redhat.com>
6793
6794 * proc-service.c (ps_pglobal_lookup): Set the current program
6795 space.
6796
1b7c1b10
PA
67972012-03-06 Pedro Alves <palves@redhat.com>
6798
6799 * gregset.h [HAVE_SYS_PROCFS_H]: Include <sys/procfs.h>.
6800
3c182069
JB
68012012-03-05 Joel Brobecker <brobecker@adacore.com>
6802
6803 * MAINTAINERS: List Maciej W. Rozycki as the mips maintainer.
6804
2e794194
JK
68052012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
6806
6807 Code cleanup.
6808 * common/linux-osdata.c (linux_common_core_of_thread): New function
6809 comment.
6810 * linux-nat.c (linux_nat_wait_1): Replace linux_nat_core_of_thread_1
6811 call by linux_common_core_of_thread.
6812 (linux_nat_core_of_thread_1): Remove.
6813 * linux-nat.h (linux_nat_core_of_thread_1): Remove declaration.
6814 * linux-thread-db.c: Include linux-osdata.h.
6815 (update_thread_core): Replace linux_nat_core_of_thread_1 call by
6816 linux_common_core_of_thread.
6817
9f9f1f31
TT
68182012-03-05 Tom Tromey <tromey@redhat.com>
6819
6820 * value.c (value_primitive_field): Don't fetch contents for
6821 non-virtual bases.
6822
b7b189f3
TT
68232012-03-05 Tom Tromey <tromey@redhat.com>
6824
6825 * jv-valprint.c (java_value_print): Correctly compute 'obj_addr'.
6826
05b8a789 68272012-03-05 Andreas Arnez <arnez@linux.vnet.ibm.com>
5538f557 6828
5538f557
JB
6829 * s390-nat.c: Include "gregset.h".
6830
75528772
JK
68312012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
6832
6833 * libunwind-frame.c (LIBUNWIND_SO): Change .7 to .8.
6834 [!LIBUNWIND_SO] (LIBUNWIND_SO_7): New #define.
6835 (libunwind_load): New variable so_error, use it for dlerror. Try to
6836 load also LIBUNWIND_SO_7.
6837
275418ae
PA
68382012-03-05 Pedro Alves <palves@redhat.com>
6839
6840 * i387-tdep.c (i387_supply_xsave): Assert the xsave section buffer
6841 is not NULL, and remove resulting dead code.
6842
5cbb9812
TS
68432012-03-05 Thomas Schwinge <thomas@codesourcery.com>
6844
6845 * sh-tdep.c (sh_skip_prologue): Provide an upper limit on the function
6846 prologue to sh_analyze_prologue.
6847 (sh_analyze_prologue): Make better use of such an upper limit, and
6848 generally be more cautious about accessing memory.
6849
541515ad
TT
68502012-03-05 Tom Tromey <tromey@redhat.com>
6851
6852 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Rename from
6853 _initialize_ia64_hpux_tdep.
6854
b4d36fb8
PA
68552012-03-05 Pedro Alves <palves@redhat.com>
6856
24490249
PA
6857 PR gdb/13766
6858
b4d36fb8
PA
6859 * i387-tdep.c (i387_supply_xsave): If we have an xsave buffer, and
6860 the register state is clear, supply explicit zero, instead of
6861 marking the register unavailable.
6862
60c9a3c0
TG
68632012-03-05 Tristan Gingold <gingold@adacore.com>
6864
6865 * NEWS: Mention OpenVMS ia64 new target.
6866
696759ad
TG
68672012-03-05 Tristan Gingold <gingold@adacore.com>
6868
6869 * ia64-tdep.h: Include libunwind-frame.h and libunwind-ia64.h.
6870 (ia64_unw_accessors, ia64_unw_rse_accessors)
6871 (ia64_libunwind_descr): Declare.
6872 * ia64-vms-tdep.c: New file.
6873 * ia64-tdep.c (ia64_unw_accessors, ia64_unw_rse_accessors)
6874 (ia64_libunwind_descr): Make them public.
6875 * configure.tgt: Add ia64-*-*vms*.
6876 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-vms-tdep.o
6877 (ALLDEPFILES): Add ia64-vms-tdep.c
6878
34864976
TG
68792012-03-05 Tristan Gingold <gingold@adacore.com>
6880
169081d0
TG
6881 * target.h (target_object): Add TARGET_OBJECT_OPENVMS_UIB.
6882 * remote.c (PACKET_qXfer_uib): New enum value.
6883 (remote_protocol_features): Add entry for PACKET_qXfer_uib.
6884 (remote_xfer_partial): Handle TARGET_OBJECT_OPENVMS_UIB.
6885 (_initialize_remote): Call add_packet_config_cmd for
6886 xfer:uib packet.
6887
68882012-03-05 Tristan Gingold <gingold@adacore.com>
6889
6890 * osabi.c (gdb_osabi_names): Add OpenVMS.
6891 (generic_elf_osabi_sniffer): Likewise.
6892 * defs.h (gdb_osabi): Add GDB_OSABI_OPENVMS.
34864976 6893
6597b100
JK
68942012-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
6895
6896 Removed unused code.
6897 * libunwind-frame.c (libunwind_frame_unwind)
6898 (libunwind_frame_base_address): Remove.
6899 * libunwind-frame.h (libunwind_frame_base_address): Remove declaration.
6900
87399aa1
YQ
69012012-03-04 Yao Qi <yao@codesourcery.com>
6902
6903 * common/agent.c (gdb_connect_sync_socket): Add _ markup and
6904 remove trailing new line.
6905 (agent_run_command, agent_run_command): Add _ markup.
6906 (agent_capability_check): Likewise.
6907
abf1152a
JK
69082012-03-03 Jan Kratochvil <jan.kratochvil@redhat.com>
6909
6910 * breakpoint.c (set_condition_evaluation_mode): Set
6911 CONDITION_EVALUATION_MODE unconditionally.
6912
5808517f
YQ
69132012-03-03 Yao Qi <yao@codesourcery.com>
6914
6915 * common/agent.c (agent_look_up_symbols): Add one parameter 'arg'.
6916 * common/agent.h: Update declaration.
6917 * inf-child.c (inf_child_use_agent): New.
6918 (inf_child_can_use_agent): New.
6919 (inf_child_target): Initialize fields `to_use_agent'
6920 and `to_can_use_agent'.
6921 * agent.c (agent_new_objfile): New.
89b7509a 6922 (_initialize_agent): Add agent_new_objfile to new_objfile
5808517f
YQ
6923 observer.
6924
6925 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
6926 New.
89b7509a 6927 (linux_target_install_ops): Initialize field
5808517f
YQ
6928 `to_static_tracepoint_markers_by_strid'.
6929 * remote.c (free_current_marker): Move it to ...
6930 * tracepoint.c (free_current_marker): ... here. New.
6931 (cleanup_target_stop): New.
6932 * tracepoint.h: Declare free_current_marker.
6933 * NEWS: Add one entry about `info static-tracepoint-marker'.
6934
58b4daa5
YQ
69352012-03-03 Yao Qi <yao@codesourcery.com>
6936
6937 * common/agent.c (agent_loaded_p): New.
89b7509a 6938 (agent_look_up_symbols): New global.
58b4daa5
YQ
6939 * common/agent.h: Declare agent_loaded_p.
6940
8ffcbaaf
YQ
69412012-03-03 Yao Qi <yao@codesourcery.com>
6942
6943 * common/agent.c (struct ipa_sym_addresses) <addr_capability>: New.
6944 (agent_capability_check, agent_capability_invalidate): New.
6945 (symbol_list): New array element.
6946 * common/agent.h (enum agent_capa): New.
6947 * target.c (target_pre_inferior): Call agent_capability_invalidate.
6948
d1feda86
YQ
69492012-03-03 Yao Qi <yao@codesourcery.com>
6950
6951 * target.h (struct target_ops) <to_use_agent>: New field.
6952 (struct target_ops) <to_can_use_agent>: New field.
6953 (target_use_agent, target_can_use_agent): New macro.
6954 * target.c (update_current_target): Update.
6955 * remote.c: New enum `PACKET_QAgent'.
6956 (remote_protocol_features): Add a new element.
6957 (remote_use_agent, remote_can_use_agent): New.
6958 (init_remote_ops): Initialize field `can_use_agent' with
6959 remote_can_use_agent. Intiailize field `use_agent' with
6960 remote_use_agent.
6961 * common/agent.c (use_agent): New global.
6962 * common/agent.h: Declare it.
6963 * tracepoint.c (info_static_tracepoint_markers_command): Add
6964 comment.
6965 * Makefile.in (SFILES): Add common/agent.c and agent.c.
6966 (COMMON_OBS): Add common/agent.o and agent.o
6967 (common-agent.o): New rule.
6968 * agent.c: New.
6969
2fa291ac
YQ
69702012-03-03 Yao Qi <yao@codesourcery.com>
6971
6972 * common/agent.c: New.
6973 * common/agent.h: New.
6974 * configure.ac: Add `sys/socket.h' and `sys/un.h' to
6975 AC_CHECK_HEADERS.
6976 * configure, configh.in: Regenerated.
6977
9fc05685
KB
69782012-03-02 Kevin Buettner <kevinb@redhat.com>
6979
6980 * sh-tdep.c (sh_frame_cache): Don't fetch the FPSCR register
6981 unless it exists for this architecture.
6982
a5ee536b
JB
69832012-03-02 Joel Brobecker <brobecker@adacore.com>
6984
6985 * language.h (struct language_defn): New "method" la_read_var_value.
6986 * findvar.c: #include "language.h".
6987 (default_read_var_value): Renames read_var_value. Rewrite
6988 function description.
6989 (read_var_value): New function.
6990 * value.h (default_read_var_value): Add prototype.
6991 * ada-lang.c (ada_read_renaming_var_value, ada_read_var_value):
6992 New functions.
6993 (ada_language_defn): Add entry for la_read_var_value.
6994 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, language.c,
6995 * m2-lang.c, objc-lang.c, opencl-lang.c, p-lang.c: Update
6996 language_defn structures to add entry for new la_read_var_value
6997 field.
6998
f59f708a
PA
69992012-03-02 Tom Tromey <tromey@redhat.com>
7000 Pedro Alves <palves@redhat.com>
7001
7002 PR breakpoints/13776:
7003 * breakpoint.c (breakpoint_init_inferior): Delete step-resume
7004 breakpoints.
7005 (delete_longjmp_breakpoint_at_next_stop): New.
7006 * breakpoint.h (delete_longjmp_breakpoint_at_next_stop): Declare.
7007 * target.c (generic_mourn_inferior): Call mark_breakpoints_out
7008 before deleting the inferior. Add comments.
7009 * thread.c (clear_thread_inferior_resources): Don't delete lonjmp
7010 breakpoints immediately, but only on next stop. Move that code
7011 next to where we mark other breakpoints for deletion.
7012
44099a67
JB
70132012-03-02 Joel Brobecker <brobecker@adacore.com>
7014
7015 * mips-linux-nat.c (mips_linux_read_description): Add missing i18n
7016 marker.
7017 * mips-tdep.c (mips_linux_reg_names): Improve comment to avoid ARI
7018 violation.
7019
2a2ef594
PA
70202012-03-02 Pedro Alves <palves@redhat.com>
7021
7022 * linux-thread-db.c (attach_thread): Avoid in_thread_list call.
7023
b261e0c5
UW
70242012-03-02 Ulrich Weigand <uweigand@de.ibm.com>
7025
7026 Fix -Wmissing-prototypes build.
7027 * ppc-linux-nat.c (ppc_linux_get_hwcap): Make static.
7028 * remote-sim.c (gdbsim_has_all_memory): Likewise.
7029 (gdbsim_has_memory): Likewise.
7030
a95babbf
YQ
70312012-03-02 Yao Qi <yao@codesourcery.com>
7032
7033 Fix -Wmissing-prototypes build.
7034 * charset.c (phony_iconv_open): Make static.
7035 (phony_iconv_close, phony_iconv): Likewise.
7036 * i386-linux-nat.c (_initialize_i386_linux_nat): New prototype.
7037 * i386-windows-nat.c (_initialize_i386_windows_nat): New
7038 prototype.
7039 * mingw-hdep.c (_initialize_mingw_hdep): New prototype.
7040 * ser-mingw.c (create_select_thread): Make static.
7041 * windows-termcap.c (tgetent): New prototype.
7042 (tgetnum, tgetflag, tgetstr, tputs, tgoto): Likewise.
7043
d603d4b3
JK
70442012-03-02 Zhang Yuanhui <asmwarrior@gmail.com>
7045
7046 Fix -Wmissing-prototypes build.
7047 * windows-nat.c (dll_symbol_command, ctrl_c_handler): Make them static.
7048 (_initialize_windows_nat, _initialize_check_for_gdb_ini)
7049 (_initialize_loadable): New prototypes.
7050
7fb3ad1f
DE
70512012-03-02 Doug Evans <dje@google.com>
7052
7053 * dwarf2read.c (load_full_comp_unit): Remove unnecessary reading of
7054 abbrev table, read_comp_unit will do it.
7055
693be288
JK
70562012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7057
7058 Fix -Wmissing-prototypes build.
7059 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Make it static.
7060 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): New prototype.
7061 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Likewise.
7062 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code): Make it static.
7063 (_initialize_arm_symbian_tdep): New prototype.
7064 * arm-wince-tdep.c (arm_wince_skip_main_prologue): Make it static.
7065 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): New prototype.
7066 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Make it
7067 static.
7068 * lm32-tdep.c (_initialize_lm32_tdep): New prototype.
7069 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): New
7070 prototype.
7071 * microblaze-tdep.c (microblaze_debug, microblaze_fetch_instruction)
7072 (microblaze_skip_prologue, microblaze_frame_cache): Make them static.
7073 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Make it
7074 static.
7075 * moxie-tdep.c (moxie_process_record): Likewise.
7076 * remote-mips.c (mips_can_use_watchpoint, mips_insert_watchpoint)
7077 (mips_remove_watchpoint, mips_stopped_by_watchpoint): Make them static.
7078 * rl78-tdep.c (rl78_breakpoint_from_pc): Make it static.
7079 (_initialize_rl78_tdep): New prototype.
7080 * rx-tdep.c (rx_breakpoint_from_pc): Make it static.
7081 (_initialize_rx_tdep): New prototype.
7082 * solib-darwin.c (darwin_in_dynsym_resolve_code): Make it static.
7083 (_initialize_darwin_solib): New prototype.
7084 * solib-spu.c: Include solib-spu.h.
7085 (_initialize_spu_solib): New prototype.
7086 * spu-multiarch.c (_initialize_spu_multiarch): New prototype.
7087 * tic6x-tdep.c (tic6x_analyze_prologue, tic6x_skip_prologue)
7088 (tic6x_breakpoint_from_pc, tic6x_frame_unwind_cache)
7089 (tic6x_software_single_step): Make it static.
7090 (_initialize_tic6x_tdep): New prototype.
7091
638234e5
JK
70922012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7093
7094 Fix -Wmissing-prototypes build.
7095 * cris-tdep.c (cris_can_use_hardware_watchpoint)
7096 (cris_region_ok_for_watchpoint, cris_stopped_data_address): Remove.
7097
f4a6f16d
JK
70982012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
7099
7100 Fix -Wmissing-prototypes build.
7101 * frv-tdep.c (frv_check_watch_resources, frv_stopped_data_address)
7102 (frv_have_stopped_data_address): Remove.
7103
04dcf5fa
JK
71042012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
7105
7106 Fix -Wmissing-prototypes build.
7107 * Makefile.in (HFILES_NO_SRCDIR): Add sh64-tdep.h.
7108 * sh-tdep.c: Include sh64-tdep.h.
7109 * sh-tdep.h (sh64_gdbarch_init, sh64_show_regs): Remove declarations.
7110 * sh64-tdep.c: Include sh64-tdep.h.
7111 * sh64-tdep.h: New file.
7112
19080931
MR
71132012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
7114
7115 * mips-tdep.c (mips32_scan_prologue): Correct indentation.
7116
9aac7884
MR
71172012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
7118
7119 * mips-tdep.c (mips_gdbarch_init): Only set pc_regnum and
7120 sp_regnum once the gdbarch_init_osabi hook has been called.
7121
a385295e
MR
71222012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
7123
7124 * mips-tdep.c (mips32_bc1_pc): New function.
7125 (mips32_next_pc): Handle BC1ANY2F, BC1ANY2T, BC1ANY4F, BC1ANY4T,
7126 BPOSGE32 and BPOSGE64 instructions.
7127 (deal_with_atomic_sequence): Likewise.
7128 (mips32_instruction_has_delay_slot): Likewise.
7129
1faeff08 71302012-03-01 Maciej W. Rozycki <macro@mips.com>
a09130f9
PA
7131 Chris Dearman <chris@mips.com>
7132 Maciej W. Rozycki <macro@codesourcery.com>
7133 Joseph Myers <joseph@codesourcery.com>
1faeff08
MR
7134
7135 * features/mips-dsp.xml: New file.
7136 * features/mips64-dsp.xml: New file.
7137 * features/mips-dsp-linux.xml: New file.
7138 * features/mips64-dsp-linux.xml: New file.
7139 * features/Makefile (WHICH): Add mips-dsp-linux and
7140 mips64-dsp-linux.
7141 (mips-dsp-expedite, mips64-dsp-expedite): New variables.
7142 * features/mips-dsp-linux.c: New file.
7143 * features/mips64-dsp-linux.c: New file.
7144 * regformats/mips-dsp-linux.dat: New file.
7145 * regformats/mips64-dsp-linux.dat: New file.
7146 * mips-linux-nat.c (mips_linux_register_addr): Handle DSP
7147 registers.
7148 (mips64_linux_register_addr): Likewise.
7149 (mips64_linux_regsets_fetch_registers): Likewise.
7150 (mips64_linux_regsets_store_registers): Likewise.
7151 (mips64_linux_fetch_registers): Update call to
7152 mips64_linux_regsets_fetch_registers.
7153 (mips64_linux_store_registers): Update call to
7154 mips64_linux_regsets_store_registers.
7155 (mips_linux_read_description): Probe for DSP registers.
7156 (_initialize_mips_linux_nat): Call initialize_tdesc_mips_dsp_linux
7157 and initialize_tdesc_mips64_dsp_linux.
7158 * mips-linux-tdep.c (supply_gregset, mips64_supply_gregset):
7159 Remove padding of no longer used embedded register slots.
7160 * mips-linux-tdep.h (DSP_BASE, DSP_CONTROL): New macros.
7161 (MIPS_RESTART_REGNUM): Redefine enum value.
7162 * mips-tdep.c (mips_generic_reg_names): Remove trailing null
7163 strings.
7164 (mips_tx39_reg_names): Likewise.
7165 (mips_linux_reg_names): New array of register names for Linux
7166 targets.
7167 (mips_register_name): Check for a null pointer in
7168 mips_processor_reg_names and return an empty string.
7169 (mips_register_type): Exclude embedded registers for the IRIX
7170 and Linux ABIs.
7171 (mips_pseudo_register_type): Likewise. Use dynamic numbers to
7172 refer to FP registers, LO, HI, BadVAddr, Cause and PC. Handle
7173 DSP registers.
7174 (mips_stab_reg_to_regnum): Handle DSP accumulators.
7175 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Likewise.
7176 (mips_gdbarch_init): Likewise. Initialize internal register
7177 indices for the Linux ABI. Use dynamic numbers to refer to
7178 registers, as applicable, while parsing the target description.
7179 * mips-tdep.h (struct mips_regnum): Add dspacc/dspctl offsets.
7180
263689d8
JB
71812012-03-01 Joel Brobecker <brobecker@adacore.com>
7182
7183 * frame.h (read_frame_register_unsigned): Fix typo in function
7184 description.
7185
f3b4f45c
PA
71862012-03-01 Pedro Alves <palves@redhat.com>
7187
7188 * jit-reader.in [!__cplusplus]
7189 (GDB_DECLARE_GPL_COMPATIBLE_READER): Add missing backslash.
7190
b03a2011
PA
71912012-03-01 Pedro Alves <palves@redhat.com>
7192
7193 * configure.ac (build_warnings): Add -Wmissing-prototypes.
7194 * configure: Regenerate.
7195
70221824
PA
71962012-03-01 Pedro Alves <palves@redhat.com>
7197
7198 * amd64-linux-tdep.c (amd64_linux_record_signal): Make static.
7199 * breakpoint.c (create_exception_master_breakpoint, trace_command)
7200 (ftrace_command, strace_command): Make static.
7201 * d-lang.c (_initialize_d_language): Declare.
7202 * dwarf2expr.c (_initialize_dwarf2expr): Declare.
7203 * dwarf2loc.c (_initialize_dwarf2loc):
7204 * dwarf2read.c (process_psymtab_comp_unit): Make static.
7205 * exec.c (exec_get_section_table): Make static.
7206 * i386-linux-tdep.c (i386_linux_record_signal): Make static.
7207 * infcmd.c (ensure_valid_thread, ensure_not_tfind_mode): Make static.
7208 * inferior.c (remove_inferior_command, add_inferior_command)
7209 (clone_inferior_command): Make static.
7210 * linux-nat.c (linux_nat_thread_address_space)
7211 (linux_nat_core_of_thread): Make static.
7212 * linux-tdep.c (_initialize_linux_tdep): Declare.
7213 * objc-lang.c (_initialize_objc_lang): Declare.
7214 * opencl-lang.c (builtin_opencl_type, opencl_language_arch_info):
7215 Make static.
7216 (_initialize_opencl_language): Declare.
7217 * record.c (_initialize_record): Declare.
7218 * remote.c (demand_private_info, remote_get_tib_address)
7219 (remote_supports_cond_tracepoints)
7220 (remote_supports_fast_tracepoints, remote_get_tracepoint_status):
7221 Make static.
7222 * skip.c (_initialize_step_skip): Declare.
7223 * symtab.c (skip_prologue_using_lineinfo): Make static.
7224 * tracepoint.c (delete_trace_state_variable)
7225 (trace_variable_command, delete_trace_variable_command)
7226 (get_uploaded_tsv, find_matching_tracepoint_location)
7227 (find_matching_tsv, create_tsv_from_upload, get_traceframe_info):
7228 Make static.
7229 * value.c (pack_unsigned_long): Make static.
7230 * varobj.c (varobj_ensure_python_env): Make static.
7231 * windows-tdep.c (_initialize_windows_tdep): Declare.
7232 * xml-syscall.c (make_cleanup_free_syscalls_info): Make static.
7233
33fbcbee
PA
72342012-03-01 Pedro Alves <palves@redhat.com>
7235
7236 * linux-tdep.c (linux_has_shared_address_space): Make static. Add
7237 gdbarch parameter.
7238 (linux_init_abi): Install it as has_shared_address_space gdbarch
7239 callback.
7240
44d0cd3b
PA
72412012-03-01 Pedro Alves <palves@redhat.com>
7242
7243 * observer.c (observer_test_first_notification_function)
7244 (observer_test_second_notification_function)
7245 (observer_test_third_notification_function): Add declarations.
7246
ed01b82c
PA
72472012-03-01 Pedro Alves <palves@redhat.com>
7248
7249 * common/signals.c (default_target_signal_to_host)
7250 (default_target_signal_from_host): Move ...
7251 * arch-utils.c: ... here.
7252 * arch-utils.h (default_target_signal_to_host)
7253 (default_target_signal_from_host): Declare.
7254
7255 * common/signals.c (target_signal_from_command): Move ...
7256 * infrun.c: ... here.
7257 * inferior.h (target_signal_from_command): Declare.
7258 * target.h (target_signal_from_command)
7259 (default_target_signal_from_host, default_target_signal_to_host):
7260 Delete declarations.
7261
7262 * common/signals.c (_initialize_signals): Delete.
7263
c9b87335
PA
72642012-03-01 Pedro Alves <palves@redhat.com>
7265
7266 * jit-reader.in (plugin_is_GPL_compatible): Add declarations for
7267 both __cplusplus and !__cplusplus.
7268
9340a6c0
PA
72692012-03-01 Pedro Alves <palves@redhat.com>
7270
7271 * psymtab.c (find_and_open_source): Delete declaration.
7272 * source.c (find_and_open_source): Move comment ...
7273 * source.h (find_and_open_source): ... to this new declaration.
7274
e451c4a1
PA
72752012-03-01 Pedro Alves <palves@redhat.com>
7276
7277 * inline-frame.c: Include inline-frame.h.
7278
983fb104
PA
72792012-03-01 Pedro Alves <palves@redhat.com>
7280
7281 * tui/tui-data.c (set_gen_win_origin): Delete.
7282 * tui/tui-data.h (tui_set_gen_win_origin): Delete declaration.
7283 * tui/tui-regs.c (tui_last_reg_element_no_in_line): Delete.
7284
5fbce5df
PA
72852012-03-01 Pedro Alves <palves@redhat.com>
7286
7287 * remote.c (encode_actions): Delete declaration.
7288 * tracepoint.c (encode_actions): Make extern.
7289 * tracepoint.h (encode_actions): Declare.
7290
49a8461d
PA
72912012-03-01 Pedro Alves <palves@redhat.com>
7292
7293 * python/py-breakpoint.c: Include python.h.
7294 * python/py-continueevent.c (create_continue_event_object): Make
7295 static.
7296 * python/py-lazy-string.c (stpy_get_type): Make static.
7297 * python/py-newobjfileevent.c (create_new_objfile_event_object):
7298 Make static.
7299 * python/py-utils.c (unicode_to_target_python_string): Make
7300 static.
7301 * python/py-value.c: Include python.h.
7302
9079102f
PA
73032012-03-01 Pedro Alves <palves@redhat.com>
7304
7305 * inferior.c (delete_threads_of_inferior): Delete.
7306
a298c5e8
PA
73072012-03-01 Pedro Alves <palves@redhat.com>
7308
7309 Import fallback definitions from glibc.
7310
7311 * gdb_proc_service.h [!HAVE_PROC_SERVICE_H] (struct
7312 ps_prochandle): Forward declare.
7313 (ps_err_e): Use glibc's comments.
7314 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
7315 (ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
7316 (ps_lsetfpregs, ps_getpid, ps_get_thread_area, ps_pglobal_lookup)
7317 (ps_pstop, ps_pcontinue, ps_lstop, ps_lcontinue, ps_lgetxregsize)
7318 (ps_lgetxregs, ps_lsetxregs, ps_plog): Declare.
7319 (struct ps_prochandle): Adjust comment.
7320
e3084549
PA
73212012-03-01 Pedro Alves <palves@redhat.com>
7322
7323 * ada-lang.c (ada_modulus_from_name): Delete.
7324 * ada-lex.l (lexer_init): Make static.
7325
ad5f7d6e
PA
73262012-03-01 Pedro Alves <palves@redhat.com>
7327
7328 PR gdb/13767
7329
7330 * frame.c (read_frame_register_unsigned): New.
7331 * frame.h (read_frame_register_unsigned): Declare.
7332 * i387-tdep.c (print_i387_status_word): New parameter `status_p'.
7333 Handle it.
7334 (print_i387_control_word): New parameter `control_p'. Handle it.
7335 (i387_print_float_info): Handle unavailable float registers.
7336
e0a4d108
KS
73372012-03-01 Keith Seitz <keiths@redhat.com>
7338
7339 * linespec.c (decode_line_2): Sort the list of methods
7340 alphabetically before presenting the user with a selection
7341 menu.
7342
122d1940
DE
73432012-03-01 Doug Evans <dje@google.com>
7344
7345 * dwarf2read.c (dwarf2_cu): Remove unused members has_form_ref_addr,
7346 has_namespace_info.
7347 (dwarf2_read_abbrevs): Remove corresponding initialization.
7348
7d74f244
DE
73492012-03-01 Scott J. Goldman <scottjg@vmware.com>
7350
7351 * NEWS: Mention new python command class gdb.COMMAND_USER.
7352 * cli/cli-cmds.c (show_user): Print error when used on a python
7353 command.
7354 (init_cli_cmds): Update documentation strings for "show user" and
7355 "set/show max-user-call-depth" to clarify that it does not apply to
7356 python commands.
7357 * python/py-cmd.c (cmdpy_init): Treat class_user as a valid class in
7358 error check.
7359 (gdbpy_initialize_commands): Add COMMAND_USER as a constant in
7360 gdb python api.
7361 * top.c (execute_command): Only execute a user-defined command as a
7362 legacy macro if c->user_commands is set.
7363
e88acd96
TT
73642012-03-01 Tom Tromey <tromey@redhat.com>
7365
7366 * valprint.h (struct generic_val_print_decorations): New.
7367 (generic_val_print): Declare.
7368 * valprint.c (generic_val_print): New function.
7369 * p-valprint.c (p_decorations): New global.
7370 (pascal_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM,
7371 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_RANGE, TYPE_CODE_INT,
7372 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ERROR, TYPE_CODE_UNDEF,
7373 TYPE_CODE_BOOL, TYPE_CODE_CHAR>: Call generic_val_print.
7374 * m2-valprint.c (m2_decorations): New global.
7375 (m2_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM, TYPE_CODE_FUNC,
7376 TYPE_CODE_BOOL, TYPE_CODE_RANGE, TYPE_CODE_INT, TYPE_CODE_CHAR,
7377 TYPE_CODE_FLT, TYPE_CODE_METHOD, TYPE_CODE_VOID, TYPE_CODE_UNDEF,
7378 TYPE_CODE_ERROR>: Call generic_val_print.
7379 * f-valprint.c (f_decorations): New global.
7380 (f_val_print): Use print_function_pointer_address.
7381 <TYPE_CODE_REF, TYPE_CODE_FUNC, TYPE_CODE_CHAR, TYPE_CODE_FLAGS,
7382 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ENUM, TYPE_CODE_RANGE,
7383 TYPE_CODE_BOOL, TYPE_CODE_COMPLEX, TYPE_CODE_UNDEF>: Call
7384 generic_val_print.
7385 * c-valprint.c (c_decorations): New global.
7386 (c_val_print) <TYPE_CODE_MEMBERPTR, TYPE_CODE_REF, TYPE_CODE_ENUM,
7387 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_METHOD, TYPE_CODE_BOOL,
7388 TYPE_CODE_RANGE, TYPE_CODE_CHAR, TYPE_CODE_FLT,
7389 TYPE_CODE_DECFLOAT, TYPE_CODE_VOID, TYPE_CODE_ERROR,
7390 TYPE_CODE_UNDEF, TYPE_CODE_COMPLEX>: Call generic_val_print.
7391 * ada-valprint.c (ada_val_print_1) <TYPE_CODE_FLAGS>: Remove
7392 case.
7393
d3eab38a
TT
73942012-03-01 Tom Tromey <tromey@redhat.com>
7395
7396 * valprint.c (val_print): Update.
7397 * p-valprint (pascal_val_print): Return void.
7398 * p-lang.h (pascal_val_print): Return void.
7399 * m2-valprint.c (m2_val_print): Return void.
7400 * m2-lang.h (m2_val_print): Return void.
7401 * language.h (struct language_defn) <la_val_print>: Return void.
7402 * language.c (unk_lang_val_print): Return void.
7403 * jv-valprint.c (java_val_print): Return void.
7404 * jv-lang.h (java_val_print): Return void.
7405 * f-valprint.c (f_val_print): Return void.
7406 * f-lang.h (f_val_print): Return void.
7407 * d-valprint.c (d_val_print): Return void.
7408 (dynamic_array_type): Update.
7409 * d-lang.h (d_val_print): Return void.
7410 * c-valprint.c (c_val_print): Return void.
7411 * c-lang.h (c_val_print): Return void.
7412 * ada-valprint.c (ada_vada_val_print, ada_val_print_1): Return
7413 void.
7414 * ada-lang.h (ada_val_print): Return void.
7415
35c0084b
TT
74162012-03-01 Tom Tromey <tromey@redhat.com>
7417
7418 * value.h (val_print): Return void.
7419 * valprint.c (val_print): Return void.
7420
a1f5dd1b
TT
74212012-03-01 Tom Tromey <tromey@redhat.com>
7422
7423 * value.h (common_val_print): Return void.
7424 * valprint.c (common_val_print): Return void.
7425
8e069a98
TT
74262012-03-01 Tom Tromey <tromey@redhat.com>
7427
7428 * value.h (value_print): Return void.
7429 * valprint.c (value_print): Return void.
7430 * p-valprint.c (pascal_value_print): Return void.
7431 * p-lang.h (pascal_value_print): Return void.
7432 * language.h (struct language_defn) <la_value_print>: Return
7433 void.
7434 * language.c (unk_lang_value_print): Return void.
7435 * jv-valprint.c (java_value_print): Return void.
7436 * jv-lang.h (java_value_print): Return void.
7437 * f-valprint.c (c_value_print): Don't declare.
7438 Include c-lang.h.
7439 * c-valprint.c (c_value_print): Return void.
7440 * c-lang.h (c_value_print): Return void.
7441 * ada-valprint.c (ada_value_print): Return void.
7442 * ada-lang.h (ada_value_print): Return void.
7443
be335936
TT
74442012-03-01 Tom Tromey <tromey@redhat.com>
7445
7446 * value.c (value_primitive_field): Handle virtual base classes.
7447
b0db66a7
TT
74482012-03-01 Tom Tromey <tromey@redhat.com>
7449
7450 * gdbtypes.h (struct vbase): Remove.
7451
132c57b4
TT
74522012-03-01 Tom Tromey <tromey@redhat.com>
7453
7454 * c-valprint.c (print_function_pointer_address): Move...
7455 * valprint.c: ... here. Make non-static.
7456 * m2-valprint.c (print_function_pointer_address): Remove.
7457 * valprint.h (print_function_pointer_address): Declare.
7458
e41eec66
JB
74592012-03-01 Joel Brobecker <brobecker@adacore.com>
7460
7461 * NEWS: Document the fact that one can provide a condition when
7462 creating an Ada exception catchpoint.
7463
19c37f24
TT
74642012-03-01 Tom Tromey <tromey@redhat.com>
7465
7466 * valprint.c (val_print_type_code_flags): Fix placement of
7467 trailing brace.
7468
f0fed3a3
JB
74692012-03-01 Joel Brobecker <brobecker@adacore.com>
7470
7471 * copyright.py (MULTILINE_COMMENT_PREFIXES): Delete.
7472 (update_files): Do not set MULTILINE_COMMENT_PREFIXES
7473 environment variable before calling update-copyright.
7474
8ba85d85
JB
74752012-03-01 Joel Brobecker <brobecker@adacore.com>
7476
7477 * gnulib/extra/update-copyright: Update to the latest from
7478 gnulib's git repository.
7479 * copyright.py: Set UPDATE_COPYRIGHT_USE_INTERVALS environment
7480 variable to 2 instead of 1.
7481
8219b1e8
JB
74822012-02-29 Joel Brobecker <brobecker@adacore.com>
7483
7484 * varobj.c (c_value_of_variable): Remove dead code.
7485
718cb7da
JB
74862012-02-29 Joel Brobecker <brobecker@adacore.com>
7487
7488 * ada-lex.p (processId): Do not modify already encoded IDs.
7489 Update function documentation.
7490
739593e0
JB
74912012-02-29 Joel Brobecker <brobecker@adacore.com>
7492
7493 * ada-lang.h (ada_find_renaming_symbol): Replace parameter
7494 "name" with "struct symbol *name_sym".
7495 * ada-exp.y (write_var_or_type): Update call to
7496 ada_find_renaming_symbol.
7497 "name" with "struct symbol *name_sym". Adjust Implementation
7498 accordingly. Adjust the function documentation.
7499
852dff6c
JB
75002012-02-29 Joel Brobecker <brobecker@adacore.com>
7501
7502 * ada-lang.h (ada_find_any_symbol, ada_find_any_type): Delete.
7503 * ada-lang.c (ada_find_any_type): Add advance declaration.
7504 Make static. Replace ada_find_any_symbol by
7505 ada_find_any_type_symbol.
7506 (ada_find_any_type_symbol): Renames ada_find_any_symbol.
7507 Improve function description. Make static.
7508 (ada_find_renaming_symbol, find_old_style_renaming_symbol):
7509 Replace ada_find_any_symbol by ada_find_any_type_symbol.
7510
1b611343
JB
75112012-02-29 Joel Brobecker <brobecker@adacore.com>
7512
7513 * ada-lang.c (struct tag_args): Delete.
7514 (ada_get_tsd_type): Function body moved up in source file.
7515 (ada_tag_name_1, ada_tag_name_2): Delete.
7516 (ada_get_tsd_from_tag): New function.
7517 (ada_tag_name_from_tsd): New function.
7518 (ada_tag_name): Use a TRY_CATCH block instead of catch_errors
7519 to determine the tag name.
7520
41246937
JB
75212012-02-29 Joel Brobecker <brobecker@adacore.com>
7522
7523 * ada-lang.h (ada_get_decoded_value, ada_get_decoded_type): Add
7524 declaration.
7525 * ada-lang.c (ada_get_decoded_value, ada_get_decoded_type): New
7526 function.
7527
ffde82bf
JB
75282012-02-29 Joel Brobecker <brobecker@adacore.com>
7529
7530 * ada-lang.c (ada_is_ignored_field): Rewrite wrong comment.
7531
2ad01556
JB
75322012-02-29 Joel Brobecker <brobecker@adacore.com>
7533
7534 * ada-lang.c (ada_lookup_symbol_list): Only cache the result of
7535 full searches.
7536
99b1c762
JB
75372012-02-29 Joel Brobecker <brobecker@adacore.com>
7538
7539 * ada-lang.c (constrained_packed_array_type): If there is a
7540 parallel XA type, use it to determine the array index type.
7541
2d4a02ee
JB
75422012-02-29 Joel Brobecker <brobecker@adacore.com>
7543
7544 * ada-valprint.c (ada_val_print_1): If our value is a reference
7545 to an array descriptor, dereference it before converting it
7546 to a simple array.
7547
c48db5ca
JB
75482012-02-29 Joel Brobecker <brobecker@adacore.com>
7549
7550 * ada-lang.c (ada_to_fixed_value): Call unwrap_value before
7551 creating fixed value.
7552 (ada_value_ind, ada_coerce_ref, assign_component)
7553 (ada_evaluate_subexp): Remove call to unwrap_value before
7554 call to ada_to_fixed_value.
7555
2e6fda7d
JB
75562012-02-29 Joel Brobecker <brobecker@adacore.com>
7557
7558 * ada-lang.c (to_fixed_array_type): Set result's type name.
7559
5845583d
JB
75602012-02-29 Joel Brobecker <brobecker@adacore.com>
7561
7562 * ada-lang.c (catch_ada_exception_command_split): Add new
7563 argument cond_string. Add support for condition at end of
7564 "catch exception" commands.
7565 (ada_decode_exception_location): Add new argument cond_string.
7566 Update call to catch_ada_exception_command_split.
7567 (create_ada_exception_catchpoint): Add new argument cond_string.
7568 Set the breakpoint condition if needed.
7569 (catch_ada_exception_command): Update call to
7570 ada_decode_exception_location.
7571 (ada_decode_assert_location): Add function documentation.
7572 Add support for condition at end of "catch assert" command.
7573 (catch_assert_command): Update calls to ada_decode_assert_location
7574 and create_ada_exception_catchpoint.
7575
9a7f938f
JK
75762012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
7577
7578 Fix disp-step-syscall.exp: fork: single step over fork.
7579 * i386-linux-tdep.c (-i386_linux_get_syscall_number): Rename to ...
7580 (i386_linux_get_syscall_number_from_regcache): ... here, new function
7581 comment, change parameters gdbarch and ptid to regcache. Remove
7582 parameter regcache, initialize gdbarch from regcache here.
7583 (i386_linux_get_syscall_number, i386_linux_displaced_step_copy_insn):
7584 New functions.
7585 (i386_linux_init_abi): Install i386_linux_displaced_step_copy_insn
7586 instead.
7587 * i386-tdep.c (i386_syscall_p): Check also for 'sysenter' and
7588 'syscall'. Make the 'int' check more strict.
7589
ffdf6de5
JK
75902012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
7591
7592 Fix reverse mode for syscall on AMD CPUs in 32-bit mode.
7593 * i386-linux-tdep.c (i386_linux_intx80_sysenter_record): Rename to ...
7594 (i386_linux_intx80_sysenter_syscall_record): ... here.
7595 (i386_linux_init_abi): Initialize also I386_SYSCALL_RECORD.
7596 Use the renamed function name.
7597
c70a6932
JK
75982012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
7599
7600 * arm-linux-tdep.c (arm_linux_copy_svc): Reset stale FRAME.
7601 * breakpoint.c (until_break_command): Likewise.
7602 * elfread.c (elf_gnu_ifunc_resolver_stop): Likewise.
7603 * infcall.c (call_function_by_hand): Likewise.
7604 * infcmd.c (finish_forward): Likewise.
7605 * infrun.c (insert_exception_resume_breakpoint): Likewise.
7606
05b8a789 76072012-02-28 Tristan Gingold <gingold@adacore.com>
d4cd3da9 7608
d4cd3da9
JB
7609 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Rework code to
7610 avoid variable assignments inside condition.
7611
6425366c
JK
76122012-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7613
7614 Fix static analysis issue found by cppcheck.
7615 * microblaze-tdep.c (microblaze_extract_return_value): Fix
7616 uninitialized BUF for size 2.
7617
c8cef75f 76182012-02-27 Chris Dearman <chris@mips.com>
a09130f9
PA
7619 Nathan Froyd <froydnj@codesourcery.com>
7620 Maciej W. Rozycki <macro@codesourcery.com>
c8cef75f
MR
7621
7622 * mips-tdep.c (mips32_instruction_has_delay_slot): New function.
7623 (mips16_instruction_has_delay_slot): Likewise.
7624 (mips_segment_boundary): Likewise.
7625 (mips_adjust_breakpoint_address): Likewise.
7626 (mips_gdbarch_init): Use mips_adjust_breakpoint_address.
7627
473347ad 76282012-02-27 Maciej W. Rozycki <macro@mips.com>
a09130f9 7629 Maciej W. Rozycki <macro@codesourcery.com>
473347ad
MR
7630
7631 * infrun.c (handle_inferior_event): Don't proceed through
7632 shared library trampolines if stepping at the machine
7633 instruction level.
7634
cf233303
MR
76352012-02-27 Maciej W. Rozycki <macro@codesourcery.com>
7636
7637 * mips-linux-tdep.c (mips_linux_init_abi): Set num_pseudo_regs
7638 too.
7639
cb2cf4ce
TS
76402012-02-27 Thomas Schwinge <thomas@codesourcery.com>
7641
7642 * sh-tdep.c (sh_make_stub_cache, sh_stub_this_id)
7643 (sh_stub_unwind_sniffer): New functions.
7644 (sh_stub_unwind): New variable.
7645 (sh_gdbarch_init): Wire everything.
7646
644cebc9
PA
76472012-02-27 Pedro Alves <palves@redhat.com>
7648
7649 * linux-nat.c (pid_is_stopped): Delete, moved to common/.
7650 (linux_nat_post_attach_wait): Adjust to use
7651 linux_proc_pid_is_stopped.
7652 * common/linux-procfs.h (linux_proc_pid_is_stopped): Declare.
7653 * common/linux-procfs.c (linux_proc_pid_is_stopped): New function,
7654 based on pid_is_stopped from both linux-nat.c and
7655 gdbserver/linux-low.c, and renamed.
7656
283002cf
MR
76572012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
7658
7659 * remote.c (remote_watchpoint_addr_within_range): New function.
7660 (init_remote_ops): Use it.
7661
9b3e86b1
MR
76622012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
7663
7664 * target.h (target_watchpoint_addr_within_range): Document macro.
7665
e36930bb
PA
76662012-02-24 Pedro Alves <palves@redhat.com>
7667
7668 * stack.c (set_last_displayed_sal): Issue internal_error instead
7669 of warning, and issue it after clearing the last displayed sal.
7670
883bc8d1
PA
76712012-02-24 Jan Kratochvil <jan.kratochvil@redhat.com>
7672 Pedro Alves <palves@redhat.com>
7673
7674 * breakpoint.c (until_break_command): Install breakpoints after
7675 all frame manipulations.
7676
b775012e
LM
76772012-02-24 Luis Machado <lgustavo@codesourcery.com>
7678
7679 * remote.c (remote_supports_cond_breakpoints): New forward
7680 declaration.
7681 (remote_add_target_side_condition): New function.
7682 (remote_insert_breakpoint): Add target-side breakpoint
7683 conditional if supported.
7684 (remote_insert_hw_breakpoint): Likewise.
7685 (init_remote_ops): Set to_supports_evaluation_of_breakpoint_conditions
7686 hook.
7687
7688 * target.c (update_current_target): Inherit
7689 to_supports_evaluation_of_breakpoint_conditions.
7690 Default to_supports_evaluation_of_breakpoint_conditions to return_zero.
7691
7692 * target.h (struct target_ops)
7693 <to_supports_evaluation_of_breakpoint_conditions>: New field.
7694 (target_supports_evaluation_of_breakpoint_conditions): New #define.
7695
7696 * breakpoint.c (get_first_locp_gte_addr): New forward declaration.
7697 (condition_evaluation_both, condition_evaluation_auto,
7698 condition_evaluation_host, condition_evaluation_target,
7699 condition_evaluation_enums, condition_evaluation_mode_1,
7700 condition_evaluation_mode): New static globals.
7701 (translate_condition_evaluation_mode): New function.
7702 (breakpoint_condition_evaluation_mode): New function.
7703 (gdb_evaluates_breakpoint_condition_p): New function.
7704 (ALL_BP_LOCATIONS_AT_ADDR): New helper macro.
7705 (mark_breakpoint_modified): New function.
7706 (mark_breakpoint_location_modified): New function.
7707 (set_condition_evaluation_mode): New function.
7708 (show_condition_evaluation_mode): New function.
7709 (bp_location_compare_addrs): New function.
7710 (get_first_location_gte_addr): New helper function.
7711 (set_breakpoint_condition): Free condition bytecode if locations
7712 has become unconditional. Call mark_breakpoint_modified (...).
7713 (condition_command): Call update_global_location_list (1) for
7714 breakpoints.
7715 (breakpoint_xfer_memory): Use is_breakpoint (...).
7716 (is_breakpoint): New function.
7717 (parse_cond_to_aexpr): New function.
7718 (build_target_condition_list): New function.
7719 (insert_bp_location): Handle target-side conditional
7720 breakpoints and call build_target_condition_list (...).
7721 (update_inserted_breakpoint_locations): New function.
7722 (insert_breakpoint_locations): Handle target-side conditional
7723 breakpoints.
7724 (bpstat_check_breakpoint_conditions): Add comment.
7725 (bp_condition_evaluator): New function.
7726 (bp_location_condition_evaluator): New function.
7727 (print_breakpoint_location): Print information on where the condition
7728 will be evaluated.
7729 (print_one_breakpoint_location): Likewise.
7730 (init_bp_location): Call mark_breakpoint_location_modified (...) for
7731 breakpoint location.
7732 (force_breakpoint_reinsertion): New functions.
7733 (update_global_location_list): Handle target-side breakpoint
7734 conditions.
7735 Reinsert locations that are already inserted if conditions have
7736 changed.
7737 (bp_location_dtor): Free agent expression bytecode.
7738 (disable_breakpoint): Call mark_breakpoint_modified (...).
7739 Call update_global_location_list (...) with parameter 1 for breakpoints.
7740 (disable_command): Call mark_breakpoint_location_modified (...).
7741 Call update_global_location_list (...) with parameter 1 for breakpoints.
7742 (enable_breakpoint_disp): Call mark_breakpoint_modified (...).
7743 (enable_command): mark_breakpoint_location_modified (...).
7744 (_initialize_breakpoint): Update documentation and add
7745 condition-evaluation breakpoint subcommand.
7746
7747 * breakpoint.h: Include ax.h.
7748 (condition_list): New data structure.
7749 (condition_status): New enum.
7750 (bp_target_info) <cond_list>: New field.
7751 (bp_location) <condition_changed, cond_bytecode>: New fields.
7752 (is_breakpoint): New prototype.
7753
3788aec7
LM
77542012-02-24 Luis Machado <lgustavo@codesourcery.com>
7755
7756 * remote.c (remote_state) <cond_breakpoints>: New field.
7757 (PACKET_ConditionalBreakpoints): New enum.
7758 (remote_cond_breakpoint_feature): New function.
7759 (remote_protocol_features): Add new ConditionalBreakpoints entry.
7760 (remote_supports_cond_breakpoints): New function.
7761 (_initialize_remote): Add new packet configuration for
7762 target-side conditional breakpoints.
7763
72895ff6
LM
77642012-02-24 Luis Machado <lgustavo@codesourcery.com>
7765
7766 * NEWS: Mention target-side conditional breakpoint support,
7767 new condition-evaluation breakpoint subcommand and remote
7768 packet extensions.
7769
dea2aa5f
LM
77702012-02-24 Luis Machado <lgustavo@codesourcery.com>
7771
7772 * breakpoint.c (bp_location_compare): Sort by pspace before sorting by
7773 number.
7774
8a8bc27f
TS
77752012-02-24 Thomas Schwinge <thomas@codesourcery.com>
7776
7777 * sh-tdep.c (sh_skip_prologue): Use skip_prologue_using_sal.
7778 (after_prologue): Remove.
7779
6b446fdf
TT
77802012-02-23 Tom Tromey <tromey@redhat.com>
7781
7782 * jv-valprint.c (java_val_print): Remove dead code.
7783
ef59abfb
TG
77842012-02-23 Tristan Gingold <gingold@adacore.com>
7785
a09130f9
PA
7786 * ada-tasks.c (struct ada_tasks_inferior_data): Add
7787 known_tasks_element and known_tasks_length fields.
7788 (read_known_tasks_array): Change argument type. Use pointer type
7789 and number of elements from DATA. Adjust.
7790 (read_known_tasks_list): Likewise.
7791 (get_known_tasks_addr): Remove.
7792 (ada_set_current_inferior_known_tasks_addr): Renamed to ...
7793 (ada_tasks_inferior_data_sniffer): ... this. Use symtab for element
7794 type and array length. Merge former get_known_tasks_addr code.
ef59abfb 7795
def166f6
JK
77962012-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
7797
7798 PR backtrace/13716
7799 * infcmd.c (finish_forward): New variable frame_id, initialize it, use
7800 it after set_momentary_breakpoint.
7801
aeaa2474
SA
78022012-02-22 Sterling Augustine <saugustine@google.com>
7803
7804 PR 13689:
7805 * breakpoint.c (watchpoint_exp_is_constant): Add UNOP_CAST to switch.
7806
feea76c2
GB
78072012-02-22 Gary Benson <gbenson@redhat.com>
7808
7809 * dwarf2read.c (dwarf2_read_index): Correct misspelling.
7810 (find_slot_in_mapped_hash): Likewise.
7811
f06e05e0
JK
78122012-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7813
7814 PR build/13638
7815 * configure.ac (MAKEINFO): Replace AC_CHECK_PROG by AC_ARG_VAR.
7816 (MAKEINFOFLAGS): Replace static string by AC_ARG_VAR.
7817 * configure: Regenerate.
7818
b54a8fd7
PA
78192012-02-21 Tristan Gingold <gingold@adacore.com>
7820 Pedro Alves <palves@redhat.com>
7821
7822 * ia64-tdep.c: Do not include libunwind-ia64.h.
7823 * libunwind-frame.h: Remove #ifdef HAVE_LIBUNWIND_H guard.
7824 Include libunwind-ia64.h instead of libunwind.h.
7825 * configure.ac (--with-libunwind, $enable_libunwind): Don't check
7826 for libunwind.h existence.
7827 * configure, config.in: Regenerate.
7828
dfcee124
AG
78292012-02-21 Anton Gorenkov <xgsa@yandex.ru>
7830
7831 * c-valprint.c (c_value_print): Use value_rtti_indirect_type
7832 instead of value_rtti_target_type.
7833 * eval.c (evaluate_subexp_standard): Use value_rtti_indirect_type
7834 instead of value_rtti_target_type.
7835 * typeprint.c (whatis_exp): Use value_rtti_indirect_type instead of
7836 value_rtti_target_type.
7837 * valops.c (value_ind): Extract function readjust_indirect_value_type.
7838 (value_rtti_target_type): Rename to ...
7839 (value_rtti_indirect_type): ... here and make it indirect. Update
7840 function comment.
7841 * value.c (readjust_indirect_value_type): New function.
7842 (coerce_ref): Support for enclosing type setting for references
7843 with readjust_indirect_value_type.
7844 * value.h (readjust_value_type): New declaration.
7845 (value_rtti_target_type): Rename to ...
7846 (value_rtti_indirect_type): ... here.
7847
02568277
AG
78482012-02-21 Anton Gorenkov <xgsa@yandex.ru>
7849
7850 * MAINTAINERS (Write After Approval): Add myself to the list.
7851
10c07b7e 78522012-02-20 Doug Evans <dje@google.com>
28ee876a 7853
d82ea6a8
DE
7854 * objfiles.c (add_to_objfile_sections): Remove outdated comments.
7855 Rename objfile_p_char parameter to objfilep.
7856 (build_objfile_section_table): Result is now void. All callers
7857 updated.
7858 * objfiles.h (struct objfile): Tweak comments, whitespace.
7859 (build_objfile_section_table): Update.
7860
28ee876a
DE
7861 * elfread.c (elf_symfile_segments): Fix warning text.
7862
24c79950
TT
78632012-02-20 Tom Tromey <tromey@redhat.com>
7864
7865 PR gdb/13498:
7866 * dwarf2read.c (dw2_expand_symtabs_matching): Only visit a
7867 particular set of file names once.
7868 (dw2_map_symbol_filenames): Likewise.
7869
3a9b40b6
JK
78702012-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
7871
7872 Code cleanup.
7873 * main.c (write_files): Remove the declaration.
7874 (external_editor_command): Move the declaration ...
7875 [GDBTK] (external_editor_command): ... here. Fix the comment.
7876
4d0795ca
TT
78772012-02-20 Tom Tromey <tromey@redhat.com>
7878
7879 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove
7880 extraneous block.
7881
637fd620
TG
78822012-02-20 Tristan Gingold <gingold@adacore.com>
7883
7884 * darwin-nat.h (enum darwin_msg_state): Add comments.
7885
6f124894
TG
78862012-02-20 Tristan Gingold <gingold@adacore.com>
7887
7888 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Fix jb_pc_offset
7889 value.
7890
2e6e3d9c
JB
78912012-20-18 Joel Brobecker <brobecker@adacore.com>
7892
7893 * breakpoint.c (watchpoint_exp_is_const): Add missing empty line
7894 between function description and implementation.
7895
2e8265fd
TT
78962012-02-17 Tom Tromey <tromey@redhat.com>
7897
7898 PR python/12070:
7899 * python/py-event.c (event_object_getset): New global.
7900 (event_object_type): Reference it.
7901 * python/py-type.c (field_object_getset): New global.
7902 (field_object_type): Reference it.
7903 * python/python-internal.h (gdb_py_generic_dict): Declare.
7904 * python/py-utils.c (gdb_py_generic_dict): New function.
7905
8544a150 79062012-02-17 Tristan Gingold <gingold@adacore.com>
6f124894 7907
8544a150 7908 * solib-darwin.c (darwin_current_sos): Check magic and filetype
6f124894 7909
ca193e27
TS
79102012-02-17 Thomas Schwinge <thomas@codesourcery.com>
7911
7912 * sh-tdep.c (sh_is_renesas_calling_convention): Fix handling of
7913 TYPE_CALLING_CONVENTION annotation.
7914
e5586183
KB
79152012-02-16 Kevin Buettner <kevinb@redhat.com>
7916
7917 * MAINTAINERS: Add rx to target ISA section.
7918 * Makefile.in (ALL_TARGET_OBS): Add rx-tdep.o.
7919 (ALLDEPFILES): Add rx-tdep.c.
7920
7dcd53a0
TT
79212012-02-16 Tom Tromey <tromey@redhat.com>
7922
7923 * symfile.c (symbol_file_add_main_1): Use inferior's
7924 symfile_flags.
7925 * solib.c (solib_read_symbols): Use inferior's symfile_flags.
7926 * linux-nat.c (linux_child_follow_fork): Set symfile_flags on
7927 inferior.
7928 * infrun.c (handle_vfork_child_exec_or_exit): Set symfile_flags on
7929 inferior.
7930 (follow_exec): Use inferior's symfile_flags.
7931 * inferior.h (struct inferior) <symfile_flags>: New field.
7932
ddd60447
MF
79332012-02-16 Mike Frysinger <vapier@gentoo.org>
7934
7935 PR gdb/9734:
7936 * remote-sim.c (gdbsim_create_inferior): Call error() when
7937 sim_create_inferior() fails.
7938
b0d32fb6
TG
79392012-02-16 Josh Matthews <josh@joshmatthews.net>
7940
7941 * machoread.c: Initialize nbr_syms to avoid warnings-as-errors failure.
7942
9addecb9
TT
79432012-02-16 Tom Tromey <tromey@redhat.com>
7944
7945 PR c++/13653:
7946 * thread.c (struct current_thread_cleanup) <was_removable>: New
7947 field.
7948 (restore_current_thread_cleanup_dtor): Restore 'removable' field.
7949 (make_cleanup_restore_current_thread): Initialize new field.
7950
a58b110a
KB
79512012-02-15 Kevin Buettner <kevinb@redhat.com>
7952
7953 * MAINTAINERS: Add rl78 to target ISA section.
7954 * Makefile.in (ALL_TARGET_OBS): Add rl78-tdep.o.
7955 (ALLDEPFILES): Add rl78-tdep.c.
7956 * NEWS: Mention rl78 as a new target.
7957
4cb6da1c
AR
79582012-02-15 Aleksandar Ristovski <aristovski@qnx.com>
7959
7960 * frame.c (find_frame_sal): Initialize sal->pspace field from frame
7961 data.
7962 * stack.c (set_last_displayed_sal): Validate that PSPACE is not NULL.
7963
3af2590d
TT
79642012-02-15 Tom Tromey <tromey@redhat.com>
7965
7966 PR gdb/12659:
7967 * infcmd.c (registers_info): Print just the current register's
7968 name.
7969
c6910659
TT
79702012-02-15 Tom Tromey <tromey@redhat.com>
7971
7972 * python/py-symbol.c (sympy_value): Use _().
7973
7cee1e54
PA
79742012-02-15 Pedro Alves <palves@redhat.com>
7975
7976 * remote.c (remote_detach_1, extended_remote_attach_1): Tweak
7977 output to be like native targets'.
7978 (remote_pid_to_str): Special case the null ptid.
7979
816338b5
SS
79802012-02-14 Stan Shebs <stan@codesourcery.com>
7981
7982 * NEWS: Mention enable count command.
7983 * breakpoint.h (struct breakpoint): New field enable_count.
7984 * breakpoint.c (enable_breakpoint_disp): Add count argument.
7985 (enable_breakpoint): Add arg to call.
7986 (struct disp_data): New struct.
7987 (do_enable_breakpoint_disp): Interp arg as disp_data and unpack.
7988 (do_map_enable_once_breakpoint): Create a struct and pass it.
7989 (do_map_enable_delete_breakpoint): Ditto.
7990 (do_map_enable_count_breakpoint): New function.
7991 (enable_count_command): New function.
7992 (bpstat_stop_status): Decrement enable_count.
7993 (print_one_breakpoint_location): Report enable count.
7994 (_initialize_breakpoint): Add enable count command.
7995
c47a44f4
KB
79962012-02-14 Kevin Buettner <kevinb@redhat.com>
7997
7998 * rl78-tdep.c (reggroups.h): Include.
7999 (RL78_RAW_BANK0_R0_REGNUM, RL78_RAW_BANK0_R1_REGNUM)
8000 (RL78_RAW_BANK0_R2_REGNUM, RL78_RAW_BANK0_R3_REGNUM)
8001 (RL78_RAW_BANK0_R4_REGNUM, RL78_RAW_BANK0_R5_REGNUM)
8002 (RL78_RAW_BANK0_R6_REGNUM, RL78_RAW_BANK0_R7_REGNUM)
8003 (RL78_RAW_BANK1_R0_REGNUM, RL78_RAW_BANK1_R1_REGNUM)
8004 (RL78_RAW_BANK1_R2_REGNUM, RL78_RAW_BANK1_R3_REGNUM)
8005 (RL78_RAW_BANK1_R4_REGNUM, RL78_RAW_BANK1_R5_REGNUM)
8006 (RL78_RAW_BANK1_R6_REGNUM, RL78_RAW_BANK1_R7_REGNUM)
8007 (RL78_RAW_BANK2_R0_REGNUM, RL78_RAW_BANK2_R1_REGNUM)
8008 (RL78_RAW_BANK2_R2_REGNUM, RL78_RAW_BANK2_R3_REGNUM)
8009 (RL78_RAW_BANK2_R4_REGNUM, RL78_RAW_BANK2_R5_REGNUM)
8010 (RL78_RAW_BANK2_R6_REGNUM, RL78_RAW_BANK2_R7_REGNUM)
8011 (RL78_RAW_BANK3_R0_REGNUM, RL78_RAW_BANK3_R1_REGNUM)
8012 (RL78_RAW_BANK3_R2_REGNUM, RL78_RAW_BANK3_R3_REGNUM)
8013 (RL78_RAW_BANK3_R4_REGNUM, RL78_RAW_BANK3_R5_REGNUM)
8014 (RL78_RAW_BANK3_R6_REGNUM, RL78_RAW_BANK3_R7_REGNUM): Add to
8015 beginning of register list.
8016 (RL78_BANK0_R0_REGNUM, RL78_BANK0_R1_REGNUM, RL78_BANK0_R2_REGNUM)
8017 (RL78_BANK0_R3_REGNUM, RL78_BANK0_R4_REGNUM, RL78_BANK0_R5_REGNUM)
8018 (RL78_BANK0_R6_REGNUM, RL78_BANK0_R7_REGNUM, RL78_BANK1_R0_REGNUM)
8019 (RL78_BANK1_R1_REGNUM, RL78_BANK1_R2_REGNUM, RL78_BANK1_R3_REGNUM)
8020 (RL78_BANK1_R4_REGNUM, RL78_BANK1_R5_REGNUM, RL78_BANK1_R6_REGNUM)
8021 (RL78_BANK1_R7_REGNUM, RL78_BANK2_R0_REGNUM, RL78_BANK2_R1_REGNUM)
8022 (RL78_BANK2_R2_REGNUM, RL78_BANK2_R3_REGNUM, RL78_BANK2_R4_REGNUM)
8023 (RL78_BANK2_R5_REGNUM, RL78_BANK2_R6_REGNUM, RL78_BANK2_R7_REGNUM)
8024 (RL78_BANK3_R0_REGNUM, RL78_BANK3_R1_REGNUM, RL78_BANK3_R2_REGNUM)
8025 (RL78_BANK3_R3_REGNUM, RL78_BANK3_R4_REGNUM, RL78_BANK3_R5_REGNUM)
8026 (RL78_BANK3_R6_REGNUM, RL78_BANK3_R7_REGNUM): Move these into
8027 the pseudo registers. Rearrange other pseudo registers too so
8028 that the bank registers appear at the end.
8029 (rl78_register_type): Account for the fact that the byte sized
8030 bank registers are now pseudo-registers.
8031 (rl78_register_name): Rearrange the register name array. Make
8032 initial set of raw banked registers inaccessible.
8033 (rl78_register_reggroup_p, rl78_register_sim_regno): New functions.
8034 (rl78_pseudo_register_read, rl78_pseudo_register_write): Add
8035 case for copying bytes back and forth between raw and pseudo
8036 versions of the banked registers. Update other cases to reflect
8037 the changed names.
8038 (rl78_return_value): Update to account for changed names of
8039 raw registers.
8040 (rl78_gdbarch_init): Register rl78_register_reggroup_p() and
8041 rl78_register_sim_regno().
8042
e4569f1e
KB
80432012-02-14 Kevin Buettner <kevinb@redhat.com>
8044
8045 * rl78-tdep.c (rl78_skip_prologue): Make `const' the type of
8046 the name parameter being passed to find_pc_partial_function().
8047
7a05aae7
JK
80482012-02-14 Jan Kratochvil <jan.kratochvil@redhat.com>
8049
8050 * MAINTAINERS: Step down from being ia64 target maintainer.
8051
11fde611
JK
80522012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
8053
8054 * ppc-linux-nat.c (fetch_register, store_register): Fix GCC aliasing
8055 compilation warning.
8056
57008375
JK
80572012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
8058
8059 Fix crash on loaded shlibs without loaded exec_bfd.
8060 * exec.c (exec_files_info): Do not crash on NULL EXEC_BFD.
8061 (set_section_command): Replace exec_bfd by p->bfd.
8062
ff3c9849
TT
80632012-02-10 Tom Tromey <tromey@redhat.com>
8064
8065 * linespec.c (decode_line_internal): Skip symtabs_from_filename
8066 when we have a C++ qualified name.
8067
db2b9fdd
PA
80682012-02-10 Pedro Alves <palves@redhat.com>
8069
8070 * inferior.c (inferior_pid_to_str): New.
8071 (print_inferior, inferior_command): Use it.
8072
12cd34f3
PA
80732012-02-10 Pedro Alves <palves@redhat.com>
8074
8075 * configure.ac (HAVE_ELF test): Put the old CFLAGS at the end of
8076 the test CFLAGS.
8077 * configure: Regenerate.
8078
e871429d
JK
80792012-02-10 Jan Kratochvil <jan.kratochvil@redhat.com>
8080
8081 * linespec.c (decode_line_internal): Fix comment correctness.
8082
1916efaf
PA
80832012-02-09 Valery Khromov <valery.khromov@gmail.com>
8084
8085 PR gdb/12953
8086 * Makefile.in (HFILES_NO_SRCDIR): Add amd64bsd-nat.h.
8087 * amd64bsd-nat.c: Add support for debug registers (adapted from
8088 i386bsd-nat.c).
8089 [HAVE_PT_GETDBREGS] (amd64bsd_dr_get, amd64bsd_dr_set)
8090 (amd64bsd_dr_set_control, amd64bsd_dr_set_addr)
8091 (amd64bsd_dr_get_addr, amd64bsd_dr_get_status)
8092 (amd64bsd_dr_get_control): New functions.
8093 * amd64bsd-nat.h: New file (adapted from i386bsd-nat.h).
8094 * amd64fbsd-nat.c: Include "amd64bsd-nat.h", "i386-nat.h".
8095 [HAVE_PT_GETDBREGS] (_initialize_amd64fbsd_nat): Add hardware
8096 watchpoints initialization.
8097 * config/i386/fbsd64.mh (NATDEPFILES): Add i386-nat.o.
8098
f4859d94
JK
80992012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
8100
8101 * gdb-gdb.py (StructMainTypePrettyPrinter) <struct_field_img>: Print
8102 flds_bnds.fields.
8103 (StructMainTypePrettyPrinter) <bounds_img>: Print flds_bnds.bounds.
8104
c56a97f9
JK
81052012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
8106
8107 * breakpoint.c (bp_location_compare): Fix comment. Reindent the code.
8108
1a119f36
JB
81092012-02-08 Joel Brobecker <brobecker@adacore.com>
8110
8111 * language.h (symbol_name_cmp_ftype): Renames
8112 symbol_name_match_p_ftype.
8113 (struct language_defn)[la_get_symbol_name_cmp]: Renames
8114 la_get_symbol_name_match_p.
8115 * ada-lang.c (ada_get_symbol_name_cmp): Renames
8116 ada_get_symbol_name_match_p. Update comment.
8117 (ada_language_defn)[la_get_symbol_name_cmp]: Update value.
8118 * linespec.c (struct symbol_matcher_data)[symbol_name_cmp]:
8119 Renames symbol_name_match_p. Update field type.
8120 (iterate_name_matcher, iterate_over_all_matching_symtabs): Adjust.
8121 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
8122 opencl-lang.c, p-lang.c: Replace "la_get_symbol_name_match_p" by
8123 "la_get_symbol_name_cmp" in comments.
8124 * language.c: Likewise.
8125
c71bb1cf
RO
81262012-02-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8127
8128 * amd64-sol2-tdep.c (amd64_sol2_gregset_reg_offset): Correct
8129 %eflags offset.
8130 * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offs)
8131 (amd64_sol2_gregset32_reg_offs): Likewise.
8132
4b2d20a5
TG
81332012-02-08 Joel Brobecker <brobecker@adacore.com>
8134
8135 * solib-darwin.c (darwin_bfd_open): Make sure that the filename
8136 of the returned BFD is allocated by GDB.
8137
f0823d2c
TT
81382012-02-07 Tom Tromey <tromey@redhat.com>
8139
8140 PR python/12027:
8141 * python/python-internal.h (frame_object_type): Declare.
8142 * python/py-symbol.c (sympy_needs_frame): New function.
8143 (sympy_value): New function.
8144 (symbol_object_getset): Add "needs_frame".
8145 (symbol_object_methods): Add "value".
8146 * python/py-frame.c (frame_object_type): No longer static.
8147
64e7d9dd
TT
81482012-02-07 Tom Tromey <tromey@redhat.com>
8149
8150 PR python/13599:
8151 * python/py-symbol.c (sympy_line): New function.
8152 (symbol_object_getset): Add "line".
8153
1d6b2d2b
TT
81542012-02-07 Tom Tromey <tromey@redhat.com>
8155
8156 * charset.c (find_charset_names): Check 'in' against NULL.
8157
0d5cff50
DE
81582012-02-06 Doug Evans <dje@google.com>
8159
8160 * gdbtypes.h (struct main_type): Change type of name,tag_name,
8161 and fields.name members from char * to const char *. All uses updated.
8162 (struct cplus_struct_type): Change type of fn_fieldlists.name member
8163 from char * to const char *. All uses updated.
8164 (type_name_no_tag): Update.
8165 (lookup_unsigned_typename, lookup_signed_typename): Update.
8166 * gdbtypes.c (type_name_no_tag): Change result type
8167 from char * to const char *. All callers updated.
8168 (lookup_unsigned_typename, lookup_signed_typename): Change type of
8169 name parameter from char * to const char *.
8170 * symtab.h (struct cplus_specific): Change type of demangled_name
8171 member from char * to const char *. All uses updated.
8172 (struct general_symbol_info): Change type of name and
8173 mangled_lang.demangled_name members from char * to const char *.
8174 All uses updated.
8175 (symbol_get_demangled_name, symbol_natural_name): Update.
8176 (symbol_demangled_name, symbol_search_name): Update.
8177 * symtab.c (symbol_get_demangled_name): Change result type
8178 from char * to const char *. All callers updated.
8179 (symbol_natural_name, symbol_demangled_name): Ditto.
8180 (symbol_search_name): Ditto.
8181 (completion_list_add_name): Change type of symname,sym_text,
8182 text,word parameters from char * to const char *.
8183 (completion_list_objc_symbol): Change type of sym_text,
8184 text,word parameters from char * to const char *.
8185 * ada-lang.c (find_struct_field): Change type of name parameter
8186 from char * to const char *.
8187 (encoded_ordered_before): Similarly for N0,N1 parameters.
8188 (old_renaming_is_invisible): Similarly for function_name parameter.
8189 (ada_type_name): Change result type from char * to const char *.
8190 All callers updated.
8191 * ada-lang.h (ada_type_name): Update.
8192 * buildsym.c (hashname): Change type of name parameter
8193 from char * to const char *.
8194 * buildsym.h (hashname): Update.
8195 * dbxread.c (end_psymtab): Change type of include_list parameter
8196 from char ** to const char **.
8197 * dwarf2read.c (determine_prefix): Change result type
8198 from char * to const char *. All callers updated.
8199 * f-lang.c (find_common_for_function): Change type of name, funcname
8200 parameters from char * to const char *.
8201 * f-lang.c (find_common_for_function): Update.
8202 * f-valprint.c (list_all_visible_commons): Change type of funcname
8203 parameters from char * to const char *.
8204 * gdbarch.sh (static_transform_name): Change type of name parameter
8205 and result from char * to const char *.
8206 * gdbarch.c: Regenerate.
8207 * gdbarch.h: Regenerate.
8208 * i386-sol2-tdep.c (i386_sol2_static_transform_name): Change type
8209 of name parameter from char * to const char *.
8210 * jv-lang.c (java_primitive_type_from_name): Ditto.
8211 (java_demangled_signature_length): Similarly for signature parameter.
8212 (java_demangled_signature_copy): Ditto.
8213 (java_demangle_type_signature): Ditto.
8214 * jv-lang.h (java_primitive_type_from_name): Update.
8215 (java_demangle_type_signature): Update.
8216 * objc-lang.c (specialcmp): Change type of a,b parameters
8217 from char * to const char *.
8218 * p-lang.c (is_pascal_string_type): Change type of arrayname parameter
8219 from char * to const char *. All callers updated.
8220 * p-lang.h (is_pascal_string_type): Update.
8221 * solib-frv.c (find_canonical_descriptor_in_load_object): Change type
8222 of name parameter from char * to const char *.
8223 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Ditto.
8224 * utils.c (fprintf_symbol_filtered): Ditto.
8225 * defs.h (fprintf_symbol_filtered): Update.
8226 * sparc-tdep.h (sparc_sol2_static_transform_name): Update.
8227 * stabsread.h (end_psymtab): Update.
8228 * stack.c (find_frame_funname): Change type of funname parameter
8229 from char ** to const char **.
8230 * stack.h (find_frame_funname): Update.
8231 * typeprint.c (type_print): Change type of varstring parameter
8232 from char * to const char *.
8233 * value.h (type_print): Update.
8234 * xcoffread.c (xcoff_start_psymtab): Change type of filename parameter
8235 from char * to const char *. All callers updated.
8236 (xcoff_end_psymtab): Change type of include_list parameter
8237 from char ** to const char **. All callers updated.
8238 (swap_sym): Similarly for name parameter. All callers updated.
8239 * coffread.c (patch_type): Add (char*) cast to xfree parameter.
8240 Use xstrdup.
8241 (process_coff_symbol): Use xstrdup.
8242 * stabsread.c (stabs_method_name_from_physname): Renamed from
8243 update_method_name_from_physname. Change result type from void
8244 to char *. All callers updated.
8245 (read_member_functions): In has_destructor case, store name in objfile
8246 obstack instead of malloc space. In !has_stub case, fix mem leak.
8247
5579a92e
TT
82482012-02-06 Luca Pizzamiglio <luca.pizzamiglio@gmail.com>
8249
8250 * configure: Rebuild.
8251 * configure.ac: Put -L../bfd and -L../libiberty at the front of
8252 LDFLAGS.
8253
9058f767
KB
82542012-02-03 Kevin Buettner <kevinb@redhat.com>
8255
8256 * configure.tgt (rl78-*-elf): New target.
8257 * rl78-tdep.c: New file.
8258
5b37825d
PW
82592012-02-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8260
8261 * remote.c (remote_rcmd): Use getpkt_sane to detect timeout
8262 and continue the loop. Add QUIT statement.
8263
e009ee71
TT
82642012-02-03 Tom Tromey <tromey@redhat.com>
8265
8266 PR gdb/13596:
8267 * solib.h (gdb_bfd_lookup_symbol_from_symtab): Rename from
8268 bfd_lookup_symbol_from_symtab.
8269 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
8270 gdb_bfd_lookup_symbol_from_symtab.
8271
f7e44f65
JB
82722012-02-03 Joel Brobecker <brobecker@adacore.com>
8273
8274 * mi/mi-cmd-stack.c (list_args_or_locals): For argument symbols,
8275 use SYMBOL_LINKAGE_NAME to find the corresponding non-argument
8276 symbol. Add assertion that sym2 is never NULL.
8277
2c02bd72
DE
82782012-02-02 Doug Evans <dje@google.com>
8279
8280 * blockframe.c (find_pc_partial_function_gnu_ifunc): Change type of
8281 "name" parameter to const char ** from char **. All callers updated.
8282 (find_pc_partial_function): Ditto.
8283 (cache_pc_function_name): Change type to const char * from char *.
8284 * symtab.h ((find_pc_partial_function_gnu_ifunc): Update.
8285 (find_pc_partial_function): Update.
8286 * alpha-tdep.h (struct gdbarch_tdep, member pc_in_sigtramp): Change
8287 type of "name" parameter to const char * from char *.
8288 All uses updated.
8289 * arch-utils.c (generic_in_solib_return_trampoline): Change
8290 type of "name" parameter to const char * from char *.
8291 * arch-utils.h (generic_in_solib_return_trampoline): Update.
8292 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp): Change
8293 type of "name" parameter to const char * from char *.
8294 * gdbarch.sh (in_solib_return_trampoline): Ditto.
8295 * gdbarch.c: Regenerate.
8296 * gdbarch.h: Regenerate.
8297 * hppa-hpux-tdep.c (hppa_hpux_in_solib_return_trampoline): Update.
8298 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Update.
8299 * m32r-linux-tdep.c (m32r_linux_pc_in_sigtramp): Change
8300 type of "name" parameter to const char * from char *.
8301 * skip.c (skip_function_pc): Ditto.
8302 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Ditto.
8303 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp): Update.
8304 * sparc64fbsd-tdep.c (sparc64fbsd_pc_in_sigtramp): Ditto.
8305 * sparc64nbsd-tdep.c (sparc64nbsd_pc_in_sigtramp): Ditto.
8306 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Ditto.
8307 * sparcnbsd-tdep.c (sparc32nbsd_pc_in_sigtramp): Ditto.
8308 * sparcobsd-tdep.c (sparc32obsd_pc_in_sigtramp): Ditto.
8309 * nbsd-tdep.c (nbsd_pc_in_sigtramp): Similary for "func_name".
8310 * nbsd-tdep.h (nbsd_pc_in_sigtramp): Update.
8311
e886a173
PA
83122012-02-02 Pedro Alves <palves@redhat.com>
8313
8314 * remote.c (remote_get_min_fast_tracepoint_insn_len): Return 0 if
8315 the current inferior has no execution. Make sure the current
8316 remote process matches gdb's current inferior.
8317
c709a7c2
TT
83182012-02-02 Tom Tromey <tromey@redhat.com>
8319
8320 PR gdb/13405:
8321 * tui/tui-win.c (parse_scrolling_args): Don't write to possibly
8322 read-only memory.
8323
f149aabd
TT
83242012-02-02 Tom Tromey <tromey@redhat.com>
8325
8326 PR gdb/9307:
8327 * symtab.c (lookup_language_this): Set block_found.
8328
03bef283
TT
83292012-02-01 Tom Tromey <tromey@redhat.com>
8330
8331 PR gdb/13431:
8332 * jit.c (struct jit_inferior_data): Rewrite.
8333 (struct jit_objfile_data): New.
8334 (get_jit_objfile_data): New function.
8335 (add_objfile_entry): Update.
8336 (jit_read_descriptor): Return int. Replace descriptor_addr
8337 argument with inf_data. Update. Don't call error.
8338 (jit_breakpoint_re_set_internal): Reorder logic. Update. Look up
8339 descriptor here.
8340 (jit_inferior_init): Don't look up descriptor. Don't call error.
8341 (jit_reset_inferior_data_and_breakpoints)
8342 (jit_inferior_created_observer): Remove.
8343 (jit_inferior_exit_hook): Update.
8344 (jit_executable_changed_observer): Remove.
8345 (jit_event_handler): Update.
8346 (free_objfile_data): Reset inferior data if needed.
8347 (_initialize_jit): Update.
8348
f0bbc364
TT
83492012-02-01 Tom Tromey <tromey@redhat.com>
8350
8351 * jit.c (bfd_open_from_target_memory): Move higher in file.
8352
47c1316c
TG
83532012-02-01 Tristan Gingold <gingold@adacore.com>
8354
8355 * libunwind-frame.c (libunwind_load): Display message if dlopen
8356 failed.
8357
8e704927
GB
83582012-02-01 Gary Benson <gbenson@redhat.com>
8359
09c7a31f 8360 * symtab.h (symbol_found_callback_ftype): New typedef.
8e704927
GB
8361 (iterate_over_symbols): Use the above.
8362 * symtab.c (iterate_over_symbols): Likewise.
8363 * language.h (language_defn->la_iterate_over_symbols): Likewise.
8364 * ada-lang.c (ada_iterate_over_symbols): Likewise.
8365 * linespec.c (iterate_over_all_matching_symtabs): Likewise.
8366 (iterate_name_matcher): Document return values.
8367 (collect_one_symbol): Likewise.
8368 (collect_function_symbols): Likewise.
8369 (collect_symbols): Likewise.
8370
d9680e73
TT
83712012-02-01 Tom Tromey <tromey@redhat.com>
8372
8373 * ada-lang.c (resolve_subexp): Update.
8374 (ada_lookup_symbol_list): Add 'full_search' argument.
8375 (ada_iterate_over_symbols): Pass 0 as full_search argument to
8376 ada_lookup_symbol_list.
8377 (ada_lookup_encoded_symbol): Update.
8378 (get_var_value): Update.
8379 * ada-exp.y (block_lookup): Update.
8380 (write_var_or_type): Update.
8381 (write_name_assoc): Update.
8382 * ada-lang.h (ada_lookup_symbol_list): Update.
8383
72e1143f
TT
83842012-01-31 Tom Tromey <tromey@redhat.com>
8385
8386 * language.h (struct language_defn) <la_iterate_over_symbols>: Fix
8387 comment.
8388
ab2d2ad3
DE
83892012-01-31 Doug Evans <dje@google.com>
8390
8391 * symtab.h: Remove outdated comment.
e9111bf7 8392 (SYMBOL_MATCHES_NATURAL_NAME): Delete.
ab2d2ad3 8393
bc884eba
JB
83942012-02-01 Josh Matthews <josh@joshmatthews.net> (tiny change)
8395
8396 Fix build error in Darwin port.
8397 * i386-darwin-nat.c: Include i386-nat.h.
8398
8fc3fc34
TT
83992012-01-30 Tom Tromey <tromey@redhat.com>
8400
8401 PR breakpoints/13568:
8402 * dwarf2read.c (dwarf_decode_macro_bytes): Add 'include_hash'
8403 argument. Check for recursive includes.
8404 (dwarf_decode_macros): Create an include hash.
8405
5d853008
ME
84062012-01-30 Michael Eager <eager@eagercon.com>
8407
8408 * configure.tgt (powerpc-*-linux*): Add glibc-tdep.o.
8409 * ppc-linux-tdep.c: Include glibc-tdep.h.
ab2d2ad3 8410 (powerpc32_plt_stub, powerpc32_plt_stub_so): Add PLT stub templates.
5d853008
ME
8411 (powerpc_linux_in_plt_stub): New function.
8412 (powerpc_linux_in_dynsym_resolve_code): New function.
8413 (ppc_skip_trampoline_code): New function.
8414 (ppc_linux_init_abi): Use PPC specific functions rather than generic.
8415 Use glibc_skip_solib_resolver.
8416
40478521
JK
84172012-01-28 Jan Kratochvil <jan.kratochvil@redhat.com>
8418
8419 Code cleanup: Make 1440 bytes of data segment read-only.
8420 * arch-utils.c (endian_enum): Make it const char *const [].
8421 * arm-tdep.c (fp_model_strings, arm_abi_strings, arm_mode_strings):
8422 Likewise.
8423 * breakpoint.c (always_inserted_enums): Likewise.
8424 * cli/cli-cmds.c (script_ext_enums): Likewise.
8425 * cli/cli-decode.c (add_setshow_enum_cmd, complete_on_enum): Make the
8426 enumlist parameter const char *const *.
8427 * cli/cli-decode.h (struct cmd_list_element): Make the enums field
8428 const char *const *.
8429 * command.h (complete_on_enum, add_setshow_enum_cmd): Make the enumlist
8430 parameter const char *const *.
8431 * cris-tdep.c (cris_modes): Make it const char *const [].
8432 * filesystem.c (target_file_system_kinds): Likewise.
8433 * i386-tdep.c (valid_flavors, valid_conventions): Likewise.
8434 * infrun.c (follow_fork_mode_kind_names, follow_exec_mode_names)
8435 (can_use_displaced_stepping_enum, scheduler_enums)
8436 (exec_direction_names): Likewise.
8437 * language.c (_initialize_language): Make the type_or_range_names and
8438 case_sensitive_names variables const char *const [].
8439 * mips-tdep.c (mips_abi_strings): Make it const char *const [].
8440 * python/python.c (python_excp_enums): Likewise.
8441 * remote.c (interrupt_sequence_modes): Likewise.
8442 * rs6000-tdep.c (powerpc_vector_strings): Likewise.
8443 * serial.c (logbase_enums): Likewise.
8444 * sh-tdep.c (sh_cc_enum): Likewise.
8445 * stack.c (print_frame_arguments_choices, print_entry_values_choices):
8446 Likewise.
8447 * symtab.c (multiple_symbols_modes): Likewise.
8448 * tui/tui-win.c (tui_border_kind_enums, tui_border_mode_enums):
8449 Likewise.
8450 * utils.c (internal_problem_modes): Likewise.
8451
b3b8b934
JK
84522012-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
8453
8454 Fix the 2012-01-26 regression by la_get_symbol_name_match_p.
8455 * linespec.c (iterate_name_matcher): Negate the SYMBOL_NAME_MATCH_P
8456 result.
8457
8c85a4e2
DE
84582012-01-27 Doug Evans <dje@google.com>
8459
8460 * configure.ac (with_python): Fix absolute path handling for win32.
8461 * configure: Regenerate.
8462
78d8b4d7
DE
84632012-01-26 Doug Evans <dje@google.com>
8464
eca864fe
DE
8465 * symtab.c: Whitespace cleanup, no code changes.
8466
7e082072
DE
8467 * symtab.c (lookup_symbol_in_language): Improve comment.
8468 (lookup_symbol_aux): Fix comment.
8469
7dc25483
DE
8470 * psymtab.c (add_psymbol_to_list): Result is now "void".
8471 * psympriv.h (add_psymbol_to_list): Update.
8472
78d8b4d7
DE
8473 * dwarf2read.c (add_partial_symbol): Delete local psym, unused.
8474
4c63965b
JK
84752012-01-26 Jan Kratochvil <jan.kratochvil@redhat.com>
8476
8477 Do not open script filenames twice.
8478 * cli/cli-cmds.c (source_script_from_stream): Pass to
8479 source_python_script also STREAM.
8480 * python/py-auto-load.c (source_section_scripts): Pass to
8481 source_python_script_for_objfile also STREAM.
8482 (auto_load_objfile_script): Pass to source_python_script_for_objfile
8483 also INPUT.
8484 * python/python-internal.h (source_python_script_for_objfile): New
8485 parameter file, rename parameter file to filename.
8486 * python/python.c (python_run_simple_file): Call PyRun_SimpleFile
8487 instead if !_WIN32. Update the function comment.
8488 (source_python_script, source_python_script_for_objfile)
8489 (source_python_script): New parameter file, rename parameter file to
8490 filename. Pass FILENAME to python_run_simple_file.
8491 * python/python.h (source_python_script): New parameter file, rename
8492 parameter file to filename.
8493
88f38a04
PA
84942012-01-26 Pedro Alves <palves@redhat.com>
8495
8496 * corelow.c (core_has_fake_pid): Delete.
8497 (core_close): Delete references to `core_has_fake_pid'.
8498 (add_to_thread_list): Adjust to mark the inferior's pid as fake.
8499 (core_open): Delete references to `core_has_fake_pid'.
8500 (core_pid_to_str): Adjust to check inferior->fake_pid_p instead of
8501 the removed global.
8502
e078317b
JB
85032012-01-26 Joel Brobecker <brobecker@adacore.com>
8504
8505 * symfile.h (struct quick_symbol_functions) [expand_symtabs_matching]:
8506 Remove language parameter from name_matcher. Adjust the comment.
8507 * symtab.c (search_symbols_name_matches, expand_partial_symbol_name):
8508 Remove language parameter.
8509 * ada-lang.c (ada_expand_partial_symbol_name): Likewise.
8510 * linespec.c (iterate_name_matcher): Likewise.
8511 * dwarf2read.c (dw2_expand_symtabs_matching): Adjust type of
8512 name_matcher. Adjust call accordingly.
8513 * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
8514 (maintenance_check_symtabs): Adjust type of parameter "fun".
8515 * psymtab.h (maintenance_check_symtabs): Likewise.
8516
74ccd7f5
JB
85172012-01-26 Joel Brobecker <brobecker@adacore.com>
8518
8519 * language.h (symbol_name_match_p_ftype): New typedef.
8520 (struct language_defn): Replace field la_symbol_name_compare
8521 by la_get_symbol_name_match_p.
8522 * ada-lang.c (ada_get_symbol_name_match_p): New function.
8523 (ada_language_defn): Use it.
8524 * linespec.c (struct symbol_matcher_data): New type.
8525 (iterate_name_matcher): Rewrite.
8526 (iterate_over_all_matching_symtabs): Pass a pointer to
8527 a symbol_matcher_data struct to expand_symtabs_matching
8528 instead of just the lookup name.
8529 * c-lang.c, d-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
8530 opencl-lang.c, p-lang.c, language.c: Delete field
8531 la_symbol_name_compare, and replace by NULL for new field
8532 la_get_symbol_name_match_p.
8533 * symfile.h (struct quick_symbol_functions): Update comment.
8534
5d268276
TT
85352012-01-25 Tom Tromey <tromey@redhat.com>
8536
8537 * breakpoint.c (bpstat_stop_status): Check 'breakpoint_at' before
8538 dereferencing.
8539
edcc5120
TT
85402012-01-24 Tom Tromey <tromey@redhat.com>
8541
8542 PR symtab/12406:
8543 * solib.c (update_solib_list): Update the program space's
8544 added_solibs and deleted_solibs fields.
8545 * progspace.h (struct program_space) <added_solibs,
8546 deleted_solibs>: New fields.
8547 (clear_program_space_solib_cache): Declare.
8548 * progspace.c (release_program_space): Call
8549 clear_program_space_solib_cache.
8550 (clear_program_space_solib_cache): New function.
8551 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>: Call
8552 bpstat_stop_status. Use handle_solib_event.
8553 * breakpoint.c: Include gdb_regex.h.
8554 (print_solib_event): New function.
8555 (bpstat_print): Use print_solib_event.
8556 (bpstat_stop_status): Add special case for bp_shlib_event.
8557 (handle_solib_event): New function.
8558 (bpstat_what): Use handle_solib_event.
8559 (struct solib_catchpoint): New.
8560 (dtor_catch_solib, insert_catch_solib, remove_catch_solib)
8561 (breakpoint_hit_catch_solib, check_status_catch_solib)
8562 (print_it_catch_solib, print_one_catch_solib)
8563 (print_mention_catch_solib, print_recreate_catch_solib): New
8564 functions.
8565 (catch_solib_breakpoint_ops): New global.
8566 (catch_load_or_unload, catch_load_command_1)
8567 (catch_unload_command_1): New functions.
8568 (internal_bkpt_check_status): Add special case for
8569 bp_shlib_event.
8570 (internal_bkpt_print_it): Use print_solib_event.
8571 (initialize_breakpoint_ops): Initialize
8572 catch_solib_breakpoint_ops.
8573 (_initialize_breakpoint): Register "catch load" and "catch
8574 unload".
8575 * breakpoint.h (handle_solib_event): Declare.
8576 * NEWS: Add entry for "catch load" and "catch unload".
8577
fa864999
TT
85782012-01-24 Tom Tromey <tromey@redhat.com>
8579
8580 * ada-lang.c: Include gdb_vecs.h.
8581 * charset.c: Include gdb_vecs.h.
8582 * tracepoint.h: Include gdb_vecs.h.
8583 * gdb_vecs.h: New file.
8584
f90263c1
TT
85852012-01-24 Pedro Alves <pedro@codesourcery.com>
8586
8587 * breakpoint.c (breakpoint_hit_catch_fork)
8588 (breakpoint_hit_catch_vfork, breakpoint_hit_catch_syscall)
8589 (breakpoint_hit_catch_exec): Make use of the `ws' argument.
8590 * infrun.c (inferior_has_forked, inferior_has_vforked)
8591 (inferior_has_execd, inferior_has_called_syscall): Delete.
8592 (handle_syscall_event): Get syscall_number from the execution
8593 control state's wait status.
8594 (wait_for_inferior): Don't clear syscall_number.
8595
09ac7c10
TT
85962012-01-24 Pedro Alves <palves@redhat.com>
8597
8598 * breakpoint.c (bpstat_check_location, bpstat_stop_status,
8599 pc_at_non_inline_function): Add `ws' parameter, and pass it down.
8600 (breakpoint_hit_catch_fork, breakpoint_hit_catch_vfork)
8601 (breakpoint_hit_catch_syscall, breakpoint_hit_catch_exec): Add
8602 `ws' parameter.
8603 (breakpoint_hit_ranged_breakpoint): Add `ws' parameter. Return
8604 false for events other than TARGET_SIGNAL_TRAP.
8605 (breakpoint_hit_watchpoint, base_breakpoint_breakpoint_hit):
8606 Add `ws' parameter.
8607 (bkpt_breakpoint_hit): Add `ws' parameter. Return false for
8608 events other than TARGET_SIGNAL_TRAP.
8609 (tracepoint_breakpoint_hit): Add `ws' parameter.
8610 * breakpoint.h (struct breakpoint_ops) <breakpoint_hit>: Add `ws'
8611 parameter.
8612 (bpstat_stop_status): Same.
8613 (pc_at_non_inline_function): Same.
8614 * infrun.c (handle_syscall_event, handle_inferior_event): Adjust
8615 to pass the current event's waitstatus to bpstat_stop_status
8616 and pc_at_non_inline_function.
8617
86eb7e95
JK
86182012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
8619
8620 Code cleanup.
8621 * cli/cli-cmds.c (source_script_from_stream): Never fclose STREAM.
8622 Update the function comment for it.
8623 (source_script_with_search): Call make_cleanup_fclose for STREAM.
8624 * cli/cli-script.c (script_from_file): Do not call make_cleanup_fclose
8625 for STREAM.
8626
a9b3a50f
PA
86272012-01-24 Pedro Alves <palves@redhat.com>
8628
8629 * breakpoint.c (bpstat_stop_status): Moving clearing print_it
8630 outside `bs->stop' block.
8631 (bpstat_what): Rework bp_shlib_event handling.
8632 (internal_bkpt_check_status): If the breakpoint is a
8633 bp_shlib_event, then set bs->stop and bs->print if
8634 stop_on_solib_events is set.
8635
53fe1783
GB
86362012-01-24 Gary Benson <gbenson@redhat.com>
8637
8638 Delete #if 0'd out code.
8639 * stack.c (print_frame_label_vars): Remove.
8640 (catch_info): Likewise.
8641 (_initialize_stack): Remove "info catch" command.
8642 * NEWS: Mention the above.
8643
49c62f2e
PA
86442012-01-24 Pedro Alves <palves@redhat.com>
8645
8646 * remote.c (remote_add_inferior): New `fake_pid_p' parameter. Use
8647 it.
8648 (remote_notice_new_inferior): If the remote end doesn't support
8649 the multiprocess extensions, then the PID is fake.
8650 (add_current_inferior_and_thread): New.
8651 (remote_start_remote): Use it.
8652 (extended_remote_attach_1): Adjust.
8653 (extended_remote_create_inferior_1): Use
8654 add_current_inferior_and_thread.
8655
d0d8b0c6
JK
86562012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
8657
8658 Fix watchpoints to be specific for each inferior.
8659 * breakpoint.c (watchpoint_in_thread_scope): Verify also
8660 current_program_space.
8661 * i386-nat.c (i386_inferior_data_cleanup): New.
8662 (i386_inferior_data_get): Replace variable inf_data_local by an
8663 inferior_data call.
8664 (i386_use_watchpoints): Initialize i386_inferior_data.
8665 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Use INFERIOR_PTID
8666 specific iterate_over_lwps.
8667
4403d8e9
JK
86682012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
8669
8670 Fix watchpoints across inferior fork.
8671 * amd64-linux-nat.c (update_debug_registers_callback): Update the
8672 comment for linux_nat_iterate_watchpoint_lwps.
8673 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
8674 linux_nat_iterate_watchpoint_lwps.
8675 (amd64_linux_prepare_to_resume): New comment on Linux kernel.
8676 * i386-linux-nat.c (update_debug_registers_callback): Update the
8677 comment for linux_nat_iterate_watchpoint_lwps.
8678 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
8679 linux_nat_iterate_watchpoint_lwps.
8680 (i386_linux_prepare_to_resume): New comment on Linux kernel.
8681 * i386-nat.c: Include inferior.h.
8682 (dr_mirror): Remove.
8683 (i386_inferior_data, struct i386_inferior_data)
8684 (i386_inferior_data_get): New.
8685 (i386_debug_reg_state): Use i386_inferior_data_get.
8686 (i386_cleanup_dregs, i386_update_inferior_debug_regs)
8687 (i386_insert_watchpoint, i386_remove_watchpoint)
8688 (i386_stopped_data_address, i386_insert_hw_breakpoint)
8689 (i386_remove_hw_breakpoint): New variable state, use
8690 i386_debug_reg_state instead of DR_MIRROR.
8691 * linux-nat.c (delete_lwp): New declaration.
8692 (num_lwps): Move here from downwards.
8693 (delete_lwp_cleanup): New.
8694 (linux_child_follow_fork): Create new child_lp, call
8695 linux_nat_new_thread and linux_nat_prepare_to_resume before calling
8696 PTRACE_DETACH.
8697 (num_lwps): Move upwards.
8698 (linux_nat_iterate_watchpoint_lwps): New.
8699 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): New.
8700 (linux_nat_iterate_watchpoint_lwps_ftype): New declaration.
8701
2992c9a7 87022012-01-24 Joel Brobecker <brobecker@adacore.com>
8703
8704 GDB 7.4 released.
8705
e360902b
PA
87062012-01-23 Pedro Alves <palves@redhat.com>
8707
8708 * top.c (caution): Rename to ...
8709 (confirm): ... this.
8710 (show_caution): Rename to ...
8711 (show_confirm): ... this.
8712 (quit_cover): Adjust.
8713 (init_main): Adjust.
8714 * top.h (caution): Rename to ...
8715 (confirm): ... this.
8716 * utils.c (internal_vproblem, defaulted_query): Adjust.
8717
050a2e1d
PA
87182012-01-23 Pedro Alves <palves@redhat.com>
8719
8720 * top.c (caution): Update comment.
8721 (execute_command): Don't consider the current value of `caution'.
8722
77a35dd8
JK
87232012-01-23 Jan Kratochvil <jan.kratochvil@redhat.com>
8724
8725 * cli/cli-cmds.c (find_and_open_script): Handle failure of fdopen.
8726
a71b5a38
UW
87272012-01-23 Ulrich Weigand <ulrich.weigand@linaro.org>
8728
8729 * inf-child.c: Include "gdb_stat.h" instead of <sys/stat.h>.
8730 * linux-tdep.c (linux_info_proc): Avoid ARI coding style warning.
8731 * target.c (target_fileio_pwrite): Remove buffer address from
8732 debug output.
8733 (target_fileio_pread): Likewise.
8734
d99bd577
UW
87352012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
8736
8737 * NEWS: Document remote "info proc" and "generate-core-file".
8738
35c2fab7
UW
87392012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
8740
8741 * gdbarch.sh (find_memory_regions): New callback.
8742 * gdbarch.c, gdbarch.h: Regenerate.
8743
8744 * gcore.c (gcore_memory_sections): Try gdbarch find_memory_regions
8745 callback before falling back to target method.
8746
8747 * linux-nat.c (read_mapping, linux_nat_find_memory_regions): Remove.
8748 (linux_target_install_ops): No longer install it.
8749
8750 * linux-tdep.c (linux_find_memory_regions): New function.
8751 (linux_init_abi): Install it.
8752
6432734d
UW
87532012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
8754
8755 * gdbarch.sh (make_corefile_notes): New architecture callback.
8756 * gdbarch.c: Regenerate.
8757 * gdbarch.h: Likewise.
8758
8759 * gcore.c (write_gcore_file): Try gdbarch_make_corefile_notes
8760 before target_make_corefile_notes. If NULL is returned, the
8761 target does not support core file generation.
8762
8763 * linux-nat.c: Include "linux-tdep.h".
8764 (find_signalled_thread, find_stop_signal): Remove.
8765 (linux_nat_do_thread_registers): Likewise.
8766 (struct linux_nat_corefile_thread_data): Likewise.
8767 (linux_nat_corefile_thread_callback): Likewise.
8768 (iterate_over_spus): Likewise.
8769 (struct linux_spu_corefile_data): Likewise.
8770 (linux_spu_corefile_callback): Likewise.
8771 (linux_spu_make_corefile_notes): Likewise.
8772 (linux_nat_collect_thread_registers): New function.
8773 (linux_nat_make_corefile_notes): Replace contents by call to
8774 linux_make_corefile_notes passing linux_nat_collect_thread_registers
8775 as native-only callback.
8776
8777 * linux-tdep.h: Include "bfd.h".
8778 (struct regcache): Add forward declaration.
8779 (linux_collect_thread_registers_ftype): New typedef.
8780 (linux_make_corefile_notes): Add prototype.
8781 * linux-tdep.c: Include "gdbthread.h", "gdbcore.h", "regcache.h",
8782 "regset.h", and "elf-bfd.h".
8783 (find_signalled_thread, find_stop_signal): New functions.
8784 (linux_spu_make_corefile_notes): Likewise.
8785 (linux_collect_thread_registers): Likewise.
8786 (struct linux_corefile_thread_data): New data structure.
8787 (linux_corefile_thread_callback): New funcion.
8788 (linux_make_corefile_notes): Likewise.
8789 (linux_make_corefile_notes_1): Likewise.
8790 (linux_init_abi): Install it.
8791
3030c96e
UW
87922012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
8793
8794 * gdbarch.sh (info_proc): New callback.
8795 * gdbarch.c, gdbarch.h: Regenerate.
8796
8797 * infcmd.c (info_proc_cmd_1): Try gdbarch info_proc callback
8798 before falling back to the target info_proc callback.
8799
8800 * linux-nat.c: Do not include "cli/cli-utils.h".
8801 (linux_nat_info_proc): Remove.
8802 (linux_target_install_ops): No longer install it.
8803
8804 * linux-tdep.c: Include "cli/cli-utils.h" and <ctype.h>.
8805 (read_mapping): New function.
8806 (linux_info_proc): Likewise.
8807 (linux_init_abi): Install it.
8808
145b16a9
UW
88092012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
8810
8811 * defs.h (enum info_proc_what): Moved here from linux-nat.c
8812 * infcmd.c: (info_proc_cmd_1): New function.
8813 (info_proc_cmd): New function, moved here from equivalent routine
8814 orignally in linux-nat.c.
8815 (info_proc_cmd_mappings): Likewise.
8816 (info_proc_cmd_stat): Likewise.
8817 (info_proc_cmd_status): Likewise.
8818 (info_proc_cmd_cwd): Likewise.
8819 (info_proc_cmd_cmdline): Likewise.
8820 (info_proc_cmd_exe): Likewise.
8821 (info_proc_cmd_all): Likewise.
8822 (_initialize_infcmd): Install "info proc" command and subcommands.
8823
8824 * target.h (struct target_ops): Add to_info_proc.
8825 (target_info_proc): Add prototype.
8826 * target.c (target_info_proc): New function.
8827
8828 * procfs.c (procfs_info_proc): Add prototype.
8829 (info_proc_cmd): Rename into ...
8830 (procfs_info_proc): ... this. Update argument types as appropriate
8831 for a to_info_proc implementation. Handle "what" argument.
8832 (procfs_target): Install procfs_info_proc.
8833 (_initialize_procfs): No longer install "info proc" command.
8834
8835 * linux-nat.c: (enum info_proc_what): Remove.
8836 (linux_nat_info_proc_cmd_1): Rename into ...
8837 (linux_nat_info_proc): ... this. Update argument types as appropriate
8838 for a to_info_proc implementation.
8839 (linux_nat_info_proc_cmd): Remove.
8840 (linux_nat_info_proc_cmd_mappings): Likewise.
8841 (linux_nat_info_proc_cmd_stat): Likewise.
8842 (linux_nat_info_proc_cmd_status): Likewise.
8843 (linux_nat_info_proc_cmd_cwd): Likewise.
8844 (linux_nat_info_proc_cmd_cmdline): Likewise.
8845 (linux_nat_info_proc_cmd_exe): Likewise.
8846 (linux_nat_info_proc_cmd_all): Likewise.
8847 (linux_target_install_ops): Install linux_nat_info_proc.
8848 (_initialize_linux_nat): No longer install "info proc" command
8849 and subcommands.
8850
b9e7b9c3
UW
88512012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
8852
8853 * configure.ac [AC_CHECK_FUNCS]: Check for readlink.
8854 * config.in, configure: Regenerate.
8855
8856 * target.h (struct target_ops): Add to_fileio_readlink.
8857 (target_fileio_readlink): Add prototype.
8858 * target.c (target_fileio_readlink): New function.
8859
8860 * inf-child.c: Conditionally include <sys/param.h>.
8861 (inf_child_fileio_readlink): New function.
8862 (inf_child_target): Install it.
8863
8864 * remote.c (PACKET_vFile_readlink): New enum value.
8865 (remote_hostio_readlink): New function.
8866 (init_remote_ops): Install it.
8867 (_initialize_remote): Handle vFile:readlink packet type.
8868
7313baad
UW
88692012-01-20 Pedro Alves <palves@redhat.com>
8870 Ulrich Weigand <ulrich.weigand@linaro.org>
8871
8872 * configure.ac [AC_CHECK_FUNCS]: Check for pread and pwrite.
8873 * config.in, configure: Regenerate.
8874
8875 * target.h (struct target_ops): Add to_fileio_open, to_fileio_pwrite,
8876 to_fileio_pread, to_fileio_close, to_fileio_unlink.
8877 (target_fileio_open): Add prototype.
8878 (target_fileio_pwrite): Likewise.
8879 (target_fileio_pread): Likewise.
8880 (target_fileio_close): Likewise.
8881 (target_fileio_unlink): Likewise.
8882 (target_fileio_read_alloc): Likewise.
8883 (target_fileio_read_stralloc): Likewise.
8884
8885 * target.c: Include "gdb/fileio.h".
8886 (target_read_stralloc): Accept trailing, but not embedded NUL bytes.
8887 (default_fileio_target): New function.
8888 (target_fileio_open): Likewise.
8889 (target_fileio_pwrite): Likewise.
8890 (target_fileio_pread): Likewise.
8891 (target_fileio_close): Likewise.
8892 (target_fileio_unlink): Likewise.
8893 (target_fileio_close_cleanup): Likewise.
8894 (target_fileio_read_alloc_1): Likewise.
8895 (target_fileio_read_alloc): Likewise.
8896 (target_fileio_read_stralloc): Likewise.
8897
8898 * inf-child.c: Include "gdb/fileio.h", <sys/types.h>, <sys/stat.h>,
8899 <fcntl.h>, and <unistd.h>.
8900 (inf_child_fileio_open_flags_to_host): New function.
8901 (inf_child_errno_to_fileio_error): Likewise.
8902 (inf_child_fileio_open): Likewise.
8903 (inf_child_fileio_pwrite): Likewise.
8904 (inf_child_fileio_pread): Likewise.
8905 (inf_child_fileio_close): Likewise.
8906 (inf_child_fileio_unlink): Likewise.
8907 (inf_child_target): Install to_fileio routines.
8908
8909 * remote.c (init_remote_ops): Install to_fileio routines.
8910
901f9912
UW
89112012-01-20 Pedro Alves <palves@redhat.com>
8912 Ulrich Weigand <ulrich.weigand@linaro.org>
8913
8914 * remote.c (remote_multi_process_p): Only check for multi-process
8915 protocol feature, do not check for extended protocol.
8916 (remote_supports_multi_process): Check for extended protocol here.
8917 (set_general_process): Likewise.
8918 (extended_remote_kill): Likewise.
8919 (remote_pid_to_str): Likewise.
8920 (remote_query_supported): Always query multiprocess mode.
8921
e714e1bf
UW
89222012-01-20 Pedro Alves <palves@redhat.com>
8923 Ulrich Weigand <ulrich.weigand@linaro.org>
8924
8925 * inferior.h (struct inferior): Add fake_pid_p.
8926 * inferior.c (exit_inferior_1): Clear fake_pid_p.
8927 * remote.c (remote_start_remote): Set fake_pid_p if we have to use
8928 magic_null_ptid since the remote side doesn't provide a real PID.
8929
50897289
TT
89302012-01-19 Tom Tromey <tromey@redhat.com>
8931
8932 * NEWS: Combine the two Python sections.
8933
1afc2033
JK
89342012-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
8935
8936 * target.h (target_close): Update comment on the target's unpush state.
8937
305436e0
PA
89382012-01-19 Pedro Alves <palves@redhat.com>
8939
8940 * linux-nat.c (linux_nat_close): Call linux_nat_is_async_p and
8941 linux_nat_async directly instead of going through the target
8942 vector.
8943 * target.c (unpush_target): Close target after unpushing it, not
8944 before.
8945
49323895
GB
89462012-01-19 Gary Benson <gbenson@redhat.com>
8947
8948 * mdebugread.c (sort_blocks): Replace integer constants with ones
8949 derived from FIRST_LOCAL_BLOCK.
8950
1db33378
PP
89512012-01-18 Paul Pluzhnikov <ppluzhnikov@google.com>
8952 Jan Kratochvil <jan.kratochvil@redhat.com>
8953
8954 PR gdb/9538
8955 * symfile.c (find_separate_debug_file): New function.
8956 (terminate_after_last_dir_separator): Likewise.
8957 (find_separate_debug_file_by_debuglink): Also try realpath.
8958 * configure.ac (AC_CHECK_FUNCS): Add lstat.
8959 * configure: Regenerate.
8960 * config.in: Regenerate.
8961
f83d8a90
DE
89622012-01-18 Doug Evans <dje@google.com>
8963
8964 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): Delete.
8965 (main.o): Remove rule.
8966 * configure.ac (BINDIR): Define with AC_DEFINE_DIR.
8967 (--with-sysroot): Rewrite.
8968 * configure: Regenerate.
8969 * config.in: Regenerate.
8970
2dbca4d6
SDJ
89712012-01-18 Sergio Durigan Junior <sergiodj@redhat.com>
8972
8973 * parse.c (initialize_expout): New function.
8974 (reallocate_expout): Likewise.
8975 (parse_exp_in_context): Use `initialize_expout' and
8976 `reallocate_expout' when appropriate.
8977
0695b514
PA
89782012-01-18 Pedro Alves <palves@redhat.com>
8979
8980 * record.c (struct record_breakpoint, record_breakpoint_p)
8981 (record_breakpoints): New.
8982 (record_insert_breakpoint, record_remove_breakpoint): Manage
8983 record breakpoints list. Only remove breakpoints from the
8984 inferior if they had been inserted there in the first place.
8985
136e1c30
DE
89862012-01-17 Doug Evans <dje@google.com>
8987
8988 * linespec.c (decode_line_internal): Don't call symtabs_from_filename
8989 if we know we don't have a file name to look for.
8990
c0bf857d
PA
89912012-01-17 Pedro Alves <palves@redhat.com>
8992
8993 * dwarf2-frame.c (dwarf2_frame_cfa): Throw NOT_AVAILABLE_ERROR, if
8994 the frame's stop reason is UNWIND_UNAVAILABLE.
8995
b486de60
JK
89962012-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
8997
8998 Fix compilation error.
8999 * m2-exp.y (yyerror): Use ANSI C prototype.
9000
d04550a6
SDJ
90012012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
9002
9003 * f-exp.y (parse_number): Convert prototype from K&R to ANSI C.
9004 (growbuf_by_size): Likewise.
9005 (yyerror): Likewise.
9006 * m2-exp.y (make_qualname): Remove function (was #if 0'ed).
9007 (modblock): Remove variable (was #if 0'ed).
9008 (parse_number): Convert prototype from K&R to ANSI C.
9009 (yyerror): Likewise.
9010 * objc-exp.y (parse_number): Likewise.
9011 (yyerror): Likewise.
9012 (yylex): Remove #if 0'ed code.
9013 * p-exp.y (uptok): Convert prototype from K&R to ANSI C.
9014 (yyerror): Likewise.
9015
4aac40c8
TT
90162012-01-16 Tom Tromey <tromey@redhat.com>
9017
9018 * NEWS: Add item.
9019 * symtab.h (compare_filenames_for_search): Declare.
9020 * symtab.c (compare_filenames_for_search): New function.
9021 (iterate_over_some_symtabs): Use it.
9022 * symfile.h (struct quick_symbol_functions)
9023 <map_symtabs_matching_filename>: Change spec.
9024 * psymtab.c (partial_map_symtabs_matching_filename): Use
9025 compare_filenames_for_search. Update for new spec.
9026 * dwarf2read.c (dw2_map_symtabs_matching_filename): Use
9027 compare_filenames_for_search. Update for new spec.
9028 * breakpoint.c (clear_command): Use compare_filenames_for_search.
9029
cafec441
TT
90302012-01-16 Tom Tromey <tromey@redhat.com>
9031
9032 PR python/13281:
9033 * gdbtypes.h (TYPE_FLAG_ENUM): New macro.
9034 (struct main_type) <flag_flag_enum>: New field.
9035 * dwarf2read.c (process_enumeration_scope): Detect "flag" enums.
9036 * NEWS: Add entries.
9037 * c-valprint.c (c_val_print) <TYPE_CODE_ENUM>: Handle "flag"
9038 enums.
9039 * python/lib/gdb/printing.py (_EnumInstance): New class.
9040 (FlagEnumerationPrinter): Likewise.
9041
983af33b
SDJ
90422012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
9043
9044 * breakpoint.c (create_sals_from_address_default): New function.
9045 (create_breakpoints_sal_default): Likewise.
9046 (decode_linespec_default): Likewise.
9047 (is_marker_spec): Removed.
9048 (strace_marker_p): New function.
9049 (init_breakpoint_sal): Using `strace_marker_p' instead of
9050 `is_marker_spec'.
9051 (create_breakpoint): Call method `create_sals_from_address' from
9052 breakpoint_ops, replacing code that created SALs conditionally
9053 on the type of the breakpoint. Call method `create_breakpoints_sal',
9054 replacing code that created breakpoints conditionally on the type
9055 wanted.
9056 (base_breakpoint_create_sals_from_address): New function.
9057 (base_breakpoint_create_breakpoints_sal): Likewise.
9058 (base_breakpoint_decode_linespec): Likewise.
9059 (base_breakpoint_ops): Add methods
9060 `base_breakpoint_create_sals_from_address',
9061 `base_breakpoint_create_breakpoints_sal' and
9062 `base_breakpoint_decode_linespec'.
9063 (bkpt_create_sals_from_address): New function.
9064 (bkpt_create_breakpoints_sal): Likewise.
9065 (bkpt_decode_linespec): Likewise.
9066 (tracepoint_create_sals_from_address): Likewise.
9067 (tracepoint_create_breakpoints_sal): Likewise.
9068 (tracepoint_decode_linespec): Likewise.
9069 (strace_marker_create_sals_from_address): Likewise.
9070 (strace_marker_create_breakpoints_sal): Likewise.
9071 (strace_marker_decode_linespec): Likewise.
9072 (strace_marker_breakpoint_ops): New variable.
9073 (addr_string_to_sals): Remove `marker_spec'. Call method
9074 `decode_linespec' from breakpoint_ops, replacing code that decoded
9075 an address string into a SAL. Use `strace_marker_p' instead of
9076 `marker_spec'.
9077 (strace_command): Decide whether we are dealing with a static
9078 tracepoint with marker or not. Use the appropriate breakpoint_ops.
9079 (initialize_breakpoint_ops): Initialize new fields of breakpoint_ops.
9080 * breakpoint.h (linespec_result, linespec_sals): New forward
9081 declarations.
9082 (breakpoint_ops) <create_sals_from_address>,
9083 <create_breakpoints_sal>, <decode_linespec>: New methods.
9084
4795f398
DE
90852012-01-14 Doug Evans <dje@google.com>
9086
9087 * NEWS: Update text for "maint set python print-stack".
9088 It is deprecated in gdb 7.4 and deleted in 7.5.
9089
ee5106fe
EZ
90902012-01-13 Eli Zaretskii <eliz@gnu.org>
9091
9092 * gdb_curses.h (MOUSE_MOVED) [__MINGW32__]: Undefine before
9093 including curses.h.
9094
b161e06f
JK
90952012-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
9096
9097 * configure: Regenerate.
9098 * config.in: Regenerate.
9099
85254831
KS
91002012-01-12 Keith Seitz <keiths@redhat.com>
9101
9102 PR mi/10586
9103 * varobj.c (ANONYMOUS_STRUCT_NAME): Define.
9104 (ANONYMOUS_UNION_NAME): Define.
9105 (is_path_expr_parent): New function.
9106 (get_path_expr_parent): New function.
9107 (is_anonymous_child): New function.
9108 (create_child_with_value): If the child is anonymous and without
9109 a name, assign an object name to it.
9110 (c_describe_child): Use get_path_expr_parent to determine
9111 the parent expression.
9112 If there field represents an anonymous struct or union and
9113 has no name, set an appropriate display name and expression.
9114 (cplus_describe_child): Likewise.
9115
620fa63a
PA
91162012-01-12 Pedro Alves <palves@redhat.com>
9117
9118 * i386-tdep.c (i386_frame_cache_1): Also mark the frame base as
9119 available when %ebp is found to be zero (outermost).
9120
2efa2c79
AT
91212012-01-11 Andreas Tobler <andreast@fgznet.ch>
9122
9123 * common/gdb_assert.h (gdb_static_assert): Rename static_assert to
9124 an internal gdb_static_assert.
9125 * mi/mi-common.c: Rename static_assert to gdb_static_assert.
9126
88e7d25d
TT
91272012-01-11 Tom Tromey <tromey@redhat.com>
9128
9129 PR gdb/9598:
9130 * breakpoint.c (_initialize_breakpoint): Fix help for "catch
9131 catch" and "catch throw".
9132
72384ba3
PH
91332012-01-11 Paul Hilfinger <hilfingr@adacore.com>
9134
9135 * blockframe.c (block_innermost_frame): Start search from selected
9136 frame, if present, or otherwise the current frame.
9137
9138 * c-exp.y (variable): Update innermost_block for
9139 'block COLONCOLON NAME' clause.
9140 * m2-exp.y (variable): Ditto.
9141 * objc-exp.y (variable): Ditto.
9142
065a711f
TT
91432012-01-10 Tom Tromey <tromey@redhat.com>
9144
9145 PR python/13199:
9146 * python/python.c (finish_python_initialization): Set sys.argv.
9147
f3f5162e
DE
91482012-01-10 Doug Evans <dje@google.com>
9149
9150 * dwarf2read.c (dwarf_decode_lines): Remove arg "abfd". New arg
9151 "want_line_info". All callers updated.
9152 (dwarf_decode_lines_1): New function.
9153 (handle_DW_AT_stmt_list): Add function comment.
9154 New arg "want_line_info". All callers updated.
9155 (read_file_scope,read_type_unit_scope): Move comment from
9156 handle_DW_AT_stmt_list to here.
9157
9934703b
JK
91582012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
9159
9160 Fix regression after libiberty/ update for GCC PR 6057 and others.
9161 * c-exp.y (operator) <OPERATOR DELETE>
9162 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
9163 * cp-name-parser.y (fill_comp, make_operator, make_dtor)
9164 (make_builtin_type, make_name): New variable i, add gdb_assert.
9165 (operator) <OPERATOR NEW>: Update ARGS to 3.
9166 (operator) <OPERATOR DELETE>: Add trailing space.
9167 (operator) <OPERATOR NEW '[' ']'>: Update ARGS to 3.
9168 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
9169 * cp-support.c (cp_canonicalize_string): Check NULL from
9170 cp_comp_to_string, call warning and return.
9171
06b9f45f
JK
91722012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
9173
9174 Fix duplicate .o files after omitting libbfd.a.
9175 * Makefile.in (ALL_TARGET_OBS): Remove corelow.o.
9176 (SFILES): Add corelow.c.
9177 (COMMON_OBS): Add corelow.o.
9178 (ALLDEPFILES): Remove corelow.c.
9179 * config/alpha/alpha-linux.mh (NATDEPFILES): Remove corelow.o.
9180 * config/alpha/alpha-osf3.mh: Likewise.
9181 * config/alpha/fbsd.mh: Likewise.
9182 * config/arm/nbsdaout.mh: Likewise.
9183 * config/arm/nbsdelf.mh: Likewise.
9184 * config/i386/i386gnu.mh: Likewise.
9185 * config/ia64/hpux.mh: Likewise.
9186 * config/ia64/linux.mh: Likewise.
9187 * config/m32r/linux.mh: Likewise.
9188 * config/m68k/linux.mh: Likewise.
9189 * config/mips/irix5.mh: Likewise.
9190 * config/mips/irix6.mh: Likewise.
9191 * config/pa/hpux.mh: Likewise.
9192 * config/pa/linux.mh: Likewise.
9193 * config/powerpc/aix.mh: Likewise.
9194 * config/sparc/linux.mh: Likewise.
9195 * config/sparc/linux64.mh: Likewise.
9196 * config/sparc/sol2.mh: Likewise.
9197 * config/vax/vax.mh: Likewise.
9198 * configure.tgt (alpha*-*-freebsd* alpha*-*-kfreebsd*-gnu)
9199 (alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu, alpha*-*-openbsd*)
9200 (am33_2.0*-*-linux*, arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-linux*)
9201 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-netbsd*)
9202 (hppa*-*-openbsd*, i[34567]86-*-dicos*, i[34567]86-*-freebsd*)
9203 (i[34567]86-*-kfreebsd*-gnu, i[34567]86-*-netbsd*)
9204 (i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*, i[34567]86-*-nto*)
9205 (i[34567]86-*-solaris2.1[0-9]*, x86_64-*-solaris2.1[0-9]*)
9206 (i[34567]86-*-solaris*, i[34567]86-*-linux*, i[34567]86-*-cygwin*)
9207 (i[34567]86-*-mingw32*, m68*-*-netbsd*, m68*-*-knetbsd*-gnu)
9208 (m68*-*-openbsd*, m88*-*-openbsd*, microblaze*-linux-*)
9209 (microblaze*-*-linux*, mips*-*-linux*, mips*-*-netbsd*)
9210 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
9211 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-linux*)
9212 (powerpc64-*-linux*, s390*-*-*, score-*-*, sh*-*-linux*)
9213 (sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
9214 (sparc*-*-freebsd*, sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*)
9215 (sparc-*-knetbsd*-gnu, sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu)
9216 (sparc-*-openbsd*, sparc64-*-openbsd*, tic6x-*-*linux, vax-*-netbsd*)
9217 (vax-*-knetbsd*-gnu, vax-*-openbsd*, x86_64-*-dicos*, x86_64-*-linux*)
9218 (x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu, x86_64-*-netbsd*)
9219 (x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*, xtensa*-*-linux*): Remove
9220 corelow.o from gdb_target_obs.
9221 * corefile.c (core_target): Update the comment on NULL value.
9222 (core_file_command): Replace error by gdb_assert on CORE_TARGET.
9223 * corelow.c (sniff_core_bfd): Call error instead of warning on zero
9224 MATCHES. Drop YUMMY set on NULL.
9225 (core_close): Do not call exit_inferior_silent on zero PID. Do not
9226 reclaim CORE_DATA if it is already NULL.
9227
34365054
DE
92282012-01-09 Doug Evans <dje@google.com>
9229
9230 * gdbtypes.c (safe_parse_type): Initialize type to keep gcc happy.
9231 * varobj.c (varobj_set_value): Initialize val,value to keep gcc happy.
9232
696166a3
KS
92332012-01-09 Keith Seitz <keiths@redhat.com>
9234
9235 * breakpoint.c (wrapper.h): Don't include.
9236
8e7b59a5
KS
92372012-01-09 Keith Seitz <keiths@redhat.com>
9238
9239 * Makefile.in (SFILES): Remove wrapper.c.
9240 (HFILES_NO_SRCDIR): Remove wrapper.h.
9241 (COMMON_OBS): Remove wrapper.o.
9242 * cli/cli-interp.c: Don't inlude wrapper.h.
9243 * corelow.c: Likewise.
9244 (core_open): Replace gdb_target_find_new_threads with
9245 TRY_CATCH around target_find_new_threads.
9246 * eval.c (fetch_subexp_value): Likewise for value_fetch_lazy.
9247 * gdbtypes.c (safe_parse_type): Likewise for parse_and_eval_type.
9248 * varobj.c (varobj_create): Likewise for parse_exp_1 and
9249 evaluate_expression.
9250 (varobj_set_value): Likewise for evaluate_expression and
9251 value_assign.
9252 (install_new_variable): Likewise for value_fetch_lazy.
9253 (adjust_value_for_child_access): Likewise for value_ind.
9254 (c_describe_child): Likewise for value_subscript and
9255 value_ind.
9256 (c_value_of_root): Likewise for evaluate_expression.
9257 * wrapper.c: Remove.
9258 * wrapper.h: Remove.
9259
1a4eeb98
DE
92602012-01-09 Doug Evans <dje@google.com>
9261
9ff913ba
DE
9262 * dwarf2read.c (read_and_check_comp_unit_head): Renamed from
9263 partial_read_comp_unit_head. Replace "buffer", "buffer_size" and
9264 "abfd" args with "section". All callers updated.
9265 Error checking code moved ...
9266 (error_check_comp_unit_head): ... here. New function.
9267 (read_and_check_type_unit_head): Renamed from read_type_unit_head.
9268 Delete arg "abfd". New arg "type_offset". All callers updated.
9269 (create_debug_types_hash_table): Simplify by using
9270 read_and_check_type_unit_head.
9271
1a4eeb98
DE
9272 * parser-defs.h (namecopy): Delete.
9273 * parse.c (namecopy, namecopy_size): Move into copy_name.
9274
2e6af8c0
JK
92752012-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
9276
9277 Partially fix duplicate .o files after omitting libbfd.a.
9278 * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove solib.o.
9279 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
9280 * config/i386/obsdaout.mh (NATDEPFILES): Remove solib.o.
9281 * config/m68k/nbsdaout.mh (NATDEPFILES): Remove solib.o.
9282 * config/m68k/obsd.mh (NATDEPFILES): Remove solib.o.
9283 * config/powerpc/aix.mh (NATDEPFILES): Remove xcoffread.o.
9284 * config/vax/nbsdaout.mh (NATDEPFILES): Remove solib.o.
9285
9f2f828a
PA
92862012-01-09 Pedro Alves <palves@redhat.com>
9287
9288 * MAINTAINERS: Update my email address.
9289
4d72c0bc
DE
92902012-01-08 Doug Evans <dje@google.com>
9291
d467dd73
DE
9292 * dwarf2read.c (dwarf2_per_objfile): Rename n_type_comp_units to
9293 n_type_units. Rename type_comp_units to all_type_units.
9294 All uses updated.
9295 (add_signatured_type_cu_to_table): Renamed from
9296 add_signatured_type_cu_to_list. All callers updated.
9297
4d72c0bc
DE
9298 * gdbtypes.h (struct cplus_struct_type): Delete member
9299 nfn_fields_total. All uses removed.
9300
21b2bd31
DE
93012012-01-06 Doug Evans <dje@google.com>
9302
9303 * dwarf2read.c: Move FIXME from dwarf2_build_psymtabs_hard
9304 to top of file.
9305 (dwarf2_find_comp_unit): Delete.
9306 (process_psymtab_comp_unit): Make result "void".
9307 Delete args buffer, info_ptr, buffer_size, and replace with
9308 "section". All callers updated.
9309 (dwarf2_build_psymtabs_hard): Simplify.
9310
bfd189b1
SDJ
93112012-01-06 Sergio Durigan Junior <sergiodj@redhat.com>
9312 Thiago Jung Bauermann <bauerman@br.ibm.com>
9313
9314 * ada-lang.c (ada_exception_name_addr): Add `volatile' keyword
9315 before `struct gdb_exception'.
9316 * breakpoint.c (update_global_location_list_nothrow)
9317 (update_breakpoint_locations, enable_breakpoint_disp): Likewise.
9318 * cp-abi.c (value_rtti_type): Likewise.
9319 * cp-support.c (cp_validate_operator): Likewise.
9320 * infrun.c (insert_exception_resume_breakpoint)
9321 (check_exception_resume, keep_going): Likewise.
9322 * mi-interp.c (mi_breakpoint_created)
9323 (mi_breakpoint_modified): Likewise.
9324 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Likewise.
9325 * solib-ia64-hpux.c (ia64_hpux_at_dld_breakpoint_p)
9326 (ia64_hpux_handle_dld_breakpoint_1): Likewise.
9327
6b07635f
DE
93282012-01-05 Doug Evans <dje@google.com>
9329
0b30b85c
DE
9330 * dwarf2read.c (statement_prologue): Delete, unused.
9331
98714339
DE
9332 * dwarf2read.c (dwarf2_per_cu_addr_size): Make result type an int.
9333 * dwarf2loc.h (dwarf2_per_cu_addr_size): Update.
9334
6b07635f
DE
9335 * dwarf2read.c (comp_unit_header): Delete, unused.
9336
761f4555
UW
93372012-01-05 Ulrich Weigand <uweigand@de.ibm.com>
9338
9339 * configure.tgt [s390*-*-*] (gdb_target_obs): Add corelow.o.
9340 * config/s390/s390.mh (NATDEPFILES): Remove corelow.o.
9341
2ca0b532
PA
93422012-01-05 Khoo Yit Phang <khooyp@cs.umd.edu>
9343
9344 * infrun.c (normal_stop): Don't skip calling the normal_stop
9345 observers if the thread was doing a multi-step, but stopped for
9346 some reason other than stepping.
9347
50aeff07
PA
93482012-01-05 Pedro Alves <alves.ped@gmail.com>
9349
9350 * cli/cli-decode.h: Add comments.
9351 (CMD_LIST_AMBIGUOUS): Moved to command.h
9352 (add_cmd, add_alias_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
9353 (set_cmd_cfunc, set_cmd_sfunc, set_cmd_completer, cmd_cfunc_eq)
9354 (set_cmd_context, get_cmd_context, lookup_cmd, lookup_cmd_1)
9355 (deprecate_cmd, deprecated_cmd_warning, lookup_cmd_composition)
9356 (add_com, add_com_alias, add_info, add_info_alias)
9357 (complete_on_cmdlist, complete_on_enum, help_list): Remove
9358 declarations.
9359 * command.h: Add and adjust comments.
9360 (CMD_LIST_AMBIGUOUS): Moved here.
9361 (help_cmd, help_cmd_list): Delete declarations.
9362
5953832c
DE
93632012-01-04 Doug Evans <dje@google.com>
9364
e5fe5e75
DE
9365 * dwarf2read.c (dwarf2_read_abbrevs): Delete arg "abfd".
9366 All callers updated.
9367 (load_full_type_unit): Renamed from read_signatured_type_at_offset.
9368 Replace all arguments with "per_cu". All callers updated.
9369
28dee7f5
DE
9370 * dwarf2read.c (dwarf2_per_cu_data): Remove outdated comment.
9371
23745b47
DE
9372 * dwarf2read.c (init_one_comp_unit): Delete arg "objfile".
9373 New arg "per_cu". All callers updated.
9374
5953832c
DE
9375 Delete #if 0'd out code.
9376 * language.c (binop_result_type): Delete.
9377 (simple_type, ordered_type, same_type, integral_type): Delete.
9378 (numeric_type, character_type, string_type, boolean_type): Delete.
9379 (float_type, structured_type): Delete.
9380 * language.h: Update.
9381
0f5b7562
TT
93822012-01-04 Tom Tromey <tromey@redhat.com>
9383
9384 * python/py-value.c (valpy_binop): Initialize 'res_val'.
9385
78218f56
JB
93862012-01-04 Joel Brobecker <brobecker@adacore.com>
9387
9388 * corefile.c (close_exec_file): Delete.
9389 (reopen_exec_file): Remove commented out code that seems related
9390 to close_exec_file, which is being deleted here.
9391 * inferior.h (close_exec_file): Delete.
9392 * fork-child.c (fork_inferior): Remove call to fork_inferior.
9393
0fcd72ba
JB
93942012-01-04 Joel Brobecker <brobecker@adacore.com>
9395
9396 * ada-lang.c: #include "cli/cli-utils.h".
9397 (get_selections): Use skip_spaces.
9398 (ada_get_next_arg): Use skip_spaces and skip_to_space.
9399 (catch_ada_exception_command_split): Use skip_spaces.
9400 (ada_decode_assert_location): Likewise.
9401
1dabb4c4
JB
94022012-01-04 Joel Brobecker <brobecker@adacore.com>
9403
9404 * linespec.c (decode_line_internal): Check for C++ or Java
9405 compound constructs only if the current language is C, C++
9406 or Java.
9407
5931a2fa
JK
94082012-01-04 Jan Kratochvil <jan.kratochvil@redhat.com>
9409
9410 Revert:
9411 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
9412 Joel Brobecker <brobecker@adacore.com>
9413 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
9414 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
9415 3 times.
9416 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
9417 fall through into AT_ENTRY_POINT.
9418 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
9419 DUMMY_ADDR with it.
9420 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
9421 PPC_INSN_SIZE skip to 3 times.
9422
1a2da5ee
JB
94232012-01-04 Joel Brobecker <brobecker@adacore.com>
9424
9425 * linespec.c (add_minsym): Preserve function descriptors.
9426
8645ff69
UW
94272012-01-04 Ulrich Weigand <uweigand@de.ibm.com>
9428
9429 * breakpoint.c (all_locations_are_pending): Consider locations
9430 in program spaces executing during startup pending as well.
9431
0b302171
JB
94322012-01-04 Joel Brobecker <brobecker@adacore.com>
9433
9434 Copyright year update in most files of the GDB Project.
9435
8ba098ad
JB
94362012-01-04 Joel Brobecker <brobecker@adacore.com>
9437
9438 * copyright.sh: Delete.
9439 * copyright.py: Rewrite.
9440
09c01c30
JB
94412012-01-04 Joel Brobecker <brobecker@adacore.com>
9442
9443 * gnulib/extra/update-copyright: New file, imported from gnulib.
9444
3c36c0af
JB
94452012-01-04 Joel Brobecker <brobecker@adacore.com>
9446
9447 * README (Copyright and License Notices): New section.
9448
888fe1e1
TT
94492012-01-03 Tom Tromey <tromey@redhat.com>
9450
9451 PR python/12533:
9452 * python/py-value.c (valpy_dereference, valpy_get_address
9453 valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
9454 (valpy_getitem, valpy_call, valpy_binop, valpy_negative)
9455 (valpy_absolute, valpy_richcompare): Free intermediate values.
9456
6e681866
JB
94572011-01-03 Joel Brobecker <brobecker@adacore.com>
9458
9459 * ada-lang.c: Reformat the copyright notice.
9460
0cd09acb
JK
94612012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
9462
9463 * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
9464 * configure.tgt (arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-symbianelf*)
9465 (i[34567]86-*-dicos*, i[34567]86-*-cygwin*, i[34567]86-*-mingw32*)
9466 (x86_64-*-dicos*, x86_64-*-mingw*): Remove solib-target.o.
9467 Revert this part of:
9468 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
9469 Build gdb directly from *.o files not using libgdb.a.
9470 * Makefile.in (COMMON_OBS): Remove solib-target.o.
9471
12c3e59c
JB
94722012-01-02 Joel Brobecker <brobecker@adacore.com>
9473
9474 * gdb/common/gdb_thread_db.h, gdb/dbxread.c, gdb/environ.c,
9475 gdb/gcore.h, gdb/rs6000-tdep.h, gdb/s390-nat.c, gdb/tic6x-tdep.c:
9476 Reformat the copyright header.
9477
11bf1490
JK
94782012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
9479
9480 Revert this part of:
9481 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
9482 Remove the gdbtui binary.
9483 * gdb.c (main): Remove args.interpreter_p initialization.
9484 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
9485 * main.h (struct captured_main_args): Remove interpreter_p.
9486
1fef196f
JB
94872012-01-02 Joel Brobecker <brobecker@adacore.com>
9488
9489 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2011.
9490
67827812
JB
94912012-01-02 Joel Brobecker <brobecker@adacore.com>
9492
9493 * top.c (print_gdb_version): Update copyright year.
9494
a4d0b831
YQ
94952012-01-02 Yao Qi <yao@codesourcery.com>
9496
9497 * inf-ptrace.c (inf_ptrace_xfer_partial): Reindent.
9498
b5914469
JK
94992012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
9500 Joel Brobecker <brobecker@adacore.com>
9501
9502 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
9503 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
9504 3 times.
9505 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
9506 fall through into AT_ENTRY_POINT.
9507 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
9508 DUMMY_ADDR with it.
9509 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
9510 PPC_INSN_SIZE skip to 3 times.
9511
8da828f7
JK
95122012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
9513
9514 * amd64-linux-nat.c (update_debug_registers_callback): New comment on
9515 the return value.
9516 * i386-linux-nat.c (update_debug_registers_callback): Likewise.
9517
8574e74b
JK
95182012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
9519
9520 Build gdb directly from *.o files not using libgdb.a.
9521 * Makefile.in (SUBDIR_TUI_OBS): Remove duplicate tui.o.
9522 (COMMON_OBS): Remove solib-target.o.
9523 (LIBGDB_OBS, libgdb.a): Move it before the gdb$(EXEEXT) rule.
9524 (gdb$(EXEEXT)): Replace libgdb.a with $(LIBGDB_OBS).
9525 (LIBGDB_OBS, libgdb.a): Move it above.
9526 * configure.tgt (alpha*-*-linux*, alpha*-*-freebsd*)
9527 (alpha*-*-kfreebsd*-gnu, alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu)
9528 (alpha*-*-openbsd*, am33_2.0*-*-linux*, arm*-wince-pe)
9529 (arm*-*-mingw32ce*, arm*-*-linux*, arm*-*-netbsd*, arm*-*-knetbsd*-gnu)
9530 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-linux*)
9531 (hppa*-*-netbsd*, hppa*-*-openbsd*, i[34567]86-*-darwin*)
9532 (i[34567]86-*-dicos*, i[34567]86-*-freebsd*, i[34567]86-*-kfreebsd*-gnu)
9533 (i[34567]86-*-netbsd*, i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*)
9534 (i[34567]86-*-nto*, i[34567]86-*-solaris2.1[0-9]*)
9535 (x86_64-*-solaris2.1[0-9]*, i[34567]86-*-solaris*, i[34567]86-*-linux*)
9536 (i[34567]86-*-gnu*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
9537 (m68*-*-netbsd*, m68*-*-knetbsd*-gnu, m68*-*-openbsd*)
9538 (microblaze*-linux-*, microblaze*-*-linux*, mips*-sgi-irix5*)
9539 (mips*-sgi-irix6*, mips*-*-linux*, mips*-*-netbsd*)
9540 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
9541 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-aix*, rs6000-*-*)
9542 (powerpc-*-linux*, powerpc64-*-linux*, powerpc*-*-*, s390*-*-*)
9543 (sh*-*-linux*, sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
9544 (sparc-*-linux*, sparc64-*-linux*, sparc*-*-freebsd*)
9545 (sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*, sparc-*-knetbsd*-gnu)
9546 (sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu, sparc-*-openbsd*)
9547 (sparc64-*-openbsd*, sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*)
9548 (sparc-*-solaris2*, sparcv9-*-solaris2*, sparc64-*-solaris2*)
9549 (vax-*-netbsd*, vax-*-knetbsd*-gnu, x86_64-*-darwin*, x86_64-*-dicos*)
9550 (x86_64-*-linux*, x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu)
9551 (x86_64-*-netbsd*, x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*)
9552 (xtensa*-*-linux*, xtensa*): Remove solib.o from gdb_target_obs.
9553
217bff3e
JK
95542012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
9555
9556 Remove the gdbtui binary.
9557 * .gitignore (/gdbtui): Remove.
9558 * Makefile.in (TUI): Remove.
9559 (SUBDIR_TUI_OBS): Remove tui-main.o.
9560 (SUBDIR_TUI_SRCS): Remove tui/tui-main.c.
9561 (all-tui, install-tui, uninstall-tui, $(TUI)$(EXEEXT), clean-tui)
9562 (tui-main.o): Remove.
9563 (all_object_files): Remove tui-main.o.
9564 * NEWS: New note for the gdbtui removal.
9565 * configure: Rebuilt.
9566 * configure.ac: No longer add all-tui, clean-tui, install-tui and
9567 uninstall-tui to CONFIG_ALL, CONFIG_CLEAN, CONFIG_INSTALL and
9568 CONFIG_UNINSTALL respectively.
9569 * gdb.c (main): Remove args.interpreter_p initialization.
9570 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
9571 * main.h (struct captured_main_args): Remove interpreter_p.
9572 * tui/tui-main.c: Remove.
9573
9cdd5dbd
DE
95742012-01-01 Doug Evans <dje@google.com>
9575
bb5ed363
DE
9576 * dwarf2read.c (dwarf2_compute_name): Simplify objfile references.
9577 (dwarf2_physname, read_import_statement): Ditto.
9578 (read_call_site_scope, dwarf2_record_block_ranges): Ditto.
9579 (process_structure_scope read_subroutine_type): Ditto.
9580 (read_typedef, load_partial_dies, read_partial_die): Ditto.
9581 (find_partial_die, dwarf_decode_lines, lookup_die_type): Ditto.
9582 (dwarf2_fetch_die_location_block): Ditto.
9583 (dwarf_decode_macros, dwarf2_symbol_mark_computed): Ditto.
9584
a0f42c21
DE
9585 * dwarf2read.c (read_signatured_type): Delete `objfile' arg.
9586 All callers updated.
9587 (load_full_comp_unit, queue_comp_unit, process_queue): Ditto.
9588 (dw2_do_instantiate_symtab, dw2_instantiate_symtab): Ditto.
9589 (process_psymtab_comp_unit, load_partial_comp_unit): Ditto.
9590
2dc860c0
DE
9591 * dwarf2read.c (load_cu): Move assert to more useful location.
9592
68dc6402
DE
9593 * dwarf2read.c (free_heap_comp_unit): Renamed from free_one_comp_unit.
9594 All callers updated.
9595
9cdd5dbd
DE
9596 * dwarf2read.c (dwarf2_per_objfile): Add comment.
9597 (dwarf2_elf_names): Minor reformat.
9598 (dwarf2_per_cu_data): Tweak comment.
9599 (dwarf2_read_section): Fix comment.
9600 (create_all_comp_units): Fix comment.
9601 (load_full_comp_unit): Fix comment.
9602 (process_full_comp_unit): Fix comment.
9603 (read_signatured_type): Fix comment.
9604
0c10e53e 9605For older changes see ChangeLog-2011.
c906108c
SS
9606\f
9607Local Variables:
9608mode: change-log
9609left-margin: 8
9610fill-column: 74
9611version-control: never
57da7796 9612coding: utf-8
c906108c 9613End:
This page took 1.855531 seconds and 4 git commands to generate.