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