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