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