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