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