Introduce gdb.FinishBreakpoint in Python
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
cc72b2a2
KP
12011-12-23 Kevin Pouget <kevin.pouget@st.com>
2
3 Introduce gdb.FinishBreakpoint in Python.
4 * NEWS: Add entry for FinishBreakpoint.
5 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-finishbreakpoint.o.
6 (SUBDIR_PYTHON_SRCS): Add python/py-finishbreakpoint.c.
7 Add build rule for this file.
8 * infcmd.c (print_return_value): Split to create get_return_value.
9 (get_return_value): New function based on print_return_value. Handle
10 case where stop_registers are not set.
11 * inferior.h (get_return_value): New prototype.
12 * python/py-breakpoint.c (bppy_pending_object): Make non-static.
13 (gdbpy_breakpoint_created): Set is_py_finish_bp is necessary.
14 (struct breakpoint_object): Move to python-internal.h
15 (BPPY_REQUIRE_VALID): Likewise.
16 (BPPY_SET_REQUIRE_VALID): Likewise.
17 (gdbpy_breakpoint_created): Initialize is_finish_bp.
18 (gdbpy_should_stop): Add pre/post hooks before/after calling stop
19 method.
20 * python/python-internal.h (breakpoint_object_type): Add as extern.
21 (bppy_pending_object): Likewise.
22 (typedef struct breakpoint_object) Removed.
23 (struct breakpoint_object): Moved from py-breakpoint.c.
24 Add field is_finish_bp.
25 (BPPY_REQUIRE_VALID): Moved from py-breakpoint.c.
26 (BPPY_SET_REQUIRE_VALID): Likewise.
27 (frame_object_to_frame_info): New prototype.
28 (gdbpy_initialize_finishbreakpoints): New prototype.
29 (bpfinishpy_is_finish_bp): Likewise.
30 (bpfinishpy_pre_stop_hook): Likewise.
31 (bpfinishpy_post_stop_hook): Likewise.
32 * python/py-finishbreakpoint.c: New file.
33 * python/py-frame.c(frame_object_to_frame_info): Make non-static and
34 accept PyObject instead of frame_object.
35 (frapy_is_valid): Don't cast to frame_object.
36 (frapy_name): Likewise.
37 (frapy_type): Likewise.
38 (frapy_unwind_stop_reason): Likewise.
39 (frapy_pc): Likewise.
40 (frapy_block): Likewise.
41 (frapy_function): Likewise.
42 (frapy_older): Likewise.
43 (frapy_newer): Likewise.
44 (frapy_find_sal): Likewise.
45 (frapy_read_var): Likewise.
46 (frapy_select): Likewise.
47 * python/python.c (gdbpy_is_stopped_at_finish_bp): New noop function.
48 (_initialize_python): Add gdbpy_initialize_finishbreakpoints.
49 * python/python.h: Include breakpoint.h
50 (gdbpy_is_stopped_at_finish_bp): New prototype.
51
e848a8a5
TT
522011-12-22 Tom Tromey <tromey@redhat.com>
53
54 PR python/12533:
55 * value.h (release_value_or_incref): Declare.
56 * value.c (struct value) <released>: New field.
57 (free_all_values, release_value, value_release_to_mark): Update
58 'released'.
59 (release_value_or_incref): New function.
60 * python/py-value.c (valpy_new): Use release_value_or_incref.
61 (value_to_value_object): Likewise.
62 * varobj.c (install_new_value): Move value_incref earlier.
63
87784a47
TT
642011-12-22 Tom Tromey <tromey@redhat.com>
65
66 * value.c (struct value) <modifiable, lazy, optimized_out,
67 initialized, stack>: Now bitfields. Move to top.
68 <reference_count>: Move earlier.
69
b19686e0
TT
702011-12-21 Tom Tromey <tromey@redhat.com>
71
72 * minsyms.h: Rearrange. Document header and all functions.
73 * minsyms.c: Move some comments to minsyms.h.
74
c35384fb
TT
752011-12-21 Tom Tromey <tromey@redhat.com>
76
77 * symtab.h: Include minsyms.h.
78 (prim_record_minimal_symbol, prim_record_minimal_symbol_full)
79 (prim_record_minimal_symbol_and_info, msymbol_hash_iw)
80 (msymbol_hash, SYMBOL_HASH_NEXT, msymbol_objfile)
81 (lookup_minimal_symbol, lookup_minimal_symbol_text)
82 (lookup_minimal_symbol_solib_trampoline)
83 (lookup_minimal_symbol_by_pc_name, lookup_minimal_symbol_by_pc)
84 (iterate_over_minimal_symbols, lookup_minimal_symbol_and_objfile)
85 (lookup_minimal_symbol_by_pc_section)
86 (lookup_solib_trampoline_symbol_by_pc)
87 (init_minimal_symbol_collection)
88 (make_cleanup_discard_minimal_symbols, install_minimal_symbols)
89 (msymbols_sort): Move to minsyms.h.
90 * objfiles.c (terminate_minimal_symbol_table): Move to minsyms.c.
91 * minsyms.c (terminate_minimal_symbol_table): Move from
92 objfiles.c.
93 * minsyms.h: New file.
94
a5bd37c3
TT
952011-12-21 Tom Tromey <tromey@redhat.com>
96
97 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence): Use
98 ALL_OBJFILE_MSYMBOLS.
99 (hppa_hpux_find_dummy_bpaddr): Likewise.
100 * jit.c (jit_object_close_impl): Use
101 terminate_minimal_symbol_table.
102
0af1e9a5
TT
1032011-12-21 Tom Tromey <tromey@redhat.com>
104
105 * elfread.c (elf_symtab_read): Put the filename in the filename
106 bcache.
107
04aba065
TT
1082011-12-21 Tom Tromey <tromey@redhat.com>
109
110 * symtab.h (struct minimal_symbol) <filename>: Now const.
111
7052e42c
UW
1122011-12-21 Ulrich Weigand <ulrich.weigand@linaro.org>
113
114 PR tdep/12797
115 * arm-tdep.c (arm_return_value): Handle complex types.
116
f16c4e8b
AS
1172011-12-21 Andreas Schwab <schwab@linux-m68k.org>
118
119 * ppc-linux-nat.c (create_watchpoint_request): Only use ranged
120 watchpoints when supported.
121
4ac39b97
JK
1222011-12-21 Jan Kratochvil <jan.kratochvil@redhat.com>
123
124 * symfile.c (objfilep): New typedef and new DEF_VEC_P.
125 (reread_symbols): Remove variable reread_one, new variables
126 new_objfiles, all_cleanups and ix. Use new_objfiles instead of
127 reread_one. Push changed objfiles to new_objfiles, call
128 observer_notify_new_objfile for them later.
129
bb2f58dc
JB
1302011-12-21 Joel Brobecker <brobecker@adacore.com>
131
132 * psymtab.c (expand_symtabs_matching_via_partial): Match
133 the partial symbols using their SYMBOL_SEARCH_NAME.
134 * symfile.h (struct quick_symbol_functions): Udate the
135 documentation of expand_symtabs_matching.
136 * dwarf2read.c (write_psymbols): Use SYMBOL_SEARCH_NAME instead
137 of SYMBOL_NATURAL_NAME in index entry.
138
53907c91
JB
1392011-12-21 Joel Brobecker <brobecker@adacore.com>
140
141 * linespec.c (locate_first_half): Add handling of Ada operators
142 when the current language is Ada.
143
50f8ea94
JB
1442011-12-21 Joel Brobecker <brobecker@adacore.com>
145
146 * objfiles.c (insert_section_p): Do not detect overlay sections
147 if overlay debugging is off.
148
9ac7f98e
JB
1492011-12-21 Joel Brobecker <brobecker@adacore.com>
150
151 * ada-lang.c (is_name_suffix): Add handling of "TKB" suffixes.
152 Update function documentation.
153 * dictionary.c (dict_hash): Ignore "TKB" suffixes in hash
154 computation.
155
6e012a6c
PA
1562011-12-20 Pedro Alves <alves.ped@gmail.com>
157 Jan Kratochvil <jan.kratochvil@redhat.com>
158
159 * linux-nat.c (add_lwp): Don't call linux_nat_new_thread on the
160 first LWP.
161 * amd64-linux-nat.c (update_debug_registers_callback): Instantiate
162 `lwp->arch_private' if NULL.
163 (amd64_linux_prepare_to_resume): Do nothing if `lwp->arch_private'
164 is NULL.
165 * i386-linux-nat.c (update_debug_registers_callback): Instantiate
166 `lwp->arch_private' if NULL.
167 (i386_linux_prepare_to_resume): Do nothing if `lwp->arch_private'
168 is NULL.
169
87c31f06
DE
1702011-12-19 Doug Evans <dje@google.com>
171
172 * python/py-auto-load.c (info_auto_load_scripts): Pass address of
173 scripts vector to collect_matching_scripts.
174 (collect_matching_scripts): Update.
175
f6eeced0
JK
1762011-12-19 Jan Kratochvil <jan.kratochvil@redhat.com>
177
178 * symfile.c (reread_symbols): Move free_objfile_separate_debug,
179 preserve_values, sym_finish and clear_objfile_data calls before BFD
180 close. Move free_objfile_separate_debug as the very first call. New
181 comment on the ordering.
182
8de7d199
UW
1832011-12-19 Ulrich Weigand <uweigand@de.ibm.com>
184
185 * s390-tdep.c (s390_push_dummy_call): Set addressing mode bit
186 in return PSWA.
187
984ac464
TT
1882011-12-19 Tom Tromey <tromey@redhat.com>
189
190 * symtab.h (add_minsym_to_hash_table): Don't declare.
191 * minsyms.c (add_minsym_to_hash_table): Now static.
192
828cfa8d
JB
1932011-12-19 Joel Brobecker <brobecker@adacore.com>
194
195 * elfread.c (elf_symtab_read): Ignore undefined symbols with
196 nonzero addresses if they do not correspond to a .plt section
197 when one is available in the objfile.
198
dd274a34
AS
1992011-12-17 Andreas Schwab <schwab@linux-m68k.org>
200
201 * cp-name-parser.y (cp_merge_demangle_parse_infos): Don't use
202 obstack_empty_p.
203
a3e3e961
MK
2042011-12-17 Mark Kettenis <kettenis@gnu.org>
205
206 * amd64obsd-tdep.c (amd64obsd_init_abi): Don't set
207 regset_from_core_section.
208 (amd64obsd_core_init_abi): New function that sets
209 regset_from_core_section.
210 (_initialize_amd64obsd_tdep): Use amd64obsd_core_init_abi for
211 traditional core dumps.
212
0dcddd84
MK
2132011-12-17 Mark Kettenis <kettenis@gnu.org>
214
215 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Detect new signal
216 trampoline to be introduced in OpenBSD 5.0.
217
3e290cb1
JK
2182011-12-17 Jan Kratochvil <jan.kratochvil@redhat.com>
219
220 Fix build regression from the PR threads/10729 fix.
221 * s390-nat.c (s390_insert_watchpoint, s390_remove_watchpoint): Use LP,
222 not LP->PTID.
223
56934ab1
AS
2242011-12-16 Andrey Smirnov <andrew.smirnov@gmail.com>
225
226 * mi/mi-main.c (mi_cmd_list_thread_groups): Rename `optind' and
227 `optarg' to `oind' and `oarg', respectively(-Wshadow).
228 (mi_cmd_data_read_memory): Ditto.
229 (mi_cmd_data_read_memory_bytes): Ditto.
230 (mi_cmd_data_write_memory): Ditto.
231
324478ca
AS
2322011-12-16 Andrey Smirnov <andrew.smirnov@gmail.com>
233
234 * mi/mi-getopt.c (mi_getopt): Rename `optind' and `optarg' to
235 `oind' and `oarg', respectively(-Wshadow).
236 (mi_valid_noargs): Ditto.
237
54dc8297
AS
2382011-12-16 Andrey Smirnov <andrew.smirnov@gmail.com>
239
240 * mi/mi-cmd-var.c (print_varobj): Rename `optind' and `optarg' to
241 `oind' and `oarg', respectively(-Wshadow).
242
00629212
AS
2432011-12-16 Andrey Smirnov <andrew.smirnov@gmail.com>
244
245 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Rename `optind' and
246 `optarg' to `oind' and `oarg', respectively(-Wshadow).
247 (mi_cmd_target_file_put): Ditto.
248 (mi_cmd_target_file_delete): Ditto.
249
7082409d
AS
2502011-12-16 Andrey Smirnov <andrew.smirnov@gmail.com>
251
252 * mi/mi-cmd-env.c (mi_cmd_env_path): Rename `optind' and
253 `optarg' to `oind' and `oarg', respectively(-Wshadow).
254 (mi_cmd_env_dir): Ditto.
255
2562011-12-16 Andrey Smirnov <andrew.smirnov@gmail.com>
81493c62 257
7082409d
AS
258 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Rename `optind' and
259 `optarg' to `oind' and `oarg', respectively(-Wshadow).
81493c62 260
f8c000a2
AS
2612011-12-16 Andrey Smirnov <andrew.smirnov@gmail.com>
262
263 * mi/mi-cmd-break.c (mi_cmd_break_insert): Rename `optind' and
81493c62 264 `optparg' to `oind' and `oarg', respectively(-Wshadow).
f8c000a2
AS
265 (mi_cmd_break_watch): Ditto.
266
07fea4b4
TT
2672011-12-16 Tom Tromey <tromey@redhat.com>
268
269 * linespec.c (collect_symbols): Call maybe_add_address after
270 calling symbol_to_sal.
271 (minsym_found): Call maybe_add_address here.
272 (search_minsyms_for_name): Don't call maybe_add_address.
273
39b856a4
TT
2742011-12-16 Tom Tromey <tromey@redhat.com>
275
276 * linespec.c (struct collect_info) <objfile>: Remove field.
277 (decode_objc): Update.
278 (find_method): Update.
279 (decode_variable): Update.
280 (struct minsym_and_objfile): New.
281 (struct collect_minsyms): New.
282 (classify_mtype): New function.
283 (compare_msyms): Likewise.
284 (add_minsym): Likewise.
285 (check_minsym): Remove.
286 (search_minsyms_for_name): Sort minsyms and apply only those with
287 top priority.
288
ccbac09d
TT
2892011-12-16 Tom Tromey <tromey@redhat.com>
290
291 * cli/cli-cmds.c (filter_sals): Filter out sals with NULL symtab.
292
77cce10f
PA
2932011-12-16 Pedro Alves <pedro@codesourcery.com>
294
295 * inf-loop.c: Include top.h.
296 (inferior_event_handler): Call check_frame_language.
297 * top.c (check_frame_language_change): New, factored out from ...
298 (execute_command): ... this. Use check_frame_language_change.
299 * top.h (check_frame_language_change): Declare.
300
a961bc18
PM
3012011-12-16 asmwarrior <asmwarrior@gmail.com> (obvious fix)
302
303 * windows-nat.c (cygwin_get_dr, cygwin_get_dr7): Add missing
304 prototypes.
305
e0f9f062
DE
3062011-12-16 Doug Evans <dje@google.com>
307
308 * NEWS: Add entry for stdio gdbserver.
309
80b6e756
PM
3102011-12-16 Phil Muldoon <pmuldoon@redhat.com>
311
312 * python/python.c: Define python_excp_enums.
313 (eval_python_from_control_command): Do not call gdbpy_print_stack.
314 (python_command): Ditto.
315 (gdbpy_print_stack): Rewrite to use new enum constants.
316 (maint_set_python): Remove function.
317 (maint_show_python): Ditto.
318 (_initialize_python): Do not add "maint" commands. Add "set/show
319 python print-stack commands".
320 * NEWS: Update to reflect removal for "maint set/show
321 print-stack"
322
ef140872
DE
3232011-12-15 Doug Evans <dje@google.com>
324
325 * exceptions.c (catcher_list_size): New function.
326 (last_message): Delete.
327 (exception_messages, exception_messages_size): New static globals.
328 (throw_it): Use exception_messages array to handle nested calls.
329
b5b445a3
TT
3302011-12-15 Tom Tromey <tromey@redhat.com>
331
332 * symfile.c (symbol_file_add_with_addrs_or_offsets): Remove bad
333 do_cleanups call.
334
0b6cb71e
DE
3352011-12-14 Doug Evans <dje@google.com>
336
337 * defs.h (wait_to_die_with_timeout): Declare.
338 * utils.c: #include "gdb_wait.h".
339 (sigalrm_handler, wait_to_die_with_timeout): New functions.
340 * ser-pipe.c: Don't #include "gdb_wait.h".
341 (pipe_close): Give child a chance to die on its own after closing
342 its stdin before SIGTERM'ing it.
343
6475f2fe 3442011-12-14 Joel Brobecker <brobecker@adacore.com>
afaabefa 345 Tom Tromey <tromey@redhat.com>
6475f2fe
JB
346
347 * ada-lang.c (add_nonlocal_symbols): Initialize data to
348 all zeros. Remove setting of data.arg_sym to NULL.
349
7b50312a
PA
3502011-12-14 Pedro Alves <pedro@codesourcery.com>
351
352 PR threads/10729
353
354 * linux-nat.c (linux_nat_new_thread): Change parameter to an lwp
355 pointer.
356 (linux_nat_prepare_to_resume): New global.
357 (lwp_free): New.
358 (purge_lwp_list): Use it.
359 (add_lwp): Call linux_nat_new_thread even on the first LWP.
360 Adjust to interface change.
361 (delete_lwp): Call lwp_free instead of xfree.
362 (detach_callback, linux_nat_detach, resume_lwp, linux_nat_resume)
363 (linux_handle_syscall_trap, linux_handle_extended_wait)
364 (linux_nat_filter_event, resume_stopped_resumed_lwps): Call
365 linux_nat_prepare_to_resume before resuming.
366 (linux_stop_lwp): New.
367 (linux_nat_set_new_thread): Adjust.
368 (linux_nat_set_prepare_to_resume): New.
369 * linux-nat.h (struct arch_lwp_info): Forward declare.
370 (struct lwp_info) <arch_private>: New field.
371 (linux_stop_lwp): Declare.
372 (linux_nat_set_new_thread): Adjust.
373 (linux_nat_set_prepare_to_resume): New.
374
375 * i386-nat.c (DR_NADDR, DR_STATUS, DR_CONTROL)
376 (struct i386_debug_reg_state): Move to i386-nat.h.
377 (dr_mirror): Comment.
378 (i386_debug_reg_state): New.
379 (i386_update_inferior_debug_regs): Simplify.
380 (i386_stopped_data_address): Use the debug register state from the
381 inferior, not from the local cache.
382 * i386-nat.h (struct i386_dr_low_type): Delete reset_addr and
383 unset_status fields. New get_addr and get_control fields.
384 (DR_FIRSTADDR, DR_LASTADDR, DR_CONTROL): Moved from i386-nat.c.
385 (DR_NADDR, DR_STATUS): New.
386 (struct i386_debug_reg_state): Moved from i386-nat.c.
387
388 * amd64-linux-nat.c (struct arch_lwp_info): New.
389 (amd64_linux_dr): Delete global.
390 (amd64_linux_dr_get_addr): New.
391 (amd64_linux_dr_get_control): New.
392 (amd64_linux_dr_unset_status): Delete.
393 (amd64_linux_dr_set_addr): Reimplement.
394 (amd64_linux_dr_reset_addr): Delete.
395 (update_debug_registers_callback): New.
396 (amd64_linux_dr_set_control): Reimplement.
397 (amd64_linux_dr_set_addr): Reimplement.
398 (amd64_linux_prepare_to_resume): New.
399 (amd64_linux_new_thread): Change parameter to an lwp pointer.
400 Reimplement.
401 (_initialize_amd64_linux_nat): No longer install
402 i386_dr_low.reset_addr and i386_dr_low.unset_status. Install
403 amd64_linux_dr_get_control as i386_dr_low.get_control. Install
404 amd64_linux_dr_get_addr as i386_dr_low.get_addr. Install
405 amd64_linux_prepare_to_resume.
406 * i386-linux-nat.c (DR_FIRSTADDR, DR_LASTADDR, DR_STATUS)
407 (DR_CONTROL): Delete.
408 (struct arch_lwp_info): New.
409 (i386_linux_dr): Delete global.
410 (i386_linux_dr_set_control): Reimplement.
411 (i386_linux_dr_get_addr): New.
412 (i386_linux_dr_set_addr): Reimplement.
413 (i386_linux_dr_get_control): New.
414 (update_debug_registers_callback): New.
415 (i386_linux_dr_unset_status): Delete.
416 (i386_linux_dr_set_addr): Reimplement.
417 (i386_linux_prepare_to_resume): New.
418 (i386_linux_new_thread): Change parameter to an lwp pointer.
419 Reimplement.
420 (_initialize_i386_linux_nat): No longer install
421 i386_dr_low.reset_addr and i386_dr_low.unset_status. Install
422 i386_linux_dr_get_control as i386_dr_low.get_control. Install
423 i386_linux_dr_get_addr as i386_dr_low.get_addr. Install
424 i386_linux_prepare_to_resume.
425
426 * arm-linux-nat.c (arm_linux_new_thread): Change parameter to an
427 lwp pointer. Adjust.
428 * ia64-linux-nat.c (ia64_linux_new_thread): Likewise.
429 * mips-linux-nat.c (mips_linux_new_thread): Likewise.
430 * ppc-linux-nat.c (ppc_linux_new_thread): Likewise.
431 * s390-nat.c (s390_fix_watch_points): Likewise.
432
433 * i386-darwin-nat.c (DR_FIRSTADDR, DR_LASTADDR, DR_STATUS)
434 (DR_CONTROL): Delete.
435 (i386_darwin_dr_reset_addr): Delete.
436 (i386_darwin_dr_get_addr): New.
437 (i386_darwin_dr_get_control): New.
438 * go32-nat.c
439 (go32_get_dr7, go32_get_dr): New.
440 (init_go32_ops): No longer install i386_dr_low.reset_addr.
441 Install go32_get_dr7 as i386_dr_low.get_control. Install
442 go32_get_dr as i386_dr_low.get_addr.
443 * i386bsd-nat.c (i386bsd_dr_get): New.
444 (i386bsd_dr_reset_addr): Delete.
445 (i386bsd_dr_get_addr): New.
446 (i386bsd_dr_get_status): Use i386bsd_dr_get.
447 (i386bsd_dr_get_control): New.
448 * i386bsd-nat.h (i386bsd_dr_reset_addr): Delete.
449 (i386bsd_dr_get_addr): New.
450 (i386bsd_dr_get_control): New.
451 * i386fbsd-nat.c (_initialize_i386fbsd_nat): No longer install
452 i386_dr_low.reset_addr and i386_dr_low.unset_status. Install
453 i386bsd_dr_get_control as i386_dr_low.get_control. Install
454 i386bsd_dr_get_addr as i386_dr_low.get_addr.
455 * windows-nat.c (init_windows_ops): No longer install
456 i386_dr_low.reset_addr and i386_dr_low.unset_status. Install
457 cygwin_get_dr7 as i386_dr_low.get_control. Install cygwin_get_dr
458 as i386_dr_low.get_addr.
459 (cygwin_get_dr): New.
460 (cygwin_get_dr7): New.
461
dd110abf
PA
4622011-12-14 Pedro Alves <pedro@codesourcery.com>
463
464 * ia64-tdep.c (ia64_memory_remove_breakpoint): Use
465 target_write_raw_memory.
466 * m32r-tdep.c (m32r_memory_remove_breakpoint): Use
467 target_write_raw_memory.
468 * microblaze-linux-tdep.c
469 (microblaze_linux_memory_remove_breakpoint): Use
470 target_write_raw_memory.
471 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Use
472 target_write_raw_memory.
473
ad32032e
JB
4742011-12-14 Joel Brobecker <brobecker@adacore.com>
475
476 * linespec.c (decode_line_internal): Make static.
477
d14c4eb7
YQ
4782011-12-14 Yao Qi <yao@codesourcery.com>
479
480 * breakpoint.c (create_breakpoint): Set canonical.addr_string
481 for static tracepoint.
482
25564b66 4832011-12-13 Joel Brobecker <brobecker@adacore.com>
484
485 GDB 7.4 branch created (branch timestamp: 2011-12-13 13:00 UTC)
486 * version.in: Bump version to 7.4.50.20111213-cvs.
487
8837a20f
JB
4882011-12-13 Joel Brobecker <brobecker@adacore.com>
489
490 * NEWS: Create a new section for the next release branch.
491 Rename the section of the current branch, now that it has
492 been cut.
493
7dda8cff
JB
4942011-12-11 Joel Brobecker <brobecker@adacore.com>
495
496 * ada-lang.c (ada_exception_support_info_sniffer): Improve
497 error message.
498
3eecfa55
JB
4992011-12-11 Joel Brobecker <brobecker@adacore.com>
500
501 * ada-lang.c (struct ada_inferior_data) [exception_info]:
502 New field.
503 (exception_info): Delete.
504 (ada_exception_support_info_sniffer): Get exception_support_info
505 data from our per-inferior data. Adjust code accordingly.
506 (ada_unhandled_exception_name_addr_from_raise): Likewise.
507 (ada_exception_name_addr_1, ada_exception_sym_name): Ditto.
508 (ada_executable_changed_observer): Delete.
509 (_initialize_ada_language): Remove call to
510 observer_attach_executable_changed.
511
a6af7abe
JB
5122011-12-11 Joel Brobecker <brobecker@adacore.com>
513
514 * ada-lang.c (ada_has_this_exception_support): Raise an error
515 if we could find the Ada exception hook in the Ada runtime,
516 but no debugging info for that hook.
517
f17011e0
JB
5182011-12-11 Joel Brobecker <brobecker@adacore.com>
519
520 * ada-lang.c (ada_has_this_exception_support): New function,
521 extracted out of ada_exception_sal and ada_exception_sal.
522 (ada_exception_support_info_sniffer): Simplify by using
523 ada_has_this_exception_support.
524 (ada_exception_sal): Replace unnecessary checks by assertions.
525 Minor simplifications.
526
d3fbdd86
AS
5272011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
528
529 * breakpoint.c (update_global_location_list): Remove nested
530 definition of `b'(-Wshadow).
531
eacd795a
AS
5322011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
533
534 * breakpoint.c (insert_breakpoint_locations): Rename `error' to
535 `error_flag'(-Wshadow).
536
ad13d8df
AS
5372011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
538
539 * bfd-target.c (target_bfd_reopen): Rename `bfd' to
540 `abfd'(-Wshadow).
541
917793af
AS
5422011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
543
544 * annotate.c (annotate_array_section_begin): Rename `index' to
545 `idx'(-Wshadow).
546
d48ebb5b
AS
5472011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
548
549 * amd64-tdep.c (amd64_get_unused_input_int_reg): Rename `index' to
550 `idx'(-Wshadow).
551
9ed936ec
AS
5522011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
553
554 * amd64-linux-tdep.c (amd64_canonicalize_syscall): Rename
555 `syscall' to `syscall_number'(-Wshadow).
556
a35ddb44
AS
5572011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
558
559 * ada-lang.c (remove_extra_symbols): Rename `remove' to
560 `remove_p'(-Wshadow).
561
e5e61bd7
AS
5622011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
563
564 * ada-exp.y (write_var_or_type): Rename nested `renaming' to
565 `ren_sym'(-Wshadow).
566
d200ab1e
DE
5672011-12-10 Doug Evans <dje@google.com>
568
b0df02fd
DE
569 * dwarf2read.c (dwarf2_per_cu_data): Rename debug_type_section to
570 debug_types_section. All uses updated.
571 (partial_read_comp_unit_head): Rename parameter is_debug_type_section
572 to is_debug_types_section.
573
d200ab1e
DE
574 * python/py-auto-load.c (source_section_scripts): Call xfree
575 instead of free.
576
4511b1ba
YQ
5772011-12-10 Hui Zhu <teawater@gmail.com>
578 Yao Qi <yao@codesourcery.com>
579
580 * tracepoint.c (start_tracing): Clear `inserted' flag.
581
df5a4bd3
HZ
5822011-12-10 Hui Zhu <teawater@gmail.com>
583
584 * tracepoint.c (create_tsv_from_upload): Change sprintf to xstrprintf.
585
1afeeb75
AS
5862011-12-09 Andrey Smirnov <andrew.smirnov@gmail.com>
587
588 * breakpoint.c (bp_loc_is_permanent): Rename `brk' to
589 `bpoint'(-Wshadow).
590
80e1d417
AS
5912011-12-09 Andrey Smirnov <andrew.smirnov@gmail.com>
592
593 * breakpoint.c (update_static_tracepoint): Rename nested `sal' and
594 `marker' variables to `sal2' and `tpmarker' respectively
595 (-Wshadow).
596
04ca3c22
AP
5972011-12-09 Andrew Pinski <apinski@cavium.com>
598
599 * linespec.c (hash_address_entry): Use iterative_hash_object on each
600 field rather than the struct itself.
601
8a2c437b
TT
6022011-12-09 Tom Tromey <tromey@redhat.com>
603
604 * breakpoint.c (compare_breakpoints): New function.
605 (clear_command): Remove duplicate breakpoints. Properly clean
606 up.
607
280711e7
MR
6082011-12-08 Maciej W. Rozycki <macro@mips.com>
609 Maciej W. Rozycki <macro@codesourcery.com>
610
611 * mips-tdep.c (mips_skip_mips16_trampoline_code): Sign-extend
612 address chunks retrieved from decoded lui/addiu pairs.
613
4c2051c6
MR
6142011-12-08 Maciej W. Rozycki <macro@codesourcery.com>
615
616 * mips-tdep.c (extended_offset): Correct calculation.
617 (unpack_mips16): Correct bitfield positions used for extraction
618 of the immediate argument; fix sign-extension of same.
619 (extended_mips16_next_pc): Correct B instruction's offset
620 calculation. Correct register decoding of the BEQZ and BNEZ
621 as well as jump-register instructions. Handle compact jumps.
622
ff011ed7
TT
6232011-12-08 Tom Tromey <tromey@redhat.com>
624
625 * objfiles.h (struct objfile): Remove obsolete comment.
626 * objfiles.c (build_objfile_section_table): Remove obsolete
627 comment.
628
7cd3876c
SS
6292011-12-07 Stan Shebs <stan@codesourcery.com>
630
631 * MAINTAINERS (Responsible Maintainers): Add Yao Qi as
632 maintainer of the tic6x target.
633
35f73cfc
UW
6342011-12-07 Ulrich Weigand <ulrich.weigand@linaro.org>
635
636 * arm-tdep.h (arm_deal_with_atomic_sequence): Add prototype.
637 * arm-tdep.c (thumb_deal_with_atomic_sequence_raw): New function.
638 (arm_deal_with_atomic_sequence_raw): Likewise.
639 (arm_deal_with_atomic_sequence): Likewise.
640 (arm_software_single_step): Call it.
641 * arm-linux-tdep.c (arm_linux_software_single_step): Likewise.
642
94eae614
UW
6432011-12-07 Ulrich Weigand <uweigand@de.ibm.com>
644
645 * s390-tdep.c: Replace "Linux" by "GNU/Linux" in comments
646 where appropriate.
647 * s390-tdep.h: Likewise.
648
13b8d0c6
TG
6492011-12-07 Tristan Gingold <gingold@adacore.com>
650
651 * machoread.c (macho_symtab_read): Do not consider N_OPT as
652 a debugging stab. Improve complaint message.
653
5436df95
MR
6542011-12-07 Maciej W. Rozycki <macro@codesourcery.com>
655
656 * mips-tdep.c (mips32_scan_prologue): Only update the immediate
657 load adjustment if still within the prologue.
658
040dff2a
MR
6592011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
660
661 * mips-tdep.c (mips32_next_pc): Fix floating point condition
662 code mask.
663
754d7c78
MR
6642011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
665
666 * mips-tdep.c (deal_with_atomic_sequence): Fix the handling
667 of BLTZ* and BGEZ* instructions.
668
91912e4d
MR
6692011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
670
671 * mips-tdep.c (mips_pc_is_mips16): Reverse the order of checks
672 performed to determine whether an address refers to standard
673 MIPS or MIPS16 code.
674 (mips16_next_pc): Use mips_pc_is_mips16 instead of
675 is_mips16_addr.
676
f0ba3972
PA
6772011-12-06 Pedro Alves <pedro@codesourcery.com>
678
679 * breakpoint.c (breakpoint_restore_shadows): Rename to ...
680 (breakpoint_xfer_memory): ... this. Change prototype. Handle
681 memory writes too.
682 * breakpoint.h (breakpoint_restore_shadows): Delete.
683 (breakpoint_xfer_memory): Declare.
684 * mem-break.c (default_memory_insert_breakpoint)
685 (default_memory_remove_breakpoint): Use target_write_raw_memory.
686 (memory_xfer_partial): Rename to ...
687 (memory_xfer_partial_1): ... this. Don't mask out breakpoints
688 here.
689 (memory_xfer_partial): New.
690 (target_write_raw_memory): New.
691 * target.h (target_write_raw_memory): New.
692
31aba06f
DE
6932011-12-06 Doug Evans <dje@google.com>
694
695 * linespec.c (decode_dollar): Avoid "may be used uninitialized" warning.
696
f8eba3c6
TT
6972011-12-06 Joel Brobecker <brobecker@acacore.com>
698
699 * language.h (struct language_defn): Add new component
700 la_symbol_name_compare.
701 * symfile.h (struct quick_symbol_functions): Update the profile
702 of parameter "name_matcher" for the expand_symtabs_matching
703 method. Update the documentation accordingly.
704 * ada-lang.h (ada_name_for_lookup): Add declaration.
705 * ada-lang.c (ada_name_for_lookup): New function, extracted out
706 from ada_iterate_over_symbols.
707 (ada_iterate_over_symbols): Do not encode symbol name anymore.
708 (ada_expand_partial_symbol_name): Adjust profile.
709 (ada_language_defn): Add value for la_symbol_name_compare field.
710 * linespec.c: #include "ada-lang.h".
711 (iterate_name_matcher): Add language parameter. Replace call
712 to strcmp_iw by call to language->la_symbol_name_compare.
713 (decode_variable): Encode COPY if current language is Ada.
714 * dwarf2read.c (dw2_expand_symtabs_matching): Adjust profile
715 of name_matcher parameter. Adjust call to name_matcher.
716 * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
717 (expand_partial_symbol_names): Update profile of parameter "fun".
718 * psymtab.h (expand_partial_symbol_names): Update profile of
719 parameter "fun".
720 * symtab.c (demangle_for_lookup): Update function documentation.
721 (search_symbols_name_matches): Add language parameter.
722 (expand_partial_symbol_name): Likewise.
723 * c-lang.c (c_language_defn, cplus_language_defn)
724 (asm_language_defn, minimal_language_defn): Add value for
725 la_symbol_name_compare field.
726 * d-lang.c (d_language_defn): Likewise.
727 * f-lang.c (f_language_defn): Ditto.
728 * jv-lang.c (java_language_defn): Ditto.
729 * m2-lang.c (m2_language_defn): Ditto.
730 * objc-lang.c (objc_language_defn): Ditto.
731 * opencl-lang.c (opencl_language_defn): Ditto.
732 * p-lang.c (pascal_language_defn): Ditto.
733 * language.c (unknown_language_defn, auto_language_defn)
734 (local_language_defn): Ditto.
735
7362011-12-06 Tom Tromey <tromey@redhat.com>
737
738 * linespec.c (iterate_over_all_matching_symtabs): Use
739 LA_ITERATE_OVER_SYMBOLS.
740 (lookup_prefix_sym, add_matching_symbols_to_info): Likewise.
741 (find_function_symbols, decode_variable): Remove Ada special
742 case.
743 * language.h (struct language_defn) <la_iterate_over_symbols>: New
744 field.
745 (LA_ITERATE_OVER_SYMBOLS): New macro.
746 * language.c (unknown_language_defn, auto_language_defn)
747 (local_language_defn): Update.
748 * c-lang.c (c_language_defn, cplus_language_defn)
749 (asm_language_defn, minimal_language_defn): Update.
750 * d-lang.c (d_language_defn): Update.
751 * f-lang.c (f_language_defn): Update.
752 * jv-lang.c (java_language_defn): Update.
753 * m2-lang.c (m2_language_defn): Update.
754 * objc-lang.c (objc_language_defn): Update.
755 * opencl-lang.c (opencl_language_defn): Update.
756 * p-lang.c (pascal_language_defn): Update.
757 * ada-lang.c (ada_iterate_over_symbols): New function.
758 (ada_language_defn): Update.
759
7602011-12-06 Tom Tromey <tromey@redhat.com>
761 Joel Brobecker <brobecker@acacore.com>
762
763 PR breakpoints/13105, PR objc/8341, PR objc/8343, PR objc/8366,
764 PR objc/8535, PR breakpoints/11657, PR breakpoints/11970,
765 PR breakpoints/12023, PR breakpoints/12334, PR breakpoints/12856,
766 PR shlibs/8929, PR shlibs/7393:
767 * python/py-type.c (compare_maybe_null_strings): Rename from
768 compare_strings.
769 (check_types_equal): Update.
770 * utils.c (compare_strings): New function.
771 * tui/tui-winsource.c (tui_update_breakpoint_info): Update for
772 location changes.
773 * tracepoint.c (scope_info): Update.
774 (trace_find_line_command): Use DECODE_LINE_FUNFIRSTLINE.
775 * symtab.h (iterate_over_minimal_symbols)
776 (iterate_over_some_symtabs, iterate_over_symtabs)
777 (find_pcs_for_symtab_line, iterate_over_symbols)
778 (demangle_for_lookup): Declare.
779 (expand_line_sal): Remove.
780 * symtab.c (iterate_over_some_symtabs, iterate_over_symtabs)
781 (lookup_symtab_callback): New functions.
782 (lookup_symtab): Rewrite.
783 (demangle_for_lookup): New function, extract from
784 lookup_symbol_in_language.
785 (lookup_symbol_in_language): Use it.
786 (iterate_over_symbols): New function.
787 (find_line_symtab): Update.
788 (find_pcs_for_symtab_line): New functions.
789 (find_line_common): Add 'start' argument.
790 (decode_line_spec): Update. Change argument to 'flags', change
791 interpretation.
792 (append_expanded_sal): Remove.
793 (append_exact_match_to_sals): Remove.
794 (expand_line_sal): Remove.
795 * symfile.h (struct quick_symbol_functions) <lookup_symtab>:
796 Remove.
797 <map_symtabs_matching_filename>: New field.
798 * stack.c (func_command): Only look in the current program space.
799 Use DECODE_LINE_FUNFIRSTLINE.
800 * source.c (line_info): Set pspace on sal. Check program space in
801 the loop. Use DECODE_LINE_LIST_MODE.
802 (select_source_symtab): Use DECODE_LINE_FUNFIRSTLINE.
803 * solib-target.c: Remove DEF_VEC_I(CORE_ADDR).
804 * python/python.c (gdbpy_decode_line): Update.
805 * psymtab.c (partial_map_expand_apply): New function.
806 (partial_map_symtabs_matching_filename): Rename from
807 lookup_partial_symbol. Update arguments.
808 (lookup_symtab_via_partial_symtab): Remove.
809 (psym_functions): Update.
810 * objc-lang.h (parse_selector, parse_method): Don't declare.
811 (find_imps): Update.
812 * objc-lang.c (parse_selector, parse_method): Now static.
813 (find_methods): Change arguments. Fill in a vector of symbol
814 names.
815 (uniquify_strings): New function.
816 (find_imps): Change arguments.
817 * minsyms.c (iterate_over_minimal_symbols): New function.
818 * linespec.h (enum decode_line_flags): New.
819 (struct linespec_sals): New.
820 (struct linespec_result) <canonical>: Remove.
821 <pre_expanded, addr_string, sals>: New fields.
822 (destroy_linespec_result, make_cleanup_destroy_linespec_result)
823 (decode_line_full): Declare.
824 (decode_line_1): Update.
825 * linespec.c (struct address_entry, struct linespec_state, struct
826 collect_info): New types.
827 (add_sal_to_sals_basic, add_sal_to_sals, hash_address_entry)
828 (eq_address_entry, maybe_add_address): New functions.
829 (total_number_of_methods): Remove.
830 (iterate_name_matcher, iterate_over_all_matching_symtabs): New
831 functions.
832 (find_methods): Change arguments. Don't canonicalize input.
833 Simplify logic.
834 (add_matching_methods, add_constructors)
835 (build_canonical_line_spec): Remove.
836 (filter_results, convert_results_to_lsals): New functions.
837 (decode_line_2): Change arguments. Rewrite for new data
838 structures.
839 (decode_line_internal): Rename from decode_line_1. Change
840 arguments. Add cleanups. Update for new data structures.
841 (linespec_state_constructor, linespec_state_destructor)
842 (decode_line_full, decode_line_1): New functions.
843 (decode_indirect): Change arguments. Update.
844 (locate_first_half): Use skip_spaces.
845 (decode_objc): Change arguments. Update for new data structures.
846 Simplify logic.
847 (decode_compound): Change arguments. Add cleanups. Remove
848 fallback code, replace with error.
849 (struct decode_compound_collector): New type.
850 (collect_one_symbol): New function.
851 (lookup_prefix_sym): Change arguments. Update.
852 (compare_symbol_name, add_all_symbol_names_from_pspace)
853 (find_superclass_methods ): New functions.
854 (find_method): Rewrite.
855 (struct symtab_collector): New type.
856 (add_symtabs_to_list, collect_symtabs_from_filename): New
857 functions.
858 (symtabs_from_filename): Change API. Rename from
859 symtab_from_filename.
860 (collect_function_symbols): New function.
861 (find_function_symbols): Change API. Rename from
862 find_function_symbol. Rewrite.
863 (decode_all_digits): Change arguments. Rewrite.
864 (decode_dollar): Change arguments. Use decode_variable.
865 (decode_label): Change arguments. Rewrite.
866 (collect_symbols): New function.
867 (minsym_found): Change arguments. Rewrite.
868 (check_minsym, search_minsyms_for_name)
869 (add_matching_symbols_to_info): New function.
870 (decode_variable): Change arguments. Iterate over all symbols.
871 (symbol_found): Remove.
872 (symbol_to_sal): New function.
873 (init_linespec_result, destroy_linespec_result)
874 (cleanup_linespec_result, make_cleanup_destroy_linespec_result):
875 New functions.
876 (decode_digits_list_mode, decode_digits_ordinary): New functions.
877 * dwarf2read.c (dw2_map_expand_apply): New function.
878 (dw2_map_symtabs_matching_filename): Rename from
879 dw2_lookup_symtab. Change arguments.
880 (dwarf2_gdb_index_functions): Update.
881 * dwarf2loc.c: Remove DEF_VEC_I(CORE_ADDR).
882 * defs.h (compare_strings): Declare.
883 * cli/cli-cmds.c (compare_strings): Move to utils.c.
884 (edit_command, list_command): Use DECODE_LINE_LIST_MODE. Call
885 filter_sals.
886 (compare_symtabs, filter_sals): New functions.
887 * breakpoint.h (struct bp_location) <line_number, source_file>:
888 New fields.
889 (struct breakpoint) <line_number, source_file>: Remove.
890 <filter>: New field.
891 * breakpoint.c (print_breakpoint_location, init_raw_breakpoint)
892 (momentary_breakpoint_from_master, add_location_to_breakpoint):
893 Update for changes to locations.
894 (init_breakpoint_sal): Add 'filter' argument. Set 'filter' on
895 breakpoint.
896 (create_breakpoint_sal): Add 'filter' argument.
897 (remove_sal, expand_line_sal_maybe): Remove.
898 (create_breakpoints_sal): Remove 'sals' argument. Handle
899 pre-expanded sals and the filter.
900 (parse_breakpoint_sals): Use decode_line_full.
901 (check_fast_tracepoint_sals): Use get_sal_arch.
902 (create_breakpoint): Create a linespec_sals. Update.
903 (break_range_command): Use decode_line_full. Update.
904 (until_break_command): Update.
905 (clear_command): Update match conditions for linespec.c changes.
906 Use DECODE_LINE_LIST_MODE.
907 (say_where): Update for changes to locations.
908 (bp_location_dtor): Free 'source_file'.
909 (base_breakpoint_dtor): Free 'filter'. Don't free 'source_file'.
910 (update_static_tracepoint): Update for changes to locations.
911 (update_breakpoint_locations): Disable ranged breakpoint if too
912 many locations match. Update.
913 (addr_string_to_sals): Use decode_line_full. Resolve all sal
914 PCs.
915 (breakpoint_re_set_default): Don't call expand_line_sal_maybe.
916 (decode_line_spec_1): Update. Change argument name to 'flags',
917 change interpretation.
918 * block.h (block_containing_function): Declare.
919 * block.c (block_containing_function): New function.
920 * skip.c (skip_function_command): Update.
921 (skip_re_set): Update.
922 * infcmd.c (jump_command): Use DECODE_LINE_FUNFIRSTLINE.
923 * mi/mi-main.c (mi_cmd_trace_find): Use DECODE_LINE_FUNFIRSTLINE.
924 * NEWS: Add entry.
925
9262011-12-06 Tom Tromey <tromey@redhat.com>
927
928 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Allow
929 breakpoint's pspace to be NULL.
930 * breakpoint.h (struct breakpoint) <pspace>: Update comment.
931 * breakpoint.c (init_raw_breakpoint): Conditionally set
932 breakpoint's pspace.
933 (init_breakpoint_sal): Don't set breakpoint's pspace.
934 (prepare_re_set_context): Conditionally switch program space.
935 (addr_string_to_sals): Check executing_startup on location's
936 program space.
937
9382011-12-06 Tom Tromey <tromey@redhat.com>
939
940 * breakpoint.h (enum enable_state) <bp_startup_disabled>: Remove.
941 * breakpoint.c (should_be_inserted): Explicitly check if program
942 space is executing startup.
943 (describe_other_breakpoints): Update.
944 (disable_breakpoints_before_startup): Change executing_startup
945 earlier. Remove loop.
946 (enable_breakpoints_after_startup): Likewise.
947 (init_breakpoint_sal): Don't use bp_startup_disabled.
948 (create_breakpoint): Don't use bp_startup_disabled.
949 (update_global_location_list): Use should_be_inserted.
950 (bkpt_re_set): Update.
951
75c8c9d7
TT
9522011-12-06 Tom Tromey <tromey@redhat.com>
953
954 * python/lib/gdb/command/pretty_printers.py
955 (InfoPrettyPrinter.invoke1): Remove extra double quote.
956
7376e450
TT
9572011-12-06 Tom Tromey <tromey@redhat.com>
958
959 * NEWS: Add MI news.
960
c642a434
UW
9612011-12-06 Ulrich Weigand <uweigand@de.ibm.com>
962
963 * s390-tdep.h (S390_ORIG_R2_REGNUM): Define.
964 (S390_LAST_BREAK_REGNUM): Likewise.
965 (S390_SYSTEM_CALL_REGNUM): Likewise.
966 (S390_NUM_REGS): Update.
967
968 (s390_regmap_last_break): Add declaration.
969 (s390x_regmap_last_break): Likewise.
970 (s390_regmap_system_call): Likewise.
971
972 (tdesc_s390_linux32v1): Add declaration.
973 (tdesc_s390_linux32v2): Likewise.
974 (tdesc_s390_linux64v1): Likewise.
975 (tdesc_s390_linux64v2): Likewise.
976 (tdesc_s390x_linux64v1): Likewise.
977 (tdesc_s390x_linux64v2): Likewise.
978
979 * s390-tdep.c: Include new target description files
980 "features/s390-linux32v1.c", "features/s390-linux32v2.c",
981 "features/s390-linux64v1.c", "features/s390-linux64v2.c",
982 "features/s390x-linux64v1.c", and "features/s390x-linux64v2.c".
983 (s390_cannot_store_register): New function.
984 (s390_write_pc): Likewise.
985 (s390_dwarf_regmap): Add fields for new registers.
986 (s390_regmap_gregset): Likewise.
987 (s390x_regmap_gregset): Likewise.
988 (s390_regmap_fpregset): Likewise.
989 (s390_regmap_upper): Likewise.
990 (s390_regmap_last_break): New variable.
991 (s390x_regmap_last_break): Likewise.
992 (s390_regmap_system_call): Likewise.
993 (s390_last_break_regset): Likewise.
994 (s390x_last_break_regset): Likewise.
995 (s390_system_call_regset): Likewise.
996 (s390_upper_regset_sections): Rename to ...
997 (s390_linux64_regset_sections): ... this.
998 (s390_linux32_regset_sections): New variable.
999 (s390x_linux64_regset_sections): Likewise.
1000 (s390_linux32v1_regset_sections): Likewise.
1001 (s390_linux32v2_regset_sections): Likewise.
1002 (s390_linux64v1_regset_sections): Likewise.
1003 (s390_linux64v2_regset_sections): Likewise.
1004 (s390x_linux64v1_regset_sections): Likewise.
1005 (s390x_linux64v2_regset_sections): Likewise.
1006 (s390_regset_from_core_section): Handle .reg-s390-last-break and
1007 .reg-s390-system-call core file sections.
1008 (s390_core_read_description): Check for presence of
1009 .reg-s390-last-break and .reg-s390-system-call core file
1010 sections and return appropriate target description.
1011 (s390_gdbarch_init): Detect Linux-specific registers "orig_r2",
1012 "last_break" and "system_call" in target description. Install
1013 appropriate gdbarch_core_regset_sections array.
1014 Call set_gdbarch_cannot_store_register and set_gdbarch_write_pc.
1015 (_initialize_s390_tdep): Initialize additional target descriptions.
1016
1017 * s390-nat.c: Include "elf/common.h".
1018 (PTRACE_GETREGSET, PTRACE_SETREGSET): Define if undefined.
1019 (have_regset_last_break): New static variable.
1020 (have_regset_system_call): Likewise.
1021 (s390_native_supply): Handle S390_ORIG_R2_REGNUM.
1022 (s390_native_collect): Likewise.
1023 (fetch_regset, store_regset, check_regset): New functions.
1024 (s390_linux_fetch_inferior_registers): Handle S390_LAST_BREAK_REGNUM
1025 and S390_SYSTEM_CALL_REGNUM.
1026 (s390_linux_store_inferior_registers): Likewise.
1027 (s390_read_description): Check for presence of NT_S390_LAST_BREAK
1028 and NT_S390_SYSTEM_CALL regsets and use appropriate description.
1029
1030 * features/Makefile (WHICH): Add s390-linux32v1, s390-linux64v1,
1031 s390x-linux64v1, s390-linux32v2, s390-linux64v2, and s390x-linux64v2.
1032 (s390-linux32v1-expedite): Define.
1033 (s390-linux32v2-expedite): Likewise.
1034 (s390-linux64v1-expedite): Likewise.
1035 (s390-linux64v2-expedite): Likewise.
1036 (s390x-linux64v1-expedite): Likewise.
1037 (s390x-linux64v2-expedite): Likewise.
1038
1039 * features/s390-linux32.xml: Add orig_r2 register.
1040 * features/s390-linux64.xml: Likewise.
1041 * features/s390x-linux64.xml: Likewise.
1042 * features/s390-linux32v1.xml: New file.
1043 * features/s390-linux32v2.xml: Likewise.
1044 * features/s390-linux64v1.xml: Likewise.
1045 * features/s390-linux64v2.xml: Likewise.
1046 * features/s390x-linux64v1.xml: Likewise.
1047 * features/s390x-linux64v2.xml: Likewise.
1048
1049 * features/s390-linux32.c: Regenerate.
1050 * features/s390-linux64.c: Likewise.
1051 * features/s390x-linux64.c: Likewise.
1052 * features/s390-linux32v1.c: New generated file.
1053 * features/s390-linux32v2.c: Likewise.
1054 * features/s390-linux64v1.c: Likewise.
1055 * features/s390-linux64v2.c: Likewise.
1056 * features/s390x-linux64v1.c: Likewise.
1057 * features/s390x-linux64v2.c: Likewise.
1058
1059 * regformats/s390-linux32.dat: Regenerate.
1060 * regformats/s390-linux64.dat: Regenerate.
1061 * regformats/s390x-linux64.dat: Regenerate.
1062 * regformats/s390-linux32v1.dat: New generated file.
1063 * regformats/s390-linux32v2.dat: Likewise.
1064 * regformats/s390-linux64v1.dat: Likewise.
1065 * regformats/s390-linux64v2.dat: Likewise.
1066 * regformats/s390x-linux64v1.dat: Likewise.
1067 * regformats/s390x-linux64v2.dat: Likewise.
1068
336060f3
PA
10692011-12-05 Pedro Alves <pedro@codesourcery.com>
1070
1071 * linux-nat.c (resume_stopped_resumed_lwps): Call
1072 registers_changed.
1073
049e32d3
PA
10742011-12-05 Pedro Alves <pedro@codesourcery.com>
1075
1076 * breakpoint.c: Include record.h.
1077 (breakpoints_always_inserted_mode): Return false when the record
1078 target is in use.
1079
5c03c7f9 10802011-12-05 Pedro Alves <pedro@codesourcery.com>
482950ed
PA
1081
1082 * amd64-linux-nat.c (amd64_linux_dr_get): Remove FIXME comment.
1083 Reinstate perror_with_name call on ptrace error. Remove #if 0.
1084 * i386-linux-nat.c (i386_linux_dr_get): Likewise.
1085 * i386bsd-nat.c (i386bsd_dr_get_status): Likewise.
1086
fbbd034e
AS
10872011-12-05 Andrey Smirnov <andrew.smirnov@gmail.com>
1088
1089 * breakpoint.c (init_breakpoint_sal): Remove nested definitions of
1090 `i'(-Wshadow).
1091
a5ff8356 10922011-12-05 Andrey Smirnov <andrew.smirnov@gmail.com>
12747160
AS
1093
1094 * bcache.c (bcache): Rename `bcache' to `cache'(-Wshadow).
1095
10962011-12-05 Andrey Smirnov <andrew.smirnov@gmail.com>
1097
a5ff8356
AS
1098 * amd64-tdep.c (amd64_push_dummy_call): Remove nested definition
1099 of `tdep'(-Wshadow).
1100
93f2a35e
JK
11012011-12-03 Jan Kratochvil <jan.kratochvil@redhat.com>
1102
1103 Fix compilation --without-expat.
1104 * solib-svr4.c (svr4_free_so, svr4_free_library_list): Move them here
1105 from ...
1106 [HAVE_LIBEXPAT] (svr4_free_so, svr4_free_library_list): ... here.
1107
2268b414
JK
11082011-12-02 Paul Pluzhnikov <ppluzhnikov@google.com>
1109 Jan Kratochvil <jan.kratochvil@redhat.com>
1110
1111 * Makefile.in (XMLFILES): Add library-list-svr4.dtd.
1112 * features/library-list-svr4.dtd: New file.
1113 * remote.c (PACKET_qXfer_libraries_svr4): New.
1114 (remote_protocol_features): new entry for PACKET_qXfer_libraries_svr4.
1115 (remote_xfer_partial): Handle TARGET_OBJECT_LIBRARIES_SVR4.
1116 * solib-svr4.c (struct svr4_library_list): New.
1117 [HAVE_LIBEXPAT]: Include xml-support.h.
1118 [HAVE_LIBEXPAT] (svr4_library_list_start_library)
1119 [HAVE_LIBEXPAT] (svr4_library_list_start_list, svr4_library_attributes)
1120 [HAVE_LIBEXPAT] (svr4_library_list_children)
1121 [HAVE_LIBEXPAT] (svr4_library_list_attributes)
1122 [HAVE_LIBEXPAT] (svr4_library_list_elements, svr4_parse_libraries)
1123 [HAVE_LIBEXPAT] (svr4_current_sos_via_xfer_libraries)
1124 [!HAVE_LIBEXPAT] (svr4_current_sos_via_xfer_libraries): New.
1125 (svr4_read_so_list): Extend the corruption message by addresses.
1126 (svr4_current_sos): New variable library_list, call
1127 svr4_current_sos_via_xfer_libraries.
1128 * target.h (enum target_object): New TARGET_OBJECT_LIBRARIES_SVR4.
1129
585861ea
JK
11302011-12-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1131
1132 PR threads/13448
1133 * dwarf2read.c (decode_locdesc): Handle DW_OP_const8u.
1134 For DW_OP_GNU_push_tls_address increment the value, new comment for it.
1135
9750bca9
JK
11362011-12-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1137
1138 PR breakpoints/13346
1139 * dwarf2read.c (process_psymtab_comp_unit): Set
1140 PSYMTABS_ADDRMAP_SUPPORTED.
1141 * psympriv.h (struct partial_symtab): Comment textlow and texthigh
1142 validity. New field psymtabs_addrmap_supported.
1143 * psymtab.c (find_pc_sect_psymtab_closer): New gdb_assert on
1144 psymtabs_addrmap_supported.
1145 (find_pc_sect_psymtab): Do not fallback to TEXTLOW and TEXTHIGH for
1146 !PSYMTABS_ADDRMAP_SUPPORTED.
1147 (dump_psymtab, maintenance_info_psymtabs): Print also
1148 psymtabs_addrmap_supported.
1149
f28c316a
DE
11502011-12-01 Doug Evans <dje@google.com>
1151
1152 * python/py-type.c (type_object_methods): Fix "array" doc string.
1153
fc0ae648
AB
11542011-12-01 Andrew Burgess <aburgess@broadcom.com>
1155
1156 * source.c (print_source_lines_base): Fix missing braces on else
1157 clause leading to additional output.
1158
d6db1fab
UW
11592011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
1160
1161 * s390-nat.c (SUBOFF): Remove.
1162 (s390_native_supply, s390_native_collect): New functions.
1163 (supply_gregset, supply_fpregset): Use s390_native_supply.
1164 (fill_gregset, fill_fpregset): Use s390_native_collect.
1165
1166 * s390-tdep.c (s390_pseudo_register_reggroup_p): Update comment.
1167 (s390_unwind_pseudo_register): New function.
1168 (s390_prologue_frame_unwind_cache): Unwind PSW address and mask
1169 registers instead of PC and CC.
1170 (s390_backchain_frame_unwind_cache): Likewise.
1171 (s390_sigtramp_frame_unwind_cache): Do not unwind PC, CC, or
1172 full GPR pseudos.
1173 (s390_trad_frame_prev_register): New function.
1174 (s390_frame_prev_register): Use it.
1175 (s390_sigtramp_frame_prev_register): Likewise.
1176 (s390_dwarf2_prev_register): Use s390_unwind_pseudo_register.
1177 (s390_dwarf2_frame_init_reg): Unwind PSW address and mask. Use
1178 special callback to unwind any pseudo.
1179
1180 * features/s390-core32.xml: Add pswm/pswa to save/restore group.
1181 * features/s390-core64.xml: Likewise.
1182 * features/s390x-core64.xml: Likewise.
1183 * features/s390-linux32.c: Regenerate.
1184 * features/s390-linux64.c: Likewise.
1185 * features/s390x-linux64.c: Likewise.
1186
1dd635ac
UW
11872011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
1188
1189 * s390-tdep.c (s390_gdbarch_init): Call set_gdbarch_get_siginfo_type.
1190
0161e4b9
UW
11912011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
1192
1193 * s390-tdep.c (s390_displaced_step_fixup): Fix processing of LARL
1194 instruction. Add more diagnostic output.
1195
0c36327f
AS
11962011-11-29 Andrey Smirnov <andrew.smirnov@gmail.com>
1197
1198 * MAINTAINERS (Write After Approval): Add myself to the list.
1199
b4264740
SD
12002011-11-29 Sanjoy Das <sdas@igalia.com>
1201
1202 * jit.c (add_objfile_entry, jit_reader_try_read_symtab)
1203 (jit_bfd_try_read_symtab): Fix comments.
1204
87326c78
DD
12052011-11-28 DJ Delorie <dj@redhat.com>
1206
1207 * NEWS: Mention RL78 simulator.
1208
1e3a8f45
JB
12092011-11-28 Joel Brobecker <brobecker@adacore.com>
1210
1211 * symfile.h (struct quick_symbol_functions): Fix the documentation
1212 of field map_matching_symbols, as symbols are sorted using
1213 strcmp_iw_ordered, not strcmp_iw.
1214
265e52c3
JB
12152011-11-28 Paul Hilfinger <hilfinger@adacore.com>
1216
1217 * symfile.h (struct quick_symbol_functions): Update the
1218 documentation for field map_matching_symbols.
1219
1a1d5513
JB
12202011-11-28 Joel Brobecker <brobecker@adacore.com>
1221
1222 * ada-lang.c (compare_names): Fix wrong return value in case
1223 string1 starts with the same contents as string2, followed
1224 by an underscore that do not start a symbol name suffix.
1225
5d9c5995
PM
12262011-11-28 Phil Muldoon <pmuldoon@redhat.com>
1227
1228 PR python/13369
1229 PR python/13374
1230
1231 * python/python.c (gdbpy_decode_line): Do not acquire GIL.
1232 * python/py-inferior.c (inferior_to_inferior_object): Ditto.
1233 * python/py-value.c (valpy_nonzero): Use TRY_CATCH to catch GDB
1234 exceptions.
1235 * python/py-type.c (typy_strip_typedefs): Ditto.
1236 (typy_legacy_template_argument): Ditto.
1237 * python/py-inferior.c (inferior_to_inferior_object): Ditto.
1238 * python/py-breakpoint.c (bppy_set_ignore_count): Ditto.
1239
2bf50f6f
JB
12402011-11-27 Joel Brobecker <brobecker@acacore.com>
1241
1242 * remote.c (remote_get_tracepoint_status): Delete addrbuf
1243 local variable. Avoid use of sprintf_vma.
1244
744ab88c
SD
12452011-11-27 Sanjoy Das <sdas@igalia.com>
1246
1247 Fix regression in jit.exp.
1248 * jit.c (jit_reader_try_read_symtab, jit_bfd_try_read_symtab)
1249 (jit_register_code): Set the jit_objfile_data field to the correct
1250 value.
1251
46ad3598
UW
12522011-11-25  Uros Bizjak  <ubizjak@gmail.com>
1253
1254 * alpha-tdep.c (br_opcode): New.
1255 (ldl_l_opcode, ldq_l_opcode, stl_c_opcode, stq_c_opcode): Ditto.
1256 (alpha_deal_with_atomic_sequence): New function.
1257 (alpha_gdbarch_init): Handle single stepping of atomic sequences
1258 with alpha_deal_with_atomic_sequence.
1259
e4c5f296
TG
12602011-11-24 Tristan Gingold <gingold@adacore.com>
1261
1262 * machoread.c (oso_el): Remove num_Sections, symbols, offsets
1263 fields. Add oso_sym, end_sym and nbr_syms.
1264 (macho_register_oso): Change interface.
1265 (macho_symtab_add_minsym): New function.
1266 (macho_symtab_read): Rewritten.
1267 (get_archive_prefix_len): Remove trailing blanks.
1268 (oso_el_compare_name): Add comment.
1269 (struct macho_sym_hash_entry): New structure.
1270 (macho_relocate_common_syms): Remove.
1271 (macho_sym_hash_newfunc): New function.
1272 (macho_resolve_oso_sym_with_minsym): Likewise.
1273 (macho_add_oso_symfile): Rewritten.
1274 (macho_symfile_read_all_oso): Remove trailing blanks.
1275 Adjust code to free oso vector.
1276 (macho_symfile_read): Likewise.
1277 Move code to initialize minimal symbol
1278
130854df
MR
12792011-11-24 Maciej W. Rozycki <macro@codesourcery.com>
1280
1281 * mips-tdep.c (extended_offset): Fix formatting.
1282
3d7bb9d9
DE
12832011-11-23 Doug Evans <dje@google.com>
1284
1285 * dwarf2read.c (dw2_lookup_symtab): Add comment.
1286 (dw2_expand_symtabs_with_filename): Ditto.
1287 (dw2_expand_symtabs_matching): Ditto.
1288 (dw2_map_symbol_filenames): Ditto.
1289
1fbf5ada
JB
12902011-11-23 Andrey Smirnov <andrew.smirnov@gmail.com>
1291
1292 * ada-lang.c (assign_aggregate): Minor reformatting.
1293
d984108d
JB
12942011-11-23 Andrey Smirnov <andrew.smirnov@gmail.com>
1295
1296 * ada-lang.c (assign_aggregate): Remove declaration of local
1297 variable `i' which is shadowing another variable with the same
1298 name declared in the outer scope.
1299
18af8284
JB
13002011-11-23 Joel Brobecker <brobecker@adacore.com>
1301
1302 * ada-lang.c (get_base_type): Renames base_type. Adjust all
1303 calls throughout this file.
1304
1fc7b5d7
JB
13052011-11-23 Joel Brobecker <brobecker@adacore.com>
1306
1307 * gdb-dlfcn.c (gdb_dlopen): Add missing coma in call to
1308 FormatMessage.
1309
36dfb11c
TT
13102011-11-22 Tom Tromey <tromey@redhat.com>
1311
1312 PR mi/8444:
1313 * mi/mi-common.h (EXEC_ASYNC_SOLIB_EVENT, EXEC_ASYNC_FORK)
1314 (EXEC_ASYNC_VFORK, EXEC_ASYNC_SYSCALL_ENTRY)
1315 (EXEC_ASYNC_SYSCALL_RETURN, EXEC_ASYNC_EXEC): New constants.
1316 * mi/mi-common.c (async_reason_string_lookup): Add new reasons.
1317 * breakpoint.c (print_it_catch_fork, print_it_catch_vfork)
1318 (print_it_catch_syscall, print_it_catch_exec)
1319 (internal_bkpt_print_it): Use ui_out. Emit stop reason.
1320 (bpstat_print): Add 'kind' argument. Handle
1321 TARGET_WAITKIND_LOADED.
1322 * infrun.c (normal_stop): Update for bpstat_print change. Don't
1323 handle TARGET_WAITKIND_LOADED here.
1324 * breakpoint.h (bpstat_print): Update.
1325
5bd6aa83
TT
13262011-11-22 Tom Tromey <tromey@redhat.com>
1327
1328 * mi/mi-interp.c (mi_on_normal_stop): Call bpstat_print.
1329
f5afdc18
TT
13302011-11-22 Tom Tromey <tromey@redhat.com>
1331
1332 * mi/mi-common.c (_initialize_gdb_mi_common): Remove.
1333 Use static_assert to check the size of
1334 async_reason_string_lookup.
1335 * common/gdb_assert.h (static_assert): New macro.
1336
a3769e0c
AM
13372011-11-22 Alan Modra <amodra@gmail.com>
1338
1339 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Correct branch
1340 destination calculation. Don't expect >> to sign extend. Don't
1341 add a break if branch lands inside the sequence anywhere.
1342
56767571
KS
13432011-11-21 Keith Seitz <keiths@redhat.com>
1344
1345 * gdb.mi/mi-var-display.exp: Remove XFAIL for c_variable-7.51,
1346 -var-evaluate-expression of an enumeration and fix expected result.
1347 * gdb.mi/mi2-varvdisplay.exp: Likewise.
1348
8443c207
KY
13492011-11-21 Kwok Cheung Yeung <kcy@codesourcery.com>
1350
1351 * osdata.c (info_osdata_command): Rename nprocs to nrows. Handle
1352 the case where osdata->items is empty. Rename column names to a
1353 canonical form to avoid problems with unusual column names.
1354
97643830
YQ
13552011-11-21 Yao Qi <yao@codesourcery.com>
1356
1357 * MAINTAINERS (Write After Approval): Keep list in alphabetical order.
1358
f196051f
SS
13592011-11-20 Stan Shebs <stan@codesourcery.com>
1360
1361 * NEWS: Mention tracepoint additions.
1362 * breakpoint.h (struct tracepoint): New field traceframe_usage.
1363 * breakpoint.c (print_one_breakpoint_location): Identify
1364 tracepoints as such when reporting hit counts, report
1365 trace buffer usage.
1366 (create_tracepoint_from_upload): Copy status info.
1367 * tracepoint.h (struct trace_status): Rename error_desc to stop_desc,
1368 add fields user_name, notes, start_time, stop_time.
1369 (struct uploaded_tp): Add fields hit_count, traceframe_usage.
1370 * tracepoint.c (trace_user): New global.
1371 (trace_notes): New global.
1372 (trace_stop_notes): New global.
1373 (start_tracing): Add argument and trace note handling.
1374 (stop_tracing): Ditto.
1375 (trace_start_command): Add notes argument.
1376 (trace_stop_command): Ditto.
1377 (trace_status_command): Report additional status info.
1378 (trace_status_mi): Similarly.
1379 (trace_save): Update, record tracepoint status.
1380 (set_disconnected_tracing): Call target method directly.
1381 (send_disconnected_tracing_value): Remove.
1382 (set_trace_user): New function.
1383 (set_trace_notes): New function.
1384 (set_trace_stop_notes): New function.
1385 (parse_trace_status): Handle additional status.
1386 (parse_tracepoint_status): New function.
1387 (parse_tracepoint_definition): Call it.
1388 (tfile_get_tracepoint_status): New function.
1389 (init_tfile_ops): Use it.
1390 (_initialize_tracepoint): Add new setshows.
1391 * target.h (struct target_ops): New methods to_get_tracepoint_status
1392 and to_set_trace_notes.
1393 (target_get_tracepoint_status): New macro.
1394 (target_set_trace_notes): New macro.
1395 * target.c (update_current_target): Add new methods.
1396 * remote.c (remote_get_tracepoint_status): New function.
1397 (remote_set_trace_notes): New function.
1398 (init_remote_ops): Add them.
1399 * mi/mi-main.c (mi_cmd_trace_start): Add argument to call.
1400 (mi_cmd_trace_stop): Ditto.
1401
3623dc3a
SD
14022011-11-20 Sanjoy Das <sdas@igalia.com>
1403
1404 * jit.c: Include regcache.h.
1405 (jit_gdbarch_data, jit_frame_unwind): New static variables.
1406 (jit_unwind_reg_set_impl, free_reg_value_impl)
1407 (jit_unwind_reg_get_impl, jit_frame_sniffer)
1408 (jit_frame_unwind_stop_reason, jit_frame_this_id)
1409 (jit_frame_prev_register, jit_dealloc_cache)
1410 (jit_prepend_unwinder, jit_gdbarch_data_init): New functions.
1411 (jit_inferior_init): Prepend (new) pseudo unwinder by calling
1412 jit_prepend_unwinder.
1413 (_initialize_jit): Register new gdbarch data jit_gdbarch_data.
1414
1825a88d
SD
14152011-11-20 Sanjoy Das <sdas@igalia.com>
1416
1417 * jit.c: Include block.h, dictionary.h and frame-unwind.h.
1418 (add_objfile_entry, jit_target_read_impl, jit_object_open_impl)
1419 (jit_symtab_open_impl, compare_block, jit_block_open_impl)
1420 (jit_symtab_line_mapping_add_impl, jit_symtab_close_impl)
1421 (finalize_symtab, jit_object_close_impl)
1422 (jit_reader_try_read_symtab, jit_bfd_try_read_symtab)
1423 (free_objfile_data): New functions.
1424 (_initialize_jit): Register jit_objfile_data with a proper cleanup
1425 function.
1426
784c47ee
SD
14272011-11-20 Sanjoy Das <sdas@igalia.com>
1428
1429 * jit.c: Include gdb-dlfcn.h.
1430 (loaded_jit_reader, reader_init_fn_sym): New static variables.
1431 (jit_reader_load, jit_reader_load_command)
1432 (jit_reader_unload_command): New functions.
1433 (_initialize_jit): Add commands "jit-reader-load" and
1434 "jit-reader-unload".
1435
a2d08b9e
SD
14362011-11-20 Sanjoy Das <sdas@igalia.com>
1437
1438 * Makefile.in: Add gdb-dlfcn.c and gdb-dlfcn.h to build system.
1439 * config.in: Add new #define HAVE_LIBDL.
1440 * configure.ac: Add check for -ldl.
1441 * configure: Re-generated by autoconf.
1442 * gdb-dlfcn.c: New file.
1443 * gdb-dlfcn.h: New file.
1444
b8e0a31c
SD
14452011-11-20 Sanjoy Das <sdas@igalia.com>
1446
1447 * config.in: Add new #defines: JIT_READER_DIR and
1448 JIT_READER_DIR_RELOCATABLE.
1449 * configure.ac: New GDB directory entry for jit-reader-dir.
1450 * configure: Re-generated by autoconf.
1451 * jit.c: New static variable: const char *jit_reader_dir.
1452 (_initialize_jit): Relocate jit_reader_dir.
1453
f997c383
SD
14542011-11-20 Sanjoy Das <sdas@igalia.com>
1455
1456 * Makefile.in: Add jit-reader.h as a header. Have it installed in
1457 $(includedir)/gdb.
1458 * configure.ac: Generate a correct value for TARGET_PTR for
1459 jit-reader.h. Tell configure to generate jit-reader.h from
1460 jit-reader.in.
1461 * configure: Re-generated by autoconf.
1462 * jit-reader.in: New file.
1463 * jit.c: Include jit-reader.h.
1464
dc8c0494
SD
14652011-11-20 Sanjoy Das <sdas@igalia.com>
1466
1467 * MAINTAINERS (Write After Approval): Add myself to the list.
1468
01efb936
UW
14692011-11-18 Ulrich Weigand <uweigand@de.ibm.com>
1470
1471 * findvar.c (read_frame_register_value): Respect value_offset
1472 of the register value. Remove big-endian special case.
1473
732f3f12
TT
14742011-11-18 Tom Tromey <tromey@redhat.com>
1475
1476 PR build/7196:
1477 * remote.c (putpkt_for_catch_errors): New function.
1478 (remote_kill): Use it.
1479
bfccc43c
YQ
14802011-11-18 Yao Qi <yao@codesourcery.com>
1481
1482 * breakpoint.c (create_breakpoint): Produce query message according to
1483 breakpoint's type.
1484 Allocate tracepoint per correct type.
1485 Don't check SALs for pending fast tracepoints.
1486 * tracepoint.c (process_tracepoint_on_disconnect): New.
1487 (disconnect_tracing): Call process_tracepoint_on_disconnect.
1488
3ea46bff
YQ
14892011-11-18 Yao Qi <yao@codesourcery.com>
1490
1491 * breakpoint.c (install_breakpoint): Add one more parameter so that
1492 update_global_location_list is called conditionally.
1493 (create_fork_vfork_event_catchpoint): Update.
1494 (create_syscall_event_catchpoint): Update.
1495 (create_breakpoint_sal): Update.
1496 (create_breakpoint_sal): Update. Call do_cleanups before
1497 install_breakpoint.
1498 * ada-lang.c (create_ada_exception_catchpoint): Update.
1499 * breakpoint.h (install_breakpoint): Update declaration.
1500
598cfb71
UW
15012011-11-16 Ulrich Weigand <uweigand@de.ibm.com>
1502
1503 * spu-tdep.c (spu_return_value): Fix handling of
1504 TYPE_CALLING_CONVENTION annotation.
1505
caf4328c
UW
15062011-11-16 Ulrich Weigand <uweigand@de.ibm.com>
1507
1508 * skip.c (skip_function_command): Work around uninitialized
1509 variable warning.
1510
2b54dda2
DM
15112011-11-16 David S. Miller <davem@davemloft.net>
1512
1513 * utils.c (report_command_stats): Cast delta_wall_time 'tv_sec' and
1514 'tv_usec' to long for printf since these fields have a type which
1515 varies.
1516
93bf33fd
DE
15172011-11-15 Doug Evans <dje@google.com>
1518
1519 * buildsym.c (add_symbol_to_list): Delete outdated comment.
1520
9cc10fd1
PK
15212011-11-15 Paul Koning <paul_koning@dell.com>
1522
1523 * python/py-type.c (typy_get_composite): New function.
1524 (typy_nonzero): New function.
1525 (typy_values): Rename from typy_fields.
1526 (typy_fields): New function.
1527 (typy_length): Raise exception if not struct, union, or enum type.
1528 (typy_getitem): Ditto.
1529 (typy_has_key): Ditto.
1530 (typy_make_iter): Ditto.
1531
c011a4f4
DE
15322011-11-15 Doug Evans <dje@google.com>
1533
1963ff96 1534 PR gdb/8367
c011a4f4
DE
1535 * NEWS: Mention new parameter basenames-may-differ.
1536 * dwarf2read.c (dw2_lookup_symtab): Avoid calling gdb_realpath if
1537 ! basenames_may_differ.
1538 * psymtab.c (lookup_partial_symtab): Ditto.
1539 * symtab.c (lookup_symtab): Ditto.
1540 (basenames_may_differ): New global.
1541 (_initialize_symtab): New parameter basenames-may-differ.
1542 * symtab.h (basenames_may_differ): Declare.
1543
865ecab4
LM
15442011-11-15 Pedro Alves <pedro@codesourcery.com>
1545 Luis Machado <lgustavo@codesourcery.com>
1546
1547 * auxv.c: Include observer.h.
1548 (auxv_inferior_data_cleanup): New.
1549 (invalidate_auxv_cache_inf): New.
1550 (invalidate_auxv_cache): New.
1551 (get_auxv_inferior_data): New.
1552 (auxv_inferior_data): New static global.
1553 (auxv_info): New structure.
1554 (target_auxv_search): Use get_auxv_inferior_data instead of
1555 target_read_alloc and don't free cached buffers.
1556 (fprint_target_auxv): Likewise
1557 (_initialize_auxv): Register per-inferior auxv cache and register
1558 observers to invalidate auxv cache when needed.
1559
ed59ded5
DE
15602011-11-14 Doug Evans <dje@google.com>
1561
37acd67c 1562 PR gdb/7200 Make "!" an alias for "shell".
ed59ded5
DE
1563 * NEWS: Add mention.
1564 * cli/cli-cmds.c (init_cli_cmds): Remove xdb_commands condition on
1565 adding "!" command, always add it.
1566 * cli/cli-decode.c (find_command_name_length): Recognize "!" as a
1567 command of length one.
1568
405f8e94
SS
15692011-11-14 Stan Shebs <stan@codesourcery.com>
1570 Kwok Cheung Yeung <kcy@codesourcery.com>
1571
1572 * NEWS: Document shorter fast tracepoints and qTMinFTPILen packet.
1573 * i386-tdep.c (i386_fast_tracepoint_valid_at): Query target for
1574 the minimum instruction size for fast tracepoints.
1575 * target.h (struct target_ops): Add new method
1576 to_get_min_fast_tracepoint_insn_len.
1577 (target_get_min_fast_tracepoint_insn_len): New.
1578 * target.c (update_current_target): Set up new target operation.
1579 * remote.c (remote_write_bytes_aux): Fix typo.
1580 (remote_get_min_fast_tracepoint_insn_len): New.
1581 (init_remote_ops): Initialize new field.
1582
3e05895e
TT
15832011-11-14 Tom Tromey <tromey@redhat.com>
1584
1585 * tracepoint.c (encode_actions_1): Use the location's gdbarch.
1586 (encode_actions): Likewise.
1587
1e4d1764
YQ
15882011-11-14 Yao Qi <yao@codesourcery.com>
1589
1590 * remote.c (struct remote_state): <install_in_trace> new field.
1591 (PACKET_InstallInTrace): New enum value.
1592 (remote_install_in_trace_feature): Support InstallInTrace.
1593 (remote_supports_install_in_trace): Likewise.
1594 (remote_protocol_features): Likewise.
1595 (_initialize_remote): Likewise.
1596 (remote_can_download_tracepoint): New.
1597 * target.h (struct target): New field
1598 `to_can_download_tracepoint'.
1599 (target_can_download_tracepoint): New macro.
1600 * target.c (update_current_target): Update.
1601 * breakpoint.h (struct bp_location): Add comment on field
1602 `duplicate'.
3ccd4ac6
YQ
1603 * breakpoint.c (should_be_inserted): Don't differentiate breakpoint
1604 and tracepoint.
1e4d1764
YQ
1605 (remove_breakpoints): Don't remove tracepoints.
1606 (tracepoint_locations_match ): New.
1607 (breakpoint_locations_match): Call it.
1608 (disable_breakpoints_in_unloaded_shlib): Handle tracepoint.
1609 (download_tracepoint_locations): New.
1610 (update_global_location_list): Call it.
1611 * tracepoint.c (find_matching_tracepoint): Delete.
1612 (find_matching_tracepoint_location): Renamed from
1613 find_matching_tracepoint. Return bp_location rather than
1614 tracepoint.
1615 (merge_uploaded_tracepoints): Set `inserted' field to 1 if
1616 tracepoint is found.
1617
e8ba3115
YQ
16182011-11-14 Yao Qi <yao@codesourcery.com>
1619
1620 * target.h (struct target): <to_download_tracepoint> Change type
1621 of parameter from tracepoint to bp_location.
1622 * target.c (update_current_target): Update.
1623 * tracepoint.c (start_tracing): Update.
1624 * remote.c (remote_download_tracepoint): Remove loop for each location
1625 of a tracepoint.
1626
edcc485a
MR
16272011-11-14 Maciej W. Rozycki <macro@codesourcery.com>
1628
1629 * i386-nat.c (i386_insert_hw_breakpoint): Call
1630 i386_update_inferior_debug_regs.
1631 (i386_remove_hw_breakpoint): Likewise.
1632
3742cc8b
YQ
16332011-11-14 Yao Qi <yao@codesourcery.com>
1634
1635 * breakpoint.c (init_raw_breakpoint): Call
1636 add_location_to_breakpoint to replace duplicated code.
1637 (add_location_to_breakpoint): Adjust the breakpoint's
1638 address prior to allocating a location.
1639
71eba9c2 16402011-11-12 Matt Rice <ratmice@gmail.com>
1641
1642 * macrocmd.c (macro_no_macro_info): New function.
1643 (macro_expand_command): Use macro_no_macro_info.
1644 (macro_expand_once_command): Ditto.
1645 (info_macro_command): Add argument processing,
1646 move info_definitions_command here.
1647 (_initialize_macrocmd): Remove info definitions command.
1648 Add arguments to info macro help text.
1649 * NEWS: Replace info definitions command with new info macro options.
1650
731971ed
KS
16512011-11-11 Keith Seitz <keiths@redhat.com>
1652
1653 PR gdb/12843
1654 * linespec.c (locate_first_half): Keep ':' if it looks
1655 like it could be part of a Windows path starting with
1656 a drive letter.
1657
6953d224
PA
16582011-11-10 Pedro Alves <pedro@codesourcery.com>
1659
1660 * linux-nat.c (linux_nat_wait): Don't force waking up the event
1661 loop when returning a TARGET_WAITKIND_NO_RESUMED.
1662
0c94aa73
PA
16632011-11-10 Pedro Alves <pedro@codesourcery.com>
1664
1665 * target.c (target_waitstatus_to_string): Handle
1666 TARGET_WAITKIND_NO_RESUMED.
1667
f6b47be4
DE
16682011-11-10 Doug Evans <dje@google.com>
1669
74e2f255
DE
1670 * dwarf2read.c (dw2_map_symbol_filenames): New parameter
1671 `need_fullname'.
1672 * psymtab.c (map_symbol_filenames_psymtab): Ditto.
1673 (map_partial_symbol_filenames): Ditto. All callers updated.
1674 * psymtab.h (map_partial_symbol_filenames): Update prototype.
1675 * symfile.h (struct quick_symbol_functions, map_symbol_filenames): New
1676 parameter need_fullname.
1677
256f06f3
DE
1678 * psymtab.c (psymtab_to_fullname): Use cached copy if it exists.
1679 * source.c (symtab_to_fullname): Ditto.
1680
50f182aa
DE
1681 * defs.h (is_cplus_marker, set_demangling_style): Moved to ...
1682 * gdb-demangle.h: ... here. New file.
1683 * demangle.c: #include "gdb-demangle.h".
1684 (_initialize_demangler): Use initialize_file_ftype for prototype.
1685 Move "set demangle" and "set asm-demangle" parameters here from utils.c
1686 (demangle, show_demangle, asm_demangle, show_asm_demangle): Move here
1687 from utils.c
1688 * utils.c: Update. #include "gdb-demangle.h".
1689 * symtab.h (asm_demangle): Delete.
1690 (demangle): Move declaration next to use.
1691 * breakpoint.c: #include "gdb-demangle.h" instead of "demangle.h".
1692 * dwarf2read.c: #include "gdb-demangle.h".
1693 * gnu-v2-abi.c: Ditto.
1694 * jv-typeprint.c: Ditto.
1695 * mdebugread.c: Ditto.
1696 * p-typeprint.c: Ditto.
1697 * stabsread.c: Ditto.
1698 * printcmd.c: Ditto.
1699 (asm_demangle): Delete declaration.
1700 * tui/tui-stack.c: #include "gdb-demangle.h".
1701
f6b47be4
DE
1702 * python/py-type.c (typy_fields_items): Call check_typedef.
1703
22355c90
JB
17042011-11-10 Joel Brobecker <brobecker@adacore.com>
1705
1706 * findvar.c (read_frame_register_value): Read the correct bytes
1707 from registers on big-endian architectures.
1708
bd119cf1 17092011-11-10 Tom Tromey <tromey@redhat.com>
e28cade7
JB
1710
1711 * procfs.c (load_syscalls): Make a cleanup.
1712 (open_procinfo_files): fd==0 is ok.
1713
0a86f364
JB
17142011-11-10 Joel Brobecker <brobecker@adacore.com>
1715
1716 * procfs.c (iterate_over_mappings): Call do_cleanups before
1717 returning.
1718
9bc118a5
DE
17192011-11-09 Doug Evans <dje@google.com>
1720
1721 * gdbtypes.c (check_typedef): Document that this function can
1722 throw an exception.
1723
a7860e76
TT
17242011-11-09 Tom Tromey <tromey@redhat.com>
1725
1726 PR c++/13342:
1727 * valops.c (value_full_object): Return early if real type is
1728 smaller than the enclosing type.
1729
60965737
YQ
17302011-11-08 Yao Qi <yao@codesourcery.com>
1731
1732 * amd64-tdep.c (amd64_relocate_instruction): Make it static.
1733
72a2e3dc
MI
17342011-11-08 Meador Inge <meadori@codesourcery.com>
1735
1736 * arm-tdep.c (thumb_analyze_prologue): Always fallback on the SP
1737 register when the frame can't be determined.
1738 * arm-tdep.c (arm_analyze_prologue): Ditto.
1739
ce3b0ff7
SS
17402011-11-07 Stan Shebs <stan@codesourcery.com>
1741
1742 * MAINTAINERS: Move Michael Snyder to Past Maintainers.
1743
2b914b52
JB
17442011-11-07 Joel Brobecker <brobecker@adacore.com>
1745
1746 * infrun.c (handle_inferior_event): Minor reformatting.
1747
6f809020
DE
17482011-11-05 Doug Evans <dje@google.com>
1749
1750 * source.c (forget_cached_source_info_for_objfile): Move call to
1751 objfile->sf->qf->forget_cached_source_info outside of
1752 ALL_OBJFILE_SYMTABS loop.
1753 (forget_cached_source_info): Delete unused variable `s'.
1754
75d12218
JK
17552011-11-05 Jan Kratochvil <jan.kratochvil@redhat.com>
1756
1757 * i386-nat.c (dr_ref_count): Remove unused variable.
1758
e565b837
DE
17592011-11-05 Doug Evans <dje@google.com>
1760
1761 * main.c (captured_main): Set lim_at_start before calling
1762 make_command_stats_cleanup.
1763
0a1c4d10
DE
17642011-11-04 Doug Evans <dje@google.com>
1765
1766 * utils.c: #include "timeval-utils.h".
1767 (cmd_stats): Rename start_time to start_cpu_time.
1768 New member start_wall_time.
1769 (report_command_stats): Report wall time.
1770 (make_command_stats_cleanup): Record start wall time.
1771
a1d705ee
TT
17722011-11-04 Tom Tromey <tromey@redhat.com>
1773
1774 * cp-namespace.c (cp_lookup_symbol_imports): Reindent.
1775
81de56be
RO
17762011-11-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1777
1778 * coff-pe-read.c: Include defs.h before bfd.h.
1779
3ab1ec27
PM
17802011-11-04 Phil Muldoon <pmuldoon@redhat.com>
1781
1782 PR Python/13345
1783
1784 * python/python.c (python_run_simple_file): Expand tilde in path.
1785
cd829959
PM
17862011-11-04 Phil Muldoon <pmuldoon@redhat.com>
1787
1788 PR Python/13363
1789
1790 * python/py-type.c (typy_lookup_type): Do not return a type in
1791 an exception handler.
1792
080ad648
JK
17932011-11-03 Jan Kratochvil <jan.kratochvil@redhat.com>
1794 Eli Zaretskii <eliz@gnu.org>
1795
1796 * linux-nat.c (_initialize_linux_nat): Improve help
1797 for `info proc stat', `info proc status', `info proc cwd',
1798 `info proc cmdline' and `info proc exe'.
1799
3065dfb6
SS
18002011-11-02 Stan Shebs <stan@codesourcery.com>
1801
1802 String collection for tracepoints.
1803 * NEWS: Mention string collection.
1804 * common/ax.def (tracenz): New bytecode.
1805 * ax-gdb.h (trace_string_kludge): Declare.
1806 * ax-gdb.c: Include valprint.h and c-lang.h.
1807 (trace_string_kludge): New global.
1808 (gen_traced_pop): Add string case.
1809 (agent_command): Add string case.
1810 * tracepoint.h (decode_agent_options): Declare.
1811 * tracepoint.c: Include cli-utils.h.
1812 (decode_agent_options): New function.
1813 (validate_actionline): Call it.
1814 (encode_actions_1): Ditto.
1815 * target.h (struct target_ops): New method to_supports_string_tracing.
1816 (target_supports_string_tracing): New macro.
1817 * target.c (update_current_target): Add to_supports_string_tracing.
1818 * remote.c (struct remote_state): New field string_tracing.
1819 (remote_string_tracing_feature): New function.
1820 (remote_protocol_features): New feature tracenz.
1821 (remote_supports_string_tracing): New function.
1822 (init_remote_ops): Set to_supports_string_tracing.
1823
f179e162
JK
18242011-11-02 Pedro Alves <pedro@codesourcery.com>
1825 Jan Kratochvil <jan.kratochvil@redhat.com>
1826
1827 * linux-nat.c: Include cli/cli-utils.h.
1828 (enum info_proc_what): New.
1829 (linux_nat_info_proc_cmd): Rename to ...
1830 (linux_nat_info_proc_cmd_1): ... here. Remove variables argv and all.
1831 New parameter what. Initialize cmdline_f, cwd_f, exe_f, mappings_f,
1832 status_f and stat_f from WHAT. Throw error on extra parameters.
1833 (linux_nat_info_proc_cmd, linux_nat_info_proc_cmd_mappings)
1834 (linux_nat_info_proc_cmd_stat, linux_nat_info_proc_cmd_status)
1835 (linux_nat_info_proc_cmd_cwd, linux_nat_info_proc_cmd_cmdline)
1836 (linux_nat_info_proc_cmd_exe, linux_nat_info_proc_cmd_all): New.
1837 (_initialize_linux_nat): New variable info_proc_cmdlist. Install `info
1838 proc mappings', `info proc stat`, `info proc status', `info proc cwd',
1839 `info proc cmdline', `info proc exe' and `info proc all' as real
1840 subcommands of `info proc'.
1841
7b35ec7f 18422011-11-01 Justin Lebar <justin.lebar@gmail.com>
1bfeeb0f
JL
1843
1844 * Makefile.in: (SFILES): Add skip.c.
1845 (HFILES_NO_SRCDIR): Add skip.h.
1846 (COMMON_OBS): Add skip.o.
1847 * skip.h, skip.c: New.
1848 * breakpoint.h (set_default_breakpoint): Remove.
1849 (get_sal_arch): Declare.
1850 * breakpoint.c: Remove default_breakpoint_valid,
1851 default_breakpoint_address, default_breakpoint_symtab,
1852 default_breakpoint_line, default_breakpoint_pspace variables.
1853 (get_sal_arch): Make public.
1854 (set_default_breakpoint): Remove.
1855 (parse_breakpoint_sals, create_breakpoint, clear_command,
1856 decode_line_spec_1): Remove uses of default_breakpoint variables;
1857 replaced with function calls into stack.c.
1858 * cli/cli-cmds.h: Add cmd_list_element *skiplist.
1859 * cli/cli-cmds.c: Add skiplist.
1860 (init_cmd_lists): Initialize skiplist.
1861 (init_cli_cmds): Fix comment (classes of commands appear in
1862 alphabetical order).
1863 * infrun.c (handle_inferior_event): Add check that we don't step into
1864 a function whose pc is marked for skip.
1865 * stack.c: Declare last_displayed_sal_valid, last_displayed_pspace,
1866 last_displayed_addr, last_displayed_symtab, last_displayed_line
1867 variables.
1868 (set_last_displayed_sal): New static function.
1869 (print_frame_info): Switch call to set_default_breakpoint to call to
1870 set_last_displayed_sal.
1871 (clear_last_displayed_sal, last_displayed_sal_is_valid,
1872 get_last_displayed_pspace, get_last_displayed_addr,
1873 get_last_displayed_symtab, get_last_displayed_line,
1874 get_last_displayed_sal): New public functions.
1875 * stack.h (clear_last_displayed_sal, last_displayed_sal_is_valid,
1876 get_last_displayed_pspace, get_last_displayed_addr,
1877 get_last_displayed_symtab, get_last_displayed_line,
1878 get_last_displayed_sal): Declare.
1879
b60e1588
JL
18802011-11-01 Justin Lebar <justin.lebar@gmail.com>
1881
1882 * MAINTAINERS (Write After Approval): Add myself to the list.
1883
d31647d2
YQ
18842011-10-29 Yao Qi <yao@codesourcery.com>
1885
1886 * infcmd.c (disconnect_command): Call disconnect_tracing.
1887
b1d96efd
JK
18882011-10-29 Jan Kratochvil <jan.kratochvil@redhat.com>
1889
1890 Code cleanup.
1891 * symtab.c (skip_prologue_sal): Code reformatting.
1892
4dfb2365
JK
18932011-10-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1894
1895 PR symtab/13208
1896 * jit.c (jit_register_code): Remove unused variable my_cleanups. Check
1897 for NULL from bfd_open_from_target_memory. Fix ownership of NBFD and
1898 SAI.
1899
0e5bf2a8
PA
19002011-10-28 Pedro Alves <pedro@codesourcery.com>
1901
1902 * linux-nat.c (linux_nat_filter_event): Remove `options'
1903 parameter, and dead code that used it. If we're handling a
1904 PTRACE_EVENT_EXEC event, and the thread group leader is no longer
1905 in our lwp list, re-add it.
1906 (check_zombie_leaders): New.
1907 (linux_nat_wait_1): Remove `options' and `pid' locals. Always
1908 wait for children with WNOHANG, and always wait for all children.
1909 Don't check for no resumed children upfront. Simplify wait loop.
1910 Check for zombie thread group leaders after handling all wait
1911 statuses. Return TARGET_WAITKIND_NO_RESUMED if there no
1912 unwaited-for children left.
1913 * infrun.c (fetch_inferior_event): Handle TARGET_WAITKIND_NO_RESUMED.
1914 (handle_inferior_event): Handle TARGET_WAITKIND_NO_RESUMED.
1915 (normal_stop): Handle TARGET_WAITKIND_NO_RESUMED.
1916 * target.h (enum target_waitkind) <TARGET_WAITKIND_NO_RESUMED>: New.
1917
821296b7
SA
19182011-10-28 Sterling Augustine <saugustine@google.com>
1919
1920 * psymtab.c (map_symbol_filenames_psymtab): Call QUIT.
1921 * symtab.c (free_completion_list): New function.
1922 (do_free_completion_list): Likewise.
1923 (default_make_symbol_completion_list_break_on): New variable
1924 back_to. Call make_cleanup and discard_cleanups.
1925 (make_source_files_completion_list): Likewise.
1926
03c3051a
PK
19272011-10-28 Paul Koning <paul_koning@dell.com>
1928
1929 * python/lib/gdb/types.py (deep_items): Rename from deepitems.
1930 * NEWS: Mention deep_items.
1931
8e7ebaf5
PA
19322011-10-28 Alen Skondro <askondro@gmail.com>
1933
8de33dc2 1934 * ser-tcp.c [USE_WIN32API] (ETIMEDOUT): Don't define if already
8e7ebaf5
PA
1935 defined.
1936
e0c6ef61
MI
19372011-10-27 Meador Inge <meadori@codesourcery.com>
1938
1939 * MAINTAINERS (Write After Approval): Add myself to the list.
1940
b56d6f31
JB
19412011-10-27 Joel Brobecker <brobecker@adacore.com>
1942
1943 * value.h (read_frame_register_value): Add declaration.
1944 * findvar.c (read_frame_register_value): New function.
1945 (value_from_register): Use read_frame_register_value
1946 instead of get_frame_register_value + value_contents_copy
1947 to get value contents.
1948
d234ef5c
DE
19492011-10-27 Doug Evans <dje@google.com>
1950
1951 * cli/cli-cmds.c (source_script_with_search): Pass full path to
1952 source_script_from_stream if it may have been found on the search path.
1953 * python/py-auto-load.c (source_section_scripts): Pass full path to
1954 source_python_script_for_objfile.
1955 * python/python.c (source_python_script): Delete stream parameter.
1956 All callers updated.
1957 (source_python_script_for_objfile): Ditto.
1958 * python/python-internal.h (source_python_script_for_objfile): Update.
1959 * python/python.h (source_python_script): Update.
1960
d849d44f
TT
19612011-10-27 Tom Tromey <tromey@redhat.com>
1962
1963 * ada-lang.h (ada_start_decode_line_1, ada_finish_decode_line_1)
1964 (ada_sals_for_line): Remove declarations.
1965
2231f1fb
KP
19662011-10-27 Kevin Pouget <kevin.pouget@st.com>
1967
1968 Move unwind reasons to an external .def file
1969 * frame.c (frame_stop_reason_string): Rewrite using
1970 unwind_stop_reasons.def.
1971 * frame.h (enum unwind_stop_reason): Likewise.
1972 * python/py-frame.c (gdbpy_initialize_frames): Likewise.
1973 (gdbpy_frame_stop_reason_string): Use new enum unwind_stop_reason
1974 constants for bound-checking.
1975 * unwind_stop_reasons.def: New file.
1976 * stack.c (backtrace_command_1): Handle UNWIND_FIRST_ERROR as an alias
1977 instead of a distinct value.
1978
f77b9a5d
PM
19792011-10-27 Phil Muldoon <pmuldoon@redhat.com>
1980
1981 PR python/13331
1982
1983 * python/py-function.c (fnpy_call): Check 'args' is not NULL.
1984 (convert_values_to_python): Return on Python tuple allocation
1985 failure. Return NULL on value conversion error.
1986
76dce0be
PM
19872011-10-27 Phil Muldoon <pmuldoon@redhat.com>
1988
1989 * python/py-breakpoint.c (bppy_set_enabled): Use TRY_CATCH.
1990 (bppy_set_task): Ditto.
1991 (bppy_delete_breakpoint): Ditto.
1992 * python/py-symbol.c (gdbpy_lookup_symbol): Ditto.
1993 (gdbpy_lookup_global_symbol): Ditto.
1994 * python/py-lazy-string.c (stpy_convert_to_value): Ditto.
1995 * python/py-frame.c (frapy_is_valid): Ditto.
1996 (frame_info_to_frame_object): Ditto.
1997 * python/py-type.c (typy_lookup_type): Ditto.
1998 (typy_getitem): Ditto.
1999 (typy_has_key): Ditto.
2000 (typy_richcompare): Use TRY_CATCH. Do not return Py_NE on error.
2001
f17b6955
JB
20022011-10-26 Joel Brobecker <brobecker@adacore.com>
2003
2004 * gdbarch.h: Regenerate.
2005
86ba1042
JB
20062011-10-26 Meador Inge <meadori@codesourcery.com>
2007
2008 * gdbarch.sh (function_list): Use 'pstring' when printing
2009 'gcore_bfd_target'.
2010 * gdbarch.c: Regenerate.
2011
c34fd852
UW
20122011-10-26 Ulrich Weigand <uweigand@de.ibm.com>
2013
2014 * regcache.c (registers_changed_ptid): Invalidate thread architecture
2015 and frame caches if PTID refers to all threads of a process.
2016
931bb47f
UW
20172011-10-26 Ulrich Weigand <uweigand@de.ibm.com>
2018
2019 * spu-tdep.c (spu_catch_start): Pass non-NULL breakpoint ops
2020 to create_breakpoint.
2021
88aed45e
UW
20222011-10-26 Ulrich Weigand <uweigand@de.ibm.com>
2023
2024 * ppc-sysv-tdep.c (ppc_sysv_use_opencl_abi): New function.
2025 (ppc_sysv_abi_push_dummy_call): Use it.
2026 (do_ppc_sysv_return_value): Likewise.
2027 (ppc64_sysv_abi_push_dummy_call): Likewise.
2028 (ppc64_sysv_abi_return_value): Likewise.
2029
3eaf3fa2
PK
20302011-10-26 Paul Koning <paul_koning@dell.com>
2031
2032 * python/lib/gdb/types.py (deepitems): New function.
2033
913460fc
PK
20342011-10-25 Paul Koning <paul_koning@dell.com>
2035
2036 PR python/13327
2037
2038 * python/py-value.c (value_to_value_object): Remove fetching of
2039 the value if it was lazy.
2040 (valpy_get_is_lazy): New function.
2041 (valpy_fetch_lazy): New function.
2042
2b5b9d09
JB
20432011-10-24 Joel Brobecker <brobecker@adacore.com>
2044
2045 * ppc-sysv-tdep.c (do_ppc_sysv_return_value): Do not check
2046 FUNC_TYPE's calling convention if FUNC_TYPE is not a function.
2047
e21ffe51
PA
20482011-10-24 Pedro Alves <pedro@codesourcery.com>
2049
2050 * linux-nat.c (linux_handle_extended_wait): When handling a clone
2051 event, in non-stop, if not stopping, make sure the new lwp has
2052 last_resume_kind set to resume_continue. Assert that when we're
2053 resuming the new lwp, its last_resume_kind is resume_continue.
2054
7aee8dc2
PA
20552011-10-24 Pedro Alves <pedro@codesourcery.com>
2056
2057 * infrun.c (handle_inferior_event): Don't assume inferior_ptid is
2058 already set when marking the event thread as not executing in
2059 non-stop mode.
2060
4b4e080e
PA
20612011-10-24 Pedro Alves <pedro@codesourcery.com>
2062
2063 * infrun.c (handle_inferior_event): Add debug output for
2064 TARGET_WAITKIND_NO_HISTORY.
2065
baacfb07
PM
20662011-10-24 Phil Muldoon <pmuldoon@redhat.com>
2067
2068 * NEWS: Move set/show extended-prompt to "New Options". Expand
2069 description. Fix typos.
2070
8432bc41
PM
20712011-10-24 Phil Muldoon <pmuldoon@redhat.com>
2072
2073 PR python/13310
2074
2075 * python/py-param.c (call_doc_function): Correctly deference on
2076 function exit.
2077
6cda5a20
JB
20782011-10-21 Joel Brobecker <brobecker@adacore.com>
2079
2080 * ada-tasks.c (print_ada_task_info): Fix computation of
2081 number of tasks displayed in command output.
2082
13294f7d
JK
20832011-10-20 Jan Kratochvil <jan.kratochvil@redhat.com>
2084 Ulrich Weigand <uweigand@de.ibm.com>
2085
2086 * dwarf2-frame-tailcall.c: Include dwarf2-frame.h.
2087 (dwarf2_tailcall_prev_register_first): Use dwarf2_frame_cfa.
2088 (dwarf2_tailcall_sniffer_first): Remove variable pc_regnum. Replace
2089 gdbarch_pc_regnum and frame_unwind_register_unsigned by
2090 gdbarch_unwind_pc.
2091
460c1c54
CC
20922011-10-20 Cary Coutant <ccoutant@google.com>
2093
2094 * dwarf2read.c (dw2_get_file_names): Move adjustment for type
2095 section to...
2096 (partial_read_comp_unit_head): ...here. Add is_debug_type_section
2097 flag. Adjust all callers.
2098 (process_psymtab_comp_unit): Remove adjustment for type section.
2099
a10964d1
AR
21002011-10-20 Aleksandar Ristovski <aristovski@qnx.com>
2101
2102 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Changed function
2103 arguments by adding OBJFILE. Instead of getting objfile from
2104 symbol's symtab, use new argument OBJFILE.
2105 * cp-support.h (cp_scan_for_anonymous_namespaces): Changed function
2106 arguments by adding OBJFILE.
2107 * gdb/dwarf2read.c (new_symbol_full): Change call to
2108 cp_scan_for_anonymous_namespaces to match new signature.
2109 * gdb/stabsread.c (define_symbol): Change call to
2110 cp_scan_for_anonymous_namespaces to match new signature.
2111
27ca1a5b
PM
21122011-10-20 Phil Muldoon <pmuldoon@redhat.com>
2113
2114 PR python/13308
2115 PR python/13309
2116
2117 * python/py-breakpoint.c (gdbpy_breakpoints): Fix List reference
2118 leak.
2119 * python/py-inferior.c (gdbpy_inferiors): Fix List reference
2120 leak. Delete unused variables.
2121
9df2fbc4
PM
21222011-10-20 Phil Muldoon <pmuldoon@redhat.com>
2123
2124 PR python/12656
2125
2126 * python/py-frame.c (frapy_read_var): Use const struct *block.
2127 * python/py-type.c (typy_lookup_typename): Likewise.
2128 (typy_lookup_type): Likewise.
2129 (typy_legacy_template_argument): Likewise.
2130 (typy_template_argument): Likewise.
2131 (gdbpy_lookup_type): Likewise.
2132 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
2133 * python/py-block.c (blpy_block_object): Likewise.
2134 (blpy_iter): Likewise.
2135 (blpy_get_start): Likewise.
2136 (blpy_get_end): Likewise.
2137 (blpy_get_function): Likewise.
2138 (blpy_get_superblock): Likewise.
2139 (set_block): Likewise.
2140 (block_to_block_object): Likewise.
2141 (block_object_to_block): Likewise.
2142 (blpy_is_valid): Likewise.
2143 (blpy_get_global_block): New function.
2144 (blpy_get_static_block): New function.
2145 (blpy_is_global): New function.
2146 (blpy_is_static): New function.
2147 * blockframe.c (block_innermost_frame): Likewise.
2148 * valops.c (value_of_variable): Likewise.
2149 * frame.h: Update prototypes.
2150 * python/python-internal.h: Likewise.
2151 * value.h: Likewise.
2152
4743b735
CC
21532011-10-19 Cary Coutant <ccoutant@google.com>
2154
2155 * dwarf2read.c (create_debug_types_hash_table): Fix size of
2156 type_offset field.
2157
6caca83c
CC
21582011-10-19 Cary Coutant <ccoutant@google.com>
2159
2160 * dwarf2read.c (peek_abbrev_code): New function.
2161 (dw2_get_file_names): Check for dummy compilation units.
2162 (create_debug_types_hash_table): Likewise.
2163 (process_psymtab_comp_unit): Likewise.
2164 (load_partial_comp_unit): Likewise.
2165 (load_full_comp_unit): Likewise.
2166
43136979
AR
21672011-10-18 Aleksandar Ristovski <aristovski@qnx.com>
2168
2169 * solib-svr4.c (read_program_header): New variables pt_phdr, pt_phdr_p,
2170 initialize them from target PT_PHDR p_vaddr, relocate sect_addr by
2171 pt_phdr if PT_PHDR was found.
2172
0a07729b
TT
21732011-10-17 Joost van der Sluis <joost@cnoc.nl>
2174
2175 * gdbtypes.h: Added TYPE_SAFE_NAME macro to get the name of a
2176 type or "<unnamed type"> when there is no name assigned.
2177 * gnu-v3-abi.c (gnuv3_rtti_type): Use TYPE_SAFE_NAME macro to
2178 avoid a sigint when no name is assigned.
2179
21ae7a4d
JK
21802011-10-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2181
2182 Revert:
2183 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2184 * dwarf2expr.c (ctx_no_read_reg): New function.
2185 * dwarf2expr.h (ctx_no_read_reg): New declaration.
2186 * dwarf2read.c (read_2_signed_bytes, read_4_signed_bytes): Remove.
2187 (decode_locdesc_read_mem, decode_locdesc_ctx_funcs): New.
2188 (decode_locdesc): Replace by a caller of dwarf_expr_eval.
2189
32d1c362
DE
21902011-10-16 Doug Evans <dje@google.com>
2191
2192 * NEWS: Document python gdb.printing.register_pretty_printer's new
2193 `replace' parameter.
2194
da096638
KS
21952011-10-14 Keith Seitz <keiths@redhat.com>
2196
2197 PR c++/13225
2198 * eval.c (evaluate_subexp_standard): Do not construct
2199 an array of types; pass the value array directly to
2200 find_overload_match.
2201 * gdbtypes.h (NULL_POINTER_CONVERSION_BADNESS): Declare.
2202 (rank_function): Take an array of values instead of types.
2203 (rank_one_type): Add struct value * parameter.
2204 * gdbtypes.c (NULL_POINTER_CONVERSION_BADNESS): Define.
2205 (rank_function): For each argument, pass the argument's
2206 value to rank_one_type.
2207 (rank_one_type): Add VALUE parameter.
2208 If the parameter type is a pointer and the argument type
2209 is an integer, return NULL_POINTER_CONVERSION_BADNESS if
2210 VALUE is zero.
2211 Update all calls to rank_one_type, passing NULL for new
2212 VALUE parameter.
2213 * valarith.c (value_user_defined_cpp_op): Do not construct
2214 an array of types; pass the value array directly to
2215 find_overload_match.
2216 * valops.c (find_overload_method_list): Take an array of
2217 values instead of types.
2218 Save the type of OBJP for later use.
2219 Update calls to find_oload_champ, and find_oload_champ_namespace.
2220 (find_oload_champ_namespace): Take an array of values instead
2221 of types.
2222 (find_oload_champ_namespace_loop): Likewise.
2223 (find_oload_champ): Likewise.
2224 (classify_oload_match): Inspect all arguments
2225 until INCOMPATIBLE is found. Return the worst badness found
2226 otherwise.
2227 (compare_parameters): Update call to rank_one_type.
2228 * value.h (find_overload_match): Take an array of values instead
2229 of types.
2230
3957565a
JK
22312011-10-14 Jan Kratochvil <jan.kratochvil@redhat.com>
2232
2233 Drop lazy lm_info reading.
2234 * solib-svr4.c (struct lm_info): Remove field lm. New fields l_addr_p,
2235 l_addr_inferior, l_ld, l_next, l_prev and l_name.
2236 (lm_info_read): New function.
2237 (lm_addr_from_link_map, lm_dynamic_from_link_map): Remove.
2238 (lm_addr_check): Use l_addr_p. No longer use lm_addr_from_link_map and
2239 lm_dynamic_from_link_map.
2240 (lm_next, lm_prev, lm_name): Remove.
2241 (svr4_keep_data_in_core): Use lm_info_read, drop the lm_info entries
2242 initialization incl. read_memory. No longer use lm_name.
2243 (svr4_free_so): Drop lm_info->lm freeing.
2244 (svr4_default_sos): Initialize lminfo with zeroes. Use l_addr_p. Drop
2245 explicit lm_addr and lm initialization.
2246 (svr4_read_so_list): Use lm_info_read, drop the initailization of
2247 fields by hand, incl. read_memory. No longer use lm_next, lm_prev and
2248 lm_name.
2249
cb08cc53
JK
22502011-10-14 Jan Kratochvil <jan.kratochvil@redhat.com>
2251 Paul Pluzhnikov <ppluzhnikov@google.com>
2252
2253 * defs.h (struct so_list): New forward declaration.
2254 (make_cleanup_free_so): New declaration.
2255 * solib-svr4.c (ignore_first_link_map_entry): Remove.
2256 (svr4_free_so): Move the function here from downwards. Handle NULL
2257 so->lm_info.
2258 (svr4_free_library_list): New.
2259 (svr4_read_so_list): New, moved here code from svr4_current_sos.
2260 Use more cleanups. Use new parameter ignore_first instead of
2261 ignore_first_link_map_entry.
2262 (svr4_current_sos): New variable ignore_first, initialize it. New
2263 variable back_to, use it for svr4_free_library_list protection.
2264 (svr4_free_so): Remove - move upwards.
2265 * utils.c: Include solist.h.
2266 (do_free_so, make_cleanup_free_so): New functions.
2267
22c05d8a
JK
22682011-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2269
2270 Fix internal error regression.
2271 * value.c (value_primitive_field): Handle value_optimized_out. Move
2272 packed bitfields comment.
2273
d930d06e
TT
22742011-10-13 Tom Tromey <tromey@redhat.com>
2275
2276 * python/py-breakpoint.c (gdbpy_breakpoint_deleted): Ensure GIL is
2277 always released.
2278
2ff6b080
TT
22792011-10-13 Tom Tromey <tromey@redhat.com>
2280
2281 * python/py-type.c (typy_has_key): Make 'field' const.
2282
d6c5869f
LM
22832011-10-13 Luis Machado <lgustavo@codesourcery.com>
2284
2285 * remote.c (remote_save_trace_data): Invert comparison.
2286
a70633a2
LM
22872011-10-13 Luis Machado <lgustavo@codesourcery.com>
2288
2289 * tracepoint.c (trace_save_command): Use filename instead of
2290 args when printing.
2291
e103e986
JK
22922011-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2293
2294 * dwarf2read.c (dwarf2_fetch_die_location_block): Initialize .data even
2295 if .size is 0.
2296
db24da6d
YQ
22972011-10-13 Yao Qi <yao@codesourcery.com>
2298
2299 PR gdb/12703
2300 * arm-tdep.c (thumb_analyze_prologue): Call thumb_insn_size to check
2301 whether insn is a 32-bit Thumb-2 instruction.
2302 (thumb_in_function_epilogue_p): Likewise.
2303 (thumb_get_next_pc_raw): Likewise.
2304 (arm_breakpoint_from_pc): Likewise.
2305
1d6edc3c
JK
23062011-10-12 Jan Kratochvil <jan.kratochvil@redhat.com>
2307
2308 Fix empty DWARF expressions DATA vs. SIZE conditionals.
2309 * dwarf2loc.c (dwarf2_find_location_expression): Clear *LOCEXPR_LENGTH.
2310 (dwarf_expr_frame_base_1): Indicate unavailability via zero *LENGTH.
2311 (locexpr_tracepoint_var_ref): Check only zero SIZE, not zero DATA.
2312 (loclist_read_variable, loclist_tracepoint_var_ref): Do not check for
2313 zero DATA.
2314 * dwarf2loc.h (struct dwarf2_locexpr_baton): Comment DATA vs. SIZE
2315 validity.
2316 * dwarf2read.c (struct dwarf_block): Comment DATA validity.
2317 (dwarf2_fetch_die_location_block, dwarf2_symbol_mark_computed): Do not
2318 clear DATA on zero SIZE.
2319
adabb602
DE
23202011-10-12 Doug Evans <dje@google.com>
2321
2322 * dwarf2read.c (partial_read_comp_unit_head): Set header->offset,
2323 header->first_die_offset here. All callers updated.
2324
5048e516
JK
23252011-10-12 Jan Kratochvil <jan.kratochvil@redhat.com>
2326
2327 Fix compatibility with texinfo versions older than 4.12.
2328 * Makefile.in (MAKEINFO): Set to @MAKEINFO@.
2329 (MAKEINFOFLAGS, MAKEINFO_EXTRA_FLAGS, MAKEINFO_CMD): New.
2330 (MAKEHTMLFLAGS): Use MAKEINFO_CMD.
2331 (FLAGS_TO_PASS): Add MAKEINFOFLAGS and MAKEINFO_EXTRA_FLAGS.
2332 * configure: Regenerate.
2333 * configure.ac (MAKEINFO): Find it, from libiberty/configure.ac.
2334 (MAKEINFOFLAGS): Pre-set it to --split-size=5000000.
2335 (MAKEINFO_EXTRA_FLAGS): New test for -DHAVE_MAKEINFO_CLICK.
2336
0574c78f
GB
23372011-10-12 Gary Benson <gbenson@redhat.com>
2338
2339 * breakpoint.h (pc_at_non_inline_function): Declare.
2340 * breakpoint.c (is_non_inline_function,
2341 pc_at_non_inline_function): New functions.
2342 * infrun.c (handle_inferior_event): Don't call skip_inline_frames
2343 if the stop is at a location where functions cannot be inlined.
2344
12d9289a
PA
23452011-10-12 Pedro Alves <pedro@codesourcery.com>
2346
2347 * linux-nat.c (stop_and_resume_callback): Don't re-resume LWPs if
2348 the core wanted them stopped, or if they now have a pending event
2349 to report.
ecf8e7f5
PA
2350 (linux_nat_filter_event): New parameter `new_pending_p'. Pass it
2351 down to stop_and_resume_callback.
2352 (linux_nat_wait_1): Always clear `options' when retrying. Handle
2353 having new pending events after calling linux_nat_filter_event.
12d9289a 2354
96408a79
SA
23552011-10-11 Sterling Augustine <saugustine@google.com>
2356
2357 * dwarf2read.c: Undo inadvertent changes in previous commit.
2358
9c6c53f7
SA
23592011-10-11 Sterling Augustine <saugustine@google.com>
2360
2361 * dwarf2read.c (partial_die_parent_scope): Rearrange conditional
2362 logic.
2363
0e8aefe7
UW
23642011-10-11 Ulrich Weigand <ulrich.weigand@linaro.org>
2365
2366 * symfile.c (separate_debug_file_exists): Fix condition.
2367
349d1385
DM
23682011-10-11 David S. Miller <davem@davemloft.net>
2369
2370 * regcache.c (regcache_restore): Do not write unavailable regs, mark
2371 static.
2372 * regcache.h (regcache_restore): Remove declaration.
2373
205c306f
DM
2374 * gdbarch.sh: New field 'long_long_align_bit'.
2375 * gdbarch.c, gdbarch.h: Regenerate.
2376 * i386-tdep.c (i386_gdbarch_init): Set long_long_align_bit to 32.
2377 * jit.c (jit_read_code_entry): Use it to determine correct size offset.
2378
941b2081
JK
23792011-10-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2380
2381 Revert this part of:
2382 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2383 Support @entry in input expressions.
2384 * c-exp.y (ENTRY, unknown_cpp_name): New.
2385 (exp: UNKNOWN_CPP_NAME): Change to `exp: unknown_cpp_name'.
2386 (unknown_cpp_name: UNKNOWN_CPP_NAME, unknown_cpp_name: ENTRY)
2387 (variable: name_not_typename '@' ENTRY, name: ENTRY)
2388 (name_not_typename: ENTRY): New.
2389 (yylex): Recognize ENTRY.
2390
2391 Reimplement @entry in input expressions.
2392 * c-exp.y (ENTRY): New.
2393 (variable: name_not_typename ENTRY): New.
2394 (lex_one_token): Optionally return ENTRY instead of the '@' lex.
2395
3c4d7e12
PA
23962011-10-11 Pedro Alves <pedro@codesourcery.com>
2397
2398 * linux-nat.c (linux_handle_extended_wait): Always dump both the
2399 parent and child's pids as soon as we detect a clone event.
2400 Adjust another debug message.
2401
ea23808b
PA
24022011-10-11 Pedro Alves <pedro@codesourcery.com>
2403
2404 * linux-nat.c (linux_lwp_is_zombie): Return early if the LWP is
2405 not zombie instead of reading the whole file.
2406
904578ed
JK
24072011-10-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2408
2409 Fix separate debuginfo warning with "remote:" access.
2410 * objfiles.h (struct objfile): New fields crc32 and crc32_p.
2411 * symfile.c (get_file_crc): New function with the code moved from ...
2412 (separate_debug_file_exists): ... this function, specifically variables
2413 buffer and count. New variable verified_as_different, set it. Remove
2414 file_crc initialization. Verify also if both files are not the same
2415 manually, if needed.
2416
51370a33
YQ
24172011-10-11 Yao Qi <yao@codesourcery.com>
2418
2419 * arm-tdep.c (arm_get_next_pc_raw): Use read_memory_unsigned_integer
2420 to get address.
2421
0838fb57
DE
24222011-10-10 Doug Evans <dje@google.com>
2423
2424 * linux-thread-db.c (thread_db_new_objfile): Only try to load
2425 libthread_db when we load libpthread or the main symbol file.
2426 (thread_db_inferior_created): New function.
2427 (_initialize_thread_db): Attach inferior_created observer.
2428 * linux-nat.c (linux_child_post_attach): Remove call to
2429 check_for_thread_db.
2430 (linux_child_post_startup_inferior): Ditto.
2431 * objfiles.h (OBJF_MAINLINE): Define.
2432 * symfile.c (symbol_file_add_with_addrs_or_offsets): Pass it to
2433 allocate_objfile when appropriate.
2434
623bd5b7
UW
24352011-10-10 Ulrich Weigand <ulrich.weigand@linaro.org>
2436
2437 PR gdb/13218
2438 * arm-linux-nat.c (os_version, os_major, os_minor, os_release):
2439 Remove unused variables.
2440 (get_linux_version): Remove function.
2441 (_initialize_arm_linux_nat): Do not call it.
2442
79395f92
PA
24432011-10-10 Pedro Alves <pedro@codesourcery.com>
2444
2445 * linux-nat.c (linux_handle_extended_wait): Don't resume the new
2446 new clone lwp if the core asked it to stop. Don't pass on
2447 unexpected signals to the new clone; leave them pending instead.
2448
eff3df78
PA
24492011-10-10 Pedro Alves <pedro@codesourcery.com>
2450
2451 * linux-nat.c (resume_lwp): Remove redundant debug output.
2452
4b60df3d
PA
24532011-10-10 Pedro Alves <pedro@codesourcery.com>
2454
2455 * linux-nat.c (linux_nat_wait_1): Copy the event lwp's
2456 last_resume_kind before clearing it, and use the copy instead to
2457 determine whether to report a SIGSTOP as TARGET_SIGNAL_0. Use
2458 resume_clear_callback in the non-stop path too.
2459
6501578c
YQ
24602011-10-09 Yao Qi <yao@codesourcery.com>
2461
2462 * valprint.c (value_check_printable): Add one parameter OPTIONS.
2463 Honor OPTIONS and VAL's type.
2464 (common_val_print, value_print): Update to pass one more parameter.
2465
5a56e9c5
DE
24662011-10-09 Doug Evans <dje@google.com>
2467
2468 Add new "alias" command.
2469 * NEWS: Mention new command.
2470 * command.h (valid_user_defined_cmd_name_p): Declare.
2471 * defs.h (make_cleanup_dyn_string_delete): Declare.
2472 * utils.c: #include "dyn-string.h".
2473 (do_dyn_string_delete, make_cleanup_dyn_string_delete): New functions.
2474 * cli/cli-cmds.c: #include "dyn-string.h".
2475 (argv_to_dyn_string, valid_command_p, alias_command): New functions.
2476 (init_cli_cmds): Add new command.
2477 * cli/cli-decode.c (valid_user_defined_cmd_name_p): New function.
2478
509f0fd9
JK
24792011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2480
2481 Fix compatibility with older GCCs.
2482 * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Initialize parameter.
2483 * stack.c (read_frame_arg): Initialize val_deref.
2484
2bda9cc5
JK
24852011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2486
2487 Entry values NEWS entries, DWARF disassembly support.
2488 * NEWS: New entry values entry.
2489 (set print entry-values, show print entry-values)
2490 (set debug entry-values, show debug entry-values): New entries.
2491 * dwarf2loc.c (disassemble_dwarf_expression): New parameters start and
2492 indent. Remove variable start. Move header printing out. Respect
2493 INDENT. Support DW_OP_GNU_entry_value.
2494 (locexpr_describe_location_1): Move the header printing here, extend
2495 the disassemble_dwarf_expression passed parameters.
2496
a471c594
JK
24972011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2498
2499 Display @entry parameter values even for references.
2500 * ada-valprint.c (ada_val_print_1) <TYPE_CODE_REF>: Try also
2501 coerce_ref_if_computed.
2502 * c-valprint.c (c_val_print) <TYPE_CODE_REF>: Likewise.
2503 * dwarf2expr.c (dwarf_block_to_dwarf_reg_deref): New function.
2504 (execute_stack_op) <DW_OP_GNU_entry_value>: Add -1 deref_size to the
2505 existing push_dwarf_reg_entry_value call. Add new detection calling
2506 dwarf_block_to_dwarf_reg_deref. Update the error message.
2507 (ctx_no_push_dwarf_reg_entry_value): New parameter deref_size.
2508 * dwarf2expr.h
2509 (struct dwarf_expr_context_funcs) <push_dwarf_reg_entry_value>: Add new
2510 parameter deref_size, describe it in the comment.
2511 (ctx_no_push_dwarf_reg_entry_value): Add new parameter deref_size.
2512 (dwarf_block_to_dwarf_reg_deref): New declaration.
2513 * dwarf2loc.c (dwarf_entry_parameter_to_value): Add new parameter
2514 deref_size, describe it in the function comment. New variables
2515 data_src and size, fetch the alternative block accoring to DEREF_SIZE.
2516 (dwarf_expr_push_dwarf_reg_entry_value): Add new parameter deref_size,
2517 describe it in the function comment. Fetch the alternative block
2518 accoring to DEREF_SIZE.
2519 (entry_data_value_coerce_ref, entry_data_value_copy_closure)
2520 (entry_data_value_free_closure, entry_data_value_funcs): New.
2521 (value_of_dwarf_reg_entry): New variables checked_type, target_type,
2522 outer_val, target_val, val and addr. Try to fetch and create also
2523 referenced value content.
2524 (pieced_value_funcs): NULL value for coerce_ref.
2525 (needs_dwarf_reg_entry_value): Add new parameter deref_size.
2526 * f-valprint.c (f_val_print) <TYPE_CODE_REF>: Try also
2527 coerce_ref_if_computed.
2528 * opencl-lang.c (opencl_value_funcs): NULL value for coerce_ref.
2529 * p-valprint.c (pascal_val_print) <TYPE_CODE_REF>: Likewise.
2530 * stack.c (read_frame_arg): Compare also dereferenced values.
2531 * value.c (value_computed_funcs): Make the parameter v const, use
2532 value_lval_const for it.
2533 (value_lval_const, coerce_ref_if_computed): New function.
2534 (coerce_ref): New variable retval. Call also coerce_ref_if_computed.
2535 * value.h (struct lval_funcs): New field coerce_ref.
2536 (value_computed_funcs): Make the parameter v const.
2537 (value_lval_const, coerce_ref_if_computed): New declarations.
2538
36b11add
JK
25392011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2540
2541 Support @entry in input expressions.
2542 * c-exp.y (ENTRY, unknown_cpp_name): New.
2543 (exp: UNKNOWN_CPP_NAME): Change to `exp: unknown_cpp_name'.
2544 (unknown_cpp_name: UNKNOWN_CPP_NAME, unknown_cpp_name: ENTRY)
2545 (variable: name_not_typename '@' ENTRY, name: ENTRY)
2546 (name_not_typename: ENTRY): New.
2547 (yylex): Recognize ENTRY.
2548 * eval.c (evaluate_subexp_standard): Support also OP_VAR_ENTRY_VALUE.
2549 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
2550 Likewise.
2551 * parse.c (operator_length_standard): Likewise.
2552 * std-operator.def: New operator OP_VAR_ENTRY_VALUE.
2553
3343315b
JK
25542011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2555
2556 Display referenced values in backtraces.
2557 * printcmd.c (print_variable_and_value): Set OPTS.DEREF_REF to 1.
2558 * stack.c (print_frame_arg): Likewise.
2559
ac71a68c
JK
25602011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2561
2562 Make some lval_funcs methods to default on NULL.
2563 * valops.c (value_fetch_lazy): Check if lval_computed read method is
2564 NULL.
2565 (value_assign): Check if lval_computed write method is NULL.
2566 * value.h (struct lval_funcs): Comment NULL values for read and write
2567 methods.
2568
e18b2753
JK
25692011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2570
2571 Display @entry parameter values (without references).
2572 * dwarf2expr.c (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset):
2573 New functions.
2574 * dwarf2expr.h (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset):
2575 New declarations.
2576 * dwarf2loc.c (dwarf2_find_location_expression): Support location list
2577 entry record.
2578 (dwarf_entry_parameter_to_value, value_of_dwarf_reg_entry)
2579 (value_of_dwarf_block_entry, locexpr_read_variable_at_entry): New
2580 functions.
2581 (dwarf2_locexpr_funcs): Install locexpr_read_variable_at_entry.
2582 (loclist_read_variable_at_entry): New function.
2583 (dwarf2_loclist_funcs): Install loclist_read_variable_at_entry.
2584 * dwarf2read.c (read_call_site_scope): Support also DW_OP_fbreg in
2585 DW_AT_location, call dwarf_block_to_sp_offset for it.
2586 * frame.h (print_entry_values_no, print_entry_values_only)
2587 (print_entry_values_preferred, print_entry_values_if_needed)
2588 (print_entry_values_both, print_entry_values_compact)
2589 (print_entry_values_default, print_entry_values): New declarations.
2590 (struct frame_arg): New field entry_kind.
2591 (read_frame_arg): New parameter entryargp.
2592 * mi/mi-cmd-stack.c (list_arg_or_local): New gdb_assert for
2593 arg->entry_kind. Optionally print the `@entry' suffix.
2594 (list_args_or_locals): New variable entryarg, initialize it.
2595 Initialize also entry_kind of arg and entryarg. Conditionalize
2596 list_arg_or_local for arg, add list_arg_or_local for entryarg. Call
2597 xfree for entryarg.error.
2598 * stack.c (print_entry_values_no, print_entry_values_only)
2599 (print_entry_values_preferred, print_entry_values_if_needed)
2600 (print_entry_values_both, print_entry_values_compact)
2601 (print_entry_values_default, print_entry_values_choices)
2602 (print_entry_values): New variables.
2603 (print_frame_arg): New gdb_assert for arg->entry_kind. Optionally
2604 print the `@entry' suffix, possibly in combination for
2605 print_entry_values_compact.
2606 (read_frame_arg): New parameter entryargp, new variables entryval,
2607 entryval_error and val_equal. Read in also entryargp, respect
2608 print_entry_values, compare the values using val_equal, fill in also
2609 argp->entry_kind (together with entryargp->entry_kind).
2610 (print_frame_args): New variable entryarg, initialize it.
2611 Conditionalize print_frame_arg for arg, add print_frame_arg for
2612 entryarg. Call xfree for entryarg.error.
2613 (_initialize_stack): Call add_setshow_enum_cmd for `entry-values'.
2614 * symtab.h (struct symbol_computed_ops): New field
2615 read_variable_at_entry.
2616
93d86cef
JK
26172011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2618
2619 Code reshuffle.
2620 * frame.h (struct frame_arg): New definition.
2621 (read_frame_arg): New declaration.
2622 * mi/mi-cmd-stack.c (list_arg_or_local): New functiom from ...
2623 (list_args_or_locals): ... the code here. New variable arg, call
2624 read_frame_arg and list_arg_or_local with it. Unify the
2625 PRINT_SIMPLE_VALUES and PRINT_ALL_VALUES cases. Call xfree for
2626 arg.error.
2627 * stack.c (print_frame_arg): New functiom from the code of
2628 print_frame_args.
2629 (read_frame_arg): New function.
2630 (print_frame_args): Remove variable val. New variable arg, call
2631 read_frame_arg and print_frame_arg with it. Call xfree for arg.error.
2632
2d6c5dc2
JK
26332011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2634
2635 Protect entry values against self tail calls.
2636 * dwarf2loc.c (VEC (CORE_ADDR), func_verify_no_selftailcall): New.
2637 (dwarf_expr_dwarf_reg_entry_value): Call func_verify_no_selftailcall.
2638
111c6489
JK
26392011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2640
2641 Recognize virtual tail call frames.
2642 * Makefile.in (SFILES): Add dwarf2-frame-tailcall.c.
2643 (HFILES_NO_SRCDIR): Add dwarf2-frame-tailcall.h.
2644 (COMMON_OBS): Add dwarf2-frame-tailcall.o.
2645 * dwarf2-frame-tailcall.c: New file.
2646 * dwarf2-frame-tailcall.h: New file.
2647 * dwarf2-frame.c: Include dwarf2-frame-tailcall.h.
2648 (execute_cfa_program): New function comment. Return INSN_PTR. Reset
2649 REGS.PREV only after CIE execution.
2650 (struct dwarf2_frame_cache): New field tailcall_cache.
2651 (dwarf2_frame_cache): New variables entry_pc, entry_cfa_sp_offset,
2652 entry_cfa_sp_offset_p and instr. Execute FDE instructions in two
2653 parts, try to find entry_cfa_sp_offset. Call
2654 dwarf2_tailcall_sniffer_first.
2655 (dwarf2_frame_prev_register): Call dwarf2_tailcall_prev_register_first
2656 when appropriate.
2657 (dwarf2_frame_dealloc_cache): New function.
2658 (dwarf2_frame_sniffer): Preinitialize cache by dwarf2_frame_cache.
2659 (dwarf2_frame_unwind): Install dwarf2_frame_dealloc_cache.
2660 (dwarf2_signal_frame_unwind): Do not install dwarf2_frame_dealloc_cache.
2661 (dwarf2_append_unwinders): Add dwarf2_tailcall_frame_unwind.
2662 (dwarf2_frame_cfa): Support also dwarf2_tailcall_frame_unwind.
2663 * dwarf2loc.c (func_addr_to_tail_call_list)
2664 (tailcall_dump, call_sitep, VEC (call_sitep), chain_candidate)
2665 (call_site_find_chain_1, call_site_find_chain): New.
2666 * dwarf2loc.h (struct call_site_chain): New.
2667 (call_site_find_chain): New declaration.
2668 * frame.c (get_frame_address_in_block): Support also TAILCALL_FRAME.
2669 * frame.h (enum frame_type): New entry TAILCALL_FRAME.
2670 * python/py-frame.c (gdbpy_initialize_frames): Add TAILCALL_FRAME.
2671 * stack.c (frame_info): Support also TAILCALL_FRAME.
2672
bb984ff1
JK
26732011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2674
2675 Tail call sites reader implementation.
2676 * dwarf2read.c (read_call_site_scope): Recognize DW_AT_GNU_tail_call,
2677 fill in TYPE_TAIL_CALL_LIST.
2678 * gdbtypes.h (struct func_type): New field tail_call_list.
2679 (struct call_site): New field tail_call_next.
2680 (TYPE_TAIL_CALL_LIST): New definition.
2681
8e3b41a9
JK
26822011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2683
2684 Implement basic support for DW_TAG_GNU_call_site.
2685 * block.c: Include gdbtypes.h and exceptions.h.
2686 (call_site_for_pc): New function.
2687 * block.h (call_site_for_pc): New declaration.
2688 * defs.h: Include hashtab.h.
2689 (make_cleanup_htab_delete, core_addr_hash, core_addr_eq): New
2690 declarations.
2691 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Install
2692 ctx_no_push_dwarf_reg_entry_value.
2693 * dwarf2expr.c (read_uleb128, read_sleb128): Support R as NULL.
2694 (dwarf_block_to_dwarf_reg): New function.
2695 (execute_stack_op) <DW_OP_GNU_entry_value>: Implement it.
2696 (ctx_no_push_dwarf_reg_entry_value): New function.
2697 * dwarf2expr.h (struct dwarf_expr_context_funcs): New field
2698 push_dwarf_reg_entry_value.
2699 (ctx_no_push_dwarf_reg_entry_value, dwarf_block_to_dwarf_reg): New
2700 declarations.
2701 * dwarf2loc.c: Include gdbcmd.h.
2702 (dwarf_expr_ctx_funcs): New forward declaration.
2703 (entry_values_debug, show_entry_values_debug, call_site_to_target_addr)
2704 (dwarf_expr_reg_to_entry_parameter)
2705 (dwarf_expr_push_dwarf_reg_entry_value): New.
2706 (dwarf_expr_ctx_funcs): Install dwarf_expr_push_dwarf_reg_entry_value.
2707 (dwarf2_evaluate_loc_desc_full): Handle NO_ENTRY_VALUE_ERROR.
2708 (needs_dwarf_reg_entry_value): New function.
2709 (needs_frame_ctx_funcs): Install it.
2710 (_initialize_dwarf2loc): New function.
2711 * dwarf2loc.h (entry_values_debug): New declaration.
2712 * dwarf2read.c (struct dwarf2_cu): New field call_site_htab.
2713 (read_call_site_scope): New forward declaration.
2714 (process_full_comp_unit): Copy call_site_htab.
2715 (process_die): Support DW_TAG_GNU_call_site.
2716 (read_call_site_scope): New function.
2717 (dwarf2_get_pc_bounds): Support NULL HIGHPC.
2718 (dwarf_tag_name): Support DW_TAG_GNU_call_site.
2719 (cleanup_htab): Delete.
2720 (write_psymtabs_to_index): Use make_cleanup_htab_delete instead of it.
2721 * exceptions.h (enum errors): New NO_ENTRY_VALUE_ERROR.
2722 * gdb-gdb.py (StructMainTypePrettyPrinter): Support
2723 FIELD_LOC_KIND_DWARF_BLOCK.
2724 * gdbtypes.h (enum field_loc_kind): New entry
2725 FIELD_LOC_KIND_DWARF_BLOCK.
2726 (struct main_type): New loc entry dwarf_block.
2727 (struct call_site, FIELD_DWARF_BLOCK, SET_FIELD_DWARF_BLOCK)
2728 (TYPE_FIELD_DWARF_BLOCK): New.
2729 * python/py-type.c: Include dwarf2loc.h.
2730 (check_types_equal): Support FIELD_LOC_KIND_DWARF_BLOCK. New
2731 internal_error call on unknown FIELD_LOC_KIND.
2732 * symtab.h (struct symtab): New field call_site_htab.
2733 * utils.c (do_htab_delete_cleanup, make_cleanup_htab_delete)
2734 (core_addr_hash, core_addr_eq): New functions.
2735
b6cdc2c1
JK
27362011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2737
2738 Code reshuffle.
2739 * gdb-gdb.py (StructMainTypePrettyPrinter): Change
2740 TYPE_SPECIFIC_CALLING_CONVENTION to TYPE_SPECIFIC_FUNC. Move
2741 calling_convention under func_stuff there.
2742 * gdbtypes.c (make_function_type): Call INIT_FUNC_SPECIFIC.
2743 (init_type) <TYPE_CODE_FUNC>: Likewise.
2744 (recursive_dump_type): Change TYPE_SPECIFIC_CALLING_CONVENTION to
2745 TYPE_SPECIFIC_FUNC. New comment for tail_call_list.
2746 * gdbtypes.h (enum type_specific_kind): Change
2747 TYPE_SPECIFIC_CALLING_CONVENTION to TYPE_SPECIFIC_FUNC.
2748 (struct main_type) <type_specific>: Change calling_convention to
2749 func_stuff. Move calling_convention to ...
2750 (struct func_type): ... this new struct.
2751 (INIT_FUNC_SPECIFIC): New #define.
2752 (TYPE_CALLING_CONVENTION): Change calling_convention to func_stuff.
2753
181cebd4
JK
27542011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2755
2756 Fix DW_OP_GNU_implicit_pointer for DWARF32 v3+ on 64-bit arches.
2757 * dwarf2-frame.c (execute_stack_op): Initialize ctx->ref_addr_size.
2758 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_implicit_pointer>: Use
2759 ctx->ref_addr_size. Handle its invalid value.
2760 * dwarf2expr.h (struct dwarf_expr_context): New field ref_addr_size.
2761 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full)
2762 (dwarf2_loc_desc_needs_frame): Initialize ctx->ref_addr_size.
2763 * dwarf2loc.h (dwarf2_per_cu_ref_addr_size): New declaration.
2764 * dwarf2read.c (decode_locdesc): Initialize ctx->ref_addr_size.
2765 (dwarf2_per_cu_ref_addr_size): New function.
2766
c471e790
JK
27672011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2768
2769 Code cleanup.
2770 * dwarf2read.c (per_cu_header_read_in): New function.
2771 (dwarf2_per_cu_addr_size, dwarf2_per_cu_offset_size): Use it, with new
2772 variables cu_header_local and cu_headerp.
2773
741f5e3c
JK
27742011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2775
2776 Fix initial language detection with -readnow.
2777 * dwarf2read.c (dw2_find_symbol_file): Handle OBJF_READNOW case.
2778 * symfile.h (struct quick_symbol_functions): State find_symbol_file
2779 searches only for global symbols.
2780
a73d2258
JK
27812011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2782
2783 Fix printed anonymous struct name.
2784 * dwarf2read.c (fixup_partial_die): Handle for anonymous structs also
2785 DW_TAG_interface_type. Strip for anonymous structs any prefixes.
2786 (anonymous_struct_prefix): New function.
2787 (determine_prefix): New variables retval. Call anonymous_struct_prefix.
2788 (dwarf2_name): Strip for anonymous structs any prefixes.
2789
749fd4ea
DE
27902011-10-07 Doug Evans <dje@google.com>
2791
1fa57852
DE
2792 * python/lib/gdb/printing.py (register_pretty_printer): New argument
2793 `replace'.
2794
690a4937
DE
2795 * python/lib/gdb/printing.py: Whitespace cleanup.
2796
749fd4ea
DE
2797 * python/py-value.c (valpy_call): Initialize ftype to avoid compiler
2798 warning.
2799
4c38200f
PA
28002011-10-07 Pedro Alves <pedro@codesourcery.com>
2801
2802 * linux-nat.h (ALL_LWPS): Remove the ptid parameter.
2803 * amd64-linux-nat.c (amd64_linux_dr_set_control)
2804 (amd64_linux_dr_set_addr, amd64_linux_dr_unset_status): Adjust.
2805 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint)
2806 (arm_linux_remove_hw_breakpoint, arm_linux_insert_watchpoint)
2807 (arm_linux_remove_watchpoint): Adjust.
2808 * i386-linux-nat.c (i386_linux_dr_set_control)
2809 (i386_linux_dr_set_addr, i386_linux_dr_unset_status): Adjust.
2810 * ia64-linux-nat.c (ia64_linux_insert_watchpoint)
2811 (ia64_linux_remove_watchpoint): Adjust.
2812 * mips-linux-nat.c (write_watchpoint_regs): Adjust.
2813 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint)
2814 (ppc_linux_insert_hw_breakpoint, ppc_linux_remove_hw_breakpoint)
2815 (ppc_linux_insert_mask_watchpoint)
2816 (ppc_linux_remove_mask_watchpoint, ppc_linux_insert_watchpoint)
2817 (ppc_linux_remove_watchpoint): Adjust.
2818 * s390-nat.c (s390_insert_watchpoint, s390_remove_watchpoint):
2819 Adjust.
2820
b7ff339d
CV
28212011-10-07 Corinna Vinschen <vinschen@redhat.com>
2822
2823 * windows-nat.c: Include wchar.h to avoid compiler warnings.
2824 (clear_win32_environment): New function for Cygwin to clear out
2825 Win32 environment.
2826 (windows_create_inferior): Prepare new environment from in_env
2827 for Cygwin, too.
2828
f287c1f3
PM
28292011-10-07 Phil Muldoon <pmuldoon@redhat.com>
2830
5631e596 2831 PR python/13264
f287c1f3
PM
2832 * python/py-value.c (valpy_call): Check that arguments are
2833 a tuple.
2834 (is_intlike): Remove call to CHECK_TYPEDEF.
2835 (valpy_nonzero): Catch GDB exceptions.
2836 (valpy_absolute): Ditto.
2837 (valpy_lazy_string): Ditto.
2838 (valpy_call): Ditto.
2839 (valpy_get_is_optimized_out): Ditto.
2840 (valpy_long): Ditto.
2841 (valpy_float): Ditto.
2842 (valpy_int): Call CHECK_TYPEDEF. Catch GDB exceptions.
2843 (valpy_richcompare): Ditto.
2844
03583c20
UW
28452011-10-07 Ulrich Weigand <ulrich.weigand@linaro.org>
2846
2847 * inferior.h (disable_randomization): Declare.
2848 * infrun.c (disable_randomization): New global variable.
2849 (show_disable_randomization): New function.
2850 (set_disable_randomization): Likewise.
2851 (_initialize_infrun): Install set/show disable-randomization
2852 commands.
2853 * linux-nat.c (disable_randomization): Remove.
2854 (show_disable_randomization): Likewise.
2855 (set_disable_randomization): Likewise.
2856 (_initialize_linux_nat): No longer install set/show
2857 disable-randomization commands here.
2858 (linux_nat_supports_disable_randomization): New function.
2859 (linux_nat_add_target): Install it.
2860 * remote.c (PACKET_QDisableRandomization): New enum value.
2861 (remote_protocol_packets): Support QDisableRandomization.
2862 (_initialize_remote): Likewise.
2863 (remote_supports_disable_randomization): New function.
2864 (init_remote_ops): Install it.
2865 (extended_remote_supports_disable_randomization): New function.
2866 (init_extended_remote_ops): Install it.
2867 (extended_remote_disable_randomization): New function.
2868 (extended_remote_create_inferior_1): Call it.
2869 * target.h (struct target_ops): Add to_supports_disable_randomization.
2870 (target_supports_disable_randomization): Add prototype.
2871 * target.c (target_supports_disable_randomization): New function.
2872 (find_default_supports_disable_randomization): Likewise.
2873 (init_dummy_target): Install it.
2874
20c168b5
KP
28752011-10-07 Kevin Pouget <kevin.pouget@st.com>
2876
2877 Allow Python notification of new object-file loadings.
2878 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-newobjfilevent.c.
2879 (SUBDIR_PYTHON_OBS): Add py-newobjfileevent.o.
2880 Add build rule for this file.
2881 * python/py-event.h (emit_new_objfile_event): New prototype.
2882 (newobjfile): New Python event emitter.
2883 * python/py-evts.c (gdbpy_initialize_py_events): Add new_objfile to
2884 Python event registry.
2885 * python/py-inferior.c: Include objfiles.h
2886 (python_new_objfile): New function.
2887 (gdbpy_initialize_inferior): Add python_new_objfile to the new objfile
2888 observers.
2889 * python/py-newobjfileevent.c: New file.
2890 * python-internal.h (gdbpy_initialize_new_objfile_event): New
2891 prototype.
2892 * python/python.c (_initialize_python): Add
2893 gdbpy_initialize_new_objfile_event call.
2894 * NEWS: Add item for new Python event "gdb.newobjfile"
2895
b1c8db38
TG
28962011-10-05 Tristan Gingold <gingold@adacore.com>
2897
2898 * ada-tasks.c (read_atcb): Make ravenscar_task_name static.
2899 Extract the ravenscar task name from the symbol for the atcb.
2900
0dab82e9
PK
29012011-10-04 Paul Koning <paul_koning@dell.com>
2902
2903 * python/py-type.c (typy_make_iter): Add forward declaration.
2904 (typy_fields_items): Use the gdb.Type iterator.
2905
84ad80e6
PK
29062011-10-04 Paul Koning <paul_koning@dell.com>
2907
2908 * NEWS: Add entry for Python gdb.Type mapping methods.
2909
cb6be26b
KP
29102011-10-04 Kevin Pouget <kevin.pouget@st.com>
2911
2912 PR python/12691: Add the inferior to Python exited event
2913 * python/py-exitedevent.c (create_exited_event_object): Add inferior
2914 to exited_event.
2915 * python/py-event.h (emit_exited_event): Likewise
2916 * python/-inferior.c (python_inferior_exit): Likewise
2917
6005b210
JB
29182011-10-03 Joel Brobecker <brobecker@adacore.com>
2919
2920 * ada-tasks.c (print_ada_task_info): Add "thread-id" field
2921 in output of -ada-task-info GDB/MI command.
2922
75082e8c
JB
29232011-10-03 Joel Brobecker <brobecker@adacore.com>
2924
2925 * ada-lang.h (struct inferior): Declare.
2926 (print_ada_task_info): Add declaration.
2927 * ada-tasks.c (print_ada_task_info): Make non-static.
2928 * mi/mi-cmds.c (mi_cmds): Add "ada-task-info".
2929 * mi/mi-cmds.h (mi_cmd_ada_task_info): Add declaration.
2930 * mi/mi-main.c: #include "ada-lang.h".
2931 (mi_cmd_list_features): Add "ada-task-info" to the list
2932 of supported features.
2933 (mi_cmd_ada_task_info): New function.
2934
7ed7d719
JB
29352011-10-03 Joel Brobecker <brobecker@adacore.com>
2936
2937 * python/python.c (python_run_simple_file): New function.
2938 (source_python_script, source_python_script_for_objfile):
2939 Replace call to PyRun_SimpleFile by call to
2940 python_run_simple_file.
2941
3fcaed38
PK
29422011-10-03 Paul Koning <paul_koning@dell.com>
2943
2944 * python/py-value.c (valpy_get_address): Use Py_XINCREF.
2945 (value_to_value_object): Fetch value if it was lazy.
2946
8e5c319d
JK
29472011-10-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2948
2949 Code cleanup.
2950 * solib-svr4.c (svr4_default_sos): Remove variables head and link_ptr.
2951 Rearrange the code for it.
2952
dd11a36c
JB
29532011-10-02 Joel Brobecker <brobecker@adacore.com>
2954
2955 * breakpoint.c (bkpt_print_recreate): Add call to
2956 print_recreate_thread.
2957
723b724b
MF
29582011-09-29 Mike Frysinger <vapier@gentoo.org>
2959
2960 * common/linux-ptrace.h (PTRACE_GETFDPIC, PTRACE_GETFDPIC_EXEC,
2961 PTRACE_GETFDPIC_INTERP): Define.
2962
412946b6
YQ
29632011-09-28 Yao Qi <yao@codesourcery.com>
2964
2965 * symfile.c (add_symbol_file_command): Update message on usage.
2966
a73bb892
PK
29672011-09-28 Paul Koning <paul_koning@dell.com>
2968
2969 * python/py-type.c (make_fielditem, typy_field_names, typy_items)
2970 (typy_length, typy_get, typy_has_key, typy_make_iter)
2971 (typy_iterkeys, typy_iteritems, typy_itervalues, typy_iter)
2972 (typy_iterator_iter, typy_iterator_iternext)
2973 (typy_iterator_dealloc): New functions to implement standard
2974 Python mapping methods on gdb.Type object.
2975 (gdb.TypeIterator): New Python type.
2976 * python/python-internal.h (gdbpy_iter_kind): New enum.
a73bb892 2977
fe10a582
DM
29782011-09-28 David S. Miller <davem@davemloft.net>
2979
2980 * sparc-tdep.h (SPARC_F2_REGNUM, SPARC_F3_REGNUM, SPARC_F4_REGNUM,
2981 SPARC_F5_REGNUM, SPARC_F6_REGNUM, SPARC_F7_REGNUM): New enums.
2982 * sparc-tdep.c (sparc_complex_floating_p): New function.
2983 (sparc32_store_arguments): Handle complex floats.
2984 (sparc32_extract_return_value): Likewise.
2985 (sparc32_store_return_value): Likewise.
2986 (sparc32_stabs_argument_has_addr): Likewise.
2987 * sparc64-tdep.c (sparc64_complex_floating_p): New function.
2988 (sparc64_store_floating_fields): Handle complex floats.
2989 (sparc64_store_arguments): Likewise.
2990 (sparc64_store_return_value): Likewise.
2991
c93dbcba
EZ
29922011-09-28 Eli Zaretskii <eliz@gnu.org>
2993
2994 * windows-nat.c (env_sort) [!__CYGWIN__]: Function restored from
2995 before the change on 2006-12-09.
2996 (windows_create_inferior) [!__CYGWIN__]: Restore code that
2997 generates the environment block for CreateProcessA, modulo the
2998 Cygwin-specific parts that are not needed here.
2999
f00c55f8
TG
30002011-09-27 Tristan Gingold <gingold@adacore.com>
3001
3002 * target.h (enum target_object): Add TARGET_OBJECT_DARWIN_DYLD_INFO.
3003 * solib-darwin.c (DYLD_VERSION_MAX): Update number.
3004 (darwin_solib_get_all_image_info_addr_at_init): New function.
3005 (darwin_solib_read_all_image_info_addr): Likewise.
3006 (darwin_solib_create_inferior_hook): Use the above two functions.
3007 * darwin-nat.c (darwin_execvp): Renames retval to res.
3008 (darwin_read_write_inferior): Update comment.
3009 (darwin_read_dyld_info): New function.
3010 (darwin_xfer_partial): Handle DYLD_INFO.
3011
6710bf39
SS
30122011-09-27 Stan Shebs <stan@codesourcery.com>
3013
3014 Add return address collection for tracepoints.
3015 * tracepoint.c (encode_actions_1): Add case for $_ret.
3016 (validate_actionline): Check for $_ret.
3017 (trace_dump_actions): Ditto.
3018 * ax-gdb.h (gen_trace_for_return_address): Declare.
3019 * ax-gdb.c: Include arch-utils.h.
3020 (gen_trace_for_return_address): New function.
3021 (agent_command): Add return address special case.
3022 * amd64-tdep.c: Include ax.h and ax-gdb.h.
3023 (amd64_gen_return_address): New function.
3024 (amd64_init_abi): Call it.
3025 * i386-tdep.c: Include ax.h and ax-gdb.h.
3026 (i386_gen_return_address): New function.
3027 (i386_init_abi): Call it.
3028 * arch-utils.h (default_gen_return_address): Declare.
3029 * arch-utils.c (default_gen_return_address): New function.
3030 * gdbarch.sh (gen_return_address): New method.
3031 * gdbarch.h, gdbarch.c: Regenerate.
3032
e04e5beb
JM
30332011-09-23 Joseph Myers <joseph@codesourcery.com>
3034
3035 PR gdb/13079
3036 * i386-tdep.c (i386_frame_align): New.
3037 (i386_gdbarch_init): Use i386_frame_align.
3038
f3d6df6d
YQ
30392011-09-23 Yao Qi <yao@codesourcery.com>
3040
3041 * i386-linux-nat.c (i386_linux_resume): Use read_memory_unsigned_integer
3042 to get address.
3043
e69860f1
TG
30442011-09-22 Tristan Gingold <gingold@adacore.com>
3045
3046 * fork-child.c (fork_inferior): Add exec_fun parameter.
3047 Call exec_fun or execvp.
3048 * inferior.h: Adjust prototype.
3049 * gnu-nat.c (gnu_create_inferior): Adjust fork_inferior call.
3050 * inf-ttrace.c (inf_ttrace_create_inferior): Ditto.
3051 * inf-ptrace.c (inf_ptrace_create_inferior): Ditto.
3052 * procfs.c (procfs_create_inferior): Ditto.
3053 * darwin-nat.c (darwin_execvp): New function.
3054 (darwin_create_inferior): Use it.
3055
4b51d87b
YQ
30562011-09-22 Yao Qi <yao@codesourcery.com>
3057
3058 * infrun.c (context_switch): Print debug message when switching to
3059 a different thread.
3060
56b9d9ac
UW
30612011-09-21 Ulrich Weigand <uweigand@de.ibm.com>
3062
3063 * s390-tdep.c (s390_function_arg_pass_by_reference): Handle
3064 complex and vector types.
3065 (s390_return_value_convention): Likewise.
3066
3067 (s390_value_from_register): Call check_typedef.
3068 (extend_simple_arg): Likewise.
3069 (alignment_of): Likewise.
3070 (s390_push_dummy_call): Likewise.
3071 (s390_return_value): Likewise.
3072
b2cd6b29
JM
30732011-09-21 Joseph Myers <joseph@codesourcery.com>
3074
3075 * event-top.c (async_disconnect): If an exception is thrown from
3076 quit_cover, call pop_all_targets. Use TRY_CATCH instead of
3077 catch_errors.
3078 * top.c (quit_cover): Return void and take no arguments.
3079 * top.h (quit_cover): Update prototype.
3080
67ba4e42
JM
30812011-09-20 Joseph Myers <joseph@codesourcery.com>
3082
3083 * mi/mi-main.c (mi_load_progress): Restore saved_uiout value to
3084 current_uiout, not uiout.
3085
562f943b
DE
30862011-09-19 Doug Evans <dje@google.com>
3087
3088 * python/py-auto-load.c (source_section_scripts): Fix file
3089 descriptor leak.
3090 * python/python.c (source_python_script_for_objfile): Tweak comments.
3091
34518530
YQ
30922011-09-18 Yao Qi <yao@codesourcery.com>
3093 Ulrich Weigand <ulrich.weigand@linaro.org>
3094
3095 Support displaced stepping for Thumb 16-bit insns.
3096 * arm-tdep.c (THUMB_NOP) Define.
3097 (thumb_copy_unmodified_16bit): New.
3098 (thumb_copy_b, thumb_copy_bx_blx_reg): New.
3099 (thumb_copy_alu_reg): New.
3100 (arm_copy_svc): Move some common code to ...
3101 (install_svc): ... here. New.
3102 (thumb_copy_svc): New.
3103 (install_pc_relative): New.
3104 (thumb_copy_pc_relative_16bit): New.
3105 (thumb_decode_pc_relative_16bit): New.
3106 (thumb_copy_16bit_ldr_literal): New.
3107 (thumb_copy_cbnz_cbz): New.
3108 (cleanup_pop_pc_16bit_all): New.
3109 (thumb_copy_pop_pc_16bit): New.
3110 (thumb_process_displaced_16bit_insn): New.
3111 (thumb_process_displaced_32bit_insn): New.
3112 (thumb_process_displaced_insn): process thumb instruction.
3113
3114 Support displaced stepping for Thumb 32-bit insns.
3115 * arm-tdep.c (thumb_copy_unmodified_32bit): New.
3116 (thumb2_copy_preload): New.
3117 (thumb2_copy_copro_load_store): New.
3118 (thumb2_copy_b_bl_blx): New.
3119 (thumb2_copy_alu_imm): New.
3120 (thumb2_copy_load_reg_imm): New.
3121 (thumb2_copy_load_literal): New
3122 (thumb2_copy_block_xfer): New.
3123 (thumb_32bit_copy_undef): New.
3124 (thumb_32bit_copy_unpred): New.
3125 (thumb2_decode_ext_reg_ld_st): New.
3126 (thumb2_decode_svc_copro): New.
3127 (decode_thumb_32bit_store_single_data_item): New.
3128 (thumb_copy_pc_relative_32bit): New.
3129 (thumb_decode_pc_relative_32bit): New.
3130 (decode_thumb_32bit_ld_mem_hints): New.
3131 (thumb2_copy_table_branch): New
3132 (thumb_process_displaced_32bit_insn): Process Thumb 32-bit
3133 instructions.
3134
2b16b2e3
YQ
31352011-09-18 Yao Qi <yao@codesourcery.com>
3136
3137 * arm-tdep.c (install_copro_load_store): PC is set 4-byte aligned.
3138 (install_b_bl_blx): Likewise.
3139
0f6f04ba
YQ
31402011-09-17 Yao Qi <yao@codesourcery.com>
3141
3142 * arm-tdep.c (install_ldr_str_ldrb_strb): Renamed to ...
3143 (install_load_store): ... this. New.
3144 Change parameter BYTE to SIZE.
3145 (arm_copy_ldr_str_ldrb_strb): Update caller.
3146 (arm_decode_ld_st_word_ubyte): Update caller.
3147
e2d96639
YQ
31482011-09-17 Yao Qi <yao@codesourcery.com>
3149
3150 * infrun.c (displaced_step_fixup): Move some code ...
3151 (displaced_step_restore): ... here. New function.
3152 (handle_inferior_event): Cleanup displaced stepping state for both
3153 child and parent when get forked or vforked event.
3154 * regcache.c (get_thread_arch_aspace_regcache): New function.
3155 get_thread_arch_regcache (): Call it.
3156
a8123151
JB
31572011-09-16 Joel Brobecker <brobecker@adacore.com>
3158
3159 * ada-tasks.c (print_ada_task_info): New function, merging
3160 short_task_info and info_tasks together. Reimplement using
3161 ui-out instead of printing to stdout directly. Move the code
3162 building and checking the task list here, instead of leaving it
3163 in info_tasks_command.
3164 (info_task): Move the code building and checking the task
3165 list here, instead of leaving it in info_tasks_command.
3166 (info_tasks_command): Delete code building and checking
3167 the task list - moved elsewhere. Update calls to info_tasks
3168 and info_task.
3169
fbf06824
JB
31702011-09-16 Joel Brobecker <brobecker@adacore.com>
3171
3172 * ada-tasks.c (info_task): Delete parameter `from_tty'.
3173
34a0bc90
JB
31742011-09-16 Joel Brobecker <brobecker@adacore.com>
3175
3176 * ada-tasks.c (info_tasks): Delete parameter `from_tty'.
3177
79779fa9
JB
31782011-09-16 Joel Brobecker <brobecker@adacore.com>
3179
3180 * ada-lang.h (ada_build_task_list): Remove parameter
3181 `warn_if_null'.
3182 * ada-tasks.c (ada_build_task_list): Remove parameter
3183 `warn_if_null'. Adjust implementation and documentation.
3184 (valid_task_id, ada_get_environment_task)
3185 iterate_over_live_ada_tasks): Adjust call to ada_build_task_list.
3186 (info_tasks_command): Adjust implementation.
3187 (task_command): Likewise.
3188 * ravenscar-thread.c (ravenscar_find_new_threads): Fix call
3189 to ada_build_task_list.
3190
e225eb91
JB
31912011-09-16 Joel Brobecker <brobecker@adacore.com>
3192
3193 * ada-tasks.c (ada_tasks_check_symbol_table, task_list): Delete.
3194 (enum ada_known_tasks_kind, struct ada_tasks_inferior_data): New.
3195 (ada_tasks_inferior_data_handle): New static global.
3196 (get_ada_tasks_inferior_data): New function.
3197 (ada_get_task_number, get_task_number_from_id, valid_task_id)
3198 (ada_get_environment_task, iterate_over_live_ada_tasks)
3199 (add_ada_task, read_known_tasks_array, read_known_tasks_list):
3200 Adjust.
3201 (ada_set_current_inferior_known_tasks_addr): New function.
3202 (read_known_tasks, ada_build_task_list, short_task_info)
3203 (info_tasks, info_task, info_tasks_command, task_command_1)
3204 (task_command, ada_task_list_changed): Adjust.
3205 (ada_tasks_invalidate_inferior_data): New function.
3206 (ada_normal_stop_observer, ada_new_objfile_observer): Adjust.
3207 (_initialize_tasks): Set ada_tasks_inferior_data_handle.
3208 * ada-lang.h (struct inferior): Add declaration.
3209 (ada_task_list_changed): Update profile.
3210 * remote-wtx-pd.c: #include "inferior.h".
3211 (switch_to_pd_internal): Update call to ada_task_list_changed.
3212
6da9ca05
JB
32132011-09-16 Joel Brobecker <brobecker@adacore.com>
3214
3215 * ada-tasks.c: #include "progspace.h" and "objfiles.h".
3216 (atcb_type, atcb_common_type, atcb_ll_type, atcb_call_type)
3217 (atcb_fieldno): Delete these static globals.
3218 (struct ada_tasks_pspace_data): New struct.
3219 (ada_tasks_pspace_data_handle): New static global.
3220 (get_ada_tasks_pspace_data): New function.
3221 (ada_tasks_invalidate_pspace_data): New function.
3222 (get_tcb_types_info, ptid_from_atcb_common, read_atcb)
3223 (read_known_tasks_list, ada_new_objfile_observer): Adjust.
3224 (_initialize_tasks): Create this module's per-progspace
3225 data handle.
3226
dccd3cbd
JB
32272011-09-16 Joel Brobecker <brobecker@adacore.com>
3228
3229 * ada-tasks.c (struct atcb_fieldnos): Renames struct tcb_fieldnos.
3230
f877b031
TG
32312011-09-16 Tristan Gingold <gingold@adacore.com>
3232
3233 * fork-child.c (fork_inferior): Update comment. Use alloca
3234 instead of xmalloc for argv. Move len and shell_command
3235 declarations in the block where they are used.
3236 Only call execvp. Factorize failure code.
3237
ae0c443d
JK
32382011-09-16 Abhijit Halder <abhijit.k.halder@gmail.com>
3239
3240 Code cleanup.
3241 * parse.c (write_exp_elt): Change argument to pass a pointer of union
3242 `exp_element' instead of an element of the same and make the function
3243 static.
3244 (write_exp_elt_opcode, write_exp_elt_sym, write_exp_elt_block)
3245 (write_exp_elt_objfile, write_exp_elt_longcst, write_exp_elt_dblcst)
3246 (write_exp_elt_decfloatcst, write_exp_elt_type, write_exp_elt_intern):
3247 Change argument of `write_exp_elt' function call.
3248 Remove extra spaces from comments.
3249 * parser-defs.h (write_exp_elt): Remove prototype.
3250
5af65ec0
PK
32512011-09-15 Paul Koning <paul_koning@dell.com>
3252
3253 * python/py-cmd.c (gdbpy_string_to_argv): Decrement reference
3254 count of item appended to list.
3255 * python/py-type.c (typy_fields): Likewise.
3256
72be8ccc
PK
32572011-09-15 Paul Koning <paul_koning@dell.com>
3258
883640a8 3259 * MAINTAINERS (Write After Approval): Add myself to the list.
72be8ccc 3260
92f6badc
KP
32612011-09-15 Kevin Pouget <kevin.pouget@st.com>
3262
3263 PR threads/12628
3264 * linux-fork.c (checkpoint_command): Disallow checkpointing of
3265 processes with multiple threads.
3266 (inf_has_multiple_thread_cb): New function.
3267 (inf_has_multiple_threads): New function.
3268
0672bf41 32692011-09-15 Kevin Pouget <kevin.pouget@st.com>
2aa48337
KP
3270
3271 PR Python/12692 Add gdb.selected_inferior() to Python interface.
3272 * python/py-inferior.c (GdbMethods): New Python method definition.
3273
6839b47f
KP
32742011-09-15 Kevin Pouget <kevin.pouget@st.com>
3275
3276 Handle multiple breakpoint hits in Python interface:
3277 * python/py-bpevent.c (create_breakpoint_event_object): Rename C/Python
3278 variable to breakpoints.
3279 * python/py-stopevent.c (emit_stop_event): Return a Python tuple of
3280 bps instead of single breakpoint. Fix some space typos.
3281 * python/py-stopevent.c (create_breakpoint_event_object): Rename
3282 variable to breakpoints.
3283
672f9b60
KP
32842011-09-15 Kevin Pouget <kevin.pouget@st.com>
3285
3286 * breakpoint.c (describe_other_breakpoints): Do not write 'duplicate'
3287 note if the breakpoint is internal.
3288
43675ae4
KP
32892011-09-15 Kevin Pouget <kevin.pouget@st.com>
3290
0672bf41 3291 * MAINTAINERS (Write After Approval): Add myself to the list
43675ae4 3292
15148d6a
PA
32932011-09-14 Pedro Alves <pedro@codesourcery.com>
3294
3295 * infrun.c (prepare_for_detach, wait_for_inferior)
3296 (fetch_inferior_event): Don't flush the register cache.
3297 * remote.c (struct stop_reply) <regcache>: Add comment.
3298
d83e736b
JK
32992011-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3300
3301 Remove excessive DWARF expressions memory duplication.
3302 * dwarf2loc.c (per_cu_dwarf_call): Remove variable back_to and its use
3303 for block.data.
3304 (indirect_pieced_value): Remove variable result. Remove variable
3305 back_to and its use for baton.data.
3306 (dwarf2_compile_expr_to_ax): Remove variable back_to and its use for
3307 block.data.
3308 * dwarf2read.c (dwarf2_fetch_die_location_block): Remove xmemdup.
3309 Update the function comment.
3310
c65b3e0d
PA
33112011-09-13 Pedro Alves <pedro@codesourcery.com>
3312
3313 * inferior.h (ALL_INFERIORS): New.
3314 * linux-thread-db.c (thread_db_find_new_threads_2): Remove check
3315 for a stopped thread.
3316 (thread_db_find_new_threads): Look for threads in all inferiors.
3317
a1398e0c
PA
33182011-09-13 Pedro Alves <pedro@codesourcery.com>
3319
3320 * breakpoint.c (update_watchpoint): Handle the case of the
3321 watchpoint to update not being in the breakpoint list yet.
3322 (hw_watchpoint_use_count): New, factored out from
3323 hw_watchpoint_used_count.
3324 (hw_watchpoint_used_count): Rename to ...
3325 (hw_watchpoint_used_count_others): ... this. Add `except'
3326 parameter. Don't count resources of `except'. Use
3327 hw_watchpoint_use_count.
3328
30596231
PA
33292011-09-13 Pedro Alves <pedro@codesourcery.com>
3330
3331 * gdbthread.h (enum thread_state): Moved here.
3332 (struct thread_info): Rename `executing_' field to `executing' and
3333 `state_' to `state'.
3334 * thread.c (enum thread_state): Moved to gdbthread.h.
3335 (new_thread, add_thread_silent, delete_thread_1)
3336 (any_live_thread_of_process, thread_alive, set_running)
3337 (set_running, is_thread_state, any_running, is_executing)
3338 (set_executing, finish_thread_state, print_thread_info)
3339 (do_captured_thread_select): Adjust.
3340
bede5f5f
JK
33412011-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3342
3343 Fix compatibility with gcc < 4.3 and non-gcc compilers.
3344 * amd64-tdep.c (amd64_skip_xmm_prologue): Convert 0b constants.
3345
4801a9a3
PA
33462011-09-12 Pedro Alves <pedro@codesourcery.com>
3347 Matt Rice <ratmice@gmail.com>
3348
3349 PR gdb/13175
3350
3351 * interps.c (struct interp) <interpreter_out>: Delete field.
3352 (interp_new): Remove the data and uiout parameters and adjust.
3353 (interp_set): Only set the current_uiout from the interpreter's
3354 uiout after initializing the interpreter. Adjust call to
3355 init_proc.
3356 (interp_ui_out): Adjust to call procs->ui_out_proc.
3357 (interp_data, interp_name): New.
3358 * interps.h (interp_init_ftype): Add `self' parameter.
3359 (interp_ui_out_ftype): New typedef.
3360 (struct interp_procs) <ui_out_proc>: New method pointer.
3361 (interp_new): Remove the data and uiout parameters.
3362 (interp_data, interp_name): Declare.
3363 * tui/tui-interp.c (tui_init): Adjust prototype.
3364 (tui_ui_out): New.
3365 (_initialize_tui_interp): Install tui_ui_out. Don't instanciate
3366 tui_out here. Adjust call to interp_new.
3367 * tui/tui-io.c (tui_initialize_io): Don't set current_uiout here.
3368 * cli/cli-interp.c (cli_interpreter_init): Adjust prototype.
3369 (cli_ui_out): New.
3370 (_initialize_cli_interp): Install it. Adjust call to interp_new.
3371 * mi/mi-common.h (struct mi_interp) <uiout>: New field.
3372 * mi/mi-interp.c (mi_interpreter_init): Adjust prototype.
3373 Initialize mi->uiout depending on the mi_version as extracted from
3374 the interpreter's name.
3375 (mi_ui_out): New.
3376 (_initialize_mi_interp): Install mi_ui_out. Adjust calls to
3377 interp_new. Don't allocate the ui_out's of the interpreters here.
3378
d0afda03 33792011-09-12 Aleksandar Ristovski <aristovski@qnx.com>
59145f8c 3380
d0afda03 3381 * solib.c (solib_used): New function.
59145f8c
AR
3382 (update_solib_list, reload_shared_libraries_1): Check if objfile is used
3383 by another so_list object before freeing it.
3384
bdaf8d4a
JK
33852011-09-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3386
3387 Code cleanup.
3388 * mi/mi-cmd-stack.c (list_args_or_locals): Use enum for the parameter
3389 values.
3390
df15bd07
JK
33912011-09-09 Jan Kratochvil <jan.kratochvil@redhat.com>
3392
3393 Code cleanup.
3394 * amd64-tdep.c (amd64_skip_prologue): Move the XMM code to ...
3395 (amd64_skip_xmm_prologue): ... this new function. Describe its
3396 parameters. No longer use amd64_prologue_line_bug.
3397 * defs.h (producer_is_gcc_ge_4): New declaration.
3398 * dwarf2read.c (producer_is_gcc_ge_4): Move to utils.c.
3399 (process_full_comp_unit): Update its caller. Remove
3400 amd64_prologue_line_bug initialization.
3401 * symtab.h (struct symtab): Remove field amd64_prologue_line_bug.
3402 * utils.c (producer_is_gcc_ge_4): Moved here from dwarf2read.c.
3403
25289eb2
PA
34042011-09-09 Pedro Alves <pedro@codesourcery.com>
3405
3406 * linux-nat.h (enum resume_kind): New.
3407 (struct lwp_info) <last_resume_kind>: New field.
ddf17726
PA
3408 * linux-nat.c (linux_child_follow_fork): Set last_resume_kind to
3409 resume_stop on the new lwp.
25289eb2
PA
3410 (add_lwp): Set last_resume_kind as resume_continue by default.
3411 (lin_lwp_attach_lwp): Set last_resume_kind as resume_stop.
3412 (resume_lwp): New, factored out from resume_callback. Also check
3413 for pending status in lp->waitstatus.
3414 (resume_callback): Reimplement.
3415 (resume_clear_callback): Set last_resume_kind as resume_stop.
3416 (resume_set_callback): Set last_resume_kind as resume_continue.
3417 (linux_nat_resume, linux_handle_extended_wait): Set
3418 last_resume_kind.
3419 (running_callback): Also check lp->waitstatus for pending events.
3420 (select_singlestep_lwp_callback): Check that lp->last_resume_kind
3421 is resume_step.
3422 (stop_and_resume_callback): Don't re-resume if the core wanted the
3423 lwp stopped. Use resume_lwp instead of resume_callback. Avoid
3424 using an invalidated pointer.
3425 (linux_nat_filter_event): Don't discard SIGSTOPs as delayed
3426 SIGSTOPs if the core wanted the LWP to stop.
3427 (linux_nat_wait_1) Don't consume a pending SIGSTOP if the core
3428 wanted the lwp to stop. If the core wanted the lwp to stop, and
3429 the lwp stopped with a SIGSTOP, report a TARGET_SIGNAL_0 instead
3430 of TARGET_SIGNAL_STOP.
3431 (linux_nat_stop_lwp): Don't synchronously wait for the lwp to stop
3432 here. Instead, signal the lwp, and set the last_resume_kind to
3433 resume_stop.
3434
f687d035
PA
34352011-09-09 Pedro Alves <pedro@codesourcery.com>
3436
3437 * linux-nat.c (lin_lwp_attach_lwp): Return 1 (ignore) instead of
3438 -1 (error), if the lwp exits right after attaching.
3439
bc587a6b
DE
34402011-09-08 Doug Evans <dje@google.com>
3441
63d97a20
DE
3442 * py-cmd.c: Some minor formatting fixes.
3443 (gdbpy_parse_command_name): Rename text arg to name, make const.
3444 All callers updated.
3445 * python-internal.h (gdbpy_parse_command_name): Update.
3446
bc587a6b
DE
3447 * cli/cli-decode.c (add_cmd): Add comment.
3448
08711b9a
JK
34492011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3450
3451 PR breakpoints/12435
3452 * amd64-tdep.c (amd64_skip_prologue): New variables start_pc_sal,
3453 next_sal, buf, offset and xmmreg. Advance PC if it sees the PR.
3454 * dwarf2read.c (process_full_comp_unit): Initialize
3455 amd64_prologue_line_bug.
3456 * symtab.h (struct symtab): New field amd64_prologue_line_bug.
3457
b2e7f004
JK
34582011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3459
3460 Fix TUI screen corruption.
3461 * utils.c (fputs_maybe_filtered): Replace !input_from_terminal_p by
3462 batch_flag.
3463
8afd712c
JK
34642011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3465
3466 * findvar.c (read_var_value): Never return NULL, throw an error
3467 instead. Update the function comment. State symbol name in the error
3468 messages.
3469 * python/py-frame.c (frapy_read_var): Remove handling of NULL from
3470 read_var_value.
3471 * stack.c (print_frame_args): Likewise.
3472 * valops.c (value_of_variable): Likewise.
3473
b99b5f66
JK
34742011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3475
3476 * stack.c (print_frame_args): New variable except. Wrap
3477 read_var_value and common_val_print into TRY_CATCH.
3478
85bc8cb7
JK
34792011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3480
3481 * eval.c (evaluate_subexp_standard) <OP_THIS>: Update the value_of_this
3482 caller to value_of_this.
3483 * p-exp.y: Update the value_of_this caller to value_of_this_silent.
3484 Twice.
3485 * valops.c (value_of_this): Remove parameter complain and variable ret.
3486 Update function comment. Never return NULL by this code.
3487 (value_of_this_silent): New function.
3488 * value.h (value_of_this): Remove parameter complain.
3489 (value_of_this_silent): New declaration.
3490
ede1849f
YQ
34912011-09-07 Yao Qi <yao@codesourcery.com>
3492
3493 * gdbthread.h (struct thread_info): Remove fields
3494 `stepping_through_solib_after_catch' and
3495 `stepping_through_solib_catchpoints'.
3496 * infrun.c (init_thread_stepping_state): Update.
3497 (process_event_stop_test, currently_stepping): Update.
3498 (currently_stepping_or_nexting_callback): Update.
3499
6aa27652
YQ
35002011-09-07 Yao Qi <yao@codesourcery.com>
3501
3502 * gdbthread.h (struct thread_info): Comment on field
3503 `step_after_step_resume_breakpoint'.
3504
00db5b94
PA
35052011-09-07 Abhijit Halder <abhijit.k.halder@gmail.com>
3506
3507 * remote.c (remote_console_output): Reindent.
3508
861152be
LM
35092011-09-06 Luis Machado <lgustavo@codesourcery.com>
3510
3511 * frame.c (has_stack_frames): Check for currently selected
3512 traceframe.
3513
ab821bc6
PA
35142011-09-06 Pedro Alves <pedro@codesourcery.com>
3515
3516 * event-top.h (MAXPROMPTS, struct prompts): Delete.
3517 (set_async_annotation_level, set_async_prompt, pop_prompt)
3518 (push_prompt, new_async_prompt): Delete declarations.
3519 * top.h (get_prompt, set_prompt): Change prototype.
3520 (get_prefix, set_prefix, get_suffix, set_suffix): Delete
3521 declarations.
3522 * top.c (command_loop):
3523 (top_prompt): New global.
3524 (get_prefix, set_prefix, get_suffix, ): Delete.
3525 (get_prompt, set_prompt): Rewrite.
3526 (show_new_async_prompt): Rename to ...
3527 (show_prompt): ... this.
3528 (init_main): Adjust. Don't handle --annotate=2 here.
3529 * event-top.c (new_async_prompt): Delete.
3530 (the_prompts): Delete.
3531 (more_to_come): Make static.
3532 (display_gdb_prompt): Use top_level_prompt() to compute the top
3533 level prompt, and don't notify the before_prompt observers
3534 directly here. Always trick readline into not trying to display
3535 the prompt if sync_execution and displaying the primary prompt.
3536 If displaying a local/secondary prompt, always show it, even if
3537 sync_execution is set.
3538 (change_annotation_level): Delete.
3539 (top_level_prompt): New, based on change_annotation_level.
3540 (push_prompt, pop_prompt): Delete.
3541 (async_disable_stdin): No longer pushes prompt.
3542 (command_line_handler): No longer pushes or pops prompt. If more
3543 input is expected, call display_gdb_prompt with an explicit empty
3544 prompt.
3545 (async_stop_sig): Adjust.
3546 (set_async_annotation_level, set_async_prompt): Delete.
3547 * python/python.c (before_prompt_hook): Adjust.
3548
f1d90504
PA
35492011-09-05 Pedro Alves <pedro@codesourcery.com>
3550
3551 PR cli/13110
3552
3553 * infrun.c (fetch_inferior_event): Check if there's a selected
3554 thread before checking if the selected thread is executing.
3555
0f641c01
PA
35562011-09-05 Pedro Alves <pedro@codesourcery.com>
3557
3558 * inf-loop.c (execute_command): Don't check if the current thread
3559 if running before synchronously waiting for command completion.
3560 * infrun.c (fetch_inferior_event): Handle "set exec-done-display"
3561 here.
3562 (normal_stop): Call async_enable_stdin here.
3563 * inf-loop.c (inferior_event_handler): Don't call
3564 async_enable_stdin, nor handle "set exec-done-display" here.
3565
30368258 35662011-09-04 Joel Brobecker <brobecker@adacore.com>
3567
3568 GDB 7.3.1 released.
3569
31916278
JB
35702011-09-04 Joel Brobecker <brobecker@adacore.com>
3571
3572 * NEWS: Change `7.3' into `7.3.1' in `Changes since GDB 7.3'.
3573
e8d56f18
JB
35742011-09-04 Joel Brobecker <brobecker@adacore.com>
3575
3576 * NEWS: Add entry for OpenBSD/NetBSD build failure.
3577
5dd05d8c
JK
35782011-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3579
3580 * config/s390/s390.mh (NATDEPFILES): Add linux-procfs.o dependency.
3581
7d8e6458 35822011-09-02 Matt Rice <ratmice@gmail.com>
3583
3584 PR gdb/10720
3585 * event-top.c (cli_command_loop): Replace readline setup with
3586 direct call to display_gdb_prompt.
3587 (display_gdb_prompt): Do not call observer mechanism during
3588 synchronous execution.
3589
84636d28
PA
35902011-09-02 Pedro Alves <pedro@codesourcery.com>
3591
3592 * linux-nat.c (in_pid_list_p): New.
3593 (linux_record_stopped_pid): Delete.
3594 (lin_lwp_attach_lwp): Check if PTRACE_ATTACH failed because we're
3595 already attached to the LWP. Return an indication if so.
3596 (linux_nat_filter_event): Adjust.
3597 * linux-thread-db.c (attach_thread): Handle lin_lwp_attach_lwp
3598 returning an indication to ignore this thread.
3599
b4a14fd0
PA
36002011-09-02 Pedro Alves <pedro@codesourcery.com>
3601
3602 * top.c: Include interps.h.
3603 (execute_command): If the target can async, but the interpreter is
3604 in sync mode, synchronously wait for the command to finish before
3605 returning.
3606 (execute_command_to_string): Force the interpreter to sync mode.
3607 * infrun.c: Include interps.h.
3608 (fetch_inferior_event): Don't restore the prompt yet if the
3609 interpreter is in sync mode.
3610 * interps.c (interpreter_async): New global.
3611 * interps.h (interpreter_async): Declare.
3612 * inf-loop.c: Include interps.h.
3613 (inferior_event_handler): Don't print the language change or run
3614 breakpoint commands yet if the interpreter in is sync mode.
3615 * main.c (captured_command_loop): Flip the interpreter to async
3616 mode.
3617 * cli/cli-script.c: Include interps.h.
3618 (execute_user_command, while_command, if_command): Force the
3619 interpreter to sync mode.
3620 * python/python.c: Include interps.h.
3621 (python_command, execute_gdb_command): Force the interpreter to
3622 sync mode.
3623
c709acd1
PA
36242011-09-02 Pedro Alves <pedro@codesourcery.com>
3625
3626 * value.c (show_convenience): Catch errors thrown while printing
3627 each internal variable.
3628 * infrun.c (validate_siginfo_access): New function.
3629 (siginfo_value_read, siginfo_value_write): Call it.
3630
9655e943
JK
36312011-09-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3632
3633 Revert:
3634 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
3635 * dwarf2read.c (new_symbol): Handle DW_AT_variable_parameter
3636 attribute.
3637
cb457ae2
YQ
36382011-08-29 Yao Qi <yao@codesourcery.com>
3639
3640 * solib-dsbt.c (bfd_lookup_symbol): Removed.
3641 (cmp_name): New.
3642 (enable_break2): Update caller.
3643 * solib-frv.c (bfd_lookup_symbol): Removed.
3644 (cmp_name): New.
3645 (enable_break2): Update caller.
3646 * solib-pa64.c (bfd_lookup_symbol): Removed.
3647 (cmp_name): New.
3648 * solib-svr4.c (bfd_lookup_symbol): Removed.
3649 (cmp_name_and_sec_flags): New.
3650 (enable_break): Update caller.
3651 * solib.c (gdb_bfd_lookup_symbol_from_symtab): New.
3652 (gdb_bfd_lookup_symbol_from_dyn_symtab): New.
3653 (gdb_bfd_lookup_symbol): New.
3654 * solib.h: Functions declarations.
3655
83d1a36a
YQ
36562011-08-29 Yao Qi <yao@codesourcery.com>
3657
3658 * Makefile.in (ALL_TARGET_OBS): Add tic6x-tdep.o tic6x-linux-tdep.o
3659 and solib-dsbt.o.
3660
c04b3e8f
JK
36612011-08-29 Jan Kratochvil <jan.kratochvil@redhat.com>
3662
3663 Fix TUI stepi on code without symbols.
3664 * tui/tui-stack.c (tui_show_frame_info): Remove error, set LOW for
3665 current PC instead.
3666
cb0fd152
JK
36672011-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3668
3669 Code cleanup.
3670 * mi/mi-cmd-stack.c (list_args_or_locals): Remove stb initialization
3671 and the static keyword.
3672 * mi/mi-cmd-target.c (mi_cmd_target_file_get, mi_cmd_target_file_put):
3673 Make prefix an array.
3674 * mi/mi-cmd-target.c (mi_cmd_target_file_delete): Likewise.
3675 * mi/mi-main.c (get_register): Remove stb initialization and the static
3676 keyword.
3677
91174723
JK
36782011-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3679
3680 Code cleanup - make mi_opt const.
3681 * mi/mi-cmd-break.c (mi_cmd_break_insert, mi_cmd_break_watch): Make
3682 opts const.
3683 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
3684 * mi/mi-cmd-env.c (mi_cmd_env_path): Likewise.
3685 (mi_cmd_env_dir): Likewise.
3686 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Likewise.
3687 (mi_cmd_target_file_put): Likewise.
3688 * mi/mi-cmd-target.c (mi_cmd_target_file_delete): Likewise.
3689 * mi/mi-cmd-var.c (mi_cmd_var_evaluate_expression): Likewise.
3690 * mi/mi-getopt.c (mi_getopt): Make opts and opt const.
3691 (mi_valid_noargs): Make opts const.
3692 * mi/mi-getopt.h (mi_getopt): Make opts and opt const.
3693 * mi/mi-main.c (mi_cmd_list_thread_groups): Make opts const.
3694 (mi_cmd_data_read_memory): Likewise.
3695 (mi_cmd_data_read_memory_bytes): Likewise.
3696 (mi_cmd_data_write_memory): Likewise.
3697
5068b8e8 36982011-08-26 Matt Rice <ratmice@gmail.com>
3699
3700 * solib-sunos.c (allocate_rt_common_objfile): Add missing arguments to
3701 bcache_xmalloc, replace bcache_xmalloc with call to
3702 psymbol_bcache_init for psymbol_cache.
3703 * symfile.c (reread_symbols): Remove extra calls to bcache_xmalloc.
3704
a4f2ce05
JK
37052011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
3706
3707 * inf-loop.c (inferior_event_handler): Add exception_print in
3708 INF_EXEC_COMPLETE.
3709
353d1d73
JK
37102011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
3711
3712 * breakpoint.c (bpstat_do_actions): New variable cleanup_if_error, call
3713 make_bpstat_clear_actions_cleanup and discard_cleanups for it.
3714 * defs.h (make_bpstat_clear_actions_cleanup): New declaration.
3715 * exceptions.c (throw_exception): Remove the bpstat_clear_actions call.
3716 * inf-loop.c (inferior_event_handler): New variable cleanup_if_error,
3717 call make_bpstat_clear_actions_cleanup and discard_cleanups for it.
3718 Call bpstat_clear_actions for failed fetch_inferior_event_wrapper.
3719 * infrun.c (fetch_inferior_event): Call
3720 make_bpstat_clear_actions_cleanup.
3721 * top.c (execute_command): New variable cleanup_if_error, call
3722 make_bpstat_clear_actions_cleanup and discard_cleanups for it.
3723 * utils.c (do_bpstat_clear_actions_cleanup)
3724 (make_bpstat_clear_actions_cleanup): New functions.
3725
3ced3da4
PA
37262011-08-26 Pedro Alves <pedro@codesourcery.com>
3727
3728 * linux-nat.c (linux_child_follow_fork): Don't set lp->resumed on
3729 either the parent or the child forks. Rename a couple locals.
3730
a9f4bb21
PA
37312011-08-26 Pedro Alves <pedro@codesourcery.com>
3732
3733 * linux-nat.c (wait_lwp): Avoid assuming errno is preserved by a
3734 library call. Avoid reading the `status' local if all waitpid
3735 calls failed.
3736
e5798bef
PA
37372011-08-26 Pedro Alves <pedro@codesourcery.com>
3738
3739 * common/linux-osdata.c (get_cores_used_by_process): Don't assume
3740 opening /proc/PID/task always succeeds.
3741
edb2aadf
AR
37422011-08-26 Aleksandar Ristovski <aristovski@qnx.com>
3743
3744 * linespec.c (symtab_from_filename): Check for the end of string.
3745
0d932b2f
MK
37462011-08-26 Marc Khouzam <marc.khouzam@ericsson.com>
3747
3748 PR mi/11912
3749 * varobj.c (cplus_describe_child): Add the keyword
3750 'class' to the output of the method when dealing
3751 with a cast to a base class.
3752
e93ca019
JK
37532011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
3754
3755 No functionality change.
3756 * breakpoint.c (bpstat_clear_actions): Remove the BS parameter, make
3757 function comment a reference, new variables tp and bs, move here code
3758 from throw_exception.
3759 * breakpoint.h (bpstat_clear_actions): Remove the BS parameter,
3760 describe it in the comment.
3761 * exceptions.c (throw_exception): Remove variable tp, move the code for
3762 bpstat_clear_actions to bpstat_clear_actions.
3763
13da1c97
LM
37642011-08-24 Luis Machado <lgustavo@codesourcery.com>
3765
3766 * linux-nat.h (linux_proc_get_tgid): Remove declaration.
3767 * linux-nat.c: Include linux-procfs.h.
3768 (linux_proc_get_tgid): Move to ...
3769 * common/linux-procfs.c: ... here. New file.
3770 * common/linux-procfs.h: New file.
3771 * linux-thread-db.c: Include linux-procfs.h.
3772 * Makefile.in: Update dependencies.
3773 * config/alpha/alpha-linux.mh: Add linux-procfs.o dependency.
3774 * config/arm/linux.mh: Likewise.
3775 * config/i386/linux.mh: Likewise.
3776 * config/i386/linux64.mh: Likewise.
3777 * config/ia64/linux.mh: Likewise.
3778 * config/m32r/linux.mh: Likewise.
3779 * config/m68k/linux.mh: Likewise.
3780 * config/mips/linux.mh: Likewise.
3781 * config/pa/linux.mh: Likewise.
3782 * config/pa/linux.mh: Likewise.
3783 * config/powerpc/linux.mh: Likewise.
3784 * config/powerpc/ppc64-linux.mh: Likewise.
3785 * config/powerpc/spu-linux.mh: Likewise.
3786 * config/sparc/linux.mh: Likewise.
3787 * config/sparc/linux64.mh: Likewise.
3788 * config/xtensa/linux.mh: Likewise.
3789
4e5c165d
HZ
37902011-08-24 Hui Zhu <teawater@gmail.com>
3791
3792 * tracepoint.c (cond_string_is_same): New function.
3793 (find_matching_tracepoint): Add condition check
3794 by cond_string_is_same.
3795
6e2f5b22
JK
37962011-08-23 Josh Matthews <josh@joshmatthews.net>
3797
3798 Fix build error in Darwin port.
3799 * darwin-nat-info.c (darwin_debug_regions_recurse): New variable uiout.
3800
abf85f46
JK
38012011-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3802
3803 Code cleanup.
3804 * breakpoint.c (bpstat_clear_actions): Remove clearing of commands_left.
3805 (command_line_is_silent): New function.
3806 (bpstat_do_actions_1): No longer use commands_left, use
3807 command_line_is_silent for commands.
3808 (bpstat_alloc): Remove clearing of commands_left.
3809 (bpstat_stop_status): Remove initialization of commands_left, use
3810 command_line_is_silent.
3811 * breakpoint.h (struct bpstats): Remove commands_left.
3812
3a93a0c2
KS
38132011-08-18 Keith Seitz <keiths@redhat.com>
3814
3815 PR c++/12266
3816 * cp-name-parser.y (struct demangle_info): Remove unused
3817 member PREV.
3818 (d_grab): Likewise.
3819 (allocate_info): Change return type to struct demangle_info *.
3820 Always allocate a new demangle_info.
3821 Remove unused PREV pointer.
3822 (cp_new_demangle_parse_info): New function.
3823 (cp_demangled_name_parse_free): New function.
3824 (do_demangled_name_parse_free_cleanup): New function.
3825 (make_cleanup_cp_demangled_name_parse_free): New function.
3826 (cp_demangled_name_to_comp): Change return type to
3827 struct demangle_parse_info *.
3828 Allocate a new storage for each call.
3829 (main): Update usage for cp_demangled_name_to_comp
3830 API change.
3831 * cp-support.h (struct demangle_parse_info): New structure.
3832 (cp_demangled_name_to_comp): Update API change for
3833 return type.
3834 (cp_new_demangle_parse_info): Declare.
3835 (make_cleanup_cp_demangled_name_parse_free): New declaration.
3836 (cp_demangled_name_parse_free): Declare.
3837 * cp-support.c (cp_canonicalize_string): Update API
3838 change for cp_demangled_name_to_comp.
3839 (mangled_name_to_comp): Likewise.
3840 Return struct demangle_parse_info, too.
3841 (cp_class_name_from_physname): Update mangled_name_to_comp
3842 API change.
3843 (method_name_from_physname): Likewise.
3844 (cp_func_name): Update API change for cp_demangled_name_to_comp.
3845 (cp_remove_params): Likewise.
3846 * python/py-type.c (typy_legacy_template_argument): Likewise.
3847
3848 * cp-support.h (cp_canonicalize_string_no_typedefs): Declare.
3849 (cp_merge_demangle_parse_infos): Declare.
3850 * cp-support.c (ignore_typedefs): New file global.
3851 (copy_string_to_obstack): New function.
3852 (inspect_type): New function.
3853 (replace_typedefs): New function.
3854 (replace_typedefs_qualified_name): New function.
3855 (cp_canonicalize_string_no_typedefs): New function.
3856 * cp-name-parser.y (cp_merge_demangle_parse_infos): New function.
3857 (cp_new_demangle__parse_info): Allocate and initialize the obstack.
3858 * linespec.c (find_methods): Use cp_canonicalize_string_no_typedefs
3859 instead of cp_canonicalize_string.
3860 (find_method): Likewise.
3861 (decode_compound): Before looking up the name, call
3862 cp_canonicalize_string_no_typedefs.
3863 (decode_variable): Likewise.
3864
fa3a4f15
PM
38652011-08-17 Phil Muldoon <pmuldoon@redhat.com>
3866 Tom Tromey <tromey@redhat.com>
3867 Matt Rice <ratmice@gmail.com>
3868
3869 * python/lib/gdb/prompt.py: New file.
3870 * python/lib/gdb/command/prompt.py: New file.
3871 * NEWS: Document set extended-prompt and gdb.prompt library
3872
85661b1e
YQ
38732011-08-16 Yao Qi <yao@codesourcery.com>
3874
3875 * tic6x-linux-tdep.c: Move const arrays definition from here...
3876 * tic6x-tdep.c: to here ...
3877
11315641
YQ
38782011-08-14 Yao Qi <yao@codesourcery.com>
3879
3880 * NEWS: New port to Texas Instruments TMS320C6x.
3881
8cd64e00
YQ
38822011-08-14 Andrew Jenner <andrew@codesourcery.com>
3883 Bernd Schmidt <bernds@codesourcery.com>
3884 Yao Qi <yao@codesourcery.com>
3885
3886 * configure.tgt: Handle tic6x-*-*linux and tic6x-*-*.
3887 * solib-dsbt.c: New file. Support DSBT shared object.
3888 * tic6x-linux-tdep.c: New file.
3889 * tic6x-tdep.c: New file.
3890 * tic6x-tdep.h: New file.
3891
78d85199
YQ
38922011-08-14 Andrew Stubbs <ams@codesourcery.com>
3893 Yao Qi <yao@codesourcery.com>
3894
3895 * remote.c (PACKET_qXfer_fdpic): New enum value.
3896 (remote_protocol_features): Add qXfer:fdpic:read packet.
3897 (remote_xfer_partial): Support TARGET_OBJECT_FDPIC.
3898 (_initialize_remote): Add set/show remote read-fdpic-loadmap command.
3899 * target.h (enum target_object): Add TARGET_OBJECT_FDPIC.
3900
224bbe49
YQ
39012011-08-14 Yao Qi <yao@codesourcery.com>
3902
3903 Target description for tic6x.
3904 * features/Makefile (WHICH): Add tic6x-c64xp tic6x-c64x tic6x-c62x
3905 tic6x-c64xp-linux tic6x-c64x-linux and tic6x-c62x-linux.
3906 * features/tic6x-c6xp.xml, features/tic6x-core.xml: New.
3907 * features/tic6x-gp.xml, features/tic6x-c62x.xml: New.
3908 * features/tic6x-c64x.xml, features/tic6x-c64xp.xml: New.
3909 * features/tic6x-c62x-linux.xml, features/tic6x-c64x-linux.xml: New.
3910 * features/tic6x-c64xp-linux.xml: New.
3911 * features/tic6x-c64xp.c, features/tic6x-c64x.c: Generated.
3912 * features/tic6x-c62x.c, features/tic6x-c64xp-linux.c: Generated.
3913 * features/tic6x-c64x-linux.c, features/tic6x-c62x-linux.c: Generated.
3914 * regformats/tic6x-c62x.dat, regformats/tic6x-c64x.dat: Generated.
f040079f
HZ
3915 * regformats/tic6x-c64xp.dat,
3916 regformats/tic6x-c62x-linux.dat: Generated.
3917 * regformats/tic6x-c64x-linux.dat,
3918 regformats/tic6x-c64xp-linux.dat: Generated.
224bbe49
YQ
3919 * config/djgpp/fnchange.lst: Add features/tic6x-*.xml and
3920 features/tic6x-*.c files.
3921 Add regformats/tic6x-*.dat files.
3922
457e09f0
DE
39232011-08-12 Doug Evans <dje@google.com>
3924
3925 * NEWS: Mention new "type" attribute of python gdb.Symbol objects.
3926 * python/py-symbol.c (sympy_get_type): New function.
3927 (symbol_object_getset): Add "type".
3928
d20c1c3f
PA
39292011-08-12 Pedro Alves <pedro@codesourcery.com>
3930
3931 PR tui/13073
3932
3933 * tui/tui-regs.c (tui_show_register_group): Skip registers with an
3934 empty name.
3935 (tui_show_register_group): Don't store a byte buffer in the data
3936 element's value.
3937 (tui_register_format): Skip registers with an empty name.
3938 (tui_get_register): Store a struct value in the data element's
3939 value field instead of a byte buffer holding the raw register
3940 contents. Account for optimized-out and unavailable registers
3941 when comparing register contents.
3942
9d8fa392
PA
39432011-08-09 Pedro Alves <pedro@codesourcery.com>
3944
3945 * printcmd.c (current_display_number): Update comment.
3946 (disable_current_display_cleanup): Delete.
3947 (do_one_display): Use make_cleanup_restore_integer. Gracefully
3948 catch errors thrown while evaluating and printing the display.
3949
401a70b8
TT
39502011-08-09 Tom Tromey <tromey@redhat.com>
3951
3952 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Fix typo.
3953
7f86f058
PA
39542011-08-09 Pedro Alves <pedro@codesourcery.com>
3955
94b71cca 3956 * elfread.c (elf_symtab_read): Rework comments.
7f86f058
PA
3957 * maint.c (maintenance_command): Ditto.
3958 * somread.c (som_symtab_read): Ditto.
3959 * solib.c (solib_find, solib_map_sections, update_solib_list)
3960 (solib_add, info_sharedlibrary_command, solib_name_from_address)
3961 (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
94b71cca 3962 (sharedlibrary_command, no_shared_libraries): Ditto.
7f86f058
PA
3963 * solib-irix.c (locate_base, disable_break, enable_break)
3964 (irix_solib_create_inferior_hook, irix_solib_create_inferior_hook)
3965 (irix_current_sos, irix_open_symbol_file_object)
3966 (irix_special_symbol_handling): Ditto.
3967 * solib-sunos.c (locate_base, first_link_map_member)
3968 (sunos_current_sos, disable_break, enable_break)
3969 (sunos_special_symbol_handling, sunos_solib_create_inferior_hook):
3970 Ditto.
3971 * solib-svr4.c (bfd_lookup_symbol, elf_locate_base, locate_base)
3972 (open_symbol_file_object, svr4_current_sos, enable_break)
3973 (svr4_special_symbol_handling, svr4_solib_create_inferior_hook):
3974 Ditto.
3975 * solib-frv.c (bfd_lookup_symbol, open_symbol_file_object)
3976 (frv_current_sos, enable_break, frv_special_symbol_handling)
3977 (frv_solib_create_inferior_hook): Ditto.
3978 * solist.h (struct target_so_ops): Extend the comments of the
3979 special_symbol_handling, current_sos and open_symbol_file_object
3980 methods.
3981
5e239b84
PM
39822011-08-09 Phil Muldoon <pmuldoon@redhat.com>
3983
3984 * python/lib/gdb/__init__.py: Auto-load files in command and
3985 function directories.
3986 * python/python.c (finish_python_initialization): Use
3987 os.path.join.
3988 * python/lib/gdb/command/pretty_printers.py: Self register
3989 command.
3990 * NEWS: Document auto-loading.
3991
b6cede78
JK
39922011-08-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3993
3994 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_STACK>
3995 (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_LITERAL>: New variable
3996 objfile_gdbarch. Fix BFD_ENDIAN_BIG case.
3997
29d0bb3d
TT
39982011-08-08 Tom Tromey <tromey@redhat.com>
3999
4000 * breakpoint.c (clean_up_filters): Remove.
4001 (catch_syscall_split_args): Use VEC_cleanup.
4002
2f7fb8e4
JK
40032011-08-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4004
4005 * cp-name-parser.y (xfree): Wrap the name free by CONCAT2.
4006 (main): Uncomment "Demangling error\n".
4007
d6c10e95
PP
40082011-08-05 Paul Pluzhnikov <ppluzhnikov@google.com>
4009
4010 * solib-target.c (segment_attributes): Make them static.
4011 (section_attributes, library_children, library_attributes): Likewise.
4012 (library_list_children, library_list_attributes): Likesise.
4013 (library_list_elements): Likewise.
4014
af6e93b2
PA
40152011-08-05 Pedro Alves <pedro@codesourcery.com>
4016
4017 * exceptions.c (throw_exception): Don't disable the current
4018 display.
4019 * printcmd.c (disable_current_display_cleanup): New function.
4020 (do_one_display): Install a cleanup to disable the current display
4021 if doing the display throws.
4022
6a1b1664
EZ
40232011-08-05 Eli Zaretskii <eliz@gnu.org>
4024
4025 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Move the
4026 initialization of the tp_new member to the corresponding
4027 gdbpy_initialize_* function.
4028 * python/py-cmd.c (gdbpy_initialize_commands): Likewise.
4029 * python/py-frame.c (gdbpy_initialize_frames): Likewise.
4030 * python/py-function.c (gdbpy_initialize_functions): Likewise.
4031 * python/py-inferior.c (gdbpy_initialize_inferior): Likewise.
4032 * python/py-param.c (gdbpy_initialize_parameters): Likewise.
4033
31a0ae49
JK
40342011-08-05 Jan Kratochvil <jan.kratochvil@redhat.com>
4035
4036 * spu-tdep.c (info_spu_event_command, info_spu_signal_command)
4037 (info_spu_mailbox_list, info_spu_mailbox_command, info_spu_dma_cmdlist)
4038 (info_spu_dma_command, info_spu_proxydma_command): Rename uiout
4039 references to current_uiout.
4040
e0dd0826
PA
40412011-08-04 Pedro Alves <pedro@codesourcery.com>
4042
4043 * event-loop.c (gdb_do_one_event): Remove `data' parameter.
4044 (start_event_loop): Use TRY_CATCH instead of catch_errors.
4045 * event-loop.h (gdb_do_one_event): Remove `data' parameter.
4046 * top.c (gdb_readline_wrapper): Adjust.
4047 * tui/tui-interp.c (tui_command_loop):
4048 (_initialize_tui_interp): Don't install it.
4049
79a45e25
PA
40502011-08-04 Pedro Alves <pedro@codesourcery.com>
4051
4052 * ui-out.h (uiout): Rename to ...
4053 (current_uiout): ... this.
4054 * ui-out.c (uiout): Rename to ...
4055 (current_uiout): ... this.
4056 * ada-lang.c (print_it_exception, print_one_exception)
4057 (print_mention_exception): Adjust.
4058 * breakpoint.c (watchpoint_check): Adjust.
4059 (print_breakpoint_location, print_one_breakpoint, breakpoint_1)
4060 (default_collect_info, watchpoints_info, print_one_catch_fork)
4061 (print_one_catch_vfork, print_one_catch_syscall)
4062 (print_one_catch_exec, mention, print_it_ranged_breakpoint)
4063 (print_one_ranged_breakpoint, print_mention_ranged_breakpoint)
4064 (print_it_watchpoint, print_mention_watchpoint)
4065 (print_it_masked_watchpoint, print_mention_masked_watchpoint)
4066 (print_it_exception_catchpoint, print_one_exception_catchpoint)
4067 (print_mention_exception_catchpoint, say_where, bkpt_print_it)
4068 (bkpt_print_mention, momentary_bkpt_print_it)
4069 (tracepoint_print_mention, update_static_tracepoint)
4070 (tracepoints_info, save_breakpoints): Adjust.
4071 * cli-out.c (field_separator): Adjust.
4072 * cp-abi.c (list_cp_abis, show_cp_abi_cmd): Adjust.
4073 * exceptions.c (catch_exceptions_with_msg, catch_errors): Adjust.
4074 * frame.c (get_current_frame): Adjust.
4075 * infcmd.c (run_command_1, print_return_value): Adjust.
4076 * inferior.c (inferior_command, info_inferiors_command): Adjust.
4077 * infrun.c (print_end_stepping_range_reason): Adjust.
4078 (print_signal_exited_reason, print_exited_reason): Adjust.
4079 (print_signal_received_reason, print_no_history_reason): Adjust.
4080 * interps.c (interp_set): Adjust.
4081 * osdata.c (info_osdata_command): Adjust.
4082 * progspace.c (maintenance_info_program_spaces_command): Adjust.
4083 * remote-fileio.c (remote_fileio_request): Adjust.
4084 * remote.c (show_remote_cmd): Adjust.
4085 * solib.c (info_sharedlibrary_command): Adjust.
4086 * source.c (print_source_lines_base): Adjust.
4087 * stack.c (print_stack_frame): Adjust.
4088 (do_gdb_disassembly, print_frame_info, print_frame): Adjust.
4089 * symfile-mem.c (add_vsyscall_page): Adjust.
4090 * symfile.c (load_progress, generic_load)
4091 (print_transfer_performance): Adjust.
4092 * thread.c (info_threads_command, restore_selected_frame)
4093 (thread_command): Adjust.
4094 * top.c (make_cleanup_restore_ui_file): Adjust.
4095 * tracepoint.c (tvariables_info_1, trace_status_mi, tfind_1)
4096 (print_one_static_tracepoint_marker): Adjust.
4097 * cli/cli-cmds.c (print_disassembly): Adjust.
4098 * cli/cli-decode.c (print_doc_line): Adjust.
4099 * cli/cli-interp.c (safe_execute_command): Adjust.
4100 * cli/cli-logging.c (set_logging_redirect, pop_output_files)
4101 (handle_redirections): Adjust.
4102 * cli/cli-script.c (show_user_1): Adjust.
4103 * cli/cli-setshow.c (do_setshow_command, cmd_show_list): Adjust.
4104 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
4105 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Adjust.
4106 * mi/mi-cmd-env.c (mi_cmd_env_pwd, mi_cmd_env_path)
4107 (mi_cmd_env_dir): Adjust.
4108 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
4109 (print_partial_file_name, mi_cmd_file_list_exec_source_files): Adjust.
4110 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
4111 (mi_cmd_stack_info_depth, mi_cmd_stack_list_args)
4112 (list_args_or_locals): Adjust.
4113 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
4114 (mi_cmd_var_delete, mi_cmd_var_set_format, mi_cmd_var_set_frozen)
4115 (mi_cmd_var_show_format, mi_cmd_var_info_num_children)
4116 (mi_cmd_var_list_children, mi_cmd_var_info_type)
4117 (mi_cmd_var_info_path_expression, mi_cmd_var_info_expression)
4118 (mi_cmd_var_show_attributes, mi_cmd_var_evaluate_expression)
4119 (mi_cmd_var_assign, mi_cmd_var_update, varobj_update_one): Adjust.
4120 * mi/mi-interp.c (mi_on_normal_stop): Adjust.
4121 * mi/mi-main.c (mi_cmd_gdb_exit, mi_cmd_thread_select)
4122 (mi_cmd_thread_list_ids, mi_cmd_thread_info, print_one_inferior)
4123 (list_available_thread_groups, mi_cmd_list_thread_groups)
4124 (mi_cmd_data_list_register_names)
4125 (mi_cmd_data_list_changed_registers)
4126 (mi_cmd_data_list_register_values, get_register)
4127 (mi_cmd_data_evaluate_expression, mi_cmd_data_read_memory)
4128 (mi_cmd_data_read_memory_bytes, mi_cmd_list_features)
4129 (mi_cmd_list_target_features, mi_cmd_add_inferior)
4130 (mi_execute_command, mi_load_progress): Adjust.
4131 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Adjust.
4132 * python/py-auto-load.c (print_script, info_auto_load_scripts):
4133 Adjust.
4134 * python/py-breakpoint.c (bppy_get_commands): Adjust.
4135 * tui/tui-interp.c (tui_command_loop): Adjust.
4136 * tui/tui-io.c (tui_setup_io, tui_initialize_io): Adjust.
4137
f9679975
PA
41382011-08-04 Pedro Alves <pedro@codesourcery.com>
4139
4140 * exceptions.c (struct catcher): Remove saved_uiout field.
4141 (exceptions_state_mc_init): Remove the `func_uiout' parameter, and
4142 no longer save/resvore the global ui_out builder.
4143 (catch_exceptions_with_msg): Save/override/restore the global
4144 ui_out builder manually instead of relying on TRY_CATCH to do it.
4145 (catch_errors): Save/restore the global ui_out builder manually
4146 instead of relying on TRY_CATCH to do it.
4147 * exceptions.h (exceptions_state_mc_init): Remove the `func_uiout'
4148 parameter.
4149 (TRY_CATCH): Adjust.
4150 * cli/cli-interp.c (safe_execute_command): Save/override/restore
4151 the global ui_out builder manually instead of relying on TRY_CATCH
4152 to do it.
4153
934709f0
PW
41542011-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4155
4156 * breakpoint.c (update_global_location_list): Ensure
4157 invariant 'first loc marked not duplicated and inserted,
4158 following locs marked duplicated/not inserted' is respected
4159 for multiple locations at the same address.
4160 (unduplicated_should_be_inserted) New function.
4161 (swap_insertion) New function.
4162
2421fe6f
JK
41632011-08-03 Jan Kratochvil <jan.kratochvil@redhat.com>
4164
4165 * stack.c (print_frame_arguments_choices): Comment typo fix.
4166
3fbb6ffa
TJB
41672011-08-01 Thiago Jung Bauermann <bauerman@br.ibm.com>
4168
4169 Revert:
4170 2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
4171 * breakpoint.c (insert_bp_location): Remove disabled_breaks
4172 argument. Update callers.
4173
fbe12357
PP
41742011-08-01 Paul Pluzhnikov <ppluzhnikov@google.com>
4175
4176 PR gdb/13045
4177 * doublest.c (convert_doublest_to_floatformat): Pass correct
4178 mantissa length to put_field.
4179
b1d288d3
JK
41802011-08-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4181
4182 * stack.c (do_gdb_disassembly): Use RETURN_MASK_ERROR, simplify the
4183 exception_print code path.
4184 (backtrace_command): Remove variable e. Protect arg by make_cleanup in
4185 advance. Simplify memset. Remove TRY_CATCH. Remove explicit xfree.
4186 (backtrace_full_command): Remove variable e. Remove TRY_CATCH.
4187
311b5970
JK
41882011-08-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4189
4190 Code cleanup.
4191 * stack.c (struct print_stack_frame_args, print_stack_frame_stub):
4192 Remove, merge them into ...
4193 (print_stack_frame): ... here with a TRY_CATCH. New variable e, remove
4194 variable args and its initialization.
4195 (struct print_args_args, print_args_stub): Remove, merge them into
4196 print_frame.
4197 (struct gdb_disassembly_stub_args, gdb_disassembly_stub): Remove, merge
4198 them into ...
4199 (do_gdb_disassembly): ... here. Remove variable args and its
4200 initialization.
4201 (print_frame): Remove variable args and its initialization, new
4202 variable gdbarch and numargs (from print_args_stub), inline here
4203 print_args_stub with a TRY_CATCH.
4204 (struct backtrace_command_args, backtrace_command_stub): Remove, merge
4205 them into ...
4206 (backtrace_command, backtrace_full_command): ... here with a TRY_CATCH.
fbe12357 4207 New variable e, remove variable btargs and its initialization.
311b5970 4208
484a26a8
TG
42092011-08-01 Tristan Gingold <gingold@adacore.com>
4210
4211 * darwin-nat.c (darwin_decode_exception_message): Adjust assertion.
4212
c30eee59
TJB
42132011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
4214
4215 * breakpoint.c (insert_bp_location): Document return value.
4216 (insert_breakpoint_locations): Fix documentation.
4217 (remove_breakpoints): Add documentation.
4218
f116073b
TJB
42192011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
4220
4221 * breakpoint.c (insert_bp_location): Remove disabled_breaks
4222 argument. Update callers.
4223
65aa373f
JK
42242011-07-30 Jan Kratochvil <jan.kratochvil@redhat.com>
4225
4226 * stack.c (print_frame_info): Comment typo fix.
4227
a50242fb
SA
42282011-07-29 Sterling Augustine <saugustine@google.com>
4229
4230 * MAINTAINERS (Write After Approval): Add myself to the list.
4231
267f6504
TT
42322011-07-29 Tom Tromey <tromey@redhat.com>
4233
4234 * solib-target.c: Use DEF_VEC_I, not DEF_VEC_O.
4235 (library_list_start_segment): Update.
4236 (library_list_start_section): Update.
4237
00bd41d6
PM
42382011-07-28 Phil Muldoon <pmuldoon@redhat.com>
4239
4240 * varobj.c (value_get_print_value): Move hint check later into the
4241 function. Comment function. Free thevalue before reusing it.
4242
18a46dbe
JK
42432011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
4244 Pedro Alves <pedro@codesourcery.com>
4245
4246 * eval.c (evaluate_subexp_standard): Remove not_lval from all calls of
4247 value_one.
4248 * valops.c (value_one): Remove parameter lv. Do not pass it to itself.
4249 Assert the result kind.
4250 * value.h (value_one): Remove parameter lv.
4251
bb7da2bf
JK
42522011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
4253
4254 Fix crash on lval_computed values.
4255 * valops.c (value_zero): Use not_lval for lval_computed.
4256
2d5213f8
TT
42572011-07-27 Tom Tromey <tromey@redhat.com>
4258
4259 * Makefile.in (HFILES_NO_SRCDIR): Add 'common' prefix for
4260 gdb_assert.h, gdb_locale.h, gdb_dirent.h.
4261
11081198
JK
42622011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
4263
4264 * typeprint.c (_initialize_typeprint): Extend the help of "whatis" and
4265 "ptype" by their typedefs difference.
4266
3c6e0cb3
JK
42672011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
4268
4269 * dwarf2expr.c (ctx_no_read_reg): New function.
4270 * dwarf2expr.h (ctx_no_read_reg): New declaration.
4271 * dwarf2read.c (read_2_signed_bytes, read_4_signed_bytes): Remove.
4272 (decode_locdesc_read_mem, decode_locdesc_ctx_funcs): New.
4273 (decode_locdesc): Replace by a caller of dwarf_expr_eval.
4274
523f3620
JK
42752011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
4276
4277 * dwarf2-frame.c (no_get_frame_base, no_get_frame_cfa, no_get_frame_pc)
4278 (no_get_tls_address, no_dwarf_call, no_base_type): Move to the other
4279 file.
4280 (dwarf2_frame_ctx_funcs): Reference the renamed functions.
4281 * dwarf2expr.c (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
4282 (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
4283 (ctx_no_get_base_type): Move the functions here.
4284 * dwarf2expr.h (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
4285 (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
4286 (ctx_no_get_base_type): New declarations.
4287
24d3216f
TT
42882011-07-27 Tom Tromey <tromey@redhat.com>
4289
4290 * xcoffread.c (dwarf2_xcoff_names): Add 'macro' and 'sentinel'
4291 entries.
4292 * symfile.h (struct dwarf2_debug_sections) <sentinel>: New field.
4293 * dwarf2read.c (dwarf2_elf_names): Add sentinel entry.
4294
5005c8a9
PP
42952011-07-26 Sterling Augustine <saugustine@google.com>
4296
4297 * cli/cli-dump.c (dump_binary_file): Change parameter type to
4298 ULONGEST.
4299 (dump_bfd_file): Likewise.
4300
480a3f21
PW
43012011-07-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4302
4303 * remote.c (remote_region_ok_for_hw_watchpoint): New function.
4304 (remote_hw_watchpoint_length_limit): New variable.
4305 (_initialize_remote) add set,show cmds for this new variable.
4306 * gdb.texinfo: document these new commands.
4307 * NEWS: Mention these new commands.
4308
efa80663
PA
43092011-07-26 Pedro Alves <pedro@codesourcery.com>
4310
4311 * breakpoint.c (works_in_software_mode_watchpoint): Also return
4312 true for software watchpoints.
4313
dbdaa232 43142011-07-26 Joel Brobecker <brobecker@adacore.com>
4315
4316 GDB 7.3 released.
4317
cf2c3c16
TT
43182011-07-26 Tom Tromey <tromey@redhat.com>
4319
4320 * symfile.h (struct dwarf2_debug_sections) <macro>: New field.
4321 * dwarf2read.c (read_indirect_string_at_offset): New function.
4322 (read_indirect_string): Use it.
4323 (dwarf_decode_macro_bytes): New function, taken from
4324 dwarf_decode_macros. Handle DW_MACRO_GNU_*.
4325 (dwarf_decode_macros): Use it. handle DW_MACRO_GNU_*.
4326 (dwarf_parse_macro_header, skip_form_bytes, skip_unknown_opcode):
4327 New functions.
4328 (struct dwarf2_per_objfile) <macro>: New field.
4329 (dwarf2_elf_names): Add .debug_macro.
4330 (dwarf2_macros_too_long_complaint): Add 'section' argument.
4331 (dwarf2_locate_sections): Handle new section.
4332 (read_file_scope): Handle DW_AT_GNU_macros.
4333 (dwarf2_per_objfile_free): Unmap the .debug_macro section.
4334
1a532630
PP
43352011-07-26 Paul Pluzhnikov <ppluzhnikov@google.com>
4336
4337 * NEWS: Mention dcache configuration.
4338 * dcache.c (dcache_set_list, dcache_show_list): New variables.
4339 (dcache_size, dcache_line_size): New variables.
4340 (LINE_SIZE_MASK, XFORM, MASK): Adjust.
4341 (struct dcache_block): Make it expandable.
4342 (struct dcache_struct): New field.
4343 (dcache_invalidate): Discard freelist upon dcache_line_size changes.
4344 (dcache_hit, dcache_alloc, dcache_peek_byte): Adjust.
4345 (dcache_poke_byte, dcache_print_line): Adjust.
4346 (set_dcache_size, set_dcache_line_size): New functions.
4347 (set_dcache_command, show_dcache_command): New functions.
4348 (_initialize_dcache): Add new commands.
4349
2eff07b3
PP
43502011-07-26 Paul Pluzhnikov <ppluzhnikov@google.com>
4351
4352 * progspace.h (struct program_space): Add solib_add_generation.
4353 * infcmd.c (post_create_inferior): Only call solib_add if not
4354 already done.
4355 * solib.c (solib_add): Increment solib_add_generation.
4356
543305c9
JK
43572011-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
4358
4359 Fix implicit pointer offsets.
4360 * dwarf2loc.c (indirect_pieced_value): Comment byte_offset. Use also
4361 ptr.OFFSET.
4362
c0a91b2b
TT
43632011-07-25 Tom Tromey <tromey@redhat.com>
4364
4365 * ada-lang.c (ada_exception_breakpoint_ops): Make return type
4366 const.
4367 (ada_exception_sal): Make 'ops' const.
4368 (ada_decode_exception_location): Likewise.
4369 (ada_decode_assert_location): Likewise.
4370 (catch_assert_command): Update.
4371 (catch_ada_exception_command): Update.
4372 (create_ada_exception_catchpoint): Make 'ops' const.
4373 * breakpoint.c (set_raw_breakpoint_without_location)
4374 (set_raw_breakpoint, momentary_breakpoint_from_master): Make 'ops'
4375 const.
4376 (create_internal_breakpoint): Update.
4377 (init_raw_breakpoint_without_location): Make 'ops' const.
4378 (init_raw_breakpoint, init_catchpoint)
4379 (create_fork_vfork_event_catchpoint)
4380 (create_syscall_event_catchpoint, init_breakpoint_sal)
4381 (create_breakpoint_sal, create_breakpoints_sal)
4382 (create_breakpoint, init_ada_exception_breakpoint): Likewise.
4383 * breakpoint.h (struct breakpoint) <ops>: Now const.
4384 (init_ada_exception_breakpoint, create_breakpoint): Make 'ops'
4385 const.
4386
6cb9b55b
PP
43872011-07-25 Paul Pluzhnikov <ppluzhnikov@google.com>
4388
4389 * linux-thread-db.c (thread_from_lwp): Initialize th.th_unique.
4390
d9b3f62e
PA
43912011-07-25 Pedro Alves <pedro@codesourcery.com>
4392
4393 * breakpoint.h (print_recreate_thread): Declare.
4394 (struct breakpoint): Move step_count, pass_count,
4395 number_on_target, static_trace_marker_id,
4396 static_trace_marker_id_idx ...
4397 (struct tracepoint): ... to this new struct.
4398 (get_tracepoint, get_tracepoint_by_number_on_target)
4399 (get_tracepoint_by_number): Change return type to struct
4400 tracepoint pointer.
4401 * breakpoint.c (is_tracepoint_type): New, factored out from
4402 is_tracepoint.
4403 (is_tracepoint): Adjust.
4404 (print_one_breakpoint_location): Cast to struct tracepoint as
4405 necessary, and adjust.
4406 (print_recreate_catch_fork, print_recreate_catch_vfork)
4407 (print_recreate_catch_syscall, print_recreate_catch_exec): Call
4408 print_recreate_thread.
4409 (init_breakpoint_sal): New, factored out from
4410 create_breakpoint_sal.
4411 (create_breakpoint_sal): Reimplement.
4412 (create_breakpoint): Allocate a struct tracecepoint if the caller
4413 wanted a tracepoint. Use init_breakpoint_sal and
4414 install_breakpoint.
4415 (print_recreate_ranged_breakpoint, print_recreate_watchpoint)
4416 (print_recreate_masked_watchpoint)
4417 (print_recreate_exception_catchpoint): Call print_recreate_thread.
4418 (tracepoint_print_one_detail): Adjust.
4419 (tracepoint_print_recreate): Adjust. Call print_recreate_thread.
4420 Dump the pass count here.
4421 (update_static_tracepoint): Adjust.
4422 (addr_string_to_sals): Adjust.
4423 (create_tracepoint_from_upload): Adjust. Change return type to
4424 struct tracepoint pointer.
4425 (trace_pass_set_count): Change parameter type to struct tracepoint
4426 pointer, and adjust.
4427 (trace_pass_command): Adjust.
4428 (get_tracepoint, get_tracepoint_by_number_on_target)
4429 (get_tracepoint_by_number): Change return type to struct
4430 tracepoint pointer, and adjust.
4431 (print_recreate_thread): New, factored out from save_breakpoints.
4432 (save_breakpoints): Don't print thread and task and passcount
4433 recreation here.
4434 * remote.c (remote_download_tracepoint): Adjust.
4435 * tracepoint.c (trace_actions_command, validate_actionline)
4436 (start_tracing, tfind_1, trace_find_tracepoint_command)
4437 (trace_dump_command): Adjust.
4438 (find_matching_tracepoint): Change return type to struct
4439 tracepoint pointer, and adjust.
4440 (merge_uploaded_tracepoints, tfile_get_traceframe_address)
4441 (tfile_trace_find, tfile_fetch_registers): Adjust.
4442 * tracepoint.h (create_tracepoint_from_upload): Change return type
4443 to struct tracepoint pointer.
4444 * ada-lang.c (print_recreate_exception): Call
4445 print_recreate_thread.
4446 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Adjust.
4447
3a5c3e22
PA
44482011-07-25 Pedro Alves <pedro@codesourcery.com>
4449
4450 * breakpoint.h (struct breakpoint): Move ops as first field. Move
4451 exp_string, exp_string_reparse, exp, exp_valid_block, cond_exp,
4452 cond_exp_valid_block, val, val_valid, watchpoint_frame,
4453 watchpoint_thread, watchpoint_triggered ...
4454 (struct watchpoint): ... to this new struct.
4455 (is_watchpoint): Declare.
4456 (install_breakpoint): Add new `internal' parameter.
4457 * breakpoint.c (is_watchpoint): Delete declaration.
4458 (set_breakpoint_condition): Handle watchpoints.
4459 (is_watchpoint): Make public.
4460 (watchpoint_in_thread_scope): Change parameter type to struct
4461 watchpoint.
4462 (watchpoint_del_at_next_stop): Change parameter type to struct
4463 watchpoint. Remove assertion. Adjust.
4464 (update_watchpoint): Ditto.
4465 (insert_breakpoints, breakpoint_init_inferior)
4466 (watchpoints_triggered, watchpoint_check)
4467 (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions)
4468 (bpstat_stop_status, print_one_breakpoint_location)
4469 (print_one_breakpoint_location, watchpoint_locations_match): Cast
4470 to struct watchpoint as necessary, and adjust.
4471 (install_breakpoint): Add `internal' argument. If true, don't
4472 mention the new breakpoint. Use set_breakpoint_number.
4473 (create_fork_vfork_event_catchpoint)
4474 (create_syscall_event_catchpoint): Adjust.
4475 (dtor_watchpoint): New.
4476 (re_set_watchpoint, insert_watchpoint, remove_watchpoint)
4477 (breakpoint_hit_watchpoint, resources_needed_watchpoint)
4478 (print_it_watchpoint, print_mention_watchpoint)
4479 (print_recreate_watchpoint, insert_masked_watchpoint)
4480 (remove_masked_watchpoint, resources_needed_masked_watchpoint)
4481 (print_one_detail_masked_watchpoint)
4482 (print_mention_masked_watchpoint)
4483 (print_recreate_masked_watchpoint): Cast to struct watchpoint as
4484 necessary, and adjust.
4485 (watch_command_1): Allocate and initialize a struct watchpoint
4486 instead of a struct breakpoint. Use install_breakpoint.
4487 (catch_exec_command_1): Adjust.
4488 (base_breakpoint_dtor): Delete accesses to watchpoint specific
4489 fields.
4490 (delete_breakpoint, enable_breakpoint_disp)
4491 (invalidate_bp_value_on_memory_change): Cast to struct watchpoint
4492 as necessary, and adjust.
4493 (initialize_breakpoint_ops): Install dtor_watchpoint as
4494 watchpoints' dtor method.
4495 * ada-lang.c (create_ada_exception_catchpoint): Adjust.
4496 * python/py-breakpoint.c (bppy_get_expression): Use is_watchpoint.
4497 to struct watchpoint as necessary, and adjust.
4498
2060206e
PA
44992011-07-25 Pedro Alves <pedro@codesourcery.com>
4500
4501 * ada-lang.c (dtor_exception, re_set_exception): Indirect through
4502 the the base class ops table.
4503 (catch_exception_breakpoint_ops)
4504 (catch_exception_unhandled_breakpoint_ops)
4505 (catch_assert_breakpoint_ops): Don't statically initialize.
4506 (initialize_ada_catchpoint_ops): New.
4507 (_initialize_ada_language): Call it.
4508 * breakpoint.c (base_breakpoint_ops, bkpt_base_breakpoint_ops)
4509 (bkpt_breakpoint_ops): Forward declare.
4510 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
4511 (catch_syscall_breakpoint_ops, catch_exec_breakpoint_ops)
4512 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
4513 (masked_watchpoint_breakpoint_ops)
4514 (gnu_v3_exception_catchpoint_ops): Don't statically initialize.
4515 (dtor_catch_syscall, dtor_catch_exec): Indirect through the the
4516 base class ops table.
4517 (null_re_set, null_check_status, null_works_in_software_mode)
4518 (null_resources_needed, null_print_one_detail): Delete.
4519 (bkpt_dtor): Rename to ...
4520 (base_breakpoint_dtor): ... this. Make static.
4521 (bkpt_allocate_location): Rename to ...
4522 (base_breakpoint_allocate_location): ... this. Make static.
4523 (base_breakpoint_re_set): New.
4524 (internal_error_pure_virtual_called): New.
4525 (base_breakpoint_insert_location, base_breakpoint_remove_location)
4526 (base_breakpoint_breakpoint_hit, base_breakpoint_check_status)
4527 (base_breakpoint_works_in_software_mode)
4528 (base_breakpoint_resources_needed, base_breakpoint_print_it)
4529 (base_breakpoint_print_one_detail, base_breakpoint_print_mention)
4530 (base_breakpoint_print_recreate): New functions.
4531 (base_breakpoint_ops): New global.
4532 (bkpt_re_set, bkpt_insert_location, bkpt_remove_location)
4533 (bkpt_breakpoint_hit): Make static.
4534 (bkpt_check_status): Delete.
4535 (bkpt_resources_needed): Make static.
4536 (bkpt_works_in_software_mode): Delete.
4537 (bkpt_print_it, bkpt_print_mention, bkpt_print_recreate): Make
4538 static.
4539 (bkpt_breakpoint_ops, internal_breakpoint_ops)
4540 (momentary_breakpoint_ops): Don't statically initialize.
4541 (internal_bkpt_print_recreate, momentary_bkpt_print_recreate):
4542 Delete.
4543 (tracepoint_insert_location, tracepoint_remove_location)
4544 (tracepoint_check_status, tracepoint_works_in_software_mode)
4545 (tracepoint_print_it): Delete.
4546 (tracepoint_breakpoint_ops): Don't statically initialize.
4547 (initialize_breakpoint_ops): New.
4548 (_initialize_breakpoint): Call it.
4549 * breakpoint.h (null_re_set, null_works_in_software_mode)
4550 (null_resources_needed, null_check_status, null_print_one_detail):
4551 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
4552 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
4553 (bkpt_check_status, bkpt_resources_needed)
4554 (bkpt_works_in_software_mode, bkpt_print_it)
4555 (null_print_one_detail, bkpt_print_mention, bkpt_print_recreate):
4556 Delete declarations.
4557 (initialize_breakpoint_ops): Declare.
4558
001c8c33
PA
45592011-07-25 Pedro Alves <pedro@codesourcery.com>
4560
4561 * breakpoint.c (bkpt_print_it, internal_bkpt_print_it)
4562 (momentary_bkpt_print_it): Simplify.
4563
06edf0c0
PA
45642011-07-25 Pedro Alves <pedro@codesourcery.com>
4565
4566 Split internal, momentary and user breakpoints breakpoint_ops
4567 tables.
4568
4569 * breakpoint.c (internal_breakpoint_ops)
4570 (momentary_breakpoint_ops): Forward declare.
4571 (create_internal_breakpoint): Add new breakpoint_ops parameter.
4572 Pass it down, rather than hardcoding bkpt_breakpoint_ops.
4573 (create_overlay_event_breakpoint)
4574 (create_std_terminate_master_breakpoint)
4575 (create_exception_master_breakpoint): Create breakpoints with
4576 internal_breakpoint_ops vtable.
4577 (set_longjmp_breakpoint): Create momentary breakpoints with
4578 momentary_breakpoint_ops vtable, using
4579 momentary_breakpoint_from_master.
4580 (create_thread_event_breakpoint, create_jit_event_breakpoint)
4581 (create_solib_event_breakpoint): Create breakpoints with
4582 internal_breakpoint_ops vtable.
4583 (set_momentary_breakpoint): Create breakpoints with
4584 momentary_breakpoint_ops vtable.
4585 (momentary_breakpoint_from_master): New, factored out from
4586 clone_momentary_breakpoint.
4587 (clone_momentary_breakpoint): Adjust.
4588 (watch_command_1): Create scope breakpoints with
4589 momentary_breakpoint_ops vtable.
4590 (bkpt_re_set): Remove handling of internal and momentary
4591 breakpoints.
4592 (bkpt_print_mention, bkpt_print_recreate): New.
4593 (bkpt_breakpoint_ops): Adjust.
4594 (internal_bkpt_re_set, internal_bkpt_check_status)
4595 (internal_bkpt_print_it, internal_bkpt_print_mention)
4596 (internal_bkpt_print_recreate, internal_breakpoint_ops): New.
4597 (momentary_bkpt_re_set, momentary_bkpt_check_status)
4598 (momentary_bkpt_print_it, momentary_bkpt_print_mention)
4599 (momentary_bkpt_print_recreate): New.
4600 (momentary_breakpoint_ops): New.
4601
348d480f
PA
46022011-07-25 Pedro Alves <pedro@codesourcery.com>
4603
4604 Implement most breakpoint_ops methods for all breakpoint types,
4605 and move the default handlings to the proper callbacks.
4606
4607 * breakpoint.c (update_watchpoint): Always call the breakpoint's
4608 works_in_software_mode method.
4609 (insert_bp_location): Go through breakpoint_ops->insert_location
4610 for software and hardware watchpoints.
4611 (create_internal_breakpoint): Pass bkpt_breakpoint_ops as
4612 breakpoint_ops.
4613 (remove_breakpoint_1): Go through breakpoint_ops->remove_location
4614 for software and hardware watchpoints.
4615 (print_it_typical): Delete.
4616 (print_bp_stop_message): Always call the breakpoint_ops->print_it
4617 method.
4618 (watchpoint_check): Adjust comment.
4619 (bpstat_check_location): Simply always call the breakpoint's
4620 breakpoint_hit method.
4621 (bpstat_stop_status): Always call the breakpoint's check_status
4622 method. Remove special cases for watchpoints and internal event
4623 breakpoints from here (moved to the check_status implementations).
4624 (print_one_breakpoint_location): Assume b->ops is never NULL.
4625 Remove static tracepoint marker id printing from here (moved to
4626 the print_one_detail callback implementation of tracepoints).
4627 (init_bp_location): Assert OPS is never NULL.
4628 (allocate_bp_location): Always call the breakpoint's
4629 allocate_location method, and remove the default code from here.
4630 (free_bp_location): Always call the location's dtor method, and
4631 remove the default code from here.
4632 (init_raw_breakpoint_without_location): Assert OPS is never NULL.
4633 (set_raw_breakpoint_without_location): Add new breakpoint_ops
4634 parameter. Pass it down.
4635 (set_raw_breakpoint): Ditto.
4636 (print_it_catch_fork): Adjust to take a bpstat as argument.
4637 (catch_fork_breakpoint_ops): Install methods.
4638 (print_it_catch_vfork): Adjust to take a bpstat as argument.
4639 (catch_vfork_breakpoint_ops): Install methods.
4640 (dtor_catch_syscall): Call the base dtor.
4641 (print_it_catch_syscall): Adjust to take a bpstat as argument.
4642 (catch_syscall_breakpoint_ops): Install methods.
4643 (dtor_catch_exec): Call the base dtor.
4644 (print_it_catch_exec): Adjust to take a bpstat as argument.
4645 (catch_exec_breakpoint_ops): Install methods.
4646 (hw_breakpoint_used_count, hw_watchpoint_used_count): Always call
4647 the breakpoint's resources_needed method, and remove the default
4648 code from here.
4649 (set_momentary_breakpoint): Pass bkpt_breakpoint_ops as
4650 breakpoint_ops.
4651 (clone_momentary_breakpoint): Clone the original's ops.
4652 (mention): Always call the breakpoint's print_mention method, and
4653 remove the default code from here.
4654 (create_breakpoint_sal): Adjust to pass the ops to
4655 set_raw_breakpoint rather than setting it manually.
4656 (create_breakpoint): Assert ops is never NULL. Adjust to pass the
4657 ops to set_raw_breakpoint_without_location rather than setting it
4658 manually.
4659 (break_command_1): Pass bkpt_breakpoint_ops as breakpoint_ops.
4660 (print_it_ranged_breakpoint): Adjust to take a bpstat as argument.
4661 (ranged_breakpoint_ops): Install methods.
4662 (break_range_command): Adjust to pass the ops to
4663 set_raw_breakpoint rather than setting it manually.
4664 (re_set_watchpoint, breakpoint_hit_watchpoint)
4665 (check_status_watchpoint, resources_needed_watchpoint)
4666 (works_in_software_mode_watchpoint, print_it_watchpoint)
4667 (print_mention_watchpoint, print_recreate_watchpoint): New
4668 functions.
4669 (watchpoint_breakpoint_ops): Install new methods.
4670 (print_it_masked_watchpoint): New function.
4671 (masked_watchpoint_breakpoint_ops): Install new methods.
4672 (watch_command_1): Adjust to pass the right breakpoint_ops to
4673 set_raw_breakpoint_without_location rather than setting it
4674 manually later. Record the current pspace.
4675 (print_it_exception_catchpoint): Adjust to take a bpstat as
4676 argument.
4677 (gnu_v3_exception_catchpoint_ops): Install new methods.
4678 (say_where): New function.
4679 (null_re_set, null_check_status, null_works_in_software_mode)
4680 (null_resources_needed, null_print_one_detail, bp_location_dtor):
4681 New functions.
4682 (bp_location_ops): New global.
4683 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
4684 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
4685 (bkpt_check_status, bkpt_resources_needed)
4686 (bkpt_works_in_software_mode, bkpt_print_it, bkpt_print_mention)
4687 (bkpt_print_recreate): New functions.
4688 (bkpt_breakpoint_ops): New global.
4689 (tracepoint_re_set, tracepoint_insert_location)
4690 (tracepoint_remove_location, tracepoint_breakpoint_hit)
4691 (tracepoint_check_status, tracepoint_works_in_software_mode)
4692 (tracepoint_print_it, tracepoint_print_one_detail)
4693 (tracepoint_print_mention, tracepoint_print_recreate): New
4694 functions.
4695 (tracepoint_breakpoint_ops): New global.
4696 (delete_breakpoint): Always call the breakpoint's dtor method, and
4697 remove the default handling from here.
4698 (breakpoint_re_set_default): Make static.
4699 (breakpoint_re_set_one): Always call the breakpoints re_set
4700 method, and remove the default handling from here.
4701 (trace_command, ftrace_command, strace_command)
4702 (create_tracepoint_from_upload): Pass appropriate breakpoints_ops
4703 to create_breakpoint.
4704 (save_breakpoints): Always call the breakpoint's print_recreate
4705 method, and remove the default handling from here.
4706
4707 * ada-lang.c (dtor_exception): Call the base dtor.
4708 (re_set_exception): Call the base method.
4709 (print_it_exception, print_it_catch_exception): Adjust to take a
4710 bpstat as argument.
4711 (catch_exception_breakpoint_ops): Install methods.
4712 (print_it_catch_exception_unhandled): Adjust to take a bpstat as
4713 argument.
4714 (catch_exception_unhandled_breakpoint_ops): Install methods.
4715 (print_it_catch_assert): Adjust to take a bpstat as argument.
4716 (catch_assert_breakpoint_ops): Install methods.
4717
4718 * breakpoint.h (struct breakpoint_ops): Adjust the print_it method
4719 to take a bpstat as argument.
4720 (enum print_stop_action): Add describing comments to each enum
4721 value.
4722 (breakpoint_re_set_default): Delete declaration.
4723 (null_re_set, null_works_in_software_mode, null_resources_needed)
4724 (null_check_status, null_print_one_detail): Declare.
4725 (bkpt_breakpoint_ops): Declare.
4726 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
4727 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
4728 (bkpt_check_status, bkpt_resources_needed)
4729 (bkpt_works_in_software_mode, bkpt_print_it)
4730 (null_print_one_detail, bkpt_print_mention, bkpt_print_recreate):
4731 Declare.
4732
4733 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust to pass
4734 bkpt_breakpoint_ops.
4735 * python/py-breakpoint.c (bppy_init): Ditto.
4736
be8f8133
PW
47372011-07-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4738
4739 * MAINTAINERS (Write After Approval): Add myself to the list.
4740
3807f613
PP
47412011-07-23 Paul Pluzhnikov <ppluzhnikov@google.com>
4742
4743 * elfread.c (elf_rel_plt_read): Fix off-by-one bug.
4744
1ced966e
PA
47452011-07-22 Pedro Alves <pedro@codesourcery.com>
4746
4747 * i386-nat.c (I386_DR_VACANT, I386_DR_LOCAL_ENABLE)
4748 (I386_DR_GLOBAL_ENABLE, I386_DR_DISABLE, I386_DR_SET_RW_LEN)
4749 (I386_DR_GET_RW_LEN, I386_DR_WATCH_HIT): Add state parameter and
4750 adjust.
4751 (dr_mirror, dr_status_mirror, dr_control_mirror): Delete.
4752 (struct i386_debug_reg_state): New.
4753 (i386_init_dregs): New.
4754 (dr_mirror): New.
4755 (i386_cleanup_dregs): Use i386_init_dregs.
4756 (i386_show_dr): Add state parameter and adjust.
4757 (i386_insert_aligned_watchpoint): Ditto. Don't pass the info to
4758 the inferior here.
4759 (i386_remove_aligned_watchpoint): Likewise.
4760 (i386_handle_nonaligned_watchpoint): Add state parameter and adjust.
4761 (i386_update_inferior_debug_regs): New.
4762 (i386_insert_watchpoint): Work on a local mirror of the debug
4763 registers, and only update the inferior on success.
4764 (i386_remove_watchpoint): Ditto.
4765 (i386_region_ok_for_watchpoint): Adjust.
4766 (i386_stopped_data_address): Adjust.
4767 (i386_insert_hw_breakpoint): Adjust.
4768 (i386_remove_hw_breakpoint): Adjust.
4769
3543a589
TT
47702011-07-22 Tom Tromey <tromey@redhat.com>
4771
4772 * amd64-tdep.c (amd64_pseudo_register_read_value): Rename
4773 from amd64_pseudo_register_read. Change arguments. Call
4774 mark_value_bytes_unavailable when needed.
4775 (amd64_init_abi): Use set_gdbarch_pseudo_register_read_value, not
4776 set_gdbarch_pseudo_register_read.
4777 * sentinel-frame.c (sentinel_frame_prev_register): Use
4778 regcache_cooked_read_value.
4779 * regcache.h (regcache_cooked_read_value): Declare.
4780 * regcache.c (regcache_cooked_read_value): New function.
4781 (regcache_cooked_read): Call
4782 gdbarch_pseudo_register_read_value if available.
4783 * i386-tdep.h (i386_pseudo_register_read_value): Declare.
4784 (i386_pseudo_register_read): Remove.
4785 * i386-tdep.c (i386_pseudo_register_read_into_value): Rename from
4786 i386_pseudo_register_read. Change arguments. Call
4787 mark_value_bytes_unavailable when needed.
4788 (i386_pseudo_register_read_value): New function.
4789 (i386_gdbarch_init): Call set_gdbarch_pseudo_register_read_value,
4790 not set_gdbarch_pseudo_register_read.
4791 * gdbarch.sh (pseudo_register_read_value): New method.
4792 * gdbarch.c, gdbarch.h: Rebuild.
4793 * findvar.c (value_from_register): Call get_frame_register_value.
4794
95298e72
PM
47952011-07-22 Phil Muldoon <pmuldoon@redhat.com>
4796
4797 * event-top.c (cli_command_loop): Use get_prompt, get_suffix,
4798 get_prefix.
4799 (display_gdb_prompt): Likewise.
4800 (change_annotation_level): Likewise.
4801 (push_prompt): Likewise.
4802 (pop_prompt): Likewise.
4803 (handle_stop_sig): Use get_prompt with a level.
4804 * top.c (command_loop): Use get_prompt with a level.
4805 (set_async_annotation_level): Use set_prompt with a level.
4806 (get_prefix): New function.
4807 (set_prefix): Ditto.
4808 (set_suffix): Ditto.
4809 (get_suffix): Ditto.
4810 (get_prompt): Accept a level argument.
4811 (set_prompt): Accept a level argument. Free old prompts. Set
4812 new_async_prompt if level is 0.
4813 (init_main): Use set_prompt with a level. Do not set
4814 new_async_prompt.
4815 * event-top.h (PROMPT, SUFFIX, PREFIX): Move to top.c
4816 * top.h: Declare set_suffix, get_suffix, set_prefix, get_prefix.
4817 Modify set_prompt, get_prompt to account for levels.
4818 * tui/tui-interp.c (tui_command_loop): Use get_prompt with a
4819 level.
4820 * python/python.c (before_prompt_hook): Use set_prompt.
4821
d26e3629
KY
48222011-07-22 Kwok Cheung Yeung <kcy@codesourcery.com>
4823
4824 * defs.h: Add guard against inclusion in gdbserver.
4825 (struct ptid, ptid_t): Move to common/ptid.h.
4826 (xfree, xzalloc, xasprintf, xvasprintf, xstrprintf, xstrvprintf,
4827 xsnprintf, internal_error): Move to common/common-utils.h.
4828 (nomem): Delete.
4829 * gdb_assert.h: Move into common/ sub-directory.
4830 * gdb_locale.h: Ditto.
4831 * gdb_dirent.h: Ditto.
4832 * inferior.h (minus_one_ptid, null_ptid, ptid_build, pid_to_ptid,
4833 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid):
4834 Move into common/ptid.h.
4835 * xml-support.c (xml_escape_text): Move into common/xml-utils.c.
4836 (gdb_xml_create_parser_and_cleanup_1, xml_fetch_context_from_file):
4837 Change nomem to malloc_failure.
4838 * xml-support.h (xml_escape_text): Move into common/xml-utils.h.
4839 * utils.c (nomem): Rename to malloc_failure.
4840 (xmalloc, xzalloc, xrealloc, xcalloc, xfree, xstrprintf, xasprintf,
4841 xvasprintf, xstrvprintf, xsnprintf): Move to common/common-utils.c.
4842 (gdb_buildargv): Change nomem to malloc_failure.
4843 * infrun.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid,
4844 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal,
4845 ptid_is_pid): Move into common/ptid.c.
4846 (initialize_infrun): Delete initialization of null_ptid and
4847 minus_one_ptid.
4848 * linux-nat.c (linux_nat_xfer_osdata): Defer to
4849 linux_common_xfer_osdata.
4850 * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c,
4851 common/ptid.c and common/buffer.c.
4852 (HFILES_NO_SRCDIR): Add common/common-utils.h, common/xml-utils.h,
4853 common/ptid.h, common/buffer.h and common/linux-osdata.h.
4854 (COMMON_OBS): Add xml-utils.o, common-utils.o, buffer.o and ptid.o.
4855 (common-utils.o, xml-utils.o, ptid.o, buffer.o, linux-osdata.o): New
4856 rules.
4857 * common/gdb_assert.h: New.
4858 * common/gdb_dirent.h: New.
4859 * common/gdb_locale.h: New.
4860 * common/buffer.c: New.
4861 * common/buffer.h: New.
4862 * common/ptid.c: New.
4863 * common/ptid.h: New.
4864 * common/xml-utils.c: New.
4865 * common/xml-utils.h: New.
4866 * common/common-utils.c: New.
4867 * common/common-utils.h: New.
4868 * common/linux-osdata.c: New.
4869 * common/linux-osdata.h: New.
4870 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-osdata.o.
4871 * config/arm/linux.mh (NATDEPFILES): Ditto.
4872 * config/i386/linux.mh (NATDEPFILES): Ditto.
4873 * config/i386/linux64.mh (NATDEPFILES): Ditto.
4874 * config/ia64/linux.mh (NATDEPFILES): Ditto.
4875 * config/m32r/linux.mh (NATDEPFILES): Ditto.
4876 * config/m68k/linux.mh (NATDEPFILES): Ditto.
4877 * config/mips/linux.mh (NATDEPFILES): Ditto.
4878 * config/pa/linux.mh (NATDEPFILES): Ditto.
4879 * config/powerpc/linux.mh (NATDEPFILES): Ditto.
4880 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Ditto.
4881 * config/s390/s390.mh (NATDEPFILES): Ditto.
4882 * config/sparc/linux.mh (NATDEPFILES): Ditto.
4883 * config/sparc/linux64.mh (NATDEPFILES): Ditto.
4884 * config/xtensa/linux.mh (NATDEPFILES): Ditto.
4885
edc84990 48862011-07-21 Matt Rice <ratmice@gmail.com>
4887
4888 * NEWS: Add info macros and info definitions commands.
4889
3a7bf607
PM
48902011-07-21 Phil Muldoon <pmuldoon@redhat.com>
4891
4892 * NEWS: Document Python prompt substitution hook.
4893
9b158ba0 48942011-07-18 Matt Rice <ratmice@gmail.com>
4895
4896 PR macros/12999
4897 * macrotab.h (macro_callback_fn): Add new arguments to callback.
4898 * macrotab.c (foreach_macro): Ditto.
4899 (foreach_macro_in_scope): Ditto.
4900 * macrocmd.c (print_macro_callback): New function.
4901 (info_macro_command): Move some code to print_macro_definition.
4902 (print_macro_definition): New function.
4903 (print_one_macro): Add new arguments to callback.
4904 (info_definitions_command): New function.
4905 (info_macros_command): Ditto.
4906 (_initialize_macrocmd): Add info macros and info definitions commands.
4907 * symtab.c (add_macro_name): Add new arguments to callback.
4908
d17b6f81
PM
49092011-07-21 Phil Muldoon <pmuldoon@redhat.com>
4910 Tom Tromey <tromey@redhat.com>
4911
4912 * top.c (set_prompt): Rewrite to free previous prompt, free
4913 asynch_new_prompt and set both on new prompts.
4914 * event-top.c (display_gdb_prompt): Add prompt substitution
4915 logic.
4916 * python/python.c (before_prompt_hook): New function.
4917
1364323a 49182011-07-20 Matt Rice <ratmice@gmail.com>
4919
4920 * bfin-tdep.c (bfin_extract_return_value): Fix swapped
4921 arguments to store_unsigned_integer.
4922
8b70b953
TT
49232011-07-20 Tom Tromey <tromey@redhat.com>
4924
6c83ed52
TT
4925 * dwarf2read.c (process_enumeration_scope): Do not call new_symbol
4926 in some declaration-only cases.
4927
49282011-07-18 Tom Tromey <tromey@redhat.com>
4929
8b70b953
TT
4930 PR symtab/12984:
4931 * dwarf2read.c (dwarf2_section_info_def): New typedef.
4932 (struct dwarf2_per_objfile) <types>: Change to a VEC.
4933 (struct dwarf2_per_cu_data) <from_debug_types>: Remove.
4934 <debug_type_section>: New field.
4935 (dwarf2_locate_sections): Push .debug_types sections onto VEC.
4936 (load_cu): Use appropriate section.
4937 (create_signatured_type_table_from_index): Add 'section'
4938 argument.
4939 (dwarf2_read_index): Only allow a single .debug_types section.
4940 (dw2_get_file_names): Use appropriate section.
4941 (read_type_comp_unit_head): Add 'section' argument.
4942 (create_debug_types_hash_table): Loop over all .debug_types
4943 sections.
4944 (init_cu_die_reader): Use appropriate section.
4945 (process_psymtab_comp_unit, load_partial_comp_unit)
4946 (load_full_comp_unit, read_die_and_children, find_partial_die)
4947 (lookup_die_type, determine_prefix, follow_die_offset): Update.
4948 (lookup_signatured_type_at_offset): Add 'section' argument.
4949 (read_signatured_type_at_offset): Add 'sect' argument.
4950 (read_signatured_type): Use appropriate section.
4951 (set_die_type, get_die_type_at_offset): Update.
4952 (dwarf2_per_objfile_free): Free all .debug_types sections, and
4953 VEC.
4954 (write_psymtabs_to_index): Don't allow index with more than one
4955 .debug_types section.
4956
918dd910
JK
49572011-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
4958
4959 Fix crash if referenced CU is aged out.
4960 * dwarf2loc.c (per_cu_dwarf_call): New variable back_to, use to for
4961 xfree of block.data.
4962 (indirect_pieced_value): New variable back_to, use to for xfree of
4963 baton.data.
4964 (dwarf2_compile_expr_to_ax): New variable back_to, use to for xfree of
4965 block.data.
4966 * dwarf2read.c (dwarf2_find_base_address): New prototype.
4967 (load_cu): New function from ...
4968 (dw2_do_instantiate_symtab): ... the code here ...
4969 (process_full_comp_unit): ... and here.
4970 (dwarf2_fetch_die_location_block): Call load_cu first. Call xmemdup on
4971 retval.data.
4972
0e37a63c
JK
49732011-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
4974
4975 * dwarf2loc.c (indirect_pieced_value): Use check_typedef for VALUE's
4976 type.
4977
7e324e48
GB
49782011-07-19 Gary Benson <gbenson@redhat.com>
4979
4980 * infrun.c (struct execution_control_state): New member
4981 stop_func_filled_in.
4982 (clear_stop_func, fill_in_stop_func): New functions.
4983 (handle_inferior_event): Call clear_stop_func rather than
4984 manipulating the execution control state directly.
4985 Call fill_in_stop_func lazily as required rather than
4986 directly calling find_pc_partial_function in all cases.
4987
d48323d8
TT
49882011-07-18 Tom Tromey <tromey@redhat.com>
4989
4990 * dwarf2read.c (read_subrange_type): Use attr_form_is_block when
4991 checking for variable-sized array.
4992
40591b7d
JCD
49932011-07-18 Jean-Charles Delay <delay@adacore.com>
4994
4995 * varobj.h (varobj_languages): Add vlang_ada definition to the list
4996 of supported languages.
4997 * varobj.c: Add top definitions and basic implementation of the
4998 following callbacks: ada_number_of_children, ada_name_of_variable,
4999 ada_name_of_child, ada_path_expr_of_child, ada_value_of_root,
5000 ada_value_of_child, ada_type_of_child, ada_value_of_variable.
5001 (languages): Register Ada-specific callbacks.
5002 (variable_language): Add the Ada case in the language setter switch.
5003
2e424e08
JK
50042011-07-17 Jan Kratochvil <jan.kratochvil@redhat.com>
5005
5006 * remote-mips.c (pmon_download): Fix ignored return value GCC warning.
5007
9e8b7a03
JK
50082011-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
5009
5010 Code cleanup.
5011 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): New.
5012 (execute_stack_op): Use dwarf2_frame_ctx_funcs
5013 * dwarf2expr.c (dwarf_get_base_type): Access get_base_type via funcs.
5014 (execute_stack_op): Access read_reg, get_frame_base, read_mem,
5015 get_frame_cfa, get_tls_address and dwarf_call via funcs.
5016 * dwarf2expr.h (struct dwarf_expr_context): New forward declaration.
5017 (struct dwarf_expr_context_funcs): New, move here methods from ...
5018 (struct dwarf_expr_context): ... here. New fields funcs.
5019 * dwarf2loc.c (dwarf_expr_dwarf_call): Access get_frame_pc via funcs.
5020 (dwarf_expr_ctx_funcs): New.
5021 (dwarf2_evaluate_loc_desc_full): Use dwarf_expr_ctx_funcs.
5022 (needs_frame_dwarf_call): Access get_frame_pc via funcs.
5023 (needs_frame_ctx_funcs): New.
5024 (dwarf2_loc_desc_needs_frame): Use needs_frame_ctx_funcs.
5025
2b1260ab
FM
50262011-07-15 Fawzi Mohamed <fawzi.mohamed@nokia.com>
5027
5028 * MAINTAINERS (Write After Approval): Add myself to the list.
5029
8bd90839
FM
50302011-07-15 Fawzi Mohamed <fawzi.mohamed@nokia.com>
5031
5032 * dwarf2-frame.c (decode_frame_entry, decode_frame_entry_1): Ensure
5033 that CIE pointer of an FDE really points to a CIE .
5034
953b98d1
HZ
50352011-07-15 Hui Zhu <teawater@gmail.com>
5036
5037 * remote.c (remote_get_trace_status): Add comments.
5038
c8f2448a
JK
50392011-07-14 Jan Kratochvil <jan.kratochvil@redhat.com>
5040
5041 Code cleanup - constify struct lval_funcs.
5042 * dwarf2loc.c (pieced_value_funcs): Make it const.
5043 * infrun.c (siginfo_value_funcs): Likewise.
5044 * opencl-lang.c (opencl_value_funcs): Likewise.
5045 * valops.c (value_assign, value_ind): Make the funcs variable const.
5046 * value.c (struct value): Make location.computed.funcs target const.
5047 Rearrange the comments.
5048 (allocate_computed_value): Make the funcs parameter target const.
5049 (value_computed_funcs): Return the funcs target const.
5050 (value_free, value_copy, set_value_component_location): Make the funcs
5051 variable const.
5052 * value.h (allocate_computed_value): Make the funcs parameter target
5053 const.
5054 (value_computed_funcs): Return the funcs target const.
5055 * windows-tdep.c (tlb_value_funcs): Make it const.
5056
f652de6f
HZ
50572011-07-14 Hui Zhu <teawater@gmail.com>
5058
5059 * remote.c (remote_get_trace_status): Initialize p.
5060
67f41397
JK
50612011-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
5062
5063 Work around kgdb.
5064 * remote.c (remote_get_trace_status): New variable ex. Put
5065 remote_get_noisy_reply into TRY_CATCH. Call exception_fprintf for it.
5066
d1b66e6d
TT
50672011-07-13 Tom Tromey <tromey@redhat.com>
5068
5069 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_regval_type>: Use
5070 value_from_contents for final conversion.
5071
1632a688
JK
50722011-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
5073
5074 Code cleanup.
5075 * dwarf2loc.c (dwarf_expr_frame_base_1, dwarf2_evaluate_loc_desc_full):
5076 Indent prototypes so they do not get into tags.
5077
a7035dbb
JK
50782011-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
5079
5080 Code cleanup making also optimized out values lazy.
5081 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use
5082 allocate_optimized_out_value. Twice.
5083 (loclist_read_variable) Use allocate_optimized_out_value. Once.
5084 * findvar.c (read_var_value): Likewise.
5085 * value.c (allocate_optimized_out_value): New function.
5086 * value.h (allocate_optimized_out_value): New declaration.
5087
d07ed419
JK
50882011-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
5089
5090 Fix occasional crash of CTRL-C during DWARF read in.
5091 * dwarf2read.c (dwarf2_mark_helper): Return on NULL CU.
5092
86d31898
TT
50932011-07-11 Tom Tromey <tromey@redhat.com>
5094
5095 * regcache.c (struct regcache_descr): Fix typo.
5096 * i387-tdep.c (i387_supply_xsave): Fix typo.
5097
2ab95328
TT
50982011-07-11 Tom Tromey <tromey@redhat.com>
5099
5100 * dwarf2read.c (handle_DW_AT_stmt_list): New function.
5101 (read_file_scope, read_type_unit_scope): Use it.
5102
04ad99e6
JK
51032011-07-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5104
5105 * dwarf2expr.c (read_sleb128): Fix signed extension overflowing host
5106 `int'.
5107
713389e0
PM
51082011-07-11 Phil Muldoon <pmuldoon@redhat.com>
5109
5110 PR python/12438
5111 * python/python.c: Set gdbpy_should_print_stack default to off.
5112 (set_python): Deprecate maint set python print-stack to
5113 class_deprecate.
5114 (_initialize_python): Deprecate maint set/show python print-stack.
5115 Add new prefix command, python. Add new setting, print-backtrace.
5116 * NEWS: Document set python print-stack. Document default change.
5117
754eadd1
PM
51182011-07-11 Phil Muldoon <pmuldoon@redhat.com>
5119
5120 * python/py-inferior.c (infpy_dealloc): New function.
5121 (inferior_to_inferior_object): Return a new object, or a
5122 new reference to the existing object.
5123 (find_thread_object): Cleanup references to inferior.
5124 (delete_thread_object): Ditto.
5125 * python/py-infthread.c (create_thread_object): Do not increment
5126 inferior reference count.
5127
5e44ecb3
TT
51282011-07-08 Tom Tromey <tromey@redhat.com>
5129
5130 * dwarf2loc.c (locexpr_regname): New function.
5131 (locexpr_describe_location_piece): Use it.
5132 (disassemble_dwarf_expression): Add per_cu argument. Use
5133 locexpr_regname.
5134 <DW_OP_GNU_deref_type, DW_OP_GNU_const_type,
5135 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
5136 New cases.
5137 (locexpr_describe_location_1): Add per_cu argument.
5138 (locexpr_describe_location): Update.
5139 (loclist_describe_location): Update.
5140
e0e9434c
TT
51412011-07-08 Tom Tromey <tromey@redhat.com>
5142
5143 * dwarf2expr.c (execute_stack_op): Add QUIT.
5144
26afc0d7
HZ
51452011-07-07 Hui Zhu <teawater@gmail.com>
5146
5147 Revert:
5148 2011-07-06 Hui Zhu <teawater@gmail.com>
5149 * remote.c (remote_start_remote): Add TRY_CATCH for
5150 remote_get_trace_status.
5151 * tracepoint.c (disconnect_tracing): Ditto.
5152
a40a111f
AB
51532011-07-07 Andrew Burgess <aburgess@broadcom.com>
5154
5155 * cli/cli-setshow.c (do_setshow_command): Display var_zinteger
5156 variables as signed, not unsigned.
5157
e2bd3b15
JB
51582011-07-06 Joel Brobecker <brobecker@adacore.com>
5159
5160 * jit.c (jit_inferior_init): Reformat forward declaration.
5161
e3d961fe 51622011-07-06 Matt Rice <ratmice@gmail.com>
5163
5164 * MAINTAINERS (Write After Approval): Add myself to the list.
5165
0f3428f0
HZ
51662011-07-06 Hui Zhu <teawater@gmail.com>
5167
5168 * remote.c (remote_start_remote): Add TRY_CATCH for
5169 remote_get_trace_status.
5170 * tracepoint.c (disconnect_tracing): Ditto.
5171
fc9f3a69
TT
51722011-07-05 Tom Tromey <tromey@redhat.com>
5173
5174 * symtab.c (operator_chars): Now static.
5175 * linespec.c (operator_chars): Don't declare.
5176
26e519b9
TJB
51772011-07-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
5178
5179 * ui-out.h (ui_out_field_core_addr): Fix typo in comment.
5180
eb2a6f42
TT
51812011-07-05 Tom Tromey <tromey@redhat.com>
5182
5183 * gnu-v3-abi.c (gnuv3_rtti_type): Check TYPE_CPLUS_REALLY_JAVA.
5184 * gdbtypes.h (struct cplus_struct_type) <is_java>: New field.
5185 (TYPE_CPLUS_REALLY_JAVA): New macro.
5186 * dwarf2read.c (process_structure_scope): Set
5187 TYPE_CPLUS_REALLY_JAVA.
5188
21083d0f 51892011-07-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
177b42fe
TJB
5190
5191 * ada-lang.c: Fix typos.
5192 * amd64-tdep.c: Likewise.
5193 * breakpoint.c: Likewise.
5194 * cli/cli-decode.c: Likewise.
5195 * findcmd.c: Likewise.
5196 * inline-frame.c: Likewise.
5197 * mi/mi-main.c: Likewise.
5198 * minsyms.c: Likewise.
5199 * monitor.c: Likewise.
5200 * monitor.h: Likewise.
5201 * prologue-value.c: Likewise.
5202 * reverse.c: Likewise.
5203 * s390-tdep.c: Likewise.
5204
3b2a0cf2
JB
52052011-07-06 Paul Pluzhnikov <ppluzhnikov@google.com>
5206
5207 * jit.c (jit_inferior_init): Forward declare.
5208 (jit_breakpoint_re_set_internal): Call jit_inferior_init.
5209
efae1d92
JB
52102011-07-04 Joel Brobecker <brobecker@adacore.com>
5211
5212 * osabi.c (generic_elf_osabi_sniffer): Minor comment reformatting.
5213
6040a59d
JB
52142011-07-04 Tristan Gingold <gingold@adacore.com>
5215
5216 * ada-tasks.c (KNOWN_TASKS_LIST): New macro.
5217 (tcb_fieldno): Add activation_link field.
5218 (get_known_tasks_addr): Moved and rewritten.
5219 (get_tcb_types_info): Set activation_link field.
5220 (read_known_tasks_array): Add parameter. Rewritten.
5221 (read_known_tasks_list): New function.
5222 (read_known_tasks): New function.
5223 (ada_build_task_list): Call read_known_tasks instead of
5224 read_known_tasks_array.
5225 * ravenscar-thread.c: Add first_task_name constant.
5226 (has_ravenscar_runtime): Check for task list too.
5227
cb741e45
JB
52282011-07-04 Tristan Gingold <gingold@adacore.com>
5229
5230 * ada-tasks.c: Renames fieldno to actb_fieldno.
5231 (ada_get_task_number): Indentation.
5232 (get_tcb_types_info): Remove all parameters. Write directly
5233 the globals.
5234 (ptid_from_atcb_common): Adjust.
5235 (read_atcb): Adjust.
5236
7475b06c
TJB
52372011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
5238
5239 * symtab.c (in_prologue): Remove mention of ppc's refine_prologue_limit.
5240
15230f37
TJB
52412011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
5242
5243 * ui-out.c (ui_out_field_core_addr): Mention that the function
5244 description is in the header file.
5245 * ui-out.h (ui_out_field_core_addr): Document function.
5246
65743aba
TJB
52472011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
5248
5249 * ui-out.c (ui_out_get_field_separator): Remove unused function.
5250 * ui-out.h (ui_out_get_field_separator): Remove prototype.
5251
c37a5aab
TJB
52522011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
5253
5254 * symtab.c (expand_line_sal): Remove empty line.
5255
59adf69e
TS
52562011-07-04 Thomas Schwinge <thomas@schwinge.name>
5257
5258 * osabi.c (generic_elf_osabi_sniffer) <ELFOSABI_GNU>: Handle in the
5259 same way as ELFOSABI_NONE.
5260 <ELFOSABI_LINUX, ELFOSABI_HURD>: Remove cases.
5261
e5dd4106
TJB
52622011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
5263
5264 * breakpoint.c: Fix typos in comments.
5265 * linespec.c: Likewise.
5266 * symtab.c: Likewise.
5267
d40102a1
JB
52682011-07-04 Joel Brobecker <brobecker@adacore.com>
5269
5270 * dwarf2-frame.c (dwarf2_build_frame_info): Do not load .eh_frame
5271 section in separate object files.
5272
2f741504
JK
52732011-07-04 Jan Kratochvil <jan.kratochvil@redhat.com>
5274
5275 Fix false GCC warning.
5276 * linespec.c (decode_line_1): Initialize values.
5277
418c7cf7
JK
52782011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
5279
5280 * linespec.c (find_method): Accept the function type automatically only
5281 if it was specified with parameter types.
5282
3d50dd94
JK
52832011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
5284
5285 Stop on first linespec terminator instead of eating what we can.
5286 * linespec.c (is_linespec_boundary): New function.
5287 (name_end): Remove function.
5288 (keep_name_info): New parameter on_boundary, replace the body.
5289 (decode_line_1): Provide the parameter to keep_name_info.
5290 (decode_compound): Likewise. Drop the trailing java return type
5291 handling. Twice.
5292
dcf9f4ab
JK
52932011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
5294
5295 Fall back linespec to minimal symbols.
5296 * linespec.c (decode_line_1): New variable ex, saved_argptr. Protect
5297 decode_compound by TRY_CATCH, fall back on minsyms if it failed.
5298 (find_method, symbol_found): Change error to cplusplus_error.
5299
3f542ed1
JK
53002011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
5301
bc68c4e5 5302 * symtab.c (symbol_find_demangled_name): Remove DMGL_VERBOSE.
3f542ed1 5303
900e11f9
JK
53042011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
5305 Tom Tromey <tromey@redhat.com>
5306
5307 * dwarf2read.c (check_physname): New variable.
5308 (dwarf2_physname): Prefer DW_AT_linkage_name over dwarf2_compute_name.
5309 (show_check_physname): New function.
5310 (_initialize_dwarf2_read): Add `check-physname' for check_physname.
5311
2301925d
JB
53122011-07-01 Joel Brobecker <brobecker@adacore.com>
5313
5314 * machoread.c (macho_symfile_read): Delete OBE comment.
5315
38947cca
JB
53162011-07-01 Joel Brobecker <brobecker@adacore.com>
5317
5318 * machoread.c (struct macho_oso_data): Delete.
5319 (current_oso): Delete.
5320 (macho_relocate_common_syms): New function, mostly extracted
5321 out of
5322 (macho_add_oso_symfile): Call macho_relocate_common_syms.
5323 Remove code that sets and unset current_oso.
5324 (macho_symfile_relocate): Delete handling of common symbols,
5325 now moved to macho_relocate_common_syms.
5326
a7aa0d73
JB
53272011-07-01 Joel Brobecker <brobecker@adacore.com>
5328
5329 * darwin-nat.c (darwin_ptrace): Add documentation.
5330 Set errno to zero before calling ptrace. If ptrace returns
5331 -1 and errno is zero, then change then return zero.
5332 (darwin_kill_inferior): Issue a warning instead of triggering
5333 a failed assertion when the PT_KILL ptrace operations returned
5334 nonzero.
5335
5e9bc145
JB
53362011-07-01 Joel Brobecker <brobecker@adacore.com>
5337
5338 * darwin-nat.c (darwin_detach): Call darwin_resume_inferior
5339 only when inf->private->no_ptrace.
5340
00eb2c4a
JB
53412011-07-01 Joel Brobecker <brobecker@adacore.com>
5342
5343 * ada-lang.c (print_it_exception): Print temporary catchpoints
5344 as "Temporary catchpoint".
5345 (print_mention_exception): Likewise.
5346
127c81bc
TT
53472011-07-01 Tom Tromey <tromey@redhat.com>
5348
5349 * jv-lang.c (java_language_defn): Use java_printchar,
5350 java_printstr.
5351 (java_get_encoding): New function.
5352 (java_emit_char): Use generic_emit_char.
5353 (java_printchar): New function.
5354 (java_printstr): Likewise.
5355
25552254
JB
53562011-07-01 Joel Brobecker <brobecker@adacore.com>
5357
5358 * ada-typeprint.c (print_record_type): If unable to decode
5359 the name of the parent type, use the encoded name.
5360
d2d43431
JB
53612011-07-01 Jean-Charles Delay <delay@adacore.com>
5362
5363 * ada-typeprint.c (ada_print_type): Fix both PAD type and
5364 pointer to constrained packed array type output.
5365 * ada-valprint.c (ada_val_print_1): Fix pointer to constrained
5366 packed array output.
5367
54ae186f
JB
53682011-07-01 Jean-Charles Delay <delay@adacore.com>
5369
5370 * ada-typeprint.c (print_array_type): removed if condition on show
5371 being negative for bounds printing.
5372
8f17729f
JB
53732011-07-01 Joel Brobecker <brobecker@adacore.com>
5374
5375 * ada-lang.c (ada_identical_enum_types_p): New function.
5376 (symbols_are_identical_enums): New function.
5377 (remove_extra_symbols): Do nothing if NSYMS < 2.
5378 Use symbols_are_identical_enums.
5379
f5aa6869
JB
53802011-07-01 Joel Brobecker <brobecker@adacore.com>
5381
5382 * ada-valprint.c (ada_value_print): Handle typedefs.
5383
8f465ea7
JB
53842011-07-01 Joel Brobecker <brobecker@adacore.com>
5385
5386 * ada-lang.c (ada_evaluate_subexp): Add missing word in comment.
5387
828292f2
JB
53882011-07-01 Eric Botcazou <ebotcazou@adacore.com>
5389
5390 * ada-lang.c (thin_descriptor_type): Deal with typedefs.
5391 (decode_constrained_packed_array): Likewise.
5392 (ada_evaluate_subexp) <TERNOP_SLICE>: Likewise.
5393
18920c42
JB
53942011-07-01 Joel Brobecker <brobecker@adacore.com>
5395
5396 * ada-exp.y (convert_char_literal): Handle typedef types.
5397
c90092fe
JB
53982011-07-01 Joel Brobecker <brobecker@adacore.com>
5399
5400 * ada-lang.c (ada_remove_trailing_digits): Expand documentation.
5401
f748fb40
TT
54022011-06-30 Tom Tromey <tromey@redhat.com>
5403
5404 * varobj.c (varobj_create): Call do_cleanups on early exit path.
5405 * valops.c (find_overload_match): Call do_cleanups on early exit
5406 path.
5407 * solib.c (solib_find): Call do_cleanups on early exit path.
5408
3bb47e8b
TT
54092011-06-30 Tom Tromey <tromey@redhat.com>
5410
5411 * symfile-mem.c (symbol_file_add_from_memory): Call do_cleanups.
5412 * solib-svr4.c (open_symbol_file_object): Call do_cleanups on all
5413 return paths. Defer final do_cleanups until last return.
5414 * arm-tdep.c (arm_exidx_new_objfile): Make null cleanup after
5415 early return.
5416
4727bad3
TT
54172011-06-30 Tom Tromey <tromey@redhat.com>
5418
5419 * Makefile.in (SUBDIR_MI_CFLAGS): Don't add -DMI_OUT=1.
5420
bb361dbf
AB
54212011-06-30 Andrew Burgess <aburgess@broadcom.com>
5422
5423 * MAINTAINERS (Write After Approval): Add myself to the list.
5424
e0d00bc7
JK
54252011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
5426
5427 Disable epilogue unwinders on recent GCCs.
5428 * amd64-tdep.c (amd64_in_function_epilogue_p): New variable symtab,
5429 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
5430 * dwarf2read.c (process_full_comp_unit): Initialize
5431 EPILOGUE_UNWIND_VALID.
5432 * i386-tdep.c (i386_in_function_epilogue_p): New variable symtab,
5433 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
5434 * symtab.h (struct symtab): New field epilogue_unwind_valid.
5435
4632c0d0
JK
54362011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
5437
5438 Code cleanup - reformatting.
5439 * dwarf2read.c (producer_is_gcc_ge_4_0): Rename to ...
5440 (producer_is_gcc_ge_4): ... here, change the return value.
5441 (process_full_comp_unit): New variable gcc_4_minor, adjust the value
5442 interpretation.
5443
32019081
JK
54442011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
5445
5446 Fix non-only rename list for Fortran modules import.
5447 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Adjust the
5448 cp_add_using_directive caller.
5449 (cp_add_using_directive): New parameter excludes, describe it. New
5450 variables ix and param. Compare if also excludes match. Allocate NEW
5451 with variable size, initialize EXCLUDES there.
5452 (cp_lookup_symbol_imports): New variable excludep, test
5453 current->EXCLUDES with it.
5454 * cp-support.h: Include vec.h.
5455 (struct using_direct): New field excludes, describe it.
5456 (DEF_VEC_P (const_char_ptr)): New.
5457 (cp_add_using_directive): New parameter excludes.
5458 * defs.h (const_char_ptr): New typedef.
5459 * dwarf2read.c (read_import_statement): New variables child_die,
5460 excludes and cleanups, read in excludes.
5461 (read_namespace): Adjust the cp_add_using_directive caller.
5462
70c622a3
JK
54632011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
5464
5465 Code cleanup.
5466 * cp-namespace.c (cp_add_using_directive): Turn positive comparison to
5467 negative comparisons.
5468
39c4d40a
TT
54692011-06-29 André Pönitz <andre.poenitz@nokia.com>
5470
5471 * mi/mi-main.c (mi_cmd_list_features): Emit
5472 breakpoint-notifications.
5473
3b2b8fea
TT
54742011-06-29 Tom Tromey <tromey@redhat.com>
5475
5476 PR fortran/10036:
5477 * valprint.h (generic_emit_char, generic_printstr): Declare.
5478 * valprint.c (wchar_printable, append_string_as_wide)
5479 (print_wchar): Move from c-lang.c.
5480 (generic_emit_char): New function; mostly taken from c_emit_char.
5481 (generic_printstr): New function; mostly taken from c_printstr.
5482 * f-valprint.c (f_val_print) <TYPE_CODE_ARRAY>: Handle strings
5483 represented as arrays.
5484 <TYPE_CODE_CHAR>: Treat as TYPE_CODE_INT; recognize as character
5485 type.
5486 * f-typeprint.c (f_type_print_base) <TYPE_CODE_CHAR>: Treat
5487 identically to TYPE_CODE_INT.
5488 * f-lang.c (f_get_encoding): New function.
5489 (f_emit_char): Use generic_emit_char.
5490 (f_printchar): Replace comment.
5491 (f_printstr): Use generic_printstr.
5492 * dwarf2read.c (read_base_type) <DW_ATE_unsigned>: Handle Fortran
5493 "character" types specially.
5494 <DW_ATE_signed_char, DW_ATE_unsigned_char>: Make TYPE_CODE_CHAR
5495 for Fortran.
5496 * c-lang.c (wchar_printable, append_string_as_wide, print_wchar):
5497 Move to valprint.c
5498 (c_emit_char): Call generic_emit_char.
5499 (c_printstr): Call generic_printstr.
5500
168e6d44
GB
55012011-06-29 Gary Benson <gbenson@redhat.com>
5502
5503 * breakpoint.c (bpstat_what): Removed duplicated case.
5504
1c033f8c
TT
55052011-06-28 Tom Tromey <tromey@redhat.com>
5506
5507 * python/python-internal.h (PY_SSIZE_T_CLEAN): Define.
5508
5fe41fbf
TT
55092011-06-27 Tom Tromey <tromey@redhat.com>
5510
5511 * valops.c (find_overload_match): Call do_cleanups before early
5512 return.
5513 * top.c (execute_command): Call do_cleanups before early return.
5514 (command_loop): Likewise.
5515 * stack.c (backtrace_command): Make a null cleanup early. Don't
5516 conditionally call do_cleanups.
5517 * python/py-value.c (TRY_CATCH): Move cleanup handling into
5518 TRY_CATCH.
5519 * python/py-breakpoint.c (gdbpy_breakpoint_has_py_cond): Rearrange
5520 so cleanups are always run.
5521 * mi/mi-cmd-var.c (mi_cmd_var_delete): Reset old_cleanups.
5522 * findcmd.c (parse_find_args): Call do_cleanups on early return
5523 path.
5524 * dbxread.c (elfstab_build_psymtabs): Make a null cleanup early.
5525 Don't conditionally call do_cleanups.
5526 * cli/cli-script.c (execute_user_command): Initialize 'old_chain'
5527 later.
5528
e26bd57d
EB
55292011-06-27 Eric Botcazou <ebotcazou@adacore.com>
5530
5531 * MAINTAINERS (Write After Approval): Use default email address.
5532
6c3097fc
JB
55332011-06-27 Joel Brobecker <brobecker@adacore.com>
5534
5535 * MAINTAINERS (Write After Approval): Add Eric Botcazou.
5536
369c397b
JB
55372011-06-27 Eric Botcazou <ebotcazou@adacore.com>
5538
5539 * sparc-tdep.h (struct sparc_frame_cache): Add frame_offset,
5540 saved_regs_mask and copied_regs_mask fields.
5541 (sparc_record_save_insn): New prototype.
5542 * sparc-tdep.c (sparc_alloc_frame_cache): Initialize the new fields.
5543 (sparc_record_save_insn): New function.
5544 (sparc_analyze_prologue): Add head comment. Recognize store insns
5545 of call-saved registers. Use OFFSET consistently. Recognize flat
5546 frames and cache their settings.
5547 (sparc32_skip_prologue): Handle flat frames.
5548 (sparc_frame_cache): Add frame_offset to the base address.
5549 (sparc32_frame_cache): Adjust to new frame description.
5550 (sparc32_frame_prev_register): Likewise.
5551 * sparc64-tdep.c (sparc64_frame_prev_register): Likewise.
5552 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
5553 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
5554 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_cache): Force the
5555 frame by calling sparc_record_save_insn.
5556 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_cache): Likewise.
5557 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_cache): Likewise.
5558 * sparc64obsd-tdep.c (sparc64obsd_frame_cache): Likewise.
5559
b315ab21
TG
55602011-06-27 Tristan Gingold <gingold@adacore.com>
5561
5562 * dwarf2read.c (struct dwarf2_section_info): Replace was_mmapped
5563 field by map_addr and map_len.
5564 (dwarf2_read_section): Adjust for the new bfd_mmap api.
5565 (munmap_section_buffer): Likewise.
5566
ddd49eee
TT
55672011-06-24 Tom Tromey <tromey@redhat.com>
5568
5569 * varobj.c (update_dynamic_varobj_children): Make 'name' const.
5570 * symtab.h (lookup_struct, lookup_union, lookup_enum): Update.
5571 * python/python.c (gdbpy_parameter): Make 'arg' const.
5572 (execute_gdb_command): Likewise.
5573 (gdbpy_decode_line): Likewise. Copy it.
5574 (gdbpy_parse_and_eval): Make 'expr_string' const. Copy it.
5575 (gdbpy_write): Make 'arg' const.
5576 * python/py-type.c (typy_lookup_typename): Make 'type_name'
5577 const.
5578 (gdbpy_lookup_type): Likewise.
5579 * python/py-prettyprint.c (print_children): Make 'name' const.
5580 * python/py-param.c (parmpy_init): Make 'name' const. Copy it.
5581 * python/py-inferior.c (infpy_write_memory): Make 'buf_len' a
5582 Py_ssize_t.
5583 * python/py-function.c (fnpy_init): Make 'name' const.
5584 * python/py-cmd.c (cmdpy_init): Make 'name' const. Copy it.
5585 (gdbpy_string_to_argv): Make 'input' const.
5586 * python/py-breakpoint.c (bppy_init): Make 'spec' const. Copy
5587 it.
5588 * gdbtypes.h (lookup_typename): Update.
5589 * gdbtypes.c (lookup_typename): Make 'name' const.
5590 (lookup_struct): Likewise.
5591 (lookup_union): Likewise.
5592 (lookup_enum): Likewise.
5593
5998129b
TT
55942011-06-24 Tom Tromey <tromey@redhat.com>
5595
5596 * Makefile.in (HFILES_NO_SRCDIR): Add "common/" to
5597 gdb_thread_db.h. Move all common/ entries to be together.
5598 (TAGS): Don't depend on DEPFILES.
5599
6e586cc5
YQ
56002011-06-23 Yao Qi <yao@codesourcery.com>
5601
5602 * infrun.c (start_remote): Move call init_wait_for_inferior to ...
5603 * remote.c (remote_start_remote): ... here.
5604 * monitor.c (monitor_open): ... here.
5605
86c3c1fc
AB
56062011-06-23 Andrew Burgess <aburgess@broadcom.com>
5607
5608 * gdbtypes.c (append_composite_type_field_aligned): Fix
5609 calculation of bit position based on alignment.
5610
28010a5d
PA
56112011-06-22 Pedro Alves <pedro@codesourcery.com>
5612
5613 * breakpoint.c (bpstat_stop_status): Call the check_status
5614 breakpoint_ops method.
5615 (print_one_breakpoint_location): Also print the condition for Ada
5616 exception catchpoints.
5617 (allocate_bp_location): New, factored out from
5618 allocate_bp_location.
5619 (allocate_bp_location): Adjust. Call the owner breakpoint's
5620 allocate_location method, if there is one.
5621 (free_bp_location): Call the locations's dtor method, if there is
5622 one.
5623 (init_raw_breakpoint_without_location): New breakpoint_ops
5624 parameter. Use it.
5625 (set_raw_breakpoint_without_location): Adjust.
5626 (init_raw_breakpoint): New breakpoint_ops parameter. Pass it down.
5627 (set_raw_breakpoint): Adjust.
5628 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
5629 (catch_syscall_breakpoint_ops): Install NULL allocate_location,
5630 re_set and check_status methods.
5631 (init_catchpoint): Don't memset, initialize thread, addr_string
5632 and enable_state. Pass the ops down to init_raw_breakpoint.
5633 (install_catchpoint): Rename to ...
5634 (install_breakpoint): ... this, and make extern.
5635 (create_fork_vfork_event_catchpoint): Adjust.
5636 (catch_exec_breakpoint_ops): Install NULL allocate_location,
5637 re_set and check_status methods.
5638 (create_syscall_event_catchpoint): Adjust.
5639 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
5640 (masked_watchpoint_breakpoint_ops): Install NULL
5641 allocate_location, re_set and check_status methods.
5642 (catch_exec_command_1): Adjust.
5643 (gnu_v3_exception_catchpoint_ops): Install NULL allocate_location,
5644 re_set and check_status methods.
5645 (create_ada_exception_breakpoint): Rename to ...
5646 (init_ada_exception_breakpoint): ... this. Add a struct
5647 breakpoint parameter, and delete the exp_string, cond_string and
5648 cond parameters. Use init_raw_breakpoint, and don't install or
5649 mention the breakpoint yet. Don't clear breakpoint fields that
5650 init_raw_breakpoint already clears.
5651 (re_set_breakpoint): Delete, split into ...
5652 (breakpoint_re_set_default, prepare_re_set_context): ... these new
5653 functions.
5654 (breakpoint_re_set_one): Call the breakpoint's
5655 breakpoint_ops->re_set implementation, if there's one. Adjust.
5656 * breakpoint.h: Forward declare struct bpstats and struct bp_location.
5657 (struct bp_location_ops): New type.
5658 (struct bp_location): New field `ops'.
5659 (struct breakpoint_ops): New `allocate_location', `re_set' and
5660 `check_status' fields. Make `breakpoint_hit''s description match
5661 reality.
5662 (init_bp_location): Declare.
5663 (breakpoint_re_set_default): Declare.
5664 (create_ada_exception_breakpoint): Rename to ...
5665 (init_ada_exception_breakpoint): ... this. Add a struct
5666 breakpoint parameter, and delete the exp_string, cond_string and
5667 cond parameters.
5668 (install_breakpoint): Declare.
5669 * ada-lang.c: Include exceptions.h.
5670 <Ada exceptions description>: Update.
5671 (struct ada_catchpoint_location): New type.
5672 (ada_catchpoint_location_dtor): New function.
5673 (ada_catchpoint_location_ops): New global.
5674 (ada_catchpoint): New type.
5675 (create_excep_cond_exprs): New function.
5676 (dtor_exception, allocate_location_exception, re_set_exception)
5677 (should_stop_exception, check_status_exception): New functions.
5678 (print_one_exception, print_mention_exception)
5679 (print_recreate_exception): Adjust.
5680 (dtor_catch_exception, allocate_location_catch_exception)
5681 (re_set_catch_exception, check_status_catch_exception): New
5682 functions.
5683 (catch_exception_breakpoint_ops): Install them.
5684 (dtor_catch_exception_unhandled)
5685 (allocate_location_catch_exception_unhandled)
5686 (re_set_catch_exception_unhandled)
5687 (check_status_catch_exception_unhandled): New functions.
5688 (catch_exception_unhandled_breakpoint_ops): Install them.
5689 (dtor_catch_assert, allocate_location_catch_assert)
5690 (re_set_catch_assert, check_status_catch_assert): New functions.
5691 (catch_assert_breakpoint_ops): Install them.
5692 (ada_exception_catchpoint_p): Delete.
5693 (catch_ada_exception_command_split)
5694 (ada_exception_catchpoint_cond_string): Rename exp_string
5695 parameter to excep_string. Adjust.
5696 (ada_parse_catchpoint_condition): Delete.
5697 (ada_exception_sal): Rename the exp_string parameter to
5698 excep_string. Delete the cond_string and cond parameters.
5699 Adjust.
5700 (ada_decode_exception_location): Rename the exp_string parameter
5701 to excep_string. Delete the cond_string and cond parameters.
5702 Adjust.
5703 (create_ada_exception_catchpoint): New function.
5704 (catch_ada_exception_command, ada_decode_assert_location)
5705 (catch_assert_command): Adjust.
5706 * ada-lang.h (ada_exception_catchpoint_p): Delete declaration.
5707
9ac4176b
PA
57082011-06-22 Pedro Alves <pedro@codesourcery.com>
5709
5710 * ada-lang.c: Include arch-utils.h.
5711 (ada_decode_exception_location): Make static.
5712 (catch_ada_exception_command): Moved here from breakpoint.c.
5713 (ada_decode_assert_location): Make static.
5714 (catch_assert_command): Moved here from breakpoint.c.
5715 (_initialize_ada_lang): Install the exception and assert
5716 catchpoint commands here.
5717 * ada-lang.h (ada_decode_exception_location)
5718 (ada_decode_assert_location): Delete declarations.
5719 * breakpoint.c (CATCH_PERMANENT, CATCH_TEMPORARY): Moved to
5720 breakpoint.h.
5721 (create_ada_exception_breakpoint): Make extern.
5722 (catch_ada_exception_command, catch_assert_command): Moved to
5723 ada-lang.c.
5724 (add_catch_command): Make extern.
5725 (_initilize_breakpoint): Don't install the exception and assert
5726 catchpoint commands here.
5727 * breakpoint.h (CATCH_PERMANENT, CATCH_TEMPORARY): Moved from
5728 breakpoint.c
5729 (add_catch_command, create_ada_exception_breakpoint): Declare.
5730
c56053d2
PA
57312011-06-22 Pedro Alves <pedro@codesourcery.com>
5732
5733 * breakpoint.c (init_raw_breakpoint_without_location): Don't add
5734 the breakpoint to the breakpoint chain here.
5735 (set_raw_breakpoint_without_location): Add the breakpoint to the
5736 breakpoint chain here.
5737 (init_raw_breakpoint): Adjust comments.
5738 (set_raw_breakpoint): Add the breakpoint to the breakpoint chain
5739 here.
5740 (init_catchpoint): Don't set the catchpoint's breakpoint number
5741 here.
5742 (install_catchpoint): New function.
5743 (create_fork_vfork_event_catchpoint)
5744 (create_syscall_event_catchpoint, catch_exec_command_1): Adjust to
5745 use install_catchpoint.
5746
d2f3fc74
PA
57472011-06-22 Pedro Alves <pedro@codesourcery.com>
5748
5749 * breakpoint.c (create_catchpoint_without_mention)
5750 (create_catchpoint): Delete.
5751
b4d90040
PA
57522011-06-22 Pedro Alves <pedro@codesourcery.com>
5753
5754 * breakpoint.h (struct breakpoint): Delete field `exec_pathname'.
5755 * breakpoint.c (init_raw_breakpoint_without_location): Remove
5756 reference to exec_pathname.
5757 (struct exec_catchpoint): New type.
5758 (dtor_catch_exec): New function.
5759 (insert_catch_exec, print_it_catch_exec, print_one_catch_exec): Adjust.
5760 (catch_exec_breakpoint_ops): Install dtor_catch_syscall.
5761 (catch_exec_command_1): Adjust to use init_catchpoint.
5762 (delete_breakpoint): Remove reference to exec_pathname.
5763
be5c67c1
PA
57642011-06-22 Pedro Alves <pedro@codesourcery.com>
5765
5766 * breakpoint.h (struct breakpoint_ops): New field `dtor'.
5767 (struct breakpoint): Delete field `syscalls_to_be_caught'.
5768 * breakpoint.c (init_raw_breakpoint_without_location): Remove
5769 reference to syscalls_to_be_caught.
5770 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops): Install a
5771 NULL `dtor'.
5772 (struct syscall_catchpoint): New type.
5773 (dtor_catch_syscall): New function.
5774 (insert_catch_syscall, remove_catch_syscall)
5775 (breakpoint_hit_catch_syscall, print_one_catch_syscall)
5776 (print_recreate_catch_syscall): Adjust.
5777 (catch_syscall_breakpoint_ops): Install dtor_catch_syscall.
5778 (catch_exec_breakpoint_ops): Install a NULL `dtor'.
5779 (create_syscall_event_catchpoint): Adjust to use init_catchpoint.
5780 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
5781 (masked_watchpoint_breakpoint_ops)
5782 (gnu_v3_exception_catchpoint_ops): Install a NULL `dtor'.
5783 (delete_breakpoint): Call the `dtor' breakpoint_ops method, if
5784 there is one. Remove references to syscalls_to_be_caught.
5785 (catching_syscall_number): Adjust.
5786 * ada-lang.c (catch_exception_breakpoint_ops)
5787 (catch_exception_unhandled_breakpoint_ops)
5788 (catch_assert_breakpoint_ops): Install a NULL `dtor'.
5789
e29a4733
PA
57902011-06-22 Pedro Alves <pedro@codesourcery.com>
5791
5792 * breakpoint.h (struct breakpoint): Delete forked_inferior_pid
5793 field.
5794 * breakpoint.c (init_raw_breakpoint_without_location): Remove
5795 reference to forked_inferior_pid.
5796 (struct fork_catchpoint): New type.
5797 (breakpoint_hit_catch_fork, print_it_catch_fork)
5798 (print_one_catch_fork, breakpoint_hit_catch_vfork)
5799 (print_it_catch_vfork, print_one_catch_vfork): Adjust.
5800 (create_fork_vfork_event_catchpoint): Adjust to use
5801 init_catchpoint.
5802
346774a9
PA
58032011-06-22 Pedro Alves <pedro@codesourcery.com>
5804
5805 * breakpoint.c (add_to_breakpoint_chain)
5806 (init_raw_breakpoint_without_location): New functions, factored
5807 out from ...
5808 (set_raw_breakpoint_without_location): ... this one.
5809 (init_raw_breakpoint): New function, factored out from
5810 set_raw_breakpoint and adjusted to use
5811 init_raw_breakpoint_without_location.
5812 (set_raw_breakpoint): Adjust.
5813 (init_catchpoint): New function, factored out from
5814 create_catchpoint_without_mention and adjusted to use
5815 init_raw_breakpoint.
5816 (create_catchpoint_without_mention): Adjust.
5817
c38c4bc5
TT
58182011-06-22 Tom Tromey <tromey@redhat.com>
5819
5820 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_convert>: Treat type
5821 argument of 0 specially.
5822
b138ce37
YQ
58232011-06-22 Yao Qi <yao@codesourcery.com>
5824
5825 * infrun.c (handle_inferior_event): Remove write-only local variable
5826 `sw_single_step_trap_p'.
5827
03de6823
TT
58282011-06-20 Tom Tromey <tromey@redhat.com>
5829
5830 * symtab.c (lookup_language_this): End loop if block is NULL.
5831
66a17cb6
TT
58322011-06-17 Tom Tromey <tromey@redhat.com>
5833
5834 * valops.c (value_of_this): Use lookup_language_this.
5835 * symtab.h (lookup_language_this): Declare.
5836 * symtab.c (lookup_language_this): New function.
5837 (lookup_symbol_aux): Use lookup_language_this.
5838 * ax-gdb.c (gen_expr) <OP_THIS>: Use lookup_language_this.
5839
7518bff5
TT
58402011-06-17 Tom Tromey <tromey@redhat.com>
5841
5842 * value.h (value_of_this): Update.
5843 (value_of_local): Remove.
5844 * valops.c (value_of_this): Rename from value_of_local. Change
5845 parameters.
5846 * p-exp.y (exp): Update.
5847 (variable): Likewise.
5848 * eval.c (evaluate_subexp_standard) <OP_THIS>: Use value_of_this.
5849
aee28ec6
TT
58502011-06-17 Tom Tromey <tromey@redhat.com>
5851
5852 * valops.c (value_of_local): Complain if NAME is NULL.
5853 * std-operator.def (OP_OBJC_SELF): Remove.
5854 * parse.c (operator_length_standard) <OP_OBJC_SELF>: Remove.
5855 * objc-exp.y (name_not_typename): Use OP_THIS.
5856 * expprint.c (print_subexp_standard) <OP_THIS>: Print language's
5857 name for "this".
5858 <OP_OBJC_SELF>: Remove.
5859 * eval.c (evaluate_subexp_standard) <OP_OBJC_SELF>: Remove.
5860
eed8f803
TG
58612011-06-16 Tristan Gingold <gingold@adacore.com>
5862
5863 * python/py-events.h (gdb_py_events): Make it extern.
5864 * python/py-evtregistry.c (gdb_py_events): Declare.
5865
864ac8a7
HZ
58662011-06-16 Hui Zhu <teawater@gmail.com>
5867
5868 * remote.c (remote_trace_set_readonly_regions): Add check for
5869 remote_protocol_packets[PACKET_qXfer_traceframe_info].support before
5870 output warning.
5871
ef7e8358
UW
58722011-06-15 Ulrich Weigand <ulrich.weigand@linaro.org>
5873
5874 * arm-linux-tdep.c: Include "auxv.h".
5875 (AT_HWCAP): Define.
5876 (ARM_LINUX_SIZEOF_VFP): Define.
5877 (arm_linux_supply_vfp): New function.
5878 (arm_linux_collect_vfp): Likewise.
5879 (arm_linux_regset_from_core_section): Handle .reg-arm-vfp sections.
5880 (arm_linux_fpa_regset_sections): New variable.
5881 (arm_linux_vfp_regset_sections): Likewise.
5882 (arm_linux_core_read_description): New function.
5883 (arm_linux_init_abi): Install arm_linux_core_read_description and
5884 arm_linux_fpa_regset_sections or arm_linux_vfp_regset_sections as
5885 appropriate for the architecture.
5886 * arm-tdep.h (struct gdbarch_tdep): Add member "vfpregset".
5887 (tdesc_arm_with_m): Declare.
5888 (tdesc_arm_with_iwmmxt): Likewise.
5889 (tdesc_arm_with_vfpv2): Likewise.
5890 (tdesc_arm_with_vfpv3): Likewise.
5891 (tdesc_arm_with_neon): Likewise.
5892 * arm-linux-nat.c: Move features/*.c includes ...
5893 * arm-tdep.c: ... here.
5894 * arm-linux-nat.c (arm_linux_read_description): Move initializing
5895 target description data structures ...
5896 * arm-tdep.c (_initialize_arm_tdep): ... here.
5897 * arm-linux-nat.c (HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3,
5898 HWCAP_VFPv3D16): Move definitions ...
5899 * arm-linux-tdep.h: ... here.
5900
c2fa21f1
HZ
59012011-06-15 Hui Zhu <teawater@gmail.com>
5902
5903 * remote.c (remote_trace_set_readonly_regions): Add a check for
5904 target_buf_size.
5905
dd707e8e
TT
59062011-06-14 Tom Tromey <tromey@redhat.com>
5907
5908 * coffread.c (coffread_objfile): Rename from current_objfile.
5909 * dbxread.c (dbxread_objfile): Rename from current_objfile.
5910 * mdebugread.c (mdebugread_objfile): Rename from current_objfile.
5911
86cc0029
TT
59122011-06-14 Tom Tromey <tromey@redhat.com>
5913
5914 * jv-lang.c (jv_type_objfile_data_key, dynamics_objfile)
5915 (class_symtab): Remove.
5916 (jv_dynamics_progspace_key): New global.
5917 (jv_per_objfile_free): Reset program space data. Update assert.
5918 Don't clear globals.
5919 (get_dynamics_objfile): Use and set program space data.
5920 (get_java_class_symtab): Use get_dynamics_objfile.
5921 (add_class_symbol): Likewise.
5922 (java_link_class_type): Likewise.
5923 (java_object_type, jv_clear_object_type, set_java_object_type):
5924 Remove.
5925 (get_java_object_type): Update. Don't cache result.
5926 (is_object_type): Don't call set_java_object_type.
5927 (_initialize_java_language): Don't set jv_type_objfile_data_key;
5928 initialize jv_dynamics_progspace_key.
5929
91a81f69
TT
59302011-06-14 Tom Tromey <tromey@redhat.com>
5931
5932 * symtab.h (current_objfile): Don't declare.
5933 * objfiles.h (current_objfile): Don't declare.
5934 * objfiles.c (current_objfile): Remove.
5935 * mdebugread.c (current_objfile): New file-scope global.
5936 * dbxread.c (current_objfile): New file-scope global.
5937 * coffread.c (current_objfile): New file-scope global.
5938
dc7eb48e
PA
59392011-06-13 Pedro Alves <pedro@codesourcery.com>
5940
5941 * top.h (line): Rename to ...
5942 (saved_command_line): ... this.
5943 (linesize): Rename to ...
5944 (saved_command_line_size): ... this.
5945 * top.c (line): Rename to ...
5946 (saved_command_line): ... this.
5947 (linesize): Rename to ...
5948 (saved_command_line_size): ... this.
5949 (dont_repeat, command_line_input, dont_repeat_command): Adjust.
5950 * event-top.c (command_line_handler): Adjust.
5951 * main.c (captured_main): Adjust.
5952
0d6c2135
MK
59532011-06-12 Mark Kettenis <kettenis@gnu.org>
5954
5955 * i386-tdep.c (i386_epilogue_frame_cache): Simplify code. Call
5956 get_frame_func instead of get_frame_pc to determine the code
5957 address used to construct the frame ID.
5958 (i386_epilogue_frame_unwind_stop_reason): Fix coding style.
5959 (i386_epilogue_frame_this_id): Likewise.
5960 (i386_epilogue_frame_prev_register): New function.
5961 (i386_epilogue_frame_unwind): Use i386_epilogue_frame_prev_register.
5962 (i386_stack_tramp_frame_sniffer): Fix coding style.
5963 (i386_stack_tramp_frame_unwind): Use i386_epilogue_frame_prev_register.
5964 (i386_gdbarch_init): Fix comments.
5965
8bbdd3f4
MK
59662011-06-12 Mark Kettenis <kettenis@gnu.org>
5967
5968 * i386-tdep.c (i386_match_insn_block): Use length of the proper
5969 instruction when walking back through the instruction stream.
5970
533a737e
JK
59712011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
5972
5973 * symtab.c (output_partial_symbol_filename): Exchange the filename and
5974 fullname parameters order.
5975
44b13c5a
JK
59762011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
5977
5978 Code cleanup.
5979 * dwarf2read.c (dw2_map_symbol_filenames): Use symbol_filename_ftype
5980 for fun.
5981 * psymtab.c (map_symbol_filenames_psymtab)
5982 (map_partial_symbol_filenames): Likewise.
5983 * psymtab.h: Include symfile.h.
5984 (map_partial_symbol_filenames): Use symbol_filename_ftype for fun.
5985 * symfile.h (symbol_filename_ftype): New.
5986 (struct quick_symbol_functions): Use symbol_filename_ftype for fun of
5987 map_symbol_filenames, clarify more the naming in comment.
5988
0b5574da
DE
59892011-06-07 Doug Evans <dje@google.com>
5990
5991 * cc-with-index.sh: Fix typos in comment.
b8e9bd6c 5992 Look for ../../gdb, for fullname.exp.
0b5574da 5993
5be4dfca
JK
59942011-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
5995 Pedro Alves <pedro@codesourcery.com>
5996
5997 * cli/cli-cmds.c (shell_escape): Use waitpid.
5998 * rs6000-nat.c (exec_one_dummy_insn): Likewise.
5999
316a8b21
TG
60002011-06-07 Tristan Gingold <gingold@adacore.com>
6001
6002 * xcoffread.c (dwarf2_xcoff_names): New variable.
6003 (aix_process_linenos): Add a guard.
6004 (xcoff_symfile_finish): Free dwarf2.
6005 (xcoff_initial_scan): Add dwarf2 support.
6006
3dd5b83d
PA
60072011-06-06 Pedro Alves <pedro@codesourcery.com>
6008
6009 * infcall.c (run_inferior_call): Don't mask async. Instead force
6010 a synchronous wait, if the target can async.
6011
6012 * target.h (struct target_ops): Delete to_async_mask.
6013 (target_async_mask): Delete.
6014 * target.c (update_current_target): Delete references to to_async_mask.
6015 * linux-nat.c (linux_nat_async_mask_value): Delete.
6016 (linux_nat_is_async_p, linux_nat_can_async_p): Remove references
6017 to linux_nat_async_mask_value.
6018 (linux_nat_async_mask): Delete.
6019 (linux_nat_async, linux_nat_close): Remove references to
6020 linux_nat_async_mask_value.
6021 * record.c (record_async_mask_value): Delete.
6022 (record_async): Remove references to record_async_mask_value.
6023 (record_async_mask): Delete.
6024 (record_can_async_p, record_is_async_p): Remove references to
6025 record_async_mask_value.
6026 (init_record_ops, init_record_core_ops): Remove references to
6027 record_async_mask.
6028 * remote.c (remote_async_mask_value): Delete.
6029 (init_remote_ops): Remove reference to remote_async_mask.
6030 (remote_can_async_p, remote_is_async_p): Remove references to
6031 remote_async_mask_value.
6032 (remote_async): Remove references to remote_async_mask_value.
6033 (remote_async_mask): Delete.
6034
6035 * infrun.c (fetch_inferior_event): Don't claim registers changed
6036 if the current thread is already not executing.
6037
64b9b334
JB
60382011-06-03 Joel Brobecker <brobecker@adacore.com> (obvious fix)
6039
6040 From Stephen Kitt <steve@sk2.org>
6041 * breakpoint.c, breakpoint.h, cli/cli-dump.c, dwarf2expr.c,
6042 gdbarch.c, gdbarch.sh, remote.c: Various spelling fixes.
6043
325663dc
JB
60442011-06-03 Joel Brobecker <brobecker@adacore.com>
6045
6046 * dwarf2expr.c (execute_stack_op) [DW_OP_deref]: Handle
6047 the case where ADDR_SIZE is different from TYPE_LENGTH (type).
6048
8cf64490
TT
60492011-06-03 Tom Tromey <tromey@redhat.com>
6050
6051 * python/py-inferior.c (python_inferior_exit): Use inferior's exit
6052 code fields.
6053 * python/py-exitedevent.c (create_exited_event_object): Change
6054 type of 'exit_code'. Optionally add exit_code attribute.
6055 (emit_exited_event): Change type of 'exit_code'.
6056 * python/py-event.h (emit_exited_event): Update.
6057 * mi/mi-interp.c (mi_inferior_exit): Print exit code.
6058 * infrun.c (handle_inferior_event): Set exit code fields on
6059 inferior.
6060 * inferior.h (struct inferior) <has_exit_code, exit_code>: New
6061 fields.
6062 * inferior.c (exit_inferior_1): Initialize new fields.
6063
8ddd9a20
TT
60642011-06-03 Tom Tromey <tromey@redhat.com>
6065
6066 * dwarf2expr.c (get_signed_type): New function.
6067 (execute_stack_op) <DW_OP_shra>: Always perform a signed shift.
6068
8dfd1e6d
KS
60692011-06-02 Keith Seitz <keiths@redhat.com>
6070
6071 * objc-lang.c (find_methods): Increment objfile_csym earlier.
6072
65fdb766
PA
60732011-06-02 Pedro Alves <pedro@codesourcery.com>
6074
6075 * top.h (simplified_command_loop): Delete declaration.
6076
f4b8c29b
MF
60772011-06-01 Mike Frysinger <vapier@gentoo.org>
6078
6079 * remote-sim.c (gdbsim_open): Add the strlen of " --sysroot=" and
6080 gdb_sysroot to the "len" variable. Append both to "arg_buf".
6081
1706c199
YQ
60822011-06-01 Yao Qi <yao@codesourcery.com>
6083
6084 * objfiles.h (obj_section_addr): Update reference to objfile from
6085 `abfd' to `obfd'.
6086 (obj_section_endaddr): Likewise.
6087
d19cd713 60882011-06-01 Daniel Jacobowitz <drow@false.org>
8d07004d
DJ
6089
6090 * MAINTAINERS: Update my email address and affiliation. Also
6091 update Ian Lance Taylor's affiliation. Use UTF-8 for ludo@gnu.org.
6092
e8eb7bc5
KS
60932010-05-31 Keith Seitz <keiths@redhat.com>
6094
6095 PR c++/12750
6096 * linespec.c (get_search_block): New function.
6097 (find_methods): Add FILE_SYMTATB parameter and use it and
6098 get_search_block to pass an appropriate block to
6099 lookup_symbol_in_namespace.
6100 (decode_line_1): Record if *ARGPTR is single-quote enclosed.
6101 Check if *ARGPTR starts with a filename first.
6102 If it does, call locate_first_half again to locate the next
6103 "first half" of the linespec.
6104 Pass FILE_SYMTATB to decode_objc and decode_compound.
6105 Swallow the trailing single-quote if IS_SQUOTE_ENCLOSED.
6106 (locate_first_half): Stop on the first colon seen.
6107 (decode_compound): Add FILE_SYMTAB parameter.
6108 Pass FILE_SYMTAB to lookup_prefix_sym and find_method.
6109 (lookup_prefix_sym): Add FILE_SYMTAB parameter and use
6110 get_search_block with lookup_symbol.
6111 (find_method): Add FILE_SYMTAB parameter and pass it to
6112 find_methods.
6113 (decode_objc): Use get_search_block.
6114
2b1dbab0
KS
61152010-05-31 Keith Seitz <keiths@redhat.com>
6116
6117 PR symtab/12704
6118 * cp-namespace.c (ANONYMOUS_NAMESPACE_LEN): Remove.
6119 (cp_scan_for_anonymous_namespaces): Use CP_ANONYMOUS_NAMESPACE_STR
6120 and CP_ANONYMOUS_NAMESPACE_LEN.
6121 (cp_is_anonymous): Likewise.
6122 * cp-support.h (CP_ANONYMOUS_NAMESPACE_STR): Define.
6123 (CP_ANONYMOUS_NAMESPACE_LEN): Define.
6124 * dwarf2read.c (namespace_name): Likewise.
6125 (fixup_partial_die): Likewise.
6126 * linespec.c (decode_compound): If CP_ANONYMOUS_NAMESPACE_STR is
6127 seen in the input, keep it.
6128
6d549500
PA
61292011-05-30 Pedro Alves <pedro@codesourcery.com>
6130
6131 * target.h (enum inferior_event_type): Delete INF_QUIT_REQ.
6132 * inf-loop.h (inferior_event_handler_wrapper): Delete.
6133 * inf-loop.c (inferior_event_handler_wrapper): Delete.
6134 (inferior_event_handler): Don't handle INF_QUIT_REQ.
6135 * remote.c (_initialize_remote): Register
6136 async_remote_interrupt_twice directly as
6137 sigint_remote_twice_token event.
6138
395bff70
PA
61392011-05-30 Pedro Alves <pedro@codesourcery.com>
6140
6141 * target.h (enum inferior_event_type): Delete INF_ERROR.
6142 * inf-loop.c (inferior_event_handler): Don't handle INF_ERROR.
6143
97224164
PA
61442011-05-30 Pedro Alves <pedro@codesourcery.com>
6145
6146 * interps.c (interp_set): Don't cancel continuations.
6147
07e78767
JK
61482011-05-30 Jan Kratochvil <jan.kratochvil@redhat.com>
6149
6150 * linux-nat.c (linux_lwp_is_zombie): Use xsnprintf.
6151
fa4cd53f
PA
61522011-05-30 Pedro Alves <pedro@codesourcery.com>
6153
6154 * continuations.h (continuation_ftype): Add `err' parameter.
6155 Document parameters.
6156 (do_all_continuations, do_all_continuations_thread)
6157 (do_all_intermediate_continuations)
6158 (do_all_intermediate_continuations_thread)
6159 (do_all_inferior_continuations): Add `err' parameter.
6160 * continuations.c (do_my_continuations_1, do_my_continuations)
6161 (do_all_inferior_continuations, do_all_continuations_ptid)
6162 (do_all_continuations_thread_callback)
6163 (do_all_continuations_thread, do_all_continuations)
6164 (do_all_intermediate_continuations_thread_callback)
6165 (do_all_intermediate_continuations_thread)
6166 (do_all_intermediate_continuations): Add `err' parameter, and pass
6167 it down all the way to the continuations proper.
6168 * inf-loop.c (inferior_event_handler): If fetching an inferior
6169 event throws an error, don't pop the target, and still call the
6170 continuations, but with `err' set. Adjust all other continuation
6171 calls.
6172 * breakpoint.c (until_break_command_continuation): Add `err'
6173 parameter.
6174 * infcmd.c (step_1_continuation): Add `err' parameter. Don't
6175 issue another step if `err' is set.
6176 (struct until_next_continuation_args): New.
6177 (until_next_continuation): Add `err' parameter. Adjust.
6178 (until_next_command): Adjust.
6179 (struct finish_command_continuation_args): Add `thread' field.
6180 (finish_command_continuation): Add `err' parameter. Handle it.
6181 (finish_forward): Adjust.
6182 (attach_command_continuation): Add `err' parameter. Handle it.
6183 * infrun.c (infrun_thread_stop_requested_callback): Adjust to
6184 cancel the continuations.
6185 * interps.c (interp_set): Adjust to cancel the continuations.
6186 * thread.c (clear_thread_inferior_resources): Adjust to cancel the
6187 continuations rather than discarding.
6188 (free_thread): Don't clear thread inferior resources here.
6189 (delete_thread_1): Do it here instead. And do it before removing
6190 the thread from the threads list. Tag the thread as exited before
6191 clearing thread inferior resources.
6192
c2949be0
JB
61932011-05-30 Joel Brobecker <brobecker@adacore.com>
6194
6195 * infcall.c (call_function_by_hand): Rephrase error message.
6196
619cebe8
PA
61972011-05-27 Pedro Alves <pedro@codesourcery.com>
6198
6199 * defs.h (struct thread_info, struct inferior): Delete forward
6200 declarations.
6201 * breakpoint.h (struct thread_info): New forward declaration.
6202 * observer.sh (struct inferior): New forward declaration.
6203 * python/python-internal.h (struct inferior): New forward
6204 declaration.
6205
be34f849
PA
62062011-05-27 Pedro Alves <pedro@codesourcery.com>
6207
6208 * defs.h (struct continuation, continuation_ftype)
6209 (continuation_free_arg_ftype, add_continuation)
6210 (do_all_continuations, do_all_continuations_thread)
6211 (discard_all_continuations, discard_all_continuations_thread)
6212 (add_intermediate_continuation, do_all_intermediate_continuations)
6213 (do_all_intermediate_continuations_thread)
6214 (discard_all_intermediate_continuations)
6215 (discard_all_intermediate_continuations_thread)
6216 (add_inferior_continuation, do_all_inferior_continuations)
6217 (discard_all_inferior_continuations): Move to ...
6218 * continuations.h: ... this new file.
6219 * breakpoint.c, continuations.c, event-top.c, inf-loop.c,
6220 infcmd.c, inferior.c, infrun.c, interps.c: Include
6221 continuations.h.
6222
432b4d03
JK
62232011-05-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6224 Doug Evans <dje@google.com>
6225
6226 Fix PR 10970, PR 12702.
6227 * linux-nat.c (linux_lwp_is_zombie): New function.
6228 (wait_lwp): Initialize status. New variable prev_mask. Block signals.
6229 Check for linux_lwp_is_zombie. Use WNOHANG and sigsuspend.
6230
b0f260d6
PA
62312011-05-27 Pedro Alves <pedro@codesourcery.com>
6232
6233 * defs.h (continuation_ftype, continuation_free_arg_ftype): New
6234 typedefs.
6235 (add_continuation, add_intermediate_continuation)
6236 (add_inferior_continuation): Use them.
6237 * continuations.c (struct continuation): Use them.
6238 (make_continuation_ftype): Delete.
6239 (make_continuation, add_inferior_continuation, add_continuation)
6240 (add_intermediate_continuation): Use continuation_ftype and
6241 continuation_free_arg_ftype. Rename parameters to shorter names.
6242
af1e9a32
PA
62432011-05-27 Pedro Alves <pedro@codesourcery.com>
6244
6245 * continuations.c (make_continuation): Make it return void.
6246 (do_my_continuations): Rename to ...
6247 (do_my_continuations_1): ... this. Remove old_chain parameter and
6248 adjust.
6249 (do_my_continuations): New.
6250 (discard_my_continuations): Rename to ...
6251 (discard_my_continuations_1): ... this. Remove old_chain
6252 parameter and adjust.
6253 (discard_my_continuations): New.
6254 (add_inferior_continuation): Simplify.
6255 (do_all_inferior_continuations): Reimplement on top
6256 do_my_continuations.
6257 (discard_all_inferior_continuations): Simplify.
6258 (add_continuation): Simplify.
6259 (do_all_continuations_ptid): Simplify.
6260 (discard_all_continuations_thread_callback): Simplify.
6261 (add_intermediate_continuation): Simplify.
6262 (discard_all_intermediate_continuations_thread_callback):
6263 Simplify.
6264
50c0c017
PA
62652011-05-27 Pedro Alves <pedro@codesourcery.com>
6266
6267 * utils.c (struct continuation, add_continuation)
6268 (add_inferior_continuation)
6269 (do_all_inferior_continuations, discard_all_inferior_continuations)
6270 (restore_thread_cleanup, do_all_continuations_ptid)
6271 (do_all_continuations_thread_callback)
6272 (do_all_continuations_thread, do_all_continuations)
6273 (discard_all_continuations_thread_callback)
6274 (discard_all_continuations_thread, discard_all_continuations)
6275 (add_intermediate_continuation)
6276 (do_all_intermediate_continuations_thread_callback)
6277 (do_all_intermediate_continuations_thread)
6278 (do_all_intermediate_continuations)
6279 (discard_all_intermediate_continuations_thread_callback)
6280 (discard_all_intermediate_continuations_thread)
6281 (discard_all_intermediate_continuations): Move to ...
6282 * continuations.c: ... this new file, and adjust to no longer
6283 implement continuations on top of cleanups.
6284 * Makefile.in (SFILES): Add continuations.c.
6285 (COMMON_OBS): Add continuations.o.
6286
d8b34453
PA
62872011-05-26 Pedro Alves <pedro@codesourcery.com>
6288
6289 * inferior.h (enum exec_direction_kind): Delete EXEC_ERROR.
6290 * infrun.c (show_exec_direction_func): Don't handle EXEC_ERROR.
6291 Internal error on invalid values.
6292 * reverse.c: Don't handle EXEC_ERROR.
6293 * mi/mi-main.c: Don't handle EXEC_ERROR.
6294
32231432
PA
62952011-05-26 Pedro Alves <pedro@codesourcery.com>
6296
6297 * record.c: Include event-loop.h, inf-loop.h.
6298 (record_beneath_to_async): New global.
6299 (tmp_to_async): New global.
6300 (record_async_inferior_event_token): New global.
6301 (record_open_1): Don't error out if async is enabled.
6302 (record_open): Handle to_async. Create an async event source in
6303 the event loop.
6304 (record_close): Delete the async event source.
6305 (record_resumed): New global.
6306 (record_execution_dir): New global.
6307 (record_resume, record_core_resume): Set them. Register the
6308 target on the event loop.
6309 (record_wait): Rename to ...
6310 (record_wait_1): ... this. Add more debug output. Handle
6311 TARGET_WNOHANG, and the target beneath returning
6312 TARGET_WAITKIND_IGNORE.
6313 (record_wait): Reimplement on top of record_wait_1.
6314 (record_async_mask_value): New global.
6315 (record_async, record_async_mask, record_can_async_p)
6316 (record_is_async_p, record_execution_direction): New functions.
6317 (init_record_ops, init_record_core_ops): Install new methods.
6318 * infrun.c (fetch_inferior_event): Temporarily switch the global
6319 execution direction to the direction the target was going.
6320 (execution_direction): Change type to int.
6321 * target.c (default_execution_direction): New function.
6322 (update_current_target): Inherit and de_fault
6323 to_execution_direction.
6324 * target.h (struct target_ops) <to_execution_direction>: New
6325 field.
6326 (target_execution_direction): New macro.
6327 * inferior.h (execution_direction): Change type to int.
6328
949dc678
PA
63292011-05-26 Pedro Alves <pedro@codesourcery.com>
6330
6331 * infcall.c (call_function_by_hand): Don't allow calling functions
6332 in reverse execution mode.
6333
c13bd2b5
PA
63342011-05-26 Pedro Alves <pedro@codesourcery.com>
6335
6336 * infcmd.c (finish_command): Allow async finish in reverse.
6337
6938fd34
YQ
63382011-05-26 Yao Qi <yao@codesourcery.com>
6339
6340 * gdb_thread_db.h: Delete. Move to ...
6341 * common/gdb_thread_db.h: ... here.
6342
9da8c2a0
PA
63432011-05-26 Pedro Alves <pedro@codesourcery.com>
6344
6345 * infcmd.c (finish_backward): Set a step-resume breakpoint at the
6346 function's entry point instead of a manually managed momentary
6347 breakpoint, and only ever issue one proceed call.
6348 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_STEP_RESUME>: If
6349 doing a reverse-finish, switch to stepi mode, to do another step.
6350 (insert_step_resume_breakpoint_at_sal): Make public.
6351 (normal_stop): No need to save function value return registers if
6352 going reverse.
6353 * inferior.h (insert_step_resume_breakpoint_at_sal): Declare.
6354
2c03e5be
PA
63552011-05-26 Pedro Alves <pedro@codesourcery.com>
6356
6357 * breakpoint.h (enum bptype) <bp_hp_step_resume>: New.
6358 (enum bpstat_what_main_action): Move BPSTAT_WHAT_STEP_RESUME
6359 before BPSTAT_WHAT_STOP_SILENT. Add BPSTAT_WHAT_HP_STEP_RESUME
6360 at the end.
6361 * breakpoint.c (update_breakpoints_after_exec): Also delete hp
6362 step-resume breakpoints.
6363 (print_it_typical): Handle bp_hp_step_resume.
6364 (bpstat_what): Ditto.
6365 (bptype_string): Ditto.
6366 (print_one_breakpoint_location): Ditto.
6367 (allocate_bp_location): Ditto.
6368 (mention): Ditto.
6369 (breakpoint_re_set_one): Ditto.
6370 * infrun.c (handle_inferior_event): Adjust. Split
6371 BPSTAT_WHAT_STEP_RESUME handling in BPSTAT_WHAT_STEP_RESUME and
6372 BPSTAT_WHAT_HP_STEP_RESUME.
6373 (insert_step_resume_breakpoint_at_sal): Rename to ...
6374 (insert_step_resume_breakpoint_at_sal_1): ... this. Add bptype
6375 parameter. Handle it.
6376 (insert_step_resume_breakpoint_at_sal): Reimplement on top of
6377 insert_step_resume_breakpoint_at_sal_1.
6378 (insert_step_resume_breakpoint_at_frame): Rename to ...
6379 (insert_hp_step_resume_breakpoint_at_frame): ... this. Adjust to
6380 set a high-priority step-resume breakpoint.
6381 (insert_step_resume_breakpoint_at_frame): Adjust comment.
6382 (insert_step_resume_breakpoint_at_caller): Ditto.
6383
51be5b68
PA
63842011-05-26 Pedro Alves <pedro@codesourcery.com>
6385
6386 * breakpoint.c (iterate_over_related_breakpoints): New.
6387 (do_map_delete_breakpoint): New.
6388 (delete_command): Pass do_map_delete_breakpoint to
6389 map_breakpoint_numbers.
6390 (do_disable_breakpoint): New.
6391 (do_map_disable_breakpoint): Iterate over the breakpoint's related
6392 breakpoints.
6393 (do_enable_breakpoint): Rename to ...
6394 (enable_breakpoint_disp): ... this.
6395 (enable_breakpoint): Adjust.
6396 (do_enable_breakpoint): New.
6397 (enable_once_breakpoint): Delete.
6398 (do_map_enable_breakpoint): New.
6399 (do_map_enable_once_breakpoint): New.
6400 (enable_once_command, enable_delete_command)
6401 (delete_trace_command): Iterate over the breakpoint's related
6402 breakpoints.
6403
4a1be8d2
PA
64042011-05-26 Pedro Alves <pedro@codesourcery.com>
6405
6406 * alpha-tdep.c (alpha_cannot_fetch_register): Don't return true
6407 for ALPHA_ZERO_REGNUM.
6408 (alpha_supply_int_regs): Explicitly supply zero as the value for
6409 ALPHA_ZERO_REGNUM in the register cache.
6410 * alpha-nat.c (fetch_osf_core_registers): Ditto.
6411
59d70315
YQ
64122011-05-26 Yao Qi <yao@codesourcery.com>
6413
6414 * gdb/gdb_thread_db.h: Remove HAVE_UINTPTR_T.
6415
251d32d9
TG
64162011-05-26 Tristan Gingold <gingold@adacore.com>
6417
6418 * symfile.h (struct dwarf2_section_names): New type.
6419 (struct dwarf2_debug_sections): New type.
6420 (dwarf2_has_info): Add parameter.
6421 * dwarf2read.c (dwarf2_elf_names): New variable.
6422 (INFO_SECTION, ABBREV_SECTION, LINE_SECTION, LOC_SECTION)
6423 (MACINFO_SECTION, STR_SECTION, RANGES_SECTION, TYPES_SECTION)
6424 (FRAME_SECTION, EH_FRAME_SECTION, GDB_INDEX_SECTION): Remove.
6425 (dwarf2_has_info): Add names parameter. Pass names
6426 to dwarf2_locate_sections.
6427 (section_is_p): Rewrite using the names parameter.
6428 (dwarf2_locate_sections): Use section names from the names parameter.
6429 * coffread.c (coff_symfile_read): Adjust call to dwarf2_has_info.
6430 * elfread.c (read_psyms): Ditto.
6431 * machoread.c (macho_symfile_read): Ditto.
6432
652c71b4
AS
64332011-05-25 Andreas Schwab <schwab@redhat.com>
6434
6435 PR gdb/8677
6436 * event-loop.c (handle_file_event): Don't handle POLLHUP as error.
6437
f17170e5
KS
64382011-05-24 Keith Seitz <keiths@redhat.com>
6439
6440 PR breakpoint/12803
6441 * linespec.c (keep_name_info): Add handling for "volatile" keyword.
6442 (decode_compound): Unconditionally call keep_name_info.
6443
cdac0397
PA
64442011-05-24 Pedro Alves <pedro@codesourcery.com>
6445
6446 * breakpoint.c (watchpoint_check): If the watchpoint went out of
6447 scope, clear its command list.
6448 (map_breakpoint_numbers): Don't walk the related breakpoints list
6449 of each breakpoint.
6450
91d4fe3f
TT
64512011-05-24 Tom Tromey <tromey@redhat.com>
6452
6453 * MAINTAINERS: Move Jim Blandy to past maintainers.
6454
3017a003
TG
64552011-05-24 Tristan Gingold <gingold@adacore.com>
6456
6457 * symfile.h (enum dwarf2_section_enum): New type.
6458 (dwarf2_get_section_info): New prototype.
6459 * dwarf2read.c (dwarf2_get_section_info): Replace parameter
6460 section_name by sect. Use a switch to select the info.
6461 * dwarf2-frame.c (warf2_get_section_info): Remove prototype.
6462 (dwarf2_build_frame_info): Adjust calls to dwarf2_get_section_info.
6463
c91c8c16
PA
64642011-05-24 Pedro Alves <pedro@codesourcery.com>
6465
6466 * solib-svr4.c (svr4_solib_create_inferior_hook): Skip setting
6467 shared library event breakpoint if there's no execution.
6468
77bc418a
TJB
64692011-05-24 Thiago Jung Bauermann <bauerman@br.ibm.com>
6470
6471 * breakpont.c (remove_hw_watchpoints): Remove unused function.
6472 * breakpoint.h remove_hw_watchpoints(): Remove prototype.
6473
c50491a7
TT
64742011-05-23 Tom Tromey <tromey@redhat.com>
6475
6476 * c-lang.c (evaluate_subexp_c): Use expect_type if it is not
6477 NULL.
6478
6d64e6d4
DE
64792011-05-23 Doug Evans <dje@google.com>
6480
6481 * python/lib/gdb/printing.py (register_pretty_printer): Add missing
6482 entry for RuntimeError to doc string.
6483
2067c8d4
JG
64842011-05-23 Jerome Guitton <guitton@adacore.com>
6485
6486 * sparc-tdep.c (sparc_skip_stack_check): Recognize a new instruction
6487 sequence for probing loops.
6488
b136cd05
PA
64892011-05-23 Pedro Alves <pedro@codesourcery.com>
6490
6491 * infrun.c (user_visible_resume_ptid): Fix typos in describing
6492 comment.
6493
22e74ef9
MK
64942011-05-21 Mark Kettenis <kettenis@gnu.org>
6495
6496 * sparc-nat.c (sparc_fetch_inferior_registers): Explicitly supply
6497 zero as the value for %g0 in the register cache.
6498 * sparc-tdep.c (sparc32_supply_gregset): Likewise.
6499 * sparc64-tdep.c (sparc64_supply_gregset): Likewise.
6500
842951eb
PA
65012011-05-20 Pedro Alves <pedro@codesourcery.com>
6502
6503 * infrun.c (proceed): Set previous_inferior_ptid here.
6504 (init_wait_for_inferior): Initialize previous_inferior_ptid from
6505 inferior_ptid, not null_ptid.
6506 (wait_for_inferior): Don't initialize previous_inferior_ptid here.
6507 (fetch_inferior_event): Nor here.
6508
46cf51e6
PA
65092011-05-20 Pedro Alves <pedro@codesourcery.com>
6510
6511 * inf-loop.c (inferior_event_handler): Only output a message if
6512 verbose.
6513
29ef4c46
LM
65142011-05-20 Luis Machado <lgustavo@codesourcery.com>
6515
6516 * MAINTAINERS: Update my e-mail address.
6517
f148b27e
PA
65182011-05-20 Pedro Alves <pedro@codesourcery.com>
6519
6520 * infrun.c (proceed): Switch the inferior event loop to
6521 INF_EXEC_COMPLETE if the target refused to resume from a
6522 vfork/fork.
6523
09cee04b
PA
65242011-05-20 Pedro Alves <pedro@codesourcery.com>
6525
6526 * infcmd.c: Include "inf-loop.h".
6527 (step_once): When stepping into an inline subroutine, pretend the
6528 target has run. If the target can async, switch the inferior
6529 event loop to INF_EXEC_COMPLETE.
6530 * inferior.h (user_visible_resume_ptid): Declare.
6531 * infrun.c (user_visible_resume_ptid): New function, factored out
6532 from `resume'.
6533 (resume): Use it.
6534 * mi/mi-main.c (mi_execute_async_cli_command): Remove assertion
6535 that the current thread is running. Merge async and sync
6536 branches.
6537
751b8ce1
PA
65382011-05-20 Pedro Alves <pedro@codesourcery.com>
6539
6540 * infcmd.c (step_1): Simplify synchronous case.
6541
e93a69ed
PA
65422011-05-20 Pedro Alves <pedro@codesourcery.com>
6543
6544 * tracepoint.c: Include exceptions.h.
6545 (TFILE_PID): Move higher in file.
6546 (tfile_open): Delay pushing the tfile target until we're assured
6547 the tfile header is present in the file. Wrap reading the initial
6548 newline-terminated lines in TRY_CATCH. Pop the target if the
6549 initial setup failed. Add the tfile's thread immediately
6550 aftwards, before any non-essential setup. Don't skip
6551 post_create_inferior if there are no traceframes present in the
6552 file.
6553 (tfile_close): Remove redundant check for null before xfree call.
6554 (tfile_thread_alive): New function.
6555 (init_tfile_ops): Register it as to_thread_alive callback.
6556
6823e2b1
PA
65572011-05-20 Pedro Alves <pedro@codesourcery.com>
6558
6559 * tracepoint.c (tfile_open): Delete #if 0'd code.
6560
b3c8eb43
JK
65612011-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
6562
6563 Fix -readnow for -gdwarf-4 unused type units.
6564 * dwarf2read.c (struct signatured_type): Remove the field offset.
6565 (create_signatured_type_table_from_index): Remove its initialization.
6566 (create_debug_types_hash_table): Likewise. Initialize per_cu.offset
6567 instead. Add a complaint call.
6568 (process_psymtab_comp_unit): Change assignment to gdb_assert.
6569 (process_type_comp_unit, lookup_die_type, dump_die_shallow)
6570 (lookup_signatured_type_at_offset, read_signatured_type)
6571 (write_one_signatured_type): Update the field for per_cu.
6572
310afc76
TT
65732011-05-19 Tom Tromey <tromey@redhat.com>
6574
6575 * python/py-inferior.c (python_inferior_exit): Use
6576 target_gdbarch.
6577 (python_on_resume): Likewise.
6578
cf6c5ffb
TT
65792011-05-19 Matt Rice <ratmice@gmail.com>
6580
6581 * breakpoint.c (bpstat_do_actions_1): Call prevent_dont_repeat.
6582
fb80a3c5
HZ
65832011-05-19 Hui Zhu <teawater@gmail.com>
6584
6585 * tracepoint.c (tfile_trace_find): Return directly when num is -1.
6586
3672b1be
HZ
65872011-05-19 Hui Zhu <teawater@gmail.com>
6588
6589 * xcoffread.c (read_xcoff_symtab): Initialize fcn_aux_saved.
6590
ff355380
TT
65912011-05-18 Tom Tromey <tromey@redhat.com>
6592
6593 * dwarf2read.c (dwarf2_add_field): Constify.
6594 * value.c (value_static_field): Constify.
6595 * gdbtypes.h (struct main_type) <field.field_location.physname>:
6596 Now const.
6597 * ax-gdb.c (gen_static_field): Constify
6598
ed731959
JK
65992011-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6600
6601 * linux-nat.c (kill_callback): Use SIGKILL first.
6602
967cff16
JB
66032011-05-18 Joel Brobecker <brobecker@adacore.com>
6604
6605 * ada-lang.c (print_it_exception): Avoid use of sprintf.
6606
1d06ead6
TT
66072011-05-18 Tom Tromey <tromey@redhat.com>
6608
6609 * value.c (value_fn_field): Constify.
6610 * symtab.c (gdb_mangle_name): Constify.
6611 * stabsread.c (update_method_name_from_physname): Make 'physname'
6612 argument const.
6613 * p-typeprint.c (pascal_type_print_method_args): Make arguments
6614 const. Use explicit fputc_filtered loop.
6615 (pascal_type_print_base): Constify.
6616 * p-lang.h (pascal_type_print_method_args): Update.
6617 * linespec.c (add_matching_methods): Constify.
6618 (add_constructors): Likewise.
6619 * jv-typeprint.c (java_type_print_base): Constify.
6620 * gdbtypes.h (struct cplus_struct_type)
6621 <fn_fieldlist.fn_field.physname>: Now const.
6622 * dwarf2read.c (compute_delayed_physnames): Constify.
6623 (dwarf2_add_member_fn): Likewise.
6624 * c-typeprint.c (c_type_print_base): Constify. Use cleanups.
6625
0d9a9a5f
PA
66262011-05-18 Pedro Alves <pedro@codesourcery.com>
6627
6628 * infrun.c (resume): Mention which is the current thread, and its
6629 current PC in debug output.
6630 (prepare_to_proceed): Mention the thread switching in debug
6631 output.
6632
05386e9e
TT
66332011-05-18 Tom Tromey <tromey@redhat.com>
6634
6635 * linux-thread-db.c (try_thread_db_load_from_pdir_1): Fix absolute
6636 path check. Use xmalloc and cleanups.
6637 (try_thread_db_load_from_dir): Use xmalloc and cleanups.
6638
ee86786c
TT
66392011-05-17 Tom Tromey <tromey@redhat.com>
6640
6641 * cp-valprint.c (cp_print_value_fields): Catch errors from
6642 value_static_field.
6643
9ff3b74f
TT
66442011-05-17 Tom Tromey <tromey@redhat.com>
6645
6646 * dwarf2read.c (dwarf2_get_die_type): Call
6647 get_die_type_at_offset.
6648 * dwarf2expr.c (dwarf_get_base_type): Handle NULL return from
6649 get_base_type function.
6650
cd3da28e
PA
66512011-05-17 Tomas Martinec <fyzmat@gmail.com>
6652
6653 * infrun.c (handle_inferior_event) <handling deferred step>: Clear
6654 trap_expected.
6655
fd20d931
DE
66562011-05-16 Doug Evans <dje@google.com>
6657
6658 * python/py-auto-load.c (source_section_scripts): Mention objfile
6659 name in warning.
6660
75fc9810
DE
66612011-05-15 Doug Evans <dje@google.com>
6662
290351b8
DE
6663 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New function.
6664 (try_thread_db_load_from_pdir): Call it. If unable to find
6665 libthread_db in directory of libpthread, see if we're looking at
6666 the separate-debug-info copy.
6667
75fc9810
DE
6668 * python/py-autoload.c (print_script): Print "Missing" instead of
6669 "No" for missing scripts.
6670 (info_auto_load_scripts): Tweak "Loaded" column to fit "Missing".
6671
9f7bc587
DE
66722011-05-13 Doug Evans <dje@google.com>
6673
6674 * ui-file.c (stdio_file_write_async_safe): Add comment.
6675
093cee7d
HZ
66762011-05-14 Hui Zhu <teawater@gmail.com>
6677
6678 * ui-file.c (stdio_file_write_async_safe): Add empty check for build.
6679
dbaefcf7
DE
66802011-05-13 Doug Evans <dje@google.com>
6681
98a5dd13
DE
6682 Support $pdir and $sdir in libthread-db-search-path.
6683 * NEWS: Mention $sdir,$pdir.
6684 * gdb_thread_db.h (LIBTHREAD_DB_SEARCH_PATH): Add $sdir:$pdir.
6685 * linux-thread-db.c (try_thread_db_load_from_pdir): New function.
6686 (try_thread_db_load_from_sdir): New function.
6687 (try_thread_db_load_from_dir): New function.
6688 (thread_db_load_search): Handle $pdir, $sdir. Remove trying of
6689 system directories if search of libthread-db-search-path fails,
6690 that is now done via $sdir.
6691 (has_libpthread): New function.
6692 (thread_db_load): Remove search for libthread_db in directory of
6693 libpthread, that is now done via $pdir.
6694
dbaefcf7
DE
6695 * NEWS: Mention "info auto-load-scripts".
6696 * python/py-auto-load.c (struct auto_load_pspace_info): New member
6697 script_not_found_warning_printed.
6698 (init_loaded_scripts_info): Renamed from create_loaded_scripts_hash,
6699 all callers updated. Initialize script_not_found_warning_printed.
6700 (get_auto_load_pspace_data_for_loading): New function.
6701 (maybe_add_script): New function.
6702 (source_section_scripts): Simplify. Only print one warning regardless
6703 of the number of auto-load scripts not found.
6704 (clear_section_scripts): Clear script_not_found_warning_printed.
6705 (auto_load_objfile_script): Record script in hash table.
6706 (count_matching_scripts): New function.
6707 (maybe_print_script): Renamed from maybe_print_section_script, all
6708 callers updated. Rewrite to use ui_out_*.
6709 (info_auto_load_scripts): Renamed from
6710 maintenance_print_section_scripts, all callers updated.
6711 (gdbpy_initialize_auto_load): "maintenance print section-scripts"
6712 renamed as "info auto-load-scripts".
6713
9930639c
TT
67142011-05-13 Tom Tromey <tromey@redhat.com>
6715
6716 * dwarf2expr.c (read_uleb128): Cast intermediate result.
6717 (read_sleb128): Likewise.
6718
06826322
TT
67192011-05-13 Tom Tromey <tromey@redhat.com>
6720
6721 * dwarf2loc.c (disassemble_dwarf_expression): Fix instruction
6722 offset display.
6723
01124a23
DE
67242011-05-13 Doug Evans <dje@google.com>
6725
6726 * linux-nat.c (debug_linux_nat_async): Delete.
6727 Replace all references to use debug_linux_nat instead.
6728 (show_debug_linux_nat_async): Delete.
6729 (sigchld_handler): Call ui_file_write_async_safe instead of
6730 fprintf_unfiltered.
6731 (_initialize_linux_nat): Remove `set debug lin-lwp-async'.
6732 * ui-file.c (struct ui_file): New member to_write_async_safe.
6733 (null_file_write_async_safe): New function.
6734 (ui_file_write_async_safe): New function.
6735 (set_ui_file_write_async_safe): New function.
6736 (ui_file_new): Initialize to_write_async_safe.
6737 (stdio_file_write_async_safe): New function.
6738 (struct stdio_file): New member fd.
6739 (stdio_file_new): Initialize to_write_async_safe, fd.
bbfac39e
DE
6740 (stdio_file_read, stdio_file_isatty): New stdio->fd instead of calling
6741 fileno.
01124a23
DE
6742 * ui-file.h (ui_file_write_async_safe_ftype): New typedef.
6743 (set_ui_file_write_async_safe): Declare.
6744 (ui_file_write_async_safe): Declare.
6745
72fc29ff
TT
67462011-05-13 Tom Tromey <tromey@redhat.com>
6747
6748 * utils.c (do_value_free): New function.
6749 (make_cleanup_value_free): Likewise.
6750 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle value
6751 freeing correctly.
6752 (dwarf2_loc_desc_needs_frame): Call
6753 make_cleanup_value_free_to_mark.
6754 * dwarf2expr.h (struct dwarf_expr_context) <mark>: Remove field.
6755 * dwarf2expr.c (free_dwarf_expr_context): Don't call
6756 value_free_to_mark.
6757 (new_dwarf_expr_context): Don't call value_mark.
6758 * dwarf2-frame.c (execute_stack_op): Call
6759 make_cleanup_value_free_to_mark.
6760 * defs.h (make_cleanup_value_free): Declare.
6761
028d0ed5
TJB
67622011-05-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
6763
6764 * mi/mi-main.c (mi_cmd_execute): Use cleanup from
6765 prepare_execute_command.
6766 * top.c (prepare_execute_command): Return cleanup.
6767 (execute_command): Use cleanup from prepare_execute_command.
6768 * top.h (prepare_execute_command): Change prototype to return
6769 cleanup.
6770 * defs.h (struct value): Add opaque declaration.
6771 (make_cleanup_value_free_to_mark): Add prototype.
6772 * utils.c (do_value_free_to_mark): New function.
6773 (make_cleanup_value_free_to_mark): Likewise.
6774
b087e0ed
TT
67752011-05-12 Tom Tromey <tromey@redhat.com>
6776
6777 * dwarf2expr.c (execute_stack_op) <DW_OP_shr>: Unconditionally
6778 cast left-hand-side to unsigned.
6779
8a9b8146
TT
67802011-05-12 Tom Tromey <tromey@redhat.com>
6781
6782 PR gdb/12617:
6783 * value.h (value_from_contents): Declare.
6784 * value.c (value_from_contents): New function.
6785 * dwarf2read.c (dwarf_stack_op_name): Add new values.
6786 (dwarf2_get_die_type): New function.
6787 * dwarf2loc.c (dwarf_expr_get_base_type): New function.
6788 (allocate_piece_closure): Acquire reference to values.
6789 (read_pieced_value): Update for value-based expressions.
6790 (write_pieced_value): Likewise.
6791 (free_pieced_value_closure): Call value_free as needed.
6792 (dwarf2_evaluate_loc_desc_full): Set get_base_type field.
6793 Update for value-based expressions.
6794 * dwarf2loc.h (dwarf2_get_die_type): Declare.
6795 * dwarf2expr.h (struct dwarf_stack_value) <value>: Change type.
6796 <get_base_type>: New field.
6797 (struct dwarf_expr_piece) <v.value>: Change type.
6798 <v.regno>: New field.
6799 (struct dwarf_expr_context) <mark>: New field.
6800 (dwarf_expr_piece, dwarf_expr_fetch): Update.
6801 (dwarf_expr_pop, dwarf_expr_push): Remove.
6802 (dwarf_expr_push_address): Declare.
6803 * dwarf2expr.c (dwarf_arch_cookie): New global.
6804 (struct dwarf_gdbarch_types): New.
6805 (dwarf_gdbarch_types_init, dwarf_expr_address_type): New
6806 functions.
6807 (dwarf_expr_push): Change type of 'value' argument. Update. Now
6808 static.
6809 (dwarf_expr_push_address): New function.
6810 (dwarf_expr_pop): Now static.
6811 (dwarf_expr_fetch): Change return type.
6812 (dwarf_require_integral): New function.
6813 (dwarf_expr_fetch): Simplify.
6814 (add_piece): Update.
6815 (base_types_equal_p, dwarf_get_base_type, get_unsigned_type): New
6816 functions.
6817 (execute_stack_op) <sign_ext>: Remove.
6818 Use values for DWARF stack.
6819 <DW_OP_GNU_const_type, DW_OP_GNU_deref_type,
6820 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
6821 New cases.
6822 (_initialize_dwarf2expr): New function.
6823 (add_piece): Update.
6824 (new_dwarf_expr_context): Set new field.
6825 (free_dwarf_expr_context): Call value_free_to_mark.
6826 * dwarf2-frame.c (no_base_type): New function.
6827 (execute_stack_op): Set get_base_type field. Update.
6828
e8d28ef4
TT
68292011-05-12 Tom Tromey <tromey@redhat.com>
6830
6831 * dwarf2read.c (read_common_block): Fix formatting.
6832
d248b706
KY
68332011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
6834
6835 * breakpoint.c (disable_breakpoint): Disable all locations
6836 associated with a tracepoint on target if a trace experiment is
6837 running.
6838 (disable_command): Disable a specific tracepoint location on target if
6839 a trace experiment is running.
6840 (do_enable_breakpoint): Enable all locations associated with a
6841 tracepoint on target if a trace experiment is running.
6842 (enable_command) Enable a specific tracepoint location on target if a
6843 trace experiment is running.
6844 * target.c (update_current_target): Add INHERIT and de_fault clauses for
6845 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
6846 to_disable_tracepoint.
6847 * target.h: Add declaration of struct bp_location.
6848 (struct target_ops): Add new functions
6849 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
6850 to_disable_tracepoint to target operations.
6851 (target_supports_enable_disable_tracepoint): New macro.
6852 (target_enable_tracepoint): New macro.
6853 (target_disable_tracepoint): New macro.
6854 * remote.c (struct remote_state): Add new field.
6855 (remote_enable_disable_tracepoint_feature): New.
6856 (remote_protocol_features): Add new entry.
6857 (remote_supports_enable_disable_tracepoint): New.
6858 (remote_enable_tracepoint): New.
6859 (remote_disable_tracepoint): New.
6860 (init_remote_ops): Add remote_enable_tracepoint,
6861 remote_disable_tracepoint and remote_supports_enable_disable_tracepoint
6862 to remote operations.
6863 * tracepoint.c (start_tracing): Allow tracing to start without any
6864 tracepoints enabled with just a warning if they can be re-enabled
6865 later.
6866 * NEWS: Add news item for the new behaviour of the enable and disable
6867 GDB commands when applied to tracepoints.
6868 Add news items for the new remote packets QTEnable and QTDisable.
6869
cc88a640
JK
68702011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6871
6872 * config.in: Regenerate.
6873 * configure: Regenerate.
6874 * configure.ac <--with-system-readline> (for readline_echoing_p):
6875 Remove the test.
6876 * tui/tui-io.c (tui_old_readline_echoing_p): Rename to ...
6877 (tui_old_rl_echoing_p): ... here.
6878 (tui_setup_io): Rename extern declaration readline_echoing_p to
6879 _rl_echoing_p. Adjust assignments for the both renames.
6880
1f84b619
TJB
68812011-05-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
6882
6883 * symtab.c (lookup_symtab): Run cleanup before returning.
6884
74ac6d43
TT
68852011-05-11 Tom Tromey <tromey@redhat.com>
6886
6887 * dwarf2read.c (handle_data_member_location): New function.
6888 (dwarf2_add_field): Use it.
6889 (read_common_block): Likewise.
6890
5488dafb
JK
68912011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6892
6893 Make addrs->SECTINDEX always defined.
6894 * symfile.c (relative_addr_info_to_section_offsets): Check for
6895 SECTINDEX -1, not for zero ADDR.
6896 (addrs_section_compar): Remove checking for invalid SECTINDEX.
6897 (addr_info_make_relative): Set SECTINDEX to -1 for unmatched entries.
6898 * symfile.h (struct section_addr_info) <sectindex>: Update the comment
6899 on its validity.
6900
84e578fb
DE
69012011-05-10 Doug Evans <dje@google.com>
6902
2471d008
DE
6903 * linux-thread-db.c: Whitespace cleanup.
6904 (try_thread_db_load_1): Fix comment.
6905
84e578fb
DE
6906 * linux-thread-db.c (set_libthread_db_search_path): New function.
6907 (_initialize_thread_db): Add setter for libthread-db-search-path.
6908
673c2bbe
DE
69092011-05-09 Doug Evans <dje@google.com>
6910
478aac75
DE
6911 * NEWS: Mention --with-iconv-bin.
6912 * configure.ac: New option --with-iconv-bin.
6913 * configure: Regenerate.
6914 * config.in: Regenerate.
6915 * defs.h (relocate_gdb_directory): Declare.
6916 * main.c (relocate_gdb_directory): Renamed from relocate_directory,
6917 removed progname parameter, and exported. All callers updated.
6918 * charset.c (find_charset_names): Use --with-iconv-bin if specified.
6919
673c2bbe
DE
6920 * linux-nat.c (lin_lwp_attach_lwp): For !WIPSTOPPED case,
6921 adding missing call to restore_child_signals_mask.
6922
e4c8541f
PA
69232011-05-09 Pedro Alves <pedro@codesourcery.com>
6924
6925 * inferior.h (wait_for_inferior): Remove `thread_exec_as_sigtrap'
6926 parameter.
6927 * infrun.c (proceed, start_remote): Adjust.
6928 (wait_for_inferior): Remove `thread_exec_as_sigtrap' parameter,
6929 and adjust to not handle it.
6930 * solib-irix.c (irix_solib_create_inferior_hook): Adjust.
6931 * solib-osf.c (osf_solib_create_inferior_hook): Adjust.
6932 * solib-sunos.c (sunos_solib_create_inferior_hook): Adjust.
6933 * solib-svr4.c (svr4_solib_create_inferior_hook): Adjust.
6934 * windows-nat.c (do_initial_windows_stuff): Adjust.
6935 * infcmd.c (attach_command): Adjust.
6936 (notice_new_inferior): Adjust.
6937
a536c6d7
UW
69382011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
6939
6940 * ppc-linux-tdep.c (ppu2spu_prev_register): Handle pseudo registers.
6941 (ppu2spu_unwind_register): Mark pseudo registers unavailable.
6942 * spu-tdep.c (op_selb): Use correct value.
6943
7845b013
UW
69442011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
6945
6946 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Add NULL
6947 "parent" parameter to symbol_file_add_from_bfd call.
6948
9c06b0b4
TJB
69492011-05-06 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
6950 Thiago Jung Bauermann <bauerman@br.ibm.com>
6951
6952 Implement support for PowerPC BookE masked watchpoints.
6953 * NEWS: Mention masked watchpoint support. Create "Changed commands"
6954 section.
6955 * breakpoint.h (struct breakpoint_ops) <works_in_software_mode>: New
6956 method. Initialize to NULL in all existing breakpoint_ops instances.
6957 (struct breakpoint) <hw_wp_mask>: New field.
6958 * breakpoint.c (is_masked_watchpoint): Add prototype.
6959 (update_watchpoint): Don't set b->val for masked watchpoints. Call
6960 breakpoint's breakpoint_ops.works_in_software_mode if available.
6961 (watchpoints_triggered): Handle the case of a hardware masked
6962 watchpoint trigger.
6963 (watchpoint_check): Likewise.
6964 (works_in_software_mode_watchpoint): New function.
6965 (insert_masked_watchpoint, remove_masked_watchpoint)
6966 (resources_needed_masked_watchpoint)
6967 (works_in_software_mode_masked_watchpoint, print_it_masked_watchpoint)
6968 (print_one_detail_masked_watchpoint, print_mention_masked_watchpoint)
6969 (print_recreate_masked_watchpoint, is_masked_watchpoint): New
6970 functions.
6971 (masked_watchpoint_breakpoint_ops): New structure.
6972 (watch_command_1): Check for the existence of the `mask' parameter.
6973 Set b->ops according to the type of hardware watchpoint being created.
6974 * ppc-linux-nat.c (ppc_linux_insert_mask_watchpoint)
6975 (ppc_linux_remove_mask_watchpoint)
6976 (ppc_linux_masked_watch_num_registers): New functions.
6977 (_initialize_ppc_linux_nat): Initialize to_insert_mask_watchpoint,
6978 to_remove_mask_watchpoint and to_masked_watch_num_registers.
6979 * target.c (update_current_target): Mention to_insert_mask_watchpoint,
6980 to_remove_mask_watchpoint, and to_masked_watch_num_registers.
6981 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
6982 (target_masked_watch_num_registers): New functions.
6983 * target.h (struct target_ops) <to_insert_mask_watchpoint>,
6984 <to_remove_mask_watchpoint>, <to_masked_watch_num_registers>: New
6985 methods.
6986 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
6987 (target_masked_watch_num_registers): Add prototypes.
6988
8be455d7
JK
69892011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6990
6991 PR 12573
6992 * dwarf2read.c (struct dwarf2_cu): New field has_loclist.
6993 (producer_is_gcc_ge_4_0): New function.
6994 (process_full_comp_unit): Set also symtab->locations_valid. Move the
6995 symtab->language code.
6996 (var_decode_location): Set cu->has_loclist.
6997 * symtab.c (skip_prologue_sal): New variables saved_pc, force_skip and
6998 skip. Intialize force_skip from locations_valid. Move the prologue
6999 skipping code into two passes.
7000 * symtab.h (struct symtab): Make the primary field a bitfield. New
7001 field locations_valid.
7002
d8228535
JK
70032011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
7004
7005 * c-exp.y (qualified_name): Call destructor_name_p with $1.type.
7006 (classify_inner_name): Call cp_lookup_nested_type with
7007 yylval.tsym.type.
7008 * cp-namespace.c (cp_lookup_nested_type): New variable
7009 saved_parent_type. Call CHECK_TYPEDEF for parent_type. Call
7010 type_name_no_tag_or_error with saved_parent_type.
7011 * dwarf2read.c (load_partial_dies): Read in any children of
7012 DW_TAG_typedef with complaint in such case.
7013 * gdbtypes.c (type_name_no_tag_or_error): New function.
7014 * gdbtypes.h (type_name_no_tag_or_error): New prototype.
7015 * valops.c (destructor_name_p): New comment for parameter type. Remove
7016 type const. Make dname and cp const. Call type_name_no_tag_or_error.
7017 * value.h (destructor_name_p): Remove type const.
7018
1976171a
JK
70192011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
7020
7021 * symtab.c (compare_symbol_name): New function.
7022 (completion_list_add_name, expand_partial_symbol_name): Call it,
7023 remove the variable ncmp.
7024 (default_make_symbol_completion_list_break_on): Reduce SYM_TEXT_LEN,
7025 gdb_assert it.
7026
a9634178
TJB
70272011-05-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
7028
7029 Demote to sw watchpoint only in update_watchpoint.
7030 * breakpoint.c (update_watchpoint): Change between software and
7031 hardware watchpoint for all kinds of watchpoints, not just
7032 read/write ones. Determine b->exact value here instead of
7033 in watch_command_1. Error out if there are not enough resources
7034 for a read or access hardware watchpoint.
7035 (watch_command_1): Remove logic of checking whether there are
7036 enough resources available, since update_watchpoint will do that
7037 work now. Don't set b->exact here. Catch exceptions thrown by
7038 update_watchpoint and delete the watchpoint.
7039 (can_use_hardware_watchpoint): Remove exact_watchpoints argument.
7040 Use target_exact_watchpoints instead.
7041 (delete_breakpoint): Notify observers only if deleted watchpoint
7042 has a breakpoint number assigned to it.
7043
4c67c798
JJ
70442011-05-05 Janis Johnson <janisjo@codesourcery.com>
7045
7046 * MAINTAINERS: Add myself as a write-after-approval maintainer.
7047
a3fcb948
JG
70482011-05-05 Jerome Guitton <guitton@adacore.com>
7049
7050 * i386-tdep.c (i386_in_stack_tramp_p, i386_stack_tramp_frame_sniffer):
7051 New functions.
7052 (i386_stack_tramp_frame_unwind): New static global.
7053 (i386_match_pattern): New function, extracted from i386_match_insn.
7054 (i386_match_insn): Use i386_match_pattern.
7055 (i386_match_insn_block): New function.
7056 (i386_tramp_chain_in_reg_insns)
7057 (i386_tramp_chain_on_stack_insns): New static variables.
7058 (i386_gdbarch_init): Add i386_stack_tramp_frame_unwind to list
7059 of unwinders.
7060
4d393d60
JM
70612011-05-04 Joseph Myers <joseph@codesourcery.com>
7062
7063 * configure.host (xscale*): Don't handle target.
7064 * configure.tgt (thumb*-*-* | strongarm*-*-* | xscale-*-*): Don't
7065 handle targets.
7066
f70bd40b
YQ
70672011-05-04 Yao Qi <yao@codesourcery.com>
7068
7069 * gdb_wait.h: remove WAITTYPE and WCOREDUMP.
7070
dd3295ee
JB
70712011-05-03 Joel Brobecker <brobecker@adacore.com>
7072
7073 Revert:
7074 | 2011-03-07 Michael Snyder <msnyder@vmware.com>
7075 | * elfread.c (elf_symtab_read): Stop memory leak.
7076
90375a0e
PM
70772011-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
7078
7079 * nto-tdep.c (nto_target): Replace deprecated call to
7080 cygwin_conv_to_posix_path functions by cygwin_conv_path calls.
7081
d07205c2
JK
70822011-05-03 Jan Kratochvil <jan.kratochvil@redhat.com>
7083
7084 Fix false GCC warning.
7085 * breakpoint.c (do_enable_breakpoint): Initialize orig_enable_state.
7086
1e718ff1
TJB
70872011-05-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
7088
7089 * breakpoint.c (update_watchpoint): Move code to change
7090 the enable state of breakpoint from here ...
7091 (do_enable_breakpoint): ... to here.
7092
35bef4fd
TT
70932011-04-26 Andrew Gontarek <andrewg@cray.com>
7094
78290264
PP
7095 * valprint.c (val_print_array_elements): Fixed poor performance
7096 of printing very large arrays with repeat_count_threshold set
7097 to unlimited. New comment.
35bef4fd 7098
38a714bb
TT
70992011-04-29 Tom Tromey <tromey@redhat.com>
7100
7101 * mi/mi-parse.c (mi_parse): Remove incorrect sizeof.
7102 (mi_parse): Likewise.
7103 * breakpoint.c (break_range_command): Use sizeof char*, not
7104 char**.
7105 (create_breakpoint): Likewise.
7106 (parse_breakpoint_sals): Likewise.
7107
eb73ad13
PA
71082011-04-29 Pedro Alves <pedro@codesourcery.com>
7109
7110 * linux-nat.c (linux_child_remove_fork_catchpoint)
7111 (linux_child_remove_vfork_catchpoint)
7112 (linux_child_remove_exec_catchpoint): New functions.
7113 (linux_target_install_ops): Install them.
7114
d65aec65
PM
71152011-04-29 Phil Muldoon <pmuldoon@redhat.com>
7116
7117 PR mi/12531
7118
7119 * varobj.c (install_default_visualizer): Do not install a
7120 visualizer if the varobj is CPLUS_FAKE_CHILD.
7121 (construct_visualizer): Likewise.
7122
165195f4
JK
71232011-04-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7124
7125 * symtab.c (expand_partial_symbol_name): New variable NCMP. Support
7126 case insensitive comparison.
7127
30852783
UW
71282011-04-28 Ulrich Weigand <ulrich.weigand@linaro.org>
7129
7130 * infrun.c (proceed): Revert previous change.
7131 (resume): Instead, handle the case of signal delivery while stepping
7132 off a breakpoint location here, and only if software single-stepping
7133 is used. Handle nested signals.
7134
7ff120b4
YQ
71352011-04-28 Yao Qi <yao@codesourcery.com>
7136
7137 * arm-tdep.c (copy_unmodified): Rename to ...
7138 (arm_copy_unmodified): .. this. New.
7139 (copy_preload): Move common part to ...
7140 (install_preload): .. this. New.
7141 (arm_copy_preload): New.
7142 (copy_preload_reg): Move common part to ...
7143 (install_preload_reg): ... this. New.
7144 (arm_copy_preload_reg): New.
7145 (copy_b_bl_blx): Move common part to ...
7146 (install_b_bl_blx): .. this. New.
7147 (arm_copy_b_bl_blx): New.
7148 (copy_bx_blx_reg): Move common part to ...
7149 (install_bx_blx_reg): ... this. New.
7150 (arm_copy_bx_blx_reg): New.
7151 (copy_alu_reg): Move common part to ...
7152 (install_alu_reg): ... this. New.
7153 (arm_copy_alu_reg): New.
7154 (copy_alu_shifted_reg): Move common part to ...
7155 (install_alu_shifted_reg): ... this. New.
7156 (copy_ldr_str_ldrb_strb): Move common part to ...
7157 (install_ldr_str_ldrb_strb): ... this. New.
7158 (arm_copy_ldr_str_ldrb_strb): New.
7159 (copy_copro_load_store): Move some common part to ...
7160 (install_copy_copro_load_store): ... this. New.
7161 (arm_copy_copro_load_store): New.
7162 (copy_svc): Delete.
7163 (arm_copy_svc): Renamed from copy_svc.
7164 (copy_undef): Delete.
7165 (arm_copy_undef): Renamed from copy_undef.
7166 (decode_ext_reg_ld_st): Delete.
7167 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
7168 (decode_svc_copro): Delete.
7169 (arm_decode_svc_copro): Renamed from decode_svc_copro.
7170 (copy_copro_load_store, copy_alu_imm): update callers.
7171 (copy_extra_ld_st, copy_block_xfer): Likewise.
7172 (decode_misc_memhint_neon, decode_unconditional): Likewise.
7173 (decode_miscellaneous, decode_dp_misc): Likewise.
7174 (decode_ld_st_word_ubyte, decode_media): Likewise.
7175 (decode_b_bl_ldmstm, decode_ext_reg_ld_st): Likewise.
7176 (decode_svc_copro, decode_misc_memhint_neon): Likewise.
7177 (decode_unconditional, decode_miscellaneous): Likewise.
7178 (decode_media, decode_b_bl_ldmstm): Likewise.
7179 (arm_process_displaced_insn): Likewise..
7180 (decode_misc_memhint_neon): Delete.
7181 (arm_decode_misc_memhint_neon): Renamed from decode_misc_memhint_neon.
7182 (decode_miscellaneous): Delete.
7183 (arm_decode_miscellaneous): Renamed from decode_miscellaneous.
7184 (decode_dp_misc): Delete.
7185 (arm_decode_dp_misc): Renamed from decode_dp_misc.
7186 (decode_ld_st_word_ubyte): Delete.
7187 (arm_decode_ld_st_word_ubyte): Renamed from decode_ld_st_word_ubyte.
7188 (decode_media): Delete.
7189 (arm_decode_media): Renamed from decode_media.
7190 (decode_b_bl_ldmstm): Delete.
7191 (arm_decode_b_bl_ldmstm): Renamed from decode_b_bl_ldmstm.
7192 (decode_ext_reg_ld_st): Delete.
7193 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
7194 (decode_unconditional): Delete.
7195 (arm_decode_unconditional): Renamed from decode_unconditional.
7196
559a7a62
JK
71972011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
7198
7199 Case insensitive lookups implementation.
7200 * dwarf2read.c: Include ctype.h.
7201 (struct mapped_index): New field version.
7202 (mapped_index_string_hash): New parameter index_version. New comment
7203 for it. Call tolower appropriately.
7204 (find_slot_in_mapped_hash): New variable cmp, initialize it, use it.
7205 Choose the right index version for mapped_index_string_hash.
7206 (dwarf2_read_index): Support also the index version 5. Initialize the
7207 new struct mapped_index field version.
7208 (hash_strtab_entry): Pass INT_MAX for the new parameter, explain why.
7209 (find_slot): Explain the version needs. Pass INT_MAX for the new
7210 parameter.
7211 (write_psymtabs_to_index): Produce version 5.
7212 * minsyms.c (lookup_minimal_symbol): New variable cmp, initialize it,
7213 use it. New comment for SYMBOL_MATCHES_SEARCH_NAME.
7214 * psymtab.c (lookup_partial_symbol): Find the
7215 SYMBOL_MATCHES_SEARCH_NAME start of the found block of matching
7216 entries.
7217 * symtab.c (lookup_symbol_in_language): Remove the case_sensitive_off
7218 NAME lowercasing.
7219 (search_symbols): Pass REG_ICASE to regcomp for case_sensitive_off.
7220 (completion_list_add_name): New variable ncmp, initialize it, use it.
7221 * symtab.h (SYMBOL_HASH_NEXT): Always call tolower.
7222 * utils.c (strcmp_iw): Support case_sensitive_off.
7223 (strcmp_iw_ordered): Sort in a way compatible with case_sensitive_off.
7224 New function comment part. New variables saved_string1,
7225 saved_string2 and case_pass. Add a proper second pass.
7226
681bf369
JK
72272011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
7228
7229 Replace re_comp/re_exec by regcomp/regexec.
7230 * symtab.c (struct search_symbols_data): New fields preg, preg_p.
7231 (search_symbols_name_matches): Use them, use regexec.
7232 (search_symbols): New variable retval_chain, adjust the use of
7233 old_chain against it. Replace re_comp by regcomp. Use the new struct
7234 search_symbols_data fields, use regexec instead of re_exec.
7235
b11b1f88
JK
72362011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
7237
7238 Format the code for the next patch.
7239 * dwarf2read.c (struct mapped_index): Include delimiting newlines.
7240 * utils.c (strcmp_iw_ordered): Reformat the code for the next patch.
7241 New variables c1 and c2.
7242
2484c66b
UW
72432011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
7244
7245 * infrun.c (proceed): Do not single-step into signal delivery
7246 when stepping off a breakpoint location.
7247 (insert_step_resume_breakpoint_at_frame): Move prototype earlier.
7248 (insert_step_resume_breakpoint_at_caller): Likewise.
7249 (insert_step_resume_breakpoint_at_sal): Likewise.
7250 (insert_longjmp_resume_breakpoint): Likewise.
7251
47423772
YQ
72522011-04-27 Yao Qi <yao@codesourcery.com>
7253
7254 * common/linux-ptrace.h: Remove include <sys/wait.h>.
7255
13bdd2e7
JB
72562011-04-27 Joel Brobecker <brobecker@adacore.com>
7257
7258 * procfs.c (procfs_pass_signals): Fix advance declaration.
7259
2455069d
UW
72602011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
7261
7262 * target.h (struct target_ops): Remove to_notice_signals;
7263 add to_pass_signals.
7264 (target_notice_signals): Remove.
7265 (target_pass_signals): Add prototype.
7266 * target.c (update_current_target): Remove to_notice_signals;
7267 mention to_pass_signals.
7268 (target_pass_signals): New function.
7269 (debug_to_notice_signals): Remove.
7270 (setup_target_debug): Do not install debug_to_notice_signals.
7271
7272 * infrun.c (signal_pass): New global.
7273 (resume): Call target_pass_signals.
7274 (handle_inferior_event): Report all signals while stepping over
7275 non-steppable watchpoint. Reset trap_expected to ensure breakpoints
7276 are re-inserted when stepping over a signal handler.
7277 (signal_cache_update): New function.
7278 (signal_stop_update): Call it.
7279 (signal_print_update): Likewise.
7280 (signal_pass_update): Likewise.
7281 (handle_command): Call signal_cache_update and target_pass_signals
7282 instead of target_notice_signals.
7283 (_initialize_infrun): Initialize signal_pass.
7284
7285 * linux-nat.c (pass_mask): New global.
7286 (linux_nat_pass_signals): New function.
7287 (linux_nat_create_inferior): Report all signals initially.
7288 (linux_nat_attach): Likewise.
7289 (linux_nat_resume): Use pass_mask to decide whether to directly
7290 handle an inferior signal.
7291 (linux_nat_wait_1): Likewise.
7292 (linux_nat_add_target): Install to_pass_signals callback.
7293
7294 * nto-procfs.c (notice_signals): Remove.
7295 (procfs_resume): Do not call notice_signals.
7296 (procfs_notice_signals): Remove.
7297 (procfs_pass_signals): New function.
7298 (init_procfs_ops): Install to_pass_signals callback instead of
7299 to_notice_signals callback.
7300 (_initialize_procfs): Report all signals initially.
7301
7302 * procfs.c (procfs_notice_signals): Remove.
7303 (procfs_pass_signals): New function.
7304 (procfs_target): Install to_pass_signals callback instead of
7305 to_notice_signals callback.
7306 (register_gdb_signals): Remove.
7307 (procfs_debug_inferior): Report all signals initially.
7308 (procfs_init_inferior): Remove redundant register_gdb_signals call.
7309
7310 * remote.c (remote_pass_signals): Add numsigs and pass_signals
7311 parameters; use them instead of calling signal_..._state routines.
7312 (remote_notice_signals): Remove.
7313 (remote_start_remote): Report all signals initially.
7314 (remote_resume): Do not call remote_pass_signals.
7315 (_initialize_remote): Install to_pass_signals callback instead of
7316 to_notice_signals callback.
7317
46c6471b
PA
73182011-04-27 Pedro Alves <pedro@codesourcery.com>
7319
7320 * breakpoint.c (user_settable_breakpoint): Delete.
7321 (user_breakpoint_p): Remove check on user_settable_breakpoint.
7322 (delete_command): Check user_breakpoint_p instead of looking at
7323 the breakpoint's type.
7324 (disable_command): Ditto.
7325 (enable_command): Ditto.
7326 (delete_trace_command): Use user_breakpoint_p instead of looking
7327 at the breakpoint number directly. When checking if there are
7328 user visible tracepoints, in order to know whether to ask the user
7329 for confirmation, check whether the breakpoint is actually a
7330 tracepoint.
7331
f6d90398
VP
73322011-04-27 Vladimir Prus <vladimir@codesourcery.com>
7333
7334 * python/py-breakpoint.c (gdbpy_breakpoint_created): Fix
7335 compilation.
7336
8d3788bd
VP
73372011-04-27 Vladimir Prus <vladimir@codesourcery.com>
7338
7339 MI breakpoint notifications.
7340
f33edef8
PP
7341 * annotate.c (breakpoint_changed): Adjust parameter type.
7342 * breakpoint.c (set_breakpoint_condition): Adjust to change
7343 in breakpoint_modified type.
7344 (breakpoint_set_commands): Likewise.
7345 (do_map_commands_command): Likewise.
7346 (bpstat_check_breakpoint_conditions): Notify that breakpoint has
7347 changed after bumping hit count.
7348 (bpstat_stop_status): Likewise.
7349 (print_one_breakpoint_location): Don't wrap in tuple here.
7350 (print_one_breakpoint): Always print individual locations.
7351 For locations, use unnamed tuple.
7352 (disable_breakpoints_in_unloaded_shlib): Notify that breakpoint
7353 has changed.
7354 (create_catchpoint, create_syscall_event_catchpoint): Call
7355 breakpoint_created obsever.
7356 (mention): Don't call breakpoint_created observer.
7357 (create_breakpoint_sal): Call breakpoint_created observer.
7358 (create_breakpoint, watch_command_1): Likewise.
7359 (create_ada_exception_breakpoint): Likewise.
7360 (delete_breakpoint): Call breakpoint_deleted breakpoint.
7361 (locations_are_equal): New.
7362 (update_breakpoint_locations): If locations were changed, notify.
7363 (set_ignore_count, disable_breakpoint, do_enable_breakpoint):
7364 Call breakpoint_modified observer.
7365
7366 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
7367 (mi_cmd_break_insert): Don't set observers for modify and delete.
7368 * mi/mi-interp.c (mi_suppress_breakpoint_notifications): New.
7369 (mi_breakpoint_created, mi_breakpoint_deleted)
7370 (mi_breakpoint_modified): New.
7371 (mi_interpreter_init): Hook the above.
7372 * mi/mi-main.c (mi_cmd_execute): Disable breakpoint notifications
7373 while -break-* commands are executing.
7374 * mi/mi-main.h (mi_suppress_breakpoint_notifications): New.
7375 * mi/mi-out.c (struct ui_out_data): New field original_buffer.
7376 (mi_redirect): New.
7377 (mi_ui_out_impl): Hook in mi_redirect.
7378 (mi_field_skip): True to the name, skip the field, don't output
7379 a field with an empty value.
7380
7381 * python/py-breakpoint.c (gdbpy_breakpoint_created)
7382 (gdbpy_breakpoint_deleted): Adjust.
7383 * tui/tui-hooks.c (tui_event_create_breakpoint)
7384 (tui_event_delete_breakpoint, tui_event_modify_breakpoint): Adjust.
8d3788bd 7385
a8f42b45
UW
73862011-04-26 Aleksandar Ristovski <aristovski@qnx.com>
7387
7388 * nto-procfs.c (procfs_insert_hw_watchpoint): Fix prototype.
7389 (procfs_remove_hw_watchpoint): Likewise.
7390
57e12211
TT
73912011-04-26 Michael Walle <michael@walle.cc>
7392
7393 * remote.c (remote_start_remote): Ack packet after sending the
7394 interrupt sequence.
7395
af96c192
YQ
73962011-04-26 Yao Qi <yao@codesourcery.com>
7397
f33edef8
PP
7398 * linux-nat.c: Move common macros to ...
7399 Include linux-ptrace.h.
7400 * common/linux-ptrace.h: ... here. New.
af96c192 7401
3e03848b
JK
74022011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
7403
7404 * elfread.c (elf_symfile_read): Protect dwarf2_initialize_objfile by
7405 !objfile_has_partial_symbols. New comment.
7406 * objfiles.c (objfile_has_partial_symbols): Call HAS_SYMBOLS if
7407 SYM_READ_PSYMBOLS is not present. Extend the comment.
7408 * symfile.h (struct sym_fns): Extend the sym_read_psymbols comment.
7409
1ae0d051
JK
74102011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
7411
7412 * defs.h (ENUM_BITFIELD): Remove.
7413
03f2bd59
JK
74142011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
7415 Eli Zaretskii <eliz@gnu.org>
7416
7417 * NEWS: Document the new gdbserver --once option.
7418
4161fbb0
JZ
74192011-04-21 Jie Zhang <jzhang918@gmail.com>
7420
7421 * MAINTAINERS: Update my email address.
7422
bcb28afc
PM
74232011-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
7424
7425 * gdb_wchar.h (USE_INTERMEDIATE_ENCODING_FUNCTION): New macro.
7426 (INTERMEDIATE_ENCODING): Change value to intermediate_encoding
7427 function call if __STDC_ISO_10646__ macro is defined.
7428 (intermediate_encoding): New prototype.
7429 * charset.c (your_gdb_wchar_t_is_bogus): New extern test variable
7430 to generate compile time error for unsupported gdb_wchar_t size.
7431 (ENDIAN_SUFFIX): New macro.
7432 (intermediate_encoding): New function.
7433
7b08b9eb
JK
74342011-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
7435
7436 * ada-lang.c (struct add_partial_datum): Update the comment for
7437 expand_partial_symbol_name.
7438 (ada_add_partial_symbol_completions): Rename to ...
7439 (ada_expand_partial_symbol_name): ... here, change return type, update
7440 function comment, call symbol_completion_match instead of
7441 symbol_completion_add.
7442 (ada_make_symbol_completion_list): Use now expand_partial_symbol_names
7443 and ada_expand_partial_symbol_name.
7444 * dwarf2read.c (dw2_expand_symtabs_matching): Support NULL
7445 FILE_MATCHER.
7446 (dw2_map_symbol_names): Remove.
7447 (dwarf2_gdb_index_functions): Unlist dw2_map_symbol_names.
7448 * psymtab.c (map_symbol_names_psymtab): Remove.
7449 (expand_symtabs_matching_via_partial): Support NULL FILE_MATCHER.
7450 Support KIND == ALL_DOMAIN. Exchange the NAME_MATCHER and KIND check
7451 order.
7452 (psym_functions): Unlist map_symbol_names_psymtab.
7453 (map_partial_symbol_names): Rename to ...
7454 (expand_partial_symbol_names): ... here, change the FUN type, call
7455 expand_symtabs_matching with ALL_DOMAIN and NULL FILE_MATCHER now.
7456 * psymtab.h (map_partial_symbol_names): Rename to ...
7457 (expand_partial_symbol_names): ... here, change the FUN type.
7458 * symfile.h (struct quick_symbol_functions): Update the description of
7459 expand_symtabs_matching. Remove map_symbol_names.
7460 * symtab.c (search_symbols): Add ALL_DOMAIN to the function comment.
7461 (struct add_name_data): Update the comment for
7462 expand_partial_symbol_name.
7463 (add_partial_symbol_name): Rename to ...
7464 (expand_partial_symbol_name): ... here. Replace
7465 completion_list_add_name call by strncmp.
7466 (default_make_symbol_completion_list_break_on): Use now
7467 expand_partial_symbol_names and expand_partial_symbol_name.
7468 * symtab.h (enum search_domain): New element ALL_DOMAIN.
7469
90476074
TT
74702011-04-20 Tom Tromey <tromey@redhat.com>
7471
7472 * dwarf2read.c (save_gdb_index_command): Replace format
7473 documentation with a pointer to the manual.
7474
c21236dc
PA
74752011-04-20 Pedro Alves <pedro@codesourcery.com>
7476
7477 * regcache.c: Include remote.h.
7478 (enum regcache_dump_what) <regcache_dump_remote>: New enum value.
7479 (regcache_dump): Handle regcache_dump_remote.
7480 (maintenance_print_remote_registers): New function.
7481 (_initialize_regcache): Install "maint print remote-registers"
7482 command.
7483 * remote.c (map_regcache_remote_table): New function, factored out
7484 from ...
7485 (init_remote_state): ... here.
7486 (remote_register_number_and_offset): New.
7487 * remote.h (remote_register_number_and_offset): Declare.
7488
b78974c3
PA
74892011-04-20 Pedro Alves <pedro@codesourcery.com>
7490
7491 * regcache.c (get_thread_arch_regcache): If creating a regcache for
7492 null_ptid, assume and allow a NULL address space, instead of
7493 asking the target for the ptid's address space.
7494 * infrun.c (ptid_is_pid): Remove assertion.
7495
7a9dd1b2
TT
74962011-04-19 Tom Tromey <tromey@redhat.com>
7497
7498 * windows-tdep.c (windows_xfer_shared_library):
7499 * windows-nat.c (get_module_name, windows_make_so):
7500 * v850-tdep.c (v850_handle_pushm):
7501 * utils.c (null_cleanup, gdb_realpath):
7502 * ui-out.c (get_next_header):
7503 * tracepoint.c (clear_traceframe_info):
7504 * symtab.c (lookup_symtab):
7505 * serial.h (struct serial_ops):
7506 * mipsread.c (read_alphacoff_dynamic_symtab):
7507 * infcmd.c (print_return_value):
7508 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address):
7509 * f-exp.y (parse_number):
7510 * exceptions.c (catch_exceptions):
7511 * dummy-frame.c (dummy_frame_this_id):
7512 * defs.h (struct cleanup):
7513 * breakpoint.c (disable_breakpoints_in_unloaded_shlib):
7514 * arm-tdep.c (arm_push_dummy_call):
7515 * amd64-tdep.h (amd64_collect_xsave):
7516 * amd64-tdep.c (amd64_collect_xsave):
7517 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache):
7518 * README (typing): Remove duplicate words.
7519 * cli/cli-decode.c (lookup_cmd_composition): Add comma.
7520 * infrun.c (siginfo_value_read): Fix typo.
7521 * solib-frv.c (frv_fdpic_find_global_pointer): Likewise.
7522 * top.c (source_line_number): Add comma.
7523
9941e0c5
MK
75242011-04-19 Marc Khouzam <marc.khouzam@ericsson.com>
7525
7526 * thread.c (any_live_thread_of_process): Prioritize threads
7527 that are not executing.
7528 * gdbthread.h (any_live_thread_of_process): Update comment
7529 as per above change.
7530
ed4b0e6a
AS
75312011-04-19 Andreas Schwab <schwab@linux-m68k.org>
7532
7533 * xcoffread.c (process_xcoff_symbol): Remove useless cast.
7534 (scan_xcoff_symtab): Likewise.
7535
9b13a2db
PM
75362011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
7537
7538 * xcoffread.c (process_xcoff_symbol): ARI fix: Avoid assignment
7539 inside if clause.
7540
1c6e1b0d
PM
75412011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
7542 Pedro Alves <pedro@codesourcery.com>
7543
7544 * xstormy16-tdep.c (xstormy16_push_dummy_call): Add local
7545 variables to simplify code and avoid == operator at end of
7546 line as this is against GNU coding standards.
7547
74de0234
PM
75482011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
7549
7550 * solib-svr4.c (svr4_keep_data_in_core): Rename local variable
7551 lm_name to name_lm to avoid conflict with lm_name function.
7552
b23518f0
PM
75532011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
7554
7555 ARI fixes: Use only lowercase function name for static functions.
7556 * nto-tdep.c (LM_ADDR): Rename to...
7557 (lm_addr): New function name.
7558 (nto_relocate_section_addresses): Adapt to change above.
7559 * solib-sunos.c (LM_ADDR): Rename to...
7560 (lm_addr): New function name.
7561 (LM_NEXT): Rename to...
7562 (lm_next): New function name.
7563 (sunos_current_sos, sunos_relocate_section_addresses): Adapt to
7564 function name changes above.
7565 * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Rename to...
7566 (lm_addr_from_link_map): New function name.
7567 (HAS_LM_DYNAMIC_FROM_LINK_MAP): Rename to...
7568 (has_lm_dynamic_from_link_map): New function name.
7569 (LM_DYNAMIC_FROM_LINK_MAP): Rename to...
7570 (lm_dynamic_from_link_map): New function name.
7571 (LM_ADDR_CHECK): Rename to...
7572 (lm_addr_check): New function name.
7573 (LM_NEXT): Rename to...
7574 (lm_next): New function name.
7575 (LM_PREV): Rename to...
7576 (lm_prev): New function name.
7577 (LM_NAME): Rename to...
7578 (lm_name): New function name.
7579 (IGNORE_FIRST_LINK_MAP_ENTRY): Rename to...
7580 (ignore_first_link_map_entry): New function name.
7581 (svr4_keep_data_in_core): Adapt to function name changes above.
7582 (svr4_current_sos): Likewise.
7583 (enable_break): Likewise.
7584 (svr4_relocate_section_addresses): Likewise.
7585
1448a0a2
PM
75862011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
7587
7588 ARI cleanup.
7589 * xtensa-tdep.c (xtensa_register_type): Use xstrprintf instead of
7590 sprintf. Simplify code and avoid loosing memory.
7591 (xtensa_register_reggroup_p): Extract assignment out of IF clause.
7592 (call0_frame_cache): Remove && operator from end of line.
7593
02835898
JK
75942011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7595
7596 Fix libraries displacement if they change whether they were prelinked.
7597 * solib-svr4.c (LM_ADDR_CHECK): Set L_ADDR even if the DYNAMIC pointer
7598 does not match. Comment why.
7599
9a845ea2
JK
76002011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7601
7602 * corelow.c: Include wrapper.h.
7603 (core_open): Call now gdb_target_find_new_threads.
7604 * wrapper.c: Include target.h.
7605 (gdb_target_find_new_threads): New.
7606 * wrapper.h (gdb_target_find_new_threads): New declaration.
7607
254f582e
JK
76082011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7609
7610 * linux-thread-db.c (find_new_threads_callback): Exit on zero TI_TID
7611 even if !TARGET_HAS_EXECUTION.
7612
63524580
JK
76132011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7614
7615 Fix convert_code_addr_to_desc_addr for ppc64 files after eu-strip.
7616 * elfread.c (elf_symfile_read): New variable synth_abfd, pass it to
7617 bfd_get_synthetic_symtab.
7618 * jit.c (jit_register_code): Pass NULL to the new parameter parent.
7619 * machoread.c (macho_add_oso_symfile): Pass main_objfile to the new
7620 parameter parent, remove the call to add_separate_debug_objfile.
7621 * solib.c (solib_read_symbols): Pass NULL to the new parameter parent.
7622 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
7623 * symfile.c (symbol_file_add_with_addrs_or_offsets): New parameter
7624 parent, new comment for it, call add_separate_debug_objfile for it.
7625 (symbol_file_add_separate): Pass objfile as the parameter parent,
7626 remove the call to add_separate_debug_objfile.
7627 (symbol_file_add_from_bfd): New parameter parent, pass it.
7628 (symbol_file_add): Pass NULL to the new parameter parent.
7629 * symfile.h (symbol_file_add_from_bfd): New parameter parent.
7630
90359a16
JK
76312011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7632
7633 * elfread.c (elf_symtab_read): Do not ignore .L symbols if they are
7634 BSF_SYNTHETIC.
7635
626e7282
JK
76362011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7637
7638 Fix Python access to inlined frames.
7639 * python/py-frame.c (frapy_read_var): Find BLOCK using get_frame_block.
7640 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
7641
cf31e6f9
TT
76422011-04-15 Tom Tromey <tromey@redhat.com>
7643
7644 * dwarf2read.c (add_index_entry): Use VEC_last, not VEC_length.
7645
c8d895f1
GB
76462011-04-15 Gary Benson <gbenson@redhat.com>
7647
7648 * MAINTAINERS: Add myself to write-after-approval section.
7649
56a9aa1d
MF
76502011-04-14 Mike Frysinger <vapier@gentoo.org>
7651
7652 * remote-sim.c (sim_command_completer): New function.
7653 (_initialize_remote_sim): Set completer to sim_command_completer.
7654
ba770c9c
TJB
76552011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
7656
7657 * breakpoint.c (print_exception_catchpoint): Rename to ...
7658 (print_it_exception_catchpoint): ... this.
7659 (gnu_v3_exception_catchpoint_ops): Update with new name
7660 for print_it_exception_catchpoint.
7661
51bf2553
EBM
76622011-04-13 Edjunior Machado <emachado@linux.vnet.ibm.com>
7663
7664 * MAINTAINERS: Add myself for write after approval privileges.
7665
d242658c
MP
76662011-04-13 Marek Polacek <mpolacek@redhat.com>
7667
7668 * MAINTAINERS: Add myself as a write-after-approval maintainer.
7669
4a4106ca
TJB
76702011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
7671
7672 * breakpoint.c (watch_command_1): Remove colon from exp_string.
7673
26063d49
TJB
76742011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
7675
7676 * breakpoint.c (save_breakpoints): Verify whether
7677 breakpoint_ops.print_recreate is defined before calling it.
7678
7782b183
GB
76792011-04-11 Gary Benson <gbenson@redhat.com>
7680
7681 Fix failure with --enable-maintainer-mode.
7682 * Makefile.in (aclocal_m4_deps): Updated gnulib dependencies.
7683
e8930875
JK
76842011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7685
7686 Code cleanup.
7687 * symtab.c (search_symbols): Reorder the KIND description in the
7688 function comment. Remove the unused 4th element of types, types2,
7689 types3 and types4. New gdb_assert on KIND.
7690 (symtab_symbol_info): Remove the unused 4th element of classnames.
7691 New gdb_assert on KIND.
7692 * symtab.h (enum search_domain): New warning in the enum comment.
7693 Assign numbers to the elements VARIABLES_DOMAIN, FUNCTIONS_DOMAIN and
7694 TYPES_DOMAIN.
7695
b4f2f049
JK
76962011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7697
7698 Fix crash of gdb save-index on a STABS file.
7699 * dwarf2read.c (write_psymtabs_to_index): Return also on no
7700 PSYMTABS_ADDRMAP.
7701
60d5a603
JK
77022011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7703
7704 Fix DW_AT_accessibility compatibility with gcc-4.6+.
7705 * dwarf2read.c: Include ctype.h.
7706 (producer_is_gxx_lt_4_6, dwarf2_default_access_attribute): New
7707 functions.
7708 (dwarf2_add_field): Fix new_field->accessibility by calling
7709 dwarf2_default_access_attribute. Restructure setting accessibility
7710 vs. virtuality.
7711 (dwarf2_add_member_fn): New variable accessibility. Fix fnp
7712 is_private and is_protected by calling
7713 dwarf2_default_access_attribute.
7714
e0f68161
KB
77152011-04-08 Kevin Buettner <kevinb@redhat.com>
7716
7717 * rx-tdep.c (rx_frame_unwind): Add default_frame_unwind_stop_reason
7718 to the initialization.
7719
2e1aae43
SE
77202011-04-08 Steve Ellcey <sje@cup.hp.com>
7721
7722 * Add default_frame_unwind_stop_reason value to libunwind_frame_unwind
7723 initalization.
7724
c6ca3dab
PM
77252011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
7726
7727 Remove support for old Cygwin 1.5 versions.
7728 * remote-fileio.c: Remove macros used to emulate new cygwin_conv_path
7729 function on old Cygwin version.
7730 * windows-nat.c: Remove cygwin version check and always define
7731 __USEWIDE for Cygwin compilation.
7732
bd18283a
YQ
77332011-04-07 Yao Qi <yao@codesourcery.com>
7734
7735 * arm-linux-tdep.c (arm_linux_copy_svc): Remove parameters INSN
7736 and TO.
7737 * arm-tdep.c (cleanup_svc): Handle variable instruction size.
7738 (arm_copy_svc): Remove parameters INSN and TO.
7739 (decode_svc_copro): Update caller.
7740 * arm-tdep.h (struct displaced_step_closure): Remove parameters
7741 from function pointer `copy_svc_os'.
7742
8c8dba6d
YQ
77432011-04-07 Yao Qi <yao@codesourcery.com>
7744
7745 * arm-tdep.c (cleanup_branch): Set a correct return address in
7746 LR for ARM and Thumb.
7747
59d7bcaf
JK
77482011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
7749
7750 Code cleanup.
7751 * dictionary.c (dict_hash): Use SYMBOL_HASH_NEXT.
7752 * dwarf2read.c (mapped_index_string_hash): Refer to SYMBOL_HASH_NEXT
7753 in the function comment, a new note on values compatibility.
7754 * minsyms.c (msymbol_hash_iw, msymbol_hash): Use SYMBOL_HASH_NEXT.
7755 * symtab.h (SYMBOL_HASH_NEXT): New.
7756
e7db58ea
TJB
77572011-04-06 Thiago Jung Bauermann <bauerman@br.ibm.com>
7758
7759 * ppc-linux-nat.c (check_condition): Add len output parameter.
7760 Set it based on the memory region referenced in the condition
7761 expression. Update all callers.
7762
9f743ef6
JK
77632011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
7764
7765 Fix crash regression on systems featuring .gdb_index.
7766 * objfiles.c (free_objfile): Move the
7767 forget_cached_source_info_for_objfile call earlier. Comment it.
7768 Extend the comment for objfile_free_data.
7769
9182c5bc
JK
77702011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
7771
7772 Fix regression of displaying the debug format.
7773 * buildsym.c (end_symtab): Set symtab's debugformat and producer from
7774 subfile.
7775
04bd08de
TT
77762011-04-04 Tom Tromey <tromey@redhat.com>
7777
7778 * cli/cli-interp.c (struct captured_execute_command_args):
7779 Remove.
7780 (do_captured_execute_command): Remove.
7781 (safe_execute_command): Use TRY_CATCH.
7782 * cli/cli-script.c (struct wrapped_read_command_file_args):
7783 Remove.
7784 (wrapped_read_command_file): Remove.
7785 (script_from_file): Use TRY_CATCH.
7786 * exceptions.c (catch_exception): Remove.
7787 * exceptions.h (catch_exception): Remove.
7788 (deprecated_throw_reason): Update comment.
7789 * mi/mi-main.c (captured_mi_execute_command): Change 'data'
7790 argument to 'context'.
7791 (mi_execute_command): Use TRY_CATCH.
7792 * remote.c (struct start_remote_args): Remove.
7793 (remote_start_remote): Update; change arguments.
7794 (remote_open_1): Use TRY_CATCH.
7795
58438ac1
TT
77962011-04-04 Tom Tromey <tromey@redhat.com>
7797
7798 * tracepoint.c (scope_info): Update.
7799 * symtab.c (decode_line_spec): Update.
7800 * python/python.c (gdbpy_decode_line): Update.
7801 * linespec.h (decode_line_1): Update.
7802 * linespec.c (decode_line_1): Remove 'not_found_ptr' argument.
7803 (decode_compound, find_method, symtab_from_filename)
7804 (decode_variable): Likewise.
7805 * cli/cli-cmds.c (edit_command): Update.
7806 (list_command): Update.
7807 * breakpoint.c (parse_breakpoint_sals): Remove 'not_found_ptr'
7808 argument.
7809 (create_breakpoint): Update.
7810 (until_break_command): Update.
7811 (addr_string_to_sals): Update.
7812 (decode_line_spec_1): Update.
7813
b78a6381
TT
78142011-04-04 Tom Tromey <tromey@redhat.com>
7815
7816 * breakpoint.c (struct captured_parse_breakpoint_args): Remove.
7817 (do_captured_parse_breakpoint): Remove.
7818 (create_breakpoint): `e' is now volatile. Remove `parse_args'.
7819 Use TRY_CATCH directly.
7820
00174a86
TT
78212011-04-04 Tom Tromey <tromey@redhat.com>
7822
7823 * symtab.h (free_symtab): Remove.
7824 (forget_cached_source_info_for_objfile): Declare.
7825 * symmisc.c (free_symtab): Remove.
7826 * source.c (forget_cached_source_info_for_objfile): New function.
7827 (forget_cached_source_info): Use it.
7828 * objfiles.c (free_objfile): Simplify check before calling
7829 clear_current_source_symtab_and_line. Call
7830 forget_cached_source_info_for_objfile.
7831
30cc903e
TT
78322011-04-04 Tom Tromey <tromey@redhat.com>
7833
7834 * mdebugread.c (psymtab_to_symtab_1): Copy linetable to obstack.
7835 (new_symtab): Don't set `free_code' on symtab.
7836 (new_linetable): Properly handle size==0.
7837 * symtab.h (struct symtab) <free_code, free_func>: Remove.
7838 * symmisc.c (free_symtab): Don't free the linetable. Don't call
7839 free_func.
7840 * jv-lang.c (struct jv_per_objfile_data): New.
7841 (jv_per_objfile_free): Free the data.
7842 (get_dynamics_objfile): Allocate a jv_per_objfile_data.
7843 (get_java_class_symtab): Set the `dict' field on the
7844 jv_per_objfile_data.
7845 (free_class_block): Remove.
7846 * buildsym.c (end_symtab): Don't set `free_code' or `free_func' on
7847 the symtab.
7848
0c2e6019
TT
78492011-04-04 Tom Tromey <tromey@redhat.com>
7850
7851 * symfile.c (reread_symbols): Update.
7852 * objfiles.h (struct objfile) <cp_namespace_symtab>: Remove
7853 field.
7854 * objfiles.c (allocate_objfile): Update.
7855 * cp-support.h (cp_check_possible_namespace_symbols): Don't
7856 declare.
7857 * cp-namespace.c (lookup_symbol_file): Don't call
7858 lookup_possible_namespace_symbol.
7859 (initialize_namespace_symtab, get_possible_namespace_block)
7860 (free_namespace_block, cp_check_possible_namespace_symbols)
7861 (check_possible_namespace_symbols_loop)
7862 (check_one_possible_namespace_symbol)
7863 (lookup_possible_namespace_symbol): Remove.
7864 (maintenance_cplus_namespace): Replace with notice.
7865 (_initialize_cp_namespace): Deprecate `maint cplus namespace'.
7866
554d387d
TT
78672011-04-04 Tom Tromey <tromey@redhat.com>
7868
7869 * xcoffread.c (read_xcoff_symtab): Make `debugfmt' const.
7870 * symtab.h (struct symtab) <producer, debugformat>: Now const.
7871 * symmisc.c (free_symtab): Don't free debugformat.
7872 * buildsym.h (struct subfile) <producer, debugformat>: Now const.
7873 (record_debugformat, record_producer): Document.
7874 * buildsym.c (end_symtab): Don't save debugformat and producer
7875 names on obstack.
7876 (end_symtab): Don't free debugformat and producer fields.
7877 (record_debugformat): Don't call xstrdup.
7878 (record_producer): Likewise.
7879
d4d4db8a
TT
78802011-04-04 Tom Tromey <tromey@redhat.com>
7881
7882 * source.c (find_source_lines): Remove LSEEK_NOT_LINEAR code.
7883 (source_line_charpos, source_charpos_line): Remove.
7884
8903c50d
TT
78852011-04-04 Tom Tromey <tromey@redhat.com>
7886
7887 * symtab.h (domain_enum): Split in two...
7888 (enum search_domain): New.
7889 (search_symbols): Update.
7890 * symtab.c (print_symbol_info, symtab_symbol_info): Remove
7891 redundant declarations.
7892 (search_symbols): Change 'kind' argument to search_domain.
7893 Update.
7894 (print_symbol_info): Likewise.
7895 (symtab_symbol_info): Likewise.
7896 * symfile.h (struct quick_symbol_functions)
7897 <pre_expand_symtabs_matching>: Change type of 'kind' argument.
7898 <expand_symtabs_matching>: Likewise.
7899 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Update.
7900 (expand_symtabs_matching_via_partial): Update.
7901 * dwarf2read.c (dw2_pre_expand_symtabs_matching): Update.
7902 (dw2_expand_symtabs_for_function): Update.
7903 * block.h: Moved anonymous enum...
7904 * defs.h (enum block_enum): ... here. Now named.
7905
d9351f5f 79062011-04-03 Joel Brobecker <brobecker@adacore.com>
7907
7908 GDB 7.3 branch created (branch timestamp: 2011-04-01 01:00 UTC)
7909 * version.in: Bump version to 7.3.50.20110403-cvs.
7910
d6e00af6
JB
79112011-04-03 Joel Brobecker <brobecker@adacore.com>
7912
7913 * NEWS: Create a new section for the next release branch.
7914 Rename the section of the current branch, now that it has
7915 been cut.
7916
2b9e5ea6
UW
79172011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
7918
7919 * arm-tdep.c (arm_gdbarch_init): Enfore correct register number
7920 for "fpscr" in target description.
7921
0cf03b49
JK
79222011-04-01 Jan Kratochvil <jan.kratochvil@redhat.com>
7923
7924 * dwarf2read.c (find_slot_in_mapped_hash): New variable back_to,
7925 initialize it. Delay HASH initialization. Strip the part after open
7926 parenthesis for languages with qualifiers. Call do_cleanups.
7927
5d901a73
TT
79282011-04-01 Tom Tromey <tromey@redhat.com>
7929
7930 * utils.c (report_command_stats): Don't print `-' for negative
7931 number.
7932
b0dd7688
JB
79332011-04-01 Eric Botcazou <ebotcazou@adacore.com>
7934
7935 * ada-lang.c (ada_is_simple_array_type, ada_value_slice_from_ptr)
7936 (ada_value_slice, empty_array, to_fixed_array_type): Deal with
7937 typedefs.
7938
956a9fb9
JB
79392011-04-01 Joel Brobecker <brobecker@adacore.com>
7940
7941 * breakpoint.h (bpdisp_text): Add declaration.
7942 * breakpoint.c (bpdisp_text): Make non-static.
7943 * ada-lang.c: #include "mi/mi-common.h".
7944 (print_it_exception): Rewrite to improve GDB/MI output.
7945
3352110b
PA
79462011-04-01 Pedro Alves <pedro@codesourcery.com>
7947
7948 * arm-tdep.h (struct address_space): Add forward declaration.
7949
18819fa6
UW
79502011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
7951
7952 * arm-tdep.h (arm_insert_single_step_breakpoint): Add prototype.
7953 * arm-tdep.c (arm_override_mode): New global.
7954 (arm_pc_is_thumb): Respect arm_override_mode. Remove single-step
7955 execution mode heuristics.
7956 (thumb_get_next_pc_raw): Remove INSERT_BKTP argument; always insert
7957 second single-step breakpoint if needed, using
7958 arm_insert_single_step_breakpoint.
7959 (arm_get_next_pc_raw): Remove INSERT_BKTP argument. Only handle
7960 ARM execution mode, do not call thumb_get_next_pc_raw.
7961 (arm_get_next_pc): Encode execution mode in return value. Call
7962 either arm_get_next_pc_raw or thumb_get_next_pc_raw.
7963 (arm_insert_single_step_breakpoint): New function.
7964 (arm_software_single_step): Call it.
7965 * arm-linux-tdep.c (arm_linux_sigreturn_return_addr): Add IS_THUMB
7966 argument to return execution mode of sigreturn target.
7967 (arm_linux_syscall_next_pc): Use it.
7968 (arm_linux_copy_svc): Update call.
7969 (arm_linux_software_single_step): Call
7970 arm_insert_single_step_breakpoint.
7971
a6e293d1
JK
79722011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
7973
7974 * dwarf2read.c (dwarf2_read_index): Fix .gdb_index version number in
7975 the comment.
7976
a4c8e806
TT
79772011-03-31 Tom Tromey <tromey@redhat.com>
7978
7979 * varobj.c (update_dynamic_varobj_children): Properly handle
7980 errors from iterator.
7981
df5c6c50
JK
79822011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
7983
7984 * dwarf2read.c (dwarf2_name): Initialize DEMANGLED. Avoid demangling
7985 struct linkage name twice.
7986
1dae3efc
TT
79872011-03-31 Tom Tromey <tromey@redhat.com>
7988
7989 * python/py-prettyprint.c (print_stack_unless_memory_error): Add
7990 missing ">" to message.
7991
f4f7ab05
TT
79922011-03-31 Tom Tromey <tromey@redhat.com>
7993
7994 * varobj.c (instantiate_pretty_printer): Remove duplicate
7995 'return'.
7996
fcf250e2
UW
79972011-03-31 Ulrich Weigand <ulrich.weigand@linaro.org>
7998
7999 * i386-tdep.c (i386_frame_prev_register): Unwind SP from memory
8000 if neither saved value nor register available (e.g. signal frame).
8001
ee6436e3
TJB
80022011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
8003
8004 * macroexp.c (expand): Avoid uninitialized variable
8005 compiler warning.
8006
423f41a5
TJB
80072011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
8008
8009 * breakpoint.c (break_range_command): Fix typo in comment.
8010
f1310107
TJB
80112011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
8012 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
8013
8014 Implement support for PowerPC BookE ranged breakpoints.
8015 * NEWS: Mention support for ranged breakpoints on embedded PowerPC.
8016 * breakpoint.h (struct bp_target_info) <length>: New member
8017 variable.
8018 (struct breakpoint_ops) <breakpoint_hit>: Take struct bp_location
8019 instead of struct breakpoint as argument, and also add ASPACE
8020 and BP_ADDR arguments. Update all callers.
8021 (struct breakpoint_ops) <print_one_detail>: New method.
8022 (struct breakpoint) <addr_string_range_end>: New member variable.
8023 * breakpoint.c (breakpoint_location_address_match): Add function
8024 prototype.
8025 (insert_bp_location): Set bl->target_info.length.
8026 (breakpoint_here_p): Call breakpoint_location_address_match.
8027 (moribund_breakpoint_here_p): Likewise.
8028 (regular_breakpoint_inserted_here_p): Likewise.
8029 (breakpoint_thread_match): Likewise.
8030 (bpstat_stop_status): Likewise.
8031 (bpstat_check_location): Move call to
8032 breakpoint_ops.breakpoint_hit to the top.
8033 (print_one_breakpoint_location): Call
8034 breakpoint_ops.print_one_detail if available.
8035 (breakpoint_address_match_range): New function.
8036 (breakpoint_location_address_match): Likewise.
8037 (breakpoint_locations_match): Compare the length field of the
8038 locations too.
8039 (hw_breakpoint_used_count): Count resources used by all locations
8040 in a breakpoint, and use breakpoint_ops.resources_needed if
8041 available.
8042 (breakpoint_hit_ranged_breakpoint): New function.
8043 (resources_needed_ranged_breakpoint): Likewise.
8044 (print_it_ranged_breakpoint): Likewise.
8045 (print_one_ranged_breakpoint): Likewise.
8046 (print_one_detail_ranged_breakpoint): Likewise.
8047 (print_mention_ranged_breakpoint): Likewise.
8048 (print_recreate_ranged_breakpoint): Likewise.
8049 (ranged_breakpoint_ops): New structure.
8050 (find_breakpoint_range_end): New function.
8051 (break_range_command): Likewise.
8052 (delete_breakpoint): Free addr_string_range_end.
8053 (update_breakpoint_locations): Add SALS_END argument. Update
8054 all callers. Calculate breakpoint length if a non-zero SALS_END
8055 is given. Call breakpoint_locations_match instead of
8056 breakpoint_address_match.
8057 (reset_breakpoint): Find SaL of the end of the range if B is a
8058 ranged breakpoint.
8059 (_initialize_breakpoint): Register break-range command.
8060 * defs.h (print_core_address): Add function prototype.
8061 * ppc-linux-nat.c (ppc_linux_ranged_break_num_registers): New
8062 function.
8063 (ppc_linux_insert_hw_breakpoint): Support ranged breakpoints.
8064 (ppc_linux_remove_hw_breakpoint): Likewise.
8065 (_initialize_ppc_linux_nat): Initialize
8066 to_ranged_break_num_registers.
8067 * target.c (update_current_target): Add comment about
8068 to_ranged_break_num_registers.
8069 (target_ranged_break_num_registers): New function.
8070 * target.h (struct target_ops) <to_ranged_break_num_registers>:
8071 New method.
8072 (target_ranged_break_num_registers): Add function prototype.
8073 * ui-out.c (ui_out_field_core_addr): Move address-printing logic to ...
8074 * utils.c (print_core_address): ... here.
8075
02d20e4a
UW
80762011-03-31 Ulrich Weigand <uweigand@de.ibm.com>
8077
8078 * breakpoint.c (addr_string_to_sals): Avoid uninitialized
8079 variable compiler warning.
8080
ef23e705
TJB
80812011-03-30 Thiago Jung Bauermann <bauerman@br.ibm.com>
8082
8083 * breakpoint.c (breakpoint_re_set_one): Factor out breakpoint-resetting
8084 code from here ...
8085 (re_set_breakpoint): ... to here ...
8086 (addr_string_to_sals): ... and here.
8087
311e6ab3
PM
80882011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
8089
8090 * Makefile.in (SFILES): Add missing C sources.
8091 (HFILES_NO_SRCDIR): Remove gdbserver subdirectory headers.
8092 Add missing headers.
8093
acd1d99c
MF
80942011-03-29 Mike Frysinger <vapier@gentoo.org>
8095
8096 * .gitignore: New file.
8097
66ee2731
MF
80982011-03-29 Mike Frysinger <vapier@gentoo.org>
8099
8100 * NEWS: Mention new cfi device simulation.
8101
53832f31
TT
81022011-03-29 Tom Tromey <tromey@redhat.com>
8103
8104 * dwarf2read.c (fixup_partial_die): Handle linkage name on
8105 otherwise anonymous types.
8106 (dwarf2_name): Likewise.
8107 * valops.c (value_struct_elt_for_reference): Refine artificial
8108 type logic. Call error if j==-1.
8109
09b58708
JK
81102011-03-29 Andreas Tobler <andreast-list@fgznet.ch>
8111
8112 Fix false GCC warning.
8113 * infcall.c (find_function_addr): Initialize funaddr.
8114
6023c606
PM
81152011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
8116
8117 Fix mingw compilation with --enable-targets=all.
8118 * remote-mips.c (gdb_usleep.h): Include header.
8119 (mips_enter_debug): Use gdb_usleep instead of sleep.
8120
0e30163f
JK
81212011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
8122
8123 Support resolution of STT_GNU_IFUNC via breakpoints.
8124 * breakpoint.c (print_it_typical): Support bp_gnu_ifunc_resolver and
8125 bp_gnu_ifunc_resolver_return.
8126 (bpstat_what): Rename parameter to bs_head, new variable bs, adjust
8127 the loop. Support bp_gnu_ifunc_resolver and
8128 bp_gnu_ifunc_resolver_return. New comment after the loop. New loop
8129 for bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return
8130 breakpoints.
8131 (bptype_string, print_one_breakpoint_location): Support
8132 bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return.
8133 (user_settable_breakpoint): Return true also for
8134 bp_gnu_ifunc_resolver.
8135 (allocate_bp_location): Support bp_gnu_ifunc_resolver and
8136 bp_gnu_ifunc_resolver_return.
8137 (set_breakpoint_location_function): New parameter explicit_loc,
8138 describe it. Call find_pc_partial_function_gnu_ifunc with new
8139 variable IS_GNU_IFUNC and adjust the address for STT_GNU_IFUNC if
8140 EXPLICIT_LOC is not set.
8141 (set_raw_breakpoint): Set EXPLICIT_LOC for
8142 set_breakpoint_location_function.
8143 (clone_momentary_breakpoint): Use true for EXPLICIT_LOC of
8144 set_breakpoint_location_function.
8145 (mention): Support bp_gnu_ifunc_resolver and
8146 bp_gnu_ifunc_resolver_return.
8147 (add_location_to_breakpoint): Set EXPLICIT_LOC for
8148 set_breakpoint_location_function.
8149 (update_breakpoint_locations): Remove static.
8150 (breakpoint_re_set_one): Support bp_gnu_ifunc_resolver and
8151 bp_gnu_ifunc_resolver_return.
8152 * breakpoint.h (enum bptype): New fields bp_gnu_ifunc_resolver and
8153 bp_gnu_ifunc_resolver_return.
8154 (update_breakpoint_locations): New declaration.
8155 * elfread.c: Include gdbthread.h and regcache.h.
8156 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop): New
8157 functions.
8158 (elf_gnu_ifunc_fns): Install them.
8159 * minsyms.c (stub_gnu_ifunc_resolver_stop)
8160 (stub_gnu_ifunc_resolver_return_stop): New functions.
8161 (stub_gnu_ifunc_fns): Install them.
8162 * symtab.h (struct gnu_ifunc_fns): New fields gnu_ifunc_resolver_stop
8163 and gnu_ifunc_resolver_return_stop.
8164 (gnu_ifunc_resolver_stop, gnu_ifunc_resolver_return_stop): New.
8165
07be84bf
JK
81662011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
8167
8168 STT_GNU_IFUNC reader implementation.
8169 * elfread.c: Include gdbtypes.h, value.h and infcall.h.
8170 (SYMBOL_GOT_PLT_SUFFIX, elf_rel_plt_read)
8171 (elf_objfile_gnu_ifunc_cache_data, struct elf_gnu_ifunc_cache)
8172 (elf_gnu_ifunc_cache_hash, elf_gnu_ifunc_cache_eq)
8173 (elf_gnu_ifunc_record_cache, elf_gnu_ifunc_resolve_by_cache)
8174 (elf_gnu_ifunc_resolve_by_got, elf_gnu_ifunc_resolve_name)
8175 (elf_gnu_ifunc_resolve_addr): New.
8176 (elf_symfile_read): Call elf_rel_plt_read.
8177 (elf_gnu_ifunc_fns): New.
8178 (_initialize_elfread): Initialize elf_objfile_gnu_ifunc_cache_data.
8179 Install elf_gnu_ifunc_fns.
8180 * infcall.c (find_function_return_type): New function.
8181 (find_function_addr): Resolve TYPE_GNU_IFUNC functions, if possible.
8182 * minsyms.c (stub_gnu_ifunc_resolve_addr)
8183 (stub_gnu_ifunc_resolve_name): New functions.
8184 (stub_gnu_ifunc_fns, gnu_ifunc_fns_p): New variables.
8185 * symtab.h (struct gnu_ifunc_fns, gnu_ifunc_resolve_addr)
8186 (gnu_ifunc_resolve_name, gnu_ifunc_fns_p): New.
8187
300f8e10
JK
81882011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
8189
8190 Code cleanup for later STT_GNU_IFUNC support.
8191 * infcall.c (find_function_addr): Remove variable code, use explicit
8192 dereferences for it. Move VALUE_TYPE initialization later.
8193
11c81455
JK
81942011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
8195
8196 GDB find_pc_partial_function support for STT_GNU_IFUNC.
8197 * blockframe.c (cache_pc_function_is_gnu_ifunc): New variable.
8198 (clear_pc_function_cache): Clear it.
8199 (find_pc_partial_function): Rename to ...
8200 (find_pc_partial_function_gnu_ifunc): ... this function. New
8201 parameter is_gnu_ifunc_p, describe it. Set *IS_GNU_IFUNC_P.
8202 (find_pc_partial_function): New wrapper for this function.
8203 * symtab.h (find_pc_partial_function_gnu_ifunc): New declaration.
8204
0875794a
JK
82052011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
8206
8207 GDB internal type support for STT_GNU_IFUNC.
8208 * elfread.c (record_minimal_symbol): Support mst_text_gnu_ifunc.
8209 (elf_symtab_read): Set mst_text_gnu_ifunc for
8210 BSF_GNU_INDIRECT_FUNCTION.
8211 * eval.c (evaluate_subexp_standard): Support TYPE_GNU_IFUNC.
8212 * gdbtypes.c (init_type): Support TYPE_FLAG_GNU_IFUNC,
8213 builtin_func_func, nodebug_text_gnu_ifunc_symbol and
8214 nodebug_got_plt_symbol.
8215 * gdbtypes.h (enum type_flag_value): New entry TYPE_FLAG_GNU_IFUNC.
8216 (TYPE_GNU_IFUNC): New.
8217 (struct main_type): New field flag_gnu_ifunc.
8218 (struct builtin_type): New field builtin_func_func.
8219 (struct objfile_type): New fields nodebug_text_gnu_ifunc_symbol and
8220 nodebug_got_plt_symbol.
8221 * minsyms.c (lookup_minimal_symbol_text): Support mst_text_gnu_ifunc.
8222 (in_gnu_ifunc_stub): New.
8223 (prim_record_minimal_symbol, find_solib_trampoline_target): Support
8224 mst_text_gnu_ifunc.
8225 * parse.c (write_exp_msymbol): New variable ifunc_msym. Detect and
8226 support mst_text_gnu_ifunc. Support mst_slot_got_plt.
8227 * solib-svr4.c (svr4_in_dynsym_resolve_code): Return true also for
8228 in_gnu_ifunc_stub.
8229 * symmisc.c (dump_msymbols): Support mst_text_gnu_ifunc.
8230 * symtab.c (search_symbols): Likewise.
8231 * symtab.h (enum minimal_symbol_type): New fields mst_text_gnu_ifunc
8232 and mst_slot_got_plt.
8233 (in_gnu_ifunc_stub): New declaration.
8234
d0fb5eae
JK
82352011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
8236
8237 Support a ring of related breakpoints.
8238 * breakpoint.c (watchpoint_del_at_next_stop): New, move here code from
8239 other functions, add gdb_assert.
8240 (update_watchpoint, watchpoint_check): Add gdb_assert. Use
8241 watchpoint_del_at_next_stop.
8242 (bpstat_check_watchpoint): Use watchpoint_del_at_next_stop.
8243 (bpstat_stop_status): Handle ring in related_breakpoint.
8244 (set_raw_breakpoint_without_location): Initialize ring in
8245 related_breakpoint.
8246 (delete_breakpoint): Handle ring in related_breakpoint, use
8247 watchpoint_del_at_next_stop.
8248 (map_breakpoint_numbers): Handle ring in related_breakpoint.
8249
9cded63f
TT
82502011-03-28 Tom Tromey <tromey@redhat.com>
8251
8252 PR symtab/12441:
8253 * dwarf2read.c (prepare_one_comp_unit): Don't call set_cu_language
8254 with `language_minimal'.
8255
467d42c4
UW
82562011-03-25 Ulrich Weigand <ulrich.weigand@linaro.org>
8257
8258 * arm-tdep.c (arm_elf_make_msymbol_special): Use ARM_SYM_BRANCH_TYPE
8259 instead of checking for STT_ARM_TFUNC symbol type.
8260
62853458
TT
82612011-03-25 Tom Tromey <tromey@redhat.com>
8262
8263 * linespec.c (symbol_found): Restore line-based result for
8264 non-LOC_LABEL symbols.
8265
a7417d46
KT
82662011-03-25 Kai Tietz <ktietz@redhat.com>
8267
8268 * tui/tui-source.c (tui_set_source_content): Use filename_cmp
8269 instead of strcmp for comparison.
8270 (tui_source_is_displayed): Likewise.
8271 * tui/tui-winsource.c (tui_update_breakpoint_info): Likewise.
8272
55f1336d
TT
82732011-03-24 Mark Wielaard <mjw@redhat.com>
8274
f33edef8
PP
8275 * dwarf2read.c (lookup_signatured_type): Use DW_FORM_ref_sig8 in
8276 complaint.
8277 (skip_one_die): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
8278 (find_partial_die_in_comp_unit): Likewise in comment.
8279 (read_attribute_value): Likewise.
8280 (lookup_die_type): Likewise.
8281 (dwarf_form_name): Likewise.
8282 (dump_die_shallow): Likewise.
8283 (follow_die_ref_or_sig): Likewise.
55f1336d 8284
9ef07c8c
TT
82852011-03-24 Tom Tromey <tromey@redhat.com>
8286
8287 PR breakpoints/11816:
8288 * linespec.c (decode_line_1): Parse `function:label' linespecs.
8289 (decode_compound): Update.
8290 (find_function_symbol): New function.
8291 (decode_dollar): Update.
8292 (decode_label): Add 'function_symbol' parameter. Handle
8293 function-relative labels.
8294 (decode_variable): Update.
8295 (symbol_found): Add 'function_symbol' parameter. Use label's PC,
8296 not its line. Set `special_display' and canonical name for
8297 labels.
8298
56435ebe
TT
82992011-03-24 Tom Tromey <tromey@redhat.com>
8300
8301 * linespec.h (struct linespec_result) <special_display>: New
8302 field.
8303 * breakpoint.h (struct breakpoint) <display_canonical>: New
8304 field.
8305 * breakpoint.c (print_breakpoint_location): Respect
8306 display_canonical.
8307 (create_breakpoint_sal): Add 'display_canonical' parameter.
8308 (create_breakpoints_sal): Update.
8309 (create_breakpoint): Update.
8310
7efd8fc2
TT
83112011-03-24 Tom Tromey <tromey@redhat.com>
8312
8313 * symtab.c (decode_line_spec): Update.
8314 * linespec.c (build_canonical_line_spec): Change type of
8315 'canonical'.
8316 (decode_line_2, decode_line_1, decode_objc, decode_compound)
8317 (find_method, decode_all_digits, decode_dollar, decode_label)
8318 (symbol_found): Likewise.
8319 (init_linespec_result): New function.
8320 * breakpoint.c (struct captured_parse_breakpoint_args)
8321 <canonical_p>: New field, replaces addr_string_p.
8322 (create_breakpoints_sal): Add 'canonical' parameter, replacing
8323 'addr_string'.
8324 (parse_breakpoint_sals): Likewise.
8325 (do_captured_parse_breakpoint): Update.
8326 (create_breakpoint): Use struct linespec_result.
8327 (until_break_command): Update.
8328 (breakpoint_re_set_one): Update.
8329 (decode_line_spec_1): Update.
8330 * linespec.h (struct linespec_result): New.
8331 (init_linespec_result): Declare.
8332
788c8b10
PA
83332011-03-23 Pedro Alves <pedro@codesourcery.com>
8334
8335 * regcache.c (regcache_raw_read): If the target didn't supply a
8336 given raw register, mark it as unavailable.
8337
0ba1096a
KT
83382011-03-23 Kai Tietz <ktietz@redhat.com>
8339
8340 * breakpoint.c (clear_command): Use filename_cmp
8341 instead of strcmp for comparison.
8342 * buildsym.c (watch_main_source_file_lossage): Likewise.
8343 (patch_subfile_names): Use IS_DIR_SEPARATOR instead of
8344 checking just for slash.
8345 * dbxread.c (read_dbx_symtab): Use lbasename instead of
8346 strrchr and filename_cmp instead of strcmp for filenames.
8347 (add_old_header_file): Use filename_cmp
8348 instead of strcmp for comparison.
8349 * exec.c (exec_set_section_address): Likewise.
8350 * macrotab.c (macro_lookup_inclusion): Likewise.
8351 (macro_lookup_inclusion): Likewise.
8352 * elfread.c (_initialize_elfread): Likewise.
8353 (elfstab_offset_sections): Likewise.
8354 (elfstab_offset_sections): Use lbasename instead of
8355 strrchr.
8356 * mdebugread.c (parse_partial_symbols): Likewise.
8357 (arse_partial_symbols): Use filename_(n)cmp instead of
8358 str(n)cmp for comparison.
8359 * minsyms.c (lookup_minimal_symbol): Likewise.
8360 * psymtab.c (read_psymtabs_with_filename): Likewise.
8361 * solib.c (solib_read_symbols): Likewise.
8362 (reload_shared_libraries_1): Likewise.
8363 * symmisc.c (maintenance_print_symbols): Likewise.
8364 * symfile.c (separate_debug_file_exists): Likewise.
8365 (reread_symbols): Likewise.
8366 (find_separate_debug_file_by_debuglink): Likewise.
8367 * remote-fileio.c (remote_fileio_func_rename): Likewise.
8368 * source.c (add_path): Likewise.
8369 * symtab.c (filename_seen): Likewise.
8370 (file_matches): Likewise.
8371 (print_symbol_info): Likewise.
8372 (maybe_add_partial_symtab_filename): Likewise.
8373 (make_source_files_completion_list): Likewise.
8374 * xml-syscall.c (init_sysinfo): Likewise.
8375 * windows-nat.c (_initialize_check_for_gdb_ini): Use
8376 IS_DIR_SEPARATOR for checking for trailing path separator.
8377
dd90784c
JK
83782011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
8379
8380 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_entry_value. New
8381 label abort_expression.
8382 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle
8383 DWARF_VALUE_OPTIMIZED_OUT.
8384
3167638f
JK
83852011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
8386
8387 Code cleanup.
8388 * c-typeprint.c (c_type_print_args): Change parameter show_artificial
8389 to linkage_name. Invert its value. Update the function comment.
8390 (c_type_print_varspec_suffix): Invert it at the caller.
8391 * dwarf2read.c (dwarf2_compute_name): Invert it at the caller.
8392
ce406537
PA
83932011-03-22 Pedro Alves <pedro@codesourcery.com>
8394
8395 * infcmd.c (post_create_inferior): Ignore NOT_AVAILABLE_ERROR
8396 errors when reading the `stop_pc'.
8397 * printcmd.c (pc_prefix): Use get_frame_pc_if_available instead of
8398 get_frame_pc.
8399
da5d4055
PM
84002011-03-22 Phil Muldoon <pmuldoon@redhat.com>
8401
8402 * NEWS: Document gdb.Write stream keyword.
8403
29e0eb9c
JK
84042011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
8405
8406 Revert:
8407 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8408 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
8409 (dwarf2_add_field): Fix new_field->accessibility for
8410 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
8411
05775840
PM
84122011-03-22 Phil Muldoon <pmuldoon@redhat.com>
8413
f33edef8 8414 PR python/12183
05775840
PM
8415
8416 * python/py-function.c (fnpy_call): Treat GdbErrors differently to
8417 other error classes. Do not print stack trace.
8418
a0cb7835
JK
84192011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8420
8421 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
8422 (dwarf2_add_field): Fix new_field->accessibility for
8423 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
8424
d19f7eee
UW
84252011-03-21 Ulrich Weigand <ulrich.weigand@linaro.org>
8426
8427 * arm-tdep.c (arm_analyze_prologue): Do not abort parsing when
8428 encountering a load via a non-SP register.
8429
4a2fbb50
UW
84302011-03-21 Ulrich Weigand <uweigand@de.ibm.com>
8431
8432 * tramp-frame.c (tramp_frame_prepend_unwinder): Set stop_reason
8433 field in returned unwinder.
8434
3489610d
JB
84352012-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8436
8437 * ada-lang.c (replace_operator_with_call): Copy also GDBARCH.
8438
8c1a34e7
JB
84392012-03-21 Joel Brobecker <brobecker@adacore.com>
8440
8441 * ada-lang.c (replace_operator_with_call): Use xzalloc instead
8442 of xmalloc.
8443
8fbca658
PA
84442012-03-18 Pedro Alves <pedro@codesourcery.com>
8445
8446 * frame.c (frame_unwind_register): Throw an error if unwinding the
8447 register failed.
8448 * get_prev_frame_1 (get_prev_frame_1): Ask the unwinder if there's
8449 an unwind stop reason.
8450 (frame_stop_reason_string): Handle UNWIND_UNAVAILABLE.
8451 * frame.h (enum unwind_stop_reason) <UNWIND_OUTERMOST,
8452 UNWIND_UNAVAILABLE>: New.
8453 * inline-frame.c (inline_frame_unwind): Install
8454 default_frame_unwind_stop_reason.
8455 * frame-unwind.c: Include "exceptions.h".
8456 (frame_unwind_find_by_frame): Swallow NOT_AVAILABLE_ERROR errors.
8457 (default_frame_unwind_stop_reason): New.
8458 * frame-unwind.h (frame_unwind_stop_reason_ftype): New typedef.
8459 (default_frame_unwind_stop_reason): Declare.
8460 (struct frame_unwind) <stop_reason>: New function pointer.
8461
8462 * dummy-frame.c: Install default_frame_unwind_stop_reason.
8463 * dwarf2-frame.c: Include exceptions.h.
8464 (struct dwarf2_frame_cache) <unavailable_retaddr>: New field.
8465 (dwarf2_frame_cache): Swallow NOT_AVAILABLE_ERROR errors when
8466 computing the CFA. If such an error was thrown, set
8467 unavailable_retaddr.
8468 (dwarf2_frame_unwind_stop_reason): New.
8469 (dwarf2_frame_this_id): Don't build a frame id if the CFA was
8470 unavailable.
8471 (dwarf2_frame_unwind): Install dwarf2_frame_unwind_stop_reason.
8472 (dwarf2_signal_frame_unwind): Ditto.
8473
8474 * amd64-tdep.c: Include "exceptions.h".
8475 (struct amd64_frame_cache): New field "base_p".
8476 (amd64_init_frame_cache): Clear it.
8477 (amd64_frame_cache_1): New, factored out from amd64_frame_cache.
8478 Avoid reading registers with functions that throw if the register
8479 is not necessary to compute the frame base.
8480 (amd64_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
8481 swallowing NOT_AVAILABLE_ERROR.
8482 (amd64_frame_unwind_stop_reason): New.
8483 (amd64_frame_this_id): Don't build a frame id if the frame base
8484 was unavailable.
8485 (amd64_frame_unwind): Install amd64_frame_unwind_stop_reason.
8486 (amd64_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
8487 base_p if the frame base was computable.
8488 (amd64_sigtramp_frame_unwind_stop_reason): New.
8489 (amd64_sigtramp_frame_this_id): Don't build a frame id if the
8490 frame base was unavailable.
8491 (amd64_sigtramp_frame_unwind): Install
8492 amd64_sigtramp_frame_unwind_stop_reason.
8493 (amd64_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
8494 base_p if the frame base was computable.
8495 (amd64_epilogue_frame_unwind_stop_reason): New.
8496 (amd64_epilogue_frame_this_id): Don't build a frame id if the
8497 frame base was unavailable.
8498 (amd64_epilogue_frame_unwind): Install
8499 amd64_epilogue_frame_unwind_stop_reason.
8500 * i386-tdep.c: Include "exceptions.h".
8501 (struct i386_frame_cache): New field "base_p".
8502 (i386_init_frame_cache): Clear it.
8503 (i386_frame_cache_1): New, factored out from amd64_frame_cache.
8504 Avoid reading registers with functions that throw if the register
8505 is not necessary to compute the frame base.
8506 (i386_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
8507 swallowing NOT_AVAILABLE_ERROR.
8508 (i386_frame_unwind_stop_reason): New.
8509 (i386_frame_this_id): Don't build a frame id if the frame base was
8510 unavailable.
8511 (i386_frame_prev_register): Handle unavailable SP.
8512 (i386_frame_unwind): Install i386_frame_unwind_stop_reason.
8513 (i386_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
8514 base_p if the frame base was computable.
8515 (i386_epilogue_frame_unwind_stop_reason): New.
8516 (i386_epilogue_frame_this_id): Don't build a frame id if the frame
8517 base was unavailable.
8518 (i386_epilogue_frame_unwind): Install
8519 i386_epilogue_frame_unwind_stop_reason.
8520 (i386_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
8521 base_p if the frame base was computable.
8522 (i386_sigtramp_frame_unwind_stop_reason): New.
8523 (i386_sigtramp_frame_this_id): Don't build a frame id if the frame
8524 base was unavailable.
8525 (i386_sigtramp_frame_unwind): Install
8526 i386_sigtramp_frame_unwind_stop_reason.
8527 * sentinel-frame.c (sentinel_frame_prev_register): Use the value
8528 type's size, not the register's.
8529 (sentinel_frame_unwind): Install default_frame_unwind_stop_reason.
8530
8531 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind): Install
8532 default_frame_unwind_stop_reason.
8533 * alpha-tdep.c (alpha_sigtramp_frame_unwind)
8534 (alpha_heuristic_frame_unwind): Ditto.
8535 * amd64obsd-tdep.c (amd64obsd_trapframe_unwind): Ditto.
8536 * arm-tdep.c (arm_prologue_unwind, arm_stub_unwind): Ditto.
8537 * avr-tdep.c (avr_frame_unwind): Ditto.
8538 * cris-tdep.c (cris_sigtramp_frame_unwind, cris_frame_unwind):
8539 Ditto.
8540 * frv-linux-tdep.c (frv_linux_sigtramp_frame_unwind): Ditto.
8541 * frv-tdep.c (frv_frame_unwind): Ditto.
8542 * h8300-tdep.c (h8300_frame_unwind): Ditto.
8543 * hppa-hpux-tdep.c (hppa_hpux_sigtramp_frame_unwind): Ditto.
8544 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind): Ditto.
8545 * hppa-tdep.c (hppa_frame_unwind, hppa_fallback_frame_unwind)
8546 (hppa_stub_frame_unwind): Ditto.
8547 * i386obsd-tdep.c (i386obsd_trapframe_unwind): Ditto.
8548 * ia64-tdep.c (ia64_frame_unwind, ia64_sigtramp_frame_unwind)
8549 (ia64_libunwind_frame_unwind)
8550 (ia64_libunwind_sigtramp_frame_unwind): Ditto.
8551 * iq2000-tdep.c (iq2000_frame_unwind): Ditto.
8552 * lm32-tdep.c (lm32_frame_unwind): Ditto.
8553 * m32c-tdep.c (m32c_unwind): Ditto.
8554 * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_unwind): Ditto.
8555 * m32r-tdep.c (m32r_frame_unwind): Ditto.
8556 * m68hc11-tdep.c (m68hc11_frame_unwind): Ditto.
8557 * m68k-tdep.c (m68k_frame_unwind): Ditto.
8558 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_unwind): Ditto.
8559 * m88k-tdep.c (m88k_frame_unwind): Ditto.
8560 * mep-tdep.c (mep_frame_unwind): Ditto.
8561 * microblaze-tdep.c (microblaze_frame_unwind): Ditto.
8562 * mips-tdep.c (mips_insn16_frame_unwind, mips_insn32_frame_unwind)
8563 (mips_stub_frame_unwind): Ditto.
8564 * mn10300-tdep.c (mn10300_frame_unwind): Ditto.
8565 * moxie-tdep.c (moxie_frame_unwind): Ditto.
8566 * mt-tdep.c (mt_frame_unwind): Ditto.
8567 * ppc-linux-tdep.c (ppu2spu_unwind): Ditto.
8568 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_unwind): Ditto.
8569 * rs6000-tdep.c (rs6000_frame_unwind): Ditto.
8570 * s390-tdep.c (s390_frame_unwind, s390_stub_frame_unwind)
8571 (s390_sigtramp_frame_unwind): Ditto.
8572 * score-tdep.c (score_prologue_unwind): Ditto.
8573 * sh-tdep.c (sh_frame_unwind): Ditto.
8574 * sh64-tdep.c (sh64_frame_unwind): Ditto.
8575 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_unwind): Ditto.
8576 * sparc-tdep.c (sparc32_frame_unwind): Ditto.
8577 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_unwind): Ditto.
8578 * sparc64-tdep.c (sparc64_frame_unwind): Ditto.
8579 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_unwind): Ditto.
8580 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_unwind): Ditto.
8581 * sparc64obsd-tdep.c (sparc64obsd_frame_unwind)
8582 (sparc64obsd_trapframe_unwind): Ditto.
8583 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_unwind): Ditto.
8584 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_unwind): Ditto.
8585 * spu-tdep.c (spu_frame_unwind, spu2ppu_unwind): Ditto.
8586 * v850-tdep.c (v850_frame_unwind): Ditto.
8587 * vax-tdep.c (vax_frame_unwind): Ditto.
8588 * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_unwind): Ditto.
8589 * xstormy16-tdep.c (frame_unwind xstormy16_frame_unwind): Ditto.
8590 * xtensa-tdep.c (xtensa_unwind): Ditto.
8591
f23d1b92
PA
85922011-03-18 Pedro Alves <pedro@codesourcery.com>
8593
8594 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Assume
8595 there's always a frame. Use get_frame_pc_if_available instead of
8596 get_frame_pc, and if there's no PC available, don't look up a
8597 symtab.
8598
1d4f5741
PA
85992011-03-18 Pedro Alves <pedro@codesourcery.com>
8600
8601 * stack.c (print_frame_local_vars, print_frame_arg_vars): Handle
8602 unavailable PC.
8603
dba09041
PA
86042011-03-18 Pedro Alves <pedro@codesourcery.com>
8605
8606 * tracepoint.c (set_traceframe_context): Handle unavailable PC
8607 gracefully.
8608
9a26e44c
PA
86092011-03-18 Pedro Alves <pedro@codesourcery.com>
8610
8611 * frame.h (frame_unwind_caller_pc_if_available): Declare.
8612 * frame.c (frame_unwind_caller_pc_if_available): New.
8613 * stack.c (frame_info): Handle unavailable PC.
8614
86152011-03-18 Pedro Alves <pedro@codesourcery.com>
8616
8617 * frame.c (frame_unwind_pc): Rename to ...
8618 (frame_unwind_pc_if_available): ... this. New `pc' output
8619 parameter. Change return type to int. Gracefully handle
8620 gdbarch_unwind_pc throwing NOT_AVAILABLE_ERROR. Return 0 if that
8621 happened, or 1 otherwise.
8622 (frame_unwind_pc): Reimplement on top of
8623 frame_unwind_pc_if_available.
8624 (get_frame_func): Rename to ...
8625 (get_frame_func_if_available): New `pc' output parameter. Change
8626 return type to int. Gracefully handle the PC not being available.
8627 (get_frame_func): Reimplement on top of
8628 get_frame_func_if_available.
8629 (select_frame): Handle the PC being unavailable.
8630 (get_prev_frame): Handle the PC being unavailable.
8631 (get_frame_pc_if_available): New.
8632 (get_frame_address_in_block_if_available): New.
8633 (find_frame_sal): Handle the frame PC not being available.
8634 * frame.h (get_frame_pc_if_available): Declare.
8635 (get_frame_address_in_block_if_available): Declare.
8636 (get_frame_func_if_available): Declare.
8637 * stack.c (print_frame_info): Handle the PC being unavailable.
8638 (find_frame_funname): Ditto.
8639 (print_frame): Handle the PC being unavailable.
8640 (get_frame_language): Ditto.
8641 * blockframe.c (get_frame_block): Ditto.
8642 * macroscope.c (default_macro_scope): Ditto.
8643 * tui/tui-stack.c (tui_show_frame_info): Ditto.
8644
86452011-03-18 Pedro Alves <pedro@codesourcery.com>
8646
8647 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Catch
8648 NOT_AVAILABLE_ERROR when evaluating the location expression.
8649
86502011-03-18 Pedro Alves <pedro@codesourcery.com>
8651
8652 * dwarf2loc.c (read_pieced_value): Handle get_frame_register_bytes
8653 returning that the register piece is unavailable/optimized out.
8654 (write_pieced_value): Handle get_frame_register_bytes returning
8655 that the register piece is unavailable/optimized out when doing a
8656 read-modify write of a bitfield.
8657 * findvar.c (value_from_register): Handle get_frame_register_bytes
8658 returning that the register piece is unavailable/optimized out.
8659 * frame.c (get_frame_register_bytes): New parameters `optimizedp'
8660 and `unavailablep'. Throw error on bad debug info. Use
8661 frame_register instead of frame_register_read, to fill in the new
8662 arguments.
8663 * frame.h (get_frame_register_bytes): New parameters `optimizedp'
8664 and `unavailablep'.
8665 * valops.c: (value_assign): Adjust, and handle
8666 get_frame_register_bytes failing.
8667 * spu-tdep.c: Include exceptions.h.
8668 (spu_software_single_step): Adjust, and handle
8669 get_frame_register_bytes failing.
8670 (spu_get_longjmp_target): Ditto.
8671 * gdbarch.sh (register_to_value): Change to return int. New
8672 parameters `optimizedp' and `unavailablep'.
8673 * gdbarch.h, gdbarch.c: Regenerate.
8674 * i386-tdep.c (i386_register_to_value): Adjust to new
8675 gdbarch_register_to_value interface.
8676 * i387-tdep.c (i387_register_to_value): Ditto.
8677 * i387-tdep.h (i387_register_to_value): Ditto.
8678 * alpha-tdep.c (alpha_register_to_value): Ditto.
8679 * ia64-tdep.c (ia64_register_to_value): Ditto.
8680 * m68k-tdep.c (m68k_register_to_value): Ditto.
8681 * mips-tdep.c (mips_register_to_value): Ditto.
8682 * rs6000-tdep.c (rs6000_register_to_value): Ditto.
8683
0fdb4f18
PA
86842011-03-18 Pedro Alves <pedro@codesourcery.com>
8685
8686 * findvar.c (value_of_register): Mark the value as unavailable, if
8687 the register is unavailable.
8688 * frame.h (frame_register_unwind): New `unavailablep' parameter.
8689 (frame_register): New `unavailablep' parameter.
8690 (frame_register_read): Update comment.
8691 * frame.c (frame_register_unwind): New `unavailablep' parameter.
8692 Set it if the register is unavailable. If the register is
8693 unavailable, clear the output buffer.
8694 (frame_register): New `unavailablep' parameter. Pass it down.
8695 (frame_unwind_register): Adjust.
8696 (put_frame_register): Adjust.
8697 (frame_register_read): Adjust. Also return false if the register
8698 is not available.
8699 (frame_register_unwind_location): Adjust.
8700 * sentinel-frame.c (sentinel_frame_prev_register): If the register
8701 is unavailable, mark the value accordingly.
8702 * stack.c (frame_info): Handle unavailable registers.
8703
e69aa73e
PA
87042011-03-18 Pedro Alves <pedro@codesourcery.com>
8705
8706 * mi/mi-main.c (register_changed_p): Handle REG_UNAVAILABLE, and
8707 simplify, using regcache_cooked_read.
8708
05d1431c
PA
87092011-03-18 Pedro Alves <pedro@codesourcery.com>
8710
8711 * regcache.h (regcache_raw_read, regcache_raw_read_signed)
8712 (regcache_raw_read_unsigned, regcache_raw_read_signed)
8713 (regcache_raw_read_unsigned, regcache_raw_read_part)
8714 (regcache_cooked_read, regcache_cooked_read_signed)
8715 (regcache_cooked_read_unsigned, regcache_cooked_read_part)
8716 (regcache_cooked_read_ftype): Change return to enum
8717 register_status.
8718 * regcache.c: Include exceptions.h
8719 (regcache_save): Adjust to handle REG_UNAVAILABLE registers.
8720 (do_cooked_read): Change return to enum register_status. Always
8721 forward to regcache_cooked_read.
8722 (regcache_raw_read): Change return to enum register_status. If
8723 the register is not REG_VALID, memset the buffer. Return the
8724 register's status.
8725 (regcache_raw_read_signed): Handle non-REG_VALID registers and
8726 return the register's status.
8727 (regcache_raw_read_unsigned): Ditto.
8728 (regcache_cooked_read): Change return to enum register_status.
8729 Assert that with read-only regcaches, the register's status must
8730 be known. If the regcache is read-only, and the register is not
8731 REG_VALID, memset the buffer. Return the register's status.
8732 (regcache_cooked_read_signed): Change return to enum
8733 register_status. Handle non-REG_VALID registers and return the
8734 register's status.
8735 (regcache_cooked_read_unsigned): Change return to enum
8736 register_status. Handle non-REG_VALID registers and return the
8737 register's status.
8738 (regcache_xfer_part, regcache_raw_read_part)
8739 (regcache_cooked_read_part): Change return to enum
8740 register_status. Return the register's status.
8741 (regcache_read_pc): Throw NOT_AVAILABLE_ERROR if the register is
8742 unavailable.
8743 (regcache_dump): Handle unavailable cooked registers.
8744 * frame.c (do_frame_register_read): Adjust interface to match
8745 regcache_cooked_read_ftype.
8746 * gdbarch.sh (pseudo_register_read): Change return to enum
8747 register_status.
8748 * gdbarch.h, gdbarch.c: Regenerate.
8749
8750 * i386-tdep.h (i386_pseudo_register_read): Change return to enum
8751 register_status.
8752 * i386-tdep.c (i386_pseudo_register_read): Change return to enum
8753 register_status. If reading a raw register indicates the raw
8754 register is not valid, return the raw register's status,
8755 otherwise, return REG_VALID.
8756 * amd64-tdep.c (amd64_pseudo_register_read): Change return to enum
8757 register_status. Handle non-REG_VALID raw registers and return
8758 the register's status.
8759 * arm-tdep.c (arm_neon_quad_read)
8760 (arm_pseudo_read): Change return to enum register_status. Handle
8761 non-REG_VALID raw registers and return the register's status.
8762 * avr-tdep.c (avr_pseudo_register_read): Ditto.
8763 * frv-tdep.c (frv_pseudo_register_read): Ditto.
8764 * h8300-tdep.c (h8300_pseudo_register_read): Ditto.
8765 * hppa-tdep.c (hppa_pseudo_register_read): Ditto.
8766 * m32c-tdep.c (m32c_move_reg_t): Change return to enum
8767 register_status.
8768 (m32c_raw_read, m32c_raw_write, m32c_banked_read)
8769 (m32c_banked_write, m32c_sb_read, m32c_sb_write, m32c_part_read)
8770 (m32c_part_write, m32c_cat_read, m32c_cat_write)
8771 (m32c_r3r2r1r0_read, m32c_r3r2r1r0_write)
8772 (m32c_pseudo_register_read): Change return to enum
8773 register_status. Adjust.
8774 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Change return to
8775 enum register_status. Return the register's status.
8776 * mep-tdep.c (mep_pseudo_cr32_read): Change return to enum
8777 register_status. Return the register's status.
8778 (mep_pseudo_cr64_read, mep_pseudo_register_read): Ditto.
8779 * mips-tdep.c (mips_pseudo_register_read): Ditto.
8780 * mt-tdep.c (mt_pseudo_register_read): Ditto.
8781 * rs6000-tdep.c (move_ev_register_func): New typedef.
8782 (e500_move_ev_register): Use it. Change return to enum
8783 register_status. Return the register's status.
8784 (do_regcache_raw_read): New function.
8785 (do_regcache_raw_write): New function.
8786 (e500_pseudo_register_read): Change return to enum
8787 register_status. Return the register's status. Use
8788 do_regcache_raw_read.
8789 (e500_pseudo_register_write): Adjust. Use do_regcache_raw_write.
8790 (dfp_pseudo_register_read): Change return to enum register_status.
8791 Return the register's status.
8792 (vsx_pseudo_register_read): Ditto.
8793 (efpr_pseudo_register_read): Ditto.
8794 (rs6000_pseudo_register_read): Ditto.
8795 * s390-tdep.c (s390_pseudo_register_read): Change return to enum
8796 register_status. Return the register's status.
8797 * sh64-tdep.c (pseudo_register_read_portions): New function.
8798 (sh64_pseudo_register_read): Change return to enum
8799 register_status. Use pseudo_register_read_portions. Return the
8800 register's status.
8801 * ia64-tdep.c (ia64_pseudo_register_read): Change return to enum
8802 register_status. Return the register's status.
8803 * sh-tdep.c (pseudo_register_read_portions): New function.
8804 (sh_pseudo_register_read): Change return to enum register_status.
8805 Use pseudo_register_read_portions. Return the register's status.
8806 * sparc-tdep.c (sparc32_pseudo_register_read): Change return to
8807 enum register_status. Return the register's status.
8808 * sparc64-tdep.c (sparc64_pseudo_register_read): Ditto.
8809 * spu-tdep.c (spu_pseudo_register_read_spu)
8810 (spu_pseudo_register_read): Ditto.
8811 * xtensa-tdep.c (xtensa_register_read_masked)
8812 (xtensa_pseudo_register_read): Ditto.
8813 * bfin-tdep.c (bfin_pseudo_register_read): Ditto.
8814
e10abd8f
PM
88152011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
8816
8817 * python/py-value.c (valpy_getitem): Fix formatting of error function
8818 call.
8819
7ea6d463
PM
88202011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
8821
8822 ARI fixes: Add missing internationalization markups throughout
8823 C source files.
8824 * darwin-nat-info.c: Ditto.
8825 * record.c: Ditto.
8826 * remote.c: Ditto.
8827 * mi/mi-main.c: Ditto.
8828
001083c6
PM
88292011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
8830
8831 ARI fixes: Add missing internationalization markups throughout
8832 yacc files.
8833 * c-exp.y: Ditto.
8834 * cp-name-parser.y: Ditto.
8835 * f-exp.y: Ditto.
8836 * m2-exp.y: Ditto.
8837 * objc-exp.y: Ditto.
8838 * p-exp.y: Ditto.
8839
4f1cdeec
PM
88402011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
8841
8842 ARI fixes: Messages should have no trailing new lines.
8843 * darwin-nat.c (mach_check_error): Remove trailing new line from
8844 warning function call message.
8845 * record.c (bfdcore_read): Idem for error call.
8846
28e698f1
PM
88472011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
8848
8849 * common/signals.c (target_signal_from_host): Add _ markup to error
8850 function call message.
8851 (target_signal_to_host): Add _ markup and remove trailing new line
8852 from warning call message.
8853 (target_signal_from_command): Add _ markup to error function call
8854 message.
8855
99c3dc11
PM
88562011-03-18 Phil Muldoon <pmuldoon@redhat.com>
8857
f33edef8 8858 PR python/12149
99c3dc11
PM
8859
8860 * python/python.c (gdbpy_write): Accept a stream argument and
8861 operate to the appropriate stream.
8862 (gdbpy_flush): Likewise.
8863 (_initialize_python): Add stream constants.
8864 (finish_python_initialization): Add GdbOutputErrorFile class.
8865
c20800be
KY
88662011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
8867
8868 * MAINTAINERS: Add myself as a write-after-approval maintainer.
8869
f4a1794a
KY
88702011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
8871
8872 * amd64-tdep.c (amd64_relocate_instruction): Fix ordering of arguments
f33edef8
PP
8873 to store_signed_integer. Add debug message when relocating CALL
8874 instructions. Fix formatting of debug message.
8875 * i386-tdep.c (i386_relocate_instruction): Ditto.
f4a1794a 8876
d4862372
JB
88772011-03-17 Joel Brobecker <brobecker@gnat.com>
8878
8879 * target.h (struct target_ops): Remove to_lookup_symbol field.
8880 (target_lookup_symbol): Delete macro.
8881 * target.c (nosymbol, debug_to_lookup_symbol): Delete.
8882 (update_current_target, setup_target_debug): Remove handling
8883 of to_lookup_symbol target_ops field.
8884 * ada-tasks.c (get_known_tasks_addr): Remove use of
8885 target_lookup_symbol.
8886 * coffread.c (coff_symtab_read): Likewise.
8887 * dbxread.c (read_dbx_symtab): Ditto.
8888
d645e32e
JB
88892011-03-17 Joel Brobecker <brobecker@gnat.com>
8890
8891 PR gdb/12116:
8892 * configure.ac: Add getthrds declaration check.
8893 * configure, config.in: Regenerate.
8894 * aix-thread.c (getthrds): Declare only if not already declared
8895 in procinfo.h. More declaration out of get_signaled_thread to
8896 global scope.
8897
29703da4
PM
88982011-03-17 Phil Muldoon <pmuldoon@redhat.com>
8899
8900 * python/py-symtab.c: Populate symtab_object_methods,
8901 sal_object_methods.
8902 (stpy_is_valid): New function.
8903 (salpy_is_valid): Ditto.
8904 * python/py-symbol.c: Declare symbol_object_methods. Populate.
8905 (sympy_is_valid): New function.
8906 * python/py-objfile.c: Declare objfile_object_methods. Populate.
8907 (objfpy_is_valid): New function.
8908 * python/py-inferior.c: Populate inferior_object_methods.
8909 (infpy_is_valid): New function.
8910 * python/py-infthread.c: Populate thread_object_methods.
8911 (thpy_is_valid): New function.
8912 * python/py-block.c: Declare block_object_methods. Populate. Declare
8913 block_iterator_object_methods. Populate.
8914 (blpy_is_valid): New function.
8915 (blpy_iter_is_valid): Ditto.
8916
c00f8484
KS
89172011-03-16 Keith Seitz <keiths@redhat.com>
8918
8919 * linespec.c (find_methods): Canonicalize NAME before looking
8920 up the symbol.
8921 (name_end): New function.
8922 (keep_name_info): New function.
8923 (decode_line_1): Use keep_name_info.
8924 (decode_compound): Likewise.
8925 * cli/cli-utils.h (remove_trailing_whitespace): New function.
8926 * cli/cli-utils.c (remove_trailing_whitespace): Likewise.
8927
8928 PR c++/12273
8929 * linespec.c (locate_first_half): Keep overload information, too.
8930 (decode_compound): Use a string to represent break characters
8931 to escape the loop.
8932 If P points to a break character, do not increment it.
8933 For C++ and Java, keep overload information and relevant keywords.
8934 If we cannot find a symbol, search the minimal symbols.
8935
8936 PR c++/11734
8937 * linespec.c (decode_compound): Rename SAVED_ARG to
8938 THE_REAL_SAVED_ARG.
8939 Make a copy of THE_REAL_SAVED_ARG in SAVED_ARG and strip
8940 single-quotes.
8941 Pass a valid block to lookup_symbol.
8942 (lookup_prefix_sym): Likewise.
8943 (find_method): Construct search name based on SYM_CLASS instead
8944 of SAVED_ARG.
8945 * psymtab.c (lookup_partial_symbol): Add language parameter.
8946 (lookup_symbol_aux_psymtabs): Likewise.
8947 Don't assume that the psymtab we found was the right one. Search
8948 for the desired symbol in the symtab to be certain.
8949 (psymtab_search_name): New function.
8950 (lookup_partial_symbol): Use psymtab_search_name.
8951 Add language parameter.
8952 (read_symtabs_for_function): Add language parameter and pass to
8953 lookup_partial_symbol.
8954 (find_symbol_file_from_partial): Likewise.
8955
c91513d8
PP
89562011-03-16 Paul Pluzhnikov <ppluzhnikov@google.com>
8957
8958 PR gdb/12528
8959 * dwarf2read.c (noop_record_line): New function.
8960 (dwarf_decode_lines): Ignore line tables for GCd functions.
8961
b37520b6
PM
89622011-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
8963
8964 Fix ARI warnings about new lines at the end of messages, which
8965 are unneeded as there is a new line added at the end of the message
8966 automatically.
8967 * darwin-nat.c (darwin_stop_inferior): Ditto.
8968 * dec-thread.c (dec_thread_get_ada_task_ptid): Ditto.
8969 * dfp.c (decimal_to_number): Ditto.
8970 * exec.c (print_section_info): Ditto.
8971 * i386-darwin-nat.c (darwin_set_sstep): Ditto.
8972 * osdata.c (get_osdata): Ditto.
8973 * record.c (bfdcore_write): Ditto.
8974 * remote-mips.c (mips_readchar): Ditto.
8975 * remote.c (read_ptid): Ditto.
8976 * ser-mingw.c (ser_windows_raw): Ditto.
8977 * tracepoint.c (add_local_symbols): Ditto.
8978 * windows-nat.c (fake_create_process): Ditto.
8979
b08ee6a2
TT
89802011-03-16 Tom Tromey <tromey@redhat.com>
8981
8982 * tracepoint.c (stop_tracing): Don't declare.
8983 * event-top.c (after_char_processing_hook): Add `(void)'.
8984
9a6f1302
PM
89852011-03-16 Phil Muldoon <pmuldoon@redhat.com>
8986
8987 * NEWS: Add Parameter sub-classing description.
8988
7ceb86b1
KT
89892011-03-16 Kai Tietz <ktietz@redhat.com>
8990
8991 * MAINTAINERS: Update my e-mail address.
8992
efeff6cf
AT
89932011-03-15 Andreas Tobler <andreast@fgznet.ch>
8994
8995 * MAINTAINERS: Add myself for write after approval privileges.
8996
681c238c
MS
89972011-03-15 Michael Snyder <msnyder@vmware.com>
8998
f3df5b08
MS
8999 * frame.c (find_frame_sal): Assert sym is not null.
9000
13f6513c
MS
9001 * dbxread.c (process_one_symbol): Assert 'name' is not null.
9002
50412521
MS
9003 * objc-lang.c (selectors_info): Check strchr for null result.
9004
681c238c
MS
9005 * stabsread.c (define_symbol): Guard against bad stabstring input.
9006
6ced1581
PM
90072011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
9008
9009 Remove trailing spaces and tabulations from pascal language
9010 support sources.
9011 p-exp.y: Ditto.
9012 p-lang.c: Ditto.
9013 p-lang.h: Ditto.
9014 p-valprint.c: Ditto.
9015
9373cf26
JK
90162011-03-15 Jan Kratochvil <jan.kratochvil@redhat.com>
9017
9018 * dwarf2read.c (dwarf2_get_pc_bounds): Require HIGH strictly higher
9019 than LOW. Comment it.
9020 (read_partial_die): Call complaint for inappropriate zero LOWPC or
9021 HIGHPC not strictly higher than LOWPC.
9022
9a1edae6
PM
90232011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
9024
9025 Fix formatting of function declarations returning a pointer in
9026 previous commit.
9027 * varobj.c (varobj_add_child): Ditto.
9028 * hppa-tdep.h (hppa_init_objfile_priv_data): Ditto.
9029 * inferior.h (get_displaced_step_closure_by_addr): Ditto.
9030
24e9cda0
UW
90312011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
9032
9033 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Add support
9034 for the "generic" vector ABI used with GCC 4.3 and later.
9035 (ppc64_sysv_abi_return_value): Likewise.
9036
90372011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
81b4675a
UW
9038
9039 * infcall.c (call_function_by_hand): Function return value is
9040 always a non_lval, even when using struct_return.
9041
c9174737
PA
90422011-03-15 Pedro Alves <pedro@codesourcery.com>
9043
9044 * printcmd.c (ALL_DISPLAYS_SAFE): New.
9045 (map_display_numbers): New.
9046 (do_delete_display): New.
9047 (undisplay_command): Use map_display_numbers.
9048 (do_enable_disable_display): New.
9049 (enable_disable_display_command): New function.
9050 (enable_display): Delete.
9051 (enable_display_command): New.
9052 (disable_display_command): Reimplement.
9053 (_initialize_printcmd): Adjust "enable display" command to use
9054 `enable_display_command' as callback.
9055
350c6c65
PM
90562011-03-14 Phil Muldoon <pmuldoon@redhat.com>
9057
9058 * NEWS: Add Python breakpoint 'stop' operation.
9059
824446ad
PM
90602011-03-14 Phil Muldoon <pmuldoon@redhat.com>
9061
9062 * NEWS: Delete duplicate entry. Fix typo.
9063
2021ad3a
PM
90642011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
9065
9066 Fix ARI warning about function names in first column.
9067 Put prototype declaration on same line as return type.
9068 * objc-exp.y: Ditto.
9069 * p-exp.y: Ditto.
9070 * python/py-stopevent.h: Ditto.
9071 For long function names, split parameters to
9072 allow function name on same line as return type.
9073 * solib-pa64.c: Ditto.
9074 * varobj.c: Ditto.
9075 * varobj.h: Ditto.
9076 For long function declaration, use single line.
9077 * hppa-tdep.h: Ditto.
9078 * inferior.h: Ditto.
9079
7371cf6d
PM
90802011-03-14 Phil Muldoon <pmuldoon@redhat.com>
9081
9082 * python/python.h: Declare gdbpy_should_stop and
9083 gdbpy_breakpoint_has_py_cond.
9084 * python/python.c: Add python.h to includes. Remove python.h from
9085 HAVE_PYTHON definition
9086 (gdbpy_should_stop): New dummy function.
9087 (gdbpy_breakpoint_has_py_cond): New dummy function.
9088 * python/py-breakpoint.c (bppy_init): Rewrite to allow
9089 sub-classing capabilities.
9090 (gdbpy_should_stop): New function.
9091 (gdbpy_breakpoint_has_py_cond): New function.
9092 (local_setattro): New function.
9093 * breakpoint.c (condition_command): Add check for Python 'stop'
9094 operation.
9095 (bpstat_check_breakpoint_conditions): Execute Python 'stop'
9096 operation function as part of stop/continue tests.
9097
37b50a69
TT
90982011-03-14 Tom Tromey <tromey@redhat.com>
9099
9100 PR gdb/12576:
9101 * dwarf2loc.c (dwarf_expr_dwarf_call): Remove 'return'.
9102 (needs_frame_dwarf_call): Likewise.
9103
eeae04df
PM
91042011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
9105
9106 Fix ARI warning about functions without parameters that do not
9107 use (void).
9108 * breakpoint.c (all_tracepoints): Replace () by (void).
9109 * f-exp.y (match_string_literal): Ditto.
9110 (yylex): Ditto.
9111 * m2-exp.y (yylex): Ditto.
9112 * mep-tdep.c (current_me_module): Ditto.
9113 (current_options): Ditto.
9114 (current_cop_data_bus_width): Ditto.
9115 (current_cr_names): Ditto.
9116 (current_cr_is_float): Ditto.
9117 (current_ccr_names): Ditto.
9118 * objc-exp.y (yylex): Ditto.
9119 * p-exp.y (yylex): Ditto.
9120 * remote.c (send_interrupt_sequence): Ditto.
9121 * tracepoint.c (current_trace_status): Ditto.
9122 * python/py-evts.c (gdbpy_initialize_py_events): Ditto.
9123 * python/py-prettyprint.c (push_dummy_python_frame): Ditto.
9124
6dc3565d
MS
91252011-03-11 Michael Snyder <msnyder@vmware.com>
9126
1427fe5e
MS
9127 * cli/cli-decode.h (CMD_LIST_AMBIGUOUS): Define.
9128 * cli/cli-decode.c (lookup_cmd_1): Use CMD_LIST_AMBIGUOUS.
9129 (lookup_cmd): Test for CMD_LIST_AMBIGUOUS.
9130 * completer.c (complete_line_internal): Use CMD_LIST_AMBIGUOUS.
9131 * top.c (set_verbose): Use CMD_LIST_AMBIGUOUS.
9132
60bc018f
MS
9133 * event-loop-c (delete_async_signal_handler): Assert prev_ptr.
9134 (delete_async_event_handler): Ditto.
9135
f3be5b64
MS
9136 * python/py-breakpoint.c (bppy_set_condition): Stop memory leak.
9137
4c2d5724
MS
9138 * python/py-breakpoint.c (bppy_get_commands): Fix memory leak.
9139
6dc3565d
MS
9140 * top.c (set_verbose): Assert showcmd was found.
9141
4e6ca6d5
MG
91422011-03-11 Maxim Grigoriev <maxim2405@gmail.com>
9143
9144 * xtensa-tdep.c (warning_once): Correct style issues.
9145
815a83e4
YQ
91462011-03-11 Yao Qi <yao@codesourcery.com>
9147
9148 * arm-tdep.c (copy_ldr_str_ldrb_strb): Remove redundant statements.
9149
f2eb0bc8
AS
91502011-03-11 Andreas Schwab <schwab@redhat.com>
9151
9152 * common/aclocal.m4: Remove.
9153
b801de47
MG
91542011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
9155
9156 * xtensa-tdep.c (windowing_enabled): Remove inline attribute.
9157 (xtensa_write_register, xtensa_read_register): Likewise.
9158 (xtensa_hextochar): Removed.
9159 (xtensa_init_reggroups): Replace xtensa_hextochar () by explicit code.
9160
dbab50de
MG
91612011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
9162
9163 * xtensa-tdep.c (xtensa_c0reg_t): Update comments.
c2a6b390 9164 (xtensa_call0_frame_cache_t): Update comments. New fields added.
dbab50de
MG
9165 (xtensa_alloc_frame_cache): Add initialization for new fields.
9166 (xtensa_frame_cache): Change the way how call0_frame_cache () is called.
9167 (warning_once): New function.
9168 (xtensa_insn_kind): New item c0opc_and.
9169 (call0_classify_opcode): Add the case for AND instruction.
c2a6b390
MG
9170 (call0_track_op): Change arguments. New local variable litbase.
9171 Add the case to handle c0opc_and. Update algorithms for c0opc_mov,
9172 c0opc_l32r, c0opc_s32i to take into account dynamic stack adjustments
9173 in the prologue.
dbab50de 9174 Add cases for c0opc_l32e, c0opc_s32e, c0opc_rfwo, c0opc_rfwu.
c2a6b390 9175 (call0_analyze_prologue): Update the comments. Change arguments.
dbab50de
MG
9176 Add the variety of updates to handle extended prologues, which now can
9177 conduct dynamic stack adjustments.
9178 (call0_frame_cache): Likewise.
9179 (xtensa_skip_prologue): Update call0_analyze_prologue () function call.
9180 (xtensa_gdbarch_init): Initialize xtensa_session_once_reported.
9181
b2c04452
MS
91822011-03-10 Michael Snyder <msnyder@vmware.com>
9183
f8f67713
MS
9184 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
9185 (cmd_qtframe): Ditto.
9186 (cmd_qtbuffer): Ditto.
9187 (cmd_bigqtbuffer): Ditto.
9188
197f0a60
TT
91892011-03-10 Tom Tromey <tromey@redhat.com>
9190
9191 * tracepoint.c (trace_actions_command): Update.
9192 * thread.c (thread_apply_command): Update.
9193 * reverse.c (delete_bookmark_command): Update.
9194 (bookmarks_info): Update.
9195 * printcmd.c (undisplay_command): Update.
9196 * memattr.c (mem_enable_command): Update.
9197 (mem_disable_command): Update.
9198 (mem_delete_command): Update.
9199 * inferior.c (detach_inferior_command): Update.
9200 (kill_inferior_command): Update.
9201 (remove_inferior_command): Update.
9202 * cli/cli-utils.h (struct get_number_or_range_state): New.
9203 (init_number_or_range): Declare.
9204 (get_number_or_range): Update.
9205 * cli/cli-utils.c (init_number_or_range): New function.
9206 (get_number_or_range): Change 'pp' parameter to 'state'. Remove
9207 static variables.
9208 (number_is_in_list): Update.
9209 * breakpoint.h (get_tracepoint_by_number): Update.
9210 * breakpoint.c (map_breakpoint_numbers): Update for change to
9211 get_number_or_range.
9212 (find_location_by_number): Use get_number, not
9213 get_number_or_range.
9214 (trace_pass_set_count): New function.
9215 (trace_pass_command): Update for change to get_number_or_range.
9216 Rework loop logic.
9217 (get_tracepoint_by_number): Remove 'multi_p' parameter; add
9218 'state' parameter.
9219
ecec24e6
PM
92202011-03-10 Phil Muldoon <pmuldoon@redhat.com>
9221
9222 * python/py-param.c (add_setshow_generic): Add set/show callback
9223 parameters. Register Python object context.
9224 (get_show_value): New function.
9225 (get_set_value): New function.
9226 (call_doc_function): New function.
9227 (get_doc_string): Move behind get_show_value/get_set_value.
9228
6d6c6b1f
JK
92292011-03-10 Andreas Tobler <andreast-list@fgznet.ch>
9230
9231 * fbsd-nat.c (fbsd_make_corefile_notes): Constify local `fname'.
9232
68d6df83
MG
92332011-03-09 Maxim Grigoriev <maxim2405@gmail.com>
9234
dbab50de 9235 * xtensa-tdep.c (xtensa_read_register): Add comment.
68d6df83
MG
9236 (xtensa_write_register): Likewise.
9237 (xtensa_hextochar): Add comment and update to match coding conventions.
9238 (xtensa_frame_cache, xtensa_return_value): Follow coding conventions.
9239 (execute_l32e, execute_s32e, execute_code): Update comments.
9240 (xtensa_exception_handler_t): Update to match coding conventions.
9241 (xtensa_insn_kind): Likewise.
9242
85c9d6a6
MS
92432011-03-09 Michael Snyder <msnyder@vmware.com>
9244
9245 * mi-cmd-disas.c (mi_cmd_disassemble): Fix memory leak.
9246
91495617
PA
92472011-03-09 Pedro Alves <pedro@codesourcery.com>
9248
9249 * nto-tdep.c (nto_find_and_open_solib): Constify local `base'.
9250
eb8c0621
TT
92512011-03-09 Tom Tromey <tromey@redhat.com>
9252
9253 * thread.c (restore_selected_frame): Handle frame_level == -1.
9254 (make_cleanup_restore_current_thread): Use
9255 get_selected_frame_if_set.
9256 * frame.h (get_selected_frame_if_set): Declare.
9257 * frame.c (get_selected_frame_if_set): New function.
9258
9f37bbcc
PA
92592011-03-09 Pedro Alves <pedro@codesourcery.com>
9260
9261 * cli/cli-cmds.c (shell_escape): Use lbasename.
9262 * coffread.c (coff_start_symtab): Constify parameter.
9263 (complete_symtab): Constify `name' parameter.
9264 (coff_symtab_read): Constify `filestring' local.
9265 (coff_getfilename): Constify return and `result' local.
9266 Use lbasename.
9267 * fbsd-nat.c (fbsd_make_corefile_notes): Use lbasename.
9268 * linux-fork.c (info_checkpoints_command): Use lbasename.
9269 * linux-nat.c (linux_nat_make_corefile_notes): Use lbasename.
9270 * minsyms.c (lookup_minimal_symbol): Use lbasename.
9271 * nto-tdep.c (nto_find_and_open_solib): Use lbasename.
9272 * procfs.c (procfs_make_note_section): Use lbasename.
9273 * tui/tui-io.c (printable_part): Constity return and parameter.
9274 Use lbasename.
9275 (print_filename): Constify parameters, and local `s'.
9276 (tui_rl_display_match_list): Constify local `temp'.
9277
f8de3c55
JK
92782011-03-09 Jan Kratochvil <jan.kratochvil@redhat.com>
9279
9280 Revert:
9281 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9282 Fix DWARF-3+ DW_AT_accessibility default assumption.
9283 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
9284 cu->header.version >= 3.
9285
d9837b00
YQ
92862011-03-09 Yao Qi <yao@codesourcery.com>
9287
9288 * common/Makefile.in: Remove.
9289 * common/configure: Remove.
9290 * common/configure.ac: Remove.
9291
e637a4f5
YQ
92922011-03-09 Yao Qi <yao@codesourcery.com>
9293
9294 Revert:
9295 2011-02-11 Yao Qi <yao@codesourcery.com>
9296
9297 * common/Makefile.in: Add copyright header.
9298
9299 2011-02-11 Yao Qi <yao@codesourcery.com>
9300
9301 * Makefile.in: Remove signals.o from COMMON_OBS. Link
9302 libcommon.a.
9303 * configure.ac: Add common to sub dir.
9304 * configure: Regenerate.
9305
f976a05d
MG
93062011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
9307
9308 * xtensa-tdep.c (call0_ret): New function.
9309 (xtensa_skip_prologue): Speed up analysis.
9310
57041825
MG
93112011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
9312
9313 * xtensa-tdep.c (xtensa_register_reggroup_p): Count in all registers
9314 while executing MI command -data-list-changed-registers.
9315
08b9c608
MG
93162011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
9317
9318 * xtensa-tdep.c (xtensa_read_register): New function.
9319 (xtensa_write_register): New function.
9320 (xtensa_find_register_by_name): New function.
9321 (xtensa_windowed_frame_cache): Update comments in type description.
9322 (xtensa_frame_cache): Likewise.
9323 (xtensa_window_interrupt_insn): New function.
9324 (xtensa_frame_cache): Add analysis for Xtensa Window Exception frames.
9325 (xtensa_insn_kind): Add new instructions.
9326 (rwx_special_register): New function.
9327 (call0_classify_opcode): Add new instructions to the analysis.
9328 (a0_saved, a7_saved, a11_saved): New variables.
9329 (a0_was_saved, a7_was_saved, a11_was_saved): New variables.
9330 (execute_l32e): New function.
9331 (execute_s32e): New function.
9332 (xtensa_exception_handler_t): New type.
9333 (execute_code): New function.
9334 (xtensa_window_interrupt_frame_cache): New function to conduct frame
9335 analysis for Xtensa Window Exception handlers.
9336
4d1acb11
MG
93372011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
9338
98689b25
MG
9339 * xtensa-tdep.c (TX_PS): New.
9340 (windowing_enabled): Update to count for Call0 ABI.
9341 (xtensa_hextochar): New.
9342 (xtensa_init_reggroups): Make algorithm generic.
9343 (xtensa_frame_cache): Use TX_PS on Tiny Xtensa.
9344
93452011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
9346
9347 * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): Update.
4d1acb11 9348
d3f323f3
MS
93492011-03-08 Michael Snyder <msnyder@vmware.com>
9350
3dcabaa8
MS
9351 * i386-tdep.c (i386_follow_jump): Check return value of
9352 target_read_memory.
9353 (i386_analyze_struct_return): Ditto.
9354 (i386_skip_probe): Ditto.
9355 (i386_match_insn): Ditto.
9356 (i386_skip_noop): Ditto.
9357 (i386_analyze_frame_setup): Ditto.
9358 (i386_analyze_register_saves): Ditto.
9359 (i386_skip_prologue): Ditto.
9360 (i386_skip_main_prologue): Ditto.
9361
13b3fd9b
MS
9362 * target.c (read_whatever_is_readable): Fix memory leak.
9363
d3f323f3
MS
9364 * i386-tdep.c (i386_process_record): Document fall through.
9365
421d5c74
JK
93662011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9367
9368 Fix DWARF-3+ DW_AT_accessibility default assumption.
9369 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
9370 cu->header.version >= 3.
9371
63154eca
PA
93722011-03-08 Pedro Alves <pedro@codesourcery.com>
9373
9374 * remote.c (remote_check_symbols): Skip if the target has no
9375 execution.
9376
f1a507a1
JB
93772011-03-08 Joel Brobecker <brobecker@adacore.com>
9378
9379 * target.c (read_whatever_is_readable): Reformat comment,
9380 with a minor typo fix. Minor reformatting of the code.
9381
36073a92
YQ
93822011-03-08 Yao Qi <yao@codesourcery.com>
9383
9384 * arm-tdep.c: Remove prototype declaration displaced_in_arm_mode.
9385 (displaced_read_reg): Add `dsc' parameter, remove `from' parameter.
9386 Use cached result instead of calling displaced_in_arm_mode again.
9387 (branch_write_pc, alu_write_pc, load_write_pc): Add `dsc' parameter.
9388 (displaced_write_reg, copy_preload, copy_preload_reg): Callers update.
9389 (cleanup_copro_load_store, copy_copro_load_store): Likewise.
9390 (cleanup_branch, copy_bx_blx_reg, copy_alu_imm): Likewise.
9391 (cleanup_alu_reg, copy_alu_reg, cleanup_alu_shifted_reg): Likewise.
9392 (copy_alu_shifted_reg, cleanup_load, cleanup_store): Likewise.
9393 (copy_extra_ld_st, copy_ldr_str_ldrb_strb): Likewise.
9394 (cleanup_block_load_all, cleanup_block_store_pc): Likewise.
9395 (cleanup_block_load_pc, copy_block_xfer): Likewise.
9396 * arm-linux-tdep.c (arm_linux_copy_svc): Callers update.
9397 (arm_catch_kernel_helper_return): Likewise.
9398 * gdb/arm-tdep.h : Update function declarations.
9399
d3f323f3 94002011-03-07 Michael Snyder <msnyder@vmware.com>
e6040cbd 9401
e0e40094
MS
9402 * dwarf2loc.c (indirect_pieced_value): Assert 'piece' not null.
9403
0b2381f5
MS
9404 * ser-unix.c (hardwire_get_tty_state): Stop memory leak.
9405
0350914a
MS
9406 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Free environment.
9407
69feea6f
MS
9408 * elfread.c (elf_symtab_read): Stop memory leak.
9409
e6040cbd
MS
9410 * main.c (captured_main): Fix memory leak.
9411
052874e8
AS
94122011-03-07 Andreas Schwab <schwab@linux-m68k.org>
9413
9414 * ada-lang.c (compare_names): Call is_name_suffix with string1
9415 instead of string2.
9416
b11896a5
TT
94172011-03-07 Tom Tromey <tromey@redhat.com>
9418
9419 * xcoffread.c (xcoff_sym_fns): Update.
9420 * symfile.h (struct sym_fns) <sym_read_psymbols>: New field.
9421 (enum symfile_add_flags) <SYMFILE_NO_READ>: New constant.
9422 * symfile.c (syms_from_objfile): Handle SYMFILE_NO_READ.
9423 (symbol_file_add_with_addrs_or_offsets): Likewise.
9424 (reread_symbols): Handle OBJF_PSYMTABS_READ.
9425 * somread.c (som_sym_fns): Update.
9426 * psymtab.h (require_partial_symbols): Declare.
9427 * psymtab.c (require_partial_symbols): New function.
9428 (ALL_OBJFILE_PSYMTABS_REQUIRED): New macro.
9429 (ALL_OBJFILE_PSYMTABS): Undef.
9430 (ALL_PSYMTABS): Move from psympriv.h.
9431 (lookup_partial_symtab, find_pc_sect_psymtab)
9432 (lookup_symbol_aux_psymtabs, relocate_psymtabs)
9433 (find_last_source_symtab_from_partial)
9434 (forget_cached_source_info_partial)
9435 (print_psymtab_stats_for_objfile, read_symtabs_for_function)
9436 (expand_partial_symbol_tables, read_psymtabs_with_filename)
9437 (map_symbol_names_psymtab, map_symbol_filenames_psymtab)
9438 (find_symbol_file_from_partial, map_matching_symbols_psymtab)
9439 (expand_symtabs_matching_via_partial, maintenance_info_psymtabs):
9440 Use ALL_OBJFILE_PSYMTABS_REQUIRED.
9441 * psympriv.h (ALL_PSYMTABS): Move to psymtab.c.
9442 * objfiles.h (OBJF_PSYMTABS_READ): New macro.
9443 * objfiles.c (objfile_has_partial_symbols): Handle lazily-read
9444 psymtabs.
9445 * mipsread.c (ecoff_sym_fns): Update.
9446 * machoread.c (macho_sym_fns): Update.
9447 * elfread.c (elf_symfile_read): Set up for lazy psymtab reading.
9448 (read_psyms): New function.
9449 (elf_sym_fns, elf_sym_fns_gdb_index): Update.
9450 (elf_sym_fns_lazy_psyms): New global.
9451 * dwarf2read.c (dwarf2_initialize_objfile): Don't call
9452 dwarf2_build_psymtabs.
9453 * dbxread.c (aout_sym_fns): Update.
9454 * coffread.c (coff_sym_fns): Update.
9455
fda326dd
TT
94562011-03-07 Tom Tromey <tromey@redhat.com>
9457
9458 * infrun.c (print_exited_reason): Include inferior id and pid in
9459 message.
9460
aeaec162
TT
94612011-03-07 Tom Tromey <tromey@redhat.com>
9462
9463 * target.h (struct target_ops) <to_has_execution>: Add ptid_t
9464 parameter.
9465 (target_has_execution_1): Update.
9466 (target_has_execution_current): Declare.
9467 (target_has_execution): Call target_has_execution_current.
9468 (default_child_has_execution): Update.
9469 * target.c (default_child_has_execution): Add 'the_ptid'
9470 parameter.
9471 (target_has_execution_1): Likewise.
9472 (target_has_execution_current): New function.
9473 (add_target): Update.
9474 (init_dummy_target): Update.
9475 * remote-m32r-sdi.c (m32r_has_execution): New function.
9476 (init_m32r_ops): Use it.
9477 * record.c (record_core_has_execution): Now static. Add
9478 'the_ptid' parameter.
9479 * inferior.c (have_live_inferiors): Don't save current thread.
9480 Use target_has_execution_1.
9481
08e14083
YQ
94822011-03-07 Yao Qi <yao@codesourcery.com>
9483
9484 * Makefile.in (aclocal_m4_deps): Remove gnulib/m4/memcmp.m4.
9485
c05d19c5
JB
94862011-03-07 Joel Brobecker <brobecker@adacore.com>
9487
9488 * elfread.c (elf_symtab_read): Minor reformatting.
9489
3e6ef9e4
JB
94902011-03-07 Joel Brobecker <brobecker@adacore.com>
9491
9492 * objc-lang.c (selectors_info): Minor reformatting.
9493
dbb8534f
JB
94942011-03-07 Joel Brobecker <brobecker@adacore.com>
9495
9496 * ada-lang.c (compare_names): Add FALLTHROUGH comment.
9497
dd70cc93
JB
94982011-03-07 Joel Brobecker <brobecker@adacore.com>
9499 Michael Snyder <msnyder@vmware.com>
9500
9501 * ada-valprint.c (ada_val_print_array): Move the declaration of
9502 "byte_order" and "elttype" inside the block where these variables
9503 are actually used. Remove some special handling for the case
9504 where "elttype" and "eltlen" are null. Replace by a comment
9505 and a couple of assertion checks.
9506
b27cf2b3
MS
95072011-03-05 Michael Snyder <msnyder@vmware.com>
9508
9509 * source.c (add_path): Replace semicolon at end of block.
9510 * dwarf2expr.c (execute_stack_op): Ditto.
9511
5387a0c6
MF
95122011-03-05 Mike Frysinger <vapier@gentoo.org>
9513
9514 * bfin-tdep.c: Include sim-regno.h and gdb/sim-bfin.h.
9515 * configure.tgt (bfin-*-*linux*): Define gdb_sim.
9516 (bfin-*-*): Likewise.
9517
e3aa49af
MS
95182011-03-05 Michael Snyder <msnyder@vmware.com>
9519
82ae4854
MS
9520 * dwarf2expr.c (execute_stack_op): Delete superfluous semicolon.
9521 * mdebugread.c (parse_symbol): Ditto.
9522 * parse.c (parse_exp_in_context): Ditto.
9523 * source.c (add_path): Ditto.
9524 * utils.c (gnu_debuglink_crc32): Ditto.
9525 * varobj.c (variable_language): Ditto.
9526
e3aa49af
MS
9527 * linux-tdep.c (linux_get_siginfo_type): Stop memory leak.
9528
154f592e
MS
95292011-03-04 Michael Snyder <msnyder@vmware.com>
9530
da3ecdc6
MS
9531 * linux-fork.c (inferior_call_waitptid): Fix copy/paste error.
9532
9cc89665
MS
9533 * symfile.c (simple_overlay_update): Check for null return value
9534 from lookup_minimal_symbol.
9535
154f592e
MS
9536 * xml-syscall.c (syscall_start_syscall): Assert name is non null.
9537
63ffa6ee
TJB
95382011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
9539
9540 * eval.c (parse_and_eval_address_1): Remove function.
9541 * linespec.c (decode_indirect): Call parse_to_comma_and_eval
9542 instead of parse_and_eval_address_1.
9543 * value.h (parse_and_eval_address_1): Remove prototype.
9544
a17d146e
MS
95452011-03-04 Michael Snyder <msnyder@vmware.com>
9546
9547 * remote.c (putpkt_binary): Document that case stmt falls through.
9548
1a6a67de
TJB
95492011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
9550
9551 * breakpointc (print_it_typical): Move NULL check from here...
9552 (print_bp_stop_message): ... to here.
9553
488919c4
MS
95542011-03-04 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
9555
9556 * breakpoint.c (enable_command): Use break instead of continue,
9557 and fill in a missing break.
9558 (disable_command): Ditto.
9559
1e182ce8
UW
95602011-03-04 Ulrich Weigand <ulrich.weigand@linaro.org>
9561
9562 * inflow.c (terminal_init_inferior_with_pgrp): Copy ttystate.
9563 (terminal_save_ours): Remove misleading comment.
9564 (inflow_inferior_data_cleanup): Free ttystate.
9565 (inflow_inferior_exit): Likewise.
9566 (copy_terminal_info): Copy ttystate.
9567
9568 * serial.c (serial_copy_tty_state): New function.
9569 * serial.h (serial_copy_tty_state): Add prototype.
9570 (struct serial_ops): Add copy_tty_state callback.
9571 * ser-base.c (ser_base_copy_tty_state): New function.
9572 * ser-base.h (ser_base_copy_tty_state): Add prototype.
9573 * ser-go32.c (dos_copy_tty_state): New function.
9574 (dos_ops): Install copy_tty_state callback.
9575 * ser-mingw.c (_initialize_ser_windows): Likewise.
9576 * ser-pipe.c (_initialize_ser_pipe): Likewise.
9577 * ser-unix.c (hardwire_copy_tty_state): New function.
9578 (_initialize_ser_hardwire): Install it.
9579
b2c5f112
MS
95802011-03-04 Michael Snyder <msnyder@vmware.com>
9581
2abae994
MS
9582 * breakpoint.c (create_breakpoint): Add missing break statement.
9583
7f5936f9
MS
9584 Reverting this patch:
9585 * infcall.c (call_function_by_hand): Add break statements for lint.
9586
b2c5f112
MS
9587 Reverting this patch:
9588 * cli/cli-script.c (script_from_file): Add break for lint.
9589
42b1321c
MS
95902011-03-04 Michael Snyder <msnyder@vmware.com>
9591
9592 * solib.c (reload_shared_libraries_1): Close memory leak.
9593
3e2a0cee
TT
95942011-03-03 Tom Tromey <tromey@redhat.com>
9595
9596 PR gdb/12538:
9597 * dwarf2read.c (process_psymtab_comp_unit): Handle case where
9598 DW_STRING is NULL.
9599
58397cb7
MS
96002011-03-03 Michael Snyder <msnyder@vmware.com>
9601
2e3fd767
MS
9602 * remote-fileio.c (remote_fileio_func_fstat): Initialize all
9603 fields of struct 'st' to zero.
9604
58397cb7
MS
9605 * tui/tui-winsource.c (tui_update_source_window_as_is): Initialize
9606 sal.pspace before calling set_current_source_symtab_and_line.
9607
ced54c8f
YQ
96082011-03-03 Yao Qi <yao@codesourcery.com>
9609
9610 * Makefile.in (configure-common): Remove. Let Makefile
9611 in dir common to rebuild itself.
9612 (common/Makefile): Likewise.
9613
3351ea09
JB
96142011-03-03 Joel Brobecker <brobecker@adacore.com>
9615
9616 * utils.c (parse_escape): Add i18n markup in error message.
9617
bf9f652a
YQ
96182011-03-03 Yao Qi <yao@codesourcery.com>
9619
9620 * gdb/arm-tdep.c (shifted_reg_val): Replace magic number 15 with
9621 ARM_PC_REGNUM.
9622 (thumb_get_next_pc_raw, arm_get_next_pc_raw): Likewise.
9623 (displaced_write_reg, displaced_read_reg): Likewise.
9624 (copy_ldr_str_ldrb_strb, cleanup_block_load_all): Likewise.
9625 (cleanup_block_load_pc, copy_block_xfer): Likewise.
9626 (cleanup_branch): Replace magic number 14 and 15 with
9627 ARM_LR_REGNUM and ARM_PC_REGNUM respectively.
9628
d42de051
MS
96292011-03-02 Michael Snyder <msnyder@vmware.com>
9630
240f9570
MS
9631 * maint.c (maintenance_do_deprecate): No need to check for NULL.
9632
10dd8b54
MS
9633 * cli/cli-script.c (script_from_file): Add break for lint.
9634
b98bd911
MS
9635 * mdebugread.c (parse_partial_symbols): Fix indent.
9636
3494b66d
MS
9637 * target-descriptions.c (tdesc_gdb_type): No need to call
9638 xstrdup, callee saves a copy.
9639
daac021a
MS
9640 * printcmd.c (print_scalar_formatted): Use strncpy for safety.
9641
c38d16a7
MS
9642 * infcall.c (call_function_by_hand): Add break statements for lint.
9643
905b671b
MS
9644 * utils.c (parse_escape): Escape the escape char.
9645
f2eb0bc8 9646 * python/py-inferior.c (build_inferior_list): Error out if
2d565757
MS
9647 PyList_Append fails.
9648 (gdbpy_inferiors): Error out if build_inferior_list fails.
9649
8c6a60d1
MS
9650 * linux-nat.c (linux_nat_xfer_partial): Preserve errno around
9651 a function call.
9652
d42de051
MS
9653 * record.c (record_restore): Move printf to before error return.
9654
4db71c0b
YQ
96552011-03-02 Yao Qi <yao@codesourcery.com>
9656
9657 * arm-tdep.h (struct displaced_step_closure): Add two new fields
9658 is_thumb and insn_size.
9659 * arm-tdep.c (displaced_read_reg): Adjust correct pipeline offset
9660 on both ARM and Thumb mode.
9661 (arm_process_displaced_insn): Set is_thumb and insn_size.
9662 (arm_displaced_init_closure): Handle both 16-bit and 32-bit.
9663 (arm_displaced_step_fixup): Likewise.
9664
a9dc8dcc
MS
96652011-03-01 Michael Snyder <msnyder@vmware.com>
9666
53624a93
MS
9667 * cli/cli-dump.c (dump_bfd_file): Check error return and warn.
9668
77766669
MS
9669 * jv-lang.c (evaluate_subexp_java): Conditional can't be true.
9670
62d5b8da
MS
9671 * dwarf2read.c (dwarf2_compute_name): NAME cannot be null here.
9672
5e9e105f
MS
9673 * cli/cli-dump.c (restore_binary_file): Validate ftell return value.
9674
dc19db01
MS
9675 * ada-lang.c (ada_make_symbol_completion_list): Replace malloc
9676 with xmalloc.
9677
5ce64950
MS
9678 * ada-lang.c (aggregate_assign_others): Rename inner scope variable
9679 which shadows function parameter.
9680
a0aa2878
MS
9681 * tracepoint.c (create_tsv_from_upload): Superfluous call
9682 to xstrdup. Callee already calls xstrdup.
9683
e325fb69
MS
9684 * linespec.c (decode_line_1): Remove unnecessary null check.
9685
21cbba77
MS
9686 * tracepoint.c (scope_info): Fix mem leak, remove underused
9687 variable.
9688
63360adc
MS
9689 * python/py-prettyprint.c (apply_val_pretty_printer): Remove
9690 superfluous null check.
9691
18ea20ac 9692 * std-regs.c (value_of_builtin_frame_pc_reg): Frame can't be null.
23ce9890 9693 (value_of_builtin_frame_fp_reg): Ditto.
18ea20ac 9694
d014929c
MS
9695 * event-top.c (display_gdb_prompt): Remove superfluous null check.
9696
6e9130cf
MS
9697 * python/py-prettyprint.c (apply_val_pretty_printer): VAL may
9698 be null.
9699
5f01dbc0
MS
9700 * linespec.c (decode_line_1): Check for null before dereference.
9701
d684ab85
MS
9702 * reverse.c (record_restore): Move null-check to before pointer
9703 dereference.
9704
bfffb7e3
MS
9705 * python/py-utils.c (gdbpy_obj_to_string): Delete unused variable.
9706
a9dc8dcc
MS
9707 * objc-lang.c (selectors_info): Add explanitory comment.
9708 (classes_info): Ditto.
9709
478fd957
UW
97102011-03-01 Ulrich Weigand <ulrich.weigand@linaro.org>
9711
9712 * arm-linux-tdep.c (ARM_LDR_PC_SP_4): Add define.
9713 (arm_linux_restart_syscall_init): Handle both on-stack and in-kernel
9714 versions of the trampoline. Handle Thumb vs. ARM addresses.
9715 (arm_kernel_linux_restart_syscall_tramp_frame): New global.
9716 (arm_linux_init_abi): Install it.
9717 * arm-tdep.c (arm_psr_thumb_bit): Make global.
9718 * arm-tdep.c (arm_psr_thumb_bit): Add prototype.
9719
0480cefa
MS
97202011-02-28 Michael Snyder <msnyder@vmware.com>
9721
ac50ab3b
MS
9722 * ui-out.c (ui_out_field_core_addr): Make local char buffer
9723 a little bigger, to avoid possibility of an overflow.
9724
f63fbe86
MS
9725 * breakpoint.c (breakpoint_adjustment_warning): Make local char
9726 buffers a little bigger, to avoid possibility of an overflow.
9727
9e91a352
MS
9728 * coffread.c (coff_getfilename): Add check to avoid overflow.
9729
f2eb0bc8 9730 * objc-lang.c (selectors_info): Add a small safety margin to
28288541
MS
9731 avoid overflow.
9732 (classes_info): Error out on too long REGEXP.
9733
098ab512
MS
9734 * infrun.c (handle_inferior_event): Remove unused function call.
9735
bcbd1de9
MS
9736 * fork-child.c (fork_inferior): Remove ifdef'd code and
9737 unused variable.
9738
2e456570
MS
9739 * linux-thread-db.c (attach_thread): Discard unused value.
9740
14571dad
MS
9741 * linux-nat.c (linux_handle_extended_wait): Delete unused variable.
9742
a9cbf802
MS
9743 * remote.c (remote_get_noisy_reply): Discard unused value.
9744 (remote_vcont_resume): Ditto.
9745 (remote_stop_ns): Ditto.
9746
5715d26e
MS
9747 * linespec.c (decode_objc): Delete unused variable.
9748
4a9bca80
MS
9749 * tui/tui-regs.c (tui_register_format): Delete unused variable.
9750
f47fb265
MS
9751 * dwarf2read.c (add_partial_symbol): Discard unused values.
9752 (read_base_type): Delete unused variable.
9753
e81cff30
MS
9754 * dbxread.c (read_dbx_symtab): Discard unused value.
9755
262acaeb
MS
9756 * eval.c (evaluate_subexp_standard): Delete unused variable,
9757 and discard unused values.
9758
df983543
MS
9759 * infcmd.c (_initialize_infcmd): Discard unused values.
9760
89acf84d
MS
9761 * stabsread.c (rs6000_builtin_type): Missing break statement.
9762
ab8b8aca
MS
9763 * dbxread.c (process_one_symbol): Discard unused value.
9764
6b4511ab
MS
9765 * coffread.c (coff_end_symtab): Delete unused variable.
9766
e8e80198
MS
9767 * dwarf2read.c (dw2_get_file_names): Discard unused value.
9768 (dwarf2_add_typedef): Delete unused variable.
9769 (read_namespace): Ditto.
9770 (dwarf_decode_macros): Ditto.
9771
976aa66e
MS
9772 * m2-lang.c (evaluate_subexp_modula2): Discard unused variable.
9773
5b92b49f
MS
9774 * opencl-lang.c (evaluate_subexp_opencl): Discard unused value.
9775
91e8df85
MS
9776 * p-valprint.c (pascal_val_print): Discard unused value.
9777
899500d6
MS
9778 * utils.c (nquery): Call va_end before return;
9779 (yquery): Ditto.
9780 (query): Ditto.
9781
0480cefa
MS
9782 * proc-service.c (ps_plog): Call va_end before return.
9783
fb6a3ed3
TT
97842011-02-28 Tom Tromey <tromey@redhat.com>
9785
9786 * python/python.c (gdbpy_value_cst): New global.
9787 (_initialize_python): Initialize it.
9788 * python/python-internal.h (gdbpy_value_cst): Declare.
9789 * python/py-value.c (convert_value_from_python): Use
9790 gdbpy_value_cst.
9791
c05202a1
MS
97922011-02-28 Michael Snyder <msnyder@vmware.com>
9793
e463f587
MS
9794 * python/py-cmd.c (cmdpy_init): Fix memory leak.
9795
c38eea1a
MS
9796 * breakpoint.c (catch_syscall_completer): Free malloced list.
9797
3ef09ab5
MS
9798 * jv-lang.c (java_primitive_type_from_name): Add missing break.
9799
8f9a01ee
MS
9800 * opencl-lang.c (lval_func_check_validity): Rename inner variables.
9801 (lval_func_check_synthetic_pointer): Ditto.
9802 (lval_func_free_closure): Fix use-after-free.
c05202a1 9803
477d0d57
TT
98042011-02-28 Tom Tromey <tromey@redhat.com>
9805
9806 * psymtab.c (expand_partial_symbol_tables): Use
9807 ALL_OBJFILE_PSYMTABS.
9808
20937029
JK
98092011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
9810
9811 * objc-lang.c (selectors_info): Error on too long REGEXP.
9812
907b7f4f
MS
98132011-02-28 Michael Snyder <msnyder@vmware.com>
9814
92e96192
MS
9815 * python/py-param.c (set_parameter_value): Add missing
9816 break statement.
9817
907b7f4f
MS
9818 * linux-record.c (record_linux_system_call): Add missing
9819 break statement.
9820
12c5a436
UW
98212011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
9822
9823 * breakpoint.c (print_one_breakpoint_location): Remove unused
9824 argument PRINT_ADDRESS_BITS. Update callers.
9825 (print_one_breakpoint): Likewise.
9826
170b53b2
UW
98272011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
9828
9829 * breakpoint.c (wrap_indent_at_field): New function.
9830 (print_breakpoint_location): Use it instead of WRAP_INDENT argument.
9831 Allocate ui_stream locally instead of using STB argument.
9832 (print_one_breakpoint_location): Update call.
9833 * ui-out.c (ui_out_query_field): New function.
9834 * ui-out.h (ui_out_query_field): Add prototype.
9835
8ab1f94d
JB
98362011-02-28 Joel Brobecker <brobecker@adacore.com>
9837
9838 From Michael Snyder <msnyder@vmware.com>
9839 * ada-exp.y (write_object_renaming): Add FALLTHROUGH comment.
9840
7d488639
MS
98412011-02-27 Michael Snyder <msnyder@vmware.com>
9842
ae179fba
MS
9843 * objc-lang.c (selectors_info): Prevent string overrun.
9844
086dbf66
MS
9845 * tui/tui-stack.c (tui_get_function_from_frame): Fix off by one
9846 error in strncpy.
9847
f2eb0bc8 9848 * symtab.c (rbreak_command): Move variable 'file_name' to
9c1e305a
MS
9849 outer scope.
9850
7d488639
MS
9851 * d-valprint.c (dynamic_array_type): Avoid shadowing a function
9852 param with a local variable of the same name.
9853
3bd0f5ef
MS
98542011-02-27 Michael Snyder <msnyder@vmware.com>
9855
9856 * value.c (value_from_history_ref): New function.
9857 * value.h (value_from_history_ref): Export.
9858 * cli/cli-utils.c (get_number_trailer): Use value_from_history_ref
9859 to parse value history references.
9860 * cli/cli-utils.h (get_number_trailer): Update comment.
9861
98622011-02-27 Michael Snyder <msnyder@vmware.com>
9863
9864 * inferior.c (detach_inferior_command): Use get_number_or_range.
9865 (kill_inferior_command): Ditto.
9866 (remove_inferior_command): Ditto.
9867 (initialize_inferiors): Make command names plural.
9868 Update help strings.
9869
766062f6
MS
98702011-02-27 Michael Snyder <msnyder@vmware.com>
9871
9872 * darwin-nat-info.c: Fix comment typo.
9873 * dwarf2expr.h: Ditto.
9874 * fbsd-nat.c: Ditto.
9875 * fbsd-nat.h: Ditto.
9876 * frame-unwind.h: Ditto.
9877 * frame.h: Ditto.
9878 * hppa-hpux-tdep.c: Ditto.
9879 * i386-linux-nat.c: Ditto.
9880 * linux-nat.c: Ditto.
9881 * nbsd-nat.c: Ditto.
9882 * nbsd-nat.h: Ditto.
9883 * ppc-linux-tdep.c: Ditto.
9884 * serial.c: Ditto.
9885 * ui-file.h: Ditto.
9886 * tui/tui-winsource.c: Ditto.
9887
f2c4ead5
MS
98882011-02-26 Michael Snyder <msnyder@vmware.com>
9889
86b887df
MS
9890 * breakpoint.c (reattach_breakpoints): Avoid resource leak (ui_file).
9891
66fd3b1e
MS
9892 * maint.c (maintenance_do_deprecate): Plug a memory leak.
9893
8c814cdd
MS
9894 * dwarf2loc.c (insert_bits): Avoid shadowing a function param
9895 with a local variable of the same name.
9896
6d5e094a 9897 * i387-tdep.c (i387_supply_fxsave): Avoid shadowing a function
e5b3d7d6 9898 param with a local variable of the same name.
6d5e094a 9899 (i387_supply_xsave): Ditto.
e5b3d7d6 9900
5eee517d
MS
9901 * linux-low.c (linux_nat_xfer_osdata): Rename local variable so
9902 that it does not shadow a function parameter.
9903
8fbf6b93
MS
9904 * i386-nat.c (i386_length_and_rw_bits): Document that case
9905 statement is meant to fall through.
9906
cb969d61
MS
9907 * expprint.c (dump_subexp_body_standard): Document that case
9908 statement is meant to fall through.
9909
f2c4ead5
MS
9910 * amd64-linux-tdep.c (amd64_linux_syscall_record): Delete
9911 dead if statement. Condition can't be false.
9912
b021a221
MS
99132011-02-25 Michael Snyder <msnyder@vmware.com>
9914
9915 * arm-tdep.c: Fix typos in comments.
9916 * bsd-uthread.c: Ditto.
9917 * completer.c: Ditto.
9918 * corelow.c: Ditto.
9919 * cp-namespace.c: Ditto.
9920 * cp-support.c: Ditto.
9921 * cris-tdep.c: Ditto.
9922 * dbxread.c: Ditto.
9923 * dwarf2read.c: Ditto.
9924 * frame.h: Ditto.
9925 * gdbtypes.h: Ditto.
9926 * inferior.h: Ditto.
9927 * mdebugread.c: Ditto.
9928 * mips-tdep.c: Ditto.
9929 * ppc-linux-nat.c: Ditto.
9930 * ppc-linux-tdep.c: Ditto.
9931 * printcmd.c: Ditto.
9932 * sol-thread.c: Ditto.
9933 * solib-frv.c: Ditto.
9934 * solist.h: Ditto.
9935 * sparc64-tdep.c: Ditto.
9936 * spu-tdep.c: Ditto.
9937 * stabsread.c: Ditto.
9938 * symfile.c: Ditto.
9939 * valops.c: Ditto.
9940 * varobj.c: Ditto.
9941 * vax-nat.c: Ditto.
9942 * python/py-block.c: Ditto.
9943 * python/py-symbol.c: Ditto.
9944 * python/py-symtab.c: Ditto.
9945 * python/py-value.c: Ditto.
9946 * tui/tui-win.c: Ditto.
9947
c82c0b55
MS
99482011-02-25 Michael Snyder <msnyder@vmware.com>
9949
9950 * inferior.c (print_inferior): Accept a string instead of an int
9951 for requested_inferiors, and use get_number_or_range to parse it.
9952 (info_inferiors_command): Pass args string to print_inferior.
9953 (initialize_inferiors): Change help string for info inferiors.
9954 * inferior.h (print_inferior): Export prototype change.
9955
ee00cd23
TT
99562011-02-25 Tom Tromey <tromey@redhat.com>
9957
9958 * common/ax.def (invalid2): Set to 0x31.
9959
0502ed8c
JK
99602011-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
9961
9962 * dwarf2loc.c (disassemble_dwarf_expression) <DW_OP_breg[0-9]+>: Use
9963 L and plongest.
9964 (disassemble_dwarf_expression) <DW_OP_bregx>: Drop variable offset,
9965 use L and plongest.
9966 (disassemble_dwarf_expression) <DW_OP_fbreg>: Use L and plongest.
9967
2c9de912
MS
99682011-02-24 Michael Snyder <msnyder@vmware.com>
9969
9970 * Makefile.in (clean): Make clean should remove generated files
9971 observer.h and observer.inc.
9972
a04b0428
JB
99732011-02-24 Joel Brobecker <brobecker@adacore.com>
9974
9975 Revert the following patch (not approved yet):
9976 2011-02-21 Hui Zhu <teawater@gmail.com>
9977 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
9978 * ax-gdb.c (gen_printf_expr_callback): New function.
9979 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
9980 * ax-general.c (ax_memcpy): New function.
9981 (ax_print): Handle "printf".
9982 (ax_reqs): Ditto.
9983 * ax.h (ax_memcpy): Forward declare.
9984 * common/ax.def (invalid2): Removed.
9985 (printf): New entry.
9986 * printcmd.c (printcmd.h): New include.
9987 (string_printf): New function.
9988 (ui_printf): Removed.
9989 (printf_command): Remove static. Call string_printf.
9990 (eval_command): Call string_printf.
9991 * printcmd.h: New file.
9992 * tracepoint.c (validate_actionline,
9993 encode_actions_1): handle printf_command.
9994
2b52013f
TT
99952011-02-23 Tom Tromey <tromey@redhat.com>
9996
9997 * ax-general.c (ax_pick): Add missing newline.
9998
e5a67952
MS
99992011-02-23 Michael Snyder <msnyder@vmware.com>
10000
10001 * breakpoint.c (breakpoint_1): Change first argument from an int
10002 to a char pointer, so that the function now accepts a list of
f2eb0bc8 10003 breakpoints rather than just one. Use new function
e5a67952
MS
10004 'number_is_in_list' to implement.
10005 (breakpoints_info): Pass char * instead of int to breakpoint_1.
10006 (watchpoints_info): Ditto.
10007 (tracepoints_info): Ditto.
10008 (maintenance_info_breakpoints): Ditto.
10009 (_initialize_breakpoint): Update help strings to reflect the fact
10010 that these functions can now take more than one argument.
10011 * cli/cli-utils.c (number_is_in_list): New function.
10012 * cli/cli-utils.h (number_is_in_list): Export.
10013
100142011-02-23 Michael Snyder <msnyder@vmware.com>
fbcb778d
MS
10015
10016 * memattr.c (mem_enable_command): Use get_number_or_range.
10017 (mem_disable_command): Ditto.
10018 (mem_delete_command): Ditto.
10019 (_initialize_mem): Tweak usage message to reflect multiple
10020 arguments.
10021
6e6fbe60
DE
100222011-02-22 Doug Evans <dje@google.com>
10023
10024 Add gdb.lookup_global_symbol python function.
10025 * NEWS: Add entry.
10026 * python/py-symbol.c (gdbpy_lookup_global_symbol): New function.
10027 * python/python-internal.h (gdbpy_lookup_global_symbol): Declare it.
10028 * python/python.c (GdbMethods): Add entry for lookup_global_symbol.
10029
79b97fa8
TT
100302011-02-22 Tom Tromey <tromey@redhat.com>
10031
10032 * language.c (language_class_name_from_physname): Rename
10033 'curr_language' argument to 'lang'; use in body.
10034
298f437a
MS
100352011-02-22 Michael Snyder <msnyder@vmware.com>
10036
10037 * cli/cli-utils.c (number_is_in_list): Check for zero return.
10038
b7ea3126
PA
100392011-02-22 Pedro Alves <pedro@codesourcery.com>
10040
10041 * frame-unwind.h: Fix comment to mention the this frame, not the
10042 next.
10043
58ee6d60
TT
100442011-02-22 Tom Tromey <tromey@redhat.com>
10045
10046 * symfile.c (auto_solib_limit): Remove.
10047 * symfile.h (auto_solib_limit): Remove.
10048
36238dbc
JB
100492011-02-22 Joel Brobecker <brobecker@adacore.com>
10050
10051 * Makefile.in (INSTALLED_LIBS): Delete. Update comment.
10052
aea5b279
MS
100532011-02-21 Michael Snyder <msnyder@vmware.com>
10054
10055 * gdbthread.h (print_thread_info): Change prototype.
10056 * thread.c (print_thread_info): Accept char* instead of int for
10057 requested_threads argument. Use new function number_is_in_list
10058 to determine which threads to list.
10059 (info_threads_command): Pass char* to print_thread_info.
10060 * cli/cli-utils.c (number_is_in_list): New function.
10061 * cli/cli-utils.h (number_is_in_list): Export.
f2eb0bc8 10062 * mi/mi-main.c (mi_cmd_thread_info): Pass char* to
aea5b279
MS
10063 print_thread_info.
10064 (print_one_inferior): Ditto.
10065 (mi_cmd_list_thread_groups): Ditto.
10066
8caa75ee
JK
100672011-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
10068
10069 * common/Makefile.in (CFLAGS): New.
10070 (COMPILE): Add $(CFLAGS).
10071
ea666128
TT
100722011-02-21 Tom Tromey <tromey@redhat.com>
10073
10074 * breakpoint.c (catch_syscall_command_1): Fix typo.
10075
e9cafbcc
TT
100762011-02-21 Tom Tromey <tromey@redhat.com>
10077
10078 * reverse.c: Include cli-utils.h.
10079 * printcmd.c: Include cli-utils.h.
10080 (string_printf): Use skip_spaces.
10081 * cli/cli-utils.h: New file.
10082 * cli/cli-utils.c: New file.
10083 * cli/cli-dump.h (skip_spaces): Move to cli-utils.h.
10084 * cli/cli-dump.c (skip_spaces): Move to cli-utils.c.
10085 * breakpoint.h (get_number, get_number_or_range): Move to
10086 cli-utils.h.
10087 * breakpoint.c: Include cli-utils.h.
10088 (get_number_trailer, get_number, get_number_or_range)
10089 (ep_skip_leading_whitespace): Move to cli-utils.c.
10090 (create_breakpoint_sal, find_condition_and_thread)
10091 (decode_static_tracepoint_spec, watch_command_1)
10092 (watch_maybe_just_location, ep_parse_optional_if_clause)
10093 (catch_fork_command_1, catch_exec_command_1)
10094 (catch_syscall_command_1): Use skip_spaces, skip_to_space.
10095 * Makefile.in (SUBDIR_CLI_OBS): Add cli-utils.o.
10096 (SUBDIR_CLI_SRCS): Add cli-utils.c.
10097 (HFILES_NO_SRCDIR): Add cli-utils.h.
10098 (cli-utils.o): New target.
10099
f67fd822
PM
101002011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
10101
10102 * remote.c (remote_close): Reset INFERIOR_PTID to NULL_PTID
10103 before calling discard_all_inferiors.
10104
c9def01d
UW
101052011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
10106
10107 * opencl-lang.c (STRUCT_OCL_TYPE): Remove.
10108 (struct builtin_opencl_type): Remove.
10109 (builtin_opencl_type): Change return type to "struct type **".
10110 (lookup_opencl_vector_type): Update caller.
10111 (opencl_language_arch_info): Copy primitive type vector from gdbarch.
10112 (build_opencl_types): Install plain array of "struct type *"
10113 instead of "struct builtin_opencl_type".
10114
e3039479
UW
101152011-02-21 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
10116 Ulrich Weigand <uweigand@de.ibm.com>
10117
10118 * arm-linux-nat.c: Include "observer.h" and "gdbthread.h".
10119 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define.
10120 (struct arm_linux_hwbp_cap): New type.
10121 (arm_linux_get_hwbp_cap): New function.
10122 (arm_linux_get_hw_breakpoint_count): Likewise.
10123 (arm_linux_get_hw_watchpoint_count): Likewise.
10124 (arm_linux_can_use_hw_breakpoint): Likewise.
10125 (arm_hwbp_type): New type.
10126 (arm_hwbp_control_t): Likewise.
10127 (struct arm_linux_hw_breakpoint): Likewise.
10128 (struct arm_linux_thread_points): Likewise.
10129 (arm_threads): New global variable.
10130 (arm_linux_find_breakpoints_by_tid): New function.
10131 (arm_hwbp_control_initialize): Likewise.
10132 (arm_hwbp_control_is_enabled): Likewise.
10133 (arm_hwbp_control_disable): Likewise.
10134 (arm_linux_hw_breakpoint_initialize): Likewise.
10135 (arm_linux_get_hwbp_type): Likewise.
10136 (arm_linux_hw_watchpoint_initialize): Likewise.
10137 (arm_linux_hw_breakpoint_equal): Likewise.
10138 (arm_linux_insert_hw_breakpoint1): Likewise.
10139 (arm_linux_remove_hw_breakpoint1): Likewise.
10140 (arm_linux_insert_hw_breakpoint): Likewise.
10141 (arm_linux_remove_hw_breakpoint): Likewise.
10142 (arm_linux_region_ok_for_hw_watchpoint): Likewise.
10143 (arm_linux_insert_watchpoint): Likewise.
10144 (arm_linux_remove_watchpoint): Likewise.
10145 (arm_linux_stopped_data_address): Likewise.
10146 (arm_linux_stopped_by_watchpoint): Likewise.
10147 (arm_linux_watchpoint_addr_within_range): Likewise.
10148 (arm_linux_new_thread): Likewise.
10149 (arm_linux_thread_exit): Likewise.
10150 (_initialize_arm_linux_nat): Install hardware breakpoint/watchpoint
10151 related target callbacks. Register arm_linux_new_thread and
10152 arm_linux_thread_exit.
10153 * arm-tdep.h (arm_pc_is_thumb): Add prototype.
10154 * arm-tdep.c (arm_pc_is_thumb): Make global.
10155 (arm_gdbarch_init): Call set_gdbarch_have_nonsteppable_watchpoint.
10156
b5db5dfc
UW
101572011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
10158
10159 * breakpoint.c (update_watchpoint): Do not attempt to recreate
10160 per-frame locations while within a function epilogue.
10161
e25b2cfa
PM
101622011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
10163
10164 * ser-mingw.c (ser_windows_close): Reformat comment to better conform
10165 to GNU coding standards.
10166
4af53f97
PM
101672011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
10168
10169 Allow use of mingw native on Windows 95 OS.
e25b2cfa 10170 * ser-mingw.c (CancelIo): New macro for dynamically loaded DLL entry.
4af53f97
PM
10171 (ser_windows_close): Only call CancelIo if function exists.
10172 (_initialize_ser_windows): Use LoadLirary/GetProcAddress
10173 to check for existence of CancelIo function in kernel32 DLL.
10174
d0e92d82
HZ
101752011-02-21 Hui Zhu <teawater@gmail.com>
10176
10177 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
10178 * ax-gdb.c (gen_printf_expr_callback): New function.
10179 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
10180 * ax-general.c (ax_memcpy): New function.
10181 (ax_print): Handle "printf".
10182 (ax_reqs): Ditto.
10183 * ax.h (ax_memcpy): Forward declare.
10184 * common/ax.def (invalid2): Removed.
10185 (printf): New entry.
10186 * printcmd.c (printcmd.h): New include.
10187 (string_printf): New function.
10188 (ui_printf): Removed.
10189 (printf_command): Remove static. Call string_printf.
10190 (eval_command): Call string_printf.
10191 * printcmd.h: New file.
10192 * tracepoint.c (validate_actionline,
10193 encode_actions_1): handle printf_command.
10194
7d357efd
MS
101952011-02-19 Michael Snyder <msnyder@vmware.com>
10196
10197 * reverse.c (delete_one_bookmark): Argument is now bookmark
10198 id rather than pointer to bookmark struct.
10199 (delete_bookmark_command): Use get_number_or_range.
10200 (goto_bookmark_command): Parse with get_number instead of strtoul.
10201 (bookmark_1): New function. Print info for one bookmark.
10202 (bookmarks_info): Use get_number_or_range and bookmark_1.
10203
7a45ebd7
MS
102042011-02-18 Michael Snyder <msnyder@vmware.com>
10205
f2eb0bc8 10206 * thread.c (info_threads_command): Re-implement using
7a45ebd7 10207 get_number_or_range.
65ebfb52 10208 (thread_apply_command): Ditto.
7a45ebd7 10209
94d5e490
TT
102102011-02-18 Tom Tromey <tromey@redhat.com>
10211
10212 * common/ax.def: New file.
10213 * ax.h (enum agent_op): Use ax.def.
10214 * ax-general.c (aop_map): Use ax.def.
10215
c7f96d2b
TT
102162011-02-18 Tom Tromey <tromey@redhat.com>
10217
10218 * ax-general.c (aop_map): Add pick and rot.
10219 * dwarf2loc.c (compile_dwarf_to_ax) <DW_OP_over>: Reimplement.
10220 <DW_OP_rot>: Implement.
10221 * ax.h (enum agent_op) <aop_pick, aop_rot>: New constants.
10222 (ax_pick): Declare.
10223 * ax-general.c (ax_pick): New function.
10224
66694b75
TT
102252011-02-18 Tom Tromey <tromey@redhat.com>
10226
10227 * Makefile.in (HFILES_NO_SRCDIR): Don't mention ada-operator.inc.
10228
eeaafae2
JK
102292011-02-18 Jan Kratochvil <jan.kratochvil@redhat.com>
10230 Tom Tromey <tromey@redhat.com>
10231
10232 * cp-support.c (make_symbol_overload_list_namespace): Do not call
10233 make_symbol_overload_list_block with NULL BLOCK.
10234 * valarith.c (unop_user_defined_p): Resolve also TYPE_CODE_TYPEDEF.
10235
3c3fe74c
PA
102362011-02-18 Pedro Alves <pedro@codesourcery.com>
10237
10238 * breakpoint.c (get_number_trailer): No longer accept a NULL PP.
10239 * breakpoint.h (get_number_or_range): Declare.
10240 * printcmd.c (ALL_DISPLAYS): Declare.
10241 (delete_display): Reimplement taking a display pointer.
10242 (undisplay_command): Accept a range of displays to delete, using
10243 get_number_or_range.
10244
13163d80
PM
102452011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
10246
10247 * c-valprint.c (c_val_print): Add embedded_offset to address
10248 for arrays of unspecified length.
10249 * p-valprint.c (pascal_val_print): Likewise.
10250
b434a28f
YQ
102512011-02-18 Yao Qi <yao@codesourcery.com>
10252
10253 * gdb/arm-tdep.c (arm_displaced_step_copy_insn): Move code to ...
10254 (arm_process_displaced_insn): .. here. Remove parameter INSN.
10255 (thumb_process_displaced_insn): New.
10256 * gdb/arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Update
10257 call to arm_process_displaced_insn.
10258 * gdb/arm-tdep.h : Update declaration of arm_process_displaced_insn.
10259
9f6f94ff
TT
102602011-02-17 Tom Tromey <tromey@redhat.com>
10261
10262 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Declare.
10263 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Rename from
10264 compile_dwarf_to_ax. No longer static. Call
10265 dwarf2_compile_cfa_to_ax.
10266 (locexpr_tracepoint_var_ref): Update.
10267 (loclist_tracepoint_var_ref): Update.
10268 * dwarf2-frame.h (dwarf2_compile_cfa_to_ax): Declare.
10269 * dwarf2-frame.c (execute_cfa_program): Remove 'this_frame'
10270 argument; add 'gdbarch' and 'pc'.
10271 (dwarf2_compile_cfa_to_ax): New function.
10272 (dwarf2_frame_cache): Update.
10273
e67ad678
JB
102742011-02-17 Joel Brobecker <brobecker@adacore.com>
10275
10276 * ada-lang.c (ada_type_of_array): Fix the size of the array
10277 in the case of an unconstrained packed array.
10278
946ebb0d
YQ
102792011-02-17 Yao Qi <yao@codesourcery.com>
10280
10281 * common/Makefile.in: Add more targets for make.
10282
1ba1b353
TT
102832011-02-16 Tom Tromey <tromey@redhat.com>
10284
10285 * dwarf2loc.c (unimplemented): Fix typo.
10286
b1bfef65
TT
102872011-02-16 Tom Tromey <tromey@redhat.com>
10288
10289 * dwarf2loc.c (unimplemented): Handle unnamed opcodes.
10290 (compile_dwarf_to_ax) <default>: Use unimplemented.
10291 <DW_OP_deref>: Update.
10292 (disassemble_dwarf_expression): Update.
10293 * dwarf2read.c (dwarf_stack_op_name): Remove 'def' argument.
10294 (decode_locdesc): Update.
10295 * dwarf2expr.h (dwarf_stack_op_name): Update.
10296
5f1e6f19
TT
102972011-02-16 Tom Tromey <tromey@redhat.com>
10298
10299 * ax.h (struct aop_map) <name>: Now const.
10300
a0c78a73
PA
103012011-02-16 Tom Tromey <tromey@redhat.com>
10302
10303 * ax-gdb.c.c (gen_expr) <UNOP_MEMVAL>: Handle value kinds other
10304 than axs_rvalue.
10305
946ebb0d 103062011-02-16 Yao Qi <yao@codesourcery.com>
a42244db
YQ
10307
10308 * infrun.c (get_displaced_step_closure_by_addr): New.
10309 * inferior.h: Declare it.
10310 * arm-tdep.c: (arm_pc_is_thumb): Call
10311 get_displaced_step_closure_by_addr. Adjust MEMADDR if it
10312 returns non-NULL.
10313
08807d5a
PA
103142011-02-16 Pedro Alves <pedro@codesourcery.com>
10315 Jan Kratochvil <jan.kratochvil@redhat.com>
10316
10317 gdb/
10318 * tracepoint.c (memrange_sortmerge): Fix list A's end calculation.
10319
29976f3f
PA
103202011-02-16 Pedro Alves <pedro@codesourcery.com>
10321 Jan Kratochvil <jan.kratochvil@redhat.com>
10322
10323 * value.c (value_contents_copy_raw): Extend describing comment.
10324 Assert that the destination contents we're overwriting are wholly
10325 available.
fb68ae73 10326 (value_contents_copy): Extend describing comment.
29976f3f 10327
cd24cfaa
PA
103282011-02-16 Pedro Alves <pedro@codesourcery.com>
10329 Jan Kratochvil <jan.kratochvil@redhat.com>
10330
10331 * value.c (value_available_contents_eq): Remove redundant local
10332 variables. Fix available contents comparision.
10333 * value.h (value_available_contents_eq): Extend describing
10334 comment.
10335
60bbf338
YQ
103362011-02-16 Yao Qi <yao@codesourcery.com>
10337
10338 * thread.c (info_threads_command): Add missing i18n markup and remove
10339 trailing newline.
10340
17450429
PP
103412011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
10342
10343 * breakpoint.c (longjmp_names): New variable.
10344 (struct breakpoint_objfile_data): New type.
10345 (breakpoint_objfile_key): New variable.
10346 (msym_not_found): New variable.
10347 (msym_not_found_p): New predicate.
10348 (get_breakpoint_objfile_data): New function.
10349 (create_overlay_event_breakpoint): Check per-objfile cache for
10350 symbols first.
10351 (create_longjmp_master_breakpoint): Likewise.
10352 (create_std_terminate_master_breakpoint): Likewise.
10353 (create_exception_master_breakpoint): Likewise.
10354 (_initialize_breakpoint): Register per-objfile data key.
10355
af02033e
PP
103562011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
10357
10358 * breakpoint.c ((create_overlay_event_breakpoint): Const-propagate
10359 parameter value.
10360 (create_longjmp_master_breakpoint): Loop over longjmp names.
10361 (create_std_terminate_master_breakpoint): Const-propagate parameter
10362 value.
10363 (update_breakpoints_after_exec): Adjust.
10364 (breakpoint_re_set): Adjust.
10365
60f98dde
MS
103662011-02-15 Michael Snyder <msnyder@vmware.com>
10367
cdf99611
MS
10368 * thread.c (info_threads_command): Process arg as thread id,
10369 or list of thread ids.
10370 (thread_find_command): New command.
10371 (_initialize_thread): Document argument for info threads.
10372 Document 'thread find' command.
10373 * NEWS: Document new command "thread find".
60f98dde 10374
0feedb2c
JK
103752011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10376
10377 * Makefile.in (ACLOCAL_AMFLAGS): Add `-I ../config'.
10378 * aclocal.m4: Regenerated with aclocal-1.11.1.
10379 * common/configure: Regenerate with autoconf-2.64.
10380
648cd113
KW
103812011-02-15 Ken Werner <ken.werner@de.ibm.com>
10382
10383 * opencl-lang.c (build_opencl_types): Set the size of the built-in
10384 bool data type to a size of one byte.
10385
5657161f
PA
103862011-02-15 Pedro Alves <pedro@codesourcery.com>
10387 Jan Kratochvil <jan.kratochvil@redhat.com>
10388
10389 * target.c (memory_xfer_live_readonly_partial): Document where to
10390 look for interface description.
10391
494e194e
YQ
103922011-02-15 Yao Qi <yao@codesourcery.com>
10393
10394 PR tdep/12352
10395 * arm-tdep.c (copy_ldr_str_ldrb_strb): Replace PC with SP in
10396 order to store PC value on stack instead of text section.
10397
d9492458
TJB
103982011-02-15 Thiago Jung Bauermann <bauerman@br.ibm.com>
10399
10400 * rs6000-tdep.c (IS_EFP_PSEUDOREG): Use correct constant for
10401 the EFP register set size.
10402 (efpr_pseudo_register_read): Use regcache_raw_read_part to read
10403 data from the VMX register.
10404 (efpr_pseudo_register_write): Use regcache_raw_write_part to read
10405 and write data from/to the VMX register.
10406
cdf99611
MS
104072011-02-14 Michael Snyder <msnyder@vmware.com>
10408
10409 * command.h (enum command_class): New class 'no_set_class', for
10410 "show" commands without a corresponding "set" command.
10411 * value.c (_initialize_values): Use 'no_set_class' for "show values".
10412 * copying.c (_initialize_copying): Ditto for "show copying" and
10413 "show warranty".
10414 * cli/cli-cmds.c (init_cli_cmds): Ditto for "show commands" and
10415 "show version".
10416 * cli/cli-setshow.c (cmd_show_list): Skip "show" commands for
10417 which there is no corresponding "set" command (eg. "show copying").
10418
424447ee
PA
104192011-02-14 Pedro Alves <pedro@codesourcery.com>
10420 Jan Kratochvil <jan.kratochvil@redhat.com>
10421
10422 * exec.c (section_table_available_memory): Change `len' parameter
10423 type to ULONGEST.
10424 * exec.h (section_table_available_memory): Ditto.
10425 * value.h (read_value_memory): Rename the `offset' parameter to
10426 `embedded_offset'.
10427
c0f61f9c 104282011-02-14 Pedro Alves <pedro@codesourcery.com>
e0ccc0c7 10429 Jan Kratochvil <jan.kratochvil@redhat.com>
c0f61f9c
PA
10430
10431 * memrange.c (compare_mem_ranges): Mention sort order in
10432 describing comment.
10433 (normalize_mem_ranges): Add comment. Fix ra->length calculation.
10434 * tracepoint.c (traceframe_available_memory): Extend comment to
10435 mention what happens to RESULT when the target does not support
10436 the query.
10437
6bfc80c7
PA
104382011-02-14 Pedro Alves <pedro@codesourcery.com>
10439 Jan Kratochvil <jan.kratochvil@redhat.com>
10440
10441 * value.c (mark_value_bytes_unavailable): Fix indexing the `bef'
10442 range.
10443
e7303042
PA
104442011-02-14 Pedro Alves <pedro@codesourcery.com>
10445
10446 * value.c (value_bits_valid, value_bits_synthetic_pointer):
10447 No longer handle NULL values.
10448
8af8e3bc
PA
104492011-02-14 Pedro Alves <pedro@codesourcery.com>
10450
10451 * exceptions.h (NOT_AVAILABLE_ERROR): New error.
10452 * value.c: Include "exceptions.h".
10453 (require_available): Throw NOT_AVAILABLE_ERROR instead of a
10454 generic error.
10455 * cp-abi.c: Include gdb_assert.h.
10456 (baseclass_offset): Add `embedded_offset' and `val' parameters.
10457 Assert the method is implemented. Wrap NOT_AVAILABLE_ERROR
10458 errors.
10459 * cp-abi.h (baseclass_offset): Add `embedded_offset' and `val'
10460 parameters. No longer returns -1 on error.
10461 (struct cp_abi_ops) <baseclass_offset>: Add `embedded_offset' and
10462 `val' parameters.
10463 * cp-valprint.c: Include exceptions.h.
10464 (cp_print_value): Handle NOT_AVAILABLE_ERROR errors when fetching
10465 the baseclass_offset. Handle unavailable base classes. Use
10466 val_print_invalid_address.
10467 * p-valprint.c: Include exceptions.h.
10468 (pascal_object_print_value): Handle NOT_AVAILABLE_ERROR errors
10469 when fetching the baseclass_offset. No longer expect
10470 baseclass_offset returning -1. Handle unavailable base classes.
10471 Use val_print_invalid_address.
10472 * valops.c (dynamic_cast_check_1): Rename `contents' parameter to
10473 `valaddr' parameter, and change its type to gdb_byte pointer. Add
10474 `embedded_offset' and `val' parameters. Adjust.
10475 (dynamic_cast_check_2): Rename `contents' parameter to `valaddr'
10476 parameter, and change its type to gdb_byte pointer. Add
10477 `embedded_offset' and `val' parameters. Adjust. No longer expect
10478 baseclass_offset returning -1.
10479 (value_dynamic_cast): Use value_contents_for_printing rather than
10480 value_contents. Adjust.
10481 (search_struct_field): No longer expect baseclass_offset returning
10482 -1.
10483 (search_struct_method): If reading memory from the target is
10484 necessary, wrap it in a new value to pass to baseclass_offset. No
10485 longer expect baseclass_offset returning -1.
10486 (find_method_list): No longer expect baseclass_offset returning
10487 -1. Use value_contents_for_printing rather than value_contents.
10488 * valprint.c (val_print_invalid_address): New function.
10489 * valprint.h (val_print_invalid_address): Declare.
10490 * gdbtypes.c (is_unique_ancestor_worker): New `embedded_offset'
10491 and `val' parameters. No longer expect baseclass_offset returning
10492 -1. Adjust.
10493 * gnu-v2-abi.c: Include "exceptions.h".
10494 (gnuv2_baseclass_offset): Add `embedded_offset' and `val'
10495 parameters. Handle unavailable memory. Recurse through
10496 gnuv2_baseclass_offset directly, rather than through
10497 baseclass_offset. No longer returns -1 on not found, instead
10498 throw an error.
10499 * gnu-v3-abi.c (gnuv3_baseclass_offset): Add `embedded_offset' and
10500 `val' parameters. Adjust.
10501
1b28d0b3
PA
105022011-02-14 Pedro Alves <pedro@codesourcery.com>
10503
10504 * tracepoint.c (memrange_sortmerge): Don't merge ranges that are
10505 almost but not quite adjacent.
10506
ec0a52e1
PA
105072011-02-14 Pedro Alves <pedro@codesourcery.com>
10508
10509 * value.h (value_entirely_available): Declare.
10510 * value.c (value_entirely_available): New function.
10511 * c-valprint.c (c_value_print): Don't try fetching the pointer's
10512 real type if the pointer is unavailable.
10513
24e6bcee
PA
105142011-02-14 Pedro Alves <pedro@codesourcery.com>
10515
10516 * valops.c (value_repeat): Use read_value_memory instead of
10517 read_memory.
10518
39d37385
PA
105192011-02-14 Pedro Alves <pedro@codesourcery.com>
10520
10521 * value.h (value_contents_copy, value_contents_copy_raw): Declare.
10522 * value.c (value_contents_copy_raw, value_contents_copy): New
10523 functions.
10524 (value_primitive_field): Use value_contents_copy_raw instead of
10525 memcpy.
10526 * valops.c (value_fetch_lazy): Use value_contents_copy instead of
10527 memcpy.
10528 (value_array, value_slice): Ditto.
10529 * valarith.c (value_subscripted_rvalue): Use
10530 value_contents_copy_raw instead of memcpy.
10531
a3d34bf4
PA
105322011-02-14 Pedro Alves <pedro@codesourcery.com>
10533
10534 <unavailable> references.
10535
10536 * valops.c (get_value_at): Use value_from_contents_and_address,
10537 avoiding read_memory.
10538
9fc6d940
PA
105392011-02-14 Pedro Alves <pedro@codesourcery.com>
10540
10541 * c-valprint.c (c_val_print): Print a string with unavailable
10542 contents as an array.
10543
5467c6c8
PA
105442011-02-14 Pedro Alves <pedro@codesourcery.com>
10545
10546 * value.h (unpack_bits_as_long): Delete declaration.
10547 (unpack_value_bits_as_long): Declare.
10548 (unpack_value_field_as_long): Declare.
10549 (value_field_bitfield): Declare.
10550 * value.c (unpack_bits_as_long): Rename to...
10551 (unpack_value_bits_as_long_1): ... this. Add embedded_offset and
10552 value parameters. Return the extracted result in a new output
10553 parameter. If the value contents are unavailable, return false,
10554 otherwise return true.
10555 (unpack_value_bits_as_long): New.
10556 (unpack_field_as_long): Rename to...
10557 (unpack_value_field_as_long_1): ... this. Add embedded_offset and
10558 Add embedded_offset and value parameters. Return the extracted
10559 result in a new output parameter. If the value contents are
10560 unavailable, return false, otherwise return true.
10561 (unpack_value_field_as_long): New.
10562 (unpack_field_as_long_1): New.
10563 (unpack_field_as_long): Reimplement as wrapper around
10564 unpack_value_field_as_long_1.
10565 (value_field_bitfield): New function.
10566 * valops.c (value_fetch_lazy): When fetching a bitfield, use
10567 unpack_value_bits_as_long. Mark the value as unavailable, if it
10568 is unavailable.
10569 * jv-valprint.c (java_print_value_fields): Use
10570 value_field_bitfield.
10571 * p-valprint.c (pascal_object_print_value_fields): Use
10572 value_field_bitfield.
10573 * cp-valprint.c (cp_print_value_fields): Use value_field_bitfield.
10574
3158c6ed
PA
105752011-02-14 Pedro Alves <pedro@codesourcery.com>
10576
10577 * value.c (get_internalvar_integer): Also return the int value of
10578 TYPE_CODE_INT INTERNALVAR_VALUE values.
10579 (set_internalvar): Don't special case TYPE_CODE_INT.
10580
9fbdca0d
PA
105812011-02-14 Pedro Alves <pedro@codesourcery.com>
10582
10583 * value.c (struct internalvar) <enum internalvar_kind>: Remove
10584 INTERNALVAR_POINTER.
10585 <pointer>: Delete.
10586 (value_of_internalvar): Remove INTERNALVAR_POINTER handling.
10587 (set_internalvar): Remove special TYPE_CODE_PTR handling.
10588 (preserve_one_internalvar): Remove INTERNALVAR_POINTER handling.
10589
c8c1c22f
PA
105902011-02-14 Pedro Alves <pedro@codesourcery.com>
10591
10592 * value.h (value_available_contents_eq): Declare.
10593 * value.c (find_first_range_overlap): New function.
10594 (value_available_contents_eq): New function.
10595 * valprint.c (val_print_array_elements): Use
10596 value_available_contents_eq.
10597 * ada-valprint.c (val_print_packed_array_elements): Use
10598 value_available_contents_eq.
10599 * jv-valprint.c (java_value_print): Use
10600 value_available_contents_eq.
10601
e6e4e701
PA
106022011-02-14 Pedro Alves <pedro@codesourcery.com>
10603
10604 * target.c (target_read_live_memory): New function.
10605 (memory_xfer_live_readonly_partial): New.
10606 (memory_xfer_partial): If reading from a traceframe, fallback to
10607 reading unavailable read-only memory from read-only regions of
10608 live target memory.
10609 * tracepoint.c (disconnect_tracing): Adjust.
10610 (set_current_traceframe): New, factored out from
10611 set_traceframe_number.
10612 (set_traceframe_number): Reimplement to only change the traceframe
10613 number on the GDB side.
10614 (do_restore_current_traceframe_cleanup): Adjust.
10615 (make_cleanup_restore_traceframe_number): New.
10616 (cur_traceframe_number): New global.
10617 (tfile_open): Set cur_traceframe_number to no traceframe.
10618 (set_tfile_traceframe): New function.
10619 (tfile_trace_find): If looking up a traceframe using any method
10620 other than by number, make sure the current tfile traceframe
10621 matches gdb's current traceframe. Update the current tfile
10622 traceframe if the lookup succeeded.
10623 (tfile_fetch_registers, tfile_xfer_partial)
10624 (tfile_get_trace_state_variable_value): Make sure the remote
10625 traceframe matches gdb's current traceframe.
10626 * remote.c (remote_traceframe_number): New global.
10627 (remote_open_1): Set it to -1.
10628 (set_remote_traceframe): New function.
10629 (remote_fetch_registers, remote_store_registers)
10630 (remote_xfer_memory, remote_xfer_partial)
10631 (remote_get_trace_state_variable_value): Make sure the remote
10632 traceframe matches gdb's current traceframe.
10633 (remote_trace_find): If looking up a traceframe using any method
10634 other than by number, make sure the current remote traceframe
10635 matches gdb's current traceframe. Update the current remote
10636 traceframe if the lookup succeeded.
10637 * infrun.c (fetch_inferior_event): Adjust.
10638 * tracepoint.h (set_current_traceframe): Declare.
10639 (get_traceframe_number, set_traceframe_number): Add describing
10640 comments.
10641
e6ca34fc
PA
106422011-02-14 Pedro Alves <pedro@codesourcery.com>
10643
10644 Mark pieces of values as unavailable if the corresponding memory
10645 is unavailable.
10646
10647 * valops.c: Include tracepoint.h.
10648 (value_fetch_lazy): Use read_value_memory.
10649 (read_value_memory): New.
10650 * value.h (read_value_memory): Declare.
10651 * dwarf2loc.c (read_pieced_value): Use read_value_memory.
10652 * exec.c (section_table_available_memory): New function.
10653 * exec.h (section_table_available_memory): Declare.
10654
2a7498d8
PA
106552011-02-14 Pedro Alves <pedro@codesourcery.com>
10656
10657 * Makefile.in (SFILES): Add memrange.c.
10658 (HFILES_NO_SRCDIR): Add memrange.h.
10659 (COMMON_OBS): Add memrange.o.
10660 * memrange.c: New file.
10661 * memrange.h: New file.
10662 * tracepoint.c: Include memrange.h.
10663 (struct mem_range): Delete.
10664 (mem_range_s): Delete.
10665 (traceframe_available_memory): New function.
10666 * tracepoint.h (traceframe_available_memory): Declare.
10667
b3b9301e
PA
106682011-02-14 Pedro Alves <pedro@codesourcery.com>
10669
10670 * target.h (struct traceframe_info): Forward declare.
10671 (enum target_object): Add TARGET_OBJECT_TRACEFRAME_INFO.
10672 (struct target_ops) <to_traceframe_info>: New field.
10673 (target_traceframe_info): New.
10674 * target.c (update_current_target): Inherit and default
10675 to_traceframe_info.
10676 * remote.c (PACKET_qXfer_traceframe_info): New.
10677 (remote_protocol_features): Register qXfer:traceframe-info:read.
10678 (remote_xfer_partial): Handle TARGET_OBJECT_TRACEFRAME_INFO.
10679 (remote_traceframe_info): New.
10680 (init_remote_ops): Install it.
10681 (_initialize_remote): Install "set/show remote traceframe-info"
10682 commands.
10683 * tracepoint.h (parse_traceframe_info): Declare.
10684 * tracepoint.c (struct mem_range): New.
10685 (mem_range_s): New typedef.
10686 (struct traceframe_info): New.
10687 (traceframe_info): New global.
10688 (free_traceframe_info): New function.
10689 (clear_traceframe_info): New function.
10690 (start_tracing, tfind_1, set_traceframe_number): Clear traceframe
10691 info.
10692 (build_traceframe_info): New function.
10693 (tfile_traceframe_info): New function.
10694 (init_tfile_ops): Install tfile_traceframe_info.
10695 (traceframe_info_start_memory, free_result): New functions.
10696 (memory_attributes, traceframe_info_elements): New globals.
10697 (parse_traceframe_info, get_traceframe_info): New functions.
10698 * features/traceframe-info.dtd: New file.
10699 * Makefile.in (XMLFILES): Add traceframe-info.dtd.
10700
4e07d55f
PA
107012011-02-14 Pedro Alves <pedro@codesourcery.com>
10702
10703 Base support for <unavailable> value contents.
10704
4e07d55f
PA
10705 * value.h (value_bytes_available): Declare.
10706 (mark_value_bytes_unavailable): Declare.
10707 * value.c (struct range): New struct.
10708 (range_s): New typedef.
10709 (ranges_overlap): New function.
10710 (range_lessthan): New function.
10711 (ranges_contain_p): New function.
10712 (struct value) <unavailable>: New field.
10713 (value_bytes_available): New function.
10714 (mark_value_bytes_unavailable): New function.
10715 (require_not_optimized_out): Constify parameter.
10716 (require_available): New function.
10717 (value_contents_all, value_contents): Require all bytes be
10718 available.
10719 (value_free): Free `unavailable'.
10720 (value_copy): Copy `unavailable'.
10721 * valprint.h (val_print_unavailable): Declare.
10722 * valprint.c (valprint_check_validity): Rename `offset' parameter
10723 to `embedded_offset'. If printing a scalar, check whether the
10724 value chunk is available.
10725 (val_print_unavailable): New.
10726 (val_print_scalar_formatted): Check whether the value is
10727 available.
10728 * python/py-prettyprint.c (apply_val_pretty_printer): Refuse
10729 pretty-printing unavailable values.
10730
bc9a5551
JK
107312011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
10732
10733 Fix const/volatile qualifiers of C++ types, PR c++/12328.
10734 * c-typeprint.c (c_type_print_args): Update the function comment. New
10735 variable param_type, initialize it. Remove const/volatile qualifiers
10736 for language_cplus and !show_artificial. Use param_type.
10737
93b55aa1
JK
107382011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
10739
10740 * symtab.c (find_pc_sect_line): New variable objfile, initialize it
10741 from S. Iterate S using ALL_OBJFILE_SYMTABS. Verify BV for each S.
10742 * symtab.h (struct symtab) <next>: Comment extension.
10743
181d9476
YQ
107442011-02-12 Yao Qi <yao@codesourcery.com>
10745
10746 * Makefile.in (CLEANDIRS): Remove duplicated common dir.
10747
b708a5c7
JK
107482011-02-11 Yao Qi <yao@codesourcery.com>
10749
10750 * common/Makefile.in: Add copyright header.
10751
c5187ac6
PA
107522011-02-11 Pedro Alves <pedro@codesourcery.com>
10753
10754 * infrun.c (proceed): Move switching out and in of tfind mode from
10755 here ...
10756 (fetch_inferior_event): ... to here.
10757
4f3e6fb7
YQ
107582011-02-11 Yao Qi <yao@codesourcery.com>
10759
10760 * Makefile.in: Remove signals.o from COMMON_OBS. Link
10761 libcommon.a.
10762 * configure.ac: Add common to sub dir.
10763 * configure: Regenerate.
10764
b708a5c7
JK
107652011-02-11 Yao Qi <yao@codesourcery.com>
10766
10767 Build libcommon.a.
10768
10769 * common/Makefile.in: New.
10770 * common/configure.ac: New.
10771 * common/aclocal.m4: New.
10772 * common/configure: Generate.
10773
2287cc7e
PA
107742011-02-10 Pedro Alves <pedro@codesourcery.com>
10775
10776 * vec.h (VEC_block_remove): Place VEC_ASSERT_INFO on the right
10777 side of the parenthesis.
10778
10779 Merge from GCC:
10780 2010-07-13 Jakub Jelinek <jakub@redhat.com>
fc013618 10781 * vec.h (VEC_block_remove): Fix comment.
2287cc7e 10782
fd62cb89
MS
107832011-02-08 Michael Snyder <msnyder@vmware.com>
10784
10785 * linux-nat.c (linux_nat_filter_event): Fix typo in comment.
10786
56d2815c
JK
107872011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
10788
10789 * i386-tdep.c (i386_process_record): Rename l suffixes to d suffixes
10790 in comments for pcmpgtd, pcmpeqd, psubd, paddd, pcmpgtd, pcmpeqd,
10791 psubd and paddd.
10792
4f7d61a8
JK
107932011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
10794
10795 PR 12361.
10796 * i386-tdep.c (i386_process_record) <0x660f3807>: Fix the comment to
10797 phsubsw.
10798 (i386_process_record) <lddqu>: Fix the opcode to 0xf20ff0.
10799 (i386_process_record) <0x0f3807>: Fix the comment to phsubsw.
10800
54fcddd0
UW
108012011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
10802
10803 * dwarf2read.c (read_subroutine_type): Set special calling
10804 convention flag for functions compiled by IBM XL C for OpenCL.
10805 * ppc-sysv-tdep.c: Include "dwarf2.h"
10806 (ppc_sysv_abi_push_dummy_call): Implement IBM OpenCL vector types
10807 calling convention.
10808 (do_ppc_sysv_return_value): Add FUNC_TYPE argument. Implement
10809 IBM OpenCL vector types calling convention.
10810 (ppc_sysv_abi_return_value): Pass through FUNC_TYPE.
10811 (ppc_sysv_abi_broken_return_value): Likewise.
10812 (ppc64_sysv_abi_push_dummy_call): Implement IBM OpenCL vector
10813 types calling convention.
10814 (ppc64_sysv_abi_return_value): Likewise.
10815 * spu-tdep.c: Include "dwarf2.h"
10816 (spu_return_value): Implement IBM OpenCL vector types calling
10817 convention.
10818
d6dafb7c
UW
108192011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
10820
10821 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Implement
10822 correct ABI for AltiVec vector arguments.
10823
32b72a42
PA
108242011-02-07 Pedro Alves <pedro@codesourcery.com>
10825
10826 * valprint.c (val_print): Extend comment.
10827 * ada-valprint.c (ada_valprint): Rewrite comment deferring
10828 interface explanation to val_print.
10829 (ada_val_print_array): Adjust comment to current interface.
10830 (print_field_values): Adjust comment to current interface.
10831 * c-valprint.c (c_val_print): Rewrite comment deferring interface
10832 explanation to val_print.
10833 * f-valprint.c (f_val_print): Ditto.
10834 * jv-valprint.c (java_val_print): Ditto.
10835 * m2-valprint.c (m2_val_print): Ditto.
10836 * p-valprint.c (pascal_val_print): Ditto.
10837
9998af43
TJB
108382011-02-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
10839
10840 * breakpoint.c (parse_breakpoint_sals): Fix description.
10841
505500db 108422011-02-04 Sami Wagiaalla <swagiaal@redhat.com>
9998af43 10843 Oguz Kayral <oguzkayral@gmail.com>
505500db
SW
10844
10845 * python/py-inferior.c (python_on_normal_stop): New function.
10846 (python_on_resume): New function.
10847 (python_inferior_exit): New function.
10848 (gdbpy_initialize_inferior): Add normal_stop, target_resumed, and
10849 inferior_exit observers.
10850 * python/py-evtregistry.c: New file.
10851 * python/py-threadevent.c : New file.
10852 * python/py-event.c: New file.
10853 * python/py-evts.c: New file.
10854 * python/py-continueevent.c: New file.
10855 * python/py-bpevent.c: New file.
10856 * python/py-signalevent.c: New file.
10857 * python/py-exetiedevent.c: New file.
10858 * python/py-breakpoint.c (gdbpy_breakpoint_from_bpstats): New function.
10859 Move struct breakpoint_object from here...
10860 * python/python-internal.h: ... to here.
10861 * python/py-event.h: New file.
10862 * python/py-events.h: New file.
10863 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpointstopevent.o,
10864 py-continueevent.o, py-event.o, py-eventregistry.o, py-events.o,
10865 py-exitedevent.o, py-signalstopevent.o, and py-stopevent.o.
10866 (SUBDIR_PYTHON_SRCS): Add py-breakpointstopevent.c,
10867 py-continueevent.c, py-event.c, py-eventregistry.c, py-events.c,
10868 py-exitedevent.c, py-signalstopevent.c, and py-stopevent.c.
10869 Add build rules for all the above.
10870
9e0ac564
TT
108712011-02-04 Tom Tromey <tromey@redhat.com>
10872
10873 * dwarf2read.c (dwarf2_section_empty_p): New function.
10874 (dwarf2_read_section): Use dwarf2_section_empty_p.
10875 (dwarf2_section_size): New function.
10876 (dwarf2_get_section_info): Unconditionally read section.
10877 (dwarf2_read_index): Use dwarf2_section_empty_p.
10878 (partial_read_comp_unit_head): Use dwarf2_section_size.
10879 (dwarf2_symbol_mark_computed): Likewise.
10880
eee5b35e
DD
108812011-02-04 David Daney <ddaney@caviumnetworks.com>
10882
10883 * NEWS: Add item for "catch syscall" on mips*-linux* targets.
10884
385203ed
DD
108852011-02-04 David Daney <ddaney@caviumnetworks.com>
10886
10887 * mips-linux-tdep.c: Include xml-syscall.h.
10888 (mips_linux_get_syscall_number): New function.
10889 (mips_linux_init_abi): Add calls to
10890 mips_linux_get_syscall_number() and set_xml_syscall_file_name().
10891 * data-directory/Makefile.in (SYSCALLS_FILES): Add
10892 mips-o32-linux.xml, mips-n32-linux.xml and mips-n64-linux.xml
10893 * syscalls/mips-n32-linux.xml: New file.
10894 * syscalls/mips-n64-linux.xml: New file.
10895 * syscalls/mips-o32-linux.xml: New file.
10896
9277c30c
UW
108972011-02-04 Ulrich Weigand <ulrich.weigand@linaro.org>
10898
10899 * dwarf2read.c (dwarf2_ranges_read): Skip empty range entries.
10900 Complain about inverted range entries.
10901 (dwarf2_record_block_ranges): Likewise.
10902
a3be7890
TJB
109032011-02-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
10904
10905 Fix some typos.
10906 * breakpoint.c (update_watchpoint): Fix name of the
10907 update_global_location_list function.
10908 (print_one_breakpoint): Fix typo.
10909 (_initialize_breakpoint): Remove extra space in hbreak help
10910 string.
10911 * breakpoint.h (struct bp_location) <length>: Fix field
10912 description.
10913
041274d8
PA
109142011-02-04 Pedro Alves <pedro@codesourcery.com>
10915
10916 * regcache.c (registers_changed_ptid): Don't explictly always
10917 clear `current_regcache'. Only clear current_thread_ptid and
10918 current_thread_arch when PTID matches. Only reinit the frame
10919 cache if PTID matches the current inferior_ptid. Move alloca(0)
10920 call to ...
10921 (registers_changed): ... here.
10922
c1c2ab58
UW
109232011-02-03 Ulrich Weigand <ulrich.weigand@linaro.org>
10924
10925 * arm-tdep.c (arm_skip_stack_protector): Accept any symbol that
10926 starts with __stack_chk_guard as stack guard symbol.
10927
9011945e
AB
109282011-02-03 Andrew Burgess <aburgess@broadcom.com>
10929
10930 * disasm.c (compare_lines): Handle the end of sequence markers
10931 within the line table to better support disassembling over
10932 compilation unit boundaries.
10933
e0634ccf
UW
109342011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
10935
10936 * arm-tdep.c (skip_prologue_function): Add GDBARCH and IS_THUMB
10937 arguments. Skip in-prologue calls to glibc __aeabi_read_tp
10938 implementation even if no symbols are available.
10939 (thumb_analyze_prologue): Update call to skip_prologue_function.
10940 (arm_analyze_prologue): Likewise.
10941
0e9e9abd
UW
109422011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
10943
10944 * arm-tdep.c: Include "observer.h".
10945 (arm_prologue_this_id): Use frame PC if get_frame_func returns 0.
10946 (arm_exidx_data_key): New static variable.
10947 (struct arm_exidx_entry, arm_exidx_entry_s): New data types.
10948 (struct arm_exidx_data): Likewise.
10949 (arm_exidx_data_free): New function.
10950 (arm_compare_exidx_entries): Likewise.
10951 (arm_obj_section_from_vma): Likewise.
10952 (arm_exidx_new_objfile): Likewise.
10953 (arm_find_exidx_entry): Likewise.
10954 (arm_exidx_fill_cache): Likewise.
10955 (arm_exidx_unwind_sniffer): Likewise.
10956 (arm_exidx_unwind): New global variable.
10957 (arm_gdbarch_init): Append unwinder arm_exidx_unwind.
10958 (_initialize_arm_tdep): Attach arm_exidx_new_objfile to new_objfile
10959 observer. Register arm_exidx_data_key as objfile data.
10960
2e9e421f
UW
109612011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
10962
10963 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Avoid build break
10964 due to accessing uninitialized variable. Fix indentation.
10965
580688f3
PA
109662011-02-02 Pedro Alves <pedro@codesourcery.com>
10967
10968 * c-valprint.c (c_value_print): When doing virtual base pointer
10969 adjustment, create a new value with adjusted contents rather than
10970 changing the contents of the value being printed (and getting it
10971 wrong).
10972
3d2c1d41
PA
109732011-02-02 Pedro Alves <pedro@codesourcery.com>
10974
10975 * xml-support.c (xml_find_attribute): New.
10976 (xinclude_start_include): Use it.
10977 * xml-support.h (xml_find_attribute): Declare.
10978 * memory-map.c (memory_map_start_memory)
10979 (memory_map_start_property): Use xml_find_attribute.
10980 * osdata.c (osdata_start_osdata, osdata_start_column): Use
10981 xml_find_attribute.
10982 * remote.c (start_thread): Use xml_find_attribute.
10983 * solib-target.c (library_list_start_segment)
10984 (library_list_start_section, library_list_start_library)
10985 (library_list_start_list): Use xml_find_attribute.
10986 * xml-tdesc.c (tdesc_start_target, tdesc_start_feature)
10987 (tdesc_start_union, tdesc_start_struct, tdesc_start_flags)
10988 (tdesc_start_field): Use xml_find_attribute.
10989
0af3e2db
UW
109902011-02-02 Ulrich Weigand <uweigand@de.ibm.com>
10991
10992 * opencl-lang.c (STRINGIFY): Rename to OCL_STRING.
10993 (BUILD_OCL_VTYPES): Update.
10994
c1039e3c
JB
109952011-02-02 Joel Brobecker <brobecker@adacore.com>
10996
10997 * configure.ac: Work around non-GNU sed limitation when computing
10998 python version number.
10999 * configure: Regenerate.
11000
600ea1be
JK
110012011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
11002
11003 Fix debug printing of TYPE_INSTANCE.
11004 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: New.
11005 (dump_subexp_body_standard) <TYPE_INSTANCE>: New.
11006
56c12414
JK
110072011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
11008
11009 Fix debug printing of BINOP_IN, OP_OBJC_MSGCALL,
11010 OP_F77_UNDETERMINED_ARGLIST, OP_COMPLEX, OP_OBJC_SELECTOR, OP_NAME,
11011 OP_OBJC_NSSTRING, OP_F90_RANGE and OP_DECFLOAT.
11012 * ada-operator.inc: Rename the file to ...
11013 * ada-operator.def: ... here, wrap all the entries by macro OP.
11014 * expprint.c (op_name_standard): Remove all the entries. Include
11015 "std-operator.def" instead.
11016 * expression.h (enum exp_opcode): Include "std-operator.def" and
11017 "ada-operator.def". Move all the entries ...
11018 * std-operator.def: ... here, wrap all the entries by macro OP.
11019
c52b559d
PP
110202011-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
11021
11022 * breakpoint.h (remove_jit_event_breakpoints): New prototype.
11023 * breakpoint.c (remove_jit_event_breakpoints): New function.
11024 * jit.c (jit_descriptor_addr): Delete.
11025 (registering_code): Delete.
11026 (clear_int): Delete.
11027 (jit_inferior_data): New variable.
11028 (struct jit_inferior_data): New type.
11029 (get_jit_inferior_data): New function.
11030 (jit_inferior_data_cleanup): New function.
11031 (jit_read_descriptor): Adjust.
11032 (jit_register_code): Adjust.
11033 (jit_breakpoint_re_set_internal): New function; move code here ...
11034 (jit_inferior_init): ... from here.
11035 (jit_breakpoint_re_set): Adjust.
11036 (jit_reset_inferior_data_and_breakpoints): New function.
11037 (jit_inferior_created_observer): Adjust.
11038 (jit_inferior_exit_hook): Adjust.
11039 (jit_executable_changed_observer): New function.
11040 (jit_event_handler): Adjust.
11041 (_initialize_jit): Adjust.
11042
e839132d
MS
110432011-01-31 Michael Snyder <msnyder@vmware.com>
11044
11045 * m32r-tdep.c (m32r_gdbarch_init): Replace accidentally deleted
11046 line.
11047
47a80e90
TT
110482011-01-31 Tom Tromey <tromey@redhat.com>
11049
11050 PR python/12216:
11051 * python/python.c (execute_gdb_command): Call
11052 prevent_dont_repeat.
11053 * top.c (suppress_dont_repeat): New global.
11054 (dont_repeat): Use it.
11055 (prevent_dont_repeat): New function.
11056 * command.h (prevent_dont_repeat): Declare.
11057
45a43567
TT
110582011-01-31 Tom Tromey <tromey@redhat.com>
11059
11060 * infcmd.c (finish_backward): Use breakpoint_set_silent.
11061 * python/py-breakpoint.c (bppy_set_silent): Use
11062 breakpoint_set_silent.
11063 (bppy_set_thread): Use breakpoint_set_thread.
11064 (bppy_set_task): Use breakpoint_set_task.
11065 * breakpoint.h (breakpoint_set_silent, breakpoint_set_thread)
11066 (breakpoint_set_task): Declare.
11067 (make_breakpoint_silent): Remove.
11068 * breakpoint.c (breakpoint_set_silent): New function.
11069 (breakpoint_set_thread): Likewise.
11070 (breakpoint_set_task): Likewise.
11071 (make_breakpoint_silent): Remove.
11072
09d682a4
TT
110732011-01-31 Tom Tromey <tromey@redhat.com>
11074
11075 * breakpoint.h (user_breakpoint_p): Declare.
11076 * breakpoint.c (user_breakpoint_p): New function.
11077 (breakpoint_1): Use it.
11078 (save_breakpoints): Likewise.
11079
9c4ea6c5
JB
110802011-01-31 Joel Brobecker <brobecker@adacore.com>
11081
11082 * configure.ac: Add handling of Python distribution on Windows.
11083 * python-config.py: If the LIBS, SYSLIBS, LIBPL and/or LINKFORSHARED
11084 sysconfig variables are not defined, then do not use them.
11085 On Windows, if LIBPL is not defined, then use prefix + '/libs'
11086 instead. On Windows, return all paths using forward-slashes
11087 rather than backslashes.
11088
ac534cba
JB
110892011-01-31 Joel Brobecker <brobecker@adacore.com>
11090
11091 * configure.ac: Remove fallback behavior for building
11092 against Python. Remove tweaking of Python include path.
11093 Add PYTHON_CPPFLAGS and PYTHON_LIBS substitution.
11094 (AC_TRY_LIBPYTHON): Adjust program used in linking test.
11095 If link is successful, set PYTHON_CPPFLAGS and PYTHON_LIBS.
11096 Always restore CPPFLAGS and LIBS after linking test.
11097 * configure: Regenerated.
11098 * Makefile.in (INTERNAL_CPPFLAGS): Add @PYTHON_CPPFLAGS@.
11099 (INSTALLED_LIBS, CLIBS): Add @PYTHON_LIBS@.
11100 * python/python-internal.h: Adjust includes of Python .h files.
11101
c2f0d045
JB
111022011-01-31 Joel Brobecker <brobecker@adacore.com>
11103
11104 * tracepoint.c (traceframe_walk_blocks): Add missing i18n markup
11105 in error message.
11106
6b0c4c1f
JB
111072011-01-31 Joel Brobecker <brobecker@adacore.com>
11108
11109 * inflow.c (gdb_has_a_terminal): Fix typo in interactive_mode
11110 value test.
11111
672c9795
YQ
111122011-01-31 Yao Qi <yao@codesourcery.com>
11113
11114 * arm-linux-nat.c: Update calls to regcache_register_status
11115 instead of regcache_valid_p.
11116 * aix-thread.c: Likewise.
11117 * i386gnu-nat.c: Likewise.
11118
80b23b6a
JK
111192011-01-29 Jan Kratochvil <jan.kratochvil@redhat.com>
11120
11121 Fix crash.
11122 * valops.c (compare_parameters): Verify TYPE_NFIELDS before
11123 touching TYPE_FIELD_ARTIFICIAL.
11124
4cd712bd
RE
111252011-01-28 Richard Earnshaw <rearnsha@arm.com>
11126
11127 * MAINTAINERS: Move myself from Responsible Maintainers to Authorized
11128 Committers.
11129
ffd5ec24
PA
111302011-01-28 Pedro Alves <pedro@codesourcery.com>
11131
11132 * tracepoint.c (tfile_xfer_partial): If there's no traceframe
11133 selected, don't try iterating over the traceframe's blocks.
11134 (tfile_has_stack): If there's no traceframe selected, then there's
11135 no stack.
11136 (tfile_has_registers): If there's no traceframe selected, then
11137 there's no registers.
11138
e8c9e0a1
PA
111392011-01-28 Pedro Alves <pedro@codesourcery.com>
11140
11141 * target.c (memory_xfer_partial): No need to restore shadows if we
11142 haven't read anything.
11143
de15c4ab
PA
111442011-01-28 Pedro Alves <pedro@codesourcery.com>
11145
11146 * mips-tdep.c (mips_print_register): Use get_frame_register_value
11147 and val_print_scalar_formatted.
11148
9f41c731
PA
111492011-01-27 Pedro Alves <pedro@codesourcery.com>
11150
11151 * tracepoint.c (tfile_read): New.
11152 (tfile_open): Use it.
11153 (tfile_get_traceframe_address): Use it.
11154 (tfile_trace_find): Use it.
11155 (walk_blocks_callback_func): New typedef.
11156 (match_blocktype): New function.
11157 (traceframe_walk_blocks): New function.
11158 (traceframe_find_block_type): New function.
11159 (tfile_fetch_registers, tfile_xfer_partial)
11160 (tfile_get_trace_state_variable_value): Use
11161 traceframe_find_block_type and tfile_read.
11162
cdefc55d
KB
111632011-01-26 Kevin Buettner <kevinb@redhat.com>
11164
11165 * remote-mips.c: Add internationalization mark ups. Remove
11166 trailing \n from already marked up strings.
11167
a81766d8
TT
111682011-01-26 Tom Tromey <tromey@redhat.com>
11169
11170 * python/py-prettyprint.c (print_string_repr): Clear
11171 'addressprint' option when calling val_print_string.
11172 (print_children): Handle Val_pretty_default. Clear 'addressprint'
11173 option when calling val_print_string.
11174
74aedc46
TT
111752011-01-26 Tom Tromey <tromey@redhat.com>
11176
11177 * python/python.c (gdbpy_solib_name): Use gdb_py_longest and
11178 GDB_PY_LL_ARG.
11179 * python/python-internal.h (GDB_PY_LL_ARG, GDB_PY_LLU_ARG): New
11180 macros.
11181 (gdb_py_longest, gdb_py_ulongest): New typedefs.
11182 (gdb_py_long_from_longest, gdb_py_long_from_ulongest)
11183 (gdb_py_long_as_ulongest): New defines.
11184 (gdb_py_object_from_longest, gdb_py_object_from_ulongest)
11185 (gdb_py_int_as_long): Declare.
11186 * python/py-value.c (valpy_lazy_string): Use gdb_py_longest,
11187 GDB_PY_LL_ARG, gdb_py_object_from_longest.
11188 (valpy_long): Add comment.
11189 * python/py-utils.c (get_addr_from_python): Use
11190 gdb_py_long_as_ulongest. Handle overflow properly.
11191 (gdb_py_object_from_longest): New function.
11192 (gdb_py_object_from_ulongest): Likewise.
11193 (gdb_py_int_as_long): Likewise.
11194 * python/py-type.c (typy_array): Use gdb_py_int_as_long.
11195 * python/py-symtab.c (salpy_get_pc): Use
11196 gdb_py_long_from_ulongest.
11197 (salpy_get_line): Use PyInt_FromLong.
11198 * python/py-param.c (set_parameter_value): Use
11199 gdb_py_int_as_long.
11200 * python/py-lazy-string.c (stpy_get_address): Use
11201 gdb_py_long_from_ulongest.
11202 * python/py-frame.c (frapy_pc): Use gdb_py_long_from_ulongest.
11203 * python/py-cmd.c (cmdpy_completer): Use gdb_py_int_as_long.
11204 * python/py-breakpoint.c (bppy_set_thread): Use
11205 gdb_py_int_as_long.
11206 (bppy_set_task): Likewise.
11207 (bppy_set_ignore_count): Likewise.
11208 (bppy_set_hit_count): Likewise.
11209 * python/py-block.c (blpy_get_start): Use
11210 gdb_py_object_from_ulongest.
11211 (blpy_get_end): Likewise.
11212 (gdbpy_block_for_pc): Use gdb_py_ulongest and GDB_PY_LLU_ARG.
11213
e4f6d2ec
TJB
112142011-01-25 Mathieu Lacage <mathieu.lacage@inria.fr>
11215
11216 PR/symtab 11766:
11217 * gdb/objfiles.h (struct objfile) <addr_low>: New field.
11218 * gdb/solib.c (solib_read_symbols): Check for addr_low in
11219 equality test for objfile, initialize addr_low if needed.
11220
b30aa278
PA
112212011-01-25 Pedro Alves <pedro@codesourcery.com>
11222
11223 * tui/tui-regs.c (tui_register_format): Remove dead code.
11224
ab2188aa
PA
112252011-01-25 Pedro Alves <pedro@codesourcery.com>
11226
11227 * printcmd.c (print_formatted): Use val_print_scalar_formatted
11228 instead of print_scalar_formatted.
11229 (print_scalar_formatted): Don't handle 's' format strings here,
11230 and add an assertion that we never see such format here.
11231 * valprint.h (val_print_scalar_formatted): Declare.
11232 * valprint.c (val_print_scalar_formatted): New.
11233 * c-valprint.c (c_val_print): Use val_print_scalar_formatted
11234 instead of print_scalar_formatted.
11235 * jv-valprint.c (java_val_print): Ditto.
11236 * p-valprint.c (pascal_val_print): Ditto.
11237 * ada-valprint.c (ada_val_print_1): Ditto.
11238 * f-valprint.c (f_val_print): Ditto.
11239 * infcmd.c (registers_info): Ditto.
11240 * m2-valprint.c (m2_val_print): Ditto.
11241
66d61a4c
PA
112422011-01-25 Pedro Alves <pedro@codesourcery.com>
11243
11244 * m2-valprint.c (print_unbounded_array): Pass
11245 value_contents_for_printing rather than value_contents, to
11246 m2_print_array_contents. Also pass in the value.
11247
831adc1f
JK
112482011-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
11249
11250 * dwarf2read.c (dwarf2_read_index, write_psymtabs_to_index)
11251 (save_gdb_index_command): Switch to .gdb_index version 4.
11252
20622269
PA
112532011-01-25 Pedro Alves <pedro@codesourcery.com>
11254
11255 * mi/mi-main.c (get_register): Use get_frame_register_value rather
11256 than frame_register, and always pass a valid value to val_print.
11257
585fdaa1
PA
112582011-01-25 Pedro Alves <pedro@codesourcery.com>
11259
11260 Centralize printing "<optimized out>".
11261
11262 * valprint.h (val_print_optimized_out): Declare.
11263 * cp-valprint.c (cp_print_value_fields): Use
11264 val_print_optimized_out.
11265 * jv-valprint.c (java_print_value_fields): Ditto.
11266 * p-valprint.c (pascal_object_print_value_fields): Ditto.
11267 * printcmd.c (print_formatted): Ditto.
11268 * valprint.c (valprint_check_validity): Ditto.
11269 (value_check_printable): Ditto.
11270 (val_print_optimized_out): New.
11271
29ec5263
PA
112722011-01-25 Pedro Alves <pedro@codesourcery.com>
11273
11274 * infcmd.c (default_print_registers_info): Allocate values so to
11275 never pass a NULL value to val_print.
11276
de4127a3
PA
112772011-01-25 Pedro Alves <pedro@codesourcery.com>
11278
11279 * cp-valprint.c (cp_print_value): Treat the 'skip' local as
11280 boolean. Make sure to always pass a value that matches the
11281 contents buffer to callees. Preserve `address' for following
11282 iterations.
11283 * value.c (value_contents_for_printing_const): New.
11284 (value_address): Constify value argument.
11285 * value.h (value_contents_for_printing_const): Declare.
11286 (value_address): Constify value argument.
11287
ee99023e
PA
112882011-01-25 Pedro Alves <pedro@codesourcery.com>
11289
11290 * regcache.c (struct regcache_descr): Rename
11291 sizeof_raw_register_valid_p field to sizeof_raw_register_status,
11292 and sizeof_cooked_register_valid_p to
11293 sizeof_cooked_register_status.
11294 (init_regcache_descr): Adjust.
11295 (struct regcache): Rename register_valid_p field to
11296 register_status.
11297 (regcache_xmalloc_1, regcache_xfree, regcache_save)
11298 (do_cooked_read): Adjust.
11299 (regcache_valid_p): Rename to ...
11300 (regcache_register_status): ... this. Adjust.
11301 (regcache_invalidate): Adjust.
11302 (regcache_raw_read, regcache_cooked_read, regcache_raw_write):
11303 Adjust.
11304 (regcache_raw_supply): Adjust. If buf i NULL, mark the register
11305 as unavailable, not valid.
11306 (regcache_dump): Adjust.
11307 * regcache.h (enum register_status): New.
11308 (regcache_register_status): Declare.
11309 (regcache_invalidate): Delete declaration.
11310 * corelow.c (get_core_registers): Adjust.
11311 * tracepoint.c (tfile_fetch_registers): Adjust.
11312 * trad-frame.c (REG_VALUE): Rename to ...
11313 (TF_REG_VALUE): ... this.
11314 (REG_UNKNOWN): Rename to ...
11315 (TF_REG_UNKNOWN): ... this.
11316 (trad_frame_set_value, trad_frame_set_unknown): Adjust.
11317 * mi/mi-main.c (register_changed_p): Adjust.
11318
99e42fd8
PA
113192011-01-25 Pedro Alves <pedro@codesourcery.com>
11320
11321 * regcache.c (struct regcache_descr): Remove outdated comment.
11322 (init_regcache_descr): Remove sizeof_raw_register_valid_p
11323 overallocate hack.
11324 (regcache_xmalloc): Rename to ...
11325 (regcache_xmalloc_1): ... this. Add `readonly_p' parameter.
11326 Allocate the regcache type accordingly.
11327 (regcache_xmalloc): New as wrapper around regcache_xmalloc_1.
11328 (regcache_xfree): Asser the source is also readonly. Copy sizeof
11329 cooked registers, not raw.
11330 (regcache_dup_no_passthrough): Delete.
11331 (get_thread_arch_regcache): Use regcache_xmalloc_1.
11332 * h8300-tdep.c (h8300_push_dummy_call): Tweak comment to not
11333 mention obsolete write_register_bytes.
11334 * regcache.h (regcache_dup_no_passthrough): Delete declaration.
11335
f7605bc2
PA
113362011-01-25 Pedro Alves <pedro@codesourcery.com>
11337
11338 Stop remote_read_bytes from handling partial reads itself.
11339
11340 * remote-fileio.c: Include target.h.
11341 (remote_fileio_write_bytes): Delete.
11342 (remote_fileio_func_open, remote_fileio_func_write)
11343 (remote_fileio_func_rename, remote_fileio_func_unlink): Use
11344 target_read_memory.
11345 (remote_fileio_func_stat): Use target_read_memory and
11346 target_write_memory.
11347 (remote_fileio_func_gettimeofday): Use target_write_memory.
11348 (remote_fileio_func_system): Use target_read_memory.
11349 * remote.c (remote_write_bytes): Make it static.
11350 (remote_read_bytes): Don't handle partial reads here.
11351 * remote.h (remote_read_bytes): Delete declaration.
11352
efc0eabd
PA
113532011-01-25 Pedro Alves <pedro@codesourcery.com>
11354
11355 Simplify XML parsing a bit.
11356
11357 * xml-support.h (gdb_xml_parse_quick): Declare.
11358 * xml-support.c (gdb_xml_create_parser_and_cleanup_1): Renamed
11359 from gdb_xml_create_parser_and_cleanup, and added `old_chain'
11360 parameter.
11361 (gdb_xml_create_parser_and_cleanup): Reimplement on top of
11362 gdb_xml_create_parser_and_cleanup_1.
11363 (gdb_xml_parse_quick): New.
11364 * memory-map.c (parse_memory_map): Use gdb_xml_parse_quick.
11365 * osdata.c (osdata_parse): Ditto.
11366 * remote.c (remote_threads_info): Ditto.
11367 * solib-target.c (solib_target_parse_libraries): Ditto.
11368 * xml-syscall.c (syscall_parse_xml): Ditto.
11369 * xml-tdesc.c (tdesc_parse_xml): Ditto.
11370
314d366a
KB
113712011-01-24 Kevin Buettner <kevinb@redhat.com>
11372
11373 * configure.tgt (mips*-*-elf): New; just like mips*-*-*, but
11374 with remote-mips.o added to gdb_target_obs.
11375 * Makefile.in (ALL_TARGET_OBS): Add remote-mips.o.
11376
a491d753
PA
113772011-01-24 Pedro Alves <pedro@codesourcery.com>
11378
11379 * ada-valprint.c (val_print_packed_array_elements): Pass the
11380 correct struct value to val_print.
11381 (ada_val_print_1): Ditto.
11382
490f124f
PA
113832011-01-24 Pedro Alves <pedro@codesourcery.com>
11384
11385 Don't lose embedded_offset in printing routines throughout.
11386
11387 * valprint.h (val_print_array_elements): Change prototype.
11388 * valprint.c (val_print_array_elements): Add `embedded_offset'
11389 parameter, and adjust to pass it down to val_print, while passing
11390 `valaddr' or `address' unmodified. Take embedded_offset into
11391 account when checking repetitions.
11392 * c-valprint.c (c_val_print): Pass embedded_offset to
11393 val_print_array_elements instead of adjusting `valaddr' and
11394 `address'.
11395 * m2-valprint.c (m2_print_array_contents, m2_val_print): Pass
11396 embedded_offset to val_print_array_elements instead of adjusting
11397 `valaddr'.
11398 * p-lang.h (pascal_object_print_value_fields): Adjust prototype.
11399 * p-valprint.c (pascal_val_print): Pass embedded_offset to
11400 val_print_array_elements and pascal_object_print_value_fields
11401 instead of adjusting `valaddr'.
11402 (pascal_object_print_value_fields): Add `offset' parameter, and
11403 adjust to use it.
11404 (pascal_object_print_value): Add `offset' parameter, and adjust to
11405 use it.
11406 (pascal_object_print_static_field): Use
11407 value_contents_for_printing/value_embedded_offset, rather than
11408 value_contents.
11409 * ada-valprint.c (val_print_packed_array_elements): Add `offset'
11410 parameter, and adjust to use it. Use
11411 value_contents_for_printing/value_embedded_offset, rather than
11412 value_contents.
11413 (ada_val_print): Rename `valaddr0' parameter to `valaddr'.
11414 (ada_val_print_array): Add `offset' parameter, and adjust to use
11415 it.
11416 (ada_val_print_1): Rename `valaddr0' parameter to `valaddr', and
11417 `embedded_offset' to `offset'. Don't re-adjust `valaddr'.
11418 Instead work with offsets. Use
11419 value_contents_for_printing/value_embedded_offset, rather than
11420 value_contents. Change `defer_val_int' local type to CORE_ADDR,
11421 and use value_from_pointer to extract a target pointer, rather
11422 than value_from_longest.
11423 (print_variant_part): Add `offset' parameter. Replace
11424 `outer_valaddr' parameter by a new `outer_offset' parameter.
11425 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
11426 (ada_value_print): Use
11427 value_contents_for_printing/value_embedded_offset, rather than
11428 value_contents.
11429 (print_record): Add `offset' parameter, and adjust to pass it
11430 down.
11431 (print_field_values): Add `offset' parameter. Replace
11432 `outer_valaddr' parameter by a new `outer_offset' parameter.
11433 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
11434 Use value_contents_for_printing/value_embedded_offset, rather than
11435 value_contents.
11436 * d-valprint.c (dynamic_array_type): Use
11437 value_contents_for_printing/value_embedded_offset, rather than
11438 value_contents.
11439 * jv-valprint.c (java_print_value_fields): Add `offset' parameter.
11440 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
11441 (java_print_value_fields): Take `offset' into account. Don't
11442 re-adjust `valaddr'. Instead pass down adjusted offsets.
11443 (java_val_print): Take `embedded_offset' into account. Pass it to
11444 java_print_value_fields.
11445 * f-valprint.c (f77_print_array_1): Add `embedded_offset'
11446 parameter. Don't re-adjust `valaddr' or `address'. Instead pass
11447 down adjusted offsets.
11448 (f77_print_array): Add `embedded_offset' parameter. Pass it down.
11449 (f_val_print): Take `embedded_offset' into account.
11450
7bfc9434
JB
114512011-01-21 Joel Brobecker <brobecker@adacore.com>
11452
11453 * inflow.c: Include "gdbcmd.h".
11454 (interactive_mode): New static global, moved here from top.c.
11455 (show_interactive_mode): New function, moved here from top.c.
11456 use gdb_has_a_terminal instead of input_from_terminal_p to
11457 determine the current mode.
11458 (gdb_has_a_terminal): Add handling of the "iteractive-mode"
11459 setting.
11460 (_initialize_inflow): Add the "set/show interactive-mode"
11461 commands. Moved here from top.c, after having adjusted slightly
11462 the help text.
11463 * top.c (interactive_mode, show_interactive_mode): Delete, moved
11464 to inflow.c.
11465 (input_from_terminal_p): Remove handling of "interactive-mode"
11466 setting, moved to infow.c.
11467 (init_main): Remove creation of the "set/show interactive-mode"
11468 commands, moved to inflow.c.
11469
44603653
JB
114702011-01-19 Joel Brobecker <brobecker@adacore.com>
11471
11472 * NEWS: Add entry for native ia64-hpux support.
11473
4694da01
TT
114742011-01-19 Tom Tromey <tromey@redhat.com>
11475
11476 PR mi/8618:
11477 * thread.c (free_thread): Free 'name'.
11478 (print_thread_info): Emit thread name. Change CLI output.
11479 (thread_name_command): New function.
11480 (do_captured_thread_select): Emit newline.
11481 (_initialize_thread): Register 'thread name' command.
11482 * target.h (struct target_ops) <to_thread_name>: New field.
11483 (target_thread_name): New macro.
11484 * target.c (update_current_target): Handle to_thread_name.
11485 * python/py-infthread.c (thpy_get_name): New function.
11486 (thpy_set_name): Likewise.
11487 (thread_object_getset): Add "name".
11488 * linux-nat.c (linux_nat_thread_name): New function.
11489 (linux_nat_add_target): Set to_thread_name.
11490 * gdbthread.h (struct thread_info) <name>: New field.
11491
10d44370
JB
114922011-01-18 Joel Brobecker <brobecker@adacore.com>
11493
11494 * ada-valprint.c (ada_print_scalar): Remove unsigned char downcast.
11495 (ada_val_print_1): Likewise.
11496
e3acb115
JB
114972011-01-18 Joel Brobecker <brobecker@adacore.com>
11498
11499 * rs6000-tdep.c (rs6000_skip_prologue): Make sure that the prologue
11500 upper limit address is not greater than the function end address
11501 when the upper limit could not be computed using the debugging
11502 info.
11503
dc92e161
TT
115042011-01-17 Tom Tromey <tromey@redhat.com>
11505
11506 * cli/cli-cmds.c (apropos_command): Free the compiled regex. Use
11507 get_regcomp_error.
11508 * utils.c: Include gdb_regex.h.
11509 (do_regfree_cleanup): New function.
11510 (make_regfree_cleanup): Likewise.
11511 (get_regcomp_error): Likewise.
11512 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Declare.
11513
f55af66d
TT
115142011-01-17 Tom Tromey <tromey@redhat.com>
11515
11516 * cli/cli-cmds.c (apropos_command): Fix formatting. Don't call
11517 re_compile_fastmap.
11518
a5a44b53
PM
115192011-01-17 Pierre Muller <muller@ics.u-strasbg.fr>
11520
11521 * p-exp.y (intvar): New static variable, used to set CURRENT_TYPE
11522 for internal variables.
11523 (last_was_structop): New static variable.
11524 (COMPLETE): New token.
11525 (field_exp): New rule to group all '.' suffix handling.
11526 Add mark_struct_expression calls when approriate to be able
11527 to correctly find fields for completion.
11528 (yylex): Adapt to handle field completion and set INTVAR when
11529 required.
11530
2c291032
YQ
115312011-01-14 Yao Qi <yao@codesourcery.com>
11532
11533 * arm-tdep.c (arm_register_reggroup_p): FPS register is in
11534 save_reggroup, restore_reggroup and all_reggroup.
11535
447b483c
JB
115362011-01-14 Joel Brobecker <brobecker@adacore.com>
11537
11538 * ada-valprint. (ada_printchar): Use the correct type length
11539 in call to ada_emit_char.
11540 * c-valprint.c (c_val_print): Remove cast in call to LA_PRINT_CHAR.
11541
7b64a93b
PM
115422011-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
11543
11544 * solib-som.h (hpux_major_release): Declare variable here.
11545 * solib-som.c: Remove <sys/utsname.h> header.
11546 (DEFAULT_HPUX_MAJOR_RELEASE): New macro.
11547 (hpux_major_release): Make global, change default value to
11548 DEFAULT_HPUX_MAJOR_RELEASE.
f2eb0bc8 11549 (get_hpux_major_release): Simply return HPUX_MAJOR_RELEASE.
7b64a93b
PM
11550 * hppa-hpux-nat.c: Add <sys/utsname.h> include.
11551 Add "solib-som.h" header.
11552 (set_hpux_major_release): New function.
11553 (_initialize_hppa_hpux_nat): Call set_hpux_major_release.
11554
4e18c053
MF
115552011-01-14 Mike Frysinger <vapier@gentoo.org>
11556
11557 * configure.tgt (*-*-uclinux*): Match more Linux os targets
11558
a9df6b22
JB
115592011-01-14 Joel Brobecker <brobecker@adacore.com>
11560
11561 * ia64-hpux-nat.c (ia64_hpux_fetch_register): Remove trailing
11562 new-line at end of warning message.
11563 (ia64_hpux_store_register): Remove trailing new-line at end of
11564 error message.
11565 * ia64-hpux-tdep.c: Rephrase comment.
11566 * solib-ia64-hpux.c (struct dld_info): Change type of field
11567 dld_flags from "long long" to ULONGEST.
11568
ecb956dd
PA
115692011-01-14 Pedro Alves <pedro@codesourcery.com>
11570
11571 * target.h (deprecated_child_ops): Delete declaration.
11572 * target.c (deprecated_child_ops): Delete definition.
11573
76adfcae
PA
115742011-01-14 Pedro Alves <pedro@codesourcery.com>
11575
11576 * Makefile.in (hpux-thread.o): Delete rule.
11577 * configure.ac: Don't check for HPUX DCE threads support.
11578 * configure, config.in: Regenerate.
11579 * hppa-hpux-nat.c (child_suppress_run): Delete.
11580 (hppa_hpux_child_can_run): Delete.
11581 (_initialize_hppa_hpux_nat): Don't override to_can_run.
11582 * hpux-thread.c: Delete.
11583
042e866e
JB
115842011-01-13 Joel Brobecker <brobecker@adacore.com>
11585
11586 * hpux-thread.c (hpux_pid_to_str): Delete.
11587
4ffa5a33
JB
115882011-01-13 Joel Brobecker <brobecker@adacore.com>
11589
11590 * ada-valprint.c (ada_emit_char): Remove strange code.
11591 Check that c is <= UCHAR_MAX before passing it to isascii.
11592 (char_at): Do not assume that TYPE_LEN is either 1 or 2.
11593
de8fa76c
JB
115942011-01-13 Joel Brobecker <brobecker@adacore.com>
11595
11596 * top.c (input_from_terminal_p): Restrict the use of interactive_mode
11597 to the case where instream is stdin.
11598
c4de7027
JB
115992011-01-13 Joel Brobecker <brobecker@adacore.com>
11600
11601 * ia64-tdep.h (struct regcache): Forward declare.
11602 (struct ia64_infcall_ops): New struct type.
11603 (struct gdbarch_tdep): New fields "find_global_pointer_from_solib"
11604 and "infcall_ops".
11605 * ia64-tdep.c (ia64_find_global_pointer_from_dynamic_section):
11606 Renames ia64_find_global_pointer.
11607 (ia64_find_global_pointer, ia64_allocate_new_rse_frame)
11608 (ia64_store_argument_in_slot, ia64_set_function_addr: New function.
11609 (ia64_push_dummy_call): Adjust to use the new tdep ia64_infocall_ops
11610 methods.
11611 (ia64_infcall_ops): New static global constant.
11612 (ia64_gdbarch_init): Set tdep->infcall_ops.
11613 * ia64-hpux-nat.c (ia64_hpux_xfer_solib_got): New function.
11614 (ia64_hpux_xfer_partial): Add TARGET_OBJECT_HPUX_SOLIB_GOT handing.
11615 * ia64-hpux-tdep.c: Include "regcache.h", "gdbcore.h" and "inferior.h".
11616 (ia64_hpux_dummy_code): New static global constant.
11617 (ia64_hpux_push_dummy_code, ia64_hpux_allocate_new_rse_frame)
11618 (ia64_hpux_store_argument_in_slot, ia64_hpux_set_function_addr)
11619 (ia64_hpux_dummy_id, ia64_hpux_find_global_pointer_from_solib):
11620 New function.
11621 (ia64_hpux_infcall_ops): New static global constant.
11622 (ia64_hpux_init_abi): Install gdbarch and tdep methods needed
11623 for inferior function calls to work properly on ia64-hpux.
11624
77ca787b
JB
116252011-01-13 Joel Brobecker <brobecker@adacore.com>
11626
11627 * target.h (enum target_object): Add TARGET_OBJECT_HPUX_UREGS.
11628 * ia64-tdep.h (struct frame_info): forward declaration.
11629 (struct gdbarch_tdep): Add field size_of_register_frame.
11630 * ia64-tdep.c (ia64_access_reg): Use tdep->size_of_register_frame
11631 to determine the size of the register frame.
11632 (ia64_size_of_register_frame): New function.
11633 (ia64_gdbarch_init): Set tdep->size_of_register_frame.
11634 * ia64-hpux-tdep.c: Include "target.h" and "frame.h".
11635 (IA64_HPUX_UREG_REASON): New macro.
11636 (ia64_hpux_stopped_in_syscall, ia64_hpux_size_of_register_frame):
11637 New functions.
11638 (ia64_hpux_init_abi): Set tdep->size_of_register_frame.
11639 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): New function.
11640 (ia64_hpux_xfer_partial): Add handling of TARGET_OBJECT_HPUX_UREGS
11641 objects.
11642
92c9a463
JB
116432011-01-13 Joel Brobecker <brobecker@adacore.com>
11644
11645 Add support for ia64-hpux.
11646 * config/ia64/hpux.mh, ia64-hpux-nat.c, ia64-hpux-tdep.c,
11647 ia64-hpux-tdep.h, solib-ia64-hpux.c, solib-ia64-hpux.h: New files.
11648
11649 * configure.host: Add handling for ia64-hpux hosts. Add associated
11650 floatformats.
11651 * configure.tgt: Add handling for ia64-hpux targets.
11652 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-hpux-tdep.o.
11653 (HFILES_NO_SRCDIR): Add ia64-hpux-tdep.h.
11654 (ALLDEPFILES): Add ia64-hpux-nat.c ia64-hpux-tdep.c.
11655
f688d93f
JB
116562011-01-13 Joel Brobecker <brobecker@adacore.com>
11657
11658 [ttrace] Compute thread list immediately after attach.
11659 * inf_ttrace_attach (inf_ttrace_create_threads_after_attach):
11660 New subprogram.
11661 (inf_ttrace_attach): Use it.
11662
1b89e62f
JB
116632011-01-13 Joel Brobecker <brobecker@adacore.com>
11664
11665 * libunwind-frame.c (libunwind_frame_cache): Do not return NULL
11666 if we could not determine the frame's function address. Instead,
11667 use the frame's PC, and then continue.
11668
3e5e6e2a
JB
116692011-01-13 Joel Brobecker <brobecker@adacore.com>
11670
11671 * libunwind-frame.c (__LITTLE_ENDIAN, __BIG_ENDIAN): Define if
11672 not already defined.
11673
825d6d8a
JB
116742011-01-13 Joel Brobecker <brobecker@adacore.com>
11675
11676 * ia64-tdep.c (ia64_struct_type_p): New function.
11677 (ia64_extract_return_value): Handle integral values that are
11678 less than 8 bytes long.
11679 (ia64_push_dummy_call): Likewise.
11680
7458e667
JB
116812011-01-13 Joel Brobecker <brobecker@adacore.com>
11682
11683 * ia64-tdep.c (floatformat_ia64_ext_little): Renames
11684 floatformat_ia64_ext.
11685 (floatformat_ia64_ext_big): New static const.
11686 (floatformats_ia64_ext): Set first entry to &floatformat_ia64_ext_big.
11687
1b05df00
TT
116882011-01-12 Tom Tromey <tromey@redhat.com>
11689
11690 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Fix error
11691 messages.
11692 * mi/mi-main.c (mi_cmd_thread_select): Fix error messages.
11693 (mi_cmd_thread_list_ids): Likewise.
11694 (mi_cmd_data_list_changed_registers): Likewise.
11695 (mi_cmd_data_list_register_values): Likewise.
11696 (mi_cmd_data_write_register_values): Likewise.
11697 (mi_cmd_data_evaluate_expression): Likewise.
11698 (mi_cmd_data_read_memory): Likewise.
11699 (mi_cmd_data_read_memory_bytes): Likewise.
11700 (mi_cmd_data_write_memory): Likewise.
11701 (mi_cmd_enable_timings): Likewise.
11702 * mi/mi-interp.c (mi_cmd_interpreter_exec): Fix error messages.
11703 * mi/mi-cmd-var.c (mi_cmd_var_create): Fix error messages.
11704 (mi_cmd_var_delete): Likewise.
11705 (mi_cmd_var_set_format): Likewise.
11706 (mi_cmd_var_show_format): Likewise.
11707 (mi_cmd_var_info_num_children): Likewise.
11708 (mi_cmd_var_list_children): Likewise.
11709 (mi_cmd_var_info_type): Likewise.
11710 (mi_cmd_var_info_expression): Likewise.
11711 (mi_cmd_var_show_attributes): Likewise.
11712 (mi_cmd_var_assign): Likewise.
11713 (mi_cmd_var_update): Likewise.
11714 (mi_cmd_enable_pretty_printing): Likewise.
11715 (mi_cmd_var_set_update_range): Likewise.
11716 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Fix error
11717 messages.
11718 (mi_cmd_target_file_put): Likewise.
11719 (mi_cmd_target_file_delete): Likewise.
11720 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Fix error
11721 messages.
11722 (mi_cmd_stack_info_depth): Likewise.
11723 (mi_cmd_stack_list_locals): Likewise.
11724 (mi_cmd_stack_list_args): Likewise.
11725 (mi_cmd_stack_select_frame): Likewise.
11726 (mi_cmd_stack_select_frame): Likewise.
11727 (mi_cmd_stack_info_frame): Likewise.
11728 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Fix error
11729 messages.
11730 (mi_cmd_file_list_exec_source_files): Likewise.
11731 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Fix error messages.
11732 (mi_cmd_env_cd): Likewise.
11733 (mi_cmd_env_path): Likewise.
11734 (mi_cmd_env_dir): Likewise.
11735 (mi_cmd_inferior_tty_show): Likewise.
11736 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Fix error messages.
11737 * mi/mi-cmd-break.c (mi_cmd_break_insert): Fix error messages.
11738 (mi_cmd_break_watch): Likewise.
11739
ad422571
TJB
117402011-01-12 Thiago Jung Bauermann <bauerman@br.ibm.com>
11741
11742 * ppc-linux-nat.c (booke_cmp_hw_point): Fix whitespace.
11743 (ppc_linux_insert_hw_breakpoint): Likewise.
11744 (ppc_linux_remove_hw_breakpoint): Likewise.
11745 (ppc_linux_insert_watchpoint): Likewise.
11746
c2ff108b
JK
117472011-01-12 Andrew Burgess <aburgess@broadcom.com>
11748 Jan Kratochvil <jan.kratochvil@redhat.com>
11749
11750 PR fortran/11104 and DWARF unbound arrays detection.
11751 * dwarf2read.c (read_subrange_type): Set zero length on unspecified
11752 upper bound. Set TYPE_HIGH_BOUND_UNDEFINED if not language_ada on
11753 unspecified upper bound.
11754 * eval.c (evaluate_subexp_standard) <multi_f77_subscript>: Remove
11755 variables array_size_array, tmp_type and offset_item. New variable
11756 array. Remove call to f77_get_upperbound. New variables array_type
11757 and index. Call value_subscripted_rvalue for each dimenasion. Remove
11758 the final call to deprecated_set_value_type.
11759
41e8491f
JK
117602011-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
11761
11762 Make value allocations more lazy.
11763 * ada-lang.c (coerce_unspec_val_to_type): Use allocate_value_lazy
11764 instead of allocate_value and set_value_lazy when possible.
f2eb0bc8 11765 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use allocate_value_lazy
41e8491f
JK
11766 instead of allocate_value and set_value_lazy.
11767 * findvar.c (value_of_register_lazy): Likewise.
11768 (read_var_value): Remove V preallocation, call just check_typedef in
f2eb0bc8 11769 advance. Move allocate_value to LOC_CONST, LOC_LABEL,
41e8491f
JK
11770 LOC_CONST_BYTES. Use allocate_value_lazy in LOC_STATIC, LOC_ARG,
11771 LOC_REF_ARG, LOC_LOCAL, LOC_BLOCK. Set ADDR instead of
11772 set_value_address and break in LOC_BLOCK. Use allocate_value_lazy and
11773 remove lval_memory set in LOC_REGPARM_ADDR. Use allocate_value_lazy
11774 in LOC_UNRESOLVED and LOC_OPTIMIZED_OUT. Add setting lval_memory at
11775 the end, remove set_value_lazy there.
11776 * valarith.c (value_subscripted_rvalue): Use allocate_value_lazy
11777 instead of allocate_value and set_value_lazy when possible.
11778 * valops.c (value_fetch_lazy): Do nop for value_optimized_out VAL.
11779 * value.c (allocate_computed_value): Use allocate_value_lazy instead
11780 of allocate_value and set_value_lazy.
11781 (value_from_contents_and_address): Use allocate_value_lazy instead of
11782 allocate_value and set_value_lazy when possible.
11783
b716877b
AB
117842011-01-12 Andrew Burgess <aburgess@broadcom.com>
11785
11786 * disasm.c (dump_insns): Support dumping opcodes for MI.
11787 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Allow mode to control
11788 dumping of instruction opcodes.
11789
d5ae309f
JB
117902011-01-09 Robert Millan <rmh@gnu.org> (tiny patch)
11791
11792 * configure.tgt: Detect GNU/kFreeBSD and set `gdb_osabi'
11793 appropiately.
11794
98871305
TT
117952011-01-11 Tom Tromey <tromey@redhat.com>
11796
11797 * thread.c (do_captured_thread_select): Emit newline before
11798 printing frame.
11799
c378eb4e
MS
118002011-01-11 Michael Snyder <msnyder@vmware.com>
11801
11802 * s390-tdep.c: Comment cleanup, mostly periods and spaces.
11803 * score-tdep.c: Ditto.
11804 * score-tdep.h: Ditto.
11805 * ser-base.c: Ditto.
11806 * ser-go32.c: Ditto.
11807 * serial.c: Ditto.
11808 * serial.h: Ditto.
11809 * ser-mingw.c: Ditto.
11810 * ser-pipe.c: Ditto.
11811 * ser-tcp.c: Ditto.
11812 * ser-unix.c: Ditto.
11813 * sh64-tdep.c: Ditto.
11814 * shnbsd-nat.c: Ditto.
11815 * sh-tdep.c: Ditto.
11816 * sh-tdep.h: Ditto.
11817 * solib.c: Ditto.
11818 * solib-darwin.c: Ditto.
11819 * solib-frv.c: Ditto.
11820 * solib.h: Ditto.
11821 * solib-irix.c: Ditto.
11822 * solib-osf.c: Ditto.
11823 * solib-pa64.c: Ditto.
11824 * solib-som.c: Ditto.
11825 * solib-spu.c: Ditto.
11826 * solib-sunos.c: Ditto.
11827 * solib-svr4.c: Ditto.
11828 * solist.h: Ditto.
11829 * sol-thread.c: Ditto.
11830 * somread.c: Ditto.
11831 * source.c: Ditto.
11832 * source.h: Ditto.
11833 * sparc64-linux-tdep.c: Ditto.
11834 * sparc64-tdep.c: Ditto.
11835 * sparc-linux-nat.c: Ditto.
11836 * sparc-linux-tdep.c: Ditto.
11837 * sparc-sol2-nat.c: Ditto.
11838 * sparc-sol2-tdep.c: Ditto.
11839 * sparc-tdep.c: Ditto.
11840 * sparc-tdep.h: Ditto.
11841 * spu-tdep.c: Ditto.
11842 * stabsread.c: Ditto.
11843 * stabsread.h: Ditto.
11844 * stack.c: Ditto.
11845 * symfile.c: Ditto.
11846 * symfile.h: Ditto.
11847 * symmisc.c: Ditto.
11848 * symtab.c: Ditto.
11849 * symtab.h: Ditto.
11850 * target.c: Ditto.
11851 * target-descriptions.c: Ditto.
11852 * target-descriptions.h: Ditto.
11853 * target.h: Ditto.
11854 * target-memory.c: Ditto.
11855 * terminal.h: Ditto.
11856 * thread.c: Ditto.
11857 * top.c: Ditto.
11858 * tracepoint.c: Ditto.
11859 * tracepoint.h: Ditto.
11860 * trad-frame.h: Ditto.
11861 * typeprint.c: Ditto.
11862
581e13c1
MS
118632011-01-11 Michael Snyder <msnyder@vmware.com>
11864
11865 * ui-file.c: Comment cleanup, mostly periods and spaces.
11866 * ui-file.h: Ditto.
11867 * ui-out.c: Ditto.
11868 * ui-out.h: Ditto.
11869 * utils.c: Ditto.
11870 * v850-tdep.c: Ditto.
11871 * valarith.c: Ditto.
11872 * valops.c: Ditto.
11873 * valprint.c: Ditto.
11874 * valprint.h: Ditto.
11875 * value.c: Ditto.
11876 * value.h: Ditto.
11877 * varobj.c: Ditto.
11878 * varobj.h: Ditto.
11879 * vax-tdep.c: Ditto.
11880 * vec.c: Ditto.
11881 * vec.h: Ditto.
11882 * version.h: Ditto.
11883 * windows-nat.c: Ditto.
11884 * windows-tdep.c: Ditto.
11885 * xcoffread.c: Ditto.
11886 * xcoffsolib.c: Ditto.
11887 * xml-support.c: Ditto.
11888 * xstormy16-tdep.c: Ditto.
11889 * xtensa-tdep.c: Ditto.
11890 * xtensa-tdep.h: Ditto.
11891
90e4670f
TJB
118922011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
11893
11894 * breakpoint.c (resources_needed_watchpoint): Fix indentation.
11895 * gdbtypes.c (is_scalar_type_recursive): Fix formatting.
11896
e09342b5
TJB
118972011-01-11 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
11898 Thiago Jung Bauermann <bauerman@br.ibm.com>
11899
11900 Implement support for PowerPC BookE ranged watchpoints.
f2eb0bc8 11901 * breakpoint.h
e09342b5
TJB
11902 (struct breakpoint_ops) <resources_needed>: New method.
11903 Initialize to NULL in all existing breakpoint_ops instances.
11904 (struct breakpoint) <exact>: New field.
11905 (target_exact_watchpoints): Declare external global.
11906 * breakpoint.c (target_exact_watchpoints): New global flag.
11907 (update_watchpoint): Set b->type to bp_hardware_watchpoint and
11908 b->enable_state to bp_enabled before calling
11909 hw_watchpoint_used_count.
11910 (hw_watchpoint_used_count): Iterate over all bp_locations in a
11911 watchpoint. Call breakpoint's breakpoint_ops.resources_needed
11912 if available.
11913 (insert_watchpoint, remove_watchpoint): Use fixed length of 1 byte
11914 if the watchpoint is exact.
11915 (resources_needed_watchpoint): New function.
11916 (watchpoint_breakpoint_ops): Add resources_needed_watchpoint.
11917 (watch_command_1): Set b->exact if the user asked for an exact
11918 watchpoint and one can be set.
11919 (can_use_hardware_watchpoint): Add exact_watchpoints argument.
11920 Pass fixed length of 1 to target_region_ok_for_hw_watchpoint if
11921 the user asks for an exact watchpoint and one can be set. Return
11922 number of needed debug registers to watch the expression.
11923 * gdbtypes.c (is_scalar_type): New function, based on
11924 valprint.c:scalar_type_p.
11925 (is_scalar_type_recursive): New function.
11926 * gdbtypes.h (is_scalar_type_recursive): Declare.
11927 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Always
11928 handle regions when ranged watchpoints are available.
11929 (create_watchpoint_request): New function.
11930 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
11931 create_watchpoint_request.
11932 * rs6000-tdep.c (show_powerpc_exact_watchpoints): New function.
11933 (_initialize_rs6000_tdep): Add `exact-watchpoints' boolean to the
11934 `set powerpc' and `show powerpc' commands.
11935 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
11936 Mention documentation comment in the target macro.
11937 (target_region_ok_for_hw_watchpoint): Document return value.
11938
9fa40276
TJB
119392011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
11940
11941 * breakpoint.c (update_watchpoint): Decide on using a software or
11942 hardware watchpoint after the bp_locations are created.
11943
77b06cd7
TJB
119442010-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
11945
11946 Convert hardware watchpoints to use breakpoint_ops.
11947 * breakpoint.h (breakpoint_ops) <insert>: Rename to...
11948 <insert_location>: ... this. Return int instead of void.
11949 Accept pointer to struct bp_location instead of pointer to
11950 struct breakpoint. Adapt all implementations.
f2eb0bc8 11951 (breakpoint_ops) <remove>: Rename to...
77b06cd7
TJB
11952 <remove_location>: ... this. Accept pointer to struct bp_location
11953 instead of pointer to struct breakpoint. Adapt all implementations.
11954 * breakpoint.c (insert_catchpoint): Delete function.
11955 (insert_bp_location): Call the watchpoint or catchpoint's
11956 breakpoint_ops.insert method.
11957 (remove_breakpoint_1): Call the watchpoint or catchpoint's
11958 breakpoint_ops.remove method.
11959 (insert_watchpoint, remove_watchpoint): New functions.
11960 (watchpoint_breakpoint_ops): New structure.
11961 (watch_command_1): Initialize the OPS field.
11962 * inf-child.c (inf_child_insert_fork_catchpoint)
11963 (inf_child_remove_fork_catchpoint, inf_child_insert_vfork_catchpoint)
11964 (inf_child_remove_vfork_catchpoint, inf_child_insert_exec_catchpoint)
11965 (inf_child_remove_exec_catchpoint, inf_child_set_syscall_catchpoint):
11966 Delete functions.
11967 (inf_child_target): Remove initialization of to_insert_fork_catchpoint,
11968 to_remove_fork_catchpoint, to_insert_vfork_catchpoint,
11969 to_remove_vfork_catchpoint, to_insert_exec_catchpoint,
11970 to_remove_exec_catchpoint and to_set_syscall_catchpoint.
11971 * target.c (update_current_target): Change default implementation of
11972 to_insert_fork_catchpoint, to_remove_fork_catchpoint,
11973 to_insert_vfork_catchpoint, to_remove_vfork_catchpoint,
11974 to_insert_exec_catchpoint, to_remove_exec_catchpoint and
11975 to_set_syscall_catchpoint to return_one.
11976 (debug_to_insert_fork_catchpoint, debug_to_insert_vfork_catchpoint)
11977 (debug_to_insert_exec_catchpoint): Report return value.
11978 * target.h (to_insert_fork_catchpoint, to_insert_vfork_catchpoint)
11979 (to_insert_exec_catchpoint): Change declaration to return int instead
11980 of void.
11981
9b20d036
MS
119822011-01-11 Michael Snyder <msnyder@vmware.com>
11983
11984 * arm-tdep.c: Internationalization.
11985 * c-lang.c: Ditto.
11986 * charset.c: Ditto.
11987 * fork-child.c: Ditto.
11988 * nto-procfs.c: Ditto.
11989 * ppc-sysv-tdep.c: Ditto.
11990 * procfs.c: Ditto.
11991 * remote-mips.c: Ditto.
11992 * remote.c: Ditto.
11993 * rs6000-nat.c: Ditto.
11994 * rs6000-tdep.c: Ditto.
11995 * target.c: Ditto.
11996 * valops.c: Ditto.
11997 * value.c: Ditto.
11998 * xml-support.c: Ditto.
11999 * mi/mi-cmd-break.c: Ditto.
12000 * mi/mi-cmd-var.c: Ditto.
12001 * mi/mi-interp.c: Ditto.
12002 * mi/mi-main.c: Ditto.
12003
dae477fe
AB
120042011-01-11 Andrew Burgess <aburgess@broadcom.com>
12005
12006 * remote-sim.c (gdbsim_store_register): Update API to
12007 sim_store_register to check more error conditions.
12008
0df8b418
MS
120092011-01-10 Michael Snyder <msnyder@vmware.com>
12010
12011 * nto-procfs.c: Comment cleanup, mostly periods and spaces.
12012 * nto-tdep.c: Ditto.
12013 * nto-tdep.h: Ditto.
12014 * objc-exp.y: Ditto.
12015 * objc-lang.c: Ditto.
12016 * objfiles.c: Ditto.
12017 * objfiles.h: Ditto.
12018 * observer.c: Ditto.
12019 * opencl-lang.c: Ditto.
12020 * osabi.c: Ditto.
12021 * parse.c: Ditto.
12022 * parser-defs.h: Ditto.
12023 * p-exp.y: Ditto.
12024 * p-lang.c: Ditto.
12025 * posix-hdep.c: Ditto.
12026 * ppcbug-rom.c: Ditto.
12027 * ppc-linux-nat.c: Ditto.
12028 * ppc-linux-tdep.c: Ditto.
12029 * ppc-linux-tdep.h: Ditto.
12030 * ppcnbsd-tdep.c: Ditto.
12031 * ppcobsd-tdep.c: Ditto.
12032 * ppcobsd-tdep.h: Ditto.
12033 * ppc-sysv-tdep.c: Ditto.
12034 * ppc-tdep.h: Ditto.
12035 * printcmd.c: Ditto.
12036 * proc-abi.c: Ditto.
12037 * proc-flags.c: Ditto.
12038 * procfs.c: Ditto.
12039 * proc-utils.h: Ditto.
12040 * progspace.h: Ditto.
12041 * prologue-value.c: Ditto.
12042 * prologue-value.h: Ditto.
12043 * psympriv.h: Ditto.
12044 * psymtab.c: Ditto.
12045 * p-typeprint.c: Ditto.
12046 * p-valprint.c: Ditto.
12047 * ravenscar-sparc-thread.c: Ditto.
12048 * ravenscar-thread.c: Ditto.
12049 * ravenscar-thread.h: Ditto.
12050 * record.c: Ditto.
12051 * regcache.c: Ditto.
12052 * regcache.h: Ditto.
12053 * remote.c: Ditto.
12054 * remote-fileio.c: Ditto.
12055 * remote-fileio.h: Ditto.
12056 * remote.h: Ditto.
12057 * remote-m32r-sdi.c: Ditto.
12058 * remote-mips.c: Ditto.
12059 * remote-sim.c: Ditto.
12060 * rs6000-aix-tdep.c: Ditto.
12061 * rs6000-nat.c: Ditto.
12062 * rs6000-tdep.c: Ditto.
12063
0d7a18f7
MS
120642011-01-10 Michael Snyder <msnyder@vmware.com>
12065
12066 * charset.c (validate): Internationalization.
12067 * coffread.c (read_one_sym): Ditto.
12068 * dwarf2read.c (dwarf2_attach_fields_to_type): Ditto.
12069 * h8300-tdep.c (H8300_extract_return_value): Ditto.
12070 * inflow.c (new_tty): Ditto.
12071 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Ditto.
12072 * m32c-tdep.c (m32c_return_value): Ditto.
12073 * mep-tdep.c (mep_store_return_value): Ditto.
12074 * score-tdep.c (score7_fetch_insn): Ditto.
12075 * ser-mingw.c (pipe_windows_open): Ditto.
12076 * sh64-tdep.c (sh64_extract_return_value): Ditto.
12077 * spu-tdep.c (spu_register_type): Ditto.
12078 * tracepoint.c (trace_find_command): Ditto.
12079 * valarith.c (value_pos): Ditto.
12080
9a153e0b
JB
120812011-01-10 Joel Brobecker <brobecker@adacore.com>
12082
12083 * ada-valprint.c (printstr): Minor comment reformatting.
12084
35ecd2d6
MS
120852011-01-08 Michael Snyder <msnyder@vmware.com>
12086
12087 * m32r-rom.c (m32r_upload_command): Fix up ARI warnings for _
12088 markup.
12089
1777feb0
MS
120902011-01-08 Michael Snyder <msnyder@vmware.com>
12091
12092 * h8300-tdep.c: Comment cleanup, mostly periods and spaces.
12093 * hppa-hpux-tdep.c: Ditto.
12094 * hppa-linux-nat.c: Ditto.
12095 * hppa-linux-tdep.c: Ditto.
12096 * hppanbsd-tdep.c: Ditto.
12097 * hppa-tdep.c: Ditto.
12098 * hppa-tdep.h: Ditto.
12099 * hpux-thread.c: Ditto.
12100 * i386-cygwin-tdep.c: Ditto.
12101 * i386-darwin-nat.c: Ditto.
12102 * i386gnu-nat.c: Ditto.
12103 * i386-linux-nat.c: Ditto.
12104 * i386-linux-tdep.c: Ditto.
12105 * i386-nat.c: Ditto.
12106 * i386-nat.h: Ditto.
12107 * i386nbsd-tdep.c: Ditto.
12108 * i386-sol2-nat.c: Ditto.
12109 * i386-stub.c: Ditto.
12110 * i386-tdep.c: Ditto.
12111 * i386-tdep.h: Ditto.
12112 * i387-tdep.c: Ditto.
12113 * ia64-linux-nat.c: Ditto.
12114 * ia64-linux-tdep.c: Ditto.
12115 * ia64-tdep.c: Ditto.
12116 * infcall.c: Ditto.
12117 * infcall.h: Ditto.
12118 * infcmd.c: Ditto.
12119 * inferior.c: Ditto.
12120 * inferior.h: Ditto.
12121 * infloop.c: Ditto.
12122 * inflow.c: Ditto.
12123 * infrun.c: Ditto.
12124 * interps.c: Ditto.
12125 * interps.h: Ditto.
12126 * iq2000-tdep.c: Ditto.
12127 * irix5-nat.c: Ditto.
12128 * jit.c: Ditto.
12129 * jit.h: Ditto.
12130 * jv-exp.y: Ditto.
12131 * jv-lang.c: Ditto.
12132 * jv-lang.h: Ditto.
12133 * jv-typeprint.c: Ditto.
12134 * jv-valprint.c: Ditto.
12135 * language.c: Ditto.
12136 * language.h: Ditto.
12137 * linespec.c: Ditto.
12138 * linux-fork.c: Ditto.
12139 * linux-nat.c: Ditto.
12140 * linux-thread-db.c: Ditto.
12141 * lm32-tdep.c: Ditto.
12142
025bb325
MS
121432011-01-08 Michael Snyder <msnyder@vmware.com>
12144
12145 * m2-exp.y: Comment cleanup, mostly periods and spaces.
12146 * m2-lang.c: Ditto.
12147 * m2-typeprint.c: Ditto.
12148 * m2-valprint.c: Ditto.
12149 * m32c-tdep.c: Ditto.
12150 * m32r-linux-nat.c: Ditto.
12151 * m32r-rom.c: Ditto.
12152 * m32r-tdep.c: Ditto.
12153 * m32r-tdep.h: Ditto.
12154 * m68hc11-tdep.c: Ditto.
12155 * m58klinux-nat.c: Ditto.
12156 * m68k-tdep.c: Ditto.
12157 * m88k-tdep.c: Ditto.
12158 * m88k-tdep.h: Ditto.
12159 * machoread.c: Ditto.
12160 * macrocmd.c: Ditto.
12161 * macroexp.c: Ditto.
12162 * macrotab.c: Ditto.
12163 * main.c: Ditto.
12164 * maint.c: Ditto.
12165 * mdebugread.c: Ditto.
12166 * mdebugread.h: Ditto.
12167 * memattr.c: Ditto.
12168 * memattr.h: Ditto.
12169 * memory-map.h: Ditto.
12170 * mep-tdep.c: Ditto.
12171 * microblaze-rom.c: Ditto.
12172 * microblaze-tdep.c: Ditto.
12173 * minsyms.c: Ditto.
12174 * mips-irix-tdep.c: Ditto.
12175 * mips-linux-nat.c: Ditto.
12176 * mips-linux-tdep.c: Ditto.
12177 * mips-linux-tdep.h: Ditto.
12178 * mipsnbsd-nat.c: Ditto.
12179 * mipsnbsd-tdep.c: Ditto.
12180 * mipsread.c: Ditto.
12181 * mips-tdep.c: Ditto.
12182 * mips-tdep.h: Ditto.
12183 * mn10300-linux-tdep.c: Ditto.
12184 * mn10300-tdep.c: Ditto.
12185 * mn10300-tdep.h: Ditto.
12186 * monitor.c: Ditto.
12187 * monitor.h: Ditto.
12188 * moxie-tdep.c: Ditto.
12189 * moxie-tdep.h: Ditto.
12190 * mt-tdep.c: Ditto.
12191
1642781b
MF
121922011-01-08 Mike Frysinger <vapier@gentoo.org>
12193
12194 * bfin-tdep.h (BFIN_A0_DOT_W_REGNUM): Fix typo in name.
12195
394b0adb
JB
121962011-01-08 Robert Millan <rmh@gnu.org>
12197
12198 * fbsd-nat.c (fbsd_find_memory_regions): Fix typo.
12199
b670013c
MS
122002011-01-07 Michael Snyder <msnyder@vmware.com>
12201
12202 * charset.c (_initialize_charset): Fix typo in string.
12203
a743e542
MS
122042011-01-07 Michael Snyder <msnyder@vmware.com>
12205
12206 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Mark up error message
12207 for i18n.
f2eb0bc8 12208 * tui/tui-layout.c (tui_set_layout_for_display_command):
a743e542
MS
12209 Split line so that operator goes to beginning of line.
12210 * tui/tui-winsource.c (tui_horizontal_source_scroll): Move
12211 assignment out of if statement.
12212
0963b4bd
MS
122132011-01-07 Michael Snyder <msnyder@vmware.com>
12214
12215 * ada-lang.c: Comment cleanup, mostly periods and spaces.
12216 * ada-lang.h: Ditto.
12217 * ada-tasks.c: Ditto.
12218 * ada-valprint.c: Ditto.
12219 * aix-threads.c: Ditto.
12220 * alpha-linux-nat.c: Ditto.
12221 * alpha-linux-tdep.c: Ditto.
12222 * alpha-mdebug-tdep.c: Ditto.
12223 * alpha-nat.c: Ditto.
12224 * alpha-osf1-tdep.c: Ditto.
12225 * alpha-tdep.c: Ditto.
12226 * alphabsd-nat.c: Ditto.
12227 * alphabsd-tdep.c: Ditto.
12228 * amd64-darwin-tdep.c: Ditto.
12229 * amd64-linux-nat.c: Ditto.
12230 * amd64-linux-tdep.c: Ditto.
12231 * amd64-sol2-tdep.c: Ditto.
12232 * amd64-tdep.c: Ditto.
12233 * amd64-fbsd-tdep.c: Ditto.
12234 * amd64-nbsd-tdep.c: Ditto.
12235 * amd64-obsd-tdep.c: Ditto.
12236 * amd64-linux-nat.c: Ditto.
12237 * amd64-linux-tdep.c: Ditto.
12238 * arm-tdep.c: Ditto.
12239 * arm-tdep.h: Ditto.
12240 * armnbsd-nat.c: Ditto.
12241 * avr-tdep.c: Ditto.
12242 * bfin-tdep.c: Ditto.
12243 * bsd-kvm.c: Ditto.
12244 * c-typeprintc: Ditto.
12245 * c-valprint.c: Ditto.
12246 * coff-pe-read.h: Ditto.
12247 * coffreead.c: Ditto.
12248 * cris-tdep.c: Ditto.
12249 * d-lang.c: Ditto.
12250 * darwin-nat-info.c: Ditto.
12251 * darwin-nat.c: Ditto.
12252 * dbug-rom.c: Ditto.
12253 * dbxread.c: Ditto.
12254 * dcache.c: Ditto.
12255 * dcache.h: Ditto.
12256 * dec-thread.c: Ditto.
12257 * defs.h: Ditto.
12258 * demangle.c: Ditto.
12259 * dicos-tdep.c: Ditto.
12260 * dictionary.c: Ditto.
12261 * dictionary.h: Ditto.
12262 * dink32-rom.c: Ditto.
12263 * disasm.c: Ditto.
12264 * doublest.c: Ditto.
12265 * dsrec.c: Ditto.
12266 * dummy-frame.c: Ditto.
12267 * dwarf2-frame.c: Ditto.
12268 * dwarf2expr.c: Ditto.
12269 * dwarf2loc.c: Ditto.
12270 * dwarf2read.c: Ditto.
12271 * elfread.c: Ditto.
12272 * environ.c: Ditto.
12273 * eval.c: Ditto.
12274 * event-top.h: Ditto.
12275 * exceptions.c: Ditto.
12276 * exceptions.h: Ditto.
12277 * exec.c: Ditto.
12278 * expprint.c: Ditto.
12279 * expression.h: Ditto.
12280 * f-exp.y: Ditto.
12281 * f-lang.c: Ditto.
12282 * f-lang.h: Ditto.
12283 * f-typeprint.c: Ditto.
12284 * f-valprint.c: Ditto.
12285 * fbsd-nat.c: Ditto.
12286 * findvar.c: Ditto.
12287 * fork-child.c: Ditto.
12288 * frame.c: Ditto.
12289 * frame.h: Ditto.
12290 * frv-linux-tdep.c: Ditto.
12291 * frv-tdep.c: Ditto.
12292 * gcore.c: Ditto.
12293 * gdb-stabs.h: Ditto.
12294 * gdb_assert.h: Ditto.
12295 * gdb_string.h: Ditto.
12296 * gdb_thread_db.h: Ditto.
12297 * gdb_wait.h: Ditto.
12298 * gdbarch.sh: Ditto.
12299 * gdbcore.h: Ditto.
12300 * gdbthread.h: Ditto.
12301 * gdbtypes.c: Ditto.
12302 * gdbtypes.h: Ditto.
12303 * gnu-nat.c: Ditto.
12304 * gnu-nat.h: Ditto.
12305 * gnu-v2-abi.c: Ditto.
12306 * gnu-v3-abi.c: Ditto.
12307 * go32-nat.c: Ditto.
12308 * gdbarch.c: Regenerate.
12309 * gdbarch.h: Regenerate.
12310
ac74f770
MS
123112011-01-07 Michael Snyder <msnyder@vmware.com>
12312
12313 * ax-gdb.c: Adjust some long output strings.
12314 * breakpoint.c: Ditto.
12315 * charset.c: Ditto.
12316 * cp-abi.c: Ditto.
12317 * infcall.c: Ditto.
12318 * infrun.c: Ditto.
12319 * linux-nat.c: Ditto.
12320 * solib-pa64.c: Ditto.
12321 * solib-som.c: Ditto.
12322
d8e22779
TT
123232011-01-06 Tom Tromey <tromey@redhat.com>
12324
12325 PR python/12367:
12326 * NEWS: Add item.
12327 * python/python.c (GdbMethods): Add "newest_frame" method.
12328 * python/python-internal.h (gdbpy_newest_frame): Declare.
12329 * python/py-frame.c (gdbpy_newest_frame): New function.
12330
a255712f
PP
123312010-01-06 Paul Pluzhnikov <ppluzhnikov@google.com>
12332
12333 * jit.h (struct jit_code_entry): use ULONGEST for symfile_size.
12334 * jit.c (jit_debug): New variable.
12335 (show_jit_debug): New function.
12336 (struct target_buffer): Use ULONGEST.
12337 (bfd_open_from_target_memory): Likewise.
12338 (jit_register_code, jit_inferior_init): Add debug output.
12339 (_initialize_jit): Register "debug jit" command.
12340
ccfc3d6e
TT
123412011-01-06 Tom Tromey <tromey@redhat.com>
12342
12343 * frame.h (enum frame_type) <INLINE_FRAME>: Fix comment.
12344 * python/py-frame.c (gdbpy_initialize_frames): Add INLINE_FRAME
12345 and ARCH_FRAME.
12346
57126e4a
TT
123472011-01-06 Tom Tromey <tromey@redhat.com>
12348
12349 * python/py-frame.c (frapy_block): Use get_frame_block.
12350
16dfc9ce
JB
123512011-01-06 Joel Brobecker <brobecker@adacore.com>
12352
12353 Do not stop on SIGPRIO signals by default
12354 * infrun.c (_initialize_infrun): Unset signal_stop and
12355 signal_print for TARGET_SIGNAL_PRIO.
12356
b1ce2347
JB
123572011-01-06 Joel Brobecker <brobecker@adacore.com>
12358
12359 * ada-tasks.c: Fix style violation in comment.
12360
8f7e195f
JB
123612011-01-06 Joel Brobecker <brobecker@adacore.com>
12362
12363 * linespec.c (decode_compound, find_method): Remove trailing \n
12364 at end of error string.
12365 * solib-irix.c (irix_current_sos): Likewise.
12366 * varobj.c (uninstall_variable): Likewise.
12367
e9bdf92c
JB
123682011-01-06 Joel Brobecker <brobecker@adacore.com>
12369
12370 * copyright.py: New script.
12371 * copyright.sh (byhand): Add *.ads, *.adb, *.gpr and *.inc.
12372 Launch emacs without exec'ing. Call copyright.py afterwards.
12373
3e43a32a
MS
123742011-01-05 Michael Snyder <msnyder@vmware.com>
12375
12376 * addrmap.c: Shorten lines of >= 80 columns.
12377 * arch-utils.c: Ditto.
12378 * arch-utils.h: Ditto.
12379 * ax-gdb.c: Ditto.
12380 * ax-general.c: Ditto.
12381 * bcache.c: Ditto.
12382 * blockframe.c: Ditto.
12383 * breakpoint.c: Ditto.
12384 * buildsym.c: Ditto.
12385 * c-lang.c: Ditto.
12386 * c-typeprint.c: Ditto.
12387 * charset.c: Ditto.
12388 * coffread.c: Ditto.
12389 * command.h: Ditto.
12390 * corelow.c: Ditto.
12391 * cp-abi.c: Ditto.
12392 * cp-namespace.c: Ditto.
12393 * cp-support.c: Ditto.
12394 * dbug-rom.c: Ditto.
12395 * dbxread.c: Ditto.
12396 * defs.h: Ditto.
12397 * dfp.c: Ditto.
12398 * dfp.h: Ditto.
12399 * dictionary.c: Ditto.
12400 * disasm.c: Ditto.
12401 * doublest.c: Ditto.
12402 * dwarf2-frame.c: Ditto.
12403 * dwarf2expr.c: Ditto.
12404 * dwarf2loc.c: Ditto.
12405 * dwarf2read.c: Ditto.
12406 * elfread.c: Ditto.
12407 * eval.c: Ditto.
12408 * event-loop.c: Ditto.
12409 * event-loop.h: Ditto.
12410 * exceptions.h: Ditto.
12411 * exec.c: Ditto.
12412 * expprint.c: Ditto.
12413 * expression.h: Ditto.
12414 * f-lang.c: Ditto.
12415 * f-valprint.c: Ditto.
12416 * findcmd.c: Ditto.
12417 * frame-base.c: Ditto.
12418 * frame-unwind.c: Ditto.
12419 * frame-unwind.h: Ditto.
12420 * frame.c: Ditto.
12421 * frame.h: Ditto.
12422 * gcore.c: Ditto.
12423 * gdb-stabs.h: Ditto.
12424 * gdb_assert.h: Ditto.
12425 * gdb_dirent.h: Ditto.
12426 * gdb_obstack.h: Ditto.
12427 * gdbcore.h: Ditto.
12428 * gdbtypes.c: Ditto.
12429 * gdbtypes.h: Ditto.
12430 * inf-ttrace.c: Ditto.
12431 * infcall.c: Ditto.
12432 * infcmd.c: Ditto.
12433 * inflow.c: Ditto.
12434 * infrun.c: Ditto.
12435 * inline-frame.h: Ditto.
12436 * language.c: Ditto.
12437 * language.h: Ditto.
12438 * libunwind-frame.c: Ditto.
12439 * libunwind-frame.h: Ditto.
12440 * linespec.c: Ditto.
12441 * linux-nat.c: Ditto.
12442 * linux-nat.h: Ditto.
12443 * linux-thread-db.c: Ditto.
12444 * machoread.c: Ditto.
12445 * macroexp.c: Ditto.
12446 * macrotab.c: Ditto.
12447 * main.c: Ditto.
12448 * maint.c: Ditto.
12449 * mdebugread.c: Ditto.
12450 * memattr.c: Ditto.
12451 * minsyms.c: Ditto.
12452 * monitor.c: Ditto.
12453 * monitor.h: Ditto.
12454 * objfiles.c: Ditto.
12455 * objfiles.h: Ditto.
12456 * osabi.c: Ditto.
12457 * p-typeprint.c: Ditto.
12458 * p-valprint.c: Ditto.
12459 * parse.c: Ditto.
12460 * printcmd.c: Ditto.
12461 * proc-events.c: Ditto.
12462 * procfs.c: Ditto.
12463 * progspace.c: Ditto.
12464 * progspace.h: Ditto.
12465 * psympriv.h: Ditto.
12466 * psymtab.c: Ditto.
12467 * record.c: Ditto.
12468 * regcache.c: Ditto.
12469 * regcache.h: Ditto.
12470 * remote-fileio.c: Ditto.
12471 * remote.c: Ditto.
12472 * ser-mingw.c: Ditto.
12473 * ser-tcp.c: Ditto.
12474 * ser-unix.c: Ditto.
12475 * serial.c: Ditto.
12476 * serial.h: Ditto.
12477 * solib-frv.c: Ditto.
12478 * solib-irix.c: Ditto.
12479 * solib-osf.c: Ditto.
12480 * solib-pa64.c: Ditto.
12481 * solib-som.c: Ditto.
12482 * solib-sunos.c: Ditto.
12483 * solib-svr4.c: Ditto.
12484 * solib-target.c: Ditto.
12485 * solib.c: Ditto.
12486 * somread.c: Ditto.
12487 * source.c: Ditto.
12488 * stabsread.c: Ditto.
12489 * stabsread.c: Ditto.
12490 * stack.c: Ditto.
12491 * stack.h: Ditto.
12492 * symfile-mem.c: Ditto.
12493 * symfile.c: Ditto.
12494 * symfile.h: Ditto.
12495 * symmisc.c: Ditto.
12496 * symtab.c: Ditto.
12497 * symtab.h: Ditto.
12498 * target-descriptions.c: Ditto.
12499 * target-memory.c: Ditto.
12500 * target.c: Ditto.
12501 * target.h: Ditto.
12502 * terminal.h: Ditto.
12503 * thread.c: Ditto.
12504 * top.c: Ditto.
12505 * tracepoint.c: Ditto.
12506 * tracepoint.h: Ditto.
12507 * ui-file.c: Ditto.
12508 * ui-file.h: Ditto.
12509 * ui-out.h: Ditto.
12510 * user-regs.c: Ditto.
12511 * user-regs.h: Ditto.
12512 * utils.c: Ditto.
12513 * valarith.c: Ditto.
12514 * valops.c: Ditto.
12515 * valprint.c: Ditto.
12516 * valprint.h: Ditto.
12517 * value.c: Ditto.
12518 * varobj.c: Ditto.
12519 * varobj.h: Ditto.
12520 * vec.h: Ditto.
12521 * xcoffread.c: Ditto.
12522 * xcoffsolib.c: Ditto.
12523 * xcoffsolib.h: Ditto.
12524 * xml-syscall.c: Ditto.
12525 * xml-tdesc.c: Ditto.
12526
9a2b4c1b
MS
125272011-01-05 Michael Snyder <msnyder@vmware.com>
12528
12529 * cli/cli-cmds.c: Shorten lines of >= 80 columns.
12530 * cli/cli-decode.c: Ditto.
12531 * cli/cli-dump.c: Ditto.
12532 * cli/cli-logging.c: Ditto.
12533 * cli/cli-script.c: Ditto.
12534 * cli/cli-setshow.c: Ditto.
12535 * common/signals.c: Ditto.
12536 * mi/mi-cmd-break.c: Ditto.
12537 * mi/mi-cmd-disas.c: Ditto.
12538 * mi/mi-cmd-stack.c: Ditto.
12539 * mi/mi-cmd-var.c: Ditto.
12540 * mi/mi-cmds.c: Ditto.
12541 * mi/mi-common.h: Ditto.
12542 * mi/mi-console.c: Ditto.
12543 * mi/mi-interp.c: Ditto.
12544 * mi/mi-main.c: Ditto.
12545 * osf-share/cma_attr.c: Ditto.
12546 * osf-share/cma_deb_core.h: Ditto.
12547 * osf-share/cma_debug_client.h: Ditto.
12548 * osf-share/cma_handle.h: Ditto.
12549 * osf-share/cma_mutex.h: Ditto.
12550 * osf-share/cma_stack_int.h: Ditto.
12551 * osf-share/cma_tcb_defs.h: Ditto.
12552 * python/py-auto-load.c: Ditto.
12553 * python/py-breakpoint.c: Ditto.
12554 * python/py-cmd.c: Ditto.
12555 * python/py-frame.c: Ditto.
12556 * python/py-objfile.c: Ditto.
12557 * python/py-param.c: Ditto.
12558 * python/py-progspace.c: Ditto.
12559 * python/py-symbol.c: Ditto.
12560 * python/py-value.c: Ditto.
12561 * python/python-internal.h: Ditto.
12562 * python/python.c: Ditto.
12563 * tui/tui-data.c: Ditto.
12564 * tui/tui-disasm.c: Ditto.
12565 * tui/tui-hooks.c: Ditto.
12566 * tui/tui-io.c: Ditto.
12567 * tui/tui-layout.c: Ditto.
12568 * tui/tui-regs.c: Ditto.
12569 * tui/tui-source.c: Ditto.
12570 * tui/tui-stack.c: Ditto.
12571 * tui/tui-win.c: Ditto.
12572 * tui/tui-windata.c: Ditto.
12573 * tui/tui-winsource.c: Ditto.
12574
44944448
JB
125752011-01-05 Joel Brobecker <brobecker@adacore.com>
12576
12577 * configure.ac, gdb.1: Copyright year update.
12578
ebedcab5
JK
125792011-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12580
12581 * frame.c (get_prev_frame_1) <UNWIND_INNER_ID>: New variables
12582 this_pc_in_block, morestack_msym and morestack_name. Check for
12583 "__morestack" minimal symbol there.
12584
e5cc9f32
JB
125852011-01-03 Joel Brobecker <brobecker@adacore.com>
12586
12587 * symfile.c (find_sym_fns): Add call to dont_repeat.
12588
7b6bb8da
JB
125892011-01-01 Joel Brobecker <brobecker@adacore.com>
12590
12591 Copyright year update in most files (performed by copyright.sh).
12592
71ce852c
JB
125932011-01-01 Joel Brobecker <brobecker@adacore.com>
12594
12595 * top.c (print_gdb_version): Update copyright year in version output.
0e2de366 12596
c3c1ebe8 12597For older changes see ChangeLog-2010.
c906108c
SS
12598\f
12599Local Variables:
12600mode: change-log
12601left-margin: 8
12602fill-column: 74
12603version-control: never
57da7796 12604coding: utf-8
c906108c 12605End:
This page took 1.969425 seconds and 4 git commands to generate.