]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
PR python/12533:
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
e848a8a5
TT
12011-12-22 Tom Tromey <tromey@redhat.com>
2
3 PR python/12533:
4 * value.h (release_value_or_incref): Declare.
5 * value.c (struct value) <released>: New field.
6 (free_all_values, release_value, value_release_to_mark): Update
7 'released'.
8 (release_value_or_incref): New function.
9 * python/py-value.c (valpy_new): Use release_value_or_incref.
10 (value_to_value_object): Likewise.
11 * varobj.c (install_new_value): Move value_incref earlier.
12
87784a47
TT
132011-12-22 Tom Tromey <tromey@redhat.com>
14
15 * value.c (struct value) <modifiable, lazy, optimized_out,
16 initialized, stack>: Now bitfields. Move to top.
17 <reference_count>: Move earlier.
18
b19686e0
TT
192011-12-21 Tom Tromey <tromey@redhat.com>
20
21 * minsyms.h: Rearrange. Document header and all functions.
22 * minsyms.c: Move some comments to minsyms.h.
23
c35384fb
TT
242011-12-21 Tom Tromey <tromey@redhat.com>
25
26 * symtab.h: Include minsyms.h.
27 (prim_record_minimal_symbol, prim_record_minimal_symbol_full)
28 (prim_record_minimal_symbol_and_info, msymbol_hash_iw)
29 (msymbol_hash, SYMBOL_HASH_NEXT, msymbol_objfile)
30 (lookup_minimal_symbol, lookup_minimal_symbol_text)
31 (lookup_minimal_symbol_solib_trampoline)
32 (lookup_minimal_symbol_by_pc_name, lookup_minimal_symbol_by_pc)
33 (iterate_over_minimal_symbols, lookup_minimal_symbol_and_objfile)
34 (lookup_minimal_symbol_by_pc_section)
35 (lookup_solib_trampoline_symbol_by_pc)
36 (init_minimal_symbol_collection)
37 (make_cleanup_discard_minimal_symbols, install_minimal_symbols)
38 (msymbols_sort): Move to minsyms.h.
39 * objfiles.c (terminate_minimal_symbol_table): Move to minsyms.c.
40 * minsyms.c (terminate_minimal_symbol_table): Move from
41 objfiles.c.
42 * minsyms.h: New file.
43
a5bd37c3
TT
442011-12-21 Tom Tromey <tromey@redhat.com>
45
46 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence): Use
47 ALL_OBJFILE_MSYMBOLS.
48 (hppa_hpux_find_dummy_bpaddr): Likewise.
49 * jit.c (jit_object_close_impl): Use
50 terminate_minimal_symbol_table.
51
0af1e9a5
TT
522011-12-21 Tom Tromey <tromey@redhat.com>
53
54 * elfread.c (elf_symtab_read): Put the filename in the filename
55 bcache.
56
04aba065
TT
572011-12-21 Tom Tromey <tromey@redhat.com>
58
59 * symtab.h (struct minimal_symbol) <filename>: Now const.
60
7052e42c
UW
612011-12-21 Ulrich Weigand <ulrich.weigand@linaro.org>
62
63 PR tdep/12797
64 * arm-tdep.c (arm_return_value): Handle complex types.
65
f16c4e8b
AS
662011-12-21 Andreas Schwab <schwab@linux-m68k.org>
67
68 * ppc-linux-nat.c (create_watchpoint_request): Only use ranged
69 watchpoints when supported.
70
4ac39b97
JK
712011-12-21 Jan Kratochvil <jan.kratochvil@redhat.com>
72
73 * symfile.c (objfilep): New typedef and new DEF_VEC_P.
74 (reread_symbols): Remove variable reread_one, new variables
75 new_objfiles, all_cleanups and ix. Use new_objfiles instead of
76 reread_one. Push changed objfiles to new_objfiles, call
77 observer_notify_new_objfile for them later.
78
bb2f58dc
JB
792011-12-21 Joel Brobecker <brobecker@adacore.com>
80
81 * psymtab.c (expand_symtabs_matching_via_partial): Match
82 the partial symbols using their SYMBOL_SEARCH_NAME.
83 * symfile.h (struct quick_symbol_functions): Udate the
84 documentation of expand_symtabs_matching.
85 * dwarf2read.c (write_psymbols): Use SYMBOL_SEARCH_NAME instead
86 of SYMBOL_NATURAL_NAME in index entry.
87
53907c91
JB
882011-12-21 Joel Brobecker <brobecker@adacore.com>
89
90 * linespec.c (locate_first_half): Add handling of Ada operators
91 when the current language is Ada.
92
50f8ea94
JB
932011-12-21 Joel Brobecker <brobecker@adacore.com>
94
95 * objfiles.c (insert_section_p): Do not detect overlay sections
96 if overlay debugging is off.
97
9ac7f98e
JB
982011-12-21 Joel Brobecker <brobecker@adacore.com>
99
100 * ada-lang.c (is_name_suffix): Add handling of "TKB" suffixes.
101 Update function documentation.
102 * dictionary.c (dict_hash): Ignore "TKB" suffixes in hash
103 computation.
104
6e012a6c
PA
1052011-12-20 Pedro Alves <alves.ped@gmail.com>
106 Jan Kratochvil <jan.kratochvil@redhat.com>
107
108 * linux-nat.c (add_lwp): Don't call linux_nat_new_thread on the
109 first LWP.
110 * amd64-linux-nat.c (update_debug_registers_callback): Instantiate
111 `lwp->arch_private' if NULL.
112 (amd64_linux_prepare_to_resume): Do nothing if `lwp->arch_private'
113 is NULL.
114 * i386-linux-nat.c (update_debug_registers_callback): Instantiate
115 `lwp->arch_private' if NULL.
116 (i386_linux_prepare_to_resume): Do nothing if `lwp->arch_private'
117 is NULL.
118
87c31f06
DE
1192011-12-19 Doug Evans <dje@google.com>
120
121 * python/py-auto-load.c (info_auto_load_scripts): Pass address of
122 scripts vector to collect_matching_scripts.
123 (collect_matching_scripts): Update.
124
f6eeced0
JK
1252011-12-19 Jan Kratochvil <jan.kratochvil@redhat.com>
126
127 * symfile.c (reread_symbols): Move free_objfile_separate_debug,
128 preserve_values, sym_finish and clear_objfile_data calls before BFD
129 close. Move free_objfile_separate_debug as the very first call. New
130 comment on the ordering.
131
8de7d199
UW
1322011-12-19 Ulrich Weigand <uweigand@de.ibm.com>
133
134 * s390-tdep.c (s390_push_dummy_call): Set addressing mode bit
135 in return PSWA.
136
984ac464
TT
1372011-12-19 Tom Tromey <tromey@redhat.com>
138
139 * symtab.h (add_minsym_to_hash_table): Don't declare.
140 * minsyms.c (add_minsym_to_hash_table): Now static.
141
828cfa8d
JB
1422011-12-19 Joel Brobecker <brobecker@adacore.com>
143
144 * elfread.c (elf_symtab_read): Ignore undefined symbols with
145 nonzero addresses if they do not correspond to a .plt section
146 when one is available in the objfile.
147
dd274a34
AS
1482011-12-17 Andreas Schwab <schwab@linux-m68k.org>
149
150 * cp-name-parser.y (cp_merge_demangle_parse_infos): Don't use
151 obstack_empty_p.
152
a3e3e961
MK
1532011-12-17 Mark Kettenis <kettenis@gnu.org>
154
155 * amd64obsd-tdep.c (amd64obsd_init_abi): Don't set
156 regset_from_core_section.
157 (amd64obsd_core_init_abi): New function that sets
158 regset_from_core_section.
159 (_initialize_amd64obsd_tdep): Use amd64obsd_core_init_abi for
160 traditional core dumps.
161
0dcddd84
MK
1622011-12-17 Mark Kettenis <kettenis@gnu.org>
163
164 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Detect new signal
165 trampoline to be introduced in OpenBSD 5.0.
166
3e290cb1
JK
1672011-12-17 Jan Kratochvil <jan.kratochvil@redhat.com>
168
169 Fix build regression from the PR threads/10729 fix.
170 * s390-nat.c (s390_insert_watchpoint, s390_remove_watchpoint): Use LP,
171 not LP->PTID.
172
56934ab1
AS
1732011-12-16 Andrey Smirnov <andrew.smirnov@gmail.com>
174
175 * mi/mi-main.c (mi_cmd_list_thread_groups): Rename `optind' and
176 `optarg' to `oind' and `oarg', respectively(-Wshadow).
177 (mi_cmd_data_read_memory): Ditto.
178 (mi_cmd_data_read_memory_bytes): Ditto.
179 (mi_cmd_data_write_memory): Ditto.
180
324478ca
AS
1812011-12-16 Andrey Smirnov <andrew.smirnov@gmail.com>
182
183 * mi/mi-getopt.c (mi_getopt): Rename `optind' and `optarg' to
184 `oind' and `oarg', respectively(-Wshadow).
185 (mi_valid_noargs): Ditto.
186
54dc8297
AS
1872011-12-16 Andrey Smirnov <andrew.smirnov@gmail.com>
188
189 * mi/mi-cmd-var.c (print_varobj): Rename `optind' and `optarg' to
190 `oind' and `oarg', respectively(-Wshadow).
191
00629212
AS
1922011-12-16 Andrey Smirnov <andrew.smirnov@gmail.com>
193
194 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Rename `optind' and
195 `optarg' to `oind' and `oarg', respectively(-Wshadow).
196 (mi_cmd_target_file_put): Ditto.
197 (mi_cmd_target_file_delete): Ditto.
198
7082409d
AS
1992011-12-16 Andrey Smirnov <andrew.smirnov@gmail.com>
200
201 * mi/mi-cmd-env.c (mi_cmd_env_path): Rename `optind' and
202 `optarg' to `oind' and `oarg', respectively(-Wshadow).
203 (mi_cmd_env_dir): Ditto.
204
2052011-12-16 Andrey Smirnov <andrew.smirnov@gmail.com>
81493c62 206
7082409d
AS
207 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Rename `optind' and
208 `optarg' to `oind' and `oarg', respectively(-Wshadow).
81493c62 209
f8c000a2
AS
2102011-12-16 Andrey Smirnov <andrew.smirnov@gmail.com>
211
212 * mi/mi-cmd-break.c (mi_cmd_break_insert): Rename `optind' and
81493c62 213 `optparg' to `oind' and `oarg', respectively(-Wshadow).
f8c000a2
AS
214 (mi_cmd_break_watch): Ditto.
215
07fea4b4
TT
2162011-12-16 Tom Tromey <tromey@redhat.com>
217
218 * linespec.c (collect_symbols): Call maybe_add_address after
219 calling symbol_to_sal.
220 (minsym_found): Call maybe_add_address here.
221 (search_minsyms_for_name): Don't call maybe_add_address.
222
39b856a4
TT
2232011-12-16 Tom Tromey <tromey@redhat.com>
224
225 * linespec.c (struct collect_info) <objfile>: Remove field.
226 (decode_objc): Update.
227 (find_method): Update.
228 (decode_variable): Update.
229 (struct minsym_and_objfile): New.
230 (struct collect_minsyms): New.
231 (classify_mtype): New function.
232 (compare_msyms): Likewise.
233 (add_minsym): Likewise.
234 (check_minsym): Remove.
235 (search_minsyms_for_name): Sort minsyms and apply only those with
236 top priority.
237
ccbac09d
TT
2382011-12-16 Tom Tromey <tromey@redhat.com>
239
240 * cli/cli-cmds.c (filter_sals): Filter out sals with NULL symtab.
241
77cce10f
PA
2422011-12-16 Pedro Alves <pedro@codesourcery.com>
243
244 * inf-loop.c: Include top.h.
245 (inferior_event_handler): Call check_frame_language.
246 * top.c (check_frame_language_change): New, factored out from ...
247 (execute_command): ... this. Use check_frame_language_change.
248 * top.h (check_frame_language_change): Declare.
249
a961bc18
PM
2502011-12-16 asmwarrior <asmwarrior@gmail.com> (obvious fix)
251
252 * windows-nat.c (cygwin_get_dr, cygwin_get_dr7): Add missing
253 prototypes.
254
e0f9f062
DE
2552011-12-16 Doug Evans <dje@google.com>
256
257 * NEWS: Add entry for stdio gdbserver.
258
80b6e756
PM
2592011-12-16 Phil Muldoon <pmuldoon@redhat.com>
260
261 * python/python.c: Define python_excp_enums.
262 (eval_python_from_control_command): Do not call gdbpy_print_stack.
263 (python_command): Ditto.
264 (gdbpy_print_stack): Rewrite to use new enum constants.
265 (maint_set_python): Remove function.
266 (maint_show_python): Ditto.
267 (_initialize_python): Do not add "maint" commands. Add "set/show
268 python print-stack commands".
269 * NEWS: Update to reflect removal for "maint set/show
270 print-stack"
271
ef140872
DE
2722011-12-15 Doug Evans <dje@google.com>
273
274 * exceptions.c (catcher_list_size): New function.
275 (last_message): Delete.
276 (exception_messages, exception_messages_size): New static globals.
277 (throw_it): Use exception_messages array to handle nested calls.
278
b5b445a3
TT
2792011-12-15 Tom Tromey <tromey@redhat.com>
280
281 * symfile.c (symbol_file_add_with_addrs_or_offsets): Remove bad
282 do_cleanups call.
283
0b6cb71e
DE
2842011-12-14 Doug Evans <dje@google.com>
285
286 * defs.h (wait_to_die_with_timeout): Declare.
287 * utils.c: #include "gdb_wait.h".
288 (sigalrm_handler, wait_to_die_with_timeout): New functions.
289 * ser-pipe.c: Don't #include "gdb_wait.h".
290 (pipe_close): Give child a chance to die on its own after closing
291 its stdin before SIGTERM'ing it.
292
6475f2fe 2932011-12-14 Joel Brobecker <brobecker@adacore.com>
afaabefa 294 Tom Tromey <tromey@redhat.com>
6475f2fe
JB
295
296 * ada-lang.c (add_nonlocal_symbols): Initialize data to
297 all zeros. Remove setting of data.arg_sym to NULL.
298
7b50312a
PA
2992011-12-14 Pedro Alves <pedro@codesourcery.com>
300
301 PR threads/10729
302
303 * linux-nat.c (linux_nat_new_thread): Change parameter to an lwp
304 pointer.
305 (linux_nat_prepare_to_resume): New global.
306 (lwp_free): New.
307 (purge_lwp_list): Use it.
308 (add_lwp): Call linux_nat_new_thread even on the first LWP.
309 Adjust to interface change.
310 (delete_lwp): Call lwp_free instead of xfree.
311 (detach_callback, linux_nat_detach, resume_lwp, linux_nat_resume)
312 (linux_handle_syscall_trap, linux_handle_extended_wait)
313 (linux_nat_filter_event, resume_stopped_resumed_lwps): Call
314 linux_nat_prepare_to_resume before resuming.
315 (linux_stop_lwp): New.
316 (linux_nat_set_new_thread): Adjust.
317 (linux_nat_set_prepare_to_resume): New.
318 * linux-nat.h (struct arch_lwp_info): Forward declare.
319 (struct lwp_info) <arch_private>: New field.
320 (linux_stop_lwp): Declare.
321 (linux_nat_set_new_thread): Adjust.
322 (linux_nat_set_prepare_to_resume): New.
323
324 * i386-nat.c (DR_NADDR, DR_STATUS, DR_CONTROL)
325 (struct i386_debug_reg_state): Move to i386-nat.h.
326 (dr_mirror): Comment.
327 (i386_debug_reg_state): New.
328 (i386_update_inferior_debug_regs): Simplify.
329 (i386_stopped_data_address): Use the debug register state from the
330 inferior, not from the local cache.
331 * i386-nat.h (struct i386_dr_low_type): Delete reset_addr and
332 unset_status fields. New get_addr and get_control fields.
333 (DR_FIRSTADDR, DR_LASTADDR, DR_CONTROL): Moved from i386-nat.c.
334 (DR_NADDR, DR_STATUS): New.
335 (struct i386_debug_reg_state): Moved from i386-nat.c.
336
337 * amd64-linux-nat.c (struct arch_lwp_info): New.
338 (amd64_linux_dr): Delete global.
339 (amd64_linux_dr_get_addr): New.
340 (amd64_linux_dr_get_control): New.
341 (amd64_linux_dr_unset_status): Delete.
342 (amd64_linux_dr_set_addr): Reimplement.
343 (amd64_linux_dr_reset_addr): Delete.
344 (update_debug_registers_callback): New.
345 (amd64_linux_dr_set_control): Reimplement.
346 (amd64_linux_dr_set_addr): Reimplement.
347 (amd64_linux_prepare_to_resume): New.
348 (amd64_linux_new_thread): Change parameter to an lwp pointer.
349 Reimplement.
350 (_initialize_amd64_linux_nat): No longer install
351 i386_dr_low.reset_addr and i386_dr_low.unset_status. Install
352 amd64_linux_dr_get_control as i386_dr_low.get_control. Install
353 amd64_linux_dr_get_addr as i386_dr_low.get_addr. Install
354 amd64_linux_prepare_to_resume.
355 * i386-linux-nat.c (DR_FIRSTADDR, DR_LASTADDR, DR_STATUS)
356 (DR_CONTROL): Delete.
357 (struct arch_lwp_info): New.
358 (i386_linux_dr): Delete global.
359 (i386_linux_dr_set_control): Reimplement.
360 (i386_linux_dr_get_addr): New.
361 (i386_linux_dr_set_addr): Reimplement.
362 (i386_linux_dr_get_control): New.
363 (update_debug_registers_callback): New.
364 (i386_linux_dr_unset_status): Delete.
365 (i386_linux_dr_set_addr): Reimplement.
366 (i386_linux_prepare_to_resume): New.
367 (i386_linux_new_thread): Change parameter to an lwp pointer.
368 Reimplement.
369 (_initialize_i386_linux_nat): No longer install
370 i386_dr_low.reset_addr and i386_dr_low.unset_status. Install
371 i386_linux_dr_get_control as i386_dr_low.get_control. Install
372 i386_linux_dr_get_addr as i386_dr_low.get_addr. Install
373 i386_linux_prepare_to_resume.
374
375 * arm-linux-nat.c (arm_linux_new_thread): Change parameter to an
376 lwp pointer. Adjust.
377 * ia64-linux-nat.c (ia64_linux_new_thread): Likewise.
378 * mips-linux-nat.c (mips_linux_new_thread): Likewise.
379 * ppc-linux-nat.c (ppc_linux_new_thread): Likewise.
380 * s390-nat.c (s390_fix_watch_points): Likewise.
381
382 * i386-darwin-nat.c (DR_FIRSTADDR, DR_LASTADDR, DR_STATUS)
383 (DR_CONTROL): Delete.
384 (i386_darwin_dr_reset_addr): Delete.
385 (i386_darwin_dr_get_addr): New.
386 (i386_darwin_dr_get_control): New.
387 * go32-nat.c
388 (go32_get_dr7, go32_get_dr): New.
389 (init_go32_ops): No longer install i386_dr_low.reset_addr.
390 Install go32_get_dr7 as i386_dr_low.get_control. Install
391 go32_get_dr as i386_dr_low.get_addr.
392 * i386bsd-nat.c (i386bsd_dr_get): New.
393 (i386bsd_dr_reset_addr): Delete.
394 (i386bsd_dr_get_addr): New.
395 (i386bsd_dr_get_status): Use i386bsd_dr_get.
396 (i386bsd_dr_get_control): New.
397 * i386bsd-nat.h (i386bsd_dr_reset_addr): Delete.
398 (i386bsd_dr_get_addr): New.
399 (i386bsd_dr_get_control): New.
400 * i386fbsd-nat.c (_initialize_i386fbsd_nat): No longer install
401 i386_dr_low.reset_addr and i386_dr_low.unset_status. Install
402 i386bsd_dr_get_control as i386_dr_low.get_control. Install
403 i386bsd_dr_get_addr as i386_dr_low.get_addr.
404 * windows-nat.c (init_windows_ops): No longer install
405 i386_dr_low.reset_addr and i386_dr_low.unset_status. Install
406 cygwin_get_dr7 as i386_dr_low.get_control. Install cygwin_get_dr
407 as i386_dr_low.get_addr.
408 (cygwin_get_dr): New.
409 (cygwin_get_dr7): New.
410
dd110abf
PA
4112011-12-14 Pedro Alves <pedro@codesourcery.com>
412
413 * ia64-tdep.c (ia64_memory_remove_breakpoint): Use
414 target_write_raw_memory.
415 * m32r-tdep.c (m32r_memory_remove_breakpoint): Use
416 target_write_raw_memory.
417 * microblaze-linux-tdep.c
418 (microblaze_linux_memory_remove_breakpoint): Use
419 target_write_raw_memory.
420 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Use
421 target_write_raw_memory.
422
ad32032e
JB
4232011-12-14 Joel Brobecker <brobecker@adacore.com>
424
425 * linespec.c (decode_line_internal): Make static.
426
d14c4eb7
YQ
4272011-12-14 Yao Qi <yao@codesourcery.com>
428
429 * breakpoint.c (create_breakpoint): Set canonical.addr_string
430 for static tracepoint.
431
25564b66 4322011-12-13 Joel Brobecker <brobecker@adacore.com>
433
434 GDB 7.4 branch created (branch timestamp: 2011-12-13 13:00 UTC)
435 * version.in: Bump version to 7.4.50.20111213-cvs.
436
8837a20f
JB
4372011-12-13 Joel Brobecker <brobecker@adacore.com>
438
439 * NEWS: Create a new section for the next release branch.
440 Rename the section of the current branch, now that it has
441 been cut.
442
7dda8cff
JB
4432011-12-11 Joel Brobecker <brobecker@adacore.com>
444
445 * ada-lang.c (ada_exception_support_info_sniffer): Improve
446 error message.
447
3eecfa55
JB
4482011-12-11 Joel Brobecker <brobecker@adacore.com>
449
450 * ada-lang.c (struct ada_inferior_data) [exception_info]:
451 New field.
452 (exception_info): Delete.
453 (ada_exception_support_info_sniffer): Get exception_support_info
454 data from our per-inferior data. Adjust code accordingly.
455 (ada_unhandled_exception_name_addr_from_raise): Likewise.
456 (ada_exception_name_addr_1, ada_exception_sym_name): Ditto.
457 (ada_executable_changed_observer): Delete.
458 (_initialize_ada_language): Remove call to
459 observer_attach_executable_changed.
460
a6af7abe
JB
4612011-12-11 Joel Brobecker <brobecker@adacore.com>
462
463 * ada-lang.c (ada_has_this_exception_support): Raise an error
464 if we could find the Ada exception hook in the Ada runtime,
465 but no debugging info for that hook.
466
f17011e0
JB
4672011-12-11 Joel Brobecker <brobecker@adacore.com>
468
469 * ada-lang.c (ada_has_this_exception_support): New function,
470 extracted out of ada_exception_sal and ada_exception_sal.
471 (ada_exception_support_info_sniffer): Simplify by using
472 ada_has_this_exception_support.
473 (ada_exception_sal): Replace unnecessary checks by assertions.
474 Minor simplifications.
475
d3fbdd86
AS
4762011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
477
478 * breakpoint.c (update_global_location_list): Remove nested
479 definition of `b'(-Wshadow).
480
eacd795a
AS
4812011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
482
483 * breakpoint.c (insert_breakpoint_locations): Rename `error' to
484 `error_flag'(-Wshadow).
485
ad13d8df
AS
4862011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
487
488 * bfd-target.c (target_bfd_reopen): Rename `bfd' to
489 `abfd'(-Wshadow).
490
917793af
AS
4912011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
492
493 * annotate.c (annotate_array_section_begin): Rename `index' to
494 `idx'(-Wshadow).
495
d48ebb5b
AS
4962011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
497
498 * amd64-tdep.c (amd64_get_unused_input_int_reg): Rename `index' to
499 `idx'(-Wshadow).
500
9ed936ec
AS
5012011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
502
503 * amd64-linux-tdep.c (amd64_canonicalize_syscall): Rename
504 `syscall' to `syscall_number'(-Wshadow).
505
a35ddb44
AS
5062011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
507
508 * ada-lang.c (remove_extra_symbols): Rename `remove' to
509 `remove_p'(-Wshadow).
510
e5e61bd7
AS
5112011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
512
513 * ada-exp.y (write_var_or_type): Rename nested `renaming' to
514 `ren_sym'(-Wshadow).
515
d200ab1e
DE
5162011-12-10 Doug Evans <dje@google.com>
517
b0df02fd
DE
518 * dwarf2read.c (dwarf2_per_cu_data): Rename debug_type_section to
519 debug_types_section. All uses updated.
520 (partial_read_comp_unit_head): Rename parameter is_debug_type_section
521 to is_debug_types_section.
522
d200ab1e
DE
523 * python/py-auto-load.c (source_section_scripts): Call xfree
524 instead of free.
525
4511b1ba
YQ
5262011-12-10 Hui Zhu <teawater@gmail.com>
527 Yao Qi <yao@codesourcery.com>
528
529 * tracepoint.c (start_tracing): Clear `inserted' flag.
530
df5a4bd3
HZ
5312011-12-10 Hui Zhu <teawater@gmail.com>
532
533 * tracepoint.c (create_tsv_from_upload): Change sprintf to xstrprintf.
534
1afeeb75
AS
5352011-12-09 Andrey Smirnov <andrew.smirnov@gmail.com>
536
537 * breakpoint.c (bp_loc_is_permanent): Rename `brk' to
538 `bpoint'(-Wshadow).
539
80e1d417
AS
5402011-12-09 Andrey Smirnov <andrew.smirnov@gmail.com>
541
542 * breakpoint.c (update_static_tracepoint): Rename nested `sal' and
543 `marker' variables to `sal2' and `tpmarker' respectively
544 (-Wshadow).
545
04ca3c22
AP
5462011-12-09 Andrew Pinski <apinski@cavium.com>
547
548 * linespec.c (hash_address_entry): Use iterative_hash_object on each
549 field rather than the struct itself.
550
8a2c437b
TT
5512011-12-09 Tom Tromey <tromey@redhat.com>
552
553 * breakpoint.c (compare_breakpoints): New function.
554 (clear_command): Remove duplicate breakpoints. Properly clean
555 up.
556
280711e7
MR
5572011-12-08 Maciej W. Rozycki <macro@mips.com>
558 Maciej W. Rozycki <macro@codesourcery.com>
559
560 * mips-tdep.c (mips_skip_mips16_trampoline_code): Sign-extend
561 address chunks retrieved from decoded lui/addiu pairs.
562
4c2051c6
MR
5632011-12-08 Maciej W. Rozycki <macro@codesourcery.com>
564
565 * mips-tdep.c (extended_offset): Correct calculation.
566 (unpack_mips16): Correct bitfield positions used for extraction
567 of the immediate argument; fix sign-extension of same.
568 (extended_mips16_next_pc): Correct B instruction's offset
569 calculation. Correct register decoding of the BEQZ and BNEZ
570 as well as jump-register instructions. Handle compact jumps.
571
ff011ed7
TT
5722011-12-08 Tom Tromey <tromey@redhat.com>
573
574 * objfiles.h (struct objfile): Remove obsolete comment.
575 * objfiles.c (build_objfile_section_table): Remove obsolete
576 comment.
577
7cd3876c
SS
5782011-12-07 Stan Shebs <stan@codesourcery.com>
579
580 * MAINTAINERS (Responsible Maintainers): Add Yao Qi as
581 maintainer of the tic6x target.
582
35f73cfc
UW
5832011-12-07 Ulrich Weigand <ulrich.weigand@linaro.org>
584
585 * arm-tdep.h (arm_deal_with_atomic_sequence): Add prototype.
586 * arm-tdep.c (thumb_deal_with_atomic_sequence_raw): New function.
587 (arm_deal_with_atomic_sequence_raw): Likewise.
588 (arm_deal_with_atomic_sequence): Likewise.
589 (arm_software_single_step): Call it.
590 * arm-linux-tdep.c (arm_linux_software_single_step): Likewise.
591
94eae614
UW
5922011-12-07 Ulrich Weigand <uweigand@de.ibm.com>
593
594 * s390-tdep.c: Replace "Linux" by "GNU/Linux" in comments
595 where appropriate.
596 * s390-tdep.h: Likewise.
597
13b8d0c6
TG
5982011-12-07 Tristan Gingold <gingold@adacore.com>
599
600 * machoread.c (macho_symtab_read): Do not consider N_OPT as
601 a debugging stab. Improve complaint message.
602
5436df95
MR
6032011-12-07 Maciej W. Rozycki <macro@codesourcery.com>
604
605 * mips-tdep.c (mips32_scan_prologue): Only update the immediate
606 load adjustment if still within the prologue.
607
040dff2a
MR
6082011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
609
610 * mips-tdep.c (mips32_next_pc): Fix floating point condition
611 code mask.
612
754d7c78
MR
6132011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
614
615 * mips-tdep.c (deal_with_atomic_sequence): Fix the handling
616 of BLTZ* and BGEZ* instructions.
617
91912e4d
MR
6182011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
619
620 * mips-tdep.c (mips_pc_is_mips16): Reverse the order of checks
621 performed to determine whether an address refers to standard
622 MIPS or MIPS16 code.
623 (mips16_next_pc): Use mips_pc_is_mips16 instead of
624 is_mips16_addr.
625
f0ba3972
PA
6262011-12-06 Pedro Alves <pedro@codesourcery.com>
627
628 * breakpoint.c (breakpoint_restore_shadows): Rename to ...
629 (breakpoint_xfer_memory): ... this. Change prototype. Handle
630 memory writes too.
631 * breakpoint.h (breakpoint_restore_shadows): Delete.
632 (breakpoint_xfer_memory): Declare.
633 * mem-break.c (default_memory_insert_breakpoint)
634 (default_memory_remove_breakpoint): Use target_write_raw_memory.
635 (memory_xfer_partial): Rename to ...
636 (memory_xfer_partial_1): ... this. Don't mask out breakpoints
637 here.
638 (memory_xfer_partial): New.
639 (target_write_raw_memory): New.
640 * target.h (target_write_raw_memory): New.
641
31aba06f
DE
6422011-12-06 Doug Evans <dje@google.com>
643
644 * linespec.c (decode_dollar): Avoid "may be used uninitialized" warning.
645
f8eba3c6
TT
6462011-12-06 Joel Brobecker <brobecker@acacore.com>
647
648 * language.h (struct language_defn): Add new component
649 la_symbol_name_compare.
650 * symfile.h (struct quick_symbol_functions): Update the profile
651 of parameter "name_matcher" for the expand_symtabs_matching
652 method. Update the documentation accordingly.
653 * ada-lang.h (ada_name_for_lookup): Add declaration.
654 * ada-lang.c (ada_name_for_lookup): New function, extracted out
655 from ada_iterate_over_symbols.
656 (ada_iterate_over_symbols): Do not encode symbol name anymore.
657 (ada_expand_partial_symbol_name): Adjust profile.
658 (ada_language_defn): Add value for la_symbol_name_compare field.
659 * linespec.c: #include "ada-lang.h".
660 (iterate_name_matcher): Add language parameter. Replace call
661 to strcmp_iw by call to language->la_symbol_name_compare.
662 (decode_variable): Encode COPY if current language is Ada.
663 * dwarf2read.c (dw2_expand_symtabs_matching): Adjust profile
664 of name_matcher parameter. Adjust call to name_matcher.
665 * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
666 (expand_partial_symbol_names): Update profile of parameter "fun".
667 * psymtab.h (expand_partial_symbol_names): Update profile of
668 parameter "fun".
669 * symtab.c (demangle_for_lookup): Update function documentation.
670 (search_symbols_name_matches): Add language parameter.
671 (expand_partial_symbol_name): Likewise.
672 * c-lang.c (c_language_defn, cplus_language_defn)
673 (asm_language_defn, minimal_language_defn): Add value for
674 la_symbol_name_compare field.
675 * d-lang.c (d_language_defn): Likewise.
676 * f-lang.c (f_language_defn): Ditto.
677 * jv-lang.c (java_language_defn): Ditto.
678 * m2-lang.c (m2_language_defn): Ditto.
679 * objc-lang.c (objc_language_defn): Ditto.
680 * opencl-lang.c (opencl_language_defn): Ditto.
681 * p-lang.c (pascal_language_defn): Ditto.
682 * language.c (unknown_language_defn, auto_language_defn)
683 (local_language_defn): Ditto.
684
6852011-12-06 Tom Tromey <tromey@redhat.com>
686
687 * linespec.c (iterate_over_all_matching_symtabs): Use
688 LA_ITERATE_OVER_SYMBOLS.
689 (lookup_prefix_sym, add_matching_symbols_to_info): Likewise.
690 (find_function_symbols, decode_variable): Remove Ada special
691 case.
692 * language.h (struct language_defn) <la_iterate_over_symbols>: New
693 field.
694 (LA_ITERATE_OVER_SYMBOLS): New macro.
695 * language.c (unknown_language_defn, auto_language_defn)
696 (local_language_defn): Update.
697 * c-lang.c (c_language_defn, cplus_language_defn)
698 (asm_language_defn, minimal_language_defn): Update.
699 * d-lang.c (d_language_defn): Update.
700 * f-lang.c (f_language_defn): Update.
701 * jv-lang.c (java_language_defn): Update.
702 * m2-lang.c (m2_language_defn): Update.
703 * objc-lang.c (objc_language_defn): Update.
704 * opencl-lang.c (opencl_language_defn): Update.
705 * p-lang.c (pascal_language_defn): Update.
706 * ada-lang.c (ada_iterate_over_symbols): New function.
707 (ada_language_defn): Update.
708
7092011-12-06 Tom Tromey <tromey@redhat.com>
710 Joel Brobecker <brobecker@acacore.com>
711
712 PR breakpoints/13105, PR objc/8341, PR objc/8343, PR objc/8366,
713 PR objc/8535, PR breakpoints/11657, PR breakpoints/11970,
714 PR breakpoints/12023, PR breakpoints/12334, PR breakpoints/12856,
715 PR shlibs/8929, PR shlibs/7393:
716 * python/py-type.c (compare_maybe_null_strings): Rename from
717 compare_strings.
718 (check_types_equal): Update.
719 * utils.c (compare_strings): New function.
720 * tui/tui-winsource.c (tui_update_breakpoint_info): Update for
721 location changes.
722 * tracepoint.c (scope_info): Update.
723 (trace_find_line_command): Use DECODE_LINE_FUNFIRSTLINE.
724 * symtab.h (iterate_over_minimal_symbols)
725 (iterate_over_some_symtabs, iterate_over_symtabs)
726 (find_pcs_for_symtab_line, iterate_over_symbols)
727 (demangle_for_lookup): Declare.
728 (expand_line_sal): Remove.
729 * symtab.c (iterate_over_some_symtabs, iterate_over_symtabs)
730 (lookup_symtab_callback): New functions.
731 (lookup_symtab): Rewrite.
732 (demangle_for_lookup): New function, extract from
733 lookup_symbol_in_language.
734 (lookup_symbol_in_language): Use it.
735 (iterate_over_symbols): New function.
736 (find_line_symtab): Update.
737 (find_pcs_for_symtab_line): New functions.
738 (find_line_common): Add 'start' argument.
739 (decode_line_spec): Update. Change argument to 'flags', change
740 interpretation.
741 (append_expanded_sal): Remove.
742 (append_exact_match_to_sals): Remove.
743 (expand_line_sal): Remove.
744 * symfile.h (struct quick_symbol_functions) <lookup_symtab>:
745 Remove.
746 <map_symtabs_matching_filename>: New field.
747 * stack.c (func_command): Only look in the current program space.
748 Use DECODE_LINE_FUNFIRSTLINE.
749 * source.c (line_info): Set pspace on sal. Check program space in
750 the loop. Use DECODE_LINE_LIST_MODE.
751 (select_source_symtab): Use DECODE_LINE_FUNFIRSTLINE.
752 * solib-target.c: Remove DEF_VEC_I(CORE_ADDR).
753 * python/python.c (gdbpy_decode_line): Update.
754 * psymtab.c (partial_map_expand_apply): New function.
755 (partial_map_symtabs_matching_filename): Rename from
756 lookup_partial_symbol. Update arguments.
757 (lookup_symtab_via_partial_symtab): Remove.
758 (psym_functions): Update.
759 * objc-lang.h (parse_selector, parse_method): Don't declare.
760 (find_imps): Update.
761 * objc-lang.c (parse_selector, parse_method): Now static.
762 (find_methods): Change arguments. Fill in a vector of symbol
763 names.
764 (uniquify_strings): New function.
765 (find_imps): Change arguments.
766 * minsyms.c (iterate_over_minimal_symbols): New function.
767 * linespec.h (enum decode_line_flags): New.
768 (struct linespec_sals): New.
769 (struct linespec_result) <canonical>: Remove.
770 <pre_expanded, addr_string, sals>: New fields.
771 (destroy_linespec_result, make_cleanup_destroy_linespec_result)
772 (decode_line_full): Declare.
773 (decode_line_1): Update.
774 * linespec.c (struct address_entry, struct linespec_state, struct
775 collect_info): New types.
776 (add_sal_to_sals_basic, add_sal_to_sals, hash_address_entry)
777 (eq_address_entry, maybe_add_address): New functions.
778 (total_number_of_methods): Remove.
779 (iterate_name_matcher, iterate_over_all_matching_symtabs): New
780 functions.
781 (find_methods): Change arguments. Don't canonicalize input.
782 Simplify logic.
783 (add_matching_methods, add_constructors)
784 (build_canonical_line_spec): Remove.
785 (filter_results, convert_results_to_lsals): New functions.
786 (decode_line_2): Change arguments. Rewrite for new data
787 structures.
788 (decode_line_internal): Rename from decode_line_1. Change
789 arguments. Add cleanups. Update for new data structures.
790 (linespec_state_constructor, linespec_state_destructor)
791 (decode_line_full, decode_line_1): New functions.
792 (decode_indirect): Change arguments. Update.
793 (locate_first_half): Use skip_spaces.
794 (decode_objc): Change arguments. Update for new data structures.
795 Simplify logic.
796 (decode_compound): Change arguments. Add cleanups. Remove
797 fallback code, replace with error.
798 (struct decode_compound_collector): New type.
799 (collect_one_symbol): New function.
800 (lookup_prefix_sym): Change arguments. Update.
801 (compare_symbol_name, add_all_symbol_names_from_pspace)
802 (find_superclass_methods ): New functions.
803 (find_method): Rewrite.
804 (struct symtab_collector): New type.
805 (add_symtabs_to_list, collect_symtabs_from_filename): New
806 functions.
807 (symtabs_from_filename): Change API. Rename from
808 symtab_from_filename.
809 (collect_function_symbols): New function.
810 (find_function_symbols): Change API. Rename from
811 find_function_symbol. Rewrite.
812 (decode_all_digits): Change arguments. Rewrite.
813 (decode_dollar): Change arguments. Use decode_variable.
814 (decode_label): Change arguments. Rewrite.
815 (collect_symbols): New function.
816 (minsym_found): Change arguments. Rewrite.
817 (check_minsym, search_minsyms_for_name)
818 (add_matching_symbols_to_info): New function.
819 (decode_variable): Change arguments. Iterate over all symbols.
820 (symbol_found): Remove.
821 (symbol_to_sal): New function.
822 (init_linespec_result, destroy_linespec_result)
823 (cleanup_linespec_result, make_cleanup_destroy_linespec_result):
824 New functions.
825 (decode_digits_list_mode, decode_digits_ordinary): New functions.
826 * dwarf2read.c (dw2_map_expand_apply): New function.
827 (dw2_map_symtabs_matching_filename): Rename from
828 dw2_lookup_symtab. Change arguments.
829 (dwarf2_gdb_index_functions): Update.
830 * dwarf2loc.c: Remove DEF_VEC_I(CORE_ADDR).
831 * defs.h (compare_strings): Declare.
832 * cli/cli-cmds.c (compare_strings): Move to utils.c.
833 (edit_command, list_command): Use DECODE_LINE_LIST_MODE. Call
834 filter_sals.
835 (compare_symtabs, filter_sals): New functions.
836 * breakpoint.h (struct bp_location) <line_number, source_file>:
837 New fields.
838 (struct breakpoint) <line_number, source_file>: Remove.
839 <filter>: New field.
840 * breakpoint.c (print_breakpoint_location, init_raw_breakpoint)
841 (momentary_breakpoint_from_master, add_location_to_breakpoint):
842 Update for changes to locations.
843 (init_breakpoint_sal): Add 'filter' argument. Set 'filter' on
844 breakpoint.
845 (create_breakpoint_sal): Add 'filter' argument.
846 (remove_sal, expand_line_sal_maybe): Remove.
847 (create_breakpoints_sal): Remove 'sals' argument. Handle
848 pre-expanded sals and the filter.
849 (parse_breakpoint_sals): Use decode_line_full.
850 (check_fast_tracepoint_sals): Use get_sal_arch.
851 (create_breakpoint): Create a linespec_sals. Update.
852 (break_range_command): Use decode_line_full. Update.
853 (until_break_command): Update.
854 (clear_command): Update match conditions for linespec.c changes.
855 Use DECODE_LINE_LIST_MODE.
856 (say_where): Update for changes to locations.
857 (bp_location_dtor): Free 'source_file'.
858 (base_breakpoint_dtor): Free 'filter'. Don't free 'source_file'.
859 (update_static_tracepoint): Update for changes to locations.
860 (update_breakpoint_locations): Disable ranged breakpoint if too
861 many locations match. Update.
862 (addr_string_to_sals): Use decode_line_full. Resolve all sal
863 PCs.
864 (breakpoint_re_set_default): Don't call expand_line_sal_maybe.
865 (decode_line_spec_1): Update. Change argument name to 'flags',
866 change interpretation.
867 * block.h (block_containing_function): Declare.
868 * block.c (block_containing_function): New function.
869 * skip.c (skip_function_command): Update.
870 (skip_re_set): Update.
871 * infcmd.c (jump_command): Use DECODE_LINE_FUNFIRSTLINE.
872 * mi/mi-main.c (mi_cmd_trace_find): Use DECODE_LINE_FUNFIRSTLINE.
873 * NEWS: Add entry.
874
8752011-12-06 Tom Tromey <tromey@redhat.com>
876
877 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Allow
878 breakpoint's pspace to be NULL.
879 * breakpoint.h (struct breakpoint) <pspace>: Update comment.
880 * breakpoint.c (init_raw_breakpoint): Conditionally set
881 breakpoint's pspace.
882 (init_breakpoint_sal): Don't set breakpoint's pspace.
883 (prepare_re_set_context): Conditionally switch program space.
884 (addr_string_to_sals): Check executing_startup on location's
885 program space.
886
8872011-12-06 Tom Tromey <tromey@redhat.com>
888
889 * breakpoint.h (enum enable_state) <bp_startup_disabled>: Remove.
890 * breakpoint.c (should_be_inserted): Explicitly check if program
891 space is executing startup.
892 (describe_other_breakpoints): Update.
893 (disable_breakpoints_before_startup): Change executing_startup
894 earlier. Remove loop.
895 (enable_breakpoints_after_startup): Likewise.
896 (init_breakpoint_sal): Don't use bp_startup_disabled.
897 (create_breakpoint): Don't use bp_startup_disabled.
898 (update_global_location_list): Use should_be_inserted.
899 (bkpt_re_set): Update.
900
75c8c9d7
TT
9012011-12-06 Tom Tromey <tromey@redhat.com>
902
903 * python/lib/gdb/command/pretty_printers.py
904 (InfoPrettyPrinter.invoke1): Remove extra double quote.
905
7376e450
TT
9062011-12-06 Tom Tromey <tromey@redhat.com>
907
908 * NEWS: Add MI news.
909
c642a434
UW
9102011-12-06 Ulrich Weigand <uweigand@de.ibm.com>
911
912 * s390-tdep.h (S390_ORIG_R2_REGNUM): Define.
913 (S390_LAST_BREAK_REGNUM): Likewise.
914 (S390_SYSTEM_CALL_REGNUM): Likewise.
915 (S390_NUM_REGS): Update.
916
917 (s390_regmap_last_break): Add declaration.
918 (s390x_regmap_last_break): Likewise.
919 (s390_regmap_system_call): Likewise.
920
921 (tdesc_s390_linux32v1): Add declaration.
922 (tdesc_s390_linux32v2): Likewise.
923 (tdesc_s390_linux64v1): Likewise.
924 (tdesc_s390_linux64v2): Likewise.
925 (tdesc_s390x_linux64v1): Likewise.
926 (tdesc_s390x_linux64v2): Likewise.
927
928 * s390-tdep.c: Include new target description files
929 "features/s390-linux32v1.c", "features/s390-linux32v2.c",
930 "features/s390-linux64v1.c", "features/s390-linux64v2.c",
931 "features/s390x-linux64v1.c", and "features/s390x-linux64v2.c".
932 (s390_cannot_store_register): New function.
933 (s390_write_pc): Likewise.
934 (s390_dwarf_regmap): Add fields for new registers.
935 (s390_regmap_gregset): Likewise.
936 (s390x_regmap_gregset): Likewise.
937 (s390_regmap_fpregset): Likewise.
938 (s390_regmap_upper): Likewise.
939 (s390_regmap_last_break): New variable.
940 (s390x_regmap_last_break): Likewise.
941 (s390_regmap_system_call): Likewise.
942 (s390_last_break_regset): Likewise.
943 (s390x_last_break_regset): Likewise.
944 (s390_system_call_regset): Likewise.
945 (s390_upper_regset_sections): Rename to ...
946 (s390_linux64_regset_sections): ... this.
947 (s390_linux32_regset_sections): New variable.
948 (s390x_linux64_regset_sections): Likewise.
949 (s390_linux32v1_regset_sections): Likewise.
950 (s390_linux32v2_regset_sections): Likewise.
951 (s390_linux64v1_regset_sections): Likewise.
952 (s390_linux64v2_regset_sections): Likewise.
953 (s390x_linux64v1_regset_sections): Likewise.
954 (s390x_linux64v2_regset_sections): Likewise.
955 (s390_regset_from_core_section): Handle .reg-s390-last-break and
956 .reg-s390-system-call core file sections.
957 (s390_core_read_description): Check for presence of
958 .reg-s390-last-break and .reg-s390-system-call core file
959 sections and return appropriate target description.
960 (s390_gdbarch_init): Detect Linux-specific registers "orig_r2",
961 "last_break" and "system_call" in target description. Install
962 appropriate gdbarch_core_regset_sections array.
963 Call set_gdbarch_cannot_store_register and set_gdbarch_write_pc.
964 (_initialize_s390_tdep): Initialize additional target descriptions.
965
966 * s390-nat.c: Include "elf/common.h".
967 (PTRACE_GETREGSET, PTRACE_SETREGSET): Define if undefined.
968 (have_regset_last_break): New static variable.
969 (have_regset_system_call): Likewise.
970 (s390_native_supply): Handle S390_ORIG_R2_REGNUM.
971 (s390_native_collect): Likewise.
972 (fetch_regset, store_regset, check_regset): New functions.
973 (s390_linux_fetch_inferior_registers): Handle S390_LAST_BREAK_REGNUM
974 and S390_SYSTEM_CALL_REGNUM.
975 (s390_linux_store_inferior_registers): Likewise.
976 (s390_read_description): Check for presence of NT_S390_LAST_BREAK
977 and NT_S390_SYSTEM_CALL regsets and use appropriate description.
978
979 * features/Makefile (WHICH): Add s390-linux32v1, s390-linux64v1,
980 s390x-linux64v1, s390-linux32v2, s390-linux64v2, and s390x-linux64v2.
981 (s390-linux32v1-expedite): Define.
982 (s390-linux32v2-expedite): Likewise.
983 (s390-linux64v1-expedite): Likewise.
984 (s390-linux64v2-expedite): Likewise.
985 (s390x-linux64v1-expedite): Likewise.
986 (s390x-linux64v2-expedite): Likewise.
987
988 * features/s390-linux32.xml: Add orig_r2 register.
989 * features/s390-linux64.xml: Likewise.
990 * features/s390x-linux64.xml: Likewise.
991 * features/s390-linux32v1.xml: New file.
992 * features/s390-linux32v2.xml: Likewise.
993 * features/s390-linux64v1.xml: Likewise.
994 * features/s390-linux64v2.xml: Likewise.
995 * features/s390x-linux64v1.xml: Likewise.
996 * features/s390x-linux64v2.xml: Likewise.
997
998 * features/s390-linux32.c: Regenerate.
999 * features/s390-linux64.c: Likewise.
1000 * features/s390x-linux64.c: Likewise.
1001 * features/s390-linux32v1.c: New generated file.
1002 * features/s390-linux32v2.c: Likewise.
1003 * features/s390-linux64v1.c: Likewise.
1004 * features/s390-linux64v2.c: Likewise.
1005 * features/s390x-linux64v1.c: Likewise.
1006 * features/s390x-linux64v2.c: Likewise.
1007
1008 * regformats/s390-linux32.dat: Regenerate.
1009 * regformats/s390-linux64.dat: Regenerate.
1010 * regformats/s390x-linux64.dat: Regenerate.
1011 * regformats/s390-linux32v1.dat: New generated file.
1012 * regformats/s390-linux32v2.dat: Likewise.
1013 * regformats/s390-linux64v1.dat: Likewise.
1014 * regformats/s390-linux64v2.dat: Likewise.
1015 * regformats/s390x-linux64v1.dat: Likewise.
1016 * regformats/s390x-linux64v2.dat: Likewise.
1017
336060f3
PA
10182011-12-05 Pedro Alves <pedro@codesourcery.com>
1019
1020 * linux-nat.c (resume_stopped_resumed_lwps): Call
1021 registers_changed.
1022
049e32d3
PA
10232011-12-05 Pedro Alves <pedro@codesourcery.com>
1024
1025 * breakpoint.c: Include record.h.
1026 (breakpoints_always_inserted_mode): Return false when the record
1027 target is in use.
1028
5c03c7f9 10292011-12-05 Pedro Alves <pedro@codesourcery.com>
482950ed
PA
1030
1031 * amd64-linux-nat.c (amd64_linux_dr_get): Remove FIXME comment.
1032 Reinstate perror_with_name call on ptrace error. Remove #if 0.
1033 * i386-linux-nat.c (i386_linux_dr_get): Likewise.
1034 * i386bsd-nat.c (i386bsd_dr_get_status): Likewise.
1035
fbbd034e
AS
10362011-12-05 Andrey Smirnov <andrew.smirnov@gmail.com>
1037
1038 * breakpoint.c (init_breakpoint_sal): Remove nested definitions of
1039 `i'(-Wshadow).
1040
a5ff8356 10412011-12-05 Andrey Smirnov <andrew.smirnov@gmail.com>
12747160
AS
1042
1043 * bcache.c (bcache): Rename `bcache' to `cache'(-Wshadow).
1044
10452011-12-05 Andrey Smirnov <andrew.smirnov@gmail.com>
1046
a5ff8356
AS
1047 * amd64-tdep.c (amd64_push_dummy_call): Remove nested definition
1048 of `tdep'(-Wshadow).
1049
93f2a35e
JK
10502011-12-03 Jan Kratochvil <jan.kratochvil@redhat.com>
1051
1052 Fix compilation --without-expat.
1053 * solib-svr4.c (svr4_free_so, svr4_free_library_list): Move them here
1054 from ...
1055 [HAVE_LIBEXPAT] (svr4_free_so, svr4_free_library_list): ... here.
1056
2268b414
JK
10572011-12-02 Paul Pluzhnikov <ppluzhnikov@google.com>
1058 Jan Kratochvil <jan.kratochvil@redhat.com>
1059
1060 * Makefile.in (XMLFILES): Add library-list-svr4.dtd.
1061 * features/library-list-svr4.dtd: New file.
1062 * remote.c (PACKET_qXfer_libraries_svr4): New.
1063 (remote_protocol_features): new entry for PACKET_qXfer_libraries_svr4.
1064 (remote_xfer_partial): Handle TARGET_OBJECT_LIBRARIES_SVR4.
1065 * solib-svr4.c (struct svr4_library_list): New.
1066 [HAVE_LIBEXPAT]: Include xml-support.h.
1067 [HAVE_LIBEXPAT] (svr4_library_list_start_library)
1068 [HAVE_LIBEXPAT] (svr4_library_list_start_list, svr4_library_attributes)
1069 [HAVE_LIBEXPAT] (svr4_library_list_children)
1070 [HAVE_LIBEXPAT] (svr4_library_list_attributes)
1071 [HAVE_LIBEXPAT] (svr4_library_list_elements, svr4_parse_libraries)
1072 [HAVE_LIBEXPAT] (svr4_current_sos_via_xfer_libraries)
1073 [!HAVE_LIBEXPAT] (svr4_current_sos_via_xfer_libraries): New.
1074 (svr4_read_so_list): Extend the corruption message by addresses.
1075 (svr4_current_sos): New variable library_list, call
1076 svr4_current_sos_via_xfer_libraries.
1077 * target.h (enum target_object): New TARGET_OBJECT_LIBRARIES_SVR4.
1078
585861ea
JK
10792011-12-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1080
1081 PR threads/13448
1082 * dwarf2read.c (decode_locdesc): Handle DW_OP_const8u.
1083 For DW_OP_GNU_push_tls_address increment the value, new comment for it.
1084
9750bca9
JK
10852011-12-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1086
1087 PR breakpoints/13346
1088 * dwarf2read.c (process_psymtab_comp_unit): Set
1089 PSYMTABS_ADDRMAP_SUPPORTED.
1090 * psympriv.h (struct partial_symtab): Comment textlow and texthigh
1091 validity. New field psymtabs_addrmap_supported.
1092 * psymtab.c (find_pc_sect_psymtab_closer): New gdb_assert on
1093 psymtabs_addrmap_supported.
1094 (find_pc_sect_psymtab): Do not fallback to TEXTLOW and TEXTHIGH for
1095 !PSYMTABS_ADDRMAP_SUPPORTED.
1096 (dump_psymtab, maintenance_info_psymtabs): Print also
1097 psymtabs_addrmap_supported.
1098
f28c316a
DE
10992011-12-01 Doug Evans <dje@google.com>
1100
1101 * python/py-type.c (type_object_methods): Fix "array" doc string.
1102
fc0ae648
AB
11032011-12-01 Andrew Burgess <aburgess@broadcom.com>
1104
1105 * source.c (print_source_lines_base): Fix missing braces on else
1106 clause leading to additional output.
1107
d6db1fab
UW
11082011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
1109
1110 * s390-nat.c (SUBOFF): Remove.
1111 (s390_native_supply, s390_native_collect): New functions.
1112 (supply_gregset, supply_fpregset): Use s390_native_supply.
1113 (fill_gregset, fill_fpregset): Use s390_native_collect.
1114
1115 * s390-tdep.c (s390_pseudo_register_reggroup_p): Update comment.
1116 (s390_unwind_pseudo_register): New function.
1117 (s390_prologue_frame_unwind_cache): Unwind PSW address and mask
1118 registers instead of PC and CC.
1119 (s390_backchain_frame_unwind_cache): Likewise.
1120 (s390_sigtramp_frame_unwind_cache): Do not unwind PC, CC, or
1121 full GPR pseudos.
1122 (s390_trad_frame_prev_register): New function.
1123 (s390_frame_prev_register): Use it.
1124 (s390_sigtramp_frame_prev_register): Likewise.
1125 (s390_dwarf2_prev_register): Use s390_unwind_pseudo_register.
1126 (s390_dwarf2_frame_init_reg): Unwind PSW address and mask. Use
1127 special callback to unwind any pseudo.
1128
1129 * features/s390-core32.xml: Add pswm/pswa to save/restore group.
1130 * features/s390-core64.xml: Likewise.
1131 * features/s390x-core64.xml: Likewise.
1132 * features/s390-linux32.c: Regenerate.
1133 * features/s390-linux64.c: Likewise.
1134 * features/s390x-linux64.c: Likewise.
1135
1dd635ac
UW
11362011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
1137
1138 * s390-tdep.c (s390_gdbarch_init): Call set_gdbarch_get_siginfo_type.
1139
0161e4b9
UW
11402011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
1141
1142 * s390-tdep.c (s390_displaced_step_fixup): Fix processing of LARL
1143 instruction. Add more diagnostic output.
1144
0c36327f
AS
11452011-11-29 Andrey Smirnov <andrew.smirnov@gmail.com>
1146
1147 * MAINTAINERS (Write After Approval): Add myself to the list.
1148
b4264740
SD
11492011-11-29 Sanjoy Das <sdas@igalia.com>
1150
1151 * jit.c (add_objfile_entry, jit_reader_try_read_symtab)
1152 (jit_bfd_try_read_symtab): Fix comments.
1153
87326c78
DD
11542011-11-28 DJ Delorie <dj@redhat.com>
1155
1156 * NEWS: Mention RL78 simulator.
1157
1e3a8f45
JB
11582011-11-28 Joel Brobecker <brobecker@adacore.com>
1159
1160 * symfile.h (struct quick_symbol_functions): Fix the documentation
1161 of field map_matching_symbols, as symbols are sorted using
1162 strcmp_iw_ordered, not strcmp_iw.
1163
265e52c3
JB
11642011-11-28 Paul Hilfinger <hilfinger@adacore.com>
1165
1166 * symfile.h (struct quick_symbol_functions): Update the
1167 documentation for field map_matching_symbols.
1168
1a1d5513
JB
11692011-11-28 Joel Brobecker <brobecker@adacore.com>
1170
1171 * ada-lang.c (compare_names): Fix wrong return value in case
1172 string1 starts with the same contents as string2, followed
1173 by an underscore that do not start a symbol name suffix.
1174
5d9c5995
PM
11752011-11-28 Phil Muldoon <pmuldoon@redhat.com>
1176
1177 PR python/13369
1178 PR python/13374
1179
1180 * python/python.c (gdbpy_decode_line): Do not acquire GIL.
1181 * python/py-inferior.c (inferior_to_inferior_object): Ditto.
1182 * python/py-value.c (valpy_nonzero): Use TRY_CATCH to catch GDB
1183 exceptions.
1184 * python/py-type.c (typy_strip_typedefs): Ditto.
1185 (typy_legacy_template_argument): Ditto.
1186 * python/py-inferior.c (inferior_to_inferior_object): Ditto.
1187 * python/py-breakpoint.c (bppy_set_ignore_count): Ditto.
1188
2bf50f6f
JB
11892011-11-27 Joel Brobecker <brobecker@acacore.com>
1190
1191 * remote.c (remote_get_tracepoint_status): Delete addrbuf
1192 local variable. Avoid use of sprintf_vma.
1193
744ab88c
SD
11942011-11-27 Sanjoy Das <sdas@igalia.com>
1195
1196 Fix regression in jit.exp.
1197 * jit.c (jit_reader_try_read_symtab, jit_bfd_try_read_symtab)
1198 (jit_register_code): Set the jit_objfile_data field to the correct
1199 value.
1200
46ad3598
UW
12012011-11-25  Uros Bizjak  <ubizjak@gmail.com>
1202
1203 * alpha-tdep.c (br_opcode): New.
1204 (ldl_l_opcode, ldq_l_opcode, stl_c_opcode, stq_c_opcode): Ditto.
1205 (alpha_deal_with_atomic_sequence): New function.
1206 (alpha_gdbarch_init): Handle single stepping of atomic sequences
1207 with alpha_deal_with_atomic_sequence.
1208
e4c5f296
TG
12092011-11-24 Tristan Gingold <gingold@adacore.com>
1210
1211 * machoread.c (oso_el): Remove num_Sections, symbols, offsets
1212 fields. Add oso_sym, end_sym and nbr_syms.
1213 (macho_register_oso): Change interface.
1214 (macho_symtab_add_minsym): New function.
1215 (macho_symtab_read): Rewritten.
1216 (get_archive_prefix_len): Remove trailing blanks.
1217 (oso_el_compare_name): Add comment.
1218 (struct macho_sym_hash_entry): New structure.
1219 (macho_relocate_common_syms): Remove.
1220 (macho_sym_hash_newfunc): New function.
1221 (macho_resolve_oso_sym_with_minsym): Likewise.
1222 (macho_add_oso_symfile): Rewritten.
1223 (macho_symfile_read_all_oso): Remove trailing blanks.
1224 Adjust code to free oso vector.
1225 (macho_symfile_read): Likewise.
1226 Move code to initialize minimal symbol
1227
130854df
MR
12282011-11-24 Maciej W. Rozycki <macro@codesourcery.com>
1229
1230 * mips-tdep.c (extended_offset): Fix formatting.
1231
3d7bb9d9
DE
12322011-11-23 Doug Evans <dje@google.com>
1233
1234 * dwarf2read.c (dw2_lookup_symtab): Add comment.
1235 (dw2_expand_symtabs_with_filename): Ditto.
1236 (dw2_expand_symtabs_matching): Ditto.
1237 (dw2_map_symbol_filenames): Ditto.
1238
1fbf5ada
JB
12392011-11-23 Andrey Smirnov <andrew.smirnov@gmail.com>
1240
1241 * ada-lang.c (assign_aggregate): Minor reformatting.
1242
d984108d
JB
12432011-11-23 Andrey Smirnov <andrew.smirnov@gmail.com>
1244
1245 * ada-lang.c (assign_aggregate): Remove declaration of local
1246 variable `i' which is shadowing another variable with the same
1247 name declared in the outer scope.
1248
18af8284
JB
12492011-11-23 Joel Brobecker <brobecker@adacore.com>
1250
1251 * ada-lang.c (get_base_type): Renames base_type. Adjust all
1252 calls throughout this file.
1253
1fc7b5d7
JB
12542011-11-23 Joel Brobecker <brobecker@adacore.com>
1255
1256 * gdb-dlfcn.c (gdb_dlopen): Add missing coma in call to
1257 FormatMessage.
1258
36dfb11c
TT
12592011-11-22 Tom Tromey <tromey@redhat.com>
1260
1261 PR mi/8444:
1262 * mi/mi-common.h (EXEC_ASYNC_SOLIB_EVENT, EXEC_ASYNC_FORK)
1263 (EXEC_ASYNC_VFORK, EXEC_ASYNC_SYSCALL_ENTRY)
1264 (EXEC_ASYNC_SYSCALL_RETURN, EXEC_ASYNC_EXEC): New constants.
1265 * mi/mi-common.c (async_reason_string_lookup): Add new reasons.
1266 * breakpoint.c (print_it_catch_fork, print_it_catch_vfork)
1267 (print_it_catch_syscall, print_it_catch_exec)
1268 (internal_bkpt_print_it): Use ui_out. Emit stop reason.
1269 (bpstat_print): Add 'kind' argument. Handle
1270 TARGET_WAITKIND_LOADED.
1271 * infrun.c (normal_stop): Update for bpstat_print change. Don't
1272 handle TARGET_WAITKIND_LOADED here.
1273 * breakpoint.h (bpstat_print): Update.
1274
5bd6aa83
TT
12752011-11-22 Tom Tromey <tromey@redhat.com>
1276
1277 * mi/mi-interp.c (mi_on_normal_stop): Call bpstat_print.
1278
f5afdc18
TT
12792011-11-22 Tom Tromey <tromey@redhat.com>
1280
1281 * mi/mi-common.c (_initialize_gdb_mi_common): Remove.
1282 Use static_assert to check the size of
1283 async_reason_string_lookup.
1284 * common/gdb_assert.h (static_assert): New macro.
1285
a3769e0c
AM
12862011-11-22 Alan Modra <amodra@gmail.com>
1287
1288 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Correct branch
1289 destination calculation. Don't expect >> to sign extend. Don't
1290 add a break if branch lands inside the sequence anywhere.
1291
56767571
KS
12922011-11-21 Keith Seitz <keiths@redhat.com>
1293
1294 * gdb.mi/mi-var-display.exp: Remove XFAIL for c_variable-7.51,
1295 -var-evaluate-expression of an enumeration and fix expected result.
1296 * gdb.mi/mi2-varvdisplay.exp: Likewise.
1297
8443c207
KY
12982011-11-21 Kwok Cheung Yeung <kcy@codesourcery.com>
1299
1300 * osdata.c (info_osdata_command): Rename nprocs to nrows. Handle
1301 the case where osdata->items is empty. Rename column names to a
1302 canonical form to avoid problems with unusual column names.
1303
97643830
YQ
13042011-11-21 Yao Qi <yao@codesourcery.com>
1305
1306 * MAINTAINERS (Write After Approval): Keep list in alphabetical order.
1307
f196051f
SS
13082011-11-20 Stan Shebs <stan@codesourcery.com>
1309
1310 * NEWS: Mention tracepoint additions.
1311 * breakpoint.h (struct tracepoint): New field traceframe_usage.
1312 * breakpoint.c (print_one_breakpoint_location): Identify
1313 tracepoints as such when reporting hit counts, report
1314 trace buffer usage.
1315 (create_tracepoint_from_upload): Copy status info.
1316 * tracepoint.h (struct trace_status): Rename error_desc to stop_desc,
1317 add fields user_name, notes, start_time, stop_time.
1318 (struct uploaded_tp): Add fields hit_count, traceframe_usage.
1319 * tracepoint.c (trace_user): New global.
1320 (trace_notes): New global.
1321 (trace_stop_notes): New global.
1322 (start_tracing): Add argument and trace note handling.
1323 (stop_tracing): Ditto.
1324 (trace_start_command): Add notes argument.
1325 (trace_stop_command): Ditto.
1326 (trace_status_command): Report additional status info.
1327 (trace_status_mi): Similarly.
1328 (trace_save): Update, record tracepoint status.
1329 (set_disconnected_tracing): Call target method directly.
1330 (send_disconnected_tracing_value): Remove.
1331 (set_trace_user): New function.
1332 (set_trace_notes): New function.
1333 (set_trace_stop_notes): New function.
1334 (parse_trace_status): Handle additional status.
1335 (parse_tracepoint_status): New function.
1336 (parse_tracepoint_definition): Call it.
1337 (tfile_get_tracepoint_status): New function.
1338 (init_tfile_ops): Use it.
1339 (_initialize_tracepoint): Add new setshows.
1340 * target.h (struct target_ops): New methods to_get_tracepoint_status
1341 and to_set_trace_notes.
1342 (target_get_tracepoint_status): New macro.
1343 (target_set_trace_notes): New macro.
1344 * target.c (update_current_target): Add new methods.
1345 * remote.c (remote_get_tracepoint_status): New function.
1346 (remote_set_trace_notes): New function.
1347 (init_remote_ops): Add them.
1348 * mi/mi-main.c (mi_cmd_trace_start): Add argument to call.
1349 (mi_cmd_trace_stop): Ditto.
1350
3623dc3a
SD
13512011-11-20 Sanjoy Das <sdas@igalia.com>
1352
1353 * jit.c: Include regcache.h.
1354 (jit_gdbarch_data, jit_frame_unwind): New static variables.
1355 (jit_unwind_reg_set_impl, free_reg_value_impl)
1356 (jit_unwind_reg_get_impl, jit_frame_sniffer)
1357 (jit_frame_unwind_stop_reason, jit_frame_this_id)
1358 (jit_frame_prev_register, jit_dealloc_cache)
1359 (jit_prepend_unwinder, jit_gdbarch_data_init): New functions.
1360 (jit_inferior_init): Prepend (new) pseudo unwinder by calling
1361 jit_prepend_unwinder.
1362 (_initialize_jit): Register new gdbarch data jit_gdbarch_data.
1363
1825a88d
SD
13642011-11-20 Sanjoy Das <sdas@igalia.com>
1365
1366 * jit.c: Include block.h, dictionary.h and frame-unwind.h.
1367 (add_objfile_entry, jit_target_read_impl, jit_object_open_impl)
1368 (jit_symtab_open_impl, compare_block, jit_block_open_impl)
1369 (jit_symtab_line_mapping_add_impl, jit_symtab_close_impl)
1370 (finalize_symtab, jit_object_close_impl)
1371 (jit_reader_try_read_symtab, jit_bfd_try_read_symtab)
1372 (free_objfile_data): New functions.
1373 (_initialize_jit): Register jit_objfile_data with a proper cleanup
1374 function.
1375
784c47ee
SD
13762011-11-20 Sanjoy Das <sdas@igalia.com>
1377
1378 * jit.c: Include gdb-dlfcn.h.
1379 (loaded_jit_reader, reader_init_fn_sym): New static variables.
1380 (jit_reader_load, jit_reader_load_command)
1381 (jit_reader_unload_command): New functions.
1382 (_initialize_jit): Add commands "jit-reader-load" and
1383 "jit-reader-unload".
1384
a2d08b9e
SD
13852011-11-20 Sanjoy Das <sdas@igalia.com>
1386
1387 * Makefile.in: Add gdb-dlfcn.c and gdb-dlfcn.h to build system.
1388 * config.in: Add new #define HAVE_LIBDL.
1389 * configure.ac: Add check for -ldl.
1390 * configure: Re-generated by autoconf.
1391 * gdb-dlfcn.c: New file.
1392 * gdb-dlfcn.h: New file.
1393
b8e0a31c
SD
13942011-11-20 Sanjoy Das <sdas@igalia.com>
1395
1396 * config.in: Add new #defines: JIT_READER_DIR and
1397 JIT_READER_DIR_RELOCATABLE.
1398 * configure.ac: New GDB directory entry for jit-reader-dir.
1399 * configure: Re-generated by autoconf.
1400 * jit.c: New static variable: const char *jit_reader_dir.
1401 (_initialize_jit): Relocate jit_reader_dir.
1402
f997c383
SD
14032011-11-20 Sanjoy Das <sdas@igalia.com>
1404
1405 * Makefile.in: Add jit-reader.h as a header. Have it installed in
1406 $(includedir)/gdb.
1407 * configure.ac: Generate a correct value for TARGET_PTR for
1408 jit-reader.h. Tell configure to generate jit-reader.h from
1409 jit-reader.in.
1410 * configure: Re-generated by autoconf.
1411 * jit-reader.in: New file.
1412 * jit.c: Include jit-reader.h.
1413
dc8c0494
SD
14142011-11-20 Sanjoy Das <sdas@igalia.com>
1415
1416 * MAINTAINERS (Write After Approval): Add myself to the list.
1417
01efb936
UW
14182011-11-18 Ulrich Weigand <uweigand@de.ibm.com>
1419
1420 * findvar.c (read_frame_register_value): Respect value_offset
1421 of the register value. Remove big-endian special case.
1422
732f3f12
TT
14232011-11-18 Tom Tromey <tromey@redhat.com>
1424
1425 PR build/7196:
1426 * remote.c (putpkt_for_catch_errors): New function.
1427 (remote_kill): Use it.
1428
bfccc43c
YQ
14292011-11-18 Yao Qi <yao@codesourcery.com>
1430
1431 * breakpoint.c (create_breakpoint): Produce query message according to
1432 breakpoint's type.
1433 Allocate tracepoint per correct type.
1434 Don't check SALs for pending fast tracepoints.
1435 * tracepoint.c (process_tracepoint_on_disconnect): New.
1436 (disconnect_tracing): Call process_tracepoint_on_disconnect.
1437
3ea46bff
YQ
14382011-11-18 Yao Qi <yao@codesourcery.com>
1439
1440 * breakpoint.c (install_breakpoint): Add one more parameter so that
1441 update_global_location_list is called conditionally.
1442 (create_fork_vfork_event_catchpoint): Update.
1443 (create_syscall_event_catchpoint): Update.
1444 (create_breakpoint_sal): Update.
1445 (create_breakpoint_sal): Update. Call do_cleanups before
1446 install_breakpoint.
1447 * ada-lang.c (create_ada_exception_catchpoint): Update.
1448 * breakpoint.h (install_breakpoint): Update declaration.
1449
598cfb71
UW
14502011-11-16 Ulrich Weigand <uweigand@de.ibm.com>
1451
1452 * spu-tdep.c (spu_return_value): Fix handling of
1453 TYPE_CALLING_CONVENTION annotation.
1454
caf4328c
UW
14552011-11-16 Ulrich Weigand <uweigand@de.ibm.com>
1456
1457 * skip.c (skip_function_command): Work around uninitialized
1458 variable warning.
1459
2b54dda2
DM
14602011-11-16 David S. Miller <davem@davemloft.net>
1461
1462 * utils.c (report_command_stats): Cast delta_wall_time 'tv_sec' and
1463 'tv_usec' to long for printf since these fields have a type which
1464 varies.
1465
93bf33fd
DE
14662011-11-15 Doug Evans <dje@google.com>
1467
1468 * buildsym.c (add_symbol_to_list): Delete outdated comment.
1469
9cc10fd1
PK
14702011-11-15 Paul Koning <paul_koning@dell.com>
1471
1472 * python/py-type.c (typy_get_composite): New function.
1473 (typy_nonzero): New function.
1474 (typy_values): Rename from typy_fields.
1475 (typy_fields): New function.
1476 (typy_length): Raise exception if not struct, union, or enum type.
1477 (typy_getitem): Ditto.
1478 (typy_has_key): Ditto.
1479 (typy_make_iter): Ditto.
1480
c011a4f4
DE
14812011-11-15 Doug Evans <dje@google.com>
1482
1963ff96 1483 PR gdb/8367
c011a4f4
DE
1484 * NEWS: Mention new parameter basenames-may-differ.
1485 * dwarf2read.c (dw2_lookup_symtab): Avoid calling gdb_realpath if
1486 ! basenames_may_differ.
1487 * psymtab.c (lookup_partial_symtab): Ditto.
1488 * symtab.c (lookup_symtab): Ditto.
1489 (basenames_may_differ): New global.
1490 (_initialize_symtab): New parameter basenames-may-differ.
1491 * symtab.h (basenames_may_differ): Declare.
1492
865ecab4
LM
14932011-11-15 Pedro Alves <pedro@codesourcery.com>
1494 Luis Machado <lgustavo@codesourcery.com>
1495
1496 * auxv.c: Include observer.h.
1497 (auxv_inferior_data_cleanup): New.
1498 (invalidate_auxv_cache_inf): New.
1499 (invalidate_auxv_cache): New.
1500 (get_auxv_inferior_data): New.
1501 (auxv_inferior_data): New static global.
1502 (auxv_info): New structure.
1503 (target_auxv_search): Use get_auxv_inferior_data instead of
1504 target_read_alloc and don't free cached buffers.
1505 (fprint_target_auxv): Likewise
1506 (_initialize_auxv): Register per-inferior auxv cache and register
1507 observers to invalidate auxv cache when needed.
1508
ed59ded5
DE
15092011-11-14 Doug Evans <dje@google.com>
1510
37acd67c 1511 PR gdb/7200 Make "!" an alias for "shell".
ed59ded5
DE
1512 * NEWS: Add mention.
1513 * cli/cli-cmds.c (init_cli_cmds): Remove xdb_commands condition on
1514 adding "!" command, always add it.
1515 * cli/cli-decode.c (find_command_name_length): Recognize "!" as a
1516 command of length one.
1517
405f8e94
SS
15182011-11-14 Stan Shebs <stan@codesourcery.com>
1519 Kwok Cheung Yeung <kcy@codesourcery.com>
1520
1521 * NEWS: Document shorter fast tracepoints and qTMinFTPILen packet.
1522 * i386-tdep.c (i386_fast_tracepoint_valid_at): Query target for
1523 the minimum instruction size for fast tracepoints.
1524 * target.h (struct target_ops): Add new method
1525 to_get_min_fast_tracepoint_insn_len.
1526 (target_get_min_fast_tracepoint_insn_len): New.
1527 * target.c (update_current_target): Set up new target operation.
1528 * remote.c (remote_write_bytes_aux): Fix typo.
1529 (remote_get_min_fast_tracepoint_insn_len): New.
1530 (init_remote_ops): Initialize new field.
1531
3e05895e
TT
15322011-11-14 Tom Tromey <tromey@redhat.com>
1533
1534 * tracepoint.c (encode_actions_1): Use the location's gdbarch.
1535 (encode_actions): Likewise.
1536
1e4d1764
YQ
15372011-11-14 Yao Qi <yao@codesourcery.com>
1538
1539 * remote.c (struct remote_state): <install_in_trace> new field.
1540 (PACKET_InstallInTrace): New enum value.
1541 (remote_install_in_trace_feature): Support InstallInTrace.
1542 (remote_supports_install_in_trace): Likewise.
1543 (remote_protocol_features): Likewise.
1544 (_initialize_remote): Likewise.
1545 (remote_can_download_tracepoint): New.
1546 * target.h (struct target): New field
1547 `to_can_download_tracepoint'.
1548 (target_can_download_tracepoint): New macro.
1549 * target.c (update_current_target): Update.
1550 * breakpoint.h (struct bp_location): Add comment on field
1551 `duplicate'.
3ccd4ac6
YQ
1552 * breakpoint.c (should_be_inserted): Don't differentiate breakpoint
1553 and tracepoint.
1e4d1764
YQ
1554 (remove_breakpoints): Don't remove tracepoints.
1555 (tracepoint_locations_match ): New.
1556 (breakpoint_locations_match): Call it.
1557 (disable_breakpoints_in_unloaded_shlib): Handle tracepoint.
1558 (download_tracepoint_locations): New.
1559 (update_global_location_list): Call it.
1560 * tracepoint.c (find_matching_tracepoint): Delete.
1561 (find_matching_tracepoint_location): Renamed from
1562 find_matching_tracepoint. Return bp_location rather than
1563 tracepoint.
1564 (merge_uploaded_tracepoints): Set `inserted' field to 1 if
1565 tracepoint is found.
1566
e8ba3115
YQ
15672011-11-14 Yao Qi <yao@codesourcery.com>
1568
1569 * target.h (struct target): <to_download_tracepoint> Change type
1570 of parameter from tracepoint to bp_location.
1571 * target.c (update_current_target): Update.
1572 * tracepoint.c (start_tracing): Update.
1573 * remote.c (remote_download_tracepoint): Remove loop for each location
1574 of a tracepoint.
1575
edcc485a
MR
15762011-11-14 Maciej W. Rozycki <macro@codesourcery.com>
1577
1578 * i386-nat.c (i386_insert_hw_breakpoint): Call
1579 i386_update_inferior_debug_regs.
1580 (i386_remove_hw_breakpoint): Likewise.
1581
3742cc8b
YQ
15822011-11-14 Yao Qi <yao@codesourcery.com>
1583
1584 * breakpoint.c (init_raw_breakpoint): Call
1585 add_location_to_breakpoint to replace duplicated code.
1586 (add_location_to_breakpoint): Adjust the breakpoint's
1587 address prior to allocating a location.
1588
71eba9c2 15892011-11-12 Matt Rice <ratmice@gmail.com>
1590
1591 * macrocmd.c (macro_no_macro_info): New function.
1592 (macro_expand_command): Use macro_no_macro_info.
1593 (macro_expand_once_command): Ditto.
1594 (info_macro_command): Add argument processing,
1595 move info_definitions_command here.
1596 (_initialize_macrocmd): Remove info definitions command.
1597 Add arguments to info macro help text.
1598 * NEWS: Replace info definitions command with new info macro options.
1599
731971ed
KS
16002011-11-11 Keith Seitz <keiths@redhat.com>
1601
1602 PR gdb/12843
1603 * linespec.c (locate_first_half): Keep ':' if it looks
1604 like it could be part of a Windows path starting with
1605 a drive letter.
1606
6953d224
PA
16072011-11-10 Pedro Alves <pedro@codesourcery.com>
1608
1609 * linux-nat.c (linux_nat_wait): Don't force waking up the event
1610 loop when returning a TARGET_WAITKIND_NO_RESUMED.
1611
0c94aa73
PA
16122011-11-10 Pedro Alves <pedro@codesourcery.com>
1613
1614 * target.c (target_waitstatus_to_string): Handle
1615 TARGET_WAITKIND_NO_RESUMED.
1616
f6b47be4
DE
16172011-11-10 Doug Evans <dje@google.com>
1618
74e2f255
DE
1619 * dwarf2read.c (dw2_map_symbol_filenames): New parameter
1620 `need_fullname'.
1621 * psymtab.c (map_symbol_filenames_psymtab): Ditto.
1622 (map_partial_symbol_filenames): Ditto. All callers updated.
1623 * psymtab.h (map_partial_symbol_filenames): Update prototype.
1624 * symfile.h (struct quick_symbol_functions, map_symbol_filenames): New
1625 parameter need_fullname.
1626
256f06f3
DE
1627 * psymtab.c (psymtab_to_fullname): Use cached copy if it exists.
1628 * source.c (symtab_to_fullname): Ditto.
1629
50f182aa
DE
1630 * defs.h (is_cplus_marker, set_demangling_style): Moved to ...
1631 * gdb-demangle.h: ... here. New file.
1632 * demangle.c: #include "gdb-demangle.h".
1633 (_initialize_demangler): Use initialize_file_ftype for prototype.
1634 Move "set demangle" and "set asm-demangle" parameters here from utils.c
1635 (demangle, show_demangle, asm_demangle, show_asm_demangle): Move here
1636 from utils.c
1637 * utils.c: Update. #include "gdb-demangle.h".
1638 * symtab.h (asm_demangle): Delete.
1639 (demangle): Move declaration next to use.
1640 * breakpoint.c: #include "gdb-demangle.h" instead of "demangle.h".
1641 * dwarf2read.c: #include "gdb-demangle.h".
1642 * gnu-v2-abi.c: Ditto.
1643 * jv-typeprint.c: Ditto.
1644 * mdebugread.c: Ditto.
1645 * p-typeprint.c: Ditto.
1646 * stabsread.c: Ditto.
1647 * printcmd.c: Ditto.
1648 (asm_demangle): Delete declaration.
1649 * tui/tui-stack.c: #include "gdb-demangle.h".
1650
f6b47be4
DE
1651 * python/py-type.c (typy_fields_items): Call check_typedef.
1652
22355c90
JB
16532011-11-10 Joel Brobecker <brobecker@adacore.com>
1654
1655 * findvar.c (read_frame_register_value): Read the correct bytes
1656 from registers on big-endian architectures.
1657
bd119cf1 16582011-11-10 Tom Tromey <tromey@redhat.com>
e28cade7
JB
1659
1660 * procfs.c (load_syscalls): Make a cleanup.
1661 (open_procinfo_files): fd==0 is ok.
1662
0a86f364
JB
16632011-11-10 Joel Brobecker <brobecker@adacore.com>
1664
1665 * procfs.c (iterate_over_mappings): Call do_cleanups before
1666 returning.
1667
9bc118a5
DE
16682011-11-09 Doug Evans <dje@google.com>
1669
1670 * gdbtypes.c (check_typedef): Document that this function can
1671 throw an exception.
1672
a7860e76
TT
16732011-11-09 Tom Tromey <tromey@redhat.com>
1674
1675 PR c++/13342:
1676 * valops.c (value_full_object): Return early if real type is
1677 smaller than the enclosing type.
1678
60965737
YQ
16792011-11-08 Yao Qi <yao@codesourcery.com>
1680
1681 * amd64-tdep.c (amd64_relocate_instruction): Make it static.
1682
72a2e3dc
MI
16832011-11-08 Meador Inge <meadori@codesourcery.com>
1684
1685 * arm-tdep.c (thumb_analyze_prologue): Always fallback on the SP
1686 register when the frame can't be determined.
1687 * arm-tdep.c (arm_analyze_prologue): Ditto.
1688
ce3b0ff7
SS
16892011-11-07 Stan Shebs <stan@codesourcery.com>
1690
1691 * MAINTAINERS: Move Michael Snyder to Past Maintainers.
1692
2b914b52
JB
16932011-11-07 Joel Brobecker <brobecker@adacore.com>
1694
1695 * infrun.c (handle_inferior_event): Minor reformatting.
1696
6f809020
DE
16972011-11-05 Doug Evans <dje@google.com>
1698
1699 * source.c (forget_cached_source_info_for_objfile): Move call to
1700 objfile->sf->qf->forget_cached_source_info outside of
1701 ALL_OBJFILE_SYMTABS loop.
1702 (forget_cached_source_info): Delete unused variable `s'.
1703
75d12218
JK
17042011-11-05 Jan Kratochvil <jan.kratochvil@redhat.com>
1705
1706 * i386-nat.c (dr_ref_count): Remove unused variable.
1707
e565b837
DE
17082011-11-05 Doug Evans <dje@google.com>
1709
1710 * main.c (captured_main): Set lim_at_start before calling
1711 make_command_stats_cleanup.
1712
0a1c4d10
DE
17132011-11-04 Doug Evans <dje@google.com>
1714
1715 * utils.c: #include "timeval-utils.h".
1716 (cmd_stats): Rename start_time to start_cpu_time.
1717 New member start_wall_time.
1718 (report_command_stats): Report wall time.
1719 (make_command_stats_cleanup): Record start wall time.
1720
a1d705ee
TT
17212011-11-04 Tom Tromey <tromey@redhat.com>
1722
1723 * cp-namespace.c (cp_lookup_symbol_imports): Reindent.
1724
81de56be
RO
17252011-11-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1726
1727 * coff-pe-read.c: Include defs.h before bfd.h.
1728
3ab1ec27
PM
17292011-11-04 Phil Muldoon <pmuldoon@redhat.com>
1730
1731 PR Python/13345
1732
1733 * python/python.c (python_run_simple_file): Expand tilde in path.
1734
cd829959
PM
17352011-11-04 Phil Muldoon <pmuldoon@redhat.com>
1736
1737 PR Python/13363
1738
1739 * python/py-type.c (typy_lookup_type): Do not return a type in
1740 an exception handler.
1741
080ad648
JK
17422011-11-03 Jan Kratochvil <jan.kratochvil@redhat.com>
1743 Eli Zaretskii <eliz@gnu.org>
1744
1745 * linux-nat.c (_initialize_linux_nat): Improve help
1746 for `info proc stat', `info proc status', `info proc cwd',
1747 `info proc cmdline' and `info proc exe'.
1748
3065dfb6
SS
17492011-11-02 Stan Shebs <stan@codesourcery.com>
1750
1751 String collection for tracepoints.
1752 * NEWS: Mention string collection.
1753 * common/ax.def (tracenz): New bytecode.
1754 * ax-gdb.h (trace_string_kludge): Declare.
1755 * ax-gdb.c: Include valprint.h and c-lang.h.
1756 (trace_string_kludge): New global.
1757 (gen_traced_pop): Add string case.
1758 (agent_command): Add string case.
1759 * tracepoint.h (decode_agent_options): Declare.
1760 * tracepoint.c: Include cli-utils.h.
1761 (decode_agent_options): New function.
1762 (validate_actionline): Call it.
1763 (encode_actions_1): Ditto.
1764 * target.h (struct target_ops): New method to_supports_string_tracing.
1765 (target_supports_string_tracing): New macro.
1766 * target.c (update_current_target): Add to_supports_string_tracing.
1767 * remote.c (struct remote_state): New field string_tracing.
1768 (remote_string_tracing_feature): New function.
1769 (remote_protocol_features): New feature tracenz.
1770 (remote_supports_string_tracing): New function.
1771 (init_remote_ops): Set to_supports_string_tracing.
1772
f179e162
JK
17732011-11-02 Pedro Alves <pedro@codesourcery.com>
1774 Jan Kratochvil <jan.kratochvil@redhat.com>
1775
1776 * linux-nat.c: Include cli/cli-utils.h.
1777 (enum info_proc_what): New.
1778 (linux_nat_info_proc_cmd): Rename to ...
1779 (linux_nat_info_proc_cmd_1): ... here. Remove variables argv and all.
1780 New parameter what. Initialize cmdline_f, cwd_f, exe_f, mappings_f,
1781 status_f and stat_f from WHAT. Throw error on extra parameters.
1782 (linux_nat_info_proc_cmd, linux_nat_info_proc_cmd_mappings)
1783 (linux_nat_info_proc_cmd_stat, linux_nat_info_proc_cmd_status)
1784 (linux_nat_info_proc_cmd_cwd, linux_nat_info_proc_cmd_cmdline)
1785 (linux_nat_info_proc_cmd_exe, linux_nat_info_proc_cmd_all): New.
1786 (_initialize_linux_nat): New variable info_proc_cmdlist. Install `info
1787 proc mappings', `info proc stat`, `info proc status', `info proc cwd',
1788 `info proc cmdline', `info proc exe' and `info proc all' as real
1789 subcommands of `info proc'.
1790
7b35ec7f 17912011-11-01 Justin Lebar <justin.lebar@gmail.com>
1bfeeb0f
JL
1792
1793 * Makefile.in: (SFILES): Add skip.c.
1794 (HFILES_NO_SRCDIR): Add skip.h.
1795 (COMMON_OBS): Add skip.o.
1796 * skip.h, skip.c: New.
1797 * breakpoint.h (set_default_breakpoint): Remove.
1798 (get_sal_arch): Declare.
1799 * breakpoint.c: Remove default_breakpoint_valid,
1800 default_breakpoint_address, default_breakpoint_symtab,
1801 default_breakpoint_line, default_breakpoint_pspace variables.
1802 (get_sal_arch): Make public.
1803 (set_default_breakpoint): Remove.
1804 (parse_breakpoint_sals, create_breakpoint, clear_command,
1805 decode_line_spec_1): Remove uses of default_breakpoint variables;
1806 replaced with function calls into stack.c.
1807 * cli/cli-cmds.h: Add cmd_list_element *skiplist.
1808 * cli/cli-cmds.c: Add skiplist.
1809 (init_cmd_lists): Initialize skiplist.
1810 (init_cli_cmds): Fix comment (classes of commands appear in
1811 alphabetical order).
1812 * infrun.c (handle_inferior_event): Add check that we don't step into
1813 a function whose pc is marked for skip.
1814 * stack.c: Declare last_displayed_sal_valid, last_displayed_pspace,
1815 last_displayed_addr, last_displayed_symtab, last_displayed_line
1816 variables.
1817 (set_last_displayed_sal): New static function.
1818 (print_frame_info): Switch call to set_default_breakpoint to call to
1819 set_last_displayed_sal.
1820 (clear_last_displayed_sal, last_displayed_sal_is_valid,
1821 get_last_displayed_pspace, get_last_displayed_addr,
1822 get_last_displayed_symtab, get_last_displayed_line,
1823 get_last_displayed_sal): New public functions.
1824 * stack.h (clear_last_displayed_sal, last_displayed_sal_is_valid,
1825 get_last_displayed_pspace, get_last_displayed_addr,
1826 get_last_displayed_symtab, get_last_displayed_line,
1827 get_last_displayed_sal): Declare.
1828
b60e1588
JL
18292011-11-01 Justin Lebar <justin.lebar@gmail.com>
1830
1831 * MAINTAINERS (Write After Approval): Add myself to the list.
1832
d31647d2
YQ
18332011-10-29 Yao Qi <yao@codesourcery.com>
1834
1835 * infcmd.c (disconnect_command): Call disconnect_tracing.
1836
b1d96efd
JK
18372011-10-29 Jan Kratochvil <jan.kratochvil@redhat.com>
1838
1839 Code cleanup.
1840 * symtab.c (skip_prologue_sal): Code reformatting.
1841
4dfb2365
JK
18422011-10-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1843
1844 PR symtab/13208
1845 * jit.c (jit_register_code): Remove unused variable my_cleanups. Check
1846 for NULL from bfd_open_from_target_memory. Fix ownership of NBFD and
1847 SAI.
1848
0e5bf2a8
PA
18492011-10-28 Pedro Alves <pedro@codesourcery.com>
1850
1851 * linux-nat.c (linux_nat_filter_event): Remove `options'
1852 parameter, and dead code that used it. If we're handling a
1853 PTRACE_EVENT_EXEC event, and the thread group leader is no longer
1854 in our lwp list, re-add it.
1855 (check_zombie_leaders): New.
1856 (linux_nat_wait_1): Remove `options' and `pid' locals. Always
1857 wait for children with WNOHANG, and always wait for all children.
1858 Don't check for no resumed children upfront. Simplify wait loop.
1859 Check for zombie thread group leaders after handling all wait
1860 statuses. Return TARGET_WAITKIND_NO_RESUMED if there no
1861 unwaited-for children left.
1862 * infrun.c (fetch_inferior_event): Handle TARGET_WAITKIND_NO_RESUMED.
1863 (handle_inferior_event): Handle TARGET_WAITKIND_NO_RESUMED.
1864 (normal_stop): Handle TARGET_WAITKIND_NO_RESUMED.
1865 * target.h (enum target_waitkind) <TARGET_WAITKIND_NO_RESUMED>: New.
1866
821296b7
SA
18672011-10-28 Sterling Augustine <saugustine@google.com>
1868
1869 * psymtab.c (map_symbol_filenames_psymtab): Call QUIT.
1870 * symtab.c (free_completion_list): New function.
1871 (do_free_completion_list): Likewise.
1872 (default_make_symbol_completion_list_break_on): New variable
1873 back_to. Call make_cleanup and discard_cleanups.
1874 (make_source_files_completion_list): Likewise.
1875
03c3051a
PK
18762011-10-28 Paul Koning <paul_koning@dell.com>
1877
1878 * python/lib/gdb/types.py (deep_items): Rename from deepitems.
1879 * NEWS: Mention deep_items.
1880
8e7ebaf5
PA
18812011-10-28 Alen Skondro <askondro@gmail.com>
1882
8de33dc2 1883 * ser-tcp.c [USE_WIN32API] (ETIMEDOUT): Don't define if already
8e7ebaf5
PA
1884 defined.
1885
e0c6ef61
MI
18862011-10-27 Meador Inge <meadori@codesourcery.com>
1887
1888 * MAINTAINERS (Write After Approval): Add myself to the list.
1889
b56d6f31
JB
18902011-10-27 Joel Brobecker <brobecker@adacore.com>
1891
1892 * value.h (read_frame_register_value): Add declaration.
1893 * findvar.c (read_frame_register_value): New function.
1894 (value_from_register): Use read_frame_register_value
1895 instead of get_frame_register_value + value_contents_copy
1896 to get value contents.
1897
d234ef5c
DE
18982011-10-27 Doug Evans <dje@google.com>
1899
1900 * cli/cli-cmds.c (source_script_with_search): Pass full path to
1901 source_script_from_stream if it may have been found on the search path.
1902 * python/py-auto-load.c (source_section_scripts): Pass full path to
1903 source_python_script_for_objfile.
1904 * python/python.c (source_python_script): Delete stream parameter.
1905 All callers updated.
1906 (source_python_script_for_objfile): Ditto.
1907 * python/python-internal.h (source_python_script_for_objfile): Update.
1908 * python/python.h (source_python_script): Update.
1909
d849d44f
TT
19102011-10-27 Tom Tromey <tromey@redhat.com>
1911
1912 * ada-lang.h (ada_start_decode_line_1, ada_finish_decode_line_1)
1913 (ada_sals_for_line): Remove declarations.
1914
2231f1fb
KP
19152011-10-27 Kevin Pouget <kevin.pouget@st.com>
1916
1917 Move unwind reasons to an external .def file
1918 * frame.c (frame_stop_reason_string): Rewrite using
1919 unwind_stop_reasons.def.
1920 * frame.h (enum unwind_stop_reason): Likewise.
1921 * python/py-frame.c (gdbpy_initialize_frames): Likewise.
1922 (gdbpy_frame_stop_reason_string): Use new enum unwind_stop_reason
1923 constants for bound-checking.
1924 * unwind_stop_reasons.def: New file.
1925 * stack.c (backtrace_command_1): Handle UNWIND_FIRST_ERROR as an alias
1926 instead of a distinct value.
1927
f77b9a5d
PM
19282011-10-27 Phil Muldoon <pmuldoon@redhat.com>
1929
1930 PR python/13331
1931
1932 * python/py-function.c (fnpy_call): Check 'args' is not NULL.
1933 (convert_values_to_python): Return on Python tuple allocation
1934 failure. Return NULL on value conversion error.
1935
76dce0be
PM
19362011-10-27 Phil Muldoon <pmuldoon@redhat.com>
1937
1938 * python/py-breakpoint.c (bppy_set_enabled): Use TRY_CATCH.
1939 (bppy_set_task): Ditto.
1940 (bppy_delete_breakpoint): Ditto.
1941 * python/py-symbol.c (gdbpy_lookup_symbol): Ditto.
1942 (gdbpy_lookup_global_symbol): Ditto.
1943 * python/py-lazy-string.c (stpy_convert_to_value): Ditto.
1944 * python/py-frame.c (frapy_is_valid): Ditto.
1945 (frame_info_to_frame_object): Ditto.
1946 * python/py-type.c (typy_lookup_type): Ditto.
1947 (typy_getitem): Ditto.
1948 (typy_has_key): Ditto.
1949 (typy_richcompare): Use TRY_CATCH. Do not return Py_NE on error.
1950
f17b6955
JB
19512011-10-26 Joel Brobecker <brobecker@adacore.com>
1952
1953 * gdbarch.h: Regenerate.
1954
86ba1042
JB
19552011-10-26 Meador Inge <meadori@codesourcery.com>
1956
1957 * gdbarch.sh (function_list): Use 'pstring' when printing
1958 'gcore_bfd_target'.
1959 * gdbarch.c: Regenerate.
1960
c34fd852
UW
19612011-10-26 Ulrich Weigand <uweigand@de.ibm.com>
1962
1963 * regcache.c (registers_changed_ptid): Invalidate thread architecture
1964 and frame caches if PTID refers to all threads of a process.
1965
931bb47f
UW
19662011-10-26 Ulrich Weigand <uweigand@de.ibm.com>
1967
1968 * spu-tdep.c (spu_catch_start): Pass non-NULL breakpoint ops
1969 to create_breakpoint.
1970
88aed45e
UW
19712011-10-26 Ulrich Weigand <uweigand@de.ibm.com>
1972
1973 * ppc-sysv-tdep.c (ppc_sysv_use_opencl_abi): New function.
1974 (ppc_sysv_abi_push_dummy_call): Use it.
1975 (do_ppc_sysv_return_value): Likewise.
1976 (ppc64_sysv_abi_push_dummy_call): Likewise.
1977 (ppc64_sysv_abi_return_value): Likewise.
1978
3eaf3fa2
PK
19792011-10-26 Paul Koning <paul_koning@dell.com>
1980
1981 * python/lib/gdb/types.py (deepitems): New function.
1982
913460fc
PK
19832011-10-25 Paul Koning <paul_koning@dell.com>
1984
1985 PR python/13327
1986
1987 * python/py-value.c (value_to_value_object): Remove fetching of
1988 the value if it was lazy.
1989 (valpy_get_is_lazy): New function.
1990 (valpy_fetch_lazy): New function.
1991
2b5b9d09
JB
19922011-10-24 Joel Brobecker <brobecker@adacore.com>
1993
1994 * ppc-sysv-tdep.c (do_ppc_sysv_return_value): Do not check
1995 FUNC_TYPE's calling convention if FUNC_TYPE is not a function.
1996
e21ffe51
PA
19972011-10-24 Pedro Alves <pedro@codesourcery.com>
1998
1999 * linux-nat.c (linux_handle_extended_wait): When handling a clone
2000 event, in non-stop, if not stopping, make sure the new lwp has
2001 last_resume_kind set to resume_continue. Assert that when we're
2002 resuming the new lwp, its last_resume_kind is resume_continue.
2003
7aee8dc2
PA
20042011-10-24 Pedro Alves <pedro@codesourcery.com>
2005
2006 * infrun.c (handle_inferior_event): Don't assume inferior_ptid is
2007 already set when marking the event thread as not executing in
2008 non-stop mode.
2009
4b4e080e
PA
20102011-10-24 Pedro Alves <pedro@codesourcery.com>
2011
2012 * infrun.c (handle_inferior_event): Add debug output for
2013 TARGET_WAITKIND_NO_HISTORY.
2014
baacfb07
PM
20152011-10-24 Phil Muldoon <pmuldoon@redhat.com>
2016
2017 * NEWS: Move set/show extended-prompt to "New Options". Expand
2018 description. Fix typos.
2019
8432bc41
PM
20202011-10-24 Phil Muldoon <pmuldoon@redhat.com>
2021
2022 PR python/13310
2023
2024 * python/py-param.c (call_doc_function): Correctly deference on
2025 function exit.
2026
6cda5a20
JB
20272011-10-21 Joel Brobecker <brobecker@adacore.com>
2028
2029 * ada-tasks.c (print_ada_task_info): Fix computation of
2030 number of tasks displayed in command output.
2031
13294f7d
JK
20322011-10-20 Jan Kratochvil <jan.kratochvil@redhat.com>
2033 Ulrich Weigand <uweigand@de.ibm.com>
2034
2035 * dwarf2-frame-tailcall.c: Include dwarf2-frame.h.
2036 (dwarf2_tailcall_prev_register_first): Use dwarf2_frame_cfa.
2037 (dwarf2_tailcall_sniffer_first): Remove variable pc_regnum. Replace
2038 gdbarch_pc_regnum and frame_unwind_register_unsigned by
2039 gdbarch_unwind_pc.
2040
460c1c54
CC
20412011-10-20 Cary Coutant <ccoutant@google.com>
2042
2043 * dwarf2read.c (dw2_get_file_names): Move adjustment for type
2044 section to...
2045 (partial_read_comp_unit_head): ...here. Add is_debug_type_section
2046 flag. Adjust all callers.
2047 (process_psymtab_comp_unit): Remove adjustment for type section.
2048
a10964d1
AR
20492011-10-20 Aleksandar Ristovski <aristovski@qnx.com>
2050
2051 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Changed function
2052 arguments by adding OBJFILE. Instead of getting objfile from
2053 symbol's symtab, use new argument OBJFILE.
2054 * cp-support.h (cp_scan_for_anonymous_namespaces): Changed function
2055 arguments by adding OBJFILE.
2056 * gdb/dwarf2read.c (new_symbol_full): Change call to
2057 cp_scan_for_anonymous_namespaces to match new signature.
2058 * gdb/stabsread.c (define_symbol): Change call to
2059 cp_scan_for_anonymous_namespaces to match new signature.
2060
27ca1a5b
PM
20612011-10-20 Phil Muldoon <pmuldoon@redhat.com>
2062
2063 PR python/13308
2064 PR python/13309
2065
2066 * python/py-breakpoint.c (gdbpy_breakpoints): Fix List reference
2067 leak.
2068 * python/py-inferior.c (gdbpy_inferiors): Fix List reference
2069 leak. Delete unused variables.
2070
9df2fbc4
PM
20712011-10-20 Phil Muldoon <pmuldoon@redhat.com>
2072
2073 PR python/12656
2074
2075 * python/py-frame.c (frapy_read_var): Use const struct *block.
2076 * python/py-type.c (typy_lookup_typename): Likewise.
2077 (typy_lookup_type): Likewise.
2078 (typy_legacy_template_argument): Likewise.
2079 (typy_template_argument): Likewise.
2080 (gdbpy_lookup_type): Likewise.
2081 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
2082 * python/py-block.c (blpy_block_object): Likewise.
2083 (blpy_iter): Likewise.
2084 (blpy_get_start): Likewise.
2085 (blpy_get_end): Likewise.
2086 (blpy_get_function): Likewise.
2087 (blpy_get_superblock): Likewise.
2088 (set_block): Likewise.
2089 (block_to_block_object): Likewise.
2090 (block_object_to_block): Likewise.
2091 (blpy_is_valid): Likewise.
2092 (blpy_get_global_block): New function.
2093 (blpy_get_static_block): New function.
2094 (blpy_is_global): New function.
2095 (blpy_is_static): New function.
2096 * blockframe.c (block_innermost_frame): Likewise.
2097 * valops.c (value_of_variable): Likewise.
2098 * frame.h: Update prototypes.
2099 * python/python-internal.h: Likewise.
2100 * value.h: Likewise.
2101
4743b735
CC
21022011-10-19 Cary Coutant <ccoutant@google.com>
2103
2104 * dwarf2read.c (create_debug_types_hash_table): Fix size of
2105 type_offset field.
2106
6caca83c
CC
21072011-10-19 Cary Coutant <ccoutant@google.com>
2108
2109 * dwarf2read.c (peek_abbrev_code): New function.
2110 (dw2_get_file_names): Check for dummy compilation units.
2111 (create_debug_types_hash_table): Likewise.
2112 (process_psymtab_comp_unit): Likewise.
2113 (load_partial_comp_unit): Likewise.
2114 (load_full_comp_unit): Likewise.
2115
43136979
AR
21162011-10-18 Aleksandar Ristovski <aristovski@qnx.com>
2117
2118 * solib-svr4.c (read_program_header): New variables pt_phdr, pt_phdr_p,
2119 initialize them from target PT_PHDR p_vaddr, relocate sect_addr by
2120 pt_phdr if PT_PHDR was found.
2121
0a07729b
TT
21222011-10-17 Joost van der Sluis <joost@cnoc.nl>
2123
2124 * gdbtypes.h: Added TYPE_SAFE_NAME macro to get the name of a
2125 type or "<unnamed type"> when there is no name assigned.
2126 * gnu-v3-abi.c (gnuv3_rtti_type): Use TYPE_SAFE_NAME macro to
2127 avoid a sigint when no name is assigned.
2128
21ae7a4d
JK
21292011-10-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2130
2131 Revert:
2132 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2133 * dwarf2expr.c (ctx_no_read_reg): New function.
2134 * dwarf2expr.h (ctx_no_read_reg): New declaration.
2135 * dwarf2read.c (read_2_signed_bytes, read_4_signed_bytes): Remove.
2136 (decode_locdesc_read_mem, decode_locdesc_ctx_funcs): New.
2137 (decode_locdesc): Replace by a caller of dwarf_expr_eval.
2138
32d1c362
DE
21392011-10-16 Doug Evans <dje@google.com>
2140
2141 * NEWS: Document python gdb.printing.register_pretty_printer's new
2142 `replace' parameter.
2143
da096638
KS
21442011-10-14 Keith Seitz <keiths@redhat.com>
2145
2146 PR c++/13225
2147 * eval.c (evaluate_subexp_standard): Do not construct
2148 an array of types; pass the value array directly to
2149 find_overload_match.
2150 * gdbtypes.h (NULL_POINTER_CONVERSION_BADNESS): Declare.
2151 (rank_function): Take an array of values instead of types.
2152 (rank_one_type): Add struct value * parameter.
2153 * gdbtypes.c (NULL_POINTER_CONVERSION_BADNESS): Define.
2154 (rank_function): For each argument, pass the argument's
2155 value to rank_one_type.
2156 (rank_one_type): Add VALUE parameter.
2157 If the parameter type is a pointer and the argument type
2158 is an integer, return NULL_POINTER_CONVERSION_BADNESS if
2159 VALUE is zero.
2160 Update all calls to rank_one_type, passing NULL for new
2161 VALUE parameter.
2162 * valarith.c (value_user_defined_cpp_op): Do not construct
2163 an array of types; pass the value array directly to
2164 find_overload_match.
2165 * valops.c (find_overload_method_list): Take an array of
2166 values instead of types.
2167 Save the type of OBJP for later use.
2168 Update calls to find_oload_champ, and find_oload_champ_namespace.
2169 (find_oload_champ_namespace): Take an array of values instead
2170 of types.
2171 (find_oload_champ_namespace_loop): Likewise.
2172 (find_oload_champ): Likewise.
2173 (classify_oload_match): Inspect all arguments
2174 until INCOMPATIBLE is found. Return the worst badness found
2175 otherwise.
2176 (compare_parameters): Update call to rank_one_type.
2177 * value.h (find_overload_match): Take an array of values instead
2178 of types.
2179
3957565a
JK
21802011-10-14 Jan Kratochvil <jan.kratochvil@redhat.com>
2181
2182 Drop lazy lm_info reading.
2183 * solib-svr4.c (struct lm_info): Remove field lm. New fields l_addr_p,
2184 l_addr_inferior, l_ld, l_next, l_prev and l_name.
2185 (lm_info_read): New function.
2186 (lm_addr_from_link_map, lm_dynamic_from_link_map): Remove.
2187 (lm_addr_check): Use l_addr_p. No longer use lm_addr_from_link_map and
2188 lm_dynamic_from_link_map.
2189 (lm_next, lm_prev, lm_name): Remove.
2190 (svr4_keep_data_in_core): Use lm_info_read, drop the lm_info entries
2191 initialization incl. read_memory. No longer use lm_name.
2192 (svr4_free_so): Drop lm_info->lm freeing.
2193 (svr4_default_sos): Initialize lminfo with zeroes. Use l_addr_p. Drop
2194 explicit lm_addr and lm initialization.
2195 (svr4_read_so_list): Use lm_info_read, drop the initailization of
2196 fields by hand, incl. read_memory. No longer use lm_next, lm_prev and
2197 lm_name.
2198
cb08cc53
JK
21992011-10-14 Jan Kratochvil <jan.kratochvil@redhat.com>
2200 Paul Pluzhnikov <ppluzhnikov@google.com>
2201
2202 * defs.h (struct so_list): New forward declaration.
2203 (make_cleanup_free_so): New declaration.
2204 * solib-svr4.c (ignore_first_link_map_entry): Remove.
2205 (svr4_free_so): Move the function here from downwards. Handle NULL
2206 so->lm_info.
2207 (svr4_free_library_list): New.
2208 (svr4_read_so_list): New, moved here code from svr4_current_sos.
2209 Use more cleanups. Use new parameter ignore_first instead of
2210 ignore_first_link_map_entry.
2211 (svr4_current_sos): New variable ignore_first, initialize it. New
2212 variable back_to, use it for svr4_free_library_list protection.
2213 (svr4_free_so): Remove - move upwards.
2214 * utils.c: Include solist.h.
2215 (do_free_so, make_cleanup_free_so): New functions.
2216
22c05d8a
JK
22172011-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2218
2219 Fix internal error regression.
2220 * value.c (value_primitive_field): Handle value_optimized_out. Move
2221 packed bitfields comment.
2222
d930d06e
TT
22232011-10-13 Tom Tromey <tromey@redhat.com>
2224
2225 * python/py-breakpoint.c (gdbpy_breakpoint_deleted): Ensure GIL is
2226 always released.
2227
2ff6b080
TT
22282011-10-13 Tom Tromey <tromey@redhat.com>
2229
2230 * python/py-type.c (typy_has_key): Make 'field' const.
2231
d6c5869f
LM
22322011-10-13 Luis Machado <lgustavo@codesourcery.com>
2233
2234 * remote.c (remote_save_trace_data): Invert comparison.
2235
a70633a2
LM
22362011-10-13 Luis Machado <lgustavo@codesourcery.com>
2237
2238 * tracepoint.c (trace_save_command): Use filename instead of
2239 args when printing.
2240
e103e986
JK
22412011-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2242
2243 * dwarf2read.c (dwarf2_fetch_die_location_block): Initialize .data even
2244 if .size is 0.
2245
db24da6d
YQ
22462011-10-13 Yao Qi <yao@codesourcery.com>
2247
2248 PR gdb/12703
2249 * arm-tdep.c (thumb_analyze_prologue): Call thumb_insn_size to check
2250 whether insn is a 32-bit Thumb-2 instruction.
2251 (thumb_in_function_epilogue_p): Likewise.
2252 (thumb_get_next_pc_raw): Likewise.
2253 (arm_breakpoint_from_pc): Likewise.
2254
1d6edc3c
JK
22552011-10-12 Jan Kratochvil <jan.kratochvil@redhat.com>
2256
2257 Fix empty DWARF expressions DATA vs. SIZE conditionals.
2258 * dwarf2loc.c (dwarf2_find_location_expression): Clear *LOCEXPR_LENGTH.
2259 (dwarf_expr_frame_base_1): Indicate unavailability via zero *LENGTH.
2260 (locexpr_tracepoint_var_ref): Check only zero SIZE, not zero DATA.
2261 (loclist_read_variable, loclist_tracepoint_var_ref): Do not check for
2262 zero DATA.
2263 * dwarf2loc.h (struct dwarf2_locexpr_baton): Comment DATA vs. SIZE
2264 validity.
2265 * dwarf2read.c (struct dwarf_block): Comment DATA validity.
2266 (dwarf2_fetch_die_location_block, dwarf2_symbol_mark_computed): Do not
2267 clear DATA on zero SIZE.
2268
adabb602
DE
22692011-10-12 Doug Evans <dje@google.com>
2270
2271 * dwarf2read.c (partial_read_comp_unit_head): Set header->offset,
2272 header->first_die_offset here. All callers updated.
2273
5048e516
JK
22742011-10-12 Jan Kratochvil <jan.kratochvil@redhat.com>
2275
2276 Fix compatibility with texinfo versions older than 4.12.
2277 * Makefile.in (MAKEINFO): Set to @MAKEINFO@.
2278 (MAKEINFOFLAGS, MAKEINFO_EXTRA_FLAGS, MAKEINFO_CMD): New.
2279 (MAKEHTMLFLAGS): Use MAKEINFO_CMD.
2280 (FLAGS_TO_PASS): Add MAKEINFOFLAGS and MAKEINFO_EXTRA_FLAGS.
2281 * configure: Regenerate.
2282 * configure.ac (MAKEINFO): Find it, from libiberty/configure.ac.
2283 (MAKEINFOFLAGS): Pre-set it to --split-size=5000000.
2284 (MAKEINFO_EXTRA_FLAGS): New test for -DHAVE_MAKEINFO_CLICK.
2285
0574c78f
GB
22862011-10-12 Gary Benson <gbenson@redhat.com>
2287
2288 * breakpoint.h (pc_at_non_inline_function): Declare.
2289 * breakpoint.c (is_non_inline_function,
2290 pc_at_non_inline_function): New functions.
2291 * infrun.c (handle_inferior_event): Don't call skip_inline_frames
2292 if the stop is at a location where functions cannot be inlined.
2293
12d9289a
PA
22942011-10-12 Pedro Alves <pedro@codesourcery.com>
2295
2296 * linux-nat.c (stop_and_resume_callback): Don't re-resume LWPs if
2297 the core wanted them stopped, or if they now have a pending event
2298 to report.
ecf8e7f5
PA
2299 (linux_nat_filter_event): New parameter `new_pending_p'. Pass it
2300 down to stop_and_resume_callback.
2301 (linux_nat_wait_1): Always clear `options' when retrying. Handle
2302 having new pending events after calling linux_nat_filter_event.
12d9289a 2303
96408a79
SA
23042011-10-11 Sterling Augustine <saugustine@google.com>
2305
2306 * dwarf2read.c: Undo inadvertent changes in previous commit.
2307
9c6c53f7
SA
23082011-10-11 Sterling Augustine <saugustine@google.com>
2309
2310 * dwarf2read.c (partial_die_parent_scope): Rearrange conditional
2311 logic.
2312
0e8aefe7
UW
23132011-10-11 Ulrich Weigand <ulrich.weigand@linaro.org>
2314
2315 * symfile.c (separate_debug_file_exists): Fix condition.
2316
349d1385
DM
23172011-10-11 David S. Miller <davem@davemloft.net>
2318
2319 * regcache.c (regcache_restore): Do not write unavailable regs, mark
2320 static.
2321 * regcache.h (regcache_restore): Remove declaration.
2322
205c306f
DM
2323 * gdbarch.sh: New field 'long_long_align_bit'.
2324 * gdbarch.c, gdbarch.h: Regenerate.
2325 * i386-tdep.c (i386_gdbarch_init): Set long_long_align_bit to 32.
2326 * jit.c (jit_read_code_entry): Use it to determine correct size offset.
2327
941b2081
JK
23282011-10-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2329
2330 Revert this part of:
2331 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2332 Support @entry in input expressions.
2333 * c-exp.y (ENTRY, unknown_cpp_name): New.
2334 (exp: UNKNOWN_CPP_NAME): Change to `exp: unknown_cpp_name'.
2335 (unknown_cpp_name: UNKNOWN_CPP_NAME, unknown_cpp_name: ENTRY)
2336 (variable: name_not_typename '@' ENTRY, name: ENTRY)
2337 (name_not_typename: ENTRY): New.
2338 (yylex): Recognize ENTRY.
2339
2340 Reimplement @entry in input expressions.
2341 * c-exp.y (ENTRY): New.
2342 (variable: name_not_typename ENTRY): New.
2343 (lex_one_token): Optionally return ENTRY instead of the '@' lex.
2344
3c4d7e12
PA
23452011-10-11 Pedro Alves <pedro@codesourcery.com>
2346
2347 * linux-nat.c (linux_handle_extended_wait): Always dump both the
2348 parent and child's pids as soon as we detect a clone event.
2349 Adjust another debug message.
2350
ea23808b
PA
23512011-10-11 Pedro Alves <pedro@codesourcery.com>
2352
2353 * linux-nat.c (linux_lwp_is_zombie): Return early if the LWP is
2354 not zombie instead of reading the whole file.
2355
904578ed
JK
23562011-10-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2357
2358 Fix separate debuginfo warning with "remote:" access.
2359 * objfiles.h (struct objfile): New fields crc32 and crc32_p.
2360 * symfile.c (get_file_crc): New function with the code moved from ...
2361 (separate_debug_file_exists): ... this function, specifically variables
2362 buffer and count. New variable verified_as_different, set it. Remove
2363 file_crc initialization. Verify also if both files are not the same
2364 manually, if needed.
2365
51370a33
YQ
23662011-10-11 Yao Qi <yao@codesourcery.com>
2367
2368 * arm-tdep.c (arm_get_next_pc_raw): Use read_memory_unsigned_integer
2369 to get address.
2370
0838fb57
DE
23712011-10-10 Doug Evans <dje@google.com>
2372
2373 * linux-thread-db.c (thread_db_new_objfile): Only try to load
2374 libthread_db when we load libpthread or the main symbol file.
2375 (thread_db_inferior_created): New function.
2376 (_initialize_thread_db): Attach inferior_created observer.
2377 * linux-nat.c (linux_child_post_attach): Remove call to
2378 check_for_thread_db.
2379 (linux_child_post_startup_inferior): Ditto.
2380 * objfiles.h (OBJF_MAINLINE): Define.
2381 * symfile.c (symbol_file_add_with_addrs_or_offsets): Pass it to
2382 allocate_objfile when appropriate.
2383
623bd5b7
UW
23842011-10-10 Ulrich Weigand <ulrich.weigand@linaro.org>
2385
2386 PR gdb/13218
2387 * arm-linux-nat.c (os_version, os_major, os_minor, os_release):
2388 Remove unused variables.
2389 (get_linux_version): Remove function.
2390 (_initialize_arm_linux_nat): Do not call it.
2391
79395f92
PA
23922011-10-10 Pedro Alves <pedro@codesourcery.com>
2393
2394 * linux-nat.c (linux_handle_extended_wait): Don't resume the new
2395 new clone lwp if the core asked it to stop. Don't pass on
2396 unexpected signals to the new clone; leave them pending instead.
2397
eff3df78
PA
23982011-10-10 Pedro Alves <pedro@codesourcery.com>
2399
2400 * linux-nat.c (resume_lwp): Remove redundant debug output.
2401
4b60df3d
PA
24022011-10-10 Pedro Alves <pedro@codesourcery.com>
2403
2404 * linux-nat.c (linux_nat_wait_1): Copy the event lwp's
2405 last_resume_kind before clearing it, and use the copy instead to
2406 determine whether to report a SIGSTOP as TARGET_SIGNAL_0. Use
2407 resume_clear_callback in the non-stop path too.
2408
6501578c
YQ
24092011-10-09 Yao Qi <yao@codesourcery.com>
2410
2411 * valprint.c (value_check_printable): Add one parameter OPTIONS.
2412 Honor OPTIONS and VAL's type.
2413 (common_val_print, value_print): Update to pass one more parameter.
2414
5a56e9c5
DE
24152011-10-09 Doug Evans <dje@google.com>
2416
2417 Add new "alias" command.
2418 * NEWS: Mention new command.
2419 * command.h (valid_user_defined_cmd_name_p): Declare.
2420 * defs.h (make_cleanup_dyn_string_delete): Declare.
2421 * utils.c: #include "dyn-string.h".
2422 (do_dyn_string_delete, make_cleanup_dyn_string_delete): New functions.
2423 * cli/cli-cmds.c: #include "dyn-string.h".
2424 (argv_to_dyn_string, valid_command_p, alias_command): New functions.
2425 (init_cli_cmds): Add new command.
2426 * cli/cli-decode.c (valid_user_defined_cmd_name_p): New function.
2427
509f0fd9
JK
24282011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2429
2430 Fix compatibility with older GCCs.
2431 * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Initialize parameter.
2432 * stack.c (read_frame_arg): Initialize val_deref.
2433
2bda9cc5
JK
24342011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2435
2436 Entry values NEWS entries, DWARF disassembly support.
2437 * NEWS: New entry values entry.
2438 (set print entry-values, show print entry-values)
2439 (set debug entry-values, show debug entry-values): New entries.
2440 * dwarf2loc.c (disassemble_dwarf_expression): New parameters start and
2441 indent. Remove variable start. Move header printing out. Respect
2442 INDENT. Support DW_OP_GNU_entry_value.
2443 (locexpr_describe_location_1): Move the header printing here, extend
2444 the disassemble_dwarf_expression passed parameters.
2445
a471c594
JK
24462011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2447
2448 Display @entry parameter values even for references.
2449 * ada-valprint.c (ada_val_print_1) <TYPE_CODE_REF>: Try also
2450 coerce_ref_if_computed.
2451 * c-valprint.c (c_val_print) <TYPE_CODE_REF>: Likewise.
2452 * dwarf2expr.c (dwarf_block_to_dwarf_reg_deref): New function.
2453 (execute_stack_op) <DW_OP_GNU_entry_value>: Add -1 deref_size to the
2454 existing push_dwarf_reg_entry_value call. Add new detection calling
2455 dwarf_block_to_dwarf_reg_deref. Update the error message.
2456 (ctx_no_push_dwarf_reg_entry_value): New parameter deref_size.
2457 * dwarf2expr.h
2458 (struct dwarf_expr_context_funcs) <push_dwarf_reg_entry_value>: Add new
2459 parameter deref_size, describe it in the comment.
2460 (ctx_no_push_dwarf_reg_entry_value): Add new parameter deref_size.
2461 (dwarf_block_to_dwarf_reg_deref): New declaration.
2462 * dwarf2loc.c (dwarf_entry_parameter_to_value): Add new parameter
2463 deref_size, describe it in the function comment. New variables
2464 data_src and size, fetch the alternative block accoring to DEREF_SIZE.
2465 (dwarf_expr_push_dwarf_reg_entry_value): Add new parameter deref_size,
2466 describe it in the function comment. Fetch the alternative block
2467 accoring to DEREF_SIZE.
2468 (entry_data_value_coerce_ref, entry_data_value_copy_closure)
2469 (entry_data_value_free_closure, entry_data_value_funcs): New.
2470 (value_of_dwarf_reg_entry): New variables checked_type, target_type,
2471 outer_val, target_val, val and addr. Try to fetch and create also
2472 referenced value content.
2473 (pieced_value_funcs): NULL value for coerce_ref.
2474 (needs_dwarf_reg_entry_value): Add new parameter deref_size.
2475 * f-valprint.c (f_val_print) <TYPE_CODE_REF>: Try also
2476 coerce_ref_if_computed.
2477 * opencl-lang.c (opencl_value_funcs): NULL value for coerce_ref.
2478 * p-valprint.c (pascal_val_print) <TYPE_CODE_REF>: Likewise.
2479 * stack.c (read_frame_arg): Compare also dereferenced values.
2480 * value.c (value_computed_funcs): Make the parameter v const, use
2481 value_lval_const for it.
2482 (value_lval_const, coerce_ref_if_computed): New function.
2483 (coerce_ref): New variable retval. Call also coerce_ref_if_computed.
2484 * value.h (struct lval_funcs): New field coerce_ref.
2485 (value_computed_funcs): Make the parameter v const.
2486 (value_lval_const, coerce_ref_if_computed): New declarations.
2487
36b11add
JK
24882011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2489
2490 Support @entry in input expressions.
2491 * c-exp.y (ENTRY, unknown_cpp_name): New.
2492 (exp: UNKNOWN_CPP_NAME): Change to `exp: unknown_cpp_name'.
2493 (unknown_cpp_name: UNKNOWN_CPP_NAME, unknown_cpp_name: ENTRY)
2494 (variable: name_not_typename '@' ENTRY, name: ENTRY)
2495 (name_not_typename: ENTRY): New.
2496 (yylex): Recognize ENTRY.
2497 * eval.c (evaluate_subexp_standard): Support also OP_VAR_ENTRY_VALUE.
2498 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
2499 Likewise.
2500 * parse.c (operator_length_standard): Likewise.
2501 * std-operator.def: New operator OP_VAR_ENTRY_VALUE.
2502
3343315b
JK
25032011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2504
2505 Display referenced values in backtraces.
2506 * printcmd.c (print_variable_and_value): Set OPTS.DEREF_REF to 1.
2507 * stack.c (print_frame_arg): Likewise.
2508
ac71a68c
JK
25092011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2510
2511 Make some lval_funcs methods to default on NULL.
2512 * valops.c (value_fetch_lazy): Check if lval_computed read method is
2513 NULL.
2514 (value_assign): Check if lval_computed write method is NULL.
2515 * value.h (struct lval_funcs): Comment NULL values for read and write
2516 methods.
2517
e18b2753
JK
25182011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2519
2520 Display @entry parameter values (without references).
2521 * dwarf2expr.c (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset):
2522 New functions.
2523 * dwarf2expr.h (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset):
2524 New declarations.
2525 * dwarf2loc.c (dwarf2_find_location_expression): Support location list
2526 entry record.
2527 (dwarf_entry_parameter_to_value, value_of_dwarf_reg_entry)
2528 (value_of_dwarf_block_entry, locexpr_read_variable_at_entry): New
2529 functions.
2530 (dwarf2_locexpr_funcs): Install locexpr_read_variable_at_entry.
2531 (loclist_read_variable_at_entry): New function.
2532 (dwarf2_loclist_funcs): Install loclist_read_variable_at_entry.
2533 * dwarf2read.c (read_call_site_scope): Support also DW_OP_fbreg in
2534 DW_AT_location, call dwarf_block_to_sp_offset for it.
2535 * frame.h (print_entry_values_no, print_entry_values_only)
2536 (print_entry_values_preferred, print_entry_values_if_needed)
2537 (print_entry_values_both, print_entry_values_compact)
2538 (print_entry_values_default, print_entry_values): New declarations.
2539 (struct frame_arg): New field entry_kind.
2540 (read_frame_arg): New parameter entryargp.
2541 * mi/mi-cmd-stack.c (list_arg_or_local): New gdb_assert for
2542 arg->entry_kind. Optionally print the `@entry' suffix.
2543 (list_args_or_locals): New variable entryarg, initialize it.
2544 Initialize also entry_kind of arg and entryarg. Conditionalize
2545 list_arg_or_local for arg, add list_arg_or_local for entryarg. Call
2546 xfree for entryarg.error.
2547 * stack.c (print_entry_values_no, print_entry_values_only)
2548 (print_entry_values_preferred, print_entry_values_if_needed)
2549 (print_entry_values_both, print_entry_values_compact)
2550 (print_entry_values_default, print_entry_values_choices)
2551 (print_entry_values): New variables.
2552 (print_frame_arg): New gdb_assert for arg->entry_kind. Optionally
2553 print the `@entry' suffix, possibly in combination for
2554 print_entry_values_compact.
2555 (read_frame_arg): New parameter entryargp, new variables entryval,
2556 entryval_error and val_equal. Read in also entryargp, respect
2557 print_entry_values, compare the values using val_equal, fill in also
2558 argp->entry_kind (together with entryargp->entry_kind).
2559 (print_frame_args): New variable entryarg, initialize it.
2560 Conditionalize print_frame_arg for arg, add print_frame_arg for
2561 entryarg. Call xfree for entryarg.error.
2562 (_initialize_stack): Call add_setshow_enum_cmd for `entry-values'.
2563 * symtab.h (struct symbol_computed_ops): New field
2564 read_variable_at_entry.
2565
93d86cef
JK
25662011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2567
2568 Code reshuffle.
2569 * frame.h (struct frame_arg): New definition.
2570 (read_frame_arg): New declaration.
2571 * mi/mi-cmd-stack.c (list_arg_or_local): New functiom from ...
2572 (list_args_or_locals): ... the code here. New variable arg, call
2573 read_frame_arg and list_arg_or_local with it. Unify the
2574 PRINT_SIMPLE_VALUES and PRINT_ALL_VALUES cases. Call xfree for
2575 arg.error.
2576 * stack.c (print_frame_arg): New functiom from the code of
2577 print_frame_args.
2578 (read_frame_arg): New function.
2579 (print_frame_args): Remove variable val. New variable arg, call
2580 read_frame_arg and print_frame_arg with it. Call xfree for arg.error.
2581
2d6c5dc2
JK
25822011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2583
2584 Protect entry values against self tail calls.
2585 * dwarf2loc.c (VEC (CORE_ADDR), func_verify_no_selftailcall): New.
2586 (dwarf_expr_dwarf_reg_entry_value): Call func_verify_no_selftailcall.
2587
111c6489
JK
25882011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2589
2590 Recognize virtual tail call frames.
2591 * Makefile.in (SFILES): Add dwarf2-frame-tailcall.c.
2592 (HFILES_NO_SRCDIR): Add dwarf2-frame-tailcall.h.
2593 (COMMON_OBS): Add dwarf2-frame-tailcall.o.
2594 * dwarf2-frame-tailcall.c: New file.
2595 * dwarf2-frame-tailcall.h: New file.
2596 * dwarf2-frame.c: Include dwarf2-frame-tailcall.h.
2597 (execute_cfa_program): New function comment. Return INSN_PTR. Reset
2598 REGS.PREV only after CIE execution.
2599 (struct dwarf2_frame_cache): New field tailcall_cache.
2600 (dwarf2_frame_cache): New variables entry_pc, entry_cfa_sp_offset,
2601 entry_cfa_sp_offset_p and instr. Execute FDE instructions in two
2602 parts, try to find entry_cfa_sp_offset. Call
2603 dwarf2_tailcall_sniffer_first.
2604 (dwarf2_frame_prev_register): Call dwarf2_tailcall_prev_register_first
2605 when appropriate.
2606 (dwarf2_frame_dealloc_cache): New function.
2607 (dwarf2_frame_sniffer): Preinitialize cache by dwarf2_frame_cache.
2608 (dwarf2_frame_unwind): Install dwarf2_frame_dealloc_cache.
2609 (dwarf2_signal_frame_unwind): Do not install dwarf2_frame_dealloc_cache.
2610 (dwarf2_append_unwinders): Add dwarf2_tailcall_frame_unwind.
2611 (dwarf2_frame_cfa): Support also dwarf2_tailcall_frame_unwind.
2612 * dwarf2loc.c (func_addr_to_tail_call_list)
2613 (tailcall_dump, call_sitep, VEC (call_sitep), chain_candidate)
2614 (call_site_find_chain_1, call_site_find_chain): New.
2615 * dwarf2loc.h (struct call_site_chain): New.
2616 (call_site_find_chain): New declaration.
2617 * frame.c (get_frame_address_in_block): Support also TAILCALL_FRAME.
2618 * frame.h (enum frame_type): New entry TAILCALL_FRAME.
2619 * python/py-frame.c (gdbpy_initialize_frames): Add TAILCALL_FRAME.
2620 * stack.c (frame_info): Support also TAILCALL_FRAME.
2621
bb984ff1
JK
26222011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2623
2624 Tail call sites reader implementation.
2625 * dwarf2read.c (read_call_site_scope): Recognize DW_AT_GNU_tail_call,
2626 fill in TYPE_TAIL_CALL_LIST.
2627 * gdbtypes.h (struct func_type): New field tail_call_list.
2628 (struct call_site): New field tail_call_next.
2629 (TYPE_TAIL_CALL_LIST): New definition.
2630
8e3b41a9
JK
26312011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2632
2633 Implement basic support for DW_TAG_GNU_call_site.
2634 * block.c: Include gdbtypes.h and exceptions.h.
2635 (call_site_for_pc): New function.
2636 * block.h (call_site_for_pc): New declaration.
2637 * defs.h: Include hashtab.h.
2638 (make_cleanup_htab_delete, core_addr_hash, core_addr_eq): New
2639 declarations.
2640 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Install
2641 ctx_no_push_dwarf_reg_entry_value.
2642 * dwarf2expr.c (read_uleb128, read_sleb128): Support R as NULL.
2643 (dwarf_block_to_dwarf_reg): New function.
2644 (execute_stack_op) <DW_OP_GNU_entry_value>: Implement it.
2645 (ctx_no_push_dwarf_reg_entry_value): New function.
2646 * dwarf2expr.h (struct dwarf_expr_context_funcs): New field
2647 push_dwarf_reg_entry_value.
2648 (ctx_no_push_dwarf_reg_entry_value, dwarf_block_to_dwarf_reg): New
2649 declarations.
2650 * dwarf2loc.c: Include gdbcmd.h.
2651 (dwarf_expr_ctx_funcs): New forward declaration.
2652 (entry_values_debug, show_entry_values_debug, call_site_to_target_addr)
2653 (dwarf_expr_reg_to_entry_parameter)
2654 (dwarf_expr_push_dwarf_reg_entry_value): New.
2655 (dwarf_expr_ctx_funcs): Install dwarf_expr_push_dwarf_reg_entry_value.
2656 (dwarf2_evaluate_loc_desc_full): Handle NO_ENTRY_VALUE_ERROR.
2657 (needs_dwarf_reg_entry_value): New function.
2658 (needs_frame_ctx_funcs): Install it.
2659 (_initialize_dwarf2loc): New function.
2660 * dwarf2loc.h (entry_values_debug): New declaration.
2661 * dwarf2read.c (struct dwarf2_cu): New field call_site_htab.
2662 (read_call_site_scope): New forward declaration.
2663 (process_full_comp_unit): Copy call_site_htab.
2664 (process_die): Support DW_TAG_GNU_call_site.
2665 (read_call_site_scope): New function.
2666 (dwarf2_get_pc_bounds): Support NULL HIGHPC.
2667 (dwarf_tag_name): Support DW_TAG_GNU_call_site.
2668 (cleanup_htab): Delete.
2669 (write_psymtabs_to_index): Use make_cleanup_htab_delete instead of it.
2670 * exceptions.h (enum errors): New NO_ENTRY_VALUE_ERROR.
2671 * gdb-gdb.py (StructMainTypePrettyPrinter): Support
2672 FIELD_LOC_KIND_DWARF_BLOCK.
2673 * gdbtypes.h (enum field_loc_kind): New entry
2674 FIELD_LOC_KIND_DWARF_BLOCK.
2675 (struct main_type): New loc entry dwarf_block.
2676 (struct call_site, FIELD_DWARF_BLOCK, SET_FIELD_DWARF_BLOCK)
2677 (TYPE_FIELD_DWARF_BLOCK): New.
2678 * python/py-type.c: Include dwarf2loc.h.
2679 (check_types_equal): Support FIELD_LOC_KIND_DWARF_BLOCK. New
2680 internal_error call on unknown FIELD_LOC_KIND.
2681 * symtab.h (struct symtab): New field call_site_htab.
2682 * utils.c (do_htab_delete_cleanup, make_cleanup_htab_delete)
2683 (core_addr_hash, core_addr_eq): New functions.
2684
b6cdc2c1
JK
26852011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2686
2687 Code reshuffle.
2688 * gdb-gdb.py (StructMainTypePrettyPrinter): Change
2689 TYPE_SPECIFIC_CALLING_CONVENTION to TYPE_SPECIFIC_FUNC. Move
2690 calling_convention under func_stuff there.
2691 * gdbtypes.c (make_function_type): Call INIT_FUNC_SPECIFIC.
2692 (init_type) <TYPE_CODE_FUNC>: Likewise.
2693 (recursive_dump_type): Change TYPE_SPECIFIC_CALLING_CONVENTION to
2694 TYPE_SPECIFIC_FUNC. New comment for tail_call_list.
2695 * gdbtypes.h (enum type_specific_kind): Change
2696 TYPE_SPECIFIC_CALLING_CONVENTION to TYPE_SPECIFIC_FUNC.
2697 (struct main_type) <type_specific>: Change calling_convention to
2698 func_stuff. Move calling_convention to ...
2699 (struct func_type): ... this new struct.
2700 (INIT_FUNC_SPECIFIC): New #define.
2701 (TYPE_CALLING_CONVENTION): Change calling_convention to func_stuff.
2702
181cebd4
JK
27032011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2704
2705 Fix DW_OP_GNU_implicit_pointer for DWARF32 v3+ on 64-bit arches.
2706 * dwarf2-frame.c (execute_stack_op): Initialize ctx->ref_addr_size.
2707 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_implicit_pointer>: Use
2708 ctx->ref_addr_size. Handle its invalid value.
2709 * dwarf2expr.h (struct dwarf_expr_context): New field ref_addr_size.
2710 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full)
2711 (dwarf2_loc_desc_needs_frame): Initialize ctx->ref_addr_size.
2712 * dwarf2loc.h (dwarf2_per_cu_ref_addr_size): New declaration.
2713 * dwarf2read.c (decode_locdesc): Initialize ctx->ref_addr_size.
2714 (dwarf2_per_cu_ref_addr_size): New function.
2715
c471e790
JK
27162011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2717
2718 Code cleanup.
2719 * dwarf2read.c (per_cu_header_read_in): New function.
2720 (dwarf2_per_cu_addr_size, dwarf2_per_cu_offset_size): Use it, with new
2721 variables cu_header_local and cu_headerp.
2722
741f5e3c
JK
27232011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2724
2725 Fix initial language detection with -readnow.
2726 * dwarf2read.c (dw2_find_symbol_file): Handle OBJF_READNOW case.
2727 * symfile.h (struct quick_symbol_functions): State find_symbol_file
2728 searches only for global symbols.
2729
a73d2258
JK
27302011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2731
2732 Fix printed anonymous struct name.
2733 * dwarf2read.c (fixup_partial_die): Handle for anonymous structs also
2734 DW_TAG_interface_type. Strip for anonymous structs any prefixes.
2735 (anonymous_struct_prefix): New function.
2736 (determine_prefix): New variables retval. Call anonymous_struct_prefix.
2737 (dwarf2_name): Strip for anonymous structs any prefixes.
2738
749fd4ea
DE
27392011-10-07 Doug Evans <dje@google.com>
2740
1fa57852
DE
2741 * python/lib/gdb/printing.py (register_pretty_printer): New argument
2742 `replace'.
2743
690a4937
DE
2744 * python/lib/gdb/printing.py: Whitespace cleanup.
2745
749fd4ea
DE
2746 * python/py-value.c (valpy_call): Initialize ftype to avoid compiler
2747 warning.
2748
4c38200f
PA
27492011-10-07 Pedro Alves <pedro@codesourcery.com>
2750
2751 * linux-nat.h (ALL_LWPS): Remove the ptid parameter.
2752 * amd64-linux-nat.c (amd64_linux_dr_set_control)
2753 (amd64_linux_dr_set_addr, amd64_linux_dr_unset_status): Adjust.
2754 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint)
2755 (arm_linux_remove_hw_breakpoint, arm_linux_insert_watchpoint)
2756 (arm_linux_remove_watchpoint): Adjust.
2757 * i386-linux-nat.c (i386_linux_dr_set_control)
2758 (i386_linux_dr_set_addr, i386_linux_dr_unset_status): Adjust.
2759 * ia64-linux-nat.c (ia64_linux_insert_watchpoint)
2760 (ia64_linux_remove_watchpoint): Adjust.
2761 * mips-linux-nat.c (write_watchpoint_regs): Adjust.
2762 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint)
2763 (ppc_linux_insert_hw_breakpoint, ppc_linux_remove_hw_breakpoint)
2764 (ppc_linux_insert_mask_watchpoint)
2765 (ppc_linux_remove_mask_watchpoint, ppc_linux_insert_watchpoint)
2766 (ppc_linux_remove_watchpoint): Adjust.
2767 * s390-nat.c (s390_insert_watchpoint, s390_remove_watchpoint):
2768 Adjust.
2769
b7ff339d
CV
27702011-10-07 Corinna Vinschen <vinschen@redhat.com>
2771
2772 * windows-nat.c: Include wchar.h to avoid compiler warnings.
2773 (clear_win32_environment): New function for Cygwin to clear out
2774 Win32 environment.
2775 (windows_create_inferior): Prepare new environment from in_env
2776 for Cygwin, too.
2777
f287c1f3
PM
27782011-10-07 Phil Muldoon <pmuldoon@redhat.com>
2779
5631e596 2780 PR python/13264
f287c1f3
PM
2781 * python/py-value.c (valpy_call): Check that arguments are
2782 a tuple.
2783 (is_intlike): Remove call to CHECK_TYPEDEF.
2784 (valpy_nonzero): Catch GDB exceptions.
2785 (valpy_absolute): Ditto.
2786 (valpy_lazy_string): Ditto.
2787 (valpy_call): Ditto.
2788 (valpy_get_is_optimized_out): Ditto.
2789 (valpy_long): Ditto.
2790 (valpy_float): Ditto.
2791 (valpy_int): Call CHECK_TYPEDEF. Catch GDB exceptions.
2792 (valpy_richcompare): Ditto.
2793
03583c20
UW
27942011-10-07 Ulrich Weigand <ulrich.weigand@linaro.org>
2795
2796 * inferior.h (disable_randomization): Declare.
2797 * infrun.c (disable_randomization): New global variable.
2798 (show_disable_randomization): New function.
2799 (set_disable_randomization): Likewise.
2800 (_initialize_infrun): Install set/show disable-randomization
2801 commands.
2802 * linux-nat.c (disable_randomization): Remove.
2803 (show_disable_randomization): Likewise.
2804 (set_disable_randomization): Likewise.
2805 (_initialize_linux_nat): No longer install set/show
2806 disable-randomization commands here.
2807 (linux_nat_supports_disable_randomization): New function.
2808 (linux_nat_add_target): Install it.
2809 * remote.c (PACKET_QDisableRandomization): New enum value.
2810 (remote_protocol_packets): Support QDisableRandomization.
2811 (_initialize_remote): Likewise.
2812 (remote_supports_disable_randomization): New function.
2813 (init_remote_ops): Install it.
2814 (extended_remote_supports_disable_randomization): New function.
2815 (init_extended_remote_ops): Install it.
2816 (extended_remote_disable_randomization): New function.
2817 (extended_remote_create_inferior_1): Call it.
2818 * target.h (struct target_ops): Add to_supports_disable_randomization.
2819 (target_supports_disable_randomization): Add prototype.
2820 * target.c (target_supports_disable_randomization): New function.
2821 (find_default_supports_disable_randomization): Likewise.
2822 (init_dummy_target): Install it.
2823
20c168b5
KP
28242011-10-07 Kevin Pouget <kevin.pouget@st.com>
2825
2826 Allow Python notification of new object-file loadings.
2827 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-newobjfilevent.c.
2828 (SUBDIR_PYTHON_OBS): Add py-newobjfileevent.o.
2829 Add build rule for this file.
2830 * python/py-event.h (emit_new_objfile_event): New prototype.
2831 (newobjfile): New Python event emitter.
2832 * python/py-evts.c (gdbpy_initialize_py_events): Add new_objfile to
2833 Python event registry.
2834 * python/py-inferior.c: Include objfiles.h
2835 (python_new_objfile): New function.
2836 (gdbpy_initialize_inferior): Add python_new_objfile to the new objfile
2837 observers.
2838 * python/py-newobjfileevent.c: New file.
2839 * python-internal.h (gdbpy_initialize_new_objfile_event): New
2840 prototype.
2841 * python/python.c (_initialize_python): Add
2842 gdbpy_initialize_new_objfile_event call.
2843 * NEWS: Add item for new Python event "gdb.newobjfile"
2844
b1c8db38
TG
28452011-10-05 Tristan Gingold <gingold@adacore.com>
2846
2847 * ada-tasks.c (read_atcb): Make ravenscar_task_name static.
2848 Extract the ravenscar task name from the symbol for the atcb.
2849
0dab82e9
PK
28502011-10-04 Paul Koning <paul_koning@dell.com>
2851
2852 * python/py-type.c (typy_make_iter): Add forward declaration.
2853 (typy_fields_items): Use the gdb.Type iterator.
2854
84ad80e6
PK
28552011-10-04 Paul Koning <paul_koning@dell.com>
2856
2857 * NEWS: Add entry for Python gdb.Type mapping methods.
2858
cb6be26b
KP
28592011-10-04 Kevin Pouget <kevin.pouget@st.com>
2860
2861 PR python/12691: Add the inferior to Python exited event
2862 * python/py-exitedevent.c (create_exited_event_object): Add inferior
2863 to exited_event.
2864 * python/py-event.h (emit_exited_event): Likewise
2865 * python/-inferior.c (python_inferior_exit): Likewise
2866
6005b210
JB
28672011-10-03 Joel Brobecker <brobecker@adacore.com>
2868
2869 * ada-tasks.c (print_ada_task_info): Add "thread-id" field
2870 in output of -ada-task-info GDB/MI command.
2871
75082e8c
JB
28722011-10-03 Joel Brobecker <brobecker@adacore.com>
2873
2874 * ada-lang.h (struct inferior): Declare.
2875 (print_ada_task_info): Add declaration.
2876 * ada-tasks.c (print_ada_task_info): Make non-static.
2877 * mi/mi-cmds.c (mi_cmds): Add "ada-task-info".
2878 * mi/mi-cmds.h (mi_cmd_ada_task_info): Add declaration.
2879 * mi/mi-main.c: #include "ada-lang.h".
2880 (mi_cmd_list_features): Add "ada-task-info" to the list
2881 of supported features.
2882 (mi_cmd_ada_task_info): New function.
2883
7ed7d719
JB
28842011-10-03 Joel Brobecker <brobecker@adacore.com>
2885
2886 * python/python.c (python_run_simple_file): New function.
2887 (source_python_script, source_python_script_for_objfile):
2888 Replace call to PyRun_SimpleFile by call to
2889 python_run_simple_file.
2890
3fcaed38
PK
28912011-10-03 Paul Koning <paul_koning@dell.com>
2892
2893 * python/py-value.c (valpy_get_address): Use Py_XINCREF.
2894 (value_to_value_object): Fetch value if it was lazy.
2895
8e5c319d
JK
28962011-10-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2897
2898 Code cleanup.
2899 * solib-svr4.c (svr4_default_sos): Remove variables head and link_ptr.
2900 Rearrange the code for it.
2901
dd11a36c
JB
29022011-10-02 Joel Brobecker <brobecker@adacore.com>
2903
2904 * breakpoint.c (bkpt_print_recreate): Add call to
2905 print_recreate_thread.
2906
723b724b
MF
29072011-09-29 Mike Frysinger <vapier@gentoo.org>
2908
2909 * common/linux-ptrace.h (PTRACE_GETFDPIC, PTRACE_GETFDPIC_EXEC,
2910 PTRACE_GETFDPIC_INTERP): Define.
2911
412946b6
YQ
29122011-09-28 Yao Qi <yao@codesourcery.com>
2913
2914 * symfile.c (add_symbol_file_command): Update message on usage.
2915
a73bb892
PK
29162011-09-28 Paul Koning <paul_koning@dell.com>
2917
2918 * python/py-type.c (make_fielditem, typy_field_names, typy_items)
2919 (typy_length, typy_get, typy_has_key, typy_make_iter)
2920 (typy_iterkeys, typy_iteritems, typy_itervalues, typy_iter)
2921 (typy_iterator_iter, typy_iterator_iternext)
2922 (typy_iterator_dealloc): New functions to implement standard
2923 Python mapping methods on gdb.Type object.
2924 (gdb.TypeIterator): New Python type.
2925 * python/python-internal.h (gdbpy_iter_kind): New enum.
a73bb892 2926
fe10a582
DM
29272011-09-28 David S. Miller <davem@davemloft.net>
2928
2929 * sparc-tdep.h (SPARC_F2_REGNUM, SPARC_F3_REGNUM, SPARC_F4_REGNUM,
2930 SPARC_F5_REGNUM, SPARC_F6_REGNUM, SPARC_F7_REGNUM): New enums.
2931 * sparc-tdep.c (sparc_complex_floating_p): New function.
2932 (sparc32_store_arguments): Handle complex floats.
2933 (sparc32_extract_return_value): Likewise.
2934 (sparc32_store_return_value): Likewise.
2935 (sparc32_stabs_argument_has_addr): Likewise.
2936 * sparc64-tdep.c (sparc64_complex_floating_p): New function.
2937 (sparc64_store_floating_fields): Handle complex floats.
2938 (sparc64_store_arguments): Likewise.
2939 (sparc64_store_return_value): Likewise.
2940
c93dbcba
EZ
29412011-09-28 Eli Zaretskii <eliz@gnu.org>
2942
2943 * windows-nat.c (env_sort) [!__CYGWIN__]: Function restored from
2944 before the change on 2006-12-09.
2945 (windows_create_inferior) [!__CYGWIN__]: Restore code that
2946 generates the environment block for CreateProcessA, modulo the
2947 Cygwin-specific parts that are not needed here.
2948
f00c55f8
TG
29492011-09-27 Tristan Gingold <gingold@adacore.com>
2950
2951 * target.h (enum target_object): Add TARGET_OBJECT_DARWIN_DYLD_INFO.
2952 * solib-darwin.c (DYLD_VERSION_MAX): Update number.
2953 (darwin_solib_get_all_image_info_addr_at_init): New function.
2954 (darwin_solib_read_all_image_info_addr): Likewise.
2955 (darwin_solib_create_inferior_hook): Use the above two functions.
2956 * darwin-nat.c (darwin_execvp): Renames retval to res.
2957 (darwin_read_write_inferior): Update comment.
2958 (darwin_read_dyld_info): New function.
2959 (darwin_xfer_partial): Handle DYLD_INFO.
2960
6710bf39
SS
29612011-09-27 Stan Shebs <stan@codesourcery.com>
2962
2963 Add return address collection for tracepoints.
2964 * tracepoint.c (encode_actions_1): Add case for $_ret.
2965 (validate_actionline): Check for $_ret.
2966 (trace_dump_actions): Ditto.
2967 * ax-gdb.h (gen_trace_for_return_address): Declare.
2968 * ax-gdb.c: Include arch-utils.h.
2969 (gen_trace_for_return_address): New function.
2970 (agent_command): Add return address special case.
2971 * amd64-tdep.c: Include ax.h and ax-gdb.h.
2972 (amd64_gen_return_address): New function.
2973 (amd64_init_abi): Call it.
2974 * i386-tdep.c: Include ax.h and ax-gdb.h.
2975 (i386_gen_return_address): New function.
2976 (i386_init_abi): Call it.
2977 * arch-utils.h (default_gen_return_address): Declare.
2978 * arch-utils.c (default_gen_return_address): New function.
2979 * gdbarch.sh (gen_return_address): New method.
2980 * gdbarch.h, gdbarch.c: Regenerate.
2981
e04e5beb
JM
29822011-09-23 Joseph Myers <joseph@codesourcery.com>
2983
2984 PR gdb/13079
2985 * i386-tdep.c (i386_frame_align): New.
2986 (i386_gdbarch_init): Use i386_frame_align.
2987
f3d6df6d
YQ
29882011-09-23 Yao Qi <yao@codesourcery.com>
2989
2990 * i386-linux-nat.c (i386_linux_resume): Use read_memory_unsigned_integer
2991 to get address.
2992
e69860f1
TG
29932011-09-22 Tristan Gingold <gingold@adacore.com>
2994
2995 * fork-child.c (fork_inferior): Add exec_fun parameter.
2996 Call exec_fun or execvp.
2997 * inferior.h: Adjust prototype.
2998 * gnu-nat.c (gnu_create_inferior): Adjust fork_inferior call.
2999 * inf-ttrace.c (inf_ttrace_create_inferior): Ditto.
3000 * inf-ptrace.c (inf_ptrace_create_inferior): Ditto.
3001 * procfs.c (procfs_create_inferior): Ditto.
3002 * darwin-nat.c (darwin_execvp): New function.
3003 (darwin_create_inferior): Use it.
3004
4b51d87b
YQ
30052011-09-22 Yao Qi <yao@codesourcery.com>
3006
3007 * infrun.c (context_switch): Print debug message when switching to
3008 a different thread.
3009
56b9d9ac
UW
30102011-09-21 Ulrich Weigand <uweigand@de.ibm.com>
3011
3012 * s390-tdep.c (s390_function_arg_pass_by_reference): Handle
3013 complex and vector types.
3014 (s390_return_value_convention): Likewise.
3015
3016 (s390_value_from_register): Call check_typedef.
3017 (extend_simple_arg): Likewise.
3018 (alignment_of): Likewise.
3019 (s390_push_dummy_call): Likewise.
3020 (s390_return_value): Likewise.
3021
b2cd6b29
JM
30222011-09-21 Joseph Myers <joseph@codesourcery.com>
3023
3024 * event-top.c (async_disconnect): If an exception is thrown from
3025 quit_cover, call pop_all_targets. Use TRY_CATCH instead of
3026 catch_errors.
3027 * top.c (quit_cover): Return void and take no arguments.
3028 * top.h (quit_cover): Update prototype.
3029
67ba4e42
JM
30302011-09-20 Joseph Myers <joseph@codesourcery.com>
3031
3032 * mi/mi-main.c (mi_load_progress): Restore saved_uiout value to
3033 current_uiout, not uiout.
3034
562f943b
DE
30352011-09-19 Doug Evans <dje@google.com>
3036
3037 * python/py-auto-load.c (source_section_scripts): Fix file
3038 descriptor leak.
3039 * python/python.c (source_python_script_for_objfile): Tweak comments.
3040
34518530
YQ
30412011-09-18 Yao Qi <yao@codesourcery.com>
3042 Ulrich Weigand <ulrich.weigand@linaro.org>
3043
3044 Support displaced stepping for Thumb 16-bit insns.
3045 * arm-tdep.c (THUMB_NOP) Define.
3046 (thumb_copy_unmodified_16bit): New.
3047 (thumb_copy_b, thumb_copy_bx_blx_reg): New.
3048 (thumb_copy_alu_reg): New.
3049 (arm_copy_svc): Move some common code to ...
3050 (install_svc): ... here. New.
3051 (thumb_copy_svc): New.
3052 (install_pc_relative): New.
3053 (thumb_copy_pc_relative_16bit): New.
3054 (thumb_decode_pc_relative_16bit): New.
3055 (thumb_copy_16bit_ldr_literal): New.
3056 (thumb_copy_cbnz_cbz): New.
3057 (cleanup_pop_pc_16bit_all): New.
3058 (thumb_copy_pop_pc_16bit): New.
3059 (thumb_process_displaced_16bit_insn): New.
3060 (thumb_process_displaced_32bit_insn): New.
3061 (thumb_process_displaced_insn): process thumb instruction.
3062
3063 Support displaced stepping for Thumb 32-bit insns.
3064 * arm-tdep.c (thumb_copy_unmodified_32bit): New.
3065 (thumb2_copy_preload): New.
3066 (thumb2_copy_copro_load_store): New.
3067 (thumb2_copy_b_bl_blx): New.
3068 (thumb2_copy_alu_imm): New.
3069 (thumb2_copy_load_reg_imm): New.
3070 (thumb2_copy_load_literal): New
3071 (thumb2_copy_block_xfer): New.
3072 (thumb_32bit_copy_undef): New.
3073 (thumb_32bit_copy_unpred): New.
3074 (thumb2_decode_ext_reg_ld_st): New.
3075 (thumb2_decode_svc_copro): New.
3076 (decode_thumb_32bit_store_single_data_item): New.
3077 (thumb_copy_pc_relative_32bit): New.
3078 (thumb_decode_pc_relative_32bit): New.
3079 (decode_thumb_32bit_ld_mem_hints): New.
3080 (thumb2_copy_table_branch): New
3081 (thumb_process_displaced_32bit_insn): Process Thumb 32-bit
3082 instructions.
3083
2b16b2e3
YQ
30842011-09-18 Yao Qi <yao@codesourcery.com>
3085
3086 * arm-tdep.c (install_copro_load_store): PC is set 4-byte aligned.
3087 (install_b_bl_blx): Likewise.
3088
0f6f04ba
YQ
30892011-09-17 Yao Qi <yao@codesourcery.com>
3090
3091 * arm-tdep.c (install_ldr_str_ldrb_strb): Renamed to ...
3092 (install_load_store): ... this. New.
3093 Change parameter BYTE to SIZE.
3094 (arm_copy_ldr_str_ldrb_strb): Update caller.
3095 (arm_decode_ld_st_word_ubyte): Update caller.
3096
e2d96639
YQ
30972011-09-17 Yao Qi <yao@codesourcery.com>
3098
3099 * infrun.c (displaced_step_fixup): Move some code ...
3100 (displaced_step_restore): ... here. New function.
3101 (handle_inferior_event): Cleanup displaced stepping state for both
3102 child and parent when get forked or vforked event.
3103 * regcache.c (get_thread_arch_aspace_regcache): New function.
3104 get_thread_arch_regcache (): Call it.
3105
a8123151
JB
31062011-09-16 Joel Brobecker <brobecker@adacore.com>
3107
3108 * ada-tasks.c (print_ada_task_info): New function, merging
3109 short_task_info and info_tasks together. Reimplement using
3110 ui-out instead of printing to stdout directly. Move the code
3111 building and checking the task list here, instead of leaving it
3112 in info_tasks_command.
3113 (info_task): Move the code building and checking the task
3114 list here, instead of leaving it in info_tasks_command.
3115 (info_tasks_command): Delete code building and checking
3116 the task list - moved elsewhere. Update calls to info_tasks
3117 and info_task.
3118
fbf06824
JB
31192011-09-16 Joel Brobecker <brobecker@adacore.com>
3120
3121 * ada-tasks.c (info_task): Delete parameter `from_tty'.
3122
34a0bc90
JB
31232011-09-16 Joel Brobecker <brobecker@adacore.com>
3124
3125 * ada-tasks.c (info_tasks): Delete parameter `from_tty'.
3126
79779fa9
JB
31272011-09-16 Joel Brobecker <brobecker@adacore.com>
3128
3129 * ada-lang.h (ada_build_task_list): Remove parameter
3130 `warn_if_null'.
3131 * ada-tasks.c (ada_build_task_list): Remove parameter
3132 `warn_if_null'. Adjust implementation and documentation.
3133 (valid_task_id, ada_get_environment_task)
3134 iterate_over_live_ada_tasks): Adjust call to ada_build_task_list.
3135 (info_tasks_command): Adjust implementation.
3136 (task_command): Likewise.
3137 * ravenscar-thread.c (ravenscar_find_new_threads): Fix call
3138 to ada_build_task_list.
3139
e225eb91
JB
31402011-09-16 Joel Brobecker <brobecker@adacore.com>
3141
3142 * ada-tasks.c (ada_tasks_check_symbol_table, task_list): Delete.
3143 (enum ada_known_tasks_kind, struct ada_tasks_inferior_data): New.
3144 (ada_tasks_inferior_data_handle): New static global.
3145 (get_ada_tasks_inferior_data): New function.
3146 (ada_get_task_number, get_task_number_from_id, valid_task_id)
3147 (ada_get_environment_task, iterate_over_live_ada_tasks)
3148 (add_ada_task, read_known_tasks_array, read_known_tasks_list):
3149 Adjust.
3150 (ada_set_current_inferior_known_tasks_addr): New function.
3151 (read_known_tasks, ada_build_task_list, short_task_info)
3152 (info_tasks, info_task, info_tasks_command, task_command_1)
3153 (task_command, ada_task_list_changed): Adjust.
3154 (ada_tasks_invalidate_inferior_data): New function.
3155 (ada_normal_stop_observer, ada_new_objfile_observer): Adjust.
3156 (_initialize_tasks): Set ada_tasks_inferior_data_handle.
3157 * ada-lang.h (struct inferior): Add declaration.
3158 (ada_task_list_changed): Update profile.
3159 * remote-wtx-pd.c: #include "inferior.h".
3160 (switch_to_pd_internal): Update call to ada_task_list_changed.
3161
6da9ca05
JB
31622011-09-16 Joel Brobecker <brobecker@adacore.com>
3163
3164 * ada-tasks.c: #include "progspace.h" and "objfiles.h".
3165 (atcb_type, atcb_common_type, atcb_ll_type, atcb_call_type)
3166 (atcb_fieldno): Delete these static globals.
3167 (struct ada_tasks_pspace_data): New struct.
3168 (ada_tasks_pspace_data_handle): New static global.
3169 (get_ada_tasks_pspace_data): New function.
3170 (ada_tasks_invalidate_pspace_data): New function.
3171 (get_tcb_types_info, ptid_from_atcb_common, read_atcb)
3172 (read_known_tasks_list, ada_new_objfile_observer): Adjust.
3173 (_initialize_tasks): Create this module's per-progspace
3174 data handle.
3175
dccd3cbd
JB
31762011-09-16 Joel Brobecker <brobecker@adacore.com>
3177
3178 * ada-tasks.c (struct atcb_fieldnos): Renames struct tcb_fieldnos.
3179
f877b031
TG
31802011-09-16 Tristan Gingold <gingold@adacore.com>
3181
3182 * fork-child.c (fork_inferior): Update comment. Use alloca
3183 instead of xmalloc for argv. Move len and shell_command
3184 declarations in the block where they are used.
3185 Only call execvp. Factorize failure code.
3186
ae0c443d
JK
31872011-09-16 Abhijit Halder <abhijit.k.halder@gmail.com>
3188
3189 Code cleanup.
3190 * parse.c (write_exp_elt): Change argument to pass a pointer of union
3191 `exp_element' instead of an element of the same and make the function
3192 static.
3193 (write_exp_elt_opcode, write_exp_elt_sym, write_exp_elt_block)
3194 (write_exp_elt_objfile, write_exp_elt_longcst, write_exp_elt_dblcst)
3195 (write_exp_elt_decfloatcst, write_exp_elt_type, write_exp_elt_intern):
3196 Change argument of `write_exp_elt' function call.
3197 Remove extra spaces from comments.
3198 * parser-defs.h (write_exp_elt): Remove prototype.
3199
5af65ec0
PK
32002011-09-15 Paul Koning <paul_koning@dell.com>
3201
3202 * python/py-cmd.c (gdbpy_string_to_argv): Decrement reference
3203 count of item appended to list.
3204 * python/py-type.c (typy_fields): Likewise.
3205
72be8ccc
PK
32062011-09-15 Paul Koning <paul_koning@dell.com>
3207
883640a8 3208 * MAINTAINERS (Write After Approval): Add myself to the list.
72be8ccc 3209
92f6badc
KP
32102011-09-15 Kevin Pouget <kevin.pouget@st.com>
3211
3212 PR threads/12628
3213 * linux-fork.c (checkpoint_command): Disallow checkpointing of
3214 processes with multiple threads.
3215 (inf_has_multiple_thread_cb): New function.
3216 (inf_has_multiple_threads): New function.
3217
0672bf41 32182011-09-15 Kevin Pouget <kevin.pouget@st.com>
2aa48337
KP
3219
3220 PR Python/12692 Add gdb.selected_inferior() to Python interface.
3221 * python/py-inferior.c (GdbMethods): New Python method definition.
3222
6839b47f
KP
32232011-09-15 Kevin Pouget <kevin.pouget@st.com>
3224
3225 Handle multiple breakpoint hits in Python interface:
3226 * python/py-bpevent.c (create_breakpoint_event_object): Rename C/Python
3227 variable to breakpoints.
3228 * python/py-stopevent.c (emit_stop_event): Return a Python tuple of
3229 bps instead of single breakpoint. Fix some space typos.
3230 * python/py-stopevent.c (create_breakpoint_event_object): Rename
3231 variable to breakpoints.
3232
672f9b60
KP
32332011-09-15 Kevin Pouget <kevin.pouget@st.com>
3234
3235 * breakpoint.c (describe_other_breakpoints): Do not write 'duplicate'
3236 note if the breakpoint is internal.
3237
43675ae4
KP
32382011-09-15 Kevin Pouget <kevin.pouget@st.com>
3239
0672bf41 3240 * MAINTAINERS (Write After Approval): Add myself to the list
43675ae4 3241
15148d6a
PA
32422011-09-14 Pedro Alves <pedro@codesourcery.com>
3243
3244 * infrun.c (prepare_for_detach, wait_for_inferior)
3245 (fetch_inferior_event): Don't flush the register cache.
3246 * remote.c (struct stop_reply) <regcache>: Add comment.
3247
d83e736b
JK
32482011-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3249
3250 Remove excessive DWARF expressions memory duplication.
3251 * dwarf2loc.c (per_cu_dwarf_call): Remove variable back_to and its use
3252 for block.data.
3253 (indirect_pieced_value): Remove variable result. Remove variable
3254 back_to and its use for baton.data.
3255 (dwarf2_compile_expr_to_ax): Remove variable back_to and its use for
3256 block.data.
3257 * dwarf2read.c (dwarf2_fetch_die_location_block): Remove xmemdup.
3258 Update the function comment.
3259
c65b3e0d
PA
32602011-09-13 Pedro Alves <pedro@codesourcery.com>
3261
3262 * inferior.h (ALL_INFERIORS): New.
3263 * linux-thread-db.c (thread_db_find_new_threads_2): Remove check
3264 for a stopped thread.
3265 (thread_db_find_new_threads): Look for threads in all inferiors.
3266
a1398e0c
PA
32672011-09-13 Pedro Alves <pedro@codesourcery.com>
3268
3269 * breakpoint.c (update_watchpoint): Handle the case of the
3270 watchpoint to update not being in the breakpoint list yet.
3271 (hw_watchpoint_use_count): New, factored out from
3272 hw_watchpoint_used_count.
3273 (hw_watchpoint_used_count): Rename to ...
3274 (hw_watchpoint_used_count_others): ... this. Add `except'
3275 parameter. Don't count resources of `except'. Use
3276 hw_watchpoint_use_count.
3277
30596231
PA
32782011-09-13 Pedro Alves <pedro@codesourcery.com>
3279
3280 * gdbthread.h (enum thread_state): Moved here.
3281 (struct thread_info): Rename `executing_' field to `executing' and
3282 `state_' to `state'.
3283 * thread.c (enum thread_state): Moved to gdbthread.h.
3284 (new_thread, add_thread_silent, delete_thread_1)
3285 (any_live_thread_of_process, thread_alive, set_running)
3286 (set_running, is_thread_state, any_running, is_executing)
3287 (set_executing, finish_thread_state, print_thread_info)
3288 (do_captured_thread_select): Adjust.
3289
bede5f5f
JK
32902011-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3291
3292 Fix compatibility with gcc < 4.3 and non-gcc compilers.
3293 * amd64-tdep.c (amd64_skip_xmm_prologue): Convert 0b constants.
3294
4801a9a3
PA
32952011-09-12 Pedro Alves <pedro@codesourcery.com>
3296 Matt Rice <ratmice@gmail.com>
3297
3298 PR gdb/13175
3299
3300 * interps.c (struct interp) <interpreter_out>: Delete field.
3301 (interp_new): Remove the data and uiout parameters and adjust.
3302 (interp_set): Only set the current_uiout from the interpreter's
3303 uiout after initializing the interpreter. Adjust call to
3304 init_proc.
3305 (interp_ui_out): Adjust to call procs->ui_out_proc.
3306 (interp_data, interp_name): New.
3307 * interps.h (interp_init_ftype): Add `self' parameter.
3308 (interp_ui_out_ftype): New typedef.
3309 (struct interp_procs) <ui_out_proc>: New method pointer.
3310 (interp_new): Remove the data and uiout parameters.
3311 (interp_data, interp_name): Declare.
3312 * tui/tui-interp.c (tui_init): Adjust prototype.
3313 (tui_ui_out): New.
3314 (_initialize_tui_interp): Install tui_ui_out. Don't instanciate
3315 tui_out here. Adjust call to interp_new.
3316 * tui/tui-io.c (tui_initialize_io): Don't set current_uiout here.
3317 * cli/cli-interp.c (cli_interpreter_init): Adjust prototype.
3318 (cli_ui_out): New.
3319 (_initialize_cli_interp): Install it. Adjust call to interp_new.
3320 * mi/mi-common.h (struct mi_interp) <uiout>: New field.
3321 * mi/mi-interp.c (mi_interpreter_init): Adjust prototype.
3322 Initialize mi->uiout depending on the mi_version as extracted from
3323 the interpreter's name.
3324 (mi_ui_out): New.
3325 (_initialize_mi_interp): Install mi_ui_out. Adjust calls to
3326 interp_new. Don't allocate the ui_out's of the interpreters here.
3327
d0afda03 33282011-09-12 Aleksandar Ristovski <aristovski@qnx.com>
59145f8c 3329
d0afda03 3330 * solib.c (solib_used): New function.
59145f8c
AR
3331 (update_solib_list, reload_shared_libraries_1): Check if objfile is used
3332 by another so_list object before freeing it.
3333
bdaf8d4a
JK
33342011-09-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3335
3336 Code cleanup.
3337 * mi/mi-cmd-stack.c (list_args_or_locals): Use enum for the parameter
3338 values.
3339
df15bd07
JK
33402011-09-09 Jan Kratochvil <jan.kratochvil@redhat.com>
3341
3342 Code cleanup.
3343 * amd64-tdep.c (amd64_skip_prologue): Move the XMM code to ...
3344 (amd64_skip_xmm_prologue): ... this new function. Describe its
3345 parameters. No longer use amd64_prologue_line_bug.
3346 * defs.h (producer_is_gcc_ge_4): New declaration.
3347 * dwarf2read.c (producer_is_gcc_ge_4): Move to utils.c.
3348 (process_full_comp_unit): Update its caller. Remove
3349 amd64_prologue_line_bug initialization.
3350 * symtab.h (struct symtab): Remove field amd64_prologue_line_bug.
3351 * utils.c (producer_is_gcc_ge_4): Moved here from dwarf2read.c.
3352
25289eb2
PA
33532011-09-09 Pedro Alves <pedro@codesourcery.com>
3354
3355 * linux-nat.h (enum resume_kind): New.
3356 (struct lwp_info) <last_resume_kind>: New field.
ddf17726
PA
3357 * linux-nat.c (linux_child_follow_fork): Set last_resume_kind to
3358 resume_stop on the new lwp.
25289eb2
PA
3359 (add_lwp): Set last_resume_kind as resume_continue by default.
3360 (lin_lwp_attach_lwp): Set last_resume_kind as resume_stop.
3361 (resume_lwp): New, factored out from resume_callback. Also check
3362 for pending status in lp->waitstatus.
3363 (resume_callback): Reimplement.
3364 (resume_clear_callback): Set last_resume_kind as resume_stop.
3365 (resume_set_callback): Set last_resume_kind as resume_continue.
3366 (linux_nat_resume, linux_handle_extended_wait): Set
3367 last_resume_kind.
3368 (running_callback): Also check lp->waitstatus for pending events.
3369 (select_singlestep_lwp_callback): Check that lp->last_resume_kind
3370 is resume_step.
3371 (stop_and_resume_callback): Don't re-resume if the core wanted the
3372 lwp stopped. Use resume_lwp instead of resume_callback. Avoid
3373 using an invalidated pointer.
3374 (linux_nat_filter_event): Don't discard SIGSTOPs as delayed
3375 SIGSTOPs if the core wanted the LWP to stop.
3376 (linux_nat_wait_1) Don't consume a pending SIGSTOP if the core
3377 wanted the lwp to stop. If the core wanted the lwp to stop, and
3378 the lwp stopped with a SIGSTOP, report a TARGET_SIGNAL_0 instead
3379 of TARGET_SIGNAL_STOP.
3380 (linux_nat_stop_lwp): Don't synchronously wait for the lwp to stop
3381 here. Instead, signal the lwp, and set the last_resume_kind to
3382 resume_stop.
3383
f687d035
PA
33842011-09-09 Pedro Alves <pedro@codesourcery.com>
3385
3386 * linux-nat.c (lin_lwp_attach_lwp): Return 1 (ignore) instead of
3387 -1 (error), if the lwp exits right after attaching.
3388
bc587a6b
DE
33892011-09-08 Doug Evans <dje@google.com>
3390
63d97a20
DE
3391 * py-cmd.c: Some minor formatting fixes.
3392 (gdbpy_parse_command_name): Rename text arg to name, make const.
3393 All callers updated.
3394 * python-internal.h (gdbpy_parse_command_name): Update.
3395
bc587a6b
DE
3396 * cli/cli-decode.c (add_cmd): Add comment.
3397
08711b9a
JK
33982011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3399
3400 PR breakpoints/12435
3401 * amd64-tdep.c (amd64_skip_prologue): New variables start_pc_sal,
3402 next_sal, buf, offset and xmmreg. Advance PC if it sees the PR.
3403 * dwarf2read.c (process_full_comp_unit): Initialize
3404 amd64_prologue_line_bug.
3405 * symtab.h (struct symtab): New field amd64_prologue_line_bug.
3406
b2e7f004
JK
34072011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3408
3409 Fix TUI screen corruption.
3410 * utils.c (fputs_maybe_filtered): Replace !input_from_terminal_p by
3411 batch_flag.
3412
8afd712c
JK
34132011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3414
3415 * findvar.c (read_var_value): Never return NULL, throw an error
3416 instead. Update the function comment. State symbol name in the error
3417 messages.
3418 * python/py-frame.c (frapy_read_var): Remove handling of NULL from
3419 read_var_value.
3420 * stack.c (print_frame_args): Likewise.
3421 * valops.c (value_of_variable): Likewise.
3422
b99b5f66
JK
34232011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3424
3425 * stack.c (print_frame_args): New variable except. Wrap
3426 read_var_value and common_val_print into TRY_CATCH.
3427
85bc8cb7
JK
34282011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3429
3430 * eval.c (evaluate_subexp_standard) <OP_THIS>: Update the value_of_this
3431 caller to value_of_this.
3432 * p-exp.y: Update the value_of_this caller to value_of_this_silent.
3433 Twice.
3434 * valops.c (value_of_this): Remove parameter complain and variable ret.
3435 Update function comment. Never return NULL by this code.
3436 (value_of_this_silent): New function.
3437 * value.h (value_of_this): Remove parameter complain.
3438 (value_of_this_silent): New declaration.
3439
ede1849f
YQ
34402011-09-07 Yao Qi <yao@codesourcery.com>
3441
3442 * gdbthread.h (struct thread_info): Remove fields
3443 `stepping_through_solib_after_catch' and
3444 `stepping_through_solib_catchpoints'.
3445 * infrun.c (init_thread_stepping_state): Update.
3446 (process_event_stop_test, currently_stepping): Update.
3447 (currently_stepping_or_nexting_callback): Update.
3448
6aa27652
YQ
34492011-09-07 Yao Qi <yao@codesourcery.com>
3450
3451 * gdbthread.h (struct thread_info): Comment on field
3452 `step_after_step_resume_breakpoint'.
3453
00db5b94
PA
34542011-09-07 Abhijit Halder <abhijit.k.halder@gmail.com>
3455
3456 * remote.c (remote_console_output): Reindent.
3457
861152be
LM
34582011-09-06 Luis Machado <lgustavo@codesourcery.com>
3459
3460 * frame.c (has_stack_frames): Check for currently selected
3461 traceframe.
3462
ab821bc6
PA
34632011-09-06 Pedro Alves <pedro@codesourcery.com>
3464
3465 * event-top.h (MAXPROMPTS, struct prompts): Delete.
3466 (set_async_annotation_level, set_async_prompt, pop_prompt)
3467 (push_prompt, new_async_prompt): Delete declarations.
3468 * top.h (get_prompt, set_prompt): Change prototype.
3469 (get_prefix, set_prefix, get_suffix, set_suffix): Delete
3470 declarations.
3471 * top.c (command_loop):
3472 (top_prompt): New global.
3473 (get_prefix, set_prefix, get_suffix, ): Delete.
3474 (get_prompt, set_prompt): Rewrite.
3475 (show_new_async_prompt): Rename to ...
3476 (show_prompt): ... this.
3477 (init_main): Adjust. Don't handle --annotate=2 here.
3478 * event-top.c (new_async_prompt): Delete.
3479 (the_prompts): Delete.
3480 (more_to_come): Make static.
3481 (display_gdb_prompt): Use top_level_prompt() to compute the top
3482 level prompt, and don't notify the before_prompt observers
3483 directly here. Always trick readline into not trying to display
3484 the prompt if sync_execution and displaying the primary prompt.
3485 If displaying a local/secondary prompt, always show it, even if
3486 sync_execution is set.
3487 (change_annotation_level): Delete.
3488 (top_level_prompt): New, based on change_annotation_level.
3489 (push_prompt, pop_prompt): Delete.
3490 (async_disable_stdin): No longer pushes prompt.
3491 (command_line_handler): No longer pushes or pops prompt. If more
3492 input is expected, call display_gdb_prompt with an explicit empty
3493 prompt.
3494 (async_stop_sig): Adjust.
3495 (set_async_annotation_level, set_async_prompt): Delete.
3496 * python/python.c (before_prompt_hook): Adjust.
3497
f1d90504
PA
34982011-09-05 Pedro Alves <pedro@codesourcery.com>
3499
3500 PR cli/13110
3501
3502 * infrun.c (fetch_inferior_event): Check if there's a selected
3503 thread before checking if the selected thread is executing.
3504
0f641c01
PA
35052011-09-05 Pedro Alves <pedro@codesourcery.com>
3506
3507 * inf-loop.c (execute_command): Don't check if the current thread
3508 if running before synchronously waiting for command completion.
3509 * infrun.c (fetch_inferior_event): Handle "set exec-done-display"
3510 here.
3511 (normal_stop): Call async_enable_stdin here.
3512 * inf-loop.c (inferior_event_handler): Don't call
3513 async_enable_stdin, nor handle "set exec-done-display" here.
3514
30368258 35152011-09-04 Joel Brobecker <brobecker@adacore.com>
3516
3517 GDB 7.3.1 released.
3518
31916278
JB
35192011-09-04 Joel Brobecker <brobecker@adacore.com>
3520
3521 * NEWS: Change `7.3' into `7.3.1' in `Changes since GDB 7.3'.
3522
e8d56f18
JB
35232011-09-04 Joel Brobecker <brobecker@adacore.com>
3524
3525 * NEWS: Add entry for OpenBSD/NetBSD build failure.
3526
5dd05d8c
JK
35272011-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3528
3529 * config/s390/s390.mh (NATDEPFILES): Add linux-procfs.o dependency.
3530
7d8e6458 35312011-09-02 Matt Rice <ratmice@gmail.com>
3532
3533 PR gdb/10720
3534 * event-top.c (cli_command_loop): Replace readline setup with
3535 direct call to display_gdb_prompt.
3536 (display_gdb_prompt): Do not call observer mechanism during
3537 synchronous execution.
3538
84636d28
PA
35392011-09-02 Pedro Alves <pedro@codesourcery.com>
3540
3541 * linux-nat.c (in_pid_list_p): New.
3542 (linux_record_stopped_pid): Delete.
3543 (lin_lwp_attach_lwp): Check if PTRACE_ATTACH failed because we're
3544 already attached to the LWP. Return an indication if so.
3545 (linux_nat_filter_event): Adjust.
3546 * linux-thread-db.c (attach_thread): Handle lin_lwp_attach_lwp
3547 returning an indication to ignore this thread.
3548
b4a14fd0
PA
35492011-09-02 Pedro Alves <pedro@codesourcery.com>
3550
3551 * top.c: Include interps.h.
3552 (execute_command): If the target can async, but the interpreter is
3553 in sync mode, synchronously wait for the command to finish before
3554 returning.
3555 (execute_command_to_string): Force the interpreter to sync mode.
3556 * infrun.c: Include interps.h.
3557 (fetch_inferior_event): Don't restore the prompt yet if the
3558 interpreter is in sync mode.
3559 * interps.c (interpreter_async): New global.
3560 * interps.h (interpreter_async): Declare.
3561 * inf-loop.c: Include interps.h.
3562 (inferior_event_handler): Don't print the language change or run
3563 breakpoint commands yet if the interpreter in is sync mode.
3564 * main.c (captured_command_loop): Flip the interpreter to async
3565 mode.
3566 * cli/cli-script.c: Include interps.h.
3567 (execute_user_command, while_command, if_command): Force the
3568 interpreter to sync mode.
3569 * python/python.c: Include interps.h.
3570 (python_command, execute_gdb_command): Force the interpreter to
3571 sync mode.
3572
c709acd1
PA
35732011-09-02 Pedro Alves <pedro@codesourcery.com>
3574
3575 * value.c (show_convenience): Catch errors thrown while printing
3576 each internal variable.
3577 * infrun.c (validate_siginfo_access): New function.
3578 (siginfo_value_read, siginfo_value_write): Call it.
3579
9655e943
JK
35802011-09-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3581
3582 Revert:
3583 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
3584 * dwarf2read.c (new_symbol): Handle DW_AT_variable_parameter
3585 attribute.
3586
cb457ae2
YQ
35872011-08-29 Yao Qi <yao@codesourcery.com>
3588
3589 * solib-dsbt.c (bfd_lookup_symbol): Removed.
3590 (cmp_name): New.
3591 (enable_break2): Update caller.
3592 * solib-frv.c (bfd_lookup_symbol): Removed.
3593 (cmp_name): New.
3594 (enable_break2): Update caller.
3595 * solib-pa64.c (bfd_lookup_symbol): Removed.
3596 (cmp_name): New.
3597 * solib-svr4.c (bfd_lookup_symbol): Removed.
3598 (cmp_name_and_sec_flags): New.
3599 (enable_break): Update caller.
3600 * solib.c (gdb_bfd_lookup_symbol_from_symtab): New.
3601 (gdb_bfd_lookup_symbol_from_dyn_symtab): New.
3602 (gdb_bfd_lookup_symbol): New.
3603 * solib.h: Functions declarations.
3604
83d1a36a
YQ
36052011-08-29 Yao Qi <yao@codesourcery.com>
3606
3607 * Makefile.in (ALL_TARGET_OBS): Add tic6x-tdep.o tic6x-linux-tdep.o
3608 and solib-dsbt.o.
3609
c04b3e8f
JK
36102011-08-29 Jan Kratochvil <jan.kratochvil@redhat.com>
3611
3612 Fix TUI stepi on code without symbols.
3613 * tui/tui-stack.c (tui_show_frame_info): Remove error, set LOW for
3614 current PC instead.
3615
cb0fd152
JK
36162011-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3617
3618 Code cleanup.
3619 * mi/mi-cmd-stack.c (list_args_or_locals): Remove stb initialization
3620 and the static keyword.
3621 * mi/mi-cmd-target.c (mi_cmd_target_file_get, mi_cmd_target_file_put):
3622 Make prefix an array.
3623 * mi/mi-cmd-target.c (mi_cmd_target_file_delete): Likewise.
3624 * mi/mi-main.c (get_register): Remove stb initialization and the static
3625 keyword.
3626
91174723
JK
36272011-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3628
3629 Code cleanup - make mi_opt const.
3630 * mi/mi-cmd-break.c (mi_cmd_break_insert, mi_cmd_break_watch): Make
3631 opts const.
3632 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
3633 * mi/mi-cmd-env.c (mi_cmd_env_path): Likewise.
3634 (mi_cmd_env_dir): Likewise.
3635 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Likewise.
3636 (mi_cmd_target_file_put): Likewise.
3637 * mi/mi-cmd-target.c (mi_cmd_target_file_delete): Likewise.
3638 * mi/mi-cmd-var.c (mi_cmd_var_evaluate_expression): Likewise.
3639 * mi/mi-getopt.c (mi_getopt): Make opts and opt const.
3640 (mi_valid_noargs): Make opts const.
3641 * mi/mi-getopt.h (mi_getopt): Make opts and opt const.
3642 * mi/mi-main.c (mi_cmd_list_thread_groups): Make opts const.
3643 (mi_cmd_data_read_memory): Likewise.
3644 (mi_cmd_data_read_memory_bytes): Likewise.
3645 (mi_cmd_data_write_memory): Likewise.
3646
5068b8e8 36472011-08-26 Matt Rice <ratmice@gmail.com>
3648
3649 * solib-sunos.c (allocate_rt_common_objfile): Add missing arguments to
3650 bcache_xmalloc, replace bcache_xmalloc with call to
3651 psymbol_bcache_init for psymbol_cache.
3652 * symfile.c (reread_symbols): Remove extra calls to bcache_xmalloc.
3653
a4f2ce05
JK
36542011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
3655
3656 * inf-loop.c (inferior_event_handler): Add exception_print in
3657 INF_EXEC_COMPLETE.
3658
353d1d73
JK
36592011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
3660
3661 * breakpoint.c (bpstat_do_actions): New variable cleanup_if_error, call
3662 make_bpstat_clear_actions_cleanup and discard_cleanups for it.
3663 * defs.h (make_bpstat_clear_actions_cleanup): New declaration.
3664 * exceptions.c (throw_exception): Remove the bpstat_clear_actions call.
3665 * inf-loop.c (inferior_event_handler): New variable cleanup_if_error,
3666 call make_bpstat_clear_actions_cleanup and discard_cleanups for it.
3667 Call bpstat_clear_actions for failed fetch_inferior_event_wrapper.
3668 * infrun.c (fetch_inferior_event): Call
3669 make_bpstat_clear_actions_cleanup.
3670 * top.c (execute_command): New variable cleanup_if_error, call
3671 make_bpstat_clear_actions_cleanup and discard_cleanups for it.
3672 * utils.c (do_bpstat_clear_actions_cleanup)
3673 (make_bpstat_clear_actions_cleanup): New functions.
3674
3ced3da4
PA
36752011-08-26 Pedro Alves <pedro@codesourcery.com>
3676
3677 * linux-nat.c (linux_child_follow_fork): Don't set lp->resumed on
3678 either the parent or the child forks. Rename a couple locals.
3679
a9f4bb21
PA
36802011-08-26 Pedro Alves <pedro@codesourcery.com>
3681
3682 * linux-nat.c (wait_lwp): Avoid assuming errno is preserved by a
3683 library call. Avoid reading the `status' local if all waitpid
3684 calls failed.
3685
e5798bef
PA
36862011-08-26 Pedro Alves <pedro@codesourcery.com>
3687
3688 * common/linux-osdata.c (get_cores_used_by_process): Don't assume
3689 opening /proc/PID/task always succeeds.
3690
edb2aadf
AR
36912011-08-26 Aleksandar Ristovski <aristovski@qnx.com>
3692
3693 * linespec.c (symtab_from_filename): Check for the end of string.
3694
0d932b2f
MK
36952011-08-26 Marc Khouzam <marc.khouzam@ericsson.com>
3696
3697 PR mi/11912
3698 * varobj.c (cplus_describe_child): Add the keyword
3699 'class' to the output of the method when dealing
3700 with a cast to a base class.
3701
e93ca019
JK
37022011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
3703
3704 No functionality change.
3705 * breakpoint.c (bpstat_clear_actions): Remove the BS parameter, make
3706 function comment a reference, new variables tp and bs, move here code
3707 from throw_exception.
3708 * breakpoint.h (bpstat_clear_actions): Remove the BS parameter,
3709 describe it in the comment.
3710 * exceptions.c (throw_exception): Remove variable tp, move the code for
3711 bpstat_clear_actions to bpstat_clear_actions.
3712
13da1c97
LM
37132011-08-24 Luis Machado <lgustavo@codesourcery.com>
3714
3715 * linux-nat.h (linux_proc_get_tgid): Remove declaration.
3716 * linux-nat.c: Include linux-procfs.h.
3717 (linux_proc_get_tgid): Move to ...
3718 * common/linux-procfs.c: ... here. New file.
3719 * common/linux-procfs.h: New file.
3720 * linux-thread-db.c: Include linux-procfs.h.
3721 * Makefile.in: Update dependencies.
3722 * config/alpha/alpha-linux.mh: Add linux-procfs.o dependency.
3723 * config/arm/linux.mh: Likewise.
3724 * config/i386/linux.mh: Likewise.
3725 * config/i386/linux64.mh: Likewise.
3726 * config/ia64/linux.mh: Likewise.
3727 * config/m32r/linux.mh: Likewise.
3728 * config/m68k/linux.mh: Likewise.
3729 * config/mips/linux.mh: Likewise.
3730 * config/pa/linux.mh: Likewise.
3731 * config/pa/linux.mh: Likewise.
3732 * config/powerpc/linux.mh: Likewise.
3733 * config/powerpc/ppc64-linux.mh: Likewise.
3734 * config/powerpc/spu-linux.mh: Likewise.
3735 * config/sparc/linux.mh: Likewise.
3736 * config/sparc/linux64.mh: Likewise.
3737 * config/xtensa/linux.mh: Likewise.
3738
4e5c165d
HZ
37392011-08-24 Hui Zhu <teawater@gmail.com>
3740
3741 * tracepoint.c (cond_string_is_same): New function.
3742 (find_matching_tracepoint): Add condition check
3743 by cond_string_is_same.
3744
6e2f5b22
JK
37452011-08-23 Josh Matthews <josh@joshmatthews.net>
3746
3747 Fix build error in Darwin port.
3748 * darwin-nat-info.c (darwin_debug_regions_recurse): New variable uiout.
3749
abf85f46
JK
37502011-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3751
3752 Code cleanup.
3753 * breakpoint.c (bpstat_clear_actions): Remove clearing of commands_left.
3754 (command_line_is_silent): New function.
3755 (bpstat_do_actions_1): No longer use commands_left, use
3756 command_line_is_silent for commands.
3757 (bpstat_alloc): Remove clearing of commands_left.
3758 (bpstat_stop_status): Remove initialization of commands_left, use
3759 command_line_is_silent.
3760 * breakpoint.h (struct bpstats): Remove commands_left.
3761
3a93a0c2
KS
37622011-08-18 Keith Seitz <keiths@redhat.com>
3763
3764 PR c++/12266
3765 * cp-name-parser.y (struct demangle_info): Remove unused
3766 member PREV.
3767 (d_grab): Likewise.
3768 (allocate_info): Change return type to struct demangle_info *.
3769 Always allocate a new demangle_info.
3770 Remove unused PREV pointer.
3771 (cp_new_demangle_parse_info): New function.
3772 (cp_demangled_name_parse_free): New function.
3773 (do_demangled_name_parse_free_cleanup): New function.
3774 (make_cleanup_cp_demangled_name_parse_free): New function.
3775 (cp_demangled_name_to_comp): Change return type to
3776 struct demangle_parse_info *.
3777 Allocate a new storage for each call.
3778 (main): Update usage for cp_demangled_name_to_comp
3779 API change.
3780 * cp-support.h (struct demangle_parse_info): New structure.
3781 (cp_demangled_name_to_comp): Update API change for
3782 return type.
3783 (cp_new_demangle_parse_info): Declare.
3784 (make_cleanup_cp_demangled_name_parse_free): New declaration.
3785 (cp_demangled_name_parse_free): Declare.
3786 * cp-support.c (cp_canonicalize_string): Update API
3787 change for cp_demangled_name_to_comp.
3788 (mangled_name_to_comp): Likewise.
3789 Return struct demangle_parse_info, too.
3790 (cp_class_name_from_physname): Update mangled_name_to_comp
3791 API change.
3792 (method_name_from_physname): Likewise.
3793 (cp_func_name): Update API change for cp_demangled_name_to_comp.
3794 (cp_remove_params): Likewise.
3795 * python/py-type.c (typy_legacy_template_argument): Likewise.
3796
3797 * cp-support.h (cp_canonicalize_string_no_typedefs): Declare.
3798 (cp_merge_demangle_parse_infos): Declare.
3799 * cp-support.c (ignore_typedefs): New file global.
3800 (copy_string_to_obstack): New function.
3801 (inspect_type): New function.
3802 (replace_typedefs): New function.
3803 (replace_typedefs_qualified_name): New function.
3804 (cp_canonicalize_string_no_typedefs): New function.
3805 * cp-name-parser.y (cp_merge_demangle_parse_infos): New function.
3806 (cp_new_demangle__parse_info): Allocate and initialize the obstack.
3807 * linespec.c (find_methods): Use cp_canonicalize_string_no_typedefs
3808 instead of cp_canonicalize_string.
3809 (find_method): Likewise.
3810 (decode_compound): Before looking up the name, call
3811 cp_canonicalize_string_no_typedefs.
3812 (decode_variable): Likewise.
3813
fa3a4f15
PM
38142011-08-17 Phil Muldoon <pmuldoon@redhat.com>
3815 Tom Tromey <tromey@redhat.com>
3816 Matt Rice <ratmice@gmail.com>
3817
3818 * python/lib/gdb/prompt.py: New file.
3819 * python/lib/gdb/command/prompt.py: New file.
3820 * NEWS: Document set extended-prompt and gdb.prompt library
3821
85661b1e
YQ
38222011-08-16 Yao Qi <yao@codesourcery.com>
3823
3824 * tic6x-linux-tdep.c: Move const arrays definition from here...
3825 * tic6x-tdep.c: to here ...
3826
11315641
YQ
38272011-08-14 Yao Qi <yao@codesourcery.com>
3828
3829 * NEWS: New port to Texas Instruments TMS320C6x.
3830
8cd64e00
YQ
38312011-08-14 Andrew Jenner <andrew@codesourcery.com>
3832 Bernd Schmidt <bernds@codesourcery.com>
3833 Yao Qi <yao@codesourcery.com>
3834
3835 * configure.tgt: Handle tic6x-*-*linux and tic6x-*-*.
3836 * solib-dsbt.c: New file. Support DSBT shared object.
3837 * tic6x-linux-tdep.c: New file.
3838 * tic6x-tdep.c: New file.
3839 * tic6x-tdep.h: New file.
3840
78d85199
YQ
38412011-08-14 Andrew Stubbs <ams@codesourcery.com>
3842 Yao Qi <yao@codesourcery.com>
3843
3844 * remote.c (PACKET_qXfer_fdpic): New enum value.
3845 (remote_protocol_features): Add qXfer:fdpic:read packet.
3846 (remote_xfer_partial): Support TARGET_OBJECT_FDPIC.
3847 (_initialize_remote): Add set/show remote read-fdpic-loadmap command.
3848 * target.h (enum target_object): Add TARGET_OBJECT_FDPIC.
3849
224bbe49
YQ
38502011-08-14 Yao Qi <yao@codesourcery.com>
3851
3852 Target description for tic6x.
3853 * features/Makefile (WHICH): Add tic6x-c64xp tic6x-c64x tic6x-c62x
3854 tic6x-c64xp-linux tic6x-c64x-linux and tic6x-c62x-linux.
3855 * features/tic6x-c6xp.xml, features/tic6x-core.xml: New.
3856 * features/tic6x-gp.xml, features/tic6x-c62x.xml: New.
3857 * features/tic6x-c64x.xml, features/tic6x-c64xp.xml: New.
3858 * features/tic6x-c62x-linux.xml, features/tic6x-c64x-linux.xml: New.
3859 * features/tic6x-c64xp-linux.xml: New.
3860 * features/tic6x-c64xp.c, features/tic6x-c64x.c: Generated.
3861 * features/tic6x-c62x.c, features/tic6x-c64xp-linux.c: Generated.
3862 * features/tic6x-c64x-linux.c, features/tic6x-c62x-linux.c: Generated.
3863 * regformats/tic6x-c62x.dat, regformats/tic6x-c64x.dat: Generated.
f040079f
HZ
3864 * regformats/tic6x-c64xp.dat,
3865 regformats/tic6x-c62x-linux.dat: Generated.
3866 * regformats/tic6x-c64x-linux.dat,
3867 regformats/tic6x-c64xp-linux.dat: Generated.
224bbe49
YQ
3868 * config/djgpp/fnchange.lst: Add features/tic6x-*.xml and
3869 features/tic6x-*.c files.
3870 Add regformats/tic6x-*.dat files.
3871
457e09f0
DE
38722011-08-12 Doug Evans <dje@google.com>
3873
3874 * NEWS: Mention new "type" attribute of python gdb.Symbol objects.
3875 * python/py-symbol.c (sympy_get_type): New function.
3876 (symbol_object_getset): Add "type".
3877
d20c1c3f
PA
38782011-08-12 Pedro Alves <pedro@codesourcery.com>
3879
3880 PR tui/13073
3881
3882 * tui/tui-regs.c (tui_show_register_group): Skip registers with an
3883 empty name.
3884 (tui_show_register_group): Don't store a byte buffer in the data
3885 element's value.
3886 (tui_register_format): Skip registers with an empty name.
3887 (tui_get_register): Store a struct value in the data element's
3888 value field instead of a byte buffer holding the raw register
3889 contents. Account for optimized-out and unavailable registers
3890 when comparing register contents.
3891
9d8fa392
PA
38922011-08-09 Pedro Alves <pedro@codesourcery.com>
3893
3894 * printcmd.c (current_display_number): Update comment.
3895 (disable_current_display_cleanup): Delete.
3896 (do_one_display): Use make_cleanup_restore_integer. Gracefully
3897 catch errors thrown while evaluating and printing the display.
3898
401a70b8
TT
38992011-08-09 Tom Tromey <tromey@redhat.com>
3900
3901 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Fix typo.
3902
7f86f058
PA
39032011-08-09 Pedro Alves <pedro@codesourcery.com>
3904
94b71cca 3905 * elfread.c (elf_symtab_read): Rework comments.
7f86f058
PA
3906 * maint.c (maintenance_command): Ditto.
3907 * somread.c (som_symtab_read): Ditto.
3908 * solib.c (solib_find, solib_map_sections, update_solib_list)
3909 (solib_add, info_sharedlibrary_command, solib_name_from_address)
3910 (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
94b71cca 3911 (sharedlibrary_command, no_shared_libraries): Ditto.
7f86f058
PA
3912 * solib-irix.c (locate_base, disable_break, enable_break)
3913 (irix_solib_create_inferior_hook, irix_solib_create_inferior_hook)
3914 (irix_current_sos, irix_open_symbol_file_object)
3915 (irix_special_symbol_handling): Ditto.
3916 * solib-sunos.c (locate_base, first_link_map_member)
3917 (sunos_current_sos, disable_break, enable_break)
3918 (sunos_special_symbol_handling, sunos_solib_create_inferior_hook):
3919 Ditto.
3920 * solib-svr4.c (bfd_lookup_symbol, elf_locate_base, locate_base)
3921 (open_symbol_file_object, svr4_current_sos, enable_break)
3922 (svr4_special_symbol_handling, svr4_solib_create_inferior_hook):
3923 Ditto.
3924 * solib-frv.c (bfd_lookup_symbol, open_symbol_file_object)
3925 (frv_current_sos, enable_break, frv_special_symbol_handling)
3926 (frv_solib_create_inferior_hook): Ditto.
3927 * solist.h (struct target_so_ops): Extend the comments of the
3928 special_symbol_handling, current_sos and open_symbol_file_object
3929 methods.
3930
5e239b84
PM
39312011-08-09 Phil Muldoon <pmuldoon@redhat.com>
3932
3933 * python/lib/gdb/__init__.py: Auto-load files in command and
3934 function directories.
3935 * python/python.c (finish_python_initialization): Use
3936 os.path.join.
3937 * python/lib/gdb/command/pretty_printers.py: Self register
3938 command.
3939 * NEWS: Document auto-loading.
3940
b6cede78
JK
39412011-08-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3942
3943 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_STACK>
3944 (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_LITERAL>: New variable
3945 objfile_gdbarch. Fix BFD_ENDIAN_BIG case.
3946
29d0bb3d
TT
39472011-08-08 Tom Tromey <tromey@redhat.com>
3948
3949 * breakpoint.c (clean_up_filters): Remove.
3950 (catch_syscall_split_args): Use VEC_cleanup.
3951
2f7fb8e4
JK
39522011-08-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3953
3954 * cp-name-parser.y (xfree): Wrap the name free by CONCAT2.
3955 (main): Uncomment "Demangling error\n".
3956
d6c10e95
PP
39572011-08-05 Paul Pluzhnikov <ppluzhnikov@google.com>
3958
3959 * solib-target.c (segment_attributes): Make them static.
3960 (section_attributes, library_children, library_attributes): Likewise.
3961 (library_list_children, library_list_attributes): Likesise.
3962 (library_list_elements): Likewise.
3963
af6e93b2
PA
39642011-08-05 Pedro Alves <pedro@codesourcery.com>
3965
3966 * exceptions.c (throw_exception): Don't disable the current
3967 display.
3968 * printcmd.c (disable_current_display_cleanup): New function.
3969 (do_one_display): Install a cleanup to disable the current display
3970 if doing the display throws.
3971
6a1b1664
EZ
39722011-08-05 Eli Zaretskii <eliz@gnu.org>
3973
3974 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Move the
3975 initialization of the tp_new member to the corresponding
3976 gdbpy_initialize_* function.
3977 * python/py-cmd.c (gdbpy_initialize_commands): Likewise.
3978 * python/py-frame.c (gdbpy_initialize_frames): Likewise.
3979 * python/py-function.c (gdbpy_initialize_functions): Likewise.
3980 * python/py-inferior.c (gdbpy_initialize_inferior): Likewise.
3981 * python/py-param.c (gdbpy_initialize_parameters): Likewise.
3982
31a0ae49
JK
39832011-08-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3984
3985 * spu-tdep.c (info_spu_event_command, info_spu_signal_command)
3986 (info_spu_mailbox_list, info_spu_mailbox_command, info_spu_dma_cmdlist)
3987 (info_spu_dma_command, info_spu_proxydma_command): Rename uiout
3988 references to current_uiout.
3989
e0dd0826
PA
39902011-08-04 Pedro Alves <pedro@codesourcery.com>
3991
3992 * event-loop.c (gdb_do_one_event): Remove `data' parameter.
3993 (start_event_loop): Use TRY_CATCH instead of catch_errors.
3994 * event-loop.h (gdb_do_one_event): Remove `data' parameter.
3995 * top.c (gdb_readline_wrapper): Adjust.
3996 * tui/tui-interp.c (tui_command_loop):
3997 (_initialize_tui_interp): Don't install it.
3998
79a45e25
PA
39992011-08-04 Pedro Alves <pedro@codesourcery.com>
4000
4001 * ui-out.h (uiout): Rename to ...
4002 (current_uiout): ... this.
4003 * ui-out.c (uiout): Rename to ...
4004 (current_uiout): ... this.
4005 * ada-lang.c (print_it_exception, print_one_exception)
4006 (print_mention_exception): Adjust.
4007 * breakpoint.c (watchpoint_check): Adjust.
4008 (print_breakpoint_location, print_one_breakpoint, breakpoint_1)
4009 (default_collect_info, watchpoints_info, print_one_catch_fork)
4010 (print_one_catch_vfork, print_one_catch_syscall)
4011 (print_one_catch_exec, mention, print_it_ranged_breakpoint)
4012 (print_one_ranged_breakpoint, print_mention_ranged_breakpoint)
4013 (print_it_watchpoint, print_mention_watchpoint)
4014 (print_it_masked_watchpoint, print_mention_masked_watchpoint)
4015 (print_it_exception_catchpoint, print_one_exception_catchpoint)
4016 (print_mention_exception_catchpoint, say_where, bkpt_print_it)
4017 (bkpt_print_mention, momentary_bkpt_print_it)
4018 (tracepoint_print_mention, update_static_tracepoint)
4019 (tracepoints_info, save_breakpoints): Adjust.
4020 * cli-out.c (field_separator): Adjust.
4021 * cp-abi.c (list_cp_abis, show_cp_abi_cmd): Adjust.
4022 * exceptions.c (catch_exceptions_with_msg, catch_errors): Adjust.
4023 * frame.c (get_current_frame): Adjust.
4024 * infcmd.c (run_command_1, print_return_value): Adjust.
4025 * inferior.c (inferior_command, info_inferiors_command): Adjust.
4026 * infrun.c (print_end_stepping_range_reason): Adjust.
4027 (print_signal_exited_reason, print_exited_reason): Adjust.
4028 (print_signal_received_reason, print_no_history_reason): Adjust.
4029 * interps.c (interp_set): Adjust.
4030 * osdata.c (info_osdata_command): Adjust.
4031 * progspace.c (maintenance_info_program_spaces_command): Adjust.
4032 * remote-fileio.c (remote_fileio_request): Adjust.
4033 * remote.c (show_remote_cmd): Adjust.
4034 * solib.c (info_sharedlibrary_command): Adjust.
4035 * source.c (print_source_lines_base): Adjust.
4036 * stack.c (print_stack_frame): Adjust.
4037 (do_gdb_disassembly, print_frame_info, print_frame): Adjust.
4038 * symfile-mem.c (add_vsyscall_page): Adjust.
4039 * symfile.c (load_progress, generic_load)
4040 (print_transfer_performance): Adjust.
4041 * thread.c (info_threads_command, restore_selected_frame)
4042 (thread_command): Adjust.
4043 * top.c (make_cleanup_restore_ui_file): Adjust.
4044 * tracepoint.c (tvariables_info_1, trace_status_mi, tfind_1)
4045 (print_one_static_tracepoint_marker): Adjust.
4046 * cli/cli-cmds.c (print_disassembly): Adjust.
4047 * cli/cli-decode.c (print_doc_line): Adjust.
4048 * cli/cli-interp.c (safe_execute_command): Adjust.
4049 * cli/cli-logging.c (set_logging_redirect, pop_output_files)
4050 (handle_redirections): Adjust.
4051 * cli/cli-script.c (show_user_1): Adjust.
4052 * cli/cli-setshow.c (do_setshow_command, cmd_show_list): Adjust.
4053 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
4054 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Adjust.
4055 * mi/mi-cmd-env.c (mi_cmd_env_pwd, mi_cmd_env_path)
4056 (mi_cmd_env_dir): Adjust.
4057 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
4058 (print_partial_file_name, mi_cmd_file_list_exec_source_files): Adjust.
4059 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
4060 (mi_cmd_stack_info_depth, mi_cmd_stack_list_args)
4061 (list_args_or_locals): Adjust.
4062 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
4063 (mi_cmd_var_delete, mi_cmd_var_set_format, mi_cmd_var_set_frozen)
4064 (mi_cmd_var_show_format, mi_cmd_var_info_num_children)
4065 (mi_cmd_var_list_children, mi_cmd_var_info_type)
4066 (mi_cmd_var_info_path_expression, mi_cmd_var_info_expression)
4067 (mi_cmd_var_show_attributes, mi_cmd_var_evaluate_expression)
4068 (mi_cmd_var_assign, mi_cmd_var_update, varobj_update_one): Adjust.
4069 * mi/mi-interp.c (mi_on_normal_stop): Adjust.
4070 * mi/mi-main.c (mi_cmd_gdb_exit, mi_cmd_thread_select)
4071 (mi_cmd_thread_list_ids, mi_cmd_thread_info, print_one_inferior)
4072 (list_available_thread_groups, mi_cmd_list_thread_groups)
4073 (mi_cmd_data_list_register_names)
4074 (mi_cmd_data_list_changed_registers)
4075 (mi_cmd_data_list_register_values, get_register)
4076 (mi_cmd_data_evaluate_expression, mi_cmd_data_read_memory)
4077 (mi_cmd_data_read_memory_bytes, mi_cmd_list_features)
4078 (mi_cmd_list_target_features, mi_cmd_add_inferior)
4079 (mi_execute_command, mi_load_progress): Adjust.
4080 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Adjust.
4081 * python/py-auto-load.c (print_script, info_auto_load_scripts):
4082 Adjust.
4083 * python/py-breakpoint.c (bppy_get_commands): Adjust.
4084 * tui/tui-interp.c (tui_command_loop): Adjust.
4085 * tui/tui-io.c (tui_setup_io, tui_initialize_io): Adjust.
4086
f9679975
PA
40872011-08-04 Pedro Alves <pedro@codesourcery.com>
4088
4089 * exceptions.c (struct catcher): Remove saved_uiout field.
4090 (exceptions_state_mc_init): Remove the `func_uiout' parameter, and
4091 no longer save/resvore the global ui_out builder.
4092 (catch_exceptions_with_msg): Save/override/restore the global
4093 ui_out builder manually instead of relying on TRY_CATCH to do it.
4094 (catch_errors): Save/restore the global ui_out builder manually
4095 instead of relying on TRY_CATCH to do it.
4096 * exceptions.h (exceptions_state_mc_init): Remove the `func_uiout'
4097 parameter.
4098 (TRY_CATCH): Adjust.
4099 * cli/cli-interp.c (safe_execute_command): Save/override/restore
4100 the global ui_out builder manually instead of relying on TRY_CATCH
4101 to do it.
4102
934709f0
PW
41032011-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4104
4105 * breakpoint.c (update_global_location_list): Ensure
4106 invariant 'first loc marked not duplicated and inserted,
4107 following locs marked duplicated/not inserted' is respected
4108 for multiple locations at the same address.
4109 (unduplicated_should_be_inserted) New function.
4110 (swap_insertion) New function.
4111
2421fe6f
JK
41122011-08-03 Jan Kratochvil <jan.kratochvil@redhat.com>
4113
4114 * stack.c (print_frame_arguments_choices): Comment typo fix.
4115
3fbb6ffa
TJB
41162011-08-01 Thiago Jung Bauermann <bauerman@br.ibm.com>
4117
4118 Revert:
4119 2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
4120 * breakpoint.c (insert_bp_location): Remove disabled_breaks
4121 argument. Update callers.
4122
fbe12357
PP
41232011-08-01 Paul Pluzhnikov <ppluzhnikov@google.com>
4124
4125 PR gdb/13045
4126 * doublest.c (convert_doublest_to_floatformat): Pass correct
4127 mantissa length to put_field.
4128
b1d288d3
JK
41292011-08-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4130
4131 * stack.c (do_gdb_disassembly): Use RETURN_MASK_ERROR, simplify the
4132 exception_print code path.
4133 (backtrace_command): Remove variable e. Protect arg by make_cleanup in
4134 advance. Simplify memset. Remove TRY_CATCH. Remove explicit xfree.
4135 (backtrace_full_command): Remove variable e. Remove TRY_CATCH.
4136
311b5970
JK
41372011-08-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4138
4139 Code cleanup.
4140 * stack.c (struct print_stack_frame_args, print_stack_frame_stub):
4141 Remove, merge them into ...
4142 (print_stack_frame): ... here with a TRY_CATCH. New variable e, remove
4143 variable args and its initialization.
4144 (struct print_args_args, print_args_stub): Remove, merge them into
4145 print_frame.
4146 (struct gdb_disassembly_stub_args, gdb_disassembly_stub): Remove, merge
4147 them into ...
4148 (do_gdb_disassembly): ... here. Remove variable args and its
4149 initialization.
4150 (print_frame): Remove variable args and its initialization, new
4151 variable gdbarch and numargs (from print_args_stub), inline here
4152 print_args_stub with a TRY_CATCH.
4153 (struct backtrace_command_args, backtrace_command_stub): Remove, merge
4154 them into ...
4155 (backtrace_command, backtrace_full_command): ... here with a TRY_CATCH.
fbe12357 4156 New variable e, remove variable btargs and its initialization.
311b5970 4157
484a26a8
TG
41582011-08-01 Tristan Gingold <gingold@adacore.com>
4159
4160 * darwin-nat.c (darwin_decode_exception_message): Adjust assertion.
4161
c30eee59
TJB
41622011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
4163
4164 * breakpoint.c (insert_bp_location): Document return value.
4165 (insert_breakpoint_locations): Fix documentation.
4166 (remove_breakpoints): Add documentation.
4167
f116073b
TJB
41682011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
4169
4170 * breakpoint.c (insert_bp_location): Remove disabled_breaks
4171 argument. Update callers.
4172
65aa373f
JK
41732011-07-30 Jan Kratochvil <jan.kratochvil@redhat.com>
4174
4175 * stack.c (print_frame_info): Comment typo fix.
4176
a50242fb
SA
41772011-07-29 Sterling Augustine <saugustine@google.com>
4178
4179 * MAINTAINERS (Write After Approval): Add myself to the list.
4180
267f6504
TT
41812011-07-29 Tom Tromey <tromey@redhat.com>
4182
4183 * solib-target.c: Use DEF_VEC_I, not DEF_VEC_O.
4184 (library_list_start_segment): Update.
4185 (library_list_start_section): Update.
4186
00bd41d6
PM
41872011-07-28 Phil Muldoon <pmuldoon@redhat.com>
4188
4189 * varobj.c (value_get_print_value): Move hint check later into the
4190 function. Comment function. Free thevalue before reusing it.
4191
18a46dbe
JK
41922011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
4193 Pedro Alves <pedro@codesourcery.com>
4194
4195 * eval.c (evaluate_subexp_standard): Remove not_lval from all calls of
4196 value_one.
4197 * valops.c (value_one): Remove parameter lv. Do not pass it to itself.
4198 Assert the result kind.
4199 * value.h (value_one): Remove parameter lv.
4200
bb7da2bf
JK
42012011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
4202
4203 Fix crash on lval_computed values.
4204 * valops.c (value_zero): Use not_lval for lval_computed.
4205
2d5213f8
TT
42062011-07-27 Tom Tromey <tromey@redhat.com>
4207
4208 * Makefile.in (HFILES_NO_SRCDIR): Add 'common' prefix for
4209 gdb_assert.h, gdb_locale.h, gdb_dirent.h.
4210
11081198
JK
42112011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
4212
4213 * typeprint.c (_initialize_typeprint): Extend the help of "whatis" and
4214 "ptype" by their typedefs difference.
4215
3c6e0cb3
JK
42162011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
4217
4218 * dwarf2expr.c (ctx_no_read_reg): New function.
4219 * dwarf2expr.h (ctx_no_read_reg): New declaration.
4220 * dwarf2read.c (read_2_signed_bytes, read_4_signed_bytes): Remove.
4221 (decode_locdesc_read_mem, decode_locdesc_ctx_funcs): New.
4222 (decode_locdesc): Replace by a caller of dwarf_expr_eval.
4223
523f3620
JK
42242011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
4225
4226 * dwarf2-frame.c (no_get_frame_base, no_get_frame_cfa, no_get_frame_pc)
4227 (no_get_tls_address, no_dwarf_call, no_base_type): Move to the other
4228 file.
4229 (dwarf2_frame_ctx_funcs): Reference the renamed functions.
4230 * dwarf2expr.c (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
4231 (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
4232 (ctx_no_get_base_type): Move the functions here.
4233 * dwarf2expr.h (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
4234 (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
4235 (ctx_no_get_base_type): New declarations.
4236
24d3216f
TT
42372011-07-27 Tom Tromey <tromey@redhat.com>
4238
4239 * xcoffread.c (dwarf2_xcoff_names): Add 'macro' and 'sentinel'
4240 entries.
4241 * symfile.h (struct dwarf2_debug_sections) <sentinel>: New field.
4242 * dwarf2read.c (dwarf2_elf_names): Add sentinel entry.
4243
5005c8a9
PP
42442011-07-26 Sterling Augustine <saugustine@google.com>
4245
4246 * cli/cli-dump.c (dump_binary_file): Change parameter type to
4247 ULONGEST.
4248 (dump_bfd_file): Likewise.
4249
480a3f21
PW
42502011-07-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4251
4252 * remote.c (remote_region_ok_for_hw_watchpoint): New function.
4253 (remote_hw_watchpoint_length_limit): New variable.
4254 (_initialize_remote) add set,show cmds for this new variable.
4255 * gdb.texinfo: document these new commands.
4256 * NEWS: Mention these new commands.
4257
efa80663
PA
42582011-07-26 Pedro Alves <pedro@codesourcery.com>
4259
4260 * breakpoint.c (works_in_software_mode_watchpoint): Also return
4261 true for software watchpoints.
4262
dbdaa232 42632011-07-26 Joel Brobecker <brobecker@adacore.com>
4264
4265 GDB 7.3 released.
4266
cf2c3c16
TT
42672011-07-26 Tom Tromey <tromey@redhat.com>
4268
4269 * symfile.h (struct dwarf2_debug_sections) <macro>: New field.
4270 * dwarf2read.c (read_indirect_string_at_offset): New function.
4271 (read_indirect_string): Use it.
4272 (dwarf_decode_macro_bytes): New function, taken from
4273 dwarf_decode_macros. Handle DW_MACRO_GNU_*.
4274 (dwarf_decode_macros): Use it. handle DW_MACRO_GNU_*.
4275 (dwarf_parse_macro_header, skip_form_bytes, skip_unknown_opcode):
4276 New functions.
4277 (struct dwarf2_per_objfile) <macro>: New field.
4278 (dwarf2_elf_names): Add .debug_macro.
4279 (dwarf2_macros_too_long_complaint): Add 'section' argument.
4280 (dwarf2_locate_sections): Handle new section.
4281 (read_file_scope): Handle DW_AT_GNU_macros.
4282 (dwarf2_per_objfile_free): Unmap the .debug_macro section.
4283
1a532630
PP
42842011-07-26 Paul Pluzhnikov <ppluzhnikov@google.com>
4285
4286 * NEWS: Mention dcache configuration.
4287 * dcache.c (dcache_set_list, dcache_show_list): New variables.
4288 (dcache_size, dcache_line_size): New variables.
4289 (LINE_SIZE_MASK, XFORM, MASK): Adjust.
4290 (struct dcache_block): Make it expandable.
4291 (struct dcache_struct): New field.
4292 (dcache_invalidate): Discard freelist upon dcache_line_size changes.
4293 (dcache_hit, dcache_alloc, dcache_peek_byte): Adjust.
4294 (dcache_poke_byte, dcache_print_line): Adjust.
4295 (set_dcache_size, set_dcache_line_size): New functions.
4296 (set_dcache_command, show_dcache_command): New functions.
4297 (_initialize_dcache): Add new commands.
4298
2eff07b3
PP
42992011-07-26 Paul Pluzhnikov <ppluzhnikov@google.com>
4300
4301 * progspace.h (struct program_space): Add solib_add_generation.
4302 * infcmd.c (post_create_inferior): Only call solib_add if not
4303 already done.
4304 * solib.c (solib_add): Increment solib_add_generation.
4305
543305c9
JK
43062011-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
4307
4308 Fix implicit pointer offsets.
4309 * dwarf2loc.c (indirect_pieced_value): Comment byte_offset. Use also
4310 ptr.OFFSET.
4311
c0a91b2b
TT
43122011-07-25 Tom Tromey <tromey@redhat.com>
4313
4314 * ada-lang.c (ada_exception_breakpoint_ops): Make return type
4315 const.
4316 (ada_exception_sal): Make 'ops' const.
4317 (ada_decode_exception_location): Likewise.
4318 (ada_decode_assert_location): Likewise.
4319 (catch_assert_command): Update.
4320 (catch_ada_exception_command): Update.
4321 (create_ada_exception_catchpoint): Make 'ops' const.
4322 * breakpoint.c (set_raw_breakpoint_without_location)
4323 (set_raw_breakpoint, momentary_breakpoint_from_master): Make 'ops'
4324 const.
4325 (create_internal_breakpoint): Update.
4326 (init_raw_breakpoint_without_location): Make 'ops' const.
4327 (init_raw_breakpoint, init_catchpoint)
4328 (create_fork_vfork_event_catchpoint)
4329 (create_syscall_event_catchpoint, init_breakpoint_sal)
4330 (create_breakpoint_sal, create_breakpoints_sal)
4331 (create_breakpoint, init_ada_exception_breakpoint): Likewise.
4332 * breakpoint.h (struct breakpoint) <ops>: Now const.
4333 (init_ada_exception_breakpoint, create_breakpoint): Make 'ops'
4334 const.
4335
6cb9b55b
PP
43362011-07-25 Paul Pluzhnikov <ppluzhnikov@google.com>
4337
4338 * linux-thread-db.c (thread_from_lwp): Initialize th.th_unique.
4339
d9b3f62e
PA
43402011-07-25 Pedro Alves <pedro@codesourcery.com>
4341
4342 * breakpoint.h (print_recreate_thread): Declare.
4343 (struct breakpoint): Move step_count, pass_count,
4344 number_on_target, static_trace_marker_id,
4345 static_trace_marker_id_idx ...
4346 (struct tracepoint): ... to this new struct.
4347 (get_tracepoint, get_tracepoint_by_number_on_target)
4348 (get_tracepoint_by_number): Change return type to struct
4349 tracepoint pointer.
4350 * breakpoint.c (is_tracepoint_type): New, factored out from
4351 is_tracepoint.
4352 (is_tracepoint): Adjust.
4353 (print_one_breakpoint_location): Cast to struct tracepoint as
4354 necessary, and adjust.
4355 (print_recreate_catch_fork, print_recreate_catch_vfork)
4356 (print_recreate_catch_syscall, print_recreate_catch_exec): Call
4357 print_recreate_thread.
4358 (init_breakpoint_sal): New, factored out from
4359 create_breakpoint_sal.
4360 (create_breakpoint_sal): Reimplement.
4361 (create_breakpoint): Allocate a struct tracecepoint if the caller
4362 wanted a tracepoint. Use init_breakpoint_sal and
4363 install_breakpoint.
4364 (print_recreate_ranged_breakpoint, print_recreate_watchpoint)
4365 (print_recreate_masked_watchpoint)
4366 (print_recreate_exception_catchpoint): Call print_recreate_thread.
4367 (tracepoint_print_one_detail): Adjust.
4368 (tracepoint_print_recreate): Adjust. Call print_recreate_thread.
4369 Dump the pass count here.
4370 (update_static_tracepoint): Adjust.
4371 (addr_string_to_sals): Adjust.
4372 (create_tracepoint_from_upload): Adjust. Change return type to
4373 struct tracepoint pointer.
4374 (trace_pass_set_count): Change parameter type to struct tracepoint
4375 pointer, and adjust.
4376 (trace_pass_command): Adjust.
4377 (get_tracepoint, get_tracepoint_by_number_on_target)
4378 (get_tracepoint_by_number): Change return type to struct
4379 tracepoint pointer, and adjust.
4380 (print_recreate_thread): New, factored out from save_breakpoints.
4381 (save_breakpoints): Don't print thread and task and passcount
4382 recreation here.
4383 * remote.c (remote_download_tracepoint): Adjust.
4384 * tracepoint.c (trace_actions_command, validate_actionline)
4385 (start_tracing, tfind_1, trace_find_tracepoint_command)
4386 (trace_dump_command): Adjust.
4387 (find_matching_tracepoint): Change return type to struct
4388 tracepoint pointer, and adjust.
4389 (merge_uploaded_tracepoints, tfile_get_traceframe_address)
4390 (tfile_trace_find, tfile_fetch_registers): Adjust.
4391 * tracepoint.h (create_tracepoint_from_upload): Change return type
4392 to struct tracepoint pointer.
4393 * ada-lang.c (print_recreate_exception): Call
4394 print_recreate_thread.
4395 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Adjust.
4396
3a5c3e22
PA
43972011-07-25 Pedro Alves <pedro@codesourcery.com>
4398
4399 * breakpoint.h (struct breakpoint): Move ops as first field. Move
4400 exp_string, exp_string_reparse, exp, exp_valid_block, cond_exp,
4401 cond_exp_valid_block, val, val_valid, watchpoint_frame,
4402 watchpoint_thread, watchpoint_triggered ...
4403 (struct watchpoint): ... to this new struct.
4404 (is_watchpoint): Declare.
4405 (install_breakpoint): Add new `internal' parameter.
4406 * breakpoint.c (is_watchpoint): Delete declaration.
4407 (set_breakpoint_condition): Handle watchpoints.
4408 (is_watchpoint): Make public.
4409 (watchpoint_in_thread_scope): Change parameter type to struct
4410 watchpoint.
4411 (watchpoint_del_at_next_stop): Change parameter type to struct
4412 watchpoint. Remove assertion. Adjust.
4413 (update_watchpoint): Ditto.
4414 (insert_breakpoints, breakpoint_init_inferior)
4415 (watchpoints_triggered, watchpoint_check)
4416 (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions)
4417 (bpstat_stop_status, print_one_breakpoint_location)
4418 (print_one_breakpoint_location, watchpoint_locations_match): Cast
4419 to struct watchpoint as necessary, and adjust.
4420 (install_breakpoint): Add `internal' argument. If true, don't
4421 mention the new breakpoint. Use set_breakpoint_number.
4422 (create_fork_vfork_event_catchpoint)
4423 (create_syscall_event_catchpoint): Adjust.
4424 (dtor_watchpoint): New.
4425 (re_set_watchpoint, insert_watchpoint, remove_watchpoint)
4426 (breakpoint_hit_watchpoint, resources_needed_watchpoint)
4427 (print_it_watchpoint, print_mention_watchpoint)
4428 (print_recreate_watchpoint, insert_masked_watchpoint)
4429 (remove_masked_watchpoint, resources_needed_masked_watchpoint)
4430 (print_one_detail_masked_watchpoint)
4431 (print_mention_masked_watchpoint)
4432 (print_recreate_masked_watchpoint): Cast to struct watchpoint as
4433 necessary, and adjust.
4434 (watch_command_1): Allocate and initialize a struct watchpoint
4435 instead of a struct breakpoint. Use install_breakpoint.
4436 (catch_exec_command_1): Adjust.
4437 (base_breakpoint_dtor): Delete accesses to watchpoint specific
4438 fields.
4439 (delete_breakpoint, enable_breakpoint_disp)
4440 (invalidate_bp_value_on_memory_change): Cast to struct watchpoint
4441 as necessary, and adjust.
4442 (initialize_breakpoint_ops): Install dtor_watchpoint as
4443 watchpoints' dtor method.
4444 * ada-lang.c (create_ada_exception_catchpoint): Adjust.
4445 * python/py-breakpoint.c (bppy_get_expression): Use is_watchpoint.
4446 to struct watchpoint as necessary, and adjust.
4447
2060206e
PA
44482011-07-25 Pedro Alves <pedro@codesourcery.com>
4449
4450 * ada-lang.c (dtor_exception, re_set_exception): Indirect through
4451 the the base class ops table.
4452 (catch_exception_breakpoint_ops)
4453 (catch_exception_unhandled_breakpoint_ops)
4454 (catch_assert_breakpoint_ops): Don't statically initialize.
4455 (initialize_ada_catchpoint_ops): New.
4456 (_initialize_ada_language): Call it.
4457 * breakpoint.c (base_breakpoint_ops, bkpt_base_breakpoint_ops)
4458 (bkpt_breakpoint_ops): Forward declare.
4459 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
4460 (catch_syscall_breakpoint_ops, catch_exec_breakpoint_ops)
4461 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
4462 (masked_watchpoint_breakpoint_ops)
4463 (gnu_v3_exception_catchpoint_ops): Don't statically initialize.
4464 (dtor_catch_syscall, dtor_catch_exec): Indirect through the the
4465 base class ops table.
4466 (null_re_set, null_check_status, null_works_in_software_mode)
4467 (null_resources_needed, null_print_one_detail): Delete.
4468 (bkpt_dtor): Rename to ...
4469 (base_breakpoint_dtor): ... this. Make static.
4470 (bkpt_allocate_location): Rename to ...
4471 (base_breakpoint_allocate_location): ... this. Make static.
4472 (base_breakpoint_re_set): New.
4473 (internal_error_pure_virtual_called): New.
4474 (base_breakpoint_insert_location, base_breakpoint_remove_location)
4475 (base_breakpoint_breakpoint_hit, base_breakpoint_check_status)
4476 (base_breakpoint_works_in_software_mode)
4477 (base_breakpoint_resources_needed, base_breakpoint_print_it)
4478 (base_breakpoint_print_one_detail, base_breakpoint_print_mention)
4479 (base_breakpoint_print_recreate): New functions.
4480 (base_breakpoint_ops): New global.
4481 (bkpt_re_set, bkpt_insert_location, bkpt_remove_location)
4482 (bkpt_breakpoint_hit): Make static.
4483 (bkpt_check_status): Delete.
4484 (bkpt_resources_needed): Make static.
4485 (bkpt_works_in_software_mode): Delete.
4486 (bkpt_print_it, bkpt_print_mention, bkpt_print_recreate): Make
4487 static.
4488 (bkpt_breakpoint_ops, internal_breakpoint_ops)
4489 (momentary_breakpoint_ops): Don't statically initialize.
4490 (internal_bkpt_print_recreate, momentary_bkpt_print_recreate):
4491 Delete.
4492 (tracepoint_insert_location, tracepoint_remove_location)
4493 (tracepoint_check_status, tracepoint_works_in_software_mode)
4494 (tracepoint_print_it): Delete.
4495 (tracepoint_breakpoint_ops): Don't statically initialize.
4496 (initialize_breakpoint_ops): New.
4497 (_initialize_breakpoint): Call it.
4498 * breakpoint.h (null_re_set, null_works_in_software_mode)
4499 (null_resources_needed, null_check_status, null_print_one_detail):
4500 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
4501 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
4502 (bkpt_check_status, bkpt_resources_needed)
4503 (bkpt_works_in_software_mode, bkpt_print_it)
4504 (null_print_one_detail, bkpt_print_mention, bkpt_print_recreate):
4505 Delete declarations.
4506 (initialize_breakpoint_ops): Declare.
4507
001c8c33
PA
45082011-07-25 Pedro Alves <pedro@codesourcery.com>
4509
4510 * breakpoint.c (bkpt_print_it, internal_bkpt_print_it)
4511 (momentary_bkpt_print_it): Simplify.
4512
06edf0c0
PA
45132011-07-25 Pedro Alves <pedro@codesourcery.com>
4514
4515 Split internal, momentary and user breakpoints breakpoint_ops
4516 tables.
4517
4518 * breakpoint.c (internal_breakpoint_ops)
4519 (momentary_breakpoint_ops): Forward declare.
4520 (create_internal_breakpoint): Add new breakpoint_ops parameter.
4521 Pass it down, rather than hardcoding bkpt_breakpoint_ops.
4522 (create_overlay_event_breakpoint)
4523 (create_std_terminate_master_breakpoint)
4524 (create_exception_master_breakpoint): Create breakpoints with
4525 internal_breakpoint_ops vtable.
4526 (set_longjmp_breakpoint): Create momentary breakpoints with
4527 momentary_breakpoint_ops vtable, using
4528 momentary_breakpoint_from_master.
4529 (create_thread_event_breakpoint, create_jit_event_breakpoint)
4530 (create_solib_event_breakpoint): Create breakpoints with
4531 internal_breakpoint_ops vtable.
4532 (set_momentary_breakpoint): Create breakpoints with
4533 momentary_breakpoint_ops vtable.
4534 (momentary_breakpoint_from_master): New, factored out from
4535 clone_momentary_breakpoint.
4536 (clone_momentary_breakpoint): Adjust.
4537 (watch_command_1): Create scope breakpoints with
4538 momentary_breakpoint_ops vtable.
4539 (bkpt_re_set): Remove handling of internal and momentary
4540 breakpoints.
4541 (bkpt_print_mention, bkpt_print_recreate): New.
4542 (bkpt_breakpoint_ops): Adjust.
4543 (internal_bkpt_re_set, internal_bkpt_check_status)
4544 (internal_bkpt_print_it, internal_bkpt_print_mention)
4545 (internal_bkpt_print_recreate, internal_breakpoint_ops): New.
4546 (momentary_bkpt_re_set, momentary_bkpt_check_status)
4547 (momentary_bkpt_print_it, momentary_bkpt_print_mention)
4548 (momentary_bkpt_print_recreate): New.
4549 (momentary_breakpoint_ops): New.
4550
348d480f
PA
45512011-07-25 Pedro Alves <pedro@codesourcery.com>
4552
4553 Implement most breakpoint_ops methods for all breakpoint types,
4554 and move the default handlings to the proper callbacks.
4555
4556 * breakpoint.c (update_watchpoint): Always call the breakpoint's
4557 works_in_software_mode method.
4558 (insert_bp_location): Go through breakpoint_ops->insert_location
4559 for software and hardware watchpoints.
4560 (create_internal_breakpoint): Pass bkpt_breakpoint_ops as
4561 breakpoint_ops.
4562 (remove_breakpoint_1): Go through breakpoint_ops->remove_location
4563 for software and hardware watchpoints.
4564 (print_it_typical): Delete.
4565 (print_bp_stop_message): Always call the breakpoint_ops->print_it
4566 method.
4567 (watchpoint_check): Adjust comment.
4568 (bpstat_check_location): Simply always call the breakpoint's
4569 breakpoint_hit method.
4570 (bpstat_stop_status): Always call the breakpoint's check_status
4571 method. Remove special cases for watchpoints and internal event
4572 breakpoints from here (moved to the check_status implementations).
4573 (print_one_breakpoint_location): Assume b->ops is never NULL.
4574 Remove static tracepoint marker id printing from here (moved to
4575 the print_one_detail callback implementation of tracepoints).
4576 (init_bp_location): Assert OPS is never NULL.
4577 (allocate_bp_location): Always call the breakpoint's
4578 allocate_location method, and remove the default code from here.
4579 (free_bp_location): Always call the location's dtor method, and
4580 remove the default code from here.
4581 (init_raw_breakpoint_without_location): Assert OPS is never NULL.
4582 (set_raw_breakpoint_without_location): Add new breakpoint_ops
4583 parameter. Pass it down.
4584 (set_raw_breakpoint): Ditto.
4585 (print_it_catch_fork): Adjust to take a bpstat as argument.
4586 (catch_fork_breakpoint_ops): Install methods.
4587 (print_it_catch_vfork): Adjust to take a bpstat as argument.
4588 (catch_vfork_breakpoint_ops): Install methods.
4589 (dtor_catch_syscall): Call the base dtor.
4590 (print_it_catch_syscall): Adjust to take a bpstat as argument.
4591 (catch_syscall_breakpoint_ops): Install methods.
4592 (dtor_catch_exec): Call the base dtor.
4593 (print_it_catch_exec): Adjust to take a bpstat as argument.
4594 (catch_exec_breakpoint_ops): Install methods.
4595 (hw_breakpoint_used_count, hw_watchpoint_used_count): Always call
4596 the breakpoint's resources_needed method, and remove the default
4597 code from here.
4598 (set_momentary_breakpoint): Pass bkpt_breakpoint_ops as
4599 breakpoint_ops.
4600 (clone_momentary_breakpoint): Clone the original's ops.
4601 (mention): Always call the breakpoint's print_mention method, and
4602 remove the default code from here.
4603 (create_breakpoint_sal): Adjust to pass the ops to
4604 set_raw_breakpoint rather than setting it manually.
4605 (create_breakpoint): Assert ops is never NULL. Adjust to pass the
4606 ops to set_raw_breakpoint_without_location rather than setting it
4607 manually.
4608 (break_command_1): Pass bkpt_breakpoint_ops as breakpoint_ops.
4609 (print_it_ranged_breakpoint): Adjust to take a bpstat as argument.
4610 (ranged_breakpoint_ops): Install methods.
4611 (break_range_command): Adjust to pass the ops to
4612 set_raw_breakpoint rather than setting it manually.
4613 (re_set_watchpoint, breakpoint_hit_watchpoint)
4614 (check_status_watchpoint, resources_needed_watchpoint)
4615 (works_in_software_mode_watchpoint, print_it_watchpoint)
4616 (print_mention_watchpoint, print_recreate_watchpoint): New
4617 functions.
4618 (watchpoint_breakpoint_ops): Install new methods.
4619 (print_it_masked_watchpoint): New function.
4620 (masked_watchpoint_breakpoint_ops): Install new methods.
4621 (watch_command_1): Adjust to pass the right breakpoint_ops to
4622 set_raw_breakpoint_without_location rather than setting it
4623 manually later. Record the current pspace.
4624 (print_it_exception_catchpoint): Adjust to take a bpstat as
4625 argument.
4626 (gnu_v3_exception_catchpoint_ops): Install new methods.
4627 (say_where): New function.
4628 (null_re_set, null_check_status, null_works_in_software_mode)
4629 (null_resources_needed, null_print_one_detail, bp_location_dtor):
4630 New functions.
4631 (bp_location_ops): New global.
4632 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
4633 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
4634 (bkpt_check_status, bkpt_resources_needed)
4635 (bkpt_works_in_software_mode, bkpt_print_it, bkpt_print_mention)
4636 (bkpt_print_recreate): New functions.
4637 (bkpt_breakpoint_ops): New global.
4638 (tracepoint_re_set, tracepoint_insert_location)
4639 (tracepoint_remove_location, tracepoint_breakpoint_hit)
4640 (tracepoint_check_status, tracepoint_works_in_software_mode)
4641 (tracepoint_print_it, tracepoint_print_one_detail)
4642 (tracepoint_print_mention, tracepoint_print_recreate): New
4643 functions.
4644 (tracepoint_breakpoint_ops): New global.
4645 (delete_breakpoint): Always call the breakpoint's dtor method, and
4646 remove the default handling from here.
4647 (breakpoint_re_set_default): Make static.
4648 (breakpoint_re_set_one): Always call the breakpoints re_set
4649 method, and remove the default handling from here.
4650 (trace_command, ftrace_command, strace_command)
4651 (create_tracepoint_from_upload): Pass appropriate breakpoints_ops
4652 to create_breakpoint.
4653 (save_breakpoints): Always call the breakpoint's print_recreate
4654 method, and remove the default handling from here.
4655
4656 * ada-lang.c (dtor_exception): Call the base dtor.
4657 (re_set_exception): Call the base method.
4658 (print_it_exception, print_it_catch_exception): Adjust to take a
4659 bpstat as argument.
4660 (catch_exception_breakpoint_ops): Install methods.
4661 (print_it_catch_exception_unhandled): Adjust to take a bpstat as
4662 argument.
4663 (catch_exception_unhandled_breakpoint_ops): Install methods.
4664 (print_it_catch_assert): Adjust to take a bpstat as argument.
4665 (catch_assert_breakpoint_ops): Install methods.
4666
4667 * breakpoint.h (struct breakpoint_ops): Adjust the print_it method
4668 to take a bpstat as argument.
4669 (enum print_stop_action): Add describing comments to each enum
4670 value.
4671 (breakpoint_re_set_default): Delete declaration.
4672 (null_re_set, null_works_in_software_mode, null_resources_needed)
4673 (null_check_status, null_print_one_detail): Declare.
4674 (bkpt_breakpoint_ops): Declare.
4675 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
4676 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
4677 (bkpt_check_status, bkpt_resources_needed)
4678 (bkpt_works_in_software_mode, bkpt_print_it)
4679 (null_print_one_detail, bkpt_print_mention, bkpt_print_recreate):
4680 Declare.
4681
4682 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust to pass
4683 bkpt_breakpoint_ops.
4684 * python/py-breakpoint.c (bppy_init): Ditto.
4685
be8f8133
PW
46862011-07-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4687
4688 * MAINTAINERS (Write After Approval): Add myself to the list.
4689
3807f613
PP
46902011-07-23 Paul Pluzhnikov <ppluzhnikov@google.com>
4691
4692 * elfread.c (elf_rel_plt_read): Fix off-by-one bug.
4693
1ced966e
PA
46942011-07-22 Pedro Alves <pedro@codesourcery.com>
4695
4696 * i386-nat.c (I386_DR_VACANT, I386_DR_LOCAL_ENABLE)
4697 (I386_DR_GLOBAL_ENABLE, I386_DR_DISABLE, I386_DR_SET_RW_LEN)
4698 (I386_DR_GET_RW_LEN, I386_DR_WATCH_HIT): Add state parameter and
4699 adjust.
4700 (dr_mirror, dr_status_mirror, dr_control_mirror): Delete.
4701 (struct i386_debug_reg_state): New.
4702 (i386_init_dregs): New.
4703 (dr_mirror): New.
4704 (i386_cleanup_dregs): Use i386_init_dregs.
4705 (i386_show_dr): Add state parameter and adjust.
4706 (i386_insert_aligned_watchpoint): Ditto. Don't pass the info to
4707 the inferior here.
4708 (i386_remove_aligned_watchpoint): Likewise.
4709 (i386_handle_nonaligned_watchpoint): Add state parameter and adjust.
4710 (i386_update_inferior_debug_regs): New.
4711 (i386_insert_watchpoint): Work on a local mirror of the debug
4712 registers, and only update the inferior on success.
4713 (i386_remove_watchpoint): Ditto.
4714 (i386_region_ok_for_watchpoint): Adjust.
4715 (i386_stopped_data_address): Adjust.
4716 (i386_insert_hw_breakpoint): Adjust.
4717 (i386_remove_hw_breakpoint): Adjust.
4718
3543a589
TT
47192011-07-22 Tom Tromey <tromey@redhat.com>
4720
4721 * amd64-tdep.c (amd64_pseudo_register_read_value): Rename
4722 from amd64_pseudo_register_read. Change arguments. Call
4723 mark_value_bytes_unavailable when needed.
4724 (amd64_init_abi): Use set_gdbarch_pseudo_register_read_value, not
4725 set_gdbarch_pseudo_register_read.
4726 * sentinel-frame.c (sentinel_frame_prev_register): Use
4727 regcache_cooked_read_value.
4728 * regcache.h (regcache_cooked_read_value): Declare.
4729 * regcache.c (regcache_cooked_read_value): New function.
4730 (regcache_cooked_read): Call
4731 gdbarch_pseudo_register_read_value if available.
4732 * i386-tdep.h (i386_pseudo_register_read_value): Declare.
4733 (i386_pseudo_register_read): Remove.
4734 * i386-tdep.c (i386_pseudo_register_read_into_value): Rename from
4735 i386_pseudo_register_read. Change arguments. Call
4736 mark_value_bytes_unavailable when needed.
4737 (i386_pseudo_register_read_value): New function.
4738 (i386_gdbarch_init): Call set_gdbarch_pseudo_register_read_value,
4739 not set_gdbarch_pseudo_register_read.
4740 * gdbarch.sh (pseudo_register_read_value): New method.
4741 * gdbarch.c, gdbarch.h: Rebuild.
4742 * findvar.c (value_from_register): Call get_frame_register_value.
4743
95298e72
PM
47442011-07-22 Phil Muldoon <pmuldoon@redhat.com>
4745
4746 * event-top.c (cli_command_loop): Use get_prompt, get_suffix,
4747 get_prefix.
4748 (display_gdb_prompt): Likewise.
4749 (change_annotation_level): Likewise.
4750 (push_prompt): Likewise.
4751 (pop_prompt): Likewise.
4752 (handle_stop_sig): Use get_prompt with a level.
4753 * top.c (command_loop): Use get_prompt with a level.
4754 (set_async_annotation_level): Use set_prompt with a level.
4755 (get_prefix): New function.
4756 (set_prefix): Ditto.
4757 (set_suffix): Ditto.
4758 (get_suffix): Ditto.
4759 (get_prompt): Accept a level argument.
4760 (set_prompt): Accept a level argument. Free old prompts. Set
4761 new_async_prompt if level is 0.
4762 (init_main): Use set_prompt with a level. Do not set
4763 new_async_prompt.
4764 * event-top.h (PROMPT, SUFFIX, PREFIX): Move to top.c
4765 * top.h: Declare set_suffix, get_suffix, set_prefix, get_prefix.
4766 Modify set_prompt, get_prompt to account for levels.
4767 * tui/tui-interp.c (tui_command_loop): Use get_prompt with a
4768 level.
4769 * python/python.c (before_prompt_hook): Use set_prompt.
4770
d26e3629
KY
47712011-07-22 Kwok Cheung Yeung <kcy@codesourcery.com>
4772
4773 * defs.h: Add guard against inclusion in gdbserver.
4774 (struct ptid, ptid_t): Move to common/ptid.h.
4775 (xfree, xzalloc, xasprintf, xvasprintf, xstrprintf, xstrvprintf,
4776 xsnprintf, internal_error): Move to common/common-utils.h.
4777 (nomem): Delete.
4778 * gdb_assert.h: Move into common/ sub-directory.
4779 * gdb_locale.h: Ditto.
4780 * gdb_dirent.h: Ditto.
4781 * inferior.h (minus_one_ptid, null_ptid, ptid_build, pid_to_ptid,
4782 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid):
4783 Move into common/ptid.h.
4784 * xml-support.c (xml_escape_text): Move into common/xml-utils.c.
4785 (gdb_xml_create_parser_and_cleanup_1, xml_fetch_context_from_file):
4786 Change nomem to malloc_failure.
4787 * xml-support.h (xml_escape_text): Move into common/xml-utils.h.
4788 * utils.c (nomem): Rename to malloc_failure.
4789 (xmalloc, xzalloc, xrealloc, xcalloc, xfree, xstrprintf, xasprintf,
4790 xvasprintf, xstrvprintf, xsnprintf): Move to common/common-utils.c.
4791 (gdb_buildargv): Change nomem to malloc_failure.
4792 * infrun.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid,
4793 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal,
4794 ptid_is_pid): Move into common/ptid.c.
4795 (initialize_infrun): Delete initialization of null_ptid and
4796 minus_one_ptid.
4797 * linux-nat.c (linux_nat_xfer_osdata): Defer to
4798 linux_common_xfer_osdata.
4799 * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c,
4800 common/ptid.c and common/buffer.c.
4801 (HFILES_NO_SRCDIR): Add common/common-utils.h, common/xml-utils.h,
4802 common/ptid.h, common/buffer.h and common/linux-osdata.h.
4803 (COMMON_OBS): Add xml-utils.o, common-utils.o, buffer.o and ptid.o.
4804 (common-utils.o, xml-utils.o, ptid.o, buffer.o, linux-osdata.o): New
4805 rules.
4806 * common/gdb_assert.h: New.
4807 * common/gdb_dirent.h: New.
4808 * common/gdb_locale.h: New.
4809 * common/buffer.c: New.
4810 * common/buffer.h: New.
4811 * common/ptid.c: New.
4812 * common/ptid.h: New.
4813 * common/xml-utils.c: New.
4814 * common/xml-utils.h: New.
4815 * common/common-utils.c: New.
4816 * common/common-utils.h: New.
4817 * common/linux-osdata.c: New.
4818 * common/linux-osdata.h: New.
4819 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-osdata.o.
4820 * config/arm/linux.mh (NATDEPFILES): Ditto.
4821 * config/i386/linux.mh (NATDEPFILES): Ditto.
4822 * config/i386/linux64.mh (NATDEPFILES): Ditto.
4823 * config/ia64/linux.mh (NATDEPFILES): Ditto.
4824 * config/m32r/linux.mh (NATDEPFILES): Ditto.
4825 * config/m68k/linux.mh (NATDEPFILES): Ditto.
4826 * config/mips/linux.mh (NATDEPFILES): Ditto.
4827 * config/pa/linux.mh (NATDEPFILES): Ditto.
4828 * config/powerpc/linux.mh (NATDEPFILES): Ditto.
4829 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Ditto.
4830 * config/s390/s390.mh (NATDEPFILES): Ditto.
4831 * config/sparc/linux.mh (NATDEPFILES): Ditto.
4832 * config/sparc/linux64.mh (NATDEPFILES): Ditto.
4833 * config/xtensa/linux.mh (NATDEPFILES): Ditto.
4834
edc84990 48352011-07-21 Matt Rice <ratmice@gmail.com>
4836
4837 * NEWS: Add info macros and info definitions commands.
4838
3a7bf607
PM
48392011-07-21 Phil Muldoon <pmuldoon@redhat.com>
4840
4841 * NEWS: Document Python prompt substitution hook.
4842
9b158ba0 48432011-07-18 Matt Rice <ratmice@gmail.com>
4844
4845 PR macros/12999
4846 * macrotab.h (macro_callback_fn): Add new arguments to callback.
4847 * macrotab.c (foreach_macro): Ditto.
4848 (foreach_macro_in_scope): Ditto.
4849 * macrocmd.c (print_macro_callback): New function.
4850 (info_macro_command): Move some code to print_macro_definition.
4851 (print_macro_definition): New function.
4852 (print_one_macro): Add new arguments to callback.
4853 (info_definitions_command): New function.
4854 (info_macros_command): Ditto.
4855 (_initialize_macrocmd): Add info macros and info definitions commands.
4856 * symtab.c (add_macro_name): Add new arguments to callback.
4857
d17b6f81
PM
48582011-07-21 Phil Muldoon <pmuldoon@redhat.com>
4859 Tom Tromey <tromey@redhat.com>
4860
4861 * top.c (set_prompt): Rewrite to free previous prompt, free
4862 asynch_new_prompt and set both on new prompts.
4863 * event-top.c (display_gdb_prompt): Add prompt substitution
4864 logic.
4865 * python/python.c (before_prompt_hook): New function.
4866
1364323a 48672011-07-20 Matt Rice <ratmice@gmail.com>
4868
4869 * bfin-tdep.c (bfin_extract_return_value): Fix swapped
4870 arguments to store_unsigned_integer.
4871
8b70b953
TT
48722011-07-20 Tom Tromey <tromey@redhat.com>
4873
6c83ed52
TT
4874 * dwarf2read.c (process_enumeration_scope): Do not call new_symbol
4875 in some declaration-only cases.
4876
48772011-07-18 Tom Tromey <tromey@redhat.com>
4878
8b70b953
TT
4879 PR symtab/12984:
4880 * dwarf2read.c (dwarf2_section_info_def): New typedef.
4881 (struct dwarf2_per_objfile) <types>: Change to a VEC.
4882 (struct dwarf2_per_cu_data) <from_debug_types>: Remove.
4883 <debug_type_section>: New field.
4884 (dwarf2_locate_sections): Push .debug_types sections onto VEC.
4885 (load_cu): Use appropriate section.
4886 (create_signatured_type_table_from_index): Add 'section'
4887 argument.
4888 (dwarf2_read_index): Only allow a single .debug_types section.
4889 (dw2_get_file_names): Use appropriate section.
4890 (read_type_comp_unit_head): Add 'section' argument.
4891 (create_debug_types_hash_table): Loop over all .debug_types
4892 sections.
4893 (init_cu_die_reader): Use appropriate section.
4894 (process_psymtab_comp_unit, load_partial_comp_unit)
4895 (load_full_comp_unit, read_die_and_children, find_partial_die)
4896 (lookup_die_type, determine_prefix, follow_die_offset): Update.
4897 (lookup_signatured_type_at_offset): Add 'section' argument.
4898 (read_signatured_type_at_offset): Add 'sect' argument.
4899 (read_signatured_type): Use appropriate section.
4900 (set_die_type, get_die_type_at_offset): Update.
4901 (dwarf2_per_objfile_free): Free all .debug_types sections, and
4902 VEC.
4903 (write_psymtabs_to_index): Don't allow index with more than one
4904 .debug_types section.
4905
918dd910
JK
49062011-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
4907
4908 Fix crash if referenced CU is aged out.
4909 * dwarf2loc.c (per_cu_dwarf_call): New variable back_to, use to for
4910 xfree of block.data.
4911 (indirect_pieced_value): New variable back_to, use to for xfree of
4912 baton.data.
4913 (dwarf2_compile_expr_to_ax): New variable back_to, use to for xfree of
4914 block.data.
4915 * dwarf2read.c (dwarf2_find_base_address): New prototype.
4916 (load_cu): New function from ...
4917 (dw2_do_instantiate_symtab): ... the code here ...
4918 (process_full_comp_unit): ... and here.
4919 (dwarf2_fetch_die_location_block): Call load_cu first. Call xmemdup on
4920 retval.data.
4921
0e37a63c
JK
49222011-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
4923
4924 * dwarf2loc.c (indirect_pieced_value): Use check_typedef for VALUE's
4925 type.
4926
7e324e48
GB
49272011-07-19 Gary Benson <gbenson@redhat.com>
4928
4929 * infrun.c (struct execution_control_state): New member
4930 stop_func_filled_in.
4931 (clear_stop_func, fill_in_stop_func): New functions.
4932 (handle_inferior_event): Call clear_stop_func rather than
4933 manipulating the execution control state directly.
4934 Call fill_in_stop_func lazily as required rather than
4935 directly calling find_pc_partial_function in all cases.
4936
d48323d8
TT
49372011-07-18 Tom Tromey <tromey@redhat.com>
4938
4939 * dwarf2read.c (read_subrange_type): Use attr_form_is_block when
4940 checking for variable-sized array.
4941
40591b7d
JCD
49422011-07-18 Jean-Charles Delay <delay@adacore.com>
4943
4944 * varobj.h (varobj_languages): Add vlang_ada definition to the list
4945 of supported languages.
4946 * varobj.c: Add top definitions and basic implementation of the
4947 following callbacks: ada_number_of_children, ada_name_of_variable,
4948 ada_name_of_child, ada_path_expr_of_child, ada_value_of_root,
4949 ada_value_of_child, ada_type_of_child, ada_value_of_variable.
4950 (languages): Register Ada-specific callbacks.
4951 (variable_language): Add the Ada case in the language setter switch.
4952
2e424e08
JK
49532011-07-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4954
4955 * remote-mips.c (pmon_download): Fix ignored return value GCC warning.
4956
9e8b7a03
JK
49572011-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
4958
4959 Code cleanup.
4960 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): New.
4961 (execute_stack_op): Use dwarf2_frame_ctx_funcs
4962 * dwarf2expr.c (dwarf_get_base_type): Access get_base_type via funcs.
4963 (execute_stack_op): Access read_reg, get_frame_base, read_mem,
4964 get_frame_cfa, get_tls_address and dwarf_call via funcs.
4965 * dwarf2expr.h (struct dwarf_expr_context): New forward declaration.
4966 (struct dwarf_expr_context_funcs): New, move here methods from ...
4967 (struct dwarf_expr_context): ... here. New fields funcs.
4968 * dwarf2loc.c (dwarf_expr_dwarf_call): Access get_frame_pc via funcs.
4969 (dwarf_expr_ctx_funcs): New.
4970 (dwarf2_evaluate_loc_desc_full): Use dwarf_expr_ctx_funcs.
4971 (needs_frame_dwarf_call): Access get_frame_pc via funcs.
4972 (needs_frame_ctx_funcs): New.
4973 (dwarf2_loc_desc_needs_frame): Use needs_frame_ctx_funcs.
4974
2b1260ab
FM
49752011-07-15 Fawzi Mohamed <fawzi.mohamed@nokia.com>
4976
4977 * MAINTAINERS (Write After Approval): Add myself to the list.
4978
8bd90839
FM
49792011-07-15 Fawzi Mohamed <fawzi.mohamed@nokia.com>
4980
4981 * dwarf2-frame.c (decode_frame_entry, decode_frame_entry_1): Ensure
4982 that CIE pointer of an FDE really points to a CIE .
4983
953b98d1
HZ
49842011-07-15 Hui Zhu <teawater@gmail.com>
4985
4986 * remote.c (remote_get_trace_status): Add comments.
4987
c8f2448a
JK
49882011-07-14 Jan Kratochvil <jan.kratochvil@redhat.com>
4989
4990 Code cleanup - constify struct lval_funcs.
4991 * dwarf2loc.c (pieced_value_funcs): Make it const.
4992 * infrun.c (siginfo_value_funcs): Likewise.
4993 * opencl-lang.c (opencl_value_funcs): Likewise.
4994 * valops.c (value_assign, value_ind): Make the funcs variable const.
4995 * value.c (struct value): Make location.computed.funcs target const.
4996 Rearrange the comments.
4997 (allocate_computed_value): Make the funcs parameter target const.
4998 (value_computed_funcs): Return the funcs target const.
4999 (value_free, value_copy, set_value_component_location): Make the funcs
5000 variable const.
5001 * value.h (allocate_computed_value): Make the funcs parameter target
5002 const.
5003 (value_computed_funcs): Return the funcs target const.
5004 * windows-tdep.c (tlb_value_funcs): Make it const.
5005
f652de6f
HZ
50062011-07-14 Hui Zhu <teawater@gmail.com>
5007
5008 * remote.c (remote_get_trace_status): Initialize p.
5009
67f41397
JK
50102011-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
5011
5012 Work around kgdb.
5013 * remote.c (remote_get_trace_status): New variable ex. Put
5014 remote_get_noisy_reply into TRY_CATCH. Call exception_fprintf for it.
5015
d1b66e6d
TT
50162011-07-13 Tom Tromey <tromey@redhat.com>
5017
5018 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_regval_type>: Use
5019 value_from_contents for final conversion.
5020
1632a688
JK
50212011-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
5022
5023 Code cleanup.
5024 * dwarf2loc.c (dwarf_expr_frame_base_1, dwarf2_evaluate_loc_desc_full):
5025 Indent prototypes so they do not get into tags.
5026
a7035dbb
JK
50272011-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
5028
5029 Code cleanup making also optimized out values lazy.
5030 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use
5031 allocate_optimized_out_value. Twice.
5032 (loclist_read_variable) Use allocate_optimized_out_value. Once.
5033 * findvar.c (read_var_value): Likewise.
5034 * value.c (allocate_optimized_out_value): New function.
5035 * value.h (allocate_optimized_out_value): New declaration.
5036
d07ed419
JK
50372011-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
5038
5039 Fix occasional crash of CTRL-C during DWARF read in.
5040 * dwarf2read.c (dwarf2_mark_helper): Return on NULL CU.
5041
86d31898
TT
50422011-07-11 Tom Tromey <tromey@redhat.com>
5043
5044 * regcache.c (struct regcache_descr): Fix typo.
5045 * i387-tdep.c (i387_supply_xsave): Fix typo.
5046
2ab95328
TT
50472011-07-11 Tom Tromey <tromey@redhat.com>
5048
5049 * dwarf2read.c (handle_DW_AT_stmt_list): New function.
5050 (read_file_scope, read_type_unit_scope): Use it.
5051
04ad99e6
JK
50522011-07-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5053
5054 * dwarf2expr.c (read_sleb128): Fix signed extension overflowing host
5055 `int'.
5056
713389e0
PM
50572011-07-11 Phil Muldoon <pmuldoon@redhat.com>
5058
5059 PR python/12438
5060 * python/python.c: Set gdbpy_should_print_stack default to off.
5061 (set_python): Deprecate maint set python print-stack to
5062 class_deprecate.
5063 (_initialize_python): Deprecate maint set/show python print-stack.
5064 Add new prefix command, python. Add new setting, print-backtrace.
5065 * NEWS: Document set python print-stack. Document default change.
5066
754eadd1
PM
50672011-07-11 Phil Muldoon <pmuldoon@redhat.com>
5068
5069 * python/py-inferior.c (infpy_dealloc): New function.
5070 (inferior_to_inferior_object): Return a new object, or a
5071 new reference to the existing object.
5072 (find_thread_object): Cleanup references to inferior.
5073 (delete_thread_object): Ditto.
5074 * python/py-infthread.c (create_thread_object): Do not increment
5075 inferior reference count.
5076
5e44ecb3
TT
50772011-07-08 Tom Tromey <tromey@redhat.com>
5078
5079 * dwarf2loc.c (locexpr_regname): New function.
5080 (locexpr_describe_location_piece): Use it.
5081 (disassemble_dwarf_expression): Add per_cu argument. Use
5082 locexpr_regname.
5083 <DW_OP_GNU_deref_type, DW_OP_GNU_const_type,
5084 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
5085 New cases.
5086 (locexpr_describe_location_1): Add per_cu argument.
5087 (locexpr_describe_location): Update.
5088 (loclist_describe_location): Update.
5089
e0e9434c
TT
50902011-07-08 Tom Tromey <tromey@redhat.com>
5091
5092 * dwarf2expr.c (execute_stack_op): Add QUIT.
5093
26afc0d7
HZ
50942011-07-07 Hui Zhu <teawater@gmail.com>
5095
5096 Revert:
5097 2011-07-06 Hui Zhu <teawater@gmail.com>
5098 * remote.c (remote_start_remote): Add TRY_CATCH for
5099 remote_get_trace_status.
5100 * tracepoint.c (disconnect_tracing): Ditto.
5101
a40a111f
AB
51022011-07-07 Andrew Burgess <aburgess@broadcom.com>
5103
5104 * cli/cli-setshow.c (do_setshow_command): Display var_zinteger
5105 variables as signed, not unsigned.
5106
e2bd3b15
JB
51072011-07-06 Joel Brobecker <brobecker@adacore.com>
5108
5109 * jit.c (jit_inferior_init): Reformat forward declaration.
5110
e3d961fe 51112011-07-06 Matt Rice <ratmice@gmail.com>
5112
5113 * MAINTAINERS (Write After Approval): Add myself to the list.
5114
0f3428f0
HZ
51152011-07-06 Hui Zhu <teawater@gmail.com>
5116
5117 * remote.c (remote_start_remote): Add TRY_CATCH for
5118 remote_get_trace_status.
5119 * tracepoint.c (disconnect_tracing): Ditto.
5120
fc9f3a69
TT
51212011-07-05 Tom Tromey <tromey@redhat.com>
5122
5123 * symtab.c (operator_chars): Now static.
5124 * linespec.c (operator_chars): Don't declare.
5125
26e519b9
TJB
51262011-07-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
5127
5128 * ui-out.h (ui_out_field_core_addr): Fix typo in comment.
5129
eb2a6f42
TT
51302011-07-05 Tom Tromey <tromey@redhat.com>
5131
5132 * gnu-v3-abi.c (gnuv3_rtti_type): Check TYPE_CPLUS_REALLY_JAVA.
5133 * gdbtypes.h (struct cplus_struct_type) <is_java>: New field.
5134 (TYPE_CPLUS_REALLY_JAVA): New macro.
5135 * dwarf2read.c (process_structure_scope): Set
5136 TYPE_CPLUS_REALLY_JAVA.
5137
21083d0f 51382011-07-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
177b42fe
TJB
5139
5140 * ada-lang.c: Fix typos.
5141 * amd64-tdep.c: Likewise.
5142 * breakpoint.c: Likewise.
5143 * cli/cli-decode.c: Likewise.
5144 * findcmd.c: Likewise.
5145 * inline-frame.c: Likewise.
5146 * mi/mi-main.c: Likewise.
5147 * minsyms.c: Likewise.
5148 * monitor.c: Likewise.
5149 * monitor.h: Likewise.
5150 * prologue-value.c: Likewise.
5151 * reverse.c: Likewise.
5152 * s390-tdep.c: Likewise.
5153
3b2a0cf2
JB
51542011-07-06 Paul Pluzhnikov <ppluzhnikov@google.com>
5155
5156 * jit.c (jit_inferior_init): Forward declare.
5157 (jit_breakpoint_re_set_internal): Call jit_inferior_init.
5158
efae1d92
JB
51592011-07-04 Joel Brobecker <brobecker@adacore.com>
5160
5161 * osabi.c (generic_elf_osabi_sniffer): Minor comment reformatting.
5162
6040a59d
JB
51632011-07-04 Tristan Gingold <gingold@adacore.com>
5164
5165 * ada-tasks.c (KNOWN_TASKS_LIST): New macro.
5166 (tcb_fieldno): Add activation_link field.
5167 (get_known_tasks_addr): Moved and rewritten.
5168 (get_tcb_types_info): Set activation_link field.
5169 (read_known_tasks_array): Add parameter. Rewritten.
5170 (read_known_tasks_list): New function.
5171 (read_known_tasks): New function.
5172 (ada_build_task_list): Call read_known_tasks instead of
5173 read_known_tasks_array.
5174 * ravenscar-thread.c: Add first_task_name constant.
5175 (has_ravenscar_runtime): Check for task list too.
5176
cb741e45
JB
51772011-07-04 Tristan Gingold <gingold@adacore.com>
5178
5179 * ada-tasks.c: Renames fieldno to actb_fieldno.
5180 (ada_get_task_number): Indentation.
5181 (get_tcb_types_info): Remove all parameters. Write directly
5182 the globals.
5183 (ptid_from_atcb_common): Adjust.
5184 (read_atcb): Adjust.
5185
7475b06c
TJB
51862011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
5187
5188 * symtab.c (in_prologue): Remove mention of ppc's refine_prologue_limit.
5189
15230f37
TJB
51902011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
5191
5192 * ui-out.c (ui_out_field_core_addr): Mention that the function
5193 description is in the header file.
5194 * ui-out.h (ui_out_field_core_addr): Document function.
5195
65743aba
TJB
51962011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
5197
5198 * ui-out.c (ui_out_get_field_separator): Remove unused function.
5199 * ui-out.h (ui_out_get_field_separator): Remove prototype.
5200
c37a5aab
TJB
52012011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
5202
5203 * symtab.c (expand_line_sal): Remove empty line.
5204
59adf69e
TS
52052011-07-04 Thomas Schwinge <thomas@schwinge.name>
5206
5207 * osabi.c (generic_elf_osabi_sniffer) <ELFOSABI_GNU>: Handle in the
5208 same way as ELFOSABI_NONE.
5209 <ELFOSABI_LINUX, ELFOSABI_HURD>: Remove cases.
5210
e5dd4106
TJB
52112011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
5212
5213 * breakpoint.c: Fix typos in comments.
5214 * linespec.c: Likewise.
5215 * symtab.c: Likewise.
5216
d40102a1
JB
52172011-07-04 Joel Brobecker <brobecker@adacore.com>
5218
5219 * dwarf2-frame.c (dwarf2_build_frame_info): Do not load .eh_frame
5220 section in separate object files.
5221
2f741504
JK
52222011-07-04 Jan Kratochvil <jan.kratochvil@redhat.com>
5223
5224 Fix false GCC warning.
5225 * linespec.c (decode_line_1): Initialize values.
5226
418c7cf7
JK
52272011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
5228
5229 * linespec.c (find_method): Accept the function type automatically only
5230 if it was specified with parameter types.
5231
3d50dd94
JK
52322011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
5233
5234 Stop on first linespec terminator instead of eating what we can.
5235 * linespec.c (is_linespec_boundary): New function.
5236 (name_end): Remove function.
5237 (keep_name_info): New parameter on_boundary, replace the body.
5238 (decode_line_1): Provide the parameter to keep_name_info.
5239 (decode_compound): Likewise. Drop the trailing java return type
5240 handling. Twice.
5241
dcf9f4ab
JK
52422011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
5243
5244 Fall back linespec to minimal symbols.
5245 * linespec.c (decode_line_1): New variable ex, saved_argptr. Protect
5246 decode_compound by TRY_CATCH, fall back on minsyms if it failed.
5247 (find_method, symbol_found): Change error to cplusplus_error.
5248
3f542ed1
JK
52492011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
5250
bc68c4e5 5251 * symtab.c (symbol_find_demangled_name): Remove DMGL_VERBOSE.
3f542ed1 5252
900e11f9
JK
52532011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
5254 Tom Tromey <tromey@redhat.com>
5255
5256 * dwarf2read.c (check_physname): New variable.
5257 (dwarf2_physname): Prefer DW_AT_linkage_name over dwarf2_compute_name.
5258 (show_check_physname): New function.
5259 (_initialize_dwarf2_read): Add `check-physname' for check_physname.
5260
2301925d
JB
52612011-07-01 Joel Brobecker <brobecker@adacore.com>
5262
5263 * machoread.c (macho_symfile_read): Delete OBE comment.
5264
38947cca
JB
52652011-07-01 Joel Brobecker <brobecker@adacore.com>
5266
5267 * machoread.c (struct macho_oso_data): Delete.
5268 (current_oso): Delete.
5269 (macho_relocate_common_syms): New function, mostly extracted
5270 out of
5271 (macho_add_oso_symfile): Call macho_relocate_common_syms.
5272 Remove code that sets and unset current_oso.
5273 (macho_symfile_relocate): Delete handling of common symbols,
5274 now moved to macho_relocate_common_syms.
5275
a7aa0d73
JB
52762011-07-01 Joel Brobecker <brobecker@adacore.com>
5277
5278 * darwin-nat.c (darwin_ptrace): Add documentation.
5279 Set errno to zero before calling ptrace. If ptrace returns
5280 -1 and errno is zero, then change then return zero.
5281 (darwin_kill_inferior): Issue a warning instead of triggering
5282 a failed assertion when the PT_KILL ptrace operations returned
5283 nonzero.
5284
5e9bc145
JB
52852011-07-01 Joel Brobecker <brobecker@adacore.com>
5286
5287 * darwin-nat.c (darwin_detach): Call darwin_resume_inferior
5288 only when inf->private->no_ptrace.
5289
00eb2c4a
JB
52902011-07-01 Joel Brobecker <brobecker@adacore.com>
5291
5292 * ada-lang.c (print_it_exception): Print temporary catchpoints
5293 as "Temporary catchpoint".
5294 (print_mention_exception): Likewise.
5295
127c81bc
TT
52962011-07-01 Tom Tromey <tromey@redhat.com>
5297
5298 * jv-lang.c (java_language_defn): Use java_printchar,
5299 java_printstr.
5300 (java_get_encoding): New function.
5301 (java_emit_char): Use generic_emit_char.
5302 (java_printchar): New function.
5303 (java_printstr): Likewise.
5304
25552254
JB
53052011-07-01 Joel Brobecker <brobecker@adacore.com>
5306
5307 * ada-typeprint.c (print_record_type): If unable to decode
5308 the name of the parent type, use the encoded name.
5309
d2d43431
JB
53102011-07-01 Jean-Charles Delay <delay@adacore.com>
5311
5312 * ada-typeprint.c (ada_print_type): Fix both PAD type and
5313 pointer to constrained packed array type output.
5314 * ada-valprint.c (ada_val_print_1): Fix pointer to constrained
5315 packed array output.
5316
54ae186f
JB
53172011-07-01 Jean-Charles Delay <delay@adacore.com>
5318
5319 * ada-typeprint.c (print_array_type): removed if condition on show
5320 being negative for bounds printing.
5321
8f17729f
JB
53222011-07-01 Joel Brobecker <brobecker@adacore.com>
5323
5324 * ada-lang.c (ada_identical_enum_types_p): New function.
5325 (symbols_are_identical_enums): New function.
5326 (remove_extra_symbols): Do nothing if NSYMS < 2.
5327 Use symbols_are_identical_enums.
5328
f5aa6869
JB
53292011-07-01 Joel Brobecker <brobecker@adacore.com>
5330
5331 * ada-valprint.c (ada_value_print): Handle typedefs.
5332
8f465ea7
JB
53332011-07-01 Joel Brobecker <brobecker@adacore.com>
5334
5335 * ada-lang.c (ada_evaluate_subexp): Add missing word in comment.
5336
828292f2
JB
53372011-07-01 Eric Botcazou <ebotcazou@adacore.com>
5338
5339 * ada-lang.c (thin_descriptor_type): Deal with typedefs.
5340 (decode_constrained_packed_array): Likewise.
5341 (ada_evaluate_subexp) <TERNOP_SLICE>: Likewise.
5342
18920c42
JB
53432011-07-01 Joel Brobecker <brobecker@adacore.com>
5344
5345 * ada-exp.y (convert_char_literal): Handle typedef types.
5346
c90092fe
JB
53472011-07-01 Joel Brobecker <brobecker@adacore.com>
5348
5349 * ada-lang.c (ada_remove_trailing_digits): Expand documentation.
5350
f748fb40
TT
53512011-06-30 Tom Tromey <tromey@redhat.com>
5352
5353 * varobj.c (varobj_create): Call do_cleanups on early exit path.
5354 * valops.c (find_overload_match): Call do_cleanups on early exit
5355 path.
5356 * solib.c (solib_find): Call do_cleanups on early exit path.
5357
3bb47e8b
TT
53582011-06-30 Tom Tromey <tromey@redhat.com>
5359
5360 * symfile-mem.c (symbol_file_add_from_memory): Call do_cleanups.
5361 * solib-svr4.c (open_symbol_file_object): Call do_cleanups on all
5362 return paths. Defer final do_cleanups until last return.
5363 * arm-tdep.c (arm_exidx_new_objfile): Make null cleanup after
5364 early return.
5365
4727bad3
TT
53662011-06-30 Tom Tromey <tromey@redhat.com>
5367
5368 * Makefile.in (SUBDIR_MI_CFLAGS): Don't add -DMI_OUT=1.
5369
bb361dbf
AB
53702011-06-30 Andrew Burgess <aburgess@broadcom.com>
5371
5372 * MAINTAINERS (Write After Approval): Add myself to the list.
5373
e0d00bc7
JK
53742011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
5375
5376 Disable epilogue unwinders on recent GCCs.
5377 * amd64-tdep.c (amd64_in_function_epilogue_p): New variable symtab,
5378 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
5379 * dwarf2read.c (process_full_comp_unit): Initialize
5380 EPILOGUE_UNWIND_VALID.
5381 * i386-tdep.c (i386_in_function_epilogue_p): New variable symtab,
5382 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
5383 * symtab.h (struct symtab): New field epilogue_unwind_valid.
5384
4632c0d0
JK
53852011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
5386
5387 Code cleanup - reformatting.
5388 * dwarf2read.c (producer_is_gcc_ge_4_0): Rename to ...
5389 (producer_is_gcc_ge_4): ... here, change the return value.
5390 (process_full_comp_unit): New variable gcc_4_minor, adjust the value
5391 interpretation.
5392
32019081
JK
53932011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
5394
5395 Fix non-only rename list for Fortran modules import.
5396 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Adjust the
5397 cp_add_using_directive caller.
5398 (cp_add_using_directive): New parameter excludes, describe it. New
5399 variables ix and param. Compare if also excludes match. Allocate NEW
5400 with variable size, initialize EXCLUDES there.
5401 (cp_lookup_symbol_imports): New variable excludep, test
5402 current->EXCLUDES with it.
5403 * cp-support.h: Include vec.h.
5404 (struct using_direct): New field excludes, describe it.
5405 (DEF_VEC_P (const_char_ptr)): New.
5406 (cp_add_using_directive): New parameter excludes.
5407 * defs.h (const_char_ptr): New typedef.
5408 * dwarf2read.c (read_import_statement): New variables child_die,
5409 excludes and cleanups, read in excludes.
5410 (read_namespace): Adjust the cp_add_using_directive caller.
5411
70c622a3
JK
54122011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
5413
5414 Code cleanup.
5415 * cp-namespace.c (cp_add_using_directive): Turn positive comparison to
5416 negative comparisons.
5417
39c4d40a
TT
54182011-06-29 André Pönitz <andre.poenitz@nokia.com>
5419
5420 * mi/mi-main.c (mi_cmd_list_features): Emit
5421 breakpoint-notifications.
5422
3b2b8fea
TT
54232011-06-29 Tom Tromey <tromey@redhat.com>
5424
5425 PR fortran/10036:
5426 * valprint.h (generic_emit_char, generic_printstr): Declare.
5427 * valprint.c (wchar_printable, append_string_as_wide)
5428 (print_wchar): Move from c-lang.c.
5429 (generic_emit_char): New function; mostly taken from c_emit_char.
5430 (generic_printstr): New function; mostly taken from c_printstr.
5431 * f-valprint.c (f_val_print) <TYPE_CODE_ARRAY>: Handle strings
5432 represented as arrays.
5433 <TYPE_CODE_CHAR>: Treat as TYPE_CODE_INT; recognize as character
5434 type.
5435 * f-typeprint.c (f_type_print_base) <TYPE_CODE_CHAR>: Treat
5436 identically to TYPE_CODE_INT.
5437 * f-lang.c (f_get_encoding): New function.
5438 (f_emit_char): Use generic_emit_char.
5439 (f_printchar): Replace comment.
5440 (f_printstr): Use generic_printstr.
5441 * dwarf2read.c (read_base_type) <DW_ATE_unsigned>: Handle Fortran
5442 "character" types specially.
5443 <DW_ATE_signed_char, DW_ATE_unsigned_char>: Make TYPE_CODE_CHAR
5444 for Fortran.
5445 * c-lang.c (wchar_printable, append_string_as_wide, print_wchar):
5446 Move to valprint.c
5447 (c_emit_char): Call generic_emit_char.
5448 (c_printstr): Call generic_printstr.
5449
168e6d44
GB
54502011-06-29 Gary Benson <gbenson@redhat.com>
5451
5452 * breakpoint.c (bpstat_what): Removed duplicated case.
5453
1c033f8c
TT
54542011-06-28 Tom Tromey <tromey@redhat.com>
5455
5456 * python/python-internal.h (PY_SSIZE_T_CLEAN): Define.
5457
5fe41fbf
TT
54582011-06-27 Tom Tromey <tromey@redhat.com>
5459
5460 * valops.c (find_overload_match): Call do_cleanups before early
5461 return.
5462 * top.c (execute_command): Call do_cleanups before early return.
5463 (command_loop): Likewise.
5464 * stack.c (backtrace_command): Make a null cleanup early. Don't
5465 conditionally call do_cleanups.
5466 * python/py-value.c (TRY_CATCH): Move cleanup handling into
5467 TRY_CATCH.
5468 * python/py-breakpoint.c (gdbpy_breakpoint_has_py_cond): Rearrange
5469 so cleanups are always run.
5470 * mi/mi-cmd-var.c (mi_cmd_var_delete): Reset old_cleanups.
5471 * findcmd.c (parse_find_args): Call do_cleanups on early return
5472 path.
5473 * dbxread.c (elfstab_build_psymtabs): Make a null cleanup early.
5474 Don't conditionally call do_cleanups.
5475 * cli/cli-script.c (execute_user_command): Initialize 'old_chain'
5476 later.
5477
e26bd57d
EB
54782011-06-27 Eric Botcazou <ebotcazou@adacore.com>
5479
5480 * MAINTAINERS (Write After Approval): Use default email address.
5481
6c3097fc
JB
54822011-06-27 Joel Brobecker <brobecker@adacore.com>
5483
5484 * MAINTAINERS (Write After Approval): Add Eric Botcazou.
5485
369c397b
JB
54862011-06-27 Eric Botcazou <ebotcazou@adacore.com>
5487
5488 * sparc-tdep.h (struct sparc_frame_cache): Add frame_offset,
5489 saved_regs_mask and copied_regs_mask fields.
5490 (sparc_record_save_insn): New prototype.
5491 * sparc-tdep.c (sparc_alloc_frame_cache): Initialize the new fields.
5492 (sparc_record_save_insn): New function.
5493 (sparc_analyze_prologue): Add head comment. Recognize store insns
5494 of call-saved registers. Use OFFSET consistently. Recognize flat
5495 frames and cache their settings.
5496 (sparc32_skip_prologue): Handle flat frames.
5497 (sparc_frame_cache): Add frame_offset to the base address.
5498 (sparc32_frame_cache): Adjust to new frame description.
5499 (sparc32_frame_prev_register): Likewise.
5500 * sparc64-tdep.c (sparc64_frame_prev_register): Likewise.
5501 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
5502 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
5503 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_cache): Force the
5504 frame by calling sparc_record_save_insn.
5505 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_cache): Likewise.
5506 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_cache): Likewise.
5507 * sparc64obsd-tdep.c (sparc64obsd_frame_cache): Likewise.
5508
b315ab21
TG
55092011-06-27 Tristan Gingold <gingold@adacore.com>
5510
5511 * dwarf2read.c (struct dwarf2_section_info): Replace was_mmapped
5512 field by map_addr and map_len.
5513 (dwarf2_read_section): Adjust for the new bfd_mmap api.
5514 (munmap_section_buffer): Likewise.
5515
ddd49eee
TT
55162011-06-24 Tom Tromey <tromey@redhat.com>
5517
5518 * varobj.c (update_dynamic_varobj_children): Make 'name' const.
5519 * symtab.h (lookup_struct, lookup_union, lookup_enum): Update.
5520 * python/python.c (gdbpy_parameter): Make 'arg' const.
5521 (execute_gdb_command): Likewise.
5522 (gdbpy_decode_line): Likewise. Copy it.
5523 (gdbpy_parse_and_eval): Make 'expr_string' const. Copy it.
5524 (gdbpy_write): Make 'arg' const.
5525 * python/py-type.c (typy_lookup_typename): Make 'type_name'
5526 const.
5527 (gdbpy_lookup_type): Likewise.
5528 * python/py-prettyprint.c (print_children): Make 'name' const.
5529 * python/py-param.c (parmpy_init): Make 'name' const. Copy it.
5530 * python/py-inferior.c (infpy_write_memory): Make 'buf_len' a
5531 Py_ssize_t.
5532 * python/py-function.c (fnpy_init): Make 'name' const.
5533 * python/py-cmd.c (cmdpy_init): Make 'name' const. Copy it.
5534 (gdbpy_string_to_argv): Make 'input' const.
5535 * python/py-breakpoint.c (bppy_init): Make 'spec' const. Copy
5536 it.
5537 * gdbtypes.h (lookup_typename): Update.
5538 * gdbtypes.c (lookup_typename): Make 'name' const.
5539 (lookup_struct): Likewise.
5540 (lookup_union): Likewise.
5541 (lookup_enum): Likewise.
5542
5998129b
TT
55432011-06-24 Tom Tromey <tromey@redhat.com>
5544
5545 * Makefile.in (HFILES_NO_SRCDIR): Add "common/" to
5546 gdb_thread_db.h. Move all common/ entries to be together.
5547 (TAGS): Don't depend on DEPFILES.
5548
6e586cc5
YQ
55492011-06-23 Yao Qi <yao@codesourcery.com>
5550
5551 * infrun.c (start_remote): Move call init_wait_for_inferior to ...
5552 * remote.c (remote_start_remote): ... here.
5553 * monitor.c (monitor_open): ... here.
5554
86c3c1fc
AB
55552011-06-23 Andrew Burgess <aburgess@broadcom.com>
5556
5557 * gdbtypes.c (append_composite_type_field_aligned): Fix
5558 calculation of bit position based on alignment.
5559
28010a5d
PA
55602011-06-22 Pedro Alves <pedro@codesourcery.com>
5561
5562 * breakpoint.c (bpstat_stop_status): Call the check_status
5563 breakpoint_ops method.
5564 (print_one_breakpoint_location): Also print the condition for Ada
5565 exception catchpoints.
5566 (allocate_bp_location): New, factored out from
5567 allocate_bp_location.
5568 (allocate_bp_location): Adjust. Call the owner breakpoint's
5569 allocate_location method, if there is one.
5570 (free_bp_location): Call the locations's dtor method, if there is
5571 one.
5572 (init_raw_breakpoint_without_location): New breakpoint_ops
5573 parameter. Use it.
5574 (set_raw_breakpoint_without_location): Adjust.
5575 (init_raw_breakpoint): New breakpoint_ops parameter. Pass it down.
5576 (set_raw_breakpoint): Adjust.
5577 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
5578 (catch_syscall_breakpoint_ops): Install NULL allocate_location,
5579 re_set and check_status methods.
5580 (init_catchpoint): Don't memset, initialize thread, addr_string
5581 and enable_state. Pass the ops down to init_raw_breakpoint.
5582 (install_catchpoint): Rename to ...
5583 (install_breakpoint): ... this, and make extern.
5584 (create_fork_vfork_event_catchpoint): Adjust.
5585 (catch_exec_breakpoint_ops): Install NULL allocate_location,
5586 re_set and check_status methods.
5587 (create_syscall_event_catchpoint): Adjust.
5588 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
5589 (masked_watchpoint_breakpoint_ops): Install NULL
5590 allocate_location, re_set and check_status methods.
5591 (catch_exec_command_1): Adjust.
5592 (gnu_v3_exception_catchpoint_ops): Install NULL allocate_location,
5593 re_set and check_status methods.
5594 (create_ada_exception_breakpoint): Rename to ...
5595 (init_ada_exception_breakpoint): ... this. Add a struct
5596 breakpoint parameter, and delete the exp_string, cond_string and
5597 cond parameters. Use init_raw_breakpoint, and don't install or
5598 mention the breakpoint yet. Don't clear breakpoint fields that
5599 init_raw_breakpoint already clears.
5600 (re_set_breakpoint): Delete, split into ...
5601 (breakpoint_re_set_default, prepare_re_set_context): ... these new
5602 functions.
5603 (breakpoint_re_set_one): Call the breakpoint's
5604 breakpoint_ops->re_set implementation, if there's one. Adjust.
5605 * breakpoint.h: Forward declare struct bpstats and struct bp_location.
5606 (struct bp_location_ops): New type.
5607 (struct bp_location): New field `ops'.
5608 (struct breakpoint_ops): New `allocate_location', `re_set' and
5609 `check_status' fields. Make `breakpoint_hit''s description match
5610 reality.
5611 (init_bp_location): Declare.
5612 (breakpoint_re_set_default): Declare.
5613 (create_ada_exception_breakpoint): Rename to ...
5614 (init_ada_exception_breakpoint): ... this. Add a struct
5615 breakpoint parameter, and delete the exp_string, cond_string and
5616 cond parameters.
5617 (install_breakpoint): Declare.
5618 * ada-lang.c: Include exceptions.h.
5619 <Ada exceptions description>: Update.
5620 (struct ada_catchpoint_location): New type.
5621 (ada_catchpoint_location_dtor): New function.
5622 (ada_catchpoint_location_ops): New global.
5623 (ada_catchpoint): New type.
5624 (create_excep_cond_exprs): New function.
5625 (dtor_exception, allocate_location_exception, re_set_exception)
5626 (should_stop_exception, check_status_exception): New functions.
5627 (print_one_exception, print_mention_exception)
5628 (print_recreate_exception): Adjust.
5629 (dtor_catch_exception, allocate_location_catch_exception)
5630 (re_set_catch_exception, check_status_catch_exception): New
5631 functions.
5632 (catch_exception_breakpoint_ops): Install them.
5633 (dtor_catch_exception_unhandled)
5634 (allocate_location_catch_exception_unhandled)
5635 (re_set_catch_exception_unhandled)
5636 (check_status_catch_exception_unhandled): New functions.
5637 (catch_exception_unhandled_breakpoint_ops): Install them.
5638 (dtor_catch_assert, allocate_location_catch_assert)
5639 (re_set_catch_assert, check_status_catch_assert): New functions.
5640 (catch_assert_breakpoint_ops): Install them.
5641 (ada_exception_catchpoint_p): Delete.
5642 (catch_ada_exception_command_split)
5643 (ada_exception_catchpoint_cond_string): Rename exp_string
5644 parameter to excep_string. Adjust.
5645 (ada_parse_catchpoint_condition): Delete.
5646 (ada_exception_sal): Rename the exp_string parameter to
5647 excep_string. Delete the cond_string and cond parameters.
5648 Adjust.
5649 (ada_decode_exception_location): Rename the exp_string parameter
5650 to excep_string. Delete the cond_string and cond parameters.
5651 Adjust.
5652 (create_ada_exception_catchpoint): New function.
5653 (catch_ada_exception_command, ada_decode_assert_location)
5654 (catch_assert_command): Adjust.
5655 * ada-lang.h (ada_exception_catchpoint_p): Delete declaration.
5656
9ac4176b
PA
56572011-06-22 Pedro Alves <pedro@codesourcery.com>
5658
5659 * ada-lang.c: Include arch-utils.h.
5660 (ada_decode_exception_location): Make static.
5661 (catch_ada_exception_command): Moved here from breakpoint.c.
5662 (ada_decode_assert_location): Make static.
5663 (catch_assert_command): Moved here from breakpoint.c.
5664 (_initialize_ada_lang): Install the exception and assert
5665 catchpoint commands here.
5666 * ada-lang.h (ada_decode_exception_location)
5667 (ada_decode_assert_location): Delete declarations.
5668 * breakpoint.c (CATCH_PERMANENT, CATCH_TEMPORARY): Moved to
5669 breakpoint.h.
5670 (create_ada_exception_breakpoint): Make extern.
5671 (catch_ada_exception_command, catch_assert_command): Moved to
5672 ada-lang.c.
5673 (add_catch_command): Make extern.
5674 (_initilize_breakpoint): Don't install the exception and assert
5675 catchpoint commands here.
5676 * breakpoint.h (CATCH_PERMANENT, CATCH_TEMPORARY): Moved from
5677 breakpoint.c
5678 (add_catch_command, create_ada_exception_breakpoint): Declare.
5679
c56053d2
PA
56802011-06-22 Pedro Alves <pedro@codesourcery.com>
5681
5682 * breakpoint.c (init_raw_breakpoint_without_location): Don't add
5683 the breakpoint to the breakpoint chain here.
5684 (set_raw_breakpoint_without_location): Add the breakpoint to the
5685 breakpoint chain here.
5686 (init_raw_breakpoint): Adjust comments.
5687 (set_raw_breakpoint): Add the breakpoint to the breakpoint chain
5688 here.
5689 (init_catchpoint): Don't set the catchpoint's breakpoint number
5690 here.
5691 (install_catchpoint): New function.
5692 (create_fork_vfork_event_catchpoint)
5693 (create_syscall_event_catchpoint, catch_exec_command_1): Adjust to
5694 use install_catchpoint.
5695
d2f3fc74
PA
56962011-06-22 Pedro Alves <pedro@codesourcery.com>
5697
5698 * breakpoint.c (create_catchpoint_without_mention)
5699 (create_catchpoint): Delete.
5700
b4d90040
PA
57012011-06-22 Pedro Alves <pedro@codesourcery.com>
5702
5703 * breakpoint.h (struct breakpoint): Delete field `exec_pathname'.
5704 * breakpoint.c (init_raw_breakpoint_without_location): Remove
5705 reference to exec_pathname.
5706 (struct exec_catchpoint): New type.
5707 (dtor_catch_exec): New function.
5708 (insert_catch_exec, print_it_catch_exec, print_one_catch_exec): Adjust.
5709 (catch_exec_breakpoint_ops): Install dtor_catch_syscall.
5710 (catch_exec_command_1): Adjust to use init_catchpoint.
5711 (delete_breakpoint): Remove reference to exec_pathname.
5712
be5c67c1
PA
57132011-06-22 Pedro Alves <pedro@codesourcery.com>
5714
5715 * breakpoint.h (struct breakpoint_ops): New field `dtor'.
5716 (struct breakpoint): Delete field `syscalls_to_be_caught'.
5717 * breakpoint.c (init_raw_breakpoint_without_location): Remove
5718 reference to syscalls_to_be_caught.
5719 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops): Install a
5720 NULL `dtor'.
5721 (struct syscall_catchpoint): New type.
5722 (dtor_catch_syscall): New function.
5723 (insert_catch_syscall, remove_catch_syscall)
5724 (breakpoint_hit_catch_syscall, print_one_catch_syscall)
5725 (print_recreate_catch_syscall): Adjust.
5726 (catch_syscall_breakpoint_ops): Install dtor_catch_syscall.
5727 (catch_exec_breakpoint_ops): Install a NULL `dtor'.
5728 (create_syscall_event_catchpoint): Adjust to use init_catchpoint.
5729 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
5730 (masked_watchpoint_breakpoint_ops)
5731 (gnu_v3_exception_catchpoint_ops): Install a NULL `dtor'.
5732 (delete_breakpoint): Call the `dtor' breakpoint_ops method, if
5733 there is one. Remove references to syscalls_to_be_caught.
5734 (catching_syscall_number): Adjust.
5735 * ada-lang.c (catch_exception_breakpoint_ops)
5736 (catch_exception_unhandled_breakpoint_ops)
5737 (catch_assert_breakpoint_ops): Install a NULL `dtor'.
5738
e29a4733
PA
57392011-06-22 Pedro Alves <pedro@codesourcery.com>
5740
5741 * breakpoint.h (struct breakpoint): Delete forked_inferior_pid
5742 field.
5743 * breakpoint.c (init_raw_breakpoint_without_location): Remove
5744 reference to forked_inferior_pid.
5745 (struct fork_catchpoint): New type.
5746 (breakpoint_hit_catch_fork, print_it_catch_fork)
5747 (print_one_catch_fork, breakpoint_hit_catch_vfork)
5748 (print_it_catch_vfork, print_one_catch_vfork): Adjust.
5749 (create_fork_vfork_event_catchpoint): Adjust to use
5750 init_catchpoint.
5751
346774a9
PA
57522011-06-22 Pedro Alves <pedro@codesourcery.com>
5753
5754 * breakpoint.c (add_to_breakpoint_chain)
5755 (init_raw_breakpoint_without_location): New functions, factored
5756 out from ...
5757 (set_raw_breakpoint_without_location): ... this one.
5758 (init_raw_breakpoint): New function, factored out from
5759 set_raw_breakpoint and adjusted to use
5760 init_raw_breakpoint_without_location.
5761 (set_raw_breakpoint): Adjust.
5762 (init_catchpoint): New function, factored out from
5763 create_catchpoint_without_mention and adjusted to use
5764 init_raw_breakpoint.
5765 (create_catchpoint_without_mention): Adjust.
5766
c38c4bc5
TT
57672011-06-22 Tom Tromey <tromey@redhat.com>
5768
5769 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_convert>: Treat type
5770 argument of 0 specially.
5771
b138ce37
YQ
57722011-06-22 Yao Qi <yao@codesourcery.com>
5773
5774 * infrun.c (handle_inferior_event): Remove write-only local variable
5775 `sw_single_step_trap_p'.
5776
03de6823
TT
57772011-06-20 Tom Tromey <tromey@redhat.com>
5778
5779 * symtab.c (lookup_language_this): End loop if block is NULL.
5780
66a17cb6
TT
57812011-06-17 Tom Tromey <tromey@redhat.com>
5782
5783 * valops.c (value_of_this): Use lookup_language_this.
5784 * symtab.h (lookup_language_this): Declare.
5785 * symtab.c (lookup_language_this): New function.
5786 (lookup_symbol_aux): Use lookup_language_this.
5787 * ax-gdb.c (gen_expr) <OP_THIS>: Use lookup_language_this.
5788
7518bff5
TT
57892011-06-17 Tom Tromey <tromey@redhat.com>
5790
5791 * value.h (value_of_this): Update.
5792 (value_of_local): Remove.
5793 * valops.c (value_of_this): Rename from value_of_local. Change
5794 parameters.
5795 * p-exp.y (exp): Update.
5796 (variable): Likewise.
5797 * eval.c (evaluate_subexp_standard) <OP_THIS>: Use value_of_this.
5798
aee28ec6
TT
57992011-06-17 Tom Tromey <tromey@redhat.com>
5800
5801 * valops.c (value_of_local): Complain if NAME is NULL.
5802 * std-operator.def (OP_OBJC_SELF): Remove.
5803 * parse.c (operator_length_standard) <OP_OBJC_SELF>: Remove.
5804 * objc-exp.y (name_not_typename): Use OP_THIS.
5805 * expprint.c (print_subexp_standard) <OP_THIS>: Print language's
5806 name for "this".
5807 <OP_OBJC_SELF>: Remove.
5808 * eval.c (evaluate_subexp_standard) <OP_OBJC_SELF>: Remove.
5809
eed8f803
TG
58102011-06-16 Tristan Gingold <gingold@adacore.com>
5811
5812 * python/py-events.h (gdb_py_events): Make it extern.
5813 * python/py-evtregistry.c (gdb_py_events): Declare.
5814
864ac8a7
HZ
58152011-06-16 Hui Zhu <teawater@gmail.com>
5816
5817 * remote.c (remote_trace_set_readonly_regions): Add check for
5818 remote_protocol_packets[PACKET_qXfer_traceframe_info].support before
5819 output warning.
5820
ef7e8358
UW
58212011-06-15 Ulrich Weigand <ulrich.weigand@linaro.org>
5822
5823 * arm-linux-tdep.c: Include "auxv.h".
5824 (AT_HWCAP): Define.
5825 (ARM_LINUX_SIZEOF_VFP): Define.
5826 (arm_linux_supply_vfp): New function.
5827 (arm_linux_collect_vfp): Likewise.
5828 (arm_linux_regset_from_core_section): Handle .reg-arm-vfp sections.
5829 (arm_linux_fpa_regset_sections): New variable.
5830 (arm_linux_vfp_regset_sections): Likewise.
5831 (arm_linux_core_read_description): New function.
5832 (arm_linux_init_abi): Install arm_linux_core_read_description and
5833 arm_linux_fpa_regset_sections or arm_linux_vfp_regset_sections as
5834 appropriate for the architecture.
5835 * arm-tdep.h (struct gdbarch_tdep): Add member "vfpregset".
5836 (tdesc_arm_with_m): Declare.
5837 (tdesc_arm_with_iwmmxt): Likewise.
5838 (tdesc_arm_with_vfpv2): Likewise.
5839 (tdesc_arm_with_vfpv3): Likewise.
5840 (tdesc_arm_with_neon): Likewise.
5841 * arm-linux-nat.c: Move features/*.c includes ...
5842 * arm-tdep.c: ... here.
5843 * arm-linux-nat.c (arm_linux_read_description): Move initializing
5844 target description data structures ...
5845 * arm-tdep.c (_initialize_arm_tdep): ... here.
5846 * arm-linux-nat.c (HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3,
5847 HWCAP_VFPv3D16): Move definitions ...
5848 * arm-linux-tdep.h: ... here.
5849
c2fa21f1
HZ
58502011-06-15 Hui Zhu <teawater@gmail.com>
5851
5852 * remote.c (remote_trace_set_readonly_regions): Add a check for
5853 target_buf_size.
5854
dd707e8e
TT
58552011-06-14 Tom Tromey <tromey@redhat.com>
5856
5857 * coffread.c (coffread_objfile): Rename from current_objfile.
5858 * dbxread.c (dbxread_objfile): Rename from current_objfile.
5859 * mdebugread.c (mdebugread_objfile): Rename from current_objfile.
5860
86cc0029
TT
58612011-06-14 Tom Tromey <tromey@redhat.com>
5862
5863 * jv-lang.c (jv_type_objfile_data_key, dynamics_objfile)
5864 (class_symtab): Remove.
5865 (jv_dynamics_progspace_key): New global.
5866 (jv_per_objfile_free): Reset program space data. Update assert.
5867 Don't clear globals.
5868 (get_dynamics_objfile): Use and set program space data.
5869 (get_java_class_symtab): Use get_dynamics_objfile.
5870 (add_class_symbol): Likewise.
5871 (java_link_class_type): Likewise.
5872 (java_object_type, jv_clear_object_type, set_java_object_type):
5873 Remove.
5874 (get_java_object_type): Update. Don't cache result.
5875 (is_object_type): Don't call set_java_object_type.
5876 (_initialize_java_language): Don't set jv_type_objfile_data_key;
5877 initialize jv_dynamics_progspace_key.
5878
91a81f69
TT
58792011-06-14 Tom Tromey <tromey@redhat.com>
5880
5881 * symtab.h (current_objfile): Don't declare.
5882 * objfiles.h (current_objfile): Don't declare.
5883 * objfiles.c (current_objfile): Remove.
5884 * mdebugread.c (current_objfile): New file-scope global.
5885 * dbxread.c (current_objfile): New file-scope global.
5886 * coffread.c (current_objfile): New file-scope global.
5887
dc7eb48e
PA
58882011-06-13 Pedro Alves <pedro@codesourcery.com>
5889
5890 * top.h (line): Rename to ...
5891 (saved_command_line): ... this.
5892 (linesize): Rename to ...
5893 (saved_command_line_size): ... this.
5894 * top.c (line): Rename to ...
5895 (saved_command_line): ... this.
5896 (linesize): Rename to ...
5897 (saved_command_line_size): ... this.
5898 (dont_repeat, command_line_input, dont_repeat_command): Adjust.
5899 * event-top.c (command_line_handler): Adjust.
5900 * main.c (captured_main): Adjust.
5901
0d6c2135
MK
59022011-06-12 Mark Kettenis <kettenis@gnu.org>
5903
5904 * i386-tdep.c (i386_epilogue_frame_cache): Simplify code. Call
5905 get_frame_func instead of get_frame_pc to determine the code
5906 address used to construct the frame ID.
5907 (i386_epilogue_frame_unwind_stop_reason): Fix coding style.
5908 (i386_epilogue_frame_this_id): Likewise.
5909 (i386_epilogue_frame_prev_register): New function.
5910 (i386_epilogue_frame_unwind): Use i386_epilogue_frame_prev_register.
5911 (i386_stack_tramp_frame_sniffer): Fix coding style.
5912 (i386_stack_tramp_frame_unwind): Use i386_epilogue_frame_prev_register.
5913 (i386_gdbarch_init): Fix comments.
5914
8bbdd3f4
MK
59152011-06-12 Mark Kettenis <kettenis@gnu.org>
5916
5917 * i386-tdep.c (i386_match_insn_block): Use length of the proper
5918 instruction when walking back through the instruction stream.
5919
533a737e
JK
59202011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
5921
5922 * symtab.c (output_partial_symbol_filename): Exchange the filename and
5923 fullname parameters order.
5924
44b13c5a
JK
59252011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
5926
5927 Code cleanup.
5928 * dwarf2read.c (dw2_map_symbol_filenames): Use symbol_filename_ftype
5929 for fun.
5930 * psymtab.c (map_symbol_filenames_psymtab)
5931 (map_partial_symbol_filenames): Likewise.
5932 * psymtab.h: Include symfile.h.
5933 (map_partial_symbol_filenames): Use symbol_filename_ftype for fun.
5934 * symfile.h (symbol_filename_ftype): New.
5935 (struct quick_symbol_functions): Use symbol_filename_ftype for fun of
5936 map_symbol_filenames, clarify more the naming in comment.
5937
0b5574da
DE
59382011-06-07 Doug Evans <dje@google.com>
5939
5940 * cc-with-index.sh: Fix typos in comment.
b8e9bd6c 5941 Look for ../../gdb, for fullname.exp.
0b5574da 5942
5be4dfca
JK
59432011-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
5944 Pedro Alves <pedro@codesourcery.com>
5945
5946 * cli/cli-cmds.c (shell_escape): Use waitpid.
5947 * rs6000-nat.c (exec_one_dummy_insn): Likewise.
5948
316a8b21
TG
59492011-06-07 Tristan Gingold <gingold@adacore.com>
5950
5951 * xcoffread.c (dwarf2_xcoff_names): New variable.
5952 (aix_process_linenos): Add a guard.
5953 (xcoff_symfile_finish): Free dwarf2.
5954 (xcoff_initial_scan): Add dwarf2 support.
5955
3dd5b83d
PA
59562011-06-06 Pedro Alves <pedro@codesourcery.com>
5957
5958 * infcall.c (run_inferior_call): Don't mask async. Instead force
5959 a synchronous wait, if the target can async.
5960
5961 * target.h (struct target_ops): Delete to_async_mask.
5962 (target_async_mask): Delete.
5963 * target.c (update_current_target): Delete references to to_async_mask.
5964 * linux-nat.c (linux_nat_async_mask_value): Delete.
5965 (linux_nat_is_async_p, linux_nat_can_async_p): Remove references
5966 to linux_nat_async_mask_value.
5967 (linux_nat_async_mask): Delete.
5968 (linux_nat_async, linux_nat_close): Remove references to
5969 linux_nat_async_mask_value.
5970 * record.c (record_async_mask_value): Delete.
5971 (record_async): Remove references to record_async_mask_value.
5972 (record_async_mask): Delete.
5973 (record_can_async_p, record_is_async_p): Remove references to
5974 record_async_mask_value.
5975 (init_record_ops, init_record_core_ops): Remove references to
5976 record_async_mask.
5977 * remote.c (remote_async_mask_value): Delete.
5978 (init_remote_ops): Remove reference to remote_async_mask.
5979 (remote_can_async_p, remote_is_async_p): Remove references to
5980 remote_async_mask_value.
5981 (remote_async): Remove references to remote_async_mask_value.
5982 (remote_async_mask): Delete.
5983
5984 * infrun.c (fetch_inferior_event): Don't claim registers changed
5985 if the current thread is already not executing.
5986
64b9b334
JB
59872011-06-03 Joel Brobecker <brobecker@adacore.com> (obvious fix)
5988
5989 From Stephen Kitt <steve@sk2.org>
5990 * breakpoint.c, breakpoint.h, cli/cli-dump.c, dwarf2expr.c,
5991 gdbarch.c, gdbarch.sh, remote.c: Various spelling fixes.
5992
325663dc
JB
59932011-06-03 Joel Brobecker <brobecker@adacore.com>
5994
5995 * dwarf2expr.c (execute_stack_op) [DW_OP_deref]: Handle
5996 the case where ADDR_SIZE is different from TYPE_LENGTH (type).
5997
8cf64490
TT
59982011-06-03 Tom Tromey <tromey@redhat.com>
5999
6000 * python/py-inferior.c (python_inferior_exit): Use inferior's exit
6001 code fields.
6002 * python/py-exitedevent.c (create_exited_event_object): Change
6003 type of 'exit_code'. Optionally add exit_code attribute.
6004 (emit_exited_event): Change type of 'exit_code'.
6005 * python/py-event.h (emit_exited_event): Update.
6006 * mi/mi-interp.c (mi_inferior_exit): Print exit code.
6007 * infrun.c (handle_inferior_event): Set exit code fields on
6008 inferior.
6009 * inferior.h (struct inferior) <has_exit_code, exit_code>: New
6010 fields.
6011 * inferior.c (exit_inferior_1): Initialize new fields.
6012
8ddd9a20
TT
60132011-06-03 Tom Tromey <tromey@redhat.com>
6014
6015 * dwarf2expr.c (get_signed_type): New function.
6016 (execute_stack_op) <DW_OP_shra>: Always perform a signed shift.
6017
8dfd1e6d
KS
60182011-06-02 Keith Seitz <keiths@redhat.com>
6019
6020 * objc-lang.c (find_methods): Increment objfile_csym earlier.
6021
65fdb766
PA
60222011-06-02 Pedro Alves <pedro@codesourcery.com>
6023
6024 * top.h (simplified_command_loop): Delete declaration.
6025
f4b8c29b
MF
60262011-06-01 Mike Frysinger <vapier@gentoo.org>
6027
6028 * remote-sim.c (gdbsim_open): Add the strlen of " --sysroot=" and
6029 gdb_sysroot to the "len" variable. Append both to "arg_buf".
6030
1706c199
YQ
60312011-06-01 Yao Qi <yao@codesourcery.com>
6032
6033 * objfiles.h (obj_section_addr): Update reference to objfile from
6034 `abfd' to `obfd'.
6035 (obj_section_endaddr): Likewise.
6036
d19cd713 60372011-06-01 Daniel Jacobowitz <drow@false.org>
8d07004d
DJ
6038
6039 * MAINTAINERS: Update my email address and affiliation. Also
6040 update Ian Lance Taylor's affiliation. Use UTF-8 for ludo@gnu.org.
6041
e8eb7bc5
KS
60422010-05-31 Keith Seitz <keiths@redhat.com>
6043
6044 PR c++/12750
6045 * linespec.c (get_search_block): New function.
6046 (find_methods): Add FILE_SYMTATB parameter and use it and
6047 get_search_block to pass an appropriate block to
6048 lookup_symbol_in_namespace.
6049 (decode_line_1): Record if *ARGPTR is single-quote enclosed.
6050 Check if *ARGPTR starts with a filename first.
6051 If it does, call locate_first_half again to locate the next
6052 "first half" of the linespec.
6053 Pass FILE_SYMTATB to decode_objc and decode_compound.
6054 Swallow the trailing single-quote if IS_SQUOTE_ENCLOSED.
6055 (locate_first_half): Stop on the first colon seen.
6056 (decode_compound): Add FILE_SYMTAB parameter.
6057 Pass FILE_SYMTAB to lookup_prefix_sym and find_method.
6058 (lookup_prefix_sym): Add FILE_SYMTAB parameter and use
6059 get_search_block with lookup_symbol.
6060 (find_method): Add FILE_SYMTAB parameter and pass it to
6061 find_methods.
6062 (decode_objc): Use get_search_block.
6063
2b1dbab0
KS
60642010-05-31 Keith Seitz <keiths@redhat.com>
6065
6066 PR symtab/12704
6067 * cp-namespace.c (ANONYMOUS_NAMESPACE_LEN): Remove.
6068 (cp_scan_for_anonymous_namespaces): Use CP_ANONYMOUS_NAMESPACE_STR
6069 and CP_ANONYMOUS_NAMESPACE_LEN.
6070 (cp_is_anonymous): Likewise.
6071 * cp-support.h (CP_ANONYMOUS_NAMESPACE_STR): Define.
6072 (CP_ANONYMOUS_NAMESPACE_LEN): Define.
6073 * dwarf2read.c (namespace_name): Likewise.
6074 (fixup_partial_die): Likewise.
6075 * linespec.c (decode_compound): If CP_ANONYMOUS_NAMESPACE_STR is
6076 seen in the input, keep it.
6077
6d549500
PA
60782011-05-30 Pedro Alves <pedro@codesourcery.com>
6079
6080 * target.h (enum inferior_event_type): Delete INF_QUIT_REQ.
6081 * inf-loop.h (inferior_event_handler_wrapper): Delete.
6082 * inf-loop.c (inferior_event_handler_wrapper): Delete.
6083 (inferior_event_handler): Don't handle INF_QUIT_REQ.
6084 * remote.c (_initialize_remote): Register
6085 async_remote_interrupt_twice directly as
6086 sigint_remote_twice_token event.
6087
395bff70
PA
60882011-05-30 Pedro Alves <pedro@codesourcery.com>
6089
6090 * target.h (enum inferior_event_type): Delete INF_ERROR.
6091 * inf-loop.c (inferior_event_handler): Don't handle INF_ERROR.
6092
97224164
PA
60932011-05-30 Pedro Alves <pedro@codesourcery.com>
6094
6095 * interps.c (interp_set): Don't cancel continuations.
6096
07e78767
JK
60972011-05-30 Jan Kratochvil <jan.kratochvil@redhat.com>
6098
6099 * linux-nat.c (linux_lwp_is_zombie): Use xsnprintf.
6100
fa4cd53f
PA
61012011-05-30 Pedro Alves <pedro@codesourcery.com>
6102
6103 * continuations.h (continuation_ftype): Add `err' parameter.
6104 Document parameters.
6105 (do_all_continuations, do_all_continuations_thread)
6106 (do_all_intermediate_continuations)
6107 (do_all_intermediate_continuations_thread)
6108 (do_all_inferior_continuations): Add `err' parameter.
6109 * continuations.c (do_my_continuations_1, do_my_continuations)
6110 (do_all_inferior_continuations, do_all_continuations_ptid)
6111 (do_all_continuations_thread_callback)
6112 (do_all_continuations_thread, do_all_continuations)
6113 (do_all_intermediate_continuations_thread_callback)
6114 (do_all_intermediate_continuations_thread)
6115 (do_all_intermediate_continuations): Add `err' parameter, and pass
6116 it down all the way to the continuations proper.
6117 * inf-loop.c (inferior_event_handler): If fetching an inferior
6118 event throws an error, don't pop the target, and still call the
6119 continuations, but with `err' set. Adjust all other continuation
6120 calls.
6121 * breakpoint.c (until_break_command_continuation): Add `err'
6122 parameter.
6123 * infcmd.c (step_1_continuation): Add `err' parameter. Don't
6124 issue another step if `err' is set.
6125 (struct until_next_continuation_args): New.
6126 (until_next_continuation): Add `err' parameter. Adjust.
6127 (until_next_command): Adjust.
6128 (struct finish_command_continuation_args): Add `thread' field.
6129 (finish_command_continuation): Add `err' parameter. Handle it.
6130 (finish_forward): Adjust.
6131 (attach_command_continuation): Add `err' parameter. Handle it.
6132 * infrun.c (infrun_thread_stop_requested_callback): Adjust to
6133 cancel the continuations.
6134 * interps.c (interp_set): Adjust to cancel the continuations.
6135 * thread.c (clear_thread_inferior_resources): Adjust to cancel the
6136 continuations rather than discarding.
6137 (free_thread): Don't clear thread inferior resources here.
6138 (delete_thread_1): Do it here instead. And do it before removing
6139 the thread from the threads list. Tag the thread as exited before
6140 clearing thread inferior resources.
6141
c2949be0
JB
61422011-05-30 Joel Brobecker <brobecker@adacore.com>
6143
6144 * infcall.c (call_function_by_hand): Rephrase error message.
6145
619cebe8
PA
61462011-05-27 Pedro Alves <pedro@codesourcery.com>
6147
6148 * defs.h (struct thread_info, struct inferior): Delete forward
6149 declarations.
6150 * breakpoint.h (struct thread_info): New forward declaration.
6151 * observer.sh (struct inferior): New forward declaration.
6152 * python/python-internal.h (struct inferior): New forward
6153 declaration.
6154
be34f849
PA
61552011-05-27 Pedro Alves <pedro@codesourcery.com>
6156
6157 * defs.h (struct continuation, continuation_ftype)
6158 (continuation_free_arg_ftype, add_continuation)
6159 (do_all_continuations, do_all_continuations_thread)
6160 (discard_all_continuations, discard_all_continuations_thread)
6161 (add_intermediate_continuation, do_all_intermediate_continuations)
6162 (do_all_intermediate_continuations_thread)
6163 (discard_all_intermediate_continuations)
6164 (discard_all_intermediate_continuations_thread)
6165 (add_inferior_continuation, do_all_inferior_continuations)
6166 (discard_all_inferior_continuations): Move to ...
6167 * continuations.h: ... this new file.
6168 * breakpoint.c, continuations.c, event-top.c, inf-loop.c,
6169 infcmd.c, inferior.c, infrun.c, interps.c: Include
6170 continuations.h.
6171
432b4d03
JK
61722011-05-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6173 Doug Evans <dje@google.com>
6174
6175 Fix PR 10970, PR 12702.
6176 * linux-nat.c (linux_lwp_is_zombie): New function.
6177 (wait_lwp): Initialize status. New variable prev_mask. Block signals.
6178 Check for linux_lwp_is_zombie. Use WNOHANG and sigsuspend.
6179
b0f260d6
PA
61802011-05-27 Pedro Alves <pedro@codesourcery.com>
6181
6182 * defs.h (continuation_ftype, continuation_free_arg_ftype): New
6183 typedefs.
6184 (add_continuation, add_intermediate_continuation)
6185 (add_inferior_continuation): Use them.
6186 * continuations.c (struct continuation): Use them.
6187 (make_continuation_ftype): Delete.
6188 (make_continuation, add_inferior_continuation, add_continuation)
6189 (add_intermediate_continuation): Use continuation_ftype and
6190 continuation_free_arg_ftype. Rename parameters to shorter names.
6191
af1e9a32
PA
61922011-05-27 Pedro Alves <pedro@codesourcery.com>
6193
6194 * continuations.c (make_continuation): Make it return void.
6195 (do_my_continuations): Rename to ...
6196 (do_my_continuations_1): ... this. Remove old_chain parameter and
6197 adjust.
6198 (do_my_continuations): New.
6199 (discard_my_continuations): Rename to ...
6200 (discard_my_continuations_1): ... this. Remove old_chain
6201 parameter and adjust.
6202 (discard_my_continuations): New.
6203 (add_inferior_continuation): Simplify.
6204 (do_all_inferior_continuations): Reimplement on top
6205 do_my_continuations.
6206 (discard_all_inferior_continuations): Simplify.
6207 (add_continuation): Simplify.
6208 (do_all_continuations_ptid): Simplify.
6209 (discard_all_continuations_thread_callback): Simplify.
6210 (add_intermediate_continuation): Simplify.
6211 (discard_all_intermediate_continuations_thread_callback):
6212 Simplify.
6213
50c0c017
PA
62142011-05-27 Pedro Alves <pedro@codesourcery.com>
6215
6216 * utils.c (struct continuation, add_continuation)
6217 (add_inferior_continuation)
6218 (do_all_inferior_continuations, discard_all_inferior_continuations)
6219 (restore_thread_cleanup, do_all_continuations_ptid)
6220 (do_all_continuations_thread_callback)
6221 (do_all_continuations_thread, do_all_continuations)
6222 (discard_all_continuations_thread_callback)
6223 (discard_all_continuations_thread, discard_all_continuations)
6224 (add_intermediate_continuation)
6225 (do_all_intermediate_continuations_thread_callback)
6226 (do_all_intermediate_continuations_thread)
6227 (do_all_intermediate_continuations)
6228 (discard_all_intermediate_continuations_thread_callback)
6229 (discard_all_intermediate_continuations_thread)
6230 (discard_all_intermediate_continuations): Move to ...
6231 * continuations.c: ... this new file, and adjust to no longer
6232 implement continuations on top of cleanups.
6233 * Makefile.in (SFILES): Add continuations.c.
6234 (COMMON_OBS): Add continuations.o.
6235
d8b34453
PA
62362011-05-26 Pedro Alves <pedro@codesourcery.com>
6237
6238 * inferior.h (enum exec_direction_kind): Delete EXEC_ERROR.
6239 * infrun.c (show_exec_direction_func): Don't handle EXEC_ERROR.
6240 Internal error on invalid values.
6241 * reverse.c: Don't handle EXEC_ERROR.
6242 * mi/mi-main.c: Don't handle EXEC_ERROR.
6243
32231432
PA
62442011-05-26 Pedro Alves <pedro@codesourcery.com>
6245
6246 * record.c: Include event-loop.h, inf-loop.h.
6247 (record_beneath_to_async): New global.
6248 (tmp_to_async): New global.
6249 (record_async_inferior_event_token): New global.
6250 (record_open_1): Don't error out if async is enabled.
6251 (record_open): Handle to_async. Create an async event source in
6252 the event loop.
6253 (record_close): Delete the async event source.
6254 (record_resumed): New global.
6255 (record_execution_dir): New global.
6256 (record_resume, record_core_resume): Set them. Register the
6257 target on the event loop.
6258 (record_wait): Rename to ...
6259 (record_wait_1): ... this. Add more debug output. Handle
6260 TARGET_WNOHANG, and the target beneath returning
6261 TARGET_WAITKIND_IGNORE.
6262 (record_wait): Reimplement on top of record_wait_1.
6263 (record_async_mask_value): New global.
6264 (record_async, record_async_mask, record_can_async_p)
6265 (record_is_async_p, record_execution_direction): New functions.
6266 (init_record_ops, init_record_core_ops): Install new methods.
6267 * infrun.c (fetch_inferior_event): Temporarily switch the global
6268 execution direction to the direction the target was going.
6269 (execution_direction): Change type to int.
6270 * target.c (default_execution_direction): New function.
6271 (update_current_target): Inherit and de_fault
6272 to_execution_direction.
6273 * target.h (struct target_ops) <to_execution_direction>: New
6274 field.
6275 (target_execution_direction): New macro.
6276 * inferior.h (execution_direction): Change type to int.
6277
949dc678
PA
62782011-05-26 Pedro Alves <pedro@codesourcery.com>
6279
6280 * infcall.c (call_function_by_hand): Don't allow calling functions
6281 in reverse execution mode.
6282
c13bd2b5
PA
62832011-05-26 Pedro Alves <pedro@codesourcery.com>
6284
6285 * infcmd.c (finish_command): Allow async finish in reverse.
6286
6938fd34
YQ
62872011-05-26 Yao Qi <yao@codesourcery.com>
6288
6289 * gdb_thread_db.h: Delete. Move to ...
6290 * common/gdb_thread_db.h: ... here.
6291
9da8c2a0
PA
62922011-05-26 Pedro Alves <pedro@codesourcery.com>
6293
6294 * infcmd.c (finish_backward): Set a step-resume breakpoint at the
6295 function's entry point instead of a manually managed momentary
6296 breakpoint, and only ever issue one proceed call.
6297 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_STEP_RESUME>: If
6298 doing a reverse-finish, switch to stepi mode, to do another step.
6299 (insert_step_resume_breakpoint_at_sal): Make public.
6300 (normal_stop): No need to save function value return registers if
6301 going reverse.
6302 * inferior.h (insert_step_resume_breakpoint_at_sal): Declare.
6303
2c03e5be
PA
63042011-05-26 Pedro Alves <pedro@codesourcery.com>
6305
6306 * breakpoint.h (enum bptype) <bp_hp_step_resume>: New.
6307 (enum bpstat_what_main_action): Move BPSTAT_WHAT_STEP_RESUME
6308 before BPSTAT_WHAT_STOP_SILENT. Add BPSTAT_WHAT_HP_STEP_RESUME
6309 at the end.
6310 * breakpoint.c (update_breakpoints_after_exec): Also delete hp
6311 step-resume breakpoints.
6312 (print_it_typical): Handle bp_hp_step_resume.
6313 (bpstat_what): Ditto.
6314 (bptype_string): Ditto.
6315 (print_one_breakpoint_location): Ditto.
6316 (allocate_bp_location): Ditto.
6317 (mention): Ditto.
6318 (breakpoint_re_set_one): Ditto.
6319 * infrun.c (handle_inferior_event): Adjust. Split
6320 BPSTAT_WHAT_STEP_RESUME handling in BPSTAT_WHAT_STEP_RESUME and
6321 BPSTAT_WHAT_HP_STEP_RESUME.
6322 (insert_step_resume_breakpoint_at_sal): Rename to ...
6323 (insert_step_resume_breakpoint_at_sal_1): ... this. Add bptype
6324 parameter. Handle it.
6325 (insert_step_resume_breakpoint_at_sal): Reimplement on top of
6326 insert_step_resume_breakpoint_at_sal_1.
6327 (insert_step_resume_breakpoint_at_frame): Rename to ...
6328 (insert_hp_step_resume_breakpoint_at_frame): ... this. Adjust to
6329 set a high-priority step-resume breakpoint.
6330 (insert_step_resume_breakpoint_at_frame): Adjust comment.
6331 (insert_step_resume_breakpoint_at_caller): Ditto.
6332
51be5b68
PA
63332011-05-26 Pedro Alves <pedro@codesourcery.com>
6334
6335 * breakpoint.c (iterate_over_related_breakpoints): New.
6336 (do_map_delete_breakpoint): New.
6337 (delete_command): Pass do_map_delete_breakpoint to
6338 map_breakpoint_numbers.
6339 (do_disable_breakpoint): New.
6340 (do_map_disable_breakpoint): Iterate over the breakpoint's related
6341 breakpoints.
6342 (do_enable_breakpoint): Rename to ...
6343 (enable_breakpoint_disp): ... this.
6344 (enable_breakpoint): Adjust.
6345 (do_enable_breakpoint): New.
6346 (enable_once_breakpoint): Delete.
6347 (do_map_enable_breakpoint): New.
6348 (do_map_enable_once_breakpoint): New.
6349 (enable_once_command, enable_delete_command)
6350 (delete_trace_command): Iterate over the breakpoint's related
6351 breakpoints.
6352
4a1be8d2
PA
63532011-05-26 Pedro Alves <pedro@codesourcery.com>
6354
6355 * alpha-tdep.c (alpha_cannot_fetch_register): Don't return true
6356 for ALPHA_ZERO_REGNUM.
6357 (alpha_supply_int_regs): Explicitly supply zero as the value for
6358 ALPHA_ZERO_REGNUM in the register cache.
6359 * alpha-nat.c (fetch_osf_core_registers): Ditto.
6360
59d70315
YQ
63612011-05-26 Yao Qi <yao@codesourcery.com>
6362
6363 * gdb/gdb_thread_db.h: Remove HAVE_UINTPTR_T.
6364
251d32d9
TG
63652011-05-26 Tristan Gingold <gingold@adacore.com>
6366
6367 * symfile.h (struct dwarf2_section_names): New type.
6368 (struct dwarf2_debug_sections): New type.
6369 (dwarf2_has_info): Add parameter.
6370 * dwarf2read.c (dwarf2_elf_names): New variable.
6371 (INFO_SECTION, ABBREV_SECTION, LINE_SECTION, LOC_SECTION)
6372 (MACINFO_SECTION, STR_SECTION, RANGES_SECTION, TYPES_SECTION)
6373 (FRAME_SECTION, EH_FRAME_SECTION, GDB_INDEX_SECTION): Remove.
6374 (dwarf2_has_info): Add names parameter. Pass names
6375 to dwarf2_locate_sections.
6376 (section_is_p): Rewrite using the names parameter.
6377 (dwarf2_locate_sections): Use section names from the names parameter.
6378 * coffread.c (coff_symfile_read): Adjust call to dwarf2_has_info.
6379 * elfread.c (read_psyms): Ditto.
6380 * machoread.c (macho_symfile_read): Ditto.
6381
652c71b4
AS
63822011-05-25 Andreas Schwab <schwab@redhat.com>
6383
6384 PR gdb/8677
6385 * event-loop.c (handle_file_event): Don't handle POLLHUP as error.
6386
f17170e5
KS
63872011-05-24 Keith Seitz <keiths@redhat.com>
6388
6389 PR breakpoint/12803
6390 * linespec.c (keep_name_info): Add handling for "volatile" keyword.
6391 (decode_compound): Unconditionally call keep_name_info.
6392
cdac0397
PA
63932011-05-24 Pedro Alves <pedro@codesourcery.com>
6394
6395 * breakpoint.c (watchpoint_check): If the watchpoint went out of
6396 scope, clear its command list.
6397 (map_breakpoint_numbers): Don't walk the related breakpoints list
6398 of each breakpoint.
6399
91d4fe3f
TT
64002011-05-24 Tom Tromey <tromey@redhat.com>
6401
6402 * MAINTAINERS: Move Jim Blandy to past maintainers.
6403
3017a003
TG
64042011-05-24 Tristan Gingold <gingold@adacore.com>
6405
6406 * symfile.h (enum dwarf2_section_enum): New type.
6407 (dwarf2_get_section_info): New prototype.
6408 * dwarf2read.c (dwarf2_get_section_info): Replace parameter
6409 section_name by sect. Use a switch to select the info.
6410 * dwarf2-frame.c (warf2_get_section_info): Remove prototype.
6411 (dwarf2_build_frame_info): Adjust calls to dwarf2_get_section_info.
6412
c91c8c16
PA
64132011-05-24 Pedro Alves <pedro@codesourcery.com>
6414
6415 * solib-svr4.c (svr4_solib_create_inferior_hook): Skip setting
6416 shared library event breakpoint if there's no execution.
6417
77bc418a
TJB
64182011-05-24 Thiago Jung Bauermann <bauerman@br.ibm.com>
6419
6420 * breakpont.c (remove_hw_watchpoints): Remove unused function.
6421 * breakpoint.h remove_hw_watchpoints(): Remove prototype.
6422
c50491a7
TT
64232011-05-23 Tom Tromey <tromey@redhat.com>
6424
6425 * c-lang.c (evaluate_subexp_c): Use expect_type if it is not
6426 NULL.
6427
6d64e6d4
DE
64282011-05-23 Doug Evans <dje@google.com>
6429
6430 * python/lib/gdb/printing.py (register_pretty_printer): Add missing
6431 entry for RuntimeError to doc string.
6432
2067c8d4
JG
64332011-05-23 Jerome Guitton <guitton@adacore.com>
6434
6435 * sparc-tdep.c (sparc_skip_stack_check): Recognize a new instruction
6436 sequence for probing loops.
6437
b136cd05
PA
64382011-05-23 Pedro Alves <pedro@codesourcery.com>
6439
6440 * infrun.c (user_visible_resume_ptid): Fix typos in describing
6441 comment.
6442
22e74ef9
MK
64432011-05-21 Mark Kettenis <kettenis@gnu.org>
6444
6445 * sparc-nat.c (sparc_fetch_inferior_registers): Explicitly supply
6446 zero as the value for %g0 in the register cache.
6447 * sparc-tdep.c (sparc32_supply_gregset): Likewise.
6448 * sparc64-tdep.c (sparc64_supply_gregset): Likewise.
6449
842951eb
PA
64502011-05-20 Pedro Alves <pedro@codesourcery.com>
6451
6452 * infrun.c (proceed): Set previous_inferior_ptid here.
6453 (init_wait_for_inferior): Initialize previous_inferior_ptid from
6454 inferior_ptid, not null_ptid.
6455 (wait_for_inferior): Don't initialize previous_inferior_ptid here.
6456 (fetch_inferior_event): Nor here.
6457
46cf51e6
PA
64582011-05-20 Pedro Alves <pedro@codesourcery.com>
6459
6460 * inf-loop.c (inferior_event_handler): Only output a message if
6461 verbose.
6462
29ef4c46
LM
64632011-05-20 Luis Machado <lgustavo@codesourcery.com>
6464
6465 * MAINTAINERS: Update my e-mail address.
6466
f148b27e
PA
64672011-05-20 Pedro Alves <pedro@codesourcery.com>
6468
6469 * infrun.c (proceed): Switch the inferior event loop to
6470 INF_EXEC_COMPLETE if the target refused to resume from a
6471 vfork/fork.
6472
09cee04b
PA
64732011-05-20 Pedro Alves <pedro@codesourcery.com>
6474
6475 * infcmd.c: Include "inf-loop.h".
6476 (step_once): When stepping into an inline subroutine, pretend the
6477 target has run. If the target can async, switch the inferior
6478 event loop to INF_EXEC_COMPLETE.
6479 * inferior.h (user_visible_resume_ptid): Declare.
6480 * infrun.c (user_visible_resume_ptid): New function, factored out
6481 from `resume'.
6482 (resume): Use it.
6483 * mi/mi-main.c (mi_execute_async_cli_command): Remove assertion
6484 that the current thread is running. Merge async and sync
6485 branches.
6486
751b8ce1
PA
64872011-05-20 Pedro Alves <pedro@codesourcery.com>
6488
6489 * infcmd.c (step_1): Simplify synchronous case.
6490
e93a69ed
PA
64912011-05-20 Pedro Alves <pedro@codesourcery.com>
6492
6493 * tracepoint.c: Include exceptions.h.
6494 (TFILE_PID): Move higher in file.
6495 (tfile_open): Delay pushing the tfile target until we're assured
6496 the tfile header is present in the file. Wrap reading the initial
6497 newline-terminated lines in TRY_CATCH. Pop the target if the
6498 initial setup failed. Add the tfile's thread immediately
6499 aftwards, before any non-essential setup. Don't skip
6500 post_create_inferior if there are no traceframes present in the
6501 file.
6502 (tfile_close): Remove redundant check for null before xfree call.
6503 (tfile_thread_alive): New function.
6504 (init_tfile_ops): Register it as to_thread_alive callback.
6505
6823e2b1
PA
65062011-05-20 Pedro Alves <pedro@codesourcery.com>
6507
6508 * tracepoint.c (tfile_open): Delete #if 0'd code.
6509
b3c8eb43
JK
65102011-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
6511
6512 Fix -readnow for -gdwarf-4 unused type units.
6513 * dwarf2read.c (struct signatured_type): Remove the field offset.
6514 (create_signatured_type_table_from_index): Remove its initialization.
6515 (create_debug_types_hash_table): Likewise. Initialize per_cu.offset
6516 instead. Add a complaint call.
6517 (process_psymtab_comp_unit): Change assignment to gdb_assert.
6518 (process_type_comp_unit, lookup_die_type, dump_die_shallow)
6519 (lookup_signatured_type_at_offset, read_signatured_type)
6520 (write_one_signatured_type): Update the field for per_cu.
6521
310afc76
TT
65222011-05-19 Tom Tromey <tromey@redhat.com>
6523
6524 * python/py-inferior.c (python_inferior_exit): Use
6525 target_gdbarch.
6526 (python_on_resume): Likewise.
6527
cf6c5ffb
TT
65282011-05-19 Matt Rice <ratmice@gmail.com>
6529
6530 * breakpoint.c (bpstat_do_actions_1): Call prevent_dont_repeat.
6531
fb80a3c5
HZ
65322011-05-19 Hui Zhu <teawater@gmail.com>
6533
6534 * tracepoint.c (tfile_trace_find): Return directly when num is -1.
6535
3672b1be
HZ
65362011-05-19 Hui Zhu <teawater@gmail.com>
6537
6538 * xcoffread.c (read_xcoff_symtab): Initialize fcn_aux_saved.
6539
ff355380
TT
65402011-05-18 Tom Tromey <tromey@redhat.com>
6541
6542 * dwarf2read.c (dwarf2_add_field): Constify.
6543 * value.c (value_static_field): Constify.
6544 * gdbtypes.h (struct main_type) <field.field_location.physname>:
6545 Now const.
6546 * ax-gdb.c (gen_static_field): Constify
6547
ed731959
JK
65482011-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6549
6550 * linux-nat.c (kill_callback): Use SIGKILL first.
6551
967cff16
JB
65522011-05-18 Joel Brobecker <brobecker@adacore.com>
6553
6554 * ada-lang.c (print_it_exception): Avoid use of sprintf.
6555
1d06ead6
TT
65562011-05-18 Tom Tromey <tromey@redhat.com>
6557
6558 * value.c (value_fn_field): Constify.
6559 * symtab.c (gdb_mangle_name): Constify.
6560 * stabsread.c (update_method_name_from_physname): Make 'physname'
6561 argument const.
6562 * p-typeprint.c (pascal_type_print_method_args): Make arguments
6563 const. Use explicit fputc_filtered loop.
6564 (pascal_type_print_base): Constify.
6565 * p-lang.h (pascal_type_print_method_args): Update.
6566 * linespec.c (add_matching_methods): Constify.
6567 (add_constructors): Likewise.
6568 * jv-typeprint.c (java_type_print_base): Constify.
6569 * gdbtypes.h (struct cplus_struct_type)
6570 <fn_fieldlist.fn_field.physname>: Now const.
6571 * dwarf2read.c (compute_delayed_physnames): Constify.
6572 (dwarf2_add_member_fn): Likewise.
6573 * c-typeprint.c (c_type_print_base): Constify. Use cleanups.
6574
0d9a9a5f
PA
65752011-05-18 Pedro Alves <pedro@codesourcery.com>
6576
6577 * infrun.c (resume): Mention which is the current thread, and its
6578 current PC in debug output.
6579 (prepare_to_proceed): Mention the thread switching in debug
6580 output.
6581
05386e9e
TT
65822011-05-18 Tom Tromey <tromey@redhat.com>
6583
6584 * linux-thread-db.c (try_thread_db_load_from_pdir_1): Fix absolute
6585 path check. Use xmalloc and cleanups.
6586 (try_thread_db_load_from_dir): Use xmalloc and cleanups.
6587
ee86786c
TT
65882011-05-17 Tom Tromey <tromey@redhat.com>
6589
6590 * cp-valprint.c (cp_print_value_fields): Catch errors from
6591 value_static_field.
6592
9ff3b74f
TT
65932011-05-17 Tom Tromey <tromey@redhat.com>
6594
6595 * dwarf2read.c (dwarf2_get_die_type): Call
6596 get_die_type_at_offset.
6597 * dwarf2expr.c (dwarf_get_base_type): Handle NULL return from
6598 get_base_type function.
6599
cd3da28e
PA
66002011-05-17 Tomas Martinec <fyzmat@gmail.com>
6601
6602 * infrun.c (handle_inferior_event) <handling deferred step>: Clear
6603 trap_expected.
6604
fd20d931
DE
66052011-05-16 Doug Evans <dje@google.com>
6606
6607 * python/py-auto-load.c (source_section_scripts): Mention objfile
6608 name in warning.
6609
75fc9810
DE
66102011-05-15 Doug Evans <dje@google.com>
6611
290351b8
DE
6612 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New function.
6613 (try_thread_db_load_from_pdir): Call it. If unable to find
6614 libthread_db in directory of libpthread, see if we're looking at
6615 the separate-debug-info copy.
6616
75fc9810
DE
6617 * python/py-autoload.c (print_script): Print "Missing" instead of
6618 "No" for missing scripts.
6619 (info_auto_load_scripts): Tweak "Loaded" column to fit "Missing".
6620
9f7bc587
DE
66212011-05-13 Doug Evans <dje@google.com>
6622
6623 * ui-file.c (stdio_file_write_async_safe): Add comment.
6624
093cee7d
HZ
66252011-05-14 Hui Zhu <teawater@gmail.com>
6626
6627 * ui-file.c (stdio_file_write_async_safe): Add empty check for build.
6628
dbaefcf7
DE
66292011-05-13 Doug Evans <dje@google.com>
6630
98a5dd13
DE
6631 Support $pdir and $sdir in libthread-db-search-path.
6632 * NEWS: Mention $sdir,$pdir.
6633 * gdb_thread_db.h (LIBTHREAD_DB_SEARCH_PATH): Add $sdir:$pdir.
6634 * linux-thread-db.c (try_thread_db_load_from_pdir): New function.
6635 (try_thread_db_load_from_sdir): New function.
6636 (try_thread_db_load_from_dir): New function.
6637 (thread_db_load_search): Handle $pdir, $sdir. Remove trying of
6638 system directories if search of libthread-db-search-path fails,
6639 that is now done via $sdir.
6640 (has_libpthread): New function.
6641 (thread_db_load): Remove search for libthread_db in directory of
6642 libpthread, that is now done via $pdir.
6643
dbaefcf7
DE
6644 * NEWS: Mention "info auto-load-scripts".
6645 * python/py-auto-load.c (struct auto_load_pspace_info): New member
6646 script_not_found_warning_printed.
6647 (init_loaded_scripts_info): Renamed from create_loaded_scripts_hash,
6648 all callers updated. Initialize script_not_found_warning_printed.
6649 (get_auto_load_pspace_data_for_loading): New function.
6650 (maybe_add_script): New function.
6651 (source_section_scripts): Simplify. Only print one warning regardless
6652 of the number of auto-load scripts not found.
6653 (clear_section_scripts): Clear script_not_found_warning_printed.
6654 (auto_load_objfile_script): Record script in hash table.
6655 (count_matching_scripts): New function.
6656 (maybe_print_script): Renamed from maybe_print_section_script, all
6657 callers updated. Rewrite to use ui_out_*.
6658 (info_auto_load_scripts): Renamed from
6659 maintenance_print_section_scripts, all callers updated.
6660 (gdbpy_initialize_auto_load): "maintenance print section-scripts"
6661 renamed as "info auto-load-scripts".
6662
9930639c
TT
66632011-05-13 Tom Tromey <tromey@redhat.com>
6664
6665 * dwarf2expr.c (read_uleb128): Cast intermediate result.
6666 (read_sleb128): Likewise.
6667
06826322
TT
66682011-05-13 Tom Tromey <tromey@redhat.com>
6669
6670 * dwarf2loc.c (disassemble_dwarf_expression): Fix instruction
6671 offset display.
6672
01124a23
DE
66732011-05-13 Doug Evans <dje@google.com>
6674
6675 * linux-nat.c (debug_linux_nat_async): Delete.
6676 Replace all references to use debug_linux_nat instead.
6677 (show_debug_linux_nat_async): Delete.
6678 (sigchld_handler): Call ui_file_write_async_safe instead of
6679 fprintf_unfiltered.
6680 (_initialize_linux_nat): Remove `set debug lin-lwp-async'.
6681 * ui-file.c (struct ui_file): New member to_write_async_safe.
6682 (null_file_write_async_safe): New function.
6683 (ui_file_write_async_safe): New function.
6684 (set_ui_file_write_async_safe): New function.
6685 (ui_file_new): Initialize to_write_async_safe.
6686 (stdio_file_write_async_safe): New function.
6687 (struct stdio_file): New member fd.
6688 (stdio_file_new): Initialize to_write_async_safe, fd.
bbfac39e
DE
6689 (stdio_file_read, stdio_file_isatty): New stdio->fd instead of calling
6690 fileno.
01124a23
DE
6691 * ui-file.h (ui_file_write_async_safe_ftype): New typedef.
6692 (set_ui_file_write_async_safe): Declare.
6693 (ui_file_write_async_safe): Declare.
6694
72fc29ff
TT
66952011-05-13 Tom Tromey <tromey@redhat.com>
6696
6697 * utils.c (do_value_free): New function.
6698 (make_cleanup_value_free): Likewise.
6699 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle value
6700 freeing correctly.
6701 (dwarf2_loc_desc_needs_frame): Call
6702 make_cleanup_value_free_to_mark.
6703 * dwarf2expr.h (struct dwarf_expr_context) <mark>: Remove field.
6704 * dwarf2expr.c (free_dwarf_expr_context): Don't call
6705 value_free_to_mark.
6706 (new_dwarf_expr_context): Don't call value_mark.
6707 * dwarf2-frame.c (execute_stack_op): Call
6708 make_cleanup_value_free_to_mark.
6709 * defs.h (make_cleanup_value_free): Declare.
6710
028d0ed5
TJB
67112011-05-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
6712
6713 * mi/mi-main.c (mi_cmd_execute): Use cleanup from
6714 prepare_execute_command.
6715 * top.c (prepare_execute_command): Return cleanup.
6716 (execute_command): Use cleanup from prepare_execute_command.
6717 * top.h (prepare_execute_command): Change prototype to return
6718 cleanup.
6719 * defs.h (struct value): Add opaque declaration.
6720 (make_cleanup_value_free_to_mark): Add prototype.
6721 * utils.c (do_value_free_to_mark): New function.
6722 (make_cleanup_value_free_to_mark): Likewise.
6723
b087e0ed
TT
67242011-05-12 Tom Tromey <tromey@redhat.com>
6725
6726 * dwarf2expr.c (execute_stack_op) <DW_OP_shr>: Unconditionally
6727 cast left-hand-side to unsigned.
6728
8a9b8146
TT
67292011-05-12 Tom Tromey <tromey@redhat.com>
6730
6731 PR gdb/12617:
6732 * value.h (value_from_contents): Declare.
6733 * value.c (value_from_contents): New function.
6734 * dwarf2read.c (dwarf_stack_op_name): Add new values.
6735 (dwarf2_get_die_type): New function.
6736 * dwarf2loc.c (dwarf_expr_get_base_type): New function.
6737 (allocate_piece_closure): Acquire reference to values.
6738 (read_pieced_value): Update for value-based expressions.
6739 (write_pieced_value): Likewise.
6740 (free_pieced_value_closure): Call value_free as needed.
6741 (dwarf2_evaluate_loc_desc_full): Set get_base_type field.
6742 Update for value-based expressions.
6743 * dwarf2loc.h (dwarf2_get_die_type): Declare.
6744 * dwarf2expr.h (struct dwarf_stack_value) <value>: Change type.
6745 <get_base_type>: New field.
6746 (struct dwarf_expr_piece) <v.value>: Change type.
6747 <v.regno>: New field.
6748 (struct dwarf_expr_context) <mark>: New field.
6749 (dwarf_expr_piece, dwarf_expr_fetch): Update.
6750 (dwarf_expr_pop, dwarf_expr_push): Remove.
6751 (dwarf_expr_push_address): Declare.
6752 * dwarf2expr.c (dwarf_arch_cookie): New global.
6753 (struct dwarf_gdbarch_types): New.
6754 (dwarf_gdbarch_types_init, dwarf_expr_address_type): New
6755 functions.
6756 (dwarf_expr_push): Change type of 'value' argument. Update. Now
6757 static.
6758 (dwarf_expr_push_address): New function.
6759 (dwarf_expr_pop): Now static.
6760 (dwarf_expr_fetch): Change return type.
6761 (dwarf_require_integral): New function.
6762 (dwarf_expr_fetch): Simplify.
6763 (add_piece): Update.
6764 (base_types_equal_p, dwarf_get_base_type, get_unsigned_type): New
6765 functions.
6766 (execute_stack_op) <sign_ext>: Remove.
6767 Use values for DWARF stack.
6768 <DW_OP_GNU_const_type, DW_OP_GNU_deref_type,
6769 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
6770 New cases.
6771 (_initialize_dwarf2expr): New function.
6772 (add_piece): Update.
6773 (new_dwarf_expr_context): Set new field.
6774 (free_dwarf_expr_context): Call value_free_to_mark.
6775 * dwarf2-frame.c (no_base_type): New function.
6776 (execute_stack_op): Set get_base_type field. Update.
6777
e8d28ef4
TT
67782011-05-12 Tom Tromey <tromey@redhat.com>
6779
6780 * dwarf2read.c (read_common_block): Fix formatting.
6781
d248b706
KY
67822011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
6783
6784 * breakpoint.c (disable_breakpoint): Disable all locations
6785 associated with a tracepoint on target if a trace experiment is
6786 running.
6787 (disable_command): Disable a specific tracepoint location on target if
6788 a trace experiment is running.
6789 (do_enable_breakpoint): Enable all locations associated with a
6790 tracepoint on target if a trace experiment is running.
6791 (enable_command) Enable a specific tracepoint location on target if a
6792 trace experiment is running.
6793 * target.c (update_current_target): Add INHERIT and de_fault clauses for
6794 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
6795 to_disable_tracepoint.
6796 * target.h: Add declaration of struct bp_location.
6797 (struct target_ops): Add new functions
6798 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
6799 to_disable_tracepoint to target operations.
6800 (target_supports_enable_disable_tracepoint): New macro.
6801 (target_enable_tracepoint): New macro.
6802 (target_disable_tracepoint): New macro.
6803 * remote.c (struct remote_state): Add new field.
6804 (remote_enable_disable_tracepoint_feature): New.
6805 (remote_protocol_features): Add new entry.
6806 (remote_supports_enable_disable_tracepoint): New.
6807 (remote_enable_tracepoint): New.
6808 (remote_disable_tracepoint): New.
6809 (init_remote_ops): Add remote_enable_tracepoint,
6810 remote_disable_tracepoint and remote_supports_enable_disable_tracepoint
6811 to remote operations.
6812 * tracepoint.c (start_tracing): Allow tracing to start without any
6813 tracepoints enabled with just a warning if they can be re-enabled
6814 later.
6815 * NEWS: Add news item for the new behaviour of the enable and disable
6816 GDB commands when applied to tracepoints.
6817 Add news items for the new remote packets QTEnable and QTDisable.
6818
cc88a640
JK
68192011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6820
6821 * config.in: Regenerate.
6822 * configure: Regenerate.
6823 * configure.ac <--with-system-readline> (for readline_echoing_p):
6824 Remove the test.
6825 * tui/tui-io.c (tui_old_readline_echoing_p): Rename to ...
6826 (tui_old_rl_echoing_p): ... here.
6827 (tui_setup_io): Rename extern declaration readline_echoing_p to
6828 _rl_echoing_p. Adjust assignments for the both renames.
6829
1f84b619
TJB
68302011-05-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
6831
6832 * symtab.c (lookup_symtab): Run cleanup before returning.
6833
74ac6d43
TT
68342011-05-11 Tom Tromey <tromey@redhat.com>
6835
6836 * dwarf2read.c (handle_data_member_location): New function.
6837 (dwarf2_add_field): Use it.
6838 (read_common_block): Likewise.
6839
5488dafb
JK
68402011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6841
6842 Make addrs->SECTINDEX always defined.
6843 * symfile.c (relative_addr_info_to_section_offsets): Check for
6844 SECTINDEX -1, not for zero ADDR.
6845 (addrs_section_compar): Remove checking for invalid SECTINDEX.
6846 (addr_info_make_relative): Set SECTINDEX to -1 for unmatched entries.
6847 * symfile.h (struct section_addr_info) <sectindex>: Update the comment
6848 on its validity.
6849
84e578fb
DE
68502011-05-10 Doug Evans <dje@google.com>
6851
2471d008
DE
6852 * linux-thread-db.c: Whitespace cleanup.
6853 (try_thread_db_load_1): Fix comment.
6854
84e578fb
DE
6855 * linux-thread-db.c (set_libthread_db_search_path): New function.
6856 (_initialize_thread_db): Add setter for libthread-db-search-path.
6857
673c2bbe
DE
68582011-05-09 Doug Evans <dje@google.com>
6859
478aac75
DE
6860 * NEWS: Mention --with-iconv-bin.
6861 * configure.ac: New option --with-iconv-bin.
6862 * configure: Regenerate.
6863 * config.in: Regenerate.
6864 * defs.h (relocate_gdb_directory): Declare.
6865 * main.c (relocate_gdb_directory): Renamed from relocate_directory,
6866 removed progname parameter, and exported. All callers updated.
6867 * charset.c (find_charset_names): Use --with-iconv-bin if specified.
6868
673c2bbe
DE
6869 * linux-nat.c (lin_lwp_attach_lwp): For !WIPSTOPPED case,
6870 adding missing call to restore_child_signals_mask.
6871
e4c8541f
PA
68722011-05-09 Pedro Alves <pedro@codesourcery.com>
6873
6874 * inferior.h (wait_for_inferior): Remove `thread_exec_as_sigtrap'
6875 parameter.
6876 * infrun.c (proceed, start_remote): Adjust.
6877 (wait_for_inferior): Remove `thread_exec_as_sigtrap' parameter,
6878 and adjust to not handle it.
6879 * solib-irix.c (irix_solib_create_inferior_hook): Adjust.
6880 * solib-osf.c (osf_solib_create_inferior_hook): Adjust.
6881 * solib-sunos.c (sunos_solib_create_inferior_hook): Adjust.
6882 * solib-svr4.c (svr4_solib_create_inferior_hook): Adjust.
6883 * windows-nat.c (do_initial_windows_stuff): Adjust.
6884 * infcmd.c (attach_command): Adjust.
6885 (notice_new_inferior): Adjust.
6886
a536c6d7
UW
68872011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
6888
6889 * ppc-linux-tdep.c (ppu2spu_prev_register): Handle pseudo registers.
6890 (ppu2spu_unwind_register): Mark pseudo registers unavailable.
6891 * spu-tdep.c (op_selb): Use correct value.
6892
7845b013
UW
68932011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
6894
6895 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Add NULL
6896 "parent" parameter to symbol_file_add_from_bfd call.
6897
9c06b0b4
TJB
68982011-05-06 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
6899 Thiago Jung Bauermann <bauerman@br.ibm.com>
6900
6901 Implement support for PowerPC BookE masked watchpoints.
6902 * NEWS: Mention masked watchpoint support. Create "Changed commands"
6903 section.
6904 * breakpoint.h (struct breakpoint_ops) <works_in_software_mode>: New
6905 method. Initialize to NULL in all existing breakpoint_ops instances.
6906 (struct breakpoint) <hw_wp_mask>: New field.
6907 * breakpoint.c (is_masked_watchpoint): Add prototype.
6908 (update_watchpoint): Don't set b->val for masked watchpoints. Call
6909 breakpoint's breakpoint_ops.works_in_software_mode if available.
6910 (watchpoints_triggered): Handle the case of a hardware masked
6911 watchpoint trigger.
6912 (watchpoint_check): Likewise.
6913 (works_in_software_mode_watchpoint): New function.
6914 (insert_masked_watchpoint, remove_masked_watchpoint)
6915 (resources_needed_masked_watchpoint)
6916 (works_in_software_mode_masked_watchpoint, print_it_masked_watchpoint)
6917 (print_one_detail_masked_watchpoint, print_mention_masked_watchpoint)
6918 (print_recreate_masked_watchpoint, is_masked_watchpoint): New
6919 functions.
6920 (masked_watchpoint_breakpoint_ops): New structure.
6921 (watch_command_1): Check for the existence of the `mask' parameter.
6922 Set b->ops according to the type of hardware watchpoint being created.
6923 * ppc-linux-nat.c (ppc_linux_insert_mask_watchpoint)
6924 (ppc_linux_remove_mask_watchpoint)
6925 (ppc_linux_masked_watch_num_registers): New functions.
6926 (_initialize_ppc_linux_nat): Initialize to_insert_mask_watchpoint,
6927 to_remove_mask_watchpoint and to_masked_watch_num_registers.
6928 * target.c (update_current_target): Mention to_insert_mask_watchpoint,
6929 to_remove_mask_watchpoint, and to_masked_watch_num_registers.
6930 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
6931 (target_masked_watch_num_registers): New functions.
6932 * target.h (struct target_ops) <to_insert_mask_watchpoint>,
6933 <to_remove_mask_watchpoint>, <to_masked_watch_num_registers>: New
6934 methods.
6935 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
6936 (target_masked_watch_num_registers): Add prototypes.
6937
8be455d7
JK
69382011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6939
6940 PR 12573
6941 * dwarf2read.c (struct dwarf2_cu): New field has_loclist.
6942 (producer_is_gcc_ge_4_0): New function.
6943 (process_full_comp_unit): Set also symtab->locations_valid. Move the
6944 symtab->language code.
6945 (var_decode_location): Set cu->has_loclist.
6946 * symtab.c (skip_prologue_sal): New variables saved_pc, force_skip and
6947 skip. Intialize force_skip from locations_valid. Move the prologue
6948 skipping code into two passes.
6949 * symtab.h (struct symtab): Make the primary field a bitfield. New
6950 field locations_valid.
6951
d8228535
JK
69522011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6953
6954 * c-exp.y (qualified_name): Call destructor_name_p with $1.type.
6955 (classify_inner_name): Call cp_lookup_nested_type with
6956 yylval.tsym.type.
6957 * cp-namespace.c (cp_lookup_nested_type): New variable
6958 saved_parent_type. Call CHECK_TYPEDEF for parent_type. Call
6959 type_name_no_tag_or_error with saved_parent_type.
6960 * dwarf2read.c (load_partial_dies): Read in any children of
6961 DW_TAG_typedef with complaint in such case.
6962 * gdbtypes.c (type_name_no_tag_or_error): New function.
6963 * gdbtypes.h (type_name_no_tag_or_error): New prototype.
6964 * valops.c (destructor_name_p): New comment for parameter type. Remove
6965 type const. Make dname and cp const. Call type_name_no_tag_or_error.
6966 * value.h (destructor_name_p): Remove type const.
6967
1976171a
JK
69682011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6969
6970 * symtab.c (compare_symbol_name): New function.
6971 (completion_list_add_name, expand_partial_symbol_name): Call it,
6972 remove the variable ncmp.
6973 (default_make_symbol_completion_list_break_on): Reduce SYM_TEXT_LEN,
6974 gdb_assert it.
6975
a9634178
TJB
69762011-05-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
6977
6978 Demote to sw watchpoint only in update_watchpoint.
6979 * breakpoint.c (update_watchpoint): Change between software and
6980 hardware watchpoint for all kinds of watchpoints, not just
6981 read/write ones. Determine b->exact value here instead of
6982 in watch_command_1. Error out if there are not enough resources
6983 for a read or access hardware watchpoint.
6984 (watch_command_1): Remove logic of checking whether there are
6985 enough resources available, since update_watchpoint will do that
6986 work now. Don't set b->exact here. Catch exceptions thrown by
6987 update_watchpoint and delete the watchpoint.
6988 (can_use_hardware_watchpoint): Remove exact_watchpoints argument.
6989 Use target_exact_watchpoints instead.
6990 (delete_breakpoint): Notify observers only if deleted watchpoint
6991 has a breakpoint number assigned to it.
6992
4c67c798
JJ
69932011-05-05 Janis Johnson <janisjo@codesourcery.com>
6994
6995 * MAINTAINERS: Add myself as a write-after-approval maintainer.
6996
a3fcb948
JG
69972011-05-05 Jerome Guitton <guitton@adacore.com>
6998
6999 * i386-tdep.c (i386_in_stack_tramp_p, i386_stack_tramp_frame_sniffer):
7000 New functions.
7001 (i386_stack_tramp_frame_unwind): New static global.
7002 (i386_match_pattern): New function, extracted from i386_match_insn.
7003 (i386_match_insn): Use i386_match_pattern.
7004 (i386_match_insn_block): New function.
7005 (i386_tramp_chain_in_reg_insns)
7006 (i386_tramp_chain_on_stack_insns): New static variables.
7007 (i386_gdbarch_init): Add i386_stack_tramp_frame_unwind to list
7008 of unwinders.
7009
4d393d60
JM
70102011-05-04 Joseph Myers <joseph@codesourcery.com>
7011
7012 * configure.host (xscale*): Don't handle target.
7013 * configure.tgt (thumb*-*-* | strongarm*-*-* | xscale-*-*): Don't
7014 handle targets.
7015
f70bd40b
YQ
70162011-05-04 Yao Qi <yao@codesourcery.com>
7017
7018 * gdb_wait.h: remove WAITTYPE and WCOREDUMP.
7019
dd3295ee
JB
70202011-05-03 Joel Brobecker <brobecker@adacore.com>
7021
7022 Revert:
7023 | 2011-03-07 Michael Snyder <msnyder@vmware.com>
7024 | * elfread.c (elf_symtab_read): Stop memory leak.
7025
90375a0e
PM
70262011-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
7027
7028 * nto-tdep.c (nto_target): Replace deprecated call to
7029 cygwin_conv_to_posix_path functions by cygwin_conv_path calls.
7030
d07205c2
JK
70312011-05-03 Jan Kratochvil <jan.kratochvil@redhat.com>
7032
7033 Fix false GCC warning.
7034 * breakpoint.c (do_enable_breakpoint): Initialize orig_enable_state.
7035
1e718ff1
TJB
70362011-05-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
7037
7038 * breakpoint.c (update_watchpoint): Move code to change
7039 the enable state of breakpoint from here ...
7040 (do_enable_breakpoint): ... to here.
7041
35bef4fd
TT
70422011-04-26 Andrew Gontarek <andrewg@cray.com>
7043
78290264
PP
7044 * valprint.c (val_print_array_elements): Fixed poor performance
7045 of printing very large arrays with repeat_count_threshold set
7046 to unlimited. New comment.
35bef4fd 7047
38a714bb
TT
70482011-04-29 Tom Tromey <tromey@redhat.com>
7049
7050 * mi/mi-parse.c (mi_parse): Remove incorrect sizeof.
7051 (mi_parse): Likewise.
7052 * breakpoint.c (break_range_command): Use sizeof char*, not
7053 char**.
7054 (create_breakpoint): Likewise.
7055 (parse_breakpoint_sals): Likewise.
7056
eb73ad13
PA
70572011-04-29 Pedro Alves <pedro@codesourcery.com>
7058
7059 * linux-nat.c (linux_child_remove_fork_catchpoint)
7060 (linux_child_remove_vfork_catchpoint)
7061 (linux_child_remove_exec_catchpoint): New functions.
7062 (linux_target_install_ops): Install them.
7063
d65aec65
PM
70642011-04-29 Phil Muldoon <pmuldoon@redhat.com>
7065
7066 PR mi/12531
7067
7068 * varobj.c (install_default_visualizer): Do not install a
7069 visualizer if the varobj is CPLUS_FAKE_CHILD.
7070 (construct_visualizer): Likewise.
7071
165195f4
JK
70722011-04-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7073
7074 * symtab.c (expand_partial_symbol_name): New variable NCMP. Support
7075 case insensitive comparison.
7076
30852783
UW
70772011-04-28 Ulrich Weigand <ulrich.weigand@linaro.org>
7078
7079 * infrun.c (proceed): Revert previous change.
7080 (resume): Instead, handle the case of signal delivery while stepping
7081 off a breakpoint location here, and only if software single-stepping
7082 is used. Handle nested signals.
7083
7ff120b4
YQ
70842011-04-28 Yao Qi <yao@codesourcery.com>
7085
7086 * arm-tdep.c (copy_unmodified): Rename to ...
7087 (arm_copy_unmodified): .. this. New.
7088 (copy_preload): Move common part to ...
7089 (install_preload): .. this. New.
7090 (arm_copy_preload): New.
7091 (copy_preload_reg): Move common part to ...
7092 (install_preload_reg): ... this. New.
7093 (arm_copy_preload_reg): New.
7094 (copy_b_bl_blx): Move common part to ...
7095 (install_b_bl_blx): .. this. New.
7096 (arm_copy_b_bl_blx): New.
7097 (copy_bx_blx_reg): Move common part to ...
7098 (install_bx_blx_reg): ... this. New.
7099 (arm_copy_bx_blx_reg): New.
7100 (copy_alu_reg): Move common part to ...
7101 (install_alu_reg): ... this. New.
7102 (arm_copy_alu_reg): New.
7103 (copy_alu_shifted_reg): Move common part to ...
7104 (install_alu_shifted_reg): ... this. New.
7105 (copy_ldr_str_ldrb_strb): Move common part to ...
7106 (install_ldr_str_ldrb_strb): ... this. New.
7107 (arm_copy_ldr_str_ldrb_strb): New.
7108 (copy_copro_load_store): Move some common part to ...
7109 (install_copy_copro_load_store): ... this. New.
7110 (arm_copy_copro_load_store): New.
7111 (copy_svc): Delete.
7112 (arm_copy_svc): Renamed from copy_svc.
7113 (copy_undef): Delete.
7114 (arm_copy_undef): Renamed from copy_undef.
7115 (decode_ext_reg_ld_st): Delete.
7116 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
7117 (decode_svc_copro): Delete.
7118 (arm_decode_svc_copro): Renamed from decode_svc_copro.
7119 (copy_copro_load_store, copy_alu_imm): update callers.
7120 (copy_extra_ld_st, copy_block_xfer): Likewise.
7121 (decode_misc_memhint_neon, decode_unconditional): Likewise.
7122 (decode_miscellaneous, decode_dp_misc): Likewise.
7123 (decode_ld_st_word_ubyte, decode_media): Likewise.
7124 (decode_b_bl_ldmstm, decode_ext_reg_ld_st): Likewise.
7125 (decode_svc_copro, decode_misc_memhint_neon): Likewise.
7126 (decode_unconditional, decode_miscellaneous): Likewise.
7127 (decode_media, decode_b_bl_ldmstm): Likewise.
7128 (arm_process_displaced_insn): Likewise..
7129 (decode_misc_memhint_neon): Delete.
7130 (arm_decode_misc_memhint_neon): Renamed from decode_misc_memhint_neon.
7131 (decode_miscellaneous): Delete.
7132 (arm_decode_miscellaneous): Renamed from decode_miscellaneous.
7133 (decode_dp_misc): Delete.
7134 (arm_decode_dp_misc): Renamed from decode_dp_misc.
7135 (decode_ld_st_word_ubyte): Delete.
7136 (arm_decode_ld_st_word_ubyte): Renamed from decode_ld_st_word_ubyte.
7137 (decode_media): Delete.
7138 (arm_decode_media): Renamed from decode_media.
7139 (decode_b_bl_ldmstm): Delete.
7140 (arm_decode_b_bl_ldmstm): Renamed from decode_b_bl_ldmstm.
7141 (decode_ext_reg_ld_st): Delete.
7142 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
7143 (decode_unconditional): Delete.
7144 (arm_decode_unconditional): Renamed from decode_unconditional.
7145
559a7a62
JK
71462011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
7147
7148 Case insensitive lookups implementation.
7149 * dwarf2read.c: Include ctype.h.
7150 (struct mapped_index): New field version.
7151 (mapped_index_string_hash): New parameter index_version. New comment
7152 for it. Call tolower appropriately.
7153 (find_slot_in_mapped_hash): New variable cmp, initialize it, use it.
7154 Choose the right index version for mapped_index_string_hash.
7155 (dwarf2_read_index): Support also the index version 5. Initialize the
7156 new struct mapped_index field version.
7157 (hash_strtab_entry): Pass INT_MAX for the new parameter, explain why.
7158 (find_slot): Explain the version needs. Pass INT_MAX for the new
7159 parameter.
7160 (write_psymtabs_to_index): Produce version 5.
7161 * minsyms.c (lookup_minimal_symbol): New variable cmp, initialize it,
7162 use it. New comment for SYMBOL_MATCHES_SEARCH_NAME.
7163 * psymtab.c (lookup_partial_symbol): Find the
7164 SYMBOL_MATCHES_SEARCH_NAME start of the found block of matching
7165 entries.
7166 * symtab.c (lookup_symbol_in_language): Remove the case_sensitive_off
7167 NAME lowercasing.
7168 (search_symbols): Pass REG_ICASE to regcomp for case_sensitive_off.
7169 (completion_list_add_name): New variable ncmp, initialize it, use it.
7170 * symtab.h (SYMBOL_HASH_NEXT): Always call tolower.
7171 * utils.c (strcmp_iw): Support case_sensitive_off.
7172 (strcmp_iw_ordered): Sort in a way compatible with case_sensitive_off.
7173 New function comment part. New variables saved_string1,
7174 saved_string2 and case_pass. Add a proper second pass.
7175
681bf369
JK
71762011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
7177
7178 Replace re_comp/re_exec by regcomp/regexec.
7179 * symtab.c (struct search_symbols_data): New fields preg, preg_p.
7180 (search_symbols_name_matches): Use them, use regexec.
7181 (search_symbols): New variable retval_chain, adjust the use of
7182 old_chain against it. Replace re_comp by regcomp. Use the new struct
7183 search_symbols_data fields, use regexec instead of re_exec.
7184
b11b1f88
JK
71852011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
7186
7187 Format the code for the next patch.
7188 * dwarf2read.c (struct mapped_index): Include delimiting newlines.
7189 * utils.c (strcmp_iw_ordered): Reformat the code for the next patch.
7190 New variables c1 and c2.
7191
2484c66b
UW
71922011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
7193
7194 * infrun.c (proceed): Do not single-step into signal delivery
7195 when stepping off a breakpoint location.
7196 (insert_step_resume_breakpoint_at_frame): Move prototype earlier.
7197 (insert_step_resume_breakpoint_at_caller): Likewise.
7198 (insert_step_resume_breakpoint_at_sal): Likewise.
7199 (insert_longjmp_resume_breakpoint): Likewise.
7200
47423772
YQ
72012011-04-27 Yao Qi <yao@codesourcery.com>
7202
7203 * common/linux-ptrace.h: Remove include <sys/wait.h>.
7204
13bdd2e7
JB
72052011-04-27 Joel Brobecker <brobecker@adacore.com>
7206
7207 * procfs.c (procfs_pass_signals): Fix advance declaration.
7208
2455069d
UW
72092011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
7210
7211 * target.h (struct target_ops): Remove to_notice_signals;
7212 add to_pass_signals.
7213 (target_notice_signals): Remove.
7214 (target_pass_signals): Add prototype.
7215 * target.c (update_current_target): Remove to_notice_signals;
7216 mention to_pass_signals.
7217 (target_pass_signals): New function.
7218 (debug_to_notice_signals): Remove.
7219 (setup_target_debug): Do not install debug_to_notice_signals.
7220
7221 * infrun.c (signal_pass): New global.
7222 (resume): Call target_pass_signals.
7223 (handle_inferior_event): Report all signals while stepping over
7224 non-steppable watchpoint. Reset trap_expected to ensure breakpoints
7225 are re-inserted when stepping over a signal handler.
7226 (signal_cache_update): New function.
7227 (signal_stop_update): Call it.
7228 (signal_print_update): Likewise.
7229 (signal_pass_update): Likewise.
7230 (handle_command): Call signal_cache_update and target_pass_signals
7231 instead of target_notice_signals.
7232 (_initialize_infrun): Initialize signal_pass.
7233
7234 * linux-nat.c (pass_mask): New global.
7235 (linux_nat_pass_signals): New function.
7236 (linux_nat_create_inferior): Report all signals initially.
7237 (linux_nat_attach): Likewise.
7238 (linux_nat_resume): Use pass_mask to decide whether to directly
7239 handle an inferior signal.
7240 (linux_nat_wait_1): Likewise.
7241 (linux_nat_add_target): Install to_pass_signals callback.
7242
7243 * nto-procfs.c (notice_signals): Remove.
7244 (procfs_resume): Do not call notice_signals.
7245 (procfs_notice_signals): Remove.
7246 (procfs_pass_signals): New function.
7247 (init_procfs_ops): Install to_pass_signals callback instead of
7248 to_notice_signals callback.
7249 (_initialize_procfs): Report all signals initially.
7250
7251 * procfs.c (procfs_notice_signals): Remove.
7252 (procfs_pass_signals): New function.
7253 (procfs_target): Install to_pass_signals callback instead of
7254 to_notice_signals callback.
7255 (register_gdb_signals): Remove.
7256 (procfs_debug_inferior): Report all signals initially.
7257 (procfs_init_inferior): Remove redundant register_gdb_signals call.
7258
7259 * remote.c (remote_pass_signals): Add numsigs and pass_signals
7260 parameters; use them instead of calling signal_..._state routines.
7261 (remote_notice_signals): Remove.
7262 (remote_start_remote): Report all signals initially.
7263 (remote_resume): Do not call remote_pass_signals.
7264 (_initialize_remote): Install to_pass_signals callback instead of
7265 to_notice_signals callback.
7266
46c6471b
PA
72672011-04-27 Pedro Alves <pedro@codesourcery.com>
7268
7269 * breakpoint.c (user_settable_breakpoint): Delete.
7270 (user_breakpoint_p): Remove check on user_settable_breakpoint.
7271 (delete_command): Check user_breakpoint_p instead of looking at
7272 the breakpoint's type.
7273 (disable_command): Ditto.
7274 (enable_command): Ditto.
7275 (delete_trace_command): Use user_breakpoint_p instead of looking
7276 at the breakpoint number directly. When checking if there are
7277 user visible tracepoints, in order to know whether to ask the user
7278 for confirmation, check whether the breakpoint is actually a
7279 tracepoint.
7280
f6d90398
VP
72812011-04-27 Vladimir Prus <vladimir@codesourcery.com>
7282
7283 * python/py-breakpoint.c (gdbpy_breakpoint_created): Fix
7284 compilation.
7285
8d3788bd
VP
72862011-04-27 Vladimir Prus <vladimir@codesourcery.com>
7287
7288 MI breakpoint notifications.
7289
f33edef8
PP
7290 * annotate.c (breakpoint_changed): Adjust parameter type.
7291 * breakpoint.c (set_breakpoint_condition): Adjust to change
7292 in breakpoint_modified type.
7293 (breakpoint_set_commands): Likewise.
7294 (do_map_commands_command): Likewise.
7295 (bpstat_check_breakpoint_conditions): Notify that breakpoint has
7296 changed after bumping hit count.
7297 (bpstat_stop_status): Likewise.
7298 (print_one_breakpoint_location): Don't wrap in tuple here.
7299 (print_one_breakpoint): Always print individual locations.
7300 For locations, use unnamed tuple.
7301 (disable_breakpoints_in_unloaded_shlib): Notify that breakpoint
7302 has changed.
7303 (create_catchpoint, create_syscall_event_catchpoint): Call
7304 breakpoint_created obsever.
7305 (mention): Don't call breakpoint_created observer.
7306 (create_breakpoint_sal): Call breakpoint_created observer.
7307 (create_breakpoint, watch_command_1): Likewise.
7308 (create_ada_exception_breakpoint): Likewise.
7309 (delete_breakpoint): Call breakpoint_deleted breakpoint.
7310 (locations_are_equal): New.
7311 (update_breakpoint_locations): If locations were changed, notify.
7312 (set_ignore_count, disable_breakpoint, do_enable_breakpoint):
7313 Call breakpoint_modified observer.
7314
7315 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
7316 (mi_cmd_break_insert): Don't set observers for modify and delete.
7317 * mi/mi-interp.c (mi_suppress_breakpoint_notifications): New.
7318 (mi_breakpoint_created, mi_breakpoint_deleted)
7319 (mi_breakpoint_modified): New.
7320 (mi_interpreter_init): Hook the above.
7321 * mi/mi-main.c (mi_cmd_execute): Disable breakpoint notifications
7322 while -break-* commands are executing.
7323 * mi/mi-main.h (mi_suppress_breakpoint_notifications): New.
7324 * mi/mi-out.c (struct ui_out_data): New field original_buffer.
7325 (mi_redirect): New.
7326 (mi_ui_out_impl): Hook in mi_redirect.
7327 (mi_field_skip): True to the name, skip the field, don't output
7328 a field with an empty value.
7329
7330 * python/py-breakpoint.c (gdbpy_breakpoint_created)
7331 (gdbpy_breakpoint_deleted): Adjust.
7332 * tui/tui-hooks.c (tui_event_create_breakpoint)
7333 (tui_event_delete_breakpoint, tui_event_modify_breakpoint): Adjust.
8d3788bd 7334
a8f42b45
UW
73352011-04-26 Aleksandar Ristovski <aristovski@qnx.com>
7336
7337 * nto-procfs.c (procfs_insert_hw_watchpoint): Fix prototype.
7338 (procfs_remove_hw_watchpoint): Likewise.
7339
57e12211
TT
73402011-04-26 Michael Walle <michael@walle.cc>
7341
7342 * remote.c (remote_start_remote): Ack packet after sending the
7343 interrupt sequence.
7344
af96c192
YQ
73452011-04-26 Yao Qi <yao@codesourcery.com>
7346
f33edef8
PP
7347 * linux-nat.c: Move common macros to ...
7348 Include linux-ptrace.h.
7349 * common/linux-ptrace.h: ... here. New.
af96c192 7350
3e03848b
JK
73512011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
7352
7353 * elfread.c (elf_symfile_read): Protect dwarf2_initialize_objfile by
7354 !objfile_has_partial_symbols. New comment.
7355 * objfiles.c (objfile_has_partial_symbols): Call HAS_SYMBOLS if
7356 SYM_READ_PSYMBOLS is not present. Extend the comment.
7357 * symfile.h (struct sym_fns): Extend the sym_read_psymbols comment.
7358
1ae0d051
JK
73592011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
7360
7361 * defs.h (ENUM_BITFIELD): Remove.
7362
03f2bd59
JK
73632011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
7364 Eli Zaretskii <eliz@gnu.org>
7365
7366 * NEWS: Document the new gdbserver --once option.
7367
4161fbb0
JZ
73682011-04-21 Jie Zhang <jzhang918@gmail.com>
7369
7370 * MAINTAINERS: Update my email address.
7371
bcb28afc
PM
73722011-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
7373
7374 * gdb_wchar.h (USE_INTERMEDIATE_ENCODING_FUNCTION): New macro.
7375 (INTERMEDIATE_ENCODING): Change value to intermediate_encoding
7376 function call if __STDC_ISO_10646__ macro is defined.
7377 (intermediate_encoding): New prototype.
7378 * charset.c (your_gdb_wchar_t_is_bogus): New extern test variable
7379 to generate compile time error for unsupported gdb_wchar_t size.
7380 (ENDIAN_SUFFIX): New macro.
7381 (intermediate_encoding): New function.
7382
7b08b9eb
JK
73832011-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
7384
7385 * ada-lang.c (struct add_partial_datum): Update the comment for
7386 expand_partial_symbol_name.
7387 (ada_add_partial_symbol_completions): Rename to ...
7388 (ada_expand_partial_symbol_name): ... here, change return type, update
7389 function comment, call symbol_completion_match instead of
7390 symbol_completion_add.
7391 (ada_make_symbol_completion_list): Use now expand_partial_symbol_names
7392 and ada_expand_partial_symbol_name.
7393 * dwarf2read.c (dw2_expand_symtabs_matching): Support NULL
7394 FILE_MATCHER.
7395 (dw2_map_symbol_names): Remove.
7396 (dwarf2_gdb_index_functions): Unlist dw2_map_symbol_names.
7397 * psymtab.c (map_symbol_names_psymtab): Remove.
7398 (expand_symtabs_matching_via_partial): Support NULL FILE_MATCHER.
7399 Support KIND == ALL_DOMAIN. Exchange the NAME_MATCHER and KIND check
7400 order.
7401 (psym_functions): Unlist map_symbol_names_psymtab.
7402 (map_partial_symbol_names): Rename to ...
7403 (expand_partial_symbol_names): ... here, change the FUN type, call
7404 expand_symtabs_matching with ALL_DOMAIN and NULL FILE_MATCHER now.
7405 * psymtab.h (map_partial_symbol_names): Rename to ...
7406 (expand_partial_symbol_names): ... here, change the FUN type.
7407 * symfile.h (struct quick_symbol_functions): Update the description of
7408 expand_symtabs_matching. Remove map_symbol_names.
7409 * symtab.c (search_symbols): Add ALL_DOMAIN to the function comment.
7410 (struct add_name_data): Update the comment for
7411 expand_partial_symbol_name.
7412 (add_partial_symbol_name): Rename to ...
7413 (expand_partial_symbol_name): ... here. Replace
7414 completion_list_add_name call by strncmp.
7415 (default_make_symbol_completion_list_break_on): Use now
7416 expand_partial_symbol_names and expand_partial_symbol_name.
7417 * symtab.h (enum search_domain): New element ALL_DOMAIN.
7418
90476074
TT
74192011-04-20 Tom Tromey <tromey@redhat.com>
7420
7421 * dwarf2read.c (save_gdb_index_command): Replace format
7422 documentation with a pointer to the manual.
7423
c21236dc
PA
74242011-04-20 Pedro Alves <pedro@codesourcery.com>
7425
7426 * regcache.c: Include remote.h.
7427 (enum regcache_dump_what) <regcache_dump_remote>: New enum value.
7428 (regcache_dump): Handle regcache_dump_remote.
7429 (maintenance_print_remote_registers): New function.
7430 (_initialize_regcache): Install "maint print remote-registers"
7431 command.
7432 * remote.c (map_regcache_remote_table): New function, factored out
7433 from ...
7434 (init_remote_state): ... here.
7435 (remote_register_number_and_offset): New.
7436 * remote.h (remote_register_number_and_offset): Declare.
7437
b78974c3
PA
74382011-04-20 Pedro Alves <pedro@codesourcery.com>
7439
7440 * regcache.c (get_thread_arch_regcache): If creating a regcache for
7441 null_ptid, assume and allow a NULL address space, instead of
7442 asking the target for the ptid's address space.
7443 * infrun.c (ptid_is_pid): Remove assertion.
7444
7a9dd1b2
TT
74452011-04-19 Tom Tromey <tromey@redhat.com>
7446
7447 * windows-tdep.c (windows_xfer_shared_library):
7448 * windows-nat.c (get_module_name, windows_make_so):
7449 * v850-tdep.c (v850_handle_pushm):
7450 * utils.c (null_cleanup, gdb_realpath):
7451 * ui-out.c (get_next_header):
7452 * tracepoint.c (clear_traceframe_info):
7453 * symtab.c (lookup_symtab):
7454 * serial.h (struct serial_ops):
7455 * mipsread.c (read_alphacoff_dynamic_symtab):
7456 * infcmd.c (print_return_value):
7457 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address):
7458 * f-exp.y (parse_number):
7459 * exceptions.c (catch_exceptions):
7460 * dummy-frame.c (dummy_frame_this_id):
7461 * defs.h (struct cleanup):
7462 * breakpoint.c (disable_breakpoints_in_unloaded_shlib):
7463 * arm-tdep.c (arm_push_dummy_call):
7464 * amd64-tdep.h (amd64_collect_xsave):
7465 * amd64-tdep.c (amd64_collect_xsave):
7466 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache):
7467 * README (typing): Remove duplicate words.
7468 * cli/cli-decode.c (lookup_cmd_composition): Add comma.
7469 * infrun.c (siginfo_value_read): Fix typo.
7470 * solib-frv.c (frv_fdpic_find_global_pointer): Likewise.
7471 * top.c (source_line_number): Add comma.
7472
9941e0c5
MK
74732011-04-19 Marc Khouzam <marc.khouzam@ericsson.com>
7474
7475 * thread.c (any_live_thread_of_process): Prioritize threads
7476 that are not executing.
7477 * gdbthread.h (any_live_thread_of_process): Update comment
7478 as per above change.
7479
ed4b0e6a
AS
74802011-04-19 Andreas Schwab <schwab@linux-m68k.org>
7481
7482 * xcoffread.c (process_xcoff_symbol): Remove useless cast.
7483 (scan_xcoff_symtab): Likewise.
7484
9b13a2db
PM
74852011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
7486
7487 * xcoffread.c (process_xcoff_symbol): ARI fix: Avoid assignment
7488 inside if clause.
7489
1c6e1b0d
PM
74902011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
7491 Pedro Alves <pedro@codesourcery.com>
7492
7493 * xstormy16-tdep.c (xstormy16_push_dummy_call): Add local
7494 variables to simplify code and avoid == operator at end of
7495 line as this is against GNU coding standards.
7496
74de0234
PM
74972011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
7498
7499 * solib-svr4.c (svr4_keep_data_in_core): Rename local variable
7500 lm_name to name_lm to avoid conflict with lm_name function.
7501
b23518f0
PM
75022011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
7503
7504 ARI fixes: Use only lowercase function name for static functions.
7505 * nto-tdep.c (LM_ADDR): Rename to...
7506 (lm_addr): New function name.
7507 (nto_relocate_section_addresses): Adapt to change above.
7508 * solib-sunos.c (LM_ADDR): Rename to...
7509 (lm_addr): New function name.
7510 (LM_NEXT): Rename to...
7511 (lm_next): New function name.
7512 (sunos_current_sos, sunos_relocate_section_addresses): Adapt to
7513 function name changes above.
7514 * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Rename to...
7515 (lm_addr_from_link_map): New function name.
7516 (HAS_LM_DYNAMIC_FROM_LINK_MAP): Rename to...
7517 (has_lm_dynamic_from_link_map): New function name.
7518 (LM_DYNAMIC_FROM_LINK_MAP): Rename to...
7519 (lm_dynamic_from_link_map): New function name.
7520 (LM_ADDR_CHECK): Rename to...
7521 (lm_addr_check): New function name.
7522 (LM_NEXT): Rename to...
7523 (lm_next): New function name.
7524 (LM_PREV): Rename to...
7525 (lm_prev): New function name.
7526 (LM_NAME): Rename to...
7527 (lm_name): New function name.
7528 (IGNORE_FIRST_LINK_MAP_ENTRY): Rename to...
7529 (ignore_first_link_map_entry): New function name.
7530 (svr4_keep_data_in_core): Adapt to function name changes above.
7531 (svr4_current_sos): Likewise.
7532 (enable_break): Likewise.
7533 (svr4_relocate_section_addresses): Likewise.
7534
1448a0a2
PM
75352011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
7536
7537 ARI cleanup.
7538 * xtensa-tdep.c (xtensa_register_type): Use xstrprintf instead of
7539 sprintf. Simplify code and avoid loosing memory.
7540 (xtensa_register_reggroup_p): Extract assignment out of IF clause.
7541 (call0_frame_cache): Remove && operator from end of line.
7542
02835898
JK
75432011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7544
7545 Fix libraries displacement if they change whether they were prelinked.
7546 * solib-svr4.c (LM_ADDR_CHECK): Set L_ADDR even if the DYNAMIC pointer
7547 does not match. Comment why.
7548
9a845ea2
JK
75492011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7550
7551 * corelow.c: Include wrapper.h.
7552 (core_open): Call now gdb_target_find_new_threads.
7553 * wrapper.c: Include target.h.
7554 (gdb_target_find_new_threads): New.
7555 * wrapper.h (gdb_target_find_new_threads): New declaration.
7556
254f582e
JK
75572011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7558
7559 * linux-thread-db.c (find_new_threads_callback): Exit on zero TI_TID
7560 even if !TARGET_HAS_EXECUTION.
7561
63524580
JK
75622011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7563
7564 Fix convert_code_addr_to_desc_addr for ppc64 files after eu-strip.
7565 * elfread.c (elf_symfile_read): New variable synth_abfd, pass it to
7566 bfd_get_synthetic_symtab.
7567 * jit.c (jit_register_code): Pass NULL to the new parameter parent.
7568 * machoread.c (macho_add_oso_symfile): Pass main_objfile to the new
7569 parameter parent, remove the call to add_separate_debug_objfile.
7570 * solib.c (solib_read_symbols): Pass NULL to the new parameter parent.
7571 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
7572 * symfile.c (symbol_file_add_with_addrs_or_offsets): New parameter
7573 parent, new comment for it, call add_separate_debug_objfile for it.
7574 (symbol_file_add_separate): Pass objfile as the parameter parent,
7575 remove the call to add_separate_debug_objfile.
7576 (symbol_file_add_from_bfd): New parameter parent, pass it.
7577 (symbol_file_add): Pass NULL to the new parameter parent.
7578 * symfile.h (symbol_file_add_from_bfd): New parameter parent.
7579
90359a16
JK
75802011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7581
7582 * elfread.c (elf_symtab_read): Do not ignore .L symbols if they are
7583 BSF_SYNTHETIC.
7584
626e7282
JK
75852011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7586
7587 Fix Python access to inlined frames.
7588 * python/py-frame.c (frapy_read_var): Find BLOCK using get_frame_block.
7589 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
7590
cf31e6f9
TT
75912011-04-15 Tom Tromey <tromey@redhat.com>
7592
7593 * dwarf2read.c (add_index_entry): Use VEC_last, not VEC_length.
7594
c8d895f1
GB
75952011-04-15 Gary Benson <gbenson@redhat.com>
7596
7597 * MAINTAINERS: Add myself to write-after-approval section.
7598
56a9aa1d
MF
75992011-04-14 Mike Frysinger <vapier@gentoo.org>
7600
7601 * remote-sim.c (sim_command_completer): New function.
7602 (_initialize_remote_sim): Set completer to sim_command_completer.
7603
ba770c9c
TJB
76042011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
7605
7606 * breakpoint.c (print_exception_catchpoint): Rename to ...
7607 (print_it_exception_catchpoint): ... this.
7608 (gnu_v3_exception_catchpoint_ops): Update with new name
7609 for print_it_exception_catchpoint.
7610
51bf2553
EBM
76112011-04-13 Edjunior Machado <emachado@linux.vnet.ibm.com>
7612
7613 * MAINTAINERS: Add myself for write after approval privileges.
7614
d242658c
MP
76152011-04-13 Marek Polacek <mpolacek@redhat.com>
7616
7617 * MAINTAINERS: Add myself as a write-after-approval maintainer.
7618
4a4106ca
TJB
76192011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
7620
7621 * breakpoint.c (watch_command_1): Remove colon from exp_string.
7622
26063d49
TJB
76232011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
7624
7625 * breakpoint.c (save_breakpoints): Verify whether
7626 breakpoint_ops.print_recreate is defined before calling it.
7627
7782b183
GB
76282011-04-11 Gary Benson <gbenson@redhat.com>
7629
7630 Fix failure with --enable-maintainer-mode.
7631 * Makefile.in (aclocal_m4_deps): Updated gnulib dependencies.
7632
e8930875
JK
76332011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7634
7635 Code cleanup.
7636 * symtab.c (search_symbols): Reorder the KIND description in the
7637 function comment. Remove the unused 4th element of types, types2,
7638 types3 and types4. New gdb_assert on KIND.
7639 (symtab_symbol_info): Remove the unused 4th element of classnames.
7640 New gdb_assert on KIND.
7641 * symtab.h (enum search_domain): New warning in the enum comment.
7642 Assign numbers to the elements VARIABLES_DOMAIN, FUNCTIONS_DOMAIN and
7643 TYPES_DOMAIN.
7644
b4f2f049
JK
76452011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7646
7647 Fix crash of gdb save-index on a STABS file.
7648 * dwarf2read.c (write_psymtabs_to_index): Return also on no
7649 PSYMTABS_ADDRMAP.
7650
60d5a603
JK
76512011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7652
7653 Fix DW_AT_accessibility compatibility with gcc-4.6+.
7654 * dwarf2read.c: Include ctype.h.
7655 (producer_is_gxx_lt_4_6, dwarf2_default_access_attribute): New
7656 functions.
7657 (dwarf2_add_field): Fix new_field->accessibility by calling
7658 dwarf2_default_access_attribute. Restructure setting accessibility
7659 vs. virtuality.
7660 (dwarf2_add_member_fn): New variable accessibility. Fix fnp
7661 is_private and is_protected by calling
7662 dwarf2_default_access_attribute.
7663
e0f68161
KB
76642011-04-08 Kevin Buettner <kevinb@redhat.com>
7665
7666 * rx-tdep.c (rx_frame_unwind): Add default_frame_unwind_stop_reason
7667 to the initialization.
7668
2e1aae43
SE
76692011-04-08 Steve Ellcey <sje@cup.hp.com>
7670
7671 * Add default_frame_unwind_stop_reason value to libunwind_frame_unwind
7672 initalization.
7673
c6ca3dab
PM
76742011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
7675
7676 Remove support for old Cygwin 1.5 versions.
7677 * remote-fileio.c: Remove macros used to emulate new cygwin_conv_path
7678 function on old Cygwin version.
7679 * windows-nat.c: Remove cygwin version check and always define
7680 __USEWIDE for Cygwin compilation.
7681
bd18283a
YQ
76822011-04-07 Yao Qi <yao@codesourcery.com>
7683
7684 * arm-linux-tdep.c (arm_linux_copy_svc): Remove parameters INSN
7685 and TO.
7686 * arm-tdep.c (cleanup_svc): Handle variable instruction size.
7687 (arm_copy_svc): Remove parameters INSN and TO.
7688 (decode_svc_copro): Update caller.
7689 * arm-tdep.h (struct displaced_step_closure): Remove parameters
7690 from function pointer `copy_svc_os'.
7691
8c8dba6d
YQ
76922011-04-07 Yao Qi <yao@codesourcery.com>
7693
7694 * arm-tdep.c (cleanup_branch): Set a correct return address in
7695 LR for ARM and Thumb.
7696
59d7bcaf
JK
76972011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
7698
7699 Code cleanup.
7700 * dictionary.c (dict_hash): Use SYMBOL_HASH_NEXT.
7701 * dwarf2read.c (mapped_index_string_hash): Refer to SYMBOL_HASH_NEXT
7702 in the function comment, a new note on values compatibility.
7703 * minsyms.c (msymbol_hash_iw, msymbol_hash): Use SYMBOL_HASH_NEXT.
7704 * symtab.h (SYMBOL_HASH_NEXT): New.
7705
e7db58ea
TJB
77062011-04-06 Thiago Jung Bauermann <bauerman@br.ibm.com>
7707
7708 * ppc-linux-nat.c (check_condition): Add len output parameter.
7709 Set it based on the memory region referenced in the condition
7710 expression. Update all callers.
7711
9f743ef6
JK
77122011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
7713
7714 Fix crash regression on systems featuring .gdb_index.
7715 * objfiles.c (free_objfile): Move the
7716 forget_cached_source_info_for_objfile call earlier. Comment it.
7717 Extend the comment for objfile_free_data.
7718
9182c5bc
JK
77192011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
7720
7721 Fix regression of displaying the debug format.
7722 * buildsym.c (end_symtab): Set symtab's debugformat and producer from
7723 subfile.
7724
04bd08de
TT
77252011-04-04 Tom Tromey <tromey@redhat.com>
7726
7727 * cli/cli-interp.c (struct captured_execute_command_args):
7728 Remove.
7729 (do_captured_execute_command): Remove.
7730 (safe_execute_command): Use TRY_CATCH.
7731 * cli/cli-script.c (struct wrapped_read_command_file_args):
7732 Remove.
7733 (wrapped_read_command_file): Remove.
7734 (script_from_file): Use TRY_CATCH.
7735 * exceptions.c (catch_exception): Remove.
7736 * exceptions.h (catch_exception): Remove.
7737 (deprecated_throw_reason): Update comment.
7738 * mi/mi-main.c (captured_mi_execute_command): Change 'data'
7739 argument to 'context'.
7740 (mi_execute_command): Use TRY_CATCH.
7741 * remote.c (struct start_remote_args): Remove.
7742 (remote_start_remote): Update; change arguments.
7743 (remote_open_1): Use TRY_CATCH.
7744
58438ac1
TT
77452011-04-04 Tom Tromey <tromey@redhat.com>
7746
7747 * tracepoint.c (scope_info): Update.
7748 * symtab.c (decode_line_spec): Update.
7749 * python/python.c (gdbpy_decode_line): Update.
7750 * linespec.h (decode_line_1): Update.
7751 * linespec.c (decode_line_1): Remove 'not_found_ptr' argument.
7752 (decode_compound, find_method, symtab_from_filename)
7753 (decode_variable): Likewise.
7754 * cli/cli-cmds.c (edit_command): Update.
7755 (list_command): Update.
7756 * breakpoint.c (parse_breakpoint_sals): Remove 'not_found_ptr'
7757 argument.
7758 (create_breakpoint): Update.
7759 (until_break_command): Update.
7760 (addr_string_to_sals): Update.
7761 (decode_line_spec_1): Update.
7762
b78a6381
TT
77632011-04-04 Tom Tromey <tromey@redhat.com>
7764
7765 * breakpoint.c (struct captured_parse_breakpoint_args): Remove.
7766 (do_captured_parse_breakpoint): Remove.
7767 (create_breakpoint): `e' is now volatile. Remove `parse_args'.
7768 Use TRY_CATCH directly.
7769
00174a86
TT
77702011-04-04 Tom Tromey <tromey@redhat.com>
7771
7772 * symtab.h (free_symtab): Remove.
7773 (forget_cached_source_info_for_objfile): Declare.
7774 * symmisc.c (free_symtab): Remove.
7775 * source.c (forget_cached_source_info_for_objfile): New function.
7776 (forget_cached_source_info): Use it.
7777 * objfiles.c (free_objfile): Simplify check before calling
7778 clear_current_source_symtab_and_line. Call
7779 forget_cached_source_info_for_objfile.
7780
30cc903e
TT
77812011-04-04 Tom Tromey <tromey@redhat.com>
7782
7783 * mdebugread.c (psymtab_to_symtab_1): Copy linetable to obstack.
7784 (new_symtab): Don't set `free_code' on symtab.
7785 (new_linetable): Properly handle size==0.
7786 * symtab.h (struct symtab) <free_code, free_func>: Remove.
7787 * symmisc.c (free_symtab): Don't free the linetable. Don't call
7788 free_func.
7789 * jv-lang.c (struct jv_per_objfile_data): New.
7790 (jv_per_objfile_free): Free the data.
7791 (get_dynamics_objfile): Allocate a jv_per_objfile_data.
7792 (get_java_class_symtab): Set the `dict' field on the
7793 jv_per_objfile_data.
7794 (free_class_block): Remove.
7795 * buildsym.c (end_symtab): Don't set `free_code' or `free_func' on
7796 the symtab.
7797
0c2e6019
TT
77982011-04-04 Tom Tromey <tromey@redhat.com>
7799
7800 * symfile.c (reread_symbols): Update.
7801 * objfiles.h (struct objfile) <cp_namespace_symtab>: Remove
7802 field.
7803 * objfiles.c (allocate_objfile): Update.
7804 * cp-support.h (cp_check_possible_namespace_symbols): Don't
7805 declare.
7806 * cp-namespace.c (lookup_symbol_file): Don't call
7807 lookup_possible_namespace_symbol.
7808 (initialize_namespace_symtab, get_possible_namespace_block)
7809 (free_namespace_block, cp_check_possible_namespace_symbols)
7810 (check_possible_namespace_symbols_loop)
7811 (check_one_possible_namespace_symbol)
7812 (lookup_possible_namespace_symbol): Remove.
7813 (maintenance_cplus_namespace): Replace with notice.
7814 (_initialize_cp_namespace): Deprecate `maint cplus namespace'.
7815
554d387d
TT
78162011-04-04 Tom Tromey <tromey@redhat.com>
7817
7818 * xcoffread.c (read_xcoff_symtab): Make `debugfmt' const.
7819 * symtab.h (struct symtab) <producer, debugformat>: Now const.
7820 * symmisc.c (free_symtab): Don't free debugformat.
7821 * buildsym.h (struct subfile) <producer, debugformat>: Now const.
7822 (record_debugformat, record_producer): Document.
7823 * buildsym.c (end_symtab): Don't save debugformat and producer
7824 names on obstack.
7825 (end_symtab): Don't free debugformat and producer fields.
7826 (record_debugformat): Don't call xstrdup.
7827 (record_producer): Likewise.
7828
d4d4db8a
TT
78292011-04-04 Tom Tromey <tromey@redhat.com>
7830
7831 * source.c (find_source_lines): Remove LSEEK_NOT_LINEAR code.
7832 (source_line_charpos, source_charpos_line): Remove.
7833
8903c50d
TT
78342011-04-04 Tom Tromey <tromey@redhat.com>
7835
7836 * symtab.h (domain_enum): Split in two...
7837 (enum search_domain): New.
7838 (search_symbols): Update.
7839 * symtab.c (print_symbol_info, symtab_symbol_info): Remove
7840 redundant declarations.
7841 (search_symbols): Change 'kind' argument to search_domain.
7842 Update.
7843 (print_symbol_info): Likewise.
7844 (symtab_symbol_info): Likewise.
7845 * symfile.h (struct quick_symbol_functions)
7846 <pre_expand_symtabs_matching>: Change type of 'kind' argument.
7847 <expand_symtabs_matching>: Likewise.
7848 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Update.
7849 (expand_symtabs_matching_via_partial): Update.
7850 * dwarf2read.c (dw2_pre_expand_symtabs_matching): Update.
7851 (dw2_expand_symtabs_for_function): Update.
7852 * block.h: Moved anonymous enum...
7853 * defs.h (enum block_enum): ... here. Now named.
7854
d9351f5f 78552011-04-03 Joel Brobecker <brobecker@adacore.com>
7856
7857 GDB 7.3 branch created (branch timestamp: 2011-04-01 01:00 UTC)
7858 * version.in: Bump version to 7.3.50.20110403-cvs.
7859
d6e00af6
JB
78602011-04-03 Joel Brobecker <brobecker@adacore.com>
7861
7862 * NEWS: Create a new section for the next release branch.
7863 Rename the section of the current branch, now that it has
7864 been cut.
7865
2b9e5ea6
UW
78662011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
7867
7868 * arm-tdep.c (arm_gdbarch_init): Enfore correct register number
7869 for "fpscr" in target description.
7870
0cf03b49
JK
78712011-04-01 Jan Kratochvil <jan.kratochvil@redhat.com>
7872
7873 * dwarf2read.c (find_slot_in_mapped_hash): New variable back_to,
7874 initialize it. Delay HASH initialization. Strip the part after open
7875 parenthesis for languages with qualifiers. Call do_cleanups.
7876
5d901a73
TT
78772011-04-01 Tom Tromey <tromey@redhat.com>
7878
7879 * utils.c (report_command_stats): Don't print `-' for negative
7880 number.
7881
b0dd7688
JB
78822011-04-01 Eric Botcazou <ebotcazou@adacore.com>
7883
7884 * ada-lang.c (ada_is_simple_array_type, ada_value_slice_from_ptr)
7885 (ada_value_slice, empty_array, to_fixed_array_type): Deal with
7886 typedefs.
7887
956a9fb9
JB
78882011-04-01 Joel Brobecker <brobecker@adacore.com>
7889
7890 * breakpoint.h (bpdisp_text): Add declaration.
7891 * breakpoint.c (bpdisp_text): Make non-static.
7892 * ada-lang.c: #include "mi/mi-common.h".
7893 (print_it_exception): Rewrite to improve GDB/MI output.
7894
3352110b
PA
78952011-04-01 Pedro Alves <pedro@codesourcery.com>
7896
7897 * arm-tdep.h (struct address_space): Add forward declaration.
7898
18819fa6
UW
78992011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
7900
7901 * arm-tdep.h (arm_insert_single_step_breakpoint): Add prototype.
7902 * arm-tdep.c (arm_override_mode): New global.
7903 (arm_pc_is_thumb): Respect arm_override_mode. Remove single-step
7904 execution mode heuristics.
7905 (thumb_get_next_pc_raw): Remove INSERT_BKTP argument; always insert
7906 second single-step breakpoint if needed, using
7907 arm_insert_single_step_breakpoint.
7908 (arm_get_next_pc_raw): Remove INSERT_BKTP argument. Only handle
7909 ARM execution mode, do not call thumb_get_next_pc_raw.
7910 (arm_get_next_pc): Encode execution mode in return value. Call
7911 either arm_get_next_pc_raw or thumb_get_next_pc_raw.
7912 (arm_insert_single_step_breakpoint): New function.
7913 (arm_software_single_step): Call it.
7914 * arm-linux-tdep.c (arm_linux_sigreturn_return_addr): Add IS_THUMB
7915 argument to return execution mode of sigreturn target.
7916 (arm_linux_syscall_next_pc): Use it.
7917 (arm_linux_copy_svc): Update call.
7918 (arm_linux_software_single_step): Call
7919 arm_insert_single_step_breakpoint.
7920
a6e293d1
JK
79212011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
7922
7923 * dwarf2read.c (dwarf2_read_index): Fix .gdb_index version number in
7924 the comment.
7925
a4c8e806
TT
79262011-03-31 Tom Tromey <tromey@redhat.com>
7927
7928 * varobj.c (update_dynamic_varobj_children): Properly handle
7929 errors from iterator.
7930
df5c6c50
JK
79312011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
7932
7933 * dwarf2read.c (dwarf2_name): Initialize DEMANGLED. Avoid demangling
7934 struct linkage name twice.
7935
1dae3efc
TT
79362011-03-31 Tom Tromey <tromey@redhat.com>
7937
7938 * python/py-prettyprint.c (print_stack_unless_memory_error): Add
7939 missing ">" to message.
7940
f4f7ab05
TT
79412011-03-31 Tom Tromey <tromey@redhat.com>
7942
7943 * varobj.c (instantiate_pretty_printer): Remove duplicate
7944 'return'.
7945
fcf250e2
UW
79462011-03-31 Ulrich Weigand <ulrich.weigand@linaro.org>
7947
7948 * i386-tdep.c (i386_frame_prev_register): Unwind SP from memory
7949 if neither saved value nor register available (e.g. signal frame).
7950
ee6436e3
TJB
79512011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
7952
7953 * macroexp.c (expand): Avoid uninitialized variable
7954 compiler warning.
7955
423f41a5
TJB
79562011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
7957
7958 * breakpoint.c (break_range_command): Fix typo in comment.
7959
f1310107
TJB
79602011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
7961 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
7962
7963 Implement support for PowerPC BookE ranged breakpoints.
7964 * NEWS: Mention support for ranged breakpoints on embedded PowerPC.
7965 * breakpoint.h (struct bp_target_info) <length>: New member
7966 variable.
7967 (struct breakpoint_ops) <breakpoint_hit>: Take struct bp_location
7968 instead of struct breakpoint as argument, and also add ASPACE
7969 and BP_ADDR arguments. Update all callers.
7970 (struct breakpoint_ops) <print_one_detail>: New method.
7971 (struct breakpoint) <addr_string_range_end>: New member variable.
7972 * breakpoint.c (breakpoint_location_address_match): Add function
7973 prototype.
7974 (insert_bp_location): Set bl->target_info.length.
7975 (breakpoint_here_p): Call breakpoint_location_address_match.
7976 (moribund_breakpoint_here_p): Likewise.
7977 (regular_breakpoint_inserted_here_p): Likewise.
7978 (breakpoint_thread_match): Likewise.
7979 (bpstat_stop_status): Likewise.
7980 (bpstat_check_location): Move call to
7981 breakpoint_ops.breakpoint_hit to the top.
7982 (print_one_breakpoint_location): Call
7983 breakpoint_ops.print_one_detail if available.
7984 (breakpoint_address_match_range): New function.
7985 (breakpoint_location_address_match): Likewise.
7986 (breakpoint_locations_match): Compare the length field of the
7987 locations too.
7988 (hw_breakpoint_used_count): Count resources used by all locations
7989 in a breakpoint, and use breakpoint_ops.resources_needed if
7990 available.
7991 (breakpoint_hit_ranged_breakpoint): New function.
7992 (resources_needed_ranged_breakpoint): Likewise.
7993 (print_it_ranged_breakpoint): Likewise.
7994 (print_one_ranged_breakpoint): Likewise.
7995 (print_one_detail_ranged_breakpoint): Likewise.
7996 (print_mention_ranged_breakpoint): Likewise.
7997 (print_recreate_ranged_breakpoint): Likewise.
7998 (ranged_breakpoint_ops): New structure.
7999 (find_breakpoint_range_end): New function.
8000 (break_range_command): Likewise.
8001 (delete_breakpoint): Free addr_string_range_end.
8002 (update_breakpoint_locations): Add SALS_END argument. Update
8003 all callers. Calculate breakpoint length if a non-zero SALS_END
8004 is given. Call breakpoint_locations_match instead of
8005 breakpoint_address_match.
8006 (reset_breakpoint): Find SaL of the end of the range if B is a
8007 ranged breakpoint.
8008 (_initialize_breakpoint): Register break-range command.
8009 * defs.h (print_core_address): Add function prototype.
8010 * ppc-linux-nat.c (ppc_linux_ranged_break_num_registers): New
8011 function.
8012 (ppc_linux_insert_hw_breakpoint): Support ranged breakpoints.
8013 (ppc_linux_remove_hw_breakpoint): Likewise.
8014 (_initialize_ppc_linux_nat): Initialize
8015 to_ranged_break_num_registers.
8016 * target.c (update_current_target): Add comment about
8017 to_ranged_break_num_registers.
8018 (target_ranged_break_num_registers): New function.
8019 * target.h (struct target_ops) <to_ranged_break_num_registers>:
8020 New method.
8021 (target_ranged_break_num_registers): Add function prototype.
8022 * ui-out.c (ui_out_field_core_addr): Move address-printing logic to ...
8023 * utils.c (print_core_address): ... here.
8024
02d20e4a
UW
80252011-03-31 Ulrich Weigand <uweigand@de.ibm.com>
8026
8027 * breakpoint.c (addr_string_to_sals): Avoid uninitialized
8028 variable compiler warning.
8029
ef23e705
TJB
80302011-03-30 Thiago Jung Bauermann <bauerman@br.ibm.com>
8031
8032 * breakpoint.c (breakpoint_re_set_one): Factor out breakpoint-resetting
8033 code from here ...
8034 (re_set_breakpoint): ... to here ...
8035 (addr_string_to_sals): ... and here.
8036
311e6ab3
PM
80372011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
8038
8039 * Makefile.in (SFILES): Add missing C sources.
8040 (HFILES_NO_SRCDIR): Remove gdbserver subdirectory headers.
8041 Add missing headers.
8042
acd1d99c
MF
80432011-03-29 Mike Frysinger <vapier@gentoo.org>
8044
8045 * .gitignore: New file.
8046
66ee2731
MF
80472011-03-29 Mike Frysinger <vapier@gentoo.org>
8048
8049 * NEWS: Mention new cfi device simulation.
8050
53832f31
TT
80512011-03-29 Tom Tromey <tromey@redhat.com>
8052
8053 * dwarf2read.c (fixup_partial_die): Handle linkage name on
8054 otherwise anonymous types.
8055 (dwarf2_name): Likewise.
8056 * valops.c (value_struct_elt_for_reference): Refine artificial
8057 type logic. Call error if j==-1.
8058
09b58708
JK
80592011-03-29 Andreas Tobler <andreast-list@fgznet.ch>
8060
8061 Fix false GCC warning.
8062 * infcall.c (find_function_addr): Initialize funaddr.
8063
6023c606
PM
80642011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
8065
8066 Fix mingw compilation with --enable-targets=all.
8067 * remote-mips.c (gdb_usleep.h): Include header.
8068 (mips_enter_debug): Use gdb_usleep instead of sleep.
8069
0e30163f
JK
80702011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
8071
8072 Support resolution of STT_GNU_IFUNC via breakpoints.
8073 * breakpoint.c (print_it_typical): Support bp_gnu_ifunc_resolver and
8074 bp_gnu_ifunc_resolver_return.
8075 (bpstat_what): Rename parameter to bs_head, new variable bs, adjust
8076 the loop. Support bp_gnu_ifunc_resolver and
8077 bp_gnu_ifunc_resolver_return. New comment after the loop. New loop
8078 for bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return
8079 breakpoints.
8080 (bptype_string, print_one_breakpoint_location): Support
8081 bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return.
8082 (user_settable_breakpoint): Return true also for
8083 bp_gnu_ifunc_resolver.
8084 (allocate_bp_location): Support bp_gnu_ifunc_resolver and
8085 bp_gnu_ifunc_resolver_return.
8086 (set_breakpoint_location_function): New parameter explicit_loc,
8087 describe it. Call find_pc_partial_function_gnu_ifunc with new
8088 variable IS_GNU_IFUNC and adjust the address for STT_GNU_IFUNC if
8089 EXPLICIT_LOC is not set.
8090 (set_raw_breakpoint): Set EXPLICIT_LOC for
8091 set_breakpoint_location_function.
8092 (clone_momentary_breakpoint): Use true for EXPLICIT_LOC of
8093 set_breakpoint_location_function.
8094 (mention): Support bp_gnu_ifunc_resolver and
8095 bp_gnu_ifunc_resolver_return.
8096 (add_location_to_breakpoint): Set EXPLICIT_LOC for
8097 set_breakpoint_location_function.
8098 (update_breakpoint_locations): Remove static.
8099 (breakpoint_re_set_one): Support bp_gnu_ifunc_resolver and
8100 bp_gnu_ifunc_resolver_return.
8101 * breakpoint.h (enum bptype): New fields bp_gnu_ifunc_resolver and
8102 bp_gnu_ifunc_resolver_return.
8103 (update_breakpoint_locations): New declaration.
8104 * elfread.c: Include gdbthread.h and regcache.h.
8105 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop): New
8106 functions.
8107 (elf_gnu_ifunc_fns): Install them.
8108 * minsyms.c (stub_gnu_ifunc_resolver_stop)
8109 (stub_gnu_ifunc_resolver_return_stop): New functions.
8110 (stub_gnu_ifunc_fns): Install them.
8111 * symtab.h (struct gnu_ifunc_fns): New fields gnu_ifunc_resolver_stop
8112 and gnu_ifunc_resolver_return_stop.
8113 (gnu_ifunc_resolver_stop, gnu_ifunc_resolver_return_stop): New.
8114
07be84bf
JK
81152011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
8116
8117 STT_GNU_IFUNC reader implementation.
8118 * elfread.c: Include gdbtypes.h, value.h and infcall.h.
8119 (SYMBOL_GOT_PLT_SUFFIX, elf_rel_plt_read)
8120 (elf_objfile_gnu_ifunc_cache_data, struct elf_gnu_ifunc_cache)
8121 (elf_gnu_ifunc_cache_hash, elf_gnu_ifunc_cache_eq)
8122 (elf_gnu_ifunc_record_cache, elf_gnu_ifunc_resolve_by_cache)
8123 (elf_gnu_ifunc_resolve_by_got, elf_gnu_ifunc_resolve_name)
8124 (elf_gnu_ifunc_resolve_addr): New.
8125 (elf_symfile_read): Call elf_rel_plt_read.
8126 (elf_gnu_ifunc_fns): New.
8127 (_initialize_elfread): Initialize elf_objfile_gnu_ifunc_cache_data.
8128 Install elf_gnu_ifunc_fns.
8129 * infcall.c (find_function_return_type): New function.
8130 (find_function_addr): Resolve TYPE_GNU_IFUNC functions, if possible.
8131 * minsyms.c (stub_gnu_ifunc_resolve_addr)
8132 (stub_gnu_ifunc_resolve_name): New functions.
8133 (stub_gnu_ifunc_fns, gnu_ifunc_fns_p): New variables.
8134 * symtab.h (struct gnu_ifunc_fns, gnu_ifunc_resolve_addr)
8135 (gnu_ifunc_resolve_name, gnu_ifunc_fns_p): New.
8136
300f8e10
JK
81372011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
8138
8139 Code cleanup for later STT_GNU_IFUNC support.
8140 * infcall.c (find_function_addr): Remove variable code, use explicit
8141 dereferences for it. Move VALUE_TYPE initialization later.
8142
11c81455
JK
81432011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
8144
8145 GDB find_pc_partial_function support for STT_GNU_IFUNC.
8146 * blockframe.c (cache_pc_function_is_gnu_ifunc): New variable.
8147 (clear_pc_function_cache): Clear it.
8148 (find_pc_partial_function): Rename to ...
8149 (find_pc_partial_function_gnu_ifunc): ... this function. New
8150 parameter is_gnu_ifunc_p, describe it. Set *IS_GNU_IFUNC_P.
8151 (find_pc_partial_function): New wrapper for this function.
8152 * symtab.h (find_pc_partial_function_gnu_ifunc): New declaration.
8153
0875794a
JK
81542011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
8155
8156 GDB internal type support for STT_GNU_IFUNC.
8157 * elfread.c (record_minimal_symbol): Support mst_text_gnu_ifunc.
8158 (elf_symtab_read): Set mst_text_gnu_ifunc for
8159 BSF_GNU_INDIRECT_FUNCTION.
8160 * eval.c (evaluate_subexp_standard): Support TYPE_GNU_IFUNC.
8161 * gdbtypes.c (init_type): Support TYPE_FLAG_GNU_IFUNC,
8162 builtin_func_func, nodebug_text_gnu_ifunc_symbol and
8163 nodebug_got_plt_symbol.
8164 * gdbtypes.h (enum type_flag_value): New entry TYPE_FLAG_GNU_IFUNC.
8165 (TYPE_GNU_IFUNC): New.
8166 (struct main_type): New field flag_gnu_ifunc.
8167 (struct builtin_type): New field builtin_func_func.
8168 (struct objfile_type): New fields nodebug_text_gnu_ifunc_symbol and
8169 nodebug_got_plt_symbol.
8170 * minsyms.c (lookup_minimal_symbol_text): Support mst_text_gnu_ifunc.
8171 (in_gnu_ifunc_stub): New.
8172 (prim_record_minimal_symbol, find_solib_trampoline_target): Support
8173 mst_text_gnu_ifunc.
8174 * parse.c (write_exp_msymbol): New variable ifunc_msym. Detect and
8175 support mst_text_gnu_ifunc. Support mst_slot_got_plt.
8176 * solib-svr4.c (svr4_in_dynsym_resolve_code): Return true also for
8177 in_gnu_ifunc_stub.
8178 * symmisc.c (dump_msymbols): Support mst_text_gnu_ifunc.
8179 * symtab.c (search_symbols): Likewise.
8180 * symtab.h (enum minimal_symbol_type): New fields mst_text_gnu_ifunc
8181 and mst_slot_got_plt.
8182 (in_gnu_ifunc_stub): New declaration.
8183
d0fb5eae
JK
81842011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
8185
8186 Support a ring of related breakpoints.
8187 * breakpoint.c (watchpoint_del_at_next_stop): New, move here code from
8188 other functions, add gdb_assert.
8189 (update_watchpoint, watchpoint_check): Add gdb_assert. Use
8190 watchpoint_del_at_next_stop.
8191 (bpstat_check_watchpoint): Use watchpoint_del_at_next_stop.
8192 (bpstat_stop_status): Handle ring in related_breakpoint.
8193 (set_raw_breakpoint_without_location): Initialize ring in
8194 related_breakpoint.
8195 (delete_breakpoint): Handle ring in related_breakpoint, use
8196 watchpoint_del_at_next_stop.
8197 (map_breakpoint_numbers): Handle ring in related_breakpoint.
8198
9cded63f
TT
81992011-03-28 Tom Tromey <tromey@redhat.com>
8200
8201 PR symtab/12441:
8202 * dwarf2read.c (prepare_one_comp_unit): Don't call set_cu_language
8203 with `language_minimal'.
8204
467d42c4
UW
82052011-03-25 Ulrich Weigand <ulrich.weigand@linaro.org>
8206
8207 * arm-tdep.c (arm_elf_make_msymbol_special): Use ARM_SYM_BRANCH_TYPE
8208 instead of checking for STT_ARM_TFUNC symbol type.
8209
62853458
TT
82102011-03-25 Tom Tromey <tromey@redhat.com>
8211
8212 * linespec.c (symbol_found): Restore line-based result for
8213 non-LOC_LABEL symbols.
8214
a7417d46
KT
82152011-03-25 Kai Tietz <ktietz@redhat.com>
8216
8217 * tui/tui-source.c (tui_set_source_content): Use filename_cmp
8218 instead of strcmp for comparison.
8219 (tui_source_is_displayed): Likewise.
8220 * tui/tui-winsource.c (tui_update_breakpoint_info): Likewise.
8221
55f1336d
TT
82222011-03-24 Mark Wielaard <mjw@redhat.com>
8223
f33edef8
PP
8224 * dwarf2read.c (lookup_signatured_type): Use DW_FORM_ref_sig8 in
8225 complaint.
8226 (skip_one_die): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
8227 (find_partial_die_in_comp_unit): Likewise in comment.
8228 (read_attribute_value): Likewise.
8229 (lookup_die_type): Likewise.
8230 (dwarf_form_name): Likewise.
8231 (dump_die_shallow): Likewise.
8232 (follow_die_ref_or_sig): Likewise.
55f1336d 8233
9ef07c8c
TT
82342011-03-24 Tom Tromey <tromey@redhat.com>
8235
8236 PR breakpoints/11816:
8237 * linespec.c (decode_line_1): Parse `function:label' linespecs.
8238 (decode_compound): Update.
8239 (find_function_symbol): New function.
8240 (decode_dollar): Update.
8241 (decode_label): Add 'function_symbol' parameter. Handle
8242 function-relative labels.
8243 (decode_variable): Update.
8244 (symbol_found): Add 'function_symbol' parameter. Use label's PC,
8245 not its line. Set `special_display' and canonical name for
8246 labels.
8247
56435ebe
TT
82482011-03-24 Tom Tromey <tromey@redhat.com>
8249
8250 * linespec.h (struct linespec_result) <special_display>: New
8251 field.
8252 * breakpoint.h (struct breakpoint) <display_canonical>: New
8253 field.
8254 * breakpoint.c (print_breakpoint_location): Respect
8255 display_canonical.
8256 (create_breakpoint_sal): Add 'display_canonical' parameter.
8257 (create_breakpoints_sal): Update.
8258 (create_breakpoint): Update.
8259
7efd8fc2
TT
82602011-03-24 Tom Tromey <tromey@redhat.com>
8261
8262 * symtab.c (decode_line_spec): Update.
8263 * linespec.c (build_canonical_line_spec): Change type of
8264 'canonical'.
8265 (decode_line_2, decode_line_1, decode_objc, decode_compound)
8266 (find_method, decode_all_digits, decode_dollar, decode_label)
8267 (symbol_found): Likewise.
8268 (init_linespec_result): New function.
8269 * breakpoint.c (struct captured_parse_breakpoint_args)
8270 <canonical_p>: New field, replaces addr_string_p.
8271 (create_breakpoints_sal): Add 'canonical' parameter, replacing
8272 'addr_string'.
8273 (parse_breakpoint_sals): Likewise.
8274 (do_captured_parse_breakpoint): Update.
8275 (create_breakpoint): Use struct linespec_result.
8276 (until_break_command): Update.
8277 (breakpoint_re_set_one): Update.
8278 (decode_line_spec_1): Update.
8279 * linespec.h (struct linespec_result): New.
8280 (init_linespec_result): Declare.
8281
788c8b10
PA
82822011-03-23 Pedro Alves <pedro@codesourcery.com>
8283
8284 * regcache.c (regcache_raw_read): If the target didn't supply a
8285 given raw register, mark it as unavailable.
8286
0ba1096a
KT
82872011-03-23 Kai Tietz <ktietz@redhat.com>
8288
8289 * breakpoint.c (clear_command): Use filename_cmp
8290 instead of strcmp for comparison.
8291 * buildsym.c (watch_main_source_file_lossage): Likewise.
8292 (patch_subfile_names): Use IS_DIR_SEPARATOR instead of
8293 checking just for slash.
8294 * dbxread.c (read_dbx_symtab): Use lbasename instead of
8295 strrchr and filename_cmp instead of strcmp for filenames.
8296 (add_old_header_file): Use filename_cmp
8297 instead of strcmp for comparison.
8298 * exec.c (exec_set_section_address): Likewise.
8299 * macrotab.c (macro_lookup_inclusion): Likewise.
8300 (macro_lookup_inclusion): Likewise.
8301 * elfread.c (_initialize_elfread): Likewise.
8302 (elfstab_offset_sections): Likewise.
8303 (elfstab_offset_sections): Use lbasename instead of
8304 strrchr.
8305 * mdebugread.c (parse_partial_symbols): Likewise.
8306 (arse_partial_symbols): Use filename_(n)cmp instead of
8307 str(n)cmp for comparison.
8308 * minsyms.c (lookup_minimal_symbol): Likewise.
8309 * psymtab.c (read_psymtabs_with_filename): Likewise.
8310 * solib.c (solib_read_symbols): Likewise.
8311 (reload_shared_libraries_1): Likewise.
8312 * symmisc.c (maintenance_print_symbols): Likewise.
8313 * symfile.c (separate_debug_file_exists): Likewise.
8314 (reread_symbols): Likewise.
8315 (find_separate_debug_file_by_debuglink): Likewise.
8316 * remote-fileio.c (remote_fileio_func_rename): Likewise.
8317 * source.c (add_path): Likewise.
8318 * symtab.c (filename_seen): Likewise.
8319 (file_matches): Likewise.
8320 (print_symbol_info): Likewise.
8321 (maybe_add_partial_symtab_filename): Likewise.
8322 (make_source_files_completion_list): Likewise.
8323 * xml-syscall.c (init_sysinfo): Likewise.
8324 * windows-nat.c (_initialize_check_for_gdb_ini): Use
8325 IS_DIR_SEPARATOR for checking for trailing path separator.
8326
dd90784c
JK
83272011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
8328
8329 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_entry_value. New
8330 label abort_expression.
8331 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle
8332 DWARF_VALUE_OPTIMIZED_OUT.
8333
3167638f
JK
83342011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
8335
8336 Code cleanup.
8337 * c-typeprint.c (c_type_print_args): Change parameter show_artificial
8338 to linkage_name. Invert its value. Update the function comment.
8339 (c_type_print_varspec_suffix): Invert it at the caller.
8340 * dwarf2read.c (dwarf2_compute_name): Invert it at the caller.
8341
ce406537
PA
83422011-03-22 Pedro Alves <pedro@codesourcery.com>
8343
8344 * infcmd.c (post_create_inferior): Ignore NOT_AVAILABLE_ERROR
8345 errors when reading the `stop_pc'.
8346 * printcmd.c (pc_prefix): Use get_frame_pc_if_available instead of
8347 get_frame_pc.
8348
da5d4055
PM
83492011-03-22 Phil Muldoon <pmuldoon@redhat.com>
8350
8351 * NEWS: Document gdb.Write stream keyword.
8352
29e0eb9c
JK
83532011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
8354
8355 Revert:
8356 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8357 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
8358 (dwarf2_add_field): Fix new_field->accessibility for
8359 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
8360
05775840
PM
83612011-03-22 Phil Muldoon <pmuldoon@redhat.com>
8362
f33edef8 8363 PR python/12183
05775840
PM
8364
8365 * python/py-function.c (fnpy_call): Treat GdbErrors differently to
8366 other error classes. Do not print stack trace.
8367
a0cb7835
JK
83682011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8369
8370 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
8371 (dwarf2_add_field): Fix new_field->accessibility for
8372 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
8373
d19f7eee
UW
83742011-03-21 Ulrich Weigand <ulrich.weigand@linaro.org>
8375
8376 * arm-tdep.c (arm_analyze_prologue): Do not abort parsing when
8377 encountering a load via a non-SP register.
8378
4a2fbb50
UW
83792011-03-21 Ulrich Weigand <uweigand@de.ibm.com>
8380
8381 * tramp-frame.c (tramp_frame_prepend_unwinder): Set stop_reason
8382 field in returned unwinder.
8383
3489610d
JB
83842012-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8385
8386 * ada-lang.c (replace_operator_with_call): Copy also GDBARCH.
8387
8c1a34e7
JB
83882012-03-21 Joel Brobecker <brobecker@adacore.com>
8389
8390 * ada-lang.c (replace_operator_with_call): Use xzalloc instead
8391 of xmalloc.
8392
8fbca658
PA
83932012-03-18 Pedro Alves <pedro@codesourcery.com>
8394
8395 * frame.c (frame_unwind_register): Throw an error if unwinding the
8396 register failed.
8397 * get_prev_frame_1 (get_prev_frame_1): Ask the unwinder if there's
8398 an unwind stop reason.
8399 (frame_stop_reason_string): Handle UNWIND_UNAVAILABLE.
8400 * frame.h (enum unwind_stop_reason) <UNWIND_OUTERMOST,
8401 UNWIND_UNAVAILABLE>: New.
8402 * inline-frame.c (inline_frame_unwind): Install
8403 default_frame_unwind_stop_reason.
8404 * frame-unwind.c: Include "exceptions.h".
8405 (frame_unwind_find_by_frame): Swallow NOT_AVAILABLE_ERROR errors.
8406 (default_frame_unwind_stop_reason): New.
8407 * frame-unwind.h (frame_unwind_stop_reason_ftype): New typedef.
8408 (default_frame_unwind_stop_reason): Declare.
8409 (struct frame_unwind) <stop_reason>: New function pointer.
8410
8411 * dummy-frame.c: Install default_frame_unwind_stop_reason.
8412 * dwarf2-frame.c: Include exceptions.h.
8413 (struct dwarf2_frame_cache) <unavailable_retaddr>: New field.
8414 (dwarf2_frame_cache): Swallow NOT_AVAILABLE_ERROR errors when
8415 computing the CFA. If such an error was thrown, set
8416 unavailable_retaddr.
8417 (dwarf2_frame_unwind_stop_reason): New.
8418 (dwarf2_frame_this_id): Don't build a frame id if the CFA was
8419 unavailable.
8420 (dwarf2_frame_unwind): Install dwarf2_frame_unwind_stop_reason.
8421 (dwarf2_signal_frame_unwind): Ditto.
8422
8423 * amd64-tdep.c: Include "exceptions.h".
8424 (struct amd64_frame_cache): New field "base_p".
8425 (amd64_init_frame_cache): Clear it.
8426 (amd64_frame_cache_1): New, factored out from amd64_frame_cache.
8427 Avoid reading registers with functions that throw if the register
8428 is not necessary to compute the frame base.
8429 (amd64_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
8430 swallowing NOT_AVAILABLE_ERROR.
8431 (amd64_frame_unwind_stop_reason): New.
8432 (amd64_frame_this_id): Don't build a frame id if the frame base
8433 was unavailable.
8434 (amd64_frame_unwind): Install amd64_frame_unwind_stop_reason.
8435 (amd64_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
8436 base_p if the frame base was computable.
8437 (amd64_sigtramp_frame_unwind_stop_reason): New.
8438 (amd64_sigtramp_frame_this_id): Don't build a frame id if the
8439 frame base was unavailable.
8440 (amd64_sigtramp_frame_unwind): Install
8441 amd64_sigtramp_frame_unwind_stop_reason.
8442 (amd64_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
8443 base_p if the frame base was computable.
8444 (amd64_epilogue_frame_unwind_stop_reason): New.
8445 (amd64_epilogue_frame_this_id): Don't build a frame id if the
8446 frame base was unavailable.
8447 (amd64_epilogue_frame_unwind): Install
8448 amd64_epilogue_frame_unwind_stop_reason.
8449 * i386-tdep.c: Include "exceptions.h".
8450 (struct i386_frame_cache): New field "base_p".
8451 (i386_init_frame_cache): Clear it.
8452 (i386_frame_cache_1): New, factored out from amd64_frame_cache.
8453 Avoid reading registers with functions that throw if the register
8454 is not necessary to compute the frame base.
8455 (i386_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
8456 swallowing NOT_AVAILABLE_ERROR.
8457 (i386_frame_unwind_stop_reason): New.
8458 (i386_frame_this_id): Don't build a frame id if the frame base was
8459 unavailable.
8460 (i386_frame_prev_register): Handle unavailable SP.
8461 (i386_frame_unwind): Install i386_frame_unwind_stop_reason.
8462 (i386_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
8463 base_p if the frame base was computable.
8464 (i386_epilogue_frame_unwind_stop_reason): New.
8465 (i386_epilogue_frame_this_id): Don't build a frame id if the frame
8466 base was unavailable.
8467 (i386_epilogue_frame_unwind): Install
8468 i386_epilogue_frame_unwind_stop_reason.
8469 (i386_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
8470 base_p if the frame base was computable.
8471 (i386_sigtramp_frame_unwind_stop_reason): New.
8472 (i386_sigtramp_frame_this_id): Don't build a frame id if the frame
8473 base was unavailable.
8474 (i386_sigtramp_frame_unwind): Install
8475 i386_sigtramp_frame_unwind_stop_reason.
8476 * sentinel-frame.c (sentinel_frame_prev_register): Use the value
8477 type's size, not the register's.
8478 (sentinel_frame_unwind): Install default_frame_unwind_stop_reason.
8479
8480 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind): Install
8481 default_frame_unwind_stop_reason.
8482 * alpha-tdep.c (alpha_sigtramp_frame_unwind)
8483 (alpha_heuristic_frame_unwind): Ditto.
8484 * amd64obsd-tdep.c (amd64obsd_trapframe_unwind): Ditto.
8485 * arm-tdep.c (arm_prologue_unwind, arm_stub_unwind): Ditto.
8486 * avr-tdep.c (avr_frame_unwind): Ditto.
8487 * cris-tdep.c (cris_sigtramp_frame_unwind, cris_frame_unwind):
8488 Ditto.
8489 * frv-linux-tdep.c (frv_linux_sigtramp_frame_unwind): Ditto.
8490 * frv-tdep.c (frv_frame_unwind): Ditto.
8491 * h8300-tdep.c (h8300_frame_unwind): Ditto.
8492 * hppa-hpux-tdep.c (hppa_hpux_sigtramp_frame_unwind): Ditto.
8493 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind): Ditto.
8494 * hppa-tdep.c (hppa_frame_unwind, hppa_fallback_frame_unwind)
8495 (hppa_stub_frame_unwind): Ditto.
8496 * i386obsd-tdep.c (i386obsd_trapframe_unwind): Ditto.
8497 * ia64-tdep.c (ia64_frame_unwind, ia64_sigtramp_frame_unwind)
8498 (ia64_libunwind_frame_unwind)
8499 (ia64_libunwind_sigtramp_frame_unwind): Ditto.
8500 * iq2000-tdep.c (iq2000_frame_unwind): Ditto.
8501 * lm32-tdep.c (lm32_frame_unwind): Ditto.
8502 * m32c-tdep.c (m32c_unwind): Ditto.
8503 * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_unwind): Ditto.
8504 * m32r-tdep.c (m32r_frame_unwind): Ditto.
8505 * m68hc11-tdep.c (m68hc11_frame_unwind): Ditto.
8506 * m68k-tdep.c (m68k_frame_unwind): Ditto.
8507 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_unwind): Ditto.
8508 * m88k-tdep.c (m88k_frame_unwind): Ditto.
8509 * mep-tdep.c (mep_frame_unwind): Ditto.
8510 * microblaze-tdep.c (microblaze_frame_unwind): Ditto.
8511 * mips-tdep.c (mips_insn16_frame_unwind, mips_insn32_frame_unwind)
8512 (mips_stub_frame_unwind): Ditto.
8513 * mn10300-tdep.c (mn10300_frame_unwind): Ditto.
8514 * moxie-tdep.c (moxie_frame_unwind): Ditto.
8515 * mt-tdep.c (mt_frame_unwind): Ditto.
8516 * ppc-linux-tdep.c (ppu2spu_unwind): Ditto.
8517 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_unwind): Ditto.
8518 * rs6000-tdep.c (rs6000_frame_unwind): Ditto.
8519 * s390-tdep.c (s390_frame_unwind, s390_stub_frame_unwind)
8520 (s390_sigtramp_frame_unwind): Ditto.
8521 * score-tdep.c (score_prologue_unwind): Ditto.
8522 * sh-tdep.c (sh_frame_unwind): Ditto.
8523 * sh64-tdep.c (sh64_frame_unwind): Ditto.
8524 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_unwind): Ditto.
8525 * sparc-tdep.c (sparc32_frame_unwind): Ditto.
8526 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_unwind): Ditto.
8527 * sparc64-tdep.c (sparc64_frame_unwind): Ditto.
8528 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_unwind): Ditto.
8529 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_unwind): Ditto.
8530 * sparc64obsd-tdep.c (sparc64obsd_frame_unwind)
8531 (sparc64obsd_trapframe_unwind): Ditto.
8532 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_unwind): Ditto.
8533 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_unwind): Ditto.
8534 * spu-tdep.c (spu_frame_unwind, spu2ppu_unwind): Ditto.
8535 * v850-tdep.c (v850_frame_unwind): Ditto.
8536 * vax-tdep.c (vax_frame_unwind): Ditto.
8537 * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_unwind): Ditto.
8538 * xstormy16-tdep.c (frame_unwind xstormy16_frame_unwind): Ditto.
8539 * xtensa-tdep.c (xtensa_unwind): Ditto.
8540
f23d1b92
PA
85412011-03-18 Pedro Alves <pedro@codesourcery.com>
8542
8543 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Assume
8544 there's always a frame. Use get_frame_pc_if_available instead of
8545 get_frame_pc, and if there's no PC available, don't look up a
8546 symtab.
8547
1d4f5741
PA
85482011-03-18 Pedro Alves <pedro@codesourcery.com>
8549
8550 * stack.c (print_frame_local_vars, print_frame_arg_vars): Handle
8551 unavailable PC.
8552
dba09041
PA
85532011-03-18 Pedro Alves <pedro@codesourcery.com>
8554
8555 * tracepoint.c (set_traceframe_context): Handle unavailable PC
8556 gracefully.
8557
9a26e44c
PA
85582011-03-18 Pedro Alves <pedro@codesourcery.com>
8559
8560 * frame.h (frame_unwind_caller_pc_if_available): Declare.
8561 * frame.c (frame_unwind_caller_pc_if_available): New.
8562 * stack.c (frame_info): Handle unavailable PC.
8563
85642011-03-18 Pedro Alves <pedro@codesourcery.com>
8565
8566 * frame.c (frame_unwind_pc): Rename to ...
8567 (frame_unwind_pc_if_available): ... this. New `pc' output
8568 parameter. Change return type to int. Gracefully handle
8569 gdbarch_unwind_pc throwing NOT_AVAILABLE_ERROR. Return 0 if that
8570 happened, or 1 otherwise.
8571 (frame_unwind_pc): Reimplement on top of
8572 frame_unwind_pc_if_available.
8573 (get_frame_func): Rename to ...
8574 (get_frame_func_if_available): New `pc' output parameter. Change
8575 return type to int. Gracefully handle the PC not being available.
8576 (get_frame_func): Reimplement on top of
8577 get_frame_func_if_available.
8578 (select_frame): Handle the PC being unavailable.
8579 (get_prev_frame): Handle the PC being unavailable.
8580 (get_frame_pc_if_available): New.
8581 (get_frame_address_in_block_if_available): New.
8582 (find_frame_sal): Handle the frame PC not being available.
8583 * frame.h (get_frame_pc_if_available): Declare.
8584 (get_frame_address_in_block_if_available): Declare.
8585 (get_frame_func_if_available): Declare.
8586 * stack.c (print_frame_info): Handle the PC being unavailable.
8587 (find_frame_funname): Ditto.
8588 (print_frame): Handle the PC being unavailable.
8589 (get_frame_language): Ditto.
8590 * blockframe.c (get_frame_block): Ditto.
8591 * macroscope.c (default_macro_scope): Ditto.
8592 * tui/tui-stack.c (tui_show_frame_info): Ditto.
8593
85942011-03-18 Pedro Alves <pedro@codesourcery.com>
8595
8596 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Catch
8597 NOT_AVAILABLE_ERROR when evaluating the location expression.
8598
85992011-03-18 Pedro Alves <pedro@codesourcery.com>
8600
8601 * dwarf2loc.c (read_pieced_value): Handle get_frame_register_bytes
8602 returning that the register piece is unavailable/optimized out.
8603 (write_pieced_value): Handle get_frame_register_bytes returning
8604 that the register piece is unavailable/optimized out when doing a
8605 read-modify write of a bitfield.
8606 * findvar.c (value_from_register): Handle get_frame_register_bytes
8607 returning that the register piece is unavailable/optimized out.
8608 * frame.c (get_frame_register_bytes): New parameters `optimizedp'
8609 and `unavailablep'. Throw error on bad debug info. Use
8610 frame_register instead of frame_register_read, to fill in the new
8611 arguments.
8612 * frame.h (get_frame_register_bytes): New parameters `optimizedp'
8613 and `unavailablep'.
8614 * valops.c: (value_assign): Adjust, and handle
8615 get_frame_register_bytes failing.
8616 * spu-tdep.c: Include exceptions.h.
8617 (spu_software_single_step): Adjust, and handle
8618 get_frame_register_bytes failing.
8619 (spu_get_longjmp_target): Ditto.
8620 * gdbarch.sh (register_to_value): Change to return int. New
8621 parameters `optimizedp' and `unavailablep'.
8622 * gdbarch.h, gdbarch.c: Regenerate.
8623 * i386-tdep.c (i386_register_to_value): Adjust to new
8624 gdbarch_register_to_value interface.
8625 * i387-tdep.c (i387_register_to_value): Ditto.
8626 * i387-tdep.h (i387_register_to_value): Ditto.
8627 * alpha-tdep.c (alpha_register_to_value): Ditto.
8628 * ia64-tdep.c (ia64_register_to_value): Ditto.
8629 * m68k-tdep.c (m68k_register_to_value): Ditto.
8630 * mips-tdep.c (mips_register_to_value): Ditto.
8631 * rs6000-tdep.c (rs6000_register_to_value): Ditto.
8632
0fdb4f18
PA
86332011-03-18 Pedro Alves <pedro@codesourcery.com>
8634
8635 * findvar.c (value_of_register): Mark the value as unavailable, if
8636 the register is unavailable.
8637 * frame.h (frame_register_unwind): New `unavailablep' parameter.
8638 (frame_register): New `unavailablep' parameter.
8639 (frame_register_read): Update comment.
8640 * frame.c (frame_register_unwind): New `unavailablep' parameter.
8641 Set it if the register is unavailable. If the register is
8642 unavailable, clear the output buffer.
8643 (frame_register): New `unavailablep' parameter. Pass it down.
8644 (frame_unwind_register): Adjust.
8645 (put_frame_register): Adjust.
8646 (frame_register_read): Adjust. Also return false if the register
8647 is not available.
8648 (frame_register_unwind_location): Adjust.
8649 * sentinel-frame.c (sentinel_frame_prev_register): If the register
8650 is unavailable, mark the value accordingly.
8651 * stack.c (frame_info): Handle unavailable registers.
8652
e69aa73e
PA
86532011-03-18 Pedro Alves <pedro@codesourcery.com>
8654
8655 * mi/mi-main.c (register_changed_p): Handle REG_UNAVAILABLE, and
8656 simplify, using regcache_cooked_read.
8657
05d1431c
PA
86582011-03-18 Pedro Alves <pedro@codesourcery.com>
8659
8660 * regcache.h (regcache_raw_read, regcache_raw_read_signed)
8661 (regcache_raw_read_unsigned, regcache_raw_read_signed)
8662 (regcache_raw_read_unsigned, regcache_raw_read_part)
8663 (regcache_cooked_read, regcache_cooked_read_signed)
8664 (regcache_cooked_read_unsigned, regcache_cooked_read_part)
8665 (regcache_cooked_read_ftype): Change return to enum
8666 register_status.
8667 * regcache.c: Include exceptions.h
8668 (regcache_save): Adjust to handle REG_UNAVAILABLE registers.
8669 (do_cooked_read): Change return to enum register_status. Always
8670 forward to regcache_cooked_read.
8671 (regcache_raw_read): Change return to enum register_status. If
8672 the register is not REG_VALID, memset the buffer. Return the
8673 register's status.
8674 (regcache_raw_read_signed): Handle non-REG_VALID registers and
8675 return the register's status.
8676 (regcache_raw_read_unsigned): Ditto.
8677 (regcache_cooked_read): Change return to enum register_status.
8678 Assert that with read-only regcaches, the register's status must
8679 be known. If the regcache is read-only, and the register is not
8680 REG_VALID, memset the buffer. Return the register's status.
8681 (regcache_cooked_read_signed): Change return to enum
8682 register_status. Handle non-REG_VALID registers and return the
8683 register's status.
8684 (regcache_cooked_read_unsigned): Change return to enum
8685 register_status. Handle non-REG_VALID registers and return the
8686 register's status.
8687 (regcache_xfer_part, regcache_raw_read_part)
8688 (regcache_cooked_read_part): Change return to enum
8689 register_status. Return the register's status.
8690 (regcache_read_pc): Throw NOT_AVAILABLE_ERROR if the register is
8691 unavailable.
8692 (regcache_dump): Handle unavailable cooked registers.
8693 * frame.c (do_frame_register_read): Adjust interface to match
8694 regcache_cooked_read_ftype.
8695 * gdbarch.sh (pseudo_register_read): Change return to enum
8696 register_status.
8697 * gdbarch.h, gdbarch.c: Regenerate.
8698
8699 * i386-tdep.h (i386_pseudo_register_read): Change return to enum
8700 register_status.
8701 * i386-tdep.c (i386_pseudo_register_read): Change return to enum
8702 register_status. If reading a raw register indicates the raw
8703 register is not valid, return the raw register's status,
8704 otherwise, return REG_VALID.
8705 * amd64-tdep.c (amd64_pseudo_register_read): Change return to enum
8706 register_status. Handle non-REG_VALID raw registers and return
8707 the register's status.
8708 * arm-tdep.c (arm_neon_quad_read)
8709 (arm_pseudo_read): Change return to enum register_status. Handle
8710 non-REG_VALID raw registers and return the register's status.
8711 * avr-tdep.c (avr_pseudo_register_read): Ditto.
8712 * frv-tdep.c (frv_pseudo_register_read): Ditto.
8713 * h8300-tdep.c (h8300_pseudo_register_read): Ditto.
8714 * hppa-tdep.c (hppa_pseudo_register_read): Ditto.
8715 * m32c-tdep.c (m32c_move_reg_t): Change return to enum
8716 register_status.
8717 (m32c_raw_read, m32c_raw_write, m32c_banked_read)
8718 (m32c_banked_write, m32c_sb_read, m32c_sb_write, m32c_part_read)
8719 (m32c_part_write, m32c_cat_read, m32c_cat_write)
8720 (m32c_r3r2r1r0_read, m32c_r3r2r1r0_write)
8721 (m32c_pseudo_register_read): Change return to enum
8722 register_status. Adjust.
8723 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Change return to
8724 enum register_status. Return the register's status.
8725 * mep-tdep.c (mep_pseudo_cr32_read): Change return to enum
8726 register_status. Return the register's status.
8727 (mep_pseudo_cr64_read, mep_pseudo_register_read): Ditto.
8728 * mips-tdep.c (mips_pseudo_register_read): Ditto.
8729 * mt-tdep.c (mt_pseudo_register_read): Ditto.
8730 * rs6000-tdep.c (move_ev_register_func): New typedef.
8731 (e500_move_ev_register): Use it. Change return to enum
8732 register_status. Return the register's status.
8733 (do_regcache_raw_read): New function.
8734 (do_regcache_raw_write): New function.
8735 (e500_pseudo_register_read): Change return to enum
8736 register_status. Return the register's status. Use
8737 do_regcache_raw_read.
8738 (e500_pseudo_register_write): Adjust. Use do_regcache_raw_write.
8739 (dfp_pseudo_register_read): Change return to enum register_status.
8740 Return the register's status.
8741 (vsx_pseudo_register_read): Ditto.
8742 (efpr_pseudo_register_read): Ditto.
8743 (rs6000_pseudo_register_read): Ditto.
8744 * s390-tdep.c (s390_pseudo_register_read): Change return to enum
8745 register_status. Return the register's status.
8746 * sh64-tdep.c (pseudo_register_read_portions): New function.
8747 (sh64_pseudo_register_read): Change return to enum
8748 register_status. Use pseudo_register_read_portions. Return the
8749 register's status.
8750 * ia64-tdep.c (ia64_pseudo_register_read): Change return to enum
8751 register_status. Return the register's status.
8752 * sh-tdep.c (pseudo_register_read_portions): New function.
8753 (sh_pseudo_register_read): Change return to enum register_status.
8754 Use pseudo_register_read_portions. Return the register's status.
8755 * sparc-tdep.c (sparc32_pseudo_register_read): Change return to
8756 enum register_status. Return the register's status.
8757 * sparc64-tdep.c (sparc64_pseudo_register_read): Ditto.
8758 * spu-tdep.c (spu_pseudo_register_read_spu)
8759 (spu_pseudo_register_read): Ditto.
8760 * xtensa-tdep.c (xtensa_register_read_masked)
8761 (xtensa_pseudo_register_read): Ditto.
8762 * bfin-tdep.c (bfin_pseudo_register_read): Ditto.
8763
e10abd8f
PM
87642011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
8765
8766 * python/py-value.c (valpy_getitem): Fix formatting of error function
8767 call.
8768
7ea6d463
PM
87692011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
8770
8771 ARI fixes: Add missing internationalization markups throughout
8772 C source files.
8773 * darwin-nat-info.c: Ditto.
8774 * record.c: Ditto.
8775 * remote.c: Ditto.
8776 * mi/mi-main.c: Ditto.
8777
001083c6
PM
87782011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
8779
8780 ARI fixes: Add missing internationalization markups throughout
8781 yacc files.
8782 * c-exp.y: Ditto.
8783 * cp-name-parser.y: Ditto.
8784 * f-exp.y: Ditto.
8785 * m2-exp.y: Ditto.
8786 * objc-exp.y: Ditto.
8787 * p-exp.y: Ditto.
8788
4f1cdeec
PM
87892011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
8790
8791 ARI fixes: Messages should have no trailing new lines.
8792 * darwin-nat.c (mach_check_error): Remove trailing new line from
8793 warning function call message.
8794 * record.c (bfdcore_read): Idem for error call.
8795
28e698f1
PM
87962011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
8797
8798 * common/signals.c (target_signal_from_host): Add _ markup to error
8799 function call message.
8800 (target_signal_to_host): Add _ markup and remove trailing new line
8801 from warning call message.
8802 (target_signal_from_command): Add _ markup to error function call
8803 message.
8804
99c3dc11
PM
88052011-03-18 Phil Muldoon <pmuldoon@redhat.com>
8806
f33edef8 8807 PR python/12149
99c3dc11
PM
8808
8809 * python/python.c (gdbpy_write): Accept a stream argument and
8810 operate to the appropriate stream.
8811 (gdbpy_flush): Likewise.
8812 (_initialize_python): Add stream constants.
8813 (finish_python_initialization): Add GdbOutputErrorFile class.
8814
c20800be
KY
88152011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
8816
8817 * MAINTAINERS: Add myself as a write-after-approval maintainer.
8818
f4a1794a
KY
88192011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
8820
8821 * amd64-tdep.c (amd64_relocate_instruction): Fix ordering of arguments
f33edef8
PP
8822 to store_signed_integer. Add debug message when relocating CALL
8823 instructions. Fix formatting of debug message.
8824 * i386-tdep.c (i386_relocate_instruction): Ditto.
f4a1794a 8825
d4862372
JB
88262011-03-17 Joel Brobecker <brobecker@gnat.com>
8827
8828 * target.h (struct target_ops): Remove to_lookup_symbol field.
8829 (target_lookup_symbol): Delete macro.
8830 * target.c (nosymbol, debug_to_lookup_symbol): Delete.
8831 (update_current_target, setup_target_debug): Remove handling
8832 of to_lookup_symbol target_ops field.
8833 * ada-tasks.c (get_known_tasks_addr): Remove use of
8834 target_lookup_symbol.
8835 * coffread.c (coff_symtab_read): Likewise.
8836 * dbxread.c (read_dbx_symtab): Ditto.
8837
d645e32e
JB
88382011-03-17 Joel Brobecker <brobecker@gnat.com>
8839
8840 PR gdb/12116:
8841 * configure.ac: Add getthrds declaration check.
8842 * configure, config.in: Regenerate.
8843 * aix-thread.c (getthrds): Declare only if not already declared
8844 in procinfo.h. More declaration out of get_signaled_thread to
8845 global scope.
8846
29703da4
PM
88472011-03-17 Phil Muldoon <pmuldoon@redhat.com>
8848
8849 * python/py-symtab.c: Populate symtab_object_methods,
8850 sal_object_methods.
8851 (stpy_is_valid): New function.
8852 (salpy_is_valid): Ditto.
8853 * python/py-symbol.c: Declare symbol_object_methods. Populate.
8854 (sympy_is_valid): New function.
8855 * python/py-objfile.c: Declare objfile_object_methods. Populate.
8856 (objfpy_is_valid): New function.
8857 * python/py-inferior.c: Populate inferior_object_methods.
8858 (infpy_is_valid): New function.
8859 * python/py-infthread.c: Populate thread_object_methods.
8860 (thpy_is_valid): New function.
8861 * python/py-block.c: Declare block_object_methods. Populate. Declare
8862 block_iterator_object_methods. Populate.
8863 (blpy_is_valid): New function.
8864 (blpy_iter_is_valid): Ditto.
8865
c00f8484
KS
88662011-03-16 Keith Seitz <keiths@redhat.com>
8867
8868 * linespec.c (find_methods): Canonicalize NAME before looking
8869 up the symbol.
8870 (name_end): New function.
8871 (keep_name_info): New function.
8872 (decode_line_1): Use keep_name_info.
8873 (decode_compound): Likewise.
8874 * cli/cli-utils.h (remove_trailing_whitespace): New function.
8875 * cli/cli-utils.c (remove_trailing_whitespace): Likewise.
8876
8877 PR c++/12273
8878 * linespec.c (locate_first_half): Keep overload information, too.
8879 (decode_compound): Use a string to represent break characters
8880 to escape the loop.
8881 If P points to a break character, do not increment it.
8882 For C++ and Java, keep overload information and relevant keywords.
8883 If we cannot find a symbol, search the minimal symbols.
8884
8885 PR c++/11734
8886 * linespec.c (decode_compound): Rename SAVED_ARG to
8887 THE_REAL_SAVED_ARG.
8888 Make a copy of THE_REAL_SAVED_ARG in SAVED_ARG and strip
8889 single-quotes.
8890 Pass a valid block to lookup_symbol.
8891 (lookup_prefix_sym): Likewise.
8892 (find_method): Construct search name based on SYM_CLASS instead
8893 of SAVED_ARG.
8894 * psymtab.c (lookup_partial_symbol): Add language parameter.
8895 (lookup_symbol_aux_psymtabs): Likewise.
8896 Don't assume that the psymtab we found was the right one. Search
8897 for the desired symbol in the symtab to be certain.
8898 (psymtab_search_name): New function.
8899 (lookup_partial_symbol): Use psymtab_search_name.
8900 Add language parameter.
8901 (read_symtabs_for_function): Add language parameter and pass to
8902 lookup_partial_symbol.
8903 (find_symbol_file_from_partial): Likewise.
8904
c91513d8
PP
89052011-03-16 Paul Pluzhnikov <ppluzhnikov@google.com>
8906
8907 PR gdb/12528
8908 * dwarf2read.c (noop_record_line): New function.
8909 (dwarf_decode_lines): Ignore line tables for GCd functions.
8910
b37520b6
PM
89112011-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
8912
8913 Fix ARI warnings about new lines at the end of messages, which
8914 are unneeded as there is a new line added at the end of the message
8915 automatically.
8916 * darwin-nat.c (darwin_stop_inferior): Ditto.
8917 * dec-thread.c (dec_thread_get_ada_task_ptid): Ditto.
8918 * dfp.c (decimal_to_number): Ditto.
8919 * exec.c (print_section_info): Ditto.
8920 * i386-darwin-nat.c (darwin_set_sstep): Ditto.
8921 * osdata.c (get_osdata): Ditto.
8922 * record.c (bfdcore_write): Ditto.
8923 * remote-mips.c (mips_readchar): Ditto.
8924 * remote.c (read_ptid): Ditto.
8925 * ser-mingw.c (ser_windows_raw): Ditto.
8926 * tracepoint.c (add_local_symbols): Ditto.
8927 * windows-nat.c (fake_create_process): Ditto.
8928
b08ee6a2
TT
89292011-03-16 Tom Tromey <tromey@redhat.com>
8930
8931 * tracepoint.c (stop_tracing): Don't declare.
8932 * event-top.c (after_char_processing_hook): Add `(void)'.
8933
9a6f1302
PM
89342011-03-16 Phil Muldoon <pmuldoon@redhat.com>
8935
8936 * NEWS: Add Parameter sub-classing description.
8937
7ceb86b1
KT
89382011-03-16 Kai Tietz <ktietz@redhat.com>
8939
8940 * MAINTAINERS: Update my e-mail address.
8941
efeff6cf
AT
89422011-03-15 Andreas Tobler <andreast@fgznet.ch>
8943
8944 * MAINTAINERS: Add myself for write after approval privileges.
8945
681c238c
MS
89462011-03-15 Michael Snyder <msnyder@vmware.com>
8947
f3df5b08
MS
8948 * frame.c (find_frame_sal): Assert sym is not null.
8949
13f6513c
MS
8950 * dbxread.c (process_one_symbol): Assert 'name' is not null.
8951
50412521
MS
8952 * objc-lang.c (selectors_info): Check strchr for null result.
8953
681c238c
MS
8954 * stabsread.c (define_symbol): Guard against bad stabstring input.
8955
6ced1581
PM
89562011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
8957
8958 Remove trailing spaces and tabulations from pascal language
8959 support sources.
8960 p-exp.y: Ditto.
8961 p-lang.c: Ditto.
8962 p-lang.h: Ditto.
8963 p-valprint.c: Ditto.
8964
9373cf26
JK
89652011-03-15 Jan Kratochvil <jan.kratochvil@redhat.com>
8966
8967 * dwarf2read.c (dwarf2_get_pc_bounds): Require HIGH strictly higher
8968 than LOW. Comment it.
8969 (read_partial_die): Call complaint for inappropriate zero LOWPC or
8970 HIGHPC not strictly higher than LOWPC.
8971
9a1edae6
PM
89722011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
8973
8974 Fix formatting of function declarations returning a pointer in
8975 previous commit.
8976 * varobj.c (varobj_add_child): Ditto.
8977 * hppa-tdep.h (hppa_init_objfile_priv_data): Ditto.
8978 * inferior.h (get_displaced_step_closure_by_addr): Ditto.
8979
24e9cda0
UW
89802011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
8981
8982 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Add support
8983 for the "generic" vector ABI used with GCC 4.3 and later.
8984 (ppc64_sysv_abi_return_value): Likewise.
8985
89862011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
81b4675a
UW
8987
8988 * infcall.c (call_function_by_hand): Function return value is
8989 always a non_lval, even when using struct_return.
8990
c9174737
PA
89912011-03-15 Pedro Alves <pedro@codesourcery.com>
8992
8993 * printcmd.c (ALL_DISPLAYS_SAFE): New.
8994 (map_display_numbers): New.
8995 (do_delete_display): New.
8996 (undisplay_command): Use map_display_numbers.
8997 (do_enable_disable_display): New.
8998 (enable_disable_display_command): New function.
8999 (enable_display): Delete.
9000 (enable_display_command): New.
9001 (disable_display_command): Reimplement.
9002 (_initialize_printcmd): Adjust "enable display" command to use
9003 `enable_display_command' as callback.
9004
350c6c65
PM
90052011-03-14 Phil Muldoon <pmuldoon@redhat.com>
9006
9007 * NEWS: Add Python breakpoint 'stop' operation.
9008
824446ad
PM
90092011-03-14 Phil Muldoon <pmuldoon@redhat.com>
9010
9011 * NEWS: Delete duplicate entry. Fix typo.
9012
2021ad3a
PM
90132011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
9014
9015 Fix ARI warning about function names in first column.
9016 Put prototype declaration on same line as return type.
9017 * objc-exp.y: Ditto.
9018 * p-exp.y: Ditto.
9019 * python/py-stopevent.h: Ditto.
9020 For long function names, split parameters to
9021 allow function name on same line as return type.
9022 * solib-pa64.c: Ditto.
9023 * varobj.c: Ditto.
9024 * varobj.h: Ditto.
9025 For long function declaration, use single line.
9026 * hppa-tdep.h: Ditto.
9027 * inferior.h: Ditto.
9028
7371cf6d
PM
90292011-03-14 Phil Muldoon <pmuldoon@redhat.com>
9030
9031 * python/python.h: Declare gdbpy_should_stop and
9032 gdbpy_breakpoint_has_py_cond.
9033 * python/python.c: Add python.h to includes. Remove python.h from
9034 HAVE_PYTHON definition
9035 (gdbpy_should_stop): New dummy function.
9036 (gdbpy_breakpoint_has_py_cond): New dummy function.
9037 * python/py-breakpoint.c (bppy_init): Rewrite to allow
9038 sub-classing capabilities.
9039 (gdbpy_should_stop): New function.
9040 (gdbpy_breakpoint_has_py_cond): New function.
9041 (local_setattro): New function.
9042 * breakpoint.c (condition_command): Add check for Python 'stop'
9043 operation.
9044 (bpstat_check_breakpoint_conditions): Execute Python 'stop'
9045 operation function as part of stop/continue tests.
9046
37b50a69
TT
90472011-03-14 Tom Tromey <tromey@redhat.com>
9048
9049 PR gdb/12576:
9050 * dwarf2loc.c (dwarf_expr_dwarf_call): Remove 'return'.
9051 (needs_frame_dwarf_call): Likewise.
9052
eeae04df
PM
90532011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
9054
9055 Fix ARI warning about functions without parameters that do not
9056 use (void).
9057 * breakpoint.c (all_tracepoints): Replace () by (void).
9058 * f-exp.y (match_string_literal): Ditto.
9059 (yylex): Ditto.
9060 * m2-exp.y (yylex): Ditto.
9061 * mep-tdep.c (current_me_module): Ditto.
9062 (current_options): Ditto.
9063 (current_cop_data_bus_width): Ditto.
9064 (current_cr_names): Ditto.
9065 (current_cr_is_float): Ditto.
9066 (current_ccr_names): Ditto.
9067 * objc-exp.y (yylex): Ditto.
9068 * p-exp.y (yylex): Ditto.
9069 * remote.c (send_interrupt_sequence): Ditto.
9070 * tracepoint.c (current_trace_status): Ditto.
9071 * python/py-evts.c (gdbpy_initialize_py_events): Ditto.
9072 * python/py-prettyprint.c (push_dummy_python_frame): Ditto.
9073
6dc3565d
MS
90742011-03-11 Michael Snyder <msnyder@vmware.com>
9075
1427fe5e
MS
9076 * cli/cli-decode.h (CMD_LIST_AMBIGUOUS): Define.
9077 * cli/cli-decode.c (lookup_cmd_1): Use CMD_LIST_AMBIGUOUS.
9078 (lookup_cmd): Test for CMD_LIST_AMBIGUOUS.
9079 * completer.c (complete_line_internal): Use CMD_LIST_AMBIGUOUS.
9080 * top.c (set_verbose): Use CMD_LIST_AMBIGUOUS.
9081
60bc018f
MS
9082 * event-loop-c (delete_async_signal_handler): Assert prev_ptr.
9083 (delete_async_event_handler): Ditto.
9084
f3be5b64
MS
9085 * python/py-breakpoint.c (bppy_set_condition): Stop memory leak.
9086
4c2d5724
MS
9087 * python/py-breakpoint.c (bppy_get_commands): Fix memory leak.
9088
6dc3565d
MS
9089 * top.c (set_verbose): Assert showcmd was found.
9090
4e6ca6d5
MG
90912011-03-11 Maxim Grigoriev <maxim2405@gmail.com>
9092
9093 * xtensa-tdep.c (warning_once): Correct style issues.
9094
815a83e4
YQ
90952011-03-11 Yao Qi <yao@codesourcery.com>
9096
9097 * arm-tdep.c (copy_ldr_str_ldrb_strb): Remove redundant statements.
9098
f2eb0bc8
AS
90992011-03-11 Andreas Schwab <schwab@redhat.com>
9100
9101 * common/aclocal.m4: Remove.
9102
b801de47
MG
91032011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
9104
9105 * xtensa-tdep.c (windowing_enabled): Remove inline attribute.
9106 (xtensa_write_register, xtensa_read_register): Likewise.
9107 (xtensa_hextochar): Removed.
9108 (xtensa_init_reggroups): Replace xtensa_hextochar () by explicit code.
9109
dbab50de
MG
91102011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
9111
9112 * xtensa-tdep.c (xtensa_c0reg_t): Update comments.
c2a6b390 9113 (xtensa_call0_frame_cache_t): Update comments. New fields added.
dbab50de
MG
9114 (xtensa_alloc_frame_cache): Add initialization for new fields.
9115 (xtensa_frame_cache): Change the way how call0_frame_cache () is called.
9116 (warning_once): New function.
9117 (xtensa_insn_kind): New item c0opc_and.
9118 (call0_classify_opcode): Add the case for AND instruction.
c2a6b390
MG
9119 (call0_track_op): Change arguments. New local variable litbase.
9120 Add the case to handle c0opc_and. Update algorithms for c0opc_mov,
9121 c0opc_l32r, c0opc_s32i to take into account dynamic stack adjustments
9122 in the prologue.
dbab50de 9123 Add cases for c0opc_l32e, c0opc_s32e, c0opc_rfwo, c0opc_rfwu.
c2a6b390 9124 (call0_analyze_prologue): Update the comments. Change arguments.
dbab50de
MG
9125 Add the variety of updates to handle extended prologues, which now can
9126 conduct dynamic stack adjustments.
9127 (call0_frame_cache): Likewise.
9128 (xtensa_skip_prologue): Update call0_analyze_prologue () function call.
9129 (xtensa_gdbarch_init): Initialize xtensa_session_once_reported.
9130
b2c04452
MS
91312011-03-10 Michael Snyder <msnyder@vmware.com>
9132
f8f67713
MS
9133 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
9134 (cmd_qtframe): Ditto.
9135 (cmd_qtbuffer): Ditto.
9136 (cmd_bigqtbuffer): Ditto.
9137
197f0a60
TT
91382011-03-10 Tom Tromey <tromey@redhat.com>
9139
9140 * tracepoint.c (trace_actions_command): Update.
9141 * thread.c (thread_apply_command): Update.
9142 * reverse.c (delete_bookmark_command): Update.
9143 (bookmarks_info): Update.
9144 * printcmd.c (undisplay_command): Update.
9145 * memattr.c (mem_enable_command): Update.
9146 (mem_disable_command): Update.
9147 (mem_delete_command): Update.
9148 * inferior.c (detach_inferior_command): Update.
9149 (kill_inferior_command): Update.
9150 (remove_inferior_command): Update.
9151 * cli/cli-utils.h (struct get_number_or_range_state): New.
9152 (init_number_or_range): Declare.
9153 (get_number_or_range): Update.
9154 * cli/cli-utils.c (init_number_or_range): New function.
9155 (get_number_or_range): Change 'pp' parameter to 'state'. Remove
9156 static variables.
9157 (number_is_in_list): Update.
9158 * breakpoint.h (get_tracepoint_by_number): Update.
9159 * breakpoint.c (map_breakpoint_numbers): Update for change to
9160 get_number_or_range.
9161 (find_location_by_number): Use get_number, not
9162 get_number_or_range.
9163 (trace_pass_set_count): New function.
9164 (trace_pass_command): Update for change to get_number_or_range.
9165 Rework loop logic.
9166 (get_tracepoint_by_number): Remove 'multi_p' parameter; add
9167 'state' parameter.
9168
ecec24e6
PM
91692011-03-10 Phil Muldoon <pmuldoon@redhat.com>
9170
9171 * python/py-param.c (add_setshow_generic): Add set/show callback
9172 parameters. Register Python object context.
9173 (get_show_value): New function.
9174 (get_set_value): New function.
9175 (call_doc_function): New function.
9176 (get_doc_string): Move behind get_show_value/get_set_value.
9177
6d6c6b1f
JK
91782011-03-10 Andreas Tobler <andreast-list@fgznet.ch>
9179
9180 * fbsd-nat.c (fbsd_make_corefile_notes): Constify local `fname'.
9181
68d6df83
MG
91822011-03-09 Maxim Grigoriev <maxim2405@gmail.com>
9183
dbab50de 9184 * xtensa-tdep.c (xtensa_read_register): Add comment.
68d6df83
MG
9185 (xtensa_write_register): Likewise.
9186 (xtensa_hextochar): Add comment and update to match coding conventions.
9187 (xtensa_frame_cache, xtensa_return_value): Follow coding conventions.
9188 (execute_l32e, execute_s32e, execute_code): Update comments.
9189 (xtensa_exception_handler_t): Update to match coding conventions.
9190 (xtensa_insn_kind): Likewise.
9191
85c9d6a6
MS
91922011-03-09 Michael Snyder <msnyder@vmware.com>
9193
9194 * mi-cmd-disas.c (mi_cmd_disassemble): Fix memory leak.
9195
91495617
PA
91962011-03-09 Pedro Alves <pedro@codesourcery.com>
9197
9198 * nto-tdep.c (nto_find_and_open_solib): Constify local `base'.
9199
eb8c0621
TT
92002011-03-09 Tom Tromey <tromey@redhat.com>
9201
9202 * thread.c (restore_selected_frame): Handle frame_level == -1.
9203 (make_cleanup_restore_current_thread): Use
9204 get_selected_frame_if_set.
9205 * frame.h (get_selected_frame_if_set): Declare.
9206 * frame.c (get_selected_frame_if_set): New function.
9207
9f37bbcc
PA
92082011-03-09 Pedro Alves <pedro@codesourcery.com>
9209
9210 * cli/cli-cmds.c (shell_escape): Use lbasename.
9211 * coffread.c (coff_start_symtab): Constify parameter.
9212 (complete_symtab): Constify `name' parameter.
9213 (coff_symtab_read): Constify `filestring' local.
9214 (coff_getfilename): Constify return and `result' local.
9215 Use lbasename.
9216 * fbsd-nat.c (fbsd_make_corefile_notes): Use lbasename.
9217 * linux-fork.c (info_checkpoints_command): Use lbasename.
9218 * linux-nat.c (linux_nat_make_corefile_notes): Use lbasename.
9219 * minsyms.c (lookup_minimal_symbol): Use lbasename.
9220 * nto-tdep.c (nto_find_and_open_solib): Use lbasename.
9221 * procfs.c (procfs_make_note_section): Use lbasename.
9222 * tui/tui-io.c (printable_part): Constity return and parameter.
9223 Use lbasename.
9224 (print_filename): Constify parameters, and local `s'.
9225 (tui_rl_display_match_list): Constify local `temp'.
9226
f8de3c55
JK
92272011-03-09 Jan Kratochvil <jan.kratochvil@redhat.com>
9228
9229 Revert:
9230 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9231 Fix DWARF-3+ DW_AT_accessibility default assumption.
9232 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
9233 cu->header.version >= 3.
9234
d9837b00
YQ
92352011-03-09 Yao Qi <yao@codesourcery.com>
9236
9237 * common/Makefile.in: Remove.
9238 * common/configure: Remove.
9239 * common/configure.ac: Remove.
9240
e637a4f5
YQ
92412011-03-09 Yao Qi <yao@codesourcery.com>
9242
9243 Revert:
9244 2011-02-11 Yao Qi <yao@codesourcery.com>
9245
9246 * common/Makefile.in: Add copyright header.
9247
9248 2011-02-11 Yao Qi <yao@codesourcery.com>
9249
9250 * Makefile.in: Remove signals.o from COMMON_OBS. Link
9251 libcommon.a.
9252 * configure.ac: Add common to sub dir.
9253 * configure: Regenerate.
9254
f976a05d
MG
92552011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
9256
9257 * xtensa-tdep.c (call0_ret): New function.
9258 (xtensa_skip_prologue): Speed up analysis.
9259
57041825
MG
92602011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
9261
9262 * xtensa-tdep.c (xtensa_register_reggroup_p): Count in all registers
9263 while executing MI command -data-list-changed-registers.
9264
08b9c608
MG
92652011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
9266
9267 * xtensa-tdep.c (xtensa_read_register): New function.
9268 (xtensa_write_register): New function.
9269 (xtensa_find_register_by_name): New function.
9270 (xtensa_windowed_frame_cache): Update comments in type description.
9271 (xtensa_frame_cache): Likewise.
9272 (xtensa_window_interrupt_insn): New function.
9273 (xtensa_frame_cache): Add analysis for Xtensa Window Exception frames.
9274 (xtensa_insn_kind): Add new instructions.
9275 (rwx_special_register): New function.
9276 (call0_classify_opcode): Add new instructions to the analysis.
9277 (a0_saved, a7_saved, a11_saved): New variables.
9278 (a0_was_saved, a7_was_saved, a11_was_saved): New variables.
9279 (execute_l32e): New function.
9280 (execute_s32e): New function.
9281 (xtensa_exception_handler_t): New type.
9282 (execute_code): New function.
9283 (xtensa_window_interrupt_frame_cache): New function to conduct frame
9284 analysis for Xtensa Window Exception handlers.
9285
4d1acb11
MG
92862011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
9287
98689b25
MG
9288 * xtensa-tdep.c (TX_PS): New.
9289 (windowing_enabled): Update to count for Call0 ABI.
9290 (xtensa_hextochar): New.
9291 (xtensa_init_reggroups): Make algorithm generic.
9292 (xtensa_frame_cache): Use TX_PS on Tiny Xtensa.
9293
92942011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
9295
9296 * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): Update.
4d1acb11 9297
d3f323f3
MS
92982011-03-08 Michael Snyder <msnyder@vmware.com>
9299
3dcabaa8
MS
9300 * i386-tdep.c (i386_follow_jump): Check return value of
9301 target_read_memory.
9302 (i386_analyze_struct_return): Ditto.
9303 (i386_skip_probe): Ditto.
9304 (i386_match_insn): Ditto.
9305 (i386_skip_noop): Ditto.
9306 (i386_analyze_frame_setup): Ditto.
9307 (i386_analyze_register_saves): Ditto.
9308 (i386_skip_prologue): Ditto.
9309 (i386_skip_main_prologue): Ditto.
9310
13b3fd9b
MS
9311 * target.c (read_whatever_is_readable): Fix memory leak.
9312
d3f323f3
MS
9313 * i386-tdep.c (i386_process_record): Document fall through.
9314
421d5c74
JK
93152011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9316
9317 Fix DWARF-3+ DW_AT_accessibility default assumption.
9318 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
9319 cu->header.version >= 3.
9320
63154eca
PA
93212011-03-08 Pedro Alves <pedro@codesourcery.com>
9322
9323 * remote.c (remote_check_symbols): Skip if the target has no
9324 execution.
9325
f1a507a1
JB
93262011-03-08 Joel Brobecker <brobecker@adacore.com>
9327
9328 * target.c (read_whatever_is_readable): Reformat comment,
9329 with a minor typo fix. Minor reformatting of the code.
9330
36073a92
YQ
93312011-03-08 Yao Qi <yao@codesourcery.com>
9332
9333 * arm-tdep.c: Remove prototype declaration displaced_in_arm_mode.
9334 (displaced_read_reg): Add `dsc' parameter, remove `from' parameter.
9335 Use cached result instead of calling displaced_in_arm_mode again.
9336 (branch_write_pc, alu_write_pc, load_write_pc): Add `dsc' parameter.
9337 (displaced_write_reg, copy_preload, copy_preload_reg): Callers update.
9338 (cleanup_copro_load_store, copy_copro_load_store): Likewise.
9339 (cleanup_branch, copy_bx_blx_reg, copy_alu_imm): Likewise.
9340 (cleanup_alu_reg, copy_alu_reg, cleanup_alu_shifted_reg): Likewise.
9341 (copy_alu_shifted_reg, cleanup_load, cleanup_store): Likewise.
9342 (copy_extra_ld_st, copy_ldr_str_ldrb_strb): Likewise.
9343 (cleanup_block_load_all, cleanup_block_store_pc): Likewise.
9344 (cleanup_block_load_pc, copy_block_xfer): Likewise.
9345 * arm-linux-tdep.c (arm_linux_copy_svc): Callers update.
9346 (arm_catch_kernel_helper_return): Likewise.
9347 * gdb/arm-tdep.h : Update function declarations.
9348
d3f323f3 93492011-03-07 Michael Snyder <msnyder@vmware.com>
e6040cbd 9350
e0e40094
MS
9351 * dwarf2loc.c (indirect_pieced_value): Assert 'piece' not null.
9352
0b2381f5
MS
9353 * ser-unix.c (hardwire_get_tty_state): Stop memory leak.
9354
0350914a
MS
9355 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Free environment.
9356
69feea6f
MS
9357 * elfread.c (elf_symtab_read): Stop memory leak.
9358
e6040cbd
MS
9359 * main.c (captured_main): Fix memory leak.
9360
052874e8
AS
93612011-03-07 Andreas Schwab <schwab@linux-m68k.org>
9362
9363 * ada-lang.c (compare_names): Call is_name_suffix with string1
9364 instead of string2.
9365
b11896a5
TT
93662011-03-07 Tom Tromey <tromey@redhat.com>
9367
9368 * xcoffread.c (xcoff_sym_fns): Update.
9369 * symfile.h (struct sym_fns) <sym_read_psymbols>: New field.
9370 (enum symfile_add_flags) <SYMFILE_NO_READ>: New constant.
9371 * symfile.c (syms_from_objfile): Handle SYMFILE_NO_READ.
9372 (symbol_file_add_with_addrs_or_offsets): Likewise.
9373 (reread_symbols): Handle OBJF_PSYMTABS_READ.
9374 * somread.c (som_sym_fns): Update.
9375 * psymtab.h (require_partial_symbols): Declare.
9376 * psymtab.c (require_partial_symbols): New function.
9377 (ALL_OBJFILE_PSYMTABS_REQUIRED): New macro.
9378 (ALL_OBJFILE_PSYMTABS): Undef.
9379 (ALL_PSYMTABS): Move from psympriv.h.
9380 (lookup_partial_symtab, find_pc_sect_psymtab)
9381 (lookup_symbol_aux_psymtabs, relocate_psymtabs)
9382 (find_last_source_symtab_from_partial)
9383 (forget_cached_source_info_partial)
9384 (print_psymtab_stats_for_objfile, read_symtabs_for_function)
9385 (expand_partial_symbol_tables, read_psymtabs_with_filename)
9386 (map_symbol_names_psymtab, map_symbol_filenames_psymtab)
9387 (find_symbol_file_from_partial, map_matching_symbols_psymtab)
9388 (expand_symtabs_matching_via_partial, maintenance_info_psymtabs):
9389 Use ALL_OBJFILE_PSYMTABS_REQUIRED.
9390 * psympriv.h (ALL_PSYMTABS): Move to psymtab.c.
9391 * objfiles.h (OBJF_PSYMTABS_READ): New macro.
9392 * objfiles.c (objfile_has_partial_symbols): Handle lazily-read
9393 psymtabs.
9394 * mipsread.c (ecoff_sym_fns): Update.
9395 * machoread.c (macho_sym_fns): Update.
9396 * elfread.c (elf_symfile_read): Set up for lazy psymtab reading.
9397 (read_psyms): New function.
9398 (elf_sym_fns, elf_sym_fns_gdb_index): Update.
9399 (elf_sym_fns_lazy_psyms): New global.
9400 * dwarf2read.c (dwarf2_initialize_objfile): Don't call
9401 dwarf2_build_psymtabs.
9402 * dbxread.c (aout_sym_fns): Update.
9403 * coffread.c (coff_sym_fns): Update.
9404
fda326dd
TT
94052011-03-07 Tom Tromey <tromey@redhat.com>
9406
9407 * infrun.c (print_exited_reason): Include inferior id and pid in
9408 message.
9409
aeaec162
TT
94102011-03-07 Tom Tromey <tromey@redhat.com>
9411
9412 * target.h (struct target_ops) <to_has_execution>: Add ptid_t
9413 parameter.
9414 (target_has_execution_1): Update.
9415 (target_has_execution_current): Declare.
9416 (target_has_execution): Call target_has_execution_current.
9417 (default_child_has_execution): Update.
9418 * target.c (default_child_has_execution): Add 'the_ptid'
9419 parameter.
9420 (target_has_execution_1): Likewise.
9421 (target_has_execution_current): New function.
9422 (add_target): Update.
9423 (init_dummy_target): Update.
9424 * remote-m32r-sdi.c (m32r_has_execution): New function.
9425 (init_m32r_ops): Use it.
9426 * record.c (record_core_has_execution): Now static. Add
9427 'the_ptid' parameter.
9428 * inferior.c (have_live_inferiors): Don't save current thread.
9429 Use target_has_execution_1.
9430
08e14083
YQ
94312011-03-07 Yao Qi <yao@codesourcery.com>
9432
9433 * Makefile.in (aclocal_m4_deps): Remove gnulib/m4/memcmp.m4.
9434
c05d19c5
JB
94352011-03-07 Joel Brobecker <brobecker@adacore.com>
9436
9437 * elfread.c (elf_symtab_read): Minor reformatting.
9438
3e6ef9e4
JB
94392011-03-07 Joel Brobecker <brobecker@adacore.com>
9440
9441 * objc-lang.c (selectors_info): Minor reformatting.
9442
dbb8534f
JB
94432011-03-07 Joel Brobecker <brobecker@adacore.com>
9444
9445 * ada-lang.c (compare_names): Add FALLTHROUGH comment.
9446
dd70cc93
JB
94472011-03-07 Joel Brobecker <brobecker@adacore.com>
9448 Michael Snyder <msnyder@vmware.com>
9449
9450 * ada-valprint.c (ada_val_print_array): Move the declaration of
9451 "byte_order" and "elttype" inside the block where these variables
9452 are actually used. Remove some special handling for the case
9453 where "elttype" and "eltlen" are null. Replace by a comment
9454 and a couple of assertion checks.
9455
b27cf2b3
MS
94562011-03-05 Michael Snyder <msnyder@vmware.com>
9457
9458 * source.c (add_path): Replace semicolon at end of block.
9459 * dwarf2expr.c (execute_stack_op): Ditto.
9460
5387a0c6
MF
94612011-03-05 Mike Frysinger <vapier@gentoo.org>
9462
9463 * bfin-tdep.c: Include sim-regno.h and gdb/sim-bfin.h.
9464 * configure.tgt (bfin-*-*linux*): Define gdb_sim.
9465 (bfin-*-*): Likewise.
9466
e3aa49af
MS
94672011-03-05 Michael Snyder <msnyder@vmware.com>
9468
82ae4854
MS
9469 * dwarf2expr.c (execute_stack_op): Delete superfluous semicolon.
9470 * mdebugread.c (parse_symbol): Ditto.
9471 * parse.c (parse_exp_in_context): Ditto.
9472 * source.c (add_path): Ditto.
9473 * utils.c (gnu_debuglink_crc32): Ditto.
9474 * varobj.c (variable_language): Ditto.
9475
e3aa49af
MS
9476 * linux-tdep.c (linux_get_siginfo_type): Stop memory leak.
9477
154f592e
MS
94782011-03-04 Michael Snyder <msnyder@vmware.com>
9479
da3ecdc6
MS
9480 * linux-fork.c (inferior_call_waitptid): Fix copy/paste error.
9481
9cc89665
MS
9482 * symfile.c (simple_overlay_update): Check for null return value
9483 from lookup_minimal_symbol.
9484
154f592e
MS
9485 * xml-syscall.c (syscall_start_syscall): Assert name is non null.
9486
63ffa6ee
TJB
94872011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
9488
9489 * eval.c (parse_and_eval_address_1): Remove function.
9490 * linespec.c (decode_indirect): Call parse_to_comma_and_eval
9491 instead of parse_and_eval_address_1.
9492 * value.h (parse_and_eval_address_1): Remove prototype.
9493
a17d146e
MS
94942011-03-04 Michael Snyder <msnyder@vmware.com>
9495
9496 * remote.c (putpkt_binary): Document that case stmt falls through.
9497
1a6a67de
TJB
94982011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
9499
9500 * breakpointc (print_it_typical): Move NULL check from here...
9501 (print_bp_stop_message): ... to here.
9502
488919c4
MS
95032011-03-04 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
9504
9505 * breakpoint.c (enable_command): Use break instead of continue,
9506 and fill in a missing break.
9507 (disable_command): Ditto.
9508
1e182ce8
UW
95092011-03-04 Ulrich Weigand <ulrich.weigand@linaro.org>
9510
9511 * inflow.c (terminal_init_inferior_with_pgrp): Copy ttystate.
9512 (terminal_save_ours): Remove misleading comment.
9513 (inflow_inferior_data_cleanup): Free ttystate.
9514 (inflow_inferior_exit): Likewise.
9515 (copy_terminal_info): Copy ttystate.
9516
9517 * serial.c (serial_copy_tty_state): New function.
9518 * serial.h (serial_copy_tty_state): Add prototype.
9519 (struct serial_ops): Add copy_tty_state callback.
9520 * ser-base.c (ser_base_copy_tty_state): New function.
9521 * ser-base.h (ser_base_copy_tty_state): Add prototype.
9522 * ser-go32.c (dos_copy_tty_state): New function.
9523 (dos_ops): Install copy_tty_state callback.
9524 * ser-mingw.c (_initialize_ser_windows): Likewise.
9525 * ser-pipe.c (_initialize_ser_pipe): Likewise.
9526 * ser-unix.c (hardwire_copy_tty_state): New function.
9527 (_initialize_ser_hardwire): Install it.
9528
b2c5f112
MS
95292011-03-04 Michael Snyder <msnyder@vmware.com>
9530
2abae994
MS
9531 * breakpoint.c (create_breakpoint): Add missing break statement.
9532
7f5936f9
MS
9533 Reverting this patch:
9534 * infcall.c (call_function_by_hand): Add break statements for lint.
9535
b2c5f112
MS
9536 Reverting this patch:
9537 * cli/cli-script.c (script_from_file): Add break for lint.
9538
42b1321c
MS
95392011-03-04 Michael Snyder <msnyder@vmware.com>
9540
9541 * solib.c (reload_shared_libraries_1): Close memory leak.
9542
3e2a0cee
TT
95432011-03-03 Tom Tromey <tromey@redhat.com>
9544
9545 PR gdb/12538:
9546 * dwarf2read.c (process_psymtab_comp_unit): Handle case where
9547 DW_STRING is NULL.
9548
58397cb7
MS
95492011-03-03 Michael Snyder <msnyder@vmware.com>
9550
2e3fd767
MS
9551 * remote-fileio.c (remote_fileio_func_fstat): Initialize all
9552 fields of struct 'st' to zero.
9553
58397cb7
MS
9554 * tui/tui-winsource.c (tui_update_source_window_as_is): Initialize
9555 sal.pspace before calling set_current_source_symtab_and_line.
9556
ced54c8f
YQ
95572011-03-03 Yao Qi <yao@codesourcery.com>
9558
9559 * Makefile.in (configure-common): Remove. Let Makefile
9560 in dir common to rebuild itself.
9561 (common/Makefile): Likewise.
9562
3351ea09
JB
95632011-03-03 Joel Brobecker <brobecker@adacore.com>
9564
9565 * utils.c (parse_escape): Add i18n markup in error message.
9566
bf9f652a
YQ
95672011-03-03 Yao Qi <yao@codesourcery.com>
9568
9569 * gdb/arm-tdep.c (shifted_reg_val): Replace magic number 15 with
9570 ARM_PC_REGNUM.
9571 (thumb_get_next_pc_raw, arm_get_next_pc_raw): Likewise.
9572 (displaced_write_reg, displaced_read_reg): Likewise.
9573 (copy_ldr_str_ldrb_strb, cleanup_block_load_all): Likewise.
9574 (cleanup_block_load_pc, copy_block_xfer): Likewise.
9575 (cleanup_branch): Replace magic number 14 and 15 with
9576 ARM_LR_REGNUM and ARM_PC_REGNUM respectively.
9577
d42de051
MS
95782011-03-02 Michael Snyder <msnyder@vmware.com>
9579
240f9570
MS
9580 * maint.c (maintenance_do_deprecate): No need to check for NULL.
9581
10dd8b54
MS
9582 * cli/cli-script.c (script_from_file): Add break for lint.
9583
b98bd911
MS
9584 * mdebugread.c (parse_partial_symbols): Fix indent.
9585
3494b66d
MS
9586 * target-descriptions.c (tdesc_gdb_type): No need to call
9587 xstrdup, callee saves a copy.
9588
daac021a
MS
9589 * printcmd.c (print_scalar_formatted): Use strncpy for safety.
9590
c38d16a7
MS
9591 * infcall.c (call_function_by_hand): Add break statements for lint.
9592
905b671b
MS
9593 * utils.c (parse_escape): Escape the escape char.
9594
f2eb0bc8 9595 * python/py-inferior.c (build_inferior_list): Error out if
2d565757
MS
9596 PyList_Append fails.
9597 (gdbpy_inferiors): Error out if build_inferior_list fails.
9598
8c6a60d1
MS
9599 * linux-nat.c (linux_nat_xfer_partial): Preserve errno around
9600 a function call.
9601
d42de051
MS
9602 * record.c (record_restore): Move printf to before error return.
9603
4db71c0b
YQ
96042011-03-02 Yao Qi <yao@codesourcery.com>
9605
9606 * arm-tdep.h (struct displaced_step_closure): Add two new fields
9607 is_thumb and insn_size.
9608 * arm-tdep.c (displaced_read_reg): Adjust correct pipeline offset
9609 on both ARM and Thumb mode.
9610 (arm_process_displaced_insn): Set is_thumb and insn_size.
9611 (arm_displaced_init_closure): Handle both 16-bit and 32-bit.
9612 (arm_displaced_step_fixup): Likewise.
9613
a9dc8dcc
MS
96142011-03-01 Michael Snyder <msnyder@vmware.com>
9615
53624a93
MS
9616 * cli/cli-dump.c (dump_bfd_file): Check error return and warn.
9617
77766669
MS
9618 * jv-lang.c (evaluate_subexp_java): Conditional can't be true.
9619
62d5b8da
MS
9620 * dwarf2read.c (dwarf2_compute_name): NAME cannot be null here.
9621
5e9e105f
MS
9622 * cli/cli-dump.c (restore_binary_file): Validate ftell return value.
9623
dc19db01
MS
9624 * ada-lang.c (ada_make_symbol_completion_list): Replace malloc
9625 with xmalloc.
9626
5ce64950
MS
9627 * ada-lang.c (aggregate_assign_others): Rename inner scope variable
9628 which shadows function parameter.
9629
a0aa2878
MS
9630 * tracepoint.c (create_tsv_from_upload): Superfluous call
9631 to xstrdup. Callee already calls xstrdup.
9632
e325fb69
MS
9633 * linespec.c (decode_line_1): Remove unnecessary null check.
9634
21cbba77
MS
9635 * tracepoint.c (scope_info): Fix mem leak, remove underused
9636 variable.
9637
63360adc
MS
9638 * python/py-prettyprint.c (apply_val_pretty_printer): Remove
9639 superfluous null check.
9640
18ea20ac 9641 * std-regs.c (value_of_builtin_frame_pc_reg): Frame can't be null.
23ce9890 9642 (value_of_builtin_frame_fp_reg): Ditto.
18ea20ac 9643
d014929c
MS
9644 * event-top.c (display_gdb_prompt): Remove superfluous null check.
9645
6e9130cf
MS
9646 * python/py-prettyprint.c (apply_val_pretty_printer): VAL may
9647 be null.
9648
5f01dbc0
MS
9649 * linespec.c (decode_line_1): Check for null before dereference.
9650
d684ab85
MS
9651 * reverse.c (record_restore): Move null-check to before pointer
9652 dereference.
9653
bfffb7e3
MS
9654 * python/py-utils.c (gdbpy_obj_to_string): Delete unused variable.
9655
a9dc8dcc
MS
9656 * objc-lang.c (selectors_info): Add explanitory comment.
9657 (classes_info): Ditto.
9658
478fd957
UW
96592011-03-01 Ulrich Weigand <ulrich.weigand@linaro.org>
9660
9661 * arm-linux-tdep.c (ARM_LDR_PC_SP_4): Add define.
9662 (arm_linux_restart_syscall_init): Handle both on-stack and in-kernel
9663 versions of the trampoline. Handle Thumb vs. ARM addresses.
9664 (arm_kernel_linux_restart_syscall_tramp_frame): New global.
9665 (arm_linux_init_abi): Install it.
9666 * arm-tdep.c (arm_psr_thumb_bit): Make global.
9667 * arm-tdep.c (arm_psr_thumb_bit): Add prototype.
9668
0480cefa
MS
96692011-02-28 Michael Snyder <msnyder@vmware.com>
9670
ac50ab3b
MS
9671 * ui-out.c (ui_out_field_core_addr): Make local char buffer
9672 a little bigger, to avoid possibility of an overflow.
9673
f63fbe86
MS
9674 * breakpoint.c (breakpoint_adjustment_warning): Make local char
9675 buffers a little bigger, to avoid possibility of an overflow.
9676
9e91a352
MS
9677 * coffread.c (coff_getfilename): Add check to avoid overflow.
9678
f2eb0bc8 9679 * objc-lang.c (selectors_info): Add a small safety margin to
28288541
MS
9680 avoid overflow.
9681 (classes_info): Error out on too long REGEXP.
9682
098ab512
MS
9683 * infrun.c (handle_inferior_event): Remove unused function call.
9684
bcbd1de9
MS
9685 * fork-child.c (fork_inferior): Remove ifdef'd code and
9686 unused variable.
9687
2e456570
MS
9688 * linux-thread-db.c (attach_thread): Discard unused value.
9689
14571dad
MS
9690 * linux-nat.c (linux_handle_extended_wait): Delete unused variable.
9691
a9cbf802
MS
9692 * remote.c (remote_get_noisy_reply): Discard unused value.
9693 (remote_vcont_resume): Ditto.
9694 (remote_stop_ns): Ditto.
9695
5715d26e
MS
9696 * linespec.c (decode_objc): Delete unused variable.
9697
4a9bca80
MS
9698 * tui/tui-regs.c (tui_register_format): Delete unused variable.
9699
f47fb265
MS
9700 * dwarf2read.c (add_partial_symbol): Discard unused values.
9701 (read_base_type): Delete unused variable.
9702
e81cff30
MS
9703 * dbxread.c (read_dbx_symtab): Discard unused value.
9704
262acaeb
MS
9705 * eval.c (evaluate_subexp_standard): Delete unused variable,
9706 and discard unused values.
9707
df983543
MS
9708 * infcmd.c (_initialize_infcmd): Discard unused values.
9709
89acf84d
MS
9710 * stabsread.c (rs6000_builtin_type): Missing break statement.
9711
ab8b8aca
MS
9712 * dbxread.c (process_one_symbol): Discard unused value.
9713
6b4511ab
MS
9714 * coffread.c (coff_end_symtab): Delete unused variable.
9715
e8e80198
MS
9716 * dwarf2read.c (dw2_get_file_names): Discard unused value.
9717 (dwarf2_add_typedef): Delete unused variable.
9718 (read_namespace): Ditto.
9719 (dwarf_decode_macros): Ditto.
9720
976aa66e
MS
9721 * m2-lang.c (evaluate_subexp_modula2): Discard unused variable.
9722
5b92b49f
MS
9723 * opencl-lang.c (evaluate_subexp_opencl): Discard unused value.
9724
91e8df85
MS
9725 * p-valprint.c (pascal_val_print): Discard unused value.
9726
899500d6
MS
9727 * utils.c (nquery): Call va_end before return;
9728 (yquery): Ditto.
9729 (query): Ditto.
9730
0480cefa
MS
9731 * proc-service.c (ps_plog): Call va_end before return.
9732
fb6a3ed3
TT
97332011-02-28 Tom Tromey <tromey@redhat.com>
9734
9735 * python/python.c (gdbpy_value_cst): New global.
9736 (_initialize_python): Initialize it.
9737 * python/python-internal.h (gdbpy_value_cst): Declare.
9738 * python/py-value.c (convert_value_from_python): Use
9739 gdbpy_value_cst.
9740
c05202a1
MS
97412011-02-28 Michael Snyder <msnyder@vmware.com>
9742
e463f587
MS
9743 * python/py-cmd.c (cmdpy_init): Fix memory leak.
9744
c38eea1a
MS
9745 * breakpoint.c (catch_syscall_completer): Free malloced list.
9746
3ef09ab5
MS
9747 * jv-lang.c (java_primitive_type_from_name): Add missing break.
9748
8f9a01ee
MS
9749 * opencl-lang.c (lval_func_check_validity): Rename inner variables.
9750 (lval_func_check_synthetic_pointer): Ditto.
9751 (lval_func_free_closure): Fix use-after-free.
c05202a1 9752
477d0d57
TT
97532011-02-28 Tom Tromey <tromey@redhat.com>
9754
9755 * psymtab.c (expand_partial_symbol_tables): Use
9756 ALL_OBJFILE_PSYMTABS.
9757
20937029
JK
97582011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
9759
9760 * objc-lang.c (selectors_info): Error on too long REGEXP.
9761
907b7f4f
MS
97622011-02-28 Michael Snyder <msnyder@vmware.com>
9763
92e96192
MS
9764 * python/py-param.c (set_parameter_value): Add missing
9765 break statement.
9766
907b7f4f
MS
9767 * linux-record.c (record_linux_system_call): Add missing
9768 break statement.
9769
12c5a436
UW
97702011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
9771
9772 * breakpoint.c (print_one_breakpoint_location): Remove unused
9773 argument PRINT_ADDRESS_BITS. Update callers.
9774 (print_one_breakpoint): Likewise.
9775
170b53b2
UW
97762011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
9777
9778 * breakpoint.c (wrap_indent_at_field): New function.
9779 (print_breakpoint_location): Use it instead of WRAP_INDENT argument.
9780 Allocate ui_stream locally instead of using STB argument.
9781 (print_one_breakpoint_location): Update call.
9782 * ui-out.c (ui_out_query_field): New function.
9783 * ui-out.h (ui_out_query_field): Add prototype.
9784
8ab1f94d
JB
97852011-02-28 Joel Brobecker <brobecker@adacore.com>
9786
9787 From Michael Snyder <msnyder@vmware.com>
9788 * ada-exp.y (write_object_renaming): Add FALLTHROUGH comment.
9789
7d488639
MS
97902011-02-27 Michael Snyder <msnyder@vmware.com>
9791
ae179fba
MS
9792 * objc-lang.c (selectors_info): Prevent string overrun.
9793
086dbf66
MS
9794 * tui/tui-stack.c (tui_get_function_from_frame): Fix off by one
9795 error in strncpy.
9796
f2eb0bc8 9797 * symtab.c (rbreak_command): Move variable 'file_name' to
9c1e305a
MS
9798 outer scope.
9799
7d488639
MS
9800 * d-valprint.c (dynamic_array_type): Avoid shadowing a function
9801 param with a local variable of the same name.
9802
3bd0f5ef
MS
98032011-02-27 Michael Snyder <msnyder@vmware.com>
9804
9805 * value.c (value_from_history_ref): New function.
9806 * value.h (value_from_history_ref): Export.
9807 * cli/cli-utils.c (get_number_trailer): Use value_from_history_ref
9808 to parse value history references.
9809 * cli/cli-utils.h (get_number_trailer): Update comment.
9810
98112011-02-27 Michael Snyder <msnyder@vmware.com>
9812
9813 * inferior.c (detach_inferior_command): Use get_number_or_range.
9814 (kill_inferior_command): Ditto.
9815 (remove_inferior_command): Ditto.
9816 (initialize_inferiors): Make command names plural.
9817 Update help strings.
9818
766062f6
MS
98192011-02-27 Michael Snyder <msnyder@vmware.com>
9820
9821 * darwin-nat-info.c: Fix comment typo.
9822 * dwarf2expr.h: Ditto.
9823 * fbsd-nat.c: Ditto.
9824 * fbsd-nat.h: Ditto.
9825 * frame-unwind.h: Ditto.
9826 * frame.h: Ditto.
9827 * hppa-hpux-tdep.c: Ditto.
9828 * i386-linux-nat.c: Ditto.
9829 * linux-nat.c: Ditto.
9830 * nbsd-nat.c: Ditto.
9831 * nbsd-nat.h: Ditto.
9832 * ppc-linux-tdep.c: Ditto.
9833 * serial.c: Ditto.
9834 * ui-file.h: Ditto.
9835 * tui/tui-winsource.c: Ditto.
9836
f2c4ead5
MS
98372011-02-26 Michael Snyder <msnyder@vmware.com>
9838
86b887df
MS
9839 * breakpoint.c (reattach_breakpoints): Avoid resource leak (ui_file).
9840
66fd3b1e
MS
9841 * maint.c (maintenance_do_deprecate): Plug a memory leak.
9842
8c814cdd
MS
9843 * dwarf2loc.c (insert_bits): Avoid shadowing a function param
9844 with a local variable of the same name.
9845
6d5e094a 9846 * i387-tdep.c (i387_supply_fxsave): Avoid shadowing a function
e5b3d7d6 9847 param with a local variable of the same name.
6d5e094a 9848 (i387_supply_xsave): Ditto.
e5b3d7d6 9849
5eee517d
MS
9850 * linux-low.c (linux_nat_xfer_osdata): Rename local variable so
9851 that it does not shadow a function parameter.
9852
8fbf6b93
MS
9853 * i386-nat.c (i386_length_and_rw_bits): Document that case
9854 statement is meant to fall through.
9855
cb969d61
MS
9856 * expprint.c (dump_subexp_body_standard): Document that case
9857 statement is meant to fall through.
9858
f2c4ead5
MS
9859 * amd64-linux-tdep.c (amd64_linux_syscall_record): Delete
9860 dead if statement. Condition can't be false.
9861
b021a221
MS
98622011-02-25 Michael Snyder <msnyder@vmware.com>
9863
9864 * arm-tdep.c: Fix typos in comments.
9865 * bsd-uthread.c: Ditto.
9866 * completer.c: Ditto.
9867 * corelow.c: Ditto.
9868 * cp-namespace.c: Ditto.
9869 * cp-support.c: Ditto.
9870 * cris-tdep.c: Ditto.
9871 * dbxread.c: Ditto.
9872 * dwarf2read.c: Ditto.
9873 * frame.h: Ditto.
9874 * gdbtypes.h: Ditto.
9875 * inferior.h: Ditto.
9876 * mdebugread.c: Ditto.
9877 * mips-tdep.c: Ditto.
9878 * ppc-linux-nat.c: Ditto.
9879 * ppc-linux-tdep.c: Ditto.
9880 * printcmd.c: Ditto.
9881 * sol-thread.c: Ditto.
9882 * solib-frv.c: Ditto.
9883 * solist.h: Ditto.
9884 * sparc64-tdep.c: Ditto.
9885 * spu-tdep.c: Ditto.
9886 * stabsread.c: Ditto.
9887 * symfile.c: Ditto.
9888 * valops.c: Ditto.
9889 * varobj.c: Ditto.
9890 * vax-nat.c: Ditto.
9891 * python/py-block.c: Ditto.
9892 * python/py-symbol.c: Ditto.
9893 * python/py-symtab.c: Ditto.
9894 * python/py-value.c: Ditto.
9895 * tui/tui-win.c: Ditto.
9896
c82c0b55
MS
98972011-02-25 Michael Snyder <msnyder@vmware.com>
9898
9899 * inferior.c (print_inferior): Accept a string instead of an int
9900 for requested_inferiors, and use get_number_or_range to parse it.
9901 (info_inferiors_command): Pass args string to print_inferior.
9902 (initialize_inferiors): Change help string for info inferiors.
9903 * inferior.h (print_inferior): Export prototype change.
9904
ee00cd23
TT
99052011-02-25 Tom Tromey <tromey@redhat.com>
9906
9907 * common/ax.def (invalid2): Set to 0x31.
9908
0502ed8c
JK
99092011-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
9910
9911 * dwarf2loc.c (disassemble_dwarf_expression) <DW_OP_breg[0-9]+>: Use
9912 L and plongest.
9913 (disassemble_dwarf_expression) <DW_OP_bregx>: Drop variable offset,
9914 use L and plongest.
9915 (disassemble_dwarf_expression) <DW_OP_fbreg>: Use L and plongest.
9916
2c9de912
MS
99172011-02-24 Michael Snyder <msnyder@vmware.com>
9918
9919 * Makefile.in (clean): Make clean should remove generated files
9920 observer.h and observer.inc.
9921
a04b0428
JB
99222011-02-24 Joel Brobecker <brobecker@adacore.com>
9923
9924 Revert the following patch (not approved yet):
9925 2011-02-21 Hui Zhu <teawater@gmail.com>
9926 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
9927 * ax-gdb.c (gen_printf_expr_callback): New function.
9928 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
9929 * ax-general.c (ax_memcpy): New function.
9930 (ax_print): Handle "printf".
9931 (ax_reqs): Ditto.
9932 * ax.h (ax_memcpy): Forward declare.
9933 * common/ax.def (invalid2): Removed.
9934 (printf): New entry.
9935 * printcmd.c (printcmd.h): New include.
9936 (string_printf): New function.
9937 (ui_printf): Removed.
9938 (printf_command): Remove static. Call string_printf.
9939 (eval_command): Call string_printf.
9940 * printcmd.h: New file.
9941 * tracepoint.c (validate_actionline,
9942 encode_actions_1): handle printf_command.
9943
2b52013f
TT
99442011-02-23 Tom Tromey <tromey@redhat.com>
9945
9946 * ax-general.c (ax_pick): Add missing newline.
9947
e5a67952
MS
99482011-02-23 Michael Snyder <msnyder@vmware.com>
9949
9950 * breakpoint.c (breakpoint_1): Change first argument from an int
9951 to a char pointer, so that the function now accepts a list of
f2eb0bc8 9952 breakpoints rather than just one. Use new function
e5a67952
MS
9953 'number_is_in_list' to implement.
9954 (breakpoints_info): Pass char * instead of int to breakpoint_1.
9955 (watchpoints_info): Ditto.
9956 (tracepoints_info): Ditto.
9957 (maintenance_info_breakpoints): Ditto.
9958 (_initialize_breakpoint): Update help strings to reflect the fact
9959 that these functions can now take more than one argument.
9960 * cli/cli-utils.c (number_is_in_list): New function.
9961 * cli/cli-utils.h (number_is_in_list): Export.
9962
99632011-02-23 Michael Snyder <msnyder@vmware.com>
fbcb778d
MS
9964
9965 * memattr.c (mem_enable_command): Use get_number_or_range.
9966 (mem_disable_command): Ditto.
9967 (mem_delete_command): Ditto.
9968 (_initialize_mem): Tweak usage message to reflect multiple
9969 arguments.
9970
6e6fbe60
DE
99712011-02-22 Doug Evans <dje@google.com>
9972
9973 Add gdb.lookup_global_symbol python function.
9974 * NEWS: Add entry.
9975 * python/py-symbol.c (gdbpy_lookup_global_symbol): New function.
9976 * python/python-internal.h (gdbpy_lookup_global_symbol): Declare it.
9977 * python/python.c (GdbMethods): Add entry for lookup_global_symbol.
9978
79b97fa8
TT
99792011-02-22 Tom Tromey <tromey@redhat.com>
9980
9981 * language.c (language_class_name_from_physname): Rename
9982 'curr_language' argument to 'lang'; use in body.
9983
298f437a
MS
99842011-02-22 Michael Snyder <msnyder@vmware.com>
9985
9986 * cli/cli-utils.c (number_is_in_list): Check for zero return.
9987
b7ea3126
PA
99882011-02-22 Pedro Alves <pedro@codesourcery.com>
9989
9990 * frame-unwind.h: Fix comment to mention the this frame, not the
9991 next.
9992
58ee6d60
TT
99932011-02-22 Tom Tromey <tromey@redhat.com>
9994
9995 * symfile.c (auto_solib_limit): Remove.
9996 * symfile.h (auto_solib_limit): Remove.
9997
36238dbc
JB
99982011-02-22 Joel Brobecker <brobecker@adacore.com>
9999
10000 * Makefile.in (INSTALLED_LIBS): Delete. Update comment.
10001
aea5b279
MS
100022011-02-21 Michael Snyder <msnyder@vmware.com>
10003
10004 * gdbthread.h (print_thread_info): Change prototype.
10005 * thread.c (print_thread_info): Accept char* instead of int for
10006 requested_threads argument. Use new function number_is_in_list
10007 to determine which threads to list.
10008 (info_threads_command): Pass char* to print_thread_info.
10009 * cli/cli-utils.c (number_is_in_list): New function.
10010 * cli/cli-utils.h (number_is_in_list): Export.
f2eb0bc8 10011 * mi/mi-main.c (mi_cmd_thread_info): Pass char* to
aea5b279
MS
10012 print_thread_info.
10013 (print_one_inferior): Ditto.
10014 (mi_cmd_list_thread_groups): Ditto.
10015
8caa75ee
JK
100162011-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
10017
10018 * common/Makefile.in (CFLAGS): New.
10019 (COMPILE): Add $(CFLAGS).
10020
ea666128
TT
100212011-02-21 Tom Tromey <tromey@redhat.com>
10022
10023 * breakpoint.c (catch_syscall_command_1): Fix typo.
10024
e9cafbcc
TT
100252011-02-21 Tom Tromey <tromey@redhat.com>
10026
10027 * reverse.c: Include cli-utils.h.
10028 * printcmd.c: Include cli-utils.h.
10029 (string_printf): Use skip_spaces.
10030 * cli/cli-utils.h: New file.
10031 * cli/cli-utils.c: New file.
10032 * cli/cli-dump.h (skip_spaces): Move to cli-utils.h.
10033 * cli/cli-dump.c (skip_spaces): Move to cli-utils.c.
10034 * breakpoint.h (get_number, get_number_or_range): Move to
10035 cli-utils.h.
10036 * breakpoint.c: Include cli-utils.h.
10037 (get_number_trailer, get_number, get_number_or_range)
10038 (ep_skip_leading_whitespace): Move to cli-utils.c.
10039 (create_breakpoint_sal, find_condition_and_thread)
10040 (decode_static_tracepoint_spec, watch_command_1)
10041 (watch_maybe_just_location, ep_parse_optional_if_clause)
10042 (catch_fork_command_1, catch_exec_command_1)
10043 (catch_syscall_command_1): Use skip_spaces, skip_to_space.
10044 * Makefile.in (SUBDIR_CLI_OBS): Add cli-utils.o.
10045 (SUBDIR_CLI_SRCS): Add cli-utils.c.
10046 (HFILES_NO_SRCDIR): Add cli-utils.h.
10047 (cli-utils.o): New target.
10048
f67fd822
PM
100492011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
10050
10051 * remote.c (remote_close): Reset INFERIOR_PTID to NULL_PTID
10052 before calling discard_all_inferiors.
10053
c9def01d
UW
100542011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
10055
10056 * opencl-lang.c (STRUCT_OCL_TYPE): Remove.
10057 (struct builtin_opencl_type): Remove.
10058 (builtin_opencl_type): Change return type to "struct type **".
10059 (lookup_opencl_vector_type): Update caller.
10060 (opencl_language_arch_info): Copy primitive type vector from gdbarch.
10061 (build_opencl_types): Install plain array of "struct type *"
10062 instead of "struct builtin_opencl_type".
10063
e3039479
UW
100642011-02-21 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
10065 Ulrich Weigand <uweigand@de.ibm.com>
10066
10067 * arm-linux-nat.c: Include "observer.h" and "gdbthread.h".
10068 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define.
10069 (struct arm_linux_hwbp_cap): New type.
10070 (arm_linux_get_hwbp_cap): New function.
10071 (arm_linux_get_hw_breakpoint_count): Likewise.
10072 (arm_linux_get_hw_watchpoint_count): Likewise.
10073 (arm_linux_can_use_hw_breakpoint): Likewise.
10074 (arm_hwbp_type): New type.
10075 (arm_hwbp_control_t): Likewise.
10076 (struct arm_linux_hw_breakpoint): Likewise.
10077 (struct arm_linux_thread_points): Likewise.
10078 (arm_threads): New global variable.
10079 (arm_linux_find_breakpoints_by_tid): New function.
10080 (arm_hwbp_control_initialize): Likewise.
10081 (arm_hwbp_control_is_enabled): Likewise.
10082 (arm_hwbp_control_disable): Likewise.
10083 (arm_linux_hw_breakpoint_initialize): Likewise.
10084 (arm_linux_get_hwbp_type): Likewise.
10085 (arm_linux_hw_watchpoint_initialize): Likewise.
10086 (arm_linux_hw_breakpoint_equal): Likewise.
10087 (arm_linux_insert_hw_breakpoint1): Likewise.
10088 (arm_linux_remove_hw_breakpoint1): Likewise.
10089 (arm_linux_insert_hw_breakpoint): Likewise.
10090 (arm_linux_remove_hw_breakpoint): Likewise.
10091 (arm_linux_region_ok_for_hw_watchpoint): Likewise.
10092 (arm_linux_insert_watchpoint): Likewise.
10093 (arm_linux_remove_watchpoint): Likewise.
10094 (arm_linux_stopped_data_address): Likewise.
10095 (arm_linux_stopped_by_watchpoint): Likewise.
10096 (arm_linux_watchpoint_addr_within_range): Likewise.
10097 (arm_linux_new_thread): Likewise.
10098 (arm_linux_thread_exit): Likewise.
10099 (_initialize_arm_linux_nat): Install hardware breakpoint/watchpoint
10100 related target callbacks. Register arm_linux_new_thread and
10101 arm_linux_thread_exit.
10102 * arm-tdep.h (arm_pc_is_thumb): Add prototype.
10103 * arm-tdep.c (arm_pc_is_thumb): Make global.
10104 (arm_gdbarch_init): Call set_gdbarch_have_nonsteppable_watchpoint.
10105
b5db5dfc
UW
101062011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
10107
10108 * breakpoint.c (update_watchpoint): Do not attempt to recreate
10109 per-frame locations while within a function epilogue.
10110
e25b2cfa
PM
101112011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
10112
10113 * ser-mingw.c (ser_windows_close): Reformat comment to better conform
10114 to GNU coding standards.
10115
4af53f97
PM
101162011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
10117
10118 Allow use of mingw native on Windows 95 OS.
e25b2cfa 10119 * ser-mingw.c (CancelIo): New macro for dynamically loaded DLL entry.
4af53f97
PM
10120 (ser_windows_close): Only call CancelIo if function exists.
10121 (_initialize_ser_windows): Use LoadLirary/GetProcAddress
10122 to check for existence of CancelIo function in kernel32 DLL.
10123
d0e92d82
HZ
101242011-02-21 Hui Zhu <teawater@gmail.com>
10125
10126 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
10127 * ax-gdb.c (gen_printf_expr_callback): New function.
10128 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
10129 * ax-general.c (ax_memcpy): New function.
10130 (ax_print): Handle "printf".
10131 (ax_reqs): Ditto.
10132 * ax.h (ax_memcpy): Forward declare.
10133 * common/ax.def (invalid2): Removed.
10134 (printf): New entry.
10135 * printcmd.c (printcmd.h): New include.
10136 (string_printf): New function.
10137 (ui_printf): Removed.
10138 (printf_command): Remove static. Call string_printf.
10139 (eval_command): Call string_printf.
10140 * printcmd.h: New file.
10141 * tracepoint.c (validate_actionline,
10142 encode_actions_1): handle printf_command.
10143
7d357efd
MS
101442011-02-19 Michael Snyder <msnyder@vmware.com>
10145
10146 * reverse.c (delete_one_bookmark): Argument is now bookmark
10147 id rather than pointer to bookmark struct.
10148 (delete_bookmark_command): Use get_number_or_range.
10149 (goto_bookmark_command): Parse with get_number instead of strtoul.
10150 (bookmark_1): New function. Print info for one bookmark.
10151 (bookmarks_info): Use get_number_or_range and bookmark_1.
10152
7a45ebd7
MS
101532011-02-18 Michael Snyder <msnyder@vmware.com>
10154
f2eb0bc8 10155 * thread.c (info_threads_command): Re-implement using
7a45ebd7 10156 get_number_or_range.
65ebfb52 10157 (thread_apply_command): Ditto.
7a45ebd7 10158
94d5e490
TT
101592011-02-18 Tom Tromey <tromey@redhat.com>
10160
10161 * common/ax.def: New file.
10162 * ax.h (enum agent_op): Use ax.def.
10163 * ax-general.c (aop_map): Use ax.def.
10164
c7f96d2b
TT
101652011-02-18 Tom Tromey <tromey@redhat.com>
10166
10167 * ax-general.c (aop_map): Add pick and rot.
10168 * dwarf2loc.c (compile_dwarf_to_ax) <DW_OP_over>: Reimplement.
10169 <DW_OP_rot>: Implement.
10170 * ax.h (enum agent_op) <aop_pick, aop_rot>: New constants.
10171 (ax_pick): Declare.
10172 * ax-general.c (ax_pick): New function.
10173
66694b75
TT
101742011-02-18 Tom Tromey <tromey@redhat.com>
10175
10176 * Makefile.in (HFILES_NO_SRCDIR): Don't mention ada-operator.inc.
10177
eeaafae2
JK
101782011-02-18 Jan Kratochvil <jan.kratochvil@redhat.com>
10179 Tom Tromey <tromey@redhat.com>
10180
10181 * cp-support.c (make_symbol_overload_list_namespace): Do not call
10182 make_symbol_overload_list_block with NULL BLOCK.
10183 * valarith.c (unop_user_defined_p): Resolve also TYPE_CODE_TYPEDEF.
10184
3c3fe74c
PA
101852011-02-18 Pedro Alves <pedro@codesourcery.com>
10186
10187 * breakpoint.c (get_number_trailer): No longer accept a NULL PP.
10188 * breakpoint.h (get_number_or_range): Declare.
10189 * printcmd.c (ALL_DISPLAYS): Declare.
10190 (delete_display): Reimplement taking a display pointer.
10191 (undisplay_command): Accept a range of displays to delete, using
10192 get_number_or_range.
10193
13163d80
PM
101942011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
10195
10196 * c-valprint.c (c_val_print): Add embedded_offset to address
10197 for arrays of unspecified length.
10198 * p-valprint.c (pascal_val_print): Likewise.
10199
b434a28f
YQ
102002011-02-18 Yao Qi <yao@codesourcery.com>
10201
10202 * gdb/arm-tdep.c (arm_displaced_step_copy_insn): Move code to ...
10203 (arm_process_displaced_insn): .. here. Remove parameter INSN.
10204 (thumb_process_displaced_insn): New.
10205 * gdb/arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Update
10206 call to arm_process_displaced_insn.
10207 * gdb/arm-tdep.h : Update declaration of arm_process_displaced_insn.
10208
9f6f94ff
TT
102092011-02-17 Tom Tromey <tromey@redhat.com>
10210
10211 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Declare.
10212 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Rename from
10213 compile_dwarf_to_ax. No longer static. Call
10214 dwarf2_compile_cfa_to_ax.
10215 (locexpr_tracepoint_var_ref): Update.
10216 (loclist_tracepoint_var_ref): Update.
10217 * dwarf2-frame.h (dwarf2_compile_cfa_to_ax): Declare.
10218 * dwarf2-frame.c (execute_cfa_program): Remove 'this_frame'
10219 argument; add 'gdbarch' and 'pc'.
10220 (dwarf2_compile_cfa_to_ax): New function.
10221 (dwarf2_frame_cache): Update.
10222
e67ad678
JB
102232011-02-17 Joel Brobecker <brobecker@adacore.com>
10224
10225 * ada-lang.c (ada_type_of_array): Fix the size of the array
10226 in the case of an unconstrained packed array.
10227
946ebb0d
YQ
102282011-02-17 Yao Qi <yao@codesourcery.com>
10229
10230 * common/Makefile.in: Add more targets for make.
10231
1ba1b353
TT
102322011-02-16 Tom Tromey <tromey@redhat.com>
10233
10234 * dwarf2loc.c (unimplemented): Fix typo.
10235
b1bfef65
TT
102362011-02-16 Tom Tromey <tromey@redhat.com>
10237
10238 * dwarf2loc.c (unimplemented): Handle unnamed opcodes.
10239 (compile_dwarf_to_ax) <default>: Use unimplemented.
10240 <DW_OP_deref>: Update.
10241 (disassemble_dwarf_expression): Update.
10242 * dwarf2read.c (dwarf_stack_op_name): Remove 'def' argument.
10243 (decode_locdesc): Update.
10244 * dwarf2expr.h (dwarf_stack_op_name): Update.
10245
5f1e6f19
TT
102462011-02-16 Tom Tromey <tromey@redhat.com>
10247
10248 * ax.h (struct aop_map) <name>: Now const.
10249
a0c78a73
PA
102502011-02-16 Tom Tromey <tromey@redhat.com>
10251
10252 * ax-gdb.c.c (gen_expr) <UNOP_MEMVAL>: Handle value kinds other
10253 than axs_rvalue.
10254
946ebb0d 102552011-02-16 Yao Qi <yao@codesourcery.com>
a42244db
YQ
10256
10257 * infrun.c (get_displaced_step_closure_by_addr): New.
10258 * inferior.h: Declare it.
10259 * arm-tdep.c: (arm_pc_is_thumb): Call
10260 get_displaced_step_closure_by_addr. Adjust MEMADDR if it
10261 returns non-NULL.
10262
08807d5a
PA
102632011-02-16 Pedro Alves <pedro@codesourcery.com>
10264 Jan Kratochvil <jan.kratochvil@redhat.com>
10265
10266 gdb/
10267 * tracepoint.c (memrange_sortmerge): Fix list A's end calculation.
10268
29976f3f
PA
102692011-02-16 Pedro Alves <pedro@codesourcery.com>
10270 Jan Kratochvil <jan.kratochvil@redhat.com>
10271
10272 * value.c (value_contents_copy_raw): Extend describing comment.
10273 Assert that the destination contents we're overwriting are wholly
10274 available.
fb68ae73 10275 (value_contents_copy): Extend describing comment.
29976f3f 10276
cd24cfaa
PA
102772011-02-16 Pedro Alves <pedro@codesourcery.com>
10278 Jan Kratochvil <jan.kratochvil@redhat.com>
10279
10280 * value.c (value_available_contents_eq): Remove redundant local
10281 variables. Fix available contents comparision.
10282 * value.h (value_available_contents_eq): Extend describing
10283 comment.
10284
60bbf338
YQ
102852011-02-16 Yao Qi <yao@codesourcery.com>
10286
10287 * thread.c (info_threads_command): Add missing i18n markup and remove
10288 trailing newline.
10289
17450429
PP
102902011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
10291
10292 * breakpoint.c (longjmp_names): New variable.
10293 (struct breakpoint_objfile_data): New type.
10294 (breakpoint_objfile_key): New variable.
10295 (msym_not_found): New variable.
10296 (msym_not_found_p): New predicate.
10297 (get_breakpoint_objfile_data): New function.
10298 (create_overlay_event_breakpoint): Check per-objfile cache for
10299 symbols first.
10300 (create_longjmp_master_breakpoint): Likewise.
10301 (create_std_terminate_master_breakpoint): Likewise.
10302 (create_exception_master_breakpoint): Likewise.
10303 (_initialize_breakpoint): Register per-objfile data key.
10304
af02033e
PP
103052011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
10306
10307 * breakpoint.c ((create_overlay_event_breakpoint): Const-propagate
10308 parameter value.
10309 (create_longjmp_master_breakpoint): Loop over longjmp names.
10310 (create_std_terminate_master_breakpoint): Const-propagate parameter
10311 value.
10312 (update_breakpoints_after_exec): Adjust.
10313 (breakpoint_re_set): Adjust.
10314
60f98dde
MS
103152011-02-15 Michael Snyder <msnyder@vmware.com>
10316
cdf99611
MS
10317 * thread.c (info_threads_command): Process arg as thread id,
10318 or list of thread ids.
10319 (thread_find_command): New command.
10320 (_initialize_thread): Document argument for info threads.
10321 Document 'thread find' command.
10322 * NEWS: Document new command "thread find".
60f98dde 10323
0feedb2c
JK
103242011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10325
10326 * Makefile.in (ACLOCAL_AMFLAGS): Add `-I ../config'.
10327 * aclocal.m4: Regenerated with aclocal-1.11.1.
10328 * common/configure: Regenerate with autoconf-2.64.
10329
648cd113
KW
103302011-02-15 Ken Werner <ken.werner@de.ibm.com>
10331
10332 * opencl-lang.c (build_opencl_types): Set the size of the built-in
10333 bool data type to a size of one byte.
10334
5657161f
PA
103352011-02-15 Pedro Alves <pedro@codesourcery.com>
10336 Jan Kratochvil <jan.kratochvil@redhat.com>
10337
10338 * target.c (memory_xfer_live_readonly_partial): Document where to
10339 look for interface description.
10340
494e194e
YQ
103412011-02-15 Yao Qi <yao@codesourcery.com>
10342
10343 PR tdep/12352
10344 * arm-tdep.c (copy_ldr_str_ldrb_strb): Replace PC with SP in
10345 order to store PC value on stack instead of text section.
10346
d9492458
TJB
103472011-02-15 Thiago Jung Bauermann <bauerman@br.ibm.com>
10348
10349 * rs6000-tdep.c (IS_EFP_PSEUDOREG): Use correct constant for
10350 the EFP register set size.
10351 (efpr_pseudo_register_read): Use regcache_raw_read_part to read
10352 data from the VMX register.
10353 (efpr_pseudo_register_write): Use regcache_raw_write_part to read
10354 and write data from/to the VMX register.
10355
cdf99611
MS
103562011-02-14 Michael Snyder <msnyder@vmware.com>
10357
10358 * command.h (enum command_class): New class 'no_set_class', for
10359 "show" commands without a corresponding "set" command.
10360 * value.c (_initialize_values): Use 'no_set_class' for "show values".
10361 * copying.c (_initialize_copying): Ditto for "show copying" and
10362 "show warranty".
10363 * cli/cli-cmds.c (init_cli_cmds): Ditto for "show commands" and
10364 "show version".
10365 * cli/cli-setshow.c (cmd_show_list): Skip "show" commands for
10366 which there is no corresponding "set" command (eg. "show copying").
10367
424447ee
PA
103682011-02-14 Pedro Alves <pedro@codesourcery.com>
10369 Jan Kratochvil <jan.kratochvil@redhat.com>
10370
10371 * exec.c (section_table_available_memory): Change `len' parameter
10372 type to ULONGEST.
10373 * exec.h (section_table_available_memory): Ditto.
10374 * value.h (read_value_memory): Rename the `offset' parameter to
10375 `embedded_offset'.
10376
c0f61f9c 103772011-02-14 Pedro Alves <pedro@codesourcery.com>
e0ccc0c7 10378 Jan Kratochvil <jan.kratochvil@redhat.com>
c0f61f9c
PA
10379
10380 * memrange.c (compare_mem_ranges): Mention sort order in
10381 describing comment.
10382 (normalize_mem_ranges): Add comment. Fix ra->length calculation.
10383 * tracepoint.c (traceframe_available_memory): Extend comment to
10384 mention what happens to RESULT when the target does not support
10385 the query.
10386
6bfc80c7
PA
103872011-02-14 Pedro Alves <pedro@codesourcery.com>
10388 Jan Kratochvil <jan.kratochvil@redhat.com>
10389
10390 * value.c (mark_value_bytes_unavailable): Fix indexing the `bef'
10391 range.
10392
e7303042
PA
103932011-02-14 Pedro Alves <pedro@codesourcery.com>
10394
10395 * value.c (value_bits_valid, value_bits_synthetic_pointer):
10396 No longer handle NULL values.
10397
8af8e3bc
PA
103982011-02-14 Pedro Alves <pedro@codesourcery.com>
10399
10400 * exceptions.h (NOT_AVAILABLE_ERROR): New error.
10401 * value.c: Include "exceptions.h".
10402 (require_available): Throw NOT_AVAILABLE_ERROR instead of a
10403 generic error.
10404 * cp-abi.c: Include gdb_assert.h.
10405 (baseclass_offset): Add `embedded_offset' and `val' parameters.
10406 Assert the method is implemented. Wrap NOT_AVAILABLE_ERROR
10407 errors.
10408 * cp-abi.h (baseclass_offset): Add `embedded_offset' and `val'
10409 parameters. No longer returns -1 on error.
10410 (struct cp_abi_ops) <baseclass_offset>: Add `embedded_offset' and
10411 `val' parameters.
10412 * cp-valprint.c: Include exceptions.h.
10413 (cp_print_value): Handle NOT_AVAILABLE_ERROR errors when fetching
10414 the baseclass_offset. Handle unavailable base classes. Use
10415 val_print_invalid_address.
10416 * p-valprint.c: Include exceptions.h.
10417 (pascal_object_print_value): Handle NOT_AVAILABLE_ERROR errors
10418 when fetching the baseclass_offset. No longer expect
10419 baseclass_offset returning -1. Handle unavailable base classes.
10420 Use val_print_invalid_address.
10421 * valops.c (dynamic_cast_check_1): Rename `contents' parameter to
10422 `valaddr' parameter, and change its type to gdb_byte pointer. Add
10423 `embedded_offset' and `val' parameters. Adjust.
10424 (dynamic_cast_check_2): Rename `contents' parameter to `valaddr'
10425 parameter, and change its type to gdb_byte pointer. Add
10426 `embedded_offset' and `val' parameters. Adjust. No longer expect
10427 baseclass_offset returning -1.
10428 (value_dynamic_cast): Use value_contents_for_printing rather than
10429 value_contents. Adjust.
10430 (search_struct_field): No longer expect baseclass_offset returning
10431 -1.
10432 (search_struct_method): If reading memory from the target is
10433 necessary, wrap it in a new value to pass to baseclass_offset. No
10434 longer expect baseclass_offset returning -1.
10435 (find_method_list): No longer expect baseclass_offset returning
10436 -1. Use value_contents_for_printing rather than value_contents.
10437 * valprint.c (val_print_invalid_address): New function.
10438 * valprint.h (val_print_invalid_address): Declare.
10439 * gdbtypes.c (is_unique_ancestor_worker): New `embedded_offset'
10440 and `val' parameters. No longer expect baseclass_offset returning
10441 -1. Adjust.
10442 * gnu-v2-abi.c: Include "exceptions.h".
10443 (gnuv2_baseclass_offset): Add `embedded_offset' and `val'
10444 parameters. Handle unavailable memory. Recurse through
10445 gnuv2_baseclass_offset directly, rather than through
10446 baseclass_offset. No longer returns -1 on not found, instead
10447 throw an error.
10448 * gnu-v3-abi.c (gnuv3_baseclass_offset): Add `embedded_offset' and
10449 `val' parameters. Adjust.
10450
1b28d0b3
PA
104512011-02-14 Pedro Alves <pedro@codesourcery.com>
10452
10453 * tracepoint.c (memrange_sortmerge): Don't merge ranges that are
10454 almost but not quite adjacent.
10455
ec0a52e1
PA
104562011-02-14 Pedro Alves <pedro@codesourcery.com>
10457
10458 * value.h (value_entirely_available): Declare.
10459 * value.c (value_entirely_available): New function.
10460 * c-valprint.c (c_value_print): Don't try fetching the pointer's
10461 real type if the pointer is unavailable.
10462
24e6bcee
PA
104632011-02-14 Pedro Alves <pedro@codesourcery.com>
10464
10465 * valops.c (value_repeat): Use read_value_memory instead of
10466 read_memory.
10467
39d37385
PA
104682011-02-14 Pedro Alves <pedro@codesourcery.com>
10469
10470 * value.h (value_contents_copy, value_contents_copy_raw): Declare.
10471 * value.c (value_contents_copy_raw, value_contents_copy): New
10472 functions.
10473 (value_primitive_field): Use value_contents_copy_raw instead of
10474 memcpy.
10475 * valops.c (value_fetch_lazy): Use value_contents_copy instead of
10476 memcpy.
10477 (value_array, value_slice): Ditto.
10478 * valarith.c (value_subscripted_rvalue): Use
10479 value_contents_copy_raw instead of memcpy.
10480
a3d34bf4
PA
104812011-02-14 Pedro Alves <pedro@codesourcery.com>
10482
10483 <unavailable> references.
10484
10485 * valops.c (get_value_at): Use value_from_contents_and_address,
10486 avoiding read_memory.
10487
9fc6d940
PA
104882011-02-14 Pedro Alves <pedro@codesourcery.com>
10489
10490 * c-valprint.c (c_val_print): Print a string with unavailable
10491 contents as an array.
10492
5467c6c8
PA
104932011-02-14 Pedro Alves <pedro@codesourcery.com>
10494
10495 * value.h (unpack_bits_as_long): Delete declaration.
10496 (unpack_value_bits_as_long): Declare.
10497 (unpack_value_field_as_long): Declare.
10498 (value_field_bitfield): Declare.
10499 * value.c (unpack_bits_as_long): Rename to...
10500 (unpack_value_bits_as_long_1): ... this. Add embedded_offset and
10501 value parameters. Return the extracted result in a new output
10502 parameter. If the value contents are unavailable, return false,
10503 otherwise return true.
10504 (unpack_value_bits_as_long): New.
10505 (unpack_field_as_long): Rename to...
10506 (unpack_value_field_as_long_1): ... this. Add embedded_offset and
10507 Add embedded_offset and value parameters. Return the extracted
10508 result in a new output parameter. If the value contents are
10509 unavailable, return false, otherwise return true.
10510 (unpack_value_field_as_long): New.
10511 (unpack_field_as_long_1): New.
10512 (unpack_field_as_long): Reimplement as wrapper around
10513 unpack_value_field_as_long_1.
10514 (value_field_bitfield): New function.
10515 * valops.c (value_fetch_lazy): When fetching a bitfield, use
10516 unpack_value_bits_as_long. Mark the value as unavailable, if it
10517 is unavailable.
10518 * jv-valprint.c (java_print_value_fields): Use
10519 value_field_bitfield.
10520 * p-valprint.c (pascal_object_print_value_fields): Use
10521 value_field_bitfield.
10522 * cp-valprint.c (cp_print_value_fields): Use value_field_bitfield.
10523
3158c6ed
PA
105242011-02-14 Pedro Alves <pedro@codesourcery.com>
10525
10526 * value.c (get_internalvar_integer): Also return the int value of
10527 TYPE_CODE_INT INTERNALVAR_VALUE values.
10528 (set_internalvar): Don't special case TYPE_CODE_INT.
10529
9fbdca0d
PA
105302011-02-14 Pedro Alves <pedro@codesourcery.com>
10531
10532 * value.c (struct internalvar) <enum internalvar_kind>: Remove
10533 INTERNALVAR_POINTER.
10534 <pointer>: Delete.
10535 (value_of_internalvar): Remove INTERNALVAR_POINTER handling.
10536 (set_internalvar): Remove special TYPE_CODE_PTR handling.
10537 (preserve_one_internalvar): Remove INTERNALVAR_POINTER handling.
10538
c8c1c22f
PA
105392011-02-14 Pedro Alves <pedro@codesourcery.com>
10540
10541 * value.h (value_available_contents_eq): Declare.
10542 * value.c (find_first_range_overlap): New function.
10543 (value_available_contents_eq): New function.
10544 * valprint.c (val_print_array_elements): Use
10545 value_available_contents_eq.
10546 * ada-valprint.c (val_print_packed_array_elements): Use
10547 value_available_contents_eq.
10548 * jv-valprint.c (java_value_print): Use
10549 value_available_contents_eq.
10550
e6e4e701
PA
105512011-02-14 Pedro Alves <pedro@codesourcery.com>
10552
10553 * target.c (target_read_live_memory): New function.
10554 (memory_xfer_live_readonly_partial): New.
10555 (memory_xfer_partial): If reading from a traceframe, fallback to
10556 reading unavailable read-only memory from read-only regions of
10557 live target memory.
10558 * tracepoint.c (disconnect_tracing): Adjust.
10559 (set_current_traceframe): New, factored out from
10560 set_traceframe_number.
10561 (set_traceframe_number): Reimplement to only change the traceframe
10562 number on the GDB side.
10563 (do_restore_current_traceframe_cleanup): Adjust.
10564 (make_cleanup_restore_traceframe_number): New.
10565 (cur_traceframe_number): New global.
10566 (tfile_open): Set cur_traceframe_number to no traceframe.
10567 (set_tfile_traceframe): New function.
10568 (tfile_trace_find): If looking up a traceframe using any method
10569 other than by number, make sure the current tfile traceframe
10570 matches gdb's current traceframe. Update the current tfile
10571 traceframe if the lookup succeeded.
10572 (tfile_fetch_registers, tfile_xfer_partial)
10573 (tfile_get_trace_state_variable_value): Make sure the remote
10574 traceframe matches gdb's current traceframe.
10575 * remote.c (remote_traceframe_number): New global.
10576 (remote_open_1): Set it to -1.
10577 (set_remote_traceframe): New function.
10578 (remote_fetch_registers, remote_store_registers)
10579 (remote_xfer_memory, remote_xfer_partial)
10580 (remote_get_trace_state_variable_value): Make sure the remote
10581 traceframe matches gdb's current traceframe.
10582 (remote_trace_find): If looking up a traceframe using any method
10583 other than by number, make sure the current remote traceframe
10584 matches gdb's current traceframe. Update the current remote
10585 traceframe if the lookup succeeded.
10586 * infrun.c (fetch_inferior_event): Adjust.
10587 * tracepoint.h (set_current_traceframe): Declare.
10588 (get_traceframe_number, set_traceframe_number): Add describing
10589 comments.
10590
e6ca34fc
PA
105912011-02-14 Pedro Alves <pedro@codesourcery.com>
10592
10593 Mark pieces of values as unavailable if the corresponding memory
10594 is unavailable.
10595
10596 * valops.c: Include tracepoint.h.
10597 (value_fetch_lazy): Use read_value_memory.
10598 (read_value_memory): New.
10599 * value.h (read_value_memory): Declare.
10600 * dwarf2loc.c (read_pieced_value): Use read_value_memory.
10601 * exec.c (section_table_available_memory): New function.
10602 * exec.h (section_table_available_memory): Declare.
10603
2a7498d8
PA
106042011-02-14 Pedro Alves <pedro@codesourcery.com>
10605
10606 * Makefile.in (SFILES): Add memrange.c.
10607 (HFILES_NO_SRCDIR): Add memrange.h.
10608 (COMMON_OBS): Add memrange.o.
10609 * memrange.c: New file.
10610 * memrange.h: New file.
10611 * tracepoint.c: Include memrange.h.
10612 (struct mem_range): Delete.
10613 (mem_range_s): Delete.
10614 (traceframe_available_memory): New function.
10615 * tracepoint.h (traceframe_available_memory): Declare.
10616
b3b9301e
PA
106172011-02-14 Pedro Alves <pedro@codesourcery.com>
10618
10619 * target.h (struct traceframe_info): Forward declare.
10620 (enum target_object): Add TARGET_OBJECT_TRACEFRAME_INFO.
10621 (struct target_ops) <to_traceframe_info>: New field.
10622 (target_traceframe_info): New.
10623 * target.c (update_current_target): Inherit and default
10624 to_traceframe_info.
10625 * remote.c (PACKET_qXfer_traceframe_info): New.
10626 (remote_protocol_features): Register qXfer:traceframe-info:read.
10627 (remote_xfer_partial): Handle TARGET_OBJECT_TRACEFRAME_INFO.
10628 (remote_traceframe_info): New.
10629 (init_remote_ops): Install it.
10630 (_initialize_remote): Install "set/show remote traceframe-info"
10631 commands.
10632 * tracepoint.h (parse_traceframe_info): Declare.
10633 * tracepoint.c (struct mem_range): New.
10634 (mem_range_s): New typedef.
10635 (struct traceframe_info): New.
10636 (traceframe_info): New global.
10637 (free_traceframe_info): New function.
10638 (clear_traceframe_info): New function.
10639 (start_tracing, tfind_1, set_traceframe_number): Clear traceframe
10640 info.
10641 (build_traceframe_info): New function.
10642 (tfile_traceframe_info): New function.
10643 (init_tfile_ops): Install tfile_traceframe_info.
10644 (traceframe_info_start_memory, free_result): New functions.
10645 (memory_attributes, traceframe_info_elements): New globals.
10646 (parse_traceframe_info, get_traceframe_info): New functions.
10647 * features/traceframe-info.dtd: New file.
10648 * Makefile.in (XMLFILES): Add traceframe-info.dtd.
10649
4e07d55f
PA
106502011-02-14 Pedro Alves <pedro@codesourcery.com>
10651
10652 Base support for <unavailable> value contents.
10653
4e07d55f
PA
10654 * value.h (value_bytes_available): Declare.
10655 (mark_value_bytes_unavailable): Declare.
10656 * value.c (struct range): New struct.
10657 (range_s): New typedef.
10658 (ranges_overlap): New function.
10659 (range_lessthan): New function.
10660 (ranges_contain_p): New function.
10661 (struct value) <unavailable>: New field.
10662 (value_bytes_available): New function.
10663 (mark_value_bytes_unavailable): New function.
10664 (require_not_optimized_out): Constify parameter.
10665 (require_available): New function.
10666 (value_contents_all, value_contents): Require all bytes be
10667 available.
10668 (value_free): Free `unavailable'.
10669 (value_copy): Copy `unavailable'.
10670 * valprint.h (val_print_unavailable): Declare.
10671 * valprint.c (valprint_check_validity): Rename `offset' parameter
10672 to `embedded_offset'. If printing a scalar, check whether the
10673 value chunk is available.
10674 (val_print_unavailable): New.
10675 (val_print_scalar_formatted): Check whether the value is
10676 available.
10677 * python/py-prettyprint.c (apply_val_pretty_printer): Refuse
10678 pretty-printing unavailable values.
10679
bc9a5551
JK
106802011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
10681
10682 Fix const/volatile qualifiers of C++ types, PR c++/12328.
10683 * c-typeprint.c (c_type_print_args): Update the function comment. New
10684 variable param_type, initialize it. Remove const/volatile qualifiers
10685 for language_cplus and !show_artificial. Use param_type.
10686
93b55aa1
JK
106872011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
10688
10689 * symtab.c (find_pc_sect_line): New variable objfile, initialize it
10690 from S. Iterate S using ALL_OBJFILE_SYMTABS. Verify BV for each S.
10691 * symtab.h (struct symtab) <next>: Comment extension.
10692
181d9476
YQ
106932011-02-12 Yao Qi <yao@codesourcery.com>
10694
10695 * Makefile.in (CLEANDIRS): Remove duplicated common dir.
10696
b708a5c7
JK
106972011-02-11 Yao Qi <yao@codesourcery.com>
10698
10699 * common/Makefile.in: Add copyright header.
10700
c5187ac6
PA
107012011-02-11 Pedro Alves <pedro@codesourcery.com>
10702
10703 * infrun.c (proceed): Move switching out and in of tfind mode from
10704 here ...
10705 (fetch_inferior_event): ... to here.
10706
4f3e6fb7
YQ
107072011-02-11 Yao Qi <yao@codesourcery.com>
10708
10709 * Makefile.in: Remove signals.o from COMMON_OBS. Link
10710 libcommon.a.
10711 * configure.ac: Add common to sub dir.
10712 * configure: Regenerate.
10713
b708a5c7
JK
107142011-02-11 Yao Qi <yao@codesourcery.com>
10715
10716 Build libcommon.a.
10717
10718 * common/Makefile.in: New.
10719 * common/configure.ac: New.
10720 * common/aclocal.m4: New.
10721 * common/configure: Generate.
10722
2287cc7e
PA
107232011-02-10 Pedro Alves <pedro@codesourcery.com>
10724
10725 * vec.h (VEC_block_remove): Place VEC_ASSERT_INFO on the right
10726 side of the parenthesis.
10727
10728 Merge from GCC:
10729 2010-07-13 Jakub Jelinek <jakub@redhat.com>
fc013618 10730 * vec.h (VEC_block_remove): Fix comment.
2287cc7e 10731
fd62cb89
MS
107322011-02-08 Michael Snyder <msnyder@vmware.com>
10733
10734 * linux-nat.c (linux_nat_filter_event): Fix typo in comment.
10735
56d2815c
JK
107362011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
10737
10738 * i386-tdep.c (i386_process_record): Rename l suffixes to d suffixes
10739 in comments for pcmpgtd, pcmpeqd, psubd, paddd, pcmpgtd, pcmpeqd,
10740 psubd and paddd.
10741
4f7d61a8
JK
107422011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
10743
10744 PR 12361.
10745 * i386-tdep.c (i386_process_record) <0x660f3807>: Fix the comment to
10746 phsubsw.
10747 (i386_process_record) <lddqu>: Fix the opcode to 0xf20ff0.
10748 (i386_process_record) <0x0f3807>: Fix the comment to phsubsw.
10749
54fcddd0
UW
107502011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
10751
10752 * dwarf2read.c (read_subroutine_type): Set special calling
10753 convention flag for functions compiled by IBM XL C for OpenCL.
10754 * ppc-sysv-tdep.c: Include "dwarf2.h"
10755 (ppc_sysv_abi_push_dummy_call): Implement IBM OpenCL vector types
10756 calling convention.
10757 (do_ppc_sysv_return_value): Add FUNC_TYPE argument. Implement
10758 IBM OpenCL vector types calling convention.
10759 (ppc_sysv_abi_return_value): Pass through FUNC_TYPE.
10760 (ppc_sysv_abi_broken_return_value): Likewise.
10761 (ppc64_sysv_abi_push_dummy_call): Implement IBM OpenCL vector
10762 types calling convention.
10763 (ppc64_sysv_abi_return_value): Likewise.
10764 * spu-tdep.c: Include "dwarf2.h"
10765 (spu_return_value): Implement IBM OpenCL vector types calling
10766 convention.
10767
d6dafb7c
UW
107682011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
10769
10770 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Implement
10771 correct ABI for AltiVec vector arguments.
10772
32b72a42
PA
107732011-02-07 Pedro Alves <pedro@codesourcery.com>
10774
10775 * valprint.c (val_print): Extend comment.
10776 * ada-valprint.c (ada_valprint): Rewrite comment deferring
10777 interface explanation to val_print.
10778 (ada_val_print_array): Adjust comment to current interface.
10779 (print_field_values): Adjust comment to current interface.
10780 * c-valprint.c (c_val_print): Rewrite comment deferring interface
10781 explanation to val_print.
10782 * f-valprint.c (f_val_print): Ditto.
10783 * jv-valprint.c (java_val_print): Ditto.
10784 * m2-valprint.c (m2_val_print): Ditto.
10785 * p-valprint.c (pascal_val_print): Ditto.
10786
9998af43
TJB
107872011-02-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
10788
10789 * breakpoint.c (parse_breakpoint_sals): Fix description.
10790
505500db 107912011-02-04 Sami Wagiaalla <swagiaal@redhat.com>
9998af43 10792 Oguz Kayral <oguzkayral@gmail.com>
505500db
SW
10793
10794 * python/py-inferior.c (python_on_normal_stop): New function.
10795 (python_on_resume): New function.
10796 (python_inferior_exit): New function.
10797 (gdbpy_initialize_inferior): Add normal_stop, target_resumed, and
10798 inferior_exit observers.
10799 * python/py-evtregistry.c: New file.
10800 * python/py-threadevent.c : New file.
10801 * python/py-event.c: New file.
10802 * python/py-evts.c: New file.
10803 * python/py-continueevent.c: New file.
10804 * python/py-bpevent.c: New file.
10805 * python/py-signalevent.c: New file.
10806 * python/py-exetiedevent.c: New file.
10807 * python/py-breakpoint.c (gdbpy_breakpoint_from_bpstats): New function.
10808 Move struct breakpoint_object from here...
10809 * python/python-internal.h: ... to here.
10810 * python/py-event.h: New file.
10811 * python/py-events.h: New file.
10812 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpointstopevent.o,
10813 py-continueevent.o, py-event.o, py-eventregistry.o, py-events.o,
10814 py-exitedevent.o, py-signalstopevent.o, and py-stopevent.o.
10815 (SUBDIR_PYTHON_SRCS): Add py-breakpointstopevent.c,
10816 py-continueevent.c, py-event.c, py-eventregistry.c, py-events.c,
10817 py-exitedevent.c, py-signalstopevent.c, and py-stopevent.c.
10818 Add build rules for all the above.
10819
9e0ac564
TT
108202011-02-04 Tom Tromey <tromey@redhat.com>
10821
10822 * dwarf2read.c (dwarf2_section_empty_p): New function.
10823 (dwarf2_read_section): Use dwarf2_section_empty_p.
10824 (dwarf2_section_size): New function.
10825 (dwarf2_get_section_info): Unconditionally read section.
10826 (dwarf2_read_index): Use dwarf2_section_empty_p.
10827 (partial_read_comp_unit_head): Use dwarf2_section_size.
10828 (dwarf2_symbol_mark_computed): Likewise.
10829
eee5b35e
DD
108302011-02-04 David Daney <ddaney@caviumnetworks.com>
10831
10832 * NEWS: Add item for "catch syscall" on mips*-linux* targets.
10833
385203ed
DD
108342011-02-04 David Daney <ddaney@caviumnetworks.com>
10835
10836 * mips-linux-tdep.c: Include xml-syscall.h.
10837 (mips_linux_get_syscall_number): New function.
10838 (mips_linux_init_abi): Add calls to
10839 mips_linux_get_syscall_number() and set_xml_syscall_file_name().
10840 * data-directory/Makefile.in (SYSCALLS_FILES): Add
10841 mips-o32-linux.xml, mips-n32-linux.xml and mips-n64-linux.xml
10842 * syscalls/mips-n32-linux.xml: New file.
10843 * syscalls/mips-n64-linux.xml: New file.
10844 * syscalls/mips-o32-linux.xml: New file.
10845
9277c30c
UW
108462011-02-04 Ulrich Weigand <ulrich.weigand@linaro.org>
10847
10848 * dwarf2read.c (dwarf2_ranges_read): Skip empty range entries.
10849 Complain about inverted range entries.
10850 (dwarf2_record_block_ranges): Likewise.
10851
a3be7890
TJB
108522011-02-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
10853
10854 Fix some typos.
10855 * breakpoint.c (update_watchpoint): Fix name of the
10856 update_global_location_list function.
10857 (print_one_breakpoint): Fix typo.
10858 (_initialize_breakpoint): Remove extra space in hbreak help
10859 string.
10860 * breakpoint.h (struct bp_location) <length>: Fix field
10861 description.
10862
041274d8
PA
108632011-02-04 Pedro Alves <pedro@codesourcery.com>
10864
10865 * regcache.c (registers_changed_ptid): Don't explictly always
10866 clear `current_regcache'. Only clear current_thread_ptid and
10867 current_thread_arch when PTID matches. Only reinit the frame
10868 cache if PTID matches the current inferior_ptid. Move alloca(0)
10869 call to ...
10870 (registers_changed): ... here.
10871
c1c2ab58
UW
108722011-02-03 Ulrich Weigand <ulrich.weigand@linaro.org>
10873
10874 * arm-tdep.c (arm_skip_stack_protector): Accept any symbol that
10875 starts with __stack_chk_guard as stack guard symbol.
10876
9011945e
AB
108772011-02-03 Andrew Burgess <aburgess@broadcom.com>
10878
10879 * disasm.c (compare_lines): Handle the end of sequence markers
10880 within the line table to better support disassembling over
10881 compilation unit boundaries.
10882
e0634ccf
UW
108832011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
10884
10885 * arm-tdep.c (skip_prologue_function): Add GDBARCH and IS_THUMB
10886 arguments. Skip in-prologue calls to glibc __aeabi_read_tp
10887 implementation even if no symbols are available.
10888 (thumb_analyze_prologue): Update call to skip_prologue_function.
10889 (arm_analyze_prologue): Likewise.
10890
0e9e9abd
UW
108912011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
10892
10893 * arm-tdep.c: Include "observer.h".
10894 (arm_prologue_this_id): Use frame PC if get_frame_func returns 0.
10895 (arm_exidx_data_key): New static variable.
10896 (struct arm_exidx_entry, arm_exidx_entry_s): New data types.
10897 (struct arm_exidx_data): Likewise.
10898 (arm_exidx_data_free): New function.
10899 (arm_compare_exidx_entries): Likewise.
10900 (arm_obj_section_from_vma): Likewise.
10901 (arm_exidx_new_objfile): Likewise.
10902 (arm_find_exidx_entry): Likewise.
10903 (arm_exidx_fill_cache): Likewise.
10904 (arm_exidx_unwind_sniffer): Likewise.
10905 (arm_exidx_unwind): New global variable.
10906 (arm_gdbarch_init): Append unwinder arm_exidx_unwind.
10907 (_initialize_arm_tdep): Attach arm_exidx_new_objfile to new_objfile
10908 observer. Register arm_exidx_data_key as objfile data.
10909
2e9e421f
UW
109102011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
10911
10912 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Avoid build break
10913 due to accessing uninitialized variable. Fix indentation.
10914
580688f3
PA
109152011-02-02 Pedro Alves <pedro@codesourcery.com>
10916
10917 * c-valprint.c (c_value_print): When doing virtual base pointer
10918 adjustment, create a new value with adjusted contents rather than
10919 changing the contents of the value being printed (and getting it
10920 wrong).
10921
3d2c1d41
PA
109222011-02-02 Pedro Alves <pedro@codesourcery.com>
10923
10924 * xml-support.c (xml_find_attribute): New.
10925 (xinclude_start_include): Use it.
10926 * xml-support.h (xml_find_attribute): Declare.
10927 * memory-map.c (memory_map_start_memory)
10928 (memory_map_start_property): Use xml_find_attribute.
10929 * osdata.c (osdata_start_osdata, osdata_start_column): Use
10930 xml_find_attribute.
10931 * remote.c (start_thread): Use xml_find_attribute.
10932 * solib-target.c (library_list_start_segment)
10933 (library_list_start_section, library_list_start_library)
10934 (library_list_start_list): Use xml_find_attribute.
10935 * xml-tdesc.c (tdesc_start_target, tdesc_start_feature)
10936 (tdesc_start_union, tdesc_start_struct, tdesc_start_flags)
10937 (tdesc_start_field): Use xml_find_attribute.
10938
0af3e2db
UW
109392011-02-02 Ulrich Weigand <uweigand@de.ibm.com>
10940
10941 * opencl-lang.c (STRINGIFY): Rename to OCL_STRING.
10942 (BUILD_OCL_VTYPES): Update.
10943
c1039e3c
JB
109442011-02-02 Joel Brobecker <brobecker@adacore.com>
10945
10946 * configure.ac: Work around non-GNU sed limitation when computing
10947 python version number.
10948 * configure: Regenerate.
10949
600ea1be
JK
109502011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10951
10952 Fix debug printing of TYPE_INSTANCE.
10953 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: New.
10954 (dump_subexp_body_standard) <TYPE_INSTANCE>: New.
10955
56c12414
JK
109562011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10957
10958 Fix debug printing of BINOP_IN, OP_OBJC_MSGCALL,
10959 OP_F77_UNDETERMINED_ARGLIST, OP_COMPLEX, OP_OBJC_SELECTOR, OP_NAME,
10960 OP_OBJC_NSSTRING, OP_F90_RANGE and OP_DECFLOAT.
10961 * ada-operator.inc: Rename the file to ...
10962 * ada-operator.def: ... here, wrap all the entries by macro OP.
10963 * expprint.c (op_name_standard): Remove all the entries. Include
10964 "std-operator.def" instead.
10965 * expression.h (enum exp_opcode): Include "std-operator.def" and
10966 "ada-operator.def". Move all the entries ...
10967 * std-operator.def: ... here, wrap all the entries by macro OP.
10968
c52b559d
PP
109692011-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
10970
10971 * breakpoint.h (remove_jit_event_breakpoints): New prototype.
10972 * breakpoint.c (remove_jit_event_breakpoints): New function.
10973 * jit.c (jit_descriptor_addr): Delete.
10974 (registering_code): Delete.
10975 (clear_int): Delete.
10976 (jit_inferior_data): New variable.
10977 (struct jit_inferior_data): New type.
10978 (get_jit_inferior_data): New function.
10979 (jit_inferior_data_cleanup): New function.
10980 (jit_read_descriptor): Adjust.
10981 (jit_register_code): Adjust.
10982 (jit_breakpoint_re_set_internal): New function; move code here ...
10983 (jit_inferior_init): ... from here.
10984 (jit_breakpoint_re_set): Adjust.
10985 (jit_reset_inferior_data_and_breakpoints): New function.
10986 (jit_inferior_created_observer): Adjust.
10987 (jit_inferior_exit_hook): Adjust.
10988 (jit_executable_changed_observer): New function.
10989 (jit_event_handler): Adjust.
10990 (_initialize_jit): Adjust.
10991
e839132d
MS
109922011-01-31 Michael Snyder <msnyder@vmware.com>
10993
10994 * m32r-tdep.c (m32r_gdbarch_init): Replace accidentally deleted
10995 line.
10996
47a80e90
TT
109972011-01-31 Tom Tromey <tromey@redhat.com>
10998
10999 PR python/12216:
11000 * python/python.c (execute_gdb_command): Call
11001 prevent_dont_repeat.
11002 * top.c (suppress_dont_repeat): New global.
11003 (dont_repeat): Use it.
11004 (prevent_dont_repeat): New function.
11005 * command.h (prevent_dont_repeat): Declare.
11006
45a43567
TT
110072011-01-31 Tom Tromey <tromey@redhat.com>
11008
11009 * infcmd.c (finish_backward): Use breakpoint_set_silent.
11010 * python/py-breakpoint.c (bppy_set_silent): Use
11011 breakpoint_set_silent.
11012 (bppy_set_thread): Use breakpoint_set_thread.
11013 (bppy_set_task): Use breakpoint_set_task.
11014 * breakpoint.h (breakpoint_set_silent, breakpoint_set_thread)
11015 (breakpoint_set_task): Declare.
11016 (make_breakpoint_silent): Remove.
11017 * breakpoint.c (breakpoint_set_silent): New function.
11018 (breakpoint_set_thread): Likewise.
11019 (breakpoint_set_task): Likewise.
11020 (make_breakpoint_silent): Remove.
11021
09d682a4
TT
110222011-01-31 Tom Tromey <tromey@redhat.com>
11023
11024 * breakpoint.h (user_breakpoint_p): Declare.
11025 * breakpoint.c (user_breakpoint_p): New function.
11026 (breakpoint_1): Use it.
11027 (save_breakpoints): Likewise.
11028
9c4ea6c5
JB
110292011-01-31 Joel Brobecker <brobecker@adacore.com>
11030
11031 * configure.ac: Add handling of Python distribution on Windows.
11032 * python-config.py: If the LIBS, SYSLIBS, LIBPL and/or LINKFORSHARED
11033 sysconfig variables are not defined, then do not use them.
11034 On Windows, if LIBPL is not defined, then use prefix + '/libs'
11035 instead. On Windows, return all paths using forward-slashes
11036 rather than backslashes.
11037
ac534cba
JB
110382011-01-31 Joel Brobecker <brobecker@adacore.com>
11039
11040 * configure.ac: Remove fallback behavior for building
11041 against Python. Remove tweaking of Python include path.
11042 Add PYTHON_CPPFLAGS and PYTHON_LIBS substitution.
11043 (AC_TRY_LIBPYTHON): Adjust program used in linking test.
11044 If link is successful, set PYTHON_CPPFLAGS and PYTHON_LIBS.
11045 Always restore CPPFLAGS and LIBS after linking test.
11046 * configure: Regenerated.
11047 * Makefile.in (INTERNAL_CPPFLAGS): Add @PYTHON_CPPFLAGS@.
11048 (INSTALLED_LIBS, CLIBS): Add @PYTHON_LIBS@.
11049 * python/python-internal.h: Adjust includes of Python .h files.
11050
c2f0d045
JB
110512011-01-31 Joel Brobecker <brobecker@adacore.com>
11052
11053 * tracepoint.c (traceframe_walk_blocks): Add missing i18n markup
11054 in error message.
11055
6b0c4c1f
JB
110562011-01-31 Joel Brobecker <brobecker@adacore.com>
11057
11058 * inflow.c (gdb_has_a_terminal): Fix typo in interactive_mode
11059 value test.
11060
672c9795
YQ
110612011-01-31 Yao Qi <yao@codesourcery.com>
11062
11063 * arm-linux-nat.c: Update calls to regcache_register_status
11064 instead of regcache_valid_p.
11065 * aix-thread.c: Likewise.
11066 * i386gnu-nat.c: Likewise.
11067
80b23b6a
JK
110682011-01-29 Jan Kratochvil <jan.kratochvil@redhat.com>
11069
11070 Fix crash.
11071 * valops.c (compare_parameters): Verify TYPE_NFIELDS before
11072 touching TYPE_FIELD_ARTIFICIAL.
11073
4cd712bd
RE
110742011-01-28 Richard Earnshaw <rearnsha@arm.com>
11075
11076 * MAINTAINERS: Move myself from Responsible Maintainers to Authorized
11077 Committers.
11078
ffd5ec24
PA
110792011-01-28 Pedro Alves <pedro@codesourcery.com>
11080
11081 * tracepoint.c (tfile_xfer_partial): If there's no traceframe
11082 selected, don't try iterating over the traceframe's blocks.
11083 (tfile_has_stack): If there's no traceframe selected, then there's
11084 no stack.
11085 (tfile_has_registers): If there's no traceframe selected, then
11086 there's no registers.
11087
e8c9e0a1
PA
110882011-01-28 Pedro Alves <pedro@codesourcery.com>
11089
11090 * target.c (memory_xfer_partial): No need to restore shadows if we
11091 haven't read anything.
11092
de15c4ab
PA
110932011-01-28 Pedro Alves <pedro@codesourcery.com>
11094
11095 * mips-tdep.c (mips_print_register): Use get_frame_register_value
11096 and val_print_scalar_formatted.
11097
9f41c731
PA
110982011-01-27 Pedro Alves <pedro@codesourcery.com>
11099
11100 * tracepoint.c (tfile_read): New.
11101 (tfile_open): Use it.
11102 (tfile_get_traceframe_address): Use it.
11103 (tfile_trace_find): Use it.
11104 (walk_blocks_callback_func): New typedef.
11105 (match_blocktype): New function.
11106 (traceframe_walk_blocks): New function.
11107 (traceframe_find_block_type): New function.
11108 (tfile_fetch_registers, tfile_xfer_partial)
11109 (tfile_get_trace_state_variable_value): Use
11110 traceframe_find_block_type and tfile_read.
11111
cdefc55d
KB
111122011-01-26 Kevin Buettner <kevinb@redhat.com>
11113
11114 * remote-mips.c: Add internationalization mark ups. Remove
11115 trailing \n from already marked up strings.
11116
a81766d8
TT
111172011-01-26 Tom Tromey <tromey@redhat.com>
11118
11119 * python/py-prettyprint.c (print_string_repr): Clear
11120 'addressprint' option when calling val_print_string.
11121 (print_children): Handle Val_pretty_default. Clear 'addressprint'
11122 option when calling val_print_string.
11123
74aedc46
TT
111242011-01-26 Tom Tromey <tromey@redhat.com>
11125
11126 * python/python.c (gdbpy_solib_name): Use gdb_py_longest and
11127 GDB_PY_LL_ARG.
11128 * python/python-internal.h (GDB_PY_LL_ARG, GDB_PY_LLU_ARG): New
11129 macros.
11130 (gdb_py_longest, gdb_py_ulongest): New typedefs.
11131 (gdb_py_long_from_longest, gdb_py_long_from_ulongest)
11132 (gdb_py_long_as_ulongest): New defines.
11133 (gdb_py_object_from_longest, gdb_py_object_from_ulongest)
11134 (gdb_py_int_as_long): Declare.
11135 * python/py-value.c (valpy_lazy_string): Use gdb_py_longest,
11136 GDB_PY_LL_ARG, gdb_py_object_from_longest.
11137 (valpy_long): Add comment.
11138 * python/py-utils.c (get_addr_from_python): Use
11139 gdb_py_long_as_ulongest. Handle overflow properly.
11140 (gdb_py_object_from_longest): New function.
11141 (gdb_py_object_from_ulongest): Likewise.
11142 (gdb_py_int_as_long): Likewise.
11143 * python/py-type.c (typy_array): Use gdb_py_int_as_long.
11144 * python/py-symtab.c (salpy_get_pc): Use
11145 gdb_py_long_from_ulongest.
11146 (salpy_get_line): Use PyInt_FromLong.
11147 * python/py-param.c (set_parameter_value): Use
11148 gdb_py_int_as_long.
11149 * python/py-lazy-string.c (stpy_get_address): Use
11150 gdb_py_long_from_ulongest.
11151 * python/py-frame.c (frapy_pc): Use gdb_py_long_from_ulongest.
11152 * python/py-cmd.c (cmdpy_completer): Use gdb_py_int_as_long.
11153 * python/py-breakpoint.c (bppy_set_thread): Use
11154 gdb_py_int_as_long.
11155 (bppy_set_task): Likewise.
11156 (bppy_set_ignore_count): Likewise.
11157 (bppy_set_hit_count): Likewise.
11158 * python/py-block.c (blpy_get_start): Use
11159 gdb_py_object_from_ulongest.
11160 (blpy_get_end): Likewise.
11161 (gdbpy_block_for_pc): Use gdb_py_ulongest and GDB_PY_LLU_ARG.
11162
e4f6d2ec
TJB
111632011-01-25 Mathieu Lacage <mathieu.lacage@inria.fr>
11164
11165 PR/symtab 11766:
11166 * gdb/objfiles.h (struct objfile) <addr_low>: New field.
11167 * gdb/solib.c (solib_read_symbols): Check for addr_low in
11168 equality test for objfile, initialize addr_low if needed.
11169
b30aa278
PA
111702011-01-25 Pedro Alves <pedro@codesourcery.com>
11171
11172 * tui/tui-regs.c (tui_register_format): Remove dead code.
11173
ab2188aa
PA
111742011-01-25 Pedro Alves <pedro@codesourcery.com>
11175
11176 * printcmd.c (print_formatted): Use val_print_scalar_formatted
11177 instead of print_scalar_formatted.
11178 (print_scalar_formatted): Don't handle 's' format strings here,
11179 and add an assertion that we never see such format here.
11180 * valprint.h (val_print_scalar_formatted): Declare.
11181 * valprint.c (val_print_scalar_formatted): New.
11182 * c-valprint.c (c_val_print): Use val_print_scalar_formatted
11183 instead of print_scalar_formatted.
11184 * jv-valprint.c (java_val_print): Ditto.
11185 * p-valprint.c (pascal_val_print): Ditto.
11186 * ada-valprint.c (ada_val_print_1): Ditto.
11187 * f-valprint.c (f_val_print): Ditto.
11188 * infcmd.c (registers_info): Ditto.
11189 * m2-valprint.c (m2_val_print): Ditto.
11190
66d61a4c
PA
111912011-01-25 Pedro Alves <pedro@codesourcery.com>
11192
11193 * m2-valprint.c (print_unbounded_array): Pass
11194 value_contents_for_printing rather than value_contents, to
11195 m2_print_array_contents. Also pass in the value.
11196
831adc1f
JK
111972011-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
11198
11199 * dwarf2read.c (dwarf2_read_index, write_psymtabs_to_index)
11200 (save_gdb_index_command): Switch to .gdb_index version 4.
11201
20622269
PA
112022011-01-25 Pedro Alves <pedro@codesourcery.com>
11203
11204 * mi/mi-main.c (get_register): Use get_frame_register_value rather
11205 than frame_register, and always pass a valid value to val_print.
11206
585fdaa1
PA
112072011-01-25 Pedro Alves <pedro@codesourcery.com>
11208
11209 Centralize printing "<optimized out>".
11210
11211 * valprint.h (val_print_optimized_out): Declare.
11212 * cp-valprint.c (cp_print_value_fields): Use
11213 val_print_optimized_out.
11214 * jv-valprint.c (java_print_value_fields): Ditto.
11215 * p-valprint.c (pascal_object_print_value_fields): Ditto.
11216 * printcmd.c (print_formatted): Ditto.
11217 * valprint.c (valprint_check_validity): Ditto.
11218 (value_check_printable): Ditto.
11219 (val_print_optimized_out): New.
11220
29ec5263
PA
112212011-01-25 Pedro Alves <pedro@codesourcery.com>
11222
11223 * infcmd.c (default_print_registers_info): Allocate values so to
11224 never pass a NULL value to val_print.
11225
de4127a3
PA
112262011-01-25 Pedro Alves <pedro@codesourcery.com>
11227
11228 * cp-valprint.c (cp_print_value): Treat the 'skip' local as
11229 boolean. Make sure to always pass a value that matches the
11230 contents buffer to callees. Preserve `address' for following
11231 iterations.
11232 * value.c (value_contents_for_printing_const): New.
11233 (value_address): Constify value argument.
11234 * value.h (value_contents_for_printing_const): Declare.
11235 (value_address): Constify value argument.
11236
ee99023e
PA
112372011-01-25 Pedro Alves <pedro@codesourcery.com>
11238
11239 * regcache.c (struct regcache_descr): Rename
11240 sizeof_raw_register_valid_p field to sizeof_raw_register_status,
11241 and sizeof_cooked_register_valid_p to
11242 sizeof_cooked_register_status.
11243 (init_regcache_descr): Adjust.
11244 (struct regcache): Rename register_valid_p field to
11245 register_status.
11246 (regcache_xmalloc_1, regcache_xfree, regcache_save)
11247 (do_cooked_read): Adjust.
11248 (regcache_valid_p): Rename to ...
11249 (regcache_register_status): ... this. Adjust.
11250 (regcache_invalidate): Adjust.
11251 (regcache_raw_read, regcache_cooked_read, regcache_raw_write):
11252 Adjust.
11253 (regcache_raw_supply): Adjust. If buf i NULL, mark the register
11254 as unavailable, not valid.
11255 (regcache_dump): Adjust.
11256 * regcache.h (enum register_status): New.
11257 (regcache_register_status): Declare.
11258 (regcache_invalidate): Delete declaration.
11259 * corelow.c (get_core_registers): Adjust.
11260 * tracepoint.c (tfile_fetch_registers): Adjust.
11261 * trad-frame.c (REG_VALUE): Rename to ...
11262 (TF_REG_VALUE): ... this.
11263 (REG_UNKNOWN): Rename to ...
11264 (TF_REG_UNKNOWN): ... this.
11265 (trad_frame_set_value, trad_frame_set_unknown): Adjust.
11266 * mi/mi-main.c (register_changed_p): Adjust.
11267
99e42fd8
PA
112682011-01-25 Pedro Alves <pedro@codesourcery.com>
11269
11270 * regcache.c (struct regcache_descr): Remove outdated comment.
11271 (init_regcache_descr): Remove sizeof_raw_register_valid_p
11272 overallocate hack.
11273 (regcache_xmalloc): Rename to ...
11274 (regcache_xmalloc_1): ... this. Add `readonly_p' parameter.
11275 Allocate the regcache type accordingly.
11276 (regcache_xmalloc): New as wrapper around regcache_xmalloc_1.
11277 (regcache_xfree): Asser the source is also readonly. Copy sizeof
11278 cooked registers, not raw.
11279 (regcache_dup_no_passthrough): Delete.
11280 (get_thread_arch_regcache): Use regcache_xmalloc_1.
11281 * h8300-tdep.c (h8300_push_dummy_call): Tweak comment to not
11282 mention obsolete write_register_bytes.
11283 * regcache.h (regcache_dup_no_passthrough): Delete declaration.
11284
f7605bc2
PA
112852011-01-25 Pedro Alves <pedro@codesourcery.com>
11286
11287 Stop remote_read_bytes from handling partial reads itself.
11288
11289 * remote-fileio.c: Include target.h.
11290 (remote_fileio_write_bytes): Delete.
11291 (remote_fileio_func_open, remote_fileio_func_write)
11292 (remote_fileio_func_rename, remote_fileio_func_unlink): Use
11293 target_read_memory.
11294 (remote_fileio_func_stat): Use target_read_memory and
11295 target_write_memory.
11296 (remote_fileio_func_gettimeofday): Use target_write_memory.
11297 (remote_fileio_func_system): Use target_read_memory.
11298 * remote.c (remote_write_bytes): Make it static.
11299 (remote_read_bytes): Don't handle partial reads here.
11300 * remote.h (remote_read_bytes): Delete declaration.
11301
efc0eabd
PA
113022011-01-25 Pedro Alves <pedro@codesourcery.com>
11303
11304 Simplify XML parsing a bit.
11305
11306 * xml-support.h (gdb_xml_parse_quick): Declare.
11307 * xml-support.c (gdb_xml_create_parser_and_cleanup_1): Renamed
11308 from gdb_xml_create_parser_and_cleanup, and added `old_chain'
11309 parameter.
11310 (gdb_xml_create_parser_and_cleanup): Reimplement on top of
11311 gdb_xml_create_parser_and_cleanup_1.
11312 (gdb_xml_parse_quick): New.
11313 * memory-map.c (parse_memory_map): Use gdb_xml_parse_quick.
11314 * osdata.c (osdata_parse): Ditto.
11315 * remote.c (remote_threads_info): Ditto.
11316 * solib-target.c (solib_target_parse_libraries): Ditto.
11317 * xml-syscall.c (syscall_parse_xml): Ditto.
11318 * xml-tdesc.c (tdesc_parse_xml): Ditto.
11319
314d366a
KB
113202011-01-24 Kevin Buettner <kevinb@redhat.com>
11321
11322 * configure.tgt (mips*-*-elf): New; just like mips*-*-*, but
11323 with remote-mips.o added to gdb_target_obs.
11324 * Makefile.in (ALL_TARGET_OBS): Add remote-mips.o.
11325
a491d753
PA
113262011-01-24 Pedro Alves <pedro@codesourcery.com>
11327
11328 * ada-valprint.c (val_print_packed_array_elements): Pass the
11329 correct struct value to val_print.
11330 (ada_val_print_1): Ditto.
11331
490f124f
PA
113322011-01-24 Pedro Alves <pedro@codesourcery.com>
11333
11334 Don't lose embedded_offset in printing routines throughout.
11335
11336 * valprint.h (val_print_array_elements): Change prototype.
11337 * valprint.c (val_print_array_elements): Add `embedded_offset'
11338 parameter, and adjust to pass it down to val_print, while passing
11339 `valaddr' or `address' unmodified. Take embedded_offset into
11340 account when checking repetitions.
11341 * c-valprint.c (c_val_print): Pass embedded_offset to
11342 val_print_array_elements instead of adjusting `valaddr' and
11343 `address'.
11344 * m2-valprint.c (m2_print_array_contents, m2_val_print): Pass
11345 embedded_offset to val_print_array_elements instead of adjusting
11346 `valaddr'.
11347 * p-lang.h (pascal_object_print_value_fields): Adjust prototype.
11348 * p-valprint.c (pascal_val_print): Pass embedded_offset to
11349 val_print_array_elements and pascal_object_print_value_fields
11350 instead of adjusting `valaddr'.
11351 (pascal_object_print_value_fields): Add `offset' parameter, and
11352 adjust to use it.
11353 (pascal_object_print_value): Add `offset' parameter, and adjust to
11354 use it.
11355 (pascal_object_print_static_field): Use
11356 value_contents_for_printing/value_embedded_offset, rather than
11357 value_contents.
11358 * ada-valprint.c (val_print_packed_array_elements): Add `offset'
11359 parameter, and adjust to use it. Use
11360 value_contents_for_printing/value_embedded_offset, rather than
11361 value_contents.
11362 (ada_val_print): Rename `valaddr0' parameter to `valaddr'.
11363 (ada_val_print_array): Add `offset' parameter, and adjust to use
11364 it.
11365 (ada_val_print_1): Rename `valaddr0' parameter to `valaddr', and
11366 `embedded_offset' to `offset'. Don't re-adjust `valaddr'.
11367 Instead work with offsets. Use
11368 value_contents_for_printing/value_embedded_offset, rather than
11369 value_contents. Change `defer_val_int' local type to CORE_ADDR,
11370 and use value_from_pointer to extract a target pointer, rather
11371 than value_from_longest.
11372 (print_variant_part): Add `offset' parameter. Replace
11373 `outer_valaddr' parameter by a new `outer_offset' parameter.
11374 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
11375 (ada_value_print): Use
11376 value_contents_for_printing/value_embedded_offset, rather than
11377 value_contents.
11378 (print_record): Add `offset' parameter, and adjust to pass it
11379 down.
11380 (print_field_values): Add `offset' parameter. Replace
11381 `outer_valaddr' parameter by a new `outer_offset' parameter.
11382 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
11383 Use value_contents_for_printing/value_embedded_offset, rather than
11384 value_contents.
11385 * d-valprint.c (dynamic_array_type): Use
11386 value_contents_for_printing/value_embedded_offset, rather than
11387 value_contents.
11388 * jv-valprint.c (java_print_value_fields): Add `offset' parameter.
11389 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
11390 (java_print_value_fields): Take `offset' into account. Don't
11391 re-adjust `valaddr'. Instead pass down adjusted offsets.
11392 (java_val_print): Take `embedded_offset' into account. Pass it to
11393 java_print_value_fields.
11394 * f-valprint.c (f77_print_array_1): Add `embedded_offset'
11395 parameter. Don't re-adjust `valaddr' or `address'. Instead pass
11396 down adjusted offsets.
11397 (f77_print_array): Add `embedded_offset' parameter. Pass it down.
11398 (f_val_print): Take `embedded_offset' into account.
11399
7bfc9434
JB
114002011-01-21 Joel Brobecker <brobecker@adacore.com>
11401
11402 * inflow.c: Include "gdbcmd.h".
11403 (interactive_mode): New static global, moved here from top.c.
11404 (show_interactive_mode): New function, moved here from top.c.
11405 use gdb_has_a_terminal instead of input_from_terminal_p to
11406 determine the current mode.
11407 (gdb_has_a_terminal): Add handling of the "iteractive-mode"
11408 setting.
11409 (_initialize_inflow): Add the "set/show interactive-mode"
11410 commands. Moved here from top.c, after having adjusted slightly
11411 the help text.
11412 * top.c (interactive_mode, show_interactive_mode): Delete, moved
11413 to inflow.c.
11414 (input_from_terminal_p): Remove handling of "interactive-mode"
11415 setting, moved to infow.c.
11416 (init_main): Remove creation of the "set/show interactive-mode"
11417 commands, moved to inflow.c.
11418
44603653
JB
114192011-01-19 Joel Brobecker <brobecker@adacore.com>
11420
11421 * NEWS: Add entry for native ia64-hpux support.
11422
4694da01
TT
114232011-01-19 Tom Tromey <tromey@redhat.com>
11424
11425 PR mi/8618:
11426 * thread.c (free_thread): Free 'name'.
11427 (print_thread_info): Emit thread name. Change CLI output.
11428 (thread_name_command): New function.
11429 (do_captured_thread_select): Emit newline.
11430 (_initialize_thread): Register 'thread name' command.
11431 * target.h (struct target_ops) <to_thread_name>: New field.
11432 (target_thread_name): New macro.
11433 * target.c (update_current_target): Handle to_thread_name.
11434 * python/py-infthread.c (thpy_get_name): New function.
11435 (thpy_set_name): Likewise.
11436 (thread_object_getset): Add "name".
11437 * linux-nat.c (linux_nat_thread_name): New function.
11438 (linux_nat_add_target): Set to_thread_name.
11439 * gdbthread.h (struct thread_info) <name>: New field.
11440
10d44370
JB
114412011-01-18 Joel Brobecker <brobecker@adacore.com>
11442
11443 * ada-valprint.c (ada_print_scalar): Remove unsigned char downcast.
11444 (ada_val_print_1): Likewise.
11445
e3acb115
JB
114462011-01-18 Joel Brobecker <brobecker@adacore.com>
11447
11448 * rs6000-tdep.c (rs6000_skip_prologue): Make sure that the prologue
11449 upper limit address is not greater than the function end address
11450 when the upper limit could not be computed using the debugging
11451 info.
11452
dc92e161
TT
114532011-01-17 Tom Tromey <tromey@redhat.com>
11454
11455 * cli/cli-cmds.c (apropos_command): Free the compiled regex. Use
11456 get_regcomp_error.
11457 * utils.c: Include gdb_regex.h.
11458 (do_regfree_cleanup): New function.
11459 (make_regfree_cleanup): Likewise.
11460 (get_regcomp_error): Likewise.
11461 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Declare.
11462
f55af66d
TT
114632011-01-17 Tom Tromey <tromey@redhat.com>
11464
11465 * cli/cli-cmds.c (apropos_command): Fix formatting. Don't call
11466 re_compile_fastmap.
11467
a5a44b53
PM
114682011-01-17 Pierre Muller <muller@ics.u-strasbg.fr>
11469
11470 * p-exp.y (intvar): New static variable, used to set CURRENT_TYPE
11471 for internal variables.
11472 (last_was_structop): New static variable.
11473 (COMPLETE): New token.
11474 (field_exp): New rule to group all '.' suffix handling.
11475 Add mark_struct_expression calls when approriate to be able
11476 to correctly find fields for completion.
11477 (yylex): Adapt to handle field completion and set INTVAR when
11478 required.
11479
2c291032
YQ
114802011-01-14 Yao Qi <yao@codesourcery.com>
11481
11482 * arm-tdep.c (arm_register_reggroup_p): FPS register is in
11483 save_reggroup, restore_reggroup and all_reggroup.
11484
447b483c
JB
114852011-01-14 Joel Brobecker <brobecker@adacore.com>
11486
11487 * ada-valprint. (ada_printchar): Use the correct type length
11488 in call to ada_emit_char.
11489 * c-valprint.c (c_val_print): Remove cast in call to LA_PRINT_CHAR.
11490
7b64a93b
PM
114912011-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
11492
11493 * solib-som.h (hpux_major_release): Declare variable here.
11494 * solib-som.c: Remove <sys/utsname.h> header.
11495 (DEFAULT_HPUX_MAJOR_RELEASE): New macro.
11496 (hpux_major_release): Make global, change default value to
11497 DEFAULT_HPUX_MAJOR_RELEASE.
f2eb0bc8 11498 (get_hpux_major_release): Simply return HPUX_MAJOR_RELEASE.
7b64a93b
PM
11499 * hppa-hpux-nat.c: Add <sys/utsname.h> include.
11500 Add "solib-som.h" header.
11501 (set_hpux_major_release): New function.
11502 (_initialize_hppa_hpux_nat): Call set_hpux_major_release.
11503
4e18c053
MF
115042011-01-14 Mike Frysinger <vapier@gentoo.org>
11505
11506 * configure.tgt (*-*-uclinux*): Match more Linux os targets
11507
a9df6b22
JB
115082011-01-14 Joel Brobecker <brobecker@adacore.com>
11509
11510 * ia64-hpux-nat.c (ia64_hpux_fetch_register): Remove trailing
11511 new-line at end of warning message.
11512 (ia64_hpux_store_register): Remove trailing new-line at end of
11513 error message.
11514 * ia64-hpux-tdep.c: Rephrase comment.
11515 * solib-ia64-hpux.c (struct dld_info): Change type of field
11516 dld_flags from "long long" to ULONGEST.
11517
ecb956dd
PA
115182011-01-14 Pedro Alves <pedro@codesourcery.com>
11519
11520 * target.h (deprecated_child_ops): Delete declaration.
11521 * target.c (deprecated_child_ops): Delete definition.
11522
76adfcae
PA
115232011-01-14 Pedro Alves <pedro@codesourcery.com>
11524
11525 * Makefile.in (hpux-thread.o): Delete rule.
11526 * configure.ac: Don't check for HPUX DCE threads support.
11527 * configure, config.in: Regenerate.
11528 * hppa-hpux-nat.c (child_suppress_run): Delete.
11529 (hppa_hpux_child_can_run): Delete.
11530 (_initialize_hppa_hpux_nat): Don't override to_can_run.
11531 * hpux-thread.c: Delete.
11532
042e866e
JB
115332011-01-13 Joel Brobecker <brobecker@adacore.com>
11534
11535 * hpux-thread.c (hpux_pid_to_str): Delete.
11536
4ffa5a33
JB
115372011-01-13 Joel Brobecker <brobecker@adacore.com>
11538
11539 * ada-valprint.c (ada_emit_char): Remove strange code.
11540 Check that c is <= UCHAR_MAX before passing it to isascii.
11541 (char_at): Do not assume that TYPE_LEN is either 1 or 2.
11542
de8fa76c
JB
115432011-01-13 Joel Brobecker <brobecker@adacore.com>
11544
11545 * top.c (input_from_terminal_p): Restrict the use of interactive_mode
11546 to the case where instream is stdin.
11547
c4de7027
JB
115482011-01-13 Joel Brobecker <brobecker@adacore.com>
11549
11550 * ia64-tdep.h (struct regcache): Forward declare.
11551 (struct ia64_infcall_ops): New struct type.
11552 (struct gdbarch_tdep): New fields "find_global_pointer_from_solib"
11553 and "infcall_ops".
11554 * ia64-tdep.c (ia64_find_global_pointer_from_dynamic_section):
11555 Renames ia64_find_global_pointer.
11556 (ia64_find_global_pointer, ia64_allocate_new_rse_frame)
11557 (ia64_store_argument_in_slot, ia64_set_function_addr: New function.
11558 (ia64_push_dummy_call): Adjust to use the new tdep ia64_infocall_ops
11559 methods.
11560 (ia64_infcall_ops): New static global constant.
11561 (ia64_gdbarch_init): Set tdep->infcall_ops.
11562 * ia64-hpux-nat.c (ia64_hpux_xfer_solib_got): New function.
11563 (ia64_hpux_xfer_partial): Add TARGET_OBJECT_HPUX_SOLIB_GOT handing.
11564 * ia64-hpux-tdep.c: Include "regcache.h", "gdbcore.h" and "inferior.h".
11565 (ia64_hpux_dummy_code): New static global constant.
11566 (ia64_hpux_push_dummy_code, ia64_hpux_allocate_new_rse_frame)
11567 (ia64_hpux_store_argument_in_slot, ia64_hpux_set_function_addr)
11568 (ia64_hpux_dummy_id, ia64_hpux_find_global_pointer_from_solib):
11569 New function.
11570 (ia64_hpux_infcall_ops): New static global constant.
11571 (ia64_hpux_init_abi): Install gdbarch and tdep methods needed
11572 for inferior function calls to work properly on ia64-hpux.
11573
77ca787b
JB
115742011-01-13 Joel Brobecker <brobecker@adacore.com>
11575
11576 * target.h (enum target_object): Add TARGET_OBJECT_HPUX_UREGS.
11577 * ia64-tdep.h (struct frame_info): forward declaration.
11578 (struct gdbarch_tdep): Add field size_of_register_frame.
11579 * ia64-tdep.c (ia64_access_reg): Use tdep->size_of_register_frame
11580 to determine the size of the register frame.
11581 (ia64_size_of_register_frame): New function.
11582 (ia64_gdbarch_init): Set tdep->size_of_register_frame.
11583 * ia64-hpux-tdep.c: Include "target.h" and "frame.h".
11584 (IA64_HPUX_UREG_REASON): New macro.
11585 (ia64_hpux_stopped_in_syscall, ia64_hpux_size_of_register_frame):
11586 New functions.
11587 (ia64_hpux_init_abi): Set tdep->size_of_register_frame.
11588 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): New function.
11589 (ia64_hpux_xfer_partial): Add handling of TARGET_OBJECT_HPUX_UREGS
11590 objects.
11591
92c9a463
JB
115922011-01-13 Joel Brobecker <brobecker@adacore.com>
11593
11594 Add support for ia64-hpux.
11595 * config/ia64/hpux.mh, ia64-hpux-nat.c, ia64-hpux-tdep.c,
11596 ia64-hpux-tdep.h, solib-ia64-hpux.c, solib-ia64-hpux.h: New files.
11597
11598 * configure.host: Add handling for ia64-hpux hosts. Add associated
11599 floatformats.
11600 * configure.tgt: Add handling for ia64-hpux targets.
11601 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-hpux-tdep.o.
11602 (HFILES_NO_SRCDIR): Add ia64-hpux-tdep.h.
11603 (ALLDEPFILES): Add ia64-hpux-nat.c ia64-hpux-tdep.c.
11604
f688d93f
JB
116052011-01-13 Joel Brobecker <brobecker@adacore.com>
11606
11607 [ttrace] Compute thread list immediately after attach.
11608 * inf_ttrace_attach (inf_ttrace_create_threads_after_attach):
11609 New subprogram.
11610 (inf_ttrace_attach): Use it.
11611
1b89e62f
JB
116122011-01-13 Joel Brobecker <brobecker@adacore.com>
11613
11614 * libunwind-frame.c (libunwind_frame_cache): Do not return NULL
11615 if we could not determine the frame's function address. Instead,
11616 use the frame's PC, and then continue.
11617
3e5e6e2a
JB
116182011-01-13 Joel Brobecker <brobecker@adacore.com>
11619
11620 * libunwind-frame.c (__LITTLE_ENDIAN, __BIG_ENDIAN): Define if
11621 not already defined.
11622
825d6d8a
JB
116232011-01-13 Joel Brobecker <brobecker@adacore.com>
11624
11625 * ia64-tdep.c (ia64_struct_type_p): New function.
11626 (ia64_extract_return_value): Handle integral values that are
11627 less than 8 bytes long.
11628 (ia64_push_dummy_call): Likewise.
11629
7458e667
JB
116302011-01-13 Joel Brobecker <brobecker@adacore.com>
11631
11632 * ia64-tdep.c (floatformat_ia64_ext_little): Renames
11633 floatformat_ia64_ext.
11634 (floatformat_ia64_ext_big): New static const.
11635 (floatformats_ia64_ext): Set first entry to &floatformat_ia64_ext_big.
11636
1b05df00
TT
116372011-01-12 Tom Tromey <tromey@redhat.com>
11638
11639 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Fix error
11640 messages.
11641 * mi/mi-main.c (mi_cmd_thread_select): Fix error messages.
11642 (mi_cmd_thread_list_ids): Likewise.
11643 (mi_cmd_data_list_changed_registers): Likewise.
11644 (mi_cmd_data_list_register_values): Likewise.
11645 (mi_cmd_data_write_register_values): Likewise.
11646 (mi_cmd_data_evaluate_expression): Likewise.
11647 (mi_cmd_data_read_memory): Likewise.
11648 (mi_cmd_data_read_memory_bytes): Likewise.
11649 (mi_cmd_data_write_memory): Likewise.
11650 (mi_cmd_enable_timings): Likewise.
11651 * mi/mi-interp.c (mi_cmd_interpreter_exec): Fix error messages.
11652 * mi/mi-cmd-var.c (mi_cmd_var_create): Fix error messages.
11653 (mi_cmd_var_delete): Likewise.
11654 (mi_cmd_var_set_format): Likewise.
11655 (mi_cmd_var_show_format): Likewise.
11656 (mi_cmd_var_info_num_children): Likewise.
11657 (mi_cmd_var_list_children): Likewise.
11658 (mi_cmd_var_info_type): Likewise.
11659 (mi_cmd_var_info_expression): Likewise.
11660 (mi_cmd_var_show_attributes): Likewise.
11661 (mi_cmd_var_assign): Likewise.
11662 (mi_cmd_var_update): Likewise.
11663 (mi_cmd_enable_pretty_printing): Likewise.
11664 (mi_cmd_var_set_update_range): Likewise.
11665 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Fix error
11666 messages.
11667 (mi_cmd_target_file_put): Likewise.
11668 (mi_cmd_target_file_delete): Likewise.
11669 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Fix error
11670 messages.
11671 (mi_cmd_stack_info_depth): Likewise.
11672 (mi_cmd_stack_list_locals): Likewise.
11673 (mi_cmd_stack_list_args): Likewise.
11674 (mi_cmd_stack_select_frame): Likewise.
11675 (mi_cmd_stack_select_frame): Likewise.
11676 (mi_cmd_stack_info_frame): Likewise.
11677 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Fix error
11678 messages.
11679 (mi_cmd_file_list_exec_source_files): Likewise.
11680 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Fix error messages.
11681 (mi_cmd_env_cd): Likewise.
11682 (mi_cmd_env_path): Likewise.
11683 (mi_cmd_env_dir): Likewise.
11684 (mi_cmd_inferior_tty_show): Likewise.
11685 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Fix error messages.
11686 * mi/mi-cmd-break.c (mi_cmd_break_insert): Fix error messages.
11687 (mi_cmd_break_watch): Likewise.
11688
ad422571
TJB
116892011-01-12 Thiago Jung Bauermann <bauerman@br.ibm.com>
11690
11691 * ppc-linux-nat.c (booke_cmp_hw_point): Fix whitespace.
11692 (ppc_linux_insert_hw_breakpoint): Likewise.
11693 (ppc_linux_remove_hw_breakpoint): Likewise.
11694 (ppc_linux_insert_watchpoint): Likewise.
11695
c2ff108b
JK
116962011-01-12 Andrew Burgess <aburgess@broadcom.com>
11697 Jan Kratochvil <jan.kratochvil@redhat.com>
11698
11699 PR fortran/11104 and DWARF unbound arrays detection.
11700 * dwarf2read.c (read_subrange_type): Set zero length on unspecified
11701 upper bound. Set TYPE_HIGH_BOUND_UNDEFINED if not language_ada on
11702 unspecified upper bound.
11703 * eval.c (evaluate_subexp_standard) <multi_f77_subscript>: Remove
11704 variables array_size_array, tmp_type and offset_item. New variable
11705 array. Remove call to f77_get_upperbound. New variables array_type
11706 and index. Call value_subscripted_rvalue for each dimenasion. Remove
11707 the final call to deprecated_set_value_type.
11708
41e8491f
JK
117092011-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
11710
11711 Make value allocations more lazy.
11712 * ada-lang.c (coerce_unspec_val_to_type): Use allocate_value_lazy
11713 instead of allocate_value and set_value_lazy when possible.
f2eb0bc8 11714 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use allocate_value_lazy
41e8491f
JK
11715 instead of allocate_value and set_value_lazy.
11716 * findvar.c (value_of_register_lazy): Likewise.
11717 (read_var_value): Remove V preallocation, call just check_typedef in
f2eb0bc8 11718 advance. Move allocate_value to LOC_CONST, LOC_LABEL,
41e8491f
JK
11719 LOC_CONST_BYTES. Use allocate_value_lazy in LOC_STATIC, LOC_ARG,
11720 LOC_REF_ARG, LOC_LOCAL, LOC_BLOCK. Set ADDR instead of
11721 set_value_address and break in LOC_BLOCK. Use allocate_value_lazy and
11722 remove lval_memory set in LOC_REGPARM_ADDR. Use allocate_value_lazy
11723 in LOC_UNRESOLVED and LOC_OPTIMIZED_OUT. Add setting lval_memory at
11724 the end, remove set_value_lazy there.
11725 * valarith.c (value_subscripted_rvalue): Use allocate_value_lazy
11726 instead of allocate_value and set_value_lazy when possible.
11727 * valops.c (value_fetch_lazy): Do nop for value_optimized_out VAL.
11728 * value.c (allocate_computed_value): Use allocate_value_lazy instead
11729 of allocate_value and set_value_lazy.
11730 (value_from_contents_and_address): Use allocate_value_lazy instead of
11731 allocate_value and set_value_lazy when possible.
11732
b716877b
AB
117332011-01-12 Andrew Burgess <aburgess@broadcom.com>
11734
11735 * disasm.c (dump_insns): Support dumping opcodes for MI.
11736 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Allow mode to control
11737 dumping of instruction opcodes.
11738
d5ae309f
JB
117392011-01-09 Robert Millan <rmh@gnu.org> (tiny patch)
11740
11741 * configure.tgt: Detect GNU/kFreeBSD and set `gdb_osabi'
11742 appropiately.
11743
98871305
TT
117442011-01-11 Tom Tromey <tromey@redhat.com>
11745
11746 * thread.c (do_captured_thread_select): Emit newline before
11747 printing frame.
11748
c378eb4e
MS
117492011-01-11 Michael Snyder <msnyder@vmware.com>
11750
11751 * s390-tdep.c: Comment cleanup, mostly periods and spaces.
11752 * score-tdep.c: Ditto.
11753 * score-tdep.h: Ditto.
11754 * ser-base.c: Ditto.
11755 * ser-go32.c: Ditto.
11756 * serial.c: Ditto.
11757 * serial.h: Ditto.
11758 * ser-mingw.c: Ditto.
11759 * ser-pipe.c: Ditto.
11760 * ser-tcp.c: Ditto.
11761 * ser-unix.c: Ditto.
11762 * sh64-tdep.c: Ditto.
11763 * shnbsd-nat.c: Ditto.
11764 * sh-tdep.c: Ditto.
11765 * sh-tdep.h: Ditto.
11766 * solib.c: Ditto.
11767 * solib-darwin.c: Ditto.
11768 * solib-frv.c: Ditto.
11769 * solib.h: Ditto.
11770 * solib-irix.c: Ditto.
11771 * solib-osf.c: Ditto.
11772 * solib-pa64.c: Ditto.
11773 * solib-som.c: Ditto.
11774 * solib-spu.c: Ditto.
11775 * solib-sunos.c: Ditto.
11776 * solib-svr4.c: Ditto.
11777 * solist.h: Ditto.
11778 * sol-thread.c: Ditto.
11779 * somread.c: Ditto.
11780 * source.c: Ditto.
11781 * source.h: Ditto.
11782 * sparc64-linux-tdep.c: Ditto.
11783 * sparc64-tdep.c: Ditto.
11784 * sparc-linux-nat.c: Ditto.
11785 * sparc-linux-tdep.c: Ditto.
11786 * sparc-sol2-nat.c: Ditto.
11787 * sparc-sol2-tdep.c: Ditto.
11788 * sparc-tdep.c: Ditto.
11789 * sparc-tdep.h: Ditto.
11790 * spu-tdep.c: Ditto.
11791 * stabsread.c: Ditto.
11792 * stabsread.h: Ditto.
11793 * stack.c: Ditto.
11794 * symfile.c: Ditto.
11795 * symfile.h: Ditto.
11796 * symmisc.c: Ditto.
11797 * symtab.c: Ditto.
11798 * symtab.h: Ditto.
11799 * target.c: Ditto.
11800 * target-descriptions.c: Ditto.
11801 * target-descriptions.h: Ditto.
11802 * target.h: Ditto.
11803 * target-memory.c: Ditto.
11804 * terminal.h: Ditto.
11805 * thread.c: Ditto.
11806 * top.c: Ditto.
11807 * tracepoint.c: Ditto.
11808 * tracepoint.h: Ditto.
11809 * trad-frame.h: Ditto.
11810 * typeprint.c: Ditto.
11811
581e13c1
MS
118122011-01-11 Michael Snyder <msnyder@vmware.com>
11813
11814 * ui-file.c: Comment cleanup, mostly periods and spaces.
11815 * ui-file.h: Ditto.
11816 * ui-out.c: Ditto.
11817 * ui-out.h: Ditto.
11818 * utils.c: Ditto.
11819 * v850-tdep.c: Ditto.
11820 * valarith.c: Ditto.
11821 * valops.c: Ditto.
11822 * valprint.c: Ditto.
11823 * valprint.h: Ditto.
11824 * value.c: Ditto.
11825 * value.h: Ditto.
11826 * varobj.c: Ditto.
11827 * varobj.h: Ditto.
11828 * vax-tdep.c: Ditto.
11829 * vec.c: Ditto.
11830 * vec.h: Ditto.
11831 * version.h: Ditto.
11832 * windows-nat.c: Ditto.
11833 * windows-tdep.c: Ditto.
11834 * xcoffread.c: Ditto.
11835 * xcoffsolib.c: Ditto.
11836 * xml-support.c: Ditto.
11837 * xstormy16-tdep.c: Ditto.
11838 * xtensa-tdep.c: Ditto.
11839 * xtensa-tdep.h: Ditto.
11840
90e4670f
TJB
118412011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
11842
11843 * breakpoint.c (resources_needed_watchpoint): Fix indentation.
11844 * gdbtypes.c (is_scalar_type_recursive): Fix formatting.
11845
e09342b5
TJB
118462011-01-11 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
11847 Thiago Jung Bauermann <bauerman@br.ibm.com>
11848
11849 Implement support for PowerPC BookE ranged watchpoints.
f2eb0bc8 11850 * breakpoint.h
e09342b5
TJB
11851 (struct breakpoint_ops) <resources_needed>: New method.
11852 Initialize to NULL in all existing breakpoint_ops instances.
11853 (struct breakpoint) <exact>: New field.
11854 (target_exact_watchpoints): Declare external global.
11855 * breakpoint.c (target_exact_watchpoints): New global flag.
11856 (update_watchpoint): Set b->type to bp_hardware_watchpoint and
11857 b->enable_state to bp_enabled before calling
11858 hw_watchpoint_used_count.
11859 (hw_watchpoint_used_count): Iterate over all bp_locations in a
11860 watchpoint. Call breakpoint's breakpoint_ops.resources_needed
11861 if available.
11862 (insert_watchpoint, remove_watchpoint): Use fixed length of 1 byte
11863 if the watchpoint is exact.
11864 (resources_needed_watchpoint): New function.
11865 (watchpoint_breakpoint_ops): Add resources_needed_watchpoint.
11866 (watch_command_1): Set b->exact if the user asked for an exact
11867 watchpoint and one can be set.
11868 (can_use_hardware_watchpoint): Add exact_watchpoints argument.
11869 Pass fixed length of 1 to target_region_ok_for_hw_watchpoint if
11870 the user asks for an exact watchpoint and one can be set. Return
11871 number of needed debug registers to watch the expression.
11872 * gdbtypes.c (is_scalar_type): New function, based on
11873 valprint.c:scalar_type_p.
11874 (is_scalar_type_recursive): New function.
11875 * gdbtypes.h (is_scalar_type_recursive): Declare.
11876 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Always
11877 handle regions when ranged watchpoints are available.
11878 (create_watchpoint_request): New function.
11879 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
11880 create_watchpoint_request.
11881 * rs6000-tdep.c (show_powerpc_exact_watchpoints): New function.
11882 (_initialize_rs6000_tdep): Add `exact-watchpoints' boolean to the
11883 `set powerpc' and `show powerpc' commands.
11884 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
11885 Mention documentation comment in the target macro.
11886 (target_region_ok_for_hw_watchpoint): Document return value.
11887
9fa40276
TJB
118882011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
11889
11890 * breakpoint.c (update_watchpoint): Decide on using a software or
11891 hardware watchpoint after the bp_locations are created.
11892
77b06cd7
TJB
118932010-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
11894
11895 Convert hardware watchpoints to use breakpoint_ops.
11896 * breakpoint.h (breakpoint_ops) <insert>: Rename to...
11897 <insert_location>: ... this. Return int instead of void.
11898 Accept pointer to struct bp_location instead of pointer to
11899 struct breakpoint. Adapt all implementations.
f2eb0bc8 11900 (breakpoint_ops) <remove>: Rename to...
77b06cd7
TJB
11901 <remove_location>: ... this. Accept pointer to struct bp_location
11902 instead of pointer to struct breakpoint. Adapt all implementations.
11903 * breakpoint.c (insert_catchpoint): Delete function.
11904 (insert_bp_location): Call the watchpoint or catchpoint's
11905 breakpoint_ops.insert method.
11906 (remove_breakpoint_1): Call the watchpoint or catchpoint's
11907 breakpoint_ops.remove method.
11908 (insert_watchpoint, remove_watchpoint): New functions.
11909 (watchpoint_breakpoint_ops): New structure.
11910 (watch_command_1): Initialize the OPS field.
11911 * inf-child.c (inf_child_insert_fork_catchpoint)
11912 (inf_child_remove_fork_catchpoint, inf_child_insert_vfork_catchpoint)
11913 (inf_child_remove_vfork_catchpoint, inf_child_insert_exec_catchpoint)
11914 (inf_child_remove_exec_catchpoint, inf_child_set_syscall_catchpoint):
11915 Delete functions.
11916 (inf_child_target): Remove initialization of to_insert_fork_catchpoint,
11917 to_remove_fork_catchpoint, to_insert_vfork_catchpoint,
11918 to_remove_vfork_catchpoint, to_insert_exec_catchpoint,
11919 to_remove_exec_catchpoint and to_set_syscall_catchpoint.
11920 * target.c (update_current_target): Change default implementation of
11921 to_insert_fork_catchpoint, to_remove_fork_catchpoint,
11922 to_insert_vfork_catchpoint, to_remove_vfork_catchpoint,
11923 to_insert_exec_catchpoint, to_remove_exec_catchpoint and
11924 to_set_syscall_catchpoint to return_one.
11925 (debug_to_insert_fork_catchpoint, debug_to_insert_vfork_catchpoint)
11926 (debug_to_insert_exec_catchpoint): Report return value.
11927 * target.h (to_insert_fork_catchpoint, to_insert_vfork_catchpoint)
11928 (to_insert_exec_catchpoint): Change declaration to return int instead
11929 of void.
11930
9b20d036
MS
119312011-01-11 Michael Snyder <msnyder@vmware.com>
11932
11933 * arm-tdep.c: Internationalization.
11934 * c-lang.c: Ditto.
11935 * charset.c: Ditto.
11936 * fork-child.c: Ditto.
11937 * nto-procfs.c: Ditto.
11938 * ppc-sysv-tdep.c: Ditto.
11939 * procfs.c: Ditto.
11940 * remote-mips.c: Ditto.
11941 * remote.c: Ditto.
11942 * rs6000-nat.c: Ditto.
11943 * rs6000-tdep.c: Ditto.
11944 * target.c: Ditto.
11945 * valops.c: Ditto.
11946 * value.c: Ditto.
11947 * xml-support.c: Ditto.
11948 * mi/mi-cmd-break.c: Ditto.
11949 * mi/mi-cmd-var.c: Ditto.
11950 * mi/mi-interp.c: Ditto.
11951 * mi/mi-main.c: Ditto.
11952
dae477fe
AB
119532011-01-11 Andrew Burgess <aburgess@broadcom.com>
11954
11955 * remote-sim.c (gdbsim_store_register): Update API to
11956 sim_store_register to check more error conditions.
11957
0df8b418
MS
119582011-01-10 Michael Snyder <msnyder@vmware.com>
11959
11960 * nto-procfs.c: Comment cleanup, mostly periods and spaces.
11961 * nto-tdep.c: Ditto.
11962 * nto-tdep.h: Ditto.
11963 * objc-exp.y: Ditto.
11964 * objc-lang.c: Ditto.
11965 * objfiles.c: Ditto.
11966 * objfiles.h: Ditto.
11967 * observer.c: Ditto.
11968 * opencl-lang.c: Ditto.
11969 * osabi.c: Ditto.
11970 * parse.c: Ditto.
11971 * parser-defs.h: Ditto.
11972 * p-exp.y: Ditto.
11973 * p-lang.c: Ditto.
11974 * posix-hdep.c: Ditto.
11975 * ppcbug-rom.c: Ditto.
11976 * ppc-linux-nat.c: Ditto.
11977 * ppc-linux-tdep.c: Ditto.
11978 * ppc-linux-tdep.h: Ditto.
11979 * ppcnbsd-tdep.c: Ditto.
11980 * ppcobsd-tdep.c: Ditto.
11981 * ppcobsd-tdep.h: Ditto.
11982 * ppc-sysv-tdep.c: Ditto.
11983 * ppc-tdep.h: Ditto.
11984 * printcmd.c: Ditto.
11985 * proc-abi.c: Ditto.
11986 * proc-flags.c: Ditto.
11987 * procfs.c: Ditto.
11988 * proc-utils.h: Ditto.
11989 * progspace.h: Ditto.
11990 * prologue-value.c: Ditto.
11991 * prologue-value.h: Ditto.
11992 * psympriv.h: Ditto.
11993 * psymtab.c: Ditto.
11994 * p-typeprint.c: Ditto.
11995 * p-valprint.c: Ditto.
11996 * ravenscar-sparc-thread.c: Ditto.
11997 * ravenscar-thread.c: Ditto.
11998 * ravenscar-thread.h: Ditto.
11999 * record.c: Ditto.
12000 * regcache.c: Ditto.
12001 * regcache.h: Ditto.
12002 * remote.c: Ditto.
12003 * remote-fileio.c: Ditto.
12004 * remote-fileio.h: Ditto.
12005 * remote.h: Ditto.
12006 * remote-m32r-sdi.c: Ditto.
12007 * remote-mips.c: Ditto.
12008 * remote-sim.c: Ditto.
12009 * rs6000-aix-tdep.c: Ditto.
12010 * rs6000-nat.c: Ditto.
12011 * rs6000-tdep.c: Ditto.
12012
0d7a18f7
MS
120132011-01-10 Michael Snyder <msnyder@vmware.com>
12014
12015 * charset.c (validate): Internationalization.
12016 * coffread.c (read_one_sym): Ditto.
12017 * dwarf2read.c (dwarf2_attach_fields_to_type): Ditto.
12018 * h8300-tdep.c (H8300_extract_return_value): Ditto.
12019 * inflow.c (new_tty): Ditto.
12020 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Ditto.
12021 * m32c-tdep.c (m32c_return_value): Ditto.
12022 * mep-tdep.c (mep_store_return_value): Ditto.
12023 * score-tdep.c (score7_fetch_insn): Ditto.
12024 * ser-mingw.c (pipe_windows_open): Ditto.
12025 * sh64-tdep.c (sh64_extract_return_value): Ditto.
12026 * spu-tdep.c (spu_register_type): Ditto.
12027 * tracepoint.c (trace_find_command): Ditto.
12028 * valarith.c (value_pos): Ditto.
12029
9a153e0b
JB
120302011-01-10 Joel Brobecker <brobecker@adacore.com>
12031
12032 * ada-valprint.c (printstr): Minor comment reformatting.
12033
35ecd2d6
MS
120342011-01-08 Michael Snyder <msnyder@vmware.com>
12035
12036 * m32r-rom.c (m32r_upload_command): Fix up ARI warnings for _
12037 markup.
12038
1777feb0
MS
120392011-01-08 Michael Snyder <msnyder@vmware.com>
12040
12041 * h8300-tdep.c: Comment cleanup, mostly periods and spaces.
12042 * hppa-hpux-tdep.c: Ditto.
12043 * hppa-linux-nat.c: Ditto.
12044 * hppa-linux-tdep.c: Ditto.
12045 * hppanbsd-tdep.c: Ditto.
12046 * hppa-tdep.c: Ditto.
12047 * hppa-tdep.h: Ditto.
12048 * hpux-thread.c: Ditto.
12049 * i386-cygwin-tdep.c: Ditto.
12050 * i386-darwin-nat.c: Ditto.
12051 * i386gnu-nat.c: Ditto.
12052 * i386-linux-nat.c: Ditto.
12053 * i386-linux-tdep.c: Ditto.
12054 * i386-nat.c: Ditto.
12055 * i386-nat.h: Ditto.
12056 * i386nbsd-tdep.c: Ditto.
12057 * i386-sol2-nat.c: Ditto.
12058 * i386-stub.c: Ditto.
12059 * i386-tdep.c: Ditto.
12060 * i386-tdep.h: Ditto.
12061 * i387-tdep.c: Ditto.
12062 * ia64-linux-nat.c: Ditto.
12063 * ia64-linux-tdep.c: Ditto.
12064 * ia64-tdep.c: Ditto.
12065 * infcall.c: Ditto.
12066 * infcall.h: Ditto.
12067 * infcmd.c: Ditto.
12068 * inferior.c: Ditto.
12069 * inferior.h: Ditto.
12070 * infloop.c: Ditto.
12071 * inflow.c: Ditto.
12072 * infrun.c: Ditto.
12073 * interps.c: Ditto.
12074 * interps.h: Ditto.
12075 * iq2000-tdep.c: Ditto.
12076 * irix5-nat.c: Ditto.
12077 * jit.c: Ditto.
12078 * jit.h: Ditto.
12079 * jv-exp.y: Ditto.
12080 * jv-lang.c: Ditto.
12081 * jv-lang.h: Ditto.
12082 * jv-typeprint.c: Ditto.
12083 * jv-valprint.c: Ditto.
12084 * language.c: Ditto.
12085 * language.h: Ditto.
12086 * linespec.c: Ditto.
12087 * linux-fork.c: Ditto.
12088 * linux-nat.c: Ditto.
12089 * linux-thread-db.c: Ditto.
12090 * lm32-tdep.c: Ditto.
12091
025bb325
MS
120922011-01-08 Michael Snyder <msnyder@vmware.com>
12093
12094 * m2-exp.y: Comment cleanup, mostly periods and spaces.
12095 * m2-lang.c: Ditto.
12096 * m2-typeprint.c: Ditto.
12097 * m2-valprint.c: Ditto.
12098 * m32c-tdep.c: Ditto.
12099 * m32r-linux-nat.c: Ditto.
12100 * m32r-rom.c: Ditto.
12101 * m32r-tdep.c: Ditto.
12102 * m32r-tdep.h: Ditto.
12103 * m68hc11-tdep.c: Ditto.
12104 * m58klinux-nat.c: Ditto.
12105 * m68k-tdep.c: Ditto.
12106 * m88k-tdep.c: Ditto.
12107 * m88k-tdep.h: Ditto.
12108 * machoread.c: Ditto.
12109 * macrocmd.c: Ditto.
12110 * macroexp.c: Ditto.
12111 * macrotab.c: Ditto.
12112 * main.c: Ditto.
12113 * maint.c: Ditto.
12114 * mdebugread.c: Ditto.
12115 * mdebugread.h: Ditto.
12116 * memattr.c: Ditto.
12117 * memattr.h: Ditto.
12118 * memory-map.h: Ditto.
12119 * mep-tdep.c: Ditto.
12120 * microblaze-rom.c: Ditto.
12121 * microblaze-tdep.c: Ditto.
12122 * minsyms.c: Ditto.
12123 * mips-irix-tdep.c: Ditto.
12124 * mips-linux-nat.c: Ditto.
12125 * mips-linux-tdep.c: Ditto.
12126 * mips-linux-tdep.h: Ditto.
12127 * mipsnbsd-nat.c: Ditto.
12128 * mipsnbsd-tdep.c: Ditto.
12129 * mipsread.c: Ditto.
12130 * mips-tdep.c: Ditto.
12131 * mips-tdep.h: Ditto.
12132 * mn10300-linux-tdep.c: Ditto.
12133 * mn10300-tdep.c: Ditto.
12134 * mn10300-tdep.h: Ditto.
12135 * monitor.c: Ditto.
12136 * monitor.h: Ditto.
12137 * moxie-tdep.c: Ditto.
12138 * moxie-tdep.h: Ditto.
12139 * mt-tdep.c: Ditto.
12140
1642781b
MF
121412011-01-08 Mike Frysinger <vapier@gentoo.org>
12142
12143 * bfin-tdep.h (BFIN_A0_DOT_W_REGNUM): Fix typo in name.
12144
394b0adb
JB
121452011-01-08 Robert Millan <rmh@gnu.org>
12146
12147 * fbsd-nat.c (fbsd_find_memory_regions): Fix typo.
12148
b670013c
MS
121492011-01-07 Michael Snyder <msnyder@vmware.com>
12150
12151 * charset.c (_initialize_charset): Fix typo in string.
12152
a743e542
MS
121532011-01-07 Michael Snyder <msnyder@vmware.com>
12154
12155 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Mark up error message
12156 for i18n.
f2eb0bc8 12157 * tui/tui-layout.c (tui_set_layout_for_display_command):
a743e542
MS
12158 Split line so that operator goes to beginning of line.
12159 * tui/tui-winsource.c (tui_horizontal_source_scroll): Move
12160 assignment out of if statement.
12161
0963b4bd
MS
121622011-01-07 Michael Snyder <msnyder@vmware.com>
12163
12164 * ada-lang.c: Comment cleanup, mostly periods and spaces.
12165 * ada-lang.h: Ditto.
12166 * ada-tasks.c: Ditto.
12167 * ada-valprint.c: Ditto.
12168 * aix-threads.c: Ditto.
12169 * alpha-linux-nat.c: Ditto.
12170 * alpha-linux-tdep.c: Ditto.
12171 * alpha-mdebug-tdep.c: Ditto.
12172 * alpha-nat.c: Ditto.
12173 * alpha-osf1-tdep.c: Ditto.
12174 * alpha-tdep.c: Ditto.
12175 * alphabsd-nat.c: Ditto.
12176 * alphabsd-tdep.c: Ditto.
12177 * amd64-darwin-tdep.c: Ditto.
12178 * amd64-linux-nat.c: Ditto.
12179 * amd64-linux-tdep.c: Ditto.
12180 * amd64-sol2-tdep.c: Ditto.
12181 * amd64-tdep.c: Ditto.
12182 * amd64-fbsd-tdep.c: Ditto.
12183 * amd64-nbsd-tdep.c: Ditto.
12184 * amd64-obsd-tdep.c: Ditto.
12185 * amd64-linux-nat.c: Ditto.
12186 * amd64-linux-tdep.c: Ditto.
12187 * arm-tdep.c: Ditto.
12188 * arm-tdep.h: Ditto.
12189 * armnbsd-nat.c: Ditto.
12190 * avr-tdep.c: Ditto.
12191 * bfin-tdep.c: Ditto.
12192 * bsd-kvm.c: Ditto.
12193 * c-typeprintc: Ditto.
12194 * c-valprint.c: Ditto.
12195 * coff-pe-read.h: Ditto.
12196 * coffreead.c: Ditto.
12197 * cris-tdep.c: Ditto.
12198 * d-lang.c: Ditto.
12199 * darwin-nat-info.c: Ditto.
12200 * darwin-nat.c: Ditto.
12201 * dbug-rom.c: Ditto.
12202 * dbxread.c: Ditto.
12203 * dcache.c: Ditto.
12204 * dcache.h: Ditto.
12205 * dec-thread.c: Ditto.
12206 * defs.h: Ditto.
12207 * demangle.c: Ditto.
12208 * dicos-tdep.c: Ditto.
12209 * dictionary.c: Ditto.
12210 * dictionary.h: Ditto.
12211 * dink32-rom.c: Ditto.
12212 * disasm.c: Ditto.
12213 * doublest.c: Ditto.
12214 * dsrec.c: Ditto.
12215 * dummy-frame.c: Ditto.
12216 * dwarf2-frame.c: Ditto.
12217 * dwarf2expr.c: Ditto.
12218 * dwarf2loc.c: Ditto.
12219 * dwarf2read.c: Ditto.
12220 * elfread.c: Ditto.
12221 * environ.c: Ditto.
12222 * eval.c: Ditto.
12223 * event-top.h: Ditto.
12224 * exceptions.c: Ditto.
12225 * exceptions.h: Ditto.
12226 * exec.c: Ditto.
12227 * expprint.c: Ditto.
12228 * expression.h: Ditto.
12229 * f-exp.y: Ditto.
12230 * f-lang.c: Ditto.
12231 * f-lang.h: Ditto.
12232 * f-typeprint.c: Ditto.
12233 * f-valprint.c: Ditto.
12234 * fbsd-nat.c: Ditto.
12235 * findvar.c: Ditto.
12236 * fork-child.c: Ditto.
12237 * frame.c: Ditto.
12238 * frame.h: Ditto.
12239 * frv-linux-tdep.c: Ditto.
12240 * frv-tdep.c: Ditto.
12241 * gcore.c: Ditto.
12242 * gdb-stabs.h: Ditto.
12243 * gdb_assert.h: Ditto.
12244 * gdb_string.h: Ditto.
12245 * gdb_thread_db.h: Ditto.
12246 * gdb_wait.h: Ditto.
12247 * gdbarch.sh: Ditto.
12248 * gdbcore.h: Ditto.
12249 * gdbthread.h: Ditto.
12250 * gdbtypes.c: Ditto.
12251 * gdbtypes.h: Ditto.
12252 * gnu-nat.c: Ditto.
12253 * gnu-nat.h: Ditto.
12254 * gnu-v2-abi.c: Ditto.
12255 * gnu-v3-abi.c: Ditto.
12256 * go32-nat.c: Ditto.
12257 * gdbarch.c: Regenerate.
12258 * gdbarch.h: Regenerate.
12259
ac74f770
MS
122602011-01-07 Michael Snyder <msnyder@vmware.com>
12261
12262 * ax-gdb.c: Adjust some long output strings.
12263 * breakpoint.c: Ditto.
12264 * charset.c: Ditto.
12265 * cp-abi.c: Ditto.
12266 * infcall.c: Ditto.
12267 * infrun.c: Ditto.
12268 * linux-nat.c: Ditto.
12269 * solib-pa64.c: Ditto.
12270 * solib-som.c: Ditto.
12271
d8e22779
TT
122722011-01-06 Tom Tromey <tromey@redhat.com>
12273
12274 PR python/12367:
12275 * NEWS: Add item.
12276 * python/python.c (GdbMethods): Add "newest_frame" method.
12277 * python/python-internal.h (gdbpy_newest_frame): Declare.
12278 * python/py-frame.c (gdbpy_newest_frame): New function.
12279
a255712f
PP
122802010-01-06 Paul Pluzhnikov <ppluzhnikov@google.com>
12281
12282 * jit.h (struct jit_code_entry): use ULONGEST for symfile_size.
12283 * jit.c (jit_debug): New variable.
12284 (show_jit_debug): New function.
12285 (struct target_buffer): Use ULONGEST.
12286 (bfd_open_from_target_memory): Likewise.
12287 (jit_register_code, jit_inferior_init): Add debug output.
12288 (_initialize_jit): Register "debug jit" command.
12289
ccfc3d6e
TT
122902011-01-06 Tom Tromey <tromey@redhat.com>
12291
12292 * frame.h (enum frame_type) <INLINE_FRAME>: Fix comment.
12293 * python/py-frame.c (gdbpy_initialize_frames): Add INLINE_FRAME
12294 and ARCH_FRAME.
12295
57126e4a
TT
122962011-01-06 Tom Tromey <tromey@redhat.com>
12297
12298 * python/py-frame.c (frapy_block): Use get_frame_block.
12299
16dfc9ce
JB
123002011-01-06 Joel Brobecker <brobecker@adacore.com>
12301
12302 Do not stop on SIGPRIO signals by default
12303 * infrun.c (_initialize_infrun): Unset signal_stop and
12304 signal_print for TARGET_SIGNAL_PRIO.
12305
b1ce2347
JB
123062011-01-06 Joel Brobecker <brobecker@adacore.com>
12307
12308 * ada-tasks.c: Fix style violation in comment.
12309
8f7e195f
JB
123102011-01-06 Joel Brobecker <brobecker@adacore.com>
12311
12312 * linespec.c (decode_compound, find_method): Remove trailing \n
12313 at end of error string.
12314 * solib-irix.c (irix_current_sos): Likewise.
12315 * varobj.c (uninstall_variable): Likewise.
12316
e9bdf92c
JB
123172011-01-06 Joel Brobecker <brobecker@adacore.com>
12318
12319 * copyright.py: New script.
12320 * copyright.sh (byhand): Add *.ads, *.adb, *.gpr and *.inc.
12321 Launch emacs without exec'ing. Call copyright.py afterwards.
12322
3e43a32a
MS
123232011-01-05 Michael Snyder <msnyder@vmware.com>
12324
12325 * addrmap.c: Shorten lines of >= 80 columns.
12326 * arch-utils.c: Ditto.
12327 * arch-utils.h: Ditto.
12328 * ax-gdb.c: Ditto.
12329 * ax-general.c: Ditto.
12330 * bcache.c: Ditto.
12331 * blockframe.c: Ditto.
12332 * breakpoint.c: Ditto.
12333 * buildsym.c: Ditto.
12334 * c-lang.c: Ditto.
12335 * c-typeprint.c: Ditto.
12336 * charset.c: Ditto.
12337 * coffread.c: Ditto.
12338 * command.h: Ditto.
12339 * corelow.c: Ditto.
12340 * cp-abi.c: Ditto.
12341 * cp-namespace.c: Ditto.
12342 * cp-support.c: Ditto.
12343 * dbug-rom.c: Ditto.
12344 * dbxread.c: Ditto.
12345 * defs.h: Ditto.
12346 * dfp.c: Ditto.
12347 * dfp.h: Ditto.
12348 * dictionary.c: Ditto.
12349 * disasm.c: Ditto.
12350 * doublest.c: Ditto.
12351 * dwarf2-frame.c: Ditto.
12352 * dwarf2expr.c: Ditto.
12353 * dwarf2loc.c: Ditto.
12354 * dwarf2read.c: Ditto.
12355 * elfread.c: Ditto.
12356 * eval.c: Ditto.
12357 * event-loop.c: Ditto.
12358 * event-loop.h: Ditto.
12359 * exceptions.h: Ditto.
12360 * exec.c: Ditto.
12361 * expprint.c: Ditto.
12362 * expression.h: Ditto.
12363 * f-lang.c: Ditto.
12364 * f-valprint.c: Ditto.
12365 * findcmd.c: Ditto.
12366 * frame-base.c: Ditto.
12367 * frame-unwind.c: Ditto.
12368 * frame-unwind.h: Ditto.
12369 * frame.c: Ditto.
12370 * frame.h: Ditto.
12371 * gcore.c: Ditto.
12372 * gdb-stabs.h: Ditto.
12373 * gdb_assert.h: Ditto.
12374 * gdb_dirent.h: Ditto.
12375 * gdb_obstack.h: Ditto.
12376 * gdbcore.h: Ditto.
12377 * gdbtypes.c: Ditto.
12378 * gdbtypes.h: Ditto.
12379 * inf-ttrace.c: Ditto.
12380 * infcall.c: Ditto.
12381 * infcmd.c: Ditto.
12382 * inflow.c: Ditto.
12383 * infrun.c: Ditto.
12384 * inline-frame.h: Ditto.
12385 * language.c: Ditto.
12386 * language.h: Ditto.
12387 * libunwind-frame.c: Ditto.
12388 * libunwind-frame.h: Ditto.
12389 * linespec.c: Ditto.
12390 * linux-nat.c: Ditto.
12391 * linux-nat.h: Ditto.
12392 * linux-thread-db.c: Ditto.
12393 * machoread.c: Ditto.
12394 * macroexp.c: Ditto.
12395 * macrotab.c: Ditto.
12396 * main.c: Ditto.
12397 * maint.c: Ditto.
12398 * mdebugread.c: Ditto.
12399 * memattr.c: Ditto.
12400 * minsyms.c: Ditto.
12401 * monitor.c: Ditto.
12402 * monitor.h: Ditto.
12403 * objfiles.c: Ditto.
12404 * objfiles.h: Ditto.
12405 * osabi.c: Ditto.
12406 * p-typeprint.c: Ditto.
12407 * p-valprint.c: Ditto.
12408 * parse.c: Ditto.
12409 * printcmd.c: Ditto.
12410 * proc-events.c: Ditto.
12411 * procfs.c: Ditto.
12412 * progspace.c: Ditto.
12413 * progspace.h: Ditto.
12414 * psympriv.h: Ditto.
12415 * psymtab.c: Ditto.
12416 * record.c: Ditto.
12417 * regcache.c: Ditto.
12418 * regcache.h: Ditto.
12419 * remote-fileio.c: Ditto.
12420 * remote.c: Ditto.
12421 * ser-mingw.c: Ditto.
12422 * ser-tcp.c: Ditto.
12423 * ser-unix.c: Ditto.
12424 * serial.c: Ditto.
12425 * serial.h: Ditto.
12426 * solib-frv.c: Ditto.
12427 * solib-irix.c: Ditto.
12428 * solib-osf.c: Ditto.
12429 * solib-pa64.c: Ditto.
12430 * solib-som.c: Ditto.
12431 * solib-sunos.c: Ditto.
12432 * solib-svr4.c: Ditto.
12433 * solib-target.c: Ditto.
12434 * solib.c: Ditto.
12435 * somread.c: Ditto.
12436 * source.c: Ditto.
12437 * stabsread.c: Ditto.
12438 * stabsread.c: Ditto.
12439 * stack.c: Ditto.
12440 * stack.h: Ditto.
12441 * symfile-mem.c: Ditto.
12442 * symfile.c: Ditto.
12443 * symfile.h: Ditto.
12444 * symmisc.c: Ditto.
12445 * symtab.c: Ditto.
12446 * symtab.h: Ditto.
12447 * target-descriptions.c: Ditto.
12448 * target-memory.c: Ditto.
12449 * target.c: Ditto.
12450 * target.h: Ditto.
12451 * terminal.h: Ditto.
12452 * thread.c: Ditto.
12453 * top.c: Ditto.
12454 * tracepoint.c: Ditto.
12455 * tracepoint.h: Ditto.
12456 * ui-file.c: Ditto.
12457 * ui-file.h: Ditto.
12458 * ui-out.h: Ditto.
12459 * user-regs.c: Ditto.
12460 * user-regs.h: Ditto.
12461 * utils.c: Ditto.
12462 * valarith.c: Ditto.
12463 * valops.c: Ditto.
12464 * valprint.c: Ditto.
12465 * valprint.h: Ditto.
12466 * value.c: Ditto.
12467 * varobj.c: Ditto.
12468 * varobj.h: Ditto.
12469 * vec.h: Ditto.
12470 * xcoffread.c: Ditto.
12471 * xcoffsolib.c: Ditto.
12472 * xcoffsolib.h: Ditto.
12473 * xml-syscall.c: Ditto.
12474 * xml-tdesc.c: Ditto.
12475
9a2b4c1b
MS
124762011-01-05 Michael Snyder <msnyder@vmware.com>
12477
12478 * cli/cli-cmds.c: Shorten lines of >= 80 columns.
12479 * cli/cli-decode.c: Ditto.
12480 * cli/cli-dump.c: Ditto.
12481 * cli/cli-logging.c: Ditto.
12482 * cli/cli-script.c: Ditto.
12483 * cli/cli-setshow.c: Ditto.
12484 * common/signals.c: Ditto.
12485 * mi/mi-cmd-break.c: Ditto.
12486 * mi/mi-cmd-disas.c: Ditto.
12487 * mi/mi-cmd-stack.c: Ditto.
12488 * mi/mi-cmd-var.c: Ditto.
12489 * mi/mi-cmds.c: Ditto.
12490 * mi/mi-common.h: Ditto.
12491 * mi/mi-console.c: Ditto.
12492 * mi/mi-interp.c: Ditto.
12493 * mi/mi-main.c: Ditto.
12494 * osf-share/cma_attr.c: Ditto.
12495 * osf-share/cma_deb_core.h: Ditto.
12496 * osf-share/cma_debug_client.h: Ditto.
12497 * osf-share/cma_handle.h: Ditto.
12498 * osf-share/cma_mutex.h: Ditto.
12499 * osf-share/cma_stack_int.h: Ditto.
12500 * osf-share/cma_tcb_defs.h: Ditto.
12501 * python/py-auto-load.c: Ditto.
12502 * python/py-breakpoint.c: Ditto.
12503 * python/py-cmd.c: Ditto.
12504 * python/py-frame.c: Ditto.
12505 * python/py-objfile.c: Ditto.
12506 * python/py-param.c: Ditto.
12507 * python/py-progspace.c: Ditto.
12508 * python/py-symbol.c: Ditto.
12509 * python/py-value.c: Ditto.
12510 * python/python-internal.h: Ditto.
12511 * python/python.c: Ditto.
12512 * tui/tui-data.c: Ditto.
12513 * tui/tui-disasm.c: Ditto.
12514 * tui/tui-hooks.c: Ditto.
12515 * tui/tui-io.c: Ditto.
12516 * tui/tui-layout.c: Ditto.
12517 * tui/tui-regs.c: Ditto.
12518 * tui/tui-source.c: Ditto.
12519 * tui/tui-stack.c: Ditto.
12520 * tui/tui-win.c: Ditto.
12521 * tui/tui-windata.c: Ditto.
12522 * tui/tui-winsource.c: Ditto.
12523
44944448
JB
125242011-01-05 Joel Brobecker <brobecker@adacore.com>
12525
12526 * configure.ac, gdb.1: Copyright year update.
12527
ebedcab5
JK
125282011-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12529
12530 * frame.c (get_prev_frame_1) <UNWIND_INNER_ID>: New variables
12531 this_pc_in_block, morestack_msym and morestack_name. Check for
12532 "__morestack" minimal symbol there.
12533
e5cc9f32
JB
125342011-01-03 Joel Brobecker <brobecker@adacore.com>
12535
12536 * symfile.c (find_sym_fns): Add call to dont_repeat.
12537
7b6bb8da
JB
125382011-01-01 Joel Brobecker <brobecker@adacore.com>
12539
12540 Copyright year update in most files (performed by copyright.sh).
12541
71ce852c
JB
125422011-01-01 Joel Brobecker <brobecker@adacore.com>
12543
12544 * top.c (print_gdb_version): Update copyright year in version output.
0e2de366 12545
c3c1ebe8 12546For older changes see ChangeLog-2010.
c906108c
SS
12547\f
12548Local Variables:
12549mode: change-log
12550left-margin: 8
12551fill-column: 74
12552version-control: never
57da7796 12553coding: utf-8
c906108c 12554End: