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