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