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