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