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