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