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