2011-12-27 Mark Kettenis <kettenis@gnu.org>
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
e8ace1c0
MK
12011-12-27 Mark Kettenis <kettenis@gnu.org>
2
3 * inf-ptrace.c [PT_IO && PIOD_READ_AUXV]
4 (inf_ptrace_xfer_partial): Implement TARGET_OBJECT_AUXV.
5 (inf_ptrace_auxv_parse): New function.
6 (inf_ptrace_target): Initialize to_auxv_parse field.
7
c0431670
JB
82011-12-27 Joel Brobecker <brobecker@adacore.com>
9
10 * ada-lang.c (should_use_wild_match): New function.
11 (ada_lookup_simple_minsym): Use should_use_wild_match.
12 Minor simplification. Add comment.
13 (ada_lookup_symbol_list): Use should_use_wild_match.
14 Minor simplification.
15
41843fe8
JB
162011-12-27 Joel Brobecker <brobecker@adacore.com>
17
18 * py-finishbreakpoint.c (bpfinishpy_init): Replace call to
19 sprintf by call to xsnprintf.
20
095bcf5e
JB
212011-12-27 Joel Brobecker <brobecker@adacore.com>
22
23 * linespec.c (struct collect_minsyms) [list_mode]: New field.
24 (add_minsym): Ignore data symbols if not in list mode.
25 (search_minsyms_for_name): Set local.list_mode.
26
9c5e4386
JB
272011-12-27 Joel Brobecker <brobecker@adacore.com>
28
29 * utils.c (gdb_realpath): Add better support for Windows hosts.
30
cc72b2a2
KP
312011-12-23 Kevin Pouget <kevin.pouget@st.com>
32
33 Introduce gdb.FinishBreakpoint in Python.
34 * NEWS: Add entry for FinishBreakpoint.
35 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-finishbreakpoint.o.
36 (SUBDIR_PYTHON_SRCS): Add python/py-finishbreakpoint.c.
37 Add build rule for this file.
38 * infcmd.c (print_return_value): Split to create get_return_value.
39 (get_return_value): New function based on print_return_value. Handle
40 case where stop_registers are not set.
41 * inferior.h (get_return_value): New prototype.
42 * python/py-breakpoint.c (bppy_pending_object): Make non-static.
43 (gdbpy_breakpoint_created): Set is_py_finish_bp is necessary.
44 (struct breakpoint_object): Move to python-internal.h
45 (BPPY_REQUIRE_VALID): Likewise.
46 (BPPY_SET_REQUIRE_VALID): Likewise.
47 (gdbpy_breakpoint_created): Initialize is_finish_bp.
48 (gdbpy_should_stop): Add pre/post hooks before/after calling stop
49 method.
50 * python/python-internal.h (breakpoint_object_type): Add as extern.
51 (bppy_pending_object): Likewise.
52 (typedef struct breakpoint_object) Removed.
53 (struct breakpoint_object): Moved from py-breakpoint.c.
54 Add field is_finish_bp.
55 (BPPY_REQUIRE_VALID): Moved from py-breakpoint.c.
56 (BPPY_SET_REQUIRE_VALID): Likewise.
57 (frame_object_to_frame_info): New prototype.
58 (gdbpy_initialize_finishbreakpoints): New prototype.
59 (bpfinishpy_is_finish_bp): Likewise.
60 (bpfinishpy_pre_stop_hook): Likewise.
61 (bpfinishpy_post_stop_hook): Likewise.
62 * python/py-finishbreakpoint.c: New file.
63 * python/py-frame.c(frame_object_to_frame_info): Make non-static and
64 accept PyObject instead of frame_object.
65 (frapy_is_valid): Don't cast to frame_object.
66 (frapy_name): Likewise.
67 (frapy_type): Likewise.
68 (frapy_unwind_stop_reason): Likewise.
69 (frapy_pc): Likewise.
70 (frapy_block): Likewise.
71 (frapy_function): Likewise.
72 (frapy_older): Likewise.
73 (frapy_newer): Likewise.
74 (frapy_find_sal): Likewise.
75 (frapy_read_var): Likewise.
76 (frapy_select): Likewise.
77 * python/python.c (gdbpy_is_stopped_at_finish_bp): New noop function.
78 (_initialize_python): Add gdbpy_initialize_finishbreakpoints.
79 * python/python.h: Include breakpoint.h
80 (gdbpy_is_stopped_at_finish_bp): New prototype.
81
e848a8a5
TT
822011-12-22 Tom Tromey <tromey@redhat.com>
83
84 PR python/12533:
85 * value.h (release_value_or_incref): Declare.
86 * value.c (struct value) <released>: New field.
87 (free_all_values, release_value, value_release_to_mark): Update
88 'released'.
89 (release_value_or_incref): New function.
90 * python/py-value.c (valpy_new): Use release_value_or_incref.
91 (value_to_value_object): Likewise.
92 * varobj.c (install_new_value): Move value_incref earlier.
93
87784a47
TT
942011-12-22 Tom Tromey <tromey@redhat.com>
95
96 * value.c (struct value) <modifiable, lazy, optimized_out,
97 initialized, stack>: Now bitfields. Move to top.
98 <reference_count>: Move earlier.
99
b19686e0
TT
1002011-12-21 Tom Tromey <tromey@redhat.com>
101
102 * minsyms.h: Rearrange. Document header and all functions.
103 * minsyms.c: Move some comments to minsyms.h.
104
c35384fb
TT
1052011-12-21 Tom Tromey <tromey@redhat.com>
106
107 * symtab.h: Include minsyms.h.
108 (prim_record_minimal_symbol, prim_record_minimal_symbol_full)
109 (prim_record_minimal_symbol_and_info, msymbol_hash_iw)
110 (msymbol_hash, SYMBOL_HASH_NEXT, msymbol_objfile)
111 (lookup_minimal_symbol, lookup_minimal_symbol_text)
112 (lookup_minimal_symbol_solib_trampoline)
113 (lookup_minimal_symbol_by_pc_name, lookup_minimal_symbol_by_pc)
114 (iterate_over_minimal_symbols, lookup_minimal_symbol_and_objfile)
115 (lookup_minimal_symbol_by_pc_section)
116 (lookup_solib_trampoline_symbol_by_pc)
117 (init_minimal_symbol_collection)
118 (make_cleanup_discard_minimal_symbols, install_minimal_symbols)
119 (msymbols_sort): Move to minsyms.h.
120 * objfiles.c (terminate_minimal_symbol_table): Move to minsyms.c.
121 * minsyms.c (terminate_minimal_symbol_table): Move from
122 objfiles.c.
123 * minsyms.h: New file.
124
a5bd37c3
TT
1252011-12-21 Tom Tromey <tromey@redhat.com>
126
127 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence): Use
128 ALL_OBJFILE_MSYMBOLS.
129 (hppa_hpux_find_dummy_bpaddr): Likewise.
130 * jit.c (jit_object_close_impl): Use
131 terminate_minimal_symbol_table.
132
0af1e9a5
TT
1332011-12-21 Tom Tromey <tromey@redhat.com>
134
135 * elfread.c (elf_symtab_read): Put the filename in the filename
136 bcache.
137
04aba065
TT
1382011-12-21 Tom Tromey <tromey@redhat.com>
139
140 * symtab.h (struct minimal_symbol) <filename>: Now const.
141
7052e42c
UW
1422011-12-21 Ulrich Weigand <ulrich.weigand@linaro.org>
143
144 PR tdep/12797
145 * arm-tdep.c (arm_return_value): Handle complex types.
146
f16c4e8b
AS
1472011-12-21 Andreas Schwab <schwab@linux-m68k.org>
148
149 * ppc-linux-nat.c (create_watchpoint_request): Only use ranged
150 watchpoints when supported.
151
4ac39b97
JK
1522011-12-21 Jan Kratochvil <jan.kratochvil@redhat.com>
153
154 * symfile.c (objfilep): New typedef and new DEF_VEC_P.
155 (reread_symbols): Remove variable reread_one, new variables
156 new_objfiles, all_cleanups and ix. Use new_objfiles instead of
157 reread_one. Push changed objfiles to new_objfiles, call
158 observer_notify_new_objfile for them later.
159
bb2f58dc
JB
1602011-12-21 Joel Brobecker <brobecker@adacore.com>
161
162 * psymtab.c (expand_symtabs_matching_via_partial): Match
163 the partial symbols using their SYMBOL_SEARCH_NAME.
164 * symfile.h (struct quick_symbol_functions): Udate the
165 documentation of expand_symtabs_matching.
166 * dwarf2read.c (write_psymbols): Use SYMBOL_SEARCH_NAME instead
167 of SYMBOL_NATURAL_NAME in index entry.
168
53907c91
JB
1692011-12-21 Joel Brobecker <brobecker@adacore.com>
170
171 * linespec.c (locate_first_half): Add handling of Ada operators
172 when the current language is Ada.
173
50f8ea94
JB
1742011-12-21 Joel Brobecker <brobecker@adacore.com>
175
176 * objfiles.c (insert_section_p): Do not detect overlay sections
177 if overlay debugging is off.
178
9ac7f98e
JB
1792011-12-21 Joel Brobecker <brobecker@adacore.com>
180
181 * ada-lang.c (is_name_suffix): Add handling of "TKB" suffixes.
182 Update function documentation.
183 * dictionary.c (dict_hash): Ignore "TKB" suffixes in hash
184 computation.
185
6e012a6c
PA
1862011-12-20 Pedro Alves <alves.ped@gmail.com>
187 Jan Kratochvil <jan.kratochvil@redhat.com>
188
189 * linux-nat.c (add_lwp): Don't call linux_nat_new_thread on the
190 first LWP.
191 * amd64-linux-nat.c (update_debug_registers_callback): Instantiate
192 `lwp->arch_private' if NULL.
193 (amd64_linux_prepare_to_resume): Do nothing if `lwp->arch_private'
194 is NULL.
195 * i386-linux-nat.c (update_debug_registers_callback): Instantiate
196 `lwp->arch_private' if NULL.
197 (i386_linux_prepare_to_resume): Do nothing if `lwp->arch_private'
198 is NULL.
199
87c31f06
DE
2002011-12-19 Doug Evans <dje@google.com>
201
202 * python/py-auto-load.c (info_auto_load_scripts): Pass address of
203 scripts vector to collect_matching_scripts.
204 (collect_matching_scripts): Update.
205
f6eeced0
JK
2062011-12-19 Jan Kratochvil <jan.kratochvil@redhat.com>
207
208 * symfile.c (reread_symbols): Move free_objfile_separate_debug,
209 preserve_values, sym_finish and clear_objfile_data calls before BFD
210 close. Move free_objfile_separate_debug as the very first call. New
211 comment on the ordering.
212
8de7d199
UW
2132011-12-19 Ulrich Weigand <uweigand@de.ibm.com>
214
215 * s390-tdep.c (s390_push_dummy_call): Set addressing mode bit
216 in return PSWA.
217
984ac464
TT
2182011-12-19 Tom Tromey <tromey@redhat.com>
219
220 * symtab.h (add_minsym_to_hash_table): Don't declare.
221 * minsyms.c (add_minsym_to_hash_table): Now static.
222
828cfa8d
JB
2232011-12-19 Joel Brobecker <brobecker@adacore.com>
224
225 * elfread.c (elf_symtab_read): Ignore undefined symbols with
226 nonzero addresses if they do not correspond to a .plt section
227 when one is available in the objfile.
228
dd274a34
AS
2292011-12-17 Andreas Schwab <schwab@linux-m68k.org>
230
231 * cp-name-parser.y (cp_merge_demangle_parse_infos): Don't use
232 obstack_empty_p.
233
a3e3e961
MK
2342011-12-17 Mark Kettenis <kettenis@gnu.org>
235
236 * amd64obsd-tdep.c (amd64obsd_init_abi): Don't set
237 regset_from_core_section.
238 (amd64obsd_core_init_abi): New function that sets
239 regset_from_core_section.
240 (_initialize_amd64obsd_tdep): Use amd64obsd_core_init_abi for
241 traditional core dumps.
242
0dcddd84
MK
2432011-12-17 Mark Kettenis <kettenis@gnu.org>
244
245 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Detect new signal
246 trampoline to be introduced in OpenBSD 5.0.
247
3e290cb1
JK
2482011-12-17 Jan Kratochvil <jan.kratochvil@redhat.com>
249
250 Fix build regression from the PR threads/10729 fix.
251 * s390-nat.c (s390_insert_watchpoint, s390_remove_watchpoint): Use LP,
252 not LP->PTID.
253
56934ab1
AS
2542011-12-16 Andrey Smirnov <andrew.smirnov@gmail.com>
255
256 * mi/mi-main.c (mi_cmd_list_thread_groups): Rename `optind' and
257 `optarg' to `oind' and `oarg', respectively(-Wshadow).
258 (mi_cmd_data_read_memory): Ditto.
259 (mi_cmd_data_read_memory_bytes): Ditto.
260 (mi_cmd_data_write_memory): Ditto.
261
324478ca
AS
2622011-12-16 Andrey Smirnov <andrew.smirnov@gmail.com>
263
264 * mi/mi-getopt.c (mi_getopt): Rename `optind' and `optarg' to
265 `oind' and `oarg', respectively(-Wshadow).
266 (mi_valid_noargs): Ditto.
267
54dc8297
AS
2682011-12-16 Andrey Smirnov <andrew.smirnov@gmail.com>
269
270 * mi/mi-cmd-var.c (print_varobj): Rename `optind' and `optarg' to
271 `oind' and `oarg', respectively(-Wshadow).
272
00629212
AS
2732011-12-16 Andrey Smirnov <andrew.smirnov@gmail.com>
274
275 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Rename `optind' and
276 `optarg' to `oind' and `oarg', respectively(-Wshadow).
277 (mi_cmd_target_file_put): Ditto.
278 (mi_cmd_target_file_delete): Ditto.
279
7082409d
AS
2802011-12-16 Andrey Smirnov <andrew.smirnov@gmail.com>
281
282 * mi/mi-cmd-env.c (mi_cmd_env_path): Rename `optind' and
283 `optarg' to `oind' and `oarg', respectively(-Wshadow).
284 (mi_cmd_env_dir): Ditto.
285
2862011-12-16 Andrey Smirnov <andrew.smirnov@gmail.com>
81493c62 287
7082409d
AS
288 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Rename `optind' and
289 `optarg' to `oind' and `oarg', respectively(-Wshadow).
81493c62 290
f8c000a2
AS
2912011-12-16 Andrey Smirnov <andrew.smirnov@gmail.com>
292
293 * mi/mi-cmd-break.c (mi_cmd_break_insert): Rename `optind' and
81493c62 294 `optparg' to `oind' and `oarg', respectively(-Wshadow).
f8c000a2
AS
295 (mi_cmd_break_watch): Ditto.
296
07fea4b4
TT
2972011-12-16 Tom Tromey <tromey@redhat.com>
298
299 * linespec.c (collect_symbols): Call maybe_add_address after
300 calling symbol_to_sal.
301 (minsym_found): Call maybe_add_address here.
302 (search_minsyms_for_name): Don't call maybe_add_address.
303
39b856a4
TT
3042011-12-16 Tom Tromey <tromey@redhat.com>
305
306 * linespec.c (struct collect_info) <objfile>: Remove field.
307 (decode_objc): Update.
308 (find_method): Update.
309 (decode_variable): Update.
310 (struct minsym_and_objfile): New.
311 (struct collect_minsyms): New.
312 (classify_mtype): New function.
313 (compare_msyms): Likewise.
314 (add_minsym): Likewise.
315 (check_minsym): Remove.
316 (search_minsyms_for_name): Sort minsyms and apply only those with
317 top priority.
318
ccbac09d
TT
3192011-12-16 Tom Tromey <tromey@redhat.com>
320
321 * cli/cli-cmds.c (filter_sals): Filter out sals with NULL symtab.
322
77cce10f
PA
3232011-12-16 Pedro Alves <pedro@codesourcery.com>
324
325 * inf-loop.c: Include top.h.
326 (inferior_event_handler): Call check_frame_language.
327 * top.c (check_frame_language_change): New, factored out from ...
328 (execute_command): ... this. Use check_frame_language_change.
329 * top.h (check_frame_language_change): Declare.
330
a961bc18
PM
3312011-12-16 asmwarrior <asmwarrior@gmail.com> (obvious fix)
332
333 * windows-nat.c (cygwin_get_dr, cygwin_get_dr7): Add missing
334 prototypes.
335
e0f9f062
DE
3362011-12-16 Doug Evans <dje@google.com>
337
338 * NEWS: Add entry for stdio gdbserver.
339
80b6e756
PM
3402011-12-16 Phil Muldoon <pmuldoon@redhat.com>
341
342 * python/python.c: Define python_excp_enums.
343 (eval_python_from_control_command): Do not call gdbpy_print_stack.
344 (python_command): Ditto.
345 (gdbpy_print_stack): Rewrite to use new enum constants.
346 (maint_set_python): Remove function.
347 (maint_show_python): Ditto.
348 (_initialize_python): Do not add "maint" commands. Add "set/show
349 python print-stack commands".
350 * NEWS: Update to reflect removal for "maint set/show
351 print-stack"
352
ef140872
DE
3532011-12-15 Doug Evans <dje@google.com>
354
355 * exceptions.c (catcher_list_size): New function.
356 (last_message): Delete.
357 (exception_messages, exception_messages_size): New static globals.
358 (throw_it): Use exception_messages array to handle nested calls.
359
b5b445a3
TT
3602011-12-15 Tom Tromey <tromey@redhat.com>
361
362 * symfile.c (symbol_file_add_with_addrs_or_offsets): Remove bad
363 do_cleanups call.
364
0b6cb71e
DE
3652011-12-14 Doug Evans <dje@google.com>
366
367 * defs.h (wait_to_die_with_timeout): Declare.
368 * utils.c: #include "gdb_wait.h".
369 (sigalrm_handler, wait_to_die_with_timeout): New functions.
370 * ser-pipe.c: Don't #include "gdb_wait.h".
371 (pipe_close): Give child a chance to die on its own after closing
372 its stdin before SIGTERM'ing it.
373
6475f2fe 3742011-12-14 Joel Brobecker <brobecker@adacore.com>
afaabefa 375 Tom Tromey <tromey@redhat.com>
6475f2fe
JB
376
377 * ada-lang.c (add_nonlocal_symbols): Initialize data to
378 all zeros. Remove setting of data.arg_sym to NULL.
379
7b50312a
PA
3802011-12-14 Pedro Alves <pedro@codesourcery.com>
381
382 PR threads/10729
383
384 * linux-nat.c (linux_nat_new_thread): Change parameter to an lwp
385 pointer.
386 (linux_nat_prepare_to_resume): New global.
387 (lwp_free): New.
388 (purge_lwp_list): Use it.
389 (add_lwp): Call linux_nat_new_thread even on the first LWP.
390 Adjust to interface change.
391 (delete_lwp): Call lwp_free instead of xfree.
392 (detach_callback, linux_nat_detach, resume_lwp, linux_nat_resume)
393 (linux_handle_syscall_trap, linux_handle_extended_wait)
394 (linux_nat_filter_event, resume_stopped_resumed_lwps): Call
395 linux_nat_prepare_to_resume before resuming.
396 (linux_stop_lwp): New.
397 (linux_nat_set_new_thread): Adjust.
398 (linux_nat_set_prepare_to_resume): New.
399 * linux-nat.h (struct arch_lwp_info): Forward declare.
400 (struct lwp_info) <arch_private>: New field.
401 (linux_stop_lwp): Declare.
402 (linux_nat_set_new_thread): Adjust.
403 (linux_nat_set_prepare_to_resume): New.
404
405 * i386-nat.c (DR_NADDR, DR_STATUS, DR_CONTROL)
406 (struct i386_debug_reg_state): Move to i386-nat.h.
407 (dr_mirror): Comment.
408 (i386_debug_reg_state): New.
409 (i386_update_inferior_debug_regs): Simplify.
410 (i386_stopped_data_address): Use the debug register state from the
411 inferior, not from the local cache.
412 * i386-nat.h (struct i386_dr_low_type): Delete reset_addr and
413 unset_status fields. New get_addr and get_control fields.
414 (DR_FIRSTADDR, DR_LASTADDR, DR_CONTROL): Moved from i386-nat.c.
415 (DR_NADDR, DR_STATUS): New.
416 (struct i386_debug_reg_state): Moved from i386-nat.c.
417
418 * amd64-linux-nat.c (struct arch_lwp_info): New.
419 (amd64_linux_dr): Delete global.
420 (amd64_linux_dr_get_addr): New.
421 (amd64_linux_dr_get_control): New.
422 (amd64_linux_dr_unset_status): Delete.
423 (amd64_linux_dr_set_addr): Reimplement.
424 (amd64_linux_dr_reset_addr): Delete.
425 (update_debug_registers_callback): New.
426 (amd64_linux_dr_set_control): Reimplement.
427 (amd64_linux_dr_set_addr): Reimplement.
428 (amd64_linux_prepare_to_resume): New.
429 (amd64_linux_new_thread): Change parameter to an lwp pointer.
430 Reimplement.
431 (_initialize_amd64_linux_nat): No longer install
432 i386_dr_low.reset_addr and i386_dr_low.unset_status. Install
433 amd64_linux_dr_get_control as i386_dr_low.get_control. Install
434 amd64_linux_dr_get_addr as i386_dr_low.get_addr. Install
435 amd64_linux_prepare_to_resume.
436 * i386-linux-nat.c (DR_FIRSTADDR, DR_LASTADDR, DR_STATUS)
437 (DR_CONTROL): Delete.
438 (struct arch_lwp_info): New.
439 (i386_linux_dr): Delete global.
440 (i386_linux_dr_set_control): Reimplement.
441 (i386_linux_dr_get_addr): New.
442 (i386_linux_dr_set_addr): Reimplement.
443 (i386_linux_dr_get_control): New.
444 (update_debug_registers_callback): New.
445 (i386_linux_dr_unset_status): Delete.
446 (i386_linux_dr_set_addr): Reimplement.
447 (i386_linux_prepare_to_resume): New.
448 (i386_linux_new_thread): Change parameter to an lwp pointer.
449 Reimplement.
450 (_initialize_i386_linux_nat): No longer install
451 i386_dr_low.reset_addr and i386_dr_low.unset_status. Install
452 i386_linux_dr_get_control as i386_dr_low.get_control. Install
453 i386_linux_dr_get_addr as i386_dr_low.get_addr. Install
454 i386_linux_prepare_to_resume.
455
456 * arm-linux-nat.c (arm_linux_new_thread): Change parameter to an
457 lwp pointer. Adjust.
458 * ia64-linux-nat.c (ia64_linux_new_thread): Likewise.
459 * mips-linux-nat.c (mips_linux_new_thread): Likewise.
460 * ppc-linux-nat.c (ppc_linux_new_thread): Likewise.
461 * s390-nat.c (s390_fix_watch_points): Likewise.
462
463 * i386-darwin-nat.c (DR_FIRSTADDR, DR_LASTADDR, DR_STATUS)
464 (DR_CONTROL): Delete.
465 (i386_darwin_dr_reset_addr): Delete.
466 (i386_darwin_dr_get_addr): New.
467 (i386_darwin_dr_get_control): New.
468 * go32-nat.c
469 (go32_get_dr7, go32_get_dr): New.
470 (init_go32_ops): No longer install i386_dr_low.reset_addr.
471 Install go32_get_dr7 as i386_dr_low.get_control. Install
472 go32_get_dr as i386_dr_low.get_addr.
473 * i386bsd-nat.c (i386bsd_dr_get): New.
474 (i386bsd_dr_reset_addr): Delete.
475 (i386bsd_dr_get_addr): New.
476 (i386bsd_dr_get_status): Use i386bsd_dr_get.
477 (i386bsd_dr_get_control): New.
478 * i386bsd-nat.h (i386bsd_dr_reset_addr): Delete.
479 (i386bsd_dr_get_addr): New.
480 (i386bsd_dr_get_control): New.
481 * i386fbsd-nat.c (_initialize_i386fbsd_nat): No longer install
482 i386_dr_low.reset_addr and i386_dr_low.unset_status. Install
483 i386bsd_dr_get_control as i386_dr_low.get_control. Install
484 i386bsd_dr_get_addr as i386_dr_low.get_addr.
485 * windows-nat.c (init_windows_ops): No longer install
486 i386_dr_low.reset_addr and i386_dr_low.unset_status. Install
487 cygwin_get_dr7 as i386_dr_low.get_control. Install cygwin_get_dr
488 as i386_dr_low.get_addr.
489 (cygwin_get_dr): New.
490 (cygwin_get_dr7): New.
491
dd110abf
PA
4922011-12-14 Pedro Alves <pedro@codesourcery.com>
493
494 * ia64-tdep.c (ia64_memory_remove_breakpoint): Use
495 target_write_raw_memory.
496 * m32r-tdep.c (m32r_memory_remove_breakpoint): Use
497 target_write_raw_memory.
498 * microblaze-linux-tdep.c
499 (microblaze_linux_memory_remove_breakpoint): Use
500 target_write_raw_memory.
501 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Use
502 target_write_raw_memory.
503
ad32032e
JB
5042011-12-14 Joel Brobecker <brobecker@adacore.com>
505
506 * linespec.c (decode_line_internal): Make static.
507
d14c4eb7
YQ
5082011-12-14 Yao Qi <yao@codesourcery.com>
509
510 * breakpoint.c (create_breakpoint): Set canonical.addr_string
511 for static tracepoint.
512
25564b66 5132011-12-13 Joel Brobecker <brobecker@adacore.com>
514
515 GDB 7.4 branch created (branch timestamp: 2011-12-13 13:00 UTC)
516 * version.in: Bump version to 7.4.50.20111213-cvs.
517
8837a20f
JB
5182011-12-13 Joel Brobecker <brobecker@adacore.com>
519
520 * NEWS: Create a new section for the next release branch.
521 Rename the section of the current branch, now that it has
522 been cut.
523
7dda8cff
JB
5242011-12-11 Joel Brobecker <brobecker@adacore.com>
525
526 * ada-lang.c (ada_exception_support_info_sniffer): Improve
527 error message.
528
3eecfa55
JB
5292011-12-11 Joel Brobecker <brobecker@adacore.com>
530
531 * ada-lang.c (struct ada_inferior_data) [exception_info]:
532 New field.
533 (exception_info): Delete.
534 (ada_exception_support_info_sniffer): Get exception_support_info
535 data from our per-inferior data. Adjust code accordingly.
536 (ada_unhandled_exception_name_addr_from_raise): Likewise.
537 (ada_exception_name_addr_1, ada_exception_sym_name): Ditto.
538 (ada_executable_changed_observer): Delete.
539 (_initialize_ada_language): Remove call to
540 observer_attach_executable_changed.
541
a6af7abe
JB
5422011-12-11 Joel Brobecker <brobecker@adacore.com>
543
544 * ada-lang.c (ada_has_this_exception_support): Raise an error
545 if we could find the Ada exception hook in the Ada runtime,
546 but no debugging info for that hook.
547
f17011e0
JB
5482011-12-11 Joel Brobecker <brobecker@adacore.com>
549
550 * ada-lang.c (ada_has_this_exception_support): New function,
551 extracted out of ada_exception_sal and ada_exception_sal.
552 (ada_exception_support_info_sniffer): Simplify by using
553 ada_has_this_exception_support.
554 (ada_exception_sal): Replace unnecessary checks by assertions.
555 Minor simplifications.
556
d3fbdd86
AS
5572011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
558
559 * breakpoint.c (update_global_location_list): Remove nested
560 definition of `b'(-Wshadow).
561
eacd795a
AS
5622011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
563
564 * breakpoint.c (insert_breakpoint_locations): Rename `error' to
565 `error_flag'(-Wshadow).
566
ad13d8df
AS
5672011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
568
569 * bfd-target.c (target_bfd_reopen): Rename `bfd' to
570 `abfd'(-Wshadow).
571
917793af
AS
5722011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
573
574 * annotate.c (annotate_array_section_begin): Rename `index' to
575 `idx'(-Wshadow).
576
d48ebb5b
AS
5772011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
578
579 * amd64-tdep.c (amd64_get_unused_input_int_reg): Rename `index' to
580 `idx'(-Wshadow).
581
9ed936ec
AS
5822011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
583
584 * amd64-linux-tdep.c (amd64_canonicalize_syscall): Rename
585 `syscall' to `syscall_number'(-Wshadow).
586
a35ddb44
AS
5872011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
588
589 * ada-lang.c (remove_extra_symbols): Rename `remove' to
590 `remove_p'(-Wshadow).
591
e5e61bd7
AS
5922011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
593
594 * ada-exp.y (write_var_or_type): Rename nested `renaming' to
595 `ren_sym'(-Wshadow).
596
d200ab1e
DE
5972011-12-10 Doug Evans <dje@google.com>
598
b0df02fd
DE
599 * dwarf2read.c (dwarf2_per_cu_data): Rename debug_type_section to
600 debug_types_section. All uses updated.
601 (partial_read_comp_unit_head): Rename parameter is_debug_type_section
602 to is_debug_types_section.
603
d200ab1e
DE
604 * python/py-auto-load.c (source_section_scripts): Call xfree
605 instead of free.
606
4511b1ba
YQ
6072011-12-10 Hui Zhu <teawater@gmail.com>
608 Yao Qi <yao@codesourcery.com>
609
610 * tracepoint.c (start_tracing): Clear `inserted' flag.
611
df5a4bd3
HZ
6122011-12-10 Hui Zhu <teawater@gmail.com>
613
614 * tracepoint.c (create_tsv_from_upload): Change sprintf to xstrprintf.
615
1afeeb75
AS
6162011-12-09 Andrey Smirnov <andrew.smirnov@gmail.com>
617
618 * breakpoint.c (bp_loc_is_permanent): Rename `brk' to
619 `bpoint'(-Wshadow).
620
80e1d417
AS
6212011-12-09 Andrey Smirnov <andrew.smirnov@gmail.com>
622
623 * breakpoint.c (update_static_tracepoint): Rename nested `sal' and
624 `marker' variables to `sal2' and `tpmarker' respectively
625 (-Wshadow).
626
04ca3c22
AP
6272011-12-09 Andrew Pinski <apinski@cavium.com>
628
629 * linespec.c (hash_address_entry): Use iterative_hash_object on each
630 field rather than the struct itself.
631
8a2c437b
TT
6322011-12-09 Tom Tromey <tromey@redhat.com>
633
634 * breakpoint.c (compare_breakpoints): New function.
635 (clear_command): Remove duplicate breakpoints. Properly clean
636 up.
637
280711e7
MR
6382011-12-08 Maciej W. Rozycki <macro@mips.com>
639 Maciej W. Rozycki <macro@codesourcery.com>
640
641 * mips-tdep.c (mips_skip_mips16_trampoline_code): Sign-extend
642 address chunks retrieved from decoded lui/addiu pairs.
643
4c2051c6
MR
6442011-12-08 Maciej W. Rozycki <macro@codesourcery.com>
645
646 * mips-tdep.c (extended_offset): Correct calculation.
647 (unpack_mips16): Correct bitfield positions used for extraction
648 of the immediate argument; fix sign-extension of same.
649 (extended_mips16_next_pc): Correct B instruction's offset
650 calculation. Correct register decoding of the BEQZ and BNEZ
651 as well as jump-register instructions. Handle compact jumps.
652
ff011ed7
TT
6532011-12-08 Tom Tromey <tromey@redhat.com>
654
655 * objfiles.h (struct objfile): Remove obsolete comment.
656 * objfiles.c (build_objfile_section_table): Remove obsolete
657 comment.
658
7cd3876c
SS
6592011-12-07 Stan Shebs <stan@codesourcery.com>
660
661 * MAINTAINERS (Responsible Maintainers): Add Yao Qi as
662 maintainer of the tic6x target.
663
35f73cfc
UW
6642011-12-07 Ulrich Weigand <ulrich.weigand@linaro.org>
665
666 * arm-tdep.h (arm_deal_with_atomic_sequence): Add prototype.
667 * arm-tdep.c (thumb_deal_with_atomic_sequence_raw): New function.
668 (arm_deal_with_atomic_sequence_raw): Likewise.
669 (arm_deal_with_atomic_sequence): Likewise.
670 (arm_software_single_step): Call it.
671 * arm-linux-tdep.c (arm_linux_software_single_step): Likewise.
672
94eae614
UW
6732011-12-07 Ulrich Weigand <uweigand@de.ibm.com>
674
675 * s390-tdep.c: Replace "Linux" by "GNU/Linux" in comments
676 where appropriate.
677 * s390-tdep.h: Likewise.
678
13b8d0c6
TG
6792011-12-07 Tristan Gingold <gingold@adacore.com>
680
681 * machoread.c (macho_symtab_read): Do not consider N_OPT as
682 a debugging stab. Improve complaint message.
683
5436df95
MR
6842011-12-07 Maciej W. Rozycki <macro@codesourcery.com>
685
686 * mips-tdep.c (mips32_scan_prologue): Only update the immediate
687 load adjustment if still within the prologue.
688
040dff2a
MR
6892011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
690
691 * mips-tdep.c (mips32_next_pc): Fix floating point condition
692 code mask.
693
754d7c78
MR
6942011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
695
696 * mips-tdep.c (deal_with_atomic_sequence): Fix the handling
697 of BLTZ* and BGEZ* instructions.
698
91912e4d
MR
6992011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
700
701 * mips-tdep.c (mips_pc_is_mips16): Reverse the order of checks
702 performed to determine whether an address refers to standard
703 MIPS or MIPS16 code.
704 (mips16_next_pc): Use mips_pc_is_mips16 instead of
705 is_mips16_addr.
706
f0ba3972
PA
7072011-12-06 Pedro Alves <pedro@codesourcery.com>
708
709 * breakpoint.c (breakpoint_restore_shadows): Rename to ...
710 (breakpoint_xfer_memory): ... this. Change prototype. Handle
711 memory writes too.
712 * breakpoint.h (breakpoint_restore_shadows): Delete.
713 (breakpoint_xfer_memory): Declare.
714 * mem-break.c (default_memory_insert_breakpoint)
715 (default_memory_remove_breakpoint): Use target_write_raw_memory.
716 (memory_xfer_partial): Rename to ...
717 (memory_xfer_partial_1): ... this. Don't mask out breakpoints
718 here.
719 (memory_xfer_partial): New.
720 (target_write_raw_memory): New.
721 * target.h (target_write_raw_memory): New.
722
31aba06f
DE
7232011-12-06 Doug Evans <dje@google.com>
724
725 * linespec.c (decode_dollar): Avoid "may be used uninitialized" warning.
726
f8eba3c6
TT
7272011-12-06 Joel Brobecker <brobecker@acacore.com>
728
729 * language.h (struct language_defn): Add new component
730 la_symbol_name_compare.
731 * symfile.h (struct quick_symbol_functions): Update the profile
732 of parameter "name_matcher" for the expand_symtabs_matching
733 method. Update the documentation accordingly.
734 * ada-lang.h (ada_name_for_lookup): Add declaration.
735 * ada-lang.c (ada_name_for_lookup): New function, extracted out
736 from ada_iterate_over_symbols.
737 (ada_iterate_over_symbols): Do not encode symbol name anymore.
738 (ada_expand_partial_symbol_name): Adjust profile.
739 (ada_language_defn): Add value for la_symbol_name_compare field.
740 * linespec.c: #include "ada-lang.h".
741 (iterate_name_matcher): Add language parameter. Replace call
742 to strcmp_iw by call to language->la_symbol_name_compare.
743 (decode_variable): Encode COPY if current language is Ada.
744 * dwarf2read.c (dw2_expand_symtabs_matching): Adjust profile
745 of name_matcher parameter. Adjust call to name_matcher.
746 * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
747 (expand_partial_symbol_names): Update profile of parameter "fun".
748 * psymtab.h (expand_partial_symbol_names): Update profile of
749 parameter "fun".
750 * symtab.c (demangle_for_lookup): Update function documentation.
751 (search_symbols_name_matches): Add language parameter.
752 (expand_partial_symbol_name): Likewise.
753 * c-lang.c (c_language_defn, cplus_language_defn)
754 (asm_language_defn, minimal_language_defn): Add value for
755 la_symbol_name_compare field.
756 * d-lang.c (d_language_defn): Likewise.
757 * f-lang.c (f_language_defn): Ditto.
758 * jv-lang.c (java_language_defn): Ditto.
759 * m2-lang.c (m2_language_defn): Ditto.
760 * objc-lang.c (objc_language_defn): Ditto.
761 * opencl-lang.c (opencl_language_defn): Ditto.
762 * p-lang.c (pascal_language_defn): Ditto.
763 * language.c (unknown_language_defn, auto_language_defn)
764 (local_language_defn): Ditto.
765
7662011-12-06 Tom Tromey <tromey@redhat.com>
767
768 * linespec.c (iterate_over_all_matching_symtabs): Use
769 LA_ITERATE_OVER_SYMBOLS.
770 (lookup_prefix_sym, add_matching_symbols_to_info): Likewise.
771 (find_function_symbols, decode_variable): Remove Ada special
772 case.
773 * language.h (struct language_defn) <la_iterate_over_symbols>: New
774 field.
775 (LA_ITERATE_OVER_SYMBOLS): New macro.
776 * language.c (unknown_language_defn, auto_language_defn)
777 (local_language_defn): Update.
778 * c-lang.c (c_language_defn, cplus_language_defn)
779 (asm_language_defn, minimal_language_defn): Update.
780 * d-lang.c (d_language_defn): Update.
781 * f-lang.c (f_language_defn): Update.
782 * jv-lang.c (java_language_defn): Update.
783 * m2-lang.c (m2_language_defn): Update.
784 * objc-lang.c (objc_language_defn): Update.
785 * opencl-lang.c (opencl_language_defn): Update.
786 * p-lang.c (pascal_language_defn): Update.
787 * ada-lang.c (ada_iterate_over_symbols): New function.
788 (ada_language_defn): Update.
789
7902011-12-06 Tom Tromey <tromey@redhat.com>
791 Joel Brobecker <brobecker@acacore.com>
792
793 PR breakpoints/13105, PR objc/8341, PR objc/8343, PR objc/8366,
794 PR objc/8535, PR breakpoints/11657, PR breakpoints/11970,
795 PR breakpoints/12023, PR breakpoints/12334, PR breakpoints/12856,
796 PR shlibs/8929, PR shlibs/7393:
797 * python/py-type.c (compare_maybe_null_strings): Rename from
798 compare_strings.
799 (check_types_equal): Update.
800 * utils.c (compare_strings): New function.
801 * tui/tui-winsource.c (tui_update_breakpoint_info): Update for
802 location changes.
803 * tracepoint.c (scope_info): Update.
804 (trace_find_line_command): Use DECODE_LINE_FUNFIRSTLINE.
805 * symtab.h (iterate_over_minimal_symbols)
806 (iterate_over_some_symtabs, iterate_over_symtabs)
807 (find_pcs_for_symtab_line, iterate_over_symbols)
808 (demangle_for_lookup): Declare.
809 (expand_line_sal): Remove.
810 * symtab.c (iterate_over_some_symtabs, iterate_over_symtabs)
811 (lookup_symtab_callback): New functions.
812 (lookup_symtab): Rewrite.
813 (demangle_for_lookup): New function, extract from
814 lookup_symbol_in_language.
815 (lookup_symbol_in_language): Use it.
816 (iterate_over_symbols): New function.
817 (find_line_symtab): Update.
818 (find_pcs_for_symtab_line): New functions.
819 (find_line_common): Add 'start' argument.
820 (decode_line_spec): Update. Change argument to 'flags', change
821 interpretation.
822 (append_expanded_sal): Remove.
823 (append_exact_match_to_sals): Remove.
824 (expand_line_sal): Remove.
825 * symfile.h (struct quick_symbol_functions) <lookup_symtab>:
826 Remove.
827 <map_symtabs_matching_filename>: New field.
828 * stack.c (func_command): Only look in the current program space.
829 Use DECODE_LINE_FUNFIRSTLINE.
830 * source.c (line_info): Set pspace on sal. Check program space in
831 the loop. Use DECODE_LINE_LIST_MODE.
832 (select_source_symtab): Use DECODE_LINE_FUNFIRSTLINE.
833 * solib-target.c: Remove DEF_VEC_I(CORE_ADDR).
834 * python/python.c (gdbpy_decode_line): Update.
835 * psymtab.c (partial_map_expand_apply): New function.
836 (partial_map_symtabs_matching_filename): Rename from
837 lookup_partial_symbol. Update arguments.
838 (lookup_symtab_via_partial_symtab): Remove.
839 (psym_functions): Update.
840 * objc-lang.h (parse_selector, parse_method): Don't declare.
841 (find_imps): Update.
842 * objc-lang.c (parse_selector, parse_method): Now static.
843 (find_methods): Change arguments. Fill in a vector of symbol
844 names.
845 (uniquify_strings): New function.
846 (find_imps): Change arguments.
847 * minsyms.c (iterate_over_minimal_symbols): New function.
848 * linespec.h (enum decode_line_flags): New.
849 (struct linespec_sals): New.
850 (struct linespec_result) <canonical>: Remove.
851 <pre_expanded, addr_string, sals>: New fields.
852 (destroy_linespec_result, make_cleanup_destroy_linespec_result)
853 (decode_line_full): Declare.
854 (decode_line_1): Update.
855 * linespec.c (struct address_entry, struct linespec_state, struct
856 collect_info): New types.
857 (add_sal_to_sals_basic, add_sal_to_sals, hash_address_entry)
858 (eq_address_entry, maybe_add_address): New functions.
859 (total_number_of_methods): Remove.
860 (iterate_name_matcher, iterate_over_all_matching_symtabs): New
861 functions.
862 (find_methods): Change arguments. Don't canonicalize input.
863 Simplify logic.
864 (add_matching_methods, add_constructors)
865 (build_canonical_line_spec): Remove.
866 (filter_results, convert_results_to_lsals): New functions.
867 (decode_line_2): Change arguments. Rewrite for new data
868 structures.
869 (decode_line_internal): Rename from decode_line_1. Change
870 arguments. Add cleanups. Update for new data structures.
871 (linespec_state_constructor, linespec_state_destructor)
872 (decode_line_full, decode_line_1): New functions.
873 (decode_indirect): Change arguments. Update.
874 (locate_first_half): Use skip_spaces.
875 (decode_objc): Change arguments. Update for new data structures.
876 Simplify logic.
877 (decode_compound): Change arguments. Add cleanups. Remove
878 fallback code, replace with error.
879 (struct decode_compound_collector): New type.
880 (collect_one_symbol): New function.
881 (lookup_prefix_sym): Change arguments. Update.
882 (compare_symbol_name, add_all_symbol_names_from_pspace)
883 (find_superclass_methods ): New functions.
884 (find_method): Rewrite.
885 (struct symtab_collector): New type.
886 (add_symtabs_to_list, collect_symtabs_from_filename): New
887 functions.
888 (symtabs_from_filename): Change API. Rename from
889 symtab_from_filename.
890 (collect_function_symbols): New function.
891 (find_function_symbols): Change API. Rename from
892 find_function_symbol. Rewrite.
893 (decode_all_digits): Change arguments. Rewrite.
894 (decode_dollar): Change arguments. Use decode_variable.
895 (decode_label): Change arguments. Rewrite.
896 (collect_symbols): New function.
897 (minsym_found): Change arguments. Rewrite.
898 (check_minsym, search_minsyms_for_name)
899 (add_matching_symbols_to_info): New function.
900 (decode_variable): Change arguments. Iterate over all symbols.
901 (symbol_found): Remove.
902 (symbol_to_sal): New function.
903 (init_linespec_result, destroy_linespec_result)
904 (cleanup_linespec_result, make_cleanup_destroy_linespec_result):
905 New functions.
906 (decode_digits_list_mode, decode_digits_ordinary): New functions.
907 * dwarf2read.c (dw2_map_expand_apply): New function.
908 (dw2_map_symtabs_matching_filename): Rename from
909 dw2_lookup_symtab. Change arguments.
910 (dwarf2_gdb_index_functions): Update.
911 * dwarf2loc.c: Remove DEF_VEC_I(CORE_ADDR).
912 * defs.h (compare_strings): Declare.
913 * cli/cli-cmds.c (compare_strings): Move to utils.c.
914 (edit_command, list_command): Use DECODE_LINE_LIST_MODE. Call
915 filter_sals.
916 (compare_symtabs, filter_sals): New functions.
917 * breakpoint.h (struct bp_location) <line_number, source_file>:
918 New fields.
919 (struct breakpoint) <line_number, source_file>: Remove.
920 <filter>: New field.
921 * breakpoint.c (print_breakpoint_location, init_raw_breakpoint)
922 (momentary_breakpoint_from_master, add_location_to_breakpoint):
923 Update for changes to locations.
924 (init_breakpoint_sal): Add 'filter' argument. Set 'filter' on
925 breakpoint.
926 (create_breakpoint_sal): Add 'filter' argument.
927 (remove_sal, expand_line_sal_maybe): Remove.
928 (create_breakpoints_sal): Remove 'sals' argument. Handle
929 pre-expanded sals and the filter.
930 (parse_breakpoint_sals): Use decode_line_full.
931 (check_fast_tracepoint_sals): Use get_sal_arch.
932 (create_breakpoint): Create a linespec_sals. Update.
933 (break_range_command): Use decode_line_full. Update.
934 (until_break_command): Update.
935 (clear_command): Update match conditions for linespec.c changes.
936 Use DECODE_LINE_LIST_MODE.
937 (say_where): Update for changes to locations.
938 (bp_location_dtor): Free 'source_file'.
939 (base_breakpoint_dtor): Free 'filter'. Don't free 'source_file'.
940 (update_static_tracepoint): Update for changes to locations.
941 (update_breakpoint_locations): Disable ranged breakpoint if too
942 many locations match. Update.
943 (addr_string_to_sals): Use decode_line_full. Resolve all sal
944 PCs.
945 (breakpoint_re_set_default): Don't call expand_line_sal_maybe.
946 (decode_line_spec_1): Update. Change argument name to 'flags',
947 change interpretation.
948 * block.h (block_containing_function): Declare.
949 * block.c (block_containing_function): New function.
950 * skip.c (skip_function_command): Update.
951 (skip_re_set): Update.
952 * infcmd.c (jump_command): Use DECODE_LINE_FUNFIRSTLINE.
953 * mi/mi-main.c (mi_cmd_trace_find): Use DECODE_LINE_FUNFIRSTLINE.
954 * NEWS: Add entry.
955
9562011-12-06 Tom Tromey <tromey@redhat.com>
957
958 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Allow
959 breakpoint's pspace to be NULL.
960 * breakpoint.h (struct breakpoint) <pspace>: Update comment.
961 * breakpoint.c (init_raw_breakpoint): Conditionally set
962 breakpoint's pspace.
963 (init_breakpoint_sal): Don't set breakpoint's pspace.
964 (prepare_re_set_context): Conditionally switch program space.
965 (addr_string_to_sals): Check executing_startup on location's
966 program space.
967
9682011-12-06 Tom Tromey <tromey@redhat.com>
969
970 * breakpoint.h (enum enable_state) <bp_startup_disabled>: Remove.
971 * breakpoint.c (should_be_inserted): Explicitly check if program
972 space is executing startup.
973 (describe_other_breakpoints): Update.
974 (disable_breakpoints_before_startup): Change executing_startup
975 earlier. Remove loop.
976 (enable_breakpoints_after_startup): Likewise.
977 (init_breakpoint_sal): Don't use bp_startup_disabled.
978 (create_breakpoint): Don't use bp_startup_disabled.
979 (update_global_location_list): Use should_be_inserted.
980 (bkpt_re_set): Update.
981
75c8c9d7
TT
9822011-12-06 Tom Tromey <tromey@redhat.com>
983
984 * python/lib/gdb/command/pretty_printers.py
985 (InfoPrettyPrinter.invoke1): Remove extra double quote.
986
7376e450
TT
9872011-12-06 Tom Tromey <tromey@redhat.com>
988
989 * NEWS: Add MI news.
990
c642a434
UW
9912011-12-06 Ulrich Weigand <uweigand@de.ibm.com>
992
993 * s390-tdep.h (S390_ORIG_R2_REGNUM): Define.
994 (S390_LAST_BREAK_REGNUM): Likewise.
995 (S390_SYSTEM_CALL_REGNUM): Likewise.
996 (S390_NUM_REGS): Update.
997
998 (s390_regmap_last_break): Add declaration.
999 (s390x_regmap_last_break): Likewise.
1000 (s390_regmap_system_call): Likewise.
1001
1002 (tdesc_s390_linux32v1): Add declaration.
1003 (tdesc_s390_linux32v2): Likewise.
1004 (tdesc_s390_linux64v1): Likewise.
1005 (tdesc_s390_linux64v2): Likewise.
1006 (tdesc_s390x_linux64v1): Likewise.
1007 (tdesc_s390x_linux64v2): Likewise.
1008
1009 * s390-tdep.c: Include new target description files
1010 "features/s390-linux32v1.c", "features/s390-linux32v2.c",
1011 "features/s390-linux64v1.c", "features/s390-linux64v2.c",
1012 "features/s390x-linux64v1.c", and "features/s390x-linux64v2.c".
1013 (s390_cannot_store_register): New function.
1014 (s390_write_pc): Likewise.
1015 (s390_dwarf_regmap): Add fields for new registers.
1016 (s390_regmap_gregset): Likewise.
1017 (s390x_regmap_gregset): Likewise.
1018 (s390_regmap_fpregset): Likewise.
1019 (s390_regmap_upper): Likewise.
1020 (s390_regmap_last_break): New variable.
1021 (s390x_regmap_last_break): Likewise.
1022 (s390_regmap_system_call): Likewise.
1023 (s390_last_break_regset): Likewise.
1024 (s390x_last_break_regset): Likewise.
1025 (s390_system_call_regset): Likewise.
1026 (s390_upper_regset_sections): Rename to ...
1027 (s390_linux64_regset_sections): ... this.
1028 (s390_linux32_regset_sections): New variable.
1029 (s390x_linux64_regset_sections): Likewise.
1030 (s390_linux32v1_regset_sections): Likewise.
1031 (s390_linux32v2_regset_sections): Likewise.
1032 (s390_linux64v1_regset_sections): Likewise.
1033 (s390_linux64v2_regset_sections): Likewise.
1034 (s390x_linux64v1_regset_sections): Likewise.
1035 (s390x_linux64v2_regset_sections): Likewise.
1036 (s390_regset_from_core_section): Handle .reg-s390-last-break and
1037 .reg-s390-system-call core file sections.
1038 (s390_core_read_description): Check for presence of
1039 .reg-s390-last-break and .reg-s390-system-call core file
1040 sections and return appropriate target description.
1041 (s390_gdbarch_init): Detect Linux-specific registers "orig_r2",
1042 "last_break" and "system_call" in target description. Install
1043 appropriate gdbarch_core_regset_sections array.
1044 Call set_gdbarch_cannot_store_register and set_gdbarch_write_pc.
1045 (_initialize_s390_tdep): Initialize additional target descriptions.
1046
1047 * s390-nat.c: Include "elf/common.h".
1048 (PTRACE_GETREGSET, PTRACE_SETREGSET): Define if undefined.
1049 (have_regset_last_break): New static variable.
1050 (have_regset_system_call): Likewise.
1051 (s390_native_supply): Handle S390_ORIG_R2_REGNUM.
1052 (s390_native_collect): Likewise.
1053 (fetch_regset, store_regset, check_regset): New functions.
1054 (s390_linux_fetch_inferior_registers): Handle S390_LAST_BREAK_REGNUM
1055 and S390_SYSTEM_CALL_REGNUM.
1056 (s390_linux_store_inferior_registers): Likewise.
1057 (s390_read_description): Check for presence of NT_S390_LAST_BREAK
1058 and NT_S390_SYSTEM_CALL regsets and use appropriate description.
1059
1060 * features/Makefile (WHICH): Add s390-linux32v1, s390-linux64v1,
1061 s390x-linux64v1, s390-linux32v2, s390-linux64v2, and s390x-linux64v2.
1062 (s390-linux32v1-expedite): Define.
1063 (s390-linux32v2-expedite): Likewise.
1064 (s390-linux64v1-expedite): Likewise.
1065 (s390-linux64v2-expedite): Likewise.
1066 (s390x-linux64v1-expedite): Likewise.
1067 (s390x-linux64v2-expedite): Likewise.
1068
1069 * features/s390-linux32.xml: Add orig_r2 register.
1070 * features/s390-linux64.xml: Likewise.
1071 * features/s390x-linux64.xml: Likewise.
1072 * features/s390-linux32v1.xml: New file.
1073 * features/s390-linux32v2.xml: Likewise.
1074 * features/s390-linux64v1.xml: Likewise.
1075 * features/s390-linux64v2.xml: Likewise.
1076 * features/s390x-linux64v1.xml: Likewise.
1077 * features/s390x-linux64v2.xml: Likewise.
1078
1079 * features/s390-linux32.c: Regenerate.
1080 * features/s390-linux64.c: Likewise.
1081 * features/s390x-linux64.c: Likewise.
1082 * features/s390-linux32v1.c: New generated file.
1083 * features/s390-linux32v2.c: Likewise.
1084 * features/s390-linux64v1.c: Likewise.
1085 * features/s390-linux64v2.c: Likewise.
1086 * features/s390x-linux64v1.c: Likewise.
1087 * features/s390x-linux64v2.c: Likewise.
1088
1089 * regformats/s390-linux32.dat: Regenerate.
1090 * regformats/s390-linux64.dat: Regenerate.
1091 * regformats/s390x-linux64.dat: Regenerate.
1092 * regformats/s390-linux32v1.dat: New generated file.
1093 * regformats/s390-linux32v2.dat: Likewise.
1094 * regformats/s390-linux64v1.dat: Likewise.
1095 * regformats/s390-linux64v2.dat: Likewise.
1096 * regformats/s390x-linux64v1.dat: Likewise.
1097 * regformats/s390x-linux64v2.dat: Likewise.
1098
336060f3
PA
10992011-12-05 Pedro Alves <pedro@codesourcery.com>
1100
1101 * linux-nat.c (resume_stopped_resumed_lwps): Call
1102 registers_changed.
1103
049e32d3
PA
11042011-12-05 Pedro Alves <pedro@codesourcery.com>
1105
1106 * breakpoint.c: Include record.h.
1107 (breakpoints_always_inserted_mode): Return false when the record
1108 target is in use.
1109
5c03c7f9 11102011-12-05 Pedro Alves <pedro@codesourcery.com>
482950ed
PA
1111
1112 * amd64-linux-nat.c (amd64_linux_dr_get): Remove FIXME comment.
1113 Reinstate perror_with_name call on ptrace error. Remove #if 0.
1114 * i386-linux-nat.c (i386_linux_dr_get): Likewise.
1115 * i386bsd-nat.c (i386bsd_dr_get_status): Likewise.
1116
fbbd034e
AS
11172011-12-05 Andrey Smirnov <andrew.smirnov@gmail.com>
1118
1119 * breakpoint.c (init_breakpoint_sal): Remove nested definitions of
1120 `i'(-Wshadow).
1121
a5ff8356 11222011-12-05 Andrey Smirnov <andrew.smirnov@gmail.com>
12747160
AS
1123
1124 * bcache.c (bcache): Rename `bcache' to `cache'(-Wshadow).
1125
11262011-12-05 Andrey Smirnov <andrew.smirnov@gmail.com>
1127
a5ff8356
AS
1128 * amd64-tdep.c (amd64_push_dummy_call): Remove nested definition
1129 of `tdep'(-Wshadow).
1130
93f2a35e
JK
11312011-12-03 Jan Kratochvil <jan.kratochvil@redhat.com>
1132
1133 Fix compilation --without-expat.
1134 * solib-svr4.c (svr4_free_so, svr4_free_library_list): Move them here
1135 from ...
1136 [HAVE_LIBEXPAT] (svr4_free_so, svr4_free_library_list): ... here.
1137
2268b414
JK
11382011-12-02 Paul Pluzhnikov <ppluzhnikov@google.com>
1139 Jan Kratochvil <jan.kratochvil@redhat.com>
1140
1141 * Makefile.in (XMLFILES): Add library-list-svr4.dtd.
1142 * features/library-list-svr4.dtd: New file.
1143 * remote.c (PACKET_qXfer_libraries_svr4): New.
1144 (remote_protocol_features): new entry for PACKET_qXfer_libraries_svr4.
1145 (remote_xfer_partial): Handle TARGET_OBJECT_LIBRARIES_SVR4.
1146 * solib-svr4.c (struct svr4_library_list): New.
1147 [HAVE_LIBEXPAT]: Include xml-support.h.
1148 [HAVE_LIBEXPAT] (svr4_library_list_start_library)
1149 [HAVE_LIBEXPAT] (svr4_library_list_start_list, svr4_library_attributes)
1150 [HAVE_LIBEXPAT] (svr4_library_list_children)
1151 [HAVE_LIBEXPAT] (svr4_library_list_attributes)
1152 [HAVE_LIBEXPAT] (svr4_library_list_elements, svr4_parse_libraries)
1153 [HAVE_LIBEXPAT] (svr4_current_sos_via_xfer_libraries)
1154 [!HAVE_LIBEXPAT] (svr4_current_sos_via_xfer_libraries): New.
1155 (svr4_read_so_list): Extend the corruption message by addresses.
1156 (svr4_current_sos): New variable library_list, call
1157 svr4_current_sos_via_xfer_libraries.
1158 * target.h (enum target_object): New TARGET_OBJECT_LIBRARIES_SVR4.
1159
585861ea
JK
11602011-12-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1161
1162 PR threads/13448
1163 * dwarf2read.c (decode_locdesc): Handle DW_OP_const8u.
1164 For DW_OP_GNU_push_tls_address increment the value, new comment for it.
1165
9750bca9
JK
11662011-12-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1167
1168 PR breakpoints/13346
1169 * dwarf2read.c (process_psymtab_comp_unit): Set
1170 PSYMTABS_ADDRMAP_SUPPORTED.
1171 * psympriv.h (struct partial_symtab): Comment textlow and texthigh
1172 validity. New field psymtabs_addrmap_supported.
1173 * psymtab.c (find_pc_sect_psymtab_closer): New gdb_assert on
1174 psymtabs_addrmap_supported.
1175 (find_pc_sect_psymtab): Do not fallback to TEXTLOW and TEXTHIGH for
1176 !PSYMTABS_ADDRMAP_SUPPORTED.
1177 (dump_psymtab, maintenance_info_psymtabs): Print also
1178 psymtabs_addrmap_supported.
1179
f28c316a
DE
11802011-12-01 Doug Evans <dje@google.com>
1181
1182 * python/py-type.c (type_object_methods): Fix "array" doc string.
1183
fc0ae648
AB
11842011-12-01 Andrew Burgess <aburgess@broadcom.com>
1185
1186 * source.c (print_source_lines_base): Fix missing braces on else
1187 clause leading to additional output.
1188
d6db1fab
UW
11892011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
1190
1191 * s390-nat.c (SUBOFF): Remove.
1192 (s390_native_supply, s390_native_collect): New functions.
1193 (supply_gregset, supply_fpregset): Use s390_native_supply.
1194 (fill_gregset, fill_fpregset): Use s390_native_collect.
1195
1196 * s390-tdep.c (s390_pseudo_register_reggroup_p): Update comment.
1197 (s390_unwind_pseudo_register): New function.
1198 (s390_prologue_frame_unwind_cache): Unwind PSW address and mask
1199 registers instead of PC and CC.
1200 (s390_backchain_frame_unwind_cache): Likewise.
1201 (s390_sigtramp_frame_unwind_cache): Do not unwind PC, CC, or
1202 full GPR pseudos.
1203 (s390_trad_frame_prev_register): New function.
1204 (s390_frame_prev_register): Use it.
1205 (s390_sigtramp_frame_prev_register): Likewise.
1206 (s390_dwarf2_prev_register): Use s390_unwind_pseudo_register.
1207 (s390_dwarf2_frame_init_reg): Unwind PSW address and mask. Use
1208 special callback to unwind any pseudo.
1209
1210 * features/s390-core32.xml: Add pswm/pswa to save/restore group.
1211 * features/s390-core64.xml: Likewise.
1212 * features/s390x-core64.xml: Likewise.
1213 * features/s390-linux32.c: Regenerate.
1214 * features/s390-linux64.c: Likewise.
1215 * features/s390x-linux64.c: Likewise.
1216
1dd635ac
UW
12172011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
1218
1219 * s390-tdep.c (s390_gdbarch_init): Call set_gdbarch_get_siginfo_type.
1220
0161e4b9
UW
12212011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
1222
1223 * s390-tdep.c (s390_displaced_step_fixup): Fix processing of LARL
1224 instruction. Add more diagnostic output.
1225
0c36327f
AS
12262011-11-29 Andrey Smirnov <andrew.smirnov@gmail.com>
1227
1228 * MAINTAINERS (Write After Approval): Add myself to the list.
1229
b4264740
SD
12302011-11-29 Sanjoy Das <sdas@igalia.com>
1231
1232 * jit.c (add_objfile_entry, jit_reader_try_read_symtab)
1233 (jit_bfd_try_read_symtab): Fix comments.
1234
87326c78
DD
12352011-11-28 DJ Delorie <dj@redhat.com>
1236
1237 * NEWS: Mention RL78 simulator.
1238
1e3a8f45
JB
12392011-11-28 Joel Brobecker <brobecker@adacore.com>
1240
1241 * symfile.h (struct quick_symbol_functions): Fix the documentation
1242 of field map_matching_symbols, as symbols are sorted using
1243 strcmp_iw_ordered, not strcmp_iw.
1244
265e52c3
JB
12452011-11-28 Paul Hilfinger <hilfinger@adacore.com>
1246
1247 * symfile.h (struct quick_symbol_functions): Update the
1248 documentation for field map_matching_symbols.
1249
1a1d5513
JB
12502011-11-28 Joel Brobecker <brobecker@adacore.com>
1251
1252 * ada-lang.c (compare_names): Fix wrong return value in case
1253 string1 starts with the same contents as string2, followed
1254 by an underscore that do not start a symbol name suffix.
1255
5d9c5995
PM
12562011-11-28 Phil Muldoon <pmuldoon@redhat.com>
1257
1258 PR python/13369
1259 PR python/13374
1260
1261 * python/python.c (gdbpy_decode_line): Do not acquire GIL.
1262 * python/py-inferior.c (inferior_to_inferior_object): Ditto.
1263 * python/py-value.c (valpy_nonzero): Use TRY_CATCH to catch GDB
1264 exceptions.
1265 * python/py-type.c (typy_strip_typedefs): Ditto.
1266 (typy_legacy_template_argument): Ditto.
1267 * python/py-inferior.c (inferior_to_inferior_object): Ditto.
1268 * python/py-breakpoint.c (bppy_set_ignore_count): Ditto.
1269
2bf50f6f
JB
12702011-11-27 Joel Brobecker <brobecker@acacore.com>
1271
1272 * remote.c (remote_get_tracepoint_status): Delete addrbuf
1273 local variable. Avoid use of sprintf_vma.
1274
744ab88c
SD
12752011-11-27 Sanjoy Das <sdas@igalia.com>
1276
1277 Fix regression in jit.exp.
1278 * jit.c (jit_reader_try_read_symtab, jit_bfd_try_read_symtab)
1279 (jit_register_code): Set the jit_objfile_data field to the correct
1280 value.
1281
46ad3598
UW
12822011-11-25  Uros Bizjak  <ubizjak@gmail.com>
1283
1284 * alpha-tdep.c (br_opcode): New.
1285 (ldl_l_opcode, ldq_l_opcode, stl_c_opcode, stq_c_opcode): Ditto.
1286 (alpha_deal_with_atomic_sequence): New function.
1287 (alpha_gdbarch_init): Handle single stepping of atomic sequences
1288 with alpha_deal_with_atomic_sequence.
1289
e4c5f296
TG
12902011-11-24 Tristan Gingold <gingold@adacore.com>
1291
1292 * machoread.c (oso_el): Remove num_Sections, symbols, offsets
1293 fields. Add oso_sym, end_sym and nbr_syms.
1294 (macho_register_oso): Change interface.
1295 (macho_symtab_add_minsym): New function.
1296 (macho_symtab_read): Rewritten.
1297 (get_archive_prefix_len): Remove trailing blanks.
1298 (oso_el_compare_name): Add comment.
1299 (struct macho_sym_hash_entry): New structure.
1300 (macho_relocate_common_syms): Remove.
1301 (macho_sym_hash_newfunc): New function.
1302 (macho_resolve_oso_sym_with_minsym): Likewise.
1303 (macho_add_oso_symfile): Rewritten.
1304 (macho_symfile_read_all_oso): Remove trailing blanks.
1305 Adjust code to free oso vector.
1306 (macho_symfile_read): Likewise.
1307 Move code to initialize minimal symbol
1308
130854df
MR
13092011-11-24 Maciej W. Rozycki <macro@codesourcery.com>
1310
1311 * mips-tdep.c (extended_offset): Fix formatting.
1312
3d7bb9d9
DE
13132011-11-23 Doug Evans <dje@google.com>
1314
1315 * dwarf2read.c (dw2_lookup_symtab): Add comment.
1316 (dw2_expand_symtabs_with_filename): Ditto.
1317 (dw2_expand_symtabs_matching): Ditto.
1318 (dw2_map_symbol_filenames): Ditto.
1319
1fbf5ada
JB
13202011-11-23 Andrey Smirnov <andrew.smirnov@gmail.com>
1321
1322 * ada-lang.c (assign_aggregate): Minor reformatting.
1323
d984108d
JB
13242011-11-23 Andrey Smirnov <andrew.smirnov@gmail.com>
1325
1326 * ada-lang.c (assign_aggregate): Remove declaration of local
1327 variable `i' which is shadowing another variable with the same
1328 name declared in the outer scope.
1329
18af8284
JB
13302011-11-23 Joel Brobecker <brobecker@adacore.com>
1331
1332 * ada-lang.c (get_base_type): Renames base_type. Adjust all
1333 calls throughout this file.
1334
1fc7b5d7
JB
13352011-11-23 Joel Brobecker <brobecker@adacore.com>
1336
1337 * gdb-dlfcn.c (gdb_dlopen): Add missing coma in call to
1338 FormatMessage.
1339
36dfb11c
TT
13402011-11-22 Tom Tromey <tromey@redhat.com>
1341
1342 PR mi/8444:
1343 * mi/mi-common.h (EXEC_ASYNC_SOLIB_EVENT, EXEC_ASYNC_FORK)
1344 (EXEC_ASYNC_VFORK, EXEC_ASYNC_SYSCALL_ENTRY)
1345 (EXEC_ASYNC_SYSCALL_RETURN, EXEC_ASYNC_EXEC): New constants.
1346 * mi/mi-common.c (async_reason_string_lookup): Add new reasons.
1347 * breakpoint.c (print_it_catch_fork, print_it_catch_vfork)
1348 (print_it_catch_syscall, print_it_catch_exec)
1349 (internal_bkpt_print_it): Use ui_out. Emit stop reason.
1350 (bpstat_print): Add 'kind' argument. Handle
1351 TARGET_WAITKIND_LOADED.
1352 * infrun.c (normal_stop): Update for bpstat_print change. Don't
1353 handle TARGET_WAITKIND_LOADED here.
1354 * breakpoint.h (bpstat_print): Update.
1355
5bd6aa83
TT
13562011-11-22 Tom Tromey <tromey@redhat.com>
1357
1358 * mi/mi-interp.c (mi_on_normal_stop): Call bpstat_print.
1359
f5afdc18
TT
13602011-11-22 Tom Tromey <tromey@redhat.com>
1361
1362 * mi/mi-common.c (_initialize_gdb_mi_common): Remove.
1363 Use static_assert to check the size of
1364 async_reason_string_lookup.
1365 * common/gdb_assert.h (static_assert): New macro.
1366
a3769e0c
AM
13672011-11-22 Alan Modra <amodra@gmail.com>
1368
1369 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Correct branch
1370 destination calculation. Don't expect >> to sign extend. Don't
1371 add a break if branch lands inside the sequence anywhere.
1372
56767571
KS
13732011-11-21 Keith Seitz <keiths@redhat.com>
1374
1375 * gdb.mi/mi-var-display.exp: Remove XFAIL for c_variable-7.51,
1376 -var-evaluate-expression of an enumeration and fix expected result.
1377 * gdb.mi/mi2-varvdisplay.exp: Likewise.
1378
8443c207
KY
13792011-11-21 Kwok Cheung Yeung <kcy@codesourcery.com>
1380
1381 * osdata.c (info_osdata_command): Rename nprocs to nrows. Handle
1382 the case where osdata->items is empty. Rename column names to a
1383 canonical form to avoid problems with unusual column names.
1384
97643830
YQ
13852011-11-21 Yao Qi <yao@codesourcery.com>
1386
1387 * MAINTAINERS (Write After Approval): Keep list in alphabetical order.
1388
f196051f
SS
13892011-11-20 Stan Shebs <stan@codesourcery.com>
1390
1391 * NEWS: Mention tracepoint additions.
1392 * breakpoint.h (struct tracepoint): New field traceframe_usage.
1393 * breakpoint.c (print_one_breakpoint_location): Identify
1394 tracepoints as such when reporting hit counts, report
1395 trace buffer usage.
1396 (create_tracepoint_from_upload): Copy status info.
1397 * tracepoint.h (struct trace_status): Rename error_desc to stop_desc,
1398 add fields user_name, notes, start_time, stop_time.
1399 (struct uploaded_tp): Add fields hit_count, traceframe_usage.
1400 * tracepoint.c (trace_user): New global.
1401 (trace_notes): New global.
1402 (trace_stop_notes): New global.
1403 (start_tracing): Add argument and trace note handling.
1404 (stop_tracing): Ditto.
1405 (trace_start_command): Add notes argument.
1406 (trace_stop_command): Ditto.
1407 (trace_status_command): Report additional status info.
1408 (trace_status_mi): Similarly.
1409 (trace_save): Update, record tracepoint status.
1410 (set_disconnected_tracing): Call target method directly.
1411 (send_disconnected_tracing_value): Remove.
1412 (set_trace_user): New function.
1413 (set_trace_notes): New function.
1414 (set_trace_stop_notes): New function.
1415 (parse_trace_status): Handle additional status.
1416 (parse_tracepoint_status): New function.
1417 (parse_tracepoint_definition): Call it.
1418 (tfile_get_tracepoint_status): New function.
1419 (init_tfile_ops): Use it.
1420 (_initialize_tracepoint): Add new setshows.
1421 * target.h (struct target_ops): New methods to_get_tracepoint_status
1422 and to_set_trace_notes.
1423 (target_get_tracepoint_status): New macro.
1424 (target_set_trace_notes): New macro.
1425 * target.c (update_current_target): Add new methods.
1426 * remote.c (remote_get_tracepoint_status): New function.
1427 (remote_set_trace_notes): New function.
1428 (init_remote_ops): Add them.
1429 * mi/mi-main.c (mi_cmd_trace_start): Add argument to call.
1430 (mi_cmd_trace_stop): Ditto.
1431
3623dc3a
SD
14322011-11-20 Sanjoy Das <sdas@igalia.com>
1433
1434 * jit.c: Include regcache.h.
1435 (jit_gdbarch_data, jit_frame_unwind): New static variables.
1436 (jit_unwind_reg_set_impl, free_reg_value_impl)
1437 (jit_unwind_reg_get_impl, jit_frame_sniffer)
1438 (jit_frame_unwind_stop_reason, jit_frame_this_id)
1439 (jit_frame_prev_register, jit_dealloc_cache)
1440 (jit_prepend_unwinder, jit_gdbarch_data_init): New functions.
1441 (jit_inferior_init): Prepend (new) pseudo unwinder by calling
1442 jit_prepend_unwinder.
1443 (_initialize_jit): Register new gdbarch data jit_gdbarch_data.
1444
1825a88d
SD
14452011-11-20 Sanjoy Das <sdas@igalia.com>
1446
1447 * jit.c: Include block.h, dictionary.h and frame-unwind.h.
1448 (add_objfile_entry, jit_target_read_impl, jit_object_open_impl)
1449 (jit_symtab_open_impl, compare_block, jit_block_open_impl)
1450 (jit_symtab_line_mapping_add_impl, jit_symtab_close_impl)
1451 (finalize_symtab, jit_object_close_impl)
1452 (jit_reader_try_read_symtab, jit_bfd_try_read_symtab)
1453 (free_objfile_data): New functions.
1454 (_initialize_jit): Register jit_objfile_data with a proper cleanup
1455 function.
1456
784c47ee
SD
14572011-11-20 Sanjoy Das <sdas@igalia.com>
1458
1459 * jit.c: Include gdb-dlfcn.h.
1460 (loaded_jit_reader, reader_init_fn_sym): New static variables.
1461 (jit_reader_load, jit_reader_load_command)
1462 (jit_reader_unload_command): New functions.
1463 (_initialize_jit): Add commands "jit-reader-load" and
1464 "jit-reader-unload".
1465
a2d08b9e
SD
14662011-11-20 Sanjoy Das <sdas@igalia.com>
1467
1468 * Makefile.in: Add gdb-dlfcn.c and gdb-dlfcn.h to build system.
1469 * config.in: Add new #define HAVE_LIBDL.
1470 * configure.ac: Add check for -ldl.
1471 * configure: Re-generated by autoconf.
1472 * gdb-dlfcn.c: New file.
1473 * gdb-dlfcn.h: New file.
1474
b8e0a31c
SD
14752011-11-20 Sanjoy Das <sdas@igalia.com>
1476
1477 * config.in: Add new #defines: JIT_READER_DIR and
1478 JIT_READER_DIR_RELOCATABLE.
1479 * configure.ac: New GDB directory entry for jit-reader-dir.
1480 * configure: Re-generated by autoconf.
1481 * jit.c: New static variable: const char *jit_reader_dir.
1482 (_initialize_jit): Relocate jit_reader_dir.
1483
f997c383
SD
14842011-11-20 Sanjoy Das <sdas@igalia.com>
1485
1486 * Makefile.in: Add jit-reader.h as a header. Have it installed in
1487 $(includedir)/gdb.
1488 * configure.ac: Generate a correct value for TARGET_PTR for
1489 jit-reader.h. Tell configure to generate jit-reader.h from
1490 jit-reader.in.
1491 * configure: Re-generated by autoconf.
1492 * jit-reader.in: New file.
1493 * jit.c: Include jit-reader.h.
1494
dc8c0494
SD
14952011-11-20 Sanjoy Das <sdas@igalia.com>
1496
1497 * MAINTAINERS (Write After Approval): Add myself to the list.
1498
01efb936
UW
14992011-11-18 Ulrich Weigand <uweigand@de.ibm.com>
1500
1501 * findvar.c (read_frame_register_value): Respect value_offset
1502 of the register value. Remove big-endian special case.
1503
732f3f12
TT
15042011-11-18 Tom Tromey <tromey@redhat.com>
1505
1506 PR build/7196:
1507 * remote.c (putpkt_for_catch_errors): New function.
1508 (remote_kill): Use it.
1509
bfccc43c
YQ
15102011-11-18 Yao Qi <yao@codesourcery.com>
1511
1512 * breakpoint.c (create_breakpoint): Produce query message according to
1513 breakpoint's type.
1514 Allocate tracepoint per correct type.
1515 Don't check SALs for pending fast tracepoints.
1516 * tracepoint.c (process_tracepoint_on_disconnect): New.
1517 (disconnect_tracing): Call process_tracepoint_on_disconnect.
1518
3ea46bff
YQ
15192011-11-18 Yao Qi <yao@codesourcery.com>
1520
1521 * breakpoint.c (install_breakpoint): Add one more parameter so that
1522 update_global_location_list is called conditionally.
1523 (create_fork_vfork_event_catchpoint): Update.
1524 (create_syscall_event_catchpoint): Update.
1525 (create_breakpoint_sal): Update.
1526 (create_breakpoint_sal): Update. Call do_cleanups before
1527 install_breakpoint.
1528 * ada-lang.c (create_ada_exception_catchpoint): Update.
1529 * breakpoint.h (install_breakpoint): Update declaration.
1530
598cfb71
UW
15312011-11-16 Ulrich Weigand <uweigand@de.ibm.com>
1532
1533 * spu-tdep.c (spu_return_value): Fix handling of
1534 TYPE_CALLING_CONVENTION annotation.
1535
caf4328c
UW
15362011-11-16 Ulrich Weigand <uweigand@de.ibm.com>
1537
1538 * skip.c (skip_function_command): Work around uninitialized
1539 variable warning.
1540
2b54dda2
DM
15412011-11-16 David S. Miller <davem@davemloft.net>
1542
1543 * utils.c (report_command_stats): Cast delta_wall_time 'tv_sec' and
1544 'tv_usec' to long for printf since these fields have a type which
1545 varies.
1546
93bf33fd
DE
15472011-11-15 Doug Evans <dje@google.com>
1548
1549 * buildsym.c (add_symbol_to_list): Delete outdated comment.
1550
9cc10fd1
PK
15512011-11-15 Paul Koning <paul_koning@dell.com>
1552
1553 * python/py-type.c (typy_get_composite): New function.
1554 (typy_nonzero): New function.
1555 (typy_values): Rename from typy_fields.
1556 (typy_fields): New function.
1557 (typy_length): Raise exception if not struct, union, or enum type.
1558 (typy_getitem): Ditto.
1559 (typy_has_key): Ditto.
1560 (typy_make_iter): Ditto.
1561
c011a4f4
DE
15622011-11-15 Doug Evans <dje@google.com>
1563
1963ff96 1564 PR gdb/8367
c011a4f4
DE
1565 * NEWS: Mention new parameter basenames-may-differ.
1566 * dwarf2read.c (dw2_lookup_symtab): Avoid calling gdb_realpath if
1567 ! basenames_may_differ.
1568 * psymtab.c (lookup_partial_symtab): Ditto.
1569 * symtab.c (lookup_symtab): Ditto.
1570 (basenames_may_differ): New global.
1571 (_initialize_symtab): New parameter basenames-may-differ.
1572 * symtab.h (basenames_may_differ): Declare.
1573
865ecab4
LM
15742011-11-15 Pedro Alves <pedro@codesourcery.com>
1575 Luis Machado <lgustavo@codesourcery.com>
1576
1577 * auxv.c: Include observer.h.
1578 (auxv_inferior_data_cleanup): New.
1579 (invalidate_auxv_cache_inf): New.
1580 (invalidate_auxv_cache): New.
1581 (get_auxv_inferior_data): New.
1582 (auxv_inferior_data): New static global.
1583 (auxv_info): New structure.
1584 (target_auxv_search): Use get_auxv_inferior_data instead of
1585 target_read_alloc and don't free cached buffers.
1586 (fprint_target_auxv): Likewise
1587 (_initialize_auxv): Register per-inferior auxv cache and register
1588 observers to invalidate auxv cache when needed.
1589
ed59ded5
DE
15902011-11-14 Doug Evans <dje@google.com>
1591
37acd67c 1592 PR gdb/7200 Make "!" an alias for "shell".
ed59ded5
DE
1593 * NEWS: Add mention.
1594 * cli/cli-cmds.c (init_cli_cmds): Remove xdb_commands condition on
1595 adding "!" command, always add it.
1596 * cli/cli-decode.c (find_command_name_length): Recognize "!" as a
1597 command of length one.
1598
405f8e94
SS
15992011-11-14 Stan Shebs <stan@codesourcery.com>
1600 Kwok Cheung Yeung <kcy@codesourcery.com>
1601
1602 * NEWS: Document shorter fast tracepoints and qTMinFTPILen packet.
1603 * i386-tdep.c (i386_fast_tracepoint_valid_at): Query target for
1604 the minimum instruction size for fast tracepoints.
1605 * target.h (struct target_ops): Add new method
1606 to_get_min_fast_tracepoint_insn_len.
1607 (target_get_min_fast_tracepoint_insn_len): New.
1608 * target.c (update_current_target): Set up new target operation.
1609 * remote.c (remote_write_bytes_aux): Fix typo.
1610 (remote_get_min_fast_tracepoint_insn_len): New.
1611 (init_remote_ops): Initialize new field.
1612
3e05895e
TT
16132011-11-14 Tom Tromey <tromey@redhat.com>
1614
1615 * tracepoint.c (encode_actions_1): Use the location's gdbarch.
1616 (encode_actions): Likewise.
1617
1e4d1764
YQ
16182011-11-14 Yao Qi <yao@codesourcery.com>
1619
1620 * remote.c (struct remote_state): <install_in_trace> new field.
1621 (PACKET_InstallInTrace): New enum value.
1622 (remote_install_in_trace_feature): Support InstallInTrace.
1623 (remote_supports_install_in_trace): Likewise.
1624 (remote_protocol_features): Likewise.
1625 (_initialize_remote): Likewise.
1626 (remote_can_download_tracepoint): New.
1627 * target.h (struct target): New field
1628 `to_can_download_tracepoint'.
1629 (target_can_download_tracepoint): New macro.
1630 * target.c (update_current_target): Update.
1631 * breakpoint.h (struct bp_location): Add comment on field
1632 `duplicate'.
3ccd4ac6
YQ
1633 * breakpoint.c (should_be_inserted): Don't differentiate breakpoint
1634 and tracepoint.
1e4d1764
YQ
1635 (remove_breakpoints): Don't remove tracepoints.
1636 (tracepoint_locations_match ): New.
1637 (breakpoint_locations_match): Call it.
1638 (disable_breakpoints_in_unloaded_shlib): Handle tracepoint.
1639 (download_tracepoint_locations): New.
1640 (update_global_location_list): Call it.
1641 * tracepoint.c (find_matching_tracepoint): Delete.
1642 (find_matching_tracepoint_location): Renamed from
1643 find_matching_tracepoint. Return bp_location rather than
1644 tracepoint.
1645 (merge_uploaded_tracepoints): Set `inserted' field to 1 if
1646 tracepoint is found.
1647
e8ba3115
YQ
16482011-11-14 Yao Qi <yao@codesourcery.com>
1649
1650 * target.h (struct target): <to_download_tracepoint> Change type
1651 of parameter from tracepoint to bp_location.
1652 * target.c (update_current_target): Update.
1653 * tracepoint.c (start_tracing): Update.
1654 * remote.c (remote_download_tracepoint): Remove loop for each location
1655 of a tracepoint.
1656
edcc485a
MR
16572011-11-14 Maciej W. Rozycki <macro@codesourcery.com>
1658
1659 * i386-nat.c (i386_insert_hw_breakpoint): Call
1660 i386_update_inferior_debug_regs.
1661 (i386_remove_hw_breakpoint): Likewise.
1662
3742cc8b
YQ
16632011-11-14 Yao Qi <yao@codesourcery.com>
1664
1665 * breakpoint.c (init_raw_breakpoint): Call
1666 add_location_to_breakpoint to replace duplicated code.
1667 (add_location_to_breakpoint): Adjust the breakpoint's
1668 address prior to allocating a location.
1669
71eba9c2 16702011-11-12 Matt Rice <ratmice@gmail.com>
1671
1672 * macrocmd.c (macro_no_macro_info): New function.
1673 (macro_expand_command): Use macro_no_macro_info.
1674 (macro_expand_once_command): Ditto.
1675 (info_macro_command): Add argument processing,
1676 move info_definitions_command here.
1677 (_initialize_macrocmd): Remove info definitions command.
1678 Add arguments to info macro help text.
1679 * NEWS: Replace info definitions command with new info macro options.
1680
731971ed
KS
16812011-11-11 Keith Seitz <keiths@redhat.com>
1682
1683 PR gdb/12843
1684 * linespec.c (locate_first_half): Keep ':' if it looks
1685 like it could be part of a Windows path starting with
1686 a drive letter.
1687
6953d224
PA
16882011-11-10 Pedro Alves <pedro@codesourcery.com>
1689
1690 * linux-nat.c (linux_nat_wait): Don't force waking up the event
1691 loop when returning a TARGET_WAITKIND_NO_RESUMED.
1692
0c94aa73
PA
16932011-11-10 Pedro Alves <pedro@codesourcery.com>
1694
1695 * target.c (target_waitstatus_to_string): Handle
1696 TARGET_WAITKIND_NO_RESUMED.
1697
f6b47be4
DE
16982011-11-10 Doug Evans <dje@google.com>
1699
74e2f255
DE
1700 * dwarf2read.c (dw2_map_symbol_filenames): New parameter
1701 `need_fullname'.
1702 * psymtab.c (map_symbol_filenames_psymtab): Ditto.
1703 (map_partial_symbol_filenames): Ditto. All callers updated.
1704 * psymtab.h (map_partial_symbol_filenames): Update prototype.
1705 * symfile.h (struct quick_symbol_functions, map_symbol_filenames): New
1706 parameter need_fullname.
1707
256f06f3
DE
1708 * psymtab.c (psymtab_to_fullname): Use cached copy if it exists.
1709 * source.c (symtab_to_fullname): Ditto.
1710
50f182aa
DE
1711 * defs.h (is_cplus_marker, set_demangling_style): Moved to ...
1712 * gdb-demangle.h: ... here. New file.
1713 * demangle.c: #include "gdb-demangle.h".
1714 (_initialize_demangler): Use initialize_file_ftype for prototype.
1715 Move "set demangle" and "set asm-demangle" parameters here from utils.c
1716 (demangle, show_demangle, asm_demangle, show_asm_demangle): Move here
1717 from utils.c
1718 * utils.c: Update. #include "gdb-demangle.h".
1719 * symtab.h (asm_demangle): Delete.
1720 (demangle): Move declaration next to use.
1721 * breakpoint.c: #include "gdb-demangle.h" instead of "demangle.h".
1722 * dwarf2read.c: #include "gdb-demangle.h".
1723 * gnu-v2-abi.c: Ditto.
1724 * jv-typeprint.c: Ditto.
1725 * mdebugread.c: Ditto.
1726 * p-typeprint.c: Ditto.
1727 * stabsread.c: Ditto.
1728 * printcmd.c: Ditto.
1729 (asm_demangle): Delete declaration.
1730 * tui/tui-stack.c: #include "gdb-demangle.h".
1731
f6b47be4
DE
1732 * python/py-type.c (typy_fields_items): Call check_typedef.
1733
22355c90
JB
17342011-11-10 Joel Brobecker <brobecker@adacore.com>
1735
1736 * findvar.c (read_frame_register_value): Read the correct bytes
1737 from registers on big-endian architectures.
1738
bd119cf1 17392011-11-10 Tom Tromey <tromey@redhat.com>
e28cade7
JB
1740
1741 * procfs.c (load_syscalls): Make a cleanup.
1742 (open_procinfo_files): fd==0 is ok.
1743
0a86f364
JB
17442011-11-10 Joel Brobecker <brobecker@adacore.com>
1745
1746 * procfs.c (iterate_over_mappings): Call do_cleanups before
1747 returning.
1748
9bc118a5
DE
17492011-11-09 Doug Evans <dje@google.com>
1750
1751 * gdbtypes.c (check_typedef): Document that this function can
1752 throw an exception.
1753
a7860e76
TT
17542011-11-09 Tom Tromey <tromey@redhat.com>
1755
1756 PR c++/13342:
1757 * valops.c (value_full_object): Return early if real type is
1758 smaller than the enclosing type.
1759
60965737
YQ
17602011-11-08 Yao Qi <yao@codesourcery.com>
1761
1762 * amd64-tdep.c (amd64_relocate_instruction): Make it static.
1763
72a2e3dc
MI
17642011-11-08 Meador Inge <meadori@codesourcery.com>
1765
1766 * arm-tdep.c (thumb_analyze_prologue): Always fallback on the SP
1767 register when the frame can't be determined.
1768 * arm-tdep.c (arm_analyze_prologue): Ditto.
1769
ce3b0ff7
SS
17702011-11-07 Stan Shebs <stan@codesourcery.com>
1771
1772 * MAINTAINERS: Move Michael Snyder to Past Maintainers.
1773
2b914b52
JB
17742011-11-07 Joel Brobecker <brobecker@adacore.com>
1775
1776 * infrun.c (handle_inferior_event): Minor reformatting.
1777
6f809020
DE
17782011-11-05 Doug Evans <dje@google.com>
1779
1780 * source.c (forget_cached_source_info_for_objfile): Move call to
1781 objfile->sf->qf->forget_cached_source_info outside of
1782 ALL_OBJFILE_SYMTABS loop.
1783 (forget_cached_source_info): Delete unused variable `s'.
1784
75d12218
JK
17852011-11-05 Jan Kratochvil <jan.kratochvil@redhat.com>
1786
1787 * i386-nat.c (dr_ref_count): Remove unused variable.
1788
e565b837
DE
17892011-11-05 Doug Evans <dje@google.com>
1790
1791 * main.c (captured_main): Set lim_at_start before calling
1792 make_command_stats_cleanup.
1793
0a1c4d10
DE
17942011-11-04 Doug Evans <dje@google.com>
1795
1796 * utils.c: #include "timeval-utils.h".
1797 (cmd_stats): Rename start_time to start_cpu_time.
1798 New member start_wall_time.
1799 (report_command_stats): Report wall time.
1800 (make_command_stats_cleanup): Record start wall time.
1801
a1d705ee
TT
18022011-11-04 Tom Tromey <tromey@redhat.com>
1803
1804 * cp-namespace.c (cp_lookup_symbol_imports): Reindent.
1805
81de56be
RO
18062011-11-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1807
1808 * coff-pe-read.c: Include defs.h before bfd.h.
1809
3ab1ec27
PM
18102011-11-04 Phil Muldoon <pmuldoon@redhat.com>
1811
1812 PR Python/13345
1813
1814 * python/python.c (python_run_simple_file): Expand tilde in path.
1815
cd829959
PM
18162011-11-04 Phil Muldoon <pmuldoon@redhat.com>
1817
1818 PR Python/13363
1819
1820 * python/py-type.c (typy_lookup_type): Do not return a type in
1821 an exception handler.
1822
080ad648
JK
18232011-11-03 Jan Kratochvil <jan.kratochvil@redhat.com>
1824 Eli Zaretskii <eliz@gnu.org>
1825
1826 * linux-nat.c (_initialize_linux_nat): Improve help
1827 for `info proc stat', `info proc status', `info proc cwd',
1828 `info proc cmdline' and `info proc exe'.
1829
3065dfb6
SS
18302011-11-02 Stan Shebs <stan@codesourcery.com>
1831
1832 String collection for tracepoints.
1833 * NEWS: Mention string collection.
1834 * common/ax.def (tracenz): New bytecode.
1835 * ax-gdb.h (trace_string_kludge): Declare.
1836 * ax-gdb.c: Include valprint.h and c-lang.h.
1837 (trace_string_kludge): New global.
1838 (gen_traced_pop): Add string case.
1839 (agent_command): Add string case.
1840 * tracepoint.h (decode_agent_options): Declare.
1841 * tracepoint.c: Include cli-utils.h.
1842 (decode_agent_options): New function.
1843 (validate_actionline): Call it.
1844 (encode_actions_1): Ditto.
1845 * target.h (struct target_ops): New method to_supports_string_tracing.
1846 (target_supports_string_tracing): New macro.
1847 * target.c (update_current_target): Add to_supports_string_tracing.
1848 * remote.c (struct remote_state): New field string_tracing.
1849 (remote_string_tracing_feature): New function.
1850 (remote_protocol_features): New feature tracenz.
1851 (remote_supports_string_tracing): New function.
1852 (init_remote_ops): Set to_supports_string_tracing.
1853
f179e162
JK
18542011-11-02 Pedro Alves <pedro@codesourcery.com>
1855 Jan Kratochvil <jan.kratochvil@redhat.com>
1856
1857 * linux-nat.c: Include cli/cli-utils.h.
1858 (enum info_proc_what): New.
1859 (linux_nat_info_proc_cmd): Rename to ...
1860 (linux_nat_info_proc_cmd_1): ... here. Remove variables argv and all.
1861 New parameter what. Initialize cmdline_f, cwd_f, exe_f, mappings_f,
1862 status_f and stat_f from WHAT. Throw error on extra parameters.
1863 (linux_nat_info_proc_cmd, linux_nat_info_proc_cmd_mappings)
1864 (linux_nat_info_proc_cmd_stat, linux_nat_info_proc_cmd_status)
1865 (linux_nat_info_proc_cmd_cwd, linux_nat_info_proc_cmd_cmdline)
1866 (linux_nat_info_proc_cmd_exe, linux_nat_info_proc_cmd_all): New.
1867 (_initialize_linux_nat): New variable info_proc_cmdlist. Install `info
1868 proc mappings', `info proc stat`, `info proc status', `info proc cwd',
1869 `info proc cmdline', `info proc exe' and `info proc all' as real
1870 subcommands of `info proc'.
1871
7b35ec7f 18722011-11-01 Justin Lebar <justin.lebar@gmail.com>
1bfeeb0f
JL
1873
1874 * Makefile.in: (SFILES): Add skip.c.
1875 (HFILES_NO_SRCDIR): Add skip.h.
1876 (COMMON_OBS): Add skip.o.
1877 * skip.h, skip.c: New.
1878 * breakpoint.h (set_default_breakpoint): Remove.
1879 (get_sal_arch): Declare.
1880 * breakpoint.c: Remove default_breakpoint_valid,
1881 default_breakpoint_address, default_breakpoint_symtab,
1882 default_breakpoint_line, default_breakpoint_pspace variables.
1883 (get_sal_arch): Make public.
1884 (set_default_breakpoint): Remove.
1885 (parse_breakpoint_sals, create_breakpoint, clear_command,
1886 decode_line_spec_1): Remove uses of default_breakpoint variables;
1887 replaced with function calls into stack.c.
1888 * cli/cli-cmds.h: Add cmd_list_element *skiplist.
1889 * cli/cli-cmds.c: Add skiplist.
1890 (init_cmd_lists): Initialize skiplist.
1891 (init_cli_cmds): Fix comment (classes of commands appear in
1892 alphabetical order).
1893 * infrun.c (handle_inferior_event): Add check that we don't step into
1894 a function whose pc is marked for skip.
1895 * stack.c: Declare last_displayed_sal_valid, last_displayed_pspace,
1896 last_displayed_addr, last_displayed_symtab, last_displayed_line
1897 variables.
1898 (set_last_displayed_sal): New static function.
1899 (print_frame_info): Switch call to set_default_breakpoint to call to
1900 set_last_displayed_sal.
1901 (clear_last_displayed_sal, last_displayed_sal_is_valid,
1902 get_last_displayed_pspace, get_last_displayed_addr,
1903 get_last_displayed_symtab, get_last_displayed_line,
1904 get_last_displayed_sal): New public functions.
1905 * stack.h (clear_last_displayed_sal, last_displayed_sal_is_valid,
1906 get_last_displayed_pspace, get_last_displayed_addr,
1907 get_last_displayed_symtab, get_last_displayed_line,
1908 get_last_displayed_sal): Declare.
1909
b60e1588
JL
19102011-11-01 Justin Lebar <justin.lebar@gmail.com>
1911
1912 * MAINTAINERS (Write After Approval): Add myself to the list.
1913
d31647d2
YQ
19142011-10-29 Yao Qi <yao@codesourcery.com>
1915
1916 * infcmd.c (disconnect_command): Call disconnect_tracing.
1917
b1d96efd
JK
19182011-10-29 Jan Kratochvil <jan.kratochvil@redhat.com>
1919
1920 Code cleanup.
1921 * symtab.c (skip_prologue_sal): Code reformatting.
1922
4dfb2365
JK
19232011-10-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1924
1925 PR symtab/13208
1926 * jit.c (jit_register_code): Remove unused variable my_cleanups. Check
1927 for NULL from bfd_open_from_target_memory. Fix ownership of NBFD and
1928 SAI.
1929
0e5bf2a8
PA
19302011-10-28 Pedro Alves <pedro@codesourcery.com>
1931
1932 * linux-nat.c (linux_nat_filter_event): Remove `options'
1933 parameter, and dead code that used it. If we're handling a
1934 PTRACE_EVENT_EXEC event, and the thread group leader is no longer
1935 in our lwp list, re-add it.
1936 (check_zombie_leaders): New.
1937 (linux_nat_wait_1): Remove `options' and `pid' locals. Always
1938 wait for children with WNOHANG, and always wait for all children.
1939 Don't check for no resumed children upfront. Simplify wait loop.
1940 Check for zombie thread group leaders after handling all wait
1941 statuses. Return TARGET_WAITKIND_NO_RESUMED if there no
1942 unwaited-for children left.
1943 * infrun.c (fetch_inferior_event): Handle TARGET_WAITKIND_NO_RESUMED.
1944 (handle_inferior_event): Handle TARGET_WAITKIND_NO_RESUMED.
1945 (normal_stop): Handle TARGET_WAITKIND_NO_RESUMED.
1946 * target.h (enum target_waitkind) <TARGET_WAITKIND_NO_RESUMED>: New.
1947
821296b7
SA
19482011-10-28 Sterling Augustine <saugustine@google.com>
1949
1950 * psymtab.c (map_symbol_filenames_psymtab): Call QUIT.
1951 * symtab.c (free_completion_list): New function.
1952 (do_free_completion_list): Likewise.
1953 (default_make_symbol_completion_list_break_on): New variable
1954 back_to. Call make_cleanup and discard_cleanups.
1955 (make_source_files_completion_list): Likewise.
1956
03c3051a
PK
19572011-10-28 Paul Koning <paul_koning@dell.com>
1958
1959 * python/lib/gdb/types.py (deep_items): Rename from deepitems.
1960 * NEWS: Mention deep_items.
1961
8e7ebaf5
PA
19622011-10-28 Alen Skondro <askondro@gmail.com>
1963
8de33dc2 1964 * ser-tcp.c [USE_WIN32API] (ETIMEDOUT): Don't define if already
8e7ebaf5
PA
1965 defined.
1966
e0c6ef61
MI
19672011-10-27 Meador Inge <meadori@codesourcery.com>
1968
1969 * MAINTAINERS (Write After Approval): Add myself to the list.
1970
b56d6f31
JB
19712011-10-27 Joel Brobecker <brobecker@adacore.com>
1972
1973 * value.h (read_frame_register_value): Add declaration.
1974 * findvar.c (read_frame_register_value): New function.
1975 (value_from_register): Use read_frame_register_value
1976 instead of get_frame_register_value + value_contents_copy
1977 to get value contents.
1978
d234ef5c
DE
19792011-10-27 Doug Evans <dje@google.com>
1980
1981 * cli/cli-cmds.c (source_script_with_search): Pass full path to
1982 source_script_from_stream if it may have been found on the search path.
1983 * python/py-auto-load.c (source_section_scripts): Pass full path to
1984 source_python_script_for_objfile.
1985 * python/python.c (source_python_script): Delete stream parameter.
1986 All callers updated.
1987 (source_python_script_for_objfile): Ditto.
1988 * python/python-internal.h (source_python_script_for_objfile): Update.
1989 * python/python.h (source_python_script): Update.
1990
d849d44f
TT
19912011-10-27 Tom Tromey <tromey@redhat.com>
1992
1993 * ada-lang.h (ada_start_decode_line_1, ada_finish_decode_line_1)
1994 (ada_sals_for_line): Remove declarations.
1995
2231f1fb
KP
19962011-10-27 Kevin Pouget <kevin.pouget@st.com>
1997
1998 Move unwind reasons to an external .def file
1999 * frame.c (frame_stop_reason_string): Rewrite using
2000 unwind_stop_reasons.def.
2001 * frame.h (enum unwind_stop_reason): Likewise.
2002 * python/py-frame.c (gdbpy_initialize_frames): Likewise.
2003 (gdbpy_frame_stop_reason_string): Use new enum unwind_stop_reason
2004 constants for bound-checking.
2005 * unwind_stop_reasons.def: New file.
2006 * stack.c (backtrace_command_1): Handle UNWIND_FIRST_ERROR as an alias
2007 instead of a distinct value.
2008
f77b9a5d
PM
20092011-10-27 Phil Muldoon <pmuldoon@redhat.com>
2010
2011 PR python/13331
2012
2013 * python/py-function.c (fnpy_call): Check 'args' is not NULL.
2014 (convert_values_to_python): Return on Python tuple allocation
2015 failure. Return NULL on value conversion error.
2016
76dce0be
PM
20172011-10-27 Phil Muldoon <pmuldoon@redhat.com>
2018
2019 * python/py-breakpoint.c (bppy_set_enabled): Use TRY_CATCH.
2020 (bppy_set_task): Ditto.
2021 (bppy_delete_breakpoint): Ditto.
2022 * python/py-symbol.c (gdbpy_lookup_symbol): Ditto.
2023 (gdbpy_lookup_global_symbol): Ditto.
2024 * python/py-lazy-string.c (stpy_convert_to_value): Ditto.
2025 * python/py-frame.c (frapy_is_valid): Ditto.
2026 (frame_info_to_frame_object): Ditto.
2027 * python/py-type.c (typy_lookup_type): Ditto.
2028 (typy_getitem): Ditto.
2029 (typy_has_key): Ditto.
2030 (typy_richcompare): Use TRY_CATCH. Do not return Py_NE on error.
2031
f17b6955
JB
20322011-10-26 Joel Brobecker <brobecker@adacore.com>
2033
2034 * gdbarch.h: Regenerate.
2035
86ba1042
JB
20362011-10-26 Meador Inge <meadori@codesourcery.com>
2037
2038 * gdbarch.sh (function_list): Use 'pstring' when printing
2039 'gcore_bfd_target'.
2040 * gdbarch.c: Regenerate.
2041
c34fd852
UW
20422011-10-26 Ulrich Weigand <uweigand@de.ibm.com>
2043
2044 * regcache.c (registers_changed_ptid): Invalidate thread architecture
2045 and frame caches if PTID refers to all threads of a process.
2046
931bb47f
UW
20472011-10-26 Ulrich Weigand <uweigand@de.ibm.com>
2048
2049 * spu-tdep.c (spu_catch_start): Pass non-NULL breakpoint ops
2050 to create_breakpoint.
2051
88aed45e
UW
20522011-10-26 Ulrich Weigand <uweigand@de.ibm.com>
2053
2054 * ppc-sysv-tdep.c (ppc_sysv_use_opencl_abi): New function.
2055 (ppc_sysv_abi_push_dummy_call): Use it.
2056 (do_ppc_sysv_return_value): Likewise.
2057 (ppc64_sysv_abi_push_dummy_call): Likewise.
2058 (ppc64_sysv_abi_return_value): Likewise.
2059
3eaf3fa2
PK
20602011-10-26 Paul Koning <paul_koning@dell.com>
2061
2062 * python/lib/gdb/types.py (deepitems): New function.
2063
913460fc
PK
20642011-10-25 Paul Koning <paul_koning@dell.com>
2065
2066 PR python/13327
2067
2068 * python/py-value.c (value_to_value_object): Remove fetching of
2069 the value if it was lazy.
2070 (valpy_get_is_lazy): New function.
2071 (valpy_fetch_lazy): New function.
2072
2b5b9d09
JB
20732011-10-24 Joel Brobecker <brobecker@adacore.com>
2074
2075 * ppc-sysv-tdep.c (do_ppc_sysv_return_value): Do not check
2076 FUNC_TYPE's calling convention if FUNC_TYPE is not a function.
2077
e21ffe51
PA
20782011-10-24 Pedro Alves <pedro@codesourcery.com>
2079
2080 * linux-nat.c (linux_handle_extended_wait): When handling a clone
2081 event, in non-stop, if not stopping, make sure the new lwp has
2082 last_resume_kind set to resume_continue. Assert that when we're
2083 resuming the new lwp, its last_resume_kind is resume_continue.
2084
7aee8dc2
PA
20852011-10-24 Pedro Alves <pedro@codesourcery.com>
2086
2087 * infrun.c (handle_inferior_event): Don't assume inferior_ptid is
2088 already set when marking the event thread as not executing in
2089 non-stop mode.
2090
4b4e080e
PA
20912011-10-24 Pedro Alves <pedro@codesourcery.com>
2092
2093 * infrun.c (handle_inferior_event): Add debug output for
2094 TARGET_WAITKIND_NO_HISTORY.
2095
baacfb07
PM
20962011-10-24 Phil Muldoon <pmuldoon@redhat.com>
2097
2098 * NEWS: Move set/show extended-prompt to "New Options". Expand
2099 description. Fix typos.
2100
8432bc41
PM
21012011-10-24 Phil Muldoon <pmuldoon@redhat.com>
2102
2103 PR python/13310
2104
2105 * python/py-param.c (call_doc_function): Correctly deference on
2106 function exit.
2107
6cda5a20
JB
21082011-10-21 Joel Brobecker <brobecker@adacore.com>
2109
2110 * ada-tasks.c (print_ada_task_info): Fix computation of
2111 number of tasks displayed in command output.
2112
13294f7d
JK
21132011-10-20 Jan Kratochvil <jan.kratochvil@redhat.com>
2114 Ulrich Weigand <uweigand@de.ibm.com>
2115
2116 * dwarf2-frame-tailcall.c: Include dwarf2-frame.h.
2117 (dwarf2_tailcall_prev_register_first): Use dwarf2_frame_cfa.
2118 (dwarf2_tailcall_sniffer_first): Remove variable pc_regnum. Replace
2119 gdbarch_pc_regnum and frame_unwind_register_unsigned by
2120 gdbarch_unwind_pc.
2121
460c1c54
CC
21222011-10-20 Cary Coutant <ccoutant@google.com>
2123
2124 * dwarf2read.c (dw2_get_file_names): Move adjustment for type
2125 section to...
2126 (partial_read_comp_unit_head): ...here. Add is_debug_type_section
2127 flag. Adjust all callers.
2128 (process_psymtab_comp_unit): Remove adjustment for type section.
2129
a10964d1
AR
21302011-10-20 Aleksandar Ristovski <aristovski@qnx.com>
2131
2132 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Changed function
2133 arguments by adding OBJFILE. Instead of getting objfile from
2134 symbol's symtab, use new argument OBJFILE.
2135 * cp-support.h (cp_scan_for_anonymous_namespaces): Changed function
2136 arguments by adding OBJFILE.
2137 * gdb/dwarf2read.c (new_symbol_full): Change call to
2138 cp_scan_for_anonymous_namespaces to match new signature.
2139 * gdb/stabsread.c (define_symbol): Change call to
2140 cp_scan_for_anonymous_namespaces to match new signature.
2141
27ca1a5b
PM
21422011-10-20 Phil Muldoon <pmuldoon@redhat.com>
2143
2144 PR python/13308
2145 PR python/13309
2146
2147 * python/py-breakpoint.c (gdbpy_breakpoints): Fix List reference
2148 leak.
2149 * python/py-inferior.c (gdbpy_inferiors): Fix List reference
2150 leak. Delete unused variables.
2151
9df2fbc4
PM
21522011-10-20 Phil Muldoon <pmuldoon@redhat.com>
2153
2154 PR python/12656
2155
2156 * python/py-frame.c (frapy_read_var): Use const struct *block.
2157 * python/py-type.c (typy_lookup_typename): Likewise.
2158 (typy_lookup_type): Likewise.
2159 (typy_legacy_template_argument): Likewise.
2160 (typy_template_argument): Likewise.
2161 (gdbpy_lookup_type): Likewise.
2162 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
2163 * python/py-block.c (blpy_block_object): Likewise.
2164 (blpy_iter): Likewise.
2165 (blpy_get_start): Likewise.
2166 (blpy_get_end): Likewise.
2167 (blpy_get_function): Likewise.
2168 (blpy_get_superblock): Likewise.
2169 (set_block): Likewise.
2170 (block_to_block_object): Likewise.
2171 (block_object_to_block): Likewise.
2172 (blpy_is_valid): Likewise.
2173 (blpy_get_global_block): New function.
2174 (blpy_get_static_block): New function.
2175 (blpy_is_global): New function.
2176 (blpy_is_static): New function.
2177 * blockframe.c (block_innermost_frame): Likewise.
2178 * valops.c (value_of_variable): Likewise.
2179 * frame.h: Update prototypes.
2180 * python/python-internal.h: Likewise.
2181 * value.h: Likewise.
2182
4743b735
CC
21832011-10-19 Cary Coutant <ccoutant@google.com>
2184
2185 * dwarf2read.c (create_debug_types_hash_table): Fix size of
2186 type_offset field.
2187
6caca83c
CC
21882011-10-19 Cary Coutant <ccoutant@google.com>
2189
2190 * dwarf2read.c (peek_abbrev_code): New function.
2191 (dw2_get_file_names): Check for dummy compilation units.
2192 (create_debug_types_hash_table): Likewise.
2193 (process_psymtab_comp_unit): Likewise.
2194 (load_partial_comp_unit): Likewise.
2195 (load_full_comp_unit): Likewise.
2196
43136979
AR
21972011-10-18 Aleksandar Ristovski <aristovski@qnx.com>
2198
2199 * solib-svr4.c (read_program_header): New variables pt_phdr, pt_phdr_p,
2200 initialize them from target PT_PHDR p_vaddr, relocate sect_addr by
2201 pt_phdr if PT_PHDR was found.
2202
0a07729b
TT
22032011-10-17 Joost van der Sluis <joost@cnoc.nl>
2204
2205 * gdbtypes.h: Added TYPE_SAFE_NAME macro to get the name of a
2206 type or "<unnamed type"> when there is no name assigned.
2207 * gnu-v3-abi.c (gnuv3_rtti_type): Use TYPE_SAFE_NAME macro to
2208 avoid a sigint when no name is assigned.
2209
21ae7a4d
JK
22102011-10-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2211
2212 Revert:
2213 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2214 * dwarf2expr.c (ctx_no_read_reg): New function.
2215 * dwarf2expr.h (ctx_no_read_reg): New declaration.
2216 * dwarf2read.c (read_2_signed_bytes, read_4_signed_bytes): Remove.
2217 (decode_locdesc_read_mem, decode_locdesc_ctx_funcs): New.
2218 (decode_locdesc): Replace by a caller of dwarf_expr_eval.
2219
32d1c362
DE
22202011-10-16 Doug Evans <dje@google.com>
2221
2222 * NEWS: Document python gdb.printing.register_pretty_printer's new
2223 `replace' parameter.
2224
da096638
KS
22252011-10-14 Keith Seitz <keiths@redhat.com>
2226
2227 PR c++/13225
2228 * eval.c (evaluate_subexp_standard): Do not construct
2229 an array of types; pass the value array directly to
2230 find_overload_match.
2231 * gdbtypes.h (NULL_POINTER_CONVERSION_BADNESS): Declare.
2232 (rank_function): Take an array of values instead of types.
2233 (rank_one_type): Add struct value * parameter.
2234 * gdbtypes.c (NULL_POINTER_CONVERSION_BADNESS): Define.
2235 (rank_function): For each argument, pass the argument's
2236 value to rank_one_type.
2237 (rank_one_type): Add VALUE parameter.
2238 If the parameter type is a pointer and the argument type
2239 is an integer, return NULL_POINTER_CONVERSION_BADNESS if
2240 VALUE is zero.
2241 Update all calls to rank_one_type, passing NULL for new
2242 VALUE parameter.
2243 * valarith.c (value_user_defined_cpp_op): Do not construct
2244 an array of types; pass the value array directly to
2245 find_overload_match.
2246 * valops.c (find_overload_method_list): Take an array of
2247 values instead of types.
2248 Save the type of OBJP for later use.
2249 Update calls to find_oload_champ, and find_oload_champ_namespace.
2250 (find_oload_champ_namespace): Take an array of values instead
2251 of types.
2252 (find_oload_champ_namespace_loop): Likewise.
2253 (find_oload_champ): Likewise.
2254 (classify_oload_match): Inspect all arguments
2255 until INCOMPATIBLE is found. Return the worst badness found
2256 otherwise.
2257 (compare_parameters): Update call to rank_one_type.
2258 * value.h (find_overload_match): Take an array of values instead
2259 of types.
2260
3957565a
JK
22612011-10-14 Jan Kratochvil <jan.kratochvil@redhat.com>
2262
2263 Drop lazy lm_info reading.
2264 * solib-svr4.c (struct lm_info): Remove field lm. New fields l_addr_p,
2265 l_addr_inferior, l_ld, l_next, l_prev and l_name.
2266 (lm_info_read): New function.
2267 (lm_addr_from_link_map, lm_dynamic_from_link_map): Remove.
2268 (lm_addr_check): Use l_addr_p. No longer use lm_addr_from_link_map and
2269 lm_dynamic_from_link_map.
2270 (lm_next, lm_prev, lm_name): Remove.
2271 (svr4_keep_data_in_core): Use lm_info_read, drop the lm_info entries
2272 initialization incl. read_memory. No longer use lm_name.
2273 (svr4_free_so): Drop lm_info->lm freeing.
2274 (svr4_default_sos): Initialize lminfo with zeroes. Use l_addr_p. Drop
2275 explicit lm_addr and lm initialization.
2276 (svr4_read_so_list): Use lm_info_read, drop the initailization of
2277 fields by hand, incl. read_memory. No longer use lm_next, lm_prev and
2278 lm_name.
2279
cb08cc53
JK
22802011-10-14 Jan Kratochvil <jan.kratochvil@redhat.com>
2281 Paul Pluzhnikov <ppluzhnikov@google.com>
2282
2283 * defs.h (struct so_list): New forward declaration.
2284 (make_cleanup_free_so): New declaration.
2285 * solib-svr4.c (ignore_first_link_map_entry): Remove.
2286 (svr4_free_so): Move the function here from downwards. Handle NULL
2287 so->lm_info.
2288 (svr4_free_library_list): New.
2289 (svr4_read_so_list): New, moved here code from svr4_current_sos.
2290 Use more cleanups. Use new parameter ignore_first instead of
2291 ignore_first_link_map_entry.
2292 (svr4_current_sos): New variable ignore_first, initialize it. New
2293 variable back_to, use it for svr4_free_library_list protection.
2294 (svr4_free_so): Remove - move upwards.
2295 * utils.c: Include solist.h.
2296 (do_free_so, make_cleanup_free_so): New functions.
2297
22c05d8a
JK
22982011-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2299
2300 Fix internal error regression.
2301 * value.c (value_primitive_field): Handle value_optimized_out. Move
2302 packed bitfields comment.
2303
d930d06e
TT
23042011-10-13 Tom Tromey <tromey@redhat.com>
2305
2306 * python/py-breakpoint.c (gdbpy_breakpoint_deleted): Ensure GIL is
2307 always released.
2308
2ff6b080
TT
23092011-10-13 Tom Tromey <tromey@redhat.com>
2310
2311 * python/py-type.c (typy_has_key): Make 'field' const.
2312
d6c5869f
LM
23132011-10-13 Luis Machado <lgustavo@codesourcery.com>
2314
2315 * remote.c (remote_save_trace_data): Invert comparison.
2316
a70633a2
LM
23172011-10-13 Luis Machado <lgustavo@codesourcery.com>
2318
2319 * tracepoint.c (trace_save_command): Use filename instead of
2320 args when printing.
2321
e103e986
JK
23222011-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2323
2324 * dwarf2read.c (dwarf2_fetch_die_location_block): Initialize .data even
2325 if .size is 0.
2326
db24da6d
YQ
23272011-10-13 Yao Qi <yao@codesourcery.com>
2328
2329 PR gdb/12703
2330 * arm-tdep.c (thumb_analyze_prologue): Call thumb_insn_size to check
2331 whether insn is a 32-bit Thumb-2 instruction.
2332 (thumb_in_function_epilogue_p): Likewise.
2333 (thumb_get_next_pc_raw): Likewise.
2334 (arm_breakpoint_from_pc): Likewise.
2335
1d6edc3c
JK
23362011-10-12 Jan Kratochvil <jan.kratochvil@redhat.com>
2337
2338 Fix empty DWARF expressions DATA vs. SIZE conditionals.
2339 * dwarf2loc.c (dwarf2_find_location_expression): Clear *LOCEXPR_LENGTH.
2340 (dwarf_expr_frame_base_1): Indicate unavailability via zero *LENGTH.
2341 (locexpr_tracepoint_var_ref): Check only zero SIZE, not zero DATA.
2342 (loclist_read_variable, loclist_tracepoint_var_ref): Do not check for
2343 zero DATA.
2344 * dwarf2loc.h (struct dwarf2_locexpr_baton): Comment DATA vs. SIZE
2345 validity.
2346 * dwarf2read.c (struct dwarf_block): Comment DATA validity.
2347 (dwarf2_fetch_die_location_block, dwarf2_symbol_mark_computed): Do not
2348 clear DATA on zero SIZE.
2349
adabb602
DE
23502011-10-12 Doug Evans <dje@google.com>
2351
2352 * dwarf2read.c (partial_read_comp_unit_head): Set header->offset,
2353 header->first_die_offset here. All callers updated.
2354
5048e516
JK
23552011-10-12 Jan Kratochvil <jan.kratochvil@redhat.com>
2356
2357 Fix compatibility with texinfo versions older than 4.12.
2358 * Makefile.in (MAKEINFO): Set to @MAKEINFO@.
2359 (MAKEINFOFLAGS, MAKEINFO_EXTRA_FLAGS, MAKEINFO_CMD): New.
2360 (MAKEHTMLFLAGS): Use MAKEINFO_CMD.
2361 (FLAGS_TO_PASS): Add MAKEINFOFLAGS and MAKEINFO_EXTRA_FLAGS.
2362 * configure: Regenerate.
2363 * configure.ac (MAKEINFO): Find it, from libiberty/configure.ac.
2364 (MAKEINFOFLAGS): Pre-set it to --split-size=5000000.
2365 (MAKEINFO_EXTRA_FLAGS): New test for -DHAVE_MAKEINFO_CLICK.
2366
0574c78f
GB
23672011-10-12 Gary Benson <gbenson@redhat.com>
2368
2369 * breakpoint.h (pc_at_non_inline_function): Declare.
2370 * breakpoint.c (is_non_inline_function,
2371 pc_at_non_inline_function): New functions.
2372 * infrun.c (handle_inferior_event): Don't call skip_inline_frames
2373 if the stop is at a location where functions cannot be inlined.
2374
12d9289a
PA
23752011-10-12 Pedro Alves <pedro@codesourcery.com>
2376
2377 * linux-nat.c (stop_and_resume_callback): Don't re-resume LWPs if
2378 the core wanted them stopped, or if they now have a pending event
2379 to report.
ecf8e7f5
PA
2380 (linux_nat_filter_event): New parameter `new_pending_p'. Pass it
2381 down to stop_and_resume_callback.
2382 (linux_nat_wait_1): Always clear `options' when retrying. Handle
2383 having new pending events after calling linux_nat_filter_event.
12d9289a 2384
96408a79
SA
23852011-10-11 Sterling Augustine <saugustine@google.com>
2386
2387 * dwarf2read.c: Undo inadvertent changes in previous commit.
2388
9c6c53f7
SA
23892011-10-11 Sterling Augustine <saugustine@google.com>
2390
2391 * dwarf2read.c (partial_die_parent_scope): Rearrange conditional
2392 logic.
2393
0e8aefe7
UW
23942011-10-11 Ulrich Weigand <ulrich.weigand@linaro.org>
2395
2396 * symfile.c (separate_debug_file_exists): Fix condition.
2397
349d1385
DM
23982011-10-11 David S. Miller <davem@davemloft.net>
2399
2400 * regcache.c (regcache_restore): Do not write unavailable regs, mark
2401 static.
2402 * regcache.h (regcache_restore): Remove declaration.
2403
205c306f
DM
2404 * gdbarch.sh: New field 'long_long_align_bit'.
2405 * gdbarch.c, gdbarch.h: Regenerate.
2406 * i386-tdep.c (i386_gdbarch_init): Set long_long_align_bit to 32.
2407 * jit.c (jit_read_code_entry): Use it to determine correct size offset.
2408
941b2081
JK
24092011-10-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2410
2411 Revert this part of:
2412 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2413 Support @entry in input expressions.
2414 * c-exp.y (ENTRY, unknown_cpp_name): New.
2415 (exp: UNKNOWN_CPP_NAME): Change to `exp: unknown_cpp_name'.
2416 (unknown_cpp_name: UNKNOWN_CPP_NAME, unknown_cpp_name: ENTRY)
2417 (variable: name_not_typename '@' ENTRY, name: ENTRY)
2418 (name_not_typename: ENTRY): New.
2419 (yylex): Recognize ENTRY.
2420
2421 Reimplement @entry in input expressions.
2422 * c-exp.y (ENTRY): New.
2423 (variable: name_not_typename ENTRY): New.
2424 (lex_one_token): Optionally return ENTRY instead of the '@' lex.
2425
3c4d7e12
PA
24262011-10-11 Pedro Alves <pedro@codesourcery.com>
2427
2428 * linux-nat.c (linux_handle_extended_wait): Always dump both the
2429 parent and child's pids as soon as we detect a clone event.
2430 Adjust another debug message.
2431
ea23808b
PA
24322011-10-11 Pedro Alves <pedro@codesourcery.com>
2433
2434 * linux-nat.c (linux_lwp_is_zombie): Return early if the LWP is
2435 not zombie instead of reading the whole file.
2436
904578ed
JK
24372011-10-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2438
2439 Fix separate debuginfo warning with "remote:" access.
2440 * objfiles.h (struct objfile): New fields crc32 and crc32_p.
2441 * symfile.c (get_file_crc): New function with the code moved from ...
2442 (separate_debug_file_exists): ... this function, specifically variables
2443 buffer and count. New variable verified_as_different, set it. Remove
2444 file_crc initialization. Verify also if both files are not the same
2445 manually, if needed.
2446
51370a33
YQ
24472011-10-11 Yao Qi <yao@codesourcery.com>
2448
2449 * arm-tdep.c (arm_get_next_pc_raw): Use read_memory_unsigned_integer
2450 to get address.
2451
0838fb57
DE
24522011-10-10 Doug Evans <dje@google.com>
2453
2454 * linux-thread-db.c (thread_db_new_objfile): Only try to load
2455 libthread_db when we load libpthread or the main symbol file.
2456 (thread_db_inferior_created): New function.
2457 (_initialize_thread_db): Attach inferior_created observer.
2458 * linux-nat.c (linux_child_post_attach): Remove call to
2459 check_for_thread_db.
2460 (linux_child_post_startup_inferior): Ditto.
2461 * objfiles.h (OBJF_MAINLINE): Define.
2462 * symfile.c (symbol_file_add_with_addrs_or_offsets): Pass it to
2463 allocate_objfile when appropriate.
2464
623bd5b7
UW
24652011-10-10 Ulrich Weigand <ulrich.weigand@linaro.org>
2466
2467 PR gdb/13218
2468 * arm-linux-nat.c (os_version, os_major, os_minor, os_release):
2469 Remove unused variables.
2470 (get_linux_version): Remove function.
2471 (_initialize_arm_linux_nat): Do not call it.
2472
79395f92
PA
24732011-10-10 Pedro Alves <pedro@codesourcery.com>
2474
2475 * linux-nat.c (linux_handle_extended_wait): Don't resume the new
2476 new clone lwp if the core asked it to stop. Don't pass on
2477 unexpected signals to the new clone; leave them pending instead.
2478
eff3df78
PA
24792011-10-10 Pedro Alves <pedro@codesourcery.com>
2480
2481 * linux-nat.c (resume_lwp): Remove redundant debug output.
2482
4b60df3d
PA
24832011-10-10 Pedro Alves <pedro@codesourcery.com>
2484
2485 * linux-nat.c (linux_nat_wait_1): Copy the event lwp's
2486 last_resume_kind before clearing it, and use the copy instead to
2487 determine whether to report a SIGSTOP as TARGET_SIGNAL_0. Use
2488 resume_clear_callback in the non-stop path too.
2489
6501578c
YQ
24902011-10-09 Yao Qi <yao@codesourcery.com>
2491
2492 * valprint.c (value_check_printable): Add one parameter OPTIONS.
2493 Honor OPTIONS and VAL's type.
2494 (common_val_print, value_print): Update to pass one more parameter.
2495
5a56e9c5
DE
24962011-10-09 Doug Evans <dje@google.com>
2497
2498 Add new "alias" command.
2499 * NEWS: Mention new command.
2500 * command.h (valid_user_defined_cmd_name_p): Declare.
2501 * defs.h (make_cleanup_dyn_string_delete): Declare.
2502 * utils.c: #include "dyn-string.h".
2503 (do_dyn_string_delete, make_cleanup_dyn_string_delete): New functions.
2504 * cli/cli-cmds.c: #include "dyn-string.h".
2505 (argv_to_dyn_string, valid_command_p, alias_command): New functions.
2506 (init_cli_cmds): Add new command.
2507 * cli/cli-decode.c (valid_user_defined_cmd_name_p): New function.
2508
509f0fd9
JK
25092011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2510
2511 Fix compatibility with older GCCs.
2512 * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Initialize parameter.
2513 * stack.c (read_frame_arg): Initialize val_deref.
2514
2bda9cc5
JK
25152011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2516
2517 Entry values NEWS entries, DWARF disassembly support.
2518 * NEWS: New entry values entry.
2519 (set print entry-values, show print entry-values)
2520 (set debug entry-values, show debug entry-values): New entries.
2521 * dwarf2loc.c (disassemble_dwarf_expression): New parameters start and
2522 indent. Remove variable start. Move header printing out. Respect
2523 INDENT. Support DW_OP_GNU_entry_value.
2524 (locexpr_describe_location_1): Move the header printing here, extend
2525 the disassemble_dwarf_expression passed parameters.
2526
a471c594
JK
25272011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2528
2529 Display @entry parameter values even for references.
2530 * ada-valprint.c (ada_val_print_1) <TYPE_CODE_REF>: Try also
2531 coerce_ref_if_computed.
2532 * c-valprint.c (c_val_print) <TYPE_CODE_REF>: Likewise.
2533 * dwarf2expr.c (dwarf_block_to_dwarf_reg_deref): New function.
2534 (execute_stack_op) <DW_OP_GNU_entry_value>: Add -1 deref_size to the
2535 existing push_dwarf_reg_entry_value call. Add new detection calling
2536 dwarf_block_to_dwarf_reg_deref. Update the error message.
2537 (ctx_no_push_dwarf_reg_entry_value): New parameter deref_size.
2538 * dwarf2expr.h
2539 (struct dwarf_expr_context_funcs) <push_dwarf_reg_entry_value>: Add new
2540 parameter deref_size, describe it in the comment.
2541 (ctx_no_push_dwarf_reg_entry_value): Add new parameter deref_size.
2542 (dwarf_block_to_dwarf_reg_deref): New declaration.
2543 * dwarf2loc.c (dwarf_entry_parameter_to_value): Add new parameter
2544 deref_size, describe it in the function comment. New variables
2545 data_src and size, fetch the alternative block accoring to DEREF_SIZE.
2546 (dwarf_expr_push_dwarf_reg_entry_value): Add new parameter deref_size,
2547 describe it in the function comment. Fetch the alternative block
2548 accoring to DEREF_SIZE.
2549 (entry_data_value_coerce_ref, entry_data_value_copy_closure)
2550 (entry_data_value_free_closure, entry_data_value_funcs): New.
2551 (value_of_dwarf_reg_entry): New variables checked_type, target_type,
2552 outer_val, target_val, val and addr. Try to fetch and create also
2553 referenced value content.
2554 (pieced_value_funcs): NULL value for coerce_ref.
2555 (needs_dwarf_reg_entry_value): Add new parameter deref_size.
2556 * f-valprint.c (f_val_print) <TYPE_CODE_REF>: Try also
2557 coerce_ref_if_computed.
2558 * opencl-lang.c (opencl_value_funcs): NULL value for coerce_ref.
2559 * p-valprint.c (pascal_val_print) <TYPE_CODE_REF>: Likewise.
2560 * stack.c (read_frame_arg): Compare also dereferenced values.
2561 * value.c (value_computed_funcs): Make the parameter v const, use
2562 value_lval_const for it.
2563 (value_lval_const, coerce_ref_if_computed): New function.
2564 (coerce_ref): New variable retval. Call also coerce_ref_if_computed.
2565 * value.h (struct lval_funcs): New field coerce_ref.
2566 (value_computed_funcs): Make the parameter v const.
2567 (value_lval_const, coerce_ref_if_computed): New declarations.
2568
36b11add
JK
25692011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2570
2571 Support @entry in input expressions.
2572 * c-exp.y (ENTRY, unknown_cpp_name): New.
2573 (exp: UNKNOWN_CPP_NAME): Change to `exp: unknown_cpp_name'.
2574 (unknown_cpp_name: UNKNOWN_CPP_NAME, unknown_cpp_name: ENTRY)
2575 (variable: name_not_typename '@' ENTRY, name: ENTRY)
2576 (name_not_typename: ENTRY): New.
2577 (yylex): Recognize ENTRY.
2578 * eval.c (evaluate_subexp_standard): Support also OP_VAR_ENTRY_VALUE.
2579 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
2580 Likewise.
2581 * parse.c (operator_length_standard): Likewise.
2582 * std-operator.def: New operator OP_VAR_ENTRY_VALUE.
2583
3343315b
JK
25842011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2585
2586 Display referenced values in backtraces.
2587 * printcmd.c (print_variable_and_value): Set OPTS.DEREF_REF to 1.
2588 * stack.c (print_frame_arg): Likewise.
2589
ac71a68c
JK
25902011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2591
2592 Make some lval_funcs methods to default on NULL.
2593 * valops.c (value_fetch_lazy): Check if lval_computed read method is
2594 NULL.
2595 (value_assign): Check if lval_computed write method is NULL.
2596 * value.h (struct lval_funcs): Comment NULL values for read and write
2597 methods.
2598
e18b2753
JK
25992011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2600
2601 Display @entry parameter values (without references).
2602 * dwarf2expr.c (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset):
2603 New functions.
2604 * dwarf2expr.h (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset):
2605 New declarations.
2606 * dwarf2loc.c (dwarf2_find_location_expression): Support location list
2607 entry record.
2608 (dwarf_entry_parameter_to_value, value_of_dwarf_reg_entry)
2609 (value_of_dwarf_block_entry, locexpr_read_variable_at_entry): New
2610 functions.
2611 (dwarf2_locexpr_funcs): Install locexpr_read_variable_at_entry.
2612 (loclist_read_variable_at_entry): New function.
2613 (dwarf2_loclist_funcs): Install loclist_read_variable_at_entry.
2614 * dwarf2read.c (read_call_site_scope): Support also DW_OP_fbreg in
2615 DW_AT_location, call dwarf_block_to_sp_offset for it.
2616 * frame.h (print_entry_values_no, print_entry_values_only)
2617 (print_entry_values_preferred, print_entry_values_if_needed)
2618 (print_entry_values_both, print_entry_values_compact)
2619 (print_entry_values_default, print_entry_values): New declarations.
2620 (struct frame_arg): New field entry_kind.
2621 (read_frame_arg): New parameter entryargp.
2622 * mi/mi-cmd-stack.c (list_arg_or_local): New gdb_assert for
2623 arg->entry_kind. Optionally print the `@entry' suffix.
2624 (list_args_or_locals): New variable entryarg, initialize it.
2625 Initialize also entry_kind of arg and entryarg. Conditionalize
2626 list_arg_or_local for arg, add list_arg_or_local for entryarg. Call
2627 xfree for entryarg.error.
2628 * stack.c (print_entry_values_no, print_entry_values_only)
2629 (print_entry_values_preferred, print_entry_values_if_needed)
2630 (print_entry_values_both, print_entry_values_compact)
2631 (print_entry_values_default, print_entry_values_choices)
2632 (print_entry_values): New variables.
2633 (print_frame_arg): New gdb_assert for arg->entry_kind. Optionally
2634 print the `@entry' suffix, possibly in combination for
2635 print_entry_values_compact.
2636 (read_frame_arg): New parameter entryargp, new variables entryval,
2637 entryval_error and val_equal. Read in also entryargp, respect
2638 print_entry_values, compare the values using val_equal, fill in also
2639 argp->entry_kind (together with entryargp->entry_kind).
2640 (print_frame_args): New variable entryarg, initialize it.
2641 Conditionalize print_frame_arg for arg, add print_frame_arg for
2642 entryarg. Call xfree for entryarg.error.
2643 (_initialize_stack): Call add_setshow_enum_cmd for `entry-values'.
2644 * symtab.h (struct symbol_computed_ops): New field
2645 read_variable_at_entry.
2646
93d86cef
JK
26472011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2648
2649 Code reshuffle.
2650 * frame.h (struct frame_arg): New definition.
2651 (read_frame_arg): New declaration.
2652 * mi/mi-cmd-stack.c (list_arg_or_local): New functiom from ...
2653 (list_args_or_locals): ... the code here. New variable arg, call
2654 read_frame_arg and list_arg_or_local with it. Unify the
2655 PRINT_SIMPLE_VALUES and PRINT_ALL_VALUES cases. Call xfree for
2656 arg.error.
2657 * stack.c (print_frame_arg): New functiom from the code of
2658 print_frame_args.
2659 (read_frame_arg): New function.
2660 (print_frame_args): Remove variable val. New variable arg, call
2661 read_frame_arg and print_frame_arg with it. Call xfree for arg.error.
2662
2d6c5dc2
JK
26632011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2664
2665 Protect entry values against self tail calls.
2666 * dwarf2loc.c (VEC (CORE_ADDR), func_verify_no_selftailcall): New.
2667 (dwarf_expr_dwarf_reg_entry_value): Call func_verify_no_selftailcall.
2668
111c6489
JK
26692011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2670
2671 Recognize virtual tail call frames.
2672 * Makefile.in (SFILES): Add dwarf2-frame-tailcall.c.
2673 (HFILES_NO_SRCDIR): Add dwarf2-frame-tailcall.h.
2674 (COMMON_OBS): Add dwarf2-frame-tailcall.o.
2675 * dwarf2-frame-tailcall.c: New file.
2676 * dwarf2-frame-tailcall.h: New file.
2677 * dwarf2-frame.c: Include dwarf2-frame-tailcall.h.
2678 (execute_cfa_program): New function comment. Return INSN_PTR. Reset
2679 REGS.PREV only after CIE execution.
2680 (struct dwarf2_frame_cache): New field tailcall_cache.
2681 (dwarf2_frame_cache): New variables entry_pc, entry_cfa_sp_offset,
2682 entry_cfa_sp_offset_p and instr. Execute FDE instructions in two
2683 parts, try to find entry_cfa_sp_offset. Call
2684 dwarf2_tailcall_sniffer_first.
2685 (dwarf2_frame_prev_register): Call dwarf2_tailcall_prev_register_first
2686 when appropriate.
2687 (dwarf2_frame_dealloc_cache): New function.
2688 (dwarf2_frame_sniffer): Preinitialize cache by dwarf2_frame_cache.
2689 (dwarf2_frame_unwind): Install dwarf2_frame_dealloc_cache.
2690 (dwarf2_signal_frame_unwind): Do not install dwarf2_frame_dealloc_cache.
2691 (dwarf2_append_unwinders): Add dwarf2_tailcall_frame_unwind.
2692 (dwarf2_frame_cfa): Support also dwarf2_tailcall_frame_unwind.
2693 * dwarf2loc.c (func_addr_to_tail_call_list)
2694 (tailcall_dump, call_sitep, VEC (call_sitep), chain_candidate)
2695 (call_site_find_chain_1, call_site_find_chain): New.
2696 * dwarf2loc.h (struct call_site_chain): New.
2697 (call_site_find_chain): New declaration.
2698 * frame.c (get_frame_address_in_block): Support also TAILCALL_FRAME.
2699 * frame.h (enum frame_type): New entry TAILCALL_FRAME.
2700 * python/py-frame.c (gdbpy_initialize_frames): Add TAILCALL_FRAME.
2701 * stack.c (frame_info): Support also TAILCALL_FRAME.
2702
bb984ff1
JK
27032011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2704
2705 Tail call sites reader implementation.
2706 * dwarf2read.c (read_call_site_scope): Recognize DW_AT_GNU_tail_call,
2707 fill in TYPE_TAIL_CALL_LIST.
2708 * gdbtypes.h (struct func_type): New field tail_call_list.
2709 (struct call_site): New field tail_call_next.
2710 (TYPE_TAIL_CALL_LIST): New definition.
2711
8e3b41a9
JK
27122011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2713
2714 Implement basic support for DW_TAG_GNU_call_site.
2715 * block.c: Include gdbtypes.h and exceptions.h.
2716 (call_site_for_pc): New function.
2717 * block.h (call_site_for_pc): New declaration.
2718 * defs.h: Include hashtab.h.
2719 (make_cleanup_htab_delete, core_addr_hash, core_addr_eq): New
2720 declarations.
2721 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Install
2722 ctx_no_push_dwarf_reg_entry_value.
2723 * dwarf2expr.c (read_uleb128, read_sleb128): Support R as NULL.
2724 (dwarf_block_to_dwarf_reg): New function.
2725 (execute_stack_op) <DW_OP_GNU_entry_value>: Implement it.
2726 (ctx_no_push_dwarf_reg_entry_value): New function.
2727 * dwarf2expr.h (struct dwarf_expr_context_funcs): New field
2728 push_dwarf_reg_entry_value.
2729 (ctx_no_push_dwarf_reg_entry_value, dwarf_block_to_dwarf_reg): New
2730 declarations.
2731 * dwarf2loc.c: Include gdbcmd.h.
2732 (dwarf_expr_ctx_funcs): New forward declaration.
2733 (entry_values_debug, show_entry_values_debug, call_site_to_target_addr)
2734 (dwarf_expr_reg_to_entry_parameter)
2735 (dwarf_expr_push_dwarf_reg_entry_value): New.
2736 (dwarf_expr_ctx_funcs): Install dwarf_expr_push_dwarf_reg_entry_value.
2737 (dwarf2_evaluate_loc_desc_full): Handle NO_ENTRY_VALUE_ERROR.
2738 (needs_dwarf_reg_entry_value): New function.
2739 (needs_frame_ctx_funcs): Install it.
2740 (_initialize_dwarf2loc): New function.
2741 * dwarf2loc.h (entry_values_debug): New declaration.
2742 * dwarf2read.c (struct dwarf2_cu): New field call_site_htab.
2743 (read_call_site_scope): New forward declaration.
2744 (process_full_comp_unit): Copy call_site_htab.
2745 (process_die): Support DW_TAG_GNU_call_site.
2746 (read_call_site_scope): New function.
2747 (dwarf2_get_pc_bounds): Support NULL HIGHPC.
2748 (dwarf_tag_name): Support DW_TAG_GNU_call_site.
2749 (cleanup_htab): Delete.
2750 (write_psymtabs_to_index): Use make_cleanup_htab_delete instead of it.
2751 * exceptions.h (enum errors): New NO_ENTRY_VALUE_ERROR.
2752 * gdb-gdb.py (StructMainTypePrettyPrinter): Support
2753 FIELD_LOC_KIND_DWARF_BLOCK.
2754 * gdbtypes.h (enum field_loc_kind): New entry
2755 FIELD_LOC_KIND_DWARF_BLOCK.
2756 (struct main_type): New loc entry dwarf_block.
2757 (struct call_site, FIELD_DWARF_BLOCK, SET_FIELD_DWARF_BLOCK)
2758 (TYPE_FIELD_DWARF_BLOCK): New.
2759 * python/py-type.c: Include dwarf2loc.h.
2760 (check_types_equal): Support FIELD_LOC_KIND_DWARF_BLOCK. New
2761 internal_error call on unknown FIELD_LOC_KIND.
2762 * symtab.h (struct symtab): New field call_site_htab.
2763 * utils.c (do_htab_delete_cleanup, make_cleanup_htab_delete)
2764 (core_addr_hash, core_addr_eq): New functions.
2765
b6cdc2c1
JK
27662011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2767
2768 Code reshuffle.
2769 * gdb-gdb.py (StructMainTypePrettyPrinter): Change
2770 TYPE_SPECIFIC_CALLING_CONVENTION to TYPE_SPECIFIC_FUNC. Move
2771 calling_convention under func_stuff there.
2772 * gdbtypes.c (make_function_type): Call INIT_FUNC_SPECIFIC.
2773 (init_type) <TYPE_CODE_FUNC>: Likewise.
2774 (recursive_dump_type): Change TYPE_SPECIFIC_CALLING_CONVENTION to
2775 TYPE_SPECIFIC_FUNC. New comment for tail_call_list.
2776 * gdbtypes.h (enum type_specific_kind): Change
2777 TYPE_SPECIFIC_CALLING_CONVENTION to TYPE_SPECIFIC_FUNC.
2778 (struct main_type) <type_specific>: Change calling_convention to
2779 func_stuff. Move calling_convention to ...
2780 (struct func_type): ... this new struct.
2781 (INIT_FUNC_SPECIFIC): New #define.
2782 (TYPE_CALLING_CONVENTION): Change calling_convention to func_stuff.
2783
181cebd4
JK
27842011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2785
2786 Fix DW_OP_GNU_implicit_pointer for DWARF32 v3+ on 64-bit arches.
2787 * dwarf2-frame.c (execute_stack_op): Initialize ctx->ref_addr_size.
2788 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_implicit_pointer>: Use
2789 ctx->ref_addr_size. Handle its invalid value.
2790 * dwarf2expr.h (struct dwarf_expr_context): New field ref_addr_size.
2791 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full)
2792 (dwarf2_loc_desc_needs_frame): Initialize ctx->ref_addr_size.
2793 * dwarf2loc.h (dwarf2_per_cu_ref_addr_size): New declaration.
2794 * dwarf2read.c (decode_locdesc): Initialize ctx->ref_addr_size.
2795 (dwarf2_per_cu_ref_addr_size): New function.
2796
c471e790
JK
27972011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2798
2799 Code cleanup.
2800 * dwarf2read.c (per_cu_header_read_in): New function.
2801 (dwarf2_per_cu_addr_size, dwarf2_per_cu_offset_size): Use it, with new
2802 variables cu_header_local and cu_headerp.
2803
741f5e3c
JK
28042011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2805
2806 Fix initial language detection with -readnow.
2807 * dwarf2read.c (dw2_find_symbol_file): Handle OBJF_READNOW case.
2808 * symfile.h (struct quick_symbol_functions): State find_symbol_file
2809 searches only for global symbols.
2810
a73d2258
JK
28112011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2812
2813 Fix printed anonymous struct name.
2814 * dwarf2read.c (fixup_partial_die): Handle for anonymous structs also
2815 DW_TAG_interface_type. Strip for anonymous structs any prefixes.
2816 (anonymous_struct_prefix): New function.
2817 (determine_prefix): New variables retval. Call anonymous_struct_prefix.
2818 (dwarf2_name): Strip for anonymous structs any prefixes.
2819
749fd4ea
DE
28202011-10-07 Doug Evans <dje@google.com>
2821
1fa57852
DE
2822 * python/lib/gdb/printing.py (register_pretty_printer): New argument
2823 `replace'.
2824
690a4937
DE
2825 * python/lib/gdb/printing.py: Whitespace cleanup.
2826
749fd4ea
DE
2827 * python/py-value.c (valpy_call): Initialize ftype to avoid compiler
2828 warning.
2829
4c38200f
PA
28302011-10-07 Pedro Alves <pedro@codesourcery.com>
2831
2832 * linux-nat.h (ALL_LWPS): Remove the ptid parameter.
2833 * amd64-linux-nat.c (amd64_linux_dr_set_control)
2834 (amd64_linux_dr_set_addr, amd64_linux_dr_unset_status): Adjust.
2835 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint)
2836 (arm_linux_remove_hw_breakpoint, arm_linux_insert_watchpoint)
2837 (arm_linux_remove_watchpoint): Adjust.
2838 * i386-linux-nat.c (i386_linux_dr_set_control)
2839 (i386_linux_dr_set_addr, i386_linux_dr_unset_status): Adjust.
2840 * ia64-linux-nat.c (ia64_linux_insert_watchpoint)
2841 (ia64_linux_remove_watchpoint): Adjust.
2842 * mips-linux-nat.c (write_watchpoint_regs): Adjust.
2843 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint)
2844 (ppc_linux_insert_hw_breakpoint, ppc_linux_remove_hw_breakpoint)
2845 (ppc_linux_insert_mask_watchpoint)
2846 (ppc_linux_remove_mask_watchpoint, ppc_linux_insert_watchpoint)
2847 (ppc_linux_remove_watchpoint): Adjust.
2848 * s390-nat.c (s390_insert_watchpoint, s390_remove_watchpoint):
2849 Adjust.
2850
b7ff339d
CV
28512011-10-07 Corinna Vinschen <vinschen@redhat.com>
2852
2853 * windows-nat.c: Include wchar.h to avoid compiler warnings.
2854 (clear_win32_environment): New function for Cygwin to clear out
2855 Win32 environment.
2856 (windows_create_inferior): Prepare new environment from in_env
2857 for Cygwin, too.
2858
f287c1f3
PM
28592011-10-07 Phil Muldoon <pmuldoon@redhat.com>
2860
5631e596 2861 PR python/13264
f287c1f3
PM
2862 * python/py-value.c (valpy_call): Check that arguments are
2863 a tuple.
2864 (is_intlike): Remove call to CHECK_TYPEDEF.
2865 (valpy_nonzero): Catch GDB exceptions.
2866 (valpy_absolute): Ditto.
2867 (valpy_lazy_string): Ditto.
2868 (valpy_call): Ditto.
2869 (valpy_get_is_optimized_out): Ditto.
2870 (valpy_long): Ditto.
2871 (valpy_float): Ditto.
2872 (valpy_int): Call CHECK_TYPEDEF. Catch GDB exceptions.
2873 (valpy_richcompare): Ditto.
2874
03583c20
UW
28752011-10-07 Ulrich Weigand <ulrich.weigand@linaro.org>
2876
2877 * inferior.h (disable_randomization): Declare.
2878 * infrun.c (disable_randomization): New global variable.
2879 (show_disable_randomization): New function.
2880 (set_disable_randomization): Likewise.
2881 (_initialize_infrun): Install set/show disable-randomization
2882 commands.
2883 * linux-nat.c (disable_randomization): Remove.
2884 (show_disable_randomization): Likewise.
2885 (set_disable_randomization): Likewise.
2886 (_initialize_linux_nat): No longer install set/show
2887 disable-randomization commands here.
2888 (linux_nat_supports_disable_randomization): New function.
2889 (linux_nat_add_target): Install it.
2890 * remote.c (PACKET_QDisableRandomization): New enum value.
2891 (remote_protocol_packets): Support QDisableRandomization.
2892 (_initialize_remote): Likewise.
2893 (remote_supports_disable_randomization): New function.
2894 (init_remote_ops): Install it.
2895 (extended_remote_supports_disable_randomization): New function.
2896 (init_extended_remote_ops): Install it.
2897 (extended_remote_disable_randomization): New function.
2898 (extended_remote_create_inferior_1): Call it.
2899 * target.h (struct target_ops): Add to_supports_disable_randomization.
2900 (target_supports_disable_randomization): Add prototype.
2901 * target.c (target_supports_disable_randomization): New function.
2902 (find_default_supports_disable_randomization): Likewise.
2903 (init_dummy_target): Install it.
2904
20c168b5
KP
29052011-10-07 Kevin Pouget <kevin.pouget@st.com>
2906
2907 Allow Python notification of new object-file loadings.
2908 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-newobjfilevent.c.
2909 (SUBDIR_PYTHON_OBS): Add py-newobjfileevent.o.
2910 Add build rule for this file.
2911 * python/py-event.h (emit_new_objfile_event): New prototype.
2912 (newobjfile): New Python event emitter.
2913 * python/py-evts.c (gdbpy_initialize_py_events): Add new_objfile to
2914 Python event registry.
2915 * python/py-inferior.c: Include objfiles.h
2916 (python_new_objfile): New function.
2917 (gdbpy_initialize_inferior): Add python_new_objfile to the new objfile
2918 observers.
2919 * python/py-newobjfileevent.c: New file.
2920 * python-internal.h (gdbpy_initialize_new_objfile_event): New
2921 prototype.
2922 * python/python.c (_initialize_python): Add
2923 gdbpy_initialize_new_objfile_event call.
2924 * NEWS: Add item for new Python event "gdb.newobjfile"
2925
b1c8db38
TG
29262011-10-05 Tristan Gingold <gingold@adacore.com>
2927
2928 * ada-tasks.c (read_atcb): Make ravenscar_task_name static.
2929 Extract the ravenscar task name from the symbol for the atcb.
2930
0dab82e9
PK
29312011-10-04 Paul Koning <paul_koning@dell.com>
2932
2933 * python/py-type.c (typy_make_iter): Add forward declaration.
2934 (typy_fields_items): Use the gdb.Type iterator.
2935
84ad80e6
PK
29362011-10-04 Paul Koning <paul_koning@dell.com>
2937
2938 * NEWS: Add entry for Python gdb.Type mapping methods.
2939
cb6be26b
KP
29402011-10-04 Kevin Pouget <kevin.pouget@st.com>
2941
2942 PR python/12691: Add the inferior to Python exited event
2943 * python/py-exitedevent.c (create_exited_event_object): Add inferior
2944 to exited_event.
2945 * python/py-event.h (emit_exited_event): Likewise
2946 * python/-inferior.c (python_inferior_exit): Likewise
2947
6005b210
JB
29482011-10-03 Joel Brobecker <brobecker@adacore.com>
2949
2950 * ada-tasks.c (print_ada_task_info): Add "thread-id" field
2951 in output of -ada-task-info GDB/MI command.
2952
75082e8c
JB
29532011-10-03 Joel Brobecker <brobecker@adacore.com>
2954
2955 * ada-lang.h (struct inferior): Declare.
2956 (print_ada_task_info): Add declaration.
2957 * ada-tasks.c (print_ada_task_info): Make non-static.
2958 * mi/mi-cmds.c (mi_cmds): Add "ada-task-info".
2959 * mi/mi-cmds.h (mi_cmd_ada_task_info): Add declaration.
2960 * mi/mi-main.c: #include "ada-lang.h".
2961 (mi_cmd_list_features): Add "ada-task-info" to the list
2962 of supported features.
2963 (mi_cmd_ada_task_info): New function.
2964
7ed7d719
JB
29652011-10-03 Joel Brobecker <brobecker@adacore.com>
2966
2967 * python/python.c (python_run_simple_file): New function.
2968 (source_python_script, source_python_script_for_objfile):
2969 Replace call to PyRun_SimpleFile by call to
2970 python_run_simple_file.
2971
3fcaed38
PK
29722011-10-03 Paul Koning <paul_koning@dell.com>
2973
2974 * python/py-value.c (valpy_get_address): Use Py_XINCREF.
2975 (value_to_value_object): Fetch value if it was lazy.
2976
8e5c319d
JK
29772011-10-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2978
2979 Code cleanup.
2980 * solib-svr4.c (svr4_default_sos): Remove variables head and link_ptr.
2981 Rearrange the code for it.
2982
dd11a36c
JB
29832011-10-02 Joel Brobecker <brobecker@adacore.com>
2984
2985 * breakpoint.c (bkpt_print_recreate): Add call to
2986 print_recreate_thread.
2987
723b724b
MF
29882011-09-29 Mike Frysinger <vapier@gentoo.org>
2989
2990 * common/linux-ptrace.h (PTRACE_GETFDPIC, PTRACE_GETFDPIC_EXEC,
2991 PTRACE_GETFDPIC_INTERP): Define.
2992
412946b6
YQ
29932011-09-28 Yao Qi <yao@codesourcery.com>
2994
2995 * symfile.c (add_symbol_file_command): Update message on usage.
2996
a73bb892
PK
29972011-09-28 Paul Koning <paul_koning@dell.com>
2998
2999 * python/py-type.c (make_fielditem, typy_field_names, typy_items)
3000 (typy_length, typy_get, typy_has_key, typy_make_iter)
3001 (typy_iterkeys, typy_iteritems, typy_itervalues, typy_iter)
3002 (typy_iterator_iter, typy_iterator_iternext)
3003 (typy_iterator_dealloc): New functions to implement standard
3004 Python mapping methods on gdb.Type object.
3005 (gdb.TypeIterator): New Python type.
3006 * python/python-internal.h (gdbpy_iter_kind): New enum.
a73bb892 3007
fe10a582
DM
30082011-09-28 David S. Miller <davem@davemloft.net>
3009
3010 * sparc-tdep.h (SPARC_F2_REGNUM, SPARC_F3_REGNUM, SPARC_F4_REGNUM,
3011 SPARC_F5_REGNUM, SPARC_F6_REGNUM, SPARC_F7_REGNUM): New enums.
3012 * sparc-tdep.c (sparc_complex_floating_p): New function.
3013 (sparc32_store_arguments): Handle complex floats.
3014 (sparc32_extract_return_value): Likewise.
3015 (sparc32_store_return_value): Likewise.
3016 (sparc32_stabs_argument_has_addr): Likewise.
3017 * sparc64-tdep.c (sparc64_complex_floating_p): New function.
3018 (sparc64_store_floating_fields): Handle complex floats.
3019 (sparc64_store_arguments): Likewise.
3020 (sparc64_store_return_value): Likewise.
3021
c93dbcba
EZ
30222011-09-28 Eli Zaretskii <eliz@gnu.org>
3023
3024 * windows-nat.c (env_sort) [!__CYGWIN__]: Function restored from
3025 before the change on 2006-12-09.
3026 (windows_create_inferior) [!__CYGWIN__]: Restore code that
3027 generates the environment block for CreateProcessA, modulo the
3028 Cygwin-specific parts that are not needed here.
3029
f00c55f8
TG
30302011-09-27 Tristan Gingold <gingold@adacore.com>
3031
3032 * target.h (enum target_object): Add TARGET_OBJECT_DARWIN_DYLD_INFO.
3033 * solib-darwin.c (DYLD_VERSION_MAX): Update number.
3034 (darwin_solib_get_all_image_info_addr_at_init): New function.
3035 (darwin_solib_read_all_image_info_addr): Likewise.
3036 (darwin_solib_create_inferior_hook): Use the above two functions.
3037 * darwin-nat.c (darwin_execvp): Renames retval to res.
3038 (darwin_read_write_inferior): Update comment.
3039 (darwin_read_dyld_info): New function.
3040 (darwin_xfer_partial): Handle DYLD_INFO.
3041
6710bf39
SS
30422011-09-27 Stan Shebs <stan@codesourcery.com>
3043
3044 Add return address collection for tracepoints.
3045 * tracepoint.c (encode_actions_1): Add case for $_ret.
3046 (validate_actionline): Check for $_ret.
3047 (trace_dump_actions): Ditto.
3048 * ax-gdb.h (gen_trace_for_return_address): Declare.
3049 * ax-gdb.c: Include arch-utils.h.
3050 (gen_trace_for_return_address): New function.
3051 (agent_command): Add return address special case.
3052 * amd64-tdep.c: Include ax.h and ax-gdb.h.
3053 (amd64_gen_return_address): New function.
3054 (amd64_init_abi): Call it.
3055 * i386-tdep.c: Include ax.h and ax-gdb.h.
3056 (i386_gen_return_address): New function.
3057 (i386_init_abi): Call it.
3058 * arch-utils.h (default_gen_return_address): Declare.
3059 * arch-utils.c (default_gen_return_address): New function.
3060 * gdbarch.sh (gen_return_address): New method.
3061 * gdbarch.h, gdbarch.c: Regenerate.
3062
e04e5beb
JM
30632011-09-23 Joseph Myers <joseph@codesourcery.com>
3064
3065 PR gdb/13079
3066 * i386-tdep.c (i386_frame_align): New.
3067 (i386_gdbarch_init): Use i386_frame_align.
3068
f3d6df6d
YQ
30692011-09-23 Yao Qi <yao@codesourcery.com>
3070
3071 * i386-linux-nat.c (i386_linux_resume): Use read_memory_unsigned_integer
3072 to get address.
3073
e69860f1
TG
30742011-09-22 Tristan Gingold <gingold@adacore.com>
3075
3076 * fork-child.c (fork_inferior): Add exec_fun parameter.
3077 Call exec_fun or execvp.
3078 * inferior.h: Adjust prototype.
3079 * gnu-nat.c (gnu_create_inferior): Adjust fork_inferior call.
3080 * inf-ttrace.c (inf_ttrace_create_inferior): Ditto.
3081 * inf-ptrace.c (inf_ptrace_create_inferior): Ditto.
3082 * procfs.c (procfs_create_inferior): Ditto.
3083 * darwin-nat.c (darwin_execvp): New function.
3084 (darwin_create_inferior): Use it.
3085
4b51d87b
YQ
30862011-09-22 Yao Qi <yao@codesourcery.com>
3087
3088 * infrun.c (context_switch): Print debug message when switching to
3089 a different thread.
3090
56b9d9ac
UW
30912011-09-21 Ulrich Weigand <uweigand@de.ibm.com>
3092
3093 * s390-tdep.c (s390_function_arg_pass_by_reference): Handle
3094 complex and vector types.
3095 (s390_return_value_convention): Likewise.
3096
3097 (s390_value_from_register): Call check_typedef.
3098 (extend_simple_arg): Likewise.
3099 (alignment_of): Likewise.
3100 (s390_push_dummy_call): Likewise.
3101 (s390_return_value): Likewise.
3102
b2cd6b29
JM
31032011-09-21 Joseph Myers <joseph@codesourcery.com>
3104
3105 * event-top.c (async_disconnect): If an exception is thrown from
3106 quit_cover, call pop_all_targets. Use TRY_CATCH instead of
3107 catch_errors.
3108 * top.c (quit_cover): Return void and take no arguments.
3109 * top.h (quit_cover): Update prototype.
3110
67ba4e42
JM
31112011-09-20 Joseph Myers <joseph@codesourcery.com>
3112
3113 * mi/mi-main.c (mi_load_progress): Restore saved_uiout value to
3114 current_uiout, not uiout.
3115
562f943b
DE
31162011-09-19 Doug Evans <dje@google.com>
3117
3118 * python/py-auto-load.c (source_section_scripts): Fix file
3119 descriptor leak.
3120 * python/python.c (source_python_script_for_objfile): Tweak comments.
3121
34518530
YQ
31222011-09-18 Yao Qi <yao@codesourcery.com>
3123 Ulrich Weigand <ulrich.weigand@linaro.org>
3124
3125 Support displaced stepping for Thumb 16-bit insns.
3126 * arm-tdep.c (THUMB_NOP) Define.
3127 (thumb_copy_unmodified_16bit): New.
3128 (thumb_copy_b, thumb_copy_bx_blx_reg): New.
3129 (thumb_copy_alu_reg): New.
3130 (arm_copy_svc): Move some common code to ...
3131 (install_svc): ... here. New.
3132 (thumb_copy_svc): New.
3133 (install_pc_relative): New.
3134 (thumb_copy_pc_relative_16bit): New.
3135 (thumb_decode_pc_relative_16bit): New.
3136 (thumb_copy_16bit_ldr_literal): New.
3137 (thumb_copy_cbnz_cbz): New.
3138 (cleanup_pop_pc_16bit_all): New.
3139 (thumb_copy_pop_pc_16bit): New.
3140 (thumb_process_displaced_16bit_insn): New.
3141 (thumb_process_displaced_32bit_insn): New.
3142 (thumb_process_displaced_insn): process thumb instruction.
3143
3144 Support displaced stepping for Thumb 32-bit insns.
3145 * arm-tdep.c (thumb_copy_unmodified_32bit): New.
3146 (thumb2_copy_preload): New.
3147 (thumb2_copy_copro_load_store): New.
3148 (thumb2_copy_b_bl_blx): New.
3149 (thumb2_copy_alu_imm): New.
3150 (thumb2_copy_load_reg_imm): New.
3151 (thumb2_copy_load_literal): New
3152 (thumb2_copy_block_xfer): New.
3153 (thumb_32bit_copy_undef): New.
3154 (thumb_32bit_copy_unpred): New.
3155 (thumb2_decode_ext_reg_ld_st): New.
3156 (thumb2_decode_svc_copro): New.
3157 (decode_thumb_32bit_store_single_data_item): New.
3158 (thumb_copy_pc_relative_32bit): New.
3159 (thumb_decode_pc_relative_32bit): New.
3160 (decode_thumb_32bit_ld_mem_hints): New.
3161 (thumb2_copy_table_branch): New
3162 (thumb_process_displaced_32bit_insn): Process Thumb 32-bit
3163 instructions.
3164
2b16b2e3
YQ
31652011-09-18 Yao Qi <yao@codesourcery.com>
3166
3167 * arm-tdep.c (install_copro_load_store): PC is set 4-byte aligned.
3168 (install_b_bl_blx): Likewise.
3169
0f6f04ba
YQ
31702011-09-17 Yao Qi <yao@codesourcery.com>
3171
3172 * arm-tdep.c (install_ldr_str_ldrb_strb): Renamed to ...
3173 (install_load_store): ... this. New.
3174 Change parameter BYTE to SIZE.
3175 (arm_copy_ldr_str_ldrb_strb): Update caller.
3176 (arm_decode_ld_st_word_ubyte): Update caller.
3177
e2d96639
YQ
31782011-09-17 Yao Qi <yao@codesourcery.com>
3179
3180 * infrun.c (displaced_step_fixup): Move some code ...
3181 (displaced_step_restore): ... here. New function.
3182 (handle_inferior_event): Cleanup displaced stepping state for both
3183 child and parent when get forked or vforked event.
3184 * regcache.c (get_thread_arch_aspace_regcache): New function.
3185 get_thread_arch_regcache (): Call it.
3186
a8123151
JB
31872011-09-16 Joel Brobecker <brobecker@adacore.com>
3188
3189 * ada-tasks.c (print_ada_task_info): New function, merging
3190 short_task_info and info_tasks together. Reimplement using
3191 ui-out instead of printing to stdout directly. Move the code
3192 building and checking the task list here, instead of leaving it
3193 in info_tasks_command.
3194 (info_task): Move the code building and checking the task
3195 list here, instead of leaving it in info_tasks_command.
3196 (info_tasks_command): Delete code building and checking
3197 the task list - moved elsewhere. Update calls to info_tasks
3198 and info_task.
3199
fbf06824
JB
32002011-09-16 Joel Brobecker <brobecker@adacore.com>
3201
3202 * ada-tasks.c (info_task): Delete parameter `from_tty'.
3203
34a0bc90
JB
32042011-09-16 Joel Brobecker <brobecker@adacore.com>
3205
3206 * ada-tasks.c (info_tasks): Delete parameter `from_tty'.
3207
79779fa9
JB
32082011-09-16 Joel Brobecker <brobecker@adacore.com>
3209
3210 * ada-lang.h (ada_build_task_list): Remove parameter
3211 `warn_if_null'.
3212 * ada-tasks.c (ada_build_task_list): Remove parameter
3213 `warn_if_null'. Adjust implementation and documentation.
3214 (valid_task_id, ada_get_environment_task)
3215 iterate_over_live_ada_tasks): Adjust call to ada_build_task_list.
3216 (info_tasks_command): Adjust implementation.
3217 (task_command): Likewise.
3218 * ravenscar-thread.c (ravenscar_find_new_threads): Fix call
3219 to ada_build_task_list.
3220
e225eb91
JB
32212011-09-16 Joel Brobecker <brobecker@adacore.com>
3222
3223 * ada-tasks.c (ada_tasks_check_symbol_table, task_list): Delete.
3224 (enum ada_known_tasks_kind, struct ada_tasks_inferior_data): New.
3225 (ada_tasks_inferior_data_handle): New static global.
3226 (get_ada_tasks_inferior_data): New function.
3227 (ada_get_task_number, get_task_number_from_id, valid_task_id)
3228 (ada_get_environment_task, iterate_over_live_ada_tasks)
3229 (add_ada_task, read_known_tasks_array, read_known_tasks_list):
3230 Adjust.
3231 (ada_set_current_inferior_known_tasks_addr): New function.
3232 (read_known_tasks, ada_build_task_list, short_task_info)
3233 (info_tasks, info_task, info_tasks_command, task_command_1)
3234 (task_command, ada_task_list_changed): Adjust.
3235 (ada_tasks_invalidate_inferior_data): New function.
3236 (ada_normal_stop_observer, ada_new_objfile_observer): Adjust.
3237 (_initialize_tasks): Set ada_tasks_inferior_data_handle.
3238 * ada-lang.h (struct inferior): Add declaration.
3239 (ada_task_list_changed): Update profile.
3240 * remote-wtx-pd.c: #include "inferior.h".
3241 (switch_to_pd_internal): Update call to ada_task_list_changed.
3242
6da9ca05
JB
32432011-09-16 Joel Brobecker <brobecker@adacore.com>
3244
3245 * ada-tasks.c: #include "progspace.h" and "objfiles.h".
3246 (atcb_type, atcb_common_type, atcb_ll_type, atcb_call_type)
3247 (atcb_fieldno): Delete these static globals.
3248 (struct ada_tasks_pspace_data): New struct.
3249 (ada_tasks_pspace_data_handle): New static global.
3250 (get_ada_tasks_pspace_data): New function.
3251 (ada_tasks_invalidate_pspace_data): New function.
3252 (get_tcb_types_info, ptid_from_atcb_common, read_atcb)
3253 (read_known_tasks_list, ada_new_objfile_observer): Adjust.
3254 (_initialize_tasks): Create this module's per-progspace
3255 data handle.
3256
dccd3cbd
JB
32572011-09-16 Joel Brobecker <brobecker@adacore.com>
3258
3259 * ada-tasks.c (struct atcb_fieldnos): Renames struct tcb_fieldnos.
3260
f877b031
TG
32612011-09-16 Tristan Gingold <gingold@adacore.com>
3262
3263 * fork-child.c (fork_inferior): Update comment. Use alloca
3264 instead of xmalloc for argv. Move len and shell_command
3265 declarations in the block where they are used.
3266 Only call execvp. Factorize failure code.
3267
ae0c443d
JK
32682011-09-16 Abhijit Halder <abhijit.k.halder@gmail.com>
3269
3270 Code cleanup.
3271 * parse.c (write_exp_elt): Change argument to pass a pointer of union
3272 `exp_element' instead of an element of the same and make the function
3273 static.
3274 (write_exp_elt_opcode, write_exp_elt_sym, write_exp_elt_block)
3275 (write_exp_elt_objfile, write_exp_elt_longcst, write_exp_elt_dblcst)
3276 (write_exp_elt_decfloatcst, write_exp_elt_type, write_exp_elt_intern):
3277 Change argument of `write_exp_elt' function call.
3278 Remove extra spaces from comments.
3279 * parser-defs.h (write_exp_elt): Remove prototype.
3280
5af65ec0
PK
32812011-09-15 Paul Koning <paul_koning@dell.com>
3282
3283 * python/py-cmd.c (gdbpy_string_to_argv): Decrement reference
3284 count of item appended to list.
3285 * python/py-type.c (typy_fields): Likewise.
3286
72be8ccc
PK
32872011-09-15 Paul Koning <paul_koning@dell.com>
3288
883640a8 3289 * MAINTAINERS (Write After Approval): Add myself to the list.
72be8ccc 3290
92f6badc
KP
32912011-09-15 Kevin Pouget <kevin.pouget@st.com>
3292
3293 PR threads/12628
3294 * linux-fork.c (checkpoint_command): Disallow checkpointing of
3295 processes with multiple threads.
3296 (inf_has_multiple_thread_cb): New function.
3297 (inf_has_multiple_threads): New function.
3298
0672bf41 32992011-09-15 Kevin Pouget <kevin.pouget@st.com>
2aa48337
KP
3300
3301 PR Python/12692 Add gdb.selected_inferior() to Python interface.
3302 * python/py-inferior.c (GdbMethods): New Python method definition.
3303
6839b47f
KP
33042011-09-15 Kevin Pouget <kevin.pouget@st.com>
3305
3306 Handle multiple breakpoint hits in Python interface:
3307 * python/py-bpevent.c (create_breakpoint_event_object): Rename C/Python
3308 variable to breakpoints.
3309 * python/py-stopevent.c (emit_stop_event): Return a Python tuple of
3310 bps instead of single breakpoint. Fix some space typos.
3311 * python/py-stopevent.c (create_breakpoint_event_object): Rename
3312 variable to breakpoints.
3313
672f9b60
KP
33142011-09-15 Kevin Pouget <kevin.pouget@st.com>
3315
3316 * breakpoint.c (describe_other_breakpoints): Do not write 'duplicate'
3317 note if the breakpoint is internal.
3318
43675ae4
KP
33192011-09-15 Kevin Pouget <kevin.pouget@st.com>
3320
0672bf41 3321 * MAINTAINERS (Write After Approval): Add myself to the list
43675ae4 3322
15148d6a
PA
33232011-09-14 Pedro Alves <pedro@codesourcery.com>
3324
3325 * infrun.c (prepare_for_detach, wait_for_inferior)
3326 (fetch_inferior_event): Don't flush the register cache.
3327 * remote.c (struct stop_reply) <regcache>: Add comment.
3328
d83e736b
JK
33292011-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3330
3331 Remove excessive DWARF expressions memory duplication.
3332 * dwarf2loc.c (per_cu_dwarf_call): Remove variable back_to and its use
3333 for block.data.
3334 (indirect_pieced_value): Remove variable result. Remove variable
3335 back_to and its use for baton.data.
3336 (dwarf2_compile_expr_to_ax): Remove variable back_to and its use for
3337 block.data.
3338 * dwarf2read.c (dwarf2_fetch_die_location_block): Remove xmemdup.
3339 Update the function comment.
3340
c65b3e0d
PA
33412011-09-13 Pedro Alves <pedro@codesourcery.com>
3342
3343 * inferior.h (ALL_INFERIORS): New.
3344 * linux-thread-db.c (thread_db_find_new_threads_2): Remove check
3345 for a stopped thread.
3346 (thread_db_find_new_threads): Look for threads in all inferiors.
3347
a1398e0c
PA
33482011-09-13 Pedro Alves <pedro@codesourcery.com>
3349
3350 * breakpoint.c (update_watchpoint): Handle the case of the
3351 watchpoint to update not being in the breakpoint list yet.
3352 (hw_watchpoint_use_count): New, factored out from
3353 hw_watchpoint_used_count.
3354 (hw_watchpoint_used_count): Rename to ...
3355 (hw_watchpoint_used_count_others): ... this. Add `except'
3356 parameter. Don't count resources of `except'. Use
3357 hw_watchpoint_use_count.
3358
30596231
PA
33592011-09-13 Pedro Alves <pedro@codesourcery.com>
3360
3361 * gdbthread.h (enum thread_state): Moved here.
3362 (struct thread_info): Rename `executing_' field to `executing' and
3363 `state_' to `state'.
3364 * thread.c (enum thread_state): Moved to gdbthread.h.
3365 (new_thread, add_thread_silent, delete_thread_1)
3366 (any_live_thread_of_process, thread_alive, set_running)
3367 (set_running, is_thread_state, any_running, is_executing)
3368 (set_executing, finish_thread_state, print_thread_info)
3369 (do_captured_thread_select): Adjust.
3370
bede5f5f
JK
33712011-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3372
3373 Fix compatibility with gcc < 4.3 and non-gcc compilers.
3374 * amd64-tdep.c (amd64_skip_xmm_prologue): Convert 0b constants.
3375
4801a9a3
PA
33762011-09-12 Pedro Alves <pedro@codesourcery.com>
3377 Matt Rice <ratmice@gmail.com>
3378
3379 PR gdb/13175
3380
3381 * interps.c (struct interp) <interpreter_out>: Delete field.
3382 (interp_new): Remove the data and uiout parameters and adjust.
3383 (interp_set): Only set the current_uiout from the interpreter's
3384 uiout after initializing the interpreter. Adjust call to
3385 init_proc.
3386 (interp_ui_out): Adjust to call procs->ui_out_proc.
3387 (interp_data, interp_name): New.
3388 * interps.h (interp_init_ftype): Add `self' parameter.
3389 (interp_ui_out_ftype): New typedef.
3390 (struct interp_procs) <ui_out_proc>: New method pointer.
3391 (interp_new): Remove the data and uiout parameters.
3392 (interp_data, interp_name): Declare.
3393 * tui/tui-interp.c (tui_init): Adjust prototype.
3394 (tui_ui_out): New.
3395 (_initialize_tui_interp): Install tui_ui_out. Don't instanciate
3396 tui_out here. Adjust call to interp_new.
3397 * tui/tui-io.c (tui_initialize_io): Don't set current_uiout here.
3398 * cli/cli-interp.c (cli_interpreter_init): Adjust prototype.
3399 (cli_ui_out): New.
3400 (_initialize_cli_interp): Install it. Adjust call to interp_new.
3401 * mi/mi-common.h (struct mi_interp) <uiout>: New field.
3402 * mi/mi-interp.c (mi_interpreter_init): Adjust prototype.
3403 Initialize mi->uiout depending on the mi_version as extracted from
3404 the interpreter's name.
3405 (mi_ui_out): New.
3406 (_initialize_mi_interp): Install mi_ui_out. Adjust calls to
3407 interp_new. Don't allocate the ui_out's of the interpreters here.
3408
d0afda03 34092011-09-12 Aleksandar Ristovski <aristovski@qnx.com>
59145f8c 3410
d0afda03 3411 * solib.c (solib_used): New function.
59145f8c
AR
3412 (update_solib_list, reload_shared_libraries_1): Check if objfile is used
3413 by another so_list object before freeing it.
3414
bdaf8d4a
JK
34152011-09-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3416
3417 Code cleanup.
3418 * mi/mi-cmd-stack.c (list_args_or_locals): Use enum for the parameter
3419 values.
3420
df15bd07
JK
34212011-09-09 Jan Kratochvil <jan.kratochvil@redhat.com>
3422
3423 Code cleanup.
3424 * amd64-tdep.c (amd64_skip_prologue): Move the XMM code to ...
3425 (amd64_skip_xmm_prologue): ... this new function. Describe its
3426 parameters. No longer use amd64_prologue_line_bug.
3427 * defs.h (producer_is_gcc_ge_4): New declaration.
3428 * dwarf2read.c (producer_is_gcc_ge_4): Move to utils.c.
3429 (process_full_comp_unit): Update its caller. Remove
3430 amd64_prologue_line_bug initialization.
3431 * symtab.h (struct symtab): Remove field amd64_prologue_line_bug.
3432 * utils.c (producer_is_gcc_ge_4): Moved here from dwarf2read.c.
3433
25289eb2
PA
34342011-09-09 Pedro Alves <pedro@codesourcery.com>
3435
3436 * linux-nat.h (enum resume_kind): New.
3437 (struct lwp_info) <last_resume_kind>: New field.
ddf17726
PA
3438 * linux-nat.c (linux_child_follow_fork): Set last_resume_kind to
3439 resume_stop on the new lwp.
25289eb2
PA
3440 (add_lwp): Set last_resume_kind as resume_continue by default.
3441 (lin_lwp_attach_lwp): Set last_resume_kind as resume_stop.
3442 (resume_lwp): New, factored out from resume_callback. Also check
3443 for pending status in lp->waitstatus.
3444 (resume_callback): Reimplement.
3445 (resume_clear_callback): Set last_resume_kind as resume_stop.
3446 (resume_set_callback): Set last_resume_kind as resume_continue.
3447 (linux_nat_resume, linux_handle_extended_wait): Set
3448 last_resume_kind.
3449 (running_callback): Also check lp->waitstatus for pending events.
3450 (select_singlestep_lwp_callback): Check that lp->last_resume_kind
3451 is resume_step.
3452 (stop_and_resume_callback): Don't re-resume if the core wanted the
3453 lwp stopped. Use resume_lwp instead of resume_callback. Avoid
3454 using an invalidated pointer.
3455 (linux_nat_filter_event): Don't discard SIGSTOPs as delayed
3456 SIGSTOPs if the core wanted the LWP to stop.
3457 (linux_nat_wait_1) Don't consume a pending SIGSTOP if the core
3458 wanted the lwp to stop. If the core wanted the lwp to stop, and
3459 the lwp stopped with a SIGSTOP, report a TARGET_SIGNAL_0 instead
3460 of TARGET_SIGNAL_STOP.
3461 (linux_nat_stop_lwp): Don't synchronously wait for the lwp to stop
3462 here. Instead, signal the lwp, and set the last_resume_kind to
3463 resume_stop.
3464
f687d035
PA
34652011-09-09 Pedro Alves <pedro@codesourcery.com>
3466
3467 * linux-nat.c (lin_lwp_attach_lwp): Return 1 (ignore) instead of
3468 -1 (error), if the lwp exits right after attaching.
3469
bc587a6b
DE
34702011-09-08 Doug Evans <dje@google.com>
3471
63d97a20
DE
3472 * py-cmd.c: Some minor formatting fixes.
3473 (gdbpy_parse_command_name): Rename text arg to name, make const.
3474 All callers updated.
3475 * python-internal.h (gdbpy_parse_command_name): Update.
3476
bc587a6b
DE
3477 * cli/cli-decode.c (add_cmd): Add comment.
3478
08711b9a
JK
34792011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3480
3481 PR breakpoints/12435
3482 * amd64-tdep.c (amd64_skip_prologue): New variables start_pc_sal,
3483 next_sal, buf, offset and xmmreg. Advance PC if it sees the PR.
3484 * dwarf2read.c (process_full_comp_unit): Initialize
3485 amd64_prologue_line_bug.
3486 * symtab.h (struct symtab): New field amd64_prologue_line_bug.
3487
b2e7f004
JK
34882011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3489
3490 Fix TUI screen corruption.
3491 * utils.c (fputs_maybe_filtered): Replace !input_from_terminal_p by
3492 batch_flag.
3493
8afd712c
JK
34942011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3495
3496 * findvar.c (read_var_value): Never return NULL, throw an error
3497 instead. Update the function comment. State symbol name in the error
3498 messages.
3499 * python/py-frame.c (frapy_read_var): Remove handling of NULL from
3500 read_var_value.
3501 * stack.c (print_frame_args): Likewise.
3502 * valops.c (value_of_variable): Likewise.
3503
b99b5f66
JK
35042011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3505
3506 * stack.c (print_frame_args): New variable except. Wrap
3507 read_var_value and common_val_print into TRY_CATCH.
3508
85bc8cb7
JK
35092011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3510
3511 * eval.c (evaluate_subexp_standard) <OP_THIS>: Update the value_of_this
3512 caller to value_of_this.
3513 * p-exp.y: Update the value_of_this caller to value_of_this_silent.
3514 Twice.
3515 * valops.c (value_of_this): Remove parameter complain and variable ret.
3516 Update function comment. Never return NULL by this code.
3517 (value_of_this_silent): New function.
3518 * value.h (value_of_this): Remove parameter complain.
3519 (value_of_this_silent): New declaration.
3520
ede1849f
YQ
35212011-09-07 Yao Qi <yao@codesourcery.com>
3522
3523 * gdbthread.h (struct thread_info): Remove fields
3524 `stepping_through_solib_after_catch' and
3525 `stepping_through_solib_catchpoints'.
3526 * infrun.c (init_thread_stepping_state): Update.
3527 (process_event_stop_test, currently_stepping): Update.
3528 (currently_stepping_or_nexting_callback): Update.
3529
6aa27652
YQ
35302011-09-07 Yao Qi <yao@codesourcery.com>
3531
3532 * gdbthread.h (struct thread_info): Comment on field
3533 `step_after_step_resume_breakpoint'.
3534
00db5b94
PA
35352011-09-07 Abhijit Halder <abhijit.k.halder@gmail.com>
3536
3537 * remote.c (remote_console_output): Reindent.
3538
861152be
LM
35392011-09-06 Luis Machado <lgustavo@codesourcery.com>
3540
3541 * frame.c (has_stack_frames): Check for currently selected
3542 traceframe.
3543
ab821bc6
PA
35442011-09-06 Pedro Alves <pedro@codesourcery.com>
3545
3546 * event-top.h (MAXPROMPTS, struct prompts): Delete.
3547 (set_async_annotation_level, set_async_prompt, pop_prompt)
3548 (push_prompt, new_async_prompt): Delete declarations.
3549 * top.h (get_prompt, set_prompt): Change prototype.
3550 (get_prefix, set_prefix, get_suffix, set_suffix): Delete
3551 declarations.
3552 * top.c (command_loop):
3553 (top_prompt): New global.
3554 (get_prefix, set_prefix, get_suffix, ): Delete.
3555 (get_prompt, set_prompt): Rewrite.
3556 (show_new_async_prompt): Rename to ...
3557 (show_prompt): ... this.
3558 (init_main): Adjust. Don't handle --annotate=2 here.
3559 * event-top.c (new_async_prompt): Delete.
3560 (the_prompts): Delete.
3561 (more_to_come): Make static.
3562 (display_gdb_prompt): Use top_level_prompt() to compute the top
3563 level prompt, and don't notify the before_prompt observers
3564 directly here. Always trick readline into not trying to display
3565 the prompt if sync_execution and displaying the primary prompt.
3566 If displaying a local/secondary prompt, always show it, even if
3567 sync_execution is set.
3568 (change_annotation_level): Delete.
3569 (top_level_prompt): New, based on change_annotation_level.
3570 (push_prompt, pop_prompt): Delete.
3571 (async_disable_stdin): No longer pushes prompt.
3572 (command_line_handler): No longer pushes or pops prompt. If more
3573 input is expected, call display_gdb_prompt with an explicit empty
3574 prompt.
3575 (async_stop_sig): Adjust.
3576 (set_async_annotation_level, set_async_prompt): Delete.
3577 * python/python.c (before_prompt_hook): Adjust.
3578
f1d90504
PA
35792011-09-05 Pedro Alves <pedro@codesourcery.com>
3580
3581 PR cli/13110
3582
3583 * infrun.c (fetch_inferior_event): Check if there's a selected
3584 thread before checking if the selected thread is executing.
3585
0f641c01
PA
35862011-09-05 Pedro Alves <pedro@codesourcery.com>
3587
3588 * inf-loop.c (execute_command): Don't check if the current thread
3589 if running before synchronously waiting for command completion.
3590 * infrun.c (fetch_inferior_event): Handle "set exec-done-display"
3591 here.
3592 (normal_stop): Call async_enable_stdin here.
3593 * inf-loop.c (inferior_event_handler): Don't call
3594 async_enable_stdin, nor handle "set exec-done-display" here.
3595
30368258 35962011-09-04 Joel Brobecker <brobecker@adacore.com>
3597
3598 GDB 7.3.1 released.
3599
31916278
JB
36002011-09-04 Joel Brobecker <brobecker@adacore.com>
3601
3602 * NEWS: Change `7.3' into `7.3.1' in `Changes since GDB 7.3'.
3603
e8d56f18
JB
36042011-09-04 Joel Brobecker <brobecker@adacore.com>
3605
3606 * NEWS: Add entry for OpenBSD/NetBSD build failure.
3607
5dd05d8c
JK
36082011-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3609
3610 * config/s390/s390.mh (NATDEPFILES): Add linux-procfs.o dependency.
3611
7d8e6458 36122011-09-02 Matt Rice <ratmice@gmail.com>
3613
3614 PR gdb/10720
3615 * event-top.c (cli_command_loop): Replace readline setup with
3616 direct call to display_gdb_prompt.
3617 (display_gdb_prompt): Do not call observer mechanism during
3618 synchronous execution.
3619
84636d28
PA
36202011-09-02 Pedro Alves <pedro@codesourcery.com>
3621
3622 * linux-nat.c (in_pid_list_p): New.
3623 (linux_record_stopped_pid): Delete.
3624 (lin_lwp_attach_lwp): Check if PTRACE_ATTACH failed because we're
3625 already attached to the LWP. Return an indication if so.
3626 (linux_nat_filter_event): Adjust.
3627 * linux-thread-db.c (attach_thread): Handle lin_lwp_attach_lwp
3628 returning an indication to ignore this thread.
3629
b4a14fd0
PA
36302011-09-02 Pedro Alves <pedro@codesourcery.com>
3631
3632 * top.c: Include interps.h.
3633 (execute_command): If the target can async, but the interpreter is
3634 in sync mode, synchronously wait for the command to finish before
3635 returning.
3636 (execute_command_to_string): Force the interpreter to sync mode.
3637 * infrun.c: Include interps.h.
3638 (fetch_inferior_event): Don't restore the prompt yet if the
3639 interpreter is in sync mode.
3640 * interps.c (interpreter_async): New global.
3641 * interps.h (interpreter_async): Declare.
3642 * inf-loop.c: Include interps.h.
3643 (inferior_event_handler): Don't print the language change or run
3644 breakpoint commands yet if the interpreter in is sync mode.
3645 * main.c (captured_command_loop): Flip the interpreter to async
3646 mode.
3647 * cli/cli-script.c: Include interps.h.
3648 (execute_user_command, while_command, if_command): Force the
3649 interpreter to sync mode.
3650 * python/python.c: Include interps.h.
3651 (python_command, execute_gdb_command): Force the interpreter to
3652 sync mode.
3653
c709acd1
PA
36542011-09-02 Pedro Alves <pedro@codesourcery.com>
3655
3656 * value.c (show_convenience): Catch errors thrown while printing
3657 each internal variable.
3658 * infrun.c (validate_siginfo_access): New function.
3659 (siginfo_value_read, siginfo_value_write): Call it.
3660
9655e943
JK
36612011-09-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3662
3663 Revert:
3664 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
3665 * dwarf2read.c (new_symbol): Handle DW_AT_variable_parameter
3666 attribute.
3667
cb457ae2
YQ
36682011-08-29 Yao Qi <yao@codesourcery.com>
3669
3670 * solib-dsbt.c (bfd_lookup_symbol): Removed.
3671 (cmp_name): New.
3672 (enable_break2): Update caller.
3673 * solib-frv.c (bfd_lookup_symbol): Removed.
3674 (cmp_name): New.
3675 (enable_break2): Update caller.
3676 * solib-pa64.c (bfd_lookup_symbol): Removed.
3677 (cmp_name): New.
3678 * solib-svr4.c (bfd_lookup_symbol): Removed.
3679 (cmp_name_and_sec_flags): New.
3680 (enable_break): Update caller.
3681 * solib.c (gdb_bfd_lookup_symbol_from_symtab): New.
3682 (gdb_bfd_lookup_symbol_from_dyn_symtab): New.
3683 (gdb_bfd_lookup_symbol): New.
3684 * solib.h: Functions declarations.
3685
83d1a36a
YQ
36862011-08-29 Yao Qi <yao@codesourcery.com>
3687
3688 * Makefile.in (ALL_TARGET_OBS): Add tic6x-tdep.o tic6x-linux-tdep.o
3689 and solib-dsbt.o.
3690
c04b3e8f
JK
36912011-08-29 Jan Kratochvil <jan.kratochvil@redhat.com>
3692
3693 Fix TUI stepi on code without symbols.
3694 * tui/tui-stack.c (tui_show_frame_info): Remove error, set LOW for
3695 current PC instead.
3696
cb0fd152
JK
36972011-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3698
3699 Code cleanup.
3700 * mi/mi-cmd-stack.c (list_args_or_locals): Remove stb initialization
3701 and the static keyword.
3702 * mi/mi-cmd-target.c (mi_cmd_target_file_get, mi_cmd_target_file_put):
3703 Make prefix an array.
3704 * mi/mi-cmd-target.c (mi_cmd_target_file_delete): Likewise.
3705 * mi/mi-main.c (get_register): Remove stb initialization and the static
3706 keyword.
3707
91174723
JK
37082011-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3709
3710 Code cleanup - make mi_opt const.
3711 * mi/mi-cmd-break.c (mi_cmd_break_insert, mi_cmd_break_watch): Make
3712 opts const.
3713 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
3714 * mi/mi-cmd-env.c (mi_cmd_env_path): Likewise.
3715 (mi_cmd_env_dir): Likewise.
3716 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Likewise.
3717 (mi_cmd_target_file_put): Likewise.
3718 * mi/mi-cmd-target.c (mi_cmd_target_file_delete): Likewise.
3719 * mi/mi-cmd-var.c (mi_cmd_var_evaluate_expression): Likewise.
3720 * mi/mi-getopt.c (mi_getopt): Make opts and opt const.
3721 (mi_valid_noargs): Make opts const.
3722 * mi/mi-getopt.h (mi_getopt): Make opts and opt const.
3723 * mi/mi-main.c (mi_cmd_list_thread_groups): Make opts const.
3724 (mi_cmd_data_read_memory): Likewise.
3725 (mi_cmd_data_read_memory_bytes): Likewise.
3726 (mi_cmd_data_write_memory): Likewise.
3727
5068b8e8 37282011-08-26 Matt Rice <ratmice@gmail.com>
3729
3730 * solib-sunos.c (allocate_rt_common_objfile): Add missing arguments to
3731 bcache_xmalloc, replace bcache_xmalloc with call to
3732 psymbol_bcache_init for psymbol_cache.
3733 * symfile.c (reread_symbols): Remove extra calls to bcache_xmalloc.
3734
a4f2ce05
JK
37352011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
3736
3737 * inf-loop.c (inferior_event_handler): Add exception_print in
3738 INF_EXEC_COMPLETE.
3739
353d1d73
JK
37402011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
3741
3742 * breakpoint.c (bpstat_do_actions): New variable cleanup_if_error, call
3743 make_bpstat_clear_actions_cleanup and discard_cleanups for it.
3744 * defs.h (make_bpstat_clear_actions_cleanup): New declaration.
3745 * exceptions.c (throw_exception): Remove the bpstat_clear_actions call.
3746 * inf-loop.c (inferior_event_handler): New variable cleanup_if_error,
3747 call make_bpstat_clear_actions_cleanup and discard_cleanups for it.
3748 Call bpstat_clear_actions for failed fetch_inferior_event_wrapper.
3749 * infrun.c (fetch_inferior_event): Call
3750 make_bpstat_clear_actions_cleanup.
3751 * top.c (execute_command): New variable cleanup_if_error, call
3752 make_bpstat_clear_actions_cleanup and discard_cleanups for it.
3753 * utils.c (do_bpstat_clear_actions_cleanup)
3754 (make_bpstat_clear_actions_cleanup): New functions.
3755
3ced3da4
PA
37562011-08-26 Pedro Alves <pedro@codesourcery.com>
3757
3758 * linux-nat.c (linux_child_follow_fork): Don't set lp->resumed on
3759 either the parent or the child forks. Rename a couple locals.
3760
a9f4bb21
PA
37612011-08-26 Pedro Alves <pedro@codesourcery.com>
3762
3763 * linux-nat.c (wait_lwp): Avoid assuming errno is preserved by a
3764 library call. Avoid reading the `status' local if all waitpid
3765 calls failed.
3766
e5798bef
PA
37672011-08-26 Pedro Alves <pedro@codesourcery.com>
3768
3769 * common/linux-osdata.c (get_cores_used_by_process): Don't assume
3770 opening /proc/PID/task always succeeds.
3771
edb2aadf
AR
37722011-08-26 Aleksandar Ristovski <aristovski@qnx.com>
3773
3774 * linespec.c (symtab_from_filename): Check for the end of string.
3775
0d932b2f
MK
37762011-08-26 Marc Khouzam <marc.khouzam@ericsson.com>
3777
3778 PR mi/11912
3779 * varobj.c (cplus_describe_child): Add the keyword
3780 'class' to the output of the method when dealing
3781 with a cast to a base class.
3782
e93ca019
JK
37832011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
3784
3785 No functionality change.
3786 * breakpoint.c (bpstat_clear_actions): Remove the BS parameter, make
3787 function comment a reference, new variables tp and bs, move here code
3788 from throw_exception.
3789 * breakpoint.h (bpstat_clear_actions): Remove the BS parameter,
3790 describe it in the comment.
3791 * exceptions.c (throw_exception): Remove variable tp, move the code for
3792 bpstat_clear_actions to bpstat_clear_actions.
3793
13da1c97
LM
37942011-08-24 Luis Machado <lgustavo@codesourcery.com>
3795
3796 * linux-nat.h (linux_proc_get_tgid): Remove declaration.
3797 * linux-nat.c: Include linux-procfs.h.
3798 (linux_proc_get_tgid): Move to ...
3799 * common/linux-procfs.c: ... here. New file.
3800 * common/linux-procfs.h: New file.
3801 * linux-thread-db.c: Include linux-procfs.h.
3802 * Makefile.in: Update dependencies.
3803 * config/alpha/alpha-linux.mh: Add linux-procfs.o dependency.
3804 * config/arm/linux.mh: Likewise.
3805 * config/i386/linux.mh: Likewise.
3806 * config/i386/linux64.mh: Likewise.
3807 * config/ia64/linux.mh: Likewise.
3808 * config/m32r/linux.mh: Likewise.
3809 * config/m68k/linux.mh: Likewise.
3810 * config/mips/linux.mh: Likewise.
3811 * config/pa/linux.mh: Likewise.
3812 * config/pa/linux.mh: Likewise.
3813 * config/powerpc/linux.mh: Likewise.
3814 * config/powerpc/ppc64-linux.mh: Likewise.
3815 * config/powerpc/spu-linux.mh: Likewise.
3816 * config/sparc/linux.mh: Likewise.
3817 * config/sparc/linux64.mh: Likewise.
3818 * config/xtensa/linux.mh: Likewise.
3819
4e5c165d
HZ
38202011-08-24 Hui Zhu <teawater@gmail.com>
3821
3822 * tracepoint.c (cond_string_is_same): New function.
3823 (find_matching_tracepoint): Add condition check
3824 by cond_string_is_same.
3825
6e2f5b22
JK
38262011-08-23 Josh Matthews <josh@joshmatthews.net>
3827
3828 Fix build error in Darwin port.
3829 * darwin-nat-info.c (darwin_debug_regions_recurse): New variable uiout.
3830
abf85f46
JK
38312011-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3832
3833 Code cleanup.
3834 * breakpoint.c (bpstat_clear_actions): Remove clearing of commands_left.
3835 (command_line_is_silent): New function.
3836 (bpstat_do_actions_1): No longer use commands_left, use
3837 command_line_is_silent for commands.
3838 (bpstat_alloc): Remove clearing of commands_left.
3839 (bpstat_stop_status): Remove initialization of commands_left, use
3840 command_line_is_silent.
3841 * breakpoint.h (struct bpstats): Remove commands_left.
3842
3a93a0c2
KS
38432011-08-18 Keith Seitz <keiths@redhat.com>
3844
3845 PR c++/12266
3846 * cp-name-parser.y (struct demangle_info): Remove unused
3847 member PREV.
3848 (d_grab): Likewise.
3849 (allocate_info): Change return type to struct demangle_info *.
3850 Always allocate a new demangle_info.
3851 Remove unused PREV pointer.
3852 (cp_new_demangle_parse_info): New function.
3853 (cp_demangled_name_parse_free): New function.
3854 (do_demangled_name_parse_free_cleanup): New function.
3855 (make_cleanup_cp_demangled_name_parse_free): New function.
3856 (cp_demangled_name_to_comp): Change return type to
3857 struct demangle_parse_info *.
3858 Allocate a new storage for each call.
3859 (main): Update usage for cp_demangled_name_to_comp
3860 API change.
3861 * cp-support.h (struct demangle_parse_info): New structure.
3862 (cp_demangled_name_to_comp): Update API change for
3863 return type.
3864 (cp_new_demangle_parse_info): Declare.
3865 (make_cleanup_cp_demangled_name_parse_free): New declaration.
3866 (cp_demangled_name_parse_free): Declare.
3867 * cp-support.c (cp_canonicalize_string): Update API
3868 change for cp_demangled_name_to_comp.
3869 (mangled_name_to_comp): Likewise.
3870 Return struct demangle_parse_info, too.
3871 (cp_class_name_from_physname): Update mangled_name_to_comp
3872 API change.
3873 (method_name_from_physname): Likewise.
3874 (cp_func_name): Update API change for cp_demangled_name_to_comp.
3875 (cp_remove_params): Likewise.
3876 * python/py-type.c (typy_legacy_template_argument): Likewise.
3877
3878 * cp-support.h (cp_canonicalize_string_no_typedefs): Declare.
3879 (cp_merge_demangle_parse_infos): Declare.
3880 * cp-support.c (ignore_typedefs): New file global.
3881 (copy_string_to_obstack): New function.
3882 (inspect_type): New function.
3883 (replace_typedefs): New function.
3884 (replace_typedefs_qualified_name): New function.
3885 (cp_canonicalize_string_no_typedefs): New function.
3886 * cp-name-parser.y (cp_merge_demangle_parse_infos): New function.
3887 (cp_new_demangle__parse_info): Allocate and initialize the obstack.
3888 * linespec.c (find_methods): Use cp_canonicalize_string_no_typedefs
3889 instead of cp_canonicalize_string.
3890 (find_method): Likewise.
3891 (decode_compound): Before looking up the name, call
3892 cp_canonicalize_string_no_typedefs.
3893 (decode_variable): Likewise.
3894
fa3a4f15
PM
38952011-08-17 Phil Muldoon <pmuldoon@redhat.com>
3896 Tom Tromey <tromey@redhat.com>
3897 Matt Rice <ratmice@gmail.com>
3898
3899 * python/lib/gdb/prompt.py: New file.
3900 * python/lib/gdb/command/prompt.py: New file.
3901 * NEWS: Document set extended-prompt and gdb.prompt library
3902
85661b1e
YQ
39032011-08-16 Yao Qi <yao@codesourcery.com>
3904
3905 * tic6x-linux-tdep.c: Move const arrays definition from here...
3906 * tic6x-tdep.c: to here ...
3907
11315641
YQ
39082011-08-14 Yao Qi <yao@codesourcery.com>
3909
3910 * NEWS: New port to Texas Instruments TMS320C6x.
3911
8cd64e00
YQ
39122011-08-14 Andrew Jenner <andrew@codesourcery.com>
3913 Bernd Schmidt <bernds@codesourcery.com>
3914 Yao Qi <yao@codesourcery.com>
3915
3916 * configure.tgt: Handle tic6x-*-*linux and tic6x-*-*.
3917 * solib-dsbt.c: New file. Support DSBT shared object.
3918 * tic6x-linux-tdep.c: New file.
3919 * tic6x-tdep.c: New file.
3920 * tic6x-tdep.h: New file.
3921
78d85199
YQ
39222011-08-14 Andrew Stubbs <ams@codesourcery.com>
3923 Yao Qi <yao@codesourcery.com>
3924
3925 * remote.c (PACKET_qXfer_fdpic): New enum value.
3926 (remote_protocol_features): Add qXfer:fdpic:read packet.
3927 (remote_xfer_partial): Support TARGET_OBJECT_FDPIC.
3928 (_initialize_remote): Add set/show remote read-fdpic-loadmap command.
3929 * target.h (enum target_object): Add TARGET_OBJECT_FDPIC.
3930
224bbe49
YQ
39312011-08-14 Yao Qi <yao@codesourcery.com>
3932
3933 Target description for tic6x.
3934 * features/Makefile (WHICH): Add tic6x-c64xp tic6x-c64x tic6x-c62x
3935 tic6x-c64xp-linux tic6x-c64x-linux and tic6x-c62x-linux.
3936 * features/tic6x-c6xp.xml, features/tic6x-core.xml: New.
3937 * features/tic6x-gp.xml, features/tic6x-c62x.xml: New.
3938 * features/tic6x-c64x.xml, features/tic6x-c64xp.xml: New.
3939 * features/tic6x-c62x-linux.xml, features/tic6x-c64x-linux.xml: New.
3940 * features/tic6x-c64xp-linux.xml: New.
3941 * features/tic6x-c64xp.c, features/tic6x-c64x.c: Generated.
3942 * features/tic6x-c62x.c, features/tic6x-c64xp-linux.c: Generated.
3943 * features/tic6x-c64x-linux.c, features/tic6x-c62x-linux.c: Generated.
3944 * regformats/tic6x-c62x.dat, regformats/tic6x-c64x.dat: Generated.
f040079f
HZ
3945 * regformats/tic6x-c64xp.dat,
3946 regformats/tic6x-c62x-linux.dat: Generated.
3947 * regformats/tic6x-c64x-linux.dat,
3948 regformats/tic6x-c64xp-linux.dat: Generated.
224bbe49
YQ
3949 * config/djgpp/fnchange.lst: Add features/tic6x-*.xml and
3950 features/tic6x-*.c files.
3951 Add regformats/tic6x-*.dat files.
3952
457e09f0
DE
39532011-08-12 Doug Evans <dje@google.com>
3954
3955 * NEWS: Mention new "type" attribute of python gdb.Symbol objects.
3956 * python/py-symbol.c (sympy_get_type): New function.
3957 (symbol_object_getset): Add "type".
3958
d20c1c3f
PA
39592011-08-12 Pedro Alves <pedro@codesourcery.com>
3960
3961 PR tui/13073
3962
3963 * tui/tui-regs.c (tui_show_register_group): Skip registers with an
3964 empty name.
3965 (tui_show_register_group): Don't store a byte buffer in the data
3966 element's value.
3967 (tui_register_format): Skip registers with an empty name.
3968 (tui_get_register): Store a struct value in the data element's
3969 value field instead of a byte buffer holding the raw register
3970 contents. Account for optimized-out and unavailable registers
3971 when comparing register contents.
3972
9d8fa392
PA
39732011-08-09 Pedro Alves <pedro@codesourcery.com>
3974
3975 * printcmd.c (current_display_number): Update comment.
3976 (disable_current_display_cleanup): Delete.
3977 (do_one_display): Use make_cleanup_restore_integer. Gracefully
3978 catch errors thrown while evaluating and printing the display.
3979
401a70b8
TT
39802011-08-09 Tom Tromey <tromey@redhat.com>
3981
3982 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Fix typo.
3983
7f86f058
PA
39842011-08-09 Pedro Alves <pedro@codesourcery.com>
3985
94b71cca 3986 * elfread.c (elf_symtab_read): Rework comments.
7f86f058
PA
3987 * maint.c (maintenance_command): Ditto.
3988 * somread.c (som_symtab_read): Ditto.
3989 * solib.c (solib_find, solib_map_sections, update_solib_list)
3990 (solib_add, info_sharedlibrary_command, solib_name_from_address)
3991 (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
94b71cca 3992 (sharedlibrary_command, no_shared_libraries): Ditto.
7f86f058
PA
3993 * solib-irix.c (locate_base, disable_break, enable_break)
3994 (irix_solib_create_inferior_hook, irix_solib_create_inferior_hook)
3995 (irix_current_sos, irix_open_symbol_file_object)
3996 (irix_special_symbol_handling): Ditto.
3997 * solib-sunos.c (locate_base, first_link_map_member)
3998 (sunos_current_sos, disable_break, enable_break)
3999 (sunos_special_symbol_handling, sunos_solib_create_inferior_hook):
4000 Ditto.
4001 * solib-svr4.c (bfd_lookup_symbol, elf_locate_base, locate_base)
4002 (open_symbol_file_object, svr4_current_sos, enable_break)
4003 (svr4_special_symbol_handling, svr4_solib_create_inferior_hook):
4004 Ditto.
4005 * solib-frv.c (bfd_lookup_symbol, open_symbol_file_object)
4006 (frv_current_sos, enable_break, frv_special_symbol_handling)
4007 (frv_solib_create_inferior_hook): Ditto.
4008 * solist.h (struct target_so_ops): Extend the comments of the
4009 special_symbol_handling, current_sos and open_symbol_file_object
4010 methods.
4011
5e239b84
PM
40122011-08-09 Phil Muldoon <pmuldoon@redhat.com>
4013
4014 * python/lib/gdb/__init__.py: Auto-load files in command and
4015 function directories.
4016 * python/python.c (finish_python_initialization): Use
4017 os.path.join.
4018 * python/lib/gdb/command/pretty_printers.py: Self register
4019 command.
4020 * NEWS: Document auto-loading.
4021
b6cede78
JK
40222011-08-08 Jan Kratochvil <jan.kratochvil@redhat.com>
4023
4024 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_STACK>
4025 (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_LITERAL>: New variable
4026 objfile_gdbarch. Fix BFD_ENDIAN_BIG case.
4027
29d0bb3d
TT
40282011-08-08 Tom Tromey <tromey@redhat.com>
4029
4030 * breakpoint.c (clean_up_filters): Remove.
4031 (catch_syscall_split_args): Use VEC_cleanup.
4032
2f7fb8e4
JK
40332011-08-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4034
4035 * cp-name-parser.y (xfree): Wrap the name free by CONCAT2.
4036 (main): Uncomment "Demangling error\n".
4037
d6c10e95
PP
40382011-08-05 Paul Pluzhnikov <ppluzhnikov@google.com>
4039
4040 * solib-target.c (segment_attributes): Make them static.
4041 (section_attributes, library_children, library_attributes): Likewise.
4042 (library_list_children, library_list_attributes): Likesise.
4043 (library_list_elements): Likewise.
4044
af6e93b2
PA
40452011-08-05 Pedro Alves <pedro@codesourcery.com>
4046
4047 * exceptions.c (throw_exception): Don't disable the current
4048 display.
4049 * printcmd.c (disable_current_display_cleanup): New function.
4050 (do_one_display): Install a cleanup to disable the current display
4051 if doing the display throws.
4052
6a1b1664
EZ
40532011-08-05 Eli Zaretskii <eliz@gnu.org>
4054
4055 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Move the
4056 initialization of the tp_new member to the corresponding
4057 gdbpy_initialize_* function.
4058 * python/py-cmd.c (gdbpy_initialize_commands): Likewise.
4059 * python/py-frame.c (gdbpy_initialize_frames): Likewise.
4060 * python/py-function.c (gdbpy_initialize_functions): Likewise.
4061 * python/py-inferior.c (gdbpy_initialize_inferior): Likewise.
4062 * python/py-param.c (gdbpy_initialize_parameters): Likewise.
4063
31a0ae49
JK
40642011-08-05 Jan Kratochvil <jan.kratochvil@redhat.com>
4065
4066 * spu-tdep.c (info_spu_event_command, info_spu_signal_command)
4067 (info_spu_mailbox_list, info_spu_mailbox_command, info_spu_dma_cmdlist)
4068 (info_spu_dma_command, info_spu_proxydma_command): Rename uiout
4069 references to current_uiout.
4070
e0dd0826
PA
40712011-08-04 Pedro Alves <pedro@codesourcery.com>
4072
4073 * event-loop.c (gdb_do_one_event): Remove `data' parameter.
4074 (start_event_loop): Use TRY_CATCH instead of catch_errors.
4075 * event-loop.h (gdb_do_one_event): Remove `data' parameter.
4076 * top.c (gdb_readline_wrapper): Adjust.
4077 * tui/tui-interp.c (tui_command_loop):
4078 (_initialize_tui_interp): Don't install it.
4079
79a45e25
PA
40802011-08-04 Pedro Alves <pedro@codesourcery.com>
4081
4082 * ui-out.h (uiout): Rename to ...
4083 (current_uiout): ... this.
4084 * ui-out.c (uiout): Rename to ...
4085 (current_uiout): ... this.
4086 * ada-lang.c (print_it_exception, print_one_exception)
4087 (print_mention_exception): Adjust.
4088 * breakpoint.c (watchpoint_check): Adjust.
4089 (print_breakpoint_location, print_one_breakpoint, breakpoint_1)
4090 (default_collect_info, watchpoints_info, print_one_catch_fork)
4091 (print_one_catch_vfork, print_one_catch_syscall)
4092 (print_one_catch_exec, mention, print_it_ranged_breakpoint)
4093 (print_one_ranged_breakpoint, print_mention_ranged_breakpoint)
4094 (print_it_watchpoint, print_mention_watchpoint)
4095 (print_it_masked_watchpoint, print_mention_masked_watchpoint)
4096 (print_it_exception_catchpoint, print_one_exception_catchpoint)
4097 (print_mention_exception_catchpoint, say_where, bkpt_print_it)
4098 (bkpt_print_mention, momentary_bkpt_print_it)
4099 (tracepoint_print_mention, update_static_tracepoint)
4100 (tracepoints_info, save_breakpoints): Adjust.
4101 * cli-out.c (field_separator): Adjust.
4102 * cp-abi.c (list_cp_abis, show_cp_abi_cmd): Adjust.
4103 * exceptions.c (catch_exceptions_with_msg, catch_errors): Adjust.
4104 * frame.c (get_current_frame): Adjust.
4105 * infcmd.c (run_command_1, print_return_value): Adjust.
4106 * inferior.c (inferior_command, info_inferiors_command): Adjust.
4107 * infrun.c (print_end_stepping_range_reason): Adjust.
4108 (print_signal_exited_reason, print_exited_reason): Adjust.
4109 (print_signal_received_reason, print_no_history_reason): Adjust.
4110 * interps.c (interp_set): Adjust.
4111 * osdata.c (info_osdata_command): Adjust.
4112 * progspace.c (maintenance_info_program_spaces_command): Adjust.
4113 * remote-fileio.c (remote_fileio_request): Adjust.
4114 * remote.c (show_remote_cmd): Adjust.
4115 * solib.c (info_sharedlibrary_command): Adjust.
4116 * source.c (print_source_lines_base): Adjust.
4117 * stack.c (print_stack_frame): Adjust.
4118 (do_gdb_disassembly, print_frame_info, print_frame): Adjust.
4119 * symfile-mem.c (add_vsyscall_page): Adjust.
4120 * symfile.c (load_progress, generic_load)
4121 (print_transfer_performance): Adjust.
4122 * thread.c (info_threads_command, restore_selected_frame)
4123 (thread_command): Adjust.
4124 * top.c (make_cleanup_restore_ui_file): Adjust.
4125 * tracepoint.c (tvariables_info_1, trace_status_mi, tfind_1)
4126 (print_one_static_tracepoint_marker): Adjust.
4127 * cli/cli-cmds.c (print_disassembly): Adjust.
4128 * cli/cli-decode.c (print_doc_line): Adjust.
4129 * cli/cli-interp.c (safe_execute_command): Adjust.
4130 * cli/cli-logging.c (set_logging_redirect, pop_output_files)
4131 (handle_redirections): Adjust.
4132 * cli/cli-script.c (show_user_1): Adjust.
4133 * cli/cli-setshow.c (do_setshow_command, cmd_show_list): Adjust.
4134 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
4135 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Adjust.
4136 * mi/mi-cmd-env.c (mi_cmd_env_pwd, mi_cmd_env_path)
4137 (mi_cmd_env_dir): Adjust.
4138 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
4139 (print_partial_file_name, mi_cmd_file_list_exec_source_files): Adjust.
4140 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
4141 (mi_cmd_stack_info_depth, mi_cmd_stack_list_args)
4142 (list_args_or_locals): Adjust.
4143 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
4144 (mi_cmd_var_delete, mi_cmd_var_set_format, mi_cmd_var_set_frozen)
4145 (mi_cmd_var_show_format, mi_cmd_var_info_num_children)
4146 (mi_cmd_var_list_children, mi_cmd_var_info_type)
4147 (mi_cmd_var_info_path_expression, mi_cmd_var_info_expression)
4148 (mi_cmd_var_show_attributes, mi_cmd_var_evaluate_expression)
4149 (mi_cmd_var_assign, mi_cmd_var_update, varobj_update_one): Adjust.
4150 * mi/mi-interp.c (mi_on_normal_stop): Adjust.
4151 * mi/mi-main.c (mi_cmd_gdb_exit, mi_cmd_thread_select)
4152 (mi_cmd_thread_list_ids, mi_cmd_thread_info, print_one_inferior)
4153 (list_available_thread_groups, mi_cmd_list_thread_groups)
4154 (mi_cmd_data_list_register_names)
4155 (mi_cmd_data_list_changed_registers)
4156 (mi_cmd_data_list_register_values, get_register)
4157 (mi_cmd_data_evaluate_expression, mi_cmd_data_read_memory)
4158 (mi_cmd_data_read_memory_bytes, mi_cmd_list_features)
4159 (mi_cmd_list_target_features, mi_cmd_add_inferior)
4160 (mi_execute_command, mi_load_progress): Adjust.
4161 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Adjust.
4162 * python/py-auto-load.c (print_script, info_auto_load_scripts):
4163 Adjust.
4164 * python/py-breakpoint.c (bppy_get_commands): Adjust.
4165 * tui/tui-interp.c (tui_command_loop): Adjust.
4166 * tui/tui-io.c (tui_setup_io, tui_initialize_io): Adjust.
4167
f9679975
PA
41682011-08-04 Pedro Alves <pedro@codesourcery.com>
4169
4170 * exceptions.c (struct catcher): Remove saved_uiout field.
4171 (exceptions_state_mc_init): Remove the `func_uiout' parameter, and
4172 no longer save/resvore the global ui_out builder.
4173 (catch_exceptions_with_msg): Save/override/restore the global
4174 ui_out builder manually instead of relying on TRY_CATCH to do it.
4175 (catch_errors): Save/restore the global ui_out builder manually
4176 instead of relying on TRY_CATCH to do it.
4177 * exceptions.h (exceptions_state_mc_init): Remove the `func_uiout'
4178 parameter.
4179 (TRY_CATCH): Adjust.
4180 * cli/cli-interp.c (safe_execute_command): Save/override/restore
4181 the global ui_out builder manually instead of relying on TRY_CATCH
4182 to do it.
4183
934709f0
PW
41842011-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4185
4186 * breakpoint.c (update_global_location_list): Ensure
4187 invariant 'first loc marked not duplicated and inserted,
4188 following locs marked duplicated/not inserted' is respected
4189 for multiple locations at the same address.
4190 (unduplicated_should_be_inserted) New function.
4191 (swap_insertion) New function.
4192
2421fe6f
JK
41932011-08-03 Jan Kratochvil <jan.kratochvil@redhat.com>
4194
4195 * stack.c (print_frame_arguments_choices): Comment typo fix.
4196
3fbb6ffa
TJB
41972011-08-01 Thiago Jung Bauermann <bauerman@br.ibm.com>
4198
4199 Revert:
4200 2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
4201 * breakpoint.c (insert_bp_location): Remove disabled_breaks
4202 argument. Update callers.
4203
fbe12357
PP
42042011-08-01 Paul Pluzhnikov <ppluzhnikov@google.com>
4205
4206 PR gdb/13045
4207 * doublest.c (convert_doublest_to_floatformat): Pass correct
4208 mantissa length to put_field.
4209
b1d288d3
JK
42102011-08-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4211
4212 * stack.c (do_gdb_disassembly): Use RETURN_MASK_ERROR, simplify the
4213 exception_print code path.
4214 (backtrace_command): Remove variable e. Protect arg by make_cleanup in
4215 advance. Simplify memset. Remove TRY_CATCH. Remove explicit xfree.
4216 (backtrace_full_command): Remove variable e. Remove TRY_CATCH.
4217
311b5970
JK
42182011-08-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4219
4220 Code cleanup.
4221 * stack.c (struct print_stack_frame_args, print_stack_frame_stub):
4222 Remove, merge them into ...
4223 (print_stack_frame): ... here with a TRY_CATCH. New variable e, remove
4224 variable args and its initialization.
4225 (struct print_args_args, print_args_stub): Remove, merge them into
4226 print_frame.
4227 (struct gdb_disassembly_stub_args, gdb_disassembly_stub): Remove, merge
4228 them into ...
4229 (do_gdb_disassembly): ... here. Remove variable args and its
4230 initialization.
4231 (print_frame): Remove variable args and its initialization, new
4232 variable gdbarch and numargs (from print_args_stub), inline here
4233 print_args_stub with a TRY_CATCH.
4234 (struct backtrace_command_args, backtrace_command_stub): Remove, merge
4235 them into ...
4236 (backtrace_command, backtrace_full_command): ... here with a TRY_CATCH.
fbe12357 4237 New variable e, remove variable btargs and its initialization.
311b5970 4238
484a26a8
TG
42392011-08-01 Tristan Gingold <gingold@adacore.com>
4240
4241 * darwin-nat.c (darwin_decode_exception_message): Adjust assertion.
4242
c30eee59
TJB
42432011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
4244
4245 * breakpoint.c (insert_bp_location): Document return value.
4246 (insert_breakpoint_locations): Fix documentation.
4247 (remove_breakpoints): Add documentation.
4248
f116073b
TJB
42492011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
4250
4251 * breakpoint.c (insert_bp_location): Remove disabled_breaks
4252 argument. Update callers.
4253
65aa373f
JK
42542011-07-30 Jan Kratochvil <jan.kratochvil@redhat.com>
4255
4256 * stack.c (print_frame_info): Comment typo fix.
4257
a50242fb
SA
42582011-07-29 Sterling Augustine <saugustine@google.com>
4259
4260 * MAINTAINERS (Write After Approval): Add myself to the list.
4261
267f6504
TT
42622011-07-29 Tom Tromey <tromey@redhat.com>
4263
4264 * solib-target.c: Use DEF_VEC_I, not DEF_VEC_O.
4265 (library_list_start_segment): Update.
4266 (library_list_start_section): Update.
4267
00bd41d6
PM
42682011-07-28 Phil Muldoon <pmuldoon@redhat.com>
4269
4270 * varobj.c (value_get_print_value): Move hint check later into the
4271 function. Comment function. Free thevalue before reusing it.
4272
18a46dbe
JK
42732011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
4274 Pedro Alves <pedro@codesourcery.com>
4275
4276 * eval.c (evaluate_subexp_standard): Remove not_lval from all calls of
4277 value_one.
4278 * valops.c (value_one): Remove parameter lv. Do not pass it to itself.
4279 Assert the result kind.
4280 * value.h (value_one): Remove parameter lv.
4281
bb7da2bf
JK
42822011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
4283
4284 Fix crash on lval_computed values.
4285 * valops.c (value_zero): Use not_lval for lval_computed.
4286
2d5213f8
TT
42872011-07-27 Tom Tromey <tromey@redhat.com>
4288
4289 * Makefile.in (HFILES_NO_SRCDIR): Add 'common' prefix for
4290 gdb_assert.h, gdb_locale.h, gdb_dirent.h.
4291
11081198
JK
42922011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
4293
4294 * typeprint.c (_initialize_typeprint): Extend the help of "whatis" and
4295 "ptype" by their typedefs difference.
4296
3c6e0cb3
JK
42972011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
4298
4299 * dwarf2expr.c (ctx_no_read_reg): New function.
4300 * dwarf2expr.h (ctx_no_read_reg): New declaration.
4301 * dwarf2read.c (read_2_signed_bytes, read_4_signed_bytes): Remove.
4302 (decode_locdesc_read_mem, decode_locdesc_ctx_funcs): New.
4303 (decode_locdesc): Replace by a caller of dwarf_expr_eval.
4304
523f3620
JK
43052011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
4306
4307 * dwarf2-frame.c (no_get_frame_base, no_get_frame_cfa, no_get_frame_pc)
4308 (no_get_tls_address, no_dwarf_call, no_base_type): Move to the other
4309 file.
4310 (dwarf2_frame_ctx_funcs): Reference the renamed functions.
4311 * dwarf2expr.c (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
4312 (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
4313 (ctx_no_get_base_type): Move the functions here.
4314 * dwarf2expr.h (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
4315 (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
4316 (ctx_no_get_base_type): New declarations.
4317
24d3216f
TT
43182011-07-27 Tom Tromey <tromey@redhat.com>
4319
4320 * xcoffread.c (dwarf2_xcoff_names): Add 'macro' and 'sentinel'
4321 entries.
4322 * symfile.h (struct dwarf2_debug_sections) <sentinel>: New field.
4323 * dwarf2read.c (dwarf2_elf_names): Add sentinel entry.
4324
5005c8a9
PP
43252011-07-26 Sterling Augustine <saugustine@google.com>
4326
4327 * cli/cli-dump.c (dump_binary_file): Change parameter type to
4328 ULONGEST.
4329 (dump_bfd_file): Likewise.
4330
480a3f21
PW
43312011-07-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4332
4333 * remote.c (remote_region_ok_for_hw_watchpoint): New function.
4334 (remote_hw_watchpoint_length_limit): New variable.
4335 (_initialize_remote) add set,show cmds for this new variable.
4336 * gdb.texinfo: document these new commands.
4337 * NEWS: Mention these new commands.
4338
efa80663
PA
43392011-07-26 Pedro Alves <pedro@codesourcery.com>
4340
4341 * breakpoint.c (works_in_software_mode_watchpoint): Also return
4342 true for software watchpoints.
4343
dbdaa232 43442011-07-26 Joel Brobecker <brobecker@adacore.com>
4345
4346 GDB 7.3 released.
4347
cf2c3c16
TT
43482011-07-26 Tom Tromey <tromey@redhat.com>
4349
4350 * symfile.h (struct dwarf2_debug_sections) <macro>: New field.
4351 * dwarf2read.c (read_indirect_string_at_offset): New function.
4352 (read_indirect_string): Use it.
4353 (dwarf_decode_macro_bytes): New function, taken from
4354 dwarf_decode_macros. Handle DW_MACRO_GNU_*.
4355 (dwarf_decode_macros): Use it. handle DW_MACRO_GNU_*.
4356 (dwarf_parse_macro_header, skip_form_bytes, skip_unknown_opcode):
4357 New functions.
4358 (struct dwarf2_per_objfile) <macro>: New field.
4359 (dwarf2_elf_names): Add .debug_macro.
4360 (dwarf2_macros_too_long_complaint): Add 'section' argument.
4361 (dwarf2_locate_sections): Handle new section.
4362 (read_file_scope): Handle DW_AT_GNU_macros.
4363 (dwarf2_per_objfile_free): Unmap the .debug_macro section.
4364
1a532630
PP
43652011-07-26 Paul Pluzhnikov <ppluzhnikov@google.com>
4366
4367 * NEWS: Mention dcache configuration.
4368 * dcache.c (dcache_set_list, dcache_show_list): New variables.
4369 (dcache_size, dcache_line_size): New variables.
4370 (LINE_SIZE_MASK, XFORM, MASK): Adjust.
4371 (struct dcache_block): Make it expandable.
4372 (struct dcache_struct): New field.
4373 (dcache_invalidate): Discard freelist upon dcache_line_size changes.
4374 (dcache_hit, dcache_alloc, dcache_peek_byte): Adjust.
4375 (dcache_poke_byte, dcache_print_line): Adjust.
4376 (set_dcache_size, set_dcache_line_size): New functions.
4377 (set_dcache_command, show_dcache_command): New functions.
4378 (_initialize_dcache): Add new commands.
4379
2eff07b3
PP
43802011-07-26 Paul Pluzhnikov <ppluzhnikov@google.com>
4381
4382 * progspace.h (struct program_space): Add solib_add_generation.
4383 * infcmd.c (post_create_inferior): Only call solib_add if not
4384 already done.
4385 * solib.c (solib_add): Increment solib_add_generation.
4386
543305c9
JK
43872011-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
4388
4389 Fix implicit pointer offsets.
4390 * dwarf2loc.c (indirect_pieced_value): Comment byte_offset. Use also
4391 ptr.OFFSET.
4392
c0a91b2b
TT
43932011-07-25 Tom Tromey <tromey@redhat.com>
4394
4395 * ada-lang.c (ada_exception_breakpoint_ops): Make return type
4396 const.
4397 (ada_exception_sal): Make 'ops' const.
4398 (ada_decode_exception_location): Likewise.
4399 (ada_decode_assert_location): Likewise.
4400 (catch_assert_command): Update.
4401 (catch_ada_exception_command): Update.
4402 (create_ada_exception_catchpoint): Make 'ops' const.
4403 * breakpoint.c (set_raw_breakpoint_without_location)
4404 (set_raw_breakpoint, momentary_breakpoint_from_master): Make 'ops'
4405 const.
4406 (create_internal_breakpoint): Update.
4407 (init_raw_breakpoint_without_location): Make 'ops' const.
4408 (init_raw_breakpoint, init_catchpoint)
4409 (create_fork_vfork_event_catchpoint)
4410 (create_syscall_event_catchpoint, init_breakpoint_sal)
4411 (create_breakpoint_sal, create_breakpoints_sal)
4412 (create_breakpoint, init_ada_exception_breakpoint): Likewise.
4413 * breakpoint.h (struct breakpoint) <ops>: Now const.
4414 (init_ada_exception_breakpoint, create_breakpoint): Make 'ops'
4415 const.
4416
6cb9b55b
PP
44172011-07-25 Paul Pluzhnikov <ppluzhnikov@google.com>
4418
4419 * linux-thread-db.c (thread_from_lwp): Initialize th.th_unique.
4420
d9b3f62e
PA
44212011-07-25 Pedro Alves <pedro@codesourcery.com>
4422
4423 * breakpoint.h (print_recreate_thread): Declare.
4424 (struct breakpoint): Move step_count, pass_count,
4425 number_on_target, static_trace_marker_id,
4426 static_trace_marker_id_idx ...
4427 (struct tracepoint): ... to this new struct.
4428 (get_tracepoint, get_tracepoint_by_number_on_target)
4429 (get_tracepoint_by_number): Change return type to struct
4430 tracepoint pointer.
4431 * breakpoint.c (is_tracepoint_type): New, factored out from
4432 is_tracepoint.
4433 (is_tracepoint): Adjust.
4434 (print_one_breakpoint_location): Cast to struct tracepoint as
4435 necessary, and adjust.
4436 (print_recreate_catch_fork, print_recreate_catch_vfork)
4437 (print_recreate_catch_syscall, print_recreate_catch_exec): Call
4438 print_recreate_thread.
4439 (init_breakpoint_sal): New, factored out from
4440 create_breakpoint_sal.
4441 (create_breakpoint_sal): Reimplement.
4442 (create_breakpoint): Allocate a struct tracecepoint if the caller
4443 wanted a tracepoint. Use init_breakpoint_sal and
4444 install_breakpoint.
4445 (print_recreate_ranged_breakpoint, print_recreate_watchpoint)
4446 (print_recreate_masked_watchpoint)
4447 (print_recreate_exception_catchpoint): Call print_recreate_thread.
4448 (tracepoint_print_one_detail): Adjust.
4449 (tracepoint_print_recreate): Adjust. Call print_recreate_thread.
4450 Dump the pass count here.
4451 (update_static_tracepoint): Adjust.
4452 (addr_string_to_sals): Adjust.
4453 (create_tracepoint_from_upload): Adjust. Change return type to
4454 struct tracepoint pointer.
4455 (trace_pass_set_count): Change parameter type to struct tracepoint
4456 pointer, and adjust.
4457 (trace_pass_command): Adjust.
4458 (get_tracepoint, get_tracepoint_by_number_on_target)
4459 (get_tracepoint_by_number): Change return type to struct
4460 tracepoint pointer, and adjust.
4461 (print_recreate_thread): New, factored out from save_breakpoints.
4462 (save_breakpoints): Don't print thread and task and passcount
4463 recreation here.
4464 * remote.c (remote_download_tracepoint): Adjust.
4465 * tracepoint.c (trace_actions_command, validate_actionline)
4466 (start_tracing, tfind_1, trace_find_tracepoint_command)
4467 (trace_dump_command): Adjust.
4468 (find_matching_tracepoint): Change return type to struct
4469 tracepoint pointer, and adjust.
4470 (merge_uploaded_tracepoints, tfile_get_traceframe_address)
4471 (tfile_trace_find, tfile_fetch_registers): Adjust.
4472 * tracepoint.h (create_tracepoint_from_upload): Change return type
4473 to struct tracepoint pointer.
4474 * ada-lang.c (print_recreate_exception): Call
4475 print_recreate_thread.
4476 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Adjust.
4477
3a5c3e22
PA
44782011-07-25 Pedro Alves <pedro@codesourcery.com>
4479
4480 * breakpoint.h (struct breakpoint): Move ops as first field. Move
4481 exp_string, exp_string_reparse, exp, exp_valid_block, cond_exp,
4482 cond_exp_valid_block, val, val_valid, watchpoint_frame,
4483 watchpoint_thread, watchpoint_triggered ...
4484 (struct watchpoint): ... to this new struct.
4485 (is_watchpoint): Declare.
4486 (install_breakpoint): Add new `internal' parameter.
4487 * breakpoint.c (is_watchpoint): Delete declaration.
4488 (set_breakpoint_condition): Handle watchpoints.
4489 (is_watchpoint): Make public.
4490 (watchpoint_in_thread_scope): Change parameter type to struct
4491 watchpoint.
4492 (watchpoint_del_at_next_stop): Change parameter type to struct
4493 watchpoint. Remove assertion. Adjust.
4494 (update_watchpoint): Ditto.
4495 (insert_breakpoints, breakpoint_init_inferior)
4496 (watchpoints_triggered, watchpoint_check)
4497 (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions)
4498 (bpstat_stop_status, print_one_breakpoint_location)
4499 (print_one_breakpoint_location, watchpoint_locations_match): Cast
4500 to struct watchpoint as necessary, and adjust.
4501 (install_breakpoint): Add `internal' argument. If true, don't
4502 mention the new breakpoint. Use set_breakpoint_number.
4503 (create_fork_vfork_event_catchpoint)
4504 (create_syscall_event_catchpoint): Adjust.
4505 (dtor_watchpoint): New.
4506 (re_set_watchpoint, insert_watchpoint, remove_watchpoint)
4507 (breakpoint_hit_watchpoint, resources_needed_watchpoint)
4508 (print_it_watchpoint, print_mention_watchpoint)
4509 (print_recreate_watchpoint, insert_masked_watchpoint)
4510 (remove_masked_watchpoint, resources_needed_masked_watchpoint)
4511 (print_one_detail_masked_watchpoint)
4512 (print_mention_masked_watchpoint)
4513 (print_recreate_masked_watchpoint): Cast to struct watchpoint as
4514 necessary, and adjust.
4515 (watch_command_1): Allocate and initialize a struct watchpoint
4516 instead of a struct breakpoint. Use install_breakpoint.
4517 (catch_exec_command_1): Adjust.
4518 (base_breakpoint_dtor): Delete accesses to watchpoint specific
4519 fields.
4520 (delete_breakpoint, enable_breakpoint_disp)
4521 (invalidate_bp_value_on_memory_change): Cast to struct watchpoint
4522 as necessary, and adjust.
4523 (initialize_breakpoint_ops): Install dtor_watchpoint as
4524 watchpoints' dtor method.
4525 * ada-lang.c (create_ada_exception_catchpoint): Adjust.
4526 * python/py-breakpoint.c (bppy_get_expression): Use is_watchpoint.
4527 to struct watchpoint as necessary, and adjust.
4528
2060206e
PA
45292011-07-25 Pedro Alves <pedro@codesourcery.com>
4530
4531 * ada-lang.c (dtor_exception, re_set_exception): Indirect through
4532 the the base class ops table.
4533 (catch_exception_breakpoint_ops)
4534 (catch_exception_unhandled_breakpoint_ops)
4535 (catch_assert_breakpoint_ops): Don't statically initialize.
4536 (initialize_ada_catchpoint_ops): New.
4537 (_initialize_ada_language): Call it.
4538 * breakpoint.c (base_breakpoint_ops, bkpt_base_breakpoint_ops)
4539 (bkpt_breakpoint_ops): Forward declare.
4540 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
4541 (catch_syscall_breakpoint_ops, catch_exec_breakpoint_ops)
4542 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
4543 (masked_watchpoint_breakpoint_ops)
4544 (gnu_v3_exception_catchpoint_ops): Don't statically initialize.
4545 (dtor_catch_syscall, dtor_catch_exec): Indirect through the the
4546 base class ops table.
4547 (null_re_set, null_check_status, null_works_in_software_mode)
4548 (null_resources_needed, null_print_one_detail): Delete.
4549 (bkpt_dtor): Rename to ...
4550 (base_breakpoint_dtor): ... this. Make static.
4551 (bkpt_allocate_location): Rename to ...
4552 (base_breakpoint_allocate_location): ... this. Make static.
4553 (base_breakpoint_re_set): New.
4554 (internal_error_pure_virtual_called): New.
4555 (base_breakpoint_insert_location, base_breakpoint_remove_location)
4556 (base_breakpoint_breakpoint_hit, base_breakpoint_check_status)
4557 (base_breakpoint_works_in_software_mode)
4558 (base_breakpoint_resources_needed, base_breakpoint_print_it)
4559 (base_breakpoint_print_one_detail, base_breakpoint_print_mention)
4560 (base_breakpoint_print_recreate): New functions.
4561 (base_breakpoint_ops): New global.
4562 (bkpt_re_set, bkpt_insert_location, bkpt_remove_location)
4563 (bkpt_breakpoint_hit): Make static.
4564 (bkpt_check_status): Delete.
4565 (bkpt_resources_needed): Make static.
4566 (bkpt_works_in_software_mode): Delete.
4567 (bkpt_print_it, bkpt_print_mention, bkpt_print_recreate): Make
4568 static.
4569 (bkpt_breakpoint_ops, internal_breakpoint_ops)
4570 (momentary_breakpoint_ops): Don't statically initialize.
4571 (internal_bkpt_print_recreate, momentary_bkpt_print_recreate):
4572 Delete.
4573 (tracepoint_insert_location, tracepoint_remove_location)
4574 (tracepoint_check_status, tracepoint_works_in_software_mode)
4575 (tracepoint_print_it): Delete.
4576 (tracepoint_breakpoint_ops): Don't statically initialize.
4577 (initialize_breakpoint_ops): New.
4578 (_initialize_breakpoint): Call it.
4579 * breakpoint.h (null_re_set, null_works_in_software_mode)
4580 (null_resources_needed, null_check_status, null_print_one_detail):
4581 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
4582 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
4583 (bkpt_check_status, bkpt_resources_needed)
4584 (bkpt_works_in_software_mode, bkpt_print_it)
4585 (null_print_one_detail, bkpt_print_mention, bkpt_print_recreate):
4586 Delete declarations.
4587 (initialize_breakpoint_ops): Declare.
4588
001c8c33
PA
45892011-07-25 Pedro Alves <pedro@codesourcery.com>
4590
4591 * breakpoint.c (bkpt_print_it, internal_bkpt_print_it)
4592 (momentary_bkpt_print_it): Simplify.
4593
06edf0c0
PA
45942011-07-25 Pedro Alves <pedro@codesourcery.com>
4595
4596 Split internal, momentary and user breakpoints breakpoint_ops
4597 tables.
4598
4599 * breakpoint.c (internal_breakpoint_ops)
4600 (momentary_breakpoint_ops): Forward declare.
4601 (create_internal_breakpoint): Add new breakpoint_ops parameter.
4602 Pass it down, rather than hardcoding bkpt_breakpoint_ops.
4603 (create_overlay_event_breakpoint)
4604 (create_std_terminate_master_breakpoint)
4605 (create_exception_master_breakpoint): Create breakpoints with
4606 internal_breakpoint_ops vtable.
4607 (set_longjmp_breakpoint): Create momentary breakpoints with
4608 momentary_breakpoint_ops vtable, using
4609 momentary_breakpoint_from_master.
4610 (create_thread_event_breakpoint, create_jit_event_breakpoint)
4611 (create_solib_event_breakpoint): Create breakpoints with
4612 internal_breakpoint_ops vtable.
4613 (set_momentary_breakpoint): Create breakpoints with
4614 momentary_breakpoint_ops vtable.
4615 (momentary_breakpoint_from_master): New, factored out from
4616 clone_momentary_breakpoint.
4617 (clone_momentary_breakpoint): Adjust.
4618 (watch_command_1): Create scope breakpoints with
4619 momentary_breakpoint_ops vtable.
4620 (bkpt_re_set): Remove handling of internal and momentary
4621 breakpoints.
4622 (bkpt_print_mention, bkpt_print_recreate): New.
4623 (bkpt_breakpoint_ops): Adjust.
4624 (internal_bkpt_re_set, internal_bkpt_check_status)
4625 (internal_bkpt_print_it, internal_bkpt_print_mention)
4626 (internal_bkpt_print_recreate, internal_breakpoint_ops): New.
4627 (momentary_bkpt_re_set, momentary_bkpt_check_status)
4628 (momentary_bkpt_print_it, momentary_bkpt_print_mention)
4629 (momentary_bkpt_print_recreate): New.
4630 (momentary_breakpoint_ops): New.
4631
348d480f
PA
46322011-07-25 Pedro Alves <pedro@codesourcery.com>
4633
4634 Implement most breakpoint_ops methods for all breakpoint types,
4635 and move the default handlings to the proper callbacks.
4636
4637 * breakpoint.c (update_watchpoint): Always call the breakpoint's
4638 works_in_software_mode method.
4639 (insert_bp_location): Go through breakpoint_ops->insert_location
4640 for software and hardware watchpoints.
4641 (create_internal_breakpoint): Pass bkpt_breakpoint_ops as
4642 breakpoint_ops.
4643 (remove_breakpoint_1): Go through breakpoint_ops->remove_location
4644 for software and hardware watchpoints.
4645 (print_it_typical): Delete.
4646 (print_bp_stop_message): Always call the breakpoint_ops->print_it
4647 method.
4648 (watchpoint_check): Adjust comment.
4649 (bpstat_check_location): Simply always call the breakpoint's
4650 breakpoint_hit method.
4651 (bpstat_stop_status): Always call the breakpoint's check_status
4652 method. Remove special cases for watchpoints and internal event
4653 breakpoints from here (moved to the check_status implementations).
4654 (print_one_breakpoint_location): Assume b->ops is never NULL.
4655 Remove static tracepoint marker id printing from here (moved to
4656 the print_one_detail callback implementation of tracepoints).
4657 (init_bp_location): Assert OPS is never NULL.
4658 (allocate_bp_location): Always call the breakpoint's
4659 allocate_location method, and remove the default code from here.
4660 (free_bp_location): Always call the location's dtor method, and
4661 remove the default code from here.
4662 (init_raw_breakpoint_without_location): Assert OPS is never NULL.
4663 (set_raw_breakpoint_without_location): Add new breakpoint_ops
4664 parameter. Pass it down.
4665 (set_raw_breakpoint): Ditto.
4666 (print_it_catch_fork): Adjust to take a bpstat as argument.
4667 (catch_fork_breakpoint_ops): Install methods.
4668 (print_it_catch_vfork): Adjust to take a bpstat as argument.
4669 (catch_vfork_breakpoint_ops): Install methods.
4670 (dtor_catch_syscall): Call the base dtor.
4671 (print_it_catch_syscall): Adjust to take a bpstat as argument.
4672 (catch_syscall_breakpoint_ops): Install methods.
4673 (dtor_catch_exec): Call the base dtor.
4674 (print_it_catch_exec): Adjust to take a bpstat as argument.
4675 (catch_exec_breakpoint_ops): Install methods.
4676 (hw_breakpoint_used_count, hw_watchpoint_used_count): Always call
4677 the breakpoint's resources_needed method, and remove the default
4678 code from here.
4679 (set_momentary_breakpoint): Pass bkpt_breakpoint_ops as
4680 breakpoint_ops.
4681 (clone_momentary_breakpoint): Clone the original's ops.
4682 (mention): Always call the breakpoint's print_mention method, and
4683 remove the default code from here.
4684 (create_breakpoint_sal): Adjust to pass the ops to
4685 set_raw_breakpoint rather than setting it manually.
4686 (create_breakpoint): Assert ops is never NULL. Adjust to pass the
4687 ops to set_raw_breakpoint_without_location rather than setting it
4688 manually.
4689 (break_command_1): Pass bkpt_breakpoint_ops as breakpoint_ops.
4690 (print_it_ranged_breakpoint): Adjust to take a bpstat as argument.
4691 (ranged_breakpoint_ops): Install methods.
4692 (break_range_command): Adjust to pass the ops to
4693 set_raw_breakpoint rather than setting it manually.
4694 (re_set_watchpoint, breakpoint_hit_watchpoint)
4695 (check_status_watchpoint, resources_needed_watchpoint)
4696 (works_in_software_mode_watchpoint, print_it_watchpoint)
4697 (print_mention_watchpoint, print_recreate_watchpoint): New
4698 functions.
4699 (watchpoint_breakpoint_ops): Install new methods.
4700 (print_it_masked_watchpoint): New function.
4701 (masked_watchpoint_breakpoint_ops): Install new methods.
4702 (watch_command_1): Adjust to pass the right breakpoint_ops to
4703 set_raw_breakpoint_without_location rather than setting it
4704 manually later. Record the current pspace.
4705 (print_it_exception_catchpoint): Adjust to take a bpstat as
4706 argument.
4707 (gnu_v3_exception_catchpoint_ops): Install new methods.
4708 (say_where): New function.
4709 (null_re_set, null_check_status, null_works_in_software_mode)
4710 (null_resources_needed, null_print_one_detail, bp_location_dtor):
4711 New functions.
4712 (bp_location_ops): New global.
4713 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
4714 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
4715 (bkpt_check_status, bkpt_resources_needed)
4716 (bkpt_works_in_software_mode, bkpt_print_it, bkpt_print_mention)
4717 (bkpt_print_recreate): New functions.
4718 (bkpt_breakpoint_ops): New global.
4719 (tracepoint_re_set, tracepoint_insert_location)
4720 (tracepoint_remove_location, tracepoint_breakpoint_hit)
4721 (tracepoint_check_status, tracepoint_works_in_software_mode)
4722 (tracepoint_print_it, tracepoint_print_one_detail)
4723 (tracepoint_print_mention, tracepoint_print_recreate): New
4724 functions.
4725 (tracepoint_breakpoint_ops): New global.
4726 (delete_breakpoint): Always call the breakpoint's dtor method, and
4727 remove the default handling from here.
4728 (breakpoint_re_set_default): Make static.
4729 (breakpoint_re_set_one): Always call the breakpoints re_set
4730 method, and remove the default handling from here.
4731 (trace_command, ftrace_command, strace_command)
4732 (create_tracepoint_from_upload): Pass appropriate breakpoints_ops
4733 to create_breakpoint.
4734 (save_breakpoints): Always call the breakpoint's print_recreate
4735 method, and remove the default handling from here.
4736
4737 * ada-lang.c (dtor_exception): Call the base dtor.
4738 (re_set_exception): Call the base method.
4739 (print_it_exception, print_it_catch_exception): Adjust to take a
4740 bpstat as argument.
4741 (catch_exception_breakpoint_ops): Install methods.
4742 (print_it_catch_exception_unhandled): Adjust to take a bpstat as
4743 argument.
4744 (catch_exception_unhandled_breakpoint_ops): Install methods.
4745 (print_it_catch_assert): Adjust to take a bpstat as argument.
4746 (catch_assert_breakpoint_ops): Install methods.
4747
4748 * breakpoint.h (struct breakpoint_ops): Adjust the print_it method
4749 to take a bpstat as argument.
4750 (enum print_stop_action): Add describing comments to each enum
4751 value.
4752 (breakpoint_re_set_default): Delete declaration.
4753 (null_re_set, null_works_in_software_mode, null_resources_needed)
4754 (null_check_status, null_print_one_detail): Declare.
4755 (bkpt_breakpoint_ops): Declare.
4756 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
4757 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
4758 (bkpt_check_status, bkpt_resources_needed)
4759 (bkpt_works_in_software_mode, bkpt_print_it)
4760 (null_print_one_detail, bkpt_print_mention, bkpt_print_recreate):
4761 Declare.
4762
4763 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust to pass
4764 bkpt_breakpoint_ops.
4765 * python/py-breakpoint.c (bppy_init): Ditto.
4766
be8f8133
PW
47672011-07-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4768
4769 * MAINTAINERS (Write After Approval): Add myself to the list.
4770
3807f613
PP
47712011-07-23 Paul Pluzhnikov <ppluzhnikov@google.com>
4772
4773 * elfread.c (elf_rel_plt_read): Fix off-by-one bug.
4774
1ced966e
PA
47752011-07-22 Pedro Alves <pedro@codesourcery.com>
4776
4777 * i386-nat.c (I386_DR_VACANT, I386_DR_LOCAL_ENABLE)
4778 (I386_DR_GLOBAL_ENABLE, I386_DR_DISABLE, I386_DR_SET_RW_LEN)
4779 (I386_DR_GET_RW_LEN, I386_DR_WATCH_HIT): Add state parameter and
4780 adjust.
4781 (dr_mirror, dr_status_mirror, dr_control_mirror): Delete.
4782 (struct i386_debug_reg_state): New.
4783 (i386_init_dregs): New.
4784 (dr_mirror): New.
4785 (i386_cleanup_dregs): Use i386_init_dregs.
4786 (i386_show_dr): Add state parameter and adjust.
4787 (i386_insert_aligned_watchpoint): Ditto. Don't pass the info to
4788 the inferior here.
4789 (i386_remove_aligned_watchpoint): Likewise.
4790 (i386_handle_nonaligned_watchpoint): Add state parameter and adjust.
4791 (i386_update_inferior_debug_regs): New.
4792 (i386_insert_watchpoint): Work on a local mirror of the debug
4793 registers, and only update the inferior on success.
4794 (i386_remove_watchpoint): Ditto.
4795 (i386_region_ok_for_watchpoint): Adjust.
4796 (i386_stopped_data_address): Adjust.
4797 (i386_insert_hw_breakpoint): Adjust.
4798 (i386_remove_hw_breakpoint): Adjust.
4799
3543a589
TT
48002011-07-22 Tom Tromey <tromey@redhat.com>
4801
4802 * amd64-tdep.c (amd64_pseudo_register_read_value): Rename
4803 from amd64_pseudo_register_read. Change arguments. Call
4804 mark_value_bytes_unavailable when needed.
4805 (amd64_init_abi): Use set_gdbarch_pseudo_register_read_value, not
4806 set_gdbarch_pseudo_register_read.
4807 * sentinel-frame.c (sentinel_frame_prev_register): Use
4808 regcache_cooked_read_value.
4809 * regcache.h (regcache_cooked_read_value): Declare.
4810 * regcache.c (regcache_cooked_read_value): New function.
4811 (regcache_cooked_read): Call
4812 gdbarch_pseudo_register_read_value if available.
4813 * i386-tdep.h (i386_pseudo_register_read_value): Declare.
4814 (i386_pseudo_register_read): Remove.
4815 * i386-tdep.c (i386_pseudo_register_read_into_value): Rename from
4816 i386_pseudo_register_read. Change arguments. Call
4817 mark_value_bytes_unavailable when needed.
4818 (i386_pseudo_register_read_value): New function.
4819 (i386_gdbarch_init): Call set_gdbarch_pseudo_register_read_value,
4820 not set_gdbarch_pseudo_register_read.
4821 * gdbarch.sh (pseudo_register_read_value): New method.
4822 * gdbarch.c, gdbarch.h: Rebuild.
4823 * findvar.c (value_from_register): Call get_frame_register_value.
4824
95298e72
PM
48252011-07-22 Phil Muldoon <pmuldoon@redhat.com>
4826
4827 * event-top.c (cli_command_loop): Use get_prompt, get_suffix,
4828 get_prefix.
4829 (display_gdb_prompt): Likewise.
4830 (change_annotation_level): Likewise.
4831 (push_prompt): Likewise.
4832 (pop_prompt): Likewise.
4833 (handle_stop_sig): Use get_prompt with a level.
4834 * top.c (command_loop): Use get_prompt with a level.
4835 (set_async_annotation_level): Use set_prompt with a level.
4836 (get_prefix): New function.
4837 (set_prefix): Ditto.
4838 (set_suffix): Ditto.
4839 (get_suffix): Ditto.
4840 (get_prompt): Accept a level argument.
4841 (set_prompt): Accept a level argument. Free old prompts. Set
4842 new_async_prompt if level is 0.
4843 (init_main): Use set_prompt with a level. Do not set
4844 new_async_prompt.
4845 * event-top.h (PROMPT, SUFFIX, PREFIX): Move to top.c
4846 * top.h: Declare set_suffix, get_suffix, set_prefix, get_prefix.
4847 Modify set_prompt, get_prompt to account for levels.
4848 * tui/tui-interp.c (tui_command_loop): Use get_prompt with a
4849 level.
4850 * python/python.c (before_prompt_hook): Use set_prompt.
4851
d26e3629
KY
48522011-07-22 Kwok Cheung Yeung <kcy@codesourcery.com>
4853
4854 * defs.h: Add guard against inclusion in gdbserver.
4855 (struct ptid, ptid_t): Move to common/ptid.h.
4856 (xfree, xzalloc, xasprintf, xvasprintf, xstrprintf, xstrvprintf,
4857 xsnprintf, internal_error): Move to common/common-utils.h.
4858 (nomem): Delete.
4859 * gdb_assert.h: Move into common/ sub-directory.
4860 * gdb_locale.h: Ditto.
4861 * gdb_dirent.h: Ditto.
4862 * inferior.h (minus_one_ptid, null_ptid, ptid_build, pid_to_ptid,
4863 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid):
4864 Move into common/ptid.h.
4865 * xml-support.c (xml_escape_text): Move into common/xml-utils.c.
4866 (gdb_xml_create_parser_and_cleanup_1, xml_fetch_context_from_file):
4867 Change nomem to malloc_failure.
4868 * xml-support.h (xml_escape_text): Move into common/xml-utils.h.
4869 * utils.c (nomem): Rename to malloc_failure.
4870 (xmalloc, xzalloc, xrealloc, xcalloc, xfree, xstrprintf, xasprintf,
4871 xvasprintf, xstrvprintf, xsnprintf): Move to common/common-utils.c.
4872 (gdb_buildargv): Change nomem to malloc_failure.
4873 * infrun.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid,
4874 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal,
4875 ptid_is_pid): Move into common/ptid.c.
4876 (initialize_infrun): Delete initialization of null_ptid and
4877 minus_one_ptid.
4878 * linux-nat.c (linux_nat_xfer_osdata): Defer to
4879 linux_common_xfer_osdata.
4880 * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c,
4881 common/ptid.c and common/buffer.c.
4882 (HFILES_NO_SRCDIR): Add common/common-utils.h, common/xml-utils.h,
4883 common/ptid.h, common/buffer.h and common/linux-osdata.h.
4884 (COMMON_OBS): Add xml-utils.o, common-utils.o, buffer.o and ptid.o.
4885 (common-utils.o, xml-utils.o, ptid.o, buffer.o, linux-osdata.o): New
4886 rules.
4887 * common/gdb_assert.h: New.
4888 * common/gdb_dirent.h: New.
4889 * common/gdb_locale.h: New.
4890 * common/buffer.c: New.
4891 * common/buffer.h: New.
4892 * common/ptid.c: New.
4893 * common/ptid.h: New.
4894 * common/xml-utils.c: New.
4895 * common/xml-utils.h: New.
4896 * common/common-utils.c: New.
4897 * common/common-utils.h: New.
4898 * common/linux-osdata.c: New.
4899 * common/linux-osdata.h: New.
4900 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-osdata.o.
4901 * config/arm/linux.mh (NATDEPFILES): Ditto.
4902 * config/i386/linux.mh (NATDEPFILES): Ditto.
4903 * config/i386/linux64.mh (NATDEPFILES): Ditto.
4904 * config/ia64/linux.mh (NATDEPFILES): Ditto.
4905 * config/m32r/linux.mh (NATDEPFILES): Ditto.
4906 * config/m68k/linux.mh (NATDEPFILES): Ditto.
4907 * config/mips/linux.mh (NATDEPFILES): Ditto.
4908 * config/pa/linux.mh (NATDEPFILES): Ditto.
4909 * config/powerpc/linux.mh (NATDEPFILES): Ditto.
4910 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Ditto.
4911 * config/s390/s390.mh (NATDEPFILES): Ditto.
4912 * config/sparc/linux.mh (NATDEPFILES): Ditto.
4913 * config/sparc/linux64.mh (NATDEPFILES): Ditto.
4914 * config/xtensa/linux.mh (NATDEPFILES): Ditto.
4915
edc84990 49162011-07-21 Matt Rice <ratmice@gmail.com>
4917
4918 * NEWS: Add info macros and info definitions commands.
4919
3a7bf607
PM
49202011-07-21 Phil Muldoon <pmuldoon@redhat.com>
4921
4922 * NEWS: Document Python prompt substitution hook.
4923
9b158ba0 49242011-07-18 Matt Rice <ratmice@gmail.com>
4925
4926 PR macros/12999
4927 * macrotab.h (macro_callback_fn): Add new arguments to callback.
4928 * macrotab.c (foreach_macro): Ditto.
4929 (foreach_macro_in_scope): Ditto.
4930 * macrocmd.c (print_macro_callback): New function.
4931 (info_macro_command): Move some code to print_macro_definition.
4932 (print_macro_definition): New function.
4933 (print_one_macro): Add new arguments to callback.
4934 (info_definitions_command): New function.
4935 (info_macros_command): Ditto.
4936 (_initialize_macrocmd): Add info macros and info definitions commands.
4937 * symtab.c (add_macro_name): Add new arguments to callback.
4938
d17b6f81
PM
49392011-07-21 Phil Muldoon <pmuldoon@redhat.com>
4940 Tom Tromey <tromey@redhat.com>
4941
4942 * top.c (set_prompt): Rewrite to free previous prompt, free
4943 asynch_new_prompt and set both on new prompts.
4944 * event-top.c (display_gdb_prompt): Add prompt substitution
4945 logic.
4946 * python/python.c (before_prompt_hook): New function.
4947
1364323a 49482011-07-20 Matt Rice <ratmice@gmail.com>
4949
4950 * bfin-tdep.c (bfin_extract_return_value): Fix swapped
4951 arguments to store_unsigned_integer.
4952
8b70b953
TT
49532011-07-20 Tom Tromey <tromey@redhat.com>
4954
6c83ed52
TT
4955 * dwarf2read.c (process_enumeration_scope): Do not call new_symbol
4956 in some declaration-only cases.
4957
49582011-07-18 Tom Tromey <tromey@redhat.com>
4959
8b70b953
TT
4960 PR symtab/12984:
4961 * dwarf2read.c (dwarf2_section_info_def): New typedef.
4962 (struct dwarf2_per_objfile) <types>: Change to a VEC.
4963 (struct dwarf2_per_cu_data) <from_debug_types>: Remove.
4964 <debug_type_section>: New field.
4965 (dwarf2_locate_sections): Push .debug_types sections onto VEC.
4966 (load_cu): Use appropriate section.
4967 (create_signatured_type_table_from_index): Add 'section'
4968 argument.
4969 (dwarf2_read_index): Only allow a single .debug_types section.
4970 (dw2_get_file_names): Use appropriate section.
4971 (read_type_comp_unit_head): Add 'section' argument.
4972 (create_debug_types_hash_table): Loop over all .debug_types
4973 sections.
4974 (init_cu_die_reader): Use appropriate section.
4975 (process_psymtab_comp_unit, load_partial_comp_unit)
4976 (load_full_comp_unit, read_die_and_children, find_partial_die)
4977 (lookup_die_type, determine_prefix, follow_die_offset): Update.
4978 (lookup_signatured_type_at_offset): Add 'section' argument.
4979 (read_signatured_type_at_offset): Add 'sect' argument.
4980 (read_signatured_type): Use appropriate section.
4981 (set_die_type, get_die_type_at_offset): Update.
4982 (dwarf2_per_objfile_free): Free all .debug_types sections, and
4983 VEC.
4984 (write_psymtabs_to_index): Don't allow index with more than one
4985 .debug_types section.
4986
918dd910
JK
49872011-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
4988
4989 Fix crash if referenced CU is aged out.
4990 * dwarf2loc.c (per_cu_dwarf_call): New variable back_to, use to for
4991 xfree of block.data.
4992 (indirect_pieced_value): New variable back_to, use to for xfree of
4993 baton.data.
4994 (dwarf2_compile_expr_to_ax): New variable back_to, use to for xfree of
4995 block.data.
4996 * dwarf2read.c (dwarf2_find_base_address): New prototype.
4997 (load_cu): New function from ...
4998 (dw2_do_instantiate_symtab): ... the code here ...
4999 (process_full_comp_unit): ... and here.
5000 (dwarf2_fetch_die_location_block): Call load_cu first. Call xmemdup on
5001 retval.data.
5002
0e37a63c
JK
50032011-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
5004
5005 * dwarf2loc.c (indirect_pieced_value): Use check_typedef for VALUE's
5006 type.
5007
7e324e48
GB
50082011-07-19 Gary Benson <gbenson@redhat.com>
5009
5010 * infrun.c (struct execution_control_state): New member
5011 stop_func_filled_in.
5012 (clear_stop_func, fill_in_stop_func): New functions.
5013 (handle_inferior_event): Call clear_stop_func rather than
5014 manipulating the execution control state directly.
5015 Call fill_in_stop_func lazily as required rather than
5016 directly calling find_pc_partial_function in all cases.
5017
d48323d8
TT
50182011-07-18 Tom Tromey <tromey@redhat.com>
5019
5020 * dwarf2read.c (read_subrange_type): Use attr_form_is_block when
5021 checking for variable-sized array.
5022
40591b7d
JCD
50232011-07-18 Jean-Charles Delay <delay@adacore.com>
5024
5025 * varobj.h (varobj_languages): Add vlang_ada definition to the list
5026 of supported languages.
5027 * varobj.c: Add top definitions and basic implementation of the
5028 following callbacks: ada_number_of_children, ada_name_of_variable,
5029 ada_name_of_child, ada_path_expr_of_child, ada_value_of_root,
5030 ada_value_of_child, ada_type_of_child, ada_value_of_variable.
5031 (languages): Register Ada-specific callbacks.
5032 (variable_language): Add the Ada case in the language setter switch.
5033
2e424e08
JK
50342011-07-17 Jan Kratochvil <jan.kratochvil@redhat.com>
5035
5036 * remote-mips.c (pmon_download): Fix ignored return value GCC warning.
5037
9e8b7a03
JK
50382011-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
5039
5040 Code cleanup.
5041 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): New.
5042 (execute_stack_op): Use dwarf2_frame_ctx_funcs
5043 * dwarf2expr.c (dwarf_get_base_type): Access get_base_type via funcs.
5044 (execute_stack_op): Access read_reg, get_frame_base, read_mem,
5045 get_frame_cfa, get_tls_address and dwarf_call via funcs.
5046 * dwarf2expr.h (struct dwarf_expr_context): New forward declaration.
5047 (struct dwarf_expr_context_funcs): New, move here methods from ...
5048 (struct dwarf_expr_context): ... here. New fields funcs.
5049 * dwarf2loc.c (dwarf_expr_dwarf_call): Access get_frame_pc via funcs.
5050 (dwarf_expr_ctx_funcs): New.
5051 (dwarf2_evaluate_loc_desc_full): Use dwarf_expr_ctx_funcs.
5052 (needs_frame_dwarf_call): Access get_frame_pc via funcs.
5053 (needs_frame_ctx_funcs): New.
5054 (dwarf2_loc_desc_needs_frame): Use needs_frame_ctx_funcs.
5055
2b1260ab
FM
50562011-07-15 Fawzi Mohamed <fawzi.mohamed@nokia.com>
5057
5058 * MAINTAINERS (Write After Approval): Add myself to the list.
5059
8bd90839
FM
50602011-07-15 Fawzi Mohamed <fawzi.mohamed@nokia.com>
5061
5062 * dwarf2-frame.c (decode_frame_entry, decode_frame_entry_1): Ensure
5063 that CIE pointer of an FDE really points to a CIE .
5064
953b98d1
HZ
50652011-07-15 Hui Zhu <teawater@gmail.com>
5066
5067 * remote.c (remote_get_trace_status): Add comments.
5068
c8f2448a
JK
50692011-07-14 Jan Kratochvil <jan.kratochvil@redhat.com>
5070
5071 Code cleanup - constify struct lval_funcs.
5072 * dwarf2loc.c (pieced_value_funcs): Make it const.
5073 * infrun.c (siginfo_value_funcs): Likewise.
5074 * opencl-lang.c (opencl_value_funcs): Likewise.
5075 * valops.c (value_assign, value_ind): Make the funcs variable const.
5076 * value.c (struct value): Make location.computed.funcs target const.
5077 Rearrange the comments.
5078 (allocate_computed_value): Make the funcs parameter target const.
5079 (value_computed_funcs): Return the funcs target const.
5080 (value_free, value_copy, set_value_component_location): Make the funcs
5081 variable const.
5082 * value.h (allocate_computed_value): Make the funcs parameter target
5083 const.
5084 (value_computed_funcs): Return the funcs target const.
5085 * windows-tdep.c (tlb_value_funcs): Make it const.
5086
f652de6f
HZ
50872011-07-14 Hui Zhu <teawater@gmail.com>
5088
5089 * remote.c (remote_get_trace_status): Initialize p.
5090
67f41397
JK
50912011-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
5092
5093 Work around kgdb.
5094 * remote.c (remote_get_trace_status): New variable ex. Put
5095 remote_get_noisy_reply into TRY_CATCH. Call exception_fprintf for it.
5096
d1b66e6d
TT
50972011-07-13 Tom Tromey <tromey@redhat.com>
5098
5099 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_regval_type>: Use
5100 value_from_contents for final conversion.
5101
1632a688
JK
51022011-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
5103
5104 Code cleanup.
5105 * dwarf2loc.c (dwarf_expr_frame_base_1, dwarf2_evaluate_loc_desc_full):
5106 Indent prototypes so they do not get into tags.
5107
a7035dbb
JK
51082011-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
5109
5110 Code cleanup making also optimized out values lazy.
5111 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use
5112 allocate_optimized_out_value. Twice.
5113 (loclist_read_variable) Use allocate_optimized_out_value. Once.
5114 * findvar.c (read_var_value): Likewise.
5115 * value.c (allocate_optimized_out_value): New function.
5116 * value.h (allocate_optimized_out_value): New declaration.
5117
d07ed419
JK
51182011-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
5119
5120 Fix occasional crash of CTRL-C during DWARF read in.
5121 * dwarf2read.c (dwarf2_mark_helper): Return on NULL CU.
5122
86d31898
TT
51232011-07-11 Tom Tromey <tromey@redhat.com>
5124
5125 * regcache.c (struct regcache_descr): Fix typo.
5126 * i387-tdep.c (i387_supply_xsave): Fix typo.
5127
2ab95328
TT
51282011-07-11 Tom Tromey <tromey@redhat.com>
5129
5130 * dwarf2read.c (handle_DW_AT_stmt_list): New function.
5131 (read_file_scope, read_type_unit_scope): Use it.
5132
04ad99e6
JK
51332011-07-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5134
5135 * dwarf2expr.c (read_sleb128): Fix signed extension overflowing host
5136 `int'.
5137
713389e0
PM
51382011-07-11 Phil Muldoon <pmuldoon@redhat.com>
5139
5140 PR python/12438
5141 * python/python.c: Set gdbpy_should_print_stack default to off.
5142 (set_python): Deprecate maint set python print-stack to
5143 class_deprecate.
5144 (_initialize_python): Deprecate maint set/show python print-stack.
5145 Add new prefix command, python. Add new setting, print-backtrace.
5146 * NEWS: Document set python print-stack. Document default change.
5147
754eadd1
PM
51482011-07-11 Phil Muldoon <pmuldoon@redhat.com>
5149
5150 * python/py-inferior.c (infpy_dealloc): New function.
5151 (inferior_to_inferior_object): Return a new object, or a
5152 new reference to the existing object.
5153 (find_thread_object): Cleanup references to inferior.
5154 (delete_thread_object): Ditto.
5155 * python/py-infthread.c (create_thread_object): Do not increment
5156 inferior reference count.
5157
5e44ecb3
TT
51582011-07-08 Tom Tromey <tromey@redhat.com>
5159
5160 * dwarf2loc.c (locexpr_regname): New function.
5161 (locexpr_describe_location_piece): Use it.
5162 (disassemble_dwarf_expression): Add per_cu argument. Use
5163 locexpr_regname.
5164 <DW_OP_GNU_deref_type, DW_OP_GNU_const_type,
5165 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
5166 New cases.
5167 (locexpr_describe_location_1): Add per_cu argument.
5168 (locexpr_describe_location): Update.
5169 (loclist_describe_location): Update.
5170
e0e9434c
TT
51712011-07-08 Tom Tromey <tromey@redhat.com>
5172
5173 * dwarf2expr.c (execute_stack_op): Add QUIT.
5174
26afc0d7
HZ
51752011-07-07 Hui Zhu <teawater@gmail.com>
5176
5177 Revert:
5178 2011-07-06 Hui Zhu <teawater@gmail.com>
5179 * remote.c (remote_start_remote): Add TRY_CATCH for
5180 remote_get_trace_status.
5181 * tracepoint.c (disconnect_tracing): Ditto.
5182
a40a111f
AB
51832011-07-07 Andrew Burgess <aburgess@broadcom.com>
5184
5185 * cli/cli-setshow.c (do_setshow_command): Display var_zinteger
5186 variables as signed, not unsigned.
5187
e2bd3b15
JB
51882011-07-06 Joel Brobecker <brobecker@adacore.com>
5189
5190 * jit.c (jit_inferior_init): Reformat forward declaration.
5191
e3d961fe 51922011-07-06 Matt Rice <ratmice@gmail.com>
5193
5194 * MAINTAINERS (Write After Approval): Add myself to the list.
5195
0f3428f0
HZ
51962011-07-06 Hui Zhu <teawater@gmail.com>
5197
5198 * remote.c (remote_start_remote): Add TRY_CATCH for
5199 remote_get_trace_status.
5200 * tracepoint.c (disconnect_tracing): Ditto.
5201
fc9f3a69
TT
52022011-07-05 Tom Tromey <tromey@redhat.com>
5203
5204 * symtab.c (operator_chars): Now static.
5205 * linespec.c (operator_chars): Don't declare.
5206
26e519b9
TJB
52072011-07-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
5208
5209 * ui-out.h (ui_out_field_core_addr): Fix typo in comment.
5210
eb2a6f42
TT
52112011-07-05 Tom Tromey <tromey@redhat.com>
5212
5213 * gnu-v3-abi.c (gnuv3_rtti_type): Check TYPE_CPLUS_REALLY_JAVA.
5214 * gdbtypes.h (struct cplus_struct_type) <is_java>: New field.
5215 (TYPE_CPLUS_REALLY_JAVA): New macro.
5216 * dwarf2read.c (process_structure_scope): Set
5217 TYPE_CPLUS_REALLY_JAVA.
5218
21083d0f 52192011-07-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
177b42fe
TJB
5220
5221 * ada-lang.c: Fix typos.
5222 * amd64-tdep.c: Likewise.
5223 * breakpoint.c: Likewise.
5224 * cli/cli-decode.c: Likewise.
5225 * findcmd.c: Likewise.
5226 * inline-frame.c: Likewise.
5227 * mi/mi-main.c: Likewise.
5228 * minsyms.c: Likewise.
5229 * monitor.c: Likewise.
5230 * monitor.h: Likewise.
5231 * prologue-value.c: Likewise.
5232 * reverse.c: Likewise.
5233 * s390-tdep.c: Likewise.
5234
3b2a0cf2
JB
52352011-07-06 Paul Pluzhnikov <ppluzhnikov@google.com>
5236
5237 * jit.c (jit_inferior_init): Forward declare.
5238 (jit_breakpoint_re_set_internal): Call jit_inferior_init.
5239
efae1d92
JB
52402011-07-04 Joel Brobecker <brobecker@adacore.com>
5241
5242 * osabi.c (generic_elf_osabi_sniffer): Minor comment reformatting.
5243
6040a59d
JB
52442011-07-04 Tristan Gingold <gingold@adacore.com>
5245
5246 * ada-tasks.c (KNOWN_TASKS_LIST): New macro.
5247 (tcb_fieldno): Add activation_link field.
5248 (get_known_tasks_addr): Moved and rewritten.
5249 (get_tcb_types_info): Set activation_link field.
5250 (read_known_tasks_array): Add parameter. Rewritten.
5251 (read_known_tasks_list): New function.
5252 (read_known_tasks): New function.
5253 (ada_build_task_list): Call read_known_tasks instead of
5254 read_known_tasks_array.
5255 * ravenscar-thread.c: Add first_task_name constant.
5256 (has_ravenscar_runtime): Check for task list too.
5257
cb741e45
JB
52582011-07-04 Tristan Gingold <gingold@adacore.com>
5259
5260 * ada-tasks.c: Renames fieldno to actb_fieldno.
5261 (ada_get_task_number): Indentation.
5262 (get_tcb_types_info): Remove all parameters. Write directly
5263 the globals.
5264 (ptid_from_atcb_common): Adjust.
5265 (read_atcb): Adjust.
5266
7475b06c
TJB
52672011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
5268
5269 * symtab.c (in_prologue): Remove mention of ppc's refine_prologue_limit.
5270
15230f37
TJB
52712011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
5272
5273 * ui-out.c (ui_out_field_core_addr): Mention that the function
5274 description is in the header file.
5275 * ui-out.h (ui_out_field_core_addr): Document function.
5276
65743aba
TJB
52772011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
5278
5279 * ui-out.c (ui_out_get_field_separator): Remove unused function.
5280 * ui-out.h (ui_out_get_field_separator): Remove prototype.
5281
c37a5aab
TJB
52822011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
5283
5284 * symtab.c (expand_line_sal): Remove empty line.
5285
59adf69e
TS
52862011-07-04 Thomas Schwinge <thomas@schwinge.name>
5287
5288 * osabi.c (generic_elf_osabi_sniffer) <ELFOSABI_GNU>: Handle in the
5289 same way as ELFOSABI_NONE.
5290 <ELFOSABI_LINUX, ELFOSABI_HURD>: Remove cases.
5291
e5dd4106
TJB
52922011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
5293
5294 * breakpoint.c: Fix typos in comments.
5295 * linespec.c: Likewise.
5296 * symtab.c: Likewise.
5297
d40102a1
JB
52982011-07-04 Joel Brobecker <brobecker@adacore.com>
5299
5300 * dwarf2-frame.c (dwarf2_build_frame_info): Do not load .eh_frame
5301 section in separate object files.
5302
2f741504
JK
53032011-07-04 Jan Kratochvil <jan.kratochvil@redhat.com>
5304
5305 Fix false GCC warning.
5306 * linespec.c (decode_line_1): Initialize values.
5307
418c7cf7
JK
53082011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
5309
5310 * linespec.c (find_method): Accept the function type automatically only
5311 if it was specified with parameter types.
5312
3d50dd94
JK
53132011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
5314
5315 Stop on first linespec terminator instead of eating what we can.
5316 * linespec.c (is_linespec_boundary): New function.
5317 (name_end): Remove function.
5318 (keep_name_info): New parameter on_boundary, replace the body.
5319 (decode_line_1): Provide the parameter to keep_name_info.
5320 (decode_compound): Likewise. Drop the trailing java return type
5321 handling. Twice.
5322
dcf9f4ab
JK
53232011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
5324
5325 Fall back linespec to minimal symbols.
5326 * linespec.c (decode_line_1): New variable ex, saved_argptr. Protect
5327 decode_compound by TRY_CATCH, fall back on minsyms if it failed.
5328 (find_method, symbol_found): Change error to cplusplus_error.
5329
3f542ed1
JK
53302011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
5331
bc68c4e5 5332 * symtab.c (symbol_find_demangled_name): Remove DMGL_VERBOSE.
3f542ed1 5333
900e11f9
JK
53342011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
5335 Tom Tromey <tromey@redhat.com>
5336
5337 * dwarf2read.c (check_physname): New variable.
5338 (dwarf2_physname): Prefer DW_AT_linkage_name over dwarf2_compute_name.
5339 (show_check_physname): New function.
5340 (_initialize_dwarf2_read): Add `check-physname' for check_physname.
5341
2301925d
JB
53422011-07-01 Joel Brobecker <brobecker@adacore.com>
5343
5344 * machoread.c (macho_symfile_read): Delete OBE comment.
5345
38947cca
JB
53462011-07-01 Joel Brobecker <brobecker@adacore.com>
5347
5348 * machoread.c (struct macho_oso_data): Delete.
5349 (current_oso): Delete.
5350 (macho_relocate_common_syms): New function, mostly extracted
5351 out of
5352 (macho_add_oso_symfile): Call macho_relocate_common_syms.
5353 Remove code that sets and unset current_oso.
5354 (macho_symfile_relocate): Delete handling of common symbols,
5355 now moved to macho_relocate_common_syms.
5356
a7aa0d73
JB
53572011-07-01 Joel Brobecker <brobecker@adacore.com>
5358
5359 * darwin-nat.c (darwin_ptrace): Add documentation.
5360 Set errno to zero before calling ptrace. If ptrace returns
5361 -1 and errno is zero, then change then return zero.
5362 (darwin_kill_inferior): Issue a warning instead of triggering
5363 a failed assertion when the PT_KILL ptrace operations returned
5364 nonzero.
5365
5e9bc145
JB
53662011-07-01 Joel Brobecker <brobecker@adacore.com>
5367
5368 * darwin-nat.c (darwin_detach): Call darwin_resume_inferior
5369 only when inf->private->no_ptrace.
5370
00eb2c4a
JB
53712011-07-01 Joel Brobecker <brobecker@adacore.com>
5372
5373 * ada-lang.c (print_it_exception): Print temporary catchpoints
5374 as "Temporary catchpoint".
5375 (print_mention_exception): Likewise.
5376
127c81bc
TT
53772011-07-01 Tom Tromey <tromey@redhat.com>
5378
5379 * jv-lang.c (java_language_defn): Use java_printchar,
5380 java_printstr.
5381 (java_get_encoding): New function.
5382 (java_emit_char): Use generic_emit_char.
5383 (java_printchar): New function.
5384 (java_printstr): Likewise.
5385
25552254
JB
53862011-07-01 Joel Brobecker <brobecker@adacore.com>
5387
5388 * ada-typeprint.c (print_record_type): If unable to decode
5389 the name of the parent type, use the encoded name.
5390
d2d43431
JB
53912011-07-01 Jean-Charles Delay <delay@adacore.com>
5392
5393 * ada-typeprint.c (ada_print_type): Fix both PAD type and
5394 pointer to constrained packed array type output.
5395 * ada-valprint.c (ada_val_print_1): Fix pointer to constrained
5396 packed array output.
5397
54ae186f
JB
53982011-07-01 Jean-Charles Delay <delay@adacore.com>
5399
5400 * ada-typeprint.c (print_array_type): removed if condition on show
5401 being negative for bounds printing.
5402
8f17729f
JB
54032011-07-01 Joel Brobecker <brobecker@adacore.com>
5404
5405 * ada-lang.c (ada_identical_enum_types_p): New function.
5406 (symbols_are_identical_enums): New function.
5407 (remove_extra_symbols): Do nothing if NSYMS < 2.
5408 Use symbols_are_identical_enums.
5409
f5aa6869
JB
54102011-07-01 Joel Brobecker <brobecker@adacore.com>
5411
5412 * ada-valprint.c (ada_value_print): Handle typedefs.
5413
8f465ea7
JB
54142011-07-01 Joel Brobecker <brobecker@adacore.com>
5415
5416 * ada-lang.c (ada_evaluate_subexp): Add missing word in comment.
5417
828292f2
JB
54182011-07-01 Eric Botcazou <ebotcazou@adacore.com>
5419
5420 * ada-lang.c (thin_descriptor_type): Deal with typedefs.
5421 (decode_constrained_packed_array): Likewise.
5422 (ada_evaluate_subexp) <TERNOP_SLICE>: Likewise.
5423
18920c42
JB
54242011-07-01 Joel Brobecker <brobecker@adacore.com>
5425
5426 * ada-exp.y (convert_char_literal): Handle typedef types.
5427
c90092fe
JB
54282011-07-01 Joel Brobecker <brobecker@adacore.com>
5429
5430 * ada-lang.c (ada_remove_trailing_digits): Expand documentation.
5431
f748fb40
TT
54322011-06-30 Tom Tromey <tromey@redhat.com>
5433
5434 * varobj.c (varobj_create): Call do_cleanups on early exit path.
5435 * valops.c (find_overload_match): Call do_cleanups on early exit
5436 path.
5437 * solib.c (solib_find): Call do_cleanups on early exit path.
5438
3bb47e8b
TT
54392011-06-30 Tom Tromey <tromey@redhat.com>
5440
5441 * symfile-mem.c (symbol_file_add_from_memory): Call do_cleanups.
5442 * solib-svr4.c (open_symbol_file_object): Call do_cleanups on all
5443 return paths. Defer final do_cleanups until last return.
5444 * arm-tdep.c (arm_exidx_new_objfile): Make null cleanup after
5445 early return.
5446
4727bad3
TT
54472011-06-30 Tom Tromey <tromey@redhat.com>
5448
5449 * Makefile.in (SUBDIR_MI_CFLAGS): Don't add -DMI_OUT=1.
5450
bb361dbf
AB
54512011-06-30 Andrew Burgess <aburgess@broadcom.com>
5452
5453 * MAINTAINERS (Write After Approval): Add myself to the list.
5454
e0d00bc7
JK
54552011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
5456
5457 Disable epilogue unwinders on recent GCCs.
5458 * amd64-tdep.c (amd64_in_function_epilogue_p): New variable symtab,
5459 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
5460 * dwarf2read.c (process_full_comp_unit): Initialize
5461 EPILOGUE_UNWIND_VALID.
5462 * i386-tdep.c (i386_in_function_epilogue_p): New variable symtab,
5463 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
5464 * symtab.h (struct symtab): New field epilogue_unwind_valid.
5465
4632c0d0
JK
54662011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
5467
5468 Code cleanup - reformatting.
5469 * dwarf2read.c (producer_is_gcc_ge_4_0): Rename to ...
5470 (producer_is_gcc_ge_4): ... here, change the return value.
5471 (process_full_comp_unit): New variable gcc_4_minor, adjust the value
5472 interpretation.
5473
32019081
JK
54742011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
5475
5476 Fix non-only rename list for Fortran modules import.
5477 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Adjust the
5478 cp_add_using_directive caller.
5479 (cp_add_using_directive): New parameter excludes, describe it. New
5480 variables ix and param. Compare if also excludes match. Allocate NEW
5481 with variable size, initialize EXCLUDES there.
5482 (cp_lookup_symbol_imports): New variable excludep, test
5483 current->EXCLUDES with it.
5484 * cp-support.h: Include vec.h.
5485 (struct using_direct): New field excludes, describe it.
5486 (DEF_VEC_P (const_char_ptr)): New.
5487 (cp_add_using_directive): New parameter excludes.
5488 * defs.h (const_char_ptr): New typedef.
5489 * dwarf2read.c (read_import_statement): New variables child_die,
5490 excludes and cleanups, read in excludes.
5491 (read_namespace): Adjust the cp_add_using_directive caller.
5492
70c622a3
JK
54932011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
5494
5495 Code cleanup.
5496 * cp-namespace.c (cp_add_using_directive): Turn positive comparison to
5497 negative comparisons.
5498
39c4d40a
TT
54992011-06-29 André Pönitz <andre.poenitz@nokia.com>
5500
5501 * mi/mi-main.c (mi_cmd_list_features): Emit
5502 breakpoint-notifications.
5503
3b2b8fea
TT
55042011-06-29 Tom Tromey <tromey@redhat.com>
5505
5506 PR fortran/10036:
5507 * valprint.h (generic_emit_char, generic_printstr): Declare.
5508 * valprint.c (wchar_printable, append_string_as_wide)
5509 (print_wchar): Move from c-lang.c.
5510 (generic_emit_char): New function; mostly taken from c_emit_char.
5511 (generic_printstr): New function; mostly taken from c_printstr.
5512 * f-valprint.c (f_val_print) <TYPE_CODE_ARRAY>: Handle strings
5513 represented as arrays.
5514 <TYPE_CODE_CHAR>: Treat as TYPE_CODE_INT; recognize as character
5515 type.
5516 * f-typeprint.c (f_type_print_base) <TYPE_CODE_CHAR>: Treat
5517 identically to TYPE_CODE_INT.
5518 * f-lang.c (f_get_encoding): New function.
5519 (f_emit_char): Use generic_emit_char.
5520 (f_printchar): Replace comment.
5521 (f_printstr): Use generic_printstr.
5522 * dwarf2read.c (read_base_type) <DW_ATE_unsigned>: Handle Fortran
5523 "character" types specially.
5524 <DW_ATE_signed_char, DW_ATE_unsigned_char>: Make TYPE_CODE_CHAR
5525 for Fortran.
5526 * c-lang.c (wchar_printable, append_string_as_wide, print_wchar):
5527 Move to valprint.c
5528 (c_emit_char): Call generic_emit_char.
5529 (c_printstr): Call generic_printstr.
5530
168e6d44
GB
55312011-06-29 Gary Benson <gbenson@redhat.com>
5532
5533 * breakpoint.c (bpstat_what): Removed duplicated case.
5534
1c033f8c
TT
55352011-06-28 Tom Tromey <tromey@redhat.com>
5536
5537 * python/python-internal.h (PY_SSIZE_T_CLEAN): Define.
5538
5fe41fbf
TT
55392011-06-27 Tom Tromey <tromey@redhat.com>
5540
5541 * valops.c (find_overload_match): Call do_cleanups before early
5542 return.
5543 * top.c (execute_command): Call do_cleanups before early return.
5544 (command_loop): Likewise.
5545 * stack.c (backtrace_command): Make a null cleanup early. Don't
5546 conditionally call do_cleanups.
5547 * python/py-value.c (TRY_CATCH): Move cleanup handling into
5548 TRY_CATCH.
5549 * python/py-breakpoint.c (gdbpy_breakpoint_has_py_cond): Rearrange
5550 so cleanups are always run.
5551 * mi/mi-cmd-var.c (mi_cmd_var_delete): Reset old_cleanups.
5552 * findcmd.c (parse_find_args): Call do_cleanups on early return
5553 path.
5554 * dbxread.c (elfstab_build_psymtabs): Make a null cleanup early.
5555 Don't conditionally call do_cleanups.
5556 * cli/cli-script.c (execute_user_command): Initialize 'old_chain'
5557 later.
5558
e26bd57d
EB
55592011-06-27 Eric Botcazou <ebotcazou@adacore.com>
5560
5561 * MAINTAINERS (Write After Approval): Use default email address.
5562
6c3097fc
JB
55632011-06-27 Joel Brobecker <brobecker@adacore.com>
5564
5565 * MAINTAINERS (Write After Approval): Add Eric Botcazou.
5566
369c397b
JB
55672011-06-27 Eric Botcazou <ebotcazou@adacore.com>
5568
5569 * sparc-tdep.h (struct sparc_frame_cache): Add frame_offset,
5570 saved_regs_mask and copied_regs_mask fields.
5571 (sparc_record_save_insn): New prototype.
5572 * sparc-tdep.c (sparc_alloc_frame_cache): Initialize the new fields.
5573 (sparc_record_save_insn): New function.
5574 (sparc_analyze_prologue): Add head comment. Recognize store insns
5575 of call-saved registers. Use OFFSET consistently. Recognize flat
5576 frames and cache their settings.
5577 (sparc32_skip_prologue): Handle flat frames.
5578 (sparc_frame_cache): Add frame_offset to the base address.
5579 (sparc32_frame_cache): Adjust to new frame description.
5580 (sparc32_frame_prev_register): Likewise.
5581 * sparc64-tdep.c (sparc64_frame_prev_register): Likewise.
5582 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
5583 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
5584 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_cache): Force the
5585 frame by calling sparc_record_save_insn.
5586 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_cache): Likewise.
5587 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_cache): Likewise.
5588 * sparc64obsd-tdep.c (sparc64obsd_frame_cache): Likewise.
5589
b315ab21
TG
55902011-06-27 Tristan Gingold <gingold@adacore.com>
5591
5592 * dwarf2read.c (struct dwarf2_section_info): Replace was_mmapped
5593 field by map_addr and map_len.
5594 (dwarf2_read_section): Adjust for the new bfd_mmap api.
5595 (munmap_section_buffer): Likewise.
5596
ddd49eee
TT
55972011-06-24 Tom Tromey <tromey@redhat.com>
5598
5599 * varobj.c (update_dynamic_varobj_children): Make 'name' const.
5600 * symtab.h (lookup_struct, lookup_union, lookup_enum): Update.
5601 * python/python.c (gdbpy_parameter): Make 'arg' const.
5602 (execute_gdb_command): Likewise.
5603 (gdbpy_decode_line): Likewise. Copy it.
5604 (gdbpy_parse_and_eval): Make 'expr_string' const. Copy it.
5605 (gdbpy_write): Make 'arg' const.
5606 * python/py-type.c (typy_lookup_typename): Make 'type_name'
5607 const.
5608 (gdbpy_lookup_type): Likewise.
5609 * python/py-prettyprint.c (print_children): Make 'name' const.
5610 * python/py-param.c (parmpy_init): Make 'name' const. Copy it.
5611 * python/py-inferior.c (infpy_write_memory): Make 'buf_len' a
5612 Py_ssize_t.
5613 * python/py-function.c (fnpy_init): Make 'name' const.
5614 * python/py-cmd.c (cmdpy_init): Make 'name' const. Copy it.
5615 (gdbpy_string_to_argv): Make 'input' const.
5616 * python/py-breakpoint.c (bppy_init): Make 'spec' const. Copy
5617 it.
5618 * gdbtypes.h (lookup_typename): Update.
5619 * gdbtypes.c (lookup_typename): Make 'name' const.
5620 (lookup_struct): Likewise.
5621 (lookup_union): Likewise.
5622 (lookup_enum): Likewise.
5623
5998129b
TT
56242011-06-24 Tom Tromey <tromey@redhat.com>
5625
5626 * Makefile.in (HFILES_NO_SRCDIR): Add "common/" to
5627 gdb_thread_db.h. Move all common/ entries to be together.
5628 (TAGS): Don't depend on DEPFILES.
5629
6e586cc5
YQ
56302011-06-23 Yao Qi <yao@codesourcery.com>
5631
5632 * infrun.c (start_remote): Move call init_wait_for_inferior to ...
5633 * remote.c (remote_start_remote): ... here.
5634 * monitor.c (monitor_open): ... here.
5635
86c3c1fc
AB
56362011-06-23 Andrew Burgess <aburgess@broadcom.com>
5637
5638 * gdbtypes.c (append_composite_type_field_aligned): Fix
5639 calculation of bit position based on alignment.
5640
28010a5d
PA
56412011-06-22 Pedro Alves <pedro@codesourcery.com>
5642
5643 * breakpoint.c (bpstat_stop_status): Call the check_status
5644 breakpoint_ops method.
5645 (print_one_breakpoint_location): Also print the condition for Ada
5646 exception catchpoints.
5647 (allocate_bp_location): New, factored out from
5648 allocate_bp_location.
5649 (allocate_bp_location): Adjust. Call the owner breakpoint's
5650 allocate_location method, if there is one.
5651 (free_bp_location): Call the locations's dtor method, if there is
5652 one.
5653 (init_raw_breakpoint_without_location): New breakpoint_ops
5654 parameter. Use it.
5655 (set_raw_breakpoint_without_location): Adjust.
5656 (init_raw_breakpoint): New breakpoint_ops parameter. Pass it down.
5657 (set_raw_breakpoint): Adjust.
5658 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
5659 (catch_syscall_breakpoint_ops): Install NULL allocate_location,
5660 re_set and check_status methods.
5661 (init_catchpoint): Don't memset, initialize thread, addr_string
5662 and enable_state. Pass the ops down to init_raw_breakpoint.
5663 (install_catchpoint): Rename to ...
5664 (install_breakpoint): ... this, and make extern.
5665 (create_fork_vfork_event_catchpoint): Adjust.
5666 (catch_exec_breakpoint_ops): Install NULL allocate_location,
5667 re_set and check_status methods.
5668 (create_syscall_event_catchpoint): Adjust.
5669 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
5670 (masked_watchpoint_breakpoint_ops): Install NULL
5671 allocate_location, re_set and check_status methods.
5672 (catch_exec_command_1): Adjust.
5673 (gnu_v3_exception_catchpoint_ops): Install NULL allocate_location,
5674 re_set and check_status methods.
5675 (create_ada_exception_breakpoint): Rename to ...
5676 (init_ada_exception_breakpoint): ... this. Add a struct
5677 breakpoint parameter, and delete the exp_string, cond_string and
5678 cond parameters. Use init_raw_breakpoint, and don't install or
5679 mention the breakpoint yet. Don't clear breakpoint fields that
5680 init_raw_breakpoint already clears.
5681 (re_set_breakpoint): Delete, split into ...
5682 (breakpoint_re_set_default, prepare_re_set_context): ... these new
5683 functions.
5684 (breakpoint_re_set_one): Call the breakpoint's
5685 breakpoint_ops->re_set implementation, if there's one. Adjust.
5686 * breakpoint.h: Forward declare struct bpstats and struct bp_location.
5687 (struct bp_location_ops): New type.
5688 (struct bp_location): New field `ops'.
5689 (struct breakpoint_ops): New `allocate_location', `re_set' and
5690 `check_status' fields. Make `breakpoint_hit''s description match
5691 reality.
5692 (init_bp_location): Declare.
5693 (breakpoint_re_set_default): Declare.
5694 (create_ada_exception_breakpoint): Rename to ...
5695 (init_ada_exception_breakpoint): ... this. Add a struct
5696 breakpoint parameter, and delete the exp_string, cond_string and
5697 cond parameters.
5698 (install_breakpoint): Declare.
5699 * ada-lang.c: Include exceptions.h.
5700 <Ada exceptions description>: Update.
5701 (struct ada_catchpoint_location): New type.
5702 (ada_catchpoint_location_dtor): New function.
5703 (ada_catchpoint_location_ops): New global.
5704 (ada_catchpoint): New type.
5705 (create_excep_cond_exprs): New function.
5706 (dtor_exception, allocate_location_exception, re_set_exception)
5707 (should_stop_exception, check_status_exception): New functions.
5708 (print_one_exception, print_mention_exception)
5709 (print_recreate_exception): Adjust.
5710 (dtor_catch_exception, allocate_location_catch_exception)
5711 (re_set_catch_exception, check_status_catch_exception): New
5712 functions.
5713 (catch_exception_breakpoint_ops): Install them.
5714 (dtor_catch_exception_unhandled)
5715 (allocate_location_catch_exception_unhandled)
5716 (re_set_catch_exception_unhandled)
5717 (check_status_catch_exception_unhandled): New functions.
5718 (catch_exception_unhandled_breakpoint_ops): Install them.
5719 (dtor_catch_assert, allocate_location_catch_assert)
5720 (re_set_catch_assert, check_status_catch_assert): New functions.
5721 (catch_assert_breakpoint_ops): Install them.
5722 (ada_exception_catchpoint_p): Delete.
5723 (catch_ada_exception_command_split)
5724 (ada_exception_catchpoint_cond_string): Rename exp_string
5725 parameter to excep_string. Adjust.
5726 (ada_parse_catchpoint_condition): Delete.
5727 (ada_exception_sal): Rename the exp_string parameter to
5728 excep_string. Delete the cond_string and cond parameters.
5729 Adjust.
5730 (ada_decode_exception_location): Rename the exp_string parameter
5731 to excep_string. Delete the cond_string and cond parameters.
5732 Adjust.
5733 (create_ada_exception_catchpoint): New function.
5734 (catch_ada_exception_command, ada_decode_assert_location)
5735 (catch_assert_command): Adjust.
5736 * ada-lang.h (ada_exception_catchpoint_p): Delete declaration.
5737
9ac4176b
PA
57382011-06-22 Pedro Alves <pedro@codesourcery.com>
5739
5740 * ada-lang.c: Include arch-utils.h.
5741 (ada_decode_exception_location): Make static.
5742 (catch_ada_exception_command): Moved here from breakpoint.c.
5743 (ada_decode_assert_location): Make static.
5744 (catch_assert_command): Moved here from breakpoint.c.
5745 (_initialize_ada_lang): Install the exception and assert
5746 catchpoint commands here.
5747 * ada-lang.h (ada_decode_exception_location)
5748 (ada_decode_assert_location): Delete declarations.
5749 * breakpoint.c (CATCH_PERMANENT, CATCH_TEMPORARY): Moved to
5750 breakpoint.h.
5751 (create_ada_exception_breakpoint): Make extern.
5752 (catch_ada_exception_command, catch_assert_command): Moved to
5753 ada-lang.c.
5754 (add_catch_command): Make extern.
5755 (_initilize_breakpoint): Don't install the exception and assert
5756 catchpoint commands here.
5757 * breakpoint.h (CATCH_PERMANENT, CATCH_TEMPORARY): Moved from
5758 breakpoint.c
5759 (add_catch_command, create_ada_exception_breakpoint): Declare.
5760
c56053d2
PA
57612011-06-22 Pedro Alves <pedro@codesourcery.com>
5762
5763 * breakpoint.c (init_raw_breakpoint_without_location): Don't add
5764 the breakpoint to the breakpoint chain here.
5765 (set_raw_breakpoint_without_location): Add the breakpoint to the
5766 breakpoint chain here.
5767 (init_raw_breakpoint): Adjust comments.
5768 (set_raw_breakpoint): Add the breakpoint to the breakpoint chain
5769 here.
5770 (init_catchpoint): Don't set the catchpoint's breakpoint number
5771 here.
5772 (install_catchpoint): New function.
5773 (create_fork_vfork_event_catchpoint)
5774 (create_syscall_event_catchpoint, catch_exec_command_1): Adjust to
5775 use install_catchpoint.
5776
d2f3fc74
PA
57772011-06-22 Pedro Alves <pedro@codesourcery.com>
5778
5779 * breakpoint.c (create_catchpoint_without_mention)
5780 (create_catchpoint): Delete.
5781
b4d90040
PA
57822011-06-22 Pedro Alves <pedro@codesourcery.com>
5783
5784 * breakpoint.h (struct breakpoint): Delete field `exec_pathname'.
5785 * breakpoint.c (init_raw_breakpoint_without_location): Remove
5786 reference to exec_pathname.
5787 (struct exec_catchpoint): New type.
5788 (dtor_catch_exec): New function.
5789 (insert_catch_exec, print_it_catch_exec, print_one_catch_exec): Adjust.
5790 (catch_exec_breakpoint_ops): Install dtor_catch_syscall.
5791 (catch_exec_command_1): Adjust to use init_catchpoint.
5792 (delete_breakpoint): Remove reference to exec_pathname.
5793
be5c67c1
PA
57942011-06-22 Pedro Alves <pedro@codesourcery.com>
5795
5796 * breakpoint.h (struct breakpoint_ops): New field `dtor'.
5797 (struct breakpoint): Delete field `syscalls_to_be_caught'.
5798 * breakpoint.c (init_raw_breakpoint_without_location): Remove
5799 reference to syscalls_to_be_caught.
5800 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops): Install a
5801 NULL `dtor'.
5802 (struct syscall_catchpoint): New type.
5803 (dtor_catch_syscall): New function.
5804 (insert_catch_syscall, remove_catch_syscall)
5805 (breakpoint_hit_catch_syscall, print_one_catch_syscall)
5806 (print_recreate_catch_syscall): Adjust.
5807 (catch_syscall_breakpoint_ops): Install dtor_catch_syscall.
5808 (catch_exec_breakpoint_ops): Install a NULL `dtor'.
5809 (create_syscall_event_catchpoint): Adjust to use init_catchpoint.
5810 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
5811 (masked_watchpoint_breakpoint_ops)
5812 (gnu_v3_exception_catchpoint_ops): Install a NULL `dtor'.
5813 (delete_breakpoint): Call the `dtor' breakpoint_ops method, if
5814 there is one. Remove references to syscalls_to_be_caught.
5815 (catching_syscall_number): Adjust.
5816 * ada-lang.c (catch_exception_breakpoint_ops)
5817 (catch_exception_unhandled_breakpoint_ops)
5818 (catch_assert_breakpoint_ops): Install a NULL `dtor'.
5819
e29a4733
PA
58202011-06-22 Pedro Alves <pedro@codesourcery.com>
5821
5822 * breakpoint.h (struct breakpoint): Delete forked_inferior_pid
5823 field.
5824 * breakpoint.c (init_raw_breakpoint_without_location): Remove
5825 reference to forked_inferior_pid.
5826 (struct fork_catchpoint): New type.
5827 (breakpoint_hit_catch_fork, print_it_catch_fork)
5828 (print_one_catch_fork, breakpoint_hit_catch_vfork)
5829 (print_it_catch_vfork, print_one_catch_vfork): Adjust.
5830 (create_fork_vfork_event_catchpoint): Adjust to use
5831 init_catchpoint.
5832
346774a9
PA
58332011-06-22 Pedro Alves <pedro@codesourcery.com>
5834
5835 * breakpoint.c (add_to_breakpoint_chain)
5836 (init_raw_breakpoint_without_location): New functions, factored
5837 out from ...
5838 (set_raw_breakpoint_without_location): ... this one.
5839 (init_raw_breakpoint): New function, factored out from
5840 set_raw_breakpoint and adjusted to use
5841 init_raw_breakpoint_without_location.
5842 (set_raw_breakpoint): Adjust.
5843 (init_catchpoint): New function, factored out from
5844 create_catchpoint_without_mention and adjusted to use
5845 init_raw_breakpoint.
5846 (create_catchpoint_without_mention): Adjust.
5847
c38c4bc5
TT
58482011-06-22 Tom Tromey <tromey@redhat.com>
5849
5850 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_convert>: Treat type
5851 argument of 0 specially.
5852
b138ce37
YQ
58532011-06-22 Yao Qi <yao@codesourcery.com>
5854
5855 * infrun.c (handle_inferior_event): Remove write-only local variable
5856 `sw_single_step_trap_p'.
5857
03de6823
TT
58582011-06-20 Tom Tromey <tromey@redhat.com>
5859
5860 * symtab.c (lookup_language_this): End loop if block is NULL.
5861
66a17cb6
TT
58622011-06-17 Tom Tromey <tromey@redhat.com>
5863
5864 * valops.c (value_of_this): Use lookup_language_this.
5865 * symtab.h (lookup_language_this): Declare.
5866 * symtab.c (lookup_language_this): New function.
5867 (lookup_symbol_aux): Use lookup_language_this.
5868 * ax-gdb.c (gen_expr) <OP_THIS>: Use lookup_language_this.
5869
7518bff5
TT
58702011-06-17 Tom Tromey <tromey@redhat.com>
5871
5872 * value.h (value_of_this): Update.
5873 (value_of_local): Remove.
5874 * valops.c (value_of_this): Rename from value_of_local. Change
5875 parameters.
5876 * p-exp.y (exp): Update.
5877 (variable): Likewise.
5878 * eval.c (evaluate_subexp_standard) <OP_THIS>: Use value_of_this.
5879
aee28ec6
TT
58802011-06-17 Tom Tromey <tromey@redhat.com>
5881
5882 * valops.c (value_of_local): Complain if NAME is NULL.
5883 * std-operator.def (OP_OBJC_SELF): Remove.
5884 * parse.c (operator_length_standard) <OP_OBJC_SELF>: Remove.
5885 * objc-exp.y (name_not_typename): Use OP_THIS.
5886 * expprint.c (print_subexp_standard) <OP_THIS>: Print language's
5887 name for "this".
5888 <OP_OBJC_SELF>: Remove.
5889 * eval.c (evaluate_subexp_standard) <OP_OBJC_SELF>: Remove.
5890
eed8f803
TG
58912011-06-16 Tristan Gingold <gingold@adacore.com>
5892
5893 * python/py-events.h (gdb_py_events): Make it extern.
5894 * python/py-evtregistry.c (gdb_py_events): Declare.
5895
864ac8a7
HZ
58962011-06-16 Hui Zhu <teawater@gmail.com>
5897
5898 * remote.c (remote_trace_set_readonly_regions): Add check for
5899 remote_protocol_packets[PACKET_qXfer_traceframe_info].support before
5900 output warning.
5901
ef7e8358
UW
59022011-06-15 Ulrich Weigand <ulrich.weigand@linaro.org>
5903
5904 * arm-linux-tdep.c: Include "auxv.h".
5905 (AT_HWCAP): Define.
5906 (ARM_LINUX_SIZEOF_VFP): Define.
5907 (arm_linux_supply_vfp): New function.
5908 (arm_linux_collect_vfp): Likewise.
5909 (arm_linux_regset_from_core_section): Handle .reg-arm-vfp sections.
5910 (arm_linux_fpa_regset_sections): New variable.
5911 (arm_linux_vfp_regset_sections): Likewise.
5912 (arm_linux_core_read_description): New function.
5913 (arm_linux_init_abi): Install arm_linux_core_read_description and
5914 arm_linux_fpa_regset_sections or arm_linux_vfp_regset_sections as
5915 appropriate for the architecture.
5916 * arm-tdep.h (struct gdbarch_tdep): Add member "vfpregset".
5917 (tdesc_arm_with_m): Declare.
5918 (tdesc_arm_with_iwmmxt): Likewise.
5919 (tdesc_arm_with_vfpv2): Likewise.
5920 (tdesc_arm_with_vfpv3): Likewise.
5921 (tdesc_arm_with_neon): Likewise.
5922 * arm-linux-nat.c: Move features/*.c includes ...
5923 * arm-tdep.c: ... here.
5924 * arm-linux-nat.c (arm_linux_read_description): Move initializing
5925 target description data structures ...
5926 * arm-tdep.c (_initialize_arm_tdep): ... here.
5927 * arm-linux-nat.c (HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3,
5928 HWCAP_VFPv3D16): Move definitions ...
5929 * arm-linux-tdep.h: ... here.
5930
c2fa21f1
HZ
59312011-06-15 Hui Zhu <teawater@gmail.com>
5932
5933 * remote.c (remote_trace_set_readonly_regions): Add a check for
5934 target_buf_size.
5935
dd707e8e
TT
59362011-06-14 Tom Tromey <tromey@redhat.com>
5937
5938 * coffread.c (coffread_objfile): Rename from current_objfile.
5939 * dbxread.c (dbxread_objfile): Rename from current_objfile.
5940 * mdebugread.c (mdebugread_objfile): Rename from current_objfile.
5941
86cc0029
TT
59422011-06-14 Tom Tromey <tromey@redhat.com>
5943
5944 * jv-lang.c (jv_type_objfile_data_key, dynamics_objfile)
5945 (class_symtab): Remove.
5946 (jv_dynamics_progspace_key): New global.
5947 (jv_per_objfile_free): Reset program space data. Update assert.
5948 Don't clear globals.
5949 (get_dynamics_objfile): Use and set program space data.
5950 (get_java_class_symtab): Use get_dynamics_objfile.
5951 (add_class_symbol): Likewise.
5952 (java_link_class_type): Likewise.
5953 (java_object_type, jv_clear_object_type, set_java_object_type):
5954 Remove.
5955 (get_java_object_type): Update. Don't cache result.
5956 (is_object_type): Don't call set_java_object_type.
5957 (_initialize_java_language): Don't set jv_type_objfile_data_key;
5958 initialize jv_dynamics_progspace_key.
5959
91a81f69
TT
59602011-06-14 Tom Tromey <tromey@redhat.com>
5961
5962 * symtab.h (current_objfile): Don't declare.
5963 * objfiles.h (current_objfile): Don't declare.
5964 * objfiles.c (current_objfile): Remove.
5965 * mdebugread.c (current_objfile): New file-scope global.
5966 * dbxread.c (current_objfile): New file-scope global.
5967 * coffread.c (current_objfile): New file-scope global.
5968
dc7eb48e
PA
59692011-06-13 Pedro Alves <pedro@codesourcery.com>
5970
5971 * top.h (line): Rename to ...
5972 (saved_command_line): ... this.
5973 (linesize): Rename to ...
5974 (saved_command_line_size): ... this.
5975 * top.c (line): Rename to ...
5976 (saved_command_line): ... this.
5977 (linesize): Rename to ...
5978 (saved_command_line_size): ... this.
5979 (dont_repeat, command_line_input, dont_repeat_command): Adjust.
5980 * event-top.c (command_line_handler): Adjust.
5981 * main.c (captured_main): Adjust.
5982
0d6c2135
MK
59832011-06-12 Mark Kettenis <kettenis@gnu.org>
5984
5985 * i386-tdep.c (i386_epilogue_frame_cache): Simplify code. Call
5986 get_frame_func instead of get_frame_pc to determine the code
5987 address used to construct the frame ID.
5988 (i386_epilogue_frame_unwind_stop_reason): Fix coding style.
5989 (i386_epilogue_frame_this_id): Likewise.
5990 (i386_epilogue_frame_prev_register): New function.
5991 (i386_epilogue_frame_unwind): Use i386_epilogue_frame_prev_register.
5992 (i386_stack_tramp_frame_sniffer): Fix coding style.
5993 (i386_stack_tramp_frame_unwind): Use i386_epilogue_frame_prev_register.
5994 (i386_gdbarch_init): Fix comments.
5995
8bbdd3f4
MK
59962011-06-12 Mark Kettenis <kettenis@gnu.org>
5997
5998 * i386-tdep.c (i386_match_insn_block): Use length of the proper
5999 instruction when walking back through the instruction stream.
6000
533a737e
JK
60012011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
6002
6003 * symtab.c (output_partial_symbol_filename): Exchange the filename and
6004 fullname parameters order.
6005
44b13c5a
JK
60062011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
6007
6008 Code cleanup.
6009 * dwarf2read.c (dw2_map_symbol_filenames): Use symbol_filename_ftype
6010 for fun.
6011 * psymtab.c (map_symbol_filenames_psymtab)
6012 (map_partial_symbol_filenames): Likewise.
6013 * psymtab.h: Include symfile.h.
6014 (map_partial_symbol_filenames): Use symbol_filename_ftype for fun.
6015 * symfile.h (symbol_filename_ftype): New.
6016 (struct quick_symbol_functions): Use symbol_filename_ftype for fun of
6017 map_symbol_filenames, clarify more the naming in comment.
6018
0b5574da
DE
60192011-06-07 Doug Evans <dje@google.com>
6020
6021 * cc-with-index.sh: Fix typos in comment.
b8e9bd6c 6022 Look for ../../gdb, for fullname.exp.
0b5574da 6023
5be4dfca
JK
60242011-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
6025 Pedro Alves <pedro@codesourcery.com>
6026
6027 * cli/cli-cmds.c (shell_escape): Use waitpid.
6028 * rs6000-nat.c (exec_one_dummy_insn): Likewise.
6029
316a8b21
TG
60302011-06-07 Tristan Gingold <gingold@adacore.com>
6031
6032 * xcoffread.c (dwarf2_xcoff_names): New variable.
6033 (aix_process_linenos): Add a guard.
6034 (xcoff_symfile_finish): Free dwarf2.
6035 (xcoff_initial_scan): Add dwarf2 support.
6036
3dd5b83d
PA
60372011-06-06 Pedro Alves <pedro@codesourcery.com>
6038
6039 * infcall.c (run_inferior_call): Don't mask async. Instead force
6040 a synchronous wait, if the target can async.
6041
6042 * target.h (struct target_ops): Delete to_async_mask.
6043 (target_async_mask): Delete.
6044 * target.c (update_current_target): Delete references to to_async_mask.
6045 * linux-nat.c (linux_nat_async_mask_value): Delete.
6046 (linux_nat_is_async_p, linux_nat_can_async_p): Remove references
6047 to linux_nat_async_mask_value.
6048 (linux_nat_async_mask): Delete.
6049 (linux_nat_async, linux_nat_close): Remove references to
6050 linux_nat_async_mask_value.
6051 * record.c (record_async_mask_value): Delete.
6052 (record_async): Remove references to record_async_mask_value.
6053 (record_async_mask): Delete.
6054 (record_can_async_p, record_is_async_p): Remove references to
6055 record_async_mask_value.
6056 (init_record_ops, init_record_core_ops): Remove references to
6057 record_async_mask.
6058 * remote.c (remote_async_mask_value): Delete.
6059 (init_remote_ops): Remove reference to remote_async_mask.
6060 (remote_can_async_p, remote_is_async_p): Remove references to
6061 remote_async_mask_value.
6062 (remote_async): Remove references to remote_async_mask_value.
6063 (remote_async_mask): Delete.
6064
6065 * infrun.c (fetch_inferior_event): Don't claim registers changed
6066 if the current thread is already not executing.
6067
64b9b334
JB
60682011-06-03 Joel Brobecker <brobecker@adacore.com> (obvious fix)
6069
6070 From Stephen Kitt <steve@sk2.org>
6071 * breakpoint.c, breakpoint.h, cli/cli-dump.c, dwarf2expr.c,
6072 gdbarch.c, gdbarch.sh, remote.c: Various spelling fixes.
6073
325663dc
JB
60742011-06-03 Joel Brobecker <brobecker@adacore.com>
6075
6076 * dwarf2expr.c (execute_stack_op) [DW_OP_deref]: Handle
6077 the case where ADDR_SIZE is different from TYPE_LENGTH (type).
6078
8cf64490
TT
60792011-06-03 Tom Tromey <tromey@redhat.com>
6080
6081 * python/py-inferior.c (python_inferior_exit): Use inferior's exit
6082 code fields.
6083 * python/py-exitedevent.c (create_exited_event_object): Change
6084 type of 'exit_code'. Optionally add exit_code attribute.
6085 (emit_exited_event): Change type of 'exit_code'.
6086 * python/py-event.h (emit_exited_event): Update.
6087 * mi/mi-interp.c (mi_inferior_exit): Print exit code.
6088 * infrun.c (handle_inferior_event): Set exit code fields on
6089 inferior.
6090 * inferior.h (struct inferior) <has_exit_code, exit_code>: New
6091 fields.
6092 * inferior.c (exit_inferior_1): Initialize new fields.
6093
8ddd9a20
TT
60942011-06-03 Tom Tromey <tromey@redhat.com>
6095
6096 * dwarf2expr.c (get_signed_type): New function.
6097 (execute_stack_op) <DW_OP_shra>: Always perform a signed shift.
6098
8dfd1e6d
KS
60992011-06-02 Keith Seitz <keiths@redhat.com>
6100
6101 * objc-lang.c (find_methods): Increment objfile_csym earlier.
6102
65fdb766
PA
61032011-06-02 Pedro Alves <pedro@codesourcery.com>
6104
6105 * top.h (simplified_command_loop): Delete declaration.
6106
f4b8c29b
MF
61072011-06-01 Mike Frysinger <vapier@gentoo.org>
6108
6109 * remote-sim.c (gdbsim_open): Add the strlen of " --sysroot=" and
6110 gdb_sysroot to the "len" variable. Append both to "arg_buf".
6111
1706c199
YQ
61122011-06-01 Yao Qi <yao@codesourcery.com>
6113
6114 * objfiles.h (obj_section_addr): Update reference to objfile from
6115 `abfd' to `obfd'.
6116 (obj_section_endaddr): Likewise.
6117
d19cd713 61182011-06-01 Daniel Jacobowitz <drow@false.org>
8d07004d
DJ
6119
6120 * MAINTAINERS: Update my email address and affiliation. Also
6121 update Ian Lance Taylor's affiliation. Use UTF-8 for ludo@gnu.org.
6122
e8eb7bc5
KS
61232010-05-31 Keith Seitz <keiths@redhat.com>
6124
6125 PR c++/12750
6126 * linespec.c (get_search_block): New function.
6127 (find_methods): Add FILE_SYMTATB parameter and use it and
6128 get_search_block to pass an appropriate block to
6129 lookup_symbol_in_namespace.
6130 (decode_line_1): Record if *ARGPTR is single-quote enclosed.
6131 Check if *ARGPTR starts with a filename first.
6132 If it does, call locate_first_half again to locate the next
6133 "first half" of the linespec.
6134 Pass FILE_SYMTATB to decode_objc and decode_compound.
6135 Swallow the trailing single-quote if IS_SQUOTE_ENCLOSED.
6136 (locate_first_half): Stop on the first colon seen.
6137 (decode_compound): Add FILE_SYMTAB parameter.
6138 Pass FILE_SYMTAB to lookup_prefix_sym and find_method.
6139 (lookup_prefix_sym): Add FILE_SYMTAB parameter and use
6140 get_search_block with lookup_symbol.
6141 (find_method): Add FILE_SYMTAB parameter and pass it to
6142 find_methods.
6143 (decode_objc): Use get_search_block.
6144
2b1dbab0
KS
61452010-05-31 Keith Seitz <keiths@redhat.com>
6146
6147 PR symtab/12704
6148 * cp-namespace.c (ANONYMOUS_NAMESPACE_LEN): Remove.
6149 (cp_scan_for_anonymous_namespaces): Use CP_ANONYMOUS_NAMESPACE_STR
6150 and CP_ANONYMOUS_NAMESPACE_LEN.
6151 (cp_is_anonymous): Likewise.
6152 * cp-support.h (CP_ANONYMOUS_NAMESPACE_STR): Define.
6153 (CP_ANONYMOUS_NAMESPACE_LEN): Define.
6154 * dwarf2read.c (namespace_name): Likewise.
6155 (fixup_partial_die): Likewise.
6156 * linespec.c (decode_compound): If CP_ANONYMOUS_NAMESPACE_STR is
6157 seen in the input, keep it.
6158
6d549500
PA
61592011-05-30 Pedro Alves <pedro@codesourcery.com>
6160
6161 * target.h (enum inferior_event_type): Delete INF_QUIT_REQ.
6162 * inf-loop.h (inferior_event_handler_wrapper): Delete.
6163 * inf-loop.c (inferior_event_handler_wrapper): Delete.
6164 (inferior_event_handler): Don't handle INF_QUIT_REQ.
6165 * remote.c (_initialize_remote): Register
6166 async_remote_interrupt_twice directly as
6167 sigint_remote_twice_token event.
6168
395bff70
PA
61692011-05-30 Pedro Alves <pedro@codesourcery.com>
6170
6171 * target.h (enum inferior_event_type): Delete INF_ERROR.
6172 * inf-loop.c (inferior_event_handler): Don't handle INF_ERROR.
6173
97224164
PA
61742011-05-30 Pedro Alves <pedro@codesourcery.com>
6175
6176 * interps.c (interp_set): Don't cancel continuations.
6177
07e78767
JK
61782011-05-30 Jan Kratochvil <jan.kratochvil@redhat.com>
6179
6180 * linux-nat.c (linux_lwp_is_zombie): Use xsnprintf.
6181
fa4cd53f
PA
61822011-05-30 Pedro Alves <pedro@codesourcery.com>
6183
6184 * continuations.h (continuation_ftype): Add `err' parameter.
6185 Document parameters.
6186 (do_all_continuations, do_all_continuations_thread)
6187 (do_all_intermediate_continuations)
6188 (do_all_intermediate_continuations_thread)
6189 (do_all_inferior_continuations): Add `err' parameter.
6190 * continuations.c (do_my_continuations_1, do_my_continuations)
6191 (do_all_inferior_continuations, do_all_continuations_ptid)
6192 (do_all_continuations_thread_callback)
6193 (do_all_continuations_thread, do_all_continuations)
6194 (do_all_intermediate_continuations_thread_callback)
6195 (do_all_intermediate_continuations_thread)
6196 (do_all_intermediate_continuations): Add `err' parameter, and pass
6197 it down all the way to the continuations proper.
6198 * inf-loop.c (inferior_event_handler): If fetching an inferior
6199 event throws an error, don't pop the target, and still call the
6200 continuations, but with `err' set. Adjust all other continuation
6201 calls.
6202 * breakpoint.c (until_break_command_continuation): Add `err'
6203 parameter.
6204 * infcmd.c (step_1_continuation): Add `err' parameter. Don't
6205 issue another step if `err' is set.
6206 (struct until_next_continuation_args): New.
6207 (until_next_continuation): Add `err' parameter. Adjust.
6208 (until_next_command): Adjust.
6209 (struct finish_command_continuation_args): Add `thread' field.
6210 (finish_command_continuation): Add `err' parameter. Handle it.
6211 (finish_forward): Adjust.
6212 (attach_command_continuation): Add `err' parameter. Handle it.
6213 * infrun.c (infrun_thread_stop_requested_callback): Adjust to
6214 cancel the continuations.
6215 * interps.c (interp_set): Adjust to cancel the continuations.
6216 * thread.c (clear_thread_inferior_resources): Adjust to cancel the
6217 continuations rather than discarding.
6218 (free_thread): Don't clear thread inferior resources here.
6219 (delete_thread_1): Do it here instead. And do it before removing
6220 the thread from the threads list. Tag the thread as exited before
6221 clearing thread inferior resources.
6222
c2949be0
JB
62232011-05-30 Joel Brobecker <brobecker@adacore.com>
6224
6225 * infcall.c (call_function_by_hand): Rephrase error message.
6226
619cebe8
PA
62272011-05-27 Pedro Alves <pedro@codesourcery.com>
6228
6229 * defs.h (struct thread_info, struct inferior): Delete forward
6230 declarations.
6231 * breakpoint.h (struct thread_info): New forward declaration.
6232 * observer.sh (struct inferior): New forward declaration.
6233 * python/python-internal.h (struct inferior): New forward
6234 declaration.
6235
be34f849
PA
62362011-05-27 Pedro Alves <pedro@codesourcery.com>
6237
6238 * defs.h (struct continuation, continuation_ftype)
6239 (continuation_free_arg_ftype, add_continuation)
6240 (do_all_continuations, do_all_continuations_thread)
6241 (discard_all_continuations, discard_all_continuations_thread)
6242 (add_intermediate_continuation, do_all_intermediate_continuations)
6243 (do_all_intermediate_continuations_thread)
6244 (discard_all_intermediate_continuations)
6245 (discard_all_intermediate_continuations_thread)
6246 (add_inferior_continuation, do_all_inferior_continuations)
6247 (discard_all_inferior_continuations): Move to ...
6248 * continuations.h: ... this new file.
6249 * breakpoint.c, continuations.c, event-top.c, inf-loop.c,
6250 infcmd.c, inferior.c, infrun.c, interps.c: Include
6251 continuations.h.
6252
432b4d03
JK
62532011-05-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6254 Doug Evans <dje@google.com>
6255
6256 Fix PR 10970, PR 12702.
6257 * linux-nat.c (linux_lwp_is_zombie): New function.
6258 (wait_lwp): Initialize status. New variable prev_mask. Block signals.
6259 Check for linux_lwp_is_zombie. Use WNOHANG and sigsuspend.
6260
b0f260d6
PA
62612011-05-27 Pedro Alves <pedro@codesourcery.com>
6262
6263 * defs.h (continuation_ftype, continuation_free_arg_ftype): New
6264 typedefs.
6265 (add_continuation, add_intermediate_continuation)
6266 (add_inferior_continuation): Use them.
6267 * continuations.c (struct continuation): Use them.
6268 (make_continuation_ftype): Delete.
6269 (make_continuation, add_inferior_continuation, add_continuation)
6270 (add_intermediate_continuation): Use continuation_ftype and
6271 continuation_free_arg_ftype. Rename parameters to shorter names.
6272
af1e9a32
PA
62732011-05-27 Pedro Alves <pedro@codesourcery.com>
6274
6275 * continuations.c (make_continuation): Make it return void.
6276 (do_my_continuations): Rename to ...
6277 (do_my_continuations_1): ... this. Remove old_chain parameter and
6278 adjust.
6279 (do_my_continuations): New.
6280 (discard_my_continuations): Rename to ...
6281 (discard_my_continuations_1): ... this. Remove old_chain
6282 parameter and adjust.
6283 (discard_my_continuations): New.
6284 (add_inferior_continuation): Simplify.
6285 (do_all_inferior_continuations): Reimplement on top
6286 do_my_continuations.
6287 (discard_all_inferior_continuations): Simplify.
6288 (add_continuation): Simplify.
6289 (do_all_continuations_ptid): Simplify.
6290 (discard_all_continuations_thread_callback): Simplify.
6291 (add_intermediate_continuation): Simplify.
6292 (discard_all_intermediate_continuations_thread_callback):
6293 Simplify.
6294
50c0c017
PA
62952011-05-27 Pedro Alves <pedro@codesourcery.com>
6296
6297 * utils.c (struct continuation, add_continuation)
6298 (add_inferior_continuation)
6299 (do_all_inferior_continuations, discard_all_inferior_continuations)
6300 (restore_thread_cleanup, do_all_continuations_ptid)
6301 (do_all_continuations_thread_callback)
6302 (do_all_continuations_thread, do_all_continuations)
6303 (discard_all_continuations_thread_callback)
6304 (discard_all_continuations_thread, discard_all_continuations)
6305 (add_intermediate_continuation)
6306 (do_all_intermediate_continuations_thread_callback)
6307 (do_all_intermediate_continuations_thread)
6308 (do_all_intermediate_continuations)
6309 (discard_all_intermediate_continuations_thread_callback)
6310 (discard_all_intermediate_continuations_thread)
6311 (discard_all_intermediate_continuations): Move to ...
6312 * continuations.c: ... this new file, and adjust to no longer
6313 implement continuations on top of cleanups.
6314 * Makefile.in (SFILES): Add continuations.c.
6315 (COMMON_OBS): Add continuations.o.
6316
d8b34453
PA
63172011-05-26 Pedro Alves <pedro@codesourcery.com>
6318
6319 * inferior.h (enum exec_direction_kind): Delete EXEC_ERROR.
6320 * infrun.c (show_exec_direction_func): Don't handle EXEC_ERROR.
6321 Internal error on invalid values.
6322 * reverse.c: Don't handle EXEC_ERROR.
6323 * mi/mi-main.c: Don't handle EXEC_ERROR.
6324
32231432
PA
63252011-05-26 Pedro Alves <pedro@codesourcery.com>
6326
6327 * record.c: Include event-loop.h, inf-loop.h.
6328 (record_beneath_to_async): New global.
6329 (tmp_to_async): New global.
6330 (record_async_inferior_event_token): New global.
6331 (record_open_1): Don't error out if async is enabled.
6332 (record_open): Handle to_async. Create an async event source in
6333 the event loop.
6334 (record_close): Delete the async event source.
6335 (record_resumed): New global.
6336 (record_execution_dir): New global.
6337 (record_resume, record_core_resume): Set them. Register the
6338 target on the event loop.
6339 (record_wait): Rename to ...
6340 (record_wait_1): ... this. Add more debug output. Handle
6341 TARGET_WNOHANG, and the target beneath returning
6342 TARGET_WAITKIND_IGNORE.
6343 (record_wait): Reimplement on top of record_wait_1.
6344 (record_async_mask_value): New global.
6345 (record_async, record_async_mask, record_can_async_p)
6346 (record_is_async_p, record_execution_direction): New functions.
6347 (init_record_ops, init_record_core_ops): Install new methods.
6348 * infrun.c (fetch_inferior_event): Temporarily switch the global
6349 execution direction to the direction the target was going.
6350 (execution_direction): Change type to int.
6351 * target.c (default_execution_direction): New function.
6352 (update_current_target): Inherit and de_fault
6353 to_execution_direction.
6354 * target.h (struct target_ops) <to_execution_direction>: New
6355 field.
6356 (target_execution_direction): New macro.
6357 * inferior.h (execution_direction): Change type to int.
6358
949dc678
PA
63592011-05-26 Pedro Alves <pedro@codesourcery.com>
6360
6361 * infcall.c (call_function_by_hand): Don't allow calling functions
6362 in reverse execution mode.
6363
c13bd2b5
PA
63642011-05-26 Pedro Alves <pedro@codesourcery.com>
6365
6366 * infcmd.c (finish_command): Allow async finish in reverse.
6367
6938fd34
YQ
63682011-05-26 Yao Qi <yao@codesourcery.com>
6369
6370 * gdb_thread_db.h: Delete. Move to ...
6371 * common/gdb_thread_db.h: ... here.
6372
9da8c2a0
PA
63732011-05-26 Pedro Alves <pedro@codesourcery.com>
6374
6375 * infcmd.c (finish_backward): Set a step-resume breakpoint at the
6376 function's entry point instead of a manually managed momentary
6377 breakpoint, and only ever issue one proceed call.
6378 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_STEP_RESUME>: If
6379 doing a reverse-finish, switch to stepi mode, to do another step.
6380 (insert_step_resume_breakpoint_at_sal): Make public.
6381 (normal_stop): No need to save function value return registers if
6382 going reverse.
6383 * inferior.h (insert_step_resume_breakpoint_at_sal): Declare.
6384
2c03e5be
PA
63852011-05-26 Pedro Alves <pedro@codesourcery.com>
6386
6387 * breakpoint.h (enum bptype) <bp_hp_step_resume>: New.
6388 (enum bpstat_what_main_action): Move BPSTAT_WHAT_STEP_RESUME
6389 before BPSTAT_WHAT_STOP_SILENT. Add BPSTAT_WHAT_HP_STEP_RESUME
6390 at the end.
6391 * breakpoint.c (update_breakpoints_after_exec): Also delete hp
6392 step-resume breakpoints.
6393 (print_it_typical): Handle bp_hp_step_resume.
6394 (bpstat_what): Ditto.
6395 (bptype_string): Ditto.
6396 (print_one_breakpoint_location): Ditto.
6397 (allocate_bp_location): Ditto.
6398 (mention): Ditto.
6399 (breakpoint_re_set_one): Ditto.
6400 * infrun.c (handle_inferior_event): Adjust. Split
6401 BPSTAT_WHAT_STEP_RESUME handling in BPSTAT_WHAT_STEP_RESUME and
6402 BPSTAT_WHAT_HP_STEP_RESUME.
6403 (insert_step_resume_breakpoint_at_sal): Rename to ...
6404 (insert_step_resume_breakpoint_at_sal_1): ... this. Add bptype
6405 parameter. Handle it.
6406 (insert_step_resume_breakpoint_at_sal): Reimplement on top of
6407 insert_step_resume_breakpoint_at_sal_1.
6408 (insert_step_resume_breakpoint_at_frame): Rename to ...
6409 (insert_hp_step_resume_breakpoint_at_frame): ... this. Adjust to
6410 set a high-priority step-resume breakpoint.
6411 (insert_step_resume_breakpoint_at_frame): Adjust comment.
6412 (insert_step_resume_breakpoint_at_caller): Ditto.
6413
51be5b68
PA
64142011-05-26 Pedro Alves <pedro@codesourcery.com>
6415
6416 * breakpoint.c (iterate_over_related_breakpoints): New.
6417 (do_map_delete_breakpoint): New.
6418 (delete_command): Pass do_map_delete_breakpoint to
6419 map_breakpoint_numbers.
6420 (do_disable_breakpoint): New.
6421 (do_map_disable_breakpoint): Iterate over the breakpoint's related
6422 breakpoints.
6423 (do_enable_breakpoint): Rename to ...
6424 (enable_breakpoint_disp): ... this.
6425 (enable_breakpoint): Adjust.
6426 (do_enable_breakpoint): New.
6427 (enable_once_breakpoint): Delete.
6428 (do_map_enable_breakpoint): New.
6429 (do_map_enable_once_breakpoint): New.
6430 (enable_once_command, enable_delete_command)
6431 (delete_trace_command): Iterate over the breakpoint's related
6432 breakpoints.
6433
4a1be8d2
PA
64342011-05-26 Pedro Alves <pedro@codesourcery.com>
6435
6436 * alpha-tdep.c (alpha_cannot_fetch_register): Don't return true
6437 for ALPHA_ZERO_REGNUM.
6438 (alpha_supply_int_regs): Explicitly supply zero as the value for
6439 ALPHA_ZERO_REGNUM in the register cache.
6440 * alpha-nat.c (fetch_osf_core_registers): Ditto.
6441
59d70315
YQ
64422011-05-26 Yao Qi <yao@codesourcery.com>
6443
6444 * gdb/gdb_thread_db.h: Remove HAVE_UINTPTR_T.
6445
251d32d9
TG
64462011-05-26 Tristan Gingold <gingold@adacore.com>
6447
6448 * symfile.h (struct dwarf2_section_names): New type.
6449 (struct dwarf2_debug_sections): New type.
6450 (dwarf2_has_info): Add parameter.
6451 * dwarf2read.c (dwarf2_elf_names): New variable.
6452 (INFO_SECTION, ABBREV_SECTION, LINE_SECTION, LOC_SECTION)
6453 (MACINFO_SECTION, STR_SECTION, RANGES_SECTION, TYPES_SECTION)
6454 (FRAME_SECTION, EH_FRAME_SECTION, GDB_INDEX_SECTION): Remove.
6455 (dwarf2_has_info): Add names parameter. Pass names
6456 to dwarf2_locate_sections.
6457 (section_is_p): Rewrite using the names parameter.
6458 (dwarf2_locate_sections): Use section names from the names parameter.
6459 * coffread.c (coff_symfile_read): Adjust call to dwarf2_has_info.
6460 * elfread.c (read_psyms): Ditto.
6461 * machoread.c (macho_symfile_read): Ditto.
6462
652c71b4
AS
64632011-05-25 Andreas Schwab <schwab@redhat.com>
6464
6465 PR gdb/8677
6466 * event-loop.c (handle_file_event): Don't handle POLLHUP as error.
6467
f17170e5
KS
64682011-05-24 Keith Seitz <keiths@redhat.com>
6469
6470 PR breakpoint/12803
6471 * linespec.c (keep_name_info): Add handling for "volatile" keyword.
6472 (decode_compound): Unconditionally call keep_name_info.
6473
cdac0397
PA
64742011-05-24 Pedro Alves <pedro@codesourcery.com>
6475
6476 * breakpoint.c (watchpoint_check): If the watchpoint went out of
6477 scope, clear its command list.
6478 (map_breakpoint_numbers): Don't walk the related breakpoints list
6479 of each breakpoint.
6480
91d4fe3f
TT
64812011-05-24 Tom Tromey <tromey@redhat.com>
6482
6483 * MAINTAINERS: Move Jim Blandy to past maintainers.
6484
3017a003
TG
64852011-05-24 Tristan Gingold <gingold@adacore.com>
6486
6487 * symfile.h (enum dwarf2_section_enum): New type.
6488 (dwarf2_get_section_info): New prototype.
6489 * dwarf2read.c (dwarf2_get_section_info): Replace parameter
6490 section_name by sect. Use a switch to select the info.
6491 * dwarf2-frame.c (warf2_get_section_info): Remove prototype.
6492 (dwarf2_build_frame_info): Adjust calls to dwarf2_get_section_info.
6493
c91c8c16
PA
64942011-05-24 Pedro Alves <pedro@codesourcery.com>
6495
6496 * solib-svr4.c (svr4_solib_create_inferior_hook): Skip setting
6497 shared library event breakpoint if there's no execution.
6498
77bc418a
TJB
64992011-05-24 Thiago Jung Bauermann <bauerman@br.ibm.com>
6500
6501 * breakpont.c (remove_hw_watchpoints): Remove unused function.
6502 * breakpoint.h remove_hw_watchpoints(): Remove prototype.
6503
c50491a7
TT
65042011-05-23 Tom Tromey <tromey@redhat.com>
6505
6506 * c-lang.c (evaluate_subexp_c): Use expect_type if it is not
6507 NULL.
6508
6d64e6d4
DE
65092011-05-23 Doug Evans <dje@google.com>
6510
6511 * python/lib/gdb/printing.py (register_pretty_printer): Add missing
6512 entry for RuntimeError to doc string.
6513
2067c8d4
JG
65142011-05-23 Jerome Guitton <guitton@adacore.com>
6515
6516 * sparc-tdep.c (sparc_skip_stack_check): Recognize a new instruction
6517 sequence for probing loops.
6518
b136cd05
PA
65192011-05-23 Pedro Alves <pedro@codesourcery.com>
6520
6521 * infrun.c (user_visible_resume_ptid): Fix typos in describing
6522 comment.
6523
22e74ef9
MK
65242011-05-21 Mark Kettenis <kettenis@gnu.org>
6525
6526 * sparc-nat.c (sparc_fetch_inferior_registers): Explicitly supply
6527 zero as the value for %g0 in the register cache.
6528 * sparc-tdep.c (sparc32_supply_gregset): Likewise.
6529 * sparc64-tdep.c (sparc64_supply_gregset): Likewise.
6530
842951eb
PA
65312011-05-20 Pedro Alves <pedro@codesourcery.com>
6532
6533 * infrun.c (proceed): Set previous_inferior_ptid here.
6534 (init_wait_for_inferior): Initialize previous_inferior_ptid from
6535 inferior_ptid, not null_ptid.
6536 (wait_for_inferior): Don't initialize previous_inferior_ptid here.
6537 (fetch_inferior_event): Nor here.
6538
46cf51e6
PA
65392011-05-20 Pedro Alves <pedro@codesourcery.com>
6540
6541 * inf-loop.c (inferior_event_handler): Only output a message if
6542 verbose.
6543
29ef4c46
LM
65442011-05-20 Luis Machado <lgustavo@codesourcery.com>
6545
6546 * MAINTAINERS: Update my e-mail address.
6547
f148b27e
PA
65482011-05-20 Pedro Alves <pedro@codesourcery.com>
6549
6550 * infrun.c (proceed): Switch the inferior event loop to
6551 INF_EXEC_COMPLETE if the target refused to resume from a
6552 vfork/fork.
6553
09cee04b
PA
65542011-05-20 Pedro Alves <pedro@codesourcery.com>
6555
6556 * infcmd.c: Include "inf-loop.h".
6557 (step_once): When stepping into an inline subroutine, pretend the
6558 target has run. If the target can async, switch the inferior
6559 event loop to INF_EXEC_COMPLETE.
6560 * inferior.h (user_visible_resume_ptid): Declare.
6561 * infrun.c (user_visible_resume_ptid): New function, factored out
6562 from `resume'.
6563 (resume): Use it.
6564 * mi/mi-main.c (mi_execute_async_cli_command): Remove assertion
6565 that the current thread is running. Merge async and sync
6566 branches.
6567
751b8ce1
PA
65682011-05-20 Pedro Alves <pedro@codesourcery.com>
6569
6570 * infcmd.c (step_1): Simplify synchronous case.
6571
e93a69ed
PA
65722011-05-20 Pedro Alves <pedro@codesourcery.com>
6573
6574 * tracepoint.c: Include exceptions.h.
6575 (TFILE_PID): Move higher in file.
6576 (tfile_open): Delay pushing the tfile target until we're assured
6577 the tfile header is present in the file. Wrap reading the initial
6578 newline-terminated lines in TRY_CATCH. Pop the target if the
6579 initial setup failed. Add the tfile's thread immediately
6580 aftwards, before any non-essential setup. Don't skip
6581 post_create_inferior if there are no traceframes present in the
6582 file.
6583 (tfile_close): Remove redundant check for null before xfree call.
6584 (tfile_thread_alive): New function.
6585 (init_tfile_ops): Register it as to_thread_alive callback.
6586
6823e2b1
PA
65872011-05-20 Pedro Alves <pedro@codesourcery.com>
6588
6589 * tracepoint.c (tfile_open): Delete #if 0'd code.
6590
b3c8eb43
JK
65912011-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
6592
6593 Fix -readnow for -gdwarf-4 unused type units.
6594 * dwarf2read.c (struct signatured_type): Remove the field offset.
6595 (create_signatured_type_table_from_index): Remove its initialization.
6596 (create_debug_types_hash_table): Likewise. Initialize per_cu.offset
6597 instead. Add a complaint call.
6598 (process_psymtab_comp_unit): Change assignment to gdb_assert.
6599 (process_type_comp_unit, lookup_die_type, dump_die_shallow)
6600 (lookup_signatured_type_at_offset, read_signatured_type)
6601 (write_one_signatured_type): Update the field for per_cu.
6602
310afc76
TT
66032011-05-19 Tom Tromey <tromey@redhat.com>
6604
6605 * python/py-inferior.c (python_inferior_exit): Use
6606 target_gdbarch.
6607 (python_on_resume): Likewise.
6608
cf6c5ffb
TT
66092011-05-19 Matt Rice <ratmice@gmail.com>
6610
6611 * breakpoint.c (bpstat_do_actions_1): Call prevent_dont_repeat.
6612
fb80a3c5
HZ
66132011-05-19 Hui Zhu <teawater@gmail.com>
6614
6615 * tracepoint.c (tfile_trace_find): Return directly when num is -1.
6616
3672b1be
HZ
66172011-05-19 Hui Zhu <teawater@gmail.com>
6618
6619 * xcoffread.c (read_xcoff_symtab): Initialize fcn_aux_saved.
6620
ff355380
TT
66212011-05-18 Tom Tromey <tromey@redhat.com>
6622
6623 * dwarf2read.c (dwarf2_add_field): Constify.
6624 * value.c (value_static_field): Constify.
6625 * gdbtypes.h (struct main_type) <field.field_location.physname>:
6626 Now const.
6627 * ax-gdb.c (gen_static_field): Constify
6628
ed731959
JK
66292011-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6630
6631 * linux-nat.c (kill_callback): Use SIGKILL first.
6632
967cff16
JB
66332011-05-18 Joel Brobecker <brobecker@adacore.com>
6634
6635 * ada-lang.c (print_it_exception): Avoid use of sprintf.
6636
1d06ead6
TT
66372011-05-18 Tom Tromey <tromey@redhat.com>
6638
6639 * value.c (value_fn_field): Constify.
6640 * symtab.c (gdb_mangle_name): Constify.
6641 * stabsread.c (update_method_name_from_physname): Make 'physname'
6642 argument const.
6643 * p-typeprint.c (pascal_type_print_method_args): Make arguments
6644 const. Use explicit fputc_filtered loop.
6645 (pascal_type_print_base): Constify.
6646 * p-lang.h (pascal_type_print_method_args): Update.
6647 * linespec.c (add_matching_methods): Constify.
6648 (add_constructors): Likewise.
6649 * jv-typeprint.c (java_type_print_base): Constify.
6650 * gdbtypes.h (struct cplus_struct_type)
6651 <fn_fieldlist.fn_field.physname>: Now const.
6652 * dwarf2read.c (compute_delayed_physnames): Constify.
6653 (dwarf2_add_member_fn): Likewise.
6654 * c-typeprint.c (c_type_print_base): Constify. Use cleanups.
6655
0d9a9a5f
PA
66562011-05-18 Pedro Alves <pedro@codesourcery.com>
6657
6658 * infrun.c (resume): Mention which is the current thread, and its
6659 current PC in debug output.
6660 (prepare_to_proceed): Mention the thread switching in debug
6661 output.
6662
05386e9e
TT
66632011-05-18 Tom Tromey <tromey@redhat.com>
6664
6665 * linux-thread-db.c (try_thread_db_load_from_pdir_1): Fix absolute
6666 path check. Use xmalloc and cleanups.
6667 (try_thread_db_load_from_dir): Use xmalloc and cleanups.
6668
ee86786c
TT
66692011-05-17 Tom Tromey <tromey@redhat.com>
6670
6671 * cp-valprint.c (cp_print_value_fields): Catch errors from
6672 value_static_field.
6673
9ff3b74f
TT
66742011-05-17 Tom Tromey <tromey@redhat.com>
6675
6676 * dwarf2read.c (dwarf2_get_die_type): Call
6677 get_die_type_at_offset.
6678 * dwarf2expr.c (dwarf_get_base_type): Handle NULL return from
6679 get_base_type function.
6680
cd3da28e
PA
66812011-05-17 Tomas Martinec <fyzmat@gmail.com>
6682
6683 * infrun.c (handle_inferior_event) <handling deferred step>: Clear
6684 trap_expected.
6685
fd20d931
DE
66862011-05-16 Doug Evans <dje@google.com>
6687
6688 * python/py-auto-load.c (source_section_scripts): Mention objfile
6689 name in warning.
6690
75fc9810
DE
66912011-05-15 Doug Evans <dje@google.com>
6692
290351b8
DE
6693 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New function.
6694 (try_thread_db_load_from_pdir): Call it. If unable to find
6695 libthread_db in directory of libpthread, see if we're looking at
6696 the separate-debug-info copy.
6697
75fc9810
DE
6698 * python/py-autoload.c (print_script): Print "Missing" instead of
6699 "No" for missing scripts.
6700 (info_auto_load_scripts): Tweak "Loaded" column to fit "Missing".
6701
9f7bc587
DE
67022011-05-13 Doug Evans <dje@google.com>
6703
6704 * ui-file.c (stdio_file_write_async_safe): Add comment.
6705
093cee7d
HZ
67062011-05-14 Hui Zhu <teawater@gmail.com>
6707
6708 * ui-file.c (stdio_file_write_async_safe): Add empty check for build.
6709
dbaefcf7
DE
67102011-05-13 Doug Evans <dje@google.com>
6711
98a5dd13
DE
6712 Support $pdir and $sdir in libthread-db-search-path.
6713 * NEWS: Mention $sdir,$pdir.
6714 * gdb_thread_db.h (LIBTHREAD_DB_SEARCH_PATH): Add $sdir:$pdir.
6715 * linux-thread-db.c (try_thread_db_load_from_pdir): New function.
6716 (try_thread_db_load_from_sdir): New function.
6717 (try_thread_db_load_from_dir): New function.
6718 (thread_db_load_search): Handle $pdir, $sdir. Remove trying of
6719 system directories if search of libthread-db-search-path fails,
6720 that is now done via $sdir.
6721 (has_libpthread): New function.
6722 (thread_db_load): Remove search for libthread_db in directory of
6723 libpthread, that is now done via $pdir.
6724
dbaefcf7
DE
6725 * NEWS: Mention "info auto-load-scripts".
6726 * python/py-auto-load.c (struct auto_load_pspace_info): New member
6727 script_not_found_warning_printed.
6728 (init_loaded_scripts_info): Renamed from create_loaded_scripts_hash,
6729 all callers updated. Initialize script_not_found_warning_printed.
6730 (get_auto_load_pspace_data_for_loading): New function.
6731 (maybe_add_script): New function.
6732 (source_section_scripts): Simplify. Only print one warning regardless
6733 of the number of auto-load scripts not found.
6734 (clear_section_scripts): Clear script_not_found_warning_printed.
6735 (auto_load_objfile_script): Record script in hash table.
6736 (count_matching_scripts): New function.
6737 (maybe_print_script): Renamed from maybe_print_section_script, all
6738 callers updated. Rewrite to use ui_out_*.
6739 (info_auto_load_scripts): Renamed from
6740 maintenance_print_section_scripts, all callers updated.
6741 (gdbpy_initialize_auto_load): "maintenance print section-scripts"
6742 renamed as "info auto-load-scripts".
6743
9930639c
TT
67442011-05-13 Tom Tromey <tromey@redhat.com>
6745
6746 * dwarf2expr.c (read_uleb128): Cast intermediate result.
6747 (read_sleb128): Likewise.
6748
06826322
TT
67492011-05-13 Tom Tromey <tromey@redhat.com>
6750
6751 * dwarf2loc.c (disassemble_dwarf_expression): Fix instruction
6752 offset display.
6753
01124a23
DE
67542011-05-13 Doug Evans <dje@google.com>
6755
6756 * linux-nat.c (debug_linux_nat_async): Delete.
6757 Replace all references to use debug_linux_nat instead.
6758 (show_debug_linux_nat_async): Delete.
6759 (sigchld_handler): Call ui_file_write_async_safe instead of
6760 fprintf_unfiltered.
6761 (_initialize_linux_nat): Remove `set debug lin-lwp-async'.
6762 * ui-file.c (struct ui_file): New member to_write_async_safe.
6763 (null_file_write_async_safe): New function.
6764 (ui_file_write_async_safe): New function.
6765 (set_ui_file_write_async_safe): New function.
6766 (ui_file_new): Initialize to_write_async_safe.
6767 (stdio_file_write_async_safe): New function.
6768 (struct stdio_file): New member fd.
6769 (stdio_file_new): Initialize to_write_async_safe, fd.
bbfac39e
DE
6770 (stdio_file_read, stdio_file_isatty): New stdio->fd instead of calling
6771 fileno.
01124a23
DE
6772 * ui-file.h (ui_file_write_async_safe_ftype): New typedef.
6773 (set_ui_file_write_async_safe): Declare.
6774 (ui_file_write_async_safe): Declare.
6775
72fc29ff
TT
67762011-05-13 Tom Tromey <tromey@redhat.com>
6777
6778 * utils.c (do_value_free): New function.
6779 (make_cleanup_value_free): Likewise.
6780 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle value
6781 freeing correctly.
6782 (dwarf2_loc_desc_needs_frame): Call
6783 make_cleanup_value_free_to_mark.
6784 * dwarf2expr.h (struct dwarf_expr_context) <mark>: Remove field.
6785 * dwarf2expr.c (free_dwarf_expr_context): Don't call
6786 value_free_to_mark.
6787 (new_dwarf_expr_context): Don't call value_mark.
6788 * dwarf2-frame.c (execute_stack_op): Call
6789 make_cleanup_value_free_to_mark.
6790 * defs.h (make_cleanup_value_free): Declare.
6791
028d0ed5
TJB
67922011-05-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
6793
6794 * mi/mi-main.c (mi_cmd_execute): Use cleanup from
6795 prepare_execute_command.
6796 * top.c (prepare_execute_command): Return cleanup.
6797 (execute_command): Use cleanup from prepare_execute_command.
6798 * top.h (prepare_execute_command): Change prototype to return
6799 cleanup.
6800 * defs.h (struct value): Add opaque declaration.
6801 (make_cleanup_value_free_to_mark): Add prototype.
6802 * utils.c (do_value_free_to_mark): New function.
6803 (make_cleanup_value_free_to_mark): Likewise.
6804
b087e0ed
TT
68052011-05-12 Tom Tromey <tromey@redhat.com>
6806
6807 * dwarf2expr.c (execute_stack_op) <DW_OP_shr>: Unconditionally
6808 cast left-hand-side to unsigned.
6809
8a9b8146
TT
68102011-05-12 Tom Tromey <tromey@redhat.com>
6811
6812 PR gdb/12617:
6813 * value.h (value_from_contents): Declare.
6814 * value.c (value_from_contents): New function.
6815 * dwarf2read.c (dwarf_stack_op_name): Add new values.
6816 (dwarf2_get_die_type): New function.
6817 * dwarf2loc.c (dwarf_expr_get_base_type): New function.
6818 (allocate_piece_closure): Acquire reference to values.
6819 (read_pieced_value): Update for value-based expressions.
6820 (write_pieced_value): Likewise.
6821 (free_pieced_value_closure): Call value_free as needed.
6822 (dwarf2_evaluate_loc_desc_full): Set get_base_type field.
6823 Update for value-based expressions.
6824 * dwarf2loc.h (dwarf2_get_die_type): Declare.
6825 * dwarf2expr.h (struct dwarf_stack_value) <value>: Change type.
6826 <get_base_type>: New field.
6827 (struct dwarf_expr_piece) <v.value>: Change type.
6828 <v.regno>: New field.
6829 (struct dwarf_expr_context) <mark>: New field.
6830 (dwarf_expr_piece, dwarf_expr_fetch): Update.
6831 (dwarf_expr_pop, dwarf_expr_push): Remove.
6832 (dwarf_expr_push_address): Declare.
6833 * dwarf2expr.c (dwarf_arch_cookie): New global.
6834 (struct dwarf_gdbarch_types): New.
6835 (dwarf_gdbarch_types_init, dwarf_expr_address_type): New
6836 functions.
6837 (dwarf_expr_push): Change type of 'value' argument. Update. Now
6838 static.
6839 (dwarf_expr_push_address): New function.
6840 (dwarf_expr_pop): Now static.
6841 (dwarf_expr_fetch): Change return type.
6842 (dwarf_require_integral): New function.
6843 (dwarf_expr_fetch): Simplify.
6844 (add_piece): Update.
6845 (base_types_equal_p, dwarf_get_base_type, get_unsigned_type): New
6846 functions.
6847 (execute_stack_op) <sign_ext>: Remove.
6848 Use values for DWARF stack.
6849 <DW_OP_GNU_const_type, DW_OP_GNU_deref_type,
6850 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
6851 New cases.
6852 (_initialize_dwarf2expr): New function.
6853 (add_piece): Update.
6854 (new_dwarf_expr_context): Set new field.
6855 (free_dwarf_expr_context): Call value_free_to_mark.
6856 * dwarf2-frame.c (no_base_type): New function.
6857 (execute_stack_op): Set get_base_type field. Update.
6858
e8d28ef4
TT
68592011-05-12 Tom Tromey <tromey@redhat.com>
6860
6861 * dwarf2read.c (read_common_block): Fix formatting.
6862
d248b706
KY
68632011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
6864
6865 * breakpoint.c (disable_breakpoint): Disable all locations
6866 associated with a tracepoint on target if a trace experiment is
6867 running.
6868 (disable_command): Disable a specific tracepoint location on target if
6869 a trace experiment is running.
6870 (do_enable_breakpoint): Enable all locations associated with a
6871 tracepoint on target if a trace experiment is running.
6872 (enable_command) Enable a specific tracepoint location on target if a
6873 trace experiment is running.
6874 * target.c (update_current_target): Add INHERIT and de_fault clauses for
6875 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
6876 to_disable_tracepoint.
6877 * target.h: Add declaration of struct bp_location.
6878 (struct target_ops): Add new functions
6879 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
6880 to_disable_tracepoint to target operations.
6881 (target_supports_enable_disable_tracepoint): New macro.
6882 (target_enable_tracepoint): New macro.
6883 (target_disable_tracepoint): New macro.
6884 * remote.c (struct remote_state): Add new field.
6885 (remote_enable_disable_tracepoint_feature): New.
6886 (remote_protocol_features): Add new entry.
6887 (remote_supports_enable_disable_tracepoint): New.
6888 (remote_enable_tracepoint): New.
6889 (remote_disable_tracepoint): New.
6890 (init_remote_ops): Add remote_enable_tracepoint,
6891 remote_disable_tracepoint and remote_supports_enable_disable_tracepoint
6892 to remote operations.
6893 * tracepoint.c (start_tracing): Allow tracing to start without any
6894 tracepoints enabled with just a warning if they can be re-enabled
6895 later.
6896 * NEWS: Add news item for the new behaviour of the enable and disable
6897 GDB commands when applied to tracepoints.
6898 Add news items for the new remote packets QTEnable and QTDisable.
6899
cc88a640
JK
69002011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6901
6902 * config.in: Regenerate.
6903 * configure: Regenerate.
6904 * configure.ac <--with-system-readline> (for readline_echoing_p):
6905 Remove the test.
6906 * tui/tui-io.c (tui_old_readline_echoing_p): Rename to ...
6907 (tui_old_rl_echoing_p): ... here.
6908 (tui_setup_io): Rename extern declaration readline_echoing_p to
6909 _rl_echoing_p. Adjust assignments for the both renames.
6910
1f84b619
TJB
69112011-05-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
6912
6913 * symtab.c (lookup_symtab): Run cleanup before returning.
6914
74ac6d43
TT
69152011-05-11 Tom Tromey <tromey@redhat.com>
6916
6917 * dwarf2read.c (handle_data_member_location): New function.
6918 (dwarf2_add_field): Use it.
6919 (read_common_block): Likewise.
6920
5488dafb
JK
69212011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6922
6923 Make addrs->SECTINDEX always defined.
6924 * symfile.c (relative_addr_info_to_section_offsets): Check for
6925 SECTINDEX -1, not for zero ADDR.
6926 (addrs_section_compar): Remove checking for invalid SECTINDEX.
6927 (addr_info_make_relative): Set SECTINDEX to -1 for unmatched entries.
6928 * symfile.h (struct section_addr_info) <sectindex>: Update the comment
6929 on its validity.
6930
84e578fb
DE
69312011-05-10 Doug Evans <dje@google.com>
6932
2471d008
DE
6933 * linux-thread-db.c: Whitespace cleanup.
6934 (try_thread_db_load_1): Fix comment.
6935
84e578fb
DE
6936 * linux-thread-db.c (set_libthread_db_search_path): New function.
6937 (_initialize_thread_db): Add setter for libthread-db-search-path.
6938
673c2bbe
DE
69392011-05-09 Doug Evans <dje@google.com>
6940
478aac75
DE
6941 * NEWS: Mention --with-iconv-bin.
6942 * configure.ac: New option --with-iconv-bin.
6943 * configure: Regenerate.
6944 * config.in: Regenerate.
6945 * defs.h (relocate_gdb_directory): Declare.
6946 * main.c (relocate_gdb_directory): Renamed from relocate_directory,
6947 removed progname parameter, and exported. All callers updated.
6948 * charset.c (find_charset_names): Use --with-iconv-bin if specified.
6949
673c2bbe
DE
6950 * linux-nat.c (lin_lwp_attach_lwp): For !WIPSTOPPED case,
6951 adding missing call to restore_child_signals_mask.
6952
e4c8541f
PA
69532011-05-09 Pedro Alves <pedro@codesourcery.com>
6954
6955 * inferior.h (wait_for_inferior): Remove `thread_exec_as_sigtrap'
6956 parameter.
6957 * infrun.c (proceed, start_remote): Adjust.
6958 (wait_for_inferior): Remove `thread_exec_as_sigtrap' parameter,
6959 and adjust to not handle it.
6960 * solib-irix.c (irix_solib_create_inferior_hook): Adjust.
6961 * solib-osf.c (osf_solib_create_inferior_hook): Adjust.
6962 * solib-sunos.c (sunos_solib_create_inferior_hook): Adjust.
6963 * solib-svr4.c (svr4_solib_create_inferior_hook): Adjust.
6964 * windows-nat.c (do_initial_windows_stuff): Adjust.
6965 * infcmd.c (attach_command): Adjust.
6966 (notice_new_inferior): Adjust.
6967
a536c6d7
UW
69682011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
6969
6970 * ppc-linux-tdep.c (ppu2spu_prev_register): Handle pseudo registers.
6971 (ppu2spu_unwind_register): Mark pseudo registers unavailable.
6972 * spu-tdep.c (op_selb): Use correct value.
6973
7845b013
UW
69742011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
6975
6976 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Add NULL
6977 "parent" parameter to symbol_file_add_from_bfd call.
6978
9c06b0b4
TJB
69792011-05-06 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
6980 Thiago Jung Bauermann <bauerman@br.ibm.com>
6981
6982 Implement support for PowerPC BookE masked watchpoints.
6983 * NEWS: Mention masked watchpoint support. Create "Changed commands"
6984 section.
6985 * breakpoint.h (struct breakpoint_ops) <works_in_software_mode>: New
6986 method. Initialize to NULL in all existing breakpoint_ops instances.
6987 (struct breakpoint) <hw_wp_mask>: New field.
6988 * breakpoint.c (is_masked_watchpoint): Add prototype.
6989 (update_watchpoint): Don't set b->val for masked watchpoints. Call
6990 breakpoint's breakpoint_ops.works_in_software_mode if available.
6991 (watchpoints_triggered): Handle the case of a hardware masked
6992 watchpoint trigger.
6993 (watchpoint_check): Likewise.
6994 (works_in_software_mode_watchpoint): New function.
6995 (insert_masked_watchpoint, remove_masked_watchpoint)
6996 (resources_needed_masked_watchpoint)
6997 (works_in_software_mode_masked_watchpoint, print_it_masked_watchpoint)
6998 (print_one_detail_masked_watchpoint, print_mention_masked_watchpoint)
6999 (print_recreate_masked_watchpoint, is_masked_watchpoint): New
7000 functions.
7001 (masked_watchpoint_breakpoint_ops): New structure.
7002 (watch_command_1): Check for the existence of the `mask' parameter.
7003 Set b->ops according to the type of hardware watchpoint being created.
7004 * ppc-linux-nat.c (ppc_linux_insert_mask_watchpoint)
7005 (ppc_linux_remove_mask_watchpoint)
7006 (ppc_linux_masked_watch_num_registers): New functions.
7007 (_initialize_ppc_linux_nat): Initialize to_insert_mask_watchpoint,
7008 to_remove_mask_watchpoint and to_masked_watch_num_registers.
7009 * target.c (update_current_target): Mention to_insert_mask_watchpoint,
7010 to_remove_mask_watchpoint, and to_masked_watch_num_registers.
7011 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
7012 (target_masked_watch_num_registers): New functions.
7013 * target.h (struct target_ops) <to_insert_mask_watchpoint>,
7014 <to_remove_mask_watchpoint>, <to_masked_watch_num_registers>: New
7015 methods.
7016 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
7017 (target_masked_watch_num_registers): Add prototypes.
7018
8be455d7
JK
70192011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
7020
7021 PR 12573
7022 * dwarf2read.c (struct dwarf2_cu): New field has_loclist.
7023 (producer_is_gcc_ge_4_0): New function.
7024 (process_full_comp_unit): Set also symtab->locations_valid. Move the
7025 symtab->language code.
7026 (var_decode_location): Set cu->has_loclist.
7027 * symtab.c (skip_prologue_sal): New variables saved_pc, force_skip and
7028 skip. Intialize force_skip from locations_valid. Move the prologue
7029 skipping code into two passes.
7030 * symtab.h (struct symtab): Make the primary field a bitfield. New
7031 field locations_valid.
7032
d8228535
JK
70332011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
7034
7035 * c-exp.y (qualified_name): Call destructor_name_p with $1.type.
7036 (classify_inner_name): Call cp_lookup_nested_type with
7037 yylval.tsym.type.
7038 * cp-namespace.c (cp_lookup_nested_type): New variable
7039 saved_parent_type. Call CHECK_TYPEDEF for parent_type. Call
7040 type_name_no_tag_or_error with saved_parent_type.
7041 * dwarf2read.c (load_partial_dies): Read in any children of
7042 DW_TAG_typedef with complaint in such case.
7043 * gdbtypes.c (type_name_no_tag_or_error): New function.
7044 * gdbtypes.h (type_name_no_tag_or_error): New prototype.
7045 * valops.c (destructor_name_p): New comment for parameter type. Remove
7046 type const. Make dname and cp const. Call type_name_no_tag_or_error.
7047 * value.h (destructor_name_p): Remove type const.
7048
1976171a
JK
70492011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
7050
7051 * symtab.c (compare_symbol_name): New function.
7052 (completion_list_add_name, expand_partial_symbol_name): Call it,
7053 remove the variable ncmp.
7054 (default_make_symbol_completion_list_break_on): Reduce SYM_TEXT_LEN,
7055 gdb_assert it.
7056
a9634178
TJB
70572011-05-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
7058
7059 Demote to sw watchpoint only in update_watchpoint.
7060 * breakpoint.c (update_watchpoint): Change between software and
7061 hardware watchpoint for all kinds of watchpoints, not just
7062 read/write ones. Determine b->exact value here instead of
7063 in watch_command_1. Error out if there are not enough resources
7064 for a read or access hardware watchpoint.
7065 (watch_command_1): Remove logic of checking whether there are
7066 enough resources available, since update_watchpoint will do that
7067 work now. Don't set b->exact here. Catch exceptions thrown by
7068 update_watchpoint and delete the watchpoint.
7069 (can_use_hardware_watchpoint): Remove exact_watchpoints argument.
7070 Use target_exact_watchpoints instead.
7071 (delete_breakpoint): Notify observers only if deleted watchpoint
7072 has a breakpoint number assigned to it.
7073
4c67c798
JJ
70742011-05-05 Janis Johnson <janisjo@codesourcery.com>
7075
7076 * MAINTAINERS: Add myself as a write-after-approval maintainer.
7077
a3fcb948
JG
70782011-05-05 Jerome Guitton <guitton@adacore.com>
7079
7080 * i386-tdep.c (i386_in_stack_tramp_p, i386_stack_tramp_frame_sniffer):
7081 New functions.
7082 (i386_stack_tramp_frame_unwind): New static global.
7083 (i386_match_pattern): New function, extracted from i386_match_insn.
7084 (i386_match_insn): Use i386_match_pattern.
7085 (i386_match_insn_block): New function.
7086 (i386_tramp_chain_in_reg_insns)
7087 (i386_tramp_chain_on_stack_insns): New static variables.
7088 (i386_gdbarch_init): Add i386_stack_tramp_frame_unwind to list
7089 of unwinders.
7090
4d393d60
JM
70912011-05-04 Joseph Myers <joseph@codesourcery.com>
7092
7093 * configure.host (xscale*): Don't handle target.
7094 * configure.tgt (thumb*-*-* | strongarm*-*-* | xscale-*-*): Don't
7095 handle targets.
7096
f70bd40b
YQ
70972011-05-04 Yao Qi <yao@codesourcery.com>
7098
7099 * gdb_wait.h: remove WAITTYPE and WCOREDUMP.
7100
dd3295ee
JB
71012011-05-03 Joel Brobecker <brobecker@adacore.com>
7102
7103 Revert:
7104 | 2011-03-07 Michael Snyder <msnyder@vmware.com>
7105 | * elfread.c (elf_symtab_read): Stop memory leak.
7106
90375a0e
PM
71072011-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
7108
7109 * nto-tdep.c (nto_target): Replace deprecated call to
7110 cygwin_conv_to_posix_path functions by cygwin_conv_path calls.
7111
d07205c2
JK
71122011-05-03 Jan Kratochvil <jan.kratochvil@redhat.com>
7113
7114 Fix false GCC warning.
7115 * breakpoint.c (do_enable_breakpoint): Initialize orig_enable_state.
7116
1e718ff1
TJB
71172011-05-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
7118
7119 * breakpoint.c (update_watchpoint): Move code to change
7120 the enable state of breakpoint from here ...
7121 (do_enable_breakpoint): ... to here.
7122
35bef4fd
TT
71232011-04-26 Andrew Gontarek <andrewg@cray.com>
7124
78290264
PP
7125 * valprint.c (val_print_array_elements): Fixed poor performance
7126 of printing very large arrays with repeat_count_threshold set
7127 to unlimited. New comment.
35bef4fd 7128
38a714bb
TT
71292011-04-29 Tom Tromey <tromey@redhat.com>
7130
7131 * mi/mi-parse.c (mi_parse): Remove incorrect sizeof.
7132 (mi_parse): Likewise.
7133 * breakpoint.c (break_range_command): Use sizeof char*, not
7134 char**.
7135 (create_breakpoint): Likewise.
7136 (parse_breakpoint_sals): Likewise.
7137
eb73ad13
PA
71382011-04-29 Pedro Alves <pedro@codesourcery.com>
7139
7140 * linux-nat.c (linux_child_remove_fork_catchpoint)
7141 (linux_child_remove_vfork_catchpoint)
7142 (linux_child_remove_exec_catchpoint): New functions.
7143 (linux_target_install_ops): Install them.
7144
d65aec65
PM
71452011-04-29 Phil Muldoon <pmuldoon@redhat.com>
7146
7147 PR mi/12531
7148
7149 * varobj.c (install_default_visualizer): Do not install a
7150 visualizer if the varobj is CPLUS_FAKE_CHILD.
7151 (construct_visualizer): Likewise.
7152
165195f4
JK
71532011-04-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7154
7155 * symtab.c (expand_partial_symbol_name): New variable NCMP. Support
7156 case insensitive comparison.
7157
30852783
UW
71582011-04-28 Ulrich Weigand <ulrich.weigand@linaro.org>
7159
7160 * infrun.c (proceed): Revert previous change.
7161 (resume): Instead, handle the case of signal delivery while stepping
7162 off a breakpoint location here, and only if software single-stepping
7163 is used. Handle nested signals.
7164
7ff120b4
YQ
71652011-04-28 Yao Qi <yao@codesourcery.com>
7166
7167 * arm-tdep.c (copy_unmodified): Rename to ...
7168 (arm_copy_unmodified): .. this. New.
7169 (copy_preload): Move common part to ...
7170 (install_preload): .. this. New.
7171 (arm_copy_preload): New.
7172 (copy_preload_reg): Move common part to ...
7173 (install_preload_reg): ... this. New.
7174 (arm_copy_preload_reg): New.
7175 (copy_b_bl_blx): Move common part to ...
7176 (install_b_bl_blx): .. this. New.
7177 (arm_copy_b_bl_blx): New.
7178 (copy_bx_blx_reg): Move common part to ...
7179 (install_bx_blx_reg): ... this. New.
7180 (arm_copy_bx_blx_reg): New.
7181 (copy_alu_reg): Move common part to ...
7182 (install_alu_reg): ... this. New.
7183 (arm_copy_alu_reg): New.
7184 (copy_alu_shifted_reg): Move common part to ...
7185 (install_alu_shifted_reg): ... this. New.
7186 (copy_ldr_str_ldrb_strb): Move common part to ...
7187 (install_ldr_str_ldrb_strb): ... this. New.
7188 (arm_copy_ldr_str_ldrb_strb): New.
7189 (copy_copro_load_store): Move some common part to ...
7190 (install_copy_copro_load_store): ... this. New.
7191 (arm_copy_copro_load_store): New.
7192 (copy_svc): Delete.
7193 (arm_copy_svc): Renamed from copy_svc.
7194 (copy_undef): Delete.
7195 (arm_copy_undef): Renamed from copy_undef.
7196 (decode_ext_reg_ld_st): Delete.
7197 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
7198 (decode_svc_copro): Delete.
7199 (arm_decode_svc_copro): Renamed from decode_svc_copro.
7200 (copy_copro_load_store, copy_alu_imm): update callers.
7201 (copy_extra_ld_st, copy_block_xfer): Likewise.
7202 (decode_misc_memhint_neon, decode_unconditional): Likewise.
7203 (decode_miscellaneous, decode_dp_misc): Likewise.
7204 (decode_ld_st_word_ubyte, decode_media): Likewise.
7205 (decode_b_bl_ldmstm, decode_ext_reg_ld_st): Likewise.
7206 (decode_svc_copro, decode_misc_memhint_neon): Likewise.
7207 (decode_unconditional, decode_miscellaneous): Likewise.
7208 (decode_media, decode_b_bl_ldmstm): Likewise.
7209 (arm_process_displaced_insn): Likewise..
7210 (decode_misc_memhint_neon): Delete.
7211 (arm_decode_misc_memhint_neon): Renamed from decode_misc_memhint_neon.
7212 (decode_miscellaneous): Delete.
7213 (arm_decode_miscellaneous): Renamed from decode_miscellaneous.
7214 (decode_dp_misc): Delete.
7215 (arm_decode_dp_misc): Renamed from decode_dp_misc.
7216 (decode_ld_st_word_ubyte): Delete.
7217 (arm_decode_ld_st_word_ubyte): Renamed from decode_ld_st_word_ubyte.
7218 (decode_media): Delete.
7219 (arm_decode_media): Renamed from decode_media.
7220 (decode_b_bl_ldmstm): Delete.
7221 (arm_decode_b_bl_ldmstm): Renamed from decode_b_bl_ldmstm.
7222 (decode_ext_reg_ld_st): Delete.
7223 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
7224 (decode_unconditional): Delete.
7225 (arm_decode_unconditional): Renamed from decode_unconditional.
7226
559a7a62
JK
72272011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
7228
7229 Case insensitive lookups implementation.
7230 * dwarf2read.c: Include ctype.h.
7231 (struct mapped_index): New field version.
7232 (mapped_index_string_hash): New parameter index_version. New comment
7233 for it. Call tolower appropriately.
7234 (find_slot_in_mapped_hash): New variable cmp, initialize it, use it.
7235 Choose the right index version for mapped_index_string_hash.
7236 (dwarf2_read_index): Support also the index version 5. Initialize the
7237 new struct mapped_index field version.
7238 (hash_strtab_entry): Pass INT_MAX for the new parameter, explain why.
7239 (find_slot): Explain the version needs. Pass INT_MAX for the new
7240 parameter.
7241 (write_psymtabs_to_index): Produce version 5.
7242 * minsyms.c (lookup_minimal_symbol): New variable cmp, initialize it,
7243 use it. New comment for SYMBOL_MATCHES_SEARCH_NAME.
7244 * psymtab.c (lookup_partial_symbol): Find the
7245 SYMBOL_MATCHES_SEARCH_NAME start of the found block of matching
7246 entries.
7247 * symtab.c (lookup_symbol_in_language): Remove the case_sensitive_off
7248 NAME lowercasing.
7249 (search_symbols): Pass REG_ICASE to regcomp for case_sensitive_off.
7250 (completion_list_add_name): New variable ncmp, initialize it, use it.
7251 * symtab.h (SYMBOL_HASH_NEXT): Always call tolower.
7252 * utils.c (strcmp_iw): Support case_sensitive_off.
7253 (strcmp_iw_ordered): Sort in a way compatible with case_sensitive_off.
7254 New function comment part. New variables saved_string1,
7255 saved_string2 and case_pass. Add a proper second pass.
7256
681bf369
JK
72572011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
7258
7259 Replace re_comp/re_exec by regcomp/regexec.
7260 * symtab.c (struct search_symbols_data): New fields preg, preg_p.
7261 (search_symbols_name_matches): Use them, use regexec.
7262 (search_symbols): New variable retval_chain, adjust the use of
7263 old_chain against it. Replace re_comp by regcomp. Use the new struct
7264 search_symbols_data fields, use regexec instead of re_exec.
7265
b11b1f88
JK
72662011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
7267
7268 Format the code for the next patch.
7269 * dwarf2read.c (struct mapped_index): Include delimiting newlines.
7270 * utils.c (strcmp_iw_ordered): Reformat the code for the next patch.
7271 New variables c1 and c2.
7272
2484c66b
UW
72732011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
7274
7275 * infrun.c (proceed): Do not single-step into signal delivery
7276 when stepping off a breakpoint location.
7277 (insert_step_resume_breakpoint_at_frame): Move prototype earlier.
7278 (insert_step_resume_breakpoint_at_caller): Likewise.
7279 (insert_step_resume_breakpoint_at_sal): Likewise.
7280 (insert_longjmp_resume_breakpoint): Likewise.
7281
47423772
YQ
72822011-04-27 Yao Qi <yao@codesourcery.com>
7283
7284 * common/linux-ptrace.h: Remove include <sys/wait.h>.
7285
13bdd2e7
JB
72862011-04-27 Joel Brobecker <brobecker@adacore.com>
7287
7288 * procfs.c (procfs_pass_signals): Fix advance declaration.
7289
2455069d
UW
72902011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
7291
7292 * target.h (struct target_ops): Remove to_notice_signals;
7293 add to_pass_signals.
7294 (target_notice_signals): Remove.
7295 (target_pass_signals): Add prototype.
7296 * target.c (update_current_target): Remove to_notice_signals;
7297 mention to_pass_signals.
7298 (target_pass_signals): New function.
7299 (debug_to_notice_signals): Remove.
7300 (setup_target_debug): Do not install debug_to_notice_signals.
7301
7302 * infrun.c (signal_pass): New global.
7303 (resume): Call target_pass_signals.
7304 (handle_inferior_event): Report all signals while stepping over
7305 non-steppable watchpoint. Reset trap_expected to ensure breakpoints
7306 are re-inserted when stepping over a signal handler.
7307 (signal_cache_update): New function.
7308 (signal_stop_update): Call it.
7309 (signal_print_update): Likewise.
7310 (signal_pass_update): Likewise.
7311 (handle_command): Call signal_cache_update and target_pass_signals
7312 instead of target_notice_signals.
7313 (_initialize_infrun): Initialize signal_pass.
7314
7315 * linux-nat.c (pass_mask): New global.
7316 (linux_nat_pass_signals): New function.
7317 (linux_nat_create_inferior): Report all signals initially.
7318 (linux_nat_attach): Likewise.
7319 (linux_nat_resume): Use pass_mask to decide whether to directly
7320 handle an inferior signal.
7321 (linux_nat_wait_1): Likewise.
7322 (linux_nat_add_target): Install to_pass_signals callback.
7323
7324 * nto-procfs.c (notice_signals): Remove.
7325 (procfs_resume): Do not call notice_signals.
7326 (procfs_notice_signals): Remove.
7327 (procfs_pass_signals): New function.
7328 (init_procfs_ops): Install to_pass_signals callback instead of
7329 to_notice_signals callback.
7330 (_initialize_procfs): Report all signals initially.
7331
7332 * procfs.c (procfs_notice_signals): Remove.
7333 (procfs_pass_signals): New function.
7334 (procfs_target): Install to_pass_signals callback instead of
7335 to_notice_signals callback.
7336 (register_gdb_signals): Remove.
7337 (procfs_debug_inferior): Report all signals initially.
7338 (procfs_init_inferior): Remove redundant register_gdb_signals call.
7339
7340 * remote.c (remote_pass_signals): Add numsigs and pass_signals
7341 parameters; use them instead of calling signal_..._state routines.
7342 (remote_notice_signals): Remove.
7343 (remote_start_remote): Report all signals initially.
7344 (remote_resume): Do not call remote_pass_signals.
7345 (_initialize_remote): Install to_pass_signals callback instead of
7346 to_notice_signals callback.
7347
46c6471b
PA
73482011-04-27 Pedro Alves <pedro@codesourcery.com>
7349
7350 * breakpoint.c (user_settable_breakpoint): Delete.
7351 (user_breakpoint_p): Remove check on user_settable_breakpoint.
7352 (delete_command): Check user_breakpoint_p instead of looking at
7353 the breakpoint's type.
7354 (disable_command): Ditto.
7355 (enable_command): Ditto.
7356 (delete_trace_command): Use user_breakpoint_p instead of looking
7357 at the breakpoint number directly. When checking if there are
7358 user visible tracepoints, in order to know whether to ask the user
7359 for confirmation, check whether the breakpoint is actually a
7360 tracepoint.
7361
f6d90398
VP
73622011-04-27 Vladimir Prus <vladimir@codesourcery.com>
7363
7364 * python/py-breakpoint.c (gdbpy_breakpoint_created): Fix
7365 compilation.
7366
8d3788bd
VP
73672011-04-27 Vladimir Prus <vladimir@codesourcery.com>
7368
7369 MI breakpoint notifications.
7370
f33edef8
PP
7371 * annotate.c (breakpoint_changed): Adjust parameter type.
7372 * breakpoint.c (set_breakpoint_condition): Adjust to change
7373 in breakpoint_modified type.
7374 (breakpoint_set_commands): Likewise.
7375 (do_map_commands_command): Likewise.
7376 (bpstat_check_breakpoint_conditions): Notify that breakpoint has
7377 changed after bumping hit count.
7378 (bpstat_stop_status): Likewise.
7379 (print_one_breakpoint_location): Don't wrap in tuple here.
7380 (print_one_breakpoint): Always print individual locations.
7381 For locations, use unnamed tuple.
7382 (disable_breakpoints_in_unloaded_shlib): Notify that breakpoint
7383 has changed.
7384 (create_catchpoint, create_syscall_event_catchpoint): Call
7385 breakpoint_created obsever.
7386 (mention): Don't call breakpoint_created observer.
7387 (create_breakpoint_sal): Call breakpoint_created observer.
7388 (create_breakpoint, watch_command_1): Likewise.
7389 (create_ada_exception_breakpoint): Likewise.
7390 (delete_breakpoint): Call breakpoint_deleted breakpoint.
7391 (locations_are_equal): New.
7392 (update_breakpoint_locations): If locations were changed, notify.
7393 (set_ignore_count, disable_breakpoint, do_enable_breakpoint):
7394 Call breakpoint_modified observer.
7395
7396 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
7397 (mi_cmd_break_insert): Don't set observers for modify and delete.
7398 * mi/mi-interp.c (mi_suppress_breakpoint_notifications): New.
7399 (mi_breakpoint_created, mi_breakpoint_deleted)
7400 (mi_breakpoint_modified): New.
7401 (mi_interpreter_init): Hook the above.
7402 * mi/mi-main.c (mi_cmd_execute): Disable breakpoint notifications
7403 while -break-* commands are executing.
7404 * mi/mi-main.h (mi_suppress_breakpoint_notifications): New.
7405 * mi/mi-out.c (struct ui_out_data): New field original_buffer.
7406 (mi_redirect): New.
7407 (mi_ui_out_impl): Hook in mi_redirect.
7408 (mi_field_skip): True to the name, skip the field, don't output
7409 a field with an empty value.
7410
7411 * python/py-breakpoint.c (gdbpy_breakpoint_created)
7412 (gdbpy_breakpoint_deleted): Adjust.
7413 * tui/tui-hooks.c (tui_event_create_breakpoint)
7414 (tui_event_delete_breakpoint, tui_event_modify_breakpoint): Adjust.
8d3788bd 7415
a8f42b45
UW
74162011-04-26 Aleksandar Ristovski <aristovski@qnx.com>
7417
7418 * nto-procfs.c (procfs_insert_hw_watchpoint): Fix prototype.
7419 (procfs_remove_hw_watchpoint): Likewise.
7420
57e12211
TT
74212011-04-26 Michael Walle <michael@walle.cc>
7422
7423 * remote.c (remote_start_remote): Ack packet after sending the
7424 interrupt sequence.
7425
af96c192
YQ
74262011-04-26 Yao Qi <yao@codesourcery.com>
7427
f33edef8
PP
7428 * linux-nat.c: Move common macros to ...
7429 Include linux-ptrace.h.
7430 * common/linux-ptrace.h: ... here. New.
af96c192 7431
3e03848b
JK
74322011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
7433
7434 * elfread.c (elf_symfile_read): Protect dwarf2_initialize_objfile by
7435 !objfile_has_partial_symbols. New comment.
7436 * objfiles.c (objfile_has_partial_symbols): Call HAS_SYMBOLS if
7437 SYM_READ_PSYMBOLS is not present. Extend the comment.
7438 * symfile.h (struct sym_fns): Extend the sym_read_psymbols comment.
7439
1ae0d051
JK
74402011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
7441
7442 * defs.h (ENUM_BITFIELD): Remove.
7443
03f2bd59
JK
74442011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
7445 Eli Zaretskii <eliz@gnu.org>
7446
7447 * NEWS: Document the new gdbserver --once option.
7448
4161fbb0
JZ
74492011-04-21 Jie Zhang <jzhang918@gmail.com>
7450
7451 * MAINTAINERS: Update my email address.
7452
bcb28afc
PM
74532011-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
7454
7455 * gdb_wchar.h (USE_INTERMEDIATE_ENCODING_FUNCTION): New macro.
7456 (INTERMEDIATE_ENCODING): Change value to intermediate_encoding
7457 function call if __STDC_ISO_10646__ macro is defined.
7458 (intermediate_encoding): New prototype.
7459 * charset.c (your_gdb_wchar_t_is_bogus): New extern test variable
7460 to generate compile time error for unsupported gdb_wchar_t size.
7461 (ENDIAN_SUFFIX): New macro.
7462 (intermediate_encoding): New function.
7463
7b08b9eb
JK
74642011-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
7465
7466 * ada-lang.c (struct add_partial_datum): Update the comment for
7467 expand_partial_symbol_name.
7468 (ada_add_partial_symbol_completions): Rename to ...
7469 (ada_expand_partial_symbol_name): ... here, change return type, update
7470 function comment, call symbol_completion_match instead of
7471 symbol_completion_add.
7472 (ada_make_symbol_completion_list): Use now expand_partial_symbol_names
7473 and ada_expand_partial_symbol_name.
7474 * dwarf2read.c (dw2_expand_symtabs_matching): Support NULL
7475 FILE_MATCHER.
7476 (dw2_map_symbol_names): Remove.
7477 (dwarf2_gdb_index_functions): Unlist dw2_map_symbol_names.
7478 * psymtab.c (map_symbol_names_psymtab): Remove.
7479 (expand_symtabs_matching_via_partial): Support NULL FILE_MATCHER.
7480 Support KIND == ALL_DOMAIN. Exchange the NAME_MATCHER and KIND check
7481 order.
7482 (psym_functions): Unlist map_symbol_names_psymtab.
7483 (map_partial_symbol_names): Rename to ...
7484 (expand_partial_symbol_names): ... here, change the FUN type, call
7485 expand_symtabs_matching with ALL_DOMAIN and NULL FILE_MATCHER now.
7486 * psymtab.h (map_partial_symbol_names): Rename to ...
7487 (expand_partial_symbol_names): ... here, change the FUN type.
7488 * symfile.h (struct quick_symbol_functions): Update the description of
7489 expand_symtabs_matching. Remove map_symbol_names.
7490 * symtab.c (search_symbols): Add ALL_DOMAIN to the function comment.
7491 (struct add_name_data): Update the comment for
7492 expand_partial_symbol_name.
7493 (add_partial_symbol_name): Rename to ...
7494 (expand_partial_symbol_name): ... here. Replace
7495 completion_list_add_name call by strncmp.
7496 (default_make_symbol_completion_list_break_on): Use now
7497 expand_partial_symbol_names and expand_partial_symbol_name.
7498 * symtab.h (enum search_domain): New element ALL_DOMAIN.
7499
90476074
TT
75002011-04-20 Tom Tromey <tromey@redhat.com>
7501
7502 * dwarf2read.c (save_gdb_index_command): Replace format
7503 documentation with a pointer to the manual.
7504
c21236dc
PA
75052011-04-20 Pedro Alves <pedro@codesourcery.com>
7506
7507 * regcache.c: Include remote.h.
7508 (enum regcache_dump_what) <regcache_dump_remote>: New enum value.
7509 (regcache_dump): Handle regcache_dump_remote.
7510 (maintenance_print_remote_registers): New function.
7511 (_initialize_regcache): Install "maint print remote-registers"
7512 command.
7513 * remote.c (map_regcache_remote_table): New function, factored out
7514 from ...
7515 (init_remote_state): ... here.
7516 (remote_register_number_and_offset): New.
7517 * remote.h (remote_register_number_and_offset): Declare.
7518
b78974c3
PA
75192011-04-20 Pedro Alves <pedro@codesourcery.com>
7520
7521 * regcache.c (get_thread_arch_regcache): If creating a regcache for
7522 null_ptid, assume and allow a NULL address space, instead of
7523 asking the target for the ptid's address space.
7524 * infrun.c (ptid_is_pid): Remove assertion.
7525
7a9dd1b2
TT
75262011-04-19 Tom Tromey <tromey@redhat.com>
7527
7528 * windows-tdep.c (windows_xfer_shared_library):
7529 * windows-nat.c (get_module_name, windows_make_so):
7530 * v850-tdep.c (v850_handle_pushm):
7531 * utils.c (null_cleanup, gdb_realpath):
7532 * ui-out.c (get_next_header):
7533 * tracepoint.c (clear_traceframe_info):
7534 * symtab.c (lookup_symtab):
7535 * serial.h (struct serial_ops):
7536 * mipsread.c (read_alphacoff_dynamic_symtab):
7537 * infcmd.c (print_return_value):
7538 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address):
7539 * f-exp.y (parse_number):
7540 * exceptions.c (catch_exceptions):
7541 * dummy-frame.c (dummy_frame_this_id):
7542 * defs.h (struct cleanup):
7543 * breakpoint.c (disable_breakpoints_in_unloaded_shlib):
7544 * arm-tdep.c (arm_push_dummy_call):
7545 * amd64-tdep.h (amd64_collect_xsave):
7546 * amd64-tdep.c (amd64_collect_xsave):
7547 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache):
7548 * README (typing): Remove duplicate words.
7549 * cli/cli-decode.c (lookup_cmd_composition): Add comma.
7550 * infrun.c (siginfo_value_read): Fix typo.
7551 * solib-frv.c (frv_fdpic_find_global_pointer): Likewise.
7552 * top.c (source_line_number): Add comma.
7553
9941e0c5
MK
75542011-04-19 Marc Khouzam <marc.khouzam@ericsson.com>
7555
7556 * thread.c (any_live_thread_of_process): Prioritize threads
7557 that are not executing.
7558 * gdbthread.h (any_live_thread_of_process): Update comment
7559 as per above change.
7560
ed4b0e6a
AS
75612011-04-19 Andreas Schwab <schwab@linux-m68k.org>
7562
7563 * xcoffread.c (process_xcoff_symbol): Remove useless cast.
7564 (scan_xcoff_symtab): Likewise.
7565
9b13a2db
PM
75662011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
7567
7568 * xcoffread.c (process_xcoff_symbol): ARI fix: Avoid assignment
7569 inside if clause.
7570
1c6e1b0d
PM
75712011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
7572 Pedro Alves <pedro@codesourcery.com>
7573
7574 * xstormy16-tdep.c (xstormy16_push_dummy_call): Add local
7575 variables to simplify code and avoid == operator at end of
7576 line as this is against GNU coding standards.
7577
74de0234
PM
75782011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
7579
7580 * solib-svr4.c (svr4_keep_data_in_core): Rename local variable
7581 lm_name to name_lm to avoid conflict with lm_name function.
7582
b23518f0
PM
75832011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
7584
7585 ARI fixes: Use only lowercase function name for static functions.
7586 * nto-tdep.c (LM_ADDR): Rename to...
7587 (lm_addr): New function name.
7588 (nto_relocate_section_addresses): Adapt to change above.
7589 * solib-sunos.c (LM_ADDR): Rename to...
7590 (lm_addr): New function name.
7591 (LM_NEXT): Rename to...
7592 (lm_next): New function name.
7593 (sunos_current_sos, sunos_relocate_section_addresses): Adapt to
7594 function name changes above.
7595 * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Rename to...
7596 (lm_addr_from_link_map): New function name.
7597 (HAS_LM_DYNAMIC_FROM_LINK_MAP): Rename to...
7598 (has_lm_dynamic_from_link_map): New function name.
7599 (LM_DYNAMIC_FROM_LINK_MAP): Rename to...
7600 (lm_dynamic_from_link_map): New function name.
7601 (LM_ADDR_CHECK): Rename to...
7602 (lm_addr_check): New function name.
7603 (LM_NEXT): Rename to...
7604 (lm_next): New function name.
7605 (LM_PREV): Rename to...
7606 (lm_prev): New function name.
7607 (LM_NAME): Rename to...
7608 (lm_name): New function name.
7609 (IGNORE_FIRST_LINK_MAP_ENTRY): Rename to...
7610 (ignore_first_link_map_entry): New function name.
7611 (svr4_keep_data_in_core): Adapt to function name changes above.
7612 (svr4_current_sos): Likewise.
7613 (enable_break): Likewise.
7614 (svr4_relocate_section_addresses): Likewise.
7615
1448a0a2
PM
76162011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
7617
7618 ARI cleanup.
7619 * xtensa-tdep.c (xtensa_register_type): Use xstrprintf instead of
7620 sprintf. Simplify code and avoid loosing memory.
7621 (xtensa_register_reggroup_p): Extract assignment out of IF clause.
7622 (call0_frame_cache): Remove && operator from end of line.
7623
02835898
JK
76242011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7625
7626 Fix libraries displacement if they change whether they were prelinked.
7627 * solib-svr4.c (LM_ADDR_CHECK): Set L_ADDR even if the DYNAMIC pointer
7628 does not match. Comment why.
7629
9a845ea2
JK
76302011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7631
7632 * corelow.c: Include wrapper.h.
7633 (core_open): Call now gdb_target_find_new_threads.
7634 * wrapper.c: Include target.h.
7635 (gdb_target_find_new_threads): New.
7636 * wrapper.h (gdb_target_find_new_threads): New declaration.
7637
254f582e
JK
76382011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7639
7640 * linux-thread-db.c (find_new_threads_callback): Exit on zero TI_TID
7641 even if !TARGET_HAS_EXECUTION.
7642
63524580
JK
76432011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7644
7645 Fix convert_code_addr_to_desc_addr for ppc64 files after eu-strip.
7646 * elfread.c (elf_symfile_read): New variable synth_abfd, pass it to
7647 bfd_get_synthetic_symtab.
7648 * jit.c (jit_register_code): Pass NULL to the new parameter parent.
7649 * machoread.c (macho_add_oso_symfile): Pass main_objfile to the new
7650 parameter parent, remove the call to add_separate_debug_objfile.
7651 * solib.c (solib_read_symbols): Pass NULL to the new parameter parent.
7652 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
7653 * symfile.c (symbol_file_add_with_addrs_or_offsets): New parameter
7654 parent, new comment for it, call add_separate_debug_objfile for it.
7655 (symbol_file_add_separate): Pass objfile as the parameter parent,
7656 remove the call to add_separate_debug_objfile.
7657 (symbol_file_add_from_bfd): New parameter parent, pass it.
7658 (symbol_file_add): Pass NULL to the new parameter parent.
7659 * symfile.h (symbol_file_add_from_bfd): New parameter parent.
7660
90359a16
JK
76612011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7662
7663 * elfread.c (elf_symtab_read): Do not ignore .L symbols if they are
7664 BSF_SYNTHETIC.
7665
626e7282
JK
76662011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7667
7668 Fix Python access to inlined frames.
7669 * python/py-frame.c (frapy_read_var): Find BLOCK using get_frame_block.
7670 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
7671
cf31e6f9
TT
76722011-04-15 Tom Tromey <tromey@redhat.com>
7673
7674 * dwarf2read.c (add_index_entry): Use VEC_last, not VEC_length.
7675
c8d895f1
GB
76762011-04-15 Gary Benson <gbenson@redhat.com>
7677
7678 * MAINTAINERS: Add myself to write-after-approval section.
7679
56a9aa1d
MF
76802011-04-14 Mike Frysinger <vapier@gentoo.org>
7681
7682 * remote-sim.c (sim_command_completer): New function.
7683 (_initialize_remote_sim): Set completer to sim_command_completer.
7684
ba770c9c
TJB
76852011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
7686
7687 * breakpoint.c (print_exception_catchpoint): Rename to ...
7688 (print_it_exception_catchpoint): ... this.
7689 (gnu_v3_exception_catchpoint_ops): Update with new name
7690 for print_it_exception_catchpoint.
7691
51bf2553
EBM
76922011-04-13 Edjunior Machado <emachado@linux.vnet.ibm.com>
7693
7694 * MAINTAINERS: Add myself for write after approval privileges.
7695
d242658c
MP
76962011-04-13 Marek Polacek <mpolacek@redhat.com>
7697
7698 * MAINTAINERS: Add myself as a write-after-approval maintainer.
7699
4a4106ca
TJB
77002011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
7701
7702 * breakpoint.c (watch_command_1): Remove colon from exp_string.
7703
26063d49
TJB
77042011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
7705
7706 * breakpoint.c (save_breakpoints): Verify whether
7707 breakpoint_ops.print_recreate is defined before calling it.
7708
7782b183
GB
77092011-04-11 Gary Benson <gbenson@redhat.com>
7710
7711 Fix failure with --enable-maintainer-mode.
7712 * Makefile.in (aclocal_m4_deps): Updated gnulib dependencies.
7713
e8930875
JK
77142011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7715
7716 Code cleanup.
7717 * symtab.c (search_symbols): Reorder the KIND description in the
7718 function comment. Remove the unused 4th element of types, types2,
7719 types3 and types4. New gdb_assert on KIND.
7720 (symtab_symbol_info): Remove the unused 4th element of classnames.
7721 New gdb_assert on KIND.
7722 * symtab.h (enum search_domain): New warning in the enum comment.
7723 Assign numbers to the elements VARIABLES_DOMAIN, FUNCTIONS_DOMAIN and
7724 TYPES_DOMAIN.
7725
b4f2f049
JK
77262011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7727
7728 Fix crash of gdb save-index on a STABS file.
7729 * dwarf2read.c (write_psymtabs_to_index): Return also on no
7730 PSYMTABS_ADDRMAP.
7731
60d5a603
JK
77322011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7733
7734 Fix DW_AT_accessibility compatibility with gcc-4.6+.
7735 * dwarf2read.c: Include ctype.h.
7736 (producer_is_gxx_lt_4_6, dwarf2_default_access_attribute): New
7737 functions.
7738 (dwarf2_add_field): Fix new_field->accessibility by calling
7739 dwarf2_default_access_attribute. Restructure setting accessibility
7740 vs. virtuality.
7741 (dwarf2_add_member_fn): New variable accessibility. Fix fnp
7742 is_private and is_protected by calling
7743 dwarf2_default_access_attribute.
7744
e0f68161
KB
77452011-04-08 Kevin Buettner <kevinb@redhat.com>
7746
7747 * rx-tdep.c (rx_frame_unwind): Add default_frame_unwind_stop_reason
7748 to the initialization.
7749
2e1aae43
SE
77502011-04-08 Steve Ellcey <sje@cup.hp.com>
7751
7752 * Add default_frame_unwind_stop_reason value to libunwind_frame_unwind
7753 initalization.
7754
c6ca3dab
PM
77552011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
7756
7757 Remove support for old Cygwin 1.5 versions.
7758 * remote-fileio.c: Remove macros used to emulate new cygwin_conv_path
7759 function on old Cygwin version.
7760 * windows-nat.c: Remove cygwin version check and always define
7761 __USEWIDE for Cygwin compilation.
7762
bd18283a
YQ
77632011-04-07 Yao Qi <yao@codesourcery.com>
7764
7765 * arm-linux-tdep.c (arm_linux_copy_svc): Remove parameters INSN
7766 and TO.
7767 * arm-tdep.c (cleanup_svc): Handle variable instruction size.
7768 (arm_copy_svc): Remove parameters INSN and TO.
7769 (decode_svc_copro): Update caller.
7770 * arm-tdep.h (struct displaced_step_closure): Remove parameters
7771 from function pointer `copy_svc_os'.
7772
8c8dba6d
YQ
77732011-04-07 Yao Qi <yao@codesourcery.com>
7774
7775 * arm-tdep.c (cleanup_branch): Set a correct return address in
7776 LR for ARM and Thumb.
7777
59d7bcaf
JK
77782011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
7779
7780 Code cleanup.
7781 * dictionary.c (dict_hash): Use SYMBOL_HASH_NEXT.
7782 * dwarf2read.c (mapped_index_string_hash): Refer to SYMBOL_HASH_NEXT
7783 in the function comment, a new note on values compatibility.
7784 * minsyms.c (msymbol_hash_iw, msymbol_hash): Use SYMBOL_HASH_NEXT.
7785 * symtab.h (SYMBOL_HASH_NEXT): New.
7786
e7db58ea
TJB
77872011-04-06 Thiago Jung Bauermann <bauerman@br.ibm.com>
7788
7789 * ppc-linux-nat.c (check_condition): Add len output parameter.
7790 Set it based on the memory region referenced in the condition
7791 expression. Update all callers.
7792
9f743ef6
JK
77932011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
7794
7795 Fix crash regression on systems featuring .gdb_index.
7796 * objfiles.c (free_objfile): Move the
7797 forget_cached_source_info_for_objfile call earlier. Comment it.
7798 Extend the comment for objfile_free_data.
7799
9182c5bc
JK
78002011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
7801
7802 Fix regression of displaying the debug format.
7803 * buildsym.c (end_symtab): Set symtab's debugformat and producer from
7804 subfile.
7805
04bd08de
TT
78062011-04-04 Tom Tromey <tromey@redhat.com>
7807
7808 * cli/cli-interp.c (struct captured_execute_command_args):
7809 Remove.
7810 (do_captured_execute_command): Remove.
7811 (safe_execute_command): Use TRY_CATCH.
7812 * cli/cli-script.c (struct wrapped_read_command_file_args):
7813 Remove.
7814 (wrapped_read_command_file): Remove.
7815 (script_from_file): Use TRY_CATCH.
7816 * exceptions.c (catch_exception): Remove.
7817 * exceptions.h (catch_exception): Remove.
7818 (deprecated_throw_reason): Update comment.
7819 * mi/mi-main.c (captured_mi_execute_command): Change 'data'
7820 argument to 'context'.
7821 (mi_execute_command): Use TRY_CATCH.
7822 * remote.c (struct start_remote_args): Remove.
7823 (remote_start_remote): Update; change arguments.
7824 (remote_open_1): Use TRY_CATCH.
7825
58438ac1
TT
78262011-04-04 Tom Tromey <tromey@redhat.com>
7827
7828 * tracepoint.c (scope_info): Update.
7829 * symtab.c (decode_line_spec): Update.
7830 * python/python.c (gdbpy_decode_line): Update.
7831 * linespec.h (decode_line_1): Update.
7832 * linespec.c (decode_line_1): Remove 'not_found_ptr' argument.
7833 (decode_compound, find_method, symtab_from_filename)
7834 (decode_variable): Likewise.
7835 * cli/cli-cmds.c (edit_command): Update.
7836 (list_command): Update.
7837 * breakpoint.c (parse_breakpoint_sals): Remove 'not_found_ptr'
7838 argument.
7839 (create_breakpoint): Update.
7840 (until_break_command): Update.
7841 (addr_string_to_sals): Update.
7842 (decode_line_spec_1): Update.
7843
b78a6381
TT
78442011-04-04 Tom Tromey <tromey@redhat.com>
7845
7846 * breakpoint.c (struct captured_parse_breakpoint_args): Remove.
7847 (do_captured_parse_breakpoint): Remove.
7848 (create_breakpoint): `e' is now volatile. Remove `parse_args'.
7849 Use TRY_CATCH directly.
7850
00174a86
TT
78512011-04-04 Tom Tromey <tromey@redhat.com>
7852
7853 * symtab.h (free_symtab): Remove.
7854 (forget_cached_source_info_for_objfile): Declare.
7855 * symmisc.c (free_symtab): Remove.
7856 * source.c (forget_cached_source_info_for_objfile): New function.
7857 (forget_cached_source_info): Use it.
7858 * objfiles.c (free_objfile): Simplify check before calling
7859 clear_current_source_symtab_and_line. Call
7860 forget_cached_source_info_for_objfile.
7861
30cc903e
TT
78622011-04-04 Tom Tromey <tromey@redhat.com>
7863
7864 * mdebugread.c (psymtab_to_symtab_1): Copy linetable to obstack.
7865 (new_symtab): Don't set `free_code' on symtab.
7866 (new_linetable): Properly handle size==0.
7867 * symtab.h (struct symtab) <free_code, free_func>: Remove.
7868 * symmisc.c (free_symtab): Don't free the linetable. Don't call
7869 free_func.
7870 * jv-lang.c (struct jv_per_objfile_data): New.
7871 (jv_per_objfile_free): Free the data.
7872 (get_dynamics_objfile): Allocate a jv_per_objfile_data.
7873 (get_java_class_symtab): Set the `dict' field on the
7874 jv_per_objfile_data.
7875 (free_class_block): Remove.
7876 * buildsym.c (end_symtab): Don't set `free_code' or `free_func' on
7877 the symtab.
7878
0c2e6019
TT
78792011-04-04 Tom Tromey <tromey@redhat.com>
7880
7881 * symfile.c (reread_symbols): Update.
7882 * objfiles.h (struct objfile) <cp_namespace_symtab>: Remove
7883 field.
7884 * objfiles.c (allocate_objfile): Update.
7885 * cp-support.h (cp_check_possible_namespace_symbols): Don't
7886 declare.
7887 * cp-namespace.c (lookup_symbol_file): Don't call
7888 lookup_possible_namespace_symbol.
7889 (initialize_namespace_symtab, get_possible_namespace_block)
7890 (free_namespace_block, cp_check_possible_namespace_symbols)
7891 (check_possible_namespace_symbols_loop)
7892 (check_one_possible_namespace_symbol)
7893 (lookup_possible_namespace_symbol): Remove.
7894 (maintenance_cplus_namespace): Replace with notice.
7895 (_initialize_cp_namespace): Deprecate `maint cplus namespace'.
7896
554d387d
TT
78972011-04-04 Tom Tromey <tromey@redhat.com>
7898
7899 * xcoffread.c (read_xcoff_symtab): Make `debugfmt' const.
7900 * symtab.h (struct symtab) <producer, debugformat>: Now const.
7901 * symmisc.c (free_symtab): Don't free debugformat.
7902 * buildsym.h (struct subfile) <producer, debugformat>: Now const.
7903 (record_debugformat, record_producer): Document.
7904 * buildsym.c (end_symtab): Don't save debugformat and producer
7905 names on obstack.
7906 (end_symtab): Don't free debugformat and producer fields.
7907 (record_debugformat): Don't call xstrdup.
7908 (record_producer): Likewise.
7909
d4d4db8a
TT
79102011-04-04 Tom Tromey <tromey@redhat.com>
7911
7912 * source.c (find_source_lines): Remove LSEEK_NOT_LINEAR code.
7913 (source_line_charpos, source_charpos_line): Remove.
7914
8903c50d
TT
79152011-04-04 Tom Tromey <tromey@redhat.com>
7916
7917 * symtab.h (domain_enum): Split in two...
7918 (enum search_domain): New.
7919 (search_symbols): Update.
7920 * symtab.c (print_symbol_info, symtab_symbol_info): Remove
7921 redundant declarations.
7922 (search_symbols): Change 'kind' argument to search_domain.
7923 Update.
7924 (print_symbol_info): Likewise.
7925 (symtab_symbol_info): Likewise.
7926 * symfile.h (struct quick_symbol_functions)
7927 <pre_expand_symtabs_matching>: Change type of 'kind' argument.
7928 <expand_symtabs_matching>: Likewise.
7929 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Update.
7930 (expand_symtabs_matching_via_partial): Update.
7931 * dwarf2read.c (dw2_pre_expand_symtabs_matching): Update.
7932 (dw2_expand_symtabs_for_function): Update.
7933 * block.h: Moved anonymous enum...
7934 * defs.h (enum block_enum): ... here. Now named.
7935
d9351f5f 79362011-04-03 Joel Brobecker <brobecker@adacore.com>
7937
7938 GDB 7.3 branch created (branch timestamp: 2011-04-01 01:00 UTC)
7939 * version.in: Bump version to 7.3.50.20110403-cvs.
7940
d6e00af6
JB
79412011-04-03 Joel Brobecker <brobecker@adacore.com>
7942
7943 * NEWS: Create a new section for the next release branch.
7944 Rename the section of the current branch, now that it has
7945 been cut.
7946
2b9e5ea6
UW
79472011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
7948
7949 * arm-tdep.c (arm_gdbarch_init): Enfore correct register number
7950 for "fpscr" in target description.
7951
0cf03b49
JK
79522011-04-01 Jan Kratochvil <jan.kratochvil@redhat.com>
7953
7954 * dwarf2read.c (find_slot_in_mapped_hash): New variable back_to,
7955 initialize it. Delay HASH initialization. Strip the part after open
7956 parenthesis for languages with qualifiers. Call do_cleanups.
7957
5d901a73
TT
79582011-04-01 Tom Tromey <tromey@redhat.com>
7959
7960 * utils.c (report_command_stats): Don't print `-' for negative
7961 number.
7962
b0dd7688
JB
79632011-04-01 Eric Botcazou <ebotcazou@adacore.com>
7964
7965 * ada-lang.c (ada_is_simple_array_type, ada_value_slice_from_ptr)
7966 (ada_value_slice, empty_array, to_fixed_array_type): Deal with
7967 typedefs.
7968
956a9fb9
JB
79692011-04-01 Joel Brobecker <brobecker@adacore.com>
7970
7971 * breakpoint.h (bpdisp_text): Add declaration.
7972 * breakpoint.c (bpdisp_text): Make non-static.
7973 * ada-lang.c: #include "mi/mi-common.h".
7974 (print_it_exception): Rewrite to improve GDB/MI output.
7975
3352110b
PA
79762011-04-01 Pedro Alves <pedro@codesourcery.com>
7977
7978 * arm-tdep.h (struct address_space): Add forward declaration.
7979
18819fa6
UW
79802011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
7981
7982 * arm-tdep.h (arm_insert_single_step_breakpoint): Add prototype.
7983 * arm-tdep.c (arm_override_mode): New global.
7984 (arm_pc_is_thumb): Respect arm_override_mode. Remove single-step
7985 execution mode heuristics.
7986 (thumb_get_next_pc_raw): Remove INSERT_BKTP argument; always insert
7987 second single-step breakpoint if needed, using
7988 arm_insert_single_step_breakpoint.
7989 (arm_get_next_pc_raw): Remove INSERT_BKTP argument. Only handle
7990 ARM execution mode, do not call thumb_get_next_pc_raw.
7991 (arm_get_next_pc): Encode execution mode in return value. Call
7992 either arm_get_next_pc_raw or thumb_get_next_pc_raw.
7993 (arm_insert_single_step_breakpoint): New function.
7994 (arm_software_single_step): Call it.
7995 * arm-linux-tdep.c (arm_linux_sigreturn_return_addr): Add IS_THUMB
7996 argument to return execution mode of sigreturn target.
7997 (arm_linux_syscall_next_pc): Use it.
7998 (arm_linux_copy_svc): Update call.
7999 (arm_linux_software_single_step): Call
8000 arm_insert_single_step_breakpoint.
8001
a6e293d1
JK
80022011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
8003
8004 * dwarf2read.c (dwarf2_read_index): Fix .gdb_index version number in
8005 the comment.
8006
a4c8e806
TT
80072011-03-31 Tom Tromey <tromey@redhat.com>
8008
8009 * varobj.c (update_dynamic_varobj_children): Properly handle
8010 errors from iterator.
8011
df5c6c50
JK
80122011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
8013
8014 * dwarf2read.c (dwarf2_name): Initialize DEMANGLED. Avoid demangling
8015 struct linkage name twice.
8016
1dae3efc
TT
80172011-03-31 Tom Tromey <tromey@redhat.com>
8018
8019 * python/py-prettyprint.c (print_stack_unless_memory_error): Add
8020 missing ">" to message.
8021
f4f7ab05
TT
80222011-03-31 Tom Tromey <tromey@redhat.com>
8023
8024 * varobj.c (instantiate_pretty_printer): Remove duplicate
8025 'return'.
8026
fcf250e2
UW
80272011-03-31 Ulrich Weigand <ulrich.weigand@linaro.org>
8028
8029 * i386-tdep.c (i386_frame_prev_register): Unwind SP from memory
8030 if neither saved value nor register available (e.g. signal frame).
8031
ee6436e3
TJB
80322011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
8033
8034 * macroexp.c (expand): Avoid uninitialized variable
8035 compiler warning.
8036
423f41a5
TJB
80372011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
8038
8039 * breakpoint.c (break_range_command): Fix typo in comment.
8040
f1310107
TJB
80412011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
8042 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
8043
8044 Implement support for PowerPC BookE ranged breakpoints.
8045 * NEWS: Mention support for ranged breakpoints on embedded PowerPC.
8046 * breakpoint.h (struct bp_target_info) <length>: New member
8047 variable.
8048 (struct breakpoint_ops) <breakpoint_hit>: Take struct bp_location
8049 instead of struct breakpoint as argument, and also add ASPACE
8050 and BP_ADDR arguments. Update all callers.
8051 (struct breakpoint_ops) <print_one_detail>: New method.
8052 (struct breakpoint) <addr_string_range_end>: New member variable.
8053 * breakpoint.c (breakpoint_location_address_match): Add function
8054 prototype.
8055 (insert_bp_location): Set bl->target_info.length.
8056 (breakpoint_here_p): Call breakpoint_location_address_match.
8057 (moribund_breakpoint_here_p): Likewise.
8058 (regular_breakpoint_inserted_here_p): Likewise.
8059 (breakpoint_thread_match): Likewise.
8060 (bpstat_stop_status): Likewise.
8061 (bpstat_check_location): Move call to
8062 breakpoint_ops.breakpoint_hit to the top.
8063 (print_one_breakpoint_location): Call
8064 breakpoint_ops.print_one_detail if available.
8065 (breakpoint_address_match_range): New function.
8066 (breakpoint_location_address_match): Likewise.
8067 (breakpoint_locations_match): Compare the length field of the
8068 locations too.
8069 (hw_breakpoint_used_count): Count resources used by all locations
8070 in a breakpoint, and use breakpoint_ops.resources_needed if
8071 available.
8072 (breakpoint_hit_ranged_breakpoint): New function.
8073 (resources_needed_ranged_breakpoint): Likewise.
8074 (print_it_ranged_breakpoint): Likewise.
8075 (print_one_ranged_breakpoint): Likewise.
8076 (print_one_detail_ranged_breakpoint): Likewise.
8077 (print_mention_ranged_breakpoint): Likewise.
8078 (print_recreate_ranged_breakpoint): Likewise.
8079 (ranged_breakpoint_ops): New structure.
8080 (find_breakpoint_range_end): New function.
8081 (break_range_command): Likewise.
8082 (delete_breakpoint): Free addr_string_range_end.
8083 (update_breakpoint_locations): Add SALS_END argument. Update
8084 all callers. Calculate breakpoint length if a non-zero SALS_END
8085 is given. Call breakpoint_locations_match instead of
8086 breakpoint_address_match.
8087 (reset_breakpoint): Find SaL of the end of the range if B is a
8088 ranged breakpoint.
8089 (_initialize_breakpoint): Register break-range command.
8090 * defs.h (print_core_address): Add function prototype.
8091 * ppc-linux-nat.c (ppc_linux_ranged_break_num_registers): New
8092 function.
8093 (ppc_linux_insert_hw_breakpoint): Support ranged breakpoints.
8094 (ppc_linux_remove_hw_breakpoint): Likewise.
8095 (_initialize_ppc_linux_nat): Initialize
8096 to_ranged_break_num_registers.
8097 * target.c (update_current_target): Add comment about
8098 to_ranged_break_num_registers.
8099 (target_ranged_break_num_registers): New function.
8100 * target.h (struct target_ops) <to_ranged_break_num_registers>:
8101 New method.
8102 (target_ranged_break_num_registers): Add function prototype.
8103 * ui-out.c (ui_out_field_core_addr): Move address-printing logic to ...
8104 * utils.c (print_core_address): ... here.
8105
02d20e4a
UW
81062011-03-31 Ulrich Weigand <uweigand@de.ibm.com>
8107
8108 * breakpoint.c (addr_string_to_sals): Avoid uninitialized
8109 variable compiler warning.
8110
ef23e705
TJB
81112011-03-30 Thiago Jung Bauermann <bauerman@br.ibm.com>
8112
8113 * breakpoint.c (breakpoint_re_set_one): Factor out breakpoint-resetting
8114 code from here ...
8115 (re_set_breakpoint): ... to here ...
8116 (addr_string_to_sals): ... and here.
8117
311e6ab3
PM
81182011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
8119
8120 * Makefile.in (SFILES): Add missing C sources.
8121 (HFILES_NO_SRCDIR): Remove gdbserver subdirectory headers.
8122 Add missing headers.
8123
acd1d99c
MF
81242011-03-29 Mike Frysinger <vapier@gentoo.org>
8125
8126 * .gitignore: New file.
8127
66ee2731
MF
81282011-03-29 Mike Frysinger <vapier@gentoo.org>
8129
8130 * NEWS: Mention new cfi device simulation.
8131
53832f31
TT
81322011-03-29 Tom Tromey <tromey@redhat.com>
8133
8134 * dwarf2read.c (fixup_partial_die): Handle linkage name on
8135 otherwise anonymous types.
8136 (dwarf2_name): Likewise.
8137 * valops.c (value_struct_elt_for_reference): Refine artificial
8138 type logic. Call error if j==-1.
8139
09b58708
JK
81402011-03-29 Andreas Tobler <andreast-list@fgznet.ch>
8141
8142 Fix false GCC warning.
8143 * infcall.c (find_function_addr): Initialize funaddr.
8144
6023c606
PM
81452011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
8146
8147 Fix mingw compilation with --enable-targets=all.
8148 * remote-mips.c (gdb_usleep.h): Include header.
8149 (mips_enter_debug): Use gdb_usleep instead of sleep.
8150
0e30163f
JK
81512011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
8152
8153 Support resolution of STT_GNU_IFUNC via breakpoints.
8154 * breakpoint.c (print_it_typical): Support bp_gnu_ifunc_resolver and
8155 bp_gnu_ifunc_resolver_return.
8156 (bpstat_what): Rename parameter to bs_head, new variable bs, adjust
8157 the loop. Support bp_gnu_ifunc_resolver and
8158 bp_gnu_ifunc_resolver_return. New comment after the loop. New loop
8159 for bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return
8160 breakpoints.
8161 (bptype_string, print_one_breakpoint_location): Support
8162 bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return.
8163 (user_settable_breakpoint): Return true also for
8164 bp_gnu_ifunc_resolver.
8165 (allocate_bp_location): Support bp_gnu_ifunc_resolver and
8166 bp_gnu_ifunc_resolver_return.
8167 (set_breakpoint_location_function): New parameter explicit_loc,
8168 describe it. Call find_pc_partial_function_gnu_ifunc with new
8169 variable IS_GNU_IFUNC and adjust the address for STT_GNU_IFUNC if
8170 EXPLICIT_LOC is not set.
8171 (set_raw_breakpoint): Set EXPLICIT_LOC for
8172 set_breakpoint_location_function.
8173 (clone_momentary_breakpoint): Use true for EXPLICIT_LOC of
8174 set_breakpoint_location_function.
8175 (mention): Support bp_gnu_ifunc_resolver and
8176 bp_gnu_ifunc_resolver_return.
8177 (add_location_to_breakpoint): Set EXPLICIT_LOC for
8178 set_breakpoint_location_function.
8179 (update_breakpoint_locations): Remove static.
8180 (breakpoint_re_set_one): Support bp_gnu_ifunc_resolver and
8181 bp_gnu_ifunc_resolver_return.
8182 * breakpoint.h (enum bptype): New fields bp_gnu_ifunc_resolver and
8183 bp_gnu_ifunc_resolver_return.
8184 (update_breakpoint_locations): New declaration.
8185 * elfread.c: Include gdbthread.h and regcache.h.
8186 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop): New
8187 functions.
8188 (elf_gnu_ifunc_fns): Install them.
8189 * minsyms.c (stub_gnu_ifunc_resolver_stop)
8190 (stub_gnu_ifunc_resolver_return_stop): New functions.
8191 (stub_gnu_ifunc_fns): Install them.
8192 * symtab.h (struct gnu_ifunc_fns): New fields gnu_ifunc_resolver_stop
8193 and gnu_ifunc_resolver_return_stop.
8194 (gnu_ifunc_resolver_stop, gnu_ifunc_resolver_return_stop): New.
8195
07be84bf
JK
81962011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
8197
8198 STT_GNU_IFUNC reader implementation.
8199 * elfread.c: Include gdbtypes.h, value.h and infcall.h.
8200 (SYMBOL_GOT_PLT_SUFFIX, elf_rel_plt_read)
8201 (elf_objfile_gnu_ifunc_cache_data, struct elf_gnu_ifunc_cache)
8202 (elf_gnu_ifunc_cache_hash, elf_gnu_ifunc_cache_eq)
8203 (elf_gnu_ifunc_record_cache, elf_gnu_ifunc_resolve_by_cache)
8204 (elf_gnu_ifunc_resolve_by_got, elf_gnu_ifunc_resolve_name)
8205 (elf_gnu_ifunc_resolve_addr): New.
8206 (elf_symfile_read): Call elf_rel_plt_read.
8207 (elf_gnu_ifunc_fns): New.
8208 (_initialize_elfread): Initialize elf_objfile_gnu_ifunc_cache_data.
8209 Install elf_gnu_ifunc_fns.
8210 * infcall.c (find_function_return_type): New function.
8211 (find_function_addr): Resolve TYPE_GNU_IFUNC functions, if possible.
8212 * minsyms.c (stub_gnu_ifunc_resolve_addr)
8213 (stub_gnu_ifunc_resolve_name): New functions.
8214 (stub_gnu_ifunc_fns, gnu_ifunc_fns_p): New variables.
8215 * symtab.h (struct gnu_ifunc_fns, gnu_ifunc_resolve_addr)
8216 (gnu_ifunc_resolve_name, gnu_ifunc_fns_p): New.
8217
300f8e10
JK
82182011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
8219
8220 Code cleanup for later STT_GNU_IFUNC support.
8221 * infcall.c (find_function_addr): Remove variable code, use explicit
8222 dereferences for it. Move VALUE_TYPE initialization later.
8223
11c81455
JK
82242011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
8225
8226 GDB find_pc_partial_function support for STT_GNU_IFUNC.
8227 * blockframe.c (cache_pc_function_is_gnu_ifunc): New variable.
8228 (clear_pc_function_cache): Clear it.
8229 (find_pc_partial_function): Rename to ...
8230 (find_pc_partial_function_gnu_ifunc): ... this function. New
8231 parameter is_gnu_ifunc_p, describe it. Set *IS_GNU_IFUNC_P.
8232 (find_pc_partial_function): New wrapper for this function.
8233 * symtab.h (find_pc_partial_function_gnu_ifunc): New declaration.
8234
0875794a
JK
82352011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
8236
8237 GDB internal type support for STT_GNU_IFUNC.
8238 * elfread.c (record_minimal_symbol): Support mst_text_gnu_ifunc.
8239 (elf_symtab_read): Set mst_text_gnu_ifunc for
8240 BSF_GNU_INDIRECT_FUNCTION.
8241 * eval.c (evaluate_subexp_standard): Support TYPE_GNU_IFUNC.
8242 * gdbtypes.c (init_type): Support TYPE_FLAG_GNU_IFUNC,
8243 builtin_func_func, nodebug_text_gnu_ifunc_symbol and
8244 nodebug_got_plt_symbol.
8245 * gdbtypes.h (enum type_flag_value): New entry TYPE_FLAG_GNU_IFUNC.
8246 (TYPE_GNU_IFUNC): New.
8247 (struct main_type): New field flag_gnu_ifunc.
8248 (struct builtin_type): New field builtin_func_func.
8249 (struct objfile_type): New fields nodebug_text_gnu_ifunc_symbol and
8250 nodebug_got_plt_symbol.
8251 * minsyms.c (lookup_minimal_symbol_text): Support mst_text_gnu_ifunc.
8252 (in_gnu_ifunc_stub): New.
8253 (prim_record_minimal_symbol, find_solib_trampoline_target): Support
8254 mst_text_gnu_ifunc.
8255 * parse.c (write_exp_msymbol): New variable ifunc_msym. Detect and
8256 support mst_text_gnu_ifunc. Support mst_slot_got_plt.
8257 * solib-svr4.c (svr4_in_dynsym_resolve_code): Return true also for
8258 in_gnu_ifunc_stub.
8259 * symmisc.c (dump_msymbols): Support mst_text_gnu_ifunc.
8260 * symtab.c (search_symbols): Likewise.
8261 * symtab.h (enum minimal_symbol_type): New fields mst_text_gnu_ifunc
8262 and mst_slot_got_plt.
8263 (in_gnu_ifunc_stub): New declaration.
8264
d0fb5eae
JK
82652011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
8266
8267 Support a ring of related breakpoints.
8268 * breakpoint.c (watchpoint_del_at_next_stop): New, move here code from
8269 other functions, add gdb_assert.
8270 (update_watchpoint, watchpoint_check): Add gdb_assert. Use
8271 watchpoint_del_at_next_stop.
8272 (bpstat_check_watchpoint): Use watchpoint_del_at_next_stop.
8273 (bpstat_stop_status): Handle ring in related_breakpoint.
8274 (set_raw_breakpoint_without_location): Initialize ring in
8275 related_breakpoint.
8276 (delete_breakpoint): Handle ring in related_breakpoint, use
8277 watchpoint_del_at_next_stop.
8278 (map_breakpoint_numbers): Handle ring in related_breakpoint.
8279
9cded63f
TT
82802011-03-28 Tom Tromey <tromey@redhat.com>
8281
8282 PR symtab/12441:
8283 * dwarf2read.c (prepare_one_comp_unit): Don't call set_cu_language
8284 with `language_minimal'.
8285
467d42c4
UW
82862011-03-25 Ulrich Weigand <ulrich.weigand@linaro.org>
8287
8288 * arm-tdep.c (arm_elf_make_msymbol_special): Use ARM_SYM_BRANCH_TYPE
8289 instead of checking for STT_ARM_TFUNC symbol type.
8290
62853458
TT
82912011-03-25 Tom Tromey <tromey@redhat.com>
8292
8293 * linespec.c (symbol_found): Restore line-based result for
8294 non-LOC_LABEL symbols.
8295
a7417d46
KT
82962011-03-25 Kai Tietz <ktietz@redhat.com>
8297
8298 * tui/tui-source.c (tui_set_source_content): Use filename_cmp
8299 instead of strcmp for comparison.
8300 (tui_source_is_displayed): Likewise.
8301 * tui/tui-winsource.c (tui_update_breakpoint_info): Likewise.
8302
55f1336d
TT
83032011-03-24 Mark Wielaard <mjw@redhat.com>
8304
f33edef8
PP
8305 * dwarf2read.c (lookup_signatured_type): Use DW_FORM_ref_sig8 in
8306 complaint.
8307 (skip_one_die): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
8308 (find_partial_die_in_comp_unit): Likewise in comment.
8309 (read_attribute_value): Likewise.
8310 (lookup_die_type): Likewise.
8311 (dwarf_form_name): Likewise.
8312 (dump_die_shallow): Likewise.
8313 (follow_die_ref_or_sig): Likewise.
55f1336d 8314
9ef07c8c
TT
83152011-03-24 Tom Tromey <tromey@redhat.com>
8316
8317 PR breakpoints/11816:
8318 * linespec.c (decode_line_1): Parse `function:label' linespecs.
8319 (decode_compound): Update.
8320 (find_function_symbol): New function.
8321 (decode_dollar): Update.
8322 (decode_label): Add 'function_symbol' parameter. Handle
8323 function-relative labels.
8324 (decode_variable): Update.
8325 (symbol_found): Add 'function_symbol' parameter. Use label's PC,
8326 not its line. Set `special_display' and canonical name for
8327 labels.
8328
56435ebe
TT
83292011-03-24 Tom Tromey <tromey@redhat.com>
8330
8331 * linespec.h (struct linespec_result) <special_display>: New
8332 field.
8333 * breakpoint.h (struct breakpoint) <display_canonical>: New
8334 field.
8335 * breakpoint.c (print_breakpoint_location): Respect
8336 display_canonical.
8337 (create_breakpoint_sal): Add 'display_canonical' parameter.
8338 (create_breakpoints_sal): Update.
8339 (create_breakpoint): Update.
8340
7efd8fc2
TT
83412011-03-24 Tom Tromey <tromey@redhat.com>
8342
8343 * symtab.c (decode_line_spec): Update.
8344 * linespec.c (build_canonical_line_spec): Change type of
8345 'canonical'.
8346 (decode_line_2, decode_line_1, decode_objc, decode_compound)
8347 (find_method, decode_all_digits, decode_dollar, decode_label)
8348 (symbol_found): Likewise.
8349 (init_linespec_result): New function.
8350 * breakpoint.c (struct captured_parse_breakpoint_args)
8351 <canonical_p>: New field, replaces addr_string_p.
8352 (create_breakpoints_sal): Add 'canonical' parameter, replacing
8353 'addr_string'.
8354 (parse_breakpoint_sals): Likewise.
8355 (do_captured_parse_breakpoint): Update.
8356 (create_breakpoint): Use struct linespec_result.
8357 (until_break_command): Update.
8358 (breakpoint_re_set_one): Update.
8359 (decode_line_spec_1): Update.
8360 * linespec.h (struct linespec_result): New.
8361 (init_linespec_result): Declare.
8362
788c8b10
PA
83632011-03-23 Pedro Alves <pedro@codesourcery.com>
8364
8365 * regcache.c (regcache_raw_read): If the target didn't supply a
8366 given raw register, mark it as unavailable.
8367
0ba1096a
KT
83682011-03-23 Kai Tietz <ktietz@redhat.com>
8369
8370 * breakpoint.c (clear_command): Use filename_cmp
8371 instead of strcmp for comparison.
8372 * buildsym.c (watch_main_source_file_lossage): Likewise.
8373 (patch_subfile_names): Use IS_DIR_SEPARATOR instead of
8374 checking just for slash.
8375 * dbxread.c (read_dbx_symtab): Use lbasename instead of
8376 strrchr and filename_cmp instead of strcmp for filenames.
8377 (add_old_header_file): Use filename_cmp
8378 instead of strcmp for comparison.
8379 * exec.c (exec_set_section_address): Likewise.
8380 * macrotab.c (macro_lookup_inclusion): Likewise.
8381 (macro_lookup_inclusion): Likewise.
8382 * elfread.c (_initialize_elfread): Likewise.
8383 (elfstab_offset_sections): Likewise.
8384 (elfstab_offset_sections): Use lbasename instead of
8385 strrchr.
8386 * mdebugread.c (parse_partial_symbols): Likewise.
8387 (arse_partial_symbols): Use filename_(n)cmp instead of
8388 str(n)cmp for comparison.
8389 * minsyms.c (lookup_minimal_symbol): Likewise.
8390 * psymtab.c (read_psymtabs_with_filename): Likewise.
8391 * solib.c (solib_read_symbols): Likewise.
8392 (reload_shared_libraries_1): Likewise.
8393 * symmisc.c (maintenance_print_symbols): Likewise.
8394 * symfile.c (separate_debug_file_exists): Likewise.
8395 (reread_symbols): Likewise.
8396 (find_separate_debug_file_by_debuglink): Likewise.
8397 * remote-fileio.c (remote_fileio_func_rename): Likewise.
8398 * source.c (add_path): Likewise.
8399 * symtab.c (filename_seen): Likewise.
8400 (file_matches): Likewise.
8401 (print_symbol_info): Likewise.
8402 (maybe_add_partial_symtab_filename): Likewise.
8403 (make_source_files_completion_list): Likewise.
8404 * xml-syscall.c (init_sysinfo): Likewise.
8405 * windows-nat.c (_initialize_check_for_gdb_ini): Use
8406 IS_DIR_SEPARATOR for checking for trailing path separator.
8407
dd90784c
JK
84082011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
8409
8410 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_entry_value. New
8411 label abort_expression.
8412 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle
8413 DWARF_VALUE_OPTIMIZED_OUT.
8414
3167638f
JK
84152011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
8416
8417 Code cleanup.
8418 * c-typeprint.c (c_type_print_args): Change parameter show_artificial
8419 to linkage_name. Invert its value. Update the function comment.
8420 (c_type_print_varspec_suffix): Invert it at the caller.
8421 * dwarf2read.c (dwarf2_compute_name): Invert it at the caller.
8422
ce406537
PA
84232011-03-22 Pedro Alves <pedro@codesourcery.com>
8424
8425 * infcmd.c (post_create_inferior): Ignore NOT_AVAILABLE_ERROR
8426 errors when reading the `stop_pc'.
8427 * printcmd.c (pc_prefix): Use get_frame_pc_if_available instead of
8428 get_frame_pc.
8429
da5d4055
PM
84302011-03-22 Phil Muldoon <pmuldoon@redhat.com>
8431
8432 * NEWS: Document gdb.Write stream keyword.
8433
29e0eb9c
JK
84342011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
8435
8436 Revert:
8437 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8438 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
8439 (dwarf2_add_field): Fix new_field->accessibility for
8440 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
8441
05775840
PM
84422011-03-22 Phil Muldoon <pmuldoon@redhat.com>
8443
f33edef8 8444 PR python/12183
05775840
PM
8445
8446 * python/py-function.c (fnpy_call): Treat GdbErrors differently to
8447 other error classes. Do not print stack trace.
8448
a0cb7835
JK
84492011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8450
8451 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
8452 (dwarf2_add_field): Fix new_field->accessibility for
8453 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
8454
d19f7eee
UW
84552011-03-21 Ulrich Weigand <ulrich.weigand@linaro.org>
8456
8457 * arm-tdep.c (arm_analyze_prologue): Do not abort parsing when
8458 encountering a load via a non-SP register.
8459
4a2fbb50
UW
84602011-03-21 Ulrich Weigand <uweigand@de.ibm.com>
8461
8462 * tramp-frame.c (tramp_frame_prepend_unwinder): Set stop_reason
8463 field in returned unwinder.
8464
3489610d
JB
84652012-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8466
8467 * ada-lang.c (replace_operator_with_call): Copy also GDBARCH.
8468
8c1a34e7
JB
84692012-03-21 Joel Brobecker <brobecker@adacore.com>
8470
8471 * ada-lang.c (replace_operator_with_call): Use xzalloc instead
8472 of xmalloc.
8473
8fbca658
PA
84742012-03-18 Pedro Alves <pedro@codesourcery.com>
8475
8476 * frame.c (frame_unwind_register): Throw an error if unwinding the
8477 register failed.
8478 * get_prev_frame_1 (get_prev_frame_1): Ask the unwinder if there's
8479 an unwind stop reason.
8480 (frame_stop_reason_string): Handle UNWIND_UNAVAILABLE.
8481 * frame.h (enum unwind_stop_reason) <UNWIND_OUTERMOST,
8482 UNWIND_UNAVAILABLE>: New.
8483 * inline-frame.c (inline_frame_unwind): Install
8484 default_frame_unwind_stop_reason.
8485 * frame-unwind.c: Include "exceptions.h".
8486 (frame_unwind_find_by_frame): Swallow NOT_AVAILABLE_ERROR errors.
8487 (default_frame_unwind_stop_reason): New.
8488 * frame-unwind.h (frame_unwind_stop_reason_ftype): New typedef.
8489 (default_frame_unwind_stop_reason): Declare.
8490 (struct frame_unwind) <stop_reason>: New function pointer.
8491
8492 * dummy-frame.c: Install default_frame_unwind_stop_reason.
8493 * dwarf2-frame.c: Include exceptions.h.
8494 (struct dwarf2_frame_cache) <unavailable_retaddr>: New field.
8495 (dwarf2_frame_cache): Swallow NOT_AVAILABLE_ERROR errors when
8496 computing the CFA. If such an error was thrown, set
8497 unavailable_retaddr.
8498 (dwarf2_frame_unwind_stop_reason): New.
8499 (dwarf2_frame_this_id): Don't build a frame id if the CFA was
8500 unavailable.
8501 (dwarf2_frame_unwind): Install dwarf2_frame_unwind_stop_reason.
8502 (dwarf2_signal_frame_unwind): Ditto.
8503
8504 * amd64-tdep.c: Include "exceptions.h".
8505 (struct amd64_frame_cache): New field "base_p".
8506 (amd64_init_frame_cache): Clear it.
8507 (amd64_frame_cache_1): New, factored out from amd64_frame_cache.
8508 Avoid reading registers with functions that throw if the register
8509 is not necessary to compute the frame base.
8510 (amd64_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
8511 swallowing NOT_AVAILABLE_ERROR.
8512 (amd64_frame_unwind_stop_reason): New.
8513 (amd64_frame_this_id): Don't build a frame id if the frame base
8514 was unavailable.
8515 (amd64_frame_unwind): Install amd64_frame_unwind_stop_reason.
8516 (amd64_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
8517 base_p if the frame base was computable.
8518 (amd64_sigtramp_frame_unwind_stop_reason): New.
8519 (amd64_sigtramp_frame_this_id): Don't build a frame id if the
8520 frame base was unavailable.
8521 (amd64_sigtramp_frame_unwind): Install
8522 amd64_sigtramp_frame_unwind_stop_reason.
8523 (amd64_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
8524 base_p if the frame base was computable.
8525 (amd64_epilogue_frame_unwind_stop_reason): New.
8526 (amd64_epilogue_frame_this_id): Don't build a frame id if the
8527 frame base was unavailable.
8528 (amd64_epilogue_frame_unwind): Install
8529 amd64_epilogue_frame_unwind_stop_reason.
8530 * i386-tdep.c: Include "exceptions.h".
8531 (struct i386_frame_cache): New field "base_p".
8532 (i386_init_frame_cache): Clear it.
8533 (i386_frame_cache_1): New, factored out from amd64_frame_cache.
8534 Avoid reading registers with functions that throw if the register
8535 is not necessary to compute the frame base.
8536 (i386_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
8537 swallowing NOT_AVAILABLE_ERROR.
8538 (i386_frame_unwind_stop_reason): New.
8539 (i386_frame_this_id): Don't build a frame id if the frame base was
8540 unavailable.
8541 (i386_frame_prev_register): Handle unavailable SP.
8542 (i386_frame_unwind): Install i386_frame_unwind_stop_reason.
8543 (i386_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
8544 base_p if the frame base was computable.
8545 (i386_epilogue_frame_unwind_stop_reason): New.
8546 (i386_epilogue_frame_this_id): Don't build a frame id if the frame
8547 base was unavailable.
8548 (i386_epilogue_frame_unwind): Install
8549 i386_epilogue_frame_unwind_stop_reason.
8550 (i386_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
8551 base_p if the frame base was computable.
8552 (i386_sigtramp_frame_unwind_stop_reason): New.
8553 (i386_sigtramp_frame_this_id): Don't build a frame id if the frame
8554 base was unavailable.
8555 (i386_sigtramp_frame_unwind): Install
8556 i386_sigtramp_frame_unwind_stop_reason.
8557 * sentinel-frame.c (sentinel_frame_prev_register): Use the value
8558 type's size, not the register's.
8559 (sentinel_frame_unwind): Install default_frame_unwind_stop_reason.
8560
8561 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind): Install
8562 default_frame_unwind_stop_reason.
8563 * alpha-tdep.c (alpha_sigtramp_frame_unwind)
8564 (alpha_heuristic_frame_unwind): Ditto.
8565 * amd64obsd-tdep.c (amd64obsd_trapframe_unwind): Ditto.
8566 * arm-tdep.c (arm_prologue_unwind, arm_stub_unwind): Ditto.
8567 * avr-tdep.c (avr_frame_unwind): Ditto.
8568 * cris-tdep.c (cris_sigtramp_frame_unwind, cris_frame_unwind):
8569 Ditto.
8570 * frv-linux-tdep.c (frv_linux_sigtramp_frame_unwind): Ditto.
8571 * frv-tdep.c (frv_frame_unwind): Ditto.
8572 * h8300-tdep.c (h8300_frame_unwind): Ditto.
8573 * hppa-hpux-tdep.c (hppa_hpux_sigtramp_frame_unwind): Ditto.
8574 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind): Ditto.
8575 * hppa-tdep.c (hppa_frame_unwind, hppa_fallback_frame_unwind)
8576 (hppa_stub_frame_unwind): Ditto.
8577 * i386obsd-tdep.c (i386obsd_trapframe_unwind): Ditto.
8578 * ia64-tdep.c (ia64_frame_unwind, ia64_sigtramp_frame_unwind)
8579 (ia64_libunwind_frame_unwind)
8580 (ia64_libunwind_sigtramp_frame_unwind): Ditto.
8581 * iq2000-tdep.c (iq2000_frame_unwind): Ditto.
8582 * lm32-tdep.c (lm32_frame_unwind): Ditto.
8583 * m32c-tdep.c (m32c_unwind): Ditto.
8584 * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_unwind): Ditto.
8585 * m32r-tdep.c (m32r_frame_unwind): Ditto.
8586 * m68hc11-tdep.c (m68hc11_frame_unwind): Ditto.
8587 * m68k-tdep.c (m68k_frame_unwind): Ditto.
8588 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_unwind): Ditto.
8589 * m88k-tdep.c (m88k_frame_unwind): Ditto.
8590 * mep-tdep.c (mep_frame_unwind): Ditto.
8591 * microblaze-tdep.c (microblaze_frame_unwind): Ditto.
8592 * mips-tdep.c (mips_insn16_frame_unwind, mips_insn32_frame_unwind)
8593 (mips_stub_frame_unwind): Ditto.
8594 * mn10300-tdep.c (mn10300_frame_unwind): Ditto.
8595 * moxie-tdep.c (moxie_frame_unwind): Ditto.
8596 * mt-tdep.c (mt_frame_unwind): Ditto.
8597 * ppc-linux-tdep.c (ppu2spu_unwind): Ditto.
8598 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_unwind): Ditto.
8599 * rs6000-tdep.c (rs6000_frame_unwind): Ditto.
8600 * s390-tdep.c (s390_frame_unwind, s390_stub_frame_unwind)
8601 (s390_sigtramp_frame_unwind): Ditto.
8602 * score-tdep.c (score_prologue_unwind): Ditto.
8603 * sh-tdep.c (sh_frame_unwind): Ditto.
8604 * sh64-tdep.c (sh64_frame_unwind): Ditto.
8605 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_unwind): Ditto.
8606 * sparc-tdep.c (sparc32_frame_unwind): Ditto.
8607 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_unwind): Ditto.
8608 * sparc64-tdep.c (sparc64_frame_unwind): Ditto.
8609 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_unwind): Ditto.
8610 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_unwind): Ditto.
8611 * sparc64obsd-tdep.c (sparc64obsd_frame_unwind)
8612 (sparc64obsd_trapframe_unwind): Ditto.
8613 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_unwind): Ditto.
8614 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_unwind): Ditto.
8615 * spu-tdep.c (spu_frame_unwind, spu2ppu_unwind): Ditto.
8616 * v850-tdep.c (v850_frame_unwind): Ditto.
8617 * vax-tdep.c (vax_frame_unwind): Ditto.
8618 * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_unwind): Ditto.
8619 * xstormy16-tdep.c (frame_unwind xstormy16_frame_unwind): Ditto.
8620 * xtensa-tdep.c (xtensa_unwind): Ditto.
8621
f23d1b92
PA
86222011-03-18 Pedro Alves <pedro@codesourcery.com>
8623
8624 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Assume
8625 there's always a frame. Use get_frame_pc_if_available instead of
8626 get_frame_pc, and if there's no PC available, don't look up a
8627 symtab.
8628
1d4f5741
PA
86292011-03-18 Pedro Alves <pedro@codesourcery.com>
8630
8631 * stack.c (print_frame_local_vars, print_frame_arg_vars): Handle
8632 unavailable PC.
8633
dba09041
PA
86342011-03-18 Pedro Alves <pedro@codesourcery.com>
8635
8636 * tracepoint.c (set_traceframe_context): Handle unavailable PC
8637 gracefully.
8638
9a26e44c
PA
86392011-03-18 Pedro Alves <pedro@codesourcery.com>
8640
8641 * frame.h (frame_unwind_caller_pc_if_available): Declare.
8642 * frame.c (frame_unwind_caller_pc_if_available): New.
8643 * stack.c (frame_info): Handle unavailable PC.
8644
86452011-03-18 Pedro Alves <pedro@codesourcery.com>
8646
8647 * frame.c (frame_unwind_pc): Rename to ...
8648 (frame_unwind_pc_if_available): ... this. New `pc' output
8649 parameter. Change return type to int. Gracefully handle
8650 gdbarch_unwind_pc throwing NOT_AVAILABLE_ERROR. Return 0 if that
8651 happened, or 1 otherwise.
8652 (frame_unwind_pc): Reimplement on top of
8653 frame_unwind_pc_if_available.
8654 (get_frame_func): Rename to ...
8655 (get_frame_func_if_available): New `pc' output parameter. Change
8656 return type to int. Gracefully handle the PC not being available.
8657 (get_frame_func): Reimplement on top of
8658 get_frame_func_if_available.
8659 (select_frame): Handle the PC being unavailable.
8660 (get_prev_frame): Handle the PC being unavailable.
8661 (get_frame_pc_if_available): New.
8662 (get_frame_address_in_block_if_available): New.
8663 (find_frame_sal): Handle the frame PC not being available.
8664 * frame.h (get_frame_pc_if_available): Declare.
8665 (get_frame_address_in_block_if_available): Declare.
8666 (get_frame_func_if_available): Declare.
8667 * stack.c (print_frame_info): Handle the PC being unavailable.
8668 (find_frame_funname): Ditto.
8669 (print_frame): Handle the PC being unavailable.
8670 (get_frame_language): Ditto.
8671 * blockframe.c (get_frame_block): Ditto.
8672 * macroscope.c (default_macro_scope): Ditto.
8673 * tui/tui-stack.c (tui_show_frame_info): Ditto.
8674
86752011-03-18 Pedro Alves <pedro@codesourcery.com>
8676
8677 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Catch
8678 NOT_AVAILABLE_ERROR when evaluating the location expression.
8679
86802011-03-18 Pedro Alves <pedro@codesourcery.com>
8681
8682 * dwarf2loc.c (read_pieced_value): Handle get_frame_register_bytes
8683 returning that the register piece is unavailable/optimized out.
8684 (write_pieced_value): Handle get_frame_register_bytes returning
8685 that the register piece is unavailable/optimized out when doing a
8686 read-modify write of a bitfield.
8687 * findvar.c (value_from_register): Handle get_frame_register_bytes
8688 returning that the register piece is unavailable/optimized out.
8689 * frame.c (get_frame_register_bytes): New parameters `optimizedp'
8690 and `unavailablep'. Throw error on bad debug info. Use
8691 frame_register instead of frame_register_read, to fill in the new
8692 arguments.
8693 * frame.h (get_frame_register_bytes): New parameters `optimizedp'
8694 and `unavailablep'.
8695 * valops.c: (value_assign): Adjust, and handle
8696 get_frame_register_bytes failing.
8697 * spu-tdep.c: Include exceptions.h.
8698 (spu_software_single_step): Adjust, and handle
8699 get_frame_register_bytes failing.
8700 (spu_get_longjmp_target): Ditto.
8701 * gdbarch.sh (register_to_value): Change to return int. New
8702 parameters `optimizedp' and `unavailablep'.
8703 * gdbarch.h, gdbarch.c: Regenerate.
8704 * i386-tdep.c (i386_register_to_value): Adjust to new
8705 gdbarch_register_to_value interface.
8706 * i387-tdep.c (i387_register_to_value): Ditto.
8707 * i387-tdep.h (i387_register_to_value): Ditto.
8708 * alpha-tdep.c (alpha_register_to_value): Ditto.
8709 * ia64-tdep.c (ia64_register_to_value): Ditto.
8710 * m68k-tdep.c (m68k_register_to_value): Ditto.
8711 * mips-tdep.c (mips_register_to_value): Ditto.
8712 * rs6000-tdep.c (rs6000_register_to_value): Ditto.
8713
0fdb4f18
PA
87142011-03-18 Pedro Alves <pedro@codesourcery.com>
8715
8716 * findvar.c (value_of_register): Mark the value as unavailable, if
8717 the register is unavailable.
8718 * frame.h (frame_register_unwind): New `unavailablep' parameter.
8719 (frame_register): New `unavailablep' parameter.
8720 (frame_register_read): Update comment.
8721 * frame.c (frame_register_unwind): New `unavailablep' parameter.
8722 Set it if the register is unavailable. If the register is
8723 unavailable, clear the output buffer.
8724 (frame_register): New `unavailablep' parameter. Pass it down.
8725 (frame_unwind_register): Adjust.
8726 (put_frame_register): Adjust.
8727 (frame_register_read): Adjust. Also return false if the register
8728 is not available.
8729 (frame_register_unwind_location): Adjust.
8730 * sentinel-frame.c (sentinel_frame_prev_register): If the register
8731 is unavailable, mark the value accordingly.
8732 * stack.c (frame_info): Handle unavailable registers.
8733
e69aa73e
PA
87342011-03-18 Pedro Alves <pedro@codesourcery.com>
8735
8736 * mi/mi-main.c (register_changed_p): Handle REG_UNAVAILABLE, and
8737 simplify, using regcache_cooked_read.
8738
05d1431c
PA
87392011-03-18 Pedro Alves <pedro@codesourcery.com>
8740
8741 * regcache.h (regcache_raw_read, regcache_raw_read_signed)
8742 (regcache_raw_read_unsigned, regcache_raw_read_signed)
8743 (regcache_raw_read_unsigned, regcache_raw_read_part)
8744 (regcache_cooked_read, regcache_cooked_read_signed)
8745 (regcache_cooked_read_unsigned, regcache_cooked_read_part)
8746 (regcache_cooked_read_ftype): Change return to enum
8747 register_status.
8748 * regcache.c: Include exceptions.h
8749 (regcache_save): Adjust to handle REG_UNAVAILABLE registers.
8750 (do_cooked_read): Change return to enum register_status. Always
8751 forward to regcache_cooked_read.
8752 (regcache_raw_read): Change return to enum register_status. If
8753 the register is not REG_VALID, memset the buffer. Return the
8754 register's status.
8755 (regcache_raw_read_signed): Handle non-REG_VALID registers and
8756 return the register's status.
8757 (regcache_raw_read_unsigned): Ditto.
8758 (regcache_cooked_read): Change return to enum register_status.
8759 Assert that with read-only regcaches, the register's status must
8760 be known. If the regcache is read-only, and the register is not
8761 REG_VALID, memset the buffer. Return the register's status.
8762 (regcache_cooked_read_signed): Change return to enum
8763 register_status. Handle non-REG_VALID registers and return the
8764 register's status.
8765 (regcache_cooked_read_unsigned): Change return to enum
8766 register_status. Handle non-REG_VALID registers and return the
8767 register's status.
8768 (regcache_xfer_part, regcache_raw_read_part)
8769 (regcache_cooked_read_part): Change return to enum
8770 register_status. Return the register's status.
8771 (regcache_read_pc): Throw NOT_AVAILABLE_ERROR if the register is
8772 unavailable.
8773 (regcache_dump): Handle unavailable cooked registers.
8774 * frame.c (do_frame_register_read): Adjust interface to match
8775 regcache_cooked_read_ftype.
8776 * gdbarch.sh (pseudo_register_read): Change return to enum
8777 register_status.
8778 * gdbarch.h, gdbarch.c: Regenerate.
8779
8780 * i386-tdep.h (i386_pseudo_register_read): Change return to enum
8781 register_status.
8782 * i386-tdep.c (i386_pseudo_register_read): Change return to enum
8783 register_status. If reading a raw register indicates the raw
8784 register is not valid, return the raw register's status,
8785 otherwise, return REG_VALID.
8786 * amd64-tdep.c (amd64_pseudo_register_read): Change return to enum
8787 register_status. Handle non-REG_VALID raw registers and return
8788 the register's status.
8789 * arm-tdep.c (arm_neon_quad_read)
8790 (arm_pseudo_read): Change return to enum register_status. Handle
8791 non-REG_VALID raw registers and return the register's status.
8792 * avr-tdep.c (avr_pseudo_register_read): Ditto.
8793 * frv-tdep.c (frv_pseudo_register_read): Ditto.
8794 * h8300-tdep.c (h8300_pseudo_register_read): Ditto.
8795 * hppa-tdep.c (hppa_pseudo_register_read): Ditto.
8796 * m32c-tdep.c (m32c_move_reg_t): Change return to enum
8797 register_status.
8798 (m32c_raw_read, m32c_raw_write, m32c_banked_read)
8799 (m32c_banked_write, m32c_sb_read, m32c_sb_write, m32c_part_read)
8800 (m32c_part_write, m32c_cat_read, m32c_cat_write)
8801 (m32c_r3r2r1r0_read, m32c_r3r2r1r0_write)
8802 (m32c_pseudo_register_read): Change return to enum
8803 register_status. Adjust.
8804 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Change return to
8805 enum register_status. Return the register's status.
8806 * mep-tdep.c (mep_pseudo_cr32_read): Change return to enum
8807 register_status. Return the register's status.
8808 (mep_pseudo_cr64_read, mep_pseudo_register_read): Ditto.
8809 * mips-tdep.c (mips_pseudo_register_read): Ditto.
8810 * mt-tdep.c (mt_pseudo_register_read): Ditto.
8811 * rs6000-tdep.c (move_ev_register_func): New typedef.
8812 (e500_move_ev_register): Use it. Change return to enum
8813 register_status. Return the register's status.
8814 (do_regcache_raw_read): New function.
8815 (do_regcache_raw_write): New function.
8816 (e500_pseudo_register_read): Change return to enum
8817 register_status. Return the register's status. Use
8818 do_regcache_raw_read.
8819 (e500_pseudo_register_write): Adjust. Use do_regcache_raw_write.
8820 (dfp_pseudo_register_read): Change return to enum register_status.
8821 Return the register's status.
8822 (vsx_pseudo_register_read): Ditto.
8823 (efpr_pseudo_register_read): Ditto.
8824 (rs6000_pseudo_register_read): Ditto.
8825 * s390-tdep.c (s390_pseudo_register_read): Change return to enum
8826 register_status. Return the register's status.
8827 * sh64-tdep.c (pseudo_register_read_portions): New function.
8828 (sh64_pseudo_register_read): Change return to enum
8829 register_status. Use pseudo_register_read_portions. Return the
8830 register's status.
8831 * ia64-tdep.c (ia64_pseudo_register_read): Change return to enum
8832 register_status. Return the register's status.
8833 * sh-tdep.c (pseudo_register_read_portions): New function.
8834 (sh_pseudo_register_read): Change return to enum register_status.
8835 Use pseudo_register_read_portions. Return the register's status.
8836 * sparc-tdep.c (sparc32_pseudo_register_read): Change return to
8837 enum register_status. Return the register's status.
8838 * sparc64-tdep.c (sparc64_pseudo_register_read): Ditto.
8839 * spu-tdep.c (spu_pseudo_register_read_spu)
8840 (spu_pseudo_register_read): Ditto.
8841 * xtensa-tdep.c (xtensa_register_read_masked)
8842 (xtensa_pseudo_register_read): Ditto.
8843 * bfin-tdep.c (bfin_pseudo_register_read): Ditto.
8844
e10abd8f
PM
88452011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
8846
8847 * python/py-value.c (valpy_getitem): Fix formatting of error function
8848 call.
8849
7ea6d463
PM
88502011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
8851
8852 ARI fixes: Add missing internationalization markups throughout
8853 C source files.
8854 * darwin-nat-info.c: Ditto.
8855 * record.c: Ditto.
8856 * remote.c: Ditto.
8857 * mi/mi-main.c: Ditto.
8858
001083c6
PM
88592011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
8860
8861 ARI fixes: Add missing internationalization markups throughout
8862 yacc files.
8863 * c-exp.y: Ditto.
8864 * cp-name-parser.y: Ditto.
8865 * f-exp.y: Ditto.
8866 * m2-exp.y: Ditto.
8867 * objc-exp.y: Ditto.
8868 * p-exp.y: Ditto.
8869
4f1cdeec
PM
88702011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
8871
8872 ARI fixes: Messages should have no trailing new lines.
8873 * darwin-nat.c (mach_check_error): Remove trailing new line from
8874 warning function call message.
8875 * record.c (bfdcore_read): Idem for error call.
8876
28e698f1
PM
88772011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
8878
8879 * common/signals.c (target_signal_from_host): Add _ markup to error
8880 function call message.
8881 (target_signal_to_host): Add _ markup and remove trailing new line
8882 from warning call message.
8883 (target_signal_from_command): Add _ markup to error function call
8884 message.
8885
99c3dc11
PM
88862011-03-18 Phil Muldoon <pmuldoon@redhat.com>
8887
f33edef8 8888 PR python/12149
99c3dc11
PM
8889
8890 * python/python.c (gdbpy_write): Accept a stream argument and
8891 operate to the appropriate stream.
8892 (gdbpy_flush): Likewise.
8893 (_initialize_python): Add stream constants.
8894 (finish_python_initialization): Add GdbOutputErrorFile class.
8895
c20800be
KY
88962011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
8897
8898 * MAINTAINERS: Add myself as a write-after-approval maintainer.
8899
f4a1794a
KY
89002011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
8901
8902 * amd64-tdep.c (amd64_relocate_instruction): Fix ordering of arguments
f33edef8
PP
8903 to store_signed_integer. Add debug message when relocating CALL
8904 instructions. Fix formatting of debug message.
8905 * i386-tdep.c (i386_relocate_instruction): Ditto.
f4a1794a 8906
d4862372
JB
89072011-03-17 Joel Brobecker <brobecker@gnat.com>
8908
8909 * target.h (struct target_ops): Remove to_lookup_symbol field.
8910 (target_lookup_symbol): Delete macro.
8911 * target.c (nosymbol, debug_to_lookup_symbol): Delete.
8912 (update_current_target, setup_target_debug): Remove handling
8913 of to_lookup_symbol target_ops field.
8914 * ada-tasks.c (get_known_tasks_addr): Remove use of
8915 target_lookup_symbol.
8916 * coffread.c (coff_symtab_read): Likewise.
8917 * dbxread.c (read_dbx_symtab): Ditto.
8918
d645e32e
JB
89192011-03-17 Joel Brobecker <brobecker@gnat.com>
8920
8921 PR gdb/12116:
8922 * configure.ac: Add getthrds declaration check.
8923 * configure, config.in: Regenerate.
8924 * aix-thread.c (getthrds): Declare only if not already declared
8925 in procinfo.h. More declaration out of get_signaled_thread to
8926 global scope.
8927
29703da4
PM
89282011-03-17 Phil Muldoon <pmuldoon@redhat.com>
8929
8930 * python/py-symtab.c: Populate symtab_object_methods,
8931 sal_object_methods.
8932 (stpy_is_valid): New function.
8933 (salpy_is_valid): Ditto.
8934 * python/py-symbol.c: Declare symbol_object_methods. Populate.
8935 (sympy_is_valid): New function.
8936 * python/py-objfile.c: Declare objfile_object_methods. Populate.
8937 (objfpy_is_valid): New function.
8938 * python/py-inferior.c: Populate inferior_object_methods.
8939 (infpy_is_valid): New function.
8940 * python/py-infthread.c: Populate thread_object_methods.
8941 (thpy_is_valid): New function.
8942 * python/py-block.c: Declare block_object_methods. Populate. Declare
8943 block_iterator_object_methods. Populate.
8944 (blpy_is_valid): New function.
8945 (blpy_iter_is_valid): Ditto.
8946
c00f8484
KS
89472011-03-16 Keith Seitz <keiths@redhat.com>
8948
8949 * linespec.c (find_methods): Canonicalize NAME before looking
8950 up the symbol.
8951 (name_end): New function.
8952 (keep_name_info): New function.
8953 (decode_line_1): Use keep_name_info.
8954 (decode_compound): Likewise.
8955 * cli/cli-utils.h (remove_trailing_whitespace): New function.
8956 * cli/cli-utils.c (remove_trailing_whitespace): Likewise.
8957
8958 PR c++/12273
8959 * linespec.c (locate_first_half): Keep overload information, too.
8960 (decode_compound): Use a string to represent break characters
8961 to escape the loop.
8962 If P points to a break character, do not increment it.
8963 For C++ and Java, keep overload information and relevant keywords.
8964 If we cannot find a symbol, search the minimal symbols.
8965
8966 PR c++/11734
8967 * linespec.c (decode_compound): Rename SAVED_ARG to
8968 THE_REAL_SAVED_ARG.
8969 Make a copy of THE_REAL_SAVED_ARG in SAVED_ARG and strip
8970 single-quotes.
8971 Pass a valid block to lookup_symbol.
8972 (lookup_prefix_sym): Likewise.
8973 (find_method): Construct search name based on SYM_CLASS instead
8974 of SAVED_ARG.
8975 * psymtab.c (lookup_partial_symbol): Add language parameter.
8976 (lookup_symbol_aux_psymtabs): Likewise.
8977 Don't assume that the psymtab we found was the right one. Search
8978 for the desired symbol in the symtab to be certain.
8979 (psymtab_search_name): New function.
8980 (lookup_partial_symbol): Use psymtab_search_name.
8981 Add language parameter.
8982 (read_symtabs_for_function): Add language parameter and pass to
8983 lookup_partial_symbol.
8984 (find_symbol_file_from_partial): Likewise.
8985
c91513d8
PP
89862011-03-16 Paul Pluzhnikov <ppluzhnikov@google.com>
8987
8988 PR gdb/12528
8989 * dwarf2read.c (noop_record_line): New function.
8990 (dwarf_decode_lines): Ignore line tables for GCd functions.
8991
b37520b6
PM
89922011-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
8993
8994 Fix ARI warnings about new lines at the end of messages, which
8995 are unneeded as there is a new line added at the end of the message
8996 automatically.
8997 * darwin-nat.c (darwin_stop_inferior): Ditto.
8998 * dec-thread.c (dec_thread_get_ada_task_ptid): Ditto.
8999 * dfp.c (decimal_to_number): Ditto.
9000 * exec.c (print_section_info): Ditto.
9001 * i386-darwin-nat.c (darwin_set_sstep): Ditto.
9002 * osdata.c (get_osdata): Ditto.
9003 * record.c (bfdcore_write): Ditto.
9004 * remote-mips.c (mips_readchar): Ditto.
9005 * remote.c (read_ptid): Ditto.
9006 * ser-mingw.c (ser_windows_raw): Ditto.
9007 * tracepoint.c (add_local_symbols): Ditto.
9008 * windows-nat.c (fake_create_process): Ditto.
9009
b08ee6a2
TT
90102011-03-16 Tom Tromey <tromey@redhat.com>
9011
9012 * tracepoint.c (stop_tracing): Don't declare.
9013 * event-top.c (after_char_processing_hook): Add `(void)'.
9014
9a6f1302
PM
90152011-03-16 Phil Muldoon <pmuldoon@redhat.com>
9016
9017 * NEWS: Add Parameter sub-classing description.
9018
7ceb86b1
KT
90192011-03-16 Kai Tietz <ktietz@redhat.com>
9020
9021 * MAINTAINERS: Update my e-mail address.
9022
efeff6cf
AT
90232011-03-15 Andreas Tobler <andreast@fgznet.ch>
9024
9025 * MAINTAINERS: Add myself for write after approval privileges.
9026
681c238c
MS
90272011-03-15 Michael Snyder <msnyder@vmware.com>
9028
f3df5b08
MS
9029 * frame.c (find_frame_sal): Assert sym is not null.
9030
13f6513c
MS
9031 * dbxread.c (process_one_symbol): Assert 'name' is not null.
9032
50412521
MS
9033 * objc-lang.c (selectors_info): Check strchr for null result.
9034
681c238c
MS
9035 * stabsread.c (define_symbol): Guard against bad stabstring input.
9036
6ced1581
PM
90372011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
9038
9039 Remove trailing spaces and tabulations from pascal language
9040 support sources.
9041 p-exp.y: Ditto.
9042 p-lang.c: Ditto.
9043 p-lang.h: Ditto.
9044 p-valprint.c: Ditto.
9045
9373cf26
JK
90462011-03-15 Jan Kratochvil <jan.kratochvil@redhat.com>
9047
9048 * dwarf2read.c (dwarf2_get_pc_bounds): Require HIGH strictly higher
9049 than LOW. Comment it.
9050 (read_partial_die): Call complaint for inappropriate zero LOWPC or
9051 HIGHPC not strictly higher than LOWPC.
9052
9a1edae6
PM
90532011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
9054
9055 Fix formatting of function declarations returning a pointer in
9056 previous commit.
9057 * varobj.c (varobj_add_child): Ditto.
9058 * hppa-tdep.h (hppa_init_objfile_priv_data): Ditto.
9059 * inferior.h (get_displaced_step_closure_by_addr): Ditto.
9060
24e9cda0
UW
90612011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
9062
9063 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Add support
9064 for the "generic" vector ABI used with GCC 4.3 and later.
9065 (ppc64_sysv_abi_return_value): Likewise.
9066
90672011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
81b4675a
UW
9068
9069 * infcall.c (call_function_by_hand): Function return value is
9070 always a non_lval, even when using struct_return.
9071
c9174737
PA
90722011-03-15 Pedro Alves <pedro@codesourcery.com>
9073
9074 * printcmd.c (ALL_DISPLAYS_SAFE): New.
9075 (map_display_numbers): New.
9076 (do_delete_display): New.
9077 (undisplay_command): Use map_display_numbers.
9078 (do_enable_disable_display): New.
9079 (enable_disable_display_command): New function.
9080 (enable_display): Delete.
9081 (enable_display_command): New.
9082 (disable_display_command): Reimplement.
9083 (_initialize_printcmd): Adjust "enable display" command to use
9084 `enable_display_command' as callback.
9085
350c6c65
PM
90862011-03-14 Phil Muldoon <pmuldoon@redhat.com>
9087
9088 * NEWS: Add Python breakpoint 'stop' operation.
9089
824446ad
PM
90902011-03-14 Phil Muldoon <pmuldoon@redhat.com>
9091
9092 * NEWS: Delete duplicate entry. Fix typo.
9093
2021ad3a
PM
90942011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
9095
9096 Fix ARI warning about function names in first column.
9097 Put prototype declaration on same line as return type.
9098 * objc-exp.y: Ditto.
9099 * p-exp.y: Ditto.
9100 * python/py-stopevent.h: Ditto.
9101 For long function names, split parameters to
9102 allow function name on same line as return type.
9103 * solib-pa64.c: Ditto.
9104 * varobj.c: Ditto.
9105 * varobj.h: Ditto.
9106 For long function declaration, use single line.
9107 * hppa-tdep.h: Ditto.
9108 * inferior.h: Ditto.
9109
7371cf6d
PM
91102011-03-14 Phil Muldoon <pmuldoon@redhat.com>
9111
9112 * python/python.h: Declare gdbpy_should_stop and
9113 gdbpy_breakpoint_has_py_cond.
9114 * python/python.c: Add python.h to includes. Remove python.h from
9115 HAVE_PYTHON definition
9116 (gdbpy_should_stop): New dummy function.
9117 (gdbpy_breakpoint_has_py_cond): New dummy function.
9118 * python/py-breakpoint.c (bppy_init): Rewrite to allow
9119 sub-classing capabilities.
9120 (gdbpy_should_stop): New function.
9121 (gdbpy_breakpoint_has_py_cond): New function.
9122 (local_setattro): New function.
9123 * breakpoint.c (condition_command): Add check for Python 'stop'
9124 operation.
9125 (bpstat_check_breakpoint_conditions): Execute Python 'stop'
9126 operation function as part of stop/continue tests.
9127
37b50a69
TT
91282011-03-14 Tom Tromey <tromey@redhat.com>
9129
9130 PR gdb/12576:
9131 * dwarf2loc.c (dwarf_expr_dwarf_call): Remove 'return'.
9132 (needs_frame_dwarf_call): Likewise.
9133
eeae04df
PM
91342011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
9135
9136 Fix ARI warning about functions without parameters that do not
9137 use (void).
9138 * breakpoint.c (all_tracepoints): Replace () by (void).
9139 * f-exp.y (match_string_literal): Ditto.
9140 (yylex): Ditto.
9141 * m2-exp.y (yylex): Ditto.
9142 * mep-tdep.c (current_me_module): Ditto.
9143 (current_options): Ditto.
9144 (current_cop_data_bus_width): Ditto.
9145 (current_cr_names): Ditto.
9146 (current_cr_is_float): Ditto.
9147 (current_ccr_names): Ditto.
9148 * objc-exp.y (yylex): Ditto.
9149 * p-exp.y (yylex): Ditto.
9150 * remote.c (send_interrupt_sequence): Ditto.
9151 * tracepoint.c (current_trace_status): Ditto.
9152 * python/py-evts.c (gdbpy_initialize_py_events): Ditto.
9153 * python/py-prettyprint.c (push_dummy_python_frame): Ditto.
9154
6dc3565d
MS
91552011-03-11 Michael Snyder <msnyder@vmware.com>
9156
1427fe5e
MS
9157 * cli/cli-decode.h (CMD_LIST_AMBIGUOUS): Define.
9158 * cli/cli-decode.c (lookup_cmd_1): Use CMD_LIST_AMBIGUOUS.
9159 (lookup_cmd): Test for CMD_LIST_AMBIGUOUS.
9160 * completer.c (complete_line_internal): Use CMD_LIST_AMBIGUOUS.
9161 * top.c (set_verbose): Use CMD_LIST_AMBIGUOUS.
9162
60bc018f
MS
9163 * event-loop-c (delete_async_signal_handler): Assert prev_ptr.
9164 (delete_async_event_handler): Ditto.
9165
f3be5b64
MS
9166 * python/py-breakpoint.c (bppy_set_condition): Stop memory leak.
9167
4c2d5724
MS
9168 * python/py-breakpoint.c (bppy_get_commands): Fix memory leak.
9169
6dc3565d
MS
9170 * top.c (set_verbose): Assert showcmd was found.
9171
4e6ca6d5
MG
91722011-03-11 Maxim Grigoriev <maxim2405@gmail.com>
9173
9174 * xtensa-tdep.c (warning_once): Correct style issues.
9175
815a83e4
YQ
91762011-03-11 Yao Qi <yao@codesourcery.com>
9177
9178 * arm-tdep.c (copy_ldr_str_ldrb_strb): Remove redundant statements.
9179
f2eb0bc8
AS
91802011-03-11 Andreas Schwab <schwab@redhat.com>
9181
9182 * common/aclocal.m4: Remove.
9183
b801de47
MG
91842011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
9185
9186 * xtensa-tdep.c (windowing_enabled): Remove inline attribute.
9187 (xtensa_write_register, xtensa_read_register): Likewise.
9188 (xtensa_hextochar): Removed.
9189 (xtensa_init_reggroups): Replace xtensa_hextochar () by explicit code.
9190
dbab50de
MG
91912011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
9192
9193 * xtensa-tdep.c (xtensa_c0reg_t): Update comments.
c2a6b390 9194 (xtensa_call0_frame_cache_t): Update comments. New fields added.
dbab50de
MG
9195 (xtensa_alloc_frame_cache): Add initialization for new fields.
9196 (xtensa_frame_cache): Change the way how call0_frame_cache () is called.
9197 (warning_once): New function.
9198 (xtensa_insn_kind): New item c0opc_and.
9199 (call0_classify_opcode): Add the case for AND instruction.
c2a6b390
MG
9200 (call0_track_op): Change arguments. New local variable litbase.
9201 Add the case to handle c0opc_and. Update algorithms for c0opc_mov,
9202 c0opc_l32r, c0opc_s32i to take into account dynamic stack adjustments
9203 in the prologue.
dbab50de 9204 Add cases for c0opc_l32e, c0opc_s32e, c0opc_rfwo, c0opc_rfwu.
c2a6b390 9205 (call0_analyze_prologue): Update the comments. Change arguments.
dbab50de
MG
9206 Add the variety of updates to handle extended prologues, which now can
9207 conduct dynamic stack adjustments.
9208 (call0_frame_cache): Likewise.
9209 (xtensa_skip_prologue): Update call0_analyze_prologue () function call.
9210 (xtensa_gdbarch_init): Initialize xtensa_session_once_reported.
9211
b2c04452
MS
92122011-03-10 Michael Snyder <msnyder@vmware.com>
9213
f8f67713
MS
9214 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
9215 (cmd_qtframe): Ditto.
9216 (cmd_qtbuffer): Ditto.
9217 (cmd_bigqtbuffer): Ditto.
9218
197f0a60
TT
92192011-03-10 Tom Tromey <tromey@redhat.com>
9220
9221 * tracepoint.c (trace_actions_command): Update.
9222 * thread.c (thread_apply_command): Update.
9223 * reverse.c (delete_bookmark_command): Update.
9224 (bookmarks_info): Update.
9225 * printcmd.c (undisplay_command): Update.
9226 * memattr.c (mem_enable_command): Update.
9227 (mem_disable_command): Update.
9228 (mem_delete_command): Update.
9229 * inferior.c (detach_inferior_command): Update.
9230 (kill_inferior_command): Update.
9231 (remove_inferior_command): Update.
9232 * cli/cli-utils.h (struct get_number_or_range_state): New.
9233 (init_number_or_range): Declare.
9234 (get_number_or_range): Update.
9235 * cli/cli-utils.c (init_number_or_range): New function.
9236 (get_number_or_range): Change 'pp' parameter to 'state'. Remove
9237 static variables.
9238 (number_is_in_list): Update.
9239 * breakpoint.h (get_tracepoint_by_number): Update.
9240 * breakpoint.c (map_breakpoint_numbers): Update for change to
9241 get_number_or_range.
9242 (find_location_by_number): Use get_number, not
9243 get_number_or_range.
9244 (trace_pass_set_count): New function.
9245 (trace_pass_command): Update for change to get_number_or_range.
9246 Rework loop logic.
9247 (get_tracepoint_by_number): Remove 'multi_p' parameter; add
9248 'state' parameter.
9249
ecec24e6
PM
92502011-03-10 Phil Muldoon <pmuldoon@redhat.com>
9251
9252 * python/py-param.c (add_setshow_generic): Add set/show callback
9253 parameters. Register Python object context.
9254 (get_show_value): New function.
9255 (get_set_value): New function.
9256 (call_doc_function): New function.
9257 (get_doc_string): Move behind get_show_value/get_set_value.
9258
6d6c6b1f
JK
92592011-03-10 Andreas Tobler <andreast-list@fgznet.ch>
9260
9261 * fbsd-nat.c (fbsd_make_corefile_notes): Constify local `fname'.
9262
68d6df83
MG
92632011-03-09 Maxim Grigoriev <maxim2405@gmail.com>
9264
dbab50de 9265 * xtensa-tdep.c (xtensa_read_register): Add comment.
68d6df83
MG
9266 (xtensa_write_register): Likewise.
9267 (xtensa_hextochar): Add comment and update to match coding conventions.
9268 (xtensa_frame_cache, xtensa_return_value): Follow coding conventions.
9269 (execute_l32e, execute_s32e, execute_code): Update comments.
9270 (xtensa_exception_handler_t): Update to match coding conventions.
9271 (xtensa_insn_kind): Likewise.
9272
85c9d6a6
MS
92732011-03-09 Michael Snyder <msnyder@vmware.com>
9274
9275 * mi-cmd-disas.c (mi_cmd_disassemble): Fix memory leak.
9276
91495617
PA
92772011-03-09 Pedro Alves <pedro@codesourcery.com>
9278
9279 * nto-tdep.c (nto_find_and_open_solib): Constify local `base'.
9280
eb8c0621
TT
92812011-03-09 Tom Tromey <tromey@redhat.com>
9282
9283 * thread.c (restore_selected_frame): Handle frame_level == -1.
9284 (make_cleanup_restore_current_thread): Use
9285 get_selected_frame_if_set.
9286 * frame.h (get_selected_frame_if_set): Declare.
9287 * frame.c (get_selected_frame_if_set): New function.
9288
9f37bbcc
PA
92892011-03-09 Pedro Alves <pedro@codesourcery.com>
9290
9291 * cli/cli-cmds.c (shell_escape): Use lbasename.
9292 * coffread.c (coff_start_symtab): Constify parameter.
9293 (complete_symtab): Constify `name' parameter.
9294 (coff_symtab_read): Constify `filestring' local.
9295 (coff_getfilename): Constify return and `result' local.
9296 Use lbasename.
9297 * fbsd-nat.c (fbsd_make_corefile_notes): Use lbasename.
9298 * linux-fork.c (info_checkpoints_command): Use lbasename.
9299 * linux-nat.c (linux_nat_make_corefile_notes): Use lbasename.
9300 * minsyms.c (lookup_minimal_symbol): Use lbasename.
9301 * nto-tdep.c (nto_find_and_open_solib): Use lbasename.
9302 * procfs.c (procfs_make_note_section): Use lbasename.
9303 * tui/tui-io.c (printable_part): Constity return and parameter.
9304 Use lbasename.
9305 (print_filename): Constify parameters, and local `s'.
9306 (tui_rl_display_match_list): Constify local `temp'.
9307
f8de3c55
JK
93082011-03-09 Jan Kratochvil <jan.kratochvil@redhat.com>
9309
9310 Revert:
9311 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9312 Fix DWARF-3+ DW_AT_accessibility default assumption.
9313 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
9314 cu->header.version >= 3.
9315
d9837b00
YQ
93162011-03-09 Yao Qi <yao@codesourcery.com>
9317
9318 * common/Makefile.in: Remove.
9319 * common/configure: Remove.
9320 * common/configure.ac: Remove.
9321
e637a4f5
YQ
93222011-03-09 Yao Qi <yao@codesourcery.com>
9323
9324 Revert:
9325 2011-02-11 Yao Qi <yao@codesourcery.com>
9326
9327 * common/Makefile.in: Add copyright header.
9328
9329 2011-02-11 Yao Qi <yao@codesourcery.com>
9330
9331 * Makefile.in: Remove signals.o from COMMON_OBS. Link
9332 libcommon.a.
9333 * configure.ac: Add common to sub dir.
9334 * configure: Regenerate.
9335
f976a05d
MG
93362011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
9337
9338 * xtensa-tdep.c (call0_ret): New function.
9339 (xtensa_skip_prologue): Speed up analysis.
9340
57041825
MG
93412011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
9342
9343 * xtensa-tdep.c (xtensa_register_reggroup_p): Count in all registers
9344 while executing MI command -data-list-changed-registers.
9345
08b9c608
MG
93462011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
9347
9348 * xtensa-tdep.c (xtensa_read_register): New function.
9349 (xtensa_write_register): New function.
9350 (xtensa_find_register_by_name): New function.
9351 (xtensa_windowed_frame_cache): Update comments in type description.
9352 (xtensa_frame_cache): Likewise.
9353 (xtensa_window_interrupt_insn): New function.
9354 (xtensa_frame_cache): Add analysis for Xtensa Window Exception frames.
9355 (xtensa_insn_kind): Add new instructions.
9356 (rwx_special_register): New function.
9357 (call0_classify_opcode): Add new instructions to the analysis.
9358 (a0_saved, a7_saved, a11_saved): New variables.
9359 (a0_was_saved, a7_was_saved, a11_was_saved): New variables.
9360 (execute_l32e): New function.
9361 (execute_s32e): New function.
9362 (xtensa_exception_handler_t): New type.
9363 (execute_code): New function.
9364 (xtensa_window_interrupt_frame_cache): New function to conduct frame
9365 analysis for Xtensa Window Exception handlers.
9366
4d1acb11
MG
93672011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
9368
98689b25
MG
9369 * xtensa-tdep.c (TX_PS): New.
9370 (windowing_enabled): Update to count for Call0 ABI.
9371 (xtensa_hextochar): New.
9372 (xtensa_init_reggroups): Make algorithm generic.
9373 (xtensa_frame_cache): Use TX_PS on Tiny Xtensa.
9374
93752011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
9376
9377 * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): Update.
4d1acb11 9378
d3f323f3
MS
93792011-03-08 Michael Snyder <msnyder@vmware.com>
9380
3dcabaa8
MS
9381 * i386-tdep.c (i386_follow_jump): Check return value of
9382 target_read_memory.
9383 (i386_analyze_struct_return): Ditto.
9384 (i386_skip_probe): Ditto.
9385 (i386_match_insn): Ditto.
9386 (i386_skip_noop): Ditto.
9387 (i386_analyze_frame_setup): Ditto.
9388 (i386_analyze_register_saves): Ditto.
9389 (i386_skip_prologue): Ditto.
9390 (i386_skip_main_prologue): Ditto.
9391
13b3fd9b
MS
9392 * target.c (read_whatever_is_readable): Fix memory leak.
9393
d3f323f3
MS
9394 * i386-tdep.c (i386_process_record): Document fall through.
9395
421d5c74
JK
93962011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9397
9398 Fix DWARF-3+ DW_AT_accessibility default assumption.
9399 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
9400 cu->header.version >= 3.
9401
63154eca
PA
94022011-03-08 Pedro Alves <pedro@codesourcery.com>
9403
9404 * remote.c (remote_check_symbols): Skip if the target has no
9405 execution.
9406
f1a507a1
JB
94072011-03-08 Joel Brobecker <brobecker@adacore.com>
9408
9409 * target.c (read_whatever_is_readable): Reformat comment,
9410 with a minor typo fix. Minor reformatting of the code.
9411
36073a92
YQ
94122011-03-08 Yao Qi <yao@codesourcery.com>
9413
9414 * arm-tdep.c: Remove prototype declaration displaced_in_arm_mode.
9415 (displaced_read_reg): Add `dsc' parameter, remove `from' parameter.
9416 Use cached result instead of calling displaced_in_arm_mode again.
9417 (branch_write_pc, alu_write_pc, load_write_pc): Add `dsc' parameter.
9418 (displaced_write_reg, copy_preload, copy_preload_reg): Callers update.
9419 (cleanup_copro_load_store, copy_copro_load_store): Likewise.
9420 (cleanup_branch, copy_bx_blx_reg, copy_alu_imm): Likewise.
9421 (cleanup_alu_reg, copy_alu_reg, cleanup_alu_shifted_reg): Likewise.
9422 (copy_alu_shifted_reg, cleanup_load, cleanup_store): Likewise.
9423 (copy_extra_ld_st, copy_ldr_str_ldrb_strb): Likewise.
9424 (cleanup_block_load_all, cleanup_block_store_pc): Likewise.
9425 (cleanup_block_load_pc, copy_block_xfer): Likewise.
9426 * arm-linux-tdep.c (arm_linux_copy_svc): Callers update.
9427 (arm_catch_kernel_helper_return): Likewise.
9428 * gdb/arm-tdep.h : Update function declarations.
9429
d3f323f3 94302011-03-07 Michael Snyder <msnyder@vmware.com>
e6040cbd 9431
e0e40094
MS
9432 * dwarf2loc.c (indirect_pieced_value): Assert 'piece' not null.
9433
0b2381f5
MS
9434 * ser-unix.c (hardwire_get_tty_state): Stop memory leak.
9435
0350914a
MS
9436 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Free environment.
9437
69feea6f
MS
9438 * elfread.c (elf_symtab_read): Stop memory leak.
9439
e6040cbd
MS
9440 * main.c (captured_main): Fix memory leak.
9441
052874e8
AS
94422011-03-07 Andreas Schwab <schwab@linux-m68k.org>
9443
9444 * ada-lang.c (compare_names): Call is_name_suffix with string1
9445 instead of string2.
9446
b11896a5
TT
94472011-03-07 Tom Tromey <tromey@redhat.com>
9448
9449 * xcoffread.c (xcoff_sym_fns): Update.
9450 * symfile.h (struct sym_fns) <sym_read_psymbols>: New field.
9451 (enum symfile_add_flags) <SYMFILE_NO_READ>: New constant.
9452 * symfile.c (syms_from_objfile): Handle SYMFILE_NO_READ.
9453 (symbol_file_add_with_addrs_or_offsets): Likewise.
9454 (reread_symbols): Handle OBJF_PSYMTABS_READ.
9455 * somread.c (som_sym_fns): Update.
9456 * psymtab.h (require_partial_symbols): Declare.
9457 * psymtab.c (require_partial_symbols): New function.
9458 (ALL_OBJFILE_PSYMTABS_REQUIRED): New macro.
9459 (ALL_OBJFILE_PSYMTABS): Undef.
9460 (ALL_PSYMTABS): Move from psympriv.h.
9461 (lookup_partial_symtab, find_pc_sect_psymtab)
9462 (lookup_symbol_aux_psymtabs, relocate_psymtabs)
9463 (find_last_source_symtab_from_partial)
9464 (forget_cached_source_info_partial)
9465 (print_psymtab_stats_for_objfile, read_symtabs_for_function)
9466 (expand_partial_symbol_tables, read_psymtabs_with_filename)
9467 (map_symbol_names_psymtab, map_symbol_filenames_psymtab)
9468 (find_symbol_file_from_partial, map_matching_symbols_psymtab)
9469 (expand_symtabs_matching_via_partial, maintenance_info_psymtabs):
9470 Use ALL_OBJFILE_PSYMTABS_REQUIRED.
9471 * psympriv.h (ALL_PSYMTABS): Move to psymtab.c.
9472 * objfiles.h (OBJF_PSYMTABS_READ): New macro.
9473 * objfiles.c (objfile_has_partial_symbols): Handle lazily-read
9474 psymtabs.
9475 * mipsread.c (ecoff_sym_fns): Update.
9476 * machoread.c (macho_sym_fns): Update.
9477 * elfread.c (elf_symfile_read): Set up for lazy psymtab reading.
9478 (read_psyms): New function.
9479 (elf_sym_fns, elf_sym_fns_gdb_index): Update.
9480 (elf_sym_fns_lazy_psyms): New global.
9481 * dwarf2read.c (dwarf2_initialize_objfile): Don't call
9482 dwarf2_build_psymtabs.
9483 * dbxread.c (aout_sym_fns): Update.
9484 * coffread.c (coff_sym_fns): Update.
9485
fda326dd
TT
94862011-03-07 Tom Tromey <tromey@redhat.com>
9487
9488 * infrun.c (print_exited_reason): Include inferior id and pid in
9489 message.
9490
aeaec162
TT
94912011-03-07 Tom Tromey <tromey@redhat.com>
9492
9493 * target.h (struct target_ops) <to_has_execution>: Add ptid_t
9494 parameter.
9495 (target_has_execution_1): Update.
9496 (target_has_execution_current): Declare.
9497 (target_has_execution): Call target_has_execution_current.
9498 (default_child_has_execution): Update.
9499 * target.c (default_child_has_execution): Add 'the_ptid'
9500 parameter.
9501 (target_has_execution_1): Likewise.
9502 (target_has_execution_current): New function.
9503 (add_target): Update.
9504 (init_dummy_target): Update.
9505 * remote-m32r-sdi.c (m32r_has_execution): New function.
9506 (init_m32r_ops): Use it.
9507 * record.c (record_core_has_execution): Now static. Add
9508 'the_ptid' parameter.
9509 * inferior.c (have_live_inferiors): Don't save current thread.
9510 Use target_has_execution_1.
9511
08e14083
YQ
95122011-03-07 Yao Qi <yao@codesourcery.com>
9513
9514 * Makefile.in (aclocal_m4_deps): Remove gnulib/m4/memcmp.m4.
9515
c05d19c5
JB
95162011-03-07 Joel Brobecker <brobecker@adacore.com>
9517
9518 * elfread.c (elf_symtab_read): Minor reformatting.
9519
3e6ef9e4
JB
95202011-03-07 Joel Brobecker <brobecker@adacore.com>
9521
9522 * objc-lang.c (selectors_info): Minor reformatting.
9523
dbb8534f
JB
95242011-03-07 Joel Brobecker <brobecker@adacore.com>
9525
9526 * ada-lang.c (compare_names): Add FALLTHROUGH comment.
9527
dd70cc93
JB
95282011-03-07 Joel Brobecker <brobecker@adacore.com>
9529 Michael Snyder <msnyder@vmware.com>
9530
9531 * ada-valprint.c (ada_val_print_array): Move the declaration of
9532 "byte_order" and "elttype" inside the block where these variables
9533 are actually used. Remove some special handling for the case
9534 where "elttype" and "eltlen" are null. Replace by a comment
9535 and a couple of assertion checks.
9536
b27cf2b3
MS
95372011-03-05 Michael Snyder <msnyder@vmware.com>
9538
9539 * source.c (add_path): Replace semicolon at end of block.
9540 * dwarf2expr.c (execute_stack_op): Ditto.
9541
5387a0c6
MF
95422011-03-05 Mike Frysinger <vapier@gentoo.org>
9543
9544 * bfin-tdep.c: Include sim-regno.h and gdb/sim-bfin.h.
9545 * configure.tgt (bfin-*-*linux*): Define gdb_sim.
9546 (bfin-*-*): Likewise.
9547
e3aa49af
MS
95482011-03-05 Michael Snyder <msnyder@vmware.com>
9549
82ae4854
MS
9550 * dwarf2expr.c (execute_stack_op): Delete superfluous semicolon.
9551 * mdebugread.c (parse_symbol): Ditto.
9552 * parse.c (parse_exp_in_context): Ditto.
9553 * source.c (add_path): Ditto.
9554 * utils.c (gnu_debuglink_crc32): Ditto.
9555 * varobj.c (variable_language): Ditto.
9556
e3aa49af
MS
9557 * linux-tdep.c (linux_get_siginfo_type): Stop memory leak.
9558
154f592e
MS
95592011-03-04 Michael Snyder <msnyder@vmware.com>
9560
da3ecdc6
MS
9561 * linux-fork.c (inferior_call_waitptid): Fix copy/paste error.
9562
9cc89665
MS
9563 * symfile.c (simple_overlay_update): Check for null return value
9564 from lookup_minimal_symbol.
9565
154f592e
MS
9566 * xml-syscall.c (syscall_start_syscall): Assert name is non null.
9567
63ffa6ee
TJB
95682011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
9569
9570 * eval.c (parse_and_eval_address_1): Remove function.
9571 * linespec.c (decode_indirect): Call parse_to_comma_and_eval
9572 instead of parse_and_eval_address_1.
9573 * value.h (parse_and_eval_address_1): Remove prototype.
9574
a17d146e
MS
95752011-03-04 Michael Snyder <msnyder@vmware.com>
9576
9577 * remote.c (putpkt_binary): Document that case stmt falls through.
9578
1a6a67de
TJB
95792011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
9580
9581 * breakpointc (print_it_typical): Move NULL check from here...
9582 (print_bp_stop_message): ... to here.
9583
488919c4
MS
95842011-03-04 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
9585
9586 * breakpoint.c (enable_command): Use break instead of continue,
9587 and fill in a missing break.
9588 (disable_command): Ditto.
9589
1e182ce8
UW
95902011-03-04 Ulrich Weigand <ulrich.weigand@linaro.org>
9591
9592 * inflow.c (terminal_init_inferior_with_pgrp): Copy ttystate.
9593 (terminal_save_ours): Remove misleading comment.
9594 (inflow_inferior_data_cleanup): Free ttystate.
9595 (inflow_inferior_exit): Likewise.
9596 (copy_terminal_info): Copy ttystate.
9597
9598 * serial.c (serial_copy_tty_state): New function.
9599 * serial.h (serial_copy_tty_state): Add prototype.
9600 (struct serial_ops): Add copy_tty_state callback.
9601 * ser-base.c (ser_base_copy_tty_state): New function.
9602 * ser-base.h (ser_base_copy_tty_state): Add prototype.
9603 * ser-go32.c (dos_copy_tty_state): New function.
9604 (dos_ops): Install copy_tty_state callback.
9605 * ser-mingw.c (_initialize_ser_windows): Likewise.
9606 * ser-pipe.c (_initialize_ser_pipe): Likewise.
9607 * ser-unix.c (hardwire_copy_tty_state): New function.
9608 (_initialize_ser_hardwire): Install it.
9609
b2c5f112
MS
96102011-03-04 Michael Snyder <msnyder@vmware.com>
9611
2abae994
MS
9612 * breakpoint.c (create_breakpoint): Add missing break statement.
9613
7f5936f9
MS
9614 Reverting this patch:
9615 * infcall.c (call_function_by_hand): Add break statements for lint.
9616
b2c5f112
MS
9617 Reverting this patch:
9618 * cli/cli-script.c (script_from_file): Add break for lint.
9619
42b1321c
MS
96202011-03-04 Michael Snyder <msnyder@vmware.com>
9621
9622 * solib.c (reload_shared_libraries_1): Close memory leak.
9623
3e2a0cee
TT
96242011-03-03 Tom Tromey <tromey@redhat.com>
9625
9626 PR gdb/12538:
9627 * dwarf2read.c (process_psymtab_comp_unit): Handle case where
9628 DW_STRING is NULL.
9629
58397cb7
MS
96302011-03-03 Michael Snyder <msnyder@vmware.com>
9631
2e3fd767
MS
9632 * remote-fileio.c (remote_fileio_func_fstat): Initialize all
9633 fields of struct 'st' to zero.
9634
58397cb7
MS
9635 * tui/tui-winsource.c (tui_update_source_window_as_is): Initialize
9636 sal.pspace before calling set_current_source_symtab_and_line.
9637
ced54c8f
YQ
96382011-03-03 Yao Qi <yao@codesourcery.com>
9639
9640 * Makefile.in (configure-common): Remove. Let Makefile
9641 in dir common to rebuild itself.
9642 (common/Makefile): Likewise.
9643
3351ea09
JB
96442011-03-03 Joel Brobecker <brobecker@adacore.com>
9645
9646 * utils.c (parse_escape): Add i18n markup in error message.
9647
bf9f652a
YQ
96482011-03-03 Yao Qi <yao@codesourcery.com>
9649
9650 * gdb/arm-tdep.c (shifted_reg_val): Replace magic number 15 with
9651 ARM_PC_REGNUM.
9652 (thumb_get_next_pc_raw, arm_get_next_pc_raw): Likewise.
9653 (displaced_write_reg, displaced_read_reg): Likewise.
9654 (copy_ldr_str_ldrb_strb, cleanup_block_load_all): Likewise.
9655 (cleanup_block_load_pc, copy_block_xfer): Likewise.
9656 (cleanup_branch): Replace magic number 14 and 15 with
9657 ARM_LR_REGNUM and ARM_PC_REGNUM respectively.
9658
d42de051
MS
96592011-03-02 Michael Snyder <msnyder@vmware.com>
9660
240f9570
MS
9661 * maint.c (maintenance_do_deprecate): No need to check for NULL.
9662
10dd8b54
MS
9663 * cli/cli-script.c (script_from_file): Add break for lint.
9664
b98bd911
MS
9665 * mdebugread.c (parse_partial_symbols): Fix indent.
9666
3494b66d
MS
9667 * target-descriptions.c (tdesc_gdb_type): No need to call
9668 xstrdup, callee saves a copy.
9669
daac021a
MS
9670 * printcmd.c (print_scalar_formatted): Use strncpy for safety.
9671
c38d16a7
MS
9672 * infcall.c (call_function_by_hand): Add break statements for lint.
9673
905b671b
MS
9674 * utils.c (parse_escape): Escape the escape char.
9675
f2eb0bc8 9676 * python/py-inferior.c (build_inferior_list): Error out if
2d565757
MS
9677 PyList_Append fails.
9678 (gdbpy_inferiors): Error out if build_inferior_list fails.
9679
8c6a60d1
MS
9680 * linux-nat.c (linux_nat_xfer_partial): Preserve errno around
9681 a function call.
9682
d42de051
MS
9683 * record.c (record_restore): Move printf to before error return.
9684
4db71c0b
YQ
96852011-03-02 Yao Qi <yao@codesourcery.com>
9686
9687 * arm-tdep.h (struct displaced_step_closure): Add two new fields
9688 is_thumb and insn_size.
9689 * arm-tdep.c (displaced_read_reg): Adjust correct pipeline offset
9690 on both ARM and Thumb mode.
9691 (arm_process_displaced_insn): Set is_thumb and insn_size.
9692 (arm_displaced_init_closure): Handle both 16-bit and 32-bit.
9693 (arm_displaced_step_fixup): Likewise.
9694
a9dc8dcc
MS
96952011-03-01 Michael Snyder <msnyder@vmware.com>
9696
53624a93
MS
9697 * cli/cli-dump.c (dump_bfd_file): Check error return and warn.
9698
77766669
MS
9699 * jv-lang.c (evaluate_subexp_java): Conditional can't be true.
9700
62d5b8da
MS
9701 * dwarf2read.c (dwarf2_compute_name): NAME cannot be null here.
9702
5e9e105f
MS
9703 * cli/cli-dump.c (restore_binary_file): Validate ftell return value.
9704
dc19db01
MS
9705 * ada-lang.c (ada_make_symbol_completion_list): Replace malloc
9706 with xmalloc.
9707
5ce64950
MS
9708 * ada-lang.c (aggregate_assign_others): Rename inner scope variable
9709 which shadows function parameter.
9710
a0aa2878
MS
9711 * tracepoint.c (create_tsv_from_upload): Superfluous call
9712 to xstrdup. Callee already calls xstrdup.
9713
e325fb69
MS
9714 * linespec.c (decode_line_1): Remove unnecessary null check.
9715
21cbba77
MS
9716 * tracepoint.c (scope_info): Fix mem leak, remove underused
9717 variable.
9718
63360adc
MS
9719 * python/py-prettyprint.c (apply_val_pretty_printer): Remove
9720 superfluous null check.
9721
18ea20ac 9722 * std-regs.c (value_of_builtin_frame_pc_reg): Frame can't be null.
23ce9890 9723 (value_of_builtin_frame_fp_reg): Ditto.
18ea20ac 9724
d014929c
MS
9725 * event-top.c (display_gdb_prompt): Remove superfluous null check.
9726
6e9130cf
MS
9727 * python/py-prettyprint.c (apply_val_pretty_printer): VAL may
9728 be null.
9729
5f01dbc0
MS
9730 * linespec.c (decode_line_1): Check for null before dereference.
9731
d684ab85
MS
9732 * reverse.c (record_restore): Move null-check to before pointer
9733 dereference.
9734
bfffb7e3
MS
9735 * python/py-utils.c (gdbpy_obj_to_string): Delete unused variable.
9736
a9dc8dcc
MS
9737 * objc-lang.c (selectors_info): Add explanitory comment.
9738 (classes_info): Ditto.
9739
478fd957
UW
97402011-03-01 Ulrich Weigand <ulrich.weigand@linaro.org>
9741
9742 * arm-linux-tdep.c (ARM_LDR_PC_SP_4): Add define.
9743 (arm_linux_restart_syscall_init): Handle both on-stack and in-kernel
9744 versions of the trampoline. Handle Thumb vs. ARM addresses.
9745 (arm_kernel_linux_restart_syscall_tramp_frame): New global.
9746 (arm_linux_init_abi): Install it.
9747 * arm-tdep.c (arm_psr_thumb_bit): Make global.
9748 * arm-tdep.c (arm_psr_thumb_bit): Add prototype.
9749
0480cefa
MS
97502011-02-28 Michael Snyder <msnyder@vmware.com>
9751
ac50ab3b
MS
9752 * ui-out.c (ui_out_field_core_addr): Make local char buffer
9753 a little bigger, to avoid possibility of an overflow.
9754
f63fbe86
MS
9755 * breakpoint.c (breakpoint_adjustment_warning): Make local char
9756 buffers a little bigger, to avoid possibility of an overflow.
9757
9e91a352
MS
9758 * coffread.c (coff_getfilename): Add check to avoid overflow.
9759
f2eb0bc8 9760 * objc-lang.c (selectors_info): Add a small safety margin to
28288541
MS
9761 avoid overflow.
9762 (classes_info): Error out on too long REGEXP.
9763
098ab512
MS
9764 * infrun.c (handle_inferior_event): Remove unused function call.
9765
bcbd1de9
MS
9766 * fork-child.c (fork_inferior): Remove ifdef'd code and
9767 unused variable.
9768
2e456570
MS
9769 * linux-thread-db.c (attach_thread): Discard unused value.
9770
14571dad
MS
9771 * linux-nat.c (linux_handle_extended_wait): Delete unused variable.
9772
a9cbf802
MS
9773 * remote.c (remote_get_noisy_reply): Discard unused value.
9774 (remote_vcont_resume): Ditto.
9775 (remote_stop_ns): Ditto.
9776
5715d26e
MS
9777 * linespec.c (decode_objc): Delete unused variable.
9778
4a9bca80
MS
9779 * tui/tui-regs.c (tui_register_format): Delete unused variable.
9780
f47fb265
MS
9781 * dwarf2read.c (add_partial_symbol): Discard unused values.
9782 (read_base_type): Delete unused variable.
9783
e81cff30
MS
9784 * dbxread.c (read_dbx_symtab): Discard unused value.
9785
262acaeb
MS
9786 * eval.c (evaluate_subexp_standard): Delete unused variable,
9787 and discard unused values.
9788
df983543
MS
9789 * infcmd.c (_initialize_infcmd): Discard unused values.
9790
89acf84d
MS
9791 * stabsread.c (rs6000_builtin_type): Missing break statement.
9792
ab8b8aca
MS
9793 * dbxread.c (process_one_symbol): Discard unused value.
9794
6b4511ab
MS
9795 * coffread.c (coff_end_symtab): Delete unused variable.
9796
e8e80198
MS
9797 * dwarf2read.c (dw2_get_file_names): Discard unused value.
9798 (dwarf2_add_typedef): Delete unused variable.
9799 (read_namespace): Ditto.
9800 (dwarf_decode_macros): Ditto.
9801
976aa66e
MS
9802 * m2-lang.c (evaluate_subexp_modula2): Discard unused variable.
9803
5b92b49f
MS
9804 * opencl-lang.c (evaluate_subexp_opencl): Discard unused value.
9805
91e8df85
MS
9806 * p-valprint.c (pascal_val_print): Discard unused value.
9807
899500d6
MS
9808 * utils.c (nquery): Call va_end before return;
9809 (yquery): Ditto.
9810 (query): Ditto.
9811
0480cefa
MS
9812 * proc-service.c (ps_plog): Call va_end before return.
9813
fb6a3ed3
TT
98142011-02-28 Tom Tromey <tromey@redhat.com>
9815
9816 * python/python.c (gdbpy_value_cst): New global.
9817 (_initialize_python): Initialize it.
9818 * python/python-internal.h (gdbpy_value_cst): Declare.
9819 * python/py-value.c (convert_value_from_python): Use
9820 gdbpy_value_cst.
9821
c05202a1
MS
98222011-02-28 Michael Snyder <msnyder@vmware.com>
9823
e463f587
MS
9824 * python/py-cmd.c (cmdpy_init): Fix memory leak.
9825
c38eea1a
MS
9826 * breakpoint.c (catch_syscall_completer): Free malloced list.
9827
3ef09ab5
MS
9828 * jv-lang.c (java_primitive_type_from_name): Add missing break.
9829
8f9a01ee
MS
9830 * opencl-lang.c (lval_func_check_validity): Rename inner variables.
9831 (lval_func_check_synthetic_pointer): Ditto.
9832 (lval_func_free_closure): Fix use-after-free.
c05202a1 9833
477d0d57
TT
98342011-02-28 Tom Tromey <tromey@redhat.com>
9835
9836 * psymtab.c (expand_partial_symbol_tables): Use
9837 ALL_OBJFILE_PSYMTABS.
9838
20937029
JK
98392011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
9840
9841 * objc-lang.c (selectors_info): Error on too long REGEXP.
9842
907b7f4f
MS
98432011-02-28 Michael Snyder <msnyder@vmware.com>
9844
92e96192
MS
9845 * python/py-param.c (set_parameter_value): Add missing
9846 break statement.
9847
907b7f4f
MS
9848 * linux-record.c (record_linux_system_call): Add missing
9849 break statement.
9850
12c5a436
UW
98512011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
9852
9853 * breakpoint.c (print_one_breakpoint_location): Remove unused
9854 argument PRINT_ADDRESS_BITS. Update callers.
9855 (print_one_breakpoint): Likewise.
9856
170b53b2
UW
98572011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
9858
9859 * breakpoint.c (wrap_indent_at_field): New function.
9860 (print_breakpoint_location): Use it instead of WRAP_INDENT argument.
9861 Allocate ui_stream locally instead of using STB argument.
9862 (print_one_breakpoint_location): Update call.
9863 * ui-out.c (ui_out_query_field): New function.
9864 * ui-out.h (ui_out_query_field): Add prototype.
9865
8ab1f94d
JB
98662011-02-28 Joel Brobecker <brobecker@adacore.com>
9867
9868 From Michael Snyder <msnyder@vmware.com>
9869 * ada-exp.y (write_object_renaming): Add FALLTHROUGH comment.
9870
7d488639
MS
98712011-02-27 Michael Snyder <msnyder@vmware.com>
9872
ae179fba
MS
9873 * objc-lang.c (selectors_info): Prevent string overrun.
9874
086dbf66
MS
9875 * tui/tui-stack.c (tui_get_function_from_frame): Fix off by one
9876 error in strncpy.
9877
f2eb0bc8 9878 * symtab.c (rbreak_command): Move variable 'file_name' to
9c1e305a
MS
9879 outer scope.
9880
7d488639
MS
9881 * d-valprint.c (dynamic_array_type): Avoid shadowing a function
9882 param with a local variable of the same name.
9883
3bd0f5ef
MS
98842011-02-27 Michael Snyder <msnyder@vmware.com>
9885
9886 * value.c (value_from_history_ref): New function.
9887 * value.h (value_from_history_ref): Export.
9888 * cli/cli-utils.c (get_number_trailer): Use value_from_history_ref
9889 to parse value history references.
9890 * cli/cli-utils.h (get_number_trailer): Update comment.
9891
98922011-02-27 Michael Snyder <msnyder@vmware.com>
9893
9894 * inferior.c (detach_inferior_command): Use get_number_or_range.
9895 (kill_inferior_command): Ditto.
9896 (remove_inferior_command): Ditto.
9897 (initialize_inferiors): Make command names plural.
9898 Update help strings.
9899
766062f6
MS
99002011-02-27 Michael Snyder <msnyder@vmware.com>
9901
9902 * darwin-nat-info.c: Fix comment typo.
9903 * dwarf2expr.h: Ditto.
9904 * fbsd-nat.c: Ditto.
9905 * fbsd-nat.h: Ditto.
9906 * frame-unwind.h: Ditto.
9907 * frame.h: Ditto.
9908 * hppa-hpux-tdep.c: Ditto.
9909 * i386-linux-nat.c: Ditto.
9910 * linux-nat.c: Ditto.
9911 * nbsd-nat.c: Ditto.
9912 * nbsd-nat.h: Ditto.
9913 * ppc-linux-tdep.c: Ditto.
9914 * serial.c: Ditto.
9915 * ui-file.h: Ditto.
9916 * tui/tui-winsource.c: Ditto.
9917
f2c4ead5
MS
99182011-02-26 Michael Snyder <msnyder@vmware.com>
9919
86b887df
MS
9920 * breakpoint.c (reattach_breakpoints): Avoid resource leak (ui_file).
9921
66fd3b1e
MS
9922 * maint.c (maintenance_do_deprecate): Plug a memory leak.
9923
8c814cdd
MS
9924 * dwarf2loc.c (insert_bits): Avoid shadowing a function param
9925 with a local variable of the same name.
9926
6d5e094a 9927 * i387-tdep.c (i387_supply_fxsave): Avoid shadowing a function
e5b3d7d6 9928 param with a local variable of the same name.
6d5e094a 9929 (i387_supply_xsave): Ditto.
e5b3d7d6 9930
5eee517d
MS
9931 * linux-low.c (linux_nat_xfer_osdata): Rename local variable so
9932 that it does not shadow a function parameter.
9933
8fbf6b93
MS
9934 * i386-nat.c (i386_length_and_rw_bits): Document that case
9935 statement is meant to fall through.
9936
cb969d61
MS
9937 * expprint.c (dump_subexp_body_standard): Document that case
9938 statement is meant to fall through.
9939
f2c4ead5
MS
9940 * amd64-linux-tdep.c (amd64_linux_syscall_record): Delete
9941 dead if statement. Condition can't be false.
9942
b021a221
MS
99432011-02-25 Michael Snyder <msnyder@vmware.com>
9944
9945 * arm-tdep.c: Fix typos in comments.
9946 * bsd-uthread.c: Ditto.
9947 * completer.c: Ditto.
9948 * corelow.c: Ditto.
9949 * cp-namespace.c: Ditto.
9950 * cp-support.c: Ditto.
9951 * cris-tdep.c: Ditto.
9952 * dbxread.c: Ditto.
9953 * dwarf2read.c: Ditto.
9954 * frame.h: Ditto.
9955 * gdbtypes.h: Ditto.
9956 * inferior.h: Ditto.
9957 * mdebugread.c: Ditto.
9958 * mips-tdep.c: Ditto.
9959 * ppc-linux-nat.c: Ditto.
9960 * ppc-linux-tdep.c: Ditto.
9961 * printcmd.c: Ditto.
9962 * sol-thread.c: Ditto.
9963 * solib-frv.c: Ditto.
9964 * solist.h: Ditto.
9965 * sparc64-tdep.c: Ditto.
9966 * spu-tdep.c: Ditto.
9967 * stabsread.c: Ditto.
9968 * symfile.c: Ditto.
9969 * valops.c: Ditto.
9970 * varobj.c: Ditto.
9971 * vax-nat.c: Ditto.
9972 * python/py-block.c: Ditto.
9973 * python/py-symbol.c: Ditto.
9974 * python/py-symtab.c: Ditto.
9975 * python/py-value.c: Ditto.
9976 * tui/tui-win.c: Ditto.
9977
c82c0b55
MS
99782011-02-25 Michael Snyder <msnyder@vmware.com>
9979
9980 * inferior.c (print_inferior): Accept a string instead of an int
9981 for requested_inferiors, and use get_number_or_range to parse it.
9982 (info_inferiors_command): Pass args string to print_inferior.
9983 (initialize_inferiors): Change help string for info inferiors.
9984 * inferior.h (print_inferior): Export prototype change.
9985
ee00cd23
TT
99862011-02-25 Tom Tromey <tromey@redhat.com>
9987
9988 * common/ax.def (invalid2): Set to 0x31.
9989
0502ed8c
JK
99902011-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
9991
9992 * dwarf2loc.c (disassemble_dwarf_expression) <DW_OP_breg[0-9]+>: Use
9993 L and plongest.
9994 (disassemble_dwarf_expression) <DW_OP_bregx>: Drop variable offset,
9995 use L and plongest.
9996 (disassemble_dwarf_expression) <DW_OP_fbreg>: Use L and plongest.
9997
2c9de912
MS
99982011-02-24 Michael Snyder <msnyder@vmware.com>
9999
10000 * Makefile.in (clean): Make clean should remove generated files
10001 observer.h and observer.inc.
10002
a04b0428
JB
100032011-02-24 Joel Brobecker <brobecker@adacore.com>
10004
10005 Revert the following patch (not approved yet):
10006 2011-02-21 Hui Zhu <teawater@gmail.com>
10007 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
10008 * ax-gdb.c (gen_printf_expr_callback): New function.
10009 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
10010 * ax-general.c (ax_memcpy): New function.
10011 (ax_print): Handle "printf".
10012 (ax_reqs): Ditto.
10013 * ax.h (ax_memcpy): Forward declare.
10014 * common/ax.def (invalid2): Removed.
10015 (printf): New entry.
10016 * printcmd.c (printcmd.h): New include.
10017 (string_printf): New function.
10018 (ui_printf): Removed.
10019 (printf_command): Remove static. Call string_printf.
10020 (eval_command): Call string_printf.
10021 * printcmd.h: New file.
10022 * tracepoint.c (validate_actionline,
10023 encode_actions_1): handle printf_command.
10024
2b52013f
TT
100252011-02-23 Tom Tromey <tromey@redhat.com>
10026
10027 * ax-general.c (ax_pick): Add missing newline.
10028
e5a67952
MS
100292011-02-23 Michael Snyder <msnyder@vmware.com>
10030
10031 * breakpoint.c (breakpoint_1): Change first argument from an int
10032 to a char pointer, so that the function now accepts a list of
f2eb0bc8 10033 breakpoints rather than just one. Use new function
e5a67952
MS
10034 'number_is_in_list' to implement.
10035 (breakpoints_info): Pass char * instead of int to breakpoint_1.
10036 (watchpoints_info): Ditto.
10037 (tracepoints_info): Ditto.
10038 (maintenance_info_breakpoints): Ditto.
10039 (_initialize_breakpoint): Update help strings to reflect the fact
10040 that these functions can now take more than one argument.
10041 * cli/cli-utils.c (number_is_in_list): New function.
10042 * cli/cli-utils.h (number_is_in_list): Export.
10043
100442011-02-23 Michael Snyder <msnyder@vmware.com>
fbcb778d
MS
10045
10046 * memattr.c (mem_enable_command): Use get_number_or_range.
10047 (mem_disable_command): Ditto.
10048 (mem_delete_command): Ditto.
10049 (_initialize_mem): Tweak usage message to reflect multiple
10050 arguments.
10051
6e6fbe60
DE
100522011-02-22 Doug Evans <dje@google.com>
10053
10054 Add gdb.lookup_global_symbol python function.
10055 * NEWS: Add entry.
10056 * python/py-symbol.c (gdbpy_lookup_global_symbol): New function.
10057 * python/python-internal.h (gdbpy_lookup_global_symbol): Declare it.
10058 * python/python.c (GdbMethods): Add entry for lookup_global_symbol.
10059
79b97fa8
TT
100602011-02-22 Tom Tromey <tromey@redhat.com>
10061
10062 * language.c (language_class_name_from_physname): Rename
10063 'curr_language' argument to 'lang'; use in body.
10064
298f437a
MS
100652011-02-22 Michael Snyder <msnyder@vmware.com>
10066
10067 * cli/cli-utils.c (number_is_in_list): Check for zero return.
10068
b7ea3126
PA
100692011-02-22 Pedro Alves <pedro@codesourcery.com>
10070
10071 * frame-unwind.h: Fix comment to mention the this frame, not the
10072 next.
10073
58ee6d60
TT
100742011-02-22 Tom Tromey <tromey@redhat.com>
10075
10076 * symfile.c (auto_solib_limit): Remove.
10077 * symfile.h (auto_solib_limit): Remove.
10078
36238dbc
JB
100792011-02-22 Joel Brobecker <brobecker@adacore.com>
10080
10081 * Makefile.in (INSTALLED_LIBS): Delete. Update comment.
10082
aea5b279
MS
100832011-02-21 Michael Snyder <msnyder@vmware.com>
10084
10085 * gdbthread.h (print_thread_info): Change prototype.
10086 * thread.c (print_thread_info): Accept char* instead of int for
10087 requested_threads argument. Use new function number_is_in_list
10088 to determine which threads to list.
10089 (info_threads_command): Pass char* to print_thread_info.
10090 * cli/cli-utils.c (number_is_in_list): New function.
10091 * cli/cli-utils.h (number_is_in_list): Export.
f2eb0bc8 10092 * mi/mi-main.c (mi_cmd_thread_info): Pass char* to
aea5b279
MS
10093 print_thread_info.
10094 (print_one_inferior): Ditto.
10095 (mi_cmd_list_thread_groups): Ditto.
10096
8caa75ee
JK
100972011-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
10098
10099 * common/Makefile.in (CFLAGS): New.
10100 (COMPILE): Add $(CFLAGS).
10101
ea666128
TT
101022011-02-21 Tom Tromey <tromey@redhat.com>
10103
10104 * breakpoint.c (catch_syscall_command_1): Fix typo.
10105
e9cafbcc
TT
101062011-02-21 Tom Tromey <tromey@redhat.com>
10107
10108 * reverse.c: Include cli-utils.h.
10109 * printcmd.c: Include cli-utils.h.
10110 (string_printf): Use skip_spaces.
10111 * cli/cli-utils.h: New file.
10112 * cli/cli-utils.c: New file.
10113 * cli/cli-dump.h (skip_spaces): Move to cli-utils.h.
10114 * cli/cli-dump.c (skip_spaces): Move to cli-utils.c.
10115 * breakpoint.h (get_number, get_number_or_range): Move to
10116 cli-utils.h.
10117 * breakpoint.c: Include cli-utils.h.
10118 (get_number_trailer, get_number, get_number_or_range)
10119 (ep_skip_leading_whitespace): Move to cli-utils.c.
10120 (create_breakpoint_sal, find_condition_and_thread)
10121 (decode_static_tracepoint_spec, watch_command_1)
10122 (watch_maybe_just_location, ep_parse_optional_if_clause)
10123 (catch_fork_command_1, catch_exec_command_1)
10124 (catch_syscall_command_1): Use skip_spaces, skip_to_space.
10125 * Makefile.in (SUBDIR_CLI_OBS): Add cli-utils.o.
10126 (SUBDIR_CLI_SRCS): Add cli-utils.c.
10127 (HFILES_NO_SRCDIR): Add cli-utils.h.
10128 (cli-utils.o): New target.
10129
f67fd822
PM
101302011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
10131
10132 * remote.c (remote_close): Reset INFERIOR_PTID to NULL_PTID
10133 before calling discard_all_inferiors.
10134
c9def01d
UW
101352011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
10136
10137 * opencl-lang.c (STRUCT_OCL_TYPE): Remove.
10138 (struct builtin_opencl_type): Remove.
10139 (builtin_opencl_type): Change return type to "struct type **".
10140 (lookup_opencl_vector_type): Update caller.
10141 (opencl_language_arch_info): Copy primitive type vector from gdbarch.
10142 (build_opencl_types): Install plain array of "struct type *"
10143 instead of "struct builtin_opencl_type".
10144
e3039479
UW
101452011-02-21 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
10146 Ulrich Weigand <uweigand@de.ibm.com>
10147
10148 * arm-linux-nat.c: Include "observer.h" and "gdbthread.h".
10149 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define.
10150 (struct arm_linux_hwbp_cap): New type.
10151 (arm_linux_get_hwbp_cap): New function.
10152 (arm_linux_get_hw_breakpoint_count): Likewise.
10153 (arm_linux_get_hw_watchpoint_count): Likewise.
10154 (arm_linux_can_use_hw_breakpoint): Likewise.
10155 (arm_hwbp_type): New type.
10156 (arm_hwbp_control_t): Likewise.
10157 (struct arm_linux_hw_breakpoint): Likewise.
10158 (struct arm_linux_thread_points): Likewise.
10159 (arm_threads): New global variable.
10160 (arm_linux_find_breakpoints_by_tid): New function.
10161 (arm_hwbp_control_initialize): Likewise.
10162 (arm_hwbp_control_is_enabled): Likewise.
10163 (arm_hwbp_control_disable): Likewise.
10164 (arm_linux_hw_breakpoint_initialize): Likewise.
10165 (arm_linux_get_hwbp_type): Likewise.
10166 (arm_linux_hw_watchpoint_initialize): Likewise.
10167 (arm_linux_hw_breakpoint_equal): Likewise.
10168 (arm_linux_insert_hw_breakpoint1): Likewise.
10169 (arm_linux_remove_hw_breakpoint1): Likewise.
10170 (arm_linux_insert_hw_breakpoint): Likewise.
10171 (arm_linux_remove_hw_breakpoint): Likewise.
10172 (arm_linux_region_ok_for_hw_watchpoint): Likewise.
10173 (arm_linux_insert_watchpoint): Likewise.
10174 (arm_linux_remove_watchpoint): Likewise.
10175 (arm_linux_stopped_data_address): Likewise.
10176 (arm_linux_stopped_by_watchpoint): Likewise.
10177 (arm_linux_watchpoint_addr_within_range): Likewise.
10178 (arm_linux_new_thread): Likewise.
10179 (arm_linux_thread_exit): Likewise.
10180 (_initialize_arm_linux_nat): Install hardware breakpoint/watchpoint
10181 related target callbacks. Register arm_linux_new_thread and
10182 arm_linux_thread_exit.
10183 * arm-tdep.h (arm_pc_is_thumb): Add prototype.
10184 * arm-tdep.c (arm_pc_is_thumb): Make global.
10185 (arm_gdbarch_init): Call set_gdbarch_have_nonsteppable_watchpoint.
10186
b5db5dfc
UW
101872011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
10188
10189 * breakpoint.c (update_watchpoint): Do not attempt to recreate
10190 per-frame locations while within a function epilogue.
10191
e25b2cfa
PM
101922011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
10193
10194 * ser-mingw.c (ser_windows_close): Reformat comment to better conform
10195 to GNU coding standards.
10196
4af53f97
PM
101972011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
10198
10199 Allow use of mingw native on Windows 95 OS.
e25b2cfa 10200 * ser-mingw.c (CancelIo): New macro for dynamically loaded DLL entry.
4af53f97
PM
10201 (ser_windows_close): Only call CancelIo if function exists.
10202 (_initialize_ser_windows): Use LoadLirary/GetProcAddress
10203 to check for existence of CancelIo function in kernel32 DLL.
10204
d0e92d82
HZ
102052011-02-21 Hui Zhu <teawater@gmail.com>
10206
10207 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
10208 * ax-gdb.c (gen_printf_expr_callback): New function.
10209 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
10210 * ax-general.c (ax_memcpy): New function.
10211 (ax_print): Handle "printf".
10212 (ax_reqs): Ditto.
10213 * ax.h (ax_memcpy): Forward declare.
10214 * common/ax.def (invalid2): Removed.
10215 (printf): New entry.
10216 * printcmd.c (printcmd.h): New include.
10217 (string_printf): New function.
10218 (ui_printf): Removed.
10219 (printf_command): Remove static. Call string_printf.
10220 (eval_command): Call string_printf.
10221 * printcmd.h: New file.
10222 * tracepoint.c (validate_actionline,
10223 encode_actions_1): handle printf_command.
10224
7d357efd
MS
102252011-02-19 Michael Snyder <msnyder@vmware.com>
10226
10227 * reverse.c (delete_one_bookmark): Argument is now bookmark
10228 id rather than pointer to bookmark struct.
10229 (delete_bookmark_command): Use get_number_or_range.
10230 (goto_bookmark_command): Parse with get_number instead of strtoul.
10231 (bookmark_1): New function. Print info for one bookmark.
10232 (bookmarks_info): Use get_number_or_range and bookmark_1.
10233
7a45ebd7
MS
102342011-02-18 Michael Snyder <msnyder@vmware.com>
10235
f2eb0bc8 10236 * thread.c (info_threads_command): Re-implement using
7a45ebd7 10237 get_number_or_range.
65ebfb52 10238 (thread_apply_command): Ditto.
7a45ebd7 10239
94d5e490
TT
102402011-02-18 Tom Tromey <tromey@redhat.com>
10241
10242 * common/ax.def: New file.
10243 * ax.h (enum agent_op): Use ax.def.
10244 * ax-general.c (aop_map): Use ax.def.
10245
c7f96d2b
TT
102462011-02-18 Tom Tromey <tromey@redhat.com>
10247
10248 * ax-general.c (aop_map): Add pick and rot.
10249 * dwarf2loc.c (compile_dwarf_to_ax) <DW_OP_over>: Reimplement.
10250 <DW_OP_rot>: Implement.
10251 * ax.h (enum agent_op) <aop_pick, aop_rot>: New constants.
10252 (ax_pick): Declare.
10253 * ax-general.c (ax_pick): New function.
10254
66694b75
TT
102552011-02-18 Tom Tromey <tromey@redhat.com>
10256
10257 * Makefile.in (HFILES_NO_SRCDIR): Don't mention ada-operator.inc.
10258
eeaafae2
JK
102592011-02-18 Jan Kratochvil <jan.kratochvil@redhat.com>
10260 Tom Tromey <tromey@redhat.com>
10261
10262 * cp-support.c (make_symbol_overload_list_namespace): Do not call
10263 make_symbol_overload_list_block with NULL BLOCK.
10264 * valarith.c (unop_user_defined_p): Resolve also TYPE_CODE_TYPEDEF.
10265
3c3fe74c
PA
102662011-02-18 Pedro Alves <pedro@codesourcery.com>
10267
10268 * breakpoint.c (get_number_trailer): No longer accept a NULL PP.
10269 * breakpoint.h (get_number_or_range): Declare.
10270 * printcmd.c (ALL_DISPLAYS): Declare.
10271 (delete_display): Reimplement taking a display pointer.
10272 (undisplay_command): Accept a range of displays to delete, using
10273 get_number_or_range.
10274
13163d80
PM
102752011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
10276
10277 * c-valprint.c (c_val_print): Add embedded_offset to address
10278 for arrays of unspecified length.
10279 * p-valprint.c (pascal_val_print): Likewise.
10280
b434a28f
YQ
102812011-02-18 Yao Qi <yao@codesourcery.com>
10282
10283 * gdb/arm-tdep.c (arm_displaced_step_copy_insn): Move code to ...
10284 (arm_process_displaced_insn): .. here. Remove parameter INSN.
10285 (thumb_process_displaced_insn): New.
10286 * gdb/arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Update
10287 call to arm_process_displaced_insn.
10288 * gdb/arm-tdep.h : Update declaration of arm_process_displaced_insn.
10289
9f6f94ff
TT
102902011-02-17 Tom Tromey <tromey@redhat.com>
10291
10292 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Declare.
10293 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Rename from
10294 compile_dwarf_to_ax. No longer static. Call
10295 dwarf2_compile_cfa_to_ax.
10296 (locexpr_tracepoint_var_ref): Update.
10297 (loclist_tracepoint_var_ref): Update.
10298 * dwarf2-frame.h (dwarf2_compile_cfa_to_ax): Declare.
10299 * dwarf2-frame.c (execute_cfa_program): Remove 'this_frame'
10300 argument; add 'gdbarch' and 'pc'.
10301 (dwarf2_compile_cfa_to_ax): New function.
10302 (dwarf2_frame_cache): Update.
10303
e67ad678
JB
103042011-02-17 Joel Brobecker <brobecker@adacore.com>
10305
10306 * ada-lang.c (ada_type_of_array): Fix the size of the array
10307 in the case of an unconstrained packed array.
10308
946ebb0d
YQ
103092011-02-17 Yao Qi <yao@codesourcery.com>
10310
10311 * common/Makefile.in: Add more targets for make.
10312
1ba1b353
TT
103132011-02-16 Tom Tromey <tromey@redhat.com>
10314
10315 * dwarf2loc.c (unimplemented): Fix typo.
10316
b1bfef65
TT
103172011-02-16 Tom Tromey <tromey@redhat.com>
10318
10319 * dwarf2loc.c (unimplemented): Handle unnamed opcodes.
10320 (compile_dwarf_to_ax) <default>: Use unimplemented.
10321 <DW_OP_deref>: Update.
10322 (disassemble_dwarf_expression): Update.
10323 * dwarf2read.c (dwarf_stack_op_name): Remove 'def' argument.
10324 (decode_locdesc): Update.
10325 * dwarf2expr.h (dwarf_stack_op_name): Update.
10326
5f1e6f19
TT
103272011-02-16 Tom Tromey <tromey@redhat.com>
10328
10329 * ax.h (struct aop_map) <name>: Now const.
10330
a0c78a73
PA
103312011-02-16 Tom Tromey <tromey@redhat.com>
10332
10333 * ax-gdb.c.c (gen_expr) <UNOP_MEMVAL>: Handle value kinds other
10334 than axs_rvalue.
10335
946ebb0d 103362011-02-16 Yao Qi <yao@codesourcery.com>
a42244db
YQ
10337
10338 * infrun.c (get_displaced_step_closure_by_addr): New.
10339 * inferior.h: Declare it.
10340 * arm-tdep.c: (arm_pc_is_thumb): Call
10341 get_displaced_step_closure_by_addr. Adjust MEMADDR if it
10342 returns non-NULL.
10343
08807d5a
PA
103442011-02-16 Pedro Alves <pedro@codesourcery.com>
10345 Jan Kratochvil <jan.kratochvil@redhat.com>
10346
10347 gdb/
10348 * tracepoint.c (memrange_sortmerge): Fix list A's end calculation.
10349
29976f3f
PA
103502011-02-16 Pedro Alves <pedro@codesourcery.com>
10351 Jan Kratochvil <jan.kratochvil@redhat.com>
10352
10353 * value.c (value_contents_copy_raw): Extend describing comment.
10354 Assert that the destination contents we're overwriting are wholly
10355 available.
fb68ae73 10356 (value_contents_copy): Extend describing comment.
29976f3f 10357
cd24cfaa
PA
103582011-02-16 Pedro Alves <pedro@codesourcery.com>
10359 Jan Kratochvil <jan.kratochvil@redhat.com>
10360
10361 * value.c (value_available_contents_eq): Remove redundant local
10362 variables. Fix available contents comparision.
10363 * value.h (value_available_contents_eq): Extend describing
10364 comment.
10365
60bbf338
YQ
103662011-02-16 Yao Qi <yao@codesourcery.com>
10367
10368 * thread.c (info_threads_command): Add missing i18n markup and remove
10369 trailing newline.
10370
17450429
PP
103712011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
10372
10373 * breakpoint.c (longjmp_names): New variable.
10374 (struct breakpoint_objfile_data): New type.
10375 (breakpoint_objfile_key): New variable.
10376 (msym_not_found): New variable.
10377 (msym_not_found_p): New predicate.
10378 (get_breakpoint_objfile_data): New function.
10379 (create_overlay_event_breakpoint): Check per-objfile cache for
10380 symbols first.
10381 (create_longjmp_master_breakpoint): Likewise.
10382 (create_std_terminate_master_breakpoint): Likewise.
10383 (create_exception_master_breakpoint): Likewise.
10384 (_initialize_breakpoint): Register per-objfile data key.
10385
af02033e
PP
103862011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
10387
10388 * breakpoint.c ((create_overlay_event_breakpoint): Const-propagate
10389 parameter value.
10390 (create_longjmp_master_breakpoint): Loop over longjmp names.
10391 (create_std_terminate_master_breakpoint): Const-propagate parameter
10392 value.
10393 (update_breakpoints_after_exec): Adjust.
10394 (breakpoint_re_set): Adjust.
10395
60f98dde
MS
103962011-02-15 Michael Snyder <msnyder@vmware.com>
10397
cdf99611
MS
10398 * thread.c (info_threads_command): Process arg as thread id,
10399 or list of thread ids.
10400 (thread_find_command): New command.
10401 (_initialize_thread): Document argument for info threads.
10402 Document 'thread find' command.
10403 * NEWS: Document new command "thread find".
60f98dde 10404
0feedb2c
JK
104052011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10406
10407 * Makefile.in (ACLOCAL_AMFLAGS): Add `-I ../config'.
10408 * aclocal.m4: Regenerated with aclocal-1.11.1.
10409 * common/configure: Regenerate with autoconf-2.64.
10410
648cd113
KW
104112011-02-15 Ken Werner <ken.werner@de.ibm.com>
10412
10413 * opencl-lang.c (build_opencl_types): Set the size of the built-in
10414 bool data type to a size of one byte.
10415
5657161f
PA
104162011-02-15 Pedro Alves <pedro@codesourcery.com>
10417 Jan Kratochvil <jan.kratochvil@redhat.com>
10418
10419 * target.c (memory_xfer_live_readonly_partial): Document where to
10420 look for interface description.
10421
494e194e
YQ
104222011-02-15 Yao Qi <yao@codesourcery.com>
10423
10424 PR tdep/12352
10425 * arm-tdep.c (copy_ldr_str_ldrb_strb): Replace PC with SP in
10426 order to store PC value on stack instead of text section.
10427
d9492458
TJB
104282011-02-15 Thiago Jung Bauermann <bauerman@br.ibm.com>
10429
10430 * rs6000-tdep.c (IS_EFP_PSEUDOREG): Use correct constant for
10431 the EFP register set size.
10432 (efpr_pseudo_register_read): Use regcache_raw_read_part to read
10433 data from the VMX register.
10434 (efpr_pseudo_register_write): Use regcache_raw_write_part to read
10435 and write data from/to the VMX register.
10436
cdf99611
MS
104372011-02-14 Michael Snyder <msnyder@vmware.com>
10438
10439 * command.h (enum command_class): New class 'no_set_class', for
10440 "show" commands without a corresponding "set" command.
10441 * value.c (_initialize_values): Use 'no_set_class' for "show values".
10442 * copying.c (_initialize_copying): Ditto for "show copying" and
10443 "show warranty".
10444 * cli/cli-cmds.c (init_cli_cmds): Ditto for "show commands" and
10445 "show version".
10446 * cli/cli-setshow.c (cmd_show_list): Skip "show" commands for
10447 which there is no corresponding "set" command (eg. "show copying").
10448
424447ee
PA
104492011-02-14 Pedro Alves <pedro@codesourcery.com>
10450 Jan Kratochvil <jan.kratochvil@redhat.com>
10451
10452 * exec.c (section_table_available_memory): Change `len' parameter
10453 type to ULONGEST.
10454 * exec.h (section_table_available_memory): Ditto.
10455 * value.h (read_value_memory): Rename the `offset' parameter to
10456 `embedded_offset'.
10457
c0f61f9c 104582011-02-14 Pedro Alves <pedro@codesourcery.com>
e0ccc0c7 10459 Jan Kratochvil <jan.kratochvil@redhat.com>
c0f61f9c
PA
10460
10461 * memrange.c (compare_mem_ranges): Mention sort order in
10462 describing comment.
10463 (normalize_mem_ranges): Add comment. Fix ra->length calculation.
10464 * tracepoint.c (traceframe_available_memory): Extend comment to
10465 mention what happens to RESULT when the target does not support
10466 the query.
10467
6bfc80c7
PA
104682011-02-14 Pedro Alves <pedro@codesourcery.com>
10469 Jan Kratochvil <jan.kratochvil@redhat.com>
10470
10471 * value.c (mark_value_bytes_unavailable): Fix indexing the `bef'
10472 range.
10473
e7303042
PA
104742011-02-14 Pedro Alves <pedro@codesourcery.com>
10475
10476 * value.c (value_bits_valid, value_bits_synthetic_pointer):
10477 No longer handle NULL values.
10478
8af8e3bc
PA
104792011-02-14 Pedro Alves <pedro@codesourcery.com>
10480
10481 * exceptions.h (NOT_AVAILABLE_ERROR): New error.
10482 * value.c: Include "exceptions.h".
10483 (require_available): Throw NOT_AVAILABLE_ERROR instead of a
10484 generic error.
10485 * cp-abi.c: Include gdb_assert.h.
10486 (baseclass_offset): Add `embedded_offset' and `val' parameters.
10487 Assert the method is implemented. Wrap NOT_AVAILABLE_ERROR
10488 errors.
10489 * cp-abi.h (baseclass_offset): Add `embedded_offset' and `val'
10490 parameters. No longer returns -1 on error.
10491 (struct cp_abi_ops) <baseclass_offset>: Add `embedded_offset' and
10492 `val' parameters.
10493 * cp-valprint.c: Include exceptions.h.
10494 (cp_print_value): Handle NOT_AVAILABLE_ERROR errors when fetching
10495 the baseclass_offset. Handle unavailable base classes. Use
10496 val_print_invalid_address.
10497 * p-valprint.c: Include exceptions.h.
10498 (pascal_object_print_value): Handle NOT_AVAILABLE_ERROR errors
10499 when fetching the baseclass_offset. No longer expect
10500 baseclass_offset returning -1. Handle unavailable base classes.
10501 Use val_print_invalid_address.
10502 * valops.c (dynamic_cast_check_1): Rename `contents' parameter to
10503 `valaddr' parameter, and change its type to gdb_byte pointer. Add
10504 `embedded_offset' and `val' parameters. Adjust.
10505 (dynamic_cast_check_2): Rename `contents' parameter to `valaddr'
10506 parameter, and change its type to gdb_byte pointer. Add
10507 `embedded_offset' and `val' parameters. Adjust. No longer expect
10508 baseclass_offset returning -1.
10509 (value_dynamic_cast): Use value_contents_for_printing rather than
10510 value_contents. Adjust.
10511 (search_struct_field): No longer expect baseclass_offset returning
10512 -1.
10513 (search_struct_method): If reading memory from the target is
10514 necessary, wrap it in a new value to pass to baseclass_offset. No
10515 longer expect baseclass_offset returning -1.
10516 (find_method_list): No longer expect baseclass_offset returning
10517 -1. Use value_contents_for_printing rather than value_contents.
10518 * valprint.c (val_print_invalid_address): New function.
10519 * valprint.h (val_print_invalid_address): Declare.
10520 * gdbtypes.c (is_unique_ancestor_worker): New `embedded_offset'
10521 and `val' parameters. No longer expect baseclass_offset returning
10522 -1. Adjust.
10523 * gnu-v2-abi.c: Include "exceptions.h".
10524 (gnuv2_baseclass_offset): Add `embedded_offset' and `val'
10525 parameters. Handle unavailable memory. Recurse through
10526 gnuv2_baseclass_offset directly, rather than through
10527 baseclass_offset. No longer returns -1 on not found, instead
10528 throw an error.
10529 * gnu-v3-abi.c (gnuv3_baseclass_offset): Add `embedded_offset' and
10530 `val' parameters. Adjust.
10531
1b28d0b3
PA
105322011-02-14 Pedro Alves <pedro@codesourcery.com>
10533
10534 * tracepoint.c (memrange_sortmerge): Don't merge ranges that are
10535 almost but not quite adjacent.
10536
ec0a52e1
PA
105372011-02-14 Pedro Alves <pedro@codesourcery.com>
10538
10539 * value.h (value_entirely_available): Declare.
10540 * value.c (value_entirely_available): New function.
10541 * c-valprint.c (c_value_print): Don't try fetching the pointer's
10542 real type if the pointer is unavailable.
10543
24e6bcee
PA
105442011-02-14 Pedro Alves <pedro@codesourcery.com>
10545
10546 * valops.c (value_repeat): Use read_value_memory instead of
10547 read_memory.
10548
39d37385
PA
105492011-02-14 Pedro Alves <pedro@codesourcery.com>
10550
10551 * value.h (value_contents_copy, value_contents_copy_raw): Declare.
10552 * value.c (value_contents_copy_raw, value_contents_copy): New
10553 functions.
10554 (value_primitive_field): Use value_contents_copy_raw instead of
10555 memcpy.
10556 * valops.c (value_fetch_lazy): Use value_contents_copy instead of
10557 memcpy.
10558 (value_array, value_slice): Ditto.
10559 * valarith.c (value_subscripted_rvalue): Use
10560 value_contents_copy_raw instead of memcpy.
10561
a3d34bf4
PA
105622011-02-14 Pedro Alves <pedro@codesourcery.com>
10563
10564 <unavailable> references.
10565
10566 * valops.c (get_value_at): Use value_from_contents_and_address,
10567 avoiding read_memory.
10568
9fc6d940
PA
105692011-02-14 Pedro Alves <pedro@codesourcery.com>
10570
10571 * c-valprint.c (c_val_print): Print a string with unavailable
10572 contents as an array.
10573
5467c6c8
PA
105742011-02-14 Pedro Alves <pedro@codesourcery.com>
10575
10576 * value.h (unpack_bits_as_long): Delete declaration.
10577 (unpack_value_bits_as_long): Declare.
10578 (unpack_value_field_as_long): Declare.
10579 (value_field_bitfield): Declare.
10580 * value.c (unpack_bits_as_long): Rename to...
10581 (unpack_value_bits_as_long_1): ... this. Add embedded_offset and
10582 value parameters. Return the extracted result in a new output
10583 parameter. If the value contents are unavailable, return false,
10584 otherwise return true.
10585 (unpack_value_bits_as_long): New.
10586 (unpack_field_as_long): Rename to...
10587 (unpack_value_field_as_long_1): ... this. Add embedded_offset and
10588 Add embedded_offset and value parameters. Return the extracted
10589 result in a new output parameter. If the value contents are
10590 unavailable, return false, otherwise return true.
10591 (unpack_value_field_as_long): New.
10592 (unpack_field_as_long_1): New.
10593 (unpack_field_as_long): Reimplement as wrapper around
10594 unpack_value_field_as_long_1.
10595 (value_field_bitfield): New function.
10596 * valops.c (value_fetch_lazy): When fetching a bitfield, use
10597 unpack_value_bits_as_long. Mark the value as unavailable, if it
10598 is unavailable.
10599 * jv-valprint.c (java_print_value_fields): Use
10600 value_field_bitfield.
10601 * p-valprint.c (pascal_object_print_value_fields): Use
10602 value_field_bitfield.
10603 * cp-valprint.c (cp_print_value_fields): Use value_field_bitfield.
10604
3158c6ed
PA
106052011-02-14 Pedro Alves <pedro@codesourcery.com>
10606
10607 * value.c (get_internalvar_integer): Also return the int value of
10608 TYPE_CODE_INT INTERNALVAR_VALUE values.
10609 (set_internalvar): Don't special case TYPE_CODE_INT.
10610
9fbdca0d
PA
106112011-02-14 Pedro Alves <pedro@codesourcery.com>
10612
10613 * value.c (struct internalvar) <enum internalvar_kind>: Remove
10614 INTERNALVAR_POINTER.
10615 <pointer>: Delete.
10616 (value_of_internalvar): Remove INTERNALVAR_POINTER handling.
10617 (set_internalvar): Remove special TYPE_CODE_PTR handling.
10618 (preserve_one_internalvar): Remove INTERNALVAR_POINTER handling.
10619
c8c1c22f
PA
106202011-02-14 Pedro Alves <pedro@codesourcery.com>
10621
10622 * value.h (value_available_contents_eq): Declare.
10623 * value.c (find_first_range_overlap): New function.
10624 (value_available_contents_eq): New function.
10625 * valprint.c (val_print_array_elements): Use
10626 value_available_contents_eq.
10627 * ada-valprint.c (val_print_packed_array_elements): Use
10628 value_available_contents_eq.
10629 * jv-valprint.c (java_value_print): Use
10630 value_available_contents_eq.
10631
e6e4e701
PA
106322011-02-14 Pedro Alves <pedro@codesourcery.com>
10633
10634 * target.c (target_read_live_memory): New function.
10635 (memory_xfer_live_readonly_partial): New.
10636 (memory_xfer_partial): If reading from a traceframe, fallback to
10637 reading unavailable read-only memory from read-only regions of
10638 live target memory.
10639 * tracepoint.c (disconnect_tracing): Adjust.
10640 (set_current_traceframe): New, factored out from
10641 set_traceframe_number.
10642 (set_traceframe_number): Reimplement to only change the traceframe
10643 number on the GDB side.
10644 (do_restore_current_traceframe_cleanup): Adjust.
10645 (make_cleanup_restore_traceframe_number): New.
10646 (cur_traceframe_number): New global.
10647 (tfile_open): Set cur_traceframe_number to no traceframe.
10648 (set_tfile_traceframe): New function.
10649 (tfile_trace_find): If looking up a traceframe using any method
10650 other than by number, make sure the current tfile traceframe
10651 matches gdb's current traceframe. Update the current tfile
10652 traceframe if the lookup succeeded.
10653 (tfile_fetch_registers, tfile_xfer_partial)
10654 (tfile_get_trace_state_variable_value): Make sure the remote
10655 traceframe matches gdb's current traceframe.
10656 * remote.c (remote_traceframe_number): New global.
10657 (remote_open_1): Set it to -1.
10658 (set_remote_traceframe): New function.
10659 (remote_fetch_registers, remote_store_registers)
10660 (remote_xfer_memory, remote_xfer_partial)
10661 (remote_get_trace_state_variable_value): Make sure the remote
10662 traceframe matches gdb's current traceframe.
10663 (remote_trace_find): If looking up a traceframe using any method
10664 other than by number, make sure the current remote traceframe
10665 matches gdb's current traceframe. Update the current remote
10666 traceframe if the lookup succeeded.
10667 * infrun.c (fetch_inferior_event): Adjust.
10668 * tracepoint.h (set_current_traceframe): Declare.
10669 (get_traceframe_number, set_traceframe_number): Add describing
10670 comments.
10671
e6ca34fc
PA
106722011-02-14 Pedro Alves <pedro@codesourcery.com>
10673
10674 Mark pieces of values as unavailable if the corresponding memory
10675 is unavailable.
10676
10677 * valops.c: Include tracepoint.h.
10678 (value_fetch_lazy): Use read_value_memory.
10679 (read_value_memory): New.
10680 * value.h (read_value_memory): Declare.
10681 * dwarf2loc.c (read_pieced_value): Use read_value_memory.
10682 * exec.c (section_table_available_memory): New function.
10683 * exec.h (section_table_available_memory): Declare.
10684
2a7498d8
PA
106852011-02-14 Pedro Alves <pedro@codesourcery.com>
10686
10687 * Makefile.in (SFILES): Add memrange.c.
10688 (HFILES_NO_SRCDIR): Add memrange.h.
10689 (COMMON_OBS): Add memrange.o.
10690 * memrange.c: New file.
10691 * memrange.h: New file.
10692 * tracepoint.c: Include memrange.h.
10693 (struct mem_range): Delete.
10694 (mem_range_s): Delete.
10695 (traceframe_available_memory): New function.
10696 * tracepoint.h (traceframe_available_memory): Declare.
10697
b3b9301e
PA
106982011-02-14 Pedro Alves <pedro@codesourcery.com>
10699
10700 * target.h (struct traceframe_info): Forward declare.
10701 (enum target_object): Add TARGET_OBJECT_TRACEFRAME_INFO.
10702 (struct target_ops) <to_traceframe_info>: New field.
10703 (target_traceframe_info): New.
10704 * target.c (update_current_target): Inherit and default
10705 to_traceframe_info.
10706 * remote.c (PACKET_qXfer_traceframe_info): New.
10707 (remote_protocol_features): Register qXfer:traceframe-info:read.
10708 (remote_xfer_partial): Handle TARGET_OBJECT_TRACEFRAME_INFO.
10709 (remote_traceframe_info): New.
10710 (init_remote_ops): Install it.
10711 (_initialize_remote): Install "set/show remote traceframe-info"
10712 commands.
10713 * tracepoint.h (parse_traceframe_info): Declare.
10714 * tracepoint.c (struct mem_range): New.
10715 (mem_range_s): New typedef.
10716 (struct traceframe_info): New.
10717 (traceframe_info): New global.
10718 (free_traceframe_info): New function.
10719 (clear_traceframe_info): New function.
10720 (start_tracing, tfind_1, set_traceframe_number): Clear traceframe
10721 info.
10722 (build_traceframe_info): New function.
10723 (tfile_traceframe_info): New function.
10724 (init_tfile_ops): Install tfile_traceframe_info.
10725 (traceframe_info_start_memory, free_result): New functions.
10726 (memory_attributes, traceframe_info_elements): New globals.
10727 (parse_traceframe_info, get_traceframe_info): New functions.
10728 * features/traceframe-info.dtd: New file.
10729 * Makefile.in (XMLFILES): Add traceframe-info.dtd.
10730
4e07d55f
PA
107312011-02-14 Pedro Alves <pedro@codesourcery.com>
10732
10733 Base support for <unavailable> value contents.
10734
4e07d55f
PA
10735 * value.h (value_bytes_available): Declare.
10736 (mark_value_bytes_unavailable): Declare.
10737 * value.c (struct range): New struct.
10738 (range_s): New typedef.
10739 (ranges_overlap): New function.
10740 (range_lessthan): New function.
10741 (ranges_contain_p): New function.
10742 (struct value) <unavailable>: New field.
10743 (value_bytes_available): New function.
10744 (mark_value_bytes_unavailable): New function.
10745 (require_not_optimized_out): Constify parameter.
10746 (require_available): New function.
10747 (value_contents_all, value_contents): Require all bytes be
10748 available.
10749 (value_free): Free `unavailable'.
10750 (value_copy): Copy `unavailable'.
10751 * valprint.h (val_print_unavailable): Declare.
10752 * valprint.c (valprint_check_validity): Rename `offset' parameter
10753 to `embedded_offset'. If printing a scalar, check whether the
10754 value chunk is available.
10755 (val_print_unavailable): New.
10756 (val_print_scalar_formatted): Check whether the value is
10757 available.
10758 * python/py-prettyprint.c (apply_val_pretty_printer): Refuse
10759 pretty-printing unavailable values.
10760
bc9a5551
JK
107612011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
10762
10763 Fix const/volatile qualifiers of C++ types, PR c++/12328.
10764 * c-typeprint.c (c_type_print_args): Update the function comment. New
10765 variable param_type, initialize it. Remove const/volatile qualifiers
10766 for language_cplus and !show_artificial. Use param_type.
10767
93b55aa1
JK
107682011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
10769
10770 * symtab.c (find_pc_sect_line): New variable objfile, initialize it
10771 from S. Iterate S using ALL_OBJFILE_SYMTABS. Verify BV for each S.
10772 * symtab.h (struct symtab) <next>: Comment extension.
10773
181d9476
YQ
107742011-02-12 Yao Qi <yao@codesourcery.com>
10775
10776 * Makefile.in (CLEANDIRS): Remove duplicated common dir.
10777
b708a5c7
JK
107782011-02-11 Yao Qi <yao@codesourcery.com>
10779
10780 * common/Makefile.in: Add copyright header.
10781
c5187ac6
PA
107822011-02-11 Pedro Alves <pedro@codesourcery.com>
10783
10784 * infrun.c (proceed): Move switching out and in of tfind mode from
10785 here ...
10786 (fetch_inferior_event): ... to here.
10787
4f3e6fb7
YQ
107882011-02-11 Yao Qi <yao@codesourcery.com>
10789
10790 * Makefile.in: Remove signals.o from COMMON_OBS. Link
10791 libcommon.a.
10792 * configure.ac: Add common to sub dir.
10793 * configure: Regenerate.
10794
b708a5c7
JK
107952011-02-11 Yao Qi <yao@codesourcery.com>
10796
10797 Build libcommon.a.
10798
10799 * common/Makefile.in: New.
10800 * common/configure.ac: New.
10801 * common/aclocal.m4: New.
10802 * common/configure: Generate.
10803
2287cc7e
PA
108042011-02-10 Pedro Alves <pedro@codesourcery.com>
10805
10806 * vec.h (VEC_block_remove): Place VEC_ASSERT_INFO on the right
10807 side of the parenthesis.
10808
10809 Merge from GCC:
10810 2010-07-13 Jakub Jelinek <jakub@redhat.com>
fc013618 10811 * vec.h (VEC_block_remove): Fix comment.
2287cc7e 10812
fd62cb89
MS
108132011-02-08 Michael Snyder <msnyder@vmware.com>
10814
10815 * linux-nat.c (linux_nat_filter_event): Fix typo in comment.
10816
56d2815c
JK
108172011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
10818
10819 * i386-tdep.c (i386_process_record): Rename l suffixes to d suffixes
10820 in comments for pcmpgtd, pcmpeqd, psubd, paddd, pcmpgtd, pcmpeqd,
10821 psubd and paddd.
10822
4f7d61a8
JK
108232011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
10824
10825 PR 12361.
10826 * i386-tdep.c (i386_process_record) <0x660f3807>: Fix the comment to
10827 phsubsw.
10828 (i386_process_record) <lddqu>: Fix the opcode to 0xf20ff0.
10829 (i386_process_record) <0x0f3807>: Fix the comment to phsubsw.
10830
54fcddd0
UW
108312011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
10832
10833 * dwarf2read.c (read_subroutine_type): Set special calling
10834 convention flag for functions compiled by IBM XL C for OpenCL.
10835 * ppc-sysv-tdep.c: Include "dwarf2.h"
10836 (ppc_sysv_abi_push_dummy_call): Implement IBM OpenCL vector types
10837 calling convention.
10838 (do_ppc_sysv_return_value): Add FUNC_TYPE argument. Implement
10839 IBM OpenCL vector types calling convention.
10840 (ppc_sysv_abi_return_value): Pass through FUNC_TYPE.
10841 (ppc_sysv_abi_broken_return_value): Likewise.
10842 (ppc64_sysv_abi_push_dummy_call): Implement IBM OpenCL vector
10843 types calling convention.
10844 (ppc64_sysv_abi_return_value): Likewise.
10845 * spu-tdep.c: Include "dwarf2.h"
10846 (spu_return_value): Implement IBM OpenCL vector types calling
10847 convention.
10848
d6dafb7c
UW
108492011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
10850
10851 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Implement
10852 correct ABI for AltiVec vector arguments.
10853
32b72a42
PA
108542011-02-07 Pedro Alves <pedro@codesourcery.com>
10855
10856 * valprint.c (val_print): Extend comment.
10857 * ada-valprint.c (ada_valprint): Rewrite comment deferring
10858 interface explanation to val_print.
10859 (ada_val_print_array): Adjust comment to current interface.
10860 (print_field_values): Adjust comment to current interface.
10861 * c-valprint.c (c_val_print): Rewrite comment deferring interface
10862 explanation to val_print.
10863 * f-valprint.c (f_val_print): Ditto.
10864 * jv-valprint.c (java_val_print): Ditto.
10865 * m2-valprint.c (m2_val_print): Ditto.
10866 * p-valprint.c (pascal_val_print): Ditto.
10867
9998af43
TJB
108682011-02-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
10869
10870 * breakpoint.c (parse_breakpoint_sals): Fix description.
10871
505500db 108722011-02-04 Sami Wagiaalla <swagiaal@redhat.com>
9998af43 10873 Oguz Kayral <oguzkayral@gmail.com>
505500db
SW
10874
10875 * python/py-inferior.c (python_on_normal_stop): New function.
10876 (python_on_resume): New function.
10877 (python_inferior_exit): New function.
10878 (gdbpy_initialize_inferior): Add normal_stop, target_resumed, and
10879 inferior_exit observers.
10880 * python/py-evtregistry.c: New file.
10881 * python/py-threadevent.c : New file.
10882 * python/py-event.c: New file.
10883 * python/py-evts.c: New file.
10884 * python/py-continueevent.c: New file.
10885 * python/py-bpevent.c: New file.
10886 * python/py-signalevent.c: New file.
10887 * python/py-exetiedevent.c: New file.
10888 * python/py-breakpoint.c (gdbpy_breakpoint_from_bpstats): New function.
10889 Move struct breakpoint_object from here...
10890 * python/python-internal.h: ... to here.
10891 * python/py-event.h: New file.
10892 * python/py-events.h: New file.
10893 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpointstopevent.o,
10894 py-continueevent.o, py-event.o, py-eventregistry.o, py-events.o,
10895 py-exitedevent.o, py-signalstopevent.o, and py-stopevent.o.
10896 (SUBDIR_PYTHON_SRCS): Add py-breakpointstopevent.c,
10897 py-continueevent.c, py-event.c, py-eventregistry.c, py-events.c,
10898 py-exitedevent.c, py-signalstopevent.c, and py-stopevent.c.
10899 Add build rules for all the above.
10900
9e0ac564
TT
109012011-02-04 Tom Tromey <tromey@redhat.com>
10902
10903 * dwarf2read.c (dwarf2_section_empty_p): New function.
10904 (dwarf2_read_section): Use dwarf2_section_empty_p.
10905 (dwarf2_section_size): New function.
10906 (dwarf2_get_section_info): Unconditionally read section.
10907 (dwarf2_read_index): Use dwarf2_section_empty_p.
10908 (partial_read_comp_unit_head): Use dwarf2_section_size.
10909 (dwarf2_symbol_mark_computed): Likewise.
10910
eee5b35e
DD
109112011-02-04 David Daney <ddaney@caviumnetworks.com>
10912
10913 * NEWS: Add item for "catch syscall" on mips*-linux* targets.
10914
385203ed
DD
109152011-02-04 David Daney <ddaney@caviumnetworks.com>
10916
10917 * mips-linux-tdep.c: Include xml-syscall.h.
10918 (mips_linux_get_syscall_number): New function.
10919 (mips_linux_init_abi): Add calls to
10920 mips_linux_get_syscall_number() and set_xml_syscall_file_name().
10921 * data-directory/Makefile.in (SYSCALLS_FILES): Add
10922 mips-o32-linux.xml, mips-n32-linux.xml and mips-n64-linux.xml
10923 * syscalls/mips-n32-linux.xml: New file.
10924 * syscalls/mips-n64-linux.xml: New file.
10925 * syscalls/mips-o32-linux.xml: New file.
10926
9277c30c
UW
109272011-02-04 Ulrich Weigand <ulrich.weigand@linaro.org>
10928
10929 * dwarf2read.c (dwarf2_ranges_read): Skip empty range entries.
10930 Complain about inverted range entries.
10931 (dwarf2_record_block_ranges): Likewise.
10932
a3be7890
TJB
109332011-02-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
10934
10935 Fix some typos.
10936 * breakpoint.c (update_watchpoint): Fix name of the
10937 update_global_location_list function.
10938 (print_one_breakpoint): Fix typo.
10939 (_initialize_breakpoint): Remove extra space in hbreak help
10940 string.
10941 * breakpoint.h (struct bp_location) <length>: Fix field
10942 description.
10943
041274d8
PA
109442011-02-04 Pedro Alves <pedro@codesourcery.com>
10945
10946 * regcache.c (registers_changed_ptid): Don't explictly always
10947 clear `current_regcache'. Only clear current_thread_ptid and
10948 current_thread_arch when PTID matches. Only reinit the frame
10949 cache if PTID matches the current inferior_ptid. Move alloca(0)
10950 call to ...
10951 (registers_changed): ... here.
10952
c1c2ab58
UW
109532011-02-03 Ulrich Weigand <ulrich.weigand@linaro.org>
10954
10955 * arm-tdep.c (arm_skip_stack_protector): Accept any symbol that
10956 starts with __stack_chk_guard as stack guard symbol.
10957
9011945e
AB
109582011-02-03 Andrew Burgess <aburgess@broadcom.com>
10959
10960 * disasm.c (compare_lines): Handle the end of sequence markers
10961 within the line table to better support disassembling over
10962 compilation unit boundaries.
10963
e0634ccf
UW
109642011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
10965
10966 * arm-tdep.c (skip_prologue_function): Add GDBARCH and IS_THUMB
10967 arguments. Skip in-prologue calls to glibc __aeabi_read_tp
10968 implementation even if no symbols are available.
10969 (thumb_analyze_prologue): Update call to skip_prologue_function.
10970 (arm_analyze_prologue): Likewise.
10971
0e9e9abd
UW
109722011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
10973
10974 * arm-tdep.c: Include "observer.h".
10975 (arm_prologue_this_id): Use frame PC if get_frame_func returns 0.
10976 (arm_exidx_data_key): New static variable.
10977 (struct arm_exidx_entry, arm_exidx_entry_s): New data types.
10978 (struct arm_exidx_data): Likewise.
10979 (arm_exidx_data_free): New function.
10980 (arm_compare_exidx_entries): Likewise.
10981 (arm_obj_section_from_vma): Likewise.
10982 (arm_exidx_new_objfile): Likewise.
10983 (arm_find_exidx_entry): Likewise.
10984 (arm_exidx_fill_cache): Likewise.
10985 (arm_exidx_unwind_sniffer): Likewise.
10986 (arm_exidx_unwind): New global variable.
10987 (arm_gdbarch_init): Append unwinder arm_exidx_unwind.
10988 (_initialize_arm_tdep): Attach arm_exidx_new_objfile to new_objfile
10989 observer. Register arm_exidx_data_key as objfile data.
10990
2e9e421f
UW
109912011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
10992
10993 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Avoid build break
10994 due to accessing uninitialized variable. Fix indentation.
10995
580688f3
PA
109962011-02-02 Pedro Alves <pedro@codesourcery.com>
10997
10998 * c-valprint.c (c_value_print): When doing virtual base pointer
10999 adjustment, create a new value with adjusted contents rather than
11000 changing the contents of the value being printed (and getting it
11001 wrong).
11002
3d2c1d41
PA
110032011-02-02 Pedro Alves <pedro@codesourcery.com>
11004
11005 * xml-support.c (xml_find_attribute): New.
11006 (xinclude_start_include): Use it.
11007 * xml-support.h (xml_find_attribute): Declare.
11008 * memory-map.c (memory_map_start_memory)
11009 (memory_map_start_property): Use xml_find_attribute.
11010 * osdata.c (osdata_start_osdata, osdata_start_column): Use
11011 xml_find_attribute.
11012 * remote.c (start_thread): Use xml_find_attribute.
11013 * solib-target.c (library_list_start_segment)
11014 (library_list_start_section, library_list_start_library)
11015 (library_list_start_list): Use xml_find_attribute.
11016 * xml-tdesc.c (tdesc_start_target, tdesc_start_feature)
11017 (tdesc_start_union, tdesc_start_struct, tdesc_start_flags)
11018 (tdesc_start_field): Use xml_find_attribute.
11019
0af3e2db
UW
110202011-02-02 Ulrich Weigand <uweigand@de.ibm.com>
11021
11022 * opencl-lang.c (STRINGIFY): Rename to OCL_STRING.
11023 (BUILD_OCL_VTYPES): Update.
11024
c1039e3c
JB
110252011-02-02 Joel Brobecker <brobecker@adacore.com>
11026
11027 * configure.ac: Work around non-GNU sed limitation when computing
11028 python version number.
11029 * configure: Regenerate.
11030
600ea1be
JK
110312011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
11032
11033 Fix debug printing of TYPE_INSTANCE.
11034 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: New.
11035 (dump_subexp_body_standard) <TYPE_INSTANCE>: New.
11036
56c12414
JK
110372011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
11038
11039 Fix debug printing of BINOP_IN, OP_OBJC_MSGCALL,
11040 OP_F77_UNDETERMINED_ARGLIST, OP_COMPLEX, OP_OBJC_SELECTOR, OP_NAME,
11041 OP_OBJC_NSSTRING, OP_F90_RANGE and OP_DECFLOAT.
11042 * ada-operator.inc: Rename the file to ...
11043 * ada-operator.def: ... here, wrap all the entries by macro OP.
11044 * expprint.c (op_name_standard): Remove all the entries. Include
11045 "std-operator.def" instead.
11046 * expression.h (enum exp_opcode): Include "std-operator.def" and
11047 "ada-operator.def". Move all the entries ...
11048 * std-operator.def: ... here, wrap all the entries by macro OP.
11049
c52b559d
PP
110502011-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
11051
11052 * breakpoint.h (remove_jit_event_breakpoints): New prototype.
11053 * breakpoint.c (remove_jit_event_breakpoints): New function.
11054 * jit.c (jit_descriptor_addr): Delete.
11055 (registering_code): Delete.
11056 (clear_int): Delete.
11057 (jit_inferior_data): New variable.
11058 (struct jit_inferior_data): New type.
11059 (get_jit_inferior_data): New function.
11060 (jit_inferior_data_cleanup): New function.
11061 (jit_read_descriptor): Adjust.
11062 (jit_register_code): Adjust.
11063 (jit_breakpoint_re_set_internal): New function; move code here ...
11064 (jit_inferior_init): ... from here.
11065 (jit_breakpoint_re_set): Adjust.
11066 (jit_reset_inferior_data_and_breakpoints): New function.
11067 (jit_inferior_created_observer): Adjust.
11068 (jit_inferior_exit_hook): Adjust.
11069 (jit_executable_changed_observer): New function.
11070 (jit_event_handler): Adjust.
11071 (_initialize_jit): Adjust.
11072
e839132d
MS
110732011-01-31 Michael Snyder <msnyder@vmware.com>
11074
11075 * m32r-tdep.c (m32r_gdbarch_init): Replace accidentally deleted
11076 line.
11077
47a80e90
TT
110782011-01-31 Tom Tromey <tromey@redhat.com>
11079
11080 PR python/12216:
11081 * python/python.c (execute_gdb_command): Call
11082 prevent_dont_repeat.
11083 * top.c (suppress_dont_repeat): New global.
11084 (dont_repeat): Use it.
11085 (prevent_dont_repeat): New function.
11086 * command.h (prevent_dont_repeat): Declare.
11087
45a43567
TT
110882011-01-31 Tom Tromey <tromey@redhat.com>
11089
11090 * infcmd.c (finish_backward): Use breakpoint_set_silent.
11091 * python/py-breakpoint.c (bppy_set_silent): Use
11092 breakpoint_set_silent.
11093 (bppy_set_thread): Use breakpoint_set_thread.
11094 (bppy_set_task): Use breakpoint_set_task.
11095 * breakpoint.h (breakpoint_set_silent, breakpoint_set_thread)
11096 (breakpoint_set_task): Declare.
11097 (make_breakpoint_silent): Remove.
11098 * breakpoint.c (breakpoint_set_silent): New function.
11099 (breakpoint_set_thread): Likewise.
11100 (breakpoint_set_task): Likewise.
11101 (make_breakpoint_silent): Remove.
11102
09d682a4
TT
111032011-01-31 Tom Tromey <tromey@redhat.com>
11104
11105 * breakpoint.h (user_breakpoint_p): Declare.
11106 * breakpoint.c (user_breakpoint_p): New function.
11107 (breakpoint_1): Use it.
11108 (save_breakpoints): Likewise.
11109
9c4ea6c5
JB
111102011-01-31 Joel Brobecker <brobecker@adacore.com>
11111
11112 * configure.ac: Add handling of Python distribution on Windows.
11113 * python-config.py: If the LIBS, SYSLIBS, LIBPL and/or LINKFORSHARED
11114 sysconfig variables are not defined, then do not use them.
11115 On Windows, if LIBPL is not defined, then use prefix + '/libs'
11116 instead. On Windows, return all paths using forward-slashes
11117 rather than backslashes.
11118
ac534cba
JB
111192011-01-31 Joel Brobecker <brobecker@adacore.com>
11120
11121 * configure.ac: Remove fallback behavior for building
11122 against Python. Remove tweaking of Python include path.
11123 Add PYTHON_CPPFLAGS and PYTHON_LIBS substitution.
11124 (AC_TRY_LIBPYTHON): Adjust program used in linking test.
11125 If link is successful, set PYTHON_CPPFLAGS and PYTHON_LIBS.
11126 Always restore CPPFLAGS and LIBS after linking test.
11127 * configure: Regenerated.
11128 * Makefile.in (INTERNAL_CPPFLAGS): Add @PYTHON_CPPFLAGS@.
11129 (INSTALLED_LIBS, CLIBS): Add @PYTHON_LIBS@.
11130 * python/python-internal.h: Adjust includes of Python .h files.
11131
c2f0d045
JB
111322011-01-31 Joel Brobecker <brobecker@adacore.com>
11133
11134 * tracepoint.c (traceframe_walk_blocks): Add missing i18n markup
11135 in error message.
11136
6b0c4c1f
JB
111372011-01-31 Joel Brobecker <brobecker@adacore.com>
11138
11139 * inflow.c (gdb_has_a_terminal): Fix typo in interactive_mode
11140 value test.
11141
672c9795
YQ
111422011-01-31 Yao Qi <yao@codesourcery.com>
11143
11144 * arm-linux-nat.c: Update calls to regcache_register_status
11145 instead of regcache_valid_p.
11146 * aix-thread.c: Likewise.
11147 * i386gnu-nat.c: Likewise.
11148
80b23b6a
JK
111492011-01-29 Jan Kratochvil <jan.kratochvil@redhat.com>
11150
11151 Fix crash.
11152 * valops.c (compare_parameters): Verify TYPE_NFIELDS before
11153 touching TYPE_FIELD_ARTIFICIAL.
11154
4cd712bd
RE
111552011-01-28 Richard Earnshaw <rearnsha@arm.com>
11156
11157 * MAINTAINERS: Move myself from Responsible Maintainers to Authorized
11158 Committers.
11159
ffd5ec24
PA
111602011-01-28 Pedro Alves <pedro@codesourcery.com>
11161
11162 * tracepoint.c (tfile_xfer_partial): If there's no traceframe
11163 selected, don't try iterating over the traceframe's blocks.
11164 (tfile_has_stack): If there's no traceframe selected, then there's
11165 no stack.
11166 (tfile_has_registers): If there's no traceframe selected, then
11167 there's no registers.
11168
e8c9e0a1
PA
111692011-01-28 Pedro Alves <pedro@codesourcery.com>
11170
11171 * target.c (memory_xfer_partial): No need to restore shadows if we
11172 haven't read anything.
11173
de15c4ab
PA
111742011-01-28 Pedro Alves <pedro@codesourcery.com>
11175
11176 * mips-tdep.c (mips_print_register): Use get_frame_register_value
11177 and val_print_scalar_formatted.
11178
9f41c731
PA
111792011-01-27 Pedro Alves <pedro@codesourcery.com>
11180
11181 * tracepoint.c (tfile_read): New.
11182 (tfile_open): Use it.
11183 (tfile_get_traceframe_address): Use it.
11184 (tfile_trace_find): Use it.
11185 (walk_blocks_callback_func): New typedef.
11186 (match_blocktype): New function.
11187 (traceframe_walk_blocks): New function.
11188 (traceframe_find_block_type): New function.
11189 (tfile_fetch_registers, tfile_xfer_partial)
11190 (tfile_get_trace_state_variable_value): Use
11191 traceframe_find_block_type and tfile_read.
11192
cdefc55d
KB
111932011-01-26 Kevin Buettner <kevinb@redhat.com>
11194
11195 * remote-mips.c: Add internationalization mark ups. Remove
11196 trailing \n from already marked up strings.
11197
a81766d8
TT
111982011-01-26 Tom Tromey <tromey@redhat.com>
11199
11200 * python/py-prettyprint.c (print_string_repr): Clear
11201 'addressprint' option when calling val_print_string.
11202 (print_children): Handle Val_pretty_default. Clear 'addressprint'
11203 option when calling val_print_string.
11204
74aedc46
TT
112052011-01-26 Tom Tromey <tromey@redhat.com>
11206
11207 * python/python.c (gdbpy_solib_name): Use gdb_py_longest and
11208 GDB_PY_LL_ARG.
11209 * python/python-internal.h (GDB_PY_LL_ARG, GDB_PY_LLU_ARG): New
11210 macros.
11211 (gdb_py_longest, gdb_py_ulongest): New typedefs.
11212 (gdb_py_long_from_longest, gdb_py_long_from_ulongest)
11213 (gdb_py_long_as_ulongest): New defines.
11214 (gdb_py_object_from_longest, gdb_py_object_from_ulongest)
11215 (gdb_py_int_as_long): Declare.
11216 * python/py-value.c (valpy_lazy_string): Use gdb_py_longest,
11217 GDB_PY_LL_ARG, gdb_py_object_from_longest.
11218 (valpy_long): Add comment.
11219 * python/py-utils.c (get_addr_from_python): Use
11220 gdb_py_long_as_ulongest. Handle overflow properly.
11221 (gdb_py_object_from_longest): New function.
11222 (gdb_py_object_from_ulongest): Likewise.
11223 (gdb_py_int_as_long): Likewise.
11224 * python/py-type.c (typy_array): Use gdb_py_int_as_long.
11225 * python/py-symtab.c (salpy_get_pc): Use
11226 gdb_py_long_from_ulongest.
11227 (salpy_get_line): Use PyInt_FromLong.
11228 * python/py-param.c (set_parameter_value): Use
11229 gdb_py_int_as_long.
11230 * python/py-lazy-string.c (stpy_get_address): Use
11231 gdb_py_long_from_ulongest.
11232 * python/py-frame.c (frapy_pc): Use gdb_py_long_from_ulongest.
11233 * python/py-cmd.c (cmdpy_completer): Use gdb_py_int_as_long.
11234 * python/py-breakpoint.c (bppy_set_thread): Use
11235 gdb_py_int_as_long.
11236 (bppy_set_task): Likewise.
11237 (bppy_set_ignore_count): Likewise.
11238 (bppy_set_hit_count): Likewise.
11239 * python/py-block.c (blpy_get_start): Use
11240 gdb_py_object_from_ulongest.
11241 (blpy_get_end): Likewise.
11242 (gdbpy_block_for_pc): Use gdb_py_ulongest and GDB_PY_LLU_ARG.
11243
e4f6d2ec
TJB
112442011-01-25 Mathieu Lacage <mathieu.lacage@inria.fr>
11245
11246 PR/symtab 11766:
11247 * gdb/objfiles.h (struct objfile) <addr_low>: New field.
11248 * gdb/solib.c (solib_read_symbols): Check for addr_low in
11249 equality test for objfile, initialize addr_low if needed.
11250
b30aa278
PA
112512011-01-25 Pedro Alves <pedro@codesourcery.com>
11252
11253 * tui/tui-regs.c (tui_register_format): Remove dead code.
11254
ab2188aa
PA
112552011-01-25 Pedro Alves <pedro@codesourcery.com>
11256
11257 * printcmd.c (print_formatted): Use val_print_scalar_formatted
11258 instead of print_scalar_formatted.
11259 (print_scalar_formatted): Don't handle 's' format strings here,
11260 and add an assertion that we never see such format here.
11261 * valprint.h (val_print_scalar_formatted): Declare.
11262 * valprint.c (val_print_scalar_formatted): New.
11263 * c-valprint.c (c_val_print): Use val_print_scalar_formatted
11264 instead of print_scalar_formatted.
11265 * jv-valprint.c (java_val_print): Ditto.
11266 * p-valprint.c (pascal_val_print): Ditto.
11267 * ada-valprint.c (ada_val_print_1): Ditto.
11268 * f-valprint.c (f_val_print): Ditto.
11269 * infcmd.c (registers_info): Ditto.
11270 * m2-valprint.c (m2_val_print): Ditto.
11271
66d61a4c
PA
112722011-01-25 Pedro Alves <pedro@codesourcery.com>
11273
11274 * m2-valprint.c (print_unbounded_array): Pass
11275 value_contents_for_printing rather than value_contents, to
11276 m2_print_array_contents. Also pass in the value.
11277
831adc1f
JK
112782011-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
11279
11280 * dwarf2read.c (dwarf2_read_index, write_psymtabs_to_index)
11281 (save_gdb_index_command): Switch to .gdb_index version 4.
11282
20622269
PA
112832011-01-25 Pedro Alves <pedro@codesourcery.com>
11284
11285 * mi/mi-main.c (get_register): Use get_frame_register_value rather
11286 than frame_register, and always pass a valid value to val_print.
11287
585fdaa1
PA
112882011-01-25 Pedro Alves <pedro@codesourcery.com>
11289
11290 Centralize printing "<optimized out>".
11291
11292 * valprint.h (val_print_optimized_out): Declare.
11293 * cp-valprint.c (cp_print_value_fields): Use
11294 val_print_optimized_out.
11295 * jv-valprint.c (java_print_value_fields): Ditto.
11296 * p-valprint.c (pascal_object_print_value_fields): Ditto.
11297 * printcmd.c (print_formatted): Ditto.
11298 * valprint.c (valprint_check_validity): Ditto.
11299 (value_check_printable): Ditto.
11300 (val_print_optimized_out): New.
11301
29ec5263
PA
113022011-01-25 Pedro Alves <pedro@codesourcery.com>
11303
11304 * infcmd.c (default_print_registers_info): Allocate values so to
11305 never pass a NULL value to val_print.
11306
de4127a3
PA
113072011-01-25 Pedro Alves <pedro@codesourcery.com>
11308
11309 * cp-valprint.c (cp_print_value): Treat the 'skip' local as
11310 boolean. Make sure to always pass a value that matches the
11311 contents buffer to callees. Preserve `address' for following
11312 iterations.
11313 * value.c (value_contents_for_printing_const): New.
11314 (value_address): Constify value argument.
11315 * value.h (value_contents_for_printing_const): Declare.
11316 (value_address): Constify value argument.
11317
ee99023e
PA
113182011-01-25 Pedro Alves <pedro@codesourcery.com>
11319
11320 * regcache.c (struct regcache_descr): Rename
11321 sizeof_raw_register_valid_p field to sizeof_raw_register_status,
11322 and sizeof_cooked_register_valid_p to
11323 sizeof_cooked_register_status.
11324 (init_regcache_descr): Adjust.
11325 (struct regcache): Rename register_valid_p field to
11326 register_status.
11327 (regcache_xmalloc_1, regcache_xfree, regcache_save)
11328 (do_cooked_read): Adjust.
11329 (regcache_valid_p): Rename to ...
11330 (regcache_register_status): ... this. Adjust.
11331 (regcache_invalidate): Adjust.
11332 (regcache_raw_read, regcache_cooked_read, regcache_raw_write):
11333 Adjust.
11334 (regcache_raw_supply): Adjust. If buf i NULL, mark the register
11335 as unavailable, not valid.
11336 (regcache_dump): Adjust.
11337 * regcache.h (enum register_status): New.
11338 (regcache_register_status): Declare.
11339 (regcache_invalidate): Delete declaration.
11340 * corelow.c (get_core_registers): Adjust.
11341 * tracepoint.c (tfile_fetch_registers): Adjust.
11342 * trad-frame.c (REG_VALUE): Rename to ...
11343 (TF_REG_VALUE): ... this.
11344 (REG_UNKNOWN): Rename to ...
11345 (TF_REG_UNKNOWN): ... this.
11346 (trad_frame_set_value, trad_frame_set_unknown): Adjust.
11347 * mi/mi-main.c (register_changed_p): Adjust.
11348
99e42fd8
PA
113492011-01-25 Pedro Alves <pedro@codesourcery.com>
11350
11351 * regcache.c (struct regcache_descr): Remove outdated comment.
11352 (init_regcache_descr): Remove sizeof_raw_register_valid_p
11353 overallocate hack.
11354 (regcache_xmalloc): Rename to ...
11355 (regcache_xmalloc_1): ... this. Add `readonly_p' parameter.
11356 Allocate the regcache type accordingly.
11357 (regcache_xmalloc): New as wrapper around regcache_xmalloc_1.
11358 (regcache_xfree): Asser the source is also readonly. Copy sizeof
11359 cooked registers, not raw.
11360 (regcache_dup_no_passthrough): Delete.
11361 (get_thread_arch_regcache): Use regcache_xmalloc_1.
11362 * h8300-tdep.c (h8300_push_dummy_call): Tweak comment to not
11363 mention obsolete write_register_bytes.
11364 * regcache.h (regcache_dup_no_passthrough): Delete declaration.
11365
f7605bc2
PA
113662011-01-25 Pedro Alves <pedro@codesourcery.com>
11367
11368 Stop remote_read_bytes from handling partial reads itself.
11369
11370 * remote-fileio.c: Include target.h.
11371 (remote_fileio_write_bytes): Delete.
11372 (remote_fileio_func_open, remote_fileio_func_write)
11373 (remote_fileio_func_rename, remote_fileio_func_unlink): Use
11374 target_read_memory.
11375 (remote_fileio_func_stat): Use target_read_memory and
11376 target_write_memory.
11377 (remote_fileio_func_gettimeofday): Use target_write_memory.
11378 (remote_fileio_func_system): Use target_read_memory.
11379 * remote.c (remote_write_bytes): Make it static.
11380 (remote_read_bytes): Don't handle partial reads here.
11381 * remote.h (remote_read_bytes): Delete declaration.
11382
efc0eabd
PA
113832011-01-25 Pedro Alves <pedro@codesourcery.com>
11384
11385 Simplify XML parsing a bit.
11386
11387 * xml-support.h (gdb_xml_parse_quick): Declare.
11388 * xml-support.c (gdb_xml_create_parser_and_cleanup_1): Renamed
11389 from gdb_xml_create_parser_and_cleanup, and added `old_chain'
11390 parameter.
11391 (gdb_xml_create_parser_and_cleanup): Reimplement on top of
11392 gdb_xml_create_parser_and_cleanup_1.
11393 (gdb_xml_parse_quick): New.
11394 * memory-map.c (parse_memory_map): Use gdb_xml_parse_quick.
11395 * osdata.c (osdata_parse): Ditto.
11396 * remote.c (remote_threads_info): Ditto.
11397 * solib-target.c (solib_target_parse_libraries): Ditto.
11398 * xml-syscall.c (syscall_parse_xml): Ditto.
11399 * xml-tdesc.c (tdesc_parse_xml): Ditto.
11400
314d366a
KB
114012011-01-24 Kevin Buettner <kevinb@redhat.com>
11402
11403 * configure.tgt (mips*-*-elf): New; just like mips*-*-*, but
11404 with remote-mips.o added to gdb_target_obs.
11405 * Makefile.in (ALL_TARGET_OBS): Add remote-mips.o.
11406
a491d753
PA
114072011-01-24 Pedro Alves <pedro@codesourcery.com>
11408
11409 * ada-valprint.c (val_print_packed_array_elements): Pass the
11410 correct struct value to val_print.
11411 (ada_val_print_1): Ditto.
11412
490f124f
PA
114132011-01-24 Pedro Alves <pedro@codesourcery.com>
11414
11415 Don't lose embedded_offset in printing routines throughout.
11416
11417 * valprint.h (val_print_array_elements): Change prototype.
11418 * valprint.c (val_print_array_elements): Add `embedded_offset'
11419 parameter, and adjust to pass it down to val_print, while passing
11420 `valaddr' or `address' unmodified. Take embedded_offset into
11421 account when checking repetitions.
11422 * c-valprint.c (c_val_print): Pass embedded_offset to
11423 val_print_array_elements instead of adjusting `valaddr' and
11424 `address'.
11425 * m2-valprint.c (m2_print_array_contents, m2_val_print): Pass
11426 embedded_offset to val_print_array_elements instead of adjusting
11427 `valaddr'.
11428 * p-lang.h (pascal_object_print_value_fields): Adjust prototype.
11429 * p-valprint.c (pascal_val_print): Pass embedded_offset to
11430 val_print_array_elements and pascal_object_print_value_fields
11431 instead of adjusting `valaddr'.
11432 (pascal_object_print_value_fields): Add `offset' parameter, and
11433 adjust to use it.
11434 (pascal_object_print_value): Add `offset' parameter, and adjust to
11435 use it.
11436 (pascal_object_print_static_field): Use
11437 value_contents_for_printing/value_embedded_offset, rather than
11438 value_contents.
11439 * ada-valprint.c (val_print_packed_array_elements): Add `offset'
11440 parameter, and adjust to use it. Use
11441 value_contents_for_printing/value_embedded_offset, rather than
11442 value_contents.
11443 (ada_val_print): Rename `valaddr0' parameter to `valaddr'.
11444 (ada_val_print_array): Add `offset' parameter, and adjust to use
11445 it.
11446 (ada_val_print_1): Rename `valaddr0' parameter to `valaddr', and
11447 `embedded_offset' to `offset'. Don't re-adjust `valaddr'.
11448 Instead work with offsets. Use
11449 value_contents_for_printing/value_embedded_offset, rather than
11450 value_contents. Change `defer_val_int' local type to CORE_ADDR,
11451 and use value_from_pointer to extract a target pointer, rather
11452 than value_from_longest.
11453 (print_variant_part): Add `offset' parameter. Replace
11454 `outer_valaddr' parameter by a new `outer_offset' parameter.
11455 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
11456 (ada_value_print): Use
11457 value_contents_for_printing/value_embedded_offset, rather than
11458 value_contents.
11459 (print_record): Add `offset' parameter, and adjust to pass it
11460 down.
11461 (print_field_values): Add `offset' parameter. Replace
11462 `outer_valaddr' parameter by a new `outer_offset' parameter.
11463 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
11464 Use value_contents_for_printing/value_embedded_offset, rather than
11465 value_contents.
11466 * d-valprint.c (dynamic_array_type): Use
11467 value_contents_for_printing/value_embedded_offset, rather than
11468 value_contents.
11469 * jv-valprint.c (java_print_value_fields): Add `offset' parameter.
11470 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
11471 (java_print_value_fields): Take `offset' into account. Don't
11472 re-adjust `valaddr'. Instead pass down adjusted offsets.
11473 (java_val_print): Take `embedded_offset' into account. Pass it to
11474 java_print_value_fields.
11475 * f-valprint.c (f77_print_array_1): Add `embedded_offset'
11476 parameter. Don't re-adjust `valaddr' or `address'. Instead pass
11477 down adjusted offsets.
11478 (f77_print_array): Add `embedded_offset' parameter. Pass it down.
11479 (f_val_print): Take `embedded_offset' into account.
11480
7bfc9434
JB
114812011-01-21 Joel Brobecker <brobecker@adacore.com>
11482
11483 * inflow.c: Include "gdbcmd.h".
11484 (interactive_mode): New static global, moved here from top.c.
11485 (show_interactive_mode): New function, moved here from top.c.
11486 use gdb_has_a_terminal instead of input_from_terminal_p to
11487 determine the current mode.
11488 (gdb_has_a_terminal): Add handling of the "iteractive-mode"
11489 setting.
11490 (_initialize_inflow): Add the "set/show interactive-mode"
11491 commands. Moved here from top.c, after having adjusted slightly
11492 the help text.
11493 * top.c (interactive_mode, show_interactive_mode): Delete, moved
11494 to inflow.c.
11495 (input_from_terminal_p): Remove handling of "interactive-mode"
11496 setting, moved to infow.c.
11497 (init_main): Remove creation of the "set/show interactive-mode"
11498 commands, moved to inflow.c.
11499
44603653
JB
115002011-01-19 Joel Brobecker <brobecker@adacore.com>
11501
11502 * NEWS: Add entry for native ia64-hpux support.
11503
4694da01
TT
115042011-01-19 Tom Tromey <tromey@redhat.com>
11505
11506 PR mi/8618:
11507 * thread.c (free_thread): Free 'name'.
11508 (print_thread_info): Emit thread name. Change CLI output.
11509 (thread_name_command): New function.
11510 (do_captured_thread_select): Emit newline.
11511 (_initialize_thread): Register 'thread name' command.
11512 * target.h (struct target_ops) <to_thread_name>: New field.
11513 (target_thread_name): New macro.
11514 * target.c (update_current_target): Handle to_thread_name.
11515 * python/py-infthread.c (thpy_get_name): New function.
11516 (thpy_set_name): Likewise.
11517 (thread_object_getset): Add "name".
11518 * linux-nat.c (linux_nat_thread_name): New function.
11519 (linux_nat_add_target): Set to_thread_name.
11520 * gdbthread.h (struct thread_info) <name>: New field.
11521
10d44370
JB
115222011-01-18 Joel Brobecker <brobecker@adacore.com>
11523
11524 * ada-valprint.c (ada_print_scalar): Remove unsigned char downcast.
11525 (ada_val_print_1): Likewise.
11526
e3acb115
JB
115272011-01-18 Joel Brobecker <brobecker@adacore.com>
11528
11529 * rs6000-tdep.c (rs6000_skip_prologue): Make sure that the prologue
11530 upper limit address is not greater than the function end address
11531 when the upper limit could not be computed using the debugging
11532 info.
11533
dc92e161
TT
115342011-01-17 Tom Tromey <tromey@redhat.com>
11535
11536 * cli/cli-cmds.c (apropos_command): Free the compiled regex. Use
11537 get_regcomp_error.
11538 * utils.c: Include gdb_regex.h.
11539 (do_regfree_cleanup): New function.
11540 (make_regfree_cleanup): Likewise.
11541 (get_regcomp_error): Likewise.
11542 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Declare.
11543
f55af66d
TT
115442011-01-17 Tom Tromey <tromey@redhat.com>
11545
11546 * cli/cli-cmds.c (apropos_command): Fix formatting. Don't call
11547 re_compile_fastmap.
11548
a5a44b53
PM
115492011-01-17 Pierre Muller <muller@ics.u-strasbg.fr>
11550
11551 * p-exp.y (intvar): New static variable, used to set CURRENT_TYPE
11552 for internal variables.
11553 (last_was_structop): New static variable.
11554 (COMPLETE): New token.
11555 (field_exp): New rule to group all '.' suffix handling.
11556 Add mark_struct_expression calls when approriate to be able
11557 to correctly find fields for completion.
11558 (yylex): Adapt to handle field completion and set INTVAR when
11559 required.
11560
2c291032
YQ
115612011-01-14 Yao Qi <yao@codesourcery.com>
11562
11563 * arm-tdep.c (arm_register_reggroup_p): FPS register is in
11564 save_reggroup, restore_reggroup and all_reggroup.
11565
447b483c
JB
115662011-01-14 Joel Brobecker <brobecker@adacore.com>
11567
11568 * ada-valprint. (ada_printchar): Use the correct type length
11569 in call to ada_emit_char.
11570 * c-valprint.c (c_val_print): Remove cast in call to LA_PRINT_CHAR.
11571
7b64a93b
PM
115722011-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
11573
11574 * solib-som.h (hpux_major_release): Declare variable here.
11575 * solib-som.c: Remove <sys/utsname.h> header.
11576 (DEFAULT_HPUX_MAJOR_RELEASE): New macro.
11577 (hpux_major_release): Make global, change default value to
11578 DEFAULT_HPUX_MAJOR_RELEASE.
f2eb0bc8 11579 (get_hpux_major_release): Simply return HPUX_MAJOR_RELEASE.
7b64a93b
PM
11580 * hppa-hpux-nat.c: Add <sys/utsname.h> include.
11581 Add "solib-som.h" header.
11582 (set_hpux_major_release): New function.
11583 (_initialize_hppa_hpux_nat): Call set_hpux_major_release.
11584
4e18c053
MF
115852011-01-14 Mike Frysinger <vapier@gentoo.org>
11586
11587 * configure.tgt (*-*-uclinux*): Match more Linux os targets
11588
a9df6b22
JB
115892011-01-14 Joel Brobecker <brobecker@adacore.com>
11590
11591 * ia64-hpux-nat.c (ia64_hpux_fetch_register): Remove trailing
11592 new-line at end of warning message.
11593 (ia64_hpux_store_register): Remove trailing new-line at end of
11594 error message.
11595 * ia64-hpux-tdep.c: Rephrase comment.
11596 * solib-ia64-hpux.c (struct dld_info): Change type of field
11597 dld_flags from "long long" to ULONGEST.
11598
ecb956dd
PA
115992011-01-14 Pedro Alves <pedro@codesourcery.com>
11600
11601 * target.h (deprecated_child_ops): Delete declaration.
11602 * target.c (deprecated_child_ops): Delete definition.
11603
76adfcae
PA
116042011-01-14 Pedro Alves <pedro@codesourcery.com>
11605
11606 * Makefile.in (hpux-thread.o): Delete rule.
11607 * configure.ac: Don't check for HPUX DCE threads support.
11608 * configure, config.in: Regenerate.
11609 * hppa-hpux-nat.c (child_suppress_run): Delete.
11610 (hppa_hpux_child_can_run): Delete.
11611 (_initialize_hppa_hpux_nat): Don't override to_can_run.
11612 * hpux-thread.c: Delete.
11613
042e866e
JB
116142011-01-13 Joel Brobecker <brobecker@adacore.com>
11615
11616 * hpux-thread.c (hpux_pid_to_str): Delete.
11617
4ffa5a33
JB
116182011-01-13 Joel Brobecker <brobecker@adacore.com>
11619
11620 * ada-valprint.c (ada_emit_char): Remove strange code.
11621 Check that c is <= UCHAR_MAX before passing it to isascii.
11622 (char_at): Do not assume that TYPE_LEN is either 1 or 2.
11623
de8fa76c
JB
116242011-01-13 Joel Brobecker <brobecker@adacore.com>
11625
11626 * top.c (input_from_terminal_p): Restrict the use of interactive_mode
11627 to the case where instream is stdin.
11628
c4de7027
JB
116292011-01-13 Joel Brobecker <brobecker@adacore.com>
11630
11631 * ia64-tdep.h (struct regcache): Forward declare.
11632 (struct ia64_infcall_ops): New struct type.
11633 (struct gdbarch_tdep): New fields "find_global_pointer_from_solib"
11634 and "infcall_ops".
11635 * ia64-tdep.c (ia64_find_global_pointer_from_dynamic_section):
11636 Renames ia64_find_global_pointer.
11637 (ia64_find_global_pointer, ia64_allocate_new_rse_frame)
11638 (ia64_store_argument_in_slot, ia64_set_function_addr: New function.
11639 (ia64_push_dummy_call): Adjust to use the new tdep ia64_infocall_ops
11640 methods.
11641 (ia64_infcall_ops): New static global constant.
11642 (ia64_gdbarch_init): Set tdep->infcall_ops.
11643 * ia64-hpux-nat.c (ia64_hpux_xfer_solib_got): New function.
11644 (ia64_hpux_xfer_partial): Add TARGET_OBJECT_HPUX_SOLIB_GOT handing.
11645 * ia64-hpux-tdep.c: Include "regcache.h", "gdbcore.h" and "inferior.h".
11646 (ia64_hpux_dummy_code): New static global constant.
11647 (ia64_hpux_push_dummy_code, ia64_hpux_allocate_new_rse_frame)
11648 (ia64_hpux_store_argument_in_slot, ia64_hpux_set_function_addr)
11649 (ia64_hpux_dummy_id, ia64_hpux_find_global_pointer_from_solib):
11650 New function.
11651 (ia64_hpux_infcall_ops): New static global constant.
11652 (ia64_hpux_init_abi): Install gdbarch and tdep methods needed
11653 for inferior function calls to work properly on ia64-hpux.
11654
77ca787b
JB
116552011-01-13 Joel Brobecker <brobecker@adacore.com>
11656
11657 * target.h (enum target_object): Add TARGET_OBJECT_HPUX_UREGS.
11658 * ia64-tdep.h (struct frame_info): forward declaration.
11659 (struct gdbarch_tdep): Add field size_of_register_frame.
11660 * ia64-tdep.c (ia64_access_reg): Use tdep->size_of_register_frame
11661 to determine the size of the register frame.
11662 (ia64_size_of_register_frame): New function.
11663 (ia64_gdbarch_init): Set tdep->size_of_register_frame.
11664 * ia64-hpux-tdep.c: Include "target.h" and "frame.h".
11665 (IA64_HPUX_UREG_REASON): New macro.
11666 (ia64_hpux_stopped_in_syscall, ia64_hpux_size_of_register_frame):
11667 New functions.
11668 (ia64_hpux_init_abi): Set tdep->size_of_register_frame.
11669 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): New function.
11670 (ia64_hpux_xfer_partial): Add handling of TARGET_OBJECT_HPUX_UREGS
11671 objects.
11672
92c9a463
JB
116732011-01-13 Joel Brobecker <brobecker@adacore.com>
11674
11675 Add support for ia64-hpux.
11676 * config/ia64/hpux.mh, ia64-hpux-nat.c, ia64-hpux-tdep.c,
11677 ia64-hpux-tdep.h, solib-ia64-hpux.c, solib-ia64-hpux.h: New files.
11678
11679 * configure.host: Add handling for ia64-hpux hosts. Add associated
11680 floatformats.
11681 * configure.tgt: Add handling for ia64-hpux targets.
11682 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-hpux-tdep.o.
11683 (HFILES_NO_SRCDIR): Add ia64-hpux-tdep.h.
11684 (ALLDEPFILES): Add ia64-hpux-nat.c ia64-hpux-tdep.c.
11685
f688d93f
JB
116862011-01-13 Joel Brobecker <brobecker@adacore.com>
11687
11688 [ttrace] Compute thread list immediately after attach.
11689 * inf_ttrace_attach (inf_ttrace_create_threads_after_attach):
11690 New subprogram.
11691 (inf_ttrace_attach): Use it.
11692
1b89e62f
JB
116932011-01-13 Joel Brobecker <brobecker@adacore.com>
11694
11695 * libunwind-frame.c (libunwind_frame_cache): Do not return NULL
11696 if we could not determine the frame's function address. Instead,
11697 use the frame's PC, and then continue.
11698
3e5e6e2a
JB
116992011-01-13 Joel Brobecker <brobecker@adacore.com>
11700
11701 * libunwind-frame.c (__LITTLE_ENDIAN, __BIG_ENDIAN): Define if
11702 not already defined.
11703
825d6d8a
JB
117042011-01-13 Joel Brobecker <brobecker@adacore.com>
11705
11706 * ia64-tdep.c (ia64_struct_type_p): New function.
11707 (ia64_extract_return_value): Handle integral values that are
11708 less than 8 bytes long.
11709 (ia64_push_dummy_call): Likewise.
11710
7458e667
JB
117112011-01-13 Joel Brobecker <brobecker@adacore.com>
11712
11713 * ia64-tdep.c (floatformat_ia64_ext_little): Renames
11714 floatformat_ia64_ext.
11715 (floatformat_ia64_ext_big): New static const.
11716 (floatformats_ia64_ext): Set first entry to &floatformat_ia64_ext_big.
11717
1b05df00
TT
117182011-01-12 Tom Tromey <tromey@redhat.com>
11719
11720 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Fix error
11721 messages.
11722 * mi/mi-main.c (mi_cmd_thread_select): Fix error messages.
11723 (mi_cmd_thread_list_ids): Likewise.
11724 (mi_cmd_data_list_changed_registers): Likewise.
11725 (mi_cmd_data_list_register_values): Likewise.
11726 (mi_cmd_data_write_register_values): Likewise.
11727 (mi_cmd_data_evaluate_expression): Likewise.
11728 (mi_cmd_data_read_memory): Likewise.
11729 (mi_cmd_data_read_memory_bytes): Likewise.
11730 (mi_cmd_data_write_memory): Likewise.
11731 (mi_cmd_enable_timings): Likewise.
11732 * mi/mi-interp.c (mi_cmd_interpreter_exec): Fix error messages.
11733 * mi/mi-cmd-var.c (mi_cmd_var_create): Fix error messages.
11734 (mi_cmd_var_delete): Likewise.
11735 (mi_cmd_var_set_format): Likewise.
11736 (mi_cmd_var_show_format): Likewise.
11737 (mi_cmd_var_info_num_children): Likewise.
11738 (mi_cmd_var_list_children): Likewise.
11739 (mi_cmd_var_info_type): Likewise.
11740 (mi_cmd_var_info_expression): Likewise.
11741 (mi_cmd_var_show_attributes): Likewise.
11742 (mi_cmd_var_assign): Likewise.
11743 (mi_cmd_var_update): Likewise.
11744 (mi_cmd_enable_pretty_printing): Likewise.
11745 (mi_cmd_var_set_update_range): Likewise.
11746 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Fix error
11747 messages.
11748 (mi_cmd_target_file_put): Likewise.
11749 (mi_cmd_target_file_delete): Likewise.
11750 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Fix error
11751 messages.
11752 (mi_cmd_stack_info_depth): Likewise.
11753 (mi_cmd_stack_list_locals): Likewise.
11754 (mi_cmd_stack_list_args): Likewise.
11755 (mi_cmd_stack_select_frame): Likewise.
11756 (mi_cmd_stack_select_frame): Likewise.
11757 (mi_cmd_stack_info_frame): Likewise.
11758 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Fix error
11759 messages.
11760 (mi_cmd_file_list_exec_source_files): Likewise.
11761 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Fix error messages.
11762 (mi_cmd_env_cd): Likewise.
11763 (mi_cmd_env_path): Likewise.
11764 (mi_cmd_env_dir): Likewise.
11765 (mi_cmd_inferior_tty_show): Likewise.
11766 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Fix error messages.
11767 * mi/mi-cmd-break.c (mi_cmd_break_insert): Fix error messages.
11768 (mi_cmd_break_watch): Likewise.
11769
ad422571
TJB
117702011-01-12 Thiago Jung Bauermann <bauerman@br.ibm.com>
11771
11772 * ppc-linux-nat.c (booke_cmp_hw_point): Fix whitespace.
11773 (ppc_linux_insert_hw_breakpoint): Likewise.
11774 (ppc_linux_remove_hw_breakpoint): Likewise.
11775 (ppc_linux_insert_watchpoint): Likewise.
11776
c2ff108b
JK
117772011-01-12 Andrew Burgess <aburgess@broadcom.com>
11778 Jan Kratochvil <jan.kratochvil@redhat.com>
11779
11780 PR fortran/11104 and DWARF unbound arrays detection.
11781 * dwarf2read.c (read_subrange_type): Set zero length on unspecified
11782 upper bound. Set TYPE_HIGH_BOUND_UNDEFINED if not language_ada on
11783 unspecified upper bound.
11784 * eval.c (evaluate_subexp_standard) <multi_f77_subscript>: Remove
11785 variables array_size_array, tmp_type and offset_item. New variable
11786 array. Remove call to f77_get_upperbound. New variables array_type
11787 and index. Call value_subscripted_rvalue for each dimenasion. Remove
11788 the final call to deprecated_set_value_type.
11789
41e8491f
JK
117902011-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
11791
11792 Make value allocations more lazy.
11793 * ada-lang.c (coerce_unspec_val_to_type): Use allocate_value_lazy
11794 instead of allocate_value and set_value_lazy when possible.
f2eb0bc8 11795 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use allocate_value_lazy
41e8491f
JK
11796 instead of allocate_value and set_value_lazy.
11797 * findvar.c (value_of_register_lazy): Likewise.
11798 (read_var_value): Remove V preallocation, call just check_typedef in
f2eb0bc8 11799 advance. Move allocate_value to LOC_CONST, LOC_LABEL,
41e8491f
JK
11800 LOC_CONST_BYTES. Use allocate_value_lazy in LOC_STATIC, LOC_ARG,
11801 LOC_REF_ARG, LOC_LOCAL, LOC_BLOCK. Set ADDR instead of
11802 set_value_address and break in LOC_BLOCK. Use allocate_value_lazy and
11803 remove lval_memory set in LOC_REGPARM_ADDR. Use allocate_value_lazy
11804 in LOC_UNRESOLVED and LOC_OPTIMIZED_OUT. Add setting lval_memory at
11805 the end, remove set_value_lazy there.
11806 * valarith.c (value_subscripted_rvalue): Use allocate_value_lazy
11807 instead of allocate_value and set_value_lazy when possible.
11808 * valops.c (value_fetch_lazy): Do nop for value_optimized_out VAL.
11809 * value.c (allocate_computed_value): Use allocate_value_lazy instead
11810 of allocate_value and set_value_lazy.
11811 (value_from_contents_and_address): Use allocate_value_lazy instead of
11812 allocate_value and set_value_lazy when possible.
11813
b716877b
AB
118142011-01-12 Andrew Burgess <aburgess@broadcom.com>
11815
11816 * disasm.c (dump_insns): Support dumping opcodes for MI.
11817 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Allow mode to control
11818 dumping of instruction opcodes.
11819
d5ae309f
JB
118202011-01-09 Robert Millan <rmh@gnu.org> (tiny patch)
11821
11822 * configure.tgt: Detect GNU/kFreeBSD and set `gdb_osabi'
11823 appropiately.
11824
98871305
TT
118252011-01-11 Tom Tromey <tromey@redhat.com>
11826
11827 * thread.c (do_captured_thread_select): Emit newline before
11828 printing frame.
11829
c378eb4e
MS
118302011-01-11 Michael Snyder <msnyder@vmware.com>
11831
11832 * s390-tdep.c: Comment cleanup, mostly periods and spaces.
11833 * score-tdep.c: Ditto.
11834 * score-tdep.h: Ditto.
11835 * ser-base.c: Ditto.
11836 * ser-go32.c: Ditto.
11837 * serial.c: Ditto.
11838 * serial.h: Ditto.
11839 * ser-mingw.c: Ditto.
11840 * ser-pipe.c: Ditto.
11841 * ser-tcp.c: Ditto.
11842 * ser-unix.c: Ditto.
11843 * sh64-tdep.c: Ditto.
11844 * shnbsd-nat.c: Ditto.
11845 * sh-tdep.c: Ditto.
11846 * sh-tdep.h: Ditto.
11847 * solib.c: Ditto.
11848 * solib-darwin.c: Ditto.
11849 * solib-frv.c: Ditto.
11850 * solib.h: Ditto.
11851 * solib-irix.c: Ditto.
11852 * solib-osf.c: Ditto.
11853 * solib-pa64.c: Ditto.
11854 * solib-som.c: Ditto.
11855 * solib-spu.c: Ditto.
11856 * solib-sunos.c: Ditto.
11857 * solib-svr4.c: Ditto.
11858 * solist.h: Ditto.
11859 * sol-thread.c: Ditto.
11860 * somread.c: Ditto.
11861 * source.c: Ditto.
11862 * source.h: Ditto.
11863 * sparc64-linux-tdep.c: Ditto.
11864 * sparc64-tdep.c: Ditto.
11865 * sparc-linux-nat.c: Ditto.
11866 * sparc-linux-tdep.c: Ditto.
11867 * sparc-sol2-nat.c: Ditto.
11868 * sparc-sol2-tdep.c: Ditto.
11869 * sparc-tdep.c: Ditto.
11870 * sparc-tdep.h: Ditto.
11871 * spu-tdep.c: Ditto.
11872 * stabsread.c: Ditto.
11873 * stabsread.h: Ditto.
11874 * stack.c: Ditto.
11875 * symfile.c: Ditto.
11876 * symfile.h: Ditto.
11877 * symmisc.c: Ditto.
11878 * symtab.c: Ditto.
11879 * symtab.h: Ditto.
11880 * target.c: Ditto.
11881 * target-descriptions.c: Ditto.
11882 * target-descriptions.h: Ditto.
11883 * target.h: Ditto.
11884 * target-memory.c: Ditto.
11885 * terminal.h: Ditto.
11886 * thread.c: Ditto.
11887 * top.c: Ditto.
11888 * tracepoint.c: Ditto.
11889 * tracepoint.h: Ditto.
11890 * trad-frame.h: Ditto.
11891 * typeprint.c: Ditto.
11892
581e13c1
MS
118932011-01-11 Michael Snyder <msnyder@vmware.com>
11894
11895 * ui-file.c: Comment cleanup, mostly periods and spaces.
11896 * ui-file.h: Ditto.
11897 * ui-out.c: Ditto.
11898 * ui-out.h: Ditto.
11899 * utils.c: Ditto.
11900 * v850-tdep.c: Ditto.
11901 * valarith.c: Ditto.
11902 * valops.c: Ditto.
11903 * valprint.c: Ditto.
11904 * valprint.h: Ditto.
11905 * value.c: Ditto.
11906 * value.h: Ditto.
11907 * varobj.c: Ditto.
11908 * varobj.h: Ditto.
11909 * vax-tdep.c: Ditto.
11910 * vec.c: Ditto.
11911 * vec.h: Ditto.
11912 * version.h: Ditto.
11913 * windows-nat.c: Ditto.
11914 * windows-tdep.c: Ditto.
11915 * xcoffread.c: Ditto.
11916 * xcoffsolib.c: Ditto.
11917 * xml-support.c: Ditto.
11918 * xstormy16-tdep.c: Ditto.
11919 * xtensa-tdep.c: Ditto.
11920 * xtensa-tdep.h: Ditto.
11921
90e4670f
TJB
119222011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
11923
11924 * breakpoint.c (resources_needed_watchpoint): Fix indentation.
11925 * gdbtypes.c (is_scalar_type_recursive): Fix formatting.
11926
e09342b5
TJB
119272011-01-11 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
11928 Thiago Jung Bauermann <bauerman@br.ibm.com>
11929
11930 Implement support for PowerPC BookE ranged watchpoints.
f2eb0bc8 11931 * breakpoint.h
e09342b5
TJB
11932 (struct breakpoint_ops) <resources_needed>: New method.
11933 Initialize to NULL in all existing breakpoint_ops instances.
11934 (struct breakpoint) <exact>: New field.
11935 (target_exact_watchpoints): Declare external global.
11936 * breakpoint.c (target_exact_watchpoints): New global flag.
11937 (update_watchpoint): Set b->type to bp_hardware_watchpoint and
11938 b->enable_state to bp_enabled before calling
11939 hw_watchpoint_used_count.
11940 (hw_watchpoint_used_count): Iterate over all bp_locations in a
11941 watchpoint. Call breakpoint's breakpoint_ops.resources_needed
11942 if available.
11943 (insert_watchpoint, remove_watchpoint): Use fixed length of 1 byte
11944 if the watchpoint is exact.
11945 (resources_needed_watchpoint): New function.
11946 (watchpoint_breakpoint_ops): Add resources_needed_watchpoint.
11947 (watch_command_1): Set b->exact if the user asked for an exact
11948 watchpoint and one can be set.
11949 (can_use_hardware_watchpoint): Add exact_watchpoints argument.
11950 Pass fixed length of 1 to target_region_ok_for_hw_watchpoint if
11951 the user asks for an exact watchpoint and one can be set. Return
11952 number of needed debug registers to watch the expression.
11953 * gdbtypes.c (is_scalar_type): New function, based on
11954 valprint.c:scalar_type_p.
11955 (is_scalar_type_recursive): New function.
11956 * gdbtypes.h (is_scalar_type_recursive): Declare.
11957 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Always
11958 handle regions when ranged watchpoints are available.
11959 (create_watchpoint_request): New function.
11960 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
11961 create_watchpoint_request.
11962 * rs6000-tdep.c (show_powerpc_exact_watchpoints): New function.
11963 (_initialize_rs6000_tdep): Add `exact-watchpoints' boolean to the
11964 `set powerpc' and `show powerpc' commands.
11965 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
11966 Mention documentation comment in the target macro.
11967 (target_region_ok_for_hw_watchpoint): Document return value.
11968
9fa40276
TJB
119692011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
11970
11971 * breakpoint.c (update_watchpoint): Decide on using a software or
11972 hardware watchpoint after the bp_locations are created.
11973
77b06cd7
TJB
119742010-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
11975
11976 Convert hardware watchpoints to use breakpoint_ops.
11977 * breakpoint.h (breakpoint_ops) <insert>: Rename to...
11978 <insert_location>: ... this. Return int instead of void.
11979 Accept pointer to struct bp_location instead of pointer to
11980 struct breakpoint. Adapt all implementations.
f2eb0bc8 11981 (breakpoint_ops) <remove>: Rename to...
77b06cd7
TJB
11982 <remove_location>: ... this. Accept pointer to struct bp_location
11983 instead of pointer to struct breakpoint. Adapt all implementations.
11984 * breakpoint.c (insert_catchpoint): Delete function.
11985 (insert_bp_location): Call the watchpoint or catchpoint's
11986 breakpoint_ops.insert method.
11987 (remove_breakpoint_1): Call the watchpoint or catchpoint's
11988 breakpoint_ops.remove method.
11989 (insert_watchpoint, remove_watchpoint): New functions.
11990 (watchpoint_breakpoint_ops): New structure.
11991 (watch_command_1): Initialize the OPS field.
11992 * inf-child.c (inf_child_insert_fork_catchpoint)
11993 (inf_child_remove_fork_catchpoint, inf_child_insert_vfork_catchpoint)
11994 (inf_child_remove_vfork_catchpoint, inf_child_insert_exec_catchpoint)
11995 (inf_child_remove_exec_catchpoint, inf_child_set_syscall_catchpoint):
11996 Delete functions.
11997 (inf_child_target): Remove initialization of to_insert_fork_catchpoint,
11998 to_remove_fork_catchpoint, to_insert_vfork_catchpoint,
11999 to_remove_vfork_catchpoint, to_insert_exec_catchpoint,
12000 to_remove_exec_catchpoint and to_set_syscall_catchpoint.
12001 * target.c (update_current_target): Change default implementation of
12002 to_insert_fork_catchpoint, to_remove_fork_catchpoint,
12003 to_insert_vfork_catchpoint, to_remove_vfork_catchpoint,
12004 to_insert_exec_catchpoint, to_remove_exec_catchpoint and
12005 to_set_syscall_catchpoint to return_one.
12006 (debug_to_insert_fork_catchpoint, debug_to_insert_vfork_catchpoint)
12007 (debug_to_insert_exec_catchpoint): Report return value.
12008 * target.h (to_insert_fork_catchpoint, to_insert_vfork_catchpoint)
12009 (to_insert_exec_catchpoint): Change declaration to return int instead
12010 of void.
12011
9b20d036
MS
120122011-01-11 Michael Snyder <msnyder@vmware.com>
12013
12014 * arm-tdep.c: Internationalization.
12015 * c-lang.c: Ditto.
12016 * charset.c: Ditto.
12017 * fork-child.c: Ditto.
12018 * nto-procfs.c: Ditto.
12019 * ppc-sysv-tdep.c: Ditto.
12020 * procfs.c: Ditto.
12021 * remote-mips.c: Ditto.
12022 * remote.c: Ditto.
12023 * rs6000-nat.c: Ditto.
12024 * rs6000-tdep.c: Ditto.
12025 * target.c: Ditto.
12026 * valops.c: Ditto.
12027 * value.c: Ditto.
12028 * xml-support.c: Ditto.
12029 * mi/mi-cmd-break.c: Ditto.
12030 * mi/mi-cmd-var.c: Ditto.
12031 * mi/mi-interp.c: Ditto.
12032 * mi/mi-main.c: Ditto.
12033
dae477fe
AB
120342011-01-11 Andrew Burgess <aburgess@broadcom.com>
12035
12036 * remote-sim.c (gdbsim_store_register): Update API to
12037 sim_store_register to check more error conditions.
12038
0df8b418
MS
120392011-01-10 Michael Snyder <msnyder@vmware.com>
12040
12041 * nto-procfs.c: Comment cleanup, mostly periods and spaces.
12042 * nto-tdep.c: Ditto.
12043 * nto-tdep.h: Ditto.
12044 * objc-exp.y: Ditto.
12045 * objc-lang.c: Ditto.
12046 * objfiles.c: Ditto.
12047 * objfiles.h: Ditto.
12048 * observer.c: Ditto.
12049 * opencl-lang.c: Ditto.
12050 * osabi.c: Ditto.
12051 * parse.c: Ditto.
12052 * parser-defs.h: Ditto.
12053 * p-exp.y: Ditto.
12054 * p-lang.c: Ditto.
12055 * posix-hdep.c: Ditto.
12056 * ppcbug-rom.c: Ditto.
12057 * ppc-linux-nat.c: Ditto.
12058 * ppc-linux-tdep.c: Ditto.
12059 * ppc-linux-tdep.h: Ditto.
12060 * ppcnbsd-tdep.c: Ditto.
12061 * ppcobsd-tdep.c: Ditto.
12062 * ppcobsd-tdep.h: Ditto.
12063 * ppc-sysv-tdep.c: Ditto.
12064 * ppc-tdep.h: Ditto.
12065 * printcmd.c: Ditto.
12066 * proc-abi.c: Ditto.
12067 * proc-flags.c: Ditto.
12068 * procfs.c: Ditto.
12069 * proc-utils.h: Ditto.
12070 * progspace.h: Ditto.
12071 * prologue-value.c: Ditto.
12072 * prologue-value.h: Ditto.
12073 * psympriv.h: Ditto.
12074 * psymtab.c: Ditto.
12075 * p-typeprint.c: Ditto.
12076 * p-valprint.c: Ditto.
12077 * ravenscar-sparc-thread.c: Ditto.
12078 * ravenscar-thread.c: Ditto.
12079 * ravenscar-thread.h: Ditto.
12080 * record.c: Ditto.
12081 * regcache.c: Ditto.
12082 * regcache.h: Ditto.
12083 * remote.c: Ditto.
12084 * remote-fileio.c: Ditto.
12085 * remote-fileio.h: Ditto.
12086 * remote.h: Ditto.
12087 * remote-m32r-sdi.c: Ditto.
12088 * remote-mips.c: Ditto.
12089 * remote-sim.c: Ditto.
12090 * rs6000-aix-tdep.c: Ditto.
12091 * rs6000-nat.c: Ditto.
12092 * rs6000-tdep.c: Ditto.
12093
0d7a18f7
MS
120942011-01-10 Michael Snyder <msnyder@vmware.com>
12095
12096 * charset.c (validate): Internationalization.
12097 * coffread.c (read_one_sym): Ditto.
12098 * dwarf2read.c (dwarf2_attach_fields_to_type): Ditto.
12099 * h8300-tdep.c (H8300_extract_return_value): Ditto.
12100 * inflow.c (new_tty): Ditto.
12101 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Ditto.
12102 * m32c-tdep.c (m32c_return_value): Ditto.
12103 * mep-tdep.c (mep_store_return_value): Ditto.
12104 * score-tdep.c (score7_fetch_insn): Ditto.
12105 * ser-mingw.c (pipe_windows_open): Ditto.
12106 * sh64-tdep.c (sh64_extract_return_value): Ditto.
12107 * spu-tdep.c (spu_register_type): Ditto.
12108 * tracepoint.c (trace_find_command): Ditto.
12109 * valarith.c (value_pos): Ditto.
12110
9a153e0b
JB
121112011-01-10 Joel Brobecker <brobecker@adacore.com>
12112
12113 * ada-valprint.c (printstr): Minor comment reformatting.
12114
35ecd2d6
MS
121152011-01-08 Michael Snyder <msnyder@vmware.com>
12116
12117 * m32r-rom.c (m32r_upload_command): Fix up ARI warnings for _
12118 markup.
12119
1777feb0
MS
121202011-01-08 Michael Snyder <msnyder@vmware.com>
12121
12122 * h8300-tdep.c: Comment cleanup, mostly periods and spaces.
12123 * hppa-hpux-tdep.c: Ditto.
12124 * hppa-linux-nat.c: Ditto.
12125 * hppa-linux-tdep.c: Ditto.
12126 * hppanbsd-tdep.c: Ditto.
12127 * hppa-tdep.c: Ditto.
12128 * hppa-tdep.h: Ditto.
12129 * hpux-thread.c: Ditto.
12130 * i386-cygwin-tdep.c: Ditto.
12131 * i386-darwin-nat.c: Ditto.
12132 * i386gnu-nat.c: Ditto.
12133 * i386-linux-nat.c: Ditto.
12134 * i386-linux-tdep.c: Ditto.
12135 * i386-nat.c: Ditto.
12136 * i386-nat.h: Ditto.
12137 * i386nbsd-tdep.c: Ditto.
12138 * i386-sol2-nat.c: Ditto.
12139 * i386-stub.c: Ditto.
12140 * i386-tdep.c: Ditto.
12141 * i386-tdep.h: Ditto.
12142 * i387-tdep.c: Ditto.
12143 * ia64-linux-nat.c: Ditto.
12144 * ia64-linux-tdep.c: Ditto.
12145 * ia64-tdep.c: Ditto.
12146 * infcall.c: Ditto.
12147 * infcall.h: Ditto.
12148 * infcmd.c: Ditto.
12149 * inferior.c: Ditto.
12150 * inferior.h: Ditto.
12151 * infloop.c: Ditto.
12152 * inflow.c: Ditto.
12153 * infrun.c: Ditto.
12154 * interps.c: Ditto.
12155 * interps.h: Ditto.
12156 * iq2000-tdep.c: Ditto.
12157 * irix5-nat.c: Ditto.
12158 * jit.c: Ditto.
12159 * jit.h: Ditto.
12160 * jv-exp.y: Ditto.
12161 * jv-lang.c: Ditto.
12162 * jv-lang.h: Ditto.
12163 * jv-typeprint.c: Ditto.
12164 * jv-valprint.c: Ditto.
12165 * language.c: Ditto.
12166 * language.h: Ditto.
12167 * linespec.c: Ditto.
12168 * linux-fork.c: Ditto.
12169 * linux-nat.c: Ditto.
12170 * linux-thread-db.c: Ditto.
12171 * lm32-tdep.c: Ditto.
12172
025bb325
MS
121732011-01-08 Michael Snyder <msnyder@vmware.com>
12174
12175 * m2-exp.y: Comment cleanup, mostly periods and spaces.
12176 * m2-lang.c: Ditto.
12177 * m2-typeprint.c: Ditto.
12178 * m2-valprint.c: Ditto.
12179 * m32c-tdep.c: Ditto.
12180 * m32r-linux-nat.c: Ditto.
12181 * m32r-rom.c: Ditto.
12182 * m32r-tdep.c: Ditto.
12183 * m32r-tdep.h: Ditto.
12184 * m68hc11-tdep.c: Ditto.
12185 * m58klinux-nat.c: Ditto.
12186 * m68k-tdep.c: Ditto.
12187 * m88k-tdep.c: Ditto.
12188 * m88k-tdep.h: Ditto.
12189 * machoread.c: Ditto.
12190 * macrocmd.c: Ditto.
12191 * macroexp.c: Ditto.
12192 * macrotab.c: Ditto.
12193 * main.c: Ditto.
12194 * maint.c: Ditto.
12195 * mdebugread.c: Ditto.
12196 * mdebugread.h: Ditto.
12197 * memattr.c: Ditto.
12198 * memattr.h: Ditto.
12199 * memory-map.h: Ditto.
12200 * mep-tdep.c: Ditto.
12201 * microblaze-rom.c: Ditto.
12202 * microblaze-tdep.c: Ditto.
12203 * minsyms.c: Ditto.
12204 * mips-irix-tdep.c: Ditto.
12205 * mips-linux-nat.c: Ditto.
12206 * mips-linux-tdep.c: Ditto.
12207 * mips-linux-tdep.h: Ditto.
12208 * mipsnbsd-nat.c: Ditto.
12209 * mipsnbsd-tdep.c: Ditto.
12210 * mipsread.c: Ditto.
12211 * mips-tdep.c: Ditto.
12212 * mips-tdep.h: Ditto.
12213 * mn10300-linux-tdep.c: Ditto.
12214 * mn10300-tdep.c: Ditto.
12215 * mn10300-tdep.h: Ditto.
12216 * monitor.c: Ditto.
12217 * monitor.h: Ditto.
12218 * moxie-tdep.c: Ditto.
12219 * moxie-tdep.h: Ditto.
12220 * mt-tdep.c: Ditto.
12221
1642781b
MF
122222011-01-08 Mike Frysinger <vapier@gentoo.org>
12223
12224 * bfin-tdep.h (BFIN_A0_DOT_W_REGNUM): Fix typo in name.
12225
394b0adb
JB
122262011-01-08 Robert Millan <rmh@gnu.org>
12227
12228 * fbsd-nat.c (fbsd_find_memory_regions): Fix typo.
12229
b670013c
MS
122302011-01-07 Michael Snyder <msnyder@vmware.com>
12231
12232 * charset.c (_initialize_charset): Fix typo in string.
12233
a743e542
MS
122342011-01-07 Michael Snyder <msnyder@vmware.com>
12235
12236 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Mark up error message
12237 for i18n.
f2eb0bc8 12238 * tui/tui-layout.c (tui_set_layout_for_display_command):
a743e542
MS
12239 Split line so that operator goes to beginning of line.
12240 * tui/tui-winsource.c (tui_horizontal_source_scroll): Move
12241 assignment out of if statement.
12242
0963b4bd
MS
122432011-01-07 Michael Snyder <msnyder@vmware.com>
12244
12245 * ada-lang.c: Comment cleanup, mostly periods and spaces.
12246 * ada-lang.h: Ditto.
12247 * ada-tasks.c: Ditto.
12248 * ada-valprint.c: Ditto.
12249 * aix-threads.c: Ditto.
12250 * alpha-linux-nat.c: Ditto.
12251 * alpha-linux-tdep.c: Ditto.
12252 * alpha-mdebug-tdep.c: Ditto.
12253 * alpha-nat.c: Ditto.
12254 * alpha-osf1-tdep.c: Ditto.
12255 * alpha-tdep.c: Ditto.
12256 * alphabsd-nat.c: Ditto.
12257 * alphabsd-tdep.c: Ditto.
12258 * amd64-darwin-tdep.c: Ditto.
12259 * amd64-linux-nat.c: Ditto.
12260 * amd64-linux-tdep.c: Ditto.
12261 * amd64-sol2-tdep.c: Ditto.
12262 * amd64-tdep.c: Ditto.
12263 * amd64-fbsd-tdep.c: Ditto.
12264 * amd64-nbsd-tdep.c: Ditto.
12265 * amd64-obsd-tdep.c: Ditto.
12266 * amd64-linux-nat.c: Ditto.
12267 * amd64-linux-tdep.c: Ditto.
12268 * arm-tdep.c: Ditto.
12269 * arm-tdep.h: Ditto.
12270 * armnbsd-nat.c: Ditto.
12271 * avr-tdep.c: Ditto.
12272 * bfin-tdep.c: Ditto.
12273 * bsd-kvm.c: Ditto.
12274 * c-typeprintc: Ditto.
12275 * c-valprint.c: Ditto.
12276 * coff-pe-read.h: Ditto.
12277 * coffreead.c: Ditto.
12278 * cris-tdep.c: Ditto.
12279 * d-lang.c: Ditto.
12280 * darwin-nat-info.c: Ditto.
12281 * darwin-nat.c: Ditto.
12282 * dbug-rom.c: Ditto.
12283 * dbxread.c: Ditto.
12284 * dcache.c: Ditto.
12285 * dcache.h: Ditto.
12286 * dec-thread.c: Ditto.
12287 * defs.h: Ditto.
12288 * demangle.c: Ditto.
12289 * dicos-tdep.c: Ditto.
12290 * dictionary.c: Ditto.
12291 * dictionary.h: Ditto.
12292 * dink32-rom.c: Ditto.
12293 * disasm.c: Ditto.
12294 * doublest.c: Ditto.
12295 * dsrec.c: Ditto.
12296 * dummy-frame.c: Ditto.
12297 * dwarf2-frame.c: Ditto.
12298 * dwarf2expr.c: Ditto.
12299 * dwarf2loc.c: Ditto.
12300 * dwarf2read.c: Ditto.
12301 * elfread.c: Ditto.
12302 * environ.c: Ditto.
12303 * eval.c: Ditto.
12304 * event-top.h: Ditto.
12305 * exceptions.c: Ditto.
12306 * exceptions.h: Ditto.
12307 * exec.c: Ditto.
12308 * expprint.c: Ditto.
12309 * expression.h: Ditto.
12310 * f-exp.y: Ditto.
12311 * f-lang.c: Ditto.
12312 * f-lang.h: Ditto.
12313 * f-typeprint.c: Ditto.
12314 * f-valprint.c: Ditto.
12315 * fbsd-nat.c: Ditto.
12316 * findvar.c: Ditto.
12317 * fork-child.c: Ditto.
12318 * frame.c: Ditto.
12319 * frame.h: Ditto.
12320 * frv-linux-tdep.c: Ditto.
12321 * frv-tdep.c: Ditto.
12322 * gcore.c: Ditto.
12323 * gdb-stabs.h: Ditto.
12324 * gdb_assert.h: Ditto.
12325 * gdb_string.h: Ditto.
12326 * gdb_thread_db.h: Ditto.
12327 * gdb_wait.h: Ditto.
12328 * gdbarch.sh: Ditto.
12329 * gdbcore.h: Ditto.
12330 * gdbthread.h: Ditto.
12331 * gdbtypes.c: Ditto.
12332 * gdbtypes.h: Ditto.
12333 * gnu-nat.c: Ditto.
12334 * gnu-nat.h: Ditto.
12335 * gnu-v2-abi.c: Ditto.
12336 * gnu-v3-abi.c: Ditto.
12337 * go32-nat.c: Ditto.
12338 * gdbarch.c: Regenerate.
12339 * gdbarch.h: Regenerate.
12340
ac74f770
MS
123412011-01-07 Michael Snyder <msnyder@vmware.com>
12342
12343 * ax-gdb.c: Adjust some long output strings.
12344 * breakpoint.c: Ditto.
12345 * charset.c: Ditto.
12346 * cp-abi.c: Ditto.
12347 * infcall.c: Ditto.
12348 * infrun.c: Ditto.
12349 * linux-nat.c: Ditto.
12350 * solib-pa64.c: Ditto.
12351 * solib-som.c: Ditto.
12352
d8e22779
TT
123532011-01-06 Tom Tromey <tromey@redhat.com>
12354
12355 PR python/12367:
12356 * NEWS: Add item.
12357 * python/python.c (GdbMethods): Add "newest_frame" method.
12358 * python/python-internal.h (gdbpy_newest_frame): Declare.
12359 * python/py-frame.c (gdbpy_newest_frame): New function.
12360
a255712f
PP
123612010-01-06 Paul Pluzhnikov <ppluzhnikov@google.com>
12362
12363 * jit.h (struct jit_code_entry): use ULONGEST for symfile_size.
12364 * jit.c (jit_debug): New variable.
12365 (show_jit_debug): New function.
12366 (struct target_buffer): Use ULONGEST.
12367 (bfd_open_from_target_memory): Likewise.
12368 (jit_register_code, jit_inferior_init): Add debug output.
12369 (_initialize_jit): Register "debug jit" command.
12370
ccfc3d6e
TT
123712011-01-06 Tom Tromey <tromey@redhat.com>
12372
12373 * frame.h (enum frame_type) <INLINE_FRAME>: Fix comment.
12374 * python/py-frame.c (gdbpy_initialize_frames): Add INLINE_FRAME
12375 and ARCH_FRAME.
12376
57126e4a
TT
123772011-01-06 Tom Tromey <tromey@redhat.com>
12378
12379 * python/py-frame.c (frapy_block): Use get_frame_block.
12380
16dfc9ce
JB
123812011-01-06 Joel Brobecker <brobecker@adacore.com>
12382
12383 Do not stop on SIGPRIO signals by default
12384 * infrun.c (_initialize_infrun): Unset signal_stop and
12385 signal_print for TARGET_SIGNAL_PRIO.
12386
b1ce2347
JB
123872011-01-06 Joel Brobecker <brobecker@adacore.com>
12388
12389 * ada-tasks.c: Fix style violation in comment.
12390
8f7e195f
JB
123912011-01-06 Joel Brobecker <brobecker@adacore.com>
12392
12393 * linespec.c (decode_compound, find_method): Remove trailing \n
12394 at end of error string.
12395 * solib-irix.c (irix_current_sos): Likewise.
12396 * varobj.c (uninstall_variable): Likewise.
12397
e9bdf92c
JB
123982011-01-06 Joel Brobecker <brobecker@adacore.com>
12399
12400 * copyright.py: New script.
12401 * copyright.sh (byhand): Add *.ads, *.adb, *.gpr and *.inc.
12402 Launch emacs without exec'ing. Call copyright.py afterwards.
12403
3e43a32a
MS
124042011-01-05 Michael Snyder <msnyder@vmware.com>
12405
12406 * addrmap.c: Shorten lines of >= 80 columns.
12407 * arch-utils.c: Ditto.
12408 * arch-utils.h: Ditto.
12409 * ax-gdb.c: Ditto.
12410 * ax-general.c: Ditto.
12411 * bcache.c: Ditto.
12412 * blockframe.c: Ditto.
12413 * breakpoint.c: Ditto.
12414 * buildsym.c: Ditto.
12415 * c-lang.c: Ditto.
12416 * c-typeprint.c: Ditto.
12417 * charset.c: Ditto.
12418 * coffread.c: Ditto.
12419 * command.h: Ditto.
12420 * corelow.c: Ditto.
12421 * cp-abi.c: Ditto.
12422 * cp-namespace.c: Ditto.
12423 * cp-support.c: Ditto.
12424 * dbug-rom.c: Ditto.
12425 * dbxread.c: Ditto.
12426 * defs.h: Ditto.
12427 * dfp.c: Ditto.
12428 * dfp.h: Ditto.
12429 * dictionary.c: Ditto.
12430 * disasm.c: Ditto.
12431 * doublest.c: Ditto.
12432 * dwarf2-frame.c: Ditto.
12433 * dwarf2expr.c: Ditto.
12434 * dwarf2loc.c: Ditto.
12435 * dwarf2read.c: Ditto.
12436 * elfread.c: Ditto.
12437 * eval.c: Ditto.
12438 * event-loop.c: Ditto.
12439 * event-loop.h: Ditto.
12440 * exceptions.h: Ditto.
12441 * exec.c: Ditto.
12442 * expprint.c: Ditto.
12443 * expression.h: Ditto.
12444 * f-lang.c: Ditto.
12445 * f-valprint.c: Ditto.
12446 * findcmd.c: Ditto.
12447 * frame-base.c: Ditto.
12448 * frame-unwind.c: Ditto.
12449 * frame-unwind.h: Ditto.
12450 * frame.c: Ditto.
12451 * frame.h: Ditto.
12452 * gcore.c: Ditto.
12453 * gdb-stabs.h: Ditto.
12454 * gdb_assert.h: Ditto.
12455 * gdb_dirent.h: Ditto.
12456 * gdb_obstack.h: Ditto.
12457 * gdbcore.h: Ditto.
12458 * gdbtypes.c: Ditto.
12459 * gdbtypes.h: Ditto.
12460 * inf-ttrace.c: Ditto.
12461 * infcall.c: Ditto.
12462 * infcmd.c: Ditto.
12463 * inflow.c: Ditto.
12464 * infrun.c: Ditto.
12465 * inline-frame.h: Ditto.
12466 * language.c: Ditto.
12467 * language.h: Ditto.
12468 * libunwind-frame.c: Ditto.
12469 * libunwind-frame.h: Ditto.
12470 * linespec.c: Ditto.
12471 * linux-nat.c: Ditto.
12472 * linux-nat.h: Ditto.
12473 * linux-thread-db.c: Ditto.
12474 * machoread.c: Ditto.
12475 * macroexp.c: Ditto.
12476 * macrotab.c: Ditto.
12477 * main.c: Ditto.
12478 * maint.c: Ditto.
12479 * mdebugread.c: Ditto.
12480 * memattr.c: Ditto.
12481 * minsyms.c: Ditto.
12482 * monitor.c: Ditto.
12483 * monitor.h: Ditto.
12484 * objfiles.c: Ditto.
12485 * objfiles.h: Ditto.
12486 * osabi.c: Ditto.
12487 * p-typeprint.c: Ditto.
12488 * p-valprint.c: Ditto.
12489 * parse.c: Ditto.
12490 * printcmd.c: Ditto.
12491 * proc-events.c: Ditto.
12492 * procfs.c: Ditto.
12493 * progspace.c: Ditto.
12494 * progspace.h: Ditto.
12495 * psympriv.h: Ditto.
12496 * psymtab.c: Ditto.
12497 * record.c: Ditto.
12498 * regcache.c: Ditto.
12499 * regcache.h: Ditto.
12500 * remote-fileio.c: Ditto.
12501 * remote.c: Ditto.
12502 * ser-mingw.c: Ditto.
12503 * ser-tcp.c: Ditto.
12504 * ser-unix.c: Ditto.
12505 * serial.c: Ditto.
12506 * serial.h: Ditto.
12507 * solib-frv.c: Ditto.
12508 * solib-irix.c: Ditto.
12509 * solib-osf.c: Ditto.
12510 * solib-pa64.c: Ditto.
12511 * solib-som.c: Ditto.
12512 * solib-sunos.c: Ditto.
12513 * solib-svr4.c: Ditto.
12514 * solib-target.c: Ditto.
12515 * solib.c: Ditto.
12516 * somread.c: Ditto.
12517 * source.c: Ditto.
12518 * stabsread.c: Ditto.
12519 * stabsread.c: Ditto.
12520 * stack.c: Ditto.
12521 * stack.h: Ditto.
12522 * symfile-mem.c: Ditto.
12523 * symfile.c: Ditto.
12524 * symfile.h: Ditto.
12525 * symmisc.c: Ditto.
12526 * symtab.c: Ditto.
12527 * symtab.h: Ditto.
12528 * target-descriptions.c: Ditto.
12529 * target-memory.c: Ditto.
12530 * target.c: Ditto.
12531 * target.h: Ditto.
12532 * terminal.h: Ditto.
12533 * thread.c: Ditto.
12534 * top.c: Ditto.
12535 * tracepoint.c: Ditto.
12536 * tracepoint.h: Ditto.
12537 * ui-file.c: Ditto.
12538 * ui-file.h: Ditto.
12539 * ui-out.h: Ditto.
12540 * user-regs.c: Ditto.
12541 * user-regs.h: Ditto.
12542 * utils.c: Ditto.
12543 * valarith.c: Ditto.
12544 * valops.c: Ditto.
12545 * valprint.c: Ditto.
12546 * valprint.h: Ditto.
12547 * value.c: Ditto.
12548 * varobj.c: Ditto.
12549 * varobj.h: Ditto.
12550 * vec.h: Ditto.
12551 * xcoffread.c: Ditto.
12552 * xcoffsolib.c: Ditto.
12553 * xcoffsolib.h: Ditto.
12554 * xml-syscall.c: Ditto.
12555 * xml-tdesc.c: Ditto.
12556
9a2b4c1b
MS
125572011-01-05 Michael Snyder <msnyder@vmware.com>
12558
12559 * cli/cli-cmds.c: Shorten lines of >= 80 columns.
12560 * cli/cli-decode.c: Ditto.
12561 * cli/cli-dump.c: Ditto.
12562 * cli/cli-logging.c: Ditto.
12563 * cli/cli-script.c: Ditto.
12564 * cli/cli-setshow.c: Ditto.
12565 * common/signals.c: Ditto.
12566 * mi/mi-cmd-break.c: Ditto.
12567 * mi/mi-cmd-disas.c: Ditto.
12568 * mi/mi-cmd-stack.c: Ditto.
12569 * mi/mi-cmd-var.c: Ditto.
12570 * mi/mi-cmds.c: Ditto.
12571 * mi/mi-common.h: Ditto.
12572 * mi/mi-console.c: Ditto.
12573 * mi/mi-interp.c: Ditto.
12574 * mi/mi-main.c: Ditto.
12575 * osf-share/cma_attr.c: Ditto.
12576 * osf-share/cma_deb_core.h: Ditto.
12577 * osf-share/cma_debug_client.h: Ditto.
12578 * osf-share/cma_handle.h: Ditto.
12579 * osf-share/cma_mutex.h: Ditto.
12580 * osf-share/cma_stack_int.h: Ditto.
12581 * osf-share/cma_tcb_defs.h: Ditto.
12582 * python/py-auto-load.c: Ditto.
12583 * python/py-breakpoint.c: Ditto.
12584 * python/py-cmd.c: Ditto.
12585 * python/py-frame.c: Ditto.
12586 * python/py-objfile.c: Ditto.
12587 * python/py-param.c: Ditto.
12588 * python/py-progspace.c: Ditto.
12589 * python/py-symbol.c: Ditto.
12590 * python/py-value.c: Ditto.
12591 * python/python-internal.h: Ditto.
12592 * python/python.c: Ditto.
12593 * tui/tui-data.c: Ditto.
12594 * tui/tui-disasm.c: Ditto.
12595 * tui/tui-hooks.c: Ditto.
12596 * tui/tui-io.c: Ditto.
12597 * tui/tui-layout.c: Ditto.
12598 * tui/tui-regs.c: Ditto.
12599 * tui/tui-source.c: Ditto.
12600 * tui/tui-stack.c: Ditto.
12601 * tui/tui-win.c: Ditto.
12602 * tui/tui-windata.c: Ditto.
12603 * tui/tui-winsource.c: Ditto.
12604
44944448
JB
126052011-01-05 Joel Brobecker <brobecker@adacore.com>
12606
12607 * configure.ac, gdb.1: Copyright year update.
12608
ebedcab5
JK
126092011-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12610
12611 * frame.c (get_prev_frame_1) <UNWIND_INNER_ID>: New variables
12612 this_pc_in_block, morestack_msym and morestack_name. Check for
12613 "__morestack" minimal symbol there.
12614
e5cc9f32
JB
126152011-01-03 Joel Brobecker <brobecker@adacore.com>
12616
12617 * symfile.c (find_sym_fns): Add call to dont_repeat.
12618
7b6bb8da
JB
126192011-01-01 Joel Brobecker <brobecker@adacore.com>
12620
12621 Copyright year update in most files (performed by copyright.sh).
12622
71ce852c
JB
126232011-01-01 Joel Brobecker <brobecker@adacore.com>
12624
12625 * top.c (print_gdb_version): Update copyright year in version output.
0e2de366 12626
c3c1ebe8 12627For older changes see ChangeLog-2010.
c906108c
SS
12628\f
12629Local Variables:
12630mode: change-log
12631left-margin: 8
12632fill-column: 74
12633version-control: never
57da7796 12634coding: utf-8
c906108c 12635End:
This page took 2.136943 seconds and 4 git commands to generate.