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