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