* mi/mi-cmd-env.c (mi_cmd_env_path): Rename `optind' and
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
7082409d
AS
12011-12-16 Andrey Smirnov <andrew.smirnov@gmail.com>
2
3 * mi/mi-cmd-env.c (mi_cmd_env_path): Rename `optind' and
4 `optarg' to `oind' and `oarg', respectively(-Wshadow).
5 (mi_cmd_env_dir): Ditto.
6
72011-12-16 Andrey Smirnov <andrew.smirnov@gmail.com>
81493c62 8
7082409d
AS
9 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Rename `optind' and
10 `optarg' to `oind' and `oarg', respectively(-Wshadow).
81493c62 11
f8c000a2
AS
122011-12-16 Andrey Smirnov <andrew.smirnov@gmail.com>
13
14 * mi/mi-cmd-break.c (mi_cmd_break_insert): Rename `optind' and
81493c62 15 `optparg' to `oind' and `oarg', respectively(-Wshadow).
f8c000a2
AS
16 (mi_cmd_break_watch): Ditto.
17
07fea4b4
TT
182011-12-16 Tom Tromey <tromey@redhat.com>
19
20 * linespec.c (collect_symbols): Call maybe_add_address after
21 calling symbol_to_sal.
22 (minsym_found): Call maybe_add_address here.
23 (search_minsyms_for_name): Don't call maybe_add_address.
24
39b856a4
TT
252011-12-16 Tom Tromey <tromey@redhat.com>
26
27 * linespec.c (struct collect_info) <objfile>: Remove field.
28 (decode_objc): Update.
29 (find_method): Update.
30 (decode_variable): Update.
31 (struct minsym_and_objfile): New.
32 (struct collect_minsyms): New.
33 (classify_mtype): New function.
34 (compare_msyms): Likewise.
35 (add_minsym): Likewise.
36 (check_minsym): Remove.
37 (search_minsyms_for_name): Sort minsyms and apply only those with
38 top priority.
39
ccbac09d
TT
402011-12-16 Tom Tromey <tromey@redhat.com>
41
42 * cli/cli-cmds.c (filter_sals): Filter out sals with NULL symtab.
43
77cce10f
PA
442011-12-16 Pedro Alves <pedro@codesourcery.com>
45
46 * inf-loop.c: Include top.h.
47 (inferior_event_handler): Call check_frame_language.
48 * top.c (check_frame_language_change): New, factored out from ...
49 (execute_command): ... this. Use check_frame_language_change.
50 * top.h (check_frame_language_change): Declare.
51
a961bc18
PM
522011-12-16 asmwarrior <asmwarrior@gmail.com> (obvious fix)
53
54 * windows-nat.c (cygwin_get_dr, cygwin_get_dr7): Add missing
55 prototypes.
56
e0f9f062
DE
572011-12-16 Doug Evans <dje@google.com>
58
59 * NEWS: Add entry for stdio gdbserver.
60
80b6e756
PM
612011-12-16 Phil Muldoon <pmuldoon@redhat.com>
62
63 * python/python.c: Define python_excp_enums.
64 (eval_python_from_control_command): Do not call gdbpy_print_stack.
65 (python_command): Ditto.
66 (gdbpy_print_stack): Rewrite to use new enum constants.
67 (maint_set_python): Remove function.
68 (maint_show_python): Ditto.
69 (_initialize_python): Do not add "maint" commands. Add "set/show
70 python print-stack commands".
71 * NEWS: Update to reflect removal for "maint set/show
72 print-stack"
73
ef140872
DE
742011-12-15 Doug Evans <dje@google.com>
75
76 * exceptions.c (catcher_list_size): New function.
77 (last_message): Delete.
78 (exception_messages, exception_messages_size): New static globals.
79 (throw_it): Use exception_messages array to handle nested calls.
80
b5b445a3
TT
812011-12-15 Tom Tromey <tromey@redhat.com>
82
83 * symfile.c (symbol_file_add_with_addrs_or_offsets): Remove bad
84 do_cleanups call.
85
0b6cb71e
DE
862011-12-14 Doug Evans <dje@google.com>
87
88 * defs.h (wait_to_die_with_timeout): Declare.
89 * utils.c: #include "gdb_wait.h".
90 (sigalrm_handler, wait_to_die_with_timeout): New functions.
91 * ser-pipe.c: Don't #include "gdb_wait.h".
92 (pipe_close): Give child a chance to die on its own after closing
93 its stdin before SIGTERM'ing it.
94
6475f2fe 952011-12-14 Joel Brobecker <brobecker@adacore.com>
afaabefa 96 Tom Tromey <tromey@redhat.com>
6475f2fe
JB
97
98 * ada-lang.c (add_nonlocal_symbols): Initialize data to
99 all zeros. Remove setting of data.arg_sym to NULL.
100
7b50312a
PA
1012011-12-14 Pedro Alves <pedro@codesourcery.com>
102
103 PR threads/10729
104
105 * linux-nat.c (linux_nat_new_thread): Change parameter to an lwp
106 pointer.
107 (linux_nat_prepare_to_resume): New global.
108 (lwp_free): New.
109 (purge_lwp_list): Use it.
110 (add_lwp): Call linux_nat_new_thread even on the first LWP.
111 Adjust to interface change.
112 (delete_lwp): Call lwp_free instead of xfree.
113 (detach_callback, linux_nat_detach, resume_lwp, linux_nat_resume)
114 (linux_handle_syscall_trap, linux_handle_extended_wait)
115 (linux_nat_filter_event, resume_stopped_resumed_lwps): Call
116 linux_nat_prepare_to_resume before resuming.
117 (linux_stop_lwp): New.
118 (linux_nat_set_new_thread): Adjust.
119 (linux_nat_set_prepare_to_resume): New.
120 * linux-nat.h (struct arch_lwp_info): Forward declare.
121 (struct lwp_info) <arch_private>: New field.
122 (linux_stop_lwp): Declare.
123 (linux_nat_set_new_thread): Adjust.
124 (linux_nat_set_prepare_to_resume): New.
125
126 * i386-nat.c (DR_NADDR, DR_STATUS, DR_CONTROL)
127 (struct i386_debug_reg_state): Move to i386-nat.h.
128 (dr_mirror): Comment.
129 (i386_debug_reg_state): New.
130 (i386_update_inferior_debug_regs): Simplify.
131 (i386_stopped_data_address): Use the debug register state from the
132 inferior, not from the local cache.
133 * i386-nat.h (struct i386_dr_low_type): Delete reset_addr and
134 unset_status fields. New get_addr and get_control fields.
135 (DR_FIRSTADDR, DR_LASTADDR, DR_CONTROL): Moved from i386-nat.c.
136 (DR_NADDR, DR_STATUS): New.
137 (struct i386_debug_reg_state): Moved from i386-nat.c.
138
139 * amd64-linux-nat.c (struct arch_lwp_info): New.
140 (amd64_linux_dr): Delete global.
141 (amd64_linux_dr_get_addr): New.
142 (amd64_linux_dr_get_control): New.
143 (amd64_linux_dr_unset_status): Delete.
144 (amd64_linux_dr_set_addr): Reimplement.
145 (amd64_linux_dr_reset_addr): Delete.
146 (update_debug_registers_callback): New.
147 (amd64_linux_dr_set_control): Reimplement.
148 (amd64_linux_dr_set_addr): Reimplement.
149 (amd64_linux_prepare_to_resume): New.
150 (amd64_linux_new_thread): Change parameter to an lwp pointer.
151 Reimplement.
152 (_initialize_amd64_linux_nat): No longer install
153 i386_dr_low.reset_addr and i386_dr_low.unset_status. Install
154 amd64_linux_dr_get_control as i386_dr_low.get_control. Install
155 amd64_linux_dr_get_addr as i386_dr_low.get_addr. Install
156 amd64_linux_prepare_to_resume.
157 * i386-linux-nat.c (DR_FIRSTADDR, DR_LASTADDR, DR_STATUS)
158 (DR_CONTROL): Delete.
159 (struct arch_lwp_info): New.
160 (i386_linux_dr): Delete global.
161 (i386_linux_dr_set_control): Reimplement.
162 (i386_linux_dr_get_addr): New.
163 (i386_linux_dr_set_addr): Reimplement.
164 (i386_linux_dr_get_control): New.
165 (update_debug_registers_callback): New.
166 (i386_linux_dr_unset_status): Delete.
167 (i386_linux_dr_set_addr): Reimplement.
168 (i386_linux_prepare_to_resume): New.
169 (i386_linux_new_thread): Change parameter to an lwp pointer.
170 Reimplement.
171 (_initialize_i386_linux_nat): No longer install
172 i386_dr_low.reset_addr and i386_dr_low.unset_status. Install
173 i386_linux_dr_get_control as i386_dr_low.get_control. Install
174 i386_linux_dr_get_addr as i386_dr_low.get_addr. Install
175 i386_linux_prepare_to_resume.
176
177 * arm-linux-nat.c (arm_linux_new_thread): Change parameter to an
178 lwp pointer. Adjust.
179 * ia64-linux-nat.c (ia64_linux_new_thread): Likewise.
180 * mips-linux-nat.c (mips_linux_new_thread): Likewise.
181 * ppc-linux-nat.c (ppc_linux_new_thread): Likewise.
182 * s390-nat.c (s390_fix_watch_points): Likewise.
183
184 * i386-darwin-nat.c (DR_FIRSTADDR, DR_LASTADDR, DR_STATUS)
185 (DR_CONTROL): Delete.
186 (i386_darwin_dr_reset_addr): Delete.
187 (i386_darwin_dr_get_addr): New.
188 (i386_darwin_dr_get_control): New.
189 * go32-nat.c
190 (go32_get_dr7, go32_get_dr): New.
191 (init_go32_ops): No longer install i386_dr_low.reset_addr.
192 Install go32_get_dr7 as i386_dr_low.get_control. Install
193 go32_get_dr as i386_dr_low.get_addr.
194 * i386bsd-nat.c (i386bsd_dr_get): New.
195 (i386bsd_dr_reset_addr): Delete.
196 (i386bsd_dr_get_addr): New.
197 (i386bsd_dr_get_status): Use i386bsd_dr_get.
198 (i386bsd_dr_get_control): New.
199 * i386bsd-nat.h (i386bsd_dr_reset_addr): Delete.
200 (i386bsd_dr_get_addr): New.
201 (i386bsd_dr_get_control): New.
202 * i386fbsd-nat.c (_initialize_i386fbsd_nat): No longer install
203 i386_dr_low.reset_addr and i386_dr_low.unset_status. Install
204 i386bsd_dr_get_control as i386_dr_low.get_control. Install
205 i386bsd_dr_get_addr as i386_dr_low.get_addr.
206 * windows-nat.c (init_windows_ops): No longer install
207 i386_dr_low.reset_addr and i386_dr_low.unset_status. Install
208 cygwin_get_dr7 as i386_dr_low.get_control. Install cygwin_get_dr
209 as i386_dr_low.get_addr.
210 (cygwin_get_dr): New.
211 (cygwin_get_dr7): New.
212
dd110abf
PA
2132011-12-14 Pedro Alves <pedro@codesourcery.com>
214
215 * ia64-tdep.c (ia64_memory_remove_breakpoint): Use
216 target_write_raw_memory.
217 * m32r-tdep.c (m32r_memory_remove_breakpoint): Use
218 target_write_raw_memory.
219 * microblaze-linux-tdep.c
220 (microblaze_linux_memory_remove_breakpoint): Use
221 target_write_raw_memory.
222 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Use
223 target_write_raw_memory.
224
ad32032e
JB
2252011-12-14 Joel Brobecker <brobecker@adacore.com>
226
227 * linespec.c (decode_line_internal): Make static.
228
d14c4eb7
YQ
2292011-12-14 Yao Qi <yao@codesourcery.com>
230
231 * breakpoint.c (create_breakpoint): Set canonical.addr_string
232 for static tracepoint.
233
25564b66 2342011-12-13 Joel Brobecker <brobecker@adacore.com>
235
236 GDB 7.4 branch created (branch timestamp: 2011-12-13 13:00 UTC)
237 * version.in: Bump version to 7.4.50.20111213-cvs.
238
8837a20f
JB
2392011-12-13 Joel Brobecker <brobecker@adacore.com>
240
241 * NEWS: Create a new section for the next release branch.
242 Rename the section of the current branch, now that it has
243 been cut.
244
7dda8cff
JB
2452011-12-11 Joel Brobecker <brobecker@adacore.com>
246
247 * ada-lang.c (ada_exception_support_info_sniffer): Improve
248 error message.
249
3eecfa55
JB
2502011-12-11 Joel Brobecker <brobecker@adacore.com>
251
252 * ada-lang.c (struct ada_inferior_data) [exception_info]:
253 New field.
254 (exception_info): Delete.
255 (ada_exception_support_info_sniffer): Get exception_support_info
256 data from our per-inferior data. Adjust code accordingly.
257 (ada_unhandled_exception_name_addr_from_raise): Likewise.
258 (ada_exception_name_addr_1, ada_exception_sym_name): Ditto.
259 (ada_executable_changed_observer): Delete.
260 (_initialize_ada_language): Remove call to
261 observer_attach_executable_changed.
262
a6af7abe
JB
2632011-12-11 Joel Brobecker <brobecker@adacore.com>
264
265 * ada-lang.c (ada_has_this_exception_support): Raise an error
266 if we could find the Ada exception hook in the Ada runtime,
267 but no debugging info for that hook.
268
f17011e0
JB
2692011-12-11 Joel Brobecker <brobecker@adacore.com>
270
271 * ada-lang.c (ada_has_this_exception_support): New function,
272 extracted out of ada_exception_sal and ada_exception_sal.
273 (ada_exception_support_info_sniffer): Simplify by using
274 ada_has_this_exception_support.
275 (ada_exception_sal): Replace unnecessary checks by assertions.
276 Minor simplifications.
277
d3fbdd86
AS
2782011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
279
280 * breakpoint.c (update_global_location_list): Remove nested
281 definition of `b'(-Wshadow).
282
eacd795a
AS
2832011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
284
285 * breakpoint.c (insert_breakpoint_locations): Rename `error' to
286 `error_flag'(-Wshadow).
287
ad13d8df
AS
2882011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
289
290 * bfd-target.c (target_bfd_reopen): Rename `bfd' to
291 `abfd'(-Wshadow).
292
917793af
AS
2932011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
294
295 * annotate.c (annotate_array_section_begin): Rename `index' to
296 `idx'(-Wshadow).
297
d48ebb5b
AS
2982011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
299
300 * amd64-tdep.c (amd64_get_unused_input_int_reg): Rename `index' to
301 `idx'(-Wshadow).
302
9ed936ec
AS
3032011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
304
305 * amd64-linux-tdep.c (amd64_canonicalize_syscall): Rename
306 `syscall' to `syscall_number'(-Wshadow).
307
a35ddb44
AS
3082011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
309
310 * ada-lang.c (remove_extra_symbols): Rename `remove' to
311 `remove_p'(-Wshadow).
312
e5e61bd7
AS
3132011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
314
315 * ada-exp.y (write_var_or_type): Rename nested `renaming' to
316 `ren_sym'(-Wshadow).
317
d200ab1e
DE
3182011-12-10 Doug Evans <dje@google.com>
319
b0df02fd
DE
320 * dwarf2read.c (dwarf2_per_cu_data): Rename debug_type_section to
321 debug_types_section. All uses updated.
322 (partial_read_comp_unit_head): Rename parameter is_debug_type_section
323 to is_debug_types_section.
324
d200ab1e
DE
325 * python/py-auto-load.c (source_section_scripts): Call xfree
326 instead of free.
327
4511b1ba
YQ
3282011-12-10 Hui Zhu <teawater@gmail.com>
329 Yao Qi <yao@codesourcery.com>
330
331 * tracepoint.c (start_tracing): Clear `inserted' flag.
332
df5a4bd3
HZ
3332011-12-10 Hui Zhu <teawater@gmail.com>
334
335 * tracepoint.c (create_tsv_from_upload): Change sprintf to xstrprintf.
336
1afeeb75
AS
3372011-12-09 Andrey Smirnov <andrew.smirnov@gmail.com>
338
339 * breakpoint.c (bp_loc_is_permanent): Rename `brk' to
340 `bpoint'(-Wshadow).
341
80e1d417
AS
3422011-12-09 Andrey Smirnov <andrew.smirnov@gmail.com>
343
344 * breakpoint.c (update_static_tracepoint): Rename nested `sal' and
345 `marker' variables to `sal2' and `tpmarker' respectively
346 (-Wshadow).
347
04ca3c22
AP
3482011-12-09 Andrew Pinski <apinski@cavium.com>
349
350 * linespec.c (hash_address_entry): Use iterative_hash_object on each
351 field rather than the struct itself.
352
8a2c437b
TT
3532011-12-09 Tom Tromey <tromey@redhat.com>
354
355 * breakpoint.c (compare_breakpoints): New function.
356 (clear_command): Remove duplicate breakpoints. Properly clean
357 up.
358
280711e7
MR
3592011-12-08 Maciej W. Rozycki <macro@mips.com>
360 Maciej W. Rozycki <macro@codesourcery.com>
361
362 * mips-tdep.c (mips_skip_mips16_trampoline_code): Sign-extend
363 address chunks retrieved from decoded lui/addiu pairs.
364
4c2051c6
MR
3652011-12-08 Maciej W. Rozycki <macro@codesourcery.com>
366
367 * mips-tdep.c (extended_offset): Correct calculation.
368 (unpack_mips16): Correct bitfield positions used for extraction
369 of the immediate argument; fix sign-extension of same.
370 (extended_mips16_next_pc): Correct B instruction's offset
371 calculation. Correct register decoding of the BEQZ and BNEZ
372 as well as jump-register instructions. Handle compact jumps.
373
ff011ed7
TT
3742011-12-08 Tom Tromey <tromey@redhat.com>
375
376 * objfiles.h (struct objfile): Remove obsolete comment.
377 * objfiles.c (build_objfile_section_table): Remove obsolete
378 comment.
379
7cd3876c
SS
3802011-12-07 Stan Shebs <stan@codesourcery.com>
381
382 * MAINTAINERS (Responsible Maintainers): Add Yao Qi as
383 maintainer of the tic6x target.
384
35f73cfc
UW
3852011-12-07 Ulrich Weigand <ulrich.weigand@linaro.org>
386
387 * arm-tdep.h (arm_deal_with_atomic_sequence): Add prototype.
388 * arm-tdep.c (thumb_deal_with_atomic_sequence_raw): New function.
389 (arm_deal_with_atomic_sequence_raw): Likewise.
390 (arm_deal_with_atomic_sequence): Likewise.
391 (arm_software_single_step): Call it.
392 * arm-linux-tdep.c (arm_linux_software_single_step): Likewise.
393
94eae614
UW
3942011-12-07 Ulrich Weigand <uweigand@de.ibm.com>
395
396 * s390-tdep.c: Replace "Linux" by "GNU/Linux" in comments
397 where appropriate.
398 * s390-tdep.h: Likewise.
399
13b8d0c6
TG
4002011-12-07 Tristan Gingold <gingold@adacore.com>
401
402 * machoread.c (macho_symtab_read): Do not consider N_OPT as
403 a debugging stab. Improve complaint message.
404
5436df95
MR
4052011-12-07 Maciej W. Rozycki <macro@codesourcery.com>
406
407 * mips-tdep.c (mips32_scan_prologue): Only update the immediate
408 load adjustment if still within the prologue.
409
040dff2a
MR
4102011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
411
412 * mips-tdep.c (mips32_next_pc): Fix floating point condition
413 code mask.
414
754d7c78
MR
4152011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
416
417 * mips-tdep.c (deal_with_atomic_sequence): Fix the handling
418 of BLTZ* and BGEZ* instructions.
419
91912e4d
MR
4202011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
421
422 * mips-tdep.c (mips_pc_is_mips16): Reverse the order of checks
423 performed to determine whether an address refers to standard
424 MIPS or MIPS16 code.
425 (mips16_next_pc): Use mips_pc_is_mips16 instead of
426 is_mips16_addr.
427
f0ba3972
PA
4282011-12-06 Pedro Alves <pedro@codesourcery.com>
429
430 * breakpoint.c (breakpoint_restore_shadows): Rename to ...
431 (breakpoint_xfer_memory): ... this. Change prototype. Handle
432 memory writes too.
433 * breakpoint.h (breakpoint_restore_shadows): Delete.
434 (breakpoint_xfer_memory): Declare.
435 * mem-break.c (default_memory_insert_breakpoint)
436 (default_memory_remove_breakpoint): Use target_write_raw_memory.
437 (memory_xfer_partial): Rename to ...
438 (memory_xfer_partial_1): ... this. Don't mask out breakpoints
439 here.
440 (memory_xfer_partial): New.
441 (target_write_raw_memory): New.
442 * target.h (target_write_raw_memory): New.
443
31aba06f
DE
4442011-12-06 Doug Evans <dje@google.com>
445
446 * linespec.c (decode_dollar): Avoid "may be used uninitialized" warning.
447
f8eba3c6
TT
4482011-12-06 Joel Brobecker <brobecker@acacore.com>
449
450 * language.h (struct language_defn): Add new component
451 la_symbol_name_compare.
452 * symfile.h (struct quick_symbol_functions): Update the profile
453 of parameter "name_matcher" for the expand_symtabs_matching
454 method. Update the documentation accordingly.
455 * ada-lang.h (ada_name_for_lookup): Add declaration.
456 * ada-lang.c (ada_name_for_lookup): New function, extracted out
457 from ada_iterate_over_symbols.
458 (ada_iterate_over_symbols): Do not encode symbol name anymore.
459 (ada_expand_partial_symbol_name): Adjust profile.
460 (ada_language_defn): Add value for la_symbol_name_compare field.
461 * linespec.c: #include "ada-lang.h".
462 (iterate_name_matcher): Add language parameter. Replace call
463 to strcmp_iw by call to language->la_symbol_name_compare.
464 (decode_variable): Encode COPY if current language is Ada.
465 * dwarf2read.c (dw2_expand_symtabs_matching): Adjust profile
466 of name_matcher parameter. Adjust call to name_matcher.
467 * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
468 (expand_partial_symbol_names): Update profile of parameter "fun".
469 * psymtab.h (expand_partial_symbol_names): Update profile of
470 parameter "fun".
471 * symtab.c (demangle_for_lookup): Update function documentation.
472 (search_symbols_name_matches): Add language parameter.
473 (expand_partial_symbol_name): Likewise.
474 * c-lang.c (c_language_defn, cplus_language_defn)
475 (asm_language_defn, minimal_language_defn): Add value for
476 la_symbol_name_compare field.
477 * d-lang.c (d_language_defn): Likewise.
478 * f-lang.c (f_language_defn): Ditto.
479 * jv-lang.c (java_language_defn): Ditto.
480 * m2-lang.c (m2_language_defn): Ditto.
481 * objc-lang.c (objc_language_defn): Ditto.
482 * opencl-lang.c (opencl_language_defn): Ditto.
483 * p-lang.c (pascal_language_defn): Ditto.
484 * language.c (unknown_language_defn, auto_language_defn)
485 (local_language_defn): Ditto.
486
4872011-12-06 Tom Tromey <tromey@redhat.com>
488
489 * linespec.c (iterate_over_all_matching_symtabs): Use
490 LA_ITERATE_OVER_SYMBOLS.
491 (lookup_prefix_sym, add_matching_symbols_to_info): Likewise.
492 (find_function_symbols, decode_variable): Remove Ada special
493 case.
494 * language.h (struct language_defn) <la_iterate_over_symbols>: New
495 field.
496 (LA_ITERATE_OVER_SYMBOLS): New macro.
497 * language.c (unknown_language_defn, auto_language_defn)
498 (local_language_defn): Update.
499 * c-lang.c (c_language_defn, cplus_language_defn)
500 (asm_language_defn, minimal_language_defn): Update.
501 * d-lang.c (d_language_defn): Update.
502 * f-lang.c (f_language_defn): Update.
503 * jv-lang.c (java_language_defn): Update.
504 * m2-lang.c (m2_language_defn): Update.
505 * objc-lang.c (objc_language_defn): Update.
506 * opencl-lang.c (opencl_language_defn): Update.
507 * p-lang.c (pascal_language_defn): Update.
508 * ada-lang.c (ada_iterate_over_symbols): New function.
509 (ada_language_defn): Update.
510
5112011-12-06 Tom Tromey <tromey@redhat.com>
512 Joel Brobecker <brobecker@acacore.com>
513
514 PR breakpoints/13105, PR objc/8341, PR objc/8343, PR objc/8366,
515 PR objc/8535, PR breakpoints/11657, PR breakpoints/11970,
516 PR breakpoints/12023, PR breakpoints/12334, PR breakpoints/12856,
517 PR shlibs/8929, PR shlibs/7393:
518 * python/py-type.c (compare_maybe_null_strings): Rename from
519 compare_strings.
520 (check_types_equal): Update.
521 * utils.c (compare_strings): New function.
522 * tui/tui-winsource.c (tui_update_breakpoint_info): Update for
523 location changes.
524 * tracepoint.c (scope_info): Update.
525 (trace_find_line_command): Use DECODE_LINE_FUNFIRSTLINE.
526 * symtab.h (iterate_over_minimal_symbols)
527 (iterate_over_some_symtabs, iterate_over_symtabs)
528 (find_pcs_for_symtab_line, iterate_over_symbols)
529 (demangle_for_lookup): Declare.
530 (expand_line_sal): Remove.
531 * symtab.c (iterate_over_some_symtabs, iterate_over_symtabs)
532 (lookup_symtab_callback): New functions.
533 (lookup_symtab): Rewrite.
534 (demangle_for_lookup): New function, extract from
535 lookup_symbol_in_language.
536 (lookup_symbol_in_language): Use it.
537 (iterate_over_symbols): New function.
538 (find_line_symtab): Update.
539 (find_pcs_for_symtab_line): New functions.
540 (find_line_common): Add 'start' argument.
541 (decode_line_spec): Update. Change argument to 'flags', change
542 interpretation.
543 (append_expanded_sal): Remove.
544 (append_exact_match_to_sals): Remove.
545 (expand_line_sal): Remove.
546 * symfile.h (struct quick_symbol_functions) <lookup_symtab>:
547 Remove.
548 <map_symtabs_matching_filename>: New field.
549 * stack.c (func_command): Only look in the current program space.
550 Use DECODE_LINE_FUNFIRSTLINE.
551 * source.c (line_info): Set pspace on sal. Check program space in
552 the loop. Use DECODE_LINE_LIST_MODE.
553 (select_source_symtab): Use DECODE_LINE_FUNFIRSTLINE.
554 * solib-target.c: Remove DEF_VEC_I(CORE_ADDR).
555 * python/python.c (gdbpy_decode_line): Update.
556 * psymtab.c (partial_map_expand_apply): New function.
557 (partial_map_symtabs_matching_filename): Rename from
558 lookup_partial_symbol. Update arguments.
559 (lookup_symtab_via_partial_symtab): Remove.
560 (psym_functions): Update.
561 * objc-lang.h (parse_selector, parse_method): Don't declare.
562 (find_imps): Update.
563 * objc-lang.c (parse_selector, parse_method): Now static.
564 (find_methods): Change arguments. Fill in a vector of symbol
565 names.
566 (uniquify_strings): New function.
567 (find_imps): Change arguments.
568 * minsyms.c (iterate_over_minimal_symbols): New function.
569 * linespec.h (enum decode_line_flags): New.
570 (struct linespec_sals): New.
571 (struct linespec_result) <canonical>: Remove.
572 <pre_expanded, addr_string, sals>: New fields.
573 (destroy_linespec_result, make_cleanup_destroy_linespec_result)
574 (decode_line_full): Declare.
575 (decode_line_1): Update.
576 * linespec.c (struct address_entry, struct linespec_state, struct
577 collect_info): New types.
578 (add_sal_to_sals_basic, add_sal_to_sals, hash_address_entry)
579 (eq_address_entry, maybe_add_address): New functions.
580 (total_number_of_methods): Remove.
581 (iterate_name_matcher, iterate_over_all_matching_symtabs): New
582 functions.
583 (find_methods): Change arguments. Don't canonicalize input.
584 Simplify logic.
585 (add_matching_methods, add_constructors)
586 (build_canonical_line_spec): Remove.
587 (filter_results, convert_results_to_lsals): New functions.
588 (decode_line_2): Change arguments. Rewrite for new data
589 structures.
590 (decode_line_internal): Rename from decode_line_1. Change
591 arguments. Add cleanups. Update for new data structures.
592 (linespec_state_constructor, linespec_state_destructor)
593 (decode_line_full, decode_line_1): New functions.
594 (decode_indirect): Change arguments. Update.
595 (locate_first_half): Use skip_spaces.
596 (decode_objc): Change arguments. Update for new data structures.
597 Simplify logic.
598 (decode_compound): Change arguments. Add cleanups. Remove
599 fallback code, replace with error.
600 (struct decode_compound_collector): New type.
601 (collect_one_symbol): New function.
602 (lookup_prefix_sym): Change arguments. Update.
603 (compare_symbol_name, add_all_symbol_names_from_pspace)
604 (find_superclass_methods ): New functions.
605 (find_method): Rewrite.
606 (struct symtab_collector): New type.
607 (add_symtabs_to_list, collect_symtabs_from_filename): New
608 functions.
609 (symtabs_from_filename): Change API. Rename from
610 symtab_from_filename.
611 (collect_function_symbols): New function.
612 (find_function_symbols): Change API. Rename from
613 find_function_symbol. Rewrite.
614 (decode_all_digits): Change arguments. Rewrite.
615 (decode_dollar): Change arguments. Use decode_variable.
616 (decode_label): Change arguments. Rewrite.
617 (collect_symbols): New function.
618 (minsym_found): Change arguments. Rewrite.
619 (check_minsym, search_minsyms_for_name)
620 (add_matching_symbols_to_info): New function.
621 (decode_variable): Change arguments. Iterate over all symbols.
622 (symbol_found): Remove.
623 (symbol_to_sal): New function.
624 (init_linespec_result, destroy_linespec_result)
625 (cleanup_linespec_result, make_cleanup_destroy_linespec_result):
626 New functions.
627 (decode_digits_list_mode, decode_digits_ordinary): New functions.
628 * dwarf2read.c (dw2_map_expand_apply): New function.
629 (dw2_map_symtabs_matching_filename): Rename from
630 dw2_lookup_symtab. Change arguments.
631 (dwarf2_gdb_index_functions): Update.
632 * dwarf2loc.c: Remove DEF_VEC_I(CORE_ADDR).
633 * defs.h (compare_strings): Declare.
634 * cli/cli-cmds.c (compare_strings): Move to utils.c.
635 (edit_command, list_command): Use DECODE_LINE_LIST_MODE. Call
636 filter_sals.
637 (compare_symtabs, filter_sals): New functions.
638 * breakpoint.h (struct bp_location) <line_number, source_file>:
639 New fields.
640 (struct breakpoint) <line_number, source_file>: Remove.
641 <filter>: New field.
642 * breakpoint.c (print_breakpoint_location, init_raw_breakpoint)
643 (momentary_breakpoint_from_master, add_location_to_breakpoint):
644 Update for changes to locations.
645 (init_breakpoint_sal): Add 'filter' argument. Set 'filter' on
646 breakpoint.
647 (create_breakpoint_sal): Add 'filter' argument.
648 (remove_sal, expand_line_sal_maybe): Remove.
649 (create_breakpoints_sal): Remove 'sals' argument. Handle
650 pre-expanded sals and the filter.
651 (parse_breakpoint_sals): Use decode_line_full.
652 (check_fast_tracepoint_sals): Use get_sal_arch.
653 (create_breakpoint): Create a linespec_sals. Update.
654 (break_range_command): Use decode_line_full. Update.
655 (until_break_command): Update.
656 (clear_command): Update match conditions for linespec.c changes.
657 Use DECODE_LINE_LIST_MODE.
658 (say_where): Update for changes to locations.
659 (bp_location_dtor): Free 'source_file'.
660 (base_breakpoint_dtor): Free 'filter'. Don't free 'source_file'.
661 (update_static_tracepoint): Update for changes to locations.
662 (update_breakpoint_locations): Disable ranged breakpoint if too
663 many locations match. Update.
664 (addr_string_to_sals): Use decode_line_full. Resolve all sal
665 PCs.
666 (breakpoint_re_set_default): Don't call expand_line_sal_maybe.
667 (decode_line_spec_1): Update. Change argument name to 'flags',
668 change interpretation.
669 * block.h (block_containing_function): Declare.
670 * block.c (block_containing_function): New function.
671 * skip.c (skip_function_command): Update.
672 (skip_re_set): Update.
673 * infcmd.c (jump_command): Use DECODE_LINE_FUNFIRSTLINE.
674 * mi/mi-main.c (mi_cmd_trace_find): Use DECODE_LINE_FUNFIRSTLINE.
675 * NEWS: Add entry.
676
6772011-12-06 Tom Tromey <tromey@redhat.com>
678
679 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Allow
680 breakpoint's pspace to be NULL.
681 * breakpoint.h (struct breakpoint) <pspace>: Update comment.
682 * breakpoint.c (init_raw_breakpoint): Conditionally set
683 breakpoint's pspace.
684 (init_breakpoint_sal): Don't set breakpoint's pspace.
685 (prepare_re_set_context): Conditionally switch program space.
686 (addr_string_to_sals): Check executing_startup on location's
687 program space.
688
6892011-12-06 Tom Tromey <tromey@redhat.com>
690
691 * breakpoint.h (enum enable_state) <bp_startup_disabled>: Remove.
692 * breakpoint.c (should_be_inserted): Explicitly check if program
693 space is executing startup.
694 (describe_other_breakpoints): Update.
695 (disable_breakpoints_before_startup): Change executing_startup
696 earlier. Remove loop.
697 (enable_breakpoints_after_startup): Likewise.
698 (init_breakpoint_sal): Don't use bp_startup_disabled.
699 (create_breakpoint): Don't use bp_startup_disabled.
700 (update_global_location_list): Use should_be_inserted.
701 (bkpt_re_set): Update.
702
75c8c9d7
TT
7032011-12-06 Tom Tromey <tromey@redhat.com>
704
705 * python/lib/gdb/command/pretty_printers.py
706 (InfoPrettyPrinter.invoke1): Remove extra double quote.
707
7376e450
TT
7082011-12-06 Tom Tromey <tromey@redhat.com>
709
710 * NEWS: Add MI news.
711
c642a434
UW
7122011-12-06 Ulrich Weigand <uweigand@de.ibm.com>
713
714 * s390-tdep.h (S390_ORIG_R2_REGNUM): Define.
715 (S390_LAST_BREAK_REGNUM): Likewise.
716 (S390_SYSTEM_CALL_REGNUM): Likewise.
717 (S390_NUM_REGS): Update.
718
719 (s390_regmap_last_break): Add declaration.
720 (s390x_regmap_last_break): Likewise.
721 (s390_regmap_system_call): Likewise.
722
723 (tdesc_s390_linux32v1): Add declaration.
724 (tdesc_s390_linux32v2): Likewise.
725 (tdesc_s390_linux64v1): Likewise.
726 (tdesc_s390_linux64v2): Likewise.
727 (tdesc_s390x_linux64v1): Likewise.
728 (tdesc_s390x_linux64v2): Likewise.
729
730 * s390-tdep.c: Include new target description files
731 "features/s390-linux32v1.c", "features/s390-linux32v2.c",
732 "features/s390-linux64v1.c", "features/s390-linux64v2.c",
733 "features/s390x-linux64v1.c", and "features/s390x-linux64v2.c".
734 (s390_cannot_store_register): New function.
735 (s390_write_pc): Likewise.
736 (s390_dwarf_regmap): Add fields for new registers.
737 (s390_regmap_gregset): Likewise.
738 (s390x_regmap_gregset): Likewise.
739 (s390_regmap_fpregset): Likewise.
740 (s390_regmap_upper): Likewise.
741 (s390_regmap_last_break): New variable.
742 (s390x_regmap_last_break): Likewise.
743 (s390_regmap_system_call): Likewise.
744 (s390_last_break_regset): Likewise.
745 (s390x_last_break_regset): Likewise.
746 (s390_system_call_regset): Likewise.
747 (s390_upper_regset_sections): Rename to ...
748 (s390_linux64_regset_sections): ... this.
749 (s390_linux32_regset_sections): New variable.
750 (s390x_linux64_regset_sections): Likewise.
751 (s390_linux32v1_regset_sections): Likewise.
752 (s390_linux32v2_regset_sections): Likewise.
753 (s390_linux64v1_regset_sections): Likewise.
754 (s390_linux64v2_regset_sections): Likewise.
755 (s390x_linux64v1_regset_sections): Likewise.
756 (s390x_linux64v2_regset_sections): Likewise.
757 (s390_regset_from_core_section): Handle .reg-s390-last-break and
758 .reg-s390-system-call core file sections.
759 (s390_core_read_description): Check for presence of
760 .reg-s390-last-break and .reg-s390-system-call core file
761 sections and return appropriate target description.
762 (s390_gdbarch_init): Detect Linux-specific registers "orig_r2",
763 "last_break" and "system_call" in target description. Install
764 appropriate gdbarch_core_regset_sections array.
765 Call set_gdbarch_cannot_store_register and set_gdbarch_write_pc.
766 (_initialize_s390_tdep): Initialize additional target descriptions.
767
768 * s390-nat.c: Include "elf/common.h".
769 (PTRACE_GETREGSET, PTRACE_SETREGSET): Define if undefined.
770 (have_regset_last_break): New static variable.
771 (have_regset_system_call): Likewise.
772 (s390_native_supply): Handle S390_ORIG_R2_REGNUM.
773 (s390_native_collect): Likewise.
774 (fetch_regset, store_regset, check_regset): New functions.
775 (s390_linux_fetch_inferior_registers): Handle S390_LAST_BREAK_REGNUM
776 and S390_SYSTEM_CALL_REGNUM.
777 (s390_linux_store_inferior_registers): Likewise.
778 (s390_read_description): Check for presence of NT_S390_LAST_BREAK
779 and NT_S390_SYSTEM_CALL regsets and use appropriate description.
780
781 * features/Makefile (WHICH): Add s390-linux32v1, s390-linux64v1,
782 s390x-linux64v1, s390-linux32v2, s390-linux64v2, and s390x-linux64v2.
783 (s390-linux32v1-expedite): Define.
784 (s390-linux32v2-expedite): Likewise.
785 (s390-linux64v1-expedite): Likewise.
786 (s390-linux64v2-expedite): Likewise.
787 (s390x-linux64v1-expedite): Likewise.
788 (s390x-linux64v2-expedite): Likewise.
789
790 * features/s390-linux32.xml: Add orig_r2 register.
791 * features/s390-linux64.xml: Likewise.
792 * features/s390x-linux64.xml: Likewise.
793 * features/s390-linux32v1.xml: New file.
794 * features/s390-linux32v2.xml: Likewise.
795 * features/s390-linux64v1.xml: Likewise.
796 * features/s390-linux64v2.xml: Likewise.
797 * features/s390x-linux64v1.xml: Likewise.
798 * features/s390x-linux64v2.xml: Likewise.
799
800 * features/s390-linux32.c: Regenerate.
801 * features/s390-linux64.c: Likewise.
802 * features/s390x-linux64.c: Likewise.
803 * features/s390-linux32v1.c: New generated file.
804 * features/s390-linux32v2.c: Likewise.
805 * features/s390-linux64v1.c: Likewise.
806 * features/s390-linux64v2.c: Likewise.
807 * features/s390x-linux64v1.c: Likewise.
808 * features/s390x-linux64v2.c: Likewise.
809
810 * regformats/s390-linux32.dat: Regenerate.
811 * regformats/s390-linux64.dat: Regenerate.
812 * regformats/s390x-linux64.dat: Regenerate.
813 * regformats/s390-linux32v1.dat: New generated file.
814 * regformats/s390-linux32v2.dat: Likewise.
815 * regformats/s390-linux64v1.dat: Likewise.
816 * regformats/s390-linux64v2.dat: Likewise.
817 * regformats/s390x-linux64v1.dat: Likewise.
818 * regformats/s390x-linux64v2.dat: Likewise.
819
336060f3
PA
8202011-12-05 Pedro Alves <pedro@codesourcery.com>
821
822 * linux-nat.c (resume_stopped_resumed_lwps): Call
823 registers_changed.
824
049e32d3
PA
8252011-12-05 Pedro Alves <pedro@codesourcery.com>
826
827 * breakpoint.c: Include record.h.
828 (breakpoints_always_inserted_mode): Return false when the record
829 target is in use.
830
5c03c7f9 8312011-12-05 Pedro Alves <pedro@codesourcery.com>
482950ed
PA
832
833 * amd64-linux-nat.c (amd64_linux_dr_get): Remove FIXME comment.
834 Reinstate perror_with_name call on ptrace error. Remove #if 0.
835 * i386-linux-nat.c (i386_linux_dr_get): Likewise.
836 * i386bsd-nat.c (i386bsd_dr_get_status): Likewise.
837
fbbd034e
AS
8382011-12-05 Andrey Smirnov <andrew.smirnov@gmail.com>
839
840 * breakpoint.c (init_breakpoint_sal): Remove nested definitions of
841 `i'(-Wshadow).
842
a5ff8356 8432011-12-05 Andrey Smirnov <andrew.smirnov@gmail.com>
12747160
AS
844
845 * bcache.c (bcache): Rename `bcache' to `cache'(-Wshadow).
846
8472011-12-05 Andrey Smirnov <andrew.smirnov@gmail.com>
848
a5ff8356
AS
849 * amd64-tdep.c (amd64_push_dummy_call): Remove nested definition
850 of `tdep'(-Wshadow).
851
93f2a35e
JK
8522011-12-03 Jan Kratochvil <jan.kratochvil@redhat.com>
853
854 Fix compilation --without-expat.
855 * solib-svr4.c (svr4_free_so, svr4_free_library_list): Move them here
856 from ...
857 [HAVE_LIBEXPAT] (svr4_free_so, svr4_free_library_list): ... here.
858
2268b414
JK
8592011-12-02 Paul Pluzhnikov <ppluzhnikov@google.com>
860 Jan Kratochvil <jan.kratochvil@redhat.com>
861
862 * Makefile.in (XMLFILES): Add library-list-svr4.dtd.
863 * features/library-list-svr4.dtd: New file.
864 * remote.c (PACKET_qXfer_libraries_svr4): New.
865 (remote_protocol_features): new entry for PACKET_qXfer_libraries_svr4.
866 (remote_xfer_partial): Handle TARGET_OBJECT_LIBRARIES_SVR4.
867 * solib-svr4.c (struct svr4_library_list): New.
868 [HAVE_LIBEXPAT]: Include xml-support.h.
869 [HAVE_LIBEXPAT] (svr4_library_list_start_library)
870 [HAVE_LIBEXPAT] (svr4_library_list_start_list, svr4_library_attributes)
871 [HAVE_LIBEXPAT] (svr4_library_list_children)
872 [HAVE_LIBEXPAT] (svr4_library_list_attributes)
873 [HAVE_LIBEXPAT] (svr4_library_list_elements, svr4_parse_libraries)
874 [HAVE_LIBEXPAT] (svr4_current_sos_via_xfer_libraries)
875 [!HAVE_LIBEXPAT] (svr4_current_sos_via_xfer_libraries): New.
876 (svr4_read_so_list): Extend the corruption message by addresses.
877 (svr4_current_sos): New variable library_list, call
878 svr4_current_sos_via_xfer_libraries.
879 * target.h (enum target_object): New TARGET_OBJECT_LIBRARIES_SVR4.
880
585861ea
JK
8812011-12-02 Jan Kratochvil <jan.kratochvil@redhat.com>
882
883 PR threads/13448
884 * dwarf2read.c (decode_locdesc): Handle DW_OP_const8u.
885 For DW_OP_GNU_push_tls_address increment the value, new comment for it.
886
9750bca9
JK
8872011-12-02 Jan Kratochvil <jan.kratochvil@redhat.com>
888
889 PR breakpoints/13346
890 * dwarf2read.c (process_psymtab_comp_unit): Set
891 PSYMTABS_ADDRMAP_SUPPORTED.
892 * psympriv.h (struct partial_symtab): Comment textlow and texthigh
893 validity. New field psymtabs_addrmap_supported.
894 * psymtab.c (find_pc_sect_psymtab_closer): New gdb_assert on
895 psymtabs_addrmap_supported.
896 (find_pc_sect_psymtab): Do not fallback to TEXTLOW and TEXTHIGH for
897 !PSYMTABS_ADDRMAP_SUPPORTED.
898 (dump_psymtab, maintenance_info_psymtabs): Print also
899 psymtabs_addrmap_supported.
900
f28c316a
DE
9012011-12-01 Doug Evans <dje@google.com>
902
903 * python/py-type.c (type_object_methods): Fix "array" doc string.
904
fc0ae648
AB
9052011-12-01 Andrew Burgess <aburgess@broadcom.com>
906
907 * source.c (print_source_lines_base): Fix missing braces on else
908 clause leading to additional output.
909
d6db1fab
UW
9102011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
911
912 * s390-nat.c (SUBOFF): Remove.
913 (s390_native_supply, s390_native_collect): New functions.
914 (supply_gregset, supply_fpregset): Use s390_native_supply.
915 (fill_gregset, fill_fpregset): Use s390_native_collect.
916
917 * s390-tdep.c (s390_pseudo_register_reggroup_p): Update comment.
918 (s390_unwind_pseudo_register): New function.
919 (s390_prologue_frame_unwind_cache): Unwind PSW address and mask
920 registers instead of PC and CC.
921 (s390_backchain_frame_unwind_cache): Likewise.
922 (s390_sigtramp_frame_unwind_cache): Do not unwind PC, CC, or
923 full GPR pseudos.
924 (s390_trad_frame_prev_register): New function.
925 (s390_frame_prev_register): Use it.
926 (s390_sigtramp_frame_prev_register): Likewise.
927 (s390_dwarf2_prev_register): Use s390_unwind_pseudo_register.
928 (s390_dwarf2_frame_init_reg): Unwind PSW address and mask. Use
929 special callback to unwind any pseudo.
930
931 * features/s390-core32.xml: Add pswm/pswa to save/restore group.
932 * features/s390-core64.xml: Likewise.
933 * features/s390x-core64.xml: Likewise.
934 * features/s390-linux32.c: Regenerate.
935 * features/s390-linux64.c: Likewise.
936 * features/s390x-linux64.c: Likewise.
937
1dd635ac
UW
9382011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
939
940 * s390-tdep.c (s390_gdbarch_init): Call set_gdbarch_get_siginfo_type.
941
0161e4b9
UW
9422011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
943
944 * s390-tdep.c (s390_displaced_step_fixup): Fix processing of LARL
945 instruction. Add more diagnostic output.
946
0c36327f
AS
9472011-11-29 Andrey Smirnov <andrew.smirnov@gmail.com>
948
949 * MAINTAINERS (Write After Approval): Add myself to the list.
950
b4264740
SD
9512011-11-29 Sanjoy Das <sdas@igalia.com>
952
953 * jit.c (add_objfile_entry, jit_reader_try_read_symtab)
954 (jit_bfd_try_read_symtab): Fix comments.
955
87326c78
DD
9562011-11-28 DJ Delorie <dj@redhat.com>
957
958 * NEWS: Mention RL78 simulator.
959
1e3a8f45
JB
9602011-11-28 Joel Brobecker <brobecker@adacore.com>
961
962 * symfile.h (struct quick_symbol_functions): Fix the documentation
963 of field map_matching_symbols, as symbols are sorted using
964 strcmp_iw_ordered, not strcmp_iw.
965
265e52c3
JB
9662011-11-28 Paul Hilfinger <hilfinger@adacore.com>
967
968 * symfile.h (struct quick_symbol_functions): Update the
969 documentation for field map_matching_symbols.
970
1a1d5513
JB
9712011-11-28 Joel Brobecker <brobecker@adacore.com>
972
973 * ada-lang.c (compare_names): Fix wrong return value in case
974 string1 starts with the same contents as string2, followed
975 by an underscore that do not start a symbol name suffix.
976
5d9c5995
PM
9772011-11-28 Phil Muldoon <pmuldoon@redhat.com>
978
979 PR python/13369
980 PR python/13374
981
982 * python/python.c (gdbpy_decode_line): Do not acquire GIL.
983 * python/py-inferior.c (inferior_to_inferior_object): Ditto.
984 * python/py-value.c (valpy_nonzero): Use TRY_CATCH to catch GDB
985 exceptions.
986 * python/py-type.c (typy_strip_typedefs): Ditto.
987 (typy_legacy_template_argument): Ditto.
988 * python/py-inferior.c (inferior_to_inferior_object): Ditto.
989 * python/py-breakpoint.c (bppy_set_ignore_count): Ditto.
990
2bf50f6f
JB
9912011-11-27 Joel Brobecker <brobecker@acacore.com>
992
993 * remote.c (remote_get_tracepoint_status): Delete addrbuf
994 local variable. Avoid use of sprintf_vma.
995
744ab88c
SD
9962011-11-27 Sanjoy Das <sdas@igalia.com>
997
998 Fix regression in jit.exp.
999 * jit.c (jit_reader_try_read_symtab, jit_bfd_try_read_symtab)
1000 (jit_register_code): Set the jit_objfile_data field to the correct
1001 value.
1002
46ad3598
UW
10032011-11-25  Uros Bizjak  <ubizjak@gmail.com>
1004
1005 * alpha-tdep.c (br_opcode): New.
1006 (ldl_l_opcode, ldq_l_opcode, stl_c_opcode, stq_c_opcode): Ditto.
1007 (alpha_deal_with_atomic_sequence): New function.
1008 (alpha_gdbarch_init): Handle single stepping of atomic sequences
1009 with alpha_deal_with_atomic_sequence.
1010
e4c5f296
TG
10112011-11-24 Tristan Gingold <gingold@adacore.com>
1012
1013 * machoread.c (oso_el): Remove num_Sections, symbols, offsets
1014 fields. Add oso_sym, end_sym and nbr_syms.
1015 (macho_register_oso): Change interface.
1016 (macho_symtab_add_minsym): New function.
1017 (macho_symtab_read): Rewritten.
1018 (get_archive_prefix_len): Remove trailing blanks.
1019 (oso_el_compare_name): Add comment.
1020 (struct macho_sym_hash_entry): New structure.
1021 (macho_relocate_common_syms): Remove.
1022 (macho_sym_hash_newfunc): New function.
1023 (macho_resolve_oso_sym_with_minsym): Likewise.
1024 (macho_add_oso_symfile): Rewritten.
1025 (macho_symfile_read_all_oso): Remove trailing blanks.
1026 Adjust code to free oso vector.
1027 (macho_symfile_read): Likewise.
1028 Move code to initialize minimal symbol
1029
130854df
MR
10302011-11-24 Maciej W. Rozycki <macro@codesourcery.com>
1031
1032 * mips-tdep.c (extended_offset): Fix formatting.
1033
3d7bb9d9
DE
10342011-11-23 Doug Evans <dje@google.com>
1035
1036 * dwarf2read.c (dw2_lookup_symtab): Add comment.
1037 (dw2_expand_symtabs_with_filename): Ditto.
1038 (dw2_expand_symtabs_matching): Ditto.
1039 (dw2_map_symbol_filenames): Ditto.
1040
1fbf5ada
JB
10412011-11-23 Andrey Smirnov <andrew.smirnov@gmail.com>
1042
1043 * ada-lang.c (assign_aggregate): Minor reformatting.
1044
d984108d
JB
10452011-11-23 Andrey Smirnov <andrew.smirnov@gmail.com>
1046
1047 * ada-lang.c (assign_aggregate): Remove declaration of local
1048 variable `i' which is shadowing another variable with the same
1049 name declared in the outer scope.
1050
18af8284
JB
10512011-11-23 Joel Brobecker <brobecker@adacore.com>
1052
1053 * ada-lang.c (get_base_type): Renames base_type. Adjust all
1054 calls throughout this file.
1055
1fc7b5d7
JB
10562011-11-23 Joel Brobecker <brobecker@adacore.com>
1057
1058 * gdb-dlfcn.c (gdb_dlopen): Add missing coma in call to
1059 FormatMessage.
1060
36dfb11c
TT
10612011-11-22 Tom Tromey <tromey@redhat.com>
1062
1063 PR mi/8444:
1064 * mi/mi-common.h (EXEC_ASYNC_SOLIB_EVENT, EXEC_ASYNC_FORK)
1065 (EXEC_ASYNC_VFORK, EXEC_ASYNC_SYSCALL_ENTRY)
1066 (EXEC_ASYNC_SYSCALL_RETURN, EXEC_ASYNC_EXEC): New constants.
1067 * mi/mi-common.c (async_reason_string_lookup): Add new reasons.
1068 * breakpoint.c (print_it_catch_fork, print_it_catch_vfork)
1069 (print_it_catch_syscall, print_it_catch_exec)
1070 (internal_bkpt_print_it): Use ui_out. Emit stop reason.
1071 (bpstat_print): Add 'kind' argument. Handle
1072 TARGET_WAITKIND_LOADED.
1073 * infrun.c (normal_stop): Update for bpstat_print change. Don't
1074 handle TARGET_WAITKIND_LOADED here.
1075 * breakpoint.h (bpstat_print): Update.
1076
5bd6aa83
TT
10772011-11-22 Tom Tromey <tromey@redhat.com>
1078
1079 * mi/mi-interp.c (mi_on_normal_stop): Call bpstat_print.
1080
f5afdc18
TT
10812011-11-22 Tom Tromey <tromey@redhat.com>
1082
1083 * mi/mi-common.c (_initialize_gdb_mi_common): Remove.
1084 Use static_assert to check the size of
1085 async_reason_string_lookup.
1086 * common/gdb_assert.h (static_assert): New macro.
1087
a3769e0c
AM
10882011-11-22 Alan Modra <amodra@gmail.com>
1089
1090 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Correct branch
1091 destination calculation. Don't expect >> to sign extend. Don't
1092 add a break if branch lands inside the sequence anywhere.
1093
56767571
KS
10942011-11-21 Keith Seitz <keiths@redhat.com>
1095
1096 * gdb.mi/mi-var-display.exp: Remove XFAIL for c_variable-7.51,
1097 -var-evaluate-expression of an enumeration and fix expected result.
1098 * gdb.mi/mi2-varvdisplay.exp: Likewise.
1099
8443c207
KY
11002011-11-21 Kwok Cheung Yeung <kcy@codesourcery.com>
1101
1102 * osdata.c (info_osdata_command): Rename nprocs to nrows. Handle
1103 the case where osdata->items is empty. Rename column names to a
1104 canonical form to avoid problems with unusual column names.
1105
97643830
YQ
11062011-11-21 Yao Qi <yao@codesourcery.com>
1107
1108 * MAINTAINERS (Write After Approval): Keep list in alphabetical order.
1109
f196051f
SS
11102011-11-20 Stan Shebs <stan@codesourcery.com>
1111
1112 * NEWS: Mention tracepoint additions.
1113 * breakpoint.h (struct tracepoint): New field traceframe_usage.
1114 * breakpoint.c (print_one_breakpoint_location): Identify
1115 tracepoints as such when reporting hit counts, report
1116 trace buffer usage.
1117 (create_tracepoint_from_upload): Copy status info.
1118 * tracepoint.h (struct trace_status): Rename error_desc to stop_desc,
1119 add fields user_name, notes, start_time, stop_time.
1120 (struct uploaded_tp): Add fields hit_count, traceframe_usage.
1121 * tracepoint.c (trace_user): New global.
1122 (trace_notes): New global.
1123 (trace_stop_notes): New global.
1124 (start_tracing): Add argument and trace note handling.
1125 (stop_tracing): Ditto.
1126 (trace_start_command): Add notes argument.
1127 (trace_stop_command): Ditto.
1128 (trace_status_command): Report additional status info.
1129 (trace_status_mi): Similarly.
1130 (trace_save): Update, record tracepoint status.
1131 (set_disconnected_tracing): Call target method directly.
1132 (send_disconnected_tracing_value): Remove.
1133 (set_trace_user): New function.
1134 (set_trace_notes): New function.
1135 (set_trace_stop_notes): New function.
1136 (parse_trace_status): Handle additional status.
1137 (parse_tracepoint_status): New function.
1138 (parse_tracepoint_definition): Call it.
1139 (tfile_get_tracepoint_status): New function.
1140 (init_tfile_ops): Use it.
1141 (_initialize_tracepoint): Add new setshows.
1142 * target.h (struct target_ops): New methods to_get_tracepoint_status
1143 and to_set_trace_notes.
1144 (target_get_tracepoint_status): New macro.
1145 (target_set_trace_notes): New macro.
1146 * target.c (update_current_target): Add new methods.
1147 * remote.c (remote_get_tracepoint_status): New function.
1148 (remote_set_trace_notes): New function.
1149 (init_remote_ops): Add them.
1150 * mi/mi-main.c (mi_cmd_trace_start): Add argument to call.
1151 (mi_cmd_trace_stop): Ditto.
1152
3623dc3a
SD
11532011-11-20 Sanjoy Das <sdas@igalia.com>
1154
1155 * jit.c: Include regcache.h.
1156 (jit_gdbarch_data, jit_frame_unwind): New static variables.
1157 (jit_unwind_reg_set_impl, free_reg_value_impl)
1158 (jit_unwind_reg_get_impl, jit_frame_sniffer)
1159 (jit_frame_unwind_stop_reason, jit_frame_this_id)
1160 (jit_frame_prev_register, jit_dealloc_cache)
1161 (jit_prepend_unwinder, jit_gdbarch_data_init): New functions.
1162 (jit_inferior_init): Prepend (new) pseudo unwinder by calling
1163 jit_prepend_unwinder.
1164 (_initialize_jit): Register new gdbarch data jit_gdbarch_data.
1165
1825a88d
SD
11662011-11-20 Sanjoy Das <sdas@igalia.com>
1167
1168 * jit.c: Include block.h, dictionary.h and frame-unwind.h.
1169 (add_objfile_entry, jit_target_read_impl, jit_object_open_impl)
1170 (jit_symtab_open_impl, compare_block, jit_block_open_impl)
1171 (jit_symtab_line_mapping_add_impl, jit_symtab_close_impl)
1172 (finalize_symtab, jit_object_close_impl)
1173 (jit_reader_try_read_symtab, jit_bfd_try_read_symtab)
1174 (free_objfile_data): New functions.
1175 (_initialize_jit): Register jit_objfile_data with a proper cleanup
1176 function.
1177
784c47ee
SD
11782011-11-20 Sanjoy Das <sdas@igalia.com>
1179
1180 * jit.c: Include gdb-dlfcn.h.
1181 (loaded_jit_reader, reader_init_fn_sym): New static variables.
1182 (jit_reader_load, jit_reader_load_command)
1183 (jit_reader_unload_command): New functions.
1184 (_initialize_jit): Add commands "jit-reader-load" and
1185 "jit-reader-unload".
1186
a2d08b9e
SD
11872011-11-20 Sanjoy Das <sdas@igalia.com>
1188
1189 * Makefile.in: Add gdb-dlfcn.c and gdb-dlfcn.h to build system.
1190 * config.in: Add new #define HAVE_LIBDL.
1191 * configure.ac: Add check for -ldl.
1192 * configure: Re-generated by autoconf.
1193 * gdb-dlfcn.c: New file.
1194 * gdb-dlfcn.h: New file.
1195
b8e0a31c
SD
11962011-11-20 Sanjoy Das <sdas@igalia.com>
1197
1198 * config.in: Add new #defines: JIT_READER_DIR and
1199 JIT_READER_DIR_RELOCATABLE.
1200 * configure.ac: New GDB directory entry for jit-reader-dir.
1201 * configure: Re-generated by autoconf.
1202 * jit.c: New static variable: const char *jit_reader_dir.
1203 (_initialize_jit): Relocate jit_reader_dir.
1204
f997c383
SD
12052011-11-20 Sanjoy Das <sdas@igalia.com>
1206
1207 * Makefile.in: Add jit-reader.h as a header. Have it installed in
1208 $(includedir)/gdb.
1209 * configure.ac: Generate a correct value for TARGET_PTR for
1210 jit-reader.h. Tell configure to generate jit-reader.h from
1211 jit-reader.in.
1212 * configure: Re-generated by autoconf.
1213 * jit-reader.in: New file.
1214 * jit.c: Include jit-reader.h.
1215
dc8c0494
SD
12162011-11-20 Sanjoy Das <sdas@igalia.com>
1217
1218 * MAINTAINERS (Write After Approval): Add myself to the list.
1219
01efb936
UW
12202011-11-18 Ulrich Weigand <uweigand@de.ibm.com>
1221
1222 * findvar.c (read_frame_register_value): Respect value_offset
1223 of the register value. Remove big-endian special case.
1224
732f3f12
TT
12252011-11-18 Tom Tromey <tromey@redhat.com>
1226
1227 PR build/7196:
1228 * remote.c (putpkt_for_catch_errors): New function.
1229 (remote_kill): Use it.
1230
bfccc43c
YQ
12312011-11-18 Yao Qi <yao@codesourcery.com>
1232
1233 * breakpoint.c (create_breakpoint): Produce query message according to
1234 breakpoint's type.
1235 Allocate tracepoint per correct type.
1236 Don't check SALs for pending fast tracepoints.
1237 * tracepoint.c (process_tracepoint_on_disconnect): New.
1238 (disconnect_tracing): Call process_tracepoint_on_disconnect.
1239
3ea46bff
YQ
12402011-11-18 Yao Qi <yao@codesourcery.com>
1241
1242 * breakpoint.c (install_breakpoint): Add one more parameter so that
1243 update_global_location_list is called conditionally.
1244 (create_fork_vfork_event_catchpoint): Update.
1245 (create_syscall_event_catchpoint): Update.
1246 (create_breakpoint_sal): Update.
1247 (create_breakpoint_sal): Update. Call do_cleanups before
1248 install_breakpoint.
1249 * ada-lang.c (create_ada_exception_catchpoint): Update.
1250 * breakpoint.h (install_breakpoint): Update declaration.
1251
598cfb71
UW
12522011-11-16 Ulrich Weigand <uweigand@de.ibm.com>
1253
1254 * spu-tdep.c (spu_return_value): Fix handling of
1255 TYPE_CALLING_CONVENTION annotation.
1256
caf4328c
UW
12572011-11-16 Ulrich Weigand <uweigand@de.ibm.com>
1258
1259 * skip.c (skip_function_command): Work around uninitialized
1260 variable warning.
1261
2b54dda2
DM
12622011-11-16 David S. Miller <davem@davemloft.net>
1263
1264 * utils.c (report_command_stats): Cast delta_wall_time 'tv_sec' and
1265 'tv_usec' to long for printf since these fields have a type which
1266 varies.
1267
93bf33fd
DE
12682011-11-15 Doug Evans <dje@google.com>
1269
1270 * buildsym.c (add_symbol_to_list): Delete outdated comment.
1271
9cc10fd1
PK
12722011-11-15 Paul Koning <paul_koning@dell.com>
1273
1274 * python/py-type.c (typy_get_composite): New function.
1275 (typy_nonzero): New function.
1276 (typy_values): Rename from typy_fields.
1277 (typy_fields): New function.
1278 (typy_length): Raise exception if not struct, union, or enum type.
1279 (typy_getitem): Ditto.
1280 (typy_has_key): Ditto.
1281 (typy_make_iter): Ditto.
1282
c011a4f4
DE
12832011-11-15 Doug Evans <dje@google.com>
1284
1963ff96 1285 PR gdb/8367
c011a4f4
DE
1286 * NEWS: Mention new parameter basenames-may-differ.
1287 * dwarf2read.c (dw2_lookup_symtab): Avoid calling gdb_realpath if
1288 ! basenames_may_differ.
1289 * psymtab.c (lookup_partial_symtab): Ditto.
1290 * symtab.c (lookup_symtab): Ditto.
1291 (basenames_may_differ): New global.
1292 (_initialize_symtab): New parameter basenames-may-differ.
1293 * symtab.h (basenames_may_differ): Declare.
1294
865ecab4
LM
12952011-11-15 Pedro Alves <pedro@codesourcery.com>
1296 Luis Machado <lgustavo@codesourcery.com>
1297
1298 * auxv.c: Include observer.h.
1299 (auxv_inferior_data_cleanup): New.
1300 (invalidate_auxv_cache_inf): New.
1301 (invalidate_auxv_cache): New.
1302 (get_auxv_inferior_data): New.
1303 (auxv_inferior_data): New static global.
1304 (auxv_info): New structure.
1305 (target_auxv_search): Use get_auxv_inferior_data instead of
1306 target_read_alloc and don't free cached buffers.
1307 (fprint_target_auxv): Likewise
1308 (_initialize_auxv): Register per-inferior auxv cache and register
1309 observers to invalidate auxv cache when needed.
1310
ed59ded5
DE
13112011-11-14 Doug Evans <dje@google.com>
1312
37acd67c 1313 PR gdb/7200 Make "!" an alias for "shell".
ed59ded5
DE
1314 * NEWS: Add mention.
1315 * cli/cli-cmds.c (init_cli_cmds): Remove xdb_commands condition on
1316 adding "!" command, always add it.
1317 * cli/cli-decode.c (find_command_name_length): Recognize "!" as a
1318 command of length one.
1319
405f8e94
SS
13202011-11-14 Stan Shebs <stan@codesourcery.com>
1321 Kwok Cheung Yeung <kcy@codesourcery.com>
1322
1323 * NEWS: Document shorter fast tracepoints and qTMinFTPILen packet.
1324 * i386-tdep.c (i386_fast_tracepoint_valid_at): Query target for
1325 the minimum instruction size for fast tracepoints.
1326 * target.h (struct target_ops): Add new method
1327 to_get_min_fast_tracepoint_insn_len.
1328 (target_get_min_fast_tracepoint_insn_len): New.
1329 * target.c (update_current_target): Set up new target operation.
1330 * remote.c (remote_write_bytes_aux): Fix typo.
1331 (remote_get_min_fast_tracepoint_insn_len): New.
1332 (init_remote_ops): Initialize new field.
1333
3e05895e
TT
13342011-11-14 Tom Tromey <tromey@redhat.com>
1335
1336 * tracepoint.c (encode_actions_1): Use the location's gdbarch.
1337 (encode_actions): Likewise.
1338
1e4d1764
YQ
13392011-11-14 Yao Qi <yao@codesourcery.com>
1340
1341 * remote.c (struct remote_state): <install_in_trace> new field.
1342 (PACKET_InstallInTrace): New enum value.
1343 (remote_install_in_trace_feature): Support InstallInTrace.
1344 (remote_supports_install_in_trace): Likewise.
1345 (remote_protocol_features): Likewise.
1346 (_initialize_remote): Likewise.
1347 (remote_can_download_tracepoint): New.
1348 * target.h (struct target): New field
1349 `to_can_download_tracepoint'.
1350 (target_can_download_tracepoint): New macro.
1351 * target.c (update_current_target): Update.
1352 * breakpoint.h (struct bp_location): Add comment on field
1353 `duplicate'.
3ccd4ac6
YQ
1354 * breakpoint.c (should_be_inserted): Don't differentiate breakpoint
1355 and tracepoint.
1e4d1764
YQ
1356 (remove_breakpoints): Don't remove tracepoints.
1357 (tracepoint_locations_match ): New.
1358 (breakpoint_locations_match): Call it.
1359 (disable_breakpoints_in_unloaded_shlib): Handle tracepoint.
1360 (download_tracepoint_locations): New.
1361 (update_global_location_list): Call it.
1362 * tracepoint.c (find_matching_tracepoint): Delete.
1363 (find_matching_tracepoint_location): Renamed from
1364 find_matching_tracepoint. Return bp_location rather than
1365 tracepoint.
1366 (merge_uploaded_tracepoints): Set `inserted' field to 1 if
1367 tracepoint is found.
1368
e8ba3115
YQ
13692011-11-14 Yao Qi <yao@codesourcery.com>
1370
1371 * target.h (struct target): <to_download_tracepoint> Change type
1372 of parameter from tracepoint to bp_location.
1373 * target.c (update_current_target): Update.
1374 * tracepoint.c (start_tracing): Update.
1375 * remote.c (remote_download_tracepoint): Remove loop for each location
1376 of a tracepoint.
1377
edcc485a
MR
13782011-11-14 Maciej W. Rozycki <macro@codesourcery.com>
1379
1380 * i386-nat.c (i386_insert_hw_breakpoint): Call
1381 i386_update_inferior_debug_regs.
1382 (i386_remove_hw_breakpoint): Likewise.
1383
3742cc8b
YQ
13842011-11-14 Yao Qi <yao@codesourcery.com>
1385
1386 * breakpoint.c (init_raw_breakpoint): Call
1387 add_location_to_breakpoint to replace duplicated code.
1388 (add_location_to_breakpoint): Adjust the breakpoint's
1389 address prior to allocating a location.
1390
71eba9c2 13912011-11-12 Matt Rice <ratmice@gmail.com>
1392
1393 * macrocmd.c (macro_no_macro_info): New function.
1394 (macro_expand_command): Use macro_no_macro_info.
1395 (macro_expand_once_command): Ditto.
1396 (info_macro_command): Add argument processing,
1397 move info_definitions_command here.
1398 (_initialize_macrocmd): Remove info definitions command.
1399 Add arguments to info macro help text.
1400 * NEWS: Replace info definitions command with new info macro options.
1401
731971ed
KS
14022011-11-11 Keith Seitz <keiths@redhat.com>
1403
1404 PR gdb/12843
1405 * linespec.c (locate_first_half): Keep ':' if it looks
1406 like it could be part of a Windows path starting with
1407 a drive letter.
1408
6953d224
PA
14092011-11-10 Pedro Alves <pedro@codesourcery.com>
1410
1411 * linux-nat.c (linux_nat_wait): Don't force waking up the event
1412 loop when returning a TARGET_WAITKIND_NO_RESUMED.
1413
0c94aa73
PA
14142011-11-10 Pedro Alves <pedro@codesourcery.com>
1415
1416 * target.c (target_waitstatus_to_string): Handle
1417 TARGET_WAITKIND_NO_RESUMED.
1418
f6b47be4
DE
14192011-11-10 Doug Evans <dje@google.com>
1420
74e2f255
DE
1421 * dwarf2read.c (dw2_map_symbol_filenames): New parameter
1422 `need_fullname'.
1423 * psymtab.c (map_symbol_filenames_psymtab): Ditto.
1424 (map_partial_symbol_filenames): Ditto. All callers updated.
1425 * psymtab.h (map_partial_symbol_filenames): Update prototype.
1426 * symfile.h (struct quick_symbol_functions, map_symbol_filenames): New
1427 parameter need_fullname.
1428
256f06f3
DE
1429 * psymtab.c (psymtab_to_fullname): Use cached copy if it exists.
1430 * source.c (symtab_to_fullname): Ditto.
1431
50f182aa
DE
1432 * defs.h (is_cplus_marker, set_demangling_style): Moved to ...
1433 * gdb-demangle.h: ... here. New file.
1434 * demangle.c: #include "gdb-demangle.h".
1435 (_initialize_demangler): Use initialize_file_ftype for prototype.
1436 Move "set demangle" and "set asm-demangle" parameters here from utils.c
1437 (demangle, show_demangle, asm_demangle, show_asm_demangle): Move here
1438 from utils.c
1439 * utils.c: Update. #include "gdb-demangle.h".
1440 * symtab.h (asm_demangle): Delete.
1441 (demangle): Move declaration next to use.
1442 * breakpoint.c: #include "gdb-demangle.h" instead of "demangle.h".
1443 * dwarf2read.c: #include "gdb-demangle.h".
1444 * gnu-v2-abi.c: Ditto.
1445 * jv-typeprint.c: Ditto.
1446 * mdebugread.c: Ditto.
1447 * p-typeprint.c: Ditto.
1448 * stabsread.c: Ditto.
1449 * printcmd.c: Ditto.
1450 (asm_demangle): Delete declaration.
1451 * tui/tui-stack.c: #include "gdb-demangle.h".
1452
f6b47be4
DE
1453 * python/py-type.c (typy_fields_items): Call check_typedef.
1454
22355c90
JB
14552011-11-10 Joel Brobecker <brobecker@adacore.com>
1456
1457 * findvar.c (read_frame_register_value): Read the correct bytes
1458 from registers on big-endian architectures.
1459
bd119cf1 14602011-11-10 Tom Tromey <tromey@redhat.com>
e28cade7
JB
1461
1462 * procfs.c (load_syscalls): Make a cleanup.
1463 (open_procinfo_files): fd==0 is ok.
1464
0a86f364
JB
14652011-11-10 Joel Brobecker <brobecker@adacore.com>
1466
1467 * procfs.c (iterate_over_mappings): Call do_cleanups before
1468 returning.
1469
9bc118a5
DE
14702011-11-09 Doug Evans <dje@google.com>
1471
1472 * gdbtypes.c (check_typedef): Document that this function can
1473 throw an exception.
1474
a7860e76
TT
14752011-11-09 Tom Tromey <tromey@redhat.com>
1476
1477 PR c++/13342:
1478 * valops.c (value_full_object): Return early if real type is
1479 smaller than the enclosing type.
1480
60965737
YQ
14812011-11-08 Yao Qi <yao@codesourcery.com>
1482
1483 * amd64-tdep.c (amd64_relocate_instruction): Make it static.
1484
72a2e3dc
MI
14852011-11-08 Meador Inge <meadori@codesourcery.com>
1486
1487 * arm-tdep.c (thumb_analyze_prologue): Always fallback on the SP
1488 register when the frame can't be determined.
1489 * arm-tdep.c (arm_analyze_prologue): Ditto.
1490
ce3b0ff7
SS
14912011-11-07 Stan Shebs <stan@codesourcery.com>
1492
1493 * MAINTAINERS: Move Michael Snyder to Past Maintainers.
1494
2b914b52
JB
14952011-11-07 Joel Brobecker <brobecker@adacore.com>
1496
1497 * infrun.c (handle_inferior_event): Minor reformatting.
1498
6f809020
DE
14992011-11-05 Doug Evans <dje@google.com>
1500
1501 * source.c (forget_cached_source_info_for_objfile): Move call to
1502 objfile->sf->qf->forget_cached_source_info outside of
1503 ALL_OBJFILE_SYMTABS loop.
1504 (forget_cached_source_info): Delete unused variable `s'.
1505
75d12218
JK
15062011-11-05 Jan Kratochvil <jan.kratochvil@redhat.com>
1507
1508 * i386-nat.c (dr_ref_count): Remove unused variable.
1509
e565b837
DE
15102011-11-05 Doug Evans <dje@google.com>
1511
1512 * main.c (captured_main): Set lim_at_start before calling
1513 make_command_stats_cleanup.
1514
0a1c4d10
DE
15152011-11-04 Doug Evans <dje@google.com>
1516
1517 * utils.c: #include "timeval-utils.h".
1518 (cmd_stats): Rename start_time to start_cpu_time.
1519 New member start_wall_time.
1520 (report_command_stats): Report wall time.
1521 (make_command_stats_cleanup): Record start wall time.
1522
a1d705ee
TT
15232011-11-04 Tom Tromey <tromey@redhat.com>
1524
1525 * cp-namespace.c (cp_lookup_symbol_imports): Reindent.
1526
81de56be
RO
15272011-11-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1528
1529 * coff-pe-read.c: Include defs.h before bfd.h.
1530
3ab1ec27
PM
15312011-11-04 Phil Muldoon <pmuldoon@redhat.com>
1532
1533 PR Python/13345
1534
1535 * python/python.c (python_run_simple_file): Expand tilde in path.
1536
cd829959
PM
15372011-11-04 Phil Muldoon <pmuldoon@redhat.com>
1538
1539 PR Python/13363
1540
1541 * python/py-type.c (typy_lookup_type): Do not return a type in
1542 an exception handler.
1543
080ad648
JK
15442011-11-03 Jan Kratochvil <jan.kratochvil@redhat.com>
1545 Eli Zaretskii <eliz@gnu.org>
1546
1547 * linux-nat.c (_initialize_linux_nat): Improve help
1548 for `info proc stat', `info proc status', `info proc cwd',
1549 `info proc cmdline' and `info proc exe'.
1550
3065dfb6
SS
15512011-11-02 Stan Shebs <stan@codesourcery.com>
1552
1553 String collection for tracepoints.
1554 * NEWS: Mention string collection.
1555 * common/ax.def (tracenz): New bytecode.
1556 * ax-gdb.h (trace_string_kludge): Declare.
1557 * ax-gdb.c: Include valprint.h and c-lang.h.
1558 (trace_string_kludge): New global.
1559 (gen_traced_pop): Add string case.
1560 (agent_command): Add string case.
1561 * tracepoint.h (decode_agent_options): Declare.
1562 * tracepoint.c: Include cli-utils.h.
1563 (decode_agent_options): New function.
1564 (validate_actionline): Call it.
1565 (encode_actions_1): Ditto.
1566 * target.h (struct target_ops): New method to_supports_string_tracing.
1567 (target_supports_string_tracing): New macro.
1568 * target.c (update_current_target): Add to_supports_string_tracing.
1569 * remote.c (struct remote_state): New field string_tracing.
1570 (remote_string_tracing_feature): New function.
1571 (remote_protocol_features): New feature tracenz.
1572 (remote_supports_string_tracing): New function.
1573 (init_remote_ops): Set to_supports_string_tracing.
1574
f179e162
JK
15752011-11-02 Pedro Alves <pedro@codesourcery.com>
1576 Jan Kratochvil <jan.kratochvil@redhat.com>
1577
1578 * linux-nat.c: Include cli/cli-utils.h.
1579 (enum info_proc_what): New.
1580 (linux_nat_info_proc_cmd): Rename to ...
1581 (linux_nat_info_proc_cmd_1): ... here. Remove variables argv and all.
1582 New parameter what. Initialize cmdline_f, cwd_f, exe_f, mappings_f,
1583 status_f and stat_f from WHAT. Throw error on extra parameters.
1584 (linux_nat_info_proc_cmd, linux_nat_info_proc_cmd_mappings)
1585 (linux_nat_info_proc_cmd_stat, linux_nat_info_proc_cmd_status)
1586 (linux_nat_info_proc_cmd_cwd, linux_nat_info_proc_cmd_cmdline)
1587 (linux_nat_info_proc_cmd_exe, linux_nat_info_proc_cmd_all): New.
1588 (_initialize_linux_nat): New variable info_proc_cmdlist. Install `info
1589 proc mappings', `info proc stat`, `info proc status', `info proc cwd',
1590 `info proc cmdline', `info proc exe' and `info proc all' as real
1591 subcommands of `info proc'.
1592
7b35ec7f 15932011-11-01 Justin Lebar <justin.lebar@gmail.com>
1bfeeb0f
JL
1594
1595 * Makefile.in: (SFILES): Add skip.c.
1596 (HFILES_NO_SRCDIR): Add skip.h.
1597 (COMMON_OBS): Add skip.o.
1598 * skip.h, skip.c: New.
1599 * breakpoint.h (set_default_breakpoint): Remove.
1600 (get_sal_arch): Declare.
1601 * breakpoint.c: Remove default_breakpoint_valid,
1602 default_breakpoint_address, default_breakpoint_symtab,
1603 default_breakpoint_line, default_breakpoint_pspace variables.
1604 (get_sal_arch): Make public.
1605 (set_default_breakpoint): Remove.
1606 (parse_breakpoint_sals, create_breakpoint, clear_command,
1607 decode_line_spec_1): Remove uses of default_breakpoint variables;
1608 replaced with function calls into stack.c.
1609 * cli/cli-cmds.h: Add cmd_list_element *skiplist.
1610 * cli/cli-cmds.c: Add skiplist.
1611 (init_cmd_lists): Initialize skiplist.
1612 (init_cli_cmds): Fix comment (classes of commands appear in
1613 alphabetical order).
1614 * infrun.c (handle_inferior_event): Add check that we don't step into
1615 a function whose pc is marked for skip.
1616 * stack.c: Declare last_displayed_sal_valid, last_displayed_pspace,
1617 last_displayed_addr, last_displayed_symtab, last_displayed_line
1618 variables.
1619 (set_last_displayed_sal): New static function.
1620 (print_frame_info): Switch call to set_default_breakpoint to call to
1621 set_last_displayed_sal.
1622 (clear_last_displayed_sal, last_displayed_sal_is_valid,
1623 get_last_displayed_pspace, get_last_displayed_addr,
1624 get_last_displayed_symtab, get_last_displayed_line,
1625 get_last_displayed_sal): New public functions.
1626 * stack.h (clear_last_displayed_sal, last_displayed_sal_is_valid,
1627 get_last_displayed_pspace, get_last_displayed_addr,
1628 get_last_displayed_symtab, get_last_displayed_line,
1629 get_last_displayed_sal): Declare.
1630
b60e1588
JL
16312011-11-01 Justin Lebar <justin.lebar@gmail.com>
1632
1633 * MAINTAINERS (Write After Approval): Add myself to the list.
1634
d31647d2
YQ
16352011-10-29 Yao Qi <yao@codesourcery.com>
1636
1637 * infcmd.c (disconnect_command): Call disconnect_tracing.
1638
b1d96efd
JK
16392011-10-29 Jan Kratochvil <jan.kratochvil@redhat.com>
1640
1641 Code cleanup.
1642 * symtab.c (skip_prologue_sal): Code reformatting.
1643
4dfb2365
JK
16442011-10-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1645
1646 PR symtab/13208
1647 * jit.c (jit_register_code): Remove unused variable my_cleanups. Check
1648 for NULL from bfd_open_from_target_memory. Fix ownership of NBFD and
1649 SAI.
1650
0e5bf2a8
PA
16512011-10-28 Pedro Alves <pedro@codesourcery.com>
1652
1653 * linux-nat.c (linux_nat_filter_event): Remove `options'
1654 parameter, and dead code that used it. If we're handling a
1655 PTRACE_EVENT_EXEC event, and the thread group leader is no longer
1656 in our lwp list, re-add it.
1657 (check_zombie_leaders): New.
1658 (linux_nat_wait_1): Remove `options' and `pid' locals. Always
1659 wait for children with WNOHANG, and always wait for all children.
1660 Don't check for no resumed children upfront. Simplify wait loop.
1661 Check for zombie thread group leaders after handling all wait
1662 statuses. Return TARGET_WAITKIND_NO_RESUMED if there no
1663 unwaited-for children left.
1664 * infrun.c (fetch_inferior_event): Handle TARGET_WAITKIND_NO_RESUMED.
1665 (handle_inferior_event): Handle TARGET_WAITKIND_NO_RESUMED.
1666 (normal_stop): Handle TARGET_WAITKIND_NO_RESUMED.
1667 * target.h (enum target_waitkind) <TARGET_WAITKIND_NO_RESUMED>: New.
1668
821296b7
SA
16692011-10-28 Sterling Augustine <saugustine@google.com>
1670
1671 * psymtab.c (map_symbol_filenames_psymtab): Call QUIT.
1672 * symtab.c (free_completion_list): New function.
1673 (do_free_completion_list): Likewise.
1674 (default_make_symbol_completion_list_break_on): New variable
1675 back_to. Call make_cleanup and discard_cleanups.
1676 (make_source_files_completion_list): Likewise.
1677
03c3051a
PK
16782011-10-28 Paul Koning <paul_koning@dell.com>
1679
1680 * python/lib/gdb/types.py (deep_items): Rename from deepitems.
1681 * NEWS: Mention deep_items.
1682
8e7ebaf5
PA
16832011-10-28 Alen Skondro <askondro@gmail.com>
1684
8de33dc2 1685 * ser-tcp.c [USE_WIN32API] (ETIMEDOUT): Don't define if already
8e7ebaf5
PA
1686 defined.
1687
e0c6ef61
MI
16882011-10-27 Meador Inge <meadori@codesourcery.com>
1689
1690 * MAINTAINERS (Write After Approval): Add myself to the list.
1691
b56d6f31
JB
16922011-10-27 Joel Brobecker <brobecker@adacore.com>
1693
1694 * value.h (read_frame_register_value): Add declaration.
1695 * findvar.c (read_frame_register_value): New function.
1696 (value_from_register): Use read_frame_register_value
1697 instead of get_frame_register_value + value_contents_copy
1698 to get value contents.
1699
d234ef5c
DE
17002011-10-27 Doug Evans <dje@google.com>
1701
1702 * cli/cli-cmds.c (source_script_with_search): Pass full path to
1703 source_script_from_stream if it may have been found on the search path.
1704 * python/py-auto-load.c (source_section_scripts): Pass full path to
1705 source_python_script_for_objfile.
1706 * python/python.c (source_python_script): Delete stream parameter.
1707 All callers updated.
1708 (source_python_script_for_objfile): Ditto.
1709 * python/python-internal.h (source_python_script_for_objfile): Update.
1710 * python/python.h (source_python_script): Update.
1711
d849d44f
TT
17122011-10-27 Tom Tromey <tromey@redhat.com>
1713
1714 * ada-lang.h (ada_start_decode_line_1, ada_finish_decode_line_1)
1715 (ada_sals_for_line): Remove declarations.
1716
2231f1fb
KP
17172011-10-27 Kevin Pouget <kevin.pouget@st.com>
1718
1719 Move unwind reasons to an external .def file
1720 * frame.c (frame_stop_reason_string): Rewrite using
1721 unwind_stop_reasons.def.
1722 * frame.h (enum unwind_stop_reason): Likewise.
1723 * python/py-frame.c (gdbpy_initialize_frames): Likewise.
1724 (gdbpy_frame_stop_reason_string): Use new enum unwind_stop_reason
1725 constants for bound-checking.
1726 * unwind_stop_reasons.def: New file.
1727 * stack.c (backtrace_command_1): Handle UNWIND_FIRST_ERROR as an alias
1728 instead of a distinct value.
1729
f77b9a5d
PM
17302011-10-27 Phil Muldoon <pmuldoon@redhat.com>
1731
1732 PR python/13331
1733
1734 * python/py-function.c (fnpy_call): Check 'args' is not NULL.
1735 (convert_values_to_python): Return on Python tuple allocation
1736 failure. Return NULL on value conversion error.
1737
76dce0be
PM
17382011-10-27 Phil Muldoon <pmuldoon@redhat.com>
1739
1740 * python/py-breakpoint.c (bppy_set_enabled): Use TRY_CATCH.
1741 (bppy_set_task): Ditto.
1742 (bppy_delete_breakpoint): Ditto.
1743 * python/py-symbol.c (gdbpy_lookup_symbol): Ditto.
1744 (gdbpy_lookup_global_symbol): Ditto.
1745 * python/py-lazy-string.c (stpy_convert_to_value): Ditto.
1746 * python/py-frame.c (frapy_is_valid): Ditto.
1747 (frame_info_to_frame_object): Ditto.
1748 * python/py-type.c (typy_lookup_type): Ditto.
1749 (typy_getitem): Ditto.
1750 (typy_has_key): Ditto.
1751 (typy_richcompare): Use TRY_CATCH. Do not return Py_NE on error.
1752
f17b6955
JB
17532011-10-26 Joel Brobecker <brobecker@adacore.com>
1754
1755 * gdbarch.h: Regenerate.
1756
86ba1042
JB
17572011-10-26 Meador Inge <meadori@codesourcery.com>
1758
1759 * gdbarch.sh (function_list): Use 'pstring' when printing
1760 'gcore_bfd_target'.
1761 * gdbarch.c: Regenerate.
1762
c34fd852
UW
17632011-10-26 Ulrich Weigand <uweigand@de.ibm.com>
1764
1765 * regcache.c (registers_changed_ptid): Invalidate thread architecture
1766 and frame caches if PTID refers to all threads of a process.
1767
931bb47f
UW
17682011-10-26 Ulrich Weigand <uweigand@de.ibm.com>
1769
1770 * spu-tdep.c (spu_catch_start): Pass non-NULL breakpoint ops
1771 to create_breakpoint.
1772
88aed45e
UW
17732011-10-26 Ulrich Weigand <uweigand@de.ibm.com>
1774
1775 * ppc-sysv-tdep.c (ppc_sysv_use_opencl_abi): New function.
1776 (ppc_sysv_abi_push_dummy_call): Use it.
1777 (do_ppc_sysv_return_value): Likewise.
1778 (ppc64_sysv_abi_push_dummy_call): Likewise.
1779 (ppc64_sysv_abi_return_value): Likewise.
1780
3eaf3fa2
PK
17812011-10-26 Paul Koning <paul_koning@dell.com>
1782
1783 * python/lib/gdb/types.py (deepitems): New function.
1784
913460fc
PK
17852011-10-25 Paul Koning <paul_koning@dell.com>
1786
1787 PR python/13327
1788
1789 * python/py-value.c (value_to_value_object): Remove fetching of
1790 the value if it was lazy.
1791 (valpy_get_is_lazy): New function.
1792 (valpy_fetch_lazy): New function.
1793
2b5b9d09
JB
17942011-10-24 Joel Brobecker <brobecker@adacore.com>
1795
1796 * ppc-sysv-tdep.c (do_ppc_sysv_return_value): Do not check
1797 FUNC_TYPE's calling convention if FUNC_TYPE is not a function.
1798
e21ffe51
PA
17992011-10-24 Pedro Alves <pedro@codesourcery.com>
1800
1801 * linux-nat.c (linux_handle_extended_wait): When handling a clone
1802 event, in non-stop, if not stopping, make sure the new lwp has
1803 last_resume_kind set to resume_continue. Assert that when we're
1804 resuming the new lwp, its last_resume_kind is resume_continue.
1805
7aee8dc2
PA
18062011-10-24 Pedro Alves <pedro@codesourcery.com>
1807
1808 * infrun.c (handle_inferior_event): Don't assume inferior_ptid is
1809 already set when marking the event thread as not executing in
1810 non-stop mode.
1811
4b4e080e
PA
18122011-10-24 Pedro Alves <pedro@codesourcery.com>
1813
1814 * infrun.c (handle_inferior_event): Add debug output for
1815 TARGET_WAITKIND_NO_HISTORY.
1816
baacfb07
PM
18172011-10-24 Phil Muldoon <pmuldoon@redhat.com>
1818
1819 * NEWS: Move set/show extended-prompt to "New Options". Expand
1820 description. Fix typos.
1821
8432bc41
PM
18222011-10-24 Phil Muldoon <pmuldoon@redhat.com>
1823
1824 PR python/13310
1825
1826 * python/py-param.c (call_doc_function): Correctly deference on
1827 function exit.
1828
6cda5a20
JB
18292011-10-21 Joel Brobecker <brobecker@adacore.com>
1830
1831 * ada-tasks.c (print_ada_task_info): Fix computation of
1832 number of tasks displayed in command output.
1833
13294f7d
JK
18342011-10-20 Jan Kratochvil <jan.kratochvil@redhat.com>
1835 Ulrich Weigand <uweigand@de.ibm.com>
1836
1837 * dwarf2-frame-tailcall.c: Include dwarf2-frame.h.
1838 (dwarf2_tailcall_prev_register_first): Use dwarf2_frame_cfa.
1839 (dwarf2_tailcall_sniffer_first): Remove variable pc_regnum. Replace
1840 gdbarch_pc_regnum and frame_unwind_register_unsigned by
1841 gdbarch_unwind_pc.
1842
460c1c54
CC
18432011-10-20 Cary Coutant <ccoutant@google.com>
1844
1845 * dwarf2read.c (dw2_get_file_names): Move adjustment for type
1846 section to...
1847 (partial_read_comp_unit_head): ...here. Add is_debug_type_section
1848 flag. Adjust all callers.
1849 (process_psymtab_comp_unit): Remove adjustment for type section.
1850
a10964d1
AR
18512011-10-20 Aleksandar Ristovski <aristovski@qnx.com>
1852
1853 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Changed function
1854 arguments by adding OBJFILE. Instead of getting objfile from
1855 symbol's symtab, use new argument OBJFILE.
1856 * cp-support.h (cp_scan_for_anonymous_namespaces): Changed function
1857 arguments by adding OBJFILE.
1858 * gdb/dwarf2read.c (new_symbol_full): Change call to
1859 cp_scan_for_anonymous_namespaces to match new signature.
1860 * gdb/stabsread.c (define_symbol): Change call to
1861 cp_scan_for_anonymous_namespaces to match new signature.
1862
27ca1a5b
PM
18632011-10-20 Phil Muldoon <pmuldoon@redhat.com>
1864
1865 PR python/13308
1866 PR python/13309
1867
1868 * python/py-breakpoint.c (gdbpy_breakpoints): Fix List reference
1869 leak.
1870 * python/py-inferior.c (gdbpy_inferiors): Fix List reference
1871 leak. Delete unused variables.
1872
9df2fbc4
PM
18732011-10-20 Phil Muldoon <pmuldoon@redhat.com>
1874
1875 PR python/12656
1876
1877 * python/py-frame.c (frapy_read_var): Use const struct *block.
1878 * python/py-type.c (typy_lookup_typename): Likewise.
1879 (typy_lookup_type): Likewise.
1880 (typy_legacy_template_argument): Likewise.
1881 (typy_template_argument): Likewise.
1882 (gdbpy_lookup_type): Likewise.
1883 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
1884 * python/py-block.c (blpy_block_object): Likewise.
1885 (blpy_iter): Likewise.
1886 (blpy_get_start): Likewise.
1887 (blpy_get_end): Likewise.
1888 (blpy_get_function): Likewise.
1889 (blpy_get_superblock): Likewise.
1890 (set_block): Likewise.
1891 (block_to_block_object): Likewise.
1892 (block_object_to_block): Likewise.
1893 (blpy_is_valid): Likewise.
1894 (blpy_get_global_block): New function.
1895 (blpy_get_static_block): New function.
1896 (blpy_is_global): New function.
1897 (blpy_is_static): New function.
1898 * blockframe.c (block_innermost_frame): Likewise.
1899 * valops.c (value_of_variable): Likewise.
1900 * frame.h: Update prototypes.
1901 * python/python-internal.h: Likewise.
1902 * value.h: Likewise.
1903
4743b735
CC
19042011-10-19 Cary Coutant <ccoutant@google.com>
1905
1906 * dwarf2read.c (create_debug_types_hash_table): Fix size of
1907 type_offset field.
1908
6caca83c
CC
19092011-10-19 Cary Coutant <ccoutant@google.com>
1910
1911 * dwarf2read.c (peek_abbrev_code): New function.
1912 (dw2_get_file_names): Check for dummy compilation units.
1913 (create_debug_types_hash_table): Likewise.
1914 (process_psymtab_comp_unit): Likewise.
1915 (load_partial_comp_unit): Likewise.
1916 (load_full_comp_unit): Likewise.
1917
43136979
AR
19182011-10-18 Aleksandar Ristovski <aristovski@qnx.com>
1919
1920 * solib-svr4.c (read_program_header): New variables pt_phdr, pt_phdr_p,
1921 initialize them from target PT_PHDR p_vaddr, relocate sect_addr by
1922 pt_phdr if PT_PHDR was found.
1923
0a07729b
TT
19242011-10-17 Joost van der Sluis <joost@cnoc.nl>
1925
1926 * gdbtypes.h: Added TYPE_SAFE_NAME macro to get the name of a
1927 type or "<unnamed type"> when there is no name assigned.
1928 * gnu-v3-abi.c (gnuv3_rtti_type): Use TYPE_SAFE_NAME macro to
1929 avoid a sigint when no name is assigned.
1930
21ae7a4d
JK
19312011-10-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1932
1933 Revert:
1934 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1935 * dwarf2expr.c (ctx_no_read_reg): New function.
1936 * dwarf2expr.h (ctx_no_read_reg): New declaration.
1937 * dwarf2read.c (read_2_signed_bytes, read_4_signed_bytes): Remove.
1938 (decode_locdesc_read_mem, decode_locdesc_ctx_funcs): New.
1939 (decode_locdesc): Replace by a caller of dwarf_expr_eval.
1940
32d1c362
DE
19412011-10-16 Doug Evans <dje@google.com>
1942
1943 * NEWS: Document python gdb.printing.register_pretty_printer's new
1944 `replace' parameter.
1945
da096638
KS
19462011-10-14 Keith Seitz <keiths@redhat.com>
1947
1948 PR c++/13225
1949 * eval.c (evaluate_subexp_standard): Do not construct
1950 an array of types; pass the value array directly to
1951 find_overload_match.
1952 * gdbtypes.h (NULL_POINTER_CONVERSION_BADNESS): Declare.
1953 (rank_function): Take an array of values instead of types.
1954 (rank_one_type): Add struct value * parameter.
1955 * gdbtypes.c (NULL_POINTER_CONVERSION_BADNESS): Define.
1956 (rank_function): For each argument, pass the argument's
1957 value to rank_one_type.
1958 (rank_one_type): Add VALUE parameter.
1959 If the parameter type is a pointer and the argument type
1960 is an integer, return NULL_POINTER_CONVERSION_BADNESS if
1961 VALUE is zero.
1962 Update all calls to rank_one_type, passing NULL for new
1963 VALUE parameter.
1964 * valarith.c (value_user_defined_cpp_op): Do not construct
1965 an array of types; pass the value array directly to
1966 find_overload_match.
1967 * valops.c (find_overload_method_list): Take an array of
1968 values instead of types.
1969 Save the type of OBJP for later use.
1970 Update calls to find_oload_champ, and find_oload_champ_namespace.
1971 (find_oload_champ_namespace): Take an array of values instead
1972 of types.
1973 (find_oload_champ_namespace_loop): Likewise.
1974 (find_oload_champ): Likewise.
1975 (classify_oload_match): Inspect all arguments
1976 until INCOMPATIBLE is found. Return the worst badness found
1977 otherwise.
1978 (compare_parameters): Update call to rank_one_type.
1979 * value.h (find_overload_match): Take an array of values instead
1980 of types.
1981
3957565a
JK
19822011-10-14 Jan Kratochvil <jan.kratochvil@redhat.com>
1983
1984 Drop lazy lm_info reading.
1985 * solib-svr4.c (struct lm_info): Remove field lm. New fields l_addr_p,
1986 l_addr_inferior, l_ld, l_next, l_prev and l_name.
1987 (lm_info_read): New function.
1988 (lm_addr_from_link_map, lm_dynamic_from_link_map): Remove.
1989 (lm_addr_check): Use l_addr_p. No longer use lm_addr_from_link_map and
1990 lm_dynamic_from_link_map.
1991 (lm_next, lm_prev, lm_name): Remove.
1992 (svr4_keep_data_in_core): Use lm_info_read, drop the lm_info entries
1993 initialization incl. read_memory. No longer use lm_name.
1994 (svr4_free_so): Drop lm_info->lm freeing.
1995 (svr4_default_sos): Initialize lminfo with zeroes. Use l_addr_p. Drop
1996 explicit lm_addr and lm initialization.
1997 (svr4_read_so_list): Use lm_info_read, drop the initailization of
1998 fields by hand, incl. read_memory. No longer use lm_next, lm_prev and
1999 lm_name.
2000
cb08cc53
JK
20012011-10-14 Jan Kratochvil <jan.kratochvil@redhat.com>
2002 Paul Pluzhnikov <ppluzhnikov@google.com>
2003
2004 * defs.h (struct so_list): New forward declaration.
2005 (make_cleanup_free_so): New declaration.
2006 * solib-svr4.c (ignore_first_link_map_entry): Remove.
2007 (svr4_free_so): Move the function here from downwards. Handle NULL
2008 so->lm_info.
2009 (svr4_free_library_list): New.
2010 (svr4_read_so_list): New, moved here code from svr4_current_sos.
2011 Use more cleanups. Use new parameter ignore_first instead of
2012 ignore_first_link_map_entry.
2013 (svr4_current_sos): New variable ignore_first, initialize it. New
2014 variable back_to, use it for svr4_free_library_list protection.
2015 (svr4_free_so): Remove - move upwards.
2016 * utils.c: Include solist.h.
2017 (do_free_so, make_cleanup_free_so): New functions.
2018
22c05d8a
JK
20192011-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2020
2021 Fix internal error regression.
2022 * value.c (value_primitive_field): Handle value_optimized_out. Move
2023 packed bitfields comment.
2024
d930d06e
TT
20252011-10-13 Tom Tromey <tromey@redhat.com>
2026
2027 * python/py-breakpoint.c (gdbpy_breakpoint_deleted): Ensure GIL is
2028 always released.
2029
2ff6b080
TT
20302011-10-13 Tom Tromey <tromey@redhat.com>
2031
2032 * python/py-type.c (typy_has_key): Make 'field' const.
2033
d6c5869f
LM
20342011-10-13 Luis Machado <lgustavo@codesourcery.com>
2035
2036 * remote.c (remote_save_trace_data): Invert comparison.
2037
a70633a2
LM
20382011-10-13 Luis Machado <lgustavo@codesourcery.com>
2039
2040 * tracepoint.c (trace_save_command): Use filename instead of
2041 args when printing.
2042
e103e986
JK
20432011-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2044
2045 * dwarf2read.c (dwarf2_fetch_die_location_block): Initialize .data even
2046 if .size is 0.
2047
db24da6d
YQ
20482011-10-13 Yao Qi <yao@codesourcery.com>
2049
2050 PR gdb/12703
2051 * arm-tdep.c (thumb_analyze_prologue): Call thumb_insn_size to check
2052 whether insn is a 32-bit Thumb-2 instruction.
2053 (thumb_in_function_epilogue_p): Likewise.
2054 (thumb_get_next_pc_raw): Likewise.
2055 (arm_breakpoint_from_pc): Likewise.
2056
1d6edc3c
JK
20572011-10-12 Jan Kratochvil <jan.kratochvil@redhat.com>
2058
2059 Fix empty DWARF expressions DATA vs. SIZE conditionals.
2060 * dwarf2loc.c (dwarf2_find_location_expression): Clear *LOCEXPR_LENGTH.
2061 (dwarf_expr_frame_base_1): Indicate unavailability via zero *LENGTH.
2062 (locexpr_tracepoint_var_ref): Check only zero SIZE, not zero DATA.
2063 (loclist_read_variable, loclist_tracepoint_var_ref): Do not check for
2064 zero DATA.
2065 * dwarf2loc.h (struct dwarf2_locexpr_baton): Comment DATA vs. SIZE
2066 validity.
2067 * dwarf2read.c (struct dwarf_block): Comment DATA validity.
2068 (dwarf2_fetch_die_location_block, dwarf2_symbol_mark_computed): Do not
2069 clear DATA on zero SIZE.
2070
adabb602
DE
20712011-10-12 Doug Evans <dje@google.com>
2072
2073 * dwarf2read.c (partial_read_comp_unit_head): Set header->offset,
2074 header->first_die_offset here. All callers updated.
2075
5048e516
JK
20762011-10-12 Jan Kratochvil <jan.kratochvil@redhat.com>
2077
2078 Fix compatibility with texinfo versions older than 4.12.
2079 * Makefile.in (MAKEINFO): Set to @MAKEINFO@.
2080 (MAKEINFOFLAGS, MAKEINFO_EXTRA_FLAGS, MAKEINFO_CMD): New.
2081 (MAKEHTMLFLAGS): Use MAKEINFO_CMD.
2082 (FLAGS_TO_PASS): Add MAKEINFOFLAGS and MAKEINFO_EXTRA_FLAGS.
2083 * configure: Regenerate.
2084 * configure.ac (MAKEINFO): Find it, from libiberty/configure.ac.
2085 (MAKEINFOFLAGS): Pre-set it to --split-size=5000000.
2086 (MAKEINFO_EXTRA_FLAGS): New test for -DHAVE_MAKEINFO_CLICK.
2087
0574c78f
GB
20882011-10-12 Gary Benson <gbenson@redhat.com>
2089
2090 * breakpoint.h (pc_at_non_inline_function): Declare.
2091 * breakpoint.c (is_non_inline_function,
2092 pc_at_non_inline_function): New functions.
2093 * infrun.c (handle_inferior_event): Don't call skip_inline_frames
2094 if the stop is at a location where functions cannot be inlined.
2095
12d9289a
PA
20962011-10-12 Pedro Alves <pedro@codesourcery.com>
2097
2098 * linux-nat.c (stop_and_resume_callback): Don't re-resume LWPs if
2099 the core wanted them stopped, or if they now have a pending event
2100 to report.
ecf8e7f5
PA
2101 (linux_nat_filter_event): New parameter `new_pending_p'. Pass it
2102 down to stop_and_resume_callback.
2103 (linux_nat_wait_1): Always clear `options' when retrying. Handle
2104 having new pending events after calling linux_nat_filter_event.
12d9289a 2105
96408a79
SA
21062011-10-11 Sterling Augustine <saugustine@google.com>
2107
2108 * dwarf2read.c: Undo inadvertent changes in previous commit.
2109
9c6c53f7
SA
21102011-10-11 Sterling Augustine <saugustine@google.com>
2111
2112 * dwarf2read.c (partial_die_parent_scope): Rearrange conditional
2113 logic.
2114
0e8aefe7
UW
21152011-10-11 Ulrich Weigand <ulrich.weigand@linaro.org>
2116
2117 * symfile.c (separate_debug_file_exists): Fix condition.
2118
349d1385
DM
21192011-10-11 David S. Miller <davem@davemloft.net>
2120
2121 * regcache.c (regcache_restore): Do not write unavailable regs, mark
2122 static.
2123 * regcache.h (regcache_restore): Remove declaration.
2124
205c306f
DM
2125 * gdbarch.sh: New field 'long_long_align_bit'.
2126 * gdbarch.c, gdbarch.h: Regenerate.
2127 * i386-tdep.c (i386_gdbarch_init): Set long_long_align_bit to 32.
2128 * jit.c (jit_read_code_entry): Use it to determine correct size offset.
2129
941b2081
JK
21302011-10-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2131
2132 Revert this part of:
2133 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2134 Support @entry in input expressions.
2135 * c-exp.y (ENTRY, unknown_cpp_name): New.
2136 (exp: UNKNOWN_CPP_NAME): Change to `exp: unknown_cpp_name'.
2137 (unknown_cpp_name: UNKNOWN_CPP_NAME, unknown_cpp_name: ENTRY)
2138 (variable: name_not_typename '@' ENTRY, name: ENTRY)
2139 (name_not_typename: ENTRY): New.
2140 (yylex): Recognize ENTRY.
2141
2142 Reimplement @entry in input expressions.
2143 * c-exp.y (ENTRY): New.
2144 (variable: name_not_typename ENTRY): New.
2145 (lex_one_token): Optionally return ENTRY instead of the '@' lex.
2146
3c4d7e12
PA
21472011-10-11 Pedro Alves <pedro@codesourcery.com>
2148
2149 * linux-nat.c (linux_handle_extended_wait): Always dump both the
2150 parent and child's pids as soon as we detect a clone event.
2151 Adjust another debug message.
2152
ea23808b
PA
21532011-10-11 Pedro Alves <pedro@codesourcery.com>
2154
2155 * linux-nat.c (linux_lwp_is_zombie): Return early if the LWP is
2156 not zombie instead of reading the whole file.
2157
904578ed
JK
21582011-10-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2159
2160 Fix separate debuginfo warning with "remote:" access.
2161 * objfiles.h (struct objfile): New fields crc32 and crc32_p.
2162 * symfile.c (get_file_crc): New function with the code moved from ...
2163 (separate_debug_file_exists): ... this function, specifically variables
2164 buffer and count. New variable verified_as_different, set it. Remove
2165 file_crc initialization. Verify also if both files are not the same
2166 manually, if needed.
2167
51370a33
YQ
21682011-10-11 Yao Qi <yao@codesourcery.com>
2169
2170 * arm-tdep.c (arm_get_next_pc_raw): Use read_memory_unsigned_integer
2171 to get address.
2172
0838fb57
DE
21732011-10-10 Doug Evans <dje@google.com>
2174
2175 * linux-thread-db.c (thread_db_new_objfile): Only try to load
2176 libthread_db when we load libpthread or the main symbol file.
2177 (thread_db_inferior_created): New function.
2178 (_initialize_thread_db): Attach inferior_created observer.
2179 * linux-nat.c (linux_child_post_attach): Remove call to
2180 check_for_thread_db.
2181 (linux_child_post_startup_inferior): Ditto.
2182 * objfiles.h (OBJF_MAINLINE): Define.
2183 * symfile.c (symbol_file_add_with_addrs_or_offsets): Pass it to
2184 allocate_objfile when appropriate.
2185
623bd5b7
UW
21862011-10-10 Ulrich Weigand <ulrich.weigand@linaro.org>
2187
2188 PR gdb/13218
2189 * arm-linux-nat.c (os_version, os_major, os_minor, os_release):
2190 Remove unused variables.
2191 (get_linux_version): Remove function.
2192 (_initialize_arm_linux_nat): Do not call it.
2193
79395f92
PA
21942011-10-10 Pedro Alves <pedro@codesourcery.com>
2195
2196 * linux-nat.c (linux_handle_extended_wait): Don't resume the new
2197 new clone lwp if the core asked it to stop. Don't pass on
2198 unexpected signals to the new clone; leave them pending instead.
2199
eff3df78
PA
22002011-10-10 Pedro Alves <pedro@codesourcery.com>
2201
2202 * linux-nat.c (resume_lwp): Remove redundant debug output.
2203
4b60df3d
PA
22042011-10-10 Pedro Alves <pedro@codesourcery.com>
2205
2206 * linux-nat.c (linux_nat_wait_1): Copy the event lwp's
2207 last_resume_kind before clearing it, and use the copy instead to
2208 determine whether to report a SIGSTOP as TARGET_SIGNAL_0. Use
2209 resume_clear_callback in the non-stop path too.
2210
6501578c
YQ
22112011-10-09 Yao Qi <yao@codesourcery.com>
2212
2213 * valprint.c (value_check_printable): Add one parameter OPTIONS.
2214 Honor OPTIONS and VAL's type.
2215 (common_val_print, value_print): Update to pass one more parameter.
2216
5a56e9c5
DE
22172011-10-09 Doug Evans <dje@google.com>
2218
2219 Add new "alias" command.
2220 * NEWS: Mention new command.
2221 * command.h (valid_user_defined_cmd_name_p): Declare.
2222 * defs.h (make_cleanup_dyn_string_delete): Declare.
2223 * utils.c: #include "dyn-string.h".
2224 (do_dyn_string_delete, make_cleanup_dyn_string_delete): New functions.
2225 * cli/cli-cmds.c: #include "dyn-string.h".
2226 (argv_to_dyn_string, valid_command_p, alias_command): New functions.
2227 (init_cli_cmds): Add new command.
2228 * cli/cli-decode.c (valid_user_defined_cmd_name_p): New function.
2229
509f0fd9
JK
22302011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2231
2232 Fix compatibility with older GCCs.
2233 * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Initialize parameter.
2234 * stack.c (read_frame_arg): Initialize val_deref.
2235
2bda9cc5
JK
22362011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2237
2238 Entry values NEWS entries, DWARF disassembly support.
2239 * NEWS: New entry values entry.
2240 (set print entry-values, show print entry-values)
2241 (set debug entry-values, show debug entry-values): New entries.
2242 * dwarf2loc.c (disassemble_dwarf_expression): New parameters start and
2243 indent. Remove variable start. Move header printing out. Respect
2244 INDENT. Support DW_OP_GNU_entry_value.
2245 (locexpr_describe_location_1): Move the header printing here, extend
2246 the disassemble_dwarf_expression passed parameters.
2247
a471c594
JK
22482011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2249
2250 Display @entry parameter values even for references.
2251 * ada-valprint.c (ada_val_print_1) <TYPE_CODE_REF>: Try also
2252 coerce_ref_if_computed.
2253 * c-valprint.c (c_val_print) <TYPE_CODE_REF>: Likewise.
2254 * dwarf2expr.c (dwarf_block_to_dwarf_reg_deref): New function.
2255 (execute_stack_op) <DW_OP_GNU_entry_value>: Add -1 deref_size to the
2256 existing push_dwarf_reg_entry_value call. Add new detection calling
2257 dwarf_block_to_dwarf_reg_deref. Update the error message.
2258 (ctx_no_push_dwarf_reg_entry_value): New parameter deref_size.
2259 * dwarf2expr.h
2260 (struct dwarf_expr_context_funcs) <push_dwarf_reg_entry_value>: Add new
2261 parameter deref_size, describe it in the comment.
2262 (ctx_no_push_dwarf_reg_entry_value): Add new parameter deref_size.
2263 (dwarf_block_to_dwarf_reg_deref): New declaration.
2264 * dwarf2loc.c (dwarf_entry_parameter_to_value): Add new parameter
2265 deref_size, describe it in the function comment. New variables
2266 data_src and size, fetch the alternative block accoring to DEREF_SIZE.
2267 (dwarf_expr_push_dwarf_reg_entry_value): Add new parameter deref_size,
2268 describe it in the function comment. Fetch the alternative block
2269 accoring to DEREF_SIZE.
2270 (entry_data_value_coerce_ref, entry_data_value_copy_closure)
2271 (entry_data_value_free_closure, entry_data_value_funcs): New.
2272 (value_of_dwarf_reg_entry): New variables checked_type, target_type,
2273 outer_val, target_val, val and addr. Try to fetch and create also
2274 referenced value content.
2275 (pieced_value_funcs): NULL value for coerce_ref.
2276 (needs_dwarf_reg_entry_value): Add new parameter deref_size.
2277 * f-valprint.c (f_val_print) <TYPE_CODE_REF>: Try also
2278 coerce_ref_if_computed.
2279 * opencl-lang.c (opencl_value_funcs): NULL value for coerce_ref.
2280 * p-valprint.c (pascal_val_print) <TYPE_CODE_REF>: Likewise.
2281 * stack.c (read_frame_arg): Compare also dereferenced values.
2282 * value.c (value_computed_funcs): Make the parameter v const, use
2283 value_lval_const for it.
2284 (value_lval_const, coerce_ref_if_computed): New function.
2285 (coerce_ref): New variable retval. Call also coerce_ref_if_computed.
2286 * value.h (struct lval_funcs): New field coerce_ref.
2287 (value_computed_funcs): Make the parameter v const.
2288 (value_lval_const, coerce_ref_if_computed): New declarations.
2289
36b11add
JK
22902011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2291
2292 Support @entry in input expressions.
2293 * c-exp.y (ENTRY, unknown_cpp_name): New.
2294 (exp: UNKNOWN_CPP_NAME): Change to `exp: unknown_cpp_name'.
2295 (unknown_cpp_name: UNKNOWN_CPP_NAME, unknown_cpp_name: ENTRY)
2296 (variable: name_not_typename '@' ENTRY, name: ENTRY)
2297 (name_not_typename: ENTRY): New.
2298 (yylex): Recognize ENTRY.
2299 * eval.c (evaluate_subexp_standard): Support also OP_VAR_ENTRY_VALUE.
2300 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
2301 Likewise.
2302 * parse.c (operator_length_standard): Likewise.
2303 * std-operator.def: New operator OP_VAR_ENTRY_VALUE.
2304
3343315b
JK
23052011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2306
2307 Display referenced values in backtraces.
2308 * printcmd.c (print_variable_and_value): Set OPTS.DEREF_REF to 1.
2309 * stack.c (print_frame_arg): Likewise.
2310
ac71a68c
JK
23112011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2312
2313 Make some lval_funcs methods to default on NULL.
2314 * valops.c (value_fetch_lazy): Check if lval_computed read method is
2315 NULL.
2316 (value_assign): Check if lval_computed write method is NULL.
2317 * value.h (struct lval_funcs): Comment NULL values for read and write
2318 methods.
2319
e18b2753
JK
23202011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2321
2322 Display @entry parameter values (without references).
2323 * dwarf2expr.c (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset):
2324 New functions.
2325 * dwarf2expr.h (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset):
2326 New declarations.
2327 * dwarf2loc.c (dwarf2_find_location_expression): Support location list
2328 entry record.
2329 (dwarf_entry_parameter_to_value, value_of_dwarf_reg_entry)
2330 (value_of_dwarf_block_entry, locexpr_read_variable_at_entry): New
2331 functions.
2332 (dwarf2_locexpr_funcs): Install locexpr_read_variable_at_entry.
2333 (loclist_read_variable_at_entry): New function.
2334 (dwarf2_loclist_funcs): Install loclist_read_variable_at_entry.
2335 * dwarf2read.c (read_call_site_scope): Support also DW_OP_fbreg in
2336 DW_AT_location, call dwarf_block_to_sp_offset for it.
2337 * frame.h (print_entry_values_no, print_entry_values_only)
2338 (print_entry_values_preferred, print_entry_values_if_needed)
2339 (print_entry_values_both, print_entry_values_compact)
2340 (print_entry_values_default, print_entry_values): New declarations.
2341 (struct frame_arg): New field entry_kind.
2342 (read_frame_arg): New parameter entryargp.
2343 * mi/mi-cmd-stack.c (list_arg_or_local): New gdb_assert for
2344 arg->entry_kind. Optionally print the `@entry' suffix.
2345 (list_args_or_locals): New variable entryarg, initialize it.
2346 Initialize also entry_kind of arg and entryarg. Conditionalize
2347 list_arg_or_local for arg, add list_arg_or_local for entryarg. Call
2348 xfree for entryarg.error.
2349 * stack.c (print_entry_values_no, print_entry_values_only)
2350 (print_entry_values_preferred, print_entry_values_if_needed)
2351 (print_entry_values_both, print_entry_values_compact)
2352 (print_entry_values_default, print_entry_values_choices)
2353 (print_entry_values): New variables.
2354 (print_frame_arg): New gdb_assert for arg->entry_kind. Optionally
2355 print the `@entry' suffix, possibly in combination for
2356 print_entry_values_compact.
2357 (read_frame_arg): New parameter entryargp, new variables entryval,
2358 entryval_error and val_equal. Read in also entryargp, respect
2359 print_entry_values, compare the values using val_equal, fill in also
2360 argp->entry_kind (together with entryargp->entry_kind).
2361 (print_frame_args): New variable entryarg, initialize it.
2362 Conditionalize print_frame_arg for arg, add print_frame_arg for
2363 entryarg. Call xfree for entryarg.error.
2364 (_initialize_stack): Call add_setshow_enum_cmd for `entry-values'.
2365 * symtab.h (struct symbol_computed_ops): New field
2366 read_variable_at_entry.
2367
93d86cef
JK
23682011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2369
2370 Code reshuffle.
2371 * frame.h (struct frame_arg): New definition.
2372 (read_frame_arg): New declaration.
2373 * mi/mi-cmd-stack.c (list_arg_or_local): New functiom from ...
2374 (list_args_or_locals): ... the code here. New variable arg, call
2375 read_frame_arg and list_arg_or_local with it. Unify the
2376 PRINT_SIMPLE_VALUES and PRINT_ALL_VALUES cases. Call xfree for
2377 arg.error.
2378 * stack.c (print_frame_arg): New functiom from the code of
2379 print_frame_args.
2380 (read_frame_arg): New function.
2381 (print_frame_args): Remove variable val. New variable arg, call
2382 read_frame_arg and print_frame_arg with it. Call xfree for arg.error.
2383
2d6c5dc2
JK
23842011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2385
2386 Protect entry values against self tail calls.
2387 * dwarf2loc.c (VEC (CORE_ADDR), func_verify_no_selftailcall): New.
2388 (dwarf_expr_dwarf_reg_entry_value): Call func_verify_no_selftailcall.
2389
111c6489
JK
23902011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2391
2392 Recognize virtual tail call frames.
2393 * Makefile.in (SFILES): Add dwarf2-frame-tailcall.c.
2394 (HFILES_NO_SRCDIR): Add dwarf2-frame-tailcall.h.
2395 (COMMON_OBS): Add dwarf2-frame-tailcall.o.
2396 * dwarf2-frame-tailcall.c: New file.
2397 * dwarf2-frame-tailcall.h: New file.
2398 * dwarf2-frame.c: Include dwarf2-frame-tailcall.h.
2399 (execute_cfa_program): New function comment. Return INSN_PTR. Reset
2400 REGS.PREV only after CIE execution.
2401 (struct dwarf2_frame_cache): New field tailcall_cache.
2402 (dwarf2_frame_cache): New variables entry_pc, entry_cfa_sp_offset,
2403 entry_cfa_sp_offset_p and instr. Execute FDE instructions in two
2404 parts, try to find entry_cfa_sp_offset. Call
2405 dwarf2_tailcall_sniffer_first.
2406 (dwarf2_frame_prev_register): Call dwarf2_tailcall_prev_register_first
2407 when appropriate.
2408 (dwarf2_frame_dealloc_cache): New function.
2409 (dwarf2_frame_sniffer): Preinitialize cache by dwarf2_frame_cache.
2410 (dwarf2_frame_unwind): Install dwarf2_frame_dealloc_cache.
2411 (dwarf2_signal_frame_unwind): Do not install dwarf2_frame_dealloc_cache.
2412 (dwarf2_append_unwinders): Add dwarf2_tailcall_frame_unwind.
2413 (dwarf2_frame_cfa): Support also dwarf2_tailcall_frame_unwind.
2414 * dwarf2loc.c (func_addr_to_tail_call_list)
2415 (tailcall_dump, call_sitep, VEC (call_sitep), chain_candidate)
2416 (call_site_find_chain_1, call_site_find_chain): New.
2417 * dwarf2loc.h (struct call_site_chain): New.
2418 (call_site_find_chain): New declaration.
2419 * frame.c (get_frame_address_in_block): Support also TAILCALL_FRAME.
2420 * frame.h (enum frame_type): New entry TAILCALL_FRAME.
2421 * python/py-frame.c (gdbpy_initialize_frames): Add TAILCALL_FRAME.
2422 * stack.c (frame_info): Support also TAILCALL_FRAME.
2423
bb984ff1
JK
24242011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2425
2426 Tail call sites reader implementation.
2427 * dwarf2read.c (read_call_site_scope): Recognize DW_AT_GNU_tail_call,
2428 fill in TYPE_TAIL_CALL_LIST.
2429 * gdbtypes.h (struct func_type): New field tail_call_list.
2430 (struct call_site): New field tail_call_next.
2431 (TYPE_TAIL_CALL_LIST): New definition.
2432
8e3b41a9
JK
24332011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2434
2435 Implement basic support for DW_TAG_GNU_call_site.
2436 * block.c: Include gdbtypes.h and exceptions.h.
2437 (call_site_for_pc): New function.
2438 * block.h (call_site_for_pc): New declaration.
2439 * defs.h: Include hashtab.h.
2440 (make_cleanup_htab_delete, core_addr_hash, core_addr_eq): New
2441 declarations.
2442 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Install
2443 ctx_no_push_dwarf_reg_entry_value.
2444 * dwarf2expr.c (read_uleb128, read_sleb128): Support R as NULL.
2445 (dwarf_block_to_dwarf_reg): New function.
2446 (execute_stack_op) <DW_OP_GNU_entry_value>: Implement it.
2447 (ctx_no_push_dwarf_reg_entry_value): New function.
2448 * dwarf2expr.h (struct dwarf_expr_context_funcs): New field
2449 push_dwarf_reg_entry_value.
2450 (ctx_no_push_dwarf_reg_entry_value, dwarf_block_to_dwarf_reg): New
2451 declarations.
2452 * dwarf2loc.c: Include gdbcmd.h.
2453 (dwarf_expr_ctx_funcs): New forward declaration.
2454 (entry_values_debug, show_entry_values_debug, call_site_to_target_addr)
2455 (dwarf_expr_reg_to_entry_parameter)
2456 (dwarf_expr_push_dwarf_reg_entry_value): New.
2457 (dwarf_expr_ctx_funcs): Install dwarf_expr_push_dwarf_reg_entry_value.
2458 (dwarf2_evaluate_loc_desc_full): Handle NO_ENTRY_VALUE_ERROR.
2459 (needs_dwarf_reg_entry_value): New function.
2460 (needs_frame_ctx_funcs): Install it.
2461 (_initialize_dwarf2loc): New function.
2462 * dwarf2loc.h (entry_values_debug): New declaration.
2463 * dwarf2read.c (struct dwarf2_cu): New field call_site_htab.
2464 (read_call_site_scope): New forward declaration.
2465 (process_full_comp_unit): Copy call_site_htab.
2466 (process_die): Support DW_TAG_GNU_call_site.
2467 (read_call_site_scope): New function.
2468 (dwarf2_get_pc_bounds): Support NULL HIGHPC.
2469 (dwarf_tag_name): Support DW_TAG_GNU_call_site.
2470 (cleanup_htab): Delete.
2471 (write_psymtabs_to_index): Use make_cleanup_htab_delete instead of it.
2472 * exceptions.h (enum errors): New NO_ENTRY_VALUE_ERROR.
2473 * gdb-gdb.py (StructMainTypePrettyPrinter): Support
2474 FIELD_LOC_KIND_DWARF_BLOCK.
2475 * gdbtypes.h (enum field_loc_kind): New entry
2476 FIELD_LOC_KIND_DWARF_BLOCK.
2477 (struct main_type): New loc entry dwarf_block.
2478 (struct call_site, FIELD_DWARF_BLOCK, SET_FIELD_DWARF_BLOCK)
2479 (TYPE_FIELD_DWARF_BLOCK): New.
2480 * python/py-type.c: Include dwarf2loc.h.
2481 (check_types_equal): Support FIELD_LOC_KIND_DWARF_BLOCK. New
2482 internal_error call on unknown FIELD_LOC_KIND.
2483 * symtab.h (struct symtab): New field call_site_htab.
2484 * utils.c (do_htab_delete_cleanup, make_cleanup_htab_delete)
2485 (core_addr_hash, core_addr_eq): New functions.
2486
b6cdc2c1
JK
24872011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2488
2489 Code reshuffle.
2490 * gdb-gdb.py (StructMainTypePrettyPrinter): Change
2491 TYPE_SPECIFIC_CALLING_CONVENTION to TYPE_SPECIFIC_FUNC. Move
2492 calling_convention under func_stuff there.
2493 * gdbtypes.c (make_function_type): Call INIT_FUNC_SPECIFIC.
2494 (init_type) <TYPE_CODE_FUNC>: Likewise.
2495 (recursive_dump_type): Change TYPE_SPECIFIC_CALLING_CONVENTION to
2496 TYPE_SPECIFIC_FUNC. New comment for tail_call_list.
2497 * gdbtypes.h (enum type_specific_kind): Change
2498 TYPE_SPECIFIC_CALLING_CONVENTION to TYPE_SPECIFIC_FUNC.
2499 (struct main_type) <type_specific>: Change calling_convention to
2500 func_stuff. Move calling_convention to ...
2501 (struct func_type): ... this new struct.
2502 (INIT_FUNC_SPECIFIC): New #define.
2503 (TYPE_CALLING_CONVENTION): Change calling_convention to func_stuff.
2504
181cebd4
JK
25052011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2506
2507 Fix DW_OP_GNU_implicit_pointer for DWARF32 v3+ on 64-bit arches.
2508 * dwarf2-frame.c (execute_stack_op): Initialize ctx->ref_addr_size.
2509 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_implicit_pointer>: Use
2510 ctx->ref_addr_size. Handle its invalid value.
2511 * dwarf2expr.h (struct dwarf_expr_context): New field ref_addr_size.
2512 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full)
2513 (dwarf2_loc_desc_needs_frame): Initialize ctx->ref_addr_size.
2514 * dwarf2loc.h (dwarf2_per_cu_ref_addr_size): New declaration.
2515 * dwarf2read.c (decode_locdesc): Initialize ctx->ref_addr_size.
2516 (dwarf2_per_cu_ref_addr_size): New function.
2517
c471e790
JK
25182011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2519
2520 Code cleanup.
2521 * dwarf2read.c (per_cu_header_read_in): New function.
2522 (dwarf2_per_cu_addr_size, dwarf2_per_cu_offset_size): Use it, with new
2523 variables cu_header_local and cu_headerp.
2524
741f5e3c
JK
25252011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2526
2527 Fix initial language detection with -readnow.
2528 * dwarf2read.c (dw2_find_symbol_file): Handle OBJF_READNOW case.
2529 * symfile.h (struct quick_symbol_functions): State find_symbol_file
2530 searches only for global symbols.
2531
a73d2258
JK
25322011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2533
2534 Fix printed anonymous struct name.
2535 * dwarf2read.c (fixup_partial_die): Handle for anonymous structs also
2536 DW_TAG_interface_type. Strip for anonymous structs any prefixes.
2537 (anonymous_struct_prefix): New function.
2538 (determine_prefix): New variables retval. Call anonymous_struct_prefix.
2539 (dwarf2_name): Strip for anonymous structs any prefixes.
2540
749fd4ea
DE
25412011-10-07 Doug Evans <dje@google.com>
2542
1fa57852
DE
2543 * python/lib/gdb/printing.py (register_pretty_printer): New argument
2544 `replace'.
2545
690a4937
DE
2546 * python/lib/gdb/printing.py: Whitespace cleanup.
2547
749fd4ea
DE
2548 * python/py-value.c (valpy_call): Initialize ftype to avoid compiler
2549 warning.
2550
4c38200f
PA
25512011-10-07 Pedro Alves <pedro@codesourcery.com>
2552
2553 * linux-nat.h (ALL_LWPS): Remove the ptid parameter.
2554 * amd64-linux-nat.c (amd64_linux_dr_set_control)
2555 (amd64_linux_dr_set_addr, amd64_linux_dr_unset_status): Adjust.
2556 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint)
2557 (arm_linux_remove_hw_breakpoint, arm_linux_insert_watchpoint)
2558 (arm_linux_remove_watchpoint): Adjust.
2559 * i386-linux-nat.c (i386_linux_dr_set_control)
2560 (i386_linux_dr_set_addr, i386_linux_dr_unset_status): Adjust.
2561 * ia64-linux-nat.c (ia64_linux_insert_watchpoint)
2562 (ia64_linux_remove_watchpoint): Adjust.
2563 * mips-linux-nat.c (write_watchpoint_regs): Adjust.
2564 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint)
2565 (ppc_linux_insert_hw_breakpoint, ppc_linux_remove_hw_breakpoint)
2566 (ppc_linux_insert_mask_watchpoint)
2567 (ppc_linux_remove_mask_watchpoint, ppc_linux_insert_watchpoint)
2568 (ppc_linux_remove_watchpoint): Adjust.
2569 * s390-nat.c (s390_insert_watchpoint, s390_remove_watchpoint):
2570 Adjust.
2571
b7ff339d
CV
25722011-10-07 Corinna Vinschen <vinschen@redhat.com>
2573
2574 * windows-nat.c: Include wchar.h to avoid compiler warnings.
2575 (clear_win32_environment): New function for Cygwin to clear out
2576 Win32 environment.
2577 (windows_create_inferior): Prepare new environment from in_env
2578 for Cygwin, too.
2579
f287c1f3
PM
25802011-10-07 Phil Muldoon <pmuldoon@redhat.com>
2581
5631e596 2582 PR python/13264
f287c1f3
PM
2583 * python/py-value.c (valpy_call): Check that arguments are
2584 a tuple.
2585 (is_intlike): Remove call to CHECK_TYPEDEF.
2586 (valpy_nonzero): Catch GDB exceptions.
2587 (valpy_absolute): Ditto.
2588 (valpy_lazy_string): Ditto.
2589 (valpy_call): Ditto.
2590 (valpy_get_is_optimized_out): Ditto.
2591 (valpy_long): Ditto.
2592 (valpy_float): Ditto.
2593 (valpy_int): Call CHECK_TYPEDEF. Catch GDB exceptions.
2594 (valpy_richcompare): Ditto.
2595
03583c20
UW
25962011-10-07 Ulrich Weigand <ulrich.weigand@linaro.org>
2597
2598 * inferior.h (disable_randomization): Declare.
2599 * infrun.c (disable_randomization): New global variable.
2600 (show_disable_randomization): New function.
2601 (set_disable_randomization): Likewise.
2602 (_initialize_infrun): Install set/show disable-randomization
2603 commands.
2604 * linux-nat.c (disable_randomization): Remove.
2605 (show_disable_randomization): Likewise.
2606 (set_disable_randomization): Likewise.
2607 (_initialize_linux_nat): No longer install set/show
2608 disable-randomization commands here.
2609 (linux_nat_supports_disable_randomization): New function.
2610 (linux_nat_add_target): Install it.
2611 * remote.c (PACKET_QDisableRandomization): New enum value.
2612 (remote_protocol_packets): Support QDisableRandomization.
2613 (_initialize_remote): Likewise.
2614 (remote_supports_disable_randomization): New function.
2615 (init_remote_ops): Install it.
2616 (extended_remote_supports_disable_randomization): New function.
2617 (init_extended_remote_ops): Install it.
2618 (extended_remote_disable_randomization): New function.
2619 (extended_remote_create_inferior_1): Call it.
2620 * target.h (struct target_ops): Add to_supports_disable_randomization.
2621 (target_supports_disable_randomization): Add prototype.
2622 * target.c (target_supports_disable_randomization): New function.
2623 (find_default_supports_disable_randomization): Likewise.
2624 (init_dummy_target): Install it.
2625
20c168b5
KP
26262011-10-07 Kevin Pouget <kevin.pouget@st.com>
2627
2628 Allow Python notification of new object-file loadings.
2629 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-newobjfilevent.c.
2630 (SUBDIR_PYTHON_OBS): Add py-newobjfileevent.o.
2631 Add build rule for this file.
2632 * python/py-event.h (emit_new_objfile_event): New prototype.
2633 (newobjfile): New Python event emitter.
2634 * python/py-evts.c (gdbpy_initialize_py_events): Add new_objfile to
2635 Python event registry.
2636 * python/py-inferior.c: Include objfiles.h
2637 (python_new_objfile): New function.
2638 (gdbpy_initialize_inferior): Add python_new_objfile to the new objfile
2639 observers.
2640 * python/py-newobjfileevent.c: New file.
2641 * python-internal.h (gdbpy_initialize_new_objfile_event): New
2642 prototype.
2643 * python/python.c (_initialize_python): Add
2644 gdbpy_initialize_new_objfile_event call.
2645 * NEWS: Add item for new Python event "gdb.newobjfile"
2646
b1c8db38
TG
26472011-10-05 Tristan Gingold <gingold@adacore.com>
2648
2649 * ada-tasks.c (read_atcb): Make ravenscar_task_name static.
2650 Extract the ravenscar task name from the symbol for the atcb.
2651
0dab82e9
PK
26522011-10-04 Paul Koning <paul_koning@dell.com>
2653
2654 * python/py-type.c (typy_make_iter): Add forward declaration.
2655 (typy_fields_items): Use the gdb.Type iterator.
2656
84ad80e6
PK
26572011-10-04 Paul Koning <paul_koning@dell.com>
2658
2659 * NEWS: Add entry for Python gdb.Type mapping methods.
2660
cb6be26b
KP
26612011-10-04 Kevin Pouget <kevin.pouget@st.com>
2662
2663 PR python/12691: Add the inferior to Python exited event
2664 * python/py-exitedevent.c (create_exited_event_object): Add inferior
2665 to exited_event.
2666 * python/py-event.h (emit_exited_event): Likewise
2667 * python/-inferior.c (python_inferior_exit): Likewise
2668
6005b210
JB
26692011-10-03 Joel Brobecker <brobecker@adacore.com>
2670
2671 * ada-tasks.c (print_ada_task_info): Add "thread-id" field
2672 in output of -ada-task-info GDB/MI command.
2673
75082e8c
JB
26742011-10-03 Joel Brobecker <brobecker@adacore.com>
2675
2676 * ada-lang.h (struct inferior): Declare.
2677 (print_ada_task_info): Add declaration.
2678 * ada-tasks.c (print_ada_task_info): Make non-static.
2679 * mi/mi-cmds.c (mi_cmds): Add "ada-task-info".
2680 * mi/mi-cmds.h (mi_cmd_ada_task_info): Add declaration.
2681 * mi/mi-main.c: #include "ada-lang.h".
2682 (mi_cmd_list_features): Add "ada-task-info" to the list
2683 of supported features.
2684 (mi_cmd_ada_task_info): New function.
2685
7ed7d719
JB
26862011-10-03 Joel Brobecker <brobecker@adacore.com>
2687
2688 * python/python.c (python_run_simple_file): New function.
2689 (source_python_script, source_python_script_for_objfile):
2690 Replace call to PyRun_SimpleFile by call to
2691 python_run_simple_file.
2692
3fcaed38
PK
26932011-10-03 Paul Koning <paul_koning@dell.com>
2694
2695 * python/py-value.c (valpy_get_address): Use Py_XINCREF.
2696 (value_to_value_object): Fetch value if it was lazy.
2697
8e5c319d
JK
26982011-10-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2699
2700 Code cleanup.
2701 * solib-svr4.c (svr4_default_sos): Remove variables head and link_ptr.
2702 Rearrange the code for it.
2703
dd11a36c
JB
27042011-10-02 Joel Brobecker <brobecker@adacore.com>
2705
2706 * breakpoint.c (bkpt_print_recreate): Add call to
2707 print_recreate_thread.
2708
723b724b
MF
27092011-09-29 Mike Frysinger <vapier@gentoo.org>
2710
2711 * common/linux-ptrace.h (PTRACE_GETFDPIC, PTRACE_GETFDPIC_EXEC,
2712 PTRACE_GETFDPIC_INTERP): Define.
2713
412946b6
YQ
27142011-09-28 Yao Qi <yao@codesourcery.com>
2715
2716 * symfile.c (add_symbol_file_command): Update message on usage.
2717
a73bb892
PK
27182011-09-28 Paul Koning <paul_koning@dell.com>
2719
2720 * python/py-type.c (make_fielditem, typy_field_names, typy_items)
2721 (typy_length, typy_get, typy_has_key, typy_make_iter)
2722 (typy_iterkeys, typy_iteritems, typy_itervalues, typy_iter)
2723 (typy_iterator_iter, typy_iterator_iternext)
2724 (typy_iterator_dealloc): New functions to implement standard
2725 Python mapping methods on gdb.Type object.
2726 (gdb.TypeIterator): New Python type.
2727 * python/python-internal.h (gdbpy_iter_kind): New enum.
a73bb892 2728
fe10a582
DM
27292011-09-28 David S. Miller <davem@davemloft.net>
2730
2731 * sparc-tdep.h (SPARC_F2_REGNUM, SPARC_F3_REGNUM, SPARC_F4_REGNUM,
2732 SPARC_F5_REGNUM, SPARC_F6_REGNUM, SPARC_F7_REGNUM): New enums.
2733 * sparc-tdep.c (sparc_complex_floating_p): New function.
2734 (sparc32_store_arguments): Handle complex floats.
2735 (sparc32_extract_return_value): Likewise.
2736 (sparc32_store_return_value): Likewise.
2737 (sparc32_stabs_argument_has_addr): Likewise.
2738 * sparc64-tdep.c (sparc64_complex_floating_p): New function.
2739 (sparc64_store_floating_fields): Handle complex floats.
2740 (sparc64_store_arguments): Likewise.
2741 (sparc64_store_return_value): Likewise.
2742
c93dbcba
EZ
27432011-09-28 Eli Zaretskii <eliz@gnu.org>
2744
2745 * windows-nat.c (env_sort) [!__CYGWIN__]: Function restored from
2746 before the change on 2006-12-09.
2747 (windows_create_inferior) [!__CYGWIN__]: Restore code that
2748 generates the environment block for CreateProcessA, modulo the
2749 Cygwin-specific parts that are not needed here.
2750
f00c55f8
TG
27512011-09-27 Tristan Gingold <gingold@adacore.com>
2752
2753 * target.h (enum target_object): Add TARGET_OBJECT_DARWIN_DYLD_INFO.
2754 * solib-darwin.c (DYLD_VERSION_MAX): Update number.
2755 (darwin_solib_get_all_image_info_addr_at_init): New function.
2756 (darwin_solib_read_all_image_info_addr): Likewise.
2757 (darwin_solib_create_inferior_hook): Use the above two functions.
2758 * darwin-nat.c (darwin_execvp): Renames retval to res.
2759 (darwin_read_write_inferior): Update comment.
2760 (darwin_read_dyld_info): New function.
2761 (darwin_xfer_partial): Handle DYLD_INFO.
2762
6710bf39
SS
27632011-09-27 Stan Shebs <stan@codesourcery.com>
2764
2765 Add return address collection for tracepoints.
2766 * tracepoint.c (encode_actions_1): Add case for $_ret.
2767 (validate_actionline): Check for $_ret.
2768 (trace_dump_actions): Ditto.
2769 * ax-gdb.h (gen_trace_for_return_address): Declare.
2770 * ax-gdb.c: Include arch-utils.h.
2771 (gen_trace_for_return_address): New function.
2772 (agent_command): Add return address special case.
2773 * amd64-tdep.c: Include ax.h and ax-gdb.h.
2774 (amd64_gen_return_address): New function.
2775 (amd64_init_abi): Call it.
2776 * i386-tdep.c: Include ax.h and ax-gdb.h.
2777 (i386_gen_return_address): New function.
2778 (i386_init_abi): Call it.
2779 * arch-utils.h (default_gen_return_address): Declare.
2780 * arch-utils.c (default_gen_return_address): New function.
2781 * gdbarch.sh (gen_return_address): New method.
2782 * gdbarch.h, gdbarch.c: Regenerate.
2783
e04e5beb
JM
27842011-09-23 Joseph Myers <joseph@codesourcery.com>
2785
2786 PR gdb/13079
2787 * i386-tdep.c (i386_frame_align): New.
2788 (i386_gdbarch_init): Use i386_frame_align.
2789
f3d6df6d
YQ
27902011-09-23 Yao Qi <yao@codesourcery.com>
2791
2792 * i386-linux-nat.c (i386_linux_resume): Use read_memory_unsigned_integer
2793 to get address.
2794
e69860f1
TG
27952011-09-22 Tristan Gingold <gingold@adacore.com>
2796
2797 * fork-child.c (fork_inferior): Add exec_fun parameter.
2798 Call exec_fun or execvp.
2799 * inferior.h: Adjust prototype.
2800 * gnu-nat.c (gnu_create_inferior): Adjust fork_inferior call.
2801 * inf-ttrace.c (inf_ttrace_create_inferior): Ditto.
2802 * inf-ptrace.c (inf_ptrace_create_inferior): Ditto.
2803 * procfs.c (procfs_create_inferior): Ditto.
2804 * darwin-nat.c (darwin_execvp): New function.
2805 (darwin_create_inferior): Use it.
2806
4b51d87b
YQ
28072011-09-22 Yao Qi <yao@codesourcery.com>
2808
2809 * infrun.c (context_switch): Print debug message when switching to
2810 a different thread.
2811
56b9d9ac
UW
28122011-09-21 Ulrich Weigand <uweigand@de.ibm.com>
2813
2814 * s390-tdep.c (s390_function_arg_pass_by_reference): Handle
2815 complex and vector types.
2816 (s390_return_value_convention): Likewise.
2817
2818 (s390_value_from_register): Call check_typedef.
2819 (extend_simple_arg): Likewise.
2820 (alignment_of): Likewise.
2821 (s390_push_dummy_call): Likewise.
2822 (s390_return_value): Likewise.
2823
b2cd6b29
JM
28242011-09-21 Joseph Myers <joseph@codesourcery.com>
2825
2826 * event-top.c (async_disconnect): If an exception is thrown from
2827 quit_cover, call pop_all_targets. Use TRY_CATCH instead of
2828 catch_errors.
2829 * top.c (quit_cover): Return void and take no arguments.
2830 * top.h (quit_cover): Update prototype.
2831
67ba4e42
JM
28322011-09-20 Joseph Myers <joseph@codesourcery.com>
2833
2834 * mi/mi-main.c (mi_load_progress): Restore saved_uiout value to
2835 current_uiout, not uiout.
2836
562f943b
DE
28372011-09-19 Doug Evans <dje@google.com>
2838
2839 * python/py-auto-load.c (source_section_scripts): Fix file
2840 descriptor leak.
2841 * python/python.c (source_python_script_for_objfile): Tweak comments.
2842
34518530
YQ
28432011-09-18 Yao Qi <yao@codesourcery.com>
2844 Ulrich Weigand <ulrich.weigand@linaro.org>
2845
2846 Support displaced stepping for Thumb 16-bit insns.
2847 * arm-tdep.c (THUMB_NOP) Define.
2848 (thumb_copy_unmodified_16bit): New.
2849 (thumb_copy_b, thumb_copy_bx_blx_reg): New.
2850 (thumb_copy_alu_reg): New.
2851 (arm_copy_svc): Move some common code to ...
2852 (install_svc): ... here. New.
2853 (thumb_copy_svc): New.
2854 (install_pc_relative): New.
2855 (thumb_copy_pc_relative_16bit): New.
2856 (thumb_decode_pc_relative_16bit): New.
2857 (thumb_copy_16bit_ldr_literal): New.
2858 (thumb_copy_cbnz_cbz): New.
2859 (cleanup_pop_pc_16bit_all): New.
2860 (thumb_copy_pop_pc_16bit): New.
2861 (thumb_process_displaced_16bit_insn): New.
2862 (thumb_process_displaced_32bit_insn): New.
2863 (thumb_process_displaced_insn): process thumb instruction.
2864
2865 Support displaced stepping for Thumb 32-bit insns.
2866 * arm-tdep.c (thumb_copy_unmodified_32bit): New.
2867 (thumb2_copy_preload): New.
2868 (thumb2_copy_copro_load_store): New.
2869 (thumb2_copy_b_bl_blx): New.
2870 (thumb2_copy_alu_imm): New.
2871 (thumb2_copy_load_reg_imm): New.
2872 (thumb2_copy_load_literal): New
2873 (thumb2_copy_block_xfer): New.
2874 (thumb_32bit_copy_undef): New.
2875 (thumb_32bit_copy_unpred): New.
2876 (thumb2_decode_ext_reg_ld_st): New.
2877 (thumb2_decode_svc_copro): New.
2878 (decode_thumb_32bit_store_single_data_item): New.
2879 (thumb_copy_pc_relative_32bit): New.
2880 (thumb_decode_pc_relative_32bit): New.
2881 (decode_thumb_32bit_ld_mem_hints): New.
2882 (thumb2_copy_table_branch): New
2883 (thumb_process_displaced_32bit_insn): Process Thumb 32-bit
2884 instructions.
2885
2b16b2e3
YQ
28862011-09-18 Yao Qi <yao@codesourcery.com>
2887
2888 * arm-tdep.c (install_copro_load_store): PC is set 4-byte aligned.
2889 (install_b_bl_blx): Likewise.
2890
0f6f04ba
YQ
28912011-09-17 Yao Qi <yao@codesourcery.com>
2892
2893 * arm-tdep.c (install_ldr_str_ldrb_strb): Renamed to ...
2894 (install_load_store): ... this. New.
2895 Change parameter BYTE to SIZE.
2896 (arm_copy_ldr_str_ldrb_strb): Update caller.
2897 (arm_decode_ld_st_word_ubyte): Update caller.
2898
e2d96639
YQ
28992011-09-17 Yao Qi <yao@codesourcery.com>
2900
2901 * infrun.c (displaced_step_fixup): Move some code ...
2902 (displaced_step_restore): ... here. New function.
2903 (handle_inferior_event): Cleanup displaced stepping state for both
2904 child and parent when get forked or vforked event.
2905 * regcache.c (get_thread_arch_aspace_regcache): New function.
2906 get_thread_arch_regcache (): Call it.
2907
a8123151
JB
29082011-09-16 Joel Brobecker <brobecker@adacore.com>
2909
2910 * ada-tasks.c (print_ada_task_info): New function, merging
2911 short_task_info and info_tasks together. Reimplement using
2912 ui-out instead of printing to stdout directly. Move the code
2913 building and checking the task list here, instead of leaving it
2914 in info_tasks_command.
2915 (info_task): Move the code building and checking the task
2916 list here, instead of leaving it in info_tasks_command.
2917 (info_tasks_command): Delete code building and checking
2918 the task list - moved elsewhere. Update calls to info_tasks
2919 and info_task.
2920
fbf06824
JB
29212011-09-16 Joel Brobecker <brobecker@adacore.com>
2922
2923 * ada-tasks.c (info_task): Delete parameter `from_tty'.
2924
34a0bc90
JB
29252011-09-16 Joel Brobecker <brobecker@adacore.com>
2926
2927 * ada-tasks.c (info_tasks): Delete parameter `from_tty'.
2928
79779fa9
JB
29292011-09-16 Joel Brobecker <brobecker@adacore.com>
2930
2931 * ada-lang.h (ada_build_task_list): Remove parameter
2932 `warn_if_null'.
2933 * ada-tasks.c (ada_build_task_list): Remove parameter
2934 `warn_if_null'. Adjust implementation and documentation.
2935 (valid_task_id, ada_get_environment_task)
2936 iterate_over_live_ada_tasks): Adjust call to ada_build_task_list.
2937 (info_tasks_command): Adjust implementation.
2938 (task_command): Likewise.
2939 * ravenscar-thread.c (ravenscar_find_new_threads): Fix call
2940 to ada_build_task_list.
2941
e225eb91
JB
29422011-09-16 Joel Brobecker <brobecker@adacore.com>
2943
2944 * ada-tasks.c (ada_tasks_check_symbol_table, task_list): Delete.
2945 (enum ada_known_tasks_kind, struct ada_tasks_inferior_data): New.
2946 (ada_tasks_inferior_data_handle): New static global.
2947 (get_ada_tasks_inferior_data): New function.
2948 (ada_get_task_number, get_task_number_from_id, valid_task_id)
2949 (ada_get_environment_task, iterate_over_live_ada_tasks)
2950 (add_ada_task, read_known_tasks_array, read_known_tasks_list):
2951 Adjust.
2952 (ada_set_current_inferior_known_tasks_addr): New function.
2953 (read_known_tasks, ada_build_task_list, short_task_info)
2954 (info_tasks, info_task, info_tasks_command, task_command_1)
2955 (task_command, ada_task_list_changed): Adjust.
2956 (ada_tasks_invalidate_inferior_data): New function.
2957 (ada_normal_stop_observer, ada_new_objfile_observer): Adjust.
2958 (_initialize_tasks): Set ada_tasks_inferior_data_handle.
2959 * ada-lang.h (struct inferior): Add declaration.
2960 (ada_task_list_changed): Update profile.
2961 * remote-wtx-pd.c: #include "inferior.h".
2962 (switch_to_pd_internal): Update call to ada_task_list_changed.
2963
6da9ca05
JB
29642011-09-16 Joel Brobecker <brobecker@adacore.com>
2965
2966 * ada-tasks.c: #include "progspace.h" and "objfiles.h".
2967 (atcb_type, atcb_common_type, atcb_ll_type, atcb_call_type)
2968 (atcb_fieldno): Delete these static globals.
2969 (struct ada_tasks_pspace_data): New struct.
2970 (ada_tasks_pspace_data_handle): New static global.
2971 (get_ada_tasks_pspace_data): New function.
2972 (ada_tasks_invalidate_pspace_data): New function.
2973 (get_tcb_types_info, ptid_from_atcb_common, read_atcb)
2974 (read_known_tasks_list, ada_new_objfile_observer): Adjust.
2975 (_initialize_tasks): Create this module's per-progspace
2976 data handle.
2977
dccd3cbd
JB
29782011-09-16 Joel Brobecker <brobecker@adacore.com>
2979
2980 * ada-tasks.c (struct atcb_fieldnos): Renames struct tcb_fieldnos.
2981
f877b031
TG
29822011-09-16 Tristan Gingold <gingold@adacore.com>
2983
2984 * fork-child.c (fork_inferior): Update comment. Use alloca
2985 instead of xmalloc for argv. Move len and shell_command
2986 declarations in the block where they are used.
2987 Only call execvp. Factorize failure code.
2988
ae0c443d
JK
29892011-09-16 Abhijit Halder <abhijit.k.halder@gmail.com>
2990
2991 Code cleanup.
2992 * parse.c (write_exp_elt): Change argument to pass a pointer of union
2993 `exp_element' instead of an element of the same and make the function
2994 static.
2995 (write_exp_elt_opcode, write_exp_elt_sym, write_exp_elt_block)
2996 (write_exp_elt_objfile, write_exp_elt_longcst, write_exp_elt_dblcst)
2997 (write_exp_elt_decfloatcst, write_exp_elt_type, write_exp_elt_intern):
2998 Change argument of `write_exp_elt' function call.
2999 Remove extra spaces from comments.
3000 * parser-defs.h (write_exp_elt): Remove prototype.
3001
5af65ec0
PK
30022011-09-15 Paul Koning <paul_koning@dell.com>
3003
3004 * python/py-cmd.c (gdbpy_string_to_argv): Decrement reference
3005 count of item appended to list.
3006 * python/py-type.c (typy_fields): Likewise.
3007
72be8ccc
PK
30082011-09-15 Paul Koning <paul_koning@dell.com>
3009
883640a8 3010 * MAINTAINERS (Write After Approval): Add myself to the list.
72be8ccc 3011
92f6badc
KP
30122011-09-15 Kevin Pouget <kevin.pouget@st.com>
3013
3014 PR threads/12628
3015 * linux-fork.c (checkpoint_command): Disallow checkpointing of
3016 processes with multiple threads.
3017 (inf_has_multiple_thread_cb): New function.
3018 (inf_has_multiple_threads): New function.
3019
0672bf41 30202011-09-15 Kevin Pouget <kevin.pouget@st.com>
2aa48337
KP
3021
3022 PR Python/12692 Add gdb.selected_inferior() to Python interface.
3023 * python/py-inferior.c (GdbMethods): New Python method definition.
3024
6839b47f
KP
30252011-09-15 Kevin Pouget <kevin.pouget@st.com>
3026
3027 Handle multiple breakpoint hits in Python interface:
3028 * python/py-bpevent.c (create_breakpoint_event_object): Rename C/Python
3029 variable to breakpoints.
3030 * python/py-stopevent.c (emit_stop_event): Return a Python tuple of
3031 bps instead of single breakpoint. Fix some space typos.
3032 * python/py-stopevent.c (create_breakpoint_event_object): Rename
3033 variable to breakpoints.
3034
672f9b60
KP
30352011-09-15 Kevin Pouget <kevin.pouget@st.com>
3036
3037 * breakpoint.c (describe_other_breakpoints): Do not write 'duplicate'
3038 note if the breakpoint is internal.
3039
43675ae4
KP
30402011-09-15 Kevin Pouget <kevin.pouget@st.com>
3041
0672bf41 3042 * MAINTAINERS (Write After Approval): Add myself to the list
43675ae4 3043
15148d6a
PA
30442011-09-14 Pedro Alves <pedro@codesourcery.com>
3045
3046 * infrun.c (prepare_for_detach, wait_for_inferior)
3047 (fetch_inferior_event): Don't flush the register cache.
3048 * remote.c (struct stop_reply) <regcache>: Add comment.
3049
d83e736b
JK
30502011-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3051
3052 Remove excessive DWARF expressions memory duplication.
3053 * dwarf2loc.c (per_cu_dwarf_call): Remove variable back_to and its use
3054 for block.data.
3055 (indirect_pieced_value): Remove variable result. Remove variable
3056 back_to and its use for baton.data.
3057 (dwarf2_compile_expr_to_ax): Remove variable back_to and its use for
3058 block.data.
3059 * dwarf2read.c (dwarf2_fetch_die_location_block): Remove xmemdup.
3060 Update the function comment.
3061
c65b3e0d
PA
30622011-09-13 Pedro Alves <pedro@codesourcery.com>
3063
3064 * inferior.h (ALL_INFERIORS): New.
3065 * linux-thread-db.c (thread_db_find_new_threads_2): Remove check
3066 for a stopped thread.
3067 (thread_db_find_new_threads): Look for threads in all inferiors.
3068
a1398e0c
PA
30692011-09-13 Pedro Alves <pedro@codesourcery.com>
3070
3071 * breakpoint.c (update_watchpoint): Handle the case of the
3072 watchpoint to update not being in the breakpoint list yet.
3073 (hw_watchpoint_use_count): New, factored out from
3074 hw_watchpoint_used_count.
3075 (hw_watchpoint_used_count): Rename to ...
3076 (hw_watchpoint_used_count_others): ... this. Add `except'
3077 parameter. Don't count resources of `except'. Use
3078 hw_watchpoint_use_count.
3079
30596231
PA
30802011-09-13 Pedro Alves <pedro@codesourcery.com>
3081
3082 * gdbthread.h (enum thread_state): Moved here.
3083 (struct thread_info): Rename `executing_' field to `executing' and
3084 `state_' to `state'.
3085 * thread.c (enum thread_state): Moved to gdbthread.h.
3086 (new_thread, add_thread_silent, delete_thread_1)
3087 (any_live_thread_of_process, thread_alive, set_running)
3088 (set_running, is_thread_state, any_running, is_executing)
3089 (set_executing, finish_thread_state, print_thread_info)
3090 (do_captured_thread_select): Adjust.
3091
bede5f5f
JK
30922011-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3093
3094 Fix compatibility with gcc < 4.3 and non-gcc compilers.
3095 * amd64-tdep.c (amd64_skip_xmm_prologue): Convert 0b constants.
3096
4801a9a3
PA
30972011-09-12 Pedro Alves <pedro@codesourcery.com>
3098 Matt Rice <ratmice@gmail.com>
3099
3100 PR gdb/13175
3101
3102 * interps.c (struct interp) <interpreter_out>: Delete field.
3103 (interp_new): Remove the data and uiout parameters and adjust.
3104 (interp_set): Only set the current_uiout from the interpreter's
3105 uiout after initializing the interpreter. Adjust call to
3106 init_proc.
3107 (interp_ui_out): Adjust to call procs->ui_out_proc.
3108 (interp_data, interp_name): New.
3109 * interps.h (interp_init_ftype): Add `self' parameter.
3110 (interp_ui_out_ftype): New typedef.
3111 (struct interp_procs) <ui_out_proc>: New method pointer.
3112 (interp_new): Remove the data and uiout parameters.
3113 (interp_data, interp_name): Declare.
3114 * tui/tui-interp.c (tui_init): Adjust prototype.
3115 (tui_ui_out): New.
3116 (_initialize_tui_interp): Install tui_ui_out. Don't instanciate
3117 tui_out here. Adjust call to interp_new.
3118 * tui/tui-io.c (tui_initialize_io): Don't set current_uiout here.
3119 * cli/cli-interp.c (cli_interpreter_init): Adjust prototype.
3120 (cli_ui_out): New.
3121 (_initialize_cli_interp): Install it. Adjust call to interp_new.
3122 * mi/mi-common.h (struct mi_interp) <uiout>: New field.
3123 * mi/mi-interp.c (mi_interpreter_init): Adjust prototype.
3124 Initialize mi->uiout depending on the mi_version as extracted from
3125 the interpreter's name.
3126 (mi_ui_out): New.
3127 (_initialize_mi_interp): Install mi_ui_out. Adjust calls to
3128 interp_new. Don't allocate the ui_out's of the interpreters here.
3129
d0afda03 31302011-09-12 Aleksandar Ristovski <aristovski@qnx.com>
59145f8c 3131
d0afda03 3132 * solib.c (solib_used): New function.
59145f8c
AR
3133 (update_solib_list, reload_shared_libraries_1): Check if objfile is used
3134 by another so_list object before freeing it.
3135
bdaf8d4a
JK
31362011-09-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3137
3138 Code cleanup.
3139 * mi/mi-cmd-stack.c (list_args_or_locals): Use enum for the parameter
3140 values.
3141
df15bd07
JK
31422011-09-09 Jan Kratochvil <jan.kratochvil@redhat.com>
3143
3144 Code cleanup.
3145 * amd64-tdep.c (amd64_skip_prologue): Move the XMM code to ...
3146 (amd64_skip_xmm_prologue): ... this new function. Describe its
3147 parameters. No longer use amd64_prologue_line_bug.
3148 * defs.h (producer_is_gcc_ge_4): New declaration.
3149 * dwarf2read.c (producer_is_gcc_ge_4): Move to utils.c.
3150 (process_full_comp_unit): Update its caller. Remove
3151 amd64_prologue_line_bug initialization.
3152 * symtab.h (struct symtab): Remove field amd64_prologue_line_bug.
3153 * utils.c (producer_is_gcc_ge_4): Moved here from dwarf2read.c.
3154
25289eb2
PA
31552011-09-09 Pedro Alves <pedro@codesourcery.com>
3156
3157 * linux-nat.h (enum resume_kind): New.
3158 (struct lwp_info) <last_resume_kind>: New field.
ddf17726
PA
3159 * linux-nat.c (linux_child_follow_fork): Set last_resume_kind to
3160 resume_stop on the new lwp.
25289eb2
PA
3161 (add_lwp): Set last_resume_kind as resume_continue by default.
3162 (lin_lwp_attach_lwp): Set last_resume_kind as resume_stop.
3163 (resume_lwp): New, factored out from resume_callback. Also check
3164 for pending status in lp->waitstatus.
3165 (resume_callback): Reimplement.
3166 (resume_clear_callback): Set last_resume_kind as resume_stop.
3167 (resume_set_callback): Set last_resume_kind as resume_continue.
3168 (linux_nat_resume, linux_handle_extended_wait): Set
3169 last_resume_kind.
3170 (running_callback): Also check lp->waitstatus for pending events.
3171 (select_singlestep_lwp_callback): Check that lp->last_resume_kind
3172 is resume_step.
3173 (stop_and_resume_callback): Don't re-resume if the core wanted the
3174 lwp stopped. Use resume_lwp instead of resume_callback. Avoid
3175 using an invalidated pointer.
3176 (linux_nat_filter_event): Don't discard SIGSTOPs as delayed
3177 SIGSTOPs if the core wanted the LWP to stop.
3178 (linux_nat_wait_1) Don't consume a pending SIGSTOP if the core
3179 wanted the lwp to stop. If the core wanted the lwp to stop, and
3180 the lwp stopped with a SIGSTOP, report a TARGET_SIGNAL_0 instead
3181 of TARGET_SIGNAL_STOP.
3182 (linux_nat_stop_lwp): Don't synchronously wait for the lwp to stop
3183 here. Instead, signal the lwp, and set the last_resume_kind to
3184 resume_stop.
3185
f687d035
PA
31862011-09-09 Pedro Alves <pedro@codesourcery.com>
3187
3188 * linux-nat.c (lin_lwp_attach_lwp): Return 1 (ignore) instead of
3189 -1 (error), if the lwp exits right after attaching.
3190
bc587a6b
DE
31912011-09-08 Doug Evans <dje@google.com>
3192
63d97a20
DE
3193 * py-cmd.c: Some minor formatting fixes.
3194 (gdbpy_parse_command_name): Rename text arg to name, make const.
3195 All callers updated.
3196 * python-internal.h (gdbpy_parse_command_name): Update.
3197
bc587a6b
DE
3198 * cli/cli-decode.c (add_cmd): Add comment.
3199
08711b9a
JK
32002011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3201
3202 PR breakpoints/12435
3203 * amd64-tdep.c (amd64_skip_prologue): New variables start_pc_sal,
3204 next_sal, buf, offset and xmmreg. Advance PC if it sees the PR.
3205 * dwarf2read.c (process_full_comp_unit): Initialize
3206 amd64_prologue_line_bug.
3207 * symtab.h (struct symtab): New field amd64_prologue_line_bug.
3208
b2e7f004
JK
32092011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3210
3211 Fix TUI screen corruption.
3212 * utils.c (fputs_maybe_filtered): Replace !input_from_terminal_p by
3213 batch_flag.
3214
8afd712c
JK
32152011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3216
3217 * findvar.c (read_var_value): Never return NULL, throw an error
3218 instead. Update the function comment. State symbol name in the error
3219 messages.
3220 * python/py-frame.c (frapy_read_var): Remove handling of NULL from
3221 read_var_value.
3222 * stack.c (print_frame_args): Likewise.
3223 * valops.c (value_of_variable): Likewise.
3224
b99b5f66
JK
32252011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3226
3227 * stack.c (print_frame_args): New variable except. Wrap
3228 read_var_value and common_val_print into TRY_CATCH.
3229
85bc8cb7
JK
32302011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3231
3232 * eval.c (evaluate_subexp_standard) <OP_THIS>: Update the value_of_this
3233 caller to value_of_this.
3234 * p-exp.y: Update the value_of_this caller to value_of_this_silent.
3235 Twice.
3236 * valops.c (value_of_this): Remove parameter complain and variable ret.
3237 Update function comment. Never return NULL by this code.
3238 (value_of_this_silent): New function.
3239 * value.h (value_of_this): Remove parameter complain.
3240 (value_of_this_silent): New declaration.
3241
ede1849f
YQ
32422011-09-07 Yao Qi <yao@codesourcery.com>
3243
3244 * gdbthread.h (struct thread_info): Remove fields
3245 `stepping_through_solib_after_catch' and
3246 `stepping_through_solib_catchpoints'.
3247 * infrun.c (init_thread_stepping_state): Update.
3248 (process_event_stop_test, currently_stepping): Update.
3249 (currently_stepping_or_nexting_callback): Update.
3250
6aa27652
YQ
32512011-09-07 Yao Qi <yao@codesourcery.com>
3252
3253 * gdbthread.h (struct thread_info): Comment on field
3254 `step_after_step_resume_breakpoint'.
3255
00db5b94
PA
32562011-09-07 Abhijit Halder <abhijit.k.halder@gmail.com>
3257
3258 * remote.c (remote_console_output): Reindent.
3259
861152be
LM
32602011-09-06 Luis Machado <lgustavo@codesourcery.com>
3261
3262 * frame.c (has_stack_frames): Check for currently selected
3263 traceframe.
3264
ab821bc6
PA
32652011-09-06 Pedro Alves <pedro@codesourcery.com>
3266
3267 * event-top.h (MAXPROMPTS, struct prompts): Delete.
3268 (set_async_annotation_level, set_async_prompt, pop_prompt)
3269 (push_prompt, new_async_prompt): Delete declarations.
3270 * top.h (get_prompt, set_prompt): Change prototype.
3271 (get_prefix, set_prefix, get_suffix, set_suffix): Delete
3272 declarations.
3273 * top.c (command_loop):
3274 (top_prompt): New global.
3275 (get_prefix, set_prefix, get_suffix, ): Delete.
3276 (get_prompt, set_prompt): Rewrite.
3277 (show_new_async_prompt): Rename to ...
3278 (show_prompt): ... this.
3279 (init_main): Adjust. Don't handle --annotate=2 here.
3280 * event-top.c (new_async_prompt): Delete.
3281 (the_prompts): Delete.
3282 (more_to_come): Make static.
3283 (display_gdb_prompt): Use top_level_prompt() to compute the top
3284 level prompt, and don't notify the before_prompt observers
3285 directly here. Always trick readline into not trying to display
3286 the prompt if sync_execution and displaying the primary prompt.
3287 If displaying a local/secondary prompt, always show it, even if
3288 sync_execution is set.
3289 (change_annotation_level): Delete.
3290 (top_level_prompt): New, based on change_annotation_level.
3291 (push_prompt, pop_prompt): Delete.
3292 (async_disable_stdin): No longer pushes prompt.
3293 (command_line_handler): No longer pushes or pops prompt. If more
3294 input is expected, call display_gdb_prompt with an explicit empty
3295 prompt.
3296 (async_stop_sig): Adjust.
3297 (set_async_annotation_level, set_async_prompt): Delete.
3298 * python/python.c (before_prompt_hook): Adjust.
3299
f1d90504
PA
33002011-09-05 Pedro Alves <pedro@codesourcery.com>
3301
3302 PR cli/13110
3303
3304 * infrun.c (fetch_inferior_event): Check if there's a selected
3305 thread before checking if the selected thread is executing.
3306
0f641c01
PA
33072011-09-05 Pedro Alves <pedro@codesourcery.com>
3308
3309 * inf-loop.c (execute_command): Don't check if the current thread
3310 if running before synchronously waiting for command completion.
3311 * infrun.c (fetch_inferior_event): Handle "set exec-done-display"
3312 here.
3313 (normal_stop): Call async_enable_stdin here.
3314 * inf-loop.c (inferior_event_handler): Don't call
3315 async_enable_stdin, nor handle "set exec-done-display" here.
3316
30368258 33172011-09-04 Joel Brobecker <brobecker@adacore.com>
3318
3319 GDB 7.3.1 released.
3320
31916278
JB
33212011-09-04 Joel Brobecker <brobecker@adacore.com>
3322
3323 * NEWS: Change `7.3' into `7.3.1' in `Changes since GDB 7.3'.
3324
e8d56f18
JB
33252011-09-04 Joel Brobecker <brobecker@adacore.com>
3326
3327 * NEWS: Add entry for OpenBSD/NetBSD build failure.
3328
5dd05d8c
JK
33292011-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3330
3331 * config/s390/s390.mh (NATDEPFILES): Add linux-procfs.o dependency.
3332
7d8e6458 33332011-09-02 Matt Rice <ratmice@gmail.com>
3334
3335 PR gdb/10720
3336 * event-top.c (cli_command_loop): Replace readline setup with
3337 direct call to display_gdb_prompt.
3338 (display_gdb_prompt): Do not call observer mechanism during
3339 synchronous execution.
3340
84636d28
PA
33412011-09-02 Pedro Alves <pedro@codesourcery.com>
3342
3343 * linux-nat.c (in_pid_list_p): New.
3344 (linux_record_stopped_pid): Delete.
3345 (lin_lwp_attach_lwp): Check if PTRACE_ATTACH failed because we're
3346 already attached to the LWP. Return an indication if so.
3347 (linux_nat_filter_event): Adjust.
3348 * linux-thread-db.c (attach_thread): Handle lin_lwp_attach_lwp
3349 returning an indication to ignore this thread.
3350
b4a14fd0
PA
33512011-09-02 Pedro Alves <pedro@codesourcery.com>
3352
3353 * top.c: Include interps.h.
3354 (execute_command): If the target can async, but the interpreter is
3355 in sync mode, synchronously wait for the command to finish before
3356 returning.
3357 (execute_command_to_string): Force the interpreter to sync mode.
3358 * infrun.c: Include interps.h.
3359 (fetch_inferior_event): Don't restore the prompt yet if the
3360 interpreter is in sync mode.
3361 * interps.c (interpreter_async): New global.
3362 * interps.h (interpreter_async): Declare.
3363 * inf-loop.c: Include interps.h.
3364 (inferior_event_handler): Don't print the language change or run
3365 breakpoint commands yet if the interpreter in is sync mode.
3366 * main.c (captured_command_loop): Flip the interpreter to async
3367 mode.
3368 * cli/cli-script.c: Include interps.h.
3369 (execute_user_command, while_command, if_command): Force the
3370 interpreter to sync mode.
3371 * python/python.c: Include interps.h.
3372 (python_command, execute_gdb_command): Force the interpreter to
3373 sync mode.
3374
c709acd1
PA
33752011-09-02 Pedro Alves <pedro@codesourcery.com>
3376
3377 * value.c (show_convenience): Catch errors thrown while printing
3378 each internal variable.
3379 * infrun.c (validate_siginfo_access): New function.
3380 (siginfo_value_read, siginfo_value_write): Call it.
3381
9655e943
JK
33822011-09-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3383
3384 Revert:
3385 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
3386 * dwarf2read.c (new_symbol): Handle DW_AT_variable_parameter
3387 attribute.
3388
cb457ae2
YQ
33892011-08-29 Yao Qi <yao@codesourcery.com>
3390
3391 * solib-dsbt.c (bfd_lookup_symbol): Removed.
3392 (cmp_name): New.
3393 (enable_break2): Update caller.
3394 * solib-frv.c (bfd_lookup_symbol): Removed.
3395 (cmp_name): New.
3396 (enable_break2): Update caller.
3397 * solib-pa64.c (bfd_lookup_symbol): Removed.
3398 (cmp_name): New.
3399 * solib-svr4.c (bfd_lookup_symbol): Removed.
3400 (cmp_name_and_sec_flags): New.
3401 (enable_break): Update caller.
3402 * solib.c (gdb_bfd_lookup_symbol_from_symtab): New.
3403 (gdb_bfd_lookup_symbol_from_dyn_symtab): New.
3404 (gdb_bfd_lookup_symbol): New.
3405 * solib.h: Functions declarations.
3406
83d1a36a
YQ
34072011-08-29 Yao Qi <yao@codesourcery.com>
3408
3409 * Makefile.in (ALL_TARGET_OBS): Add tic6x-tdep.o tic6x-linux-tdep.o
3410 and solib-dsbt.o.
3411
c04b3e8f
JK
34122011-08-29 Jan Kratochvil <jan.kratochvil@redhat.com>
3413
3414 Fix TUI stepi on code without symbols.
3415 * tui/tui-stack.c (tui_show_frame_info): Remove error, set LOW for
3416 current PC instead.
3417
cb0fd152
JK
34182011-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3419
3420 Code cleanup.
3421 * mi/mi-cmd-stack.c (list_args_or_locals): Remove stb initialization
3422 and the static keyword.
3423 * mi/mi-cmd-target.c (mi_cmd_target_file_get, mi_cmd_target_file_put):
3424 Make prefix an array.
3425 * mi/mi-cmd-target.c (mi_cmd_target_file_delete): Likewise.
3426 * mi/mi-main.c (get_register): Remove stb initialization and the static
3427 keyword.
3428
91174723
JK
34292011-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3430
3431 Code cleanup - make mi_opt const.
3432 * mi/mi-cmd-break.c (mi_cmd_break_insert, mi_cmd_break_watch): Make
3433 opts const.
3434 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
3435 * mi/mi-cmd-env.c (mi_cmd_env_path): Likewise.
3436 (mi_cmd_env_dir): Likewise.
3437 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Likewise.
3438 (mi_cmd_target_file_put): Likewise.
3439 * mi/mi-cmd-target.c (mi_cmd_target_file_delete): Likewise.
3440 * mi/mi-cmd-var.c (mi_cmd_var_evaluate_expression): Likewise.
3441 * mi/mi-getopt.c (mi_getopt): Make opts and opt const.
3442 (mi_valid_noargs): Make opts const.
3443 * mi/mi-getopt.h (mi_getopt): Make opts and opt const.
3444 * mi/mi-main.c (mi_cmd_list_thread_groups): Make opts const.
3445 (mi_cmd_data_read_memory): Likewise.
3446 (mi_cmd_data_read_memory_bytes): Likewise.
3447 (mi_cmd_data_write_memory): Likewise.
3448
5068b8e8 34492011-08-26 Matt Rice <ratmice@gmail.com>
3450
3451 * solib-sunos.c (allocate_rt_common_objfile): Add missing arguments to
3452 bcache_xmalloc, replace bcache_xmalloc with call to
3453 psymbol_bcache_init for psymbol_cache.
3454 * symfile.c (reread_symbols): Remove extra calls to bcache_xmalloc.
3455
a4f2ce05
JK
34562011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
3457
3458 * inf-loop.c (inferior_event_handler): Add exception_print in
3459 INF_EXEC_COMPLETE.
3460
353d1d73
JK
34612011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
3462
3463 * breakpoint.c (bpstat_do_actions): New variable cleanup_if_error, call
3464 make_bpstat_clear_actions_cleanup and discard_cleanups for it.
3465 * defs.h (make_bpstat_clear_actions_cleanup): New declaration.
3466 * exceptions.c (throw_exception): Remove the bpstat_clear_actions call.
3467 * inf-loop.c (inferior_event_handler): New variable cleanup_if_error,
3468 call make_bpstat_clear_actions_cleanup and discard_cleanups for it.
3469 Call bpstat_clear_actions for failed fetch_inferior_event_wrapper.
3470 * infrun.c (fetch_inferior_event): Call
3471 make_bpstat_clear_actions_cleanup.
3472 * top.c (execute_command): New variable cleanup_if_error, call
3473 make_bpstat_clear_actions_cleanup and discard_cleanups for it.
3474 * utils.c (do_bpstat_clear_actions_cleanup)
3475 (make_bpstat_clear_actions_cleanup): New functions.
3476
3ced3da4
PA
34772011-08-26 Pedro Alves <pedro@codesourcery.com>
3478
3479 * linux-nat.c (linux_child_follow_fork): Don't set lp->resumed on
3480 either the parent or the child forks. Rename a couple locals.
3481
a9f4bb21
PA
34822011-08-26 Pedro Alves <pedro@codesourcery.com>
3483
3484 * linux-nat.c (wait_lwp): Avoid assuming errno is preserved by a
3485 library call. Avoid reading the `status' local if all waitpid
3486 calls failed.
3487
e5798bef
PA
34882011-08-26 Pedro Alves <pedro@codesourcery.com>
3489
3490 * common/linux-osdata.c (get_cores_used_by_process): Don't assume
3491 opening /proc/PID/task always succeeds.
3492
edb2aadf
AR
34932011-08-26 Aleksandar Ristovski <aristovski@qnx.com>
3494
3495 * linespec.c (symtab_from_filename): Check for the end of string.
3496
0d932b2f
MK
34972011-08-26 Marc Khouzam <marc.khouzam@ericsson.com>
3498
3499 PR mi/11912
3500 * varobj.c (cplus_describe_child): Add the keyword
3501 'class' to the output of the method when dealing
3502 with a cast to a base class.
3503
e93ca019
JK
35042011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
3505
3506 No functionality change.
3507 * breakpoint.c (bpstat_clear_actions): Remove the BS parameter, make
3508 function comment a reference, new variables tp and bs, move here code
3509 from throw_exception.
3510 * breakpoint.h (bpstat_clear_actions): Remove the BS parameter,
3511 describe it in the comment.
3512 * exceptions.c (throw_exception): Remove variable tp, move the code for
3513 bpstat_clear_actions to bpstat_clear_actions.
3514
13da1c97
LM
35152011-08-24 Luis Machado <lgustavo@codesourcery.com>
3516
3517 * linux-nat.h (linux_proc_get_tgid): Remove declaration.
3518 * linux-nat.c: Include linux-procfs.h.
3519 (linux_proc_get_tgid): Move to ...
3520 * common/linux-procfs.c: ... here. New file.
3521 * common/linux-procfs.h: New file.
3522 * linux-thread-db.c: Include linux-procfs.h.
3523 * Makefile.in: Update dependencies.
3524 * config/alpha/alpha-linux.mh: Add linux-procfs.o dependency.
3525 * config/arm/linux.mh: Likewise.
3526 * config/i386/linux.mh: Likewise.
3527 * config/i386/linux64.mh: Likewise.
3528 * config/ia64/linux.mh: Likewise.
3529 * config/m32r/linux.mh: Likewise.
3530 * config/m68k/linux.mh: Likewise.
3531 * config/mips/linux.mh: Likewise.
3532 * config/pa/linux.mh: Likewise.
3533 * config/pa/linux.mh: Likewise.
3534 * config/powerpc/linux.mh: Likewise.
3535 * config/powerpc/ppc64-linux.mh: Likewise.
3536 * config/powerpc/spu-linux.mh: Likewise.
3537 * config/sparc/linux.mh: Likewise.
3538 * config/sparc/linux64.mh: Likewise.
3539 * config/xtensa/linux.mh: Likewise.
3540
4e5c165d
HZ
35412011-08-24 Hui Zhu <teawater@gmail.com>
3542
3543 * tracepoint.c (cond_string_is_same): New function.
3544 (find_matching_tracepoint): Add condition check
3545 by cond_string_is_same.
3546
6e2f5b22
JK
35472011-08-23 Josh Matthews <josh@joshmatthews.net>
3548
3549 Fix build error in Darwin port.
3550 * darwin-nat-info.c (darwin_debug_regions_recurse): New variable uiout.
3551
abf85f46
JK
35522011-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3553
3554 Code cleanup.
3555 * breakpoint.c (bpstat_clear_actions): Remove clearing of commands_left.
3556 (command_line_is_silent): New function.
3557 (bpstat_do_actions_1): No longer use commands_left, use
3558 command_line_is_silent for commands.
3559 (bpstat_alloc): Remove clearing of commands_left.
3560 (bpstat_stop_status): Remove initialization of commands_left, use
3561 command_line_is_silent.
3562 * breakpoint.h (struct bpstats): Remove commands_left.
3563
3a93a0c2
KS
35642011-08-18 Keith Seitz <keiths@redhat.com>
3565
3566 PR c++/12266
3567 * cp-name-parser.y (struct demangle_info): Remove unused
3568 member PREV.
3569 (d_grab): Likewise.
3570 (allocate_info): Change return type to struct demangle_info *.
3571 Always allocate a new demangle_info.
3572 Remove unused PREV pointer.
3573 (cp_new_demangle_parse_info): New function.
3574 (cp_demangled_name_parse_free): New function.
3575 (do_demangled_name_parse_free_cleanup): New function.
3576 (make_cleanup_cp_demangled_name_parse_free): New function.
3577 (cp_demangled_name_to_comp): Change return type to
3578 struct demangle_parse_info *.
3579 Allocate a new storage for each call.
3580 (main): Update usage for cp_demangled_name_to_comp
3581 API change.
3582 * cp-support.h (struct demangle_parse_info): New structure.
3583 (cp_demangled_name_to_comp): Update API change for
3584 return type.
3585 (cp_new_demangle_parse_info): Declare.
3586 (make_cleanup_cp_demangled_name_parse_free): New declaration.
3587 (cp_demangled_name_parse_free): Declare.
3588 * cp-support.c (cp_canonicalize_string): Update API
3589 change for cp_demangled_name_to_comp.
3590 (mangled_name_to_comp): Likewise.
3591 Return struct demangle_parse_info, too.
3592 (cp_class_name_from_physname): Update mangled_name_to_comp
3593 API change.
3594 (method_name_from_physname): Likewise.
3595 (cp_func_name): Update API change for cp_demangled_name_to_comp.
3596 (cp_remove_params): Likewise.
3597 * python/py-type.c (typy_legacy_template_argument): Likewise.
3598
3599 * cp-support.h (cp_canonicalize_string_no_typedefs): Declare.
3600 (cp_merge_demangle_parse_infos): Declare.
3601 * cp-support.c (ignore_typedefs): New file global.
3602 (copy_string_to_obstack): New function.
3603 (inspect_type): New function.
3604 (replace_typedefs): New function.
3605 (replace_typedefs_qualified_name): New function.
3606 (cp_canonicalize_string_no_typedefs): New function.
3607 * cp-name-parser.y (cp_merge_demangle_parse_infos): New function.
3608 (cp_new_demangle__parse_info): Allocate and initialize the obstack.
3609 * linespec.c (find_methods): Use cp_canonicalize_string_no_typedefs
3610 instead of cp_canonicalize_string.
3611 (find_method): Likewise.
3612 (decode_compound): Before looking up the name, call
3613 cp_canonicalize_string_no_typedefs.
3614 (decode_variable): Likewise.
3615
fa3a4f15
PM
36162011-08-17 Phil Muldoon <pmuldoon@redhat.com>
3617 Tom Tromey <tromey@redhat.com>
3618 Matt Rice <ratmice@gmail.com>
3619
3620 * python/lib/gdb/prompt.py: New file.
3621 * python/lib/gdb/command/prompt.py: New file.
3622 * NEWS: Document set extended-prompt and gdb.prompt library
3623
85661b1e
YQ
36242011-08-16 Yao Qi <yao@codesourcery.com>
3625
3626 * tic6x-linux-tdep.c: Move const arrays definition from here...
3627 * tic6x-tdep.c: to here ...
3628
11315641
YQ
36292011-08-14 Yao Qi <yao@codesourcery.com>
3630
3631 * NEWS: New port to Texas Instruments TMS320C6x.
3632
8cd64e00
YQ
36332011-08-14 Andrew Jenner <andrew@codesourcery.com>
3634 Bernd Schmidt <bernds@codesourcery.com>
3635 Yao Qi <yao@codesourcery.com>
3636
3637 * configure.tgt: Handle tic6x-*-*linux and tic6x-*-*.
3638 * solib-dsbt.c: New file. Support DSBT shared object.
3639 * tic6x-linux-tdep.c: New file.
3640 * tic6x-tdep.c: New file.
3641 * tic6x-tdep.h: New file.
3642
78d85199
YQ
36432011-08-14 Andrew Stubbs <ams@codesourcery.com>
3644 Yao Qi <yao@codesourcery.com>
3645
3646 * remote.c (PACKET_qXfer_fdpic): New enum value.
3647 (remote_protocol_features): Add qXfer:fdpic:read packet.
3648 (remote_xfer_partial): Support TARGET_OBJECT_FDPIC.
3649 (_initialize_remote): Add set/show remote read-fdpic-loadmap command.
3650 * target.h (enum target_object): Add TARGET_OBJECT_FDPIC.
3651
224bbe49
YQ
36522011-08-14 Yao Qi <yao@codesourcery.com>
3653
3654 Target description for tic6x.
3655 * features/Makefile (WHICH): Add tic6x-c64xp tic6x-c64x tic6x-c62x
3656 tic6x-c64xp-linux tic6x-c64x-linux and tic6x-c62x-linux.
3657 * features/tic6x-c6xp.xml, features/tic6x-core.xml: New.
3658 * features/tic6x-gp.xml, features/tic6x-c62x.xml: New.
3659 * features/tic6x-c64x.xml, features/tic6x-c64xp.xml: New.
3660 * features/tic6x-c62x-linux.xml, features/tic6x-c64x-linux.xml: New.
3661 * features/tic6x-c64xp-linux.xml: New.
3662 * features/tic6x-c64xp.c, features/tic6x-c64x.c: Generated.
3663 * features/tic6x-c62x.c, features/tic6x-c64xp-linux.c: Generated.
3664 * features/tic6x-c64x-linux.c, features/tic6x-c62x-linux.c: Generated.
3665 * regformats/tic6x-c62x.dat, regformats/tic6x-c64x.dat: Generated.
f040079f
HZ
3666 * regformats/tic6x-c64xp.dat,
3667 regformats/tic6x-c62x-linux.dat: Generated.
3668 * regformats/tic6x-c64x-linux.dat,
3669 regformats/tic6x-c64xp-linux.dat: Generated.
224bbe49
YQ
3670 * config/djgpp/fnchange.lst: Add features/tic6x-*.xml and
3671 features/tic6x-*.c files.
3672 Add regformats/tic6x-*.dat files.
3673
457e09f0
DE
36742011-08-12 Doug Evans <dje@google.com>
3675
3676 * NEWS: Mention new "type" attribute of python gdb.Symbol objects.
3677 * python/py-symbol.c (sympy_get_type): New function.
3678 (symbol_object_getset): Add "type".
3679
d20c1c3f
PA
36802011-08-12 Pedro Alves <pedro@codesourcery.com>
3681
3682 PR tui/13073
3683
3684 * tui/tui-regs.c (tui_show_register_group): Skip registers with an
3685 empty name.
3686 (tui_show_register_group): Don't store a byte buffer in the data
3687 element's value.
3688 (tui_register_format): Skip registers with an empty name.
3689 (tui_get_register): Store a struct value in the data element's
3690 value field instead of a byte buffer holding the raw register
3691 contents. Account for optimized-out and unavailable registers
3692 when comparing register contents.
3693
9d8fa392
PA
36942011-08-09 Pedro Alves <pedro@codesourcery.com>
3695
3696 * printcmd.c (current_display_number): Update comment.
3697 (disable_current_display_cleanup): Delete.
3698 (do_one_display): Use make_cleanup_restore_integer. Gracefully
3699 catch errors thrown while evaluating and printing the display.
3700
401a70b8
TT
37012011-08-09 Tom Tromey <tromey@redhat.com>
3702
3703 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Fix typo.
3704
7f86f058
PA
37052011-08-09 Pedro Alves <pedro@codesourcery.com>
3706
94b71cca 3707 * elfread.c (elf_symtab_read): Rework comments.
7f86f058
PA
3708 * maint.c (maintenance_command): Ditto.
3709 * somread.c (som_symtab_read): Ditto.
3710 * solib.c (solib_find, solib_map_sections, update_solib_list)
3711 (solib_add, info_sharedlibrary_command, solib_name_from_address)
3712 (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
94b71cca 3713 (sharedlibrary_command, no_shared_libraries): Ditto.
7f86f058
PA
3714 * solib-irix.c (locate_base, disable_break, enable_break)
3715 (irix_solib_create_inferior_hook, irix_solib_create_inferior_hook)
3716 (irix_current_sos, irix_open_symbol_file_object)
3717 (irix_special_symbol_handling): Ditto.
3718 * solib-sunos.c (locate_base, first_link_map_member)
3719 (sunos_current_sos, disable_break, enable_break)
3720 (sunos_special_symbol_handling, sunos_solib_create_inferior_hook):
3721 Ditto.
3722 * solib-svr4.c (bfd_lookup_symbol, elf_locate_base, locate_base)
3723 (open_symbol_file_object, svr4_current_sos, enable_break)
3724 (svr4_special_symbol_handling, svr4_solib_create_inferior_hook):
3725 Ditto.
3726 * solib-frv.c (bfd_lookup_symbol, open_symbol_file_object)
3727 (frv_current_sos, enable_break, frv_special_symbol_handling)
3728 (frv_solib_create_inferior_hook): Ditto.
3729 * solist.h (struct target_so_ops): Extend the comments of the
3730 special_symbol_handling, current_sos and open_symbol_file_object
3731 methods.
3732
5e239b84
PM
37332011-08-09 Phil Muldoon <pmuldoon@redhat.com>
3734
3735 * python/lib/gdb/__init__.py: Auto-load files in command and
3736 function directories.
3737 * python/python.c (finish_python_initialization): Use
3738 os.path.join.
3739 * python/lib/gdb/command/pretty_printers.py: Self register
3740 command.
3741 * NEWS: Document auto-loading.
3742
b6cede78
JK
37432011-08-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3744
3745 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_STACK>
3746 (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_LITERAL>: New variable
3747 objfile_gdbarch. Fix BFD_ENDIAN_BIG case.
3748
29d0bb3d
TT
37492011-08-08 Tom Tromey <tromey@redhat.com>
3750
3751 * breakpoint.c (clean_up_filters): Remove.
3752 (catch_syscall_split_args): Use VEC_cleanup.
3753
2f7fb8e4
JK
37542011-08-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3755
3756 * cp-name-parser.y (xfree): Wrap the name free by CONCAT2.
3757 (main): Uncomment "Demangling error\n".
3758
d6c10e95
PP
37592011-08-05 Paul Pluzhnikov <ppluzhnikov@google.com>
3760
3761 * solib-target.c (segment_attributes): Make them static.
3762 (section_attributes, library_children, library_attributes): Likewise.
3763 (library_list_children, library_list_attributes): Likesise.
3764 (library_list_elements): Likewise.
3765
af6e93b2
PA
37662011-08-05 Pedro Alves <pedro@codesourcery.com>
3767
3768 * exceptions.c (throw_exception): Don't disable the current
3769 display.
3770 * printcmd.c (disable_current_display_cleanup): New function.
3771 (do_one_display): Install a cleanup to disable the current display
3772 if doing the display throws.
3773
6a1b1664
EZ
37742011-08-05 Eli Zaretskii <eliz@gnu.org>
3775
3776 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Move the
3777 initialization of the tp_new member to the corresponding
3778 gdbpy_initialize_* function.
3779 * python/py-cmd.c (gdbpy_initialize_commands): Likewise.
3780 * python/py-frame.c (gdbpy_initialize_frames): Likewise.
3781 * python/py-function.c (gdbpy_initialize_functions): Likewise.
3782 * python/py-inferior.c (gdbpy_initialize_inferior): Likewise.
3783 * python/py-param.c (gdbpy_initialize_parameters): Likewise.
3784
31a0ae49
JK
37852011-08-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3786
3787 * spu-tdep.c (info_spu_event_command, info_spu_signal_command)
3788 (info_spu_mailbox_list, info_spu_mailbox_command, info_spu_dma_cmdlist)
3789 (info_spu_dma_command, info_spu_proxydma_command): Rename uiout
3790 references to current_uiout.
3791
e0dd0826
PA
37922011-08-04 Pedro Alves <pedro@codesourcery.com>
3793
3794 * event-loop.c (gdb_do_one_event): Remove `data' parameter.
3795 (start_event_loop): Use TRY_CATCH instead of catch_errors.
3796 * event-loop.h (gdb_do_one_event): Remove `data' parameter.
3797 * top.c (gdb_readline_wrapper): Adjust.
3798 * tui/tui-interp.c (tui_command_loop):
3799 (_initialize_tui_interp): Don't install it.
3800
79a45e25
PA
38012011-08-04 Pedro Alves <pedro@codesourcery.com>
3802
3803 * ui-out.h (uiout): Rename to ...
3804 (current_uiout): ... this.
3805 * ui-out.c (uiout): Rename to ...
3806 (current_uiout): ... this.
3807 * ada-lang.c (print_it_exception, print_one_exception)
3808 (print_mention_exception): Adjust.
3809 * breakpoint.c (watchpoint_check): Adjust.
3810 (print_breakpoint_location, print_one_breakpoint, breakpoint_1)
3811 (default_collect_info, watchpoints_info, print_one_catch_fork)
3812 (print_one_catch_vfork, print_one_catch_syscall)
3813 (print_one_catch_exec, mention, print_it_ranged_breakpoint)
3814 (print_one_ranged_breakpoint, print_mention_ranged_breakpoint)
3815 (print_it_watchpoint, print_mention_watchpoint)
3816 (print_it_masked_watchpoint, print_mention_masked_watchpoint)
3817 (print_it_exception_catchpoint, print_one_exception_catchpoint)
3818 (print_mention_exception_catchpoint, say_where, bkpt_print_it)
3819 (bkpt_print_mention, momentary_bkpt_print_it)
3820 (tracepoint_print_mention, update_static_tracepoint)
3821 (tracepoints_info, save_breakpoints): Adjust.
3822 * cli-out.c (field_separator): Adjust.
3823 * cp-abi.c (list_cp_abis, show_cp_abi_cmd): Adjust.
3824 * exceptions.c (catch_exceptions_with_msg, catch_errors): Adjust.
3825 * frame.c (get_current_frame): Adjust.
3826 * infcmd.c (run_command_1, print_return_value): Adjust.
3827 * inferior.c (inferior_command, info_inferiors_command): Adjust.
3828 * infrun.c (print_end_stepping_range_reason): Adjust.
3829 (print_signal_exited_reason, print_exited_reason): Adjust.
3830 (print_signal_received_reason, print_no_history_reason): Adjust.
3831 * interps.c (interp_set): Adjust.
3832 * osdata.c (info_osdata_command): Adjust.
3833 * progspace.c (maintenance_info_program_spaces_command): Adjust.
3834 * remote-fileio.c (remote_fileio_request): Adjust.
3835 * remote.c (show_remote_cmd): Adjust.
3836 * solib.c (info_sharedlibrary_command): Adjust.
3837 * source.c (print_source_lines_base): Adjust.
3838 * stack.c (print_stack_frame): Adjust.
3839 (do_gdb_disassembly, print_frame_info, print_frame): Adjust.
3840 * symfile-mem.c (add_vsyscall_page): Adjust.
3841 * symfile.c (load_progress, generic_load)
3842 (print_transfer_performance): Adjust.
3843 * thread.c (info_threads_command, restore_selected_frame)
3844 (thread_command): Adjust.
3845 * top.c (make_cleanup_restore_ui_file): Adjust.
3846 * tracepoint.c (tvariables_info_1, trace_status_mi, tfind_1)
3847 (print_one_static_tracepoint_marker): Adjust.
3848 * cli/cli-cmds.c (print_disassembly): Adjust.
3849 * cli/cli-decode.c (print_doc_line): Adjust.
3850 * cli/cli-interp.c (safe_execute_command): Adjust.
3851 * cli/cli-logging.c (set_logging_redirect, pop_output_files)
3852 (handle_redirections): Adjust.
3853 * cli/cli-script.c (show_user_1): Adjust.
3854 * cli/cli-setshow.c (do_setshow_command, cmd_show_list): Adjust.
3855 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
3856 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Adjust.
3857 * mi/mi-cmd-env.c (mi_cmd_env_pwd, mi_cmd_env_path)
3858 (mi_cmd_env_dir): Adjust.
3859 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
3860 (print_partial_file_name, mi_cmd_file_list_exec_source_files): Adjust.
3861 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
3862 (mi_cmd_stack_info_depth, mi_cmd_stack_list_args)
3863 (list_args_or_locals): Adjust.
3864 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
3865 (mi_cmd_var_delete, mi_cmd_var_set_format, mi_cmd_var_set_frozen)
3866 (mi_cmd_var_show_format, mi_cmd_var_info_num_children)
3867 (mi_cmd_var_list_children, mi_cmd_var_info_type)
3868 (mi_cmd_var_info_path_expression, mi_cmd_var_info_expression)
3869 (mi_cmd_var_show_attributes, mi_cmd_var_evaluate_expression)
3870 (mi_cmd_var_assign, mi_cmd_var_update, varobj_update_one): Adjust.
3871 * mi/mi-interp.c (mi_on_normal_stop): Adjust.
3872 * mi/mi-main.c (mi_cmd_gdb_exit, mi_cmd_thread_select)
3873 (mi_cmd_thread_list_ids, mi_cmd_thread_info, print_one_inferior)
3874 (list_available_thread_groups, mi_cmd_list_thread_groups)
3875 (mi_cmd_data_list_register_names)
3876 (mi_cmd_data_list_changed_registers)
3877 (mi_cmd_data_list_register_values, get_register)
3878 (mi_cmd_data_evaluate_expression, mi_cmd_data_read_memory)
3879 (mi_cmd_data_read_memory_bytes, mi_cmd_list_features)
3880 (mi_cmd_list_target_features, mi_cmd_add_inferior)
3881 (mi_execute_command, mi_load_progress): Adjust.
3882 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Adjust.
3883 * python/py-auto-load.c (print_script, info_auto_load_scripts):
3884 Adjust.
3885 * python/py-breakpoint.c (bppy_get_commands): Adjust.
3886 * tui/tui-interp.c (tui_command_loop): Adjust.
3887 * tui/tui-io.c (tui_setup_io, tui_initialize_io): Adjust.
3888
f9679975
PA
38892011-08-04 Pedro Alves <pedro@codesourcery.com>
3890
3891 * exceptions.c (struct catcher): Remove saved_uiout field.
3892 (exceptions_state_mc_init): Remove the `func_uiout' parameter, and
3893 no longer save/resvore the global ui_out builder.
3894 (catch_exceptions_with_msg): Save/override/restore the global
3895 ui_out builder manually instead of relying on TRY_CATCH to do it.
3896 (catch_errors): Save/restore the global ui_out builder manually
3897 instead of relying on TRY_CATCH to do it.
3898 * exceptions.h (exceptions_state_mc_init): Remove the `func_uiout'
3899 parameter.
3900 (TRY_CATCH): Adjust.
3901 * cli/cli-interp.c (safe_execute_command): Save/override/restore
3902 the global ui_out builder manually instead of relying on TRY_CATCH
3903 to do it.
3904
934709f0
PW
39052011-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3906
3907 * breakpoint.c (update_global_location_list): Ensure
3908 invariant 'first loc marked not duplicated and inserted,
3909 following locs marked duplicated/not inserted' is respected
3910 for multiple locations at the same address.
3911 (unduplicated_should_be_inserted) New function.
3912 (swap_insertion) New function.
3913
2421fe6f
JK
39142011-08-03 Jan Kratochvil <jan.kratochvil@redhat.com>
3915
3916 * stack.c (print_frame_arguments_choices): Comment typo fix.
3917
3fbb6ffa
TJB
39182011-08-01 Thiago Jung Bauermann <bauerman@br.ibm.com>
3919
3920 Revert:
3921 2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
3922 * breakpoint.c (insert_bp_location): Remove disabled_breaks
3923 argument. Update callers.
3924
fbe12357
PP
39252011-08-01 Paul Pluzhnikov <ppluzhnikov@google.com>
3926
3927 PR gdb/13045
3928 * doublest.c (convert_doublest_to_floatformat): Pass correct
3929 mantissa length to put_field.
3930
b1d288d3
JK
39312011-08-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3932
3933 * stack.c (do_gdb_disassembly): Use RETURN_MASK_ERROR, simplify the
3934 exception_print code path.
3935 (backtrace_command): Remove variable e. Protect arg by make_cleanup in
3936 advance. Simplify memset. Remove TRY_CATCH. Remove explicit xfree.
3937 (backtrace_full_command): Remove variable e. Remove TRY_CATCH.
3938
311b5970
JK
39392011-08-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3940
3941 Code cleanup.
3942 * stack.c (struct print_stack_frame_args, print_stack_frame_stub):
3943 Remove, merge them into ...
3944 (print_stack_frame): ... here with a TRY_CATCH. New variable e, remove
3945 variable args and its initialization.
3946 (struct print_args_args, print_args_stub): Remove, merge them into
3947 print_frame.
3948 (struct gdb_disassembly_stub_args, gdb_disassembly_stub): Remove, merge
3949 them into ...
3950 (do_gdb_disassembly): ... here. Remove variable args and its
3951 initialization.
3952 (print_frame): Remove variable args and its initialization, new
3953 variable gdbarch and numargs (from print_args_stub), inline here
3954 print_args_stub with a TRY_CATCH.
3955 (struct backtrace_command_args, backtrace_command_stub): Remove, merge
3956 them into ...
3957 (backtrace_command, backtrace_full_command): ... here with a TRY_CATCH.
fbe12357 3958 New variable e, remove variable btargs and its initialization.
311b5970 3959
484a26a8
TG
39602011-08-01 Tristan Gingold <gingold@adacore.com>
3961
3962 * darwin-nat.c (darwin_decode_exception_message): Adjust assertion.
3963
c30eee59
TJB
39642011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
3965
3966 * breakpoint.c (insert_bp_location): Document return value.
3967 (insert_breakpoint_locations): Fix documentation.
3968 (remove_breakpoints): Add documentation.
3969
f116073b
TJB
39702011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
3971
3972 * breakpoint.c (insert_bp_location): Remove disabled_breaks
3973 argument. Update callers.
3974
65aa373f
JK
39752011-07-30 Jan Kratochvil <jan.kratochvil@redhat.com>
3976
3977 * stack.c (print_frame_info): Comment typo fix.
3978
a50242fb
SA
39792011-07-29 Sterling Augustine <saugustine@google.com>
3980
3981 * MAINTAINERS (Write After Approval): Add myself to the list.
3982
267f6504
TT
39832011-07-29 Tom Tromey <tromey@redhat.com>
3984
3985 * solib-target.c: Use DEF_VEC_I, not DEF_VEC_O.
3986 (library_list_start_segment): Update.
3987 (library_list_start_section): Update.
3988
00bd41d6
PM
39892011-07-28 Phil Muldoon <pmuldoon@redhat.com>
3990
3991 * varobj.c (value_get_print_value): Move hint check later into the
3992 function. Comment function. Free thevalue before reusing it.
3993
18a46dbe
JK
39942011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3995 Pedro Alves <pedro@codesourcery.com>
3996
3997 * eval.c (evaluate_subexp_standard): Remove not_lval from all calls of
3998 value_one.
3999 * valops.c (value_one): Remove parameter lv. Do not pass it to itself.
4000 Assert the result kind.
4001 * value.h (value_one): Remove parameter lv.
4002
bb7da2bf
JK
40032011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
4004
4005 Fix crash on lval_computed values.
4006 * valops.c (value_zero): Use not_lval for lval_computed.
4007
2d5213f8
TT
40082011-07-27 Tom Tromey <tromey@redhat.com>
4009
4010 * Makefile.in (HFILES_NO_SRCDIR): Add 'common' prefix for
4011 gdb_assert.h, gdb_locale.h, gdb_dirent.h.
4012
11081198
JK
40132011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
4014
4015 * typeprint.c (_initialize_typeprint): Extend the help of "whatis" and
4016 "ptype" by their typedefs difference.
4017
3c6e0cb3
JK
40182011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
4019
4020 * dwarf2expr.c (ctx_no_read_reg): New function.
4021 * dwarf2expr.h (ctx_no_read_reg): New declaration.
4022 * dwarf2read.c (read_2_signed_bytes, read_4_signed_bytes): Remove.
4023 (decode_locdesc_read_mem, decode_locdesc_ctx_funcs): New.
4024 (decode_locdesc): Replace by a caller of dwarf_expr_eval.
4025
523f3620
JK
40262011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
4027
4028 * dwarf2-frame.c (no_get_frame_base, no_get_frame_cfa, no_get_frame_pc)
4029 (no_get_tls_address, no_dwarf_call, no_base_type): Move to the other
4030 file.
4031 (dwarf2_frame_ctx_funcs): Reference the renamed functions.
4032 * dwarf2expr.c (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
4033 (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
4034 (ctx_no_get_base_type): Move the functions here.
4035 * dwarf2expr.h (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
4036 (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
4037 (ctx_no_get_base_type): New declarations.
4038
24d3216f
TT
40392011-07-27 Tom Tromey <tromey@redhat.com>
4040
4041 * xcoffread.c (dwarf2_xcoff_names): Add 'macro' and 'sentinel'
4042 entries.
4043 * symfile.h (struct dwarf2_debug_sections) <sentinel>: New field.
4044 * dwarf2read.c (dwarf2_elf_names): Add sentinel entry.
4045
5005c8a9
PP
40462011-07-26 Sterling Augustine <saugustine@google.com>
4047
4048 * cli/cli-dump.c (dump_binary_file): Change parameter type to
4049 ULONGEST.
4050 (dump_bfd_file): Likewise.
4051
480a3f21
PW
40522011-07-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4053
4054 * remote.c (remote_region_ok_for_hw_watchpoint): New function.
4055 (remote_hw_watchpoint_length_limit): New variable.
4056 (_initialize_remote) add set,show cmds for this new variable.
4057 * gdb.texinfo: document these new commands.
4058 * NEWS: Mention these new commands.
4059
efa80663
PA
40602011-07-26 Pedro Alves <pedro@codesourcery.com>
4061
4062 * breakpoint.c (works_in_software_mode_watchpoint): Also return
4063 true for software watchpoints.
4064
dbdaa232 40652011-07-26 Joel Brobecker <brobecker@adacore.com>
4066
4067 GDB 7.3 released.
4068
cf2c3c16
TT
40692011-07-26 Tom Tromey <tromey@redhat.com>
4070
4071 * symfile.h (struct dwarf2_debug_sections) <macro>: New field.
4072 * dwarf2read.c (read_indirect_string_at_offset): New function.
4073 (read_indirect_string): Use it.
4074 (dwarf_decode_macro_bytes): New function, taken from
4075 dwarf_decode_macros. Handle DW_MACRO_GNU_*.
4076 (dwarf_decode_macros): Use it. handle DW_MACRO_GNU_*.
4077 (dwarf_parse_macro_header, skip_form_bytes, skip_unknown_opcode):
4078 New functions.
4079 (struct dwarf2_per_objfile) <macro>: New field.
4080 (dwarf2_elf_names): Add .debug_macro.
4081 (dwarf2_macros_too_long_complaint): Add 'section' argument.
4082 (dwarf2_locate_sections): Handle new section.
4083 (read_file_scope): Handle DW_AT_GNU_macros.
4084 (dwarf2_per_objfile_free): Unmap the .debug_macro section.
4085
1a532630
PP
40862011-07-26 Paul Pluzhnikov <ppluzhnikov@google.com>
4087
4088 * NEWS: Mention dcache configuration.
4089 * dcache.c (dcache_set_list, dcache_show_list): New variables.
4090 (dcache_size, dcache_line_size): New variables.
4091 (LINE_SIZE_MASK, XFORM, MASK): Adjust.
4092 (struct dcache_block): Make it expandable.
4093 (struct dcache_struct): New field.
4094 (dcache_invalidate): Discard freelist upon dcache_line_size changes.
4095 (dcache_hit, dcache_alloc, dcache_peek_byte): Adjust.
4096 (dcache_poke_byte, dcache_print_line): Adjust.
4097 (set_dcache_size, set_dcache_line_size): New functions.
4098 (set_dcache_command, show_dcache_command): New functions.
4099 (_initialize_dcache): Add new commands.
4100
2eff07b3
PP
41012011-07-26 Paul Pluzhnikov <ppluzhnikov@google.com>
4102
4103 * progspace.h (struct program_space): Add solib_add_generation.
4104 * infcmd.c (post_create_inferior): Only call solib_add if not
4105 already done.
4106 * solib.c (solib_add): Increment solib_add_generation.
4107
543305c9
JK
41082011-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
4109
4110 Fix implicit pointer offsets.
4111 * dwarf2loc.c (indirect_pieced_value): Comment byte_offset. Use also
4112 ptr.OFFSET.
4113
c0a91b2b
TT
41142011-07-25 Tom Tromey <tromey@redhat.com>
4115
4116 * ada-lang.c (ada_exception_breakpoint_ops): Make return type
4117 const.
4118 (ada_exception_sal): Make 'ops' const.
4119 (ada_decode_exception_location): Likewise.
4120 (ada_decode_assert_location): Likewise.
4121 (catch_assert_command): Update.
4122 (catch_ada_exception_command): Update.
4123 (create_ada_exception_catchpoint): Make 'ops' const.
4124 * breakpoint.c (set_raw_breakpoint_without_location)
4125 (set_raw_breakpoint, momentary_breakpoint_from_master): Make 'ops'
4126 const.
4127 (create_internal_breakpoint): Update.
4128 (init_raw_breakpoint_without_location): Make 'ops' const.
4129 (init_raw_breakpoint, init_catchpoint)
4130 (create_fork_vfork_event_catchpoint)
4131 (create_syscall_event_catchpoint, init_breakpoint_sal)
4132 (create_breakpoint_sal, create_breakpoints_sal)
4133 (create_breakpoint, init_ada_exception_breakpoint): Likewise.
4134 * breakpoint.h (struct breakpoint) <ops>: Now const.
4135 (init_ada_exception_breakpoint, create_breakpoint): Make 'ops'
4136 const.
4137
6cb9b55b
PP
41382011-07-25 Paul Pluzhnikov <ppluzhnikov@google.com>
4139
4140 * linux-thread-db.c (thread_from_lwp): Initialize th.th_unique.
4141
d9b3f62e
PA
41422011-07-25 Pedro Alves <pedro@codesourcery.com>
4143
4144 * breakpoint.h (print_recreate_thread): Declare.
4145 (struct breakpoint): Move step_count, pass_count,
4146 number_on_target, static_trace_marker_id,
4147 static_trace_marker_id_idx ...
4148 (struct tracepoint): ... to this new struct.
4149 (get_tracepoint, get_tracepoint_by_number_on_target)
4150 (get_tracepoint_by_number): Change return type to struct
4151 tracepoint pointer.
4152 * breakpoint.c (is_tracepoint_type): New, factored out from
4153 is_tracepoint.
4154 (is_tracepoint): Adjust.
4155 (print_one_breakpoint_location): Cast to struct tracepoint as
4156 necessary, and adjust.
4157 (print_recreate_catch_fork, print_recreate_catch_vfork)
4158 (print_recreate_catch_syscall, print_recreate_catch_exec): Call
4159 print_recreate_thread.
4160 (init_breakpoint_sal): New, factored out from
4161 create_breakpoint_sal.
4162 (create_breakpoint_sal): Reimplement.
4163 (create_breakpoint): Allocate a struct tracecepoint if the caller
4164 wanted a tracepoint. Use init_breakpoint_sal and
4165 install_breakpoint.
4166 (print_recreate_ranged_breakpoint, print_recreate_watchpoint)
4167 (print_recreate_masked_watchpoint)
4168 (print_recreate_exception_catchpoint): Call print_recreate_thread.
4169 (tracepoint_print_one_detail): Adjust.
4170 (tracepoint_print_recreate): Adjust. Call print_recreate_thread.
4171 Dump the pass count here.
4172 (update_static_tracepoint): Adjust.
4173 (addr_string_to_sals): Adjust.
4174 (create_tracepoint_from_upload): Adjust. Change return type to
4175 struct tracepoint pointer.
4176 (trace_pass_set_count): Change parameter type to struct tracepoint
4177 pointer, and adjust.
4178 (trace_pass_command): Adjust.
4179 (get_tracepoint, get_tracepoint_by_number_on_target)
4180 (get_tracepoint_by_number): Change return type to struct
4181 tracepoint pointer, and adjust.
4182 (print_recreate_thread): New, factored out from save_breakpoints.
4183 (save_breakpoints): Don't print thread and task and passcount
4184 recreation here.
4185 * remote.c (remote_download_tracepoint): Adjust.
4186 * tracepoint.c (trace_actions_command, validate_actionline)
4187 (start_tracing, tfind_1, trace_find_tracepoint_command)
4188 (trace_dump_command): Adjust.
4189 (find_matching_tracepoint): Change return type to struct
4190 tracepoint pointer, and adjust.
4191 (merge_uploaded_tracepoints, tfile_get_traceframe_address)
4192 (tfile_trace_find, tfile_fetch_registers): Adjust.
4193 * tracepoint.h (create_tracepoint_from_upload): Change return type
4194 to struct tracepoint pointer.
4195 * ada-lang.c (print_recreate_exception): Call
4196 print_recreate_thread.
4197 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Adjust.
4198
3a5c3e22
PA
41992011-07-25 Pedro Alves <pedro@codesourcery.com>
4200
4201 * breakpoint.h (struct breakpoint): Move ops as first field. Move
4202 exp_string, exp_string_reparse, exp, exp_valid_block, cond_exp,
4203 cond_exp_valid_block, val, val_valid, watchpoint_frame,
4204 watchpoint_thread, watchpoint_triggered ...
4205 (struct watchpoint): ... to this new struct.
4206 (is_watchpoint): Declare.
4207 (install_breakpoint): Add new `internal' parameter.
4208 * breakpoint.c (is_watchpoint): Delete declaration.
4209 (set_breakpoint_condition): Handle watchpoints.
4210 (is_watchpoint): Make public.
4211 (watchpoint_in_thread_scope): Change parameter type to struct
4212 watchpoint.
4213 (watchpoint_del_at_next_stop): Change parameter type to struct
4214 watchpoint. Remove assertion. Adjust.
4215 (update_watchpoint): Ditto.
4216 (insert_breakpoints, breakpoint_init_inferior)
4217 (watchpoints_triggered, watchpoint_check)
4218 (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions)
4219 (bpstat_stop_status, print_one_breakpoint_location)
4220 (print_one_breakpoint_location, watchpoint_locations_match): Cast
4221 to struct watchpoint as necessary, and adjust.
4222 (install_breakpoint): Add `internal' argument. If true, don't
4223 mention the new breakpoint. Use set_breakpoint_number.
4224 (create_fork_vfork_event_catchpoint)
4225 (create_syscall_event_catchpoint): Adjust.
4226 (dtor_watchpoint): New.
4227 (re_set_watchpoint, insert_watchpoint, remove_watchpoint)
4228 (breakpoint_hit_watchpoint, resources_needed_watchpoint)
4229 (print_it_watchpoint, print_mention_watchpoint)
4230 (print_recreate_watchpoint, insert_masked_watchpoint)
4231 (remove_masked_watchpoint, resources_needed_masked_watchpoint)
4232 (print_one_detail_masked_watchpoint)
4233 (print_mention_masked_watchpoint)
4234 (print_recreate_masked_watchpoint): Cast to struct watchpoint as
4235 necessary, and adjust.
4236 (watch_command_1): Allocate and initialize a struct watchpoint
4237 instead of a struct breakpoint. Use install_breakpoint.
4238 (catch_exec_command_1): Adjust.
4239 (base_breakpoint_dtor): Delete accesses to watchpoint specific
4240 fields.
4241 (delete_breakpoint, enable_breakpoint_disp)
4242 (invalidate_bp_value_on_memory_change): Cast to struct watchpoint
4243 as necessary, and adjust.
4244 (initialize_breakpoint_ops): Install dtor_watchpoint as
4245 watchpoints' dtor method.
4246 * ada-lang.c (create_ada_exception_catchpoint): Adjust.
4247 * python/py-breakpoint.c (bppy_get_expression): Use is_watchpoint.
4248 to struct watchpoint as necessary, and adjust.
4249
2060206e
PA
42502011-07-25 Pedro Alves <pedro@codesourcery.com>
4251
4252 * ada-lang.c (dtor_exception, re_set_exception): Indirect through
4253 the the base class ops table.
4254 (catch_exception_breakpoint_ops)
4255 (catch_exception_unhandled_breakpoint_ops)
4256 (catch_assert_breakpoint_ops): Don't statically initialize.
4257 (initialize_ada_catchpoint_ops): New.
4258 (_initialize_ada_language): Call it.
4259 * breakpoint.c (base_breakpoint_ops, bkpt_base_breakpoint_ops)
4260 (bkpt_breakpoint_ops): Forward declare.
4261 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
4262 (catch_syscall_breakpoint_ops, catch_exec_breakpoint_ops)
4263 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
4264 (masked_watchpoint_breakpoint_ops)
4265 (gnu_v3_exception_catchpoint_ops): Don't statically initialize.
4266 (dtor_catch_syscall, dtor_catch_exec): Indirect through the the
4267 base class ops table.
4268 (null_re_set, null_check_status, null_works_in_software_mode)
4269 (null_resources_needed, null_print_one_detail): Delete.
4270 (bkpt_dtor): Rename to ...
4271 (base_breakpoint_dtor): ... this. Make static.
4272 (bkpt_allocate_location): Rename to ...
4273 (base_breakpoint_allocate_location): ... this. Make static.
4274 (base_breakpoint_re_set): New.
4275 (internal_error_pure_virtual_called): New.
4276 (base_breakpoint_insert_location, base_breakpoint_remove_location)
4277 (base_breakpoint_breakpoint_hit, base_breakpoint_check_status)
4278 (base_breakpoint_works_in_software_mode)
4279 (base_breakpoint_resources_needed, base_breakpoint_print_it)
4280 (base_breakpoint_print_one_detail, base_breakpoint_print_mention)
4281 (base_breakpoint_print_recreate): New functions.
4282 (base_breakpoint_ops): New global.
4283 (bkpt_re_set, bkpt_insert_location, bkpt_remove_location)
4284 (bkpt_breakpoint_hit): Make static.
4285 (bkpt_check_status): Delete.
4286 (bkpt_resources_needed): Make static.
4287 (bkpt_works_in_software_mode): Delete.
4288 (bkpt_print_it, bkpt_print_mention, bkpt_print_recreate): Make
4289 static.
4290 (bkpt_breakpoint_ops, internal_breakpoint_ops)
4291 (momentary_breakpoint_ops): Don't statically initialize.
4292 (internal_bkpt_print_recreate, momentary_bkpt_print_recreate):
4293 Delete.
4294 (tracepoint_insert_location, tracepoint_remove_location)
4295 (tracepoint_check_status, tracepoint_works_in_software_mode)
4296 (tracepoint_print_it): Delete.
4297 (tracepoint_breakpoint_ops): Don't statically initialize.
4298 (initialize_breakpoint_ops): New.
4299 (_initialize_breakpoint): Call it.
4300 * breakpoint.h (null_re_set, null_works_in_software_mode)
4301 (null_resources_needed, null_check_status, null_print_one_detail):
4302 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
4303 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
4304 (bkpt_check_status, bkpt_resources_needed)
4305 (bkpt_works_in_software_mode, bkpt_print_it)
4306 (null_print_one_detail, bkpt_print_mention, bkpt_print_recreate):
4307 Delete declarations.
4308 (initialize_breakpoint_ops): Declare.
4309
001c8c33
PA
43102011-07-25 Pedro Alves <pedro@codesourcery.com>
4311
4312 * breakpoint.c (bkpt_print_it, internal_bkpt_print_it)
4313 (momentary_bkpt_print_it): Simplify.
4314
06edf0c0
PA
43152011-07-25 Pedro Alves <pedro@codesourcery.com>
4316
4317 Split internal, momentary and user breakpoints breakpoint_ops
4318 tables.
4319
4320 * breakpoint.c (internal_breakpoint_ops)
4321 (momentary_breakpoint_ops): Forward declare.
4322 (create_internal_breakpoint): Add new breakpoint_ops parameter.
4323 Pass it down, rather than hardcoding bkpt_breakpoint_ops.
4324 (create_overlay_event_breakpoint)
4325 (create_std_terminate_master_breakpoint)
4326 (create_exception_master_breakpoint): Create breakpoints with
4327 internal_breakpoint_ops vtable.
4328 (set_longjmp_breakpoint): Create momentary breakpoints with
4329 momentary_breakpoint_ops vtable, using
4330 momentary_breakpoint_from_master.
4331 (create_thread_event_breakpoint, create_jit_event_breakpoint)
4332 (create_solib_event_breakpoint): Create breakpoints with
4333 internal_breakpoint_ops vtable.
4334 (set_momentary_breakpoint): Create breakpoints with
4335 momentary_breakpoint_ops vtable.
4336 (momentary_breakpoint_from_master): New, factored out from
4337 clone_momentary_breakpoint.
4338 (clone_momentary_breakpoint): Adjust.
4339 (watch_command_1): Create scope breakpoints with
4340 momentary_breakpoint_ops vtable.
4341 (bkpt_re_set): Remove handling of internal and momentary
4342 breakpoints.
4343 (bkpt_print_mention, bkpt_print_recreate): New.
4344 (bkpt_breakpoint_ops): Adjust.
4345 (internal_bkpt_re_set, internal_bkpt_check_status)
4346 (internal_bkpt_print_it, internal_bkpt_print_mention)
4347 (internal_bkpt_print_recreate, internal_breakpoint_ops): New.
4348 (momentary_bkpt_re_set, momentary_bkpt_check_status)
4349 (momentary_bkpt_print_it, momentary_bkpt_print_mention)
4350 (momentary_bkpt_print_recreate): New.
4351 (momentary_breakpoint_ops): New.
4352
348d480f
PA
43532011-07-25 Pedro Alves <pedro@codesourcery.com>
4354
4355 Implement most breakpoint_ops methods for all breakpoint types,
4356 and move the default handlings to the proper callbacks.
4357
4358 * breakpoint.c (update_watchpoint): Always call the breakpoint's
4359 works_in_software_mode method.
4360 (insert_bp_location): Go through breakpoint_ops->insert_location
4361 for software and hardware watchpoints.
4362 (create_internal_breakpoint): Pass bkpt_breakpoint_ops as
4363 breakpoint_ops.
4364 (remove_breakpoint_1): Go through breakpoint_ops->remove_location
4365 for software and hardware watchpoints.
4366 (print_it_typical): Delete.
4367 (print_bp_stop_message): Always call the breakpoint_ops->print_it
4368 method.
4369 (watchpoint_check): Adjust comment.
4370 (bpstat_check_location): Simply always call the breakpoint's
4371 breakpoint_hit method.
4372 (bpstat_stop_status): Always call the breakpoint's check_status
4373 method. Remove special cases for watchpoints and internal event
4374 breakpoints from here (moved to the check_status implementations).
4375 (print_one_breakpoint_location): Assume b->ops is never NULL.
4376 Remove static tracepoint marker id printing from here (moved to
4377 the print_one_detail callback implementation of tracepoints).
4378 (init_bp_location): Assert OPS is never NULL.
4379 (allocate_bp_location): Always call the breakpoint's
4380 allocate_location method, and remove the default code from here.
4381 (free_bp_location): Always call the location's dtor method, and
4382 remove the default code from here.
4383 (init_raw_breakpoint_without_location): Assert OPS is never NULL.
4384 (set_raw_breakpoint_without_location): Add new breakpoint_ops
4385 parameter. Pass it down.
4386 (set_raw_breakpoint): Ditto.
4387 (print_it_catch_fork): Adjust to take a bpstat as argument.
4388 (catch_fork_breakpoint_ops): Install methods.
4389 (print_it_catch_vfork): Adjust to take a bpstat as argument.
4390 (catch_vfork_breakpoint_ops): Install methods.
4391 (dtor_catch_syscall): Call the base dtor.
4392 (print_it_catch_syscall): Adjust to take a bpstat as argument.
4393 (catch_syscall_breakpoint_ops): Install methods.
4394 (dtor_catch_exec): Call the base dtor.
4395 (print_it_catch_exec): Adjust to take a bpstat as argument.
4396 (catch_exec_breakpoint_ops): Install methods.
4397 (hw_breakpoint_used_count, hw_watchpoint_used_count): Always call
4398 the breakpoint's resources_needed method, and remove the default
4399 code from here.
4400 (set_momentary_breakpoint): Pass bkpt_breakpoint_ops as
4401 breakpoint_ops.
4402 (clone_momentary_breakpoint): Clone the original's ops.
4403 (mention): Always call the breakpoint's print_mention method, and
4404 remove the default code from here.
4405 (create_breakpoint_sal): Adjust to pass the ops to
4406 set_raw_breakpoint rather than setting it manually.
4407 (create_breakpoint): Assert ops is never NULL. Adjust to pass the
4408 ops to set_raw_breakpoint_without_location rather than setting it
4409 manually.
4410 (break_command_1): Pass bkpt_breakpoint_ops as breakpoint_ops.
4411 (print_it_ranged_breakpoint): Adjust to take a bpstat as argument.
4412 (ranged_breakpoint_ops): Install methods.
4413 (break_range_command): Adjust to pass the ops to
4414 set_raw_breakpoint rather than setting it manually.
4415 (re_set_watchpoint, breakpoint_hit_watchpoint)
4416 (check_status_watchpoint, resources_needed_watchpoint)
4417 (works_in_software_mode_watchpoint, print_it_watchpoint)
4418 (print_mention_watchpoint, print_recreate_watchpoint): New
4419 functions.
4420 (watchpoint_breakpoint_ops): Install new methods.
4421 (print_it_masked_watchpoint): New function.
4422 (masked_watchpoint_breakpoint_ops): Install new methods.
4423 (watch_command_1): Adjust to pass the right breakpoint_ops to
4424 set_raw_breakpoint_without_location rather than setting it
4425 manually later. Record the current pspace.
4426 (print_it_exception_catchpoint): Adjust to take a bpstat as
4427 argument.
4428 (gnu_v3_exception_catchpoint_ops): Install new methods.
4429 (say_where): New function.
4430 (null_re_set, null_check_status, null_works_in_software_mode)
4431 (null_resources_needed, null_print_one_detail, bp_location_dtor):
4432 New functions.
4433 (bp_location_ops): New global.
4434 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
4435 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
4436 (bkpt_check_status, bkpt_resources_needed)
4437 (bkpt_works_in_software_mode, bkpt_print_it, bkpt_print_mention)
4438 (bkpt_print_recreate): New functions.
4439 (bkpt_breakpoint_ops): New global.
4440 (tracepoint_re_set, tracepoint_insert_location)
4441 (tracepoint_remove_location, tracepoint_breakpoint_hit)
4442 (tracepoint_check_status, tracepoint_works_in_software_mode)
4443 (tracepoint_print_it, tracepoint_print_one_detail)
4444 (tracepoint_print_mention, tracepoint_print_recreate): New
4445 functions.
4446 (tracepoint_breakpoint_ops): New global.
4447 (delete_breakpoint): Always call the breakpoint's dtor method, and
4448 remove the default handling from here.
4449 (breakpoint_re_set_default): Make static.
4450 (breakpoint_re_set_one): Always call the breakpoints re_set
4451 method, and remove the default handling from here.
4452 (trace_command, ftrace_command, strace_command)
4453 (create_tracepoint_from_upload): Pass appropriate breakpoints_ops
4454 to create_breakpoint.
4455 (save_breakpoints): Always call the breakpoint's print_recreate
4456 method, and remove the default handling from here.
4457
4458 * ada-lang.c (dtor_exception): Call the base dtor.
4459 (re_set_exception): Call the base method.
4460 (print_it_exception, print_it_catch_exception): Adjust to take a
4461 bpstat as argument.
4462 (catch_exception_breakpoint_ops): Install methods.
4463 (print_it_catch_exception_unhandled): Adjust to take a bpstat as
4464 argument.
4465 (catch_exception_unhandled_breakpoint_ops): Install methods.
4466 (print_it_catch_assert): Adjust to take a bpstat as argument.
4467 (catch_assert_breakpoint_ops): Install methods.
4468
4469 * breakpoint.h (struct breakpoint_ops): Adjust the print_it method
4470 to take a bpstat as argument.
4471 (enum print_stop_action): Add describing comments to each enum
4472 value.
4473 (breakpoint_re_set_default): Delete declaration.
4474 (null_re_set, null_works_in_software_mode, null_resources_needed)
4475 (null_check_status, null_print_one_detail): Declare.
4476 (bkpt_breakpoint_ops): Declare.
4477 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
4478 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
4479 (bkpt_check_status, bkpt_resources_needed)
4480 (bkpt_works_in_software_mode, bkpt_print_it)
4481 (null_print_one_detail, bkpt_print_mention, bkpt_print_recreate):
4482 Declare.
4483
4484 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust to pass
4485 bkpt_breakpoint_ops.
4486 * python/py-breakpoint.c (bppy_init): Ditto.
4487
be8f8133
PW
44882011-07-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4489
4490 * MAINTAINERS (Write After Approval): Add myself to the list.
4491
3807f613
PP
44922011-07-23 Paul Pluzhnikov <ppluzhnikov@google.com>
4493
4494 * elfread.c (elf_rel_plt_read): Fix off-by-one bug.
4495
1ced966e
PA
44962011-07-22 Pedro Alves <pedro@codesourcery.com>
4497
4498 * i386-nat.c (I386_DR_VACANT, I386_DR_LOCAL_ENABLE)
4499 (I386_DR_GLOBAL_ENABLE, I386_DR_DISABLE, I386_DR_SET_RW_LEN)
4500 (I386_DR_GET_RW_LEN, I386_DR_WATCH_HIT): Add state parameter and
4501 adjust.
4502 (dr_mirror, dr_status_mirror, dr_control_mirror): Delete.
4503 (struct i386_debug_reg_state): New.
4504 (i386_init_dregs): New.
4505 (dr_mirror): New.
4506 (i386_cleanup_dregs): Use i386_init_dregs.
4507 (i386_show_dr): Add state parameter and adjust.
4508 (i386_insert_aligned_watchpoint): Ditto. Don't pass the info to
4509 the inferior here.
4510 (i386_remove_aligned_watchpoint): Likewise.
4511 (i386_handle_nonaligned_watchpoint): Add state parameter and adjust.
4512 (i386_update_inferior_debug_regs): New.
4513 (i386_insert_watchpoint): Work on a local mirror of the debug
4514 registers, and only update the inferior on success.
4515 (i386_remove_watchpoint): Ditto.
4516 (i386_region_ok_for_watchpoint): Adjust.
4517 (i386_stopped_data_address): Adjust.
4518 (i386_insert_hw_breakpoint): Adjust.
4519 (i386_remove_hw_breakpoint): Adjust.
4520
3543a589
TT
45212011-07-22 Tom Tromey <tromey@redhat.com>
4522
4523 * amd64-tdep.c (amd64_pseudo_register_read_value): Rename
4524 from amd64_pseudo_register_read. Change arguments. Call
4525 mark_value_bytes_unavailable when needed.
4526 (amd64_init_abi): Use set_gdbarch_pseudo_register_read_value, not
4527 set_gdbarch_pseudo_register_read.
4528 * sentinel-frame.c (sentinel_frame_prev_register): Use
4529 regcache_cooked_read_value.
4530 * regcache.h (regcache_cooked_read_value): Declare.
4531 * regcache.c (regcache_cooked_read_value): New function.
4532 (regcache_cooked_read): Call
4533 gdbarch_pseudo_register_read_value if available.
4534 * i386-tdep.h (i386_pseudo_register_read_value): Declare.
4535 (i386_pseudo_register_read): Remove.
4536 * i386-tdep.c (i386_pseudo_register_read_into_value): Rename from
4537 i386_pseudo_register_read. Change arguments. Call
4538 mark_value_bytes_unavailable when needed.
4539 (i386_pseudo_register_read_value): New function.
4540 (i386_gdbarch_init): Call set_gdbarch_pseudo_register_read_value,
4541 not set_gdbarch_pseudo_register_read.
4542 * gdbarch.sh (pseudo_register_read_value): New method.
4543 * gdbarch.c, gdbarch.h: Rebuild.
4544 * findvar.c (value_from_register): Call get_frame_register_value.
4545
95298e72
PM
45462011-07-22 Phil Muldoon <pmuldoon@redhat.com>
4547
4548 * event-top.c (cli_command_loop): Use get_prompt, get_suffix,
4549 get_prefix.
4550 (display_gdb_prompt): Likewise.
4551 (change_annotation_level): Likewise.
4552 (push_prompt): Likewise.
4553 (pop_prompt): Likewise.
4554 (handle_stop_sig): Use get_prompt with a level.
4555 * top.c (command_loop): Use get_prompt with a level.
4556 (set_async_annotation_level): Use set_prompt with a level.
4557 (get_prefix): New function.
4558 (set_prefix): Ditto.
4559 (set_suffix): Ditto.
4560 (get_suffix): Ditto.
4561 (get_prompt): Accept a level argument.
4562 (set_prompt): Accept a level argument. Free old prompts. Set
4563 new_async_prompt if level is 0.
4564 (init_main): Use set_prompt with a level. Do not set
4565 new_async_prompt.
4566 * event-top.h (PROMPT, SUFFIX, PREFIX): Move to top.c
4567 * top.h: Declare set_suffix, get_suffix, set_prefix, get_prefix.
4568 Modify set_prompt, get_prompt to account for levels.
4569 * tui/tui-interp.c (tui_command_loop): Use get_prompt with a
4570 level.
4571 * python/python.c (before_prompt_hook): Use set_prompt.
4572
d26e3629
KY
45732011-07-22 Kwok Cheung Yeung <kcy@codesourcery.com>
4574
4575 * defs.h: Add guard against inclusion in gdbserver.
4576 (struct ptid, ptid_t): Move to common/ptid.h.
4577 (xfree, xzalloc, xasprintf, xvasprintf, xstrprintf, xstrvprintf,
4578 xsnprintf, internal_error): Move to common/common-utils.h.
4579 (nomem): Delete.
4580 * gdb_assert.h: Move into common/ sub-directory.
4581 * gdb_locale.h: Ditto.
4582 * gdb_dirent.h: Ditto.
4583 * inferior.h (minus_one_ptid, null_ptid, ptid_build, pid_to_ptid,
4584 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid):
4585 Move into common/ptid.h.
4586 * xml-support.c (xml_escape_text): Move into common/xml-utils.c.
4587 (gdb_xml_create_parser_and_cleanup_1, xml_fetch_context_from_file):
4588 Change nomem to malloc_failure.
4589 * xml-support.h (xml_escape_text): Move into common/xml-utils.h.
4590 * utils.c (nomem): Rename to malloc_failure.
4591 (xmalloc, xzalloc, xrealloc, xcalloc, xfree, xstrprintf, xasprintf,
4592 xvasprintf, xstrvprintf, xsnprintf): Move to common/common-utils.c.
4593 (gdb_buildargv): Change nomem to malloc_failure.
4594 * infrun.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid,
4595 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal,
4596 ptid_is_pid): Move into common/ptid.c.
4597 (initialize_infrun): Delete initialization of null_ptid and
4598 minus_one_ptid.
4599 * linux-nat.c (linux_nat_xfer_osdata): Defer to
4600 linux_common_xfer_osdata.
4601 * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c,
4602 common/ptid.c and common/buffer.c.
4603 (HFILES_NO_SRCDIR): Add common/common-utils.h, common/xml-utils.h,
4604 common/ptid.h, common/buffer.h and common/linux-osdata.h.
4605 (COMMON_OBS): Add xml-utils.o, common-utils.o, buffer.o and ptid.o.
4606 (common-utils.o, xml-utils.o, ptid.o, buffer.o, linux-osdata.o): New
4607 rules.
4608 * common/gdb_assert.h: New.
4609 * common/gdb_dirent.h: New.
4610 * common/gdb_locale.h: New.
4611 * common/buffer.c: New.
4612 * common/buffer.h: New.
4613 * common/ptid.c: New.
4614 * common/ptid.h: New.
4615 * common/xml-utils.c: New.
4616 * common/xml-utils.h: New.
4617 * common/common-utils.c: New.
4618 * common/common-utils.h: New.
4619 * common/linux-osdata.c: New.
4620 * common/linux-osdata.h: New.
4621 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-osdata.o.
4622 * config/arm/linux.mh (NATDEPFILES): Ditto.
4623 * config/i386/linux.mh (NATDEPFILES): Ditto.
4624 * config/i386/linux64.mh (NATDEPFILES): Ditto.
4625 * config/ia64/linux.mh (NATDEPFILES): Ditto.
4626 * config/m32r/linux.mh (NATDEPFILES): Ditto.
4627 * config/m68k/linux.mh (NATDEPFILES): Ditto.
4628 * config/mips/linux.mh (NATDEPFILES): Ditto.
4629 * config/pa/linux.mh (NATDEPFILES): Ditto.
4630 * config/powerpc/linux.mh (NATDEPFILES): Ditto.
4631 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Ditto.
4632 * config/s390/s390.mh (NATDEPFILES): Ditto.
4633 * config/sparc/linux.mh (NATDEPFILES): Ditto.
4634 * config/sparc/linux64.mh (NATDEPFILES): Ditto.
4635 * config/xtensa/linux.mh (NATDEPFILES): Ditto.
4636
edc84990 46372011-07-21 Matt Rice <ratmice@gmail.com>
4638
4639 * NEWS: Add info macros and info definitions commands.
4640
3a7bf607
PM
46412011-07-21 Phil Muldoon <pmuldoon@redhat.com>
4642
4643 * NEWS: Document Python prompt substitution hook.
4644
9b158ba0 46452011-07-18 Matt Rice <ratmice@gmail.com>
4646
4647 PR macros/12999
4648 * macrotab.h (macro_callback_fn): Add new arguments to callback.
4649 * macrotab.c (foreach_macro): Ditto.
4650 (foreach_macro_in_scope): Ditto.
4651 * macrocmd.c (print_macro_callback): New function.
4652 (info_macro_command): Move some code to print_macro_definition.
4653 (print_macro_definition): New function.
4654 (print_one_macro): Add new arguments to callback.
4655 (info_definitions_command): New function.
4656 (info_macros_command): Ditto.
4657 (_initialize_macrocmd): Add info macros and info definitions commands.
4658 * symtab.c (add_macro_name): Add new arguments to callback.
4659
d17b6f81
PM
46602011-07-21 Phil Muldoon <pmuldoon@redhat.com>
4661 Tom Tromey <tromey@redhat.com>
4662
4663 * top.c (set_prompt): Rewrite to free previous prompt, free
4664 asynch_new_prompt and set both on new prompts.
4665 * event-top.c (display_gdb_prompt): Add prompt substitution
4666 logic.
4667 * python/python.c (before_prompt_hook): New function.
4668
1364323a 46692011-07-20 Matt Rice <ratmice@gmail.com>
4670
4671 * bfin-tdep.c (bfin_extract_return_value): Fix swapped
4672 arguments to store_unsigned_integer.
4673
8b70b953
TT
46742011-07-20 Tom Tromey <tromey@redhat.com>
4675
6c83ed52
TT
4676 * dwarf2read.c (process_enumeration_scope): Do not call new_symbol
4677 in some declaration-only cases.
4678
46792011-07-18 Tom Tromey <tromey@redhat.com>
4680
8b70b953
TT
4681 PR symtab/12984:
4682 * dwarf2read.c (dwarf2_section_info_def): New typedef.
4683 (struct dwarf2_per_objfile) <types>: Change to a VEC.
4684 (struct dwarf2_per_cu_data) <from_debug_types>: Remove.
4685 <debug_type_section>: New field.
4686 (dwarf2_locate_sections): Push .debug_types sections onto VEC.
4687 (load_cu): Use appropriate section.
4688 (create_signatured_type_table_from_index): Add 'section'
4689 argument.
4690 (dwarf2_read_index): Only allow a single .debug_types section.
4691 (dw2_get_file_names): Use appropriate section.
4692 (read_type_comp_unit_head): Add 'section' argument.
4693 (create_debug_types_hash_table): Loop over all .debug_types
4694 sections.
4695 (init_cu_die_reader): Use appropriate section.
4696 (process_psymtab_comp_unit, load_partial_comp_unit)
4697 (load_full_comp_unit, read_die_and_children, find_partial_die)
4698 (lookup_die_type, determine_prefix, follow_die_offset): Update.
4699 (lookup_signatured_type_at_offset): Add 'section' argument.
4700 (read_signatured_type_at_offset): Add 'sect' argument.
4701 (read_signatured_type): Use appropriate section.
4702 (set_die_type, get_die_type_at_offset): Update.
4703 (dwarf2_per_objfile_free): Free all .debug_types sections, and
4704 VEC.
4705 (write_psymtabs_to_index): Don't allow index with more than one
4706 .debug_types section.
4707
918dd910
JK
47082011-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
4709
4710 Fix crash if referenced CU is aged out.
4711 * dwarf2loc.c (per_cu_dwarf_call): New variable back_to, use to for
4712 xfree of block.data.
4713 (indirect_pieced_value): New variable back_to, use to for xfree of
4714 baton.data.
4715 (dwarf2_compile_expr_to_ax): New variable back_to, use to for xfree of
4716 block.data.
4717 * dwarf2read.c (dwarf2_find_base_address): New prototype.
4718 (load_cu): New function from ...
4719 (dw2_do_instantiate_symtab): ... the code here ...
4720 (process_full_comp_unit): ... and here.
4721 (dwarf2_fetch_die_location_block): Call load_cu first. Call xmemdup on
4722 retval.data.
4723
0e37a63c
JK
47242011-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
4725
4726 * dwarf2loc.c (indirect_pieced_value): Use check_typedef for VALUE's
4727 type.
4728
7e324e48
GB
47292011-07-19 Gary Benson <gbenson@redhat.com>
4730
4731 * infrun.c (struct execution_control_state): New member
4732 stop_func_filled_in.
4733 (clear_stop_func, fill_in_stop_func): New functions.
4734 (handle_inferior_event): Call clear_stop_func rather than
4735 manipulating the execution control state directly.
4736 Call fill_in_stop_func lazily as required rather than
4737 directly calling find_pc_partial_function in all cases.
4738
d48323d8
TT
47392011-07-18 Tom Tromey <tromey@redhat.com>
4740
4741 * dwarf2read.c (read_subrange_type): Use attr_form_is_block when
4742 checking for variable-sized array.
4743
40591b7d
JCD
47442011-07-18 Jean-Charles Delay <delay@adacore.com>
4745
4746 * varobj.h (varobj_languages): Add vlang_ada definition to the list
4747 of supported languages.
4748 * varobj.c: Add top definitions and basic implementation of the
4749 following callbacks: ada_number_of_children, ada_name_of_variable,
4750 ada_name_of_child, ada_path_expr_of_child, ada_value_of_root,
4751 ada_value_of_child, ada_type_of_child, ada_value_of_variable.
4752 (languages): Register Ada-specific callbacks.
4753 (variable_language): Add the Ada case in the language setter switch.
4754
2e424e08
JK
47552011-07-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4756
4757 * remote-mips.c (pmon_download): Fix ignored return value GCC warning.
4758
9e8b7a03
JK
47592011-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
4760
4761 Code cleanup.
4762 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): New.
4763 (execute_stack_op): Use dwarf2_frame_ctx_funcs
4764 * dwarf2expr.c (dwarf_get_base_type): Access get_base_type via funcs.
4765 (execute_stack_op): Access read_reg, get_frame_base, read_mem,
4766 get_frame_cfa, get_tls_address and dwarf_call via funcs.
4767 * dwarf2expr.h (struct dwarf_expr_context): New forward declaration.
4768 (struct dwarf_expr_context_funcs): New, move here methods from ...
4769 (struct dwarf_expr_context): ... here. New fields funcs.
4770 * dwarf2loc.c (dwarf_expr_dwarf_call): Access get_frame_pc via funcs.
4771 (dwarf_expr_ctx_funcs): New.
4772 (dwarf2_evaluate_loc_desc_full): Use dwarf_expr_ctx_funcs.
4773 (needs_frame_dwarf_call): Access get_frame_pc via funcs.
4774 (needs_frame_ctx_funcs): New.
4775 (dwarf2_loc_desc_needs_frame): Use needs_frame_ctx_funcs.
4776
2b1260ab
FM
47772011-07-15 Fawzi Mohamed <fawzi.mohamed@nokia.com>
4778
4779 * MAINTAINERS (Write After Approval): Add myself to the list.
4780
8bd90839
FM
47812011-07-15 Fawzi Mohamed <fawzi.mohamed@nokia.com>
4782
4783 * dwarf2-frame.c (decode_frame_entry, decode_frame_entry_1): Ensure
4784 that CIE pointer of an FDE really points to a CIE .
4785
953b98d1
HZ
47862011-07-15 Hui Zhu <teawater@gmail.com>
4787
4788 * remote.c (remote_get_trace_status): Add comments.
4789
c8f2448a
JK
47902011-07-14 Jan Kratochvil <jan.kratochvil@redhat.com>
4791
4792 Code cleanup - constify struct lval_funcs.
4793 * dwarf2loc.c (pieced_value_funcs): Make it const.
4794 * infrun.c (siginfo_value_funcs): Likewise.
4795 * opencl-lang.c (opencl_value_funcs): Likewise.
4796 * valops.c (value_assign, value_ind): Make the funcs variable const.
4797 * value.c (struct value): Make location.computed.funcs target const.
4798 Rearrange the comments.
4799 (allocate_computed_value): Make the funcs parameter target const.
4800 (value_computed_funcs): Return the funcs target const.
4801 (value_free, value_copy, set_value_component_location): Make the funcs
4802 variable const.
4803 * value.h (allocate_computed_value): Make the funcs parameter target
4804 const.
4805 (value_computed_funcs): Return the funcs target const.
4806 * windows-tdep.c (tlb_value_funcs): Make it const.
4807
f652de6f
HZ
48082011-07-14 Hui Zhu <teawater@gmail.com>
4809
4810 * remote.c (remote_get_trace_status): Initialize p.
4811
67f41397
JK
48122011-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4813
4814 Work around kgdb.
4815 * remote.c (remote_get_trace_status): New variable ex. Put
4816 remote_get_noisy_reply into TRY_CATCH. Call exception_fprintf for it.
4817
d1b66e6d
TT
48182011-07-13 Tom Tromey <tromey@redhat.com>
4819
4820 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_regval_type>: Use
4821 value_from_contents for final conversion.
4822
1632a688
JK
48232011-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4824
4825 Code cleanup.
4826 * dwarf2loc.c (dwarf_expr_frame_base_1, dwarf2_evaluate_loc_desc_full):
4827 Indent prototypes so they do not get into tags.
4828
a7035dbb
JK
48292011-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
4830
4831 Code cleanup making also optimized out values lazy.
4832 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use
4833 allocate_optimized_out_value. Twice.
4834 (loclist_read_variable) Use allocate_optimized_out_value. Once.
4835 * findvar.c (read_var_value): Likewise.
4836 * value.c (allocate_optimized_out_value): New function.
4837 * value.h (allocate_optimized_out_value): New declaration.
4838
d07ed419
JK
48392011-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
4840
4841 Fix occasional crash of CTRL-C during DWARF read in.
4842 * dwarf2read.c (dwarf2_mark_helper): Return on NULL CU.
4843
86d31898
TT
48442011-07-11 Tom Tromey <tromey@redhat.com>
4845
4846 * regcache.c (struct regcache_descr): Fix typo.
4847 * i387-tdep.c (i387_supply_xsave): Fix typo.
4848
2ab95328
TT
48492011-07-11 Tom Tromey <tromey@redhat.com>
4850
4851 * dwarf2read.c (handle_DW_AT_stmt_list): New function.
4852 (read_file_scope, read_type_unit_scope): Use it.
4853
04ad99e6
JK
48542011-07-11 Jan Kratochvil <jan.kratochvil@redhat.com>
4855
4856 * dwarf2expr.c (read_sleb128): Fix signed extension overflowing host
4857 `int'.
4858
713389e0
PM
48592011-07-11 Phil Muldoon <pmuldoon@redhat.com>
4860
4861 PR python/12438
4862 * python/python.c: Set gdbpy_should_print_stack default to off.
4863 (set_python): Deprecate maint set python print-stack to
4864 class_deprecate.
4865 (_initialize_python): Deprecate maint set/show python print-stack.
4866 Add new prefix command, python. Add new setting, print-backtrace.
4867 * NEWS: Document set python print-stack. Document default change.
4868
754eadd1
PM
48692011-07-11 Phil Muldoon <pmuldoon@redhat.com>
4870
4871 * python/py-inferior.c (infpy_dealloc): New function.
4872 (inferior_to_inferior_object): Return a new object, or a
4873 new reference to the existing object.
4874 (find_thread_object): Cleanup references to inferior.
4875 (delete_thread_object): Ditto.
4876 * python/py-infthread.c (create_thread_object): Do not increment
4877 inferior reference count.
4878
5e44ecb3
TT
48792011-07-08 Tom Tromey <tromey@redhat.com>
4880
4881 * dwarf2loc.c (locexpr_regname): New function.
4882 (locexpr_describe_location_piece): Use it.
4883 (disassemble_dwarf_expression): Add per_cu argument. Use
4884 locexpr_regname.
4885 <DW_OP_GNU_deref_type, DW_OP_GNU_const_type,
4886 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
4887 New cases.
4888 (locexpr_describe_location_1): Add per_cu argument.
4889 (locexpr_describe_location): Update.
4890 (loclist_describe_location): Update.
4891
e0e9434c
TT
48922011-07-08 Tom Tromey <tromey@redhat.com>
4893
4894 * dwarf2expr.c (execute_stack_op): Add QUIT.
4895
26afc0d7
HZ
48962011-07-07 Hui Zhu <teawater@gmail.com>
4897
4898 Revert:
4899 2011-07-06 Hui Zhu <teawater@gmail.com>
4900 * remote.c (remote_start_remote): Add TRY_CATCH for
4901 remote_get_trace_status.
4902 * tracepoint.c (disconnect_tracing): Ditto.
4903
a40a111f
AB
49042011-07-07 Andrew Burgess <aburgess@broadcom.com>
4905
4906 * cli/cli-setshow.c (do_setshow_command): Display var_zinteger
4907 variables as signed, not unsigned.
4908
e2bd3b15
JB
49092011-07-06 Joel Brobecker <brobecker@adacore.com>
4910
4911 * jit.c (jit_inferior_init): Reformat forward declaration.
4912
e3d961fe 49132011-07-06 Matt Rice <ratmice@gmail.com>
4914
4915 * MAINTAINERS (Write After Approval): Add myself to the list.
4916
0f3428f0
HZ
49172011-07-06 Hui Zhu <teawater@gmail.com>
4918
4919 * remote.c (remote_start_remote): Add TRY_CATCH for
4920 remote_get_trace_status.
4921 * tracepoint.c (disconnect_tracing): Ditto.
4922
fc9f3a69
TT
49232011-07-05 Tom Tromey <tromey@redhat.com>
4924
4925 * symtab.c (operator_chars): Now static.
4926 * linespec.c (operator_chars): Don't declare.
4927
26e519b9
TJB
49282011-07-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
4929
4930 * ui-out.h (ui_out_field_core_addr): Fix typo in comment.
4931
eb2a6f42
TT
49322011-07-05 Tom Tromey <tromey@redhat.com>
4933
4934 * gnu-v3-abi.c (gnuv3_rtti_type): Check TYPE_CPLUS_REALLY_JAVA.
4935 * gdbtypes.h (struct cplus_struct_type) <is_java>: New field.
4936 (TYPE_CPLUS_REALLY_JAVA): New macro.
4937 * dwarf2read.c (process_structure_scope): Set
4938 TYPE_CPLUS_REALLY_JAVA.
4939
21083d0f 49402011-07-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
177b42fe
TJB
4941
4942 * ada-lang.c: Fix typos.
4943 * amd64-tdep.c: Likewise.
4944 * breakpoint.c: Likewise.
4945 * cli/cli-decode.c: Likewise.
4946 * findcmd.c: Likewise.
4947 * inline-frame.c: Likewise.
4948 * mi/mi-main.c: Likewise.
4949 * minsyms.c: Likewise.
4950 * monitor.c: Likewise.
4951 * monitor.h: Likewise.
4952 * prologue-value.c: Likewise.
4953 * reverse.c: Likewise.
4954 * s390-tdep.c: Likewise.
4955
3b2a0cf2
JB
49562011-07-06 Paul Pluzhnikov <ppluzhnikov@google.com>
4957
4958 * jit.c (jit_inferior_init): Forward declare.
4959 (jit_breakpoint_re_set_internal): Call jit_inferior_init.
4960
efae1d92
JB
49612011-07-04 Joel Brobecker <brobecker@adacore.com>
4962
4963 * osabi.c (generic_elf_osabi_sniffer): Minor comment reformatting.
4964
6040a59d
JB
49652011-07-04 Tristan Gingold <gingold@adacore.com>
4966
4967 * ada-tasks.c (KNOWN_TASKS_LIST): New macro.
4968 (tcb_fieldno): Add activation_link field.
4969 (get_known_tasks_addr): Moved and rewritten.
4970 (get_tcb_types_info): Set activation_link field.
4971 (read_known_tasks_array): Add parameter. Rewritten.
4972 (read_known_tasks_list): New function.
4973 (read_known_tasks): New function.
4974 (ada_build_task_list): Call read_known_tasks instead of
4975 read_known_tasks_array.
4976 * ravenscar-thread.c: Add first_task_name constant.
4977 (has_ravenscar_runtime): Check for task list too.
4978
cb741e45
JB
49792011-07-04 Tristan Gingold <gingold@adacore.com>
4980
4981 * ada-tasks.c: Renames fieldno to actb_fieldno.
4982 (ada_get_task_number): Indentation.
4983 (get_tcb_types_info): Remove all parameters. Write directly
4984 the globals.
4985 (ptid_from_atcb_common): Adjust.
4986 (read_atcb): Adjust.
4987
7475b06c
TJB
49882011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
4989
4990 * symtab.c (in_prologue): Remove mention of ppc's refine_prologue_limit.
4991
15230f37
TJB
49922011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
4993
4994 * ui-out.c (ui_out_field_core_addr): Mention that the function
4995 description is in the header file.
4996 * ui-out.h (ui_out_field_core_addr): Document function.
4997
65743aba
TJB
49982011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
4999
5000 * ui-out.c (ui_out_get_field_separator): Remove unused function.
5001 * ui-out.h (ui_out_get_field_separator): Remove prototype.
5002
c37a5aab
TJB
50032011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
5004
5005 * symtab.c (expand_line_sal): Remove empty line.
5006
59adf69e
TS
50072011-07-04 Thomas Schwinge <thomas@schwinge.name>
5008
5009 * osabi.c (generic_elf_osabi_sniffer) <ELFOSABI_GNU>: Handle in the
5010 same way as ELFOSABI_NONE.
5011 <ELFOSABI_LINUX, ELFOSABI_HURD>: Remove cases.
5012
e5dd4106
TJB
50132011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
5014
5015 * breakpoint.c: Fix typos in comments.
5016 * linespec.c: Likewise.
5017 * symtab.c: Likewise.
5018
d40102a1
JB
50192011-07-04 Joel Brobecker <brobecker@adacore.com>
5020
5021 * dwarf2-frame.c (dwarf2_build_frame_info): Do not load .eh_frame
5022 section in separate object files.
5023
2f741504
JK
50242011-07-04 Jan Kratochvil <jan.kratochvil@redhat.com>
5025
5026 Fix false GCC warning.
5027 * linespec.c (decode_line_1): Initialize values.
5028
418c7cf7
JK
50292011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
5030
5031 * linespec.c (find_method): Accept the function type automatically only
5032 if it was specified with parameter types.
5033
3d50dd94
JK
50342011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
5035
5036 Stop on first linespec terminator instead of eating what we can.
5037 * linespec.c (is_linespec_boundary): New function.
5038 (name_end): Remove function.
5039 (keep_name_info): New parameter on_boundary, replace the body.
5040 (decode_line_1): Provide the parameter to keep_name_info.
5041 (decode_compound): Likewise. Drop the trailing java return type
5042 handling. Twice.
5043
dcf9f4ab
JK
50442011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
5045
5046 Fall back linespec to minimal symbols.
5047 * linespec.c (decode_line_1): New variable ex, saved_argptr. Protect
5048 decode_compound by TRY_CATCH, fall back on minsyms if it failed.
5049 (find_method, symbol_found): Change error to cplusplus_error.
5050
3f542ed1
JK
50512011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
5052
bc68c4e5 5053 * symtab.c (symbol_find_demangled_name): Remove DMGL_VERBOSE.
3f542ed1 5054
900e11f9
JK
50552011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
5056 Tom Tromey <tromey@redhat.com>
5057
5058 * dwarf2read.c (check_physname): New variable.
5059 (dwarf2_physname): Prefer DW_AT_linkage_name over dwarf2_compute_name.
5060 (show_check_physname): New function.
5061 (_initialize_dwarf2_read): Add `check-physname' for check_physname.
5062
2301925d
JB
50632011-07-01 Joel Brobecker <brobecker@adacore.com>
5064
5065 * machoread.c (macho_symfile_read): Delete OBE comment.
5066
38947cca
JB
50672011-07-01 Joel Brobecker <brobecker@adacore.com>
5068
5069 * machoread.c (struct macho_oso_data): Delete.
5070 (current_oso): Delete.
5071 (macho_relocate_common_syms): New function, mostly extracted
5072 out of
5073 (macho_add_oso_symfile): Call macho_relocate_common_syms.
5074 Remove code that sets and unset current_oso.
5075 (macho_symfile_relocate): Delete handling of common symbols,
5076 now moved to macho_relocate_common_syms.
5077
a7aa0d73
JB
50782011-07-01 Joel Brobecker <brobecker@adacore.com>
5079
5080 * darwin-nat.c (darwin_ptrace): Add documentation.
5081 Set errno to zero before calling ptrace. If ptrace returns
5082 -1 and errno is zero, then change then return zero.
5083 (darwin_kill_inferior): Issue a warning instead of triggering
5084 a failed assertion when the PT_KILL ptrace operations returned
5085 nonzero.
5086
5e9bc145
JB
50872011-07-01 Joel Brobecker <brobecker@adacore.com>
5088
5089 * darwin-nat.c (darwin_detach): Call darwin_resume_inferior
5090 only when inf->private->no_ptrace.
5091
00eb2c4a
JB
50922011-07-01 Joel Brobecker <brobecker@adacore.com>
5093
5094 * ada-lang.c (print_it_exception): Print temporary catchpoints
5095 as "Temporary catchpoint".
5096 (print_mention_exception): Likewise.
5097
127c81bc
TT
50982011-07-01 Tom Tromey <tromey@redhat.com>
5099
5100 * jv-lang.c (java_language_defn): Use java_printchar,
5101 java_printstr.
5102 (java_get_encoding): New function.
5103 (java_emit_char): Use generic_emit_char.
5104 (java_printchar): New function.
5105 (java_printstr): Likewise.
5106
25552254
JB
51072011-07-01 Joel Brobecker <brobecker@adacore.com>
5108
5109 * ada-typeprint.c (print_record_type): If unable to decode
5110 the name of the parent type, use the encoded name.
5111
d2d43431
JB
51122011-07-01 Jean-Charles Delay <delay@adacore.com>
5113
5114 * ada-typeprint.c (ada_print_type): Fix both PAD type and
5115 pointer to constrained packed array type output.
5116 * ada-valprint.c (ada_val_print_1): Fix pointer to constrained
5117 packed array output.
5118
54ae186f
JB
51192011-07-01 Jean-Charles Delay <delay@adacore.com>
5120
5121 * ada-typeprint.c (print_array_type): removed if condition on show
5122 being negative for bounds printing.
5123
8f17729f
JB
51242011-07-01 Joel Brobecker <brobecker@adacore.com>
5125
5126 * ada-lang.c (ada_identical_enum_types_p): New function.
5127 (symbols_are_identical_enums): New function.
5128 (remove_extra_symbols): Do nothing if NSYMS < 2.
5129 Use symbols_are_identical_enums.
5130
f5aa6869
JB
51312011-07-01 Joel Brobecker <brobecker@adacore.com>
5132
5133 * ada-valprint.c (ada_value_print): Handle typedefs.
5134
8f465ea7
JB
51352011-07-01 Joel Brobecker <brobecker@adacore.com>
5136
5137 * ada-lang.c (ada_evaluate_subexp): Add missing word in comment.
5138
828292f2
JB
51392011-07-01 Eric Botcazou <ebotcazou@adacore.com>
5140
5141 * ada-lang.c (thin_descriptor_type): Deal with typedefs.
5142 (decode_constrained_packed_array): Likewise.
5143 (ada_evaluate_subexp) <TERNOP_SLICE>: Likewise.
5144
18920c42
JB
51452011-07-01 Joel Brobecker <brobecker@adacore.com>
5146
5147 * ada-exp.y (convert_char_literal): Handle typedef types.
5148
c90092fe
JB
51492011-07-01 Joel Brobecker <brobecker@adacore.com>
5150
5151 * ada-lang.c (ada_remove_trailing_digits): Expand documentation.
5152
f748fb40
TT
51532011-06-30 Tom Tromey <tromey@redhat.com>
5154
5155 * varobj.c (varobj_create): Call do_cleanups on early exit path.
5156 * valops.c (find_overload_match): Call do_cleanups on early exit
5157 path.
5158 * solib.c (solib_find): Call do_cleanups on early exit path.
5159
3bb47e8b
TT
51602011-06-30 Tom Tromey <tromey@redhat.com>
5161
5162 * symfile-mem.c (symbol_file_add_from_memory): Call do_cleanups.
5163 * solib-svr4.c (open_symbol_file_object): Call do_cleanups on all
5164 return paths. Defer final do_cleanups until last return.
5165 * arm-tdep.c (arm_exidx_new_objfile): Make null cleanup after
5166 early return.
5167
4727bad3
TT
51682011-06-30 Tom Tromey <tromey@redhat.com>
5169
5170 * Makefile.in (SUBDIR_MI_CFLAGS): Don't add -DMI_OUT=1.
5171
bb361dbf
AB
51722011-06-30 Andrew Burgess <aburgess@broadcom.com>
5173
5174 * MAINTAINERS (Write After Approval): Add myself to the list.
5175
e0d00bc7
JK
51762011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
5177
5178 Disable epilogue unwinders on recent GCCs.
5179 * amd64-tdep.c (amd64_in_function_epilogue_p): New variable symtab,
5180 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
5181 * dwarf2read.c (process_full_comp_unit): Initialize
5182 EPILOGUE_UNWIND_VALID.
5183 * i386-tdep.c (i386_in_function_epilogue_p): New variable symtab,
5184 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
5185 * symtab.h (struct symtab): New field epilogue_unwind_valid.
5186
4632c0d0
JK
51872011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
5188
5189 Code cleanup - reformatting.
5190 * dwarf2read.c (producer_is_gcc_ge_4_0): Rename to ...
5191 (producer_is_gcc_ge_4): ... here, change the return value.
5192 (process_full_comp_unit): New variable gcc_4_minor, adjust the value
5193 interpretation.
5194
32019081
JK
51952011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
5196
5197 Fix non-only rename list for Fortran modules import.
5198 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Adjust the
5199 cp_add_using_directive caller.
5200 (cp_add_using_directive): New parameter excludes, describe it. New
5201 variables ix and param. Compare if also excludes match. Allocate NEW
5202 with variable size, initialize EXCLUDES there.
5203 (cp_lookup_symbol_imports): New variable excludep, test
5204 current->EXCLUDES with it.
5205 * cp-support.h: Include vec.h.
5206 (struct using_direct): New field excludes, describe it.
5207 (DEF_VEC_P (const_char_ptr)): New.
5208 (cp_add_using_directive): New parameter excludes.
5209 * defs.h (const_char_ptr): New typedef.
5210 * dwarf2read.c (read_import_statement): New variables child_die,
5211 excludes and cleanups, read in excludes.
5212 (read_namespace): Adjust the cp_add_using_directive caller.
5213
70c622a3
JK
52142011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
5215
5216 Code cleanup.
5217 * cp-namespace.c (cp_add_using_directive): Turn positive comparison to
5218 negative comparisons.
5219
39c4d40a
TT
52202011-06-29 André Pönitz <andre.poenitz@nokia.com>
5221
5222 * mi/mi-main.c (mi_cmd_list_features): Emit
5223 breakpoint-notifications.
5224
3b2b8fea
TT
52252011-06-29 Tom Tromey <tromey@redhat.com>
5226
5227 PR fortran/10036:
5228 * valprint.h (generic_emit_char, generic_printstr): Declare.
5229 * valprint.c (wchar_printable, append_string_as_wide)
5230 (print_wchar): Move from c-lang.c.
5231 (generic_emit_char): New function; mostly taken from c_emit_char.
5232 (generic_printstr): New function; mostly taken from c_printstr.
5233 * f-valprint.c (f_val_print) <TYPE_CODE_ARRAY>: Handle strings
5234 represented as arrays.
5235 <TYPE_CODE_CHAR>: Treat as TYPE_CODE_INT; recognize as character
5236 type.
5237 * f-typeprint.c (f_type_print_base) <TYPE_CODE_CHAR>: Treat
5238 identically to TYPE_CODE_INT.
5239 * f-lang.c (f_get_encoding): New function.
5240 (f_emit_char): Use generic_emit_char.
5241 (f_printchar): Replace comment.
5242 (f_printstr): Use generic_printstr.
5243 * dwarf2read.c (read_base_type) <DW_ATE_unsigned>: Handle Fortran
5244 "character" types specially.
5245 <DW_ATE_signed_char, DW_ATE_unsigned_char>: Make TYPE_CODE_CHAR
5246 for Fortran.
5247 * c-lang.c (wchar_printable, append_string_as_wide, print_wchar):
5248 Move to valprint.c
5249 (c_emit_char): Call generic_emit_char.
5250 (c_printstr): Call generic_printstr.
5251
168e6d44
GB
52522011-06-29 Gary Benson <gbenson@redhat.com>
5253
5254 * breakpoint.c (bpstat_what): Removed duplicated case.
5255
1c033f8c
TT
52562011-06-28 Tom Tromey <tromey@redhat.com>
5257
5258 * python/python-internal.h (PY_SSIZE_T_CLEAN): Define.
5259
5fe41fbf
TT
52602011-06-27 Tom Tromey <tromey@redhat.com>
5261
5262 * valops.c (find_overload_match): Call do_cleanups before early
5263 return.
5264 * top.c (execute_command): Call do_cleanups before early return.
5265 (command_loop): Likewise.
5266 * stack.c (backtrace_command): Make a null cleanup early. Don't
5267 conditionally call do_cleanups.
5268 * python/py-value.c (TRY_CATCH): Move cleanup handling into
5269 TRY_CATCH.
5270 * python/py-breakpoint.c (gdbpy_breakpoint_has_py_cond): Rearrange
5271 so cleanups are always run.
5272 * mi/mi-cmd-var.c (mi_cmd_var_delete): Reset old_cleanups.
5273 * findcmd.c (parse_find_args): Call do_cleanups on early return
5274 path.
5275 * dbxread.c (elfstab_build_psymtabs): Make a null cleanup early.
5276 Don't conditionally call do_cleanups.
5277 * cli/cli-script.c (execute_user_command): Initialize 'old_chain'
5278 later.
5279
e26bd57d
EB
52802011-06-27 Eric Botcazou <ebotcazou@adacore.com>
5281
5282 * MAINTAINERS (Write After Approval): Use default email address.
5283
6c3097fc
JB
52842011-06-27 Joel Brobecker <brobecker@adacore.com>
5285
5286 * MAINTAINERS (Write After Approval): Add Eric Botcazou.
5287
369c397b
JB
52882011-06-27 Eric Botcazou <ebotcazou@adacore.com>
5289
5290 * sparc-tdep.h (struct sparc_frame_cache): Add frame_offset,
5291 saved_regs_mask and copied_regs_mask fields.
5292 (sparc_record_save_insn): New prototype.
5293 * sparc-tdep.c (sparc_alloc_frame_cache): Initialize the new fields.
5294 (sparc_record_save_insn): New function.
5295 (sparc_analyze_prologue): Add head comment. Recognize store insns
5296 of call-saved registers. Use OFFSET consistently. Recognize flat
5297 frames and cache their settings.
5298 (sparc32_skip_prologue): Handle flat frames.
5299 (sparc_frame_cache): Add frame_offset to the base address.
5300 (sparc32_frame_cache): Adjust to new frame description.
5301 (sparc32_frame_prev_register): Likewise.
5302 * sparc64-tdep.c (sparc64_frame_prev_register): Likewise.
5303 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
5304 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
5305 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_cache): Force the
5306 frame by calling sparc_record_save_insn.
5307 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_cache): Likewise.
5308 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_cache): Likewise.
5309 * sparc64obsd-tdep.c (sparc64obsd_frame_cache): Likewise.
5310
b315ab21
TG
53112011-06-27 Tristan Gingold <gingold@adacore.com>
5312
5313 * dwarf2read.c (struct dwarf2_section_info): Replace was_mmapped
5314 field by map_addr and map_len.
5315 (dwarf2_read_section): Adjust for the new bfd_mmap api.
5316 (munmap_section_buffer): Likewise.
5317
ddd49eee
TT
53182011-06-24 Tom Tromey <tromey@redhat.com>
5319
5320 * varobj.c (update_dynamic_varobj_children): Make 'name' const.
5321 * symtab.h (lookup_struct, lookup_union, lookup_enum): Update.
5322 * python/python.c (gdbpy_parameter): Make 'arg' const.
5323 (execute_gdb_command): Likewise.
5324 (gdbpy_decode_line): Likewise. Copy it.
5325 (gdbpy_parse_and_eval): Make 'expr_string' const. Copy it.
5326 (gdbpy_write): Make 'arg' const.
5327 * python/py-type.c (typy_lookup_typename): Make 'type_name'
5328 const.
5329 (gdbpy_lookup_type): Likewise.
5330 * python/py-prettyprint.c (print_children): Make 'name' const.
5331 * python/py-param.c (parmpy_init): Make 'name' const. Copy it.
5332 * python/py-inferior.c (infpy_write_memory): Make 'buf_len' a
5333 Py_ssize_t.
5334 * python/py-function.c (fnpy_init): Make 'name' const.
5335 * python/py-cmd.c (cmdpy_init): Make 'name' const. Copy it.
5336 (gdbpy_string_to_argv): Make 'input' const.
5337 * python/py-breakpoint.c (bppy_init): Make 'spec' const. Copy
5338 it.
5339 * gdbtypes.h (lookup_typename): Update.
5340 * gdbtypes.c (lookup_typename): Make 'name' const.
5341 (lookup_struct): Likewise.
5342 (lookup_union): Likewise.
5343 (lookup_enum): Likewise.
5344
5998129b
TT
53452011-06-24 Tom Tromey <tromey@redhat.com>
5346
5347 * Makefile.in (HFILES_NO_SRCDIR): Add "common/" to
5348 gdb_thread_db.h. Move all common/ entries to be together.
5349 (TAGS): Don't depend on DEPFILES.
5350
6e586cc5
YQ
53512011-06-23 Yao Qi <yao@codesourcery.com>
5352
5353 * infrun.c (start_remote): Move call init_wait_for_inferior to ...
5354 * remote.c (remote_start_remote): ... here.
5355 * monitor.c (monitor_open): ... here.
5356
86c3c1fc
AB
53572011-06-23 Andrew Burgess <aburgess@broadcom.com>
5358
5359 * gdbtypes.c (append_composite_type_field_aligned): Fix
5360 calculation of bit position based on alignment.
5361
28010a5d
PA
53622011-06-22 Pedro Alves <pedro@codesourcery.com>
5363
5364 * breakpoint.c (bpstat_stop_status): Call the check_status
5365 breakpoint_ops method.
5366 (print_one_breakpoint_location): Also print the condition for Ada
5367 exception catchpoints.
5368 (allocate_bp_location): New, factored out from
5369 allocate_bp_location.
5370 (allocate_bp_location): Adjust. Call the owner breakpoint's
5371 allocate_location method, if there is one.
5372 (free_bp_location): Call the locations's dtor method, if there is
5373 one.
5374 (init_raw_breakpoint_without_location): New breakpoint_ops
5375 parameter. Use it.
5376 (set_raw_breakpoint_without_location): Adjust.
5377 (init_raw_breakpoint): New breakpoint_ops parameter. Pass it down.
5378 (set_raw_breakpoint): Adjust.
5379 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
5380 (catch_syscall_breakpoint_ops): Install NULL allocate_location,
5381 re_set and check_status methods.
5382 (init_catchpoint): Don't memset, initialize thread, addr_string
5383 and enable_state. Pass the ops down to init_raw_breakpoint.
5384 (install_catchpoint): Rename to ...
5385 (install_breakpoint): ... this, and make extern.
5386 (create_fork_vfork_event_catchpoint): Adjust.
5387 (catch_exec_breakpoint_ops): Install NULL allocate_location,
5388 re_set and check_status methods.
5389 (create_syscall_event_catchpoint): Adjust.
5390 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
5391 (masked_watchpoint_breakpoint_ops): Install NULL
5392 allocate_location, re_set and check_status methods.
5393 (catch_exec_command_1): Adjust.
5394 (gnu_v3_exception_catchpoint_ops): Install NULL allocate_location,
5395 re_set and check_status methods.
5396 (create_ada_exception_breakpoint): Rename to ...
5397 (init_ada_exception_breakpoint): ... this. Add a struct
5398 breakpoint parameter, and delete the exp_string, cond_string and
5399 cond parameters. Use init_raw_breakpoint, and don't install or
5400 mention the breakpoint yet. Don't clear breakpoint fields that
5401 init_raw_breakpoint already clears.
5402 (re_set_breakpoint): Delete, split into ...
5403 (breakpoint_re_set_default, prepare_re_set_context): ... these new
5404 functions.
5405 (breakpoint_re_set_one): Call the breakpoint's
5406 breakpoint_ops->re_set implementation, if there's one. Adjust.
5407 * breakpoint.h: Forward declare struct bpstats and struct bp_location.
5408 (struct bp_location_ops): New type.
5409 (struct bp_location): New field `ops'.
5410 (struct breakpoint_ops): New `allocate_location', `re_set' and
5411 `check_status' fields. Make `breakpoint_hit''s description match
5412 reality.
5413 (init_bp_location): Declare.
5414 (breakpoint_re_set_default): Declare.
5415 (create_ada_exception_breakpoint): Rename to ...
5416 (init_ada_exception_breakpoint): ... this. Add a struct
5417 breakpoint parameter, and delete the exp_string, cond_string and
5418 cond parameters.
5419 (install_breakpoint): Declare.
5420 * ada-lang.c: Include exceptions.h.
5421 <Ada exceptions description>: Update.
5422 (struct ada_catchpoint_location): New type.
5423 (ada_catchpoint_location_dtor): New function.
5424 (ada_catchpoint_location_ops): New global.
5425 (ada_catchpoint): New type.
5426 (create_excep_cond_exprs): New function.
5427 (dtor_exception, allocate_location_exception, re_set_exception)
5428 (should_stop_exception, check_status_exception): New functions.
5429 (print_one_exception, print_mention_exception)
5430 (print_recreate_exception): Adjust.
5431 (dtor_catch_exception, allocate_location_catch_exception)
5432 (re_set_catch_exception, check_status_catch_exception): New
5433 functions.
5434 (catch_exception_breakpoint_ops): Install them.
5435 (dtor_catch_exception_unhandled)
5436 (allocate_location_catch_exception_unhandled)
5437 (re_set_catch_exception_unhandled)
5438 (check_status_catch_exception_unhandled): New functions.
5439 (catch_exception_unhandled_breakpoint_ops): Install them.
5440 (dtor_catch_assert, allocate_location_catch_assert)
5441 (re_set_catch_assert, check_status_catch_assert): New functions.
5442 (catch_assert_breakpoint_ops): Install them.
5443 (ada_exception_catchpoint_p): Delete.
5444 (catch_ada_exception_command_split)
5445 (ada_exception_catchpoint_cond_string): Rename exp_string
5446 parameter to excep_string. Adjust.
5447 (ada_parse_catchpoint_condition): Delete.
5448 (ada_exception_sal): Rename the exp_string parameter to
5449 excep_string. Delete the cond_string and cond parameters.
5450 Adjust.
5451 (ada_decode_exception_location): Rename the exp_string parameter
5452 to excep_string. Delete the cond_string and cond parameters.
5453 Adjust.
5454 (create_ada_exception_catchpoint): New function.
5455 (catch_ada_exception_command, ada_decode_assert_location)
5456 (catch_assert_command): Adjust.
5457 * ada-lang.h (ada_exception_catchpoint_p): Delete declaration.
5458
9ac4176b
PA
54592011-06-22 Pedro Alves <pedro@codesourcery.com>
5460
5461 * ada-lang.c: Include arch-utils.h.
5462 (ada_decode_exception_location): Make static.
5463 (catch_ada_exception_command): Moved here from breakpoint.c.
5464 (ada_decode_assert_location): Make static.
5465 (catch_assert_command): Moved here from breakpoint.c.
5466 (_initialize_ada_lang): Install the exception and assert
5467 catchpoint commands here.
5468 * ada-lang.h (ada_decode_exception_location)
5469 (ada_decode_assert_location): Delete declarations.
5470 * breakpoint.c (CATCH_PERMANENT, CATCH_TEMPORARY): Moved to
5471 breakpoint.h.
5472 (create_ada_exception_breakpoint): Make extern.
5473 (catch_ada_exception_command, catch_assert_command): Moved to
5474 ada-lang.c.
5475 (add_catch_command): Make extern.
5476 (_initilize_breakpoint): Don't install the exception and assert
5477 catchpoint commands here.
5478 * breakpoint.h (CATCH_PERMANENT, CATCH_TEMPORARY): Moved from
5479 breakpoint.c
5480 (add_catch_command, create_ada_exception_breakpoint): Declare.
5481
c56053d2
PA
54822011-06-22 Pedro Alves <pedro@codesourcery.com>
5483
5484 * breakpoint.c (init_raw_breakpoint_without_location): Don't add
5485 the breakpoint to the breakpoint chain here.
5486 (set_raw_breakpoint_without_location): Add the breakpoint to the
5487 breakpoint chain here.
5488 (init_raw_breakpoint): Adjust comments.
5489 (set_raw_breakpoint): Add the breakpoint to the breakpoint chain
5490 here.
5491 (init_catchpoint): Don't set the catchpoint's breakpoint number
5492 here.
5493 (install_catchpoint): New function.
5494 (create_fork_vfork_event_catchpoint)
5495 (create_syscall_event_catchpoint, catch_exec_command_1): Adjust to
5496 use install_catchpoint.
5497
d2f3fc74
PA
54982011-06-22 Pedro Alves <pedro@codesourcery.com>
5499
5500 * breakpoint.c (create_catchpoint_without_mention)
5501 (create_catchpoint): Delete.
5502
b4d90040
PA
55032011-06-22 Pedro Alves <pedro@codesourcery.com>
5504
5505 * breakpoint.h (struct breakpoint): Delete field `exec_pathname'.
5506 * breakpoint.c (init_raw_breakpoint_without_location): Remove
5507 reference to exec_pathname.
5508 (struct exec_catchpoint): New type.
5509 (dtor_catch_exec): New function.
5510 (insert_catch_exec, print_it_catch_exec, print_one_catch_exec): Adjust.
5511 (catch_exec_breakpoint_ops): Install dtor_catch_syscall.
5512 (catch_exec_command_1): Adjust to use init_catchpoint.
5513 (delete_breakpoint): Remove reference to exec_pathname.
5514
be5c67c1
PA
55152011-06-22 Pedro Alves <pedro@codesourcery.com>
5516
5517 * breakpoint.h (struct breakpoint_ops): New field `dtor'.
5518 (struct breakpoint): Delete field `syscalls_to_be_caught'.
5519 * breakpoint.c (init_raw_breakpoint_without_location): Remove
5520 reference to syscalls_to_be_caught.
5521 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops): Install a
5522 NULL `dtor'.
5523 (struct syscall_catchpoint): New type.
5524 (dtor_catch_syscall): New function.
5525 (insert_catch_syscall, remove_catch_syscall)
5526 (breakpoint_hit_catch_syscall, print_one_catch_syscall)
5527 (print_recreate_catch_syscall): Adjust.
5528 (catch_syscall_breakpoint_ops): Install dtor_catch_syscall.
5529 (catch_exec_breakpoint_ops): Install a NULL `dtor'.
5530 (create_syscall_event_catchpoint): Adjust to use init_catchpoint.
5531 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
5532 (masked_watchpoint_breakpoint_ops)
5533 (gnu_v3_exception_catchpoint_ops): Install a NULL `dtor'.
5534 (delete_breakpoint): Call the `dtor' breakpoint_ops method, if
5535 there is one. Remove references to syscalls_to_be_caught.
5536 (catching_syscall_number): Adjust.
5537 * ada-lang.c (catch_exception_breakpoint_ops)
5538 (catch_exception_unhandled_breakpoint_ops)
5539 (catch_assert_breakpoint_ops): Install a NULL `dtor'.
5540
e29a4733
PA
55412011-06-22 Pedro Alves <pedro@codesourcery.com>
5542
5543 * breakpoint.h (struct breakpoint): Delete forked_inferior_pid
5544 field.
5545 * breakpoint.c (init_raw_breakpoint_without_location): Remove
5546 reference to forked_inferior_pid.
5547 (struct fork_catchpoint): New type.
5548 (breakpoint_hit_catch_fork, print_it_catch_fork)
5549 (print_one_catch_fork, breakpoint_hit_catch_vfork)
5550 (print_it_catch_vfork, print_one_catch_vfork): Adjust.
5551 (create_fork_vfork_event_catchpoint): Adjust to use
5552 init_catchpoint.
5553
346774a9
PA
55542011-06-22 Pedro Alves <pedro@codesourcery.com>
5555
5556 * breakpoint.c (add_to_breakpoint_chain)
5557 (init_raw_breakpoint_without_location): New functions, factored
5558 out from ...
5559 (set_raw_breakpoint_without_location): ... this one.
5560 (init_raw_breakpoint): New function, factored out from
5561 set_raw_breakpoint and adjusted to use
5562 init_raw_breakpoint_without_location.
5563 (set_raw_breakpoint): Adjust.
5564 (init_catchpoint): New function, factored out from
5565 create_catchpoint_without_mention and adjusted to use
5566 init_raw_breakpoint.
5567 (create_catchpoint_without_mention): Adjust.
5568
c38c4bc5
TT
55692011-06-22 Tom Tromey <tromey@redhat.com>
5570
5571 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_convert>: Treat type
5572 argument of 0 specially.
5573
b138ce37
YQ
55742011-06-22 Yao Qi <yao@codesourcery.com>
5575
5576 * infrun.c (handle_inferior_event): Remove write-only local variable
5577 `sw_single_step_trap_p'.
5578
03de6823
TT
55792011-06-20 Tom Tromey <tromey@redhat.com>
5580
5581 * symtab.c (lookup_language_this): End loop if block is NULL.
5582
66a17cb6
TT
55832011-06-17 Tom Tromey <tromey@redhat.com>
5584
5585 * valops.c (value_of_this): Use lookup_language_this.
5586 * symtab.h (lookup_language_this): Declare.
5587 * symtab.c (lookup_language_this): New function.
5588 (lookup_symbol_aux): Use lookup_language_this.
5589 * ax-gdb.c (gen_expr) <OP_THIS>: Use lookup_language_this.
5590
7518bff5
TT
55912011-06-17 Tom Tromey <tromey@redhat.com>
5592
5593 * value.h (value_of_this): Update.
5594 (value_of_local): Remove.
5595 * valops.c (value_of_this): Rename from value_of_local. Change
5596 parameters.
5597 * p-exp.y (exp): Update.
5598 (variable): Likewise.
5599 * eval.c (evaluate_subexp_standard) <OP_THIS>: Use value_of_this.
5600
aee28ec6
TT
56012011-06-17 Tom Tromey <tromey@redhat.com>
5602
5603 * valops.c (value_of_local): Complain if NAME is NULL.
5604 * std-operator.def (OP_OBJC_SELF): Remove.
5605 * parse.c (operator_length_standard) <OP_OBJC_SELF>: Remove.
5606 * objc-exp.y (name_not_typename): Use OP_THIS.
5607 * expprint.c (print_subexp_standard) <OP_THIS>: Print language's
5608 name for "this".
5609 <OP_OBJC_SELF>: Remove.
5610 * eval.c (evaluate_subexp_standard) <OP_OBJC_SELF>: Remove.
5611
eed8f803
TG
56122011-06-16 Tristan Gingold <gingold@adacore.com>
5613
5614 * python/py-events.h (gdb_py_events): Make it extern.
5615 * python/py-evtregistry.c (gdb_py_events): Declare.
5616
864ac8a7
HZ
56172011-06-16 Hui Zhu <teawater@gmail.com>
5618
5619 * remote.c (remote_trace_set_readonly_regions): Add check for
5620 remote_protocol_packets[PACKET_qXfer_traceframe_info].support before
5621 output warning.
5622
ef7e8358
UW
56232011-06-15 Ulrich Weigand <ulrich.weigand@linaro.org>
5624
5625 * arm-linux-tdep.c: Include "auxv.h".
5626 (AT_HWCAP): Define.
5627 (ARM_LINUX_SIZEOF_VFP): Define.
5628 (arm_linux_supply_vfp): New function.
5629 (arm_linux_collect_vfp): Likewise.
5630 (arm_linux_regset_from_core_section): Handle .reg-arm-vfp sections.
5631 (arm_linux_fpa_regset_sections): New variable.
5632 (arm_linux_vfp_regset_sections): Likewise.
5633 (arm_linux_core_read_description): New function.
5634 (arm_linux_init_abi): Install arm_linux_core_read_description and
5635 arm_linux_fpa_regset_sections or arm_linux_vfp_regset_sections as
5636 appropriate for the architecture.
5637 * arm-tdep.h (struct gdbarch_tdep): Add member "vfpregset".
5638 (tdesc_arm_with_m): Declare.
5639 (tdesc_arm_with_iwmmxt): Likewise.
5640 (tdesc_arm_with_vfpv2): Likewise.
5641 (tdesc_arm_with_vfpv3): Likewise.
5642 (tdesc_arm_with_neon): Likewise.
5643 * arm-linux-nat.c: Move features/*.c includes ...
5644 * arm-tdep.c: ... here.
5645 * arm-linux-nat.c (arm_linux_read_description): Move initializing
5646 target description data structures ...
5647 * arm-tdep.c (_initialize_arm_tdep): ... here.
5648 * arm-linux-nat.c (HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3,
5649 HWCAP_VFPv3D16): Move definitions ...
5650 * arm-linux-tdep.h: ... here.
5651
c2fa21f1
HZ
56522011-06-15 Hui Zhu <teawater@gmail.com>
5653
5654 * remote.c (remote_trace_set_readonly_regions): Add a check for
5655 target_buf_size.
5656
dd707e8e
TT
56572011-06-14 Tom Tromey <tromey@redhat.com>
5658
5659 * coffread.c (coffread_objfile): Rename from current_objfile.
5660 * dbxread.c (dbxread_objfile): Rename from current_objfile.
5661 * mdebugread.c (mdebugread_objfile): Rename from current_objfile.
5662
86cc0029
TT
56632011-06-14 Tom Tromey <tromey@redhat.com>
5664
5665 * jv-lang.c (jv_type_objfile_data_key, dynamics_objfile)
5666 (class_symtab): Remove.
5667 (jv_dynamics_progspace_key): New global.
5668 (jv_per_objfile_free): Reset program space data. Update assert.
5669 Don't clear globals.
5670 (get_dynamics_objfile): Use and set program space data.
5671 (get_java_class_symtab): Use get_dynamics_objfile.
5672 (add_class_symbol): Likewise.
5673 (java_link_class_type): Likewise.
5674 (java_object_type, jv_clear_object_type, set_java_object_type):
5675 Remove.
5676 (get_java_object_type): Update. Don't cache result.
5677 (is_object_type): Don't call set_java_object_type.
5678 (_initialize_java_language): Don't set jv_type_objfile_data_key;
5679 initialize jv_dynamics_progspace_key.
5680
91a81f69
TT
56812011-06-14 Tom Tromey <tromey@redhat.com>
5682
5683 * symtab.h (current_objfile): Don't declare.
5684 * objfiles.h (current_objfile): Don't declare.
5685 * objfiles.c (current_objfile): Remove.
5686 * mdebugread.c (current_objfile): New file-scope global.
5687 * dbxread.c (current_objfile): New file-scope global.
5688 * coffread.c (current_objfile): New file-scope global.
5689
dc7eb48e
PA
56902011-06-13 Pedro Alves <pedro@codesourcery.com>
5691
5692 * top.h (line): Rename to ...
5693 (saved_command_line): ... this.
5694 (linesize): Rename to ...
5695 (saved_command_line_size): ... this.
5696 * top.c (line): Rename to ...
5697 (saved_command_line): ... this.
5698 (linesize): Rename to ...
5699 (saved_command_line_size): ... this.
5700 (dont_repeat, command_line_input, dont_repeat_command): Adjust.
5701 * event-top.c (command_line_handler): Adjust.
5702 * main.c (captured_main): Adjust.
5703
0d6c2135
MK
57042011-06-12 Mark Kettenis <kettenis@gnu.org>
5705
5706 * i386-tdep.c (i386_epilogue_frame_cache): Simplify code. Call
5707 get_frame_func instead of get_frame_pc to determine the code
5708 address used to construct the frame ID.
5709 (i386_epilogue_frame_unwind_stop_reason): Fix coding style.
5710 (i386_epilogue_frame_this_id): Likewise.
5711 (i386_epilogue_frame_prev_register): New function.
5712 (i386_epilogue_frame_unwind): Use i386_epilogue_frame_prev_register.
5713 (i386_stack_tramp_frame_sniffer): Fix coding style.
5714 (i386_stack_tramp_frame_unwind): Use i386_epilogue_frame_prev_register.
5715 (i386_gdbarch_init): Fix comments.
5716
8bbdd3f4
MK
57172011-06-12 Mark Kettenis <kettenis@gnu.org>
5718
5719 * i386-tdep.c (i386_match_insn_block): Use length of the proper
5720 instruction when walking back through the instruction stream.
5721
533a737e
JK
57222011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
5723
5724 * symtab.c (output_partial_symbol_filename): Exchange the filename and
5725 fullname parameters order.
5726
44b13c5a
JK
57272011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
5728
5729 Code cleanup.
5730 * dwarf2read.c (dw2_map_symbol_filenames): Use symbol_filename_ftype
5731 for fun.
5732 * psymtab.c (map_symbol_filenames_psymtab)
5733 (map_partial_symbol_filenames): Likewise.
5734 * psymtab.h: Include symfile.h.
5735 (map_partial_symbol_filenames): Use symbol_filename_ftype for fun.
5736 * symfile.h (symbol_filename_ftype): New.
5737 (struct quick_symbol_functions): Use symbol_filename_ftype for fun of
5738 map_symbol_filenames, clarify more the naming in comment.
5739
0b5574da
DE
57402011-06-07 Doug Evans <dje@google.com>
5741
5742 * cc-with-index.sh: Fix typos in comment.
b8e9bd6c 5743 Look for ../../gdb, for fullname.exp.
0b5574da 5744
5be4dfca
JK
57452011-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
5746 Pedro Alves <pedro@codesourcery.com>
5747
5748 * cli/cli-cmds.c (shell_escape): Use waitpid.
5749 * rs6000-nat.c (exec_one_dummy_insn): Likewise.
5750
316a8b21
TG
57512011-06-07 Tristan Gingold <gingold@adacore.com>
5752
5753 * xcoffread.c (dwarf2_xcoff_names): New variable.
5754 (aix_process_linenos): Add a guard.
5755 (xcoff_symfile_finish): Free dwarf2.
5756 (xcoff_initial_scan): Add dwarf2 support.
5757
3dd5b83d
PA
57582011-06-06 Pedro Alves <pedro@codesourcery.com>
5759
5760 * infcall.c (run_inferior_call): Don't mask async. Instead force
5761 a synchronous wait, if the target can async.
5762
5763 * target.h (struct target_ops): Delete to_async_mask.
5764 (target_async_mask): Delete.
5765 * target.c (update_current_target): Delete references to to_async_mask.
5766 * linux-nat.c (linux_nat_async_mask_value): Delete.
5767 (linux_nat_is_async_p, linux_nat_can_async_p): Remove references
5768 to linux_nat_async_mask_value.
5769 (linux_nat_async_mask): Delete.
5770 (linux_nat_async, linux_nat_close): Remove references to
5771 linux_nat_async_mask_value.
5772 * record.c (record_async_mask_value): Delete.
5773 (record_async): Remove references to record_async_mask_value.
5774 (record_async_mask): Delete.
5775 (record_can_async_p, record_is_async_p): Remove references to
5776 record_async_mask_value.
5777 (init_record_ops, init_record_core_ops): Remove references to
5778 record_async_mask.
5779 * remote.c (remote_async_mask_value): Delete.
5780 (init_remote_ops): Remove reference to remote_async_mask.
5781 (remote_can_async_p, remote_is_async_p): Remove references to
5782 remote_async_mask_value.
5783 (remote_async): Remove references to remote_async_mask_value.
5784 (remote_async_mask): Delete.
5785
5786 * infrun.c (fetch_inferior_event): Don't claim registers changed
5787 if the current thread is already not executing.
5788
64b9b334
JB
57892011-06-03 Joel Brobecker <brobecker@adacore.com> (obvious fix)
5790
5791 From Stephen Kitt <steve@sk2.org>
5792 * breakpoint.c, breakpoint.h, cli/cli-dump.c, dwarf2expr.c,
5793 gdbarch.c, gdbarch.sh, remote.c: Various spelling fixes.
5794
325663dc
JB
57952011-06-03 Joel Brobecker <brobecker@adacore.com>
5796
5797 * dwarf2expr.c (execute_stack_op) [DW_OP_deref]: Handle
5798 the case where ADDR_SIZE is different from TYPE_LENGTH (type).
5799
8cf64490
TT
58002011-06-03 Tom Tromey <tromey@redhat.com>
5801
5802 * python/py-inferior.c (python_inferior_exit): Use inferior's exit
5803 code fields.
5804 * python/py-exitedevent.c (create_exited_event_object): Change
5805 type of 'exit_code'. Optionally add exit_code attribute.
5806 (emit_exited_event): Change type of 'exit_code'.
5807 * python/py-event.h (emit_exited_event): Update.
5808 * mi/mi-interp.c (mi_inferior_exit): Print exit code.
5809 * infrun.c (handle_inferior_event): Set exit code fields on
5810 inferior.
5811 * inferior.h (struct inferior) <has_exit_code, exit_code>: New
5812 fields.
5813 * inferior.c (exit_inferior_1): Initialize new fields.
5814
8ddd9a20
TT
58152011-06-03 Tom Tromey <tromey@redhat.com>
5816
5817 * dwarf2expr.c (get_signed_type): New function.
5818 (execute_stack_op) <DW_OP_shra>: Always perform a signed shift.
5819
8dfd1e6d
KS
58202011-06-02 Keith Seitz <keiths@redhat.com>
5821
5822 * objc-lang.c (find_methods): Increment objfile_csym earlier.
5823
65fdb766
PA
58242011-06-02 Pedro Alves <pedro@codesourcery.com>
5825
5826 * top.h (simplified_command_loop): Delete declaration.
5827
f4b8c29b
MF
58282011-06-01 Mike Frysinger <vapier@gentoo.org>
5829
5830 * remote-sim.c (gdbsim_open): Add the strlen of " --sysroot=" and
5831 gdb_sysroot to the "len" variable. Append both to "arg_buf".
5832
1706c199
YQ
58332011-06-01 Yao Qi <yao@codesourcery.com>
5834
5835 * objfiles.h (obj_section_addr): Update reference to objfile from
5836 `abfd' to `obfd'.
5837 (obj_section_endaddr): Likewise.
5838
d19cd713 58392011-06-01 Daniel Jacobowitz <drow@false.org>
8d07004d
DJ
5840
5841 * MAINTAINERS: Update my email address and affiliation. Also
5842 update Ian Lance Taylor's affiliation. Use UTF-8 for ludo@gnu.org.
5843
e8eb7bc5
KS
58442010-05-31 Keith Seitz <keiths@redhat.com>
5845
5846 PR c++/12750
5847 * linespec.c (get_search_block): New function.
5848 (find_methods): Add FILE_SYMTATB parameter and use it and
5849 get_search_block to pass an appropriate block to
5850 lookup_symbol_in_namespace.
5851 (decode_line_1): Record if *ARGPTR is single-quote enclosed.
5852 Check if *ARGPTR starts with a filename first.
5853 If it does, call locate_first_half again to locate the next
5854 "first half" of the linespec.
5855 Pass FILE_SYMTATB to decode_objc and decode_compound.
5856 Swallow the trailing single-quote if IS_SQUOTE_ENCLOSED.
5857 (locate_first_half): Stop on the first colon seen.
5858 (decode_compound): Add FILE_SYMTAB parameter.
5859 Pass FILE_SYMTAB to lookup_prefix_sym and find_method.
5860 (lookup_prefix_sym): Add FILE_SYMTAB parameter and use
5861 get_search_block with lookup_symbol.
5862 (find_method): Add FILE_SYMTAB parameter and pass it to
5863 find_methods.
5864 (decode_objc): Use get_search_block.
5865
2b1dbab0
KS
58662010-05-31 Keith Seitz <keiths@redhat.com>
5867
5868 PR symtab/12704
5869 * cp-namespace.c (ANONYMOUS_NAMESPACE_LEN): Remove.
5870 (cp_scan_for_anonymous_namespaces): Use CP_ANONYMOUS_NAMESPACE_STR
5871 and CP_ANONYMOUS_NAMESPACE_LEN.
5872 (cp_is_anonymous): Likewise.
5873 * cp-support.h (CP_ANONYMOUS_NAMESPACE_STR): Define.
5874 (CP_ANONYMOUS_NAMESPACE_LEN): Define.
5875 * dwarf2read.c (namespace_name): Likewise.
5876 (fixup_partial_die): Likewise.
5877 * linespec.c (decode_compound): If CP_ANONYMOUS_NAMESPACE_STR is
5878 seen in the input, keep it.
5879
6d549500
PA
58802011-05-30 Pedro Alves <pedro@codesourcery.com>
5881
5882 * target.h (enum inferior_event_type): Delete INF_QUIT_REQ.
5883 * inf-loop.h (inferior_event_handler_wrapper): Delete.
5884 * inf-loop.c (inferior_event_handler_wrapper): Delete.
5885 (inferior_event_handler): Don't handle INF_QUIT_REQ.
5886 * remote.c (_initialize_remote): Register
5887 async_remote_interrupt_twice directly as
5888 sigint_remote_twice_token event.
5889
395bff70
PA
58902011-05-30 Pedro Alves <pedro@codesourcery.com>
5891
5892 * target.h (enum inferior_event_type): Delete INF_ERROR.
5893 * inf-loop.c (inferior_event_handler): Don't handle INF_ERROR.
5894
97224164
PA
58952011-05-30 Pedro Alves <pedro@codesourcery.com>
5896
5897 * interps.c (interp_set): Don't cancel continuations.
5898
07e78767
JK
58992011-05-30 Jan Kratochvil <jan.kratochvil@redhat.com>
5900
5901 * linux-nat.c (linux_lwp_is_zombie): Use xsnprintf.
5902
fa4cd53f
PA
59032011-05-30 Pedro Alves <pedro@codesourcery.com>
5904
5905 * continuations.h (continuation_ftype): Add `err' parameter.
5906 Document parameters.
5907 (do_all_continuations, do_all_continuations_thread)
5908 (do_all_intermediate_continuations)
5909 (do_all_intermediate_continuations_thread)
5910 (do_all_inferior_continuations): Add `err' parameter.
5911 * continuations.c (do_my_continuations_1, do_my_continuations)
5912 (do_all_inferior_continuations, do_all_continuations_ptid)
5913 (do_all_continuations_thread_callback)
5914 (do_all_continuations_thread, do_all_continuations)
5915 (do_all_intermediate_continuations_thread_callback)
5916 (do_all_intermediate_continuations_thread)
5917 (do_all_intermediate_continuations): Add `err' parameter, and pass
5918 it down all the way to the continuations proper.
5919 * inf-loop.c (inferior_event_handler): If fetching an inferior
5920 event throws an error, don't pop the target, and still call the
5921 continuations, but with `err' set. Adjust all other continuation
5922 calls.
5923 * breakpoint.c (until_break_command_continuation): Add `err'
5924 parameter.
5925 * infcmd.c (step_1_continuation): Add `err' parameter. Don't
5926 issue another step if `err' is set.
5927 (struct until_next_continuation_args): New.
5928 (until_next_continuation): Add `err' parameter. Adjust.
5929 (until_next_command): Adjust.
5930 (struct finish_command_continuation_args): Add `thread' field.
5931 (finish_command_continuation): Add `err' parameter. Handle it.
5932 (finish_forward): Adjust.
5933 (attach_command_continuation): Add `err' parameter. Handle it.
5934 * infrun.c (infrun_thread_stop_requested_callback): Adjust to
5935 cancel the continuations.
5936 * interps.c (interp_set): Adjust to cancel the continuations.
5937 * thread.c (clear_thread_inferior_resources): Adjust to cancel the
5938 continuations rather than discarding.
5939 (free_thread): Don't clear thread inferior resources here.
5940 (delete_thread_1): Do it here instead. And do it before removing
5941 the thread from the threads list. Tag the thread as exited before
5942 clearing thread inferior resources.
5943
c2949be0
JB
59442011-05-30 Joel Brobecker <brobecker@adacore.com>
5945
5946 * infcall.c (call_function_by_hand): Rephrase error message.
5947
619cebe8
PA
59482011-05-27 Pedro Alves <pedro@codesourcery.com>
5949
5950 * defs.h (struct thread_info, struct inferior): Delete forward
5951 declarations.
5952 * breakpoint.h (struct thread_info): New forward declaration.
5953 * observer.sh (struct inferior): New forward declaration.
5954 * python/python-internal.h (struct inferior): New forward
5955 declaration.
5956
be34f849
PA
59572011-05-27 Pedro Alves <pedro@codesourcery.com>
5958
5959 * defs.h (struct continuation, continuation_ftype)
5960 (continuation_free_arg_ftype, add_continuation)
5961 (do_all_continuations, do_all_continuations_thread)
5962 (discard_all_continuations, discard_all_continuations_thread)
5963 (add_intermediate_continuation, do_all_intermediate_continuations)
5964 (do_all_intermediate_continuations_thread)
5965 (discard_all_intermediate_continuations)
5966 (discard_all_intermediate_continuations_thread)
5967 (add_inferior_continuation, do_all_inferior_continuations)
5968 (discard_all_inferior_continuations): Move to ...
5969 * continuations.h: ... this new file.
5970 * breakpoint.c, continuations.c, event-top.c, inf-loop.c,
5971 infcmd.c, inferior.c, infrun.c, interps.c: Include
5972 continuations.h.
5973
432b4d03
JK
59742011-05-27 Jan Kratochvil <jan.kratochvil@redhat.com>
5975 Doug Evans <dje@google.com>
5976
5977 Fix PR 10970, PR 12702.
5978 * linux-nat.c (linux_lwp_is_zombie): New function.
5979 (wait_lwp): Initialize status. New variable prev_mask. Block signals.
5980 Check for linux_lwp_is_zombie. Use WNOHANG and sigsuspend.
5981
b0f260d6
PA
59822011-05-27 Pedro Alves <pedro@codesourcery.com>
5983
5984 * defs.h (continuation_ftype, continuation_free_arg_ftype): New
5985 typedefs.
5986 (add_continuation, add_intermediate_continuation)
5987 (add_inferior_continuation): Use them.
5988 * continuations.c (struct continuation): Use them.
5989 (make_continuation_ftype): Delete.
5990 (make_continuation, add_inferior_continuation, add_continuation)
5991 (add_intermediate_continuation): Use continuation_ftype and
5992 continuation_free_arg_ftype. Rename parameters to shorter names.
5993
af1e9a32
PA
59942011-05-27 Pedro Alves <pedro@codesourcery.com>
5995
5996 * continuations.c (make_continuation): Make it return void.
5997 (do_my_continuations): Rename to ...
5998 (do_my_continuations_1): ... this. Remove old_chain parameter and
5999 adjust.
6000 (do_my_continuations): New.
6001 (discard_my_continuations): Rename to ...
6002 (discard_my_continuations_1): ... this. Remove old_chain
6003 parameter and adjust.
6004 (discard_my_continuations): New.
6005 (add_inferior_continuation): Simplify.
6006 (do_all_inferior_continuations): Reimplement on top
6007 do_my_continuations.
6008 (discard_all_inferior_continuations): Simplify.
6009 (add_continuation): Simplify.
6010 (do_all_continuations_ptid): Simplify.
6011 (discard_all_continuations_thread_callback): Simplify.
6012 (add_intermediate_continuation): Simplify.
6013 (discard_all_intermediate_continuations_thread_callback):
6014 Simplify.
6015
50c0c017
PA
60162011-05-27 Pedro Alves <pedro@codesourcery.com>
6017
6018 * utils.c (struct continuation, add_continuation)
6019 (add_inferior_continuation)
6020 (do_all_inferior_continuations, discard_all_inferior_continuations)
6021 (restore_thread_cleanup, do_all_continuations_ptid)
6022 (do_all_continuations_thread_callback)
6023 (do_all_continuations_thread, do_all_continuations)
6024 (discard_all_continuations_thread_callback)
6025 (discard_all_continuations_thread, discard_all_continuations)
6026 (add_intermediate_continuation)
6027 (do_all_intermediate_continuations_thread_callback)
6028 (do_all_intermediate_continuations_thread)
6029 (do_all_intermediate_continuations)
6030 (discard_all_intermediate_continuations_thread_callback)
6031 (discard_all_intermediate_continuations_thread)
6032 (discard_all_intermediate_continuations): Move to ...
6033 * continuations.c: ... this new file, and adjust to no longer
6034 implement continuations on top of cleanups.
6035 * Makefile.in (SFILES): Add continuations.c.
6036 (COMMON_OBS): Add continuations.o.
6037
d8b34453
PA
60382011-05-26 Pedro Alves <pedro@codesourcery.com>
6039
6040 * inferior.h (enum exec_direction_kind): Delete EXEC_ERROR.
6041 * infrun.c (show_exec_direction_func): Don't handle EXEC_ERROR.
6042 Internal error on invalid values.
6043 * reverse.c: Don't handle EXEC_ERROR.
6044 * mi/mi-main.c: Don't handle EXEC_ERROR.
6045
32231432
PA
60462011-05-26 Pedro Alves <pedro@codesourcery.com>
6047
6048 * record.c: Include event-loop.h, inf-loop.h.
6049 (record_beneath_to_async): New global.
6050 (tmp_to_async): New global.
6051 (record_async_inferior_event_token): New global.
6052 (record_open_1): Don't error out if async is enabled.
6053 (record_open): Handle to_async. Create an async event source in
6054 the event loop.
6055 (record_close): Delete the async event source.
6056 (record_resumed): New global.
6057 (record_execution_dir): New global.
6058 (record_resume, record_core_resume): Set them. Register the
6059 target on the event loop.
6060 (record_wait): Rename to ...
6061 (record_wait_1): ... this. Add more debug output. Handle
6062 TARGET_WNOHANG, and the target beneath returning
6063 TARGET_WAITKIND_IGNORE.
6064 (record_wait): Reimplement on top of record_wait_1.
6065 (record_async_mask_value): New global.
6066 (record_async, record_async_mask, record_can_async_p)
6067 (record_is_async_p, record_execution_direction): New functions.
6068 (init_record_ops, init_record_core_ops): Install new methods.
6069 * infrun.c (fetch_inferior_event): Temporarily switch the global
6070 execution direction to the direction the target was going.
6071 (execution_direction): Change type to int.
6072 * target.c (default_execution_direction): New function.
6073 (update_current_target): Inherit and de_fault
6074 to_execution_direction.
6075 * target.h (struct target_ops) <to_execution_direction>: New
6076 field.
6077 (target_execution_direction): New macro.
6078 * inferior.h (execution_direction): Change type to int.
6079
949dc678
PA
60802011-05-26 Pedro Alves <pedro@codesourcery.com>
6081
6082 * infcall.c (call_function_by_hand): Don't allow calling functions
6083 in reverse execution mode.
6084
c13bd2b5
PA
60852011-05-26 Pedro Alves <pedro@codesourcery.com>
6086
6087 * infcmd.c (finish_command): Allow async finish in reverse.
6088
6938fd34
YQ
60892011-05-26 Yao Qi <yao@codesourcery.com>
6090
6091 * gdb_thread_db.h: Delete. Move to ...
6092 * common/gdb_thread_db.h: ... here.
6093
9da8c2a0
PA
60942011-05-26 Pedro Alves <pedro@codesourcery.com>
6095
6096 * infcmd.c (finish_backward): Set a step-resume breakpoint at the
6097 function's entry point instead of a manually managed momentary
6098 breakpoint, and only ever issue one proceed call.
6099 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_STEP_RESUME>: If
6100 doing a reverse-finish, switch to stepi mode, to do another step.
6101 (insert_step_resume_breakpoint_at_sal): Make public.
6102 (normal_stop): No need to save function value return registers if
6103 going reverse.
6104 * inferior.h (insert_step_resume_breakpoint_at_sal): Declare.
6105
2c03e5be
PA
61062011-05-26 Pedro Alves <pedro@codesourcery.com>
6107
6108 * breakpoint.h (enum bptype) <bp_hp_step_resume>: New.
6109 (enum bpstat_what_main_action): Move BPSTAT_WHAT_STEP_RESUME
6110 before BPSTAT_WHAT_STOP_SILENT. Add BPSTAT_WHAT_HP_STEP_RESUME
6111 at the end.
6112 * breakpoint.c (update_breakpoints_after_exec): Also delete hp
6113 step-resume breakpoints.
6114 (print_it_typical): Handle bp_hp_step_resume.
6115 (bpstat_what): Ditto.
6116 (bptype_string): Ditto.
6117 (print_one_breakpoint_location): Ditto.
6118 (allocate_bp_location): Ditto.
6119 (mention): Ditto.
6120 (breakpoint_re_set_one): Ditto.
6121 * infrun.c (handle_inferior_event): Adjust. Split
6122 BPSTAT_WHAT_STEP_RESUME handling in BPSTAT_WHAT_STEP_RESUME and
6123 BPSTAT_WHAT_HP_STEP_RESUME.
6124 (insert_step_resume_breakpoint_at_sal): Rename to ...
6125 (insert_step_resume_breakpoint_at_sal_1): ... this. Add bptype
6126 parameter. Handle it.
6127 (insert_step_resume_breakpoint_at_sal): Reimplement on top of
6128 insert_step_resume_breakpoint_at_sal_1.
6129 (insert_step_resume_breakpoint_at_frame): Rename to ...
6130 (insert_hp_step_resume_breakpoint_at_frame): ... this. Adjust to
6131 set a high-priority step-resume breakpoint.
6132 (insert_step_resume_breakpoint_at_frame): Adjust comment.
6133 (insert_step_resume_breakpoint_at_caller): Ditto.
6134
51be5b68
PA
61352011-05-26 Pedro Alves <pedro@codesourcery.com>
6136
6137 * breakpoint.c (iterate_over_related_breakpoints): New.
6138 (do_map_delete_breakpoint): New.
6139 (delete_command): Pass do_map_delete_breakpoint to
6140 map_breakpoint_numbers.
6141 (do_disable_breakpoint): New.
6142 (do_map_disable_breakpoint): Iterate over the breakpoint's related
6143 breakpoints.
6144 (do_enable_breakpoint): Rename to ...
6145 (enable_breakpoint_disp): ... this.
6146 (enable_breakpoint): Adjust.
6147 (do_enable_breakpoint): New.
6148 (enable_once_breakpoint): Delete.
6149 (do_map_enable_breakpoint): New.
6150 (do_map_enable_once_breakpoint): New.
6151 (enable_once_command, enable_delete_command)
6152 (delete_trace_command): Iterate over the breakpoint's related
6153 breakpoints.
6154
4a1be8d2
PA
61552011-05-26 Pedro Alves <pedro@codesourcery.com>
6156
6157 * alpha-tdep.c (alpha_cannot_fetch_register): Don't return true
6158 for ALPHA_ZERO_REGNUM.
6159 (alpha_supply_int_regs): Explicitly supply zero as the value for
6160 ALPHA_ZERO_REGNUM in the register cache.
6161 * alpha-nat.c (fetch_osf_core_registers): Ditto.
6162
59d70315
YQ
61632011-05-26 Yao Qi <yao@codesourcery.com>
6164
6165 * gdb/gdb_thread_db.h: Remove HAVE_UINTPTR_T.
6166
251d32d9
TG
61672011-05-26 Tristan Gingold <gingold@adacore.com>
6168
6169 * symfile.h (struct dwarf2_section_names): New type.
6170 (struct dwarf2_debug_sections): New type.
6171 (dwarf2_has_info): Add parameter.
6172 * dwarf2read.c (dwarf2_elf_names): New variable.
6173 (INFO_SECTION, ABBREV_SECTION, LINE_SECTION, LOC_SECTION)
6174 (MACINFO_SECTION, STR_SECTION, RANGES_SECTION, TYPES_SECTION)
6175 (FRAME_SECTION, EH_FRAME_SECTION, GDB_INDEX_SECTION): Remove.
6176 (dwarf2_has_info): Add names parameter. Pass names
6177 to dwarf2_locate_sections.
6178 (section_is_p): Rewrite using the names parameter.
6179 (dwarf2_locate_sections): Use section names from the names parameter.
6180 * coffread.c (coff_symfile_read): Adjust call to dwarf2_has_info.
6181 * elfread.c (read_psyms): Ditto.
6182 * machoread.c (macho_symfile_read): Ditto.
6183
652c71b4
AS
61842011-05-25 Andreas Schwab <schwab@redhat.com>
6185
6186 PR gdb/8677
6187 * event-loop.c (handle_file_event): Don't handle POLLHUP as error.
6188
f17170e5
KS
61892011-05-24 Keith Seitz <keiths@redhat.com>
6190
6191 PR breakpoint/12803
6192 * linespec.c (keep_name_info): Add handling for "volatile" keyword.
6193 (decode_compound): Unconditionally call keep_name_info.
6194
cdac0397
PA
61952011-05-24 Pedro Alves <pedro@codesourcery.com>
6196
6197 * breakpoint.c (watchpoint_check): If the watchpoint went out of
6198 scope, clear its command list.
6199 (map_breakpoint_numbers): Don't walk the related breakpoints list
6200 of each breakpoint.
6201
91d4fe3f
TT
62022011-05-24 Tom Tromey <tromey@redhat.com>
6203
6204 * MAINTAINERS: Move Jim Blandy to past maintainers.
6205
3017a003
TG
62062011-05-24 Tristan Gingold <gingold@adacore.com>
6207
6208 * symfile.h (enum dwarf2_section_enum): New type.
6209 (dwarf2_get_section_info): New prototype.
6210 * dwarf2read.c (dwarf2_get_section_info): Replace parameter
6211 section_name by sect. Use a switch to select the info.
6212 * dwarf2-frame.c (warf2_get_section_info): Remove prototype.
6213 (dwarf2_build_frame_info): Adjust calls to dwarf2_get_section_info.
6214
c91c8c16
PA
62152011-05-24 Pedro Alves <pedro@codesourcery.com>
6216
6217 * solib-svr4.c (svr4_solib_create_inferior_hook): Skip setting
6218 shared library event breakpoint if there's no execution.
6219
77bc418a
TJB
62202011-05-24 Thiago Jung Bauermann <bauerman@br.ibm.com>
6221
6222 * breakpont.c (remove_hw_watchpoints): Remove unused function.
6223 * breakpoint.h remove_hw_watchpoints(): Remove prototype.
6224
c50491a7
TT
62252011-05-23 Tom Tromey <tromey@redhat.com>
6226
6227 * c-lang.c (evaluate_subexp_c): Use expect_type if it is not
6228 NULL.
6229
6d64e6d4
DE
62302011-05-23 Doug Evans <dje@google.com>
6231
6232 * python/lib/gdb/printing.py (register_pretty_printer): Add missing
6233 entry for RuntimeError to doc string.
6234
2067c8d4
JG
62352011-05-23 Jerome Guitton <guitton@adacore.com>
6236
6237 * sparc-tdep.c (sparc_skip_stack_check): Recognize a new instruction
6238 sequence for probing loops.
6239
b136cd05
PA
62402011-05-23 Pedro Alves <pedro@codesourcery.com>
6241
6242 * infrun.c (user_visible_resume_ptid): Fix typos in describing
6243 comment.
6244
22e74ef9
MK
62452011-05-21 Mark Kettenis <kettenis@gnu.org>
6246
6247 * sparc-nat.c (sparc_fetch_inferior_registers): Explicitly supply
6248 zero as the value for %g0 in the register cache.
6249 * sparc-tdep.c (sparc32_supply_gregset): Likewise.
6250 * sparc64-tdep.c (sparc64_supply_gregset): Likewise.
6251
842951eb
PA
62522011-05-20 Pedro Alves <pedro@codesourcery.com>
6253
6254 * infrun.c (proceed): Set previous_inferior_ptid here.
6255 (init_wait_for_inferior): Initialize previous_inferior_ptid from
6256 inferior_ptid, not null_ptid.
6257 (wait_for_inferior): Don't initialize previous_inferior_ptid here.
6258 (fetch_inferior_event): Nor here.
6259
46cf51e6
PA
62602011-05-20 Pedro Alves <pedro@codesourcery.com>
6261
6262 * inf-loop.c (inferior_event_handler): Only output a message if
6263 verbose.
6264
29ef4c46
LM
62652011-05-20 Luis Machado <lgustavo@codesourcery.com>
6266
6267 * MAINTAINERS: Update my e-mail address.
6268
f148b27e
PA
62692011-05-20 Pedro Alves <pedro@codesourcery.com>
6270
6271 * infrun.c (proceed): Switch the inferior event loop to
6272 INF_EXEC_COMPLETE if the target refused to resume from a
6273 vfork/fork.
6274
09cee04b
PA
62752011-05-20 Pedro Alves <pedro@codesourcery.com>
6276
6277 * infcmd.c: Include "inf-loop.h".
6278 (step_once): When stepping into an inline subroutine, pretend the
6279 target has run. If the target can async, switch the inferior
6280 event loop to INF_EXEC_COMPLETE.
6281 * inferior.h (user_visible_resume_ptid): Declare.
6282 * infrun.c (user_visible_resume_ptid): New function, factored out
6283 from `resume'.
6284 (resume): Use it.
6285 * mi/mi-main.c (mi_execute_async_cli_command): Remove assertion
6286 that the current thread is running. Merge async and sync
6287 branches.
6288
751b8ce1
PA
62892011-05-20 Pedro Alves <pedro@codesourcery.com>
6290
6291 * infcmd.c (step_1): Simplify synchronous case.
6292
e93a69ed
PA
62932011-05-20 Pedro Alves <pedro@codesourcery.com>
6294
6295 * tracepoint.c: Include exceptions.h.
6296 (TFILE_PID): Move higher in file.
6297 (tfile_open): Delay pushing the tfile target until we're assured
6298 the tfile header is present in the file. Wrap reading the initial
6299 newline-terminated lines in TRY_CATCH. Pop the target if the
6300 initial setup failed. Add the tfile's thread immediately
6301 aftwards, before any non-essential setup. Don't skip
6302 post_create_inferior if there are no traceframes present in the
6303 file.
6304 (tfile_close): Remove redundant check for null before xfree call.
6305 (tfile_thread_alive): New function.
6306 (init_tfile_ops): Register it as to_thread_alive callback.
6307
6823e2b1
PA
63082011-05-20 Pedro Alves <pedro@codesourcery.com>
6309
6310 * tracepoint.c (tfile_open): Delete #if 0'd code.
6311
b3c8eb43
JK
63122011-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
6313
6314 Fix -readnow for -gdwarf-4 unused type units.
6315 * dwarf2read.c (struct signatured_type): Remove the field offset.
6316 (create_signatured_type_table_from_index): Remove its initialization.
6317 (create_debug_types_hash_table): Likewise. Initialize per_cu.offset
6318 instead. Add a complaint call.
6319 (process_psymtab_comp_unit): Change assignment to gdb_assert.
6320 (process_type_comp_unit, lookup_die_type, dump_die_shallow)
6321 (lookup_signatured_type_at_offset, read_signatured_type)
6322 (write_one_signatured_type): Update the field for per_cu.
6323
310afc76
TT
63242011-05-19 Tom Tromey <tromey@redhat.com>
6325
6326 * python/py-inferior.c (python_inferior_exit): Use
6327 target_gdbarch.
6328 (python_on_resume): Likewise.
6329
cf6c5ffb
TT
63302011-05-19 Matt Rice <ratmice@gmail.com>
6331
6332 * breakpoint.c (bpstat_do_actions_1): Call prevent_dont_repeat.
6333
fb80a3c5
HZ
63342011-05-19 Hui Zhu <teawater@gmail.com>
6335
6336 * tracepoint.c (tfile_trace_find): Return directly when num is -1.
6337
3672b1be
HZ
63382011-05-19 Hui Zhu <teawater@gmail.com>
6339
6340 * xcoffread.c (read_xcoff_symtab): Initialize fcn_aux_saved.
6341
ff355380
TT
63422011-05-18 Tom Tromey <tromey@redhat.com>
6343
6344 * dwarf2read.c (dwarf2_add_field): Constify.
6345 * value.c (value_static_field): Constify.
6346 * gdbtypes.h (struct main_type) <field.field_location.physname>:
6347 Now const.
6348 * ax-gdb.c (gen_static_field): Constify
6349
ed731959
JK
63502011-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6351
6352 * linux-nat.c (kill_callback): Use SIGKILL first.
6353
967cff16
JB
63542011-05-18 Joel Brobecker <brobecker@adacore.com>
6355
6356 * ada-lang.c (print_it_exception): Avoid use of sprintf.
6357
1d06ead6
TT
63582011-05-18 Tom Tromey <tromey@redhat.com>
6359
6360 * value.c (value_fn_field): Constify.
6361 * symtab.c (gdb_mangle_name): Constify.
6362 * stabsread.c (update_method_name_from_physname): Make 'physname'
6363 argument const.
6364 * p-typeprint.c (pascal_type_print_method_args): Make arguments
6365 const. Use explicit fputc_filtered loop.
6366 (pascal_type_print_base): Constify.
6367 * p-lang.h (pascal_type_print_method_args): Update.
6368 * linespec.c (add_matching_methods): Constify.
6369 (add_constructors): Likewise.
6370 * jv-typeprint.c (java_type_print_base): Constify.
6371 * gdbtypes.h (struct cplus_struct_type)
6372 <fn_fieldlist.fn_field.physname>: Now const.
6373 * dwarf2read.c (compute_delayed_physnames): Constify.
6374 (dwarf2_add_member_fn): Likewise.
6375 * c-typeprint.c (c_type_print_base): Constify. Use cleanups.
6376
0d9a9a5f
PA
63772011-05-18 Pedro Alves <pedro@codesourcery.com>
6378
6379 * infrun.c (resume): Mention which is the current thread, and its
6380 current PC in debug output.
6381 (prepare_to_proceed): Mention the thread switching in debug
6382 output.
6383
05386e9e
TT
63842011-05-18 Tom Tromey <tromey@redhat.com>
6385
6386 * linux-thread-db.c (try_thread_db_load_from_pdir_1): Fix absolute
6387 path check. Use xmalloc and cleanups.
6388 (try_thread_db_load_from_dir): Use xmalloc and cleanups.
6389
ee86786c
TT
63902011-05-17 Tom Tromey <tromey@redhat.com>
6391
6392 * cp-valprint.c (cp_print_value_fields): Catch errors from
6393 value_static_field.
6394
9ff3b74f
TT
63952011-05-17 Tom Tromey <tromey@redhat.com>
6396
6397 * dwarf2read.c (dwarf2_get_die_type): Call
6398 get_die_type_at_offset.
6399 * dwarf2expr.c (dwarf_get_base_type): Handle NULL return from
6400 get_base_type function.
6401
cd3da28e
PA
64022011-05-17 Tomas Martinec <fyzmat@gmail.com>
6403
6404 * infrun.c (handle_inferior_event) <handling deferred step>: Clear
6405 trap_expected.
6406
fd20d931
DE
64072011-05-16 Doug Evans <dje@google.com>
6408
6409 * python/py-auto-load.c (source_section_scripts): Mention objfile
6410 name in warning.
6411
75fc9810
DE
64122011-05-15 Doug Evans <dje@google.com>
6413
290351b8
DE
6414 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New function.
6415 (try_thread_db_load_from_pdir): Call it. If unable to find
6416 libthread_db in directory of libpthread, see if we're looking at
6417 the separate-debug-info copy.
6418
75fc9810
DE
6419 * python/py-autoload.c (print_script): Print "Missing" instead of
6420 "No" for missing scripts.
6421 (info_auto_load_scripts): Tweak "Loaded" column to fit "Missing".
6422
9f7bc587
DE
64232011-05-13 Doug Evans <dje@google.com>
6424
6425 * ui-file.c (stdio_file_write_async_safe): Add comment.
6426
093cee7d
HZ
64272011-05-14 Hui Zhu <teawater@gmail.com>
6428
6429 * ui-file.c (stdio_file_write_async_safe): Add empty check for build.
6430
dbaefcf7
DE
64312011-05-13 Doug Evans <dje@google.com>
6432
98a5dd13
DE
6433 Support $pdir and $sdir in libthread-db-search-path.
6434 * NEWS: Mention $sdir,$pdir.
6435 * gdb_thread_db.h (LIBTHREAD_DB_SEARCH_PATH): Add $sdir:$pdir.
6436 * linux-thread-db.c (try_thread_db_load_from_pdir): New function.
6437 (try_thread_db_load_from_sdir): New function.
6438 (try_thread_db_load_from_dir): New function.
6439 (thread_db_load_search): Handle $pdir, $sdir. Remove trying of
6440 system directories if search of libthread-db-search-path fails,
6441 that is now done via $sdir.
6442 (has_libpthread): New function.
6443 (thread_db_load): Remove search for libthread_db in directory of
6444 libpthread, that is now done via $pdir.
6445
dbaefcf7
DE
6446 * NEWS: Mention "info auto-load-scripts".
6447 * python/py-auto-load.c (struct auto_load_pspace_info): New member
6448 script_not_found_warning_printed.
6449 (init_loaded_scripts_info): Renamed from create_loaded_scripts_hash,
6450 all callers updated. Initialize script_not_found_warning_printed.
6451 (get_auto_load_pspace_data_for_loading): New function.
6452 (maybe_add_script): New function.
6453 (source_section_scripts): Simplify. Only print one warning regardless
6454 of the number of auto-load scripts not found.
6455 (clear_section_scripts): Clear script_not_found_warning_printed.
6456 (auto_load_objfile_script): Record script in hash table.
6457 (count_matching_scripts): New function.
6458 (maybe_print_script): Renamed from maybe_print_section_script, all
6459 callers updated. Rewrite to use ui_out_*.
6460 (info_auto_load_scripts): Renamed from
6461 maintenance_print_section_scripts, all callers updated.
6462 (gdbpy_initialize_auto_load): "maintenance print section-scripts"
6463 renamed as "info auto-load-scripts".
6464
9930639c
TT
64652011-05-13 Tom Tromey <tromey@redhat.com>
6466
6467 * dwarf2expr.c (read_uleb128): Cast intermediate result.
6468 (read_sleb128): Likewise.
6469
06826322
TT
64702011-05-13 Tom Tromey <tromey@redhat.com>
6471
6472 * dwarf2loc.c (disassemble_dwarf_expression): Fix instruction
6473 offset display.
6474
01124a23
DE
64752011-05-13 Doug Evans <dje@google.com>
6476
6477 * linux-nat.c (debug_linux_nat_async): Delete.
6478 Replace all references to use debug_linux_nat instead.
6479 (show_debug_linux_nat_async): Delete.
6480 (sigchld_handler): Call ui_file_write_async_safe instead of
6481 fprintf_unfiltered.
6482 (_initialize_linux_nat): Remove `set debug lin-lwp-async'.
6483 * ui-file.c (struct ui_file): New member to_write_async_safe.
6484 (null_file_write_async_safe): New function.
6485 (ui_file_write_async_safe): New function.
6486 (set_ui_file_write_async_safe): New function.
6487 (ui_file_new): Initialize to_write_async_safe.
6488 (stdio_file_write_async_safe): New function.
6489 (struct stdio_file): New member fd.
6490 (stdio_file_new): Initialize to_write_async_safe, fd.
bbfac39e
DE
6491 (stdio_file_read, stdio_file_isatty): New stdio->fd instead of calling
6492 fileno.
01124a23
DE
6493 * ui-file.h (ui_file_write_async_safe_ftype): New typedef.
6494 (set_ui_file_write_async_safe): Declare.
6495 (ui_file_write_async_safe): Declare.
6496
72fc29ff
TT
64972011-05-13 Tom Tromey <tromey@redhat.com>
6498
6499 * utils.c (do_value_free): New function.
6500 (make_cleanup_value_free): Likewise.
6501 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle value
6502 freeing correctly.
6503 (dwarf2_loc_desc_needs_frame): Call
6504 make_cleanup_value_free_to_mark.
6505 * dwarf2expr.h (struct dwarf_expr_context) <mark>: Remove field.
6506 * dwarf2expr.c (free_dwarf_expr_context): Don't call
6507 value_free_to_mark.
6508 (new_dwarf_expr_context): Don't call value_mark.
6509 * dwarf2-frame.c (execute_stack_op): Call
6510 make_cleanup_value_free_to_mark.
6511 * defs.h (make_cleanup_value_free): Declare.
6512
028d0ed5
TJB
65132011-05-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
6514
6515 * mi/mi-main.c (mi_cmd_execute): Use cleanup from
6516 prepare_execute_command.
6517 * top.c (prepare_execute_command): Return cleanup.
6518 (execute_command): Use cleanup from prepare_execute_command.
6519 * top.h (prepare_execute_command): Change prototype to return
6520 cleanup.
6521 * defs.h (struct value): Add opaque declaration.
6522 (make_cleanup_value_free_to_mark): Add prototype.
6523 * utils.c (do_value_free_to_mark): New function.
6524 (make_cleanup_value_free_to_mark): Likewise.
6525
b087e0ed
TT
65262011-05-12 Tom Tromey <tromey@redhat.com>
6527
6528 * dwarf2expr.c (execute_stack_op) <DW_OP_shr>: Unconditionally
6529 cast left-hand-side to unsigned.
6530
8a9b8146
TT
65312011-05-12 Tom Tromey <tromey@redhat.com>
6532
6533 PR gdb/12617:
6534 * value.h (value_from_contents): Declare.
6535 * value.c (value_from_contents): New function.
6536 * dwarf2read.c (dwarf_stack_op_name): Add new values.
6537 (dwarf2_get_die_type): New function.
6538 * dwarf2loc.c (dwarf_expr_get_base_type): New function.
6539 (allocate_piece_closure): Acquire reference to values.
6540 (read_pieced_value): Update for value-based expressions.
6541 (write_pieced_value): Likewise.
6542 (free_pieced_value_closure): Call value_free as needed.
6543 (dwarf2_evaluate_loc_desc_full): Set get_base_type field.
6544 Update for value-based expressions.
6545 * dwarf2loc.h (dwarf2_get_die_type): Declare.
6546 * dwarf2expr.h (struct dwarf_stack_value) <value>: Change type.
6547 <get_base_type>: New field.
6548 (struct dwarf_expr_piece) <v.value>: Change type.
6549 <v.regno>: New field.
6550 (struct dwarf_expr_context) <mark>: New field.
6551 (dwarf_expr_piece, dwarf_expr_fetch): Update.
6552 (dwarf_expr_pop, dwarf_expr_push): Remove.
6553 (dwarf_expr_push_address): Declare.
6554 * dwarf2expr.c (dwarf_arch_cookie): New global.
6555 (struct dwarf_gdbarch_types): New.
6556 (dwarf_gdbarch_types_init, dwarf_expr_address_type): New
6557 functions.
6558 (dwarf_expr_push): Change type of 'value' argument. Update. Now
6559 static.
6560 (dwarf_expr_push_address): New function.
6561 (dwarf_expr_pop): Now static.
6562 (dwarf_expr_fetch): Change return type.
6563 (dwarf_require_integral): New function.
6564 (dwarf_expr_fetch): Simplify.
6565 (add_piece): Update.
6566 (base_types_equal_p, dwarf_get_base_type, get_unsigned_type): New
6567 functions.
6568 (execute_stack_op) <sign_ext>: Remove.
6569 Use values for DWARF stack.
6570 <DW_OP_GNU_const_type, DW_OP_GNU_deref_type,
6571 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
6572 New cases.
6573 (_initialize_dwarf2expr): New function.
6574 (add_piece): Update.
6575 (new_dwarf_expr_context): Set new field.
6576 (free_dwarf_expr_context): Call value_free_to_mark.
6577 * dwarf2-frame.c (no_base_type): New function.
6578 (execute_stack_op): Set get_base_type field. Update.
6579
e8d28ef4
TT
65802011-05-12 Tom Tromey <tromey@redhat.com>
6581
6582 * dwarf2read.c (read_common_block): Fix formatting.
6583
d248b706
KY
65842011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
6585
6586 * breakpoint.c (disable_breakpoint): Disable all locations
6587 associated with a tracepoint on target if a trace experiment is
6588 running.
6589 (disable_command): Disable a specific tracepoint location on target if
6590 a trace experiment is running.
6591 (do_enable_breakpoint): Enable all locations associated with a
6592 tracepoint on target if a trace experiment is running.
6593 (enable_command) Enable a specific tracepoint location on target if a
6594 trace experiment is running.
6595 * target.c (update_current_target): Add INHERIT and de_fault clauses for
6596 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
6597 to_disable_tracepoint.
6598 * target.h: Add declaration of struct bp_location.
6599 (struct target_ops): Add new functions
6600 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
6601 to_disable_tracepoint to target operations.
6602 (target_supports_enable_disable_tracepoint): New macro.
6603 (target_enable_tracepoint): New macro.
6604 (target_disable_tracepoint): New macro.
6605 * remote.c (struct remote_state): Add new field.
6606 (remote_enable_disable_tracepoint_feature): New.
6607 (remote_protocol_features): Add new entry.
6608 (remote_supports_enable_disable_tracepoint): New.
6609 (remote_enable_tracepoint): New.
6610 (remote_disable_tracepoint): New.
6611 (init_remote_ops): Add remote_enable_tracepoint,
6612 remote_disable_tracepoint and remote_supports_enable_disable_tracepoint
6613 to remote operations.
6614 * tracepoint.c (start_tracing): Allow tracing to start without any
6615 tracepoints enabled with just a warning if they can be re-enabled
6616 later.
6617 * NEWS: Add news item for the new behaviour of the enable and disable
6618 GDB commands when applied to tracepoints.
6619 Add news items for the new remote packets QTEnable and QTDisable.
6620
cc88a640
JK
66212011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6622
6623 * config.in: Regenerate.
6624 * configure: Regenerate.
6625 * configure.ac <--with-system-readline> (for readline_echoing_p):
6626 Remove the test.
6627 * tui/tui-io.c (tui_old_readline_echoing_p): Rename to ...
6628 (tui_old_rl_echoing_p): ... here.
6629 (tui_setup_io): Rename extern declaration readline_echoing_p to
6630 _rl_echoing_p. Adjust assignments for the both renames.
6631
1f84b619
TJB
66322011-05-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
6633
6634 * symtab.c (lookup_symtab): Run cleanup before returning.
6635
74ac6d43
TT
66362011-05-11 Tom Tromey <tromey@redhat.com>
6637
6638 * dwarf2read.c (handle_data_member_location): New function.
6639 (dwarf2_add_field): Use it.
6640 (read_common_block): Likewise.
6641
5488dafb
JK
66422011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6643
6644 Make addrs->SECTINDEX always defined.
6645 * symfile.c (relative_addr_info_to_section_offsets): Check for
6646 SECTINDEX -1, not for zero ADDR.
6647 (addrs_section_compar): Remove checking for invalid SECTINDEX.
6648 (addr_info_make_relative): Set SECTINDEX to -1 for unmatched entries.
6649 * symfile.h (struct section_addr_info) <sectindex>: Update the comment
6650 on its validity.
6651
84e578fb
DE
66522011-05-10 Doug Evans <dje@google.com>
6653
2471d008
DE
6654 * linux-thread-db.c: Whitespace cleanup.
6655 (try_thread_db_load_1): Fix comment.
6656
84e578fb
DE
6657 * linux-thread-db.c (set_libthread_db_search_path): New function.
6658 (_initialize_thread_db): Add setter for libthread-db-search-path.
6659
673c2bbe
DE
66602011-05-09 Doug Evans <dje@google.com>
6661
478aac75
DE
6662 * NEWS: Mention --with-iconv-bin.
6663 * configure.ac: New option --with-iconv-bin.
6664 * configure: Regenerate.
6665 * config.in: Regenerate.
6666 * defs.h (relocate_gdb_directory): Declare.
6667 * main.c (relocate_gdb_directory): Renamed from relocate_directory,
6668 removed progname parameter, and exported. All callers updated.
6669 * charset.c (find_charset_names): Use --with-iconv-bin if specified.
6670
673c2bbe
DE
6671 * linux-nat.c (lin_lwp_attach_lwp): For !WIPSTOPPED case,
6672 adding missing call to restore_child_signals_mask.
6673
e4c8541f
PA
66742011-05-09 Pedro Alves <pedro@codesourcery.com>
6675
6676 * inferior.h (wait_for_inferior): Remove `thread_exec_as_sigtrap'
6677 parameter.
6678 * infrun.c (proceed, start_remote): Adjust.
6679 (wait_for_inferior): Remove `thread_exec_as_sigtrap' parameter,
6680 and adjust to not handle it.
6681 * solib-irix.c (irix_solib_create_inferior_hook): Adjust.
6682 * solib-osf.c (osf_solib_create_inferior_hook): Adjust.
6683 * solib-sunos.c (sunos_solib_create_inferior_hook): Adjust.
6684 * solib-svr4.c (svr4_solib_create_inferior_hook): Adjust.
6685 * windows-nat.c (do_initial_windows_stuff): Adjust.
6686 * infcmd.c (attach_command): Adjust.
6687 (notice_new_inferior): Adjust.
6688
a536c6d7
UW
66892011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
6690
6691 * ppc-linux-tdep.c (ppu2spu_prev_register): Handle pseudo registers.
6692 (ppu2spu_unwind_register): Mark pseudo registers unavailable.
6693 * spu-tdep.c (op_selb): Use correct value.
6694
7845b013
UW
66952011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
6696
6697 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Add NULL
6698 "parent" parameter to symbol_file_add_from_bfd call.
6699
9c06b0b4
TJB
67002011-05-06 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
6701 Thiago Jung Bauermann <bauerman@br.ibm.com>
6702
6703 Implement support for PowerPC BookE masked watchpoints.
6704 * NEWS: Mention masked watchpoint support. Create "Changed commands"
6705 section.
6706 * breakpoint.h (struct breakpoint_ops) <works_in_software_mode>: New
6707 method. Initialize to NULL in all existing breakpoint_ops instances.
6708 (struct breakpoint) <hw_wp_mask>: New field.
6709 * breakpoint.c (is_masked_watchpoint): Add prototype.
6710 (update_watchpoint): Don't set b->val for masked watchpoints. Call
6711 breakpoint's breakpoint_ops.works_in_software_mode if available.
6712 (watchpoints_triggered): Handle the case of a hardware masked
6713 watchpoint trigger.
6714 (watchpoint_check): Likewise.
6715 (works_in_software_mode_watchpoint): New function.
6716 (insert_masked_watchpoint, remove_masked_watchpoint)
6717 (resources_needed_masked_watchpoint)
6718 (works_in_software_mode_masked_watchpoint, print_it_masked_watchpoint)
6719 (print_one_detail_masked_watchpoint, print_mention_masked_watchpoint)
6720 (print_recreate_masked_watchpoint, is_masked_watchpoint): New
6721 functions.
6722 (masked_watchpoint_breakpoint_ops): New structure.
6723 (watch_command_1): Check for the existence of the `mask' parameter.
6724 Set b->ops according to the type of hardware watchpoint being created.
6725 * ppc-linux-nat.c (ppc_linux_insert_mask_watchpoint)
6726 (ppc_linux_remove_mask_watchpoint)
6727 (ppc_linux_masked_watch_num_registers): New functions.
6728 (_initialize_ppc_linux_nat): Initialize to_insert_mask_watchpoint,
6729 to_remove_mask_watchpoint and to_masked_watch_num_registers.
6730 * target.c (update_current_target): Mention to_insert_mask_watchpoint,
6731 to_remove_mask_watchpoint, and to_masked_watch_num_registers.
6732 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
6733 (target_masked_watch_num_registers): New functions.
6734 * target.h (struct target_ops) <to_insert_mask_watchpoint>,
6735 <to_remove_mask_watchpoint>, <to_masked_watch_num_registers>: New
6736 methods.
6737 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
6738 (target_masked_watch_num_registers): Add prototypes.
6739
8be455d7
JK
67402011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6741
6742 PR 12573
6743 * dwarf2read.c (struct dwarf2_cu): New field has_loclist.
6744 (producer_is_gcc_ge_4_0): New function.
6745 (process_full_comp_unit): Set also symtab->locations_valid. Move the
6746 symtab->language code.
6747 (var_decode_location): Set cu->has_loclist.
6748 * symtab.c (skip_prologue_sal): New variables saved_pc, force_skip and
6749 skip. Intialize force_skip from locations_valid. Move the prologue
6750 skipping code into two passes.
6751 * symtab.h (struct symtab): Make the primary field a bitfield. New
6752 field locations_valid.
6753
d8228535
JK
67542011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6755
6756 * c-exp.y (qualified_name): Call destructor_name_p with $1.type.
6757 (classify_inner_name): Call cp_lookup_nested_type with
6758 yylval.tsym.type.
6759 * cp-namespace.c (cp_lookup_nested_type): New variable
6760 saved_parent_type. Call CHECK_TYPEDEF for parent_type. Call
6761 type_name_no_tag_or_error with saved_parent_type.
6762 * dwarf2read.c (load_partial_dies): Read in any children of
6763 DW_TAG_typedef with complaint in such case.
6764 * gdbtypes.c (type_name_no_tag_or_error): New function.
6765 * gdbtypes.h (type_name_no_tag_or_error): New prototype.
6766 * valops.c (destructor_name_p): New comment for parameter type. Remove
6767 type const. Make dname and cp const. Call type_name_no_tag_or_error.
6768 * value.h (destructor_name_p): Remove type const.
6769
1976171a
JK
67702011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6771
6772 * symtab.c (compare_symbol_name): New function.
6773 (completion_list_add_name, expand_partial_symbol_name): Call it,
6774 remove the variable ncmp.
6775 (default_make_symbol_completion_list_break_on): Reduce SYM_TEXT_LEN,
6776 gdb_assert it.
6777
a9634178
TJB
67782011-05-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
6779
6780 Demote to sw watchpoint only in update_watchpoint.
6781 * breakpoint.c (update_watchpoint): Change between software and
6782 hardware watchpoint for all kinds of watchpoints, not just
6783 read/write ones. Determine b->exact value here instead of
6784 in watch_command_1. Error out if there are not enough resources
6785 for a read or access hardware watchpoint.
6786 (watch_command_1): Remove logic of checking whether there are
6787 enough resources available, since update_watchpoint will do that
6788 work now. Don't set b->exact here. Catch exceptions thrown by
6789 update_watchpoint and delete the watchpoint.
6790 (can_use_hardware_watchpoint): Remove exact_watchpoints argument.
6791 Use target_exact_watchpoints instead.
6792 (delete_breakpoint): Notify observers only if deleted watchpoint
6793 has a breakpoint number assigned to it.
6794
4c67c798
JJ
67952011-05-05 Janis Johnson <janisjo@codesourcery.com>
6796
6797 * MAINTAINERS: Add myself as a write-after-approval maintainer.
6798
a3fcb948
JG
67992011-05-05 Jerome Guitton <guitton@adacore.com>
6800
6801 * i386-tdep.c (i386_in_stack_tramp_p, i386_stack_tramp_frame_sniffer):
6802 New functions.
6803 (i386_stack_tramp_frame_unwind): New static global.
6804 (i386_match_pattern): New function, extracted from i386_match_insn.
6805 (i386_match_insn): Use i386_match_pattern.
6806 (i386_match_insn_block): New function.
6807 (i386_tramp_chain_in_reg_insns)
6808 (i386_tramp_chain_on_stack_insns): New static variables.
6809 (i386_gdbarch_init): Add i386_stack_tramp_frame_unwind to list
6810 of unwinders.
6811
4d393d60
JM
68122011-05-04 Joseph Myers <joseph@codesourcery.com>
6813
6814 * configure.host (xscale*): Don't handle target.
6815 * configure.tgt (thumb*-*-* | strongarm*-*-* | xscale-*-*): Don't
6816 handle targets.
6817
f70bd40b
YQ
68182011-05-04 Yao Qi <yao@codesourcery.com>
6819
6820 * gdb_wait.h: remove WAITTYPE and WCOREDUMP.
6821
dd3295ee
JB
68222011-05-03 Joel Brobecker <brobecker@adacore.com>
6823
6824 Revert:
6825 | 2011-03-07 Michael Snyder <msnyder@vmware.com>
6826 | * elfread.c (elf_symtab_read): Stop memory leak.
6827
90375a0e
PM
68282011-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
6829
6830 * nto-tdep.c (nto_target): Replace deprecated call to
6831 cygwin_conv_to_posix_path functions by cygwin_conv_path calls.
6832
d07205c2
JK
68332011-05-03 Jan Kratochvil <jan.kratochvil@redhat.com>
6834
6835 Fix false GCC warning.
6836 * breakpoint.c (do_enable_breakpoint): Initialize orig_enable_state.
6837
1e718ff1
TJB
68382011-05-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
6839
6840 * breakpoint.c (update_watchpoint): Move code to change
6841 the enable state of breakpoint from here ...
6842 (do_enable_breakpoint): ... to here.
6843
35bef4fd
TT
68442011-04-26 Andrew Gontarek <andrewg@cray.com>
6845
78290264
PP
6846 * valprint.c (val_print_array_elements): Fixed poor performance
6847 of printing very large arrays with repeat_count_threshold set
6848 to unlimited. New comment.
35bef4fd 6849
38a714bb
TT
68502011-04-29 Tom Tromey <tromey@redhat.com>
6851
6852 * mi/mi-parse.c (mi_parse): Remove incorrect sizeof.
6853 (mi_parse): Likewise.
6854 * breakpoint.c (break_range_command): Use sizeof char*, not
6855 char**.
6856 (create_breakpoint): Likewise.
6857 (parse_breakpoint_sals): Likewise.
6858
eb73ad13
PA
68592011-04-29 Pedro Alves <pedro@codesourcery.com>
6860
6861 * linux-nat.c (linux_child_remove_fork_catchpoint)
6862 (linux_child_remove_vfork_catchpoint)
6863 (linux_child_remove_exec_catchpoint): New functions.
6864 (linux_target_install_ops): Install them.
6865
d65aec65
PM
68662011-04-29 Phil Muldoon <pmuldoon@redhat.com>
6867
6868 PR mi/12531
6869
6870 * varobj.c (install_default_visualizer): Do not install a
6871 visualizer if the varobj is CPLUS_FAKE_CHILD.
6872 (construct_visualizer): Likewise.
6873
165195f4
JK
68742011-04-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6875
6876 * symtab.c (expand_partial_symbol_name): New variable NCMP. Support
6877 case insensitive comparison.
6878
30852783
UW
68792011-04-28 Ulrich Weigand <ulrich.weigand@linaro.org>
6880
6881 * infrun.c (proceed): Revert previous change.
6882 (resume): Instead, handle the case of signal delivery while stepping
6883 off a breakpoint location here, and only if software single-stepping
6884 is used. Handle nested signals.
6885
7ff120b4
YQ
68862011-04-28 Yao Qi <yao@codesourcery.com>
6887
6888 * arm-tdep.c (copy_unmodified): Rename to ...
6889 (arm_copy_unmodified): .. this. New.
6890 (copy_preload): Move common part to ...
6891 (install_preload): .. this. New.
6892 (arm_copy_preload): New.
6893 (copy_preload_reg): Move common part to ...
6894 (install_preload_reg): ... this. New.
6895 (arm_copy_preload_reg): New.
6896 (copy_b_bl_blx): Move common part to ...
6897 (install_b_bl_blx): .. this. New.
6898 (arm_copy_b_bl_blx): New.
6899 (copy_bx_blx_reg): Move common part to ...
6900 (install_bx_blx_reg): ... this. New.
6901 (arm_copy_bx_blx_reg): New.
6902 (copy_alu_reg): Move common part to ...
6903 (install_alu_reg): ... this. New.
6904 (arm_copy_alu_reg): New.
6905 (copy_alu_shifted_reg): Move common part to ...
6906 (install_alu_shifted_reg): ... this. New.
6907 (copy_ldr_str_ldrb_strb): Move common part to ...
6908 (install_ldr_str_ldrb_strb): ... this. New.
6909 (arm_copy_ldr_str_ldrb_strb): New.
6910 (copy_copro_load_store): Move some common part to ...
6911 (install_copy_copro_load_store): ... this. New.
6912 (arm_copy_copro_load_store): New.
6913 (copy_svc): Delete.
6914 (arm_copy_svc): Renamed from copy_svc.
6915 (copy_undef): Delete.
6916 (arm_copy_undef): Renamed from copy_undef.
6917 (decode_ext_reg_ld_st): Delete.
6918 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
6919 (decode_svc_copro): Delete.
6920 (arm_decode_svc_copro): Renamed from decode_svc_copro.
6921 (copy_copro_load_store, copy_alu_imm): update callers.
6922 (copy_extra_ld_st, copy_block_xfer): Likewise.
6923 (decode_misc_memhint_neon, decode_unconditional): Likewise.
6924 (decode_miscellaneous, decode_dp_misc): Likewise.
6925 (decode_ld_st_word_ubyte, decode_media): Likewise.
6926 (decode_b_bl_ldmstm, decode_ext_reg_ld_st): Likewise.
6927 (decode_svc_copro, decode_misc_memhint_neon): Likewise.
6928 (decode_unconditional, decode_miscellaneous): Likewise.
6929 (decode_media, decode_b_bl_ldmstm): Likewise.
6930 (arm_process_displaced_insn): Likewise..
6931 (decode_misc_memhint_neon): Delete.
6932 (arm_decode_misc_memhint_neon): Renamed from decode_misc_memhint_neon.
6933 (decode_miscellaneous): Delete.
6934 (arm_decode_miscellaneous): Renamed from decode_miscellaneous.
6935 (decode_dp_misc): Delete.
6936 (arm_decode_dp_misc): Renamed from decode_dp_misc.
6937 (decode_ld_st_word_ubyte): Delete.
6938 (arm_decode_ld_st_word_ubyte): Renamed from decode_ld_st_word_ubyte.
6939 (decode_media): Delete.
6940 (arm_decode_media): Renamed from decode_media.
6941 (decode_b_bl_ldmstm): Delete.
6942 (arm_decode_b_bl_ldmstm): Renamed from decode_b_bl_ldmstm.
6943 (decode_ext_reg_ld_st): Delete.
6944 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
6945 (decode_unconditional): Delete.
6946 (arm_decode_unconditional): Renamed from decode_unconditional.
6947
559a7a62
JK
69482011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6949
6950 Case insensitive lookups implementation.
6951 * dwarf2read.c: Include ctype.h.
6952 (struct mapped_index): New field version.
6953 (mapped_index_string_hash): New parameter index_version. New comment
6954 for it. Call tolower appropriately.
6955 (find_slot_in_mapped_hash): New variable cmp, initialize it, use it.
6956 Choose the right index version for mapped_index_string_hash.
6957 (dwarf2_read_index): Support also the index version 5. Initialize the
6958 new struct mapped_index field version.
6959 (hash_strtab_entry): Pass INT_MAX for the new parameter, explain why.
6960 (find_slot): Explain the version needs. Pass INT_MAX for the new
6961 parameter.
6962 (write_psymtabs_to_index): Produce version 5.
6963 * minsyms.c (lookup_minimal_symbol): New variable cmp, initialize it,
6964 use it. New comment for SYMBOL_MATCHES_SEARCH_NAME.
6965 * psymtab.c (lookup_partial_symbol): Find the
6966 SYMBOL_MATCHES_SEARCH_NAME start of the found block of matching
6967 entries.
6968 * symtab.c (lookup_symbol_in_language): Remove the case_sensitive_off
6969 NAME lowercasing.
6970 (search_symbols): Pass REG_ICASE to regcomp for case_sensitive_off.
6971 (completion_list_add_name): New variable ncmp, initialize it, use it.
6972 * symtab.h (SYMBOL_HASH_NEXT): Always call tolower.
6973 * utils.c (strcmp_iw): Support case_sensitive_off.
6974 (strcmp_iw_ordered): Sort in a way compatible with case_sensitive_off.
6975 New function comment part. New variables saved_string1,
6976 saved_string2 and case_pass. Add a proper second pass.
6977
681bf369
JK
69782011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6979
6980 Replace re_comp/re_exec by regcomp/regexec.
6981 * symtab.c (struct search_symbols_data): New fields preg, preg_p.
6982 (search_symbols_name_matches): Use them, use regexec.
6983 (search_symbols): New variable retval_chain, adjust the use of
6984 old_chain against it. Replace re_comp by regcomp. Use the new struct
6985 search_symbols_data fields, use regexec instead of re_exec.
6986
b11b1f88
JK
69872011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6988
6989 Format the code for the next patch.
6990 * dwarf2read.c (struct mapped_index): Include delimiting newlines.
6991 * utils.c (strcmp_iw_ordered): Reformat the code for the next patch.
6992 New variables c1 and c2.
6993
2484c66b
UW
69942011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
6995
6996 * infrun.c (proceed): Do not single-step into signal delivery
6997 when stepping off a breakpoint location.
6998 (insert_step_resume_breakpoint_at_frame): Move prototype earlier.
6999 (insert_step_resume_breakpoint_at_caller): Likewise.
7000 (insert_step_resume_breakpoint_at_sal): Likewise.
7001 (insert_longjmp_resume_breakpoint): Likewise.
7002
47423772
YQ
70032011-04-27 Yao Qi <yao@codesourcery.com>
7004
7005 * common/linux-ptrace.h: Remove include <sys/wait.h>.
7006
13bdd2e7
JB
70072011-04-27 Joel Brobecker <brobecker@adacore.com>
7008
7009 * procfs.c (procfs_pass_signals): Fix advance declaration.
7010
2455069d
UW
70112011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
7012
7013 * target.h (struct target_ops): Remove to_notice_signals;
7014 add to_pass_signals.
7015 (target_notice_signals): Remove.
7016 (target_pass_signals): Add prototype.
7017 * target.c (update_current_target): Remove to_notice_signals;
7018 mention to_pass_signals.
7019 (target_pass_signals): New function.
7020 (debug_to_notice_signals): Remove.
7021 (setup_target_debug): Do not install debug_to_notice_signals.
7022
7023 * infrun.c (signal_pass): New global.
7024 (resume): Call target_pass_signals.
7025 (handle_inferior_event): Report all signals while stepping over
7026 non-steppable watchpoint. Reset trap_expected to ensure breakpoints
7027 are re-inserted when stepping over a signal handler.
7028 (signal_cache_update): New function.
7029 (signal_stop_update): Call it.
7030 (signal_print_update): Likewise.
7031 (signal_pass_update): Likewise.
7032 (handle_command): Call signal_cache_update and target_pass_signals
7033 instead of target_notice_signals.
7034 (_initialize_infrun): Initialize signal_pass.
7035
7036 * linux-nat.c (pass_mask): New global.
7037 (linux_nat_pass_signals): New function.
7038 (linux_nat_create_inferior): Report all signals initially.
7039 (linux_nat_attach): Likewise.
7040 (linux_nat_resume): Use pass_mask to decide whether to directly
7041 handle an inferior signal.
7042 (linux_nat_wait_1): Likewise.
7043 (linux_nat_add_target): Install to_pass_signals callback.
7044
7045 * nto-procfs.c (notice_signals): Remove.
7046 (procfs_resume): Do not call notice_signals.
7047 (procfs_notice_signals): Remove.
7048 (procfs_pass_signals): New function.
7049 (init_procfs_ops): Install to_pass_signals callback instead of
7050 to_notice_signals callback.
7051 (_initialize_procfs): Report all signals initially.
7052
7053 * procfs.c (procfs_notice_signals): Remove.
7054 (procfs_pass_signals): New function.
7055 (procfs_target): Install to_pass_signals callback instead of
7056 to_notice_signals callback.
7057 (register_gdb_signals): Remove.
7058 (procfs_debug_inferior): Report all signals initially.
7059 (procfs_init_inferior): Remove redundant register_gdb_signals call.
7060
7061 * remote.c (remote_pass_signals): Add numsigs and pass_signals
7062 parameters; use them instead of calling signal_..._state routines.
7063 (remote_notice_signals): Remove.
7064 (remote_start_remote): Report all signals initially.
7065 (remote_resume): Do not call remote_pass_signals.
7066 (_initialize_remote): Install to_pass_signals callback instead of
7067 to_notice_signals callback.
7068
46c6471b
PA
70692011-04-27 Pedro Alves <pedro@codesourcery.com>
7070
7071 * breakpoint.c (user_settable_breakpoint): Delete.
7072 (user_breakpoint_p): Remove check on user_settable_breakpoint.
7073 (delete_command): Check user_breakpoint_p instead of looking at
7074 the breakpoint's type.
7075 (disable_command): Ditto.
7076 (enable_command): Ditto.
7077 (delete_trace_command): Use user_breakpoint_p instead of looking
7078 at the breakpoint number directly. When checking if there are
7079 user visible tracepoints, in order to know whether to ask the user
7080 for confirmation, check whether the breakpoint is actually a
7081 tracepoint.
7082
f6d90398
VP
70832011-04-27 Vladimir Prus <vladimir@codesourcery.com>
7084
7085 * python/py-breakpoint.c (gdbpy_breakpoint_created): Fix
7086 compilation.
7087
8d3788bd
VP
70882011-04-27 Vladimir Prus <vladimir@codesourcery.com>
7089
7090 MI breakpoint notifications.
7091
f33edef8
PP
7092 * annotate.c (breakpoint_changed): Adjust parameter type.
7093 * breakpoint.c (set_breakpoint_condition): Adjust to change
7094 in breakpoint_modified type.
7095 (breakpoint_set_commands): Likewise.
7096 (do_map_commands_command): Likewise.
7097 (bpstat_check_breakpoint_conditions): Notify that breakpoint has
7098 changed after bumping hit count.
7099 (bpstat_stop_status): Likewise.
7100 (print_one_breakpoint_location): Don't wrap in tuple here.
7101 (print_one_breakpoint): Always print individual locations.
7102 For locations, use unnamed tuple.
7103 (disable_breakpoints_in_unloaded_shlib): Notify that breakpoint
7104 has changed.
7105 (create_catchpoint, create_syscall_event_catchpoint): Call
7106 breakpoint_created obsever.
7107 (mention): Don't call breakpoint_created observer.
7108 (create_breakpoint_sal): Call breakpoint_created observer.
7109 (create_breakpoint, watch_command_1): Likewise.
7110 (create_ada_exception_breakpoint): Likewise.
7111 (delete_breakpoint): Call breakpoint_deleted breakpoint.
7112 (locations_are_equal): New.
7113 (update_breakpoint_locations): If locations were changed, notify.
7114 (set_ignore_count, disable_breakpoint, do_enable_breakpoint):
7115 Call breakpoint_modified observer.
7116
7117 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
7118 (mi_cmd_break_insert): Don't set observers for modify and delete.
7119 * mi/mi-interp.c (mi_suppress_breakpoint_notifications): New.
7120 (mi_breakpoint_created, mi_breakpoint_deleted)
7121 (mi_breakpoint_modified): New.
7122 (mi_interpreter_init): Hook the above.
7123 * mi/mi-main.c (mi_cmd_execute): Disable breakpoint notifications
7124 while -break-* commands are executing.
7125 * mi/mi-main.h (mi_suppress_breakpoint_notifications): New.
7126 * mi/mi-out.c (struct ui_out_data): New field original_buffer.
7127 (mi_redirect): New.
7128 (mi_ui_out_impl): Hook in mi_redirect.
7129 (mi_field_skip): True to the name, skip the field, don't output
7130 a field with an empty value.
7131
7132 * python/py-breakpoint.c (gdbpy_breakpoint_created)
7133 (gdbpy_breakpoint_deleted): Adjust.
7134 * tui/tui-hooks.c (tui_event_create_breakpoint)
7135 (tui_event_delete_breakpoint, tui_event_modify_breakpoint): Adjust.
8d3788bd 7136
a8f42b45
UW
71372011-04-26 Aleksandar Ristovski <aristovski@qnx.com>
7138
7139 * nto-procfs.c (procfs_insert_hw_watchpoint): Fix prototype.
7140 (procfs_remove_hw_watchpoint): Likewise.
7141
57e12211
TT
71422011-04-26 Michael Walle <michael@walle.cc>
7143
7144 * remote.c (remote_start_remote): Ack packet after sending the
7145 interrupt sequence.
7146
af96c192
YQ
71472011-04-26 Yao Qi <yao@codesourcery.com>
7148
f33edef8
PP
7149 * linux-nat.c: Move common macros to ...
7150 Include linux-ptrace.h.
7151 * common/linux-ptrace.h: ... here. New.
af96c192 7152
3e03848b
JK
71532011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
7154
7155 * elfread.c (elf_symfile_read): Protect dwarf2_initialize_objfile by
7156 !objfile_has_partial_symbols. New comment.
7157 * objfiles.c (objfile_has_partial_symbols): Call HAS_SYMBOLS if
7158 SYM_READ_PSYMBOLS is not present. Extend the comment.
7159 * symfile.h (struct sym_fns): Extend the sym_read_psymbols comment.
7160
1ae0d051
JK
71612011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
7162
7163 * defs.h (ENUM_BITFIELD): Remove.
7164
03f2bd59
JK
71652011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
7166 Eli Zaretskii <eliz@gnu.org>
7167
7168 * NEWS: Document the new gdbserver --once option.
7169
4161fbb0
JZ
71702011-04-21 Jie Zhang <jzhang918@gmail.com>
7171
7172 * MAINTAINERS: Update my email address.
7173
bcb28afc
PM
71742011-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
7175
7176 * gdb_wchar.h (USE_INTERMEDIATE_ENCODING_FUNCTION): New macro.
7177 (INTERMEDIATE_ENCODING): Change value to intermediate_encoding
7178 function call if __STDC_ISO_10646__ macro is defined.
7179 (intermediate_encoding): New prototype.
7180 * charset.c (your_gdb_wchar_t_is_bogus): New extern test variable
7181 to generate compile time error for unsupported gdb_wchar_t size.
7182 (ENDIAN_SUFFIX): New macro.
7183 (intermediate_encoding): New function.
7184
7b08b9eb
JK
71852011-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
7186
7187 * ada-lang.c (struct add_partial_datum): Update the comment for
7188 expand_partial_symbol_name.
7189 (ada_add_partial_symbol_completions): Rename to ...
7190 (ada_expand_partial_symbol_name): ... here, change return type, update
7191 function comment, call symbol_completion_match instead of
7192 symbol_completion_add.
7193 (ada_make_symbol_completion_list): Use now expand_partial_symbol_names
7194 and ada_expand_partial_symbol_name.
7195 * dwarf2read.c (dw2_expand_symtabs_matching): Support NULL
7196 FILE_MATCHER.
7197 (dw2_map_symbol_names): Remove.
7198 (dwarf2_gdb_index_functions): Unlist dw2_map_symbol_names.
7199 * psymtab.c (map_symbol_names_psymtab): Remove.
7200 (expand_symtabs_matching_via_partial): Support NULL FILE_MATCHER.
7201 Support KIND == ALL_DOMAIN. Exchange the NAME_MATCHER and KIND check
7202 order.
7203 (psym_functions): Unlist map_symbol_names_psymtab.
7204 (map_partial_symbol_names): Rename to ...
7205 (expand_partial_symbol_names): ... here, change the FUN type, call
7206 expand_symtabs_matching with ALL_DOMAIN and NULL FILE_MATCHER now.
7207 * psymtab.h (map_partial_symbol_names): Rename to ...
7208 (expand_partial_symbol_names): ... here, change the FUN type.
7209 * symfile.h (struct quick_symbol_functions): Update the description of
7210 expand_symtabs_matching. Remove map_symbol_names.
7211 * symtab.c (search_symbols): Add ALL_DOMAIN to the function comment.
7212 (struct add_name_data): Update the comment for
7213 expand_partial_symbol_name.
7214 (add_partial_symbol_name): Rename to ...
7215 (expand_partial_symbol_name): ... here. Replace
7216 completion_list_add_name call by strncmp.
7217 (default_make_symbol_completion_list_break_on): Use now
7218 expand_partial_symbol_names and expand_partial_symbol_name.
7219 * symtab.h (enum search_domain): New element ALL_DOMAIN.
7220
90476074
TT
72212011-04-20 Tom Tromey <tromey@redhat.com>
7222
7223 * dwarf2read.c (save_gdb_index_command): Replace format
7224 documentation with a pointer to the manual.
7225
c21236dc
PA
72262011-04-20 Pedro Alves <pedro@codesourcery.com>
7227
7228 * regcache.c: Include remote.h.
7229 (enum regcache_dump_what) <regcache_dump_remote>: New enum value.
7230 (regcache_dump): Handle regcache_dump_remote.
7231 (maintenance_print_remote_registers): New function.
7232 (_initialize_regcache): Install "maint print remote-registers"
7233 command.
7234 * remote.c (map_regcache_remote_table): New function, factored out
7235 from ...
7236 (init_remote_state): ... here.
7237 (remote_register_number_and_offset): New.
7238 * remote.h (remote_register_number_and_offset): Declare.
7239
b78974c3
PA
72402011-04-20 Pedro Alves <pedro@codesourcery.com>
7241
7242 * regcache.c (get_thread_arch_regcache): If creating a regcache for
7243 null_ptid, assume and allow a NULL address space, instead of
7244 asking the target for the ptid's address space.
7245 * infrun.c (ptid_is_pid): Remove assertion.
7246
7a9dd1b2
TT
72472011-04-19 Tom Tromey <tromey@redhat.com>
7248
7249 * windows-tdep.c (windows_xfer_shared_library):
7250 * windows-nat.c (get_module_name, windows_make_so):
7251 * v850-tdep.c (v850_handle_pushm):
7252 * utils.c (null_cleanup, gdb_realpath):
7253 * ui-out.c (get_next_header):
7254 * tracepoint.c (clear_traceframe_info):
7255 * symtab.c (lookup_symtab):
7256 * serial.h (struct serial_ops):
7257 * mipsread.c (read_alphacoff_dynamic_symtab):
7258 * infcmd.c (print_return_value):
7259 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address):
7260 * f-exp.y (parse_number):
7261 * exceptions.c (catch_exceptions):
7262 * dummy-frame.c (dummy_frame_this_id):
7263 * defs.h (struct cleanup):
7264 * breakpoint.c (disable_breakpoints_in_unloaded_shlib):
7265 * arm-tdep.c (arm_push_dummy_call):
7266 * amd64-tdep.h (amd64_collect_xsave):
7267 * amd64-tdep.c (amd64_collect_xsave):
7268 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache):
7269 * README (typing): Remove duplicate words.
7270 * cli/cli-decode.c (lookup_cmd_composition): Add comma.
7271 * infrun.c (siginfo_value_read): Fix typo.
7272 * solib-frv.c (frv_fdpic_find_global_pointer): Likewise.
7273 * top.c (source_line_number): Add comma.
7274
9941e0c5
MK
72752011-04-19 Marc Khouzam <marc.khouzam@ericsson.com>
7276
7277 * thread.c (any_live_thread_of_process): Prioritize threads
7278 that are not executing.
7279 * gdbthread.h (any_live_thread_of_process): Update comment
7280 as per above change.
7281
ed4b0e6a
AS
72822011-04-19 Andreas Schwab <schwab@linux-m68k.org>
7283
7284 * xcoffread.c (process_xcoff_symbol): Remove useless cast.
7285 (scan_xcoff_symtab): Likewise.
7286
9b13a2db
PM
72872011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
7288
7289 * xcoffread.c (process_xcoff_symbol): ARI fix: Avoid assignment
7290 inside if clause.
7291
1c6e1b0d
PM
72922011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
7293 Pedro Alves <pedro@codesourcery.com>
7294
7295 * xstormy16-tdep.c (xstormy16_push_dummy_call): Add local
7296 variables to simplify code and avoid == operator at end of
7297 line as this is against GNU coding standards.
7298
74de0234
PM
72992011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
7300
7301 * solib-svr4.c (svr4_keep_data_in_core): Rename local variable
7302 lm_name to name_lm to avoid conflict with lm_name function.
7303
b23518f0
PM
73042011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
7305
7306 ARI fixes: Use only lowercase function name for static functions.
7307 * nto-tdep.c (LM_ADDR): Rename to...
7308 (lm_addr): New function name.
7309 (nto_relocate_section_addresses): Adapt to change above.
7310 * solib-sunos.c (LM_ADDR): Rename to...
7311 (lm_addr): New function name.
7312 (LM_NEXT): Rename to...
7313 (lm_next): New function name.
7314 (sunos_current_sos, sunos_relocate_section_addresses): Adapt to
7315 function name changes above.
7316 * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Rename to...
7317 (lm_addr_from_link_map): New function name.
7318 (HAS_LM_DYNAMIC_FROM_LINK_MAP): Rename to...
7319 (has_lm_dynamic_from_link_map): New function name.
7320 (LM_DYNAMIC_FROM_LINK_MAP): Rename to...
7321 (lm_dynamic_from_link_map): New function name.
7322 (LM_ADDR_CHECK): Rename to...
7323 (lm_addr_check): New function name.
7324 (LM_NEXT): Rename to...
7325 (lm_next): New function name.
7326 (LM_PREV): Rename to...
7327 (lm_prev): New function name.
7328 (LM_NAME): Rename to...
7329 (lm_name): New function name.
7330 (IGNORE_FIRST_LINK_MAP_ENTRY): Rename to...
7331 (ignore_first_link_map_entry): New function name.
7332 (svr4_keep_data_in_core): Adapt to function name changes above.
7333 (svr4_current_sos): Likewise.
7334 (enable_break): Likewise.
7335 (svr4_relocate_section_addresses): Likewise.
7336
1448a0a2
PM
73372011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
7338
7339 ARI cleanup.
7340 * xtensa-tdep.c (xtensa_register_type): Use xstrprintf instead of
7341 sprintf. Simplify code and avoid loosing memory.
7342 (xtensa_register_reggroup_p): Extract assignment out of IF clause.
7343 (call0_frame_cache): Remove && operator from end of line.
7344
02835898
JK
73452011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7346
7347 Fix libraries displacement if they change whether they were prelinked.
7348 * solib-svr4.c (LM_ADDR_CHECK): Set L_ADDR even if the DYNAMIC pointer
7349 does not match. Comment why.
7350
9a845ea2
JK
73512011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7352
7353 * corelow.c: Include wrapper.h.
7354 (core_open): Call now gdb_target_find_new_threads.
7355 * wrapper.c: Include target.h.
7356 (gdb_target_find_new_threads): New.
7357 * wrapper.h (gdb_target_find_new_threads): New declaration.
7358
254f582e
JK
73592011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7360
7361 * linux-thread-db.c (find_new_threads_callback): Exit on zero TI_TID
7362 even if !TARGET_HAS_EXECUTION.
7363
63524580
JK
73642011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7365
7366 Fix convert_code_addr_to_desc_addr for ppc64 files after eu-strip.
7367 * elfread.c (elf_symfile_read): New variable synth_abfd, pass it to
7368 bfd_get_synthetic_symtab.
7369 * jit.c (jit_register_code): Pass NULL to the new parameter parent.
7370 * machoread.c (macho_add_oso_symfile): Pass main_objfile to the new
7371 parameter parent, remove the call to add_separate_debug_objfile.
7372 * solib.c (solib_read_symbols): Pass NULL to the new parameter parent.
7373 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
7374 * symfile.c (symbol_file_add_with_addrs_or_offsets): New parameter
7375 parent, new comment for it, call add_separate_debug_objfile for it.
7376 (symbol_file_add_separate): Pass objfile as the parameter parent,
7377 remove the call to add_separate_debug_objfile.
7378 (symbol_file_add_from_bfd): New parameter parent, pass it.
7379 (symbol_file_add): Pass NULL to the new parameter parent.
7380 * symfile.h (symbol_file_add_from_bfd): New parameter parent.
7381
90359a16
JK
73822011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7383
7384 * elfread.c (elf_symtab_read): Do not ignore .L symbols if they are
7385 BSF_SYNTHETIC.
7386
626e7282
JK
73872011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7388
7389 Fix Python access to inlined frames.
7390 * python/py-frame.c (frapy_read_var): Find BLOCK using get_frame_block.
7391 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
7392
cf31e6f9
TT
73932011-04-15 Tom Tromey <tromey@redhat.com>
7394
7395 * dwarf2read.c (add_index_entry): Use VEC_last, not VEC_length.
7396
c8d895f1
GB
73972011-04-15 Gary Benson <gbenson@redhat.com>
7398
7399 * MAINTAINERS: Add myself to write-after-approval section.
7400
56a9aa1d
MF
74012011-04-14 Mike Frysinger <vapier@gentoo.org>
7402
7403 * remote-sim.c (sim_command_completer): New function.
7404 (_initialize_remote_sim): Set completer to sim_command_completer.
7405
ba770c9c
TJB
74062011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
7407
7408 * breakpoint.c (print_exception_catchpoint): Rename to ...
7409 (print_it_exception_catchpoint): ... this.
7410 (gnu_v3_exception_catchpoint_ops): Update with new name
7411 for print_it_exception_catchpoint.
7412
51bf2553
EBM
74132011-04-13 Edjunior Machado <emachado@linux.vnet.ibm.com>
7414
7415 * MAINTAINERS: Add myself for write after approval privileges.
7416
d242658c
MP
74172011-04-13 Marek Polacek <mpolacek@redhat.com>
7418
7419 * MAINTAINERS: Add myself as a write-after-approval maintainer.
7420
4a4106ca
TJB
74212011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
7422
7423 * breakpoint.c (watch_command_1): Remove colon from exp_string.
7424
26063d49
TJB
74252011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
7426
7427 * breakpoint.c (save_breakpoints): Verify whether
7428 breakpoint_ops.print_recreate is defined before calling it.
7429
7782b183
GB
74302011-04-11 Gary Benson <gbenson@redhat.com>
7431
7432 Fix failure with --enable-maintainer-mode.
7433 * Makefile.in (aclocal_m4_deps): Updated gnulib dependencies.
7434
e8930875
JK
74352011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7436
7437 Code cleanup.
7438 * symtab.c (search_symbols): Reorder the KIND description in the
7439 function comment. Remove the unused 4th element of types, types2,
7440 types3 and types4. New gdb_assert on KIND.
7441 (symtab_symbol_info): Remove the unused 4th element of classnames.
7442 New gdb_assert on KIND.
7443 * symtab.h (enum search_domain): New warning in the enum comment.
7444 Assign numbers to the elements VARIABLES_DOMAIN, FUNCTIONS_DOMAIN and
7445 TYPES_DOMAIN.
7446
b4f2f049
JK
74472011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7448
7449 Fix crash of gdb save-index on a STABS file.
7450 * dwarf2read.c (write_psymtabs_to_index): Return also on no
7451 PSYMTABS_ADDRMAP.
7452
60d5a603
JK
74532011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7454
7455 Fix DW_AT_accessibility compatibility with gcc-4.6+.
7456 * dwarf2read.c: Include ctype.h.
7457 (producer_is_gxx_lt_4_6, dwarf2_default_access_attribute): New
7458 functions.
7459 (dwarf2_add_field): Fix new_field->accessibility by calling
7460 dwarf2_default_access_attribute. Restructure setting accessibility
7461 vs. virtuality.
7462 (dwarf2_add_member_fn): New variable accessibility. Fix fnp
7463 is_private and is_protected by calling
7464 dwarf2_default_access_attribute.
7465
e0f68161
KB
74662011-04-08 Kevin Buettner <kevinb@redhat.com>
7467
7468 * rx-tdep.c (rx_frame_unwind): Add default_frame_unwind_stop_reason
7469 to the initialization.
7470
2e1aae43
SE
74712011-04-08 Steve Ellcey <sje@cup.hp.com>
7472
7473 * Add default_frame_unwind_stop_reason value to libunwind_frame_unwind
7474 initalization.
7475
c6ca3dab
PM
74762011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
7477
7478 Remove support for old Cygwin 1.5 versions.
7479 * remote-fileio.c: Remove macros used to emulate new cygwin_conv_path
7480 function on old Cygwin version.
7481 * windows-nat.c: Remove cygwin version check and always define
7482 __USEWIDE for Cygwin compilation.
7483
bd18283a
YQ
74842011-04-07 Yao Qi <yao@codesourcery.com>
7485
7486 * arm-linux-tdep.c (arm_linux_copy_svc): Remove parameters INSN
7487 and TO.
7488 * arm-tdep.c (cleanup_svc): Handle variable instruction size.
7489 (arm_copy_svc): Remove parameters INSN and TO.
7490 (decode_svc_copro): Update caller.
7491 * arm-tdep.h (struct displaced_step_closure): Remove parameters
7492 from function pointer `copy_svc_os'.
7493
8c8dba6d
YQ
74942011-04-07 Yao Qi <yao@codesourcery.com>
7495
7496 * arm-tdep.c (cleanup_branch): Set a correct return address in
7497 LR for ARM and Thumb.
7498
59d7bcaf
JK
74992011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
7500
7501 Code cleanup.
7502 * dictionary.c (dict_hash): Use SYMBOL_HASH_NEXT.
7503 * dwarf2read.c (mapped_index_string_hash): Refer to SYMBOL_HASH_NEXT
7504 in the function comment, a new note on values compatibility.
7505 * minsyms.c (msymbol_hash_iw, msymbol_hash): Use SYMBOL_HASH_NEXT.
7506 * symtab.h (SYMBOL_HASH_NEXT): New.
7507
e7db58ea
TJB
75082011-04-06 Thiago Jung Bauermann <bauerman@br.ibm.com>
7509
7510 * ppc-linux-nat.c (check_condition): Add len output parameter.
7511 Set it based on the memory region referenced in the condition
7512 expression. Update all callers.
7513
9f743ef6
JK
75142011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
7515
7516 Fix crash regression on systems featuring .gdb_index.
7517 * objfiles.c (free_objfile): Move the
7518 forget_cached_source_info_for_objfile call earlier. Comment it.
7519 Extend the comment for objfile_free_data.
7520
9182c5bc
JK
75212011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
7522
7523 Fix regression of displaying the debug format.
7524 * buildsym.c (end_symtab): Set symtab's debugformat and producer from
7525 subfile.
7526
04bd08de
TT
75272011-04-04 Tom Tromey <tromey@redhat.com>
7528
7529 * cli/cli-interp.c (struct captured_execute_command_args):
7530 Remove.
7531 (do_captured_execute_command): Remove.
7532 (safe_execute_command): Use TRY_CATCH.
7533 * cli/cli-script.c (struct wrapped_read_command_file_args):
7534 Remove.
7535 (wrapped_read_command_file): Remove.
7536 (script_from_file): Use TRY_CATCH.
7537 * exceptions.c (catch_exception): Remove.
7538 * exceptions.h (catch_exception): Remove.
7539 (deprecated_throw_reason): Update comment.
7540 * mi/mi-main.c (captured_mi_execute_command): Change 'data'
7541 argument to 'context'.
7542 (mi_execute_command): Use TRY_CATCH.
7543 * remote.c (struct start_remote_args): Remove.
7544 (remote_start_remote): Update; change arguments.
7545 (remote_open_1): Use TRY_CATCH.
7546
58438ac1
TT
75472011-04-04 Tom Tromey <tromey@redhat.com>
7548
7549 * tracepoint.c (scope_info): Update.
7550 * symtab.c (decode_line_spec): Update.
7551 * python/python.c (gdbpy_decode_line): Update.
7552 * linespec.h (decode_line_1): Update.
7553 * linespec.c (decode_line_1): Remove 'not_found_ptr' argument.
7554 (decode_compound, find_method, symtab_from_filename)
7555 (decode_variable): Likewise.
7556 * cli/cli-cmds.c (edit_command): Update.
7557 (list_command): Update.
7558 * breakpoint.c (parse_breakpoint_sals): Remove 'not_found_ptr'
7559 argument.
7560 (create_breakpoint): Update.
7561 (until_break_command): Update.
7562 (addr_string_to_sals): Update.
7563 (decode_line_spec_1): Update.
7564
b78a6381
TT
75652011-04-04 Tom Tromey <tromey@redhat.com>
7566
7567 * breakpoint.c (struct captured_parse_breakpoint_args): Remove.
7568 (do_captured_parse_breakpoint): Remove.
7569 (create_breakpoint): `e' is now volatile. Remove `parse_args'.
7570 Use TRY_CATCH directly.
7571
00174a86
TT
75722011-04-04 Tom Tromey <tromey@redhat.com>
7573
7574 * symtab.h (free_symtab): Remove.
7575 (forget_cached_source_info_for_objfile): Declare.
7576 * symmisc.c (free_symtab): Remove.
7577 * source.c (forget_cached_source_info_for_objfile): New function.
7578 (forget_cached_source_info): Use it.
7579 * objfiles.c (free_objfile): Simplify check before calling
7580 clear_current_source_symtab_and_line. Call
7581 forget_cached_source_info_for_objfile.
7582
30cc903e
TT
75832011-04-04 Tom Tromey <tromey@redhat.com>
7584
7585 * mdebugread.c (psymtab_to_symtab_1): Copy linetable to obstack.
7586 (new_symtab): Don't set `free_code' on symtab.
7587 (new_linetable): Properly handle size==0.
7588 * symtab.h (struct symtab) <free_code, free_func>: Remove.
7589 * symmisc.c (free_symtab): Don't free the linetable. Don't call
7590 free_func.
7591 * jv-lang.c (struct jv_per_objfile_data): New.
7592 (jv_per_objfile_free): Free the data.
7593 (get_dynamics_objfile): Allocate a jv_per_objfile_data.
7594 (get_java_class_symtab): Set the `dict' field on the
7595 jv_per_objfile_data.
7596 (free_class_block): Remove.
7597 * buildsym.c (end_symtab): Don't set `free_code' or `free_func' on
7598 the symtab.
7599
0c2e6019
TT
76002011-04-04 Tom Tromey <tromey@redhat.com>
7601
7602 * symfile.c (reread_symbols): Update.
7603 * objfiles.h (struct objfile) <cp_namespace_symtab>: Remove
7604 field.
7605 * objfiles.c (allocate_objfile): Update.
7606 * cp-support.h (cp_check_possible_namespace_symbols): Don't
7607 declare.
7608 * cp-namespace.c (lookup_symbol_file): Don't call
7609 lookup_possible_namespace_symbol.
7610 (initialize_namespace_symtab, get_possible_namespace_block)
7611 (free_namespace_block, cp_check_possible_namespace_symbols)
7612 (check_possible_namespace_symbols_loop)
7613 (check_one_possible_namespace_symbol)
7614 (lookup_possible_namespace_symbol): Remove.
7615 (maintenance_cplus_namespace): Replace with notice.
7616 (_initialize_cp_namespace): Deprecate `maint cplus namespace'.
7617
554d387d
TT
76182011-04-04 Tom Tromey <tromey@redhat.com>
7619
7620 * xcoffread.c (read_xcoff_symtab): Make `debugfmt' const.
7621 * symtab.h (struct symtab) <producer, debugformat>: Now const.
7622 * symmisc.c (free_symtab): Don't free debugformat.
7623 * buildsym.h (struct subfile) <producer, debugformat>: Now const.
7624 (record_debugformat, record_producer): Document.
7625 * buildsym.c (end_symtab): Don't save debugformat and producer
7626 names on obstack.
7627 (end_symtab): Don't free debugformat and producer fields.
7628 (record_debugformat): Don't call xstrdup.
7629 (record_producer): Likewise.
7630
d4d4db8a
TT
76312011-04-04 Tom Tromey <tromey@redhat.com>
7632
7633 * source.c (find_source_lines): Remove LSEEK_NOT_LINEAR code.
7634 (source_line_charpos, source_charpos_line): Remove.
7635
8903c50d
TT
76362011-04-04 Tom Tromey <tromey@redhat.com>
7637
7638 * symtab.h (domain_enum): Split in two...
7639 (enum search_domain): New.
7640 (search_symbols): Update.
7641 * symtab.c (print_symbol_info, symtab_symbol_info): Remove
7642 redundant declarations.
7643 (search_symbols): Change 'kind' argument to search_domain.
7644 Update.
7645 (print_symbol_info): Likewise.
7646 (symtab_symbol_info): Likewise.
7647 * symfile.h (struct quick_symbol_functions)
7648 <pre_expand_symtabs_matching>: Change type of 'kind' argument.
7649 <expand_symtabs_matching>: Likewise.
7650 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Update.
7651 (expand_symtabs_matching_via_partial): Update.
7652 * dwarf2read.c (dw2_pre_expand_symtabs_matching): Update.
7653 (dw2_expand_symtabs_for_function): Update.
7654 * block.h: Moved anonymous enum...
7655 * defs.h (enum block_enum): ... here. Now named.
7656
d9351f5f 76572011-04-03 Joel Brobecker <brobecker@adacore.com>
7658
7659 GDB 7.3 branch created (branch timestamp: 2011-04-01 01:00 UTC)
7660 * version.in: Bump version to 7.3.50.20110403-cvs.
7661
d6e00af6
JB
76622011-04-03 Joel Brobecker <brobecker@adacore.com>
7663
7664 * NEWS: Create a new section for the next release branch.
7665 Rename the section of the current branch, now that it has
7666 been cut.
7667
2b9e5ea6
UW
76682011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
7669
7670 * arm-tdep.c (arm_gdbarch_init): Enfore correct register number
7671 for "fpscr" in target description.
7672
0cf03b49
JK
76732011-04-01 Jan Kratochvil <jan.kratochvil@redhat.com>
7674
7675 * dwarf2read.c (find_slot_in_mapped_hash): New variable back_to,
7676 initialize it. Delay HASH initialization. Strip the part after open
7677 parenthesis for languages with qualifiers. Call do_cleanups.
7678
5d901a73
TT
76792011-04-01 Tom Tromey <tromey@redhat.com>
7680
7681 * utils.c (report_command_stats): Don't print `-' for negative
7682 number.
7683
b0dd7688
JB
76842011-04-01 Eric Botcazou <ebotcazou@adacore.com>
7685
7686 * ada-lang.c (ada_is_simple_array_type, ada_value_slice_from_ptr)
7687 (ada_value_slice, empty_array, to_fixed_array_type): Deal with
7688 typedefs.
7689
956a9fb9
JB
76902011-04-01 Joel Brobecker <brobecker@adacore.com>
7691
7692 * breakpoint.h (bpdisp_text): Add declaration.
7693 * breakpoint.c (bpdisp_text): Make non-static.
7694 * ada-lang.c: #include "mi/mi-common.h".
7695 (print_it_exception): Rewrite to improve GDB/MI output.
7696
3352110b
PA
76972011-04-01 Pedro Alves <pedro@codesourcery.com>
7698
7699 * arm-tdep.h (struct address_space): Add forward declaration.
7700
18819fa6
UW
77012011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
7702
7703 * arm-tdep.h (arm_insert_single_step_breakpoint): Add prototype.
7704 * arm-tdep.c (arm_override_mode): New global.
7705 (arm_pc_is_thumb): Respect arm_override_mode. Remove single-step
7706 execution mode heuristics.
7707 (thumb_get_next_pc_raw): Remove INSERT_BKTP argument; always insert
7708 second single-step breakpoint if needed, using
7709 arm_insert_single_step_breakpoint.
7710 (arm_get_next_pc_raw): Remove INSERT_BKTP argument. Only handle
7711 ARM execution mode, do not call thumb_get_next_pc_raw.
7712 (arm_get_next_pc): Encode execution mode in return value. Call
7713 either arm_get_next_pc_raw or thumb_get_next_pc_raw.
7714 (arm_insert_single_step_breakpoint): New function.
7715 (arm_software_single_step): Call it.
7716 * arm-linux-tdep.c (arm_linux_sigreturn_return_addr): Add IS_THUMB
7717 argument to return execution mode of sigreturn target.
7718 (arm_linux_syscall_next_pc): Use it.
7719 (arm_linux_copy_svc): Update call.
7720 (arm_linux_software_single_step): Call
7721 arm_insert_single_step_breakpoint.
7722
a6e293d1
JK
77232011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
7724
7725 * dwarf2read.c (dwarf2_read_index): Fix .gdb_index version number in
7726 the comment.
7727
a4c8e806
TT
77282011-03-31 Tom Tromey <tromey@redhat.com>
7729
7730 * varobj.c (update_dynamic_varobj_children): Properly handle
7731 errors from iterator.
7732
df5c6c50
JK
77332011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
7734
7735 * dwarf2read.c (dwarf2_name): Initialize DEMANGLED. Avoid demangling
7736 struct linkage name twice.
7737
1dae3efc
TT
77382011-03-31 Tom Tromey <tromey@redhat.com>
7739
7740 * python/py-prettyprint.c (print_stack_unless_memory_error): Add
7741 missing ">" to message.
7742
f4f7ab05
TT
77432011-03-31 Tom Tromey <tromey@redhat.com>
7744
7745 * varobj.c (instantiate_pretty_printer): Remove duplicate
7746 'return'.
7747
fcf250e2
UW
77482011-03-31 Ulrich Weigand <ulrich.weigand@linaro.org>
7749
7750 * i386-tdep.c (i386_frame_prev_register): Unwind SP from memory
7751 if neither saved value nor register available (e.g. signal frame).
7752
ee6436e3
TJB
77532011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
7754
7755 * macroexp.c (expand): Avoid uninitialized variable
7756 compiler warning.
7757
423f41a5
TJB
77582011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
7759
7760 * breakpoint.c (break_range_command): Fix typo in comment.
7761
f1310107
TJB
77622011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
7763 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
7764
7765 Implement support for PowerPC BookE ranged breakpoints.
7766 * NEWS: Mention support for ranged breakpoints on embedded PowerPC.
7767 * breakpoint.h (struct bp_target_info) <length>: New member
7768 variable.
7769 (struct breakpoint_ops) <breakpoint_hit>: Take struct bp_location
7770 instead of struct breakpoint as argument, and also add ASPACE
7771 and BP_ADDR arguments. Update all callers.
7772 (struct breakpoint_ops) <print_one_detail>: New method.
7773 (struct breakpoint) <addr_string_range_end>: New member variable.
7774 * breakpoint.c (breakpoint_location_address_match): Add function
7775 prototype.
7776 (insert_bp_location): Set bl->target_info.length.
7777 (breakpoint_here_p): Call breakpoint_location_address_match.
7778 (moribund_breakpoint_here_p): Likewise.
7779 (regular_breakpoint_inserted_here_p): Likewise.
7780 (breakpoint_thread_match): Likewise.
7781 (bpstat_stop_status): Likewise.
7782 (bpstat_check_location): Move call to
7783 breakpoint_ops.breakpoint_hit to the top.
7784 (print_one_breakpoint_location): Call
7785 breakpoint_ops.print_one_detail if available.
7786 (breakpoint_address_match_range): New function.
7787 (breakpoint_location_address_match): Likewise.
7788 (breakpoint_locations_match): Compare the length field of the
7789 locations too.
7790 (hw_breakpoint_used_count): Count resources used by all locations
7791 in a breakpoint, and use breakpoint_ops.resources_needed if
7792 available.
7793 (breakpoint_hit_ranged_breakpoint): New function.
7794 (resources_needed_ranged_breakpoint): Likewise.
7795 (print_it_ranged_breakpoint): Likewise.
7796 (print_one_ranged_breakpoint): Likewise.
7797 (print_one_detail_ranged_breakpoint): Likewise.
7798 (print_mention_ranged_breakpoint): Likewise.
7799 (print_recreate_ranged_breakpoint): Likewise.
7800 (ranged_breakpoint_ops): New structure.
7801 (find_breakpoint_range_end): New function.
7802 (break_range_command): Likewise.
7803 (delete_breakpoint): Free addr_string_range_end.
7804 (update_breakpoint_locations): Add SALS_END argument. Update
7805 all callers. Calculate breakpoint length if a non-zero SALS_END
7806 is given. Call breakpoint_locations_match instead of
7807 breakpoint_address_match.
7808 (reset_breakpoint): Find SaL of the end of the range if B is a
7809 ranged breakpoint.
7810 (_initialize_breakpoint): Register break-range command.
7811 * defs.h (print_core_address): Add function prototype.
7812 * ppc-linux-nat.c (ppc_linux_ranged_break_num_registers): New
7813 function.
7814 (ppc_linux_insert_hw_breakpoint): Support ranged breakpoints.
7815 (ppc_linux_remove_hw_breakpoint): Likewise.
7816 (_initialize_ppc_linux_nat): Initialize
7817 to_ranged_break_num_registers.
7818 * target.c (update_current_target): Add comment about
7819 to_ranged_break_num_registers.
7820 (target_ranged_break_num_registers): New function.
7821 * target.h (struct target_ops) <to_ranged_break_num_registers>:
7822 New method.
7823 (target_ranged_break_num_registers): Add function prototype.
7824 * ui-out.c (ui_out_field_core_addr): Move address-printing logic to ...
7825 * utils.c (print_core_address): ... here.
7826
02d20e4a
UW
78272011-03-31 Ulrich Weigand <uweigand@de.ibm.com>
7828
7829 * breakpoint.c (addr_string_to_sals): Avoid uninitialized
7830 variable compiler warning.
7831
ef23e705
TJB
78322011-03-30 Thiago Jung Bauermann <bauerman@br.ibm.com>
7833
7834 * breakpoint.c (breakpoint_re_set_one): Factor out breakpoint-resetting
7835 code from here ...
7836 (re_set_breakpoint): ... to here ...
7837 (addr_string_to_sals): ... and here.
7838
311e6ab3
PM
78392011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
7840
7841 * Makefile.in (SFILES): Add missing C sources.
7842 (HFILES_NO_SRCDIR): Remove gdbserver subdirectory headers.
7843 Add missing headers.
7844
acd1d99c
MF
78452011-03-29 Mike Frysinger <vapier@gentoo.org>
7846
7847 * .gitignore: New file.
7848
66ee2731
MF
78492011-03-29 Mike Frysinger <vapier@gentoo.org>
7850
7851 * NEWS: Mention new cfi device simulation.
7852
53832f31
TT
78532011-03-29 Tom Tromey <tromey@redhat.com>
7854
7855 * dwarf2read.c (fixup_partial_die): Handle linkage name on
7856 otherwise anonymous types.
7857 (dwarf2_name): Likewise.
7858 * valops.c (value_struct_elt_for_reference): Refine artificial
7859 type logic. Call error if j==-1.
7860
09b58708
JK
78612011-03-29 Andreas Tobler <andreast-list@fgznet.ch>
7862
7863 Fix false GCC warning.
7864 * infcall.c (find_function_addr): Initialize funaddr.
7865
6023c606
PM
78662011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
7867
7868 Fix mingw compilation with --enable-targets=all.
7869 * remote-mips.c (gdb_usleep.h): Include header.
7870 (mips_enter_debug): Use gdb_usleep instead of sleep.
7871
0e30163f
JK
78722011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7873
7874 Support resolution of STT_GNU_IFUNC via breakpoints.
7875 * breakpoint.c (print_it_typical): Support bp_gnu_ifunc_resolver and
7876 bp_gnu_ifunc_resolver_return.
7877 (bpstat_what): Rename parameter to bs_head, new variable bs, adjust
7878 the loop. Support bp_gnu_ifunc_resolver and
7879 bp_gnu_ifunc_resolver_return. New comment after the loop. New loop
7880 for bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return
7881 breakpoints.
7882 (bptype_string, print_one_breakpoint_location): Support
7883 bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return.
7884 (user_settable_breakpoint): Return true also for
7885 bp_gnu_ifunc_resolver.
7886 (allocate_bp_location): Support bp_gnu_ifunc_resolver and
7887 bp_gnu_ifunc_resolver_return.
7888 (set_breakpoint_location_function): New parameter explicit_loc,
7889 describe it. Call find_pc_partial_function_gnu_ifunc with new
7890 variable IS_GNU_IFUNC and adjust the address for STT_GNU_IFUNC if
7891 EXPLICIT_LOC is not set.
7892 (set_raw_breakpoint): Set EXPLICIT_LOC for
7893 set_breakpoint_location_function.
7894 (clone_momentary_breakpoint): Use true for EXPLICIT_LOC of
7895 set_breakpoint_location_function.
7896 (mention): Support bp_gnu_ifunc_resolver and
7897 bp_gnu_ifunc_resolver_return.
7898 (add_location_to_breakpoint): Set EXPLICIT_LOC for
7899 set_breakpoint_location_function.
7900 (update_breakpoint_locations): Remove static.
7901 (breakpoint_re_set_one): Support bp_gnu_ifunc_resolver and
7902 bp_gnu_ifunc_resolver_return.
7903 * breakpoint.h (enum bptype): New fields bp_gnu_ifunc_resolver and
7904 bp_gnu_ifunc_resolver_return.
7905 (update_breakpoint_locations): New declaration.
7906 * elfread.c: Include gdbthread.h and regcache.h.
7907 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop): New
7908 functions.
7909 (elf_gnu_ifunc_fns): Install them.
7910 * minsyms.c (stub_gnu_ifunc_resolver_stop)
7911 (stub_gnu_ifunc_resolver_return_stop): New functions.
7912 (stub_gnu_ifunc_fns): Install them.
7913 * symtab.h (struct gnu_ifunc_fns): New fields gnu_ifunc_resolver_stop
7914 and gnu_ifunc_resolver_return_stop.
7915 (gnu_ifunc_resolver_stop, gnu_ifunc_resolver_return_stop): New.
7916
07be84bf
JK
79172011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7918
7919 STT_GNU_IFUNC reader implementation.
7920 * elfread.c: Include gdbtypes.h, value.h and infcall.h.
7921 (SYMBOL_GOT_PLT_SUFFIX, elf_rel_plt_read)
7922 (elf_objfile_gnu_ifunc_cache_data, struct elf_gnu_ifunc_cache)
7923 (elf_gnu_ifunc_cache_hash, elf_gnu_ifunc_cache_eq)
7924 (elf_gnu_ifunc_record_cache, elf_gnu_ifunc_resolve_by_cache)
7925 (elf_gnu_ifunc_resolve_by_got, elf_gnu_ifunc_resolve_name)
7926 (elf_gnu_ifunc_resolve_addr): New.
7927 (elf_symfile_read): Call elf_rel_plt_read.
7928 (elf_gnu_ifunc_fns): New.
7929 (_initialize_elfread): Initialize elf_objfile_gnu_ifunc_cache_data.
7930 Install elf_gnu_ifunc_fns.
7931 * infcall.c (find_function_return_type): New function.
7932 (find_function_addr): Resolve TYPE_GNU_IFUNC functions, if possible.
7933 * minsyms.c (stub_gnu_ifunc_resolve_addr)
7934 (stub_gnu_ifunc_resolve_name): New functions.
7935 (stub_gnu_ifunc_fns, gnu_ifunc_fns_p): New variables.
7936 * symtab.h (struct gnu_ifunc_fns, gnu_ifunc_resolve_addr)
7937 (gnu_ifunc_resolve_name, gnu_ifunc_fns_p): New.
7938
300f8e10
JK
79392011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7940
7941 Code cleanup for later STT_GNU_IFUNC support.
7942 * infcall.c (find_function_addr): Remove variable code, use explicit
7943 dereferences for it. Move VALUE_TYPE initialization later.
7944
11c81455
JK
79452011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7946
7947 GDB find_pc_partial_function support for STT_GNU_IFUNC.
7948 * blockframe.c (cache_pc_function_is_gnu_ifunc): New variable.
7949 (clear_pc_function_cache): Clear it.
7950 (find_pc_partial_function): Rename to ...
7951 (find_pc_partial_function_gnu_ifunc): ... this function. New
7952 parameter is_gnu_ifunc_p, describe it. Set *IS_GNU_IFUNC_P.
7953 (find_pc_partial_function): New wrapper for this function.
7954 * symtab.h (find_pc_partial_function_gnu_ifunc): New declaration.
7955
0875794a
JK
79562011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7957
7958 GDB internal type support for STT_GNU_IFUNC.
7959 * elfread.c (record_minimal_symbol): Support mst_text_gnu_ifunc.
7960 (elf_symtab_read): Set mst_text_gnu_ifunc for
7961 BSF_GNU_INDIRECT_FUNCTION.
7962 * eval.c (evaluate_subexp_standard): Support TYPE_GNU_IFUNC.
7963 * gdbtypes.c (init_type): Support TYPE_FLAG_GNU_IFUNC,
7964 builtin_func_func, nodebug_text_gnu_ifunc_symbol and
7965 nodebug_got_plt_symbol.
7966 * gdbtypes.h (enum type_flag_value): New entry TYPE_FLAG_GNU_IFUNC.
7967 (TYPE_GNU_IFUNC): New.
7968 (struct main_type): New field flag_gnu_ifunc.
7969 (struct builtin_type): New field builtin_func_func.
7970 (struct objfile_type): New fields nodebug_text_gnu_ifunc_symbol and
7971 nodebug_got_plt_symbol.
7972 * minsyms.c (lookup_minimal_symbol_text): Support mst_text_gnu_ifunc.
7973 (in_gnu_ifunc_stub): New.
7974 (prim_record_minimal_symbol, find_solib_trampoline_target): Support
7975 mst_text_gnu_ifunc.
7976 * parse.c (write_exp_msymbol): New variable ifunc_msym. Detect and
7977 support mst_text_gnu_ifunc. Support mst_slot_got_plt.
7978 * solib-svr4.c (svr4_in_dynsym_resolve_code): Return true also for
7979 in_gnu_ifunc_stub.
7980 * symmisc.c (dump_msymbols): Support mst_text_gnu_ifunc.
7981 * symtab.c (search_symbols): Likewise.
7982 * symtab.h (enum minimal_symbol_type): New fields mst_text_gnu_ifunc
7983 and mst_slot_got_plt.
7984 (in_gnu_ifunc_stub): New declaration.
7985
d0fb5eae
JK
79862011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7987
7988 Support a ring of related breakpoints.
7989 * breakpoint.c (watchpoint_del_at_next_stop): New, move here code from
7990 other functions, add gdb_assert.
7991 (update_watchpoint, watchpoint_check): Add gdb_assert. Use
7992 watchpoint_del_at_next_stop.
7993 (bpstat_check_watchpoint): Use watchpoint_del_at_next_stop.
7994 (bpstat_stop_status): Handle ring in related_breakpoint.
7995 (set_raw_breakpoint_without_location): Initialize ring in
7996 related_breakpoint.
7997 (delete_breakpoint): Handle ring in related_breakpoint, use
7998 watchpoint_del_at_next_stop.
7999 (map_breakpoint_numbers): Handle ring in related_breakpoint.
8000
9cded63f
TT
80012011-03-28 Tom Tromey <tromey@redhat.com>
8002
8003 PR symtab/12441:
8004 * dwarf2read.c (prepare_one_comp_unit): Don't call set_cu_language
8005 with `language_minimal'.
8006
467d42c4
UW
80072011-03-25 Ulrich Weigand <ulrich.weigand@linaro.org>
8008
8009 * arm-tdep.c (arm_elf_make_msymbol_special): Use ARM_SYM_BRANCH_TYPE
8010 instead of checking for STT_ARM_TFUNC symbol type.
8011
62853458
TT
80122011-03-25 Tom Tromey <tromey@redhat.com>
8013
8014 * linespec.c (symbol_found): Restore line-based result for
8015 non-LOC_LABEL symbols.
8016
a7417d46
KT
80172011-03-25 Kai Tietz <ktietz@redhat.com>
8018
8019 * tui/tui-source.c (tui_set_source_content): Use filename_cmp
8020 instead of strcmp for comparison.
8021 (tui_source_is_displayed): Likewise.
8022 * tui/tui-winsource.c (tui_update_breakpoint_info): Likewise.
8023
55f1336d
TT
80242011-03-24 Mark Wielaard <mjw@redhat.com>
8025
f33edef8
PP
8026 * dwarf2read.c (lookup_signatured_type): Use DW_FORM_ref_sig8 in
8027 complaint.
8028 (skip_one_die): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
8029 (find_partial_die_in_comp_unit): Likewise in comment.
8030 (read_attribute_value): Likewise.
8031 (lookup_die_type): Likewise.
8032 (dwarf_form_name): Likewise.
8033 (dump_die_shallow): Likewise.
8034 (follow_die_ref_or_sig): Likewise.
55f1336d 8035
9ef07c8c
TT
80362011-03-24 Tom Tromey <tromey@redhat.com>
8037
8038 PR breakpoints/11816:
8039 * linespec.c (decode_line_1): Parse `function:label' linespecs.
8040 (decode_compound): Update.
8041 (find_function_symbol): New function.
8042 (decode_dollar): Update.
8043 (decode_label): Add 'function_symbol' parameter. Handle
8044 function-relative labels.
8045 (decode_variable): Update.
8046 (symbol_found): Add 'function_symbol' parameter. Use label's PC,
8047 not its line. Set `special_display' and canonical name for
8048 labels.
8049
56435ebe
TT
80502011-03-24 Tom Tromey <tromey@redhat.com>
8051
8052 * linespec.h (struct linespec_result) <special_display>: New
8053 field.
8054 * breakpoint.h (struct breakpoint) <display_canonical>: New
8055 field.
8056 * breakpoint.c (print_breakpoint_location): Respect
8057 display_canonical.
8058 (create_breakpoint_sal): Add 'display_canonical' parameter.
8059 (create_breakpoints_sal): Update.
8060 (create_breakpoint): Update.
8061
7efd8fc2
TT
80622011-03-24 Tom Tromey <tromey@redhat.com>
8063
8064 * symtab.c (decode_line_spec): Update.
8065 * linespec.c (build_canonical_line_spec): Change type of
8066 'canonical'.
8067 (decode_line_2, decode_line_1, decode_objc, decode_compound)
8068 (find_method, decode_all_digits, decode_dollar, decode_label)
8069 (symbol_found): Likewise.
8070 (init_linespec_result): New function.
8071 * breakpoint.c (struct captured_parse_breakpoint_args)
8072 <canonical_p>: New field, replaces addr_string_p.
8073 (create_breakpoints_sal): Add 'canonical' parameter, replacing
8074 'addr_string'.
8075 (parse_breakpoint_sals): Likewise.
8076 (do_captured_parse_breakpoint): Update.
8077 (create_breakpoint): Use struct linespec_result.
8078 (until_break_command): Update.
8079 (breakpoint_re_set_one): Update.
8080 (decode_line_spec_1): Update.
8081 * linespec.h (struct linespec_result): New.
8082 (init_linespec_result): Declare.
8083
788c8b10
PA
80842011-03-23 Pedro Alves <pedro@codesourcery.com>
8085
8086 * regcache.c (regcache_raw_read): If the target didn't supply a
8087 given raw register, mark it as unavailable.
8088
0ba1096a
KT
80892011-03-23 Kai Tietz <ktietz@redhat.com>
8090
8091 * breakpoint.c (clear_command): Use filename_cmp
8092 instead of strcmp for comparison.
8093 * buildsym.c (watch_main_source_file_lossage): Likewise.
8094 (patch_subfile_names): Use IS_DIR_SEPARATOR instead of
8095 checking just for slash.
8096 * dbxread.c (read_dbx_symtab): Use lbasename instead of
8097 strrchr and filename_cmp instead of strcmp for filenames.
8098 (add_old_header_file): Use filename_cmp
8099 instead of strcmp for comparison.
8100 * exec.c (exec_set_section_address): Likewise.
8101 * macrotab.c (macro_lookup_inclusion): Likewise.
8102 (macro_lookup_inclusion): Likewise.
8103 * elfread.c (_initialize_elfread): Likewise.
8104 (elfstab_offset_sections): Likewise.
8105 (elfstab_offset_sections): Use lbasename instead of
8106 strrchr.
8107 * mdebugread.c (parse_partial_symbols): Likewise.
8108 (arse_partial_symbols): Use filename_(n)cmp instead of
8109 str(n)cmp for comparison.
8110 * minsyms.c (lookup_minimal_symbol): Likewise.
8111 * psymtab.c (read_psymtabs_with_filename): Likewise.
8112 * solib.c (solib_read_symbols): Likewise.
8113 (reload_shared_libraries_1): Likewise.
8114 * symmisc.c (maintenance_print_symbols): Likewise.
8115 * symfile.c (separate_debug_file_exists): Likewise.
8116 (reread_symbols): Likewise.
8117 (find_separate_debug_file_by_debuglink): Likewise.
8118 * remote-fileio.c (remote_fileio_func_rename): Likewise.
8119 * source.c (add_path): Likewise.
8120 * symtab.c (filename_seen): Likewise.
8121 (file_matches): Likewise.
8122 (print_symbol_info): Likewise.
8123 (maybe_add_partial_symtab_filename): Likewise.
8124 (make_source_files_completion_list): Likewise.
8125 * xml-syscall.c (init_sysinfo): Likewise.
8126 * windows-nat.c (_initialize_check_for_gdb_ini): Use
8127 IS_DIR_SEPARATOR for checking for trailing path separator.
8128
dd90784c
JK
81292011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
8130
8131 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_entry_value. New
8132 label abort_expression.
8133 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle
8134 DWARF_VALUE_OPTIMIZED_OUT.
8135
3167638f
JK
81362011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
8137
8138 Code cleanup.
8139 * c-typeprint.c (c_type_print_args): Change parameter show_artificial
8140 to linkage_name. Invert its value. Update the function comment.
8141 (c_type_print_varspec_suffix): Invert it at the caller.
8142 * dwarf2read.c (dwarf2_compute_name): Invert it at the caller.
8143
ce406537
PA
81442011-03-22 Pedro Alves <pedro@codesourcery.com>
8145
8146 * infcmd.c (post_create_inferior): Ignore NOT_AVAILABLE_ERROR
8147 errors when reading the `stop_pc'.
8148 * printcmd.c (pc_prefix): Use get_frame_pc_if_available instead of
8149 get_frame_pc.
8150
da5d4055
PM
81512011-03-22 Phil Muldoon <pmuldoon@redhat.com>
8152
8153 * NEWS: Document gdb.Write stream keyword.
8154
29e0eb9c
JK
81552011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
8156
8157 Revert:
8158 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8159 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
8160 (dwarf2_add_field): Fix new_field->accessibility for
8161 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
8162
05775840
PM
81632011-03-22 Phil Muldoon <pmuldoon@redhat.com>
8164
f33edef8 8165 PR python/12183
05775840
PM
8166
8167 * python/py-function.c (fnpy_call): Treat GdbErrors differently to
8168 other error classes. Do not print stack trace.
8169
a0cb7835
JK
81702011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8171
8172 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
8173 (dwarf2_add_field): Fix new_field->accessibility for
8174 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
8175
d19f7eee
UW
81762011-03-21 Ulrich Weigand <ulrich.weigand@linaro.org>
8177
8178 * arm-tdep.c (arm_analyze_prologue): Do not abort parsing when
8179 encountering a load via a non-SP register.
8180
4a2fbb50
UW
81812011-03-21 Ulrich Weigand <uweigand@de.ibm.com>
8182
8183 * tramp-frame.c (tramp_frame_prepend_unwinder): Set stop_reason
8184 field in returned unwinder.
8185
3489610d
JB
81862012-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8187
8188 * ada-lang.c (replace_operator_with_call): Copy also GDBARCH.
8189
8c1a34e7
JB
81902012-03-21 Joel Brobecker <brobecker@adacore.com>
8191
8192 * ada-lang.c (replace_operator_with_call): Use xzalloc instead
8193 of xmalloc.
8194
8fbca658
PA
81952012-03-18 Pedro Alves <pedro@codesourcery.com>
8196
8197 * frame.c (frame_unwind_register): Throw an error if unwinding the
8198 register failed.
8199 * get_prev_frame_1 (get_prev_frame_1): Ask the unwinder if there's
8200 an unwind stop reason.
8201 (frame_stop_reason_string): Handle UNWIND_UNAVAILABLE.
8202 * frame.h (enum unwind_stop_reason) <UNWIND_OUTERMOST,
8203 UNWIND_UNAVAILABLE>: New.
8204 * inline-frame.c (inline_frame_unwind): Install
8205 default_frame_unwind_stop_reason.
8206 * frame-unwind.c: Include "exceptions.h".
8207 (frame_unwind_find_by_frame): Swallow NOT_AVAILABLE_ERROR errors.
8208 (default_frame_unwind_stop_reason): New.
8209 * frame-unwind.h (frame_unwind_stop_reason_ftype): New typedef.
8210 (default_frame_unwind_stop_reason): Declare.
8211 (struct frame_unwind) <stop_reason>: New function pointer.
8212
8213 * dummy-frame.c: Install default_frame_unwind_stop_reason.
8214 * dwarf2-frame.c: Include exceptions.h.
8215 (struct dwarf2_frame_cache) <unavailable_retaddr>: New field.
8216 (dwarf2_frame_cache): Swallow NOT_AVAILABLE_ERROR errors when
8217 computing the CFA. If such an error was thrown, set
8218 unavailable_retaddr.
8219 (dwarf2_frame_unwind_stop_reason): New.
8220 (dwarf2_frame_this_id): Don't build a frame id if the CFA was
8221 unavailable.
8222 (dwarf2_frame_unwind): Install dwarf2_frame_unwind_stop_reason.
8223 (dwarf2_signal_frame_unwind): Ditto.
8224
8225 * amd64-tdep.c: Include "exceptions.h".
8226 (struct amd64_frame_cache): New field "base_p".
8227 (amd64_init_frame_cache): Clear it.
8228 (amd64_frame_cache_1): New, factored out from amd64_frame_cache.
8229 Avoid reading registers with functions that throw if the register
8230 is not necessary to compute the frame base.
8231 (amd64_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
8232 swallowing NOT_AVAILABLE_ERROR.
8233 (amd64_frame_unwind_stop_reason): New.
8234 (amd64_frame_this_id): Don't build a frame id if the frame base
8235 was unavailable.
8236 (amd64_frame_unwind): Install amd64_frame_unwind_stop_reason.
8237 (amd64_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
8238 base_p if the frame base was computable.
8239 (amd64_sigtramp_frame_unwind_stop_reason): New.
8240 (amd64_sigtramp_frame_this_id): Don't build a frame id if the
8241 frame base was unavailable.
8242 (amd64_sigtramp_frame_unwind): Install
8243 amd64_sigtramp_frame_unwind_stop_reason.
8244 (amd64_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
8245 base_p if the frame base was computable.
8246 (amd64_epilogue_frame_unwind_stop_reason): New.
8247 (amd64_epilogue_frame_this_id): Don't build a frame id if the
8248 frame base was unavailable.
8249 (amd64_epilogue_frame_unwind): Install
8250 amd64_epilogue_frame_unwind_stop_reason.
8251 * i386-tdep.c: Include "exceptions.h".
8252 (struct i386_frame_cache): New field "base_p".
8253 (i386_init_frame_cache): Clear it.
8254 (i386_frame_cache_1): New, factored out from amd64_frame_cache.
8255 Avoid reading registers with functions that throw if the register
8256 is not necessary to compute the frame base.
8257 (i386_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
8258 swallowing NOT_AVAILABLE_ERROR.
8259 (i386_frame_unwind_stop_reason): New.
8260 (i386_frame_this_id): Don't build a frame id if the frame base was
8261 unavailable.
8262 (i386_frame_prev_register): Handle unavailable SP.
8263 (i386_frame_unwind): Install i386_frame_unwind_stop_reason.
8264 (i386_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
8265 base_p if the frame base was computable.
8266 (i386_epilogue_frame_unwind_stop_reason): New.
8267 (i386_epilogue_frame_this_id): Don't build a frame id if the frame
8268 base was unavailable.
8269 (i386_epilogue_frame_unwind): Install
8270 i386_epilogue_frame_unwind_stop_reason.
8271 (i386_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
8272 base_p if the frame base was computable.
8273 (i386_sigtramp_frame_unwind_stop_reason): New.
8274 (i386_sigtramp_frame_this_id): Don't build a frame id if the frame
8275 base was unavailable.
8276 (i386_sigtramp_frame_unwind): Install
8277 i386_sigtramp_frame_unwind_stop_reason.
8278 * sentinel-frame.c (sentinel_frame_prev_register): Use the value
8279 type's size, not the register's.
8280 (sentinel_frame_unwind): Install default_frame_unwind_stop_reason.
8281
8282 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind): Install
8283 default_frame_unwind_stop_reason.
8284 * alpha-tdep.c (alpha_sigtramp_frame_unwind)
8285 (alpha_heuristic_frame_unwind): Ditto.
8286 * amd64obsd-tdep.c (amd64obsd_trapframe_unwind): Ditto.
8287 * arm-tdep.c (arm_prologue_unwind, arm_stub_unwind): Ditto.
8288 * avr-tdep.c (avr_frame_unwind): Ditto.
8289 * cris-tdep.c (cris_sigtramp_frame_unwind, cris_frame_unwind):
8290 Ditto.
8291 * frv-linux-tdep.c (frv_linux_sigtramp_frame_unwind): Ditto.
8292 * frv-tdep.c (frv_frame_unwind): Ditto.
8293 * h8300-tdep.c (h8300_frame_unwind): Ditto.
8294 * hppa-hpux-tdep.c (hppa_hpux_sigtramp_frame_unwind): Ditto.
8295 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind): Ditto.
8296 * hppa-tdep.c (hppa_frame_unwind, hppa_fallback_frame_unwind)
8297 (hppa_stub_frame_unwind): Ditto.
8298 * i386obsd-tdep.c (i386obsd_trapframe_unwind): Ditto.
8299 * ia64-tdep.c (ia64_frame_unwind, ia64_sigtramp_frame_unwind)
8300 (ia64_libunwind_frame_unwind)
8301 (ia64_libunwind_sigtramp_frame_unwind): Ditto.
8302 * iq2000-tdep.c (iq2000_frame_unwind): Ditto.
8303 * lm32-tdep.c (lm32_frame_unwind): Ditto.
8304 * m32c-tdep.c (m32c_unwind): Ditto.
8305 * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_unwind): Ditto.
8306 * m32r-tdep.c (m32r_frame_unwind): Ditto.
8307 * m68hc11-tdep.c (m68hc11_frame_unwind): Ditto.
8308 * m68k-tdep.c (m68k_frame_unwind): Ditto.
8309 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_unwind): Ditto.
8310 * m88k-tdep.c (m88k_frame_unwind): Ditto.
8311 * mep-tdep.c (mep_frame_unwind): Ditto.
8312 * microblaze-tdep.c (microblaze_frame_unwind): Ditto.
8313 * mips-tdep.c (mips_insn16_frame_unwind, mips_insn32_frame_unwind)
8314 (mips_stub_frame_unwind): Ditto.
8315 * mn10300-tdep.c (mn10300_frame_unwind): Ditto.
8316 * moxie-tdep.c (moxie_frame_unwind): Ditto.
8317 * mt-tdep.c (mt_frame_unwind): Ditto.
8318 * ppc-linux-tdep.c (ppu2spu_unwind): Ditto.
8319 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_unwind): Ditto.
8320 * rs6000-tdep.c (rs6000_frame_unwind): Ditto.
8321 * s390-tdep.c (s390_frame_unwind, s390_stub_frame_unwind)
8322 (s390_sigtramp_frame_unwind): Ditto.
8323 * score-tdep.c (score_prologue_unwind): Ditto.
8324 * sh-tdep.c (sh_frame_unwind): Ditto.
8325 * sh64-tdep.c (sh64_frame_unwind): Ditto.
8326 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_unwind): Ditto.
8327 * sparc-tdep.c (sparc32_frame_unwind): Ditto.
8328 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_unwind): Ditto.
8329 * sparc64-tdep.c (sparc64_frame_unwind): Ditto.
8330 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_unwind): Ditto.
8331 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_unwind): Ditto.
8332 * sparc64obsd-tdep.c (sparc64obsd_frame_unwind)
8333 (sparc64obsd_trapframe_unwind): Ditto.
8334 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_unwind): Ditto.
8335 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_unwind): Ditto.
8336 * spu-tdep.c (spu_frame_unwind, spu2ppu_unwind): Ditto.
8337 * v850-tdep.c (v850_frame_unwind): Ditto.
8338 * vax-tdep.c (vax_frame_unwind): Ditto.
8339 * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_unwind): Ditto.
8340 * xstormy16-tdep.c (frame_unwind xstormy16_frame_unwind): Ditto.
8341 * xtensa-tdep.c (xtensa_unwind): Ditto.
8342
f23d1b92
PA
83432011-03-18 Pedro Alves <pedro@codesourcery.com>
8344
8345 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Assume
8346 there's always a frame. Use get_frame_pc_if_available instead of
8347 get_frame_pc, and if there's no PC available, don't look up a
8348 symtab.
8349
1d4f5741
PA
83502011-03-18 Pedro Alves <pedro@codesourcery.com>
8351
8352 * stack.c (print_frame_local_vars, print_frame_arg_vars): Handle
8353 unavailable PC.
8354
dba09041
PA
83552011-03-18 Pedro Alves <pedro@codesourcery.com>
8356
8357 * tracepoint.c (set_traceframe_context): Handle unavailable PC
8358 gracefully.
8359
9a26e44c
PA
83602011-03-18 Pedro Alves <pedro@codesourcery.com>
8361
8362 * frame.h (frame_unwind_caller_pc_if_available): Declare.
8363 * frame.c (frame_unwind_caller_pc_if_available): New.
8364 * stack.c (frame_info): Handle unavailable PC.
8365
83662011-03-18 Pedro Alves <pedro@codesourcery.com>
8367
8368 * frame.c (frame_unwind_pc): Rename to ...
8369 (frame_unwind_pc_if_available): ... this. New `pc' output
8370 parameter. Change return type to int. Gracefully handle
8371 gdbarch_unwind_pc throwing NOT_AVAILABLE_ERROR. Return 0 if that
8372 happened, or 1 otherwise.
8373 (frame_unwind_pc): Reimplement on top of
8374 frame_unwind_pc_if_available.
8375 (get_frame_func): Rename to ...
8376 (get_frame_func_if_available): New `pc' output parameter. Change
8377 return type to int. Gracefully handle the PC not being available.
8378 (get_frame_func): Reimplement on top of
8379 get_frame_func_if_available.
8380 (select_frame): Handle the PC being unavailable.
8381 (get_prev_frame): Handle the PC being unavailable.
8382 (get_frame_pc_if_available): New.
8383 (get_frame_address_in_block_if_available): New.
8384 (find_frame_sal): Handle the frame PC not being available.
8385 * frame.h (get_frame_pc_if_available): Declare.
8386 (get_frame_address_in_block_if_available): Declare.
8387 (get_frame_func_if_available): Declare.
8388 * stack.c (print_frame_info): Handle the PC being unavailable.
8389 (find_frame_funname): Ditto.
8390 (print_frame): Handle the PC being unavailable.
8391 (get_frame_language): Ditto.
8392 * blockframe.c (get_frame_block): Ditto.
8393 * macroscope.c (default_macro_scope): Ditto.
8394 * tui/tui-stack.c (tui_show_frame_info): Ditto.
8395
83962011-03-18 Pedro Alves <pedro@codesourcery.com>
8397
8398 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Catch
8399 NOT_AVAILABLE_ERROR when evaluating the location expression.
8400
84012011-03-18 Pedro Alves <pedro@codesourcery.com>
8402
8403 * dwarf2loc.c (read_pieced_value): Handle get_frame_register_bytes
8404 returning that the register piece is unavailable/optimized out.
8405 (write_pieced_value): Handle get_frame_register_bytes returning
8406 that the register piece is unavailable/optimized out when doing a
8407 read-modify write of a bitfield.
8408 * findvar.c (value_from_register): Handle get_frame_register_bytes
8409 returning that the register piece is unavailable/optimized out.
8410 * frame.c (get_frame_register_bytes): New parameters `optimizedp'
8411 and `unavailablep'. Throw error on bad debug info. Use
8412 frame_register instead of frame_register_read, to fill in the new
8413 arguments.
8414 * frame.h (get_frame_register_bytes): New parameters `optimizedp'
8415 and `unavailablep'.
8416 * valops.c: (value_assign): Adjust, and handle
8417 get_frame_register_bytes failing.
8418 * spu-tdep.c: Include exceptions.h.
8419 (spu_software_single_step): Adjust, and handle
8420 get_frame_register_bytes failing.
8421 (spu_get_longjmp_target): Ditto.
8422 * gdbarch.sh (register_to_value): Change to return int. New
8423 parameters `optimizedp' and `unavailablep'.
8424 * gdbarch.h, gdbarch.c: Regenerate.
8425 * i386-tdep.c (i386_register_to_value): Adjust to new
8426 gdbarch_register_to_value interface.
8427 * i387-tdep.c (i387_register_to_value): Ditto.
8428 * i387-tdep.h (i387_register_to_value): Ditto.
8429 * alpha-tdep.c (alpha_register_to_value): Ditto.
8430 * ia64-tdep.c (ia64_register_to_value): Ditto.
8431 * m68k-tdep.c (m68k_register_to_value): Ditto.
8432 * mips-tdep.c (mips_register_to_value): Ditto.
8433 * rs6000-tdep.c (rs6000_register_to_value): Ditto.
8434
0fdb4f18
PA
84352011-03-18 Pedro Alves <pedro@codesourcery.com>
8436
8437 * findvar.c (value_of_register): Mark the value as unavailable, if
8438 the register is unavailable.
8439 * frame.h (frame_register_unwind): New `unavailablep' parameter.
8440 (frame_register): New `unavailablep' parameter.
8441 (frame_register_read): Update comment.
8442 * frame.c (frame_register_unwind): New `unavailablep' parameter.
8443 Set it if the register is unavailable. If the register is
8444 unavailable, clear the output buffer.
8445 (frame_register): New `unavailablep' parameter. Pass it down.
8446 (frame_unwind_register): Adjust.
8447 (put_frame_register): Adjust.
8448 (frame_register_read): Adjust. Also return false if the register
8449 is not available.
8450 (frame_register_unwind_location): Adjust.
8451 * sentinel-frame.c (sentinel_frame_prev_register): If the register
8452 is unavailable, mark the value accordingly.
8453 * stack.c (frame_info): Handle unavailable registers.
8454
e69aa73e
PA
84552011-03-18 Pedro Alves <pedro@codesourcery.com>
8456
8457 * mi/mi-main.c (register_changed_p): Handle REG_UNAVAILABLE, and
8458 simplify, using regcache_cooked_read.
8459
05d1431c
PA
84602011-03-18 Pedro Alves <pedro@codesourcery.com>
8461
8462 * regcache.h (regcache_raw_read, regcache_raw_read_signed)
8463 (regcache_raw_read_unsigned, regcache_raw_read_signed)
8464 (regcache_raw_read_unsigned, regcache_raw_read_part)
8465 (regcache_cooked_read, regcache_cooked_read_signed)
8466 (regcache_cooked_read_unsigned, regcache_cooked_read_part)
8467 (regcache_cooked_read_ftype): Change return to enum
8468 register_status.
8469 * regcache.c: Include exceptions.h
8470 (regcache_save): Adjust to handle REG_UNAVAILABLE registers.
8471 (do_cooked_read): Change return to enum register_status. Always
8472 forward to regcache_cooked_read.
8473 (regcache_raw_read): Change return to enum register_status. If
8474 the register is not REG_VALID, memset the buffer. Return the
8475 register's status.
8476 (regcache_raw_read_signed): Handle non-REG_VALID registers and
8477 return the register's status.
8478 (regcache_raw_read_unsigned): Ditto.
8479 (regcache_cooked_read): Change return to enum register_status.
8480 Assert that with read-only regcaches, the register's status must
8481 be known. If the regcache is read-only, and the register is not
8482 REG_VALID, memset the buffer. Return the register's status.
8483 (regcache_cooked_read_signed): Change return to enum
8484 register_status. Handle non-REG_VALID registers and return the
8485 register's status.
8486 (regcache_cooked_read_unsigned): Change return to enum
8487 register_status. Handle non-REG_VALID registers and return the
8488 register's status.
8489 (regcache_xfer_part, regcache_raw_read_part)
8490 (regcache_cooked_read_part): Change return to enum
8491 register_status. Return the register's status.
8492 (regcache_read_pc): Throw NOT_AVAILABLE_ERROR if the register is
8493 unavailable.
8494 (regcache_dump): Handle unavailable cooked registers.
8495 * frame.c (do_frame_register_read): Adjust interface to match
8496 regcache_cooked_read_ftype.
8497 * gdbarch.sh (pseudo_register_read): Change return to enum
8498 register_status.
8499 * gdbarch.h, gdbarch.c: Regenerate.
8500
8501 * i386-tdep.h (i386_pseudo_register_read): Change return to enum
8502 register_status.
8503 * i386-tdep.c (i386_pseudo_register_read): Change return to enum
8504 register_status. If reading a raw register indicates the raw
8505 register is not valid, return the raw register's status,
8506 otherwise, return REG_VALID.
8507 * amd64-tdep.c (amd64_pseudo_register_read): Change return to enum
8508 register_status. Handle non-REG_VALID raw registers and return
8509 the register's status.
8510 * arm-tdep.c (arm_neon_quad_read)
8511 (arm_pseudo_read): Change return to enum register_status. Handle
8512 non-REG_VALID raw registers and return the register's status.
8513 * avr-tdep.c (avr_pseudo_register_read): Ditto.
8514 * frv-tdep.c (frv_pseudo_register_read): Ditto.
8515 * h8300-tdep.c (h8300_pseudo_register_read): Ditto.
8516 * hppa-tdep.c (hppa_pseudo_register_read): Ditto.
8517 * m32c-tdep.c (m32c_move_reg_t): Change return to enum
8518 register_status.
8519 (m32c_raw_read, m32c_raw_write, m32c_banked_read)
8520 (m32c_banked_write, m32c_sb_read, m32c_sb_write, m32c_part_read)
8521 (m32c_part_write, m32c_cat_read, m32c_cat_write)
8522 (m32c_r3r2r1r0_read, m32c_r3r2r1r0_write)
8523 (m32c_pseudo_register_read): Change return to enum
8524 register_status. Adjust.
8525 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Change return to
8526 enum register_status. Return the register's status.
8527 * mep-tdep.c (mep_pseudo_cr32_read): Change return to enum
8528 register_status. Return the register's status.
8529 (mep_pseudo_cr64_read, mep_pseudo_register_read): Ditto.
8530 * mips-tdep.c (mips_pseudo_register_read): Ditto.
8531 * mt-tdep.c (mt_pseudo_register_read): Ditto.
8532 * rs6000-tdep.c (move_ev_register_func): New typedef.
8533 (e500_move_ev_register): Use it. Change return to enum
8534 register_status. Return the register's status.
8535 (do_regcache_raw_read): New function.
8536 (do_regcache_raw_write): New function.
8537 (e500_pseudo_register_read): Change return to enum
8538 register_status. Return the register's status. Use
8539 do_regcache_raw_read.
8540 (e500_pseudo_register_write): Adjust. Use do_regcache_raw_write.
8541 (dfp_pseudo_register_read): Change return to enum register_status.
8542 Return the register's status.
8543 (vsx_pseudo_register_read): Ditto.
8544 (efpr_pseudo_register_read): Ditto.
8545 (rs6000_pseudo_register_read): Ditto.
8546 * s390-tdep.c (s390_pseudo_register_read): Change return to enum
8547 register_status. Return the register's status.
8548 * sh64-tdep.c (pseudo_register_read_portions): New function.
8549 (sh64_pseudo_register_read): Change return to enum
8550 register_status. Use pseudo_register_read_portions. Return the
8551 register's status.
8552 * ia64-tdep.c (ia64_pseudo_register_read): Change return to enum
8553 register_status. Return the register's status.
8554 * sh-tdep.c (pseudo_register_read_portions): New function.
8555 (sh_pseudo_register_read): Change return to enum register_status.
8556 Use pseudo_register_read_portions. Return the register's status.
8557 * sparc-tdep.c (sparc32_pseudo_register_read): Change return to
8558 enum register_status. Return the register's status.
8559 * sparc64-tdep.c (sparc64_pseudo_register_read): Ditto.
8560 * spu-tdep.c (spu_pseudo_register_read_spu)
8561 (spu_pseudo_register_read): Ditto.
8562 * xtensa-tdep.c (xtensa_register_read_masked)
8563 (xtensa_pseudo_register_read): Ditto.
8564 * bfin-tdep.c (bfin_pseudo_register_read): Ditto.
8565
e10abd8f
PM
85662011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
8567
8568 * python/py-value.c (valpy_getitem): Fix formatting of error function
8569 call.
8570
7ea6d463
PM
85712011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
8572
8573 ARI fixes: Add missing internationalization markups throughout
8574 C source files.
8575 * darwin-nat-info.c: Ditto.
8576 * record.c: Ditto.
8577 * remote.c: Ditto.
8578 * mi/mi-main.c: Ditto.
8579
001083c6
PM
85802011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
8581
8582 ARI fixes: Add missing internationalization markups throughout
8583 yacc files.
8584 * c-exp.y: Ditto.
8585 * cp-name-parser.y: Ditto.
8586 * f-exp.y: Ditto.
8587 * m2-exp.y: Ditto.
8588 * objc-exp.y: Ditto.
8589 * p-exp.y: Ditto.
8590
4f1cdeec
PM
85912011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
8592
8593 ARI fixes: Messages should have no trailing new lines.
8594 * darwin-nat.c (mach_check_error): Remove trailing new line from
8595 warning function call message.
8596 * record.c (bfdcore_read): Idem for error call.
8597
28e698f1
PM
85982011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
8599
8600 * common/signals.c (target_signal_from_host): Add _ markup to error
8601 function call message.
8602 (target_signal_to_host): Add _ markup and remove trailing new line
8603 from warning call message.
8604 (target_signal_from_command): Add _ markup to error function call
8605 message.
8606
99c3dc11
PM
86072011-03-18 Phil Muldoon <pmuldoon@redhat.com>
8608
f33edef8 8609 PR python/12149
99c3dc11
PM
8610
8611 * python/python.c (gdbpy_write): Accept a stream argument and
8612 operate to the appropriate stream.
8613 (gdbpy_flush): Likewise.
8614 (_initialize_python): Add stream constants.
8615 (finish_python_initialization): Add GdbOutputErrorFile class.
8616
c20800be
KY
86172011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
8618
8619 * MAINTAINERS: Add myself as a write-after-approval maintainer.
8620
f4a1794a
KY
86212011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
8622
8623 * amd64-tdep.c (amd64_relocate_instruction): Fix ordering of arguments
f33edef8
PP
8624 to store_signed_integer. Add debug message when relocating CALL
8625 instructions. Fix formatting of debug message.
8626 * i386-tdep.c (i386_relocate_instruction): Ditto.
f4a1794a 8627
d4862372
JB
86282011-03-17 Joel Brobecker <brobecker@gnat.com>
8629
8630 * target.h (struct target_ops): Remove to_lookup_symbol field.
8631 (target_lookup_symbol): Delete macro.
8632 * target.c (nosymbol, debug_to_lookup_symbol): Delete.
8633 (update_current_target, setup_target_debug): Remove handling
8634 of to_lookup_symbol target_ops field.
8635 * ada-tasks.c (get_known_tasks_addr): Remove use of
8636 target_lookup_symbol.
8637 * coffread.c (coff_symtab_read): Likewise.
8638 * dbxread.c (read_dbx_symtab): Ditto.
8639
d645e32e
JB
86402011-03-17 Joel Brobecker <brobecker@gnat.com>
8641
8642 PR gdb/12116:
8643 * configure.ac: Add getthrds declaration check.
8644 * configure, config.in: Regenerate.
8645 * aix-thread.c (getthrds): Declare only if not already declared
8646 in procinfo.h. More declaration out of get_signaled_thread to
8647 global scope.
8648
29703da4
PM
86492011-03-17 Phil Muldoon <pmuldoon@redhat.com>
8650
8651 * python/py-symtab.c: Populate symtab_object_methods,
8652 sal_object_methods.
8653 (stpy_is_valid): New function.
8654 (salpy_is_valid): Ditto.
8655 * python/py-symbol.c: Declare symbol_object_methods. Populate.
8656 (sympy_is_valid): New function.
8657 * python/py-objfile.c: Declare objfile_object_methods. Populate.
8658 (objfpy_is_valid): New function.
8659 * python/py-inferior.c: Populate inferior_object_methods.
8660 (infpy_is_valid): New function.
8661 * python/py-infthread.c: Populate thread_object_methods.
8662 (thpy_is_valid): New function.
8663 * python/py-block.c: Declare block_object_methods. Populate. Declare
8664 block_iterator_object_methods. Populate.
8665 (blpy_is_valid): New function.
8666 (blpy_iter_is_valid): Ditto.
8667
c00f8484
KS
86682011-03-16 Keith Seitz <keiths@redhat.com>
8669
8670 * linespec.c (find_methods): Canonicalize NAME before looking
8671 up the symbol.
8672 (name_end): New function.
8673 (keep_name_info): New function.
8674 (decode_line_1): Use keep_name_info.
8675 (decode_compound): Likewise.
8676 * cli/cli-utils.h (remove_trailing_whitespace): New function.
8677 * cli/cli-utils.c (remove_trailing_whitespace): Likewise.
8678
8679 PR c++/12273
8680 * linespec.c (locate_first_half): Keep overload information, too.
8681 (decode_compound): Use a string to represent break characters
8682 to escape the loop.
8683 If P points to a break character, do not increment it.
8684 For C++ and Java, keep overload information and relevant keywords.
8685 If we cannot find a symbol, search the minimal symbols.
8686
8687 PR c++/11734
8688 * linespec.c (decode_compound): Rename SAVED_ARG to
8689 THE_REAL_SAVED_ARG.
8690 Make a copy of THE_REAL_SAVED_ARG in SAVED_ARG and strip
8691 single-quotes.
8692 Pass a valid block to lookup_symbol.
8693 (lookup_prefix_sym): Likewise.
8694 (find_method): Construct search name based on SYM_CLASS instead
8695 of SAVED_ARG.
8696 * psymtab.c (lookup_partial_symbol): Add language parameter.
8697 (lookup_symbol_aux_psymtabs): Likewise.
8698 Don't assume that the psymtab we found was the right one. Search
8699 for the desired symbol in the symtab to be certain.
8700 (psymtab_search_name): New function.
8701 (lookup_partial_symbol): Use psymtab_search_name.
8702 Add language parameter.
8703 (read_symtabs_for_function): Add language parameter and pass to
8704 lookup_partial_symbol.
8705 (find_symbol_file_from_partial): Likewise.
8706
c91513d8
PP
87072011-03-16 Paul Pluzhnikov <ppluzhnikov@google.com>
8708
8709 PR gdb/12528
8710 * dwarf2read.c (noop_record_line): New function.
8711 (dwarf_decode_lines): Ignore line tables for GCd functions.
8712
b37520b6
PM
87132011-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
8714
8715 Fix ARI warnings about new lines at the end of messages, which
8716 are unneeded as there is a new line added at the end of the message
8717 automatically.
8718 * darwin-nat.c (darwin_stop_inferior): Ditto.
8719 * dec-thread.c (dec_thread_get_ada_task_ptid): Ditto.
8720 * dfp.c (decimal_to_number): Ditto.
8721 * exec.c (print_section_info): Ditto.
8722 * i386-darwin-nat.c (darwin_set_sstep): Ditto.
8723 * osdata.c (get_osdata): Ditto.
8724 * record.c (bfdcore_write): Ditto.
8725 * remote-mips.c (mips_readchar): Ditto.
8726 * remote.c (read_ptid): Ditto.
8727 * ser-mingw.c (ser_windows_raw): Ditto.
8728 * tracepoint.c (add_local_symbols): Ditto.
8729 * windows-nat.c (fake_create_process): Ditto.
8730
b08ee6a2
TT
87312011-03-16 Tom Tromey <tromey@redhat.com>
8732
8733 * tracepoint.c (stop_tracing): Don't declare.
8734 * event-top.c (after_char_processing_hook): Add `(void)'.
8735
9a6f1302
PM
87362011-03-16 Phil Muldoon <pmuldoon@redhat.com>
8737
8738 * NEWS: Add Parameter sub-classing description.
8739
7ceb86b1
KT
87402011-03-16 Kai Tietz <ktietz@redhat.com>
8741
8742 * MAINTAINERS: Update my e-mail address.
8743
efeff6cf
AT
87442011-03-15 Andreas Tobler <andreast@fgznet.ch>
8745
8746 * MAINTAINERS: Add myself for write after approval privileges.
8747
681c238c
MS
87482011-03-15 Michael Snyder <msnyder@vmware.com>
8749
f3df5b08
MS
8750 * frame.c (find_frame_sal): Assert sym is not null.
8751
13f6513c
MS
8752 * dbxread.c (process_one_symbol): Assert 'name' is not null.
8753
50412521
MS
8754 * objc-lang.c (selectors_info): Check strchr for null result.
8755
681c238c
MS
8756 * stabsread.c (define_symbol): Guard against bad stabstring input.
8757
6ced1581
PM
87582011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
8759
8760 Remove trailing spaces and tabulations from pascal language
8761 support sources.
8762 p-exp.y: Ditto.
8763 p-lang.c: Ditto.
8764 p-lang.h: Ditto.
8765 p-valprint.c: Ditto.
8766
9373cf26
JK
87672011-03-15 Jan Kratochvil <jan.kratochvil@redhat.com>
8768
8769 * dwarf2read.c (dwarf2_get_pc_bounds): Require HIGH strictly higher
8770 than LOW. Comment it.
8771 (read_partial_die): Call complaint for inappropriate zero LOWPC or
8772 HIGHPC not strictly higher than LOWPC.
8773
9a1edae6
PM
87742011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
8775
8776 Fix formatting of function declarations returning a pointer in
8777 previous commit.
8778 * varobj.c (varobj_add_child): Ditto.
8779 * hppa-tdep.h (hppa_init_objfile_priv_data): Ditto.
8780 * inferior.h (get_displaced_step_closure_by_addr): Ditto.
8781
24e9cda0
UW
87822011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
8783
8784 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Add support
8785 for the "generic" vector ABI used with GCC 4.3 and later.
8786 (ppc64_sysv_abi_return_value): Likewise.
8787
87882011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
81b4675a
UW
8789
8790 * infcall.c (call_function_by_hand): Function return value is
8791 always a non_lval, even when using struct_return.
8792
c9174737
PA
87932011-03-15 Pedro Alves <pedro@codesourcery.com>
8794
8795 * printcmd.c (ALL_DISPLAYS_SAFE): New.
8796 (map_display_numbers): New.
8797 (do_delete_display): New.
8798 (undisplay_command): Use map_display_numbers.
8799 (do_enable_disable_display): New.
8800 (enable_disable_display_command): New function.
8801 (enable_display): Delete.
8802 (enable_display_command): New.
8803 (disable_display_command): Reimplement.
8804 (_initialize_printcmd): Adjust "enable display" command to use
8805 `enable_display_command' as callback.
8806
350c6c65
PM
88072011-03-14 Phil Muldoon <pmuldoon@redhat.com>
8808
8809 * NEWS: Add Python breakpoint 'stop' operation.
8810
824446ad
PM
88112011-03-14 Phil Muldoon <pmuldoon@redhat.com>
8812
8813 * NEWS: Delete duplicate entry. Fix typo.
8814
2021ad3a
PM
88152011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
8816
8817 Fix ARI warning about function names in first column.
8818 Put prototype declaration on same line as return type.
8819 * objc-exp.y: Ditto.
8820 * p-exp.y: Ditto.
8821 * python/py-stopevent.h: Ditto.
8822 For long function names, split parameters to
8823 allow function name on same line as return type.
8824 * solib-pa64.c: Ditto.
8825 * varobj.c: Ditto.
8826 * varobj.h: Ditto.
8827 For long function declaration, use single line.
8828 * hppa-tdep.h: Ditto.
8829 * inferior.h: Ditto.
8830
7371cf6d
PM
88312011-03-14 Phil Muldoon <pmuldoon@redhat.com>
8832
8833 * python/python.h: Declare gdbpy_should_stop and
8834 gdbpy_breakpoint_has_py_cond.
8835 * python/python.c: Add python.h to includes. Remove python.h from
8836 HAVE_PYTHON definition
8837 (gdbpy_should_stop): New dummy function.
8838 (gdbpy_breakpoint_has_py_cond): New dummy function.
8839 * python/py-breakpoint.c (bppy_init): Rewrite to allow
8840 sub-classing capabilities.
8841 (gdbpy_should_stop): New function.
8842 (gdbpy_breakpoint_has_py_cond): New function.
8843 (local_setattro): New function.
8844 * breakpoint.c (condition_command): Add check for Python 'stop'
8845 operation.
8846 (bpstat_check_breakpoint_conditions): Execute Python 'stop'
8847 operation function as part of stop/continue tests.
8848
37b50a69
TT
88492011-03-14 Tom Tromey <tromey@redhat.com>
8850
8851 PR gdb/12576:
8852 * dwarf2loc.c (dwarf_expr_dwarf_call): Remove 'return'.
8853 (needs_frame_dwarf_call): Likewise.
8854
eeae04df
PM
88552011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
8856
8857 Fix ARI warning about functions without parameters that do not
8858 use (void).
8859 * breakpoint.c (all_tracepoints): Replace () by (void).
8860 * f-exp.y (match_string_literal): Ditto.
8861 (yylex): Ditto.
8862 * m2-exp.y (yylex): Ditto.
8863 * mep-tdep.c (current_me_module): Ditto.
8864 (current_options): Ditto.
8865 (current_cop_data_bus_width): Ditto.
8866 (current_cr_names): Ditto.
8867 (current_cr_is_float): Ditto.
8868 (current_ccr_names): Ditto.
8869 * objc-exp.y (yylex): Ditto.
8870 * p-exp.y (yylex): Ditto.
8871 * remote.c (send_interrupt_sequence): Ditto.
8872 * tracepoint.c (current_trace_status): Ditto.
8873 * python/py-evts.c (gdbpy_initialize_py_events): Ditto.
8874 * python/py-prettyprint.c (push_dummy_python_frame): Ditto.
8875
6dc3565d
MS
88762011-03-11 Michael Snyder <msnyder@vmware.com>
8877
1427fe5e
MS
8878 * cli/cli-decode.h (CMD_LIST_AMBIGUOUS): Define.
8879 * cli/cli-decode.c (lookup_cmd_1): Use CMD_LIST_AMBIGUOUS.
8880 (lookup_cmd): Test for CMD_LIST_AMBIGUOUS.
8881 * completer.c (complete_line_internal): Use CMD_LIST_AMBIGUOUS.
8882 * top.c (set_verbose): Use CMD_LIST_AMBIGUOUS.
8883
60bc018f
MS
8884 * event-loop-c (delete_async_signal_handler): Assert prev_ptr.
8885 (delete_async_event_handler): Ditto.
8886
f3be5b64
MS
8887 * python/py-breakpoint.c (bppy_set_condition): Stop memory leak.
8888
4c2d5724
MS
8889 * python/py-breakpoint.c (bppy_get_commands): Fix memory leak.
8890
6dc3565d
MS
8891 * top.c (set_verbose): Assert showcmd was found.
8892
4e6ca6d5
MG
88932011-03-11 Maxim Grigoriev <maxim2405@gmail.com>
8894
8895 * xtensa-tdep.c (warning_once): Correct style issues.
8896
815a83e4
YQ
88972011-03-11 Yao Qi <yao@codesourcery.com>
8898
8899 * arm-tdep.c (copy_ldr_str_ldrb_strb): Remove redundant statements.
8900
f2eb0bc8
AS
89012011-03-11 Andreas Schwab <schwab@redhat.com>
8902
8903 * common/aclocal.m4: Remove.
8904
b801de47
MG
89052011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
8906
8907 * xtensa-tdep.c (windowing_enabled): Remove inline attribute.
8908 (xtensa_write_register, xtensa_read_register): Likewise.
8909 (xtensa_hextochar): Removed.
8910 (xtensa_init_reggroups): Replace xtensa_hextochar () by explicit code.
8911
dbab50de
MG
89122011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
8913
8914 * xtensa-tdep.c (xtensa_c0reg_t): Update comments.
c2a6b390 8915 (xtensa_call0_frame_cache_t): Update comments. New fields added.
dbab50de
MG
8916 (xtensa_alloc_frame_cache): Add initialization for new fields.
8917 (xtensa_frame_cache): Change the way how call0_frame_cache () is called.
8918 (warning_once): New function.
8919 (xtensa_insn_kind): New item c0opc_and.
8920 (call0_classify_opcode): Add the case for AND instruction.
c2a6b390
MG
8921 (call0_track_op): Change arguments. New local variable litbase.
8922 Add the case to handle c0opc_and. Update algorithms for c0opc_mov,
8923 c0opc_l32r, c0opc_s32i to take into account dynamic stack adjustments
8924 in the prologue.
dbab50de 8925 Add cases for c0opc_l32e, c0opc_s32e, c0opc_rfwo, c0opc_rfwu.
c2a6b390 8926 (call0_analyze_prologue): Update the comments. Change arguments.
dbab50de
MG
8927 Add the variety of updates to handle extended prologues, which now can
8928 conduct dynamic stack adjustments.
8929 (call0_frame_cache): Likewise.
8930 (xtensa_skip_prologue): Update call0_analyze_prologue () function call.
8931 (xtensa_gdbarch_init): Initialize xtensa_session_once_reported.
8932
b2c04452
MS
89332011-03-10 Michael Snyder <msnyder@vmware.com>
8934
f8f67713
MS
8935 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
8936 (cmd_qtframe): Ditto.
8937 (cmd_qtbuffer): Ditto.
8938 (cmd_bigqtbuffer): Ditto.
8939
197f0a60
TT
89402011-03-10 Tom Tromey <tromey@redhat.com>
8941
8942 * tracepoint.c (trace_actions_command): Update.
8943 * thread.c (thread_apply_command): Update.
8944 * reverse.c (delete_bookmark_command): Update.
8945 (bookmarks_info): Update.
8946 * printcmd.c (undisplay_command): Update.
8947 * memattr.c (mem_enable_command): Update.
8948 (mem_disable_command): Update.
8949 (mem_delete_command): Update.
8950 * inferior.c (detach_inferior_command): Update.
8951 (kill_inferior_command): Update.
8952 (remove_inferior_command): Update.
8953 * cli/cli-utils.h (struct get_number_or_range_state): New.
8954 (init_number_or_range): Declare.
8955 (get_number_or_range): Update.
8956 * cli/cli-utils.c (init_number_or_range): New function.
8957 (get_number_or_range): Change 'pp' parameter to 'state'. Remove
8958 static variables.
8959 (number_is_in_list): Update.
8960 * breakpoint.h (get_tracepoint_by_number): Update.
8961 * breakpoint.c (map_breakpoint_numbers): Update for change to
8962 get_number_or_range.
8963 (find_location_by_number): Use get_number, not
8964 get_number_or_range.
8965 (trace_pass_set_count): New function.
8966 (trace_pass_command): Update for change to get_number_or_range.
8967 Rework loop logic.
8968 (get_tracepoint_by_number): Remove 'multi_p' parameter; add
8969 'state' parameter.
8970
ecec24e6
PM
89712011-03-10 Phil Muldoon <pmuldoon@redhat.com>
8972
8973 * python/py-param.c (add_setshow_generic): Add set/show callback
8974 parameters. Register Python object context.
8975 (get_show_value): New function.
8976 (get_set_value): New function.
8977 (call_doc_function): New function.
8978 (get_doc_string): Move behind get_show_value/get_set_value.
8979
6d6c6b1f
JK
89802011-03-10 Andreas Tobler <andreast-list@fgznet.ch>
8981
8982 * fbsd-nat.c (fbsd_make_corefile_notes): Constify local `fname'.
8983
68d6df83
MG
89842011-03-09 Maxim Grigoriev <maxim2405@gmail.com>
8985
dbab50de 8986 * xtensa-tdep.c (xtensa_read_register): Add comment.
68d6df83
MG
8987 (xtensa_write_register): Likewise.
8988 (xtensa_hextochar): Add comment and update to match coding conventions.
8989 (xtensa_frame_cache, xtensa_return_value): Follow coding conventions.
8990 (execute_l32e, execute_s32e, execute_code): Update comments.
8991 (xtensa_exception_handler_t): Update to match coding conventions.
8992 (xtensa_insn_kind): Likewise.
8993
85c9d6a6
MS
89942011-03-09 Michael Snyder <msnyder@vmware.com>
8995
8996 * mi-cmd-disas.c (mi_cmd_disassemble): Fix memory leak.
8997
91495617
PA
89982011-03-09 Pedro Alves <pedro@codesourcery.com>
8999
9000 * nto-tdep.c (nto_find_and_open_solib): Constify local `base'.
9001
eb8c0621
TT
90022011-03-09 Tom Tromey <tromey@redhat.com>
9003
9004 * thread.c (restore_selected_frame): Handle frame_level == -1.
9005 (make_cleanup_restore_current_thread): Use
9006 get_selected_frame_if_set.
9007 * frame.h (get_selected_frame_if_set): Declare.
9008 * frame.c (get_selected_frame_if_set): New function.
9009
9f37bbcc
PA
90102011-03-09 Pedro Alves <pedro@codesourcery.com>
9011
9012 * cli/cli-cmds.c (shell_escape): Use lbasename.
9013 * coffread.c (coff_start_symtab): Constify parameter.
9014 (complete_symtab): Constify `name' parameter.
9015 (coff_symtab_read): Constify `filestring' local.
9016 (coff_getfilename): Constify return and `result' local.
9017 Use lbasename.
9018 * fbsd-nat.c (fbsd_make_corefile_notes): Use lbasename.
9019 * linux-fork.c (info_checkpoints_command): Use lbasename.
9020 * linux-nat.c (linux_nat_make_corefile_notes): Use lbasename.
9021 * minsyms.c (lookup_minimal_symbol): Use lbasename.
9022 * nto-tdep.c (nto_find_and_open_solib): Use lbasename.
9023 * procfs.c (procfs_make_note_section): Use lbasename.
9024 * tui/tui-io.c (printable_part): Constity return and parameter.
9025 Use lbasename.
9026 (print_filename): Constify parameters, and local `s'.
9027 (tui_rl_display_match_list): Constify local `temp'.
9028
f8de3c55
JK
90292011-03-09 Jan Kratochvil <jan.kratochvil@redhat.com>
9030
9031 Revert:
9032 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9033 Fix DWARF-3+ DW_AT_accessibility default assumption.
9034 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
9035 cu->header.version >= 3.
9036
d9837b00
YQ
90372011-03-09 Yao Qi <yao@codesourcery.com>
9038
9039 * common/Makefile.in: Remove.
9040 * common/configure: Remove.
9041 * common/configure.ac: Remove.
9042
e637a4f5
YQ
90432011-03-09 Yao Qi <yao@codesourcery.com>
9044
9045 Revert:
9046 2011-02-11 Yao Qi <yao@codesourcery.com>
9047
9048 * common/Makefile.in: Add copyright header.
9049
9050 2011-02-11 Yao Qi <yao@codesourcery.com>
9051
9052 * Makefile.in: Remove signals.o from COMMON_OBS. Link
9053 libcommon.a.
9054 * configure.ac: Add common to sub dir.
9055 * configure: Regenerate.
9056
f976a05d
MG
90572011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
9058
9059 * xtensa-tdep.c (call0_ret): New function.
9060 (xtensa_skip_prologue): Speed up analysis.
9061
57041825
MG
90622011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
9063
9064 * xtensa-tdep.c (xtensa_register_reggroup_p): Count in all registers
9065 while executing MI command -data-list-changed-registers.
9066
08b9c608
MG
90672011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
9068
9069 * xtensa-tdep.c (xtensa_read_register): New function.
9070 (xtensa_write_register): New function.
9071 (xtensa_find_register_by_name): New function.
9072 (xtensa_windowed_frame_cache): Update comments in type description.
9073 (xtensa_frame_cache): Likewise.
9074 (xtensa_window_interrupt_insn): New function.
9075 (xtensa_frame_cache): Add analysis for Xtensa Window Exception frames.
9076 (xtensa_insn_kind): Add new instructions.
9077 (rwx_special_register): New function.
9078 (call0_classify_opcode): Add new instructions to the analysis.
9079 (a0_saved, a7_saved, a11_saved): New variables.
9080 (a0_was_saved, a7_was_saved, a11_was_saved): New variables.
9081 (execute_l32e): New function.
9082 (execute_s32e): New function.
9083 (xtensa_exception_handler_t): New type.
9084 (execute_code): New function.
9085 (xtensa_window_interrupt_frame_cache): New function to conduct frame
9086 analysis for Xtensa Window Exception handlers.
9087
4d1acb11
MG
90882011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
9089
98689b25
MG
9090 * xtensa-tdep.c (TX_PS): New.
9091 (windowing_enabled): Update to count for Call0 ABI.
9092 (xtensa_hextochar): New.
9093 (xtensa_init_reggroups): Make algorithm generic.
9094 (xtensa_frame_cache): Use TX_PS on Tiny Xtensa.
9095
90962011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
9097
9098 * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): Update.
4d1acb11 9099
d3f323f3
MS
91002011-03-08 Michael Snyder <msnyder@vmware.com>
9101
3dcabaa8
MS
9102 * i386-tdep.c (i386_follow_jump): Check return value of
9103 target_read_memory.
9104 (i386_analyze_struct_return): Ditto.
9105 (i386_skip_probe): Ditto.
9106 (i386_match_insn): Ditto.
9107 (i386_skip_noop): Ditto.
9108 (i386_analyze_frame_setup): Ditto.
9109 (i386_analyze_register_saves): Ditto.
9110 (i386_skip_prologue): Ditto.
9111 (i386_skip_main_prologue): Ditto.
9112
13b3fd9b
MS
9113 * target.c (read_whatever_is_readable): Fix memory leak.
9114
d3f323f3
MS
9115 * i386-tdep.c (i386_process_record): Document fall through.
9116
421d5c74
JK
91172011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9118
9119 Fix DWARF-3+ DW_AT_accessibility default assumption.
9120 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
9121 cu->header.version >= 3.
9122
63154eca
PA
91232011-03-08 Pedro Alves <pedro@codesourcery.com>
9124
9125 * remote.c (remote_check_symbols): Skip if the target has no
9126 execution.
9127
f1a507a1
JB
91282011-03-08 Joel Brobecker <brobecker@adacore.com>
9129
9130 * target.c (read_whatever_is_readable): Reformat comment,
9131 with a minor typo fix. Minor reformatting of the code.
9132
36073a92
YQ
91332011-03-08 Yao Qi <yao@codesourcery.com>
9134
9135 * arm-tdep.c: Remove prototype declaration displaced_in_arm_mode.
9136 (displaced_read_reg): Add `dsc' parameter, remove `from' parameter.
9137 Use cached result instead of calling displaced_in_arm_mode again.
9138 (branch_write_pc, alu_write_pc, load_write_pc): Add `dsc' parameter.
9139 (displaced_write_reg, copy_preload, copy_preload_reg): Callers update.
9140 (cleanup_copro_load_store, copy_copro_load_store): Likewise.
9141 (cleanup_branch, copy_bx_blx_reg, copy_alu_imm): Likewise.
9142 (cleanup_alu_reg, copy_alu_reg, cleanup_alu_shifted_reg): Likewise.
9143 (copy_alu_shifted_reg, cleanup_load, cleanup_store): Likewise.
9144 (copy_extra_ld_st, copy_ldr_str_ldrb_strb): Likewise.
9145 (cleanup_block_load_all, cleanup_block_store_pc): Likewise.
9146 (cleanup_block_load_pc, copy_block_xfer): Likewise.
9147 * arm-linux-tdep.c (arm_linux_copy_svc): Callers update.
9148 (arm_catch_kernel_helper_return): Likewise.
9149 * gdb/arm-tdep.h : Update function declarations.
9150
d3f323f3 91512011-03-07 Michael Snyder <msnyder@vmware.com>
e6040cbd 9152
e0e40094
MS
9153 * dwarf2loc.c (indirect_pieced_value): Assert 'piece' not null.
9154
0b2381f5
MS
9155 * ser-unix.c (hardwire_get_tty_state): Stop memory leak.
9156
0350914a
MS
9157 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Free environment.
9158
69feea6f
MS
9159 * elfread.c (elf_symtab_read): Stop memory leak.
9160
e6040cbd
MS
9161 * main.c (captured_main): Fix memory leak.
9162
052874e8
AS
91632011-03-07 Andreas Schwab <schwab@linux-m68k.org>
9164
9165 * ada-lang.c (compare_names): Call is_name_suffix with string1
9166 instead of string2.
9167
b11896a5
TT
91682011-03-07 Tom Tromey <tromey@redhat.com>
9169
9170 * xcoffread.c (xcoff_sym_fns): Update.
9171 * symfile.h (struct sym_fns) <sym_read_psymbols>: New field.
9172 (enum symfile_add_flags) <SYMFILE_NO_READ>: New constant.
9173 * symfile.c (syms_from_objfile): Handle SYMFILE_NO_READ.
9174 (symbol_file_add_with_addrs_or_offsets): Likewise.
9175 (reread_symbols): Handle OBJF_PSYMTABS_READ.
9176 * somread.c (som_sym_fns): Update.
9177 * psymtab.h (require_partial_symbols): Declare.
9178 * psymtab.c (require_partial_symbols): New function.
9179 (ALL_OBJFILE_PSYMTABS_REQUIRED): New macro.
9180 (ALL_OBJFILE_PSYMTABS): Undef.
9181 (ALL_PSYMTABS): Move from psympriv.h.
9182 (lookup_partial_symtab, find_pc_sect_psymtab)
9183 (lookup_symbol_aux_psymtabs, relocate_psymtabs)
9184 (find_last_source_symtab_from_partial)
9185 (forget_cached_source_info_partial)
9186 (print_psymtab_stats_for_objfile, read_symtabs_for_function)
9187 (expand_partial_symbol_tables, read_psymtabs_with_filename)
9188 (map_symbol_names_psymtab, map_symbol_filenames_psymtab)
9189 (find_symbol_file_from_partial, map_matching_symbols_psymtab)
9190 (expand_symtabs_matching_via_partial, maintenance_info_psymtabs):
9191 Use ALL_OBJFILE_PSYMTABS_REQUIRED.
9192 * psympriv.h (ALL_PSYMTABS): Move to psymtab.c.
9193 * objfiles.h (OBJF_PSYMTABS_READ): New macro.
9194 * objfiles.c (objfile_has_partial_symbols): Handle lazily-read
9195 psymtabs.
9196 * mipsread.c (ecoff_sym_fns): Update.
9197 * machoread.c (macho_sym_fns): Update.
9198 * elfread.c (elf_symfile_read): Set up for lazy psymtab reading.
9199 (read_psyms): New function.
9200 (elf_sym_fns, elf_sym_fns_gdb_index): Update.
9201 (elf_sym_fns_lazy_psyms): New global.
9202 * dwarf2read.c (dwarf2_initialize_objfile): Don't call
9203 dwarf2_build_psymtabs.
9204 * dbxread.c (aout_sym_fns): Update.
9205 * coffread.c (coff_sym_fns): Update.
9206
fda326dd
TT
92072011-03-07 Tom Tromey <tromey@redhat.com>
9208
9209 * infrun.c (print_exited_reason): Include inferior id and pid in
9210 message.
9211
aeaec162
TT
92122011-03-07 Tom Tromey <tromey@redhat.com>
9213
9214 * target.h (struct target_ops) <to_has_execution>: Add ptid_t
9215 parameter.
9216 (target_has_execution_1): Update.
9217 (target_has_execution_current): Declare.
9218 (target_has_execution): Call target_has_execution_current.
9219 (default_child_has_execution): Update.
9220 * target.c (default_child_has_execution): Add 'the_ptid'
9221 parameter.
9222 (target_has_execution_1): Likewise.
9223 (target_has_execution_current): New function.
9224 (add_target): Update.
9225 (init_dummy_target): Update.
9226 * remote-m32r-sdi.c (m32r_has_execution): New function.
9227 (init_m32r_ops): Use it.
9228 * record.c (record_core_has_execution): Now static. Add
9229 'the_ptid' parameter.
9230 * inferior.c (have_live_inferiors): Don't save current thread.
9231 Use target_has_execution_1.
9232
08e14083
YQ
92332011-03-07 Yao Qi <yao@codesourcery.com>
9234
9235 * Makefile.in (aclocal_m4_deps): Remove gnulib/m4/memcmp.m4.
9236
c05d19c5
JB
92372011-03-07 Joel Brobecker <brobecker@adacore.com>
9238
9239 * elfread.c (elf_symtab_read): Minor reformatting.
9240
3e6ef9e4
JB
92412011-03-07 Joel Brobecker <brobecker@adacore.com>
9242
9243 * objc-lang.c (selectors_info): Minor reformatting.
9244
dbb8534f
JB
92452011-03-07 Joel Brobecker <brobecker@adacore.com>
9246
9247 * ada-lang.c (compare_names): Add FALLTHROUGH comment.
9248
dd70cc93
JB
92492011-03-07 Joel Brobecker <brobecker@adacore.com>
9250 Michael Snyder <msnyder@vmware.com>
9251
9252 * ada-valprint.c (ada_val_print_array): Move the declaration of
9253 "byte_order" and "elttype" inside the block where these variables
9254 are actually used. Remove some special handling for the case
9255 where "elttype" and "eltlen" are null. Replace by a comment
9256 and a couple of assertion checks.
9257
b27cf2b3
MS
92582011-03-05 Michael Snyder <msnyder@vmware.com>
9259
9260 * source.c (add_path): Replace semicolon at end of block.
9261 * dwarf2expr.c (execute_stack_op): Ditto.
9262
5387a0c6
MF
92632011-03-05 Mike Frysinger <vapier@gentoo.org>
9264
9265 * bfin-tdep.c: Include sim-regno.h and gdb/sim-bfin.h.
9266 * configure.tgt (bfin-*-*linux*): Define gdb_sim.
9267 (bfin-*-*): Likewise.
9268
e3aa49af
MS
92692011-03-05 Michael Snyder <msnyder@vmware.com>
9270
82ae4854
MS
9271 * dwarf2expr.c (execute_stack_op): Delete superfluous semicolon.
9272 * mdebugread.c (parse_symbol): Ditto.
9273 * parse.c (parse_exp_in_context): Ditto.
9274 * source.c (add_path): Ditto.
9275 * utils.c (gnu_debuglink_crc32): Ditto.
9276 * varobj.c (variable_language): Ditto.
9277
e3aa49af
MS
9278 * linux-tdep.c (linux_get_siginfo_type): Stop memory leak.
9279
154f592e
MS
92802011-03-04 Michael Snyder <msnyder@vmware.com>
9281
da3ecdc6
MS
9282 * linux-fork.c (inferior_call_waitptid): Fix copy/paste error.
9283
9cc89665
MS
9284 * symfile.c (simple_overlay_update): Check for null return value
9285 from lookup_minimal_symbol.
9286
154f592e
MS
9287 * xml-syscall.c (syscall_start_syscall): Assert name is non null.
9288
63ffa6ee
TJB
92892011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
9290
9291 * eval.c (parse_and_eval_address_1): Remove function.
9292 * linespec.c (decode_indirect): Call parse_to_comma_and_eval
9293 instead of parse_and_eval_address_1.
9294 * value.h (parse_and_eval_address_1): Remove prototype.
9295
a17d146e
MS
92962011-03-04 Michael Snyder <msnyder@vmware.com>
9297
9298 * remote.c (putpkt_binary): Document that case stmt falls through.
9299
1a6a67de
TJB
93002011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
9301
9302 * breakpointc (print_it_typical): Move NULL check from here...
9303 (print_bp_stop_message): ... to here.
9304
488919c4
MS
93052011-03-04 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
9306
9307 * breakpoint.c (enable_command): Use break instead of continue,
9308 and fill in a missing break.
9309 (disable_command): Ditto.
9310
1e182ce8
UW
93112011-03-04 Ulrich Weigand <ulrich.weigand@linaro.org>
9312
9313 * inflow.c (terminal_init_inferior_with_pgrp): Copy ttystate.
9314 (terminal_save_ours): Remove misleading comment.
9315 (inflow_inferior_data_cleanup): Free ttystate.
9316 (inflow_inferior_exit): Likewise.
9317 (copy_terminal_info): Copy ttystate.
9318
9319 * serial.c (serial_copy_tty_state): New function.
9320 * serial.h (serial_copy_tty_state): Add prototype.
9321 (struct serial_ops): Add copy_tty_state callback.
9322 * ser-base.c (ser_base_copy_tty_state): New function.
9323 * ser-base.h (ser_base_copy_tty_state): Add prototype.
9324 * ser-go32.c (dos_copy_tty_state): New function.
9325 (dos_ops): Install copy_tty_state callback.
9326 * ser-mingw.c (_initialize_ser_windows): Likewise.
9327 * ser-pipe.c (_initialize_ser_pipe): Likewise.
9328 * ser-unix.c (hardwire_copy_tty_state): New function.
9329 (_initialize_ser_hardwire): Install it.
9330
b2c5f112
MS
93312011-03-04 Michael Snyder <msnyder@vmware.com>
9332
2abae994
MS
9333 * breakpoint.c (create_breakpoint): Add missing break statement.
9334
7f5936f9
MS
9335 Reverting this patch:
9336 * infcall.c (call_function_by_hand): Add break statements for lint.
9337
b2c5f112
MS
9338 Reverting this patch:
9339 * cli/cli-script.c (script_from_file): Add break for lint.
9340
42b1321c
MS
93412011-03-04 Michael Snyder <msnyder@vmware.com>
9342
9343 * solib.c (reload_shared_libraries_1): Close memory leak.
9344
3e2a0cee
TT
93452011-03-03 Tom Tromey <tromey@redhat.com>
9346
9347 PR gdb/12538:
9348 * dwarf2read.c (process_psymtab_comp_unit): Handle case where
9349 DW_STRING is NULL.
9350
58397cb7
MS
93512011-03-03 Michael Snyder <msnyder@vmware.com>
9352
2e3fd767
MS
9353 * remote-fileio.c (remote_fileio_func_fstat): Initialize all
9354 fields of struct 'st' to zero.
9355
58397cb7
MS
9356 * tui/tui-winsource.c (tui_update_source_window_as_is): Initialize
9357 sal.pspace before calling set_current_source_symtab_and_line.
9358
ced54c8f
YQ
93592011-03-03 Yao Qi <yao@codesourcery.com>
9360
9361 * Makefile.in (configure-common): Remove. Let Makefile
9362 in dir common to rebuild itself.
9363 (common/Makefile): Likewise.
9364
3351ea09
JB
93652011-03-03 Joel Brobecker <brobecker@adacore.com>
9366
9367 * utils.c (parse_escape): Add i18n markup in error message.
9368
bf9f652a
YQ
93692011-03-03 Yao Qi <yao@codesourcery.com>
9370
9371 * gdb/arm-tdep.c (shifted_reg_val): Replace magic number 15 with
9372 ARM_PC_REGNUM.
9373 (thumb_get_next_pc_raw, arm_get_next_pc_raw): Likewise.
9374 (displaced_write_reg, displaced_read_reg): Likewise.
9375 (copy_ldr_str_ldrb_strb, cleanup_block_load_all): Likewise.
9376 (cleanup_block_load_pc, copy_block_xfer): Likewise.
9377 (cleanup_branch): Replace magic number 14 and 15 with
9378 ARM_LR_REGNUM and ARM_PC_REGNUM respectively.
9379
d42de051
MS
93802011-03-02 Michael Snyder <msnyder@vmware.com>
9381
240f9570
MS
9382 * maint.c (maintenance_do_deprecate): No need to check for NULL.
9383
10dd8b54
MS
9384 * cli/cli-script.c (script_from_file): Add break for lint.
9385
b98bd911
MS
9386 * mdebugread.c (parse_partial_symbols): Fix indent.
9387
3494b66d
MS
9388 * target-descriptions.c (tdesc_gdb_type): No need to call
9389 xstrdup, callee saves a copy.
9390
daac021a
MS
9391 * printcmd.c (print_scalar_formatted): Use strncpy for safety.
9392
c38d16a7
MS
9393 * infcall.c (call_function_by_hand): Add break statements for lint.
9394
905b671b
MS
9395 * utils.c (parse_escape): Escape the escape char.
9396
f2eb0bc8 9397 * python/py-inferior.c (build_inferior_list): Error out if
2d565757
MS
9398 PyList_Append fails.
9399 (gdbpy_inferiors): Error out if build_inferior_list fails.
9400
8c6a60d1
MS
9401 * linux-nat.c (linux_nat_xfer_partial): Preserve errno around
9402 a function call.
9403
d42de051
MS
9404 * record.c (record_restore): Move printf to before error return.
9405
4db71c0b
YQ
94062011-03-02 Yao Qi <yao@codesourcery.com>
9407
9408 * arm-tdep.h (struct displaced_step_closure): Add two new fields
9409 is_thumb and insn_size.
9410 * arm-tdep.c (displaced_read_reg): Adjust correct pipeline offset
9411 on both ARM and Thumb mode.
9412 (arm_process_displaced_insn): Set is_thumb and insn_size.
9413 (arm_displaced_init_closure): Handle both 16-bit and 32-bit.
9414 (arm_displaced_step_fixup): Likewise.
9415
a9dc8dcc
MS
94162011-03-01 Michael Snyder <msnyder@vmware.com>
9417
53624a93
MS
9418 * cli/cli-dump.c (dump_bfd_file): Check error return and warn.
9419
77766669
MS
9420 * jv-lang.c (evaluate_subexp_java): Conditional can't be true.
9421
62d5b8da
MS
9422 * dwarf2read.c (dwarf2_compute_name): NAME cannot be null here.
9423
5e9e105f
MS
9424 * cli/cli-dump.c (restore_binary_file): Validate ftell return value.
9425
dc19db01
MS
9426 * ada-lang.c (ada_make_symbol_completion_list): Replace malloc
9427 with xmalloc.
9428
5ce64950
MS
9429 * ada-lang.c (aggregate_assign_others): Rename inner scope variable
9430 which shadows function parameter.
9431
a0aa2878
MS
9432 * tracepoint.c (create_tsv_from_upload): Superfluous call
9433 to xstrdup. Callee already calls xstrdup.
9434
e325fb69
MS
9435 * linespec.c (decode_line_1): Remove unnecessary null check.
9436
21cbba77
MS
9437 * tracepoint.c (scope_info): Fix mem leak, remove underused
9438 variable.
9439
63360adc
MS
9440 * python/py-prettyprint.c (apply_val_pretty_printer): Remove
9441 superfluous null check.
9442
18ea20ac 9443 * std-regs.c (value_of_builtin_frame_pc_reg): Frame can't be null.
23ce9890 9444 (value_of_builtin_frame_fp_reg): Ditto.
18ea20ac 9445
d014929c
MS
9446 * event-top.c (display_gdb_prompt): Remove superfluous null check.
9447
6e9130cf
MS
9448 * python/py-prettyprint.c (apply_val_pretty_printer): VAL may
9449 be null.
9450
5f01dbc0
MS
9451 * linespec.c (decode_line_1): Check for null before dereference.
9452
d684ab85
MS
9453 * reverse.c (record_restore): Move null-check to before pointer
9454 dereference.
9455
bfffb7e3
MS
9456 * python/py-utils.c (gdbpy_obj_to_string): Delete unused variable.
9457
a9dc8dcc
MS
9458 * objc-lang.c (selectors_info): Add explanitory comment.
9459 (classes_info): Ditto.
9460
478fd957
UW
94612011-03-01 Ulrich Weigand <ulrich.weigand@linaro.org>
9462
9463 * arm-linux-tdep.c (ARM_LDR_PC_SP_4): Add define.
9464 (arm_linux_restart_syscall_init): Handle both on-stack and in-kernel
9465 versions of the trampoline. Handle Thumb vs. ARM addresses.
9466 (arm_kernel_linux_restart_syscall_tramp_frame): New global.
9467 (arm_linux_init_abi): Install it.
9468 * arm-tdep.c (arm_psr_thumb_bit): Make global.
9469 * arm-tdep.c (arm_psr_thumb_bit): Add prototype.
9470
0480cefa
MS
94712011-02-28 Michael Snyder <msnyder@vmware.com>
9472
ac50ab3b
MS
9473 * ui-out.c (ui_out_field_core_addr): Make local char buffer
9474 a little bigger, to avoid possibility of an overflow.
9475
f63fbe86
MS
9476 * breakpoint.c (breakpoint_adjustment_warning): Make local char
9477 buffers a little bigger, to avoid possibility of an overflow.
9478
9e91a352
MS
9479 * coffread.c (coff_getfilename): Add check to avoid overflow.
9480
f2eb0bc8 9481 * objc-lang.c (selectors_info): Add a small safety margin to
28288541
MS
9482 avoid overflow.
9483 (classes_info): Error out on too long REGEXP.
9484
098ab512
MS
9485 * infrun.c (handle_inferior_event): Remove unused function call.
9486
bcbd1de9
MS
9487 * fork-child.c (fork_inferior): Remove ifdef'd code and
9488 unused variable.
9489
2e456570
MS
9490 * linux-thread-db.c (attach_thread): Discard unused value.
9491
14571dad
MS
9492 * linux-nat.c (linux_handle_extended_wait): Delete unused variable.
9493
a9cbf802
MS
9494 * remote.c (remote_get_noisy_reply): Discard unused value.
9495 (remote_vcont_resume): Ditto.
9496 (remote_stop_ns): Ditto.
9497
5715d26e
MS
9498 * linespec.c (decode_objc): Delete unused variable.
9499
4a9bca80
MS
9500 * tui/tui-regs.c (tui_register_format): Delete unused variable.
9501
f47fb265
MS
9502 * dwarf2read.c (add_partial_symbol): Discard unused values.
9503 (read_base_type): Delete unused variable.
9504
e81cff30
MS
9505 * dbxread.c (read_dbx_symtab): Discard unused value.
9506
262acaeb
MS
9507 * eval.c (evaluate_subexp_standard): Delete unused variable,
9508 and discard unused values.
9509
df983543
MS
9510 * infcmd.c (_initialize_infcmd): Discard unused values.
9511
89acf84d
MS
9512 * stabsread.c (rs6000_builtin_type): Missing break statement.
9513
ab8b8aca
MS
9514 * dbxread.c (process_one_symbol): Discard unused value.
9515
6b4511ab
MS
9516 * coffread.c (coff_end_symtab): Delete unused variable.
9517
e8e80198
MS
9518 * dwarf2read.c (dw2_get_file_names): Discard unused value.
9519 (dwarf2_add_typedef): Delete unused variable.
9520 (read_namespace): Ditto.
9521 (dwarf_decode_macros): Ditto.
9522
976aa66e
MS
9523 * m2-lang.c (evaluate_subexp_modula2): Discard unused variable.
9524
5b92b49f
MS
9525 * opencl-lang.c (evaluate_subexp_opencl): Discard unused value.
9526
91e8df85
MS
9527 * p-valprint.c (pascal_val_print): Discard unused value.
9528
899500d6
MS
9529 * utils.c (nquery): Call va_end before return;
9530 (yquery): Ditto.
9531 (query): Ditto.
9532
0480cefa
MS
9533 * proc-service.c (ps_plog): Call va_end before return.
9534
fb6a3ed3
TT
95352011-02-28 Tom Tromey <tromey@redhat.com>
9536
9537 * python/python.c (gdbpy_value_cst): New global.
9538 (_initialize_python): Initialize it.
9539 * python/python-internal.h (gdbpy_value_cst): Declare.
9540 * python/py-value.c (convert_value_from_python): Use
9541 gdbpy_value_cst.
9542
c05202a1
MS
95432011-02-28 Michael Snyder <msnyder@vmware.com>
9544
e463f587
MS
9545 * python/py-cmd.c (cmdpy_init): Fix memory leak.
9546
c38eea1a
MS
9547 * breakpoint.c (catch_syscall_completer): Free malloced list.
9548
3ef09ab5
MS
9549 * jv-lang.c (java_primitive_type_from_name): Add missing break.
9550
8f9a01ee
MS
9551 * opencl-lang.c (lval_func_check_validity): Rename inner variables.
9552 (lval_func_check_synthetic_pointer): Ditto.
9553 (lval_func_free_closure): Fix use-after-free.
c05202a1 9554
477d0d57
TT
95552011-02-28 Tom Tromey <tromey@redhat.com>
9556
9557 * psymtab.c (expand_partial_symbol_tables): Use
9558 ALL_OBJFILE_PSYMTABS.
9559
20937029
JK
95602011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
9561
9562 * objc-lang.c (selectors_info): Error on too long REGEXP.
9563
907b7f4f
MS
95642011-02-28 Michael Snyder <msnyder@vmware.com>
9565
92e96192
MS
9566 * python/py-param.c (set_parameter_value): Add missing
9567 break statement.
9568
907b7f4f
MS
9569 * linux-record.c (record_linux_system_call): Add missing
9570 break statement.
9571
12c5a436
UW
95722011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
9573
9574 * breakpoint.c (print_one_breakpoint_location): Remove unused
9575 argument PRINT_ADDRESS_BITS. Update callers.
9576 (print_one_breakpoint): Likewise.
9577
170b53b2
UW
95782011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
9579
9580 * breakpoint.c (wrap_indent_at_field): New function.
9581 (print_breakpoint_location): Use it instead of WRAP_INDENT argument.
9582 Allocate ui_stream locally instead of using STB argument.
9583 (print_one_breakpoint_location): Update call.
9584 * ui-out.c (ui_out_query_field): New function.
9585 * ui-out.h (ui_out_query_field): Add prototype.
9586
8ab1f94d
JB
95872011-02-28 Joel Brobecker <brobecker@adacore.com>
9588
9589 From Michael Snyder <msnyder@vmware.com>
9590 * ada-exp.y (write_object_renaming): Add FALLTHROUGH comment.
9591
7d488639
MS
95922011-02-27 Michael Snyder <msnyder@vmware.com>
9593
ae179fba
MS
9594 * objc-lang.c (selectors_info): Prevent string overrun.
9595
086dbf66
MS
9596 * tui/tui-stack.c (tui_get_function_from_frame): Fix off by one
9597 error in strncpy.
9598
f2eb0bc8 9599 * symtab.c (rbreak_command): Move variable 'file_name' to
9c1e305a
MS
9600 outer scope.
9601
7d488639
MS
9602 * d-valprint.c (dynamic_array_type): Avoid shadowing a function
9603 param with a local variable of the same name.
9604
3bd0f5ef
MS
96052011-02-27 Michael Snyder <msnyder@vmware.com>
9606
9607 * value.c (value_from_history_ref): New function.
9608 * value.h (value_from_history_ref): Export.
9609 * cli/cli-utils.c (get_number_trailer): Use value_from_history_ref
9610 to parse value history references.
9611 * cli/cli-utils.h (get_number_trailer): Update comment.
9612
96132011-02-27 Michael Snyder <msnyder@vmware.com>
9614
9615 * inferior.c (detach_inferior_command): Use get_number_or_range.
9616 (kill_inferior_command): Ditto.
9617 (remove_inferior_command): Ditto.
9618 (initialize_inferiors): Make command names plural.
9619 Update help strings.
9620
766062f6
MS
96212011-02-27 Michael Snyder <msnyder@vmware.com>
9622
9623 * darwin-nat-info.c: Fix comment typo.
9624 * dwarf2expr.h: Ditto.
9625 * fbsd-nat.c: Ditto.
9626 * fbsd-nat.h: Ditto.
9627 * frame-unwind.h: Ditto.
9628 * frame.h: Ditto.
9629 * hppa-hpux-tdep.c: Ditto.
9630 * i386-linux-nat.c: Ditto.
9631 * linux-nat.c: Ditto.
9632 * nbsd-nat.c: Ditto.
9633 * nbsd-nat.h: Ditto.
9634 * ppc-linux-tdep.c: Ditto.
9635 * serial.c: Ditto.
9636 * ui-file.h: Ditto.
9637 * tui/tui-winsource.c: Ditto.
9638
f2c4ead5
MS
96392011-02-26 Michael Snyder <msnyder@vmware.com>
9640
86b887df
MS
9641 * breakpoint.c (reattach_breakpoints): Avoid resource leak (ui_file).
9642
66fd3b1e
MS
9643 * maint.c (maintenance_do_deprecate): Plug a memory leak.
9644
8c814cdd
MS
9645 * dwarf2loc.c (insert_bits): Avoid shadowing a function param
9646 with a local variable of the same name.
9647
6d5e094a 9648 * i387-tdep.c (i387_supply_fxsave): Avoid shadowing a function
e5b3d7d6 9649 param with a local variable of the same name.
6d5e094a 9650 (i387_supply_xsave): Ditto.
e5b3d7d6 9651
5eee517d
MS
9652 * linux-low.c (linux_nat_xfer_osdata): Rename local variable so
9653 that it does not shadow a function parameter.
9654
8fbf6b93
MS
9655 * i386-nat.c (i386_length_and_rw_bits): Document that case
9656 statement is meant to fall through.
9657
cb969d61
MS
9658 * expprint.c (dump_subexp_body_standard): Document that case
9659 statement is meant to fall through.
9660
f2c4ead5
MS
9661 * amd64-linux-tdep.c (amd64_linux_syscall_record): Delete
9662 dead if statement. Condition can't be false.
9663
b021a221
MS
96642011-02-25 Michael Snyder <msnyder@vmware.com>
9665
9666 * arm-tdep.c: Fix typos in comments.
9667 * bsd-uthread.c: Ditto.
9668 * completer.c: Ditto.
9669 * corelow.c: Ditto.
9670 * cp-namespace.c: Ditto.
9671 * cp-support.c: Ditto.
9672 * cris-tdep.c: Ditto.
9673 * dbxread.c: Ditto.
9674 * dwarf2read.c: Ditto.
9675 * frame.h: Ditto.
9676 * gdbtypes.h: Ditto.
9677 * inferior.h: Ditto.
9678 * mdebugread.c: Ditto.
9679 * mips-tdep.c: Ditto.
9680 * ppc-linux-nat.c: Ditto.
9681 * ppc-linux-tdep.c: Ditto.
9682 * printcmd.c: Ditto.
9683 * sol-thread.c: Ditto.
9684 * solib-frv.c: Ditto.
9685 * solist.h: Ditto.
9686 * sparc64-tdep.c: Ditto.
9687 * spu-tdep.c: Ditto.
9688 * stabsread.c: Ditto.
9689 * symfile.c: Ditto.
9690 * valops.c: Ditto.
9691 * varobj.c: Ditto.
9692 * vax-nat.c: Ditto.
9693 * python/py-block.c: Ditto.
9694 * python/py-symbol.c: Ditto.
9695 * python/py-symtab.c: Ditto.
9696 * python/py-value.c: Ditto.
9697 * tui/tui-win.c: Ditto.
9698
c82c0b55
MS
96992011-02-25 Michael Snyder <msnyder@vmware.com>
9700
9701 * inferior.c (print_inferior): Accept a string instead of an int
9702 for requested_inferiors, and use get_number_or_range to parse it.
9703 (info_inferiors_command): Pass args string to print_inferior.
9704 (initialize_inferiors): Change help string for info inferiors.
9705 * inferior.h (print_inferior): Export prototype change.
9706
ee00cd23
TT
97072011-02-25 Tom Tromey <tromey@redhat.com>
9708
9709 * common/ax.def (invalid2): Set to 0x31.
9710
0502ed8c
JK
97112011-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
9712
9713 * dwarf2loc.c (disassemble_dwarf_expression) <DW_OP_breg[0-9]+>: Use
9714 L and plongest.
9715 (disassemble_dwarf_expression) <DW_OP_bregx>: Drop variable offset,
9716 use L and plongest.
9717 (disassemble_dwarf_expression) <DW_OP_fbreg>: Use L and plongest.
9718
2c9de912
MS
97192011-02-24 Michael Snyder <msnyder@vmware.com>
9720
9721 * Makefile.in (clean): Make clean should remove generated files
9722 observer.h and observer.inc.
9723
a04b0428
JB
97242011-02-24 Joel Brobecker <brobecker@adacore.com>
9725
9726 Revert the following patch (not approved yet):
9727 2011-02-21 Hui Zhu <teawater@gmail.com>
9728 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
9729 * ax-gdb.c (gen_printf_expr_callback): New function.
9730 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
9731 * ax-general.c (ax_memcpy): New function.
9732 (ax_print): Handle "printf".
9733 (ax_reqs): Ditto.
9734 * ax.h (ax_memcpy): Forward declare.
9735 * common/ax.def (invalid2): Removed.
9736 (printf): New entry.
9737 * printcmd.c (printcmd.h): New include.
9738 (string_printf): New function.
9739 (ui_printf): Removed.
9740 (printf_command): Remove static. Call string_printf.
9741 (eval_command): Call string_printf.
9742 * printcmd.h: New file.
9743 * tracepoint.c (validate_actionline,
9744 encode_actions_1): handle printf_command.
9745
2b52013f
TT
97462011-02-23 Tom Tromey <tromey@redhat.com>
9747
9748 * ax-general.c (ax_pick): Add missing newline.
9749
e5a67952
MS
97502011-02-23 Michael Snyder <msnyder@vmware.com>
9751
9752 * breakpoint.c (breakpoint_1): Change first argument from an int
9753 to a char pointer, so that the function now accepts a list of
f2eb0bc8 9754 breakpoints rather than just one. Use new function
e5a67952
MS
9755 'number_is_in_list' to implement.
9756 (breakpoints_info): Pass char * instead of int to breakpoint_1.
9757 (watchpoints_info): Ditto.
9758 (tracepoints_info): Ditto.
9759 (maintenance_info_breakpoints): Ditto.
9760 (_initialize_breakpoint): Update help strings to reflect the fact
9761 that these functions can now take more than one argument.
9762 * cli/cli-utils.c (number_is_in_list): New function.
9763 * cli/cli-utils.h (number_is_in_list): Export.
9764
97652011-02-23 Michael Snyder <msnyder@vmware.com>
fbcb778d
MS
9766
9767 * memattr.c (mem_enable_command): Use get_number_or_range.
9768 (mem_disable_command): Ditto.
9769 (mem_delete_command): Ditto.
9770 (_initialize_mem): Tweak usage message to reflect multiple
9771 arguments.
9772
6e6fbe60
DE
97732011-02-22 Doug Evans <dje@google.com>
9774
9775 Add gdb.lookup_global_symbol python function.
9776 * NEWS: Add entry.
9777 * python/py-symbol.c (gdbpy_lookup_global_symbol): New function.
9778 * python/python-internal.h (gdbpy_lookup_global_symbol): Declare it.
9779 * python/python.c (GdbMethods): Add entry for lookup_global_symbol.
9780
79b97fa8
TT
97812011-02-22 Tom Tromey <tromey@redhat.com>
9782
9783 * language.c (language_class_name_from_physname): Rename
9784 'curr_language' argument to 'lang'; use in body.
9785
298f437a
MS
97862011-02-22 Michael Snyder <msnyder@vmware.com>
9787
9788 * cli/cli-utils.c (number_is_in_list): Check for zero return.
9789
b7ea3126
PA
97902011-02-22 Pedro Alves <pedro@codesourcery.com>
9791
9792 * frame-unwind.h: Fix comment to mention the this frame, not the
9793 next.
9794
58ee6d60
TT
97952011-02-22 Tom Tromey <tromey@redhat.com>
9796
9797 * symfile.c (auto_solib_limit): Remove.
9798 * symfile.h (auto_solib_limit): Remove.
9799
36238dbc
JB
98002011-02-22 Joel Brobecker <brobecker@adacore.com>
9801
9802 * Makefile.in (INSTALLED_LIBS): Delete. Update comment.
9803
aea5b279
MS
98042011-02-21 Michael Snyder <msnyder@vmware.com>
9805
9806 * gdbthread.h (print_thread_info): Change prototype.
9807 * thread.c (print_thread_info): Accept char* instead of int for
9808 requested_threads argument. Use new function number_is_in_list
9809 to determine which threads to list.
9810 (info_threads_command): Pass char* to print_thread_info.
9811 * cli/cli-utils.c (number_is_in_list): New function.
9812 * cli/cli-utils.h (number_is_in_list): Export.
f2eb0bc8 9813 * mi/mi-main.c (mi_cmd_thread_info): Pass char* to
aea5b279
MS
9814 print_thread_info.
9815 (print_one_inferior): Ditto.
9816 (mi_cmd_list_thread_groups): Ditto.
9817
8caa75ee
JK
98182011-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
9819
9820 * common/Makefile.in (CFLAGS): New.
9821 (COMPILE): Add $(CFLAGS).
9822
ea666128
TT
98232011-02-21 Tom Tromey <tromey@redhat.com>
9824
9825 * breakpoint.c (catch_syscall_command_1): Fix typo.
9826
e9cafbcc
TT
98272011-02-21 Tom Tromey <tromey@redhat.com>
9828
9829 * reverse.c: Include cli-utils.h.
9830 * printcmd.c: Include cli-utils.h.
9831 (string_printf): Use skip_spaces.
9832 * cli/cli-utils.h: New file.
9833 * cli/cli-utils.c: New file.
9834 * cli/cli-dump.h (skip_spaces): Move to cli-utils.h.
9835 * cli/cli-dump.c (skip_spaces): Move to cli-utils.c.
9836 * breakpoint.h (get_number, get_number_or_range): Move to
9837 cli-utils.h.
9838 * breakpoint.c: Include cli-utils.h.
9839 (get_number_trailer, get_number, get_number_or_range)
9840 (ep_skip_leading_whitespace): Move to cli-utils.c.
9841 (create_breakpoint_sal, find_condition_and_thread)
9842 (decode_static_tracepoint_spec, watch_command_1)
9843 (watch_maybe_just_location, ep_parse_optional_if_clause)
9844 (catch_fork_command_1, catch_exec_command_1)
9845 (catch_syscall_command_1): Use skip_spaces, skip_to_space.
9846 * Makefile.in (SUBDIR_CLI_OBS): Add cli-utils.o.
9847 (SUBDIR_CLI_SRCS): Add cli-utils.c.
9848 (HFILES_NO_SRCDIR): Add cli-utils.h.
9849 (cli-utils.o): New target.
9850
f67fd822
PM
98512011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
9852
9853 * remote.c (remote_close): Reset INFERIOR_PTID to NULL_PTID
9854 before calling discard_all_inferiors.
9855
c9def01d
UW
98562011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
9857
9858 * opencl-lang.c (STRUCT_OCL_TYPE): Remove.
9859 (struct builtin_opencl_type): Remove.
9860 (builtin_opencl_type): Change return type to "struct type **".
9861 (lookup_opencl_vector_type): Update caller.
9862 (opencl_language_arch_info): Copy primitive type vector from gdbarch.
9863 (build_opencl_types): Install plain array of "struct type *"
9864 instead of "struct builtin_opencl_type".
9865
e3039479
UW
98662011-02-21 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
9867 Ulrich Weigand <uweigand@de.ibm.com>
9868
9869 * arm-linux-nat.c: Include "observer.h" and "gdbthread.h".
9870 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define.
9871 (struct arm_linux_hwbp_cap): New type.
9872 (arm_linux_get_hwbp_cap): New function.
9873 (arm_linux_get_hw_breakpoint_count): Likewise.
9874 (arm_linux_get_hw_watchpoint_count): Likewise.
9875 (arm_linux_can_use_hw_breakpoint): Likewise.
9876 (arm_hwbp_type): New type.
9877 (arm_hwbp_control_t): Likewise.
9878 (struct arm_linux_hw_breakpoint): Likewise.
9879 (struct arm_linux_thread_points): Likewise.
9880 (arm_threads): New global variable.
9881 (arm_linux_find_breakpoints_by_tid): New function.
9882 (arm_hwbp_control_initialize): Likewise.
9883 (arm_hwbp_control_is_enabled): Likewise.
9884 (arm_hwbp_control_disable): Likewise.
9885 (arm_linux_hw_breakpoint_initialize): Likewise.
9886 (arm_linux_get_hwbp_type): Likewise.
9887 (arm_linux_hw_watchpoint_initialize): Likewise.
9888 (arm_linux_hw_breakpoint_equal): Likewise.
9889 (arm_linux_insert_hw_breakpoint1): Likewise.
9890 (arm_linux_remove_hw_breakpoint1): Likewise.
9891 (arm_linux_insert_hw_breakpoint): Likewise.
9892 (arm_linux_remove_hw_breakpoint): Likewise.
9893 (arm_linux_region_ok_for_hw_watchpoint): Likewise.
9894 (arm_linux_insert_watchpoint): Likewise.
9895 (arm_linux_remove_watchpoint): Likewise.
9896 (arm_linux_stopped_data_address): Likewise.
9897 (arm_linux_stopped_by_watchpoint): Likewise.
9898 (arm_linux_watchpoint_addr_within_range): Likewise.
9899 (arm_linux_new_thread): Likewise.
9900 (arm_linux_thread_exit): Likewise.
9901 (_initialize_arm_linux_nat): Install hardware breakpoint/watchpoint
9902 related target callbacks. Register arm_linux_new_thread and
9903 arm_linux_thread_exit.
9904 * arm-tdep.h (arm_pc_is_thumb): Add prototype.
9905 * arm-tdep.c (arm_pc_is_thumb): Make global.
9906 (arm_gdbarch_init): Call set_gdbarch_have_nonsteppable_watchpoint.
9907
b5db5dfc
UW
99082011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
9909
9910 * breakpoint.c (update_watchpoint): Do not attempt to recreate
9911 per-frame locations while within a function epilogue.
9912
e25b2cfa
PM
99132011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
9914
9915 * ser-mingw.c (ser_windows_close): Reformat comment to better conform
9916 to GNU coding standards.
9917
4af53f97
PM
99182011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
9919
9920 Allow use of mingw native on Windows 95 OS.
e25b2cfa 9921 * ser-mingw.c (CancelIo): New macro for dynamically loaded DLL entry.
4af53f97
PM
9922 (ser_windows_close): Only call CancelIo if function exists.
9923 (_initialize_ser_windows): Use LoadLirary/GetProcAddress
9924 to check for existence of CancelIo function in kernel32 DLL.
9925
d0e92d82
HZ
99262011-02-21 Hui Zhu <teawater@gmail.com>
9927
9928 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
9929 * ax-gdb.c (gen_printf_expr_callback): New function.
9930 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
9931 * ax-general.c (ax_memcpy): New function.
9932 (ax_print): Handle "printf".
9933 (ax_reqs): Ditto.
9934 * ax.h (ax_memcpy): Forward declare.
9935 * common/ax.def (invalid2): Removed.
9936 (printf): New entry.
9937 * printcmd.c (printcmd.h): New include.
9938 (string_printf): New function.
9939 (ui_printf): Removed.
9940 (printf_command): Remove static. Call string_printf.
9941 (eval_command): Call string_printf.
9942 * printcmd.h: New file.
9943 * tracepoint.c (validate_actionline,
9944 encode_actions_1): handle printf_command.
9945
7d357efd
MS
99462011-02-19 Michael Snyder <msnyder@vmware.com>
9947
9948 * reverse.c (delete_one_bookmark): Argument is now bookmark
9949 id rather than pointer to bookmark struct.
9950 (delete_bookmark_command): Use get_number_or_range.
9951 (goto_bookmark_command): Parse with get_number instead of strtoul.
9952 (bookmark_1): New function. Print info for one bookmark.
9953 (bookmarks_info): Use get_number_or_range and bookmark_1.
9954
7a45ebd7
MS
99552011-02-18 Michael Snyder <msnyder@vmware.com>
9956
f2eb0bc8 9957 * thread.c (info_threads_command): Re-implement using
7a45ebd7 9958 get_number_or_range.
65ebfb52 9959 (thread_apply_command): Ditto.
7a45ebd7 9960
94d5e490
TT
99612011-02-18 Tom Tromey <tromey@redhat.com>
9962
9963 * common/ax.def: New file.
9964 * ax.h (enum agent_op): Use ax.def.
9965 * ax-general.c (aop_map): Use ax.def.
9966
c7f96d2b
TT
99672011-02-18 Tom Tromey <tromey@redhat.com>
9968
9969 * ax-general.c (aop_map): Add pick and rot.
9970 * dwarf2loc.c (compile_dwarf_to_ax) <DW_OP_over>: Reimplement.
9971 <DW_OP_rot>: Implement.
9972 * ax.h (enum agent_op) <aop_pick, aop_rot>: New constants.
9973 (ax_pick): Declare.
9974 * ax-general.c (ax_pick): New function.
9975
66694b75
TT
99762011-02-18 Tom Tromey <tromey@redhat.com>
9977
9978 * Makefile.in (HFILES_NO_SRCDIR): Don't mention ada-operator.inc.
9979
eeaafae2
JK
99802011-02-18 Jan Kratochvil <jan.kratochvil@redhat.com>
9981 Tom Tromey <tromey@redhat.com>
9982
9983 * cp-support.c (make_symbol_overload_list_namespace): Do not call
9984 make_symbol_overload_list_block with NULL BLOCK.
9985 * valarith.c (unop_user_defined_p): Resolve also TYPE_CODE_TYPEDEF.
9986
3c3fe74c
PA
99872011-02-18 Pedro Alves <pedro@codesourcery.com>
9988
9989 * breakpoint.c (get_number_trailer): No longer accept a NULL PP.
9990 * breakpoint.h (get_number_or_range): Declare.
9991 * printcmd.c (ALL_DISPLAYS): Declare.
9992 (delete_display): Reimplement taking a display pointer.
9993 (undisplay_command): Accept a range of displays to delete, using
9994 get_number_or_range.
9995
13163d80
PM
99962011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
9997
9998 * c-valprint.c (c_val_print): Add embedded_offset to address
9999 for arrays of unspecified length.
10000 * p-valprint.c (pascal_val_print): Likewise.
10001
b434a28f
YQ
100022011-02-18 Yao Qi <yao@codesourcery.com>
10003
10004 * gdb/arm-tdep.c (arm_displaced_step_copy_insn): Move code to ...
10005 (arm_process_displaced_insn): .. here. Remove parameter INSN.
10006 (thumb_process_displaced_insn): New.
10007 * gdb/arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Update
10008 call to arm_process_displaced_insn.
10009 * gdb/arm-tdep.h : Update declaration of arm_process_displaced_insn.
10010
9f6f94ff
TT
100112011-02-17 Tom Tromey <tromey@redhat.com>
10012
10013 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Declare.
10014 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Rename from
10015 compile_dwarf_to_ax. No longer static. Call
10016 dwarf2_compile_cfa_to_ax.
10017 (locexpr_tracepoint_var_ref): Update.
10018 (loclist_tracepoint_var_ref): Update.
10019 * dwarf2-frame.h (dwarf2_compile_cfa_to_ax): Declare.
10020 * dwarf2-frame.c (execute_cfa_program): Remove 'this_frame'
10021 argument; add 'gdbarch' and 'pc'.
10022 (dwarf2_compile_cfa_to_ax): New function.
10023 (dwarf2_frame_cache): Update.
10024
e67ad678
JB
100252011-02-17 Joel Brobecker <brobecker@adacore.com>
10026
10027 * ada-lang.c (ada_type_of_array): Fix the size of the array
10028 in the case of an unconstrained packed array.
10029
946ebb0d
YQ
100302011-02-17 Yao Qi <yao@codesourcery.com>
10031
10032 * common/Makefile.in: Add more targets for make.
10033
1ba1b353
TT
100342011-02-16 Tom Tromey <tromey@redhat.com>
10035
10036 * dwarf2loc.c (unimplemented): Fix typo.
10037
b1bfef65
TT
100382011-02-16 Tom Tromey <tromey@redhat.com>
10039
10040 * dwarf2loc.c (unimplemented): Handle unnamed opcodes.
10041 (compile_dwarf_to_ax) <default>: Use unimplemented.
10042 <DW_OP_deref>: Update.
10043 (disassemble_dwarf_expression): Update.
10044 * dwarf2read.c (dwarf_stack_op_name): Remove 'def' argument.
10045 (decode_locdesc): Update.
10046 * dwarf2expr.h (dwarf_stack_op_name): Update.
10047
5f1e6f19
TT
100482011-02-16 Tom Tromey <tromey@redhat.com>
10049
10050 * ax.h (struct aop_map) <name>: Now const.
10051
a0c78a73
PA
100522011-02-16 Tom Tromey <tromey@redhat.com>
10053
10054 * ax-gdb.c.c (gen_expr) <UNOP_MEMVAL>: Handle value kinds other
10055 than axs_rvalue.
10056
946ebb0d 100572011-02-16 Yao Qi <yao@codesourcery.com>
a42244db
YQ
10058
10059 * infrun.c (get_displaced_step_closure_by_addr): New.
10060 * inferior.h: Declare it.
10061 * arm-tdep.c: (arm_pc_is_thumb): Call
10062 get_displaced_step_closure_by_addr. Adjust MEMADDR if it
10063 returns non-NULL.
10064
08807d5a
PA
100652011-02-16 Pedro Alves <pedro@codesourcery.com>
10066 Jan Kratochvil <jan.kratochvil@redhat.com>
10067
10068 gdb/
10069 * tracepoint.c (memrange_sortmerge): Fix list A's end calculation.
10070
29976f3f
PA
100712011-02-16 Pedro Alves <pedro@codesourcery.com>
10072 Jan Kratochvil <jan.kratochvil@redhat.com>
10073
10074 * value.c (value_contents_copy_raw): Extend describing comment.
10075 Assert that the destination contents we're overwriting are wholly
10076 available.
fb68ae73 10077 (value_contents_copy): Extend describing comment.
29976f3f 10078
cd24cfaa
PA
100792011-02-16 Pedro Alves <pedro@codesourcery.com>
10080 Jan Kratochvil <jan.kratochvil@redhat.com>
10081
10082 * value.c (value_available_contents_eq): Remove redundant local
10083 variables. Fix available contents comparision.
10084 * value.h (value_available_contents_eq): Extend describing
10085 comment.
10086
60bbf338
YQ
100872011-02-16 Yao Qi <yao@codesourcery.com>
10088
10089 * thread.c (info_threads_command): Add missing i18n markup and remove
10090 trailing newline.
10091
17450429
PP
100922011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
10093
10094 * breakpoint.c (longjmp_names): New variable.
10095 (struct breakpoint_objfile_data): New type.
10096 (breakpoint_objfile_key): New variable.
10097 (msym_not_found): New variable.
10098 (msym_not_found_p): New predicate.
10099 (get_breakpoint_objfile_data): New function.
10100 (create_overlay_event_breakpoint): Check per-objfile cache for
10101 symbols first.
10102 (create_longjmp_master_breakpoint): Likewise.
10103 (create_std_terminate_master_breakpoint): Likewise.
10104 (create_exception_master_breakpoint): Likewise.
10105 (_initialize_breakpoint): Register per-objfile data key.
10106
af02033e
PP
101072011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
10108
10109 * breakpoint.c ((create_overlay_event_breakpoint): Const-propagate
10110 parameter value.
10111 (create_longjmp_master_breakpoint): Loop over longjmp names.
10112 (create_std_terminate_master_breakpoint): Const-propagate parameter
10113 value.
10114 (update_breakpoints_after_exec): Adjust.
10115 (breakpoint_re_set): Adjust.
10116
60f98dde
MS
101172011-02-15 Michael Snyder <msnyder@vmware.com>
10118
cdf99611
MS
10119 * thread.c (info_threads_command): Process arg as thread id,
10120 or list of thread ids.
10121 (thread_find_command): New command.
10122 (_initialize_thread): Document argument for info threads.
10123 Document 'thread find' command.
10124 * NEWS: Document new command "thread find".
60f98dde 10125
0feedb2c
JK
101262011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10127
10128 * Makefile.in (ACLOCAL_AMFLAGS): Add `-I ../config'.
10129 * aclocal.m4: Regenerated with aclocal-1.11.1.
10130 * common/configure: Regenerate with autoconf-2.64.
10131
648cd113
KW
101322011-02-15 Ken Werner <ken.werner@de.ibm.com>
10133
10134 * opencl-lang.c (build_opencl_types): Set the size of the built-in
10135 bool data type to a size of one byte.
10136
5657161f
PA
101372011-02-15 Pedro Alves <pedro@codesourcery.com>
10138 Jan Kratochvil <jan.kratochvil@redhat.com>
10139
10140 * target.c (memory_xfer_live_readonly_partial): Document where to
10141 look for interface description.
10142
494e194e
YQ
101432011-02-15 Yao Qi <yao@codesourcery.com>
10144
10145 PR tdep/12352
10146 * arm-tdep.c (copy_ldr_str_ldrb_strb): Replace PC with SP in
10147 order to store PC value on stack instead of text section.
10148
d9492458
TJB
101492011-02-15 Thiago Jung Bauermann <bauerman@br.ibm.com>
10150
10151 * rs6000-tdep.c (IS_EFP_PSEUDOREG): Use correct constant for
10152 the EFP register set size.
10153 (efpr_pseudo_register_read): Use regcache_raw_read_part to read
10154 data from the VMX register.
10155 (efpr_pseudo_register_write): Use regcache_raw_write_part to read
10156 and write data from/to the VMX register.
10157
cdf99611
MS
101582011-02-14 Michael Snyder <msnyder@vmware.com>
10159
10160 * command.h (enum command_class): New class 'no_set_class', for
10161 "show" commands without a corresponding "set" command.
10162 * value.c (_initialize_values): Use 'no_set_class' for "show values".
10163 * copying.c (_initialize_copying): Ditto for "show copying" and
10164 "show warranty".
10165 * cli/cli-cmds.c (init_cli_cmds): Ditto for "show commands" and
10166 "show version".
10167 * cli/cli-setshow.c (cmd_show_list): Skip "show" commands for
10168 which there is no corresponding "set" command (eg. "show copying").
10169
424447ee
PA
101702011-02-14 Pedro Alves <pedro@codesourcery.com>
10171 Jan Kratochvil <jan.kratochvil@redhat.com>
10172
10173 * exec.c (section_table_available_memory): Change `len' parameter
10174 type to ULONGEST.
10175 * exec.h (section_table_available_memory): Ditto.
10176 * value.h (read_value_memory): Rename the `offset' parameter to
10177 `embedded_offset'.
10178
c0f61f9c 101792011-02-14 Pedro Alves <pedro@codesourcery.com>
e0ccc0c7 10180 Jan Kratochvil <jan.kratochvil@redhat.com>
c0f61f9c
PA
10181
10182 * memrange.c (compare_mem_ranges): Mention sort order in
10183 describing comment.
10184 (normalize_mem_ranges): Add comment. Fix ra->length calculation.
10185 * tracepoint.c (traceframe_available_memory): Extend comment to
10186 mention what happens to RESULT when the target does not support
10187 the query.
10188
6bfc80c7
PA
101892011-02-14 Pedro Alves <pedro@codesourcery.com>
10190 Jan Kratochvil <jan.kratochvil@redhat.com>
10191
10192 * value.c (mark_value_bytes_unavailable): Fix indexing the `bef'
10193 range.
10194
e7303042
PA
101952011-02-14 Pedro Alves <pedro@codesourcery.com>
10196
10197 * value.c (value_bits_valid, value_bits_synthetic_pointer):
10198 No longer handle NULL values.
10199
8af8e3bc
PA
102002011-02-14 Pedro Alves <pedro@codesourcery.com>
10201
10202 * exceptions.h (NOT_AVAILABLE_ERROR): New error.
10203 * value.c: Include "exceptions.h".
10204 (require_available): Throw NOT_AVAILABLE_ERROR instead of a
10205 generic error.
10206 * cp-abi.c: Include gdb_assert.h.
10207 (baseclass_offset): Add `embedded_offset' and `val' parameters.
10208 Assert the method is implemented. Wrap NOT_AVAILABLE_ERROR
10209 errors.
10210 * cp-abi.h (baseclass_offset): Add `embedded_offset' and `val'
10211 parameters. No longer returns -1 on error.
10212 (struct cp_abi_ops) <baseclass_offset>: Add `embedded_offset' and
10213 `val' parameters.
10214 * cp-valprint.c: Include exceptions.h.
10215 (cp_print_value): Handle NOT_AVAILABLE_ERROR errors when fetching
10216 the baseclass_offset. Handle unavailable base classes. Use
10217 val_print_invalid_address.
10218 * p-valprint.c: Include exceptions.h.
10219 (pascal_object_print_value): Handle NOT_AVAILABLE_ERROR errors
10220 when fetching the baseclass_offset. No longer expect
10221 baseclass_offset returning -1. Handle unavailable base classes.
10222 Use val_print_invalid_address.
10223 * valops.c (dynamic_cast_check_1): Rename `contents' parameter to
10224 `valaddr' parameter, and change its type to gdb_byte pointer. Add
10225 `embedded_offset' and `val' parameters. Adjust.
10226 (dynamic_cast_check_2): Rename `contents' parameter to `valaddr'
10227 parameter, and change its type to gdb_byte pointer. Add
10228 `embedded_offset' and `val' parameters. Adjust. No longer expect
10229 baseclass_offset returning -1.
10230 (value_dynamic_cast): Use value_contents_for_printing rather than
10231 value_contents. Adjust.
10232 (search_struct_field): No longer expect baseclass_offset returning
10233 -1.
10234 (search_struct_method): If reading memory from the target is
10235 necessary, wrap it in a new value to pass to baseclass_offset. No
10236 longer expect baseclass_offset returning -1.
10237 (find_method_list): No longer expect baseclass_offset returning
10238 -1. Use value_contents_for_printing rather than value_contents.
10239 * valprint.c (val_print_invalid_address): New function.
10240 * valprint.h (val_print_invalid_address): Declare.
10241 * gdbtypes.c (is_unique_ancestor_worker): New `embedded_offset'
10242 and `val' parameters. No longer expect baseclass_offset returning
10243 -1. Adjust.
10244 * gnu-v2-abi.c: Include "exceptions.h".
10245 (gnuv2_baseclass_offset): Add `embedded_offset' and `val'
10246 parameters. Handle unavailable memory. Recurse through
10247 gnuv2_baseclass_offset directly, rather than through
10248 baseclass_offset. No longer returns -1 on not found, instead
10249 throw an error.
10250 * gnu-v3-abi.c (gnuv3_baseclass_offset): Add `embedded_offset' and
10251 `val' parameters. Adjust.
10252
1b28d0b3
PA
102532011-02-14 Pedro Alves <pedro@codesourcery.com>
10254
10255 * tracepoint.c (memrange_sortmerge): Don't merge ranges that are
10256 almost but not quite adjacent.
10257
ec0a52e1
PA
102582011-02-14 Pedro Alves <pedro@codesourcery.com>
10259
10260 * value.h (value_entirely_available): Declare.
10261 * value.c (value_entirely_available): New function.
10262 * c-valprint.c (c_value_print): Don't try fetching the pointer's
10263 real type if the pointer is unavailable.
10264
24e6bcee
PA
102652011-02-14 Pedro Alves <pedro@codesourcery.com>
10266
10267 * valops.c (value_repeat): Use read_value_memory instead of
10268 read_memory.
10269
39d37385
PA
102702011-02-14 Pedro Alves <pedro@codesourcery.com>
10271
10272 * value.h (value_contents_copy, value_contents_copy_raw): Declare.
10273 * value.c (value_contents_copy_raw, value_contents_copy): New
10274 functions.
10275 (value_primitive_field): Use value_contents_copy_raw instead of
10276 memcpy.
10277 * valops.c (value_fetch_lazy): Use value_contents_copy instead of
10278 memcpy.
10279 (value_array, value_slice): Ditto.
10280 * valarith.c (value_subscripted_rvalue): Use
10281 value_contents_copy_raw instead of memcpy.
10282
a3d34bf4
PA
102832011-02-14 Pedro Alves <pedro@codesourcery.com>
10284
10285 <unavailable> references.
10286
10287 * valops.c (get_value_at): Use value_from_contents_and_address,
10288 avoiding read_memory.
10289
9fc6d940
PA
102902011-02-14 Pedro Alves <pedro@codesourcery.com>
10291
10292 * c-valprint.c (c_val_print): Print a string with unavailable
10293 contents as an array.
10294
5467c6c8
PA
102952011-02-14 Pedro Alves <pedro@codesourcery.com>
10296
10297 * value.h (unpack_bits_as_long): Delete declaration.
10298 (unpack_value_bits_as_long): Declare.
10299 (unpack_value_field_as_long): Declare.
10300 (value_field_bitfield): Declare.
10301 * value.c (unpack_bits_as_long): Rename to...
10302 (unpack_value_bits_as_long_1): ... this. Add embedded_offset and
10303 value parameters. Return the extracted result in a new output
10304 parameter. If the value contents are unavailable, return false,
10305 otherwise return true.
10306 (unpack_value_bits_as_long): New.
10307 (unpack_field_as_long): Rename to...
10308 (unpack_value_field_as_long_1): ... this. Add embedded_offset and
10309 Add embedded_offset and value parameters. Return the extracted
10310 result in a new output parameter. If the value contents are
10311 unavailable, return false, otherwise return true.
10312 (unpack_value_field_as_long): New.
10313 (unpack_field_as_long_1): New.
10314 (unpack_field_as_long): Reimplement as wrapper around
10315 unpack_value_field_as_long_1.
10316 (value_field_bitfield): New function.
10317 * valops.c (value_fetch_lazy): When fetching a bitfield, use
10318 unpack_value_bits_as_long. Mark the value as unavailable, if it
10319 is unavailable.
10320 * jv-valprint.c (java_print_value_fields): Use
10321 value_field_bitfield.
10322 * p-valprint.c (pascal_object_print_value_fields): Use
10323 value_field_bitfield.
10324 * cp-valprint.c (cp_print_value_fields): Use value_field_bitfield.
10325
3158c6ed
PA
103262011-02-14 Pedro Alves <pedro@codesourcery.com>
10327
10328 * value.c (get_internalvar_integer): Also return the int value of
10329 TYPE_CODE_INT INTERNALVAR_VALUE values.
10330 (set_internalvar): Don't special case TYPE_CODE_INT.
10331
9fbdca0d
PA
103322011-02-14 Pedro Alves <pedro@codesourcery.com>
10333
10334 * value.c (struct internalvar) <enum internalvar_kind>: Remove
10335 INTERNALVAR_POINTER.
10336 <pointer>: Delete.
10337 (value_of_internalvar): Remove INTERNALVAR_POINTER handling.
10338 (set_internalvar): Remove special TYPE_CODE_PTR handling.
10339 (preserve_one_internalvar): Remove INTERNALVAR_POINTER handling.
10340
c8c1c22f
PA
103412011-02-14 Pedro Alves <pedro@codesourcery.com>
10342
10343 * value.h (value_available_contents_eq): Declare.
10344 * value.c (find_first_range_overlap): New function.
10345 (value_available_contents_eq): New function.
10346 * valprint.c (val_print_array_elements): Use
10347 value_available_contents_eq.
10348 * ada-valprint.c (val_print_packed_array_elements): Use
10349 value_available_contents_eq.
10350 * jv-valprint.c (java_value_print): Use
10351 value_available_contents_eq.
10352
e6e4e701
PA
103532011-02-14 Pedro Alves <pedro@codesourcery.com>
10354
10355 * target.c (target_read_live_memory): New function.
10356 (memory_xfer_live_readonly_partial): New.
10357 (memory_xfer_partial): If reading from a traceframe, fallback to
10358 reading unavailable read-only memory from read-only regions of
10359 live target memory.
10360 * tracepoint.c (disconnect_tracing): Adjust.
10361 (set_current_traceframe): New, factored out from
10362 set_traceframe_number.
10363 (set_traceframe_number): Reimplement to only change the traceframe
10364 number on the GDB side.
10365 (do_restore_current_traceframe_cleanup): Adjust.
10366 (make_cleanup_restore_traceframe_number): New.
10367 (cur_traceframe_number): New global.
10368 (tfile_open): Set cur_traceframe_number to no traceframe.
10369 (set_tfile_traceframe): New function.
10370 (tfile_trace_find): If looking up a traceframe using any method
10371 other than by number, make sure the current tfile traceframe
10372 matches gdb's current traceframe. Update the current tfile
10373 traceframe if the lookup succeeded.
10374 (tfile_fetch_registers, tfile_xfer_partial)
10375 (tfile_get_trace_state_variable_value): Make sure the remote
10376 traceframe matches gdb's current traceframe.
10377 * remote.c (remote_traceframe_number): New global.
10378 (remote_open_1): Set it to -1.
10379 (set_remote_traceframe): New function.
10380 (remote_fetch_registers, remote_store_registers)
10381 (remote_xfer_memory, remote_xfer_partial)
10382 (remote_get_trace_state_variable_value): Make sure the remote
10383 traceframe matches gdb's current traceframe.
10384 (remote_trace_find): If looking up a traceframe using any method
10385 other than by number, make sure the current remote traceframe
10386 matches gdb's current traceframe. Update the current remote
10387 traceframe if the lookup succeeded.
10388 * infrun.c (fetch_inferior_event): Adjust.
10389 * tracepoint.h (set_current_traceframe): Declare.
10390 (get_traceframe_number, set_traceframe_number): Add describing
10391 comments.
10392
e6ca34fc
PA
103932011-02-14 Pedro Alves <pedro@codesourcery.com>
10394
10395 Mark pieces of values as unavailable if the corresponding memory
10396 is unavailable.
10397
10398 * valops.c: Include tracepoint.h.
10399 (value_fetch_lazy): Use read_value_memory.
10400 (read_value_memory): New.
10401 * value.h (read_value_memory): Declare.
10402 * dwarf2loc.c (read_pieced_value): Use read_value_memory.
10403 * exec.c (section_table_available_memory): New function.
10404 * exec.h (section_table_available_memory): Declare.
10405
2a7498d8
PA
104062011-02-14 Pedro Alves <pedro@codesourcery.com>
10407
10408 * Makefile.in (SFILES): Add memrange.c.
10409 (HFILES_NO_SRCDIR): Add memrange.h.
10410 (COMMON_OBS): Add memrange.o.
10411 * memrange.c: New file.
10412 * memrange.h: New file.
10413 * tracepoint.c: Include memrange.h.
10414 (struct mem_range): Delete.
10415 (mem_range_s): Delete.
10416 (traceframe_available_memory): New function.
10417 * tracepoint.h (traceframe_available_memory): Declare.
10418
b3b9301e
PA
104192011-02-14 Pedro Alves <pedro@codesourcery.com>
10420
10421 * target.h (struct traceframe_info): Forward declare.
10422 (enum target_object): Add TARGET_OBJECT_TRACEFRAME_INFO.
10423 (struct target_ops) <to_traceframe_info>: New field.
10424 (target_traceframe_info): New.
10425 * target.c (update_current_target): Inherit and default
10426 to_traceframe_info.
10427 * remote.c (PACKET_qXfer_traceframe_info): New.
10428 (remote_protocol_features): Register qXfer:traceframe-info:read.
10429 (remote_xfer_partial): Handle TARGET_OBJECT_TRACEFRAME_INFO.
10430 (remote_traceframe_info): New.
10431 (init_remote_ops): Install it.
10432 (_initialize_remote): Install "set/show remote traceframe-info"
10433 commands.
10434 * tracepoint.h (parse_traceframe_info): Declare.
10435 * tracepoint.c (struct mem_range): New.
10436 (mem_range_s): New typedef.
10437 (struct traceframe_info): New.
10438 (traceframe_info): New global.
10439 (free_traceframe_info): New function.
10440 (clear_traceframe_info): New function.
10441 (start_tracing, tfind_1, set_traceframe_number): Clear traceframe
10442 info.
10443 (build_traceframe_info): New function.
10444 (tfile_traceframe_info): New function.
10445 (init_tfile_ops): Install tfile_traceframe_info.
10446 (traceframe_info_start_memory, free_result): New functions.
10447 (memory_attributes, traceframe_info_elements): New globals.
10448 (parse_traceframe_info, get_traceframe_info): New functions.
10449 * features/traceframe-info.dtd: New file.
10450 * Makefile.in (XMLFILES): Add traceframe-info.dtd.
10451
4e07d55f
PA
104522011-02-14 Pedro Alves <pedro@codesourcery.com>
10453
10454 Base support for <unavailable> value contents.
10455
4e07d55f
PA
10456 * value.h (value_bytes_available): Declare.
10457 (mark_value_bytes_unavailable): Declare.
10458 * value.c (struct range): New struct.
10459 (range_s): New typedef.
10460 (ranges_overlap): New function.
10461 (range_lessthan): New function.
10462 (ranges_contain_p): New function.
10463 (struct value) <unavailable>: New field.
10464 (value_bytes_available): New function.
10465 (mark_value_bytes_unavailable): New function.
10466 (require_not_optimized_out): Constify parameter.
10467 (require_available): New function.
10468 (value_contents_all, value_contents): Require all bytes be
10469 available.
10470 (value_free): Free `unavailable'.
10471 (value_copy): Copy `unavailable'.
10472 * valprint.h (val_print_unavailable): Declare.
10473 * valprint.c (valprint_check_validity): Rename `offset' parameter
10474 to `embedded_offset'. If printing a scalar, check whether the
10475 value chunk is available.
10476 (val_print_unavailable): New.
10477 (val_print_scalar_formatted): Check whether the value is
10478 available.
10479 * python/py-prettyprint.c (apply_val_pretty_printer): Refuse
10480 pretty-printing unavailable values.
10481
bc9a5551
JK
104822011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
10483
10484 Fix const/volatile qualifiers of C++ types, PR c++/12328.
10485 * c-typeprint.c (c_type_print_args): Update the function comment. New
10486 variable param_type, initialize it. Remove const/volatile qualifiers
10487 for language_cplus and !show_artificial. Use param_type.
10488
93b55aa1
JK
104892011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
10490
10491 * symtab.c (find_pc_sect_line): New variable objfile, initialize it
10492 from S. Iterate S using ALL_OBJFILE_SYMTABS. Verify BV for each S.
10493 * symtab.h (struct symtab) <next>: Comment extension.
10494
181d9476
YQ
104952011-02-12 Yao Qi <yao@codesourcery.com>
10496
10497 * Makefile.in (CLEANDIRS): Remove duplicated common dir.
10498
b708a5c7
JK
104992011-02-11 Yao Qi <yao@codesourcery.com>
10500
10501 * common/Makefile.in: Add copyright header.
10502
c5187ac6
PA
105032011-02-11 Pedro Alves <pedro@codesourcery.com>
10504
10505 * infrun.c (proceed): Move switching out and in of tfind mode from
10506 here ...
10507 (fetch_inferior_event): ... to here.
10508
4f3e6fb7
YQ
105092011-02-11 Yao Qi <yao@codesourcery.com>
10510
10511 * Makefile.in: Remove signals.o from COMMON_OBS. Link
10512 libcommon.a.
10513 * configure.ac: Add common to sub dir.
10514 * configure: Regenerate.
10515
b708a5c7
JK
105162011-02-11 Yao Qi <yao@codesourcery.com>
10517
10518 Build libcommon.a.
10519
10520 * common/Makefile.in: New.
10521 * common/configure.ac: New.
10522 * common/aclocal.m4: New.
10523 * common/configure: Generate.
10524
2287cc7e
PA
105252011-02-10 Pedro Alves <pedro@codesourcery.com>
10526
10527 * vec.h (VEC_block_remove): Place VEC_ASSERT_INFO on the right
10528 side of the parenthesis.
10529
10530 Merge from GCC:
10531 2010-07-13 Jakub Jelinek <jakub@redhat.com>
fc013618 10532 * vec.h (VEC_block_remove): Fix comment.
2287cc7e 10533
fd62cb89
MS
105342011-02-08 Michael Snyder <msnyder@vmware.com>
10535
10536 * linux-nat.c (linux_nat_filter_event): Fix typo in comment.
10537
56d2815c
JK
105382011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
10539
10540 * i386-tdep.c (i386_process_record): Rename l suffixes to d suffixes
10541 in comments for pcmpgtd, pcmpeqd, psubd, paddd, pcmpgtd, pcmpeqd,
10542 psubd and paddd.
10543
4f7d61a8
JK
105442011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
10545
10546 PR 12361.
10547 * i386-tdep.c (i386_process_record) <0x660f3807>: Fix the comment to
10548 phsubsw.
10549 (i386_process_record) <lddqu>: Fix the opcode to 0xf20ff0.
10550 (i386_process_record) <0x0f3807>: Fix the comment to phsubsw.
10551
54fcddd0
UW
105522011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
10553
10554 * dwarf2read.c (read_subroutine_type): Set special calling
10555 convention flag for functions compiled by IBM XL C for OpenCL.
10556 * ppc-sysv-tdep.c: Include "dwarf2.h"
10557 (ppc_sysv_abi_push_dummy_call): Implement IBM OpenCL vector types
10558 calling convention.
10559 (do_ppc_sysv_return_value): Add FUNC_TYPE argument. Implement
10560 IBM OpenCL vector types calling convention.
10561 (ppc_sysv_abi_return_value): Pass through FUNC_TYPE.
10562 (ppc_sysv_abi_broken_return_value): Likewise.
10563 (ppc64_sysv_abi_push_dummy_call): Implement IBM OpenCL vector
10564 types calling convention.
10565 (ppc64_sysv_abi_return_value): Likewise.
10566 * spu-tdep.c: Include "dwarf2.h"
10567 (spu_return_value): Implement IBM OpenCL vector types calling
10568 convention.
10569
d6dafb7c
UW
105702011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
10571
10572 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Implement
10573 correct ABI for AltiVec vector arguments.
10574
32b72a42
PA
105752011-02-07 Pedro Alves <pedro@codesourcery.com>
10576
10577 * valprint.c (val_print): Extend comment.
10578 * ada-valprint.c (ada_valprint): Rewrite comment deferring
10579 interface explanation to val_print.
10580 (ada_val_print_array): Adjust comment to current interface.
10581 (print_field_values): Adjust comment to current interface.
10582 * c-valprint.c (c_val_print): Rewrite comment deferring interface
10583 explanation to val_print.
10584 * f-valprint.c (f_val_print): Ditto.
10585 * jv-valprint.c (java_val_print): Ditto.
10586 * m2-valprint.c (m2_val_print): Ditto.
10587 * p-valprint.c (pascal_val_print): Ditto.
10588
9998af43
TJB
105892011-02-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
10590
10591 * breakpoint.c (parse_breakpoint_sals): Fix description.
10592
505500db 105932011-02-04 Sami Wagiaalla <swagiaal@redhat.com>
9998af43 10594 Oguz Kayral <oguzkayral@gmail.com>
505500db
SW
10595
10596 * python/py-inferior.c (python_on_normal_stop): New function.
10597 (python_on_resume): New function.
10598 (python_inferior_exit): New function.
10599 (gdbpy_initialize_inferior): Add normal_stop, target_resumed, and
10600 inferior_exit observers.
10601 * python/py-evtregistry.c: New file.
10602 * python/py-threadevent.c : New file.
10603 * python/py-event.c: New file.
10604 * python/py-evts.c: New file.
10605 * python/py-continueevent.c: New file.
10606 * python/py-bpevent.c: New file.
10607 * python/py-signalevent.c: New file.
10608 * python/py-exetiedevent.c: New file.
10609 * python/py-breakpoint.c (gdbpy_breakpoint_from_bpstats): New function.
10610 Move struct breakpoint_object from here...
10611 * python/python-internal.h: ... to here.
10612 * python/py-event.h: New file.
10613 * python/py-events.h: New file.
10614 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpointstopevent.o,
10615 py-continueevent.o, py-event.o, py-eventregistry.o, py-events.o,
10616 py-exitedevent.o, py-signalstopevent.o, and py-stopevent.o.
10617 (SUBDIR_PYTHON_SRCS): Add py-breakpointstopevent.c,
10618 py-continueevent.c, py-event.c, py-eventregistry.c, py-events.c,
10619 py-exitedevent.c, py-signalstopevent.c, and py-stopevent.c.
10620 Add build rules for all the above.
10621
9e0ac564
TT
106222011-02-04 Tom Tromey <tromey@redhat.com>
10623
10624 * dwarf2read.c (dwarf2_section_empty_p): New function.
10625 (dwarf2_read_section): Use dwarf2_section_empty_p.
10626 (dwarf2_section_size): New function.
10627 (dwarf2_get_section_info): Unconditionally read section.
10628 (dwarf2_read_index): Use dwarf2_section_empty_p.
10629 (partial_read_comp_unit_head): Use dwarf2_section_size.
10630 (dwarf2_symbol_mark_computed): Likewise.
10631
eee5b35e
DD
106322011-02-04 David Daney <ddaney@caviumnetworks.com>
10633
10634 * NEWS: Add item for "catch syscall" on mips*-linux* targets.
10635
385203ed
DD
106362011-02-04 David Daney <ddaney@caviumnetworks.com>
10637
10638 * mips-linux-tdep.c: Include xml-syscall.h.
10639 (mips_linux_get_syscall_number): New function.
10640 (mips_linux_init_abi): Add calls to
10641 mips_linux_get_syscall_number() and set_xml_syscall_file_name().
10642 * data-directory/Makefile.in (SYSCALLS_FILES): Add
10643 mips-o32-linux.xml, mips-n32-linux.xml and mips-n64-linux.xml
10644 * syscalls/mips-n32-linux.xml: New file.
10645 * syscalls/mips-n64-linux.xml: New file.
10646 * syscalls/mips-o32-linux.xml: New file.
10647
9277c30c
UW
106482011-02-04 Ulrich Weigand <ulrich.weigand@linaro.org>
10649
10650 * dwarf2read.c (dwarf2_ranges_read): Skip empty range entries.
10651 Complain about inverted range entries.
10652 (dwarf2_record_block_ranges): Likewise.
10653
a3be7890
TJB
106542011-02-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
10655
10656 Fix some typos.
10657 * breakpoint.c (update_watchpoint): Fix name of the
10658 update_global_location_list function.
10659 (print_one_breakpoint): Fix typo.
10660 (_initialize_breakpoint): Remove extra space in hbreak help
10661 string.
10662 * breakpoint.h (struct bp_location) <length>: Fix field
10663 description.
10664
041274d8
PA
106652011-02-04 Pedro Alves <pedro@codesourcery.com>
10666
10667 * regcache.c (registers_changed_ptid): Don't explictly always
10668 clear `current_regcache'. Only clear current_thread_ptid and
10669 current_thread_arch when PTID matches. Only reinit the frame
10670 cache if PTID matches the current inferior_ptid. Move alloca(0)
10671 call to ...
10672 (registers_changed): ... here.
10673
c1c2ab58
UW
106742011-02-03 Ulrich Weigand <ulrich.weigand@linaro.org>
10675
10676 * arm-tdep.c (arm_skip_stack_protector): Accept any symbol that
10677 starts with __stack_chk_guard as stack guard symbol.
10678
9011945e
AB
106792011-02-03 Andrew Burgess <aburgess@broadcom.com>
10680
10681 * disasm.c (compare_lines): Handle the end of sequence markers
10682 within the line table to better support disassembling over
10683 compilation unit boundaries.
10684
e0634ccf
UW
106852011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
10686
10687 * arm-tdep.c (skip_prologue_function): Add GDBARCH and IS_THUMB
10688 arguments. Skip in-prologue calls to glibc __aeabi_read_tp
10689 implementation even if no symbols are available.
10690 (thumb_analyze_prologue): Update call to skip_prologue_function.
10691 (arm_analyze_prologue): Likewise.
10692
0e9e9abd
UW
106932011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
10694
10695 * arm-tdep.c: Include "observer.h".
10696 (arm_prologue_this_id): Use frame PC if get_frame_func returns 0.
10697 (arm_exidx_data_key): New static variable.
10698 (struct arm_exidx_entry, arm_exidx_entry_s): New data types.
10699 (struct arm_exidx_data): Likewise.
10700 (arm_exidx_data_free): New function.
10701 (arm_compare_exidx_entries): Likewise.
10702 (arm_obj_section_from_vma): Likewise.
10703 (arm_exidx_new_objfile): Likewise.
10704 (arm_find_exidx_entry): Likewise.
10705 (arm_exidx_fill_cache): Likewise.
10706 (arm_exidx_unwind_sniffer): Likewise.
10707 (arm_exidx_unwind): New global variable.
10708 (arm_gdbarch_init): Append unwinder arm_exidx_unwind.
10709 (_initialize_arm_tdep): Attach arm_exidx_new_objfile to new_objfile
10710 observer. Register arm_exidx_data_key as objfile data.
10711
2e9e421f
UW
107122011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
10713
10714 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Avoid build break
10715 due to accessing uninitialized variable. Fix indentation.
10716
580688f3
PA
107172011-02-02 Pedro Alves <pedro@codesourcery.com>
10718
10719 * c-valprint.c (c_value_print): When doing virtual base pointer
10720 adjustment, create a new value with adjusted contents rather than
10721 changing the contents of the value being printed (and getting it
10722 wrong).
10723
3d2c1d41
PA
107242011-02-02 Pedro Alves <pedro@codesourcery.com>
10725
10726 * xml-support.c (xml_find_attribute): New.
10727 (xinclude_start_include): Use it.
10728 * xml-support.h (xml_find_attribute): Declare.
10729 * memory-map.c (memory_map_start_memory)
10730 (memory_map_start_property): Use xml_find_attribute.
10731 * osdata.c (osdata_start_osdata, osdata_start_column): Use
10732 xml_find_attribute.
10733 * remote.c (start_thread): Use xml_find_attribute.
10734 * solib-target.c (library_list_start_segment)
10735 (library_list_start_section, library_list_start_library)
10736 (library_list_start_list): Use xml_find_attribute.
10737 * xml-tdesc.c (tdesc_start_target, tdesc_start_feature)
10738 (tdesc_start_union, tdesc_start_struct, tdesc_start_flags)
10739 (tdesc_start_field): Use xml_find_attribute.
10740
0af3e2db
UW
107412011-02-02 Ulrich Weigand <uweigand@de.ibm.com>
10742
10743 * opencl-lang.c (STRINGIFY): Rename to OCL_STRING.
10744 (BUILD_OCL_VTYPES): Update.
10745
c1039e3c
JB
107462011-02-02 Joel Brobecker <brobecker@adacore.com>
10747
10748 * configure.ac: Work around non-GNU sed limitation when computing
10749 python version number.
10750 * configure: Regenerate.
10751
600ea1be
JK
107522011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10753
10754 Fix debug printing of TYPE_INSTANCE.
10755 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: New.
10756 (dump_subexp_body_standard) <TYPE_INSTANCE>: New.
10757
56c12414
JK
107582011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10759
10760 Fix debug printing of BINOP_IN, OP_OBJC_MSGCALL,
10761 OP_F77_UNDETERMINED_ARGLIST, OP_COMPLEX, OP_OBJC_SELECTOR, OP_NAME,
10762 OP_OBJC_NSSTRING, OP_F90_RANGE and OP_DECFLOAT.
10763 * ada-operator.inc: Rename the file to ...
10764 * ada-operator.def: ... here, wrap all the entries by macro OP.
10765 * expprint.c (op_name_standard): Remove all the entries. Include
10766 "std-operator.def" instead.
10767 * expression.h (enum exp_opcode): Include "std-operator.def" and
10768 "ada-operator.def". Move all the entries ...
10769 * std-operator.def: ... here, wrap all the entries by macro OP.
10770
c52b559d
PP
107712011-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
10772
10773 * breakpoint.h (remove_jit_event_breakpoints): New prototype.
10774 * breakpoint.c (remove_jit_event_breakpoints): New function.
10775 * jit.c (jit_descriptor_addr): Delete.
10776 (registering_code): Delete.
10777 (clear_int): Delete.
10778 (jit_inferior_data): New variable.
10779 (struct jit_inferior_data): New type.
10780 (get_jit_inferior_data): New function.
10781 (jit_inferior_data_cleanup): New function.
10782 (jit_read_descriptor): Adjust.
10783 (jit_register_code): Adjust.
10784 (jit_breakpoint_re_set_internal): New function; move code here ...
10785 (jit_inferior_init): ... from here.
10786 (jit_breakpoint_re_set): Adjust.
10787 (jit_reset_inferior_data_and_breakpoints): New function.
10788 (jit_inferior_created_observer): Adjust.
10789 (jit_inferior_exit_hook): Adjust.
10790 (jit_executable_changed_observer): New function.
10791 (jit_event_handler): Adjust.
10792 (_initialize_jit): Adjust.
10793
e839132d
MS
107942011-01-31 Michael Snyder <msnyder@vmware.com>
10795
10796 * m32r-tdep.c (m32r_gdbarch_init): Replace accidentally deleted
10797 line.
10798
47a80e90
TT
107992011-01-31 Tom Tromey <tromey@redhat.com>
10800
10801 PR python/12216:
10802 * python/python.c (execute_gdb_command): Call
10803 prevent_dont_repeat.
10804 * top.c (suppress_dont_repeat): New global.
10805 (dont_repeat): Use it.
10806 (prevent_dont_repeat): New function.
10807 * command.h (prevent_dont_repeat): Declare.
10808
45a43567
TT
108092011-01-31 Tom Tromey <tromey@redhat.com>
10810
10811 * infcmd.c (finish_backward): Use breakpoint_set_silent.
10812 * python/py-breakpoint.c (bppy_set_silent): Use
10813 breakpoint_set_silent.
10814 (bppy_set_thread): Use breakpoint_set_thread.
10815 (bppy_set_task): Use breakpoint_set_task.
10816 * breakpoint.h (breakpoint_set_silent, breakpoint_set_thread)
10817 (breakpoint_set_task): Declare.
10818 (make_breakpoint_silent): Remove.
10819 * breakpoint.c (breakpoint_set_silent): New function.
10820 (breakpoint_set_thread): Likewise.
10821 (breakpoint_set_task): Likewise.
10822 (make_breakpoint_silent): Remove.
10823
09d682a4
TT
108242011-01-31 Tom Tromey <tromey@redhat.com>
10825
10826 * breakpoint.h (user_breakpoint_p): Declare.
10827 * breakpoint.c (user_breakpoint_p): New function.
10828 (breakpoint_1): Use it.
10829 (save_breakpoints): Likewise.
10830
9c4ea6c5
JB
108312011-01-31 Joel Brobecker <brobecker@adacore.com>
10832
10833 * configure.ac: Add handling of Python distribution on Windows.
10834 * python-config.py: If the LIBS, SYSLIBS, LIBPL and/or LINKFORSHARED
10835 sysconfig variables are not defined, then do not use them.
10836 On Windows, if LIBPL is not defined, then use prefix + '/libs'
10837 instead. On Windows, return all paths using forward-slashes
10838 rather than backslashes.
10839
ac534cba
JB
108402011-01-31 Joel Brobecker <brobecker@adacore.com>
10841
10842 * configure.ac: Remove fallback behavior for building
10843 against Python. Remove tweaking of Python include path.
10844 Add PYTHON_CPPFLAGS and PYTHON_LIBS substitution.
10845 (AC_TRY_LIBPYTHON): Adjust program used in linking test.
10846 If link is successful, set PYTHON_CPPFLAGS and PYTHON_LIBS.
10847 Always restore CPPFLAGS and LIBS after linking test.
10848 * configure: Regenerated.
10849 * Makefile.in (INTERNAL_CPPFLAGS): Add @PYTHON_CPPFLAGS@.
10850 (INSTALLED_LIBS, CLIBS): Add @PYTHON_LIBS@.
10851 * python/python-internal.h: Adjust includes of Python .h files.
10852
c2f0d045
JB
108532011-01-31 Joel Brobecker <brobecker@adacore.com>
10854
10855 * tracepoint.c (traceframe_walk_blocks): Add missing i18n markup
10856 in error message.
10857
6b0c4c1f
JB
108582011-01-31 Joel Brobecker <brobecker@adacore.com>
10859
10860 * inflow.c (gdb_has_a_terminal): Fix typo in interactive_mode
10861 value test.
10862
672c9795
YQ
108632011-01-31 Yao Qi <yao@codesourcery.com>
10864
10865 * arm-linux-nat.c: Update calls to regcache_register_status
10866 instead of regcache_valid_p.
10867 * aix-thread.c: Likewise.
10868 * i386gnu-nat.c: Likewise.
10869
80b23b6a
JK
108702011-01-29 Jan Kratochvil <jan.kratochvil@redhat.com>
10871
10872 Fix crash.
10873 * valops.c (compare_parameters): Verify TYPE_NFIELDS before
10874 touching TYPE_FIELD_ARTIFICIAL.
10875
4cd712bd
RE
108762011-01-28 Richard Earnshaw <rearnsha@arm.com>
10877
10878 * MAINTAINERS: Move myself from Responsible Maintainers to Authorized
10879 Committers.
10880
ffd5ec24
PA
108812011-01-28 Pedro Alves <pedro@codesourcery.com>
10882
10883 * tracepoint.c (tfile_xfer_partial): If there's no traceframe
10884 selected, don't try iterating over the traceframe's blocks.
10885 (tfile_has_stack): If there's no traceframe selected, then there's
10886 no stack.
10887 (tfile_has_registers): If there's no traceframe selected, then
10888 there's no registers.
10889
e8c9e0a1
PA
108902011-01-28 Pedro Alves <pedro@codesourcery.com>
10891
10892 * target.c (memory_xfer_partial): No need to restore shadows if we
10893 haven't read anything.
10894
de15c4ab
PA
108952011-01-28 Pedro Alves <pedro@codesourcery.com>
10896
10897 * mips-tdep.c (mips_print_register): Use get_frame_register_value
10898 and val_print_scalar_formatted.
10899
9f41c731
PA
109002011-01-27 Pedro Alves <pedro@codesourcery.com>
10901
10902 * tracepoint.c (tfile_read): New.
10903 (tfile_open): Use it.
10904 (tfile_get_traceframe_address): Use it.
10905 (tfile_trace_find): Use it.
10906 (walk_blocks_callback_func): New typedef.
10907 (match_blocktype): New function.
10908 (traceframe_walk_blocks): New function.
10909 (traceframe_find_block_type): New function.
10910 (tfile_fetch_registers, tfile_xfer_partial)
10911 (tfile_get_trace_state_variable_value): Use
10912 traceframe_find_block_type and tfile_read.
10913
cdefc55d
KB
109142011-01-26 Kevin Buettner <kevinb@redhat.com>
10915
10916 * remote-mips.c: Add internationalization mark ups. Remove
10917 trailing \n from already marked up strings.
10918
a81766d8
TT
109192011-01-26 Tom Tromey <tromey@redhat.com>
10920
10921 * python/py-prettyprint.c (print_string_repr): Clear
10922 'addressprint' option when calling val_print_string.
10923 (print_children): Handle Val_pretty_default. Clear 'addressprint'
10924 option when calling val_print_string.
10925
74aedc46
TT
109262011-01-26 Tom Tromey <tromey@redhat.com>
10927
10928 * python/python.c (gdbpy_solib_name): Use gdb_py_longest and
10929 GDB_PY_LL_ARG.
10930 * python/python-internal.h (GDB_PY_LL_ARG, GDB_PY_LLU_ARG): New
10931 macros.
10932 (gdb_py_longest, gdb_py_ulongest): New typedefs.
10933 (gdb_py_long_from_longest, gdb_py_long_from_ulongest)
10934 (gdb_py_long_as_ulongest): New defines.
10935 (gdb_py_object_from_longest, gdb_py_object_from_ulongest)
10936 (gdb_py_int_as_long): Declare.
10937 * python/py-value.c (valpy_lazy_string): Use gdb_py_longest,
10938 GDB_PY_LL_ARG, gdb_py_object_from_longest.
10939 (valpy_long): Add comment.
10940 * python/py-utils.c (get_addr_from_python): Use
10941 gdb_py_long_as_ulongest. Handle overflow properly.
10942 (gdb_py_object_from_longest): New function.
10943 (gdb_py_object_from_ulongest): Likewise.
10944 (gdb_py_int_as_long): Likewise.
10945 * python/py-type.c (typy_array): Use gdb_py_int_as_long.
10946 * python/py-symtab.c (salpy_get_pc): Use
10947 gdb_py_long_from_ulongest.
10948 (salpy_get_line): Use PyInt_FromLong.
10949 * python/py-param.c (set_parameter_value): Use
10950 gdb_py_int_as_long.
10951 * python/py-lazy-string.c (stpy_get_address): Use
10952 gdb_py_long_from_ulongest.
10953 * python/py-frame.c (frapy_pc): Use gdb_py_long_from_ulongest.
10954 * python/py-cmd.c (cmdpy_completer): Use gdb_py_int_as_long.
10955 * python/py-breakpoint.c (bppy_set_thread): Use
10956 gdb_py_int_as_long.
10957 (bppy_set_task): Likewise.
10958 (bppy_set_ignore_count): Likewise.
10959 (bppy_set_hit_count): Likewise.
10960 * python/py-block.c (blpy_get_start): Use
10961 gdb_py_object_from_ulongest.
10962 (blpy_get_end): Likewise.
10963 (gdbpy_block_for_pc): Use gdb_py_ulongest and GDB_PY_LLU_ARG.
10964
e4f6d2ec
TJB
109652011-01-25 Mathieu Lacage <mathieu.lacage@inria.fr>
10966
10967 PR/symtab 11766:
10968 * gdb/objfiles.h (struct objfile) <addr_low>: New field.
10969 * gdb/solib.c (solib_read_symbols): Check for addr_low in
10970 equality test for objfile, initialize addr_low if needed.
10971
b30aa278
PA
109722011-01-25 Pedro Alves <pedro@codesourcery.com>
10973
10974 * tui/tui-regs.c (tui_register_format): Remove dead code.
10975
ab2188aa
PA
109762011-01-25 Pedro Alves <pedro@codesourcery.com>
10977
10978 * printcmd.c (print_formatted): Use val_print_scalar_formatted
10979 instead of print_scalar_formatted.
10980 (print_scalar_formatted): Don't handle 's' format strings here,
10981 and add an assertion that we never see such format here.
10982 * valprint.h (val_print_scalar_formatted): Declare.
10983 * valprint.c (val_print_scalar_formatted): New.
10984 * c-valprint.c (c_val_print): Use val_print_scalar_formatted
10985 instead of print_scalar_formatted.
10986 * jv-valprint.c (java_val_print): Ditto.
10987 * p-valprint.c (pascal_val_print): Ditto.
10988 * ada-valprint.c (ada_val_print_1): Ditto.
10989 * f-valprint.c (f_val_print): Ditto.
10990 * infcmd.c (registers_info): Ditto.
10991 * m2-valprint.c (m2_val_print): Ditto.
10992
66d61a4c
PA
109932011-01-25 Pedro Alves <pedro@codesourcery.com>
10994
10995 * m2-valprint.c (print_unbounded_array): Pass
10996 value_contents_for_printing rather than value_contents, to
10997 m2_print_array_contents. Also pass in the value.
10998
831adc1f
JK
109992011-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
11000
11001 * dwarf2read.c (dwarf2_read_index, write_psymtabs_to_index)
11002 (save_gdb_index_command): Switch to .gdb_index version 4.
11003
20622269
PA
110042011-01-25 Pedro Alves <pedro@codesourcery.com>
11005
11006 * mi/mi-main.c (get_register): Use get_frame_register_value rather
11007 than frame_register, and always pass a valid value to val_print.
11008
585fdaa1
PA
110092011-01-25 Pedro Alves <pedro@codesourcery.com>
11010
11011 Centralize printing "<optimized out>".
11012
11013 * valprint.h (val_print_optimized_out): Declare.
11014 * cp-valprint.c (cp_print_value_fields): Use
11015 val_print_optimized_out.
11016 * jv-valprint.c (java_print_value_fields): Ditto.
11017 * p-valprint.c (pascal_object_print_value_fields): Ditto.
11018 * printcmd.c (print_formatted): Ditto.
11019 * valprint.c (valprint_check_validity): Ditto.
11020 (value_check_printable): Ditto.
11021 (val_print_optimized_out): New.
11022
29ec5263
PA
110232011-01-25 Pedro Alves <pedro@codesourcery.com>
11024
11025 * infcmd.c (default_print_registers_info): Allocate values so to
11026 never pass a NULL value to val_print.
11027
de4127a3
PA
110282011-01-25 Pedro Alves <pedro@codesourcery.com>
11029
11030 * cp-valprint.c (cp_print_value): Treat the 'skip' local as
11031 boolean. Make sure to always pass a value that matches the
11032 contents buffer to callees. Preserve `address' for following
11033 iterations.
11034 * value.c (value_contents_for_printing_const): New.
11035 (value_address): Constify value argument.
11036 * value.h (value_contents_for_printing_const): Declare.
11037 (value_address): Constify value argument.
11038
ee99023e
PA
110392011-01-25 Pedro Alves <pedro@codesourcery.com>
11040
11041 * regcache.c (struct regcache_descr): Rename
11042 sizeof_raw_register_valid_p field to sizeof_raw_register_status,
11043 and sizeof_cooked_register_valid_p to
11044 sizeof_cooked_register_status.
11045 (init_regcache_descr): Adjust.
11046 (struct regcache): Rename register_valid_p field to
11047 register_status.
11048 (regcache_xmalloc_1, regcache_xfree, regcache_save)
11049 (do_cooked_read): Adjust.
11050 (regcache_valid_p): Rename to ...
11051 (regcache_register_status): ... this. Adjust.
11052 (regcache_invalidate): Adjust.
11053 (regcache_raw_read, regcache_cooked_read, regcache_raw_write):
11054 Adjust.
11055 (regcache_raw_supply): Adjust. If buf i NULL, mark the register
11056 as unavailable, not valid.
11057 (regcache_dump): Adjust.
11058 * regcache.h (enum register_status): New.
11059 (regcache_register_status): Declare.
11060 (regcache_invalidate): Delete declaration.
11061 * corelow.c (get_core_registers): Adjust.
11062 * tracepoint.c (tfile_fetch_registers): Adjust.
11063 * trad-frame.c (REG_VALUE): Rename to ...
11064 (TF_REG_VALUE): ... this.
11065 (REG_UNKNOWN): Rename to ...
11066 (TF_REG_UNKNOWN): ... this.
11067 (trad_frame_set_value, trad_frame_set_unknown): Adjust.
11068 * mi/mi-main.c (register_changed_p): Adjust.
11069
99e42fd8
PA
110702011-01-25 Pedro Alves <pedro@codesourcery.com>
11071
11072 * regcache.c (struct regcache_descr): Remove outdated comment.
11073 (init_regcache_descr): Remove sizeof_raw_register_valid_p
11074 overallocate hack.
11075 (regcache_xmalloc): Rename to ...
11076 (regcache_xmalloc_1): ... this. Add `readonly_p' parameter.
11077 Allocate the regcache type accordingly.
11078 (regcache_xmalloc): New as wrapper around regcache_xmalloc_1.
11079 (regcache_xfree): Asser the source is also readonly. Copy sizeof
11080 cooked registers, not raw.
11081 (regcache_dup_no_passthrough): Delete.
11082 (get_thread_arch_regcache): Use regcache_xmalloc_1.
11083 * h8300-tdep.c (h8300_push_dummy_call): Tweak comment to not
11084 mention obsolete write_register_bytes.
11085 * regcache.h (regcache_dup_no_passthrough): Delete declaration.
11086
f7605bc2
PA
110872011-01-25 Pedro Alves <pedro@codesourcery.com>
11088
11089 Stop remote_read_bytes from handling partial reads itself.
11090
11091 * remote-fileio.c: Include target.h.
11092 (remote_fileio_write_bytes): Delete.
11093 (remote_fileio_func_open, remote_fileio_func_write)
11094 (remote_fileio_func_rename, remote_fileio_func_unlink): Use
11095 target_read_memory.
11096 (remote_fileio_func_stat): Use target_read_memory and
11097 target_write_memory.
11098 (remote_fileio_func_gettimeofday): Use target_write_memory.
11099 (remote_fileio_func_system): Use target_read_memory.
11100 * remote.c (remote_write_bytes): Make it static.
11101 (remote_read_bytes): Don't handle partial reads here.
11102 * remote.h (remote_read_bytes): Delete declaration.
11103
efc0eabd
PA
111042011-01-25 Pedro Alves <pedro@codesourcery.com>
11105
11106 Simplify XML parsing a bit.
11107
11108 * xml-support.h (gdb_xml_parse_quick): Declare.
11109 * xml-support.c (gdb_xml_create_parser_and_cleanup_1): Renamed
11110 from gdb_xml_create_parser_and_cleanup, and added `old_chain'
11111 parameter.
11112 (gdb_xml_create_parser_and_cleanup): Reimplement on top of
11113 gdb_xml_create_parser_and_cleanup_1.
11114 (gdb_xml_parse_quick): New.
11115 * memory-map.c (parse_memory_map): Use gdb_xml_parse_quick.
11116 * osdata.c (osdata_parse): Ditto.
11117 * remote.c (remote_threads_info): Ditto.
11118 * solib-target.c (solib_target_parse_libraries): Ditto.
11119 * xml-syscall.c (syscall_parse_xml): Ditto.
11120 * xml-tdesc.c (tdesc_parse_xml): Ditto.
11121
314d366a
KB
111222011-01-24 Kevin Buettner <kevinb@redhat.com>
11123
11124 * configure.tgt (mips*-*-elf): New; just like mips*-*-*, but
11125 with remote-mips.o added to gdb_target_obs.
11126 * Makefile.in (ALL_TARGET_OBS): Add remote-mips.o.
11127
a491d753
PA
111282011-01-24 Pedro Alves <pedro@codesourcery.com>
11129
11130 * ada-valprint.c (val_print_packed_array_elements): Pass the
11131 correct struct value to val_print.
11132 (ada_val_print_1): Ditto.
11133
490f124f
PA
111342011-01-24 Pedro Alves <pedro@codesourcery.com>
11135
11136 Don't lose embedded_offset in printing routines throughout.
11137
11138 * valprint.h (val_print_array_elements): Change prototype.
11139 * valprint.c (val_print_array_elements): Add `embedded_offset'
11140 parameter, and adjust to pass it down to val_print, while passing
11141 `valaddr' or `address' unmodified. Take embedded_offset into
11142 account when checking repetitions.
11143 * c-valprint.c (c_val_print): Pass embedded_offset to
11144 val_print_array_elements instead of adjusting `valaddr' and
11145 `address'.
11146 * m2-valprint.c (m2_print_array_contents, m2_val_print): Pass
11147 embedded_offset to val_print_array_elements instead of adjusting
11148 `valaddr'.
11149 * p-lang.h (pascal_object_print_value_fields): Adjust prototype.
11150 * p-valprint.c (pascal_val_print): Pass embedded_offset to
11151 val_print_array_elements and pascal_object_print_value_fields
11152 instead of adjusting `valaddr'.
11153 (pascal_object_print_value_fields): Add `offset' parameter, and
11154 adjust to use it.
11155 (pascal_object_print_value): Add `offset' parameter, and adjust to
11156 use it.
11157 (pascal_object_print_static_field): Use
11158 value_contents_for_printing/value_embedded_offset, rather than
11159 value_contents.
11160 * ada-valprint.c (val_print_packed_array_elements): Add `offset'
11161 parameter, and adjust to use it. Use
11162 value_contents_for_printing/value_embedded_offset, rather than
11163 value_contents.
11164 (ada_val_print): Rename `valaddr0' parameter to `valaddr'.
11165 (ada_val_print_array): Add `offset' parameter, and adjust to use
11166 it.
11167 (ada_val_print_1): Rename `valaddr0' parameter to `valaddr', and
11168 `embedded_offset' to `offset'. Don't re-adjust `valaddr'.
11169 Instead work with offsets. Use
11170 value_contents_for_printing/value_embedded_offset, rather than
11171 value_contents. Change `defer_val_int' local type to CORE_ADDR,
11172 and use value_from_pointer to extract a target pointer, rather
11173 than value_from_longest.
11174 (print_variant_part): Add `offset' parameter. Replace
11175 `outer_valaddr' parameter by a new `outer_offset' parameter.
11176 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
11177 (ada_value_print): Use
11178 value_contents_for_printing/value_embedded_offset, rather than
11179 value_contents.
11180 (print_record): Add `offset' parameter, and adjust to pass it
11181 down.
11182 (print_field_values): Add `offset' parameter. Replace
11183 `outer_valaddr' parameter by a new `outer_offset' parameter.
11184 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
11185 Use value_contents_for_printing/value_embedded_offset, rather than
11186 value_contents.
11187 * d-valprint.c (dynamic_array_type): Use
11188 value_contents_for_printing/value_embedded_offset, rather than
11189 value_contents.
11190 * jv-valprint.c (java_print_value_fields): Add `offset' parameter.
11191 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
11192 (java_print_value_fields): Take `offset' into account. Don't
11193 re-adjust `valaddr'. Instead pass down adjusted offsets.
11194 (java_val_print): Take `embedded_offset' into account. Pass it to
11195 java_print_value_fields.
11196 * f-valprint.c (f77_print_array_1): Add `embedded_offset'
11197 parameter. Don't re-adjust `valaddr' or `address'. Instead pass
11198 down adjusted offsets.
11199 (f77_print_array): Add `embedded_offset' parameter. Pass it down.
11200 (f_val_print): Take `embedded_offset' into account.
11201
7bfc9434
JB
112022011-01-21 Joel Brobecker <brobecker@adacore.com>
11203
11204 * inflow.c: Include "gdbcmd.h".
11205 (interactive_mode): New static global, moved here from top.c.
11206 (show_interactive_mode): New function, moved here from top.c.
11207 use gdb_has_a_terminal instead of input_from_terminal_p to
11208 determine the current mode.
11209 (gdb_has_a_terminal): Add handling of the "iteractive-mode"
11210 setting.
11211 (_initialize_inflow): Add the "set/show interactive-mode"
11212 commands. Moved here from top.c, after having adjusted slightly
11213 the help text.
11214 * top.c (interactive_mode, show_interactive_mode): Delete, moved
11215 to inflow.c.
11216 (input_from_terminal_p): Remove handling of "interactive-mode"
11217 setting, moved to infow.c.
11218 (init_main): Remove creation of the "set/show interactive-mode"
11219 commands, moved to inflow.c.
11220
44603653
JB
112212011-01-19 Joel Brobecker <brobecker@adacore.com>
11222
11223 * NEWS: Add entry for native ia64-hpux support.
11224
4694da01
TT
112252011-01-19 Tom Tromey <tromey@redhat.com>
11226
11227 PR mi/8618:
11228 * thread.c (free_thread): Free 'name'.
11229 (print_thread_info): Emit thread name. Change CLI output.
11230 (thread_name_command): New function.
11231 (do_captured_thread_select): Emit newline.
11232 (_initialize_thread): Register 'thread name' command.
11233 * target.h (struct target_ops) <to_thread_name>: New field.
11234 (target_thread_name): New macro.
11235 * target.c (update_current_target): Handle to_thread_name.
11236 * python/py-infthread.c (thpy_get_name): New function.
11237 (thpy_set_name): Likewise.
11238 (thread_object_getset): Add "name".
11239 * linux-nat.c (linux_nat_thread_name): New function.
11240 (linux_nat_add_target): Set to_thread_name.
11241 * gdbthread.h (struct thread_info) <name>: New field.
11242
10d44370
JB
112432011-01-18 Joel Brobecker <brobecker@adacore.com>
11244
11245 * ada-valprint.c (ada_print_scalar): Remove unsigned char downcast.
11246 (ada_val_print_1): Likewise.
11247
e3acb115
JB
112482011-01-18 Joel Brobecker <brobecker@adacore.com>
11249
11250 * rs6000-tdep.c (rs6000_skip_prologue): Make sure that the prologue
11251 upper limit address is not greater than the function end address
11252 when the upper limit could not be computed using the debugging
11253 info.
11254
dc92e161
TT
112552011-01-17 Tom Tromey <tromey@redhat.com>
11256
11257 * cli/cli-cmds.c (apropos_command): Free the compiled regex. Use
11258 get_regcomp_error.
11259 * utils.c: Include gdb_regex.h.
11260 (do_regfree_cleanup): New function.
11261 (make_regfree_cleanup): Likewise.
11262 (get_regcomp_error): Likewise.
11263 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Declare.
11264
f55af66d
TT
112652011-01-17 Tom Tromey <tromey@redhat.com>
11266
11267 * cli/cli-cmds.c (apropos_command): Fix formatting. Don't call
11268 re_compile_fastmap.
11269
a5a44b53
PM
112702011-01-17 Pierre Muller <muller@ics.u-strasbg.fr>
11271
11272 * p-exp.y (intvar): New static variable, used to set CURRENT_TYPE
11273 for internal variables.
11274 (last_was_structop): New static variable.
11275 (COMPLETE): New token.
11276 (field_exp): New rule to group all '.' suffix handling.
11277 Add mark_struct_expression calls when approriate to be able
11278 to correctly find fields for completion.
11279 (yylex): Adapt to handle field completion and set INTVAR when
11280 required.
11281
2c291032
YQ
112822011-01-14 Yao Qi <yao@codesourcery.com>
11283
11284 * arm-tdep.c (arm_register_reggroup_p): FPS register is in
11285 save_reggroup, restore_reggroup and all_reggroup.
11286
447b483c
JB
112872011-01-14 Joel Brobecker <brobecker@adacore.com>
11288
11289 * ada-valprint. (ada_printchar): Use the correct type length
11290 in call to ada_emit_char.
11291 * c-valprint.c (c_val_print): Remove cast in call to LA_PRINT_CHAR.
11292
7b64a93b
PM
112932011-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
11294
11295 * solib-som.h (hpux_major_release): Declare variable here.
11296 * solib-som.c: Remove <sys/utsname.h> header.
11297 (DEFAULT_HPUX_MAJOR_RELEASE): New macro.
11298 (hpux_major_release): Make global, change default value to
11299 DEFAULT_HPUX_MAJOR_RELEASE.
f2eb0bc8 11300 (get_hpux_major_release): Simply return HPUX_MAJOR_RELEASE.
7b64a93b
PM
11301 * hppa-hpux-nat.c: Add <sys/utsname.h> include.
11302 Add "solib-som.h" header.
11303 (set_hpux_major_release): New function.
11304 (_initialize_hppa_hpux_nat): Call set_hpux_major_release.
11305
4e18c053
MF
113062011-01-14 Mike Frysinger <vapier@gentoo.org>
11307
11308 * configure.tgt (*-*-uclinux*): Match more Linux os targets
11309
a9df6b22
JB
113102011-01-14 Joel Brobecker <brobecker@adacore.com>
11311
11312 * ia64-hpux-nat.c (ia64_hpux_fetch_register): Remove trailing
11313 new-line at end of warning message.
11314 (ia64_hpux_store_register): Remove trailing new-line at end of
11315 error message.
11316 * ia64-hpux-tdep.c: Rephrase comment.
11317 * solib-ia64-hpux.c (struct dld_info): Change type of field
11318 dld_flags from "long long" to ULONGEST.
11319
ecb956dd
PA
113202011-01-14 Pedro Alves <pedro@codesourcery.com>
11321
11322 * target.h (deprecated_child_ops): Delete declaration.
11323 * target.c (deprecated_child_ops): Delete definition.
11324
76adfcae
PA
113252011-01-14 Pedro Alves <pedro@codesourcery.com>
11326
11327 * Makefile.in (hpux-thread.o): Delete rule.
11328 * configure.ac: Don't check for HPUX DCE threads support.
11329 * configure, config.in: Regenerate.
11330 * hppa-hpux-nat.c (child_suppress_run): Delete.
11331 (hppa_hpux_child_can_run): Delete.
11332 (_initialize_hppa_hpux_nat): Don't override to_can_run.
11333 * hpux-thread.c: Delete.
11334
042e866e
JB
113352011-01-13 Joel Brobecker <brobecker@adacore.com>
11336
11337 * hpux-thread.c (hpux_pid_to_str): Delete.
11338
4ffa5a33
JB
113392011-01-13 Joel Brobecker <brobecker@adacore.com>
11340
11341 * ada-valprint.c (ada_emit_char): Remove strange code.
11342 Check that c is <= UCHAR_MAX before passing it to isascii.
11343 (char_at): Do not assume that TYPE_LEN is either 1 or 2.
11344
de8fa76c
JB
113452011-01-13 Joel Brobecker <brobecker@adacore.com>
11346
11347 * top.c (input_from_terminal_p): Restrict the use of interactive_mode
11348 to the case where instream is stdin.
11349
c4de7027
JB
113502011-01-13 Joel Brobecker <brobecker@adacore.com>
11351
11352 * ia64-tdep.h (struct regcache): Forward declare.
11353 (struct ia64_infcall_ops): New struct type.
11354 (struct gdbarch_tdep): New fields "find_global_pointer_from_solib"
11355 and "infcall_ops".
11356 * ia64-tdep.c (ia64_find_global_pointer_from_dynamic_section):
11357 Renames ia64_find_global_pointer.
11358 (ia64_find_global_pointer, ia64_allocate_new_rse_frame)
11359 (ia64_store_argument_in_slot, ia64_set_function_addr: New function.
11360 (ia64_push_dummy_call): Adjust to use the new tdep ia64_infocall_ops
11361 methods.
11362 (ia64_infcall_ops): New static global constant.
11363 (ia64_gdbarch_init): Set tdep->infcall_ops.
11364 * ia64-hpux-nat.c (ia64_hpux_xfer_solib_got): New function.
11365 (ia64_hpux_xfer_partial): Add TARGET_OBJECT_HPUX_SOLIB_GOT handing.
11366 * ia64-hpux-tdep.c: Include "regcache.h", "gdbcore.h" and "inferior.h".
11367 (ia64_hpux_dummy_code): New static global constant.
11368 (ia64_hpux_push_dummy_code, ia64_hpux_allocate_new_rse_frame)
11369 (ia64_hpux_store_argument_in_slot, ia64_hpux_set_function_addr)
11370 (ia64_hpux_dummy_id, ia64_hpux_find_global_pointer_from_solib):
11371 New function.
11372 (ia64_hpux_infcall_ops): New static global constant.
11373 (ia64_hpux_init_abi): Install gdbarch and tdep methods needed
11374 for inferior function calls to work properly on ia64-hpux.
11375
77ca787b
JB
113762011-01-13 Joel Brobecker <brobecker@adacore.com>
11377
11378 * target.h (enum target_object): Add TARGET_OBJECT_HPUX_UREGS.
11379 * ia64-tdep.h (struct frame_info): forward declaration.
11380 (struct gdbarch_tdep): Add field size_of_register_frame.
11381 * ia64-tdep.c (ia64_access_reg): Use tdep->size_of_register_frame
11382 to determine the size of the register frame.
11383 (ia64_size_of_register_frame): New function.
11384 (ia64_gdbarch_init): Set tdep->size_of_register_frame.
11385 * ia64-hpux-tdep.c: Include "target.h" and "frame.h".
11386 (IA64_HPUX_UREG_REASON): New macro.
11387 (ia64_hpux_stopped_in_syscall, ia64_hpux_size_of_register_frame):
11388 New functions.
11389 (ia64_hpux_init_abi): Set tdep->size_of_register_frame.
11390 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): New function.
11391 (ia64_hpux_xfer_partial): Add handling of TARGET_OBJECT_HPUX_UREGS
11392 objects.
11393
92c9a463
JB
113942011-01-13 Joel Brobecker <brobecker@adacore.com>
11395
11396 Add support for ia64-hpux.
11397 * config/ia64/hpux.mh, ia64-hpux-nat.c, ia64-hpux-tdep.c,
11398 ia64-hpux-tdep.h, solib-ia64-hpux.c, solib-ia64-hpux.h: New files.
11399
11400 * configure.host: Add handling for ia64-hpux hosts. Add associated
11401 floatformats.
11402 * configure.tgt: Add handling for ia64-hpux targets.
11403 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-hpux-tdep.o.
11404 (HFILES_NO_SRCDIR): Add ia64-hpux-tdep.h.
11405 (ALLDEPFILES): Add ia64-hpux-nat.c ia64-hpux-tdep.c.
11406
f688d93f
JB
114072011-01-13 Joel Brobecker <brobecker@adacore.com>
11408
11409 [ttrace] Compute thread list immediately after attach.
11410 * inf_ttrace_attach (inf_ttrace_create_threads_after_attach):
11411 New subprogram.
11412 (inf_ttrace_attach): Use it.
11413
1b89e62f
JB
114142011-01-13 Joel Brobecker <brobecker@adacore.com>
11415
11416 * libunwind-frame.c (libunwind_frame_cache): Do not return NULL
11417 if we could not determine the frame's function address. Instead,
11418 use the frame's PC, and then continue.
11419
3e5e6e2a
JB
114202011-01-13 Joel Brobecker <brobecker@adacore.com>
11421
11422 * libunwind-frame.c (__LITTLE_ENDIAN, __BIG_ENDIAN): Define if
11423 not already defined.
11424
825d6d8a
JB
114252011-01-13 Joel Brobecker <brobecker@adacore.com>
11426
11427 * ia64-tdep.c (ia64_struct_type_p): New function.
11428 (ia64_extract_return_value): Handle integral values that are
11429 less than 8 bytes long.
11430 (ia64_push_dummy_call): Likewise.
11431
7458e667
JB
114322011-01-13 Joel Brobecker <brobecker@adacore.com>
11433
11434 * ia64-tdep.c (floatformat_ia64_ext_little): Renames
11435 floatformat_ia64_ext.
11436 (floatformat_ia64_ext_big): New static const.
11437 (floatformats_ia64_ext): Set first entry to &floatformat_ia64_ext_big.
11438
1b05df00
TT
114392011-01-12 Tom Tromey <tromey@redhat.com>
11440
11441 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Fix error
11442 messages.
11443 * mi/mi-main.c (mi_cmd_thread_select): Fix error messages.
11444 (mi_cmd_thread_list_ids): Likewise.
11445 (mi_cmd_data_list_changed_registers): Likewise.
11446 (mi_cmd_data_list_register_values): Likewise.
11447 (mi_cmd_data_write_register_values): Likewise.
11448 (mi_cmd_data_evaluate_expression): Likewise.
11449 (mi_cmd_data_read_memory): Likewise.
11450 (mi_cmd_data_read_memory_bytes): Likewise.
11451 (mi_cmd_data_write_memory): Likewise.
11452 (mi_cmd_enable_timings): Likewise.
11453 * mi/mi-interp.c (mi_cmd_interpreter_exec): Fix error messages.
11454 * mi/mi-cmd-var.c (mi_cmd_var_create): Fix error messages.
11455 (mi_cmd_var_delete): Likewise.
11456 (mi_cmd_var_set_format): Likewise.
11457 (mi_cmd_var_show_format): Likewise.
11458 (mi_cmd_var_info_num_children): Likewise.
11459 (mi_cmd_var_list_children): Likewise.
11460 (mi_cmd_var_info_type): Likewise.
11461 (mi_cmd_var_info_expression): Likewise.
11462 (mi_cmd_var_show_attributes): Likewise.
11463 (mi_cmd_var_assign): Likewise.
11464 (mi_cmd_var_update): Likewise.
11465 (mi_cmd_enable_pretty_printing): Likewise.
11466 (mi_cmd_var_set_update_range): Likewise.
11467 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Fix error
11468 messages.
11469 (mi_cmd_target_file_put): Likewise.
11470 (mi_cmd_target_file_delete): Likewise.
11471 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Fix error
11472 messages.
11473 (mi_cmd_stack_info_depth): Likewise.
11474 (mi_cmd_stack_list_locals): Likewise.
11475 (mi_cmd_stack_list_args): Likewise.
11476 (mi_cmd_stack_select_frame): Likewise.
11477 (mi_cmd_stack_select_frame): Likewise.
11478 (mi_cmd_stack_info_frame): Likewise.
11479 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Fix error
11480 messages.
11481 (mi_cmd_file_list_exec_source_files): Likewise.
11482 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Fix error messages.
11483 (mi_cmd_env_cd): Likewise.
11484 (mi_cmd_env_path): Likewise.
11485 (mi_cmd_env_dir): Likewise.
11486 (mi_cmd_inferior_tty_show): Likewise.
11487 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Fix error messages.
11488 * mi/mi-cmd-break.c (mi_cmd_break_insert): Fix error messages.
11489 (mi_cmd_break_watch): Likewise.
11490
ad422571
TJB
114912011-01-12 Thiago Jung Bauermann <bauerman@br.ibm.com>
11492
11493 * ppc-linux-nat.c (booke_cmp_hw_point): Fix whitespace.
11494 (ppc_linux_insert_hw_breakpoint): Likewise.
11495 (ppc_linux_remove_hw_breakpoint): Likewise.
11496 (ppc_linux_insert_watchpoint): Likewise.
11497
c2ff108b
JK
114982011-01-12 Andrew Burgess <aburgess@broadcom.com>
11499 Jan Kratochvil <jan.kratochvil@redhat.com>
11500
11501 PR fortran/11104 and DWARF unbound arrays detection.
11502 * dwarf2read.c (read_subrange_type): Set zero length on unspecified
11503 upper bound. Set TYPE_HIGH_BOUND_UNDEFINED if not language_ada on
11504 unspecified upper bound.
11505 * eval.c (evaluate_subexp_standard) <multi_f77_subscript>: Remove
11506 variables array_size_array, tmp_type and offset_item. New variable
11507 array. Remove call to f77_get_upperbound. New variables array_type
11508 and index. Call value_subscripted_rvalue for each dimenasion. Remove
11509 the final call to deprecated_set_value_type.
11510
41e8491f
JK
115112011-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
11512
11513 Make value allocations more lazy.
11514 * ada-lang.c (coerce_unspec_val_to_type): Use allocate_value_lazy
11515 instead of allocate_value and set_value_lazy when possible.
f2eb0bc8 11516 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use allocate_value_lazy
41e8491f
JK
11517 instead of allocate_value and set_value_lazy.
11518 * findvar.c (value_of_register_lazy): Likewise.
11519 (read_var_value): Remove V preallocation, call just check_typedef in
f2eb0bc8 11520 advance. Move allocate_value to LOC_CONST, LOC_LABEL,
41e8491f
JK
11521 LOC_CONST_BYTES. Use allocate_value_lazy in LOC_STATIC, LOC_ARG,
11522 LOC_REF_ARG, LOC_LOCAL, LOC_BLOCK. Set ADDR instead of
11523 set_value_address and break in LOC_BLOCK. Use allocate_value_lazy and
11524 remove lval_memory set in LOC_REGPARM_ADDR. Use allocate_value_lazy
11525 in LOC_UNRESOLVED and LOC_OPTIMIZED_OUT. Add setting lval_memory at
11526 the end, remove set_value_lazy there.
11527 * valarith.c (value_subscripted_rvalue): Use allocate_value_lazy
11528 instead of allocate_value and set_value_lazy when possible.
11529 * valops.c (value_fetch_lazy): Do nop for value_optimized_out VAL.
11530 * value.c (allocate_computed_value): Use allocate_value_lazy instead
11531 of allocate_value and set_value_lazy.
11532 (value_from_contents_and_address): Use allocate_value_lazy instead of
11533 allocate_value and set_value_lazy when possible.
11534
b716877b
AB
115352011-01-12 Andrew Burgess <aburgess@broadcom.com>
11536
11537 * disasm.c (dump_insns): Support dumping opcodes for MI.
11538 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Allow mode to control
11539 dumping of instruction opcodes.
11540
d5ae309f
JB
115412011-01-09 Robert Millan <rmh@gnu.org> (tiny patch)
11542
11543 * configure.tgt: Detect GNU/kFreeBSD and set `gdb_osabi'
11544 appropiately.
11545
98871305
TT
115462011-01-11 Tom Tromey <tromey@redhat.com>
11547
11548 * thread.c (do_captured_thread_select): Emit newline before
11549 printing frame.
11550
c378eb4e
MS
115512011-01-11 Michael Snyder <msnyder@vmware.com>
11552
11553 * s390-tdep.c: Comment cleanup, mostly periods and spaces.
11554 * score-tdep.c: Ditto.
11555 * score-tdep.h: Ditto.
11556 * ser-base.c: Ditto.
11557 * ser-go32.c: Ditto.
11558 * serial.c: Ditto.
11559 * serial.h: Ditto.
11560 * ser-mingw.c: Ditto.
11561 * ser-pipe.c: Ditto.
11562 * ser-tcp.c: Ditto.
11563 * ser-unix.c: Ditto.
11564 * sh64-tdep.c: Ditto.
11565 * shnbsd-nat.c: Ditto.
11566 * sh-tdep.c: Ditto.
11567 * sh-tdep.h: Ditto.
11568 * solib.c: Ditto.
11569 * solib-darwin.c: Ditto.
11570 * solib-frv.c: Ditto.
11571 * solib.h: Ditto.
11572 * solib-irix.c: Ditto.
11573 * solib-osf.c: Ditto.
11574 * solib-pa64.c: Ditto.
11575 * solib-som.c: Ditto.
11576 * solib-spu.c: Ditto.
11577 * solib-sunos.c: Ditto.
11578 * solib-svr4.c: Ditto.
11579 * solist.h: Ditto.
11580 * sol-thread.c: Ditto.
11581 * somread.c: Ditto.
11582 * source.c: Ditto.
11583 * source.h: Ditto.
11584 * sparc64-linux-tdep.c: Ditto.
11585 * sparc64-tdep.c: Ditto.
11586 * sparc-linux-nat.c: Ditto.
11587 * sparc-linux-tdep.c: Ditto.
11588 * sparc-sol2-nat.c: Ditto.
11589 * sparc-sol2-tdep.c: Ditto.
11590 * sparc-tdep.c: Ditto.
11591 * sparc-tdep.h: Ditto.
11592 * spu-tdep.c: Ditto.
11593 * stabsread.c: Ditto.
11594 * stabsread.h: Ditto.
11595 * stack.c: Ditto.
11596 * symfile.c: Ditto.
11597 * symfile.h: Ditto.
11598 * symmisc.c: Ditto.
11599 * symtab.c: Ditto.
11600 * symtab.h: Ditto.
11601 * target.c: Ditto.
11602 * target-descriptions.c: Ditto.
11603 * target-descriptions.h: Ditto.
11604 * target.h: Ditto.
11605 * target-memory.c: Ditto.
11606 * terminal.h: Ditto.
11607 * thread.c: Ditto.
11608 * top.c: Ditto.
11609 * tracepoint.c: Ditto.
11610 * tracepoint.h: Ditto.
11611 * trad-frame.h: Ditto.
11612 * typeprint.c: Ditto.
11613
581e13c1
MS
116142011-01-11 Michael Snyder <msnyder@vmware.com>
11615
11616 * ui-file.c: Comment cleanup, mostly periods and spaces.
11617 * ui-file.h: Ditto.
11618 * ui-out.c: Ditto.
11619 * ui-out.h: Ditto.
11620 * utils.c: Ditto.
11621 * v850-tdep.c: Ditto.
11622 * valarith.c: Ditto.
11623 * valops.c: Ditto.
11624 * valprint.c: Ditto.
11625 * valprint.h: Ditto.
11626 * value.c: Ditto.
11627 * value.h: Ditto.
11628 * varobj.c: Ditto.
11629 * varobj.h: Ditto.
11630 * vax-tdep.c: Ditto.
11631 * vec.c: Ditto.
11632 * vec.h: Ditto.
11633 * version.h: Ditto.
11634 * windows-nat.c: Ditto.
11635 * windows-tdep.c: Ditto.
11636 * xcoffread.c: Ditto.
11637 * xcoffsolib.c: Ditto.
11638 * xml-support.c: Ditto.
11639 * xstormy16-tdep.c: Ditto.
11640 * xtensa-tdep.c: Ditto.
11641 * xtensa-tdep.h: Ditto.
11642
90e4670f
TJB
116432011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
11644
11645 * breakpoint.c (resources_needed_watchpoint): Fix indentation.
11646 * gdbtypes.c (is_scalar_type_recursive): Fix formatting.
11647
e09342b5
TJB
116482011-01-11 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
11649 Thiago Jung Bauermann <bauerman@br.ibm.com>
11650
11651 Implement support for PowerPC BookE ranged watchpoints.
f2eb0bc8 11652 * breakpoint.h
e09342b5
TJB
11653 (struct breakpoint_ops) <resources_needed>: New method.
11654 Initialize to NULL in all existing breakpoint_ops instances.
11655 (struct breakpoint) <exact>: New field.
11656 (target_exact_watchpoints): Declare external global.
11657 * breakpoint.c (target_exact_watchpoints): New global flag.
11658 (update_watchpoint): Set b->type to bp_hardware_watchpoint and
11659 b->enable_state to bp_enabled before calling
11660 hw_watchpoint_used_count.
11661 (hw_watchpoint_used_count): Iterate over all bp_locations in a
11662 watchpoint. Call breakpoint's breakpoint_ops.resources_needed
11663 if available.
11664 (insert_watchpoint, remove_watchpoint): Use fixed length of 1 byte
11665 if the watchpoint is exact.
11666 (resources_needed_watchpoint): New function.
11667 (watchpoint_breakpoint_ops): Add resources_needed_watchpoint.
11668 (watch_command_1): Set b->exact if the user asked for an exact
11669 watchpoint and one can be set.
11670 (can_use_hardware_watchpoint): Add exact_watchpoints argument.
11671 Pass fixed length of 1 to target_region_ok_for_hw_watchpoint if
11672 the user asks for an exact watchpoint and one can be set. Return
11673 number of needed debug registers to watch the expression.
11674 * gdbtypes.c (is_scalar_type): New function, based on
11675 valprint.c:scalar_type_p.
11676 (is_scalar_type_recursive): New function.
11677 * gdbtypes.h (is_scalar_type_recursive): Declare.
11678 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Always
11679 handle regions when ranged watchpoints are available.
11680 (create_watchpoint_request): New function.
11681 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
11682 create_watchpoint_request.
11683 * rs6000-tdep.c (show_powerpc_exact_watchpoints): New function.
11684 (_initialize_rs6000_tdep): Add `exact-watchpoints' boolean to the
11685 `set powerpc' and `show powerpc' commands.
11686 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
11687 Mention documentation comment in the target macro.
11688 (target_region_ok_for_hw_watchpoint): Document return value.
11689
9fa40276
TJB
116902011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
11691
11692 * breakpoint.c (update_watchpoint): Decide on using a software or
11693 hardware watchpoint after the bp_locations are created.
11694
77b06cd7
TJB
116952010-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
11696
11697 Convert hardware watchpoints to use breakpoint_ops.
11698 * breakpoint.h (breakpoint_ops) <insert>: Rename to...
11699 <insert_location>: ... this. Return int instead of void.
11700 Accept pointer to struct bp_location instead of pointer to
11701 struct breakpoint. Adapt all implementations.
f2eb0bc8 11702 (breakpoint_ops) <remove>: Rename to...
77b06cd7
TJB
11703 <remove_location>: ... this. Accept pointer to struct bp_location
11704 instead of pointer to struct breakpoint. Adapt all implementations.
11705 * breakpoint.c (insert_catchpoint): Delete function.
11706 (insert_bp_location): Call the watchpoint or catchpoint's
11707 breakpoint_ops.insert method.
11708 (remove_breakpoint_1): Call the watchpoint or catchpoint's
11709 breakpoint_ops.remove method.
11710 (insert_watchpoint, remove_watchpoint): New functions.
11711 (watchpoint_breakpoint_ops): New structure.
11712 (watch_command_1): Initialize the OPS field.
11713 * inf-child.c (inf_child_insert_fork_catchpoint)
11714 (inf_child_remove_fork_catchpoint, inf_child_insert_vfork_catchpoint)
11715 (inf_child_remove_vfork_catchpoint, inf_child_insert_exec_catchpoint)
11716 (inf_child_remove_exec_catchpoint, inf_child_set_syscall_catchpoint):
11717 Delete functions.
11718 (inf_child_target): Remove initialization of to_insert_fork_catchpoint,
11719 to_remove_fork_catchpoint, to_insert_vfork_catchpoint,
11720 to_remove_vfork_catchpoint, to_insert_exec_catchpoint,
11721 to_remove_exec_catchpoint and to_set_syscall_catchpoint.
11722 * target.c (update_current_target): Change default implementation of
11723 to_insert_fork_catchpoint, to_remove_fork_catchpoint,
11724 to_insert_vfork_catchpoint, to_remove_vfork_catchpoint,
11725 to_insert_exec_catchpoint, to_remove_exec_catchpoint and
11726 to_set_syscall_catchpoint to return_one.
11727 (debug_to_insert_fork_catchpoint, debug_to_insert_vfork_catchpoint)
11728 (debug_to_insert_exec_catchpoint): Report return value.
11729 * target.h (to_insert_fork_catchpoint, to_insert_vfork_catchpoint)
11730 (to_insert_exec_catchpoint): Change declaration to return int instead
11731 of void.
11732
9b20d036
MS
117332011-01-11 Michael Snyder <msnyder@vmware.com>
11734
11735 * arm-tdep.c: Internationalization.
11736 * c-lang.c: Ditto.
11737 * charset.c: Ditto.
11738 * fork-child.c: Ditto.
11739 * nto-procfs.c: Ditto.
11740 * ppc-sysv-tdep.c: Ditto.
11741 * procfs.c: Ditto.
11742 * remote-mips.c: Ditto.
11743 * remote.c: Ditto.
11744 * rs6000-nat.c: Ditto.
11745 * rs6000-tdep.c: Ditto.
11746 * target.c: Ditto.
11747 * valops.c: Ditto.
11748 * value.c: Ditto.
11749 * xml-support.c: Ditto.
11750 * mi/mi-cmd-break.c: Ditto.
11751 * mi/mi-cmd-var.c: Ditto.
11752 * mi/mi-interp.c: Ditto.
11753 * mi/mi-main.c: Ditto.
11754
dae477fe
AB
117552011-01-11 Andrew Burgess <aburgess@broadcom.com>
11756
11757 * remote-sim.c (gdbsim_store_register): Update API to
11758 sim_store_register to check more error conditions.
11759
0df8b418
MS
117602011-01-10 Michael Snyder <msnyder@vmware.com>
11761
11762 * nto-procfs.c: Comment cleanup, mostly periods and spaces.
11763 * nto-tdep.c: Ditto.
11764 * nto-tdep.h: Ditto.
11765 * objc-exp.y: Ditto.
11766 * objc-lang.c: Ditto.
11767 * objfiles.c: Ditto.
11768 * objfiles.h: Ditto.
11769 * observer.c: Ditto.
11770 * opencl-lang.c: Ditto.
11771 * osabi.c: Ditto.
11772 * parse.c: Ditto.
11773 * parser-defs.h: Ditto.
11774 * p-exp.y: Ditto.
11775 * p-lang.c: Ditto.
11776 * posix-hdep.c: Ditto.
11777 * ppcbug-rom.c: Ditto.
11778 * ppc-linux-nat.c: Ditto.
11779 * ppc-linux-tdep.c: Ditto.
11780 * ppc-linux-tdep.h: Ditto.
11781 * ppcnbsd-tdep.c: Ditto.
11782 * ppcobsd-tdep.c: Ditto.
11783 * ppcobsd-tdep.h: Ditto.
11784 * ppc-sysv-tdep.c: Ditto.
11785 * ppc-tdep.h: Ditto.
11786 * printcmd.c: Ditto.
11787 * proc-abi.c: Ditto.
11788 * proc-flags.c: Ditto.
11789 * procfs.c: Ditto.
11790 * proc-utils.h: Ditto.
11791 * progspace.h: Ditto.
11792 * prologue-value.c: Ditto.
11793 * prologue-value.h: Ditto.
11794 * psympriv.h: Ditto.
11795 * psymtab.c: Ditto.
11796 * p-typeprint.c: Ditto.
11797 * p-valprint.c: Ditto.
11798 * ravenscar-sparc-thread.c: Ditto.
11799 * ravenscar-thread.c: Ditto.
11800 * ravenscar-thread.h: Ditto.
11801 * record.c: Ditto.
11802 * regcache.c: Ditto.
11803 * regcache.h: Ditto.
11804 * remote.c: Ditto.
11805 * remote-fileio.c: Ditto.
11806 * remote-fileio.h: Ditto.
11807 * remote.h: Ditto.
11808 * remote-m32r-sdi.c: Ditto.
11809 * remote-mips.c: Ditto.
11810 * remote-sim.c: Ditto.
11811 * rs6000-aix-tdep.c: Ditto.
11812 * rs6000-nat.c: Ditto.
11813 * rs6000-tdep.c: Ditto.
11814
0d7a18f7
MS
118152011-01-10 Michael Snyder <msnyder@vmware.com>
11816
11817 * charset.c (validate): Internationalization.
11818 * coffread.c (read_one_sym): Ditto.
11819 * dwarf2read.c (dwarf2_attach_fields_to_type): Ditto.
11820 * h8300-tdep.c (H8300_extract_return_value): Ditto.
11821 * inflow.c (new_tty): Ditto.
11822 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Ditto.
11823 * m32c-tdep.c (m32c_return_value): Ditto.
11824 * mep-tdep.c (mep_store_return_value): Ditto.
11825 * score-tdep.c (score7_fetch_insn): Ditto.
11826 * ser-mingw.c (pipe_windows_open): Ditto.
11827 * sh64-tdep.c (sh64_extract_return_value): Ditto.
11828 * spu-tdep.c (spu_register_type): Ditto.
11829 * tracepoint.c (trace_find_command): Ditto.
11830 * valarith.c (value_pos): Ditto.
11831
9a153e0b
JB
118322011-01-10 Joel Brobecker <brobecker@adacore.com>
11833
11834 * ada-valprint.c (printstr): Minor comment reformatting.
11835
35ecd2d6
MS
118362011-01-08 Michael Snyder <msnyder@vmware.com>
11837
11838 * m32r-rom.c (m32r_upload_command): Fix up ARI warnings for _
11839 markup.
11840
1777feb0
MS
118412011-01-08 Michael Snyder <msnyder@vmware.com>
11842
11843 * h8300-tdep.c: Comment cleanup, mostly periods and spaces.
11844 * hppa-hpux-tdep.c: Ditto.
11845 * hppa-linux-nat.c: Ditto.
11846 * hppa-linux-tdep.c: Ditto.
11847 * hppanbsd-tdep.c: Ditto.
11848 * hppa-tdep.c: Ditto.
11849 * hppa-tdep.h: Ditto.
11850 * hpux-thread.c: Ditto.
11851 * i386-cygwin-tdep.c: Ditto.
11852 * i386-darwin-nat.c: Ditto.
11853 * i386gnu-nat.c: Ditto.
11854 * i386-linux-nat.c: Ditto.
11855 * i386-linux-tdep.c: Ditto.
11856 * i386-nat.c: Ditto.
11857 * i386-nat.h: Ditto.
11858 * i386nbsd-tdep.c: Ditto.
11859 * i386-sol2-nat.c: Ditto.
11860 * i386-stub.c: Ditto.
11861 * i386-tdep.c: Ditto.
11862 * i386-tdep.h: Ditto.
11863 * i387-tdep.c: Ditto.
11864 * ia64-linux-nat.c: Ditto.
11865 * ia64-linux-tdep.c: Ditto.
11866 * ia64-tdep.c: Ditto.
11867 * infcall.c: Ditto.
11868 * infcall.h: Ditto.
11869 * infcmd.c: Ditto.
11870 * inferior.c: Ditto.
11871 * inferior.h: Ditto.
11872 * infloop.c: Ditto.
11873 * inflow.c: Ditto.
11874 * infrun.c: Ditto.
11875 * interps.c: Ditto.
11876 * interps.h: Ditto.
11877 * iq2000-tdep.c: Ditto.
11878 * irix5-nat.c: Ditto.
11879 * jit.c: Ditto.
11880 * jit.h: Ditto.
11881 * jv-exp.y: Ditto.
11882 * jv-lang.c: Ditto.
11883 * jv-lang.h: Ditto.
11884 * jv-typeprint.c: Ditto.
11885 * jv-valprint.c: Ditto.
11886 * language.c: Ditto.
11887 * language.h: Ditto.
11888 * linespec.c: Ditto.
11889 * linux-fork.c: Ditto.
11890 * linux-nat.c: Ditto.
11891 * linux-thread-db.c: Ditto.
11892 * lm32-tdep.c: Ditto.
11893
025bb325
MS
118942011-01-08 Michael Snyder <msnyder@vmware.com>
11895
11896 * m2-exp.y: Comment cleanup, mostly periods and spaces.
11897 * m2-lang.c: Ditto.
11898 * m2-typeprint.c: Ditto.
11899 * m2-valprint.c: Ditto.
11900 * m32c-tdep.c: Ditto.
11901 * m32r-linux-nat.c: Ditto.
11902 * m32r-rom.c: Ditto.
11903 * m32r-tdep.c: Ditto.
11904 * m32r-tdep.h: Ditto.
11905 * m68hc11-tdep.c: Ditto.
11906 * m58klinux-nat.c: Ditto.
11907 * m68k-tdep.c: Ditto.
11908 * m88k-tdep.c: Ditto.
11909 * m88k-tdep.h: Ditto.
11910 * machoread.c: Ditto.
11911 * macrocmd.c: Ditto.
11912 * macroexp.c: Ditto.
11913 * macrotab.c: Ditto.
11914 * main.c: Ditto.
11915 * maint.c: Ditto.
11916 * mdebugread.c: Ditto.
11917 * mdebugread.h: Ditto.
11918 * memattr.c: Ditto.
11919 * memattr.h: Ditto.
11920 * memory-map.h: Ditto.
11921 * mep-tdep.c: Ditto.
11922 * microblaze-rom.c: Ditto.
11923 * microblaze-tdep.c: Ditto.
11924 * minsyms.c: Ditto.
11925 * mips-irix-tdep.c: Ditto.
11926 * mips-linux-nat.c: Ditto.
11927 * mips-linux-tdep.c: Ditto.
11928 * mips-linux-tdep.h: Ditto.
11929 * mipsnbsd-nat.c: Ditto.
11930 * mipsnbsd-tdep.c: Ditto.
11931 * mipsread.c: Ditto.
11932 * mips-tdep.c: Ditto.
11933 * mips-tdep.h: Ditto.
11934 * mn10300-linux-tdep.c: Ditto.
11935 * mn10300-tdep.c: Ditto.
11936 * mn10300-tdep.h: Ditto.
11937 * monitor.c: Ditto.
11938 * monitor.h: Ditto.
11939 * moxie-tdep.c: Ditto.
11940 * moxie-tdep.h: Ditto.
11941 * mt-tdep.c: Ditto.
11942
1642781b
MF
119432011-01-08 Mike Frysinger <vapier@gentoo.org>
11944
11945 * bfin-tdep.h (BFIN_A0_DOT_W_REGNUM): Fix typo in name.
11946
394b0adb
JB
119472011-01-08 Robert Millan <rmh@gnu.org>
11948
11949 * fbsd-nat.c (fbsd_find_memory_regions): Fix typo.
11950
b670013c
MS
119512011-01-07 Michael Snyder <msnyder@vmware.com>
11952
11953 * charset.c (_initialize_charset): Fix typo in string.
11954
a743e542
MS
119552011-01-07 Michael Snyder <msnyder@vmware.com>
11956
11957 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Mark up error message
11958 for i18n.
f2eb0bc8 11959 * tui/tui-layout.c (tui_set_layout_for_display_command):
a743e542
MS
11960 Split line so that operator goes to beginning of line.
11961 * tui/tui-winsource.c (tui_horizontal_source_scroll): Move
11962 assignment out of if statement.
11963
0963b4bd
MS
119642011-01-07 Michael Snyder <msnyder@vmware.com>
11965
11966 * ada-lang.c: Comment cleanup, mostly periods and spaces.
11967 * ada-lang.h: Ditto.
11968 * ada-tasks.c: Ditto.
11969 * ada-valprint.c: Ditto.
11970 * aix-threads.c: Ditto.
11971 * alpha-linux-nat.c: Ditto.
11972 * alpha-linux-tdep.c: Ditto.
11973 * alpha-mdebug-tdep.c: Ditto.
11974 * alpha-nat.c: Ditto.
11975 * alpha-osf1-tdep.c: Ditto.
11976 * alpha-tdep.c: Ditto.
11977 * alphabsd-nat.c: Ditto.
11978 * alphabsd-tdep.c: Ditto.
11979 * amd64-darwin-tdep.c: Ditto.
11980 * amd64-linux-nat.c: Ditto.
11981 * amd64-linux-tdep.c: Ditto.
11982 * amd64-sol2-tdep.c: Ditto.
11983 * amd64-tdep.c: Ditto.
11984 * amd64-fbsd-tdep.c: Ditto.
11985 * amd64-nbsd-tdep.c: Ditto.
11986 * amd64-obsd-tdep.c: Ditto.
11987 * amd64-linux-nat.c: Ditto.
11988 * amd64-linux-tdep.c: Ditto.
11989 * arm-tdep.c: Ditto.
11990 * arm-tdep.h: Ditto.
11991 * armnbsd-nat.c: Ditto.
11992 * avr-tdep.c: Ditto.
11993 * bfin-tdep.c: Ditto.
11994 * bsd-kvm.c: Ditto.
11995 * c-typeprintc: Ditto.
11996 * c-valprint.c: Ditto.
11997 * coff-pe-read.h: Ditto.
11998 * coffreead.c: Ditto.
11999 * cris-tdep.c: Ditto.
12000 * d-lang.c: Ditto.
12001 * darwin-nat-info.c: Ditto.
12002 * darwin-nat.c: Ditto.
12003 * dbug-rom.c: Ditto.
12004 * dbxread.c: Ditto.
12005 * dcache.c: Ditto.
12006 * dcache.h: Ditto.
12007 * dec-thread.c: Ditto.
12008 * defs.h: Ditto.
12009 * demangle.c: Ditto.
12010 * dicos-tdep.c: Ditto.
12011 * dictionary.c: Ditto.
12012 * dictionary.h: Ditto.
12013 * dink32-rom.c: Ditto.
12014 * disasm.c: Ditto.
12015 * doublest.c: Ditto.
12016 * dsrec.c: Ditto.
12017 * dummy-frame.c: Ditto.
12018 * dwarf2-frame.c: Ditto.
12019 * dwarf2expr.c: Ditto.
12020 * dwarf2loc.c: Ditto.
12021 * dwarf2read.c: Ditto.
12022 * elfread.c: Ditto.
12023 * environ.c: Ditto.
12024 * eval.c: Ditto.
12025 * event-top.h: Ditto.
12026 * exceptions.c: Ditto.
12027 * exceptions.h: Ditto.
12028 * exec.c: Ditto.
12029 * expprint.c: Ditto.
12030 * expression.h: Ditto.
12031 * f-exp.y: Ditto.
12032 * f-lang.c: Ditto.
12033 * f-lang.h: Ditto.
12034 * f-typeprint.c: Ditto.
12035 * f-valprint.c: Ditto.
12036 * fbsd-nat.c: Ditto.
12037 * findvar.c: Ditto.
12038 * fork-child.c: Ditto.
12039 * frame.c: Ditto.
12040 * frame.h: Ditto.
12041 * frv-linux-tdep.c: Ditto.
12042 * frv-tdep.c: Ditto.
12043 * gcore.c: Ditto.
12044 * gdb-stabs.h: Ditto.
12045 * gdb_assert.h: Ditto.
12046 * gdb_string.h: Ditto.
12047 * gdb_thread_db.h: Ditto.
12048 * gdb_wait.h: Ditto.
12049 * gdbarch.sh: Ditto.
12050 * gdbcore.h: Ditto.
12051 * gdbthread.h: Ditto.
12052 * gdbtypes.c: Ditto.
12053 * gdbtypes.h: Ditto.
12054 * gnu-nat.c: Ditto.
12055 * gnu-nat.h: Ditto.
12056 * gnu-v2-abi.c: Ditto.
12057 * gnu-v3-abi.c: Ditto.
12058 * go32-nat.c: Ditto.
12059 * gdbarch.c: Regenerate.
12060 * gdbarch.h: Regenerate.
12061
ac74f770
MS
120622011-01-07 Michael Snyder <msnyder@vmware.com>
12063
12064 * ax-gdb.c: Adjust some long output strings.
12065 * breakpoint.c: Ditto.
12066 * charset.c: Ditto.
12067 * cp-abi.c: Ditto.
12068 * infcall.c: Ditto.
12069 * infrun.c: Ditto.
12070 * linux-nat.c: Ditto.
12071 * solib-pa64.c: Ditto.
12072 * solib-som.c: Ditto.
12073
d8e22779
TT
120742011-01-06 Tom Tromey <tromey@redhat.com>
12075
12076 PR python/12367:
12077 * NEWS: Add item.
12078 * python/python.c (GdbMethods): Add "newest_frame" method.
12079 * python/python-internal.h (gdbpy_newest_frame): Declare.
12080 * python/py-frame.c (gdbpy_newest_frame): New function.
12081
a255712f
PP
120822010-01-06 Paul Pluzhnikov <ppluzhnikov@google.com>
12083
12084 * jit.h (struct jit_code_entry): use ULONGEST for symfile_size.
12085 * jit.c (jit_debug): New variable.
12086 (show_jit_debug): New function.
12087 (struct target_buffer): Use ULONGEST.
12088 (bfd_open_from_target_memory): Likewise.
12089 (jit_register_code, jit_inferior_init): Add debug output.
12090 (_initialize_jit): Register "debug jit" command.
12091
ccfc3d6e
TT
120922011-01-06 Tom Tromey <tromey@redhat.com>
12093
12094 * frame.h (enum frame_type) <INLINE_FRAME>: Fix comment.
12095 * python/py-frame.c (gdbpy_initialize_frames): Add INLINE_FRAME
12096 and ARCH_FRAME.
12097
57126e4a
TT
120982011-01-06 Tom Tromey <tromey@redhat.com>
12099
12100 * python/py-frame.c (frapy_block): Use get_frame_block.
12101
16dfc9ce
JB
121022011-01-06 Joel Brobecker <brobecker@adacore.com>
12103
12104 Do not stop on SIGPRIO signals by default
12105 * infrun.c (_initialize_infrun): Unset signal_stop and
12106 signal_print for TARGET_SIGNAL_PRIO.
12107
b1ce2347
JB
121082011-01-06 Joel Brobecker <brobecker@adacore.com>
12109
12110 * ada-tasks.c: Fix style violation in comment.
12111
8f7e195f
JB
121122011-01-06 Joel Brobecker <brobecker@adacore.com>
12113
12114 * linespec.c (decode_compound, find_method): Remove trailing \n
12115 at end of error string.
12116 * solib-irix.c (irix_current_sos): Likewise.
12117 * varobj.c (uninstall_variable): Likewise.
12118
e9bdf92c
JB
121192011-01-06 Joel Brobecker <brobecker@adacore.com>
12120
12121 * copyright.py: New script.
12122 * copyright.sh (byhand): Add *.ads, *.adb, *.gpr and *.inc.
12123 Launch emacs without exec'ing. Call copyright.py afterwards.
12124
3e43a32a
MS
121252011-01-05 Michael Snyder <msnyder@vmware.com>
12126
12127 * addrmap.c: Shorten lines of >= 80 columns.
12128 * arch-utils.c: Ditto.
12129 * arch-utils.h: Ditto.
12130 * ax-gdb.c: Ditto.
12131 * ax-general.c: Ditto.
12132 * bcache.c: Ditto.
12133 * blockframe.c: Ditto.
12134 * breakpoint.c: Ditto.
12135 * buildsym.c: Ditto.
12136 * c-lang.c: Ditto.
12137 * c-typeprint.c: Ditto.
12138 * charset.c: Ditto.
12139 * coffread.c: Ditto.
12140 * command.h: Ditto.
12141 * corelow.c: Ditto.
12142 * cp-abi.c: Ditto.
12143 * cp-namespace.c: Ditto.
12144 * cp-support.c: Ditto.
12145 * dbug-rom.c: Ditto.
12146 * dbxread.c: Ditto.
12147 * defs.h: Ditto.
12148 * dfp.c: Ditto.
12149 * dfp.h: Ditto.
12150 * dictionary.c: Ditto.
12151 * disasm.c: Ditto.
12152 * doublest.c: Ditto.
12153 * dwarf2-frame.c: Ditto.
12154 * dwarf2expr.c: Ditto.
12155 * dwarf2loc.c: Ditto.
12156 * dwarf2read.c: Ditto.
12157 * elfread.c: Ditto.
12158 * eval.c: Ditto.
12159 * event-loop.c: Ditto.
12160 * event-loop.h: Ditto.
12161 * exceptions.h: Ditto.
12162 * exec.c: Ditto.
12163 * expprint.c: Ditto.
12164 * expression.h: Ditto.
12165 * f-lang.c: Ditto.
12166 * f-valprint.c: Ditto.
12167 * findcmd.c: Ditto.
12168 * frame-base.c: Ditto.
12169 * frame-unwind.c: Ditto.
12170 * frame-unwind.h: Ditto.
12171 * frame.c: Ditto.
12172 * frame.h: Ditto.
12173 * gcore.c: Ditto.
12174 * gdb-stabs.h: Ditto.
12175 * gdb_assert.h: Ditto.
12176 * gdb_dirent.h: Ditto.
12177 * gdb_obstack.h: Ditto.
12178 * gdbcore.h: Ditto.
12179 * gdbtypes.c: Ditto.
12180 * gdbtypes.h: Ditto.
12181 * inf-ttrace.c: Ditto.
12182 * infcall.c: Ditto.
12183 * infcmd.c: Ditto.
12184 * inflow.c: Ditto.
12185 * infrun.c: Ditto.
12186 * inline-frame.h: Ditto.
12187 * language.c: Ditto.
12188 * language.h: Ditto.
12189 * libunwind-frame.c: Ditto.
12190 * libunwind-frame.h: Ditto.
12191 * linespec.c: Ditto.
12192 * linux-nat.c: Ditto.
12193 * linux-nat.h: Ditto.
12194 * linux-thread-db.c: Ditto.
12195 * machoread.c: Ditto.
12196 * macroexp.c: Ditto.
12197 * macrotab.c: Ditto.
12198 * main.c: Ditto.
12199 * maint.c: Ditto.
12200 * mdebugread.c: Ditto.
12201 * memattr.c: Ditto.
12202 * minsyms.c: Ditto.
12203 * monitor.c: Ditto.
12204 * monitor.h: Ditto.
12205 * objfiles.c: Ditto.
12206 * objfiles.h: Ditto.
12207 * osabi.c: Ditto.
12208 * p-typeprint.c: Ditto.
12209 * p-valprint.c: Ditto.
12210 * parse.c: Ditto.
12211 * printcmd.c: Ditto.
12212 * proc-events.c: Ditto.
12213 * procfs.c: Ditto.
12214 * progspace.c: Ditto.
12215 * progspace.h: Ditto.
12216 * psympriv.h: Ditto.
12217 * psymtab.c: Ditto.
12218 * record.c: Ditto.
12219 * regcache.c: Ditto.
12220 * regcache.h: Ditto.
12221 * remote-fileio.c: Ditto.
12222 * remote.c: Ditto.
12223 * ser-mingw.c: Ditto.
12224 * ser-tcp.c: Ditto.
12225 * ser-unix.c: Ditto.
12226 * serial.c: Ditto.
12227 * serial.h: Ditto.
12228 * solib-frv.c: Ditto.
12229 * solib-irix.c: Ditto.
12230 * solib-osf.c: Ditto.
12231 * solib-pa64.c: Ditto.
12232 * solib-som.c: Ditto.
12233 * solib-sunos.c: Ditto.
12234 * solib-svr4.c: Ditto.
12235 * solib-target.c: Ditto.
12236 * solib.c: Ditto.
12237 * somread.c: Ditto.
12238 * source.c: Ditto.
12239 * stabsread.c: Ditto.
12240 * stabsread.c: Ditto.
12241 * stack.c: Ditto.
12242 * stack.h: Ditto.
12243 * symfile-mem.c: Ditto.
12244 * symfile.c: Ditto.
12245 * symfile.h: Ditto.
12246 * symmisc.c: Ditto.
12247 * symtab.c: Ditto.
12248 * symtab.h: Ditto.
12249 * target-descriptions.c: Ditto.
12250 * target-memory.c: Ditto.
12251 * target.c: Ditto.
12252 * target.h: Ditto.
12253 * terminal.h: Ditto.
12254 * thread.c: Ditto.
12255 * top.c: Ditto.
12256 * tracepoint.c: Ditto.
12257 * tracepoint.h: Ditto.
12258 * ui-file.c: Ditto.
12259 * ui-file.h: Ditto.
12260 * ui-out.h: Ditto.
12261 * user-regs.c: Ditto.
12262 * user-regs.h: Ditto.
12263 * utils.c: Ditto.
12264 * valarith.c: Ditto.
12265 * valops.c: Ditto.
12266 * valprint.c: Ditto.
12267 * valprint.h: Ditto.
12268 * value.c: Ditto.
12269 * varobj.c: Ditto.
12270 * varobj.h: Ditto.
12271 * vec.h: Ditto.
12272 * xcoffread.c: Ditto.
12273 * xcoffsolib.c: Ditto.
12274 * xcoffsolib.h: Ditto.
12275 * xml-syscall.c: Ditto.
12276 * xml-tdesc.c: Ditto.
12277
9a2b4c1b
MS
122782011-01-05 Michael Snyder <msnyder@vmware.com>
12279
12280 * cli/cli-cmds.c: Shorten lines of >= 80 columns.
12281 * cli/cli-decode.c: Ditto.
12282 * cli/cli-dump.c: Ditto.
12283 * cli/cli-logging.c: Ditto.
12284 * cli/cli-script.c: Ditto.
12285 * cli/cli-setshow.c: Ditto.
12286 * common/signals.c: Ditto.
12287 * mi/mi-cmd-break.c: Ditto.
12288 * mi/mi-cmd-disas.c: Ditto.
12289 * mi/mi-cmd-stack.c: Ditto.
12290 * mi/mi-cmd-var.c: Ditto.
12291 * mi/mi-cmds.c: Ditto.
12292 * mi/mi-common.h: Ditto.
12293 * mi/mi-console.c: Ditto.
12294 * mi/mi-interp.c: Ditto.
12295 * mi/mi-main.c: Ditto.
12296 * osf-share/cma_attr.c: Ditto.
12297 * osf-share/cma_deb_core.h: Ditto.
12298 * osf-share/cma_debug_client.h: Ditto.
12299 * osf-share/cma_handle.h: Ditto.
12300 * osf-share/cma_mutex.h: Ditto.
12301 * osf-share/cma_stack_int.h: Ditto.
12302 * osf-share/cma_tcb_defs.h: Ditto.
12303 * python/py-auto-load.c: Ditto.
12304 * python/py-breakpoint.c: Ditto.
12305 * python/py-cmd.c: Ditto.
12306 * python/py-frame.c: Ditto.
12307 * python/py-objfile.c: Ditto.
12308 * python/py-param.c: Ditto.
12309 * python/py-progspace.c: Ditto.
12310 * python/py-symbol.c: Ditto.
12311 * python/py-value.c: Ditto.
12312 * python/python-internal.h: Ditto.
12313 * python/python.c: Ditto.
12314 * tui/tui-data.c: Ditto.
12315 * tui/tui-disasm.c: Ditto.
12316 * tui/tui-hooks.c: Ditto.
12317 * tui/tui-io.c: Ditto.
12318 * tui/tui-layout.c: Ditto.
12319 * tui/tui-regs.c: Ditto.
12320 * tui/tui-source.c: Ditto.
12321 * tui/tui-stack.c: Ditto.
12322 * tui/tui-win.c: Ditto.
12323 * tui/tui-windata.c: Ditto.
12324 * tui/tui-winsource.c: Ditto.
12325
44944448
JB
123262011-01-05 Joel Brobecker <brobecker@adacore.com>
12327
12328 * configure.ac, gdb.1: Copyright year update.
12329
ebedcab5
JK
123302011-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12331
12332 * frame.c (get_prev_frame_1) <UNWIND_INNER_ID>: New variables
12333 this_pc_in_block, morestack_msym and morestack_name. Check for
12334 "__morestack" minimal symbol there.
12335
e5cc9f32
JB
123362011-01-03 Joel Brobecker <brobecker@adacore.com>
12337
12338 * symfile.c (find_sym_fns): Add call to dont_repeat.
12339
7b6bb8da
JB
123402011-01-01 Joel Brobecker <brobecker@adacore.com>
12341
12342 Copyright year update in most files (performed by copyright.sh).
12343
71ce852c
JB
123442011-01-01 Joel Brobecker <brobecker@adacore.com>
12345
12346 * top.c (print_gdb_version): Update copyright year in version output.
0e2de366 12347
c3c1ebe8 12348For older changes see ChangeLog-2010.
c906108c
SS
12349\f
12350Local Variables:
12351mode: change-log
12352left-margin: 8
12353fill-column: 74
12354version-control: never
57da7796 12355coding: utf-8
c906108c 12356End:
This page took 1.790673 seconds and 4 git commands to generate.