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