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