[Ada] Breakpoints on task bodies
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
9ac7f98e
JB
12011-12-21 Joel Brobecker <brobecker@adacore.com>
2
3 * ada-lang.c (is_name_suffix): Add handling of "TKB" suffixes.
4 Update function documentation.
5 * dictionary.c (dict_hash): Ignore "TKB" suffixes in hash
6 computation.
7
6e012a6c
PA
82011-12-20 Pedro Alves <alves.ped@gmail.com>
9 Jan Kratochvil <jan.kratochvil@redhat.com>
10
11 * linux-nat.c (add_lwp): Don't call linux_nat_new_thread on the
12 first LWP.
13 * amd64-linux-nat.c (update_debug_registers_callback): Instantiate
14 `lwp->arch_private' if NULL.
15 (amd64_linux_prepare_to_resume): Do nothing if `lwp->arch_private'
16 is NULL.
17 * i386-linux-nat.c (update_debug_registers_callback): Instantiate
18 `lwp->arch_private' if NULL.
19 (i386_linux_prepare_to_resume): Do nothing if `lwp->arch_private'
20 is NULL.
21
87c31f06
DE
222011-12-19 Doug Evans <dje@google.com>
23
24 * python/py-auto-load.c (info_auto_load_scripts): Pass address of
25 scripts vector to collect_matching_scripts.
26 (collect_matching_scripts): Update.
27
f6eeced0
JK
282011-12-19 Jan Kratochvil <jan.kratochvil@redhat.com>
29
30 * symfile.c (reread_symbols): Move free_objfile_separate_debug,
31 preserve_values, sym_finish and clear_objfile_data calls before BFD
32 close. Move free_objfile_separate_debug as the very first call. New
33 comment on the ordering.
34
8de7d199
UW
352011-12-19 Ulrich Weigand <uweigand@de.ibm.com>
36
37 * s390-tdep.c (s390_push_dummy_call): Set addressing mode bit
38 in return PSWA.
39
984ac464
TT
402011-12-19 Tom Tromey <tromey@redhat.com>
41
42 * symtab.h (add_minsym_to_hash_table): Don't declare.
43 * minsyms.c (add_minsym_to_hash_table): Now static.
44
828cfa8d
JB
452011-12-19 Joel Brobecker <brobecker@adacore.com>
46
47 * elfread.c (elf_symtab_read): Ignore undefined symbols with
48 nonzero addresses if they do not correspond to a .plt section
49 when one is available in the objfile.
50
dd274a34
AS
512011-12-17 Andreas Schwab <schwab@linux-m68k.org>
52
53 * cp-name-parser.y (cp_merge_demangle_parse_infos): Don't use
54 obstack_empty_p.
55
a3e3e961
MK
562011-12-17 Mark Kettenis <kettenis@gnu.org>
57
58 * amd64obsd-tdep.c (amd64obsd_init_abi): Don't set
59 regset_from_core_section.
60 (amd64obsd_core_init_abi): New function that sets
61 regset_from_core_section.
62 (_initialize_amd64obsd_tdep): Use amd64obsd_core_init_abi for
63 traditional core dumps.
64
0dcddd84
MK
652011-12-17 Mark Kettenis <kettenis@gnu.org>
66
67 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Detect new signal
68 trampoline to be introduced in OpenBSD 5.0.
69
3e290cb1
JK
702011-12-17 Jan Kratochvil <jan.kratochvil@redhat.com>
71
72 Fix build regression from the PR threads/10729 fix.
73 * s390-nat.c (s390_insert_watchpoint, s390_remove_watchpoint): Use LP,
74 not LP->PTID.
75
56934ab1
AS
762011-12-16 Andrey Smirnov <andrew.smirnov@gmail.com>
77
78 * mi/mi-main.c (mi_cmd_list_thread_groups): Rename `optind' and
79 `optarg' to `oind' and `oarg', respectively(-Wshadow).
80 (mi_cmd_data_read_memory): Ditto.
81 (mi_cmd_data_read_memory_bytes): Ditto.
82 (mi_cmd_data_write_memory): Ditto.
83
324478ca
AS
842011-12-16 Andrey Smirnov <andrew.smirnov@gmail.com>
85
86 * mi/mi-getopt.c (mi_getopt): Rename `optind' and `optarg' to
87 `oind' and `oarg', respectively(-Wshadow).
88 (mi_valid_noargs): Ditto.
89
54dc8297
AS
902011-12-16 Andrey Smirnov <andrew.smirnov@gmail.com>
91
92 * mi/mi-cmd-var.c (print_varobj): Rename `optind' and `optarg' to
93 `oind' and `oarg', respectively(-Wshadow).
94
00629212
AS
952011-12-16 Andrey Smirnov <andrew.smirnov@gmail.com>
96
97 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Rename `optind' and
98 `optarg' to `oind' and `oarg', respectively(-Wshadow).
99 (mi_cmd_target_file_put): Ditto.
100 (mi_cmd_target_file_delete): Ditto.
101
7082409d
AS
1022011-12-16 Andrey Smirnov <andrew.smirnov@gmail.com>
103
104 * mi/mi-cmd-env.c (mi_cmd_env_path): Rename `optind' and
105 `optarg' to `oind' and `oarg', respectively(-Wshadow).
106 (mi_cmd_env_dir): Ditto.
107
1082011-12-16 Andrey Smirnov <andrew.smirnov@gmail.com>
81493c62 109
7082409d
AS
110 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Rename `optind' and
111 `optarg' to `oind' and `oarg', respectively(-Wshadow).
81493c62 112
f8c000a2
AS
1132011-12-16 Andrey Smirnov <andrew.smirnov@gmail.com>
114
115 * mi/mi-cmd-break.c (mi_cmd_break_insert): Rename `optind' and
81493c62 116 `optparg' to `oind' and `oarg', respectively(-Wshadow).
f8c000a2
AS
117 (mi_cmd_break_watch): Ditto.
118
07fea4b4
TT
1192011-12-16 Tom Tromey <tromey@redhat.com>
120
121 * linespec.c (collect_symbols): Call maybe_add_address after
122 calling symbol_to_sal.
123 (minsym_found): Call maybe_add_address here.
124 (search_minsyms_for_name): Don't call maybe_add_address.
125
39b856a4
TT
1262011-12-16 Tom Tromey <tromey@redhat.com>
127
128 * linespec.c (struct collect_info) <objfile>: Remove field.
129 (decode_objc): Update.
130 (find_method): Update.
131 (decode_variable): Update.
132 (struct minsym_and_objfile): New.
133 (struct collect_minsyms): New.
134 (classify_mtype): New function.
135 (compare_msyms): Likewise.
136 (add_minsym): Likewise.
137 (check_minsym): Remove.
138 (search_minsyms_for_name): Sort minsyms and apply only those with
139 top priority.
140
ccbac09d
TT
1412011-12-16 Tom Tromey <tromey@redhat.com>
142
143 * cli/cli-cmds.c (filter_sals): Filter out sals with NULL symtab.
144
77cce10f
PA
1452011-12-16 Pedro Alves <pedro@codesourcery.com>
146
147 * inf-loop.c: Include top.h.
148 (inferior_event_handler): Call check_frame_language.
149 * top.c (check_frame_language_change): New, factored out from ...
150 (execute_command): ... this. Use check_frame_language_change.
151 * top.h (check_frame_language_change): Declare.
152
a961bc18
PM
1532011-12-16 asmwarrior <asmwarrior@gmail.com> (obvious fix)
154
155 * windows-nat.c (cygwin_get_dr, cygwin_get_dr7): Add missing
156 prototypes.
157
e0f9f062
DE
1582011-12-16 Doug Evans <dje@google.com>
159
160 * NEWS: Add entry for stdio gdbserver.
161
80b6e756
PM
1622011-12-16 Phil Muldoon <pmuldoon@redhat.com>
163
164 * python/python.c: Define python_excp_enums.
165 (eval_python_from_control_command): Do not call gdbpy_print_stack.
166 (python_command): Ditto.
167 (gdbpy_print_stack): Rewrite to use new enum constants.
168 (maint_set_python): Remove function.
169 (maint_show_python): Ditto.
170 (_initialize_python): Do not add "maint" commands. Add "set/show
171 python print-stack commands".
172 * NEWS: Update to reflect removal for "maint set/show
173 print-stack"
174
ef140872
DE
1752011-12-15 Doug Evans <dje@google.com>
176
177 * exceptions.c (catcher_list_size): New function.
178 (last_message): Delete.
179 (exception_messages, exception_messages_size): New static globals.
180 (throw_it): Use exception_messages array to handle nested calls.
181
b5b445a3
TT
1822011-12-15 Tom Tromey <tromey@redhat.com>
183
184 * symfile.c (symbol_file_add_with_addrs_or_offsets): Remove bad
185 do_cleanups call.
186
0b6cb71e
DE
1872011-12-14 Doug Evans <dje@google.com>
188
189 * defs.h (wait_to_die_with_timeout): Declare.
190 * utils.c: #include "gdb_wait.h".
191 (sigalrm_handler, wait_to_die_with_timeout): New functions.
192 * ser-pipe.c: Don't #include "gdb_wait.h".
193 (pipe_close): Give child a chance to die on its own after closing
194 its stdin before SIGTERM'ing it.
195
6475f2fe 1962011-12-14 Joel Brobecker <brobecker@adacore.com>
afaabefa 197 Tom Tromey <tromey@redhat.com>
6475f2fe
JB
198
199 * ada-lang.c (add_nonlocal_symbols): Initialize data to
200 all zeros. Remove setting of data.arg_sym to NULL.
201
7b50312a
PA
2022011-12-14 Pedro Alves <pedro@codesourcery.com>
203
204 PR threads/10729
205
206 * linux-nat.c (linux_nat_new_thread): Change parameter to an lwp
207 pointer.
208 (linux_nat_prepare_to_resume): New global.
209 (lwp_free): New.
210 (purge_lwp_list): Use it.
211 (add_lwp): Call linux_nat_new_thread even on the first LWP.
212 Adjust to interface change.
213 (delete_lwp): Call lwp_free instead of xfree.
214 (detach_callback, linux_nat_detach, resume_lwp, linux_nat_resume)
215 (linux_handle_syscall_trap, linux_handle_extended_wait)
216 (linux_nat_filter_event, resume_stopped_resumed_lwps): Call
217 linux_nat_prepare_to_resume before resuming.
218 (linux_stop_lwp): New.
219 (linux_nat_set_new_thread): Adjust.
220 (linux_nat_set_prepare_to_resume): New.
221 * linux-nat.h (struct arch_lwp_info): Forward declare.
222 (struct lwp_info) <arch_private>: New field.
223 (linux_stop_lwp): Declare.
224 (linux_nat_set_new_thread): Adjust.
225 (linux_nat_set_prepare_to_resume): New.
226
227 * i386-nat.c (DR_NADDR, DR_STATUS, DR_CONTROL)
228 (struct i386_debug_reg_state): Move to i386-nat.h.
229 (dr_mirror): Comment.
230 (i386_debug_reg_state): New.
231 (i386_update_inferior_debug_regs): Simplify.
232 (i386_stopped_data_address): Use the debug register state from the
233 inferior, not from the local cache.
234 * i386-nat.h (struct i386_dr_low_type): Delete reset_addr and
235 unset_status fields. New get_addr and get_control fields.
236 (DR_FIRSTADDR, DR_LASTADDR, DR_CONTROL): Moved from i386-nat.c.
237 (DR_NADDR, DR_STATUS): New.
238 (struct i386_debug_reg_state): Moved from i386-nat.c.
239
240 * amd64-linux-nat.c (struct arch_lwp_info): New.
241 (amd64_linux_dr): Delete global.
242 (amd64_linux_dr_get_addr): New.
243 (amd64_linux_dr_get_control): New.
244 (amd64_linux_dr_unset_status): Delete.
245 (amd64_linux_dr_set_addr): Reimplement.
246 (amd64_linux_dr_reset_addr): Delete.
247 (update_debug_registers_callback): New.
248 (amd64_linux_dr_set_control): Reimplement.
249 (amd64_linux_dr_set_addr): Reimplement.
250 (amd64_linux_prepare_to_resume): New.
251 (amd64_linux_new_thread): Change parameter to an lwp pointer.
252 Reimplement.
253 (_initialize_amd64_linux_nat): No longer install
254 i386_dr_low.reset_addr and i386_dr_low.unset_status. Install
255 amd64_linux_dr_get_control as i386_dr_low.get_control. Install
256 amd64_linux_dr_get_addr as i386_dr_low.get_addr. Install
257 amd64_linux_prepare_to_resume.
258 * i386-linux-nat.c (DR_FIRSTADDR, DR_LASTADDR, DR_STATUS)
259 (DR_CONTROL): Delete.
260 (struct arch_lwp_info): New.
261 (i386_linux_dr): Delete global.
262 (i386_linux_dr_set_control): Reimplement.
263 (i386_linux_dr_get_addr): New.
264 (i386_linux_dr_set_addr): Reimplement.
265 (i386_linux_dr_get_control): New.
266 (update_debug_registers_callback): New.
267 (i386_linux_dr_unset_status): Delete.
268 (i386_linux_dr_set_addr): Reimplement.
269 (i386_linux_prepare_to_resume): New.
270 (i386_linux_new_thread): Change parameter to an lwp pointer.
271 Reimplement.
272 (_initialize_i386_linux_nat): No longer install
273 i386_dr_low.reset_addr and i386_dr_low.unset_status. Install
274 i386_linux_dr_get_control as i386_dr_low.get_control. Install
275 i386_linux_dr_get_addr as i386_dr_low.get_addr. Install
276 i386_linux_prepare_to_resume.
277
278 * arm-linux-nat.c (arm_linux_new_thread): Change parameter to an
279 lwp pointer. Adjust.
280 * ia64-linux-nat.c (ia64_linux_new_thread): Likewise.
281 * mips-linux-nat.c (mips_linux_new_thread): Likewise.
282 * ppc-linux-nat.c (ppc_linux_new_thread): Likewise.
283 * s390-nat.c (s390_fix_watch_points): Likewise.
284
285 * i386-darwin-nat.c (DR_FIRSTADDR, DR_LASTADDR, DR_STATUS)
286 (DR_CONTROL): Delete.
287 (i386_darwin_dr_reset_addr): Delete.
288 (i386_darwin_dr_get_addr): New.
289 (i386_darwin_dr_get_control): New.
290 * go32-nat.c
291 (go32_get_dr7, go32_get_dr): New.
292 (init_go32_ops): No longer install i386_dr_low.reset_addr.
293 Install go32_get_dr7 as i386_dr_low.get_control. Install
294 go32_get_dr as i386_dr_low.get_addr.
295 * i386bsd-nat.c (i386bsd_dr_get): New.
296 (i386bsd_dr_reset_addr): Delete.
297 (i386bsd_dr_get_addr): New.
298 (i386bsd_dr_get_status): Use i386bsd_dr_get.
299 (i386bsd_dr_get_control): New.
300 * i386bsd-nat.h (i386bsd_dr_reset_addr): Delete.
301 (i386bsd_dr_get_addr): New.
302 (i386bsd_dr_get_control): New.
303 * i386fbsd-nat.c (_initialize_i386fbsd_nat): No longer install
304 i386_dr_low.reset_addr and i386_dr_low.unset_status. Install
305 i386bsd_dr_get_control as i386_dr_low.get_control. Install
306 i386bsd_dr_get_addr as i386_dr_low.get_addr.
307 * windows-nat.c (init_windows_ops): No longer install
308 i386_dr_low.reset_addr and i386_dr_low.unset_status. Install
309 cygwin_get_dr7 as i386_dr_low.get_control. Install cygwin_get_dr
310 as i386_dr_low.get_addr.
311 (cygwin_get_dr): New.
312 (cygwin_get_dr7): New.
313
dd110abf
PA
3142011-12-14 Pedro Alves <pedro@codesourcery.com>
315
316 * ia64-tdep.c (ia64_memory_remove_breakpoint): Use
317 target_write_raw_memory.
318 * m32r-tdep.c (m32r_memory_remove_breakpoint): Use
319 target_write_raw_memory.
320 * microblaze-linux-tdep.c
321 (microblaze_linux_memory_remove_breakpoint): Use
322 target_write_raw_memory.
323 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Use
324 target_write_raw_memory.
325
ad32032e
JB
3262011-12-14 Joel Brobecker <brobecker@adacore.com>
327
328 * linespec.c (decode_line_internal): Make static.
329
d14c4eb7
YQ
3302011-12-14 Yao Qi <yao@codesourcery.com>
331
332 * breakpoint.c (create_breakpoint): Set canonical.addr_string
333 for static tracepoint.
334
25564b66 3352011-12-13 Joel Brobecker <brobecker@adacore.com>
336
337 GDB 7.4 branch created (branch timestamp: 2011-12-13 13:00 UTC)
338 * version.in: Bump version to 7.4.50.20111213-cvs.
339
8837a20f
JB
3402011-12-13 Joel Brobecker <brobecker@adacore.com>
341
342 * NEWS: Create a new section for the next release branch.
343 Rename the section of the current branch, now that it has
344 been cut.
345
7dda8cff
JB
3462011-12-11 Joel Brobecker <brobecker@adacore.com>
347
348 * ada-lang.c (ada_exception_support_info_sniffer): Improve
349 error message.
350
3eecfa55
JB
3512011-12-11 Joel Brobecker <brobecker@adacore.com>
352
353 * ada-lang.c (struct ada_inferior_data) [exception_info]:
354 New field.
355 (exception_info): Delete.
356 (ada_exception_support_info_sniffer): Get exception_support_info
357 data from our per-inferior data. Adjust code accordingly.
358 (ada_unhandled_exception_name_addr_from_raise): Likewise.
359 (ada_exception_name_addr_1, ada_exception_sym_name): Ditto.
360 (ada_executable_changed_observer): Delete.
361 (_initialize_ada_language): Remove call to
362 observer_attach_executable_changed.
363
a6af7abe
JB
3642011-12-11 Joel Brobecker <brobecker@adacore.com>
365
366 * ada-lang.c (ada_has_this_exception_support): Raise an error
367 if we could find the Ada exception hook in the Ada runtime,
368 but no debugging info for that hook.
369
f17011e0
JB
3702011-12-11 Joel Brobecker <brobecker@adacore.com>
371
372 * ada-lang.c (ada_has_this_exception_support): New function,
373 extracted out of ada_exception_sal and ada_exception_sal.
374 (ada_exception_support_info_sniffer): Simplify by using
375 ada_has_this_exception_support.
376 (ada_exception_sal): Replace unnecessary checks by assertions.
377 Minor simplifications.
378
d3fbdd86
AS
3792011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
380
381 * breakpoint.c (update_global_location_list): Remove nested
382 definition of `b'(-Wshadow).
383
eacd795a
AS
3842011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
385
386 * breakpoint.c (insert_breakpoint_locations): Rename `error' to
387 `error_flag'(-Wshadow).
388
ad13d8df
AS
3892011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
390
391 * bfd-target.c (target_bfd_reopen): Rename `bfd' to
392 `abfd'(-Wshadow).
393
917793af
AS
3942011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
395
396 * annotate.c (annotate_array_section_begin): Rename `index' to
397 `idx'(-Wshadow).
398
d48ebb5b
AS
3992011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
400
401 * amd64-tdep.c (amd64_get_unused_input_int_reg): Rename `index' to
402 `idx'(-Wshadow).
403
9ed936ec
AS
4042011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
405
406 * amd64-linux-tdep.c (amd64_canonicalize_syscall): Rename
407 `syscall' to `syscall_number'(-Wshadow).
408
a35ddb44
AS
4092011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
410
411 * ada-lang.c (remove_extra_symbols): Rename `remove' to
412 `remove_p'(-Wshadow).
413
e5e61bd7
AS
4142011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
415
416 * ada-exp.y (write_var_or_type): Rename nested `renaming' to
417 `ren_sym'(-Wshadow).
418
d200ab1e
DE
4192011-12-10 Doug Evans <dje@google.com>
420
b0df02fd
DE
421 * dwarf2read.c (dwarf2_per_cu_data): Rename debug_type_section to
422 debug_types_section. All uses updated.
423 (partial_read_comp_unit_head): Rename parameter is_debug_type_section
424 to is_debug_types_section.
425
d200ab1e
DE
426 * python/py-auto-load.c (source_section_scripts): Call xfree
427 instead of free.
428
4511b1ba
YQ
4292011-12-10 Hui Zhu <teawater@gmail.com>
430 Yao Qi <yao@codesourcery.com>
431
432 * tracepoint.c (start_tracing): Clear `inserted' flag.
433
df5a4bd3
HZ
4342011-12-10 Hui Zhu <teawater@gmail.com>
435
436 * tracepoint.c (create_tsv_from_upload): Change sprintf to xstrprintf.
437
1afeeb75
AS
4382011-12-09 Andrey Smirnov <andrew.smirnov@gmail.com>
439
440 * breakpoint.c (bp_loc_is_permanent): Rename `brk' to
441 `bpoint'(-Wshadow).
442
80e1d417
AS
4432011-12-09 Andrey Smirnov <andrew.smirnov@gmail.com>
444
445 * breakpoint.c (update_static_tracepoint): Rename nested `sal' and
446 `marker' variables to `sal2' and `tpmarker' respectively
447 (-Wshadow).
448
04ca3c22
AP
4492011-12-09 Andrew Pinski <apinski@cavium.com>
450
451 * linespec.c (hash_address_entry): Use iterative_hash_object on each
452 field rather than the struct itself.
453
8a2c437b
TT
4542011-12-09 Tom Tromey <tromey@redhat.com>
455
456 * breakpoint.c (compare_breakpoints): New function.
457 (clear_command): Remove duplicate breakpoints. Properly clean
458 up.
459
280711e7
MR
4602011-12-08 Maciej W. Rozycki <macro@mips.com>
461 Maciej W. Rozycki <macro@codesourcery.com>
462
463 * mips-tdep.c (mips_skip_mips16_trampoline_code): Sign-extend
464 address chunks retrieved from decoded lui/addiu pairs.
465
4c2051c6
MR
4662011-12-08 Maciej W. Rozycki <macro@codesourcery.com>
467
468 * mips-tdep.c (extended_offset): Correct calculation.
469 (unpack_mips16): Correct bitfield positions used for extraction
470 of the immediate argument; fix sign-extension of same.
471 (extended_mips16_next_pc): Correct B instruction's offset
472 calculation. Correct register decoding of the BEQZ and BNEZ
473 as well as jump-register instructions. Handle compact jumps.
474
ff011ed7
TT
4752011-12-08 Tom Tromey <tromey@redhat.com>
476
477 * objfiles.h (struct objfile): Remove obsolete comment.
478 * objfiles.c (build_objfile_section_table): Remove obsolete
479 comment.
480
7cd3876c
SS
4812011-12-07 Stan Shebs <stan@codesourcery.com>
482
483 * MAINTAINERS (Responsible Maintainers): Add Yao Qi as
484 maintainer of the tic6x target.
485
35f73cfc
UW
4862011-12-07 Ulrich Weigand <ulrich.weigand@linaro.org>
487
488 * arm-tdep.h (arm_deal_with_atomic_sequence): Add prototype.
489 * arm-tdep.c (thumb_deal_with_atomic_sequence_raw): New function.
490 (arm_deal_with_atomic_sequence_raw): Likewise.
491 (arm_deal_with_atomic_sequence): Likewise.
492 (arm_software_single_step): Call it.
493 * arm-linux-tdep.c (arm_linux_software_single_step): Likewise.
494
94eae614
UW
4952011-12-07 Ulrich Weigand <uweigand@de.ibm.com>
496
497 * s390-tdep.c: Replace "Linux" by "GNU/Linux" in comments
498 where appropriate.
499 * s390-tdep.h: Likewise.
500
13b8d0c6
TG
5012011-12-07 Tristan Gingold <gingold@adacore.com>
502
503 * machoread.c (macho_symtab_read): Do not consider N_OPT as
504 a debugging stab. Improve complaint message.
505
5436df95
MR
5062011-12-07 Maciej W. Rozycki <macro@codesourcery.com>
507
508 * mips-tdep.c (mips32_scan_prologue): Only update the immediate
509 load adjustment if still within the prologue.
510
040dff2a
MR
5112011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
512
513 * mips-tdep.c (mips32_next_pc): Fix floating point condition
514 code mask.
515
754d7c78
MR
5162011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
517
518 * mips-tdep.c (deal_with_atomic_sequence): Fix the handling
519 of BLTZ* and BGEZ* instructions.
520
91912e4d
MR
5212011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
522
523 * mips-tdep.c (mips_pc_is_mips16): Reverse the order of checks
524 performed to determine whether an address refers to standard
525 MIPS or MIPS16 code.
526 (mips16_next_pc): Use mips_pc_is_mips16 instead of
527 is_mips16_addr.
528
f0ba3972
PA
5292011-12-06 Pedro Alves <pedro@codesourcery.com>
530
531 * breakpoint.c (breakpoint_restore_shadows): Rename to ...
532 (breakpoint_xfer_memory): ... this. Change prototype. Handle
533 memory writes too.
534 * breakpoint.h (breakpoint_restore_shadows): Delete.
535 (breakpoint_xfer_memory): Declare.
536 * mem-break.c (default_memory_insert_breakpoint)
537 (default_memory_remove_breakpoint): Use target_write_raw_memory.
538 (memory_xfer_partial): Rename to ...
539 (memory_xfer_partial_1): ... this. Don't mask out breakpoints
540 here.
541 (memory_xfer_partial): New.
542 (target_write_raw_memory): New.
543 * target.h (target_write_raw_memory): New.
544
31aba06f
DE
5452011-12-06 Doug Evans <dje@google.com>
546
547 * linespec.c (decode_dollar): Avoid "may be used uninitialized" warning.
548
f8eba3c6
TT
5492011-12-06 Joel Brobecker <brobecker@acacore.com>
550
551 * language.h (struct language_defn): Add new component
552 la_symbol_name_compare.
553 * symfile.h (struct quick_symbol_functions): Update the profile
554 of parameter "name_matcher" for the expand_symtabs_matching
555 method. Update the documentation accordingly.
556 * ada-lang.h (ada_name_for_lookup): Add declaration.
557 * ada-lang.c (ada_name_for_lookup): New function, extracted out
558 from ada_iterate_over_symbols.
559 (ada_iterate_over_symbols): Do not encode symbol name anymore.
560 (ada_expand_partial_symbol_name): Adjust profile.
561 (ada_language_defn): Add value for la_symbol_name_compare field.
562 * linespec.c: #include "ada-lang.h".
563 (iterate_name_matcher): Add language parameter. Replace call
564 to strcmp_iw by call to language->la_symbol_name_compare.
565 (decode_variable): Encode COPY if current language is Ada.
566 * dwarf2read.c (dw2_expand_symtabs_matching): Adjust profile
567 of name_matcher parameter. Adjust call to name_matcher.
568 * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
569 (expand_partial_symbol_names): Update profile of parameter "fun".
570 * psymtab.h (expand_partial_symbol_names): Update profile of
571 parameter "fun".
572 * symtab.c (demangle_for_lookup): Update function documentation.
573 (search_symbols_name_matches): Add language parameter.
574 (expand_partial_symbol_name): Likewise.
575 * c-lang.c (c_language_defn, cplus_language_defn)
576 (asm_language_defn, minimal_language_defn): Add value for
577 la_symbol_name_compare field.
578 * d-lang.c (d_language_defn): Likewise.
579 * f-lang.c (f_language_defn): Ditto.
580 * jv-lang.c (java_language_defn): Ditto.
581 * m2-lang.c (m2_language_defn): Ditto.
582 * objc-lang.c (objc_language_defn): Ditto.
583 * opencl-lang.c (opencl_language_defn): Ditto.
584 * p-lang.c (pascal_language_defn): Ditto.
585 * language.c (unknown_language_defn, auto_language_defn)
586 (local_language_defn): Ditto.
587
5882011-12-06 Tom Tromey <tromey@redhat.com>
589
590 * linespec.c (iterate_over_all_matching_symtabs): Use
591 LA_ITERATE_OVER_SYMBOLS.
592 (lookup_prefix_sym, add_matching_symbols_to_info): Likewise.
593 (find_function_symbols, decode_variable): Remove Ada special
594 case.
595 * language.h (struct language_defn) <la_iterate_over_symbols>: New
596 field.
597 (LA_ITERATE_OVER_SYMBOLS): New macro.
598 * language.c (unknown_language_defn, auto_language_defn)
599 (local_language_defn): Update.
600 * c-lang.c (c_language_defn, cplus_language_defn)
601 (asm_language_defn, minimal_language_defn): Update.
602 * d-lang.c (d_language_defn): Update.
603 * f-lang.c (f_language_defn): Update.
604 * jv-lang.c (java_language_defn): Update.
605 * m2-lang.c (m2_language_defn): Update.
606 * objc-lang.c (objc_language_defn): Update.
607 * opencl-lang.c (opencl_language_defn): Update.
608 * p-lang.c (pascal_language_defn): Update.
609 * ada-lang.c (ada_iterate_over_symbols): New function.
610 (ada_language_defn): Update.
611
6122011-12-06 Tom Tromey <tromey@redhat.com>
613 Joel Brobecker <brobecker@acacore.com>
614
615 PR breakpoints/13105, PR objc/8341, PR objc/8343, PR objc/8366,
616 PR objc/8535, PR breakpoints/11657, PR breakpoints/11970,
617 PR breakpoints/12023, PR breakpoints/12334, PR breakpoints/12856,
618 PR shlibs/8929, PR shlibs/7393:
619 * python/py-type.c (compare_maybe_null_strings): Rename from
620 compare_strings.
621 (check_types_equal): Update.
622 * utils.c (compare_strings): New function.
623 * tui/tui-winsource.c (tui_update_breakpoint_info): Update for
624 location changes.
625 * tracepoint.c (scope_info): Update.
626 (trace_find_line_command): Use DECODE_LINE_FUNFIRSTLINE.
627 * symtab.h (iterate_over_minimal_symbols)
628 (iterate_over_some_symtabs, iterate_over_symtabs)
629 (find_pcs_for_symtab_line, iterate_over_symbols)
630 (demangle_for_lookup): Declare.
631 (expand_line_sal): Remove.
632 * symtab.c (iterate_over_some_symtabs, iterate_over_symtabs)
633 (lookup_symtab_callback): New functions.
634 (lookup_symtab): Rewrite.
635 (demangle_for_lookup): New function, extract from
636 lookup_symbol_in_language.
637 (lookup_symbol_in_language): Use it.
638 (iterate_over_symbols): New function.
639 (find_line_symtab): Update.
640 (find_pcs_for_symtab_line): New functions.
641 (find_line_common): Add 'start' argument.
642 (decode_line_spec): Update. Change argument to 'flags', change
643 interpretation.
644 (append_expanded_sal): Remove.
645 (append_exact_match_to_sals): Remove.
646 (expand_line_sal): Remove.
647 * symfile.h (struct quick_symbol_functions) <lookup_symtab>:
648 Remove.
649 <map_symtabs_matching_filename>: New field.
650 * stack.c (func_command): Only look in the current program space.
651 Use DECODE_LINE_FUNFIRSTLINE.
652 * source.c (line_info): Set pspace on sal. Check program space in
653 the loop. Use DECODE_LINE_LIST_MODE.
654 (select_source_symtab): Use DECODE_LINE_FUNFIRSTLINE.
655 * solib-target.c: Remove DEF_VEC_I(CORE_ADDR).
656 * python/python.c (gdbpy_decode_line): Update.
657 * psymtab.c (partial_map_expand_apply): New function.
658 (partial_map_symtabs_matching_filename): Rename from
659 lookup_partial_symbol. Update arguments.
660 (lookup_symtab_via_partial_symtab): Remove.
661 (psym_functions): Update.
662 * objc-lang.h (parse_selector, parse_method): Don't declare.
663 (find_imps): Update.
664 * objc-lang.c (parse_selector, parse_method): Now static.
665 (find_methods): Change arguments. Fill in a vector of symbol
666 names.
667 (uniquify_strings): New function.
668 (find_imps): Change arguments.
669 * minsyms.c (iterate_over_minimal_symbols): New function.
670 * linespec.h (enum decode_line_flags): New.
671 (struct linespec_sals): New.
672 (struct linespec_result) <canonical>: Remove.
673 <pre_expanded, addr_string, sals>: New fields.
674 (destroy_linespec_result, make_cleanup_destroy_linespec_result)
675 (decode_line_full): Declare.
676 (decode_line_1): Update.
677 * linespec.c (struct address_entry, struct linespec_state, struct
678 collect_info): New types.
679 (add_sal_to_sals_basic, add_sal_to_sals, hash_address_entry)
680 (eq_address_entry, maybe_add_address): New functions.
681 (total_number_of_methods): Remove.
682 (iterate_name_matcher, iterate_over_all_matching_symtabs): New
683 functions.
684 (find_methods): Change arguments. Don't canonicalize input.
685 Simplify logic.
686 (add_matching_methods, add_constructors)
687 (build_canonical_line_spec): Remove.
688 (filter_results, convert_results_to_lsals): New functions.
689 (decode_line_2): Change arguments. Rewrite for new data
690 structures.
691 (decode_line_internal): Rename from decode_line_1. Change
692 arguments. Add cleanups. Update for new data structures.
693 (linespec_state_constructor, linespec_state_destructor)
694 (decode_line_full, decode_line_1): New functions.
695 (decode_indirect): Change arguments. Update.
696 (locate_first_half): Use skip_spaces.
697 (decode_objc): Change arguments. Update for new data structures.
698 Simplify logic.
699 (decode_compound): Change arguments. Add cleanups. Remove
700 fallback code, replace with error.
701 (struct decode_compound_collector): New type.
702 (collect_one_symbol): New function.
703 (lookup_prefix_sym): Change arguments. Update.
704 (compare_symbol_name, add_all_symbol_names_from_pspace)
705 (find_superclass_methods ): New functions.
706 (find_method): Rewrite.
707 (struct symtab_collector): New type.
708 (add_symtabs_to_list, collect_symtabs_from_filename): New
709 functions.
710 (symtabs_from_filename): Change API. Rename from
711 symtab_from_filename.
712 (collect_function_symbols): New function.
713 (find_function_symbols): Change API. Rename from
714 find_function_symbol. Rewrite.
715 (decode_all_digits): Change arguments. Rewrite.
716 (decode_dollar): Change arguments. Use decode_variable.
717 (decode_label): Change arguments. Rewrite.
718 (collect_symbols): New function.
719 (minsym_found): Change arguments. Rewrite.
720 (check_minsym, search_minsyms_for_name)
721 (add_matching_symbols_to_info): New function.
722 (decode_variable): Change arguments. Iterate over all symbols.
723 (symbol_found): Remove.
724 (symbol_to_sal): New function.
725 (init_linespec_result, destroy_linespec_result)
726 (cleanup_linespec_result, make_cleanup_destroy_linespec_result):
727 New functions.
728 (decode_digits_list_mode, decode_digits_ordinary): New functions.
729 * dwarf2read.c (dw2_map_expand_apply): New function.
730 (dw2_map_symtabs_matching_filename): Rename from
731 dw2_lookup_symtab. Change arguments.
732 (dwarf2_gdb_index_functions): Update.
733 * dwarf2loc.c: Remove DEF_VEC_I(CORE_ADDR).
734 * defs.h (compare_strings): Declare.
735 * cli/cli-cmds.c (compare_strings): Move to utils.c.
736 (edit_command, list_command): Use DECODE_LINE_LIST_MODE. Call
737 filter_sals.
738 (compare_symtabs, filter_sals): New functions.
739 * breakpoint.h (struct bp_location) <line_number, source_file>:
740 New fields.
741 (struct breakpoint) <line_number, source_file>: Remove.
742 <filter>: New field.
743 * breakpoint.c (print_breakpoint_location, init_raw_breakpoint)
744 (momentary_breakpoint_from_master, add_location_to_breakpoint):
745 Update for changes to locations.
746 (init_breakpoint_sal): Add 'filter' argument. Set 'filter' on
747 breakpoint.
748 (create_breakpoint_sal): Add 'filter' argument.
749 (remove_sal, expand_line_sal_maybe): Remove.
750 (create_breakpoints_sal): Remove 'sals' argument. Handle
751 pre-expanded sals and the filter.
752 (parse_breakpoint_sals): Use decode_line_full.
753 (check_fast_tracepoint_sals): Use get_sal_arch.
754 (create_breakpoint): Create a linespec_sals. Update.
755 (break_range_command): Use decode_line_full. Update.
756 (until_break_command): Update.
757 (clear_command): Update match conditions for linespec.c changes.
758 Use DECODE_LINE_LIST_MODE.
759 (say_where): Update for changes to locations.
760 (bp_location_dtor): Free 'source_file'.
761 (base_breakpoint_dtor): Free 'filter'. Don't free 'source_file'.
762 (update_static_tracepoint): Update for changes to locations.
763 (update_breakpoint_locations): Disable ranged breakpoint if too
764 many locations match. Update.
765 (addr_string_to_sals): Use decode_line_full. Resolve all sal
766 PCs.
767 (breakpoint_re_set_default): Don't call expand_line_sal_maybe.
768 (decode_line_spec_1): Update. Change argument name to 'flags',
769 change interpretation.
770 * block.h (block_containing_function): Declare.
771 * block.c (block_containing_function): New function.
772 * skip.c (skip_function_command): Update.
773 (skip_re_set): Update.
774 * infcmd.c (jump_command): Use DECODE_LINE_FUNFIRSTLINE.
775 * mi/mi-main.c (mi_cmd_trace_find): Use DECODE_LINE_FUNFIRSTLINE.
776 * NEWS: Add entry.
777
7782011-12-06 Tom Tromey <tromey@redhat.com>
779
780 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Allow
781 breakpoint's pspace to be NULL.
782 * breakpoint.h (struct breakpoint) <pspace>: Update comment.
783 * breakpoint.c (init_raw_breakpoint): Conditionally set
784 breakpoint's pspace.
785 (init_breakpoint_sal): Don't set breakpoint's pspace.
786 (prepare_re_set_context): Conditionally switch program space.
787 (addr_string_to_sals): Check executing_startup on location's
788 program space.
789
7902011-12-06 Tom Tromey <tromey@redhat.com>
791
792 * breakpoint.h (enum enable_state) <bp_startup_disabled>: Remove.
793 * breakpoint.c (should_be_inserted): Explicitly check if program
794 space is executing startup.
795 (describe_other_breakpoints): Update.
796 (disable_breakpoints_before_startup): Change executing_startup
797 earlier. Remove loop.
798 (enable_breakpoints_after_startup): Likewise.
799 (init_breakpoint_sal): Don't use bp_startup_disabled.
800 (create_breakpoint): Don't use bp_startup_disabled.
801 (update_global_location_list): Use should_be_inserted.
802 (bkpt_re_set): Update.
803
75c8c9d7
TT
8042011-12-06 Tom Tromey <tromey@redhat.com>
805
806 * python/lib/gdb/command/pretty_printers.py
807 (InfoPrettyPrinter.invoke1): Remove extra double quote.
808
7376e450
TT
8092011-12-06 Tom Tromey <tromey@redhat.com>
810
811 * NEWS: Add MI news.
812
c642a434
UW
8132011-12-06 Ulrich Weigand <uweigand@de.ibm.com>
814
815 * s390-tdep.h (S390_ORIG_R2_REGNUM): Define.
816 (S390_LAST_BREAK_REGNUM): Likewise.
817 (S390_SYSTEM_CALL_REGNUM): Likewise.
818 (S390_NUM_REGS): Update.
819
820 (s390_regmap_last_break): Add declaration.
821 (s390x_regmap_last_break): Likewise.
822 (s390_regmap_system_call): Likewise.
823
824 (tdesc_s390_linux32v1): Add declaration.
825 (tdesc_s390_linux32v2): Likewise.
826 (tdesc_s390_linux64v1): Likewise.
827 (tdesc_s390_linux64v2): Likewise.
828 (tdesc_s390x_linux64v1): Likewise.
829 (tdesc_s390x_linux64v2): Likewise.
830
831 * s390-tdep.c: Include new target description files
832 "features/s390-linux32v1.c", "features/s390-linux32v2.c",
833 "features/s390-linux64v1.c", "features/s390-linux64v2.c",
834 "features/s390x-linux64v1.c", and "features/s390x-linux64v2.c".
835 (s390_cannot_store_register): New function.
836 (s390_write_pc): Likewise.
837 (s390_dwarf_regmap): Add fields for new registers.
838 (s390_regmap_gregset): Likewise.
839 (s390x_regmap_gregset): Likewise.
840 (s390_regmap_fpregset): Likewise.
841 (s390_regmap_upper): Likewise.
842 (s390_regmap_last_break): New variable.
843 (s390x_regmap_last_break): Likewise.
844 (s390_regmap_system_call): Likewise.
845 (s390_last_break_regset): Likewise.
846 (s390x_last_break_regset): Likewise.
847 (s390_system_call_regset): Likewise.
848 (s390_upper_regset_sections): Rename to ...
849 (s390_linux64_regset_sections): ... this.
850 (s390_linux32_regset_sections): New variable.
851 (s390x_linux64_regset_sections): Likewise.
852 (s390_linux32v1_regset_sections): Likewise.
853 (s390_linux32v2_regset_sections): Likewise.
854 (s390_linux64v1_regset_sections): Likewise.
855 (s390_linux64v2_regset_sections): Likewise.
856 (s390x_linux64v1_regset_sections): Likewise.
857 (s390x_linux64v2_regset_sections): Likewise.
858 (s390_regset_from_core_section): Handle .reg-s390-last-break and
859 .reg-s390-system-call core file sections.
860 (s390_core_read_description): Check for presence of
861 .reg-s390-last-break and .reg-s390-system-call core file
862 sections and return appropriate target description.
863 (s390_gdbarch_init): Detect Linux-specific registers "orig_r2",
864 "last_break" and "system_call" in target description. Install
865 appropriate gdbarch_core_regset_sections array.
866 Call set_gdbarch_cannot_store_register and set_gdbarch_write_pc.
867 (_initialize_s390_tdep): Initialize additional target descriptions.
868
869 * s390-nat.c: Include "elf/common.h".
870 (PTRACE_GETREGSET, PTRACE_SETREGSET): Define if undefined.
871 (have_regset_last_break): New static variable.
872 (have_regset_system_call): Likewise.
873 (s390_native_supply): Handle S390_ORIG_R2_REGNUM.
874 (s390_native_collect): Likewise.
875 (fetch_regset, store_regset, check_regset): New functions.
876 (s390_linux_fetch_inferior_registers): Handle S390_LAST_BREAK_REGNUM
877 and S390_SYSTEM_CALL_REGNUM.
878 (s390_linux_store_inferior_registers): Likewise.
879 (s390_read_description): Check for presence of NT_S390_LAST_BREAK
880 and NT_S390_SYSTEM_CALL regsets and use appropriate description.
881
882 * features/Makefile (WHICH): Add s390-linux32v1, s390-linux64v1,
883 s390x-linux64v1, s390-linux32v2, s390-linux64v2, and s390x-linux64v2.
884 (s390-linux32v1-expedite): Define.
885 (s390-linux32v2-expedite): Likewise.
886 (s390-linux64v1-expedite): Likewise.
887 (s390-linux64v2-expedite): Likewise.
888 (s390x-linux64v1-expedite): Likewise.
889 (s390x-linux64v2-expedite): Likewise.
890
891 * features/s390-linux32.xml: Add orig_r2 register.
892 * features/s390-linux64.xml: Likewise.
893 * features/s390x-linux64.xml: Likewise.
894 * features/s390-linux32v1.xml: New file.
895 * features/s390-linux32v2.xml: Likewise.
896 * features/s390-linux64v1.xml: Likewise.
897 * features/s390-linux64v2.xml: Likewise.
898 * features/s390x-linux64v1.xml: Likewise.
899 * features/s390x-linux64v2.xml: Likewise.
900
901 * features/s390-linux32.c: Regenerate.
902 * features/s390-linux64.c: Likewise.
903 * features/s390x-linux64.c: Likewise.
904 * features/s390-linux32v1.c: New generated file.
905 * features/s390-linux32v2.c: Likewise.
906 * features/s390-linux64v1.c: Likewise.
907 * features/s390-linux64v2.c: Likewise.
908 * features/s390x-linux64v1.c: Likewise.
909 * features/s390x-linux64v2.c: Likewise.
910
911 * regformats/s390-linux32.dat: Regenerate.
912 * regformats/s390-linux64.dat: Regenerate.
913 * regformats/s390x-linux64.dat: Regenerate.
914 * regformats/s390-linux32v1.dat: New generated file.
915 * regformats/s390-linux32v2.dat: Likewise.
916 * regformats/s390-linux64v1.dat: Likewise.
917 * regformats/s390-linux64v2.dat: Likewise.
918 * regformats/s390x-linux64v1.dat: Likewise.
919 * regformats/s390x-linux64v2.dat: Likewise.
920
336060f3
PA
9212011-12-05 Pedro Alves <pedro@codesourcery.com>
922
923 * linux-nat.c (resume_stopped_resumed_lwps): Call
924 registers_changed.
925
049e32d3
PA
9262011-12-05 Pedro Alves <pedro@codesourcery.com>
927
928 * breakpoint.c: Include record.h.
929 (breakpoints_always_inserted_mode): Return false when the record
930 target is in use.
931
5c03c7f9 9322011-12-05 Pedro Alves <pedro@codesourcery.com>
482950ed
PA
933
934 * amd64-linux-nat.c (amd64_linux_dr_get): Remove FIXME comment.
935 Reinstate perror_with_name call on ptrace error. Remove #if 0.
936 * i386-linux-nat.c (i386_linux_dr_get): Likewise.
937 * i386bsd-nat.c (i386bsd_dr_get_status): Likewise.
938
fbbd034e
AS
9392011-12-05 Andrey Smirnov <andrew.smirnov@gmail.com>
940
941 * breakpoint.c (init_breakpoint_sal): Remove nested definitions of
942 `i'(-Wshadow).
943
a5ff8356 9442011-12-05 Andrey Smirnov <andrew.smirnov@gmail.com>
12747160
AS
945
946 * bcache.c (bcache): Rename `bcache' to `cache'(-Wshadow).
947
9482011-12-05 Andrey Smirnov <andrew.smirnov@gmail.com>
949
a5ff8356
AS
950 * amd64-tdep.c (amd64_push_dummy_call): Remove nested definition
951 of `tdep'(-Wshadow).
952
93f2a35e
JK
9532011-12-03 Jan Kratochvil <jan.kratochvil@redhat.com>
954
955 Fix compilation --without-expat.
956 * solib-svr4.c (svr4_free_so, svr4_free_library_list): Move them here
957 from ...
958 [HAVE_LIBEXPAT] (svr4_free_so, svr4_free_library_list): ... here.
959
2268b414
JK
9602011-12-02 Paul Pluzhnikov <ppluzhnikov@google.com>
961 Jan Kratochvil <jan.kratochvil@redhat.com>
962
963 * Makefile.in (XMLFILES): Add library-list-svr4.dtd.
964 * features/library-list-svr4.dtd: New file.
965 * remote.c (PACKET_qXfer_libraries_svr4): New.
966 (remote_protocol_features): new entry for PACKET_qXfer_libraries_svr4.
967 (remote_xfer_partial): Handle TARGET_OBJECT_LIBRARIES_SVR4.
968 * solib-svr4.c (struct svr4_library_list): New.
969 [HAVE_LIBEXPAT]: Include xml-support.h.
970 [HAVE_LIBEXPAT] (svr4_library_list_start_library)
971 [HAVE_LIBEXPAT] (svr4_library_list_start_list, svr4_library_attributes)
972 [HAVE_LIBEXPAT] (svr4_library_list_children)
973 [HAVE_LIBEXPAT] (svr4_library_list_attributes)
974 [HAVE_LIBEXPAT] (svr4_library_list_elements, svr4_parse_libraries)
975 [HAVE_LIBEXPAT] (svr4_current_sos_via_xfer_libraries)
976 [!HAVE_LIBEXPAT] (svr4_current_sos_via_xfer_libraries): New.
977 (svr4_read_so_list): Extend the corruption message by addresses.
978 (svr4_current_sos): New variable library_list, call
979 svr4_current_sos_via_xfer_libraries.
980 * target.h (enum target_object): New TARGET_OBJECT_LIBRARIES_SVR4.
981
585861ea
JK
9822011-12-02 Jan Kratochvil <jan.kratochvil@redhat.com>
983
984 PR threads/13448
985 * dwarf2read.c (decode_locdesc): Handle DW_OP_const8u.
986 For DW_OP_GNU_push_tls_address increment the value, new comment for it.
987
9750bca9
JK
9882011-12-02 Jan Kratochvil <jan.kratochvil@redhat.com>
989
990 PR breakpoints/13346
991 * dwarf2read.c (process_psymtab_comp_unit): Set
992 PSYMTABS_ADDRMAP_SUPPORTED.
993 * psympriv.h (struct partial_symtab): Comment textlow and texthigh
994 validity. New field psymtabs_addrmap_supported.
995 * psymtab.c (find_pc_sect_psymtab_closer): New gdb_assert on
996 psymtabs_addrmap_supported.
997 (find_pc_sect_psymtab): Do not fallback to TEXTLOW and TEXTHIGH for
998 !PSYMTABS_ADDRMAP_SUPPORTED.
999 (dump_psymtab, maintenance_info_psymtabs): Print also
1000 psymtabs_addrmap_supported.
1001
f28c316a
DE
10022011-12-01 Doug Evans <dje@google.com>
1003
1004 * python/py-type.c (type_object_methods): Fix "array" doc string.
1005
fc0ae648
AB
10062011-12-01 Andrew Burgess <aburgess@broadcom.com>
1007
1008 * source.c (print_source_lines_base): Fix missing braces on else
1009 clause leading to additional output.
1010
d6db1fab
UW
10112011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
1012
1013 * s390-nat.c (SUBOFF): Remove.
1014 (s390_native_supply, s390_native_collect): New functions.
1015 (supply_gregset, supply_fpregset): Use s390_native_supply.
1016 (fill_gregset, fill_fpregset): Use s390_native_collect.
1017
1018 * s390-tdep.c (s390_pseudo_register_reggroup_p): Update comment.
1019 (s390_unwind_pseudo_register): New function.
1020 (s390_prologue_frame_unwind_cache): Unwind PSW address and mask
1021 registers instead of PC and CC.
1022 (s390_backchain_frame_unwind_cache): Likewise.
1023 (s390_sigtramp_frame_unwind_cache): Do not unwind PC, CC, or
1024 full GPR pseudos.
1025 (s390_trad_frame_prev_register): New function.
1026 (s390_frame_prev_register): Use it.
1027 (s390_sigtramp_frame_prev_register): Likewise.
1028 (s390_dwarf2_prev_register): Use s390_unwind_pseudo_register.
1029 (s390_dwarf2_frame_init_reg): Unwind PSW address and mask. Use
1030 special callback to unwind any pseudo.
1031
1032 * features/s390-core32.xml: Add pswm/pswa to save/restore group.
1033 * features/s390-core64.xml: Likewise.
1034 * features/s390x-core64.xml: Likewise.
1035 * features/s390-linux32.c: Regenerate.
1036 * features/s390-linux64.c: Likewise.
1037 * features/s390x-linux64.c: Likewise.
1038
1dd635ac
UW
10392011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
1040
1041 * s390-tdep.c (s390_gdbarch_init): Call set_gdbarch_get_siginfo_type.
1042
0161e4b9
UW
10432011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
1044
1045 * s390-tdep.c (s390_displaced_step_fixup): Fix processing of LARL
1046 instruction. Add more diagnostic output.
1047
0c36327f
AS
10482011-11-29 Andrey Smirnov <andrew.smirnov@gmail.com>
1049
1050 * MAINTAINERS (Write After Approval): Add myself to the list.
1051
b4264740
SD
10522011-11-29 Sanjoy Das <sdas@igalia.com>
1053
1054 * jit.c (add_objfile_entry, jit_reader_try_read_symtab)
1055 (jit_bfd_try_read_symtab): Fix comments.
1056
87326c78
DD
10572011-11-28 DJ Delorie <dj@redhat.com>
1058
1059 * NEWS: Mention RL78 simulator.
1060
1e3a8f45
JB
10612011-11-28 Joel Brobecker <brobecker@adacore.com>
1062
1063 * symfile.h (struct quick_symbol_functions): Fix the documentation
1064 of field map_matching_symbols, as symbols are sorted using
1065 strcmp_iw_ordered, not strcmp_iw.
1066
265e52c3
JB
10672011-11-28 Paul Hilfinger <hilfinger@adacore.com>
1068
1069 * symfile.h (struct quick_symbol_functions): Update the
1070 documentation for field map_matching_symbols.
1071
1a1d5513
JB
10722011-11-28 Joel Brobecker <brobecker@adacore.com>
1073
1074 * ada-lang.c (compare_names): Fix wrong return value in case
1075 string1 starts with the same contents as string2, followed
1076 by an underscore that do not start a symbol name suffix.
1077
5d9c5995
PM
10782011-11-28 Phil Muldoon <pmuldoon@redhat.com>
1079
1080 PR python/13369
1081 PR python/13374
1082
1083 * python/python.c (gdbpy_decode_line): Do not acquire GIL.
1084 * python/py-inferior.c (inferior_to_inferior_object): Ditto.
1085 * python/py-value.c (valpy_nonzero): Use TRY_CATCH to catch GDB
1086 exceptions.
1087 * python/py-type.c (typy_strip_typedefs): Ditto.
1088 (typy_legacy_template_argument): Ditto.
1089 * python/py-inferior.c (inferior_to_inferior_object): Ditto.
1090 * python/py-breakpoint.c (bppy_set_ignore_count): Ditto.
1091
2bf50f6f
JB
10922011-11-27 Joel Brobecker <brobecker@acacore.com>
1093
1094 * remote.c (remote_get_tracepoint_status): Delete addrbuf
1095 local variable. Avoid use of sprintf_vma.
1096
744ab88c
SD
10972011-11-27 Sanjoy Das <sdas@igalia.com>
1098
1099 Fix regression in jit.exp.
1100 * jit.c (jit_reader_try_read_symtab, jit_bfd_try_read_symtab)
1101 (jit_register_code): Set the jit_objfile_data field to the correct
1102 value.
1103
46ad3598
UW
11042011-11-25  Uros Bizjak  <ubizjak@gmail.com>
1105
1106 * alpha-tdep.c (br_opcode): New.
1107 (ldl_l_opcode, ldq_l_opcode, stl_c_opcode, stq_c_opcode): Ditto.
1108 (alpha_deal_with_atomic_sequence): New function.
1109 (alpha_gdbarch_init): Handle single stepping of atomic sequences
1110 with alpha_deal_with_atomic_sequence.
1111
e4c5f296
TG
11122011-11-24 Tristan Gingold <gingold@adacore.com>
1113
1114 * machoread.c (oso_el): Remove num_Sections, symbols, offsets
1115 fields. Add oso_sym, end_sym and nbr_syms.
1116 (macho_register_oso): Change interface.
1117 (macho_symtab_add_minsym): New function.
1118 (macho_symtab_read): Rewritten.
1119 (get_archive_prefix_len): Remove trailing blanks.
1120 (oso_el_compare_name): Add comment.
1121 (struct macho_sym_hash_entry): New structure.
1122 (macho_relocate_common_syms): Remove.
1123 (macho_sym_hash_newfunc): New function.
1124 (macho_resolve_oso_sym_with_minsym): Likewise.
1125 (macho_add_oso_symfile): Rewritten.
1126 (macho_symfile_read_all_oso): Remove trailing blanks.
1127 Adjust code to free oso vector.
1128 (macho_symfile_read): Likewise.
1129 Move code to initialize minimal symbol
1130
130854df
MR
11312011-11-24 Maciej W. Rozycki <macro@codesourcery.com>
1132
1133 * mips-tdep.c (extended_offset): Fix formatting.
1134
3d7bb9d9
DE
11352011-11-23 Doug Evans <dje@google.com>
1136
1137 * dwarf2read.c (dw2_lookup_symtab): Add comment.
1138 (dw2_expand_symtabs_with_filename): Ditto.
1139 (dw2_expand_symtabs_matching): Ditto.
1140 (dw2_map_symbol_filenames): Ditto.
1141
1fbf5ada
JB
11422011-11-23 Andrey Smirnov <andrew.smirnov@gmail.com>
1143
1144 * ada-lang.c (assign_aggregate): Minor reformatting.
1145
d984108d
JB
11462011-11-23 Andrey Smirnov <andrew.smirnov@gmail.com>
1147
1148 * ada-lang.c (assign_aggregate): Remove declaration of local
1149 variable `i' which is shadowing another variable with the same
1150 name declared in the outer scope.
1151
18af8284
JB
11522011-11-23 Joel Brobecker <brobecker@adacore.com>
1153
1154 * ada-lang.c (get_base_type): Renames base_type. Adjust all
1155 calls throughout this file.
1156
1fc7b5d7
JB
11572011-11-23 Joel Brobecker <brobecker@adacore.com>
1158
1159 * gdb-dlfcn.c (gdb_dlopen): Add missing coma in call to
1160 FormatMessage.
1161
36dfb11c
TT
11622011-11-22 Tom Tromey <tromey@redhat.com>
1163
1164 PR mi/8444:
1165 * mi/mi-common.h (EXEC_ASYNC_SOLIB_EVENT, EXEC_ASYNC_FORK)
1166 (EXEC_ASYNC_VFORK, EXEC_ASYNC_SYSCALL_ENTRY)
1167 (EXEC_ASYNC_SYSCALL_RETURN, EXEC_ASYNC_EXEC): New constants.
1168 * mi/mi-common.c (async_reason_string_lookup): Add new reasons.
1169 * breakpoint.c (print_it_catch_fork, print_it_catch_vfork)
1170 (print_it_catch_syscall, print_it_catch_exec)
1171 (internal_bkpt_print_it): Use ui_out. Emit stop reason.
1172 (bpstat_print): Add 'kind' argument. Handle
1173 TARGET_WAITKIND_LOADED.
1174 * infrun.c (normal_stop): Update for bpstat_print change. Don't
1175 handle TARGET_WAITKIND_LOADED here.
1176 * breakpoint.h (bpstat_print): Update.
1177
5bd6aa83
TT
11782011-11-22 Tom Tromey <tromey@redhat.com>
1179
1180 * mi/mi-interp.c (mi_on_normal_stop): Call bpstat_print.
1181
f5afdc18
TT
11822011-11-22 Tom Tromey <tromey@redhat.com>
1183
1184 * mi/mi-common.c (_initialize_gdb_mi_common): Remove.
1185 Use static_assert to check the size of
1186 async_reason_string_lookup.
1187 * common/gdb_assert.h (static_assert): New macro.
1188
a3769e0c
AM
11892011-11-22 Alan Modra <amodra@gmail.com>
1190
1191 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Correct branch
1192 destination calculation. Don't expect >> to sign extend. Don't
1193 add a break if branch lands inside the sequence anywhere.
1194
56767571
KS
11952011-11-21 Keith Seitz <keiths@redhat.com>
1196
1197 * gdb.mi/mi-var-display.exp: Remove XFAIL for c_variable-7.51,
1198 -var-evaluate-expression of an enumeration and fix expected result.
1199 * gdb.mi/mi2-varvdisplay.exp: Likewise.
1200
8443c207
KY
12012011-11-21 Kwok Cheung Yeung <kcy@codesourcery.com>
1202
1203 * osdata.c (info_osdata_command): Rename nprocs to nrows. Handle
1204 the case where osdata->items is empty. Rename column names to a
1205 canonical form to avoid problems with unusual column names.
1206
97643830
YQ
12072011-11-21 Yao Qi <yao@codesourcery.com>
1208
1209 * MAINTAINERS (Write After Approval): Keep list in alphabetical order.
1210
f196051f
SS
12112011-11-20 Stan Shebs <stan@codesourcery.com>
1212
1213 * NEWS: Mention tracepoint additions.
1214 * breakpoint.h (struct tracepoint): New field traceframe_usage.
1215 * breakpoint.c (print_one_breakpoint_location): Identify
1216 tracepoints as such when reporting hit counts, report
1217 trace buffer usage.
1218 (create_tracepoint_from_upload): Copy status info.
1219 * tracepoint.h (struct trace_status): Rename error_desc to stop_desc,
1220 add fields user_name, notes, start_time, stop_time.
1221 (struct uploaded_tp): Add fields hit_count, traceframe_usage.
1222 * tracepoint.c (trace_user): New global.
1223 (trace_notes): New global.
1224 (trace_stop_notes): New global.
1225 (start_tracing): Add argument and trace note handling.
1226 (stop_tracing): Ditto.
1227 (trace_start_command): Add notes argument.
1228 (trace_stop_command): Ditto.
1229 (trace_status_command): Report additional status info.
1230 (trace_status_mi): Similarly.
1231 (trace_save): Update, record tracepoint status.
1232 (set_disconnected_tracing): Call target method directly.
1233 (send_disconnected_tracing_value): Remove.
1234 (set_trace_user): New function.
1235 (set_trace_notes): New function.
1236 (set_trace_stop_notes): New function.
1237 (parse_trace_status): Handle additional status.
1238 (parse_tracepoint_status): New function.
1239 (parse_tracepoint_definition): Call it.
1240 (tfile_get_tracepoint_status): New function.
1241 (init_tfile_ops): Use it.
1242 (_initialize_tracepoint): Add new setshows.
1243 * target.h (struct target_ops): New methods to_get_tracepoint_status
1244 and to_set_trace_notes.
1245 (target_get_tracepoint_status): New macro.
1246 (target_set_trace_notes): New macro.
1247 * target.c (update_current_target): Add new methods.
1248 * remote.c (remote_get_tracepoint_status): New function.
1249 (remote_set_trace_notes): New function.
1250 (init_remote_ops): Add them.
1251 * mi/mi-main.c (mi_cmd_trace_start): Add argument to call.
1252 (mi_cmd_trace_stop): Ditto.
1253
3623dc3a
SD
12542011-11-20 Sanjoy Das <sdas@igalia.com>
1255
1256 * jit.c: Include regcache.h.
1257 (jit_gdbarch_data, jit_frame_unwind): New static variables.
1258 (jit_unwind_reg_set_impl, free_reg_value_impl)
1259 (jit_unwind_reg_get_impl, jit_frame_sniffer)
1260 (jit_frame_unwind_stop_reason, jit_frame_this_id)
1261 (jit_frame_prev_register, jit_dealloc_cache)
1262 (jit_prepend_unwinder, jit_gdbarch_data_init): New functions.
1263 (jit_inferior_init): Prepend (new) pseudo unwinder by calling
1264 jit_prepend_unwinder.
1265 (_initialize_jit): Register new gdbarch data jit_gdbarch_data.
1266
1825a88d
SD
12672011-11-20 Sanjoy Das <sdas@igalia.com>
1268
1269 * jit.c: Include block.h, dictionary.h and frame-unwind.h.
1270 (add_objfile_entry, jit_target_read_impl, jit_object_open_impl)
1271 (jit_symtab_open_impl, compare_block, jit_block_open_impl)
1272 (jit_symtab_line_mapping_add_impl, jit_symtab_close_impl)
1273 (finalize_symtab, jit_object_close_impl)
1274 (jit_reader_try_read_symtab, jit_bfd_try_read_symtab)
1275 (free_objfile_data): New functions.
1276 (_initialize_jit): Register jit_objfile_data with a proper cleanup
1277 function.
1278
784c47ee
SD
12792011-11-20 Sanjoy Das <sdas@igalia.com>
1280
1281 * jit.c: Include gdb-dlfcn.h.
1282 (loaded_jit_reader, reader_init_fn_sym): New static variables.
1283 (jit_reader_load, jit_reader_load_command)
1284 (jit_reader_unload_command): New functions.
1285 (_initialize_jit): Add commands "jit-reader-load" and
1286 "jit-reader-unload".
1287
a2d08b9e
SD
12882011-11-20 Sanjoy Das <sdas@igalia.com>
1289
1290 * Makefile.in: Add gdb-dlfcn.c and gdb-dlfcn.h to build system.
1291 * config.in: Add new #define HAVE_LIBDL.
1292 * configure.ac: Add check for -ldl.
1293 * configure: Re-generated by autoconf.
1294 * gdb-dlfcn.c: New file.
1295 * gdb-dlfcn.h: New file.
1296
b8e0a31c
SD
12972011-11-20 Sanjoy Das <sdas@igalia.com>
1298
1299 * config.in: Add new #defines: JIT_READER_DIR and
1300 JIT_READER_DIR_RELOCATABLE.
1301 * configure.ac: New GDB directory entry for jit-reader-dir.
1302 * configure: Re-generated by autoconf.
1303 * jit.c: New static variable: const char *jit_reader_dir.
1304 (_initialize_jit): Relocate jit_reader_dir.
1305
f997c383
SD
13062011-11-20 Sanjoy Das <sdas@igalia.com>
1307
1308 * Makefile.in: Add jit-reader.h as a header. Have it installed in
1309 $(includedir)/gdb.
1310 * configure.ac: Generate a correct value for TARGET_PTR for
1311 jit-reader.h. Tell configure to generate jit-reader.h from
1312 jit-reader.in.
1313 * configure: Re-generated by autoconf.
1314 * jit-reader.in: New file.
1315 * jit.c: Include jit-reader.h.
1316
dc8c0494
SD
13172011-11-20 Sanjoy Das <sdas@igalia.com>
1318
1319 * MAINTAINERS (Write After Approval): Add myself to the list.
1320
01efb936
UW
13212011-11-18 Ulrich Weigand <uweigand@de.ibm.com>
1322
1323 * findvar.c (read_frame_register_value): Respect value_offset
1324 of the register value. Remove big-endian special case.
1325
732f3f12
TT
13262011-11-18 Tom Tromey <tromey@redhat.com>
1327
1328 PR build/7196:
1329 * remote.c (putpkt_for_catch_errors): New function.
1330 (remote_kill): Use it.
1331
bfccc43c
YQ
13322011-11-18 Yao Qi <yao@codesourcery.com>
1333
1334 * breakpoint.c (create_breakpoint): Produce query message according to
1335 breakpoint's type.
1336 Allocate tracepoint per correct type.
1337 Don't check SALs for pending fast tracepoints.
1338 * tracepoint.c (process_tracepoint_on_disconnect): New.
1339 (disconnect_tracing): Call process_tracepoint_on_disconnect.
1340
3ea46bff
YQ
13412011-11-18 Yao Qi <yao@codesourcery.com>
1342
1343 * breakpoint.c (install_breakpoint): Add one more parameter so that
1344 update_global_location_list is called conditionally.
1345 (create_fork_vfork_event_catchpoint): Update.
1346 (create_syscall_event_catchpoint): Update.
1347 (create_breakpoint_sal): Update.
1348 (create_breakpoint_sal): Update. Call do_cleanups before
1349 install_breakpoint.
1350 * ada-lang.c (create_ada_exception_catchpoint): Update.
1351 * breakpoint.h (install_breakpoint): Update declaration.
1352
598cfb71
UW
13532011-11-16 Ulrich Weigand <uweigand@de.ibm.com>
1354
1355 * spu-tdep.c (spu_return_value): Fix handling of
1356 TYPE_CALLING_CONVENTION annotation.
1357
caf4328c
UW
13582011-11-16 Ulrich Weigand <uweigand@de.ibm.com>
1359
1360 * skip.c (skip_function_command): Work around uninitialized
1361 variable warning.
1362
2b54dda2
DM
13632011-11-16 David S. Miller <davem@davemloft.net>
1364
1365 * utils.c (report_command_stats): Cast delta_wall_time 'tv_sec' and
1366 'tv_usec' to long for printf since these fields have a type which
1367 varies.
1368
93bf33fd
DE
13692011-11-15 Doug Evans <dje@google.com>
1370
1371 * buildsym.c (add_symbol_to_list): Delete outdated comment.
1372
9cc10fd1
PK
13732011-11-15 Paul Koning <paul_koning@dell.com>
1374
1375 * python/py-type.c (typy_get_composite): New function.
1376 (typy_nonzero): New function.
1377 (typy_values): Rename from typy_fields.
1378 (typy_fields): New function.
1379 (typy_length): Raise exception if not struct, union, or enum type.
1380 (typy_getitem): Ditto.
1381 (typy_has_key): Ditto.
1382 (typy_make_iter): Ditto.
1383
c011a4f4
DE
13842011-11-15 Doug Evans <dje@google.com>
1385
1963ff96 1386 PR gdb/8367
c011a4f4
DE
1387 * NEWS: Mention new parameter basenames-may-differ.
1388 * dwarf2read.c (dw2_lookup_symtab): Avoid calling gdb_realpath if
1389 ! basenames_may_differ.
1390 * psymtab.c (lookup_partial_symtab): Ditto.
1391 * symtab.c (lookup_symtab): Ditto.
1392 (basenames_may_differ): New global.
1393 (_initialize_symtab): New parameter basenames-may-differ.
1394 * symtab.h (basenames_may_differ): Declare.
1395
865ecab4
LM
13962011-11-15 Pedro Alves <pedro@codesourcery.com>
1397 Luis Machado <lgustavo@codesourcery.com>
1398
1399 * auxv.c: Include observer.h.
1400 (auxv_inferior_data_cleanup): New.
1401 (invalidate_auxv_cache_inf): New.
1402 (invalidate_auxv_cache): New.
1403 (get_auxv_inferior_data): New.
1404 (auxv_inferior_data): New static global.
1405 (auxv_info): New structure.
1406 (target_auxv_search): Use get_auxv_inferior_data instead of
1407 target_read_alloc and don't free cached buffers.
1408 (fprint_target_auxv): Likewise
1409 (_initialize_auxv): Register per-inferior auxv cache and register
1410 observers to invalidate auxv cache when needed.
1411
ed59ded5
DE
14122011-11-14 Doug Evans <dje@google.com>
1413
37acd67c 1414 PR gdb/7200 Make "!" an alias for "shell".
ed59ded5
DE
1415 * NEWS: Add mention.
1416 * cli/cli-cmds.c (init_cli_cmds): Remove xdb_commands condition on
1417 adding "!" command, always add it.
1418 * cli/cli-decode.c (find_command_name_length): Recognize "!" as a
1419 command of length one.
1420
405f8e94
SS
14212011-11-14 Stan Shebs <stan@codesourcery.com>
1422 Kwok Cheung Yeung <kcy@codesourcery.com>
1423
1424 * NEWS: Document shorter fast tracepoints and qTMinFTPILen packet.
1425 * i386-tdep.c (i386_fast_tracepoint_valid_at): Query target for
1426 the minimum instruction size for fast tracepoints.
1427 * target.h (struct target_ops): Add new method
1428 to_get_min_fast_tracepoint_insn_len.
1429 (target_get_min_fast_tracepoint_insn_len): New.
1430 * target.c (update_current_target): Set up new target operation.
1431 * remote.c (remote_write_bytes_aux): Fix typo.
1432 (remote_get_min_fast_tracepoint_insn_len): New.
1433 (init_remote_ops): Initialize new field.
1434
3e05895e
TT
14352011-11-14 Tom Tromey <tromey@redhat.com>
1436
1437 * tracepoint.c (encode_actions_1): Use the location's gdbarch.
1438 (encode_actions): Likewise.
1439
1e4d1764
YQ
14402011-11-14 Yao Qi <yao@codesourcery.com>
1441
1442 * remote.c (struct remote_state): <install_in_trace> new field.
1443 (PACKET_InstallInTrace): New enum value.
1444 (remote_install_in_trace_feature): Support InstallInTrace.
1445 (remote_supports_install_in_trace): Likewise.
1446 (remote_protocol_features): Likewise.
1447 (_initialize_remote): Likewise.
1448 (remote_can_download_tracepoint): New.
1449 * target.h (struct target): New field
1450 `to_can_download_tracepoint'.
1451 (target_can_download_tracepoint): New macro.
1452 * target.c (update_current_target): Update.
1453 * breakpoint.h (struct bp_location): Add comment on field
1454 `duplicate'.
3ccd4ac6
YQ
1455 * breakpoint.c (should_be_inserted): Don't differentiate breakpoint
1456 and tracepoint.
1e4d1764
YQ
1457 (remove_breakpoints): Don't remove tracepoints.
1458 (tracepoint_locations_match ): New.
1459 (breakpoint_locations_match): Call it.
1460 (disable_breakpoints_in_unloaded_shlib): Handle tracepoint.
1461 (download_tracepoint_locations): New.
1462 (update_global_location_list): Call it.
1463 * tracepoint.c (find_matching_tracepoint): Delete.
1464 (find_matching_tracepoint_location): Renamed from
1465 find_matching_tracepoint. Return bp_location rather than
1466 tracepoint.
1467 (merge_uploaded_tracepoints): Set `inserted' field to 1 if
1468 tracepoint is found.
1469
e8ba3115
YQ
14702011-11-14 Yao Qi <yao@codesourcery.com>
1471
1472 * target.h (struct target): <to_download_tracepoint> Change type
1473 of parameter from tracepoint to bp_location.
1474 * target.c (update_current_target): Update.
1475 * tracepoint.c (start_tracing): Update.
1476 * remote.c (remote_download_tracepoint): Remove loop for each location
1477 of a tracepoint.
1478
edcc485a
MR
14792011-11-14 Maciej W. Rozycki <macro@codesourcery.com>
1480
1481 * i386-nat.c (i386_insert_hw_breakpoint): Call
1482 i386_update_inferior_debug_regs.
1483 (i386_remove_hw_breakpoint): Likewise.
1484
3742cc8b
YQ
14852011-11-14 Yao Qi <yao@codesourcery.com>
1486
1487 * breakpoint.c (init_raw_breakpoint): Call
1488 add_location_to_breakpoint to replace duplicated code.
1489 (add_location_to_breakpoint): Adjust the breakpoint's
1490 address prior to allocating a location.
1491
71eba9c2 14922011-11-12 Matt Rice <ratmice@gmail.com>
1493
1494 * macrocmd.c (macro_no_macro_info): New function.
1495 (macro_expand_command): Use macro_no_macro_info.
1496 (macro_expand_once_command): Ditto.
1497 (info_macro_command): Add argument processing,
1498 move info_definitions_command here.
1499 (_initialize_macrocmd): Remove info definitions command.
1500 Add arguments to info macro help text.
1501 * NEWS: Replace info definitions command with new info macro options.
1502
731971ed
KS
15032011-11-11 Keith Seitz <keiths@redhat.com>
1504
1505 PR gdb/12843
1506 * linespec.c (locate_first_half): Keep ':' if it looks
1507 like it could be part of a Windows path starting with
1508 a drive letter.
1509
6953d224
PA
15102011-11-10 Pedro Alves <pedro@codesourcery.com>
1511
1512 * linux-nat.c (linux_nat_wait): Don't force waking up the event
1513 loop when returning a TARGET_WAITKIND_NO_RESUMED.
1514
0c94aa73
PA
15152011-11-10 Pedro Alves <pedro@codesourcery.com>
1516
1517 * target.c (target_waitstatus_to_string): Handle
1518 TARGET_WAITKIND_NO_RESUMED.
1519
f6b47be4
DE
15202011-11-10 Doug Evans <dje@google.com>
1521
74e2f255
DE
1522 * dwarf2read.c (dw2_map_symbol_filenames): New parameter
1523 `need_fullname'.
1524 * psymtab.c (map_symbol_filenames_psymtab): Ditto.
1525 (map_partial_symbol_filenames): Ditto. All callers updated.
1526 * psymtab.h (map_partial_symbol_filenames): Update prototype.
1527 * symfile.h (struct quick_symbol_functions, map_symbol_filenames): New
1528 parameter need_fullname.
1529
256f06f3
DE
1530 * psymtab.c (psymtab_to_fullname): Use cached copy if it exists.
1531 * source.c (symtab_to_fullname): Ditto.
1532
50f182aa
DE
1533 * defs.h (is_cplus_marker, set_demangling_style): Moved to ...
1534 * gdb-demangle.h: ... here. New file.
1535 * demangle.c: #include "gdb-demangle.h".
1536 (_initialize_demangler): Use initialize_file_ftype for prototype.
1537 Move "set demangle" and "set asm-demangle" parameters here from utils.c
1538 (demangle, show_demangle, asm_demangle, show_asm_demangle): Move here
1539 from utils.c
1540 * utils.c: Update. #include "gdb-demangle.h".
1541 * symtab.h (asm_demangle): Delete.
1542 (demangle): Move declaration next to use.
1543 * breakpoint.c: #include "gdb-demangle.h" instead of "demangle.h".
1544 * dwarf2read.c: #include "gdb-demangle.h".
1545 * gnu-v2-abi.c: Ditto.
1546 * jv-typeprint.c: Ditto.
1547 * mdebugread.c: Ditto.
1548 * p-typeprint.c: Ditto.
1549 * stabsread.c: Ditto.
1550 * printcmd.c: Ditto.
1551 (asm_demangle): Delete declaration.
1552 * tui/tui-stack.c: #include "gdb-demangle.h".
1553
f6b47be4
DE
1554 * python/py-type.c (typy_fields_items): Call check_typedef.
1555
22355c90
JB
15562011-11-10 Joel Brobecker <brobecker@adacore.com>
1557
1558 * findvar.c (read_frame_register_value): Read the correct bytes
1559 from registers on big-endian architectures.
1560
bd119cf1 15612011-11-10 Tom Tromey <tromey@redhat.com>
e28cade7
JB
1562
1563 * procfs.c (load_syscalls): Make a cleanup.
1564 (open_procinfo_files): fd==0 is ok.
1565
0a86f364
JB
15662011-11-10 Joel Brobecker <brobecker@adacore.com>
1567
1568 * procfs.c (iterate_over_mappings): Call do_cleanups before
1569 returning.
1570
9bc118a5
DE
15712011-11-09 Doug Evans <dje@google.com>
1572
1573 * gdbtypes.c (check_typedef): Document that this function can
1574 throw an exception.
1575
a7860e76
TT
15762011-11-09 Tom Tromey <tromey@redhat.com>
1577
1578 PR c++/13342:
1579 * valops.c (value_full_object): Return early if real type is
1580 smaller than the enclosing type.
1581
60965737
YQ
15822011-11-08 Yao Qi <yao@codesourcery.com>
1583
1584 * amd64-tdep.c (amd64_relocate_instruction): Make it static.
1585
72a2e3dc
MI
15862011-11-08 Meador Inge <meadori@codesourcery.com>
1587
1588 * arm-tdep.c (thumb_analyze_prologue): Always fallback on the SP
1589 register when the frame can't be determined.
1590 * arm-tdep.c (arm_analyze_prologue): Ditto.
1591
ce3b0ff7
SS
15922011-11-07 Stan Shebs <stan@codesourcery.com>
1593
1594 * MAINTAINERS: Move Michael Snyder to Past Maintainers.
1595
2b914b52
JB
15962011-11-07 Joel Brobecker <brobecker@adacore.com>
1597
1598 * infrun.c (handle_inferior_event): Minor reformatting.
1599
6f809020
DE
16002011-11-05 Doug Evans <dje@google.com>
1601
1602 * source.c (forget_cached_source_info_for_objfile): Move call to
1603 objfile->sf->qf->forget_cached_source_info outside of
1604 ALL_OBJFILE_SYMTABS loop.
1605 (forget_cached_source_info): Delete unused variable `s'.
1606
75d12218
JK
16072011-11-05 Jan Kratochvil <jan.kratochvil@redhat.com>
1608
1609 * i386-nat.c (dr_ref_count): Remove unused variable.
1610
e565b837
DE
16112011-11-05 Doug Evans <dje@google.com>
1612
1613 * main.c (captured_main): Set lim_at_start before calling
1614 make_command_stats_cleanup.
1615
0a1c4d10
DE
16162011-11-04 Doug Evans <dje@google.com>
1617
1618 * utils.c: #include "timeval-utils.h".
1619 (cmd_stats): Rename start_time to start_cpu_time.
1620 New member start_wall_time.
1621 (report_command_stats): Report wall time.
1622 (make_command_stats_cleanup): Record start wall time.
1623
a1d705ee
TT
16242011-11-04 Tom Tromey <tromey@redhat.com>
1625
1626 * cp-namespace.c (cp_lookup_symbol_imports): Reindent.
1627
81de56be
RO
16282011-11-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1629
1630 * coff-pe-read.c: Include defs.h before bfd.h.
1631
3ab1ec27
PM
16322011-11-04 Phil Muldoon <pmuldoon@redhat.com>
1633
1634 PR Python/13345
1635
1636 * python/python.c (python_run_simple_file): Expand tilde in path.
1637
cd829959
PM
16382011-11-04 Phil Muldoon <pmuldoon@redhat.com>
1639
1640 PR Python/13363
1641
1642 * python/py-type.c (typy_lookup_type): Do not return a type in
1643 an exception handler.
1644
080ad648
JK
16452011-11-03 Jan Kratochvil <jan.kratochvil@redhat.com>
1646 Eli Zaretskii <eliz@gnu.org>
1647
1648 * linux-nat.c (_initialize_linux_nat): Improve help
1649 for `info proc stat', `info proc status', `info proc cwd',
1650 `info proc cmdline' and `info proc exe'.
1651
3065dfb6
SS
16522011-11-02 Stan Shebs <stan@codesourcery.com>
1653
1654 String collection for tracepoints.
1655 * NEWS: Mention string collection.
1656 * common/ax.def (tracenz): New bytecode.
1657 * ax-gdb.h (trace_string_kludge): Declare.
1658 * ax-gdb.c: Include valprint.h and c-lang.h.
1659 (trace_string_kludge): New global.
1660 (gen_traced_pop): Add string case.
1661 (agent_command): Add string case.
1662 * tracepoint.h (decode_agent_options): Declare.
1663 * tracepoint.c: Include cli-utils.h.
1664 (decode_agent_options): New function.
1665 (validate_actionline): Call it.
1666 (encode_actions_1): Ditto.
1667 * target.h (struct target_ops): New method to_supports_string_tracing.
1668 (target_supports_string_tracing): New macro.
1669 * target.c (update_current_target): Add to_supports_string_tracing.
1670 * remote.c (struct remote_state): New field string_tracing.
1671 (remote_string_tracing_feature): New function.
1672 (remote_protocol_features): New feature tracenz.
1673 (remote_supports_string_tracing): New function.
1674 (init_remote_ops): Set to_supports_string_tracing.
1675
f179e162
JK
16762011-11-02 Pedro Alves <pedro@codesourcery.com>
1677 Jan Kratochvil <jan.kratochvil@redhat.com>
1678
1679 * linux-nat.c: Include cli/cli-utils.h.
1680 (enum info_proc_what): New.
1681 (linux_nat_info_proc_cmd): Rename to ...
1682 (linux_nat_info_proc_cmd_1): ... here. Remove variables argv and all.
1683 New parameter what. Initialize cmdline_f, cwd_f, exe_f, mappings_f,
1684 status_f and stat_f from WHAT. Throw error on extra parameters.
1685 (linux_nat_info_proc_cmd, linux_nat_info_proc_cmd_mappings)
1686 (linux_nat_info_proc_cmd_stat, linux_nat_info_proc_cmd_status)
1687 (linux_nat_info_proc_cmd_cwd, linux_nat_info_proc_cmd_cmdline)
1688 (linux_nat_info_proc_cmd_exe, linux_nat_info_proc_cmd_all): New.
1689 (_initialize_linux_nat): New variable info_proc_cmdlist. Install `info
1690 proc mappings', `info proc stat`, `info proc status', `info proc cwd',
1691 `info proc cmdline', `info proc exe' and `info proc all' as real
1692 subcommands of `info proc'.
1693
7b35ec7f 16942011-11-01 Justin Lebar <justin.lebar@gmail.com>
1bfeeb0f
JL
1695
1696 * Makefile.in: (SFILES): Add skip.c.
1697 (HFILES_NO_SRCDIR): Add skip.h.
1698 (COMMON_OBS): Add skip.o.
1699 * skip.h, skip.c: New.
1700 * breakpoint.h (set_default_breakpoint): Remove.
1701 (get_sal_arch): Declare.
1702 * breakpoint.c: Remove default_breakpoint_valid,
1703 default_breakpoint_address, default_breakpoint_symtab,
1704 default_breakpoint_line, default_breakpoint_pspace variables.
1705 (get_sal_arch): Make public.
1706 (set_default_breakpoint): Remove.
1707 (parse_breakpoint_sals, create_breakpoint, clear_command,
1708 decode_line_spec_1): Remove uses of default_breakpoint variables;
1709 replaced with function calls into stack.c.
1710 * cli/cli-cmds.h: Add cmd_list_element *skiplist.
1711 * cli/cli-cmds.c: Add skiplist.
1712 (init_cmd_lists): Initialize skiplist.
1713 (init_cli_cmds): Fix comment (classes of commands appear in
1714 alphabetical order).
1715 * infrun.c (handle_inferior_event): Add check that we don't step into
1716 a function whose pc is marked for skip.
1717 * stack.c: Declare last_displayed_sal_valid, last_displayed_pspace,
1718 last_displayed_addr, last_displayed_symtab, last_displayed_line
1719 variables.
1720 (set_last_displayed_sal): New static function.
1721 (print_frame_info): Switch call to set_default_breakpoint to call to
1722 set_last_displayed_sal.
1723 (clear_last_displayed_sal, last_displayed_sal_is_valid,
1724 get_last_displayed_pspace, get_last_displayed_addr,
1725 get_last_displayed_symtab, get_last_displayed_line,
1726 get_last_displayed_sal): New public functions.
1727 * stack.h (clear_last_displayed_sal, last_displayed_sal_is_valid,
1728 get_last_displayed_pspace, get_last_displayed_addr,
1729 get_last_displayed_symtab, get_last_displayed_line,
1730 get_last_displayed_sal): Declare.
1731
b60e1588
JL
17322011-11-01 Justin Lebar <justin.lebar@gmail.com>
1733
1734 * MAINTAINERS (Write After Approval): Add myself to the list.
1735
d31647d2
YQ
17362011-10-29 Yao Qi <yao@codesourcery.com>
1737
1738 * infcmd.c (disconnect_command): Call disconnect_tracing.
1739
b1d96efd
JK
17402011-10-29 Jan Kratochvil <jan.kratochvil@redhat.com>
1741
1742 Code cleanup.
1743 * symtab.c (skip_prologue_sal): Code reformatting.
1744
4dfb2365
JK
17452011-10-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1746
1747 PR symtab/13208
1748 * jit.c (jit_register_code): Remove unused variable my_cleanups. Check
1749 for NULL from bfd_open_from_target_memory. Fix ownership of NBFD and
1750 SAI.
1751
0e5bf2a8
PA
17522011-10-28 Pedro Alves <pedro@codesourcery.com>
1753
1754 * linux-nat.c (linux_nat_filter_event): Remove `options'
1755 parameter, and dead code that used it. If we're handling a
1756 PTRACE_EVENT_EXEC event, and the thread group leader is no longer
1757 in our lwp list, re-add it.
1758 (check_zombie_leaders): New.
1759 (linux_nat_wait_1): Remove `options' and `pid' locals. Always
1760 wait for children with WNOHANG, and always wait for all children.
1761 Don't check for no resumed children upfront. Simplify wait loop.
1762 Check for zombie thread group leaders after handling all wait
1763 statuses. Return TARGET_WAITKIND_NO_RESUMED if there no
1764 unwaited-for children left.
1765 * infrun.c (fetch_inferior_event): Handle TARGET_WAITKIND_NO_RESUMED.
1766 (handle_inferior_event): Handle TARGET_WAITKIND_NO_RESUMED.
1767 (normal_stop): Handle TARGET_WAITKIND_NO_RESUMED.
1768 * target.h (enum target_waitkind) <TARGET_WAITKIND_NO_RESUMED>: New.
1769
821296b7
SA
17702011-10-28 Sterling Augustine <saugustine@google.com>
1771
1772 * psymtab.c (map_symbol_filenames_psymtab): Call QUIT.
1773 * symtab.c (free_completion_list): New function.
1774 (do_free_completion_list): Likewise.
1775 (default_make_symbol_completion_list_break_on): New variable
1776 back_to. Call make_cleanup and discard_cleanups.
1777 (make_source_files_completion_list): Likewise.
1778
03c3051a
PK
17792011-10-28 Paul Koning <paul_koning@dell.com>
1780
1781 * python/lib/gdb/types.py (deep_items): Rename from deepitems.
1782 * NEWS: Mention deep_items.
1783
8e7ebaf5
PA
17842011-10-28 Alen Skondro <askondro@gmail.com>
1785
8de33dc2 1786 * ser-tcp.c [USE_WIN32API] (ETIMEDOUT): Don't define if already
8e7ebaf5
PA
1787 defined.
1788
e0c6ef61
MI
17892011-10-27 Meador Inge <meadori@codesourcery.com>
1790
1791 * MAINTAINERS (Write After Approval): Add myself to the list.
1792
b56d6f31
JB
17932011-10-27 Joel Brobecker <brobecker@adacore.com>
1794
1795 * value.h (read_frame_register_value): Add declaration.
1796 * findvar.c (read_frame_register_value): New function.
1797 (value_from_register): Use read_frame_register_value
1798 instead of get_frame_register_value + value_contents_copy
1799 to get value contents.
1800
d234ef5c
DE
18012011-10-27 Doug Evans <dje@google.com>
1802
1803 * cli/cli-cmds.c (source_script_with_search): Pass full path to
1804 source_script_from_stream if it may have been found on the search path.
1805 * python/py-auto-load.c (source_section_scripts): Pass full path to
1806 source_python_script_for_objfile.
1807 * python/python.c (source_python_script): Delete stream parameter.
1808 All callers updated.
1809 (source_python_script_for_objfile): Ditto.
1810 * python/python-internal.h (source_python_script_for_objfile): Update.
1811 * python/python.h (source_python_script): Update.
1812
d849d44f
TT
18132011-10-27 Tom Tromey <tromey@redhat.com>
1814
1815 * ada-lang.h (ada_start_decode_line_1, ada_finish_decode_line_1)
1816 (ada_sals_for_line): Remove declarations.
1817
2231f1fb
KP
18182011-10-27 Kevin Pouget <kevin.pouget@st.com>
1819
1820 Move unwind reasons to an external .def file
1821 * frame.c (frame_stop_reason_string): Rewrite using
1822 unwind_stop_reasons.def.
1823 * frame.h (enum unwind_stop_reason): Likewise.
1824 * python/py-frame.c (gdbpy_initialize_frames): Likewise.
1825 (gdbpy_frame_stop_reason_string): Use new enum unwind_stop_reason
1826 constants for bound-checking.
1827 * unwind_stop_reasons.def: New file.
1828 * stack.c (backtrace_command_1): Handle UNWIND_FIRST_ERROR as an alias
1829 instead of a distinct value.
1830
f77b9a5d
PM
18312011-10-27 Phil Muldoon <pmuldoon@redhat.com>
1832
1833 PR python/13331
1834
1835 * python/py-function.c (fnpy_call): Check 'args' is not NULL.
1836 (convert_values_to_python): Return on Python tuple allocation
1837 failure. Return NULL on value conversion error.
1838
76dce0be
PM
18392011-10-27 Phil Muldoon <pmuldoon@redhat.com>
1840
1841 * python/py-breakpoint.c (bppy_set_enabled): Use TRY_CATCH.
1842 (bppy_set_task): Ditto.
1843 (bppy_delete_breakpoint): Ditto.
1844 * python/py-symbol.c (gdbpy_lookup_symbol): Ditto.
1845 (gdbpy_lookup_global_symbol): Ditto.
1846 * python/py-lazy-string.c (stpy_convert_to_value): Ditto.
1847 * python/py-frame.c (frapy_is_valid): Ditto.
1848 (frame_info_to_frame_object): Ditto.
1849 * python/py-type.c (typy_lookup_type): Ditto.
1850 (typy_getitem): Ditto.
1851 (typy_has_key): Ditto.
1852 (typy_richcompare): Use TRY_CATCH. Do not return Py_NE on error.
1853
f17b6955
JB
18542011-10-26 Joel Brobecker <brobecker@adacore.com>
1855
1856 * gdbarch.h: Regenerate.
1857
86ba1042
JB
18582011-10-26 Meador Inge <meadori@codesourcery.com>
1859
1860 * gdbarch.sh (function_list): Use 'pstring' when printing
1861 'gcore_bfd_target'.
1862 * gdbarch.c: Regenerate.
1863
c34fd852
UW
18642011-10-26 Ulrich Weigand <uweigand@de.ibm.com>
1865
1866 * regcache.c (registers_changed_ptid): Invalidate thread architecture
1867 and frame caches if PTID refers to all threads of a process.
1868
931bb47f
UW
18692011-10-26 Ulrich Weigand <uweigand@de.ibm.com>
1870
1871 * spu-tdep.c (spu_catch_start): Pass non-NULL breakpoint ops
1872 to create_breakpoint.
1873
88aed45e
UW
18742011-10-26 Ulrich Weigand <uweigand@de.ibm.com>
1875
1876 * ppc-sysv-tdep.c (ppc_sysv_use_opencl_abi): New function.
1877 (ppc_sysv_abi_push_dummy_call): Use it.
1878 (do_ppc_sysv_return_value): Likewise.
1879 (ppc64_sysv_abi_push_dummy_call): Likewise.
1880 (ppc64_sysv_abi_return_value): Likewise.
1881
3eaf3fa2
PK
18822011-10-26 Paul Koning <paul_koning@dell.com>
1883
1884 * python/lib/gdb/types.py (deepitems): New function.
1885
913460fc
PK
18862011-10-25 Paul Koning <paul_koning@dell.com>
1887
1888 PR python/13327
1889
1890 * python/py-value.c (value_to_value_object): Remove fetching of
1891 the value if it was lazy.
1892 (valpy_get_is_lazy): New function.
1893 (valpy_fetch_lazy): New function.
1894
2b5b9d09
JB
18952011-10-24 Joel Brobecker <brobecker@adacore.com>
1896
1897 * ppc-sysv-tdep.c (do_ppc_sysv_return_value): Do not check
1898 FUNC_TYPE's calling convention if FUNC_TYPE is not a function.
1899
e21ffe51
PA
19002011-10-24 Pedro Alves <pedro@codesourcery.com>
1901
1902 * linux-nat.c (linux_handle_extended_wait): When handling a clone
1903 event, in non-stop, if not stopping, make sure the new lwp has
1904 last_resume_kind set to resume_continue. Assert that when we're
1905 resuming the new lwp, its last_resume_kind is resume_continue.
1906
7aee8dc2
PA
19072011-10-24 Pedro Alves <pedro@codesourcery.com>
1908
1909 * infrun.c (handle_inferior_event): Don't assume inferior_ptid is
1910 already set when marking the event thread as not executing in
1911 non-stop mode.
1912
4b4e080e
PA
19132011-10-24 Pedro Alves <pedro@codesourcery.com>
1914
1915 * infrun.c (handle_inferior_event): Add debug output for
1916 TARGET_WAITKIND_NO_HISTORY.
1917
baacfb07
PM
19182011-10-24 Phil Muldoon <pmuldoon@redhat.com>
1919
1920 * NEWS: Move set/show extended-prompt to "New Options". Expand
1921 description. Fix typos.
1922
8432bc41
PM
19232011-10-24 Phil Muldoon <pmuldoon@redhat.com>
1924
1925 PR python/13310
1926
1927 * python/py-param.c (call_doc_function): Correctly deference on
1928 function exit.
1929
6cda5a20
JB
19302011-10-21 Joel Brobecker <brobecker@adacore.com>
1931
1932 * ada-tasks.c (print_ada_task_info): Fix computation of
1933 number of tasks displayed in command output.
1934
13294f7d
JK
19352011-10-20 Jan Kratochvil <jan.kratochvil@redhat.com>
1936 Ulrich Weigand <uweigand@de.ibm.com>
1937
1938 * dwarf2-frame-tailcall.c: Include dwarf2-frame.h.
1939 (dwarf2_tailcall_prev_register_first): Use dwarf2_frame_cfa.
1940 (dwarf2_tailcall_sniffer_first): Remove variable pc_regnum. Replace
1941 gdbarch_pc_regnum and frame_unwind_register_unsigned by
1942 gdbarch_unwind_pc.
1943
460c1c54
CC
19442011-10-20 Cary Coutant <ccoutant@google.com>
1945
1946 * dwarf2read.c (dw2_get_file_names): Move adjustment for type
1947 section to...
1948 (partial_read_comp_unit_head): ...here. Add is_debug_type_section
1949 flag. Adjust all callers.
1950 (process_psymtab_comp_unit): Remove adjustment for type section.
1951
a10964d1
AR
19522011-10-20 Aleksandar Ristovski <aristovski@qnx.com>
1953
1954 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Changed function
1955 arguments by adding OBJFILE. Instead of getting objfile from
1956 symbol's symtab, use new argument OBJFILE.
1957 * cp-support.h (cp_scan_for_anonymous_namespaces): Changed function
1958 arguments by adding OBJFILE.
1959 * gdb/dwarf2read.c (new_symbol_full): Change call to
1960 cp_scan_for_anonymous_namespaces to match new signature.
1961 * gdb/stabsread.c (define_symbol): Change call to
1962 cp_scan_for_anonymous_namespaces to match new signature.
1963
27ca1a5b
PM
19642011-10-20 Phil Muldoon <pmuldoon@redhat.com>
1965
1966 PR python/13308
1967 PR python/13309
1968
1969 * python/py-breakpoint.c (gdbpy_breakpoints): Fix List reference
1970 leak.
1971 * python/py-inferior.c (gdbpy_inferiors): Fix List reference
1972 leak. Delete unused variables.
1973
9df2fbc4
PM
19742011-10-20 Phil Muldoon <pmuldoon@redhat.com>
1975
1976 PR python/12656
1977
1978 * python/py-frame.c (frapy_read_var): Use const struct *block.
1979 * python/py-type.c (typy_lookup_typename): Likewise.
1980 (typy_lookup_type): Likewise.
1981 (typy_legacy_template_argument): Likewise.
1982 (typy_template_argument): Likewise.
1983 (gdbpy_lookup_type): Likewise.
1984 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
1985 * python/py-block.c (blpy_block_object): Likewise.
1986 (blpy_iter): Likewise.
1987 (blpy_get_start): Likewise.
1988 (blpy_get_end): Likewise.
1989 (blpy_get_function): Likewise.
1990 (blpy_get_superblock): Likewise.
1991 (set_block): Likewise.
1992 (block_to_block_object): Likewise.
1993 (block_object_to_block): Likewise.
1994 (blpy_is_valid): Likewise.
1995 (blpy_get_global_block): New function.
1996 (blpy_get_static_block): New function.
1997 (blpy_is_global): New function.
1998 (blpy_is_static): New function.
1999 * blockframe.c (block_innermost_frame): Likewise.
2000 * valops.c (value_of_variable): Likewise.
2001 * frame.h: Update prototypes.
2002 * python/python-internal.h: Likewise.
2003 * value.h: Likewise.
2004
4743b735
CC
20052011-10-19 Cary Coutant <ccoutant@google.com>
2006
2007 * dwarf2read.c (create_debug_types_hash_table): Fix size of
2008 type_offset field.
2009
6caca83c
CC
20102011-10-19 Cary Coutant <ccoutant@google.com>
2011
2012 * dwarf2read.c (peek_abbrev_code): New function.
2013 (dw2_get_file_names): Check for dummy compilation units.
2014 (create_debug_types_hash_table): Likewise.
2015 (process_psymtab_comp_unit): Likewise.
2016 (load_partial_comp_unit): Likewise.
2017 (load_full_comp_unit): Likewise.
2018
43136979
AR
20192011-10-18 Aleksandar Ristovski <aristovski@qnx.com>
2020
2021 * solib-svr4.c (read_program_header): New variables pt_phdr, pt_phdr_p,
2022 initialize them from target PT_PHDR p_vaddr, relocate sect_addr by
2023 pt_phdr if PT_PHDR was found.
2024
0a07729b
TT
20252011-10-17 Joost van der Sluis <joost@cnoc.nl>
2026
2027 * gdbtypes.h: Added TYPE_SAFE_NAME macro to get the name of a
2028 type or "<unnamed type"> when there is no name assigned.
2029 * gnu-v3-abi.c (gnuv3_rtti_type): Use TYPE_SAFE_NAME macro to
2030 avoid a sigint when no name is assigned.
2031
21ae7a4d
JK
20322011-10-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2033
2034 Revert:
2035 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2036 * dwarf2expr.c (ctx_no_read_reg): New function.
2037 * dwarf2expr.h (ctx_no_read_reg): New declaration.
2038 * dwarf2read.c (read_2_signed_bytes, read_4_signed_bytes): Remove.
2039 (decode_locdesc_read_mem, decode_locdesc_ctx_funcs): New.
2040 (decode_locdesc): Replace by a caller of dwarf_expr_eval.
2041
32d1c362
DE
20422011-10-16 Doug Evans <dje@google.com>
2043
2044 * NEWS: Document python gdb.printing.register_pretty_printer's new
2045 `replace' parameter.
2046
da096638
KS
20472011-10-14 Keith Seitz <keiths@redhat.com>
2048
2049 PR c++/13225
2050 * eval.c (evaluate_subexp_standard): Do not construct
2051 an array of types; pass the value array directly to
2052 find_overload_match.
2053 * gdbtypes.h (NULL_POINTER_CONVERSION_BADNESS): Declare.
2054 (rank_function): Take an array of values instead of types.
2055 (rank_one_type): Add struct value * parameter.
2056 * gdbtypes.c (NULL_POINTER_CONVERSION_BADNESS): Define.
2057 (rank_function): For each argument, pass the argument's
2058 value to rank_one_type.
2059 (rank_one_type): Add VALUE parameter.
2060 If the parameter type is a pointer and the argument type
2061 is an integer, return NULL_POINTER_CONVERSION_BADNESS if
2062 VALUE is zero.
2063 Update all calls to rank_one_type, passing NULL for new
2064 VALUE parameter.
2065 * valarith.c (value_user_defined_cpp_op): Do not construct
2066 an array of types; pass the value array directly to
2067 find_overload_match.
2068 * valops.c (find_overload_method_list): Take an array of
2069 values instead of types.
2070 Save the type of OBJP for later use.
2071 Update calls to find_oload_champ, and find_oload_champ_namespace.
2072 (find_oload_champ_namespace): Take an array of values instead
2073 of types.
2074 (find_oload_champ_namespace_loop): Likewise.
2075 (find_oload_champ): Likewise.
2076 (classify_oload_match): Inspect all arguments
2077 until INCOMPATIBLE is found. Return the worst badness found
2078 otherwise.
2079 (compare_parameters): Update call to rank_one_type.
2080 * value.h (find_overload_match): Take an array of values instead
2081 of types.
2082
3957565a
JK
20832011-10-14 Jan Kratochvil <jan.kratochvil@redhat.com>
2084
2085 Drop lazy lm_info reading.
2086 * solib-svr4.c (struct lm_info): Remove field lm. New fields l_addr_p,
2087 l_addr_inferior, l_ld, l_next, l_prev and l_name.
2088 (lm_info_read): New function.
2089 (lm_addr_from_link_map, lm_dynamic_from_link_map): Remove.
2090 (lm_addr_check): Use l_addr_p. No longer use lm_addr_from_link_map and
2091 lm_dynamic_from_link_map.
2092 (lm_next, lm_prev, lm_name): Remove.
2093 (svr4_keep_data_in_core): Use lm_info_read, drop the lm_info entries
2094 initialization incl. read_memory. No longer use lm_name.
2095 (svr4_free_so): Drop lm_info->lm freeing.
2096 (svr4_default_sos): Initialize lminfo with zeroes. Use l_addr_p. Drop
2097 explicit lm_addr and lm initialization.
2098 (svr4_read_so_list): Use lm_info_read, drop the initailization of
2099 fields by hand, incl. read_memory. No longer use lm_next, lm_prev and
2100 lm_name.
2101
cb08cc53
JK
21022011-10-14 Jan Kratochvil <jan.kratochvil@redhat.com>
2103 Paul Pluzhnikov <ppluzhnikov@google.com>
2104
2105 * defs.h (struct so_list): New forward declaration.
2106 (make_cleanup_free_so): New declaration.
2107 * solib-svr4.c (ignore_first_link_map_entry): Remove.
2108 (svr4_free_so): Move the function here from downwards. Handle NULL
2109 so->lm_info.
2110 (svr4_free_library_list): New.
2111 (svr4_read_so_list): New, moved here code from svr4_current_sos.
2112 Use more cleanups. Use new parameter ignore_first instead of
2113 ignore_first_link_map_entry.
2114 (svr4_current_sos): New variable ignore_first, initialize it. New
2115 variable back_to, use it for svr4_free_library_list protection.
2116 (svr4_free_so): Remove - move upwards.
2117 * utils.c: Include solist.h.
2118 (do_free_so, make_cleanup_free_so): New functions.
2119
22c05d8a
JK
21202011-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2121
2122 Fix internal error regression.
2123 * value.c (value_primitive_field): Handle value_optimized_out. Move
2124 packed bitfields comment.
2125
d930d06e
TT
21262011-10-13 Tom Tromey <tromey@redhat.com>
2127
2128 * python/py-breakpoint.c (gdbpy_breakpoint_deleted): Ensure GIL is
2129 always released.
2130
2ff6b080
TT
21312011-10-13 Tom Tromey <tromey@redhat.com>
2132
2133 * python/py-type.c (typy_has_key): Make 'field' const.
2134
d6c5869f
LM
21352011-10-13 Luis Machado <lgustavo@codesourcery.com>
2136
2137 * remote.c (remote_save_trace_data): Invert comparison.
2138
a70633a2
LM
21392011-10-13 Luis Machado <lgustavo@codesourcery.com>
2140
2141 * tracepoint.c (trace_save_command): Use filename instead of
2142 args when printing.
2143
e103e986
JK
21442011-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2145
2146 * dwarf2read.c (dwarf2_fetch_die_location_block): Initialize .data even
2147 if .size is 0.
2148
db24da6d
YQ
21492011-10-13 Yao Qi <yao@codesourcery.com>
2150
2151 PR gdb/12703
2152 * arm-tdep.c (thumb_analyze_prologue): Call thumb_insn_size to check
2153 whether insn is a 32-bit Thumb-2 instruction.
2154 (thumb_in_function_epilogue_p): Likewise.
2155 (thumb_get_next_pc_raw): Likewise.
2156 (arm_breakpoint_from_pc): Likewise.
2157
1d6edc3c
JK
21582011-10-12 Jan Kratochvil <jan.kratochvil@redhat.com>
2159
2160 Fix empty DWARF expressions DATA vs. SIZE conditionals.
2161 * dwarf2loc.c (dwarf2_find_location_expression): Clear *LOCEXPR_LENGTH.
2162 (dwarf_expr_frame_base_1): Indicate unavailability via zero *LENGTH.
2163 (locexpr_tracepoint_var_ref): Check only zero SIZE, not zero DATA.
2164 (loclist_read_variable, loclist_tracepoint_var_ref): Do not check for
2165 zero DATA.
2166 * dwarf2loc.h (struct dwarf2_locexpr_baton): Comment DATA vs. SIZE
2167 validity.
2168 * dwarf2read.c (struct dwarf_block): Comment DATA validity.
2169 (dwarf2_fetch_die_location_block, dwarf2_symbol_mark_computed): Do not
2170 clear DATA on zero SIZE.
2171
adabb602
DE
21722011-10-12 Doug Evans <dje@google.com>
2173
2174 * dwarf2read.c (partial_read_comp_unit_head): Set header->offset,
2175 header->first_die_offset here. All callers updated.
2176
5048e516
JK
21772011-10-12 Jan Kratochvil <jan.kratochvil@redhat.com>
2178
2179 Fix compatibility with texinfo versions older than 4.12.
2180 * Makefile.in (MAKEINFO): Set to @MAKEINFO@.
2181 (MAKEINFOFLAGS, MAKEINFO_EXTRA_FLAGS, MAKEINFO_CMD): New.
2182 (MAKEHTMLFLAGS): Use MAKEINFO_CMD.
2183 (FLAGS_TO_PASS): Add MAKEINFOFLAGS and MAKEINFO_EXTRA_FLAGS.
2184 * configure: Regenerate.
2185 * configure.ac (MAKEINFO): Find it, from libiberty/configure.ac.
2186 (MAKEINFOFLAGS): Pre-set it to --split-size=5000000.
2187 (MAKEINFO_EXTRA_FLAGS): New test for -DHAVE_MAKEINFO_CLICK.
2188
0574c78f
GB
21892011-10-12 Gary Benson <gbenson@redhat.com>
2190
2191 * breakpoint.h (pc_at_non_inline_function): Declare.
2192 * breakpoint.c (is_non_inline_function,
2193 pc_at_non_inline_function): New functions.
2194 * infrun.c (handle_inferior_event): Don't call skip_inline_frames
2195 if the stop is at a location where functions cannot be inlined.
2196
12d9289a
PA
21972011-10-12 Pedro Alves <pedro@codesourcery.com>
2198
2199 * linux-nat.c (stop_and_resume_callback): Don't re-resume LWPs if
2200 the core wanted them stopped, or if they now have a pending event
2201 to report.
ecf8e7f5
PA
2202 (linux_nat_filter_event): New parameter `new_pending_p'. Pass it
2203 down to stop_and_resume_callback.
2204 (linux_nat_wait_1): Always clear `options' when retrying. Handle
2205 having new pending events after calling linux_nat_filter_event.
12d9289a 2206
96408a79
SA
22072011-10-11 Sterling Augustine <saugustine@google.com>
2208
2209 * dwarf2read.c: Undo inadvertent changes in previous commit.
2210
9c6c53f7
SA
22112011-10-11 Sterling Augustine <saugustine@google.com>
2212
2213 * dwarf2read.c (partial_die_parent_scope): Rearrange conditional
2214 logic.
2215
0e8aefe7
UW
22162011-10-11 Ulrich Weigand <ulrich.weigand@linaro.org>
2217
2218 * symfile.c (separate_debug_file_exists): Fix condition.
2219
349d1385
DM
22202011-10-11 David S. Miller <davem@davemloft.net>
2221
2222 * regcache.c (regcache_restore): Do not write unavailable regs, mark
2223 static.
2224 * regcache.h (regcache_restore): Remove declaration.
2225
205c306f
DM
2226 * gdbarch.sh: New field 'long_long_align_bit'.
2227 * gdbarch.c, gdbarch.h: Regenerate.
2228 * i386-tdep.c (i386_gdbarch_init): Set long_long_align_bit to 32.
2229 * jit.c (jit_read_code_entry): Use it to determine correct size offset.
2230
941b2081
JK
22312011-10-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2232
2233 Revert this part of:
2234 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2235 Support @entry in input expressions.
2236 * c-exp.y (ENTRY, unknown_cpp_name): New.
2237 (exp: UNKNOWN_CPP_NAME): Change to `exp: unknown_cpp_name'.
2238 (unknown_cpp_name: UNKNOWN_CPP_NAME, unknown_cpp_name: ENTRY)
2239 (variable: name_not_typename '@' ENTRY, name: ENTRY)
2240 (name_not_typename: ENTRY): New.
2241 (yylex): Recognize ENTRY.
2242
2243 Reimplement @entry in input expressions.
2244 * c-exp.y (ENTRY): New.
2245 (variable: name_not_typename ENTRY): New.
2246 (lex_one_token): Optionally return ENTRY instead of the '@' lex.
2247
3c4d7e12
PA
22482011-10-11 Pedro Alves <pedro@codesourcery.com>
2249
2250 * linux-nat.c (linux_handle_extended_wait): Always dump both the
2251 parent and child's pids as soon as we detect a clone event.
2252 Adjust another debug message.
2253
ea23808b
PA
22542011-10-11 Pedro Alves <pedro@codesourcery.com>
2255
2256 * linux-nat.c (linux_lwp_is_zombie): Return early if the LWP is
2257 not zombie instead of reading the whole file.
2258
904578ed
JK
22592011-10-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2260
2261 Fix separate debuginfo warning with "remote:" access.
2262 * objfiles.h (struct objfile): New fields crc32 and crc32_p.
2263 * symfile.c (get_file_crc): New function with the code moved from ...
2264 (separate_debug_file_exists): ... this function, specifically variables
2265 buffer and count. New variable verified_as_different, set it. Remove
2266 file_crc initialization. Verify also if both files are not the same
2267 manually, if needed.
2268
51370a33
YQ
22692011-10-11 Yao Qi <yao@codesourcery.com>
2270
2271 * arm-tdep.c (arm_get_next_pc_raw): Use read_memory_unsigned_integer
2272 to get address.
2273
0838fb57
DE
22742011-10-10 Doug Evans <dje@google.com>
2275
2276 * linux-thread-db.c (thread_db_new_objfile): Only try to load
2277 libthread_db when we load libpthread or the main symbol file.
2278 (thread_db_inferior_created): New function.
2279 (_initialize_thread_db): Attach inferior_created observer.
2280 * linux-nat.c (linux_child_post_attach): Remove call to
2281 check_for_thread_db.
2282 (linux_child_post_startup_inferior): Ditto.
2283 * objfiles.h (OBJF_MAINLINE): Define.
2284 * symfile.c (symbol_file_add_with_addrs_or_offsets): Pass it to
2285 allocate_objfile when appropriate.
2286
623bd5b7
UW
22872011-10-10 Ulrich Weigand <ulrich.weigand@linaro.org>
2288
2289 PR gdb/13218
2290 * arm-linux-nat.c (os_version, os_major, os_minor, os_release):
2291 Remove unused variables.
2292 (get_linux_version): Remove function.
2293 (_initialize_arm_linux_nat): Do not call it.
2294
79395f92
PA
22952011-10-10 Pedro Alves <pedro@codesourcery.com>
2296
2297 * linux-nat.c (linux_handle_extended_wait): Don't resume the new
2298 new clone lwp if the core asked it to stop. Don't pass on
2299 unexpected signals to the new clone; leave them pending instead.
2300
eff3df78
PA
23012011-10-10 Pedro Alves <pedro@codesourcery.com>
2302
2303 * linux-nat.c (resume_lwp): Remove redundant debug output.
2304
4b60df3d
PA
23052011-10-10 Pedro Alves <pedro@codesourcery.com>
2306
2307 * linux-nat.c (linux_nat_wait_1): Copy the event lwp's
2308 last_resume_kind before clearing it, and use the copy instead to
2309 determine whether to report a SIGSTOP as TARGET_SIGNAL_0. Use
2310 resume_clear_callback in the non-stop path too.
2311
6501578c
YQ
23122011-10-09 Yao Qi <yao@codesourcery.com>
2313
2314 * valprint.c (value_check_printable): Add one parameter OPTIONS.
2315 Honor OPTIONS and VAL's type.
2316 (common_val_print, value_print): Update to pass one more parameter.
2317
5a56e9c5
DE
23182011-10-09 Doug Evans <dje@google.com>
2319
2320 Add new "alias" command.
2321 * NEWS: Mention new command.
2322 * command.h (valid_user_defined_cmd_name_p): Declare.
2323 * defs.h (make_cleanup_dyn_string_delete): Declare.
2324 * utils.c: #include "dyn-string.h".
2325 (do_dyn_string_delete, make_cleanup_dyn_string_delete): New functions.
2326 * cli/cli-cmds.c: #include "dyn-string.h".
2327 (argv_to_dyn_string, valid_command_p, alias_command): New functions.
2328 (init_cli_cmds): Add new command.
2329 * cli/cli-decode.c (valid_user_defined_cmd_name_p): New function.
2330
509f0fd9
JK
23312011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2332
2333 Fix compatibility with older GCCs.
2334 * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Initialize parameter.
2335 * stack.c (read_frame_arg): Initialize val_deref.
2336
2bda9cc5
JK
23372011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2338
2339 Entry values NEWS entries, DWARF disassembly support.
2340 * NEWS: New entry values entry.
2341 (set print entry-values, show print entry-values)
2342 (set debug entry-values, show debug entry-values): New entries.
2343 * dwarf2loc.c (disassemble_dwarf_expression): New parameters start and
2344 indent. Remove variable start. Move header printing out. Respect
2345 INDENT. Support DW_OP_GNU_entry_value.
2346 (locexpr_describe_location_1): Move the header printing here, extend
2347 the disassemble_dwarf_expression passed parameters.
2348
a471c594
JK
23492011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2350
2351 Display @entry parameter values even for references.
2352 * ada-valprint.c (ada_val_print_1) <TYPE_CODE_REF>: Try also
2353 coerce_ref_if_computed.
2354 * c-valprint.c (c_val_print) <TYPE_CODE_REF>: Likewise.
2355 * dwarf2expr.c (dwarf_block_to_dwarf_reg_deref): New function.
2356 (execute_stack_op) <DW_OP_GNU_entry_value>: Add -1 deref_size to the
2357 existing push_dwarf_reg_entry_value call. Add new detection calling
2358 dwarf_block_to_dwarf_reg_deref. Update the error message.
2359 (ctx_no_push_dwarf_reg_entry_value): New parameter deref_size.
2360 * dwarf2expr.h
2361 (struct dwarf_expr_context_funcs) <push_dwarf_reg_entry_value>: Add new
2362 parameter deref_size, describe it in the comment.
2363 (ctx_no_push_dwarf_reg_entry_value): Add new parameter deref_size.
2364 (dwarf_block_to_dwarf_reg_deref): New declaration.
2365 * dwarf2loc.c (dwarf_entry_parameter_to_value): Add new parameter
2366 deref_size, describe it in the function comment. New variables
2367 data_src and size, fetch the alternative block accoring to DEREF_SIZE.
2368 (dwarf_expr_push_dwarf_reg_entry_value): Add new parameter deref_size,
2369 describe it in the function comment. Fetch the alternative block
2370 accoring to DEREF_SIZE.
2371 (entry_data_value_coerce_ref, entry_data_value_copy_closure)
2372 (entry_data_value_free_closure, entry_data_value_funcs): New.
2373 (value_of_dwarf_reg_entry): New variables checked_type, target_type,
2374 outer_val, target_val, val and addr. Try to fetch and create also
2375 referenced value content.
2376 (pieced_value_funcs): NULL value for coerce_ref.
2377 (needs_dwarf_reg_entry_value): Add new parameter deref_size.
2378 * f-valprint.c (f_val_print) <TYPE_CODE_REF>: Try also
2379 coerce_ref_if_computed.
2380 * opencl-lang.c (opencl_value_funcs): NULL value for coerce_ref.
2381 * p-valprint.c (pascal_val_print) <TYPE_CODE_REF>: Likewise.
2382 * stack.c (read_frame_arg): Compare also dereferenced values.
2383 * value.c (value_computed_funcs): Make the parameter v const, use
2384 value_lval_const for it.
2385 (value_lval_const, coerce_ref_if_computed): New function.
2386 (coerce_ref): New variable retval. Call also coerce_ref_if_computed.
2387 * value.h (struct lval_funcs): New field coerce_ref.
2388 (value_computed_funcs): Make the parameter v const.
2389 (value_lval_const, coerce_ref_if_computed): New declarations.
2390
36b11add
JK
23912011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2392
2393 Support @entry in input expressions.
2394 * c-exp.y (ENTRY, unknown_cpp_name): New.
2395 (exp: UNKNOWN_CPP_NAME): Change to `exp: unknown_cpp_name'.
2396 (unknown_cpp_name: UNKNOWN_CPP_NAME, unknown_cpp_name: ENTRY)
2397 (variable: name_not_typename '@' ENTRY, name: ENTRY)
2398 (name_not_typename: ENTRY): New.
2399 (yylex): Recognize ENTRY.
2400 * eval.c (evaluate_subexp_standard): Support also OP_VAR_ENTRY_VALUE.
2401 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
2402 Likewise.
2403 * parse.c (operator_length_standard): Likewise.
2404 * std-operator.def: New operator OP_VAR_ENTRY_VALUE.
2405
3343315b
JK
24062011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2407
2408 Display referenced values in backtraces.
2409 * printcmd.c (print_variable_and_value): Set OPTS.DEREF_REF to 1.
2410 * stack.c (print_frame_arg): Likewise.
2411
ac71a68c
JK
24122011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2413
2414 Make some lval_funcs methods to default on NULL.
2415 * valops.c (value_fetch_lazy): Check if lval_computed read method is
2416 NULL.
2417 (value_assign): Check if lval_computed write method is NULL.
2418 * value.h (struct lval_funcs): Comment NULL values for read and write
2419 methods.
2420
e18b2753
JK
24212011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2422
2423 Display @entry parameter values (without references).
2424 * dwarf2expr.c (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset):
2425 New functions.
2426 * dwarf2expr.h (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset):
2427 New declarations.
2428 * dwarf2loc.c (dwarf2_find_location_expression): Support location list
2429 entry record.
2430 (dwarf_entry_parameter_to_value, value_of_dwarf_reg_entry)
2431 (value_of_dwarf_block_entry, locexpr_read_variable_at_entry): New
2432 functions.
2433 (dwarf2_locexpr_funcs): Install locexpr_read_variable_at_entry.
2434 (loclist_read_variable_at_entry): New function.
2435 (dwarf2_loclist_funcs): Install loclist_read_variable_at_entry.
2436 * dwarf2read.c (read_call_site_scope): Support also DW_OP_fbreg in
2437 DW_AT_location, call dwarf_block_to_sp_offset for it.
2438 * frame.h (print_entry_values_no, print_entry_values_only)
2439 (print_entry_values_preferred, print_entry_values_if_needed)
2440 (print_entry_values_both, print_entry_values_compact)
2441 (print_entry_values_default, print_entry_values): New declarations.
2442 (struct frame_arg): New field entry_kind.
2443 (read_frame_arg): New parameter entryargp.
2444 * mi/mi-cmd-stack.c (list_arg_or_local): New gdb_assert for
2445 arg->entry_kind. Optionally print the `@entry' suffix.
2446 (list_args_or_locals): New variable entryarg, initialize it.
2447 Initialize also entry_kind of arg and entryarg. Conditionalize
2448 list_arg_or_local for arg, add list_arg_or_local for entryarg. Call
2449 xfree for entryarg.error.
2450 * stack.c (print_entry_values_no, print_entry_values_only)
2451 (print_entry_values_preferred, print_entry_values_if_needed)
2452 (print_entry_values_both, print_entry_values_compact)
2453 (print_entry_values_default, print_entry_values_choices)
2454 (print_entry_values): New variables.
2455 (print_frame_arg): New gdb_assert for arg->entry_kind. Optionally
2456 print the `@entry' suffix, possibly in combination for
2457 print_entry_values_compact.
2458 (read_frame_arg): New parameter entryargp, new variables entryval,
2459 entryval_error and val_equal. Read in also entryargp, respect
2460 print_entry_values, compare the values using val_equal, fill in also
2461 argp->entry_kind (together with entryargp->entry_kind).
2462 (print_frame_args): New variable entryarg, initialize it.
2463 Conditionalize print_frame_arg for arg, add print_frame_arg for
2464 entryarg. Call xfree for entryarg.error.
2465 (_initialize_stack): Call add_setshow_enum_cmd for `entry-values'.
2466 * symtab.h (struct symbol_computed_ops): New field
2467 read_variable_at_entry.
2468
93d86cef
JK
24692011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2470
2471 Code reshuffle.
2472 * frame.h (struct frame_arg): New definition.
2473 (read_frame_arg): New declaration.
2474 * mi/mi-cmd-stack.c (list_arg_or_local): New functiom from ...
2475 (list_args_or_locals): ... the code here. New variable arg, call
2476 read_frame_arg and list_arg_or_local with it. Unify the
2477 PRINT_SIMPLE_VALUES and PRINT_ALL_VALUES cases. Call xfree for
2478 arg.error.
2479 * stack.c (print_frame_arg): New functiom from the code of
2480 print_frame_args.
2481 (read_frame_arg): New function.
2482 (print_frame_args): Remove variable val. New variable arg, call
2483 read_frame_arg and print_frame_arg with it. Call xfree for arg.error.
2484
2d6c5dc2
JK
24852011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2486
2487 Protect entry values against self tail calls.
2488 * dwarf2loc.c (VEC (CORE_ADDR), func_verify_no_selftailcall): New.
2489 (dwarf_expr_dwarf_reg_entry_value): Call func_verify_no_selftailcall.
2490
111c6489
JK
24912011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2492
2493 Recognize virtual tail call frames.
2494 * Makefile.in (SFILES): Add dwarf2-frame-tailcall.c.
2495 (HFILES_NO_SRCDIR): Add dwarf2-frame-tailcall.h.
2496 (COMMON_OBS): Add dwarf2-frame-tailcall.o.
2497 * dwarf2-frame-tailcall.c: New file.
2498 * dwarf2-frame-tailcall.h: New file.
2499 * dwarf2-frame.c: Include dwarf2-frame-tailcall.h.
2500 (execute_cfa_program): New function comment. Return INSN_PTR. Reset
2501 REGS.PREV only after CIE execution.
2502 (struct dwarf2_frame_cache): New field tailcall_cache.
2503 (dwarf2_frame_cache): New variables entry_pc, entry_cfa_sp_offset,
2504 entry_cfa_sp_offset_p and instr. Execute FDE instructions in two
2505 parts, try to find entry_cfa_sp_offset. Call
2506 dwarf2_tailcall_sniffer_first.
2507 (dwarf2_frame_prev_register): Call dwarf2_tailcall_prev_register_first
2508 when appropriate.
2509 (dwarf2_frame_dealloc_cache): New function.
2510 (dwarf2_frame_sniffer): Preinitialize cache by dwarf2_frame_cache.
2511 (dwarf2_frame_unwind): Install dwarf2_frame_dealloc_cache.
2512 (dwarf2_signal_frame_unwind): Do not install dwarf2_frame_dealloc_cache.
2513 (dwarf2_append_unwinders): Add dwarf2_tailcall_frame_unwind.
2514 (dwarf2_frame_cfa): Support also dwarf2_tailcall_frame_unwind.
2515 * dwarf2loc.c (func_addr_to_tail_call_list)
2516 (tailcall_dump, call_sitep, VEC (call_sitep), chain_candidate)
2517 (call_site_find_chain_1, call_site_find_chain): New.
2518 * dwarf2loc.h (struct call_site_chain): New.
2519 (call_site_find_chain): New declaration.
2520 * frame.c (get_frame_address_in_block): Support also TAILCALL_FRAME.
2521 * frame.h (enum frame_type): New entry TAILCALL_FRAME.
2522 * python/py-frame.c (gdbpy_initialize_frames): Add TAILCALL_FRAME.
2523 * stack.c (frame_info): Support also TAILCALL_FRAME.
2524
bb984ff1
JK
25252011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2526
2527 Tail call sites reader implementation.
2528 * dwarf2read.c (read_call_site_scope): Recognize DW_AT_GNU_tail_call,
2529 fill in TYPE_TAIL_CALL_LIST.
2530 * gdbtypes.h (struct func_type): New field tail_call_list.
2531 (struct call_site): New field tail_call_next.
2532 (TYPE_TAIL_CALL_LIST): New definition.
2533
8e3b41a9
JK
25342011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2535
2536 Implement basic support for DW_TAG_GNU_call_site.
2537 * block.c: Include gdbtypes.h and exceptions.h.
2538 (call_site_for_pc): New function.
2539 * block.h (call_site_for_pc): New declaration.
2540 * defs.h: Include hashtab.h.
2541 (make_cleanup_htab_delete, core_addr_hash, core_addr_eq): New
2542 declarations.
2543 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Install
2544 ctx_no_push_dwarf_reg_entry_value.
2545 * dwarf2expr.c (read_uleb128, read_sleb128): Support R as NULL.
2546 (dwarf_block_to_dwarf_reg): New function.
2547 (execute_stack_op) <DW_OP_GNU_entry_value>: Implement it.
2548 (ctx_no_push_dwarf_reg_entry_value): New function.
2549 * dwarf2expr.h (struct dwarf_expr_context_funcs): New field
2550 push_dwarf_reg_entry_value.
2551 (ctx_no_push_dwarf_reg_entry_value, dwarf_block_to_dwarf_reg): New
2552 declarations.
2553 * dwarf2loc.c: Include gdbcmd.h.
2554 (dwarf_expr_ctx_funcs): New forward declaration.
2555 (entry_values_debug, show_entry_values_debug, call_site_to_target_addr)
2556 (dwarf_expr_reg_to_entry_parameter)
2557 (dwarf_expr_push_dwarf_reg_entry_value): New.
2558 (dwarf_expr_ctx_funcs): Install dwarf_expr_push_dwarf_reg_entry_value.
2559 (dwarf2_evaluate_loc_desc_full): Handle NO_ENTRY_VALUE_ERROR.
2560 (needs_dwarf_reg_entry_value): New function.
2561 (needs_frame_ctx_funcs): Install it.
2562 (_initialize_dwarf2loc): New function.
2563 * dwarf2loc.h (entry_values_debug): New declaration.
2564 * dwarf2read.c (struct dwarf2_cu): New field call_site_htab.
2565 (read_call_site_scope): New forward declaration.
2566 (process_full_comp_unit): Copy call_site_htab.
2567 (process_die): Support DW_TAG_GNU_call_site.
2568 (read_call_site_scope): New function.
2569 (dwarf2_get_pc_bounds): Support NULL HIGHPC.
2570 (dwarf_tag_name): Support DW_TAG_GNU_call_site.
2571 (cleanup_htab): Delete.
2572 (write_psymtabs_to_index): Use make_cleanup_htab_delete instead of it.
2573 * exceptions.h (enum errors): New NO_ENTRY_VALUE_ERROR.
2574 * gdb-gdb.py (StructMainTypePrettyPrinter): Support
2575 FIELD_LOC_KIND_DWARF_BLOCK.
2576 * gdbtypes.h (enum field_loc_kind): New entry
2577 FIELD_LOC_KIND_DWARF_BLOCK.
2578 (struct main_type): New loc entry dwarf_block.
2579 (struct call_site, FIELD_DWARF_BLOCK, SET_FIELD_DWARF_BLOCK)
2580 (TYPE_FIELD_DWARF_BLOCK): New.
2581 * python/py-type.c: Include dwarf2loc.h.
2582 (check_types_equal): Support FIELD_LOC_KIND_DWARF_BLOCK. New
2583 internal_error call on unknown FIELD_LOC_KIND.
2584 * symtab.h (struct symtab): New field call_site_htab.
2585 * utils.c (do_htab_delete_cleanup, make_cleanup_htab_delete)
2586 (core_addr_hash, core_addr_eq): New functions.
2587
b6cdc2c1
JK
25882011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2589
2590 Code reshuffle.
2591 * gdb-gdb.py (StructMainTypePrettyPrinter): Change
2592 TYPE_SPECIFIC_CALLING_CONVENTION to TYPE_SPECIFIC_FUNC. Move
2593 calling_convention under func_stuff there.
2594 * gdbtypes.c (make_function_type): Call INIT_FUNC_SPECIFIC.
2595 (init_type) <TYPE_CODE_FUNC>: Likewise.
2596 (recursive_dump_type): Change TYPE_SPECIFIC_CALLING_CONVENTION to
2597 TYPE_SPECIFIC_FUNC. New comment for tail_call_list.
2598 * gdbtypes.h (enum type_specific_kind): Change
2599 TYPE_SPECIFIC_CALLING_CONVENTION to TYPE_SPECIFIC_FUNC.
2600 (struct main_type) <type_specific>: Change calling_convention to
2601 func_stuff. Move calling_convention to ...
2602 (struct func_type): ... this new struct.
2603 (INIT_FUNC_SPECIFIC): New #define.
2604 (TYPE_CALLING_CONVENTION): Change calling_convention to func_stuff.
2605
181cebd4
JK
26062011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2607
2608 Fix DW_OP_GNU_implicit_pointer for DWARF32 v3+ on 64-bit arches.
2609 * dwarf2-frame.c (execute_stack_op): Initialize ctx->ref_addr_size.
2610 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_implicit_pointer>: Use
2611 ctx->ref_addr_size. Handle its invalid value.
2612 * dwarf2expr.h (struct dwarf_expr_context): New field ref_addr_size.
2613 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full)
2614 (dwarf2_loc_desc_needs_frame): Initialize ctx->ref_addr_size.
2615 * dwarf2loc.h (dwarf2_per_cu_ref_addr_size): New declaration.
2616 * dwarf2read.c (decode_locdesc): Initialize ctx->ref_addr_size.
2617 (dwarf2_per_cu_ref_addr_size): New function.
2618
c471e790
JK
26192011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2620
2621 Code cleanup.
2622 * dwarf2read.c (per_cu_header_read_in): New function.
2623 (dwarf2_per_cu_addr_size, dwarf2_per_cu_offset_size): Use it, with new
2624 variables cu_header_local and cu_headerp.
2625
741f5e3c
JK
26262011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2627
2628 Fix initial language detection with -readnow.
2629 * dwarf2read.c (dw2_find_symbol_file): Handle OBJF_READNOW case.
2630 * symfile.h (struct quick_symbol_functions): State find_symbol_file
2631 searches only for global symbols.
2632
a73d2258
JK
26332011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2634
2635 Fix printed anonymous struct name.
2636 * dwarf2read.c (fixup_partial_die): Handle for anonymous structs also
2637 DW_TAG_interface_type. Strip for anonymous structs any prefixes.
2638 (anonymous_struct_prefix): New function.
2639 (determine_prefix): New variables retval. Call anonymous_struct_prefix.
2640 (dwarf2_name): Strip for anonymous structs any prefixes.
2641
749fd4ea
DE
26422011-10-07 Doug Evans <dje@google.com>
2643
1fa57852
DE
2644 * python/lib/gdb/printing.py (register_pretty_printer): New argument
2645 `replace'.
2646
690a4937
DE
2647 * python/lib/gdb/printing.py: Whitespace cleanup.
2648
749fd4ea
DE
2649 * python/py-value.c (valpy_call): Initialize ftype to avoid compiler
2650 warning.
2651
4c38200f
PA
26522011-10-07 Pedro Alves <pedro@codesourcery.com>
2653
2654 * linux-nat.h (ALL_LWPS): Remove the ptid parameter.
2655 * amd64-linux-nat.c (amd64_linux_dr_set_control)
2656 (amd64_linux_dr_set_addr, amd64_linux_dr_unset_status): Adjust.
2657 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint)
2658 (arm_linux_remove_hw_breakpoint, arm_linux_insert_watchpoint)
2659 (arm_linux_remove_watchpoint): Adjust.
2660 * i386-linux-nat.c (i386_linux_dr_set_control)
2661 (i386_linux_dr_set_addr, i386_linux_dr_unset_status): Adjust.
2662 * ia64-linux-nat.c (ia64_linux_insert_watchpoint)
2663 (ia64_linux_remove_watchpoint): Adjust.
2664 * mips-linux-nat.c (write_watchpoint_regs): Adjust.
2665 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint)
2666 (ppc_linux_insert_hw_breakpoint, ppc_linux_remove_hw_breakpoint)
2667 (ppc_linux_insert_mask_watchpoint)
2668 (ppc_linux_remove_mask_watchpoint, ppc_linux_insert_watchpoint)
2669 (ppc_linux_remove_watchpoint): Adjust.
2670 * s390-nat.c (s390_insert_watchpoint, s390_remove_watchpoint):
2671 Adjust.
2672
b7ff339d
CV
26732011-10-07 Corinna Vinschen <vinschen@redhat.com>
2674
2675 * windows-nat.c: Include wchar.h to avoid compiler warnings.
2676 (clear_win32_environment): New function for Cygwin to clear out
2677 Win32 environment.
2678 (windows_create_inferior): Prepare new environment from in_env
2679 for Cygwin, too.
2680
f287c1f3
PM
26812011-10-07 Phil Muldoon <pmuldoon@redhat.com>
2682
5631e596 2683 PR python/13264
f287c1f3
PM
2684 * python/py-value.c (valpy_call): Check that arguments are
2685 a tuple.
2686 (is_intlike): Remove call to CHECK_TYPEDEF.
2687 (valpy_nonzero): Catch GDB exceptions.
2688 (valpy_absolute): Ditto.
2689 (valpy_lazy_string): Ditto.
2690 (valpy_call): Ditto.
2691 (valpy_get_is_optimized_out): Ditto.
2692 (valpy_long): Ditto.
2693 (valpy_float): Ditto.
2694 (valpy_int): Call CHECK_TYPEDEF. Catch GDB exceptions.
2695 (valpy_richcompare): Ditto.
2696
03583c20
UW
26972011-10-07 Ulrich Weigand <ulrich.weigand@linaro.org>
2698
2699 * inferior.h (disable_randomization): Declare.
2700 * infrun.c (disable_randomization): New global variable.
2701 (show_disable_randomization): New function.
2702 (set_disable_randomization): Likewise.
2703 (_initialize_infrun): Install set/show disable-randomization
2704 commands.
2705 * linux-nat.c (disable_randomization): Remove.
2706 (show_disable_randomization): Likewise.
2707 (set_disable_randomization): Likewise.
2708 (_initialize_linux_nat): No longer install set/show
2709 disable-randomization commands here.
2710 (linux_nat_supports_disable_randomization): New function.
2711 (linux_nat_add_target): Install it.
2712 * remote.c (PACKET_QDisableRandomization): New enum value.
2713 (remote_protocol_packets): Support QDisableRandomization.
2714 (_initialize_remote): Likewise.
2715 (remote_supports_disable_randomization): New function.
2716 (init_remote_ops): Install it.
2717 (extended_remote_supports_disable_randomization): New function.
2718 (init_extended_remote_ops): Install it.
2719 (extended_remote_disable_randomization): New function.
2720 (extended_remote_create_inferior_1): Call it.
2721 * target.h (struct target_ops): Add to_supports_disable_randomization.
2722 (target_supports_disable_randomization): Add prototype.
2723 * target.c (target_supports_disable_randomization): New function.
2724 (find_default_supports_disable_randomization): Likewise.
2725 (init_dummy_target): Install it.
2726
20c168b5
KP
27272011-10-07 Kevin Pouget <kevin.pouget@st.com>
2728
2729 Allow Python notification of new object-file loadings.
2730 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-newobjfilevent.c.
2731 (SUBDIR_PYTHON_OBS): Add py-newobjfileevent.o.
2732 Add build rule for this file.
2733 * python/py-event.h (emit_new_objfile_event): New prototype.
2734 (newobjfile): New Python event emitter.
2735 * python/py-evts.c (gdbpy_initialize_py_events): Add new_objfile to
2736 Python event registry.
2737 * python/py-inferior.c: Include objfiles.h
2738 (python_new_objfile): New function.
2739 (gdbpy_initialize_inferior): Add python_new_objfile to the new objfile
2740 observers.
2741 * python/py-newobjfileevent.c: New file.
2742 * python-internal.h (gdbpy_initialize_new_objfile_event): New
2743 prototype.
2744 * python/python.c (_initialize_python): Add
2745 gdbpy_initialize_new_objfile_event call.
2746 * NEWS: Add item for new Python event "gdb.newobjfile"
2747
b1c8db38
TG
27482011-10-05 Tristan Gingold <gingold@adacore.com>
2749
2750 * ada-tasks.c (read_atcb): Make ravenscar_task_name static.
2751 Extract the ravenscar task name from the symbol for the atcb.
2752
0dab82e9
PK
27532011-10-04 Paul Koning <paul_koning@dell.com>
2754
2755 * python/py-type.c (typy_make_iter): Add forward declaration.
2756 (typy_fields_items): Use the gdb.Type iterator.
2757
84ad80e6
PK
27582011-10-04 Paul Koning <paul_koning@dell.com>
2759
2760 * NEWS: Add entry for Python gdb.Type mapping methods.
2761
cb6be26b
KP
27622011-10-04 Kevin Pouget <kevin.pouget@st.com>
2763
2764 PR python/12691: Add the inferior to Python exited event
2765 * python/py-exitedevent.c (create_exited_event_object): Add inferior
2766 to exited_event.
2767 * python/py-event.h (emit_exited_event): Likewise
2768 * python/-inferior.c (python_inferior_exit): Likewise
2769
6005b210
JB
27702011-10-03 Joel Brobecker <brobecker@adacore.com>
2771
2772 * ada-tasks.c (print_ada_task_info): Add "thread-id" field
2773 in output of -ada-task-info GDB/MI command.
2774
75082e8c
JB
27752011-10-03 Joel Brobecker <brobecker@adacore.com>
2776
2777 * ada-lang.h (struct inferior): Declare.
2778 (print_ada_task_info): Add declaration.
2779 * ada-tasks.c (print_ada_task_info): Make non-static.
2780 * mi/mi-cmds.c (mi_cmds): Add "ada-task-info".
2781 * mi/mi-cmds.h (mi_cmd_ada_task_info): Add declaration.
2782 * mi/mi-main.c: #include "ada-lang.h".
2783 (mi_cmd_list_features): Add "ada-task-info" to the list
2784 of supported features.
2785 (mi_cmd_ada_task_info): New function.
2786
7ed7d719
JB
27872011-10-03 Joel Brobecker <brobecker@adacore.com>
2788
2789 * python/python.c (python_run_simple_file): New function.
2790 (source_python_script, source_python_script_for_objfile):
2791 Replace call to PyRun_SimpleFile by call to
2792 python_run_simple_file.
2793
3fcaed38
PK
27942011-10-03 Paul Koning <paul_koning@dell.com>
2795
2796 * python/py-value.c (valpy_get_address): Use Py_XINCREF.
2797 (value_to_value_object): Fetch value if it was lazy.
2798
8e5c319d
JK
27992011-10-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2800
2801 Code cleanup.
2802 * solib-svr4.c (svr4_default_sos): Remove variables head and link_ptr.
2803 Rearrange the code for it.
2804
dd11a36c
JB
28052011-10-02 Joel Brobecker <brobecker@adacore.com>
2806
2807 * breakpoint.c (bkpt_print_recreate): Add call to
2808 print_recreate_thread.
2809
723b724b
MF
28102011-09-29 Mike Frysinger <vapier@gentoo.org>
2811
2812 * common/linux-ptrace.h (PTRACE_GETFDPIC, PTRACE_GETFDPIC_EXEC,
2813 PTRACE_GETFDPIC_INTERP): Define.
2814
412946b6
YQ
28152011-09-28 Yao Qi <yao@codesourcery.com>
2816
2817 * symfile.c (add_symbol_file_command): Update message on usage.
2818
a73bb892
PK
28192011-09-28 Paul Koning <paul_koning@dell.com>
2820
2821 * python/py-type.c (make_fielditem, typy_field_names, typy_items)
2822 (typy_length, typy_get, typy_has_key, typy_make_iter)
2823 (typy_iterkeys, typy_iteritems, typy_itervalues, typy_iter)
2824 (typy_iterator_iter, typy_iterator_iternext)
2825 (typy_iterator_dealloc): New functions to implement standard
2826 Python mapping methods on gdb.Type object.
2827 (gdb.TypeIterator): New Python type.
2828 * python/python-internal.h (gdbpy_iter_kind): New enum.
a73bb892 2829
fe10a582
DM
28302011-09-28 David S. Miller <davem@davemloft.net>
2831
2832 * sparc-tdep.h (SPARC_F2_REGNUM, SPARC_F3_REGNUM, SPARC_F4_REGNUM,
2833 SPARC_F5_REGNUM, SPARC_F6_REGNUM, SPARC_F7_REGNUM): New enums.
2834 * sparc-tdep.c (sparc_complex_floating_p): New function.
2835 (sparc32_store_arguments): Handle complex floats.
2836 (sparc32_extract_return_value): Likewise.
2837 (sparc32_store_return_value): Likewise.
2838 (sparc32_stabs_argument_has_addr): Likewise.
2839 * sparc64-tdep.c (sparc64_complex_floating_p): New function.
2840 (sparc64_store_floating_fields): Handle complex floats.
2841 (sparc64_store_arguments): Likewise.
2842 (sparc64_store_return_value): Likewise.
2843
c93dbcba
EZ
28442011-09-28 Eli Zaretskii <eliz@gnu.org>
2845
2846 * windows-nat.c (env_sort) [!__CYGWIN__]: Function restored from
2847 before the change on 2006-12-09.
2848 (windows_create_inferior) [!__CYGWIN__]: Restore code that
2849 generates the environment block for CreateProcessA, modulo the
2850 Cygwin-specific parts that are not needed here.
2851
f00c55f8
TG
28522011-09-27 Tristan Gingold <gingold@adacore.com>
2853
2854 * target.h (enum target_object): Add TARGET_OBJECT_DARWIN_DYLD_INFO.
2855 * solib-darwin.c (DYLD_VERSION_MAX): Update number.
2856 (darwin_solib_get_all_image_info_addr_at_init): New function.
2857 (darwin_solib_read_all_image_info_addr): Likewise.
2858 (darwin_solib_create_inferior_hook): Use the above two functions.
2859 * darwin-nat.c (darwin_execvp): Renames retval to res.
2860 (darwin_read_write_inferior): Update comment.
2861 (darwin_read_dyld_info): New function.
2862 (darwin_xfer_partial): Handle DYLD_INFO.
2863
6710bf39
SS
28642011-09-27 Stan Shebs <stan@codesourcery.com>
2865
2866 Add return address collection for tracepoints.
2867 * tracepoint.c (encode_actions_1): Add case for $_ret.
2868 (validate_actionline): Check for $_ret.
2869 (trace_dump_actions): Ditto.
2870 * ax-gdb.h (gen_trace_for_return_address): Declare.
2871 * ax-gdb.c: Include arch-utils.h.
2872 (gen_trace_for_return_address): New function.
2873 (agent_command): Add return address special case.
2874 * amd64-tdep.c: Include ax.h and ax-gdb.h.
2875 (amd64_gen_return_address): New function.
2876 (amd64_init_abi): Call it.
2877 * i386-tdep.c: Include ax.h and ax-gdb.h.
2878 (i386_gen_return_address): New function.
2879 (i386_init_abi): Call it.
2880 * arch-utils.h (default_gen_return_address): Declare.
2881 * arch-utils.c (default_gen_return_address): New function.
2882 * gdbarch.sh (gen_return_address): New method.
2883 * gdbarch.h, gdbarch.c: Regenerate.
2884
e04e5beb
JM
28852011-09-23 Joseph Myers <joseph@codesourcery.com>
2886
2887 PR gdb/13079
2888 * i386-tdep.c (i386_frame_align): New.
2889 (i386_gdbarch_init): Use i386_frame_align.
2890
f3d6df6d
YQ
28912011-09-23 Yao Qi <yao@codesourcery.com>
2892
2893 * i386-linux-nat.c (i386_linux_resume): Use read_memory_unsigned_integer
2894 to get address.
2895
e69860f1
TG
28962011-09-22 Tristan Gingold <gingold@adacore.com>
2897
2898 * fork-child.c (fork_inferior): Add exec_fun parameter.
2899 Call exec_fun or execvp.
2900 * inferior.h: Adjust prototype.
2901 * gnu-nat.c (gnu_create_inferior): Adjust fork_inferior call.
2902 * inf-ttrace.c (inf_ttrace_create_inferior): Ditto.
2903 * inf-ptrace.c (inf_ptrace_create_inferior): Ditto.
2904 * procfs.c (procfs_create_inferior): Ditto.
2905 * darwin-nat.c (darwin_execvp): New function.
2906 (darwin_create_inferior): Use it.
2907
4b51d87b
YQ
29082011-09-22 Yao Qi <yao@codesourcery.com>
2909
2910 * infrun.c (context_switch): Print debug message when switching to
2911 a different thread.
2912
56b9d9ac
UW
29132011-09-21 Ulrich Weigand <uweigand@de.ibm.com>
2914
2915 * s390-tdep.c (s390_function_arg_pass_by_reference): Handle
2916 complex and vector types.
2917 (s390_return_value_convention): Likewise.
2918
2919 (s390_value_from_register): Call check_typedef.
2920 (extend_simple_arg): Likewise.
2921 (alignment_of): Likewise.
2922 (s390_push_dummy_call): Likewise.
2923 (s390_return_value): Likewise.
2924
b2cd6b29
JM
29252011-09-21 Joseph Myers <joseph@codesourcery.com>
2926
2927 * event-top.c (async_disconnect): If an exception is thrown from
2928 quit_cover, call pop_all_targets. Use TRY_CATCH instead of
2929 catch_errors.
2930 * top.c (quit_cover): Return void and take no arguments.
2931 * top.h (quit_cover): Update prototype.
2932
67ba4e42
JM
29332011-09-20 Joseph Myers <joseph@codesourcery.com>
2934
2935 * mi/mi-main.c (mi_load_progress): Restore saved_uiout value to
2936 current_uiout, not uiout.
2937
562f943b
DE
29382011-09-19 Doug Evans <dje@google.com>
2939
2940 * python/py-auto-load.c (source_section_scripts): Fix file
2941 descriptor leak.
2942 * python/python.c (source_python_script_for_objfile): Tweak comments.
2943
34518530
YQ
29442011-09-18 Yao Qi <yao@codesourcery.com>
2945 Ulrich Weigand <ulrich.weigand@linaro.org>
2946
2947 Support displaced stepping for Thumb 16-bit insns.
2948 * arm-tdep.c (THUMB_NOP) Define.
2949 (thumb_copy_unmodified_16bit): New.
2950 (thumb_copy_b, thumb_copy_bx_blx_reg): New.
2951 (thumb_copy_alu_reg): New.
2952 (arm_copy_svc): Move some common code to ...
2953 (install_svc): ... here. New.
2954 (thumb_copy_svc): New.
2955 (install_pc_relative): New.
2956 (thumb_copy_pc_relative_16bit): New.
2957 (thumb_decode_pc_relative_16bit): New.
2958 (thumb_copy_16bit_ldr_literal): New.
2959 (thumb_copy_cbnz_cbz): New.
2960 (cleanup_pop_pc_16bit_all): New.
2961 (thumb_copy_pop_pc_16bit): New.
2962 (thumb_process_displaced_16bit_insn): New.
2963 (thumb_process_displaced_32bit_insn): New.
2964 (thumb_process_displaced_insn): process thumb instruction.
2965
2966 Support displaced stepping for Thumb 32-bit insns.
2967 * arm-tdep.c (thumb_copy_unmodified_32bit): New.
2968 (thumb2_copy_preload): New.
2969 (thumb2_copy_copro_load_store): New.
2970 (thumb2_copy_b_bl_blx): New.
2971 (thumb2_copy_alu_imm): New.
2972 (thumb2_copy_load_reg_imm): New.
2973 (thumb2_copy_load_literal): New
2974 (thumb2_copy_block_xfer): New.
2975 (thumb_32bit_copy_undef): New.
2976 (thumb_32bit_copy_unpred): New.
2977 (thumb2_decode_ext_reg_ld_st): New.
2978 (thumb2_decode_svc_copro): New.
2979 (decode_thumb_32bit_store_single_data_item): New.
2980 (thumb_copy_pc_relative_32bit): New.
2981 (thumb_decode_pc_relative_32bit): New.
2982 (decode_thumb_32bit_ld_mem_hints): New.
2983 (thumb2_copy_table_branch): New
2984 (thumb_process_displaced_32bit_insn): Process Thumb 32-bit
2985 instructions.
2986
2b16b2e3
YQ
29872011-09-18 Yao Qi <yao@codesourcery.com>
2988
2989 * arm-tdep.c (install_copro_load_store): PC is set 4-byte aligned.
2990 (install_b_bl_blx): Likewise.
2991
0f6f04ba
YQ
29922011-09-17 Yao Qi <yao@codesourcery.com>
2993
2994 * arm-tdep.c (install_ldr_str_ldrb_strb): Renamed to ...
2995 (install_load_store): ... this. New.
2996 Change parameter BYTE to SIZE.
2997 (arm_copy_ldr_str_ldrb_strb): Update caller.
2998 (arm_decode_ld_st_word_ubyte): Update caller.
2999
e2d96639
YQ
30002011-09-17 Yao Qi <yao@codesourcery.com>
3001
3002 * infrun.c (displaced_step_fixup): Move some code ...
3003 (displaced_step_restore): ... here. New function.
3004 (handle_inferior_event): Cleanup displaced stepping state for both
3005 child and parent when get forked or vforked event.
3006 * regcache.c (get_thread_arch_aspace_regcache): New function.
3007 get_thread_arch_regcache (): Call it.
3008
a8123151
JB
30092011-09-16 Joel Brobecker <brobecker@adacore.com>
3010
3011 * ada-tasks.c (print_ada_task_info): New function, merging
3012 short_task_info and info_tasks together. Reimplement using
3013 ui-out instead of printing to stdout directly. Move the code
3014 building and checking the task list here, instead of leaving it
3015 in info_tasks_command.
3016 (info_task): Move the code building and checking the task
3017 list here, instead of leaving it in info_tasks_command.
3018 (info_tasks_command): Delete code building and checking
3019 the task list - moved elsewhere. Update calls to info_tasks
3020 and info_task.
3021
fbf06824
JB
30222011-09-16 Joel Brobecker <brobecker@adacore.com>
3023
3024 * ada-tasks.c (info_task): Delete parameter `from_tty'.
3025
34a0bc90
JB
30262011-09-16 Joel Brobecker <brobecker@adacore.com>
3027
3028 * ada-tasks.c (info_tasks): Delete parameter `from_tty'.
3029
79779fa9
JB
30302011-09-16 Joel Brobecker <brobecker@adacore.com>
3031
3032 * ada-lang.h (ada_build_task_list): Remove parameter
3033 `warn_if_null'.
3034 * ada-tasks.c (ada_build_task_list): Remove parameter
3035 `warn_if_null'. Adjust implementation and documentation.
3036 (valid_task_id, ada_get_environment_task)
3037 iterate_over_live_ada_tasks): Adjust call to ada_build_task_list.
3038 (info_tasks_command): Adjust implementation.
3039 (task_command): Likewise.
3040 * ravenscar-thread.c (ravenscar_find_new_threads): Fix call
3041 to ada_build_task_list.
3042
e225eb91
JB
30432011-09-16 Joel Brobecker <brobecker@adacore.com>
3044
3045 * ada-tasks.c (ada_tasks_check_symbol_table, task_list): Delete.
3046 (enum ada_known_tasks_kind, struct ada_tasks_inferior_data): New.
3047 (ada_tasks_inferior_data_handle): New static global.
3048 (get_ada_tasks_inferior_data): New function.
3049 (ada_get_task_number, get_task_number_from_id, valid_task_id)
3050 (ada_get_environment_task, iterate_over_live_ada_tasks)
3051 (add_ada_task, read_known_tasks_array, read_known_tasks_list):
3052 Adjust.
3053 (ada_set_current_inferior_known_tasks_addr): New function.
3054 (read_known_tasks, ada_build_task_list, short_task_info)
3055 (info_tasks, info_task, info_tasks_command, task_command_1)
3056 (task_command, ada_task_list_changed): Adjust.
3057 (ada_tasks_invalidate_inferior_data): New function.
3058 (ada_normal_stop_observer, ada_new_objfile_observer): Adjust.
3059 (_initialize_tasks): Set ada_tasks_inferior_data_handle.
3060 * ada-lang.h (struct inferior): Add declaration.
3061 (ada_task_list_changed): Update profile.
3062 * remote-wtx-pd.c: #include "inferior.h".
3063 (switch_to_pd_internal): Update call to ada_task_list_changed.
3064
6da9ca05
JB
30652011-09-16 Joel Brobecker <brobecker@adacore.com>
3066
3067 * ada-tasks.c: #include "progspace.h" and "objfiles.h".
3068 (atcb_type, atcb_common_type, atcb_ll_type, atcb_call_type)
3069 (atcb_fieldno): Delete these static globals.
3070 (struct ada_tasks_pspace_data): New struct.
3071 (ada_tasks_pspace_data_handle): New static global.
3072 (get_ada_tasks_pspace_data): New function.
3073 (ada_tasks_invalidate_pspace_data): New function.
3074 (get_tcb_types_info, ptid_from_atcb_common, read_atcb)
3075 (read_known_tasks_list, ada_new_objfile_observer): Adjust.
3076 (_initialize_tasks): Create this module's per-progspace
3077 data handle.
3078
dccd3cbd
JB
30792011-09-16 Joel Brobecker <brobecker@adacore.com>
3080
3081 * ada-tasks.c (struct atcb_fieldnos): Renames struct tcb_fieldnos.
3082
f877b031
TG
30832011-09-16 Tristan Gingold <gingold@adacore.com>
3084
3085 * fork-child.c (fork_inferior): Update comment. Use alloca
3086 instead of xmalloc for argv. Move len and shell_command
3087 declarations in the block where they are used.
3088 Only call execvp. Factorize failure code.
3089
ae0c443d
JK
30902011-09-16 Abhijit Halder <abhijit.k.halder@gmail.com>
3091
3092 Code cleanup.
3093 * parse.c (write_exp_elt): Change argument to pass a pointer of union
3094 `exp_element' instead of an element of the same and make the function
3095 static.
3096 (write_exp_elt_opcode, write_exp_elt_sym, write_exp_elt_block)
3097 (write_exp_elt_objfile, write_exp_elt_longcst, write_exp_elt_dblcst)
3098 (write_exp_elt_decfloatcst, write_exp_elt_type, write_exp_elt_intern):
3099 Change argument of `write_exp_elt' function call.
3100 Remove extra spaces from comments.
3101 * parser-defs.h (write_exp_elt): Remove prototype.
3102
5af65ec0
PK
31032011-09-15 Paul Koning <paul_koning@dell.com>
3104
3105 * python/py-cmd.c (gdbpy_string_to_argv): Decrement reference
3106 count of item appended to list.
3107 * python/py-type.c (typy_fields): Likewise.
3108
72be8ccc
PK
31092011-09-15 Paul Koning <paul_koning@dell.com>
3110
883640a8 3111 * MAINTAINERS (Write After Approval): Add myself to the list.
72be8ccc 3112
92f6badc
KP
31132011-09-15 Kevin Pouget <kevin.pouget@st.com>
3114
3115 PR threads/12628
3116 * linux-fork.c (checkpoint_command): Disallow checkpointing of
3117 processes with multiple threads.
3118 (inf_has_multiple_thread_cb): New function.
3119 (inf_has_multiple_threads): New function.
3120
0672bf41 31212011-09-15 Kevin Pouget <kevin.pouget@st.com>
2aa48337
KP
3122
3123 PR Python/12692 Add gdb.selected_inferior() to Python interface.
3124 * python/py-inferior.c (GdbMethods): New Python method definition.
3125
6839b47f
KP
31262011-09-15 Kevin Pouget <kevin.pouget@st.com>
3127
3128 Handle multiple breakpoint hits in Python interface:
3129 * python/py-bpevent.c (create_breakpoint_event_object): Rename C/Python
3130 variable to breakpoints.
3131 * python/py-stopevent.c (emit_stop_event): Return a Python tuple of
3132 bps instead of single breakpoint. Fix some space typos.
3133 * python/py-stopevent.c (create_breakpoint_event_object): Rename
3134 variable to breakpoints.
3135
672f9b60
KP
31362011-09-15 Kevin Pouget <kevin.pouget@st.com>
3137
3138 * breakpoint.c (describe_other_breakpoints): Do not write 'duplicate'
3139 note if the breakpoint is internal.
3140
43675ae4
KP
31412011-09-15 Kevin Pouget <kevin.pouget@st.com>
3142
0672bf41 3143 * MAINTAINERS (Write After Approval): Add myself to the list
43675ae4 3144
15148d6a
PA
31452011-09-14 Pedro Alves <pedro@codesourcery.com>
3146
3147 * infrun.c (prepare_for_detach, wait_for_inferior)
3148 (fetch_inferior_event): Don't flush the register cache.
3149 * remote.c (struct stop_reply) <regcache>: Add comment.
3150
d83e736b
JK
31512011-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3152
3153 Remove excessive DWARF expressions memory duplication.
3154 * dwarf2loc.c (per_cu_dwarf_call): Remove variable back_to and its use
3155 for block.data.
3156 (indirect_pieced_value): Remove variable result. Remove variable
3157 back_to and its use for baton.data.
3158 (dwarf2_compile_expr_to_ax): Remove variable back_to and its use for
3159 block.data.
3160 * dwarf2read.c (dwarf2_fetch_die_location_block): Remove xmemdup.
3161 Update the function comment.
3162
c65b3e0d
PA
31632011-09-13 Pedro Alves <pedro@codesourcery.com>
3164
3165 * inferior.h (ALL_INFERIORS): New.
3166 * linux-thread-db.c (thread_db_find_new_threads_2): Remove check
3167 for a stopped thread.
3168 (thread_db_find_new_threads): Look for threads in all inferiors.
3169
a1398e0c
PA
31702011-09-13 Pedro Alves <pedro@codesourcery.com>
3171
3172 * breakpoint.c (update_watchpoint): Handle the case of the
3173 watchpoint to update not being in the breakpoint list yet.
3174 (hw_watchpoint_use_count): New, factored out from
3175 hw_watchpoint_used_count.
3176 (hw_watchpoint_used_count): Rename to ...
3177 (hw_watchpoint_used_count_others): ... this. Add `except'
3178 parameter. Don't count resources of `except'. Use
3179 hw_watchpoint_use_count.
3180
30596231
PA
31812011-09-13 Pedro Alves <pedro@codesourcery.com>
3182
3183 * gdbthread.h (enum thread_state): Moved here.
3184 (struct thread_info): Rename `executing_' field to `executing' and
3185 `state_' to `state'.
3186 * thread.c (enum thread_state): Moved to gdbthread.h.
3187 (new_thread, add_thread_silent, delete_thread_1)
3188 (any_live_thread_of_process, thread_alive, set_running)
3189 (set_running, is_thread_state, any_running, is_executing)
3190 (set_executing, finish_thread_state, print_thread_info)
3191 (do_captured_thread_select): Adjust.
3192
bede5f5f
JK
31932011-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3194
3195 Fix compatibility with gcc < 4.3 and non-gcc compilers.
3196 * amd64-tdep.c (amd64_skip_xmm_prologue): Convert 0b constants.
3197
4801a9a3
PA
31982011-09-12 Pedro Alves <pedro@codesourcery.com>
3199 Matt Rice <ratmice@gmail.com>
3200
3201 PR gdb/13175
3202
3203 * interps.c (struct interp) <interpreter_out>: Delete field.
3204 (interp_new): Remove the data and uiout parameters and adjust.
3205 (interp_set): Only set the current_uiout from the interpreter's
3206 uiout after initializing the interpreter. Adjust call to
3207 init_proc.
3208 (interp_ui_out): Adjust to call procs->ui_out_proc.
3209 (interp_data, interp_name): New.
3210 * interps.h (interp_init_ftype): Add `self' parameter.
3211 (interp_ui_out_ftype): New typedef.
3212 (struct interp_procs) <ui_out_proc>: New method pointer.
3213 (interp_new): Remove the data and uiout parameters.
3214 (interp_data, interp_name): Declare.
3215 * tui/tui-interp.c (tui_init): Adjust prototype.
3216 (tui_ui_out): New.
3217 (_initialize_tui_interp): Install tui_ui_out. Don't instanciate
3218 tui_out here. Adjust call to interp_new.
3219 * tui/tui-io.c (tui_initialize_io): Don't set current_uiout here.
3220 * cli/cli-interp.c (cli_interpreter_init): Adjust prototype.
3221 (cli_ui_out): New.
3222 (_initialize_cli_interp): Install it. Adjust call to interp_new.
3223 * mi/mi-common.h (struct mi_interp) <uiout>: New field.
3224 * mi/mi-interp.c (mi_interpreter_init): Adjust prototype.
3225 Initialize mi->uiout depending on the mi_version as extracted from
3226 the interpreter's name.
3227 (mi_ui_out): New.
3228 (_initialize_mi_interp): Install mi_ui_out. Adjust calls to
3229 interp_new. Don't allocate the ui_out's of the interpreters here.
3230
d0afda03 32312011-09-12 Aleksandar Ristovski <aristovski@qnx.com>
59145f8c 3232
d0afda03 3233 * solib.c (solib_used): New function.
59145f8c
AR
3234 (update_solib_list, reload_shared_libraries_1): Check if objfile is used
3235 by another so_list object before freeing it.
3236
bdaf8d4a
JK
32372011-09-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3238
3239 Code cleanup.
3240 * mi/mi-cmd-stack.c (list_args_or_locals): Use enum for the parameter
3241 values.
3242
df15bd07
JK
32432011-09-09 Jan Kratochvil <jan.kratochvil@redhat.com>
3244
3245 Code cleanup.
3246 * amd64-tdep.c (amd64_skip_prologue): Move the XMM code to ...
3247 (amd64_skip_xmm_prologue): ... this new function. Describe its
3248 parameters. No longer use amd64_prologue_line_bug.
3249 * defs.h (producer_is_gcc_ge_4): New declaration.
3250 * dwarf2read.c (producer_is_gcc_ge_4): Move to utils.c.
3251 (process_full_comp_unit): Update its caller. Remove
3252 amd64_prologue_line_bug initialization.
3253 * symtab.h (struct symtab): Remove field amd64_prologue_line_bug.
3254 * utils.c (producer_is_gcc_ge_4): Moved here from dwarf2read.c.
3255
25289eb2
PA
32562011-09-09 Pedro Alves <pedro@codesourcery.com>
3257
3258 * linux-nat.h (enum resume_kind): New.
3259 (struct lwp_info) <last_resume_kind>: New field.
ddf17726
PA
3260 * linux-nat.c (linux_child_follow_fork): Set last_resume_kind to
3261 resume_stop on the new lwp.
25289eb2
PA
3262 (add_lwp): Set last_resume_kind as resume_continue by default.
3263 (lin_lwp_attach_lwp): Set last_resume_kind as resume_stop.
3264 (resume_lwp): New, factored out from resume_callback. Also check
3265 for pending status in lp->waitstatus.
3266 (resume_callback): Reimplement.
3267 (resume_clear_callback): Set last_resume_kind as resume_stop.
3268 (resume_set_callback): Set last_resume_kind as resume_continue.
3269 (linux_nat_resume, linux_handle_extended_wait): Set
3270 last_resume_kind.
3271 (running_callback): Also check lp->waitstatus for pending events.
3272 (select_singlestep_lwp_callback): Check that lp->last_resume_kind
3273 is resume_step.
3274 (stop_and_resume_callback): Don't re-resume if the core wanted the
3275 lwp stopped. Use resume_lwp instead of resume_callback. Avoid
3276 using an invalidated pointer.
3277 (linux_nat_filter_event): Don't discard SIGSTOPs as delayed
3278 SIGSTOPs if the core wanted the LWP to stop.
3279 (linux_nat_wait_1) Don't consume a pending SIGSTOP if the core
3280 wanted the lwp to stop. If the core wanted the lwp to stop, and
3281 the lwp stopped with a SIGSTOP, report a TARGET_SIGNAL_0 instead
3282 of TARGET_SIGNAL_STOP.
3283 (linux_nat_stop_lwp): Don't synchronously wait for the lwp to stop
3284 here. Instead, signal the lwp, and set the last_resume_kind to
3285 resume_stop.
3286
f687d035
PA
32872011-09-09 Pedro Alves <pedro@codesourcery.com>
3288
3289 * linux-nat.c (lin_lwp_attach_lwp): Return 1 (ignore) instead of
3290 -1 (error), if the lwp exits right after attaching.
3291
bc587a6b
DE
32922011-09-08 Doug Evans <dje@google.com>
3293
63d97a20
DE
3294 * py-cmd.c: Some minor formatting fixes.
3295 (gdbpy_parse_command_name): Rename text arg to name, make const.
3296 All callers updated.
3297 * python-internal.h (gdbpy_parse_command_name): Update.
3298
bc587a6b
DE
3299 * cli/cli-decode.c (add_cmd): Add comment.
3300
08711b9a
JK
33012011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3302
3303 PR breakpoints/12435
3304 * amd64-tdep.c (amd64_skip_prologue): New variables start_pc_sal,
3305 next_sal, buf, offset and xmmreg. Advance PC if it sees the PR.
3306 * dwarf2read.c (process_full_comp_unit): Initialize
3307 amd64_prologue_line_bug.
3308 * symtab.h (struct symtab): New field amd64_prologue_line_bug.
3309
b2e7f004
JK
33102011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3311
3312 Fix TUI screen corruption.
3313 * utils.c (fputs_maybe_filtered): Replace !input_from_terminal_p by
3314 batch_flag.
3315
8afd712c
JK
33162011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3317
3318 * findvar.c (read_var_value): Never return NULL, throw an error
3319 instead. Update the function comment. State symbol name in the error
3320 messages.
3321 * python/py-frame.c (frapy_read_var): Remove handling of NULL from
3322 read_var_value.
3323 * stack.c (print_frame_args): Likewise.
3324 * valops.c (value_of_variable): Likewise.
3325
b99b5f66
JK
33262011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3327
3328 * stack.c (print_frame_args): New variable except. Wrap
3329 read_var_value and common_val_print into TRY_CATCH.
3330
85bc8cb7
JK
33312011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3332
3333 * eval.c (evaluate_subexp_standard) <OP_THIS>: Update the value_of_this
3334 caller to value_of_this.
3335 * p-exp.y: Update the value_of_this caller to value_of_this_silent.
3336 Twice.
3337 * valops.c (value_of_this): Remove parameter complain and variable ret.
3338 Update function comment. Never return NULL by this code.
3339 (value_of_this_silent): New function.
3340 * value.h (value_of_this): Remove parameter complain.
3341 (value_of_this_silent): New declaration.
3342
ede1849f
YQ
33432011-09-07 Yao Qi <yao@codesourcery.com>
3344
3345 * gdbthread.h (struct thread_info): Remove fields
3346 `stepping_through_solib_after_catch' and
3347 `stepping_through_solib_catchpoints'.
3348 * infrun.c (init_thread_stepping_state): Update.
3349 (process_event_stop_test, currently_stepping): Update.
3350 (currently_stepping_or_nexting_callback): Update.
3351
6aa27652
YQ
33522011-09-07 Yao Qi <yao@codesourcery.com>
3353
3354 * gdbthread.h (struct thread_info): Comment on field
3355 `step_after_step_resume_breakpoint'.
3356
00db5b94
PA
33572011-09-07 Abhijit Halder <abhijit.k.halder@gmail.com>
3358
3359 * remote.c (remote_console_output): Reindent.
3360
861152be
LM
33612011-09-06 Luis Machado <lgustavo@codesourcery.com>
3362
3363 * frame.c (has_stack_frames): Check for currently selected
3364 traceframe.
3365
ab821bc6
PA
33662011-09-06 Pedro Alves <pedro@codesourcery.com>
3367
3368 * event-top.h (MAXPROMPTS, struct prompts): Delete.
3369 (set_async_annotation_level, set_async_prompt, pop_prompt)
3370 (push_prompt, new_async_prompt): Delete declarations.
3371 * top.h (get_prompt, set_prompt): Change prototype.
3372 (get_prefix, set_prefix, get_suffix, set_suffix): Delete
3373 declarations.
3374 * top.c (command_loop):
3375 (top_prompt): New global.
3376 (get_prefix, set_prefix, get_suffix, ): Delete.
3377 (get_prompt, set_prompt): Rewrite.
3378 (show_new_async_prompt): Rename to ...
3379 (show_prompt): ... this.
3380 (init_main): Adjust. Don't handle --annotate=2 here.
3381 * event-top.c (new_async_prompt): Delete.
3382 (the_prompts): Delete.
3383 (more_to_come): Make static.
3384 (display_gdb_prompt): Use top_level_prompt() to compute the top
3385 level prompt, and don't notify the before_prompt observers
3386 directly here. Always trick readline into not trying to display
3387 the prompt if sync_execution and displaying the primary prompt.
3388 If displaying a local/secondary prompt, always show it, even if
3389 sync_execution is set.
3390 (change_annotation_level): Delete.
3391 (top_level_prompt): New, based on change_annotation_level.
3392 (push_prompt, pop_prompt): Delete.
3393 (async_disable_stdin): No longer pushes prompt.
3394 (command_line_handler): No longer pushes or pops prompt. If more
3395 input is expected, call display_gdb_prompt with an explicit empty
3396 prompt.
3397 (async_stop_sig): Adjust.
3398 (set_async_annotation_level, set_async_prompt): Delete.
3399 * python/python.c (before_prompt_hook): Adjust.
3400
f1d90504
PA
34012011-09-05 Pedro Alves <pedro@codesourcery.com>
3402
3403 PR cli/13110
3404
3405 * infrun.c (fetch_inferior_event): Check if there's a selected
3406 thread before checking if the selected thread is executing.
3407
0f641c01
PA
34082011-09-05 Pedro Alves <pedro@codesourcery.com>
3409
3410 * inf-loop.c (execute_command): Don't check if the current thread
3411 if running before synchronously waiting for command completion.
3412 * infrun.c (fetch_inferior_event): Handle "set exec-done-display"
3413 here.
3414 (normal_stop): Call async_enable_stdin here.
3415 * inf-loop.c (inferior_event_handler): Don't call
3416 async_enable_stdin, nor handle "set exec-done-display" here.
3417
30368258 34182011-09-04 Joel Brobecker <brobecker@adacore.com>
3419
3420 GDB 7.3.1 released.
3421
31916278
JB
34222011-09-04 Joel Brobecker <brobecker@adacore.com>
3423
3424 * NEWS: Change `7.3' into `7.3.1' in `Changes since GDB 7.3'.
3425
e8d56f18
JB
34262011-09-04 Joel Brobecker <brobecker@adacore.com>
3427
3428 * NEWS: Add entry for OpenBSD/NetBSD build failure.
3429
5dd05d8c
JK
34302011-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3431
3432 * config/s390/s390.mh (NATDEPFILES): Add linux-procfs.o dependency.
3433
7d8e6458 34342011-09-02 Matt Rice <ratmice@gmail.com>
3435
3436 PR gdb/10720
3437 * event-top.c (cli_command_loop): Replace readline setup with
3438 direct call to display_gdb_prompt.
3439 (display_gdb_prompt): Do not call observer mechanism during
3440 synchronous execution.
3441
84636d28
PA
34422011-09-02 Pedro Alves <pedro@codesourcery.com>
3443
3444 * linux-nat.c (in_pid_list_p): New.
3445 (linux_record_stopped_pid): Delete.
3446 (lin_lwp_attach_lwp): Check if PTRACE_ATTACH failed because we're
3447 already attached to the LWP. Return an indication if so.
3448 (linux_nat_filter_event): Adjust.
3449 * linux-thread-db.c (attach_thread): Handle lin_lwp_attach_lwp
3450 returning an indication to ignore this thread.
3451
b4a14fd0
PA
34522011-09-02 Pedro Alves <pedro@codesourcery.com>
3453
3454 * top.c: Include interps.h.
3455 (execute_command): If the target can async, but the interpreter is
3456 in sync mode, synchronously wait for the command to finish before
3457 returning.
3458 (execute_command_to_string): Force the interpreter to sync mode.
3459 * infrun.c: Include interps.h.
3460 (fetch_inferior_event): Don't restore the prompt yet if the
3461 interpreter is in sync mode.
3462 * interps.c (interpreter_async): New global.
3463 * interps.h (interpreter_async): Declare.
3464 * inf-loop.c: Include interps.h.
3465 (inferior_event_handler): Don't print the language change or run
3466 breakpoint commands yet if the interpreter in is sync mode.
3467 * main.c (captured_command_loop): Flip the interpreter to async
3468 mode.
3469 * cli/cli-script.c: Include interps.h.
3470 (execute_user_command, while_command, if_command): Force the
3471 interpreter to sync mode.
3472 * python/python.c: Include interps.h.
3473 (python_command, execute_gdb_command): Force the interpreter to
3474 sync mode.
3475
c709acd1
PA
34762011-09-02 Pedro Alves <pedro@codesourcery.com>
3477
3478 * value.c (show_convenience): Catch errors thrown while printing
3479 each internal variable.
3480 * infrun.c (validate_siginfo_access): New function.
3481 (siginfo_value_read, siginfo_value_write): Call it.
3482
9655e943
JK
34832011-09-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3484
3485 Revert:
3486 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
3487 * dwarf2read.c (new_symbol): Handle DW_AT_variable_parameter
3488 attribute.
3489
cb457ae2
YQ
34902011-08-29 Yao Qi <yao@codesourcery.com>
3491
3492 * solib-dsbt.c (bfd_lookup_symbol): Removed.
3493 (cmp_name): New.
3494 (enable_break2): Update caller.
3495 * solib-frv.c (bfd_lookup_symbol): Removed.
3496 (cmp_name): New.
3497 (enable_break2): Update caller.
3498 * solib-pa64.c (bfd_lookup_symbol): Removed.
3499 (cmp_name): New.
3500 * solib-svr4.c (bfd_lookup_symbol): Removed.
3501 (cmp_name_and_sec_flags): New.
3502 (enable_break): Update caller.
3503 * solib.c (gdb_bfd_lookup_symbol_from_symtab): New.
3504 (gdb_bfd_lookup_symbol_from_dyn_symtab): New.
3505 (gdb_bfd_lookup_symbol): New.
3506 * solib.h: Functions declarations.
3507
83d1a36a
YQ
35082011-08-29 Yao Qi <yao@codesourcery.com>
3509
3510 * Makefile.in (ALL_TARGET_OBS): Add tic6x-tdep.o tic6x-linux-tdep.o
3511 and solib-dsbt.o.
3512
c04b3e8f
JK
35132011-08-29 Jan Kratochvil <jan.kratochvil@redhat.com>
3514
3515 Fix TUI stepi on code without symbols.
3516 * tui/tui-stack.c (tui_show_frame_info): Remove error, set LOW for
3517 current PC instead.
3518
cb0fd152
JK
35192011-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3520
3521 Code cleanup.
3522 * mi/mi-cmd-stack.c (list_args_or_locals): Remove stb initialization
3523 and the static keyword.
3524 * mi/mi-cmd-target.c (mi_cmd_target_file_get, mi_cmd_target_file_put):
3525 Make prefix an array.
3526 * mi/mi-cmd-target.c (mi_cmd_target_file_delete): Likewise.
3527 * mi/mi-main.c (get_register): Remove stb initialization and the static
3528 keyword.
3529
91174723
JK
35302011-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3531
3532 Code cleanup - make mi_opt const.
3533 * mi/mi-cmd-break.c (mi_cmd_break_insert, mi_cmd_break_watch): Make
3534 opts const.
3535 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
3536 * mi/mi-cmd-env.c (mi_cmd_env_path): Likewise.
3537 (mi_cmd_env_dir): Likewise.
3538 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Likewise.
3539 (mi_cmd_target_file_put): Likewise.
3540 * mi/mi-cmd-target.c (mi_cmd_target_file_delete): Likewise.
3541 * mi/mi-cmd-var.c (mi_cmd_var_evaluate_expression): Likewise.
3542 * mi/mi-getopt.c (mi_getopt): Make opts and opt const.
3543 (mi_valid_noargs): Make opts const.
3544 * mi/mi-getopt.h (mi_getopt): Make opts and opt const.
3545 * mi/mi-main.c (mi_cmd_list_thread_groups): Make opts const.
3546 (mi_cmd_data_read_memory): Likewise.
3547 (mi_cmd_data_read_memory_bytes): Likewise.
3548 (mi_cmd_data_write_memory): Likewise.
3549
5068b8e8 35502011-08-26 Matt Rice <ratmice@gmail.com>
3551
3552 * solib-sunos.c (allocate_rt_common_objfile): Add missing arguments to
3553 bcache_xmalloc, replace bcache_xmalloc with call to
3554 psymbol_bcache_init for psymbol_cache.
3555 * symfile.c (reread_symbols): Remove extra calls to bcache_xmalloc.
3556
a4f2ce05
JK
35572011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
3558
3559 * inf-loop.c (inferior_event_handler): Add exception_print in
3560 INF_EXEC_COMPLETE.
3561
353d1d73
JK
35622011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
3563
3564 * breakpoint.c (bpstat_do_actions): New variable cleanup_if_error, call
3565 make_bpstat_clear_actions_cleanup and discard_cleanups for it.
3566 * defs.h (make_bpstat_clear_actions_cleanup): New declaration.
3567 * exceptions.c (throw_exception): Remove the bpstat_clear_actions call.
3568 * inf-loop.c (inferior_event_handler): New variable cleanup_if_error,
3569 call make_bpstat_clear_actions_cleanup and discard_cleanups for it.
3570 Call bpstat_clear_actions for failed fetch_inferior_event_wrapper.
3571 * infrun.c (fetch_inferior_event): Call
3572 make_bpstat_clear_actions_cleanup.
3573 * top.c (execute_command): New variable cleanup_if_error, call
3574 make_bpstat_clear_actions_cleanup and discard_cleanups for it.
3575 * utils.c (do_bpstat_clear_actions_cleanup)
3576 (make_bpstat_clear_actions_cleanup): New functions.
3577
3ced3da4
PA
35782011-08-26 Pedro Alves <pedro@codesourcery.com>
3579
3580 * linux-nat.c (linux_child_follow_fork): Don't set lp->resumed on
3581 either the parent or the child forks. Rename a couple locals.
3582
a9f4bb21
PA
35832011-08-26 Pedro Alves <pedro@codesourcery.com>
3584
3585 * linux-nat.c (wait_lwp): Avoid assuming errno is preserved by a
3586 library call. Avoid reading the `status' local if all waitpid
3587 calls failed.
3588
e5798bef
PA
35892011-08-26 Pedro Alves <pedro@codesourcery.com>
3590
3591 * common/linux-osdata.c (get_cores_used_by_process): Don't assume
3592 opening /proc/PID/task always succeeds.
3593
edb2aadf
AR
35942011-08-26 Aleksandar Ristovski <aristovski@qnx.com>
3595
3596 * linespec.c (symtab_from_filename): Check for the end of string.
3597
0d932b2f
MK
35982011-08-26 Marc Khouzam <marc.khouzam@ericsson.com>
3599
3600 PR mi/11912
3601 * varobj.c (cplus_describe_child): Add the keyword
3602 'class' to the output of the method when dealing
3603 with a cast to a base class.
3604
e93ca019
JK
36052011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
3606
3607 No functionality change.
3608 * breakpoint.c (bpstat_clear_actions): Remove the BS parameter, make
3609 function comment a reference, new variables tp and bs, move here code
3610 from throw_exception.
3611 * breakpoint.h (bpstat_clear_actions): Remove the BS parameter,
3612 describe it in the comment.
3613 * exceptions.c (throw_exception): Remove variable tp, move the code for
3614 bpstat_clear_actions to bpstat_clear_actions.
3615
13da1c97
LM
36162011-08-24 Luis Machado <lgustavo@codesourcery.com>
3617
3618 * linux-nat.h (linux_proc_get_tgid): Remove declaration.
3619 * linux-nat.c: Include linux-procfs.h.
3620 (linux_proc_get_tgid): Move to ...
3621 * common/linux-procfs.c: ... here. New file.
3622 * common/linux-procfs.h: New file.
3623 * linux-thread-db.c: Include linux-procfs.h.
3624 * Makefile.in: Update dependencies.
3625 * config/alpha/alpha-linux.mh: Add linux-procfs.o dependency.
3626 * config/arm/linux.mh: Likewise.
3627 * config/i386/linux.mh: Likewise.
3628 * config/i386/linux64.mh: Likewise.
3629 * config/ia64/linux.mh: Likewise.
3630 * config/m32r/linux.mh: Likewise.
3631 * config/m68k/linux.mh: Likewise.
3632 * config/mips/linux.mh: Likewise.
3633 * config/pa/linux.mh: Likewise.
3634 * config/pa/linux.mh: Likewise.
3635 * config/powerpc/linux.mh: Likewise.
3636 * config/powerpc/ppc64-linux.mh: Likewise.
3637 * config/powerpc/spu-linux.mh: Likewise.
3638 * config/sparc/linux.mh: Likewise.
3639 * config/sparc/linux64.mh: Likewise.
3640 * config/xtensa/linux.mh: Likewise.
3641
4e5c165d
HZ
36422011-08-24 Hui Zhu <teawater@gmail.com>
3643
3644 * tracepoint.c (cond_string_is_same): New function.
3645 (find_matching_tracepoint): Add condition check
3646 by cond_string_is_same.
3647
6e2f5b22
JK
36482011-08-23 Josh Matthews <josh@joshmatthews.net>
3649
3650 Fix build error in Darwin port.
3651 * darwin-nat-info.c (darwin_debug_regions_recurse): New variable uiout.
3652
abf85f46
JK
36532011-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3654
3655 Code cleanup.
3656 * breakpoint.c (bpstat_clear_actions): Remove clearing of commands_left.
3657 (command_line_is_silent): New function.
3658 (bpstat_do_actions_1): No longer use commands_left, use
3659 command_line_is_silent for commands.
3660 (bpstat_alloc): Remove clearing of commands_left.
3661 (bpstat_stop_status): Remove initialization of commands_left, use
3662 command_line_is_silent.
3663 * breakpoint.h (struct bpstats): Remove commands_left.
3664
3a93a0c2
KS
36652011-08-18 Keith Seitz <keiths@redhat.com>
3666
3667 PR c++/12266
3668 * cp-name-parser.y (struct demangle_info): Remove unused
3669 member PREV.
3670 (d_grab): Likewise.
3671 (allocate_info): Change return type to struct demangle_info *.
3672 Always allocate a new demangle_info.
3673 Remove unused PREV pointer.
3674 (cp_new_demangle_parse_info): New function.
3675 (cp_demangled_name_parse_free): New function.
3676 (do_demangled_name_parse_free_cleanup): New function.
3677 (make_cleanup_cp_demangled_name_parse_free): New function.
3678 (cp_demangled_name_to_comp): Change return type to
3679 struct demangle_parse_info *.
3680 Allocate a new storage for each call.
3681 (main): Update usage for cp_demangled_name_to_comp
3682 API change.
3683 * cp-support.h (struct demangle_parse_info): New structure.
3684 (cp_demangled_name_to_comp): Update API change for
3685 return type.
3686 (cp_new_demangle_parse_info): Declare.
3687 (make_cleanup_cp_demangled_name_parse_free): New declaration.
3688 (cp_demangled_name_parse_free): Declare.
3689 * cp-support.c (cp_canonicalize_string): Update API
3690 change for cp_demangled_name_to_comp.
3691 (mangled_name_to_comp): Likewise.
3692 Return struct demangle_parse_info, too.
3693 (cp_class_name_from_physname): Update mangled_name_to_comp
3694 API change.
3695 (method_name_from_physname): Likewise.
3696 (cp_func_name): Update API change for cp_demangled_name_to_comp.
3697 (cp_remove_params): Likewise.
3698 * python/py-type.c (typy_legacy_template_argument): Likewise.
3699
3700 * cp-support.h (cp_canonicalize_string_no_typedefs): Declare.
3701 (cp_merge_demangle_parse_infos): Declare.
3702 * cp-support.c (ignore_typedefs): New file global.
3703 (copy_string_to_obstack): New function.
3704 (inspect_type): New function.
3705 (replace_typedefs): New function.
3706 (replace_typedefs_qualified_name): New function.
3707 (cp_canonicalize_string_no_typedefs): New function.
3708 * cp-name-parser.y (cp_merge_demangle_parse_infos): New function.
3709 (cp_new_demangle__parse_info): Allocate and initialize the obstack.
3710 * linespec.c (find_methods): Use cp_canonicalize_string_no_typedefs
3711 instead of cp_canonicalize_string.
3712 (find_method): Likewise.
3713 (decode_compound): Before looking up the name, call
3714 cp_canonicalize_string_no_typedefs.
3715 (decode_variable): Likewise.
3716
fa3a4f15
PM
37172011-08-17 Phil Muldoon <pmuldoon@redhat.com>
3718 Tom Tromey <tromey@redhat.com>
3719 Matt Rice <ratmice@gmail.com>
3720
3721 * python/lib/gdb/prompt.py: New file.
3722 * python/lib/gdb/command/prompt.py: New file.
3723 * NEWS: Document set extended-prompt and gdb.prompt library
3724
85661b1e
YQ
37252011-08-16 Yao Qi <yao@codesourcery.com>
3726
3727 * tic6x-linux-tdep.c: Move const arrays definition from here...
3728 * tic6x-tdep.c: to here ...
3729
11315641
YQ
37302011-08-14 Yao Qi <yao@codesourcery.com>
3731
3732 * NEWS: New port to Texas Instruments TMS320C6x.
3733
8cd64e00
YQ
37342011-08-14 Andrew Jenner <andrew@codesourcery.com>
3735 Bernd Schmidt <bernds@codesourcery.com>
3736 Yao Qi <yao@codesourcery.com>
3737
3738 * configure.tgt: Handle tic6x-*-*linux and tic6x-*-*.
3739 * solib-dsbt.c: New file. Support DSBT shared object.
3740 * tic6x-linux-tdep.c: New file.
3741 * tic6x-tdep.c: New file.
3742 * tic6x-tdep.h: New file.
3743
78d85199
YQ
37442011-08-14 Andrew Stubbs <ams@codesourcery.com>
3745 Yao Qi <yao@codesourcery.com>
3746
3747 * remote.c (PACKET_qXfer_fdpic): New enum value.
3748 (remote_protocol_features): Add qXfer:fdpic:read packet.
3749 (remote_xfer_partial): Support TARGET_OBJECT_FDPIC.
3750 (_initialize_remote): Add set/show remote read-fdpic-loadmap command.
3751 * target.h (enum target_object): Add TARGET_OBJECT_FDPIC.
3752
224bbe49
YQ
37532011-08-14 Yao Qi <yao@codesourcery.com>
3754
3755 Target description for tic6x.
3756 * features/Makefile (WHICH): Add tic6x-c64xp tic6x-c64x tic6x-c62x
3757 tic6x-c64xp-linux tic6x-c64x-linux and tic6x-c62x-linux.
3758 * features/tic6x-c6xp.xml, features/tic6x-core.xml: New.
3759 * features/tic6x-gp.xml, features/tic6x-c62x.xml: New.
3760 * features/tic6x-c64x.xml, features/tic6x-c64xp.xml: New.
3761 * features/tic6x-c62x-linux.xml, features/tic6x-c64x-linux.xml: New.
3762 * features/tic6x-c64xp-linux.xml: New.
3763 * features/tic6x-c64xp.c, features/tic6x-c64x.c: Generated.
3764 * features/tic6x-c62x.c, features/tic6x-c64xp-linux.c: Generated.
3765 * features/tic6x-c64x-linux.c, features/tic6x-c62x-linux.c: Generated.
3766 * regformats/tic6x-c62x.dat, regformats/tic6x-c64x.dat: Generated.
f040079f
HZ
3767 * regformats/tic6x-c64xp.dat,
3768 regformats/tic6x-c62x-linux.dat: Generated.
3769 * regformats/tic6x-c64x-linux.dat,
3770 regformats/tic6x-c64xp-linux.dat: Generated.
224bbe49
YQ
3771 * config/djgpp/fnchange.lst: Add features/tic6x-*.xml and
3772 features/tic6x-*.c files.
3773 Add regformats/tic6x-*.dat files.
3774
457e09f0
DE
37752011-08-12 Doug Evans <dje@google.com>
3776
3777 * NEWS: Mention new "type" attribute of python gdb.Symbol objects.
3778 * python/py-symbol.c (sympy_get_type): New function.
3779 (symbol_object_getset): Add "type".
3780
d20c1c3f
PA
37812011-08-12 Pedro Alves <pedro@codesourcery.com>
3782
3783 PR tui/13073
3784
3785 * tui/tui-regs.c (tui_show_register_group): Skip registers with an
3786 empty name.
3787 (tui_show_register_group): Don't store a byte buffer in the data
3788 element's value.
3789 (tui_register_format): Skip registers with an empty name.
3790 (tui_get_register): Store a struct value in the data element's
3791 value field instead of a byte buffer holding the raw register
3792 contents. Account for optimized-out and unavailable registers
3793 when comparing register contents.
3794
9d8fa392
PA
37952011-08-09 Pedro Alves <pedro@codesourcery.com>
3796
3797 * printcmd.c (current_display_number): Update comment.
3798 (disable_current_display_cleanup): Delete.
3799 (do_one_display): Use make_cleanup_restore_integer. Gracefully
3800 catch errors thrown while evaluating and printing the display.
3801
401a70b8
TT
38022011-08-09 Tom Tromey <tromey@redhat.com>
3803
3804 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Fix typo.
3805
7f86f058
PA
38062011-08-09 Pedro Alves <pedro@codesourcery.com>
3807
94b71cca 3808 * elfread.c (elf_symtab_read): Rework comments.
7f86f058
PA
3809 * maint.c (maintenance_command): Ditto.
3810 * somread.c (som_symtab_read): Ditto.
3811 * solib.c (solib_find, solib_map_sections, update_solib_list)
3812 (solib_add, info_sharedlibrary_command, solib_name_from_address)
3813 (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
94b71cca 3814 (sharedlibrary_command, no_shared_libraries): Ditto.
7f86f058
PA
3815 * solib-irix.c (locate_base, disable_break, enable_break)
3816 (irix_solib_create_inferior_hook, irix_solib_create_inferior_hook)
3817 (irix_current_sos, irix_open_symbol_file_object)
3818 (irix_special_symbol_handling): Ditto.
3819 * solib-sunos.c (locate_base, first_link_map_member)
3820 (sunos_current_sos, disable_break, enable_break)
3821 (sunos_special_symbol_handling, sunos_solib_create_inferior_hook):
3822 Ditto.
3823 * solib-svr4.c (bfd_lookup_symbol, elf_locate_base, locate_base)
3824 (open_symbol_file_object, svr4_current_sos, enable_break)
3825 (svr4_special_symbol_handling, svr4_solib_create_inferior_hook):
3826 Ditto.
3827 * solib-frv.c (bfd_lookup_symbol, open_symbol_file_object)
3828 (frv_current_sos, enable_break, frv_special_symbol_handling)
3829 (frv_solib_create_inferior_hook): Ditto.
3830 * solist.h (struct target_so_ops): Extend the comments of the
3831 special_symbol_handling, current_sos and open_symbol_file_object
3832 methods.
3833
5e239b84
PM
38342011-08-09 Phil Muldoon <pmuldoon@redhat.com>
3835
3836 * python/lib/gdb/__init__.py: Auto-load files in command and
3837 function directories.
3838 * python/python.c (finish_python_initialization): Use
3839 os.path.join.
3840 * python/lib/gdb/command/pretty_printers.py: Self register
3841 command.
3842 * NEWS: Document auto-loading.
3843
b6cede78
JK
38442011-08-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3845
3846 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_STACK>
3847 (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_LITERAL>: New variable
3848 objfile_gdbarch. Fix BFD_ENDIAN_BIG case.
3849
29d0bb3d
TT
38502011-08-08 Tom Tromey <tromey@redhat.com>
3851
3852 * breakpoint.c (clean_up_filters): Remove.
3853 (catch_syscall_split_args): Use VEC_cleanup.
3854
2f7fb8e4
JK
38552011-08-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3856
3857 * cp-name-parser.y (xfree): Wrap the name free by CONCAT2.
3858 (main): Uncomment "Demangling error\n".
3859
d6c10e95
PP
38602011-08-05 Paul Pluzhnikov <ppluzhnikov@google.com>
3861
3862 * solib-target.c (segment_attributes): Make them static.
3863 (section_attributes, library_children, library_attributes): Likewise.
3864 (library_list_children, library_list_attributes): Likesise.
3865 (library_list_elements): Likewise.
3866
af6e93b2
PA
38672011-08-05 Pedro Alves <pedro@codesourcery.com>
3868
3869 * exceptions.c (throw_exception): Don't disable the current
3870 display.
3871 * printcmd.c (disable_current_display_cleanup): New function.
3872 (do_one_display): Install a cleanup to disable the current display
3873 if doing the display throws.
3874
6a1b1664
EZ
38752011-08-05 Eli Zaretskii <eliz@gnu.org>
3876
3877 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Move the
3878 initialization of the tp_new member to the corresponding
3879 gdbpy_initialize_* function.
3880 * python/py-cmd.c (gdbpy_initialize_commands): Likewise.
3881 * python/py-frame.c (gdbpy_initialize_frames): Likewise.
3882 * python/py-function.c (gdbpy_initialize_functions): Likewise.
3883 * python/py-inferior.c (gdbpy_initialize_inferior): Likewise.
3884 * python/py-param.c (gdbpy_initialize_parameters): Likewise.
3885
31a0ae49
JK
38862011-08-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3887
3888 * spu-tdep.c (info_spu_event_command, info_spu_signal_command)
3889 (info_spu_mailbox_list, info_spu_mailbox_command, info_spu_dma_cmdlist)
3890 (info_spu_dma_command, info_spu_proxydma_command): Rename uiout
3891 references to current_uiout.
3892
e0dd0826
PA
38932011-08-04 Pedro Alves <pedro@codesourcery.com>
3894
3895 * event-loop.c (gdb_do_one_event): Remove `data' parameter.
3896 (start_event_loop): Use TRY_CATCH instead of catch_errors.
3897 * event-loop.h (gdb_do_one_event): Remove `data' parameter.
3898 * top.c (gdb_readline_wrapper): Adjust.
3899 * tui/tui-interp.c (tui_command_loop):
3900 (_initialize_tui_interp): Don't install it.
3901
79a45e25
PA
39022011-08-04 Pedro Alves <pedro@codesourcery.com>
3903
3904 * ui-out.h (uiout): Rename to ...
3905 (current_uiout): ... this.
3906 * ui-out.c (uiout): Rename to ...
3907 (current_uiout): ... this.
3908 * ada-lang.c (print_it_exception, print_one_exception)
3909 (print_mention_exception): Adjust.
3910 * breakpoint.c (watchpoint_check): Adjust.
3911 (print_breakpoint_location, print_one_breakpoint, breakpoint_1)
3912 (default_collect_info, watchpoints_info, print_one_catch_fork)
3913 (print_one_catch_vfork, print_one_catch_syscall)
3914 (print_one_catch_exec, mention, print_it_ranged_breakpoint)
3915 (print_one_ranged_breakpoint, print_mention_ranged_breakpoint)
3916 (print_it_watchpoint, print_mention_watchpoint)
3917 (print_it_masked_watchpoint, print_mention_masked_watchpoint)
3918 (print_it_exception_catchpoint, print_one_exception_catchpoint)
3919 (print_mention_exception_catchpoint, say_where, bkpt_print_it)
3920 (bkpt_print_mention, momentary_bkpt_print_it)
3921 (tracepoint_print_mention, update_static_tracepoint)
3922 (tracepoints_info, save_breakpoints): Adjust.
3923 * cli-out.c (field_separator): Adjust.
3924 * cp-abi.c (list_cp_abis, show_cp_abi_cmd): Adjust.
3925 * exceptions.c (catch_exceptions_with_msg, catch_errors): Adjust.
3926 * frame.c (get_current_frame): Adjust.
3927 * infcmd.c (run_command_1, print_return_value): Adjust.
3928 * inferior.c (inferior_command, info_inferiors_command): Adjust.
3929 * infrun.c (print_end_stepping_range_reason): Adjust.
3930 (print_signal_exited_reason, print_exited_reason): Adjust.
3931 (print_signal_received_reason, print_no_history_reason): Adjust.
3932 * interps.c (interp_set): Adjust.
3933 * osdata.c (info_osdata_command): Adjust.
3934 * progspace.c (maintenance_info_program_spaces_command): Adjust.
3935 * remote-fileio.c (remote_fileio_request): Adjust.
3936 * remote.c (show_remote_cmd): Adjust.
3937 * solib.c (info_sharedlibrary_command): Adjust.
3938 * source.c (print_source_lines_base): Adjust.
3939 * stack.c (print_stack_frame): Adjust.
3940 (do_gdb_disassembly, print_frame_info, print_frame): Adjust.
3941 * symfile-mem.c (add_vsyscall_page): Adjust.
3942 * symfile.c (load_progress, generic_load)
3943 (print_transfer_performance): Adjust.
3944 * thread.c (info_threads_command, restore_selected_frame)
3945 (thread_command): Adjust.
3946 * top.c (make_cleanup_restore_ui_file): Adjust.
3947 * tracepoint.c (tvariables_info_1, trace_status_mi, tfind_1)
3948 (print_one_static_tracepoint_marker): Adjust.
3949 * cli/cli-cmds.c (print_disassembly): Adjust.
3950 * cli/cli-decode.c (print_doc_line): Adjust.
3951 * cli/cli-interp.c (safe_execute_command): Adjust.
3952 * cli/cli-logging.c (set_logging_redirect, pop_output_files)
3953 (handle_redirections): Adjust.
3954 * cli/cli-script.c (show_user_1): Adjust.
3955 * cli/cli-setshow.c (do_setshow_command, cmd_show_list): Adjust.
3956 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
3957 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Adjust.
3958 * mi/mi-cmd-env.c (mi_cmd_env_pwd, mi_cmd_env_path)
3959 (mi_cmd_env_dir): Adjust.
3960 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
3961 (print_partial_file_name, mi_cmd_file_list_exec_source_files): Adjust.
3962 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
3963 (mi_cmd_stack_info_depth, mi_cmd_stack_list_args)
3964 (list_args_or_locals): Adjust.
3965 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
3966 (mi_cmd_var_delete, mi_cmd_var_set_format, mi_cmd_var_set_frozen)
3967 (mi_cmd_var_show_format, mi_cmd_var_info_num_children)
3968 (mi_cmd_var_list_children, mi_cmd_var_info_type)
3969 (mi_cmd_var_info_path_expression, mi_cmd_var_info_expression)
3970 (mi_cmd_var_show_attributes, mi_cmd_var_evaluate_expression)
3971 (mi_cmd_var_assign, mi_cmd_var_update, varobj_update_one): Adjust.
3972 * mi/mi-interp.c (mi_on_normal_stop): Adjust.
3973 * mi/mi-main.c (mi_cmd_gdb_exit, mi_cmd_thread_select)
3974 (mi_cmd_thread_list_ids, mi_cmd_thread_info, print_one_inferior)
3975 (list_available_thread_groups, mi_cmd_list_thread_groups)
3976 (mi_cmd_data_list_register_names)
3977 (mi_cmd_data_list_changed_registers)
3978 (mi_cmd_data_list_register_values, get_register)
3979 (mi_cmd_data_evaluate_expression, mi_cmd_data_read_memory)
3980 (mi_cmd_data_read_memory_bytes, mi_cmd_list_features)
3981 (mi_cmd_list_target_features, mi_cmd_add_inferior)
3982 (mi_execute_command, mi_load_progress): Adjust.
3983 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Adjust.
3984 * python/py-auto-load.c (print_script, info_auto_load_scripts):
3985 Adjust.
3986 * python/py-breakpoint.c (bppy_get_commands): Adjust.
3987 * tui/tui-interp.c (tui_command_loop): Adjust.
3988 * tui/tui-io.c (tui_setup_io, tui_initialize_io): Adjust.
3989
f9679975
PA
39902011-08-04 Pedro Alves <pedro@codesourcery.com>
3991
3992 * exceptions.c (struct catcher): Remove saved_uiout field.
3993 (exceptions_state_mc_init): Remove the `func_uiout' parameter, and
3994 no longer save/resvore the global ui_out builder.
3995 (catch_exceptions_with_msg): Save/override/restore the global
3996 ui_out builder manually instead of relying on TRY_CATCH to do it.
3997 (catch_errors): Save/restore the global ui_out builder manually
3998 instead of relying on TRY_CATCH to do it.
3999 * exceptions.h (exceptions_state_mc_init): Remove the `func_uiout'
4000 parameter.
4001 (TRY_CATCH): Adjust.
4002 * cli/cli-interp.c (safe_execute_command): Save/override/restore
4003 the global ui_out builder manually instead of relying on TRY_CATCH
4004 to do it.
4005
934709f0
PW
40062011-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4007
4008 * breakpoint.c (update_global_location_list): Ensure
4009 invariant 'first loc marked not duplicated and inserted,
4010 following locs marked duplicated/not inserted' is respected
4011 for multiple locations at the same address.
4012 (unduplicated_should_be_inserted) New function.
4013 (swap_insertion) New function.
4014
2421fe6f
JK
40152011-08-03 Jan Kratochvil <jan.kratochvil@redhat.com>
4016
4017 * stack.c (print_frame_arguments_choices): Comment typo fix.
4018
3fbb6ffa
TJB
40192011-08-01 Thiago Jung Bauermann <bauerman@br.ibm.com>
4020
4021 Revert:
4022 2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
4023 * breakpoint.c (insert_bp_location): Remove disabled_breaks
4024 argument. Update callers.
4025
fbe12357
PP
40262011-08-01 Paul Pluzhnikov <ppluzhnikov@google.com>
4027
4028 PR gdb/13045
4029 * doublest.c (convert_doublest_to_floatformat): Pass correct
4030 mantissa length to put_field.
4031
b1d288d3
JK
40322011-08-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4033
4034 * stack.c (do_gdb_disassembly): Use RETURN_MASK_ERROR, simplify the
4035 exception_print code path.
4036 (backtrace_command): Remove variable e. Protect arg by make_cleanup in
4037 advance. Simplify memset. Remove TRY_CATCH. Remove explicit xfree.
4038 (backtrace_full_command): Remove variable e. Remove TRY_CATCH.
4039
311b5970
JK
40402011-08-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4041
4042 Code cleanup.
4043 * stack.c (struct print_stack_frame_args, print_stack_frame_stub):
4044 Remove, merge them into ...
4045 (print_stack_frame): ... here with a TRY_CATCH. New variable e, remove
4046 variable args and its initialization.
4047 (struct print_args_args, print_args_stub): Remove, merge them into
4048 print_frame.
4049 (struct gdb_disassembly_stub_args, gdb_disassembly_stub): Remove, merge
4050 them into ...
4051 (do_gdb_disassembly): ... here. Remove variable args and its
4052 initialization.
4053 (print_frame): Remove variable args and its initialization, new
4054 variable gdbarch and numargs (from print_args_stub), inline here
4055 print_args_stub with a TRY_CATCH.
4056 (struct backtrace_command_args, backtrace_command_stub): Remove, merge
4057 them into ...
4058 (backtrace_command, backtrace_full_command): ... here with a TRY_CATCH.
fbe12357 4059 New variable e, remove variable btargs and its initialization.
311b5970 4060
484a26a8
TG
40612011-08-01 Tristan Gingold <gingold@adacore.com>
4062
4063 * darwin-nat.c (darwin_decode_exception_message): Adjust assertion.
4064
c30eee59
TJB
40652011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
4066
4067 * breakpoint.c (insert_bp_location): Document return value.
4068 (insert_breakpoint_locations): Fix documentation.
4069 (remove_breakpoints): Add documentation.
4070
f116073b
TJB
40712011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
4072
4073 * breakpoint.c (insert_bp_location): Remove disabled_breaks
4074 argument. Update callers.
4075
65aa373f
JK
40762011-07-30 Jan Kratochvil <jan.kratochvil@redhat.com>
4077
4078 * stack.c (print_frame_info): Comment typo fix.
4079
a50242fb
SA
40802011-07-29 Sterling Augustine <saugustine@google.com>
4081
4082 * MAINTAINERS (Write After Approval): Add myself to the list.
4083
267f6504
TT
40842011-07-29 Tom Tromey <tromey@redhat.com>
4085
4086 * solib-target.c: Use DEF_VEC_I, not DEF_VEC_O.
4087 (library_list_start_segment): Update.
4088 (library_list_start_section): Update.
4089
00bd41d6
PM
40902011-07-28 Phil Muldoon <pmuldoon@redhat.com>
4091
4092 * varobj.c (value_get_print_value): Move hint check later into the
4093 function. Comment function. Free thevalue before reusing it.
4094
18a46dbe
JK
40952011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
4096 Pedro Alves <pedro@codesourcery.com>
4097
4098 * eval.c (evaluate_subexp_standard): Remove not_lval from all calls of
4099 value_one.
4100 * valops.c (value_one): Remove parameter lv. Do not pass it to itself.
4101 Assert the result kind.
4102 * value.h (value_one): Remove parameter lv.
4103
bb7da2bf
JK
41042011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
4105
4106 Fix crash on lval_computed values.
4107 * valops.c (value_zero): Use not_lval for lval_computed.
4108
2d5213f8
TT
41092011-07-27 Tom Tromey <tromey@redhat.com>
4110
4111 * Makefile.in (HFILES_NO_SRCDIR): Add 'common' prefix for
4112 gdb_assert.h, gdb_locale.h, gdb_dirent.h.
4113
11081198
JK
41142011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
4115
4116 * typeprint.c (_initialize_typeprint): Extend the help of "whatis" and
4117 "ptype" by their typedefs difference.
4118
3c6e0cb3
JK
41192011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
4120
4121 * dwarf2expr.c (ctx_no_read_reg): New function.
4122 * dwarf2expr.h (ctx_no_read_reg): New declaration.
4123 * dwarf2read.c (read_2_signed_bytes, read_4_signed_bytes): Remove.
4124 (decode_locdesc_read_mem, decode_locdesc_ctx_funcs): New.
4125 (decode_locdesc): Replace by a caller of dwarf_expr_eval.
4126
523f3620
JK
41272011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
4128
4129 * dwarf2-frame.c (no_get_frame_base, no_get_frame_cfa, no_get_frame_pc)
4130 (no_get_tls_address, no_dwarf_call, no_base_type): Move to the other
4131 file.
4132 (dwarf2_frame_ctx_funcs): Reference the renamed functions.
4133 * dwarf2expr.c (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
4134 (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
4135 (ctx_no_get_base_type): Move the functions here.
4136 * dwarf2expr.h (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
4137 (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
4138 (ctx_no_get_base_type): New declarations.
4139
24d3216f
TT
41402011-07-27 Tom Tromey <tromey@redhat.com>
4141
4142 * xcoffread.c (dwarf2_xcoff_names): Add 'macro' and 'sentinel'
4143 entries.
4144 * symfile.h (struct dwarf2_debug_sections) <sentinel>: New field.
4145 * dwarf2read.c (dwarf2_elf_names): Add sentinel entry.
4146
5005c8a9
PP
41472011-07-26 Sterling Augustine <saugustine@google.com>
4148
4149 * cli/cli-dump.c (dump_binary_file): Change parameter type to
4150 ULONGEST.
4151 (dump_bfd_file): Likewise.
4152
480a3f21
PW
41532011-07-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4154
4155 * remote.c (remote_region_ok_for_hw_watchpoint): New function.
4156 (remote_hw_watchpoint_length_limit): New variable.
4157 (_initialize_remote) add set,show cmds for this new variable.
4158 * gdb.texinfo: document these new commands.
4159 * NEWS: Mention these new commands.
4160
efa80663
PA
41612011-07-26 Pedro Alves <pedro@codesourcery.com>
4162
4163 * breakpoint.c (works_in_software_mode_watchpoint): Also return
4164 true for software watchpoints.
4165
dbdaa232 41662011-07-26 Joel Brobecker <brobecker@adacore.com>
4167
4168 GDB 7.3 released.
4169
cf2c3c16
TT
41702011-07-26 Tom Tromey <tromey@redhat.com>
4171
4172 * symfile.h (struct dwarf2_debug_sections) <macro>: New field.
4173 * dwarf2read.c (read_indirect_string_at_offset): New function.
4174 (read_indirect_string): Use it.
4175 (dwarf_decode_macro_bytes): New function, taken from
4176 dwarf_decode_macros. Handle DW_MACRO_GNU_*.
4177 (dwarf_decode_macros): Use it. handle DW_MACRO_GNU_*.
4178 (dwarf_parse_macro_header, skip_form_bytes, skip_unknown_opcode):
4179 New functions.
4180 (struct dwarf2_per_objfile) <macro>: New field.
4181 (dwarf2_elf_names): Add .debug_macro.
4182 (dwarf2_macros_too_long_complaint): Add 'section' argument.
4183 (dwarf2_locate_sections): Handle new section.
4184 (read_file_scope): Handle DW_AT_GNU_macros.
4185 (dwarf2_per_objfile_free): Unmap the .debug_macro section.
4186
1a532630
PP
41872011-07-26 Paul Pluzhnikov <ppluzhnikov@google.com>
4188
4189 * NEWS: Mention dcache configuration.
4190 * dcache.c (dcache_set_list, dcache_show_list): New variables.
4191 (dcache_size, dcache_line_size): New variables.
4192 (LINE_SIZE_MASK, XFORM, MASK): Adjust.
4193 (struct dcache_block): Make it expandable.
4194 (struct dcache_struct): New field.
4195 (dcache_invalidate): Discard freelist upon dcache_line_size changes.
4196 (dcache_hit, dcache_alloc, dcache_peek_byte): Adjust.
4197 (dcache_poke_byte, dcache_print_line): Adjust.
4198 (set_dcache_size, set_dcache_line_size): New functions.
4199 (set_dcache_command, show_dcache_command): New functions.
4200 (_initialize_dcache): Add new commands.
4201
2eff07b3
PP
42022011-07-26 Paul Pluzhnikov <ppluzhnikov@google.com>
4203
4204 * progspace.h (struct program_space): Add solib_add_generation.
4205 * infcmd.c (post_create_inferior): Only call solib_add if not
4206 already done.
4207 * solib.c (solib_add): Increment solib_add_generation.
4208
543305c9
JK
42092011-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
4210
4211 Fix implicit pointer offsets.
4212 * dwarf2loc.c (indirect_pieced_value): Comment byte_offset. Use also
4213 ptr.OFFSET.
4214
c0a91b2b
TT
42152011-07-25 Tom Tromey <tromey@redhat.com>
4216
4217 * ada-lang.c (ada_exception_breakpoint_ops): Make return type
4218 const.
4219 (ada_exception_sal): Make 'ops' const.
4220 (ada_decode_exception_location): Likewise.
4221 (ada_decode_assert_location): Likewise.
4222 (catch_assert_command): Update.
4223 (catch_ada_exception_command): Update.
4224 (create_ada_exception_catchpoint): Make 'ops' const.
4225 * breakpoint.c (set_raw_breakpoint_without_location)
4226 (set_raw_breakpoint, momentary_breakpoint_from_master): Make 'ops'
4227 const.
4228 (create_internal_breakpoint): Update.
4229 (init_raw_breakpoint_without_location): Make 'ops' const.
4230 (init_raw_breakpoint, init_catchpoint)
4231 (create_fork_vfork_event_catchpoint)
4232 (create_syscall_event_catchpoint, init_breakpoint_sal)
4233 (create_breakpoint_sal, create_breakpoints_sal)
4234 (create_breakpoint, init_ada_exception_breakpoint): Likewise.
4235 * breakpoint.h (struct breakpoint) <ops>: Now const.
4236 (init_ada_exception_breakpoint, create_breakpoint): Make 'ops'
4237 const.
4238
6cb9b55b
PP
42392011-07-25 Paul Pluzhnikov <ppluzhnikov@google.com>
4240
4241 * linux-thread-db.c (thread_from_lwp): Initialize th.th_unique.
4242
d9b3f62e
PA
42432011-07-25 Pedro Alves <pedro@codesourcery.com>
4244
4245 * breakpoint.h (print_recreate_thread): Declare.
4246 (struct breakpoint): Move step_count, pass_count,
4247 number_on_target, static_trace_marker_id,
4248 static_trace_marker_id_idx ...
4249 (struct tracepoint): ... to this new struct.
4250 (get_tracepoint, get_tracepoint_by_number_on_target)
4251 (get_tracepoint_by_number): Change return type to struct
4252 tracepoint pointer.
4253 * breakpoint.c (is_tracepoint_type): New, factored out from
4254 is_tracepoint.
4255 (is_tracepoint): Adjust.
4256 (print_one_breakpoint_location): Cast to struct tracepoint as
4257 necessary, and adjust.
4258 (print_recreate_catch_fork, print_recreate_catch_vfork)
4259 (print_recreate_catch_syscall, print_recreate_catch_exec): Call
4260 print_recreate_thread.
4261 (init_breakpoint_sal): New, factored out from
4262 create_breakpoint_sal.
4263 (create_breakpoint_sal): Reimplement.
4264 (create_breakpoint): Allocate a struct tracecepoint if the caller
4265 wanted a tracepoint. Use init_breakpoint_sal and
4266 install_breakpoint.
4267 (print_recreate_ranged_breakpoint, print_recreate_watchpoint)
4268 (print_recreate_masked_watchpoint)
4269 (print_recreate_exception_catchpoint): Call print_recreate_thread.
4270 (tracepoint_print_one_detail): Adjust.
4271 (tracepoint_print_recreate): Adjust. Call print_recreate_thread.
4272 Dump the pass count here.
4273 (update_static_tracepoint): Adjust.
4274 (addr_string_to_sals): Adjust.
4275 (create_tracepoint_from_upload): Adjust. Change return type to
4276 struct tracepoint pointer.
4277 (trace_pass_set_count): Change parameter type to struct tracepoint
4278 pointer, and adjust.
4279 (trace_pass_command): Adjust.
4280 (get_tracepoint, get_tracepoint_by_number_on_target)
4281 (get_tracepoint_by_number): Change return type to struct
4282 tracepoint pointer, and adjust.
4283 (print_recreate_thread): New, factored out from save_breakpoints.
4284 (save_breakpoints): Don't print thread and task and passcount
4285 recreation here.
4286 * remote.c (remote_download_tracepoint): Adjust.
4287 * tracepoint.c (trace_actions_command, validate_actionline)
4288 (start_tracing, tfind_1, trace_find_tracepoint_command)
4289 (trace_dump_command): Adjust.
4290 (find_matching_tracepoint): Change return type to struct
4291 tracepoint pointer, and adjust.
4292 (merge_uploaded_tracepoints, tfile_get_traceframe_address)
4293 (tfile_trace_find, tfile_fetch_registers): Adjust.
4294 * tracepoint.h (create_tracepoint_from_upload): Change return type
4295 to struct tracepoint pointer.
4296 * ada-lang.c (print_recreate_exception): Call
4297 print_recreate_thread.
4298 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Adjust.
4299
3a5c3e22
PA
43002011-07-25 Pedro Alves <pedro@codesourcery.com>
4301
4302 * breakpoint.h (struct breakpoint): Move ops as first field. Move
4303 exp_string, exp_string_reparse, exp, exp_valid_block, cond_exp,
4304 cond_exp_valid_block, val, val_valid, watchpoint_frame,
4305 watchpoint_thread, watchpoint_triggered ...
4306 (struct watchpoint): ... to this new struct.
4307 (is_watchpoint): Declare.
4308 (install_breakpoint): Add new `internal' parameter.
4309 * breakpoint.c (is_watchpoint): Delete declaration.
4310 (set_breakpoint_condition): Handle watchpoints.
4311 (is_watchpoint): Make public.
4312 (watchpoint_in_thread_scope): Change parameter type to struct
4313 watchpoint.
4314 (watchpoint_del_at_next_stop): Change parameter type to struct
4315 watchpoint. Remove assertion. Adjust.
4316 (update_watchpoint): Ditto.
4317 (insert_breakpoints, breakpoint_init_inferior)
4318 (watchpoints_triggered, watchpoint_check)
4319 (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions)
4320 (bpstat_stop_status, print_one_breakpoint_location)
4321 (print_one_breakpoint_location, watchpoint_locations_match): Cast
4322 to struct watchpoint as necessary, and adjust.
4323 (install_breakpoint): Add `internal' argument. If true, don't
4324 mention the new breakpoint. Use set_breakpoint_number.
4325 (create_fork_vfork_event_catchpoint)
4326 (create_syscall_event_catchpoint): Adjust.
4327 (dtor_watchpoint): New.
4328 (re_set_watchpoint, insert_watchpoint, remove_watchpoint)
4329 (breakpoint_hit_watchpoint, resources_needed_watchpoint)
4330 (print_it_watchpoint, print_mention_watchpoint)
4331 (print_recreate_watchpoint, insert_masked_watchpoint)
4332 (remove_masked_watchpoint, resources_needed_masked_watchpoint)
4333 (print_one_detail_masked_watchpoint)
4334 (print_mention_masked_watchpoint)
4335 (print_recreate_masked_watchpoint): Cast to struct watchpoint as
4336 necessary, and adjust.
4337 (watch_command_1): Allocate and initialize a struct watchpoint
4338 instead of a struct breakpoint. Use install_breakpoint.
4339 (catch_exec_command_1): Adjust.
4340 (base_breakpoint_dtor): Delete accesses to watchpoint specific
4341 fields.
4342 (delete_breakpoint, enable_breakpoint_disp)
4343 (invalidate_bp_value_on_memory_change): Cast to struct watchpoint
4344 as necessary, and adjust.
4345 (initialize_breakpoint_ops): Install dtor_watchpoint as
4346 watchpoints' dtor method.
4347 * ada-lang.c (create_ada_exception_catchpoint): Adjust.
4348 * python/py-breakpoint.c (bppy_get_expression): Use is_watchpoint.
4349 to struct watchpoint as necessary, and adjust.
4350
2060206e
PA
43512011-07-25 Pedro Alves <pedro@codesourcery.com>
4352
4353 * ada-lang.c (dtor_exception, re_set_exception): Indirect through
4354 the the base class ops table.
4355 (catch_exception_breakpoint_ops)
4356 (catch_exception_unhandled_breakpoint_ops)
4357 (catch_assert_breakpoint_ops): Don't statically initialize.
4358 (initialize_ada_catchpoint_ops): New.
4359 (_initialize_ada_language): Call it.
4360 * breakpoint.c (base_breakpoint_ops, bkpt_base_breakpoint_ops)
4361 (bkpt_breakpoint_ops): Forward declare.
4362 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
4363 (catch_syscall_breakpoint_ops, catch_exec_breakpoint_ops)
4364 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
4365 (masked_watchpoint_breakpoint_ops)
4366 (gnu_v3_exception_catchpoint_ops): Don't statically initialize.
4367 (dtor_catch_syscall, dtor_catch_exec): Indirect through the the
4368 base class ops table.
4369 (null_re_set, null_check_status, null_works_in_software_mode)
4370 (null_resources_needed, null_print_one_detail): Delete.
4371 (bkpt_dtor): Rename to ...
4372 (base_breakpoint_dtor): ... this. Make static.
4373 (bkpt_allocate_location): Rename to ...
4374 (base_breakpoint_allocate_location): ... this. Make static.
4375 (base_breakpoint_re_set): New.
4376 (internal_error_pure_virtual_called): New.
4377 (base_breakpoint_insert_location, base_breakpoint_remove_location)
4378 (base_breakpoint_breakpoint_hit, base_breakpoint_check_status)
4379 (base_breakpoint_works_in_software_mode)
4380 (base_breakpoint_resources_needed, base_breakpoint_print_it)
4381 (base_breakpoint_print_one_detail, base_breakpoint_print_mention)
4382 (base_breakpoint_print_recreate): New functions.
4383 (base_breakpoint_ops): New global.
4384 (bkpt_re_set, bkpt_insert_location, bkpt_remove_location)
4385 (bkpt_breakpoint_hit): Make static.
4386 (bkpt_check_status): Delete.
4387 (bkpt_resources_needed): Make static.
4388 (bkpt_works_in_software_mode): Delete.
4389 (bkpt_print_it, bkpt_print_mention, bkpt_print_recreate): Make
4390 static.
4391 (bkpt_breakpoint_ops, internal_breakpoint_ops)
4392 (momentary_breakpoint_ops): Don't statically initialize.
4393 (internal_bkpt_print_recreate, momentary_bkpt_print_recreate):
4394 Delete.
4395 (tracepoint_insert_location, tracepoint_remove_location)
4396 (tracepoint_check_status, tracepoint_works_in_software_mode)
4397 (tracepoint_print_it): Delete.
4398 (tracepoint_breakpoint_ops): Don't statically initialize.
4399 (initialize_breakpoint_ops): New.
4400 (_initialize_breakpoint): Call it.
4401 * breakpoint.h (null_re_set, null_works_in_software_mode)
4402 (null_resources_needed, null_check_status, null_print_one_detail):
4403 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
4404 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
4405 (bkpt_check_status, bkpt_resources_needed)
4406 (bkpt_works_in_software_mode, bkpt_print_it)
4407 (null_print_one_detail, bkpt_print_mention, bkpt_print_recreate):
4408 Delete declarations.
4409 (initialize_breakpoint_ops): Declare.
4410
001c8c33
PA
44112011-07-25 Pedro Alves <pedro@codesourcery.com>
4412
4413 * breakpoint.c (bkpt_print_it, internal_bkpt_print_it)
4414 (momentary_bkpt_print_it): Simplify.
4415
06edf0c0
PA
44162011-07-25 Pedro Alves <pedro@codesourcery.com>
4417
4418 Split internal, momentary and user breakpoints breakpoint_ops
4419 tables.
4420
4421 * breakpoint.c (internal_breakpoint_ops)
4422 (momentary_breakpoint_ops): Forward declare.
4423 (create_internal_breakpoint): Add new breakpoint_ops parameter.
4424 Pass it down, rather than hardcoding bkpt_breakpoint_ops.
4425 (create_overlay_event_breakpoint)
4426 (create_std_terminate_master_breakpoint)
4427 (create_exception_master_breakpoint): Create breakpoints with
4428 internal_breakpoint_ops vtable.
4429 (set_longjmp_breakpoint): Create momentary breakpoints with
4430 momentary_breakpoint_ops vtable, using
4431 momentary_breakpoint_from_master.
4432 (create_thread_event_breakpoint, create_jit_event_breakpoint)
4433 (create_solib_event_breakpoint): Create breakpoints with
4434 internal_breakpoint_ops vtable.
4435 (set_momentary_breakpoint): Create breakpoints with
4436 momentary_breakpoint_ops vtable.
4437 (momentary_breakpoint_from_master): New, factored out from
4438 clone_momentary_breakpoint.
4439 (clone_momentary_breakpoint): Adjust.
4440 (watch_command_1): Create scope breakpoints with
4441 momentary_breakpoint_ops vtable.
4442 (bkpt_re_set): Remove handling of internal and momentary
4443 breakpoints.
4444 (bkpt_print_mention, bkpt_print_recreate): New.
4445 (bkpt_breakpoint_ops): Adjust.
4446 (internal_bkpt_re_set, internal_bkpt_check_status)
4447 (internal_bkpt_print_it, internal_bkpt_print_mention)
4448 (internal_bkpt_print_recreate, internal_breakpoint_ops): New.
4449 (momentary_bkpt_re_set, momentary_bkpt_check_status)
4450 (momentary_bkpt_print_it, momentary_bkpt_print_mention)
4451 (momentary_bkpt_print_recreate): New.
4452 (momentary_breakpoint_ops): New.
4453
348d480f
PA
44542011-07-25 Pedro Alves <pedro@codesourcery.com>
4455
4456 Implement most breakpoint_ops methods for all breakpoint types,
4457 and move the default handlings to the proper callbacks.
4458
4459 * breakpoint.c (update_watchpoint): Always call the breakpoint's
4460 works_in_software_mode method.
4461 (insert_bp_location): Go through breakpoint_ops->insert_location
4462 for software and hardware watchpoints.
4463 (create_internal_breakpoint): Pass bkpt_breakpoint_ops as
4464 breakpoint_ops.
4465 (remove_breakpoint_1): Go through breakpoint_ops->remove_location
4466 for software and hardware watchpoints.
4467 (print_it_typical): Delete.
4468 (print_bp_stop_message): Always call the breakpoint_ops->print_it
4469 method.
4470 (watchpoint_check): Adjust comment.
4471 (bpstat_check_location): Simply always call the breakpoint's
4472 breakpoint_hit method.
4473 (bpstat_stop_status): Always call the breakpoint's check_status
4474 method. Remove special cases for watchpoints and internal event
4475 breakpoints from here (moved to the check_status implementations).
4476 (print_one_breakpoint_location): Assume b->ops is never NULL.
4477 Remove static tracepoint marker id printing from here (moved to
4478 the print_one_detail callback implementation of tracepoints).
4479 (init_bp_location): Assert OPS is never NULL.
4480 (allocate_bp_location): Always call the breakpoint's
4481 allocate_location method, and remove the default code from here.
4482 (free_bp_location): Always call the location's dtor method, and
4483 remove the default code from here.
4484 (init_raw_breakpoint_without_location): Assert OPS is never NULL.
4485 (set_raw_breakpoint_without_location): Add new breakpoint_ops
4486 parameter. Pass it down.
4487 (set_raw_breakpoint): Ditto.
4488 (print_it_catch_fork): Adjust to take a bpstat as argument.
4489 (catch_fork_breakpoint_ops): Install methods.
4490 (print_it_catch_vfork): Adjust to take a bpstat as argument.
4491 (catch_vfork_breakpoint_ops): Install methods.
4492 (dtor_catch_syscall): Call the base dtor.
4493 (print_it_catch_syscall): Adjust to take a bpstat as argument.
4494 (catch_syscall_breakpoint_ops): Install methods.
4495 (dtor_catch_exec): Call the base dtor.
4496 (print_it_catch_exec): Adjust to take a bpstat as argument.
4497 (catch_exec_breakpoint_ops): Install methods.
4498 (hw_breakpoint_used_count, hw_watchpoint_used_count): Always call
4499 the breakpoint's resources_needed method, and remove the default
4500 code from here.
4501 (set_momentary_breakpoint): Pass bkpt_breakpoint_ops as
4502 breakpoint_ops.
4503 (clone_momentary_breakpoint): Clone the original's ops.
4504 (mention): Always call the breakpoint's print_mention method, and
4505 remove the default code from here.
4506 (create_breakpoint_sal): Adjust to pass the ops to
4507 set_raw_breakpoint rather than setting it manually.
4508 (create_breakpoint): Assert ops is never NULL. Adjust to pass the
4509 ops to set_raw_breakpoint_without_location rather than setting it
4510 manually.
4511 (break_command_1): Pass bkpt_breakpoint_ops as breakpoint_ops.
4512 (print_it_ranged_breakpoint): Adjust to take a bpstat as argument.
4513 (ranged_breakpoint_ops): Install methods.
4514 (break_range_command): Adjust to pass the ops to
4515 set_raw_breakpoint rather than setting it manually.
4516 (re_set_watchpoint, breakpoint_hit_watchpoint)
4517 (check_status_watchpoint, resources_needed_watchpoint)
4518 (works_in_software_mode_watchpoint, print_it_watchpoint)
4519 (print_mention_watchpoint, print_recreate_watchpoint): New
4520 functions.
4521 (watchpoint_breakpoint_ops): Install new methods.
4522 (print_it_masked_watchpoint): New function.
4523 (masked_watchpoint_breakpoint_ops): Install new methods.
4524 (watch_command_1): Adjust to pass the right breakpoint_ops to
4525 set_raw_breakpoint_without_location rather than setting it
4526 manually later. Record the current pspace.
4527 (print_it_exception_catchpoint): Adjust to take a bpstat as
4528 argument.
4529 (gnu_v3_exception_catchpoint_ops): Install new methods.
4530 (say_where): New function.
4531 (null_re_set, null_check_status, null_works_in_software_mode)
4532 (null_resources_needed, null_print_one_detail, bp_location_dtor):
4533 New functions.
4534 (bp_location_ops): New global.
4535 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
4536 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
4537 (bkpt_check_status, bkpt_resources_needed)
4538 (bkpt_works_in_software_mode, bkpt_print_it, bkpt_print_mention)
4539 (bkpt_print_recreate): New functions.
4540 (bkpt_breakpoint_ops): New global.
4541 (tracepoint_re_set, tracepoint_insert_location)
4542 (tracepoint_remove_location, tracepoint_breakpoint_hit)
4543 (tracepoint_check_status, tracepoint_works_in_software_mode)
4544 (tracepoint_print_it, tracepoint_print_one_detail)
4545 (tracepoint_print_mention, tracepoint_print_recreate): New
4546 functions.
4547 (tracepoint_breakpoint_ops): New global.
4548 (delete_breakpoint): Always call the breakpoint's dtor method, and
4549 remove the default handling from here.
4550 (breakpoint_re_set_default): Make static.
4551 (breakpoint_re_set_one): Always call the breakpoints re_set
4552 method, and remove the default handling from here.
4553 (trace_command, ftrace_command, strace_command)
4554 (create_tracepoint_from_upload): Pass appropriate breakpoints_ops
4555 to create_breakpoint.
4556 (save_breakpoints): Always call the breakpoint's print_recreate
4557 method, and remove the default handling from here.
4558
4559 * ada-lang.c (dtor_exception): Call the base dtor.
4560 (re_set_exception): Call the base method.
4561 (print_it_exception, print_it_catch_exception): Adjust to take a
4562 bpstat as argument.
4563 (catch_exception_breakpoint_ops): Install methods.
4564 (print_it_catch_exception_unhandled): Adjust to take a bpstat as
4565 argument.
4566 (catch_exception_unhandled_breakpoint_ops): Install methods.
4567 (print_it_catch_assert): Adjust to take a bpstat as argument.
4568 (catch_assert_breakpoint_ops): Install methods.
4569
4570 * breakpoint.h (struct breakpoint_ops): Adjust the print_it method
4571 to take a bpstat as argument.
4572 (enum print_stop_action): Add describing comments to each enum
4573 value.
4574 (breakpoint_re_set_default): Delete declaration.
4575 (null_re_set, null_works_in_software_mode, null_resources_needed)
4576 (null_check_status, null_print_one_detail): Declare.
4577 (bkpt_breakpoint_ops): Declare.
4578 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
4579 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
4580 (bkpt_check_status, bkpt_resources_needed)
4581 (bkpt_works_in_software_mode, bkpt_print_it)
4582 (null_print_one_detail, bkpt_print_mention, bkpt_print_recreate):
4583 Declare.
4584
4585 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust to pass
4586 bkpt_breakpoint_ops.
4587 * python/py-breakpoint.c (bppy_init): Ditto.
4588
be8f8133
PW
45892011-07-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4590
4591 * MAINTAINERS (Write After Approval): Add myself to the list.
4592
3807f613
PP
45932011-07-23 Paul Pluzhnikov <ppluzhnikov@google.com>
4594
4595 * elfread.c (elf_rel_plt_read): Fix off-by-one bug.
4596
1ced966e
PA
45972011-07-22 Pedro Alves <pedro@codesourcery.com>
4598
4599 * i386-nat.c (I386_DR_VACANT, I386_DR_LOCAL_ENABLE)
4600 (I386_DR_GLOBAL_ENABLE, I386_DR_DISABLE, I386_DR_SET_RW_LEN)
4601 (I386_DR_GET_RW_LEN, I386_DR_WATCH_HIT): Add state parameter and
4602 adjust.
4603 (dr_mirror, dr_status_mirror, dr_control_mirror): Delete.
4604 (struct i386_debug_reg_state): New.
4605 (i386_init_dregs): New.
4606 (dr_mirror): New.
4607 (i386_cleanup_dregs): Use i386_init_dregs.
4608 (i386_show_dr): Add state parameter and adjust.
4609 (i386_insert_aligned_watchpoint): Ditto. Don't pass the info to
4610 the inferior here.
4611 (i386_remove_aligned_watchpoint): Likewise.
4612 (i386_handle_nonaligned_watchpoint): Add state parameter and adjust.
4613 (i386_update_inferior_debug_regs): New.
4614 (i386_insert_watchpoint): Work on a local mirror of the debug
4615 registers, and only update the inferior on success.
4616 (i386_remove_watchpoint): Ditto.
4617 (i386_region_ok_for_watchpoint): Adjust.
4618 (i386_stopped_data_address): Adjust.
4619 (i386_insert_hw_breakpoint): Adjust.
4620 (i386_remove_hw_breakpoint): Adjust.
4621
3543a589
TT
46222011-07-22 Tom Tromey <tromey@redhat.com>
4623
4624 * amd64-tdep.c (amd64_pseudo_register_read_value): Rename
4625 from amd64_pseudo_register_read. Change arguments. Call
4626 mark_value_bytes_unavailable when needed.
4627 (amd64_init_abi): Use set_gdbarch_pseudo_register_read_value, not
4628 set_gdbarch_pseudo_register_read.
4629 * sentinel-frame.c (sentinel_frame_prev_register): Use
4630 regcache_cooked_read_value.
4631 * regcache.h (regcache_cooked_read_value): Declare.
4632 * regcache.c (regcache_cooked_read_value): New function.
4633 (regcache_cooked_read): Call
4634 gdbarch_pseudo_register_read_value if available.
4635 * i386-tdep.h (i386_pseudo_register_read_value): Declare.
4636 (i386_pseudo_register_read): Remove.
4637 * i386-tdep.c (i386_pseudo_register_read_into_value): Rename from
4638 i386_pseudo_register_read. Change arguments. Call
4639 mark_value_bytes_unavailable when needed.
4640 (i386_pseudo_register_read_value): New function.
4641 (i386_gdbarch_init): Call set_gdbarch_pseudo_register_read_value,
4642 not set_gdbarch_pseudo_register_read.
4643 * gdbarch.sh (pseudo_register_read_value): New method.
4644 * gdbarch.c, gdbarch.h: Rebuild.
4645 * findvar.c (value_from_register): Call get_frame_register_value.
4646
95298e72
PM
46472011-07-22 Phil Muldoon <pmuldoon@redhat.com>
4648
4649 * event-top.c (cli_command_loop): Use get_prompt, get_suffix,
4650 get_prefix.
4651 (display_gdb_prompt): Likewise.
4652 (change_annotation_level): Likewise.
4653 (push_prompt): Likewise.
4654 (pop_prompt): Likewise.
4655 (handle_stop_sig): Use get_prompt with a level.
4656 * top.c (command_loop): Use get_prompt with a level.
4657 (set_async_annotation_level): Use set_prompt with a level.
4658 (get_prefix): New function.
4659 (set_prefix): Ditto.
4660 (set_suffix): Ditto.
4661 (get_suffix): Ditto.
4662 (get_prompt): Accept a level argument.
4663 (set_prompt): Accept a level argument. Free old prompts. Set
4664 new_async_prompt if level is 0.
4665 (init_main): Use set_prompt with a level. Do not set
4666 new_async_prompt.
4667 * event-top.h (PROMPT, SUFFIX, PREFIX): Move to top.c
4668 * top.h: Declare set_suffix, get_suffix, set_prefix, get_prefix.
4669 Modify set_prompt, get_prompt to account for levels.
4670 * tui/tui-interp.c (tui_command_loop): Use get_prompt with a
4671 level.
4672 * python/python.c (before_prompt_hook): Use set_prompt.
4673
d26e3629
KY
46742011-07-22 Kwok Cheung Yeung <kcy@codesourcery.com>
4675
4676 * defs.h: Add guard against inclusion in gdbserver.
4677 (struct ptid, ptid_t): Move to common/ptid.h.
4678 (xfree, xzalloc, xasprintf, xvasprintf, xstrprintf, xstrvprintf,
4679 xsnprintf, internal_error): Move to common/common-utils.h.
4680 (nomem): Delete.
4681 * gdb_assert.h: Move into common/ sub-directory.
4682 * gdb_locale.h: Ditto.
4683 * gdb_dirent.h: Ditto.
4684 * inferior.h (minus_one_ptid, null_ptid, ptid_build, pid_to_ptid,
4685 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid):
4686 Move into common/ptid.h.
4687 * xml-support.c (xml_escape_text): Move into common/xml-utils.c.
4688 (gdb_xml_create_parser_and_cleanup_1, xml_fetch_context_from_file):
4689 Change nomem to malloc_failure.
4690 * xml-support.h (xml_escape_text): Move into common/xml-utils.h.
4691 * utils.c (nomem): Rename to malloc_failure.
4692 (xmalloc, xzalloc, xrealloc, xcalloc, xfree, xstrprintf, xasprintf,
4693 xvasprintf, xstrvprintf, xsnprintf): Move to common/common-utils.c.
4694 (gdb_buildargv): Change nomem to malloc_failure.
4695 * infrun.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid,
4696 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal,
4697 ptid_is_pid): Move into common/ptid.c.
4698 (initialize_infrun): Delete initialization of null_ptid and
4699 minus_one_ptid.
4700 * linux-nat.c (linux_nat_xfer_osdata): Defer to
4701 linux_common_xfer_osdata.
4702 * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c,
4703 common/ptid.c and common/buffer.c.
4704 (HFILES_NO_SRCDIR): Add common/common-utils.h, common/xml-utils.h,
4705 common/ptid.h, common/buffer.h and common/linux-osdata.h.
4706 (COMMON_OBS): Add xml-utils.o, common-utils.o, buffer.o and ptid.o.
4707 (common-utils.o, xml-utils.o, ptid.o, buffer.o, linux-osdata.o): New
4708 rules.
4709 * common/gdb_assert.h: New.
4710 * common/gdb_dirent.h: New.
4711 * common/gdb_locale.h: New.
4712 * common/buffer.c: New.
4713 * common/buffer.h: New.
4714 * common/ptid.c: New.
4715 * common/ptid.h: New.
4716 * common/xml-utils.c: New.
4717 * common/xml-utils.h: New.
4718 * common/common-utils.c: New.
4719 * common/common-utils.h: New.
4720 * common/linux-osdata.c: New.
4721 * common/linux-osdata.h: New.
4722 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-osdata.o.
4723 * config/arm/linux.mh (NATDEPFILES): Ditto.
4724 * config/i386/linux.mh (NATDEPFILES): Ditto.
4725 * config/i386/linux64.mh (NATDEPFILES): Ditto.
4726 * config/ia64/linux.mh (NATDEPFILES): Ditto.
4727 * config/m32r/linux.mh (NATDEPFILES): Ditto.
4728 * config/m68k/linux.mh (NATDEPFILES): Ditto.
4729 * config/mips/linux.mh (NATDEPFILES): Ditto.
4730 * config/pa/linux.mh (NATDEPFILES): Ditto.
4731 * config/powerpc/linux.mh (NATDEPFILES): Ditto.
4732 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Ditto.
4733 * config/s390/s390.mh (NATDEPFILES): Ditto.
4734 * config/sparc/linux.mh (NATDEPFILES): Ditto.
4735 * config/sparc/linux64.mh (NATDEPFILES): Ditto.
4736 * config/xtensa/linux.mh (NATDEPFILES): Ditto.
4737
edc84990 47382011-07-21 Matt Rice <ratmice@gmail.com>
4739
4740 * NEWS: Add info macros and info definitions commands.
4741
3a7bf607
PM
47422011-07-21 Phil Muldoon <pmuldoon@redhat.com>
4743
4744 * NEWS: Document Python prompt substitution hook.
4745
9b158ba0 47462011-07-18 Matt Rice <ratmice@gmail.com>
4747
4748 PR macros/12999
4749 * macrotab.h (macro_callback_fn): Add new arguments to callback.
4750 * macrotab.c (foreach_macro): Ditto.
4751 (foreach_macro_in_scope): Ditto.
4752 * macrocmd.c (print_macro_callback): New function.
4753 (info_macro_command): Move some code to print_macro_definition.
4754 (print_macro_definition): New function.
4755 (print_one_macro): Add new arguments to callback.
4756 (info_definitions_command): New function.
4757 (info_macros_command): Ditto.
4758 (_initialize_macrocmd): Add info macros and info definitions commands.
4759 * symtab.c (add_macro_name): Add new arguments to callback.
4760
d17b6f81
PM
47612011-07-21 Phil Muldoon <pmuldoon@redhat.com>
4762 Tom Tromey <tromey@redhat.com>
4763
4764 * top.c (set_prompt): Rewrite to free previous prompt, free
4765 asynch_new_prompt and set both on new prompts.
4766 * event-top.c (display_gdb_prompt): Add prompt substitution
4767 logic.
4768 * python/python.c (before_prompt_hook): New function.
4769
1364323a 47702011-07-20 Matt Rice <ratmice@gmail.com>
4771
4772 * bfin-tdep.c (bfin_extract_return_value): Fix swapped
4773 arguments to store_unsigned_integer.
4774
8b70b953
TT
47752011-07-20 Tom Tromey <tromey@redhat.com>
4776
6c83ed52
TT
4777 * dwarf2read.c (process_enumeration_scope): Do not call new_symbol
4778 in some declaration-only cases.
4779
47802011-07-18 Tom Tromey <tromey@redhat.com>
4781
8b70b953
TT
4782 PR symtab/12984:
4783 * dwarf2read.c (dwarf2_section_info_def): New typedef.
4784 (struct dwarf2_per_objfile) <types>: Change to a VEC.
4785 (struct dwarf2_per_cu_data) <from_debug_types>: Remove.
4786 <debug_type_section>: New field.
4787 (dwarf2_locate_sections): Push .debug_types sections onto VEC.
4788 (load_cu): Use appropriate section.
4789 (create_signatured_type_table_from_index): Add 'section'
4790 argument.
4791 (dwarf2_read_index): Only allow a single .debug_types section.
4792 (dw2_get_file_names): Use appropriate section.
4793 (read_type_comp_unit_head): Add 'section' argument.
4794 (create_debug_types_hash_table): Loop over all .debug_types
4795 sections.
4796 (init_cu_die_reader): Use appropriate section.
4797 (process_psymtab_comp_unit, load_partial_comp_unit)
4798 (load_full_comp_unit, read_die_and_children, find_partial_die)
4799 (lookup_die_type, determine_prefix, follow_die_offset): Update.
4800 (lookup_signatured_type_at_offset): Add 'section' argument.
4801 (read_signatured_type_at_offset): Add 'sect' argument.
4802 (read_signatured_type): Use appropriate section.
4803 (set_die_type, get_die_type_at_offset): Update.
4804 (dwarf2_per_objfile_free): Free all .debug_types sections, and
4805 VEC.
4806 (write_psymtabs_to_index): Don't allow index with more than one
4807 .debug_types section.
4808
918dd910
JK
48092011-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
4810
4811 Fix crash if referenced CU is aged out.
4812 * dwarf2loc.c (per_cu_dwarf_call): New variable back_to, use to for
4813 xfree of block.data.
4814 (indirect_pieced_value): New variable back_to, use to for xfree of
4815 baton.data.
4816 (dwarf2_compile_expr_to_ax): New variable back_to, use to for xfree of
4817 block.data.
4818 * dwarf2read.c (dwarf2_find_base_address): New prototype.
4819 (load_cu): New function from ...
4820 (dw2_do_instantiate_symtab): ... the code here ...
4821 (process_full_comp_unit): ... and here.
4822 (dwarf2_fetch_die_location_block): Call load_cu first. Call xmemdup on
4823 retval.data.
4824
0e37a63c
JK
48252011-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
4826
4827 * dwarf2loc.c (indirect_pieced_value): Use check_typedef for VALUE's
4828 type.
4829
7e324e48
GB
48302011-07-19 Gary Benson <gbenson@redhat.com>
4831
4832 * infrun.c (struct execution_control_state): New member
4833 stop_func_filled_in.
4834 (clear_stop_func, fill_in_stop_func): New functions.
4835 (handle_inferior_event): Call clear_stop_func rather than
4836 manipulating the execution control state directly.
4837 Call fill_in_stop_func lazily as required rather than
4838 directly calling find_pc_partial_function in all cases.
4839
d48323d8
TT
48402011-07-18 Tom Tromey <tromey@redhat.com>
4841
4842 * dwarf2read.c (read_subrange_type): Use attr_form_is_block when
4843 checking for variable-sized array.
4844
40591b7d
JCD
48452011-07-18 Jean-Charles Delay <delay@adacore.com>
4846
4847 * varobj.h (varobj_languages): Add vlang_ada definition to the list
4848 of supported languages.
4849 * varobj.c: Add top definitions and basic implementation of the
4850 following callbacks: ada_number_of_children, ada_name_of_variable,
4851 ada_name_of_child, ada_path_expr_of_child, ada_value_of_root,
4852 ada_value_of_child, ada_type_of_child, ada_value_of_variable.
4853 (languages): Register Ada-specific callbacks.
4854 (variable_language): Add the Ada case in the language setter switch.
4855
2e424e08
JK
48562011-07-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4857
4858 * remote-mips.c (pmon_download): Fix ignored return value GCC warning.
4859
9e8b7a03
JK
48602011-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
4861
4862 Code cleanup.
4863 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): New.
4864 (execute_stack_op): Use dwarf2_frame_ctx_funcs
4865 * dwarf2expr.c (dwarf_get_base_type): Access get_base_type via funcs.
4866 (execute_stack_op): Access read_reg, get_frame_base, read_mem,
4867 get_frame_cfa, get_tls_address and dwarf_call via funcs.
4868 * dwarf2expr.h (struct dwarf_expr_context): New forward declaration.
4869 (struct dwarf_expr_context_funcs): New, move here methods from ...
4870 (struct dwarf_expr_context): ... here. New fields funcs.
4871 * dwarf2loc.c (dwarf_expr_dwarf_call): Access get_frame_pc via funcs.
4872 (dwarf_expr_ctx_funcs): New.
4873 (dwarf2_evaluate_loc_desc_full): Use dwarf_expr_ctx_funcs.
4874 (needs_frame_dwarf_call): Access get_frame_pc via funcs.
4875 (needs_frame_ctx_funcs): New.
4876 (dwarf2_loc_desc_needs_frame): Use needs_frame_ctx_funcs.
4877
2b1260ab
FM
48782011-07-15 Fawzi Mohamed <fawzi.mohamed@nokia.com>
4879
4880 * MAINTAINERS (Write After Approval): Add myself to the list.
4881
8bd90839
FM
48822011-07-15 Fawzi Mohamed <fawzi.mohamed@nokia.com>
4883
4884 * dwarf2-frame.c (decode_frame_entry, decode_frame_entry_1): Ensure
4885 that CIE pointer of an FDE really points to a CIE .
4886
953b98d1
HZ
48872011-07-15 Hui Zhu <teawater@gmail.com>
4888
4889 * remote.c (remote_get_trace_status): Add comments.
4890
c8f2448a
JK
48912011-07-14 Jan Kratochvil <jan.kratochvil@redhat.com>
4892
4893 Code cleanup - constify struct lval_funcs.
4894 * dwarf2loc.c (pieced_value_funcs): Make it const.
4895 * infrun.c (siginfo_value_funcs): Likewise.
4896 * opencl-lang.c (opencl_value_funcs): Likewise.
4897 * valops.c (value_assign, value_ind): Make the funcs variable const.
4898 * value.c (struct value): Make location.computed.funcs target const.
4899 Rearrange the comments.
4900 (allocate_computed_value): Make the funcs parameter target const.
4901 (value_computed_funcs): Return the funcs target const.
4902 (value_free, value_copy, set_value_component_location): Make the funcs
4903 variable const.
4904 * value.h (allocate_computed_value): Make the funcs parameter target
4905 const.
4906 (value_computed_funcs): Return the funcs target const.
4907 * windows-tdep.c (tlb_value_funcs): Make it const.
4908
f652de6f
HZ
49092011-07-14 Hui Zhu <teawater@gmail.com>
4910
4911 * remote.c (remote_get_trace_status): Initialize p.
4912
67f41397
JK
49132011-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4914
4915 Work around kgdb.
4916 * remote.c (remote_get_trace_status): New variable ex. Put
4917 remote_get_noisy_reply into TRY_CATCH. Call exception_fprintf for it.
4918
d1b66e6d
TT
49192011-07-13 Tom Tromey <tromey@redhat.com>
4920
4921 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_regval_type>: Use
4922 value_from_contents for final conversion.
4923
1632a688
JK
49242011-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4925
4926 Code cleanup.
4927 * dwarf2loc.c (dwarf_expr_frame_base_1, dwarf2_evaluate_loc_desc_full):
4928 Indent prototypes so they do not get into tags.
4929
a7035dbb
JK
49302011-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
4931
4932 Code cleanup making also optimized out values lazy.
4933 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use
4934 allocate_optimized_out_value. Twice.
4935 (loclist_read_variable) Use allocate_optimized_out_value. Once.
4936 * findvar.c (read_var_value): Likewise.
4937 * value.c (allocate_optimized_out_value): New function.
4938 * value.h (allocate_optimized_out_value): New declaration.
4939
d07ed419
JK
49402011-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
4941
4942 Fix occasional crash of CTRL-C during DWARF read in.
4943 * dwarf2read.c (dwarf2_mark_helper): Return on NULL CU.
4944
86d31898
TT
49452011-07-11 Tom Tromey <tromey@redhat.com>
4946
4947 * regcache.c (struct regcache_descr): Fix typo.
4948 * i387-tdep.c (i387_supply_xsave): Fix typo.
4949
2ab95328
TT
49502011-07-11 Tom Tromey <tromey@redhat.com>
4951
4952 * dwarf2read.c (handle_DW_AT_stmt_list): New function.
4953 (read_file_scope, read_type_unit_scope): Use it.
4954
04ad99e6
JK
49552011-07-11 Jan Kratochvil <jan.kratochvil@redhat.com>
4956
4957 * dwarf2expr.c (read_sleb128): Fix signed extension overflowing host
4958 `int'.
4959
713389e0
PM
49602011-07-11 Phil Muldoon <pmuldoon@redhat.com>
4961
4962 PR python/12438
4963 * python/python.c: Set gdbpy_should_print_stack default to off.
4964 (set_python): Deprecate maint set python print-stack to
4965 class_deprecate.
4966 (_initialize_python): Deprecate maint set/show python print-stack.
4967 Add new prefix command, python. Add new setting, print-backtrace.
4968 * NEWS: Document set python print-stack. Document default change.
4969
754eadd1
PM
49702011-07-11 Phil Muldoon <pmuldoon@redhat.com>
4971
4972 * python/py-inferior.c (infpy_dealloc): New function.
4973 (inferior_to_inferior_object): Return a new object, or a
4974 new reference to the existing object.
4975 (find_thread_object): Cleanup references to inferior.
4976 (delete_thread_object): Ditto.
4977 * python/py-infthread.c (create_thread_object): Do not increment
4978 inferior reference count.
4979
5e44ecb3
TT
49802011-07-08 Tom Tromey <tromey@redhat.com>
4981
4982 * dwarf2loc.c (locexpr_regname): New function.
4983 (locexpr_describe_location_piece): Use it.
4984 (disassemble_dwarf_expression): Add per_cu argument. Use
4985 locexpr_regname.
4986 <DW_OP_GNU_deref_type, DW_OP_GNU_const_type,
4987 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
4988 New cases.
4989 (locexpr_describe_location_1): Add per_cu argument.
4990 (locexpr_describe_location): Update.
4991 (loclist_describe_location): Update.
4992
e0e9434c
TT
49932011-07-08 Tom Tromey <tromey@redhat.com>
4994
4995 * dwarf2expr.c (execute_stack_op): Add QUIT.
4996
26afc0d7
HZ
49972011-07-07 Hui Zhu <teawater@gmail.com>
4998
4999 Revert:
5000 2011-07-06 Hui Zhu <teawater@gmail.com>
5001 * remote.c (remote_start_remote): Add TRY_CATCH for
5002 remote_get_trace_status.
5003 * tracepoint.c (disconnect_tracing): Ditto.
5004
a40a111f
AB
50052011-07-07 Andrew Burgess <aburgess@broadcom.com>
5006
5007 * cli/cli-setshow.c (do_setshow_command): Display var_zinteger
5008 variables as signed, not unsigned.
5009
e2bd3b15
JB
50102011-07-06 Joel Brobecker <brobecker@adacore.com>
5011
5012 * jit.c (jit_inferior_init): Reformat forward declaration.
5013
e3d961fe 50142011-07-06 Matt Rice <ratmice@gmail.com>
5015
5016 * MAINTAINERS (Write After Approval): Add myself to the list.
5017
0f3428f0
HZ
50182011-07-06 Hui Zhu <teawater@gmail.com>
5019
5020 * remote.c (remote_start_remote): Add TRY_CATCH for
5021 remote_get_trace_status.
5022 * tracepoint.c (disconnect_tracing): Ditto.
5023
fc9f3a69
TT
50242011-07-05 Tom Tromey <tromey@redhat.com>
5025
5026 * symtab.c (operator_chars): Now static.
5027 * linespec.c (operator_chars): Don't declare.
5028
26e519b9
TJB
50292011-07-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
5030
5031 * ui-out.h (ui_out_field_core_addr): Fix typo in comment.
5032
eb2a6f42
TT
50332011-07-05 Tom Tromey <tromey@redhat.com>
5034
5035 * gnu-v3-abi.c (gnuv3_rtti_type): Check TYPE_CPLUS_REALLY_JAVA.
5036 * gdbtypes.h (struct cplus_struct_type) <is_java>: New field.
5037 (TYPE_CPLUS_REALLY_JAVA): New macro.
5038 * dwarf2read.c (process_structure_scope): Set
5039 TYPE_CPLUS_REALLY_JAVA.
5040
21083d0f 50412011-07-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
177b42fe
TJB
5042
5043 * ada-lang.c: Fix typos.
5044 * amd64-tdep.c: Likewise.
5045 * breakpoint.c: Likewise.
5046 * cli/cli-decode.c: Likewise.
5047 * findcmd.c: Likewise.
5048 * inline-frame.c: Likewise.
5049 * mi/mi-main.c: Likewise.
5050 * minsyms.c: Likewise.
5051 * monitor.c: Likewise.
5052 * monitor.h: Likewise.
5053 * prologue-value.c: Likewise.
5054 * reverse.c: Likewise.
5055 * s390-tdep.c: Likewise.
5056
3b2a0cf2
JB
50572011-07-06 Paul Pluzhnikov <ppluzhnikov@google.com>
5058
5059 * jit.c (jit_inferior_init): Forward declare.
5060 (jit_breakpoint_re_set_internal): Call jit_inferior_init.
5061
efae1d92
JB
50622011-07-04 Joel Brobecker <brobecker@adacore.com>
5063
5064 * osabi.c (generic_elf_osabi_sniffer): Minor comment reformatting.
5065
6040a59d
JB
50662011-07-04 Tristan Gingold <gingold@adacore.com>
5067
5068 * ada-tasks.c (KNOWN_TASKS_LIST): New macro.
5069 (tcb_fieldno): Add activation_link field.
5070 (get_known_tasks_addr): Moved and rewritten.
5071 (get_tcb_types_info): Set activation_link field.
5072 (read_known_tasks_array): Add parameter. Rewritten.
5073 (read_known_tasks_list): New function.
5074 (read_known_tasks): New function.
5075 (ada_build_task_list): Call read_known_tasks instead of
5076 read_known_tasks_array.
5077 * ravenscar-thread.c: Add first_task_name constant.
5078 (has_ravenscar_runtime): Check for task list too.
5079
cb741e45
JB
50802011-07-04 Tristan Gingold <gingold@adacore.com>
5081
5082 * ada-tasks.c: Renames fieldno to actb_fieldno.
5083 (ada_get_task_number): Indentation.
5084 (get_tcb_types_info): Remove all parameters. Write directly
5085 the globals.
5086 (ptid_from_atcb_common): Adjust.
5087 (read_atcb): Adjust.
5088
7475b06c
TJB
50892011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
5090
5091 * symtab.c (in_prologue): Remove mention of ppc's refine_prologue_limit.
5092
15230f37
TJB
50932011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
5094
5095 * ui-out.c (ui_out_field_core_addr): Mention that the function
5096 description is in the header file.
5097 * ui-out.h (ui_out_field_core_addr): Document function.
5098
65743aba
TJB
50992011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
5100
5101 * ui-out.c (ui_out_get_field_separator): Remove unused function.
5102 * ui-out.h (ui_out_get_field_separator): Remove prototype.
5103
c37a5aab
TJB
51042011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
5105
5106 * symtab.c (expand_line_sal): Remove empty line.
5107
59adf69e
TS
51082011-07-04 Thomas Schwinge <thomas@schwinge.name>
5109
5110 * osabi.c (generic_elf_osabi_sniffer) <ELFOSABI_GNU>: Handle in the
5111 same way as ELFOSABI_NONE.
5112 <ELFOSABI_LINUX, ELFOSABI_HURD>: Remove cases.
5113
e5dd4106
TJB
51142011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
5115
5116 * breakpoint.c: Fix typos in comments.
5117 * linespec.c: Likewise.
5118 * symtab.c: Likewise.
5119
d40102a1
JB
51202011-07-04 Joel Brobecker <brobecker@adacore.com>
5121
5122 * dwarf2-frame.c (dwarf2_build_frame_info): Do not load .eh_frame
5123 section in separate object files.
5124
2f741504
JK
51252011-07-04 Jan Kratochvil <jan.kratochvil@redhat.com>
5126
5127 Fix false GCC warning.
5128 * linespec.c (decode_line_1): Initialize values.
5129
418c7cf7
JK
51302011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
5131
5132 * linespec.c (find_method): Accept the function type automatically only
5133 if it was specified with parameter types.
5134
3d50dd94
JK
51352011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
5136
5137 Stop on first linespec terminator instead of eating what we can.
5138 * linespec.c (is_linespec_boundary): New function.
5139 (name_end): Remove function.
5140 (keep_name_info): New parameter on_boundary, replace the body.
5141 (decode_line_1): Provide the parameter to keep_name_info.
5142 (decode_compound): Likewise. Drop the trailing java return type
5143 handling. Twice.
5144
dcf9f4ab
JK
51452011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
5146
5147 Fall back linespec to minimal symbols.
5148 * linespec.c (decode_line_1): New variable ex, saved_argptr. Protect
5149 decode_compound by TRY_CATCH, fall back on minsyms if it failed.
5150 (find_method, symbol_found): Change error to cplusplus_error.
5151
3f542ed1
JK
51522011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
5153
bc68c4e5 5154 * symtab.c (symbol_find_demangled_name): Remove DMGL_VERBOSE.
3f542ed1 5155
900e11f9
JK
51562011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
5157 Tom Tromey <tromey@redhat.com>
5158
5159 * dwarf2read.c (check_physname): New variable.
5160 (dwarf2_physname): Prefer DW_AT_linkage_name over dwarf2_compute_name.
5161 (show_check_physname): New function.
5162 (_initialize_dwarf2_read): Add `check-physname' for check_physname.
5163
2301925d
JB
51642011-07-01 Joel Brobecker <brobecker@adacore.com>
5165
5166 * machoread.c (macho_symfile_read): Delete OBE comment.
5167
38947cca
JB
51682011-07-01 Joel Brobecker <brobecker@adacore.com>
5169
5170 * machoread.c (struct macho_oso_data): Delete.
5171 (current_oso): Delete.
5172 (macho_relocate_common_syms): New function, mostly extracted
5173 out of
5174 (macho_add_oso_symfile): Call macho_relocate_common_syms.
5175 Remove code that sets and unset current_oso.
5176 (macho_symfile_relocate): Delete handling of common symbols,
5177 now moved to macho_relocate_common_syms.
5178
a7aa0d73
JB
51792011-07-01 Joel Brobecker <brobecker@adacore.com>
5180
5181 * darwin-nat.c (darwin_ptrace): Add documentation.
5182 Set errno to zero before calling ptrace. If ptrace returns
5183 -1 and errno is zero, then change then return zero.
5184 (darwin_kill_inferior): Issue a warning instead of triggering
5185 a failed assertion when the PT_KILL ptrace operations returned
5186 nonzero.
5187
5e9bc145
JB
51882011-07-01 Joel Brobecker <brobecker@adacore.com>
5189
5190 * darwin-nat.c (darwin_detach): Call darwin_resume_inferior
5191 only when inf->private->no_ptrace.
5192
00eb2c4a
JB
51932011-07-01 Joel Brobecker <brobecker@adacore.com>
5194
5195 * ada-lang.c (print_it_exception): Print temporary catchpoints
5196 as "Temporary catchpoint".
5197 (print_mention_exception): Likewise.
5198
127c81bc
TT
51992011-07-01 Tom Tromey <tromey@redhat.com>
5200
5201 * jv-lang.c (java_language_defn): Use java_printchar,
5202 java_printstr.
5203 (java_get_encoding): New function.
5204 (java_emit_char): Use generic_emit_char.
5205 (java_printchar): New function.
5206 (java_printstr): Likewise.
5207
25552254
JB
52082011-07-01 Joel Brobecker <brobecker@adacore.com>
5209
5210 * ada-typeprint.c (print_record_type): If unable to decode
5211 the name of the parent type, use the encoded name.
5212
d2d43431
JB
52132011-07-01 Jean-Charles Delay <delay@adacore.com>
5214
5215 * ada-typeprint.c (ada_print_type): Fix both PAD type and
5216 pointer to constrained packed array type output.
5217 * ada-valprint.c (ada_val_print_1): Fix pointer to constrained
5218 packed array output.
5219
54ae186f
JB
52202011-07-01 Jean-Charles Delay <delay@adacore.com>
5221
5222 * ada-typeprint.c (print_array_type): removed if condition on show
5223 being negative for bounds printing.
5224
8f17729f
JB
52252011-07-01 Joel Brobecker <brobecker@adacore.com>
5226
5227 * ada-lang.c (ada_identical_enum_types_p): New function.
5228 (symbols_are_identical_enums): New function.
5229 (remove_extra_symbols): Do nothing if NSYMS < 2.
5230 Use symbols_are_identical_enums.
5231
f5aa6869
JB
52322011-07-01 Joel Brobecker <brobecker@adacore.com>
5233
5234 * ada-valprint.c (ada_value_print): Handle typedefs.
5235
8f465ea7
JB
52362011-07-01 Joel Brobecker <brobecker@adacore.com>
5237
5238 * ada-lang.c (ada_evaluate_subexp): Add missing word in comment.
5239
828292f2
JB
52402011-07-01 Eric Botcazou <ebotcazou@adacore.com>
5241
5242 * ada-lang.c (thin_descriptor_type): Deal with typedefs.
5243 (decode_constrained_packed_array): Likewise.
5244 (ada_evaluate_subexp) <TERNOP_SLICE>: Likewise.
5245
18920c42
JB
52462011-07-01 Joel Brobecker <brobecker@adacore.com>
5247
5248 * ada-exp.y (convert_char_literal): Handle typedef types.
5249
c90092fe
JB
52502011-07-01 Joel Brobecker <brobecker@adacore.com>
5251
5252 * ada-lang.c (ada_remove_trailing_digits): Expand documentation.
5253
f748fb40
TT
52542011-06-30 Tom Tromey <tromey@redhat.com>
5255
5256 * varobj.c (varobj_create): Call do_cleanups on early exit path.
5257 * valops.c (find_overload_match): Call do_cleanups on early exit
5258 path.
5259 * solib.c (solib_find): Call do_cleanups on early exit path.
5260
3bb47e8b
TT
52612011-06-30 Tom Tromey <tromey@redhat.com>
5262
5263 * symfile-mem.c (symbol_file_add_from_memory): Call do_cleanups.
5264 * solib-svr4.c (open_symbol_file_object): Call do_cleanups on all
5265 return paths. Defer final do_cleanups until last return.
5266 * arm-tdep.c (arm_exidx_new_objfile): Make null cleanup after
5267 early return.
5268
4727bad3
TT
52692011-06-30 Tom Tromey <tromey@redhat.com>
5270
5271 * Makefile.in (SUBDIR_MI_CFLAGS): Don't add -DMI_OUT=1.
5272
bb361dbf
AB
52732011-06-30 Andrew Burgess <aburgess@broadcom.com>
5274
5275 * MAINTAINERS (Write After Approval): Add myself to the list.
5276
e0d00bc7
JK
52772011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
5278
5279 Disable epilogue unwinders on recent GCCs.
5280 * amd64-tdep.c (amd64_in_function_epilogue_p): New variable symtab,
5281 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
5282 * dwarf2read.c (process_full_comp_unit): Initialize
5283 EPILOGUE_UNWIND_VALID.
5284 * i386-tdep.c (i386_in_function_epilogue_p): New variable symtab,
5285 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
5286 * symtab.h (struct symtab): New field epilogue_unwind_valid.
5287
4632c0d0
JK
52882011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
5289
5290 Code cleanup - reformatting.
5291 * dwarf2read.c (producer_is_gcc_ge_4_0): Rename to ...
5292 (producer_is_gcc_ge_4): ... here, change the return value.
5293 (process_full_comp_unit): New variable gcc_4_minor, adjust the value
5294 interpretation.
5295
32019081
JK
52962011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
5297
5298 Fix non-only rename list for Fortran modules import.
5299 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Adjust the
5300 cp_add_using_directive caller.
5301 (cp_add_using_directive): New parameter excludes, describe it. New
5302 variables ix and param. Compare if also excludes match. Allocate NEW
5303 with variable size, initialize EXCLUDES there.
5304 (cp_lookup_symbol_imports): New variable excludep, test
5305 current->EXCLUDES with it.
5306 * cp-support.h: Include vec.h.
5307 (struct using_direct): New field excludes, describe it.
5308 (DEF_VEC_P (const_char_ptr)): New.
5309 (cp_add_using_directive): New parameter excludes.
5310 * defs.h (const_char_ptr): New typedef.
5311 * dwarf2read.c (read_import_statement): New variables child_die,
5312 excludes and cleanups, read in excludes.
5313 (read_namespace): Adjust the cp_add_using_directive caller.
5314
70c622a3
JK
53152011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
5316
5317 Code cleanup.
5318 * cp-namespace.c (cp_add_using_directive): Turn positive comparison to
5319 negative comparisons.
5320
39c4d40a
TT
53212011-06-29 André Pönitz <andre.poenitz@nokia.com>
5322
5323 * mi/mi-main.c (mi_cmd_list_features): Emit
5324 breakpoint-notifications.
5325
3b2b8fea
TT
53262011-06-29 Tom Tromey <tromey@redhat.com>
5327
5328 PR fortran/10036:
5329 * valprint.h (generic_emit_char, generic_printstr): Declare.
5330 * valprint.c (wchar_printable, append_string_as_wide)
5331 (print_wchar): Move from c-lang.c.
5332 (generic_emit_char): New function; mostly taken from c_emit_char.
5333 (generic_printstr): New function; mostly taken from c_printstr.
5334 * f-valprint.c (f_val_print) <TYPE_CODE_ARRAY>: Handle strings
5335 represented as arrays.
5336 <TYPE_CODE_CHAR>: Treat as TYPE_CODE_INT; recognize as character
5337 type.
5338 * f-typeprint.c (f_type_print_base) <TYPE_CODE_CHAR>: Treat
5339 identically to TYPE_CODE_INT.
5340 * f-lang.c (f_get_encoding): New function.
5341 (f_emit_char): Use generic_emit_char.
5342 (f_printchar): Replace comment.
5343 (f_printstr): Use generic_printstr.
5344 * dwarf2read.c (read_base_type) <DW_ATE_unsigned>: Handle Fortran
5345 "character" types specially.
5346 <DW_ATE_signed_char, DW_ATE_unsigned_char>: Make TYPE_CODE_CHAR
5347 for Fortran.
5348 * c-lang.c (wchar_printable, append_string_as_wide, print_wchar):
5349 Move to valprint.c
5350 (c_emit_char): Call generic_emit_char.
5351 (c_printstr): Call generic_printstr.
5352
168e6d44
GB
53532011-06-29 Gary Benson <gbenson@redhat.com>
5354
5355 * breakpoint.c (bpstat_what): Removed duplicated case.
5356
1c033f8c
TT
53572011-06-28 Tom Tromey <tromey@redhat.com>
5358
5359 * python/python-internal.h (PY_SSIZE_T_CLEAN): Define.
5360
5fe41fbf
TT
53612011-06-27 Tom Tromey <tromey@redhat.com>
5362
5363 * valops.c (find_overload_match): Call do_cleanups before early
5364 return.
5365 * top.c (execute_command): Call do_cleanups before early return.
5366 (command_loop): Likewise.
5367 * stack.c (backtrace_command): Make a null cleanup early. Don't
5368 conditionally call do_cleanups.
5369 * python/py-value.c (TRY_CATCH): Move cleanup handling into
5370 TRY_CATCH.
5371 * python/py-breakpoint.c (gdbpy_breakpoint_has_py_cond): Rearrange
5372 so cleanups are always run.
5373 * mi/mi-cmd-var.c (mi_cmd_var_delete): Reset old_cleanups.
5374 * findcmd.c (parse_find_args): Call do_cleanups on early return
5375 path.
5376 * dbxread.c (elfstab_build_psymtabs): Make a null cleanup early.
5377 Don't conditionally call do_cleanups.
5378 * cli/cli-script.c (execute_user_command): Initialize 'old_chain'
5379 later.
5380
e26bd57d
EB
53812011-06-27 Eric Botcazou <ebotcazou@adacore.com>
5382
5383 * MAINTAINERS (Write After Approval): Use default email address.
5384
6c3097fc
JB
53852011-06-27 Joel Brobecker <brobecker@adacore.com>
5386
5387 * MAINTAINERS (Write After Approval): Add Eric Botcazou.
5388
369c397b
JB
53892011-06-27 Eric Botcazou <ebotcazou@adacore.com>
5390
5391 * sparc-tdep.h (struct sparc_frame_cache): Add frame_offset,
5392 saved_regs_mask and copied_regs_mask fields.
5393 (sparc_record_save_insn): New prototype.
5394 * sparc-tdep.c (sparc_alloc_frame_cache): Initialize the new fields.
5395 (sparc_record_save_insn): New function.
5396 (sparc_analyze_prologue): Add head comment. Recognize store insns
5397 of call-saved registers. Use OFFSET consistently. Recognize flat
5398 frames and cache their settings.
5399 (sparc32_skip_prologue): Handle flat frames.
5400 (sparc_frame_cache): Add frame_offset to the base address.
5401 (sparc32_frame_cache): Adjust to new frame description.
5402 (sparc32_frame_prev_register): Likewise.
5403 * sparc64-tdep.c (sparc64_frame_prev_register): Likewise.
5404 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
5405 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
5406 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_cache): Force the
5407 frame by calling sparc_record_save_insn.
5408 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_cache): Likewise.
5409 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_cache): Likewise.
5410 * sparc64obsd-tdep.c (sparc64obsd_frame_cache): Likewise.
5411
b315ab21
TG
54122011-06-27 Tristan Gingold <gingold@adacore.com>
5413
5414 * dwarf2read.c (struct dwarf2_section_info): Replace was_mmapped
5415 field by map_addr and map_len.
5416 (dwarf2_read_section): Adjust for the new bfd_mmap api.
5417 (munmap_section_buffer): Likewise.
5418
ddd49eee
TT
54192011-06-24 Tom Tromey <tromey@redhat.com>
5420
5421 * varobj.c (update_dynamic_varobj_children): Make 'name' const.
5422 * symtab.h (lookup_struct, lookup_union, lookup_enum): Update.
5423 * python/python.c (gdbpy_parameter): Make 'arg' const.
5424 (execute_gdb_command): Likewise.
5425 (gdbpy_decode_line): Likewise. Copy it.
5426 (gdbpy_parse_and_eval): Make 'expr_string' const. Copy it.
5427 (gdbpy_write): Make 'arg' const.
5428 * python/py-type.c (typy_lookup_typename): Make 'type_name'
5429 const.
5430 (gdbpy_lookup_type): Likewise.
5431 * python/py-prettyprint.c (print_children): Make 'name' const.
5432 * python/py-param.c (parmpy_init): Make 'name' const. Copy it.
5433 * python/py-inferior.c (infpy_write_memory): Make 'buf_len' a
5434 Py_ssize_t.
5435 * python/py-function.c (fnpy_init): Make 'name' const.
5436 * python/py-cmd.c (cmdpy_init): Make 'name' const. Copy it.
5437 (gdbpy_string_to_argv): Make 'input' const.
5438 * python/py-breakpoint.c (bppy_init): Make 'spec' const. Copy
5439 it.
5440 * gdbtypes.h (lookup_typename): Update.
5441 * gdbtypes.c (lookup_typename): Make 'name' const.
5442 (lookup_struct): Likewise.
5443 (lookup_union): Likewise.
5444 (lookup_enum): Likewise.
5445
5998129b
TT
54462011-06-24 Tom Tromey <tromey@redhat.com>
5447
5448 * Makefile.in (HFILES_NO_SRCDIR): Add "common/" to
5449 gdb_thread_db.h. Move all common/ entries to be together.
5450 (TAGS): Don't depend on DEPFILES.
5451
6e586cc5
YQ
54522011-06-23 Yao Qi <yao@codesourcery.com>
5453
5454 * infrun.c (start_remote): Move call init_wait_for_inferior to ...
5455 * remote.c (remote_start_remote): ... here.
5456 * monitor.c (monitor_open): ... here.
5457
86c3c1fc
AB
54582011-06-23 Andrew Burgess <aburgess@broadcom.com>
5459
5460 * gdbtypes.c (append_composite_type_field_aligned): Fix
5461 calculation of bit position based on alignment.
5462
28010a5d
PA
54632011-06-22 Pedro Alves <pedro@codesourcery.com>
5464
5465 * breakpoint.c (bpstat_stop_status): Call the check_status
5466 breakpoint_ops method.
5467 (print_one_breakpoint_location): Also print the condition for Ada
5468 exception catchpoints.
5469 (allocate_bp_location): New, factored out from
5470 allocate_bp_location.
5471 (allocate_bp_location): Adjust. Call the owner breakpoint's
5472 allocate_location method, if there is one.
5473 (free_bp_location): Call the locations's dtor method, if there is
5474 one.
5475 (init_raw_breakpoint_without_location): New breakpoint_ops
5476 parameter. Use it.
5477 (set_raw_breakpoint_without_location): Adjust.
5478 (init_raw_breakpoint): New breakpoint_ops parameter. Pass it down.
5479 (set_raw_breakpoint): Adjust.
5480 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
5481 (catch_syscall_breakpoint_ops): Install NULL allocate_location,
5482 re_set and check_status methods.
5483 (init_catchpoint): Don't memset, initialize thread, addr_string
5484 and enable_state. Pass the ops down to init_raw_breakpoint.
5485 (install_catchpoint): Rename to ...
5486 (install_breakpoint): ... this, and make extern.
5487 (create_fork_vfork_event_catchpoint): Adjust.
5488 (catch_exec_breakpoint_ops): Install NULL allocate_location,
5489 re_set and check_status methods.
5490 (create_syscall_event_catchpoint): Adjust.
5491 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
5492 (masked_watchpoint_breakpoint_ops): Install NULL
5493 allocate_location, re_set and check_status methods.
5494 (catch_exec_command_1): Adjust.
5495 (gnu_v3_exception_catchpoint_ops): Install NULL allocate_location,
5496 re_set and check_status methods.
5497 (create_ada_exception_breakpoint): Rename to ...
5498 (init_ada_exception_breakpoint): ... this. Add a struct
5499 breakpoint parameter, and delete the exp_string, cond_string and
5500 cond parameters. Use init_raw_breakpoint, and don't install or
5501 mention the breakpoint yet. Don't clear breakpoint fields that
5502 init_raw_breakpoint already clears.
5503 (re_set_breakpoint): Delete, split into ...
5504 (breakpoint_re_set_default, prepare_re_set_context): ... these new
5505 functions.
5506 (breakpoint_re_set_one): Call the breakpoint's
5507 breakpoint_ops->re_set implementation, if there's one. Adjust.
5508 * breakpoint.h: Forward declare struct bpstats and struct bp_location.
5509 (struct bp_location_ops): New type.
5510 (struct bp_location): New field `ops'.
5511 (struct breakpoint_ops): New `allocate_location', `re_set' and
5512 `check_status' fields. Make `breakpoint_hit''s description match
5513 reality.
5514 (init_bp_location): Declare.
5515 (breakpoint_re_set_default): Declare.
5516 (create_ada_exception_breakpoint): Rename to ...
5517 (init_ada_exception_breakpoint): ... this. Add a struct
5518 breakpoint parameter, and delete the exp_string, cond_string and
5519 cond parameters.
5520 (install_breakpoint): Declare.
5521 * ada-lang.c: Include exceptions.h.
5522 <Ada exceptions description>: Update.
5523 (struct ada_catchpoint_location): New type.
5524 (ada_catchpoint_location_dtor): New function.
5525 (ada_catchpoint_location_ops): New global.
5526 (ada_catchpoint): New type.
5527 (create_excep_cond_exprs): New function.
5528 (dtor_exception, allocate_location_exception, re_set_exception)
5529 (should_stop_exception, check_status_exception): New functions.
5530 (print_one_exception, print_mention_exception)
5531 (print_recreate_exception): Adjust.
5532 (dtor_catch_exception, allocate_location_catch_exception)
5533 (re_set_catch_exception, check_status_catch_exception): New
5534 functions.
5535 (catch_exception_breakpoint_ops): Install them.
5536 (dtor_catch_exception_unhandled)
5537 (allocate_location_catch_exception_unhandled)
5538 (re_set_catch_exception_unhandled)
5539 (check_status_catch_exception_unhandled): New functions.
5540 (catch_exception_unhandled_breakpoint_ops): Install them.
5541 (dtor_catch_assert, allocate_location_catch_assert)
5542 (re_set_catch_assert, check_status_catch_assert): New functions.
5543 (catch_assert_breakpoint_ops): Install them.
5544 (ada_exception_catchpoint_p): Delete.
5545 (catch_ada_exception_command_split)
5546 (ada_exception_catchpoint_cond_string): Rename exp_string
5547 parameter to excep_string. Adjust.
5548 (ada_parse_catchpoint_condition): Delete.
5549 (ada_exception_sal): Rename the exp_string parameter to
5550 excep_string. Delete the cond_string and cond parameters.
5551 Adjust.
5552 (ada_decode_exception_location): Rename the exp_string parameter
5553 to excep_string. Delete the cond_string and cond parameters.
5554 Adjust.
5555 (create_ada_exception_catchpoint): New function.
5556 (catch_ada_exception_command, ada_decode_assert_location)
5557 (catch_assert_command): Adjust.
5558 * ada-lang.h (ada_exception_catchpoint_p): Delete declaration.
5559
9ac4176b
PA
55602011-06-22 Pedro Alves <pedro@codesourcery.com>
5561
5562 * ada-lang.c: Include arch-utils.h.
5563 (ada_decode_exception_location): Make static.
5564 (catch_ada_exception_command): Moved here from breakpoint.c.
5565 (ada_decode_assert_location): Make static.
5566 (catch_assert_command): Moved here from breakpoint.c.
5567 (_initialize_ada_lang): Install the exception and assert
5568 catchpoint commands here.
5569 * ada-lang.h (ada_decode_exception_location)
5570 (ada_decode_assert_location): Delete declarations.
5571 * breakpoint.c (CATCH_PERMANENT, CATCH_TEMPORARY): Moved to
5572 breakpoint.h.
5573 (create_ada_exception_breakpoint): Make extern.
5574 (catch_ada_exception_command, catch_assert_command): Moved to
5575 ada-lang.c.
5576 (add_catch_command): Make extern.
5577 (_initilize_breakpoint): Don't install the exception and assert
5578 catchpoint commands here.
5579 * breakpoint.h (CATCH_PERMANENT, CATCH_TEMPORARY): Moved from
5580 breakpoint.c
5581 (add_catch_command, create_ada_exception_breakpoint): Declare.
5582
c56053d2
PA
55832011-06-22 Pedro Alves <pedro@codesourcery.com>
5584
5585 * breakpoint.c (init_raw_breakpoint_without_location): Don't add
5586 the breakpoint to the breakpoint chain here.
5587 (set_raw_breakpoint_without_location): Add the breakpoint to the
5588 breakpoint chain here.
5589 (init_raw_breakpoint): Adjust comments.
5590 (set_raw_breakpoint): Add the breakpoint to the breakpoint chain
5591 here.
5592 (init_catchpoint): Don't set the catchpoint's breakpoint number
5593 here.
5594 (install_catchpoint): New function.
5595 (create_fork_vfork_event_catchpoint)
5596 (create_syscall_event_catchpoint, catch_exec_command_1): Adjust to
5597 use install_catchpoint.
5598
d2f3fc74
PA
55992011-06-22 Pedro Alves <pedro@codesourcery.com>
5600
5601 * breakpoint.c (create_catchpoint_without_mention)
5602 (create_catchpoint): Delete.
5603
b4d90040
PA
56042011-06-22 Pedro Alves <pedro@codesourcery.com>
5605
5606 * breakpoint.h (struct breakpoint): Delete field `exec_pathname'.
5607 * breakpoint.c (init_raw_breakpoint_without_location): Remove
5608 reference to exec_pathname.
5609 (struct exec_catchpoint): New type.
5610 (dtor_catch_exec): New function.
5611 (insert_catch_exec, print_it_catch_exec, print_one_catch_exec): Adjust.
5612 (catch_exec_breakpoint_ops): Install dtor_catch_syscall.
5613 (catch_exec_command_1): Adjust to use init_catchpoint.
5614 (delete_breakpoint): Remove reference to exec_pathname.
5615
be5c67c1
PA
56162011-06-22 Pedro Alves <pedro@codesourcery.com>
5617
5618 * breakpoint.h (struct breakpoint_ops): New field `dtor'.
5619 (struct breakpoint): Delete field `syscalls_to_be_caught'.
5620 * breakpoint.c (init_raw_breakpoint_without_location): Remove
5621 reference to syscalls_to_be_caught.
5622 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops): Install a
5623 NULL `dtor'.
5624 (struct syscall_catchpoint): New type.
5625 (dtor_catch_syscall): New function.
5626 (insert_catch_syscall, remove_catch_syscall)
5627 (breakpoint_hit_catch_syscall, print_one_catch_syscall)
5628 (print_recreate_catch_syscall): Adjust.
5629 (catch_syscall_breakpoint_ops): Install dtor_catch_syscall.
5630 (catch_exec_breakpoint_ops): Install a NULL `dtor'.
5631 (create_syscall_event_catchpoint): Adjust to use init_catchpoint.
5632 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
5633 (masked_watchpoint_breakpoint_ops)
5634 (gnu_v3_exception_catchpoint_ops): Install a NULL `dtor'.
5635 (delete_breakpoint): Call the `dtor' breakpoint_ops method, if
5636 there is one. Remove references to syscalls_to_be_caught.
5637 (catching_syscall_number): Adjust.
5638 * ada-lang.c (catch_exception_breakpoint_ops)
5639 (catch_exception_unhandled_breakpoint_ops)
5640 (catch_assert_breakpoint_ops): Install a NULL `dtor'.
5641
e29a4733
PA
56422011-06-22 Pedro Alves <pedro@codesourcery.com>
5643
5644 * breakpoint.h (struct breakpoint): Delete forked_inferior_pid
5645 field.
5646 * breakpoint.c (init_raw_breakpoint_without_location): Remove
5647 reference to forked_inferior_pid.
5648 (struct fork_catchpoint): New type.
5649 (breakpoint_hit_catch_fork, print_it_catch_fork)
5650 (print_one_catch_fork, breakpoint_hit_catch_vfork)
5651 (print_it_catch_vfork, print_one_catch_vfork): Adjust.
5652 (create_fork_vfork_event_catchpoint): Adjust to use
5653 init_catchpoint.
5654
346774a9
PA
56552011-06-22 Pedro Alves <pedro@codesourcery.com>
5656
5657 * breakpoint.c (add_to_breakpoint_chain)
5658 (init_raw_breakpoint_without_location): New functions, factored
5659 out from ...
5660 (set_raw_breakpoint_without_location): ... this one.
5661 (init_raw_breakpoint): New function, factored out from
5662 set_raw_breakpoint and adjusted to use
5663 init_raw_breakpoint_without_location.
5664 (set_raw_breakpoint): Adjust.
5665 (init_catchpoint): New function, factored out from
5666 create_catchpoint_without_mention and adjusted to use
5667 init_raw_breakpoint.
5668 (create_catchpoint_without_mention): Adjust.
5669
c38c4bc5
TT
56702011-06-22 Tom Tromey <tromey@redhat.com>
5671
5672 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_convert>: Treat type
5673 argument of 0 specially.
5674
b138ce37
YQ
56752011-06-22 Yao Qi <yao@codesourcery.com>
5676
5677 * infrun.c (handle_inferior_event): Remove write-only local variable
5678 `sw_single_step_trap_p'.
5679
03de6823
TT
56802011-06-20 Tom Tromey <tromey@redhat.com>
5681
5682 * symtab.c (lookup_language_this): End loop if block is NULL.
5683
66a17cb6
TT
56842011-06-17 Tom Tromey <tromey@redhat.com>
5685
5686 * valops.c (value_of_this): Use lookup_language_this.
5687 * symtab.h (lookup_language_this): Declare.
5688 * symtab.c (lookup_language_this): New function.
5689 (lookup_symbol_aux): Use lookup_language_this.
5690 * ax-gdb.c (gen_expr) <OP_THIS>: Use lookup_language_this.
5691
7518bff5
TT
56922011-06-17 Tom Tromey <tromey@redhat.com>
5693
5694 * value.h (value_of_this): Update.
5695 (value_of_local): Remove.
5696 * valops.c (value_of_this): Rename from value_of_local. Change
5697 parameters.
5698 * p-exp.y (exp): Update.
5699 (variable): Likewise.
5700 * eval.c (evaluate_subexp_standard) <OP_THIS>: Use value_of_this.
5701
aee28ec6
TT
57022011-06-17 Tom Tromey <tromey@redhat.com>
5703
5704 * valops.c (value_of_local): Complain if NAME is NULL.
5705 * std-operator.def (OP_OBJC_SELF): Remove.
5706 * parse.c (operator_length_standard) <OP_OBJC_SELF>: Remove.
5707 * objc-exp.y (name_not_typename): Use OP_THIS.
5708 * expprint.c (print_subexp_standard) <OP_THIS>: Print language's
5709 name for "this".
5710 <OP_OBJC_SELF>: Remove.
5711 * eval.c (evaluate_subexp_standard) <OP_OBJC_SELF>: Remove.
5712
eed8f803
TG
57132011-06-16 Tristan Gingold <gingold@adacore.com>
5714
5715 * python/py-events.h (gdb_py_events): Make it extern.
5716 * python/py-evtregistry.c (gdb_py_events): Declare.
5717
864ac8a7
HZ
57182011-06-16 Hui Zhu <teawater@gmail.com>
5719
5720 * remote.c (remote_trace_set_readonly_regions): Add check for
5721 remote_protocol_packets[PACKET_qXfer_traceframe_info].support before
5722 output warning.
5723
ef7e8358
UW
57242011-06-15 Ulrich Weigand <ulrich.weigand@linaro.org>
5725
5726 * arm-linux-tdep.c: Include "auxv.h".
5727 (AT_HWCAP): Define.
5728 (ARM_LINUX_SIZEOF_VFP): Define.
5729 (arm_linux_supply_vfp): New function.
5730 (arm_linux_collect_vfp): Likewise.
5731 (arm_linux_regset_from_core_section): Handle .reg-arm-vfp sections.
5732 (arm_linux_fpa_regset_sections): New variable.
5733 (arm_linux_vfp_regset_sections): Likewise.
5734 (arm_linux_core_read_description): New function.
5735 (arm_linux_init_abi): Install arm_linux_core_read_description and
5736 arm_linux_fpa_regset_sections or arm_linux_vfp_regset_sections as
5737 appropriate for the architecture.
5738 * arm-tdep.h (struct gdbarch_tdep): Add member "vfpregset".
5739 (tdesc_arm_with_m): Declare.
5740 (tdesc_arm_with_iwmmxt): Likewise.
5741 (tdesc_arm_with_vfpv2): Likewise.
5742 (tdesc_arm_with_vfpv3): Likewise.
5743 (tdesc_arm_with_neon): Likewise.
5744 * arm-linux-nat.c: Move features/*.c includes ...
5745 * arm-tdep.c: ... here.
5746 * arm-linux-nat.c (arm_linux_read_description): Move initializing
5747 target description data structures ...
5748 * arm-tdep.c (_initialize_arm_tdep): ... here.
5749 * arm-linux-nat.c (HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3,
5750 HWCAP_VFPv3D16): Move definitions ...
5751 * arm-linux-tdep.h: ... here.
5752
c2fa21f1
HZ
57532011-06-15 Hui Zhu <teawater@gmail.com>
5754
5755 * remote.c (remote_trace_set_readonly_regions): Add a check for
5756 target_buf_size.
5757
dd707e8e
TT
57582011-06-14 Tom Tromey <tromey@redhat.com>
5759
5760 * coffread.c (coffread_objfile): Rename from current_objfile.
5761 * dbxread.c (dbxread_objfile): Rename from current_objfile.
5762 * mdebugread.c (mdebugread_objfile): Rename from current_objfile.
5763
86cc0029
TT
57642011-06-14 Tom Tromey <tromey@redhat.com>
5765
5766 * jv-lang.c (jv_type_objfile_data_key, dynamics_objfile)
5767 (class_symtab): Remove.
5768 (jv_dynamics_progspace_key): New global.
5769 (jv_per_objfile_free): Reset program space data. Update assert.
5770 Don't clear globals.
5771 (get_dynamics_objfile): Use and set program space data.
5772 (get_java_class_symtab): Use get_dynamics_objfile.
5773 (add_class_symbol): Likewise.
5774 (java_link_class_type): Likewise.
5775 (java_object_type, jv_clear_object_type, set_java_object_type):
5776 Remove.
5777 (get_java_object_type): Update. Don't cache result.
5778 (is_object_type): Don't call set_java_object_type.
5779 (_initialize_java_language): Don't set jv_type_objfile_data_key;
5780 initialize jv_dynamics_progspace_key.
5781
91a81f69
TT
57822011-06-14 Tom Tromey <tromey@redhat.com>
5783
5784 * symtab.h (current_objfile): Don't declare.
5785 * objfiles.h (current_objfile): Don't declare.
5786 * objfiles.c (current_objfile): Remove.
5787 * mdebugread.c (current_objfile): New file-scope global.
5788 * dbxread.c (current_objfile): New file-scope global.
5789 * coffread.c (current_objfile): New file-scope global.
5790
dc7eb48e
PA
57912011-06-13 Pedro Alves <pedro@codesourcery.com>
5792
5793 * top.h (line): Rename to ...
5794 (saved_command_line): ... this.
5795 (linesize): Rename to ...
5796 (saved_command_line_size): ... this.
5797 * top.c (line): Rename to ...
5798 (saved_command_line): ... this.
5799 (linesize): Rename to ...
5800 (saved_command_line_size): ... this.
5801 (dont_repeat, command_line_input, dont_repeat_command): Adjust.
5802 * event-top.c (command_line_handler): Adjust.
5803 * main.c (captured_main): Adjust.
5804
0d6c2135
MK
58052011-06-12 Mark Kettenis <kettenis@gnu.org>
5806
5807 * i386-tdep.c (i386_epilogue_frame_cache): Simplify code. Call
5808 get_frame_func instead of get_frame_pc to determine the code
5809 address used to construct the frame ID.
5810 (i386_epilogue_frame_unwind_stop_reason): Fix coding style.
5811 (i386_epilogue_frame_this_id): Likewise.
5812 (i386_epilogue_frame_prev_register): New function.
5813 (i386_epilogue_frame_unwind): Use i386_epilogue_frame_prev_register.
5814 (i386_stack_tramp_frame_sniffer): Fix coding style.
5815 (i386_stack_tramp_frame_unwind): Use i386_epilogue_frame_prev_register.
5816 (i386_gdbarch_init): Fix comments.
5817
8bbdd3f4
MK
58182011-06-12 Mark Kettenis <kettenis@gnu.org>
5819
5820 * i386-tdep.c (i386_match_insn_block): Use length of the proper
5821 instruction when walking back through the instruction stream.
5822
533a737e
JK
58232011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
5824
5825 * symtab.c (output_partial_symbol_filename): Exchange the filename and
5826 fullname parameters order.
5827
44b13c5a
JK
58282011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
5829
5830 Code cleanup.
5831 * dwarf2read.c (dw2_map_symbol_filenames): Use symbol_filename_ftype
5832 for fun.
5833 * psymtab.c (map_symbol_filenames_psymtab)
5834 (map_partial_symbol_filenames): Likewise.
5835 * psymtab.h: Include symfile.h.
5836 (map_partial_symbol_filenames): Use symbol_filename_ftype for fun.
5837 * symfile.h (symbol_filename_ftype): New.
5838 (struct quick_symbol_functions): Use symbol_filename_ftype for fun of
5839 map_symbol_filenames, clarify more the naming in comment.
5840
0b5574da
DE
58412011-06-07 Doug Evans <dje@google.com>
5842
5843 * cc-with-index.sh: Fix typos in comment.
b8e9bd6c 5844 Look for ../../gdb, for fullname.exp.
0b5574da 5845
5be4dfca
JK
58462011-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
5847 Pedro Alves <pedro@codesourcery.com>
5848
5849 * cli/cli-cmds.c (shell_escape): Use waitpid.
5850 * rs6000-nat.c (exec_one_dummy_insn): Likewise.
5851
316a8b21
TG
58522011-06-07 Tristan Gingold <gingold@adacore.com>
5853
5854 * xcoffread.c (dwarf2_xcoff_names): New variable.
5855 (aix_process_linenos): Add a guard.
5856 (xcoff_symfile_finish): Free dwarf2.
5857 (xcoff_initial_scan): Add dwarf2 support.
5858
3dd5b83d
PA
58592011-06-06 Pedro Alves <pedro@codesourcery.com>
5860
5861 * infcall.c (run_inferior_call): Don't mask async. Instead force
5862 a synchronous wait, if the target can async.
5863
5864 * target.h (struct target_ops): Delete to_async_mask.
5865 (target_async_mask): Delete.
5866 * target.c (update_current_target): Delete references to to_async_mask.
5867 * linux-nat.c (linux_nat_async_mask_value): Delete.
5868 (linux_nat_is_async_p, linux_nat_can_async_p): Remove references
5869 to linux_nat_async_mask_value.
5870 (linux_nat_async_mask): Delete.
5871 (linux_nat_async, linux_nat_close): Remove references to
5872 linux_nat_async_mask_value.
5873 * record.c (record_async_mask_value): Delete.
5874 (record_async): Remove references to record_async_mask_value.
5875 (record_async_mask): Delete.
5876 (record_can_async_p, record_is_async_p): Remove references to
5877 record_async_mask_value.
5878 (init_record_ops, init_record_core_ops): Remove references to
5879 record_async_mask.
5880 * remote.c (remote_async_mask_value): Delete.
5881 (init_remote_ops): Remove reference to remote_async_mask.
5882 (remote_can_async_p, remote_is_async_p): Remove references to
5883 remote_async_mask_value.
5884 (remote_async): Remove references to remote_async_mask_value.
5885 (remote_async_mask): Delete.
5886
5887 * infrun.c (fetch_inferior_event): Don't claim registers changed
5888 if the current thread is already not executing.
5889
64b9b334
JB
58902011-06-03 Joel Brobecker <brobecker@adacore.com> (obvious fix)
5891
5892 From Stephen Kitt <steve@sk2.org>
5893 * breakpoint.c, breakpoint.h, cli/cli-dump.c, dwarf2expr.c,
5894 gdbarch.c, gdbarch.sh, remote.c: Various spelling fixes.
5895
325663dc
JB
58962011-06-03 Joel Brobecker <brobecker@adacore.com>
5897
5898 * dwarf2expr.c (execute_stack_op) [DW_OP_deref]: Handle
5899 the case where ADDR_SIZE is different from TYPE_LENGTH (type).
5900
8cf64490
TT
59012011-06-03 Tom Tromey <tromey@redhat.com>
5902
5903 * python/py-inferior.c (python_inferior_exit): Use inferior's exit
5904 code fields.
5905 * python/py-exitedevent.c (create_exited_event_object): Change
5906 type of 'exit_code'. Optionally add exit_code attribute.
5907 (emit_exited_event): Change type of 'exit_code'.
5908 * python/py-event.h (emit_exited_event): Update.
5909 * mi/mi-interp.c (mi_inferior_exit): Print exit code.
5910 * infrun.c (handle_inferior_event): Set exit code fields on
5911 inferior.
5912 * inferior.h (struct inferior) <has_exit_code, exit_code>: New
5913 fields.
5914 * inferior.c (exit_inferior_1): Initialize new fields.
5915
8ddd9a20
TT
59162011-06-03 Tom Tromey <tromey@redhat.com>
5917
5918 * dwarf2expr.c (get_signed_type): New function.
5919 (execute_stack_op) <DW_OP_shra>: Always perform a signed shift.
5920
8dfd1e6d
KS
59212011-06-02 Keith Seitz <keiths@redhat.com>
5922
5923 * objc-lang.c (find_methods): Increment objfile_csym earlier.
5924
65fdb766
PA
59252011-06-02 Pedro Alves <pedro@codesourcery.com>
5926
5927 * top.h (simplified_command_loop): Delete declaration.
5928
f4b8c29b
MF
59292011-06-01 Mike Frysinger <vapier@gentoo.org>
5930
5931 * remote-sim.c (gdbsim_open): Add the strlen of " --sysroot=" and
5932 gdb_sysroot to the "len" variable. Append both to "arg_buf".
5933
1706c199
YQ
59342011-06-01 Yao Qi <yao@codesourcery.com>
5935
5936 * objfiles.h (obj_section_addr): Update reference to objfile from
5937 `abfd' to `obfd'.
5938 (obj_section_endaddr): Likewise.
5939
d19cd713 59402011-06-01 Daniel Jacobowitz <drow@false.org>
8d07004d
DJ
5941
5942 * MAINTAINERS: Update my email address and affiliation. Also
5943 update Ian Lance Taylor's affiliation. Use UTF-8 for ludo@gnu.org.
5944
e8eb7bc5
KS
59452010-05-31 Keith Seitz <keiths@redhat.com>
5946
5947 PR c++/12750
5948 * linespec.c (get_search_block): New function.
5949 (find_methods): Add FILE_SYMTATB parameter and use it and
5950 get_search_block to pass an appropriate block to
5951 lookup_symbol_in_namespace.
5952 (decode_line_1): Record if *ARGPTR is single-quote enclosed.
5953 Check if *ARGPTR starts with a filename first.
5954 If it does, call locate_first_half again to locate the next
5955 "first half" of the linespec.
5956 Pass FILE_SYMTATB to decode_objc and decode_compound.
5957 Swallow the trailing single-quote if IS_SQUOTE_ENCLOSED.
5958 (locate_first_half): Stop on the first colon seen.
5959 (decode_compound): Add FILE_SYMTAB parameter.
5960 Pass FILE_SYMTAB to lookup_prefix_sym and find_method.
5961 (lookup_prefix_sym): Add FILE_SYMTAB parameter and use
5962 get_search_block with lookup_symbol.
5963 (find_method): Add FILE_SYMTAB parameter and pass it to
5964 find_methods.
5965 (decode_objc): Use get_search_block.
5966
2b1dbab0
KS
59672010-05-31 Keith Seitz <keiths@redhat.com>
5968
5969 PR symtab/12704
5970 * cp-namespace.c (ANONYMOUS_NAMESPACE_LEN): Remove.
5971 (cp_scan_for_anonymous_namespaces): Use CP_ANONYMOUS_NAMESPACE_STR
5972 and CP_ANONYMOUS_NAMESPACE_LEN.
5973 (cp_is_anonymous): Likewise.
5974 * cp-support.h (CP_ANONYMOUS_NAMESPACE_STR): Define.
5975 (CP_ANONYMOUS_NAMESPACE_LEN): Define.
5976 * dwarf2read.c (namespace_name): Likewise.
5977 (fixup_partial_die): Likewise.
5978 * linespec.c (decode_compound): If CP_ANONYMOUS_NAMESPACE_STR is
5979 seen in the input, keep it.
5980
6d549500
PA
59812011-05-30 Pedro Alves <pedro@codesourcery.com>
5982
5983 * target.h (enum inferior_event_type): Delete INF_QUIT_REQ.
5984 * inf-loop.h (inferior_event_handler_wrapper): Delete.
5985 * inf-loop.c (inferior_event_handler_wrapper): Delete.
5986 (inferior_event_handler): Don't handle INF_QUIT_REQ.
5987 * remote.c (_initialize_remote): Register
5988 async_remote_interrupt_twice directly as
5989 sigint_remote_twice_token event.
5990
395bff70
PA
59912011-05-30 Pedro Alves <pedro@codesourcery.com>
5992
5993 * target.h (enum inferior_event_type): Delete INF_ERROR.
5994 * inf-loop.c (inferior_event_handler): Don't handle INF_ERROR.
5995
97224164
PA
59962011-05-30 Pedro Alves <pedro@codesourcery.com>
5997
5998 * interps.c (interp_set): Don't cancel continuations.
5999
07e78767
JK
60002011-05-30 Jan Kratochvil <jan.kratochvil@redhat.com>
6001
6002 * linux-nat.c (linux_lwp_is_zombie): Use xsnprintf.
6003
fa4cd53f
PA
60042011-05-30 Pedro Alves <pedro@codesourcery.com>
6005
6006 * continuations.h (continuation_ftype): Add `err' parameter.
6007 Document parameters.
6008 (do_all_continuations, do_all_continuations_thread)
6009 (do_all_intermediate_continuations)
6010 (do_all_intermediate_continuations_thread)
6011 (do_all_inferior_continuations): Add `err' parameter.
6012 * continuations.c (do_my_continuations_1, do_my_continuations)
6013 (do_all_inferior_continuations, do_all_continuations_ptid)
6014 (do_all_continuations_thread_callback)
6015 (do_all_continuations_thread, do_all_continuations)
6016 (do_all_intermediate_continuations_thread_callback)
6017 (do_all_intermediate_continuations_thread)
6018 (do_all_intermediate_continuations): Add `err' parameter, and pass
6019 it down all the way to the continuations proper.
6020 * inf-loop.c (inferior_event_handler): If fetching an inferior
6021 event throws an error, don't pop the target, and still call the
6022 continuations, but with `err' set. Adjust all other continuation
6023 calls.
6024 * breakpoint.c (until_break_command_continuation): Add `err'
6025 parameter.
6026 * infcmd.c (step_1_continuation): Add `err' parameter. Don't
6027 issue another step if `err' is set.
6028 (struct until_next_continuation_args): New.
6029 (until_next_continuation): Add `err' parameter. Adjust.
6030 (until_next_command): Adjust.
6031 (struct finish_command_continuation_args): Add `thread' field.
6032 (finish_command_continuation): Add `err' parameter. Handle it.
6033 (finish_forward): Adjust.
6034 (attach_command_continuation): Add `err' parameter. Handle it.
6035 * infrun.c (infrun_thread_stop_requested_callback): Adjust to
6036 cancel the continuations.
6037 * interps.c (interp_set): Adjust to cancel the continuations.
6038 * thread.c (clear_thread_inferior_resources): Adjust to cancel the
6039 continuations rather than discarding.
6040 (free_thread): Don't clear thread inferior resources here.
6041 (delete_thread_1): Do it here instead. And do it before removing
6042 the thread from the threads list. Tag the thread as exited before
6043 clearing thread inferior resources.
6044
c2949be0
JB
60452011-05-30 Joel Brobecker <brobecker@adacore.com>
6046
6047 * infcall.c (call_function_by_hand): Rephrase error message.
6048
619cebe8
PA
60492011-05-27 Pedro Alves <pedro@codesourcery.com>
6050
6051 * defs.h (struct thread_info, struct inferior): Delete forward
6052 declarations.
6053 * breakpoint.h (struct thread_info): New forward declaration.
6054 * observer.sh (struct inferior): New forward declaration.
6055 * python/python-internal.h (struct inferior): New forward
6056 declaration.
6057
be34f849
PA
60582011-05-27 Pedro Alves <pedro@codesourcery.com>
6059
6060 * defs.h (struct continuation, continuation_ftype)
6061 (continuation_free_arg_ftype, add_continuation)
6062 (do_all_continuations, do_all_continuations_thread)
6063 (discard_all_continuations, discard_all_continuations_thread)
6064 (add_intermediate_continuation, do_all_intermediate_continuations)
6065 (do_all_intermediate_continuations_thread)
6066 (discard_all_intermediate_continuations)
6067 (discard_all_intermediate_continuations_thread)
6068 (add_inferior_continuation, do_all_inferior_continuations)
6069 (discard_all_inferior_continuations): Move to ...
6070 * continuations.h: ... this new file.
6071 * breakpoint.c, continuations.c, event-top.c, inf-loop.c,
6072 infcmd.c, inferior.c, infrun.c, interps.c: Include
6073 continuations.h.
6074
432b4d03
JK
60752011-05-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6076 Doug Evans <dje@google.com>
6077
6078 Fix PR 10970, PR 12702.
6079 * linux-nat.c (linux_lwp_is_zombie): New function.
6080 (wait_lwp): Initialize status. New variable prev_mask. Block signals.
6081 Check for linux_lwp_is_zombie. Use WNOHANG and sigsuspend.
6082
b0f260d6
PA
60832011-05-27 Pedro Alves <pedro@codesourcery.com>
6084
6085 * defs.h (continuation_ftype, continuation_free_arg_ftype): New
6086 typedefs.
6087 (add_continuation, add_intermediate_continuation)
6088 (add_inferior_continuation): Use them.
6089 * continuations.c (struct continuation): Use them.
6090 (make_continuation_ftype): Delete.
6091 (make_continuation, add_inferior_continuation, add_continuation)
6092 (add_intermediate_continuation): Use continuation_ftype and
6093 continuation_free_arg_ftype. Rename parameters to shorter names.
6094
af1e9a32
PA
60952011-05-27 Pedro Alves <pedro@codesourcery.com>
6096
6097 * continuations.c (make_continuation): Make it return void.
6098 (do_my_continuations): Rename to ...
6099 (do_my_continuations_1): ... this. Remove old_chain parameter and
6100 adjust.
6101 (do_my_continuations): New.
6102 (discard_my_continuations): Rename to ...
6103 (discard_my_continuations_1): ... this. Remove old_chain
6104 parameter and adjust.
6105 (discard_my_continuations): New.
6106 (add_inferior_continuation): Simplify.
6107 (do_all_inferior_continuations): Reimplement on top
6108 do_my_continuations.
6109 (discard_all_inferior_continuations): Simplify.
6110 (add_continuation): Simplify.
6111 (do_all_continuations_ptid): Simplify.
6112 (discard_all_continuations_thread_callback): Simplify.
6113 (add_intermediate_continuation): Simplify.
6114 (discard_all_intermediate_continuations_thread_callback):
6115 Simplify.
6116
50c0c017
PA
61172011-05-27 Pedro Alves <pedro@codesourcery.com>
6118
6119 * utils.c (struct continuation, add_continuation)
6120 (add_inferior_continuation)
6121 (do_all_inferior_continuations, discard_all_inferior_continuations)
6122 (restore_thread_cleanup, do_all_continuations_ptid)
6123 (do_all_continuations_thread_callback)
6124 (do_all_continuations_thread, do_all_continuations)
6125 (discard_all_continuations_thread_callback)
6126 (discard_all_continuations_thread, discard_all_continuations)
6127 (add_intermediate_continuation)
6128 (do_all_intermediate_continuations_thread_callback)
6129 (do_all_intermediate_continuations_thread)
6130 (do_all_intermediate_continuations)
6131 (discard_all_intermediate_continuations_thread_callback)
6132 (discard_all_intermediate_continuations_thread)
6133 (discard_all_intermediate_continuations): Move to ...
6134 * continuations.c: ... this new file, and adjust to no longer
6135 implement continuations on top of cleanups.
6136 * Makefile.in (SFILES): Add continuations.c.
6137 (COMMON_OBS): Add continuations.o.
6138
d8b34453
PA
61392011-05-26 Pedro Alves <pedro@codesourcery.com>
6140
6141 * inferior.h (enum exec_direction_kind): Delete EXEC_ERROR.
6142 * infrun.c (show_exec_direction_func): Don't handle EXEC_ERROR.
6143 Internal error on invalid values.
6144 * reverse.c: Don't handle EXEC_ERROR.
6145 * mi/mi-main.c: Don't handle EXEC_ERROR.
6146
32231432
PA
61472011-05-26 Pedro Alves <pedro@codesourcery.com>
6148
6149 * record.c: Include event-loop.h, inf-loop.h.
6150 (record_beneath_to_async): New global.
6151 (tmp_to_async): New global.
6152 (record_async_inferior_event_token): New global.
6153 (record_open_1): Don't error out if async is enabled.
6154 (record_open): Handle to_async. Create an async event source in
6155 the event loop.
6156 (record_close): Delete the async event source.
6157 (record_resumed): New global.
6158 (record_execution_dir): New global.
6159 (record_resume, record_core_resume): Set them. Register the
6160 target on the event loop.
6161 (record_wait): Rename to ...
6162 (record_wait_1): ... this. Add more debug output. Handle
6163 TARGET_WNOHANG, and the target beneath returning
6164 TARGET_WAITKIND_IGNORE.
6165 (record_wait): Reimplement on top of record_wait_1.
6166 (record_async_mask_value): New global.
6167 (record_async, record_async_mask, record_can_async_p)
6168 (record_is_async_p, record_execution_direction): New functions.
6169 (init_record_ops, init_record_core_ops): Install new methods.
6170 * infrun.c (fetch_inferior_event): Temporarily switch the global
6171 execution direction to the direction the target was going.
6172 (execution_direction): Change type to int.
6173 * target.c (default_execution_direction): New function.
6174 (update_current_target): Inherit and de_fault
6175 to_execution_direction.
6176 * target.h (struct target_ops) <to_execution_direction>: New
6177 field.
6178 (target_execution_direction): New macro.
6179 * inferior.h (execution_direction): Change type to int.
6180
949dc678
PA
61812011-05-26 Pedro Alves <pedro@codesourcery.com>
6182
6183 * infcall.c (call_function_by_hand): Don't allow calling functions
6184 in reverse execution mode.
6185
c13bd2b5
PA
61862011-05-26 Pedro Alves <pedro@codesourcery.com>
6187
6188 * infcmd.c (finish_command): Allow async finish in reverse.
6189
6938fd34
YQ
61902011-05-26 Yao Qi <yao@codesourcery.com>
6191
6192 * gdb_thread_db.h: Delete. Move to ...
6193 * common/gdb_thread_db.h: ... here.
6194
9da8c2a0
PA
61952011-05-26 Pedro Alves <pedro@codesourcery.com>
6196
6197 * infcmd.c (finish_backward): Set a step-resume breakpoint at the
6198 function's entry point instead of a manually managed momentary
6199 breakpoint, and only ever issue one proceed call.
6200 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_STEP_RESUME>: If
6201 doing a reverse-finish, switch to stepi mode, to do another step.
6202 (insert_step_resume_breakpoint_at_sal): Make public.
6203 (normal_stop): No need to save function value return registers if
6204 going reverse.
6205 * inferior.h (insert_step_resume_breakpoint_at_sal): Declare.
6206
2c03e5be
PA
62072011-05-26 Pedro Alves <pedro@codesourcery.com>
6208
6209 * breakpoint.h (enum bptype) <bp_hp_step_resume>: New.
6210 (enum bpstat_what_main_action): Move BPSTAT_WHAT_STEP_RESUME
6211 before BPSTAT_WHAT_STOP_SILENT. Add BPSTAT_WHAT_HP_STEP_RESUME
6212 at the end.
6213 * breakpoint.c (update_breakpoints_after_exec): Also delete hp
6214 step-resume breakpoints.
6215 (print_it_typical): Handle bp_hp_step_resume.
6216 (bpstat_what): Ditto.
6217 (bptype_string): Ditto.
6218 (print_one_breakpoint_location): Ditto.
6219 (allocate_bp_location): Ditto.
6220 (mention): Ditto.
6221 (breakpoint_re_set_one): Ditto.
6222 * infrun.c (handle_inferior_event): Adjust. Split
6223 BPSTAT_WHAT_STEP_RESUME handling in BPSTAT_WHAT_STEP_RESUME and
6224 BPSTAT_WHAT_HP_STEP_RESUME.
6225 (insert_step_resume_breakpoint_at_sal): Rename to ...
6226 (insert_step_resume_breakpoint_at_sal_1): ... this. Add bptype
6227 parameter. Handle it.
6228 (insert_step_resume_breakpoint_at_sal): Reimplement on top of
6229 insert_step_resume_breakpoint_at_sal_1.
6230 (insert_step_resume_breakpoint_at_frame): Rename to ...
6231 (insert_hp_step_resume_breakpoint_at_frame): ... this. Adjust to
6232 set a high-priority step-resume breakpoint.
6233 (insert_step_resume_breakpoint_at_frame): Adjust comment.
6234 (insert_step_resume_breakpoint_at_caller): Ditto.
6235
51be5b68
PA
62362011-05-26 Pedro Alves <pedro@codesourcery.com>
6237
6238 * breakpoint.c (iterate_over_related_breakpoints): New.
6239 (do_map_delete_breakpoint): New.
6240 (delete_command): Pass do_map_delete_breakpoint to
6241 map_breakpoint_numbers.
6242 (do_disable_breakpoint): New.
6243 (do_map_disable_breakpoint): Iterate over the breakpoint's related
6244 breakpoints.
6245 (do_enable_breakpoint): Rename to ...
6246 (enable_breakpoint_disp): ... this.
6247 (enable_breakpoint): Adjust.
6248 (do_enable_breakpoint): New.
6249 (enable_once_breakpoint): Delete.
6250 (do_map_enable_breakpoint): New.
6251 (do_map_enable_once_breakpoint): New.
6252 (enable_once_command, enable_delete_command)
6253 (delete_trace_command): Iterate over the breakpoint's related
6254 breakpoints.
6255
4a1be8d2
PA
62562011-05-26 Pedro Alves <pedro@codesourcery.com>
6257
6258 * alpha-tdep.c (alpha_cannot_fetch_register): Don't return true
6259 for ALPHA_ZERO_REGNUM.
6260 (alpha_supply_int_regs): Explicitly supply zero as the value for
6261 ALPHA_ZERO_REGNUM in the register cache.
6262 * alpha-nat.c (fetch_osf_core_registers): Ditto.
6263
59d70315
YQ
62642011-05-26 Yao Qi <yao@codesourcery.com>
6265
6266 * gdb/gdb_thread_db.h: Remove HAVE_UINTPTR_T.
6267
251d32d9
TG
62682011-05-26 Tristan Gingold <gingold@adacore.com>
6269
6270 * symfile.h (struct dwarf2_section_names): New type.
6271 (struct dwarf2_debug_sections): New type.
6272 (dwarf2_has_info): Add parameter.
6273 * dwarf2read.c (dwarf2_elf_names): New variable.
6274 (INFO_SECTION, ABBREV_SECTION, LINE_SECTION, LOC_SECTION)
6275 (MACINFO_SECTION, STR_SECTION, RANGES_SECTION, TYPES_SECTION)
6276 (FRAME_SECTION, EH_FRAME_SECTION, GDB_INDEX_SECTION): Remove.
6277 (dwarf2_has_info): Add names parameter. Pass names
6278 to dwarf2_locate_sections.
6279 (section_is_p): Rewrite using the names parameter.
6280 (dwarf2_locate_sections): Use section names from the names parameter.
6281 * coffread.c (coff_symfile_read): Adjust call to dwarf2_has_info.
6282 * elfread.c (read_psyms): Ditto.
6283 * machoread.c (macho_symfile_read): Ditto.
6284
652c71b4
AS
62852011-05-25 Andreas Schwab <schwab@redhat.com>
6286
6287 PR gdb/8677
6288 * event-loop.c (handle_file_event): Don't handle POLLHUP as error.
6289
f17170e5
KS
62902011-05-24 Keith Seitz <keiths@redhat.com>
6291
6292 PR breakpoint/12803
6293 * linespec.c (keep_name_info): Add handling for "volatile" keyword.
6294 (decode_compound): Unconditionally call keep_name_info.
6295
cdac0397
PA
62962011-05-24 Pedro Alves <pedro@codesourcery.com>
6297
6298 * breakpoint.c (watchpoint_check): If the watchpoint went out of
6299 scope, clear its command list.
6300 (map_breakpoint_numbers): Don't walk the related breakpoints list
6301 of each breakpoint.
6302
91d4fe3f
TT
63032011-05-24 Tom Tromey <tromey@redhat.com>
6304
6305 * MAINTAINERS: Move Jim Blandy to past maintainers.
6306
3017a003
TG
63072011-05-24 Tristan Gingold <gingold@adacore.com>
6308
6309 * symfile.h (enum dwarf2_section_enum): New type.
6310 (dwarf2_get_section_info): New prototype.
6311 * dwarf2read.c (dwarf2_get_section_info): Replace parameter
6312 section_name by sect. Use a switch to select the info.
6313 * dwarf2-frame.c (warf2_get_section_info): Remove prototype.
6314 (dwarf2_build_frame_info): Adjust calls to dwarf2_get_section_info.
6315
c91c8c16
PA
63162011-05-24 Pedro Alves <pedro@codesourcery.com>
6317
6318 * solib-svr4.c (svr4_solib_create_inferior_hook): Skip setting
6319 shared library event breakpoint if there's no execution.
6320
77bc418a
TJB
63212011-05-24 Thiago Jung Bauermann <bauerman@br.ibm.com>
6322
6323 * breakpont.c (remove_hw_watchpoints): Remove unused function.
6324 * breakpoint.h remove_hw_watchpoints(): Remove prototype.
6325
c50491a7
TT
63262011-05-23 Tom Tromey <tromey@redhat.com>
6327
6328 * c-lang.c (evaluate_subexp_c): Use expect_type if it is not
6329 NULL.
6330
6d64e6d4
DE
63312011-05-23 Doug Evans <dje@google.com>
6332
6333 * python/lib/gdb/printing.py (register_pretty_printer): Add missing
6334 entry for RuntimeError to doc string.
6335
2067c8d4
JG
63362011-05-23 Jerome Guitton <guitton@adacore.com>
6337
6338 * sparc-tdep.c (sparc_skip_stack_check): Recognize a new instruction
6339 sequence for probing loops.
6340
b136cd05
PA
63412011-05-23 Pedro Alves <pedro@codesourcery.com>
6342
6343 * infrun.c (user_visible_resume_ptid): Fix typos in describing
6344 comment.
6345
22e74ef9
MK
63462011-05-21 Mark Kettenis <kettenis@gnu.org>
6347
6348 * sparc-nat.c (sparc_fetch_inferior_registers): Explicitly supply
6349 zero as the value for %g0 in the register cache.
6350 * sparc-tdep.c (sparc32_supply_gregset): Likewise.
6351 * sparc64-tdep.c (sparc64_supply_gregset): Likewise.
6352
842951eb
PA
63532011-05-20 Pedro Alves <pedro@codesourcery.com>
6354
6355 * infrun.c (proceed): Set previous_inferior_ptid here.
6356 (init_wait_for_inferior): Initialize previous_inferior_ptid from
6357 inferior_ptid, not null_ptid.
6358 (wait_for_inferior): Don't initialize previous_inferior_ptid here.
6359 (fetch_inferior_event): Nor here.
6360
46cf51e6
PA
63612011-05-20 Pedro Alves <pedro@codesourcery.com>
6362
6363 * inf-loop.c (inferior_event_handler): Only output a message if
6364 verbose.
6365
29ef4c46
LM
63662011-05-20 Luis Machado <lgustavo@codesourcery.com>
6367
6368 * MAINTAINERS: Update my e-mail address.
6369
f148b27e
PA
63702011-05-20 Pedro Alves <pedro@codesourcery.com>
6371
6372 * infrun.c (proceed): Switch the inferior event loop to
6373 INF_EXEC_COMPLETE if the target refused to resume from a
6374 vfork/fork.
6375
09cee04b
PA
63762011-05-20 Pedro Alves <pedro@codesourcery.com>
6377
6378 * infcmd.c: Include "inf-loop.h".
6379 (step_once): When stepping into an inline subroutine, pretend the
6380 target has run. If the target can async, switch the inferior
6381 event loop to INF_EXEC_COMPLETE.
6382 * inferior.h (user_visible_resume_ptid): Declare.
6383 * infrun.c (user_visible_resume_ptid): New function, factored out
6384 from `resume'.
6385 (resume): Use it.
6386 * mi/mi-main.c (mi_execute_async_cli_command): Remove assertion
6387 that the current thread is running. Merge async and sync
6388 branches.
6389
751b8ce1
PA
63902011-05-20 Pedro Alves <pedro@codesourcery.com>
6391
6392 * infcmd.c (step_1): Simplify synchronous case.
6393
e93a69ed
PA
63942011-05-20 Pedro Alves <pedro@codesourcery.com>
6395
6396 * tracepoint.c: Include exceptions.h.
6397 (TFILE_PID): Move higher in file.
6398 (tfile_open): Delay pushing the tfile target until we're assured
6399 the tfile header is present in the file. Wrap reading the initial
6400 newline-terminated lines in TRY_CATCH. Pop the target if the
6401 initial setup failed. Add the tfile's thread immediately
6402 aftwards, before any non-essential setup. Don't skip
6403 post_create_inferior if there are no traceframes present in the
6404 file.
6405 (tfile_close): Remove redundant check for null before xfree call.
6406 (tfile_thread_alive): New function.
6407 (init_tfile_ops): Register it as to_thread_alive callback.
6408
6823e2b1
PA
64092011-05-20 Pedro Alves <pedro@codesourcery.com>
6410
6411 * tracepoint.c (tfile_open): Delete #if 0'd code.
6412
b3c8eb43
JK
64132011-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
6414
6415 Fix -readnow for -gdwarf-4 unused type units.
6416 * dwarf2read.c (struct signatured_type): Remove the field offset.
6417 (create_signatured_type_table_from_index): Remove its initialization.
6418 (create_debug_types_hash_table): Likewise. Initialize per_cu.offset
6419 instead. Add a complaint call.
6420 (process_psymtab_comp_unit): Change assignment to gdb_assert.
6421 (process_type_comp_unit, lookup_die_type, dump_die_shallow)
6422 (lookup_signatured_type_at_offset, read_signatured_type)
6423 (write_one_signatured_type): Update the field for per_cu.
6424
310afc76
TT
64252011-05-19 Tom Tromey <tromey@redhat.com>
6426
6427 * python/py-inferior.c (python_inferior_exit): Use
6428 target_gdbarch.
6429 (python_on_resume): Likewise.
6430
cf6c5ffb
TT
64312011-05-19 Matt Rice <ratmice@gmail.com>
6432
6433 * breakpoint.c (bpstat_do_actions_1): Call prevent_dont_repeat.
6434
fb80a3c5
HZ
64352011-05-19 Hui Zhu <teawater@gmail.com>
6436
6437 * tracepoint.c (tfile_trace_find): Return directly when num is -1.
6438
3672b1be
HZ
64392011-05-19 Hui Zhu <teawater@gmail.com>
6440
6441 * xcoffread.c (read_xcoff_symtab): Initialize fcn_aux_saved.
6442
ff355380
TT
64432011-05-18 Tom Tromey <tromey@redhat.com>
6444
6445 * dwarf2read.c (dwarf2_add_field): Constify.
6446 * value.c (value_static_field): Constify.
6447 * gdbtypes.h (struct main_type) <field.field_location.physname>:
6448 Now const.
6449 * ax-gdb.c (gen_static_field): Constify
6450
ed731959
JK
64512011-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6452
6453 * linux-nat.c (kill_callback): Use SIGKILL first.
6454
967cff16
JB
64552011-05-18 Joel Brobecker <brobecker@adacore.com>
6456
6457 * ada-lang.c (print_it_exception): Avoid use of sprintf.
6458
1d06ead6
TT
64592011-05-18 Tom Tromey <tromey@redhat.com>
6460
6461 * value.c (value_fn_field): Constify.
6462 * symtab.c (gdb_mangle_name): Constify.
6463 * stabsread.c (update_method_name_from_physname): Make 'physname'
6464 argument const.
6465 * p-typeprint.c (pascal_type_print_method_args): Make arguments
6466 const. Use explicit fputc_filtered loop.
6467 (pascal_type_print_base): Constify.
6468 * p-lang.h (pascal_type_print_method_args): Update.
6469 * linespec.c (add_matching_methods): Constify.
6470 (add_constructors): Likewise.
6471 * jv-typeprint.c (java_type_print_base): Constify.
6472 * gdbtypes.h (struct cplus_struct_type)
6473 <fn_fieldlist.fn_field.physname>: Now const.
6474 * dwarf2read.c (compute_delayed_physnames): Constify.
6475 (dwarf2_add_member_fn): Likewise.
6476 * c-typeprint.c (c_type_print_base): Constify. Use cleanups.
6477
0d9a9a5f
PA
64782011-05-18 Pedro Alves <pedro@codesourcery.com>
6479
6480 * infrun.c (resume): Mention which is the current thread, and its
6481 current PC in debug output.
6482 (prepare_to_proceed): Mention the thread switching in debug
6483 output.
6484
05386e9e
TT
64852011-05-18 Tom Tromey <tromey@redhat.com>
6486
6487 * linux-thread-db.c (try_thread_db_load_from_pdir_1): Fix absolute
6488 path check. Use xmalloc and cleanups.
6489 (try_thread_db_load_from_dir): Use xmalloc and cleanups.
6490
ee86786c
TT
64912011-05-17 Tom Tromey <tromey@redhat.com>
6492
6493 * cp-valprint.c (cp_print_value_fields): Catch errors from
6494 value_static_field.
6495
9ff3b74f
TT
64962011-05-17 Tom Tromey <tromey@redhat.com>
6497
6498 * dwarf2read.c (dwarf2_get_die_type): Call
6499 get_die_type_at_offset.
6500 * dwarf2expr.c (dwarf_get_base_type): Handle NULL return from
6501 get_base_type function.
6502
cd3da28e
PA
65032011-05-17 Tomas Martinec <fyzmat@gmail.com>
6504
6505 * infrun.c (handle_inferior_event) <handling deferred step>: Clear
6506 trap_expected.
6507
fd20d931
DE
65082011-05-16 Doug Evans <dje@google.com>
6509
6510 * python/py-auto-load.c (source_section_scripts): Mention objfile
6511 name in warning.
6512
75fc9810
DE
65132011-05-15 Doug Evans <dje@google.com>
6514
290351b8
DE
6515 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New function.
6516 (try_thread_db_load_from_pdir): Call it. If unable to find
6517 libthread_db in directory of libpthread, see if we're looking at
6518 the separate-debug-info copy.
6519
75fc9810
DE
6520 * python/py-autoload.c (print_script): Print "Missing" instead of
6521 "No" for missing scripts.
6522 (info_auto_load_scripts): Tweak "Loaded" column to fit "Missing".
6523
9f7bc587
DE
65242011-05-13 Doug Evans <dje@google.com>
6525
6526 * ui-file.c (stdio_file_write_async_safe): Add comment.
6527
093cee7d
HZ
65282011-05-14 Hui Zhu <teawater@gmail.com>
6529
6530 * ui-file.c (stdio_file_write_async_safe): Add empty check for build.
6531
dbaefcf7
DE
65322011-05-13 Doug Evans <dje@google.com>
6533
98a5dd13
DE
6534 Support $pdir and $sdir in libthread-db-search-path.
6535 * NEWS: Mention $sdir,$pdir.
6536 * gdb_thread_db.h (LIBTHREAD_DB_SEARCH_PATH): Add $sdir:$pdir.
6537 * linux-thread-db.c (try_thread_db_load_from_pdir): New function.
6538 (try_thread_db_load_from_sdir): New function.
6539 (try_thread_db_load_from_dir): New function.
6540 (thread_db_load_search): Handle $pdir, $sdir. Remove trying of
6541 system directories if search of libthread-db-search-path fails,
6542 that is now done via $sdir.
6543 (has_libpthread): New function.
6544 (thread_db_load): Remove search for libthread_db in directory of
6545 libpthread, that is now done via $pdir.
6546
dbaefcf7
DE
6547 * NEWS: Mention "info auto-load-scripts".
6548 * python/py-auto-load.c (struct auto_load_pspace_info): New member
6549 script_not_found_warning_printed.
6550 (init_loaded_scripts_info): Renamed from create_loaded_scripts_hash,
6551 all callers updated. Initialize script_not_found_warning_printed.
6552 (get_auto_load_pspace_data_for_loading): New function.
6553 (maybe_add_script): New function.
6554 (source_section_scripts): Simplify. Only print one warning regardless
6555 of the number of auto-load scripts not found.
6556 (clear_section_scripts): Clear script_not_found_warning_printed.
6557 (auto_load_objfile_script): Record script in hash table.
6558 (count_matching_scripts): New function.
6559 (maybe_print_script): Renamed from maybe_print_section_script, all
6560 callers updated. Rewrite to use ui_out_*.
6561 (info_auto_load_scripts): Renamed from
6562 maintenance_print_section_scripts, all callers updated.
6563 (gdbpy_initialize_auto_load): "maintenance print section-scripts"
6564 renamed as "info auto-load-scripts".
6565
9930639c
TT
65662011-05-13 Tom Tromey <tromey@redhat.com>
6567
6568 * dwarf2expr.c (read_uleb128): Cast intermediate result.
6569 (read_sleb128): Likewise.
6570
06826322
TT
65712011-05-13 Tom Tromey <tromey@redhat.com>
6572
6573 * dwarf2loc.c (disassemble_dwarf_expression): Fix instruction
6574 offset display.
6575
01124a23
DE
65762011-05-13 Doug Evans <dje@google.com>
6577
6578 * linux-nat.c (debug_linux_nat_async): Delete.
6579 Replace all references to use debug_linux_nat instead.
6580 (show_debug_linux_nat_async): Delete.
6581 (sigchld_handler): Call ui_file_write_async_safe instead of
6582 fprintf_unfiltered.
6583 (_initialize_linux_nat): Remove `set debug lin-lwp-async'.
6584 * ui-file.c (struct ui_file): New member to_write_async_safe.
6585 (null_file_write_async_safe): New function.
6586 (ui_file_write_async_safe): New function.
6587 (set_ui_file_write_async_safe): New function.
6588 (ui_file_new): Initialize to_write_async_safe.
6589 (stdio_file_write_async_safe): New function.
6590 (struct stdio_file): New member fd.
6591 (stdio_file_new): Initialize to_write_async_safe, fd.
bbfac39e
DE
6592 (stdio_file_read, stdio_file_isatty): New stdio->fd instead of calling
6593 fileno.
01124a23
DE
6594 * ui-file.h (ui_file_write_async_safe_ftype): New typedef.
6595 (set_ui_file_write_async_safe): Declare.
6596 (ui_file_write_async_safe): Declare.
6597
72fc29ff
TT
65982011-05-13 Tom Tromey <tromey@redhat.com>
6599
6600 * utils.c (do_value_free): New function.
6601 (make_cleanup_value_free): Likewise.
6602 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle value
6603 freeing correctly.
6604 (dwarf2_loc_desc_needs_frame): Call
6605 make_cleanup_value_free_to_mark.
6606 * dwarf2expr.h (struct dwarf_expr_context) <mark>: Remove field.
6607 * dwarf2expr.c (free_dwarf_expr_context): Don't call
6608 value_free_to_mark.
6609 (new_dwarf_expr_context): Don't call value_mark.
6610 * dwarf2-frame.c (execute_stack_op): Call
6611 make_cleanup_value_free_to_mark.
6612 * defs.h (make_cleanup_value_free): Declare.
6613
028d0ed5
TJB
66142011-05-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
6615
6616 * mi/mi-main.c (mi_cmd_execute): Use cleanup from
6617 prepare_execute_command.
6618 * top.c (prepare_execute_command): Return cleanup.
6619 (execute_command): Use cleanup from prepare_execute_command.
6620 * top.h (prepare_execute_command): Change prototype to return
6621 cleanup.
6622 * defs.h (struct value): Add opaque declaration.
6623 (make_cleanup_value_free_to_mark): Add prototype.
6624 * utils.c (do_value_free_to_mark): New function.
6625 (make_cleanup_value_free_to_mark): Likewise.
6626
b087e0ed
TT
66272011-05-12 Tom Tromey <tromey@redhat.com>
6628
6629 * dwarf2expr.c (execute_stack_op) <DW_OP_shr>: Unconditionally
6630 cast left-hand-side to unsigned.
6631
8a9b8146
TT
66322011-05-12 Tom Tromey <tromey@redhat.com>
6633
6634 PR gdb/12617:
6635 * value.h (value_from_contents): Declare.
6636 * value.c (value_from_contents): New function.
6637 * dwarf2read.c (dwarf_stack_op_name): Add new values.
6638 (dwarf2_get_die_type): New function.
6639 * dwarf2loc.c (dwarf_expr_get_base_type): New function.
6640 (allocate_piece_closure): Acquire reference to values.
6641 (read_pieced_value): Update for value-based expressions.
6642 (write_pieced_value): Likewise.
6643 (free_pieced_value_closure): Call value_free as needed.
6644 (dwarf2_evaluate_loc_desc_full): Set get_base_type field.
6645 Update for value-based expressions.
6646 * dwarf2loc.h (dwarf2_get_die_type): Declare.
6647 * dwarf2expr.h (struct dwarf_stack_value) <value>: Change type.
6648 <get_base_type>: New field.
6649 (struct dwarf_expr_piece) <v.value>: Change type.
6650 <v.regno>: New field.
6651 (struct dwarf_expr_context) <mark>: New field.
6652 (dwarf_expr_piece, dwarf_expr_fetch): Update.
6653 (dwarf_expr_pop, dwarf_expr_push): Remove.
6654 (dwarf_expr_push_address): Declare.
6655 * dwarf2expr.c (dwarf_arch_cookie): New global.
6656 (struct dwarf_gdbarch_types): New.
6657 (dwarf_gdbarch_types_init, dwarf_expr_address_type): New
6658 functions.
6659 (dwarf_expr_push): Change type of 'value' argument. Update. Now
6660 static.
6661 (dwarf_expr_push_address): New function.
6662 (dwarf_expr_pop): Now static.
6663 (dwarf_expr_fetch): Change return type.
6664 (dwarf_require_integral): New function.
6665 (dwarf_expr_fetch): Simplify.
6666 (add_piece): Update.
6667 (base_types_equal_p, dwarf_get_base_type, get_unsigned_type): New
6668 functions.
6669 (execute_stack_op) <sign_ext>: Remove.
6670 Use values for DWARF stack.
6671 <DW_OP_GNU_const_type, DW_OP_GNU_deref_type,
6672 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
6673 New cases.
6674 (_initialize_dwarf2expr): New function.
6675 (add_piece): Update.
6676 (new_dwarf_expr_context): Set new field.
6677 (free_dwarf_expr_context): Call value_free_to_mark.
6678 * dwarf2-frame.c (no_base_type): New function.
6679 (execute_stack_op): Set get_base_type field. Update.
6680
e8d28ef4
TT
66812011-05-12 Tom Tromey <tromey@redhat.com>
6682
6683 * dwarf2read.c (read_common_block): Fix formatting.
6684
d248b706
KY
66852011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
6686
6687 * breakpoint.c (disable_breakpoint): Disable all locations
6688 associated with a tracepoint on target if a trace experiment is
6689 running.
6690 (disable_command): Disable a specific tracepoint location on target if
6691 a trace experiment is running.
6692 (do_enable_breakpoint): Enable all locations associated with a
6693 tracepoint on target if a trace experiment is running.
6694 (enable_command) Enable a specific tracepoint location on target if a
6695 trace experiment is running.
6696 * target.c (update_current_target): Add INHERIT and de_fault clauses for
6697 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
6698 to_disable_tracepoint.
6699 * target.h: Add declaration of struct bp_location.
6700 (struct target_ops): Add new functions
6701 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
6702 to_disable_tracepoint to target operations.
6703 (target_supports_enable_disable_tracepoint): New macro.
6704 (target_enable_tracepoint): New macro.
6705 (target_disable_tracepoint): New macro.
6706 * remote.c (struct remote_state): Add new field.
6707 (remote_enable_disable_tracepoint_feature): New.
6708 (remote_protocol_features): Add new entry.
6709 (remote_supports_enable_disable_tracepoint): New.
6710 (remote_enable_tracepoint): New.
6711 (remote_disable_tracepoint): New.
6712 (init_remote_ops): Add remote_enable_tracepoint,
6713 remote_disable_tracepoint and remote_supports_enable_disable_tracepoint
6714 to remote operations.
6715 * tracepoint.c (start_tracing): Allow tracing to start without any
6716 tracepoints enabled with just a warning if they can be re-enabled
6717 later.
6718 * NEWS: Add news item for the new behaviour of the enable and disable
6719 GDB commands when applied to tracepoints.
6720 Add news items for the new remote packets QTEnable and QTDisable.
6721
cc88a640
JK
67222011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6723
6724 * config.in: Regenerate.
6725 * configure: Regenerate.
6726 * configure.ac <--with-system-readline> (for readline_echoing_p):
6727 Remove the test.
6728 * tui/tui-io.c (tui_old_readline_echoing_p): Rename to ...
6729 (tui_old_rl_echoing_p): ... here.
6730 (tui_setup_io): Rename extern declaration readline_echoing_p to
6731 _rl_echoing_p. Adjust assignments for the both renames.
6732
1f84b619
TJB
67332011-05-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
6734
6735 * symtab.c (lookup_symtab): Run cleanup before returning.
6736
74ac6d43
TT
67372011-05-11 Tom Tromey <tromey@redhat.com>
6738
6739 * dwarf2read.c (handle_data_member_location): New function.
6740 (dwarf2_add_field): Use it.
6741 (read_common_block): Likewise.
6742
5488dafb
JK
67432011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6744
6745 Make addrs->SECTINDEX always defined.
6746 * symfile.c (relative_addr_info_to_section_offsets): Check for
6747 SECTINDEX -1, not for zero ADDR.
6748 (addrs_section_compar): Remove checking for invalid SECTINDEX.
6749 (addr_info_make_relative): Set SECTINDEX to -1 for unmatched entries.
6750 * symfile.h (struct section_addr_info) <sectindex>: Update the comment
6751 on its validity.
6752
84e578fb
DE
67532011-05-10 Doug Evans <dje@google.com>
6754
2471d008
DE
6755 * linux-thread-db.c: Whitespace cleanup.
6756 (try_thread_db_load_1): Fix comment.
6757
84e578fb
DE
6758 * linux-thread-db.c (set_libthread_db_search_path): New function.
6759 (_initialize_thread_db): Add setter for libthread-db-search-path.
6760
673c2bbe
DE
67612011-05-09 Doug Evans <dje@google.com>
6762
478aac75
DE
6763 * NEWS: Mention --with-iconv-bin.
6764 * configure.ac: New option --with-iconv-bin.
6765 * configure: Regenerate.
6766 * config.in: Regenerate.
6767 * defs.h (relocate_gdb_directory): Declare.
6768 * main.c (relocate_gdb_directory): Renamed from relocate_directory,
6769 removed progname parameter, and exported. All callers updated.
6770 * charset.c (find_charset_names): Use --with-iconv-bin if specified.
6771
673c2bbe
DE
6772 * linux-nat.c (lin_lwp_attach_lwp): For !WIPSTOPPED case,
6773 adding missing call to restore_child_signals_mask.
6774
e4c8541f
PA
67752011-05-09 Pedro Alves <pedro@codesourcery.com>
6776
6777 * inferior.h (wait_for_inferior): Remove `thread_exec_as_sigtrap'
6778 parameter.
6779 * infrun.c (proceed, start_remote): Adjust.
6780 (wait_for_inferior): Remove `thread_exec_as_sigtrap' parameter,
6781 and adjust to not handle it.
6782 * solib-irix.c (irix_solib_create_inferior_hook): Adjust.
6783 * solib-osf.c (osf_solib_create_inferior_hook): Adjust.
6784 * solib-sunos.c (sunos_solib_create_inferior_hook): Adjust.
6785 * solib-svr4.c (svr4_solib_create_inferior_hook): Adjust.
6786 * windows-nat.c (do_initial_windows_stuff): Adjust.
6787 * infcmd.c (attach_command): Adjust.
6788 (notice_new_inferior): Adjust.
6789
a536c6d7
UW
67902011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
6791
6792 * ppc-linux-tdep.c (ppu2spu_prev_register): Handle pseudo registers.
6793 (ppu2spu_unwind_register): Mark pseudo registers unavailable.
6794 * spu-tdep.c (op_selb): Use correct value.
6795
7845b013
UW
67962011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
6797
6798 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Add NULL
6799 "parent" parameter to symbol_file_add_from_bfd call.
6800
9c06b0b4
TJB
68012011-05-06 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
6802 Thiago Jung Bauermann <bauerman@br.ibm.com>
6803
6804 Implement support for PowerPC BookE masked watchpoints.
6805 * NEWS: Mention masked watchpoint support. Create "Changed commands"
6806 section.
6807 * breakpoint.h (struct breakpoint_ops) <works_in_software_mode>: New
6808 method. Initialize to NULL in all existing breakpoint_ops instances.
6809 (struct breakpoint) <hw_wp_mask>: New field.
6810 * breakpoint.c (is_masked_watchpoint): Add prototype.
6811 (update_watchpoint): Don't set b->val for masked watchpoints. Call
6812 breakpoint's breakpoint_ops.works_in_software_mode if available.
6813 (watchpoints_triggered): Handle the case of a hardware masked
6814 watchpoint trigger.
6815 (watchpoint_check): Likewise.
6816 (works_in_software_mode_watchpoint): New function.
6817 (insert_masked_watchpoint, remove_masked_watchpoint)
6818 (resources_needed_masked_watchpoint)
6819 (works_in_software_mode_masked_watchpoint, print_it_masked_watchpoint)
6820 (print_one_detail_masked_watchpoint, print_mention_masked_watchpoint)
6821 (print_recreate_masked_watchpoint, is_masked_watchpoint): New
6822 functions.
6823 (masked_watchpoint_breakpoint_ops): New structure.
6824 (watch_command_1): Check for the existence of the `mask' parameter.
6825 Set b->ops according to the type of hardware watchpoint being created.
6826 * ppc-linux-nat.c (ppc_linux_insert_mask_watchpoint)
6827 (ppc_linux_remove_mask_watchpoint)
6828 (ppc_linux_masked_watch_num_registers): New functions.
6829 (_initialize_ppc_linux_nat): Initialize to_insert_mask_watchpoint,
6830 to_remove_mask_watchpoint and to_masked_watch_num_registers.
6831 * target.c (update_current_target): Mention to_insert_mask_watchpoint,
6832 to_remove_mask_watchpoint, and to_masked_watch_num_registers.
6833 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
6834 (target_masked_watch_num_registers): New functions.
6835 * target.h (struct target_ops) <to_insert_mask_watchpoint>,
6836 <to_remove_mask_watchpoint>, <to_masked_watch_num_registers>: New
6837 methods.
6838 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
6839 (target_masked_watch_num_registers): Add prototypes.
6840
8be455d7
JK
68412011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6842
6843 PR 12573
6844 * dwarf2read.c (struct dwarf2_cu): New field has_loclist.
6845 (producer_is_gcc_ge_4_0): New function.
6846 (process_full_comp_unit): Set also symtab->locations_valid. Move the
6847 symtab->language code.
6848 (var_decode_location): Set cu->has_loclist.
6849 * symtab.c (skip_prologue_sal): New variables saved_pc, force_skip and
6850 skip. Intialize force_skip from locations_valid. Move the prologue
6851 skipping code into two passes.
6852 * symtab.h (struct symtab): Make the primary field a bitfield. New
6853 field locations_valid.
6854
d8228535
JK
68552011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6856
6857 * c-exp.y (qualified_name): Call destructor_name_p with $1.type.
6858 (classify_inner_name): Call cp_lookup_nested_type with
6859 yylval.tsym.type.
6860 * cp-namespace.c (cp_lookup_nested_type): New variable
6861 saved_parent_type. Call CHECK_TYPEDEF for parent_type. Call
6862 type_name_no_tag_or_error with saved_parent_type.
6863 * dwarf2read.c (load_partial_dies): Read in any children of
6864 DW_TAG_typedef with complaint in such case.
6865 * gdbtypes.c (type_name_no_tag_or_error): New function.
6866 * gdbtypes.h (type_name_no_tag_or_error): New prototype.
6867 * valops.c (destructor_name_p): New comment for parameter type. Remove
6868 type const. Make dname and cp const. Call type_name_no_tag_or_error.
6869 * value.h (destructor_name_p): Remove type const.
6870
1976171a
JK
68712011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6872
6873 * symtab.c (compare_symbol_name): New function.
6874 (completion_list_add_name, expand_partial_symbol_name): Call it,
6875 remove the variable ncmp.
6876 (default_make_symbol_completion_list_break_on): Reduce SYM_TEXT_LEN,
6877 gdb_assert it.
6878
a9634178
TJB
68792011-05-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
6880
6881 Demote to sw watchpoint only in update_watchpoint.
6882 * breakpoint.c (update_watchpoint): Change between software and
6883 hardware watchpoint for all kinds of watchpoints, not just
6884 read/write ones. Determine b->exact value here instead of
6885 in watch_command_1. Error out if there are not enough resources
6886 for a read or access hardware watchpoint.
6887 (watch_command_1): Remove logic of checking whether there are
6888 enough resources available, since update_watchpoint will do that
6889 work now. Don't set b->exact here. Catch exceptions thrown by
6890 update_watchpoint and delete the watchpoint.
6891 (can_use_hardware_watchpoint): Remove exact_watchpoints argument.
6892 Use target_exact_watchpoints instead.
6893 (delete_breakpoint): Notify observers only if deleted watchpoint
6894 has a breakpoint number assigned to it.
6895
4c67c798
JJ
68962011-05-05 Janis Johnson <janisjo@codesourcery.com>
6897
6898 * MAINTAINERS: Add myself as a write-after-approval maintainer.
6899
a3fcb948
JG
69002011-05-05 Jerome Guitton <guitton@adacore.com>
6901
6902 * i386-tdep.c (i386_in_stack_tramp_p, i386_stack_tramp_frame_sniffer):
6903 New functions.
6904 (i386_stack_tramp_frame_unwind): New static global.
6905 (i386_match_pattern): New function, extracted from i386_match_insn.
6906 (i386_match_insn): Use i386_match_pattern.
6907 (i386_match_insn_block): New function.
6908 (i386_tramp_chain_in_reg_insns)
6909 (i386_tramp_chain_on_stack_insns): New static variables.
6910 (i386_gdbarch_init): Add i386_stack_tramp_frame_unwind to list
6911 of unwinders.
6912
4d393d60
JM
69132011-05-04 Joseph Myers <joseph@codesourcery.com>
6914
6915 * configure.host (xscale*): Don't handle target.
6916 * configure.tgt (thumb*-*-* | strongarm*-*-* | xscale-*-*): Don't
6917 handle targets.
6918
f70bd40b
YQ
69192011-05-04 Yao Qi <yao@codesourcery.com>
6920
6921 * gdb_wait.h: remove WAITTYPE and WCOREDUMP.
6922
dd3295ee
JB
69232011-05-03 Joel Brobecker <brobecker@adacore.com>
6924
6925 Revert:
6926 | 2011-03-07 Michael Snyder <msnyder@vmware.com>
6927 | * elfread.c (elf_symtab_read): Stop memory leak.
6928
90375a0e
PM
69292011-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
6930
6931 * nto-tdep.c (nto_target): Replace deprecated call to
6932 cygwin_conv_to_posix_path functions by cygwin_conv_path calls.
6933
d07205c2
JK
69342011-05-03 Jan Kratochvil <jan.kratochvil@redhat.com>
6935
6936 Fix false GCC warning.
6937 * breakpoint.c (do_enable_breakpoint): Initialize orig_enable_state.
6938
1e718ff1
TJB
69392011-05-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
6940
6941 * breakpoint.c (update_watchpoint): Move code to change
6942 the enable state of breakpoint from here ...
6943 (do_enable_breakpoint): ... to here.
6944
35bef4fd
TT
69452011-04-26 Andrew Gontarek <andrewg@cray.com>
6946
78290264
PP
6947 * valprint.c (val_print_array_elements): Fixed poor performance
6948 of printing very large arrays with repeat_count_threshold set
6949 to unlimited. New comment.
35bef4fd 6950
38a714bb
TT
69512011-04-29 Tom Tromey <tromey@redhat.com>
6952
6953 * mi/mi-parse.c (mi_parse): Remove incorrect sizeof.
6954 (mi_parse): Likewise.
6955 * breakpoint.c (break_range_command): Use sizeof char*, not
6956 char**.
6957 (create_breakpoint): Likewise.
6958 (parse_breakpoint_sals): Likewise.
6959
eb73ad13
PA
69602011-04-29 Pedro Alves <pedro@codesourcery.com>
6961
6962 * linux-nat.c (linux_child_remove_fork_catchpoint)
6963 (linux_child_remove_vfork_catchpoint)
6964 (linux_child_remove_exec_catchpoint): New functions.
6965 (linux_target_install_ops): Install them.
6966
d65aec65
PM
69672011-04-29 Phil Muldoon <pmuldoon@redhat.com>
6968
6969 PR mi/12531
6970
6971 * varobj.c (install_default_visualizer): Do not install a
6972 visualizer if the varobj is CPLUS_FAKE_CHILD.
6973 (construct_visualizer): Likewise.
6974
165195f4
JK
69752011-04-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6976
6977 * symtab.c (expand_partial_symbol_name): New variable NCMP. Support
6978 case insensitive comparison.
6979
30852783
UW
69802011-04-28 Ulrich Weigand <ulrich.weigand@linaro.org>
6981
6982 * infrun.c (proceed): Revert previous change.
6983 (resume): Instead, handle the case of signal delivery while stepping
6984 off a breakpoint location here, and only if software single-stepping
6985 is used. Handle nested signals.
6986
7ff120b4
YQ
69872011-04-28 Yao Qi <yao@codesourcery.com>
6988
6989 * arm-tdep.c (copy_unmodified): Rename to ...
6990 (arm_copy_unmodified): .. this. New.
6991 (copy_preload): Move common part to ...
6992 (install_preload): .. this. New.
6993 (arm_copy_preload): New.
6994 (copy_preload_reg): Move common part to ...
6995 (install_preload_reg): ... this. New.
6996 (arm_copy_preload_reg): New.
6997 (copy_b_bl_blx): Move common part to ...
6998 (install_b_bl_blx): .. this. New.
6999 (arm_copy_b_bl_blx): New.
7000 (copy_bx_blx_reg): Move common part to ...
7001 (install_bx_blx_reg): ... this. New.
7002 (arm_copy_bx_blx_reg): New.
7003 (copy_alu_reg): Move common part to ...
7004 (install_alu_reg): ... this. New.
7005 (arm_copy_alu_reg): New.
7006 (copy_alu_shifted_reg): Move common part to ...
7007 (install_alu_shifted_reg): ... this. New.
7008 (copy_ldr_str_ldrb_strb): Move common part to ...
7009 (install_ldr_str_ldrb_strb): ... this. New.
7010 (arm_copy_ldr_str_ldrb_strb): New.
7011 (copy_copro_load_store): Move some common part to ...
7012 (install_copy_copro_load_store): ... this. New.
7013 (arm_copy_copro_load_store): New.
7014 (copy_svc): Delete.
7015 (arm_copy_svc): Renamed from copy_svc.
7016 (copy_undef): Delete.
7017 (arm_copy_undef): Renamed from copy_undef.
7018 (decode_ext_reg_ld_st): Delete.
7019 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
7020 (decode_svc_copro): Delete.
7021 (arm_decode_svc_copro): Renamed from decode_svc_copro.
7022 (copy_copro_load_store, copy_alu_imm): update callers.
7023 (copy_extra_ld_st, copy_block_xfer): Likewise.
7024 (decode_misc_memhint_neon, decode_unconditional): Likewise.
7025 (decode_miscellaneous, decode_dp_misc): Likewise.
7026 (decode_ld_st_word_ubyte, decode_media): Likewise.
7027 (decode_b_bl_ldmstm, decode_ext_reg_ld_st): Likewise.
7028 (decode_svc_copro, decode_misc_memhint_neon): Likewise.
7029 (decode_unconditional, decode_miscellaneous): Likewise.
7030 (decode_media, decode_b_bl_ldmstm): Likewise.
7031 (arm_process_displaced_insn): Likewise..
7032 (decode_misc_memhint_neon): Delete.
7033 (arm_decode_misc_memhint_neon): Renamed from decode_misc_memhint_neon.
7034 (decode_miscellaneous): Delete.
7035 (arm_decode_miscellaneous): Renamed from decode_miscellaneous.
7036 (decode_dp_misc): Delete.
7037 (arm_decode_dp_misc): Renamed from decode_dp_misc.
7038 (decode_ld_st_word_ubyte): Delete.
7039 (arm_decode_ld_st_word_ubyte): Renamed from decode_ld_st_word_ubyte.
7040 (decode_media): Delete.
7041 (arm_decode_media): Renamed from decode_media.
7042 (decode_b_bl_ldmstm): Delete.
7043 (arm_decode_b_bl_ldmstm): Renamed from decode_b_bl_ldmstm.
7044 (decode_ext_reg_ld_st): Delete.
7045 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
7046 (decode_unconditional): Delete.
7047 (arm_decode_unconditional): Renamed from decode_unconditional.
7048
559a7a62
JK
70492011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
7050
7051 Case insensitive lookups implementation.
7052 * dwarf2read.c: Include ctype.h.
7053 (struct mapped_index): New field version.
7054 (mapped_index_string_hash): New parameter index_version. New comment
7055 for it. Call tolower appropriately.
7056 (find_slot_in_mapped_hash): New variable cmp, initialize it, use it.
7057 Choose the right index version for mapped_index_string_hash.
7058 (dwarf2_read_index): Support also the index version 5. Initialize the
7059 new struct mapped_index field version.
7060 (hash_strtab_entry): Pass INT_MAX for the new parameter, explain why.
7061 (find_slot): Explain the version needs. Pass INT_MAX for the new
7062 parameter.
7063 (write_psymtabs_to_index): Produce version 5.
7064 * minsyms.c (lookup_minimal_symbol): New variable cmp, initialize it,
7065 use it. New comment for SYMBOL_MATCHES_SEARCH_NAME.
7066 * psymtab.c (lookup_partial_symbol): Find the
7067 SYMBOL_MATCHES_SEARCH_NAME start of the found block of matching
7068 entries.
7069 * symtab.c (lookup_symbol_in_language): Remove the case_sensitive_off
7070 NAME lowercasing.
7071 (search_symbols): Pass REG_ICASE to regcomp for case_sensitive_off.
7072 (completion_list_add_name): New variable ncmp, initialize it, use it.
7073 * symtab.h (SYMBOL_HASH_NEXT): Always call tolower.
7074 * utils.c (strcmp_iw): Support case_sensitive_off.
7075 (strcmp_iw_ordered): Sort in a way compatible with case_sensitive_off.
7076 New function comment part. New variables saved_string1,
7077 saved_string2 and case_pass. Add a proper second pass.
7078
681bf369
JK
70792011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
7080
7081 Replace re_comp/re_exec by regcomp/regexec.
7082 * symtab.c (struct search_symbols_data): New fields preg, preg_p.
7083 (search_symbols_name_matches): Use them, use regexec.
7084 (search_symbols): New variable retval_chain, adjust the use of
7085 old_chain against it. Replace re_comp by regcomp. Use the new struct
7086 search_symbols_data fields, use regexec instead of re_exec.
7087
b11b1f88
JK
70882011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
7089
7090 Format the code for the next patch.
7091 * dwarf2read.c (struct mapped_index): Include delimiting newlines.
7092 * utils.c (strcmp_iw_ordered): Reformat the code for the next patch.
7093 New variables c1 and c2.
7094
2484c66b
UW
70952011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
7096
7097 * infrun.c (proceed): Do not single-step into signal delivery
7098 when stepping off a breakpoint location.
7099 (insert_step_resume_breakpoint_at_frame): Move prototype earlier.
7100 (insert_step_resume_breakpoint_at_caller): Likewise.
7101 (insert_step_resume_breakpoint_at_sal): Likewise.
7102 (insert_longjmp_resume_breakpoint): Likewise.
7103
47423772
YQ
71042011-04-27 Yao Qi <yao@codesourcery.com>
7105
7106 * common/linux-ptrace.h: Remove include <sys/wait.h>.
7107
13bdd2e7
JB
71082011-04-27 Joel Brobecker <brobecker@adacore.com>
7109
7110 * procfs.c (procfs_pass_signals): Fix advance declaration.
7111
2455069d
UW
71122011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
7113
7114 * target.h (struct target_ops): Remove to_notice_signals;
7115 add to_pass_signals.
7116 (target_notice_signals): Remove.
7117 (target_pass_signals): Add prototype.
7118 * target.c (update_current_target): Remove to_notice_signals;
7119 mention to_pass_signals.
7120 (target_pass_signals): New function.
7121 (debug_to_notice_signals): Remove.
7122 (setup_target_debug): Do not install debug_to_notice_signals.
7123
7124 * infrun.c (signal_pass): New global.
7125 (resume): Call target_pass_signals.
7126 (handle_inferior_event): Report all signals while stepping over
7127 non-steppable watchpoint. Reset trap_expected to ensure breakpoints
7128 are re-inserted when stepping over a signal handler.
7129 (signal_cache_update): New function.
7130 (signal_stop_update): Call it.
7131 (signal_print_update): Likewise.
7132 (signal_pass_update): Likewise.
7133 (handle_command): Call signal_cache_update and target_pass_signals
7134 instead of target_notice_signals.
7135 (_initialize_infrun): Initialize signal_pass.
7136
7137 * linux-nat.c (pass_mask): New global.
7138 (linux_nat_pass_signals): New function.
7139 (linux_nat_create_inferior): Report all signals initially.
7140 (linux_nat_attach): Likewise.
7141 (linux_nat_resume): Use pass_mask to decide whether to directly
7142 handle an inferior signal.
7143 (linux_nat_wait_1): Likewise.
7144 (linux_nat_add_target): Install to_pass_signals callback.
7145
7146 * nto-procfs.c (notice_signals): Remove.
7147 (procfs_resume): Do not call notice_signals.
7148 (procfs_notice_signals): Remove.
7149 (procfs_pass_signals): New function.
7150 (init_procfs_ops): Install to_pass_signals callback instead of
7151 to_notice_signals callback.
7152 (_initialize_procfs): Report all signals initially.
7153
7154 * procfs.c (procfs_notice_signals): Remove.
7155 (procfs_pass_signals): New function.
7156 (procfs_target): Install to_pass_signals callback instead of
7157 to_notice_signals callback.
7158 (register_gdb_signals): Remove.
7159 (procfs_debug_inferior): Report all signals initially.
7160 (procfs_init_inferior): Remove redundant register_gdb_signals call.
7161
7162 * remote.c (remote_pass_signals): Add numsigs and pass_signals
7163 parameters; use them instead of calling signal_..._state routines.
7164 (remote_notice_signals): Remove.
7165 (remote_start_remote): Report all signals initially.
7166 (remote_resume): Do not call remote_pass_signals.
7167 (_initialize_remote): Install to_pass_signals callback instead of
7168 to_notice_signals callback.
7169
46c6471b
PA
71702011-04-27 Pedro Alves <pedro@codesourcery.com>
7171
7172 * breakpoint.c (user_settable_breakpoint): Delete.
7173 (user_breakpoint_p): Remove check on user_settable_breakpoint.
7174 (delete_command): Check user_breakpoint_p instead of looking at
7175 the breakpoint's type.
7176 (disable_command): Ditto.
7177 (enable_command): Ditto.
7178 (delete_trace_command): Use user_breakpoint_p instead of looking
7179 at the breakpoint number directly. When checking if there are
7180 user visible tracepoints, in order to know whether to ask the user
7181 for confirmation, check whether the breakpoint is actually a
7182 tracepoint.
7183
f6d90398
VP
71842011-04-27 Vladimir Prus <vladimir@codesourcery.com>
7185
7186 * python/py-breakpoint.c (gdbpy_breakpoint_created): Fix
7187 compilation.
7188
8d3788bd
VP
71892011-04-27 Vladimir Prus <vladimir@codesourcery.com>
7190
7191 MI breakpoint notifications.
7192
f33edef8
PP
7193 * annotate.c (breakpoint_changed): Adjust parameter type.
7194 * breakpoint.c (set_breakpoint_condition): Adjust to change
7195 in breakpoint_modified type.
7196 (breakpoint_set_commands): Likewise.
7197 (do_map_commands_command): Likewise.
7198 (bpstat_check_breakpoint_conditions): Notify that breakpoint has
7199 changed after bumping hit count.
7200 (bpstat_stop_status): Likewise.
7201 (print_one_breakpoint_location): Don't wrap in tuple here.
7202 (print_one_breakpoint): Always print individual locations.
7203 For locations, use unnamed tuple.
7204 (disable_breakpoints_in_unloaded_shlib): Notify that breakpoint
7205 has changed.
7206 (create_catchpoint, create_syscall_event_catchpoint): Call
7207 breakpoint_created obsever.
7208 (mention): Don't call breakpoint_created observer.
7209 (create_breakpoint_sal): Call breakpoint_created observer.
7210 (create_breakpoint, watch_command_1): Likewise.
7211 (create_ada_exception_breakpoint): Likewise.
7212 (delete_breakpoint): Call breakpoint_deleted breakpoint.
7213 (locations_are_equal): New.
7214 (update_breakpoint_locations): If locations were changed, notify.
7215 (set_ignore_count, disable_breakpoint, do_enable_breakpoint):
7216 Call breakpoint_modified observer.
7217
7218 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
7219 (mi_cmd_break_insert): Don't set observers for modify and delete.
7220 * mi/mi-interp.c (mi_suppress_breakpoint_notifications): New.
7221 (mi_breakpoint_created, mi_breakpoint_deleted)
7222 (mi_breakpoint_modified): New.
7223 (mi_interpreter_init): Hook the above.
7224 * mi/mi-main.c (mi_cmd_execute): Disable breakpoint notifications
7225 while -break-* commands are executing.
7226 * mi/mi-main.h (mi_suppress_breakpoint_notifications): New.
7227 * mi/mi-out.c (struct ui_out_data): New field original_buffer.
7228 (mi_redirect): New.
7229 (mi_ui_out_impl): Hook in mi_redirect.
7230 (mi_field_skip): True to the name, skip the field, don't output
7231 a field with an empty value.
7232
7233 * python/py-breakpoint.c (gdbpy_breakpoint_created)
7234 (gdbpy_breakpoint_deleted): Adjust.
7235 * tui/tui-hooks.c (tui_event_create_breakpoint)
7236 (tui_event_delete_breakpoint, tui_event_modify_breakpoint): Adjust.
8d3788bd 7237
a8f42b45
UW
72382011-04-26 Aleksandar Ristovski <aristovski@qnx.com>
7239
7240 * nto-procfs.c (procfs_insert_hw_watchpoint): Fix prototype.
7241 (procfs_remove_hw_watchpoint): Likewise.
7242
57e12211
TT
72432011-04-26 Michael Walle <michael@walle.cc>
7244
7245 * remote.c (remote_start_remote): Ack packet after sending the
7246 interrupt sequence.
7247
af96c192
YQ
72482011-04-26 Yao Qi <yao@codesourcery.com>
7249
f33edef8
PP
7250 * linux-nat.c: Move common macros to ...
7251 Include linux-ptrace.h.
7252 * common/linux-ptrace.h: ... here. New.
af96c192 7253
3e03848b
JK
72542011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
7255
7256 * elfread.c (elf_symfile_read): Protect dwarf2_initialize_objfile by
7257 !objfile_has_partial_symbols. New comment.
7258 * objfiles.c (objfile_has_partial_symbols): Call HAS_SYMBOLS if
7259 SYM_READ_PSYMBOLS is not present. Extend the comment.
7260 * symfile.h (struct sym_fns): Extend the sym_read_psymbols comment.
7261
1ae0d051
JK
72622011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
7263
7264 * defs.h (ENUM_BITFIELD): Remove.
7265
03f2bd59
JK
72662011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
7267 Eli Zaretskii <eliz@gnu.org>
7268
7269 * NEWS: Document the new gdbserver --once option.
7270
4161fbb0
JZ
72712011-04-21 Jie Zhang <jzhang918@gmail.com>
7272
7273 * MAINTAINERS: Update my email address.
7274
bcb28afc
PM
72752011-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
7276
7277 * gdb_wchar.h (USE_INTERMEDIATE_ENCODING_FUNCTION): New macro.
7278 (INTERMEDIATE_ENCODING): Change value to intermediate_encoding
7279 function call if __STDC_ISO_10646__ macro is defined.
7280 (intermediate_encoding): New prototype.
7281 * charset.c (your_gdb_wchar_t_is_bogus): New extern test variable
7282 to generate compile time error for unsupported gdb_wchar_t size.
7283 (ENDIAN_SUFFIX): New macro.
7284 (intermediate_encoding): New function.
7285
7b08b9eb
JK
72862011-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
7287
7288 * ada-lang.c (struct add_partial_datum): Update the comment for
7289 expand_partial_symbol_name.
7290 (ada_add_partial_symbol_completions): Rename to ...
7291 (ada_expand_partial_symbol_name): ... here, change return type, update
7292 function comment, call symbol_completion_match instead of
7293 symbol_completion_add.
7294 (ada_make_symbol_completion_list): Use now expand_partial_symbol_names
7295 and ada_expand_partial_symbol_name.
7296 * dwarf2read.c (dw2_expand_symtabs_matching): Support NULL
7297 FILE_MATCHER.
7298 (dw2_map_symbol_names): Remove.
7299 (dwarf2_gdb_index_functions): Unlist dw2_map_symbol_names.
7300 * psymtab.c (map_symbol_names_psymtab): Remove.
7301 (expand_symtabs_matching_via_partial): Support NULL FILE_MATCHER.
7302 Support KIND == ALL_DOMAIN. Exchange the NAME_MATCHER and KIND check
7303 order.
7304 (psym_functions): Unlist map_symbol_names_psymtab.
7305 (map_partial_symbol_names): Rename to ...
7306 (expand_partial_symbol_names): ... here, change the FUN type, call
7307 expand_symtabs_matching with ALL_DOMAIN and NULL FILE_MATCHER now.
7308 * psymtab.h (map_partial_symbol_names): Rename to ...
7309 (expand_partial_symbol_names): ... here, change the FUN type.
7310 * symfile.h (struct quick_symbol_functions): Update the description of
7311 expand_symtabs_matching. Remove map_symbol_names.
7312 * symtab.c (search_symbols): Add ALL_DOMAIN to the function comment.
7313 (struct add_name_data): Update the comment for
7314 expand_partial_symbol_name.
7315 (add_partial_symbol_name): Rename to ...
7316 (expand_partial_symbol_name): ... here. Replace
7317 completion_list_add_name call by strncmp.
7318 (default_make_symbol_completion_list_break_on): Use now
7319 expand_partial_symbol_names and expand_partial_symbol_name.
7320 * symtab.h (enum search_domain): New element ALL_DOMAIN.
7321
90476074
TT
73222011-04-20 Tom Tromey <tromey@redhat.com>
7323
7324 * dwarf2read.c (save_gdb_index_command): Replace format
7325 documentation with a pointer to the manual.
7326
c21236dc
PA
73272011-04-20 Pedro Alves <pedro@codesourcery.com>
7328
7329 * regcache.c: Include remote.h.
7330 (enum regcache_dump_what) <regcache_dump_remote>: New enum value.
7331 (regcache_dump): Handle regcache_dump_remote.
7332 (maintenance_print_remote_registers): New function.
7333 (_initialize_regcache): Install "maint print remote-registers"
7334 command.
7335 * remote.c (map_regcache_remote_table): New function, factored out
7336 from ...
7337 (init_remote_state): ... here.
7338 (remote_register_number_and_offset): New.
7339 * remote.h (remote_register_number_and_offset): Declare.
7340
b78974c3
PA
73412011-04-20 Pedro Alves <pedro@codesourcery.com>
7342
7343 * regcache.c (get_thread_arch_regcache): If creating a regcache for
7344 null_ptid, assume and allow a NULL address space, instead of
7345 asking the target for the ptid's address space.
7346 * infrun.c (ptid_is_pid): Remove assertion.
7347
7a9dd1b2
TT
73482011-04-19 Tom Tromey <tromey@redhat.com>
7349
7350 * windows-tdep.c (windows_xfer_shared_library):
7351 * windows-nat.c (get_module_name, windows_make_so):
7352 * v850-tdep.c (v850_handle_pushm):
7353 * utils.c (null_cleanup, gdb_realpath):
7354 * ui-out.c (get_next_header):
7355 * tracepoint.c (clear_traceframe_info):
7356 * symtab.c (lookup_symtab):
7357 * serial.h (struct serial_ops):
7358 * mipsread.c (read_alphacoff_dynamic_symtab):
7359 * infcmd.c (print_return_value):
7360 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address):
7361 * f-exp.y (parse_number):
7362 * exceptions.c (catch_exceptions):
7363 * dummy-frame.c (dummy_frame_this_id):
7364 * defs.h (struct cleanup):
7365 * breakpoint.c (disable_breakpoints_in_unloaded_shlib):
7366 * arm-tdep.c (arm_push_dummy_call):
7367 * amd64-tdep.h (amd64_collect_xsave):
7368 * amd64-tdep.c (amd64_collect_xsave):
7369 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache):
7370 * README (typing): Remove duplicate words.
7371 * cli/cli-decode.c (lookup_cmd_composition): Add comma.
7372 * infrun.c (siginfo_value_read): Fix typo.
7373 * solib-frv.c (frv_fdpic_find_global_pointer): Likewise.
7374 * top.c (source_line_number): Add comma.
7375
9941e0c5
MK
73762011-04-19 Marc Khouzam <marc.khouzam@ericsson.com>
7377
7378 * thread.c (any_live_thread_of_process): Prioritize threads
7379 that are not executing.
7380 * gdbthread.h (any_live_thread_of_process): Update comment
7381 as per above change.
7382
ed4b0e6a
AS
73832011-04-19 Andreas Schwab <schwab@linux-m68k.org>
7384
7385 * xcoffread.c (process_xcoff_symbol): Remove useless cast.
7386 (scan_xcoff_symtab): Likewise.
7387
9b13a2db
PM
73882011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
7389
7390 * xcoffread.c (process_xcoff_symbol): ARI fix: Avoid assignment
7391 inside if clause.
7392
1c6e1b0d
PM
73932011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
7394 Pedro Alves <pedro@codesourcery.com>
7395
7396 * xstormy16-tdep.c (xstormy16_push_dummy_call): Add local
7397 variables to simplify code and avoid == operator at end of
7398 line as this is against GNU coding standards.
7399
74de0234
PM
74002011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
7401
7402 * solib-svr4.c (svr4_keep_data_in_core): Rename local variable
7403 lm_name to name_lm to avoid conflict with lm_name function.
7404
b23518f0
PM
74052011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
7406
7407 ARI fixes: Use only lowercase function name for static functions.
7408 * nto-tdep.c (LM_ADDR): Rename to...
7409 (lm_addr): New function name.
7410 (nto_relocate_section_addresses): Adapt to change above.
7411 * solib-sunos.c (LM_ADDR): Rename to...
7412 (lm_addr): New function name.
7413 (LM_NEXT): Rename to...
7414 (lm_next): New function name.
7415 (sunos_current_sos, sunos_relocate_section_addresses): Adapt to
7416 function name changes above.
7417 * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Rename to...
7418 (lm_addr_from_link_map): New function name.
7419 (HAS_LM_DYNAMIC_FROM_LINK_MAP): Rename to...
7420 (has_lm_dynamic_from_link_map): New function name.
7421 (LM_DYNAMIC_FROM_LINK_MAP): Rename to...
7422 (lm_dynamic_from_link_map): New function name.
7423 (LM_ADDR_CHECK): Rename to...
7424 (lm_addr_check): New function name.
7425 (LM_NEXT): Rename to...
7426 (lm_next): New function name.
7427 (LM_PREV): Rename to...
7428 (lm_prev): New function name.
7429 (LM_NAME): Rename to...
7430 (lm_name): New function name.
7431 (IGNORE_FIRST_LINK_MAP_ENTRY): Rename to...
7432 (ignore_first_link_map_entry): New function name.
7433 (svr4_keep_data_in_core): Adapt to function name changes above.
7434 (svr4_current_sos): Likewise.
7435 (enable_break): Likewise.
7436 (svr4_relocate_section_addresses): Likewise.
7437
1448a0a2
PM
74382011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
7439
7440 ARI cleanup.
7441 * xtensa-tdep.c (xtensa_register_type): Use xstrprintf instead of
7442 sprintf. Simplify code and avoid loosing memory.
7443 (xtensa_register_reggroup_p): Extract assignment out of IF clause.
7444 (call0_frame_cache): Remove && operator from end of line.
7445
02835898
JK
74462011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7447
7448 Fix libraries displacement if they change whether they were prelinked.
7449 * solib-svr4.c (LM_ADDR_CHECK): Set L_ADDR even if the DYNAMIC pointer
7450 does not match. Comment why.
7451
9a845ea2
JK
74522011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7453
7454 * corelow.c: Include wrapper.h.
7455 (core_open): Call now gdb_target_find_new_threads.
7456 * wrapper.c: Include target.h.
7457 (gdb_target_find_new_threads): New.
7458 * wrapper.h (gdb_target_find_new_threads): New declaration.
7459
254f582e
JK
74602011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7461
7462 * linux-thread-db.c (find_new_threads_callback): Exit on zero TI_TID
7463 even if !TARGET_HAS_EXECUTION.
7464
63524580
JK
74652011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7466
7467 Fix convert_code_addr_to_desc_addr for ppc64 files after eu-strip.
7468 * elfread.c (elf_symfile_read): New variable synth_abfd, pass it to
7469 bfd_get_synthetic_symtab.
7470 * jit.c (jit_register_code): Pass NULL to the new parameter parent.
7471 * machoread.c (macho_add_oso_symfile): Pass main_objfile to the new
7472 parameter parent, remove the call to add_separate_debug_objfile.
7473 * solib.c (solib_read_symbols): Pass NULL to the new parameter parent.
7474 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
7475 * symfile.c (symbol_file_add_with_addrs_or_offsets): New parameter
7476 parent, new comment for it, call add_separate_debug_objfile for it.
7477 (symbol_file_add_separate): Pass objfile as the parameter parent,
7478 remove the call to add_separate_debug_objfile.
7479 (symbol_file_add_from_bfd): New parameter parent, pass it.
7480 (symbol_file_add): Pass NULL to the new parameter parent.
7481 * symfile.h (symbol_file_add_from_bfd): New parameter parent.
7482
90359a16
JK
74832011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7484
7485 * elfread.c (elf_symtab_read): Do not ignore .L symbols if they are
7486 BSF_SYNTHETIC.
7487
626e7282
JK
74882011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7489
7490 Fix Python access to inlined frames.
7491 * python/py-frame.c (frapy_read_var): Find BLOCK using get_frame_block.
7492 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
7493
cf31e6f9
TT
74942011-04-15 Tom Tromey <tromey@redhat.com>
7495
7496 * dwarf2read.c (add_index_entry): Use VEC_last, not VEC_length.
7497
c8d895f1
GB
74982011-04-15 Gary Benson <gbenson@redhat.com>
7499
7500 * MAINTAINERS: Add myself to write-after-approval section.
7501
56a9aa1d
MF
75022011-04-14 Mike Frysinger <vapier@gentoo.org>
7503
7504 * remote-sim.c (sim_command_completer): New function.
7505 (_initialize_remote_sim): Set completer to sim_command_completer.
7506
ba770c9c
TJB
75072011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
7508
7509 * breakpoint.c (print_exception_catchpoint): Rename to ...
7510 (print_it_exception_catchpoint): ... this.
7511 (gnu_v3_exception_catchpoint_ops): Update with new name
7512 for print_it_exception_catchpoint.
7513
51bf2553
EBM
75142011-04-13 Edjunior Machado <emachado@linux.vnet.ibm.com>
7515
7516 * MAINTAINERS: Add myself for write after approval privileges.
7517
d242658c
MP
75182011-04-13 Marek Polacek <mpolacek@redhat.com>
7519
7520 * MAINTAINERS: Add myself as a write-after-approval maintainer.
7521
4a4106ca
TJB
75222011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
7523
7524 * breakpoint.c (watch_command_1): Remove colon from exp_string.
7525
26063d49
TJB
75262011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
7527
7528 * breakpoint.c (save_breakpoints): Verify whether
7529 breakpoint_ops.print_recreate is defined before calling it.
7530
7782b183
GB
75312011-04-11 Gary Benson <gbenson@redhat.com>
7532
7533 Fix failure with --enable-maintainer-mode.
7534 * Makefile.in (aclocal_m4_deps): Updated gnulib dependencies.
7535
e8930875
JK
75362011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7537
7538 Code cleanup.
7539 * symtab.c (search_symbols): Reorder the KIND description in the
7540 function comment. Remove the unused 4th element of types, types2,
7541 types3 and types4. New gdb_assert on KIND.
7542 (symtab_symbol_info): Remove the unused 4th element of classnames.
7543 New gdb_assert on KIND.
7544 * symtab.h (enum search_domain): New warning in the enum comment.
7545 Assign numbers to the elements VARIABLES_DOMAIN, FUNCTIONS_DOMAIN and
7546 TYPES_DOMAIN.
7547
b4f2f049
JK
75482011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7549
7550 Fix crash of gdb save-index on a STABS file.
7551 * dwarf2read.c (write_psymtabs_to_index): Return also on no
7552 PSYMTABS_ADDRMAP.
7553
60d5a603
JK
75542011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7555
7556 Fix DW_AT_accessibility compatibility with gcc-4.6+.
7557 * dwarf2read.c: Include ctype.h.
7558 (producer_is_gxx_lt_4_6, dwarf2_default_access_attribute): New
7559 functions.
7560 (dwarf2_add_field): Fix new_field->accessibility by calling
7561 dwarf2_default_access_attribute. Restructure setting accessibility
7562 vs. virtuality.
7563 (dwarf2_add_member_fn): New variable accessibility. Fix fnp
7564 is_private and is_protected by calling
7565 dwarf2_default_access_attribute.
7566
e0f68161
KB
75672011-04-08 Kevin Buettner <kevinb@redhat.com>
7568
7569 * rx-tdep.c (rx_frame_unwind): Add default_frame_unwind_stop_reason
7570 to the initialization.
7571
2e1aae43
SE
75722011-04-08 Steve Ellcey <sje@cup.hp.com>
7573
7574 * Add default_frame_unwind_stop_reason value to libunwind_frame_unwind
7575 initalization.
7576
c6ca3dab
PM
75772011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
7578
7579 Remove support for old Cygwin 1.5 versions.
7580 * remote-fileio.c: Remove macros used to emulate new cygwin_conv_path
7581 function on old Cygwin version.
7582 * windows-nat.c: Remove cygwin version check and always define
7583 __USEWIDE for Cygwin compilation.
7584
bd18283a
YQ
75852011-04-07 Yao Qi <yao@codesourcery.com>
7586
7587 * arm-linux-tdep.c (arm_linux_copy_svc): Remove parameters INSN
7588 and TO.
7589 * arm-tdep.c (cleanup_svc): Handle variable instruction size.
7590 (arm_copy_svc): Remove parameters INSN and TO.
7591 (decode_svc_copro): Update caller.
7592 * arm-tdep.h (struct displaced_step_closure): Remove parameters
7593 from function pointer `copy_svc_os'.
7594
8c8dba6d
YQ
75952011-04-07 Yao Qi <yao@codesourcery.com>
7596
7597 * arm-tdep.c (cleanup_branch): Set a correct return address in
7598 LR for ARM and Thumb.
7599
59d7bcaf
JK
76002011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
7601
7602 Code cleanup.
7603 * dictionary.c (dict_hash): Use SYMBOL_HASH_NEXT.
7604 * dwarf2read.c (mapped_index_string_hash): Refer to SYMBOL_HASH_NEXT
7605 in the function comment, a new note on values compatibility.
7606 * minsyms.c (msymbol_hash_iw, msymbol_hash): Use SYMBOL_HASH_NEXT.
7607 * symtab.h (SYMBOL_HASH_NEXT): New.
7608
e7db58ea
TJB
76092011-04-06 Thiago Jung Bauermann <bauerman@br.ibm.com>
7610
7611 * ppc-linux-nat.c (check_condition): Add len output parameter.
7612 Set it based on the memory region referenced in the condition
7613 expression. Update all callers.
7614
9f743ef6
JK
76152011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
7616
7617 Fix crash regression on systems featuring .gdb_index.
7618 * objfiles.c (free_objfile): Move the
7619 forget_cached_source_info_for_objfile call earlier. Comment it.
7620 Extend the comment for objfile_free_data.
7621
9182c5bc
JK
76222011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
7623
7624 Fix regression of displaying the debug format.
7625 * buildsym.c (end_symtab): Set symtab's debugformat and producer from
7626 subfile.
7627
04bd08de
TT
76282011-04-04 Tom Tromey <tromey@redhat.com>
7629
7630 * cli/cli-interp.c (struct captured_execute_command_args):
7631 Remove.
7632 (do_captured_execute_command): Remove.
7633 (safe_execute_command): Use TRY_CATCH.
7634 * cli/cli-script.c (struct wrapped_read_command_file_args):
7635 Remove.
7636 (wrapped_read_command_file): Remove.
7637 (script_from_file): Use TRY_CATCH.
7638 * exceptions.c (catch_exception): Remove.
7639 * exceptions.h (catch_exception): Remove.
7640 (deprecated_throw_reason): Update comment.
7641 * mi/mi-main.c (captured_mi_execute_command): Change 'data'
7642 argument to 'context'.
7643 (mi_execute_command): Use TRY_CATCH.
7644 * remote.c (struct start_remote_args): Remove.
7645 (remote_start_remote): Update; change arguments.
7646 (remote_open_1): Use TRY_CATCH.
7647
58438ac1
TT
76482011-04-04 Tom Tromey <tromey@redhat.com>
7649
7650 * tracepoint.c (scope_info): Update.
7651 * symtab.c (decode_line_spec): Update.
7652 * python/python.c (gdbpy_decode_line): Update.
7653 * linespec.h (decode_line_1): Update.
7654 * linespec.c (decode_line_1): Remove 'not_found_ptr' argument.
7655 (decode_compound, find_method, symtab_from_filename)
7656 (decode_variable): Likewise.
7657 * cli/cli-cmds.c (edit_command): Update.
7658 (list_command): Update.
7659 * breakpoint.c (parse_breakpoint_sals): Remove 'not_found_ptr'
7660 argument.
7661 (create_breakpoint): Update.
7662 (until_break_command): Update.
7663 (addr_string_to_sals): Update.
7664 (decode_line_spec_1): Update.
7665
b78a6381
TT
76662011-04-04 Tom Tromey <tromey@redhat.com>
7667
7668 * breakpoint.c (struct captured_parse_breakpoint_args): Remove.
7669 (do_captured_parse_breakpoint): Remove.
7670 (create_breakpoint): `e' is now volatile. Remove `parse_args'.
7671 Use TRY_CATCH directly.
7672
00174a86
TT
76732011-04-04 Tom Tromey <tromey@redhat.com>
7674
7675 * symtab.h (free_symtab): Remove.
7676 (forget_cached_source_info_for_objfile): Declare.
7677 * symmisc.c (free_symtab): Remove.
7678 * source.c (forget_cached_source_info_for_objfile): New function.
7679 (forget_cached_source_info): Use it.
7680 * objfiles.c (free_objfile): Simplify check before calling
7681 clear_current_source_symtab_and_line. Call
7682 forget_cached_source_info_for_objfile.
7683
30cc903e
TT
76842011-04-04 Tom Tromey <tromey@redhat.com>
7685
7686 * mdebugread.c (psymtab_to_symtab_1): Copy linetable to obstack.
7687 (new_symtab): Don't set `free_code' on symtab.
7688 (new_linetable): Properly handle size==0.
7689 * symtab.h (struct symtab) <free_code, free_func>: Remove.
7690 * symmisc.c (free_symtab): Don't free the linetable. Don't call
7691 free_func.
7692 * jv-lang.c (struct jv_per_objfile_data): New.
7693 (jv_per_objfile_free): Free the data.
7694 (get_dynamics_objfile): Allocate a jv_per_objfile_data.
7695 (get_java_class_symtab): Set the `dict' field on the
7696 jv_per_objfile_data.
7697 (free_class_block): Remove.
7698 * buildsym.c (end_symtab): Don't set `free_code' or `free_func' on
7699 the symtab.
7700
0c2e6019
TT
77012011-04-04 Tom Tromey <tromey@redhat.com>
7702
7703 * symfile.c (reread_symbols): Update.
7704 * objfiles.h (struct objfile) <cp_namespace_symtab>: Remove
7705 field.
7706 * objfiles.c (allocate_objfile): Update.
7707 * cp-support.h (cp_check_possible_namespace_symbols): Don't
7708 declare.
7709 * cp-namespace.c (lookup_symbol_file): Don't call
7710 lookup_possible_namespace_symbol.
7711 (initialize_namespace_symtab, get_possible_namespace_block)
7712 (free_namespace_block, cp_check_possible_namespace_symbols)
7713 (check_possible_namespace_symbols_loop)
7714 (check_one_possible_namespace_symbol)
7715 (lookup_possible_namespace_symbol): Remove.
7716 (maintenance_cplus_namespace): Replace with notice.
7717 (_initialize_cp_namespace): Deprecate `maint cplus namespace'.
7718
554d387d
TT
77192011-04-04 Tom Tromey <tromey@redhat.com>
7720
7721 * xcoffread.c (read_xcoff_symtab): Make `debugfmt' const.
7722 * symtab.h (struct symtab) <producer, debugformat>: Now const.
7723 * symmisc.c (free_symtab): Don't free debugformat.
7724 * buildsym.h (struct subfile) <producer, debugformat>: Now const.
7725 (record_debugformat, record_producer): Document.
7726 * buildsym.c (end_symtab): Don't save debugformat and producer
7727 names on obstack.
7728 (end_symtab): Don't free debugformat and producer fields.
7729 (record_debugformat): Don't call xstrdup.
7730 (record_producer): Likewise.
7731
d4d4db8a
TT
77322011-04-04 Tom Tromey <tromey@redhat.com>
7733
7734 * source.c (find_source_lines): Remove LSEEK_NOT_LINEAR code.
7735 (source_line_charpos, source_charpos_line): Remove.
7736
8903c50d
TT
77372011-04-04 Tom Tromey <tromey@redhat.com>
7738
7739 * symtab.h (domain_enum): Split in two...
7740 (enum search_domain): New.
7741 (search_symbols): Update.
7742 * symtab.c (print_symbol_info, symtab_symbol_info): Remove
7743 redundant declarations.
7744 (search_symbols): Change 'kind' argument to search_domain.
7745 Update.
7746 (print_symbol_info): Likewise.
7747 (symtab_symbol_info): Likewise.
7748 * symfile.h (struct quick_symbol_functions)
7749 <pre_expand_symtabs_matching>: Change type of 'kind' argument.
7750 <expand_symtabs_matching>: Likewise.
7751 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Update.
7752 (expand_symtabs_matching_via_partial): Update.
7753 * dwarf2read.c (dw2_pre_expand_symtabs_matching): Update.
7754 (dw2_expand_symtabs_for_function): Update.
7755 * block.h: Moved anonymous enum...
7756 * defs.h (enum block_enum): ... here. Now named.
7757
d9351f5f 77582011-04-03 Joel Brobecker <brobecker@adacore.com>
7759
7760 GDB 7.3 branch created (branch timestamp: 2011-04-01 01:00 UTC)
7761 * version.in: Bump version to 7.3.50.20110403-cvs.
7762
d6e00af6
JB
77632011-04-03 Joel Brobecker <brobecker@adacore.com>
7764
7765 * NEWS: Create a new section for the next release branch.
7766 Rename the section of the current branch, now that it has
7767 been cut.
7768
2b9e5ea6
UW
77692011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
7770
7771 * arm-tdep.c (arm_gdbarch_init): Enfore correct register number
7772 for "fpscr" in target description.
7773
0cf03b49
JK
77742011-04-01 Jan Kratochvil <jan.kratochvil@redhat.com>
7775
7776 * dwarf2read.c (find_slot_in_mapped_hash): New variable back_to,
7777 initialize it. Delay HASH initialization. Strip the part after open
7778 parenthesis for languages with qualifiers. Call do_cleanups.
7779
5d901a73
TT
77802011-04-01 Tom Tromey <tromey@redhat.com>
7781
7782 * utils.c (report_command_stats): Don't print `-' for negative
7783 number.
7784
b0dd7688
JB
77852011-04-01 Eric Botcazou <ebotcazou@adacore.com>
7786
7787 * ada-lang.c (ada_is_simple_array_type, ada_value_slice_from_ptr)
7788 (ada_value_slice, empty_array, to_fixed_array_type): Deal with
7789 typedefs.
7790
956a9fb9
JB
77912011-04-01 Joel Brobecker <brobecker@adacore.com>
7792
7793 * breakpoint.h (bpdisp_text): Add declaration.
7794 * breakpoint.c (bpdisp_text): Make non-static.
7795 * ada-lang.c: #include "mi/mi-common.h".
7796 (print_it_exception): Rewrite to improve GDB/MI output.
7797
3352110b
PA
77982011-04-01 Pedro Alves <pedro@codesourcery.com>
7799
7800 * arm-tdep.h (struct address_space): Add forward declaration.
7801
18819fa6
UW
78022011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
7803
7804 * arm-tdep.h (arm_insert_single_step_breakpoint): Add prototype.
7805 * arm-tdep.c (arm_override_mode): New global.
7806 (arm_pc_is_thumb): Respect arm_override_mode. Remove single-step
7807 execution mode heuristics.
7808 (thumb_get_next_pc_raw): Remove INSERT_BKTP argument; always insert
7809 second single-step breakpoint if needed, using
7810 arm_insert_single_step_breakpoint.
7811 (arm_get_next_pc_raw): Remove INSERT_BKTP argument. Only handle
7812 ARM execution mode, do not call thumb_get_next_pc_raw.
7813 (arm_get_next_pc): Encode execution mode in return value. Call
7814 either arm_get_next_pc_raw or thumb_get_next_pc_raw.
7815 (arm_insert_single_step_breakpoint): New function.
7816 (arm_software_single_step): Call it.
7817 * arm-linux-tdep.c (arm_linux_sigreturn_return_addr): Add IS_THUMB
7818 argument to return execution mode of sigreturn target.
7819 (arm_linux_syscall_next_pc): Use it.
7820 (arm_linux_copy_svc): Update call.
7821 (arm_linux_software_single_step): Call
7822 arm_insert_single_step_breakpoint.
7823
a6e293d1
JK
78242011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
7825
7826 * dwarf2read.c (dwarf2_read_index): Fix .gdb_index version number in
7827 the comment.
7828
a4c8e806
TT
78292011-03-31 Tom Tromey <tromey@redhat.com>
7830
7831 * varobj.c (update_dynamic_varobj_children): Properly handle
7832 errors from iterator.
7833
df5c6c50
JK
78342011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
7835
7836 * dwarf2read.c (dwarf2_name): Initialize DEMANGLED. Avoid demangling
7837 struct linkage name twice.
7838
1dae3efc
TT
78392011-03-31 Tom Tromey <tromey@redhat.com>
7840
7841 * python/py-prettyprint.c (print_stack_unless_memory_error): Add
7842 missing ">" to message.
7843
f4f7ab05
TT
78442011-03-31 Tom Tromey <tromey@redhat.com>
7845
7846 * varobj.c (instantiate_pretty_printer): Remove duplicate
7847 'return'.
7848
fcf250e2
UW
78492011-03-31 Ulrich Weigand <ulrich.weigand@linaro.org>
7850
7851 * i386-tdep.c (i386_frame_prev_register): Unwind SP from memory
7852 if neither saved value nor register available (e.g. signal frame).
7853
ee6436e3
TJB
78542011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
7855
7856 * macroexp.c (expand): Avoid uninitialized variable
7857 compiler warning.
7858
423f41a5
TJB
78592011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
7860
7861 * breakpoint.c (break_range_command): Fix typo in comment.
7862
f1310107
TJB
78632011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
7864 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
7865
7866 Implement support for PowerPC BookE ranged breakpoints.
7867 * NEWS: Mention support for ranged breakpoints on embedded PowerPC.
7868 * breakpoint.h (struct bp_target_info) <length>: New member
7869 variable.
7870 (struct breakpoint_ops) <breakpoint_hit>: Take struct bp_location
7871 instead of struct breakpoint as argument, and also add ASPACE
7872 and BP_ADDR arguments. Update all callers.
7873 (struct breakpoint_ops) <print_one_detail>: New method.
7874 (struct breakpoint) <addr_string_range_end>: New member variable.
7875 * breakpoint.c (breakpoint_location_address_match): Add function
7876 prototype.
7877 (insert_bp_location): Set bl->target_info.length.
7878 (breakpoint_here_p): Call breakpoint_location_address_match.
7879 (moribund_breakpoint_here_p): Likewise.
7880 (regular_breakpoint_inserted_here_p): Likewise.
7881 (breakpoint_thread_match): Likewise.
7882 (bpstat_stop_status): Likewise.
7883 (bpstat_check_location): Move call to
7884 breakpoint_ops.breakpoint_hit to the top.
7885 (print_one_breakpoint_location): Call
7886 breakpoint_ops.print_one_detail if available.
7887 (breakpoint_address_match_range): New function.
7888 (breakpoint_location_address_match): Likewise.
7889 (breakpoint_locations_match): Compare the length field of the
7890 locations too.
7891 (hw_breakpoint_used_count): Count resources used by all locations
7892 in a breakpoint, and use breakpoint_ops.resources_needed if
7893 available.
7894 (breakpoint_hit_ranged_breakpoint): New function.
7895 (resources_needed_ranged_breakpoint): Likewise.
7896 (print_it_ranged_breakpoint): Likewise.
7897 (print_one_ranged_breakpoint): Likewise.
7898 (print_one_detail_ranged_breakpoint): Likewise.
7899 (print_mention_ranged_breakpoint): Likewise.
7900 (print_recreate_ranged_breakpoint): Likewise.
7901 (ranged_breakpoint_ops): New structure.
7902 (find_breakpoint_range_end): New function.
7903 (break_range_command): Likewise.
7904 (delete_breakpoint): Free addr_string_range_end.
7905 (update_breakpoint_locations): Add SALS_END argument. Update
7906 all callers. Calculate breakpoint length if a non-zero SALS_END
7907 is given. Call breakpoint_locations_match instead of
7908 breakpoint_address_match.
7909 (reset_breakpoint): Find SaL of the end of the range if B is a
7910 ranged breakpoint.
7911 (_initialize_breakpoint): Register break-range command.
7912 * defs.h (print_core_address): Add function prototype.
7913 * ppc-linux-nat.c (ppc_linux_ranged_break_num_registers): New
7914 function.
7915 (ppc_linux_insert_hw_breakpoint): Support ranged breakpoints.
7916 (ppc_linux_remove_hw_breakpoint): Likewise.
7917 (_initialize_ppc_linux_nat): Initialize
7918 to_ranged_break_num_registers.
7919 * target.c (update_current_target): Add comment about
7920 to_ranged_break_num_registers.
7921 (target_ranged_break_num_registers): New function.
7922 * target.h (struct target_ops) <to_ranged_break_num_registers>:
7923 New method.
7924 (target_ranged_break_num_registers): Add function prototype.
7925 * ui-out.c (ui_out_field_core_addr): Move address-printing logic to ...
7926 * utils.c (print_core_address): ... here.
7927
02d20e4a
UW
79282011-03-31 Ulrich Weigand <uweigand@de.ibm.com>
7929
7930 * breakpoint.c (addr_string_to_sals): Avoid uninitialized
7931 variable compiler warning.
7932
ef23e705
TJB
79332011-03-30 Thiago Jung Bauermann <bauerman@br.ibm.com>
7934
7935 * breakpoint.c (breakpoint_re_set_one): Factor out breakpoint-resetting
7936 code from here ...
7937 (re_set_breakpoint): ... to here ...
7938 (addr_string_to_sals): ... and here.
7939
311e6ab3
PM
79402011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
7941
7942 * Makefile.in (SFILES): Add missing C sources.
7943 (HFILES_NO_SRCDIR): Remove gdbserver subdirectory headers.
7944 Add missing headers.
7945
acd1d99c
MF
79462011-03-29 Mike Frysinger <vapier@gentoo.org>
7947
7948 * .gitignore: New file.
7949
66ee2731
MF
79502011-03-29 Mike Frysinger <vapier@gentoo.org>
7951
7952 * NEWS: Mention new cfi device simulation.
7953
53832f31
TT
79542011-03-29 Tom Tromey <tromey@redhat.com>
7955
7956 * dwarf2read.c (fixup_partial_die): Handle linkage name on
7957 otherwise anonymous types.
7958 (dwarf2_name): Likewise.
7959 * valops.c (value_struct_elt_for_reference): Refine artificial
7960 type logic. Call error if j==-1.
7961
09b58708
JK
79622011-03-29 Andreas Tobler <andreast-list@fgznet.ch>
7963
7964 Fix false GCC warning.
7965 * infcall.c (find_function_addr): Initialize funaddr.
7966
6023c606
PM
79672011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
7968
7969 Fix mingw compilation with --enable-targets=all.
7970 * remote-mips.c (gdb_usleep.h): Include header.
7971 (mips_enter_debug): Use gdb_usleep instead of sleep.
7972
0e30163f
JK
79732011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7974
7975 Support resolution of STT_GNU_IFUNC via breakpoints.
7976 * breakpoint.c (print_it_typical): Support bp_gnu_ifunc_resolver and
7977 bp_gnu_ifunc_resolver_return.
7978 (bpstat_what): Rename parameter to bs_head, new variable bs, adjust
7979 the loop. Support bp_gnu_ifunc_resolver and
7980 bp_gnu_ifunc_resolver_return. New comment after the loop. New loop
7981 for bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return
7982 breakpoints.
7983 (bptype_string, print_one_breakpoint_location): Support
7984 bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return.
7985 (user_settable_breakpoint): Return true also for
7986 bp_gnu_ifunc_resolver.
7987 (allocate_bp_location): Support bp_gnu_ifunc_resolver and
7988 bp_gnu_ifunc_resolver_return.
7989 (set_breakpoint_location_function): New parameter explicit_loc,
7990 describe it. Call find_pc_partial_function_gnu_ifunc with new
7991 variable IS_GNU_IFUNC and adjust the address for STT_GNU_IFUNC if
7992 EXPLICIT_LOC is not set.
7993 (set_raw_breakpoint): Set EXPLICIT_LOC for
7994 set_breakpoint_location_function.
7995 (clone_momentary_breakpoint): Use true for EXPLICIT_LOC of
7996 set_breakpoint_location_function.
7997 (mention): Support bp_gnu_ifunc_resolver and
7998 bp_gnu_ifunc_resolver_return.
7999 (add_location_to_breakpoint): Set EXPLICIT_LOC for
8000 set_breakpoint_location_function.
8001 (update_breakpoint_locations): Remove static.
8002 (breakpoint_re_set_one): Support bp_gnu_ifunc_resolver and
8003 bp_gnu_ifunc_resolver_return.
8004 * breakpoint.h (enum bptype): New fields bp_gnu_ifunc_resolver and
8005 bp_gnu_ifunc_resolver_return.
8006 (update_breakpoint_locations): New declaration.
8007 * elfread.c: Include gdbthread.h and regcache.h.
8008 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop): New
8009 functions.
8010 (elf_gnu_ifunc_fns): Install them.
8011 * minsyms.c (stub_gnu_ifunc_resolver_stop)
8012 (stub_gnu_ifunc_resolver_return_stop): New functions.
8013 (stub_gnu_ifunc_fns): Install them.
8014 * symtab.h (struct gnu_ifunc_fns): New fields gnu_ifunc_resolver_stop
8015 and gnu_ifunc_resolver_return_stop.
8016 (gnu_ifunc_resolver_stop, gnu_ifunc_resolver_return_stop): New.
8017
07be84bf
JK
80182011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
8019
8020 STT_GNU_IFUNC reader implementation.
8021 * elfread.c: Include gdbtypes.h, value.h and infcall.h.
8022 (SYMBOL_GOT_PLT_SUFFIX, elf_rel_plt_read)
8023 (elf_objfile_gnu_ifunc_cache_data, struct elf_gnu_ifunc_cache)
8024 (elf_gnu_ifunc_cache_hash, elf_gnu_ifunc_cache_eq)
8025 (elf_gnu_ifunc_record_cache, elf_gnu_ifunc_resolve_by_cache)
8026 (elf_gnu_ifunc_resolve_by_got, elf_gnu_ifunc_resolve_name)
8027 (elf_gnu_ifunc_resolve_addr): New.
8028 (elf_symfile_read): Call elf_rel_plt_read.
8029 (elf_gnu_ifunc_fns): New.
8030 (_initialize_elfread): Initialize elf_objfile_gnu_ifunc_cache_data.
8031 Install elf_gnu_ifunc_fns.
8032 * infcall.c (find_function_return_type): New function.
8033 (find_function_addr): Resolve TYPE_GNU_IFUNC functions, if possible.
8034 * minsyms.c (stub_gnu_ifunc_resolve_addr)
8035 (stub_gnu_ifunc_resolve_name): New functions.
8036 (stub_gnu_ifunc_fns, gnu_ifunc_fns_p): New variables.
8037 * symtab.h (struct gnu_ifunc_fns, gnu_ifunc_resolve_addr)
8038 (gnu_ifunc_resolve_name, gnu_ifunc_fns_p): New.
8039
300f8e10
JK
80402011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
8041
8042 Code cleanup for later STT_GNU_IFUNC support.
8043 * infcall.c (find_function_addr): Remove variable code, use explicit
8044 dereferences for it. Move VALUE_TYPE initialization later.
8045
11c81455
JK
80462011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
8047
8048 GDB find_pc_partial_function support for STT_GNU_IFUNC.
8049 * blockframe.c (cache_pc_function_is_gnu_ifunc): New variable.
8050 (clear_pc_function_cache): Clear it.
8051 (find_pc_partial_function): Rename to ...
8052 (find_pc_partial_function_gnu_ifunc): ... this function. New
8053 parameter is_gnu_ifunc_p, describe it. Set *IS_GNU_IFUNC_P.
8054 (find_pc_partial_function): New wrapper for this function.
8055 * symtab.h (find_pc_partial_function_gnu_ifunc): New declaration.
8056
0875794a
JK
80572011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
8058
8059 GDB internal type support for STT_GNU_IFUNC.
8060 * elfread.c (record_minimal_symbol): Support mst_text_gnu_ifunc.
8061 (elf_symtab_read): Set mst_text_gnu_ifunc for
8062 BSF_GNU_INDIRECT_FUNCTION.
8063 * eval.c (evaluate_subexp_standard): Support TYPE_GNU_IFUNC.
8064 * gdbtypes.c (init_type): Support TYPE_FLAG_GNU_IFUNC,
8065 builtin_func_func, nodebug_text_gnu_ifunc_symbol and
8066 nodebug_got_plt_symbol.
8067 * gdbtypes.h (enum type_flag_value): New entry TYPE_FLAG_GNU_IFUNC.
8068 (TYPE_GNU_IFUNC): New.
8069 (struct main_type): New field flag_gnu_ifunc.
8070 (struct builtin_type): New field builtin_func_func.
8071 (struct objfile_type): New fields nodebug_text_gnu_ifunc_symbol and
8072 nodebug_got_plt_symbol.
8073 * minsyms.c (lookup_minimal_symbol_text): Support mst_text_gnu_ifunc.
8074 (in_gnu_ifunc_stub): New.
8075 (prim_record_minimal_symbol, find_solib_trampoline_target): Support
8076 mst_text_gnu_ifunc.
8077 * parse.c (write_exp_msymbol): New variable ifunc_msym. Detect and
8078 support mst_text_gnu_ifunc. Support mst_slot_got_plt.
8079 * solib-svr4.c (svr4_in_dynsym_resolve_code): Return true also for
8080 in_gnu_ifunc_stub.
8081 * symmisc.c (dump_msymbols): Support mst_text_gnu_ifunc.
8082 * symtab.c (search_symbols): Likewise.
8083 * symtab.h (enum minimal_symbol_type): New fields mst_text_gnu_ifunc
8084 and mst_slot_got_plt.
8085 (in_gnu_ifunc_stub): New declaration.
8086
d0fb5eae
JK
80872011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
8088
8089 Support a ring of related breakpoints.
8090 * breakpoint.c (watchpoint_del_at_next_stop): New, move here code from
8091 other functions, add gdb_assert.
8092 (update_watchpoint, watchpoint_check): Add gdb_assert. Use
8093 watchpoint_del_at_next_stop.
8094 (bpstat_check_watchpoint): Use watchpoint_del_at_next_stop.
8095 (bpstat_stop_status): Handle ring in related_breakpoint.
8096 (set_raw_breakpoint_without_location): Initialize ring in
8097 related_breakpoint.
8098 (delete_breakpoint): Handle ring in related_breakpoint, use
8099 watchpoint_del_at_next_stop.
8100 (map_breakpoint_numbers): Handle ring in related_breakpoint.
8101
9cded63f
TT
81022011-03-28 Tom Tromey <tromey@redhat.com>
8103
8104 PR symtab/12441:
8105 * dwarf2read.c (prepare_one_comp_unit): Don't call set_cu_language
8106 with `language_minimal'.
8107
467d42c4
UW
81082011-03-25 Ulrich Weigand <ulrich.weigand@linaro.org>
8109
8110 * arm-tdep.c (arm_elf_make_msymbol_special): Use ARM_SYM_BRANCH_TYPE
8111 instead of checking for STT_ARM_TFUNC symbol type.
8112
62853458
TT
81132011-03-25 Tom Tromey <tromey@redhat.com>
8114
8115 * linespec.c (symbol_found): Restore line-based result for
8116 non-LOC_LABEL symbols.
8117
a7417d46
KT
81182011-03-25 Kai Tietz <ktietz@redhat.com>
8119
8120 * tui/tui-source.c (tui_set_source_content): Use filename_cmp
8121 instead of strcmp for comparison.
8122 (tui_source_is_displayed): Likewise.
8123 * tui/tui-winsource.c (tui_update_breakpoint_info): Likewise.
8124
55f1336d
TT
81252011-03-24 Mark Wielaard <mjw@redhat.com>
8126
f33edef8
PP
8127 * dwarf2read.c (lookup_signatured_type): Use DW_FORM_ref_sig8 in
8128 complaint.
8129 (skip_one_die): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
8130 (find_partial_die_in_comp_unit): Likewise in comment.
8131 (read_attribute_value): Likewise.
8132 (lookup_die_type): Likewise.
8133 (dwarf_form_name): Likewise.
8134 (dump_die_shallow): Likewise.
8135 (follow_die_ref_or_sig): Likewise.
55f1336d 8136
9ef07c8c
TT
81372011-03-24 Tom Tromey <tromey@redhat.com>
8138
8139 PR breakpoints/11816:
8140 * linespec.c (decode_line_1): Parse `function:label' linespecs.
8141 (decode_compound): Update.
8142 (find_function_symbol): New function.
8143 (decode_dollar): Update.
8144 (decode_label): Add 'function_symbol' parameter. Handle
8145 function-relative labels.
8146 (decode_variable): Update.
8147 (symbol_found): Add 'function_symbol' parameter. Use label's PC,
8148 not its line. Set `special_display' and canonical name for
8149 labels.
8150
56435ebe
TT
81512011-03-24 Tom Tromey <tromey@redhat.com>
8152
8153 * linespec.h (struct linespec_result) <special_display>: New
8154 field.
8155 * breakpoint.h (struct breakpoint) <display_canonical>: New
8156 field.
8157 * breakpoint.c (print_breakpoint_location): Respect
8158 display_canonical.
8159 (create_breakpoint_sal): Add 'display_canonical' parameter.
8160 (create_breakpoints_sal): Update.
8161 (create_breakpoint): Update.
8162
7efd8fc2
TT
81632011-03-24 Tom Tromey <tromey@redhat.com>
8164
8165 * symtab.c (decode_line_spec): Update.
8166 * linespec.c (build_canonical_line_spec): Change type of
8167 'canonical'.
8168 (decode_line_2, decode_line_1, decode_objc, decode_compound)
8169 (find_method, decode_all_digits, decode_dollar, decode_label)
8170 (symbol_found): Likewise.
8171 (init_linespec_result): New function.
8172 * breakpoint.c (struct captured_parse_breakpoint_args)
8173 <canonical_p>: New field, replaces addr_string_p.
8174 (create_breakpoints_sal): Add 'canonical' parameter, replacing
8175 'addr_string'.
8176 (parse_breakpoint_sals): Likewise.
8177 (do_captured_parse_breakpoint): Update.
8178 (create_breakpoint): Use struct linespec_result.
8179 (until_break_command): Update.
8180 (breakpoint_re_set_one): Update.
8181 (decode_line_spec_1): Update.
8182 * linespec.h (struct linespec_result): New.
8183 (init_linespec_result): Declare.
8184
788c8b10
PA
81852011-03-23 Pedro Alves <pedro@codesourcery.com>
8186
8187 * regcache.c (regcache_raw_read): If the target didn't supply a
8188 given raw register, mark it as unavailable.
8189
0ba1096a
KT
81902011-03-23 Kai Tietz <ktietz@redhat.com>
8191
8192 * breakpoint.c (clear_command): Use filename_cmp
8193 instead of strcmp for comparison.
8194 * buildsym.c (watch_main_source_file_lossage): Likewise.
8195 (patch_subfile_names): Use IS_DIR_SEPARATOR instead of
8196 checking just for slash.
8197 * dbxread.c (read_dbx_symtab): Use lbasename instead of
8198 strrchr and filename_cmp instead of strcmp for filenames.
8199 (add_old_header_file): Use filename_cmp
8200 instead of strcmp for comparison.
8201 * exec.c (exec_set_section_address): Likewise.
8202 * macrotab.c (macro_lookup_inclusion): Likewise.
8203 (macro_lookup_inclusion): Likewise.
8204 * elfread.c (_initialize_elfread): Likewise.
8205 (elfstab_offset_sections): Likewise.
8206 (elfstab_offset_sections): Use lbasename instead of
8207 strrchr.
8208 * mdebugread.c (parse_partial_symbols): Likewise.
8209 (arse_partial_symbols): Use filename_(n)cmp instead of
8210 str(n)cmp for comparison.
8211 * minsyms.c (lookup_minimal_symbol): Likewise.
8212 * psymtab.c (read_psymtabs_with_filename): Likewise.
8213 * solib.c (solib_read_symbols): Likewise.
8214 (reload_shared_libraries_1): Likewise.
8215 * symmisc.c (maintenance_print_symbols): Likewise.
8216 * symfile.c (separate_debug_file_exists): Likewise.
8217 (reread_symbols): Likewise.
8218 (find_separate_debug_file_by_debuglink): Likewise.
8219 * remote-fileio.c (remote_fileio_func_rename): Likewise.
8220 * source.c (add_path): Likewise.
8221 * symtab.c (filename_seen): Likewise.
8222 (file_matches): Likewise.
8223 (print_symbol_info): Likewise.
8224 (maybe_add_partial_symtab_filename): Likewise.
8225 (make_source_files_completion_list): Likewise.
8226 * xml-syscall.c (init_sysinfo): Likewise.
8227 * windows-nat.c (_initialize_check_for_gdb_ini): Use
8228 IS_DIR_SEPARATOR for checking for trailing path separator.
8229
dd90784c
JK
82302011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
8231
8232 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_entry_value. New
8233 label abort_expression.
8234 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle
8235 DWARF_VALUE_OPTIMIZED_OUT.
8236
3167638f
JK
82372011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
8238
8239 Code cleanup.
8240 * c-typeprint.c (c_type_print_args): Change parameter show_artificial
8241 to linkage_name. Invert its value. Update the function comment.
8242 (c_type_print_varspec_suffix): Invert it at the caller.
8243 * dwarf2read.c (dwarf2_compute_name): Invert it at the caller.
8244
ce406537
PA
82452011-03-22 Pedro Alves <pedro@codesourcery.com>
8246
8247 * infcmd.c (post_create_inferior): Ignore NOT_AVAILABLE_ERROR
8248 errors when reading the `stop_pc'.
8249 * printcmd.c (pc_prefix): Use get_frame_pc_if_available instead of
8250 get_frame_pc.
8251
da5d4055
PM
82522011-03-22 Phil Muldoon <pmuldoon@redhat.com>
8253
8254 * NEWS: Document gdb.Write stream keyword.
8255
29e0eb9c
JK
82562011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
8257
8258 Revert:
8259 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8260 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
8261 (dwarf2_add_field): Fix new_field->accessibility for
8262 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
8263
05775840
PM
82642011-03-22 Phil Muldoon <pmuldoon@redhat.com>
8265
f33edef8 8266 PR python/12183
05775840
PM
8267
8268 * python/py-function.c (fnpy_call): Treat GdbErrors differently to
8269 other error classes. Do not print stack trace.
8270
a0cb7835
JK
82712011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8272
8273 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
8274 (dwarf2_add_field): Fix new_field->accessibility for
8275 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
8276
d19f7eee
UW
82772011-03-21 Ulrich Weigand <ulrich.weigand@linaro.org>
8278
8279 * arm-tdep.c (arm_analyze_prologue): Do not abort parsing when
8280 encountering a load via a non-SP register.
8281
4a2fbb50
UW
82822011-03-21 Ulrich Weigand <uweigand@de.ibm.com>
8283
8284 * tramp-frame.c (tramp_frame_prepend_unwinder): Set stop_reason
8285 field in returned unwinder.
8286
3489610d
JB
82872012-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8288
8289 * ada-lang.c (replace_operator_with_call): Copy also GDBARCH.
8290
8c1a34e7
JB
82912012-03-21 Joel Brobecker <brobecker@adacore.com>
8292
8293 * ada-lang.c (replace_operator_with_call): Use xzalloc instead
8294 of xmalloc.
8295
8fbca658
PA
82962012-03-18 Pedro Alves <pedro@codesourcery.com>
8297
8298 * frame.c (frame_unwind_register): Throw an error if unwinding the
8299 register failed.
8300 * get_prev_frame_1 (get_prev_frame_1): Ask the unwinder if there's
8301 an unwind stop reason.
8302 (frame_stop_reason_string): Handle UNWIND_UNAVAILABLE.
8303 * frame.h (enum unwind_stop_reason) <UNWIND_OUTERMOST,
8304 UNWIND_UNAVAILABLE>: New.
8305 * inline-frame.c (inline_frame_unwind): Install
8306 default_frame_unwind_stop_reason.
8307 * frame-unwind.c: Include "exceptions.h".
8308 (frame_unwind_find_by_frame): Swallow NOT_AVAILABLE_ERROR errors.
8309 (default_frame_unwind_stop_reason): New.
8310 * frame-unwind.h (frame_unwind_stop_reason_ftype): New typedef.
8311 (default_frame_unwind_stop_reason): Declare.
8312 (struct frame_unwind) <stop_reason>: New function pointer.
8313
8314 * dummy-frame.c: Install default_frame_unwind_stop_reason.
8315 * dwarf2-frame.c: Include exceptions.h.
8316 (struct dwarf2_frame_cache) <unavailable_retaddr>: New field.
8317 (dwarf2_frame_cache): Swallow NOT_AVAILABLE_ERROR errors when
8318 computing the CFA. If such an error was thrown, set
8319 unavailable_retaddr.
8320 (dwarf2_frame_unwind_stop_reason): New.
8321 (dwarf2_frame_this_id): Don't build a frame id if the CFA was
8322 unavailable.
8323 (dwarf2_frame_unwind): Install dwarf2_frame_unwind_stop_reason.
8324 (dwarf2_signal_frame_unwind): Ditto.
8325
8326 * amd64-tdep.c: Include "exceptions.h".
8327 (struct amd64_frame_cache): New field "base_p".
8328 (amd64_init_frame_cache): Clear it.
8329 (amd64_frame_cache_1): New, factored out from amd64_frame_cache.
8330 Avoid reading registers with functions that throw if the register
8331 is not necessary to compute the frame base.
8332 (amd64_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
8333 swallowing NOT_AVAILABLE_ERROR.
8334 (amd64_frame_unwind_stop_reason): New.
8335 (amd64_frame_this_id): Don't build a frame id if the frame base
8336 was unavailable.
8337 (amd64_frame_unwind): Install amd64_frame_unwind_stop_reason.
8338 (amd64_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
8339 base_p if the frame base was computable.
8340 (amd64_sigtramp_frame_unwind_stop_reason): New.
8341 (amd64_sigtramp_frame_this_id): Don't build a frame id if the
8342 frame base was unavailable.
8343 (amd64_sigtramp_frame_unwind): Install
8344 amd64_sigtramp_frame_unwind_stop_reason.
8345 (amd64_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
8346 base_p if the frame base was computable.
8347 (amd64_epilogue_frame_unwind_stop_reason): New.
8348 (amd64_epilogue_frame_this_id): Don't build a frame id if the
8349 frame base was unavailable.
8350 (amd64_epilogue_frame_unwind): Install
8351 amd64_epilogue_frame_unwind_stop_reason.
8352 * i386-tdep.c: Include "exceptions.h".
8353 (struct i386_frame_cache): New field "base_p".
8354 (i386_init_frame_cache): Clear it.
8355 (i386_frame_cache_1): New, factored out from amd64_frame_cache.
8356 Avoid reading registers with functions that throw if the register
8357 is not necessary to compute the frame base.
8358 (i386_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
8359 swallowing NOT_AVAILABLE_ERROR.
8360 (i386_frame_unwind_stop_reason): New.
8361 (i386_frame_this_id): Don't build a frame id if the frame base was
8362 unavailable.
8363 (i386_frame_prev_register): Handle unavailable SP.
8364 (i386_frame_unwind): Install i386_frame_unwind_stop_reason.
8365 (i386_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
8366 base_p if the frame base was computable.
8367 (i386_epilogue_frame_unwind_stop_reason): New.
8368 (i386_epilogue_frame_this_id): Don't build a frame id if the frame
8369 base was unavailable.
8370 (i386_epilogue_frame_unwind): Install
8371 i386_epilogue_frame_unwind_stop_reason.
8372 (i386_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
8373 base_p if the frame base was computable.
8374 (i386_sigtramp_frame_unwind_stop_reason): New.
8375 (i386_sigtramp_frame_this_id): Don't build a frame id if the frame
8376 base was unavailable.
8377 (i386_sigtramp_frame_unwind): Install
8378 i386_sigtramp_frame_unwind_stop_reason.
8379 * sentinel-frame.c (sentinel_frame_prev_register): Use the value
8380 type's size, not the register's.
8381 (sentinel_frame_unwind): Install default_frame_unwind_stop_reason.
8382
8383 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind): Install
8384 default_frame_unwind_stop_reason.
8385 * alpha-tdep.c (alpha_sigtramp_frame_unwind)
8386 (alpha_heuristic_frame_unwind): Ditto.
8387 * amd64obsd-tdep.c (amd64obsd_trapframe_unwind): Ditto.
8388 * arm-tdep.c (arm_prologue_unwind, arm_stub_unwind): Ditto.
8389 * avr-tdep.c (avr_frame_unwind): Ditto.
8390 * cris-tdep.c (cris_sigtramp_frame_unwind, cris_frame_unwind):
8391 Ditto.
8392 * frv-linux-tdep.c (frv_linux_sigtramp_frame_unwind): Ditto.
8393 * frv-tdep.c (frv_frame_unwind): Ditto.
8394 * h8300-tdep.c (h8300_frame_unwind): Ditto.
8395 * hppa-hpux-tdep.c (hppa_hpux_sigtramp_frame_unwind): Ditto.
8396 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind): Ditto.
8397 * hppa-tdep.c (hppa_frame_unwind, hppa_fallback_frame_unwind)
8398 (hppa_stub_frame_unwind): Ditto.
8399 * i386obsd-tdep.c (i386obsd_trapframe_unwind): Ditto.
8400 * ia64-tdep.c (ia64_frame_unwind, ia64_sigtramp_frame_unwind)
8401 (ia64_libunwind_frame_unwind)
8402 (ia64_libunwind_sigtramp_frame_unwind): Ditto.
8403 * iq2000-tdep.c (iq2000_frame_unwind): Ditto.
8404 * lm32-tdep.c (lm32_frame_unwind): Ditto.
8405 * m32c-tdep.c (m32c_unwind): Ditto.
8406 * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_unwind): Ditto.
8407 * m32r-tdep.c (m32r_frame_unwind): Ditto.
8408 * m68hc11-tdep.c (m68hc11_frame_unwind): Ditto.
8409 * m68k-tdep.c (m68k_frame_unwind): Ditto.
8410 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_unwind): Ditto.
8411 * m88k-tdep.c (m88k_frame_unwind): Ditto.
8412 * mep-tdep.c (mep_frame_unwind): Ditto.
8413 * microblaze-tdep.c (microblaze_frame_unwind): Ditto.
8414 * mips-tdep.c (mips_insn16_frame_unwind, mips_insn32_frame_unwind)
8415 (mips_stub_frame_unwind): Ditto.
8416 * mn10300-tdep.c (mn10300_frame_unwind): Ditto.
8417 * moxie-tdep.c (moxie_frame_unwind): Ditto.
8418 * mt-tdep.c (mt_frame_unwind): Ditto.
8419 * ppc-linux-tdep.c (ppu2spu_unwind): Ditto.
8420 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_unwind): Ditto.
8421 * rs6000-tdep.c (rs6000_frame_unwind): Ditto.
8422 * s390-tdep.c (s390_frame_unwind, s390_stub_frame_unwind)
8423 (s390_sigtramp_frame_unwind): Ditto.
8424 * score-tdep.c (score_prologue_unwind): Ditto.
8425 * sh-tdep.c (sh_frame_unwind): Ditto.
8426 * sh64-tdep.c (sh64_frame_unwind): Ditto.
8427 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_unwind): Ditto.
8428 * sparc-tdep.c (sparc32_frame_unwind): Ditto.
8429 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_unwind): Ditto.
8430 * sparc64-tdep.c (sparc64_frame_unwind): Ditto.
8431 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_unwind): Ditto.
8432 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_unwind): Ditto.
8433 * sparc64obsd-tdep.c (sparc64obsd_frame_unwind)
8434 (sparc64obsd_trapframe_unwind): Ditto.
8435 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_unwind): Ditto.
8436 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_unwind): Ditto.
8437 * spu-tdep.c (spu_frame_unwind, spu2ppu_unwind): Ditto.
8438 * v850-tdep.c (v850_frame_unwind): Ditto.
8439 * vax-tdep.c (vax_frame_unwind): Ditto.
8440 * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_unwind): Ditto.
8441 * xstormy16-tdep.c (frame_unwind xstormy16_frame_unwind): Ditto.
8442 * xtensa-tdep.c (xtensa_unwind): Ditto.
8443
f23d1b92
PA
84442011-03-18 Pedro Alves <pedro@codesourcery.com>
8445
8446 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Assume
8447 there's always a frame. Use get_frame_pc_if_available instead of
8448 get_frame_pc, and if there's no PC available, don't look up a
8449 symtab.
8450
1d4f5741
PA
84512011-03-18 Pedro Alves <pedro@codesourcery.com>
8452
8453 * stack.c (print_frame_local_vars, print_frame_arg_vars): Handle
8454 unavailable PC.
8455
dba09041
PA
84562011-03-18 Pedro Alves <pedro@codesourcery.com>
8457
8458 * tracepoint.c (set_traceframe_context): Handle unavailable PC
8459 gracefully.
8460
9a26e44c
PA
84612011-03-18 Pedro Alves <pedro@codesourcery.com>
8462
8463 * frame.h (frame_unwind_caller_pc_if_available): Declare.
8464 * frame.c (frame_unwind_caller_pc_if_available): New.
8465 * stack.c (frame_info): Handle unavailable PC.
8466
84672011-03-18 Pedro Alves <pedro@codesourcery.com>
8468
8469 * frame.c (frame_unwind_pc): Rename to ...
8470 (frame_unwind_pc_if_available): ... this. New `pc' output
8471 parameter. Change return type to int. Gracefully handle
8472 gdbarch_unwind_pc throwing NOT_AVAILABLE_ERROR. Return 0 if that
8473 happened, or 1 otherwise.
8474 (frame_unwind_pc): Reimplement on top of
8475 frame_unwind_pc_if_available.
8476 (get_frame_func): Rename to ...
8477 (get_frame_func_if_available): New `pc' output parameter. Change
8478 return type to int. Gracefully handle the PC not being available.
8479 (get_frame_func): Reimplement on top of
8480 get_frame_func_if_available.
8481 (select_frame): Handle the PC being unavailable.
8482 (get_prev_frame): Handle the PC being unavailable.
8483 (get_frame_pc_if_available): New.
8484 (get_frame_address_in_block_if_available): New.
8485 (find_frame_sal): Handle the frame PC not being available.
8486 * frame.h (get_frame_pc_if_available): Declare.
8487 (get_frame_address_in_block_if_available): Declare.
8488 (get_frame_func_if_available): Declare.
8489 * stack.c (print_frame_info): Handle the PC being unavailable.
8490 (find_frame_funname): Ditto.
8491 (print_frame): Handle the PC being unavailable.
8492 (get_frame_language): Ditto.
8493 * blockframe.c (get_frame_block): Ditto.
8494 * macroscope.c (default_macro_scope): Ditto.
8495 * tui/tui-stack.c (tui_show_frame_info): Ditto.
8496
84972011-03-18 Pedro Alves <pedro@codesourcery.com>
8498
8499 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Catch
8500 NOT_AVAILABLE_ERROR when evaluating the location expression.
8501
85022011-03-18 Pedro Alves <pedro@codesourcery.com>
8503
8504 * dwarf2loc.c (read_pieced_value): Handle get_frame_register_bytes
8505 returning that the register piece is unavailable/optimized out.
8506 (write_pieced_value): Handle get_frame_register_bytes returning
8507 that the register piece is unavailable/optimized out when doing a
8508 read-modify write of a bitfield.
8509 * findvar.c (value_from_register): Handle get_frame_register_bytes
8510 returning that the register piece is unavailable/optimized out.
8511 * frame.c (get_frame_register_bytes): New parameters `optimizedp'
8512 and `unavailablep'. Throw error on bad debug info. Use
8513 frame_register instead of frame_register_read, to fill in the new
8514 arguments.
8515 * frame.h (get_frame_register_bytes): New parameters `optimizedp'
8516 and `unavailablep'.
8517 * valops.c: (value_assign): Adjust, and handle
8518 get_frame_register_bytes failing.
8519 * spu-tdep.c: Include exceptions.h.
8520 (spu_software_single_step): Adjust, and handle
8521 get_frame_register_bytes failing.
8522 (spu_get_longjmp_target): Ditto.
8523 * gdbarch.sh (register_to_value): Change to return int. New
8524 parameters `optimizedp' and `unavailablep'.
8525 * gdbarch.h, gdbarch.c: Regenerate.
8526 * i386-tdep.c (i386_register_to_value): Adjust to new
8527 gdbarch_register_to_value interface.
8528 * i387-tdep.c (i387_register_to_value): Ditto.
8529 * i387-tdep.h (i387_register_to_value): Ditto.
8530 * alpha-tdep.c (alpha_register_to_value): Ditto.
8531 * ia64-tdep.c (ia64_register_to_value): Ditto.
8532 * m68k-tdep.c (m68k_register_to_value): Ditto.
8533 * mips-tdep.c (mips_register_to_value): Ditto.
8534 * rs6000-tdep.c (rs6000_register_to_value): Ditto.
8535
0fdb4f18
PA
85362011-03-18 Pedro Alves <pedro@codesourcery.com>
8537
8538 * findvar.c (value_of_register): Mark the value as unavailable, if
8539 the register is unavailable.
8540 * frame.h (frame_register_unwind): New `unavailablep' parameter.
8541 (frame_register): New `unavailablep' parameter.
8542 (frame_register_read): Update comment.
8543 * frame.c (frame_register_unwind): New `unavailablep' parameter.
8544 Set it if the register is unavailable. If the register is
8545 unavailable, clear the output buffer.
8546 (frame_register): New `unavailablep' parameter. Pass it down.
8547 (frame_unwind_register): Adjust.
8548 (put_frame_register): Adjust.
8549 (frame_register_read): Adjust. Also return false if the register
8550 is not available.
8551 (frame_register_unwind_location): Adjust.
8552 * sentinel-frame.c (sentinel_frame_prev_register): If the register
8553 is unavailable, mark the value accordingly.
8554 * stack.c (frame_info): Handle unavailable registers.
8555
e69aa73e
PA
85562011-03-18 Pedro Alves <pedro@codesourcery.com>
8557
8558 * mi/mi-main.c (register_changed_p): Handle REG_UNAVAILABLE, and
8559 simplify, using regcache_cooked_read.
8560
05d1431c
PA
85612011-03-18 Pedro Alves <pedro@codesourcery.com>
8562
8563 * regcache.h (regcache_raw_read, regcache_raw_read_signed)
8564 (regcache_raw_read_unsigned, regcache_raw_read_signed)
8565 (regcache_raw_read_unsigned, regcache_raw_read_part)
8566 (regcache_cooked_read, regcache_cooked_read_signed)
8567 (regcache_cooked_read_unsigned, regcache_cooked_read_part)
8568 (regcache_cooked_read_ftype): Change return to enum
8569 register_status.
8570 * regcache.c: Include exceptions.h
8571 (regcache_save): Adjust to handle REG_UNAVAILABLE registers.
8572 (do_cooked_read): Change return to enum register_status. Always
8573 forward to regcache_cooked_read.
8574 (regcache_raw_read): Change return to enum register_status. If
8575 the register is not REG_VALID, memset the buffer. Return the
8576 register's status.
8577 (regcache_raw_read_signed): Handle non-REG_VALID registers and
8578 return the register's status.
8579 (regcache_raw_read_unsigned): Ditto.
8580 (regcache_cooked_read): Change return to enum register_status.
8581 Assert that with read-only regcaches, the register's status must
8582 be known. If the regcache is read-only, and the register is not
8583 REG_VALID, memset the buffer. Return the register's status.
8584 (regcache_cooked_read_signed): Change return to enum
8585 register_status. Handle non-REG_VALID registers and return the
8586 register's status.
8587 (regcache_cooked_read_unsigned): Change return to enum
8588 register_status. Handle non-REG_VALID registers and return the
8589 register's status.
8590 (regcache_xfer_part, regcache_raw_read_part)
8591 (regcache_cooked_read_part): Change return to enum
8592 register_status. Return the register's status.
8593 (regcache_read_pc): Throw NOT_AVAILABLE_ERROR if the register is
8594 unavailable.
8595 (regcache_dump): Handle unavailable cooked registers.
8596 * frame.c (do_frame_register_read): Adjust interface to match
8597 regcache_cooked_read_ftype.
8598 * gdbarch.sh (pseudo_register_read): Change return to enum
8599 register_status.
8600 * gdbarch.h, gdbarch.c: Regenerate.
8601
8602 * i386-tdep.h (i386_pseudo_register_read): Change return to enum
8603 register_status.
8604 * i386-tdep.c (i386_pseudo_register_read): Change return to enum
8605 register_status. If reading a raw register indicates the raw
8606 register is not valid, return the raw register's status,
8607 otherwise, return REG_VALID.
8608 * amd64-tdep.c (amd64_pseudo_register_read): Change return to enum
8609 register_status. Handle non-REG_VALID raw registers and return
8610 the register's status.
8611 * arm-tdep.c (arm_neon_quad_read)
8612 (arm_pseudo_read): Change return to enum register_status. Handle
8613 non-REG_VALID raw registers and return the register's status.
8614 * avr-tdep.c (avr_pseudo_register_read): Ditto.
8615 * frv-tdep.c (frv_pseudo_register_read): Ditto.
8616 * h8300-tdep.c (h8300_pseudo_register_read): Ditto.
8617 * hppa-tdep.c (hppa_pseudo_register_read): Ditto.
8618 * m32c-tdep.c (m32c_move_reg_t): Change return to enum
8619 register_status.
8620 (m32c_raw_read, m32c_raw_write, m32c_banked_read)
8621 (m32c_banked_write, m32c_sb_read, m32c_sb_write, m32c_part_read)
8622 (m32c_part_write, m32c_cat_read, m32c_cat_write)
8623 (m32c_r3r2r1r0_read, m32c_r3r2r1r0_write)
8624 (m32c_pseudo_register_read): Change return to enum
8625 register_status. Adjust.
8626 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Change return to
8627 enum register_status. Return the register's status.
8628 * mep-tdep.c (mep_pseudo_cr32_read): Change return to enum
8629 register_status. Return the register's status.
8630 (mep_pseudo_cr64_read, mep_pseudo_register_read): Ditto.
8631 * mips-tdep.c (mips_pseudo_register_read): Ditto.
8632 * mt-tdep.c (mt_pseudo_register_read): Ditto.
8633 * rs6000-tdep.c (move_ev_register_func): New typedef.
8634 (e500_move_ev_register): Use it. Change return to enum
8635 register_status. Return the register's status.
8636 (do_regcache_raw_read): New function.
8637 (do_regcache_raw_write): New function.
8638 (e500_pseudo_register_read): Change return to enum
8639 register_status. Return the register's status. Use
8640 do_regcache_raw_read.
8641 (e500_pseudo_register_write): Adjust. Use do_regcache_raw_write.
8642 (dfp_pseudo_register_read): Change return to enum register_status.
8643 Return the register's status.
8644 (vsx_pseudo_register_read): Ditto.
8645 (efpr_pseudo_register_read): Ditto.
8646 (rs6000_pseudo_register_read): Ditto.
8647 * s390-tdep.c (s390_pseudo_register_read): Change return to enum
8648 register_status. Return the register's status.
8649 * sh64-tdep.c (pseudo_register_read_portions): New function.
8650 (sh64_pseudo_register_read): Change return to enum
8651 register_status. Use pseudo_register_read_portions. Return the
8652 register's status.
8653 * ia64-tdep.c (ia64_pseudo_register_read): Change return to enum
8654 register_status. Return the register's status.
8655 * sh-tdep.c (pseudo_register_read_portions): New function.
8656 (sh_pseudo_register_read): Change return to enum register_status.
8657 Use pseudo_register_read_portions. Return the register's status.
8658 * sparc-tdep.c (sparc32_pseudo_register_read): Change return to
8659 enum register_status. Return the register's status.
8660 * sparc64-tdep.c (sparc64_pseudo_register_read): Ditto.
8661 * spu-tdep.c (spu_pseudo_register_read_spu)
8662 (spu_pseudo_register_read): Ditto.
8663 * xtensa-tdep.c (xtensa_register_read_masked)
8664 (xtensa_pseudo_register_read): Ditto.
8665 * bfin-tdep.c (bfin_pseudo_register_read): Ditto.
8666
e10abd8f
PM
86672011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
8668
8669 * python/py-value.c (valpy_getitem): Fix formatting of error function
8670 call.
8671
7ea6d463
PM
86722011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
8673
8674 ARI fixes: Add missing internationalization markups throughout
8675 C source files.
8676 * darwin-nat-info.c: Ditto.
8677 * record.c: Ditto.
8678 * remote.c: Ditto.
8679 * mi/mi-main.c: Ditto.
8680
001083c6
PM
86812011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
8682
8683 ARI fixes: Add missing internationalization markups throughout
8684 yacc files.
8685 * c-exp.y: Ditto.
8686 * cp-name-parser.y: Ditto.
8687 * f-exp.y: Ditto.
8688 * m2-exp.y: Ditto.
8689 * objc-exp.y: Ditto.
8690 * p-exp.y: Ditto.
8691
4f1cdeec
PM
86922011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
8693
8694 ARI fixes: Messages should have no trailing new lines.
8695 * darwin-nat.c (mach_check_error): Remove trailing new line from
8696 warning function call message.
8697 * record.c (bfdcore_read): Idem for error call.
8698
28e698f1
PM
86992011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
8700
8701 * common/signals.c (target_signal_from_host): Add _ markup to error
8702 function call message.
8703 (target_signal_to_host): Add _ markup and remove trailing new line
8704 from warning call message.
8705 (target_signal_from_command): Add _ markup to error function call
8706 message.
8707
99c3dc11
PM
87082011-03-18 Phil Muldoon <pmuldoon@redhat.com>
8709
f33edef8 8710 PR python/12149
99c3dc11
PM
8711
8712 * python/python.c (gdbpy_write): Accept a stream argument and
8713 operate to the appropriate stream.
8714 (gdbpy_flush): Likewise.
8715 (_initialize_python): Add stream constants.
8716 (finish_python_initialization): Add GdbOutputErrorFile class.
8717
c20800be
KY
87182011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
8719
8720 * MAINTAINERS: Add myself as a write-after-approval maintainer.
8721
f4a1794a
KY
87222011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
8723
8724 * amd64-tdep.c (amd64_relocate_instruction): Fix ordering of arguments
f33edef8
PP
8725 to store_signed_integer. Add debug message when relocating CALL
8726 instructions. Fix formatting of debug message.
8727 * i386-tdep.c (i386_relocate_instruction): Ditto.
f4a1794a 8728
d4862372
JB
87292011-03-17 Joel Brobecker <brobecker@gnat.com>
8730
8731 * target.h (struct target_ops): Remove to_lookup_symbol field.
8732 (target_lookup_symbol): Delete macro.
8733 * target.c (nosymbol, debug_to_lookup_symbol): Delete.
8734 (update_current_target, setup_target_debug): Remove handling
8735 of to_lookup_symbol target_ops field.
8736 * ada-tasks.c (get_known_tasks_addr): Remove use of
8737 target_lookup_symbol.
8738 * coffread.c (coff_symtab_read): Likewise.
8739 * dbxread.c (read_dbx_symtab): Ditto.
8740
d645e32e
JB
87412011-03-17 Joel Brobecker <brobecker@gnat.com>
8742
8743 PR gdb/12116:
8744 * configure.ac: Add getthrds declaration check.
8745 * configure, config.in: Regenerate.
8746 * aix-thread.c (getthrds): Declare only if not already declared
8747 in procinfo.h. More declaration out of get_signaled_thread to
8748 global scope.
8749
29703da4
PM
87502011-03-17 Phil Muldoon <pmuldoon@redhat.com>
8751
8752 * python/py-symtab.c: Populate symtab_object_methods,
8753 sal_object_methods.
8754 (stpy_is_valid): New function.
8755 (salpy_is_valid): Ditto.
8756 * python/py-symbol.c: Declare symbol_object_methods. Populate.
8757 (sympy_is_valid): New function.
8758 * python/py-objfile.c: Declare objfile_object_methods. Populate.
8759 (objfpy_is_valid): New function.
8760 * python/py-inferior.c: Populate inferior_object_methods.
8761 (infpy_is_valid): New function.
8762 * python/py-infthread.c: Populate thread_object_methods.
8763 (thpy_is_valid): New function.
8764 * python/py-block.c: Declare block_object_methods. Populate. Declare
8765 block_iterator_object_methods. Populate.
8766 (blpy_is_valid): New function.
8767 (blpy_iter_is_valid): Ditto.
8768
c00f8484
KS
87692011-03-16 Keith Seitz <keiths@redhat.com>
8770
8771 * linespec.c (find_methods): Canonicalize NAME before looking
8772 up the symbol.
8773 (name_end): New function.
8774 (keep_name_info): New function.
8775 (decode_line_1): Use keep_name_info.
8776 (decode_compound): Likewise.
8777 * cli/cli-utils.h (remove_trailing_whitespace): New function.
8778 * cli/cli-utils.c (remove_trailing_whitespace): Likewise.
8779
8780 PR c++/12273
8781 * linespec.c (locate_first_half): Keep overload information, too.
8782 (decode_compound): Use a string to represent break characters
8783 to escape the loop.
8784 If P points to a break character, do not increment it.
8785 For C++ and Java, keep overload information and relevant keywords.
8786 If we cannot find a symbol, search the minimal symbols.
8787
8788 PR c++/11734
8789 * linespec.c (decode_compound): Rename SAVED_ARG to
8790 THE_REAL_SAVED_ARG.
8791 Make a copy of THE_REAL_SAVED_ARG in SAVED_ARG and strip
8792 single-quotes.
8793 Pass a valid block to lookup_symbol.
8794 (lookup_prefix_sym): Likewise.
8795 (find_method): Construct search name based on SYM_CLASS instead
8796 of SAVED_ARG.
8797 * psymtab.c (lookup_partial_symbol): Add language parameter.
8798 (lookup_symbol_aux_psymtabs): Likewise.
8799 Don't assume that the psymtab we found was the right one. Search
8800 for the desired symbol in the symtab to be certain.
8801 (psymtab_search_name): New function.
8802 (lookup_partial_symbol): Use psymtab_search_name.
8803 Add language parameter.
8804 (read_symtabs_for_function): Add language parameter and pass to
8805 lookup_partial_symbol.
8806 (find_symbol_file_from_partial): Likewise.
8807
c91513d8
PP
88082011-03-16 Paul Pluzhnikov <ppluzhnikov@google.com>
8809
8810 PR gdb/12528
8811 * dwarf2read.c (noop_record_line): New function.
8812 (dwarf_decode_lines): Ignore line tables for GCd functions.
8813
b37520b6
PM
88142011-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
8815
8816 Fix ARI warnings about new lines at the end of messages, which
8817 are unneeded as there is a new line added at the end of the message
8818 automatically.
8819 * darwin-nat.c (darwin_stop_inferior): Ditto.
8820 * dec-thread.c (dec_thread_get_ada_task_ptid): Ditto.
8821 * dfp.c (decimal_to_number): Ditto.
8822 * exec.c (print_section_info): Ditto.
8823 * i386-darwin-nat.c (darwin_set_sstep): Ditto.
8824 * osdata.c (get_osdata): Ditto.
8825 * record.c (bfdcore_write): Ditto.
8826 * remote-mips.c (mips_readchar): Ditto.
8827 * remote.c (read_ptid): Ditto.
8828 * ser-mingw.c (ser_windows_raw): Ditto.
8829 * tracepoint.c (add_local_symbols): Ditto.
8830 * windows-nat.c (fake_create_process): Ditto.
8831
b08ee6a2
TT
88322011-03-16 Tom Tromey <tromey@redhat.com>
8833
8834 * tracepoint.c (stop_tracing): Don't declare.
8835 * event-top.c (after_char_processing_hook): Add `(void)'.
8836
9a6f1302
PM
88372011-03-16 Phil Muldoon <pmuldoon@redhat.com>
8838
8839 * NEWS: Add Parameter sub-classing description.
8840
7ceb86b1
KT
88412011-03-16 Kai Tietz <ktietz@redhat.com>
8842
8843 * MAINTAINERS: Update my e-mail address.
8844
efeff6cf
AT
88452011-03-15 Andreas Tobler <andreast@fgznet.ch>
8846
8847 * MAINTAINERS: Add myself for write after approval privileges.
8848
681c238c
MS
88492011-03-15 Michael Snyder <msnyder@vmware.com>
8850
f3df5b08
MS
8851 * frame.c (find_frame_sal): Assert sym is not null.
8852
13f6513c
MS
8853 * dbxread.c (process_one_symbol): Assert 'name' is not null.
8854
50412521
MS
8855 * objc-lang.c (selectors_info): Check strchr for null result.
8856
681c238c
MS
8857 * stabsread.c (define_symbol): Guard against bad stabstring input.
8858
6ced1581
PM
88592011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
8860
8861 Remove trailing spaces and tabulations from pascal language
8862 support sources.
8863 p-exp.y: Ditto.
8864 p-lang.c: Ditto.
8865 p-lang.h: Ditto.
8866 p-valprint.c: Ditto.
8867
9373cf26
JK
88682011-03-15 Jan Kratochvil <jan.kratochvil@redhat.com>
8869
8870 * dwarf2read.c (dwarf2_get_pc_bounds): Require HIGH strictly higher
8871 than LOW. Comment it.
8872 (read_partial_die): Call complaint for inappropriate zero LOWPC or
8873 HIGHPC not strictly higher than LOWPC.
8874
9a1edae6
PM
88752011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
8876
8877 Fix formatting of function declarations returning a pointer in
8878 previous commit.
8879 * varobj.c (varobj_add_child): Ditto.
8880 * hppa-tdep.h (hppa_init_objfile_priv_data): Ditto.
8881 * inferior.h (get_displaced_step_closure_by_addr): Ditto.
8882
24e9cda0
UW
88832011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
8884
8885 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Add support
8886 for the "generic" vector ABI used with GCC 4.3 and later.
8887 (ppc64_sysv_abi_return_value): Likewise.
8888
88892011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
81b4675a
UW
8890
8891 * infcall.c (call_function_by_hand): Function return value is
8892 always a non_lval, even when using struct_return.
8893
c9174737
PA
88942011-03-15 Pedro Alves <pedro@codesourcery.com>
8895
8896 * printcmd.c (ALL_DISPLAYS_SAFE): New.
8897 (map_display_numbers): New.
8898 (do_delete_display): New.
8899 (undisplay_command): Use map_display_numbers.
8900 (do_enable_disable_display): New.
8901 (enable_disable_display_command): New function.
8902 (enable_display): Delete.
8903 (enable_display_command): New.
8904 (disable_display_command): Reimplement.
8905 (_initialize_printcmd): Adjust "enable display" command to use
8906 `enable_display_command' as callback.
8907
350c6c65
PM
89082011-03-14 Phil Muldoon <pmuldoon@redhat.com>
8909
8910 * NEWS: Add Python breakpoint 'stop' operation.
8911
824446ad
PM
89122011-03-14 Phil Muldoon <pmuldoon@redhat.com>
8913
8914 * NEWS: Delete duplicate entry. Fix typo.
8915
2021ad3a
PM
89162011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
8917
8918 Fix ARI warning about function names in first column.
8919 Put prototype declaration on same line as return type.
8920 * objc-exp.y: Ditto.
8921 * p-exp.y: Ditto.
8922 * python/py-stopevent.h: Ditto.
8923 For long function names, split parameters to
8924 allow function name on same line as return type.
8925 * solib-pa64.c: Ditto.
8926 * varobj.c: Ditto.
8927 * varobj.h: Ditto.
8928 For long function declaration, use single line.
8929 * hppa-tdep.h: Ditto.
8930 * inferior.h: Ditto.
8931
7371cf6d
PM
89322011-03-14 Phil Muldoon <pmuldoon@redhat.com>
8933
8934 * python/python.h: Declare gdbpy_should_stop and
8935 gdbpy_breakpoint_has_py_cond.
8936 * python/python.c: Add python.h to includes. Remove python.h from
8937 HAVE_PYTHON definition
8938 (gdbpy_should_stop): New dummy function.
8939 (gdbpy_breakpoint_has_py_cond): New dummy function.
8940 * python/py-breakpoint.c (bppy_init): Rewrite to allow
8941 sub-classing capabilities.
8942 (gdbpy_should_stop): New function.
8943 (gdbpy_breakpoint_has_py_cond): New function.
8944 (local_setattro): New function.
8945 * breakpoint.c (condition_command): Add check for Python 'stop'
8946 operation.
8947 (bpstat_check_breakpoint_conditions): Execute Python 'stop'
8948 operation function as part of stop/continue tests.
8949
37b50a69
TT
89502011-03-14 Tom Tromey <tromey@redhat.com>
8951
8952 PR gdb/12576:
8953 * dwarf2loc.c (dwarf_expr_dwarf_call): Remove 'return'.
8954 (needs_frame_dwarf_call): Likewise.
8955
eeae04df
PM
89562011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
8957
8958 Fix ARI warning about functions without parameters that do not
8959 use (void).
8960 * breakpoint.c (all_tracepoints): Replace () by (void).
8961 * f-exp.y (match_string_literal): Ditto.
8962 (yylex): Ditto.
8963 * m2-exp.y (yylex): Ditto.
8964 * mep-tdep.c (current_me_module): Ditto.
8965 (current_options): Ditto.
8966 (current_cop_data_bus_width): Ditto.
8967 (current_cr_names): Ditto.
8968 (current_cr_is_float): Ditto.
8969 (current_ccr_names): Ditto.
8970 * objc-exp.y (yylex): Ditto.
8971 * p-exp.y (yylex): Ditto.
8972 * remote.c (send_interrupt_sequence): Ditto.
8973 * tracepoint.c (current_trace_status): Ditto.
8974 * python/py-evts.c (gdbpy_initialize_py_events): Ditto.
8975 * python/py-prettyprint.c (push_dummy_python_frame): Ditto.
8976
6dc3565d
MS
89772011-03-11 Michael Snyder <msnyder@vmware.com>
8978
1427fe5e
MS
8979 * cli/cli-decode.h (CMD_LIST_AMBIGUOUS): Define.
8980 * cli/cli-decode.c (lookup_cmd_1): Use CMD_LIST_AMBIGUOUS.
8981 (lookup_cmd): Test for CMD_LIST_AMBIGUOUS.
8982 * completer.c (complete_line_internal): Use CMD_LIST_AMBIGUOUS.
8983 * top.c (set_verbose): Use CMD_LIST_AMBIGUOUS.
8984
60bc018f
MS
8985 * event-loop-c (delete_async_signal_handler): Assert prev_ptr.
8986 (delete_async_event_handler): Ditto.
8987
f3be5b64
MS
8988 * python/py-breakpoint.c (bppy_set_condition): Stop memory leak.
8989
4c2d5724
MS
8990 * python/py-breakpoint.c (bppy_get_commands): Fix memory leak.
8991
6dc3565d
MS
8992 * top.c (set_verbose): Assert showcmd was found.
8993
4e6ca6d5
MG
89942011-03-11 Maxim Grigoriev <maxim2405@gmail.com>
8995
8996 * xtensa-tdep.c (warning_once): Correct style issues.
8997
815a83e4
YQ
89982011-03-11 Yao Qi <yao@codesourcery.com>
8999
9000 * arm-tdep.c (copy_ldr_str_ldrb_strb): Remove redundant statements.
9001
f2eb0bc8
AS
90022011-03-11 Andreas Schwab <schwab@redhat.com>
9003
9004 * common/aclocal.m4: Remove.
9005
b801de47
MG
90062011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
9007
9008 * xtensa-tdep.c (windowing_enabled): Remove inline attribute.
9009 (xtensa_write_register, xtensa_read_register): Likewise.
9010 (xtensa_hextochar): Removed.
9011 (xtensa_init_reggroups): Replace xtensa_hextochar () by explicit code.
9012
dbab50de
MG
90132011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
9014
9015 * xtensa-tdep.c (xtensa_c0reg_t): Update comments.
c2a6b390 9016 (xtensa_call0_frame_cache_t): Update comments. New fields added.
dbab50de
MG
9017 (xtensa_alloc_frame_cache): Add initialization for new fields.
9018 (xtensa_frame_cache): Change the way how call0_frame_cache () is called.
9019 (warning_once): New function.
9020 (xtensa_insn_kind): New item c0opc_and.
9021 (call0_classify_opcode): Add the case for AND instruction.
c2a6b390
MG
9022 (call0_track_op): Change arguments. New local variable litbase.
9023 Add the case to handle c0opc_and. Update algorithms for c0opc_mov,
9024 c0opc_l32r, c0opc_s32i to take into account dynamic stack adjustments
9025 in the prologue.
dbab50de 9026 Add cases for c0opc_l32e, c0opc_s32e, c0opc_rfwo, c0opc_rfwu.
c2a6b390 9027 (call0_analyze_prologue): Update the comments. Change arguments.
dbab50de
MG
9028 Add the variety of updates to handle extended prologues, which now can
9029 conduct dynamic stack adjustments.
9030 (call0_frame_cache): Likewise.
9031 (xtensa_skip_prologue): Update call0_analyze_prologue () function call.
9032 (xtensa_gdbarch_init): Initialize xtensa_session_once_reported.
9033
b2c04452
MS
90342011-03-10 Michael Snyder <msnyder@vmware.com>
9035
f8f67713
MS
9036 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
9037 (cmd_qtframe): Ditto.
9038 (cmd_qtbuffer): Ditto.
9039 (cmd_bigqtbuffer): Ditto.
9040
197f0a60
TT
90412011-03-10 Tom Tromey <tromey@redhat.com>
9042
9043 * tracepoint.c (trace_actions_command): Update.
9044 * thread.c (thread_apply_command): Update.
9045 * reverse.c (delete_bookmark_command): Update.
9046 (bookmarks_info): Update.
9047 * printcmd.c (undisplay_command): Update.
9048 * memattr.c (mem_enable_command): Update.
9049 (mem_disable_command): Update.
9050 (mem_delete_command): Update.
9051 * inferior.c (detach_inferior_command): Update.
9052 (kill_inferior_command): Update.
9053 (remove_inferior_command): Update.
9054 * cli/cli-utils.h (struct get_number_or_range_state): New.
9055 (init_number_or_range): Declare.
9056 (get_number_or_range): Update.
9057 * cli/cli-utils.c (init_number_or_range): New function.
9058 (get_number_or_range): Change 'pp' parameter to 'state'. Remove
9059 static variables.
9060 (number_is_in_list): Update.
9061 * breakpoint.h (get_tracepoint_by_number): Update.
9062 * breakpoint.c (map_breakpoint_numbers): Update for change to
9063 get_number_or_range.
9064 (find_location_by_number): Use get_number, not
9065 get_number_or_range.
9066 (trace_pass_set_count): New function.
9067 (trace_pass_command): Update for change to get_number_or_range.
9068 Rework loop logic.
9069 (get_tracepoint_by_number): Remove 'multi_p' parameter; add
9070 'state' parameter.
9071
ecec24e6
PM
90722011-03-10 Phil Muldoon <pmuldoon@redhat.com>
9073
9074 * python/py-param.c (add_setshow_generic): Add set/show callback
9075 parameters. Register Python object context.
9076 (get_show_value): New function.
9077 (get_set_value): New function.
9078 (call_doc_function): New function.
9079 (get_doc_string): Move behind get_show_value/get_set_value.
9080
6d6c6b1f
JK
90812011-03-10 Andreas Tobler <andreast-list@fgznet.ch>
9082
9083 * fbsd-nat.c (fbsd_make_corefile_notes): Constify local `fname'.
9084
68d6df83
MG
90852011-03-09 Maxim Grigoriev <maxim2405@gmail.com>
9086
dbab50de 9087 * xtensa-tdep.c (xtensa_read_register): Add comment.
68d6df83
MG
9088 (xtensa_write_register): Likewise.
9089 (xtensa_hextochar): Add comment and update to match coding conventions.
9090 (xtensa_frame_cache, xtensa_return_value): Follow coding conventions.
9091 (execute_l32e, execute_s32e, execute_code): Update comments.
9092 (xtensa_exception_handler_t): Update to match coding conventions.
9093 (xtensa_insn_kind): Likewise.
9094
85c9d6a6
MS
90952011-03-09 Michael Snyder <msnyder@vmware.com>
9096
9097 * mi-cmd-disas.c (mi_cmd_disassemble): Fix memory leak.
9098
91495617
PA
90992011-03-09 Pedro Alves <pedro@codesourcery.com>
9100
9101 * nto-tdep.c (nto_find_and_open_solib): Constify local `base'.
9102
eb8c0621
TT
91032011-03-09 Tom Tromey <tromey@redhat.com>
9104
9105 * thread.c (restore_selected_frame): Handle frame_level == -1.
9106 (make_cleanup_restore_current_thread): Use
9107 get_selected_frame_if_set.
9108 * frame.h (get_selected_frame_if_set): Declare.
9109 * frame.c (get_selected_frame_if_set): New function.
9110
9f37bbcc
PA
91112011-03-09 Pedro Alves <pedro@codesourcery.com>
9112
9113 * cli/cli-cmds.c (shell_escape): Use lbasename.
9114 * coffread.c (coff_start_symtab): Constify parameter.
9115 (complete_symtab): Constify `name' parameter.
9116 (coff_symtab_read): Constify `filestring' local.
9117 (coff_getfilename): Constify return and `result' local.
9118 Use lbasename.
9119 * fbsd-nat.c (fbsd_make_corefile_notes): Use lbasename.
9120 * linux-fork.c (info_checkpoints_command): Use lbasename.
9121 * linux-nat.c (linux_nat_make_corefile_notes): Use lbasename.
9122 * minsyms.c (lookup_minimal_symbol): Use lbasename.
9123 * nto-tdep.c (nto_find_and_open_solib): Use lbasename.
9124 * procfs.c (procfs_make_note_section): Use lbasename.
9125 * tui/tui-io.c (printable_part): Constity return and parameter.
9126 Use lbasename.
9127 (print_filename): Constify parameters, and local `s'.
9128 (tui_rl_display_match_list): Constify local `temp'.
9129
f8de3c55
JK
91302011-03-09 Jan Kratochvil <jan.kratochvil@redhat.com>
9131
9132 Revert:
9133 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9134 Fix DWARF-3+ DW_AT_accessibility default assumption.
9135 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
9136 cu->header.version >= 3.
9137
d9837b00
YQ
91382011-03-09 Yao Qi <yao@codesourcery.com>
9139
9140 * common/Makefile.in: Remove.
9141 * common/configure: Remove.
9142 * common/configure.ac: Remove.
9143
e637a4f5
YQ
91442011-03-09 Yao Qi <yao@codesourcery.com>
9145
9146 Revert:
9147 2011-02-11 Yao Qi <yao@codesourcery.com>
9148
9149 * common/Makefile.in: Add copyright header.
9150
9151 2011-02-11 Yao Qi <yao@codesourcery.com>
9152
9153 * Makefile.in: Remove signals.o from COMMON_OBS. Link
9154 libcommon.a.
9155 * configure.ac: Add common to sub dir.
9156 * configure: Regenerate.
9157
f976a05d
MG
91582011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
9159
9160 * xtensa-tdep.c (call0_ret): New function.
9161 (xtensa_skip_prologue): Speed up analysis.
9162
57041825
MG
91632011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
9164
9165 * xtensa-tdep.c (xtensa_register_reggroup_p): Count in all registers
9166 while executing MI command -data-list-changed-registers.
9167
08b9c608
MG
91682011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
9169
9170 * xtensa-tdep.c (xtensa_read_register): New function.
9171 (xtensa_write_register): New function.
9172 (xtensa_find_register_by_name): New function.
9173 (xtensa_windowed_frame_cache): Update comments in type description.
9174 (xtensa_frame_cache): Likewise.
9175 (xtensa_window_interrupt_insn): New function.
9176 (xtensa_frame_cache): Add analysis for Xtensa Window Exception frames.
9177 (xtensa_insn_kind): Add new instructions.
9178 (rwx_special_register): New function.
9179 (call0_classify_opcode): Add new instructions to the analysis.
9180 (a0_saved, a7_saved, a11_saved): New variables.
9181 (a0_was_saved, a7_was_saved, a11_was_saved): New variables.
9182 (execute_l32e): New function.
9183 (execute_s32e): New function.
9184 (xtensa_exception_handler_t): New type.
9185 (execute_code): New function.
9186 (xtensa_window_interrupt_frame_cache): New function to conduct frame
9187 analysis for Xtensa Window Exception handlers.
9188
4d1acb11
MG
91892011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
9190
98689b25
MG
9191 * xtensa-tdep.c (TX_PS): New.
9192 (windowing_enabled): Update to count for Call0 ABI.
9193 (xtensa_hextochar): New.
9194 (xtensa_init_reggroups): Make algorithm generic.
9195 (xtensa_frame_cache): Use TX_PS on Tiny Xtensa.
9196
91972011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
9198
9199 * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): Update.
4d1acb11 9200
d3f323f3
MS
92012011-03-08 Michael Snyder <msnyder@vmware.com>
9202
3dcabaa8
MS
9203 * i386-tdep.c (i386_follow_jump): Check return value of
9204 target_read_memory.
9205 (i386_analyze_struct_return): Ditto.
9206 (i386_skip_probe): Ditto.
9207 (i386_match_insn): Ditto.
9208 (i386_skip_noop): Ditto.
9209 (i386_analyze_frame_setup): Ditto.
9210 (i386_analyze_register_saves): Ditto.
9211 (i386_skip_prologue): Ditto.
9212 (i386_skip_main_prologue): Ditto.
9213
13b3fd9b
MS
9214 * target.c (read_whatever_is_readable): Fix memory leak.
9215
d3f323f3
MS
9216 * i386-tdep.c (i386_process_record): Document fall through.
9217
421d5c74
JK
92182011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9219
9220 Fix DWARF-3+ DW_AT_accessibility default assumption.
9221 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
9222 cu->header.version >= 3.
9223
63154eca
PA
92242011-03-08 Pedro Alves <pedro@codesourcery.com>
9225
9226 * remote.c (remote_check_symbols): Skip if the target has no
9227 execution.
9228
f1a507a1
JB
92292011-03-08 Joel Brobecker <brobecker@adacore.com>
9230
9231 * target.c (read_whatever_is_readable): Reformat comment,
9232 with a minor typo fix. Minor reformatting of the code.
9233
36073a92
YQ
92342011-03-08 Yao Qi <yao@codesourcery.com>
9235
9236 * arm-tdep.c: Remove prototype declaration displaced_in_arm_mode.
9237 (displaced_read_reg): Add `dsc' parameter, remove `from' parameter.
9238 Use cached result instead of calling displaced_in_arm_mode again.
9239 (branch_write_pc, alu_write_pc, load_write_pc): Add `dsc' parameter.
9240 (displaced_write_reg, copy_preload, copy_preload_reg): Callers update.
9241 (cleanup_copro_load_store, copy_copro_load_store): Likewise.
9242 (cleanup_branch, copy_bx_blx_reg, copy_alu_imm): Likewise.
9243 (cleanup_alu_reg, copy_alu_reg, cleanup_alu_shifted_reg): Likewise.
9244 (copy_alu_shifted_reg, cleanup_load, cleanup_store): Likewise.
9245 (copy_extra_ld_st, copy_ldr_str_ldrb_strb): Likewise.
9246 (cleanup_block_load_all, cleanup_block_store_pc): Likewise.
9247 (cleanup_block_load_pc, copy_block_xfer): Likewise.
9248 * arm-linux-tdep.c (arm_linux_copy_svc): Callers update.
9249 (arm_catch_kernel_helper_return): Likewise.
9250 * gdb/arm-tdep.h : Update function declarations.
9251
d3f323f3 92522011-03-07 Michael Snyder <msnyder@vmware.com>
e6040cbd 9253
e0e40094
MS
9254 * dwarf2loc.c (indirect_pieced_value): Assert 'piece' not null.
9255
0b2381f5
MS
9256 * ser-unix.c (hardwire_get_tty_state): Stop memory leak.
9257
0350914a
MS
9258 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Free environment.
9259
69feea6f
MS
9260 * elfread.c (elf_symtab_read): Stop memory leak.
9261
e6040cbd
MS
9262 * main.c (captured_main): Fix memory leak.
9263
052874e8
AS
92642011-03-07 Andreas Schwab <schwab@linux-m68k.org>
9265
9266 * ada-lang.c (compare_names): Call is_name_suffix with string1
9267 instead of string2.
9268
b11896a5
TT
92692011-03-07 Tom Tromey <tromey@redhat.com>
9270
9271 * xcoffread.c (xcoff_sym_fns): Update.
9272 * symfile.h (struct sym_fns) <sym_read_psymbols>: New field.
9273 (enum symfile_add_flags) <SYMFILE_NO_READ>: New constant.
9274 * symfile.c (syms_from_objfile): Handle SYMFILE_NO_READ.
9275 (symbol_file_add_with_addrs_or_offsets): Likewise.
9276 (reread_symbols): Handle OBJF_PSYMTABS_READ.
9277 * somread.c (som_sym_fns): Update.
9278 * psymtab.h (require_partial_symbols): Declare.
9279 * psymtab.c (require_partial_symbols): New function.
9280 (ALL_OBJFILE_PSYMTABS_REQUIRED): New macro.
9281 (ALL_OBJFILE_PSYMTABS): Undef.
9282 (ALL_PSYMTABS): Move from psympriv.h.
9283 (lookup_partial_symtab, find_pc_sect_psymtab)
9284 (lookup_symbol_aux_psymtabs, relocate_psymtabs)
9285 (find_last_source_symtab_from_partial)
9286 (forget_cached_source_info_partial)
9287 (print_psymtab_stats_for_objfile, read_symtabs_for_function)
9288 (expand_partial_symbol_tables, read_psymtabs_with_filename)
9289 (map_symbol_names_psymtab, map_symbol_filenames_psymtab)
9290 (find_symbol_file_from_partial, map_matching_symbols_psymtab)
9291 (expand_symtabs_matching_via_partial, maintenance_info_psymtabs):
9292 Use ALL_OBJFILE_PSYMTABS_REQUIRED.
9293 * psympriv.h (ALL_PSYMTABS): Move to psymtab.c.
9294 * objfiles.h (OBJF_PSYMTABS_READ): New macro.
9295 * objfiles.c (objfile_has_partial_symbols): Handle lazily-read
9296 psymtabs.
9297 * mipsread.c (ecoff_sym_fns): Update.
9298 * machoread.c (macho_sym_fns): Update.
9299 * elfread.c (elf_symfile_read): Set up for lazy psymtab reading.
9300 (read_psyms): New function.
9301 (elf_sym_fns, elf_sym_fns_gdb_index): Update.
9302 (elf_sym_fns_lazy_psyms): New global.
9303 * dwarf2read.c (dwarf2_initialize_objfile): Don't call
9304 dwarf2_build_psymtabs.
9305 * dbxread.c (aout_sym_fns): Update.
9306 * coffread.c (coff_sym_fns): Update.
9307
fda326dd
TT
93082011-03-07 Tom Tromey <tromey@redhat.com>
9309
9310 * infrun.c (print_exited_reason): Include inferior id and pid in
9311 message.
9312
aeaec162
TT
93132011-03-07 Tom Tromey <tromey@redhat.com>
9314
9315 * target.h (struct target_ops) <to_has_execution>: Add ptid_t
9316 parameter.
9317 (target_has_execution_1): Update.
9318 (target_has_execution_current): Declare.
9319 (target_has_execution): Call target_has_execution_current.
9320 (default_child_has_execution): Update.
9321 * target.c (default_child_has_execution): Add 'the_ptid'
9322 parameter.
9323 (target_has_execution_1): Likewise.
9324 (target_has_execution_current): New function.
9325 (add_target): Update.
9326 (init_dummy_target): Update.
9327 * remote-m32r-sdi.c (m32r_has_execution): New function.
9328 (init_m32r_ops): Use it.
9329 * record.c (record_core_has_execution): Now static. Add
9330 'the_ptid' parameter.
9331 * inferior.c (have_live_inferiors): Don't save current thread.
9332 Use target_has_execution_1.
9333
08e14083
YQ
93342011-03-07 Yao Qi <yao@codesourcery.com>
9335
9336 * Makefile.in (aclocal_m4_deps): Remove gnulib/m4/memcmp.m4.
9337
c05d19c5
JB
93382011-03-07 Joel Brobecker <brobecker@adacore.com>
9339
9340 * elfread.c (elf_symtab_read): Minor reformatting.
9341
3e6ef9e4
JB
93422011-03-07 Joel Brobecker <brobecker@adacore.com>
9343
9344 * objc-lang.c (selectors_info): Minor reformatting.
9345
dbb8534f
JB
93462011-03-07 Joel Brobecker <brobecker@adacore.com>
9347
9348 * ada-lang.c (compare_names): Add FALLTHROUGH comment.
9349
dd70cc93
JB
93502011-03-07 Joel Brobecker <brobecker@adacore.com>
9351 Michael Snyder <msnyder@vmware.com>
9352
9353 * ada-valprint.c (ada_val_print_array): Move the declaration of
9354 "byte_order" and "elttype" inside the block where these variables
9355 are actually used. Remove some special handling for the case
9356 where "elttype" and "eltlen" are null. Replace by a comment
9357 and a couple of assertion checks.
9358
b27cf2b3
MS
93592011-03-05 Michael Snyder <msnyder@vmware.com>
9360
9361 * source.c (add_path): Replace semicolon at end of block.
9362 * dwarf2expr.c (execute_stack_op): Ditto.
9363
5387a0c6
MF
93642011-03-05 Mike Frysinger <vapier@gentoo.org>
9365
9366 * bfin-tdep.c: Include sim-regno.h and gdb/sim-bfin.h.
9367 * configure.tgt (bfin-*-*linux*): Define gdb_sim.
9368 (bfin-*-*): Likewise.
9369
e3aa49af
MS
93702011-03-05 Michael Snyder <msnyder@vmware.com>
9371
82ae4854
MS
9372 * dwarf2expr.c (execute_stack_op): Delete superfluous semicolon.
9373 * mdebugread.c (parse_symbol): Ditto.
9374 * parse.c (parse_exp_in_context): Ditto.
9375 * source.c (add_path): Ditto.
9376 * utils.c (gnu_debuglink_crc32): Ditto.
9377 * varobj.c (variable_language): Ditto.
9378
e3aa49af
MS
9379 * linux-tdep.c (linux_get_siginfo_type): Stop memory leak.
9380
154f592e
MS
93812011-03-04 Michael Snyder <msnyder@vmware.com>
9382
da3ecdc6
MS
9383 * linux-fork.c (inferior_call_waitptid): Fix copy/paste error.
9384
9cc89665
MS
9385 * symfile.c (simple_overlay_update): Check for null return value
9386 from lookup_minimal_symbol.
9387
154f592e
MS
9388 * xml-syscall.c (syscall_start_syscall): Assert name is non null.
9389
63ffa6ee
TJB
93902011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
9391
9392 * eval.c (parse_and_eval_address_1): Remove function.
9393 * linespec.c (decode_indirect): Call parse_to_comma_and_eval
9394 instead of parse_and_eval_address_1.
9395 * value.h (parse_and_eval_address_1): Remove prototype.
9396
a17d146e
MS
93972011-03-04 Michael Snyder <msnyder@vmware.com>
9398
9399 * remote.c (putpkt_binary): Document that case stmt falls through.
9400
1a6a67de
TJB
94012011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
9402
9403 * breakpointc (print_it_typical): Move NULL check from here...
9404 (print_bp_stop_message): ... to here.
9405
488919c4
MS
94062011-03-04 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
9407
9408 * breakpoint.c (enable_command): Use break instead of continue,
9409 and fill in a missing break.
9410 (disable_command): Ditto.
9411
1e182ce8
UW
94122011-03-04 Ulrich Weigand <ulrich.weigand@linaro.org>
9413
9414 * inflow.c (terminal_init_inferior_with_pgrp): Copy ttystate.
9415 (terminal_save_ours): Remove misleading comment.
9416 (inflow_inferior_data_cleanup): Free ttystate.
9417 (inflow_inferior_exit): Likewise.
9418 (copy_terminal_info): Copy ttystate.
9419
9420 * serial.c (serial_copy_tty_state): New function.
9421 * serial.h (serial_copy_tty_state): Add prototype.
9422 (struct serial_ops): Add copy_tty_state callback.
9423 * ser-base.c (ser_base_copy_tty_state): New function.
9424 * ser-base.h (ser_base_copy_tty_state): Add prototype.
9425 * ser-go32.c (dos_copy_tty_state): New function.
9426 (dos_ops): Install copy_tty_state callback.
9427 * ser-mingw.c (_initialize_ser_windows): Likewise.
9428 * ser-pipe.c (_initialize_ser_pipe): Likewise.
9429 * ser-unix.c (hardwire_copy_tty_state): New function.
9430 (_initialize_ser_hardwire): Install it.
9431
b2c5f112
MS
94322011-03-04 Michael Snyder <msnyder@vmware.com>
9433
2abae994
MS
9434 * breakpoint.c (create_breakpoint): Add missing break statement.
9435
7f5936f9
MS
9436 Reverting this patch:
9437 * infcall.c (call_function_by_hand): Add break statements for lint.
9438
b2c5f112
MS
9439 Reverting this patch:
9440 * cli/cli-script.c (script_from_file): Add break for lint.
9441
42b1321c
MS
94422011-03-04 Michael Snyder <msnyder@vmware.com>
9443
9444 * solib.c (reload_shared_libraries_1): Close memory leak.
9445
3e2a0cee
TT
94462011-03-03 Tom Tromey <tromey@redhat.com>
9447
9448 PR gdb/12538:
9449 * dwarf2read.c (process_psymtab_comp_unit): Handle case where
9450 DW_STRING is NULL.
9451
58397cb7
MS
94522011-03-03 Michael Snyder <msnyder@vmware.com>
9453
2e3fd767
MS
9454 * remote-fileio.c (remote_fileio_func_fstat): Initialize all
9455 fields of struct 'st' to zero.
9456
58397cb7
MS
9457 * tui/tui-winsource.c (tui_update_source_window_as_is): Initialize
9458 sal.pspace before calling set_current_source_symtab_and_line.
9459
ced54c8f
YQ
94602011-03-03 Yao Qi <yao@codesourcery.com>
9461
9462 * Makefile.in (configure-common): Remove. Let Makefile
9463 in dir common to rebuild itself.
9464 (common/Makefile): Likewise.
9465
3351ea09
JB
94662011-03-03 Joel Brobecker <brobecker@adacore.com>
9467
9468 * utils.c (parse_escape): Add i18n markup in error message.
9469
bf9f652a
YQ
94702011-03-03 Yao Qi <yao@codesourcery.com>
9471
9472 * gdb/arm-tdep.c (shifted_reg_val): Replace magic number 15 with
9473 ARM_PC_REGNUM.
9474 (thumb_get_next_pc_raw, arm_get_next_pc_raw): Likewise.
9475 (displaced_write_reg, displaced_read_reg): Likewise.
9476 (copy_ldr_str_ldrb_strb, cleanup_block_load_all): Likewise.
9477 (cleanup_block_load_pc, copy_block_xfer): Likewise.
9478 (cleanup_branch): Replace magic number 14 and 15 with
9479 ARM_LR_REGNUM and ARM_PC_REGNUM respectively.
9480
d42de051
MS
94812011-03-02 Michael Snyder <msnyder@vmware.com>
9482
240f9570
MS
9483 * maint.c (maintenance_do_deprecate): No need to check for NULL.
9484
10dd8b54
MS
9485 * cli/cli-script.c (script_from_file): Add break for lint.
9486
b98bd911
MS
9487 * mdebugread.c (parse_partial_symbols): Fix indent.
9488
3494b66d
MS
9489 * target-descriptions.c (tdesc_gdb_type): No need to call
9490 xstrdup, callee saves a copy.
9491
daac021a
MS
9492 * printcmd.c (print_scalar_formatted): Use strncpy for safety.
9493
c38d16a7
MS
9494 * infcall.c (call_function_by_hand): Add break statements for lint.
9495
905b671b
MS
9496 * utils.c (parse_escape): Escape the escape char.
9497
f2eb0bc8 9498 * python/py-inferior.c (build_inferior_list): Error out if
2d565757
MS
9499 PyList_Append fails.
9500 (gdbpy_inferiors): Error out if build_inferior_list fails.
9501
8c6a60d1
MS
9502 * linux-nat.c (linux_nat_xfer_partial): Preserve errno around
9503 a function call.
9504
d42de051
MS
9505 * record.c (record_restore): Move printf to before error return.
9506
4db71c0b
YQ
95072011-03-02 Yao Qi <yao@codesourcery.com>
9508
9509 * arm-tdep.h (struct displaced_step_closure): Add two new fields
9510 is_thumb and insn_size.
9511 * arm-tdep.c (displaced_read_reg): Adjust correct pipeline offset
9512 on both ARM and Thumb mode.
9513 (arm_process_displaced_insn): Set is_thumb and insn_size.
9514 (arm_displaced_init_closure): Handle both 16-bit and 32-bit.
9515 (arm_displaced_step_fixup): Likewise.
9516
a9dc8dcc
MS
95172011-03-01 Michael Snyder <msnyder@vmware.com>
9518
53624a93
MS
9519 * cli/cli-dump.c (dump_bfd_file): Check error return and warn.
9520
77766669
MS
9521 * jv-lang.c (evaluate_subexp_java): Conditional can't be true.
9522
62d5b8da
MS
9523 * dwarf2read.c (dwarf2_compute_name): NAME cannot be null here.
9524
5e9e105f
MS
9525 * cli/cli-dump.c (restore_binary_file): Validate ftell return value.
9526
dc19db01
MS
9527 * ada-lang.c (ada_make_symbol_completion_list): Replace malloc
9528 with xmalloc.
9529
5ce64950
MS
9530 * ada-lang.c (aggregate_assign_others): Rename inner scope variable
9531 which shadows function parameter.
9532
a0aa2878
MS
9533 * tracepoint.c (create_tsv_from_upload): Superfluous call
9534 to xstrdup. Callee already calls xstrdup.
9535
e325fb69
MS
9536 * linespec.c (decode_line_1): Remove unnecessary null check.
9537
21cbba77
MS
9538 * tracepoint.c (scope_info): Fix mem leak, remove underused
9539 variable.
9540
63360adc
MS
9541 * python/py-prettyprint.c (apply_val_pretty_printer): Remove
9542 superfluous null check.
9543
18ea20ac 9544 * std-regs.c (value_of_builtin_frame_pc_reg): Frame can't be null.
23ce9890 9545 (value_of_builtin_frame_fp_reg): Ditto.
18ea20ac 9546
d014929c
MS
9547 * event-top.c (display_gdb_prompt): Remove superfluous null check.
9548
6e9130cf
MS
9549 * python/py-prettyprint.c (apply_val_pretty_printer): VAL may
9550 be null.
9551
5f01dbc0
MS
9552 * linespec.c (decode_line_1): Check for null before dereference.
9553
d684ab85
MS
9554 * reverse.c (record_restore): Move null-check to before pointer
9555 dereference.
9556
bfffb7e3
MS
9557 * python/py-utils.c (gdbpy_obj_to_string): Delete unused variable.
9558
a9dc8dcc
MS
9559 * objc-lang.c (selectors_info): Add explanitory comment.
9560 (classes_info): Ditto.
9561
478fd957
UW
95622011-03-01 Ulrich Weigand <ulrich.weigand@linaro.org>
9563
9564 * arm-linux-tdep.c (ARM_LDR_PC_SP_4): Add define.
9565 (arm_linux_restart_syscall_init): Handle both on-stack and in-kernel
9566 versions of the trampoline. Handle Thumb vs. ARM addresses.
9567 (arm_kernel_linux_restart_syscall_tramp_frame): New global.
9568 (arm_linux_init_abi): Install it.
9569 * arm-tdep.c (arm_psr_thumb_bit): Make global.
9570 * arm-tdep.c (arm_psr_thumb_bit): Add prototype.
9571
0480cefa
MS
95722011-02-28 Michael Snyder <msnyder@vmware.com>
9573
ac50ab3b
MS
9574 * ui-out.c (ui_out_field_core_addr): Make local char buffer
9575 a little bigger, to avoid possibility of an overflow.
9576
f63fbe86
MS
9577 * breakpoint.c (breakpoint_adjustment_warning): Make local char
9578 buffers a little bigger, to avoid possibility of an overflow.
9579
9e91a352
MS
9580 * coffread.c (coff_getfilename): Add check to avoid overflow.
9581
f2eb0bc8 9582 * objc-lang.c (selectors_info): Add a small safety margin to
28288541
MS
9583 avoid overflow.
9584 (classes_info): Error out on too long REGEXP.
9585
098ab512
MS
9586 * infrun.c (handle_inferior_event): Remove unused function call.
9587
bcbd1de9
MS
9588 * fork-child.c (fork_inferior): Remove ifdef'd code and
9589 unused variable.
9590
2e456570
MS
9591 * linux-thread-db.c (attach_thread): Discard unused value.
9592
14571dad
MS
9593 * linux-nat.c (linux_handle_extended_wait): Delete unused variable.
9594
a9cbf802
MS
9595 * remote.c (remote_get_noisy_reply): Discard unused value.
9596 (remote_vcont_resume): Ditto.
9597 (remote_stop_ns): Ditto.
9598
5715d26e
MS
9599 * linespec.c (decode_objc): Delete unused variable.
9600
4a9bca80
MS
9601 * tui/tui-regs.c (tui_register_format): Delete unused variable.
9602
f47fb265
MS
9603 * dwarf2read.c (add_partial_symbol): Discard unused values.
9604 (read_base_type): Delete unused variable.
9605
e81cff30
MS
9606 * dbxread.c (read_dbx_symtab): Discard unused value.
9607
262acaeb
MS
9608 * eval.c (evaluate_subexp_standard): Delete unused variable,
9609 and discard unused values.
9610
df983543
MS
9611 * infcmd.c (_initialize_infcmd): Discard unused values.
9612
89acf84d
MS
9613 * stabsread.c (rs6000_builtin_type): Missing break statement.
9614
ab8b8aca
MS
9615 * dbxread.c (process_one_symbol): Discard unused value.
9616
6b4511ab
MS
9617 * coffread.c (coff_end_symtab): Delete unused variable.
9618
e8e80198
MS
9619 * dwarf2read.c (dw2_get_file_names): Discard unused value.
9620 (dwarf2_add_typedef): Delete unused variable.
9621 (read_namespace): Ditto.
9622 (dwarf_decode_macros): Ditto.
9623
976aa66e
MS
9624 * m2-lang.c (evaluate_subexp_modula2): Discard unused variable.
9625
5b92b49f
MS
9626 * opencl-lang.c (evaluate_subexp_opencl): Discard unused value.
9627
91e8df85
MS
9628 * p-valprint.c (pascal_val_print): Discard unused value.
9629
899500d6
MS
9630 * utils.c (nquery): Call va_end before return;
9631 (yquery): Ditto.
9632 (query): Ditto.
9633
0480cefa
MS
9634 * proc-service.c (ps_plog): Call va_end before return.
9635
fb6a3ed3
TT
96362011-02-28 Tom Tromey <tromey@redhat.com>
9637
9638 * python/python.c (gdbpy_value_cst): New global.
9639 (_initialize_python): Initialize it.
9640 * python/python-internal.h (gdbpy_value_cst): Declare.
9641 * python/py-value.c (convert_value_from_python): Use
9642 gdbpy_value_cst.
9643
c05202a1
MS
96442011-02-28 Michael Snyder <msnyder@vmware.com>
9645
e463f587
MS
9646 * python/py-cmd.c (cmdpy_init): Fix memory leak.
9647
c38eea1a
MS
9648 * breakpoint.c (catch_syscall_completer): Free malloced list.
9649
3ef09ab5
MS
9650 * jv-lang.c (java_primitive_type_from_name): Add missing break.
9651
8f9a01ee
MS
9652 * opencl-lang.c (lval_func_check_validity): Rename inner variables.
9653 (lval_func_check_synthetic_pointer): Ditto.
9654 (lval_func_free_closure): Fix use-after-free.
c05202a1 9655
477d0d57
TT
96562011-02-28 Tom Tromey <tromey@redhat.com>
9657
9658 * psymtab.c (expand_partial_symbol_tables): Use
9659 ALL_OBJFILE_PSYMTABS.
9660
20937029
JK
96612011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
9662
9663 * objc-lang.c (selectors_info): Error on too long REGEXP.
9664
907b7f4f
MS
96652011-02-28 Michael Snyder <msnyder@vmware.com>
9666
92e96192
MS
9667 * python/py-param.c (set_parameter_value): Add missing
9668 break statement.
9669
907b7f4f
MS
9670 * linux-record.c (record_linux_system_call): Add missing
9671 break statement.
9672
12c5a436
UW
96732011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
9674
9675 * breakpoint.c (print_one_breakpoint_location): Remove unused
9676 argument PRINT_ADDRESS_BITS. Update callers.
9677 (print_one_breakpoint): Likewise.
9678
170b53b2
UW
96792011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
9680
9681 * breakpoint.c (wrap_indent_at_field): New function.
9682 (print_breakpoint_location): Use it instead of WRAP_INDENT argument.
9683 Allocate ui_stream locally instead of using STB argument.
9684 (print_one_breakpoint_location): Update call.
9685 * ui-out.c (ui_out_query_field): New function.
9686 * ui-out.h (ui_out_query_field): Add prototype.
9687
8ab1f94d
JB
96882011-02-28 Joel Brobecker <brobecker@adacore.com>
9689
9690 From Michael Snyder <msnyder@vmware.com>
9691 * ada-exp.y (write_object_renaming): Add FALLTHROUGH comment.
9692
7d488639
MS
96932011-02-27 Michael Snyder <msnyder@vmware.com>
9694
ae179fba
MS
9695 * objc-lang.c (selectors_info): Prevent string overrun.
9696
086dbf66
MS
9697 * tui/tui-stack.c (tui_get_function_from_frame): Fix off by one
9698 error in strncpy.
9699
f2eb0bc8 9700 * symtab.c (rbreak_command): Move variable 'file_name' to
9c1e305a
MS
9701 outer scope.
9702
7d488639
MS
9703 * d-valprint.c (dynamic_array_type): Avoid shadowing a function
9704 param with a local variable of the same name.
9705
3bd0f5ef
MS
97062011-02-27 Michael Snyder <msnyder@vmware.com>
9707
9708 * value.c (value_from_history_ref): New function.
9709 * value.h (value_from_history_ref): Export.
9710 * cli/cli-utils.c (get_number_trailer): Use value_from_history_ref
9711 to parse value history references.
9712 * cli/cli-utils.h (get_number_trailer): Update comment.
9713
97142011-02-27 Michael Snyder <msnyder@vmware.com>
9715
9716 * inferior.c (detach_inferior_command): Use get_number_or_range.
9717 (kill_inferior_command): Ditto.
9718 (remove_inferior_command): Ditto.
9719 (initialize_inferiors): Make command names plural.
9720 Update help strings.
9721
766062f6
MS
97222011-02-27 Michael Snyder <msnyder@vmware.com>
9723
9724 * darwin-nat-info.c: Fix comment typo.
9725 * dwarf2expr.h: Ditto.
9726 * fbsd-nat.c: Ditto.
9727 * fbsd-nat.h: Ditto.
9728 * frame-unwind.h: Ditto.
9729 * frame.h: Ditto.
9730 * hppa-hpux-tdep.c: Ditto.
9731 * i386-linux-nat.c: Ditto.
9732 * linux-nat.c: Ditto.
9733 * nbsd-nat.c: Ditto.
9734 * nbsd-nat.h: Ditto.
9735 * ppc-linux-tdep.c: Ditto.
9736 * serial.c: Ditto.
9737 * ui-file.h: Ditto.
9738 * tui/tui-winsource.c: Ditto.
9739
f2c4ead5
MS
97402011-02-26 Michael Snyder <msnyder@vmware.com>
9741
86b887df
MS
9742 * breakpoint.c (reattach_breakpoints): Avoid resource leak (ui_file).
9743
66fd3b1e
MS
9744 * maint.c (maintenance_do_deprecate): Plug a memory leak.
9745
8c814cdd
MS
9746 * dwarf2loc.c (insert_bits): Avoid shadowing a function param
9747 with a local variable of the same name.
9748
6d5e094a 9749 * i387-tdep.c (i387_supply_fxsave): Avoid shadowing a function
e5b3d7d6 9750 param with a local variable of the same name.
6d5e094a 9751 (i387_supply_xsave): Ditto.
e5b3d7d6 9752
5eee517d
MS
9753 * linux-low.c (linux_nat_xfer_osdata): Rename local variable so
9754 that it does not shadow a function parameter.
9755
8fbf6b93
MS
9756 * i386-nat.c (i386_length_and_rw_bits): Document that case
9757 statement is meant to fall through.
9758
cb969d61
MS
9759 * expprint.c (dump_subexp_body_standard): Document that case
9760 statement is meant to fall through.
9761
f2c4ead5
MS
9762 * amd64-linux-tdep.c (amd64_linux_syscall_record): Delete
9763 dead if statement. Condition can't be false.
9764
b021a221
MS
97652011-02-25 Michael Snyder <msnyder@vmware.com>
9766
9767 * arm-tdep.c: Fix typos in comments.
9768 * bsd-uthread.c: Ditto.
9769 * completer.c: Ditto.
9770 * corelow.c: Ditto.
9771 * cp-namespace.c: Ditto.
9772 * cp-support.c: Ditto.
9773 * cris-tdep.c: Ditto.
9774 * dbxread.c: Ditto.
9775 * dwarf2read.c: Ditto.
9776 * frame.h: Ditto.
9777 * gdbtypes.h: Ditto.
9778 * inferior.h: Ditto.
9779 * mdebugread.c: Ditto.
9780 * mips-tdep.c: Ditto.
9781 * ppc-linux-nat.c: Ditto.
9782 * ppc-linux-tdep.c: Ditto.
9783 * printcmd.c: Ditto.
9784 * sol-thread.c: Ditto.
9785 * solib-frv.c: Ditto.
9786 * solist.h: Ditto.
9787 * sparc64-tdep.c: Ditto.
9788 * spu-tdep.c: Ditto.
9789 * stabsread.c: Ditto.
9790 * symfile.c: Ditto.
9791 * valops.c: Ditto.
9792 * varobj.c: Ditto.
9793 * vax-nat.c: Ditto.
9794 * python/py-block.c: Ditto.
9795 * python/py-symbol.c: Ditto.
9796 * python/py-symtab.c: Ditto.
9797 * python/py-value.c: Ditto.
9798 * tui/tui-win.c: Ditto.
9799
c82c0b55
MS
98002011-02-25 Michael Snyder <msnyder@vmware.com>
9801
9802 * inferior.c (print_inferior): Accept a string instead of an int
9803 for requested_inferiors, and use get_number_or_range to parse it.
9804 (info_inferiors_command): Pass args string to print_inferior.
9805 (initialize_inferiors): Change help string for info inferiors.
9806 * inferior.h (print_inferior): Export prototype change.
9807
ee00cd23
TT
98082011-02-25 Tom Tromey <tromey@redhat.com>
9809
9810 * common/ax.def (invalid2): Set to 0x31.
9811
0502ed8c
JK
98122011-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
9813
9814 * dwarf2loc.c (disassemble_dwarf_expression) <DW_OP_breg[0-9]+>: Use
9815 L and plongest.
9816 (disassemble_dwarf_expression) <DW_OP_bregx>: Drop variable offset,
9817 use L and plongest.
9818 (disassemble_dwarf_expression) <DW_OP_fbreg>: Use L and plongest.
9819
2c9de912
MS
98202011-02-24 Michael Snyder <msnyder@vmware.com>
9821
9822 * Makefile.in (clean): Make clean should remove generated files
9823 observer.h and observer.inc.
9824
a04b0428
JB
98252011-02-24 Joel Brobecker <brobecker@adacore.com>
9826
9827 Revert the following patch (not approved yet):
9828 2011-02-21 Hui Zhu <teawater@gmail.com>
9829 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
9830 * ax-gdb.c (gen_printf_expr_callback): New function.
9831 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
9832 * ax-general.c (ax_memcpy): New function.
9833 (ax_print): Handle "printf".
9834 (ax_reqs): Ditto.
9835 * ax.h (ax_memcpy): Forward declare.
9836 * common/ax.def (invalid2): Removed.
9837 (printf): New entry.
9838 * printcmd.c (printcmd.h): New include.
9839 (string_printf): New function.
9840 (ui_printf): Removed.
9841 (printf_command): Remove static. Call string_printf.
9842 (eval_command): Call string_printf.
9843 * printcmd.h: New file.
9844 * tracepoint.c (validate_actionline,
9845 encode_actions_1): handle printf_command.
9846
2b52013f
TT
98472011-02-23 Tom Tromey <tromey@redhat.com>
9848
9849 * ax-general.c (ax_pick): Add missing newline.
9850
e5a67952
MS
98512011-02-23 Michael Snyder <msnyder@vmware.com>
9852
9853 * breakpoint.c (breakpoint_1): Change first argument from an int
9854 to a char pointer, so that the function now accepts a list of
f2eb0bc8 9855 breakpoints rather than just one. Use new function
e5a67952
MS
9856 'number_is_in_list' to implement.
9857 (breakpoints_info): Pass char * instead of int to breakpoint_1.
9858 (watchpoints_info): Ditto.
9859 (tracepoints_info): Ditto.
9860 (maintenance_info_breakpoints): Ditto.
9861 (_initialize_breakpoint): Update help strings to reflect the fact
9862 that these functions can now take more than one argument.
9863 * cli/cli-utils.c (number_is_in_list): New function.
9864 * cli/cli-utils.h (number_is_in_list): Export.
9865
98662011-02-23 Michael Snyder <msnyder@vmware.com>
fbcb778d
MS
9867
9868 * memattr.c (mem_enable_command): Use get_number_or_range.
9869 (mem_disable_command): Ditto.
9870 (mem_delete_command): Ditto.
9871 (_initialize_mem): Tweak usage message to reflect multiple
9872 arguments.
9873
6e6fbe60
DE
98742011-02-22 Doug Evans <dje@google.com>
9875
9876 Add gdb.lookup_global_symbol python function.
9877 * NEWS: Add entry.
9878 * python/py-symbol.c (gdbpy_lookup_global_symbol): New function.
9879 * python/python-internal.h (gdbpy_lookup_global_symbol): Declare it.
9880 * python/python.c (GdbMethods): Add entry for lookup_global_symbol.
9881
79b97fa8
TT
98822011-02-22 Tom Tromey <tromey@redhat.com>
9883
9884 * language.c (language_class_name_from_physname): Rename
9885 'curr_language' argument to 'lang'; use in body.
9886
298f437a
MS
98872011-02-22 Michael Snyder <msnyder@vmware.com>
9888
9889 * cli/cli-utils.c (number_is_in_list): Check for zero return.
9890
b7ea3126
PA
98912011-02-22 Pedro Alves <pedro@codesourcery.com>
9892
9893 * frame-unwind.h: Fix comment to mention the this frame, not the
9894 next.
9895
58ee6d60
TT
98962011-02-22 Tom Tromey <tromey@redhat.com>
9897
9898 * symfile.c (auto_solib_limit): Remove.
9899 * symfile.h (auto_solib_limit): Remove.
9900
36238dbc
JB
99012011-02-22 Joel Brobecker <brobecker@adacore.com>
9902
9903 * Makefile.in (INSTALLED_LIBS): Delete. Update comment.
9904
aea5b279
MS
99052011-02-21 Michael Snyder <msnyder@vmware.com>
9906
9907 * gdbthread.h (print_thread_info): Change prototype.
9908 * thread.c (print_thread_info): Accept char* instead of int for
9909 requested_threads argument. Use new function number_is_in_list
9910 to determine which threads to list.
9911 (info_threads_command): Pass char* to print_thread_info.
9912 * cli/cli-utils.c (number_is_in_list): New function.
9913 * cli/cli-utils.h (number_is_in_list): Export.
f2eb0bc8 9914 * mi/mi-main.c (mi_cmd_thread_info): Pass char* to
aea5b279
MS
9915 print_thread_info.
9916 (print_one_inferior): Ditto.
9917 (mi_cmd_list_thread_groups): Ditto.
9918
8caa75ee
JK
99192011-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
9920
9921 * common/Makefile.in (CFLAGS): New.
9922 (COMPILE): Add $(CFLAGS).
9923
ea666128
TT
99242011-02-21 Tom Tromey <tromey@redhat.com>
9925
9926 * breakpoint.c (catch_syscall_command_1): Fix typo.
9927
e9cafbcc
TT
99282011-02-21 Tom Tromey <tromey@redhat.com>
9929
9930 * reverse.c: Include cli-utils.h.
9931 * printcmd.c: Include cli-utils.h.
9932 (string_printf): Use skip_spaces.
9933 * cli/cli-utils.h: New file.
9934 * cli/cli-utils.c: New file.
9935 * cli/cli-dump.h (skip_spaces): Move to cli-utils.h.
9936 * cli/cli-dump.c (skip_spaces): Move to cli-utils.c.
9937 * breakpoint.h (get_number, get_number_or_range): Move to
9938 cli-utils.h.
9939 * breakpoint.c: Include cli-utils.h.
9940 (get_number_trailer, get_number, get_number_or_range)
9941 (ep_skip_leading_whitespace): Move to cli-utils.c.
9942 (create_breakpoint_sal, find_condition_and_thread)
9943 (decode_static_tracepoint_spec, watch_command_1)
9944 (watch_maybe_just_location, ep_parse_optional_if_clause)
9945 (catch_fork_command_1, catch_exec_command_1)
9946 (catch_syscall_command_1): Use skip_spaces, skip_to_space.
9947 * Makefile.in (SUBDIR_CLI_OBS): Add cli-utils.o.
9948 (SUBDIR_CLI_SRCS): Add cli-utils.c.
9949 (HFILES_NO_SRCDIR): Add cli-utils.h.
9950 (cli-utils.o): New target.
9951
f67fd822
PM
99522011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
9953
9954 * remote.c (remote_close): Reset INFERIOR_PTID to NULL_PTID
9955 before calling discard_all_inferiors.
9956
c9def01d
UW
99572011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
9958
9959 * opencl-lang.c (STRUCT_OCL_TYPE): Remove.
9960 (struct builtin_opencl_type): Remove.
9961 (builtin_opencl_type): Change return type to "struct type **".
9962 (lookup_opencl_vector_type): Update caller.
9963 (opencl_language_arch_info): Copy primitive type vector from gdbarch.
9964 (build_opencl_types): Install plain array of "struct type *"
9965 instead of "struct builtin_opencl_type".
9966
e3039479
UW
99672011-02-21 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
9968 Ulrich Weigand <uweigand@de.ibm.com>
9969
9970 * arm-linux-nat.c: Include "observer.h" and "gdbthread.h".
9971 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define.
9972 (struct arm_linux_hwbp_cap): New type.
9973 (arm_linux_get_hwbp_cap): New function.
9974 (arm_linux_get_hw_breakpoint_count): Likewise.
9975 (arm_linux_get_hw_watchpoint_count): Likewise.
9976 (arm_linux_can_use_hw_breakpoint): Likewise.
9977 (arm_hwbp_type): New type.
9978 (arm_hwbp_control_t): Likewise.
9979 (struct arm_linux_hw_breakpoint): Likewise.
9980 (struct arm_linux_thread_points): Likewise.
9981 (arm_threads): New global variable.
9982 (arm_linux_find_breakpoints_by_tid): New function.
9983 (arm_hwbp_control_initialize): Likewise.
9984 (arm_hwbp_control_is_enabled): Likewise.
9985 (arm_hwbp_control_disable): Likewise.
9986 (arm_linux_hw_breakpoint_initialize): Likewise.
9987 (arm_linux_get_hwbp_type): Likewise.
9988 (arm_linux_hw_watchpoint_initialize): Likewise.
9989 (arm_linux_hw_breakpoint_equal): Likewise.
9990 (arm_linux_insert_hw_breakpoint1): Likewise.
9991 (arm_linux_remove_hw_breakpoint1): Likewise.
9992 (arm_linux_insert_hw_breakpoint): Likewise.
9993 (arm_linux_remove_hw_breakpoint): Likewise.
9994 (arm_linux_region_ok_for_hw_watchpoint): Likewise.
9995 (arm_linux_insert_watchpoint): Likewise.
9996 (arm_linux_remove_watchpoint): Likewise.
9997 (arm_linux_stopped_data_address): Likewise.
9998 (arm_linux_stopped_by_watchpoint): Likewise.
9999 (arm_linux_watchpoint_addr_within_range): Likewise.
10000 (arm_linux_new_thread): Likewise.
10001 (arm_linux_thread_exit): Likewise.
10002 (_initialize_arm_linux_nat): Install hardware breakpoint/watchpoint
10003 related target callbacks. Register arm_linux_new_thread and
10004 arm_linux_thread_exit.
10005 * arm-tdep.h (arm_pc_is_thumb): Add prototype.
10006 * arm-tdep.c (arm_pc_is_thumb): Make global.
10007 (arm_gdbarch_init): Call set_gdbarch_have_nonsteppable_watchpoint.
10008
b5db5dfc
UW
100092011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
10010
10011 * breakpoint.c (update_watchpoint): Do not attempt to recreate
10012 per-frame locations while within a function epilogue.
10013
e25b2cfa
PM
100142011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
10015
10016 * ser-mingw.c (ser_windows_close): Reformat comment to better conform
10017 to GNU coding standards.
10018
4af53f97
PM
100192011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
10020
10021 Allow use of mingw native on Windows 95 OS.
e25b2cfa 10022 * ser-mingw.c (CancelIo): New macro for dynamically loaded DLL entry.
4af53f97
PM
10023 (ser_windows_close): Only call CancelIo if function exists.
10024 (_initialize_ser_windows): Use LoadLirary/GetProcAddress
10025 to check for existence of CancelIo function in kernel32 DLL.
10026
d0e92d82
HZ
100272011-02-21 Hui Zhu <teawater@gmail.com>
10028
10029 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
10030 * ax-gdb.c (gen_printf_expr_callback): New function.
10031 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
10032 * ax-general.c (ax_memcpy): New function.
10033 (ax_print): Handle "printf".
10034 (ax_reqs): Ditto.
10035 * ax.h (ax_memcpy): Forward declare.
10036 * common/ax.def (invalid2): Removed.
10037 (printf): New entry.
10038 * printcmd.c (printcmd.h): New include.
10039 (string_printf): New function.
10040 (ui_printf): Removed.
10041 (printf_command): Remove static. Call string_printf.
10042 (eval_command): Call string_printf.
10043 * printcmd.h: New file.
10044 * tracepoint.c (validate_actionline,
10045 encode_actions_1): handle printf_command.
10046
7d357efd
MS
100472011-02-19 Michael Snyder <msnyder@vmware.com>
10048
10049 * reverse.c (delete_one_bookmark): Argument is now bookmark
10050 id rather than pointer to bookmark struct.
10051 (delete_bookmark_command): Use get_number_or_range.
10052 (goto_bookmark_command): Parse with get_number instead of strtoul.
10053 (bookmark_1): New function. Print info for one bookmark.
10054 (bookmarks_info): Use get_number_or_range and bookmark_1.
10055
7a45ebd7
MS
100562011-02-18 Michael Snyder <msnyder@vmware.com>
10057
f2eb0bc8 10058 * thread.c (info_threads_command): Re-implement using
7a45ebd7 10059 get_number_or_range.
65ebfb52 10060 (thread_apply_command): Ditto.
7a45ebd7 10061
94d5e490
TT
100622011-02-18 Tom Tromey <tromey@redhat.com>
10063
10064 * common/ax.def: New file.
10065 * ax.h (enum agent_op): Use ax.def.
10066 * ax-general.c (aop_map): Use ax.def.
10067
c7f96d2b
TT
100682011-02-18 Tom Tromey <tromey@redhat.com>
10069
10070 * ax-general.c (aop_map): Add pick and rot.
10071 * dwarf2loc.c (compile_dwarf_to_ax) <DW_OP_over>: Reimplement.
10072 <DW_OP_rot>: Implement.
10073 * ax.h (enum agent_op) <aop_pick, aop_rot>: New constants.
10074 (ax_pick): Declare.
10075 * ax-general.c (ax_pick): New function.
10076
66694b75
TT
100772011-02-18 Tom Tromey <tromey@redhat.com>
10078
10079 * Makefile.in (HFILES_NO_SRCDIR): Don't mention ada-operator.inc.
10080
eeaafae2
JK
100812011-02-18 Jan Kratochvil <jan.kratochvil@redhat.com>
10082 Tom Tromey <tromey@redhat.com>
10083
10084 * cp-support.c (make_symbol_overload_list_namespace): Do not call
10085 make_symbol_overload_list_block with NULL BLOCK.
10086 * valarith.c (unop_user_defined_p): Resolve also TYPE_CODE_TYPEDEF.
10087
3c3fe74c
PA
100882011-02-18 Pedro Alves <pedro@codesourcery.com>
10089
10090 * breakpoint.c (get_number_trailer): No longer accept a NULL PP.
10091 * breakpoint.h (get_number_or_range): Declare.
10092 * printcmd.c (ALL_DISPLAYS): Declare.
10093 (delete_display): Reimplement taking a display pointer.
10094 (undisplay_command): Accept a range of displays to delete, using
10095 get_number_or_range.
10096
13163d80
PM
100972011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
10098
10099 * c-valprint.c (c_val_print): Add embedded_offset to address
10100 for arrays of unspecified length.
10101 * p-valprint.c (pascal_val_print): Likewise.
10102
b434a28f
YQ
101032011-02-18 Yao Qi <yao@codesourcery.com>
10104
10105 * gdb/arm-tdep.c (arm_displaced_step_copy_insn): Move code to ...
10106 (arm_process_displaced_insn): .. here. Remove parameter INSN.
10107 (thumb_process_displaced_insn): New.
10108 * gdb/arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Update
10109 call to arm_process_displaced_insn.
10110 * gdb/arm-tdep.h : Update declaration of arm_process_displaced_insn.
10111
9f6f94ff
TT
101122011-02-17 Tom Tromey <tromey@redhat.com>
10113
10114 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Declare.
10115 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Rename from
10116 compile_dwarf_to_ax. No longer static. Call
10117 dwarf2_compile_cfa_to_ax.
10118 (locexpr_tracepoint_var_ref): Update.
10119 (loclist_tracepoint_var_ref): Update.
10120 * dwarf2-frame.h (dwarf2_compile_cfa_to_ax): Declare.
10121 * dwarf2-frame.c (execute_cfa_program): Remove 'this_frame'
10122 argument; add 'gdbarch' and 'pc'.
10123 (dwarf2_compile_cfa_to_ax): New function.
10124 (dwarf2_frame_cache): Update.
10125
e67ad678
JB
101262011-02-17 Joel Brobecker <brobecker@adacore.com>
10127
10128 * ada-lang.c (ada_type_of_array): Fix the size of the array
10129 in the case of an unconstrained packed array.
10130
946ebb0d
YQ
101312011-02-17 Yao Qi <yao@codesourcery.com>
10132
10133 * common/Makefile.in: Add more targets for make.
10134
1ba1b353
TT
101352011-02-16 Tom Tromey <tromey@redhat.com>
10136
10137 * dwarf2loc.c (unimplemented): Fix typo.
10138
b1bfef65
TT
101392011-02-16 Tom Tromey <tromey@redhat.com>
10140
10141 * dwarf2loc.c (unimplemented): Handle unnamed opcodes.
10142 (compile_dwarf_to_ax) <default>: Use unimplemented.
10143 <DW_OP_deref>: Update.
10144 (disassemble_dwarf_expression): Update.
10145 * dwarf2read.c (dwarf_stack_op_name): Remove 'def' argument.
10146 (decode_locdesc): Update.
10147 * dwarf2expr.h (dwarf_stack_op_name): Update.
10148
5f1e6f19
TT
101492011-02-16 Tom Tromey <tromey@redhat.com>
10150
10151 * ax.h (struct aop_map) <name>: Now const.
10152
a0c78a73
PA
101532011-02-16 Tom Tromey <tromey@redhat.com>
10154
10155 * ax-gdb.c.c (gen_expr) <UNOP_MEMVAL>: Handle value kinds other
10156 than axs_rvalue.
10157
946ebb0d 101582011-02-16 Yao Qi <yao@codesourcery.com>
a42244db
YQ
10159
10160 * infrun.c (get_displaced_step_closure_by_addr): New.
10161 * inferior.h: Declare it.
10162 * arm-tdep.c: (arm_pc_is_thumb): Call
10163 get_displaced_step_closure_by_addr. Adjust MEMADDR if it
10164 returns non-NULL.
10165
08807d5a
PA
101662011-02-16 Pedro Alves <pedro@codesourcery.com>
10167 Jan Kratochvil <jan.kratochvil@redhat.com>
10168
10169 gdb/
10170 * tracepoint.c (memrange_sortmerge): Fix list A's end calculation.
10171
29976f3f
PA
101722011-02-16 Pedro Alves <pedro@codesourcery.com>
10173 Jan Kratochvil <jan.kratochvil@redhat.com>
10174
10175 * value.c (value_contents_copy_raw): Extend describing comment.
10176 Assert that the destination contents we're overwriting are wholly
10177 available.
fb68ae73 10178 (value_contents_copy): Extend describing comment.
29976f3f 10179
cd24cfaa
PA
101802011-02-16 Pedro Alves <pedro@codesourcery.com>
10181 Jan Kratochvil <jan.kratochvil@redhat.com>
10182
10183 * value.c (value_available_contents_eq): Remove redundant local
10184 variables. Fix available contents comparision.
10185 * value.h (value_available_contents_eq): Extend describing
10186 comment.
10187
60bbf338
YQ
101882011-02-16 Yao Qi <yao@codesourcery.com>
10189
10190 * thread.c (info_threads_command): Add missing i18n markup and remove
10191 trailing newline.
10192
17450429
PP
101932011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
10194
10195 * breakpoint.c (longjmp_names): New variable.
10196 (struct breakpoint_objfile_data): New type.
10197 (breakpoint_objfile_key): New variable.
10198 (msym_not_found): New variable.
10199 (msym_not_found_p): New predicate.
10200 (get_breakpoint_objfile_data): New function.
10201 (create_overlay_event_breakpoint): Check per-objfile cache for
10202 symbols first.
10203 (create_longjmp_master_breakpoint): Likewise.
10204 (create_std_terminate_master_breakpoint): Likewise.
10205 (create_exception_master_breakpoint): Likewise.
10206 (_initialize_breakpoint): Register per-objfile data key.
10207
af02033e
PP
102082011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
10209
10210 * breakpoint.c ((create_overlay_event_breakpoint): Const-propagate
10211 parameter value.
10212 (create_longjmp_master_breakpoint): Loop over longjmp names.
10213 (create_std_terminate_master_breakpoint): Const-propagate parameter
10214 value.
10215 (update_breakpoints_after_exec): Adjust.
10216 (breakpoint_re_set): Adjust.
10217
60f98dde
MS
102182011-02-15 Michael Snyder <msnyder@vmware.com>
10219
cdf99611
MS
10220 * thread.c (info_threads_command): Process arg as thread id,
10221 or list of thread ids.
10222 (thread_find_command): New command.
10223 (_initialize_thread): Document argument for info threads.
10224 Document 'thread find' command.
10225 * NEWS: Document new command "thread find".
60f98dde 10226
0feedb2c
JK
102272011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10228
10229 * Makefile.in (ACLOCAL_AMFLAGS): Add `-I ../config'.
10230 * aclocal.m4: Regenerated with aclocal-1.11.1.
10231 * common/configure: Regenerate with autoconf-2.64.
10232
648cd113
KW
102332011-02-15 Ken Werner <ken.werner@de.ibm.com>
10234
10235 * opencl-lang.c (build_opencl_types): Set the size of the built-in
10236 bool data type to a size of one byte.
10237
5657161f
PA
102382011-02-15 Pedro Alves <pedro@codesourcery.com>
10239 Jan Kratochvil <jan.kratochvil@redhat.com>
10240
10241 * target.c (memory_xfer_live_readonly_partial): Document where to
10242 look for interface description.
10243
494e194e
YQ
102442011-02-15 Yao Qi <yao@codesourcery.com>
10245
10246 PR tdep/12352
10247 * arm-tdep.c (copy_ldr_str_ldrb_strb): Replace PC with SP in
10248 order to store PC value on stack instead of text section.
10249
d9492458
TJB
102502011-02-15 Thiago Jung Bauermann <bauerman@br.ibm.com>
10251
10252 * rs6000-tdep.c (IS_EFP_PSEUDOREG): Use correct constant for
10253 the EFP register set size.
10254 (efpr_pseudo_register_read): Use regcache_raw_read_part to read
10255 data from the VMX register.
10256 (efpr_pseudo_register_write): Use regcache_raw_write_part to read
10257 and write data from/to the VMX register.
10258
cdf99611
MS
102592011-02-14 Michael Snyder <msnyder@vmware.com>
10260
10261 * command.h (enum command_class): New class 'no_set_class', for
10262 "show" commands without a corresponding "set" command.
10263 * value.c (_initialize_values): Use 'no_set_class' for "show values".
10264 * copying.c (_initialize_copying): Ditto for "show copying" and
10265 "show warranty".
10266 * cli/cli-cmds.c (init_cli_cmds): Ditto for "show commands" and
10267 "show version".
10268 * cli/cli-setshow.c (cmd_show_list): Skip "show" commands for
10269 which there is no corresponding "set" command (eg. "show copying").
10270
424447ee
PA
102712011-02-14 Pedro Alves <pedro@codesourcery.com>
10272 Jan Kratochvil <jan.kratochvil@redhat.com>
10273
10274 * exec.c (section_table_available_memory): Change `len' parameter
10275 type to ULONGEST.
10276 * exec.h (section_table_available_memory): Ditto.
10277 * value.h (read_value_memory): Rename the `offset' parameter to
10278 `embedded_offset'.
10279
c0f61f9c 102802011-02-14 Pedro Alves <pedro@codesourcery.com>
e0ccc0c7 10281 Jan Kratochvil <jan.kratochvil@redhat.com>
c0f61f9c
PA
10282
10283 * memrange.c (compare_mem_ranges): Mention sort order in
10284 describing comment.
10285 (normalize_mem_ranges): Add comment. Fix ra->length calculation.
10286 * tracepoint.c (traceframe_available_memory): Extend comment to
10287 mention what happens to RESULT when the target does not support
10288 the query.
10289
6bfc80c7
PA
102902011-02-14 Pedro Alves <pedro@codesourcery.com>
10291 Jan Kratochvil <jan.kratochvil@redhat.com>
10292
10293 * value.c (mark_value_bytes_unavailable): Fix indexing the `bef'
10294 range.
10295
e7303042
PA
102962011-02-14 Pedro Alves <pedro@codesourcery.com>
10297
10298 * value.c (value_bits_valid, value_bits_synthetic_pointer):
10299 No longer handle NULL values.
10300
8af8e3bc
PA
103012011-02-14 Pedro Alves <pedro@codesourcery.com>
10302
10303 * exceptions.h (NOT_AVAILABLE_ERROR): New error.
10304 * value.c: Include "exceptions.h".
10305 (require_available): Throw NOT_AVAILABLE_ERROR instead of a
10306 generic error.
10307 * cp-abi.c: Include gdb_assert.h.
10308 (baseclass_offset): Add `embedded_offset' and `val' parameters.
10309 Assert the method is implemented. Wrap NOT_AVAILABLE_ERROR
10310 errors.
10311 * cp-abi.h (baseclass_offset): Add `embedded_offset' and `val'
10312 parameters. No longer returns -1 on error.
10313 (struct cp_abi_ops) <baseclass_offset>: Add `embedded_offset' and
10314 `val' parameters.
10315 * cp-valprint.c: Include exceptions.h.
10316 (cp_print_value): Handle NOT_AVAILABLE_ERROR errors when fetching
10317 the baseclass_offset. Handle unavailable base classes. Use
10318 val_print_invalid_address.
10319 * p-valprint.c: Include exceptions.h.
10320 (pascal_object_print_value): Handle NOT_AVAILABLE_ERROR errors
10321 when fetching the baseclass_offset. No longer expect
10322 baseclass_offset returning -1. Handle unavailable base classes.
10323 Use val_print_invalid_address.
10324 * valops.c (dynamic_cast_check_1): Rename `contents' parameter to
10325 `valaddr' parameter, and change its type to gdb_byte pointer. Add
10326 `embedded_offset' and `val' parameters. Adjust.
10327 (dynamic_cast_check_2): Rename `contents' parameter to `valaddr'
10328 parameter, and change its type to gdb_byte pointer. Add
10329 `embedded_offset' and `val' parameters. Adjust. No longer expect
10330 baseclass_offset returning -1.
10331 (value_dynamic_cast): Use value_contents_for_printing rather than
10332 value_contents. Adjust.
10333 (search_struct_field): No longer expect baseclass_offset returning
10334 -1.
10335 (search_struct_method): If reading memory from the target is
10336 necessary, wrap it in a new value to pass to baseclass_offset. No
10337 longer expect baseclass_offset returning -1.
10338 (find_method_list): No longer expect baseclass_offset returning
10339 -1. Use value_contents_for_printing rather than value_contents.
10340 * valprint.c (val_print_invalid_address): New function.
10341 * valprint.h (val_print_invalid_address): Declare.
10342 * gdbtypes.c (is_unique_ancestor_worker): New `embedded_offset'
10343 and `val' parameters. No longer expect baseclass_offset returning
10344 -1. Adjust.
10345 * gnu-v2-abi.c: Include "exceptions.h".
10346 (gnuv2_baseclass_offset): Add `embedded_offset' and `val'
10347 parameters. Handle unavailable memory. Recurse through
10348 gnuv2_baseclass_offset directly, rather than through
10349 baseclass_offset. No longer returns -1 on not found, instead
10350 throw an error.
10351 * gnu-v3-abi.c (gnuv3_baseclass_offset): Add `embedded_offset' and
10352 `val' parameters. Adjust.
10353
1b28d0b3
PA
103542011-02-14 Pedro Alves <pedro@codesourcery.com>
10355
10356 * tracepoint.c (memrange_sortmerge): Don't merge ranges that are
10357 almost but not quite adjacent.
10358
ec0a52e1
PA
103592011-02-14 Pedro Alves <pedro@codesourcery.com>
10360
10361 * value.h (value_entirely_available): Declare.
10362 * value.c (value_entirely_available): New function.
10363 * c-valprint.c (c_value_print): Don't try fetching the pointer's
10364 real type if the pointer is unavailable.
10365
24e6bcee
PA
103662011-02-14 Pedro Alves <pedro@codesourcery.com>
10367
10368 * valops.c (value_repeat): Use read_value_memory instead of
10369 read_memory.
10370
39d37385
PA
103712011-02-14 Pedro Alves <pedro@codesourcery.com>
10372
10373 * value.h (value_contents_copy, value_contents_copy_raw): Declare.
10374 * value.c (value_contents_copy_raw, value_contents_copy): New
10375 functions.
10376 (value_primitive_field): Use value_contents_copy_raw instead of
10377 memcpy.
10378 * valops.c (value_fetch_lazy): Use value_contents_copy instead of
10379 memcpy.
10380 (value_array, value_slice): Ditto.
10381 * valarith.c (value_subscripted_rvalue): Use
10382 value_contents_copy_raw instead of memcpy.
10383
a3d34bf4
PA
103842011-02-14 Pedro Alves <pedro@codesourcery.com>
10385
10386 <unavailable> references.
10387
10388 * valops.c (get_value_at): Use value_from_contents_and_address,
10389 avoiding read_memory.
10390
9fc6d940
PA
103912011-02-14 Pedro Alves <pedro@codesourcery.com>
10392
10393 * c-valprint.c (c_val_print): Print a string with unavailable
10394 contents as an array.
10395
5467c6c8
PA
103962011-02-14 Pedro Alves <pedro@codesourcery.com>
10397
10398 * value.h (unpack_bits_as_long): Delete declaration.
10399 (unpack_value_bits_as_long): Declare.
10400 (unpack_value_field_as_long): Declare.
10401 (value_field_bitfield): Declare.
10402 * value.c (unpack_bits_as_long): Rename to...
10403 (unpack_value_bits_as_long_1): ... this. Add embedded_offset and
10404 value parameters. Return the extracted result in a new output
10405 parameter. If the value contents are unavailable, return false,
10406 otherwise return true.
10407 (unpack_value_bits_as_long): New.
10408 (unpack_field_as_long): Rename to...
10409 (unpack_value_field_as_long_1): ... this. Add embedded_offset and
10410 Add embedded_offset and value parameters. Return the extracted
10411 result in a new output parameter. If the value contents are
10412 unavailable, return false, otherwise return true.
10413 (unpack_value_field_as_long): New.
10414 (unpack_field_as_long_1): New.
10415 (unpack_field_as_long): Reimplement as wrapper around
10416 unpack_value_field_as_long_1.
10417 (value_field_bitfield): New function.
10418 * valops.c (value_fetch_lazy): When fetching a bitfield, use
10419 unpack_value_bits_as_long. Mark the value as unavailable, if it
10420 is unavailable.
10421 * jv-valprint.c (java_print_value_fields): Use
10422 value_field_bitfield.
10423 * p-valprint.c (pascal_object_print_value_fields): Use
10424 value_field_bitfield.
10425 * cp-valprint.c (cp_print_value_fields): Use value_field_bitfield.
10426
3158c6ed
PA
104272011-02-14 Pedro Alves <pedro@codesourcery.com>
10428
10429 * value.c (get_internalvar_integer): Also return the int value of
10430 TYPE_CODE_INT INTERNALVAR_VALUE values.
10431 (set_internalvar): Don't special case TYPE_CODE_INT.
10432
9fbdca0d
PA
104332011-02-14 Pedro Alves <pedro@codesourcery.com>
10434
10435 * value.c (struct internalvar) <enum internalvar_kind>: Remove
10436 INTERNALVAR_POINTER.
10437 <pointer>: Delete.
10438 (value_of_internalvar): Remove INTERNALVAR_POINTER handling.
10439 (set_internalvar): Remove special TYPE_CODE_PTR handling.
10440 (preserve_one_internalvar): Remove INTERNALVAR_POINTER handling.
10441
c8c1c22f
PA
104422011-02-14 Pedro Alves <pedro@codesourcery.com>
10443
10444 * value.h (value_available_contents_eq): Declare.
10445 * value.c (find_first_range_overlap): New function.
10446 (value_available_contents_eq): New function.
10447 * valprint.c (val_print_array_elements): Use
10448 value_available_contents_eq.
10449 * ada-valprint.c (val_print_packed_array_elements): Use
10450 value_available_contents_eq.
10451 * jv-valprint.c (java_value_print): Use
10452 value_available_contents_eq.
10453
e6e4e701
PA
104542011-02-14 Pedro Alves <pedro@codesourcery.com>
10455
10456 * target.c (target_read_live_memory): New function.
10457 (memory_xfer_live_readonly_partial): New.
10458 (memory_xfer_partial): If reading from a traceframe, fallback to
10459 reading unavailable read-only memory from read-only regions of
10460 live target memory.
10461 * tracepoint.c (disconnect_tracing): Adjust.
10462 (set_current_traceframe): New, factored out from
10463 set_traceframe_number.
10464 (set_traceframe_number): Reimplement to only change the traceframe
10465 number on the GDB side.
10466 (do_restore_current_traceframe_cleanup): Adjust.
10467 (make_cleanup_restore_traceframe_number): New.
10468 (cur_traceframe_number): New global.
10469 (tfile_open): Set cur_traceframe_number to no traceframe.
10470 (set_tfile_traceframe): New function.
10471 (tfile_trace_find): If looking up a traceframe using any method
10472 other than by number, make sure the current tfile traceframe
10473 matches gdb's current traceframe. Update the current tfile
10474 traceframe if the lookup succeeded.
10475 (tfile_fetch_registers, tfile_xfer_partial)
10476 (tfile_get_trace_state_variable_value): Make sure the remote
10477 traceframe matches gdb's current traceframe.
10478 * remote.c (remote_traceframe_number): New global.
10479 (remote_open_1): Set it to -1.
10480 (set_remote_traceframe): New function.
10481 (remote_fetch_registers, remote_store_registers)
10482 (remote_xfer_memory, remote_xfer_partial)
10483 (remote_get_trace_state_variable_value): Make sure the remote
10484 traceframe matches gdb's current traceframe.
10485 (remote_trace_find): If looking up a traceframe using any method
10486 other than by number, make sure the current remote traceframe
10487 matches gdb's current traceframe. Update the current remote
10488 traceframe if the lookup succeeded.
10489 * infrun.c (fetch_inferior_event): Adjust.
10490 * tracepoint.h (set_current_traceframe): Declare.
10491 (get_traceframe_number, set_traceframe_number): Add describing
10492 comments.
10493
e6ca34fc
PA
104942011-02-14 Pedro Alves <pedro@codesourcery.com>
10495
10496 Mark pieces of values as unavailable if the corresponding memory
10497 is unavailable.
10498
10499 * valops.c: Include tracepoint.h.
10500 (value_fetch_lazy): Use read_value_memory.
10501 (read_value_memory): New.
10502 * value.h (read_value_memory): Declare.
10503 * dwarf2loc.c (read_pieced_value): Use read_value_memory.
10504 * exec.c (section_table_available_memory): New function.
10505 * exec.h (section_table_available_memory): Declare.
10506
2a7498d8
PA
105072011-02-14 Pedro Alves <pedro@codesourcery.com>
10508
10509 * Makefile.in (SFILES): Add memrange.c.
10510 (HFILES_NO_SRCDIR): Add memrange.h.
10511 (COMMON_OBS): Add memrange.o.
10512 * memrange.c: New file.
10513 * memrange.h: New file.
10514 * tracepoint.c: Include memrange.h.
10515 (struct mem_range): Delete.
10516 (mem_range_s): Delete.
10517 (traceframe_available_memory): New function.
10518 * tracepoint.h (traceframe_available_memory): Declare.
10519
b3b9301e
PA
105202011-02-14 Pedro Alves <pedro@codesourcery.com>
10521
10522 * target.h (struct traceframe_info): Forward declare.
10523 (enum target_object): Add TARGET_OBJECT_TRACEFRAME_INFO.
10524 (struct target_ops) <to_traceframe_info>: New field.
10525 (target_traceframe_info): New.
10526 * target.c (update_current_target): Inherit and default
10527 to_traceframe_info.
10528 * remote.c (PACKET_qXfer_traceframe_info): New.
10529 (remote_protocol_features): Register qXfer:traceframe-info:read.
10530 (remote_xfer_partial): Handle TARGET_OBJECT_TRACEFRAME_INFO.
10531 (remote_traceframe_info): New.
10532 (init_remote_ops): Install it.
10533 (_initialize_remote): Install "set/show remote traceframe-info"
10534 commands.
10535 * tracepoint.h (parse_traceframe_info): Declare.
10536 * tracepoint.c (struct mem_range): New.
10537 (mem_range_s): New typedef.
10538 (struct traceframe_info): New.
10539 (traceframe_info): New global.
10540 (free_traceframe_info): New function.
10541 (clear_traceframe_info): New function.
10542 (start_tracing, tfind_1, set_traceframe_number): Clear traceframe
10543 info.
10544 (build_traceframe_info): New function.
10545 (tfile_traceframe_info): New function.
10546 (init_tfile_ops): Install tfile_traceframe_info.
10547 (traceframe_info_start_memory, free_result): New functions.
10548 (memory_attributes, traceframe_info_elements): New globals.
10549 (parse_traceframe_info, get_traceframe_info): New functions.
10550 * features/traceframe-info.dtd: New file.
10551 * Makefile.in (XMLFILES): Add traceframe-info.dtd.
10552
4e07d55f
PA
105532011-02-14 Pedro Alves <pedro@codesourcery.com>
10554
10555 Base support for <unavailable> value contents.
10556
4e07d55f
PA
10557 * value.h (value_bytes_available): Declare.
10558 (mark_value_bytes_unavailable): Declare.
10559 * value.c (struct range): New struct.
10560 (range_s): New typedef.
10561 (ranges_overlap): New function.
10562 (range_lessthan): New function.
10563 (ranges_contain_p): New function.
10564 (struct value) <unavailable>: New field.
10565 (value_bytes_available): New function.
10566 (mark_value_bytes_unavailable): New function.
10567 (require_not_optimized_out): Constify parameter.
10568 (require_available): New function.
10569 (value_contents_all, value_contents): Require all bytes be
10570 available.
10571 (value_free): Free `unavailable'.
10572 (value_copy): Copy `unavailable'.
10573 * valprint.h (val_print_unavailable): Declare.
10574 * valprint.c (valprint_check_validity): Rename `offset' parameter
10575 to `embedded_offset'. If printing a scalar, check whether the
10576 value chunk is available.
10577 (val_print_unavailable): New.
10578 (val_print_scalar_formatted): Check whether the value is
10579 available.
10580 * python/py-prettyprint.c (apply_val_pretty_printer): Refuse
10581 pretty-printing unavailable values.
10582
bc9a5551
JK
105832011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
10584
10585 Fix const/volatile qualifiers of C++ types, PR c++/12328.
10586 * c-typeprint.c (c_type_print_args): Update the function comment. New
10587 variable param_type, initialize it. Remove const/volatile qualifiers
10588 for language_cplus and !show_artificial. Use param_type.
10589
93b55aa1
JK
105902011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
10591
10592 * symtab.c (find_pc_sect_line): New variable objfile, initialize it
10593 from S. Iterate S using ALL_OBJFILE_SYMTABS. Verify BV for each S.
10594 * symtab.h (struct symtab) <next>: Comment extension.
10595
181d9476
YQ
105962011-02-12 Yao Qi <yao@codesourcery.com>
10597
10598 * Makefile.in (CLEANDIRS): Remove duplicated common dir.
10599
b708a5c7
JK
106002011-02-11 Yao Qi <yao@codesourcery.com>
10601
10602 * common/Makefile.in: Add copyright header.
10603
c5187ac6
PA
106042011-02-11 Pedro Alves <pedro@codesourcery.com>
10605
10606 * infrun.c (proceed): Move switching out and in of tfind mode from
10607 here ...
10608 (fetch_inferior_event): ... to here.
10609
4f3e6fb7
YQ
106102011-02-11 Yao Qi <yao@codesourcery.com>
10611
10612 * Makefile.in: Remove signals.o from COMMON_OBS. Link
10613 libcommon.a.
10614 * configure.ac: Add common to sub dir.
10615 * configure: Regenerate.
10616
b708a5c7
JK
106172011-02-11 Yao Qi <yao@codesourcery.com>
10618
10619 Build libcommon.a.
10620
10621 * common/Makefile.in: New.
10622 * common/configure.ac: New.
10623 * common/aclocal.m4: New.
10624 * common/configure: Generate.
10625
2287cc7e
PA
106262011-02-10 Pedro Alves <pedro@codesourcery.com>
10627
10628 * vec.h (VEC_block_remove): Place VEC_ASSERT_INFO on the right
10629 side of the parenthesis.
10630
10631 Merge from GCC:
10632 2010-07-13 Jakub Jelinek <jakub@redhat.com>
fc013618 10633 * vec.h (VEC_block_remove): Fix comment.
2287cc7e 10634
fd62cb89
MS
106352011-02-08 Michael Snyder <msnyder@vmware.com>
10636
10637 * linux-nat.c (linux_nat_filter_event): Fix typo in comment.
10638
56d2815c
JK
106392011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
10640
10641 * i386-tdep.c (i386_process_record): Rename l suffixes to d suffixes
10642 in comments for pcmpgtd, pcmpeqd, psubd, paddd, pcmpgtd, pcmpeqd,
10643 psubd and paddd.
10644
4f7d61a8
JK
106452011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
10646
10647 PR 12361.
10648 * i386-tdep.c (i386_process_record) <0x660f3807>: Fix the comment to
10649 phsubsw.
10650 (i386_process_record) <lddqu>: Fix the opcode to 0xf20ff0.
10651 (i386_process_record) <0x0f3807>: Fix the comment to phsubsw.
10652
54fcddd0
UW
106532011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
10654
10655 * dwarf2read.c (read_subroutine_type): Set special calling
10656 convention flag for functions compiled by IBM XL C for OpenCL.
10657 * ppc-sysv-tdep.c: Include "dwarf2.h"
10658 (ppc_sysv_abi_push_dummy_call): Implement IBM OpenCL vector types
10659 calling convention.
10660 (do_ppc_sysv_return_value): Add FUNC_TYPE argument. Implement
10661 IBM OpenCL vector types calling convention.
10662 (ppc_sysv_abi_return_value): Pass through FUNC_TYPE.
10663 (ppc_sysv_abi_broken_return_value): Likewise.
10664 (ppc64_sysv_abi_push_dummy_call): Implement IBM OpenCL vector
10665 types calling convention.
10666 (ppc64_sysv_abi_return_value): Likewise.
10667 * spu-tdep.c: Include "dwarf2.h"
10668 (spu_return_value): Implement IBM OpenCL vector types calling
10669 convention.
10670
d6dafb7c
UW
106712011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
10672
10673 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Implement
10674 correct ABI for AltiVec vector arguments.
10675
32b72a42
PA
106762011-02-07 Pedro Alves <pedro@codesourcery.com>
10677
10678 * valprint.c (val_print): Extend comment.
10679 * ada-valprint.c (ada_valprint): Rewrite comment deferring
10680 interface explanation to val_print.
10681 (ada_val_print_array): Adjust comment to current interface.
10682 (print_field_values): Adjust comment to current interface.
10683 * c-valprint.c (c_val_print): Rewrite comment deferring interface
10684 explanation to val_print.
10685 * f-valprint.c (f_val_print): Ditto.
10686 * jv-valprint.c (java_val_print): Ditto.
10687 * m2-valprint.c (m2_val_print): Ditto.
10688 * p-valprint.c (pascal_val_print): Ditto.
10689
9998af43
TJB
106902011-02-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
10691
10692 * breakpoint.c (parse_breakpoint_sals): Fix description.
10693
505500db 106942011-02-04 Sami Wagiaalla <swagiaal@redhat.com>
9998af43 10695 Oguz Kayral <oguzkayral@gmail.com>
505500db
SW
10696
10697 * python/py-inferior.c (python_on_normal_stop): New function.
10698 (python_on_resume): New function.
10699 (python_inferior_exit): New function.
10700 (gdbpy_initialize_inferior): Add normal_stop, target_resumed, and
10701 inferior_exit observers.
10702 * python/py-evtregistry.c: New file.
10703 * python/py-threadevent.c : New file.
10704 * python/py-event.c: New file.
10705 * python/py-evts.c: New file.
10706 * python/py-continueevent.c: New file.
10707 * python/py-bpevent.c: New file.
10708 * python/py-signalevent.c: New file.
10709 * python/py-exetiedevent.c: New file.
10710 * python/py-breakpoint.c (gdbpy_breakpoint_from_bpstats): New function.
10711 Move struct breakpoint_object from here...
10712 * python/python-internal.h: ... to here.
10713 * python/py-event.h: New file.
10714 * python/py-events.h: New file.
10715 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpointstopevent.o,
10716 py-continueevent.o, py-event.o, py-eventregistry.o, py-events.o,
10717 py-exitedevent.o, py-signalstopevent.o, and py-stopevent.o.
10718 (SUBDIR_PYTHON_SRCS): Add py-breakpointstopevent.c,
10719 py-continueevent.c, py-event.c, py-eventregistry.c, py-events.c,
10720 py-exitedevent.c, py-signalstopevent.c, and py-stopevent.c.
10721 Add build rules for all the above.
10722
9e0ac564
TT
107232011-02-04 Tom Tromey <tromey@redhat.com>
10724
10725 * dwarf2read.c (dwarf2_section_empty_p): New function.
10726 (dwarf2_read_section): Use dwarf2_section_empty_p.
10727 (dwarf2_section_size): New function.
10728 (dwarf2_get_section_info): Unconditionally read section.
10729 (dwarf2_read_index): Use dwarf2_section_empty_p.
10730 (partial_read_comp_unit_head): Use dwarf2_section_size.
10731 (dwarf2_symbol_mark_computed): Likewise.
10732
eee5b35e
DD
107332011-02-04 David Daney <ddaney@caviumnetworks.com>
10734
10735 * NEWS: Add item for "catch syscall" on mips*-linux* targets.
10736
385203ed
DD
107372011-02-04 David Daney <ddaney@caviumnetworks.com>
10738
10739 * mips-linux-tdep.c: Include xml-syscall.h.
10740 (mips_linux_get_syscall_number): New function.
10741 (mips_linux_init_abi): Add calls to
10742 mips_linux_get_syscall_number() and set_xml_syscall_file_name().
10743 * data-directory/Makefile.in (SYSCALLS_FILES): Add
10744 mips-o32-linux.xml, mips-n32-linux.xml and mips-n64-linux.xml
10745 * syscalls/mips-n32-linux.xml: New file.
10746 * syscalls/mips-n64-linux.xml: New file.
10747 * syscalls/mips-o32-linux.xml: New file.
10748
9277c30c
UW
107492011-02-04 Ulrich Weigand <ulrich.weigand@linaro.org>
10750
10751 * dwarf2read.c (dwarf2_ranges_read): Skip empty range entries.
10752 Complain about inverted range entries.
10753 (dwarf2_record_block_ranges): Likewise.
10754
a3be7890
TJB
107552011-02-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
10756
10757 Fix some typos.
10758 * breakpoint.c (update_watchpoint): Fix name of the
10759 update_global_location_list function.
10760 (print_one_breakpoint): Fix typo.
10761 (_initialize_breakpoint): Remove extra space in hbreak help
10762 string.
10763 * breakpoint.h (struct bp_location) <length>: Fix field
10764 description.
10765
041274d8
PA
107662011-02-04 Pedro Alves <pedro@codesourcery.com>
10767
10768 * regcache.c (registers_changed_ptid): Don't explictly always
10769 clear `current_regcache'. Only clear current_thread_ptid and
10770 current_thread_arch when PTID matches. Only reinit the frame
10771 cache if PTID matches the current inferior_ptid. Move alloca(0)
10772 call to ...
10773 (registers_changed): ... here.
10774
c1c2ab58
UW
107752011-02-03 Ulrich Weigand <ulrich.weigand@linaro.org>
10776
10777 * arm-tdep.c (arm_skip_stack_protector): Accept any symbol that
10778 starts with __stack_chk_guard as stack guard symbol.
10779
9011945e
AB
107802011-02-03 Andrew Burgess <aburgess@broadcom.com>
10781
10782 * disasm.c (compare_lines): Handle the end of sequence markers
10783 within the line table to better support disassembling over
10784 compilation unit boundaries.
10785
e0634ccf
UW
107862011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
10787
10788 * arm-tdep.c (skip_prologue_function): Add GDBARCH and IS_THUMB
10789 arguments. Skip in-prologue calls to glibc __aeabi_read_tp
10790 implementation even if no symbols are available.
10791 (thumb_analyze_prologue): Update call to skip_prologue_function.
10792 (arm_analyze_prologue): Likewise.
10793
0e9e9abd
UW
107942011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
10795
10796 * arm-tdep.c: Include "observer.h".
10797 (arm_prologue_this_id): Use frame PC if get_frame_func returns 0.
10798 (arm_exidx_data_key): New static variable.
10799 (struct arm_exidx_entry, arm_exidx_entry_s): New data types.
10800 (struct arm_exidx_data): Likewise.
10801 (arm_exidx_data_free): New function.
10802 (arm_compare_exidx_entries): Likewise.
10803 (arm_obj_section_from_vma): Likewise.
10804 (arm_exidx_new_objfile): Likewise.
10805 (arm_find_exidx_entry): Likewise.
10806 (arm_exidx_fill_cache): Likewise.
10807 (arm_exidx_unwind_sniffer): Likewise.
10808 (arm_exidx_unwind): New global variable.
10809 (arm_gdbarch_init): Append unwinder arm_exidx_unwind.
10810 (_initialize_arm_tdep): Attach arm_exidx_new_objfile to new_objfile
10811 observer. Register arm_exidx_data_key as objfile data.
10812
2e9e421f
UW
108132011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
10814
10815 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Avoid build break
10816 due to accessing uninitialized variable. Fix indentation.
10817
580688f3
PA
108182011-02-02 Pedro Alves <pedro@codesourcery.com>
10819
10820 * c-valprint.c (c_value_print): When doing virtual base pointer
10821 adjustment, create a new value with adjusted contents rather than
10822 changing the contents of the value being printed (and getting it
10823 wrong).
10824
3d2c1d41
PA
108252011-02-02 Pedro Alves <pedro@codesourcery.com>
10826
10827 * xml-support.c (xml_find_attribute): New.
10828 (xinclude_start_include): Use it.
10829 * xml-support.h (xml_find_attribute): Declare.
10830 * memory-map.c (memory_map_start_memory)
10831 (memory_map_start_property): Use xml_find_attribute.
10832 * osdata.c (osdata_start_osdata, osdata_start_column): Use
10833 xml_find_attribute.
10834 * remote.c (start_thread): Use xml_find_attribute.
10835 * solib-target.c (library_list_start_segment)
10836 (library_list_start_section, library_list_start_library)
10837 (library_list_start_list): Use xml_find_attribute.
10838 * xml-tdesc.c (tdesc_start_target, tdesc_start_feature)
10839 (tdesc_start_union, tdesc_start_struct, tdesc_start_flags)
10840 (tdesc_start_field): Use xml_find_attribute.
10841
0af3e2db
UW
108422011-02-02 Ulrich Weigand <uweigand@de.ibm.com>
10843
10844 * opencl-lang.c (STRINGIFY): Rename to OCL_STRING.
10845 (BUILD_OCL_VTYPES): Update.
10846
c1039e3c
JB
108472011-02-02 Joel Brobecker <brobecker@adacore.com>
10848
10849 * configure.ac: Work around non-GNU sed limitation when computing
10850 python version number.
10851 * configure: Regenerate.
10852
600ea1be
JK
108532011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10854
10855 Fix debug printing of TYPE_INSTANCE.
10856 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: New.
10857 (dump_subexp_body_standard) <TYPE_INSTANCE>: New.
10858
56c12414
JK
108592011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10860
10861 Fix debug printing of BINOP_IN, OP_OBJC_MSGCALL,
10862 OP_F77_UNDETERMINED_ARGLIST, OP_COMPLEX, OP_OBJC_SELECTOR, OP_NAME,
10863 OP_OBJC_NSSTRING, OP_F90_RANGE and OP_DECFLOAT.
10864 * ada-operator.inc: Rename the file to ...
10865 * ada-operator.def: ... here, wrap all the entries by macro OP.
10866 * expprint.c (op_name_standard): Remove all the entries. Include
10867 "std-operator.def" instead.
10868 * expression.h (enum exp_opcode): Include "std-operator.def" and
10869 "ada-operator.def". Move all the entries ...
10870 * std-operator.def: ... here, wrap all the entries by macro OP.
10871
c52b559d
PP
108722011-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
10873
10874 * breakpoint.h (remove_jit_event_breakpoints): New prototype.
10875 * breakpoint.c (remove_jit_event_breakpoints): New function.
10876 * jit.c (jit_descriptor_addr): Delete.
10877 (registering_code): Delete.
10878 (clear_int): Delete.
10879 (jit_inferior_data): New variable.
10880 (struct jit_inferior_data): New type.
10881 (get_jit_inferior_data): New function.
10882 (jit_inferior_data_cleanup): New function.
10883 (jit_read_descriptor): Adjust.
10884 (jit_register_code): Adjust.
10885 (jit_breakpoint_re_set_internal): New function; move code here ...
10886 (jit_inferior_init): ... from here.
10887 (jit_breakpoint_re_set): Adjust.
10888 (jit_reset_inferior_data_and_breakpoints): New function.
10889 (jit_inferior_created_observer): Adjust.
10890 (jit_inferior_exit_hook): Adjust.
10891 (jit_executable_changed_observer): New function.
10892 (jit_event_handler): Adjust.
10893 (_initialize_jit): Adjust.
10894
e839132d
MS
108952011-01-31 Michael Snyder <msnyder@vmware.com>
10896
10897 * m32r-tdep.c (m32r_gdbarch_init): Replace accidentally deleted
10898 line.
10899
47a80e90
TT
109002011-01-31 Tom Tromey <tromey@redhat.com>
10901
10902 PR python/12216:
10903 * python/python.c (execute_gdb_command): Call
10904 prevent_dont_repeat.
10905 * top.c (suppress_dont_repeat): New global.
10906 (dont_repeat): Use it.
10907 (prevent_dont_repeat): New function.
10908 * command.h (prevent_dont_repeat): Declare.
10909
45a43567
TT
109102011-01-31 Tom Tromey <tromey@redhat.com>
10911
10912 * infcmd.c (finish_backward): Use breakpoint_set_silent.
10913 * python/py-breakpoint.c (bppy_set_silent): Use
10914 breakpoint_set_silent.
10915 (bppy_set_thread): Use breakpoint_set_thread.
10916 (bppy_set_task): Use breakpoint_set_task.
10917 * breakpoint.h (breakpoint_set_silent, breakpoint_set_thread)
10918 (breakpoint_set_task): Declare.
10919 (make_breakpoint_silent): Remove.
10920 * breakpoint.c (breakpoint_set_silent): New function.
10921 (breakpoint_set_thread): Likewise.
10922 (breakpoint_set_task): Likewise.
10923 (make_breakpoint_silent): Remove.
10924
09d682a4
TT
109252011-01-31 Tom Tromey <tromey@redhat.com>
10926
10927 * breakpoint.h (user_breakpoint_p): Declare.
10928 * breakpoint.c (user_breakpoint_p): New function.
10929 (breakpoint_1): Use it.
10930 (save_breakpoints): Likewise.
10931
9c4ea6c5
JB
109322011-01-31 Joel Brobecker <brobecker@adacore.com>
10933
10934 * configure.ac: Add handling of Python distribution on Windows.
10935 * python-config.py: If the LIBS, SYSLIBS, LIBPL and/or LINKFORSHARED
10936 sysconfig variables are not defined, then do not use them.
10937 On Windows, if LIBPL is not defined, then use prefix + '/libs'
10938 instead. On Windows, return all paths using forward-slashes
10939 rather than backslashes.
10940
ac534cba
JB
109412011-01-31 Joel Brobecker <brobecker@adacore.com>
10942
10943 * configure.ac: Remove fallback behavior for building
10944 against Python. Remove tweaking of Python include path.
10945 Add PYTHON_CPPFLAGS and PYTHON_LIBS substitution.
10946 (AC_TRY_LIBPYTHON): Adjust program used in linking test.
10947 If link is successful, set PYTHON_CPPFLAGS and PYTHON_LIBS.
10948 Always restore CPPFLAGS and LIBS after linking test.
10949 * configure: Regenerated.
10950 * Makefile.in (INTERNAL_CPPFLAGS): Add @PYTHON_CPPFLAGS@.
10951 (INSTALLED_LIBS, CLIBS): Add @PYTHON_LIBS@.
10952 * python/python-internal.h: Adjust includes of Python .h files.
10953
c2f0d045
JB
109542011-01-31 Joel Brobecker <brobecker@adacore.com>
10955
10956 * tracepoint.c (traceframe_walk_blocks): Add missing i18n markup
10957 in error message.
10958
6b0c4c1f
JB
109592011-01-31 Joel Brobecker <brobecker@adacore.com>
10960
10961 * inflow.c (gdb_has_a_terminal): Fix typo in interactive_mode
10962 value test.
10963
672c9795
YQ
109642011-01-31 Yao Qi <yao@codesourcery.com>
10965
10966 * arm-linux-nat.c: Update calls to regcache_register_status
10967 instead of regcache_valid_p.
10968 * aix-thread.c: Likewise.
10969 * i386gnu-nat.c: Likewise.
10970
80b23b6a
JK
109712011-01-29 Jan Kratochvil <jan.kratochvil@redhat.com>
10972
10973 Fix crash.
10974 * valops.c (compare_parameters): Verify TYPE_NFIELDS before
10975 touching TYPE_FIELD_ARTIFICIAL.
10976
4cd712bd
RE
109772011-01-28 Richard Earnshaw <rearnsha@arm.com>
10978
10979 * MAINTAINERS: Move myself from Responsible Maintainers to Authorized
10980 Committers.
10981
ffd5ec24
PA
109822011-01-28 Pedro Alves <pedro@codesourcery.com>
10983
10984 * tracepoint.c (tfile_xfer_partial): If there's no traceframe
10985 selected, don't try iterating over the traceframe's blocks.
10986 (tfile_has_stack): If there's no traceframe selected, then there's
10987 no stack.
10988 (tfile_has_registers): If there's no traceframe selected, then
10989 there's no registers.
10990
e8c9e0a1
PA
109912011-01-28 Pedro Alves <pedro@codesourcery.com>
10992
10993 * target.c (memory_xfer_partial): No need to restore shadows if we
10994 haven't read anything.
10995
de15c4ab
PA
109962011-01-28 Pedro Alves <pedro@codesourcery.com>
10997
10998 * mips-tdep.c (mips_print_register): Use get_frame_register_value
10999 and val_print_scalar_formatted.
11000
9f41c731
PA
110012011-01-27 Pedro Alves <pedro@codesourcery.com>
11002
11003 * tracepoint.c (tfile_read): New.
11004 (tfile_open): Use it.
11005 (tfile_get_traceframe_address): Use it.
11006 (tfile_trace_find): Use it.
11007 (walk_blocks_callback_func): New typedef.
11008 (match_blocktype): New function.
11009 (traceframe_walk_blocks): New function.
11010 (traceframe_find_block_type): New function.
11011 (tfile_fetch_registers, tfile_xfer_partial)
11012 (tfile_get_trace_state_variable_value): Use
11013 traceframe_find_block_type and tfile_read.
11014
cdefc55d
KB
110152011-01-26 Kevin Buettner <kevinb@redhat.com>
11016
11017 * remote-mips.c: Add internationalization mark ups. Remove
11018 trailing \n from already marked up strings.
11019
a81766d8
TT
110202011-01-26 Tom Tromey <tromey@redhat.com>
11021
11022 * python/py-prettyprint.c (print_string_repr): Clear
11023 'addressprint' option when calling val_print_string.
11024 (print_children): Handle Val_pretty_default. Clear 'addressprint'
11025 option when calling val_print_string.
11026
74aedc46
TT
110272011-01-26 Tom Tromey <tromey@redhat.com>
11028
11029 * python/python.c (gdbpy_solib_name): Use gdb_py_longest and
11030 GDB_PY_LL_ARG.
11031 * python/python-internal.h (GDB_PY_LL_ARG, GDB_PY_LLU_ARG): New
11032 macros.
11033 (gdb_py_longest, gdb_py_ulongest): New typedefs.
11034 (gdb_py_long_from_longest, gdb_py_long_from_ulongest)
11035 (gdb_py_long_as_ulongest): New defines.
11036 (gdb_py_object_from_longest, gdb_py_object_from_ulongest)
11037 (gdb_py_int_as_long): Declare.
11038 * python/py-value.c (valpy_lazy_string): Use gdb_py_longest,
11039 GDB_PY_LL_ARG, gdb_py_object_from_longest.
11040 (valpy_long): Add comment.
11041 * python/py-utils.c (get_addr_from_python): Use
11042 gdb_py_long_as_ulongest. Handle overflow properly.
11043 (gdb_py_object_from_longest): New function.
11044 (gdb_py_object_from_ulongest): Likewise.
11045 (gdb_py_int_as_long): Likewise.
11046 * python/py-type.c (typy_array): Use gdb_py_int_as_long.
11047 * python/py-symtab.c (salpy_get_pc): Use
11048 gdb_py_long_from_ulongest.
11049 (salpy_get_line): Use PyInt_FromLong.
11050 * python/py-param.c (set_parameter_value): Use
11051 gdb_py_int_as_long.
11052 * python/py-lazy-string.c (stpy_get_address): Use
11053 gdb_py_long_from_ulongest.
11054 * python/py-frame.c (frapy_pc): Use gdb_py_long_from_ulongest.
11055 * python/py-cmd.c (cmdpy_completer): Use gdb_py_int_as_long.
11056 * python/py-breakpoint.c (bppy_set_thread): Use
11057 gdb_py_int_as_long.
11058 (bppy_set_task): Likewise.
11059 (bppy_set_ignore_count): Likewise.
11060 (bppy_set_hit_count): Likewise.
11061 * python/py-block.c (blpy_get_start): Use
11062 gdb_py_object_from_ulongest.
11063 (blpy_get_end): Likewise.
11064 (gdbpy_block_for_pc): Use gdb_py_ulongest and GDB_PY_LLU_ARG.
11065
e4f6d2ec
TJB
110662011-01-25 Mathieu Lacage <mathieu.lacage@inria.fr>
11067
11068 PR/symtab 11766:
11069 * gdb/objfiles.h (struct objfile) <addr_low>: New field.
11070 * gdb/solib.c (solib_read_symbols): Check for addr_low in
11071 equality test for objfile, initialize addr_low if needed.
11072
b30aa278
PA
110732011-01-25 Pedro Alves <pedro@codesourcery.com>
11074
11075 * tui/tui-regs.c (tui_register_format): Remove dead code.
11076
ab2188aa
PA
110772011-01-25 Pedro Alves <pedro@codesourcery.com>
11078
11079 * printcmd.c (print_formatted): Use val_print_scalar_formatted
11080 instead of print_scalar_formatted.
11081 (print_scalar_formatted): Don't handle 's' format strings here,
11082 and add an assertion that we never see such format here.
11083 * valprint.h (val_print_scalar_formatted): Declare.
11084 * valprint.c (val_print_scalar_formatted): New.
11085 * c-valprint.c (c_val_print): Use val_print_scalar_formatted
11086 instead of print_scalar_formatted.
11087 * jv-valprint.c (java_val_print): Ditto.
11088 * p-valprint.c (pascal_val_print): Ditto.
11089 * ada-valprint.c (ada_val_print_1): Ditto.
11090 * f-valprint.c (f_val_print): Ditto.
11091 * infcmd.c (registers_info): Ditto.
11092 * m2-valprint.c (m2_val_print): Ditto.
11093
66d61a4c
PA
110942011-01-25 Pedro Alves <pedro@codesourcery.com>
11095
11096 * m2-valprint.c (print_unbounded_array): Pass
11097 value_contents_for_printing rather than value_contents, to
11098 m2_print_array_contents. Also pass in the value.
11099
831adc1f
JK
111002011-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
11101
11102 * dwarf2read.c (dwarf2_read_index, write_psymtabs_to_index)
11103 (save_gdb_index_command): Switch to .gdb_index version 4.
11104
20622269
PA
111052011-01-25 Pedro Alves <pedro@codesourcery.com>
11106
11107 * mi/mi-main.c (get_register): Use get_frame_register_value rather
11108 than frame_register, and always pass a valid value to val_print.
11109
585fdaa1
PA
111102011-01-25 Pedro Alves <pedro@codesourcery.com>
11111
11112 Centralize printing "<optimized out>".
11113
11114 * valprint.h (val_print_optimized_out): Declare.
11115 * cp-valprint.c (cp_print_value_fields): Use
11116 val_print_optimized_out.
11117 * jv-valprint.c (java_print_value_fields): Ditto.
11118 * p-valprint.c (pascal_object_print_value_fields): Ditto.
11119 * printcmd.c (print_formatted): Ditto.
11120 * valprint.c (valprint_check_validity): Ditto.
11121 (value_check_printable): Ditto.
11122 (val_print_optimized_out): New.
11123
29ec5263
PA
111242011-01-25 Pedro Alves <pedro@codesourcery.com>
11125
11126 * infcmd.c (default_print_registers_info): Allocate values so to
11127 never pass a NULL value to val_print.
11128
de4127a3
PA
111292011-01-25 Pedro Alves <pedro@codesourcery.com>
11130
11131 * cp-valprint.c (cp_print_value): Treat the 'skip' local as
11132 boolean. Make sure to always pass a value that matches the
11133 contents buffer to callees. Preserve `address' for following
11134 iterations.
11135 * value.c (value_contents_for_printing_const): New.
11136 (value_address): Constify value argument.
11137 * value.h (value_contents_for_printing_const): Declare.
11138 (value_address): Constify value argument.
11139
ee99023e
PA
111402011-01-25 Pedro Alves <pedro@codesourcery.com>
11141
11142 * regcache.c (struct regcache_descr): Rename
11143 sizeof_raw_register_valid_p field to sizeof_raw_register_status,
11144 and sizeof_cooked_register_valid_p to
11145 sizeof_cooked_register_status.
11146 (init_regcache_descr): Adjust.
11147 (struct regcache): Rename register_valid_p field to
11148 register_status.
11149 (regcache_xmalloc_1, regcache_xfree, regcache_save)
11150 (do_cooked_read): Adjust.
11151 (regcache_valid_p): Rename to ...
11152 (regcache_register_status): ... this. Adjust.
11153 (regcache_invalidate): Adjust.
11154 (regcache_raw_read, regcache_cooked_read, regcache_raw_write):
11155 Adjust.
11156 (regcache_raw_supply): Adjust. If buf i NULL, mark the register
11157 as unavailable, not valid.
11158 (regcache_dump): Adjust.
11159 * regcache.h (enum register_status): New.
11160 (regcache_register_status): Declare.
11161 (regcache_invalidate): Delete declaration.
11162 * corelow.c (get_core_registers): Adjust.
11163 * tracepoint.c (tfile_fetch_registers): Adjust.
11164 * trad-frame.c (REG_VALUE): Rename to ...
11165 (TF_REG_VALUE): ... this.
11166 (REG_UNKNOWN): Rename to ...
11167 (TF_REG_UNKNOWN): ... this.
11168 (trad_frame_set_value, trad_frame_set_unknown): Adjust.
11169 * mi/mi-main.c (register_changed_p): Adjust.
11170
99e42fd8
PA
111712011-01-25 Pedro Alves <pedro@codesourcery.com>
11172
11173 * regcache.c (struct regcache_descr): Remove outdated comment.
11174 (init_regcache_descr): Remove sizeof_raw_register_valid_p
11175 overallocate hack.
11176 (regcache_xmalloc): Rename to ...
11177 (regcache_xmalloc_1): ... this. Add `readonly_p' parameter.
11178 Allocate the regcache type accordingly.
11179 (regcache_xmalloc): New as wrapper around regcache_xmalloc_1.
11180 (regcache_xfree): Asser the source is also readonly. Copy sizeof
11181 cooked registers, not raw.
11182 (regcache_dup_no_passthrough): Delete.
11183 (get_thread_arch_regcache): Use regcache_xmalloc_1.
11184 * h8300-tdep.c (h8300_push_dummy_call): Tweak comment to not
11185 mention obsolete write_register_bytes.
11186 * regcache.h (regcache_dup_no_passthrough): Delete declaration.
11187
f7605bc2
PA
111882011-01-25 Pedro Alves <pedro@codesourcery.com>
11189
11190 Stop remote_read_bytes from handling partial reads itself.
11191
11192 * remote-fileio.c: Include target.h.
11193 (remote_fileio_write_bytes): Delete.
11194 (remote_fileio_func_open, remote_fileio_func_write)
11195 (remote_fileio_func_rename, remote_fileio_func_unlink): Use
11196 target_read_memory.
11197 (remote_fileio_func_stat): Use target_read_memory and
11198 target_write_memory.
11199 (remote_fileio_func_gettimeofday): Use target_write_memory.
11200 (remote_fileio_func_system): Use target_read_memory.
11201 * remote.c (remote_write_bytes): Make it static.
11202 (remote_read_bytes): Don't handle partial reads here.
11203 * remote.h (remote_read_bytes): Delete declaration.
11204
efc0eabd
PA
112052011-01-25 Pedro Alves <pedro@codesourcery.com>
11206
11207 Simplify XML parsing a bit.
11208
11209 * xml-support.h (gdb_xml_parse_quick): Declare.
11210 * xml-support.c (gdb_xml_create_parser_and_cleanup_1): Renamed
11211 from gdb_xml_create_parser_and_cleanup, and added `old_chain'
11212 parameter.
11213 (gdb_xml_create_parser_and_cleanup): Reimplement on top of
11214 gdb_xml_create_parser_and_cleanup_1.
11215 (gdb_xml_parse_quick): New.
11216 * memory-map.c (parse_memory_map): Use gdb_xml_parse_quick.
11217 * osdata.c (osdata_parse): Ditto.
11218 * remote.c (remote_threads_info): Ditto.
11219 * solib-target.c (solib_target_parse_libraries): Ditto.
11220 * xml-syscall.c (syscall_parse_xml): Ditto.
11221 * xml-tdesc.c (tdesc_parse_xml): Ditto.
11222
314d366a
KB
112232011-01-24 Kevin Buettner <kevinb@redhat.com>
11224
11225 * configure.tgt (mips*-*-elf): New; just like mips*-*-*, but
11226 with remote-mips.o added to gdb_target_obs.
11227 * Makefile.in (ALL_TARGET_OBS): Add remote-mips.o.
11228
a491d753
PA
112292011-01-24 Pedro Alves <pedro@codesourcery.com>
11230
11231 * ada-valprint.c (val_print_packed_array_elements): Pass the
11232 correct struct value to val_print.
11233 (ada_val_print_1): Ditto.
11234
490f124f
PA
112352011-01-24 Pedro Alves <pedro@codesourcery.com>
11236
11237 Don't lose embedded_offset in printing routines throughout.
11238
11239 * valprint.h (val_print_array_elements): Change prototype.
11240 * valprint.c (val_print_array_elements): Add `embedded_offset'
11241 parameter, and adjust to pass it down to val_print, while passing
11242 `valaddr' or `address' unmodified. Take embedded_offset into
11243 account when checking repetitions.
11244 * c-valprint.c (c_val_print): Pass embedded_offset to
11245 val_print_array_elements instead of adjusting `valaddr' and
11246 `address'.
11247 * m2-valprint.c (m2_print_array_contents, m2_val_print): Pass
11248 embedded_offset to val_print_array_elements instead of adjusting
11249 `valaddr'.
11250 * p-lang.h (pascal_object_print_value_fields): Adjust prototype.
11251 * p-valprint.c (pascal_val_print): Pass embedded_offset to
11252 val_print_array_elements and pascal_object_print_value_fields
11253 instead of adjusting `valaddr'.
11254 (pascal_object_print_value_fields): Add `offset' parameter, and
11255 adjust to use it.
11256 (pascal_object_print_value): Add `offset' parameter, and adjust to
11257 use it.
11258 (pascal_object_print_static_field): Use
11259 value_contents_for_printing/value_embedded_offset, rather than
11260 value_contents.
11261 * ada-valprint.c (val_print_packed_array_elements): Add `offset'
11262 parameter, and adjust to use it. Use
11263 value_contents_for_printing/value_embedded_offset, rather than
11264 value_contents.
11265 (ada_val_print): Rename `valaddr0' parameter to `valaddr'.
11266 (ada_val_print_array): Add `offset' parameter, and adjust to use
11267 it.
11268 (ada_val_print_1): Rename `valaddr0' parameter to `valaddr', and
11269 `embedded_offset' to `offset'. Don't re-adjust `valaddr'.
11270 Instead work with offsets. Use
11271 value_contents_for_printing/value_embedded_offset, rather than
11272 value_contents. Change `defer_val_int' local type to CORE_ADDR,
11273 and use value_from_pointer to extract a target pointer, rather
11274 than value_from_longest.
11275 (print_variant_part): Add `offset' parameter. Replace
11276 `outer_valaddr' parameter by a new `outer_offset' parameter.
11277 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
11278 (ada_value_print): Use
11279 value_contents_for_printing/value_embedded_offset, rather than
11280 value_contents.
11281 (print_record): Add `offset' parameter, and adjust to pass it
11282 down.
11283 (print_field_values): Add `offset' parameter. Replace
11284 `outer_valaddr' parameter by a new `outer_offset' parameter.
11285 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
11286 Use value_contents_for_printing/value_embedded_offset, rather than
11287 value_contents.
11288 * d-valprint.c (dynamic_array_type): Use
11289 value_contents_for_printing/value_embedded_offset, rather than
11290 value_contents.
11291 * jv-valprint.c (java_print_value_fields): Add `offset' parameter.
11292 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
11293 (java_print_value_fields): Take `offset' into account. Don't
11294 re-adjust `valaddr'. Instead pass down adjusted offsets.
11295 (java_val_print): Take `embedded_offset' into account. Pass it to
11296 java_print_value_fields.
11297 * f-valprint.c (f77_print_array_1): Add `embedded_offset'
11298 parameter. Don't re-adjust `valaddr' or `address'. Instead pass
11299 down adjusted offsets.
11300 (f77_print_array): Add `embedded_offset' parameter. Pass it down.
11301 (f_val_print): Take `embedded_offset' into account.
11302
7bfc9434
JB
113032011-01-21 Joel Brobecker <brobecker@adacore.com>
11304
11305 * inflow.c: Include "gdbcmd.h".
11306 (interactive_mode): New static global, moved here from top.c.
11307 (show_interactive_mode): New function, moved here from top.c.
11308 use gdb_has_a_terminal instead of input_from_terminal_p to
11309 determine the current mode.
11310 (gdb_has_a_terminal): Add handling of the "iteractive-mode"
11311 setting.
11312 (_initialize_inflow): Add the "set/show interactive-mode"
11313 commands. Moved here from top.c, after having adjusted slightly
11314 the help text.
11315 * top.c (interactive_mode, show_interactive_mode): Delete, moved
11316 to inflow.c.
11317 (input_from_terminal_p): Remove handling of "interactive-mode"
11318 setting, moved to infow.c.
11319 (init_main): Remove creation of the "set/show interactive-mode"
11320 commands, moved to inflow.c.
11321
44603653
JB
113222011-01-19 Joel Brobecker <brobecker@adacore.com>
11323
11324 * NEWS: Add entry for native ia64-hpux support.
11325
4694da01
TT
113262011-01-19 Tom Tromey <tromey@redhat.com>
11327
11328 PR mi/8618:
11329 * thread.c (free_thread): Free 'name'.
11330 (print_thread_info): Emit thread name. Change CLI output.
11331 (thread_name_command): New function.
11332 (do_captured_thread_select): Emit newline.
11333 (_initialize_thread): Register 'thread name' command.
11334 * target.h (struct target_ops) <to_thread_name>: New field.
11335 (target_thread_name): New macro.
11336 * target.c (update_current_target): Handle to_thread_name.
11337 * python/py-infthread.c (thpy_get_name): New function.
11338 (thpy_set_name): Likewise.
11339 (thread_object_getset): Add "name".
11340 * linux-nat.c (linux_nat_thread_name): New function.
11341 (linux_nat_add_target): Set to_thread_name.
11342 * gdbthread.h (struct thread_info) <name>: New field.
11343
10d44370
JB
113442011-01-18 Joel Brobecker <brobecker@adacore.com>
11345
11346 * ada-valprint.c (ada_print_scalar): Remove unsigned char downcast.
11347 (ada_val_print_1): Likewise.
11348
e3acb115
JB
113492011-01-18 Joel Brobecker <brobecker@adacore.com>
11350
11351 * rs6000-tdep.c (rs6000_skip_prologue): Make sure that the prologue
11352 upper limit address is not greater than the function end address
11353 when the upper limit could not be computed using the debugging
11354 info.
11355
dc92e161
TT
113562011-01-17 Tom Tromey <tromey@redhat.com>
11357
11358 * cli/cli-cmds.c (apropos_command): Free the compiled regex. Use
11359 get_regcomp_error.
11360 * utils.c: Include gdb_regex.h.
11361 (do_regfree_cleanup): New function.
11362 (make_regfree_cleanup): Likewise.
11363 (get_regcomp_error): Likewise.
11364 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Declare.
11365
f55af66d
TT
113662011-01-17 Tom Tromey <tromey@redhat.com>
11367
11368 * cli/cli-cmds.c (apropos_command): Fix formatting. Don't call
11369 re_compile_fastmap.
11370
a5a44b53
PM
113712011-01-17 Pierre Muller <muller@ics.u-strasbg.fr>
11372
11373 * p-exp.y (intvar): New static variable, used to set CURRENT_TYPE
11374 for internal variables.
11375 (last_was_structop): New static variable.
11376 (COMPLETE): New token.
11377 (field_exp): New rule to group all '.' suffix handling.
11378 Add mark_struct_expression calls when approriate to be able
11379 to correctly find fields for completion.
11380 (yylex): Adapt to handle field completion and set INTVAR when
11381 required.
11382
2c291032
YQ
113832011-01-14 Yao Qi <yao@codesourcery.com>
11384
11385 * arm-tdep.c (arm_register_reggroup_p): FPS register is in
11386 save_reggroup, restore_reggroup and all_reggroup.
11387
447b483c
JB
113882011-01-14 Joel Brobecker <brobecker@adacore.com>
11389
11390 * ada-valprint. (ada_printchar): Use the correct type length
11391 in call to ada_emit_char.
11392 * c-valprint.c (c_val_print): Remove cast in call to LA_PRINT_CHAR.
11393
7b64a93b
PM
113942011-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
11395
11396 * solib-som.h (hpux_major_release): Declare variable here.
11397 * solib-som.c: Remove <sys/utsname.h> header.
11398 (DEFAULT_HPUX_MAJOR_RELEASE): New macro.
11399 (hpux_major_release): Make global, change default value to
11400 DEFAULT_HPUX_MAJOR_RELEASE.
f2eb0bc8 11401 (get_hpux_major_release): Simply return HPUX_MAJOR_RELEASE.
7b64a93b
PM
11402 * hppa-hpux-nat.c: Add <sys/utsname.h> include.
11403 Add "solib-som.h" header.
11404 (set_hpux_major_release): New function.
11405 (_initialize_hppa_hpux_nat): Call set_hpux_major_release.
11406
4e18c053
MF
114072011-01-14 Mike Frysinger <vapier@gentoo.org>
11408
11409 * configure.tgt (*-*-uclinux*): Match more Linux os targets
11410
a9df6b22
JB
114112011-01-14 Joel Brobecker <brobecker@adacore.com>
11412
11413 * ia64-hpux-nat.c (ia64_hpux_fetch_register): Remove trailing
11414 new-line at end of warning message.
11415 (ia64_hpux_store_register): Remove trailing new-line at end of
11416 error message.
11417 * ia64-hpux-tdep.c: Rephrase comment.
11418 * solib-ia64-hpux.c (struct dld_info): Change type of field
11419 dld_flags from "long long" to ULONGEST.
11420
ecb956dd
PA
114212011-01-14 Pedro Alves <pedro@codesourcery.com>
11422
11423 * target.h (deprecated_child_ops): Delete declaration.
11424 * target.c (deprecated_child_ops): Delete definition.
11425
76adfcae
PA
114262011-01-14 Pedro Alves <pedro@codesourcery.com>
11427
11428 * Makefile.in (hpux-thread.o): Delete rule.
11429 * configure.ac: Don't check for HPUX DCE threads support.
11430 * configure, config.in: Regenerate.
11431 * hppa-hpux-nat.c (child_suppress_run): Delete.
11432 (hppa_hpux_child_can_run): Delete.
11433 (_initialize_hppa_hpux_nat): Don't override to_can_run.
11434 * hpux-thread.c: Delete.
11435
042e866e
JB
114362011-01-13 Joel Brobecker <brobecker@adacore.com>
11437
11438 * hpux-thread.c (hpux_pid_to_str): Delete.
11439
4ffa5a33
JB
114402011-01-13 Joel Brobecker <brobecker@adacore.com>
11441
11442 * ada-valprint.c (ada_emit_char): Remove strange code.
11443 Check that c is <= UCHAR_MAX before passing it to isascii.
11444 (char_at): Do not assume that TYPE_LEN is either 1 or 2.
11445
de8fa76c
JB
114462011-01-13 Joel Brobecker <brobecker@adacore.com>
11447
11448 * top.c (input_from_terminal_p): Restrict the use of interactive_mode
11449 to the case where instream is stdin.
11450
c4de7027
JB
114512011-01-13 Joel Brobecker <brobecker@adacore.com>
11452
11453 * ia64-tdep.h (struct regcache): Forward declare.
11454 (struct ia64_infcall_ops): New struct type.
11455 (struct gdbarch_tdep): New fields "find_global_pointer_from_solib"
11456 and "infcall_ops".
11457 * ia64-tdep.c (ia64_find_global_pointer_from_dynamic_section):
11458 Renames ia64_find_global_pointer.
11459 (ia64_find_global_pointer, ia64_allocate_new_rse_frame)
11460 (ia64_store_argument_in_slot, ia64_set_function_addr: New function.
11461 (ia64_push_dummy_call): Adjust to use the new tdep ia64_infocall_ops
11462 methods.
11463 (ia64_infcall_ops): New static global constant.
11464 (ia64_gdbarch_init): Set tdep->infcall_ops.
11465 * ia64-hpux-nat.c (ia64_hpux_xfer_solib_got): New function.
11466 (ia64_hpux_xfer_partial): Add TARGET_OBJECT_HPUX_SOLIB_GOT handing.
11467 * ia64-hpux-tdep.c: Include "regcache.h", "gdbcore.h" and "inferior.h".
11468 (ia64_hpux_dummy_code): New static global constant.
11469 (ia64_hpux_push_dummy_code, ia64_hpux_allocate_new_rse_frame)
11470 (ia64_hpux_store_argument_in_slot, ia64_hpux_set_function_addr)
11471 (ia64_hpux_dummy_id, ia64_hpux_find_global_pointer_from_solib):
11472 New function.
11473 (ia64_hpux_infcall_ops): New static global constant.
11474 (ia64_hpux_init_abi): Install gdbarch and tdep methods needed
11475 for inferior function calls to work properly on ia64-hpux.
11476
77ca787b
JB
114772011-01-13 Joel Brobecker <brobecker@adacore.com>
11478
11479 * target.h (enum target_object): Add TARGET_OBJECT_HPUX_UREGS.
11480 * ia64-tdep.h (struct frame_info): forward declaration.
11481 (struct gdbarch_tdep): Add field size_of_register_frame.
11482 * ia64-tdep.c (ia64_access_reg): Use tdep->size_of_register_frame
11483 to determine the size of the register frame.
11484 (ia64_size_of_register_frame): New function.
11485 (ia64_gdbarch_init): Set tdep->size_of_register_frame.
11486 * ia64-hpux-tdep.c: Include "target.h" and "frame.h".
11487 (IA64_HPUX_UREG_REASON): New macro.
11488 (ia64_hpux_stopped_in_syscall, ia64_hpux_size_of_register_frame):
11489 New functions.
11490 (ia64_hpux_init_abi): Set tdep->size_of_register_frame.
11491 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): New function.
11492 (ia64_hpux_xfer_partial): Add handling of TARGET_OBJECT_HPUX_UREGS
11493 objects.
11494
92c9a463
JB
114952011-01-13 Joel Brobecker <brobecker@adacore.com>
11496
11497 Add support for ia64-hpux.
11498 * config/ia64/hpux.mh, ia64-hpux-nat.c, ia64-hpux-tdep.c,
11499 ia64-hpux-tdep.h, solib-ia64-hpux.c, solib-ia64-hpux.h: New files.
11500
11501 * configure.host: Add handling for ia64-hpux hosts. Add associated
11502 floatformats.
11503 * configure.tgt: Add handling for ia64-hpux targets.
11504 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-hpux-tdep.o.
11505 (HFILES_NO_SRCDIR): Add ia64-hpux-tdep.h.
11506 (ALLDEPFILES): Add ia64-hpux-nat.c ia64-hpux-tdep.c.
11507
f688d93f
JB
115082011-01-13 Joel Brobecker <brobecker@adacore.com>
11509
11510 [ttrace] Compute thread list immediately after attach.
11511 * inf_ttrace_attach (inf_ttrace_create_threads_after_attach):
11512 New subprogram.
11513 (inf_ttrace_attach): Use it.
11514
1b89e62f
JB
115152011-01-13 Joel Brobecker <brobecker@adacore.com>
11516
11517 * libunwind-frame.c (libunwind_frame_cache): Do not return NULL
11518 if we could not determine the frame's function address. Instead,
11519 use the frame's PC, and then continue.
11520
3e5e6e2a
JB
115212011-01-13 Joel Brobecker <brobecker@adacore.com>
11522
11523 * libunwind-frame.c (__LITTLE_ENDIAN, __BIG_ENDIAN): Define if
11524 not already defined.
11525
825d6d8a
JB
115262011-01-13 Joel Brobecker <brobecker@adacore.com>
11527
11528 * ia64-tdep.c (ia64_struct_type_p): New function.
11529 (ia64_extract_return_value): Handle integral values that are
11530 less than 8 bytes long.
11531 (ia64_push_dummy_call): Likewise.
11532
7458e667
JB
115332011-01-13 Joel Brobecker <brobecker@adacore.com>
11534
11535 * ia64-tdep.c (floatformat_ia64_ext_little): Renames
11536 floatformat_ia64_ext.
11537 (floatformat_ia64_ext_big): New static const.
11538 (floatformats_ia64_ext): Set first entry to &floatformat_ia64_ext_big.
11539
1b05df00
TT
115402011-01-12 Tom Tromey <tromey@redhat.com>
11541
11542 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Fix error
11543 messages.
11544 * mi/mi-main.c (mi_cmd_thread_select): Fix error messages.
11545 (mi_cmd_thread_list_ids): Likewise.
11546 (mi_cmd_data_list_changed_registers): Likewise.
11547 (mi_cmd_data_list_register_values): Likewise.
11548 (mi_cmd_data_write_register_values): Likewise.
11549 (mi_cmd_data_evaluate_expression): Likewise.
11550 (mi_cmd_data_read_memory): Likewise.
11551 (mi_cmd_data_read_memory_bytes): Likewise.
11552 (mi_cmd_data_write_memory): Likewise.
11553 (mi_cmd_enable_timings): Likewise.
11554 * mi/mi-interp.c (mi_cmd_interpreter_exec): Fix error messages.
11555 * mi/mi-cmd-var.c (mi_cmd_var_create): Fix error messages.
11556 (mi_cmd_var_delete): Likewise.
11557 (mi_cmd_var_set_format): Likewise.
11558 (mi_cmd_var_show_format): Likewise.
11559 (mi_cmd_var_info_num_children): Likewise.
11560 (mi_cmd_var_list_children): Likewise.
11561 (mi_cmd_var_info_type): Likewise.
11562 (mi_cmd_var_info_expression): Likewise.
11563 (mi_cmd_var_show_attributes): Likewise.
11564 (mi_cmd_var_assign): Likewise.
11565 (mi_cmd_var_update): Likewise.
11566 (mi_cmd_enable_pretty_printing): Likewise.
11567 (mi_cmd_var_set_update_range): Likewise.
11568 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Fix error
11569 messages.
11570 (mi_cmd_target_file_put): Likewise.
11571 (mi_cmd_target_file_delete): Likewise.
11572 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Fix error
11573 messages.
11574 (mi_cmd_stack_info_depth): Likewise.
11575 (mi_cmd_stack_list_locals): Likewise.
11576 (mi_cmd_stack_list_args): Likewise.
11577 (mi_cmd_stack_select_frame): Likewise.
11578 (mi_cmd_stack_select_frame): Likewise.
11579 (mi_cmd_stack_info_frame): Likewise.
11580 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Fix error
11581 messages.
11582 (mi_cmd_file_list_exec_source_files): Likewise.
11583 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Fix error messages.
11584 (mi_cmd_env_cd): Likewise.
11585 (mi_cmd_env_path): Likewise.
11586 (mi_cmd_env_dir): Likewise.
11587 (mi_cmd_inferior_tty_show): Likewise.
11588 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Fix error messages.
11589 * mi/mi-cmd-break.c (mi_cmd_break_insert): Fix error messages.
11590 (mi_cmd_break_watch): Likewise.
11591
ad422571
TJB
115922011-01-12 Thiago Jung Bauermann <bauerman@br.ibm.com>
11593
11594 * ppc-linux-nat.c (booke_cmp_hw_point): Fix whitespace.
11595 (ppc_linux_insert_hw_breakpoint): Likewise.
11596 (ppc_linux_remove_hw_breakpoint): Likewise.
11597 (ppc_linux_insert_watchpoint): Likewise.
11598
c2ff108b
JK
115992011-01-12 Andrew Burgess <aburgess@broadcom.com>
11600 Jan Kratochvil <jan.kratochvil@redhat.com>
11601
11602 PR fortran/11104 and DWARF unbound arrays detection.
11603 * dwarf2read.c (read_subrange_type): Set zero length on unspecified
11604 upper bound. Set TYPE_HIGH_BOUND_UNDEFINED if not language_ada on
11605 unspecified upper bound.
11606 * eval.c (evaluate_subexp_standard) <multi_f77_subscript>: Remove
11607 variables array_size_array, tmp_type and offset_item. New variable
11608 array. Remove call to f77_get_upperbound. New variables array_type
11609 and index. Call value_subscripted_rvalue for each dimenasion. Remove
11610 the final call to deprecated_set_value_type.
11611
41e8491f
JK
116122011-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
11613
11614 Make value allocations more lazy.
11615 * ada-lang.c (coerce_unspec_val_to_type): Use allocate_value_lazy
11616 instead of allocate_value and set_value_lazy when possible.
f2eb0bc8 11617 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use allocate_value_lazy
41e8491f
JK
11618 instead of allocate_value and set_value_lazy.
11619 * findvar.c (value_of_register_lazy): Likewise.
11620 (read_var_value): Remove V preallocation, call just check_typedef in
f2eb0bc8 11621 advance. Move allocate_value to LOC_CONST, LOC_LABEL,
41e8491f
JK
11622 LOC_CONST_BYTES. Use allocate_value_lazy in LOC_STATIC, LOC_ARG,
11623 LOC_REF_ARG, LOC_LOCAL, LOC_BLOCK. Set ADDR instead of
11624 set_value_address and break in LOC_BLOCK. Use allocate_value_lazy and
11625 remove lval_memory set in LOC_REGPARM_ADDR. Use allocate_value_lazy
11626 in LOC_UNRESOLVED and LOC_OPTIMIZED_OUT. Add setting lval_memory at
11627 the end, remove set_value_lazy there.
11628 * valarith.c (value_subscripted_rvalue): Use allocate_value_lazy
11629 instead of allocate_value and set_value_lazy when possible.
11630 * valops.c (value_fetch_lazy): Do nop for value_optimized_out VAL.
11631 * value.c (allocate_computed_value): Use allocate_value_lazy instead
11632 of allocate_value and set_value_lazy.
11633 (value_from_contents_and_address): Use allocate_value_lazy instead of
11634 allocate_value and set_value_lazy when possible.
11635
b716877b
AB
116362011-01-12 Andrew Burgess <aburgess@broadcom.com>
11637
11638 * disasm.c (dump_insns): Support dumping opcodes for MI.
11639 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Allow mode to control
11640 dumping of instruction opcodes.
11641
d5ae309f
JB
116422011-01-09 Robert Millan <rmh@gnu.org> (tiny patch)
11643
11644 * configure.tgt: Detect GNU/kFreeBSD and set `gdb_osabi'
11645 appropiately.
11646
98871305
TT
116472011-01-11 Tom Tromey <tromey@redhat.com>
11648
11649 * thread.c (do_captured_thread_select): Emit newline before
11650 printing frame.
11651
c378eb4e
MS
116522011-01-11 Michael Snyder <msnyder@vmware.com>
11653
11654 * s390-tdep.c: Comment cleanup, mostly periods and spaces.
11655 * score-tdep.c: Ditto.
11656 * score-tdep.h: Ditto.
11657 * ser-base.c: Ditto.
11658 * ser-go32.c: Ditto.
11659 * serial.c: Ditto.
11660 * serial.h: Ditto.
11661 * ser-mingw.c: Ditto.
11662 * ser-pipe.c: Ditto.
11663 * ser-tcp.c: Ditto.
11664 * ser-unix.c: Ditto.
11665 * sh64-tdep.c: Ditto.
11666 * shnbsd-nat.c: Ditto.
11667 * sh-tdep.c: Ditto.
11668 * sh-tdep.h: Ditto.
11669 * solib.c: Ditto.
11670 * solib-darwin.c: Ditto.
11671 * solib-frv.c: Ditto.
11672 * solib.h: Ditto.
11673 * solib-irix.c: Ditto.
11674 * solib-osf.c: Ditto.
11675 * solib-pa64.c: Ditto.
11676 * solib-som.c: Ditto.
11677 * solib-spu.c: Ditto.
11678 * solib-sunos.c: Ditto.
11679 * solib-svr4.c: Ditto.
11680 * solist.h: Ditto.
11681 * sol-thread.c: Ditto.
11682 * somread.c: Ditto.
11683 * source.c: Ditto.
11684 * source.h: Ditto.
11685 * sparc64-linux-tdep.c: Ditto.
11686 * sparc64-tdep.c: Ditto.
11687 * sparc-linux-nat.c: Ditto.
11688 * sparc-linux-tdep.c: Ditto.
11689 * sparc-sol2-nat.c: Ditto.
11690 * sparc-sol2-tdep.c: Ditto.
11691 * sparc-tdep.c: Ditto.
11692 * sparc-tdep.h: Ditto.
11693 * spu-tdep.c: Ditto.
11694 * stabsread.c: Ditto.
11695 * stabsread.h: Ditto.
11696 * stack.c: Ditto.
11697 * symfile.c: Ditto.
11698 * symfile.h: Ditto.
11699 * symmisc.c: Ditto.
11700 * symtab.c: Ditto.
11701 * symtab.h: Ditto.
11702 * target.c: Ditto.
11703 * target-descriptions.c: Ditto.
11704 * target-descriptions.h: Ditto.
11705 * target.h: Ditto.
11706 * target-memory.c: Ditto.
11707 * terminal.h: Ditto.
11708 * thread.c: Ditto.
11709 * top.c: Ditto.
11710 * tracepoint.c: Ditto.
11711 * tracepoint.h: Ditto.
11712 * trad-frame.h: Ditto.
11713 * typeprint.c: Ditto.
11714
581e13c1
MS
117152011-01-11 Michael Snyder <msnyder@vmware.com>
11716
11717 * ui-file.c: Comment cleanup, mostly periods and spaces.
11718 * ui-file.h: Ditto.
11719 * ui-out.c: Ditto.
11720 * ui-out.h: Ditto.
11721 * utils.c: Ditto.
11722 * v850-tdep.c: Ditto.
11723 * valarith.c: Ditto.
11724 * valops.c: Ditto.
11725 * valprint.c: Ditto.
11726 * valprint.h: Ditto.
11727 * value.c: Ditto.
11728 * value.h: Ditto.
11729 * varobj.c: Ditto.
11730 * varobj.h: Ditto.
11731 * vax-tdep.c: Ditto.
11732 * vec.c: Ditto.
11733 * vec.h: Ditto.
11734 * version.h: Ditto.
11735 * windows-nat.c: Ditto.
11736 * windows-tdep.c: Ditto.
11737 * xcoffread.c: Ditto.
11738 * xcoffsolib.c: Ditto.
11739 * xml-support.c: Ditto.
11740 * xstormy16-tdep.c: Ditto.
11741 * xtensa-tdep.c: Ditto.
11742 * xtensa-tdep.h: Ditto.
11743
90e4670f
TJB
117442011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
11745
11746 * breakpoint.c (resources_needed_watchpoint): Fix indentation.
11747 * gdbtypes.c (is_scalar_type_recursive): Fix formatting.
11748
e09342b5
TJB
117492011-01-11 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
11750 Thiago Jung Bauermann <bauerman@br.ibm.com>
11751
11752 Implement support for PowerPC BookE ranged watchpoints.
f2eb0bc8 11753 * breakpoint.h
e09342b5
TJB
11754 (struct breakpoint_ops) <resources_needed>: New method.
11755 Initialize to NULL in all existing breakpoint_ops instances.
11756 (struct breakpoint) <exact>: New field.
11757 (target_exact_watchpoints): Declare external global.
11758 * breakpoint.c (target_exact_watchpoints): New global flag.
11759 (update_watchpoint): Set b->type to bp_hardware_watchpoint and
11760 b->enable_state to bp_enabled before calling
11761 hw_watchpoint_used_count.
11762 (hw_watchpoint_used_count): Iterate over all bp_locations in a
11763 watchpoint. Call breakpoint's breakpoint_ops.resources_needed
11764 if available.
11765 (insert_watchpoint, remove_watchpoint): Use fixed length of 1 byte
11766 if the watchpoint is exact.
11767 (resources_needed_watchpoint): New function.
11768 (watchpoint_breakpoint_ops): Add resources_needed_watchpoint.
11769 (watch_command_1): Set b->exact if the user asked for an exact
11770 watchpoint and one can be set.
11771 (can_use_hardware_watchpoint): Add exact_watchpoints argument.
11772 Pass fixed length of 1 to target_region_ok_for_hw_watchpoint if
11773 the user asks for an exact watchpoint and one can be set. Return
11774 number of needed debug registers to watch the expression.
11775 * gdbtypes.c (is_scalar_type): New function, based on
11776 valprint.c:scalar_type_p.
11777 (is_scalar_type_recursive): New function.
11778 * gdbtypes.h (is_scalar_type_recursive): Declare.
11779 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Always
11780 handle regions when ranged watchpoints are available.
11781 (create_watchpoint_request): New function.
11782 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
11783 create_watchpoint_request.
11784 * rs6000-tdep.c (show_powerpc_exact_watchpoints): New function.
11785 (_initialize_rs6000_tdep): Add `exact-watchpoints' boolean to the
11786 `set powerpc' and `show powerpc' commands.
11787 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
11788 Mention documentation comment in the target macro.
11789 (target_region_ok_for_hw_watchpoint): Document return value.
11790
9fa40276
TJB
117912011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
11792
11793 * breakpoint.c (update_watchpoint): Decide on using a software or
11794 hardware watchpoint after the bp_locations are created.
11795
77b06cd7
TJB
117962010-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
11797
11798 Convert hardware watchpoints to use breakpoint_ops.
11799 * breakpoint.h (breakpoint_ops) <insert>: Rename to...
11800 <insert_location>: ... this. Return int instead of void.
11801 Accept pointer to struct bp_location instead of pointer to
11802 struct breakpoint. Adapt all implementations.
f2eb0bc8 11803 (breakpoint_ops) <remove>: Rename to...
77b06cd7
TJB
11804 <remove_location>: ... this. Accept pointer to struct bp_location
11805 instead of pointer to struct breakpoint. Adapt all implementations.
11806 * breakpoint.c (insert_catchpoint): Delete function.
11807 (insert_bp_location): Call the watchpoint or catchpoint's
11808 breakpoint_ops.insert method.
11809 (remove_breakpoint_1): Call the watchpoint or catchpoint's
11810 breakpoint_ops.remove method.
11811 (insert_watchpoint, remove_watchpoint): New functions.
11812 (watchpoint_breakpoint_ops): New structure.
11813 (watch_command_1): Initialize the OPS field.
11814 * inf-child.c (inf_child_insert_fork_catchpoint)
11815 (inf_child_remove_fork_catchpoint, inf_child_insert_vfork_catchpoint)
11816 (inf_child_remove_vfork_catchpoint, inf_child_insert_exec_catchpoint)
11817 (inf_child_remove_exec_catchpoint, inf_child_set_syscall_catchpoint):
11818 Delete functions.
11819 (inf_child_target): Remove initialization of to_insert_fork_catchpoint,
11820 to_remove_fork_catchpoint, to_insert_vfork_catchpoint,
11821 to_remove_vfork_catchpoint, to_insert_exec_catchpoint,
11822 to_remove_exec_catchpoint and to_set_syscall_catchpoint.
11823 * target.c (update_current_target): Change default implementation of
11824 to_insert_fork_catchpoint, to_remove_fork_catchpoint,
11825 to_insert_vfork_catchpoint, to_remove_vfork_catchpoint,
11826 to_insert_exec_catchpoint, to_remove_exec_catchpoint and
11827 to_set_syscall_catchpoint to return_one.
11828 (debug_to_insert_fork_catchpoint, debug_to_insert_vfork_catchpoint)
11829 (debug_to_insert_exec_catchpoint): Report return value.
11830 * target.h (to_insert_fork_catchpoint, to_insert_vfork_catchpoint)
11831 (to_insert_exec_catchpoint): Change declaration to return int instead
11832 of void.
11833
9b20d036
MS
118342011-01-11 Michael Snyder <msnyder@vmware.com>
11835
11836 * arm-tdep.c: Internationalization.
11837 * c-lang.c: Ditto.
11838 * charset.c: Ditto.
11839 * fork-child.c: Ditto.
11840 * nto-procfs.c: Ditto.
11841 * ppc-sysv-tdep.c: Ditto.
11842 * procfs.c: Ditto.
11843 * remote-mips.c: Ditto.
11844 * remote.c: Ditto.
11845 * rs6000-nat.c: Ditto.
11846 * rs6000-tdep.c: Ditto.
11847 * target.c: Ditto.
11848 * valops.c: Ditto.
11849 * value.c: Ditto.
11850 * xml-support.c: Ditto.
11851 * mi/mi-cmd-break.c: Ditto.
11852 * mi/mi-cmd-var.c: Ditto.
11853 * mi/mi-interp.c: Ditto.
11854 * mi/mi-main.c: Ditto.
11855
dae477fe
AB
118562011-01-11 Andrew Burgess <aburgess@broadcom.com>
11857
11858 * remote-sim.c (gdbsim_store_register): Update API to
11859 sim_store_register to check more error conditions.
11860
0df8b418
MS
118612011-01-10 Michael Snyder <msnyder@vmware.com>
11862
11863 * nto-procfs.c: Comment cleanup, mostly periods and spaces.
11864 * nto-tdep.c: Ditto.
11865 * nto-tdep.h: Ditto.
11866 * objc-exp.y: Ditto.
11867 * objc-lang.c: Ditto.
11868 * objfiles.c: Ditto.
11869 * objfiles.h: Ditto.
11870 * observer.c: Ditto.
11871 * opencl-lang.c: Ditto.
11872 * osabi.c: Ditto.
11873 * parse.c: Ditto.
11874 * parser-defs.h: Ditto.
11875 * p-exp.y: Ditto.
11876 * p-lang.c: Ditto.
11877 * posix-hdep.c: Ditto.
11878 * ppcbug-rom.c: Ditto.
11879 * ppc-linux-nat.c: Ditto.
11880 * ppc-linux-tdep.c: Ditto.
11881 * ppc-linux-tdep.h: Ditto.
11882 * ppcnbsd-tdep.c: Ditto.
11883 * ppcobsd-tdep.c: Ditto.
11884 * ppcobsd-tdep.h: Ditto.
11885 * ppc-sysv-tdep.c: Ditto.
11886 * ppc-tdep.h: Ditto.
11887 * printcmd.c: Ditto.
11888 * proc-abi.c: Ditto.
11889 * proc-flags.c: Ditto.
11890 * procfs.c: Ditto.
11891 * proc-utils.h: Ditto.
11892 * progspace.h: Ditto.
11893 * prologue-value.c: Ditto.
11894 * prologue-value.h: Ditto.
11895 * psympriv.h: Ditto.
11896 * psymtab.c: Ditto.
11897 * p-typeprint.c: Ditto.
11898 * p-valprint.c: Ditto.
11899 * ravenscar-sparc-thread.c: Ditto.
11900 * ravenscar-thread.c: Ditto.
11901 * ravenscar-thread.h: Ditto.
11902 * record.c: Ditto.
11903 * regcache.c: Ditto.
11904 * regcache.h: Ditto.
11905 * remote.c: Ditto.
11906 * remote-fileio.c: Ditto.
11907 * remote-fileio.h: Ditto.
11908 * remote.h: Ditto.
11909 * remote-m32r-sdi.c: Ditto.
11910 * remote-mips.c: Ditto.
11911 * remote-sim.c: Ditto.
11912 * rs6000-aix-tdep.c: Ditto.
11913 * rs6000-nat.c: Ditto.
11914 * rs6000-tdep.c: Ditto.
11915
0d7a18f7
MS
119162011-01-10 Michael Snyder <msnyder@vmware.com>
11917
11918 * charset.c (validate): Internationalization.
11919 * coffread.c (read_one_sym): Ditto.
11920 * dwarf2read.c (dwarf2_attach_fields_to_type): Ditto.
11921 * h8300-tdep.c (H8300_extract_return_value): Ditto.
11922 * inflow.c (new_tty): Ditto.
11923 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Ditto.
11924 * m32c-tdep.c (m32c_return_value): Ditto.
11925 * mep-tdep.c (mep_store_return_value): Ditto.
11926 * score-tdep.c (score7_fetch_insn): Ditto.
11927 * ser-mingw.c (pipe_windows_open): Ditto.
11928 * sh64-tdep.c (sh64_extract_return_value): Ditto.
11929 * spu-tdep.c (spu_register_type): Ditto.
11930 * tracepoint.c (trace_find_command): Ditto.
11931 * valarith.c (value_pos): Ditto.
11932
9a153e0b
JB
119332011-01-10 Joel Brobecker <brobecker@adacore.com>
11934
11935 * ada-valprint.c (printstr): Minor comment reformatting.
11936
35ecd2d6
MS
119372011-01-08 Michael Snyder <msnyder@vmware.com>
11938
11939 * m32r-rom.c (m32r_upload_command): Fix up ARI warnings for _
11940 markup.
11941
1777feb0
MS
119422011-01-08 Michael Snyder <msnyder@vmware.com>
11943
11944 * h8300-tdep.c: Comment cleanup, mostly periods and spaces.
11945 * hppa-hpux-tdep.c: Ditto.
11946 * hppa-linux-nat.c: Ditto.
11947 * hppa-linux-tdep.c: Ditto.
11948 * hppanbsd-tdep.c: Ditto.
11949 * hppa-tdep.c: Ditto.
11950 * hppa-tdep.h: Ditto.
11951 * hpux-thread.c: Ditto.
11952 * i386-cygwin-tdep.c: Ditto.
11953 * i386-darwin-nat.c: Ditto.
11954 * i386gnu-nat.c: Ditto.
11955 * i386-linux-nat.c: Ditto.
11956 * i386-linux-tdep.c: Ditto.
11957 * i386-nat.c: Ditto.
11958 * i386-nat.h: Ditto.
11959 * i386nbsd-tdep.c: Ditto.
11960 * i386-sol2-nat.c: Ditto.
11961 * i386-stub.c: Ditto.
11962 * i386-tdep.c: Ditto.
11963 * i386-tdep.h: Ditto.
11964 * i387-tdep.c: Ditto.
11965 * ia64-linux-nat.c: Ditto.
11966 * ia64-linux-tdep.c: Ditto.
11967 * ia64-tdep.c: Ditto.
11968 * infcall.c: Ditto.
11969 * infcall.h: Ditto.
11970 * infcmd.c: Ditto.
11971 * inferior.c: Ditto.
11972 * inferior.h: Ditto.
11973 * infloop.c: Ditto.
11974 * inflow.c: Ditto.
11975 * infrun.c: Ditto.
11976 * interps.c: Ditto.
11977 * interps.h: Ditto.
11978 * iq2000-tdep.c: Ditto.
11979 * irix5-nat.c: Ditto.
11980 * jit.c: Ditto.
11981 * jit.h: Ditto.
11982 * jv-exp.y: Ditto.
11983 * jv-lang.c: Ditto.
11984 * jv-lang.h: Ditto.
11985 * jv-typeprint.c: Ditto.
11986 * jv-valprint.c: Ditto.
11987 * language.c: Ditto.
11988 * language.h: Ditto.
11989 * linespec.c: Ditto.
11990 * linux-fork.c: Ditto.
11991 * linux-nat.c: Ditto.
11992 * linux-thread-db.c: Ditto.
11993 * lm32-tdep.c: Ditto.
11994
025bb325
MS
119952011-01-08 Michael Snyder <msnyder@vmware.com>
11996
11997 * m2-exp.y: Comment cleanup, mostly periods and spaces.
11998 * m2-lang.c: Ditto.
11999 * m2-typeprint.c: Ditto.
12000 * m2-valprint.c: Ditto.
12001 * m32c-tdep.c: Ditto.
12002 * m32r-linux-nat.c: Ditto.
12003 * m32r-rom.c: Ditto.
12004 * m32r-tdep.c: Ditto.
12005 * m32r-tdep.h: Ditto.
12006 * m68hc11-tdep.c: Ditto.
12007 * m58klinux-nat.c: Ditto.
12008 * m68k-tdep.c: Ditto.
12009 * m88k-tdep.c: Ditto.
12010 * m88k-tdep.h: Ditto.
12011 * machoread.c: Ditto.
12012 * macrocmd.c: Ditto.
12013 * macroexp.c: Ditto.
12014 * macrotab.c: Ditto.
12015 * main.c: Ditto.
12016 * maint.c: Ditto.
12017 * mdebugread.c: Ditto.
12018 * mdebugread.h: Ditto.
12019 * memattr.c: Ditto.
12020 * memattr.h: Ditto.
12021 * memory-map.h: Ditto.
12022 * mep-tdep.c: Ditto.
12023 * microblaze-rom.c: Ditto.
12024 * microblaze-tdep.c: Ditto.
12025 * minsyms.c: Ditto.
12026 * mips-irix-tdep.c: Ditto.
12027 * mips-linux-nat.c: Ditto.
12028 * mips-linux-tdep.c: Ditto.
12029 * mips-linux-tdep.h: Ditto.
12030 * mipsnbsd-nat.c: Ditto.
12031 * mipsnbsd-tdep.c: Ditto.
12032 * mipsread.c: Ditto.
12033 * mips-tdep.c: Ditto.
12034 * mips-tdep.h: Ditto.
12035 * mn10300-linux-tdep.c: Ditto.
12036 * mn10300-tdep.c: Ditto.
12037 * mn10300-tdep.h: Ditto.
12038 * monitor.c: Ditto.
12039 * monitor.h: Ditto.
12040 * moxie-tdep.c: Ditto.
12041 * moxie-tdep.h: Ditto.
12042 * mt-tdep.c: Ditto.
12043
1642781b
MF
120442011-01-08 Mike Frysinger <vapier@gentoo.org>
12045
12046 * bfin-tdep.h (BFIN_A0_DOT_W_REGNUM): Fix typo in name.
12047
394b0adb
JB
120482011-01-08 Robert Millan <rmh@gnu.org>
12049
12050 * fbsd-nat.c (fbsd_find_memory_regions): Fix typo.
12051
b670013c
MS
120522011-01-07 Michael Snyder <msnyder@vmware.com>
12053
12054 * charset.c (_initialize_charset): Fix typo in string.
12055
a743e542
MS
120562011-01-07 Michael Snyder <msnyder@vmware.com>
12057
12058 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Mark up error message
12059 for i18n.
f2eb0bc8 12060 * tui/tui-layout.c (tui_set_layout_for_display_command):
a743e542
MS
12061 Split line so that operator goes to beginning of line.
12062 * tui/tui-winsource.c (tui_horizontal_source_scroll): Move
12063 assignment out of if statement.
12064
0963b4bd
MS
120652011-01-07 Michael Snyder <msnyder@vmware.com>
12066
12067 * ada-lang.c: Comment cleanup, mostly periods and spaces.
12068 * ada-lang.h: Ditto.
12069 * ada-tasks.c: Ditto.
12070 * ada-valprint.c: Ditto.
12071 * aix-threads.c: Ditto.
12072 * alpha-linux-nat.c: Ditto.
12073 * alpha-linux-tdep.c: Ditto.
12074 * alpha-mdebug-tdep.c: Ditto.
12075 * alpha-nat.c: Ditto.
12076 * alpha-osf1-tdep.c: Ditto.
12077 * alpha-tdep.c: Ditto.
12078 * alphabsd-nat.c: Ditto.
12079 * alphabsd-tdep.c: Ditto.
12080 * amd64-darwin-tdep.c: Ditto.
12081 * amd64-linux-nat.c: Ditto.
12082 * amd64-linux-tdep.c: Ditto.
12083 * amd64-sol2-tdep.c: Ditto.
12084 * amd64-tdep.c: Ditto.
12085 * amd64-fbsd-tdep.c: Ditto.
12086 * amd64-nbsd-tdep.c: Ditto.
12087 * amd64-obsd-tdep.c: Ditto.
12088 * amd64-linux-nat.c: Ditto.
12089 * amd64-linux-tdep.c: Ditto.
12090 * arm-tdep.c: Ditto.
12091 * arm-tdep.h: Ditto.
12092 * armnbsd-nat.c: Ditto.
12093 * avr-tdep.c: Ditto.
12094 * bfin-tdep.c: Ditto.
12095 * bsd-kvm.c: Ditto.
12096 * c-typeprintc: Ditto.
12097 * c-valprint.c: Ditto.
12098 * coff-pe-read.h: Ditto.
12099 * coffreead.c: Ditto.
12100 * cris-tdep.c: Ditto.
12101 * d-lang.c: Ditto.
12102 * darwin-nat-info.c: Ditto.
12103 * darwin-nat.c: Ditto.
12104 * dbug-rom.c: Ditto.
12105 * dbxread.c: Ditto.
12106 * dcache.c: Ditto.
12107 * dcache.h: Ditto.
12108 * dec-thread.c: Ditto.
12109 * defs.h: Ditto.
12110 * demangle.c: Ditto.
12111 * dicos-tdep.c: Ditto.
12112 * dictionary.c: Ditto.
12113 * dictionary.h: Ditto.
12114 * dink32-rom.c: Ditto.
12115 * disasm.c: Ditto.
12116 * doublest.c: Ditto.
12117 * dsrec.c: Ditto.
12118 * dummy-frame.c: Ditto.
12119 * dwarf2-frame.c: Ditto.
12120 * dwarf2expr.c: Ditto.
12121 * dwarf2loc.c: Ditto.
12122 * dwarf2read.c: Ditto.
12123 * elfread.c: Ditto.
12124 * environ.c: Ditto.
12125 * eval.c: Ditto.
12126 * event-top.h: Ditto.
12127 * exceptions.c: Ditto.
12128 * exceptions.h: Ditto.
12129 * exec.c: Ditto.
12130 * expprint.c: Ditto.
12131 * expression.h: Ditto.
12132 * f-exp.y: Ditto.
12133 * f-lang.c: Ditto.
12134 * f-lang.h: Ditto.
12135 * f-typeprint.c: Ditto.
12136 * f-valprint.c: Ditto.
12137 * fbsd-nat.c: Ditto.
12138 * findvar.c: Ditto.
12139 * fork-child.c: Ditto.
12140 * frame.c: Ditto.
12141 * frame.h: Ditto.
12142 * frv-linux-tdep.c: Ditto.
12143 * frv-tdep.c: Ditto.
12144 * gcore.c: Ditto.
12145 * gdb-stabs.h: Ditto.
12146 * gdb_assert.h: Ditto.
12147 * gdb_string.h: Ditto.
12148 * gdb_thread_db.h: Ditto.
12149 * gdb_wait.h: Ditto.
12150 * gdbarch.sh: Ditto.
12151 * gdbcore.h: Ditto.
12152 * gdbthread.h: Ditto.
12153 * gdbtypes.c: Ditto.
12154 * gdbtypes.h: Ditto.
12155 * gnu-nat.c: Ditto.
12156 * gnu-nat.h: Ditto.
12157 * gnu-v2-abi.c: Ditto.
12158 * gnu-v3-abi.c: Ditto.
12159 * go32-nat.c: Ditto.
12160 * gdbarch.c: Regenerate.
12161 * gdbarch.h: Regenerate.
12162
ac74f770
MS
121632011-01-07 Michael Snyder <msnyder@vmware.com>
12164
12165 * ax-gdb.c: Adjust some long output strings.
12166 * breakpoint.c: Ditto.
12167 * charset.c: Ditto.
12168 * cp-abi.c: Ditto.
12169 * infcall.c: Ditto.
12170 * infrun.c: Ditto.
12171 * linux-nat.c: Ditto.
12172 * solib-pa64.c: Ditto.
12173 * solib-som.c: Ditto.
12174
d8e22779
TT
121752011-01-06 Tom Tromey <tromey@redhat.com>
12176
12177 PR python/12367:
12178 * NEWS: Add item.
12179 * python/python.c (GdbMethods): Add "newest_frame" method.
12180 * python/python-internal.h (gdbpy_newest_frame): Declare.
12181 * python/py-frame.c (gdbpy_newest_frame): New function.
12182
a255712f
PP
121832010-01-06 Paul Pluzhnikov <ppluzhnikov@google.com>
12184
12185 * jit.h (struct jit_code_entry): use ULONGEST for symfile_size.
12186 * jit.c (jit_debug): New variable.
12187 (show_jit_debug): New function.
12188 (struct target_buffer): Use ULONGEST.
12189 (bfd_open_from_target_memory): Likewise.
12190 (jit_register_code, jit_inferior_init): Add debug output.
12191 (_initialize_jit): Register "debug jit" command.
12192
ccfc3d6e
TT
121932011-01-06 Tom Tromey <tromey@redhat.com>
12194
12195 * frame.h (enum frame_type) <INLINE_FRAME>: Fix comment.
12196 * python/py-frame.c (gdbpy_initialize_frames): Add INLINE_FRAME
12197 and ARCH_FRAME.
12198
57126e4a
TT
121992011-01-06 Tom Tromey <tromey@redhat.com>
12200
12201 * python/py-frame.c (frapy_block): Use get_frame_block.
12202
16dfc9ce
JB
122032011-01-06 Joel Brobecker <brobecker@adacore.com>
12204
12205 Do not stop on SIGPRIO signals by default
12206 * infrun.c (_initialize_infrun): Unset signal_stop and
12207 signal_print for TARGET_SIGNAL_PRIO.
12208
b1ce2347
JB
122092011-01-06 Joel Brobecker <brobecker@adacore.com>
12210
12211 * ada-tasks.c: Fix style violation in comment.
12212
8f7e195f
JB
122132011-01-06 Joel Brobecker <brobecker@adacore.com>
12214
12215 * linespec.c (decode_compound, find_method): Remove trailing \n
12216 at end of error string.
12217 * solib-irix.c (irix_current_sos): Likewise.
12218 * varobj.c (uninstall_variable): Likewise.
12219
e9bdf92c
JB
122202011-01-06 Joel Brobecker <brobecker@adacore.com>
12221
12222 * copyright.py: New script.
12223 * copyright.sh (byhand): Add *.ads, *.adb, *.gpr and *.inc.
12224 Launch emacs without exec'ing. Call copyright.py afterwards.
12225
3e43a32a
MS
122262011-01-05 Michael Snyder <msnyder@vmware.com>
12227
12228 * addrmap.c: Shorten lines of >= 80 columns.
12229 * arch-utils.c: Ditto.
12230 * arch-utils.h: Ditto.
12231 * ax-gdb.c: Ditto.
12232 * ax-general.c: Ditto.
12233 * bcache.c: Ditto.
12234 * blockframe.c: Ditto.
12235 * breakpoint.c: Ditto.
12236 * buildsym.c: Ditto.
12237 * c-lang.c: Ditto.
12238 * c-typeprint.c: Ditto.
12239 * charset.c: Ditto.
12240 * coffread.c: Ditto.
12241 * command.h: Ditto.
12242 * corelow.c: Ditto.
12243 * cp-abi.c: Ditto.
12244 * cp-namespace.c: Ditto.
12245 * cp-support.c: Ditto.
12246 * dbug-rom.c: Ditto.
12247 * dbxread.c: Ditto.
12248 * defs.h: Ditto.
12249 * dfp.c: Ditto.
12250 * dfp.h: Ditto.
12251 * dictionary.c: Ditto.
12252 * disasm.c: Ditto.
12253 * doublest.c: Ditto.
12254 * dwarf2-frame.c: Ditto.
12255 * dwarf2expr.c: Ditto.
12256 * dwarf2loc.c: Ditto.
12257 * dwarf2read.c: Ditto.
12258 * elfread.c: Ditto.
12259 * eval.c: Ditto.
12260 * event-loop.c: Ditto.
12261 * event-loop.h: Ditto.
12262 * exceptions.h: Ditto.
12263 * exec.c: Ditto.
12264 * expprint.c: Ditto.
12265 * expression.h: Ditto.
12266 * f-lang.c: Ditto.
12267 * f-valprint.c: Ditto.
12268 * findcmd.c: Ditto.
12269 * frame-base.c: Ditto.
12270 * frame-unwind.c: Ditto.
12271 * frame-unwind.h: Ditto.
12272 * frame.c: Ditto.
12273 * frame.h: Ditto.
12274 * gcore.c: Ditto.
12275 * gdb-stabs.h: Ditto.
12276 * gdb_assert.h: Ditto.
12277 * gdb_dirent.h: Ditto.
12278 * gdb_obstack.h: Ditto.
12279 * gdbcore.h: Ditto.
12280 * gdbtypes.c: Ditto.
12281 * gdbtypes.h: Ditto.
12282 * inf-ttrace.c: Ditto.
12283 * infcall.c: Ditto.
12284 * infcmd.c: Ditto.
12285 * inflow.c: Ditto.
12286 * infrun.c: Ditto.
12287 * inline-frame.h: Ditto.
12288 * language.c: Ditto.
12289 * language.h: Ditto.
12290 * libunwind-frame.c: Ditto.
12291 * libunwind-frame.h: Ditto.
12292 * linespec.c: Ditto.
12293 * linux-nat.c: Ditto.
12294 * linux-nat.h: Ditto.
12295 * linux-thread-db.c: Ditto.
12296 * machoread.c: Ditto.
12297 * macroexp.c: Ditto.
12298 * macrotab.c: Ditto.
12299 * main.c: Ditto.
12300 * maint.c: Ditto.
12301 * mdebugread.c: Ditto.
12302 * memattr.c: Ditto.
12303 * minsyms.c: Ditto.
12304 * monitor.c: Ditto.
12305 * monitor.h: Ditto.
12306 * objfiles.c: Ditto.
12307 * objfiles.h: Ditto.
12308 * osabi.c: Ditto.
12309 * p-typeprint.c: Ditto.
12310 * p-valprint.c: Ditto.
12311 * parse.c: Ditto.
12312 * printcmd.c: Ditto.
12313 * proc-events.c: Ditto.
12314 * procfs.c: Ditto.
12315 * progspace.c: Ditto.
12316 * progspace.h: Ditto.
12317 * psympriv.h: Ditto.
12318 * psymtab.c: Ditto.
12319 * record.c: Ditto.
12320 * regcache.c: Ditto.
12321 * regcache.h: Ditto.
12322 * remote-fileio.c: Ditto.
12323 * remote.c: Ditto.
12324 * ser-mingw.c: Ditto.
12325 * ser-tcp.c: Ditto.
12326 * ser-unix.c: Ditto.
12327 * serial.c: Ditto.
12328 * serial.h: Ditto.
12329 * solib-frv.c: Ditto.
12330 * solib-irix.c: Ditto.
12331 * solib-osf.c: Ditto.
12332 * solib-pa64.c: Ditto.
12333 * solib-som.c: Ditto.
12334 * solib-sunos.c: Ditto.
12335 * solib-svr4.c: Ditto.
12336 * solib-target.c: Ditto.
12337 * solib.c: Ditto.
12338 * somread.c: Ditto.
12339 * source.c: Ditto.
12340 * stabsread.c: Ditto.
12341 * stabsread.c: Ditto.
12342 * stack.c: Ditto.
12343 * stack.h: Ditto.
12344 * symfile-mem.c: Ditto.
12345 * symfile.c: Ditto.
12346 * symfile.h: Ditto.
12347 * symmisc.c: Ditto.
12348 * symtab.c: Ditto.
12349 * symtab.h: Ditto.
12350 * target-descriptions.c: Ditto.
12351 * target-memory.c: Ditto.
12352 * target.c: Ditto.
12353 * target.h: Ditto.
12354 * terminal.h: Ditto.
12355 * thread.c: Ditto.
12356 * top.c: Ditto.
12357 * tracepoint.c: Ditto.
12358 * tracepoint.h: Ditto.
12359 * ui-file.c: Ditto.
12360 * ui-file.h: Ditto.
12361 * ui-out.h: Ditto.
12362 * user-regs.c: Ditto.
12363 * user-regs.h: Ditto.
12364 * utils.c: Ditto.
12365 * valarith.c: Ditto.
12366 * valops.c: Ditto.
12367 * valprint.c: Ditto.
12368 * valprint.h: Ditto.
12369 * value.c: Ditto.
12370 * varobj.c: Ditto.
12371 * varobj.h: Ditto.
12372 * vec.h: Ditto.
12373 * xcoffread.c: Ditto.
12374 * xcoffsolib.c: Ditto.
12375 * xcoffsolib.h: Ditto.
12376 * xml-syscall.c: Ditto.
12377 * xml-tdesc.c: Ditto.
12378
9a2b4c1b
MS
123792011-01-05 Michael Snyder <msnyder@vmware.com>
12380
12381 * cli/cli-cmds.c: Shorten lines of >= 80 columns.
12382 * cli/cli-decode.c: Ditto.
12383 * cli/cli-dump.c: Ditto.
12384 * cli/cli-logging.c: Ditto.
12385 * cli/cli-script.c: Ditto.
12386 * cli/cli-setshow.c: Ditto.
12387 * common/signals.c: Ditto.
12388 * mi/mi-cmd-break.c: Ditto.
12389 * mi/mi-cmd-disas.c: Ditto.
12390 * mi/mi-cmd-stack.c: Ditto.
12391 * mi/mi-cmd-var.c: Ditto.
12392 * mi/mi-cmds.c: Ditto.
12393 * mi/mi-common.h: Ditto.
12394 * mi/mi-console.c: Ditto.
12395 * mi/mi-interp.c: Ditto.
12396 * mi/mi-main.c: Ditto.
12397 * osf-share/cma_attr.c: Ditto.
12398 * osf-share/cma_deb_core.h: Ditto.
12399 * osf-share/cma_debug_client.h: Ditto.
12400 * osf-share/cma_handle.h: Ditto.
12401 * osf-share/cma_mutex.h: Ditto.
12402 * osf-share/cma_stack_int.h: Ditto.
12403 * osf-share/cma_tcb_defs.h: Ditto.
12404 * python/py-auto-load.c: Ditto.
12405 * python/py-breakpoint.c: Ditto.
12406 * python/py-cmd.c: Ditto.
12407 * python/py-frame.c: Ditto.
12408 * python/py-objfile.c: Ditto.
12409 * python/py-param.c: Ditto.
12410 * python/py-progspace.c: Ditto.
12411 * python/py-symbol.c: Ditto.
12412 * python/py-value.c: Ditto.
12413 * python/python-internal.h: Ditto.
12414 * python/python.c: Ditto.
12415 * tui/tui-data.c: Ditto.
12416 * tui/tui-disasm.c: Ditto.
12417 * tui/tui-hooks.c: Ditto.
12418 * tui/tui-io.c: Ditto.
12419 * tui/tui-layout.c: Ditto.
12420 * tui/tui-regs.c: Ditto.
12421 * tui/tui-source.c: Ditto.
12422 * tui/tui-stack.c: Ditto.
12423 * tui/tui-win.c: Ditto.
12424 * tui/tui-windata.c: Ditto.
12425 * tui/tui-winsource.c: Ditto.
12426
44944448
JB
124272011-01-05 Joel Brobecker <brobecker@adacore.com>
12428
12429 * configure.ac, gdb.1: Copyright year update.
12430
ebedcab5
JK
124312011-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12432
12433 * frame.c (get_prev_frame_1) <UNWIND_INNER_ID>: New variables
12434 this_pc_in_block, morestack_msym and morestack_name. Check for
12435 "__morestack" minimal symbol there.
12436
e5cc9f32
JB
124372011-01-03 Joel Brobecker <brobecker@adacore.com>
12438
12439 * symfile.c (find_sym_fns): Add call to dont_repeat.
12440
7b6bb8da
JB
124412011-01-01 Joel Brobecker <brobecker@adacore.com>
12442
12443 Copyright year update in most files (performed by copyright.sh).
12444
71ce852c
JB
124452011-01-01 Joel Brobecker <brobecker@adacore.com>
12446
12447 * top.c (print_gdb_version): Update copyright year in version output.
0e2de366 12448
c3c1ebe8 12449For older changes see ChangeLog-2010.
c906108c
SS
12450\f
12451Local Variables:
12452mode: change-log
12453left-margin: 8
12454fill-column: 74
12455version-control: never
57da7796 12456coding: utf-8
c906108c 12457End:
This page took 1.80159 seconds and 4 git commands to generate.